https://www.redkap.com/on/demandware.static/Sites-redkap_us-Site/-/default/v1790279564850/js/main.js
1/*! For license information please see main.js.LICENSE.txt */ 2(()=>{var t={14400:(t,e,n)=>{var i=n(82343),r=n(75594),o=n(60189),a=n(99077),s=n(48445),l=n(62850);t.exports=function(){$(document).ready((function(){i(r),i(o),i(a),i(s),l.handleEvents()}))}},60189:t=>{var e={handleEvents:function(){$("body").on("submit",".program-add-form",(function(t){t.preventDefault();var e=$(this),n=e.attr("action"),i=e.serialize(),r=e.find(".alert"),o=e.closest(".modal"),a=$(".programs-list");0===a.length&&(a=$(".fp-programs-list"),i+="&responseTemplate=1"),o.spinner("small").start(),$.ajax({type:"POST",url:n,data:i,success:function(t){t&&t.success?(a.html(t.html),t.redirectUrl?window.location.href=t.redirectUrl:(e.find("input, textarea").val(""),o.spinner().stop(),o.modal("hide"))):r.html(t.message).show()},error:function(){o.spinner().stop()}})}))}};t.exports=e},75594:t=>{var e={handleEvents:function(){$(".fp-tool-toggle").on("click",(function(){var t=$(this),e=t.parents(".floating-programs-tool"),n=e.find(".fp-content"),i=e.find(".fp-sliding-section");t.toggleClass("closed").hasClass("closed")?i.animate({right:"-100%"},300,(function(){n.toggle()})):(i.css("right","-100%"),n.toggle(),i.animate({right:"0"}))})),$("body").on("click",".fp-program-item",(function(){var t=$(this),e=t.parents(".fp-content-inner"),n=t.attr("data-href");e.spinner("small").start(),$.ajax({type:"POST",url:n,success:function(t){if(t&&t.success){var n=$("#programModal");0!==n.length&&n.remove(),e.spinner().stop(),$("body").append(t.html),$("#programModal").modal("show")}},error:function(t){e.spinner().stop()}})})),$("body").on("click",".pi-toggle-removal",(function(){$(this).parents(".program-item-row").toggleClass("confirm-removal")})),$("body").on("click",".pi-remove-confirmed",(function(){var t=$(this),e=t.attr("data-href"),n=$("#programModal"),i=t.parents(".program-item-row");i.spinner("small").start(),$.ajax({type:"POST",url:e,success:function(t){t&&t.success&&(n.find(".program-item-list").replaceWith(t.html),i.spinner().stop())},error:function(t){i.spinner().stop()}})}))}};t.exports=e},48445:t=>{var e={handleEvents:function(){$(".registration .show-b2b-fields").on("change",(function(){var t,e;$(".b2b-fields").slideToggle(),e=(t=$("#registration-form-companyname")).parents(".form-group"),t.attr("required")?t.prop("required",!1):t.prop("required",!0),e.toggleClass("required")}))}};t.exports=e},99077:(t,e,n)=>{var i=n(95656),r=n(59617),o={updateProgramList:function(t){if(t){var e=$("#selectProgramModal .program-item.sample").clone().removeClass("sample").removeClass("d-none"),n=$("#selectProgramModal .program-list");n.empty(),$.each(t.programs,(function(t,i){var r=e.clone();r.html(r.html().replace(/{{programID}}/g,i.ID)),r.html(r.html().replace(/{{programName}}/g,i.name)),r.html(r.html().replace(/{{itemCount}}/g,i.itemCount)),r.html(r.html().replace(/{{programURL}}/g,i.url)),n.append(r)}))}},getProgramList:function(){var t=$(".product-program-button").attr("href");$.ajax({type:"POST",url:t,success:function(t){t&&t.success&&o.updateProgramList(t)},error:function(t){}})},prepareModal:function(t){var e=$("#selectProgramModal"),n=e.find(".add-to-program-btn");o.getProgramList(),t?(e.find(".customize-item-btn").hide(),n.addClass("post-customizer")):(e.find(".customize-item-btn").show(),n.removeClass("post-customizer"))},getProgramIDs:function(){var t=$("#selectProgramModal").find('input[name="programID"]:checked'),e=[];return t.each((function(){e.push($(this).val())})),e},clearSelected:function(){$("#selectProgramModal").find('input[name="programID"]:checked').prop("checked",!1)}};function a(t){var e=$("#addedToProgramModal"),n=e.data("recommendations-url");$.ajax({type:"GET",url:n,data:{recommenderProductID:t.productID},success:function(t){e.find(".atp-recommendations").html(t),$(document).trigger("load.einstein")},error:function(t){},complete:function(){e.find(".atp-item-row").replaceWith(t.html),e.modal("show")}})}function s(t,e){i.customizerSpinner.start();var n=$("#selectProgramAlertError");n.html("").hide(),$.ajax({type:"POST",url:e,data:t,traditional:!0,success:function(t){t.success?($("#customizerModal").modal("hide"),$("#selectProgramModal").modal("hide"),o.clearSelected(),a(t)):("NOT_CUSTOMIZABLE"===t.message&&($("#customizerModal").modal("hide"),$("#customizerErrorModal").modal("show")),n.html(t.message).show()),i.customizerSpinner.stop()},error:function(t){i.customizerSpinner.stop(),$("#customizerModal").modal("hide"),n.html(t).show()}})}var l={handleEvents:function(){var t=$(document);t.on("click",".product-program-button",(function(t){t.preventDefault();
2var e=$(this),n=e.attr("data-product-id"),i=$('#selectProgramForm input[name="productID"]');n&&i.length>0&&i.val(n);var a=$("#selectProgramForm .customize-item-btn");a.length>0&&e.attr("data-customizer-apikey")&&(a.attr("data-customizer-apikey",e.attr("data-customizer-apikey")),a.attr("data-customizer-get-variants-endpoint",e.attr("data-customizer-get-variants-endpoint")),a.attr("data-customizer-get-artwork",e.attr("data-customizer-get-artwork")),a.attr("data-customizer-product-id",e.attr("data-customizer-product-id")),a.attr("data-customizer-add-to-program",e.attr("data-customizer-add-to-program")),a.attr("data-customizer-format-price",e.attr("data-customizer-format-price")),a.attr("data-customizer-product-data",e.attr("data-customizer-product-data")),a.attr("data-customizer-is-master",e.attr("data-customizer-is-master")),a.attr("data-customizer-show-program",e.attr("data-customizer-show-program")),a.attr("data-customizer-lot",e.attr("data-customizer-lot"))),e.hasClass("tile-program-btn")?r.checkCustomizableStatusAndUpdateButtons(e).then((function(){o.prepareModal(!1)})):o.prepareModal(!1)})),t.on("hidden.bs.modal","#selectProgramModal",(function(){var t=$(this);t.find("#selectProgramAlertSuccess, #selectProgramAlertError").html("").hide(),t.find(".create-program-input").removeClass("open")})),t.on("submit","#selectProgramForm",(function(t){t.preventDefault();var e=$(this),n=e.attr("action"),i=e.serialize();0!==$('#selectProgramModal input[name="programID"]:checked').length?function(t,e){if(t&&e){var n=$("#selectProgramAlertError");n.html("").hide(),$.ajax({type:"POST",url:e,data:t,success:function(e){e.success?($("#selectProgramModal").modal("hide"),o.clearSelected(),a(e,t.productID)):n.html(e.message).show()},error:function(t){n.html(t).show()}})}}(i,n):$("#selectProgramAlertError").html("Please select a program.").show()})),$("body").on("product:afterAttributeSelect",(function(t,e){var n=$('#selectProgramForm input[name="productID"]');n.length>0&&n.val(e.data.product.programVariantID)})),t.on("click","#selectProgramModal .program-add-modal-link",(function(t){t.preventDefault(),$(".create-program-input").toggleClass("open")})),t.on("click","#selectProgramModal .create-program-link",(function(t){t.preventDefault();var e=$(".create-program-input .program-name");l.createProgram.call(this,e.val())})),t.on("click",".add-to-program-btn.post-customizer",(function(t){t.preventDefault();var e=$("#selectProgramModal"),n=$("[data-customizer-add-to-program]").data("customizer-add-to-program"),i=e.data("recipe"),r=e.data("pid");s({programID:o.getProgramIDs(),productID:r,recipeID:i.id,recipeLocation:i.location},n)})),$("body").on("tile:swatchSelected",(function(t,e){var n=$(e),i=n.closest(".product-tile"),r=n.attr("data-lot");i.find(".product-program-button").attr("data-customizer-lot",r);var o=n.data("pid");o&&i.find(".product-program-button").attr("data-product-id",o)}))},createProgram:function(t){if(t){var e=$(this).attr("href"),n=$("#selectProgramAlertError");n.html("").hide();var i=$("#selectProgramAlertSuccess");i.html("").hide(),$.ajax({type:"POST",url:e,data:{programName:t,responseTemplate:2},success:function(t){t&&t.success?(o.updateProgramList(t),i.html(t.message).show()):n.html(t.message).show()},error:function(t){n.html(t).show()}})}},initCustomizer:function(){var t=$(document),e=$("[data-customizer-apikey]").data("customizer-apikey"),n=$("[data-customizer-get-variants-endpoint]").data("customizer-get-variants-endpoint"),r=$("[data-customizer-get-artwork]").data("customizer-get-artwork"),a=$("[data-customizer-product-id]").data("customizer-product-id"),l=$('#selectProgramForm input[name="productID"]'),c=$("[data-customizer-add-to-program]").data("customizer-add-to-program"),u=$("[data-customizer-format-price]").data("customizer-format-price"),d=$("[data-customizer-product-data]").data("customizer-product-data"),h=$("[data-customizer-is-master]").data("customizer-is-master"),p=$("[data-customizer-show-program]").data("customizer-show-program"),f=$("[data-customizer-lot]").data("customizer-lot"),m=$("#selectProgramModal");1!=h&&"true"!=h||$(".product-detail").attr("pid",""),e&&(t.on("click",".customize-item-btn",(function(o){o.preventDefault();var s=$(this);if(0!==m.find('input[name="programID"]:checked').length){s.attr("data-customizer-apikey")&&(e=s.attr("data-customizer-apikey")),s.attr("data-customizer-get-variants-endpoint")&&(n=s.attr("data-customizer-get-variants-endpoint")),s.attr("data-customizer-get-artwork")&&(r=s.attr("data-customizer-get-artwork")),s.attr("data-customizer-product-id")&&(a=s.attr("data-customizer-product-id")),s.attr("data-customizer-add-to-program")&&(c=s.attr("data-customizer-add-to-program")),s.attr("data-customizer-format-price")&&(u=s.attr("data-customizer-format-price")),s.attr("data-customizer-product-data")&&(d=s.attr("data-customizer-product-data")),s.attr("data-customizer-is-master")&&(h=s.attr("data-customizer-is-master")),s.attr("data-customizer-show-program")&&(p=s.attr("data-customizer-show-program")),s.attr("data-customizer-lot")&&(f=s.attr("data-customizer-lot")),i.customizerSpinner.start();var l=$(".product-rating-stars").first().html();$(".customizer-stars-placeholder").html(l),$("#bc-chat-container, .bcFloat").addClass("d-none"),i.handleRaceCondition(),m.modal("hide"),$("#customizerModal").modal("show"),$("#customize__placeholder").append("<div></div>
2"),CustomizerWidget.default.createWidget({apiKey:e,products:a,allowPrograms:p,mode:"program",container:$("#customize__placeholder div")[0],getVariantsEndpoint:n,formatPriceEndpoint:u,productDataEndpoint:d,artworkEndpoint:r,allowProgram:p,selectedLot:""!==f?f:i.getSelectedLotValue(),selectedVariant:i.getSelectedVariantValue(),onSizingChart:function(){var t=$(".product-detail").find(".product-id").html(),e=$('.modal[data-product="'+t+'"]'),n=$(".product-detail").find(".size-chart .sizechart-link").parent();e.appendTo("body"),e.one("hide.bs.modal",(function(t){e.appendTo(n)})),e.find(".modal-body").css("max-height",""),e.find(".modal-title").remove(),$("#sizeChartModal").modal("show")},onBusinessOrder:function(){$("#quantityFormModal").modal("show")},onCancel:function(){$("#customizerModal").modal("hide"),$("#bc-chat-container, .bcFloat").removeClass("d-none")},onBusy:function(t){t?i.customizerSpinner.start():i.customizerSpinner.stop()},onDone:function(e){t.trigger("customizer:programAdd",{result:e})}})}else $("#selectProgramAlertError").html("Please select a program.").show()})),t.on("customizer:clearSelectedPrograms",(function(t,e){o.clearSelected()})),t.on("customizer:programAdd",(function(t,e){var n=e.result,i=m.find('input[name="programID"]:checked'),r=l.length?l.val():a;0===i.length?(m.data("recipe",n.recipe),m.data("pid",r),o.prepareModal(!0),$("#customizerModal").modal("hide"),m.modal("show")):s(e={programID:o.getProgramIDs(),productID:r,recipeID:n.recipe.id,recipeLocation:n.recipe.location},c),$("#customizerModal").one("hidden.bs.modal",(function(){$("#bc-chat-container, .bcFloat").removeClass("d-none")}))})))}};t.exports=l},62850:(t,e,n)=>{var i=n(88503);function r(t,e,n){var i=t.indexOf("#"),r=-1===i?"":t.substr(i),o=(t=-1===i?t:t.substr(0,i),new RegExp("([?&])"+e+"=.*?(&|$)","i")),a=-1!==t.indexOf("?")?"&":"?";return(t=t.match(o)?t.replace(o,"$1"+e+"="+n+"$2"):t+a+e+"="+n)+r}var o={handleEvents:function(){var t=$(document);$("body").on("quickview:afterLoad",(function(t,e){e&&"programDetailCTAs"in e&&($(".program-detail-ctas").replaceWith(e.programDetailCTAs),$("#settingsProgramModal").replaceWith(e.programSettingsModal))})),t.on("change",".employee-list-quickview .employee",(function(t){t.preventDefault(),$(this).data(),o.toggleATCButton()})),t.on("click",".add-employee-quickview",(function(t){t.preventDefault(),$(".add-employee-quickview-form").slideToggle()})),t.on("submit",".add-employee-form",(function(t){t.preventDefault();var e=$(this),n=e.attr("action"),r=e.serialize(),o=$(".employee-list-quickview .employee-list-col"),a=$(".employee-list-row-empty"),s=$(".quickview-addemployee-alert");s.hide(),$.ajax({url:n,data:r,method:"POST",success:function(t){if(t.success){a.hide();var n=$(t.html).find(".employee-list-col"),r=null,l=n.find(".employee-list-row").filter((function(){var t=$(this),e=o.find('[data-employee-id="'.concat(t.data("employee-id"),'"]')),n=0===e.length;return n||(r=e),n}));l.length>0&&(null===r?o.prepend(l[0]):r.after(l[0])),e[0].reset(),i.enableQuantitySteppers()}else s.text(t.message).fadeIn("fast")},error:function(t){s.text(r.message).fadeIn("fast")}})})),t.on("click",".b2b-qv-headers .toggle",(function(t){t.preventDefault();var e=$(this),n=e.data("qv-target"),i=$(".b2b-qv-headers .toggle"),r=$(".b2b-qv-body > div"),o=$(".single-header-price, .select-header-price");r.addClass("d-none"),o.addClass("d-none"),i.removeClass("active"),$("."+n).removeClass("d-none"),e.addClass("active")})),t.on("click",".b2b-qv-atc",(function(t){t.preventDefault();var e=$(this).data("b2b-qv-atc-url"),n=$(".b2b-qv-container"),i=$(".quickview-addtocart-alert");i.hide();var r=o.getProducts();r.length>0&&(n.spinner().start(),$.ajax({type:"POST",url:e,data:{products:JSON.stringify(r)},success:function(t){t.success?($("body").trigger("product:afterAddToCart",t),$(".minicart").trigger("count:update",t)):i.text(t.message).show("fast"),n.spinner().stop()},error:function(t,e,i){"abort"!==i&&n.spinner().stop()}}))})),t.on("change",".b2b-qv-select-body .b2b-qv-quantity",(function(t){t.preventDefault();var e=$(this).closest(".employee-list-row"),n=$(this).find("option:selected"),i=e.find(".b2b-qv-attributes select"),a=!0;if(i.each((function(){var t=$(this);(""===t.val()||t.find(":selected").is(":disabled"))&&(a=!1)})),o.updateDropdownQuantities(e),a){var s=e.find(".employeeProduct").val(),l=r(n.attr("data-url"),"pid",s);o.attributeSelect(l,e),o.toggleATCButton()}})),t.on("change",".b2b-qv-select-body .b2b-qv-attribute",(function(t){t.preventDefault();
2var e=$(this).closest(".employee-list-row"),n=function(t,e){var n=e.find(".b2b-qv-attributes .b2b-qv-attribute[data-attr]").filter((function(){return $(this).val()}));if(n.length>1){var i=new URL(t),r=i.searchParams.keys().toArray().find((function(t){return 0===t.indexOf("dwvar_")})).split("_");r.pop();var o=r.join("_");return n.each((function(){var t=$(this).data("attr"),e=$(this).find(":selected").data("attr-value");i.searchParams.set(o+"_"+t,e)})),i.toString()}return t}(t.currentTarget.value,e);o.attributeSelect(n,e),o.toggleATCButton()}))},updateDropdownQuantities:function(t){var e=t.find(".b2b-qv-quantity").val();t.find(".b2b-qv-attributes select option").each((function(){var t=$(this);if(""!==t.val()){var n=r(t.val(),"quantity",e);t.val(n)}}))},toggleATCButton:function(){o.getProducts().length>0?$(".b2b-qv-atc").removeAttr("disabled"):$(".b2b-qv-atc").attr("disabled","disabled")},getProducts:function(){var t=$(".employee-list-row");if(t.length){var e=[];return t.each((function(){var t=$(this),n=t.find(".employeeProduct"),i=t.find(".employee"),r=t.find(".b2b-qv-quantity");if(i.is(":checked")){var o=t.find(".b2b-qv-attributes select"),a=!0;if(o.each((function(){""===$(this).val()&&(a=!1)})),!a)return e=[],!1;if("true"===n.attr("data-isready")&&!0!==n.attr("data-incomplete")&&a){var s=i.val(),l=n.attr("data-itemuuid"),c=r.length?r.val():1,u=n.val();e.push({id:u,employeeID:s,itemUUID:l,matched:!0,quantity:c})}}})),e}},attributeSelect:function(t,e){t&&t&&($("body").trigger("product:beforeB2BAttributeSelect",{url:t,container:e}),t+="&programid="+e.attr("data-program-id")+"&employeeid="+e.attr("data-employee-id"),$.ajax({url:t,method:"GET",success:function(t){o.handleVariantResponse(t,e),o.updateQuantities(t.product.quantities,e),$("body").trigger("product:afterB2BAttributeSelect",{data:t,container:e})},error:function(t){}}))},updateQuantities:function(t,e){if(t){var n=e.find(".b2b-qv-quantity");if(n.length){var i=t.map((function(t){var e=t.selected?" selected ":"";return'<option value="'+t.value+'" data-url="'+t.url+'"'+e+">"+t.value+"</option>"})).join("");n.html(i)}}},handleVariantResponse:function(t,e){if(t){if("product"in t){var n=e.find(".employeeProduct");n.val(t.product.id).attr("data-isready",t.product.readyToOrder);var i=e.find(".b2b-qv-status-row:not(.b2b-incomplete-info)"),r=e.find(".b2b-qv-availability");t.product.available?(r.hide("fast"),i.hide("fast")):t.product.availability.messages.length>1?(r.find(".b2b-qv-status").text(t.product.availability.messages),r.show("fast")):(r.hide("fast"),i.show("fast")),e.find(".b2b-qv-attributes .b2b-qv-attribute").each((function(e){var n=$(this),i=n.data("attr"),r=$(t.b2bVariantAttributeHTML).closest('div[data-attr="'+i+'"]');r.length&&n.html(r.html())}))}else n.val(t.product.id).attr("data-isready",!1);o.toggleATCButton()}}};t.exports=o},92508:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(76543),o={},a={isProcessing:!1,redirectInProgress:!1,modalOpen:!1,messageListener:null,cleanup:function(){this.isProcessing=!1,this.redirectInProgress=!1,this.modalOpen=!1,this.messageListener&&(window.removeEventListener("message",this.messageListener),this.messageListener=null)}};function s(t,e){if(!a.isProcessing){a.isProcessing=!0;var n=$("#workfitterEmailModal"),o=n.find(".wf-login-mismatch"),s=$(".product-detail").attr("data-pid");o.text("").hide(),t.currentURL=window.location.href,t.productId=s,$.ajax({type:"GET",url:e,data:t,success:function(t){var e,s,c;a.isProcessing=!1,t.loggedInSessionExpired?(o.text(t.expiredMessage).show(),n.modal("show"),$.spinner().stop()):t.redirectURL?function(t){if(!a.modalOpen&&!a.redirectInProgress){a.modalOpen=!0;var e,n=$("#workfitterIframeModal");$("#workfitterIframe").attr("src",t).hide(),$(".workfitter-loading-overlay").addClass("show"),$("#workfitterEmailModal").modal("hide"),n.modal("show"),$.spinner().stop(),e=$("#workfitterIframe"),a.redirectInProgress=!1,a.messageListener&&window.removeEventListener("message",a.messageListener),a.messageListener=function(t){t.source===document.getElementById("workfitterIframe").contentWindow&&function(t){var e=t.data;e&&"object"===i(e)&&"workfitter_complete"===e.type&&($("#workfitterIframeModal").modal("hide"),$.spinner().start(),setTimeout((function(){e.returnUrl?window.location.href=e.returnUrl:window.location.reload()}),5e3))}(t)},window.addEventListener("message",a.messageListener),e.one("load",(function(){e.show(),l()}))}}(t.redirectURL):t.recommendations&&t.recommendations.length>0?(n.modal("hide"),e=t.recommendations,s=$(".workfitter-size-recommender").find(".wf-find-size"),c='<div class="size-recommendations">',e.forEach((function(t){t.key&&"SIZE"===t.key.toUpperCase()&&(c+='<span class="size-recommendation">'+t.key+": "+t.value+"</span>")})),e.forEach((function(t){t.key&&"SIZE"!==t.key.toUpperCase()&&(c+='<span class="size-recommendation">'+t.key+": "+t.value+"</span>")})),c+="</div>",s.replaceWith(c),$.spinner().stop()):(n.modal("hide"),r.methods.show("danger",t.generalError,!0),$.spinner().stop())},error:function(t){a.isProcessing=!1,$.spinner().stop()}})}}function l(){$(".workfitter-loading-overlay").removeClass("show")}o.init=function(){$("body").on("click",".wf-find-size",(function(){var t=$(this),e=$(".workfitter-size-recommender"),n=t.data("url"),i=t.data("isloggedin"),r={isLoggedIn:i};i?(e.spinner().start(),s(r,n)):$("#workfitterEmailModal").modal("show")})),$("body").on("submit","#workfitterEmailModal .wf-modal-form",(function(t){t.preventDefault();
2var e=$("#workfitterEmailModal"),n=e.find("form"),i=n.attr("action"),r={isLoggedIn:!1,userID:n.find(".wf-guest-email").val()};n[0].checkValidity()&&(e.spinner().start(),s(r,i))})),$("body").on("click","#workfitterEmailModal .wf-modal-submit",(function(t){t.preventDefault(),$(".wf-modal-form").trigger("submit")})),$("body").on("click",".wf-iframe-close",(function(){$("#workfitterIframeModal").modal("hide"),$("#workfitterIframe").attr("src","about:blank").show(),$(window).off("beforeunload.workfitter"),$("#workfitterIframe").off("load beforeload"),a.cleanup(),l()})),$("#workfitterIframeModal").on("hidden.bs.modal",(function(){$("#workfitterIframe").attr("src","about:blank").show(),$(window).off("beforeunload.workfitter"),$("#workfitterIframe").off("load beforeload"),a.cleanup(),l()}))},t.exports=o},98298:(t,e,n)=>{var i=n(29628),r=n(7801);i.baseFiles.cart=function(){return r.init.call(r)},t.exports=i},7801:(t,e,n)=>{var i=n(96761);i.updateCartTotals=function(t){$(".number-of-items").empty().append(1==t.numItems?t.resources.numberOfItem:t.resources.numberOfItems),$(".shipping-cost span").empty().append(t.totals.totalShippingCost),$(".tax-total span").empty().append(t.totals.totalTax),$(".grand-total-sum").empty().append(t.totals.grandTotalLessGiftCertificatePaymentInstrumentsFormatted),$(".sub-total").empty().append(t.totals.subTotal),$(".minicart-quantity").empty().append(t.numItems),$(".minicart-link").attr({"aria-label":t.resources.minicartCountOfItems,title:t.resources.minicartCountOfItems}),$("sup, cart-number-of-items").text(t.pageTitle),0===t.numItems&&($(".empty-cart-content").show(),$(".cart-items-header").hide(),$(".cart-content").hide(),$(".empty-cart-container").hide(),$(".order-totals-card").hide(),$(".promo-code-card").hide(),$(".checkout-continue").hide(),$(".totals-card").hide()),$(".shipping-total-cost span").text(t.totals.totalShippingCost),t.totals.orderLevelDiscountTotal.value>0?($(".order-discount").removeClass("hide-order-discount"),$(".order-discount-total").empty().append("- "+t.totals.orderLevelDiscountTotal.formatted)):$(".order-discount").addClass("hide-order-discount"),t.totals.totalSavings&&t.totals.totalSavings.value>0?($(".total-savings").removeClass("hide-total-savings"),$(".total-savings-amount span").empty().append("- "+t.totals.totalSavings.formatted)):$(".total-savings").addClass("hide-total-savings"),t.totals.shippingLevelDiscountTotal.value>0&&!t.totals.hasFreeShipping?($(".shipping-discount").removeClass("hide-shipping-discount"),$(".shipping-discount-total span").empty().append("- "+t.totals.shippingLevelDiscountTotal.formatted)):$(".shipping-discount").addClass("hide-shipping-discount"),t.payment.giftCertificatePaymentInstruments.length?($(".giftcertificate-discount").removeClass("d-none"),$(".giftcertificate-discount-label").text(t.totals.giftCertificatePaymentInstrumentsLabel),$(".giftcertificate-discount-total").text("- "+t.totals.giftCertificatePaymentInstrumentsTotalFormatted)):$(".giftcertificate-discount").addClass("d-none"),t.totals.grandTotalLessGiftCertificatePaymentInstrumentsValue?$(".cartAdditionalPaymentButtons").removeClass("d-none"):$(".cartAdditionalPaymentButtons").addClass("d-none"),t.items.forEach((function(e){if(t.totals.orderLevelDiscountTotal.value>0&&$(".coupons-and-promos").empty().append(t.totals.discountsHtml),e.renderedPromotions?$(".item-"+e.UUID).empty().append(e.renderedPromotions):$(".item-"+e.UUID).empty(),e.customizer&&e.customizer.isCustomized){var n=$('.cart-product-card[data-uuid="'+e.UUID+'"]');if(e.customizer.addonProducts.forEach((function(t){if(t){var e="",n=$('[data-customizer-addon-product-uuid="'+t.uuid+'"] .addon-product-price-container');t.hasDiscount?(n.addClass("text-nowrap"),e='<span class="addon-product-price strike-through">+'.concat(t.price.formatted,'</span>\n <span class="addon-product-sales-price">+').concat(t.salesPrice.formatted,"</span>")):(n.removeClass("text-nowrap"),e='<span class="addon-product-price">+'.concat(t.salesPrice.formatted,"</span>")),n.html(e)}})),$(".item-total-"+e.UUID+" .line-item-total-price-amount").text(e.customizer.priceWithCustomizations.adjusted.formatted),e.customizer.approachingCustomizationDiscounts&&e.customizer.approachingCustomizationDiscounts.length){n.find(".line-item-approaching-discounts").show();var i="";
2e.customizer.approachingCustomizationDiscounts.forEach((function(t){var e=$('<span class="tooltip-whats-this text-nowrap" data-html="true" data-toggle="tooltip"></span></div>').text(t.tooltipLink).attr("title",'<div class="text-left">'+t.tooltipBody+"</div>"),n=$("<div>").append(e).html();n='<div class="text-right ml-2">'+n+"</div>",i=i+'<div class="custom-approaching-discount warning-text d-flex flex-column flex-lg-row justify-content-between"><span>'+t.discountMsg+"</span>"+n+"</div>"})),n.find(".line-item-approaching-discounts .col-12").html(i),$("body").trigger("tooltip:init")}else n.find(".line-item-approaching-discounts").hide()}else $(".uuid-"+e.UUID+" .unit-price").empty().append(e.renderedPrice),$(".line-item-price-"+e.UUID+" .unit-price").empty().append(e.renderedPrice),$(".item-total-"+e.UUID).empty().append(e.priceTotal.renderedPrice)})),t.totals.klarnaTotal&&($("klarna-placement").attr("data-purchase-amount",t.totals.klarnaTotal),window.KlarnaOnsiteService=window.KlarnaOnsiteService||[],window.KlarnaOnsiteService.push({eventName:"refresh-placements"}))},i.validateBasket=function(t){if(t.valid.error&&!t.valid.hasUnavailableProduct){if(t.valid.message){var e='<div class="alert alert-danger alert-dismissible valid-cart-error fade show" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>'+t.valid.message+"</div>";$(".cart-error").append(e)}else $(".valid-cart-error .close").trigger("click");$(".checkout-btn").addClass("disabled")}else $(".checkout-btn").removeClass("disabled"),$(".valid-cart-error .close").trigger("click")},i.updateApproachingDiscounts=function(t){var e=$(".approaching-discounts");if(e.length){var n=t||[],i=e.data("progress-label")||"",r=e.find(".single-approaching-discount");if(n.length>0&&n.length===r.length&&n.every((function(t,e){return r.eq(e).find(".approaching-discount-progress-bar").length>0==(null!==t.percentComplete&&void 0!==t.percentComplete)})))n.forEach((function(t,e){var n=r.eq(e);n.find(".approaching-discount-msg").html(t.discountMsg),null!==t.percentComplete&&void 0!==t.percentComplete&&(n.find(".approaching-discount-progress").attr("aria-valuenow",t.percentComplete),n.find(".approaching-discount-progress-bar").css("width",t.percentComplete+"%"))}));else{var o="";n.forEach((function(t){o+=function(t,e){var n='<div class="single-approaching-discount"><div class="approaching-discount-content"><div class="approaching-discount-msg">'+t.discountMsg+"</div>";return null!==t.percentComplete&&void 0!==t.percentComplete&&(n+='<div class="approaching-discount-progress" role="progressbar" aria-valuenow="'+t.percentComplete+'" aria-valuemin="0" aria-valuemax="100" aria-label="'+e+'"><div class="approaching-discount-progress-bar" style="width: '+t.percentComplete+'%"><span class="approaching-discount-truck" aria-hidden="true"></span></div></div>'),n+"</div></div>"}(t,i)}
2)),e.empty().append(o)}}};var r=i.init,o=n(76543);i.init=function(){var t;r.call(this),t=!1,$("body").on("submit",".promo-code-form",(function(){t=!!$(".coupon-code-field").val()})),$("body").on("promotion:error",(function(){t=!1})),$("body").on("promotion:success",(function(){if(t){t=!1;var e=$(".promo-code-form").data("success-message");e&&o.methods.show("success",e,!1)}}))},t.exports=i},30297:t=>{t.exports=function(){function t(){$(".form-group input, .form-group .custom-select, .form-group select").each((function(){if($(this).val()||$(this).attr("autofocus")){var t=$(this).parent().parent(),e=$(this).parent(),n=$(this).closest(".form-group");$(this).siblings(".form-control-label").length>0&&(t=$(this).siblings(".form-control-label")),t.find(".form-control-label").attr("for")==$(this).attr("id")&&t.find(".form-control-label").not(".no-animation").css({top:"-20px","font-size":"10px","padding-left":"0"}),$(n,e,t).find(".form-control-label").not(".no-animation").css({top:"-20px","font-size":"10px","padding-left":"0"})}}))}$("body").on("focus googleautocomplete:nonemptyvaluechange",".form-group input, .form-group .custom-select, .form-group select",(function(){var t=$(this).closest(".form-group");($('.page[data-action="Account-SetNewPassword"]').length>0?$(this).parent().find(".form-control-label"):$(this).parent().parent().find(".form-control-label")).not(".no-animation").css({top:"-20px","font-size":"10px","padding-left":"0"}),t.find(".form-control-label").not(".no-animation").css({top:"-20px","font-size":"10px","padding-left":"0"})})).on("blur",(function(){if(""==$(this).val()){var t,e=$(".account-page form.change-password-form").length>0,n=$(this).closest(".form-group");e?t=$(this).parent().find(".form-control-label"):(t=$(this).parent().parent().find(".form-control-label"),$formControlLabelSelect=$(this).parent().find(".form-control-label")),t.not(".no-animation").css({top:"1em","font-size":"14px","padding-left":"10px"}),n.find(".form-control-label").not(".no-animation").css({top:"1em","font-size":"14px","padding-left":"10px"})}})),$(window).on("load",t),$(document).ajaxComplete(t)}},47:()=>{$(".product-hotspot").hover((function(){var t,e;null===(t=(e=window).refreshYotpoWidgets)||void 0===t||t.call(e)}))},64616:(t,e,n)=>
2{t.exports=n(22933),t.exports.dropdownMenu=function(){var e=$(document),n='.custom-dropdown:not(.disabled) [data-toggle="menu"], .custom-dropdown:not(.disabled) [data-toggle="dropdown"]';e.on("click",n,(function(t){if(t.stopPropagation(),window.isMobile()&&"dropdownAccountSelector"!=$(t.target).attr("id")){t.preventDefault();var e=$(t.target),n=e.closest(".custom-dropdown"),i=$('<li class="dropdown-item top-category" role="button"></li>'),r=$('<li class="nav-menu"></li>'),o=e.clone().removeClass("dropdown-toggle").removeAttr("data-toggle").removeAttr("aria-expanded").attr("aria-haspopup","false");i.append(o),r.append($(".close-menu").first().clone()),n.children(".dropdown-menu").prepend(i).prepend(r).attr("aria-hidden","false").find("a").removeAttr("tabindex","-1"),n.addClass("show"),e.attr("aria-expanded","true"),n.closest(".menu-group").find(".nav.navbar-nav > li.nav-item > a").attr("aria-hidden","true"),$(o).focus(),$(".dropdown-menu").scrollTop(0)}})),e.on("mouseover",n,(function(n){if(!window.isMobile()){var i=n.target,r=$(i);clearTimeout(e.data("hovertimeout")),e.data("hovertimeout",setTimeout((function(){$(".navbar-nav > li").each((function(e,n){if(!$.contains(n,i)){var r=$(n);r.find(".show").each((function(){t.exports.clearSelection(n)})),r.hasClass("show")&&(r.removeClass("show"),r.children("ul.dropdown-menu").removeClass("show"),r.children(".nav-link").attr("aria-expanded","false"))}})),$(".modal").modal("hide"),r.parent().addClass("show"),r.siblings(".dropdown-menu").addClass("show").attr("aria-hidden","false"),r.attr("aria-expanded","true")}),50))}})),e.on("mouseleave",".custom-dropdown:not(.disabled)",(function(t){if(!window.isMobile()){clearTimeout(e.data("hovertimeout"));var n=$(t.currentTarget).closest(".custom-dropdown");n.removeClass("show"),n.children(".dropdown-menu").removeClass("show").attr("aria-hidden","true"),n.children(".nav-link").attr("aria-expanded","false")}}))}},65350:(t,e,n)=>{n(62074);var i=!0;t.exports=function(){$(".minicart").on("count:update",(function(t,e){e&&$.isNumeric(e.quantityTotal)&&($(".minicart .minicart-quantity").text(e.quantityTotal),$(".minicart .minicart-link").attr({"aria-label":e.minicartCountOfItems,title:e.minicartCountOfItems}))})),$(".minicart").on("mouseenter focusin touchstart",(function(){var t=$("#addedToCartModal").hasClass("show");if(!(window.isMobile()||t||$(".data-checkout-stage").length>0)){var e=$(".minicart").data("action-url"),n=parseInt($(".minicart .minicart-quantity").text(),10);if(0!==n&&0===$(".minicart .popover.show").length){if(!i)return $(".minicart .popover").addClass("show"),void $(".popover-overlay").addClass("show");$(".minicart .popover").addClass("show"),$(".popover-overlay").addClass("show"),$(".minicart .popover").spinner().start(),$.get(e,(function(t){$(".minicart .popover").empty(),$(".minicart .popover").append(t),i=!1,$.spinner().stop(),$("body").trigger("minicart:loaded",$(".minicart .popover")),$(".minicart .btn-num-items").text(n)}))}}})),$("body, .popover-overlay, .close-minicart").on("touchstart click",(function(t){$(".minicart").has(t.target).length<=0&&($(".minicart .popover").removeClass("show"),$(".popover-overlay").removeClass("show"))})),$(".minicart").on("click focusout",(function(t){"focusout"===t.type&&$(".minicart").has(t.target).length>0||"click"===t.type&&$(t.target).is(".minicart .quantity")||"click"===t.type&&$(t.target).parents(".quantity-stepper").length>0||$("body").is(".modal-open:not(.show-header-search-modal)")?t.stopPropagation():($(".minicart .popover").removeClass("show"),$(".popover-overlay").removeClass("show"))})),$("body").on("change",".minicart .quantity",(function(t){$(t.target).parents(".bonus-product-line-item").length&&$(".cart-page").length&&location.reload()})),$("body").on("product:afterAddToCart cart:update",(function(){i=!0})),$("body").on("minicart:loaded",(function(t,e){!function(t){var e=$(t),n=e.find(".product-summary"),i=e.outerHeight()-n.outerHeight(),r=e.offset().top-$(window).scrollTop()+i;n.css("max-height","calc(100vh - "+r+"px)")}(e)}))}},73850:(t,e,n)=>{var i=n(26085);i.getModalHtmlElement=function(t,e,n){var i=t||"customModal",r="quickViewModal"==i||"editWishlistProductModal"==i?' <a class="full-pdp-link" href=""></a>':"";e=e||"",0!==$("#"+i).length&&$("#"+i).remove();var o='<div class="modal fade" id="'+i+'" role="dialog"><span class="enter-message sr-only"></span><div class="modal-dialog '+e+'">\x3c!-- Modal content--\x3e<div class="modal-content"><div class="modal-header">'+r+' <button type="button" class="close pull-right" data-dismiss="modal">
2 <span aria-hidden="true">×</span> <span class="sr-only"> </span> </button></div><div class="modal-body"></div><div class="modal-footer"></div></div></div></div>';$("body").append(o)},t.exports=i},85868:t=>{t.exports=function(){$(".payment-options-block .payment-options .nav-link").each((function(){$(this).addClass("custom-control-label")})),$(".credit-card-tab").append('<span class="tab-label">Credit Card</span>'),$(".paypal-tab").append('<span class="tab-label">PayPal</span>'),$(".klarna-tab").append('<span class="tab-label">Klarna</span>')}},95273:(t,e,n)=>{var i=n(5816);n(41862);var r=n(62074),o=r.BreakpointSizes.md,a=r.BreakpointSizes.lg,s=n(57280),l=s.enableImageZoom;s.enableImageZoom=function(t){if(t.closest(".primary-images-main").is(":visible"))return l.apply(this,arguments)},s.getUpdatedSlideItems=function(t,e){var n=[];return t.large.forEach((function(i){var r=$("<div></div>").attr("class","slide"),o=$("<img/>");e||r.attr("data-zoom-image",t["hi-res"].length?t["hi-res"][i.index].url:t.large[i.index].url);var a="";$(".waterfall-container").length>0&&(a=" product-img-m btn border-0"),o.attr({src:i.url,alt:i.alt+" image number "+(parseInt(i.index)+1).toFixed(0),class:"d-block img-fluid"+a,itemprop:"image"}),r.append(o),n.push(r[0])})),n},s.bindSliderUpdateEvent=function(t,e){t.off("slider:update").on("slider:update",".slider",(function(t,n){var r=$(t.target).closest(".slider-container"),l=r.hasClass("slider-thumbnails"),c=void 0!==n?s.getUpd
2atedSlideItems(n.images,l):null,u=s.getSliderParams(r,c);if(l){var d=r.closest(".primary-images-thumbnails"),h=d.prev(".primary-images-main");n.images.small&&n.images.small.length>1?(d.removeClass("d-none"),h.addClass("product-has-thumbnails col-lg-9")):(d.addClass("d-none"),h.removeClass("product-has-thumbnails col-lg-9"))}var p="";if($(".waterfall-container").length>0&&(p=" text-center"),u.slideItems){var f=$("<div></div>").attr({class:"slider"+p,id:u.container.id}),m=r.find(".slider-thumbnail-controls").addClass("d-none");f.html(u.slideItems),r.html(f),u.container=f[0],l&&(r.append(m),u.items=u.slideItems.length,u.responsive[o].items=u.slideItems.length,u.responsive[a].items=u.slideItems.length)}(e=i.tns(u)).events.on("transitionEnd",s.slideIntoView),s.enableImageZoom(r),l&&s.handleThumbnailArrows(r,e)}))},t.exports=s},36390:t=>{function e(){return $(this).find(".tooltip")}var n='[data-toggle="tooltip"], .info-icon';function i(){$(n).tooltip({title:e,trigger:"manual",sanitize:!1}).on("mouseenter",(function(t){var e=$(t.target).closest('[data-toggle="tooltip"]'),n=e.data("delay")&&e.data("delay").show||0,i=e.data("delay")&&e.data("delay").hide||0;setTimeout((function(){e.tooltip("show")}),n),$("body").on("mouseleave",".tooltip",(function(t){setTimeout((function(){$(t.target).closest(".tooltip").tooltip("hide")}),i)}))})).on("mouseleave",(function(t){var e=$(t.target).closest('[data-toggle="tooltip"]'),n=e.data("delay")&&e.data("delay").hide||0;setTimeout((function(){$(".tooltip:hover").length||$(t.target).tooltip("hide")}),n)})),$('[data-toggle="popover"]').popover({html:!0,trigger:"focus",sanitize:!1})}function r(){$("body").off("click.tooltipToggle").on("click.tooltipToggle",n,(function(t){t.preventDefault();var e=$(this),i=!!e.attr("aria-describedby");$(n).not(e).tooltip("hide"),e.tooltip(i?"hide":"show")})),$("body").off("focus.tooltipToggle").on("focus.tooltipToggle",n,(function(){$(this).tooltip("show")})),$("body").off("blur.tooltipToggle").on("blur.tooltipToggle",n,(function(){$(this).tooltip("hide")})),$(document).off("keydown.tooltipToggle").on("keydown.tooltipToggle",(function(t){"Escape"!==t.key&&27!==t.keyCode||$(n).tooltip("hide")})),$("body").off("click.tooltipDismiss").on("click.tooltipDismiss",(function(t){$(t.target).closest(n+", .tooltip").length||$(n).tooltip("hide")}))}t.exports=function(){i(),r(),$("body").on("tooltip:init",(function(){i(),r()}))}},75343:(t,e,n)=>{n(20220),n(75419),n(22289);var i={enableWaterfallZoomModal:function(){$("body").on("click",".product-detail:not(.product-quickview) .product-img.btn, .product-detail:not(.product-quickview) .product-img-m.btn, .product-detail:not(.product-quickview) a.plus",(function(t){t.preventDefault();var e=$(this).data("index");0!==$("#zoomViewModal").length&&$("#zoomViewModal").remove(),$("body").append('<div class="modal fade" id="zoomViewModal" role="dialog"><span class="enter-message sr-only" ></span><div class="modal-dialog zoom-view-dialog mw-100">\x3c!-- Modal content--\x3e<div class="modal-content"><div class="modal-header"> <button type="button" class="close pull-right" data-dismiss="modal"> <span aria-hidden="true">×</span> <span class="sr-only"> </span> </button></div><div class="modal-body"></div></div></div></div>');var n=$("#zoomViewModal");n.find(".modal-body").spinner().start();var i=$(".waterfall-container");n.find(".modal-body").empty();var r,o=i.find("div.slide > img.product-img"),a="",s="";Array.from(o).forEach((function(t,n){var i=e===$(t).data("index"),r='<div class="slide col-12 d-block"><a class="plus plus-lg text-center"><div class="icon-zoom before"></div></a><img class="col-12 product-img" src="'+$(t).parent().data("zoom-image")+'" alt="image number '+(n+1)+'" /></div>';i?a+=r:s+=r})),r=a+s,n.find(".modal-body").html(r),n.modal("show"),$.spinner().stop(),$(".zoom-view-dialog").find("div:not(.primary-images-main) .slide").each((function(t,e){var n=$(e);if(!n.hasClass("no-zoom")){var i=n.data("zoom-image")||n.find("img").attr("src");n.zoom({url:i,magnify:1.25,touch:!0,on:"click",onZoomIn:function(){$(this).closest(".slide").addClass("zoomed")},onZoomOut:function(){$(this).closest(".slide").removeClass("zoomed")}})}}))})),$("body").off("waterfall:seemore").on("waterfall:seemore",(function(t,e){var n=$(e),i=n.parents(".waterfall-container");i.find(".waterfall-extra-images").addClass("d-md-block"),i.find(".waterfall-fade-overlay").removeClass("d-md-block"),n.removeClass("d-md-block")}
2)),$("body").off("click",".waterfall-see-more").on("click",".waterfall-see-more",(function(t){t.preventDefault(),$("body").trigger("waterfall:seemore",this)}))}};t.exports=i},27550:(t,e,n)=>{var i=n(8762);i.baseFiles.menu=n(64616),i.baseFiles.floatingFieldLabels=n(30297),i.baseFiles.headerSearch=n(41851),i.baseFiles.base=n(81438),i.baseFiles.quickView=n(37909),i.baseFiles.miniCart=n(65350),i.baseFiles.paymentTabs=n(85868),i.baseFiles.waterfall=n(75343),i.baseFiles.slider=n(95273).init,i.baseFiles.cart=n(98298),i.baseFiles.saveForLater=n(8804),i.baseFiles.wishlist=n(87797).init,i.baseFiles.modal=n(73850).init,i.baseFiles.hotspot=n(47),i.baseFiles.toolTip=n(36390),i.baseFiles.survey=n(65927).init,t.exports=i},81438:(t,e,n)=>{var i=n(79194);n(75343),i.enhancedAddToCartMessaging=function(){var t=$("#addedToCartModal");t.on("hidden.bs.modal",(function(t){$(".fixed-header").removeClass("z-index-over-modal-background")})),$("body").on("product:afterAddToCart",(function(e,n){if(n&&!1===n.error){var i=n.pliUUID,r=n.cart&&n.cart.items,o=n.cart.viewCartText,a=null;if(r){for(var s=0;s<r.length;s++){var l=r[s];if(l.UUID===i){a=l;break}}if(a){var c,u=!!a.hasOwnProperty("customizer")&&a.customizer.isCustomized,d='<div class="pr-3 image-col"><div class="item-image-container"><img class="item-image" src="'+(u?a.customizer.recipePreview:a.images.small[0].url)+'" alt="'+a.images.small[0].alt+'" /></div></div>',h='<div class="item-name">'+(a.shortName&&n.showShortName?a.shortName:a.productName)+(u?" "+n.customizerAppendLabel:"")+"</div>",p='<div class="attribute-pair price"><span class="attribute-value item-total">'+(a.price.list?'<span class="strike-through non-adjusted-price">'+a.price.list.formatted+"</span>":"")+'<span class="pricing line-item-total-price-amount">'+a.price.sales.formatted+"</span></span></div>",f='<div class="attribute-pair availability-message">'+a.availability.messages[0]+"</div>",m="";a.variationAttributes.forEach((function(t){m+='<div class="attribute-pair" data-attr-id="'+t.attributeId+'">',m+='<span class="attribute-key">'+t.displayName+":</span>",m+='<span class="attribute-value">'+t.displayValue+"</span>",m+="</div>"})),c='<div class="minicart"><div class="row ml-0 line-item">'+d+'<div class="col">'+h+p+(m='<div class="pb-1 item-attributes">'+m+"</div>")+f+"</div></div></div>";var g=$("#top-header").outerHeight();t.find(".modal-dialog").css("top",g+24+"px"),t.find(".modal-body").html(c),t.find(".view-cart-button").text(o),t.find(".added-to-cart-footer-row").addClass("flex-nowrap"),t.find(".added-to-cart-footer-row .left-column").removeClass("col-6").addClass("col"),$(".fixed-header").addClass("z-index-over-modal-background"),$(".add-to-cart-messages").remove(),t.modal("show"),setTimeout((function(){t.modal("hide")}),5e3)}}}}))},i.methods.handleVariantResponse=function(t,e){var i,r=e.parents(".choose-bonus-product-dialog").length>0,o=e.find(".style-number");o.length>0&&o.text(t.product.displayNumber||t.product.id),t.product.variationAttributes&&(this.updateAttrs(t.product.variationAttributes,e,t.resources),i="variant"===t.product.productType,r&&i&&(e.parent(".bonus-product-item").data("pid",t.product.id),e.parent(".bonus-product-item").data("ready-to-order",t.product.readyToOrder)));var a,s,l=t.product.images,c=e.find("div.slide a.wishlist");if(this.createSlider(l,e.find(".primary-images")),this.updateModelText(t.product,e.find(".primary-images-main .slider")),t.imageWaterfallHTML){var u=e.find(".waterfall-container"),d=$(t.imageWaterfallHTML),h=u.scrollTop(),p=d.find(".slide img").filter((function(t){return t<2}));p.removeAttr("loading"),d.removeClass("d-flex").addClass("d-none replacement-waterfall"),u.find(".replacement-waterfall").remove(),u.find(".desktop-waterfall-images").after(d),a=function(){h>0&&u.scrollTop(h);var t=d.removeClass("d-none replacement-waterfall").addClass("d-flex");u.find(".desktop-waterfall-images").first().replaceWith(t),!u.find(".waterfall-see-more").hasClass("d-md-block")&&$("body").trigger("waterfall:seemore",d.find(".waterfall-see-more"))},s=[],p.each((function(){var t=this;if(!t.complete){var e=new Promise((function(e,n){t.onload=function(){e()},t.onerror=function(){e()}}));s.push(e)}})),Promise.all(s).then(a)}if(!r){var f=$(".prices:not(.const-prices) .price",e).length?$(".prices:not(.const-prices) .price",e):$(".prices:not(.const-prices) .price"),m=t.product.detailedRangePrice?t.product.detailedRangePrice.html:t.product.price.html;f.replaceWith(m)}if(e.find(".promotions").empty().html(t.product.promotionsHtml),this.updateAvailabilityProcess(t,e),r?e.find(".select-bonus-product").trigger("bonusproduct:updateSelectButton",{product:t.product,$productC
2ontainer:e}):$("button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global").trigger("product:updateAddToCart",{product:t.product,$productContainer:e}).trigger("product:statusUpdate",t.product),e.find(".main-attributes").empty().html(this.getAttributesHtml(t.product.attributes)),c&&c.length){var g=$(c[0]);g.attr("data-wishlistpid",t.product.wishlistpid),n(11496).updateWishlistLinkData(g),e.find("div.primary-images-main div.slide img").each((function(t,e){$(e).after(g.clone(!0))}))}$("body").trigger("tooltip:init")},t.exports=i},37909:(t,e,n)=>{var i=n(86564),r=n(64786),o=n(11496);i.showQuickview=function(){$("body").on("click",".quickview",(function(t){t.preventDefault();var e=$(this).closest("a.quickview"),n=e.attr("href");$(t.target).trigger("quickview:show");var i=e.attr("data-dialog-classes");r.getModalHtmlElement("quickViewModal",i||"quick-view-dialog"),function(t){var e=$("#quickViewModal");e.find(".modal-body").spinner().start(),$.ajax({url:t,method:"GET",dataType:"json",success:function(t){var n=r.parseHtml(t.renderedTemplate);e.find(".modal-body").empty(),e.find(".modal-body").html(n.body),e.find(".modal-footer").remove(),e.find(".full-pdp-link").text(t.quickViewFullDetailMsg),e.find(".full-pdp-link").attr("href",t.productUrl),e.find(".modal-header .close .sr-only").text(t.closeButtonText),e.find(".enter-message").text(t.enterDialogMessage),e.find("#quickViewModal").modal("show"),t.dialogTitle&&e.find(".modal-header").prepend('<div class="modal-title">'+t.dialogTitle+"</div>"),"set"===t.product.productType&&updateAddAllToCart(),$("body").trigger("modal:loaded",$("#quickViewModal")),$("body").trigger("quickview:ready",$("#quickViewModal")),$("body").trigger("tooltip:init"),$("body").trigger("quickview:afterLoad",t),$(".waterfall-see-more").on("click",(function(t){t.preventDefault(),$(".waterfall-extra-images").addClass("d-md-block"),$(".waterfall-see-more").removeClass("d-md-block")})),o.updateWishlistLinkData(),window.Klarna&&window.Klarna.OnsiteMessaging&&window.Klarna.OnsiteMessaging.refresh(),$.spinner().stop()},error:function(){$.spinner().stop()}})}(n)}))},t.exports=i},8804:(t,e,n)=>{var i=n(57280),r=n(42124),o=n(76543);function a(t,e){var n=t.uuid||null,i=t.pid||null,r=t.action||null,a=t.name||null;$.ajax({url:r,method:"GET",dataType:"json",data:{pid:i,uuid:n,name:a},success:function(t){if(!e){var n=t.success?"success":"warning";o.methods.show(n,t.msg,!1)}s()},error:function(t){$.spinner().stop()}})}function s(){$.spinner().stop(),$.spinner().start(),window.location.reload()}t.exports={saveProductForLater:function(){$("body").on("click",".save-for-later-btn",(function(t){t.preventDefault(),function(t){var e=t.uuid||null,n=t.pid||null,i=t.action||null,r=t.name||null;$.spinner().start(),$.ajax({url:i,method:"POST",dataType:"json",data:{pid:n,uuid:e,name:r},success:function(t){var e=t.success?"success":"warning";o.methods.show(e,t.msg,!1),s()},error:function(t){$.spinner().stop()}})}($(this).data())}))},removeProductSavedForLater:function(){$("body").on("click",".remove-save-for-later-btn",(function(t){t.preventDefault(),a($(this).data())}))},addToCartSavedForLater:function(){$("body").on("click",".move-to-cart-save-for-later-btn",(function(t){t.preventDefault(),function(t){var e=t.uuid||null,n=t.pid||null,s=t.action||null,l=t.name||null;$.spinner().start(),$.ajax({url:s,method:"POST",dataType:"json",data:{pid:n,uuid:e,name:l,quantity:1},success:function(e){var n=e.error?"warning":"success";o.methods.show(n,e.message,!1),!1===e.error&&($(".empty-cart-content").hide(),t.action=t.removeaction,a(t,!0),i.initializeSliders($parsedHtml.body),r.init($parsedHtml.body))},error:function(t){$.spinner().stop()}})}($(this).data())}))},updateCartData:function(){$("body").on("cart:updateData",s)}}},41851:t=>{t.exports=function(){$(".search-field").on("input",(function(){$(this).parent().find(".btn-primary").removeAttr("disabled")})).on("blur",(function(){""==$(this).val()&&$(this).parent().find(".btn-primary").attr("disabled","disabled")}))}},65927:t=>{t.exports={init:function(){var t=$("#exitSurvey"),e=$("#engagementSurvey");if(t.length>0&&document.addEventListener("mouseleave",(function t(){var e=new CustomEvent("showExitSurvey");document.dispatchEvent(e),document.removeEventListener("mouseleave",t)})),e.length>0){var n=e.data("delay")||1;setTimeout((function(){var t=new CustomEvent("showEngagementSurvey");document.dispatchEvent(t)}),1e3*n)}}}},87797:(t,e,n)=>{var i=n(32405);i.removeFromWishlist=function(){$("body").on("click",".remove-from-wishlist",(function(t){t.preventDefault();
2var e=$(this).data("url");$(".account-page").length>0?($(".wishlist-account-card").spinner().start(),$.ajax({url:e,type:"get",dataType:"html",data:{},success:function(t){$(".wishlist-account-card>.order-card").remove(),$(".wishlist-account-card").append(t),$(".wishlist-account-card").spinner().stop()},error:function(){var t=$(".wishlist-account-card");t.spinner().stop();var e=t.data("error-msg");i.displayMessage(t,e)}})):($.spinner().start(),$.ajax({url:e,type:"get",dataType:"json",data:{},success:function(t){var e=$(".wishlistItemCardsData").data("page-number")-1;i.renderNewPageOfItems(e,!1),i.displayMessage(t);var n=$(".wishlist-qty");n.length>0&&n.text(t.listLength)},error:function(){$.spinner().stop(),i.displayMessage(data)}}))}))},t.exports=i},53607:(t,e,n)=>{var i=n(29628),r=n(96761);i.baseFiles.cart=function(){return r.init.call(r)},t.exports=i},96761:(t,e,n)=>{var i=n(12365),r=n(79194);i.updateCartTotals=function(t){$(".number-of-items").empty().append(1==t.numItems?t.resources.numberOfItem:t.resources.numberOfItems),$(".shipping-cost span").empty().append(t.totals.totalShippingCost),$(".tax-total span").empty().append(t.totals.totalTax),$(".grand-total-sum").empty().append(t.totals.grandTotalLessGiftCertificatePaymentInstrumentsFormatted),$(".sub-total").empty().append(t.totals.subTotal),$(".minicart-quantity").empty().append(t.numItems).attr("data-quantity",t.numItems),$(".minicart-link").attr({"aria-label":t.resources.minicartCountOfItems,title:t.resources.minicartCountOfItems}),$(".cart-page-title").text(t.pageTitle),0===t.numItems&&($(".empty-cart-content").show(),$(".cart-items-header").hide(),$(".cart-content").hide(),$(".empty-cart-container").hide(),$(".order-totals-card").hide(),$(".promo-code-card").hide(),$(".checkout-continue").hide(),$(".totals-card").hide()),$(".shipping-total-cost span").text(t.totals.totalShippingCost),t.totals.orderLevelDiscountTotal.value>0?($(".order-discount").removeClass("hide-order-discount"),$(".order-discount-total").empty().append("- "+t.totals.orderLevelDiscountTotal.formatted)):$(".order-discount").addClass("hide-order-discount"),t.totals.shippingLevelDiscountTotal.value>0&&!t.totals.hasFreeShipping?($(".shipping-discount").removeClass("hide-shipping-discount"),$(".shipping-discount-total span").empty().append("- "+t.totals.shippingLevelDiscountTotal.formatted)):$(".shipping-discount").addClass("hide-shipping-discount"),t.payment.giftCertificatePaymentInstruments.length?($(".giftcertificate-discount").removeClass("d-none"),$(".giftcertificate-discount-label").text(t.totals.giftCertificatePaymentInstrumentsLabel),$(".giftcertificate-discount-total").text("- "+t.totals.giftCertificatePaymentInstrumentsTotalFormatted)):$(".giftcertificate-discount").addClass("d-none"),t.totals.grandTotalLessGiftCertificatePaymentInstrumentsValue?$(".cartAdditionalPaymentButtons").removeClass("d-none"):$(".cartAdditionalPaymentButtons").addClass("d-none"),t.items.forEach((function(e){if(t.totals.orderLevelDiscountTotal.value>0&&$(".coupons-and-promos").empty().append(t.totals.discountsHtml),e.renderedPromotions?$(".item-"+e.UUID).empty().append(e.renderedPromotions):$(".item-"+e.UUID).empty(),e.customizer&&e.customizer.isCustomized){var n=$('.cart-product-card[data-uuid="'+e.UUID+'"]');if(e.customizer.addonProducts.forEach((function(t){if(t){var e="",n=$('[data-customizer-addon-product-uuid="'+t.uuid+'"] .addon-product-price-container');t.hasDiscount?(n.addClass("text-nowrap"),e='<span class="addon-product-price strike-through">+'.concat(t.price.formatted,'</span>\n <span class="addon-product-sales-price">+').concat(t.salesPrice.formatted,"</span>")):(n.removeClass("text-nowrap"),e='<span class="addon-product-price">+'.concat(t.salesPrice.formatted,"</span>")),n.html(e)}})),$(".item-total-"+e.UUID+" .line-item-total-price-amount").text(e.customizer.priceWithCustomizations.adjusted.formatted),e.customizer.approachingCustomizationDiscounts&&e.customizer.approachingCustomizationDiscounts.length){n.find(".line-item-approaching-discounts").show();var i="";
2e.customizer.approachingCustomizationDiscounts.forEach((function(t){var e=$('<span class="tooltip-whats-this text-nowrap" data-html="true" data-toggle="tooltip"></span></div>').text(t.tooltipLink).attr("title",'<div class="text-left">'+t.tooltipBody+"</div>"),n=$("<div>").append(e).html();n='<div class="text-right ml-2">'+n+"</div>",i=i+'<div class="custom-approaching-discount warning-text d-flex flex-column flex-lg-row justify-content-between"><span>'+t.discountMsg+"</span>"+n+"</div>"})),n.find(".line-item-approaching-discounts .col-12").html(i),$("body").trigger("tooltip:init")}else n.find(".line-item-approaching-discounts").hide()}else $(".uuid-"+e.UUID+" .unit-price").empty().append(e.renderedPrice),$(".line-item-price-"+e.UUID+" .unit-price").empty().append(e.renderedPrice),$(".item-total-"+e.UUID).empty().append(e.priceTotal.renderedPrice)})),t.totals.klarnaTotal&&($("klarna-placement").attr("data-purchase-amount",t.totals.klarnaTotal),window.KlarnaOnsiteService=window.KlarnaOnsiteService||[],window.KlarnaOnsiteService.push({eventName:"refresh-placements"}))},i.validateBasket=function(t){if(t.valid.error){if(t.valid.message){var e='<div class="alert alert-danger alert-dismissible valid-cart-error fade show" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>'+t.valid.message+"</div>";$(".cart-error").append(e)}else $(".valid-cart-error .close").trigger("click");$(".checkout-btn").addClass("disabled")}else $(".checkout-btn").removeClass("disabled"),$(".valid-cart-error .close").trigger("click")},i.updateProductSummary=function(t){$(".order-product-summary .card-title a").empty().append(t.yourItemsLabel),$(".order-product-summary .details-container .qty").empty().append(t.inlineQtyLabel+": "+t.numItems),$(".order-product-summary .details-container .line-item-total-price-amount").empty().append(t.totals.grandTotalLessGiftCertificatePaymentInstrumentsFormatted)},i.init=function(){$("body").on("click",".remove-product",(function(e){e.preventDefault();var n=$(this).data("action"),i=$(this).data("pid"),r=$(this).data("name"),o=$(this).data("uuid");t.exports.confirmDelete(n,i,r,o)})),$("body").on("afterRemoveFromCart",(function(e,n){e.preventDefault(),t.exports.confirmDelete(n.actionUrl,n.productID,n.productName,n.uuid)})),$("body").on("click",".cart-delete-confirmation-btn",(function(e){e.preventDefault();var n=$(this).data("pid"),i=$(this).data("action"),r=$(this).data("uuid"),o={pid:n,uuid:r};i=t.exports.appendToUrl(i,o),$("body > .modal-backdrop").remove(),$("body").trigger("cart:beforeUpdate"),$.spinner().start(),$.ajax({url:i,type:"get",dataType:"json",success:function(e){if(e.toBeDeletedUUIDs&&e.toBeDeletedUUIDs.length>0)for(var n=0;n<e.toBeDeletedUUIDs.length;n++)$(".uuid-"+e.toBeDeletedUUIDs[n]).closest(".card").remove();$(".uuid-"+r).closest(".card").remove(),e.basket.hasBonusProduct||$(".bonus-product").remove(),$(".coupons-and-promos").empty().append(e.basket.totals.discountsHtml),t.exports.updateCartTotals(e.basket),t.exports.updateApproachingDiscounts(e.basket.approachingDiscounts),$("body").trigger("setShippingMethodSelection",e.basket),t.exports.validateBasket(e.basket),$("body").trigger("cart:update",[e,r]),$.spinner().stop()},error:function(e){e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$("body").on("quantityStepper:change",(function(t,e){var n=$(e),i=n.closest(".quantity-form").find(".quantity"),r=parseInt(n.find("input").val());i.find('option[value="'+r+'"]').prop("selected",!0),r>=n.data("modal-min")&&$("#quantityFormModal").modal("show")})),$("body").on("change",".quantity-form >
2 .quantity",(function(){var e=$(this).data("action");if(e){var n=$(this).data("pre-select-qty"),i=$(this).val(),r=$(this).data("pid"),o=$(this).data("uuid"),a={pid:r,quantity:i,uuid:o};e=t.exports.appendToUrl(e,a),$(this).parents(".cart-product-card").spinner().start(),$("body").trigger("cart:beforeUpdate"),$.ajax({url:e,type:"get",context:this,dataType:"json",success:function(e){$('.quantity[data-uuid="'+o+'"]').val(i),$(".coupons-and-promos").empty().append(e.totals.discountsHtml),t.exports.updateCartTotals(e),t.exports.updateProductSummary(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.updateAvailability(e,o),t.exports.validateBasket(e),$(this).data("pre-select-qty",i),$("body").trigger("cart:update",[e,o]),$.spinner().stop(),$(this).parents(".product-info").hasClass("bonus-product-line-item")&&$(".cart-page").length&&location.reload()},error:function(e){e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$(this).val(parseInt(n,10)),$.spinner().stop())}})}}
2)),$(".shippingMethods").change((function(){var e=$(this).attr("data-actionUrl"),n={methodID:$(this).find(":selected").attr("data-shipping-id")};$(".totals").spinner().start(),$("body").trigger("cart:beforeShippingMethodSelected"),$.ajax({url:e,type:"post",dataType:"json",data:n,success:function(e){e.error?window.location.href=e.redirectUrl:($(".coupons-and-promos").empty().append(e.totals.discountsHtml),t.exports.updateCartTotals(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.validateBasket(e)),$("body").trigger("cart:shippingMethodSelected",e),$.spinner().stop()},error:function(e){e.redirectUrl?window.location.href=e.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$(".promo-code-form").submit((function(e){if(e.preventDefault(),$.spinner().start(),$(".coupon-missing-error").hide(),$(".coupon-error-message").empty(),!$(".coupon-code-field").val())return $(".promo-code-form .form-control").addClass("is-invalid"),$(".promo-code-form .form-control").attr("aria-describedby","missingCouponCode"),$(".coupon-missing-error").show(),$.spinner().stop(),!1;var n=$(".promo-code-form");return $(".promo-code-form .form-control").removeClass("is-invalid"),$(".coupon-error-message").empty(),$("body").trigger("promotion:beforeUpdate"),$.ajax({url:n.attr("action"),type:"GET",dataType:"json",data:n.serialize(),success:function(e){e.error?($(".promo-code-form .form-control").addClass("is-invalid"),$(".promo-code-form .form-control").attr("aria-describedby","invalidCouponCode"),$(".coupon-error-message").empty().append(e.errorMessage),$("body").trigger("promotion:error",e)):($(".coupons-and-promos").empty().append(e.totals.discountsHtml),t.exports.updateCartTotals(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.validateBasket(e),$("body").trigger("promotion:success",e)),$(".coupon-code-field").val(""),$.spinner().stop()},error:function(e){$("body").trigger("promotion:error",e),e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.errorMessage),$.spinner().stop())}}),!1})),$("body").on("click",".remove-coupon",(function(t){t.preventDefault();var e=$(this).data("code"),n=$(this).data("uuid"),i=$(".delete-coupon-confirmation-btn"),r=$(".coupon-to-remove");i.data("uuid",n),i.data("code",e),r.empty().append(e)})),$("body").on("click",".delete-coupon-confirmation-btn",(function(e){e.preventDefault();var n=$(this).data("action"),i=$(this).data("uuid"),r={code:$(this).data("code"),uuid:i};n=t.exports.appendToUrl(n,r),$("body > .modal-backdrop").remove(),$.spinner().start(),$("body").trigger("promotion:beforeUpdate"),$.ajax({url:n,type:"get",dataType:"json",success:function(e){$(".coupon-uuid-"+i).remove(),t.exports.updateCartTotals(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.validateBasket(e),$.spinner().stop(),$("body").trigger("promotion:success",e)},error:function(e){$("body").trigger("promotion:error",e),e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$("body").on("click",".cart-page .bonus-product-button",(function(){$.spinner().start(),$(this).addClass("launched-modal"),$.ajax({url:$(this).data("url"),method:"GET",dataType:"json",success:function(t){$("body").trigger("bonusproduct:edit",t),$.spinner().stop()},error:function(){$.spinner().stop()}})})),$("body").on("click",".customized-image-launcher",(function(t){t.preventDefault();var e=$(t.target).closest(".item-image-container").find(".line-item-uuid").html();$('.modal[data-product="'+e+'"]').modal({backdrop:!1,show:!0})})),$("body").on("hidden.bs.modal","#chooseBonusProductModal",(function(){$("#chooseBonusProductModal").remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),$(".cart-page").length?($(".launched-modal .btn-outline-primary").trigger("focus"),$(".launched-modal").removeClass("launched-modal")):$(".product-detail .add-to-cart").focus()})),$("body").on("change",".quantity-select",(function(){var t=$(this).val();$(".modal.show .update-cart-url").data("quantity",t)})),$("body").on("change",".options-select",(function(){var t=$(this).children("option:selected").data("value-id");$(".modal.show .update-cart-url").data("selected-option-value-id",t)})),$("body").on("click",".update-cart-product-global",(function(e){e.preventDefault();var n=$(this).closest(".cart-and-ipay").find(".update-cart-url").val(),i=$(this).closest(".cart-and-ipay").find(".update-cart-url").data();i.pid=t.exports.getPidValue($(this)),$(this).parents(".card").spinner().start(),$("body").trigger("cart:beforeUpdate"),n&&$.ajax({url:n,type:"post",context:this,data:i,dataType:"json",success:function(e){$("#quickViewModal").modal("hide"),$(".coupons-and-promos").empty().append(e.cartModel.totals.discountsHtml),t.exp
2orts.updateCartTotals(e.cartModel),t.exports.updateApproachingDiscounts(e.cartModel.approachingDiscounts),t.exports.updateAvailability(e.cartModel,i.uuid),t.exports.updateProductDetails(e,i.uuid),e.uuidToBeDeleted&&$(".uuid-"+e.uuidToBeDeleted).remove(),t.exports.validateBasket(e.cartModel),$("body").trigger("cart:update",[e,i.uuid]),$.spinner().stop()},error:function(e){e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$("body").on("product:afterAddToCartQuickview",(function(){"Cart-Show"==$("body").find(".page").data("action")&&location.reload()})),$("body").on("click","a.edit.editGiftCertificateLineItem",(function(t){t.preventDefault();var e=$(this),n=e.data("uuid"),i=e.parents(".product-info.uuid-"+n),r=i.find(".dwfrm_giftCertificate_purchase_from-"+n).data("value"),o=i.find(".dwfrm_giftCertificate_purchase_recipient-"+n).data("value"),a=i.find(".dwfrm_giftCertificate_purchase_recipientEmail-"+n).data("value"),s=i.find(".dwfrm_giftCertificate_purchase_message-"+n).attr("title"),l=i.find(".pricing.item-total-"+n).data("value"),c=$("#editGiftCertificateLineItemModal");c.find("#from").attr("value",r),c.find("#recipient").attr("value",o),c.find("#recipientEmail").attr("value",a),c.find("#confirmRecipientEmail").attr("value",a),c.find("#message").html(s||""),c.find("#amount").attr("value",(""+l||"0.0").split(".")[0]),c.find(".btn-update-giftcertificate-incart").attr("data-uuid",n),c.find(".btn-update-giftcertificate-incart").data("uuid",n)}
2)),$("body").on("cart:saveforlater:update",(function(t){r.enableQuantitySteppers()}))},t.exports=i},35180:t=>{t.exports={checkoutSpinner:function(){$("body").on("checkout:disableButton",(function(t,e){$.spinner().start()})),$("body").on("checkout:enableButton",(function(t,e){$.spinner().stop()}))}}},54895:t=>{t.exports={cardNumberJson:{visa:"^4[0-9]{12}(?:[0-9]{3})?$",mastercard:"^5[1-5][0-9]{14}$",master:"^5[1-5][0-9]{14}$",mc:"^5[1-5][0-9]{14}$","american express":"^3[47][0-9]{13}$",amex:"^3[47][0-9]{13}$","diners club":"^3(?:0[0-5]|[68][0-9])[0-9]{11}$",dinersclub:"^3(?:0[0-5]|[68][0-9])[0-9]{11}$",diners:"^3(?:0[0-5]|[68][0-9])[0-9]{11}$",discover:"^6(?:011|5[0-9]{2})[0-9]{12}$",jcb:"^(?:2131|1800|35d{3})d{11}$",maestro:"^(5018|5020|503[3-8]|5868|5893|6304|6759|676[1-3])[0-9]{12}$"},getCardType:function(t){var e=null;for(var n in t=t.replace(/\s/g,""),this.cardNumberJson)if(new RegExp(this.cardNumberJson[n]).test(t)){e=n;break}return e}}},51341:(t,e,n)=>{var i=n(66280);t.exports={updateShippingMethods:function(){$(".shipping-method-block").each((function(){var t=$(this);t.addClass(1==t.find("input[id^=isResidentialAddress").prop("checked")?"residential-address-selected":"business-address-selected")})),$("body").on("checkout:updateCheckoutView",(function(t,e){e.order.shipping.forEach((function(t){i.methods.updateShippingInformation(t,e.order,e.customer,e.options)}))})),$("body").on("shipping:updateShippingMethods",(function(t,e){if(e&&e.shipping&&e.shipping.applicableShippingMethods){var n=!1;e.shipping.applicableShippingMethods.forEach((function(t){t.isBusinessMethod&&(n=!0),$("[value="+t.ID+"]").parent().parent().addClass(t.isBusinessMethod?"business-shipping-method":"residential-shipping-method"),$("[value="+t.ID+"]").parent().parent().next().addClass(t.isBusinessMethod?"business-shipping-method":"residential-shipping-method")})),n?$(".business-method-row").removeClass("d-none"):$(".business-method-row").addClass("d-none")}e&&e.shipping&&e.shipping.selectedShippingMethod&&e.shipping.selectedShippingMethod.isBusinessMethod?$("#isBusinessAddress").prop("checked",!0).change():$("#isResidentialAddress").prop("checked",!0).change()})),$("body").on("change",".shipping-method-residential-business input",(function(t){var e=$(this).val(),n=$("input:checked",".shipping-method-list").parent().parent().hasClass("business-shipping-method")?"business":"residential",i=$(this).closest(".shipping-method-block");"business"===e?(i.removeClass("residential-address-selected"),i.addClass("business-address-selected"),"business"!==n&&$(".shipping-method-list .business-shipping-method").first().find("input").prop("checked",!0).change(),0===i.find(".business-shipping-method").length?i.addClass("business-methods-unavailable"):i.removeClass("business-methods-unavailable")):(i.removeClass("business-address-selected"),i.addClass("residential-address-selected"),"residential"!==n&&$(".shipping-method-list .residential-shipping-method").first().find("input").prop("checked",!0).change(),0===i.find(".residential-shipping-method").length?i.addClass("residential-methods-unavailable"):i.removeClass("residential-methods-unavailable"))}))}}},2801:t=>{t.exports={taxConfirmationModal:function(){$("body").on("checkout:taxConfirmationModal",(function(t,e){if(e&&e.order&&e.order.mojoTaxInfo&&e.order.mojoTaxInfo.geocode&&e.order.mojoTaxInfo.geocode.multipleFound){var n=$("#taxConfirmationModal"),i=n.find(".geocode-options-container"),r=n.find(".geocode-city-zip-message"),o=n.find(".geocode-continue-button"),a=!0,s=e.order.mojoTaxInfo.multipleGeocodes,l=e.order.mojoTaxInfo.updateGeocodeAction;o.prop("disabled",!0),i.html(""),s.forEach((function(t){i.append('<label class="d-block'+(t.closestMatch?" mb-3 pb-3 border-bottom":"")+'"><input type="radio" name="geocode" value="'+t.value+'" class="card-input-element d-none" id="geocode'+t.value+'"><div class="card bg-light my-2">'+(null!==t.county?t.county:t.city)+(t.closestMatch?'<div class="position-absolute" style="right:20px">*</div>':"")+"</div></label>")})),r.html("We found multiple counties associated with <strong>"+e.order.mojoTaxInfo.city+"</strong>, <strong>"+e.order.mojoTaxInfo.postalCode+"</strong>"),n.off().on("hide.bs.modal",(function(t){!0===a&&$(".customer-summary .edit-button").trigger("click")})),$(".edit-shipping-button").off().on("click",(function(){n.modal("hide")})),i.find('[name="geocode"]').on("change",(function(){o.prop("disabled",!1)})),o.off().on("click",(function(){$.spinner().start();var t=i.find('[name="geocode"]:checked').val();$.ajax({type:"POST",async:!1,url:l,data:{geocode:t},success:function(t){$("body").trigger("checkout:updateCheckoutView",t),a=!1,$.spinner().stop(),n.modal("hide")}})})),n.modal("show")}}));var t=$("#taxConfirmationModal").data("mojo-tax-info");t&&t.geocode&&t.geocode.multipleFound&&$("body").trigger("checkout:taxConfirmationModal",{order:{mojoTaxInfo:t}})},updateCheckoutView:function(){$("body").on("checkout:updateCheckoutView",(function(t,e){$("body").trigger("checkout:taxConfirmationModal",e)}))}}},74978:t=>{t.exports=function(){var t=$(".bisn-container"),e=t.find("#bisn-form"),n=t.find(".bisn-link"),i=t.find(".bisn-product-id"),r=t.find(".bisn-form-container"),o=t.find(".bisn-form-message"),a=o.find(".bisn-form-message-text"),s=o.find(".bisn-form-message-icon"),l=e.find('input[name="bisnEmail"]');function c(){o.addClass("hide"),l.val(""),a.text(""),s.removeClass("icon-alert icon-check"),o.removeClass("success eror").addClass("hide"),l.removeClass("is-valid is-invalid")}function u(t){var e=t||"error",n={error:window.CachedData.bisn.errorMsg,invali
2d:window.CachedData.bisn.invalidMsg}[e];a.text(n),s.addClass("icon-"+("error"===e?"alert":"check")).removeClass("icon-"+("error"===e?"check":"alert")),o.addClass(e).removeClass("hide"),l.addClass("is-invalid").removeClass("is-valid")}c(),$("body").on("product:updateAddToCart",(function(e,n){c(),t.length&&(n.product.isVariant&&!n.product.available?t.removeClass("hide"):t.addClass("hide"),i.length&&i.val(n.product.id))})),n.length&&(e.on("submit",(function(t){t.preventDefault();var e=$(this);""!==i.val()&&""!==l.val()&&$.ajax({url:e.attr("action"),type:"post",dataType:"json",data:e.serialize(),success:function(t){t.success?(a.text(window.CachedData.bisn.successMsg),s.addClass("icon-check").removeClass("icon-alert"),o.addClass("success").removeClass("hide"),l.addClass("is-valid").removeClass("is-invalid")):u("error")},error:function(t){u("error")}})})),n.on("click",(function(t){t.preventDefault(),c(),r.toggleClass("hide")})))}},62872:(t,e,n)=>{n(60950);var i=function(){return $(".selectpicker").selectpicker("render")};try{i()}catch(t){var r,o;null===(r=window.console)||void 0===r||null===(o=r.log)||void 0===o||o.call(r,t);try{setTimeout(i,0)}catch(t){var a,s;null===(a=window.console)||void 0===a||null===(s=a.error)||void 0===s||s.call(a,t)}}t.exports={methods:{init:i},updateValidity:function(){$(".selectpicker").on("changed.bs.select",(function(){this.checkValidity()&&$(this).removeClass("is-invalid")}))}}},49646:t=>{var e=$("#compare-toolbar-container"),n=$("#compareModal");function i(t){if(t.length)return t.data("compare-info")}function r(t){if(t.length){var n=i(t),r=e.find(".toolbar").data("remove-compare-url");$.spinner().start(),$.ajax({url:r,type:"post",dataType:"json",data:n,success:function(t){t.success?o():s(t)},error:function(t){$.spinner().stop()}})}}function o(){var t=e.find(".toolbar").data("reload-url");$.ajax({url:t,type:"get",success:function(t){var n=$(t),i=n.find(".compare-items-list").html(),r=n.attr("class");e.find(".toolbar").attr("class",r).find(".compare-items-list").html(i),a(),$.spinner().stop()},error:function(t){$.spinner().stop()}})}function a(){var t=e.find(".toolbar").find(".compare-item.active"),n=$("#product-search-results").find(".product-compare-checkbox");n.find("input").prop("checked",!1),t.each((function(){var t=$(this).data("compare-info");t&&t.id&&n.find('input[data-id="'+t.id+'"]').prop("checked",!0)})),4===t.length?$(".product-compare-checkbox").addClass(".compare-limit-reached").prop("disabled","disabled"):$(".product-compare-checkbox.compare-limit-reached").removeAttr("disabled")}function s(t){!function(t){var e;$.spinner().stop(),e=t.success?"alert-success":"alert-danger",0===$(".add-to-wishlist-messages").length&&$("body").append('<div class="add-to-wishlist-messages "></div>'),$(".add-to-wishlist-messages").append('<div class="add-to-wishlist-alert text-center '+e+'">'+t.msg+"</div>"),setTimeout((function(){$(".add-to-wishlist-messages").remove()}),5e3)}({success:t.success,msg:t.error&&t.error[0]?t.error[0]:"And unknown error has occured, please refresh and try again."}),a()}function l(){$.spinner().start();var t=n.data("body-url");$.ajax({url:t,type:"get",success:function(t){n.find(".modal-body").html(t),$('#compareModal [data-toggle="tooltip"]').tooltip(),n.modal("show"),$.spinner().stop()},error:function(t){$.spinner().stop()}})}t.exports={addRemoveItem:function(){$("#product-search-results").on("change",".product-compare-checkbox input",(function(){this.checked?function(t){if(t.length){var e=i(t),n=t.data("add-compare-url");$.spinner().start(),$.ajax({url:n,type:"post",dataType:"json",data:e,success:function(t){t.success?o():s(t)},error:function(t){$.spinner().stop()}})}}($(this).parents(".product-tile")):r($(this).parents(".product-tile"))}))},removeItem:function(){e.on("click",".compare-item.active",(function(t){t.preventDefault(),r($(this))}))},clearAllItems:function(){e.on("click",".clear-all-tems",(function(t){var e;t.preventDefault(),e=$(this).data("href"),$.spinner().start(),$.ajax({url:e,type:"post",dataType:"json",success:function(t){t.success?o():s(t)},error:function(t){$.spinner().stop()}})}))},showCompareModal:function(){e.on("click",".compare-items-button",l)},closeCompareModal:function(){n.on("click",".close-modal",(function(){n.modal("hide")}))},hideCheckboxes:function(){0===e.length&&$(".product-compare-checkbox").hide()},fixCompareModalSizes:function(){n.on("shown.bs.modal",(function(){var t=n.find(".modal
2-body"),e=t.find(".add-item-placeholder"),i=t.find(".image-container").length?t.find(".image-container").first().outerHeight():null;i&&(e.css("height",i+"px"),e.css("line-height",i+"px"));var r=0;t.find(".product").each((function(){$(this).outerHeight()>r&&(r=$(this).outerHeight())})).height(r);var o={},a=t.find("dl");a.each((function(){$(this).find("dd").each((function(t){var e=$(this).outerHeight(),n=$(this).index()+1;(!(n in o)||o[n]<e)&&(o[n]=e)}))})),Object.keys(o).forEach((function(t){a.find("dd:nth-child(".concat(t,")")).css("height",o[t]+"px")}))}))}}},44091:function(t){var e=this,n={getString:function(t){return'<div class="consent-drawer" id="consent-tracking" role="dialog" data-url-accept="'.concat(t,'"></div>')},showConsentDrawer:function(t){if(-1===[void 0,null].indexOf(t)&&t.data("caonline")){var e=t.data("accept"),i=n.getString(e);$("body").append(i);var r=$("#consent-tracking"),o=$("#consent-content");r.append(o.children()),r.find(".button-accept").on("click.consenttrackingdrawer ",(function(t){t.preventDefault();var e=$(t.target).closest("[data-url-accept]").data("url-accept");$.ajax({url:e,type:"get",dataType:"json",context:r,complete:function(){this.remove()},error:function(){this.remove()}})}))}},init:function(){var t=$(".tracking-consent");0===$(".consented").length&&t.hasClass("api-true")&&n.showConsentDrawer(t),t.each((function(t,i){var r=$(e);r.hasClass("api-true")&&r.on("click.consenttracking ",(function(){n.showConsentDrawer(r)}))}))}};t.exports=n},18400:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(12196),o=n(42124),a=n(57280);t.exports={},t.exports.loadRecommendations=function(e){var n,s=arguments,l=this;if("object"===i(r.getEinsteinUtils())){var c=$(l);return(c.hasClass(".einstein-data")?c:c.find(".einstein-data")).each((function(){var t=$(this),e=t.data()||{},n=e.url;r.getRecommendations(e,(function(i){var s=r.interpretResponse(e,i);$.each(s,(function(e,i){if(!i||!i.id)return null;var r=n;r+=(-1===r.indexOf("?")?"?":"&")+"pid="+i.id,t.find('.product[data-pid="placeholder"]:not([data-replace-content])').first().attr("data-replace-content",r)})),t.find('.slide:has(.product[data-pid="placeholder"]:not([data-replace-content]))').remove();var l=t.closest(".slider-container").removeClass("delay-init");$('[data-action="Cart-Show"]').length>0&&t.children(".slide").length<1&&(l.prev(".slider-title").addClass("d-none"),l.closest(".cart-recommendations").css({border:"none"})),o.init(t.find(".product"),(function(t){var e=t.errors>0?l.data("tns"):null;e&&(e.destroy(),e=e.rebuild(),l.data("tns",e))})),a.initializeSliders(l.parent())}))}))}"complete"!==document.readyState?("interactive"!==document.readyState?document:window).addEventListener("loading"===document.readyState?"DOMContentLoaded":"load",(function(){t.exports.loadRecommendations.apply(l,Array.from(s))})):null===(n=window.console)||void 0===n||n.error("Einstien Utilities are not available.",document.readyState+"")},t.exports.init=function(e){return $(document).off("load.einstein").on("load.einstein",t.exports.loadRecommendations),(e=e&&"trigger"in e?e:$(document)).triggerHandler("load.einstein")}},68639:t=>{t.exports={emailSignupModalPop:function(){var t=$(".emailSignupModalSettings");if(0!==t.length){var e=t.data("action-url");$.ajax({type:"GET",url:e,success:function(t){if(t.success){var e=t.emailSignupModal;if(e){if(e.emailAutoPopupEnabled&&e.thisPageIsEligible){$("#mailingListDetailsModal").on("show.bs.modal",(function(){return $.ajax({type:"POST",url:e.openAutoModalUrl,error:function(t){window.console.error("Email Signup Auto Modal Notification Failed",t)}})}));var n=1e3*e.emailAutoPopupDelaySeconds;$("#mailingListDetailsModal .modal-body").addClass("d-none"),$("#mailingListDetailsModal .modal-body.signup-first-step").removeClass("d-none"),$("#mailingListDetailsModal .modal-title").addClass("d-none"),$("#mailingListDetailsModal .modal-title.signup-first-step").removeClass("d-none");var i=!1,r=setInterval((function(){var t=!1,e=document.getElementsByClassName("search-field");e&&e.length>0&&(t=e[0].checkVisibility()),!1===t&&!1===i&&($("#mailingListDetailsModal").modal(),i=!0,clearInterval(r))}),n,i,r);setTimeout((function(){clearInterval(r)}),5*n),$("#mailingListDetailsModal").on("hidden.bs.modal",(function(){$("#mailingListDetailsModal .modal-body").addClass("d-none"),$("#mailingListDetailsModal .modal-body.signup-detail
2s-form").removeClass("d-none"),$("#mailingListDetailsModal .modal-title").addClass("d-none"),$("#mailingListDetailsModal .modal-title.signup-details").removeClass("d-none")}))}e.emailButtonEnabled&&e.thisPageIsEligibleForButton&&($(".email-signup-button").data("closeButtonUrl",e.closeButtonUrl),$(".email-signup-button").show())}}},error:function(t){window.console.error("Email Signup Modal Failed",t)}})}},emailModalButton:function(){var t=function(){$(".email-signup-button").hide();var t=$(".email-signup-button").data("closeButtonUrl");if(t)return $.ajax({type:"POST",url:t,error:function(t){window.console.error("Email Signup Close Failed",t)}})};$(".email-signup-button-content, .email-signup-button-arrow").click((function(){$("#mailingListDetailsModal .modal-body").addClass("d-none"),$("#mailingListDetailsModal .modal-body.signup-first-step").removeClass("d-none"),$("#mailingListDetailsModal .modal-title").addClass("d-none"),$("#mailingListDetailsModal .modal-title.signup-first-step").removeClass("d-none"),$("#mailingListDetailsModal").modal()})),$(".email-signup-button-close").click((function(){t()})),$("#mailingListDetailsModal").on("hide.bs.modal",(function(){$("#mailingListDetailsModal .modal-body.signup-first-step").hasClass("d-none")&&t()}))}}},43616:(t,e,n)=>{var i=n(54895);t.exports=function(){var t=function(t){var r=this.name,o=$(this),a=o.closest(".form-group");if(o.removeClass("is-invalid"),a.removeClass("is-validation-ok is-validation-error"),this.checkValidity()){if(r.endsWith("_passwordconfirm")){var s=$("[name$=_password]");s.length&&s.val()===o.val()?(e(o),e(s)):(n(o),n(s))}else if(r.endsWith("_customer_emailconfirm")){var l=$("[name$=_customer_email]");l.length&&l.val()===o.val()?(e(o),e(l)):(n(o),n(l))}else if(r.endsWith("_newpasswordconfirm")){var c=$("[name$=_newpassword]");c.length&&c.val()===o.val()?(e(o),e(c)):(n(o),n(c))}else""!==o.val()&&e(o);if(r.endsWith("_expirationMonth")||r.endsWith("_expirationYear")){var u=$("[name$=_expirationMonth]"),d=$("[name$=_expirationYear]"),h=parseInt(u.val()),p=parseInt(d.val()),f=(new Date).getFullYear();h<=(new Date).getMonth()&&p<=f?(n(u),n(d)):(e(u),e(d))}if(r.endsWith("_cardNumber")){var m=$("[name$=_cardNumber]"),g=m.val();i.getCardType(g)?e(m):n(m)}}else r.endsWith("_emailSignup_email")?""!==o.val()&&n(o):n(o)},e=function(t){if(void 0!==t){t.removeClass("is-invalid").addClass("is-valid");var e=t.closest(".form-group");e.length&&e.removeClass("is-validation-error").addClass("is-validation-ok")}},n=function(t){if(void 0!==t){t.removeClass("is-valid").addClass("is-invalid");var e=t.closest(".form-group");e.length&&e.removeClass("is-validation-ok").addClass("is-validation-error")}},r=$("form.form-with-validation-icons");r.on("focusout","input, select",t),r.on("custom:formValidationIcons",(function(){$(this).find("input, select").each(t)})),r.find('button[type="submit"]').on("click",(function(){$(this).closest("form").find("input, select").each(t)})),r.find('input[name$="_postalCode"]').on("keyup",(function(){var t=$(this);t.val(t.val().toUpperCase())}))}},96405:t=>{t.exports=function(){var t=window.isMobile();if($("header").hasClass("transparent-header")&&!t&&($(".header-nav").hover((function(){$(this).removeClass("transparent-nav")}),(function(){0==window.scrollY&&$(this).addClass("transparent-nav")})),$(window).on("scroll",(function(){0==window.scrollY?$(".header-nav").addClass("transparent-nav"):$(".header-nav").removeClass("transparent-nav")}))),$(".megamenu > .dropdown-menu").each((function(t,e){var n=$(e);n.find(".megamenu-asset-1").children().length&&n.addClass("has-asset-1"),n.find(".megamenu-asset-2").children().length&&n.addClass("has-asset-2")})),t){var e=$(".megamenu .menu-subcategories > .dropdown-item");$(".megamenu .menu-subcategories > .dropdown-item > .dropdown-link").on("click",(function(){$(".megamenu.show .menu-subcategories").addClass("thirdCatOpen")})),e.on("click",(function(){$(".megamenu.show .menu-subcategories").removeClass("thirdCatOpen")}))}$(".main-menu").on("mouseenter mouseleave",".navbar-nav",(function(){$(this).toggleClass("nav-item-hover")})),$("header .site-search").on("mouseenter",(function(t){$(t.target).closest(".site-search").addClass("expanded")})),$("header .site-search").on("mouseleave",(function(t){var e=$
2(t.target).closest(".site-search"),n=e.find("input");n.is(":focus")||n.val()||e.removeClass("expanded")})),$("#headerSearchModal").on("shown.bs.modal",(function(){$(".search-field").trigger("focus")})).on("show.bs.modal",(function(){$(document.body).addClass("show-header-search-modal")})).on("hidden.bs.modal",(function(){$(document.body).removeClass("show-header-search-modal")})),$("form[name=simpleSearch]").on("submit",(function(t){var e=$(t.target),n=$("input[name=q]",e);""==n.val()&&(n.focus(),t.preventDefault())}));var n=$(".legacy-megamenu");if(t&&n.length>0){var i=n.parent();n.find('.custom-dropdown:not(.disabled) [data-toggle="dropdown"]').on("click",(function(){i.addClass("overflow-hidden")})),n.on("click",".back",(function(){i.removeClass("overflow-hidden")}))}}},79109:t=>{t.exports=function(){$(document).ready((function(){var t=window.location.href;$(".horizontal-tab-link").each((function(){var e=$(this).attr("href");t.includes(e)&&$(this).addClass("active")}))}))}},80270:(t,e,n)=>{var i=n(44893);t.exports={initCollectUtils:function(){i.mcEnabled&&(window.collect=i.collectjs)},trackPageLoad:function(){i.mcEnabled&&$(window).on("load",window.collect.pageload)},trackAddToCart:function(){i.mcEnabled&&$("body").on("product:afterAddToCart",(function(t,e){window.collect.trackCart()}))},trackAddBonusProduct:function(){i.mcEnabled&&$("body").on("product:afterAddBonusProduct",(function(t,e){window.collect.trackCart()}))},trackCartUpdate:function(){i.mcEnabled&&$("body").on("cart:update",(function(t,e){window.collect.trackCart()}))},trackSaveForLater:function(){i.mcEnabled&&$("body").on("cart:saveforlater:update",(function(t,e){window.collect.trackCart()}))},loginSetUserInfo:function(){i.mcEnabled&&$("form.login").on("login:success",(function(t,e){e&&e.contactId&&window.collect.setUserInfo(e.contactId)}))},registerSetUserInfo:function(){i.mcEnabled&&$("form.registration").on("login:register:success",(function(t,e){e&&e.contactId&&window.collect.setUserInfo(e.contactId),e&&e.email&&window.collect.setUserInfo(e.email)}))},emailSignUpSetUserInfo:function(){i.mcEnabled&&$("body").on("emailsignup:success",(function(t,e){e&&e.email&&window.collect.setUserInfo(e.email)}))}}},44893:t=>{window._etmc=window._etmc||[],t.exports={collectjs:{pageload:function(){var e={};if(_etmc.push(["setOrgId",t.exports.data.mid]),$(".page[data-action*=Product-Show]").length){var n=$(".style-number");n.length&&(e={item:$(n[0]).text()})}if($(".page[data-action=Order-Confirm]").length){var i=$("#ordernumber").val();t.exports.data.orderUrl&&$.ajax({url:t.exports.data.orderUrl,method:"GET",dataType:"json",data:{id:i},success:function(t){t.items&&t.items.length>0&&_etmc.push(["trackConversion",{cart:t.items,order_number:i,discount:t.discount,shipping:t.shipping,details:{total:t.total}}])},error:function(t){}})}if($(".page[data-action=Search-Show]").length){var r=$("[data-category-search]").data("category-search")||!1,o=$("[data-category-id]").data("category-id")||"",a=$("[data-search-keyword]").data("search-keyword")||"";e=r?{category:o}:{search:a}}_etmc.push(["trackPageView",e])},setUserInfo:function(e){e&&(t.exports.data.contactId=e),t.exports.data.contactId||(t.exports.data.contactId=window.localStorage.getItem("vfwContactId")),t.exports.data.contactId&&(_etmc.push(["setUserInfo",{email:t.exports.data.contactId}]),_etmc.push(["trackPageView"]))},trackCart:function(){t.exports.data.cartItemsUrl&&$.ajax({url:t.exports.data.cartItemsUrl,method:"GET",dataType:"json",success:function(t){t.items&&t.items.length>0?_etmc.push(["trackCart",{cart:t.items}]):t.items&&0===t.items.length&&_etmc.push(["trackCart",{clear_cart:!0}])},error:function(t){}})}}},Object.defineProperties(t.exports,{data:{enumerable:!0,get:function(){var t,e;return Object.assign({},(null===(t=window.CachedData)||void 0===t?void 0:t.mcloud)||{},(null===(e=window.UncachedData)||void 0===e?void 0:e.mcloud)||{})},writeable:!0},mcEnabled:{enumerable:!0,get:function(){return t.exports.data.mcEnabled}}})},22933:(t,e,n)=>{var i=function(){var t=$(".page").css("padding-top");if(t&&t.includes("px")){t=Number(t.slice(0,-2));
2var e=$(".fixed-header").height();Math.abs(e-t)>=2&&$(".page").css("padding-top",e+"px")}else clearInterval(headerResizeTimer)};try{new ResizeObserver(i).observe(document.querySelector(".fixed-header"))}catch(t){var r;null===(r=window.console)||void 0===r||r.warn("ResizeObserver is not supported in this browser. Fixed header margin may not adjust correctly on resize.");var o=setInterval(i,500);window.addEventListener("load",(function(){clearInterval(o)}))}window.addEventListener("load",i),t.exports=n(37156)},21130:(t,e,n)=>{n(62074);var i=!0;t.exports=function(){$(".minicart").on("count:update",(function(t,e){e&&$.isNumeric(e.quantityTotal)&&($(".minicart .minicart-quantity").text(e.quantityTotal).attr("data-quantity",e.quantityTotal),$(".minicart .minicart-link").attr({"aria-label":e.minicartCountOfItems,title:e.minicartCountOfItems}))})),$(".minicart").on("mouseenter focusin touchstart",(function(){var t=$("#addedToCartModal").hasClass("show");if(!(window.isMobile()||t||$(".data-checkout-stage").length>0)){var e=$(".minicart").data("action-url");if(0!==parseInt($(".minicart .minicart-quantity").text(),10)&&0===$(".minicart .popover.show").length){if(!i)return void $(".minicart .popover").addClass("show");$(".minicart .popover").addClass("show"),$(".minicart .popover").spinner().start(),$.get(e,(function(t){$(".minicart .popover").empty(),$(".minicart .popover").append(t),i=!1,$.spinner().stop(),$("body").trigger("minicart:loaded",$(".minicart .popover"))}))}}})),$("body").on("touchstart click",(function(t){$(".minicart").has(t.target).length<=0&&$(".minicart .popover").removeClass("show")})),$(".minicart").on("mouseleave focusout",(function(t){"focusout"===t.type&&$(".minicart").has(t.target).length>0||"mouseleave"===t.type&&$(t.target).is(".minicart .quantity")||$("body").hasClass("modal-open")?t.stopPropagation():$(".minicart .popover").removeClass("show")})),$("body").on("change",".minicart .quantity",(function(t){$(t.target).parents(".bonus-product-line-item").length&&$(".cart-page").length&&location.reload()})),$("body").on("product:afterAddToCart cart:update",(function(){i=!0})),$("body").on("minicart:loaded",(function(t,e){!function(t){var e=$(t),n=e.find(".product-summary"),i=e.outerHeight()-n.outerHeight(),r=e.offset().top-$(window).scrollTop()+i;n.css("max-height","calc(100vh - "+r+"px)")}(e)}))}},26085:(t,e,n)=>{var i=n(64786);function r(){$("body").on("modal:loaded",(function(t,e){var n=$(e);(n.find(".modal-scrollbody").length||n.find(".choose-bonus-product-dialog").length)&&i.setModalBodyMaxHeight(n)}))}i.onModalLoaded=r,i.init=function(){$("body").on("shown.bs.modal",".modal",(function(){$("body").trigger("modal:loaded",this)})),r(),$("body").on("click",".custom-modal",(function(t){t.preventDefault();var e=$(this).attr("data-cid"),n=$(this).attr("data-title"),i=$(this).attr("data-dialog-classes"),r=$(this).attr("href");getModalHtmlElement("customModal",i),fillModalElement(r,{cid:e,title:n},$("#customModal"))})),$("body").on("hidden.bs.modal",".modal",(function(){$(".modal:visible").length>0&&!$("body").hasClass("modal-open")&&$("body").addClass("modal-open")}))},t.exports=i},42124:t=>{var e=[null,null,null,null,null],n=0;t.exports={selectors:{processing:".processing",sending:".sending"},init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$(".product[data-replace-content], .product [data-replace-content]"),i=arguments.length>1?arguments[1]:void 0,r=this,o=0;t.filter(":not("+r.selectors.processing+")").each((function(t,i){var a=$(i),s=a.data("replace-content")||a.attr("data-replace-content"),l=$.Deferred();-1===["",null,void 0].indexOf(s)&&(a.data("deferment",l),e[n]=(e[n]||$.when()).then((function(){return a.data("$xhr",$.ajax({url:s,dataType:"html",timeout:6e4,context:a,beforeSend:function(){this.addClass(r.selectors.sending.replace(/\./gi," "))},error:function(){this.parent(".slide").add(this).eq(0).remove(),o++},success:function(t){""!==t&&""!==t&&null!==t?this.replaceWith(t):this.parent(".slide").add(this).eq(0).remove(),$("body").trigger("tooltip:init")},complete:function(){l.resolve()}})),l})),n=(n+1)%e.length)})),i&&$.when.apply($,e).then((function(){return i.call(null,{errors:o})}))}}},33127:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(37174),o=$(".suggestions-wrapper").data("url");function a(t){return $(t).closest(".modal-content").find(".suggestions-wrapper")}function s(t){return!!$(t).closest(".search-mobile").length}function l(){$("body").removeClass("modal-open"),$("header").siblings().attr("aria-hidden","false"),$(".suggestions").removeClass("modal")}function c(t){var e=".search-mobile button.",n="fa-search",i="fa-close";"close"===t?$(e+n).removeClass(n).addClass(i).attr("type","button"):$(e+i).removeClass(i).addClass(n).attr("type","submit")}function u(t){$(t).scrollTop()+$(t).innerHeight()>=$(t)[0].scrollHeight?$(".more-below").fadeOut():$(".more-below").fadeIn()}function d(t){var e,n,r,o,l,d=a(this).empty();if($.spinner().stop(),"object"!==i(t)){d.append(t).show(),$(this).siblings(".reset-button").addClass("d-sm-block"),s(e=this)&&(l=(r=$(e)).offset().top,n=r.outerHeight(),(o=a(e).find(".suggestions")).css("top",l+n),u(e),o.scroll((function(){u(this)}))),function(t,e){if($(t).val().length>0){var n=$(t).val(),i=n.length;e.find(".searches__item a").each((function(t,e){var r=$.trim($(e).text()),o=r.indexOf(n);o>=0&&((r=r.split("")).splice(i,0,"</span>"),r.splice(o,0,'<span class="highlight">'),$(e).html(r.join("")))}))}}(this,d),s(this)&&(c("close"),function(t){s(t)&&($("body").addClass("modal-open"),$("header").siblings().attr("aria-hidden","true"),a(t).find(".suggestions").addClass("modal"))}(this));var h=$(".suggestions .item");$(h).length?$("input.search-field").attr("aria-describedby","search-result-count"):$("input.search-field").removeAttr("aria-describedby")}else d.hide()}function h(t,e){$(t).val().length>
2=1||"focus"===e.type?$.ajax({context:t,url:o+encodeURIComponent($(t).val()),method:"GET",success:d,error:function(){$.spinner().stop()}}):(c("search"),$(t).siblings(".reset-button").removeClass("d-sm-block"),l(),a(t).empty())}function p(t){var e=$(".suggestions .item");0===e.filter(".selected").length?(e.first().addClass("selected"),$("input.search-field").each((function(){$(this).attr("aria-activedescendant",e.first()[0].id)}))):e.each((function(n){var i=n+t;return!$(this).hasClass("selected")||($(this).removeClass("selected"),$(this).removeAttr("aria-selected"),0!==e.eq(i).length?(e.eq(i).addClass("selected"),e.eq(i).attr("aria-selected",!0),$(this).removeProp("aria-selected"),$("input.search-field").each((function(){$(this).attr("aria-activedescendant",e.eq(i)[0].id)}))):(e.first().addClass("selected"),e.first().attr("aria-selected",!0),$("input.search-field").each((function(){$(this).attr("aria-activedescendant",e.first()[0].id)}))),!1)}))}t.exports=function(){$('form[name="simpleSearch"]').submit((function(t){var e=$(".suggestions .item");0!==e.filter(".selected").length&&(t.preventDefault(),e.filter(".selected").find("a")[0].click())})),$("input.search-field").each((function(){var t=r(h,300);$(this).on("keyup focus",(function(e){switch(e.which){case 40:p(1),e.preventDefault();break;case 38:p(-1),e.preventDefault();break;default:t(this,e)}}))})),$("body").on("click",(function(t){$(".suggestions").has(t.target).length||$(t.target).hasClass("search-field")||$(".suggestions").hide()})),$("body").on("click touchend",".search-mobile button.fa-close",(function(t){t.preventDefault(),$(".suggestions").hide(),c("search"),$("input.search-field").val(""),l(),$(".search-mobile .suggestions").unbind("scroll"),$(".suggestions-wrapper").empty()})),$(".site-search .reset-button").on("click",(function(){$(this).removeClass("d-sm-block")}))}},88491:(t,e,n)=>{var i=n(5816),r=n(57280);r.historySliderInit=function(t,e){var n=i.tns(e);if(n){n.events.on("transitionStart",this.slideIntoView),this.bindPauseButton(t,n),this.bindSliderUpdateEvent(t,n),this.enableImageZoom(t),this.handleThumbnailArrows(t,n),this.handleSliderVideos(t,n),$("body").trigger("slider:init.sliderEvents",[t]);var r=t.closest(".js-history-slider");r.find(".js-history-slider-prev").on("click",(function(t){n.goTo("prev")})),r.find(".js-history-slider-next").on("click",(function(t){n.goTo("next")}));var o=function(t){var e=$(t.slideItems[t.index]).children();r.find(".js-history-slide-title").text(e.data("title")),r.find(".js-history-slide-subtitle").text(e.data("subtitle"));var n=r.find(".js-history-slider-indicators").children();n.removeClass("history-slider-indicator--active"),$(n[t.displayIndex-1]).addClass("history-slider-indicator--active")};n.events.on("transitionStart",(function(t,e){o(t)})),o(n.getInfo());for(var a=n.getInfo().pages,s=r.find(".js-history-slider-indicators"),l=0;l<a;l++){var c=$('<div data-index="'.concat(l,'" class="history-slider-indicator').concat(0===l?" history-slider-indicator--active":"",'"></div>'));s.append(c)}}t.trigger("tooltip:init")};var o=r.applyTinySlider;r.applyTinySlider=function(t,e){var n,i;t&&t.hasClass("js-history-slider-container")?this.historySliderInit(t,e):(o.call(this,t,e),null===(n=(i=window).refreshYotpoWidgets)||void 0===n||n.call(i))},t.exports=r},81606:t=>{function e(){return $(this).find(".tooltip")}function n(){$('[data-toggle="tooltip"], .info-icon').tooltip({title:e,trigger:"manual",sanitize:!1}).on("mouseenter focus",(function(t){var e=$(t.target).closest('[data-toggle="tooltip"]'),n=e.data("delay")&&e.data("delay").hide||0;e.tooltip("show"),$("body").one("mouseleave blur",".tooltip",(function(t){setTimeout((function(){$(t.target).closest(".tooltip").tooltip("hide")}),n)}))})).on("mouseleave blur",(function(t){var e=$(t.target).closest('[data-toggle="tooltip"]'),n=e.data("delay")&&e.data("delay").hide||0;setTimeout((function(){$(".tooltip:hover").length||$(t.target).tooltip("hide")}),n)})),$('[data-toggle="popover"]').popover({html:!0,trigger:"focus",sanitize:!1})}t.exports=function(){n(),$("body").on("tooltip:init",n)}},23642:t=>{t.exports={onYotpoDiscountApplied:function(){$("body").on("yotpoLoyaltyDiscountApplied",(function(t){t&&t.detail&&t.detail.discountCode&&($(".promo-code-form .coupon-code-field").val(t.detail.discountCode),$(".promo-code-form .promo-code-btn").click())}))}}},70974:(t,e,n)=>{var i,r=n(37174);t.exports={widgets:function(){var t="yotpo-widget-instance";clearTimeout(i),window.refreshYotpoWidgets=r((function(){var e,n,r,o,a=$("."+t+"[data-yotpo-element-loaded=true]").toggleClass(t,!1);null===(e=window.yotpo)||void 0===e||null===(n=e.refreshWidgets)||void 0===n||n.call(e),null===(r=window.yotpoWidgetsContainer)||void 0===r||null===(o=r.initWidgets)||void 0===o||o.call(r),i=setTimeout((function(){return a.toggleClass(t,!0)}),100)}),1e3)}}},59617:(t,e,n)=>{var i=n(79194),r=n(95656),o={initCustomizer:function(){var t=$("[data-customizer-apikey]").data("customizer-apikey"),e=$("[data-customizer-get-variants-endpoint]").data("customizer-get-variants-endpoint"),n=$("[data-customizer-get-artwork]").data("customizer-get-artwork"),i=$("[data-customizer-product-id]").data("customizer-product-id"),a=$("[data-customizer-add-to-cart]").data("customizer-add-to-cart"),s=$("[data-customizer-format-price]").data("customizer-format-price"),l=$("[data-customizer-product-data]").data("customizer-product-data"),c=$("[data-customizer-is-master]").data("customizer-is-master"),u=$("[data-customizer-show-program]").data("customizer-show-program");1!=c&&"true"!=c||$(".product-detail").data("pid",""),t&&(o.checkCustomizableStatusAndUpdateButtons(),$(".product-customize-button").click((function(){r.customizerSpinner.start();var c=$(".product-rating-stars").first().html();$(".customizer-stars-placeholder").html(c),$("#bc-chat-container, .bcFloat").addClass("d-none"),r.handleRaceCondition(),$("#customizerModal").modal("show"),$("#customize__placeholder").append("<div></div>
2"),CustomizerWidget.default.createWidget({apiKey:t,products:i,allowPrograms:u,container:$("#customize__placeholder div")[0],getVariantsEndpoint:e,formatPriceEndpoint:s,productDataEndpoint:l,artworkEndpoint:n,allowProgram:u,selectedLot:r.getSelectedLotValue(),selectedVariant:r.getSelectedVariantValue(),onSizingChart:function(){var t=$(".product-detail").find(".product-id").html(),e=$('.size-chart-modal[data-product="'+t+'"]'),n=$(".product-detail").find(".size-chart .sizechart-link").parent();e.appendTo("body"),e.one("hide.bs.modal",(function(t){e.appendTo(n)})),e.find(".modal-body").css("max-height",""),e.find(".modal-title").remove(),$("#sizeChartModal").modal("show")},onBusinessOrder:function(){$("#quantityFormModal").modal("show")},onCancel:function(){$("#customizerModal").modal("hide"),$("#bc-chat-container, .bcFloat").removeClass("d-none")},onBusy:function(t){t?r.customizerSpinner.start():r.customizerSpinner.stop()},onDone:function(t){"program"===t.mode?($(document).trigger("customizer:clearSelectedPrograms"),$(document).trigger("customizer:programAdd",{result:t})):(o.addCustomProductToCart(t.recipe,a),$("#customizerModal").one("hidden.bs.modal",(function(){$("#bc-chat-container, .bcFloat").removeClass("d-none")})))}})})),($("[data-customizer-recipe]").data("customizer-recipe")||window.location.search.includes("recipe="))&&$(".product-customize-button").trigger("click"),$("body").on("product:afterAttributeSelect",(function(t,e){e.data.product.custom.isCustomizable&&($(".product-customize-button").removeClass("d-none"),$(".product-customize-button").prop("disabled",!1));var n=e.data.product,i=r.getSelectedVariantValue();"master"===n.productType&&n.id==i&&$(".product-detail").data("pid","")})))},checkCustomizableStatusAndUpdateButtons:function(t){var e=void 0!==t?t:$("[data-customizer-product-id]"),n=e.data("customizer-product-id"),i=e.data("customizer-is-customizable"),r=$(".customizable-product-actions, .visible-if-customizable"),o=$(".not-custimzable-product-actions");return $.ajax({type:"POST",url:i,data:{pid:n},success:function(t){t&&t.isCustomizableResponse?(r.removeClass("d-none").addClass("d-block"),o.removeClass("d-block").addClass("d-none")):(r.removeClass("d-block").addClass("d-none"),o.removeClass("d-none").addClass("d-block"))},error:function(t){r.removeClass("d-block").addClass("d-none"),o.removeClass("d-none").addClass("d-block"),window.console.error(t)}})},addCustomProductToCart:function(t,e){r.customizerSpinner.start(),$.ajax({type:"POST",url:e,data:t,success:function(t){if(!0===t.error&&["NOT_CUSTOMIZABLE","NOT_ORDERABLE"].indexOf(t.message))return $("#customizerModal .cz2__modal-popup--done .cz2__modal-popup__button--ok").trigger("click"),$("#customizerErrorModal").modal("show"),void r.customizerSpinner.stop();r.customizerSpinner.stop(),t.bonusProductData.constructor===Object&&Object.keys(t.bonusProductData).length&&i.methods.chooseBonusProducts(t.bonusProductData),t.cart&&$(".minicart .minicart-quantity").text(t.cart.numItems).attr("data-quantity",t.cart.numItems).removeClass("qty-0").addClass("qty-"+t.cart.numItems),window.collect.trackCart()},error:function(t){r.customizerSpinner.stop()}})}};t.exports=o},95656:t=>{var e={getSelectedVariantValue:function(){return $(".product-detail").data("pid")},getSelectedLotValue:function(){return $(".product-detail-attributes .swatch-colors.selected").data("lot")},customizerSpinner:{start:function(){$(".customizer-spinner").fadeIn()},stop:function(){$(".customizer-spinner").fadeOut()}},handleRaceCondition:function(){if($("#bc-chat-container").length>0||$(".bcFloat").length>0);else var t=window.setInterval((function(){($("#bc-chat-container").length>0&&$("#bc-chat-container").is(":visible")||$(".bcFloat").length>0&&$(".bcFloat").is(":visible"))&&($("#bc-chat-container, .bcFloat").addClass("d-none"),window.clearInterval(t))}),2e3)}};t.exports=e},60462:t=>{t.exports={industryPicker:function(){$("#mailingListSignupForm").on("change changed.bs.select",'select[name="dwfrm_emailSignup_industry"]',(function(){"Other"===$(this).val()?$('input[name="dwfrm_emailSignup_industryOther"]').show():$('input[name="dwfrm_emailSignup_industryOther"]').hide()}))},newsletterSubmitHandler:function(){function t(t,e){var n;$.spinner().stop(),n=t.success?"alert-success":"alert-danger",0===$(".email-signup-message").length&&$("body").append('<div class="email-signup-message"></div>'),$(".email-signup-message").append('<div class="email-signup-alert text-center '+n+'">'+t.msg+"</div>"),setTimeout((function(){$(".email-signup-message").remove(),e.removeAttr("disabled")}),3e3)}$("body").on("submit","#mailingListSignupForm, #mailingListSignupFormPop",(function(t){if(/bot|crawl|spider|archiver|curl|facebook|google|bing|yahoo|yandex|twitter|botlink|msn|teoma|slurp|wget|httrack|python|ruby|java|libwww|httpclient|mediapartners|lighthouse|facebookexternalhit|embedly|quora|outbrain|pinterest|slack|vkShare|W3C_Validator/i.test(navigator.userAgent))return!1;
2var e=$(this);t.preventDefault();var n=e.attr("action").indexOf("?")>-1?"&":"?",i=e.attr("action")+n+e.serialize();e.spinner().start(),e.trigger("emailsignup:submit",t),$.ajax({url:i,type:"post",dataType:"json",data:e.serialize(),success:function(t){e.spinner().stop();var n=$("#signupModalWrapper");n.load(t.formTemplate,(function(){n.find(".selectpicker").selectpicker(),"mailingListSignupFormPop"===e[0].id?($("#mailingListDetailsModal .modal-body").addClass("d-none"),$("#mailingListDetailsModal .modal-body.signup-details-form").removeClass("d-none"),$("#mailingListDetailsModal .modal-title").addClass("d-none"),$("#mailingListDetailsModal .modal-title.signup-details").removeClass("d-none")):$("#mailingListDetailsModal").modal(),e.spinner().stop()})),t.success&&($("body").trigger("emailsignup:success",t),e.find("select:not([readonly]), input:not([readonly])").each((function(){$(this).hasClass("selectpicker")?$(this).selectpicker("val",""):$(this).val("")})),e.find(".is-invalid, .is-validation-error, .is-validation-ok").removeClass("is-invalid is-validation-error is-validation-ok"))},error:function(){e.spinner().stop()}})}));var e=$("form.component_email_signup");e.on("submit",(function(n,i){n.preventDefault();var r=$(this).find(".signup-email-component"),o=e.data("xhr");e.data("xhr",$.ajax({url:i||e.attr("action"),type:e.attr("method")||"post",data:e.find(":input:not(:disabled)").serialize(),dataType:"json",beforeSend:function(){o&&o.abort&&o.abort(),$.spinner().start(),r.attr("disabled",!0)},success:function(e){t(e,r)},error:function(e,n,i){t({success:!1,msg:e.responseJSON&&e.responseJSON.message},r)},complete:function(){$.spinner().stop(),r.removeAttr("disabled"),e[0].reset()}}))})),e.find(".signup-email-component").on("click",(function(t){t.preventDefault(),e.trigger("submit",$(this).data("href"))}))},detailsSubmitHandler:function(){$("#mailingDetailsForm").submit((function(t){var e=$(this);t.preventDefault();var n=e.attr("action").indexOf("?")>-1?"&":"?",i=e.attr("action")+n+e.serialize();e.spinner().start(),e.trigger("emailsignupdetails:submit",t),$.ajax({url:i,type:"get",dataType:"json",data:e.serialize(),success:function(){e.spinner().stop(),$(".signup-details-form").addClass("d-none"),$(".signup-details-received").removeClass("d-none")},error:function(){e.spinner().stop()}})}))},bulwarkBrandMultipicker:function(){$("#brandPicker").on("change",(function(){var t=[];if($(this)[0].selectedOptions){var e=Array.from($(this)[0].selectedOptions);for(var n in e)if(e[n]){var i=e[n];t.push(i.value)}}$('input[name="dwfrm_emailSignup_bulwarkBrands"]').val(t.join(";"))}))}}},8762:(t,e,n)=>{var i=n(2112);i.baseFiles.base=n(79194),i.baseFiles.cart=n(53607),i.baseFiles.saveForLater=n(90181),i.baseFiles.compare=n(49646),i.baseFiles.search=n(33127),i.baseFiles.header=n(96405),i.baseFiles.toolTip=n(81606),i.baseFiles.horizontalTabs=n(79109),i.baseFiles.wishlist=n(32405).init,i.baseFiles.taxConfirmationModal=n(2801),i.baseFiles.shippingMethodToggle=n(51341),i.baseFiles.checkoutSpinner=n(35180),i.baseFiles.emailSignup=n(60462),i.baseFiles.emailSignupModalUtils=n(68639),i.baseFiles.consentTracking=n(44091),i.baseFiles.marketingCloud=n(80270),i.baseFiles.confirmation=n(20954),i.baseFiles.slider=n(88491).init,i.baseFiles.customizer=n(59617).initCustomizer,i.baseFiles.miniCart=n(21130),i.baseFiles.menu=n(22933),i.baseFiles.bootstrapSelect=n(62872),i.baseFiles.formValidationIcons=n(43616),i.baseFiles.bisn=n(74978),i.baseFiles.quickView=n(32065),i.baseFiles.tile=n(25183),i.baseFiles.modal=n(26085).init,i.baseFiles.yotpoLoyalty=n(7386),i.baseFiles.b2b=n(14400),i.baseFiles.workfitterSizeRecommender=n(92508).init,i.baseFiles.einsteinRecs=n(18400).init,i.baseFiles.yotpoRefresh=n(70974),t.exports=i},20954:t=>{t.exports={postOrderDetails:function(){$('.postorder-details-form input[type="radio"][name="dwfrm_confirmation_accountuse"]').change((function(){this.value&&$(".postorder-details-form button.submit").prop("disabled",!1)})),$(".postorder-details-form").on("submit",(function(t){var e=$(this);t.preventDefault();var n=e.attr("action")+"?"+e.serialize();e.spinner().start(),e.trigger("postorderdetails:submit",t),$.ajax({url:n,type:"get",dataType:"json",data:e.serialize(),success:function(t){e.spinner().stop(),$(".order-confirmation-card .card-body").css("visibility","hidden"),$(".order-confirmation-card .title").html(t.response.title),$(".order-confirmation-card .sub-title").html(t.response.subtitle)},error:function(){e.spinner().stop()}})}))}}},79194:(t,e,n)=>{var i=n(46446),r=n(28682),o=i.addToCart;function a(t,e){$("body").trigger("product:beforeAddToCart",this);var n=$(t),r=n.data("item"),o=r.id,a=r.isCustomizerProduct,s=r.hasOwnProperty("customizerRecipeJSON")?JSON.parse(r.customizerRecipeJSON):null,l=n.data("qty"),c=n.data("add-to-cart-url"),u=n.data("add-custom-to-cart-url"),d={pid:o,quantity:l};$.ajax({url:!0===a?u:c,method:"POST",data:!0===a?s:d,success:function(t){i.methods.handlePostCartAdd(t),i.methods.miniCartReportingUrl(t.reportingURL),e?e(t):($("body").trigger("product:afterAddToCart",t),$.spinner().stop())},error:function(t){$.spinner().stop()}})}function s(t,e){if(e&&0===t.indexOf("MS_")){if(-1!==t.indexOf("_M1_"))return e["m1-details"];if(-1!==t.indexOf("_M2_"))return e["m2-details"];if(-1!==t.indexOf("_F1_"))return e["f1-details"];if(-1!==t.indexOf("_F2_"))return e["f2-details"]}return""}i.handleSpinner=function(){$("body").on("product:beforeAddToCart",(function(t,e){$(e).hasClass("qv-product-edit-add")||$.spinner().start()})),$("body").on("product:afterAddToCart",(function(t,e){$.spinner().stop()}))},i.enhancedAddToCartMessaging=function(){var t=$("#addedToCartModal");t.on("hidden.bs.modal",(function(t){$(".fixed-header").removeClass("z-index-over-modal-background")})),$("body").on("product:afterAddToCart",(function(e,n){if(n&&!1===n.error){var i=n.pliUUID,r=n.cart&&n.cart.items,o=n.cart.viewCartText,a=null;if(r){for(var s=0;s<r.length;s++){var l=r[s];
2if(l.UUID===i){a=l;break}}if(a){var c,u=!!a.hasOwnProperty("customizer")&&a.customizer.isCustomized,d='<div class="image-col"><div class="item-image-container"><img class="item-image" src="'+(u?a.customizer.recipePreview:a.images.small[0].url)+'" alt="'+a.images.small[0].alt+'" /></div></div>',h='<div class="item-name">'+(a.shortName&&n.showShortName?a.shortName:a.productName)+(u?" "+n.customizerAppendLabel:"")+"</div>",p='<div class="attribute-pair price"><span class="attribute-value item-total">'+(a.price.list?'<span class="strike-through non-adjusted-price">'+a.price.list.formatted+"</span>":"")+'<span class="pricing line-item-total-price-amount">'+a.price.sales.formatted+"</span></span></div>",f="";a.variationAttributes.forEach((function(t){f+='<div class="attribute-pair">',f+='<span class="attribute-key">'+t.displayName+":</span>",f+='<span class="attribute-value">'+t.displayValue+"</span>",f+="</div>"})),c='<div class="minicart"><div class="row ml-0 line-item">'+d+'<div class="col">'+h+(f='<div class="pb-1 item-attributes">'+f+"</div>")+p+"</div></div></div>";var m=$("#top-header").outerHeight();t.find(".modal-dialog").css("top",m+"px"),t.find(".modal-body").html(c),t.find(".view-cart-button").text(o),$(".fixed-header").addClass("z-index-over-modal-background"),$(".add-to-cart-messages").remove(),t.modal("show"),setTimeout((function(){t.modal("hide")}),5e3)}}}}))},i.disabledAddToCartScrollToTop=function(){$(".add-to-cart-container").click((function(){$(this).find(".add-to-cart").is(":disabled")&&($(".product-detail-attributes .watch-missing-attr").each((function(t,e){var n=$(e),i=n.find("select"),r=0===i.find("option:selected:not(.empty-option)").length||null===i.val();0===n.find(".selected").length&&r&&n.find(".missing-attr-error").removeClass("d-none")})),r())})),$("body").on("product:afterAttributeSelect",(function(){$(".product-detail-attributes .watch-missing-attr").each((function(t,e){var n=$(e),i=n.find("select"),r=i.find("option:selected:not(.empty-option)").length>0&&i.val();(n.find(".selected").length>0||r)&&n.find(".missing-attr-error").addClass("d-none")}))}))},i.methods.updateModelText=function(t,e){var n=t.images;if(e.length>0)for(var i=e.find("div.slide"),r=0;r<i.length;r++){var o=i.eq(r);if(n.large.length>r&&o){o.find(".model-shot-text").remove();var a=n.large[r].url;if(a){var l=s(a.split("/").pop()||"",t);""!==l&&o.append('<div class="model-shot-text">'+l+"</div>")}}}},i.methods.processSwatchValues=function(t,e,n){"color"==t.attributeId&&e.find(".color-display-value").text(t.displayValue||""),"size"==t.attributeId&&e.find('[data-attr="'+t.attributeId+'"] .non-color-display-value').text(t.displayValue||""),t.values.forEach((function(i){var r=e.find('[data-attr="'+t.id+'"] [data-attr-value="'+i.value+'"]');if(r.length){var o="button"===r.prop("tagName").toLowerCase()?r:r.parent("button"),a=[n.assistiveSelectText,t.displayName,i.displayValue];i.available||a.splice(1,0,n.assistiveUnavailableText),o.attr("aria-label",a.join(" ")),i.selected?(r.addClass("selected"),r.siblings(".selected-assistive-text").text(n.assistiveSelectedText),r.attr("selected","selected")):(r.removeClass("selected"),r.siblings(".selected-assistive-text").empty(),r.removeAttr("selected")),i.url?o.attr("data-url",i.url):o.removeAttr("data-url"),r.removeClass("selectable unselectable available unavailable"),r.addClass(i.selectable?"selectable":"unselectable"),r.addClass(i.available?"available":"unavailable"),r.attr("value",i.url).removeAttr("disabled"),i.selectable||r.attr("disabled",!0)}}))},i.methods.processNonSwatchValues=function(t,e,n){var i='.custom-select[data-attr="'+t.id+'"]';e.find(i+".select-"+t.id+" option:first-child").attr("value",t.resetUrl).attr("disabled",!0),t.values.forEach((function(r){var o=e.find(i+' [data-attr-value="'+r.value+'"]');o.attr("value",r.url).removeAttr("disabled");var a=e.find(i+".select-"+t.id+" option:selected").eq(0);r.selectable&&r.available?(o.html(r.displayValue),a.text()==r.displayValue&&($(a).attr("selected","selected"),$(i).prop("selectedIndex",$(a).index()))):(r.selectable||o.attr("disabled",!0),a.data("attr-value")==r.value&&(o.removeAttr("selected"),$(i).prop("selectedIndex",0)),o.html(r.displayValue+n.unavailableMsg)),r.selected?o.prop("selected",!0).attr("selected",!0):o.prop("selected")&&o.prop("selected",!1).attr("selected",!1)}))},i.methods.handleVariantResponse=function(t,e){var i,r=e.parents(".choose-bonus-product-dialog").length>0,o=$(".product-number-rating .style-number");o&&o.length>0&&($(".product-number-rating .style-number")[0].innerText=t.product.displayNumber||t.product.id),t.product.variationAttributes&&(this.updateAttrs(t.product.variationAttributes,e,t.resources),i="variant"===t.product.productType,r&&i&&(e.parent(".bonus-product-item").data("pid",t.product.id),e.parent(".bonus-product-item").data("ready-to-order",t.product.readyToOrder)));var a=t.product.images,s=e.find("div.slide a.wishlist");if(this.createSlider(a,e),this.updateModelText(t.product,e.find(".primary-images-main .slider")),!r){var l=$(".prices .price",e).length?$(".prices .price",e):$(".prices .price"),c=t.product.detailedRangePrice?t.product.detailedRangePrice.html:t.product.price.html;l.replaceWith(c)}if(e.find(".promotions").empty().html(t.product.promotionsHtml),this.updateAvailabilityProcess(t,e),r?e.find(".select-bonus-product").trigger("bonusproduct:updateSelectButton",{product:t.product,$productC
2ontainer:e}):$("button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global").trigger("product:updateAddToCart",{product:t.product,$productContainer:e}).trigger("product:statusUpdate",t.product),e.find(".main-attributes").empty().html(this.getAttributesHtml(t.product.attributes)),s&&s.length){var u=$(s[0]);u.attr("data-wishlistpid",t.product.wishlistpid),n(32405).updateWishlistLinkData(u),e.find("div.primary-images-main div.slide img").each((function(t,e){$(e).after(u.clone(!0))}))}!0===t.product.custom.contactSales?($(".add-to-cart-container .add-to-cart").each((function(){$(this).hide()})),$(".add-to-cart-container .contact-sales").each((function(){$(this).removeClass("d-none")}))):($(".add-to-cart-container .add-to-cart").each((function(){$(this).show()})),$(".add-to-cart-container .contact-sales").each((function(){$(this).addClass("d-none")})))},i.nonColorAttribute=function(){var t=this;$(document).on("click","button.swatch",(function(e){if(e.preventDefault(),!t.methods.checkForClickableAttribute($(this))){var n=$(this).closest(".set-item");n.length||(n=$(this).closest(".product-detail")),t.methods.attributeSelect($(this).attr("data-url"),n),$(this).parents(".non-color-attribute-swatches").find(".non-color-display-value").text($(this).find(".swatch-value").data("display-value"))}}))},i.addBonusProductsToCart=function(){$(document).on("click",".add-bonus-products",(function(){var t=$(".choose-bonus-product-dialog .selected-pid"),e="?pids=",n=$(".choose-bonus-product-dialog").data("addtocarturl"),i={bonusProducts:[]};$.each(t,(function(){var t=parseInt($(this).data("qty"),10),e=null;t>0&&($(this).data("optionid")&&$(this).data("option-selected-value")&&((e={}).optionId=$(this).data("optionid"),e.productId=$(this).data("pid"),e.selectedValueId=$(this).data("option-selected-value")),i.bonusProducts.push({pid:$(this).data("pid"),qty:t,options:[e]}),i.totalQty=parseInt($(".pre-cart-products").html(),10))})),e=(e=(e+=JSON.stringify(i))+"&uuid="+$(".choose-bonus-product-dialog").data("uuid"))+"&pliuuid="+$(".choose-bonus-product-dialog").data("pliuuid"),$.spinner().start(),$.ajax({url:n+e,method:"POST",success:function(t){$.spinner().stop(),t.error?($("#chooseBonusProductModal").modal("hide"),0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".add-to-cart-messages").append('<div class="alert alert-danger add-to-basket-alert text-center" role="alert">'+t.errorMessage+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove()}),3e3)):($(".configure-bonus-product-attributes").html(t),$(".bonus-products-step2").removeClass("hidden-xl-down"),$("#chooseBonusProductModal").modal("hide"),0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".minicart-quantity").attr("data-quantity",t.totalQty).html(t.totalQty),$(".add-to-cart-messages").append('<div class="alert alert-success add-to-basket-alert text-center" role="alert">'+t.msgSuccess+"</div>"),$("body").trigger("product:afterAddBonusProduct"),setTimeout((function(){$(".add-to-basket-alert").remove(),$(".cart-page").length&&location.reload()}),1500))},error:function(){$.spinner().stop()}})}))},i.sizeChart=function(){$("body").on("click",".size-chart-launcher",(function(t){t.preventDefault();var e=$(t.target).closest(".product-detail").find(".product-id").html(),n=$('.size-chart-modal[data-product="'+e+'"]');if($(t.target).parents(".product-quickview").length){var i=$(t.target).closest(".size-chart");n.appendTo("body"),n.on("hide.bs.modal",(function(t){n.appendTo(i)})),n.find(".modal-body").css("max-height",""),n.find(".modal-title").remove()}n.modal("show")})),$("body").on("click",".size-chart-referrer",(function(t){$(".size-chart-launcher:visible").first().click()})),$("body").on("click",".size-chart-modal .close",(function(t){var e=$(t.target).closest(".size-chart-modal").data("product");$('.size-chart-modal[data-product="'+e+'"]').modal("hide")}))},i.methods.updateQuantityStepperDisabledStates=function(t){var e=parseInt(t.attr("data-max")),n=t.find("input"),i=t.find('[data-action="increase"]');(isNaN(parseInt(n.prop("data-qty")))?parseInt(n.attr("data-qty")):parseInt(n.prop("data-qty")))>=e?i.addClass("disabled"):i.removeClass("disabled")},i.methods.bindQuantityStepperButtons=function(t){var e=this,n=t.prev("select"),i=parseInt(t.data("min")),r=parseInt(t.data("max"));
2t.find("button").off("click").click((function(o){var a=$(o.target).data("action"),s=parseInt(t.find("input").val()),l=s;"increase"===a&&s+1<=r&&l++,"decrease"===a&&s-1>=i&&l--,l!==s?(n.find('option[value="'+l+'"]').prop("selected",!0).change(),t.find("input").prop("value",l).prop("data-qty",l),e.updateQuantityStepperDisabledStates(t),$("body").trigger("quantityStepper:change",t)):l===s&&1===s&&"decrease"===a&&t.closest(".line-item").find(".remove-product").click()}))},i.addToCart=function(){o.call(this),$(".btn-buy-again").on("click",(function(t){var e=$(this);t.preventDefault();var n=e.closest(".line-item");0===n.length&&(n=e.closest(".history-tile-row, .product-summary-block").find(".line-item")),a.call(this,n)})),$(".btn-buy-all-again").on("click",(function(t){var e=$(this).closest(".history-tile-row, .product-summary-block").find(".line-item:not(.prevent-buy-again)");$.each(e,(function(t,n){var i=$(n);a.call(this,i,(function(n){t===e.length-1&&($("body").trigger("product:afterAddToCart",n),$.spinner().stop())}))}))}))},t.exports=i},32065:(t,e,n)=>{var i=n(86564),r=n(64786),o=n(32405);i.showQuickview=function(){$("body").on("click",".quickview",(function(t){t.preventDefault();var e=$(this).closest("a.quickview").attr("href");$(t.target).trigger("quickview:show"),r.getModalHtmlElement("quickViewModal","quick-view-dialog"),function(t){var e=$("#quickViewModal");e.find(".modal-body").spinner().start(),$.ajax({url:t,method:"GET",dataType:"json",success:function(t){var n=r.parseHtml(t.renderedTemplate);e.find(".modal-body").empty(),e.find(".modal-body").html(n.body),e.find(".modal-footer").remove(),e.find(".full-pdp-link").text(t.quickViewFullDetailMsg),e.find(".full-pdp-link").attr("href",t.productUrl),e.find(".modal-header .close .sr-only").text(t.closeButtonText),e.find(".enter-message").text(t.enterDialogMessage),e.find("#quickViewModal").modal("show"),t.dialogTitle&&e.find(".modal-header").prepend('<div class="modal-title">'+t.dialogTitle+"</div>"),"set"===t.product.productType&&updateAddAllToCart(),$("body").trigger("modal:loaded",$("#quickViewModal")),$("body").trigger("quickview:ready",$("#quickViewModal")),$("body").trigger("tooltip:init"),o.updateWishlistLinkData(),window.Klarna&&window.Klarna.OnsiteMessaging&&window.Klarna.OnsiteMessaging.refresh(),$.spinner().stop()},error:function(){$.spinner().stop()}})}(e)}))},t.exports=i},90181:(t,e,n)=>{var i=n(76543);function r(t,e){var n=t.uuid||null,r=t.pid||null,a=t.action||null,s=t.name||null;$.ajax({url:a,method:"GET",dataType:"json",data:{pid:r,uuid:n,name:s},success:function(t){if(!e){var n=t.success?"success":"warning";i.methods.show(n,t.msg,!1)}o()},error:function(t){$.spinner().stop()}})}function o(){$.spinner().stop(),$.spinner().start(),window.location.reload()}t.exports={saveProductForLater:function(){$("body").on("click",".save-for-later-btn",(function(t){t.preventDefault(),function(t){var e=t.uuid||null,n=t.pid||null,r=t.action||null,a=t.name||null;$.spinner().start(),$.ajax({url:r,method:"POST",dataType:"json",data:{pid:n,uuid:e,name:a},success:function(t){var e=t.success?"success":"warning";i.methods.show(e,t.msg,!1),o()},error:function(t){$.spinner().stop()}})}($(this).data())}))},removeProductSavedForLater:function(){$("body").on("click",".remove-save-for-later-btn",(function(t){t.preventDefault(),r($(this).data())}))},addToCartSavedForLater:function(){$("body").on("click",".move-to-cart-save-for-later-btn",(function(t){t.preventDefault(),function(t){var e=t.uuid||null,n=t.pid||null,o=t.action||null,a=t.name||null;$.spinner().start(),$.ajax({url:o,method:"POST",dataType:"json",data:{pid:n,uuid:e,name:a,quantity:1},success:function(e){var n=e.error?"warning":"success";i.methods.show(n,e.message,!1),!1===e.error&&($(".empty-cart-content").hide(),t.action=t.removeaction,r(t,!0))},error:function(t){$.spinner().stop()}})}($(this).data())}))},updateCartData:function(){$("body").on("cart:updateData",o)}}},25183:(t,e,n)=>{var i=n(37174),r=n(32405),o=n(61653);o.methods.swatchSwitch=function(t){var e=t,n=e.parents(".product-tile"),i=n.attr("data-pid"),o=n.find(".product-tile-image:not(.cloned-tile-image)"),a=n.find(".product-tile-image-secondary"),s=n.find(".product-tile-image-container");if(n.find(".swatch.selected").removeClass("selected"),e.addClass("selected"),e.data("hover-image")&&""!=e.data("hover-image")){var l=o.clone().removeAttr("loading");l.addClass("d-none cloned-tile-image"),l.insertAfter(o),l.one("load",(function(){s.removeClass("model-shot-tile product-sh
2ot-tile video-thumbnail-tile product-video-tile"),e.data("image-category")&&s.addClass(e.data("image-category")+"-tile"),o.replaceWith(l.removeClass("d-none cloned-tile-image"))}));var c=e.data("hover-image");if(l.attr("src",c),a.length>0&&e.data("hover-image-secondary")){var u=e.data("hover-image-secondary");l.data("alt-img-url",u),a.attr("src",u)}}var d=(e.hasClass("swatch-link")?e:e.parents(".swatch-link")).attr("href").split("?")[1],h=d,p=d;if(-1!=d.indexOf("pid")){var f=d.split("&"),m=[];f.forEach((function(t,e){-1==t.indexOf("pid")&&m.push(t)})),h=d,p=m.join("&")}var g=n.find(".product-tile-image-link"),v=g.attr("href").split("?");g.attr("href",v[0]+"?"+h);var y,b=n.find("a.quickview");if(b.length){var _=b.attr("href").split("?");b.attr("href",_[0]+"?pid="+i+"&"+p)}if(e.attr("data-wishlistpid"))(y=n.find("a.wishlist")).length&&(y.attr("data-wishlistpid",e.attr("data-wishlistpid")),r.updateWishlistLinkData(y));else if((y=n.find("a.wishlist")).length){var w=e.attr("data-color-value");r.updateWishlistLinkData(y,w)}$("body").trigger("tile:swatchSelected",e)};try{var a=i((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector('img.product-tile-image-secondary[loading="lazy"]');return t&&(t.setAttribute("loading","eager")||a())}),500,{leading:!1,trailing:!0});new MutationObserver((function(t){return null==t?void 0:t.forEach((function(t){var e;return(null==t||null===(e=t.addedNodes)||void 0===e?void 0:e.length)&&a()}))})).observe(document.body,{childList:!0,subtree:!0})}catch(t){}t.exports=o},32405:(t,e,n)=>{var i=n(79194),r=n(64171),o=n(11496),a=n(26085),s="#editWishlistProductModal";function l(t,e,n){var r=$(".wishlistItemCardsData").data("public-view"),o=$(".wishlistItemCardsData").data("uuid"),a=$(".wishlistItemCardsData").data("href");e&&$.spinner().start();var s=document.documentElement.scrollTop,l=t;$.ajax({url:a,method:"get",data:{pageNumber:++l,publicView:r,id:o}}).done((function(t){$(".wishlistItemCards").empty(),$("body .wishlistItemCards").parent().html(t),n?$(n).focus():document.documentElement.scrollTop=s,i.enableQuantitySteppers()})).fail((function(){$(".more-wl-items").remove()})),$.spinner().stop()}function c(t,e){return(window.UncachedData.wishlistPIDs||[]).some((function(n){return n.masterID===t&&n.color&&n.color.value===e}))}o.displayMessage=function(t){$.spinner().stop();var e=t.success?"alert-success":"alert-danger";0===$(".add-to-wishlist-messages").length&&$("body").append('<div class="add-to-wishlist-messages"></div>'),$(".add-to-wishlist-messages").append('<div class="alert text-center add-to-wishlist-alert text-center '+e+'" role="alert">'+t.msg+"</div>"),setTimeout((function(){$(".add-to-wishlist-messages").remove()}),5e3)},o.updateWishlistUncachedData=function(t){if(t.success){var e,n,i,r,o,a=new Set((null===(e=window.UncachedData)||void 0===e?void 0:e.wishlistPIDs)||null);t.add?(a.add(t.itemObject),window.yotpo&&(null===(n=(i=window).refreshYotpoWidgets)||void 0===n||n.call(i))):(t.listIsEmpty?a=new Set:a.forEach((function(e){null==t.itemObject.color?null==e.color&&e.productID==t.itemObject.productID&&e.masterID==t.itemObject.masterID&&a.delete(e):(e.color&&e.masterID==t.itemObject.masterID&&e.color.value==t.itemObject.color.value&&a.delete(e),e.masterID==e.productID&&e.masterID==t.itemObject.masterID&&null==e.color&&a.delete(e))})),window.yotpo&&(null===(r=(o=window).refreshYotpoWidgets)||void 0===r||r.call(o))),window.UncachedData.wishlistPIDs=Array.from(a)}},o.updateWishlistLinkData=function(t,e){if(window&&window.UncachedData){var n=t||$("a.wishlist");if(n&&n.length){var i=window.UncachedData.wishlistPIDs;n.each((function(t,n){var r,o=$(n),a=o.attr("data-wishlistpid"),s=null;if(a){var l,u=(r=a,i.some((function(t){return r===t.productID})));u?(l=o.parents(".product-tile").find(".swatches .swatch.selected"))&&l.length>0?c(a,s=e||l.attr("data-color-value")):s=e:(l=o.parents(".product-tile").find(".swatches .swatch.selected"))&&l.length>0&&(u=c(a,s=l.attr("data-color-value"))),!u&&e&&(s=(u=c(a,e))?e:s),o.attr("data-inwishlist",u),u?(s&&o.attr("data-color-value",s),o.attr("title",o.attr("data-removemessage")),!0===o.data("includetext")&&o.find("span").html(o.attr("data-removemessage"))):(o.attr("data-color-value")&&o.removeAttr("data-color-value"),o.attr("title",o.attr("data-addmessage")),!0===o.data("includeicon")&&o.find("span").html(o.attr("data-addmessage")));var d=o.find(".wishlist-icon");d&&d.length&&$(d).toggleClass("selected",u)}}))}}},o.toggleWishlist=function(){$("body").on("click","a.wishlist",(function(t){var e=$
2(this);t.preventDefault();var n=e.attr("href"),i=e.attr("data-wishlistpid"),r=e.attr("data-color-value");if(n&&i){var a=$(this);$.spinner().start(),$.ajax({url:n,type:"post",dataType:"json",data:{wishlistpid:i,colorValue:r},success:function(t){o.displayMessage(t),o.updateWishlistUncachedData(t),o.updateWishlistLinkData(),o.methods.updateWishlistCartStatus(t,a)},error:function(t){o.displayMessage(t)}})}}))},o.viewProductViaEdit=function(){$("body").on("click",".edit-add-to-wishlist .edit",(function(t){t.preventDefault();var e=$(this).attr("href"),n=$(this).parent().parent().find(".pdp-link .link").attr("href");$(t.target).trigger("editwishlistproduct:show"),a.getModalHtmlElement("editWishlistProductModal","quick-view-dialog"),o.fillModalElement(e,n)}))},o.fillModalElement=function(t,e){var n=$(s);n.find(".modal-body").spinner().start(),t&&$.ajax({url:t,method:"GET",dataType:"json",success:function(t){var i=a.parseHtml(t.renderedTemplate);n.find(".modal-body").empty(),n.find(".modal-body").html(i.body),n.find(".modal-footer").html(i.footer),n.find(".modal-header .close .sr-only").text(t.closeButtonText),n.find(".enter-message").text(t.enterDialogMessage),n.find(".full-pdp-link").attr("href",e),n.find(".full-pdp-link").text("View Full Details"),n.find(s).modal("show"),$("body").trigger("editwishlistproduct:ready",$(s)),$.spinner().stop()},error:function(){$.spinner().stop()}})},o.removeFromWishlist=function(){$("body").on("click",".remove-from-wishlist",(function(t){t.preventDefault();var e=$(this).data("url");$(".account-page").length>0?($(".wishlist-account-card").spinner().start(),$.ajax({url:e,type:"get",dataType:"html",data:{},success:function(t){$(".wishlist-account-card>.order-card").remove(),$(".wishlist-account-card").append(t),$(".wishlist-account-card").spinner().stop()},error:function(){var t=$(".wishlist-account-card");t.spinner().stop();var e=t.data("error-msg");o.displayMessage(t,e)}})):($.spinner().start(),$.ajax({url:e,type:"get",dataType:"json",data:{},success:function(){l($(".wishlistItemCardsData").data("page-number")-1,!1)},error:function(){$.spinner().stop();var t=$(".wishlistItemCards"),e=t.data("error-msg");o.displayMessage(t,e)}}))}))},t.exports={updateWishlistItem:function(){$("body").on("click",".btn-update-wishlist-product",(function(t){t.preventDefault();var e=$(this).closest(".wishlist-item-update-button-block").find(".update-wishlist-url"),n=e.val(),r={uuid:e.data("uuid"),pid:i.methods.getPidValue($(this))};$(s).spinner().start(),$.ajax({url:n,type:"post",context:this,data:r,dataType:"json",success:function(){$.spinner().start(),$(s).spinner().stop(),$(s).remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),l($(".wishlistItemCardsData").data("page-number")-1,!1,".product-info .edit-ad
vendor: 44,160 bytes, line 2
2d-to-wishlist .edit:first")},error:function(){var t=$(".btn-update-wishlist-product").data("error-msg");$(s).spinner().stop(),$(s).remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),0===$(".update-wishlist-messages").length&&$("body").append('<div class="update-wishlist-messages "></div>'),$(".update-wishlist-messages").append('<div class="update-wishlist-alert text-center alert-danger">'+t+"</div>"),setTimeout((function(){var t,e;window.yotpo&&(null===(t=(e=window).refreshYotpoWidgets)||void 0===t||t.call(e)),$(".update-wishlist-messages").remove()}),5e3)}})}))},trapEditWishlistProductModalFocus:function(){$("body").on("keydown",s,(function(t){var e={event:t,containerSelector:s,firstElementSelector:".close",lastElementSelector:".btn-update-wishlist-product",nextToLastElementSelector:".select-size"};r.setTabNextFocus(e)}))},renderNewPageOfItems:l,init:function(){o.cartUpdate(),o.toggleWishlist(),o.updateWishlistLinkData(),o.copyWishlistLink(),o.updateQuickView(),o.viewProductViaEdit(),o.focusEditWishlistProductModal(),o.onClosingEditWishlistProductModal(),o.trapEditWishlistProductModalFocus(),t.exports.updateWishlistItem(),o.addToCartFromWishlist(),o.toggleWishlistStatus(),o.toggleWishlistItemStatus(),t.exports.removeFromWishlist(),o.moreWLItems(),o.fillModalElement()}},Object.keys(o).forEach((function(e){t.exports.hasOwnProperty(e)||(t.exports[e]=o[e])}))},7386:(t,e,n)=>{var i=n(82343);$(document).ready((function(){i(n(23642))}))},60950:function(t,e,n){var i,r;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},o(t)}void 0===this&&void 0!==window&&window,i=[n(28928)],r=function(t){!function(t){var e=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],i=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,r=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(e,o){var a=e.nodeName.toLowerCase();if(-1!==t.inArray(a,o))return-1===t.inArray(a,n)||Boolean(e.nodeValue.match(i)||e.nodeValue.match(r));for(var s=t(o).filter((function(t,e){return e instanceof RegExp})),l=0,c=s.length;l<c;l++)if(a.match(s[l]))return!0;return!1}function s(t,e,n){if(n&&"function"==typeof n)return n(t);for(var i=Object.keys(e),r=0,o=t.length;r<o;r++)for(var s=t[r].querySelectorAll("*"),l=0,c=s.length;l<c;l++){var u=s[l],d=u.nodeName.toLowerCase();if(-1!==i.indexOf(d))for(var h=[].slice.call(u.attributes),p=[].concat(e["*"]||[],e[d]||[]),f=0,m=h.length;f<m;f++){var g=h[f];a(g,p)||u.removeAttribute(g.nodeName)}else u.parentNode.removeChild(u)}}"classList"in document.createElement("_")||function(e){if("Element"in e){var n="classList",i="prototype",r=e.Element[i],o=Object,a=function(){var e=t(this);return{add:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.addClass(t)},remove:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.removeClass(t)},toggle:function(t,n){return e.toggleClass(t,n)},contains:function(t){return e.hasClass(t)}}};if(o.defineProperty){var s={get:a,enumerable:!0,configurable:!0};try{o.defineProperty(r,n,s)}catch(t){void 0!==t.number&&-2146823252!==t.number||(s.enumerable=!1,o.defineProperty(r,n,s))}}else o[i].__defineGetter__&&r.__defineGetter__(n,a)}}(window);var l,c,u,d=document.createElement("_");if(d.classList.add("c1","c2"),!d.classList.contains("c2")){var h=DOMTokenList.prototype.add,p=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,h.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,p.bind(this))}}if(d.classList.toggle("c3",!1),d.classList.contains("c3")){var f=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:f.call(this,t)}}function m(t,e){var n,i=t.selectedOptions,r=[];if(e){for(var o=0,a=i.length;o<a;o++)(n=i[o]).disabled||"OPTGROUP"===n.parentNode.tagName&&n.parentNode.disabled||r.push(n);return r}return i}function g(t,e){for(var n,i=[],r=e||t.selectedOptions,o=0,a=r.length;o<a;o++)(n=r[o]).disabled||"OPTGROUP"===n.parentNode.tagName&&n.parentNode.disabled||i.push(n.value);return t.multiple?i:i.length?i[0]:null}d=null,String.prototype.startsWith||(l=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),c={}.toString,u=function(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==c.call(t))throw new TypeError;var n=e.length,i=String(t),r=i.length,o=arguments.length>1?arguments[1]:void 0,a=o?Number(o):0;a!=a&&(a=0);var s=Math.min(Math.max(a,0),n);if(r+s>n)return!1;for(var l=-1;++l<r;)if(e.charCodeAt(s+l)!=i.charCodeAt(l))return!1;return!0},l?l(String.prototype,"startsWith",{value:u,configurable:!0,writable:!0}):String.prototype.startsWith=u),Object.keys||(Object.keys=function(t,e,n){for(e in n=[],t)n.hasOwnProperty.call(t,e)&&n.push(e);return n}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var v={useDefault:!1,_set:t.valHooks.select.set};t.valHooks.select.set=function(e,n){return n&&!v.useDefault&&t(e).data("selected",!0),v._set.apply(this,arguments)};var y=null,b=function(){try{return new Event("change"),!0}catch(t){return!1}}();function _(t,e,n,i){for(var r=["display","subtext","tokens"],o=!1,a=0;a<r.length;a++){var s=r[a],l=t[s];if(l&&(l=l.toString(),"display"===s&&(l=l.replace(/<[^>]+>/g,"")),i&&(l=x(l)),l=l.toUpperCase(),o="contains"===n?l.indexOf(e)>=0:l.startsWith(e)))break}return o}function w(t){return parseInt(t,10)||0}t.fn.triggerNative=function(t){var e,n=this[0];n.dispatchEvent?(b?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),n.dispatchEvent(e)):n.fireEvent?((e=document.createEventObject()).eventType=t,n.fireEvent("on"+t,e)):this.trigger(t)};var T={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"},S=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,C=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function k(t){return T[t]}function x(t){return(t=t.toString())&&t.replace(S,k).replace(C,"")}var E,$,I,O,A,P=(E={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},$=function(t){return E[t]},I="(?:"+Object.keys(E).join("|")+")",O=RegExp(I),A=RegExp(I,"g"),function(t){return t=null==t?"":""+t,O.test(t)?t.replace(A,$):t}),D={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},L={success:!1,major:"3"};try{L.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),L.major=L.full[0],L.success=!0}catch(t){}var M=0,N=".bs.select",j={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},U={MENU:"."+j.MENU},R={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("\xa0"),fragment:document.createDocumentFragment()};R.noResults=R.li.cloneNode(!1),R.noResults.className="no-results",R.a.setAttribute("role","option"),R.a.className="dropdown-item",R.subtext.className="text-muted",R.text=R.span.cloneNode(!1),R.text.className="text",R.checkMark=R.span.cloneNode(!1);var B=new RegExp("38|40"),F=new RegExp("^9$|27"),z={li:function(t,e,n){var i=R.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?i.appendChild(t):i.innerHTML=t),void 0!==e&&""!==e&&(i.className=e),null!=n&&i.classList.add("optgroup-"+n),i},a:function(t,e,n){var i=R.a.cloneNode(!0);return t&&(11===t.nodeType?i.appendChild(t):i.insertAdjacentHTML("beforeend",t)),void 0!==e&&""!==e&&i.classList.add.apply(i.classList,e.split(/\s+/)),n&&i.setAttribute("style",n),i},text:function(t,e){var n,i,r=R.text.cloneNode(!1);if(t.content)r.innerHTML=t.content;else{if(r.textContent=t.text,t.icon){var o=R.whitespace.cloneNode(!1);(i=(!0===e?R.i:R.span).cloneNode(!1)).className=this.options.iconBase+" "+t.icon,R.fragment.appendChild(i),R.fragment.appendChild(o)}t.subtext&&((n=R.subtext.cloneNode(!1)).textContent=t.subtext,r.appendChild(n))}if(!0===e)for(;r.childNodes.length>0;)R.fragment.appendChild(r.childNodes[0]);else R.fragment.appendChild(r);return R.fragment},label:function(t){var e,n,i=R.text.cloneNode(!1);if(i.innerHTML=t.display,t.icon){var r=R.whitespace.cloneNode(!1);(n=R.span.cloneNode(!1)).className=this.options.iconBase+" "+t.icon,R.fragment.appendChild(n),R.fragment.appendChild(r)}return t.subtext&&((e=R.subtext.cloneNode(!1)).textContent=t.subtext,i.appendChild(e)),R.fragment.appendChild(i),R.fragment}};function H(t,e){t.length||(R.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+P(e)+'"'),this.$menuInner[0].firstChild.appendChild(R.noResults))}var q=function e(n,i){var r=this;v.useDefault||(t.valHooks.select.set=v._set,v.useDefault=!0),this.$element=t(n),this.$newElement=null,this.$button=null,this.$menu=null,this.options=i,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){r.selectpicker.keydown.keyHistory=""}),800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var o=this.options.windowPadding;"number"==typeof o&&(this.options.windowPadding=[o,o,o,o]),this.val=e.prototype.val,this.render=e.prototype.render,this.refresh=e.prototype.refresh,this.setStyle=e.prototype.setStyle,this.selectAll=e.prototype.selectAll,this.deselectAll=e.prototype.deselectAll,this.destroy=e.prototype.destroy,this.remove=e.prototype.remove,this.show=e.prototype.show,this.hide=e.prototype.hide,this.init()};function V(n){var i,r=arguments,a=n;if([].shift.apply(r),!L.success){try{L.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(t){L.full=q.BootstrapVersion?q.BootstrapVersion.split(" ")[0].split("."):[L.major,"0","0"]}L.major=L.full[0],L.success=!0}if("4"===L.major){var s=[];q.DEFAULTS.style===j.BUTTONCLASS&&s.push({name:"style",className:"BUTTONCLASS"}),q.DEFAULTS.iconBase===j.ICONBASE&&s.push({name:"iconBase",className:"ICONBASE"}),q.DEFAULTS.tickIcon===j.TICKICON&&s.push({name:"tickIcon",className:"TICKICON"}),j.DIVIDER="dropdown-divider",j.SHOW="show",j.BUTTONCLASS="btn-light",j.POPOVERHEADER="popover-header",j.ICONBASE="",j.TICKICON="bs-ok-default";for(var l=0;l<s.length;l++)n=s[l],q.DEFAULTS[n.name]=j[n.className]}var c=this.each((function(){var n=t(this);if(n.is("select")){var s=n.data("selectpicker"),l="object"==o(a)&&a;if(s){if(l)for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s.options[c]=l[c])}else{var u=n.data();for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&-1!==t.inArray(d,e)&&delete u[d];var h=t.extend({},q.DEFAULTS,t.fn.selectpicker.defaults||{},u,l);h.template=t.extend({},q.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},u.template,l.template),n.data("selectpicker",s=new q(this,h))}"string"==typeof a&&(i=s[a]instanceof Function?s[a].apply(s,r):s.options[a])}}));return void 0!==i?i:c}q.VERSION="1.13.18",q.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:j.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:j.ICONBASE,tickIcon:j.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},q.prototype={constructor:q,init:function(){var t=this,e=this.$element.attr("id"),n=this.$element[0],i=n.form;M++,this.selectId="bs-select-"+M,n.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),n.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),i&&null===n.form&&(i.id||(i.id="form-"+this.selectId),n.setAttribute("form",i.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(U.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),n.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(j.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+N,(function(){if(t.isVirtual()){var e=t.$menuInner[0],n=e.firstChild.cloneNode(!1);e.replaceChild(n,e.firstChild),e.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide"+N,e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden"+N,e)},"show.bs.dropdown":function(e){t.$element.trigger("show"+N,e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown"+N,e)}}),n.hasAttribute("required")&&this.$element.on("invalid"+N,(function(){t.$button[0].classList.add("bs-invalid"),t.$element.on("shown"+N+".invalid",(function(){t.$element.val(t.$element.val()).off("shown"+N+".invalid")})).on("rendered"+N,(function(){this.validity.valid&&t.$button[0].classList.remove("bs-invalid"),t.$element.off("rendered"+N)})),t.$button.on("blur"+N,(function(){t.$element.trigger("focus").trigger("blur"),t.$button.off("blur"+N)}))})),setTimeout((function(){t.buildList(),t.$element.trigger("loaded"+N)}))},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",n=this.multiple?' aria-multiselectable="true"':"",i="",r=this.autofocus?" autofocus":"";L.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var o,a="",s="",l="",c="";return this.options.header&&(a='<div class="'+j.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>"),this.options.liveSearch&&(s='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+P(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(l='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+j.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+j.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(c='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+j.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),o='<div class="dropdown bootstrap-select'+e+i+'"><button type="button" tabindex="-1" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+r+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===L.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+j.MENU+" "+("4"===L.major?"":j.SHOW)+'">'+a+s+l+'<div class="inner '+j.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+n+'><ul class="'+j.MENU+" inner "+("4"===L.major?j.SHOW:"")+'" role="presentation"></ul></div>'+c+"</div></div>",t(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var t=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],n=!0;"divider"===e.type?(n=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(n=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(n=!1),this.selectpicker.view.canHighlight.push(n),n&&(this.selectpicker.view.size++,e.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=t)),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(e,n,i){var r,o,a=this,l=0,c=[];if(this.selectpicker.isSearching=e,this.selectpicker.current=e?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),n)if(i)l=this.$menuInner[0].scrollTop;else if(!a.multiple){var u=a.$element[0],d=(u.options[u.selectedIndex]||{}).liIndex;if("number"==typeof d&&!1!==a.options.size){var h=a.selectpicker.main.data[d],p=h&&h.position;p&&(l=p-(a.sizeInfo.menuInnerHeight+a.sizeInfo.liHeight)/2)}}function f(t,n){var i,l,u,d,h,p,f,m,g,v,y=a.selectpicker.current.elements.length,b=[],_=!0,w=a.isVirtual();a.selectpicker.view.scrollTop=t,i=Math.ceil(a.sizeInfo.menuInnerHeight/a.sizeInfo.liHeight*1.5),l=Math.round(y/i)||1;for(var T=0;T<l;T++){var S=(T+1)*i;if(T===l-1&&(S=y),b[T]=[T*i+(T?1:0),S],!y)break;void 0===h&&t-1<=a.selectpicker.current.data[S-1].position-a.sizeInfo.menuInnerHeight&&(h=T)}if(void 0===h&&(h=0),p=[a.selectpicker.view.position0,a.selectpicker.view.position1],u=Math.max(0,h-1),d=Math.min(l-1,h+1),a.selectpicker.view.position0=!1===w?0:Math.max(0,b[u][0])||0,a.selectpicker.view.position1=!1===w?y:Math.min(y,b[d][1])||0,f=p[0]!==a.selectpicker.view.position0||p[1]!==a.selectpicker.view.position1,void 0!==a.activeIndex&&(o=a.selectpicker.main.elements[a.prevActiveIndex],c=a.selectpicker.main.elements[a.activeIndex],r=a.selectpicker.main.elements[a.selectedIndex],n&&(a.activeIndex!==a.selectedIndex&&a.defocusItem(c),a.activeIndex=void 0),a.activeIndex&&a.activeIndex!==a.selectedIndex&&a.defocusItem(r)),void 0!==a.prevActiveIndex&&a.prevActiveIndex!==a.activeIndex&&a.prevActiveIndex!==a.selectedIndex&&a.defocusItem(o),(n||f)&&(m=a.selectpicker.view.visibleElements?a.selectpicker.view.visibleElements.slice():[],a.selectpicker.view.visibleElements=!1===w?a.selectpicker.current.elements:a.selectpicker.current.elements.slice(a.selectpicker.view.position0,a.selectpicker.view.position1),a.setOptionStatus(),(e||!1===w&&n)&&(g=m,v=a.selectpicker.view.visibleElements,_=!(g.length===v.length&&g.every((function(t,e){return t===v[e]})))),(n||!0===w)&&_)){var C,k,x=a.$menuInner[0],E=document.createDocumentFragment(),$=x.firstChild.cloneNode(!1),I=a.selectpicker.view.visibleElements,O=[];x.replaceChild($,x.firstChild),T=0;for(var A=I.length;T<A;T++){var P,D,L=I[T];a.options.sanitize&&(P=L.lastChild)&&(D=a.selectpicker.current.data[T+a.selectpicker.view.position0])&&D.content&&!D.sanitized&&(O.push(P),D.sanitized=!0),E.appendChild(L)}if(a.options.sanitize&&O.length&&s(O,a.options.whiteList,a.options.sanitizeFn),!0===w?(C=0===a.selectpicker.view.position0?0:a.selectpicker.current.data[a.selectpicker.view.position0-1].position,k=a.selectpicker.view.position1>y-1?0:a.selectpicker.current.data[y-1].position-a.selectpicker.current.data[a.selectpicker.view.position1-1].position,x.firstChild.style.marginTop=C+"px",x.firstChild.style.marginBottom=k+"px"):(x.firstChild.style.marginTop=0,x.firstChild.style.marginBottom=0),x.firstChild.appendChild(E),!0===w&&a.sizeInfo.hasScrollBar){var M=x.firstChild.offsetWidth;if(n&&M<a.sizeInfo.menuInnerInnerWidth&&a.sizeInfo.totalMenuWidth>a.sizeInfo.selectWidth)x.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px";else if(M>a.sizeInfo.menuInnerInnerWidth){a.$menu[0].style.minWidth=0;var N=x.firstChild.offsetWidth;N>a.sizeInfo.menuInnerInnerWidth&&(a.sizeInfo.menuInnerInnerWidth=N,x.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px"),a.$menu[0].style.minWidth=""}}}if(a.prevActiveIndex=a.activeIndex,a.options.liveSearch){if(e&&n){var j,U=0;a.selectpicker.view.canHighlight[U]||(U=1+a.selectpicker.view.canHighlight.slice(1).indexOf(!0)),j=a.selectpicker.view.visibleElements[U],a.defocusItem(a.selectpicker.view.currentActive),a.activeIndex=(a.selectpicker.current.data[U]||{}).index,a.focusItem(j)}}else a.$menuInner.trigger("focus")}f(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(t,e){a.noScroll||f(this.scrollTop,e),a.noScroll=!1})),t(window).off("resize"+N+"."+this.selectId+".createView").on("resize"+N+"."+this.selectId+".createView",(function(){a.$newElement.hasClass(j.SHOW)&&f(a.$menuInner[0].scrollTop)}))},focusItem:function(t,e,n){if(t){e=e||this.selectpicker.main.data[this.activeIndex];var i=t.firstChild;i&&(i.setAttribute("aria-setsize",this.selectpicker.view.size),i.setAttribute("aria-posinset",e.posinset),!0!==n&&(this.focusedParent.setAttribute("aria-activedescendant",i.id),t.classList.add("active"),i.classList.add("active")))}},defocusItem:function(t){t&&(t.classList.remove("active"),t.firstChild&&t.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=this,e=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),e=!0;var n=this.$element[0],i=!1,r=!this.selectpicker.view.titleOption.parentNode,o=n.selectedIndex,a=n.options[o],s=window.performance&&window.performance.getEntriesByType("navigation"),l=s&&s.length?"back_forward"!==s[0].type:2!==window.performance.navigation.type;r&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",i=!a||0===o&&!1===a.defaultSelected&&void 0===this.$element.data("selected")),(r||0!==this.selectpicker.view.titleOption.index)&&n.insertBefore(this.selectpicker.view.titleOption,n.firstChild),i&&l?n.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",(function(){t.selectpicker.view.displayedValue!==n.value&&t.render()}))}return e},buildData:function(){var t=':not([hidden]):not([data-hidden="true"])',e=[],n=0,i=this.setPlaceholder()?1:0;this.options.hideDisabled&&(t+=":not(:disabled)");var r=this.$element[0].querySelectorAll("select > *"+t);function o(t){var n=e[e.length-1];n&&"divider"===n.type&&(n.optID||t.optID)||((t=t||{}).type="divider",e.push(t))}function a(t,n){if((n=n||{}).divider="true"===t.getAttribute("data-divider"),n.divider)o({optID:n.optID});else{var i=e.length,r=t.style.cssText,a=r?P(r):"",s=(t.className||"")+(n.optgroupClass||"");n.optID&&(s="opt "+s),n.optionClass=s.trim(),n.inlineStyle=a,n.text=t.textContent,n.content=t.getAttribute("data-content"),n.tokens=t.getAttribute("data-tokens"),n.subtext=t.getAttribute("data-subtext"),n.icon=t.getAttribute("data-icon"),t.liIndex=i,n.display=n.content||n.text,n.type="option",n.index=i,n.option=t,n.selected=!!t.selected,n.disabled=n.disabled||!!t.disabled,e.push(n)}}function s(r,s){var l=s[r],c=!(r-1<i)&&s[r-1],u=s[r+1],d=l.querySelectorAll("option"+t);if(d.length){var h,p,f={display:P(l.label),subtext:l.getAttribute("data-subtext"),icon:l.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(l.className||"")};n++,c&&o({optID:n}),f.optID=n,e.push(f);for(var m=0,g=d.length;m<g;m++){var v=d[m];0===m&&(p=(h=e.length-1)+g),a(v,{headerIndex:h,lastIndex:p,optID:f.optID,optgroupClass:f.optgroupClass,disabled:l.disabled})}u&&o({optID:n})}}for(var l=r.length,c=i;c<l;c++){var u=r[c];"OPTGROUP"!==u.tagName?a(u,{}):s(c,r)}this.selectpicker.main.data=this.selectpicker.current.data=e},buildList:function(){var t=this,e=this.selectpicker.main.data,n=[],i=0;function r(e){var r,o=0;switch(e.type){case"divider":r=z.li(!1,j.DIVIDER,e.optID?e.optID+"div":void 0);break;case"option":(r=z.li(z.a(z.text.call(t,e),e.optionClass,e.inlineStyle),"",e.optID)).firstChild&&(r.firstChild.id=t.selectId+"-"+e.index);break;case"optgroup-label":r=z.li(z.label.call(t,e),"dropdown-header"+e.optgroupClass,e.optID)}e.element=r,n.push(r),e.display&&(o+=e.display.length),e.subtext&&(o+=e.subtext.length),e.icon&&(o+=1),o>i&&(i=o,t.selectpicker.view.widestOption=n[n.length-1])}!t.options.showTick&&!t.multiple||R.checkMark.parentNode||(R.checkMark.className=this.options.iconBase+" "+t.options.tickIcon+" check-mark",R.a.appendChild(R.checkMark));for(var o=e.length,a=0;a<o;a++)r(e[a]);this.selectpicker.main.elements=this.selectpicker.current.elements=n},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var t,e,n=this,i=this.$element[0],r=this.setPlaceholder()&&0===i.selectedIndex,o=m(i,this.options.hideDisabled),a=o.length,l=this.$button[0],c=l.querySelector(".filter-option-inner-inner"),u=document.createTextNode(this.options.multipleSeparator),d=R.fragment.cloneNode(!1),h=!1;if(l.classList.toggle("bs-placeholder",n.multiple?!a:!g(i,o)),n.multiple||1!==o.length||(n.selectpicker.view.displayedValue=g(i,o)),"static"===this.options.selectedTextFormat)d=z.text.call(this,{text:this.options.title},!0);else if((t=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&a>1)&&(t=(e=this.options.selectedTextFormat.split(">")).length>1&&a>e[1]||1===e.length&&a>=2),!1===t){if(!r){for(var p=0;p<a&&p<50;p++){var f=o[p],v=this.selectpicker.main.data[f.liIndex],y={};this.multiple&&p>0&&d.appendChild(u.cloneNode(!1)),f.title?y.text=f.title:v&&(v.content&&n.options.showContent?(y.content=v.content.toString(),h=!0):(n.options.showIcon&&(y.icon=v.icon),n.options.showSubtext&&!n.multiple&&v.subtext&&(y.subtext=" "+v.subtext),y.text=f.textContent.trim())),d.appendChild(z.text.call(this,y,!0))}a>49&&d.appendChild(document.createTextNode("..."))}}else{var b=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(b+=":not(:disabled)");var _=this.$element[0].querySelectorAll("select > option"+b+", optgroup"+b+" option"+b).length,w="function"==typeof this.options.countSelectedText?this.options.countSelectedText(a,_):this.options.countSelectedText;d=z.text.call(this,{text:w.replace("{0}",a.toString()).replace("{1}",_.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),d.childNodes.length||(d=z.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),l.title=d.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&h&&s([d],n.options.whiteList,n.options.sanitizeFn),c.innerHTML="",c.appendChild(d),L.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var T=l.querySelector(".filter-expand"),S=c.cloneNode(!0);S.className="filter-expand",T?l.replaceChild(S,T):l.appendChild(S)}this.$element.trigger("rendered"+N)},setStyle:function(t,e){var n,i=this.$button[0],r=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),L.major<4&&(r.classList.add("bs3"),r.parentNode.classList&&r.parentNode.classList.contains("input-group")&&(r.previousElementSibling||r.nextElementSibling)&&(r.previousElementSibling||r.nextElementSibling).classList.contains("input-group-addon")&&r.classList.add("bs3-has-addon")),n=t?t.trim():o,"add"==e?n&&i.classList.add.apply(i.classList,n.split(" ")):"remove"==e?n&&i.classList.remove.apply(i.classList,n.split(" ")):(o&&i.classList.remove.apply(i.classList,o.split(" ")),n&&i.classList.add.apply(i.classList,n.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var n,i=R.div.cloneNode(!1),r=R.div.cloneNode(!1),o=R.div.cloneNode(!1),a=document.createElement("ul"),s=R.li.cloneNode(!1),l=R.li.cloneNode(!1),c=R.a.cloneNode(!1),u=R.span.cloneNode(!1),d=this.options.header&&this.$menu.find("."+j.POPOVERHEADER).length>0?this.$menu.find("."+j.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?R.div.cloneNode(!1):null,p=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,u.className="text",c.className="dropdown-item "+(m?m.className:""),i.className=this.$menu[0].parentNode.className+" "+j.SHOW,i.style.width=0,"auto"===this.options.width&&(r.style.minWidth=0),r.className=j.MENU+" "+j.SHOW,o.className="inner "+j.SHOW,a.className=j.MENU+" inner "+("4"===L.major?j.SHOW:""),s.className=j.DIVIDER,l.className="dropdown-header",u.appendChild(document.createTextNode("\u200b")),this.selectpicker.current.data.length)for(var g=0;g<this.selectpicker.current.data.length;g++){var v=this.selectpicker.current.data[g];if("option"===v.type){n=v.element;break}}else n=R.li.cloneNode(!1),c.appendChild(u),n.appendChild(c);if(l.appendChild(u.cloneNode(!0)),this.selectpicker.view.widestOption&&a.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),a.appendChild(n),a.appendChild(s),a.appendChild(l),d&&r.appendChild(d),h){var y=document.createElement("input");h.className="bs-searchbox",y.className="form-control",h.appendChild(y),r.appendChild(h)}p&&r.appendChild(p),o.appendChild(a),r.appendChild(o),f&&r.appendChild(f),i.appendChild(r),document.body.appendChild(i);var b,_=n.offsetHeight,T=l?l.offsetHeight:0,S=d?d.offsetHeight:0,C=h?h.offsetHeight:0,k=p?p.offsetHeight:0,x=f?f.offsetHeight:0,E=t(s).outerHeight(!0),$=!!window.getComputedStyle&&window.getComputedStyle(r),I=r.offsetWidth,O=$?null:t(r),A={vert:w($?$.paddingTop:O.css("paddingTop"))+w($?$.paddingBottom:O.css("paddingBottom"))+w($?$.borderTopWidth:O.css("borderTopWidth"))+w($?$.borderBottomWidth:O.css("borderBottomWidth")),horiz:w($?$.paddingLeft:O.css("paddingLeft"))+w($?$.paddingRight:O.css("paddingRight"))+w($?$.borderLeftWidth:O.css("borderLeftWidth"))+w($?$.borderRightWidth:O.css("borderRightWidth"))},P={vert:A.vert+w($?$.marginTop:O.css("marginTop"))+w($?$.marginBottom:O.css("marginBottom"))+2,horiz:A.horiz+w($?$.marginLeft:O.css("marginLeft"))+w($?$.marginRight:O.css("marginRight"))+2};o.style.overflowY="scroll",b=r.offsetWidth-I,document.body.removeChild(i),this.sizeInfo.liHeight=_,this.sizeInfo.dropdownHeaderHeight=T,this.sizeInfo.headerHeight=S,this.sizeInfo.searchHeight=C,this.sizeInfo.actionsHeight=k,this.sizeInfo.doneButtonHeight=x,this.sizeInfo.dividerHeight=E,this.sizeInfo.menuPadding=A,this.sizeInfo.menuExtras=P,this.sizeInfo.menuWidth=I,this.sizeInfo.menuInnerInnerWidth=I-A.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=b,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var e,n=this,i=t(window),r=n.$newElement.offset(),o=t(n.options.container);n.options.container&&o.length&&!o.is("body")?((e=o.offset()).top+=parseInt(o.css("borderTopWidth")),e.left+=parseInt(o.css("borderLeftWidth"))):e={top:0,left:0};var a=n.options.windowPadding;this.sizeInfo.selectOffsetTop=r.top-e.top-i.scrollTop(),this.sizeInfo.selectOffsetBot=i.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-e.top-a[2],this.sizeInfo.selectOffsetLeft=r.left-e.left-i.scrollLeft(),this.sizeInfo.selectOffsetRight=i.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-e.left-a[1],this.sizeInfo.selectOffsetTop-=a[0],this.sizeInfo.selectOffsetLeft-=a[3]},setMenuSize:function(t){this.getSelectPosition();var e,n,i,r,o,a,s,l,c=this.sizeInfo.selectWidth,u=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,h=this.sizeInfo.searchHeight,p=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,g=this.sizeInfo.menuPadding,v=0;if(this.options.dropupAuto&&(s=u*this.selectpicker.current.elements.length+g.vert,l=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(j.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)r=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,i=r+d+h+p+f,a=Math.max(r-g.vert,0),this.$newElement.hasClass(j.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),o=n,e=n-d-h-p-f-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var y=0;y<this.options.size;y++)"divider"===this.selectpicker.current.data[y].type&&v++;e=(n=u*this.options.size+v*m+g.vert)-g.vert,o=n+d+h+p+f,i=a=""}this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":i+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":a+"px"}),this.sizeInfo.menuInnerHeight=Math.max(e,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(j.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var n=this,i=t(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",(function(){return n.setMenuSize()})),"auto"===this.options.size?i.off("resize"+N+"."+this.selectId+".setMenuSize scroll"+N+"."+this.selectId+".setMenuSize").on("resize"+N+"."+this.selectId+".setMenuSize scroll"+N+"."+this.selectId+".setMenuSize",(function(){return n.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&i.off("resize"+N+"."+this.selectId+".setMenuSize scroll"+N+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,e)},setWidth:function(){var t=this;"auto"===this.options.width?requestAnimationFrame((function(){t.$menu.css("min-width","0"),t.$element.on("loaded"+N,(function(){t.liHeight(),t.setMenuSize();var e=t.$newElement.clone().appendTo("body"),n=e.css("width","auto").children("button").outerWidth();e.remove(),t.sizeInfo.selectWidth=Math.max(t.sizeInfo.totalMenuWidth,n),t.$newElement.css("width",t.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=t('<div class="bs-container" />');var e,n,i,r=this,o=t(this.options.container),a=function(a){var s={},l=r.options.display||!!t.fn.dropdown.Constructor.Default&&t.fn.dropdown.Constructor.Default.display;r.$bsContainer.addClass(a.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(j.DROPUP,a.hasClass(j.DROPUP)),e=a.offset(),o.is("body")?n={top:0,left:0}:((n=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),n.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),i=a.hasClass(j.DROPUP)?0:a[0].offsetHeight,(L.major<4||"static"===l)&&(s.top=e.top-n.top+i,s.left=e.left-n.left),s.width=a[0].offsetWidth,r.$bsContainer.css(s)};this.$button.on("click.bs.dropdown.data-api",(function(){r.isDisabled()||(a(r.$newElement),r.$bsContainer.appendTo(r.options.container).toggleClass(j.SHOW,!r.$button.hasClass(j.SHOW)).append(r.$menu))})),t(window).off("resize"+N+"."+this.selectId+" scroll"+N+"."+this.selectId).on("resize"+N+"."+this.selectId+" scroll"+N+"."+this.selectId,(function(){r.$newElement.hasClass(j.SHOW)&&a(r.$newElement)})),this.$element.on("hide"+N,(function(){r.$menu.data("height",r.$menu.height()),r.$bsContainer.detach()}))},setOptionStatus:function(t){var e=this;if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var n=0;n<e.selectpicker.view.visibleElements.length;n++){var i=e.selectpicker.current.data[n+e.selectpicker.view.position0],r=i.option;r&&(!0!==t&&e.setDisabled(i.index,i.disabled),e.setSelected(i.index,r.selected))}},setSelected:function(t,e){var n,i,r=this.selectpicker.main.elements[t],o=this.selectpicker.main.data[t],a=void 0!==this.activeIndex,s=this.activeIndex===t||e&&!this.multiple&&!a;o.selected=e,i=r.firstChild,e&&(this.selectedIndex=t),r.classList.toggle("selected",e),s?(this.focusItem(r,o),this.selectpicker.view.currentActive=r,this.activeIndex=t):this.defocusItem(r),i&&(i.classList.toggle("selected",e),e?i.setAttribute("aria-selected",!0):this.multiple?i.setAttribute("aria-selected",!1):i.removeAttribute("aria-selected")),s||a||!e||void 0===this.prevActiveIndex||(n=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(n))},setDisabled:function(t,e){var n,i=this.selectpicker.main.elements[t];this.selectpicker.main.data[t].disabled=e,n=i.firstChild,i.classList.toggle(j.DISABLED,e),n&&("4"===L.major&&n.classList.toggle(j.DISABLED,e),e?(n.setAttribute("aria-disabled",e),n.setAttribute("tabindex",-1)):(n.removeAttribute("aria-disabled"),n.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(j.DISABLED),this.$button.addClass(j.DISABLED).attr("aria-disabled",!0)):this.$button[0].classList.contains(j.DISABLED)&&(this.$newElement[0].classList.remove(j.DISABLED),this.$button.removeClass(j.DISABLED).attr("aria-disabled",!1))},clickListener:function(){var e=this,n=t(document);function i(){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$menuInner.trigger("focus")}function r(){e.dropdown&&e.dropdown._popper&&e.dropdown._popper.state.isCreated?i():requestAnimationFrame(r)}n.data("spaceSelect",!1),this.$button.on("keyup",(function(t){/(32)/.test(t.keyCode.toString(10))&&n.data("spaceSelect")&&(t.preventDefault(),n.data("spaceSelect",!1))})),this.$newElement.on("show.bs.dropdown",(function(){L.major>3&&!e.dropdown&&(e.dropdown=e.$button.data("bs.dropdown"),e.dropdown._menu=e.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){e.$newElement.hasClass(j.SHOW)||e.setSize()})),this.$element.on("shown"+N,(function(){e.$menuInner[0].scrollTop!==e.selectpicker.view.scrollTop&&(e.$menuInner[0].scrollTop=e.selectpicker.view.scrollTop),L.major>3?requestAnimationFrame(r):i()})),this.$menuInner.on("mouseenter","li a",(function(t){var n=this.parentElement,i=e.isVirtual()?e.selectpicker.view.position0:0,r=Array.prototype.indexOf.call(n.parentElement.children,n),o=e.selectpicker.current.data[r+i];e.focusItem(n,o,!0)})),this.$menuInner.on("click","li a",(function(n,i){var r=t(this),o=e.$element[0],a=e.isVirtual()?e.selectpicker.view.position0:0,s=e.selectpicker.current.data[r.parent().index()+a],l=s.index,c=g(o),u=o.selectedIndex,d=o.options[u],h=!0;if(e.multiple&&1!==e.options.maxOptions&&n.stopPropagation(),n.preventDefault(),!e.isDisabled()&&!r.parent().hasClass(j.DISABLED)){var p=s.option,f=t(p),v=p.selected,b=f.parent("optgroup"),_=b.find("option"),w=e.options.maxOptions,T=b.data("maxOptions")||!1;if(l===e.activeIndex&&(i=!0),i||(e.prevActiveIndex=e.activeIndex,e.activeIndex=void 0),e.multiple){if(p.selected=!v,e.setSelected(l,!v),e.focusedParent.focus(),!1!==w||!1!==T){var S=w<m(o).length,C=T<b.find("option:selected").length;if(w&&S||T&&C)if(w&&1==w)o.selectedIndex=-1,p.selected=!0,e.setOptionStatus(!0);else if(T&&1==T){for(var k=0;k<_.length;k++){var x=_[k];x.selected=!1,e.setSelected(x.liIndex,!1)}p.selected=!0,e.setSelected(l,!0)}
2else{var E="string"==typeof e.options.maxOptionsText?[e.options.maxOptionsText,e.options.maxOptionsText]:e.options.maxOptionsText,$="function"==typeof E?E(w,T):E,I=$[0].replace("{n}",w),O=$[1].replace("{n}",T),A=t('<div class="notify"></div>');$[2]&&(I=I.replace("{var}",$[2][w>1?0:1]),O=O.replace("{var}",$[2][T>1?0:1])),p.selected=!1,e.$menu.append(A),w&&S&&(A.append(t("<div>"+I+"</div>")),h=!1,e.$element.trigger("maxReached"+N)),T&&C&&(A.append(t("<div>"+O+"</div>")),h=!1,e.$element.trigger("maxReachedGrp"+N)),setTimeout((function(){e.setSelected(l,!1)}),10),A[0].classList.add("fadeOut"),setTimeout((function(){A.remove()}),1050)}}}else d&&(d.selected=!1),p.selected=!0,e.setSelected(l,!0);!e.multiple||e.multiple&&1===e.options.maxOptions?e.$button.trigger("focus"):e.options.liveSearch&&e.$searchbox.trigger("focus"),h&&(e.multiple||u!==o.selectedIndex)&&(y=[p.index,f.prop("selected"),c],e.$element.triggerNative("change"))}})),this.$menu.on("click","li."+j.DISABLED+" a, ."+j.POPOVERHEADER+", ."+j.POPOVERHEADER+" :not(.close)",(function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),e.options.liveSearch&&!t(n.target).hasClass("close")?e.$searchbox.trigger("focus"):e.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus")})),this.$menu.on("click","."+j.POPOVERHEADER+" .close",(function(){e.$button.trigger("click")})),this.$searchbox.on("click",(function(t){t.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(n){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus"),n.preventDefault(),n.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()})),this.$button.on("focus"+N,(function(t){var n=e.$element[0].getAttribute("tabindex");void 0!==n&&t.originalEvent&&t.originalEvent.isTrusted&&(this.setAttribute("tabindex",n),e.$element[0].setAttribute("tabindex",-1),e.selectpicker.view.tabindex=n)})).on("blur"+N,(function(t){void 0!==e.selectpicker.view.tabindex&&t.originalEvent&&t.originalEvent.isTrusted&&(e.$element[0].setAttribute("tabindex",e.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),e.selectpicker.view.tabindex=void 0)})),this.$element.on("change"+N,(function(){e.render(),e.$element.trigger("changed"+N,y),y=null})).on("focus"+N,(function(){e.options.mobile||e.$button[0].focus()}))},liveSearchListener:function(){var t=this;this.$button.on("click.bs.dropdown.data-api",(function(){t.$searchbox.val()&&(t.$searchbox.val(""),t.selectpicker.search.previousValue=void 0)})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(t){t.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var e=t.$searchbox[0].value;if(t.selectpicker.search.elements=[],t.selectpicker.search.data=[],e){var n=[],i=e.toUpperCase(),r={},o=[],a=t._searchStyle(),s=t.options.liveSearchNormalize;s&&(i=x(i));for(var l=0;l<t.selectpicker.main.data.length;l++){var c=t.selectpicker.main.data[l];r[l]||(r[l]=_(c,i,a,s)),r[l]&&void 0!==c.headerIndex&&-1===o.indexOf(c.headerIndex)&&(c.headerIndex>0&&(r[c.headerIndex-1]=!0,o.push(c.headerIndex-1)),r[c.headerIndex]=!0,o.push(c.headerIndex),r[c.lastIndex+1]=!0),r[l]&&"optgroup-label"!==c.type&&o.push(l)}l=0;for(var u=o.length;l<u;l++){var d=o[l],h=o[l-1],p=(c=t.selectpicker.main.data[d],t.selectpicker.main.data[h]);("divider"!==c.type||"divider"===c.type&&p&&"divider"!==p.type&&u-1!==l)&&(t.selectpicker.search.data.push(c),n.push(t.selectpicker.main.elements[d]))}t.activeIndex=void 0,t.noScroll=!0,t.$menuInner.scrollTop(0),t.selectpicker.search.elements=n,t.createView(!0),H.call(t,n,e)}else t.selectpicker.search.previousValue&&(t.$menuInner.scrollTop(0),t.createView(!1));t.selectpicker.search.previousValue=e}))},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){var e=this.$element[0];if(void 0!==t){var n=g(e);if(y=[null,null,n],this.$element.val(t).trigger("changed"+N,y),this.$newElement.hasClass(j.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var i=(e.options[e.selectedIndex]||{}).liIndex;"number"==typeof i&&(this.setSelected(this.selectedIndex,!1),this.setSelected(i,!0))}return this.render(),y=null,this.$element}return this.$element.val()},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0);var e=this.$element[0],n=0,i=0,r=g(e);e.classList.add("bs-select-hidden");for(var o=0,a=this.selectpicker.current.data,s=a.length;o<s;o++){var l=a[o],c=l.option;c&&!l.disabled&&"divider"!==l.type&&(l.selected&&n++,c.selected=t,!0===t&&i++)}e.classList.remove("bs-select-hidden"),n!==i&&(this.setOptionStatus(),y=[null,null,r],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var n,i,r,o,a,s=t(this),l=s.hasClass("dropdown-toggle"),c=(l?s.closest(".dropdown"):s.closest(U.MENU)).data("this"),u=c.findLis(),d=!1,h=9===e.which&&!l&&!c.options.selectOnTab,p=B.test(e.which)||h,f=c.$menuInner[0].scrollTop,m=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(e.which>=112&&e.which<=123))if(!(i=c.$newElement.hasClass(j.SHOW))&&(p||e.which>=48&&e.which<=57||e.which>=96&&e.which<=105||e.which>=65&&e.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(27===e.which&&i&&(e.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),p){if(!u.length)return;-1!==(n=(r=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(r.parentElement.children,r):-1)&&c.defocusItem(r),38===e.which?(-1!==n&&n--,n+m<0&&(n+=u.length),c.selectpicker.view.canHighlight[n+m]||-1==(n=c.selectpicker.view.canHighlight.slice(0,n+m).lastIndexOf(!0)-m)&&(n=u.length-1)):(40===e.which||h)&&(++n+m>=c.selectpicker.view.canHighlight.length&&(n=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[n+m]||(n=n+1+c.selectpicker.view.canHighlight.slice(n+m+1).indexOf(!0))),e.preventDefault();var g=m+n;38===e.which?0===m&&n===u.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):d=(a=(o=c.selectpicker.current.data[g]).position-o.height)<f:(4
20===e.which||h)&&(n===c.selectpicker.view.firstHighlightIndex?(c.$menuInner[0].scrollTop=0,g=c.selectpicker.view.firstHighlightIndex):d=(a=(o=c.selectpicker.current.data[g]).position-c.sizeInfo.menuInnerHeight)>f),r=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(r),c.selectpicker.view.currentActive=r,d&&(c.$menuInner[0].scrollTop=a),c.options.liveSearch?c.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!F.test(e.which)||32===e.which&&c.selectpicker.keydown.keyHistory){var v,y,b=[];e.preventDefault(),c.selectpicker.keydown.keyHistory+=D[e.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),y=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0));for(var w=0;w<c.selectpicker.current.data.length;w++){var T=c.selectpicker.current.data[w];_(T,y,"startsWith",!0)&&c.selectpicker.view.canHighlight[w]&&b.push(T.index)}if(b.length){var S=0;u.removeClass("active").find("a").removeClass("active"),1===y.length&&(-1===(S=b.indexOf(c.activeIndex))||S===b.length-1?S=0:S++),v=b[S],f-(o=c.selectpicker.main.data[v]).position>0?(a=o.position-o.height,d=!0):(a=o.position-c.sizeInfo.menuInnerHeight,d=o.position>f+c.sizeInfo.menuInnerHeight),r=c.selectpicker.main.elements[v],c.activeIndex=b[S],c.focusItem(r),r&&r.firstChild.focus(),d&&(c.$menuInner[0].scrollTop=a),s.trigger("focus")}}i&&(32===e.which&&!c.selectpicker.keydown.keyHistory||13===e.which||9===e.which&&c.options.selectOnTab)&&(32!==e.which&&e.preventDefault(),c.options.liveSearch&&32===e.which||(c.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),c.options.liveSearch||(e.preventDefault(),t(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var e=t.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+N)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(N).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),t(window).off(N+"."+this.selectId)}};var W=t.fn.selectpicker;function G(){if(t.fn.dropdown)return(t.fn.dropdown.Constructor._dataApiKeydownHandler||t.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}t.fn.selectpicker=V,t.fn.selectpicker.Constructor=q,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=W,this},t(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',G).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",G).on("keydown"+N,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',q.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(t){t.stopPropagation()})),t(window).on("load"+N+".data-api",(function(){t(".selectpicker").each((function(){var e=t(this);V.call(e,e.data())}))}))}(t)}.apply(e,i),void 0===r||(t.exports=r)},70789:(t,e)=>{e.byteLength=function(t){var e=s(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,o=s(t),a=o[0],l=o[1],c=new r(function(t,e,n){return 3*(e+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===l&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===l&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],a=16383,s=0,c=i-r;s<c;s+=a)o.push(l(t,s,s+a>c?c:s+a));return 1===r?(e=t[i-1],o.push(n[e>>
vendor: 5,120 bytes, line 2
22]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],i[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,i){for(var r,o,a=[],s=e;s<i;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=r)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},23695:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(70789),o=n(72820),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=c,e.h2=50;var s=2147483647;function l(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|g(t,e),i=l(n),r=i.write(t,e);return r!==n&&(i=i.slice(0,r)),i}(t,e);if(ArrayBuffer.isView(t))return function(t){if(z(t,Uint8Array)){var e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+i(t));if(z(t,ArrayBuffer)||t&&z(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(z(t,SharedArrayBuffer)||t&&z(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);var o=function(t){if(c.isBuffer(t)){var e=0|m(t.length),n=l(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||H(t.length)?l(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+i(t))}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return d(t),l(t<0?0:0|m(t))}function p(t){for(var e=t.length<0?0:0|m(t.length),n=l(e),i=0;i<e;i+=1)n[i]=255&t[i];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(i,c.prototype),i}function m(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+i(t));var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(o)return r?-1:R(t).length;e=(""+e).toLowerCase(),o=!0}}function v(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return A(this,e,n);case"utf8":case"utf-8":return E(this,e,n);case"ascii":return I(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function y(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function b(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}
vendor: 14,969 bytes, line 2
2if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:_(t,e,n,i,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,i,r){var o,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var u=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(t,o+h)!==c(e,h)){d=!1;break}if(d)return o}return-1}function w(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=e.length;i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(H(s))return a;t[n+a]=s}return a}function T(t,e,n,i){return F(R(e,t.length-n),t,n,i)}function S(t,e,n,i){return F(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function C(t,e,n,i){return F(B(e),t,n,i)}function k(t,e,n,i){return F(function(t,e){for(var n,i,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)i=(n=t.charCodeAt(a))>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function x(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function E(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var o,a,s,l,c=t[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(t){var e=t.length;if(e<=$)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=$));return n}(i)}c.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),!c.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return d(t),t<=0?l(t):void 0!==e?"string"==typeof n?l(t).fill(e,n):l(t).fill(e):l(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),z(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=c.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(z(o,Uint8Array))r+o.length>i.length?c.from(o).copy(i,r):Uint8Array.prototype.set.call(i,o,r);else{if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r)}r+=o.length}return i},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?E(this,0,t):v.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.h2;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,o){if(z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+i(t));if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),l=Math.min(a,s),u=this.slice(r,o),d=t.slice(e,n),h=0;h<l;++h)if(u[h]!==d[h]){a=u[h],s=d[h];break}return a<s?-1:s<a?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":case"latin1":case"binary":return S(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function I(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function O(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function A(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=e;o<n;++o)r+=q[t[o]];return r}function P(t,e,n){for(var i=t.slice(e,n),r="",o=0;o<i.length-1;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function D(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,i,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function M(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,i,r){return e=+e,n>>>=0,r||M(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function j(t,e,n,i,r){return e=+e,n>>>=0,r||M(t,0,n,8),o.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var i=this.subarray(t,e);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||D(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var i=this[t],r=1,o=0;++o<e&&(r*=256);)i+=this[t+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||D(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||D(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||D(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||D(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||D(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e>>>=0,n>>>=0,i||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,i){t=+t,e>>>=0,n>>>=0,i||L(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){var r=Math.pow(2,8*n-1);L(this,t,e,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r=i-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),e),r},c.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){var r=t.charCodeAt(0);("utf8"===i&&r<128||"latin1"===i)&&(t=r)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=c.isBuffer(t)?t:c.from(t,i),s=a.length;
vendor: 6,295 bytes, line 2
2if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function R(t,e){var n;e=e||1/0;for(var i=t.length,r=null,o=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function H(t){return t!=t}var q=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)e[i+r]=t[n]+t[r];return e}()},72820:(t,e)=>{e.read=function(t,e,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=t[e+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+t[e+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+t[e+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=c}return(p?-1:1)*a*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(e*l-1)*Math.pow(2,r),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;t[n+p]=255&s,p+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;t[n+p]=255&a,p+=f,a/=256,c-=8);t[n+p-f]|=128*m}},82422:(t,e,n)=>{var i=n(79821).Symbol;t.exports=i},58518:(t,e,n)=>{var i=n(82422),r=n(93735),o=n(89400),a=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):o(t)}},71336:(t,e,n)=>{var i=n(55781),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},30147:(t,e,n)=>{function i(t){return i="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},i(t)}var r="object"==(void 0===n.g?"undefined":i(n.g))&&n.g&&n.g.Object===Object&&n.g;t.exports=r},93735:(t,e,n)=>{var i=n(82422),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}},89400:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},79821:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(30147),o="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,a=r||o||Function("return this")();t.exports=a},55781:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},37174:(t,e,n)=>{var i=n(12306),r=n(56266),o=n(9993),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l,c,u,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,i=c;return l=c=void 0,f=e,d=t.apply(i,n)}function b(t){var n=t-p;return void 0===p||n>=e||n<0||g&&t-f>=u}function _(){var t=r();if(b(t))return w(t);h=setTimeout(_,function(t){var n=e-(t-p);return g?s(n,u-(t-f)):n}(t))}function w(t){return h=void 0,v&&l?y(t):(l=c=void 0,d)}function T(){var t=r(),n=b(t);if(l=arguments,c=this,p=t,n){if(void 0===h)return function(t){return f=t,h=setTimeout(_,e),m?y(t):d}(p);if(g)return clearTimeout(h),h=setTimeout(_,e),y(p)}return void 0===h&&(h=setTimeout(_,e)),d}return e=o(e)||0,i(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),T.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},T.flush=function(){return void 0===h?d:w(r())},T}},12306:t=>{function e(t){return e="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},e(t)}t.exports=function(t){var n=e(t);return null!=t&&("object"==n||"function"==n)}},31269:t=>{function e(t){return e="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},e(t)}t.exports=function(t){return null!=t&&"object"==e(t)}},73159:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(58518),o=n(31269);t.exports=function(t){return"symbol"==i(t)||o(t)&&"[object Symbol]"==r(t)}},56266:(t,e,n)=>{var i=n(79821);t.exports=function(){return i.Date.now()}},9993:(t,e,n)=>{var i=n(71336),r=n(12306),o=n(73159),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},87748:(t,e,n)=>{var i=n(12365),r=n(82343),o={cart:function(){return i.init.call(i)}};t.exports={baseFiles:o,loadFunctions:function(){Object.keys(o).forEac
2h((function(t){r(o[t])}))}}},12365:(t,e,n)=>{n(64171),n(76366);var i=n(88503);t.exports={getPidValue:function(t){return $("#quickViewModal").hasClass("show")&&!$(".product-set").length?$(t).closest(".modal-content").find(".product-quickview").data("pid"):$(".product-set-detail").length||$(".product-set").length?$(t).closest(".product-detail").find(".product-id").text():$('.product-detail:not(".bundle-item")').data("pid")},appendToUrl:function(t,e){return t+(-1!==t.indexOf("?")?"&":"?")+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")},validateBasket:function(t){if(t.valid.error){if(t.valid.message){var e='<div class="alert alert-danger alert-dismissible valid-cart-error fade show" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>'+t.valid.message+"</div>";$(".cart-error").append(e)}else $(".cart").empty().append('<div class="row"> <div class="col-12 text-center"> <h1>'+t.resources.emptyCartMsg+"</h1> </div> </div>"),$(".number-of-items").empty().append(1==t.numItems?t.resources.numberOfItem:t.resources.numberOfItems),$(".minicart-quantity").empty().append(t.numItems),$(".minicart-link").attr({"aria-label":t.resources.minicartCountOfItems,title:t.resources.minicartCountOfItems}),$(".minicart .popover").empty(),$(".minicart .popover").removeClass("show");$(".checkout-btn").addClass("disabled")}else $(".checkout-btn").removeClass("disabled")},updateCartTotals:function(t){$(".number-of-items").empty().append(1==t.numItems?t.resources.numberOfItem:t.resources.numberOfItems),$(".shipping-cost span").empty().append(t.totals.totalShippingCost),$(".tax-total span").empty().append(t.totals.totalTax),$(".grand-total span").empty().append(t.totals.grandTotalLessGiftCertificatePaymentInstrumentsFormatted),$(".sub-total span").empty().append(t.totals.subTotal),$(".minicart-quantity").empty().append(t.numItems),$(".minicart-link").attr({"aria-label":t.resources.minicartCountOfItems,title:t.resources.minicartCountOfItems}),t.totals.orderLevelDiscountTotal.value>0?($(".order-discount").removeClass("hide-order-discount"),$(".order-discount-total").empty().append("- "+t.totals.orderLevelDiscountTotal.formatted)):$(".order-discount").addClass("hide-order-discount"),t.totals.shippingLevelDiscountTotal.value>0?($(".shipping-discount").removeClass("hide-shipping-discount"),$(".shipping-discount-total span").empty().append("- "+t.totals.shippingLevelDiscountTotal.formatted)):$(".shipping-discount").addClass("hide-shipping-discount"),t.payment.giftCertificatePaymentInstruments.length?($(".giftcertificate-discount").removeClass("d-none"),$(".giftcertificate-discount-label").text(t.totals.giftCertificatePaymentInstrumentsLabel),$(".giftcertificate-discount-total").text("- "+t.totals.giftCertificatePaymentInstrumentsTotalFormatted)):$(".giftcertificate-discount").addClass("d-none"),t.totals.grandTotalLessGiftCertificatePaymentInstrumentsValue?$(".cartAdditionalPaymentButtons").removeClass("d-none"):$(".cartAdditionalPaymentButtons").addClass("d-none"),t.items.forEach((function(e){t.totals.orderLevelDiscountTotal.value>0&&$(".coupons-and-promos").empty().append(t.totals.discountsHtml),e.renderedPromotions?$(".item-"+e.UUID).empty().append(e.renderedPromotions):$(".item-"+e.UUID).empty(),$(".uuid-"+e.UUID+" .unit-price").empty().append(e.renderedPrice),$(".line-item-price-"+e.UUID+" .unit-price").empty().append(e.renderedPrice),$(".item-total-"+e.UUID).empty().append(e.priceTotal.renderedPrice)}))},createErrorNotification:function(t){var e='<div class="alert alert-danger alert-dismissible valid-cart-error fade show" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>'+t+"</div>";$(".cart-error").append(e)},updateApproachingDiscounts:function(t){var e="";$(".approaching-discounts").empty(),t.length>0&&t.forEach((function(t){e+='<div class="single-approaching-discount text-center">'+t.discountMsg+"</div>"})),$(".approaching-discounts").append(e)},updateAvailability:function(t,e){for(var n,i="",r=0;r<t.items.length;r++)if(t.items[r].UUID===e){n=t.items[r];break}null!=n&&($(".availability-"+n.UUID).empty(),n.availability&&(n.availability.messages&&n.availability.messages.forEac
2h((function(t){i+='<p class="line-item-attributes">'+t+"</p>"})),n.availability.inStockDate&&(i+='<p class="line-item-attributes line-item-instock-date">'+n.availability.inStockDate+"</p>")),$(".availability-"+n.UUID).html(i))},updateProductDetails:function(t,e){$(".card .product-info.uuid-"+e).parent().replaceWith(t.renderedTemplate),i.enableQuantitySteppers()},confirmDelete:function(t,e,n,i){var r=$(".cart-delete-confirmation-btn"),o=$(".product-to-remove");r.data("pid",e),r.data("action",t),r.data("uuid",i),o.empty().append(n)},init:function(){$("body").on("click",".remove-product",(function(e){e.preventDefault();var n=$(this).data("action"),i=$(this).data("pid"),r=$(this).data("name"),o=$(this).data("uuid");t.exports.confirmDelete(n,i,r,o)})),$("body").on("afterRemoveFromCart",(function(e,n){e.preventDefault(),t.exports.confirmDelete(n.actionUrl,n.productID,n.productName,n.uuid)})),$("body").on("click",".cart-delete-confirmation-btn",(function(e){e.preventDefault();var n=$(this).data("pid"),i=$(this).data("action"),r=$(this).data("uuid"),o={pid:n,uuid:r};i=t.exports.appendToUrl(i,o),$("body > .modal-backdrop").remove(),$("body").trigger("cart:beforeUpdate"),$.spinner().start(),$.ajax({url:i,type:"get",dataType:"json",success:function(e){if(0===e.basket.items.length)$(".cart").empty().append('<div class="row"> <div class="col-12 text-center"> <h1>'+e.basket.resources.emptyCartMsg+"</h1> </div> </div>"),$(".number-of-items").empty().append(e.basket.resources.numberOfItems),$(".number-of-items-container").removeClass("text-md-right"),$(".minicart-quantity").empty().append(e.basket.numItems),$(".minicart-link").attr({"aria-label":e.basket.resources.minicartCountOfItems,title:e.basket.resources.minicartCountOfItems}),$(".minicart .popover").empty(),$(".minicart .popover").removeClass("show"),$("body").removeClass("modal-open"),$("html").removeClass("veiled");else{if(e.toBeDeletedUUIDs&&e.toBeDeletedUUIDs.length>0)for(var n=0;n<e.toBeDeletedUUIDs.length;n++)$(".uuid-"+e.toBeDeletedUUIDs[n]).closest(".card").remove();$(".uuid-"+r).closest(".card").remove(),e.basket.hasBonusProduct||$(".bonus-product").remove(),$(".coupons-and-promos").empty().append(e.basket.totals.discountsHtml),t.exports.updateCartTotals(e.basket),t.exports.updateApproachingDiscounts(e.basket.approachingDiscounts),$("body").trigger("setShippingMethodSelection",e.basket),t.exports.validateBasket(e.basket)}$("body").trigger("cart:update",[e,r]),$.spinner().stop()},error:function(e){e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$("body").on("quantityStepper:change",(function(t,e){var n=$(e),i=n.closest(".quantity-form").find(".quantity"),r=parseInt(n.find("input").val());i.find('option[value="'+r+'"]').prop("selected",!0).change()})),$("body").on("change",".quantity-form >
2 .quantity",(function(){var e=$(this).data("action");if(e){var n=$(this).data("pre-select-qty"),i=$(this).val(),r=$(this).data("pid"),o=$(this).data("uuid"),a={pid:r,quantity:i,uuid:o};e=t.exports.appendToUrl(e,a),$(this).parents(".card").spinner().start(),$("body").trigger("cart:beforeUpdate"),$.ajax({url:e,type:"get",context:this,dataType:"json",success:function(e){$('.quantity[data-uuid="'+o+'"]').val(i),$(".coupons-and-promos").empty().append(e.totals.discountsHtml),t.exports.updateCartTotals(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.updateAvailability(e,o),t.exports.validateBasket(e),$(this).data("pre-select-qty",i),$("body").trigger("cart:update",[e,o]),$.spinner().stop(),$(this).parents(".product-info").hasClass("bonus-product-line-item")&&$(".cart-page").length&&location.reload()},error:function(e){e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$(this).val(parseInt(n,10)),$.spinner().stop())}})}}
2)),$(".shippingMethods").change((function(){var e=$(this).attr("data-actionUrl"),n={methodID:$(this).find(":selected").attr("data-shipping-id")};$(".totals").spinner().start(),$("body").trigger("cart:beforeShippingMethodSelected"),$.ajax({url:e,type:"post",dataType:"json",data:n,success:function(e){e.error?window.location.href=e.redirectUrl:($(".coupons-and-promos").empty().append(e.totals.discountsHtml),t.exports.updateCartTotals(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.validateBasket(e)),$("body").trigger("cart:shippingMethodSelected",e),$.spinner().stop()},error:function(e){e.redirectUrl?window.location.href=e.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$(".promo-code-form").submit((function(e){if(e.preventDefault(),$.spinner().start(),$(".coupon-missing-error").hide(),$(".coupon-error-message").empty(),!$(".coupon-code-field").val())return $(".promo-code-form .form-control").addClass("is-invalid"),$(".promo-code-form .form-control").attr("aria-describedby","missingCouponCode"),$(".coupon-missing-error").show(),$.spinner().stop(),!1;var n=$(".promo-code-form");return $(".promo-code-form .form-control").removeClass("is-invalid"),$(".coupon-error-message").empty(),$("body").trigger("promotion:beforeUpdate"),$.ajax({url:n.attr("action"),type:"GET",dataType:"json",data:n.serialize(),success:function(e){e.error?($(".promo-code-form .form-control").addClass("is-invalid"),$(".promo-code-form .form-control").attr("aria-describedby","invalidCouponCode"),$(".coupon-error-message").empty().append(e.errorMessage),$("body").trigger("promotion:error",e)):($(".coupons-and-promos").empty().append(e.totals.discountsHtml),t.exports.updateCartTotals(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.validateBasket(e),$("body").trigger("promotion:success",e)),$(".coupon-code-field").val(""),$.spinner().stop()},error:function(e){$("body").trigger("promotion:error",e),e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.errorMessage),$.spinner().stop())}}),!1})),$("body").on("click",".remove-coupon",(function(t){t.preventDefault();var e=$(this).data("code"),n=$(this).data("uuid"),i=$(".delete-coupon-confirmation-btn"),r=$(".coupon-to-remove");i.data("uuid",n),i.data("code",e),r.empty().append(e)})),$("body").on("click",".delete-coupon-confirmation-btn",(function(e){e.preventDefault();var n=$(this).data("action"),i=$(this).data("uuid"),r={code:$(this).data("code"),uuid:i};n=t.exports.appendToUrl(n,r),$("body > .modal-backdrop").remove(),$.spinner().start(),$("body").trigger("promotion:beforeUpdate"),$.ajax({url:n,type:"get",dataType:"json",success:function(e){$(".coupon-uuid-"+i).remove(),t.exports.updateCartTotals(e),t.exports.updateApproachingDiscounts(e.approachingDiscounts),t.exports.validateBasket(e),$.spinner().stop(),$("body").trigger("promotion:success",e)},error:function(e){$("body").trigger("promotion:error",e),e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$("body").on("click",".cart-page .bonus-product-button",(function(){$.spinner().start(),$(this).addClass("launched-modal"),$.ajax({url:$(this).data("url"),method:"GET",dataType:"json",success:function(t){$("body").trigger("bonusproduct:edit",t),$.spinner().stop()},error:function(){$.spinner().stop()}})})),$("body").on("hidden.bs.modal","#chooseBonusProductModal",(function(){$("#chooseBonusProductModal").remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),$(".cart-page").length?($(".launched-modal .btn-outline-primary").trigger("focus"),$(".launched-modal").removeClass("launched-modal")):$(".product-detail .add-to-cart").focus()})),$("body").on("change",".quantity-select",(function(){var t=$(this).val();$(".modal.show .update-cart-url").data("quantity",t)})),$("body").on("change",".options-select",(function(){var t=$(this).children("option:selected").data("value-id");$(".modal.show .update-cart-url").data("selected-option-value-id",t)})),$("body").on("click",".update-cart-product-global",(function(e){e.preventDefault();var n=$(this).closest(".cart-and-ipay").find(".update-cart-url").val(),i=$(this).closest(".cart-and-ipay").find(".update-cart-url").data();i.pid=t.exports.getPidValue($(this)),$(this).parents(".card").spinner().start(),$("body").trigger("cart:beforeUpdate"),n&&$.ajax({url:n,type:"post",context:this,data:i,dataType:"json",success:function(e){$("#quickViewModal").modal("hide"),$(".coupons-and-promos").empty().append(e.cartModel.totals.discountsHtml),t.exp
2orts.updateCartTotals(e.cartModel),t.exports.updateApproachingDiscounts(e.cartModel.approachingDiscounts),t.exports.updateAvailability(e.cartModel,i.uuid),t.exports.updateProductDetails(e,i.uuid),e.uuidToBeDeleted&&$(".uuid-"+e.uuidToBeDeleted).remove(),t.exports.validateBasket(e.cartModel),$("body").trigger("cart:update",[e,i.uuid]),$.spinner().stop()},error:function(e){e.responseJSON.redirectUrl?window.location.href=e.responseJSON.redirectUrl:(t.exports.createErrorNotification(e.responseJSON.errorMessage),$.spinner().stop())}})})),$("body").on("product:afterAddToCartQuickview",(function(){"Cart-Show"==$("body").find(".page").data("action")&&location.reload()})),$("body").on("click","a.edit.editGiftCertificateLineItem",(function(t){t.preventDefault();var e=$(this),n=e.data("uuid"),i=e.parents(".product-info.uuid-"+n),r=i.find(".dwfrm_giftCertificate_purchase_from-"+n).data("value"),o=i.find(".dwfrm_giftCertificate_purchase_recipient-"+n).data("value"),a=i.find(".dwfrm_giftCertificate_purchase_recipientEmail-"+n).data("value"),s=i.find(".dwfrm_giftCertificate_purchase_message-"+n).attr("title"),l=i.find(".pricing.item-total-"+n).data("value"),c=$("#editGiftCertificateLineItemModal");c.find("#from").attr("value",r),c.find("#recipient").attr("value",o),c.find("#recipientEmail").attr("value",a),c.find("#confirmRecipientEmail").attr("value",a),c.find("#message").html(s||""),c.find("#amount").attr("value",(""+l||"0.0").split(".")[0]),c.find(".btn-update-giftcertificate-incart").attr("data-uuid",n),c.find(".btn-update-giftcertificate-incart").data("uuid",n)}
2))}}},7830:(t,e,n)=>{var i=n(30826);t.exports={loadFormErrors:function(t,e){$.each(e,(function(n){$("*[name="+n+"]",t).addClass("is-invalid").siblings(".invalid-feedback").html(e[n])})),i($(t))},clearPreviousErrors:function(t){$(t).find(".form-control.is-invalid").removeClass("is-invalid"),$(t).find(".invalid-feedback").html(""),$(".error-message").hide()}}},34887:(t,e,n)=>{var i=n(26285);i.validateForm=function(t){var e=!0;return this.checkValidity&&!this.checkValidity()&&(e=!1,t&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),this.validity.valid||($(this).is("input, select")?$(this).trigger("invalid",this.validity):$(this).find("input, select").each((function(){$(this).trigger("invalid",this.validity)})))),e};var r=$("input[type='password']");if(r.length){var o=function(){var t=$(".password-validation-helper li");t.hasClass("error")||t.hasClass("empty")?(s.removeClass("is-valid").addClass("is-invalid"),t.not(".valid").addClass("error").removeClass("empty")):s.addClass("is-valid").removeClass("is-invalid")},a=function(t){$(".password-validation-helper li").each((function(){var e=new RegExp($(this).data("val-regex"));$(this).removeClass(t),e.test(l)?$(this).addClass("valid").removeClass("error empty"):!e.test(l)&&s.focus?$(this).addClass("empty").removeClass("valid"):$(this).addClass("error").removeClass("valid empty")}))},s=$(".password-validate"),l="";$("#show-password").on("click",(function(){$(this).prop("checked")?r.attr("type","text"):r.attr("type","password")})),s.on("keyup",(function(){l=$(this).val(),$(this).hasClass("is-invalid")?(a("valid empty"),o()):a("error valid empty"),$(this).on("blur",o)}))}i.functions.validateForm=function(t,e){i.validateForm.call(t,e||null)},t.exports=i},44083:function(t){var e=this,n={getString:function(t,e){return'<div class="consent-drawer" id="consent-tracking" role="dialog">\n <div class="consent-text-wrapper"></div>\n <div class="consent-button-wrapper">\n <button class="affirm btn btn-primary" data-url="'.concat(t,'" autofocus>\n ').concat(e,"\n </button>\n </div>\n </div>")},showConsentDrawer:function(t){if(-1===[void 0,null].indexOf(t)&&t.data("caonline")){var e=t.data("url"),i=t.data("accept"),r=t.data("accepttext"),o=n.getString(i,r);$("body").append(o);var a=$("#consent-tracking");$.ajax({url:e,type:"get",dataType:"html",context:a,success:function(t){this.find(".consent-text-wrapper").html(t)},error:function(){this.remove()}}),a.find(".consent-button-wrapper button").on("click.consenttrackingdrawer ",(function(t){t.preventDefault();var e=$(t.target).data("url");$.ajax({url:e,type:"get",dataType:"json",context:a,complete:function(){this.remove()},error:function(){this.remove()}})}))}},init:function(){$("body");var t=$(".tracking-consent");0===$(".consented").length&&t.hasClass("api-true")&&n.showConsentDrawer(t),t.each((function(t,i){var r=$(e);r.hasClass("api-true")&&r.on("click.consenttracking ",(function(){n.showConsentDrawer(r)}))}))}};t.exports=n},3909:(t,e,n)=>{var i=n(12196),r=n(93914),o=n(57280);t.exports={},t.exports.loadRecommendations=function(t){var e=$(this);return(e.hasClass(".einstein-data")?e:e.find(".einstein-data")).each((function(){var t=$(this),e=t.data()||{},n=e.url;i.getRecommendations(e,(function(a){var s=i.interpretResponse(e,a);$.each(s,(function(e,i){if(!i||!i.id)return null;var r=n;r+=(-1===r.indexOf("?")?"?":"&")+"pid="+i.id,t.find('.product[data-pid="placeholder"]:not([data-replace-content])').first().attr("data-replace-content",r)})),t.find('.slide:has(.product[data-pid="placeholder"]:not([data-replace-content]))').remove();var l=t.closest(".slider-container").removeClass("delay-init");r.init(t.find(".product"),(function(t){var e=t.errors>0?l.data("tns"):null;e&&(e.destroy(),e.rebuild())})),o.initializeSliders(l.parent())}))}))},t.exports.init=function(e){return $(document).off("load.einstein").on("load.einstein",t.exports.loadRecommendations),(e=e&&"trigger"in e?e:$(document)).triggerHandler("load.einstein")}},12196:t=>{t.exports={},t.exports.getEinsteinUtils=function(){var t=window.CQuotient;return t&&"function"==typeof t.getCQUserId&&"function"==typeof t.getCQCookieId?t:null},t.exports.getRecommendations=function(e,n){var i=t.exports.getEinsteinUtils();if(i){var r={userId:i.getCQUserId(),cookieId:i.getCQCookieId(),ccver:"1.01"};e.anchors&&e.anchors.length>0&&(r.anchors=e.anchors),i.getRecs?i.getRecs(i.clientId,e.recommender,r,n):(i.widgets=i.widgets||[],i.widgets.push({recommenderName:e.recommender,parameters:r,callback:n}))}},t.exports.interpretResponse=function(t,e){return e[t.recommender].recs}},35334:(t,e,n)=>{var i=n(30826);function r(t,e){var n=t?"alert-success":"alert-danger";0===$(".email-signup-message").length&&$("body").append('<div class="email-signup-message"></div>'),$(".email-signup-message").append('<div class="email-signup-alert text-center alert '+n+'">'+e+"</div>"),setTimeout((function(){$(".email-signup-message").remove()}),3e3)}var o={elementNameMap:{hpEmailSignUp:"emailId"},backToTop:function(){$(".back-to-top").click((function(){i()}))},forms:"footer .email-signup-form form",init:function(){var t=this.elementNameMap;
2$(this.forms).each((function(){var e=$(this),n=e.find(":input:not(:disabled)");t&&n.each((function(){var e=$(this),n=e.attr("name"),i=n&&t[n];i&&e.attr("name",i)})),e.on("submit",(function(t,i){t.preventDefault();var o=$(this),a=e.data("xhr");e.data("xhr",$.ajax({url:i||e.attr("action"),type:e.attr("method")||"post",data:n.serialize(),dataType:"json",beforeSend:function(){a&&a.abort&&a.abort(),$.spinner().start(),o.attr("disabled",!0)},success:function(t){r(t.success,t.msg)},error:function(t,e,n){r(!1,t.responseJSON&&t.responseJSON.message)},complete:function(){$.spinner().stop(),o.removeAttr("disabled"),e[0].reset()}}))})),e.find(".subscribe-email").on("click",(function(t){t.preventDefault(),e.trigger("submit",$(this).data("href"))}))}))}};t.exports=o},3287:t=>{t.exports=function(){var t=$("header").hasClass("fixed-header");$(window).scroll((function(e){if(t){var n=$(".header-banner"),i=n.length?n.outerHeight():0;r=$(e.target).scrollTop()>i?"fixed":"unfixed",a=(o=$(".header-nav")).outerHeight(),s=$(".page"),"fixed"===r?(o.addClass("fixed"),o.closest(".transparent-header").length||s.css("margin-top",a+"px"),o.removeClass("transparent-nav")):(o.removeClass("fixed"),s.css("margin-top",""),$("body").hasClass("mobile-menu-in")||o.addClass("transparent-nav"))}var r,o,a,s}));var e=window.isMobile();if($("header").hasClass("transparent-header")&&!e&&$(".header-nav").hover((function(){$(this).removeClass("transparent-nav")}),(function(){$(this).addClass("transparent-nav")})),$(".megamenu > .dropdown-menu").each((function(t,e){var n=$(e);n.find(".megamenu-asset-1").children().length&&n.addClass("has-asset-1"),n.find(".megamenu-asset-2").children().length&&n.addClass("has-asset-2")})),e){var n=$(".megamenu .menu-subcategories > .dropdown-item");$(".megamenu .menu-subcategories > .dropdown-item > .dropdown-link").on("click",(function(){$(".megamenu.show .menu-subcategories").parent("li").addClass("thirdCatOpen")})),n.on("click",(function(){$(".megamenu.show .menu-subcategories").parent("li").removeClass("thirdCatOpen")}))}$(".main-menu .navbar-nav").on("mouseenter mouseleave",(function(){$(this).toggleClass("nav-item-hover")})),$("header .site-search").on("mouseenter",(function(t){$(t.target).closest(".site-search").addClass("expanded")})),$("header .site-search").on("mouseleave",(function(t){var e=$(t.target).closest(".site-search"),n=e.find("input");n.is(":focus")||n.val()||e.removeClass("expanded")})),$("form[name=simpleSearch]").on("submit",(function(t){var e=$(t.target),n=$("input[name=q]",e);""==n.val()&&(n.focus(),t.preventDefault())}))}},37156:(t,e,n)=>{var i=n(25903),r=n(62074);function o(t){var e=$(t).closest(".custom-dropdown.show");e.removeClass("show"),setTimeout((function(){e.find(".nav-link").attr("aria-expanded","false"),e.find(".dropdown-menu").attr("aria-hidden","true"),e.find(".top-category").detach(),e.find(".nav-menu").detach(),e.closest(".custom-dropdown.show").length||e.closest(".menu-group").find(".nav.navbar-nav > li.nav-item > a").attr("aria-hidden","false")}),r.TransitionSpeed)}function a(t){var e=$("header"),n=e.find(".header-nav"),i=e.outerHeight(),o=e.find(".main-menu"),a=o.find(".navbar-nav"),s=$(".modal-background");"open"===t?($("html, body").scrollTop(n.offset().top),$("html, body").addClass("lock-scroll"),$("body").addClass("mobile-menu-in"),o.addClass("in").attr("aria-hidden","false").css("top",i).siblings().attr("aria-hidden","true"),s.fadeIn(r.TransitionSpeed).css("top",i),e.siblings().attr("aria-hidden","true"),a.find(".nav-link").first().focus()):($("body").removeClass("mobile-menu-in"),a.find(".nav-menu, .top-category").detach(),a.find(".thirdCatOpen").removeClass("thirdCatOpen"),a.find(".show").removeClass("show"),o.removeClass("in").attr("aria-hidden","true").siblings().attr("aria-hidden","false"),e.siblings().attr("aria-hidden","false"),s.fadeOut(r.TransitionSpeed),setTimeout((function(){s.css("top",""),$("html, body").removeClass("lock-scroll"),n.addClass("transparent-nav")}),r.TransitionSpeed))}n(99226),t.exports={clearSelection:o,toggleDrawer:a,headerBanner:function(){var t=window.sessionStorage.getItem("hide_header_banner");$(".header-banner .close").on("click",(function(){$(".header-banner").addClass("d-none"),window.sessionStorage.setItem("hide_header_banner","1")})),(!t||t<0)&&$(".header-banner").removeClass("d-none")},kbAccessibility:function(){i(".main-menu .nav-link, .main-menu .dropdown-link, .header-account-container .nav-link",{40:function(t){t.hasClass("nav-item")?($(".navbar-nav .show").removeClass("show").children(".dropdown-menu").removeClass("show"),t.addClass("show").children(".dropdown-menu").addClass("show"),t.find("ul > li > a").first().focus()):(t.removeClass("show").children(".dropdown-menu").removeClass("show"),t.next().length>0?t.next().children().first().focus():t.parent().parent().find("li > a").first().focus())},39:function(t){t.hasClass("nav-item")?(t.removeClass("show").children(".dropdown-menu").removeClass("show"),$(this).attr("aria-expanded","fal
2se"),t.next().children().first().focus()):t.hasClass("dropdown")&&(t.addClass("show").children(".dropdown-menu").addClass("show"),$(this).attr("aria-expanded","true"),t.find("ul > li > a").first().focus())},38:function(t){t.hasClass("nav-item")?t.removeClass("show").children(".dropdown-menu").removeClass("show"):0===t.prev().length?(t.parent().parent().removeClass("show").children(".nav-link").attr("aria-expanded","false"),t.parent().children().last().children().first().focus()):t.prev().children().first().focus()},37:function(t){t.hasClass("nav-item")?(t.removeClass("show").children(".dropdown-menu").removeClass("show"),$(this).attr("aria-expanded","false"),t.prev().children().first().focus()):t.closest(".show").removeClass("show").closest("li.show").removeClass("show").children().first().focus().attr("aria-expanded","false")},27:function(t){var e=t.hasClass("show")?t:t.closest("li.show");e.children(".show").removeClass("show"),e.removeClass("show").children(".nav-link").attr("aria-expanded","false"),e.children().first().focus()}},(function(){return $(this).parent()}))},searchExpand:function(){$(".search-field").focus((function(){$(this).closest(".site-search").addClass("expanded")}))},dropdownMenu:function(){var t=$('[data-toggle="menu"], [data-toggle="dropdown"]',".custom-dropdown:not(.disabled)");t.on("click",(function(t){if(t.stopPropagation(),window.isMobile()){t.preventDefault();var e=$(t.target),n=e.closest(".custom-dropdown"),i=$('<li class="dropdown-item top-category" role="button"></li>'),r=$('<li class="nav-menu"></li>'),o=e.clone().removeClass("dropdown-toggle").removeAttr("data-toggle").removeAttr("aria-expanded").attr("aria-haspopup","false");i.append(o),r.append($(".close-menu").first().clone()),n.children(".dropdown-menu").prepend(i).prepend(r).attr("aria-hidden","false").find("a").removeAttr("tabindex","-1"),n.addClass("show"),e.attr("aria-expanded","true"),n.closest(".menu-group").find(".nav.navbar-nav > li.nav-item > a").attr("aria-hidden","true"),$(o).focus(),$(".dropdown-menu").scrollTop(0)}else(o=$(t.target).attr("href"))&&(location.href=$(t.target).attr("href"))})),t.hoverIntent({over:function(t){if(!window.isMobile()){var e=t.target;$(".navbar-nav > li").each((function(t,n){if(!$.contains(n,e)){var i=$(n);i.find(".show").each((function(){o(n)})),i.hasClass("show")&&(i.removeClass("show"),i.children("ul.dropdown-menu").removeClass("show"),i.children(".nav-link").attr("aria-expanded","false"))}})),$(e).parent().addClass("show"),$(e).siblings(".dropdown-menu").addClass("show").attr("aria-hidden","false"),$(e).attr("aria-expanded","true")}},out:function(){},interval:50}),t.parent().on("mouseleave",(function(t){if(!window.isMobile()){var e=$(t.currentTarget);e.removeClass("show"),e.children(".dropdown-menu").removeClass("show").attr("aria-hidden","true"),e.children(".nav-link").attr("aria-expanded","false")}}))},megaLeftHover:function(){$(".mega-left-menu-link").hoverIntent((function(){var t=this.id,e=$("#"+t+"-right"),n=$(this).parent().parent(),i=e.closest(".mega-left");window.isMobile()||(n.find(".active").removeClass("active"),i.removeClass("has-sub-asset"),i.find(".active-list").removeClass("active-list"),$(this).addClass("active"),e.parent().addClass("active-list"),(e.parent().next().hasClass("sub-asset-1")||e.parent().next().hasClass("sub-asset-2"))&&i.addClass("has-sub-asset"))}),50)},navbarBackBtn:function(){$(".main-menu").on("click",".navbar-nav .back",(function(t){t.preventDefault(),o(t.target)}))},navbarToggler:function(){$(".navbar-toggler").click((function(t){t.preventDefault(),$("body").hasClass("mobile-menu-in")?(a("close"),$(".header-nav").addClass("transparent-nav")):(a("open"),$(".header-nav").removeClass("transparent-nav"))})),$("html").on("click",".mobile-menu-in .modal-background",(function(){return a("close")}))},mobileSearchFix:function(){$(".search-mobile .search-field").focus((function(t){if(window.isMobile()){var e=$("html").scrollTop();setTimeout((function(){$("html").scrollTop(e),$(".modal-background").show()}),r.TransitionSpeed)}}))}}},65024:(t,e,n)=>{var i=n(62074),r=!0;t.exports=function(){$(".minicart").on("count:update",(function(t,e){e&&$.isNumeric(e.quantityTotal)&&($(".minicart .minicart-quantity").text(e.quantityTotal),$(".minicart .minicart-link").attr({"aria-label":e.minicartCountOfItems,title:e.minicartCountOfItems}))})),$(".minicart").on("mouseenter focusin touchstart",(function(){if(0!==$(".search:visible").length){var t=$(".minicart").data("action-url");if(0!==parseInt($(".minicart .minicart-quantity").text(),10)&&0===$(".minicart .popover.show").length){if(!r)return void $(".minicart .popover").addClass("show");$(".minicart .popover").addClass("show"),$(".minicart .popover").spinner().start(),$.get(t,(function(t){$(".minicart .popover").empty(),$(".minicart .popover").append(t),r=!1,$.spinner().stop(),$("body").trigger("minicart:loaded",$(".minicart .popover"))}))}}})),$("body").on("touchstart click",(function(t){$(".minicart").has(t.target).length<=0&&$(".minicart .popover").removeClass("show")})),$(".minicart").on("mouseleave focusout",(function(t){"focusout"===t.type&&$(".minicart").has(t.target).length>0||"mouseleave"===t.type&&$(t.target).is(".minicart .quantity")||$("body").hasClass("modal-open")?t.stopPropagation():$(".minicart .popover").removeClass("show")})),$("body").on("change",".minicart .quantity",(function(t){$(t.target).parents(".bonus-product-line-item").length&&$(".cart-page").length&&location.reload()})),$("body").on("product:afterAddToCart cart:update",(function(){r=!0})),$("body").on("minicart:loaded",(function(t,e){!function(t){var e=$
2(t),n=e.find(".product-summary"),r=e.outerHeight()-n.outerHeight(),o=e.offset().top-$(window).scrollTop()+r+i.Spacer;n.css("max-height","calc(100vh - "+o+"px)")}(e)}))}},64786:t=>{function e(t){var e=t.find(".modal-body"),n=t.find(".modal-header").outerHeight(),i=t.find(".modal-footer").length?t.find(".modal-footer").outerHeight():0,r=t.find(".modal-dialog"),o=parseInt(r.css("margin-top").split("px")[0])+parseInt(r.css("margin-bottom").split("px")[0]),a=t.find(".modal-content"),s=n+i+o+parseInt(a.css("border-top-width").split("px")[0])+parseInt(a.css("border-bottom-width").split("px")[0]);e.css("max-height","400px"),e.css("max-height","calc(100vh - "+s+"px)")}function n(t,e){var n=t||"customModal",i="quickViewModal"==n?' <a class="full-pdp-link" href=""></a>':"";e=e||"",0!==$("#"+n).length&&$("#"+n).remove();var r='<div class="modal fade" id="'+n+'" role="dialog"><span class="enter-message sr-only"></span><div class="modal-dialog '+e+'">\x3c!-- Modal content--\x3e<div class="modal-content"><div class="modal-header">'+i+' <button type="button" class="close pull-right" data-dismiss="modal"> <span aria-hidden="true">×</span> <span class="sr-only"> </span> </button></div><div class="modal-body"></div><div class="modal-footer"></div></div></div></div>';$("body").append(r)}function i(){$("body").on("shown.bs.modal",".modal",(function(){$("body").trigger("modal:loaded",this)}))}function r(){$("body").on("modal:loaded",(function(t,n){var i=$(n);(i.find(".modal-scrollbody").length||i.find(".quick-view-dialog").length||i.find(".choose-bonus-product-dialog").length)&&e(i)}))}function o(t){var e=$("<div>").append($.parseHTML(t)),n=e.find(".product-quickview");return 0==n.length&&(n=e.find(".modal-body").children()),{body:n,footer:e.find(".modal-footer").children()}}t.exports={setModalBodyMaxHeight:e,getModalHtmlElement:n,onShownBsModal:i,onModalLoaded:r,parseHtml:o,init:function(){i(),r(),$("body").on("click",".custom-modal",(function(t){t.preventDefault();var e=$(this).attr("data-cid"),i=$(this).attr("data-title"),r=$(this).attr("data-dialog-classes"),a=$(this).attr("href");n("customModal",r),function(t,e,n){$.ajax({url:t,method:"GET",data:e,dataType:"json",success:function(t){var e=o(t.renderedTemplate);n.find(".modal-body").empty(),n.find(".modal-body").html(e.body),n.find(".modal-footer").html(e.footer),n.find(".modal-header .close .sr-only").text(t.closeButtonText),n.find(".enter-message").text(t.enterDialogMessage),n.modal("show"),t.dialogTitle&&n.find(".modal-header").prepend('<div class="modal-title">'+t.dialogTitle+"</div>")}})}(a,{cid:e,title:i},$("#customModal"))}))}}},93914:t=>{var e=[null,null,null,null,null,null,null],n=0;t.exports={selectors:{processing:".processing",sending:".sending"},init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$(".product[data-replace-content], .product [data-replace-content]"),i=arguments.length>1?arguments[1]:void 0,r=this,o=0;t.filter(":not("+r.selectors.processing+")").each((function(t,i){var a=$(i),s=a.data("replace-content")||a.attr("data-replace-content"),l=$.Deferred();-1===["",null,void 0].indexOf(s)&&(a.data("deferment",l),e[n]=(e[n]||$.when()).then((function(){return a.data("$xhr",$.ajax({url:s,dataType:"html",timeout:6e4,context:a,beforeSend:function(){this.addClass(r.selectors.sending.replace(/\./gi," "))},error:function(){this.parent(".slide").add(this).eq(0).remove(),o++},success:function(t){this.replaceWith(t),$("body").trigger("tooltip:init")},complete:function(){l.resolve()}})),l})),n=(n+1)%e.length)})),i&&$.when.apply($,e).then((function(){return i.call(null,{errors:o})}))}}},73524:t=>{t.exports={check:function(t,e){"undefined"!=typeof grecaptcha&&grecaptcha?grecaptcha.ready((function(){var n="submit"+(t&&t.target?(t.target.id+t.target.className).replace(/[^a-zA-Z0-9]+/g,""):"");grecaptcha.execute(window.CachedData.recaptchaSiteKey,{action:n}).then((function(t){var i=$("<input type='hidden' class='form-control' id='recaptchaToken' name='dwfrm_recaptcha_recaptchaToken' value="+t+">"),r=$("<input type='hidden' class='form-control' id='recaptchaAction' name='dwfrm_recaptcha_recaptchaAction' value="+n+">");"string"==typeof e.data?(e.data+=0===e.data.length?"":"&",e.data+=$.param(i)+"&"+$.param(r)):(e.data=e.data||{},e.data.dwfrm_recaptcha_recaptchaToken=t,e.data.dwfrm_recaptcha_recaptchaAction=n),$.ajax(e)}))})):$.ajax(e)}}},30826:t=>
2{t.exports=function(t){var e=$("header").hasClass("fixed-header"),n=$("header").hasClass("fixed-header-enhanced"),i=0;if(t&&t.length)if(e||n){var r=$(".header-nav").length?$(".header-nav").height():0,o=2*(r+($(".header-banner").length?$(".header-banner").height():0)+($(".utility-header").length?$(".utility-header").height():0));t.offset().top>o&&(i=t.length?t.offset().top-r:0)}else i=t.offset().top;$("html, body").animate({scrollTop:i},500),t||$(".logo-home").focus()}},57280:(t,e,n)=>{function i(t){return i="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},i(t)}function r(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(5816);n(25772),n(49433),n(41862);var a=n(62074),s=a.BreakpointSizes.md,l=a.BreakpointSizes.lg,c={getSliderAttributes:function(t){var e=new Object;e.autoplayDelay=parseInt(t.attr("data-slider-autoplay")),e.autoplay=!isNaN(e.autoplayDelay),e.autoplayTimeout=e.autoplay?e.autoplayDelay:5e3,e.loop="false"!==t.attr("data-slider-loop"),e.itemsNumber=parseInt(t.attr("data-slider-items")),e.items=isNaN(e.itemsNumber)?1:e.itemsNumber,e.itemsNumberMedium=parseInt(t.attr("data-slider-items-md")),e.itemsMedium=isNaN(e.itemsNumberMedium)?1:e.itemsNumberMedium,e.itemsNumberLarge=parseInt(t.attr("data-slider-items-lg")),e.itemsLarge=isNaN(e.itemsNumberLarge)?1:e.itemsNumberLarge,e.gutter=parseInt(t.attr("data-slider-gutter"))||0,e.gutterMedium=parseInt(t.attr("data-slider-gutter-md"))||0,e.gutterLarge=parseInt(t.attr("data-slider-gutter-lg"))||0,e.speed=parseInt(t.attr("data-slider-speed"))||300,e.mode=t.attr("data-slider-mode")||"carousel",e.animateIn=t.attr("data-slider-animatein")||"no-animation",e.animateOut=t.attr("data-slider-animateout")||"no-animation";var n=$(t.attr("data-slider-thumbnail-container"));return e.thumbnailContainer=t.attr("data-slider-thumbnail-container")||!1,e.navContainer=!!n.length&&n.find(".slider")[0],e.navAsThumbnails=!1!==e.navContainer,e.controlsContainer=!!n.length&&n.find(".slider-thumbnail-controls")[0],e.disable="true"===t.attr("data-disable"),e.disableMedium="true"===t.attr("data-disable-md"),e.disableLarge="true"===t.attr("data-disable-lg"),e},getSliderParams:function(t,e){var n,i=c.getSliderAttributes(t),o={container:t.find(".slider")[0],loop:i.loop,items:i.items,autoplay:i.autoplay,autoplayTimeout:i.autoplayTimeout,autoplayHoverPause:!0,mode:i.mode,gutter:i.gutter,speed:i.speed,navContainer:i.navContainer,navAsThumbnails:i.navAsThumbnails,controlsContainer:i.controlsContainer,preventScrollOnTouch:"auto",disable:i.disable,responsive:(n={},r(n,s,{items:i.itemsMedium,gutter:i.gutterMedium,disable:i.disableMedium}),r(n,l,{items:i.itemsLarge,gutter:i.gutterLarge,disable:i.disableLarge}),n)};return e&&(o.slideItems=e),"gallery"===o.mode&&(o.animateIn=i.animateIn,o.animateOut=i.animateOut),o},slideIntoView:function(t){!1!==t.navContainer&&$(t.navContainer).hasClass("slider")&&$(t.navContainer).find(".tns-nav-active").scrollintoview()}
2,getUpdatedSlideItems:function(t,e){var n=[];return t.large.forEach((function(i){var r=$("<div></div>").attr("class","slide"),o=$("<img/>");e||r.attr("data-zoom-image",t["hi-res"].length?t["hi-res"][i.index].url:t.large[i.index].url),o.attr({src:i.url,alt:i.alt+" image number "+(parseInt(i.index)+1).toFixed(0),class:"d-block img-fluid",itemprop:"image"}),r.append(o),n.push(r[0])})),n},bindSliderUpdateEvent:function(t,e){t.off("slider:update").on("slider:update",".slider",(function(t,n){var i=$(t.target).closest(".slider-container"),r=i.hasClass("slider-thumbnails"),a=void 0!==n?c.getUpdatedSlideItems(n.images,r):null,u=c.getSliderParams(i,a);if(r){var d=i.closest(".primary-images-thumbnails"),h=d.prev(".primary-images-main");n.images.small&&n.images.small.length>1?(d.removeClass("d-none"),h.addClass("product-has-thumbnails col-lg-9")):(d.addClass("d-none"),h.removeClass("product-has-thumbnails col-lg-9"))}if(u.slideItems){var p=$("<div></div>").attr({class:"slider",id:u.container.id}),f=i.find(".slider-thumbnail-controls").addClass("d-none");p.html(u.slideItems),i.html(p),u.container=p[0],r&&(i.append(f),u.items=u.slideItems.length,u.responsive[s].items=u.slideItems.length,u.responsive[l].items=u.slideItems.length)}(e=o.tns(u)).events.on("transitionEnd",c.slideIntoView),c.enableImageZoom(i),r&&c.handleThumbnailArrows(i,e)}))},enableImageZoom:function(t){!t.closest(".primary-images").length||t.hasClass("slider-thumbnails")||window.isMobile()||t.find(".slide").each((function(t,e){var n=$(e);if(!n.hasClass("no-zoom")){var i=n.data("zoom-image")||n.find("img").attr("src");n.zoom({url:i,magnify:1,touch:!1})}}))},handleThumbnailArrows:function(t,e){if(t.hasClass("slider-thumbnails")){var n,i,r=t.find(".slider"),o=t.find(".slider-thumbnail-controls");r.imagesLoaded().done((function(){window.isMobile()?(n=t.outerWidth(),i=r[0].scrollWidth):(n=t.outerHeight(),i=r[0].scrollHeight),i-5>=n&&o.removeClass("d-none")}))}},handleSliderVideos:function(t,e){var n=t.find(".hero-media.video-container, .experience-commerce_assets-video>.video-container");n.length&&e.events.on("indexChanged",(function(t){n.each((function(t,e){var n=$(e),i=n.find(".video-player").attr("id"),r=window.Players[i];r&&(n.closest(".tns-slide-active").length?r.config.autoplay&&r.play():r.pause())}))}))},bindPauseButton:function(t,e){var n=t.attr("data-slider-pause-button-placement");t[0].hasAttribute("data-slider-autoplay")&&"false"!=t.attr("data-slider-autoplay")&&t[0].hasAttribute("data-slider-pause-button-placement")&&"none"!=t.attr("data-slider-pause-button-placement")&&("with-pagination"==n?t.find(".tns-nav").addClass("with-pagination-btn").append('<a href="#" class="tns-nav-controller"><span class="sr-only">stop and start slider</span></a>'):t.prepend('<a href="#" class="tns-nav-controller"><span class="sr-only">stop and start slider</span></a>'),$(".tns-nav-controller").addClass(n),t.on("click",".tns-nav-controller",(function(){event.preventDefault(),$(this).toggleClass("pause"),t.toggleClass("slider-pause"),t.hasClass("slider-pause")?e.pause():e.play()})))},initializeSliders:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$("body"),e=this;t.find(".slider-container:not(.delay-init)").each((function(t,n){var i=$(n),r=e.getSliderParams(i),o=[];i.find("[data-replace-content]").each((function(t,e){var n=$(e).data("deferment");n&&!n.isResolved&&"pending"===n.state()&&o.push(n)})),$.when.apply($,o).done((function(){e.applyTinySlider(i,r)}))}))},applyTinySlider:function(t,e){if(t){var n=o.tns(e);n&&(n.events.on("transitionStart",this.slideIntoView),this.bindPauseButton(t,n),this.bindSliderUpdateEvent(t,n),this.enableImageZoom(t),this.handleThumbnailArrows(t,n),this.handleSliderVideos(t,n),$("body").trigger("slider:init.sliderEvents",[t])),t.data("tns",n),t.trigger("tooltip:init")}},initializeQuickviewModalSliders:function(){$("body").off("quickview:ready").on("quickview:ready",(function(t,e){c.initializeSliders($(e))}))},initializeWishlistModalSliders:function(){$("body").off("editwishlistproduct:ready").on("editwishlistproduct:ready",(function(t,e){c.initializeSliders($(e))}))},initializeTargetSliders:function(){$("body").off("targetslider:ready").on("targetslider:ready",(function(t,e){c.initializeSliders($(e))}))},init:function(){c.initializeSliders(),c.initializeQuickviewModalSliders(),c.initializeWishlistModalSliders(),c.initializeTargetSliders()}};t.exports=c},76799:t=>{t.exports={handleTabVideos:function(){$(".tab-pane").find(".hero-media.video-container, .background-image.video-container, .experience-commerce_assets-video>.video-container").length&&$('a[data-toggle="tab"]').on("show.bs.tab",(function(t){var e=$
2(t.target.hash).find(".video-player").attr("id"),n=window.Players[e],i=$(t.relatedTarget.hash).find(".video-player").attr("id"),r=window.Players[i];r&&r.pause(),n&&n.play()}))}}},76543:t=>{function e(t,e,n){var i=n?"alert-dismissible":"",r="alert-"+$(".toast-messages .alert").length||0,o=n?'<button type="button" class="btn close icon-close" data-dismiss="alert" aria-label="Close"></button>':"";$(".toast-messages").length||$("body").append('<div class="toast-messages"></div>'),$(".toast-messages").append('<div class="alert alert-'+t+" "+r+" "+i+'" role="alert">'+e+o+"</div>"),setTimeout((function(){$(".toast-messages").find("."+r+":not(.alert-dismissible)").remove()}),5e3)}t.exports={methods:{show:e},bindToastButtonClicks:function(){$("body").on("click","[data-toast]",(function(t){t.preventDefault();var n=$(t.target);e(n.data("toast"),n.data("content"),n.data("dismissible")||!1)}))}}},83183:t=>{function e(){return $(this).find(".tooltip")}function n(){$('[data-toggle="tooltip"], .info-icon').tooltip({title:e,trigger:"manual",sanitize:!1}).on("mouseenter",(function(t){var e=$(t.target).closest('[data-toggle="tooltip"]'),n=e.data("delay")&&e.data("delay").show||0,i=e.data("delay")&&e.data("delay").hide||0;setTimeout((function(){e.tooltip("show")}),n),$("body").on("mouseleave",".tooltip",(function(t){setTimeout((function(){$(t.target).closest(".tooltip").tooltip("hide")}),i)}))})).on("mouseleave",(function(t){var e=$(t.target).closest('[data-toggle="tooltip"]'),n=e.data("delay")&&e.data("delay").hide||0;setTimeout((function(){$(".tooltip:hover").length||$(t.target).tooltip("hide")}),n)})),$('[data-toggle="popover"]').popover({html:!0,trigger:"focus",sanitize:!1})}t.exports=function(){n(),$("body").on("tooltip:init",n)}},20220:(t,e,n)=>{var i=n(37174),r=n(96273),o={autoplay:!1,controls:!0,muted:!1,loop:!1,modal:!1,hasThumb:!1};function a(){var t=$("#"+this.id);this.domElements={$player:t,$thumb:t.siblings(".video-thumbnail"),$cntr:t.closest(".video-container")}}function s(){var t=this,e={};try{e=JSON.parse(t.domElements.$player.attr("data-player-attr"))}catch(t){e=o}t.config={autoplay:!!e.autoplay,controls:!!e.controls,muted:!!e.mute,loop:!!e.loop,hasThumb:e.hasThumb,modal:!!e.modal,videoId:t.domElements.$player.attr("data-video-id")}}function l(t){var e=this,n=e.config;t&&(n=$.extend({},e.config,t)),e.apiObj=new videojs(e.id,{autoplay:n.autoplay,playsinline:n.autoplay,controls:n.controls,loop:n.loop,muted:n.muted},(function(e){t.onReady&&(t.onReady(e),delete t.onReady)})),e.apiObj.on("pause",(function(){e.cache.time=e.apiObj.currentTime()})),e.apiObj.on("ended",(function(){$("body").trigger("video:ended",e)}))}function c(){var t=this,e=t.domElements.$cntr;t.pause(),t.config.hasThumb&&t.domElements.$thumb.on("click",(function(e){if(e.preventDefault(),t.config.modal)t.launchModal();else if(t.apiObj.paused()){var n=t.domElements.$player[0].play();void 0!==n&&n.then((function(){t.domElements.$thumb.addClass("faded")})).catch((function(t){}))}else t.pause()})),t.domElements.$cntr.closest(".modal").length&&$(window).on("resize",i((function(){return t.removeSize()}),100)),r.shouldPlay(e)&&t.config.autoplay&&!t.config.modal&&void 0!==t.domElements.$player[0].play()&&t.play(),$(window).on("scrollUpdate",(function(){r.shouldPlay(e)?t.config.autoplay&&!t.config.modal&&void 0!==t.domElements.$player[0].play()&&t.play():t.apiObj.paused()||t.pause()}))}t.exports=function(t){var e=this;return this.id=t,this.type="hosted",this.cache={},a.call(e),s.call(e),l.call(e,{onReady:function(){return c.call(e)}}),this.play=function(){e.apiObj.play(),e.domElements.$thumb.length&&!e.config.modal&&e.domElements.$thumb.addClass("faded")},this.pause=function(){e.apiObj.pause(),e.domElements.$thumb.length&&e.domElements.$thumb.removeClass("faded")},this.mute=function(){e.apiObj.getVolume().then((function(t){e.cache.volume=t})),e.apiObj.setVolume(0)},this.unmute=function(){var t=1;e.cachedVolume&&(t=e.cache.volume),e.apiObj.setVolume(t)},this.setSize=function(){e.domElements.$cntr.css({height:e.domElements.$cntr.outerHeight(),width:e.domElements.$cntr.outerWidth()})},this.removeSize=function(){e.domElements.$cntr.css({height:"auto",width:"auto"})},this.setModal=function(t){e.modal=t},this.launchModal=function(){e.setSize(),e.modal.launch(e)}
2,this.getShowEventHandler=function(){var t=e.modal.getModalObj(),n=$(".modal-body",t).empty().removeClass();if(n.addClass("modal-body "+e.domElements.$cntr.attr("class")),e.apiObj&&e.apiObj.dispose){var i=e.domElements.$player,r=$("<video/>",{"data-asset-id":i.data("asset-id"),"data-video":i.data("video"),"data-player-attr":JSON.stringify(i.data("player-attr")),"data-video-id":i.data("video-id"),class:"video-player video-js",id:i.attr("id")}),o=$("<source/>",{src:i.attr("data-video-id"),type:i.attr("data-filetype")});delete e.apiObj,videojs(i[0]).dispose(),r.append(o),n.append(r),e.domElements.$player=r,e.id=r.attr("id")}l.call(e,{onReady:function(t){e.cache.time&&e.apiObj.currentTime(e.cache.time),e.play()}})},this.getHideEventHandler=function(){e.cache.time=e.apiObj.currentTime(),videojs.getPlayers()[e.id]&&delete videojs.getPlayers()[e.id],l.call(e,{autoplay:!1})},this}},33297:(t,e,n)=>{var i=n(41181),r=n(47823),o=n(20220),a=n(75419),s=n(22289);n(4048),window.Players={};var l=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$("body"),n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=e.find(".video-player[data-video=youtube]"),c=e.find(".video-player[data-video=vimeo]"),p=e.find("video[data-video=hosted]");c.length&&d().then((function(){c.each((function(t,i){if(!$(i).closest(".slider-container").length||e.is(".slider-container")&&$(i).closest(e).length){var o=h(t,i,n);window.Players.hasOwnProperty(o)&&!n||(window.Players[o]=new r(o),window.Players[o].setModal(a))}}))})).catch((function(t){console&&console.error})),l.length&&u().then((function(){l.each((function(t,r){if(!$(r).closest(".slider-container").length||e.is(".slider-container")&&$(r).closest(e).length){var o=h(t,r,n);window.Players.hasOwnProperty(o)&&!n||(window.Players[o]=new i(o),window.Players[o].setModal(a))}}))})).catch((function(t){console&&console.error})),p.length&&(window.videojs=s,p.each((function(t,i){if(!$(i).closest(".slider-container").length||e.is(".slider-container")&&$(i).closest(e).length){var r=h(t,i,n);window.Players.hasOwnProperty(r)&&!n||(window.Players[r]=new o(r),window.Players[r].setModal(a))}}
2))),(c.length||l.length||p.length)&&($("body").on("video:ended",(function(t,e){e.domElements.$thumb.length&&e.domElements.$thumb.removeClass("faded"),e.config.autoplay=!1})),$("body").off(".sliderEvents").on("slider:init.sliderEvents",(function(e,n){t(n)}))),$("body").off(".ajaxEvents").on("ajax:load.ajaxEvents",(function(e,n){t(n,!0)}))},c=null,u=function(){return c||(c=new Promise((function(t){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",e.onerror=function(){throw new Error("YouTube iframe API load error")};var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n),window.onYouTubeIframeAPIReady=function(){return t()}})))},d=function(){return new Promise((function(t){var e=document.createElement("script");e.src="https://player.vimeo.com/api/player.js",e.onload=t,e.onerror=function(){throw new Error("Vimeo player SDK load error")};var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)}))},h=function(t,e,n){var i=$(e).attr("id");return window.Players.hasOwnProperty(i)&&!n&&(i=i+"-"+t,$(e).attr("id",i)),i};t.exports=function(){return l()}},96273:t=>{t.exports={shouldPlay:function(t){var e=t.data("play-when-fully-in-view");return function(t,e){var n=t.height()-10<=$(window).height(),i=$(window).scrollTop(),r=i+$(window).height(),o=t.offset().top,a=o+t.height();return e&&n?i<=o&&r>=a:o<=r&&a>=i}(t,e)&&!function(t){return!!t.closest(".slider").length&&!t.closest(".tns-slide-active").length&&!t.closest(".hero-button").length}(t)&&!function(t){return!!t.closest(".tab-pane").length&&!t.closest(".tab-pane.active").length}(t)}}},75419:t=>{var e={NOT_READY:0,READY:1,OPEN:2,CLOSED:3};t.exports=function(){var t=e.NOT_READY;$("#videoModal").length||($('<div id="videoModal" class="video-modal modal fade" tabindex="-1" role="dialog" aria-labelledby="videoModal">\n <div class="modal-dialog modal-lg" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" aria-label="Video Modal"></h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body"></div>\n </div>\n </div>\n </div>').appendTo("body"),t=e.READY);var n=$("#videoModal");return{States:e,launch:function(i){t===e.OPEN||n.on("show.bs.modal",(function(){"function"==typeof i.getShowEventHandler&&i.getShowEventHandler(),t=e.OPEN,i.id})).on("shown.bs.modal",(function(){"function"==typeof i.getShownEventHandler&&i.getShownEventHandler()})).on("hide.bs.modal",(function(){"function"==typeof i.getHideEventHandler&&i.getHideEventHandler(),t=e.CLOSED})).on("hidden.bs.modal",(function(){"function"==typeof i.getHiddenEventHandler&&i.getHiddenEventHandler(),n.modal("dispose")})).modal()},setState:function(n){e[n]&&(t=n)},getState:function(){return t},is:function(e){return t===e},getModalObj:function(){return n}}}()},47823:(t,e,n)=>{var i=n(37174),r=n(96273),o={autoplay:!1,controls:!0,muted:!1,loop:!1,modal:!1,hasThumb:!1};function a(){var t=$("#"+this.id);this.domElements={$player:t,$thumb:t.siblings(".video-thumbnail"),$cntr:t.closest(".video-container")}}function s(){var t=this,e={};try{e=JSON.parse(t.domElements.$player.attr("data-player-attr"))}catch(t){e=o}t.config={autoplay:!!e.autoplay,controls:!!e.controls,muted:!!e.mute,loop:!!e.loop,background:!(!e.autoplay||e.controls||!e.mute||!e.loop),autopause:!(e.autoplay&&!e.controls&&e.mute),hasThumb:e.hasThumb,modal:!!e.modal,videoId:t.domElements.$player.attr("data-video-id")}}function l(t){var e=this,n=e.config;return t&&(n=$.extend({},e.config,t)),e.apiObj=new Vimeo.Player(e.id,{id:n.videoId,autoplay:n.autoplay,controls:n.controls,loop:n.loop,muted:n.muted,background:n.background,autopause:n.autopause}),e.apiObj.on("pause",(function(){e.apiObj.getCurrentTime().then((function(t){e.cache.time=t}))}
2)),e.apiObj.on("ended",(function(){$("body").trigger("video:ended",e)})),e.apiObj.ready()}function c(){var t=this,e=t.domElements.$player.closest(".video-container");t.pause(),t.config.hasThumb&&t.domElements.$thumb.on("click",(function(e){e.preventDefault(),t.config.modal?t.launchModal():t.apiObj.getPaused().then((function(e){e?t.play():t.pause()})).catch((function(t){}))})),t.domElements.$cntr.closest(".modal").length&&$(window).on("resize",i((function(){return t.removeSize()}),100)),r.shouldPlay(e)&&t.config.autoplay&&!t.config.modal&&t.play(),$(window).on("scrollUpdate",(function(){r.shouldPlay(e)?t.config.autoplay&&!t.config.modal&&t.apiObj.getPaused().then((function(e){e&&t.play()})).catch((function(t){})):t.apiObj.getPaused().then((function(e){e||t.pause()})).catch((function(t){}))}))}t.exports=function(t){var e=this;return this.id=t,this.type="vimeo",this.cache={},a.call(e),s.call(e),l.call(e).then((function(){return c.call(e)})),this.play=function(){e.apiObj.play(),e.domElements.$thumb.length&&!e.config.modal&&e.domElements.$thumb.addClass("faded")},this.pause=function(){e.apiObj.pause(),e.domElements.$thumb.length&&e.domElements.$thumb.removeClass("faded")},this.mute=function(){e.apiObj.getVolume().then((function(t){e.cache.volume=t})),e.apiObj.setVolume(0)},this.unmute=function(){var t=1;e.cachedVolume&&(t=e.cache.volume),e.apiObj.setVolume(t)},this.setSize=function(){e.domElements.$cntr.css({height:e.domElements.$cntr.outerHeight(),width:e.domElements.$cntr.outerWidth()})},this.removeSize=function(){e.domElements.$cntr.css({height:"auto",width:"auto"})},this.setModal=function(t){e.modal=t},this.launchModal=function(){e.setSize(),e.modal.launch(e)},this.getShowEventHandler=function(){var t=e.modal.getModalObj(),n=$(".modal-body",t).empty().removeClass();n.addClass("modal-body "+e.domElements.$cntr.attr("class")),e.domElements.$player.appendTo(n),e.apiObj.destroy().then((function(){return l.call(e)})).then((function(){e.cache.time&&e.apiObj.setCurrentTime(e.cache.time),e.play()}))},this.getHideEventHandler=function(){e.apiObj.getCurrentTime().then((function(t){e.cache.time=t})).then((function(){e.domElements.$player.prependTo(e.domElements.$cntr),e.apiObj.destroy().then((function(){l.call(e,{autoplay:!1})}))}))},this}},41181:(t,e,n)=>{var i=n(37174),r=n(96273),o={autoplay:0,playsinline:0,controls:1,mute:0,loop:0,modal:!1,hasThumb:!1,playlist:""},a=window.location.protocol+"//"+window.location.host;function s(){var t=$("#"+this.id);this.domElements={$player:t,$thumb:t.siblings(".video-thumbnail"),$cntr:t.closest(".video-container")}}function l(){var t=this,e={};try{e=JSON.parse(t.domElements.$player.attr("data-player-attr"))}catch(t){e=o}var n=t.domElements.$player.attr("data-video-id"),i=1===e.loop?n:"";t.config={autoplay:e.autoplay,playsinline:1===e.autoplay?1:0,controls:e.controls,mute:e.mute,loop:e.loop,hasThumb:e.hasThumb,modal:e.modal,videoId:n,modestbranding:1},""!=i&&(t.config.playlist=i)}function c(t){var e=this,n=e.config;t&&(n=$.extend({},e.config,t)),e.apiObj=new YT.Player(e.id,{videoId:n.videoId,playerVars:{autoplay:n.autoplay,playsinline:n.playsinline,controls:n.controls,mute:n.mute,loop:n.loop,playlist:n.playlist,enablejsapi:1,origin:a,widget_referrer:a},host:"https://www.youtube.com",events:{onReady:function(n){d.call(e,n),t.onReady&&(t.onReady(n),delete t.onReady)},onStateChange:function(t){t.data===YT.PlayerState.PAUSED?e.cache.time=t.target.getCurrentTime():(t.data,YT.PlayerState.PLAYING),0===t.data&&$("body").trigger("video:ended",e)},onError:function(t){console&&console.error}}})}function u(){var t=this,e=t.domElements.$player.closest(".video-container");t.pause(),1===t.config.mute?t.mute():t.unmute(),t.config.hasThumb&&t.domElements.$thumb.on("click",(function(e){e.preventDefault(),t.config.modal?t.launchModal():1===t.apiObj.getPlayerState()?t.pause():t.play()})),t.domElements.$cntr.closest(".modal").length&&$(window).on("resize",i((function(){return t.removeSize()}),100)),r.shouldPlay(e)&&t.config.autoplay&&!t.config.modal&&t.play(),$(window).on("scrollUpdate",(function(){var n=1===t.apiObj.getPlayerState();
2r.shouldPlay(e)?!t.config.autoplay||n||t.config.modal||t.play():n&&t.pause()}))}function d(t){var e=this;e.domElements.$player=$("#"+e.id),void 0!==e.cache.mute&&(1===e.cache.mute?t.target.mute():t.target.unMute(),delete e.cache.mute)}t.exports=function(t){var e=this;return this.id=t,this.type="youtube",this.cache={},s.call(e),l.call(e),c.call(e,{onReady:function(){return u.call(e)}}),this.play=function(){e.apiObj.playVideo(),e.domElements.$thumb.length&&!e.config.modal&&e.domElements.$thumb.addClass("faded")},this.pause=function(){e.apiObj.pauseVideo(),e.domElements.$thumb.length&&e.domElements.$thumb.removeClass("faded")},this.mute=function(){e.apiObj.mute(),e.cache.mute=1},this.unmute=function(){e.apiObj.unMute(),e.cache.mute=0},this.setSize=function(){return e.domElements.$cntr.css({height:e.domElements.$cntr.outerHeight(),width:e.domElements.$cntr.outerWidth()})},this.removeSize=function(){return e.domElements.$cntr.css({height:"auto",width:"auto"})},this.setModal=function(t){e.modal=t},this.launchModal=function(){e.setSize(),e.modal.launch(e)},this.getShowEventHandler=function(){var t=e.modal.getModalObj(),n=$(".modal-body",t).empty().removeClass();n.addClass("modal-body "+e.domElements.$cntr.attr("class")),e.domElements.$player.appendTo(n),e.apiObj&&e.apiObj.destroy&&e.apiObj.destroy(),c.call(e,{onReady:function(t){e.cache.time&&e.apiObj.seekTo(e.cache.time,!0),e.play()}})},this.getHideEventHandler=function(){e.cache.time=e.apiObj.getCurrentTime(),e.domElements.$player.prependTo(e.domElements.$cntr),e.apiObj&&e.apiObj.destroy&&e.apiObj.destroy(),c.call(e,{autoplay:0})},this}},46105:(t,e,n)=>{var i=n(7830),r=n(76366),o=n(12365),a=n(73524);function s(t,e){$.spinner().stop(),$(".minicart").trigger("count:update",t);var n=t.success?"alert-success":"alert-danger";0===$(".add-giftcertificate-messages").length&&$("body").append('<div class="add-giftcertificate-messages"></div>'),$(".add-giftcertificate-messages").append('<div class="alert text-center add-giftcertificate-alert text-center '+n+'">'+(t.msg||"There was an error")+"</div>"),setTimeout((function(){$(".add-giftcertificate-messages").remove(),e&&e.removeAttr("disabled")}),5e3)}function l(t,e){for(var n,i=0;i<t.items.length;i++)if(t.items[i].UUID===e){n=t.items[i];break}n&&($(".dwfrm_giftCertificate_purchase_from-"+e+" span").html(n.senderName),$(".dwfrm_giftCertificate_purchase_from-"+e).data("value",n.senderName),$(".dwfrm_giftCertificate_purchase_recipient-"+e+" span").html(n.recipientName),$(".dwfrm_giftCertificate_purchase_recipient-"+e).data("value",n.recipientName),$(".dwfrm_giftCertificate_purchase_recipientEmail-"+e+" span").html(n.recipientEmail),$(".dwfrm_giftCertificate_purchase_recipientEmail-"+e).data("value",n.recipientEmail),$(".dwfrm_giftCertificate_purchase_message-"+e+" span").html(n.message||""),$(".dwfrm_giftCertificate_purchase_message-"+e).attr("title",n.message||""),$(".pricing.item-total-"+e).html(n.priceTotal.price),$(".pricing.item-total-"+e).data("value",n.priceTotal.priceValue+""))}t.exports={displayMessage:s,giftCertificateFormSubmission:function(){$("body").on("submit","form.GiftCertificateForm",(function(t){t.preventDefault();var e=$(this),n=!1,c=e.find(".btn-add-giftcertificate-tocart");c&&c.length?$("body").trigger("product:beforeAddToCart",this):(c=e.find(".btn-update-giftcertificate-incart"),n=!0),e.parents(".card").spinner().start();var u=e.attr("action"),d=e.serialize()+"&format=ajax";n&&(d+="&uuid="+c.data("uuid")),c.attr("disabled",!0),a.check(t,{url:u,method:"POST",dataType:"json",data:d,success:function(t){t.success?(n?($("#editGiftCertificateLineItemModal").modal("hide"),o.updateCartTotals(t.cartModel),l(t.cartModel,c.data("uuid")),$("body").trigger("cart:update",[t,c.data("uuid")])):$("body").trigger("product:afterAddToCart",t),e.trigger("reset"),i.clearPreviousErrors(e)):t.redirectUrl?window.location.href=t.redirectUrl:r(e,t),s(t,c)},error:function(t){t.responseJSON.redirectUrl&&(window.location.href=t.responseJSON.redirectUrl),s(t,c)}})}))},updateGiftCertificateLineItem:l,checkBalanceFormSubmission:function(){$("body").on("submit","form.check-balance",(function(t){t.preventDefault();
2var e=$(this);e.spinner().start();var n=e.find(".js-checkbalancebutton"),o=e.attr("action"),l=e.serialize()+"&format=ajax";n.attr("disabled",!0),i.clearPreviousErrors(e),a.check(t,{url:o,method:"POST",dataType:"json",data:l,success:function(t){t.success?e.find(".balancemsg").html(t.balance):(e.find(".balancemsg").html(""),r(e,t),t.msg&&s(t,n)),$.spinner().stop(),n.removeAttr("disabled")},error:function(t){t.responseJSON.redirectUrl&&(window.location.href=t.responseJSON.redirectUrl),s(t,n)}})}))},applyGiftCertificateToBasket:function(){$("body").on("click",".giftcertificate-information .js-applybalancebutton",(function(t){t.preventDefault();var e=$(this);e.attr("disabled",!0);var n=e.parents(".giftcertificate-information"),o=e.parents("form");n.spinner().start();var l=e.data("action");i.clearPreviousErrors(n),a.check(t,{url:l,method:"POST",data:o.serialize()+"&format=ajax",success:function(t){t.success?(s(t,e),$(".js-giftcertificatepaymentinstruments").html(t.template),$("body").trigger("checkout:updateCheckoutViewPaymentInformation",{order:t.order})):t.redirectUrl?window.location.href=t.redirectUrl:(n.find(".js-balancemsg").html(""),r(n,t),t.msg&&s(t,e)),$.spinner().stop(),e.removeAttr("disabled")},error:function(t){t.responseJSON.redirectUrl&&(window.location.href=t.responseJSON.redirectUrl),s(t,e)}})}))},removeGiftCertificatePaymentInstrument:function(){$("body").on("click",".js-remove-giftcertificate-pi",(function(t){t.preventDefault();var e=$(this);e.attr("disabled",!0),e.parents(".giftcertificate-information").spinner().start();var n=e.data("action"),i=e.data("giftcertificatecode");$.ajax({url:n,method:"POST",dataType:"json",data:"&giftCertificateCode="+i,success:function(t){t.success&&($(".js-giftcertificatepaymentinstruments").html(t.template),$("body").trigger("checkout:updateCheckoutViewPaymentInformation",{order:t.order})),$.spinner().stop(),s(t,e)},error:function(t){s(t,e)}})}))},init:function(){t.exports.giftCertificateFormSubmission(),t.exports.checkBalanceFormSubmission(),t.exports.applyGiftCertificateToBasket(),t.exports.removeGiftCertificatePaymentInstrument()}}},75933:t=>{t.exports={getIntegrationSettings:function(){return window.CachedData.siteIntegrations}}},94144:(t,e,n)=>{var i=n(62074);window.jQuery=window.$=n(28928),window.isMobile=function(){return $(window).width()<i.BreakpointSizes.lg};var r=n(82343),o={menu:n(37156),cookie:n(32368),consentTracking:n(44083),footer:n(35334),miniCart:n(65024),collapsibleItem:n(94823),search:n(86964),clientSideValidation:n(34887),countrySelector:n(81005),header:n(3287),tabs:n(76799),toast:n(76543),toolTip:n(83183),video:n(33297),tile:n(61653),base:n(88503),quickView:n(86564),productTile:n(93914),giftCertificate:n(46105).init,modal:n(64786).init,slider:n(57280).init,einsteinRecs:n(3909).init,wishlist:n(11496).init,cart:n(87748),scroll:n(16542),pageDesigner:n(67520)};$(document).ready((function(){Object.keys(o).forEach((function(t){r(o[t])}))})),n(75877),n(81085),n(16968),t.exports={baseFiles:o}},88503:(t,e,n)=>{var i=n(64171),r=n(57280);t.exports={methods:{attributeSelect:function(t,e){var n=this;if(t){$("body").trigger("product:beforeAttributeSelect",{url:t,container:e});var i=e.data("attr-selection");$.ajax({url:t,method:"GET",data:i,success:function(t){n.handleVariantResponse(t,e),n.updateOptions(t.product.optionsHtml,e),n.updateQuantities(t.product.quantities,e),$("body").trigger("product:afterAttributeSelect",{data:t,container:e}),$.spinner().stop()},error:function(){$.spinner().stop()}})}},bindQuantityStepperButtons:function(t){var e=this,n=t.prev("select"),i=parseInt(t.data("min")),r=parseInt(t.data("max"));t.find("button").off("click").click((function(o){var a=$(o.target).data("action"),s=parseInt(t.find("input").val()),l=s;"increase"===a&&s+1<=r&&l++,"decrease"===a&&s-1>=i&&l--,l!==s&&(n.find('option[value="'+l+'"]').prop("selected",!0).change(),t.find("input").prop("value",l).prop("data-qty",l),e.updateQuantityStepperDisabledStates(t),$("body").trigger("quantityStepper:change",t))}))},bindQuantityStepperInput:function(t){var e=this,n=t.prev("select"),i=parseInt(t.data("min")),r=parseInt(t.data("max"));t.find("input").off("change").change((function(o){var a=$(o.target),s=isNaN(parseInt(a.prop("data-qty")))?parseInt(a.attr("data-qty")):parseInt(a.prop("data-qty")),l=parseInt(a.val());!isNaN(l)&&l<=r&&l>=i?(n.find('option[value="'+l+'"]').prop("selected",!0).change(),a.prop("value",l).prop("data-qty",l),e.updateQuantityStepperDisabledStates(t),$("body").trigger("quantityStepper:change",t)):a.prop("value",s)}))},checkForClickableAttribute:function(t){return t.attr("disabled")||null===t.data("url")||t.find(".unselectable").length||t.find(".selected").length},chooseBonusProducts:function(t){var e,n=this;$(".modal-body").spinner().start(),0!==$("#chooseBonusProductModal").length&&$("#chooseBonusProductModal").remove(),e=t.bonusChoiceRuleBased?t.showProductsUrlRuleBased:t.showProductsUrlListBased;var i='\x3c!-- Modal --\x3e<div class="modal fade" id="chooseBonusProductModal" tabindex="-1" role="dialog"><span class="enter-message sr-only" ></span><div class="modal-dialog choose-bonus-product-dialog" data-total-qty="'+t.maxBonusItems+'"data-UUID="'+t.uuid+'"data-pliUUID="'+t.pliUUID+'"data-addToCartUrl="'+t.addToCartUrl+'"data-pageStart="0"data-pageSize="'+t.pageSize+'"data-moreURL="'+t.showProductsUrlRuleBased+'"data-bonusChoiceRuleBased="'+t.bonusChoiceRuleBased+'">\x3c!-- Modal content--\x3e<div class="modal-content"><div class="modal-header"> <span class="">'+t.labels.selectprods+'</span> <button type="button" class="close pull-right" data-dismiss="modal">
2 <span aria-hidden="true">×</span> <span class="sr-only"> </span> </button></div><div class="modal-body"></div><div class="modal-footer"></div></div></div></div>';$("body").append(i),$(".modal-body").spinner().start(),$.ajax({url:e,method:"GET",dataType:"json",success:function(t){var e=n.parseHtml(t.renderedTemplate);$("#chooseBonusProductModal .modal-body").empty(),$("#chooseBonusProductModal .enter-message").text(t.enterDialogMessage),$("#chooseBonusProductModal .modal-header .close .sr-only").text(t.closeButtonText),$("#chooseBonusProductModal .modal-body").html(e.body),$("#chooseBonusProductModal .modal-footer").html(e.footer),$("#chooseBonusProductModal").modal("show"),$.spinner().stop()},error:function(){$.spinner().stop()}})},createSlider:function(t,e){var n=e.find(".slider-container"),i=null!==t?{images:t}:null;$(n.get().reverse()).each((function(t,e){$(e).find(".slider").trigger("slider:update",i)}))},getAddToCartUrl:function(t){return t.find(".add-to-cart-url").val()},getAttributesHtml:function(t){if(!t)return"";var e="";return t.forEach((function(t){"mainAttributes"===t.ID&&t.attributes.forEach((function(t){e+='<div class="attribute-values">'+t.label+": "+t.value+"</div>"}))})),e},getChildProducts:function(){var t=[];return $(".bundle-item").each((function(){t.push({pid:$(this).find(".product-id").text(),quantity:parseInt($(this).find("label.quantity").data("quantity"),10)})})),t.length?JSON.stringify(t):[]},getOptions:function(t){var e=t.find(".product-option").map((function(){var t=$(this).find(".options-select"),e=t.val(),n=t.find('option[value="'+e+'"]').data("value-id");return{optionId:$(this).data("option-id"),selectedValueId:n}})).toArray();return JSON.stringify(e)},getPidValue:function(t){return $("#quickViewModal").hasClass("show")&&!$(".product-set").length?$(t).closest(".modal-content").find(".product-quickview").data("pid"):$(".product-set-detail").length||$(".product-set").length?$(t).closest(".product-detail").find(".product-id").text():$('.product-detail:not(".bundle-item")').data("pid")},getQuantitySelected:function(t){return this.getQuantitySelector(t).val()},getQuantitySelector:function(t){var e;if(t&&$(".set-items").length)e=$(t).closest(".product-detail").find(".quantity-select");else if(t&&$(".product-bundle").length){var n=$(t).closest(".modal-footer").find(".quantity-select"),i=$(t).closest(".bundle-footer").find(".quantity-select");e=void 0===n.val()?i:n}else e=$(".quantity-select");return e},handlePostCartAdd:function(t){$(".minicart").trigger("count:update",t);var e=t.error?"alert-danger":"alert-success";t.newBonusDiscountLineItem&&0!==Object.keys(t.newBonusDiscountLineItem).length?this.chooseBonusProducts(t.newBonusDiscountLineItem):(0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".add-to-cart-messages").append('<div class="alert '+e+' add-to-basket-alert text-center" role="alert">'+t.message+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove()}),5e3))},handleVariantResponse:function(t,e){var i,r=e.parents(".choose-bonus-product-dialog").length>0;t.product.variationAttributes&&(this.updateAttrs(t.product.variationAttributes,e,t.resources),i="variant"===t.product.productType,r&&i&&(e.parent(".bonus-product-item").data("pid",t.product.id),e.parent(".bonus-product-item").data("ready-to-order",t.product.readyToOrder)));var o=t.product.images,a=e.find("div.slide a.wishlist");if(this.createSlider(o,e),r||($(".prices .price",e).length?$(".prices .price",e):$(".prices .price")).replaceWith(t.product.price.html),e.find(".promotions").empty().html(t.product.promotionsHtml),this.updateAvailabilityProcess(t,e),r?e.find(".select-bonus-product").trigger("bonusproduct:updateSelectButton",{product:t.product,$productContainer:e}):$("button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global").trigger("product:updateAddToCart",{product:t.product,$productContainer:e}).trigger("product:statusUpdate",t.product),e.find(".main-attributes").empty().html(this.getAttributesHtml(t.product.attributes)),a&&a.length){var s=$(a[0]);s.attr("data-wishlistpid",t.product.wishlistpid),n(11496).updateWishlistLinkData(s),e.find("div.primary-images-main div.slide img").each((function(t,e){$(e).after(s.clone(!0))}))}},miniCartReportingUrl:function(t){t&&$.ajax({url:t,method:"GET",success:function(){},error:function(){}})}
2,parseHtml:function(t){var e=$("<div>").append($.parseHTML(t));return{body:e.find(".choice-of-bonus-product"),footer:e.find(".modal-footer").children()}},processNonSwatchValues:function(t,e,n){var i='.custom-select[data-attr="'+t.id+'"]';e.find(i+" .select-"+t.id+" option:first-child").attr("value",t.resetUrl),t.values.forEach((function(r){var o=e.find(i+' [data-attr-value="'+r.value+'"]');o.attr("value",r.url).removeAttr("disabled");var a=e.find(i+".select-"+t.id+" option:selected").eq(0);r.selectable&&r.available?(o.html(r.displayValue),a.text()==r.displayValue&&($(a).attr("selected","selected"),$(i).prop("selectedIndex",$(a).index()))):(r.selectable||o.attr("disabled",!0),a.data("attr-value")==r.value&&(o.removeAttr("selected"),$(i).prop("selectedIndex",0)),o.html(r.displayValue+n.unavailableMsg))}))},processSwatchValues:function(t,e,n){"color"==t.attributeId&&e.find(".color-display-value").text(t.displayValue||""),"size"==t.attributeId&&e.find(".non-color-display-value").text(t.displayValue||""),t.values.forEach((function(i){var r=e.find('[data-attr="'+t.id+'"] [data-attr-value="'+i.value+'"]'),o=r.parent("button");i.selected?(r.addClass("selected"),r.siblings(".selected-assistive-text").text(n.assistiveSelectedText),r.attr("selected","selected")):(r.removeClass("selected"),r.siblings(".selected-assistive-text").empty(),r.removeAttr("selected")),i.url?o.attr("data-url",i.url):o.removeAttr("data-url"),r.removeClass("selectable unselectable available unavailable"),r.addClass(i.selectable?"selectable":"unselectable"),r.addClass(i.available?"available":"unavailable"),r.attr("value",i.url).removeAttr("disabled"),i.selectable||r.attr("disabled",!0)}))},selectSwatch:function(t){var e=this;if(t.length>0){var n=t.splice(0,1)[0],i=$(n).closest(".set-item");i.length||(i=$(n).closest(".product-detail")),i.find(".color-display-value").text($(n).data("displayvalue")),e.attributeSelect($(n).attr("data-url"),i,(function(){e.selectSwatch(t)}))}},updateAttrs:function(t,e,n){var i=this,r=e.data("swatchable-attributes");t.forEach((function(t){r&&r.indexOf(t.attributeId)>-1?i.processSwatchValues(t,e,n):i.processNonSwatchValues(t,e,n)}))},updateAvailabilityProcess:function(t,e){var n="",i=t.product.availability.messages;t.product.readyToOrder?i.forEach((function(t){n+="<li><div>"+t+"</div></li>"})):n="<li><div>"+t.resources.info_selectforstock+"</div></li>",$(e).trigger("product:updateAvailability",{product:t.product,$productContainer:e,message:n,resources:t.resources})},updateOptions:function(t,e){e.find(".product-options").empty().html(t)},updateQuantities:function(t,e){if(e.parent(".bonus-product-item").length<=0){var n=t.map((function(t){var e=t.selected?" selected ":"";return'<option value="'+t.value+'" data-url="'+t.url+'"'+e+">"+t.value+"</option>"})).join("");this.getQuantitySelector(e).empty().html(n)}},updateQuantityStepperDisabledStates:function(t){var e=parseInt(t.attr("data-min")),n=parseInt(t.attr("data-max")),i=t.find("input"),r=t.find('[data-action="decrease"]'),o=t.find('[data-action="increase"]'),a=isNaN(parseInt(i.prop("data-qty")))?parseInt(i.attr("data-qty")):parseInt(i.prop("data-qty"));a<=e?r.addClass("disabled"):r.removeClass("disabled"),a>=n?o.addClass("disabled"):o.removeClass("disabled")}},addToCart:function(){var t=this;$(document).on("click","button.add-to-cart, button.add-to-cart-global",(function(){var e,n,i,r;$("body").trigger("product:beforeAddToCart",this),$(".set-items").length&&$(this).hasClass("add-to-cart-global")&&(r=[],$(".product-detail").each((function(){$(this).hasClass("product-set-detail")||r.push({pid:$(this).find(".product-id").text(),qty:$(this).find(".quantity-select").val(),options:t.methods.getOptions($(this))})})),i=JSON.stringify(r)),n=t.methods.getPidValue($(this));var o=$(this).closest(".product-detail");if(o.length)e=t.methods.getAddToCartUrl(o);else{o=$(this).closest(".quick-view-dialog").find(".product-detail");var a=$(this).closest(".modal-content");e=t.methods.getAddToCartUrl(a)}var s={pid:n,pidsObj:i,childProducts:t.methods.getChildProducts(),quantity:t.methods.getQuantitySelected($(this))};$(".bundle-item").length||(s.options=t.methods.getOptions(o)),$(this).trigger("updateAddToCartFormData",s),e&&$.ajax({url:e,method:"POST",data:s,success:function(e){t.methods.handlePostCartAdd(e),$("body").trigger("product:afterAddToCart",e),$("body").trigger("product:afterAddToCartQuickview",e),$.spinner().stop(),t.methods.miniCartReportingUrl(e.reportingURL)},error:function(){$.spinner().stop()}})}))},updateAvailability:function(){$("body").on("product:updateAvailability",(function(t,e){var n=e.$productC
2ontainer;n.find(".product-availability").data("ready-to-order",e.product.readyToOrder).data("available",e.product.available).find(".availability-msg").empty().html(e.message);var i=n.closest(".quick-view-dialog");if(i.length)if(i.find(".product-availability").length){var r=i.find(".product-availability").toArray().every((function(t){return $(t).data("available")})),o=i.find(".product-availability").toArray().every((function(t){return $(t).data("ready-to-order")}));i.find(".global-availability").data("ready-to-order",o).data("available",r),i.find(".global-availability .availability-msg").empty().html(o?e.message:e.resources.info_selectforstock)}else i.find(".global-availability").data("ready-to-order",e.product.readyToOrder).data("available",e.product.available).find(".availability-msg").empty().html(e.message);else n.find(".global-availability").length&&(r=n.find(".product-availability").toArray().every((function(t){return $(t).data("available")})),o=n.find(".product-availability").toArray().every((function(t){return $(t).data("ready-to-order")})),n.find(".global-availability").data("ready-to-order",o).data("available",r),n.find(".global-availability .availability-msg").empty().html(o?e.message:e.resources.info_selectforstock))}))},availability:function(){var t=this;$(document).on("change",".quantity-select",(function(e){e.preventDefault();var n=$(this).closest(".product-detail");n.length||(n=$(this).closest(".modal-content").find(".product-quickview")),0===$(".bundle-items",n).length&&t.methods.attributeSelect($(e.currentTarget).find("option:selected").data("url"),n)}))},updateAddToCart:function(){$("body").on("product:updateAddToCart",(function(t,e){var n=e.$productContainer;n.find("button.add-to-cart").attr("disabled",!e.product.readyToOrder||!e.product.available);var i=$(e.$productContainer).closest(".quick-view-dialog");if(i.length)i.find(".add-to-cart-global, .update-cart-product-global").attr("disabled",!i.find(".global-availability").data("ready-to-order")||!i.find(".global-availability").data("available"));else{var r=n.find(".product-availability").toArray().every((function(t){return $(t).data("available")&&$(t).data("ready-to-order")}));n.find("button.add-to-cart-global").attr("disabled",!r)}}))},updateAttribute:function(){$("body").on("product:afterAttributeSelect",(function(t,e){e.container.find("#sizeChartModal").attr("data-product",e.data.product.id),$(".modal.show .product-quickview>.bundle-items").length?($(".modal.show").find(e.container).data("pid",e.data.product.id),$(".modal.show").find(e.container).find(".product-id").text(e.data.product.id)):$(".set-items").length?e.container.find(".product-id").text(e.data.product.id):$(".modal.show .product-quickview").length?($(".modal.show .product-quickview").data("pid",e.data.product.id),$(".modal.show .full-pdp-link").attr("href",e.data.product.selectedProductUrl),$(".modal.show").find(e.container).find(".product-id").text(e.data.product.id)):$(".product-detail>.bundle-items").length?(e.container.data("pid",e.data.product.id),e.container.find(".product-id").text(e.data.product.id)):$(".product-set-detail").eq(0)?(e.container.data("pid",e.data.product.id),e.container.find(".product-id").text(e.data.product.id),e.container.find(".add-to-cart").data("pid",e.data.product.id)):($(".product-detail .add-to-cart").data("pid",e.data.product.id),$(".product-id").text(e.data.product.id),$('.product-detail:not(".bundle-item")').data("pid",e.data.product.id))}))},quickViewLoaded:function(){var t=this;$(document).on("quickview:ready","body",(function(e,n){t.enableQuantitySteppers($(n))}))},miniCartLoaded:function(){var t=this;$("body").on("minicart:loaded",(function(e,n){t.enableQuantitySteppers($(n))}))},preselectSingleSwatchesInContainer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",e=[];if($(t)&&$(t).length>0){var n=$(t).find(".attribute");$.each(n,(function(){var t=$(this).find(".swatch");if(1==t.length){var n=$(t[0]);n.find("span.selectable").hasClass("selected")||e.push(n)}})),this.methods.selectSwatch(e)}},nonColorAttribute:function(){var t=this;$(document).on("click","button.swatch",(function(e){if(e.preventDefault(),!t.methods.checkForClickableAttribute($(this))){var n=$(this).closest(".set-item");n.length||(n=$(this).closest(".product-detail")),t.methods.attributeSelect($(this).attr("data-url"),n),n.find(".non-color-display-value").text($(this).find(".swatch-value").data("display-value"))}}))},selectAttribute:function(){var t=this;$(document).on("change",'select[class*="select-"], .options-select',(function(e){e.preventDefault();var n=$(this).closest(".set-item");n.length||(n=$(this).closest(".product-detail")),t.methods.attributeSelect(e.currentTarget.value,n)}))},colorAttribute:function(){var t=this;$(document).on("click",'[data-attr="color"] button',(function(e){if(e.preventDefault(),!t.methods.checkForClickableAttribute($(this))){var n=$(this).closest(".set-item");n.length||(n=$(this).closest(".product-detail")),t.methods.attributeSelect($(this).attr("data-url"),n),n.find(".color-display-value").text($(this).find(".swatch").data("displayvalue"))}}))},enableQuantitySteppers:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$("body"),e=this,n=t.find(".quantity-stepper");n.length&&n.each((function(t,n){var i=$(n);e.methods.updateQuantityStepperDisabledStates(i),e.methods.bindQuantityStepperButtons(i),e.methods.bindQuantityStepperInput(i)}))},sizeChart:function(){$("body").on("click",".size-chart .size-chart-launcher",(function(t){t.preventDefault();
2var e=$(t.target).attr("href"),n=$(t.target).closest(".product-detail").find(".product-id").html(),i=$(".modal[data-product="+n+"]"),r=i.find(".modal-body");if($.ajax({url:e,type:"get",dataType:"html",success:function(t){r.html(t)}}),$(t.target).parents(".product-quickview").length){var o=$(t.target).closest(".size-chart");i.appendTo("body"),i.on("hide.bs.modal",(function(t){i.appendTo(o)}))}i.modal("show")})),$("body").on("click","#sizeChartModal .close",(function(t){$(t.target).closest("#sizeChartModal").modal("hide")}))},bonusProductEdit:function(){var t=this;$("body").on("bonusproduct:edit",(function(e,n){t.methods.chooseBonusProducts(n)}))},removeBonusProduct:function(){$(document).on("click",".selected-pid .remove-bonus-product",(function(t){$(t.target).closest(".selected-pid").remove();var e=$("#chooseBonusProductModal .selected-bonus-products .selected-pid"),n=0;e.length&&e.each((function(){n+=parseInt($(this).data("qty"),10)})),$(".pre-cart-products").html(n),$(".selected-bonus-products .bonus-summary").removeClass("alert-danger"),$("body").trigger("modal:loaded",$("#chooseBonusProductModal"))}))},selectBonusProduct:function(){$(document).on("click",".select-bonus-product",(function(){var t=$(this).parents(".choice-of-bonus-product"),e=$(this).data("pid"),n=$(".choose-bonus-product-dialog").data("total-qty"),i=parseInt(t.find(".bonus-quantity-select").val(),10),r=0;$.each($("#chooseBonusProductModal .selected-bonus-products .selected-pid"),(function(){r+=$(this).data("qty")})),r+=i;var o=t.find(".product-option").data("option-id"),a=t.find(".options-select option:selected").data("valueId");if(r<=n){var s='<div class="selected-pid" data-pid="'+e+'"data-qty="'+i+'"data-optionID="'+(o||"")+'"data-option-selected-value="'+(a||"")+'"><div class="bonus-product-name">'+t.find(".product-name").html()+'</div><div class="remove-bonus-product"></div></div>';$("#chooseBonusProductModal .selected-bonus-products .bonus-summary-products-container").append(s),$(".pre-cart-products").html(r),$(".selected-bonus-products .bonus-summary").removeClass("alert-danger"),$("body").trigger("modal:loaded",$("#chooseBonusProductModal"))}else $(".selected-bonus-products .bonus-summary").addClass("alert-danger")}))},enableBonusProductSelection:function(){$("body").on("bonusproduct:updateSelectButton",(function(t,e){$("button.select-bonus-product",e.$productContainer).attr("disabled",!e.product.readyToOrder||!e.product.available);var n=e.product.id;$("button.select-bonus-product",e.$productContainer).data("pid",n)}))},focusChooseBonusProductModal:function(){var t=this;$("body").on("shown.bs.modal","#chooseBonusProductModal",(function(){t.enableQuantitySteppers($(this)),$("body").trigger("quickview:ready",$("#chooseBonusProductModal")),$("#chooseBonusProductModal").siblings().attr("aria-hidden","true"),$("#chooseBonusProductModal .close").focus()}))},showMoreBonusProducts:function(){var t=this;$(document).on("click",".show-more-bonus-products",(function(){var e=$
2(this).data("url"),n=$(this).closest(".modal").find(".modal-content");n.spinner().start(),$.ajax({url:e,method:"GET",success:function(e){var i=t.methods.parseHtml(e.renderedTemplate);n.find(".modal-body").append(i.body),n.find(".show-more-bonus-products:first").remove(),r.initializeSliders($(i.body)),t.enableQuantitySteppers($(i.body)),n.spinner().stop()},error:function(){n.spinner().stop()}})}))},addBonusProductsToCart:function(){$(document).on("click",".add-bonus-products",(function(){var t=$(".choose-bonus-product-dialog .selected-pid"),e="?pids=",n=$(".choose-bonus-product-dialog").data("addtocarturl"),i={bonusProducts:[]};$.each(t,(function(){var t=parseInt($(this).data("qty"),10),e=null;t>0&&($(this).data("optionid")&&$(this).data("option-selected-value")&&((e={}).optionId=$(this).data("optionid"),e.productId=$(this).data("pid"),e.selectedValueId=$(this).data("option-selected-value")),i.bonusProducts.push({pid:$(this).data("pid"),qty:t,options:[e]}),i.totalQty=parseInt($(".pre-cart-products").html(),10))})),e=(e=(e+=JSON.stringify(i))+"&uuid="+$(".choose-bonus-product-dialog").data("uuid"))+"&pliuuid="+$(".choose-bonus-product-dialog").data("pliuuid"),$.spinner().start(),$.ajax({url:n+e,method:"POST",success:function(t){$.spinner().stop(),t.error?($("#chooseBonusProductModal").modal("hide"),0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".add-to-cart-messages").append('<div class="alert alert-danger add-to-basket-alert text-center" role="alert">'+t.errorMessage+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove()}),3e3)):($(".configure-bonus-product-attributes").html(t),$(".bonus-products-step2").removeClass("hidden-xl-down"),$("#chooseBonusProductModal").modal("hide"),0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".minicart-quantity").html(t.totalQty),$(".add-to-cart-messages").append('<div class="alert alert-success add-to-basket-alert text-center" role="alert">'+t.msgSuccess+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove(),$(".cart-page").length&&location.reload()}),1500))},error:function(){$.spinner().stop()}})}))},trapChooseBonusProductModalFocus:function(){$("body").on("keydown","#chooseBonusProductModal",(function(t){var e={event:t,containerSelector:"#chooseBonusProductModal",firstElementSelector:".close",lastElementSelector:".add-bonus-products"};i.setTabNextFocus(e)}))},onClosingChooseBonusProductModal:function(){$("body").on("hidden.bs.modal","#chooseBonusProductModal",(function(){$("#chooseBonusProductModal").siblings().attr("aria-hidden","false")}))}}},78514:(t,e,n)=>{var i=n(5898).updateAddToCart;t.exports={updateAttributes:function(){$("body").on("product:statusUpdate",(function(t,e){$('.product-detail[data-pid="'+e.id+'"]').find(".main-content-group .product-attributes").empty().html(e.attributesHtml),$("body").trigger("tooltip:init"),i()}))},updateAddAllToCart:function(){var t=$(".product-availability").toArray().every((function(t){return $(t).data("available")&&$(t).data("ready-to-order")}));$("button.add-to-cart-global").attr("disabled",!t)},copyProductLink:function(){$("body").on("click","#fa-link",(function(){event.preventDefault();var t=$("<input>");$("body").append(t),t.val($("#shareUrl").val()).select(),document.execCommand("copy"),t.remove(),$(".copy-link-message").attr("role","alert"),$(".copy-link-message").removeClass("d-none"),setTimeout((function(){$(".copy-link-message").addClass("d-none")}),3e3)}))},showSpinner:function(){$("body").on("product:beforeAddToCart, product:beforeAttributeSelect",(function(){$.spinner().start()}))},setCollapsibleContentState:function(){$(".collapsible-content-group").each((function(){1==$(this).data("expand")&&$(this).addClass("active")}))}}},86564:(t,e,n)=>{var i=n(64171),r=n(64786),o=n(78514).updateAddAllToCart;t.exports={showQuickview:function(){$("body").on("click",".quickview",(function(t){t.preventDefault();var e=$(this).closest("a.quickview").attr("href");$(t.target).trigger("quickview:show"),r.getModalHtmlElement("quickViewModal","quick-view-dialog"),function(t){var e=$
2("#quickViewModal");e.find(".modal-body").spinner().start(),$.ajax({url:t,method:"GET",dataType:"json",success:function(t){var n=r.parseHtml(t.renderedTemplate);e.find(".modal-body").empty(),e.find(".modal-body").html(n.body),e.find(".modal-footer").html(n.footer),e.find(".full-pdp-link").text(t.quickViewFullDetailMsg),e.find(".full-pdp-link").attr("href",t.productUrl),e.find(".modal-header .close .sr-only").text(t.closeButtonText),e.find(".enter-message").text(t.enterDialogMessage),e.find("#quickViewModal").modal("show"),t.dialogTitle&&e.find(".modal-header").prepend('<div class="modal-title">'+t.dialogTitle+"</div>"),"set"===t.product.productType&&o(),$("body").trigger("modal:loaded",$("#quickViewModal")),$("body").trigger("quickview:ready",$("#quickViewModal")),$("body").trigger("tooltip:init"),$.spinner().stop()},error:function(){$.spinner().stop()}})}(e)}))},focusQuickview:function(){$("body").on("shown.bs.modal","#quickViewModal",(function(){$("#quickViewModal").siblings().attr("aria-hidden","false"),$("#quickViewModal .close").focus()}))},trapQuickviewFocus:function(){$("body").on("keydown","#quickViewModal",(function(t){var e={event:t,containerSelector:"#quickViewModal",firstElementSelector:".full-pdp-link",lastElementSelector:".qv-product-edit-add",nextToLastElementSelector:".modal-footer .quantity-select"};i.setTabNextFocus(e)}))},showSpinner:function(){$("body").on("product:beforeAddToCart",(function(t,e){$(e).closest(".modal-content").spinner().start()}))},hideDialog:function(){$("body").on("product:afterAddToCart",(function(){$("#quickViewModal").modal("hide"),$("#quickViewModal").siblings().attr("aria-hidden","true")}))},beforeUpdateAttribute:function(){$("body").on("product:beforeAttributeSelect",(function(){$(".modal.show .modal-content").spinner().start()}))}}},61653:(t,e,n)=>{var i=n(11496);t.exports={hijackSwatchClick:function(){window.isMobile()?$("body").on("click.swatch-link",".product-tile .swatch-link",(function(e){e.preventDefault();var n=$(this).find(".swatch");t.exports.methods.swatchSwitch(n)})):$("body").off("click.swatch-link")},mouseEnter:function(){$("body").on("mouseenter",".product-tile .swatch",(function(e){var n=$(this);t.exports.methods.swatchSwitch(n)}))},resize:function(){$(window).on("resize",(function(){t.exports.hijackSwatchClick()}))},methods:{swatchSwitch:function(t){var e=t,n=e.parents(".product-tile"),r=n.attr("data-pid"),o=n.find(".product-tile-image"),a=n.find(".product-tile-image-secondary");if(n.find(".swatch.selected").removeClass("selected"),e.addClass("selected"),e.data("hover-image")&&""!=e.data("hover-image")){var s=e.data("hover-image");if(o.attr("src",s),a.length>0&&e.data("hover-image-secondary")){var l=e.data("hover-image-secondary");o.data("alt-img-url",l),a.attr("src",l)}}var c=e.parents(".swatch-link").attr("href").split("?")[1],u=n.find(".product-tile-image-link"),d=u.attr("href").split("?");u.attr("href",d[0]+"?"+c);var h=n.find("a.quickview");if(h.length){var p=h.attr("href").split("?");h.attr("href",p[0]+"?pid="+r+"&"+c)}if(e.attr("data-wishlistpid")){var f=n.find("a.wishlist");f.length&&(f.attr("data-wishlistpid",e.attr("data-wishlistpid")),i.updateWishlistLinkData(f))}}}}},75877:(t,e,n)=>{n(16536),n(25650),n(79950),n(3228),n(57082),n(36268),n(10708),n(57313),n(95448),n(25827)},18588:(t,e,n)=>{t.exports={methods:n(31807).methods,einstein:n(3909),productTile:n(93914),video:n(33297),slider:n(57280),pageDesigner:n(67520)}},16542:t=>{function e(t){return e="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},e(t)}!function(){if("undefined"!=typeof window)try{var t=new window.CustomEvent("test",{cancelable:!0});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default")}catch(t){var e=function(t,e){var n,i;return(e=e||{}).bubbles=!!e.bubbles,e.cancelable=!!e.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},n};e.prototype=window.Event.prototype,window.CustomEvent=e}}();var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$html=$("html"),this.window=window,this.direction=null,this.headerHeight=null,this.headerNavHeight=null,this.headerNavOffsetTop=0,this.isScrolling=!1,this.last=0,this.stickyHeader=!1,this.timeout=null,this.threshold=10,this.init()}var n,i;return n=t,(i=[{key:"init",value:function(){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t={passive:!0}}}))}catch(t){}this.listener=this.detectDirection.bind(this),this.resize=this.detectResize.bind(this),this.window.addEventListener("scroll",this.listener,t),this.window.addEventListener("resize",this.resize,t),this.detectResize()}},{key:"detectDirection",value:function(){var t=this.window.scrollY||this.window.scrollTop||this.window.pageYOffset;if(Math.abs(t-this.last)>=this.threshold){var e=t>this.last?"down":"up";t===this.last||this.isScrolling||this.onScrollStart(),this.headerHeight&&(t>this.headerHeight&&!this.stickyHeader&&"up"===this.direction?(this.stickyHeader=!0,this.$html.addClass("sticky-header"),this.window.dispatchEvent(new CustomEvent("stickyHeaderChange",{detail:{direction:this.direction,last:this.last,stickyHeader:this.stickyHeader}}))):t<this.headerNavOffsetTop&&this.stickyHeader&&(this.stickyHeader=!1,this.$html.removeClass("sticky-header"),this.window.dispatchEvent(new CustomEvent("stickyHeaderChange",{detail:{direction:this.direction,last:this.last,stickyHeader:this.stickyHeader}})))),this.direction!==e&&this.onDirectionChange(e),this.last=t,this.window.dispatchEvent(new CustomEvent("scrollUpdate",{detail:{direction:this.direction,last:this.last,stickyHeader:this.stickyHeader}}))}this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(this.onScrollStop.bind(this),500)}},{key:"detectResize",value:function(){var t=$(".fixed-header-enhanced");if(t.length){var e=t.find(".header-nav");this.headerHeight=t.outerHeight(),this.headerNavHeight=e.outerHeight(),this.$html.css("--header-height",this.headerNavHeight+"px"),e.css("position","static"),this.headerNavOffsetTop=e.offset().top,e.css("position","")}}},{key:"onDirectionChange",value:function(t){this.direction=t,this.$html.addClass("scroll-direction-"+this.direction),this.$html.removeClass("scroll-direction-"+("down"==this.direction?"up":"down")),this.window.dispatchEvent(new CustomEvent("scrollDirectionChange",{detail:{direction:this.direction,last:this.last,stickyHeader:this.stickyHeader}}))}},{key:"onScrollStart",value:function(){this.$html.addClass("is-scrolling"),this.isScrolling=!0,this.window.dispatchEvent(new CustomEvent("scrollStart",{detail:{direction:this.direction,last:this.last,stickyHeader:this.stickyHeader}}))}},{key:"onScrollStop",value:function(){this.$html.removeClass("is-scrolling"),this.isScrolling=!1,this.timeout=null,this.window.dispatchEvent(new CustomEvent("scrollStop",{detail:{direction:this.direction,last:this.last,stickyHeader:this.stickyHeader}}))}}])&&function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=function(t,n){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===e(o)?o:String(o)),r)}var o}
2(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=function(){$(document).ready((function(){new n}))}},11496:(t,e,n)=>{var i=n(64786),r=n(88503),o="#editWishlistProductModal";function a(t){$.spinner().stop();var e=t.success?"alert-success":"alert-danger";0===$(".add-to-wishlist-messages").length&&$("body").append('<div class="add-to-wishlist-messages"></div>'),$(".add-to-wishlist-messages").append('<div class="alert text-center add-to-wishlist-alert text-center '+e+'">'+t.msg+"</div>"),setTimeout((function(){$(".add-to-wishlist-messages").remove()}),5e3)}function s(t){if(t.success){var e=new Set(window.UncachedData.wishlistPIDs);t.add?e.add(t.wishlistpid):e.delete(t.wishlistpid),window.UncachedData.wishlistPIDs=Array.from(e)}}function l(t){if(window&&window.UncachedData&&window.UncachedData.wishlistPIDs){var e=t||$("a.wishlist");if(e&&e.length){var n=new Set(window.UncachedData.wishlistPIDs);e.each((function(t,e){var i=$(e),r=i.attr("data-wishlistpid");if(r){var o=n.has(r);i.attr("data-inwishlist",o),o?(i.attr("title",i.attr("data-removemessage")),!0===i.data("includetext")&&i.find("span").html(i.attr("data-removemessage"))):(i.attr("title",i.attr("data-addmessage")),!0===i.data("includeicon")&&i.find("span").html(i.attr("data-addmessage")));var a=i.find(".wishlist-icon");a&&a.length&&$(a).toggleClass("selected",o)}}))}}}function c(){$("body").on("cart:update",(function(t,e,n){var i=$("a.wishlist[data-uuid="+n+"]");i.length&&(i.attr("data-wishlistpid",e.newProductId),l())}))}function u(){$("body").on("click","a.wishlist",(function(e){var n=$(this);e.preventDefault();var i=n.attr("href"),r=n.attr("data-wishlistpid");if(i&&r){var o=$(this);$.spinner().start(),$.ajax({url:i,type:"post",dataType:"json",data:{wishlistpid:r},success:function(e){a(e),s(e),l(),t.exports.methods.updateWishlistCartStatus(e,o)},error:function(t){a(t)}})}}))}function d(){$("body").on("click",".wl-social .share-link",(function(){var t=$("<input>");$("body").append(t),t.val($("#wlShareUrl").val()).select(),document.execCommand("copy"),t.remove(),$(".copy-link-message").removeClass("d-none"),setTimeout((function(){$(".copy-link-message").addClass("d-none")}),3e3)}))}function h(t){$("body").on("quickview:ready",(function(){l()}))}function p(){$("body").on("click",".edit-add-to-wishlist .edit",(function(t){t.preventDefault();var e=$(this).attr("href");$(t.target).trigger("editwishlistproduct:show"),i.getModalHtmlElement("editWishlistProductModal","quick-view-dialog"),function(t){var e=$(o);e.find(".modal-body").spinner().start(),$.ajax({url:t,method:"GET",dataType:"json",success:function(t){var n=i.parseHtml(t.renderedTemplate);e.find(".modal-body").empty(),e.find(".modal-body").html(n.body),e.find(".modal-footer").html(n.footer),e.find(".modal-header .close .sr-only").text(t.closeButtonText),e.find(".enter-message").text(t.enterDialogMessage),e.find(o).modal("show"),$("body").trigger("editwishlistproduct:ready",$(o)),$.spinner().stop()},error:function(){$.spinner().stop()}})}(e)}))}function f(){$("body").on("shown.bs.modal",o,(function(){$(o).siblings().attr("aria-hidden","true"),$(o+" .close").focus()}))}function m(){$("body").on("hidden.bs.modal",o,(function(){$(o).remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),$(o).siblings().attr("aria-hidden","false")}))}function g(){$("body").on("keydown",o,(function(t){var e={event:t,containerSelector:o,firstElementSelector:".close",lastElementSelector:".btn-update-wishlist-product",nextToLastElementSelector:".select-size"};focusHelper.setTabNextFocus(e)}))}function v(){$("body").on("click",".btn-update-wishlist-product",(function(t){t.preventDefault();var e=$(this).closest(".wishlist-item-update-button-block").find(".update-wishlist-url"),n=e.val(),i={uuid:e.data("uuid"),pid:r.methods.getPidValue($(this))};$(o).spinner().start(),$.ajax({url:n,type:"post",context:this,data:i,dataType:"json",success:function(){$.spinner().start(),$(o).spinner().stop(),$(o).remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),y($(".wishlistItemCardsData").data("page-number")-1,!1,".product-info .edit-ad
2d-to-wishlist .edit:first")},error:function(){var t=$(".btn-update-wishlist-product").data("error-msg");$(o).spinner().stop(),$(o).remove(),$(".modal-backdrop").remove(),$("body").removeClass("modal-open"),0===$(".update-wishlist-messages").length&&$("body").append('<div class="update-wishlist-messages "></div>'),$(".update-wishlist-messages").append('<div class="update-wishlist-alert text-center alert-danger">'+t+"</div>"),setTimeout((function(){$(".update-wishlist-messages").remove()}),5e3)}})}))}function y(t,e,n){var i=$(".wishlistItemCardsData").data("public-view"),r=$(".wishlistItemCardsData").data("uuid"),o=$(".wishlistItemCardsData").data("href");e&&$.spinner().start();var a=document.documentElement.scrollTop,s=t;$.ajax({url:o,method:"get",data:{pageNumber:++s,publicView:i,id:r}}).done((function(t){$(".wishlistItemCards").empty(),$("body .wishlistItemCards").parent().html(t),n?$(n).focus():document.documentElement.scrollTop=a})).fail((function(){$(".more-wl-items").remove()})),$.spinner().stop()}function b(){$("body").on("click",".add-to-cart",(function(){var t,e;$("body").trigger("product:beforeAddToCart",this),t=$(this).data("pid"),e=$(this).data("url");var n={pid:t,quantity:parseInt($(this).closest(".product-info").find(".quantity").val(),10)};$(this).data("option")&&(n.options=JSON.stringify($(this).data("option"))),$(this).trigger("updateAddToCartFormData",n),e&&$.ajax({url:e,method:"POST",data:n,success:function(t){_(t),$("body").trigger("product:afterAddToCart",t),$.spinner().stop(),r.miniCartReportingUrl(t.reportingURL,t.error)},error:function(){$.spinner().stop()}})}))}function _(t){$(".minicart").trigger("count:update",t);var e=t.error?"alert-danger":"alert-success";0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".add-to-cart-messages").append('<div class="alert '+e+' add-to-basket-alert text-center" role="alert">'+t.message+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove()}),5e3)}function w(){$("#isPublicList").on("click",(function(){S($("#isPublicList").data("id"),null,null)}))}function T(){$("body").on("click",".wishlist-item-checkbox",(function(){var t=$(this).closest(".wishlist-hide").find(".custom-control-input").data("id"),e=$(this).siblings("input");S(null,t,(function(){return e.prop("checked")?e.prop("checked",!1):e.prop("checked",!0)}))}))}function S(t,e,n){var i=$("#isPublicList").data("url");$.spinner().start(),$.ajax({url:i,type:"post",dataType:"json",data:{listID:t,itemID:e},success:function(t){n&&!t.success&&n(),a(t)},error:function(t){n&&n(),a(t)}})}function C(){$("body").on("click",".remove-from-wishlist",(function(t){t.preventDefault();var e=$(this).data("url");$(".account-page").length>0?($(".wishlist-account-card").spinner().start(),$.ajax({url:e,type:"get",dataType:"html",data:{},success:function(t){$(".wishlist-account-card>.order-card").remove(),$(".wishlist-account-card").append(t),$(".wishlist-account-card").spinner().stop()},error:function(){var t=$(".wishlist-account-card");t.spinner().stop(),t.data("error-msg"),a(t)}})):($.spinner().start(),$.ajax({url:e,type:"get",dataType:"json",data:{},success:function(){y($(".wishlistItemCardsData").data("page-number")-1,!1)},error:function(){$.spinner().stop();var t=$(".wishlistItemCards");t.data("error-msg"),a(t)}}))}))}function k(){$("body").on("click",".more-wl-items",(function(){y($(".wishlistItemCardsData").data("page-number"),!0)}))}t.exports={cartUpdate:c,toggleWishlist:u,updateWishlistLinkData:l,updateWishlistUncachedData:s,displayMessage:a,copyWishlistLink:d,updateQuickView:h,viewProductViaEdit:p,focusEditWishlistProductModal:f,onClosingEditWishlistProductModal:m,trapEditWishlistProductModalFocus:g,updateWishlistItem:v,renderNewPageOfItems:y,addToCartFromWishlist:b,handlePostCartAdd:_,toggleWishlistStatus:w,toggleWishlistItemStatus:T,updatePublicStatus:S,removeFromWishlist:C,moreWLItems:k,init:function(){c(),u(),l(),d(),h(),p(),f(),m(),g(),v(),b(),w(),T(),C(),k()},methods:{updateWishlistCartStatus:function(t,e){if(t.success&&t.add&&e.hasClass("move")){var n={actionUrl:e.data("nextaction"),productID:e.data("wishlistpid"),productName:e.data("productname"),uuid:e.data("uuid")};$("body").trigger("afterRemoveFromCart",n),setTimeout((function(){$("#removeProductModal").modal()}),1e3)}}}}},62074:t=>
2{t.exports.BreakpointSizes={sm:544,md:769,lg:1024,xl:1440},t.exports.TransitionSpeed=200,t.exports.ComponentAnimationDelay=0,t.exports.Spacer=16,t.exports.placeholderImagePaths={thumbnail:"/gray.png",imageMissing:"/placeholder 410x410.png"},t.exports.defaultMapMarker={color:"white",backgroundImage:"/images/icons/map-marker-default.svg"},t.exports.defaultStoreType={id:0,displayValue:"Retail",value:"retail"}},4048:(t,e,n)=>{n(2675);var i,r=(i=n(4370))&&i.__esModule?i:{default:i};r.default._babelPolyfill&&"undefined"!=typeof console&&console.warn,r.default._babelPolyfill=!0},2675:(t,e,n)=>{n(12036),n(84246),n(28904),n(76345),n(34835),n(47654),n(87892),n(76906),n(15307),n(60815),n(19044),n(4648),n(72079),n(11249)},12036:(t,e,n)=>{n(77922),n(67916),n(54401),n(55569),n(26979),n(77183),n(56564),n(72948),n(82470),n(64054),n(61875),n(21335),n(67446),n(23043),n(46580),n(31498),n(98523),n(17670),n(95462),n(31044),n(38121),n(75527),n(49103),n(95230),n(31245),n(64366),n(16575),n(97903),n(54918),n(98366),n(64850),n(15086),n(90931),n(64781),n(62702),n(31815),n(66743),n(14145),n(21519),n(48589),n(46419),n(2586),n(56134),n(82420),n(19202),n(22822),n(5626),n(68150),n(31607),n(34799),n(57432),n(54964),n(13432),n(58114),n(23897),n(13598),n(27821),n(73082),n(84602),n(27827),n(8076),n(68920),n(15620),n(25617),n(67015),n(75481),n(32900),n(81395),n(70766),n(60151),n(41709),n(44217),n(96843),n(39058),n(42548),n(31462),n(41805),n(852),n(2005),n(37517),n(63045),n(97217),n(96433),n(31185),n(57658),n(23541),n(96367),n(75651),n(54358),n(32450),n(35824),n(76979),n(79691),n(23140),n(52221),n(64303),n(74809),n(94062),n(23584),n(53859),n(59062),n(89660),n(92120),n(75546),n(39073),n(25319),n(5918),n(30427),n(74843),n(23707),n(73224),n(8697),n(66087),n(9438),n(65557),n(55958),n(47295),n(44146),n(41351),n(26024),n(36914),n(17141),n(80117),n(53011),n(38236),n(97737),n(79175),n(39239),n(47472),n(51874),n(9288),n(53409),n(48609),n(3762),n(49139),n(96695),n(13311),n(80570),t.exports=n(74479)},28904:(t,e,n)=>{n(10992),t.exports=n(74479).Array.flatMap},84246:(t,e,n)=>
vendor: 10,388 bytes, line 2
2{n(55749),t.exports=n(74479).Array.includes},19044:(t,e,n)=>{n(39231),t.exports=n(74479).Object.entries},15307:(t,e,n)=>{n(69432),t.exports=n(74479).Object.getOwnPropertyDescriptors},60815:(t,e,n)=>{n(67477),t.exports=n(74479).Object.values},4648:(t,e,n)=>{n(74843),n(47361),t.exports=n(74479).Promise.finally},34835:(t,e,n)=>{n(44444),t.exports=n(74479).String.padEnd},76345:(t,e,n)=>{n(94556),t.exports=n(74479).String.padStart},87892:(t,e,n)=>{n(55425),t.exports=n(74479).String.trimRight},47654:(t,e,n)=>{n(85139),t.exports=n(74479).String.trimLeft},76906:(t,e,n)=>{n(58901),t.exports=n(89332).f("asyncIterator")},4370:(t,e,n)=>{n(21410),t.exports=n(74352).global},58344:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},25026:(t,e,n)=>{var i=n(72265);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},74352:t=>{var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},23561:(t,e,n)=>{var i=n(58344);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},2412:(t,e,n)=>{t.exports=!n(39453)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},30987:(t,e,n)=>{var i=n(72265),r=n(47221).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},5964:(t,e,n)=>{var i=n(47221),r=n(74352),o=n(23561),a=n(72019),s=n(44597),l="prototype",c=function t(e,n,c){var u,d,h,p=e&t.F,f=e&t.G,m=e&t.S,g=e&t.P,v=e&t.B,y=e&t.W,b=f?r:r[n]||(r[n]={}),_=b[l],w=f?i:m?i[n]:(i[n]||{})[l];for(u in f&&(c=n),c)(d=!p&&w&&void 0!==w[u])&&s(b,u)||(h=d?w[u]:c[u],b[u]=f&&"function"!=typeof w[u]?c[u]:v&&d?o(h,i):y&&w[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[l]=t[l],e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((b.virtual||(b.virtual={}))[u]=h,e&t.R&&_&&!_[u]&&a(_,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},39453:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},47221:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},44597:t=>{var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},72019:(t,e,n)=>{var i=n(95080),r=n(69169);t.exports=n(2412)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},88447:(t,e,n)=>{t.exports=!n(2412)&&!n(39453)((function(){return 7!=Object.defineProperty(n(30987)("div"),"a",{get:function(){return 7}}).a}))},72265:t=>{function e(t){return e="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},e(t)}t.exports=function(t){return"object"===e(t)?null!==t:"function"==typeof t}},95080:(t,e,n)=>{var i=n(25026),r=n(88447),o=n(87242),a=Object.defineProperty;e.f=n(2412)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},69169:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},87242:(t,e,n)=>{var i=n(72265);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},21410:(t,e,n)=>{var i=n(5964);i(i.G,{global:n(47221)})},46845:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},44998:(t,e,n)=>{var i=n(24011);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},77555:(t,e,n)=>{var i=n(64430)("unscopables"),r=Array.prototype;null==r[i]&&n(305)(r,i,{}),t.exports=function(t){r[i][t]=!0}},80218:(t,e,n)=>{var i=n(34074)(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},83977:t=>{t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},80539:(t,e,n)=>{var i=n(21601);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},24588:(t,e,n)=>{var i=n(61833),r=n(8208),o=n(74634);t.exports=[].copyWithin||function(t,e){var n=i(this),a=o(n.length),s=r(t,a),l=r(e,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-l,a-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},41215:(t,e,n)=>{var i=n(61833),r=n(8208),o=n(74634);t.exports=function(t){for(var e=i(this),n=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)e[s++]=t;return e}},26692:(t,e,n)=>{var i=n(63566),r=n(74634),o=n(8208);t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},1318:(t,e,n)=>{var i=n(30443),r=n(94485),o=n(61833),a=n(74634),s=n(51870);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,h=5==t||d,p=e||s;return function(e,s,f){for(var m,g,v=o(e),y=r(v),b=i(s,f,3),_=a(y.length),w=0,T=n?p(e,_):l?p(e,0):void 0;_>w;w++)if((h||w in y)&&(g=b(m=y[w],w,v),t))if(n)T[w]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:T.push(m)}else if(u)return!1;return d?-1:c||u?u:T}}},95827:(t,e,n)=>{var i=n(46845),r=n(61833),o=n(94485),a=n(74634);t.exports=function(t,e,n,s,l){i(e);var c=r(t),u=o(c),d=a(c.length),h=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(h in u){s=u[h],h+=p;break}if(h+=p,l?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;l?h>=0:d>h;h+=p)h in u&&(s=e(s,u[h],h,c));return s}},54646:(t,e,n)=>{var i=n(21601),r=n(57243),o=n(64430)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},51870:(t,e,n)=>{var i=n(54646);t.exports=function(t,e){return new(i(t))(e)}},88936:(t,e,n)=>{var i=n(46845),r=n(21601),o=n(22394),a=[].slice,s={};t.exports=Function.bind||function(t){var e=i(this),n=a.call(arguments,1),l=function i(){var r=n.concat(a.call(arguments));return this instanceof i?function(t,e,n){if(!(e in s)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)}(e,r.length,r):o(e,r,t)};return r(e.prototype)&&(l.prototype=e.prototype),l}},27138:(t,e,n)=>{var i=n(24011),r=n(64430)("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},24011:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},8495:(t,e,n)=>{var i=n(29530).f,r=n(28405),o=n(49541),a=n(30443),s=n(83977),l=n(12939),c=n(16511),u=n(63060),d=n(52124),h=n(67986),p=n(28130).fastKey,f=n(92913),m=h?"_s":"size",g=function(t,e){var n,i=p(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,i){s(t,u,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[m]=0,null!=i&&l(i,n,t[c],t)}));return o(u.prototype,{clear:function(){for(var t=f(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=f(this,e),i=g(n,t);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[m]--}return!!i},forEach:function(t){f(this,e);for(var n,i=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(f(this,e),t)}}),h&&i(u.prototype,"size",{get:function(){return f(this,e)[m]}}),u},def:function(t,e,n){var i,r,o=g(t,e);return o?o.v=n:(t._l=o={i:r=p(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[m]++,"F"!==r&&(t._i[r]=o)),t},getEntry:g,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=f(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?u(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},18985:(t,e,n)=>{var i=n(49541),r=n(28130).getWeak,o=n(80539),a=n(21601),s=n(83977),l=n(12939),c=n(1318),u=n(42002),d=n(92913),h=c(5),p=c(6),f=0,m=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},v=function(t,e){return h(t.a,(function(t){return t[0]===e}))};g.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t((function(t,i){s(t,c,e,"_i"),t._t=e,t._i=f++,t._l=void 0,null!=i&&l(i,n,t[o],t)}));return i(c.prototype,{delete:function(t){if(!a(t))return!1;var n=r(t);return!0===n?m(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=r(t);return!0===n?m(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var i=r(o(e),!0);return!0===i?m(t).set(e,n):i[t._i]=n,t},ufstore:m}},45155:(t,e,n)=>{var i=n(12004),r=n(28315),o=n(70320),a=n(49541),s=n(28130),l=n(12939),c=n(83977),u=n(21601),d=n(97654),h=n(75645),p=n(15606),f=n(40990);t.exports=function(t,e,n,m,g,v){var y=i[t],b=y,_=g?"set":"add",w=b&&b.prototype,T={},S=function(t){var e=w[t];o(w,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};
vendor: 4,126 bytes, line 2
2if("function"==typeof b&&(v||w.forEach&&!d((function(){(new b).entries().next()})))){var C=new b,k=C[_](v?{}:-0,1)!=C,x=d((function(){C.has(1)})),E=h((function(t){new b(t)})),$=!v&&d((function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)}));E||((b=e((function(e,n){c(e,b,t);var i=f(new y,e,b);return null!=n&&l(n,g,i[_],i),i}))).prototype=w,w.constructor=b),(x||$)&&(S("delete"),S("has"),g&&S("get")),($||k)&&S(_),v&&w.clear&&delete w.clear}else b=m.getConstructor(e,t,g,_),a(b.prototype,n),s.NEED=!0;return p(b,t),T[t]=b,r(r.G+r.W+r.F*(b!=y),T),v||m.setStrong(b,t,g),b}},74479:t=>{var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},59330:(t,e,n)=>{var i=n(29530),r=n(30351);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},30443:(t,e,n)=>{var i=n(46845);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},1961:(t,e,n)=>{var i=n(97654),r=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!i((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),i=e<0?"-":e>9999?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},89090:(t,e,n)=>{var i=n(80539),r=n(11467),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return r(i(this),t!=o)}},66934:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},67986:(t,e,n)=>{t.exports=!n(97654)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},68673:(t,e,n)=>{var i=n(21601),r=n(12004).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},20019:t=>{t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},64443:(t,e,n)=>{var i=n(85794),r=n(1604),o=n(13654);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,c=0;s.length>c;)l.call(t,a=s[c++])&&e.push(a);return e}},28315:(t,e,n)=>{var i=n(12004),r=n(74479),o=n(305),a=n(70320),s=n(30443),l="prototype",c=function t(e,n,c){var u,d,h,p,f=e&t.F,m=e&t.G,g=e&t.P,v=e&t.B,y=m?i:e&t.S?i[n]||(i[n]={}):(i[n]||{})[l],b=m?r:r[n]||(r[n]={}),_=b[l]||(b[l]={});for(u in m&&(c=n),c)h=((d=!f&&y&&void 0!==y[u])?y:c)[u],p=v&&d?s(h,i):g&&"function"==typeof h?s(Function.call,h):h,y&&a(y,u,h,e&t.U),b[u]!=h&&o(b,u,p),g&&_[u]!=h&&(_[u]=h)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},55643:(t,e,n)=>{var i=n(64430)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},97654:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},41853:(t,e,n)=>{n(89660);var i=n(70320),r=n(305),o=n(97654),a=n(66934),s=n(64430),l=n(65860),c=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=s(t),p=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=p?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e})):void 0;if(!p||!f||"replace"===t&&!u||"split"===t&&!d){var m=/./[h],g=n(a,h,""[t],(function(t,e,n,i,r){return e.exec===l?p&&!r?{done:!0,value:m.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),v=g[0],y=g[1];i(String.prototype,t,v),r(RegExp.prototype,h,2==e?function(t,e){return y.c
vendor: 4,048 bytes, line 2
2all(t,this,e)}:function(t){return y.call(t,this)})}}},67940:(t,e,n)=>{var i=n(80539);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},27094:(t,e,n)=>{var i=n(57243),r=n(21601),o=n(74634),a=n(30443),s=n(64430)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,h,p){for(var f,m,g=u,v=0,y=!!h&&a(h,p,3);v<c;){if(v in l){if(f=y?y(l[v],v,n):l[v],m=!1,r(f)&&(m=void 0!==(m=f[s])?!!m:i(f)),m&&d>0)g=t(e,n,f,o(f.length),g,d-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=f}g++}v++}return g}},12939:(t,e,n)=>{var i=n(30443),r=n(82533),o=n(41552),a=n(80539),s=n(74634),l=n(8506),c={},u={},d=t.exports=function(t,e,n,d,h){var p,f,m,g,v=h?function(){return t}:l(t),y=i(n,d,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(p=s(t.length);p>b;b++)if((g=e?y(a(f=t[b])[0],f[1]):y(t[b]))===c||g===u)return g}else for(m=v.call(t);!(f=m.next()).done;)if((g=r(m,y,f.value,e))===c||g===u)return g};d.BREAK=c,d.RETURN=u},5818:(t,e,n)=>{t.exports=n(91484)("native-function-to-string",Function.toString)},12004:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},42002:t=>{var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},305:(t,e,n)=>{var i=n(29530),r=n(30351);t.exports=n(67986)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},31376:(t,e,n)=>{var i=n(12004).document;t.exports=i&&i.documentElement},42497:(t,e,n)=>{t.exports=!n(67986)&&!n(97654)((function(){return 7!=Object.defineProperty(n(68673)("div"),"a",{get:function(){return 7}}).a}))},40990:(t,e,n)=>{var i=n(21601),r=n(62130).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},22394:t=>{t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},94485:(t,e,n)=>{var i=n(24011);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},41552:(t,e,n)=>{var i=n(7882),r=n(64430)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},57243:(t,e,n)=>{var i=n(24011);t.exports=Array.isArray||function(t){return"Array"==i(t)}},51486:(t,e,n)=>{var i=n(21601),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},21601:t=>{function e(t){return e="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},e(t)}t.exports=function(t){return"object"===e(t)?null!==t:"function"==typeof t}},47116:(t,e,n)=>{var i=n(21601),r=n(24011),o=n(64430)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},82533:(t,e,n)=>{var i=n(80539);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},77776:(t,e,n)=>{var i=n(28405),r=n(30351),o=n(15606),a={};n(305)(a,n(64430)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},16511:(t,e,n)=>{var i=n(51865),r=n(28315),o=n(70320),a=n(305),s=n(7882),l=n(77776),c=n(15606),u=n(54070),d=n(64430)("iterator"),h=!([].keys&&"next"in[].keys()),p="keys",f="values",m=function(){return this};t.exports=function(t,e,n,g,v,y,b){l(n,e,g);var _,w,T,S=function(t){if(!h&&t in E)return E[t];switch(t){case p:case f:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",k=v==f,x=!1,E=t.prototype,$=E[d]||E["@@iterator"]||v&&E[v],I=$||S(v),O=v?k?S("entr
2ies"):I:void 0,A="Array"==e&&E.entries||$;if(A&&(T=u(A.call(new t)))!==Object.prototype&&T.next&&(c(T,C,!0),i||"function"==typeof T[d]||a(T,d,m)),k&&$&&$.name!==f&&(x=!0,I=function(){return $.call(this)}),i&&!b||!h&&!x&&E[d]||a(E,d,I),s[e]=I,s[C]=m,v)if(_={values:k?I:S(f),keys:y?I:S(p),entries:O},b)for(w in _)w in E||o(E,w,_[w]);else r(r.P+r.F*(h||x),e,_);return _}},75645:(t,e,n)=>{var i=n(64430)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},63060:t=>{t.exports=function(t,e){return{value:e,done:!!t}}},7882:t=>{t.exports={}},51865:t=>{t.exports=!1},36560:t=>{var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},86320:(t,e,n)=>{var i=n(54239),r=Math.pow,o=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),l=r(2,-126);t.exports=Math.fround||function(t){var e,n,r=Math.abs(t),c=i(t);return r<l?c*(r/l/a+1/o-1/o)*l*a:(n=(e=(1+a/o)*r)-(e-r))>s||n!=n?c*(1/0):c*n}},3637:t=>{t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},54239:t=>{t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},28130:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(80327)("meta"),o=n(21601),a=n(42002),s=n(29530).f,l=0,c=Object.isExtensible||function(){return!0},u=!n(97654)((function(){return c(Object.preventExtensions({}))})),d=function(t){s(t,r,{value:{i:"O"+ ++l,w:{}}})},h=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==i(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!c(t))return"F";if(!e)return"E";d(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!c(t))return!0;if(!e)return!1;d(t)}return t[r].w},onFreeze:function(t){return u&&h.NEED&&c(t)&&!a(t,r)&&d(t),t}}},45646:(t,e,n)=>{var i=n(12004),r=n(4803).set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n(24011)(a);t.exports=function(){var t,e,n,c=function(){var i,r;for(l&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(i,c)};else{var d=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},11959:(t,e,n)=>{var i=n(46845);function r(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)}t.exports.f=function(t){return new r(t)}},36553:(t,e,n)=>{var i=n(67986),r=n(85794),o=n(1604),a=n(13654),s=n(61833),l=n(94485),c=Object.assign;t.exports=!c||n(97654)((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=o.f,h=a.f;c>u;)for(var p,f=l(arguments[u++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],i&&!h.call(f,p)||(n[p]=f[p]);return n}:c},28405:(t,e,n)=>{var i=n(80539),r=n(27962),o=n(20019),a=n(5743)("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=n(68673)("iframe"),i=o.length;for(e.style.display="none",n(31376).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c[l][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},29530:(t,e,n)=>{var i=n(80539),r=n(42497),o=n(11467),a=Object.defineProperty;e.f=n(67986)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},27962:(t,e,n)=>{var i=n(29530),r=n(80539),o=n(85794);t.exports=n(67986)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},83949:(t,e,n)=>{var i=n(13654),r=n(30351),o=n(63566),a=n(11467),s=n(42002),l=n(42497),c=Object.getOwnPropertyDescriptor;e.f=n(67986)?c:function(t,e){if(t=o(t),e=a(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},59948:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(63566),o=n(77164).f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":i(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(r(t))}},77164:(t,e,n)=>{var i=n(95687),r=n(20019).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},1604:(t,e)=>{e.f=Object.getOwnPropertySymbols},54070:(t,e,n)=>{var i=n(42002),r=n(61833),o=n(5743)("IE_PROTO"),a=Object.prototype;
vendor: 28,515 bytes, line 2
2t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},95687:(t,e,n)=>{var i=n(42002),r=n(63566),o=n(26692)(!1),a=n(5743)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},85794:(t,e,n)=>{var i=n(95687),r=n(20019);t.exports=Object.keys||function(t){return i(t,r)}},13654:(t,e)=>{e.f={}.propertyIsEnumerable},31102:(t,e,n)=>{var i=n(28315),r=n(74479),o=n(97654);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},27228:(t,e,n)=>{var i=n(67986),r=n(85794),o=n(63566),a=n(13654).f;t.exports=function(t){return function(e){for(var n,s=o(e),l=r(s),c=l.length,u=0,d=[];c>u;)n=l[u++],i&&!a.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},56732:(t,e,n)=>{var i=n(77164),r=n(1604),o=n(80539),a=n(12004).Reflect;t.exports=a&&a.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},97293:(t,e,n)=>{var i=n(12004).parseFloat,r=n(18471).trim;t.exports=1/i(n(9030)+"-0")!=-1/0?function(t){var e=r(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},18927:(t,e,n)=>{var i=n(12004).parseInt,r=n(18471).trim,o=n(9030),a=/^[-+]?0[xX]/;t.exports=8!==i(o+"08")||22!==i(o+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(a.test(n)?16:10))}:i},34510:t=>{t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},72545:(t,e,n)=>{var i=n(80539),r=n(21601),o=n(11959);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},30351:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},49541:(t,e,n)=>{var i=n(70320);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},70320:(t,e,n)=>{var i=n(12004),r=n(305),o=n(42002),a=n(80327)("src"),s=n(5818),l="toString",c=(""+s).split(l);n(74479).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},64110:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(27138),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!==i(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},65860:(t,e,n)=>{var i,r,o=n(67940),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c="lastIndex",u=(i=/a/,r=/b*/g,a.call(i,"a"),a.call(r,"a"),0!==i[c]||0!==r[c]),d=void 0!==/()??/.exec("")[1];(u||d)&&(l=function(t){var e,n,i,r,l=this;return d&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),u&&(e=l[c]),i=a.call(l,t),u&&i&&(l[c]=l.global?i.index+i[0].length:e),d&&i&&i.length>1&&s.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),t.exports=l},88404:t=>{t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},62130:(t,e,n)=>{var i=n(21601),r=n(80539),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=n(30443)(Function.call,n(83949).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},52124:(t,e,n)=>{var i=n(12004),r=n(29530),o=n(67986),a=n(64430)("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},15606:(t,e,n)=>{var i=n(29530).f,r=n(42002),o=n(64430)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},5743:(t,e,n)=>{var i=n(91484)("keys"),r=n(80327);t.exports=function(t){return i[t]||(i[t]=r(t))}},91484:(t,e,n)=>{var i=n(74479),r=n(12004),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(51865)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},9935:(t,e,n)=>{var i=n(80539),r=n(46845),o=n(64430)("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||null==(n=i(a)[o])?e:r(n)}},70004:(t,e,n)=>{var i=n(97654);t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},34074:(t,e,n)=>{var i=n(5419),r=n(66934);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},69618:(t,e,n)=>{var i=n(47116),r=n(66934);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},18724:(t,e,n)=>{var i=n(28315),r=n(97654),o=n(66934),a=/"/g,s=function(t,e,n,i){var r=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(i).replace(a,""")+'"'),s+">"+r+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),i(i.P+i.F*r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},72292:(t,e,n)=>{var i=n(74634),r=n(78077),o=n(66934);t.exports=function(t,e,n,a){var s=String(o(t)),l=s.length,c=void 0===n?" ":String(n),u=i(e);if(u<=l||""==c)return s;var d=u-l,h=r.call(c,Math.ceil(d/c.length));return h.length>d&&(h=h.slice(0,d)),a?h+s:s+h}},78077:(t,e,n)=>{var i=n(5419),r=n(66934);t.exports=function(t){var e=String(r(this)),n="",o=i(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},18471:(t,e,n)=>{var i=n(28315),r=n(66934),o=n(97654),a=n(9030),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var r={},s=o((function(){return!!a[t]()||"\u200b\x85"!="\u200b\x85"[t]()})),l=r[t]=s?e(d):a[t];n&&(r[n]=l),i(i.P+i.F*s,"String",r)},d=u.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},9030:t=>{t.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},4803:(t,e,n)=>{var i,r,o,a=n(30443),s=n(22394),l=n(31376),c=n(68673),u=n(12004),d=u.process,h=u.setImmediate,p=u.clearImmediate,f=u.MessageChannel,m=u.Dispatch,g=0,v={},y="onreadystatechange",b=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},_=function(t){b.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},i(g),g},p=function(t){delete v[t]},"process"==n(24011)(d)?i=function(t){d.nextTick(a(b,t,1))}:m&&m.now?i=function(t){m.now(a(b,t,1))}:f?(o=(r=new f).port2,r.port1.onmessage=_,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):i=y in c("script")?function(t){l.appendChild(c("script"))[y]=function(){l.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:h,clear:p}},8208:(t,e,n)=>{var i=n(5419),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},14363:(t,e,n)=>{var i=n(5419),r=n(74634);t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},5419:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},63566:(t,e,n)=>{var i=n(94485),r=n(66934);t.exports=function(t){return i(r(t))}},74634:(t,e,n)=>{var i=n(5419),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},61833:(t,e,n)=>{var i=n(66934);t.exports=function(t){return Object(i(t))}},11467:(t,e,n)=>{var i=n(21601);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},89114:(t,e,n)=>{function i(t){return i="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},i(t)}if(n(67986)){var r=n(51865),o=n(12004),a=n(97654),s=n(28315),l=n(76609),c=n(8951),u=n(30443),d=n(83977),h=n(30351),p=n(305),f=n(49541),m=n(5419),g=n(74634),v=n(14363),y=n(8208),b=n(11467),_=n(42002),w=n(27138),T=n(21601),S=n(61833),C=n(41552),k=n(28405),x=n(54070),E=n(77164).f,$=n(8506),I=n(80327),O=n(64430),A=n(1318),P=n(26692),D=n(9935),L=n(53859),M=n(7882),N=n(75645),j=n(52124),U=n(41215),R=n(24588),B=n(29530),F=n(83949),z=B.f,H=F.f,q=o.RangeError,V=o.TypeError,W=o.Uint8Array,G="ArrayBuffer",X="Shared"+G,Y="BYTES_PER_ELEMENT",K="prototype",Q=Array[K],J=c.ArrayBuffer,Z=c.DataView,tt=A(0),et=A(2),nt=A(3),it=A(4),rt=A(5),ot=A(6),at=P(!0),st=P(!1),lt=L.values,ct=L.keys,ut=L.entries,dt=Q.lastIndexOf,ht=Q.reduce,pt=Q.reduceRight,ft=Q.join,mt=Q.sort,gt=Q.slice,vt=Q.toString,yt=Q.toLocaleString,bt=O("iterator"),_t=O("toStringTag"),wt=I("typed_constructor"),Tt=I("def_constructor"),St=l.CONSTR,Ct=l.TYPED,kt=l.VIEW,xt="Wrong length!",Et=A(1,(function(t,e){return Pt(D(t,t[Tt]),e)})),$t=a((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),It=!!W&&!!W[K].set&&a((function(){new W(1).set({})})),Ot=function(t,e){var n=m(t);if(n<0||n%e)throw q("Wrong offset!");return n},At=function(t){if(T(t)&&Ct in t)return t;throw V(t+" is not a typed array!")},Pt=function(t,e){if(!T(t)||!(wt in t))throw V("It is not a typed array constructor!");return new t(e)},Dt=function(t,e){return Lt(D(t,t[Tt]),e)},Lt=function(t,e){for(var n=0,i=e.length,r=Pt(t,i);i>n;)r[n]=e[n++];return r},Mt=function(t,e,n){z(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,r,o,a,s=S(t),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,h=$(s);if(null!=h&&!C(h)){for(a=h.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(d&&l>2&&(c=u(c,arguments[2],2)),e=0,n=g(s.length),r=Pt(this,n);n>e;e++)r[e]=d?c(s[e],e):s[e];return r},jt=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},Ut=!!W&&a((function(){yt.call(new W(1))})),Rt=function(){return yt.apply(Ut?gt.call(At(this)):At(this),arguments)},Bt={copyWithin:function(t,e){return R.call(At(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(At(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return U.apply(At(this),arguments)},filter:function(t){return Dt(this,et(At(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(At(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(At(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){tt(At(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(At(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return at(At(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(At(this),arguments)},lastIndexOf:function(t){return dt.apply(At(this),arguments)},map:function(t){return Et(At(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(At(this),arguments)},reduceRight:function(t){return pt.apply(At(this),arguments)},reverse:function(){for(var t,e=this,n=At(e).length,i=Math.floor(n/2),r=0;r<i;)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return nt(At(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return mt.call(At(this),t)},subarray:function(t,e){var n=At(this),i=n.length,r=y(t,i);return new(D(n,n[Tt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((void 0===e?i:y(e,i))-r))}},Ft=function(t,e){return Dt(this,gt.call(At(this),t,e))},zt=function(t){At(this);var e=Ot(arguments[1],1),n=this.length,i=S(t),r=g(i.length),o=0;if(r+e>n)throw q(xt);for(;o<r;)this[e+o]=i[o++]},Ht={entries:function(){return ut.call(At(this))},keys:function(){return ct.call(At(this))},values:function(){return lt.call(At(this))}},qt=function(t,e){return T(t)&&t[Ct]&&"symbol"!=i(e)&&e in t&&String(+e)==String(e)},Vt=function(t,e){return qt(t,e=b(e,!0))?h(2,t[e]):H(t,e)},Wt=function(t,e,n){return!(qt(t,e=b(e,!0))&&T(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?z(t,e,n):(t[e]=n.value,t)};St||(F.f=Vt,B.f=Wt),s(s.S+s.F*!St,"Object",{getOwnPropertyDescriptor:Vt,defineProperty:Wt}),a((function(){vt.call({})}))&&(vt=yt=function(){return ft.call(this)});var Gt=f({},Bt);f(Gt,Ht),p(Gt,bt,Ht.values),f(Gt,{slice:Ft,set:zt,constructor:function(){},toString:vt,toLocaleString:Rt}),Mt(Gt,"buffer","b"),Mt(Gt,"byteOffset","o"),Mt(Gt,"byteLength","l"),Mt(Gt,"length","e"),z(Gt,_t,{get:function(){return this[Ct]}}),t.exports=function(t,e,n,i){var c=t+((i=!!i)?"Clamped":"")+"Array",u="get"+t,h="set"+t,f=o[c],m=f||{},y=f&&x(f),b=!f||!l.ABV,_={},S=f&&f[K],C=function(t,n){z(t,n,{get:function(){return function(t,n){var i=t._d;return i.v[u](n*e+i.o,$t)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;i&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[h](n*e+o.o,r,$t)}(this,n,t)},enumerable:!0})};b?(f=n((function(t,n,i,r){d(t,f,c,"_d");var o,a,s,l,u=0,h=0;if(T(n)){if(!(n instanceof J||(l=w(n))==G||l==X))return Ct in n?Lt(f,n):Nt.call(f,n);o=n,h=Ot(i,e);var m=n.byteLength;if(void 0===r){if(m%e)throw q(xt);if((a=m-h)<0)throw q(xt)}else if((a=g(r)*e)+h>m)throw q(xt);s=a/e}else s=v(n),o=new J(a=s*e);for(p(t,"_d",{b:o,o:h,l:a,e:s,v:new Z(o)});u<s;)C(t,u++)})),S=f[K]=k(Gt),p(S,"constructor",f)):a((function(){f(1)}))&&a((function(){new f(-1)}))&&N((function(t){new f,new f(null),new f(1.5),new f(t)}),!0)||(f=n((function(t,n,i,r){var o;return d(t,f,c),T(n)?n instanceof J||(o=w(n))==G||o==X?void 0!==r?new m(n,Ot(i,e),r):void 0!==i?new m(n,Ot(i,e)):new m(n):Ct in n?Lt(f,n):Nt.call(f,n):new m(v(n))})),tt(y!==Function.prototype?E(m).concat(E(y)):E(m),(function(t){t in f||p(f,t,m[t])})),f[K]=S,r||(S.constructor=f));var $=S[bt],I=!!$&&("values"==$.name||null==$.name),O=Ht.values;p(f,wt,!0),p(S,Ct,c),p(S,kt,!0),p(S,Tt,f),(i?new f(1)[_t]==c:_t in S)||z(S,_t,{get:function(){return c}}),_[c]=f,s(s.G+s.W+s.F*(f!=m),_),s(s.S,c,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*a((function(){m.of.call(f,1)})),c,{from:Nt,of:jt}),Y in S||p(S,Y,e),s(s.P,c,Bt),j(c),s(s.P+s.F*It,c,{set:zt}),s(s.P+s.F*!I,c,Ht),r||S.toString==vt||(S.toString=vt),s(s.P+s.F*a((function(){new f(1).slice()})),c,{slice:Ft}),s(s.P+s.F*(a((function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Rt}),M[c]=I?$:O,r||I||p(S,bt,O)}}else t.exports=function(){}},8951:(t,e,n)=>{var i=n(12004),r=n(67986),o=n(51865),a=n(76609),s=n(305),l=n(49541),c=n(97654),u=n(83977),d=n(5419),h=n(74634),p=n(14363),f=n(77164).f,m=n(29530).f,g=n(41215),v=n(15606),y="ArrayBuffer",b="DataView",_="prototype",w="Wrong index!",T=i[y],S=i[b],C=i.Math,k=i.RangeError,x=i.Infinity,E=T,$=C.abs,I=C.pow,O=C.floor,A=C.log,P=C.LN2,D="buffer",L="byteLength",M="byteOffset",N=r?"_b":D,j=r?"_l":L,U=r?"_o":M;function R(t,e,n){var i,r,o,a=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?I(2,-24)-I(2,-77):0,d=0,h=t<0||0===t&&1/t<0?1:0;for((t=$(t))!=t||t===x?(r=t!=t?1:0,i=l):(i=O(A(t)/P),t*(o=I(2,-i))<1&&(i--,o*=2),(t+=i+c>=1?u/o:u*I(2,1-c))*o>=2&&(i++,o/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(t*o-1)*I(2,e),i+=c):(r=t*I(2,c-1)*I(2,e),i=0));e>=8;a[d++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;a[d++]=255&i,i/=256,s-=8);return a[--d]|=128*h,a}function B(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,a=o>>1,s=r-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return i?NaN:c?-x:x;i+=I(2,e),u-=a}return(c?-1:1)*i*I(2,u-e)}function F(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function H(t){return[255&t,t>>8&255]}function q(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return R(t,52,8)}function W(t){return R(t,23,4)}function G(t,e,n){m(t[_],e,{get:function(){return this[n]}})}function X(t,e,n,i){var r=p(+n);if(r+e>t[j])throw k(w);var o=t[N]._b,a=r+t[U],s=o.slice(a,a+e);return i?s:s.reverse()}function Y(t,e,n,i,r,o){var a=p(+n);if(a+e>t[j])throw k(w);for(var s=t[N]._b,l=a+t[U],c=i(+r),u=0;u<e;u++)s[l+u]=c[o?u:e-u-1]}if(a.ABV){if(!c((function(){T(1)}))||!c((function(){new T(-1)}))||c((function(){return new T,new T(1.5),new T(NaN),T.name!=y}))){for(var K,Q=(T=function(t){return u(this,T),new E(p(t))})[_]=E[_],J=f(E),Z=0;J.length>Z;)(K=J[Z++])in T||s(T,K,E[K]);o||(Q.constructor=T)}var tt=new S(new T(2)),et=S[_].setInt8;tt.setInt8(0,2147483648),tt.setInt8(1,2147483649),!tt.getInt8(0)&&tt.getInt8(1)||l(S[_],{setInt8:function(t,e){et.call(this,t,e<<24>>24)},setUint8:function(t,e){et.call(this,t,e<<24>>24)}},!0)}else T=function(t){u(this,T,y);var e=p(t);this._b=g.call(new Array(e),0),this[j]=e},S=function(t,e,n){u(this,S,b),u(t,T,b);var i=t[j],r=d(e);if(r<0||r>i)throw k("Wrong offset!");if(r+(n=void 0===n?i-r:h(n))>i)throw k("Wrong length!");this[N]=t,this[U]=r,this[j]=n},r&&(G(T,L,"_l"),G(S,D,"_b"),G(S,L,"_l"),G(S,M,"_o")),l(S[_],{getInt8:function(t){return X(this,1,t)[0]<<24>>24},getUint8:function(t){return X(this,1,t)[0]},getInt16:function(t){var e=X(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=X(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return F(X(this,4,t,arguments[1]))},getUint32:function(t){return F(X(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return B(X(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return B(X(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){Y(this,1,t,z,e)},setUint8:function(t,e){Y(this,1,t,z,e)},setInt16:function(t,e){Y(this,2,t,H,e,arguments[2])},setUint16:function(t,e){Y(this,2,t,H,e,arguments[2])},setInt32:function(t,e){Y(this,4,t,q,e,arguments[2])},setUint32:function(t,e){Y(this,4,t,q,e,arguments[2])},setFloat32:function(t,e){Y(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){Y(this,8,t,V,e,arguments[2])}});v(T,y),v(S,b),s(S[_],a.VIEW,!0),e[y]=T,e[b]=S},76609:(t,e,n)=>{for(var i,r=n(12004),o=n(305),a=n(80327),s=a("typed_array"),l=a("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,d=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(i=r[h[d++]])?(o(i.prototype,s,!0),o(i.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},80327:t=>{var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},69282:(t,e,n)=>{var i=n(12004).navigator;t.exports=i&&i.userAgent||""},92913:(t,e,n)=>{var i=n(21601);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},88763:(t,e,n)=>{var i=n(12004),r=n(74479),o=n(51865),a=n(89332),s=n(29530).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},89332:(t,e,n)=>{e.f=n(64430)},64430:(t,e,n)=>{var i=n(91484)("wks"),r=n(80327),o=n(12004).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},8506:(t,e,n)=>{var i=n(27138),r=n(64430)("iterator"),o=n(7882);t.exports=n(74479).getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},52221:(t,e,n)=>{var i=n(28315);i(i.P,"Array",{copyWithin:n(24588)}),n(77555)("copyWithin")},32450:(t,e,n)=>{var i=n(28315),r=n(1318)(4);i(i.P+i.F*!n(70004)([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},64303:(t,e,n)=>{var i=n(28315);i(i.P,"Array",{fill:n(41215)}),n(77555)("fill")},75651:(t,e,n)=>{var i=n(28315),r=n(1318)(2);i(i.P+i.F*!n(70004)([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},94062:(t,e,n)=>{var i=n(28315),r=n(1318)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),i(i.P+i.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(77555)(o)},74809:(t,e,n)=>{var i=n(28315),r=n(1318)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),i(i.P+i.F*a,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(77555)(o)},23541:(t,e,n)=>{var i=n(28315),r=n(1318)(0),o=n(70004)([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},63045:(t,e,n)=>{var i=n(30443),r=n(28315),o=n(61833),a=n(82533),s=n(41552),l=n(74634),c=n(59330),u=n(8506);r(r.S+r.F*!n(75645)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,r,d,h=o(t),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(h);if(g&&(m=i(m,f>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(e=l(h.length));e>v;v++)c(n,v,g?m(h[v],v):h[v]);else for(d=y.call(h),n=new p;!(r=d.next()).done;v++)c(n,v,g?a(d,m,[r.value,v],!0):r.value);return n.length=v,n}})},79691:(t,e,n)=>{var i=n(28315),r=n(26692)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!n(70004)(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},37517:(t,e,n)=>{var i=n(28315);i(i.S,"Array",{isArray:n(57243)})},53859:(t,e,n)=>{var i=n(77555),r=n(63060),o=n(7882),a=n(63566);t.exports=n(16511)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},96433:(t,e,n)=>{var i=n(28315),r=n(63566),o=[].join;i(i.P+i.F*(n(94485)!=Object||!n(70004)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},23140:(t,e,n)=>{var i=n(28315),r=n(63566),o=n(5419),a=n(74634),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!n(70004)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=r(this),n=a(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}})},96367:(t,e,n)=>{var i=n(28315),r=n(1318)(1);i(i.P+i.F*!n(70004)([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},97217:(t,e,n)=>{var i=n(28315),r=n(59330);i(i.S+i.F*n(97654)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)r(n,t,arguments[t++]);return n.length=e,n}})},76979:(t,e,n)=>{var i=n(28315),r=n(95827);i(i.P+i.F*!n(70004)([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},35824:(t,e,n)=>{var i=n(28315),r=n(95827);i(i.P+i.F*!n(70004)([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},31185:(t,e,n)=>{var i=n(28315),r=n(31376),o=n(24011),a=n(8208),s=n(74634),l=[].slice;i(i.P+i.F*n(97654)((function(){r&&l.call(r)})),"Array",{slice:function(t,e){var n=s(this.length),i=o(this);if(e=void 0===e?n:e,"Array"==i)return l.call(this,t,e);for(var r=a(t,n),c=a(e,n),u=s(c-r),d=new Array(u),h=0;h<u;h++)d[h]="String"==i?this.charAt(r+h):this[r+h];return d}})},54358:(t,e,n)=>{var i=n(28315),r=n(1318)(3);i(i.P+i.F*!n(70004)([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},57658:(t,e,n)=>{var i=n(28315),r=n(46845),o=n(61833),a=n(97654),s=[].sort,l=[1,2,3];i(i.P+i.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n(70004)(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),r(t))}})},23584:(t,e,n)=>{n(52124)("Array")},42548:(t,e,n)=>{var i=n(28315);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},41805:(t,e,n)=>{var i=n(28315),r=n(1961);i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},31462:(t,e,n)=>{var i=n(28315),r=n(61833),o=n(11467);i(i.P+i.F*n(97654)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=r(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},2005:(t,e,n)=>{var i=n(64430)("toPrimitive"),r=Date.prototype;i in r||n(305)(r,i,n(89090))},852:(t,e,n)=>{var i=Date.prototype,r="Invalid Date",o="toString",a=i[o],s=i.getTime;new Date(NaN)+""!=r&&n(70320)(i,o,(function(){var t=s.call(this);return t==t?a.call(this):r}))},95462:(t,e,n)=>{var i=n(28315);i(i.P,"Function",{bind:n(88936)})},38121:(t,e,n)=>{var i=n(21601),r=n(54070),o=n(64430)("hasInstance"),a=Function.prototype;o in a||n(29530).f(a,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},31044:(t,e,n)=>{var i=n(29530).f,r=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in r||n(67986)&&i(r,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},23707:(t,e,n)=>{var i=n(8495),r=n(92913),o="Map";t.exports=n(45155)(o,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=i.getEntry(r(this,o),t);return e&&e.v},set:function(t,e){return i.def(r(this,o),0===t?0:t,e)}},i,!0)},31815:(t,e,n)=>{var i=n(28315),r=n(3637),o=Math.sqrt,a=Math.acosh;i(i.S+i.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},66743:(t,e,n)=>{var i=n(28315),r=Math.asinh;i(i.S+i.F*!(r&&1/r(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},14145:(t,e,n)=>{var i=n(28315),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},21519:(t,e,n)=>{var i=n(28315),r=n(54239);i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},48589:(t,e,n)=>{var i=n(28315);i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},46419:(t,e,n)=>{var i=n(28315),r=Math.exp;i(i.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},2586:(t,e,n)=>{var i=n(28315),r=n(36560);i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},56134:(t,e,n)=>{var i=n(28315);i(i.S,"Math",{fround:n(86320)})},82420:(t,e,n)=>{var i=n(28315),r=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,o=0,a=0,s=arguments.length,l=0;a<s;)l<(n=r(arguments[a++]))?(o=o*(i=l/n)*i+1,l=n):o+=n>0?(i=n/l)*i:n;return l===1/0?1/0:l*Math.sqrt(o)}})},19202:(t,e,n)=>{var i=n(28315),r=Math.imul;i(i.S+i.F*n(97654)((function(){return-5!=r(4294967295,5)||2!=r.length})),"Math",{imul:function(t,e){var n=65535,i=+t,r=+e,o=n&i,a=n&r;return 0|o*a+((n&i>>>16)*a+o*(n&r>>>16)<<16>>>0)}})},22822:(t,e,n)=>{var i=n(28315);i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},5626:(t,e,n)=>{var i=n(28315);i(i.S,"Math",{log1p:n(3637)})},68150:(t,e,n)=>{var i=n(28315);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},31607:(t,e,n)=>{var i=n(28315);i(i.S,"Math",{sign:n(54239)})},34799:(t,e,n)=>{var i=n(28315),r=n(36560),o=Math.exp;i(i.S+i.F*n(97654)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},57432:(t,e,n)=>{var i=n(28315),r=n(36560),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},54964:(t,e,n)=>{var i=n(28315);i(i.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},95230:(t,e,n)=>{var i=n(12004),r=n(42002),o=n(24011),a=n(40990),s=n(11467),l=n(97654),c=n(77164).f,u=n(83949).f,d=n(29530).f,h=n(18471).trim,p="Number",f=i[p],m=f,g=f.prototype,v=o(n(28405)(g))==p,y="trim"in String.prototype,b=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>
vendor: 5,566 bytes, line 2
22){var n,i,r,o=(e=y?e.trim():h(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var a,l=e.slice(2),c=0,u=l.length;c<u;c++)if((a=l.charCodeAt(c))<48||a>r)return NaN;return parseInt(l,i)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(v?l((function(){g.valueOf.call(n)})):o(n)!=p)?a(new m(b(e)),n,f):b(e)};for(var _,w=n(67986)?c(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;w.length>T;T++)r(m,_=w[T])&&!r(f,_)&&d(f,_,u(m,_));f.prototype=g,g.constructor=f,n(70320)(i,p,f)}},16575:(t,e,n)=>{var i=n(28315);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},97903:(t,e,n)=>{var i=n(28315),r=n(12004).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},54918:(t,e,n)=>{var i=n(28315);i(i.S,"Number",{isInteger:n(51486)})},98366:(t,e,n)=>{var i=n(28315);i(i.S,"Number",{isNaN:function(t){return t!=t}})},64850:(t,e,n)=>{var i=n(28315),r=n(51486),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},15086:(t,e,n)=>{var i=n(28315);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},90931:(t,e,n)=>{var i=n(28315);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},64781:(t,e,n)=>{var i=n(28315),r=n(97293);i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},62702:(t,e,n)=>{var i=n(28315),r=n(18927);i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},31245:(t,e,n)=>{var i=n(28315),r=n(5419),o=n(44998),a=n(78077),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d="0",h=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*c[n],c[n]=i%1e7,i=l(i/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call(d,7-n.length)+n}return e},m=function t(e,n,i){return 0===n?i:n%2==1?t(e,n-1,i*e):t(e*e,n/2,i)};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(97654)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,i,s,l=o(this,u),c=r(t),g="",v=d;if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*m(2,69,1))-69,n=e<0?l*m(2,-e,1):l/m(2,e,1),n*=4503599627370496,(e=52-e)>0){for(h(0,n),i=c;i>=7;)h(1e7,0),i-=7;for(h(m(10,i,1),0),i=e-1;i>=23;)p(1<<23),i-=23;p(1<<i),h(1,1),p(2),v=f()}else h(0,n),h(1<<-e,0),v=f()+a.call(d,c);return c>0?g+((s=v.length)<=c?"0."+a.call(d,c-s)+v:v.slice(0,s-c)+"."+v.slice(s-c)):g+v}})},64366:(t,e,n)=>{var i=n(28315),r=n(97654),o=n(44998),a=1..toPrecision;i(i.P+i.F*(r((function(){return"1"!==a.call(1,void 0)}))||!r((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},46580:(t,e,n)=>{var i=n(28315);i(i.S+i.F,"Object",{assign:n(36553)})},67916:(t,e,n)=>{var i=n(28315);i(i.S,"Object",{create:n(28405)})},55569:(t,e,n)=>{var i=n(28315);i(i.S+i.F*!n(67986),"Object",{defineProperties:n(27962)})},54401:(t,e,n)=>{var i=n(28315);i(i.S+i.F*!n(67986),"Object",{defineProperty:n(29530).f})},82470:(t,e,n)=>{var i=n(21601),r=n(28130).onFreeze;n(31102)("freeze",(function(t){return function(e){return t&&i(e)?t(r(e)):e}}))},26979:(t,e,n)=>{var i=n(63566),r=n(83949).f;n(31102)("getOwnPropertyDescriptor",(function(){return function(t,e){return r(i(t),e)}}))},72948:(t,e,n)=>{n(31102)("getOwnPropertyNames",(function(){return n(59948).f}))},77183:(t,e,n)=>{var i=n(61833),r=n(54070);n(31102)("getPrototypeOf",(function(){return function(t){return r(i(t))}}))},23043:(t,e,n)=>{var i=n(21601);n(31102)("isExtensible",(function(t){return function(e){return!!i(e)&&(!t||t(e))}}))},21335:(t,e,n)=>{var i=n(21601);n(31102)("isFrozen",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},67446:(t,e,n)=>{var i=n(21601);n(31102)("isSealed",(function(t){return function(e){return!i(e)||!!t&&t(e)}}))},31498:(t,e,n)=>{var i=n(28315);i(i.S,"Object",{is:n(88404)})},56564:(t,e,n)=>{var i=n(61833),r=n(85794);n(31102)("keys",(function(){return function(t){return r(i(t))}}))},61875:(t,e,n)=>{var i=n(21601),r=n(28130).onFreeze;n(31102)("preventExtensions",(function(t){return function(e){return t&&i(e)?t(r(e)):e}}))},64054:(t,e,n)=>{var i=n(21601),r=n(28130).onFreeze;n(31102)("seal",(function(t){return function(e){return t&&i(e)?t(r(e)):e}}))},98523:(t,e,n)=>{var i=n(28315);i(i.S,"Object",{setPrototypeOf:n(62130).set})},17670:(t,e,n)=>{var i=n(27138),r={};r[n(64430)("toStringTag")]="z",r+""!="[object z]"&&n(70320)(Object.prototype,"toString",(function(){return"[object "+i(this)+"]"}),!0)},49103:(t,e,n)=>{var i=n(28315),r=n(97293);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},75527:(t,e,n)=>{var i=n(28315),r=n(18927);i(i.G+i.F*(parseInt!=r),{parseInt:r})},74843:(t,e,n)=>{var i,r,o,a,s=n(51865),l=n(12004),c=n(30443),u=n(27138),d=n(28315),h=n(21601),p=n(46845),f=n(83977),m=n(12939),g=n(9935),v=n(4803).set,y=n(45646)(),b=n(11959),_=n(34510),w=n(69282),T=n(72545),S="Promise",C=l.TypeError,k=l.process,x=k&&k.versions,E=x&&x.v8||"",$=l[S],I="process"==u(k),O=function(){}
vendor: 3,977 bytes, line 2
2,A=r=b.f,P=!!function(){try{var t=$.resolve(1),e=(t.constructor={})[n(64430)("species")]=function(t){t(O,O)};return(I||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a,s=r?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(r||(2==t._h&&j(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===e.promise?c(C("Promise-chain cycle")):(o=D(n))?o.call(n,l,c):l(n)):c(i)}catch(t){u&&!a&&u.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)}))}},M=function(t){v.call(l,(function(){var e,n,i,r=t._v,o=N(t);if(o&&(e=_((function(){I?k.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),t._h=I||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){v.call(l,(function(){var e;I?k.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},U=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},R=function t(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw C("Promise can't be resolved itself");(n=D(e))?y((function(){var r={_w:i,_d:!1};try{n.call(e,c(t,r,1),c(U,r,1))}catch(t){U.call(r,t)}})):(i._v=e,i._s=1,L(i,!1))}catch(t){U.call({_w:i,_d:!1},t)}}};P||($=function(t){f(this,$,S,"_h"),p(t),i.call(this);try{t(c(R,this,1),c(U,this,1))}catch(t){U.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(49541)($.prototype,{then:function(t,e){var n=A(g(this,$));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=I?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=c(R,t,1),this.reject=c(U,t,1)},b.f=A=function(t){return t===$||t===a?new o(t):r(t)}),d(d.G+d.W+d.F*!P,{Promise:$}),n(15606)($,S),n(52124)(S),a=n(74479)[S],d(d.S+d.F*!P,S,{reject:function(t){var e=A(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!P),S,{resolve:function(t){return T(s&&this===a?$:this,t)}}),d(d.S+d.F*!(P&&n(75645)((function(t){$.all(t).catch(O)}))),S,{all:function(t){var e=this,n=A(e),i=n.resolve,r=n.reject,o=_((function(){var n=[],o=0,a=1;m(t,!1,(function(t){var s=o++,l=!1;n.push(void 0),a++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--a||i(n))}),r)})),--a||i(n)}));return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=A(e),i=n.reject,r=_((function(){m(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},38236:(t,e,n)=>{var i=n(28315),r=n(46845),o=n(80539),a=(n(12004).Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!n(97654)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,n){var i=r(t),l=o(n);return a?a(i,e,l):s.call(i,e,l)}})},97737:(t,e,n)=>{var i=n(28315),r=n(28405),o=n(46845),a=n(80539),s=n(21601),l=n(97654),c=n(88936),u=(n(12004).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),h=!l((function(){u((function(){}))}));i(i.S+i.F*(d||h),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(h&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}var l=n.prototype,p=r(s(l)?l:Object.prototype),f=Function.apply.call(t,p,e);return s(f)?f:p}})},79175:(t,e,n)=>{var i=n(29530),r=n(28315),o=n(80539),a=n(11467);r(r.S+r.F*n(97654)((function(){Reflect.defineProperty(i.f({}
vendor: 11,527 bytes, line 2
2,1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return i.f(t,e,n),!0}catch(t){return!1}}})},39239:(t,e,n)=>{var i=n(28315),r=n(83949).f,o=n(80539);i(i.S,"Reflect",{deleteProperty:function(t,e){var n=r(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},47472:(t,e,n)=>{var i=n(28315),r=n(80539),o=function(t){this._t=r(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(77776)(o,"Object",(function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}})),i(i.S,"Reflect",{enumerate:function(t){return new o(t)}})},9288:(t,e,n)=>{var i=n(83949),r=n(28315),o=n(80539);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(o(t),e)}})},53409:(t,e,n)=>{var i=n(28315),r=n(54070),o=n(80539);i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},51874:(t,e,n)=>{var i=n(83949),r=n(54070),o=n(42002),a=n(28315),s=n(21601),l=n(80539);a(a.S,"Reflect",{get:function t(e,n){var a,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(a=i.f(e,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(c=r(e))?t(c,n,u):void 0}})},48609:(t,e,n)=>{var i=n(28315);i(i.S,"Reflect",{has:function(t,e){return e in t}})},3762:(t,e,n)=>{var i=n(28315),r=n(80539),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},49139:(t,e,n)=>{var i=n(28315);i(i.S,"Reflect",{ownKeys:n(56732)})},96695:(t,e,n)=>{var i=n(28315),r=n(80539),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},80570:(t,e,n)=>{var i=n(28315),r=n(62130);r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},13311:(t,e,n)=>{var i=n(29530),r=n(83949),o=n(54070),a=n(42002),s=n(28315),l=n(30351),c=n(80539),u=n(21601);s(s.S,"Reflect",{set:function t(e,n,s){var d,h,p=arguments.length<4?e:arguments[3],f=r.f(c(e),n);if(!f){if(u(h=o(e)))return t(h,n,s,p);f=l(0)}if(a(f,"value")){if(!1===f.writable||!u(p))return!1;if(d=r.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,i.f(p,n,d)}else i.f(p,n,l(0,s));return!0}return void 0!==f.set&&(f.set.call(p,s),!0)}})},59062:(t,e,n)=>{var i=n(12004),r=n(40990),o=n(29530).f,a=n(77164).f,s=n(47116),l=n(67940),c=i.RegExp,u=c,d=c.prototype,h=/a/g,p=/a/g,f=new c(h)!==h;if(n(67986)&&(!f||n(97654)((function(){return p[n(64430)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")})))){c=function(t,e){var n=this instanceof c,i=s(t),o=void 0===e;return!n&&i&&t.constructor===c&&o?t:r(f?new u(i&&!o?t.source:t,e):u((i=t instanceof c)?t.source:t,i&&o?l.call(t):e),n?this:d,c)};for(var m=function(t){t in c||o(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},g=a(u),v=0;g.length>v;)m(g[v++]);d.constructor=c,c.prototype=d,n(70320)(i,"RegExp",c)}n(52124)("RegExp")},89660:(t,e,n)=>{var i=n(65860);n(28315)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},75546:(t,e,n)=>{n(67986)&&"g"!=/./g.flags&&n(29530).f(RegExp.prototype,"flags",{configurable:!0,get:n(67940)})},39073:(t,e,n)=>{var i=n(80539),r=n(74634),o=n(80218),a=n(64110);n(41853)("match",1,(function(t,e,n,s){return[function(n){var i=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=i(t),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;for(var d,h=[],p=0;null!==(d=a(l,c));){var f=String(d[0]);h[p]=f,""===f&&(l.lastIndex=o(c,r(l.lastIndex),u)),p++}return 0===p?null:h}]}))},25319:(t,e,n)=>{var i=n(80539),r=n(61833),o=n(74634),a=n(5419),s=n(80218),l=n(64110),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(41853)("replace",2,(function(t,e,n,f){return[function(i,r){var o=t(this),a=null==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=f(n,t,this,e);if(r.done)return r.value;var d=i(t),h=String(this),p="function"==typeof e;p||(e=String(e));var g=d.global;if(g){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var b=l(d,h);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(d.lastIndex=s(h,o(d.lastIndex),v))}for(var _,w="",T=0,S=0;S<y.length;S++){b=y[S];for(var C=String(b[0]),k=c(u(a(b.index),h.length),0),x=[],E=1;E<b.length;E++)x.push(void 0===(_=b[E])?_:String(_));var $=b.groups;if(p){var I=[C].concat(x,k,h);void 0!==$&&I.push($);var O=String(e.apply(void 0,I))}else O=m(C,h,k,x,$,e);k>=T&&(w+=h.slice(T,k)+O,T=k+C.length)}return w+h.slice(T)}];function m(t,e,i,o,a,s){var l=i+t.length,c=o.length,u=p;return void 0!==a&&(a=r(a),u=h),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===o[h-1]?r.charAt(1):o[h-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},5918:(t,e,n)=>{var i=n(80539),r=n(88404),o=n(64110);n(41853)("search",1,(function(t,e,n,a){return[function(n){var i=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=i(t),l=String(this),c=s.lastIndex;r(c,0)||(s.lastIndex=0);var u=o(s,l);return r(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},30427:(t,e,n)=>{var i=n(47116),r=n(80539),o=n(9935),a=n(80218),s=n(74634),l=n(64110),c=n(65860),u=n(97654),d=Math.min,h=[].push,p="split",f="length",m="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));n(41853)("split",2,(function(t,e,n,u){var y;return y="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[f]||2!="ab"[p](/(?:ab)*/)[f]||4!="."[p](/(.?)(.?)/)[f]||"."[p](/()()/)[f]>1||""[p](/.?/)[f]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var o,a,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?g:e>>>0,v=new RegExp(t.source,u+"g");(o=c.call(v,r))&&!((a=v[m])>d&&(l.push(r.slice(d,o.index)),o[f]>1&&o.index<r[f]&&h.apply(l,o.slice(1)),s=o[0][f],d=a,l[f]>=p));)v[m]===o.index&&v[m]++;return d===r[f]?!s&&v.test("")||l.push(""):l.push(r.slice(d)),l[f]>p?l.slice(0,p):l}:"0"[p](void 0,0)[f]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r,i):y.call(String(r),n,i)},function(t,e){var i=u(y,t,this,e,y!==n);if(i.done)return i.value;var c=r(t),h=String(this),p=o(c,RegExp),f=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),b=new p(v?c:"^(?:"+c.source+")",m),_=void 0===e?g:e>>>0;if(0===_)return[];if(0===h.length)return null===l(b,h)?[h]:[];for(var w=0,T=0,S=[];T<h.length;){b.lastIndex=v?T:0;var C,k=l(b,v?h:h.slice(T));if(null===k||(C=d(s(b.lastIndex+(v?0:T)),h.length))===w)T=a(h,T,f);else{if(S.push(h.slice(w,T)),S.length===_)return S;for(var x=1;x<=k.length-1;x++)if(S.push(k[x]),S.length===_)return S;T=w=C}}return S.push(h.slice(w)),S}]}))},92120:(t,e,n)=>{n(75546);var i=n(80539),r=n(67940),o=n(67986),a="toString",s=/./[a],l=function(t){n(70320)(RegExp.prototype,a,t,!0)};n(97654)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)})):s.name!=a&&l((function(){return s.call(this)}))},73224:(t,e,n)=>{var i=n(8495),r=n(92913);t.exports=n(45155)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},68920:(t,e,n)=>{n(18724)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},15620:(t,e,n)=>{n(18724)("big",(function(t){return function(){return t(this,"big","","")}}))},25617:(t,e,n)=>{n(18724)("blink",(function(t){return function(){return t(this,"blink","","")}}))},67015:(t,e,n)=>{n(18724)("bold",(function(t){return function(){return t(this,"b","","")}}))},27821:(t,e,n)=>{var i=n(28315),r=n(34074)(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},73082:(t,e,n)=>{var i=n(28315),r=n(74634),o=n(69618),a="endsWith",s=""[a];i(i.P+i.F*n(55643)(a),"String",{endsWith:function(t){var e=o(this,t,a),n=arguments.length>1?arguments[1]:void 0,i=r(e.length),l=void 0===n?i:Math.min(r(n),i),c=String(t);return s?s.call(e,c,l):e.slice(l-c.length,l)===c}})},75481:(t,e,n)=>{n(18724)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},32900:(t,e,n)=>{n(18724)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},81395:(t,e,n)=>{n(18724)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},13432:(t,e,n)=>{var i=n(28315),r=n(8208),o=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,a=0;i>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},84602:(t,e,n)=>{var i=n(28315),r=n(69618),o="includes";i(i.P+i.F*n(55643)(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},70766:(t,e,n)=>{n(18724)("italics",(function(t){return function(){return t(this,"i","","")}}))},13598:(t,e,n)=>{var i=n(34074)(!0);n(16511)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},60151:(t,e,n)=>{n(18724)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},58114:(t,e,n)=>{var i=n(28315),r=n(63566),o=n(74634);i(i.S,"String",{raw:function(t){for(var e=r(t.raw),n=o(e.length),i=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s<i&&a.push(String(arguments[s]));return a.join("")}})},27827:(t,e,n)=>{var i=n(28315);i(i.P,"String",{repeat:n(78077)})},41709:(t,e,n)=>{n(18724)("small",(function(t){return function(){return t(this,"small","","")}}))},8076:(t,e,n)=>{var i=n(28315),r=n(74634),o=n(69618),a="startsWith",s=""[a];i(i.P+i.F*n(55643)(a),"String",{startsWith:function(t){var e=o(this,t,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,n):e.slice(n,n+i.length)===i}})},44217:(t,e,n)=>{n(18724)("strike",(function(t){return function(){return t(this,"strike","","")}}))},96843:(t,e,n)=>{n(18724)("sub",(function(t){return function(){return t(this,"sub","","")}}))},39058:(t,e,n)=>{n(18724)("sup",(function(t){return function(){return t(this,"sup","","")}}))},23897:(t,e,n)=>{n(18471)("trim",(function(t){return function(){return t(this,3)}}))},77922:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(12004),o=n(42002),a=n(67986),s=n(28315),l=n(70320),c=n(28130).KEY,u=n(97654),d=n(91484),h=n(15606),p=n(80327),f=n(64430),m=n(89332),g=n(88763),v=n(64443),y=n(57243),b=n(80539),_=n(21601),w=n(61833),T=n(63566),S=n(11467),C=n(30351),k=n(28405),x=n(59948),E=n(83949),$=n(1604),I=n(29530),O=n(85794),A=E.f,P=I.f,D=x.f,L=r.Symbol,M=r.JSON,N=M&&M.stringify,j="prototype",U=f("_hidden"),R=f("toPrimitive"),B={}.propertyIsEnumerable,F=d("symbol-registry"),z=d("symbols"),H=d("op-symbol
2s"),q=Object[j],V="function"==typeof L&&!!$.f,W=r.QObject,G=!W||!W[j]||!W[j].findChild,X=a&&u((function(){return 7!=k(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=A(q,e);i&&delete q[e],P(t,e,n),i&&t!==q&&P(q,e,i)}:P,Y=function(t){var e=z[t]=k(L[j]);return e._k=t,e},K=V&&"symbol"==i(L.iterator)?function(t){return"symbol"==i(t)}:function(t){return t instanceof L},Q=function(t,e,n){return t===q&&Q(H,e,n),b(t),e=S(e,!0),b(n),o(z,e)?(n.enumerable?(o(t,U)&&t[U][e]&&(t[U][e]=!1),n=k(n,{enumerable:C(0,!1)})):(o(t,U)||P(t,U,C(1,{})),t[U][e]=!0),X(t,e,n)):P(t,e,n)},J=function(t,e){b(t);for(var n,i=v(e=T(e)),r=0,o=i.length;o>r;)Q(t,n=i[r++],e[n]);return t},Z=function(t){var e=B.call(this,t=S(t,!0));return!(this===q&&o(z,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,U)&&this[U][t])||e)},tt=function(t,e){if(t=T(t),e=S(e,!0),t!==q||!o(z,e)||o(H,e)){var n=A(t,e);return!n||!o(z,e)||o(t,U)&&t[U][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=D(T(t)),i=[],r=0;n.length>r;)o(z,e=n[r++])||e==U||e==c||i.push(e);return i},nt=function(t){for(var e,n=t===q,i=D(n?H:T(t)),r=[],a=0;i.length>a;)!o(z,e=i[a++])||n&&!o(q,e)||r.push(z[e]);return r};V||(l((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0);return a&&G&&X(q,t,{configurable:!0,set:function e(n){this===q&&e.call(H,n),o(this,U)&&o(this[U],t)&&(this[U][t]=!1),X(this,t,C(1,n))}}),Y(t)})[j],"toString",(function(){return this._k})),E.f=tt,I.f=Q,n(77164).f=x.f=et,n(13654).f=Z,$.f=nt,a&&!n(51865)&&l(q,"propertyIsEnumerable",Z,!0),m.f=function(t){return Y(f(t))}),s(s.G+s.W+s.F*!V,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;it.length>rt;)f(it[rt++]);for(var ot=O(f.store),at=0;ot.length>at;)g(ot[at++]);s(s.S+s.F*!V,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!V,"Object",{create:function(t,e){return void 0===e?k(t):J(k(t),e)},defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=u((function(){$.f(1)}));s(s.S+s.F*st,"Object",{getOwnPropertySymbols:function(t){return $.f(w(t))}}),M&&s(s.S+s.F*(!V||u((function(){var t=L();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(_(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),i[1]=e,N.apply(M,i)}}),L[j][R]||n(305)(L[j],R,L[j].valueOf),h(L,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},9438:(t,e,n)=>{var i=n(28315),r=n(76609),o=n(8951),a=n(80539),s=n(8208),l=n(74634),c=n(21601),u=n(12004).ArrayBuffer,d=n(9935),h=o.ArrayBuffer,p=o.DataView,f=r.ABV&&u.isView,m=h.prototype.slice,g=r.VIEW,v="ArrayBuffer";i(i.G+i.W+i.F*(u!==h),{ArrayBuffer:h}),i(i.S+i.F*!r.CONSTR,v,{isView:function(t){return f&&f(t)||c(t)&&g in t}}),i(i.P+i.U+i.F*n(97654)((function(){return!new h(2).slice(1,void 0).byteLength})),v,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(a(this),t);for(var n=a(this).byteLength,i=s(t,n),r=s(void 0===e?n:e,n),o=new(d(this,h))(l(r-i)),c=new p(this),u=new p(o),f=0;i<r;)u.setUint8(f++,c.getUint8(i++));return o}}),n(52124)(v)},65557:(t,e,n)=>{var i=n(28315);i(i.G+i.W+i.F*!n(76609).ABV,{DataView:n(8951).DataView})},80117:(t,e,n)=>{n(89114)("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},53011:(t,e,n)=>{n(89114)("Float64",8,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},41351:(t,e,n)=>{n(89114)("Int16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},36914:(t,e,n)=>{n(89114)("Int32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},55958:(t,e,n)=>{n(89114)("Int8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},26024:(t,e,n)=>{n(89114)("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},17141:(t,e,n)=>{n(89114)("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},47295:(t,e,n)=>{n(89114)("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}))},44146:(t,e,n)=>{n(89114)("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0)},8697:(t,e,n)=>{var i,r=n(12004),o=n(1318)(0),a=n(70320),s=n(28130),l=n(36553),c=n(18985),u=n(21601),d=n(92913),h=n(92913),p=!r.ActiveXObject&&"ActiveXObject"in r,f="WeakMap",m=s.getWeak,g=Object.isExtensible,v=c.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(t){if(u(t)){var e=m(t);return!0===e?v(d(this,f)).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,f),t,e)}},_=t.exports=n(45155)(f,y,b,c,!0,!0);h&&p&&(l((i=c.getConstructor(y,f)).prototype,b),s.NEED=!0,o(["delete","has","get","set"],(function(t){var e=_.prototype,n=e[t];a(e,t,(function(e,r){if(u(e)&&!g(e)){this._f||(this._f=new i);var o=this._f[t](e,r);return"set"==t?this:o}return n.call(this,e,r)}
2))})))},66087:(t,e,n)=>{var i=n(18985),r=n(92913),o="WeakSet";n(45155)(o,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return i.def(r(this,o),t,!0)}},i,!1,!0)},10992:(t,e,n)=>{var i=n(28315),r=n(27094),o=n(61833),a=n(74634),s=n(46845),l=n(51870);i(i.P,"Array",{flatMap:function(t){var e,n,i=o(this);return s(t),e=a(i.length),n=l(i,0),r(n,i,i,e,0,1,t,arguments[1]),n}}),n(77555)("flatMap")},55749:(t,e,n)=>{var i=n(28315),r=n(26692)(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(77555)("includes")},39231:(t,e,n)=>{var i=n(28315),r=n(27228)(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},69432:(t,e,n)=>{var i=n(28315),r=n(56732),o=n(63566),a=n(83949),s=n(59330);i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=o(t),l=a.f,c=r(i),u={},d=0;c.length>d;)void 0!==(n=l(i,e=c[d++]))&&s(u,e,n);return u}})},67477:(t,e,n)=>{var i=n(28315),r=n(27228)(!1);i(i.S,"Object",{values:function(t){return r(t)}})},47361:(t,e,n)=>{var i=n(28315),r=n(74479),o=n(12004),a=n(9935),s=n(72545);i(i.P+i.R,"Promise",{finally:function(t){var e=a(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},44444:(t,e,n)=>{var i=n(28315),r=n(72292),o=n(69282),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},94556:(t,e,n)=>{var i=n(28315),r=n(72292),o=n(69282),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},85139:(t,e,n)=>{n(18471)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},55425:(t,e,n)=>{n(18471)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},58901:(t,e,n)=>{n(88763)("asyncIterator")},3263:(t,e,n)=>{for(var i=n(53859),r=n(85794),o=n(70320),a=n(12004),s=n(305),l=n(7882),c=n(64430),u=c("iterator"),d=c("toStringTag"),h=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),m=0;m<f.length;m++){var g,v=f[m],y=p[v],b=a[v],_=b&&b.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,v),l[v]=h,y))for(g in i)_[g]||o(_,g,i[g],!0)}},18858:(t,e,n)=>{var i=n(28315),r=n(4803);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},36587:(t,e,n)=>{var i=n(12004),r=n(28315),o=n(69282),a=[].slice,s=/MSIE .\./.test(o),l=function(t){return function(e,n){var i=arguments.length>2,r=!!i&&a.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,n)}};r(r.G+r.B+r.F*s,{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},72079:(t,e,n)=>{n(36587),n(18858),n(3263),t.exports=n(74479)},41953:function(t,e,n){var i,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(i=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],r=0;r<n.length;r++){var o=n[r];i&&i[o]&&(this.off(t,o),delete i[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?i.call(e,n,e,t):i)||(t.exports=r)},81085:(t,e,n)=>{var i,r,o;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},a(t)}o=function(){function t(t){var e=!0,n=!1,i=null,r={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o(t){return!!(t&&t!==document&&"HTML"!==t.nodeName&&"BODY"!==t.nodeName&&"classList"in t&&"contains"in t.classList)}function a(t){t.classList.contains("focus-visible")||(t.classList.add("focus-visible"),t.setAttribute("data-focus-visible-added",""))}function s(t){e=!1}function l(){document.addEventListener("mousemove",c),document.addEventListener("mousedown",c),document.addEventListener("mouseup",c),document.addEventListener("pointermove",c),document.addEventListener("pointerdown",c),document.addEventListener("pointerup",c),document.addEventListener("touchmove",c),document.addEventListener("touchstart",c),document.addEventListener("touchend",c)}function c(t){t.target.nodeName&&"html"===t.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",c),document.removeEventListener("mousedown",c),document.removeEventListener("mouseup",c),document.removeEventListener("pointermove",c),document.removeEventListener("pointerdown",c),document.removeEventListener("pointerup",c),document.removeEventListener("touchmove",c),document.removeEventListener("touchstart",c),document.removeEventListener("touchend",c))}document.addEventListener("keydown",(function(n){n.metaKey||n.altKey||n.ctrlKey||(o(t.activeElement)&&a(t.activeElement),e=!0)}),!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",(function(t){"hidden"===document.visibilityState&&(n&&(e=!0),l())}),!0),l(),t.addEventListener("focus",(function(t){var n,i,s;o(t.target)&&(e||(i=(n=t.target).type,"INPUT"===(s=n.tagName)&&r[i]&&!n.readOnly||"TEXTAREA"===s&&!n.readOnly||n.isContentEditable))&&a(t.target)}),!0),t.addEventListener("blur",(function(t){var e;o(t.target)&&(t.target.classList.contains("focus-visible")||t.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout((function(){n=!1}),100),(e=t.target).hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added")))}),!0),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host?t.host.setAttribute("data-js-focus-visible",""):t.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var e;window.applyFocusVisiblePolyfill=t;try{e=new CustomEvent("focus-visible-polyfill-ready")}catch(t){(e=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(e)}"undefined"!=typeof document&&t(document)},"object"==a(e)?o():void 0===(r="function"==typeof(i=o)?i.call(e,n,e,t):i)||(t.exports=r)},61540:(t,e,n)=>{var i,r=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},o=n(4263);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=i},86764:(t,e,n)=>{var i;i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}
2,t.exports=i},49433:function(t,e,n){var i,r;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},o(t)}!function(a,s){i=[n(41953)],r=function(t){return function(t,e){var n=t.jQuery,i=t.console;function r(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function s(t,e,l){if(!(this instanceof s))return new s(t,e,l);var c,u=t;"string"==typeof t&&(u=document.querySelectorAll(t)),u?(this.elements=(c=u,Array.isArray(c)?c:"object"==o(c)&&"number"==typeof c.length?a.call(c):[c]),this.options=r({},this.options),"function"==typeof e?l=e:r(this.options,e),l&&this.on("always",l),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):i.error("Bad element for imagesLoaded "+(u||t))}s.prototype=Object.create(e.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var n=t.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(i=0;i<o.length;i++){var a=o[i];this.addElementBackgroundImages(a)}}}};var l={1:!0,9:!0,11:!0};function c(t){this.img=t}function u(t,e){this.url=t,this.element=e,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var r=i&&i[2];r&&this.addBackground(r,t),i=n.exec(e.backgroundImage)}},s.prototype.addImage=function(t){var e=new c(t);this.images.push(e)},s.prototype.addBackground=function(t,e){var n=new u(t,e);this.images.push(n)},s.prototype.check=function(){var t=this;function e(e,n,i){setTimeout((function(){t.progress(e,n,i)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},s.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&i&&i.log("progress: "+n,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},c.prototype=Object.create(e.prototype),c.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},c.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},c.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype=Object.create(c.prototype),u.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(n(this))})},s.makeJQueryPlugin(),s}(a,t)}.apply(e,i),void 0===r||(t.exports=r)}("undefined"!=typeof window?window:this)},99226:(t,e,n)=>{var i,r,o;r=[n(28928)],void 0===(o="function"==typeof(i=function(t){var e,n,i={interval:100,sensitivity:6,timeout:0},r=0,o=function(t){e=t.pageX,n=t.pageY},a=function t(i,r,a,s){if(Math.sqrt((a.pX-e)*(a.pX-e)+(a.pY-n)*(a.pY-n))<s.sensitivity)return r.off(a.event,o),delete a.timeoutId,a.isActive=!0,i.pageX=e,i.pageY=n,delete a.pX,delete a.pY,s.over.apply(r[0],[i]);a.pX=e,a.pY=n,a.timeoutId=setTimeout((function(){t(i,r,a,s)}),s.interval)};t.fn.hoverIntent=function(e,n,s){var l=r++,c=t.extend({},i);t.isPlainObject(e)?(c=t.extend(c,e),t.isFunction(c.out)||(c.out=c.over)):c=t.isFunction(n)?t.extend(c,{over:e,out:n,selector:s}):t.extend(c,{over:e,out:e,selector:n});var u=function(e){var n=t.extend({},e),i=t(this),r=i.data("hoverIntent");r||i.data("hoverIntent",r={});var s=r[l];s||(r[l]=s={id:l}),s.timeoutId&&(s.timeoutId=clearTimeout(s.timeoutId));
2var u=s.event="mousemove.hoverIntent.hoverIntent"+l;if("mouseenter"===e.type){if(s.isActive)return;s.pX=n.pageX,s.pY=n.pageY,i.off(u,o).on(u,o),s.timeoutId=setTimeout((function(){a(n,i,s,c)}),c.interval)}else{if(!s.isActive)return;i.off(u,o),s.timeoutId=setTimeout((function(){!function(t,e,n,i){var r=e.data("hoverIntent");r&&delete r[n.id],i.apply(e[0],[t])}(n,i,s,c.out)}),c.timeout)}};return this.on({"mouseenter.hoverIntent":u,"mouseleave.hoverIntent":u},c.selector)}})?i.apply(e,r):i)||(t.exports=o)},25772:()=>{!function(t){var e={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};t.zoom=function(e,n,i,r){var o,a,s,l,c,u,d,h=t(e),p=h.css("position"),f=t(n);return e.style.position=/(absolute|fixed)/.test(p)?p:"relative",e.style.overflow="hidden",i.style.width=i.style.height="",t(i).addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:i.width*r,height:i.height*r,border:"none",maxWidth:"none",maxHeight:"none"}).appendTo(e),{init:function(){a=h.outerWidth(),o=h.outerHeight(),n===e?(l=a,s=o):(l=f.outerWidth(),s=f.outerHeight()),c=(i.width-a)/l,u=(i.height-o)/s,d=f.offset()},move:function(t){var e=t.pageX-d.left,n=t.pageY-d.top;n=Math.max(Math.min(n,s),0),e=Math.max(Math.min(e,l),0),i.style.left=e*-c+"px",i.style.top=n*-u+"px"}}},t.fn.zoom=function(n){return this.each((function(){var i=t.extend({},e,n||{}),r=i.target&&t(i.target)[0]||this,o=this,a=t(o),s=document.createElement("img"),l=t(s),c="mousemove.zoom",u=!1,d=!1;if(!i.url){var h=o.querySelector("img");if(h&&(i.url=h.getAttribute("data-src")||h.currentSrc||h.src),!i.url)return}a.one("zoom.destroy",function(t,e){a.off(".zoom"),r.style.position=t,r.style.overflow=e,s.onload=null,l.remove()}.bind(this,r.style.position,r.style.overflow)),s.onload=function(){var e=t.zoom(r,o,s,i.magnify);function n(n){e.init(),e.move(n),l.stop().fadeTo(t.support.opacity?i.duration:0,1,!!t.isFunction(i.onZoomIn)&&i.onZoomIn.call(s))}function h(){l.stop().fadeTo(i.duration,0,!!t.isFunction(i.onZoomOut)&&i.onZoomOut.call(s))}"grab"===i.on?a.on("mousedown.zoom",(function(i){1===i.which&&(t(document).one("mouseup.zoom",(function(){h(),t(document).off(c,e.move)})),n(i),t(document).on(c,e.move),i.preventDefault())})):"click"===i.on?a.on("click.zoom",(function(i){return u?void 0:(u=!0,n(i),t(document).on(c,e.move),t(document).one("click.zoom",(function(){h(),u=!1,t(document).off(c,e.move)})),!1)})):"toggle"===i.on?a.on("click.zoom",(function(t){u?h():n(t),u=!u})):"mouseover"===i.on&&(e.init(),a.on("mouseenter.zoom",n).on("mouseleave.zoom",h).on(c,e.move)),i.touch&&a.on("touchstart.zoom",(function(t){t.preventDefault(),d?(d=!1,h()):(d=!0,n(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0]))})).on("touchmove.zoom",(function(t){t.preventDefault(),e.move(t.originalEvent.touches[0]||t.originalEvent.changedTouches[0])})).on("touchend.zoom",(function(t){t.preventDefault(),d&&(d=!1,h())})),t.isFunction(i.callback)&&i.callback.call(s)},s.setAttribute("role","presentation"),s.alt="",s.src=i.url}))},t.fn.zoom.defaults=e}(window.jQuery)},41862:function(t,e,n){var i,r,o;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},a(t)}r=[n(28928)],void 0===(o="function"==typeof(i=function(t){var e={vertical:{x:!1,y:!0},horizontal:{x:!0,y:!1},both:{x:!0,y:!0},x:{x:!0,y:!1},y:{x:!1,y:!0}},n={duration:"fast",direction:"both",viewPadding:0}
2,i=/^(?:html)$/i,r=function(e,n){n=n||(document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(e,null):e.currentStyle);var i=!(!document.defaultView||!document.defaultView.getComputedStyle),r={top:parseFloat(i?n.borderTopWidth:t.css(e,"borderTopWidth"))||0,left:parseFloat(i?n.borderLeftWidth:t.css(e,"borderLeftWidth"))||0,bottom:parseFloat(i?n.borderBottomWidth:t.css(e,"borderBottomWidth"))||0,right:parseFloat(i?n.borderRightWidth:t.css(e,"borderRightWidth"))||0};return{top:r.top,left:r.left,bottom:r.bottom,right:r.right,vertical:r.top+r.bottom,horizontal:r.left+r.right}},o=function(e){var n=e[0],o=i.test(n.nodeName),a=o?t(window):e;return{border:o?{top:0,left:0,bottom:0,right:0}:r(n),scroll:{top:a.scrollTop(),left:a.scrollLeft(),maxtop:n.scrollHeight-n.clientHeight,maxleft:n.scrollWidth-n.clientWidth},scrollbar:o?{right:0,bottom:0}:{right:a.innerWidth()-n.clientWidth,bottom:a.innerHeight()-n.clientHeight},rect:o?{top:0,left:0,bottom:n.clientHeight,right:n.clientWidth}:n.getBoundingClientRect()}};t.fn.extend({scrollintoview:function(r){(r=t.extend({},n,r)).direction=e["string"==typeof r.direction&&r.direction.toLowerCase()]||e.both,"number"==typeof r.viewPadding?r.viewPadding={x:r.viewPadding,y:r.viewPadding}:"object"==a(r.viewPadding)&&(null==r.viewPadding.x&&(r.viewPadding.x=0),null==r.viewPadding.y&&(r.viewPadding.y=0));var s="";!0===r.direction.x&&(s="horizontal"),!0===r.direction.y&&(s=s?"both":"vertical");var l=this.eq(0),c=l.parent().closest(":scrollable("+s+")");if(c.length>0){c=c.eq(0);var u={e:o(l),s:o(c)},d={top:u.e.rect.top-(u.s.rect.top+u.s.border.top),bottom:u.s.rect.bottom-u.s.border.bottom-u.s.scrollbar.bottom-u.e.rect.bottom,left:u.e.rect.left-(u.s.rect.left+u.s.border.left),right:u.s.rect.right-u.s.border.right-u.s.scrollbar.right-u.e.rect.right},h={};if(!0===r.direction.y&&(d.top<0?h.scrollTop=Math.max(0,u.s.scroll.top+d.top-r.viewPadding.y):d.top>0&&d.bottom<0&&(h.scrollTop=Math.min(u.s.scroll.top+Math.min(d.top,-d.bottom)+r.viewPadding.y,u.s.scroll.maxtop))),!0===r.direction.x&&(d.left<0?h.scrollLeft=Math.max(0,u.s.scroll.left+d.left-r.viewPadding.x):d.left>0&&d.right<0&&(h.scrollLeft=Math.min(u.s.scroll.left+Math.min(d.left,-d.right)+r.viewPadding.x,u.s.scroll.maxleft))),t.isEmptyObject(h))t.isFunction(r.complete)&&r.complete.call(c[0]);else{var p=function(e){t.each(f,(function(t,e){Math.floor(m[t]())!=Math.floor(e)&&(r.complete=null,c.stop("scrollintoview"))}))},f={},m=c;i.test(c[0].nodeName)&&(c=t("html,body"),m=t(window)),m.on("scroll",p),c.stop("scrollintoview").animate(h,{duration:r.duration,step:function(t,e){f[e.prop]=Math.floor(t)},queue:"scrollintoview"}).eq(0).queue("scrollintoview",(function(e){m.off("scroll",p),t.isFunction(r.complete)&&r.complete.call(c[0]),e()})),c.dequeue("scrollintoview")}}return this}});var s={auto:!0,scroll:!0,visible:!1,hidden:!1};t.expr[":"].scrollable=t.expr.createPseudo((function(t){return function(n){return function(t,n){n=e["string"==typeof n&&n.toLowerCase()]||e.both;var r=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(t,null):t.currentStyle,o={x:s[r.overflowX.toLowerCase()]||!1,y:s[r.overflowY.toLowerCase()]||!1,isRoot:i.test(t.nodeName)};if(!o.x&&!o.y&&!o.isRoot)return!1;var a={height:{scroll:t.scrollHeight,client:t.clientHeight},width:{scroll:t.scrollWidth,client:t.clientWidth},scrollableX:function(){return(o.x||o.isRoot)&&this.width.scroll>this.width.client},scrollableY:function(){return(o.y||o.isRoot)&&this.height.scroll>this.height.client}};return n.y&&a.scrollableY()||n.x&&a.scrollableX()}(n,t)}}))})?i.apply(e,r):i)||(t.exports=o)},65401:(t,e,n)=>{n.d(e,{Z:()=>et});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),o=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?t:c(l(t))}function u(t){return t&&t.referenceNode?t.referenceNode:t}var d=i&&!(!window.MSInputMethodContext||!document.documentMode),h=i&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?d:10===t?h:d||h}function f(t){if(!t)return document.documentElement;for(var e=p(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?f(n):n:t?t.ownerDocument.documentElement:document.documentElement}function m(t){return null!==t.parentNode?m(t.parentNode):t}function g(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&f(a.firstElementChild)!==a?f(l):l;var c=m(t);return c.host?g(c.host,e):g(t,m(e).host)}function v(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function y(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function b(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],p(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function _(t){var e=t.body,n=t.documentElement,i=p(10)&&getComputedStyle(n);return{height:b("Height",e,n,i),width:b("Width",e,n,i)}}var w=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),T=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function C(t){return S({},t,{right:t.left+t.width,bottom:t.top+t.height})}function k(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var n=v(t,"top"),i=v(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?_(t.ownerDocument):{},a=o.width||t.clientWidth||r.width,l=o.height||t.clientHeight||r.height,c=t.offsetWidth-a,u=t.offsetHeight-l;if(c||u){var d=s(t);c-=y(d,"x"),u-=y(d,"y"),r.width-=c,r.height-=u}return C(r)}function x(t,e){var n=arguments.length>
vendor: 5,961 bytes, line 2
22&&void 0!==arguments[2]&&arguments[2],i=p(10),r="HTML"===e.nodeName,o=k(t),a=k(e),l=c(t),u=s(e),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=C({top:o.top-a.top-d,left:o.left-a.left-h,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!i&&r){var m=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);f.top-=d-m,f.bottom-=d-m,f.left-=h-g,f.right-=h-g,f.marginTop=m,f.marginLeft=g}return(i&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(f=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(e,"top"),r=v(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(f,e)),f}function E(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=l(t);return!!n&&E(n)}function $(t){if(!t||!t.parentElement||p())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function I(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?$(t):g(t,u(e));if("viewport"===i)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=x(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left");return C({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=c(l(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var d=x(s,a,r);if("HTML"!==s.nodeName||E(a))o=d;else{var h=_(t.ownerDocument),p=h.height,f=h.width;o.top+=d.top-d.marginTop,o.bottom=p+d.top,o.left+=d.left-d.marginLeft,o.right=f+d.left}}var m="number"==typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function O(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=I(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return S({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function A(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return x(n,i?$(e):g(e,u(n)),i)}function P(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function D(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function L(t,e,n){n=n.split("-")[0];var i=P(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[c]:e[D(s)],r}function M(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function N(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=M(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=C(e.offsets.popper),e.offsets.reference=C(e.offsets.reference),e=n(e,t))})),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=O(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=L(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=N(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function U(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function R(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function B(){return this.state.isDestroyed=!0,U(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(t){var e=t.ownerDocument;return e?e.defaultView:window}function z(t,e,n,i){var r="BODY"===t.nodeName,o=r?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),r||z(c(o.parentNode),e,n,i),i.push(o)}function H(t,e,n,i){n.updateBound=i,F(t).addEventListener("resize",n.updateBound,{passive:!0});var r=c(t);return z(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function q(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function V(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,F(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEac
vendor: 5,368 bytes, line 2
2h((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function W(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function G(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&W(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var X=i&&/Firefox/i.test(navigator.userAgent);function Y(t,e,n){var i=M(t,(function(t){return t.name===e}));return!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}))}var K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=K.slice(3);function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(t),i=Q.slice(n+1).concat(Q.slice(0,n));return e?i.reverse():i}var Z={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:T({},l,o[l]),end:T({},l,o[l]+o[c]-a[c])};t.offsets.popper=S({},a,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,i=e.offset,r=t.placement,o=t.offsets,a=o.popper,s=o.reference,l=r.split("-")[0];return n=W(+i)?[+i,0]:function(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(M(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&a[s].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(t,i){var r=(1===i?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];return o?0===a.indexOf("%")?C("%p"===a?n:i)[e]/100*o:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:t}(t,r,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){W(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))}))})),r}(i,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),t.popper=a,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||f(t.instance.popper);t.instance.reference===n&&(n=f(n));var i=R("transform"),r=t.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=I(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=a,r[i]=s,e.boundaries=l;var c=e.priority,u=t.offsets.popper,d={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),T({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),T({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=S({},u,d[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[s])&&(t.offsets.popper[l]=o(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Y(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var r=t.placement.split("-")[0],o=t.offsets,a=o.popper,l=o.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",m=P(i)[u];l[f]-m<a[h]&&(t.offsets.popper[h]-=a[h]-(l[f]-m)),l[h]+m>a[f]&&(t.offsets.popper[h]+=l[h]+m-a[f]),t.offsets.popper=C(t.offsets.popper);var g=l[h]+l[u]/2-m/2,v=s(t.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),_=g-t.offsets.popper[h]-y-b;return _=Math.max(Math.min(a[u]-m,_),0),t.arrowElement=i,t.offsets.arrow=(T(n={},h,Math.round(_)),T(n,p,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(U(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=I(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=D(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case"flip":a=[i,r];break;case"clockwise":a=J(i);break;case"counterclockwise":a=J(i,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],r=D(i);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===i&&d(c.r
vendor: 4,257 bytes, line 2
2ight)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),p=d(c.left)<d(n.left),f=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===i&&p||"right"===i&&f||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&m||!y&&"end"===o&&g),_=!!e.flipVariationsByContent&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m),w=b||_;(h||v||w)&&(t.flipped=!0,(h||v)&&(i=a[l+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=S({},t.offsets.popper,L(t.instance.popper,t.offsets.reference,t.placement)),t=N(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),t.placement=D(e),t.offsets.popper=C(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Y(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=M(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n,i,r=e.x,o=e.y,a=t.offsets.popper,s=M(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,l=void 0!==s?s:e.gpuAcceleration,c=f(t.instance.popper),u=k(c),d={position:a.position},h=function(t,e){var n=t.offsets,i=n.popper,r=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},l=o(r.width),c=o(i.width),u=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?u||d||l%2==c%2?o:a:s,p=e?o:s;return{left:h(l%2==1&&c%2==1&&!d&&e?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!X),p="bottom"===r?"top":"bottom",m="right"===o?"left":"right",g=R("transform");if(i="bottom"===p?"HTML"===c.nodeName?-c.clientHeight+h.bottom:-u.height+h.bottom:h.top,n="right"===m?"HTML"===c.nodeName?-c.clientWidth+h.right:-u.width+h.right:h.left,l&&g)d[g]="translate3d("+n+"px, "+i+"px, 0)",d[p]=0,d[m]=0,d.willChange="transform";else{var v="bottom"===p?-1:1,y="right"===m?-1:1;d[p]=i*v,d[m]=n*y,d.willChange=p+", "+m}var b={"x-placement":t.placement};return t.attributes=S({},b,t.attributes),t.styles=S({},d,t.styles),t.arrowStyles=S({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return G(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&G(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=A(r,e,t,n.positionFixed),a=O(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),G(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},tt=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=o(this.update.bind(this)),this.options=S({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},t.Defaults.modifiers,r.modifiers)).forEach((function(e){i.options.modifiers[e]=S({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return S({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order}
vendor: 5,206 bytes, line 2
2)),this.modifiers.forEach((function(t){t.enabled&&a(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return V.call(this)}}]),t}();tt.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,tt.placements=K,tt.Defaults=Z;const et=tt},11249:(t,e,n)=>{function i(t){return i="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},i(t)}var r=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=e&&e.prototype instanceof v?e:v,o=Object.create(r.prototype),a=new I(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===m){if("throw"===r)throw o;return A()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=d(t,e,n);if("normal"===l.type){if(i=n.done?m:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=m,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};c(_,a,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(O([])));T&&T!==n&&r.call(T,a)&&(_=T);var S=b.prototype=v.prototype=Object.create(_);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(o,a,s,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"===i(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,l)}))}l(c.arg)}var o;this._invoke=function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}}function x(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:A}}function A(){return{value:e,done:!0}}return y.prototype=b,c(S,"constructor",b),c(b,"constructor",y),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},C(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new k(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=O,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h($),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;$(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}("object"===i(t=n.nmd(t))?t.exports:{});try{regeneratorRuntime=r}catch(t){"object"===("undefined"==typeof globalThis?"undefined":i(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},5816:(t,e,n)=>{n.r(e),n.d(e,{tns:()=>R});var i=window,r=i.requestAnimationFrame||i.webkitRequestAnimationFrame||i.mozRequestAnimationFrame||i.msRequestAnimationFrame||function(t){return setTimeout(t,16)},o=window,a=o.cancelAnimationFrame||o.mozCancelAnimationFrame||function(t){clearTimeout(t)};function s(){for(var t,e,n,i=arguments[0]||{},r=1,o=arguments.length;r<o;r++)if(null!==(t=arguments[r]))for(e in t)i!==(n=t[e])&&void 0!==n&&(i[e]=n);return i}function l(t){return["true","false"].indexOf(t)>=0?JSON.parse(t):t}function c(t,e,n,i){if(i)try{t.setItem(e,n)}catch(t){}return n}function u(){var t=document,e=t.body;return e||((e=t.createElement("body")).fake=!0),e}var d=document.documentElement;function h(t){var e="";return t.fake&&(e=d.style.overflow,t.style.background="",t.style.overflow=d.style.overflow="hidden",d.appendChild(t)),e}function p(t,e){t.fake&&(t.remove(),d.style.overflow=e,d.offsetHeight)}function f(t,e,n,i){"insertRule"in t?t.insertRule(e+"{"+n+"}",i):t.addRule(e,n,i)}function m(t){return("insertRule"in t?t.cssRules:t.rules).length}function g(t,e,n){for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i)}var v="classList"in document.createElement("_"),y=v?function(t,e){return t.classList.contains(e)}:function(t,e){return t.className.indexOf(e)>=0},b=v?function(t,e){y(t,e)||t.classList.add(e)}:function(t,e){y(t,e)||(t.className+=" "+e)},_=v?function(t,e){y(t,e)&&t.classList.remove(e)}:function(t,e){y(t,e)&&(t.className=t.className.replace(e,""))};function w(t,e){return t.hasAttribute(e)}function T(t,e){return t.getAttribute(e)}function S(t){return void 0!==t.item}function C(t,e){if(t=S(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var i in e)t[n].setAttribute(i,e[i])}function k(t,e){t=S(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,i=t.length;i--;)for(var r=n;r--;)t[i].removeAttribute(e[r])}function x(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}function E(t,e){"none"!==t.style.display&&(t.style.display="none")}function $(t,e){"none"===t.style.display&&(t.style.display="")}function I(t){return"none"!==window.getComputedStyle(t).display}function O(t){if("string"==typeof t){var e=[t],n=t.charAt(0).toUpperCase()+t.substr(1);["Webkit","Moz","ms","O"].forEach((function(i){"ms"===i&&"transform"!==t||e.push(i+n)})),t=e}for(var i=document.createElement("fakeelement"),r=(t.length,0);r<t.length;r++){var o=t[r];if(void 0!==i.style[o])return o}return!1}function A(t,e){var n=!1;return/^Webkit/.test(t)?n="webkit"+e+"End":/^O/.test(t)?n="o"+e+"End":t&&(n=e.toLowerCase()+"end"),n}var P=!1;try{var D=Object.defineProperty({},"passive",{get:function(){P=!0}});window.addEventListener("test",null,D)}catch(t){}var L=!!P&&{passive:!0};function M(t,e,n){for(var i in e){var r=["touchstart","touchmove"].indexOf(i)>=0&&!n&&L;t.addEventListener(i,e[i],r)}}function N(t,e){for(var n in e){var i=["touchstart","touchmove"].indexOf(n)>=0&&L;t.removeEventListener(n,e[n],i)}}function j(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}},emit:function(t,e){e.type=t,this.topics[t]&&this.topics[t].forEach((function(n){n(e,t)}))}}}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},U(t)}Object.keys||(Object.keys=function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var R=function t(e){e=s({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},e||{});var n=document,i=window,o={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},d={},v=e.useLocalStorage;if(v){var S=navigator.userAgent,P=new Date;try{(d=i.localStorage)?(d.setItem(P,P),v=d.getItem(P)==P,d.removeItem(P)):v=!1,v||(d={})}catch(t){v=!1}v&&(d.tnsApp&&d.tnsApp!==S&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(t){d.removeItem(t)})),localStorage.tnsApp=S)}var D=d.tC?l(d.tC):c(d,"tC",function(){var t=document,e=u(),n=h(e),i=t.createElement("div"),r=!1;e.appendChild(i);try{for(var o,a="(10px * 10)",s=["calc"+a,"-moz-calc"+a,"-webkit-calc"+a],l=0;l<3;l++)if(o=s[l],i.style.width=o,100===i.offsetWidth){r=o.replace(a,"");break}}catch(t){}return e.fake?p(e,n):i.remove(),r}
vendor: 4,170 bytes, line 2
2(),v),L=d.tPL?l(d.tPL):c(d,"tPL",function(){var t,e=document,n=u(),i=h(n),r=e.createElement("div"),o=e.createElement("div"),a="";r.className="tns-t-subp2",o.className="tns-t-ct";for(var s=0;s<70;s++)a+="<div></div>";return o.innerHTML=a,r.appendChild(o),n.appendChild(r),t=Math.abs(r.getBoundingClientRect().left-o.children[67].getBoundingClientRect().left)<2,n.fake?p(n,i):r.remove(),t}(),v),R=d.tMQ?l(d.tMQ):c(d,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var t,e=document,n=u(),i=h(n),r=e.createElement("div"),o=e.createElement("style"),a="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return o.type="text/css",r.className="tns-mq-test",n.appendChild(o),n.appendChild(r),o.styleSheet?o.styleSheet.cssText=a:o.appendChild(e.createTextNode(a)),t=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?p(n,i):r.remove(),"absolute"===t}(),v),B=d.tTf?l(d.tTf):c(d,"tTf",O("transform"),v),F=d.t3D?l(d.t3D):c(d,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,i=u(),r=h(i),o=n.createElement("p"),a=t.length>9?"-"+t.slice(0,-9).toLowerCase()+"-":"";return a+="transform",i.insertBefore(o,null),o.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(o).getPropertyValue(a),i.fake?p(i,r):o.remove(),void 0!==e&&e.length>0&&"none"!==e}(B),v),z=d.tTDu?l(d.tTDu):c(d,"tTDu",O("transitionDuration"),v),H=d.tTDe?l(d.tTDe):c(d,"tTDe",O("transitionDelay"),v),q=d.tADu?l(d.tADu):c(d,"tADu",O("animationDuration"),v),V=d.tADe?l(d.tADe):c(d,"tADe",O("animationDelay"),v),W=d.tTE?l(d.tTE):c(d,"tTE",A(z,"Transition"),v),G=d.tAE?l(d.tAE):c(d,"tAE",A(q,"Animation"),v),X=(i.console&&i.console.warn,["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"]),Y={};if(X.forEach((function(t){if("string"==typeof e[t]){var i=e[t],r=n.querySelector(i);if(Y[t]=i,!r||!r.nodeName)return;e[t]=r}})),!(e.container.children.length<1)){var K=e.responsive,Q=e.nested,J="carousel"===e.mode;if(K){0 in K&&(e=s(e,K[0]),delete K[0]);var Z={};for(var tt in K){var et=K[tt];et="number"==typeof et?{items:et}:et,Z[tt]=et}K=Z,Z=null}if(J||function t(e){for(var n in e)J||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(e),!J){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var nt=e.animateIn,it=e.animateOut,rt=e.animateDelay,ot=e.animateNormal}var at,st,lt="horizontal"===e.axis,ct=n.createElement("div"),ut=n.createElement("div"),dt=e.container,ht=dt.parentNode,pt=dt.outerHTML,ft=dt.children,mt=ft.length,gt=Pn(),vt=!1;K&&Zn(),J&&(dt.className+=" tns-vpfix");var yt,bt,_t,wt,Tt,St,Ct,kt,xt=e.autoWidth,Et=jn("fixedWidth"),$t=jn("edgePadding"),It=jn("gutter"),Ot=Mn(),At=jn("center"),Pt=xt?1:Math.floor(jn("items")),Dt=jn("slideBy"),Lt=e.viewportMax||e.fixedWidthViewportWidth,Mt=jn("arrowKeys"),Nt=jn("speed"),jt=e.rewind,Ut=!jt&&e.loop,Rt=jn("autoHeight"),Bt=jn("controls"),Ft=jn("controlsText"),zt=jn("nav"),Ht=jn("touch"),qt=jn("mouseDrag"),Vt=jn("autoplay"),Wt=jn("autoplayTimeout"),Gt=jn("autoplayText"),Xt=jn("autoplayHoverPause"),Yt=jn("autoplayResetOnVisibility"),Kt=(Ct=jn("nonce"),kt=document.createElement("style"),Ct&&kt.setAttribute("nonce",Ct),document.querySelector("head").appendChild(kt),kt.sheet?kt.sheet:kt.styleSheet),Qt=e.lazyload,Jt=e.lazyloadSelector,Zt=[],te=Ut?(Tt=function(){if(xt||Et&&!Lt)return mt-1;var t=Et?"fixedWidth":"items",n=[];if((Et||e[t]<mt)&&n.push(e[t]),K)for(var i in K){var r=K[i][t];r&&(Et||r<mt)&&n.push(r)}return n.length||n.push(0),Math.ceil(Et?Lt/Math.min.apply(null,n):Math.max.apply(null,n))}(),St=J?Math.ceil((5*Tt-mt)/2):4*Tt-mt,St=Math.max(Tt,St),Nn("edgePadding")?St+1:St):0,ee=J?mt+2*te:mt+te,ne=!(!Et&&!xt||Ut),ie=Et?ki():null,re=!J||!Ut,oe=lt?"left":"top",ae="",se="",le=Et?function(){return At&&!Ut?mt-1:Math.ceil(-ie/(Et+It))}:xt?function(){for(var t=0;t<ee;t++)if(yt[t]>=-ie)return t}:function(){return At&&J&&!Ut?mt-1:Ut||J?Math.max(0,ee-Math.ceil(Pt)):ee-1},ce=In(jn("startIndex")),ue=ce,de=($n(),0),he=xt?null:le(),pe=e.preventActionWhenRunning,fe=e.swipeAngle,me=!fe||"?",ge=!1,ve=e.onInit,ye=new j,be=" tns-sli
2der tns-"+e.mode,_e=dt.id||(wt=window.tnsId,window.tnsId=wt?wt+1:1,"tns"+window.tnsId),we=jn("disable"),Te=!1,Se=e.freezable,Ce=!(!Se||xt)&&Jn(),ke=!1,xe={click:Li,keydown:function(t){t=zi(t);var e=[o.LEFT,o.RIGHT].indexOf(t.keyCode);e>=0&&(0===e?Xe.disabled||Li(t,-1):Ye.disabled||Li(t,1))}},Ee={click:function(t){if(ge){if(pe)return;Pi()}for(var e=Hi(t=zi(t));e!==Ze&&!w(e,"data-nav");)e=e.parentNode;if(w(e,"data-nav")){var n=rn=Number(T(e,"data-nav")),i=Et||xt?n*mt/en:n*Pt;Di(Me?n:Math.min(Math.ceil(i),mt-1),t),on===n&&(dn&&Ri(),rn=-1)}},keydown:function(t){t=zi(t);var e=n.activeElement;if(w(e,"data-nav")){var i=[o.LEFT,o.RIGHT,o.ENTER,o.SPACE].indexOf(t.keyCode),r=Number(T(e,"data-nav"));i>=0&&(0===i?r>0&&Fi(Je[r-1]):1===i?r<en-1&&Fi(Je[r+1]):(rn=r,Di(r,t)))}}},$e={mouseover:function(){dn&&(Ni(),hn=!0)},mouseout:function(){hn&&(Mi(),hn=!1)}},Ie={visibilitychange:function(){n.hidden?dn&&(Ni(),fn=!0):fn&&(Mi(),fn=!1)}},Oe={keydown:function(t){t=zi(t);var e=[o.LEFT,o.RIGHT].indexOf(t.keyCode);e>=0&&Li(t,0===e?-1:1)}},Ae={touchstart:Gi,touchmove:Xi,touchend:Ki,touchcancel:Ki},Pe={mousedown:Gi,mousemove:Xi,mouseup:Ki,mouseleave:Ki},De=Nn("controls"),Le=Nn("nav"),Me=!!xt||e.navAsThumbnails,Ne=Nn("autoplay"),je=Nn("touch"),Ue=Nn("mouseDrag"),Re="tns-slide-active",Be="tns-slide-cloned",Fe="tns-complete",ze={load:function(t){li(Hi(t))},error:function(t){var e;e=Hi(t),b(e,"failed"),ci(e)}},He="force"===e.preventScrollOnTouch;if(De)var qe,Ve,We=e.controlsContainer,Ge=e.controlsContainer?e.controlsContainer.outerHTML:"",Xe=e.prevButton,Ye=e.nextButton,Ke=e.prevButton?e.prevButton.outerHTML:"",Qe=e.nextButton?e.nextButton.outerHTML:"";if(Le)var Je,Ze=e.navContainer,tn=e.navContainer?e.navContainer.outerHTML:"",en=xt?mt:Ji(),nn=0,rn=-1,on=An(),an=on,sn="tns-nav-active",ln="Carousel Page ",cn=" (Current Slide)";if(Ne)var un,dn,hn,pn,fn,mn="forward"===e.autoplayDirection?1:-1,gn=e.autoplayButton,vn=e.autoplayButton?e.autoplayButton.outerHTML:"",yn=["<span class='tns-visually-hidden'>"," animation</span>"];if(je||Ue)var bn,_n,wn={},Tn={},Sn=!1,Cn=lt?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};xt||En(we||Ce),B&&(oe=B,ae="translate",F?(ae+=lt?"3d(":"3d(0px, ",se=lt?", 0px, 0px)":", 0px)"):(ae+=lt?"X(":"Y(",se=")")),J&&(dt.className=dt.className.replace("tns-vpfix","")),function(){if(Nn("gutter"),ct.className="tns-outer",ut.className="tns-inner",ct.id=_e+"-ow",ut.id=_e+"-iw",""===dt.id&&(dt.id=_e),be+=L||xt?" tns-subpixel":" tns-no-subpixel",be+=D?" tns-calc":" tns-no-calc",xt&&(be+=" tns-autowidth"),be+=" tns-"+e.axis,dt.className+=be,J?((at=n.createElement("div")).id=_e+"-mw",at.className="tns-ovh",ct.appendChild(at),at.appendChild(ut)):ct.appendChild(ut),Rt&&((at||ut).className+=" tns-ah"),ht.insertBefore(ct,dt),ut.appendChild(dt),g(ft,(function(t,e){b(t,"tns-item"),t.id||(t.id=_e+"-item"+e),!J&&ot&&b(t,ot),C(t,{"aria-hidden":"true",tabindex:"-1"}),C(t.querySelectorAll("a, button, details, input, textarea, select"),{"aria-hidden":"true",tabindex:"-1"})})),te){for(var t=n.createDocumentFragment(),i=n.createDocumentFragment(),r=te;r--;){var o=r%mt,a=ft[o].cloneNode(!0);if(b(a,Be),k(a,"id"),i.insertBefore(a,i.firstChild),J){var s=ft[mt-1-o].cloneNode(!0);b(s,Be),k(s,"id"),t.appendChild(s)}}dt.insertBefore(t,dt.firstChild),dt.appendChild(i),ft=dt.children}}(),function(){if(!J)for(var t=ce,n=ce+Math.min(mt,Pt);t<n;t++){var r=ft[t];r.style.left=100*(t-ce)/Pt+"%",b(r,nt),_(r,ot)}if(lt&&(L||xt?(f(Kt,"#"+_e+" > .tns-item","font-size:"+i.getComputedStyle(ft[0]).fontSize+";",m(Kt)),f(Kt,"#"+_e,"font-size:0;",m(Kt))):J&&g(ft,(function(t,e){t.style.marginLeft=function(t){return D?D+"("+100*t+"% / "+ee+")":100*t/ee+"%"}(e)}))),R){if(z){var o=at&&e.autoHeight?Hn(e.speed):"";f(Kt,"#"+_e+"-mw",o,m(Kt))}o=Un(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),f(Kt,"#"+_e+"-iw",o,m(Kt)),J&&(o=lt&&!xt?"width:"+Rn(e.fixedWidth,e.gutter,e.items)+";":"",z&&(o+=Hn(Nt)),f(Kt,"#"+_e,o,m(Kt))),o=lt&&!xt?Bn(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(o+=Fn(e.gutter)),J||(z&&(o+=Hn(Nt)),q&&(o+=qn(Nt))),o&&f(Kt,"#"+_e+" > .tns-item",o,m(Kt))}else J&&Rt&&(at.style[z]=Nt/1e3+"s"),ut.style.cssText=Un($t,It,Et,Rt),J&<&&!xt&&(dt.style.width=Rn(Et,It,Pt)),o=lt&&!xt?Bn(Et,It,Pt):"",It&&(o+=Fn(It)),o&&f(Kt,"#"+_e+" > .tns-item",o,m(Kt));if(K&&R)for(var a in K){a=parseInt(a);var s=K[a],l=(o="",""),c="",u="",d="",h=xt?null:jn("items",a),p=jn("fixedWidth",a),v=jn("speed",a),y=jn("edgePadding",a),w=jn("autoHeight",a),T=jn("gutter",a);
vendor: 10,579 bytes, line 2
2z&&at&&jn("autoHeight",a)&&"speed"in s&&(l="#"+_e+"-mw{"+Hn(v)+"}"),("edgePadding"in s||"gutter"in s)&&(c="#"+_e+"-iw{"+Un(y,T,p,v,w)+"}"),J&<&&!xt&&("fixedWidth"in s||"items"in s||Et&&"gutter"in s)&&(u="width:"+Rn(p,T,h)+";"),z&&"speed"in s&&(u+=Hn(v)),u&&(u="#"+_e+"{"+u+"}"),("fixedWidth"in s||Et&&"gutter"in s||!J&&"items"in s)&&(d+=Bn(p,T,h)),"gutter"in s&&(d+=Fn(T)),!J&&"speed"in s&&(z&&(d+=Hn(v)),q&&(d+=qn(v))),d&&(d="#"+_e+" > .tns-item{"+d+"}"),(o=l+c+u+d)&&Kt.insertRule("@media (min-width: "+a/16+"em) {"+o+"}",Kt.cssRules.length)}}(),Vn();var kn=Ut?J?function(){var t=de,e=he;t+=Dt,e-=Dt,$t?(t+=1,e-=1):Et&&(Ot+It)%(Et+It)&&(e-=1),te&&(ce>e?ce-=mt:ce<t&&(ce+=mt))}:function(){if(ce>he)for(;ce>=de+mt;)ce-=mt;else if(ce<de)for(;ce<=he-mt;)ce+=mt}:function(){ce=Math.max(de,Math.min(he,ce))},xn=J?function(){var t,e,n,i,r,o,a,s,l,c,u;Si(dt,""),z||!Nt?($i(),Nt&&I(dt)||Pi()):(t=dt,e=oe,n=ae,i=se,r=xi(),o=Nt,a=Pi,s=Math.min(o,10),l=r.indexOf("%")>=0?"%":"px",r=r.replace(l,""),c=Number(t.style[e].replace(n,"").replace(i,"").replace(l,"")),u=(r-c)/o*s,setTimeout((function r(){o-=s,c+=u,t.style[e]=n+c+l+i,o>0?setTimeout(r,s):a()}),s)),lt||Qi()}:function(){Zt=[];var t={};t[W]=t[G]=Pi,N(ft[ue],t),M(ft[ce],t),Ii(ue,nt,it,!0),Ii(ce,ot,nt),W&&G&&Nt&&I(dt)||Pi()};return{version:"2.9.3",getInfo:tr,events:ye,goTo:Di,play:function(){Vt&&!dn&&(Ui(),pn=!1)},pause:function(){dn&&(Ri(),pn=!0)},isOn:vt,updateSliderHeight:mi,refresh:Vn,destroy:function(){if(Kt.disabled=!0,Kt.ownerNode&&Kt.ownerNode.remove(),N(i,{resize:Kn}),Mt&&N(n,Oe),We&&N(We,xe),Ze&&N(Ze,Ee),N(dt,$e),N(dt,Ie),gn&&N(gn,{click:Bi}),Vt&&clearInterval(un),J&&W){var t={};t[W]=Pi,N(dt,t)}Ht&&N(dt,Ae),qt&&N(dt,Pe);var r=[pt,Ge,Ke,Qe,tn,vn];for(var o in X.forEach((function(t,n){var i="container"===t?ct:e[t];if("object"===U(i)&&i){var o=!!i.previousElementSibling&&i.previousElementSibling,a=i.parentNode;i.outerHTML=r[n],e[t]=o?o.nextElementSibling:a.firstElementChild}})),X=nt=it=rt=ot=lt=ct=ut=dt=ht=pt=ft=mt=st=gt=xt=Et=$t=It=Ot=Pt=Dt=Lt=Mt=Nt=jt=Ut=Rt=Kt=Qt=yt=Zt=te=ee=ne=ie=re=oe=ae=se=le=ce=ue=de=he=fe=me=ge=ve=ye=be=_e=we=Te=Se=Ce=ke=xe=Ee=$e=Ie=Oe=Ae=Pe=De=Le=Me=Ne=je=Ue=Re=Fe=ze=bt=Bt=Ft=We=Ge=Xe=Ye=qe=Ve=zt=Ze=tn=Je=en=nn=rn=on=an=sn=ln=cn=Vt=Wt=mn=Gt=Xt=gn=vn=Yt=yn=un=dn=hn=pn=fn=wn=Tn=bn=Sn=_n=Cn=Ht=qt=null,this)"rebuild"!==o&&(this[o]=null);vt=!1},rebuild:function(){return t(s(e,Y))}}}function En(t){t&&(Bt=zt=Ht=qt=Mt=Vt=Xt=Yt=!1)}function $n(){for(var t=J?ce-te:ce;t<0;)t+=mt;return t%mt+1}function In(t){return t=t?Math.max(0,Math.min(Ut?mt-1:mt-Pt,t)):0,J?t+te:t}function On(t){for(null==t&&(t=ce),J&&(t-=te);t<0;)t+=mt;return Math.floor(t%mt)}function An(){var t,e=On();return t=Me?e:Et||xt?Math.ceil((e+1)*en/mt-1):Math.floor(e/Pt),!Ut&&J&&ce===he&&(t=en-1),t}function Pn(){return i.innerWidth||n.documentElement.clientWidth||n.body.clientWidth}function Dn(t){return"top"===t?"afterbegin":"beforeend"}function Ln(t){if(null!=t){var e,i,r=n.createElement("div");if(t.appendChild(r),i=(e=r.getBoundingClientRect()).right-e.left,r.remove(),i)return i;null!==t.parentNode.parentNode&&Ln(t.parentNode)}}function Mn(){var t=$t?2*$t-It:0;return Ln(ht)-t}function Nn(t){if(e[t])return!0;if(K)for(var n in K)if(K[n][t])return!0;return!1}function jn(t,n){if(null==n&&(n=gt),"items"===t&&Et)return Math.floor((Ot+It)/(Et+It))||1;var i=e[t];if(K)for(var r in K)n>=parseInt(r)&&t in K[r]&&(i=K[r][t]);return"slideBy"===t&&"page"===i&&(i=jn("items")),J||"slideBy"!==t&&"items"!==t||(i=Math.floor(i)),i}function Un(t,e,n,i,r){var o="";if(void 0!==t){var a=t;e&&(a-=e),o=lt?"margin: 0 "+a+"px 0 "+t+"px;":"margin: "+t+"px 0 "+a+"px 0;"}else if(e&&!n){var s="-"+e+"px";o="margin: 0 "+(lt?s+" 0 0":"0 "+s+" 0")+";"}return!J&&r&&z&&i&&(o+=Hn(i)),o}function Rn(t,e,n){return t?(t+e)*ee+"px":D?D+"("+100*ee+"% / "+n+")":100*ee/n+"%"}function Bn(t,e,n){var i;if(t)i=t+e+"px";else{J||(n=Math.floor(n));var r=J?ee:n;i=D?D+"(100% / "+r+")":100/r+"%"}return i="width:"+i,"inner"!==Q?i+";":i+" !important;"}function Fn(t){var e="";return!1!==t&&(e=(lt?"padding-":"margin-")+(lt?"right":"bottom")+": "+t+"px;"),e}function zn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n&&(n="-"+n+"-"),n}function Hn(t){return zn(z,18)+"transition-duration:"+t/1e3+"s;"}function qn(t){return zn(q,17)+"animation-duration:"+t/1e3+"s;"}function Vn(){if(Nn("autoHeight")||xt||!lt){var t=dt.querySelectorAll("img");g(t,(function(t){var e=t.src;Qt||(e&&e.indexOf("data:image")<0?(t.src="",M(t,ze),b(t,"loading"),t.src=e):li(t))})),r((function(){hi(x(t),(function(){bt=!0}))})),Nn("autoHeight")&&(t=ui(ce,Math.min(ce+Pt-1,ee-1))),Qt?Wn():r((function(){hi(x(t),Wn)}))}else J&&Ei(),Xn(),Yn()}function Wn(){if(xt&&mt>1){var t=Ut?ce:mt-1;!function e(){var n=ft[t].getBoundingClientRect().left,i=ft[t-1].getBoundingClientRect().right;Math.abs(n-i)<=1?Gn():setTimeout((function(){e()}),16)}()}else Gn()}function Gn(){lt&&!xt||(gi(),xt?(ie=ki(),Se&&(Ce=Jn()),he=le(),En(we||Ce)):Qi()),J&&Ei(),Xn(),Yn()}function Xn(){if(vi(),ct.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+oi()+"</span> of "+mt+"</div>"),_t=ct.querySelector(".tns-liveregion .current"),Ne){var t=Vt?"stop":"start";gn?C(gn,{"data-action":t}):e.autoplayButtonOutput&&(ct.insertAdjacentHTML(Dn(e.autoplayPosition),'<button type="button" data-action="'+t+'">'+yn[0]+t+yn[1]+Gt[0]+"</button>"),gn=ct.querySelector("[data-action]")),gn&&M(gn,{click:Bi}),Vt&&(Ui(),Xt&&M(dt,$e),Yt&&M(dt,Ie))}if(Le){if(Ze)C(Ze,{"aria-label":"Carousel Pagination"}),g(Je=Ze.children,(function(t,e){C(t,{"data-nav":e,tabindex:"-1","aria-label":ln+(e+1),"aria-controls":_e})}));else{for(var n="",i=Me?"":'style="display:none"',r=0;r<mt;r++)n+='<button type="button" data-nav="'+r+'" tabindex="-1" aria-controls="'+_e+'" '+i+' aria-label="'+ln+(r+1)+'"></button>';n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>",ct.insertAdjacentHTML(Dn(e.navPosition),n),Ze=ct.querySelector(".tns-nav"),Je=Ze.children}if(Zi(),z){var o=z.substring(0,z.length-18).toLowerCase(),a="transition: all "+Nt/1e3+"s";o&&(a="-"+o+"-"+a),f(Kt,"[aria-controls^="+_e+"-item]",a,m(Kt))}C(Je[on],{"aria-label":ln+(on+1)+cn}),k(Je[on],"tabindex"),b(Je[on],sn),M(Ze,Ee)}De&&(We||Xe&&Ye||(ct.insertAdjacentHTML(Dn(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+_e+'">'+Ft[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+_e+'">'+Ft[1]+"</button></div>"),We=ct.querySelector(".tns-controls")),Xe&&Ye||(Xe=We.children[0],Ye=We.children[1]),e.controlsContainer&&C(We,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&C([Xe,Ye],{"aria-controls":_e,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(C(Xe,{"data-controls":"prev"}),C(Ye,{"data-controls":"next"})),qe=bi(Xe),Ve=bi(Ye),Ti(),We?M(We,xe):(M(Xe,xe),M(Ye,xe))),ti()}function Yn(){if(J&&W){var t={};t[W]=Pi,M(dt,t)}Ht&&M(dt,Ae,e.preventScrollOnTouch),qt&&M(dt,Pe),Mt&&M(n,Oe),"inner"===Q?ye.on("outerResized",(function(){Qn(),ye.emit("innerLoaded",tr())})):(K||Et||xt||Rt||!lt)&&M(i,{resize:Kn}),Rt&&("outer"===Q?ye.on("innerLoaded",di):we||di()),si(),we?ii():Ce&&ni(),ye.on("indexChanged",pi),"inner"===Q&&ye.emit("innerLoaded",tr()),"function"==typeof ve&&ve(tr()),vt=!0}function Kn(t){r((function(){Qn(zi(t))}))}function Qn(t){if(vt){"outer"===Q&&ye.emit("outerResized",tr(t)),gt=Pn();var i,r=st,o=!1;K&&(Zn(),(i=r!==st)&&ye.emit("newBreakpointStart",tr(t)));var a,s,l=Pt,c=we,u=Ce,d=Mt,h=Bt,p=zt,v=Ht,y=qt,w=Vt,T=Xt,S=Yt,C=ce;if(i){var k=Et,x=Rt,I=Ft,O=At,A=Gt;if(!R)var P=It,D=$t}if(Mt=jn("arrowKeys"),Bt=jn("controls"),zt=jn("nav"),Ht=jn("touch"),At=jn("center"),qt=jn("mouseDrag"),Vt=jn("autoplay"),Xt=jn("autoplayHoverPause"),Yt=jn("autoplayResetOnVisibility"),i&&(we=jn("disable"),Et=jn("fixedWidth"),Nt=jn("speed"),Rt=jn("autoHeight"),Ft=jn("controlsText"),Gt=jn("autoplayText"),Wt=jn("autoplayTimeout"),R||($t=jn("edgePadding"),It=jn("gutter"))),En(we),Ot=Mn(),lt&&!xt||we||(gi(),lt||(Qi(),o=!0)),(Et||xt)&&(ie=ki(),he=le()),(i||Et)&&(Pt=jn("items"),Dt=jn("slideBy"),(s=Pt!==l)&&(Et||xt||(he=le()),kn())),i&&we!==c&&(we?ii():function(){if(Te){if(Kt.disabled=!1,dt.className+=be,Ei(),Ut)for(var t=te;t--;)J&&$(ft[t]),$(ft[ee-t-1]);if(!J)for(var e=ce,n=ce+mt;e<n;e++){var i=ft[e],r=e<ce+Pt?nt:ot;i.style.left=100*(e-ce)/Pt+"%",b(i,r)}ei(),Te=!1}}()),Se&&(i||Et||xt)&&(Ce=Jn())!==u&&(Ce?($i(xi(In(0))),ni()):(function(){if(ke){if($t&&R&&(ut.style.margin=""),te)for(var t="tns-transparent",e=te;e--;)J&&_(ft[e],t),_(ft[ee-e-1],t);ei(),ke=!1}}(),o=!0)),En(we||Ce),Vt||(Xt=Yt=!1),Mt!==d&&(Mt?M(n,Oe):N(n,Oe)),Bt!==h&&(Bt?We?$(We):(Xe&&$(Xe),Ye&&$(Ye)):We?E(We):(Xe&&E(Xe),Ye&&E(Ye))),zt!==p&&(zt?($(Ze),Zi()):E(Ze)),Ht!==v&&(Ht?M(dt,Ae,e.preventScrollOnTouch):N(dt,Ae)),qt!==y&&(qt?M(dt,Pe):N(dt,Pe)),Vt!==w&&(Vt?(gn&&$(gn),dn||pn||Ui()):(gn&&E(gn),dn&&Ri())),Xt!==T&&(Xt?M(dt,$e):N(dt,$e)),Yt!==S&&(Yt?M(n,Ie):N(n,Ie)),i){if(Et===k&&At===O||(o=!0),Rt!==x&&(Rt||(ut.style.height="")),Bt&&Ft!==I&&(Xe.innerHTML=Ft[0],Ye.innerHTML=Ft[1]),gn&&Gt!==A){var L=Vt?1:0,j=gn.innerHTML,U=j.length-A[L].length;j.substring(U)===A[L]&&(gn.innerHTML=j.substring(0,U)+Gt[L])}}else At&&(Et||xt)&&(o=!0);if((s||Et&&!xt)&&(en=Ji(),Zi()),(a=ce!==C)?(ye.emit("indexChanged",tr()),o=!0):s?a||pi():(Et||xt)&&(si(),vi(),ri()),s&&!J&&function(){for(var t=ce+Math.min(mt,Pt),e=ee;e--;){var n=ft[e];e>=ce&&e<t?(b(n,"tns-moving"),n.style.left=100*(e-ce)/Pt+"%",b(n,nt),_(n,ot)):n.style.left&&(n.style.left="",b(n,ot),_(n,nt)),_(n,it)}setTimeout((function(){g(ft,(function(t){_(t,"tns-moving")}))}),300)}(),!we&&!Ce){if(i&&!R&&($t===D&&It===P||(ut.style.cssText=Un($t,It,Et,Nt,Rt)),lt)){J&&(dt.style.width=Rn(Et,It,Pt));var B=Bn(Et,It,Pt)+Fn(It);!function(t,e){"deleteRule"in t?t.deleteRule(e):t.removeRule(e)}(Kt,m(Kt)-1),f(Kt,"#"+_e+" > .tns-item",B,m(Kt))}Rt&&di(),o&&(Ei(),ue=ce)}i&&ye.emit("newBreakpointEnd",tr(t))}}function Jn(){if(!Et&&!xt)return mt<=(At?Pt-(Pt-1)/2:Pt);var t=Et?(Et+It)*mt:yt[mt],e=$t?Ot+2*$t:Ot+It;return At&&(e-=Et?(Ot-Et)/2:(Ot-(yt[ce+1]-yt[ce]-It))/2),t<=e}function Zn(){for(var t in st=0,K)t=parseInt(t),gt>=t&&(st=t)}function ti(){!Vt&&gn&&E(gn),!zt&&Ze&&E(Ze),Bt||(We?E(We):(Xe&&E(Xe),Ye&&E(Ye)))}function ei(){Vt&&gn&&$(gn),zt&&Ze&&$(Ze),Bt&&(We?$(We):(Xe&&$(Xe),Ye&&$(Ye)))}function ni(){if(!ke){if($t&&(ut.style.margin="0px"),te)for(var t="tns-transparent",e=te;e--;)J&&b(ft[e],t),b(ft[ee-e-1],t);
2ti(),ke=!0}}function ii(){if(!Te){if(Kt.disabled=!0,dt.className=dt.className.replace(be.substring(1),""),k(dt,["style"]),Ut)for(var t=te;t--;)J&&E(ft[t]),E(ft[ee-t-1]);if(lt&&J||k(ut,["style"]),!J)for(var e=ce,n=ce+mt;e<n;e++){var i=ft[e];k(i,["style"]),_(i,nt),_(i,ot)}ti(),Te=!0}}function ri(){var t=oi();_t.innerHTML!==t&&(_t.innerHTML=t)}function oi(){var t=ai(),e=t[0]+1,n=t[1]+1;return e===n?e+"":e+" to "+n}function ai(t){null==t&&(t=xi());var e,n,i,r=ce;if(At||$t?(xt||Et)&&(n=-(parseFloat(t)+$t),i=n+Ot+2*$t):xt&&(n=yt[ce],i=n+Ot),xt)yt.forEach((function(t,o){o<ee&&((At||$t)&&t<=n+.5&&(r=o),i-t>=.5&&(e=o))}));else{if(Et){var o=Et+It;At||$t?(r=Math.floor(n/o),e=Math.ceil(i/o-1)):e=r+Math.ceil(Ot/o)-1}else if(At||$t){var a=Pt-1;if(At?(r-=a/2,e=ce+a/2):e=ce+a,$t){var s=$t*Pt/Ot;r-=s,e+=s}r=Math.floor(r),e=Math.ceil(e)}else e=r+Pt-1;r=Math.max(r,0),e=Math.min(e,ee-1)}return[r,e]}function si(){if(Qt&&!we){var t=ai();t.push(Jt),ui.apply(null,t).forEach((function(t){if(!y(t,Fe)){var e={};e[W]=function(t){t.stopPropagation()},M(t,e),M(t,ze),t.src=T(t,"data-src");var n=T(t,"data-srcset");n&&(t.srcset=n),b(t,"loading")}}))}}function li(t){b(t,"loaded"),ci(t)}function ci(t){b(t,Fe),_(t,"loading"),N(t,ze)}function ui(t,e,n){var i=[];for(n||(n="img");t<=e;)g(ft[t].querySelectorAll(n),(function(t){i.push(t)})),t++;return i}function di(){var t=ui.apply(null,ai());r((function(){hi(t,mi)}))}function hi(t,e){return bt?e():(t.forEach((function(e,n){!Qt&&e.complete&&ci(e),y(e,Fe)&&t.splice(n,1)})),t.length?void r((function(){hi(t,e)})):e())}function pi(){si(),vi(),ri(),Ti(),function(){if(zt&&(on=rn>=0?rn:An(),rn=-1,on!==an)){var t=Je[an],e=Je[on];C(t,{tabindex:"-1","aria-label":ln+(an+1)}),_(t,sn),C(e,{"aria-label":ln+(on+1)+cn}),k(e,"tabindex"),b(e,sn),an=on}}()}function fi(t,e){for(var n=[],i=t,r=Math.min(t+e,ee);i<r;i++)n.push(ft[i].offsetHeight);return Math.max.apply(null,n)}function mi(){var t=Rt?fi(ce,Pt):fi(te,mt),e=at||ut;e.style.height!==t&&(e.style.height=t+"px")}function gi(){yt=[0];var t=lt?"left":"top",e=lt?"right":"bottom",n=ft[0].getBoundingClientRect()[t];g(ft,(function(i,r){r&&yt.push(i.getBoundingClientRect()[t]-n),r===ee-1&&yt.push(i.getBoundingClientRect()[e]-n)}))}function vi(){var t=ai(),e=t[0],n=t[1];g(ft,(function(t,i){i>=e&&i<=n?w(t,"aria-hidden")&&(k(t,["aria-hidden","tabindex"]),k(t.querySelectorAll("a, button, details, input, textarea, select"),["aria-hidden","tabindex"]),b(t,Re)):w(t,"aria-hidden")||(C(t,{"aria-hidden":"true",tabindex:"-1"}),C(t.querySelectorAll("a, button, details, input, textarea, select"),{"aria-hidden":"true",tabindex:"-1"}),_(t,Re))}))}function yi(t){return t.nodeName.toLowerCase()}function bi(t){return"button"===yi(t)}function _i(t){return"true"===t.getAttribute("aria-disabled")}function wi(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function Ti(){if(Bt&&!jt&&!Ut){var t=qe?Xe.disabled:_i(Xe),e=Ve?Ye.disabled:_i(Ye),n=ce<=de,i=!jt&&ce>=he;n&&!t&&wi(qe,Xe,!0),!n&&t&&wi(qe,Xe,!1),i&&!e&&wi(Ve,Ye,!0),!i&&e&&wi(Ve,Ye,!1)}}function Si(t,e){z&&(t.style[z]=e)}function Ci(t){return null==t&&(t=ce),xt?(Ot-($t?It:0)-(yt[t+1]-yt[t]-It))/2:Et?(Ot-Et)/2:(Pt-1)/2}function ki(){var t=Ot+($t?It:0)-(Et?(Et+It)*ee:yt[ee]);return At&&!Ut&&(t=Et?-(Et+It)*(ee-1)-Ci():Ci(ee-1)-yt[ee-1]),t>0&&(t=0),t}function xi(t){var e;if(null==t&&(t=ce),lt&&!xt)if(Et)e=-(Et+It)*t,At&&(e+=Ci());else{var n=B?ee:Pt;At&&(t-=Ci()),e=100*-t/n}else e=-yt[t],At&&xt&&(e+=Ci());return ne&&(e=Math.max(e,ie)),e+(!lt||xt||Et?"px":"%")}function Ei(t){Si(dt,"0s"),$i(t)}function $i(t){null==t&&(t=xi()),dt.style[oe]=ae+t+se}function Ii(t,e,n,i){var r=t+Pt;Ut||(r=Math.min(r,ee));for(var o=t;o<r;o++){var a=ft[o];i||(a.style.left=100*(o-ce)/Pt+"%"),rt&&H&&(a.style[H]=a.style[V]=rt*(o-t)/1e3+"s"),_(a,e),b(a,n),i&&Zt.push(a)}}function Oi(t,e){re&&kn(),(ce!==ue||e)&&(ye.emit("indexChanged",tr()),ye.emit("transitionStart",tr()),Rt&&di(),dn&&t&&["click","keydown"].indexOf(t.type)>=0&&Ri(),ge=!0,xn())}function Ai(t){return t.toLowerCase().replace(/-/g,"")}function Pi(t){if(J||ge){if(ye.emit("transitionEnd",tr(t)),!J&&Zt.length>0)for(var e=0;e<Zt.length;e++){var n=Zt[e];n.style.left="",V&&H&&(n.style[V]="",n.style[H]=""),_(n,it),b(n,ot)}if(!t||!J&&t.target.parentNode===dt||t.target===dt&&Ai(t.propertyName)===Ai(oe)){if(!re){var i=ce;kn(),ce!==i&&(ye.emit("indexChanged",tr()),Ei())}"inner"===Q&&ye.emit("innerLoaded",tr()),ge=!1,ue=ce}}}function Di(t,e){if(!Ce)if("prev"===t)Li(e,-1);else if("next"===t)Li(e,1);else{if(ge){if(pe)return;Pi()}var n=On(),i=0;if("first"===t?i=-n:"last"===t?i=J?mt-Pt-n:mt-1-n:("number"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(mt-1,t))),i=t-n)),!J&&i&&Math.abs(i)<Pt){var r=i>0?1:-1;i+=ce+i-mt>=de?mt*r:2*mt*r*-1}ce+=i,J&&Ut&&(ce<de&&(ce+=mt),ce>he&&(ce-=mt)),On(ce)!==On(ue)&&Oi(e)}}function Li(t,e){if(ge){if(pe)return;Pi()}var n;if(!e){for(var i=Hi(t=zi(t));i!==We&&[Xe,Ye].indexOf(i)<0;)i=i.parentNode;var r=[Xe,Ye].indexOf(i);r>=0&&(n=!0,e=0===r?-1:1)}if(jt){if(ce===de&&-1===e)return void Di("last",t);if(ce===he&&1===e)return void Di("first",t)}e&&(ce+=Dt*e,xt&&(ce=Math.floor(ce)),Oi(n||t&&"keydown"===t.type?t:null))}function Mi(){un=setInterval((function(){Li(null,mn)}),Wt),dn=!0}function Ni(){clearInterval(un),dn=!1}function ji(t,e){C(gn,{"data-action":t}),gn.innerHTML=yn[0]+t+yn[1]+e}function Ui(){Mi(),gn&&ji("stop",Gt[1])}function Ri(){Ni(),gn&&ji("start",Gt[0])}function Bi(){dn?(Ri(),pn=!0):(Ui(),pn=!1)}function Fi(t){t.focus()}function zi(t){return qi(t=t||i.event)?t.changedTouches[0]:t}function Hi(t){return t.target||i.event.srcElement}function qi(t){return t.type.indexOf("touch")>=0}function Vi(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Wi(){return o=Tn.y-wn.y,a=Tn.x-wn.x,t=Math.atan2(o,a)*(180/Math.PI),n=fe,i=!1,(r=Math.abs(90-Math.abs(t)))>=90-n?i="horizontal":r<=n&&(i="vertical"),i===e.axis;var t,n,i,r,o,a}function Gi(t){if(ge){if(pe)return;Pi()}Vt&&dn&&Ni(),Sn=!0,_n&&(a(_n),_n=null);var e=zi(t);ye.emit(qi(t)?"touchStart":"dragStart",tr(t)),!qi(t)&&["img","a"].indexOf(yi(Hi(t)))>=0&&Vi(t),Tn.x=wn.x=e.clientX,Tn.y=wn.y=e.clientY,J&&(bn=parseFloat(dt.style[oe].replace(ae,"")),Si(dt,"0s"))}function Xi(t){if(Sn){var e=zi(t);Tn.x=e.clientX,Tn.y=e.clientY,J?_n||(_n=r((function(){Yi(t)}))):("?"===me&&(me=Wi()),me&&(He=!0)),("boolean"!=typeof t.cancelable||t.cancelable)&&He&&t.preventDefault()}}function Yi(t){if(me){if(a(_n),Sn&&(_n=r((function(){Yi(t)}))),"?"===me&&(me=Wi()),me){!He&&qi(t)&&(He=!0);try{t.type&&ye.emit(qi(t)?"touchMove":"dragMove",tr(t))}catch(t){}var e=bn,n=Cn(Tn,wn);!lt||Et||xt?(e+=n,e+="px"):(e+=B?n*Pt*100/((Ot+It)*ee):100*n/(Ot+It),e+="%"),dt.style[oe]=ae+e+se}}else Sn=!1}function Ki(t){if(Sn){_n&&(a(_n),_n=null),J&&Si(dt,""),Sn=!1;var n=zi(t);Tn.x=n.clientX,Tn.y=n.clientY;var i=Cn(Tn,wn);if(Math.abs(i)){if(!qi(t)){var o=Hi(t);M(o,{click:function t(e){Vi(e),N(o,{click:t})}})}J?_n=r((function(){if(lt&&!xt){var e=-i*Pt/(Ot+It);e=i>0?Math.floor(e):Math.ceil(e),ce+=e}else{var n=-(bn+i);if(n<=0)ce=de;else if(n>=yt[ee-1])ce=he;else for(var r=0;r<ee&&n>=yt[r];)ce=r,n>yt[r]&&i<0&&(ce+=1),r++}Oi(t,i),ye.emit(qi(t)?"touchEnd":"dragEnd",tr(t))})):me&&Li(t,i>0?-1:1)}}"auto"===e.preventScrollOnTouch&&(He=!1),fe&&(me="?"),Vt&&!dn&&Mi()}function Qi(){(at||ut).style.height=yt[ce+Pt]-yt[ce]+"px"}function Ji(){var t=Et?(Et+It)*mt/Ot:mt/Pt;return Math.min(Math.ceil(t),mt)}function Zi(){if(zt&&!Me&&en!==nn){var t=nn,e=en,n=$;for(nn>en&&(t=en,e=nn,n=E);t<e;)n(Je[t]),t++;nn=en}}function tr(t){return{container:dt,slideItems:ft,navContainer:Ze,navItems:Je,controlsContainer:We,hasControls:De,prevButton:Xe,nextButton:Ye,items:Pt,slideBy:Dt,cloneCount:te,slideCount:mt,slideCountNew:ee,index:ce,indexCached:ue,displayIndex:$n(),navCurrentIndex:on,navCurrentIndexCached:an,pages:en,pagesCached:nn,sheet:Kt,isOn:vt,event:t||{}}}}},22289:function(t,e,n){var i,r,o,a,s=n(23695).lW;function l(t){return l="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},l(t)}a=function(t,e){t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var n="7.8.4",i=[],r=function e(n){function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];o("log",a,e)}var o,a="info";return o=function(e,n){return function(r,o,a){var s=n.levels[o],l=new RegExp("^("+s+")$");if("log"!==r&&a.unshift(r.toUpperCase()+":"),a.unshift(e+":"),i){i.push([].concat(a));var c=i.length-1e3;i.splice(0,0<c?c:0)}if(t.console){var u=t.console[r];u||"debug"!==r||(u=t.console.info||t.console.log),u&&s&&l.test(r)&&u[Array.isArray(a)?"apply":"call"](t.console,a)}}}(n,r),r.createLogger=function(t){return e(n+": "+t)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},r.level=function(t){if("string"==typeof t){if(!r.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');a=t}return a},(r.history=function(){return i?[].concat(i):[]}).filter=function(t){return(i||[]).filter((function(e){return new RegExp(".*"+t+".*").test(e[0])}))},r.history.clear=function(){i&&(i.length=0)},r.history.disable=function(){null!==i&&(i.length=0,i=null)},r.history.enable=function(){null===i&&(i=[])},r.error=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return o("error",a,e)},r.warn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return o("warn",a,e)},r.debug=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return o("debug",a,e)},r}("VIDEOJS"),o=r.createLogger;function a(t,e){return t(e={exports:{}},e.exports),e.exports}var c=a((function(t){function e(){return t.exports=e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},e.apply(this,arguments)}t.exports=e})),u=Object.prototype.toString,d=function(t){return f(t)?Object.keys(t):[]};function h(t,e){d(t).forEach((function(n){return e(t[n],n)}))}function p(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return Object.assign?c.apply(void 0,[t].concat(n)):(n.forEach((function(e){e&&h(e,(function(e,n){t[n]=e}))})),t)}function f(t){return!!t&&"object"==l(t)}function m(t){return f(t)&&"[object Object]"===u.call(t)&&t.constructor===Object}function g(e,n){if(!e||!n)return"";if("function"!=typeof t.getComputedStyle)return"";var i=t.getComputedStyle(e);return i?i.getPropertyValue(n)||i[n]:""}function v(t){return"string"==typeof t&&Boolean(t.trim())}function y(t){if(0<=t.indexOf(" "))throw new Error("class has illegal whitespace characters")}function b(){return e===t.document}function _(t){return f(t)&&1===t.nodeType}function w(){try{return t.parent!==t.self}catch(t){return!0}}
2function T(t){return function(n,i){if(!v(n))return e[t](null);v(i)&&(i=e.querySelector(i));var r=_(i)?i:e;return r[t]&&r[t](n)}}function S(t,n,i,o){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={});var a=e.createElement(t);return Object.getOwnPropertyNames(n).forEach((function(t){var e=n[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(r.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+e+"."),a.setAttribute(t,e)):"textContent"===t?C(a,e):a[t]!==e&&(a[t]=e)})),Object.getOwnPropertyNames(i).forEach((function(t){a.setAttribute(t,i[t])})),o&&H(a,o),a}function C(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function k(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function x(t,e){return y(e),t.classList?t.classList.contains(e):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(e).test(t.className)}function E(t,e){return t.classList?t.classList.add(e):x(t,e)||(t.className=(t.className+" "+e).trim()),t}function $(t,e){return t.classList?t.classList.remove(e):(y(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t}function I(t,e,n){var i=x(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!i),n!==i)return n?E(t,e):$(t,e),t}function O(t,e){Object.getOwnPropertyNames(e).forEach((function(n){var i=e[n];null==i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)}))}function A(t){var e={};if(t&&t.attributes&&0<t.attributes.length)for(var n=t.attributes,i=n.length-1;0<=i;i--){var r=n[i].name,o=n[i].value;
vendor: 14,189 bytes, line 2
2"boolean"!=typeof t[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(o=null!==o),e[r]=o}return e}function P(t,e){return t.getAttribute(e)}function D(t,e,n){t.setAttribute(e,n)}function L(t,e){t.removeAttribute(e)}function M(){e.body.focus(),e.onselectstart=function(){return!1}}function N(){e.onselectstart=function(){return!0}}function j(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n.height||(n.height=parseFloat(g(t,"height"))),n.width||(n.width=parseFloat(g(t,"width"))),n}}function U(n){var i;if(n.getBoundingClientRect&&n.parentNode&&(i=n.getBoundingClientRect()),!i)return{left:0,top:0};var r=e.documentElement,o=e.body,a=r.clientLeft||o.clientLeft||0,s=t.pageXOffset||o.scrollLeft,l=i.left+s-a,c=r.clientTop||o.clientTop||0,u=t.pageYOffset||o.scrollTop,d=i.top+u-c;return{left:Math.round(l),top:Math.round(d)}}function R(t,e){var n={},i=U(t),r=t.offsetWidth,o=t.offsetHeight,a=i.top,s=i.left,l=e.pageY,c=e.pageX;return e.changedTouches&&(c=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-l+o)/o)),n.x=Math.max(0,Math.min(1,(c-s)/r)),n}function B(t){return f(t)&&3===t.nodeType}function F(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function z(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),_(t)||B(t)?t:"string"==typeof t&&/\S/.test(t)?e.createTextNode(t):void 0})).filter((function(t){return t}))}function H(t,e){return z(e).forEach((function(e){return t.appendChild(e)})),t}function q(t,e){return H(F(t),e)}function V(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||"mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons}var W,G=T("querySelector"),X=T("querySelectorAll"),Y=Object.freeze({__proto__:null,isReal:b,isEl:_,isInFrame:w,createEl:S,textContent:C,prependTo:k,hasClass:x,addClass:E,removeClass:$,toggleClass:I,setAttributes:O,getAttributes:A,getAttribute:P,setAttribute:D,removeAttribute:L,blockTextSelection:M,unblockTextSelection:N,getBoundingClientRect:j,findPosition:U,getPointerPosition:R,isTextNode:B,emptyEl:F,normalizeContent:z,appendContent:H,insertContent:q,isSingleLeftClick:V,$:G,$$:X}),K=!1,Q=function(){if(b()&&!1!==W.options.autoSetup){var t=Array.prototype.slice.call(e.getElementsByTagName("video")),n=Array.prototype.slice.call(e.getElementsByTagName("audio")),i=Array.prototype.slice.call(e.getElementsByTagName("video-js")),r=t.concat(n,i);if(r&&0<r.length)for(var o=0,a=r.length;o<a;o++){var s=r[o];if(!s||!s.getAttribute){J(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&W(s)}else K||J(1)}};function J(e,n){n&&(W=n),t.setTimeout(Q,e)}function Z(){K=!0,t.removeEventListener("load",Z)}function tt(t){var n=e.createElement("style");return n.className=t,n}function et(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}b()&&("complete"===e.readyState?Z():t.addEventListener("load",Z));var nt,it=3;function rt(){return it++}t.WeakMap||(nt=function(){function e(){this.vdata="vdata"+Math.floor(t.performance&&t.performance.now()||Date.now()),this.data={}}var n=e.prototype;return n.set=function(t,e){var n=t[this.vdata]||rt();return t[this.vdata]||(t[this.vdata]=n),this.data[n]=e,this},n.get=function(t){var e=t[this.vdata];if(e)return this.data[e];r("We have no data for this element",t)},n.has=function(t){return t[this.vdata]in this.data},n.delete=function(t){var e=t[this.vdata];e&&(delete this.data[e],delete t[this.vdata])},e}());var ot,at=t.WeakMap?new WeakMap:new nt;function st(t,e){if(at.has(t)){var n=at.get(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&at.delete(t)}}function lt(t,e,n,i){n.forEach((function(n){t(e,n,i)}))}function ct(n){if(n.fixed_)return n;function i(){return!0}function r(){return!1}if(!n||!n.isPropagationStopped){var o=n||t.event;for(var a in n={},o)"layerX"!==a&&"layerY"!==a&&"keyLocation"!==a&&"webkitMovementX"!==a&&"webkitMovementY"!==a&&("returnValue"===a&&o.preventDefault||(n[a]=o[a]));if(n.target||(n.target=n.srcElement||e),n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),n.preventDefault=function(){o.preventDefault&&o.preventDefault(),n.returnValue=!1,o.returnValue=!1,n.defaultPrevented=!0},n.defaultPrevented=!1,n.stopPropagation=function(){o.stopPropagation&&o.stopPropagation(),n.cancelBubble=!0,o.cancelBubble=!0,n.isPropagationStopped=i},n.isPropagationStopped=r,n.stopImmediatePropagation=function(){o.stopImmediatePropagation&&o.stopImmediatePropagation(),n.isImmediatePropagationStopped=i,n.stopPropagation()},n.isImmediatePropagationStopped=r,null!==n.clientX&&void 0!==n.clientX){var s=e.documentElement,l=e.body;n.pageX=n.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),n.pageY=n.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}n.which=n.charCode||n.keyCode,null!==n.button&&void 0!==n.button&&(n.button=1&n.button?0:4&n.button?1:2&n.button?2:0)}return n.fixed_=!0,n}var ut=function(){if("boolean"!=typeof ot){ot=!1;try{var e=Object.defineProperty({},"passive",{get:function(){ot=!0}});t.addEventListener("test",null,e),t.removeEventListener("test",null,e)}catch(e){}}return ot},dt=["touchstart","touchmove"];function ht(t,e,n){if(Array.isArray(e))return lt(ht,t,e,n);at.has(t)||at.set(t,{});var i=at.get(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),n.guid||(n.guid=rt()),i.handlers[e].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(e,n){if(!i.disabled){e=ct(e);var o=i.handlers[e.type];if(o)for(var a=o.slice(0),s=0,l=a.length;s<l&&!e.isImmediatePropagationStopped();s++)try{a[s].call(t,e,n)}catch(e){r.error(e)}}}),1===i.handlers[e].length)if(t.addEventListener){var o=!1;ut()&&-1<dt.indexOf(e)&&(o={passive:!0}),t.addEventListener(e,i.dispatcher,o)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function pt(t,e,n){if(at.has(t)){var i=at.get(t);if(i.handlers){if(Array.isArray(e))return lt(pt,t,e,n);var r=function(t,e){i.handlers[e]=[],st(t,e)};if(void 0!==e){var o=i.handlers[e];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);st(t,e)}else r(t,e)}else for(var s in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},s)&&r(t,s)}}}function ft(t,e,n){var i=at.has(t)?at.get(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=ct(e),i.dispatcher&&i.dispatcher.call(t,e,n),r&&!e.isPropagationStopped()&&!0===e.bubbles)ft.call(null,r,e,n);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){at.has(e.target)||at.set(e.target,{});var o=at.get(e.target);e.target[e.type]&&(o.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),o.disabled=!1)}return!e.defaultPrevented}function mt(t,e,n){if(Array.isArray(e))return lt(mt,t,e,n);function i(){pt(t,e,i),n.apply(this,arguments)}i.guid=n.guid=n.guid||rt(),ht(t,e,i)}function gt(t,e,n){function i(){pt(t,e,i),n.apply(this,arguments)}i.guid=n.guid=n.guid||rt(),ht(t,e,i)}function vt(t,e,n){e.guid||(e.guid=rt());var i=e.bind(t);return i.guid=n?n+"_"+e.guid:e.guid,i}function yt(e,n){var i=t.performance.now();return function(){var r=t.performance.now();n<=r-i&&(e.apply(void 0,arguments),i=r)}}function bt(){}var _t,wt=Object.freeze({__proto__:null,fixEvent:ct,on:ht,off:pt,trigger:ft,one:mt,any:gt});function Tt(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length}function St(t){if(!t.nodeName&&!$t(t))throw new Error("Invalid target; must be a DOM node or evented object.")}function Ct(t){if(!Tt(t))throw new Error("Invalid event type; must be a non-empty string or array.")}function kt(t){if("function"!=typeof t)throw new Error("Invalid listener; must be a function.")}function xt(t,e){var n,i,r,o=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return r=o?(n=t.eventBusEl_,3<=e.length&&e.shift(),i=e[0],e[1]):(n=e[0],i=e[1],e[2]),St(n),Ct(i),kt(r),{isTargetingSelf:o,target:n,type:i,listener:r=vt(t,r)}}function Et(t,e,n,i){St(t),t.nodeName?wt[e](t,n,i):t[e](n,i)}bt.prototype.allowedEvents_={},bt.prototype.addEventListener=bt.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},ht(this,t,e),this.addEventListener=n},bt.prototype.removeEventListener=bt.prototype.off=function(t,e){pt(this,t,e)},bt.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},mt(this,t,e),this.addEventListener=n},bt.prototype.any=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},gt(this,t,e),this.addEventListener=n},bt.prototype.dispatchEvent=bt.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=ct(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),ft(this,t)},bt.prototype.queueTrigger=function(e){var n=this;_t=_t||new Map;var i=e.type||e,r=_t.get(this);r||(r=new Map,_t.set(this,r));var o=r.get(i);r.delete(i),t.clearTimeout(o);var a=t.setTimeout((function(){0===r.size&&(r=null,_t.delete(n)),n.trigger(e)}),0);r.set(i,a)};var $t=function(t){return t instanceof bt||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof t[e]}))},It={on:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=xt(this,n),o=r.isTargetingSelf,a=r.target,s=r.type,l=r.listener;if(Et(a,"on",s,l),!o){var c=function(){return t.off(a,s,l)};c.guid=l.guid;var u=function(){return t.off("dispose",c)};u.guid=l.guid,Et(this,"on","dispose",c),Et(a,"on","dispose",u)}},one:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=xt(this,n),o=r.isTargetingSelf,a=r.target,s=r.type,l=r.listener;if(o)Et(a,"one",s,l);else{var c=function e(){t.off(a,s,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};c.guid=l.guid,Et(a,"one",s,c)}},any:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=xt(this,n),o=r.isTargetingSelf,a=r.target,s=r.type,l=r.listener;if(o)Et(a,"any",s,l);else{var c=function e(){t.off(a,s,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};c.guid=l.guid,Et(a,"any",s,c)}},off:function(t,e,n){if(!t||Tt(t))pt(this.eventBusEl_,t,e);else{var i=t,r=e;St(i),Ct(r),kt(n),n=vt(this,n),this.off("dispose",n),i.nodeName?(pt(i,r,n),pt(i,"dispose",n)):$t(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(t,e){return ft(this.eventBusEl_,t,e)}};function Ot(e,n){void 0===n&&(n={});var i=n.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=S("span",{className:"vjs-event-bus"});return p(e,It),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(t){t()})),e.on("dispose",(function(){e.off(),t.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var At={state:{},setState:function(t){var e,n=this;return"function"==typeof t&&(t=t()),h(t,(function(t,i){n.state[i]!==t&&((e=e||{})[i]={from:n.state[i],to:t}),n.state[i]=t})),e&&$t(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function Pt(t,e){return p(t,At),t.state=p({},t.state,e),"function"==typeof t.handleStateChanged&&$t(t)&&t.on("statechanged",t.handleStateChanged),t}function Dt(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toLowerCase()}))}function Lt(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))}function Mt(){for(var t={},e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach((function(e){e&&h(e,(function(e,n){m(e)?(m(t[n])||(t[n]={}),t[n]=Mt(t[n],e)):t[n]=e}))})),t}var Nt=function(){function e(e,n,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Mt({},this.options_),n=this.options_=Mt(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+rt()}var o;this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&Ot(this,{eventBusKey:this.el_?"el_":null}),Pt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},t.Set||(o=function(){function t(){this.set_={}}var e=t.prototype;return e.has=function(t){return t in this.set_},e.delete=function(t){var e=this.has(t);return delete this.set_[t],e},e.add=function(t){return this.set_[t]=1,this},e.forEach=function(t,e){for(var n in this.set_)t.call(e,n,n,this)},t}()),this.setTimeoutIds_=t.Set?new Set:new o,this.setIntervalIds_=t.Set?new Set:new o,this.rafIds_=t.Set?new Set:new o,(this.clearingTimersOnDispose_=!1)!==n.initChildren&&this.initChildren(),this.ready(i),!1!==n.reportTouchActivity&&this.enableTouchActivity()}var n=e.prototype;return n.dispose=function(){if(!this.isDisposed_){if(this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;0<=t;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),at.has(this.el_)&&at.delete(this.el_),this.el_=null),this.player_=null}},n.isDisposed=function(){return Boolean(this.isDisposed_)},n.player=function(){return this.player_},n.options=function(t){return t&&(this.options_=Mt(this.options_,t)),this.options_},n.el=function(){return this.el_},n.createEl=function(t,e,n){return S(t,e,n)},n.localize=function(t,e,n){void 0===n&&(n=t);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[i],a=i&&i.split("-")[0],s=r&&r[a],l=n;return o&&o[t]?l=o[t]:s&&s[t]&&(l=s[t]),e&&(l=l.replace(/\{(\d+)\}
2/g,(function(t,n){var i=e[n-1],r=i;return void 0===i&&(r=t),r}))),l},n.contentEl=function(){return this.contentEl_||this.el_},n.id=function(){return this.id_},n.name=function(){return this.name_},n.children=function(){return this.children_},n.getChildById=function(t){return this.childIndex_[t]},n.getChild=function(t){if(t)return this.childNameIndex_[t]},n.getDescendant=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e=e.reduce((function(t,e){return t.concat(e)}),[]);for(var i=this,r=0;r<e.length;r++)if(!(i=i.getChild(e[r]))||!i.getChild)return;return i},n.addChild=function(t,n,i){var r,o;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof t){o=Lt(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(o=o||r.name&&Lt(r.name()))&&(this.childNameIndex_[o]=r,this.childNameIndex_[Dt(o)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[i+1]&&(this.children_[i+1].el_?l=this.children_[i+1].el_:_(this.children_[i+1])&&(l=this.children_[i+1])),this.contentEl().insertBefore(r.el(),l)}return r},n.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;0<=n;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[Lt(t.name())]=null,this.childNameIndex_[Dt(t.name())]=null;var i=t.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},n.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,o=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(t){return!i.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(e){var i,r;return r="string"==typeof e?n[i=e]||t.options_[i]||{}:(i=e.name,e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||Lt(t.name));return n&&!o.isTech(n)})).forEach((function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var o=t.addChild(n,i);o&&(t[n]=o)}}))}},n.buildCSSClass=function(){return""},n.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},n.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&0<t.length&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},n.$=function(t,e){return G(t,e||this.contentEl())},n.$$=function(t,e){return X(t,e||this.contentEl())},n.hasClass=function(t){return x(this.el_,t)},n.addClass=function(t){E(this.el_,t)},n.removeClass=function(t){$(this.el_,t)},n.toggleClass=function(t,e){I(this.el_,t,e)},n.show=function(){this.removeClass("vjs-hidden")},n.hide=function(){this.addClass("vjs-hidden")},n.lockShowing=function(){this.addClass("vjs-lock-showing")},n.unlockShowing=function(){this.removeClass("vjs-lock-showing")},n.getAttribute=function(t){return P(this.el_,t)},n.setAttribute=function(t,e){D(this.el_,t,e)},n.removeAttribute=function(t){L(this.el_,t)},n.width=function(t,e){return this.dimension("width",t,e)},n.height=function(t,e){return this.dimension("height",t,e)},n.dimensions=function(t,e){this.width(t,!0),this.height(e)},n.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[t],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+Lt(t)],10)},n.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=g(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var n="offset"+Lt(t);e=this.el_[n]}return e},n.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},n.currentWidth=function(){return this.currentDimension("width")},n.currentHeight=function(){return this.currentDimension("height")},n.focus=function(){this.el_.focus()},n.blur=function(){this.el_.blur()},n.handleKeyDown=function(t){this.player_&&(t.stopPropagation(),this.player_.handleKeyDown(t))},n.handleKeyPress=function(t){this.handleKeyDown(t)},n.emitTapEvents=function(){var e,n=0,i=null;function r(){e=!1}this.on("touchstart",(function(r){1===r.touches.length&&(i={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},n=t.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(1<t.touches.length)e=!1;else if(i){var n=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;10<Math.sqrt(n*n+r*r)&&(e=!1)}})),this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){!(i=null)===e&&t.performance.now()-n<200&&(r.preventDefault(),this.trigger("tap"))}))},n.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=vt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},n.setTimeout=function(e,n){var i,r=this;return e=vt(this,e),this.clearTimersOnDispose_(),i=t.setTimeout((function(){r.setTimeoutIds_.has(i)&&r.setTimeoutIds_.delete(i),e()}),n),this.setTimeoutIds_.add(i),i},n.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),t.clearTimeout(e)),e},n.setInterval=function(e,n){e=vt(this,e),this.clearTimersOnDispose_();var i=t.setInterval(e,n);return this.setIntervalIds_.add(i),i},n.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),t.clearInterval(e)),e},n.requestAnimationFrame=function(e){var n,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=vt(this,e),n=t.requestAnimationFrame((function(){i.rafIds_.has(n)&&i.rafIds_.delete(n),e()})),this.rafIds_.add(n),n):this.setTimeout(e,1e3/60)},n.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),t.cancelAnimationFrame(e)),e):this.clearTimeout(e)},n.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
2h((function(e){var n=e[0],i=e[1];t[n].forEach(t[i],t)})),t.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=i&&i.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!o)throw new Error('Illegal component, "'+t+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=Lt(t),e.components_||(e.components_={});var a=e.getComponent("Player");if("Player"===t&&a&&a.players){var s=a.players,l=Object.keys(s);if(s&&0<l.length&&l.map((function(t){return s[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Dt(t)]=n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();Nt.prototype.supportsRaf_="function"==typeof t.requestAnimationFrame&&"function"==typeof t.cancelAnimationFrame,Nt.registerComponent("Component",Nt);var jt=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};a((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==l(Symbol.iterator)?t.exports=e=function(t){return l(t)}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":l(t)},e(n)}t.exports=e})),a((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e}));var Ut,Rt,Bt,Ft,zt=function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e},Ht=t.navigator&&t.navigator.userAgent||"",qt=/AppleWebKit\/([\d.]+)/i.exec(Ht),Vt=qt?parseFloat(qt.pop()):null,Wt=/iPod/i.test(Ht),Gt=(Ut=Ht.match(/OS (\d+)_/i))&&Ut[1]?Ut[1]:null,Xt=/Android/i.test(Ht),Yt=function(){var t=Ht.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),n=t[2]&&parseFloat(t[2]);return e&&n?parseFloat(t[1]+"."+t[2]):e||null}(),Kt=Xt&&Yt<5&&Vt<537,Qt=/Firefox/i.test(Ht),Jt=/Edg/i.test(Ht),Zt=!Jt&&(/Chrome/i.test(Ht)||/CriOS/i.test(Ht)),te=(Rt=Ht.match(/(Chrome|CriOS)\/(\d+)/))&&Rt[2]?parseFloat(Rt[2]):null,ee=(!(Ft=(Bt=/MSIE\s(\d+)\.\d/.exec(Ht))&&parseFloat(Bt[1]))&&/Trident\/7.0/i.test(Ht)&&/rv:11.0/.test(Ht)&&(Ft=11),Ft),ne=/Safari/i.test(Ht)&&!Zt&&!Xt&&!Jt,ie=/Windows/i.test(Ht),re=b()&&("ontouchstart"in t||t.navigator.maxTouchPoints||t.DocumentTouch&&t.document instanceof t.DocumentTouch),oe=/iPad/i.test(Ht)||ne&&re&&!/iPhone/i.test(Ht),ae=/iPhone/i.test(Ht)&&!oe,se=ae||oe||Wt,le=(ne||se)&&!Zt,ce=Object.freeze({__proto__:null,IS_IPOD:Wt,IOS_VERSION:Gt,IS_ANDROID:Xt,ANDROID_VERSION:Yt,IS_NATIVE_ANDROID:Kt,IS_FIREFOX:Qt,IS_EDGE:Jt,IS_CHROME:Zt,CHROME_VERSION:te,IE_VERSION:ee,IS_SAFARI:ne,IS_WINDOWS:ie,TOUCH_ENABLED:re,IS_IPAD:oe,IS_IPHONE:ae,IS_IOS:se,IS_ANY_SAFARI:le});function ue(t,e,n,i){return function(t,e,n){if("number"!=typeof e||e<0||n<e)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}(t,i,n.length-1),n[i][e]}function de(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:ue.bind(null,"start",0,t),end:ue.bind(null,"end",1,t)}}function he(t,e){return Array.isArray(t)?de(t):void 0===t||void 0===e?de():de([[t,e]])}function pe(t,e){var n,i,r=0;if(!e)return 0;t&&t.length||(t=he(0,0));for(var o=0;o<t.length;o++)n=t.start(o),e<(i=t.end(o))&&(i=e),r+=i-n;return r/e}for(var fe,me={prefixed:!0},ge=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],ve=ge[0],ye=0;ye<ge.length;ye++)if(ge[ye][1]in e){fe=ge[ye];break}if(fe){for(var be=0;be<fe.length;be++)me[ve[be]]=fe[be];me.prefixed=fe[0]!==ve[0]}function _e(t){if(t instanceof _e)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:f(t)&&("number"==typeof t.code&&(this.code=t.code),p(this,t)),this.message||(this.message=_e.defaultMessages[this.code]||"")}_e.prototype.code=0,_e.prototype.message="",_e.prototype.status=null,_e.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],_e.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var we=0;we<_e.errorTypes.length;we++)_e[_e.errorTypes[we]]=we,_e.prototype[_e.errorTypes[we]]=we;function Te(t){return null!=t&&"function"==typeof t.then}function Se(t){Te(t)&&t.then(null,(function(t){}))}function Ce(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(e,n,i){return t[n]&&(e[n]=t[n]),e}),{cues:t.cues&&Array.prototype.map.call(t.cues,(function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}}))})}var ke=a((function(t,e){function n(t){if(t&&"object"==l(t)){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return a[t];var n,o=String(t);return(n=i[o.toLowerCase()])?n:(n=r[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}
vendor: 32,293 bytes, line 2
2n.isEventKey=function(t,e){if(t&&"object"==l(t)){var n=t.which||t.keyCode||t.charCode;if(null==n)return!1;if("string"==typeof e){var o;if(o=i[e.toLowerCase()])return o===n;if(o=r[e.toLowerCase()])return o===n}else if("number"==typeof e)return e===n;return!1}};var i=(e=t.exports=n).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)i[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)i[o-48]=o;for(o=1;o<13;o++)i["f"+o]=o+111;for(o=0;o<10;o++)i["numpad "+o]=o+96;var a=e.names=e.title={};for(o in i)a[i[o]]=o;for(var s in r)i[s]=r[s]})),xe=(ke.code,ke.codes,ke.aliases,ke.names,ke.title,"vjs-modal-dialog"),Ee=function(n){function i(t,e){var i;return(i=n.call(this,t,e)||this).opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=S("div",{className:xe+"-content"},{role:"document"}),i.descEl_=S("p",{className:xe+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),C(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}zt(i,n);var r=i.prototype;return r.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},r.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},r.buildCSSClass=function(){return xe+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},r.label=function(){return this.localize(this.options_.label||"Modal Window")},r.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},r.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},r.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},r.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},r.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},r.fill=function(){this.fillWith(this.content())},r.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,i=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),q(e,t),this.trigger("modalfill"),i?n.insertBefore(e,i):n.appendChild(e);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},r.empty=function(){this.trigger("beforemodalempty"),F(this.contentEl()),this.trigger("modalempty")},r.content=function(t){return void 0!==t&&(this.content_=t),this.content_},r.conditionalFocus_=function(){var t=e.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,!n.contains(t)&&n!==t||(this.previouslyActiveEl_=t,this.focus())},r.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},r.handleKeyDown=function(t){if(t.stopPropagation(),ke.isEventKey(t,"Escape")&&this.closeable())return t.preventDefault(),void this.close();if(ke.isEventKey(t,"Tab")){for(var n,i=this.focusableEls_(),r=this.el_.querySelector(":focus"),o=0;o<i.length;o++)if(r===i[o]){n=o;break}e.activeElement===this.el_&&(n=0),t.shiftKey&&0===n?(i[i.length-1].focus(),t.preventDefault()):t.shiftKey||n!==i.length-1||(i[0].focus(),t.preventDefault())}},r.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof t.HTMLAnchorElement||e instanceof t.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof t.HTMLInputElement||e instanceof t.HTMLSelectElement||e instanceof t.HTMLTextAreaElement||e instanceof t.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof t.HTMLIFrameElement||e instanceof t.HTMLObjectElement||e instanceof t.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},i}(Nt);Ee.prototype.options_={pauseOnOpen:!0,temporary:!0},Nt.registerComponent("ModalDialog",Ee);var $e=function(t){function e(e){var n;void 0===e&&(e=[]),(n=t.call(this)||this).tracks_=[],Object.defineProperty(jt(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)n.addTrack(e[i]);return n}zt(e,t);var n=e.prototype;return n.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this}))},n.removeTrack=function(t){for(var e,n=0,i=this.length;n<i;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack",target:this})},n.getTrackById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},e}(bt);for(var Ie in $e.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},$e.prototype.allowedEvents_)$e.prototype["on"+Ie]=null;function Oe(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].enabled=!1)}function Ae(t,e){for(var n=0;n<t.length;n++)Object.keys(t[n]).length&&e.id!==t[n].id&&(t[n].selected=!1)}function Pe(n){var i=["protocol","hostname","port","pathname","search","hash","host"],r=e.createElement("a");r.href=n;var o,a=""===r.host&&"file:"!==r.protocol;a&&((o=e.createElement("div")).innerHTML='<a href="'+n+'"></a>',r=o.firstChild,o.setAttribute("style","display:none; position:absolute;"),e.body.appendChild(o));for(var s={},l=0;l<i.length;l++)s[i[l]]=r[i[l]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=t.location.protocol),a&&e.body.removeChild(o),s}function De(t){if(!t.match(/^https?:\/\//)){var n=e.createElement("div");n.innerHTML='<a href="'+t+'">x</a>',t=n.firstChild.href}return t}function Le(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""}function Me(e,n){void 0===n&&(n=t.location);var i=Pe(e);return(":"===i.protocol?n.protocol:i.protocol)+i.host!==n.protocol+n.host}var Ne=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].enabled){Oe(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,n}zt(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.enabled&&Oe(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){n.changing_||(n.changing_=!0,Oe(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}($e),je=function(t){function e(e){var n;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].selected){Ae(e,e[i]);break}return(n=t.call(this,e)||this).changing_=!1,Object.defineProperty(jt(n),"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n}zt(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;e.selected&&Ae(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){n.changing_||(n.changing_=!0,Ae(n,e),n.changing_=!1,n.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}($e),Ue=function(t){function e(){return t.apply(this,arguments)||this}zt(e,t);var n=e.prototype;return n.addTrack=function(e){var n=this;t.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}($e),Re=function(){function t(t){void 0===t&&(t=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var e=0,n=t.length;e<n;e++)this.addTrackElement_(t[e])}var e=t.prototype;return e.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},e.getTrackElementByTrack_=function(t){for(var e,n=0,i=this.trackElements_.length;n<i;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},e.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;e<n;e++)if(t===this.trackElements_[e]){this.trackElements_[e].track&&"function"==typeof this.trackElements_[e].track.off&&this.trackElements_[e].track.off(),"function"==typeof this.trackElements_[e].off&&this.trackElements_[e].off(),this.trackElements_.splice(e,1);break}},t}(),Be=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(t){var e=this.length||0,n=0,i=t.length;function r(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})}if(this.cues_=t,this.length_=t.length,e<i)for(n=e;n<i;n++)r.call(this,n)},e.getCueById=function(t){for(var e=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===t){e=r;break}}return e},t}(),Fe={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},ze={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},He={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},qe={disabled:"disabled",hidden:"hidden",showing:"showing"},Ve=function(t){function e(e){var n;function i(t){Object.defineProperty(jt(n),t,{get:function(){return r[t]},set:function(){}})}void 0===e&&(e={}),n=t.call(this)||this;var r={id:e.id||"vjs_track_"+rt(),kind:e.kind||"",label:e.label||"",language:e.language||""};for(var o in r)i(o);return n}return zt(e,t),e}(bt),We=Object.freeze({__proto__:null,parseUrl:Pe,getAbsoluteURL:De,getFileExtension:Le,isCrossOrigin:Me}),Ge=function(t){var e=Xe.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)},Xe=Object.prototype.toString,Ye=function(t){var e={};return t&&t.trim().split("\n").forEach((function(t){var n=t.indexOf(":"),i=t.slice(0,n).trim().toLowerCase(),r=t.slice(n+1).trim();void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]})),e},Ke=Ze,Qe=Ze;function Je(t,e,n){var i=t;return Ge(e)?(n=e,"string"==typeof t&&(i={uri:t})):i=c({},e,{uri:t}),i.callback=n,i}function Ze(t,e,n){return tn(e=Je(t,e,n))}function tn(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,n=function(n,i,r){e||(e=!0,t.callback(n,i,r))};function i(t){return clearTimeout(s),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,n(t,m)}function r(){if(!a){var e;clearTimeout(s),e=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var i=m,r=null;return 0!==e?(i={body:function(){var t=void 0;if(t=l.response?l.response:l.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(l),f)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:u,headers:{},url:c,rawRequest:l},l.getAllResponseHeaders&&(i.headers=Ye(l.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),n(r,i,i.body)}}var o,a,s,l=t.xhr||null,c=(l=l||(t.cors||t.useXDR?new Ze.XDomainRequest:new Ze.XMLHttpRequest)).url=t.uri||t.url,u=l.method=t.method||"GET",d=t.body||t.data,h=l.headers=t.headers||{},p=!!t.sync,f=!1,m={body:void 0,headers:{},statusCode:0,method:u,url:c,rawRequest:l};if("json"in t&&!1!==t.json&&(f=!0,h.accept||h.Accept||(h.Accept="application/json"),"GET"!==u&&"HEAD"!==u&&(h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json"),d=JSON.stringify(!0===t.json?d:t.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(r,0)},l.onload=r,l.onerror=i,l.onprogress=function(){},l.onabort=function(){a=!0},l.ontimeout=i,l.open(u,c,!p,t.username,t.password),p||(l.withCredentials=!!t.withCredentials),!p&&0<t.timeout&&(s=setTimeout((function(){if(!a){a=!0,l.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),l.setRequestHeader)for(o in h)h.hasOwnProperty(o)&&l.setRequestHeader(o,h[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(d||null),l}function en(e,n){var i=new t.WebVTT.Parser(t,t.vttjs,t.WebVTT.StringDecoder()),o=[];i.oncue=function(t){n.addCue(t)},i.onparsingerror=function(t){o.push(t)},i.onflush=function(){n.trigger({type:"loadeddata",target:n})},i.parse(e),0<o.length&&(t.console&&t.console.groupCollapsed&&t.console.groupCollapsed("Text Track parsing errors for "+n.src),o.forEach((function(t){return r.error(t)})),t.console&&t.console.groupEnd&&t.console.groupEnd()),i.flush()}function nn(e,n){var i={uri:e},o=Me(e);o&&(i.cors=o),Ke(i,vt(this,(function(e,i,o){if(e)return r.error(e,i);n.loaded_=!0,"function"!=typeof t.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],(function(t){if("vttjserror"!==t.type)return en(o,n);r.error("vttjs failed to load, stopping trying to process "+n.src)})):en(o,n)})))}Ze.XMLHttpRequest=t.XMLHttpRequest||function(){},Ze.XDomainRequest="withCredentials"in new Ze.XMLHttpRequest?Ze.XMLHttpRequest:t.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],(function(t){Ze["delete"===t?"del":t]=function(e,n,i){return(n=Je(e,n,i)).method=t.toUpperCase(),tn(n)}})),Ke.default=Qe;var rn=function(e){function n(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Mt(t,{kind:He[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=qe[i.mode]||"disabled",o=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new Be(n.cues_),s=new Be(n.activeCues_),l=!1,c=vt(jt(n),(function(){this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1)}));return"disabled"!==r&&n.tech_.ready((function(){n.tech_.on("timeupdate",c)}),!0),Object.defineProperties(jt(n),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return r},set:function(t){var e=this;qe[t]&&(r=t,this.preload_||"disabled"===r||0!==this.cues.length||nn(this.src,this),"disabled"!==r?this.tech_.ready((function(){e.tech_.on("timeupdate",c)}),!0):this.tech_.off("timeupdate",c),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var t=this.tech_.currentTime(),e=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=t&&r.endTime>=t||r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t)&&e.push(r)}if(l=!1,e.length!==this.activeCues_.length)l=!0;else for(var o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(l=!0);return this.activeCues_=e,s.setCues_(this.activeCues_),s},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||o||"subtitles"!==i.kind&&"captions"!==i.kind)&&nn(n.src,jt(n))):n.loaded_=!0,n}zt(n,e);var i=n.prototype;return i.addCue=function(e){var n=e;if(t.vttjs&&!(e instanceof t.vttjs.VTTCue)){for(var i in n=new t.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in n||(n[i]=e[i]);n.id=e.id,n.originalCue_=e}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)},i.removeCue=function(t){for(var e=this.cues_.length;e--;){var n=this.cues_[e];if(n===t||n.originalCue_&&n.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},n}(Ve);rn.prototype.allowedEvents_={cuechange:"cuechange"};var on=function(t){function e(e){var n;void 0===e&&(e={});var i=Mt(e,{kind:ze[e.kind]||""});n=t.call(this,i)||this;var r=!1;return Object.defineProperty(jt(n),"enabled",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return zt(e,t),e}(Ve),an=function(t){function e(e){var n;void 0===e&&(e={});var i=Mt(e,{kind:Fe[e.kind]||""});n=t.call(this,i)||this;var r=!1;return Object.defineProperty(jt(n),"selected",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return zt(e,t),e}(Ve),sn=function(t){function e(e){var n,i;void 0===e&&(e={}),n=t.call(this)||this;var r=new rn(e);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(jt(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=0,r.addEventListener("loadeddata",(function(){i=2,n.trigger({type:"load",target:jt(n)})})),n}return zt(e,t),e}(bt);sn.prototype.allowedEvents_={load:"load"},sn.NONE=0,sn.LOADING=1,sn.LOADED=2,sn.ERROR=3;var ln={audio:{ListClass:Ne,TrackClass:on,capitalName:"Audio"},video:{ListClass:je,TrackClass:an,capitalName:"Video"},text:{ListClass:Ue,TrackClass:rn,capitalName:"Text"}};Object.keys(ln).forEach((function(t){ln[t].getterName=t+"Tracks",ln[t].privateName=t+"Tracks_"}));var cn={remoteText:{ListClass:Ue,TrackClass:rn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Re,TrackClass:sn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},un=c({},ln,cn);cn.names=Object.keys(cn),ln.names=Object.keys(ln),un.names=[].concat(cn.names).concat(ln.names);var dn=Object.create||function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return hn.prototype=t,new hn};function hn(){}function pn(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function fn(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+(0|i)/1e3}var n=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):59<n[1]?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function mn(){this.values=dn(null)}function gn(t,e,n,i){var r=i?t.split(i):[t];for(var o in r)if("string"==typeof r[o]){var a=r[o].split(n);2===a.length&&e(a[0],a[1])}}function vn(t,e,n){var i=t;function r(){var e=fn(t);if(null===e)throw new pn(pn.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function o(){t=t.replace(/^\s+/,"")}if(o(),e.startTime=r(),o(),"--\x3e"!==t.substr(0,3))throw new pn(pn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),o(),e.endTime=r(),o(),function(t,e){var i=new mn;gn(t,(function(t,e){switch(t){case"region":for(var r=n.length-1;0<=r;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),a=o[0];i.integer(t,a),i.percent(t,a)&&i.set("snapToLines",!1),i.alt(t,a,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=e.split(","),i.percent(t,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","center","end"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical","");try{e.line=i.get("line","auto")}catch(t){}e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100);try{e.align=i.get("align","center")}catch(t){e.align=i.get("align","middle")}try{e.position=i.get("position","auto")}catch(t){e.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}((pn.prototype=dn(Error.prototype)).constructor=pn).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},mn.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var i=0;i<n.length;++i)if(e===n[i]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(e=parseFloat(e))&&e<=100)&&(this.set(t,e),!0)}};var yn=e.createElement("textarea"),bn={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},_n={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},wn={v:"title",lang:"lang"},Tn={rt:"ruby"};function Sn(t,e){function n(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]*>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}function i(e,n){var i=bn[e];if(!i)return null;var r=t.document.createElement(i),o=wn[e];return o&&n&&(r[o]=n.trim()),r}for(var r,o,a,s,l=t.document.createElement("div"),c=l,u=[];null!==(r=n());)if("<"!==r[0])c.appendChild(t.document.createTextNode((o=r,yn.innerHTML=o,o=yn.textContent,yn.textContent="",o)));else{if("/"===r[1]){u.length&&u[u.length-1]===r.substr(2).replace(">","")&&(u.pop(),c=c.parentNode);continue}var d,h=fn(r.substr(1,r.length-2));if(h){d=t.document.createProcessingInstruction("timestamp",h),c.appendChild(d);continue}var p=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!p)continue;if(!(d=i(p[1],p[3])))continue;if(a=c,Tn[(s=d).localName]&&Tn[s.localName]!==a.localName)continue;if(p[2]){var f=p[2].split(".");f.forEach((function(t){var e=/^bg_/.test(t),n=e?t.slice(3):t;if(_n.hasOwnProperty(n)){var i=e?"background-color":"color",r=_n[n];d.style[i]=r}})),d.className=f.join(" ")}u.push(p[1]),c.appendChild(d),c=d}return l}var Cn=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function kn(t){for(var e=0;e<Cn.length;e++){var n=Cn[e];if(t>=n[0]&&t<=n[1])return!0}return!1}function xn(){}function En(t,e,n){xn.call(this),this.cue=e,this.cueDiv=Sn(t,e.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=t.document.createElement("div"),i={direction:function(t){var e=[],n="";if(!t||!t.childNodes)return"ltr";function i(t,e){for(var n=e.childNodes.length-1;0<=n;n--)t.push(e.childNodes[n])}function r(t){if(!t||!t.length)return null;var e=t.pop(),n=e.textContent||e.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?o[t.length=0]:n}return"ruby"===e.tagName?r(t):e.childNodes?(i(t,e),r(t)):void 0}for(i(e,t);n=r(e);)for(var o=0;o<n.length;o++)if(kn(n.charCodeAt(o)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":r=e.position;break;case"center":r=e.position-e.size/2;break;case"end":r=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function $n(t){var e,n,i,r;if(t.div){n=t.div.offsetHeight,i=t.div.offsetWidth,r=t.div.offsetTop;var o=(o=t.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();t=t.div.getBoundingClientRect(),e=o?Math.max(o[0]&&o[0].height||0,t.height/o.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||n,this.bottom=t.bottom||r+(t.height||n),this.width=t.width||i,this.lineHeight=void 0!==e?e:t.lineHeight}function In(t,e,n,i){var r=new $n(e),o=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||0<=t.line&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;r<n.length&&n[r]!==e;r++)"showing"===n[r].mode&&i++;return-1*++i}(o),s=[];if(o.snapToLines){var l;switch(o.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var c=r.lineHeight,u=c*Math.round(a),d=n[l]+c,h=s[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),a<0&&(u+=""===o.vertical?n.height:n.width,s=s.reverse()),r.move(h,u)}else{var p=r.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],r=new $n(e)}var f=function(t,e){for(var r,o=new $n(t),a=1,s=0;s<e.length;s++){for(;t.overlapsOppositeAxis(n,e[s])||t.within(n)&&t.overlapsAny(i);)t.move(e[s]);if(t.within(n))return t;var l=t.intersectPercentage(n);l<a&&(r=new $n(t),a=l),t=new $n(o)}return r||o}(r,s);e.move(f.toCSSCompatValues(n))}function On(){}xn.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},xn.prototype.formatStyle=function(t,e){return 0===t?0:t+e},(En.prototype=dn(xn.prototype)).constructor=En,$n.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},$n.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},$n.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},$n.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},$n.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},$n.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},$n.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},$n.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,i=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||n}},On.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},On.convertCueToDOMTree=function(t,e){return t&&e?Sn(t,e):null},On.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=t.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",
vendor: 4,126 bytes, line 2
2i.style.margin="1.5%",n.appendChild(i),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],o=$n.getSimpleBoxPosition(i),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,l=0;l<e.length;l++)s=e[l],n=new En(t,s,a),i.appendChild(n.div),In(0,n,o,r),s.displayState=n.div,r.push($n.getSimpleBoxPosition(n))}()}else for(var s=0;s<e.length;s++)i.appendChild(e[s].displayState)},(On.Parser=function(t,e,n){n||(n=e,e={}),e=e||{},this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(t){if(!(t instanceof pn))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e=this;function n(){for(var t=e.buffer,n=0;n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var i=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),i}function i(t){t.match(/X-TIMESTAMP-MAP/)?gn(t,(function(t,n){"X-TIMESTAMP-MAP"===t&&function(t){var n=new mn;gn(t,(function(t,e){switch(t){case"MPEGT":n.integer(t+"S",e);break;case"LOCA":n.set(t+"L",fn(e))}}),/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}),/=/):gn(t,(function(t,n){"Region"===t&&function(t){var n=new mn;if(gn(t,(function(t,e){switch(t){case"id":n.set(t,e);break;case"width":n.percent(t,e);break;case"lines":n.integer(t,e);break;case"regionanchor":case"viewportanchor":var i=e.split(",");if(2!==i.length)break;var r=new mn;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(t+"X",r.get("x")),n.set(t+"Y",r.get("y"));break;case"scroll":n.alt(t,e,["up"])}}),/=/,/\s/),n.has("id")){var i=new(e.vttjs.VTTRegion||e.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),e.onregion&&e.onregion(i),e.regionList.push({id:n.get("id"),region:i})}}(n)}),/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var r;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var o=(r=n()).match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new pn(pn.Errors.BadSignature);e.state="HEADER"}for(var a=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(a?a=!1:r=n(),e.state){case"HEADER":/:/.test(r)?i(r):r||(e.state="ID");continue;case"NOTE":r||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){e.state="NOTE";break}if(!r)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch(t){e.cue.align="middle"}if(e.state="CUE",-1===r.indexOf("--\x3e")){e.cue.id=r;continue}case"CUE":try{vn(r,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var s=-1!==r.indexOf("--\x3e");if(!r||s&&(a=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new pn(pn.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var An=On,Pn={"":1,lr:1,rl:1},Dn={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Ln(t){return"string"==typeof t&&!!Dn[t.toLowerCase()]&&t.toLowerCase()}function Mn(t,e,n){this.hasBeenReset=!1;var i="",r=!1,o=t,a=e,s=n,l=null,c="",u=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(t){i=""+t}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(t){r=!!t}},startTime:{enumerable:!0,get:function(){return o}
vendor: 2,979 bytes, line 2
2,set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");o=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");a=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return s},set:function(t){s=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(t){l=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(t){var e=function(t){return"string"==typeof t&&!!Pn[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return u},set:function(t){u=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(t){var e=Ln(t);e&&(h=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return p},set:function(t){if(t<0||100<t)throw new Error("Position must be between 0 and 100.");p=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(t){var e=Ln(t);e&&(f=e,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return m},set:function(t){if(t<0||100<t)throw new Error("Size must be between 0 and 100.");m=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(t){var e=Ln(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=e,this.hasBeenReset=!0}}}),this.displayState=void 0}Mn.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Nn=Mn,jn={"":!0,up:!0};function Un(t){return"number"==typeof t&&0<=t&&t<=100}function Rn(){var t=100,e=3,n=0,i=100,r=0,o=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Un(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!Un(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!Un(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!Un(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!Un(t))throw new Error("ViewportAnchorX must be between 0 and 100.");r=t}},scroll:{enumerable:!0,get:function(){return a}
2,set:function(t){var e=function(t){return"string"==typeof t&&!!jn[t.toLowerCase()]&&t.toLowerCase()}(t);!1===e||(a=e)}}})}var Bn=a((function(e){var n=e.exports={WebVTT:An,VTTCue:Nn,VTTRegion:Rn};t.vttjs=n,t.WebVTT=n.WebVTT;var i=n.VTTCue,r=n.VTTRegion,o=t.VTTCue,a=t.VTTRegion;n.shim=function(){t.VTTCue=i,t.VTTRegion=r},n.restore=function(){t.VTTCue=o,t.VTTRegion=a},t.VTTCue||n.shim()}));Bn.WebVTT,Bn.VTTCue,Bn.VTTRegion;var Fn=function(n){function i(t,e){var i;return void 0===t&&(t={}),void 0===e&&(e=function(){}),t.reportTouchActivity=!1,(i=n.call(this,null,t,e)||this).hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),un.names.forEach((function(e){var n=un[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new un.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}zt(i,n);var o=i.prototype;return o.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,type:"sourceset"})},o.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},o.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},o.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(vt(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),1===(this.bufferedPercent_=t)&&this.stopTrackingProgress()})),500)},o.onDurationChange=function(t){this.duration_=this.duration()},o.buffered=function(){return he(0,0)},o.bufferedPercent=function(){return pe(this.buffered(),this.duration_)},o.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},o.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},o.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},o.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},o.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},o.dispose=function(){this.clearTracks(ln.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),n.prototype.dispose.call(this)},o.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach((function(t){for(var n=e[t+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===t&&e.removeRemoteTextTrack(r),n.removeTrack(r)}}))},o.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},o.reset=function(){},o.error=function(t){return void 0!==t&&(this.error_=new _e(t),this.trigger("error")),this.error_},o.played=function(){return this.hasStarted_?he(0,0):he()},o.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},o.initTrackListeners=function(){var t=this;ln.names.forEach((function(e){function n(){t.trigger(e+"trackchange")}var i=ln[e],r=t[i.getterName]();
vendor: 15,019 bytes, line 2
2r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),t.on("dispose",(function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)}))}))},o.addWebVttScript_=function(){var n=this;if(!t.WebVTT)if(e.body.contains(this.el())){if(!this.options_["vtt.js"]&&m(Bn)&&0<Object.keys(Bn).length)return void this.trigger("vttjsloaded");var i=e.createElement("script");i.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",i.onload=function(){n.trigger("vttjsloaded")},i.onerror=function(){n.trigger("vttjserror")},this.on("dispose",(function(){i.onload=null,i.onerror=null})),t.WebVTT=!0,this.el().parentNode.appendChild(i)}else this.ready(this.addWebVttScript_)},o.emulateTextTracks=function(){function t(t){return i.addTrack(t.track)}function e(t){return i.removeTrack(t.track)}var n=this,i=this.textTracks(),r=this.remoteTextTracks();function o(){return n.trigger("texttrackchange")}function a(){o();for(var t=0;t<i.length;t++){var e=i[t];e.removeEventListener("cuechange",o),"showing"===e.mode&&e.addEventListener("cuechange",o)}}r.on("addtrack",t),r.on("removetrack",e),this.addWebVttScript_(),a(),i.addEventListener("change",a),i.addEventListener("addtrack",a),i.addEventListener("removetrack",a),this.on("dispose",(function(){r.off("addtrack",t),r.off("removetrack",e),i.removeEventListener("change",a),i.removeEventListener("addtrack",a),i.removeEventListener("removetrack",a);for(var n=0;n<i.length;n++)i[n].removeEventListener("cuechange",o)}))},o.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,n,i,r){void 0===r&&(r={});var o=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;var a=new un.text.TrackClass(r);return o.addTrack(a),a}(this,t,e,n)},o.createRemoteTextTrack=function(t){var e=Mt(t,{tech:this});return new cn.remoteTextEl.TrackClass(e)},o.addRemoteTextTrack=function(t,e){var n=this;void 0===t&&(t={});var i=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(r.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==e&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(i.track)})),i},o.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},o.getVideoPlaybackQuality=function(){return{}},o.requestPictureInPicture=function(){var e=this.options_.Promise||t.Promise;if(e)return e.reject()},o.setPoster=function(){},o.playsinline=function(){},o.setPlaysinline=function(){},o.overrideNativeAudioTracks=function(){},o.overrideNativeVideoTracks=function(){},o.canPlayType=function(){return""},i.canPlayType=function(){return""},i.canPlaySource=function(t,e){return i.canPlayType(t.type)},i.isTech=function(t){return t.prototype instanceof i||t instanceof i||t===i},i.registerTech=function(t,e){if(i.techs_||(i.techs_={}),!i.isTech(e))throw new Error("Tech "+t+" must be a Tech");if(!i.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!i.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=Lt(t),i.techs_[t]=e,i.techs_[Dt(t)]=e,"Tech"!==t&&i.defaultTechOrder_.push(t),e},i.getTech=function(e){if(e)return i.techs_&&i.techs_[e]?i.techs_[e]:(e=Lt(e),t&&t.videojs&&t.videojs[e]?(r.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),t.videojs[e]):void 0)},i}(Nt);un.names.forEach((function(t){var e=un[t];Fn.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}})),Fn.prototype.featuresVolumeControl=!0,Fn.prototype.featuresMuteControl=!0,Fn.prototype.featuresFullscreenResize=!1,Fn.prototype.featuresPlaybackRate=!1,Fn.prototype.featuresProgressEvents=!1,Fn.prototype.featuresSourceset=!1,Fn.prototype.featuresTimeupdateEvents=!1,Fn.prototype.featuresNativeTextTracks=!1,Fn.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var i=t.sourceHandlers;i=i||(t.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,e)},t.canPlayType=function(e){for(var n,i=t.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(e))return n;return""},t.selectSourceHandler=function(e,n){for(var i=t.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(e,n))return i[r];return null},t.canPlaySource=function(e,n){var i=t.selectSourceHandler(e,n);return i?i.canHandleSource(e,n):""},["seekable","seeking","duration"].forEach((function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})}),t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e,this.options_);n||(t.nativeSourceHandler?n=t.nativeSourceHandler:r.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=n.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Nt.registerComponent("Tech",Fn),Fn.registerTech("Tech",Fn),Fn.defaultTechOrder_=[];var zn={},Hn={},qn={};function Vn(t,e,n,i){void 0===i&&(i=null);var r="call"+Lt(n),o=t.reduce(Yn(r),i),a=o===qn,s=a?null:e[n](o);return function(t,e,n,i){for(var r=t.length-1;0<=r;r--){var o=t[r];o[e]&&o[e](i,n)}}(t,n,s,a),s}var Wn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Gn={setCurrentTime:1,setMuted:1,setVolume:1},Xn={play:1,pause:1};function Yn(t){return function(e,n){return e===qn?qn:n[t]?n[t](e):e}}function Kn(t){void 0===t&&(t="");var e=Le(t);return Qn[e.toLowerCase()]||""}var Qn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};function Jn(t){if(!t.type){var e=Kn(t.src);e&&(t.type=e)}return t}var Zn=function(t){function e(e,n,i){var r,o=Mt({createEl:!1},n);if(r=t.call(this,e,o,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)e.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var l=Lt(s[a]),c=Fn.getTech(l);if(l||(c=Nt.getComponent(l)),c&&c.isSupported()){e.loadTech_(l);break}}return r}return zt(e,t),e}(Nt);Nt.registerComponent("MediaLoader",Zn);var ti=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).emitTapEvents(),i.enable(),i}zt(e,t);var n=e.prototype;return n.createEl=function(e,n,i){void 0===e&&(e="div"),void 0===n&&(n={}),void 0===i&&(i={}),n=p({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&r.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=p({role:"button"},i),this.tabIndex_=n.tabIndex;var o=t.prototype.createEl.call(this,e,n,i);return this.createControlTextEl(o),o},n.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},n.createControlTextEl=function(t){return this.controlTextEl_=S("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},n.controlText=function(t,e){if(void 0===e&&(e=this.el()),void 0===t)return this.controlText_||"Need Text";var n=this.localize(t);this.controlText_=t,C(this.controlTextEl_,n),this.nonIconControl||e.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},n.handleClick=function(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(e){ke.isEventKey(e,"Space")||ke.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(Nt);Nt.registerComponent("ClickableComponent",ti);var ei=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update(),e.on("posterchange",vt(jt(i),i.update)),i}zt(e,t);var n=e.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},n.createEl=function(){return S("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},n.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},n.handleClick=function(t){if(this.player_.controls()){var e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length;!this.player_.tech(!0)||(ee||Jt)&&e||this.player_.tech(!0).focus(),this.player_.paused()?Se(this.player_.play()):this.player_.pause()}},e}(ti);Nt.registerComponent("PosterImage",ei);var ni="#222",ii={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function ri(t,e){var n;if(4===t.length)n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");n=t.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+e+")"}function oi(t,e,n){try{t.style[e]=n}catch(t){return}}var ai=function(e){function n(n,i,r){var o;o=e.call(this,n,i,r)||this;var a=vt(jt(o),o.updateDisplay);return n.on("loadstart",vt(jt(o),o.toggleDisplay)),n.on("texttrackchange",a),n.on("loadedmetadata",vt(jt(o),o.preselectTrack)),n.ready(vt(jt(o),(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",a),n.on("playerresize",a),t.addEventListener("orientationchange",a),n.on("dispose",(function(){return t.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],i=0;i<e.length;i++)this.player_.addRemoteTextTrack(e[i],!0);this.preselectTrack()}}))),o}zt(n,e);var i=n.prototype;return i.preselectTrack=function(){for(var t,e,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,a=0;a<r.length;a++){var s=r[a];o&&o.enabled&&o.language&&o.language===s.language&&s.kind in i?n=s.kind===o.kind?s:n||s:o&&!o.enabled?e=t=n=null:s.default&&("descriptions"!==s.kind||t?s.kind in i&&!e&&(e=s):t=s)}n?n.mode="showing":e?e.mode="showing":t&&(t.mode="showing")},i.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},i.clearDisplay=function(){"function"==typeof t.WebVTT&&t.WebVTT.processCues(t,[],this.el_)},i.updateDisplay=function(){var t=this.player_.textTracks(),e=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),e){for(var n=[],i=0;i<t.length;++i){var r=t[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var o=null,a=null,s=t.length;s--;){var l=t[s];"showing"===l.mode&&("descriptions"===l.kind?o=l:a=l)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},i.updateDisplayState=function(e){for(var n=this.player_.textTrackSettings.getValues(),i=e.activeCues,r=i.length;r--;){var o=i[r];if(o){var a=o.displayState;if(n.color&&(a.firstChild.style.color=n.color),n.textOpacity&&oi(a.firstChild,"color",ri(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(a.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&oi(a.firstChild,"backgroundColor",ri(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?oi(a,"backgroundColor",ri(n.windowColor,n.windowOpacity)):a.style.backgroundColor=n.windowColor),n.edgeStyle&&("dropshadow"===n.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+ni:"raised"===n.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+ni:"depressed"===n.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+ni:"uniform"===n.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+ni)),n.fontPercent&&1!==n.fontPercent){var s=t.parseFloat(a.style.fontSize);a.style.fontSize=s*n.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}n.fontFamily&&"default"!==n.fontFamily&&("small-caps"===n.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=ii[n.fontFamily])}}},i.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof t.WebVTT&&!e.every((function(t){return!t.activeCues}))){for(var n=[],i=0;i<e.length;++i)for(var r=e[i],o=0;o<r.activeCues.length;++o)n.push(r.activeCues[o]);t.WebVTT.processCues(t,n,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],l=0;l<s.activeCues.length;++l){var c=s.activeCues[l].displayState;E(c,"vjs-text-track-cue"),E(c,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},n}(Nt);Nt.registerComponent("TextTrackDisplay",ai);var si=function(t){function e(){return t.apply(this,arguments)||this}return zt(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),n=this.localize(e?"Audio Player":"
2Video Player"),i=S("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),r=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},e}(Nt);Nt.registerComponent("LoadingSpinner",si);var li=function(t){function e(){return t.apply(this,arguments)||this}zt(e,t);var n=e.prototype;return n.createEl=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={}),e=p({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),n=p({type:"button"},n);var i=Nt.prototype.createEl.call(this,"button",e,n);return this.createControlTextEl(i),i},n.addChild=function(t,e){void 0===e&&(e={});var n=this.constructor.name;return r.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Nt.prototype.addChild.call(this,t,e)},n.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(e){ke.isEventKey(e,"Space")||ke.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(ti);Nt.registerComponent("Button",li);var ci=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length;return Se(e),void(!this.player_.tech(!0)||(ee||Jt)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var o=function(){return r.focus()};Te(e)?e.then(o,(function(){})):this.setTimeout(o,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},n.handleMouseDown=function(t){this.mouseused_=!0},e}(li);ci.prototype.controlText_="Play Video",Nt.registerComponent("BigPlayButton",ci);var ui=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(e){ke.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(li);Nt.registerComponent("CloseButton",ui);var di=function(t){function e(e,n){var i;return void 0===n&&(n={}),i=t.call(this,e,n)||this,n.replay=void 0===n.replay||n.replay,i.on(e,"play",i.handlePlay),i.on(e,"pause",i.handlePause),n.replay&&i.on(e,"ended",i.handleEnded),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},n.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(li);function hi(t,e){t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),a=Math.floor(e/3600);return!isNaN(t)&&t!==1/0||(r=i=n="-"),(r=0<r||0<a?r+":":"")+(i=((r||10<=o)&&i<10?"0"+i:i)+":")+(n<10?"0"+n:n)}di.prototype.controlText_="Play",Nt.registerComponent("PlayToggle",di);
vendor: 32,598 bytes, line 2
2var pi=hi;function fi(t,e){return void 0===e&&(e=t),pi(t,e)}var mi=function(t){function n(e,n){var i;return(i=t.call(this,e,n)||this).on(e,["timeupdate","ended"],i.updateContent),i.updateTextNode_(),i}zt(n,t);var i=n.prototype;return i.createEl=function(){var e=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+"\xa0</span>"});return this.contentEl_=S("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},i.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},i.updateTextNode_=function(t){var n=this;void 0===t&&(t=0),t=fi(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestAnimationFrame((function(){if(n.contentEl_){var t=n.textNode_;n.textNode_=e.createTextNode(n.formattedTime_),n.textNode_&&(t?n.contentEl_.replaceChild(n.textNode_,t):n.contentEl_.appendChild(n.textNode_))}})))},i.updateContent=function(t){},n}(Nt);mi.prototype.labelText_="Time",mi.prototype.controlText_="Time",Nt.registerComponent("TimeDisplay",mi);var gi=function(t){function e(){return t.apply(this,arguments)||this}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(t){var e;e=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(e)},e}(mi);gi.prototype.labelText_="Current Time",gi.prototype.controlText_="Current Time",Nt.registerComponent("CurrentTimeDisplay",gi);var vi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"durationchange",i.updateContent),i.on(e,"loadstart",i.updateContent),i.on(e,"loadedmetadata",i.updateContent),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(mi);vi.prototype.labelText_="Duration",vi.prototype.controlText_="Duration",Nt.registerComponent("DurationDisplay",vi);var yi=function(t){function e(){return t.apply(this,arguments)||this}return zt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},e}(Nt);Nt.registerComponent("TimeDivider",yi);var bi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"durationchange",i.updateContent),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var e=t.prototype.createEl.call(this);return e.insertBefore(S("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},n.updateContent=function(t){var e;"number"==typeof this.player_.duration()&&(e=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(e))},e}(mi);bi.prototype.labelText_="Remaining Time",bi.prototype.controlText_="Remaining Time",Nt.registerComponent("RemainingTimeDisplay",bi);var _i=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}zt(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=S("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"\xa0</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},n.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},n.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(Nt);Nt.registerComponent("LiveDisplay",_i);var wi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatus),i}zt(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=S("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,t.prototype.dispose.call(this)},e}(li);function Ti(t,e,n){return t=Number(t),Math.min(n,Math.max(e,isNaN(t)?e:t))}wi.prototype.controlText_="Seek to live, currently playing live",Nt.registerComponent("SeekToLive",wi);var Si=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}zt(e,t);var n=e.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(e,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=p({tabIndex:0},n),i=p({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),t.prototype.createEl.call(this,e,n,i)},n.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||Zt||t.preventDefault(),M(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},n.handleMouseMove=function(t){},n.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;N(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},n.update=function(){var t=this;if(this.el_&&this.bar){var e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestAnimationFrame((function(){var n=t.vertical()?"height":"width";t.bar.el().style[n]=(100*e).toFixed(2)+"%"}))),e}},n.getProgress=function(){return Number(Ti(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(t){var e=R(this.el_,t);return this.vertical()?e.y:e.x},n.handleKeyDown=function(e){ke.isEventKey(e,"Left")||ke.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):ke.isEventKey(e,"Right")||ke.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){t.stopPropagation(),t.preventDefault()},n.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Nt);function Ci(t,e){return Ti(t/e*100,0,100).toFixed(2)+"%"}Nt.registerComponent("Slider",Si);var ki=function(t){function n(e,n){var i;return(i=t.call(this,e,n)||this).partEls_=[],i.on(e,"progress",i.update),i}zt(n,t);var i=n.prototype;return i.createEl=function(){var n=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=S("span",{className:"vjs-control-text"}),r=S("span",{textContent:this.localize("Loaded")}),o=e.createTextNode(": ");return this.percentageEl_=S("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),n.appendChild(i),i.appendChild(r),i.appendChild(o),i.appendChild(this.percentageEl_),n},i.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},i.update=function(t){var e=this;this.requestAnimationFrame((function(){var t=e.player_.liveTracker,n=e.player_.buffered(),i=t&&t.isLive()?t.seekableEnd():e.player_.duration(),r=e.player_.bufferedEnd(),o=e.partEls_,a=Ci(r,i);e.percent_!==a&&(e.el_.style.width=a,C(e.percentageEl_,a),e.percent_=a);for(var s=0;s<n.length;s++){var l=n.start(s),c=n.end(s),u=o[s];u||(u=e.el_.appendChild(S()),o[s]=u),u.dataset.start===l&&u.dataset.end===c||(u.dataset.start=l,u.dataset.end=c,u.style.left=Ci(l,r),u.style.width=Ci(c-l,r))}for(var d=o.length;d>n.length;d--)e.el_.removeChild(o[d-1]);o.length=n.length}))},n}(Nt);Nt.registerComponent("LoadProgressBar",ki);var xi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=yt(vt(jt(i),i.update),30),i}zt(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(t,e,n){var i=j(this.el_),r=j(this.player_.el()),o=t.width*e;if(r&&i){var a=t.left-r.left+o,s=t.width-o+(r.right-t.right),l=i.width/2;a<l?l+=l-a:s<l&&(l=s),l<0?l=0:l>i.width&&(l=i.width),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(t){C(this.el_,t)},n.updateTime=function(t,e,n,i){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var o,a=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var s=r.player_.liveTracker.liveWindow(),l=s-e*s;o=(l<1?"":"-")+fi(l,s)}else o=fi(n,a);r.update(t,e,o),i&&i()}))},e}(Nt);Nt.registerComponent("TimeTooltip",xi);var Ei=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=yt(vt(jt(i),i.update),30),i}zt(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(t,e){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(t,e,i)}},e}(Nt);Ei.prototype.options_={children:[]},se||Xt||Ei.prototype.options_.children.push("timeTooltip"),Nt.registerComponent("PlayProgressBar",Ei);var $i=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).update=yt(vt(jt(i),i.update),30),i}zt(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(t,e){var n=this,i=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,i,(function(){n.el_.style.left=t.width*e+"px"}))},e}(Nt);$i.prototype.options_={children:["timeTooltip"]},Nt.registerComponent("MouseTimeDisplay",$i);var Ii=function(t){function n(e,n){var i;return(i=t.call(this,e,n)||this).setEventHandlers_(),i}zt(n,t);var i=n.prototype;return i.setEventHandlers_=function(){this.update_=vt(this,this.update),this.update=yt(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in e&&"visibilityState"in e&&this.on(e,"visibilitychange",this.toggleVisibility_)},i.toggleVisibility_=function(t){e.hidden?this.disableInterval_(t):(this.enableInterval_(),this.update())},i.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},i.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.update=function(e){var n=this,i=t.prototype.update.call(this);return this.requestAnimationFrame((function(){var t=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),e=n.player_.liveTracker,r=n.player_.duration();e&&e.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===t&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[fi(t,r),fi(r,r)],"{1} of {2}")),n.currentTime_=t,n.duration_=r),n.bar&&n.bar.update(j(n.el()),n.getProgress())})),i},i.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.getPercent=function(){var t,e=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},i.handleMouseDown=function(e){V(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},i.handleMouseMove=function(t){if(V(t)){var e,n=this.calculateDistance(t),i=this.player_.liveTracker;if(i&&i.isLive()){if(.99<=n)return void i.seekToLiveEdge();var r=i.seekableStart(),o=i.liveCurrentTime();if(o<=(e=r+n*i.liveWindow())&&(e=o),e<=r&&(e=r+.1),e===1/0)return}else(e=n*this.player_.duration())===this.player_.duration()&&(e-=.1);this.player_.currentTime(e)}},i.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},i.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},i.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Se(this.player_.play()):this.update_()},i.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},i.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},i.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},i.handleKeyDown=function(e){if(ke.isEventKey(e,"Space")||ke.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(ke.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(0);else if(ke.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(ke(e))){e.preventDefault(),e.stopPropagation();var n=10*(ke.codes[ke(e)]-ke.codes[0])/100;this.player_.currentTime(this.player_.duration()*n)}else ke.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):ke.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},i.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableInterval_),this.off(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in e&&"visibilityState"in e&&this.off(e,"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},n}(Si);Ii.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},se||Xt||Ii.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Nt.registerComponent("SeekBar",Ii);var Oi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handleMouseMove=yt(vt(jt(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=yt(vt(jt(i),i.handleMouseSeek),30),i.enable(),i}zt(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("playProgressBar"),i=e.getChild("mouseTimeDisplay");if(n||i){var r=e.el(),o=j(r),a=R(r,t).x;a=Ti(0,1,a),i&&i.update(o,a),n&&n.update(o,e.getProgress())}}},n.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},n.enabled=function(){return this.enabled_},n.disable=function(){this.children().forEach((function(t){return t.disable&&t.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},n.enable=function(){this.children().forEach((function(t){return t.enable&&t.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.handleMouseDown=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(Nt);Oi.prototype.options_={children:["seekBar"]},Nt.registerComponent("ProgressControl",Oi);var Ai=function(t){function n(n,i){var r;return(r=t.call(this,n,i)||this).on(n,["enterpictureinpicture","leavepictureinpicture"],r.handlePictureInPictureChange),e.pictureInPictureEnabled||r.disable(),r}zt(n,t);var i=n.prototype;return i.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},i.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture")},i.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},n}(li);Ai.prototype.controlText_="Picture-in-Picture",Nt.registerComponent("PictureInPictureToggle",Ai);var Pi=function(t){function n(n,i){var r;return(r=t.call(this,n,i)||this).on(n,"fullscreenchange",r.handleFullscreenChange),!1===e[n.fsApi_.fullscreenEnabled]&&r.disable(),r}zt(n,t);var i=n.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},n}(li);Pi.prototype.controlText_="Fullscreen",Nt.registerComponent("FullscreenToggle",Pi);var Di=function(t){function e(){return t.apply(this,arguments)||this}return zt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(Nt);Nt.registerComponent("VolumeLevel",Di);var Li=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on("slideractive",i.updateLastVolume_),i.on(e,"volumechange",i.updateARIAAttributes),e.ready((function(){return i.updateARIAAttributes()})),i}zt(e,t);var n=e.prototype;return n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(e){V(e)&&t.prototype.handleMouseDown.call(this,e)},n.handleMouseMove=function(t){V(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(Si);Li.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Li.prototype.playerEvent="volumechange",Nt.registerComponent("VolumeBar",Li);var Mi=function(t){function e(e,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,void 0!==n.volumeBar&&!m(n.volumeBar)||(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(jt(i),e),i.throttledHandleMouseMove=yt(vt(jt(i),i.handleMouseMove),30),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}zt(e,t);var n=e.prototype;return n.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},n.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},n.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},n.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(Nt);Mi.prototype.options_={children:["volumeBar"]},Nt.registerComponent("VolumeControl",Mi);var Ni=function(t){function e(e,n){var i;return i=t.call(this,e,n)||this,function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(jt(i),e),i.on(e,["loadstart","volumechange"],i.update),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},n.handleClick=function(t){var e=this.player_.volume(),n=this.player_.lastVolume_();if(0===e){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(t){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var t=this.player_.volume(),e=3;se&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var n=0;n<4;n++)$(this.el_,"vjs-vol-"+n);E(this.el_,"vjs-vol-"+e)},n.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(li);Ni.prototype.controlText_="Mute",Nt.registerComponent("MuteToggle",Ni);var ji=function(t){function n(e,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,void 0!==n.volumeControl&&!m(n.volumeControl)||(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=t.call(this,e,n)||this).on(e,["loadstart"],i.volumePanelState_),i.on(i.muteToggle,"keyup",i.handleKeyPress),i.on(i.volumeControl,"keyup",i.handleVolumeControlKeyUp),i.on("keydown",i.handleKeyPress),i.on("mouseover",i.handleMouseOver),i.on("mouseout",i.handleMouseOut),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}zt(n,t);var i=n.prototype;return i.sliderActive_=function(){this.addClass("vjs-slider-active")},i.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},i.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},i.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},i.handleVolumeControlKeyUp=function(t){ke.isEventKey(t,"Esc")&&this.muteToggle.focus()},i.handleMouseOver=function(t){this.addClass("vjs-hover"),ht(e,"keyup",vt(this,this.handleKeyPress))},i.handleMouseOut=function(t){this.removeClass("vjs-hover"),pt(e,"keyup",vt(this,this.handleKeyPress))},i.handleKeyPress=function(t){ke.isEventKey(t,"Esc")&&this.handleMouseOut()},n}(Nt);ji.prototype.options_={children:["muteToggle","volumeControl"]},Nt.registerComponent("VolumePanel",ji);var Ui=function(t){function n(e,n){var i;return i=t.call(this,e,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyDown),i.boundHandleBlur_=vt(jt(i),i.handleBlur),i.boundHandleTapClick_=vt(jt(i),i.handleTapClick),i}zt(n,t);var i=n.prototype;return i.addEventListenerForItem=function(t){t instanceof Nt&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},i.removeEventListenerForItem=function(t){t instanceof Nt&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},i.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},i.addItem=function(t){var e=this.addChild(t);e&&this.addEventListenerForItem(e)},i.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=S(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),ht(n,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),n},i.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},i.handleBlur=function(t){var n=t.relatedTarget||e.activeElement;if(!this.children().some((function(t){return t.el()===n}))){var i=this.menuButton_;i&&i.buttonPressed_&&n!==i.el().firstChild&&i.unpressButton()}},i.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var n=e.filter((function(e){return e.el()===t.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},i.handleKeyDown=function(t){ke.isEventKey(t,"Left")||ke.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(ke.isEventKey(t,"Right")||ke.isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},i.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},i.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},i.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),0<e.length&&(t<0?t=0:t>=e.length&&(t=e.length-1),e[this.focusedChild_=t].el_.focus())},n}(Nt);Nt.registerComponent("Menu",Ui);var Ri=function(t){function n(n,i){var r;void 0===i&&(i={}),(r=t.call(this,n,i)||this).menuButton_=new li(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=li.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"keydown",r.handleKeyDown),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),ht(e,"keyup",vt(jt(r),r.handleMenuKeyUp))})),r.on("mouseleave",r.handleMouseLeave),r.on("keydown",r.handleSubmenuKeyDown),r}zt(n,t);var i=n.prototype;return i.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},i.createMenu=function(){var t=new Ui(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=S("li",{className:"vjs-menu-title",innerHTML:Lt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var n=new Nt(this.player_,{el:e});t.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)t.addItem(this.items[i]);return t},i.createItems=function(){},i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},i.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+li.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},i.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},i.controlText=function(t,e){return void 0===e&&(e=this.menuButton_.el()),this.menuButton_.controlText(t,e)},i.dispose=function(){this.handleMouseLeave(),t.prototype.dispose.call(this)},i.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},i.handleMouseLeave=function(t){this.removeClass("vjs-hover"),pt(e,"keyup",vt(this,this.handleMenuKeyUp))},i.focus=function(){this.menuButton_.focus()},i.blur=function(){this.menuButton_.blur()},i.handleKeyDown=function(t){ke.isEventKey(t,"Esc")||ke.isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),ke.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(ke.isEventKey(t,"Up")||ke.isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},i.handleMenuKeyUp=function(t){(ke.isEventKey(t,"Esc")||ke.isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},i.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},i.handleSubmenuKeyDown=function(t){(ke.isEventKey(t,"Esc")||ke.isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),ke.isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus()))},i.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),se&&w())return;this.menu.focus()}},i.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","fal
2se"))},i.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},i.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},n}(Nt);Nt.registerComponent("MenuButton",Ri);var Bi=function(t){function e(e,n){var i,r=n.tracks;if((i=t.call(this,e,n)||this).items.length<=1&&i.hide(),!r)return jt(i);var o=vt(jt(i),i.update);return r.addEventListener("removetrack",o),r.addEventListener("addtrack",o),i.player_.on("ready",o),i.player_.on("dispose",(function(){r.removeEventListener("removetrack",o),r.removeEventListener("addtrack",o)})),i}return zt(e,t),e}(Ri);Nt.registerComponent("TrackButton",Bi);var Fi=["Tab","Esc","Up","Down","Right","Left"],zi=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}zt(e,t);var n=e.prototype;return n.createEl=function(e,n,i){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",p({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),i)},n.handleKeyDown=function(e){Fi.some((function(t){return ke.isEventKey(e,t)}))||t.prototype.handleKeyDown.call(this,e)},n.handleClick=function(t){this.selected(!0)},n.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(ti);Nt.registerComponent("MenuItem",zi);var Hi=function(n){function i(i,r){var o,a,s=r.track,c=i.textTracks();function u(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];o.handleTracksChange.apply(jt(o),e)}function d(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];o.handleSelectedLanguageChange.apply(jt(o),e)}return r.label=s.label||s.language||"Unknown",r.selected="showing"===s.mode,(o=n.call(this,i,r)||this).track=s,o.kinds=(r.kinds||[r.kind||o.track.kind]).filter(Boolean),i.on(["loadstart","texttrackchange"],u),c.addEventListener("change",u),c.addEventListener("selectedlanguagechange",d),o.on("dispose",(function(){i.off(["loadstart","texttrackchange"],u),c.removeEventListener("change",u),c.removeEventListener("selectedlanguagechange",d)})),void 0===c.onchange&&o.on(["tap","click"],(function(){if("object"!=l(t.Event))try{a=new t.Event("change")}catch(t){}a||(a=e.createEvent("Event")).initEvent("change",!0,!0),c.dispatchEvent(a)}
vendor: 18,291 bytes, line 2
2)),o.handleTracksChange(),o}zt(i,n);var r=i.prototype;return r.handleClick=function(t){var e=this.track,i=this.player_.textTracks();if(n.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var o=i[r];-1!==this.kinds.indexOf(o.kind)&&(o===e?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},r.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},r.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},r.dispose=function(){this.track=null,n.prototype.dispose.call(this)},i}(zi);Nt.registerComponent("TextTrackMenuItem",Hi);var qi=function(t){function e(e,n){return n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,t.call(this,e,n)||this}zt(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var o=e[i];if(-1<this.options_.kinds.indexOf(o.kind)&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),n=!0,i=0,r=e.length;i<r;i++){var o=e[i];if(-1<["captions","descriptions","subtitles"].indexOf(o.kind)&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Hi);Nt.registerComponent("OffTextTrackMenuItem",qi);var Vi=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.textTracks(),t.call(this,e,n)||this}return zt(e,t),e.prototype.createItems=function(t,e){var n;void 0===t&&(t=[]),void 0===e&&(e=Hi),this.label_&&(n=this.label_+" off"),t.push(new qi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var o=i[r];if(-1<this.kinds_.indexOf(o.kind)){var a=new e(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),t.push(a)}}return t},e}(Bi);Nt.registerComponent("TextTrackButton",Vi);var Wi=function(t){function e(e,n){var i,r=n.track,o=n.cue,a=e.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=a&&a<o.endTime,(i=t.call(this,e,n)||this).track=r,i.cue=o,r.addEventListener("cuechange",vt(jt(i),i.update)),i}zt(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(t){var e=this.cue,n=this.player_.currentTime();this.selected(e.startTime<=n&&n<e.endTime)},e}(zi);Nt.registerComponent("ChaptersTrackMenuItem",Wi);var Gi=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},n.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},n.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;0<=e;e--){var n=t[e];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Lt(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},n.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,i=e.length;n<i;n++){var r=e[n],o=new Wi(this.player_,{track:this.track_,cue:r});t.push(o)}return t},e}(Vi);Gi.prototype.kind_="chapters",Gi.prototype.controlText_="Chapters",Nt.registerComponent("ChaptersButton",Gi);var Xi=function(t){function e(e,n,i){var r;r=t.call(this,e,n,i)||this;var o=e.textTracks(),a=vt(jt(r),r.handleTracksChange);return o.addEventListener("change",a),r.on("dispose",(function(){o.removeEventListener("change",a)})),r}zt(e,t);var n=e.prototype;return n.handleTracksChange=function(t){for(var e=this.player().textTracks(),n=!1,i=0,r=e.length;i<r;i++){var o=e[i];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Vi);Xi.prototype.kind_="descriptions",Xi.prototype.controlText_="Descriptions",Nt.registerComponent("DescriptionsButton",Xi);var Yi=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Vi);Yi.prototype.kind_="subtitles",Yi.prototype.controlText_="Subtitles",Nt.registerComponent("SubtitlesButton",Yi);var Ki=function(t){function e(e,n){var i;return n.track={player:e,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=t.call(this,e,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return zt(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(Hi);Nt.registerComponent("CaptionSettingsMenuItem",Ki);var Qi=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Ki(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(Vi);Qi.prototype.kind_="captions",Qi.prototype.controlText_="Captions",Nt.registerComponent("CaptionsButton",Qi);var Ji=function(t){function e(){return t.apply(this,arguments)||this}return zt(e,t),e.prototype.createEl=function(e,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),r+="</span>",t.prototype.createEl.call(this,e,p({innerHTML:r},n),i)},e}(Hi);Nt.registerComponent("SubsCapsMenuItem",Ji);var Zi=function(t){function e(e,n){var i;return void 0===n&&(n={}),(i=t.call(this,e,n)||this).label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)&&(i.label_="captions"),i.menuButton_.controlText(Lt(i.label_)),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Ki(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e,Ji)},e}(Vi);Zi.prototype.kinds_=["captions","subtitles"],Zi.prototype.controlText_="Subtitles",Nt.registerComponent("SubsCapsButton",Zi);var tr=function(t){function e(e,n){var i,r=n.track,o=e.audioTracks();function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i.handleTracksChange.apply(jt(i),e)}return n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=t.call(this,e,n)||this).track=r,i.addClass("vjs-"+r.kind+"-menu-item"),o.addEventListener("change",a),i.on("dispose",(function(){o.removeEventListener("change",a)})),i}zt(e,t);var n=e.prototype;return n.createEl=function(e,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),r+="</span>",t.prototype.createEl.call(this,e,p({innerHTML:r},n),i)},n.handleClick=function(e){var n=this.player_.audioTracks();t.prototype.handleClick.call(this,e);for(var i=0;i<n.length;i++){var r=n[i];r.enabled=r===this.track}},n.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(zi);Nt.registerComponent("AudioTrackMenuItem",tr);var er=function(t){function e(e,n){return void 0===n&&(n={}),n.tracks=e.audioTracks(),t.call(this,e,n)||this}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(t){void 0===t&&(t=[]),this.hideThreshold_=1;for(var e=this.player_.audioTracks(),n=0;n<e.length;n++){var i=e[n];t.push(new tr(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return t},e}(Bi);er.prototype.controlText_="Audio Track",Nt.registerComponent("AudioTrackButton",er);var nr=function(t){function e(e,n){var i,r=n.rate,o=parseFloat(r,10);return n.label=r,n.selected=1===o,n.selectable=!0,n.multiSelectable=!1,(i=t.call(this,e,n)||this).label=r,i.rate=o,i.on(e,"ratechange",i.update),i}zt(e,t);var n=e.prototype;return n.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(zi);nr.prototype.contentElType="button",Nt.registerComponent("PlaybackRateMenuItem",nr);var ir=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).updateVisibility(),i.updateLabel(),i.on(e,"loadstart",i.updateVisibility),i.on(e,"ratechange",i.updateLabel),i}zt(e,t);var n=e.prototype;return n.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=S("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},n.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},n.createMenu=function(){var t=new Ui(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;0<=n;n--)t.addChild(new nr(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>e){i=n[r];break}this.player().playbackRate(i)},n.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},n.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(Ri);ir.prototype.controlText_="Playback Rate",Nt.registerComponent("PlaybackRateMenuButton",ir);var rr=function(t){function e(){return t.apply(this,arguments)||this}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(Nt);Nt.registerComponent("Spacer",rr);var or=function(t){function e(){return t.apply(this,arguments)||this}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},n.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="\xa0",e},e}(rr);Nt.registerComponent("CustomControlSpacer",or);var ar=function(t){function e(){return t.apply(this,arguments)||this}return zt(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(Nt);ar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in e&&ar.prototype.options_.children.splice(ar.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Nt.registerComponent("ControlBar",ar);var sr=function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).on(e,"error",i.open),i}zt(e,t);var n=e.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},n.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(Ee);sr.prototype.options_=c({},Ee.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Nt.registerComponent("ErrorDisplay",sr);var lr="vjs-text-track-settings",cr=["#000","Black"],ur=["#00F","Blue"],dr=["#0FF","Cyan"],hr=["#0F0","Green"],pr=["#F0F","Magenta"],fr=["#F00","Red"],mr=["#FFF","White"],gr=["#FF0","Yellow"],vr=["1","Opaque"],yr=["0.5","Semi-Transparent"],br=["0","Transparent"],_r={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[cr,mr,fr,hr,ur,gr,pr,dr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[vr,yr,br]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[mr,cr,fr,hr,ur,gr,pr,dr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[vr,yr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[br,yr,vr]}};function wr(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}_r.windowColor.options=_r.backgroundColor.options;var Tr=function(e){function n(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=vt(jt(i),i.updateDisplay),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=S("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),h(_r,(function(t){i.on(i.$(t.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}zt(n,e);var i=n.prototype;return i.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},i.createElSelect_=function(t,e,n){var i=this;void 0===e&&(e=""),void 0===n&&(n="label");var r=_r[t],o=r.id.replace("%s",this.id_),a=[e,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(r.options.map((function(t){var e=o+"-"+t[1].replace(/\W+/g,"");return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+a+" "+e+'">',i.localize(t[1]),"</option>"].join("")}))).concat("</select>").join("")},i.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},i.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">
2',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},i.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},i.createElColors_=function(){return S("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},i.createElFont_=function(){return S("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},i.createElControls_=function(){var t=this.localize("restore all settings to the default values");return S("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},i.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},i.label=function(){return this.localize("Caption Settings Dialog")},i.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},i.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},i.getValues=function(){var t=this;return function(e,n,i){return void 0===i&&(i=0),d(e).reduce((function(n,i){return function(e,n,i){var r=function(t,e){return wr(t.options[t.options.selectedIndex].value,e)}(t.$(n.selector),n.parser);return void 0!==r&&(e[i]=r),e}(n,e[i],i)}),i)}(_r,0,{})},i.setValues=function(t){var e=this;h(_r,(function(n,i){!function(t,e,n){if(e)for(var i=0;i<t.options.length;i++)if(wr(t.options[i].value,n)===e){t.selectedIndex=i;break}}(e.$(n.selector),t[i],n.parser)}))},i.setDefaults=function(){var t=this;h(_r,(function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n}))},i.restoreSettings=function(){var e;try{e=JSON.parse(t.localStorage.getItem(lr))}catch(e){r.warn(e)}e&&this.setValues(e)},i.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?t.localStorage.setItem(lr,JSON.stringify(e)):t.localStorage.removeItem(lr)}catch(e){r.warn(e)}}},i.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},i.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar,e=t&&t.subsCapsButton,n=t&&t.captionsButton;e?e.focus():n&&n.focus()},n}(Ee);Nt.registerComponent("TextTrackSettings",Tr);var Sr=function(e){function n(n,i){var r,o=i.ResizeObserver||t.ResizeObserver;null===i.ResizeObserver&&(o=!1);var a=Mt({createEl:!o,reportTouchActivity:!1},i);return(r=e.call(this,n,a)||this).ResizeObserver=i.ResizeObserver||t.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(e,n,i,r){var o;function a(){var t=this,n=arguments,i=function(){i=o=null,e.apply(t,n)};r.clearTimeout(o),o=r.setTimeout(i,100)}return void 0===r&&(r=t),a.cancel=function(){r.clearTimeout(o),o=null},a}((function(){r.resizeHandler()}),0,0,jt(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(n.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var t=r.debouncedHandler_,e=r.unloadListener_=function(){pt(this,"resize",t),pt(this,"unload",e),e=null};ht(r.el_.contentWindow,"unload",e),ht(r.el_.contentWindow,"resize",t)}},r.one("load",r.loadListener_)),r}zt(n,e);var i=n.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},i.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},i.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},n}(Nt);Nt.registerComponent("ResizeManager",Sr);var Cr={trackingThreshold:30,liveTolerance:15},kr=function(n){function i(t,i){var r,o=Mt(Cr,i,{createEl:!1});return(r=n.call(this,t,o)||this).reset_(),r.on(r.player_,"durationchange",r.handleDurationchange),ee&&"hidden"in e&&"visibilityState"in e&&r.on(e,"visibilitychange",r.handleVisibilityChange),r}zt(i,n);var r=i.prototype;return r.handleVisibilityChange=function(){this.player_.duration()===1/0&&(e.hidden?this.stopTracking():this.startTracking())},r.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var n=Number(t.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(n-this.lastTime_)/1e3;this.lastTime_=n,this.pastSeekEnd_=this.pastSeekEnd()+i;var r=this.liveCurrentTime(),o=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},r.handleDurationchange=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},r.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLive_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked):(this.one(this.player_,"play",this.handlePlay),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)))},r.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked)},r.handleSeeked=function(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=!this.skipNextSeeked_&&2<t,this.skipNextSeeked_=!1,this.trackLive_()},r.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)},r.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.skipNextSeeked_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLive_),this.off(this.player_,"seeked",this.handleSeeked),this.off(this.player_,"play",this.handlePlay),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate),this.off(this.player_,"timeupdate",this.seekToLiveEdge)},r.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},r.seekableEnd=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.end(n));return e.length?e.sort()[e.length-1]:1/0},r.seekableStart=function(){for(var t=this.player_.seekable(),e=[],n=t?t.length:0;n--;)e.push(t.start(n));return e.length?e.sort()[0]:0}
2,r.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?1/0:t-this.seekableStart()},r.isLive=function(){return this.isTracking()},r.atLiveEdge=function(){return!this.behindLiveEdge()},r.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},r.pastSeekEnd=function(){var t=this.seekableEnd();return-1!==this.lastSeekEnd_&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_},r.behindLiveEdge=function(){return this.behindLiveEdge_},r.isTracking=function(){return"number"==typeof this.trackingInterval_},r.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.skipNextSeeked_=!0,this.player_.currentTime(this.liveCurrentTime()))},r.dispose=function(){this.off(e,"visibilitychange",this.handleVisibilityChange),this.stopTracking(),n.prototype.dispose.call(this)},i}(Nt);function xr(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var n=t.$$("source"),i=[],r="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(r=i[0]),t.triggerSourceset(r),!0)}function Er(t,e){for(var n={},i=0;i<t.length&&!((n=Object.getOwnPropertyDescriptor(t[i],e))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n}function $r(e){var n=e.el();if(!n.resetSourceWatch_){var i={},r=function(e){return Er([e.el(),t.HTMLMediaElement.prototype,t.Element.prototype,Ar],"innerHTML")}(e),o=function(t){return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];
vendor: 4,108 bytes, line 2
2var a=t.apply(n,r);return xr(e),a}};["append","appendChild","insertAdjacentHTML"].forEach((function(t){n[t]&&(i[t]=n[t],n[t]=o(i[t]))})),Object.defineProperty(n,"innerHTML",Mt(r,{set:o(r.set)})),n.resetSourceWatch_=function(){n.resetSourceWatch_=null,Object.keys(i).forEach((function(t){n[t]=i[t]})),Object.defineProperty(n,"innerHTML",r)},e.one("sourceset",n.resetSourceWatch_)}}function Ir(t,e,n,i){function r(n){return Object.defineProperty(t,e,{value:n,enumerable:!0,writable:!0})}void 0===i&&(i=!0);var o={configurable:!0,enumerable:!0,get:function(){var t=n();return r(t),t}};return i&&(o.set=r),Object.defineProperty(t,e,o)}Nt.registerComponent("LiveTracker",kr);var Or,Ar=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(n){var i=e.createElement(this.nodeName.toLowerCase());i.innerHTML=n;for(var r=e.createDocumentFragment();i.childNodes.length;)r.appendChild(i.childNodes[0]);return this.innerText="",t.Element.prototype.appendChild.call(this,r),this.innerHTML}}),Pr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?De(t.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return t.Element.prototype.setAttribute.call(this,"src",e),e}}),Dr=function(n){function i(t,e){var i;i=n.call(this,t,e)||this;var o=t.source,a=!1;if(o&&(i.el_.currentSrc!==o.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(o):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.el_.hasChildNodes()){for(var s=i.el_.childNodes,l=s.length,c=[];l--;){var u=s[l];"track"===u.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),a||i.el_.hasAttribute("crossorigin")||!Me(u.src)||(a=!0)):c.push(u))}for(var d=0;d<c.length;d++)i.el_.removeChild(c[d])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&r.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(re||ae||Kt)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}zt(i,n);var o=i.prototype;return o.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),i.disposeMediaElement(this.el_),this.options_=null,n.prototype.dispose.call(this)},o.setupSourcesetHandling_=function(){!function(e){if(e.featuresSourceset){var n=e.el();if(!n.resetSourceset_){var i=function(e){return Er([e.el(),t.HTMLMediaElement.prototype,Pr],"src")}(e),r=n.setAttribute,o=n.load;Object.defineProperty(n,"src",Mt(i,{set:function(t){var r=i.set.call(n,t);return e.triggerSourceset(n.src),r}})),n.setAttribute=function(t,i){var o=r.call(n,t,i);return/src/i.test(t)&&e.triggerSourceset(n.src),o},n.load=function(){var t=o.call(n);return xr(e)||(e.triggerSourceset(""),$r(e)),t},n.currentSrc?e.triggerSourceset(n.currentSrc):xr(e)||$r(e),n.resetSourceset_=function(){n.resetSourceset_=null,n.load=o,n.setAttribute=r,Object.defineProperty(n,"src",i),n.resetSourceWatch_&&n.resetSourceWatch_()}}}}(this)},o.restoreMetadataTracksInIOSNativePlayer_=function(){function t(){e=[];for(var t=0;t<n.length;t++){var i=n[t];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}}var e,n=this.textTracks();function i(){for(var t=0;t<e.length;t++){var r=e[t];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}n.removeEventListener("change",i)}t(),n.addEventListener("change",t),this.on("dispose",(function(){return n.removeEventListener("change",t)})),this.on("webkitbeginfullscreen",(function(){n.removeEventListener("change",t),n.removeEventListener("change",i),n.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){n.removeEventListener("change",t),n.addEventListener("change",t),n.removeEventListener("change",i)}))},o.overrideNative_=function(t,e){var n=this;if(e===this["featuresNative"+t+"Tracks"]){var i=t.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEac
2h((function(t){n.el()[i+"Tracks"].removeEventListener(t,n[i+"TracksListeners_"][t])})),this["featuresNative"+t+"Tracks"]=!e,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},o.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},o.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},o.proxyNativeTracksForType_=function(t){var e=this,n=ln[t],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var o={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===t&&e[cn.remoteText.getterName]().trigger(i)},addtrack:function(t){r.addTrack(t.track)},removetrack:function(t){r.removeTrack(t.track)}},a=function(){for(var t=[],e=0;e<r.length;e++){for(var n=!1,o=0;o<i.length;o++)if(i[o]===r[e]){n=!0;break}n||t.push(r[e])}for(;t.length;)r.removeTrack(t.shift())};this[n.getterName+"Listeners_"]=o,Object.keys(o).forEach((function(t){var n=o[t];i.addEventListener(t,n),e.on("dispose",(function(e){return i.removeEventListener(t,n)}
2))})),this.on("loadstart",a),this.on("dispose",(function(t){return e.off("loadstart",a)}))}},o.proxyNativeTracks_=function(){var t=this;ln.names.forEach((function(e){t.proxyNativeTracksForType_(e)}))},o.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(n,t),i.disposeMediaElement(t),t=n}else{t=e.createElement("video");var r=Mt({},this.options_.tag&&A(this.options_.tag));re&&!0===this.options_.nativeControlsForTouch||delete r.controls,O(t,p(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&D(t,"preload",this.options_.preload);for(var o=["loop","muted","playsinline","autoplay"],a=0;a<o.length;a++){var s=o[a],l=this.options_[s];void 0!==l&&(l?D(t,s,s):L(t,s),t[s]=l)}return t},o.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),e||this.trigger("loadstart")}))}var r=["loadstart"];r.push("loadedmetadata"),2<=t.readyState&&r.push("loadeddata"),3<=t.readyState&&r.push("canplay"),4<=t.readyState&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(t){this.trigger(t)}),this)}))}},o.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){r(t,"Video is not ready. (Video.js)")}},o.duration=function(){var t=this;return this.el_.duration===1/0&&Xt&&Zt&&0===this.el_.currentTime?(this.on("timeupdate",(function e(){0<t.el_.currentTime&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))})),NaN):this.el_.duration||NaN},o.width=function(){return this.el_.offsetWidth},o.height=function(){return this.el_.offsetHeight},o.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)}))}},o.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=t.navigator&&t.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},o.enterFullScreen=function(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)Se(this.el_.play()),this.setTimeout((function(){t.pause();try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},o.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},o.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},o.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},o.reset=function(){i.resetMediaElement(this.el_)},o.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},o.setControls=function(t){this.el_.controls=!!t},o.addTextTrack=function(t,e,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,e,i):n.prototype.addTextTrack.call(this,t,e,i)},o.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return n.prototype.createRemoteTextTrack.call(this,t);var i=e.createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t.default&&(i.default=t.default),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},o.addRemoteTextTrack=function(t,e){var i=n.prototype.addRemoteTextTrack.call(this,t,e);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},o.removeRemoteTextTrack=function(t){if(n.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var e=this.$$("track"),i=e.length;i--;)t!==e[i]&&t!==e[i].track||this.el().removeChild(e[i])},o.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),t.performance&&"function"==typeof t.performance.now?e.creationTime=t.performance.now():t.performance&&t.performance.timing&&"number"==typeof t.performance.timing.navigationStart&&(e.creationTime=t.Date.now()-t.performance.timing.navigationStart),e},i}(Fn);Ir(Dr,"TEST_VID",(function(){if(b()){var t=e.createElement("video"),n=e.createElement("track");return n.kind="captions",n.srclang="en",n.label="English",t.appendChild(n),t}})),Dr.isSupported=function(){try{Dr.TEST_VID.volume=.5}catch(t){return!1}return!(!Dr.TEST_VID||!Dr.TEST_VID.canPlayType)},Dr.canPlayType=function(t){return Dr.TEST_VID.canPlayType(t)},Dr.canPlaySource=function(t,e){return Dr.canPlayType(t.type)},Dr.canControlVolume=function(){try{var t=Dr.TEST_VID.volume;
vendor: 12,499 bytes, line 2
2return Dr.TEST_VID.volume=t/2+.1,t!==Dr.TEST_VID.volume}catch(t){return!1}},Dr.canMuteVolume=function(){try{var t=Dr.TEST_VID.muted;return Dr.TEST_VID.muted=!t,Dr.TEST_VID.muted?D(Dr.TEST_VID,"muted","muted"):L(Dr.TEST_VID,"muted"),t!==Dr.TEST_VID.muted}catch(t){return!1}},Dr.canControlPlaybackRate=function(){if(Xt&&Zt&&te<58)return!1;try{var t=Dr.TEST_VID.playbackRate;return Dr.TEST_VID.playbackRate=t/2+.1,t!==Dr.TEST_VID.playbackRate}catch(t){return!1}},Dr.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(e.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(e.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(e.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(e.createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},Dr.supportsNativeTextTracks=function(){return le||se&&Zt},Dr.supportsNativeVideoTracks=function(){return!(!Dr.TEST_VID||!Dr.TEST_VID.videoTracks)},Dr.supportsNativeAudioTracks=function(){return!(!Dr.TEST_VID||!Dr.TEST_VID.audioTracks)},Dr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(t){var e=t[0],n=t[1];Ir(Dr.prototype,e,(function(){return Dr[n]()}),!0)})),Dr.prototype.movingMediaElementInDOM=!se,Dr.prototype.featuresFullscreenResize=!0,Dr.prototype.featuresProgressEvents=!0,Dr.prototype.featuresTimeupdateEvents=!0,Dr.patchCanPlayType=function(){4<=Yt&&!Qt&&!Zt&&(Or=Dr.TEST_VID&&Dr.TEST_VID.constructor.prototype.canPlayType,Dr.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(t)?"maybe":Or.call(this,t)})},Dr.unpatchCanPlayType=function(){var t=Dr.TEST_VID.constructor.prototype.canPlayType;return Or&&(Dr.TEST_VID.constructor.prototype.canPlayType=Or),t},Dr.patchCanPlayType(),Dr.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},Dr.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(t){Dr.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){Dr.prototype["set"+Lt(t)]=function(e){(this.el_[t]=e)?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(t){Dr.prototype[t]=function(){return this.el_[t]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","crossOrigin"].forEach((function(t){Dr.prototype["set"+Lt(t)]=function(e){this.el_[t]=e}})),["pause","load","play"].forEach((function(t){Dr.prototype[t]=function(){return this.el_[t]()}})),Fn.withSourceHandlers(Dr),Dr.nativeSourceHandler={},Dr.nativeSourceHandler.canPlayType=function(t){try{return Dr.TEST_VID.canPlayType(t)}catch(t){return""}},Dr.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Dr.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=Le(t.src);return Dr.nativeSourceHandler.canPlayType("video/"+n)}return""},Dr.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},Dr.nativeSourceHandler.dispose=function(){},Dr.registerSourceHandler(Dr.nativeSourceHandler),Fn.registerTech("Html5",Dr);var Lr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Mr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Nr=["tiny","xsmall","small","medium","large","xlarge","huge"],jr={};Nr.forEach((function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;jr[t]="vjs-layout-"+e}));var Ur={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Rr=function(i){function a(t,r,s){var l;if(t.id=t.id||r.id||"vjs_video_"+rt(),(r=p(a.getTagSettings(t),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof t.closest){var c=t.closest("[lang]");c&&c.getAttribute&&(r.language=c.getAttribute("lang"))}else for(var u=t;u&&1===u.nodeType;){if(A(u).hasOwnProperty("lang")){r.language=u.getAttribute("lang");break}u=u.parentNode}if((l=i.call(this,null,r,s)||this).boundDocumentFullscreenChange_=vt(jt(l),l.documentFullscreenChange_),l.boundFullWindowOnEscKey_=vt(jt(l),l.fullWindowOnEscKey),l.isFullscreen_=!1,l.log=o(l.id_),l.fsApi_=me,l.isPosterFromTech_=!1,l.queuedCallbacks_=[],l.isReady_=!1,l.hasStarted_=!1,l.userActive_=!1,!l.options_||!l.options_.techOrder||!l.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(l.tag=t,l.tagAttributes=t&&A(t),l.language(l.options_.language),r.languages){var d={};Object.getOwnPropertyNames(r.languages).forEach((function(t){d[t.toLowerCase()]=r.languages[t]})),l.languages_=d}else l.languages_=a.prototype.options_.languages;l.resetCache_(),l.poster_=r.poster||"",l.controls_=!!r.controls,t.controls=!1,t.removeAttribute("controls"),l.changingSrc_=!1,l.playCallbacks_=[],l.playTerminatedQueue_=[],t.hasAttribute("autoplay")?l.autoplay(!0):l.autoplay(l.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach((function(t){if("function"!=typeof l[t])throw new Error('plugin "'+t+'" does not exist')})),l.scrubbing_=!1,l.el_=l.createEl(),Ot(jt(l),{eventBusKey:"el_"}),l.fsApi_.requestFullscreen&&(ht(e,l.fsApi_.fullscreenchange,l.boundDocumentFullscreenChange_),l.on(l.fsApi_.fullscreenchange,l.boundDocumentFullscreenChange_)),l.fluid_&&l.on("playerreset",l.updateStyleEl_);var h=Mt(l.options_);r.plugins&&Object.keys(r.plugins).forEach((function(t){l[t](r.plugins[t])})),l.options_.playerOptions=h,l.middleware_=[],l.initChildren(),l.isAudio("audio"===t.nodeName.toLowerCase()),l.controls()?l.addClass("vjs-controls-enabled"):l.addClass("vjs-controls-disabled"),l.el_.setAttribute("role","region"),l.isAudio()?l.el_.setAttribute("aria-label",l.localize("Audio Player")):l.el_.setAttribute("aria-label",l.localize("Video Player")),l.isAudio()&&l.addClass("vjs-audio"),l.flexNotSupported_()&&l.addClass("vjs-no-flex"),re&&l.addClass("vjs-touch-enabled"),se||l.addClass("vjs-workinghover"),a.players[l.id_]=jt(l);var f=n.split(".")[0];return l.addClass("vjs-v"+f),l.userActive(!0),l.reportUserActivity(),l.one("play",l.listenForUserActivity_),l.on("stageclick",l.handleStageClick_),l.on("keydown",l.handleKeyDown),l.breakpoints(l.options_.breakpoints),l.responsive(l.options_.responsive),l}zt(a,i);var s=a.prototype;return s.dispose=function(){var t=this;this.trigger("dispose"),this.off("dispose"),pt(e,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),pt(e,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),a.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function(t){Hn[t.id()]=null}(this),un.names.forEach((function(e){var n=un[e],i=t[n.getterName]();i&&i.off&&i.off()})),i.prototype.dispose.call(this)},s.createEl=function(){var n,r=this.tag,o=this.playerElIngest_=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player"),a="video-js"===this.tag.tagName.toLowerCase();o?n=this.el_=r.parentNode:a||(n=this.el_=i.prototype.createEl.call(this,"div"));var s=A(r);if(a){for(n=this.el_=r,r=this.tag=e.createElement("video");n.children.length;)r.appendChild(n.firstChild);x(n,"video-js")||E(n,"video-js"),n.appendChild(r),o=this.playerElIngest_=n,Object.keys(n).forEach((function(t){try{r[t]=n[t]}catch(t){}}))}if(r.setAttribute("tabindex","-1"),s.tabindex="-1",(ee||Zt&&ie)&&(r.setAttribute("role","application"),s.role="application"),r.removeAttribute("width"),r.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(t){a&&"class"===t||n.setAttribute(t,s[t]),a&&r.setAttribute(t,s[t])})),r.playerId=r.id,r.id+="_html5_api",r.className="vjs-tech",r.player=n.player=this,this.addClass("vjs-paused"),!0!==t.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=tt("vjs-styles-dimensions");var l=G(".vjs-styles-defaults"),c=G("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=r.getElementsByTagName("a"),d=0;d<u.length;d++){var h=u.item(d);E(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return r.initNetworkState_=r.networkState,r.parentNode&&!o&&r.parentNode.insertBefore(n,r),k(r,n),this.children_.unshift(r),this.el_.setAttribute("lang",this.language_),this.el_=n},s.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");"anonymous"===t||"use-credentials"===t?this.techCall_("setCrossOrigin",t):r.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"')},s.width=function(t){return this.dimension("width",t)},s.height=function(t){return this.dimension("height",t)},s.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e||"auto"===e)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(e);isNaN(i)?r.error('Improper value "'+e+'" supplied for for '+t):(this[n]=i,this.updateStyleEl_())},s.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,$t(this)&&this.off("playerreset",this.updateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),function(t,e){$t(t)?e():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(e))}((function(){this.on("playerreset",this.updateStyleEl_)}))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},s.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},s.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},s.updateStyleEl_=function(){if(!0!==t.VIDEOJS_NO_DYNAMIC_STYLE){var e,n,i,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,n=void 0!==this.height_?this.height_:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),et(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+n+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(0<=a&&(l.width=a),0<=s&&(l.height=s))}},s.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_();var i=Lt(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==i&&this.tag&&(Fn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;
2var o={source:e,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};un.names.forEach((function(t){var e=un[t];o[e.getterName]=n[e.privateName]})),p(o,this.options_[i]),p(o,this.options_[r]),p(o,this.options_[t.toLowerCase()]),this.tag&&(o.tag=this.tag),e&&e.src===this.cache_.src&&0<this.cache_.currentTime&&(o.startTime=this.cache_.currentTime);var a=Fn.getTech(t);if(!a)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new a(o),this.tech_.ready(vt(this,this.handleTechReady_),!0),function(t,e){t.forEach((function(t){var n=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach((function(t){return n.addCue(t)}))})),e.textTracks()}(this.textTracksJson_||[],this.tech_),Lr.forEach((function(t){n.on(n.tech_,t,n["handleTech"+Lt(t)+"_"])})),Object.keys(Mr).forEach((function(t){n.on(n.tech_,t,(function(e){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Mr[t]+"_"].bind(n),event:e}):n["handleTech"+Mr[t]+"_"](e)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"fullscreenerror",this.handleTechFullscreenError_),this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||k(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},s.unloadTech_=function(){var t=this;un.names.forEach((function(e){var n=un[e];t[n.privateName]=t[n.getterName]()})),this.textTracksJson_=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,(function(t){return t.track}));return Array.prototype.map.call(e,(function(t){var e=Ce(t.track);return t.src&&(e.src=t.src),e})).concat(Array.prototype.filter.call(t.textTracks(),(function(t){return-1===n.indexOf(t)})).map(Ce))}(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},s.tech=function(t){return void 0===t&&r.warn("Using the tech directly can be dangerous. I hope you know
2what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},s.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},s.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mouseup",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},s.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},s.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},s.manualAutoplay_=function(t){var e=this;if(this.tech_&&"string"==typeof t){var n,i=function(){var t=e.muted();function n(){e.muted(t)}e.muted(!0),e.playTerminatedQueue_.push(n);var i=e.play();if(Te(i))return i.catch(n)};if("any"===t&&!0!==this.muted()?Te(n=this.play())&&(n=n.catch(i)):n="muted"===t&&!0!==this.muted()?i():this.play(),Te(n))return n.then((function(){e.trigger({type:"autoplay-success",autoplay:t})})).catch((function(n){e.trigger({type:"autoplay-failure",autoplay:t})}))}},s.updateSourceCaches_=function(t){void 0===t&&(t="");var e=t,n="";"string"!=typeof e&&(e=t.src,n=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!n&&(n=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var n=t.cache_.sources.filter((function(t){return t.src===e}));if(n.length)return n[0].type;for(var i=t.$$("source"),r=0;r<i.length;r++){var o=i[r];if(o.type&&o.src&&o.src===e)return o.type}return Kn(e)}(this,e)),this.cache_.source=Mt({},t,{src:e,type:n});for(var i=this.cache_.sources.filter((function(t){return t.src&&t.src===e})),r=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var l=A(o[s]);r.push(l),l.src&&l.src===e&&a.push(l.src)}a.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},s.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var n=function(t){return e.updateSourceCaches_(t)},i=this.currentSource().src,r=t.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(this.lastSource_&&(this.lastSource_.tech===r||this.lastSource_.player===i)||(n=function(){})),n(r),t.src||this.tech_.any(["sourceset","loadstart"],(function(t){if("sourceset"!==t.type){var n=e.techGet("currentSrc");e.lastSource_.tech=n,e.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},s.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},s.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},s.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(t){return t.callback(t.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},s.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var e=this.currentTime();this.on("timeupdate",(function n(){e!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",n))}))},s.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},s.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},s.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},s.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},s.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},s.handleTechFirstPlay_=function(){this.options_.starttime&&(r.warn("Passing the `starttime` option to the player will be deprecated
2in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},s.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},s.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},s.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},s.handleTechClick_=function(t){V(t)&&this.controls_&&(this.paused()?Se(this.play()):this.pause())},s.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(e){return e.contains(t.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},s.handleTechTap_=function(){this.userActive(!this.userActive())},s.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},s.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},s.handleTechTouchEnd_=function(t){t.preventDefault()},s.handleStageClick_=function(){this.reportUserActivity()},s.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},s.documentFullscreenChange_=function(t){var n=t.target.player;if(!n||n===this){var i=this.el(),r=e[this.fsApi_.fullscreenElement]===i;!r&&i.matches?r=i.matches(":"+this.fsApi_.fullscreen):!r&&i.msMatchesSelector&&(r=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},s.handleTechFullscreenChange_=function(t,e){e&&(e.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(e.isFullscreen))},s.handleTechFullscreenError_=function(t,e){this.trigger("fullscreenerror",e)},s.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},s.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},s.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},s.handleTechError_=function(){var t=this.tech_.error();this.error(t)},s.handleTechTextData_=function(t,e){var n=null;1<arguments.length&&(n=e),this.trigger("textdata",n)},s.getCache=function(){return this.cache_},s.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}},s.techCall_=function(t,e){this.ready((function(){if(t in Gn)return function(t,e,n,i){return e[n](t.reduce(Yn(n),i))}(this.middleware_,this.tech_,t,e);if(t in Xn)return Vn(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw r(t),t}}),!0)},s.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in Wn)return function(t,e,n){return t.reduceRight(Yn(n),e[n]())}(this.middleware_,this.tech_,t);if(t in Xn)return Vn(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw r("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw r("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw r(e),e}}},s.play=function(){var e=this,n=this.options_.Promise||t.Promise;return n?new n((function(t){e.play_(t)})):this.play_()},s.play_=function(t){var e=this;void 0===t&&(t=Se),this.playCallbacks_.push(t);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!le&&!se||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},s.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach((function(t){t()}))},s.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach((function(e){e(t)}))},s.pause=function(){this.techCall_("pause")},s.paused=function(){return!1!==this.techGet_("paused")},s.played=function(){return this.techGet_("played")||he(0,0)},s.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},s.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),void(this.cache_.initTime=0)):(this.cache_.initTime=t,this.off("canplay",this.applyInitTime_),void this.one("canplay",this.applyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},s.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},s.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&((this.cache_.duration=t)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))},s.remainingTime=function(){return this.duration()-this.currentTime()},s.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},s.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=he(0,0)),t},s.bufferedPercent=function(){return pe(this.buffered(),this.duration())},s.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return e<n&&(n=e),n},s.volume=function(t){var e;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(0<e&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},s.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},s.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},s.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},s.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},s.isFullscreen=function(t){if(void 0===t)return this.isFullscreen_;var e=this.isFullscreen_;return this.isFullscreen_=Boolean(t),this.isFullscreen_!==e&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()},s.requestFullscreen=function(e){var n=this.options_.Promise||t.Promise;if(n){var i=this;return new n((function(t,n){function r(){i.off("fullscreenerror",a),i.off("fullscreenchange",o)}function o(){r(),t()}function a(t,e){r(),n(e)}i.one("fullscreenchange",o),i.one("fullscreenerror",a);var s=i.requestFullscreenHelper_(e);
2if(s)return s.then(r,r),s}))}return this.requestFullscreenHelper_()},s.requestFullscreenHelper_=function(t){var e,n=this;if(this.fsApi_.prefixed||(e=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==t&&(e=t)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](e);return i&&i.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),i}this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):this.enterFullWindow()},s.exitFullscreen=function(){var e=this.options_.Promise||t.Promise;if(e){var n=this;return new e((function(t,e){function i(){n.off("fullscreenerror",o),n.off("fullscreenchange",r)}function r(){i(),t()}function o(t,n){i(),e(n)}n.one("fullscreenchange",r),n.one("fullscreenerror",o);var a=n.exitFullscreenHelper_();if(a)return a.then(i,i),a}))}return this.exitFullscreenHelper_()},s.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var n=e[this.fsApi_.exitFullscreen]();return n&&n.then((function(){return t.isFullscreen(!1)})),n}this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):this.exitFullWindow()},s.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=e.documentElement.style.overflow,ht(e,"keydown",this.boundFullWindowOnEscKey_),e.documentElement.style.overflow="hidden",E(e.body,"vjs-full-window"),this.trigger("enterFullWindow")},s.fullWindowOnEscKey=function(t){ke.isEventKey(t,"Esc")&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},s.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,pt(e,"keydown",this.boundFullWindowOnEscKey_),e.documentElement.style.overflow=this.docOrigOverflow,$(e.body,"vjs-full-window"),this.trigger("exitFullWindow")},s.isInPictureInPicture=function(t){return void 0!==t?(this.isInPictureInPicture_=!!t,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},s.requestPictureInPicture=function(){if("pictureInPictureEnabled"in e)return this.techGet_("requestPictureInPicture")},s.exitPictureInPicture=function(){if("pictureInPictureEnabled"in e)return e.exitPictureInPicture()},s.handleKeyDown=function(t){var e=this.options_.userActions;e&&e.hotkeys&&!function(t){var e=t.tagName.toLowerCase();return!!t.isContentEditable||("input"===e?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(e))}(this.el_.ownerDocument.activeElement)&&("function"==typeof e.hotkeys?e.hotkeys.call(this,t):this.handleHotkeys(t))},s.handleHotkeys=function(t){var n=this.options_.userActions?this.options_.userActions.hotkeys:{},i=n.fullscreenKey,r=void 0===i?function(t){return ke.isEventKey(t,"f")}:i,o=n.muteKey,a=void 0===o?function(t){return ke.isEventKey(t,"m")}:o,s=n.playPauseKey,l=void 0===s?function(t){return ke.isEventKey(t,"k")||ke.isEventKey(t,"Space")}:s;if(r.call(this,t)){t.preventDefault(),t.stopPropagation();var c=Nt.getComponent("FullscreenToggle");!1!==e[this.fsApi_.fullscreenEnabled]&&c.prototype.handleClick.call(this,t)}else a.call(this,t)?(t.preventDefault(),t.stopPropagation(),Nt.getComponent("MuteToggle").prototype.handleClick.call(this,t)):l.call(this,t)&&(t.preventDefault(),t.stopPropagation(),Nt.getComponent("PlayToggle").prototype.handleClick.call(this,t))},s.canPlayType=function(t){for(var e,n=0,i=this.options_.techOrder;n<i.length;n++){var o=i[n],a=Fn.getTech(o);if(a=a||Nt.getComponent(o)){if(a.isSupported()&&(e=a.canPlayType(t)))return e}else r.error('The "'+o+'" tech is undefined. Skipped browser support check for that tech.')}return""},s.selectSource=function(t){function e(t,e,n){var i;return t.some((function(t){return e.some((function(e){if(i=n(t,e))return!0}))})),i}function n(t,e){var n=t[0];if(t[1].canPlaySource(e,o.options_[n.toLowerCase()]))return{source:e,tech:n}}var i,o=this,a=this.options_.techOrder.map((function(t){return[t,Fn.getTech(t)]})).filter((function(t){var e=t[0],n=t[1];return n?n.isSupported():(r.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}));return(this.options_.sourceOrder?e(t,a,(i=n,function(t,e){return i(e,t)})):e(a,t,n))||!1},s.src=function(t){var e=this;if(void 0===t)return this.cache_.src||"";var n=function t(e){if(Array.isArray(e)){var n=[];e.forEach((function(e){e=t(e),Array.isArray(e)?n=n.concat(e):f(e)&&n.push(e)})),e=n}else e="string"==typeof e&&e.trim()?[Jn({src:e})]:f(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[Jn(e)]:[];return e}(t);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),function(t,e,n){t.setTimeout((function(){return function t(e,n,i,r,o,a){void 0===e&&(e={}),void 0===n&&(n=[]),void 0===o&&(o=[]),void 0===a&&(a=!1);var s=n,l=s[0],c=s.slice(1);if("string"==typeof l)t(e,zn[l],i,r,o,a);else if(l){var u=function(t,e){var n=Hn[t.id()],i=null;if(null==n)return i=e(t),Hn[t.id()]=[[e,i]],i;for(var r=0;r<n.length;r++){var o=n[r],a=o[0],s=o[1];a===e&&(i=s)}return null===i&&(i=e(t),n.push([e,i])),i}(r,l);if(!u.setSource)return o.push(u),t(e,c,i,r,o,a);u.setSource(p({},e),(function(n,s){if(n)return t(e,c,i,r,o,a);o.push(u),t(s,e.type===s.type?c:zn[s.type],i,r,o,a)}))}else c.length?t(e,c,i,r,o,a):a?i(e,o):t(e,zn["*"],i,r,o,!0)}(e,zn[e.type],n,t)}),1)}(this,n[0],(function(t,i){if(e.middleware_=i,e.cache_.sources=n,e.updateSourceCaches_(t),e.src_(t))return 1<n.length?e.src(n.slice(1)):(e.changingSrc_=!1,e.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void e.triggerReady());!function(t,e){t.forEach((function(t){return t.setTech&&t.setTech(e)}))}(i,e.tech_)}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},s.src_=function(t){var e=this,n=this.selectSource([t]);return!n||(function(t,e){return Lt(t)===Lt(e)}(n.tech,this.techName_)?this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1}),!0):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){e.changingSrc_=!1}))),!1)},s.load=function(){this.techCall_("load")},s.reset=function(){var e=this,n=this.options_.Promise||t.Promise;this.paused()||!n?this.doReset_():Se(this.play().then((function(){return e.doReset_()})))},s.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),$t(this)&&this.trigger("playerreset")},s.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},s.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar,e=t.durationDisplay,n=t.remainingTimeDisplay;e&&e.updateContent(),n&&n.updateContent()},s.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},s.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},s.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},s.currentSource=function(){return this.cache_.source||{}},s.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},s.currentType=function(){return this.currentSource()&&this.currentSource().type||""},s.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},s.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e;"string"==typeof t&&/(any|play|muted)/.test(t)?(this.options_.autoplay=t,this.manualAutoplay_(t),e=!1):this.options_.autoplay=!!t,e=void 0===e?this.options_.autoplay:e,this.tech_&&this.techCall_("setAutoplay",e)},s.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},s.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},s.poster=function(t){if(void 0===t)return this.poster_;(t=t||"")!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},s.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},s.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
2sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},s.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},s.error=function(t){if(void 0===t)return this.error_||null;if(this.options_.suppressNotSupportedError&&t&&4===t.code){var e=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],e),void this.one("loadstart",(function(){this.off(["click","touchstart"],e)}))}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new _e(t),this.addClass("vjs-error"),r.error("(CODE:"+this.error_.code+" "+_e.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},s.reportUserActivity=function(t){this.userActivity_=!0},s.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(t){t.stopPropagation(),t.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},s.listenForUserActivity_=function(){function t(t){r(),this.clearInterval(e)}var e,n,i,r=vt(this,this.reportUserActivity);this.on("mousedown",(function(){r(),this.clearInterval(e),e=this.setInterval(r,250)})),this.on("mousemove",(function(t){t.screenX===n&&t.screenY===i||(n=t.screenX,i=t.screenY,r())})),this.on("mouseup",t),this.on("mouseleave",t);var o,a=this.getChild("controlBar");!a||se||Xt||(a.on("mouseenter",(function(t){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0})),a.on("mouseleave",(function(t){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var t=this.options_.inactivityTimeout;t<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),t))}}),250)},s.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},s.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},s.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},s.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},s.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},s.removeRemoteTextTrack=function(t){void 0===t&&(t={});var e=t.track;if(e=e||t,this.tech_)return this.tech_.removeRemoteTextTrack(e)},s.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},s.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},s.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},s.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},s.languages=function(){return Mt(a.prototype.options_.languages,this.languages_)},s.toJSON=function(){var t=Mt(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var i=e[n];(i=Mt(i)).player=void 0,t.tracks[n]=i}return t},s.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var i=new Ee(this,e);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},s.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),n=0;n<Nr.length;n++){var i=Nr[n];
vendor: 22,287 bytes, line 2
2if(e<=this.breakpoints_[i]){if(t===i)return;t&&this.removeClass(jr[t]),this.addClass(jr[i]),this.breakpoint_=i;break}}},s.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},s.breakpoints=function(t){return void 0===t||(this.breakpoint_="",this.breakpoints_=p({},Ur,t),this.updateCurrentBreakpoint_()),p(this.breakpoints_)},s.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?((this.responsive_=t)?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},s.currentBreakpoint=function(){return this.breakpoint_},s.currentBreakpointClass=function(){return jr[this.breakpoint_]||""},s.loadMedia=function(t,e){var n=this;if(t&&"object"==l(t)){this.reset(),this.cache_.media=Mt(t);var i=this.cache_.media,r=i.artwork,o=i.poster,a=i.src,s=i.textTracks;!r&&o&&(this.cache_.media.artwork=[{src:o,type:Kn(o)}]),a&&this.src(a),o&&this.poster(o),Array.isArray(s)&&s.forEach((function(t){return n.addRemoteTextTrack(t,!1)})),this.ready(e)}},s.getMedia=function(){if(this.cache_.media)return Mt(this.cache_.media);var t=this.poster(),e={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(t){return{kind:t.kind,label:t.label,language:t.language,src:t.src}}))};return t&&(e.poster=t,e.artwork=[{src:e.poster,type:Kn(e.poster)}]),e},a.getTagSettings=function(t){var e={sources:[],tracks:[]},n=A(t),i=n["data-setup"];if(x(t,"vjs-fill")&&(n.fill=!0),x(t,"vjs-fluid")&&(n.fluid=!0),null!==i){var o=function(t,e){var n,i=null;try{n=JSON.parse(t,void 0)}catch(t){i=t}return[i,n]}(i||"{}"),a=o[0],s=o[1];a&&r.error(a),p(n,s)}if(p(e,n),t.hasChildNodes())for(var l=t.childNodes,c=0,u=l.length;c<u;c++){var d=l[c],h=d.nodeName.toLowerCase();"source"===h?e.sources.push(A(d)):"track"===h&&e.tracks.push(A(d))}return e},s.flexNotSupported_=function(){var t=e.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},a}(Nt);un.names.forEach((function(t){var e=un[t];Rr.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}})),Rr.prototype.crossorigin=Rr.prototype.crossOrigin,Rr.players={};var Br=t.navigator;Rr.prototype.options_={techOrder:Fn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Br&&(Br.languages&&Br.languages[0]||Br.userLanguage||Br.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(t){Rr.prototype[t]=function(){return this.techGet_(t)}})),Lr.forEach((function(t){Rr.prototype["handleTech"+Lt(t)+"_"]=function(){return this.trigger(t)}})),Nt.registerComponent("Player",Rr);var Fr=a((function(t){function e(n,i){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,i)}t.exports=e}));function zr(t){return Kr.hasOwnProperty(t)}function Hr(t){return zr(t)?Kr[t]:void 0}function qr(t,e){t[Yr]=t[Yr]||{},t[Yr][e]=!0}function Vr(t,e,n){var i=(n?"before":"")+"pluginsetup";t.trigger(i,e),t.trigger(i+":"+e.name,e)}function Wr(t,e){return e.prototype.name=t,function(){Vr(this,{name:t,plugin:e,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=Gr(e,[this].concat(i));return this[t]=function(){return o},Vr(this,o.getEventHash()),o}}var Gr=a((function(t){function e(n,i,r){return function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?t.exports=e=Reflect.construct:t.exports=e=function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&Fr(r,n.prototype),r},e.apply(null,arguments)}t.exports=e})),Xr="plugin",Yr="activePlugins_",Kr={},Qr=function(){function t(e){if(this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,Ot(this),delete this.trigger,Pt(this,this.constructor.defaultState),qr(e,this.name),this.dispose=vt(this,this.dispose),e.on("dispose",this.dispose)}var e=t.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(t){return void 0===t&&(t={}),t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.trigger=function(t,e){return void 0===e&&(e={}),ft(this.eventBusEl_,t,this.getEventHash(e))},e.handleStateChanged=function(t){},e.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[Yr][t]=!1,this.player=this.state=null,e[t]=Wr(t,Kr[t])},t.isBasic=function(e){var n="string"==typeof e?Hr(e):e;return"function"==typeof n&&!t.prototype.isPrototypeOf(n.prototype)},t.registerPlugin=function(e,n){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+l(e)+".");if(zr(e))r.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(Rr.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+l(n)+".");return Kr[e]=n,e!==Xr&&(t.isBasic(n)?Rr.prototype[e]=function(t,e){function n(){Vr(this,{name:t,plugin:e,instance:null},!0);var n=e.apply(this,arguments);return qr(this,t),Vr(this,{name:t,plugin:e,instance:n}),n}return Object.keys(e).forEach((function(t){n[t]=e[t]})),n}(e,n):Rr.prototype[e]=Wr(e,n)),n},t.deregisterPlugin=function(t){if(t===Xr)throw new Error("Cannot de-register base plugin.");zr(t)&&(delete Kr[t],delete Rr.prototype[t])},t.getPlugins=function(t){var e;return void 0===t&&(t=Object.keys(Kr)),t.forEach((function(t){var n=Hr(t);n&&((e=e||{})[t]=n)})),e},t.getPluginVersion=function(t){var e=Hr(t);return e&&e.VERSION||""},t}();Qr.getPlugin=Hr,Qr.BASE_PLUGIN_NAME=Xr,Qr.registerPlugin(Xr,Qr),Rr.prototype.usingPlugin=function(t){return!!this[Yr]&&!0===this[Yr][t]},Rr.prototype.hasPlugin=function(t){return!!zr(t)};var Jr=function(t){return 0===t.indexOf("#")?t.slice(1):t};function Zr(t,e,n){var i=Zr.getPlayer(t);if(i)return e&&r.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var o="string"==typeof t?G("#"+Jr(t)):t;if(!_(o))throw new TypeError("The element or ID supplied is not valid. (videojs)");o.ownerDocument.defaultView&&o.ownerDocument.body.contains(o)||r.warn("The element supplied is not included in the DOM"),e=e||{},Zr.hooks("beforesetup").forEach((function(t){var n=t(o,Mt(e));f(n)&&!Array.isArray(n)?e=Mt(e,n):r.error("please return an object in beforesetup hooks")}));var a=Nt.getComponent("Player");return i=new a(o,e,n),Zr.hooks("setup").forEach((function(t){return t(i)})),i}if(Zr.hooks_={},Zr.hooks=function(t,e){return Zr.hooks_[t]=Zr.hooks_[t]||[],e&&(Zr.hooks_[t]=Zr.hooks_[t].concat(e)),Zr.hooks_[t]},Zr.hook=function(t,e){Zr.hooks(t,e)},Zr.hookOnce=function(t,e){Zr.hooks(t,[].concat(e).map((function(e){return function n(){return Zr.removeHook(t,n),e.apply(void 0,arguments)}})))},Zr.removeHook=function(t,e){var n=Zr.hooks(t).indexOf(e);return!(n<=-1||(Zr.hooks_[t]=Zr.hooks_[t].slice(),Zr.hooks_[t].splice(n,1),0))},!0!==t.VIDEOJS_NO_DYNAMIC_STYLE&&b()){var to=G(".vjs-styles-defaults");if(!to){to=tt("vjs-styles-defaults");var eo=G("head");eo&&eo.insertBefore(to,eo.firstChild),et(to,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}J(1,Zr),Zr.VERSION=n,Zr.options=Rr.prototype.options_,Zr.getPlayers=function(){return Rr.players},Zr.getPlayer=function(t){var e,n=Rr.players;if("string"==typeof t){var i=Jr(t),r=n[i];if(r)return r;e=G("#"+i)}else e=t;if(_(e)){var o=e,a=o.player,s=o.playerId;if(a||n[s])return a||n[s]}},Zr.getAllPlayers=function(){return Object.keys(Rr.players).map((function(t){return Rr.players[t]})).filter(Boolean)},Zr.players=Rr.players,Zr.getComponent=Nt.getComponent,Zr.registerComponent=function(t,e){Fn.isTech(e)&&r.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Nt.registerComponent.call(Nt,t,e)},Zr.getTech=Fn.getTech,Zr.registerTech=Fn.registerTech,Zr.use=function(t,e){zn[t]=zn[t]||[],zn[t].push(e)},Object.defineProperty(Zr,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Zr.middleware,"TERMINATOR",{value:qn,writeable:!1,enumerable:!0}),Zr.browser=ce,Zr.TOUCH_ENABLED=re,Zr.extend=function(t,e){void 0===e&&(e={});var n=function(){t.apply(this,arguments)},i={};for(var r in"object"==l(e)?(e.constructor!==Object.prototype.constructor&&(n=e.constructor),i=e):"function"==typeof e&&(n=e),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&&Fr(t,e)}(n,t),t&&(n.super_=t),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},Zr.mergeOptions=Mt,Zr.bind=vt,Zr.registerPlugin=Qr.registerPlugin,Zr.deregisterPlugin=Qr.deregisterPlugin,Zr.plugin=function(t,e){return r.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Qr.registerPlugin(t,e)},Zr.getPlugins=Qr.getPlugins,Zr.getPlugin=Qr.getPlugin,Zr.getPluginVersion=Qr.getPluginVersion,Zr.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),Zr.options.languages=Mt(Zr.options.languages,((n={})[t]=e,n)),Zr.options.languages[t]},Zr.log=r,Zr.createLogger=o,Zr.createTimeRange=Zr.createTimeRanges=he,Zr.formatTime=fi,Zr.setFormatTime=function(t){pi=t},Zr.resetFormatTime=function(){pi=hi},Zr.parseUrl=Pe,Zr.isCrossOrigin=Me,Zr.EventTarget=bt,Zr.on=ht,Zr.one=mt,Zr.off=pt,Zr.trigger=ft,Zr.xhr=Ke,Zr.TextTrack=rn,Zr.AudioTrack=on,Zr.VideoTrack=an,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(t){Zr[t]=function(){return r.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Y[t].apply(null,arguments)}})),Zr.computedStyle=g,Zr.dom=Y,Zr.url=We,Zr.defineLazyProperty=Ir;var no=a((function(t,e){var n,i,r,o,a;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,i=/^([^\/?#]*)(.*)$/,r=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,a={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var r=a.parseURL(t);if(!r)throw new Error("Error trying to parse base URL.");return r.path=a.normalizePath(r.path),a.buildURLFromParts(r)}var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):e;var s=a.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=i.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var c={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(c.netLoc=s.netLoc,"/"!==o.path[0]))if(o.path){var u=s.path,d=u.substring(0,u.lastIndexOf("/")+1)+o.path;c.path=a.normalizePath(d)}else c.path=s.path,o.params||(c.params=s.params,o.query||(c.query=s.query));return null===c.path&&(c.path=n.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(c)},parseURL:function(t){var e=n.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(r,"");t.length!==(t=t.replace(o,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=a}));function io(){return(io=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function ro(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function oo(t){for(var e,n=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((e=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),i[e[0]]=e[1]);return i}var ao=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t].splice(n,1),-1<n},e.trigger=function(t,e){var n,i,r,o=this.listeners[t];if(o)if(2===arguments.length)for(i=o.length,n=0;n<i;++n)o[n].call(this,e);else for(r=Array.prototype.slice.call(arguments,1),i=o.length,n=0;n<i;++n)o[n].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",(function(e){t.push(e)}))},t}(),so=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return ro(e,t),e.prototype.push=function(t){var e;for(this.buffer+=t,e=this.buffer.indexOf("\n");-1<e;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(ao),lo=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}ro(e,t);var n=e.prototype;return n.push=function(t){var e,n,i=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,n){var i=n(t);return i===t?e:e.concat([i])}),[t]).forEach((function(t){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,t))return;if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return n={type:"tag",tagType:"inf"},e[1]&&(n.duration=parseFloat(e[1])),e[2]&&(n.title=e[2]),void i.trigger("data",n);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"targetduration"},e[1]&&(n.duration=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"totalduration"},e[1]&&(n.duration=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"version"},e[1]&&(n.version=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"media-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return n={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(n.number=parseInt(e[1],10)),void i.trigger("data",n);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return n={type:"tag",tagType:"playlist-type"},e[1]&&(n.playlistType=e[1]),void i.trigger("data",n);if(e=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(t))return n={type:"tag",tagType:"byterange"},e[1]&&(n.length=parseInt(e[1],10)),e[2]&&(n.offset=parseInt(e[2],10)),void i.trigger("data",n);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return n={type:"tag",tagType:"allow-cache"},e[1]&&(n.allowed=!/NO/.test(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"map"},e[1]){var o=oo(e[1]);if(o.URI&&(n.uri=o.URI),o.BYTERANGE){var a=o.BYTERANGE.split("@"),s=a[0],l=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),l&&(n.byterange.offset=parseInt(l,10))}}i.trigger("data",n)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(n={type:"tag",tagType:"stream-inf"},e[1]){if(n.attributes=oo(e[1]),n.attributes.RESOLUTION){var c=n.attributes.RESOLUTION.split("x"),u={};c[0]&&(u.width=parseInt(c[0],10)),c[1]&&(u.height=parseInt(c[1],10)),n.attributes.RESOLUTION=u}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return n={type:"tag",tagType:"media"},e[1]&&(n.attributes=oo(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-ENDLIST/.exec(t))i.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return n={type:"tag",tagType:"program-date-time"},e[1]&&(n.dateTimeString=e[1],n.dateTimeObject=new Date(e[1])),void i.trigger("data",n);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return n={type:"tag",tagType:"key"},e[1]&&(n.attributes=oo(e[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(e=/^#EXT-X-START:?(.*)$/.exec(t))return n={type:"tag",tagType:"start"},e[1]&&(n.attributes=oo(e[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out-cont"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-out"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return n={type:"tag",tagType:"cue-in"},e[1]?n.data=e[1]:n.data="",void i.trigger("data",n);i.trigger("data",{type:"tag",data:t.slice(4)})}}}else i.trigger("data",{type:"comment",text:t.slice(1)})})):this.trigger("data",{type:"uri",uri:t}))},n.addParser=function(t){var e=this,n=t.expression,i=t.customType,r=t.dataParser,o=t.segment;"function"!=typeof r&&(r=function(t){return t}),this.customParsers.push((function(t){if(n.exec(t))return e.trigger("data",{type:"custom",data:r(t),customType:i,segment:o}),!0}))},n.addTagMapper=function(t){var e=t.expression,n=t.map;this.tagMappers.push((function(t){return e.test(t)?n(t):t}))},e}(ao),co=function(e){function n(){var n;(n=e.call(this)||this).lineStream=new so,n.parseStream=new lo,n.lineStream.pipe(n.parseStream);var i,r,o=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),a=[],s={},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c=0;return n.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},n.parseStream.on("data",(function(e){var n,u;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&((s.byterange=t).length=e.length,"offset"in e||(this.trigger("info",{message:"defaulting offset to zero"}),e.offset=0)),"offset"in e&&((s.byterange=t).offset=e.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),0<e.duration&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:function(e){for(var n=t.atob(e||""),i=new Uint8Array(n.length),r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i}(e.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,c=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){i={}
2,e.uri&&(i.uri=e.uri),e.byterange&&(i.byterange=e.byterange)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(s.attributes||(s.attributes={}),io(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},n=t[e.attributes["GROUP-ID"]],(u={default:/yes/i.test(e.attributes.DEFAULT)}).default?u.autoselect=!0:u.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(u.language=e.attributes.LANGUAGE),e.attributes.URI&&(u.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(u.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(u.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(u.forced=/yes/i.test(e.attributes.FORCED)),n[e.attributes.NAME]=u}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){c+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):this.manifest.targetDuration=e.duration},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data}}[e.tagType]||function(){}).call(o)},uri:function(){s.uri=e.uri,a.push(s),!this.manifest.targetDuration||"duration"in s||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),r&&(s.key=r),s.timeline=c,i&&(s.map=i),s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(o)})),n}ro(n,e);var i=n.prototype;return i.push=function(t){this.lineStream.push(t)},i.end=function(){this.lineStream.push("\n")},i.addParser=function(t){this.parseStream.addParser(t)},i.addTagMapper=function(t){this.parseStream.addTagMapper(t)},n}(ao);function uo(t){return t&&"object"==l(t)&&"default"in t?t.default:t}var ho,po=uo(no),fo=uo(t),mo=function(t,e){return/^[a-z]+:/i.test(e)?e:(/\/\//i.test(t)||(t=po.buildAbsoluteURL(fo.location&&fo.location.href||"",t)),po.buildAbsoluteURL(t,e))},go=(ho=t)&&"object"==l(ho)&&"default"in ho?ho.default:ho,vo=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,yo=new RegExp("[\\-\\.0-9"+vo.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),bo=new RegExp("^"+vo.source+yo.source+"*(?::"+vo.source+yo.source+"*)?$");function _o(){}function wo(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function To(t,e,n,i,r,o){for(var a,s=++e,l=0;;){var c=t.charAt(s);switch(c){case"=":if(1===l)a=t.slice(e,s),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(o.warning('attribute value must after "="'),a=t.slice(e,s)),e=s+1,!(0<(s=t.indexOf(c,e))))throw new Error("attribute value no end '"+c+"' match");u=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(a,u,e-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');u=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(a,u,e),o.warning('attribute "'+a+'" missed start quot('+c+")!!"),e=s+1,l=5}break;case"/":switch(l){case 0:n.setTagName(t.slice(e,s));
vendor: 20,790 bytes, line 2
2case 5:case 6:case 7:l=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==l&&n.setTagName(t.slice(e,s)),s;case">":switch(l){case 0:n.setTagName(t.slice(e,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=t.slice(e,s)).slice(-1)&&(n.closed=!0,u=u.slice(0,-1));case 2:2===l&&(u=a),4==l?(o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u.replace(/&#?\w+;/g,r),e)):("http://www.w3.org/1999/xhtml"===i[""]&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),n.add(u,u,e));break;case 3:throw new Error("attribute value missed!!")}return s;case"\x80":c=" ";default:if(c<=" ")switch(l){case 0:n.setTagName(t.slice(e,s)),l=6;break;case 1:a=t.slice(e,s),l=2;break;case 4:var u=t.slice(e,s).replace(/&#?\w+;/g,r);o.warning('attribute "'+u+'" missed quot(")!!'),n.add(a,u,e);case 5:l=6}else switch(l){case 2:n.tagName,"http://www.w3.org/1999/xhtml"===i[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,e),e=s,l=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:l=1,e=s;break;case 3:l=4,e=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function So(t,e,n){for(var i=t.tagName,r=null,o=t.length;o--;){var a=t[o],s=a.qName,l=a.value;if(0<(h=s.indexOf(":")))var c=a.prefix=s.slice(0,h),u=s.slice(h+1),d="xmlns"===c&&u;else c=null,d="xmlns"===(u=s)&&"";a.localName=u,!1!==d&&(null==r&&(r={},xo(n,n={})),n[d]=r[d]=l,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(d,l))}for(o=t.length;o--;)(c=(a=t[o]).prefix)&&("xml"===c&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==c&&(a.uri=n[c||""]));var h;u=0<(h=i.indexOf(":"))?(c=t.prefix=i.slice(0,h),t.localName=i.slice(h+1)):(c=null,t.localName=i);var p=t.uri=n[c||""];if(e.startElement(p,u,i,t),!t.closed)return t.currentNSMap=n,t.localNSMap=r,!0;if(e.endElement(p,u,i),r)for(c in r)e.endPrefixMapping(c)}function Co(t,e,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),a=t.substring(e+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)||(a=a.replace(/&#?\w+;/g,i)),r.characters(a,0,a.length),o}return e+1}function ko(t,e,n,i){var r=i[n];return null==r&&((r=t.lastIndexOf("</"+n+">"))<e&&(r=t.lastIndexOf("</"+n)),i[n]=r),r<e}function xo(t,e){for(var n in t)e[n]=t[n]}function Eo(t,e,n,i){if("-"===t.charAt(e+2))return"-"!==t.charAt(e+3)?-1:e<(r=t.indexOf("--\x3e",e+4))?(n.comment(t,e+4,r-e-4),r+3):(i.error("Unclosed comment"),-1);if("CDATA["==t.substr(e+3,6)){var r=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,r-e-9),n.endCDATA(),r+3}var o=function(t,e){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=e,r.exec(t);n=r.exec(t);)if(i.push(n),n[1])return i}(t,e),a=o.length;if(1<a&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=3<a&&/^public$/i.test(o[2][0])&&o[3][0],c=4<a&&o[4][0],u=o[a-1];return n.startDTD(s,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),c&&c.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),u.index+u[0].length}return-1}function $o(t,e,n){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function Io(t){}function Oo(t,e){return t.__proto__=e,t}_o.prototype={parse:function(t,e,n){var i=this.domBuilder;i.startDocument(),xo(e,e={}),function(t,e,n,i,r){function o(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?function(t){if(65535<t){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(r.error("entity not found:"+t),t)}function a(e){if(f<e){var n=t.substring(f,e).replace(/&#?\w+;/g,o);d&&s(f),i.characters(n,0,e-f),f=e}}function s(e,n){for(;c<=e&&(n=u.exec(t));)l=n.index,c=l+n[0].length,d.lineNumber++;d.columnNumber=e-l+1}for(var l=0,c=0,u=/.*(?:\r\n?|\n)|.*$/g,d=i.locator,h=[{currentNSMap:e}],p={},f=0;;){try{var m=t.indexOf("<",f);if(m<0){if(!t.substr(f).match(/^\s*$/)){var g=i.doc,v=g.createTextNode(t.substr(f));g.appendChild(v),i.currentElement=v}return}switch(f<m&&a(m),t.charAt(m+1)){case"/":var y=t.indexOf(">",m+3),b=t.substring(m+2,y),_=h.pop();y<0?(b=t.substring(m+2).replace(/[\s<].*/,""),r.error("end tag name: "+b+" is not complete:"+_.tagName),y=m+1+b.length):b.match(/\s</)&&(b=b.replace(/[\s<].*/,""),r.error("end tag name: "+b+" maybe not complete"),y=m+1+b.length);var w=_.localNSMap,T=_.tagName==b;if(T||_.tagName&&_.tagName.toLowerCase()==b.toLowerCase()){if(i.endElement(_.uri,_.localName,b),w)for(var S in w)i.endPrefixMapping(S);T||r.fatalError("end tag name: "+b+" is not match the current start tagName:"+_.tagName)}else h.push(_);y++;break;case"?":d&&s(m),y=$o(t,m,i);break;case"!":d&&s(m),y=Eo(t,m,i,r);break;default:d&&s(m);var C=new Io,k=h[h.length-1].currentNSMap,x=(y=To(t,m,C,k,o,r),C.length);if(!C.closed&&ko(t,y,C.tagName,p)&&(C.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),d&&x){for(var E=wo(d,{}),$=0;$<x;$++){var I=C[$];s(I.offset),I.locator=wo(d,{})}i.locator=E,So(C,i,k)&&h.push(C),i.locator=d}else So(C,i,k)&&h.push(C);"http://www.w3.org/1999/xhtml"!==C.uri||C.closed?y++:y=Co(t,y,C.tagName,o,i)}}catch(e){r.error("element parse error: "+e),y=-1}f<y?f=y:a(Math.max(m,f)+1)}}(t,e,n,i,this.errorHandler),i.endDocument()}},Io.prototype={setTagName:function(t){if(!bo.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!bo.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},Oo({},Oo.prototype)instanceof Oo||(Oo=function(t,e){function n(){}for(e in n.prototype=e,n=new n,t)n[e]=t[e];return n});var Ao=_o;function Po(t,e){for(var n in t)e[n]=t[n]}function Do(t,e){var n=t.prototype;if(Object.create){var i=Object.create(e.prototype);n.__proto__=i}if(!(n instanceof e)){var r=function(){};r.prototype=e.prototype,Po(n,r=new r),t.prototype=n=r}n.constructor!=t&&(n.constructor=t)}var Lo="http://www.w3.org/1999/xhtml",Mo={},No=Mo.ELEMENT_NODE=1,jo=Mo.ATTRIBUTE_NODE=2,Uo=Mo.TEXT_NODE=3,Ro=Mo.CDATA_SECTION_NODE=4,Bo=Mo.ENTITY_REFERENCE_NODE=5,Fo=Mo.ENTITY_NODE=6,zo=Mo.PROCESSING_INSTRUCTION_NODE=7,Ho=Mo.COMMENT_NODE=8,qo=Mo.DOCUMENT_NODE=9,Vo=Mo.DOCUMENT_TYPE_NODE=10,Wo=Mo.DOCUMENT_FRAGMENT_NODE=11,Go=Mo.NOTATION_NODE=12,Xo={},Yo={},Ko=(Xo.INDEX_SIZE_ERR=(Yo[1]="Index size error",1),Xo.DOMSTRING_SIZE_ERR=(Yo[2]="DOMString size error",2),Xo.HIERARCHY_REQUEST_ERR=(Yo[3]="Hierarchy request error",3)),Qo=(Xo.WRONG_DOCUMENT_ERR=(Yo[4]="Wrong document",4),Xo.INVALID_CHARACTER_ERR=(Yo[5]="Invalid character",5),Xo.NO_DATA_ALLOWED_ERR=(Yo[6]="No data allowed",6),Xo.NO_MODIFICATION_ALLOWED_ERR=(Yo[7]="No modification allowed",7),Xo.NOT_FOUND_ERR=(Yo[8]="Not found",8)),Jo=(Xo.NOT_SUPPORTED_ERR=(Yo[9]="Not supported",9),Xo.INUSE_ATTRIBUTE_ERR=(Yo[10]="Attribute in use",10));function Zo(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,Yo[t]),this.message=Yo[t],Error.captureStackTrace&&Error.captureStackTrace(this,Zo);return n.code=t,e&&(this.message=this.message+": "+e),n}function ta(){}function ea(t,e){this._node=t,this._refresh=e,na(this)}function na(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var n=t._refresh(t._node);Pa(t,"length",n.length),Po(n,t),t._inc=e}}function ia(){}function ra(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function oa(t,e,n,i){if(i?e[ra(e,i)]=n:e[e.length++]=n,t){var r=(n.ownerElement=t).ownerDocument;r&&(i&&ha(r,t,i),function(t,e,n){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(e._nsMap[n.prefix?n.localName:""]=n.value)}(r,t,n))}}function aa(t,e,n){var i=ra(e,n);if(!(0<=i))throw Zo(Qo,new Error(t.tagName+"@"+n));for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var o=t.ownerDocument;o&&(ha(o,t,n),n.ownerElement=null)}}function sa(t){if(this._features={},t)for(var e in t)this._features=t[e]}function la(){}function ca(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function ua(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(ua(t,e))return!0}while(t=t.nextSibling)}function da(){}function ha(t,e,n){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function pa(t,e,n){if(t&&t._inc){t._inc++;var i=e.childNodes;if(n)i[i.length++]=n;else{for(var r=e.firstChild,o=0;r;)r=(i[o++]=r).nextSibling;i.length=o}}}function fa(t,e){var n=e.previousSibling,i=e.nextSibling;return n?n.nextSibling=i:t.firstChild=i,i?i.previousSibling=n:t.lastChild=n,pa(t.ownerDocument,t),e}function ma(t,e,n){var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===Wo){var r=e.firstChild;if(null==r)return e;var o=e.lastChild}else r=o=e;var a=n?n.previousSibling:t.lastChild;for(r.previousSibling=a,o.nextSibling=n,a?a.nextSibling=r:t.firstChild=r,null==n?t.lastChild=o:n.previousSibling=o;r.parentNode=t,r!==o&&(r=r.nextSibling););return pa(t.ownerDocument||t,t),e.nodeType==Wo&&(e.firstChild=e.lastChild=null),e}function ga(){this._nsMap={}}function va(){}function ya(){}function ba(){}function _a(){}function wa(){}function Ta(){}function Sa(){}function Ca(){}function ka(){}function xa(){}function Ea(){}function $a(){}function Ia(t,e){var n=[],i=9==this.nodeType?this.documentElement:this,r=i.prefix,o=i.namespaceURI;if(o&&null==r&&null==(r=i.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return Aa(this,n,t,e,a),n.join("")}function Oa(t,e,n){var i=t.prefix||"",r=t.namespaceURI;if(!i&&!r)return!1;if("xml"===i&&"http://www.w3.org/XML/1998/namespace"===r||"http://www.w3.org/2000/xmlns/"==r)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==i)return a.namespace!=r}return!0}function Aa(t,e,n,i,r){if(i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case No:r=r||[];var o=t.attributes,a=o.length,s=t.firstChild,l=t.tagName;n=Lo===t.namespaceURI||n,e.push("<",l);for(var c=0;c<a;c++)"xmlns"==(u=o.item(c)).prefix?r.push({prefix:u.localName,namespace:u.value}):"xmlns"==u.nodeName&&r.push({prefix:"",namespace:u.value});for(c=0;c<a;c++){var u;if(Oa(u=o.item(c),0,r)){var d=u.prefix||"",h=u.namespaceURI,p=d?" xmlns:"+d:" xmlns";e.push(p,'="',h,'"'),r.push({prefix:d,namespace:h})}Aa(u,e,n,i,r)}if(Oa(t,0,r)&&(d=t.prefix||"",h=t.namespaceURI,p=d?" xmlns:"+d:" xmlns",e.push(p,'="',h,'"'),r.push({prefix:d,namespace:h})),s||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(e.push(">"),n&&/^script$/i.test(l))for(;s;)s.data?e.push(s.data):Aa(s,e,n,i,r),s=s.nextSibling;else for(;s;)Aa(s,e,n,i,r),s=s.nextSibling;e.push("</",l,">")}else e.push("/>");return;case qo:case Wo:for(s=t.firstChild;s;)Aa(s,e,n,i,r),s=s.nextSibling;return;case jo:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,ca),'"');case Uo:return e.push(t.data.replace(/[<&]/g,ca));case Ro:return e.push("<![CDATA[",t.data,"]]>");case Ho:return e.push("\x3c!--",t.data,"--\x3e");case Vo:var f=t.publicId,m=t.systemId;if(e.push("<!DOCTYPE ",t.name),f)e.push(' PUBLIC "',f),m&&"."!=m&&e.push('" "',m),e.push('">');else if(m&&"."!=m)e.push(' SYSTEM "',m,'">');else{var g=t.internalSubset;g&&e.push(" [",g,"]"),e.push(">")}return;case zo:return e.push("<?",t.target," ",t.data,"?>");case Bo:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Pa(t,e,n){t[e]=n}Xo.INVALID_STATE_ERR=(Yo[11]="Invalid state",11),Xo.SYNTAX_ERR=(Yo[12]="Syntax error",12),Xo.INVALID_MODIFICATION_ERR=(Yo[13]="Invalid modification",13),Xo.NAMESPACE_ERR=(Yo[14]="Invalid namespace",14),Xo.INVALID_ACCESS_ERR=(Yo[15]="Invalid access",15),Zo.prototype=Error.prototype,Po(Xo,Zo),ta.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var n=[],i=0;i<this.length;i++)Aa(this[i],n,t,e);return n.join("")}},ea.prototype.item=function(t){return na(this),this[t]},Do(ea,ta),ia.prototype={length:0,item:ta.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new Zo(Jo);var n=this.getNamedItem(t.nodeName);return oa(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new Zo(Jo);return e=this.getNamedItemNS(t.namespaceURI,t.localName),oa(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return aa(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return aa(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var i=this[n];if(i.localName==e&&i.namespaceURI==t)return i}return null}},sa.prototype={hasFeature:function(t,e){var n=this._features[t.toLowerCase()];return!(!n||e&&!(e in n))},createDocument:function(t,e,n){var i=new da;if(i.implementation=this,i.childNodes=new ta,(i.doctype=n)&&i.appendChild(n),e){var r=i.createElementNS(t,e);i.appendChild(r)}return i},createDocumentType:function(t,e,n){var i=new Ta;return i.name=t,i.nodeName=t,i.publicId=e,i.systemId=n,i}},la.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return ma(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return fa(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return function t(e,n,i){var r=new n.constructor;for(var o in n){var a=n[o];"object"!=l(a)&&a!=r[o]&&(r[o]=a)}switch(n.childNodes&&(r.childNodes=new ta),r.ownerDocument=e,r.nodeType){case No:var s=n.attributes,c=r.attributes=new ia,u=s.length;c._ownerElement=r;for(var d=0;d<u;d++)r.setAttributeNode(t(e,s.item(d),!0));break;case jo:i=!0}if(i)for(var h=n.firstChild;h;)r.appendChild(t(e,h,i)),h=h.nextSibling;return r}(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==Uo&&t.nodeType==Uo?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var i in n)if(n[i]==t)return i;e=e.nodeType==jo?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=e.nodeType==jo?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},Po(Mo,la),Po(Mo,la.prototype),da.prototype={nodeName:"#document",nodeType:qo,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType!=Wo)return null==this.documentElement&&t.nodeType==No&&(this.documentElement=t),ma(this,t,e),t.ownerDocument=this,t;for(var n=t.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,e),n=i}return t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),fa(this,t)},importNode:function(t,e){return function t(e,n,i){var r;switch(n.nodeType){case No:(r=n.cloneNode(!1)).ownerDocument=e;case Wo:break;case jo:i=!0}if((r=r||n.cloneNode(!1)).ownerDocument=e,r.parentNode=null,i)for(var o=n.firstChild;o;)r.appendChild(t(e,o,i)),o=o.nextSibling;return r}(this,t,e)},getElementById:function(t){var e=null;return ua(this.documentElement,(function(n){if(n.nodeType==No&&n.getAttribute("id")==t)return e=n,!0})),e},createElement:function(t){var e=new ga;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new ta,(e.attributes=new ia)._ownerElement=e},createDocumentFragment:function(){var t=new xa;return t.ownerDocument=this,t.childNodes=new ta,t},createTextNode:function(t){var e=new ba;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new _a;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new wa;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new Ea;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new va;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new ka;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new ga,i=e.split(":"),r=n.attributes=new ia;return n.childNodes=new ta,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,r._ownerElement=n},createAttributeNS:function(t,e){var n=new va,i=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,n}},Do(da,la),da.prototype.getElementsByTagName=(ga.prototype={nodeType:No,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Wo?this.insertBefore(t,null):function(t,e){var n=e.parentNode;if(n){var i=t.lastChild;n.removeChild(e),i=t.lastChild}return i=t.lastChild,e.parentNode=t,e.previousSibling=i,e.nextSibling=null,i?i.nextSibling=e:t.firstChild=e,t.lastChild=e,pa(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new ea(this,(function(e){var n=[];return ua(e,(function(i){i===e||i.nodeType!=No||"*"!==t&&i.tagName!=t||n.push(i)})),n}))},getElementsByTagNameNS:function(t,e){return new ea(this,(function(n){var i=[];return ua(n,(function(r){r===n||r.nodeType!==No||"*"!==t&&r.namespaceURI!==t||"*"!==e&&r.localName!=e||i.push(r)})),i}))}}).getElementsByTagName,da.prototype.getElementsByTagNameNS=ga.prototype.getElementsByTagNameNS,Do(ga,la),va.prototype.nodeType=jo,Do(va,la),ya.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(Yo[Ko])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},Do(ya,la),ba.prototype={nodeName:"#text",nodeType:Uo,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},Do(ba,ya),_a.prototype={nodeName:"#comment",nodeType:Ho},Do(_a,ya),wa.prototype={nodeName:"#cdata-section",nodeType:Ro},Do(wa,ya),Ta.prototype.nodeType=Vo,Do(Ta,la),Sa.prototype.nodeType=Go,Do(Sa,la),Ca.prototype.nodeType=Fo,Do(Ca,la),ka.prototype.nodeType=Bo,Do(ka,la),xa.prototype.nodeName="#document-fragment",xa.prototype.nodeType=Wo,Do(xa,la),Ea.prototype.nodeType=zo,Do(Ea,la),$a.prototype.serializeToString=function(t,e,n){return Ia.call(t,e,n)},la.prototype.toString=Ia;try{Object.defineProperty&&(Object.defineProperty(ea.prototype,"length",{get:function(){return na(this),this.$$length}}),Object.defineProperty(la.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case No:case Wo:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");
2default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case No:case Wo:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),Pa=function(t,e,n){t["$$"+e]=n})}catch(t){}function Da(t){return!!t&&"object"==l(t)}function La(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return Object.keys(e).forEach((function(n){Array.isArray(t[n])&&Array.isArray(e[n])?t[n]=t[n].concat(e[n]):Da(t[n])&&Da(e[n])?t[n]=La(t[n],e[n]):t[n]=e[n]})),t}),{})}function Ma(t){return t.reduce((function(t,e){return t.concat(e)}),[])}function Na(t){if(!t.length)return[];for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e}function ja(t){var e=t.baseUrl,n=void 0===e?"":e,i=t.source,r=void 0===i?"":i,o=t.range,a=void 0===o?"":o,s=t.indexRange,l=void 0===s?"":s,c={uri:r,resolvedUri:mo(n||"",r)};if(a||l){var u=(a||l).split("-"),d=parseInt(u[0],10),h=parseInt(u[1],10);c.byterange={length:h-d+1,offset:d}}return c}function Ua(t){var e=t.type,n=void 0===e?"static":e,i=t.duration,r=t.timescale,o=void 0===r?1:r,a=t.sourceDuration,s=Ts[n](t),l=function(t,e){for(var n=[],i=t;i<e;i++)n.push(i);return n}(s.start,s.end).map(function(t){return function(e,n){var i=t.duration,r=t.timescale,o=void 0===r?1:r,a=t.periodIndex,s=t.startNumber;return{number:(void 0===s?1:s)+e,duration:i/o,timeline:a,time:n*i}}}(t));if("static"===n){var c=l.length-1;l[c].duration=a-i/o*c}return l}function Ra(t){var e=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,r=t.sourceDuration,o=t.timescale,a=void 0===o?1:o,s=t.indexRange,l=void 0===s?"":s,c=t.duration;if(!e)throw new Error(_s);var u=ja({baseUrl:e,source:i.sourceURL,range:i.range}),d=ja({baseUrl:e,source:e,indexRange:l});if(d.map=u,c){var h=Ua(t);h.length&&(d.duration=h[0].duration,d.timeline=h[0].timeline)}else r&&(d.duration=r/a,d.timeline=0);return d.number=0,[d]}function Ba(t,e,n){for(var i=t.sidx.map?t.sidx.map:null,r=t.sidx.duration,o=t.timeline||0,a=t.sidx.byterange,s=a.offset+a.length,l=e.timescale,c=e.references.filter((function(t){return 1!==t.referenceType})),u=[],d=s+e.firstOffset,h=0;h<c.length;h++){var p=e.references[h],f=p.referencedSize,m=Ra({baseUrl:n,timescale:l,timeline:o,periodIndex:o,duration:p.subsegmentDuration,sourceDuration:r,indexRange:d+"-"+(d+f-1)})[0];i&&(m.map=i),u.push(m),d+=f}return t.segments=u,t}function Fa(t){return function(t){return Object.keys(t).map((function(e){return t[e]}))}(t.reduce((function(t,e){var n,i=e.attributes.id+(e.attributes.lang||"");return t[i]?(e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[i].segments).push.apply(n,e.segments),e.attributes.contentProtection&&(t[i].attributes.contentProtection=e.attributes.contentProtection)):t[i]=e,t}),{})).map((function(t){return t.discontinuityStarts=function(t,e){return t.reduce((function(t,e,n){return e.discontinuity&&t.push(n),t}),[])}(t.segments),t}))}function za(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var n in t){var i=t[n];if(i.sidx){var r=i.sidx.uri+"-"+(s=(a=i.sidx.byterange).offset+a.length-1,a.offset+"-"+s),o=e[r]&&e[r].sidx;i.sidx&&o&&Ba(i,o,i.sidx.resolvedUri)}}var a,s;return t}function Ha(t){var e,n=t.attributes,i=t.segments,r=t.sidx,o={attributes:(e={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o}function qa(t,e){for(var n,i,r,o,a,s,l,c,u,d,h,p,f=t.type,m=void 0===f?"static":f,g=t.minimumUpdatePeriod,v=void 0===g?0:g,y=t.media,b=void 0===y?"":y,_=t.sourceDuration,w=t.t
2imescale,T=void 0===w?1:w,S=t.startNumber,C=void 0===S?1:S,k=t.periodIndex,x=[],E=-1,$=0;$<e.length;$++){var I=e[$],O=I.d,A=I.r||0,P=I.t||0;E<0&&(E=P),P&&E<P&&(E=P);var D=void 0;if(A<0){var L=$+1;D=L===e.length?"dynamic"===m&&0<v&&0<b.indexOf("$Number$")?(i=E,r=O,o=(n=t).NOW,a=n.clientOffset,s=n.availabilityStartTime,c=void 0===(l=n.timescale)?1:l,d=void 0===(u=n.start)?0:u,p=(o+a)/1e3+(void 0===(h=n.minimumUpdatePeriod)?0:h)-(s+d),Math.ceil((p*c-i)/r)):(_*T-E)/O:(e[L].t-E)/O}else D=A+1;for(var M=C+x.length+D,N=C+x.length;N<M;)x.push({number:N,duration:O/T,time:E,timeline:k}),E+=O,N++}return x}function Va(t,e){return t.replace(Ss,function(t){return function(e,n,i,r){if("$$"===e)return"$";if(void 0===t[n])return e;var o=""+t[n];return"RepresentationID"===n||(r=i?parseInt(r,10):1)<=o.length?o:new Array(r-o.length+1).join("0")+o}}(e))}function Wa(t,e){var n={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,r=void 0===i?{sourceURL:"",range:""}:i,o=ja({baseUrl:t.baseUrl,source:Va(r.sourceURL,n),range:r.range});return function(t,e){return t.duration||e?t.duration?Ua(t):qa(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodIndex}]}(t,e).map((function(e){n.Number=e.number,n.Time=e.time;var i=Va(t.media||"",n);return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:mo(t.baseUrl||"",i),map:o,number:e.number}}))}function Ga(t,e){var n=t.duration,i=t.segmentUrls,r=void 0===i?[]:i;if(!n&&!e||n&&e)throw new Error(ws);var o,a=r.map((function(e){return function(t,e){var n=t.baseUrl,i=t.initialization,r=void 0===i?{}:i,o=ja({baseUrl:n,source:r.sourceURL,range:r.range}),a=ja({baseUrl:n,source:e.media,range:e.mediaRange});return a.map=o,a}(t,e)}));return n&&(o=Ua(t)),e&&(o=qa(t,e)),o.map((function(t,e){if(a[e]){var n=a[e];return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n}})).filter((function(t){return t}))}function Xa(t){var e,n,i=t.attributes,r=t.segmentInfo;r.template?(n=Wa,e=La(i,r.template)):r.base?(n=Ra,e=La(i,r.base)):r.list&&(n=Ga,e=La(i,r.list));var o={attributes:i};if(!n)return o;var a=n(e,r.timeline);if(e.duration){var s=e,l=s.duration,c=s.timescale,u=void 0===c?1:c;e.duration=l/u}else a.length?e.duration=a.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return o.attributes=e,o.segments=a,r.base&&e.indexRange&&(o.sidx=a[0],o.segments=[]),o}function Ya(t,e){return Na(t.childNodes).filter((function(t){return t.tagName===e}))}function Ka(t){return t.textContent.trim()}function Qa(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var n=e.slice(1),i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5];return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(o||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(l||0)}function Ja(t){return t&&t.attributes?Na(t.attributes).reduce((function(t,e){var n=Cs[e.name]||Cs.DEFAULT;return t[e.name]=n(e.value),t}),{}):{}}function Za(t,e){return e.length?Ma(t.map((function(t){return e.map((function(e){return mo(t,Ka(e))}))}))):t}function ts(t){var e=Ya(t,"SegmentTemplate")[0],n=Ya(t,"SegmentList")[0],i=n&&Ya(n,"SegmentURL").map((function(t){return La({tag:"SegmentURL"},Ja(t))})),r=Ya(t,"SegmentBase")[0],o=n||e,a=o&&Ya(o,"SegmentTimeline")[0],s=n||r||e,l=s&&Ya(s,"Initialization")[0],c=e&&Ja(e);c&&l?c.initialization=l&&Ja(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var u={template:c,timeline:a&&Ya(a,"S").map((function(t){return Ja(t)})),list:n&&La(Ja(n),{segmentUrls:i,initialization:Ja(l)}),base:r&&La(Ja(r),{initialization:Ja(l)})};return Object.keys(u).forEach((function(t){u[t]||delete u[t]})),u}function es(t){if(""===t)throw new Error(ys);var e=(new gs).parseFromString(t,"application/xml"),n=e&&"MPD"===e.documentElement.tagName?e.documentElement:null;if(!n||n&&0<n.getElementsByTagName("parsererror").length)throw new Error(bs);return n}function ns(e,n){return void 0===n&&(n={}),function(t,e){var n;if(void 0===e&&(e={}),!t.length)return{};var i=t[0].attributes,r=i.sourceDuration,o=i.type,a=void 0===o?"static":o,s=i.suggestedPresentationDelay,l=i.minimumUpdatePeriod,c=void 0===l?0:l,u=Fa(t.filter((function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video"===e.contentType}))).map(Ha),d=Fa(t.filter((function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio"===e.contentType}))),h=t.filter((function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType})),p={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:r,playlists:za(u,e),minimumUpdatePeriod:1e3*c};return"dynamic"===a&&(p.suggestedPresentationDelay=s),d.length&&(p.mediaGroups.AUDIO.audio=function(t,e){var n;void 0===e&&(e={});var i=t.reduce((function(t,i){var r=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",a="main";if(o){var s=r?" ("+r+")":"";a=i.attributes.lang+s}return t[a]&&t[a].playlists[0].attributes.BANDWIDTH>i.attributes.bandwidth||(t[a]={language:o,autoselect:!0,default:"main"===r,playlists:za([function(t){var e,n=t.attributes,i=t.segments,r=t.sidx,o={attributes:(e={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o}(i)],e),uri:""},void 0===n&&"main"===r&&((n=i).default=!0)),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,e)),h.length&&(p.mediaGroups.SUBTITLES.subs=function(t,e){return void 0===e&&(e={}),t.reduce((function(t,n){var i=n.attributes.lang||"text";return t[i]||(t[i]={language:i,default:!1,autoselect:!1,playlists:za([function(t){var e,n=t.attributes,i=t.segments;return void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration),{attributes:(e={NAME:n.id,BANDWIDTH:n.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:i,mediaSequence:i.length?i[0].number:1}}(n)],e),uri:""}),t}),{})}(h,e)),p}(function(t){return t.map(Xa)}(function(e,n){void 0===n&&(n={});var i=n,r=i.manifestUri,o=void 0===r?"":r,a=i.NOW,l=void 0===a?Date.now():a,c=i.clientOffset,u=void 0===c?0:c,d=Ya(e,"Period");if(!d.length)throw new Error(vs);var h=Ja(e),p=Za([o],Ya(e,"BaseURL"));return h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=l,h.clientOffset=u,Ma(d.map(function(e,n){return function(i,r){var o=Za(n,Ya(i,"BaseURL")),a=Ja(i),l=parseInt(a.id,10),c=t.isNaN(l)?r:l,u=La(e,{periodIndex:c}),d=Ya(i,"AdaptationSet"),h=ts(i);return Ma(d.map(function(t,e,n){return function(i){var r=Ja(i),o=Za(e,Ya(i,"BaseURL")),a={role:Ja(Ya(i,"Role")[0])},l=La(t,r,a),c=function(t){return t.reduce((function(t,e){var n=Ja(e),i=ks[n.schemeIdUri];if(i){t[i]={attributes:n};var r=Ya(e,"cenc:pssh")[0];if(r){var o=Ka(r),a=o&&function(t){for(var e=function(t){return go.atob?go.atob(t):s.from(t,"base64").toString("binary")}(t),n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n}(o);t[i].pssh=a}}return t}),{})}(Ya(i,"ContentProtection"));Object.keys(c).length&&(l=La(l,{contentProtection:c}));var u=ts(i),d=Ya(i,"Representation"),h=La(n,u);return Ma(d.map(function(t,e,n){return function(i){var r=Ya(i,"BaseURL"),o=Za(e,r),a=La(t,Ja(i)),s=ts(i);return o.map((function(t){return{segmentInfo:La(n,s),attributes:La(a,{baseUrl:t})}}))}}(l,o,h)))}}(u,o,h)))}}(h,p)))}(es(e),n)),n.sidxMapping)}function is(t){return new Date(1e3*t-20828448e5)}function rs(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}}function os(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),(e+=String.fromCharCode(t[2]))+String.fromCharCode(t[3])}var as,ss,ls,cs,us,ds,hs,ps=sa,fs=$a,ms=a((function(t,e){function n(t){this.options=t||{locator:{}}}function i(){this.cdata=!1}function r(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function o(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function a(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}n.prototype.parseFromString=function(t,e){var n=this.options,r=new s,o=n.domBuilder||new i,a=n.errorHandler,l=n.locator,c=n.xmlns||{},u={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&o.setDocumentLocator(l),r.errorHandler=function(t,e,n){if(!t){if(e instanceof i)return e;t=e}var r={},o=t instanceof Function;function a(e){var i=t[e];!i&&o&&(i=2==t.length?function(n){t(e,n)}:t),r[e]=i&&function(t){i("[xmldom "+e+"]\t"+t+function(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),r}(a,o,l),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(e)&&(u.nbsp="\xa0",u.copy="\xa9",c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",t?r.parse(t,c,u):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,i){var o=this.doc,s=o.createElementNS(t,n||e),l=i.length;a(this,s),this.currentElement=s,this.locator&&r(this.locator,s);for(var c=0;c<l;c++){t=i.getURI(c);var u=i.getValue(c),d=(n=i.getQName(c),o.createAttributeNS(t,n));this.locator&&r(i.getLocator(c),d),d.value=d.nodeValue=u,s.setAttributeNode(d)}},endElement:function(t,e,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&r(this.locator,n),a(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=o.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(t);else i=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(t)&&this.doc.appendChild(i),this.locator&&r(this.locator,i)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=o.apply(this,arguments);var i=this.doc.createComment(t);this.locator&&r(this.locator,i),a(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var o=i.createDocumentType(t,e,n);this.locator&&r(this.locator,o),a(this,o)}},warning:function(t){},error:function(t){},fatalError:function(t){throw t}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(t){i.prototype[t]=function(){return null}}));var s=Ao,l=e.DOMImplementation=ps;
vendor: 18,753 bytes, line 2
2e.XMLSerializer=fs,e.DOMParser=n})),gs=(ms.DOMImplementation,ms.XMLSerializer,ms.DOMParser),vs="INVALID_NUMBER_OF_PERIOD",ys="DASH_EMPTY_MANIFEST",bs="DASH_INVALID_XML",_s="NO_BASE_URL",ws="SEGMENT_TIME_UNSPECIFIED",Ts={static:function(t){var e=t.duration,n=t.timescale,i=void 0===n?1:n,r=t.sourceDuration;return{start:0,end:Math.ceil(r/(e/i))}},dynamic:function(t){var e=t.NOW,n=t.clientOffset,i=t.availabilityStartTime,r=t.timescale,o=void 0===r?1:r,a=t.duration,s=t.start,l=void 0===s?0:s,c=t.minimumUpdatePeriod,u=void 0===c?0:c,d=t.timeShiftBufferDepth,h=void 0===d?1/0:d,p=(e+n)/1e3,f=i+l,m=p+u-f,g=Math.ceil(m*o/a),v=Math.floor((p-f-h)*o/a),y=Math.floor((p-f)*o/a);return{start:Math.max(0,v),end:Math.min(g,y)}}},Ss=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Cs={mediaPresentationDuration:function(t){return Qa(t)},availabilityStartTime:function(t){return function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)}(t)/1e3},minimumUpdatePeriod:function(t){return Qa(t)},suggestedPresentationDelay:function(t){return Qa(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return Qa(t)},start:function(t){return Qa(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?Qa(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},ks={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},xs=function(t){return t>>>0},Es=xs,$s={avc1:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{dataReferenceIndex:e.getUint16(6),width:e.getUint16(24),height:e.getUint16(26),horizresolution:e.getUint16(28)+e.getUint16(30)/16,vertresolution:e.getUint16(32)+e.getUint16(34)/16,frameCount:e.getUint16(40),depth:e.getUint16(74),config:as(t.subarray(78,t.byteLength))}},avcC:function(t){var e,n,i,r,o=new DataView(t.buffer,t.byteOffset,t.byteLength),a={configurationVersion:t[0],avcProfileIndication:t[1],profileCompatibility:t[2],avcLevelIndication:t[3],lengthSizeMinusOne:3&t[4],sps:[],pps:[]},s=31&t[5];for(i=6,r=0;r<s;r++)n=o.getUint16(i),i+=2,a.sps.push(new Uint8Array(t.subarray(i,i+n))),i+=n;for(e=t[i],i++,r=0;r<e;r++)n=o.getUint16(i),i+=2,a.pps.push(new Uint8Array(t.subarray(i,i+n))),i+=n;return a},btrt:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{bufferSizeDB:e.getUint32(0),maxBitrate:e.getUint32(4),avgBitrate:e.getUint32(8)}},esds:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),esId:t[6]<<8|t[7],streamPriority:31&t[8],decoderConfig:{objectProfileIndication:t[11],streamType:t[12]>>>2&63,bufferSize:t[13]<<16|t[14]<<8|t[15],maxBitrate:t[16]<<24|t[17]<<16|t[18]<<8|t[19],avgBitrate:t[20]<<24|t[21]<<16|t[22]<<8|t[23],decoderConfigDescriptor:{tag:t[24],length:t[25],audioObjectType:t[26]>>>3&31,samplingFrequencyIndex:(7&t[26])<<1|t[27]>>>7&1,channelConfiguration:t[27]>>>3&15}}}},ftyp:function(t){for(var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={majorBrand:os(t.subarray(0,4)),minorVersion:e.getUint32(4),compatibleBrands:[]},i=8;i<t.byteLength;)n.compatibleBrands.push(os(t.subarray(i,i+4))),i+=4;return n},dinf:function(t){return{boxes:as(t)}},dref:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),dataReferences:as(t.subarray(8))}},hdlr:function(t){var e={version:new DataView(t.buffer,t.byteOffset,t.byteLength).getUint8(0),flags:new Uint8Array(t.subarray(1,4)),handlerType:os(t.subarray(8,12)),name:""},n=8;for(n=24;n<t.byteLength;n++){if(0===t[n]){n++;break}e.name+=String.fromCharCode(t[n])}return e.name=decodeURIComponent(escape(e.name)),e},mdat:function(t){return{byteLength:t.byteLength,nals:function(t){var e,n,i=new DataView(t.buffer,t.byteOffset,t.byteLength),r=[];for(e=0;e+4<t.length;e+=n)if(n=i.getUint32(e),e+=4,n<=0)r.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&t[e]){case 1:r.push("slice_layer_without_partitioning_rbsp");break;case 5:r.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:r.push("sei_rbsp");break;case 7:r.push("seq_parameter_set_rbsp");break;case 8:r.push("pic_parameter_set_rbsp");break;case 9:r.push("access_unit_delimiter_rbsp");break;default:r.push("UNKNOWN NAL - "+t[e]&31)}return r}(t)}},mdhd:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i=4,r={version:n.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),language:""};return 1===r.version?(i+=4,r.creationTime=is(n.getUint32(i)),i+=8,r.modificationTime=is(n.getUint32(i)),i+=4,r.timescale=n.getUint32(i),i+=8):(r.creationTime=is(n.getUint32(i)),i+=4,r.modificationTime=is(n.getUint32(i)),i+=4,r.timescale=n.getUint32(i),i+=4),r.duration=n.getUint32(i),i+=4,e=n.getUint16(i),r.language+=String.fromCharCode(96+(e>>10)),r.language+=String.fromCharCode(96+((992&e)>>5)),r.language+=String.fromCharCode(96+(31&e)),r},mdia:function(t){return{boxes:as(t)}},mfhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sequenceNumber:t[4]<<24|t[5]<<16|t[6]<<8|t[7]}},minf:function(t){return{boxes:as(t)}},mp4a:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n={dataReferenceIndex:e.getUint16(6),channelcount:e.getUint16(16),samplesize:e.getUint16(18),samplerate:e.getUint16(24)+e.getUint16(26)/65536};return 28<t.byteLength&&(n.streamDescriptor=as(t.subarray(28))[0]),n},moof:function(t){return{boxes:as(t)}},moov:function(t){return{boxes:as(t)}},mvex:function(t){return{boxes:as(t)}},mvhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=4,i={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4))};return 1===i.version?(n+=4,i.creationTime=is(e.getUint32(n)),n+=8,i.modificationTime=is(e.getUint32(n)),n+=4,i.timescale=e.getUint32(n),n+=8):(i.creationTime=is(e.getUint32(n)),n+=4,i.modificationTime=is(e.getUint32(n)),n+=4,i.timescale=e.getUint32(n),n+=4),i.duration=e.getUint32(n),n+=4,i.rate=e.getUint16(n)+e.getUint16(n+2)/16,n+=4,i.volume=e.getUint8(n)+e.getUint8(n+1)/8,n+=2,n+=2,n+=8,i.matrix=new Uint32Array(t.subarray(n,n+36)),n+=36,n+=24,i.nextTrackId=e.getUint32(n),i},pdin:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4)),rate:e.getUint32(4),initialDelay:e.getUint32(8)}},sdtp:function(t){var e,n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]};for(e=4;e<t.byteLength;e++)n.samples.push({dependsOn:(48&t[e])>>4,isDependedOn:(12&t[e])>>2,hasRedundancy:3&t[e]});return n},sidx:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8),earliestPresentationTime:n.getUint32(12),firstOffset:n.getUint32(16)},r=n.getUint16(22);for(e=24;r;e+=12,r--)i.references.push({referenceType:(128&t[e])>>>7,referencedSize:2147483647&n.getUint32(e),subsegmentDuration:n.getUint32(e+4),startsWithSap:!!(128&t[e+8]),sapType:(112&t[e+8])>>>4,sapDeltaTime:268435455&n.getUint32(e+8)});return i},smhd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),balance:t[4]+t[5]/256}},stbl:function(t){return{boxes:as(t)}},stco:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),chunkOffsets:[]},r=n.getUint32(4);for(e=8;r;e+=4,r--)i.chunkOffsets.push(n.getUint32(e));return i},stsc:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i=n.getUint32(4),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleToChunks:[]};for(e=8;i;e+=12,i--)r.sampleToChunks.push({firstChunk:n.getUint32(e),samplesPerChunk:n.getUint32(e+4),sampleDescriptionIndex:n.getUint32(e+8)});return r},stsd:function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleDescriptions:as(t.subarray(8))}},stsz:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),sampleSize:n.getUint32(4),entries:[]};for(e=12;e<t.byteLength;e+=4)i.entries.push(n.getUint32(e));return i},stts:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),timeToSamples:[]},r=n.getUint32(4);for(e=8;r;e+=8,r--)i.timeToSamples.push({sampleCount:n.getUint32(e),sampleDelta:n.getUint32(e+4)});return i},styp:function(t){return $s.ftyp(t)},tfdt:function(t){var e={version:t[0],flags:new Uint8Array(t.subarray(1,4)),baseMediaDecodeTime:Es(t[4]<<24|t[5]<<16|t[6]<<8|t[7])};return 1===e.version&&(e.baseMediaDecodeTime*=Math.pow(2,32),e.baseMediaDecodeTime+=Es(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),e},tfhd:function(t){var e,n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],o=2&i.flags[2],a=8&i.flags[2],s=16&i.flags[2],l=32&i.flags[2],c=65536&i.flags[0],u=131072&i.flags[0];return e=8,r&&(e+=4,i.baseDataOffset=n.getUint32(12),e+=4),o&&(i.sampleDescriptionIndex=n.getUint32(e),e+=4),a&&(i.defaultSampleDuration=n.getUint32(e),e+=4),s&&(i.defaultSampleSize=n.getUint32(e),e+=4),l&&(i.defaultSampleFlags=n.getUint32(e)),c&&(i.durationIsEmpty=!0),!r&&u&&(i.baseDataOffsetIsMoof=!0),i},tkhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=4,i={version:e.getUint8(0),flags:new Uint8Array(t.subarray(1,4))};return 1===i.version?(n+=4,i.creationTime=is(e.getUint32(n)),n+=8,i.modificationTime=is(e.getUint32(n)),n+=4,i.trackId=e.getUint32(n),n+=4,n+=8):(i.creationTime=is(e.getUint32(n)),n+=4,i.modificationTime=is(e.getUint32(n)),n+=4,i.trackId=e.getUint32(n),n+=4,n+=4),i.duration=e.getUint32(n),n+=4,n+=8,i.layer=e.getUint16(n),n+=2,i.alternateGroup=e.getUint16(n),n+=2,i.volume=e.getUint8(n)+e.getUint8(n+1)/8,n+=2,n+=2,i.matrix=new Uint32Array(t.subarray(n,n+36)),n+=36,i.width=e.getUint16(n)+e.getUint16(n+2)/16,n+=4,i.height=e.getUint16(n)+e.getUint16(n+2)/16,i},traf:function(t){return{boxes:as(t)}},trak:function(t){return{boxes:as(t)}},trex:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:e.getUint32(4),defaultSampleDescriptionIndex:e.getUint32(8),defaultSampleDuration:e.getUint32(12),defaultSampleSize:e.getUint32(16),sampleDependsOn:3&t[20],sampleIsDependedOn:(192&t[21])>>6,sampleHasRedundancy:(48&t[21])>>4,samplePaddingValue:(14&t[21])>>1,sampleIsDifferenceSample:!!(1&t[21]),sampleDegradationPriority:e.getUint16(22)}},trun:function(t){var e,n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},i=new DataView(t.buffer,t.byteOffset,t.byteLength),r=1&n.flags[2],o=4&n.flags[2],a=1&n.flags[1],s=2&n.flags[1],l=4&n.flags[1],c=8&n.flags[1],u=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),o&&u&&(e={flags:rs(t.subarray(d,d+4))},d+=4,a&&(e.duration=i.getUint32(d),d+=4),s&&(e.size=i.getUint32(d),d+=4),c&&(e.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(e),u--);u--;)e={},a&&(e.duration=i.getUint32(d),d+=4),s&&(e.size=i.getUint32(d),d+=4),l&&(e.flags=rs(t.subarray(d,d+4)),d+=4),c&&(e.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(e);return n},"url ":function(t){return{version:t[0],flags:new Uint8Array(t.subarray(1,4))}},vmhd:function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);return{version:t[0],flags:new Uint8Array(t.subarray(1,4)),graphicsmode:e.getUint16(4),opcolor:new Uint16Array([e.getUint16(6),e.getUint16(8),e.getUint16(10)])}}},Is={inspect:as=function(t){for(var e,n,i,r,o,a=0,s=[],l=new ArrayBuffer(t.length),c=new Uint8Array(l),u=0;u<t.length;++u)c[u]=t[u];for(e=new DataView(l);a<t.byteLength;)n=e.getUint32(a),i=os(t.subarray(a+4,a+8)),r=1<n?a+n:t.byteLength,(o=($s[i]||function(t){return{data:t}})(t.subarray(a+8,r))).size=n,o.type=i,s.push(o),a=r;return s},textify:ss=function(t,e){var n;return e=e||0,n=new Array(2*e+1).join(" "),t.map((function(t,i){return n+t.type+"\n"+Object.keys(t).filter((function(t){return"type"!==t&&"boxes"!==t})).map((function(e){var i=n+" "+e+": ",r=t[e];if(r instanceof Uint8Array||r instanceof Uint32Array){var o=Array.prototype.slice.call(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)).map((function(t){return" "+("00"+t.toString(16)).slice(-2)})).join("").match(/.{1,24}/g);return o?1===o.length?i+"<"+o.join("").slice(1)+">":i+"<\n"+o.map((function(t){return n+" "+t})).join("\n")+"\n"+n+" >":i+"<>"}return i+JSON.stringify(r,null,2).split("\n").map((function(t,e){return 0===e?t:n+" "+t})).join("\n")})).join("\n")+(t.boxes?"\n"+ss(t.boxes,e+1):"")})).join("\n")},parseType:os,findBox:function t(e,n){var i,r,o,a,s,l=[];if(!n.length)return null;for(i=0;i<e.byteLength;)r=Es(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),o=os(e.subarray(i+4,i+8)),a=1<r?i+r:e.byteLength,o===n[0]&&(1===n.length?l.push(e.subarray(i+8,a)):(s=t(e.subarray(i+8,a),n.slice(1))).length&&(l=l.concat(s))),i=a;return l},parseTraf:$s.traf,parseTfdt:$s.tfdt,parseHdlr:$s.hdlr,parseTfhd:$s.tfhd,parseTrun:$s.trun,parseSidx:$s.sidx},Os=xs,As=function(t){return("00"+t.toString(16)).slice(-2)};function Ps(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var i;return!!t[e]&&(i=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(i,1),-1<i)},this.trigger=function(e){var n,i,r,o;if(n=t[e])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(o=[],i=arguments.length,i=1;i<arguments.length;++i)o.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,o)}},this.dispose=function(){t={}}}}ls=function(t){return Is.findBox(t,["moov","trak"]).reduce((function(t,e){var n,i,r,o,a;return(n=Is.findBox(e,["tkhd"])[0])?(i=n[0],o=Os(n[r=0===i?12:20]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),(a=Is.findBox(e,["mdia","mdhd"])[0])?(r=0===(i=a[0])?12:20,t[o]=Os(a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3]),t):null):null}),{})},cs=function(t,e){var n,i,r;return n=Is.findBox(e,["moof","traf"]),i=[].concat.apply([],n.map((function(e){return Is.findBox(e,["tfhd"]).map((function(n){var i,r;return i=Os(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),r=t[i]||9e4,(Is.findBox(e,["tfdt"]).map((function(t){var e,n;return e=t[0],n=Os(t[4]<<24|t[5]<<16|t[6]<<8|t[7]),1===e&&(n*=Math.pow(2,32),n+=Os(t[8]<<24|t[9]<<16|t[10]<<8|t[11])),n}))[0]||1/0)/r}))}))),r=Math.min.apply(null,i),isFinite(r)?r:0},us=function(t,e){var n,i=Is.findBox(e,["moof","traf"]),r=0,o=0;if(i&&i.length)for(var a=Is.parseTraf(i[0]),s=0;s<a.boxes.length;s++)"tfhd"===a.boxes[s].type?n=a.boxes[s].trackId:"tfdt"===a.boxes[s].type?r=a.boxes[s].baseMediaDecodeTime:"trun"===a.boxes[s].type&&a.boxes[s].samples.length&&(o=a.boxes[s].samples[0].compositionTimeOffset||0);return(r+o)/(t[n]||9e4)},ds=function(t){var e=Is.findBox(t,["moov","trak"]),n=[];return e.forEach((function(t){var e=Is.findBox(t,["mdia","hdlr"]),i=Is.findBox(t,["tkhd"]);e.forEach((function(t,e){var r,o,a=Is.parseType(t.subarray(8,12)),s=i[e];"vide"===a&&(o=0===(r=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),n.push(o))}))})),n},hs=function(t){var e=Is.findBox(t,["moov","trak"]),n=[];return e.forEach((function(t){var e,i,r={},o=Is.findBox(t,["tkhd"])[0];o&&(i=(e=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0),r.id=0===i?e.getUint32(12):e.getUint32(20));var a=Is.findBox(t,["mdia","hdlr"])[0];if(a){var s=Is.parseType(a.subarray(8,12));r.type="vide"===s?"video":"soun"===s?"audio":s}var l=Is.findBox(t,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);r.codec=Is.parseType(c.subarray(4,8));var u,d=Is.findBox(c,[r.codec])[0];d&&(/^[a-z]vc[1-9]$/i.test(r.codec)?(u=d.subarray(78),"avcC"===Is.parseType(u.subarray(4,8))&&11<u.length?(r.codec+=".",r.codec+=As(u[9]),r.codec+=As(u[10]),r.codec+=As(u[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)&&(u=d.subarray(28),"esds"===Is.parseType(u.subarray(4,8))&&20<u.length&&0!==u[19]?(r.codec+="."+As(u[19]),r.codec+="."+As(u[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"))}var h=Is.findBox(t,["mdia","mdhd"])[0];if(h&&o){var p=0===i?12:20;r.timescale=Os(h[p]<<24|h[1+p]<<16|h[2+p]<<8|h[3+p])}n.push(r)})),n};var Ds={findBox:Is.findBox,parseType:Is.parseType,timescale:ls,startTime:cs,compositionStartTime:us,videoTrackIds:ds,tracks:hs};function Ls(){Ls.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Bs(0,0),new Bs(0,1),new Bs(1,0),new Bs(1,1)],this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.on("done",this.trigger.bind(this,"done"))}),this)}Ps.prototype.pipe=function(t){return this.on("data",(function(e){t.push(e)})),this.on("done",(function(e){t.flush(e)})),this.on("partialdone",(function(e){t.partialFlush(e)})),this.on("endedtimeline",(function(e){t.endTimeline(e)})),this.on("reset",(function(e){t.reset(e)})),t},Ps.prototype.push=function(t){this.trigger("data",t)},Ps.prototype.flush=function(t){this.trigger("done",t)},Ps.prototype.partialFlush=function(t){this.trigger("partialdone",t)},Ps.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},Ps.prototype.reset=function(t){this.trigger("reset",t)};var Ms=Ps;function Ns(t){return null===t?"":(t=Us[t]||t,String.fromCharCode(t))}function js(){for(var t=[],e=15;e--;)t.push("");return t}(Ls.prototype=new Ms).push=function(t){var e,n,i;if("sei_rbsp"===t.nalUnitType&&4===(e=function(t){for(var e=0,n={payloadType:-1,payloadSize:0},i=0,r=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)i+=255,e++;for(i+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!n.payload&&4===i){n.payloadType=i,n.payloadSize=r,n.payload=t.subarray(e,e+r);break}e+=r,r=i=0}return n}(t.escapedRBSP)).payloadType&&(n=function(t){return 181!==t.payload[0]||49!=(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)}(e)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=function(t,e){var n,i,r,o,a=[];if(!(64&e[0]))return a;for(i=31&e[0],n=0;n<i;n++)o={type:3&e[2+(r=3*n)],pts:t},4&e[2+r]&&(o.ccData=e[3+r]<<8|e[4+r],a.push(o));return a}(t.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}}
vendor: 5,095 bytes, line 2
2,Ls.prototype.flushCCStreams=function(t){this.ccStreams_.forEach((function(e){return"flush"===t?e.flush():e.partialFlush()}),this)},Ls.prototype.flushStream=function(t){this.captionPackets_.length&&(this.captionPackets_.forEach((function(t,e){t.presortIndex=e})),this.captionPackets_.sort((function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts})),this.captionPackets_.forEach((function(t){t.type<2&&this.dispatchCea608Packet(t)}),this),this.captionPackets_.length=0),this.flushCCStreams(t)},Ls.prototype.flush=function(){return this.flushStream("flush")},Ls.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ls.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},Ls.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},Ls.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},Ls.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)},Ls.prototype.setsTextOrXDSActive=function(t){return 256==(28928&t.ccData)||4138==(30974&t.ccData)||6186==(30974&t.ccData)};var Us={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Rs=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Bs=function t(e,n){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,i,r,o;if((e=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),i=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=js();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=js();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=js()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(i,r))o=Ns((i=(3&i)<<8)|r),this[this.mode_](t.pts,o),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=Ns((i=(3&i)<<8)|r),this[this.mode_](t.pts,o),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&r)&&this.addFormatting(t.pts,["i"]),1==(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var a=Rs.indexOf(7968&e);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(t.pts,a)),a!==this.row_&&(this.clearFormatting(t.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),o=Ns(i),o+=Ns(r),this[this.mode_](t.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};function Fs(t,e){for(var n=t,i=0;i<e.length;i++){var r=e[i];if(n<r.size)return r;n-=r.size}return null}function zs(t,e){var n=Ds.findBox(t,["moof","traf"]),i=Ds.findBox(t,["mdat"]),r={},o=[];
vendor: 21,953 bytes, line 2
2return i.forEach((function(t,e){var i=n[e];o.push({mdat:t,traf:i})})),o.forEach((function(t){var n,i=t.mdat,o=t.traf,a=Ds.findBox(o,["tfhd"]),s=Is.parseTfhd(a[0]),l=s.trackId,c=Ds.findBox(o,["tfdt"]),u=0<c.length?Is.parseTfdt(c[0]).baseMediaDecodeTime:0,d=Ds.findBox(o,["trun"]);e===l&&0<d.length&&(n=function(t,e,n){var i,r,o,a,s=new DataView(t.buffer,t.byteOffset,t.byteLength),l=[];for(r=0;r+4<t.length;r+=o)if(o=s.getUint32(r),r+=4,!(o<=0||6!=(31&t[r]))){var c=t.subarray(r+1,r+1+o),u=Fs(r,e);i={nalUnitType:"sei_rbsp",size:o,data:c,escapedRBSP:Hs(c),trackId:n},u?(i.pts=u.pts,i.dts=u.dts,a=u):(i.pts=a.pts,i.dts=a.dts),l.push(i)}return l}(i,function(t,e,n){var i=e,r=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,a=n.trackId,s=[];return t.forEach((function(t){var e=Is.parseTrun(t).samples;e.forEach((function(t){void 0===t.duration&&(t.duration=r),void 0===t.size&&(t.size=o),t.trackId=a,t.dts=i,void 0===t.compositionTimeOffset&&(t.compositionTimeOffset=0),t.pts=i+t.compositionTimeOffset,i+=t.duration})),s=s.concat(e)})),s}(d,u,s),l),r[l]||(r[l]=[]),r[l]=r[l].concat(n))})),r}Bs.prototype=new Ms,Bs.prototype.flushDisplayed=function(t){var e=this.displayed_.map((function(t){try{return t.trim()}catch(t){return""}})).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},Bs.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=js(),this.nonDisplayed_=js(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Bs.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Bs.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&48<=e&&e<=63},Bs.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&32<=e&&e<=63},Bs.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&32<=e&&e<=47},Bs.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&33<=e&&e<=35},Bs.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&64<=e&&e<=127},Bs.prototype.isColorPAC=function(t){return 64<=t&&t<=79||96<=t&&t<=127},Bs.prototype.isNormalChar=function(t){return 32<=t&&t<=127},Bs.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=js(),this.displayed_=js()),void 0!==e&&e!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[e-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},Bs.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce((function(t,e){return t+"<"+e+">"}),"");this[this.mode_](t,n)},Bs.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce((function(t,e){return t+"</"+e+">"}),"");this.formatting_=[],this[this.mode_](t,e)}},Bs.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},Bs.prototype.rollUp=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},Bs.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<15;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},Bs.prototype.paintOn=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n};var Hs=function(t){for(var e,n,i=t.byteLength,r=[],o=1;o<i-2;)0===t[o]&&0===t[o+1]&&3===t[o+2]?(r.push(o+2),o+=2):o++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var a=0;for(o=0;o<e;a++,o++)a===r[0]&&(a++,r.shift()),n[o]=t[a];return n},qs=Ls,Vs=function(){var t,e,n,i,r,o,a=!1;this.isInitialized=function(){return a},this.init=function(e){t=new qs,a=!0,o=!!e&&e.isPartial,t.on("data",(function(t){t.startTime=t.startPts/i,t.endTime=t.endPts/i,r.captions.push(t),r.captionStreams[t.stream]=!0}))},this.isNewInit=function(t,e){return!(t&&0===t.length||e&&"object"==l(e)&&0===Object.keys(e).length||n===t[0]&&i===e[n])},this.parse=function(t,o,a){var s;if(!this.isInitialized())return null;if(!o||!a)return null;if(this.isNewInit(o,a))n=o[0],i=a[n];else if(null===n||!i)return e.push(t),null;for(;0<e.length;){var l=e.shift();this.parse(l,o,a)}return null!==(s=function(t,e,n){return null===e?null:{seiNals:zs(t,e)[e],timescale:n}}(t,n,i))&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),r):null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach((function(e){t.push(e)}))},this.flushStream=function(){if(!this.isInitialized())return null;o?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],i=n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()};function Ws(t){var e=31&t[1];return(e<<=8)|t[2]}function Gs(t){return!!(64&t[1])}function Xs(t){var e=0;return 1<(48&t[3])>>>4&&(e+=t[4]+1),e}function Ys(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}function Ks(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]}new Ms;var Qs={parseType:function(t,e){var n=Ws(t);return 0===n?"pat":n===e?"pmt":e?"pes":null},parsePat:function(t){var e=Gs(t),n=4+Xs(t);return e&&(n+=t[n]+1),(31&t[n+10])<<8|t[n+11]},parsePmt:function(t){var e={},n=Gs(t),i=4+Xs(t);if(n&&(i+=t[i]+1),1&t[i+5]){var r;r=3+((15&t[i+1])<<8|t[i+2])-4;for(var o=12+((15&t[i+10])<<8|t[i+11]);o<r;){var a=i+o;e[(31&t[a+1])<<8|t[a+2]]=t[a],o+=5+((15&t[a+3])<<8|t[a+4])}return e}},parsePayloadUnitStartIndicator:Gs,parsePesType:function(t,e){switch(e[Ws(t)]){case 27:return"video";case 15:return"audio";case 21:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!Gs(t))return null;var e=4+Xs(t);if(e>=t.byteLength)return null;var n,i=null;return 192&(n=t[e+7])&&((i={}).pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,i.pts*=4,i.pts+=(6&t[e+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,i.dts*=4,i.dts+=(6&t[e+18])>>>1)),i},videoPacketContainsKeyFrame:function(t){for(var e=4+Xs(t),n=t.subarray(e),i=0,r=0,o=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}for(r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===Ys(31&n[r+3])&&(o=!0);1!==n[++i]&&i<n.length;);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Ys(31&n[r+3])&&(o=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&3<n.byteLength&&"slice_layer_without_partitioning_rbsp_idr"===Ys(31&n[r+3])&&(o=!0),o}},Js=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Zs={isLikelyAacData:function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},parseId3TagSize:function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?20+n:10+n},parseAdtsSize:function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3;return 6144&t[e+3]|i|n},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5<t.length;){if(255===t[e]&&240==(246&t[e+1]))return Js[(60&t[e+2])>>>2];e++}return null},parseAacTimestamp:function(t){var e,n,i;e=10,64&t[5]&&(e+=4,e+=Ks(t.subarray(10,14)));do{if((n=Ks(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){i=t.subarray(e+10,e+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"!==unescape(function(t,e,n){var i,r="";for(i=0;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r}(i,0,r)))break;var o=i.subarray(r+1),a=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return(a*=4)+(3&o[7])}}e+=10,e+=n}while(e<t.byteLength);return null}},tl=function(t,e){var n=1;for(e<t&&(n=-1);4294967296<Math.abs(e-t);)t+=8589934592*n;return t},el={};function nl(t,e,n){for(var i,r,o,a,s=0,l=ol,c=!1;l<=t.byteLength;)if(71!==t[s]||71!==t[l]&&l!==t.byteLength)s++,l++;else{if("pes"===(i=t.subarray(s,l),el.ts.parseType(i,e.pid))&&(r=el.ts.parsePesType(i,e.table),o=el.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&o&&(a=el.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),c=!0)),c)break;s+=ol,l+=ol}for(s=(l=t.byteLength)-ol,c=!1;0<=s;)if(71!==t[s]||71!==t[l]&&l!==t.byteLength)s--,l--;else{if("pes"===(i=t.subarray(s,l),el.ts.parseType(i,e.pid))&&(r=el.ts.parsePesType(i,e.table),o=el.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&o&&(a=el.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),c=!0)),c)break;s-=ol,l-=ol}}function il(t,e,n){for(var i,r,o,a,s,l,c,u=0,d=ol,h=!1,p={data:[],size:0};d<t.byteLength;)if(71!==t[u]||71!==t[d])u++,d++;else{if("pes"===(i=t.subarray(u,d),el.ts.parseType(i,e.pid))&&(r=el.ts.parsePesType(i,e.table),o=el.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(o&&!h&&(a=el.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0),!n.firstKeyFrame))){if(o&&0!==p.size){for(s=new Uint8Array(p.size),l=0;p.data.length;)c=p.data.shift(),s.set(c,l),l+=c.byteLength;if(el.ts.videoPacketContainsKeyFrame(s)){var f=el.ts.parsePesTime(s);f&&(n.firstKeyFrame=f,n.firstKeyFrame.type="video")}p.size=0}p.data.push(i),p.size+=i.byteLength}if(h&&n.firstKeyFrame)break;u+=ol,d+=ol}for(u=(d=t.byteLength)-ol,h=!1;0<=u;)if(71!==t[u]||71!==t[d])u--,d--;else{if("pes"===(i=t.subarray(u,d),el.ts.parseType(i,e.pid))&&(r=el.ts.parsePesType(i,e.table),o=el.ts.parsePayloadUnitStartIndicator(i),"video"===r&&o&&(a=el.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0)),h)break;u-=ol,d-=ol}}el.ts=Qs,el.aac=Zs;var rl=9e4,ol=188;function al(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var sl=null,ll=(cl.prototype.decrypt=function(t,e,n,i,r,o){var a=this._key[1],s=t^a[0],l=i^a[1],c=n^a[2],u=e^a[3],d=void 0,h=void 0,p=void 0,f=a.length/4-2,m=void 0,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],w=v[3],T=v[4];for(m=0;m<f;m++)d=y[s>>>24]^b[l>>16&255]^_[c>>8&255]^w[255&u]^a[g],h=y[l>>>24]^b[c>>16&255]^_[u>>8&255]^w[255&s]^a[g+1],p=y[c>>>24]^b[u>>16&255]^_[s>>8&255]^w[255&l]^a[g+2],u=y[u>>>24]^b[s>>16&255]^_[l>>8&255]^w[255&c]^a[g+3],g+=4,s=d,l=h,c=p;for(m=0;m<4;m++)r[(3&-m)+o]=T[s>>>24]<<24^T[l>>16&255]<<16^T[c>>8&255]<<8^T[255&u]^a[g++],d=s,s=l,l=c,c=u,u=d},cl);function cl(t){al(this,cl),sl=sl||function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],n=t[1],i=e[4],r=n[4],o=void 0,a=void 0,s=void 0,l=[],c=[],u=void 0,d=void 0,h=void 0,p=void 0,f=void 0;for(o=0;o<256;o++)c[(l[o]=o<<1^283*(o>>7))^o]=o;for(a=s=0;!i[a];a^=u||1,s=c[s]||1)for(h=(h=s^s<<1^s<<2^s<<3^s<<4)>>8^255&h^99,f=16843009*l[d=l[u=l[r[i[a]=h]=a]]]^65537*d^257*u^16843008*a,p=257*l[h]^16843008*h,o=0;o<4;o++)e[o][a]=p=p<<24^p>>>8,n[o][h]=f=f<<24^f>>>8;for(o=0;o<5;o++)e[o]=e[o].slice(0),n[o]=n[o].slice(0);return t}(),this._tables=[[sl[0][0].slice(),sl[0][1].slice(),sl[0][2].slice(),sl[0][3].slice(),sl[0][4].slice()],[sl[1][0].slice(),sl[1][1].slice(),sl[1][2].slice(),sl[1][3].slice(),sl[1][4].slice()]];var e=void 0,n=void 0,i=void 0,r=void 0,o=void 0,a=this._tables[0][4],s=this._tables[1],l=t.length,c=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");for(r=t.slice(0),o=[],this._key=[r,o],e=l;e<4*l+28;e++)i=r[e-1],(e%l==0||8===l&&e%l==4)&&(i=a[i>>>24]<<24^a[i>>16&255]<<16^a[i>>8&255]<<8^a[255&i],e%l==0&&(i=i<<8^i>>>24^c<<24,c=c<<1^283*(c>>7))),r[e]=r[e-l]^i;for(n=0;e;n++,e--)i=r[3&n?e:e-4],o[n]=e<=4||n<4?i:s[0][a[i>>>24]]^s[1][a[i>>16&255]]^s[2][a[i>>8&255]]^s[3][a[255&i]]}var ul=(dl.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},dl.prototype.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t].splice(n,1),-1<n},dl.prototype.trigger=function(t,e){var n=this.listeners[t];if(n)if(2===arguments.length)for(var i=n.length,r=0;r<i;++r)n[r].call(this,e);else for(var o=Array.prototype.slice.call(arguments,1),a=n.length,s=0;s<a;++s)n[s].apply(this,o)},dl.prototype.dispose=function(){this.listeners={}},dl.prototype.pipe=function(t){this.on("data",(function(e){t.push(e)}))},dl);function dl(){al(this,dl),this.listeners={}}var hl,pl=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+l(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(fl,hl=ul),fl.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},fl.prototype.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},fl);function fl(){al(this,fl);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=l(e)&&"function"!=typeof e?t:e}(this,hl.call(this,ul));return t.jobs=[],t.delay=1,t.timeout_=null,t}function ml(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24}function gl(t,e,n){var i=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),r=new ll(Array.prototype.slice.call(e)),o=new Uint8Array(t.byteLength),a=new Int32Array(o.buffer),s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0,m=void 0;for(s=n[0],l=n[1],c=n[2],u=n[3],m=0;m<i.length;m+=4)d=ml(i[m]),h=ml(i[m+1]),p=ml(i[m+2]),f=ml(i[m+3]),r.decrypt(d,h,p,f,a,m),a[m]=ml(a[m]^s),a[m+1]=ml(a[m+1]^l),a[m+2]=ml(a[m+2]^c),a[m+3]=ml(a[m+3]^u),s=d,l=h,c=p,u=f;return o}var vl=(yl.prototype.decryptChunk_=function(t,e,n,i){return function(){var r=gl(t,e,n);i.set(r,t.byteOffset)}},function(t,e,n){n&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t,n)}(yl,0,[{key:"STEP",get:function(){return 32e3}}]),yl);function yl(t,e,n,i){al(this,yl);var r=yl.STEP,o=new Int32Array(t.buffer),a=new Uint8Array(t.byteLength),s=0;for(this.asyncStream_=new pl,this.asyncStream_.push(this.decryptChunk_(o.subarray(s,s+r),e,n,a)),s=r;s<o.length;s+=r)n=new Uint32Array([ml(o[s-4]),ml(o[s-3]),ml(o[s-2]),ml(o[s-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(s,s+r),e,n,a));this.asyncStream_.push((function(){i(null,function(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}(a))}))}function bl(e,n){return/^[a-z]+:/i.test(n)?n:(/\/\//i.test(e)||(e=no.buildAbsoluteURL(t.location.href,e)),no.buildAbsoluteURL(e,n))}function _l(t,e,n){return t&&n.responseURL&&e!==n.responseURL?n.responseURL:e}function wl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Tl=function(t,e,n){return e&&Sl(t.prototype,e),n&&Sl(t,n),t};function Sl(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Cl(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+l(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function kl(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=l(e)&&"function"!=typeof e?t:e}function xl(t,e){["AUDIO","SUBTITLES"].forEach((function(n){for(var i in t.mediaGroups[n])for(var r in t.mediaGroups[n][i]){var o=t.mediaGroups[n][i][r];e(o,n,i,r)}}))}function El(t,e){var n=Dl(t,{}),i=n.playlists[e.id];if(!i)return null;if(i.segments&&e.segments&&i.segments.length===e.segments.length&&i.endList===e.endList&&i.mediaSequence===e.mediaSequence)return null;var r=Dl(i,e);i.segments&&(r.segments=function(t,e,n){var i=e.slice();n=n||0;for(var r=Math.min(t.length,e.length+n),o=n;o<r;o++)i[o-n]=Dl(t[o],i[o-n]);return i}(i.segments,e.segments,e.mediaSequence-i.mediaSequence)),r.segments.forEach((function(t){!function(t,e){t.resolvedUri||(t.resolvedUri=bl(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=bl(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=bl(e,t.map.uri))}(t,r.resolvedUri)}));for(var o=0;o<n.playlists.length;o++)n.playlists[o].id===e.id&&(n.playlists[o]=r);return n.playlists[e.id]=r,n.playlists[e.uri]=r,n}function $l(t,e){return t+"-"+e}function Il(t){for(var e=t.playlists.length;e--;){var n=t.playlists[e];n.resolvedUri=bl(t.uri,n.uri),n.id=$l(e,n.uri),t.playlists[n.id]=n,(t.playlists[n.uri]=n).attributes||(n.attributes={},Ll.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}}function Ol(t){xl(t,(function(e){e.uri&&(e.resolvedUri=bl(t.uri,e.uri))}))}function Al(t,e){var n=t.segments[t.segments.length-1];return e&&n&&n.duration?1e3*n.duration:500*(t.targetDuration||10)}var Pl=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Dl=Zr.mergeOptions,Ll=Zr.log,Ml=(Cl(Nl,Zr.EventTarget),Tl(Nl,[{key:"playlistRequestError",value:function(t,e,n){var i=e.uri,r=e.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:t.status,message:"HLS playlist request error at URL: "+i+".",responseText:t.responseText,code:500<=t.status?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(e,n,i){var r=this;this.request=null,this.state="HAVE_METADATA";var o=new co;this.customTagParsers.forEach((function(t){return o.addParser(t)})),this.customTagMappers.forEach((function(t){return o.addTagMapper(t)})),o.push(e.responseText),o.end(),o.manifest.uri=n,o.manifest.id=i,o.manifest.attributes=o.manifest.attributes||{};var a=El(this.master,o.manifest);this.targetDuration=o.manifest.targetDuration,a?(this.master=a,this.media_=this.master.playlists[i]):this.trigger("playlistunchanged"),this.media().endList||(t.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=t.setTimeout((function(){r.trigger("mediaupdatetimeout")}),Al(this.media(),!!a))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),t.clearTimeout(this.mediaUpdateTimeout),t.clearTimeout(this.finalRenditionTimeout),this.off()}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"media",value:function(e,n){var i=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(t.clearTimeout(this.finalRenditionTimeout),n){var r=e.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=t.setTimeout(this.media.bind(this,e,!1),r)}else{var o=this.state,a=!this.media_||e.id!==this.media_.id;if(this.master.playlists[e.id].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,n){if(i.request){if(e.resolvedUri=_l(i.handleManifestRedirects,e.resolvedUri,n),t)return i.playlistRequestError(i.request,e,o);i.haveMetadata(n,e.uri,e.id),"HAVE_MASTER"===o?i.trigger("loadedmetadata"):i.trigger("mediachange")}}))}}}},{key:"pause",value:function(){this.stopRequest(),t.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var n=this;t.clearTimeout(this.mediaUpdateTimeout);var i=this.media();if(e){var r=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=t.setTimeout((function(){return n.load()}),r)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var e=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials}
2,(function(n,i){if(e.request){if(e.request=null,n)return e.error={status:i.status,message:"HLS playlist request error at URL: "+e.srcUrl+".",responseText:i.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");var r=new co;if(e.customTagParsers.forEach((function(t){return r.addParser(t)})),e.customTagMappers.forEach((function(t){return r.addTagMapper(t)})),r.push(i.responseText),r.end(),e.state="HAVE_MASTER",e.srcUrl=_l(e.handleManifestRedirects,e.srcUrl,i),r.manifest.uri=e.srcUrl,r.manifest.playlists)return e.master=r.manifest,Il(e.master),Ol(e.master),e.trigger("loadedplaylist"),void(e.request||e.media(r.manifest.playlists[0]));var o=$l(0,e.srcUrl);return e.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:t.location.href,playlists:[{uri:e.srcUrl,id:o,resolvedUri:e.srcUrl,attributes:{}}]},e.master.playlists[o]=e.master.playlists[0],e.master.playlists[e.srcUrl]=e.master.playlists[0],e.haveMetadata(i,e.srcUrl,o),e.trigger("loadedmetadata")}}))}}]),Nl);function Nl(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};wl(this,Nl);var i=kl(this,(Nl.__proto__||Object.getPrototypeOf(Nl)).call(this)),r=n.withCredentials,o=void 0!==r&&r,a=n.handleManifestRedirects,s=void 0!==a&&a;i.srcUrl=t,i.hls_=e,i.withCredentials=o,i.handleManifestRedirects=s;var l=e.options_;if(i.customTagParsers=l&&l.customTagParsers||[],i.customTagMappers=l&&l.customTagMappers||[],!i.srcUrl)throw new Error("A non-empty playlist URL is required");return i.state="HAVE_NOTHING",i.on("mediaupdatetimeout",(function(){"HAVE_METADATA"===i.state&&(i.state="HAVE_CURRENT_METADATA",i.request=i.hls_.xhr({uri:bl(i.master.uri,i.media().uri),withCredentials:i.withCredentials},(function(t,e){if(i.request)return t?i.playlistRequestError(i.request,i.media(),"HAVE_METADATA"):void i.haveMetadata(i.request,i.media().uri,i.media().id)})))})),i}function jl(t,e,n){var i,r;return void 0===e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence?0:(i=function(t,e){var n=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=t.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=r.duration,void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(t,e)).precise?i.result:(r=function(t,e){for(var n=0,i=void 0,r=e-t.mediaSequence;r<t.segments.length;r++){if(void 0!==(i=t.segments[r]).start)return{result:i.start-n,precise:!0};if(n+=i.duration,void 0!==i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}}(t,e)).precise?r.result:i.result+n}function Ul(e,n,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===n){if(e.totalDuration)return e.totalDuration;if(!e.endList)return t.Infinity}return jl(e,n,i)}function Rl(t,e,n){var i=0;if(n<e){var r=[n,e];e=r[0],n=r[1]}if(e<0){for(var o=e;o<Math.min(0,n);o++)i+=t.targetDuration;e=0}for(var a=e;a<n;a++)i+=t.segments[a].duration;return i}function Bl(t,e){if(!t.segments.length)return 0;var n=t.segments.length,i=t.segments[n-1].duration||t.targetDuration,r="number"==typeof e?e:i+2*t.targetDuration;if(0===r)return n;for(var o=0;n--&&!(r<=(o+=t.segments[n].duration)););return Math.max(0,n)}function Fl(t,e,n,i){if(!t||!t.segments)return null;if(t.endList)return Ul(t);if(null===e)return null;e=e||0;var r=n?Bl(t,i):t.segments.length;return jl(t,t.mediaSequence+r,e)}function zl(t){return t-Math.floor(t)==0}function Hl(t,e){if(zl(e))return e+.1*t;for(var n=e.toString().split(".")[1].length,i=1;i<=n;i++){var r=Math.pow(10,i),o=e*r;if(zl(o)||i===n)return(o+t)/r}}function ql(t){return t.excludeUntil&&t.excludeUntil>Date.now()}function Vl(t){return t.excludeUntil&&t.excludeUntil===1/0}function Wl(t){var e=ql(t);return!t.disabled&&!e}function Gl(t,e){return e.attributes&&e.attributes[t]}function Xl(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter((function(t){return!!Wl(t)&&(t.attributes.BANDWIDTH||0)<n})).length}function Yl(){return function t(e,n){e=gc({timeout:45e3},e);var i=t.beforeRequest||Zr.Hls.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(e);r&&(e=r)}var o=mc(e,(function(t,e){var i=o.response;!t&&i&&(o.responseTime=Date.now(),o.roundTripTime=o.responseTime-o.requestTime,o.bytesReceived=i.byteLength||i.length,o.bandwidth||(o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3))),e.headers&&(o.responseHeaders=e.headers),t&&"ETIMEDOUT"===t.code&&(o.timedout=!0),t||o.aborted||200===e.statusCode||206===e.statusCode||0===e.statusCode||(t=new Error("XHR Failed with a response of: "+(o&&(i||o.responseText)))),n(t,o)})),a=o.abort;return o.abort=function(){return o.aborted=!0,a.apply(o,arguments)}
vendor: 16,266 bytes, line 2
2,o.uri=e.uri,o.requestTime=Date.now(),o}}function Kl(t){var e={};return t.byterange&&(e.Range=function(t){var e;return e=t.offset+t.length-1,"bytes="+t.offset+"-"+e}(t.byterange)),e}function Ql(t,e){var n=t.toString(16);return"00".substring(0,2-n.length)+n+(e%2?" ":"")}function Jl(t){return 32<=t&&t<126?String.fromCharCode(t):"."}function Zl(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i})),e}function tc(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")}function ec(t){return t.resolvedUri}function nc(t){for(var e=Array.prototype.slice.call(t),n="",i=0;i<e.length/16;i++)n+=e.slice(16*i,16*i+16).map(Ql).join("")+" "+e.slice(16*i,16*i+16).map(Jl).join("")+"\n";return n}function ic(t){var e=t.programTime,n=t.playlist,i=t.retryCount,r=void 0===i?2:i,o=t.seekTo,a=t.pauseAfterSeek,s=void 0===a||a,l=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!n||!o)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!l.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!function(t){if(!t.segments||0===t.segments.length)return!1;for(var e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0}(n))return c({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var u=function(t,e){var n=void 0;try{n=new Date(t)}catch(t){return null}if(!e||!e.segments||0===e.segments.length)return null;var i=e.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<e.segments.length-1&&(i=e.segments[r],!(n<e.segments[r+1].dateTimeObject));r++);var o=e.segments[e.segments.length-1],a=o.dateTimeObject,s=o.videoTimingInfo?function(t){return t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds}(o.videoTimingInfo):o.duration+.25*o.duration;return new Date(a.getTime()+1e3*s)<n?null:(a<n&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:fc.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(e,n);if(!u)return c({message:e+" was not found in the stream"});var d=u.segment,h=function(t,e){var n=void 0,i=void 0;try{n=new Date(t),i=new Date(e)}catch(t){}var r=n.getTime();return(i.getTime()-r)/1e3}(d.dateTimeObject,e);if("estimate"===u.type)return 0===r?c({message:e+" is not buffered yet. Try again"}):(o(u.estimatedStart+h),void l.one("seeked",(function(){ic({programTime:e,playlist:n,retryCount:r-1,seekTo:o,pauseAfterSeek:s,tech:l,callback:c})})));var p=d.start+h;l.one("seeked",(function(){return c(null,l.currentTime())})),s&&l.pause(),o(p)}function rc(t,e){var n=[],i=void 0;if(t&&t.length)for(i=0;i<t.length;i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return Zr.createTimeRanges(n)}function oc(t,e){return rc(t,(function(t,n){return t-.1<=e&&e<=n+.1}))}function ac(t,e){return rc(t,(function(t){return e<=t-1/30}))}function sc(t){var e=[];if(!t||!t.length)return"";for(var n=0;n<t.length;n++)e.push(t.start(n)+" => "+t.end(n));return e.join(", ")}function lc(t){for(var e=[],n=0;n<t.length;n++)e.push({start:t.start(n),end:t.end(n)});return e}function cc(t,e,n){var i=void 0,r=void 0;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime<=e&&r.endTime>=t&&n.removeCue(r)}function uc(t){return isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}var dc=Zr.createTimeRange,hc=Hl.bind(null,1),pc=Hl.bind(null,-1),fc={duration:Ul,seekable:function(t,e,n){var i=e||0,r=Fl(t,e,!0,n);return null===r?dc():dc(i,r)},safeLiveIndex:Bl,getMediaInfoForTime:function(t,e,n,i){var r=void 0,o=void 0,a=t.segments.length,s=e-i;if(s<0){if(0<n)for(r=n-1;0<=r;r--)if(o=t.segments[r],0<(s+=pc(o.duration)))return{mediaIndex:r,startTime:i-Rl(t,n,r)};return{mediaIndex:0,startTime:e}}if(n<0){for(r=n;r<0;r++)if((s-=t.targetDuration)<0)return{mediaIndex:0,startTime:e};n=0}for(r=n;r<a;r++)if(o=t.segments[r],(s-=hc(o.duration))<0)return{mediaIndex:r,startTime:i+Rl(t,n,r)};return{mediaIndex:a-1,startTime:e}},isEnabled:Wl,isDisabled:function(t){return t.disabled},isBlacklisted:ql,isIncompatible:Vl,playlistEnd:Fl,isAes:function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},isFmp4:function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].map)return!0;return!1},hasAttribute:Gl,estimateSegmentRequestTime:function(t,e,n,i){var r=3<arguments.length&&void 0!==i?i:0;return Gl("BANDWIDTH",n)?(t*n.attributes.BANDWIDTH-8*r)/e:NaN},isLowestEnabledRendition:Xl},mc=Zr.xhr,gc=Zr.mergeOptions,vc=Object.freeze({createTransferableMessage:Zl,initSegmentId:tc,segmentKeyId:ec,hexDump:nc,tagDump:function(t){return nc(t.bytes)},textRanges:function(t){var e,n,i="",r=void 0;for(r=0;r<t.length;r++)i+=(n=r,(e=t).start(n)+"-"+e.end(n)+" ");return i}}),yc="undefined"!=typeof window?window:{},bc="undefined"==typeof Symbol?"__target":Symbol(),_c="application/javascript",wc=yc.BlobBuilder||yc.WebKitBlobBuilder||yc.MozBlobBuilder||yc.MSBlobBuilder,Tc=yc.URL||yc.webkitURL||Tc&&Tc.msURL,Sc=yc.Worker;function Cc(t,e){return function(n){var i=this;if(!e)return new Sc(t);if(Sc&&!n){var r=$c(e.toString().replace(/^function.+?{/,"").slice(0,-1));return this[bc]=new Sc(r),function(t,e){if(t&&e){var n=t.terminate;t.objURL=e,t.terminate=function(){t.objURL&&Tc.revokeObjectURL(t.objURL),n.call(t)}}}(this[bc],r),this[bc]}var o={postMessage:function(t){i.onmessage&&setTimeout((function(){i.onmessage({data:t,target:o})}))}};e.call(o),this.postMessage=function(t){setTimeout((function(){o.onmessage({data:t,target:i})}))},this.isThisThread=!0}}if(Sc){var kc,xc=$c("self.onmessage = function () {}"),Ec=new Uint8Array(1);try{(kc=new Sc(xc)).postMessage(Ec,[Ec.buffer])}catch(t){Sc=null}finally{Tc.revokeObjectURL(xc),kc&&kc.terminate()}}function $c(t){try{return Tc.createObjectURL(new Blob([t],{type:_c}))}catch(n){var e=new wc;return e.append(t),Tc.createObjectURL(e.getBlob(type))}}function Ic(t){return t.map((function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,n){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}))}))}function Oc(t){var e,n=0<arguments.length&&void 0!==t?t:"",i={codecCount:0};return i.codecCount=n.split(",").length,i.codecCount=i.codecCount||2,(e=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(n))&&(i.videoCodec=e[2],i.videoObjectTypeIndicator=e[3]),i.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(n),i.audioProfile=i.audioProfile&&i.audioProfile[2],i}function Ac(t,e,n){return t+"/"+e+'; codecs="'+n.filter((function(t){return!!t})).join(", ")+'"'}function Pc(t){var e={type:"",parameters:{}},n=t.trim().split(";");return e.type=n.shift().trim(),n.forEach((function(t){var n=t.trim().split("=");if(1<n.length){var i=n[0].replace(/"/g,"").trim(),r=n[1].replace(/"/g,"").trim();e.parameters[i]=r}})),e}function Dc(t){return/mp4a\.\d+.\d+/i.test(t)}function Lc(t){return/avc1\.[\da-f]+/i.test(t)}var Mc=new Cc("./transmuxer-worker.worker.js",(function(t,e){var n=this;!function(){function t(){this.init=function(){var t={};this.on=function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},this.off=function(e,n){var i;return!!t[e]&&(i=t[e].indexOf(n),t[e]=t[e].slice(),t[e].splice(i,1),-1<i)},this.trigger=function(e){var n,i,r,o;if(n=t[e])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(o=[],i=arguments.length,i=1;i<arguments.length;++i)o.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,o)}},this.dispose=function(){t={}}}}t.prototype.pipe=function(t){return this.on("data",(function(e){t.push(e)})),this.on("done",(function(e){t.flush(e)})),this.on("partialdone",(function(e){t.partialFlush(e)})),this.on("endedtimeline",(function(e){t.endTimeline(e)})),this.on("reset",(function(e){t.reset(e)})),t},t.prototype.push=function(t){this.trigger("data",t)},t.prototype.flush=function(t){this.trigger("done",t)},t.prototype.partialFlush=function(t){this.trigger("partialdone",t)},t.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},t.prototype.reset=function(t){this.trigger("reset",t)};var e,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b,_,w,T,S,C,k,x,E,$,I,O,A,P,D,L,M,N,j,U,R,B,F,z=t,H=Math.pow(2,32)-1;function q(t,e){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=e,n.compositionTimeOffset=t.pts-t.dts,n.duration=t.duration,n.size=4*t.length,n.size+=t.byteLength,t.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n}function V(t){for(var e=[];t--;)e.push(0);return e}function W(){W.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new ft(0,0),new ft(0,1),new ft(1,0),new ft(1,1)],this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.on("done",this.trigger.bind(this,"done"))}),this)}!function(){var t;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in S)S.hasOwnProperty(t)&&(S[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),k=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),$=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),I={video:E,audio:$},P=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),A=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),L=D,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=D,O=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),e=function(t){var e,n,i=[],r=0;for(e=1;e<arguments.length;e++)i.push(arguments[e]);for(e=i.length;e--;)r+=i[e].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(t,4),e=0,r=8;e<i.length;e++)n.set(i[e],r),r+=i[e].byteLength;return n},i=function(){return e(S.dinf,e(S.dref,P))},r=function(t){return e(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},g=function(t){return e(S.hdlr,I[t])},m=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),e(S.mdhd,n)},f=function(t){return e(S.mdia,m(t),g(t.type),s(t))},a=function(t){return e(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},s=function(t){return e(S.minf,"video"===t.type?e(S.vmhd,O):e(S.smhd,A),i(),y(t))},l=function(t,n){for(var i=[],r=n.length;r--;)i[r]=_(n[r]);return e.apply(null,[S.moof,a(t)].concat(i))},c=function(t){for(var n=t.length,i=[];n--;)i[n]=h(t[n]);return e.apply(null,[S.moov,d(4294967295)].concat(i).concat(u(t)))},u=function(t){for(var n=t.length,i=[];n--;)i[n]=w(t[n]);return e.apply(null,[S.mvex].concat(i))},d=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(S.mvhd,n)},v=function(t){var n,i,r=t.samples||[],o=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,o[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e(S.sdtp,o)},y=function(t){return e(S.stbl,b(t),e(S.stts,N),e(S.stsc,L),e(S.stsz,M),e(S.stco,D))},b=function(t){return e(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?j(t):U(t))},j=function(t){var n,i,r=t.sps||[],o=t.pps||[],a=[],s=[];for(n=0;n<r.length;n++)a.push((65280&r[n].byteLength)>>>8),a.push(255&r[n].byteLength),a=a.concat(Array.prototype.slice.call(r[n]));for(n=0;n<o.length;n++)s.push((65280&o[n].byteLength)>>>8),s.push(255&o[n].byteLength),s=s.concat(Array.prototype.slice.call(o[n]));if(i=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(S.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],a,[o.length],s))),e(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio){var l=t.sarRatio[0],c=t.sarRatio[1];i.push(e(S.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return e.apply(null,i)},U=function(t){return e(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),r(t))},p=function(t){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return e(S.tkhd,n)},_=function(t){var n,i,r,o,a,s;return n=e(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(t.baseMediaDecodeTime/(1+H)),s=Math.floor(t.baseMediaDecodeTime%(1+H)),i=e(S.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),"audio"===t.type?(r=T(t,92),e(S.traf,n,i,r)):(o=v(t),r=T(t,o.length+92),e(S.traf,n,i,r,o))},h=function(t){return t.duration=t.duration||4294967295,e(S.trak,p(t),f(t))},w=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),e(S.trex,n)},F=function(t,e){var n=0,i=0,r=0,o=0;return t.length&&(void 0!==t[0].duration&&(n=1),void 0!==t[0].size&&(i=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(o=8)),[0,0,n|i|r|o,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},B=function(t,n){var i,r,o,a;for(n+=20+16*(r=t.samples||[]).length,i=F(r,n),a=0;a<r.length;a++)o=r[a],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return e(S.trun,new Uint8Array(i))},R=function(t,n){var i,r,o,a;for(n+=20+8*(r=t.samples||[]).length,i=F(r,n),a=0;a<r.length;a++)o=r[a],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return e(S.trun,new Uint8Array(i))},T=function(t,e){return"audio"===t.type?R(t,e):B(t,e)},o=function(){return e(S.ftyp,C,k,C,x)};var G,X,Y,K,Q,J=function(t){return e(S.mdat,t)},Z=l,tt=function(t){var e,n=o(),i=c(t);
2return(e=new Uint8Array(n.byteLength+i.byteLength)).set(n),e.set(i,n.byteLength),e},et=[33,16,5,32,164,27],nt=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],it={96e3:[et,[227,64],V(154),[56]],88200:[et,[231],V(170),[56]],64e3:[et,[248,192],V(240),[56]],48e3:[et,[255,192],V(268),[55,148,128],V(54),[112]],44100:[et,[255,192],V(268),[55,163,128],V(84),[112]],32e3:[et,[255,192],V(268),[55,234],V(226),[112]],24e3:[et,[255,192],V(268),[55,255,128],V(268),[111,112],V(126),[224]],16e3:[et,[255,192],V(268),[55,255,128],V(268),[111,255],V(269),[223,108],V(195),[1,192]],12e3:[nt,V(268),[3,127,248],V(268),[6,255,240],V(268),[13,255,224],V(268),[27,253,128],V(259),[56]],11025:[nt,V(268),[3,127,248],V(268),[6,255,240],V(268),[13,255,224],V(268),[27,255,192],V(268),[55,175,128],V(108),[112]],8e3:[nt,V(268),[3,121,16],V(47),[7]]},rt=(G=it,Object.keys(G).reduce((function(t,e){return t[e]=new Uint8Array(G[e].reduce((function(t,e){return t.concat(e)}),[])),t}),{})),ot=(X=function(t){return 9e4*t},Y=function(t,e){return t*e},K=function(t){return t/9e4},Q=function(t,e){return t/e},function(t,e){return X(Q(t,e))}),at=function(t,e,n){return K(n?t:t-e)},st=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},lt=function(t,e){var n,i=t.minSegmentDts;return e||(i-=t.timelineStartInfo.dts),n=t.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===t.type&&(n*=t.samplerate/9e4,n=Math.floor(n)),n},ct=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))};function ut(t){return null===t?"":(t=ht[t]||t,String.fromCharCode(t))}function dt(){for(var t=[],e=15;e--;)t.push("");return t}(W.prototype=new z).push=function(t){var e,n,i;if("sei_rbsp"===t.nalUnitType&&4===(e=function(t){for(var e=0,n={payloadType:-1,payloadSize:0},i=0,r=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)i+=255,e++;for(i+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!n.payload&&4===i){n.payloadType=i,n.payloadSize=r,n.payload=t.subarray(e,e+r);break}e+=r,r=i=0}return n}(t.escapedRBSP)).payloadType&&(n=function(t){return 181!==t.payload[0]||49!=(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)}(e)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=function(t,e){var n,i,r,o,a=[];if(!(64&e[0]))return a;for(i=31&e[0],n=0;n<i;n++)o={type:3&e[2+(r=3*n)],pts:t},4&e[2+r]&&(o.ccData=e[3+r]<<8|e[4+r],a.push(o));return a}(t.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},W.prototype.flushCCStreams=function(t){this.ccStreams_.forEach((function(e){return"flush"===t?e.flush():e.partialFlush()}),this)},W.prototype.flushStream=function(t){this.captionPackets_.length&&(this.captionPackets_.forEach((function(t,e){t.presortIndex=e})),this.captionPackets_.sort((function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts})),this.captionPackets_.forEach((function(t){t.type<2&&this.dispatchCea608Packet(t)}),this),this.captionPackets_.length=0),this.flushCCStreams(t)},W.prototype.flush=function(){return this.flushStream("flush")},W.prototype.partialFlush=function(){return this.flushStream("partialFlush")},W.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},W.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},W.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},W.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)},W.prototype.setsTextOrXDSActive=function(t){return 256==(28928&t.ccData)||4138==(30974&t.ccData)||6186==(30974&t.ccData)};var ht={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},pt=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ft=function t(e,n){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,n,i,r,o;
vendor: 31,406 bytes, line 2
2if((e=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),i=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=dt();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=dt();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=dt()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(i,r))o=ut((i=(3&i)<<8)|r),this[this.mode_](t.pts,o),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=ut((i=(3&i)<<8)|r),this[this.mode_](t.pts,o),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&r)&&this.addFormatting(t.pts,["i"]),1==(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var a=pt.indexOf(7968&e);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(t.pts,a)),a!==this.row_&&(this.clearFormatting(t.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),o=ut(i),o+=ut(r),this[this.mode_](t.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};function mt(t,e){var n=1;for(e<t&&(n=-1);4294967296<Math.abs(e-t);)t+=8589934592*n;return t}function gt(t){var e,n;gt.prototype.init.call(this),this.type_=t||"shared",this.push=function(t){"shared"!==this.type_&&t.type!==this.type_||(void 0===n&&(n=t.dts),t.dts=mt(t.dts,n),t.pts=mt(t.pts,n),e=t.dts,this.trigger("data",t))},this.flush=function(){n=e,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){e=n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}}ft.prototype=new z,ft.prototype.flushDisplayed=function(t){var e=this.displayed_.map((function(t){try{return t.trim()}catch(t){return""}})).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},ft.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=dt(),this.nonDisplayed_=dt(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},ft.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},ft.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&48<=e&&e<=63},ft.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&32<=e&&e<=63},ft.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&32<=e&&e<=47},ft.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&33<=e&&e<=35},ft.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&64<=e&&e<=127},ft.prototype.isColorPAC=function(t){return 64<=t&&t<=79||96<=t&&t<=127},ft.prototype.isNormalChar=function(t){return 32<=t&&t<=127},ft.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=dt(),this.displayed_=dt()),void 0!==e&&e!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[e-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},ft.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var n=e.reduce((function(t,e){return t+"<"+e+">"}),"");this[this.mode_](t,n)},ft.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce((function(t,e){return t+"</"+e+">"}),"");this.formatting_=[],this[this.mode_](t,e)}},ft.prototype.popOn=function(t,e){var n=this.nonDisplayed_[this.row_];n+=e,this.nonDisplayed_[this.row_]=n},ft.prototype.rollUp=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n},ft.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<15;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},ft.prototype.paintOn=function(t,e){var n=this.displayed_[this.row_];n+=e,this.displayed_[this.row_]=n};var vt={CaptionStream:W,Cea608Stream:ft},yt={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};function bt(t,e,n){var i,r="";for(i=e;i<n;i++)r+="%"+("00"+t[i].toString(16)).slice(-2);return r}function _t(t,e,n){return decodeURIComponent(bt(t,e,n))}function wt(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]}gt.prototype=new z;var Tt,St=gt,Ct={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=_t(t.data,1,e),t.value=_t(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=_t(t.data,1,e),t.url=_t(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,n;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=(n=t.data,unescape(bt(n,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(Tt=function(t){var e,n={debug:!(!t||!t.debug),descriptor:t&&t.descriptor},i=0,r=[],o=0;if(Tt.prototype.init.call(this),this.dispatchType=yt.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(e=0;e<n.descriptor.length;e++)this.dispatchType+=("00"+n.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,a,s,l,c;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(o=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))n.debug;else if(r.push(t),o+=t.data.byteLength,1===r.length&&(i=wt(t.data.subarray(6,10)),i+=10),!(o<i)){for(e={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},c=0;c<i;)e.data.set(r[0].data.subarray(0,i-c),c),c+=r[0].data.byteLength,o-=r[0].data.byteLength,r.shift();a=10,64&e.data[5]&&(a+=4,a+=wt(e.data.subarray(10,14)),i-=wt(e.data.subarray(16,20)));do{if((s=wt(e.data.subarray(a+4,a+8)))<1)return;if((l={id:String.fromCharCode(e.data[a],e.data[a+1],e.data[a+2],e.data[a+3]),data:e.data.subarray(a+10,a+s+10)}).key=l.id,Ct[l.id]&&(Ct[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var u=l.data,d=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;d*=4,d+=3&u[7],l.timeStamp=d,void 0===e.pts&&void 0===e.dts&&(e.pts=l.timeStamp,e.dts=l.timeStamp),this.trigger("timestamp",l)}e.frames.push(l),a+=10,a+=s}while(a<i);this.trigger("data",e)}}}).prototype=new z;var kt,xt,Et,$t=Tt,It=St;(kt=function(){var t=new Uint8Array(188),e=0;kt.prototype.init.call(this),this.push=function(n){var i,r=0,o=188;for(e?((i=new Uint8Array(n.byteLength+e)).set(t.subarray(0,e)),i.set(n,e),e=0):i=n;o<i.byteLength;)71!==i[r]||71!==i[o]?(r++,o++):(this.trigger("data",i.subarray(r,o)),r+=188,o+=188);r<i.byteLength&&(t.set(i.subarray(r),0),e=i.byteLength-r)},this.flush=function(){188===e&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){e=0,this.trigger("reset")}}).prototype=new z,(xt=function(){var t,e,n,i;xt.prototype.init.call(this),(i=this).packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,i){var r=0;i.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===i.type?e(t.subarray(r),i):n(t.subarray(r),i)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],i.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=i.pmtPid},n=function(t,e){var n,r;if(1&t[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&t[1])<<8|t[2])-4,r=12+((15&t[10])<<8|t[11]);r<n;){var o=t[r],a=(31&t[r+1])<<8|t[r+2];o===yt.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=a:o===yt.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=a:o===yt.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][a]=o),r+=5+((15&t[r+3])<<8|t[r+4])}e.programMapTable=i.programMapTable}},this.push=function(e){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&e[1]),n.pid=31&e[1],n.pid<<=8,n.pid|=e[2],1<(48&e[3])>>>4&&(i+=e[i]+1),0===n.pid)n.type="pat",t(e.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",t(e.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,n]):this.processPes_(e,i,n)},this.processPes_=function(t,e,n){n.pid===this.programMapTable.video?n.streamType=yt.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=yt.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=t.subarray(e),this.trigger("data",n)}}).prototype=new z,xt.STREAM_TYPES={h264:27,adts:15},(Et=function(){function t(t,e,i){var r,o,a=new Uint8Array(t.size),s={type:e},l=0,c=0;if(t.data.length&&!(t.size<9)){for(s.trackId=t.data[0].pid,l=0;l<t.data.length;l++)o=t.data[l],a.set(o.data,c),c+=o.data.byteLength;!function(t,e){var n;e.packetLength=6+(t[4]<<8|t[5]),e.dataAlignmentIndicator=0!=(4&t[6]),192&(n=t[7])&&(e.pts=(14&t[9])<<27|(255&t[10])<<20|(254&t[11])<<12|(255&t[12])<<5|(254&t[13])>>>3,e.pts*=4,e.pts+=(6&t[13])>>>1,e.dts=e.pts,64&n&&(e.dts=(14&t[14])<<27|(255&t[15])<<20|(254&t[16])<<12|(255&t[17])<<5|(254&t[18])>>>3,e.dts*=4,e.dts+=(6&t[18])>>>1)),e.data=t.subarray(9+t[8])}(a,s),r="video"===e||s.packetLength<=t.size,(i||r)&&(t.size=0,t.data.length=0),r&&n.trigger("data",s)}}var e,n=this,i={data:[],size:0},r={data:[],size:0},o={data:[],size:0};Et.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,n;switch(a.streamType){case yt.H264_STREAM_TYPE:case yt.H264_STREAM_TYPE:e=i,n="video";break;case yt.ADTS_STREAM_TYPE:e=r,n="audio";break;case yt.METADATA_STREAM_TYPE:e=o,n="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&t(e,n,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var t={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n.trigger("data",t)}})[a.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){t(i,"video"),t(r,"audio"),t(o,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}}).prototype=new z;var Ot={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:kt,TransportParseStream:xt,ElementaryStream:Et,TimestampRolloverStream:It,CaptionStream:vt.CaptionStream,Cea608Stream:vt.Cea608Stream,MetadataStream:$t};for(var At in yt)yt.hasOwnProperty(At)&&(Ot[At]=yt[At]);var Pt,Dt=Ot,Lt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(Pt=function(t){var e,n=0;Pt.prototype.init.call(this),this.push=function(i){var r,o,a,s,l,c,u=0;if(t||(n=0),"audio"===i.type)for(e?(s=e,(e=new Uint8Array(s.byteLength+i.data.byteLength)).set(s),e.set(i.data,s.byteLength)):e=i.data;u+5<e.length;)if(255===e[u]&&240==(246&e[u+1])){if(o=2*(1&~e[u+1]),r=(3&e[u+3])<<11|e[u+4]<<3|(224&e[u+5])>>5,c=9e4*(l=1024*(1+(3&e[u+6])))/Lt[(60&e[u+2])>>>2],a=u+r,e.byteLength<a)return;if(this.trigger("data",{pts:i.pts+n*c,dts:i.dts+n*c,sampleCount:l,audioobjecttype:1+(e[u+2]>>>6&3),channelcount:(1&e[u+2])<<2|(192&e[u+3])>>>6,samplerate:Lt[(60&e[u+2])>>>2],samplingfrequencyindex:(60&e[u+2])>>>2,samplesize:16,data:e.subarray(u+7+o,a)}),n++,e.byteLength===a)return void(e=void 0);e=e.subarray(a)}else u++},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){e=void 0,this.trigger("reset")},this.endTimeline=function(){e=void 0,this.trigger("endedtimeline")}}).prototype=new z;var Mt,Nt,jt,Ut=Pt,Rt=function(t){var e=t.byteLength,n=0,i=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+i},this.loadWord=function(){var r=t.byteLength-e,o=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error("no bytes available");o.set(t.subarray(r,r+a)),n=new DataView(o.buffer).getUint32(0),i=8*a,e-=a},this.skipBits=function(t){var r;t<i||(t-=i,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord()),n<<=t,i-=t},this.readBits=function(t){var r=Math.min(i,t),o=n>>>32-r;return 0<(i-=r)?n<<=r:0<e&&this.loadWord(),0<(r=t-r)?o<<r|this.readBits(r):o},this.skipLeadingZeros=function(){var t;for(t=0;t<i;++t)if(0!=(n&2147483648>>>t))return n<<=t,i-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(Nt=function(){var t,e,n=0;Nt.prototype.init.call(this),this.push=function(i){for(var r,o=(e=e?((r=new Uint8Array(e.byteLength+i.data.byteLength)).set(e),r.set(i.data,e.byteLength),r):i.data).byteLength;n<o-3;n++)if(1===e[n+2]){t=n+5;break}for(;t<o;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}for(n+3!==t-2&&this.trigger("data",e.subarray(n+3,t-2));1!==e[++t]&&t<o;);n=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(n+3,t-2)),n=t-2,t+=3;break;default:t+=3}e=e.subarray(n),t-=n,n=0},this.reset=function(){e=null,n=0,this.trigger("reset")},this.flush=function(){e&&3<e.byteLength&&this.trigger("data",e.subarray(n+3)),e=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new z,jt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(Mt=function(){var t,e,n,i,r,o,a,s=new Nt;Mt.prototype.init.call(this),(t=this).push=function(t){"video"===t.type&&(e=t.trackId,n=t.pts,i=t.dts,s.push(t))},s.on("data",(function(a){var s={trackId:e,pts:n,dts:i,data:a};switch(31&a[0]){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(a.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(a.subarray(1)),s.config=o(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",s)})),s.on("done",(function(){t.trigger("done")})),s.on("partialdone",(function(){t.trigger("partialdone")})),s.on("reset",(function(){t.trigger("reset")})),s.on("endedtimeline",(function(){t.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},a=function(t,e){var n,i=8,r=8;for(n=0;n<t;n++)0!==r&&(r=(i+e.readExpGolomb()+256)%256),i=0===r?i:r},r=function(t){for(var e,n,i=t.byteLength,r=[],o=1;o<i-2;)0===t[o]&&0===t[o+1]&&3===t[o+2]?(r.push(o+2),o+=2):o++;if(0===r.length)return t;e=i-r.length,n=new Uint8Array(e);var a=0;for(o=0;o<e;a++,o++)a===r[0]&&(a++,r.shift()),n[o]=t[a];return n},o=function(t){var e,n,i,r,o,s,l,c,u,d,h,p,f,m=0,g=0,v=0,y=0,b=1;if(n=(e=new Rt(t)).readUnsignedByte(),r=e.readUnsignedByte(),i=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),jt[n]&&(3===(o=e.readUnsignedExpGolomb())&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(h=3!==o?8:12,f=0;f<h;f++)e.readBoolean()&&a(f<6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(s=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===s)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),l=e.readUnsignedExpGolomb(),f=0;f<l;f++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),c=e.readUnsignedExpGolomb(),u=e.readUnsignedExpGolomb(),0===(d=e.readBits(1))&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(m=e.readUnsignedExpGolomb(),g=e.readUnsignedExpGolomb(),v=e.readUnsignedExpGolomb(),y=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(e.readUnsignedByte()){case 1:p=[1,1];break;case 2:p=[12,11];break;case 3:p=[10,11];break;case 4:p=[16,11];break;case 5:p=[40,33];break;case 6:p=[24,11];break;case 7:p=[20,11];break;case 8:p=[32,11];break;case 9:p=[80,33];break;case 10:p=[18,11];break;case 11:p=[15,11];break;case 12:p=[64,33];break;case 13:p=[160,99];break;case 14:p=[4,3];break;case 15:p=[3,2];break;case 16:p=[2,1];break;case 255:p=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()]}p&&(b=p[0]/p[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:Math.ceil((16*(c+1)-2*m-2*g)*b),height:(2-d)*(u+1)*16-2*v-2*y,sarRatio:p}}}).prototype=new z;var Bt,Ft={H264Stream:Mt,NalByteStream:Nt},zt=function(t,e){var n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?20+n:10+n},Ht=function(t,e){var n=(224&t[e+5])>>5,i=t[e+4]<<3;return 6144&t[e+3]|i|n};function qt(t,e){var n;if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Vt(t,e,n,i,r,o){return{start:{dts:t,pts:t+(n-e)},end:{dts:t+(i-e),pts:t+(r-n)},prependedContentDuration:o,baseMediaDecodeTime:t}}(Bt=function(){var t=new Uint8Array,e=0;Bt.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(n){var i,r,o,a,s=0,l=0;for(t.length?(a=t.length,(t=new Uint8Array(n.byteLength+a)).set(t.subarray(0,a)),t.set(n,a)):t=n;3<=t.length-l;)if(t[l]!=="I".charCodeAt(0)||t[l+1]!=="D".charCodeAt(0)||t[l+2]!=="3".charCodeAt(0))if(255!=(255&t[l])||240!=(240&t[l+1]))l++;else{if(t.length-l<7)break;if(l+(s=Ht(t,l))>t.length)break;o={type:"audio",data:t.subarray(l,l+s),pts:e,dts:e},this.trigger("data",o),l+=s}else{if(t.length-l<10)break;if(l+(s=zt(t,l))>t.length)break;r={type:"timed-metadata",data:t.subarray(l,l+s)},this.trigger("data",r),l+=s}i=t.length-l,t=0<i?t.subarray(l):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new z;var Wt,Gt,Xt,Yt,Kt=Bt,Qt=Ft.H264Stream,Jt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Zt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"];(Gt=function(t,e){var n=[],i=0,r=0,o=0,a=1/0;e=e||{},Gt.prototype.init.call(this),this.push=function(e){ct(t,e),t&&Jt.forEach((function(n){t[n]=e[n]})),n.push(e)},this.setEarliestDts=function(e){r=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){a=t},this.setAudioAppendStart=function(t){o=t},this.flush=function(){var s,l,c,u,d;0!==n.length&&(s=function(t,e,n){return e.minSegmentDts>=n?t:(e.minSegmentDts=1/0,t.filter((function(t){return t.dts>=n&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)})))}(n,t,r),t.baseMediaDecodeTime=lt(t,e.keepOriginalTimestamps),function(t,e,n,i){var r,o,a,s,l,c=0,u=0,d=0;if(e.length&&(r=ot(t.baseMediaDecodeTime,t.samplerate),o=Math.ceil(9e4/(t.samplerate/1024)),n&&i&&(c=r-Math.max(n,i),d=(u=Math.floor(c/o))*o),!(u<1||45e3<d))){for(a=(a=rt[t.samplerate])||e[0].data,s=0;s<u;s++)l=e[0],e.splice(0,0,{data:a,dts:l.dts-o,pts:l.pts-o});t.baseMediaDecodeTime-=Math.floor(function(t,e){return Y(K(t),e)}(d,t.samplerate))}}(t,s,o,a),t.samples=function(t){var e,n,i=[];for(e=0;e<t.length;e++)n=t[e],i.push({size:n.data.byteLength,duration:1024});return i}(s),c=J(function(t){var e,n,i=0,r=new Uint8Array(function(t){var e,n=0;for(e=0;e<t.length;e++)n+=t[e].data.byteLength;return n}(t));for(e=0;e<t.length;e++)n=t[e],r.set(n.data,i),i+=n.data.byteLength;return r}(s)),n=[],l=Z(i,[t]),u=new Uint8Array(l.byteLength+c.byteLength),i++,u.set(l),u.set(c,l.byteLength),st(t),d=Math.ceil(9216e4/t.samplerate),s.length&&this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+s.length*d}),this.trigger("data",{track:t,boxes:u})),this.trigger("done","AudioSegmentStream")},this.reset=function(){st(t),n=[],this.trigger("reset")}}).prototype=new z,(Wt=function(t,e){var n,i,r=0,o=[],a=[];e=e||{},Wt.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){ct(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],Zt.forEach((function(e){t[e]=n[e]}),this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,t.pps=[e.data]),o.push(e)},this.flush=function(){for(var n,i,s,l,c,u,d,h,p=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=function(t){var e,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,e=i.byteLength=0;e<t.length;e++)"access_unit_delimiter_rbsp"===(n=t[e]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r}(o),(s=function(t){var e,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=t[0].pts,i.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e<t.length;e++)(n=t[e]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r}(n))[0][0].keyFrame||((i=this.getGopForFusion_(o[0],t))?(p=i.duration,s.unshift(i),s.byteLength+=i.byteLength,s.nalCount+=i.nalCount,s.pts=i.pts,s.dts=i.dts,s.duration+=i.duration):s=function(t){var e;return!t[0][0].keyFrame&&1<t.length&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t}(s)),a.length){var f;if(!(f=e.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s)))return this.gopCache_.unshift({gop:s.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");st(t),s=f}ct(t,s),t.samples=function(t,e){var n,i,r,o,a=0,s=[];for(n=0;n<t.length;n++)for(o=t[n],i=0;i<o.length;i++)a+=(r=q(o[i],a)).size,s.push(r);return s}(s),c=J(function(t){var e,n,i,r,o,a,s=0,l=t.byteLength,c=t.nalCount,u=new Uint8Array(l+4*c),d=new DataView(u.buffer);for(e=0;e<t.length;e++)for(r=t[e],n=0;n<r.length;n++)for(o=r[n],i=0;i<o.length;i++)a=o[i],d.setUint32(s,a.data.byteLength),s+=4,u.set(a.data,s),s+=a.data.byteLength;return u}(s)),t.baseMediaDecodeTime=lt(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}}))),d=s[0],h=s[s.length-1],this.trigger("segmentTimingInfo",Vt(t.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),l=Z(r,[t]),u=new Uint8Array(l.byteLength+c.byteLength),r++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:t,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){st(t),i=n=void 0},this.getGopForFusion_=function(e){var n,i,r,o,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)r=(o=this.gopCache_[a]).gop,t.pps&&qt(t.pps[0],o.pps[0])&&t.sps&&qt(t.sps[0],o.sps[0])&&(r.dts<t.timelineStartInfo.dts||-1e4<=(n=e.dts-r.dts-r.duration)&&n<=45e3&&(!i||n<s)&&(i=o,s=n));return i?i.gop:null},this.alignGopsAtStart_=function(t){var e,n,i,r,o,s,l,c;for(o=t.byteLength,s=t.nalCount,l=t.duration,e=n=0;e<a.length&&n<t.length&&(i=a[e],r=t[n],i.pts!==r.pts);)r.pts>i.pts?e++:(n++,o-=r.byteLength,s-=r.nalCount,l-=r.duration);return 0===n?t:n===t.length?null:((c=t.slice(n)).byteLength=o,c.duration=l,c.nalCount=s,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(t){var e,n,i,r,o,s,l;for(e=a.length-1,n=t.length-1,o=null,s=!1;0<=e&&0<=n;){if(i=a[e],r=t[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?e--:(e===a.length-1&&(o=n),n--)}if(!s&&null===o)return null;if(0===(l=s?n:o))return t;var c=t.slice(l),u=c.reduce((function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t}),{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(t){a=t}}).prototype=new z,(Yt=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==(t=t||{}).remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"==typeof t.keepOriginalTimestamps?this.keepOriginalTimestamps=t.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Yt.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track,this.pendingBoxes.push(t.boxes)),void("audio"===t.track.type&&(this.audioTrack=t.track,this.pendingBoxes.unshift(t.boxes))))}}).prototype=new z,Yt.prototype.flush=function(t){var e,n,i,r,o=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,Zt.forEach((function(t){a.info[t]=this.videoTrack[t]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Jt.forEach((function(t){a.info[t]=this.audioTrack[t]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,i=tt(this.pendingTracks),a.initSegment=new Uint8Array(i.byteLength),a.initSegment.set(i),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],o),o+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=at(e.startPts,s,this.keepOriginalTimestamps),e.endTime=at(e.endPts,s,this.keepOriginalTimestamps),a.captionStreams[e.stream]=!0,a.captions.push(e);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=at(n.pts,s,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),r=0;r<a.captions.length;r++)e=a.captions[r],this.trigger("caption",e);for(r=0;r<a.metadata.length;r++)n=a.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Yt.prototype.setRemux=function(t){this.remuxTracks=t},(Xt=function(t){var e,n,i=this,r=!0;Xt.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};(this.transmuxPipeline_=r).type="aac",r.metadataStream=new Dt.MetadataStream,r.aacStream=new Kt,r.audioTimestampRolloverStream=new Dt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Dt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Ut,r.coalesceStream=new Yt(t,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(t){r.aacStream.setTimestamp(t.timeStamp)})),r.aacStream.on("data",(function(o){"timed-metadata"!==o.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Gt(n,t),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};(this.transmuxPipeline_=r).type="ts",r.metadataStream=new Dt.MetadataStream,r.packetStream=new Dt.TransportPacketStream,r.parseStream=new Dt.TransportParseStream,r.elementaryStream=new Dt.ElementaryStream,r.timestampRolloverStream=new Dt.TimestampRolloverStream,r.adtsStream=new
2Ut,r.h264Stream=new Qt,r.captionStream=new Dt.CaptionStream,r.coalesceStream=new Yt(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(o){var a;if("metadata"===o.type){for(a=o.tracks.length;a--;)e||"video"!==o.tracks[a].type?n||"audio"!==o.tracks[a].type||((n=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(e=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;e&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Wt(e,t),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(t){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Gt(n,t),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!e})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(t){t.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",t)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,st(n),t.keepOriginalTimestamps||(n.timelineStartInfo.baseMediaDecodeTime=i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),e&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,st(e),r.captionStream.reset(),t.keepOriginalTimestamps||(e.timelineStartInfo.baseMediaDecodeTime=i)),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(e){var n=this.transmuxPipeline_;t.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(r){var e=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)}(t);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new z;var te={Transmuxer:Xt,VideoSegmentStream:Wt,AudioSegmentStream:Gt,AUDIO_PROPERTIES:Jt,VIDEO_PROPERTIES:Zt,generateVideoSegmentTimingInfo:Vt},ee=(function(t,e,n){e&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,e)}(ne,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new te.Transmuxer(this.options),function(t,e){e.on("data",(function(e){var n=e.initSegment;e.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=e.data;e.data=i.buffer,t.postMessage({action:"data",segment:e,byteOffset:i.byteOffset,byteLength:i.byteLength},[e.data])})),e.captionStream&&e.captionStream.on("data",(function(e){t.postMessage({action:"caption",data:e})})),e.on("done",(function(e){t.postMessage({action:"done"})})),e.on("gopInfo",(function(e){t.postMessage({action:"gopInfo",gopInfo:e})})),e.on("videoSegmentTimingInfo",(function(e){t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:e})}))}(this.self,this.transmuxer)}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*e))}},{key:"setAudioAppendStart",value:function(t){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*t.a
vendor: 22,228 bytes, line 2
2ppendStart))}},{key:"flush",value:function(t){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())}}]),ne);function ne(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,ne),this.options=e||{},this.self=t,this.init()}new function(t){t.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new ee(t,e.data.options):(this.messageHandlers||(this.messageHandlers=new ee(t)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}(n)}()})),Nc={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},jc=(Cl(Uc,Zr.EventTarget),Tl(Uc,[{key:"data_",value:function(t){var e=t.data.segment;e.data=new Uint8Array(e.data,t.data.byteOffset,t.data.byteLength),e.initSegment=new Uint8Array(e.initSegment.data,e.initSegment.byteOffset,e.initSegment.byteLength),function(t,e,n){var i=e.player_;if(n.captions&&n.captions.length)for(var r in t.inbandTextTracks_||(t.inbandTextTracks_={}),n.captionStreams)if(!t.inbandTextTracks_[r]){i.tech_.trigger({type:"usage",name:"hls-608"});var o=i.textTracks().getTrackById(r);t.inbandTextTracks_[r]=o||i.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}n.metadata&&n.metadata.length&&!t.metadataTrack_&&(t.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)}(this,this.mediaSource_,e),this.pendingBuffers_.push(e)}},{key:"done_",value:function(t){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"videoSegmentTimingInfo_",value:function(t){var e={start:{decode:t.start.dts/9e4,presentation:t.start.pts/9e4},end:{decode:t.end.dts/9e4,presentation:t.end.pts/9e4},baseMediaDecodeTime:t.baseMediaDecodeTime/9e4};t.prependedContentDuration&&(e.prependedContentDuration=t.prependedContentDuration/9e4),this.trigger({type:"videoSegmentTimingInfo",videoSegmentTimingInfo:e})}},{key:"createRealSourceBuffers_",value:function(){var t=this,e=["audio","video"];e.forEach((function(n){if(t[n+"Codec_"]&&!t[n+"Buffer_"]){var i=null;if(t.mediaSource_[n+"Buffer_"])(i=t.mediaSource_[n+"Buffer_"]).updating=!1;else{var r=n+'/mp4;codecs="'+t[n+"Codec_"]+'"';i=function(t,e){var n=t.addSourceBuffer(e),i=Object.create(null);function r(t){"function"==typeof n[t]?i[t]=function(){return n[t].apply(n,arguments)}:void 0===i[t]&&Object.defineProperty(i,t,{get:function(){return n[t]},set:function(e){return n[t]=e}})}for(var o in i.updating=!1,i.realBuffer_=n)r(o);return i}(t.mediaSource_.nativeMediaSource_,r),t.mediaSource_[n+"Buffer_"]=i}t[n+"Buffer_"]=i,["update","updatestart","updateend"].forEach((function(r){i.addEventListener(r,(function(){if("audio"!==n||!t.audioDisabled_)return"updateend"===r&&(t[n+"Buffer_"].updating=!1),e.every((function(e){return!("audio"!==e||!t.audioDisabled_)||n===e||!t[e+"Buffer_"]||!t[e+"Buffer_"].updating}))?t.trigger(r):void 0}))}))}}))}},{key:"appendBuffer",value:function(t){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var e=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:e.end(e.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:function(t,e,n){if(null==e||!t.length)return[];var i=Math.ceil(9e4*(e-n+3)),r=void 0;for(r=0;r<t.length&&!(t[r].pts>i);r++);return t.slice(r)}(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(t){this.gopBuffer_=function(t,e,n){if(!e.length)return t;if(n)return e.slice();for(var i=e[0].pts,r=0;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)}(this.gopBuffer_,t.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(t,e){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(t,e),this.gopBuffer_=function(t,e,n,i){for(var r=Math.ceil(9e4*(e-i)),o=Math.ceil(9e4*(n-i)),a=t.slice(),s=t.length;s--&&!(t[s].pts<=o););if(-1===s)return a;for(var l=s+1;l--&&!(t[l].pts<=r););return l=Math.max(l,0),a.splice(l,s-l+1),a}(this.gopBuffer_,t,e,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(t,e)),cc(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)cc(t,e,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var e={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger("updateend"),void(this.bufferUpdating_=!1);e=this.pendingBuffers_.reduce((function(t,e){var n=e.type,i=e.data,r=e.initSegment;return t[n].segments.push(i),t[n].bytes+=i.byteLength,t[n].initSegment=r,e.captions&&(t.captions=t.captions.concat(e.captions)),e.info&&(t[n].info=e.info),e.metadata&&(t.metadata=t.metadata.concat(e.metadata)),t}),e),this.videoBuffer_||this.audioBuffer_||(0===e.video.bytes&&(this.videoCodec_=null),0===e.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),e.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:e.audio.info}),e.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:e.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(e.audio.segments.unshift(e.audio.initSegment),e.audio.bytes+=e.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var n=!1;this.videoBuffer_&&e.video.bytes?(e.video.segments.unshift(e.video.initSegment),e.video.bytes+=e.video.initSegment.byteLength,this.concatAndAppendSegments_(e.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(n=!0),function(e,n,i){var r=t.WebKitDataCue||t.VTTCue;if(n&&n.forEach((function(t){var e=t.stream;this.inbandTextTracks_[e].addCue(new r(t.startTime+this.timestampOffset,t.endTime+this.timestampOffset,t.text))}),e),i){var o=uc(e.mediaSource_.duration);if(i.forEach((function(e){var n=e.cueTime+this.timestampOffset;!("number"!=typeof n||t.isNaN(n)||n<0)&&n<1/0&&e.frames.forEach((function(t){var e=new r(n,n,t.value||t.url||t.data||"");e.frame=t,e.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return Zr.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Zr.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Zr.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(e),this.metadataTrack_.addCue(e)}),this)}),e),e.metadataTrack_&&e.metadataTrack_.cues&&e.metadataTrack_.cues.length){for(var a=e.metadataTrack_.cues,s=[],l=0;l<a.length;l++)a[l]&&s.push(a[l]);var c=s.reduce((function(t,e){var n=t[e.startTime]||[];return n.push(e),t[e.startTime]=n,t}),{}),u=Object.keys(c).sort((function(t,e){return Number(t)-Number(e)}));u.forEach((function(t,e){var n=c[t],i=Number(u[e+1])||o;n.forEach((function(t){t.endTime=i}))}))}}}(this,e.captions,e.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(e.audio,this.audioBuffer_),this.pendingBuffers_.length=0,n&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(t,e){var n=0,i=void 0;if(t.bytes){i=new Uint8Array(t.bytes),t.segments.forEach((function(t){i.set(t,n),n+=t.byteLength}));try{e.updating=!0,e.appendBuffer(i)}catch(t){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:t.message,originalError:t})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}},{key:"dispose",value:function(){this.transmuxer_&&this.transmuxer_.terminate(),this.trigger("dispose"),this.off()}}]),Uc);function Uc(t,e){wl(this,Uc);var n=kl(this,(Uc.__proto__||Object.getPrototypeOf(Uc)).call(this,Zr.EventTarget));n.timestampOffset_=0,n.pendingBuffers_=[],n.bufferUpdating_=!1,n.mediaSource_=t,n.codecs_=e,n.audioCodec_=null,n.videoCodec_=null,n.audioDisabled_=!1,n.appendAudioInitSegment_=!0,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=11<=Zr.browser.IE_VERSION;var i={remux:!1,alignGopsAtEnd:n.safeAppend_};return n.codecs_.forEach((function(t){Dc(t)?n.audioCodec_=t:Lc(t)&&(n.videoCodec_=t)})),n.transmuxer_=new Mc,n.transmuxer_.postMessage({action:"init",options:i}),n.transmuxer_.onmessage=function(t){return"data"===t.data.action?n.data_(t):"done"===t.data.action?n.done_(t):"gopInfo"===t.data.action?n.appendGopInfo_(t):"videoSegmentTimingInfo"===t.data.action?n.videoSegmentTimingInfo_(t.data.videoSegmentTimingInfo):void 0},Object.defineProperty(n,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&&0<=t&&(this.timestampOffset_=t,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t}))}}),Object.defineProperty(n,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(t){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=t),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=t)}}),Object.defineProperty(n,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(n,"buffered",{get:function(){return function(t,e,n){var i=null,r=null,o=0,a=[],s=[];if(!t&&!e)return Zr.createTimeRange();if(!t)return e.buffered;if(!e)return t.buffered;if(n)return t.buffered;if(0===t.buffered.length&&0===e.buffered.length)return Zr.createTimeRange();for(var l=t.buffered,c=e.buffered,u=l.length;u--;)a.push({time:l.start(u),type:"start"}),a.push({time:l.end(u),type:"end"});for(u=c.length;u--;)a.push({time:c.start(u),type:"start"}),a.push({time:c.end(u),type:"end"});for(a.sort((function(t,e){return t.time-e.time})),u=0;u<a.length;u++)"start"===a[u].type?2==++o&&(i=a[u].time):"end"===a[u].type&&1==--o&&(r=a[u].time),null!==i&&null!==r&&(s.push([i,r]),r=i=null);return Zr.createTimeRanges(s)}(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),n}var Rc=(Cl(Bc,Zr.EventTarget),Tl(Bc,[{key:"addSeekableRange_",value:function(t,e){var n=void 0;if(this.duration!==1/0)throw(n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",n.code=11,n;(e>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=e)}},{key:"addSourceBuffer",value:function(t){var e=void 0,n=Pc(t);if(/^(video|audio)\/mp2t$/i.test(n.type)){var i=[];n.parameters&&n.parameters.codecs&&(i=(i=Ic(i=n.parameters.codecs.split(","))).filter((function(t){return Dc(t)||Lc(t)}))),0===i.length&&(i=["avc1.4d400d","mp4a.40.2"]),e=new jc(this,i),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),e.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else e=this.nativeMediaSource_.addSourceBuffer(t);return this.sourceBuffers.push(e),e}},{key:"dispose",value:function(){this.trigger("dispose"),this.off(),this.sourceBuffers.forEach((function(t){t.dispose&&t.dispose()})),this.sourceBuffers.length=0}}]),Bc);function Bc(){wl(this,Bc);var n=kl(this,(Bc.__proto__||Object.getPrototypeOf(Bc)).call(this)),i=void 0;for(i in n.nativeMediaSource_=new t.MediaSource,n.nativeMediaSource_)i in Bc.prototype||"function"!=typeof n.nativeMediaSource_[i]||(n[i]=n.nativeMediaSource_[i].bind(n.nativeMediaSource_));return n.duration_=NaN,Object.defineProperty(n,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(t){(this.duration_=t)===1/0||(this.nativeMediaSource_.duration=t)}}),Object.defineProperty(n,"seekable",{get:function(){return this.duration_===1/0?Zr.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(n,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(n,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),n.sourceBuffers=[],n.activeSourceBuffers_=[],n.updateActiveSourceBuffers_=function(){if(n.activeSourceBuffers_.length=0,1===n.sourceBuffers.length){var t=n.sourceBuffers[0];return t.appendAudioInitSegment_=!0,t.audioDisabled_=!t.audioCodec_,void n.activeSourceBuffers_.push(t)}for(var e=!1,i=!0,r=0;r<n.player_.audioTracks().length;r++){var o=n.player_.audioTracks()[r];if(o.enabled&&"main"!==o.kind){i=!(e=!0);break}}n.sourceBuffers.forEach((function(t,r){if(t.appendAudioInitSegment_=!0,t.videoCodec_&&t.audioCodec_)t.audioDisabled_=e;else if(t.videoCodec_&&!t.audioCodec_)t.audioDisabled_=!0,i=!1;else if(!t.videoCodec_&&t.audioCodec_&&(t.audioDisabled_=r?i:!i,t.audioDisabled_))return;n.activeSourceBuffers_.push(t)}))},n.onPlayerMediachange_=function(){n.sourceBuffers.forEach((function(t){t.appendAudioInitSegment_=!0}))},n.onHlsReset_=function(){n.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.postMessage({action:"resetCaptions"})}))},n.onHlsSegmentTimeMapping_=function(t){n.sourceBuffers.forEach((function(e){return e.timeMapping_=t.mapping}))},["sourceopen","sourceclose","sourceended"].forEach((function(t){this.nativeMediaSource_.addEventListener(t,this.trigger.bind(this))}),n),n.on("sourceopen",(function(t){var i=e.querySelector('[src="'+n.url_+'"]');i&&(n.player_=Zr(i.parentNode),n.player_&&(n.player_.tech_.on("hls-reset",n.onHlsReset_),n.player_.tech_.on("hls-segment-time-mapping",n.onHlsSegmentTimeMapping_),n.player_.audioTracks&&n.player_.audioTracks()&&(n.player_.audioTracks().on("change",n.updateActiveSourceBuffers_),n.player_.audioTracks().on("addtrack",n.updateActiveSourceBuffers_),n.player_.audioTracks().on("removetrack",n.updateActiveSourceBuffers_)),n.player_.on("mediachange",n.onPlayerMediachange_)))})),n.on("sourceended",(function(t){for(var e=uc(n.duration),i=0;i<n.sourceBuffers.length;i++){var r=n.sourceBuffers[i],o=r.metadataTrack_&&r.metadataTrack_.cues;o&&o.length&&(o[o.length-1].endTime=e)}})),n.on("sourceclose",(function(t){this.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.terminate()})),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))})),n}var Fc=0;function zc(t,e){var n=Zr.mediaSources[t];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:e})}function Hc(){return!!t.MediaSource&&!!t.MediaSource.isTypeSupported&&t.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')}function qc(){if(this.MediaSource={open:zc,supportsNativeMediaSources:Hc},Hc())return new Rc;throw new Error("Cannot use create a virtual MediaSource for this video")}Zr.mediaSources={},qc.open=zc,qc.supportsNativeMediaSources=Hc;var Vc={createObjectURL:function(e){var n=void 0;return e instanceof Rc?(n=t.URL.createObjectURL(e.nativeMediaSource_),e.url_=n):e instanceof Rc?(n="blob:vjs-media-source/"+Fc,Fc++,Zr.mediaSources[n]=e,n):(n=t.URL.createObjectURL(e),e.url_=n)}};function Wc(t,e){for(var n=void 0,i=Kc(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod}),r=0;r<e.playlists.length;r++){var o=El(i,e.playlists[r]);o?i=o:n=!0}return xl(e,(function(t,e,r,o){if(t.playlists&&t.playlists.length){var a=t.playlists[0].id,s=El(i,t.playlists[0]);s&&((i=s).mediaGroups[e][r][o].playlists[0]=i.playlists[a],n=!1)}})),n?null:i}function Gc(t){var e=t.byterange.offset+t.byterange.length-1;return t.uri+"-"+t.byterange.offset+"-"+e}function Xc(t,e){var n,i,r={};for(var o in t){var a=t[o].sidx;if(a){var s=Gc(a);if(!e[s])break;n=e[s].sidxInfo,i=a,(Boolean(!n.map&&!i.map)||Boolean(n.map&&i.map&&n.map.byterange.offset===i.map.byterange.offset&&n.map.byterange.length===i.map.byterange.length))&&n.uri===i.uri&&n.byterange.offset===i.byterange.offset&&n.byterange.length===i.byterange.length&&(r[s]=e[s])}}return r}function Yc(t,e,n,i,r){var o={uri:_l(i.handleManifestRedirects,t.resolvedUri),byterange:t.byterange,playlist:e};return n(Zr.mergeOptions(o,{responseType:"arraybuffer",headers:Kl(o)}),r)}Zr.MediaSource=qc,Zr.URL=Vc;var Kc=Zr.mergeOptions,Qc=(Cl(Jc,Zr.EventTarget),Tl(Jc,[{key:"setupChildLoader",value:function(t,e){this.masterPlaylistLoader_=t,this.childPlaylist_=e}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},t.clearTimeout(this.minimumUpdatePeriodTimeout_),t.clearTimeout(this.mediaRequest_),t.clearTimeout(this.mediaUpdateTimeout),this.off()}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}},{key:"sidxRequestFinished_",value:function(t,e,n,i){var r=this;return function(o,a){if(r.request){if(r.request=null,o)return r.error={status:a.status,message:"DASH playlist request error at URL: "+t.uri,response:a.response,code:2},n&&(r.state=n),r.trigger("error"),i(e,null);var s=new Uint8Array(a.response),l=Is.parseSidx(s.subarray(8));return i(e,l)}}}},{key:"media",value:function(e){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}var r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(r)if(this.media_&&this.trigger("mediachanging"),e.sidx){var o=void 0,a=void 0;a=this.masterPlaylistLoader_?(o=this.masterPlaylistLoader_.master,this.masterPlaylistLoader_.sidxMapping_):(o=this.master,this.sidxMapping_);var s=Gc(e.sidx);a[s]={sidxInfo:e.sidx},this.request=Yc(e.sidx,e,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(e,o,i,(function(t,r){if(!t||!r)throw new Error("failed to request sidx");a[s].sidx=r,n.haveMetadata({startingState:i,playlist:t.playlists[e.id]})})))}else this.mediaRequest_=t.setTimeout(this.haveMetadata.bind(this,{startingState:i,playlist:e}),0)}},{key:"haveMetadata",value:function(t){var e=t.startingState,n=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.stopRequest(),t.clearTimeout(this.mediaUpdateTimeout),t.clearTimeout(this.minimumUpdatePeriodTimeout_),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(e){var n=this;t.clearTimeout(this.mediaUpdateTimeout),t.clearTimeout(this.minimumUpdatePeriodTimeout_);var i=this.media();if(e){var r=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=t.setTimeout((function(){return n.load()}),r)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"parseMasterXml",value:function(){var t=ns(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});t.uri=this.srcUrl;for(var e=0;e<t.playlists.length;e++){var n="placeholder-uri-"+e;t.playlists[e].uri=n}return xl(t,(function(e,n,i,r){if(e.playlists&&e.playlists.length){var o="placeholder-uri-"+n+"-"+i+"-"+r,a=$l(0,o);e.playlists[0].uri=o,e.playlists[0].id=a,t.playlists[a]=e.playlists[0],t.playlists[o]=e.playlists[0]}})),Il(t),Ol(t),t}},{key:"start",value:function(){var e=this;this.started=!0,this.masterPlaylistLoader_?this.mediaRequest_=t.setTimeout(this.haveMaster_.bind(this),0):this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?e.masterLoaded_=Date.parse(n.responseHeaders.date):e.masterLoaded_=Date.now(),e.srcUrl=_l(e.handleManifestRedirects,e.srcUrl,n),e.syncClientServerClock_(e.onClientServerClockSync_.bind(e))}}))}},{key:"syncClientServerClock_",value:function(t){var e=this,n=function(t){var e=Ya(t,"UTCTiming")[0];if(!e)return null;var n=Ja(e);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return n}(es(this.masterXml_));return null===n?(this.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.clientOffset_=n.value-Date.now(),t()):void(this.request=this.hls_.xhr({uri:bl(this.srcUrl,
2n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(e.request){if(i)return e.clientOffset_=e.masterLoaded_-Date.now(),t();var o;o="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):e.masterLoaded_:Date.parse(r.responseText),e.clientOffset_=o-Date.now(),t()}})))}},{key:"haveMaster_",value:function(){this.state="HAVE_MASTER",this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger("loadedplaylist"))}},{key:"onClientServerClockSync_",value:function(){var e=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=t.setTimeout((function(){e.trigger("minimumUpdatePeriod")}),this.master.minimumUpdatePeriod))}},{key:"refreshXml_",value:function(){var e=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},(function(n,i){if(e.request){if(e.request=null,n)return e.error={status:i.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:i.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=i.responseText,e.sidxMapping_=function(t,e,n,i){var r=ns(t,{manifestUri:e,clientOffset:n}),o=Xc(r.playlists,i);return xl(r,(function(t,e,n,r){if(t.playlists&&t.playlists.length){var a=t.playlists;o=Kc(o,Xc(a,i))}})),o}(e.masterXml_,e.srcUrl,e.clientOffset_,e.sidxMapping_);var r=e.parseMasterXml(),o=Wc(e.master,r),a=e.media().sidx;if(o)if(a){var s=Gc(a);if(!e.sidxMapping_[s]){var l=e.media();e.request=Yc(l.sidx,l,e.hls_.xhr,{handleManifestRedirects:e.handleManifestRedirects},e.sidxRequestFinished_(l,r,e.state,(function(n,i){if(!n||!i)throw new Error("failed to request sidx on minimumUpdatePeriod");e.sidxMapping_[s].sidx=i,e.minimumUpdatePeriodTimeout_=t.setTimeout((function(){e.trigger("minimumUpdatePeriod")}),e.master.minimumUpdatePeriod),e.refreshMedia_(e.media().id)})))}}else e.master=o;e.minimumUpdatePeriodTimeout_=t.setTimeout((function(){e.trigger("minimumUpdatePeriod")}),e.master.minimumUpdatePeriod)}}))}},{key:"refreshMedia_",value:function(e){var n=this;if(!e)throw new Error("refreshMedia_ must take a media id");var i,r=void 0;i=this.masterPlaylistLoader_?(r=this.masterPlaylistLoader_.master,this.masterPlaylistLoader_.parseMasterXml()):(r=this.master,this.parseMasterXml());var o=Wc(r,i);o?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=o:this.master=o,this.media_=o.playlists[e]):(this.media_=i.playlists[e],this.trigger("playlistunchanged")),this.media().endList||(this.mediaUpdateTimeout=t.setTimeout((function(){n.trigger("mediaupdatetimeout")}),Al(this.media(),!!o))),this.trigger("loadedplaylist")}}]),Jc);function Jc(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3];wl(this,Jc);var r=kl(this,(Jc.__proto__||Object.getPrototypeOf(Jc)).call(this)),o=n.withCredentials,a=void 0!==o&&o,s=n.handleManifestRedirects,l=void 0!==s&&s;if(r.hls_=e,r.withCredentials=a,r.handleManifestRedirects=l,!t)throw new Error("A non-empty playlist URL or playlist is required");return r.on("minimumUpdatePeriod",(function(){r.refreshXml_()})),r.on("mediaupdatetimeout",(function(){r.refreshMedia_(r.media().id)})),r.state="HAVE_NOTHING",r.loadedPlaylists_={},"string"==typeof t?(r.srcUrl=t,r.sidxMapping_={},kl(r)):(r.setupChildLoader(i,t),r)}function Zc(t){return Zr.log.debug?Zr.log.debug.bind(Zr,"VHS:",t+" >"):function(){}}function tu(){}var eu=(Tl(nu,[{key:"createSourceBuffer_",value:function(t,e){var n=this;this.sourceBuffer_=this.mediaSource.addSourceBuffer(t),this.logger_("created SourceBuffer"),e&&(e.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length<2)?e.on("sourcebufferadded",(function(){n.start_()}
vendor: 18,327 bytes, line 2
2)):this.start_()}},{key:"start_",value:function(){var t=this;this.started_=!0,this.onUpdateendCallback_=function(){var e=t.pendingCallback_;t.pendingCallback_=null,t.sourceBuffer_.removing=!1,t.logger_("buffered ["+sc(t.buffered())+"]"),e&&e(),t.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(t){var e=this;this.processedAppend_&&this.queueCallback_((function(){e.sourceBuffer_.abort()}),t)}},{key:"appendBuffer",value:function(t,e){var n=this;this.processedAppend_=!0,this.queueCallback_((function(){t.videoSegmentTimingInfoCallback&&n.sourceBuffer_.addEventListener("videoSegmentTimingInfo",t.videoSegmentTimingInfoCallback),n.sourceBuffer_.appendBuffer(t.bytes)}),(function(){t.videoSegmentTimingInfoCallback&&n.sourceBuffer_.removeEventListener("videoSegmentTimingInfo",t.videoSegmentTimingInfoCallback),e()}))}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:Zr.createTimeRanges()}},{key:"remove",value:function(t,e,n){var i=this,r=2<arguments.length&&void 0!==n?n:tu;this.processedAppend_&&this.queueCallback_((function(){i.logger_("remove ["+t+" => "+e+"]"),i.sourceBuffer_.removing=!0,i.sourceBuffer_.remove(t,e)}),r)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==tu}},{key:"timestampOffset",value:function(t){var e=this;return void 0!==t&&(this.queueCallback_((function(){e.sourceBuffer_.timestampOffset=t,e.runCallback_()})),this.timestampOffset_=t),this.timestampOffset_}},{key:"queueCallback_",value:function(t,e){this.callbacks_.push([t.bind(this),e]),this.runCallback_()}},{key:"runCallback_",value:function(){var t=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(t=this.callbacks_.shift(),this.pendingCallback_=t[1],t[0]())}},{key:"dispose",value:function(){function t(){e.sourceBuffer_&&"open"===e.mediaSource.readyState&&e.sourceBuffer_.abort(),e.sourceBuffer_.removeEventListener("updateend",t)}var e=this;this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener("updateend",t):t()}}]),nu);function nu(t,e,n,i){wl(this,nu),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=t,this.processedAppend_=!1,this.type_=n,this.mimeType_=e,this.logger_=Zc("SourceUpdater["+n+"]["+e+"]"),"closed"===t.readyState?t.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,e,i)):this.createSourceBuffer_(e,i)}function iu(t){t.forEach((function(t){t.abort()}))}function ru(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:du,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:hu,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:uu,xhr:e}:null}function ou(e,n){var i;return e&&(i=t.getComputedStyle(e))?i[n]:""}function au(t,e){var n=t.slice();t.sort((function(t,i){var r=e(t,i);return 0===r?n.indexOf(t)-n.indexOf(i):r}))}function su(e,n){var i=void 0,r=void 0;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||t.Number.MAX_VALUE,n.attributes.BANDWIDTH&&(r=n.attributes.BANDWIDTH),i-(r||t.Number.MAX_VALUE)}function lu(t){return"number"==typeof t&&isFinite(t)}var cu={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},uu=2,du=-101,hu=-102,pu=(Cl(fu,Zr.EventTarget),Tl(fu,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset(),this.checkBufferTimeout_&&t.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(t){return void 0!==t&&(this.error_=t),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():Zr.createTimeRanges()}},{key:"initSegment",value:function(t,e){var n=1<arguments.length&&void 0!==e&&e;if(!t)return null;var i=tc(t),r=this.initSegments_[i];return n&&!r&&t.bytes&&(this.initSegments_[i]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,timescales:t.timescales,videoTrackIds:t.videoTrackIds}),r||t}},{key:"segmentKey",value:function(t,e){var n=1<arguments.length&&void 0!==e&&e;if(!t)return null;var i=ec(t),r=this.keyCache_[i];this.cacheEncryptionKeys_&&n&&!r&&t.bytes&&(this.keyCache_[i]=r={resolvedUri:t.resolvedUri,bytes:t.bytes});var o={resolvedUri:(r||t).resolvedUri};return r&&(o.bytes=r.bytes),o}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new eu(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(t,e){var n=1<arguments.length&&void 0!==e?e:{};if(t){var i=this.playlist_,r=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=n,"INIT"===this.state&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0});var o=null;if(i&&(i.id?o=i.id:i.uri&&(o=i.uri)),this.logger_("playlist update ["+o+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(i&&i.uri===t.uri){var a=t.mediaSequence-i.mediaSequence;this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex&&(this.mediaIndex-=a),r&&(r.mediaIndex-=a,0<=r.mediaIndex&&(r.segment=t.segments[r.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(i,t)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(t.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(t,e){this.mimeType_||(this.mimeType_=t,this.sourceBufferEmitter_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(t){this.ended_=!1,this.resetLoader(),this.remove(0,1/0,t),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(t,e,n){if(e===1/0&&(e=this.duration_()),this.sourceUpdater_&&this.sourceUpdater_.remove(t,e,n),cc(t,e,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)cc(t,e,this.inbandTextTracks_[i])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&t.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=t.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&t.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=t.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);t&&(this.isEndOfStream_(t.mediaIndex)?this.endOfStream():t.mediaIndex===this.playlist_.segments.length-1&&"ended"===this.mediaSource_.readyState&&!this.seeking_()||(t.timeline!==this.currentTimeline_&&(this.syncController_.reset(),t.timestampOffset=t.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(t)))}}},{key:"isEndOfStream_",value:function(t,e){return function(t,e,n){if(!t||!e)return!1;var i=n===t.segments.length;return t.endList&&"open"===e.readyState&&i}(1<arguments.length&&void 0!==e?e:this.playlist_,this.mediaSource_,t)&&!this.sourceUpdater_.updating()}},{key:"checkBuffer_",value:function(t,e,n,i,r,o){var a=0,s=void 0;t.length&&(a=t.end(t.length-1));var l=Math.max(0,a-r);if(!e.segments.length)return null;if(l>=this.goalBufferLength_())return null;if(!i&&1<=l)return null;if(null===o)return n=this.getSyncSegmentCandidate_(e),this.generateSegmentInfo_(e,n,null,!0);if(null!==n)return e.segments[n],s=a,this.generateSegmentInfo_(e,n+1,s,!1);if(this.fetchAtBuffer_){var c=fc.getMediaInfoForTime(e,a,o.segmentIndex,o.time);n=c.mediaIndex,s=c.startTime}else{var u=fc.getMediaInfoForTime(e,r,o.segmentIndex,o.time);n=u.mediaIndex,s=u.startTime}return this.generateSegmentInfo_(e,n,s,!1)}},{key:"getSyncSegmentCandidate_",value:function(t){var e=this;if(-1===this.currentTimeline_)return 0;var n=t.segments.map((function(t,e){return{timeline:t.timeline,segmentIndex:e}})).filter((function(t){return t.timeline===e.currentTimeline_}));return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(t.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(t,e,n,i){if(e<0||e>=t.segments.length)return null;var r=t.segments[e];return{requestId:"segment-loader-"+Math.random(),uri:r.resolvedUri,mediaIndex:e,isSyncRequest:i,startOfSegment:n,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:r.timeline,duration:r.duration,segment:r}}},{key:"abortRequestEarly_",value:function(t){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)return!1;var e=this.currentTime_(),n=t.bandwidth,i=this.pendingSegment_.duration,r=fc.estimateSegmentRequestTime(i,n,this.playlist_,t.bytesReceived),o=function(t,e,n){var i=2<arguments.length&&void 0!==n?n:1;return((t.length?t.end(t.length-1):0)-e)/i}(this.buffered_(),e,this.hls_.tech_.playbackRate())-1;if(r<=o)return!1;var a=function(t){var e=t.currentTime,n=t.bandwidth,i=t.duration,r=t.segmentDuration,o=t.timeUntilRebuffer,a=t.currentTimeline,s=t.syncController,l=t.master.playlists.filter((function(t){return!fc.isIncompatible(t)})),c=l.filter(fc.isEnabled);c.length||(c=l.filter((function(t){return!fc.isDisabled(t)})));var u=c.filter(fc.hasAttribute.bind(null,"BANDWIDTH")).map((function(t){var l=s.getSyncPoint(t,i,a,e)?1:2;return{playlist:t,rebufferingImpact:fc.estimateSegmentRequestTime(r,n,t)*l-o}})),d=u.filter((function(t){return t.rebufferingImpact<=0}));return au(d,(function(t,e){return su(e.playlist,t.playlist)})),d.length?d[0]:(au(u,(function(t,e){return t.rebufferingImpact-e.rebufferingImpact})),u[0]||null)}({master:this.hls_.playlists.master,currentTime:e,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var s=r-o-a.rebufferingImpact,l=.5;return o<=1/30&&(l=1),!(!a.playlist||a.playlist.uri===this.playlist_.uri||s<l||(this.bandwidth=a.playlist.attributes.BANDWIDTH*cu.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),0))}}},{key:"handleProgress_",value:function(t,e){this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(e.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(t){this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),t.abortRequests=function(t,e,n,i,r,o,a){var s=[],l=function(t,e,n){var i=0,r=!1;return function(o,a){if(!r)return o?(r=!0,iu(t),n(o,a)):(i+=1)===t.length?(a.endOfAllRequests=Date.now(),a.encryptedBytes?function(t,e,n){var i;t.addEventListener("message",(function i(r){if(r.data.source===e.requestId){t.removeEventListener("message",i);var o=r.data.decrypted;return e.bytes=new Uint8Array(o.bytes,o.byteOffset,o.byteLength),n(null,e)}})),i=e.key.bytes.slice?e.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(e.key.bytes)),t.postMessage(Zl({source:e.requestId,encrypted:e.encryptedBytes,key:i,iv:e.key.iv}),[e.encryptedBytes.buffer,i.buffer])}(e,a,n):n(null,a)):void 0}}(s,n,a);if(r.key&&!r.key.bytes){var c=t(Zr.mergeOptions(e,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),function(t,e){return function(n,i){var r=i.response,o=ru(n,i);if(o)return e(o,t);if(16!==r.byteLength)return e({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:uu,xhr:i},t);var a=new DataView(r);return t.key.bytes=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),e(null,t)}}(r,l));s.push(c)}if(r.map&&!r.map.bytes){var u=t(Zr.mergeOptions(e,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Kl(r.map)}),function(t,e,n){return function(i,r){var o=r.response,a=ru(i,r);return a?n(a,t):0===o.byteLength?n({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:uu,xhr:r},t):(t.map.bytes=new Uint8Array(r.response),e&&!e.isInitialized()&&e.init(),t.map.timescales=Ds.timescale(t.map.bytes),t.map.videoTrackIds=Ds.videoTrackIds(t.map.bytes),n(null,t))}}(r,i,l));s.push(u)}var d=t(Zr.mergeOptions(e,{uri:r.resolvedUri,responseType:"arraybuffer",headers:Kl(r)}),function(t,e,n){return function(i,r){var o=r.response,a=ru(i,r),s=void 0;return a?n(a,t):0===o.byteLength?n({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:uu,xhr:r},t):(t.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(r),t.key?t.encryptedBytes=new Uint8Array(r.response):t.bytes=new Uint8Array(r.response),e&&t.map&&t.map.bytes&&(e.isInitialized()||e.init(),(s=e.parse(t.bytes,t.map.videoTrackIds,t.map.timescales))&&s.captions&&(t.captionStreams=s.captionStreams,t.fmp4Captions=s.captions)),n(null,t))}}(r,i,l));return d.addEventListener("progress",function(t,e){return function(n){return t.stats=Zr.mergeOptions(t.stats,function(t){var e=t.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return n.bytesReceived=t.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}(n)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(n,t)}}(r,o)),s.push(d),function(){return iu(s)}}(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(t),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(t){var e=function(t,e,n){var i=e-30;t.length&&(i=Math.max(i,t.start(0)));var r=e-n;return Math.min(r,i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);0<e&&this.remove(0,e)}},{key:"createSimplifiedSegmentObj_",value:function(t){var e=t.segment,n={resolvedUri:e.resolvedUri,byterange:e.byterange,requestId:t.requestId};if(e.key){var i=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);n.key=this.segmentKey(e.key),n.key.iv=i}return e.map&&(n.map=this.initSegment(e.map)),n}},{key:"segmentRequestFinished_",value:function(t,e){if(this.mediaRequests+=1,e.stats&&(this.mediaBytesTransferred+=e.stats.bytesReceived,this.mediaTransferDuration+=e.stats.roundTripTime),this.pendingSegment_){if(e.requestId===this.pendingSegment_.requestId){if(t)return this.pendingSegment_=null,this.state="READY",t.code===hu?void(this.mediaRequestsAborted+=1):(this.pause(),t.code===du?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error")));this.bandwidth=e.stats.bandwidth,this.roundTrip=e.stats.roundTripTime,e.map&&(e.map=this.initSegment(e.map,!0)),e.key&&this.segmentKey(e.key,!0),this.processSegmentResponse_(e)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(t){var e=this.pendingSegment_;e.bytes=t.bytes,t.map&&(e.segment.map.bytes=t.map.bytes),e.endOfAllRequests=t.endOfAllRequests,t.fmp4Captions&&(function(t,e,n){for(var i in n)if(!t[i]){e.trigger({type:"usage",name:"hls-608"});var r=e.textTracks().getTrackById(i);t[i]=r||e.addRemoteTextTrack({kind:"captions",id:i,label:i},!1).track}}(this.inbandTextTracks_,this.hls_.tech_,t.captionStreams),function(t){var e=t.inbandTextTracks,n=t.captionArray,i=t.timestampOffset;if(n){var r=window.WebKitDataCue||window.VTTCue;n.forEach((function(t){var n=t.stream,o=t.startTime,a=t.endTime;e[n]&&(o+=i,a+=i,e[n].addCue(new r(o,a,t.text)))}))}}({inbandTextTracks:this.inbandTextTracks_,captionArray:t.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var t=this;if(this.pendingSegment_){var e=this.pendingSegment_,n=e.segment,i=this.syncController_.probeSegmentInfo(e);void 0===this.startingMedia_&&i&&(i.containsAudio||i.containsVideo)&&(this.startingMedia_={containsAudio:i.containsAudio,containsVideo:i.containsVideo});var r=function(t,e,n){return"main"===t&&e&&n?n.containsAudio||n.containsVideo?e.containsVideo&&!n.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.containsVideo&&n.containsVideo?"Video foun
2d in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.startingMedia_,i);if(r)return this.error({message:r,blacklistDuration:1/0}),void this.trigger("error");if(e.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");if(null!==e.timestampOffset&&e.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(i&&i.segmentTimestampInfo){var o=i.segmentTimestampInfo[0].ptsTime,a=i.segmentTimestampInfo[0].dtsTime;e.timestampOffset-=o-a}this.sourceUpdater_.timestampOffset(e.timestampOffset),this.trigger("timestampoffset")}var s=this.syncController_.mappingForTimeline(e.timeline);if(null!==s&&this.trigger({type:"segmenttimemapping",mapping:s}),this.state="APPENDING",n.map){var l=tc(n.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==l){var c=this.initSegment(n.map);this.sourceUpdater_.appendBuffer({bytes:c.bytes},(function(){t.activeInitSegmentId_=l}))}}e.byteLength=e.bytes.byteLength,"number"==typeof n.start&&"number"==typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.logger_(function(t){var e=t.segment,n=e.start,i=e.end,r=t.playlist,o=r.mediaSequence,a=r.id,s=r.segments,l=void 0===s?[]:s,c=t.mediaIndex,u=t.timeline;return["appending ["+c+"] of ["+o+", "+(o+l.length)+"] from playlist ["+a+"]","["+n+" => "+i+"] in timeline ["+u+"]"].join(" ")}(e)),this.sourceUpdater_.appendBuffer({bytes:e.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,e.requestId)},this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleVideoSegmentTimingInfo_",value:function(t,e){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment;n.videoTimingInfo||(n.videoTimingInfo={}),n.videoTimingInfo.transmuxerPrependedSeconds=e.videoSegmentTimingInfo.prependedContentDuration||0,n.videoTimingInfo.transmuxedPresentationStart=e.videoSegmentTimingInfo.start.presentation,n.videoTimingInfo.transmuxedPresentationEnd=e.videoSegmentTimingInfo.end.presentation,n.videoTimingInfo.baseMediaDecodeTime=e.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_,e=t.segment,n=null!==this.mediaIndex;this.pendingSegment_=null,this.recordThroughput_(t),this.addSegmentMetadataCue_(t),this.state="READY",this.mediaIndex=t.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate"),e.end&&this.currentTime_()-e.end>3*t.playlist.targetDuration?this.resetEverything():(n&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.isEndOfStream_(t.mediaIndex+1,t.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(t){var e=this.throughput.rate,n=Date.now()-t.endOfAllRequests+1,i=Math.floor(t.byteLength/n*8*1e3);this.throughput.rate+=(i-e)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var n=e.segment,i=n.start,r=n.end;if(lu(i)&&lu(r)){cc(i,r,this.segmentMetadataTrack_);var o=t.WebKitDataCue||t.VTTCue,a={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:r},s=new o(i,r,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}}}]),fu);function fu(t){wl(this,fu);var e=kl(this,(fu.__proto__||Object.getPrototypeOf(fu)).call(this));if(!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return e.bandwidth=t.bandwidth,e.throughput={rate:0,count:0},e.roundTrip=NaN,e.resetStats_(),e.mediaIndex=null,e.hasPlayed_=t.hasPlayed,e.currentTime_=t.currentTime,e.seekable_=t.seekable,e.seeking_=t.seeking,e.duration_=t.duration,e.mediaSource_=t.mediaSource,e.hls_=t.hls,e.loaderType_=t.loaderType,e.startingMedia_=void 0,e.segmentMetadataTrack_=t.segmentMetadataTrack,e.goalBufferLength_=t.goalBufferLength,e.sourceType_=t.sourceType,e.inbandTextTracks_=t.inbandTextTracks,e.state_="INIT",e.checkBufferTimeout_=null,e.error_=void 0,e.currentTimeline_=-1,e.pendingSegment_=null,e.mimeType_=null,e.sourceUpdater_=null,e.xhrOptions_=null,e.activeInitSegmentId_=null,e.initSegments_={},e.cacheEncryptionKeys_=t.cacheEncryptionKeys,e.keyCache_={},"main"===e.loaderType_?e.captionParser_=new Vs:e.captionParser_=null,e.decrypter_=t.decrypter,e.syncController_=t.syncController,e.syncPoint_={segmentIndex:0,time:0},e.triggerSyncInfoUpdate_=function(){return e.trigger("syncinfoupdate")},e.syncController_.on("syncinfoupdate",e.triggerSyncInfoUpdate_),e.mediaSource_.addEventListener("sourceopen",(function(){return e.ended_=!1})),e.fetchAtBuffer_=!1,e.logger_=Zc("SegmentLoader["+e.loaderType_+"]"),Object.defineProperty(e,"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t)}}),e}function mu(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))}var gu=new Uint8Array("\n\n".split("").map((function(t){return t.charCodeAt(0)}))),vu=(Cl(yu,pu),Tl(yu,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return Zr.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,n=t[t.length-1].startTime;return Zr.createTimeRanges([[e,n]])}},{key:"initSegment",value:function(t,e){var n=1<arguments.length&&void 0!==e&&e;if(!t)return null;var i=tc(t),r=this.initSegments_[i];if(n&&!r&&t.bytes){var o=gu.byteLength+t.bytes.byteLength,a=new Uint8Array(o);a.set(t.bytes),a.set(gu,t.bytes.byteLength),this.initSegments_[i]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:a}}return r||t}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(t){return void 0===t||(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}},{key:"remove",value:function(t,e){cc(t,e,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var t=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e=this.skipEmptySegments_(e)){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline))return this.syncController_.one("timestampoffset",(function(){t.state="READY",t.paused()||t.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(e)}}},{key:"skipEmptySegments_",value:function(t){for(;t&&t.segment.empty;)t=this.generateSegmentInfo_(t.playlist,t.mediaIndex+1,t.startOfSegment+t.duration,t.isSyncRequest);return t}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var n=this.pendingSegment_,i=n.segment;if("function"!=typeof t.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var r=void 0,o=function(){e.subtitlesTrack_.tech_.off("vttjsloaded",r),e.error({message:"Error loading vtt.js"}),e.state="READY",e.pause(),e.trigger("error")};return r=function(){e.subtitlesTrack_.tech_.off("vttjserror",o),e.handleSegment_()},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",r),void this.subtitlesTrack_.tech_.one("vttjserror",o)}i.requested=!0;try{this.parseVTTCues_(n)}catch(n){return this.error({message:n.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(n,this.syncController_.timelines[n.timeline],this.playlist_),n.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");n.byteLength=n.bytes.byteLength,this.mediaSecondsLoaded+=i.duration,n.cues.length&&this.remove(n.cues[0].endTime,n.cues[n.cues.length-1].endTime),n.cues.forEac
vendor: 17,365 bytes, line 2
2h((function(n){e.subtitlesTrack_.addCue(e.featuresNativeTextTracks_?new t.VTTCue(n.startTime,n.endTime,n.text):n)})),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(e){var n=void 0,i=!1;"function"==typeof t.TextDecoder?n=new t.TextDecoder("utf8"):(n=t.WebVTT.StringDecoder(),i=!0);var r=new t.WebVTT.Parser(t,t.vttjs,n);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(t){return e.timestampmap=t},r.onparsingerror=function(t){Zr.log.warn("Error encountered when parsing cues: "+t.message)},e.segment.map){var o=e.segment.map.bytes;i&&(o=mu(o)),r.parse(o)}var a=e.bytes;i&&(a=mu(a)),r.parse(a),r.flush()}},{key:"updateTimeMapping_",value:function(t,e,n){var i=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,o=r.MPEGTS/9e4-r.LOCAL+e.mapping;if(t.cues.forEach((function(t){t.startTime+=o,t.endTime+=o})),!n.syncInfo){var a=t.cues[0].startTime,s=t.cues[t.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+t.mediaIndex,time:Math.min(a,s-i.duration)}}}else i.empty=!0}}]),yu);function yu(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};wl(this,yu);var n=kl(this,(yu.__proto__||Object.getPrototypeOf(yu)).call(this,t,e));return n.mediaSource_=null,n.subtitlesTrack_=null,n.featuresNativeTextTracks_=t.featuresNativeTextTracks,n}function bu(t,e){for(var n=t.cues,i=0;i<n.length;i++){var r=n[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null}var _u=[{name:"VOD",run:function(t,e,n,i,r){return n===1/0?null:{time:0,segmentIndex:0}}},{name:"ProgramDateTime",run:function(t,e,n,i,r){if(!t.datetimeToDisplayTime)return null;var o=e.segments||[],a=null,s=null;r=r||0;for(var l=0;l<o.length;l++){var c=o[l];if(c.dateTimeObject){var u=c.dateTimeObject.getTime()/1e3+t.datetimeToDisplayTime,d=Math.abs(r-u);if(null!==s&&(0===d||s<d))break;s=d,a={time:u,segmentIndex:l}}}return a}},{name:"Segment",run:function(t,e,n,i,r){var o=e.segments||[],a=null,s=null;r=r||0;for(var l=0;l<o.length;l++){var c=o[l];if(c.timeline===i&&void 0!==c.start){var u=Math.abs(r-c.start);if(null!==s&&s<u)break;(!a||null===s||u<=s)&&(s=u,a={time:c.start,segmentIndex:l})}}return a}},{name:"Discontinuity",run:function(t,e,n,i,r){var o=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var a=null,s=0;s<e.discontinuityStarts.length;s++){var l=e.discontinuityStarts[s],c=e.discontinuitySequence+s+1,u=t.discontinuities[c];if(u){var d=Math.abs(r-u.time);if(null!==a&&a<d)break;(!o||null===a||d<=a)&&(a=d,o={time:u.time,segmentIndex:l})}}return o}},{name:"Playlist",run:function(t,e,n,i,r){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence}:null}}],wu=(Cl(Tu,Zr.EventTarget),Tl(Tu,[{key:"getSyncPoint",value:function(t,e,n,i){var r=this.runStrategies_(t,e,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null}},{key:"getExpiredTime",value:function(t,e){if(!t||!t.segments)return null;var n=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return 0<i.segmentIndex&&(i.time*=-1),Math.abs(i.time+Rl(t,i.segmentIndex,0))}},{key:"runStrategies_",value:function(t,e,n,i){for(var r=[],o=0;o<_u.length;o++){var a=_u[o],s=a.run(this,t,e,n,i);s&&(s.strategy=a.name,r.push({strategy:a.name,syncPoint:s}))}return r}},{key:"selectSyncPoint_",value:function(t,e){for(var n=t[0].syncPoint,i=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,o=1;o<t.length;o++){var a=Math.abs(t[o].syncPoint[e.key]-e.value);a<i&&(i=a,n=t[o].syncPoint,r=t[o].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+"]"),n}},{key:"saveExpiredSegmentInfo",value:function(t,e){for(var n=e.mediaSequence-t.mediaSequence-1;0<=n;n--){var i=t.segments[n];if(i&&void 0!==i.start){e.syncInfo={mediaSequence:t.mediaSequence+n,time:i.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(t){if(!this.datetimeToDisplayTime&&t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var e=t.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-e}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(t){var e,n=t.segment,i=t.playlist;return(e=n.map?this.probeMp4Segment_(t):this.probeTsSegment_(t))&&this.calculateSegmentTimeMapping_(t,e)&&(this.saveDiscontinuitySyncInfo_(t),i.syncInfo||(i.syncInfo={mediaSequence:i.mediaSequence+t.mediaIndex,time:n.start})),e}},{key:"probeMp4Segment_",value:function(t){var e=t.segment,n=Ds.timescale(e.map.bytes),i=Ds.compositionStartTime(n,t.bytes);return null!==t.timestampOffset&&(t.timestampOffset-=i),{start:i,end:i+e.duration}}},{key:"probeTsSegment_",value:function(t){var e=function(t,e){var n;return(n=el.aac.isLikelyAacData(t)?function(t){for(var e,n=!1,i=0,r=null,o=null,a=0,s=0;3<=t.length-s;){switch(el.aac.parseType(t,s)){case"timed-metadata":if(t.length-s<10){n=!0;break}if((a=el.aac.parseId3TagSize(t,s))>t.length){n=!0;break}null===o&&(e=t.subarray(s,s+a),o=el.aac.parseAacTimestamp(e)),s+=a;break;case"audio":if(t.length-s<7){n=!0;break}if((a=el.aac.parseAdtsSize(t,s))>t.length){n=!0;break}null===r&&(e=t.subarray(s,s+a),r=el.aac.parseSampleRate(e)),i++,s+=a;break;default:s++}if(n)return null}if(null===r||null===o)return null;var l=rl/r;return{audio:[{type:"audio",dts:o,pts:o},{type:"audio",dts:o+1024*i*l,pts:o+1024*i*l}]}}(t):function(t){var e={pid:null,table:null},n={};for(var i in function(t,e){for(var n,i=0,r=ol;r<t.byteLength;)if(71!==t[i]||71!==t[r])i++,r++;else{switch(n=t.subarray(i,r),el.ts.parseType(n,e.pid)){case"pat":e.pid||(e.pid=el.ts.parsePat(n));break;case"pmt":e.table||(e.table=el.ts.parsePmt(n))}if(e.pid&&e.table)return;i+=ol,r+=ol}}(t,e),e.table)if(e.table.hasOwnProperty(i))switch(e.table[i]){case 27:n.video=[],il(t,e,n),0===n.video.length&&delete n.video;break;case 15:n.audio=[],nl(t,e,n),0===n.audio.length&&delete n.audio}return n}(t))&&(n.audio||n.video)?(function(t,e){if(t.audio&&t.audio.length){var n=e;void 0===n&&(n=t.audio[0].dts),t.audio.forEach((function(t){t.dts=tl(t.dts,n),t.pts=tl(t.pts,n),t.dtsTime=t.dts/rl,t.ptsTime=t.pts/rl}))}if(t.video&&t.video.length){var i=e;if(void 0===i&&(i=t.video[0].dts),t.video.forEach((function(t){t.dts=tl(t.dts,i),t.pts=tl(t.pts,i),t.dtsTime=t.dts/rl,t.ptsTime=t.pts/rl})),t.firstKeyFrame){var r=t.firstKeyFrame;r.dts=tl(r.dts,i),r.pts=tl(r.pts,i),r.dtsTime=r.dts/rl,r.ptsTime=r.dts/rl}}}(n,e),n):null}(t.bytes,this.inspectCache_),n=void 0,i=void 0,r=void 0;return e?(e.video&&2===e.video.length?(this.inspectCache_=e.video[1].dts,n=e.video[0].dtsTime,i=e.video[1].dtsTime,r=e.video):e.audio&&2===e.audio.length&&(this.inspectCache_=e.audio[1].dts,n=e.audio[0].dtsTime,i=e.audio[1].dtsTime,r=e.audio),{segmentTimestampInfo:r,start:n,end:i,containsVideo:e.video&&2===e.video.length,containsAudio:e.audio&&2===e.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].time}},{key:"mappingForTimeline",value:function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping}},{key:"calculateSegmentTimeMapping_",value:function(t,e){var n=t.segment,i=this.timelines[t.timeline];if(null!==t.timestampOffset)i={time:t.startOfSegment,mapping:t.startOfSegment-e.start},this.timelines[t.timeline]=i,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+i.time+"] [mapping: "+i.mapping+"]"),n.start=t.startOfSegment,n.end=e.end+i.mapping;else{if(!i)return!1;n.start=e.start+i.mapping,n.end=e.end+i.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(t){var e=t.playlist,n=t.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(e.discontinuityStarts&&e.discontinuityStarts.length)for(var i=0;i<e.discontinuityStarts.length;i++){var r,o=e.discontinuityStarts[i],a=e.discontinuitySequence+i+1,s=o-t.mediaIndex,l=Math.abs(s);(!this.discontinuities[a]||this.discontinuities[a].accuracy>l)&&(r=s<0?n.start-Rl(e,t.mediaIndex,o):n.end+Rl(e,t.mediaIndex+1,o),this.discontinuities[a]={time:r,accuracy:l})}}},{key:"dispose",value:function(){this.trigger("dispose"),this.off()}}]),Tu);function Tu(){wl(this,Tu);var t=kl(this,(Tu.__proto__||Object.getPrototypeOf(Tu)).call(this));return t.inspectCache_=void 0,t.timelines=[],t.discontinuities=[],t.datetimeToDisplayTime=null,t.logger_=Zc("SyncController"),t}function Su(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)}function Cu(t,e){(e.activePlaylistLoader=t).load()}var ku=new Cc("./decrypter-worker.worker.js",(function(t,e){var n,i,r,o,a,s,c;function u(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 i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t){u(this,h),i=i||function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],n=t[1],i=e[4],r=n[4],o=void 0,a=void 0,s=void 0,l=[],c=[],u=void 0,d=void 0,h=void 0,p=void 0,f=void 0;for(o=0;o<256;o++)c[(l[o]=o<<1^283*(o>>7))^o]=o;for(a=s=0;!i[a];a^=u||1,s=c[s]||1)for(h=(h=s^s<<1^s<<2^s<<3^s<<4)>>8^255&h^99,f=16843009*l[d=l[u=l[r[i[a]=h]=a]]]^65537*d^257*u^16843008*a,p=257*l[h]^16843008*h,o=0;o<4;o++)e[o][a]=p=p<<24^p>>>8,n[o][h]=f=f<<24^f>>>8;for(o=0;o<5;o++)e[o]=e[o].slice(0),n[o]=n[o].slice(0);return t}(),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];var e=void 0,n=void 0,r=void 0,o=void 0,a=void 0,s=this._tables[0][4],l=this._tables[1],c=t.length,d=1;if(4!==c&&6!==c&&8!==c)throw new Error("Invalid aes key size");for(o=t.slice(0),a=[],this._key=[o,a],e=c;e<4*c+28;e++)r=o[e-1],(e%c==0||8===c&&e%c==4)&&(r=s[r>>>24]<<24^s[r>>16&255]<<16^s[r>>8&255]<<8^s[255&r],e%c==0&&(r=r<<8^r>>>24^d<<24,d=d<<1^283*(d>>7))),o[e]=o[e-c]^r;for(n=0;e;n++,e--)r=o[3&n?e:e-4],a[n]=e<=4||n<4?r:l[0][s[r>>>24]]^l[1][s[r>>16&255]]^l[2][s[r>>8&255]]^l[3][s[255&r]]}function p(){u(this,p),this.listeners={}}function f(){u(this,f);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=l(e)&&"function"!=typeof e?t:e}(this,a.call(this,o));return t.jobs=[],t.delay=1,t.timeout_=null,t}function m(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24}function g(t,e,n,i){u(this,g);var r=g.STEP,o=new Int32Array(t.buffer),a=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new s,this.asyncStream_.push(this.decryptChunk_(o.subarray(l,l+r),e,n,a)),l=r;l<o.length;l+=r)n=new Uint32Array([m(o[l-4]),m(o[l-3]),m(o[l-2]),m(o[l-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(l,l+r),e,n,a));this.asyncStream_.push((function(){i(null,function(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}(a))}))}n=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t},i=null,h.prototype.decrypt=function(t,e,n,i,r,o){var a=this._key[1],s=t^a[0],l=i^a[1],c=n^a[2],u=e^a[3],d=void 0,h=void 0,p=void 0,f=a.length/4-2,m=void 0,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],w=v[3],T=v[4];for(m=0;m<f;m++)d=y[s>>>24]^b[l>>16&255]^_[c>>8&255]^w[255&u]^a[g],h=y[l>>>24]^b[c>>16&255]^_[u>>8&255]^w[255&s]^a[g+1],p=y[c>>>24]^b[u>>16&255]^_[s>>8&255]^w[255&l]^a[g+2],u=y[u>>>24]^b[s>>16&255]^_[l>>8&255]^w[255&c]^a[g+3],g+=4,s=d,l=h,c=p;for(m=0;m<4;m++)r[(3&-m)+o]=T[s>>>24]<<24^T[l>>16&255]<<16^T[c>>8&255]<<8^T[255&u]^a[g++],d=s,s=l,l=c,c=u,u=d},r=h,p.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},p.prototype.off=function(t,e){if(!this.listeners[t])return!1;var n=this.listeners[t].indexOf(e);return this.listeners[t].splice(n,1),-1<n},p.prototype.trigger=function(t,e){var n=this.listeners[t];if(n)if(2===arguments.length)for(var i=n.length,r=0;r<i;++r)n[r].call(this,e);else for(var o=Array.prototype.slice.call(arguments,1),a=n.length,s=0;s<a;++s)n[s].apply(this,o)},p.prototype.dispose=function(){this.listeners={}},p.prototype.pipe=function(t){this.on("data",(function(e){t.push(e)}))},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+l(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(f,a=o=p),f.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},f.prototype.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},s=f,g.prototype.decryptChunk_=function(t,e,n,i){return function(){var o=function(t,e,n){var i=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),o=new r(Array.prototype.slice.call(e)),a=new Uint8Array(t.byteLength),s=new Int32Array(a.buffer),l=void 0,c=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,v=void 0;for(l=n[0],c=n[1],u=n[2],d=n[3],v=0;v<i.length;v+=4)h=m(i[v]),p=m(i[v+1]),f=m(i[v+2]),g=m(i[v+3]),o.decrypt(h,p,f,g,s,v),s[v]=m(s[v]^l),s[v+1]=m(s[v+1]^c),s[v+2]=m(s[v+2]^u),s[v+3]=m(s[v+3]^d),l=h,c=p,u=f,d=g;return a}(t,e,n);i.set(o,t.byteOffset)}},n(g,null,[{key:"STEP",get:function(){return 32e3}}]),c=g,new function(t){t.onmessage=function(e){var n=e.data,i=new Uint8Array(n.encrypted.bytes,n.encrypted.byteOffset,n.encrypted.byteLength),r=new Uint32Array(n.key.bytes,n.key.byteOffset,n.key.byteLength/4),o=new Uint32Array(n.iv.bytes,n.iv.byteOffset,n.iv.byteLength/4);new c(i,r,o,(function(e,i){t.postMessage(function(t){var e={};return Object.keys(t).forEach((function(n){var i=t[n];ArrayBuffer.isView(i)?e[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[n]=i})),e}({source:n.source,decrypted:i}),[i.buffer])}))}}(this)})),xu={AUDIO:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t],r=e.blacklistCurrentPlaylist;Su(n,i);var o=i.activeTrack(),a=i.activeGroup(),s=(a.filter((function(t){return t.default}))[0]||a[0]).id,l=i.tracks[s];if(o!==l){for(var c in Zr.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[c].enabled=i.tracks[c]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var n=e.segmentLoaders[t],i=e.mediaTypes[t];Zr.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Su(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Eu={AUDIO:function(t,e,n){if(e){var i=n.tech,r=n.requestOptions,o=n.segmentLoaders[t];e.on("loadedmetadata",(function(){var t=e.media();o.playlist(t,r),(!i.paused()||t.endList&&"none"!==i.preload())&&o.load()})),e.on("loadedplaylist",(function(){o.playlist(e.media(),r),i.paused()||o.load()})),e.on("error",xu[t](t,n))}},SUBTITLES:function(t,e,n){var i=n.tech,r=n.requestOptions,o=n.segmentLoaders[t],a=n.mediaTypes[t];e.on("loadedmetadata",(function(){var t=e.media();o.playlist(t,r),o.track(a.activeTrack()),(!i.paused()||t.endList&&"none"!==i.preload())&&o.load()})),e.on("loadedplaylist",(function(){o.playlist(e.media(),r),i.paused()||o.load()})),e.on("error",xu[t](t,n))}},$u={AUDIO:function(t,e){var n,i,r=e.hls,o=e.sourceType,a=e.segmentLoaders[t],s=e.requestOptions,l=e.master.mediaGroups,c=e.mediaTypes[t],u=c.groups,d=c.tracks,h=e.masterPlaylistLoader;for(var p in l[t]&&0!==Object.keys(l[t]).length||(l[t]={main:{default:{default:!0}}}),l[t])for(var f in u[p]||(u[p]=[]),l[t][p]){var m,g=l[t][p][f];if(m=g.resolvedUri?new Ml(g.resolvedUri,r,s):g.playlists&&"dash"===o?new Qc(g.playlists[0],r,s,h):null,g=Zr.mergeOptions({id:f,playlistLoader:m},g),Eu[t](t,g.playlistLoader,e),u[p].push(g),void 0===d[f]){var v=new Zr.AudioTrack({id:f,kind:(n=g,i=void 0,i=n.default?"main":"alternative",n.characteristics&&0<=n.characteristics.indexOf("public.accessibility.describes-video")&&(i="main-desc"),i),enabled:!1,language:g.language,default:g.default,label:f});d[f]=v}}a.on("error",xu[t](t,e))},SUBTITLES:function(t,e){var n=e.tech,i=e.hls,r=e.sourceType,o=e.segmentLoaders[t],a=e.requestOptions,s=e.master.mediaGroups,l=e.mediaTypes[t],c=l.groups,u=l.tracks,d=e.masterPlaylistLoader;for(var h in s[t])for(var p in c[h]||(c[h]=[]),s[t][h])if(!s[t][h][p].forced){var f=s[t][h][p],m=void 0;if("hls"===r?m=new Ml(f.resolvedUri,i,a):"dash"===r&&(m=new Qc(f.playlists[0],i,a,d)),f=Zr.mergeOptions({id:p,playlistLoader:m},f),Eu[t](t,f.playlistLoader,e),c[h].push(f),void 0===u[p]){var g=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;u[p]=g}}o.on("error",xu[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var n=e.tech,i=e.master.mediaGroups,r=e.mediaTypes[t],o=r.groups,a=r.tracks;for(var s in i[t])for(var l in o[s]||(o[s]=[]),i[t][s]){var c=i[t][s][l];if(c.instreamId.match(/CC\d/)&&(o[s].push(Zr.mergeOptions({id:l},c)),void 0===a[l])){var u=n.addRemoteTextTrack({id:c.instreamId,
2kind:"captions",default:c.default&&c.autoselect,language:c.language,label:l},!1).track;a[l]=u}}}},Iu={AUDIO:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(t,e){return function(){var n=e.mediaTypes[t].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},Ou=void 0,Au=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],Pu=(Cl(Du,Zr.EventTarget),Tl(Du,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;Xl(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){$u[e](e,t)}));var e=t.mediaTypes,n=t.masterPlaylistLoader,i=t.tech,r=t.hls;["AUDIO","SUBTITLES"].forEach((function(n){e[n].activeGroup=function(t,e){return function(n){var i=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,o=i.media();if(!o)return null;var a=null;return o.attributes[t]&&(a=r[o.attributes[t]]),a=a||r.main,void 0===n?a:null===n?null:a.filter((function(t){return t.id===n.id}))[0]||null}}(n,t),e[n].activeTrack=Iu[n](n,t),e[n].onGroupChanged=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,o=e.mediaTypes[t],a=o.activeTrack(),s=o.activeGroup(a),l=o.activePlaylistLoader;Su(i,o),s&&(s.playlistLoader?(i.resyncLoader(),Cu(s.playlistLoader,o)):l&&r.resetEverything())}}(n,t),e[n].onTrackChanged=function(t,e){return function(){var n=e.segmentLoaders,i=n[t],r=n.main,o=e.mediaTypes[t],a=o.activeTrack(),s=o.activeGroup(a),l=o.activePlaylistLoader;Su(i,o),s&&(s.playlistLoader?(l!==s.playlistLoader&&(i.track&&i.track(a),i.resetEverything()),Cu(s.playlistLoader,o)):r.resetEverything())}}(n,t)}));var o=e.AUDIO.activeGroup(),a=(o.filter((function(t){return t.default}))[0]||o[0]).id;function s(){e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"hls-audio-change"})}for(var l in e.AUDIO.tracks[a].enabled=!0,e.AUDIO.onTrackChanged(),n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return e[t].onGroupChanged()}))})),i.audioTracks().addEventListener("change",s),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",s),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[l])}({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,hls:t.hls_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e);try{t.setupSourceBuffers_()}catch(e){return Zr.log.warn("Failed to create SourceBuffers",e),t.mediaSource.endOfStream("decode")}t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){t.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){var e=t.masterPlaylistLoader_.media();if(!e){t.excludeUnsupportedVariants_();var n=void 0;return t.enableLowInitialPlaylist&&(n=t.selectInitialPlaylist()),n=n||t.selectPlaylist(),t.initialMedia_=n,void t.masterPlaylistLoader_.media(t.initialMedia_)}if(t.useCueTags_&&t.updateAdCues_(e),t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.updateDuration(),t.tech_.paused()||(t.mainSegmentLoader_.load(),t.audioSegmentLoader_&&t.audioSegmentLoader_.load()),!e.endList){var i=function(){var e=t.seekable();0!==e.length&&t.mediaSource.addSeekableRange_(e.start(0),e.end(0))};t.duration()!==1/0?t.tech_.one("durationchange",(function e(){t.duration()===1/0?i():t.tech_.one("durationchange",e)})):i()}})),this.masterPlaylistLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var e=t.masterPlaylistLoader_.media(),n=1.5*e.targetDuration*1e3;Xl(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=n,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var e=t.masterPlaylistLoader_.media();t.stuckAtPlaylistEnd_(e)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),t.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))}},{key:"triggerPresenceUsage_",value:function(t,e){var n=t.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var o in n.AUDIO)for(var a in n.AUDIO[o])n.AUDIO[o][a].uri||(i=!1);i&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),Ou.Playlist.isAes(e)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),Ou.Playlist.isFmp4(e)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),r.length&&1<Object.keys(n.AUDIO[r[0]]).length&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var t=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){var e=t.selectPlaylist(),n=t.masterPlaylistLoader_.media(),i=t.tech_.buffered();!function(t){var e=t.currentPlaylist,n=t.nextPlaylist,i=t.forwardBuffer,r=t.bufferLowWaterLine,o=t.duration;return n?!e.endList||o<cu.MAX_BUFFER_LOW_WATER_LINE||n.attributes.BANDWIDTH<e.attributes.BANDWIDTH||r<=i:(Zr.log.warn("We received no playlist to switch to. Please check your stream."),!1)}({currentPlaylist:n,nextPlaylist:e,forwardBuffer:i.length?i.end(i.length-1)-t.tech_.currentTime():0,bufferLowWaterLine:t.bufferLowWaterLine(),duration:t.duration(),log:t.logger_})||t.masterPlaylistLoader_.media(e),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}
2)),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("ended",(function(){t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(){t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120)})),this.mainSegmentLoader_.on("reseteverything",(function(){t.tech_.trigger("hls-reset")})),this.mainSegmentLoader_.on("segmenttimemapping",(function(e){t.tech_.trigger({type:"hls-segment-time-mapping",mapping:e.mapping})})),this.audioSegmentLoader_.on("ended",(function(){t.onEndOfStream()}))}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var t=this,e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetEverything((function(){Zr.browser.IE_VERSION||Zr.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList){var n=this.seekable();if(!n.length)return!1;if(Zr.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){t.trigger("firstplay"),t.tech_.setCurrentTime(n.end(0)),t.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(t){return Zr.log.warn("Failed to create Source Buffers",t),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,(function(t){}))}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),t){this.logger_("calling mediaSource.endOfStream()");try{this.mediaSource.endOfStream()}catch(t){Zr.log.warn("Failed to call media source endOfStream",t)}}}},{key:"stuckAtPlaylistEnd_",value:function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.mediaSource.duration);if(null===e)return!1;var n=Ou.Playlist.playlistEnd(t,e),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=.1;var o=r.end(r.length-1);return o-i<=.1&&n-o<=.1}},{key:"blacklistCurrentPlaylist",value:function(t,e){var n,i=0<arguments.length&&void 0!==t?t:{},r=e,o=void 0;if(o=i.playlist||this.masterPlaylistLoader_.media(),r=r||i.blacklistDuration||this.blackl
vendor: 12,935 bytes, line 2
2istDuration,!o){this.error=i;try{return this.mediaSource.endOfStream("network")}catch(t){return this.trigger("error")}}var a=1===this.masterPlaylistLoader_.master.playlists.filter(Wl).length,s=this.masterPlaylistLoader_.master.playlists;return 1===s.length?(Zr.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(a)):(a&&(Zr.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),s.forEach((function(t){t.excludeUntil!==1/0&&delete t.excludeUntil})),this.tech_.trigger("retryplaylist")),o.excludeUntil=Date.now()+1e3*r,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),n=this.selectPlaylist(),Zr.log.warn("Problem encountered with the current HLS playlist."+(i.message?" "+i.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(n,a))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(t){var e=oc(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:Ou.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var t=void 0;if(this.masterPlaylistLoader_){var e=this.masterPlaylistLoader_.media();if(e){var n=this.syncController_.getExpiredTime(e,this.mediaSource.duration);if(null!==n){var i=this.masterPlaylistLoader_.master.suggestedPresentationDelay,r=Ou.Playlist.seekable(e,n,i);if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(e=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(e,this.mediaSource.duration)))return;if(0===(t=Ou.Playlist.seekable(e,n,i)).length)return}var o=void 0,a=void 0;this.seekable_&&this.seekable_.length&&(o=this.seekable_.end(0),a=this.seekable_.start(0)),t?t.start(0)>r.end(0)||r.start(0)>t.end(0)?this.seekable_=r:this.seekable_=Zr.createTimeRanges([[t.start(0)>r.start(0)?t.start(0):r.start(0),t.end(0)<r.end(0)?t.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===o&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+sc(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}}},{key:"updateDuration",value:function(){function t(){e.logger_("Setting duration from "+e.mediaSource.duration+" => "+i);try{e.mediaSource.duration=i}catch(t){Zr.log.warn("Failed to set media source duration",t)}e.tech_.trigger("durationchange"),e.mediaSource.removeEventListener("sourceopen",t)}var e=this,n=this.mediaSource.duration,i=Ou.Playlist.duration(this.masterPlaylistLoader_.media()),r=this.tech_.buffered();0<r.length&&(i=Math.max(i,r.end(r.length-1))),n!==i&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",t):t())}},{key:"dispose",value:function(){var t=this;this.trigger("dispose"),this.decrypter_&&this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach((function(e){var n=t.mediaTypes_[e].groups;for(var i in n)n[i].forEach((function(t){t.playlistLoader&&t.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.off(),this.mediaSource.dispose&&this.mediaSource.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var t,e=this.masterPlaylistLoader_.media();if(e&&"open"===this.mediaSource.readyState){if((t=function(t,e){var n=function(t){return t.segments&&t.segments.length&&t.segments[0].map?"mp4":"mp2t"}(e),i=function(t){var e=t.attributes||{};return e.CODECS?Oc(e.CODECS):Nc}(e),r=e.attributes||{},o=!0,a=!1;if(!e)return[];if(t.mediaGroups.AUDIO&&r.AUDIO){var s=t.mediaGroups.AUDIO[r.AUDIO];if(s)for(var l in o=!(a=!0),s)if(!s[l].uri&&!s[l].playlists){o=!0;break}}a&&!i.audioProfile&&(o||(i.audioProfile=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var n=t.mediaGroups.AUDIO[e];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return Oc(r.playlists[0].attributes.CODECS).audioProfile}return null}(t,r.AUDIO)),i.audioProfile||(Zr.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),i.audioProfile=Nc.audioProfile));var c={};i.videoCodec&&(c.video=""+i.videoCodec+i.videoObjectTypeIndicator),i.audioProfile&&(c.audio="mp4a.40."+i.audioProfile);var u=Ac("audio",n,[c.audio]),d=Ac("video",n,[c.video]),h=Ac("video",n,[c.video,c.audio]);return a?!o&&c.video?[d,u]:o||c.video?[h,u]:[u,u]:c.video?[h]:[u]}(this.masterPlaylistLoader_.master,e)).length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+e.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(t),this.excludeIncompatibleVariants_(e)}}},{key:"configureLoaderMimeTypes_",value:function(t){var e=1<t.length&&-1===t[0].indexOf(",")&&t[0]!==t[1]?new Zr.EventTarget:null;this.mainSegmentLoader_.mimeType(t[0],e),t[1]&&this.audioSegmentLoader_.mimeType(t[1],e)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEach((function(e){e.attributes.CODECS&&t.MediaSource&&t.MediaSource.isTypeSupported&&!t.MediaSource.isTypeSupported('video/mp4; codecs="'+function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t){return Ic([t])[0]}))}(e.attributes.CODECS)+'"')&&(e.excludeUntil=1/0)}))}},{key:"excludeIncompatibleVariants_",value:function(t){var e=2,n=null,i=void 0;t.attributes.CODECS&&(i=Oc(t.attributes.CODECS),n=i.videoCodec,e=i.codecCount),this.master().playlists.forEach((function(t){var i={codecCount:2,videoCodec:null};t.attributes.CODECS&&(i=Oc(t.attributes.CODECS)),i.codecCount!==e&&(t.excludeUntil=1/0),i.videoCodec!==n&&(t.excludeUntil=1/0)}))}},{key:"updateAdCues_",value:function(e){var n=0,i=this.seekable();i.length&&(n=i.start(0)),function(e,n,i){var r=2<arguments.length&&void 0!==i?i:0;if(e.segments)for(var o=r,a=void 0,s=0;s<e.segments.length;s++){var l=e.segments[s];if(a=a||bu(n,o+l.duration/2)){if("cueIn"in l){a.endTime=o,a.adEndTime=o,o+=l.duration,a=null;continue}if(o<a.endTime){o+=l.duration;continue}a.endTime+=l.duration}else if("cueOut"in l&&((a=new t.VTTCue(o,o+l.duration,l.cueOut)).adStartTime=o,a.adEndTime=o+parseFloat(l.cueOut),n.addCue(a)),"cueOutCont"in l){var c,u,d=l.cueOutCont.split("/").map(parseFloat),h=Pl(d,2);c=h[0],u=h[1],(a=new t.VTTCue(o,o+l.duration,"")).adStartTime=o-c,a.adEndTime=a.adStartTime+u,n.addCue(a)}o+=l.duration}}(e,this.cueTagsTrack_,n)}},{key:"goalBufferLength",value:function(){var t=this.tech_.currentTime(),e=cu.GOAL_BUFFER_LENGTH,n=cu.GOAL_BUFFER_LENGTH_RATE,i=Math.max(e,cu.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*n,i)}},{key:"bufferLowWaterLine",value:function(){var t=this.tech_.currentTime(),e=cu.BUFFER_LOW_WATER_LINE,n=cu.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(e,cu.MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*n,i)}}]),Du);function Du(t){wl(this,Du);var e=kl(this,(Du.__proto__||Object.getPrototypeOf(Du)).call(this)),n=t.url,i=t.handleManifestRedirects,r=t.withCredentials,o=t.tech,a=t.bandwidth,s=t.externHls,l=t.useCueTags,c=t.blacklistDuration,u=t.enableLowInitialPlaylist,d=t.cacheEncryptionKeys,h=t.sourceType;if(!n)throw new Error("A non-empty playlist URL is required");Ou=s,e.withCredentials=r,e.tech_=o,e.hls_=o.hls,e.sourceType_=h,e.useCueTags_=l,e.blacklistDuration=c,e.enableLowInitialPlaylist=u,e.useCueTags_&&(e.cueTagsTrack_=e.tech_.addTextTrack("metadata","ad-cues"),e.cueTagsTrack_.inBandMetadataTrackDispatchType=""),e.requestOptions_={withCredentials:r,handleManifestRedirects:i,timeout:null},e.mediaTypes_=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:tu,activeTrack:tu,onGroupChanged:tu,onTrackChanged:tu}})),t}(),e.mediaSource=new Zr.MediaSource,e.mediaSource.addEventListener("sourceopen",e.handleSourceOpen_.bind(e)),e.seekable_=Zr.createTimeRanges(),e.hasPlayed_=!1,e.syncController_=new wu(t),e.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,e.decrypter_=new ku,e.inbandTextTracks_={};var p={hls:e.hls_,mediaSource:e.mediaSource,currentTime:e.tech_.currentTime.bind(e.tech_),seekable:function(){return e.seekable()},seeking:function(){return e.tech_.seeking()},duration:function(){return e.mediaSource.duration},hasPlayed:function(){return e.hasPlayed_},goalBufferLength:function(){return e.goalBufferLength()},bandwidth:a,syncController:e.syncController_,decrypter:e.decrypter_,sourceType:e.sourceType_,inbandTextTracks:e.inbandTextTracks_,cacheEncryptionKeys:d};return e.masterPlaylistLoader_="dash"===e.sourceType_?new Qc(n,e.hls_,e.requestOptions_):new Ml(n,e.hls_,e.requestOptions_),e.setupMasterPlaylistLoaderListeners_(),e.mainSegmentLoader_=new pu(Zr.mergeOptions(p,{segmentMetadataTrack:e.segmentMetadataTrack_,loaderType:"main"}),t),e.audioSegmentLoader_=new pu(Zr.mergeOptions(p,{loaderType:"audio"}),t),e.subtitleSegmentLoader_=new vu(Zr.mergeOptions(p,{loaderType:"vtt",featuresNativeTextTracks:e.tech_.featuresNativeTextTracks}),t),e.setupSegmentLoaderListeners_(),Au.forEach((function(t){e[t+"_"]=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]}.bind(e,t)})),e.logger_=Zc("MPC"),e.masterPlaylistLoader_.load(),e}function Lu(t,e,n){wl(this,Lu);var i=t.masterPlaylistController_,r=i[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(i);if(e.attributes.RESOLUTION){var o=e.attributes.RESOLUTION;this.width=o.width,this.height=o.height}this.bandwidth=e.attributes.BANDWIDTH,this.id=n,this.enabled=function(t,e,n){return function(i){var r=t.master.playlists[e],o=Vl(r),a=Wl(r);return void 0===i?a:(i?delete r.disabled:r.disabled=!0,i===a||o||(n(),i?t.trigger("renditionenabled"):t.trigger("renditiondisabled")),i)}}(t.playlists,e.id,r)}var Mu=["seeking","seeked","pause","playing","error"],Nu=(Tl(ju,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&t.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=t.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+.1>=e.end(e.length-1)))return this.techWaiting_();5<=this.consecutiveUpdates&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){if(!this.tech_.seeking())return!1;var t=this.seekable(),e=this.tech_.currentTime(),n=void 0;return this.afterSeekableWindow_(t,e,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(n=t.end(t.length-1)),this.beforeSeekableWindow_(t,e)&&(n=t.start(0)+.1),void 0!==n&&(this.logger_("Trying to seek outside of seekable at time "+e+" with seekable range "+sc(t)+". Seeking to "+n+"."),this.tech_.setCurrentTime(n),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=oc(this.tech_.buffered(),t);return e.length&&t+3<=e.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+e.start(0)+" -> "+e.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;
2if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var n=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.buffered(),r=ac(i,e);if(this.videoUnderflow_(r,i,e))return this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(0<r.length){var o=r.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+o+", seeking to "+r.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,e),!0}return!1}},{key:"afterSeekableWindow_",value:function(t,e,n,i){var r=3<arguments.length&&void 0!==i&&i;if(!t.length)return!1;var o=t.end(t.length-1)+.1;return!n.endList&&r&&(o=t.end(t.length-1)+3*n.targetDuration),o<e}},{key:"beforeSeekableWindow_",value:function(t,e){return!!(t.length&&0<t.start(0)&&e<t.start(0)-.1)}},{key:"videoUnderflow_",value:function(t,e,n){if(0===t.length){var i=this.gapFromVideoUnderflow_(e,n);if(i)return this.logger_("Encountered a gap in video from "+i.start+" to "+i.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(t){var e=this.tech_.buffered(),n=this.tech_.currentTime(),i=ac(e,n);this.cancelTimer_(),0!==i.length&&n===t&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",t,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+1/30),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(t,e){for(var n=function(t){if(t.length<2)return Zr.createTimeRanges();for(var e=[],n=1;n<t.length;n++){var i=t.end(n-1),r=t.start(n);e.push([i,r])}return Zr.createTimeRanges(e)}(t),i=0;i<n.length;i++){var r=n.start(i),o=n.end(i);if(e-r<4&&2<e-r)return{start:r,end:o}}return null}}]),ju);function ju(e){var n=this;function i(){return n.monitorCurrentTime_()}function r(){return n.techWaiting_()}function o(){return n.cancelTimer_()}function a(){return n.fixesBadSeeks_()}wl(this,ju),this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Zc("PlaybackWatcher"),this.logger_("initialize"),this.tech_.on("seekablechanged",a),this.tech_.on("waiting",r),this.tech_.on(Mu,o),this.tech_.on("canplay",i),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",a),n.tech_.off("waiting",r),n.tech_.off(Mu,o),n.tech_.off("canplay",i),n.checkCurrentTimeTimeout_&&t.clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}function Uu(t){!function t(e,n){var i=0,r=0,o=Zr.mergeOptions(Ru,n);function a(){r&&e.currentTime(r)}function s(t){null!=t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())}function l(){if(Date.now()-i<1e3*o.errorInterval)e.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(o.getSource&&"function"==typeof o.getSource)return i=Date.now(),o.getSource.call(e,s);Zr.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}}function c(){e.off("loadedmetadata",a),e.off("error",l),e.off("dispose",c)}e.ready((function(){e.trigger({type:"usage",name:"hls-error-reload-initialized"})})),e.on("error",l),e.on("dispose",c),e.reloadSourceOnError=function(n){c(),t(e,n)}}(this,t)}var Ru={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_)}},Bu={PlaylistLoader:Ml,Playlist:fc,Decrypter:vl,AsyncStream:pl,decrypt:gl,utils:vc,STANDARD_PLAYLIST_SELECTOR:function(){var e=this.useDevicePixelRatio&&t.devicePixelRatio||1;return function(e,n,i,r,o){var a=e.playlists.map((function(e){var n,i;return n=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,{bandwidth:e.attributes.BANDWIDTH||t.Number.MAX_VALUE,width:n,height:i,playlist:e}}));au(a,(function(t,e){return t.bandwidth-e.bandwidth}));var s=(a=a.filter((function(t){return!fc.isIncompatible(t.playlist)}))).filter((function(t){return fc.isEnabled(t.playlist)}));s.length||(s=a.filter((function(t){return!fc.isDisabled(t.playlist)})));var l=s.filter((function(t){return t.bandwidth*cu.BANDWIDTH_VARIANCE<n})),c=l[l.length-1],u=l.filter((function(t){return t.bandwidth===c.bandwidth}))[0];if(!1===o){var d=u||s[0]||a[0];return d?d.playlist:null}var h=l.filter((function(t){return t.width&&t.height}));au(h,(function(t,e){return t.width-e.width}));var p=h.filter((function(t){return t.width===i&&t.height===r}));c=p[p.length-1];var f=p.filter((function(t){return t.bandwidth===c.bandwidth}))[0],m=void 0,g=void 0,v=void 0;f||(g=(m=h.filter((function(t){return t.width>i||t.height>r}))).filter((function(t){return t.width===m[0].width&&t.height===m[0].height})),c=g[g.length-1],v=g.filter((function(t){return t.bandwidth===c.bandwidth}))[0]);var y=v||f||u||s[0]||a[0];return y?y.playlist:null}(this.playlists.master,this.systemBandwidth,parseInt(ou(this.tech_.el(),"width"),10)*e,parseInt(ou(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions)},INITIAL_PLAYLIST_SELECTOR:function(){var t=this.playlists.master.playlists.filter(fc.isEnabled);return au(t,(function(t,e){return su(t,e)})),t.filter((function(t){return Oc(t.attributes.CODECS).videoCodec}))[0]||null},comparePlaylistBandwidth:su,comparePlaylistResolution:function(e,n){var i=void 0,r=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||t.Number.MAX_VALUE,n.attributes.RESOLUTION&&n.attributes.RESOLUTION.width&&(r=n.attributes.RESOLUTION.width),i===(r=r||t.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&n.attributes.BANDWIDTH?e.attributes.BANDWIDTH-n.attributes.BANDWIDTH:i-r},xhr:Yl()};function Fu(t){return/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(t)?"hls":/^application\/dash\+xml/i.test(t)?"dash":null}function zu(t,e){for(var n=e.media(),i=-1,r=0;r<t.length;r++)if(t[r].id===n.id){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})}["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach((function(t){Object.defineProperty(Bu,t,{get:function(){return Zr.log.warn("using Hls."+t+" is UNSAFE be sure you know
2what you are doing"),cu[t]},set:function(e){Zr.log.warn("using Hls."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?Zr.log.warn("value of Hls."+t+" must be greater than or equal to 0"):cu[t]=e}})}));var Hu="videojs-vhs";function qu(){if(!window.localStorage)return null;var t=window.localStorage.getItem(Hu);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}Bu.canPlaySource=function(){return Zr.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")},Bu.supportsNativeHls=function(){var t=e.createElement("video");return!!Zr.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(e){return/maybe|probably/i.test(t.canPlayType(e))}))}(),Bu.supportsNativeDash=!!Zr.getTech("Html5").isSupported()&&/maybe|probably/i.test(e.createElement("video").canPlayType("application/dash+xml")),Bu.supportsTypeNatively=function(t){return"hls"===t?Bu.supportsNativeHls:"dash"===t&&Bu.supportsNativeDash},Bu.isSupported=function(){return Zr.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Vu=(Cl(Wu,Zr.getComponent("Component")),Tl(Wu,[{key:"setOptions_",value:function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var e=qu();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=cu.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===cu.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys"].forEach((function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}},{key:"src",value:function(t,e){var n=this;t&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=Bu,this.options_.sourceType=Fu(e),this.options_.seekTo=function(t){n.tech_.setCurrentTime(t)},this.masterPlaylistController_=new Pu(this.options_),this.playbackWatcher_=new Nu(Zr.mergeOptions(this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()}})),this.masterPlaylistController_.on("error",(function(){Zr.players[n.tech_.options_.playerId].error(n.masterPlaylistController_.error)})),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):Bu.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Bu.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
2,set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t,e=1/(this.bandwidth||1);return t=0<this.throughput?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){Zr.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return lc(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return lc(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(t){if(window.localStorage){var e=qu();e=e?Zr.mergeOptions(e,t):t;try{window.localStorage.setItem(Hu,JSON.stringify(e))}catch(t){return}}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){!function(t){var e=t.playlists;t.representations=function(){return e&&e.master&&e.master.playlists?e.master.playlists.filter((function(t){return!Vl(t)})).map((function(e,n){return new Lu(t,e,e.id)})):[]}}(n),function(t){var e=t.masterPlaylistController_.mainSegmentLoader_,n=t.masterPlaylistController_.audioSegmentLoader_,i=Zr.players[t.tech_.options_.playerId];if(i.eme){var r=function(t,e,n){if(!t)return t;var i=void 0,r=void 0;if(n.mimeType_)i=e.mimeType_,r=n.mimeType_;else{var o=Pc(e.mimeType_),a=o.parameters.codecs.split(","),s=void 0,l=void 0;a.forEach((function(t){Dc(t=t.trim())?s=t:Lc(t)&&(l=t)})),i=o.type+'; codecs="'+l+'"',r=o.type.replace("video","audio")+'; codecs="'+s+'"'}var c={},u=e.playlist_;for(var d in t)c[d]={audioContentType:r,videoContentType:i},u.contentProtection&&u.contentProtection[d]&&u.contentProtection[d].pssh&&(c[d].pssh=u.contentProtection[d].pssh),"string"==typeof t[d]&&(c[d].url=t[d]);return Zr.mergeOptions(t,c)}(t.source_.keySystems,e,n);r&&(i.currentSource().keySystems=r,11!==Zr.browser.IE_VERSION&&i.eme.initializeMediaKeys&&i.eme.initializeMediaKeys())}}(n)})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&this.tech_.src(Zr.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var t=this,e=Zr.players[this.tech_.options_.playerId];
vendor: 5,448 bytes, line 2
2e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){!function(t,e){e.representations().forEach((function(e){t.addQualityLevel(e)})),zu(t,e.playlists)}(t.qualityLevels_,t)})),this.playlists.on("mediachange",(function(){zu(t.qualityLevels_,t.playlists)})))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(t){this.masterPlaylistController_.setCurrentTime(t)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0}(Wu.prototype.__proto__||Object.getPrototypeOf(Wu.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(t,e){return function(t){var e=t.playlist,n=t.time,i=void 0===n?void 0:n,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var o=function(t,e){if(!e||!e.segments||0===e.segments.length)return null;for(var n=0,i=void 0,r=0;r<e.segments.length&&!(t<=(n=(i=e.segments[r]).videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration));r++);var o=e.segments[e.segments.length-1];if(o.videoTimingInfo&&o.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(n<t){if(t>n+.25*o.duration)return null;i=o}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}}(i,e);if(!o)return r({message:"valid programTime was not found"});if("estimate"===o.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var a={mediaSeconds:i},s=function(t,e){if(!e.dateTimeObject)return null;var n=e.videoTimingInfo.transmuxerPrependedSeconds,i=t-(e.videoTimingInfo.transmuxedPresentationStart+n);return new Date(e.dateTimeObject.getTime()+1e3*i)}(i,o.segment);return s&&(a.programDateTime=s.toISOString()),r(null,a)}({playlist:this.masterPlaylistController_.media(),time:t,callback:e})}},{key:"seekToProgramTime",value:function(t,e,n,i){var r=!(2<arguments.length&&void 0!==n)||n,o=3<arguments.length&&void 0!==i?i:2;return ic({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:o,pauseAfterSeek:r,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:e})}}]),Wu);function Wu(t,n,i){wl(this,Wu);var r=kl(this,(Wu.__proto__||Object.getPrototypeOf(Wu)).call(this,n,i.hls));if(n.options_&&n.options_.playerId){var o=Zr(n.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return Zr.log.warn("player.hls is deprecated. Use player.tech().hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),r},configurable:!0}),o.vhs=r,(o.dash=r).player_=o}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(e,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(t){var n=e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement;n&&n.contains(r.tech_.el())&&r.masterPlaylistController_.smoothQualityChange_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}var Gu={name:"videojs-http-streaming",VERSION:"1.13.2",canHandleSource:function(t,e){var n=Zr.mergeOptions(Zr.options,1<arguments.length&&void 0!==e?e:{});return Gu.canPlayType(t.type,n)},handleSource:function(t,e,n){var i=Zr.mergeOptions(Zr.options,2<arguments.length&&void 0!==n?n:{});return e.hls=new Vu(t,e,i),e.hls.xhr=Yl(),e.hls.src(t.src,t.type),e.hls},canPlayType:function(t,e){var n=Zr.mergeOptions(Zr.options,1<arguments.length&&void 0!==e?e:{}).hls.overrideNative,i=Fu(t);return!i||Bu.supportsTypeNatively(i)&&!n?"":"maybe"}};return void 0!==Zr.MediaSource&&void 0!==Zr.URL||(Zr.MediaSource=qc,Zr.URL=Vc),qc.supportsNativeMediaSources()&&Zr.getTech("Html5").registerSourceHandler(Gu,0),Zr.HlsHandler=Vu,Zr.HlsSourceHandler=Gu,Zr.Hls=Bu,Zr.use||Zr.registerComponent("Hls",Bu),Zr.options.hls=Zr.options.hls||{},Zr.registerPlugin?Zr.registerPlugin("reloadSourceOnError",Uu):Zr.plugin("reloadSourceOnError",Uu),Zr}
2,"object"==l(e)?t.exports=a(n(86764),n(61540)):(r=[n(86764),n(61540)],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o))},29628:(t,e,n)=>{var i=n(87748),r=n(28600).getIntegrationSettings();(r.cybersourceCartridgeEnabled||r.adyenCartridgeEnabled)&&(i.baseFiles.applepay=n(51964)),i.baseFiles.paypalUtils=n(5698),t.exports=i},51964:t=>{function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports={methods:{afterApplePayTagReplacement:function(t){var e,n=$(".nav-item.applepay-tab-wrapper");1===n.length&&n.removeAttr("hidden"),(e=t&&t.target?$(t.target).find(".js-paymentmethodwarning-msgcontainer"):$("#applepay-content .js-paymentmethodwarning-msgcontainer"))&&(e.attr("data-iframepresent",!0),e.data("iframepresent",!0),$("body").trigger("PaymentMethodObserver:iframePresent"))}},updateAddToCart:function(){$("body").on("product:updateAddToCart",(function(t,e){var n=e.$productContainer.find("button.dw-apple-pay-button");n&&n.length&&($("body").trigger("PaymentMethodObserver:Show",{name:"available",show:!e.product.readyToOrder||!e.product.available}),n.attr("sku",e.product.id))}))},detectIsApplePayTagReplacement:function(){0===$("isapplepay").length?t.exports.methods.afterApplePayTagReplacement():$("body").on("PaymentMethodObserver:AddNode",(function(n,i){if(i&&i.addNode&&i.addNode.classList){var r,o=function(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}(t))){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}(i.addNode.classList);try{for(o.s();!(r=o.n()).done;)if("dw-apple-pay-button"===r.value)return t.exports.methods.afterApplePayTagReplacement(i),void i.observer.disconnect()}catch(t){o.e(t)}finally{o.f()}}}))}}},5698:t=>{function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports={methods:{afterPayPalIframe:function(t){var e;(e=t&&t.target?$(t.target).find(".js-paymentmethodwarning-msgcontainer"):$(".js-paypal-checkout.js-paymentmethodwarning-msgcontainer"))&&(e.attr("data-iframepresent",!0),e.data("iframepresent",!0),$("body").trigger("PaymentMethodObserver:iframePresent"))}},detectPayPalIframe:function(){1===$(".paypal-buttons-context-iframe").length?t.exports.methods.afterPayPalIframe():$("body").on("PaymentMethodObserver:AddNode",(function(n,i){if(i&&i.addNode&&i.addNode.classList){var r,o=function(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}(t))){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}(i.addNode.classList);try{for(o.s();!(r=o.n()).done;)if("paypal-buttons-context-iframe"===r.value)return t.exports.methods.afterPayPalIframe(i),void i.observer.disconnect()}catch(t){o.e(t)}finally{o.f()}}}))}}},28600:(t,e,n)=>{var i=n(75933);t.exports=i},2112:(t,e,n)=>{function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
2if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(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)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var o=n(94144);o.baseFiles.paymentMethodMutationObserver=function(){var t=$(".js-paymentmethod-mutationobserver");if(t&&t.length){var e,n=i(t);try{var r,o=function(){var t=e.value;r={subtree:!0,childList:!0},new MutationObserver((function(e,n){var r,o=i(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.addedNodes){var s,l=i(a.addedNodes);try{for(l.s();!(s=l.n()).done;){var c=s.value;$("body").trigger("PaymentMethodObserver:AddNode",{addNode:c,target:t,observer:n})}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){o.e(t)}finally{o.f()}})).observe(t,r)};for(n.s();!(e=n.n()).done;)o()}catch(t){n.e(t)}finally{n.f()}}},o.baseFiles.onPaymentMethodObserverShow=function(){$("body").on("PaymentMethodObserver:Show",(function(t,e){var n=$(".js-paymentmethodwarning-msgcontainer");if(n&&n.length){var r,o=i(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a=$(a),e&&e.name&&(a.data(e.name+"_show",e.show),a.attr("data-"+e.name+"_show",e.show)),!0===a.data("iframepresent")){for(var s=[],l=a.data(),c=0,u=Object.keys(l);c<u.length;c++){var d=u[c],h=d.split("_");2===h.length&&!0===l[d]&&"show"===h[1]&&s.push(h[0])}for(var p="",f=!1,m=0,g=s;m<g.length;m++){var v=g[m];if(!0===a.data(v+"_disable")){f=!0,p="<p>"+a.data(v+"_msg")+"</p>";break}a.data(v+"_msg")&&(p+="<p>"+a.data(v+"_msg")+"</p>")}p.length?a.removeClass("d-none"):a.addClass("d-none"),f?a.siblings(".js-paymentmethodwarning-affectedcontainer").attr("disabled",!0):a.siblings(".js-paymentmethodwarning-affectedcontainer").removeAttr("disabled"),a.html(p)}}}catch(t){o.e(t)}finally{o.f()}}}))},o.baseFiles.onPaymentMethodObserverIframePresent=function(){$("body").on("PaymentMethodObserver:iframePresent",(function(){$("body").trigger("PaymentMethodObserver:Show")}))},o.baseFiles.base=n(46446),o.baseFiles.cart=n(29628),t.exports=o},46446:(t,e,n)=>{var i=n(88503);t.exports=i},76062:t=>{t.exports=function(){$(".button.has-modal").length>0&&$(".button.has-modal").each((function(t,e){var n=$(e).find(".modal");!$("body > #"+n.attr("id")).length>0?$(e).find(".modal").appendTo("body"):n.remove()}))}},71046:t=>{t.exports=function(){if($(".slider").find(".hero-text[data-animation]"))for(var t=$(".slider").find(".hero-text[data-animation]").closest(".slider-container"),e=0;e<t.length;e++)t[e].classList.add("hero-has-animation");
2$("body").on("video:ended",(function(t,e){var n=e.domElements.$cntr;if(n.hasClass("hero-media")&&!0===n.data("play-once")){var i=n.next(".replay-video");n.addClass("video-stopped"),i.click((function(t){n.removeClass("video-stopped"),e.config.autoplay=!0,"youtube"===e.type&&e.apiObj.seekTo(0),"hosted"===e.type&&e.apiObj.currentTime(0),"vimeo"===e.type&&e.apiObj.setCurrentTime(0),e.play()}))}}))}},31807:(t,e,n)=>{var i=n(76062),r=n(71046);t.exports={methods:{animateIfVisible:function(e,n){null==e||e.each((function(e,i){var r=$(i),o=r.data("animation");t.exports.methods.checkIfVisible(r,n)&&r.removeClass("animation-initial-state").addClass(o)}))},checkIfVisible:function(t,e){var n=$(window).scrollTop(),i=n+$(window).height(),r=t.height(),o=t.offset().top;return"initialPageLoad"===e&&o<=i||("reset"===e?o<=i:o<=i&&o+r>=n)},resetAnimationElement:function(e){e.each((function(e,n){var i=$(n);if(!i.data("animation-play-once")){var r=i.data("animation");t.exports.methods.checkIfVisible(i,"reset")||(i.removeClass(r).addClass("animation-initial-state"),n.offsetWidth)}}))}},initScrollEvents:function(){t.exports.methods.animateIfVisible($("[data-animation]"),"initialPageLoad"),window.addEventListener("scrollUpdate",(function(e){var n,i=null==e||null===(n=e.detail)||void 0===n?void 0:n.direction;"down"===i&&t.exports.methods.animateIfVisible($("[data-animation]"),null),"up"===i&&t.exports.methods.resetAnimationElement($("[data-animation]"))}))},button:i,hero:r}},67520:(t,e,n)=>{t.exports={initBelowFoldRegion:function(){$(".pd-async-region").each((function(t,e){var i=$(e),r=new IntersectionObserver((function(t,e){t.forEach((function(t){if(t.isIntersecting){r.unobserve(t.target);var e=i.data("url");new Promise((function(t){var n=i.data("$xhr");n&&n.abort&&n.abort(),i.data("$xhr",$.ajax({url:e,method:"GET",beforeSend:function(){i.addClass("loading"),i.spinner().start()},success:function(e){var n=$(e);i.replaceWith(n),t(n)},error:function(t){},complete:function(){i.removeClass("loading"),i.spinner().stop()}}))})).then((function(t){var e=n(18588),i=n(82343);e.methods.animateIfVisible(t.find("[data-animation]"),"initialPageLoad"),i(e.pageDesigner),t.find(".product-tile").length>0&&i(e.productTile),$(document).trigger("load.einstein"),t.find(".slider-container").length>0&&t.find(".slider-container").each((function(t,n){var i=$(n);i.closest(".experience-commerce_layouts-sliderEinstein").length>0?e.einstein.init(i.parent()):e.slider.initializeSliders(i.parent())})),t.find(".video-container").length>0&&i(e.video)}))}}))}),{});r.observe(e)}))},initShowMoreContentButton:function(){$("body").on("click",".show-more-content button",(function(t){var e=this;t.stopPropagation();var n=$(event.target),i=$(this).data("url");t.preventDefault();var r=n.data("$xhr");r&&r.abort&&r.abort(),n.data("$xhr",$.ajax({url:i,data:{selectedUrl:i},method:"GET",context:n.closest(".content-grid-footer"),beforeSend:function(){e.spinner().start()},success:function(t){this.replaceWith(t)},complete:function(){this.spinner().stop()}}))}))}}},86062:t=>{function e(t){return e="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},e(t)}t.exports={methods:{populateAddressSummary:function(t,e){$.each(e,(function(n){var i=e[n];$("."+n,t).text(i||"")}))},optionValueForAddress:function(t,n,i,r){var o=r||{},a=o.type&&"billing"===o.type,s=o.className||"",l=n,c=!t;if("string"==typeof t)return $('<option class="'+s+'" disabled>'+t+"</option>");var u=t||{},d=u.shippingAddress||{};a&&c&&!i.billing.matchingAddressId&&(d=i.billing.billingAddress.address||{},c=!1,l=!0,u.UUID="manual-entry");var h,p=u.UUID?u.UUID:"new",f=$('<option class="'+s+'" />');f.val(p),c?h=i.resources.addNewAddress:(h=[],d.firstName&&h.push(d.firstName),d.lastName&&h.push(d.lastName),d.address1&&h.push(d.address1),d.address2&&h.push(d.address2),d.city&&(d.state?h.push(d.city+","):h.push(d.city)),d.stateCode&&h.push(d.stateCode),d.postalCode&&h.push(d.postalCode),!a&&u.selectedShippingMethod&&(h.push("-"),h.push(u.selectedShippingMethod.displayName)),h=h.length>2?h.join(" "):i.resources.newAddress),f.text(h);var m={"data-first-name":"firstName","data-last-name":"lastName","data-address1":"address1","data-address2":"address2","data-city":"
2city","data-state-code":"stateCode","data-postal-code":"postalCode","data-country-code":"countryCode","data-phone":"phone"};$.each(m,(function(t){var n=d[m[t]];n&&"object"===e(n)&&(n=n.value),f.attr(t,n||"")}));var g={"data-is-gift":"isGift","data-gift-message":"giftMessage"};return $.each(g,(function(t){var e=u[g[t]];f.attr(t,e||"")})),l&&f.attr("selected",!0),f},getAddressFieldsFromUI:function(t){return{firstName:$("input[name$=_firstName]",t).val(),lastName:$("input[name$=_lastName]",t).val(),address1:$("input[name$=_address1]",t).val(),address2:$("input[name$=_address2]",t).val(),city:$("input[name$=_city]",t).val(),postalCode:$("input[name$=_postalCode]",t).val(),stateCode:$("select[name$=_stateCode],input[name$=_stateCode]",t).val(),countryCode:$("select[name$=_country]",t).val(),phone:$("input[name$=_phone]",t).val()}}},showDetails:function(){$(".btn-show-details").on("click",(function(){var t=$(this).closest("form");t.attr("data-address-mode","details"),t.find(".multi-ship-address-actions").removeClass("d-none"),t.find(".multi-ship-action-buttons .col-12.btn-save-multi-ship").addClass("d-none")}))},addNewAddress:function(){$(".btn-add-new").on("click",(function(){var t=$(this);if(t.parents("#dwfrm_billing").length>0){$("body").trigger("checkout:clearBillingForm");var e=$(t.parents("form").find(".addressSelector option")[0]);e.attr("value","new");var n=$("#dwfrm_billing input[name=localizedNewAddressTitle]").val();e.text(n),e.prop("selected","selected"),t.parents("[data-address-mode]").attr("data-address-mode","new")}else{var i=t.parents("form").find(".addressSelector option[value=new]");i.prop("selected","selected"),i.parent().trigger("change")}}))}}},53183:(t,e,n)=>{var i=n(28682);t.exports={loadFormErrors:function(t,e){$.each(e,(function(n){$("*[name="+n+"]",t).addClass("is-invalid").siblings(".invalid-feedback").html(e[n])})),i($(t))},clearPreviousErrors:function(t){$(t).find(".form-control.is-invalid").removeClass("is-invalid"),$(".error-message").hide()}}},66280:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(86062),o=n(53183),a=n(28682);function s(t,e,n,i){var o,a,s=$("input[value="+t.UUID+"]"),l=n.shipping,c=!1;s&&s.length>0&&(o=s[0].form,a=$(".addressSelector",o)),a&&1===a.length&&(a.empty(),a.append(r.methods.optionValueForAddress(null,!1,n)),i.addresses&&i.addresses.length>0&&(a.append(r.methods.optionValueForAddress(n.resources.accountAddresses,!1,n)),i.addresses.forEach((function(t){var i=e.matchingAddressId===t.ID;a.append(r.methods.optionValueForAddress({UUID:"ab_"+t.ID,shippingAddress:t},i,n))}))),a.append(r.methods.optionValueForAddress(n.resources.shippingAddresses,!1,n,{className:"multi-shipping"})),l.forEach((function(t){var i=e.UUID===t.UUID;c=c||i;var o=r.methods.optionValueForAddress(t,i,n,{className:"multi-shipping"}),s=o.html()===n.resources.addNewAddress,l=t.UUID===e.UUID;(s&&l||!s&&l||!s&&!l)&&a.append(o),s&&!l&&$(o[0]).remove()}))),c?$(o).removeClass("hide-details"):$(o).addClass("hide-details"),$("body").trigger("shipping:updateShippingAddressSelector",{productLineItem:t,shipping:e,order:n,customer:i})}function l(t){var e=$.extend({},t.shippingAddress);e||(e={firstName:null,lastName:null,address1:null,address2:null,city:null,postalCode:null,stateCode:null,countryCode:null,phone:null}),e.isGift=t.isGift,e.giftMessage=t.giftMessage,$("input[value="+t.UUID+"]").each((function(t,n){var r=n.form;if(r){var o=e.countryCode;$("input[name$=_firstName]",r).val(e.firstName),$("input[name$=_lastName]",r).val(e.lastName),$("input[name$=_address1]",r).val(e.address1),$("input[name$=_address2]",r).val(e.address2),$("input[name$=_city]",r).val(e.city),$("input[name$=_postalCode]",r).val(e.postalCode),$("select[name$=_stateCode],input[name$=_stateCode]",r).val(e.stateCode),o&&"object"===i(o)?$("select[name$=_country]",r).val(e.countryCode.value):$("select[name$=_country]",r).val(e.countryCode),$("input[name$=_phone]",r).val(e.phone),$("input[name$=_isGift]",r).prop("checked",e.isGift),$("textarea[name$=_giftMe
2ssage]",r).val(e.isGift&&e.giftMessage?e.giftMessage:"")}})),$("body").trigger("shipping:updateShippingAddressFormValues",{shipping:t})}function c(t){var e=$("input[value="+t.UUID+"]");e&&e.length>0&&$.each(e,(function(e,n){var i=n.form;if(i){var r=$(".shipping-method-list",i);if(r&&r.length>0){r.empty();var o=t.applicableShippingMethods,a=t.selectedShippingMethod||{},s=i.name+"_shippingAddress_shippingMethodID";$.each(o,(function(e,n){var i=$("#shipping-method-template").clone();$("input",i).prop("id","shippingMethod-"+n.ID+"-"+t.UUID).prop("name",s).prop("value",n.ID).attr("checked",n.ID===a.ID),$("label",i).prop("for","shippingMethod-"+n.ID+"-"+t.UUID),$(".display-name",i).text(n.displayName),n.estimatedArrivalTime&&$(".arrival-time",i).text("("+n.estimatedArrivalTime+")").show(),$(".shipping-cost",i).text(n.shippingCost),r.append(i.html())}))}}})),$("body").trigger("shipping:updateShippingMethods",{shipping:t})}function u(t){setTimeout((function(){var e=t.find(".shipping-method-list"),n=r.methods.getAddressFieldsFromUI(t),i=t.find("[name=shipmentUUID]").val(),o=e.data("actionUrl");n.shipmentUUID=i,e.spinner().start(),$.ajax({url:o,type:"post",dataType:"json",data:n,success:function(t){t.error?window.location.href=t.redirectUrl:($("body").trigger("checkout:updateCheckoutView",{order:t.order,customer:t.customer,options:{keepOpen:!0}}),e.spinner().stop())}})}),300)}function d(t,e){$("[data-shipment-summary="+t.UUID+"]").each((function(n,i){var o=$(i),a=o.find(".shipping-addr-label"),s=o.find(".address-summary"),l=o.find(".shipping-phone"),c=o.find(".shipping-method-title"),u=o.find(".shipping-method-arrival-time"),d=o.find(".shipping-method-price"),h=o.find(".shipping-method-label"),p=o.find(".row.summary-details"),f=o.find(".gift-summary"),m=t.shippingAddress,g=t.selectedShippingMethod,v=t.isGift;r.methods.populateAddressSummary(s,m),m&&m.phone?l.text(m.phone):l.empty(),g&&($("body").trigger("shipping:updateAddressLabelText",{selectedShippingMethod:g,resources:e.resources,shippingAddressLabel:a}),h.show(),p.show(),c.text(g.displayName),g.estimatedArrivalTime?u.text("( "+g.estimatedArrivalTime+" )"):u.empty(),d.text(g.shippingCost)),v?(f.find(".gift-message-summary").text(t.giftMessage),f.removeClass("d-none")):f.addClass("d-none")})),$("body").trigger("shipping:updateShippingSummaryInformation",{shipping:t,order:e})}function h(t,e,n,i){var r=$("input[value="+t.UUID+"]"),o=r&&r.length>0?r[0].form:null;if(o){var a=$(".view-address-block",o),s=e.shippingAddress||{},l=e.selectedShippingMethod,c=s.firstName?s.firstName+" ":"";s.lastName&&(c+=s.lastName);var u=s.address1,d=s.address2,h=s.phone,p=l?l.shippingCost:"",f=l?l.displayName:"",m=l&&l.estimatedArrivalTime?"("+l.estimatedArrivalTime+")":"",g=$("#pli-shipping-summary-template").clone();if($(".ship-to-name",g).text(c),$(".ship-to-address1",g).text(u),$(".ship-to-address2",g).text(d),$(".ship-to-city",g).text(s.city),s.stateCode&&$(".ship-to-st",g).text(s.stateCode),$(".ship-to-zip",g).text(s.postalCode),$(".ship-to-phone",g).text(h),d||$(".ship-to-address2",g).hide(),h||$(".ship-to-phone",g).hide(),e.selectedShippingMethod&&($(".display-name",g).text(f),$(".arrival-time",g).text(m),$(".price",g).text(p)),e.isGift){$(".gift-message-summary",g).text(e.giftMessage);var v=$(".gift-message-"+e.UUID);$(v).val(e.giftMessage)}else $(".gift-summary",g).addClass("d-none");var y=$(".shipping-header-text",g);$("body").trigger("shipping:updateAddressLabelText",{selectedShippingMethod:l,resources:n.resources,shippingAddressLabel:y}),a.html(g.html()),$("body").trigger("shipping:updatePLIShippingSummaryInformation",{productLineItem:t,shipping:e,order:n,options:i})}}function p(t,e){$("input[value="+t.UUID+"]").each((function(t,n){var i=n.form;$("[name=shipmentUUID]",i).val(e.UUID),$("[name=originalShipmentUUID]",i).val(e.UUID),$(i).closest(".card").attr("data-shipment-uuid",e.UUID)})),$("body").trigger("shipping:updateProductLineItemShipmentUUIDs",{productLineItem:t,shipping:e})}function f(t){var e='<div class="alert alert-danger alert-dismissible valid-cart-error fade show" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>'+t+"</div>";$(".shipping-error").append(e),a($(".shipping-error"))}function m(t){t.shipping.forEach((function(t){$("input[value="+t.UUID+"]").each((function(t,e){var n=e.form;if(n){$("input[name$=_firstName]",n).val(""),$("input[name$=_lastName]",n).val(""),$("input[name$=_address1]",n).val(""),$("input[name$=_address2]",n).val(""),$("input[name$=_city]",n).val(""),$("input[name$=_postalCode]",
2n).val(""),$("select[name$=_stateCode],input[name$=_stateCode]",n).val(""),$("select[name$=_country]",n).val(""),$("input[name$=_phone]",n).val(""),$("input[name$=_isGift]",n).prop("checked",!1),$("textarea[name$=_giftMessage]",n).val(""),$(n).find(".gift-message").addClass("d-none"),$(n).attr("data-address-mode","new");var i=$(".addressSelector option[value=new]",n);$(i).prop("selected",!0)}}))})),$("body").trigger("shipping:clearShippingForms",{order:t})}function g(t,e){return $.spinner().start(),$.ajax({url:t,type:"post",dataType:"json",data:e})}function v(t,e,n){$.spinner().start(),$("body").trigger("checkout:beforeShippingMethodSelected"),$.ajax({url:t,type:"post",dataType:"json",data:e}).done((function(t){t.error?window.location.href=t.redirectUrl:($("body").trigger("checkout:updateCheckoutView",{order:t.order,customer:t.customer,options:{keepOpen:!0},urlParams:e}),$("body").trigger("checkout:postUpdateCheckoutView",{el:n})),$("body").trigger("checkout:shippingMethodSelected",t),$.spinner().stop()})).fail((function(){$.spinner().stop()}))}function y(t){t.find(".view-address-block").removeClass("d-none"),t.find(".btn-edit-multi-ship").removeClass("d-none"),t.find(".shipping-address").addClass("d-none"),t.find(".btn-save-multi-ship.save-shipment").addClass("d-none"),t.find(".btn-enter-multi-ship").addClass("d-none"),t.find(".multi-ship-address-actions").addClass("d-none")}function b(t){t.find(".shipping-address").removeClass("d-none"),t.find(".btn-save-multi-ship.save-shipment").removeClass("d-none"),t.find(".view-address-block").addClass("d-none"),t.find(".btn-enter-multi-ship").addClass("d-none"),t.find(".btn-edit-multi-ship").addClass("d-none"),t.find(".multi-ship-address-actions").addClass("d-none"),$("body").trigger("shipping:editMultiShipAddress",{element:t,form:t.find(".shipping-form")})}function _(t,e){var n=$(t).closest("form"),i=$(t).closest(".shipping-content");$("body").trigger("shipping:updateDataAddressMode",{form:n,mode:e}),b(i);var o=r.methods.getAddressFieldsFromUI(n),a={UUID:$("input[name=shipmentUUID]",n).val(),shippingAddress:o};i.data("saved-state",JSON.stringify(a))}t.exports={methods:{updateShippingAddressSelector:s,updateShippingAddressFormValues:l,updateShippingMethods:c,updateShippingSummaryInformation:d,updatePLIShippingSummaryInformation:h,updateProductLineItemShipmentUUIDs:p,updateShippingInformation:function(t,e,n,i){e.shipping.forEach((function(t){t.productLineItems.items.forEach((function(e){p(e,t)}))})),c(t),l(t),d(t,e),t.productLineItems.items.forEach((function(r){s(r,t,e,n),h(r,t,e,i)})),$("body").trigger("shipping:updateShippingInformation",{order:e,shipping:t,customer:n,options:i})},updateMultiShipInformation:function(t){var e=$("#checkout-main"),n=$("[name=usingMultiShipping]"),i=$("button.submit-shipping");$(".shipping-error .alert-danger").remove(),t.usingMultiShipping?(e.addClass("multi-ship"),n.prop("checked",!0)):(e.removeClass("multi-ship"),n.prop("checked",null),i.prop("disabled",null)),$("body").trigger("shipping:updateMultiShipInformation",{order:t})},shippingFormResponse:function(t,e){var n=$("#checkout-main").hasClass("multi-ship")?".multi-shipping .active form":".single-shipping form";e.error?(e.fieldErrors.length&&(e.fieldErrors.forEach((function(t){Object.keys(t).length&&o.loadFormErrors(n,t)})),t.reject(e)),e.serverErrors&&e.serverErrors.length&&($.each(e.serverErrors,(function(t,e){f(e)})),t.reject(e)),e.cartError&&(window.location.href=e.redirectUrl,t.reject())):($("body").trigger("checkout:updateCheckoutView",{order:e.order,customer:e.customer}),a($(".payment-form")),t.resolve(e))},createNewShipment:g,selectShippingMethodAjax:v,updateShippingMethodList:u,clearShippingForms:m,editMultiShipAddress:b,editOrEnterMultiShipInfo:_,createErrorNotification:f,viewMultishipAddress:y},selectShippingMethod:function(){var t=this;
2$(".shipping-method-list").change((function(){var e=$(this).parents("form"),n=$(":checked",this).val(),i=e.find("[name=shipmentUUID]").val(),o=r.methods.getAddressFieldsFromUI(e);o.shipmentUUID=i,o.methodID=n,o.isGift=e.find(".gift").prop("checked"),o.giftMessage=e.find("textarea[name$=_giftMessage]").val();var a=$(this).data("select-shipping-method-url");t.methods&&t.methods.selectShippingMethodAjax?t.methods.selectShippingMethodAjax(a,o,$(this)):v(a,o,$(this))}))},toggleMultiship:function(){var t=this;$('input[name="usingMultiShipping"]').on("change",(function(){var e=$(".multi-shipping-checkbox-block form").attr("action"),n=this.checked;$.ajax({url:e,type:"post",dataType:"json",data:{usingMultiShip:n},success:function(e){e.error?window.location.href=e.redirectUrl:($("body").trigger("checkout:updateCheckoutView",{order:e.order,customer:e.customer}),"guest"===$("#checkout-main").data("customer-type")?t.methods&&t.methods.clearShippingForms?t.methods.clearShippingForms(e.order):m(e.order):e.order.shipping.forEach((function(t){$("input[value="+t.UUID+"]").each((function(e,n){var i=n.form;if(i){$(i).attr("data-address-mode","edit");var r=$(i).find('.addressSelector option[value="ab_'+t.matchingAddressId+'"]');$(r).prop("selected",!0),$("input[name$=_isGift]",i).prop("checked",!1),$("textarea[name$=_giftMessage]",i).val(""),$(i).find(".gift-message").addClass("d-none")}}))})),n?$("body").trigger("shipping:selectMultiShipping",{data:e}):$("body").trigger("shipping:selectSingleShipping",{data:e})),$.spinner().stop()},error:function(){$.spinner().stop()}})}))},selectSingleShipping:function(){$("body").on("shipping:selectSingleShipping",(function(){$(".single-shipping .shipping-address").removeClass("d-none")}))},selectMultiShipping:function(){var t=this;$("body").on("shipping:selectMultiShipping",(function(e,n){$(".multi-shipping .shipping-address").addClass("d-none"),n.data.order.shipping.forEach((function(e){var n=$('.multi-shipping .card[data-shipment-uuid="'+e.UUID+'"]');e.shippingAddress?t.methods&&t.methods.viewMultishipAddress?t.methods.viewMultishipAddress($(n)):y($(n)):t.methods&&t.methods.enterMultishipView?t.methods.enterMultishipView($(n)):function(t){t.find(".btn-enter-multi-ship").removeClass("d-none"),t.find(".view-address-block").addClass("d-none"),t.find(".shipping-address").addClass("d-none"),t.find(".btn-save-multi-ship.save-shipment").addClass("d-none"),t.find(".btn-edit-multi-ship").addClass("d-none"),t.find(".multi-ship-address-actions").addClass("d-none")}($(n))}))}))},selectSingleShipAddress:function(){$(".single-shipping .addressSelector").on("change",(function(){var t=$(this).parents("form")[0],e=$("option:selected",this),n=e.data(),i=e[0].value,r=$("input[name=shipmentUUID]",t).val();Object.keys(n).forEach((function(e){$("[name$="+("countryCode"===e?"country":e)+"]",t).val(n[e])})),$("[name$=stateCode]",t).trigger("change"),"new"===i?($(t).attr("data-address-mode","new"),$(t).find(".shipping-address-block").removeClass("d-none")):i===r?$(t).attr("data-address-mode","shipment"):0===i.indexOf("ab_")?$(t).attr("data-address-mode","customer"):$(t).attr("data-address-mode","edit")}))},selectMultiShipAddress:function(){var t=this;$(".multi-shipping .addressSelector").on("change",(function(){var e=$
2(this).closest("form"),n=$("option:selected",this),i=n.data(),r=n[0].value,o=$("input[name=shipmentUUID]",e).val(),a=$("input[name=productLineItemUUID]",e).val(),s=t.methods&&t.methods.createNewShipment?t.methods.createNewShipment:g;Object.keys(i).forEach((function(t){"isGift"===t?($("[name$="+t+"]",e).prop("checked",i[t]),$("[name$="+t+"]",e).trigger("change")):$("[name$="+("countryCode"===t?"country":t)+"]",e).val(i[t])})),"new"===r&&a?s($(this).attr("data-create-shipment-url"),{productLineItemUUID:a}).done((function(t){$.spinner().stop(),t.error?t.redirectUrl&&(window.location.href=t.redirectUrl):($("body").trigger("checkout:updateCheckoutView",{order:t.order,customer:t.customer,options:{keepOpen:!0}}),$(e).attr("data-address-mode","new"))})).fail((function(){$.spinner().stop()})):r===o?($("select[name$=stateCode]",e).trigger("change"),$(e).attr("data-address-mode","shipment")):0===r.indexOf("ab_")?s($(e).attr("action"),$(e).serialize()).done((function(t){$.spinner().stop(),t.error?t.redirectUrl&&(window.location.href=t.redirectUrl):($("body").trigger("checkout:updateCheckoutView",{order:t.order,customer:t.customer,options:{keepOpen:!0}}),$(e).attr("data-address-mode","customer"),b($(e).closest(".shipping-content")))})).fail((function(){$.spinner().stop()})):s($(e).attr("action"),$(e).serialize()).done((function(t){$.spinner().stop(),t.error?t.redirectUrl&&(window.location.href=t.redirectUrl):($("body").trigger("checkout:updateCheckoutView",{order:t.order,customer:t.customer,options:{keepOpen:!0}}),$(e).attr("data-address-mode","edit"))})).fail((function(){$.spinner().stop()}))}))},updateShippingList:function(){var t=this;$('select[name$="shippingAddress_addressFields_states_stateCode"]').on("change",(function(e){t.methods&&t.methods.updateShippingMethodList?t.methods.updateShippingMethodList($(e.currentTarget.form)):u($(e.currentTarget.form))}))},updateDataAddressMode:function(){$("body").on("shipping:updateDataAddressMode",(function(t,e){$(e.form).attr("data-address-mode",e.mode)}))},enterMultiShipInfo:function(){var t=this;$(".btn-enter-multi-ship").on("click",(function(e){e.preventDefault(),t.methods&&t.methods.editOrEnterMultiShipInfo?t.methods.editOrEnterMultiShipInfo($(this),"new"):_($(this),"new")}))},editMultiShipInfo:function(){var t=this;$(".btn-edit-multi-ship").on("click",(function(e){e.preventDefault(),t.methods&&t.methods.editOrEnterMultiShipInfo?t.methods.editOrEnterMultiShipInfo($(this),"edit"):_($(this),"edit")}))},saveMultiShipInfo:function(){var t=this;$(".btn-save-multi-ship").on("click",(function(e){e.preventDefault();var n=$(this).closest("form"),i=$(this).closest(".shipping-content"),r=$(n).serialize(),a=$(n).attr("action");return i.spinner().start(),$.ajax({url:a,type:"post",dataType:"json",data:r}).done((function(e){o.clearPreviousErrors(n),e.error?e.fieldErrors&&e.fieldErrors.length?e.fieldErrors.forEach((function(t){Object.keys(t).length&&o.loadFormErrors(n,t)})):e.serverErrors&&e.serverErrors.length?$.each(e.serverErrors,(function(t,e){f(e)})):e.redirectUrl&&(window.location.href=e.redirectUrl):($("body").trigger("checkout:updateCheckoutView",{order:e.order,customer:e.customer}),t.methods&&t.methods.viewMultishipAddress?t.methods.viewMultishipAddress(i):y(i)),e.order&&e.order.shippable&&$("button.submit-shipping").attr("disabled",null),i.spinner().stop()})).fail((function(t){t.responseJSON.redirectUrl&&(window.location.href=t.responseJSON.redirectUrl),i.spinner().stop()})),!1}))},cancelMultiShipAddress:function(){var t=this;$(".btn-cancel-multi-ship-address").on("click",(function(e){e.preventDefault();var n=$(this).closest("form"),i=$(this).closest(".shipping-content"),r=i.data("saved-state");if(r){var o=JSON.parse(r),a=o.shippingAddress.stateCode,s=$("[name$=_stateCode]",n).val();t.methods&&t.methods.updateShippingAddressFormValues?t.methods.updateShippingAddressFormValues(o):l(o),s!==a?$("[data-action=save]",n).trigger("click"):($(n).attr("data-address-mode","edit"),t.methods&&t.methods.editMultiShipAddress?t.methods.editMultiShipAddress(i):b(i))}return!1}))},isGift:function(){$(".gift").on("change",(function(t){t.preventDefault();
2var e=$(this).closest("form");this.checked?$(e).find(".gift-message").removeClass("d-none"):($(e).find(".gift-message").addClass("d-none"),$(e).find(".gift-message").val(""))}))}}},26285:t=>{function e(t){var e=!0;return this.checkValidity&&!this.checkValidity()&&(e=!1,t&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),$(this).find("input, select").each((function(){this.validity.valid||$(this).trigger("invalid",this.validity)}))),e}function n(t){$(t).find(".form-control.is-invalid").removeClass("is-invalid")}t.exports={invalid:function(){$("form input, form select").on("invalid",(function(t){if(t.preventDefault(),this.setCustomValidity(""),!this.validity.valid){var e=this.validationMessage;$(this).addClass("is-invalid"),this.validity.patternMismatch&&$(this).data("pattern-mismatch")&&(e=$(this).data("pattern-mismatch")),(this.validity.rangeOverflow||this.validity.rangeUnderflow)&&$(this).data("range-error")&&(e=$(this).data("range-error")),(this.validity.tooLong||this.validity.tooShort)&&$(this).data("range-error")&&(e=$(this).data("range-error")),this.validity.valueMissing&&$(this).data("missing-error")&&(e=$(this).data("missing-error")),$(this).parents(".form-group").find(".invalid-feedback").text(e)}}))},submit:function(){$("form").on("submit",(function(t){return e.call(this,t)}))},buttonClick:function(){$('form button[type="submit"], form input[type="submit"]').on("click",(function(){n($(this).parents("form"))}))},functions:{validateForm:function(t,n){e.call($(t),n||null)},clearForm:n}}},94823:t=>{t.exports=function(){["xs","sm","md","lg","xl"].forEach((function(t){var e=".collapsible-"+t+" .title";$("body").on("click",e,(function(e){e.preventDefault(),$(this).parents(".collapsible-"+t).toggleClass("active"),$(this).parents(".collapsible-"+t).hasClass("active")?$(this).attr("aria-expanded",!0):$(this).attr("aria-expanded",!1)}))}))}},32368:t=>{t.exports=function(){if($(".valid-cookie-warning").length>0){var t=window.localStorage.getItem("previousSid"),e=function(t){for(var e=decodeURIComponent(document.cookie).split(";"),n=0;n<e.length;n++){for(var i=e[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf("sid="))return i.substring(4,i.length)}return""}();!t&&e?(t=e,window.localStorage.setItem("previousSid",t),$(".cookie-warning-messaging").show()):t&&t===e?$(".cookie-warning-messaging").hide():window.localStorage.removeItem("previousSid")}}},81005:(t,e,n)=>{var i=n(25903);t.exports=function(){$(".country-selector a").click((function(t){t.preventDefault();var e=$(".page").data("action"),n=$(this).data("locale"),i=$(this).data("currencycode"),r=$(".page").data("querystring"),o=$(".country-selector").data("url");$.ajax({url:o,type:"get",dataType:"json",data:{code:n,queryString:r,CurrencyCode:i,action:e},success:function(t){$.spinner().stop(),t&&t.redirectUrl&&(window.location.href=t.redirectUrl)},error:function(){$.spinner().stop()}})})),i(".navbar-header .country-selector",{40:function(t){$(this).is(":focus")?t.first().focus():$(":focus").next().focus()},38:function(t){t.first().is(":focus")||$(this).is(":focus")?($(this).focus(),$(this).removeClass("show")):$(":focus").prev().focus()},27:function(){$(this).focus(),$(this).removeClass("show").children(".dropdown-menu").removeClass("show")},9:function(){$(this).removeClass("show").children(".dropdown-menu").removeClass("show")}},(function(){return $(this).hasClass("show")||$(this).addClass("show"),$(this).find(".dropdown-country-selector").children("a")})),$(".navbar-header .country-selector").on("focusin",(function(){$(this).addClass("show").children(".dropdown-menu").addClass("show")}))}},64171:t=>{t.exports={setTabNextFocus:function(t){if("Tab"===t.event.key||9===t.event.keyCode){var e=$(t.containerSelector+" "+t.firstElementSelector),n=$(t.containerSelector+" "+t.lastElementSelector);if($(t.containerSelector+" "+t.lastElementSelector).is(":disabled")&&(n=$(t.containerSelector+" "+t.nextToLastElementSelector),$(".product-quickview.product-set").length>0)){var i=$(t.containerSelector+" a#fa-link.share-icons");n=i[i.length-1]}t.event.shiftKey?$(":focus").is(e)&&(n.focus(),t.event.preventDefault()):$(":focus").is(n)&&(e.focus(),t.event.preventDefault())}}}},76366:t=>{function e(t){return e="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},e(t)}t.exports=function(t,n){$(t).find(".form-control.is-invalid").removeClass("is-invalid"),$(".alert",t).remove(),"object"===e(n)&&n.fields&&Object.keys(n.fields).forEac
2h((function(e){if(n.fields[e]){var i=$(t).find('[name="'+e+'"]').parent().children(".invalid-feedback");i.length>0&&(Array.isArray(n[e])?i.html(n.fields[e].join("<br/>")):i.html(n.fields[e]),i.siblings(".form-control").addClass("is-invalid"))}})),n&&n.error&&("FORM"===$(t).prop("tagName")?$(t):$(t).parents("form")).prepend('<div class="alert alert-danger" role="alert">'+n.error.join("<br/>")+"</div>")}},25903:t=>{t.exports=function(t,e,n){$(t).on("keydown",(function(t){var i=t.which;[37,38,39,40,27].indexOf(i)>=0&&t.preventDefault();var r=n.call(this);e[i]&&e[i].call(this,r)}))}},28682:t=>{t.exports=function(t){var e=t&&t.length?t.offset().top:0;$("html, body").animate({scrollTop:e},500),t||$(".logo-home").focus()}},86964:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(25714),o=$(".suggestions-wrapper").data("url");function a(t){return $(t).siblings(".suggestions-wrapper")}function s(t){return!!$(t).closest(".search-mobile").length}function l(){$("body").removeClass("modal-open"),$("header").siblings().attr("aria-hidden","false"),$(".suggestions").removeClass("modal")}function c(t){var e=".search-mobile button.",n="fa-search",i="fa-close";"close"===t?$(e+n).removeClass(n).addClass(i).attr("type","button"):$(e+i).removeClass(i).addClass(n).attr("type","submit")}function u(t){$(t).scrollTop()+$(t).innerHeight()>=$(t)[0].scrollHeight?$(".more-below").fadeOut():$(".more-below").fadeIn()}function d(t){var e,n,r,o,l,d=a(this).empty();if($.spinner().stop(),"object"!==i(t)){d.append(t).show(),$(this).siblings(".reset-button").addClass("d-sm-block"),s(e=this)&&(l=(r=$(e)).offset().top,n=r.outerHeight(),(o=a(e).find(".suggestions")).css("top",l+n),u(e),o.scroll((function(){u(this)}))),s(this)&&(c("close"),function(t){s(t)&&($("body").addClass("modal-open"),$("header").siblings().attr("aria-hidden","true"),a(t).find(".suggestions").addClass("modal"))}(this));var h=$(".suggestions .item");$(h).length?$("input.search-field").attr("aria-describedby","search-result-count"):$("input.search-field").removeAttr("aria-describedby")}else d.hide()}function h(t){$(t).val().length>=1?($.spinner().start(),$.ajax({context:t,url:o+encodeURIComponent($(t).val()),method:"GET",success:d,error:function(){$.spinner().stop()}})):(c("search"),$(t).siblings(".reset-button").removeClass("d-sm-block"),l(),a(t).empty())}function p(t){var e=$(".suggestions .item");0===e.filter(".selected").length?(e.first().addClass("selected"),$("input.search-field").each((function(){$(this).attr("aria-activedescendant",e.first()[0].id)}))):e.each((function(n){var i=n+t;return!$(this).hasClass("selected")||($(this).removeClass("selected"),$(this).removeAttr("aria-selected"),0!==e.eq(i).length?(e.eq(i).addClass("selected"),e.eq(i).attr("aria-selected",!0),$(this).removeProp("aria-selected"),$("input.search-field").each((function(){$(this).attr("aria-activedescendant",e.eq(i)[0].id)}))):(e.first().addClass("selected"),e.first().attr("aria-selected",!0),$("input.search-field").each((function(){$(this).attr("aria-activedescendant",e.first()[0].id)}))),!1)}))}t.exports=function(){$('form[name="simpleSearch"]').submit((function(t){var e=$(".suggestions .item");0!==e.filter(".selected").length&&(t.preventDefault(),e.filter(".selected").find("a")[0].click())})),$("input.search-field").each((function(){var t=r(h,300);$(this).on("keyup focus",(function(e){switch(e.which){case 40:p(1),e.preventDefault();break;case 38:p(-1),e.preventDefault();break;default:t(this,e)}}))})),$("body").on("click",(function(t){$(".suggestions").has(t.target).length||$(t.target).hasClass("search-field")||$(".suggestions").hide()})),$("body").on("click touchend",".search-mobile button.fa-close",(function(t){t.preventDefault(),$(".suggestions").hide(),c("search"),$("input.search-field").val(""),l(),$(".search-mobile .suggestions").unbind("scroll"),$(".suggestions-wrapper").empty()})),$(".site-search .reset-button").on("click",(function(){$(this).removeClass("d-sm-block")}))}},16968:()=>
2{function t(t){var e=$('<div class="veil"><div class="underlay"></div></div>');e.append('<div class="spinner"><div class="dot1"></div><div class="dot2"></div></div>'),"IMG"===t.get(0).tagName?(t.after(e),e.css({width:t.width(),height:t.height()}),"static"===t.parent().css("position")&&t.parent().css("position","relative")):(t.append(e),"static"===t.css("position")&&(t.parent().css("position","relative"),t.parent().addClass("veiled")),"BODY"===t.get(0).tagName&&e.find(".spinner").css("position","fixed")),e.click((function(t){t.stopPropagation()}))}function e(t){t.parent().hasClass("veiled")&&(t.parent().css("position",""),t.parent().removeClass("veiled")),t.off("click"),t.remove()}$.fn.spinner=function(){var n=$(this);return new function(){this.start=function(){n.length&&t(n)},this.stop=function(){n.length&&e($(".veil"))}}},$.spinner=function(){return new function(){this.start=function(){t($("body"))},this.stop=function(){e($(".veil"))}}}},55239:(t,e,n)=>{var i=n(64171);function r(t){return $("#quickViewModal").hasClass("show")&&!$(".product-set").length?$(t).closest(".modal-content").find(".product-quickview").data("pid"):$(".product-set-detail").length||$(".product-set").length?$(t).closest(".product-detail").find(".product-id").text():$('.product-detail:not(".bundle-item")').data("pid")}function o(t){var e;if(t&&$(".set-items").length)e=$(t).closest(".product-detail").find(".quantity-select");else if(t&&$(".product-bundle").length){var n=$(t).closest(".modal-footer").find(".quantity-select"),i=$(t).closest(".bundle-footer").find(".quantity-select");e=void 0===n.val()?i:n}else e=$(".quantity-select");return e}function a(t){return o(t).val()}function s(t,e){t&&($("body").trigger("product:beforeAttributeSelect",{url:t,container:e}),$.ajax({url:t,method:"GET",success:function(t){(function(t,e){var n,i=e.parents(".choose-bonus-product-dialog").length>0;t.product.variationAttributes&&(function(t,e,n){var i=["color"];t.forEach((function(t){i.indexOf(t.id)>-1?function(t,e,n){t.values.forEach((function(i){var r=e.find('[data-attr="'+t.id+'"] [data-attr-value="'+i.value+'"]'),o=r.parent();i.selected?(r.addClass("selected"),r.siblings(".selected-assistive-text").text(n.assistiveSelectedText)):(r.removeClass("selected"),r.siblings(".selected-assistive-text").empty()),i.url?o.attr("data-url",i.url):o.removeAttr("data-url"),r.removeClass("selectable unselectable"),r.addClass(i.selectable?"selectable":"unselectable")}))}(t,e,n):function(t,e){var n='[data-attr="'+t.id+'"]';e.find(n+" .select-"+t.id+" option:first").attr("value",t.resetUrl),t.values.forEach((function(t){var i=e.find(n+' [data-attr-value="'+t.value+'"]');i.attr("value",t.url).removeAttr("disabled"),t.selectable||i.attr("disabled",!0)}))}(t,e)}))}(t.product.variationAttributes,e,t.resources),n="variant"===t.product.productType,i&&n&&(e.parent(".bonus-product-item").data("pid",t.product.id),e.parent(".bonus-product-item").data("ready-to-order",t.product.readyToOrder))),function(t,e){var n=e.find(".carousel");$(n).carousel("dispose");var i=$(n).attr("id");$(n).empty().append('<ol class="carousel-indicators"></ol><div class="carousel-inner" role="listbox"></div><a class="carousel-control-prev" href="#'+i+'" role="button" data-slide="prev"><span class="fa icon-prev" aria-hidden="true"></span><span class="sr-only">'+$(n).data("prev")+'</span></a><a class="carousel-control-next" href="#'+i+'" role="button" data-slide="next"><span class="fa icon-next" aria-hidden="true"></span><span class="sr-only">'+$(n).data("next")+"</span></a>");for(var r=0;r<t.length;r++)$('<div class="carousel-item"><img src="'+t[r].url+'" class="d-block img-fluid" alt="'+t[r].alt+" image number "+parseInt(t[r].index,10)+'" title="'+t[r].title+'" itemprop="image" /></div>').appendTo($(n).find(".carousel-inner")),$('<li data-target="#'+i+'" data-slide-to="'+r+'" class=""></li>').appendTo($(n).find(".carousel-indicators"));$($(n).find(".carousel-item")).first().addClass("active"),$($(n).find(".carousel-indicators > li")).first().addClass("active"),1===t.length&&$($(n).find('.carousel-indicators, a[class^="carousel-control-"]')).detach(),$(n).carousel(),$($(n).find(".carousel-indicators")).attr("aria-hidden",!0)}(t.product.images.large,e),i||($(".prices .price",e).length?$(".prices .price",e):$(".prices .price")).replaceWith(t.product.price.html),e.find(".promotions").empty().html(t.product.promotionsHtml),function(t,e){var n="",i=t.product.availability.messages;
2t.product.readyToOrder?i.forEach((function(t){n+="<li><div>"+t+"</div></li>"})):n="<li><div>"+t.resources.info_selectforstock+"</div></li>",$(e).trigger("product:updateAvailability",{product:t.product,$productContainer:e,message:n,resources:t.resources})}(t,e),i?e.find(".select-bonus-product").trigger("bonusproduct:updateSelectButton",{product:t.product,$productContainer:e}):$("button.add-to-cart, button.add-to-cart-global, button.update-cart-product-global").trigger("product:updateAddToCart",{product:t.product,$productContainer:e}).trigger("product:statusUpdate",t.product),e.find(".main-attributes").empty().html(function(t){if(!t)return"";var e="";return t.forEach((function(t){"mainAttributes"===t.ID&&t.attributes.forEach((function(t){e+='<div class="attribute-values">'+t.label+": "+t.value+"</div>"}))})),e}(t.product.attributes))})(t,e),function(t,e){e.find(".product-options").empty().html(t)}(t.product.optionsHtml,e),function(t,e){if(e.parent(".bonus-product-item").length<=0){var n=t.map((function(t){var e=t.selected?" selected ":"";return'<option value="'+t.value+'" data-url="'+t.url+'"'+e+">"+t.value+"</option>"})).join("");o(e).empty().html(n)}}(t.product.quantities,e),$("body").trigger("product:afterAttributeSelect",{data:t,container:e}),$.spinner().stop()},error:function(){$.spinner().stop()}}))}function l(t){var e=$("<div>").append($.parseHTML(t));return{body:e.find(".choice-of-bonus-product"),footer:e.find(".modal-footer").children()}}function c(t){var e;$(".modal-body").spinner().start(),0!==$("#chooseBonusProductModal").length&&$("#chooseBonusProductModal").remove(),e=t.bonusChoiceRuleBased?t.showProductsUrlRuleBased:t.showProductsUrlListBased;var n='\x3c!-- Modal --\x3e<div class="modal fade" id="chooseBonusProductModal" tabindex="-1" role="dialog"><span class="enter-message sr-only" ></span><div class="modal-dialog choose-bonus-product-dialog" data-total-qty="'+t.maxBonusItems+'"data-UUID="'+t.uuid+'"data-pliUUID="'+t.pliUUID+'"data-addToCartUrl="'+t.addToCartUrl+'"data-pageStart="0"data-pageSize="'+t.pageSize+'"data-moreURL="'+t.showProductsUrlRuleBased+'"data-bonusChoiceRuleBased="'+t.bonusChoiceRuleBased+'">\x3c!-- Modal content--\x3e<div class="modal-content"><div class="modal-header"> <span class="">'+t.labels.selectprods+'</span> <button type="button" class="close pull-right" data-dismiss="modal"> <span aria-hidden="true">×</span> <span class="sr-only"> </span> </button></div><div class="modal-body"></div><div class="modal-footer"></div></div></div></div>';$("body").append(n),$(".modal-body").spinner().start(),$.ajax({url:e,method:"GET",dataType:"json",success:function(t){var e=l(t.renderedTemplate);$("#chooseBonusProductModal .modal-body").empty(),$("#chooseBonusProductModal .enter-message").text(t.enterDialogMessage),$("#chooseBonusProductModal .modal-header .close .sr-only").text(t.closeButtonText),$("#chooseBonusProductModal .modal-body").html(e.body),$("#chooseBonusProductModal .modal-footer").html(e.footer),$("#chooseBonusProductModal").modal("show"),$.spinner().stop()},error:function(){$.spinner().stop()}})}function u(t){var e=t.find(".product-option").map((function(){var t=$(this).find(".options-select"),e=t.val(),n=t.find('option[value="'+e+'"]').data("value-id");return{optionId:$(this).data("option-id"),selectedValueId:n}})).toArray();return JSON.stringify(e)}function d(t){t&&$.ajax({url:t,method:"GET",success:function(){},error:function(){}})}t.exports={attributeSelect:s,methods:{editBonusProducts:function(t){c(t)}},focusChooseBonusProductModal:function(){$("body").on("shown.bs.modal","#chooseBonusProductModal",(function(){$("#chooseBonusProductModal").siblings().attr("aria-hidden","true"),$("#chooseBonusProductModal .close").focus()}))},onClosingChooseBonusProductModal:function(){$("body").on("hidden.bs.modal","#chooseBonusProductModal",(function(){$("#chooseBonusProductModal").siblings().attr("aria-hidden","false")}))},trapChooseBonusProductModalFocus:function(){$("body").on("keydown","#chooseBonusProductModal",(function(t){var e={event:t,containerSelector:"#chooseBonusProductModal",firstElementSelector:".close",lastElementSelector:".add-bonus-products"};i.setTabNextFocus(e)}))},colorAttribute:function(){$(document).on("click",'[data-attr="color"] button',(function(t){if(t.preventDefault(),!$(this).attr("disabled")){var e=$
2(this).closest(".set-item");e.length||(e=$(this).closest(".product-detail")),s($(this).attr("data-url"),e)}}))},selectAttribute:function(){$(document).on("change",'select[class*="select-"], .options-select',(function(t){t.preventDefault();var e=$(this).closest(".set-item");e.length||(e=$(this).closest(".product-detail")),s(t.currentTarget.value,e)}))},availability:function(){$(document).on("change",".quantity-select",(function(t){t.preventDefault();var e=$(this).closest(".product-detail");e.length||(e=$(this).closest(".modal-content").find(".product-quickview")),0===$(".bundle-items",e).length&&s($(t.currentTarget).find("option:selected").data("url"),e)}))},addToCart:function(){$(document).on("click","button.add-to-cart, button.add-to-cart-global",(function(){var t,e,n,i;$("body").trigger("product:beforeAddToCart",this),$(".set-items").length&&$(this).hasClass("add-to-cart-global")&&(i=[],$(".product-detail").each((function(){$(this).hasClass("product-set-detail")||i.push({pid:$(this).find(".product-id").text(),qty:$(this).find(".quantity-select").val(),options:u($(this))})})),n=JSON.stringify(i)),e=r($(this));var o=$(this).closest(".product-detail");o.length||(o=$(this).closest(".quick-view-dialog").find(".product-detail")),t=$(".add-to-cart-url").val();var s,l={pid:e,pidsObj:n,childProducts:(s=[],$(".bundle-item").each((function(){s.push({pid:$(this).find(".product-id").text(),quantity:parseInt($(this).find("label.quantity").data("quantity"),10)})})),s.length?JSON.stringify(s):[]),quantity:a($(this))};$(".bundle-item").length||(l.options=u(o)),$(this).trigger("updateAddToCartFormData",l),t&&$.ajax({url:t,method:"POST",data:l,success:function(t){!function(t){$(".minicart").trigger("count:update",t);var e=t.error?"alert-danger":"alert-success";t.newBonusDiscountLineItem&&0!==Object.keys(t.newBonusDiscountLineItem).length?c(t.newBonusDiscountLineItem):(0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".add-to-cart-messages").append('<div class="alert '+e+' add-to-basket-alert text-center" role="alert">'+t.message+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove()}),5e3))}(t),$("body").trigger("product:afterAddToCart",t),$.spinner().stop(),d(t.reportingURL)},error:function(){$.spinner().stop()}})}))},selectBonusProduct:function(){$(document).on("click",".select-bonus-product",(function(){var t=$(this).parents(".choice-of-bonus-product"),e=$(this).data("pid"),n=$(".choose-bonus-product-dialog").data("total-qty"),i=parseInt(t.find(".bonus-quantity-select").val(),10),r=0;$.each($("#chooseBonusProductModal .selected-bonus-products .selected-pid"),(function(){r+=$(this).data("qty")})),r+=i;var o=t.find(".product-option").data("option-id"),a=t.find(".options-select option:selected").data("valueId");if(r<=n){var s='<div class="selected-pid row" data-pid="'+e+'"data-qty="'+i+'"data-optionID="'+(o||"")+'"data-option-selected-value="'+(a||"")+'"><div class="col-sm-11 col-9 bonus-product-name" >'+t.find(".product-name").html()+'</div><div class="col-1"><i class="fa fa-times" aria-hidden="true"></i></div></div>';$("#chooseBonusProductModal .selected-bonus-products").append(s),$(".pre-cart-products").html(r),$(".selected-bonus-products .bonus-summary").removeClass("alert-danger")}else $(".selected-bonus-products .bonus-summary").addClass("alert-danger")}))},removeBonusProduct:function(){$(document).on("click",".selected-pid",(function(){$(this).remove();var t=$("#chooseBonusProductModal .selected-bonus-products .selected-pid"),e=0;t.length&&t.each((function(){e+=parseInt($(this).data("qty"),10)})),$(".pre-cart-products").html(e),$(".selected-bonus-products .bonus-summary").removeClass("alert-danger")}))},enableBonusProductSelection:function(){$("body").on("bonusproduct:updateSelectButton",(function(t,e){$("button.select-bonus-product",e.$productContainer).attr("disabled",!e.product.readyToOrder||!e.product.available);var n=e.product.id;$("button.select-bonus-product",e.$productContainer).data("pid",n)}))},showMoreBonusProducts:function(){$(document).on("click",".show-more-bonus-products",(function(){var t=$(this).data("url");$(".modal-content").spinner().start(),$.ajax({url:t,method:"GET",success:function(t){var e=l(t);$(".modal-body").append(e.body),$(".show-more-bonus-products:first").remove(),$(".modal-content").spinner().stop()},error:function(){$(".modal-content").spinner().stop()}})}))},addBonusProductsToCart:function(){$(document).on("click",".add-bonus-products",(function(){var t=$(".choose-bonus-product-dialog .selected-pid"),e="?pids=",n=$(".choose-bonus-product-dialog").data("addtocarturl"),i={bonusProducts:[]};$.each(t,(function(){var t=parseInt($(this).data("qty"),10),e=null;t>0&&($(this).data("optionid")&&$(this).data("option-selected-value")&&((e={}).optionId=$(this).data("optionid"),e.productId=$(this).data("pid"),e.selectedValueId=$(this).data("option-selected-value")),i.bonusProducts.push({pid:$(this).data("pid"),qty:t,options:[e]}),i.totalQty=parseInt($(".pre-cart-products").html(),10))})),e=(e=(e+=JSON.stringify(i))+"&uuid="+$(".choose-bonus-product-dialog").data("uuid"))+"&pliuuid="+$(".choose-bonus-product-dialog").data("pliuuid"),$.spinner().start(),$.ajax({url:n+e,method:"POST",success:function(t){$.spinner().stop(),t.error?($("#chooseBonusProductModal").modal("hide"),0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".add-to-cart-messages").append('<div class="alert alert-danger add-to-basket-alert text-center" role="alert">'+t.errorMessage+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove()}),3e3)):($(".configure-bonus-product-attributes").html(t),$(".bonus-products-step2").removeClass("hidden-xl-down"),$("#chooseBonusProductModal").modal("hide"),0===$(".add-to-cart-messages").length&&$("body").append('<div class="add-to-cart-messages"></div>'),$(".minicart-quantity").html(t.totalQty),$(".add-to-cart-messages").append('<div class="alert alert-success add-to-basket-alert text-center" role="alert">'+t.msgSuccess+"</div>"),setTimeout((function(){$(".add-to-basket-alert").remove(),$(".cart-page").length&&location.reload()}),1500))},error:function(){$.spinner().stop()}})}))},getPidValue:r,getQuantitySelected:a,miniCartReportingUrl:d}},5898:(t,e,n)=>{var i=n(55239);t.exports={methods:{updateAddToCartEnableDisableOtherElements:function(t){$("button.add-to-cart-global").attr("disabled",t)}},availability:i.availability,addToCart:i.addToCart,updateAttributesAndDetails:function(){$("body").on("product:statusUpdate",(function(t,e){var n=$('.product-detail[data-pid="'+e.id+'"]');n.find(".description-and-detail .product-attributes").empty().html(e.attributesHtml),e.shortDe
2scription?(n.find(".description-and-detail .description").removeClass("hidden-xl-down"),n.find(".description-and-detail .description .content").empty().html(e.shortDescription)):n.find(".description-and-detail .description").addClass("hidden-xl-down"),e.longDescription?(n.find(".description-and-detail .details").removeClass("hidden-xl-down"),n.find(".description-and-detail .details .content").empty().html(e.longDescription)):n.find(".description-and-detail .details").addClass("hidden-xl-down")}))},showSpinner:function(){$("body").on("product:beforeAddToCart product:beforeAttributeSelect",(function(){$.spinner().start()}))},updateAttribute:function(){$("body").on("product:afterAttributeSelect",(function(t,e){$(".product-detail>.bundle-items").length||$(".product-set-detail").eq(0)?(e.container.data("pid",e.data.product.id),e.container.find(".product-id").text(e.data.product.id)):($(".product-id").text(e.data.product.id),$('.product-detail:not(".bundle-item")').data("pid",e.data.product.id))}))},updateAddToCart:function(){$("body").on("product:updateAddToCart",(function(e,n){$("button.add-to-cart",n.$productContainer).attr("disabled",!n.product.readyToOrder||!n.product.available);var i=$(".product-availability").toArray().every((function(t){return $(t).data("available")&&$(t).data("ready-to-order")}));t.exports.methods.updateAddToCartEnableDisableOtherElements(!i)}))},updateAvailability:function(){$("body").on("product:updateAvailability",(function(t,e){if($("div.availability",e.$productContainer).data("ready-to-order",e.product.readyToOrder).data("available",e.product.available),$(".availability-msg",e.$productContainer).empty().html(e.message),$(".global-availability").length){var n=$(".product-availability").toArray().every((function(t){return $(t).data("available")})),i=$(".product-availability").toArray().every((function(t){return $(t).data("ready-to-order")}));$(".global-availability").data("ready-to-order",i).data("available",n),$(".global-availability .availability-msg").empty().html(i?e.message:e.resources.info_selectforstock)}}))},sizeChart:function(){$(".size-chart a").on("click",(function(t){t.preventDefault();var e=$(this).attr("href"),n=$(this).closest(".size-chart").find(".size-chart-collapsible");n.is(":empty")&&$.ajax({url:e,type:"get",dataType:"json",success:function(t){n.append(t.content)}}),n.toggleClass("active")}));var t=$(".size-chart-collapsible");$("body").on("click touchstart",(function(e){$(".size-chart").has(e.target).length<=0&&t.removeClass("active")}))},copyProductLink:function(){$("body").on("click","#fa-link",(function(){event.preventDefault();var t=$("<input>");$("body").append(t),t.val($("#shareUrl").val()).select(),document.execCommand("copy"),t.remove(),$(".copy-link-message").attr("role","alert"),$(".copy-link-message").removeClass("d-none"),setTimeout((function(){$(".copy-link-message").addClass("d-none")}),3e3)}))},focusChooseBonusProductModal:i.focusChooseBonusProductModal()}},82343:t=>{function e(t){return e="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},e(t)}t.exports=function(t){"function"==typeof t?t.call(this):"object"===e(t)&&Object.keys(t).forEach((function(e){"function"==typeof t[e]&&t[e].call(t)}))}},25650:(t,e,n)=>{n.r(e),n.d(e,{default:()=>g});var i=n(28928),r=n.n(i),o=n(16536);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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===a(r)?r:String(r)),i)}var r}var l="alert",c="bs.alert",u=".".concat(c),d=r().fn[l],h="close".concat(u),p="closed".concat(u),f="click".concat(u).
2concat(".data-api"),m=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._element=e}var e,n,i;return e=t,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"_jQueryInterface",value:function(e){return this.each((function(){var n=r()(this),i=n.data(c);i||(i=new t(this),n.data(c,i)),"close"===e&&i[e](this)}))}},{key:"_handleDismiss",value:function(t){return function(e){e&&e.preventDefault(),t.close(this)}}}],(n=[{key:"close",value:function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}},{key:"dispose",value:function(){r().removeData(this._element,c),this._element=null}},{key:"_getRootElement",value:function(t){var e=o.default.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=r()(t).closest(".".concat("alert"))[0]),n}},{key:"_triggerCloseEvent",value:function(t){var e=r().Event(h);return r()(t).trigger(e),e}},{key:"_removeElement",value:function(t){var e=this;if(r()(t).removeClass("show"),r()(t).hasClass("fade")){var n=o.default.getTransitionDurationFromElement(t);r()(t).one(o.default.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)}},{key:"_destroyElement",value:function(t){r()(t).detach().trigger(p).remove()}}])&&s(e.prototype,n),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r()(document).on(f,'[data-dismiss="alert"]',m._handleDismiss(new m)),r().fn[l]=m._jQueryInterface,r().fn[l].Constructor=m,r().fn[l].noConflict=function(){return r().fn[l]=d,m._jQueryInterface};const g=m},79950:(t,e,n)=>{n.r(e),n.d(e,{default:()=>U});var i=n(28928),r=n.n(i),o=n(16536);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},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}var h="carousel",p="bs.carousel",f=".".concat(p),m=".data-api",g=r().fn[h],v="active",y="next",b="prev",_="slide".concat(f),w="slid".concat(f),T="keydown".concat(f),S="mouseenter".concat(f),C="mouseleave".concat(f),k="touchstart".concat(f),x="touchmove".concat(f),E="touchend".concat(f),$="pointerdown".concat(f),I="pointerup".concat(f),O="dragstart".concat(f),A="load".concat(f).concat(m),P="click".concat(f).concat(m),D=".active.carousel-item",L={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},M={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},N={TOUCH:"touch",PEN:"pen"},j=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(n),this._element=e,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e,n,i;return e=t,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return L}},{key:"_jQueryInterface",value:function(e){return this.each((function(){var n=r()(this).data(p),i=l(l({},L),r()(this).data());"object"===a(e)&&(i=l(l({},i),e));var o="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),r()(this).data(p,n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method n
2amed "'.concat(o,'"'));n[o]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))}},{key:"_dataApiClickHandler",value:function(e){var n=o.default.getSelectorFromElement(this);if(n){var i=r()(n)[0];if(i&&r()(i).hasClass("carousel")){var a=l(l({},r()(i).data()),r()(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),t._jQueryInterface.call(r()(i),a),s&&r()(i).data(p).to(s),e.preventDefault()}}}}],(n=[{key:"next",value:function(){this._isSliding||this._slide(y)}},{key:"nextWhenVisible",value:function(){var t=r()(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()}},{key:"prev",value:function(){this._isSliding||this._slide(b)}},{key:"pause",value:function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(o.default.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function(t){var e=this;this._activeElement=this._element.querySelector(D);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)r()(this._element).one(w,(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?y:b;this._slide(i,this._items[t])}}},{key:"dispose",value:function(){r()(this._element).off(f),r().removeData(this._element,p),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null}},{key:"_getConfig",value:function(t){return t=l(l({},L),t),o.default.typeCheckConfig(h,t,M),t}},{key:"_handleSwipe",value:function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}}},{key:"_addEventListeners",value:function(){var t=this;this._config.keyboard&&r()(this._element).on(T,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&r()(this._element).on(S,(function(e){return t.pause(e)})).on(C,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&N[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&N[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};r()(this._element.querySelectorAll(".carousel-item img")).on(O,(function(t){return t.preventDefault()})),this._pointerEvent?(r()(this._element).on($,(function(t){return e(t)})),r()(this._element).on(I,(function(t){return n(t)})),this._element.classList.add("pointer-event")):(r()(this._element).on(k,(function(t){return e(t)})),r()(this._element).on(x,(function(e){return function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),r()(this._element).on(E,(function(t){return n(t)})))}}},{key:"_keydown",value:function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}}},{key:"_getItemIndex",value:function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)}},{key:"_getItemByDirection",value:function(t,e){var n=t===y,i=t===b,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var a=(r+(t===b?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]}},{key:"_triggerSlideEvent",value:function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(D)),o=r().Event(_,{relatedTarget:t,direction:e,from:i,to:n});return r()(this._element).trigger(o),o}},{key:"_setActiveIndicatorElement",value:function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));r()(e).removeClass(v);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&r()(n).addClass(v)}}},{key:"_updateInterval",value:function(){var t=this._activeElement||this._element.querySelector(D);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}}},{key:"_slide",value:function(t,e){var n,i,a,s=this,l=this._element.querySelector(D),c=this._getItemIndex(l),u=e||l&&this._getItemByDirection(t,l),d=this._getItemIndex(u),h=Boolean(this._interval);if(t===y?(n="carousel-item-left",i="carousel-item-next",a="left"):(n="carousel-item-right",i="carousel-item-prev",a="right"),u&&r()(u).hasClass(v))this._isSliding=!1;else if(!this._triggerSlideEvent(u,a).isDefaultPrevented()&&l&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var p=r().Event(w,{relatedTarget:u,direction:a,from:c,to:d});if(r()(this._element).hasClass("slide")){r()(u).addClass(i),o.default.reflow(u),r()(l).addClass(n),r()(u).addClass(n);var f=o.default.getTransitionDurationFromElement(l);r()(l).one(o.default.TRANSITION_END,(function(){r()(u).removeClass("".concat(n," ").concat(i)).addClass(v),r()(l).removeClass("".concat(v," ").concat(i," ").concat(n)),s._isSli
2ding=!1,setTimeout((function(){return r()(s._element).trigger(p)}),0)})).emulateTransitionEnd(f)}else r()(l).removeClass(v),r()(u).addClass(v),this._isSliding=!1,r()(this._element).trigger(p);h&&this.cycle()}}}])&&u(e.prototype,n),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r()(document).on(P,"[data-slide], [data-slide-to]",j._dataApiClickHandler),r()(window).on(A,(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var i=r()(t[e]);j._jQueryInterface.call(i,i.data())}})),r().fn[h]=j._jQueryInterface,r().fn[h].Constructor=j,r().fn[h].noConflict=function(){return r().fn[h]=g,j._jQueryInterface};const U=j},3228:(t,e,n)=>{n.r(e),n.d(e,{default:()=>O});var i=n(28928),r=n.n(i),o=n(16536);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},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}var h="collapse",p="bs.collapse",f=".".concat(p),m=r().fn[h],g="show",v="collapse",y="collapsing",b="collapsed",_="width",w="show".concat(f),T="shown".concat(f),S="hide".concat(f),C="hidden".concat(f),k="click".concat(f).concat(".data-api"),x='[data-toggle="collapse"]',E={toggle:!0,parent:""},$={toggle:"boolean",parent:"(string|element)"},I=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'.concat(e.id,'"],')+'[data-toggle="collapse"][data-target="#'.concat(e.id,'"]')));for(var i=[].slice.call(document.querySelectorAll(x)),r=0,a=i.length;r<a;r++){var s=i[r],l=o.default.getSelectorFromElement(s),c=[].slice.call(document.querySelectorAll(l)).filter((function(t){return t===e}));null!==l&&c.length>0&&(this._selector=l,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e,n,i;return e=t,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return E}},{key:"_getTargetFromElement",value:function(t){var e=o.default.getSelectorFromElement(t);return e?document.querySelector(e):null}},{key:"_jQueryInterface",value:function(e){return this.each((function(){var n=r()(this),i=n.data(p),o=l(l(l({},E),n.data()),"object"===a(e)&&e?e:{});if(!i&&o.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(o.toggle=!1),i||(i=new t(this,o),n.data(p,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'.concat(e,'"'));i[e]()}}))}}],(n=[{key:"toggle",value:function(){r()(this._element).hasClass(g)?this.hide():this.show()}},{key:"show",value:function(){var e,n,i=this;if(!(this._isTransitioning||r()(this._element).hasClass(g)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(v)}))).length&&(e=null),e&&(n=r()(e).not(this._selector).data(p))&&n._isTransitioning))){var a=r().Event(w);if(r()(this._element).trigger(a),!a.isDefaultPrevented()){e&&(t._jQueryInterface.call(r()(e).not(this._selector),"hide"),n||r()(e).data(p,null));var s=this._getDimension();r()(this._element).removeClass(v).addClass(y),this._element.style[s]=0,this._triggerArray.length&&r()(this._triggerArray).removeClass(b).attr("aria-expanded",!0),this.setTransitioning(!0);var l=s[0].toUpperCase()+s.slice(1),c="scroll".concat(l),u=o.default.getTransitionDurationFromElement(this._element);r()(this._element).one(o.default.TRANSITION_END,(function(){r()(i._element).removeClass(y).addClass("".concat(v," ").concat(g)),i._element.style[s]="",i.setTransitioning(!1),r()(i._element).trigger(T)})).emulateTransitionEnd(u),this._element.style[s]="".concat(this._element[c],"px")}}}},{key:"hide",value:function(){var t=this;if(!this._isTransitioning&&r()(this._element).hasClass(g)){var e=r().Event(S);if(r()(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]="".concat(this._element.getBoundingClientRect()[n],"px"),o.default.reflow(this._element),r()(this._element).addClass(y).removeClass("".concat(v," ").concat(g));var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var s=this._triggerArray[a],l=o.default.getSelectorFromElement(s);null!==l&&(r()([].slice.call(document.querySelectorAll(l))).hasClass(g)||r()(s).addClass(b).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var c=o.default.getTransitionDurationFromElement(this._element);r()(this._element).one(o.default.TRANSITION_END,(function(){t.setTransitioning(!1),r()(t._element).removeClass(y).addClass(v).trigger(C)})).emulateTransitionEnd(c)}}}},{key:"setTransitioning",value:function(t){this._isTransitioning=t}},{key:"dispose",value:function(){r().removeData(this._element,p),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null}},{key:"_getConfig",value:function(t){return(t=l(l({},E),t)).toggle=Boolean(t.toggle),o.default.typeCheckConfig(h,t,$),t}},{key:"_getDimension",value:function(){return r()(this._element).hasClass(_)?_:"height"}},{key:"_getParent",value:function(){var e,n=this;o.default.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'.concat(this._config.parent,'"]'),a=[].slice.call(e.querySelectorAll(i));return r()(a).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e}},{key:"_addAriaAndCollapsedClass",value:function(t,e){var n=r()(t).hasClass(g);e.length&&r()(e).toggleClass(b,!n).attr("aria-expanded",n)}}])&&u(e.prototype,n),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r()(document).on(k,x,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=r()(this),n=o.default.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));r()(i).each((function(){var t=r()(this),n=t.data(p)?"toggle":e.data();I._jQueryInterface.call(t,n)}))})),r().fn[h]=I._jQueryInterface,r().fn[h].Constructor=I,r().fn[h].noConflict=function(){return r().fn[h]=m,I._jQueryInterface};const O=I},57082:(t,e,n)=>{n.r(e),n.d(e,{default:()=>M});var i=n(28928),r=n.n(i),o=n(65401),a=n(16536);function s(t){return s="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},s(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function h(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===s(e)?e:String(e)}var p="dropdown",f="bs.dropdown",m=".".concat(f),g=".data-api",v=r().fn[p],y=new RegExp("".concat(38,"|").concat(40,"|").concat(27)),b="disabled",_="show",w="dropdown-menu-right",T="hide".concat(m),S="hidden".concat(m),C="show".concat(m),k="shown".concat(m),x="click".concat(m),E="click".concat(m).concat(g),$="keydown".concat(m).concat(g),I="keyup".concat(m).concat(g),O='[data-toggle="dropdown"]',A=".dropdown-menu",P={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},D={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},L=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._element=e,this._popper=null,this._config=this._getConfig(n),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e,n,i;return e=t,n=[{key:"toggle",value:function(){if(!this._element.disabled&&!r()(this._element).hasClass(b)){var e=r()(this._menu).hasClass(_);t._clearMenus(),e||this.show(!0)}}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!(this._element.disabled||r()(this._element).hasClass(b)||r()(this._menu).hasClass(_))){var n={relatedTarget:this._element},i=r().Event(C,n),s=t._getParentFromElement(this._element);if(r()(s).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===o.Z)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var l=this._element;"parent"===this._config.reference?l=s:a.default.isElement(this._config.reference)&&(l=this._config.reference,void 0!==this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r()(s).addClass("position-static"),this._popper=new o.Z(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r()(s).closest(".navbar-nav").length&&r()(document.body).children().on("mouseover",null,r().noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r()(this._menu).toggleClass(_),r()(s).toggleClass(_).trigger(r().Event(k,n))}}}},{key:"hide",value:function(){if(!this._element.disabled&&!r()(this._element).hasClass(b)&&r()(this._menu).hasClass(_)){var e={relatedTarget:this._element},n=r().Event(T,e),i=t._getParentFromElement(this._element);r()(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r()(this._menu).toggleClass(_),r()(i).toggleClass(_).trigger(r().Event(S,e)))}}},{key:"dispose",value:function(){r().removeData(this._element,f),r()(this._element).off(m),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)}},{key:"update",value:function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()}},{key:"_addEventListeners",value:function(){var t=this;r()(this._element).on(x,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))}},{key:"_getConfig",value:function(t){return t=c(c(c({},this.constructor.Default),r()(this._element).data()),t),a.default.typeCheckConfig(p,t,this.constructor.DefaultType),t}},{key:"_getMenuElement",value:function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(A))}return this._menu}},{key:"_getPlacement",value:function(){var t=r()(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=r()(this._menu).hasClass(w)?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":r()(this._menu).hasClass(w)&&(e="bottom-end"),e}},{key:"_detectNavbar",value:function(){return r()(this._element).closest(".
2navbar").length>0}},{key:"_getOffset",value:function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=c(c({},e.offsets),t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e}},{key:"_getPopperConfig",value:function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),c(c({},t),this._config.popperConfig)}}],i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return P}},{key:"DefaultType",get:function(){return D}},{key:"_jQueryInterface",value:function(e){return this.each((function(){var n=r()(this).data(f),i="object"===s(e)?e:null;if(n||(n=new t(this,i),r()(this).data(f,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}},{key:"_clearMenus",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(O)),i=0,o=n.length;i<o;i++){var a=t._getParentFromElement(n[i]),s=r()(n[i]).data(f),l={relatedTarget:n[i]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var c=s._menu;if(r()(a).hasClass(_)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&r().contains(a,e.target))){var u=r().Event(T,l);r()(a).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r()(document.body).children().off("mouseover",null,r().noop),n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),r()(c).removeClass(_),r()(a).removeClass(_).trigger(r().Event(S,l)))}}}}},{key:"_getParentFromElement",value:function(t){var e,n=a.default.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode}},{key:"_dataApiKeydownHandler",value:function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||r()(e.target).closest(A).length):!y.test(e.which))&&!this.disabled&&!r()(this).hasClass(b)){var n=t._getParentFromElement(this),i=r()(n).hasClass(_);if(i||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!i||27===e.which||32===e.which)return 27===e.which&&r()(n.querySelector(O)).trigger("focus"),void r()(this).trigger("click");var o=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return r()(t).is(":visible")}));if(0!==o.length){var a=o.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}}}],n&&d(e.prototype,n),i&&d(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r()(document).on($,O,L._dataApiKeydownHandler).on($,A,L._dataApiKeydownHandler).on("".concat(E," ").concat(I),L._clearMenus).on(E,O,(function(t){t.preventDefault(),t.stopPropagation(),L._jQueryInterface.call(r()(this),"toggle")})).on(E,".dropdown form",(function(t){t.stopPropagation()})),r().fn[p]=L._jQueryInterface,r().fn[p].Constructor=L,r().fn[p].noConflict=function(){return r().fn[p]=v,L._jQueryInterface};const M=L},36268:(t,e,n)=>{n.r(e),n.d(e,{default:()=>j});var i=n(28928),r=n.n(i),o=n(16536);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},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}var h="modal",p="bs.modal",f=".".concat(p),m=r().fn[h],g="modal-open",v="fade",y="show",b="modal-static",_="hide".concat(f),w="hidePrevented".concat(f),T="hidden".concat(f),S="show".concat(f),C="shown".concat(f),k="focusin".concat(f),x="resize".concat(f),E="click.dismiss".concat(f),$="keydown.dismiss".concat(f),I="mouseup.dismiss".concat(f),O="mousedown.dismiss".concat(f),A="click".concat(f).concat(".data-api"),P=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",D=".sticky-top",L={backdrop:!0,keyboard:!0,focus:!0,show:!0},M={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},N=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._config=this._getConfig(n),this._element=e,this._dialog=e.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e,n,i;return e=t,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return L}},{key:"_jQueryInterface",value:function(e,n){return this.each((function(){var i=r()(this).data(p),o=l(l(l({},L),r()(this).data()),"object"===a(e)&&e?e:{});if(i||(i=new t(this,o),r()(this).data(p,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method n
2amed "'.concat(e,'"'));i[e](n)}else o.show&&i.show(n)}))}}],(n=[{key:"toggle",value:function(t){return this._isShown?this.hide():this.show(t)}},{key:"show",value:function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=r().Event(S,{relatedTarget:t});r()(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,r()(this._element).hasClass(v)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r()(this._element).on(E,'[data-dismiss="modal"]',(function(t){return e.hide(t)})),r()(this._dialog).on(O,(function(){r()(e._element).one(I,(function(t){r()(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}}},{key:"hide",value:function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=r().Event(_);if(r()(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=r()(this._element).hasClass(v);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r()(document).off(k),r()(this._element).removeClass(y),r()(this._element).off(E),r()(this._dialog).off(O),i){var a=o.default.getTransitionDurationFromElement(this._element);r()(this._element).one(o.default.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(a)}else this._hideModal()}}}},{key:"dispose",value:function(){[window,this._element,this._dialog].forEach((function(t){return r()(t).off(f)})),r()(document).off(k),r().removeData(this._element,p),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}},{key:"handleUpdate",value:function(){this._adjustDialog()}},{key:"_getConfig",value:function(t){return t=l(l({},L),t),o.default.typeCheckConfig(h,t,M),t}},{key:"_triggerBackdropTransition",value:function(){var t=this,e=r().Event(w);if(r()(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(b);var i=o.default.getTransitionDurationFromElement(this._dialog);r()(this._element).off(o.default.TRANSITION_END),r()(this._element).one(o.default.TRANSITION_END,(function(){t._element.classList.remove(b),n||r()(t._element).one(o.default.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}}},{key:"_showElement",value:function(t){var e=this,n=r()(this._element).hasClass(v),i=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r()(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&o.default.reflow(this._element),r()(this._element).addClass(y),this._config.focus&&this._enforceFocus();var a=r().Event(C,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,r()(e._element).trigger(a)};if(n){var l=o.default.getTransitionDurationFromElement(this._dialog);r()(this._dialog).one(o.default.TRANSITION_END,s).emulateTransitionEnd(l)}else s()}},{key:"_enforceFocus",value:function(){var t=this;r()(document).off(k).on(k,(function(e){document!==e.target&&t._element!==e.target&&0===r()(t._element).has(e.target).length&&t._element.focus()}))}},{key:"_setEscapeEvent",value:function(){var t=this;this._isShown?r()(this._element).on($,(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||r()(this._element).off($)}},{key:"_setResizeEvent",value:function(){var t=this;this._isShown?r()(window).on(x,(function(e){return t.handleUpdate(e)})):r()(window).off(x)}},{key:"_hideModal",value:function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){r()(document.body).removeClass(g),t._resetAdjustments(),t._resetScrollbar(),r()(t._element).trigger(T)}))}}
2,{key:"_removeBackdrop",value:function(){this._backdrop&&(r()(this._backdrop).remove(),this._backdrop=null)}},{key:"_showBackdrop",value:function(t){var e=this,n=r()(this._element).hasClass(v)?v:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),r()(this._backdrop).appendTo(document.body),r()(this._element).on(E,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&o.default.reflow(this._backdrop),r()(this._backdrop).addClass(y),!t)return;if(!n)return void t();var i=o.default.getTransitionDurationFromElement(this._backdrop);r()(this._backdrop).one(o.default.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){r()(this._backdrop).removeClass(y);var a=function(){e._removeBackdrop(),t&&t()};if(r()(this._element).hasClass(v)){var s=o.default.getTransitionDurationFromElement(this._backdrop);r()(this._backdrop).one(o.default.TRANSITION_END,a).emulateTransitionEnd(s)}else a()}else t&&t()}},{key:"_adjustDialog",value:function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft="".concat(this._scrollbarWidth,"px")),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight="".concat(this._scrollbarWidth,"px"))}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()}},{key:"_setScrollbar",value:function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(P)),n=[].slice.call(document.querySelectorAll(D));r()(e).each((function(e,n){var i=n.style.paddingRight,o=r()(n).css("padding-right");r()(n).data("padding-right",i).css("padding-right","".concat(parseFloat(o)+t._scrollbarWidth,"px"))})),r()(n).each((function(e,n){var i=n.style.marginRight,o=r()(n).css("margin-right");r()(n).data("margin-right",i).css("margin-right","".concat(parseFloat(o)-t._scrollbarWidth,"px"))}));var i=document.body.style.paddingRight,o=r()(document.body).css("padding-right");r()(document.body).data("padding-right",i).css("padding-right","".concat(parseFloat(o)+this._scrollbarWidth,"px"))}r()(document.body).addClass(g)}},{key:"_resetScrollbar",value:function(){var t=[].slice.call(document.querySelectorAll(P));r()(t).each((function(t,e){var n=r()(e).data("padding-right");r()(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll("".concat(D)));r()(e).each((function(t,e){var n=r()(e).data("margin-right");void 0!==n&&r()(e).css("margin-right",n).removeData("margin-right")}));var n=r()(document.body).data("padding-right");r()(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""}},{key:"_getScrollbarWidth",value:function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}}])&&u(e.prototype,n),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r()(document).on(A,'[data-toggle="modal"]',(function(t){var e,n=this,i=o.default.getSelectorFromElement(this);i&&(e=document.querySelector(i));var a=r()(e).data(p)?"toggle":l(l({},r()(e).data()),r()(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=r()(e).one(S,(function(t){t.isDefaultPrevented()||s.one(T,(function(){r()(n).is(":visible")&&n.focus()}))}));N._jQueryInterface.call(r()(e),a,this)})),r().fn[h]=N._jQueryInterface,r().fn[h].Constructor=N,r().fn[h].noConflict=function(){return r().fn[h]=m,N._jQueryInterface};const j=N},25827:(t,e,n)=>{n.r(e),n.d(e,{default:()=>C});var i=n(28928),r=n.n(i),o=n(95448);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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}
2function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}var f="popover",m="bs.popover",g=".".concat(m),v=r().fn[f],y="bs-popover",b=new RegExp("(^|\\s)".concat(y,"\\S+"),"g"),_=d(d({},o.default.Default),{},{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),w=d(d({},o.default.DefaultType),{},{content:"(string|element|function)"}),T={HIDE:"hide".concat(g),HIDDEN:"hidden".concat(g),SHOW:"show".concat(g),SHOWN:"shown".concat(g),INSERTED:"inserted".concat(g),CLICK:"click".concat(g),FOCUSIN:"focusin".concat(g),FOCUSOUT:"focusout".concat(g),MOUSEENTER:"mouseenter".concat(g),MOUSELEAVE:"mouseleave".concat(g)},S=function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(h,t);var e,n,i,o,u,d=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=c(o);if(u){var n=c(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return _}},{key:"NAME",get:function(){return f}},{key:"DATA_KEY",get:function(){return m}},{key:"Event",get:function(){return T}},{key:"EVENT_KEY",get:function(){return g}},{key:"DefaultType",get:function(){return w}},{key:"_jQueryInterface",value:function(t){return this.each((function(){var e=r()(this).data(m),n="object"===a(t)?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new h(this,n),r()(this).data(m,e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}}))}}],(n=[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"addAttachmentClass",value:function(t){r()(this.getTipElement()).addClass("".concat(y,"-").concat(t))}},{key:"getTipElement",value:function(){return this.tip=this.tip||r()(this.config.template)[0],this.tip}},{key:"setContent",value:function(){var t=r()(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("".concat("fade"," ").concat("show"))}},{key:"_getContent",value:function(){return this.element.getAttribute("data-content")||this.config.content}},{key:"_cleanTipClass",value:function(){var t=r()(this.getTipElement()),e=t.attr("class").match(b);null!==e&&e.length>0&&t.removeClass(e.join(""))}}])&&s(e.prototype,n),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.default);r().fn[f]=S._jQueryInterface,r().fn[f].Constructor=S,r().fn[f].noConflict=function(){return r().fn[f]=v,S._jQueryInterface};const C=S},10708:(t,e,n)=>{n.r(e),n.d(e,{default:()=>E});var i=n(28928),r=n.n(i),o=n(16536);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},a(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function d(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}var h="scrollspy",p="bs.scrollspy",f=".".concat(p),m=r().fn[h],g="active",v="activate".concat(f),y="scroll".concat(f),b="load".concat(f).concat(".data-api"),_="position",w=".nav, .list-group",T=".nav-link",S=".list-group-item",C={offset:10,method:"auto",target:""},k={offset:"number",method:"string",target:"(string|element)"},x=function(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector="".concat(this._config.target," ").concat(T,",")+"".concat(this._config.target," ").concat(S,",")+"".concat(this._config.target," ").concat(".dropdown-item"),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r()(this._scrollElement).on(y,(function(t){return i._process(t)})),this.refresh(),this._process()}var e,n,i;return e=t,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return C}},{key:"_jQueryInterface",value:function(e){return this.each((function(){var n=r()(this).data(p),i="object"===a(e)&&e;if(n||(n=new t(this,i),r()(this).data(p,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e]()}}))}}],(n=[{key:"refresh",value:function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":_,n="auto"===this._config.method?e:this._config.method,i=n===_?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,a=o.default.getSelectorFromElement(t);if(a&&(e=document.querySelector(a)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[r()(e)[n]().top+i,a]}return null})).filter(Boolean).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))}},{key:"dispose",value:function(){r().removeData(this._element,p),r()(this._scrollElement).off(f),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}},{key:"_getConfig",value:function(t){if("string"!=typeof(t=l(l({},C),"object"===a(t)&&t?t:{})).target&&o.default.isElement(t.target)){var e=r()(t.target).attr("id");e||(e=o.default.getUID(h),r()(t.target).attr("id",e)),t.target="#".concat(e)}return o.default.typeCheckConfig(h,t,k),t}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(void 0===this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}}},{key:"_activate",value:function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return"".concat(e,'[data-target="').concat(t,'"],').concat(e,'[href="').concat(t,'"]')})),n=r()([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(g),n.addClass(g)):(n.addClass(g),n.parents(w).prev("".concat(T,", ").concat(S)).addClass(g),n.parents(w).prev(".nav-item").children(T).addClass(g)),r()(this._scrollElement).trigger(v,{relatedTarget:t})}},{key:"_clear",value:function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(g)}
2)).forEach((function(t){return t.classList.remove(g)}))}}])&&u(e.prototype,n),i&&u(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r()(window).on(b,(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=r()(t[e]);x._jQueryInterface.call(n,n.data())}})),r().fn[h]=x._jQueryInterface,r().fn[h].Constructor=x,r().fn[h].noConflict=function(){return r().fn[h]=m,x._jQueryInterface};const E=x},57313:(t,e,n)=>{n.r(e),n.d(e,{default:()=>S});var i=n(28928),r=n.n(i),o=n(16536);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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===a(r)?r:String(r)),i)}var r}var l="tab",c="bs.tab",u=".".concat(c),d=r().fn[l],h="active",p="fade",f="show",m="hide".concat(u),g="hidden".concat(u),v="show".concat(u),y="shown".concat(u),b="click".concat(u).concat(".data-api"),_=".active",w="> li > .active",T=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._element=e}var e,n,i;return e=t,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"_jQueryInterface",value:function(e){return this.each((function(){var n=r()(this),i=n.data(c);if(i||(i=new t(this),n.data(c,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'.concat(e,'"'));i[e]()}}))}}],(n=[{key:"show",value:function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r()(this._element).hasClass(h)||r()(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))){var e,n,i=r()(this._element).closest(".nav, .list-group")[0],a=o.default.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName||"OL"===i.nodeName?w:_;n=(n=r().makeArray(r()(i).find(s)))[n.length-1]}var l=r().Event(m,{relatedTarget:this._element}),c=r().Event(v,{relatedTarget:n});if(n&&r()(n).trigger(l),r()(this._element).trigger(c),!c.isDefaultPrevented()&&!l.isDefaultPrevented()){a&&(e=document.querySelector(a)),this._activate(this._element,i);var u=function(){var e=r().Event(g,{relatedTarget:t._element}),i=r().Event(y,{relatedTarget:n});r()(n).trigger(e),r()(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}}},{key:"dispose",value:function(){r().removeData(this._element,c),this._element=null}},{key:"_activate",value:function(t,e,n){var i=this,a=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?r()(e).children(_):r()(e).find(w))[0],s=n&&a&&r()(a).hasClass(p),l=function(){return i._transitionComplete(t,a,n)};if(a&&s){var c=o.default.getTransitionDurationFromElement(a);r()(a).removeClass(f).one(o.default.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},{key:"_transitionComplete",value:function(t,e,n){if(e){r()(e).removeClass(h);var i=r()(e.parentNode).find("> .dropdown-menu .active")[0];i&&r()(i).removeClass(h),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}r()(t).addClass(h),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),o.default.reflow(t),t.classList.contains(p)&&t.classList.add(f);var a=t.parentNode;if(a&&"LI"===a.nodeName&&(a=a.parentNode),a&&r()(a).hasClass("dropdown-menu")){var s=r()(t).closest(".dropdown")[0];if(s){var l=[].slice.call(s.querySelectorAll(".dropdown-toggle"));r()(l).addClass(h)}t.setAttribute("aria-expanded",!0)}n&&n()}}])&&s(e.prototype,n),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r()(document).on(b,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),T._jQueryInterface.call(r()(this),"show")})),r().fn[l]=T._jQueryInterface,r().fn[l].Constructor=T,r().fn[l].noConflict=function(){return r().fn[l]=d,T._jQueryInterface};const S=T},95448:(t,e,n)=>{n.r(e),n.d(e,{default:()=>M});var i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function a(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var a=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(e),l=[].slice.call(a.body.querySelectorAll("*")),c=function(){var t=l[u],n=t.nodeName.toLowerCase();if(-1===s.indexOf(t.nodeName.toLowerCase()))return t.parentNode.removeChild(t),1;var a=[].slice.call(t.attributes),c=[].concat(e["*"]||[],e[n]||[]);a.forEach((function(e){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===i.indexOf(n)||Boolean(r.test(t.no
2deValue)||o.test(t.nodeValue));for(var a=e.filter((function(t){return t instanceof RegExp})),s=0,l=a.length;s<l;s++)if(a[s].test(n))return!0;return!1})(e,c)||t.removeAttribute(e.nodeName)}))},u=0,d=l.length;u<d;u++)c();return a.body.innerHTML}var s=n(28928),l=n.n(s),c=n(65401),u=n(16536);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return f="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},f(t)}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,g(i.key),i)}}function g(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===f(e)?e:String(e)}var v="tooltip",y="bs.tooltip",b=".".concat(y),_=l().fn[v],w="bs-tooltip",T=new RegExp("(^|\\s)".concat(w,"\\S+"),"g"),S=["sanitize","whiteList","sanitizeFn"],C="fade",k="show",x="show",E="out",$="hover",I="focus",O={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},A={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},P={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},D={HIDE:"hide".concat(b),HIDDEN:"hidden".concat(b),SHOW:"show".concat(b),SHOWN:"shown".concat(b),INSERTED:"inserted".concat(b),CLICK:"click".concat(b),FOCUSIN:"focusin".concat(b),FOCUSOUT:"focusout".concat(b),MOUSEENTER:"mouseenter".concat(b),MOUSELEAVE:"mouseleave".concat(b)},L=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),void 0===c.Z)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(n),this.tip=null,this._setListeners()}var e,n,i;return e=t,i=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return A}},{key:"NAME",get:function(){return v}},{key:"DATA_KEY",get:function(){return y}},{key:"Event",get:function(){return D}},{key:"EVENT_KEY",get:function(){return b}},{key:"DefaultType",get:function(){return P}},{key:"_jQueryInterface",value:function(e){return this.each((function(){var n=l()(this),i=n.data(y),r="object"===f(e)&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,r),n.data(y,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method n
2amed "'.concat(e,'"'));i[e]()}}))}}],(n=[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=l()(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),l()(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(l()(this.getTipElement()).hasClass(k))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function(){clearTimeout(this._timeout),l().removeData(this.element,this.constructor.DATA_KEY),l()(this.element).off(this.constructor.EVENT_KEY),l()(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&l()(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null}},{key:"show",value:function(){var t=this;if("none"===l()(this.element).css("display"))throw new Error("Please use show on visible elements");var e=l().Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){l()(this.element).trigger(e);var n=u.default.findShadowRoot(this.element),i=l().contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=u.default.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&l()(r).addClass(C);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var d=this._getContainer();l()(r).data(this.constructor.DATA_KEY,this),l().contains(this.element.ownerDocument.documentElement,this.tip)||l()(r).appendTo(d),l()(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new c.Z(this.element,r,this._getPopperConfig(s)),l()(r).addClass(k),l()(r).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&l()(document.body).children().on("mouseover",null,l().noop);var h=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,l()(t.element).trigger(t.constructor.Event.SHOWN),e===E&&t._leave(null,t)};if(l()(this.tip).hasClass(C)){var p=u.default.getTransitionDurationFromElement(this.tip);l()(this.tip).one(u.default.TRANSITION_END,h).emulateTransitionEnd(p)}else h()}}},{key:"hide",value:function(t){var e=this,n=this.getTipElement(),i=l().Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==x&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),l()(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(l()(this.element).trigger(i),!i.isDefaultPrevented()){if(l()(n).removeClass(k),"ontouchstart"in document.documentElement&&l()(document.body).children().off("mouseover",null,l().noop),this._activeTrigger.click=!1,this._activeTrigger[I]=!1,this._activeTrigger[$]=!1,l()(this.tip).hasClass(C)){var o=u.default.getTransitionDurationFromElement(n);l()(n).one(u.default.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}}},{key:"update",value:function(){null!==this._popper&&this._popper.scheduleUpdate()}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"addAttachmentClass",value:function(t){l()(this.getTipElement()).addClass("".concat(w,"-").concat(t))}},{key:"getTipElement",value:function(){return this.tip=this.tip||l()(this.config.template)[0],this.tip}},{key:"setContent",value:function(){var t=this.getTipElement();this.setElementContent(l()(t.querySelectorAll(".tooltip-inner")),this.getTitle()),l()(t).removeClass("".concat(C," ").concat(k))}},{key:"setElementContent",value:function(t,e){"object"!==f(e)||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=a(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?l()(e).parent().is(t)||t.empty().append(e):t.text(l()(e).text())}},{key:"getTitle",value:function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t}},{key:"_getPopperConfig",value:function(t){var e=this;return h(h({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"}
2,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),this.config.popperConfig)}},{key:"_getOffset",value:function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=h(h({},e.offsets),t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e}},{key:"_getContainer",value:function(){return!1===this.config.container?document.body:u.default.isElement(this.config.container)?l()(this.config.container):l()(document).find(this.config.container)}},{key:"_getAttachment",value:function(t){return O[t.toUpperCase()]}},{key:"_setListeners",value:function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)l()(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n=e===$?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===$?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;l()(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},l()(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=h(h({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function(){var t=f(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}},{key:"_enter",value:function(t,e){var n=this.constructor.DATA_KEY;(e=e||l()(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),l()(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?I:$]=!0),l()(e.getTipElement()).hasClass(k)||e._hoverState===x?e._hoverState=x:(clearTimeout(e._timeout),e._hoverState=x,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===x&&e.show()}),e.config.delay.show):e.show())}},{key:"_leave",value:function(t,e){var n=this.constructor.DATA_KEY;(e=e||l()(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),l()(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?I:$]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=E,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===E&&e.hide()}),e.config.delay.hide):e.hide())}},{key:"_isWithActiveTrigger",value:function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}},{key:"_getConfig",value:function(t){var e=l()(this.element).data();return Object.keys(e).forEach((function(t){-1!==S.indexOf(t)&&delete e[t]})),"number"==typeof(t=h(h(h({},this.constructor.Default),e),"object"===f(t)&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),u.default.typeCheckConfig(v,t,this.constructor.DefaultType),t.sanitize&&(t.template=a(t.template,t.whiteList,t.sanitizeFn)),t}},{key:"_getDelegateConfig",value:function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t}},{key:"_cleanTipClass",value:function(){var t=l()(this.getTipElement()),e=t.attr("class").match(T);null!==e&&e.length&&t.removeClass(e.join(""))}},{key:"_handlePopperPlacementChange",value:function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))}},{key:"_fixTransition",value:function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(l()(t).removeClass(C),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)}}])&&m(e.prototype,n),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();l().fn[v]=L._jQueryInterface,l().fn[v].Constructor=L,l().fn[v].noConflict=function(){return l().fn[v]=_,L._jQueryInterface};const M=L},16536:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});var i=n(28928),r=n.n(i),o="transitionend",a={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=r()(t).css("transition-duration"),n=r()(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){r()(t).trigger(o)},supportsTransitionEnd:function(){return Boolean(o)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=e[i],s=o&&a.isElement(o)?"element":null==(l=o)?"".concat(l):{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(s))throw new Error("".concat(t.toUpperCase(),": ")+'Option "'.concat(i,'" provided type "').concat(s,'" ')+'but expected type "'.concat(r,'".'))}var l},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?a.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===r())throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=r().fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};a.jQueryDetection(),r().fn.emulateTransitionEnd=function(t){var e=this,n=!1;return r()(this).one(a.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||a.triggerTransitionEnd(e)}),t),this},r().event.special[a.TRANSITION_END]={bindType:o,delegateType:o,handle:function(t){if(r()(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};const s=a},28928:function(t,e,n){var i,r,o;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},a(t)}t=n.nmd(t),r="undefined"!=typeof window?window:this,o=function(n,r){var o=[],s=Object.getPrototypeOf,l=o.slice,c=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},u=o.push,d=o.indexOf,h={},p=h.toString,f=h.hasOwnProperty,m=f.toString,g=m.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},b=function(t){return null!=t&&t===t.window},_=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function T(t,e,n){var i,r,o=(n=n||_).createElement("script");
vendor: 26,154 bytes, line 2
2if(o.text=t,e)for(i in w)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function S(t){return null==t?t+"":"object"===a(t)||"function"==typeof t?h[p.call(t)]||"object":a(t)}var C="3.7.1",k=/HTML$/i,x=function t(e,n){return new t.fn.init(e,n)};function E(t){var e=!!t&&"length"in t&&t.length,n=S(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function $(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}x.fn=x.prototype={jquery:C,constructor:x,length:0,toArray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},x.extend=x.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[l]||{},l++),"object"===a(s)||y(s)||(s={}),l===c&&(s=this,l--);l<c;l++)if(null!=(t=arguments[l]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(u&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,s[e]=x.extend(u,o,i)):void 0!==i&&(s[e]=i));return s},x.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==p.call(t)||(e=s(t))&&("function"!=typeof(n=f.call(e,"constructor")&&e.constructor)||m.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){T(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(E(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=x.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(E(Object(t))?x.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:d.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!k.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(E(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return c(a)},guid:1,support:v}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=o[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){h["[object "+e+"]"]=e.toLowerCase()}));var I=o.pop,O=o.sort,A=o.splice,P="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");x.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}x.escapeSelector=function(t){return(t+"").replace(L,M)};var N=_,j=u;!function(){var t,e,i,r,a,s,c,u,h,p,m=j,g=x.expando,y=0,b=0,_=tt(),w=tt(),T=tt(),S=tt(),C=function(t,e){return t===e&&(a=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",E="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+P+"*("+E+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+E+"))|)"+P+"*\\]",M=":("+E+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",U=new RegExp(P+"+","g"),R=new RegExp("^"+P+"*,"+P+"*"),B=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),F=new RegExp(P+"|>"),z=new RegExp(M),H=new RegExp("^"+E+"$"),q={ID:new RegExp("^#("+E+")"),CLASS:new RegExp("^\\.("+E+")"),TAG:new RegExp("^("+E+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){lt()},J=ht((function(t){return!0===t.disabled&&$(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=l.call(N.childNodes),N.childNodes),o[N.childNodes.length].nodeType}catch(t){m={apply:function(t,e){j.apply(t,l.call(e))},call:function(t){j.apply(t,l.call(arguments,1))}}}function Z(t,e,n,i){var r,o,a,l,c,d,p,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||s,u)){if(11!==y&&(c=G.exec(t)))if(r=c[1]){if(9===y){if(!(a=e.getElementById(r)))return n;if(a.id===r)return m.call(n,a),n}else if(f&&(a=f.getElementById(r))&&Z.contains(e,a)&&a.id===r)return m.call(n,a),n}else{if(c[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(S[t+" "]||h&&h.test(t))){if(p=t,f=e,1===y&&(F.test(t)||B.test(t))){for((f=X.test(t)&&st(e.parentNode)||e)==e&&v.scope||((l=e.getAttribute("id"))?l=x.escapeSelector(l):e.setAttribute("id",l=g)),o=(d=ut(t)).length;o--;)d[o]=(l?"#"+l:":scope")+" "+dt(d[o]);p=d.join(",")}try{return m.apply(n,f.querySelectorAll(p)),n}catch(e){S(t,!0)}finally{l===g&&e.removeAttribute("id")}}}return yt(t.replace(D,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[g]=!0,t}function nt(t){var e=s.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return $(e,"input")&&e.type===t}}function rt(t){return function(e){return($(e,"input")||$(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:N;return i!=s&&9===i.nodeType&&i.documentElement?(c=(s=i).documentElement,u=!x.isXMLDoc(s),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&N!=s&&(n=s.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),v.getById=nt((function(t){return c.appendChild(t).id=x.expando,!s.getElementsByName||!s.getElementsByName(x.expando).length})),v.disconnectedMatch=nt((function(t){return p.call(t,"*")})),v.scope=nt((function(){return s.querySelectorAll(":scope")})),v.cssHas=nt((function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),v.getById?(e.filter.ID=function(t){var e=t.replace(Y,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Y,K);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&u)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;c.appendChild(t).innerHTML="<a id='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+P+"*(?:value|"+k+")"),t.querySelectorAll("[id~="+g+"-]").length||h.push("~="),t.querySelectorAll("a#"+g+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=s.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=s.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")})),v.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),C=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!v.sortDetached&&e.compareDocumentPosition(t)===n?t===s||t.ownerDocument==N&&Z.contains(N,t)?-1:e===s||e.ownerDocument==N&&Z.contains(N,e)?1:r?d.call(r,t)-d.call(r,e):0:4&n?-1:1)},s):s}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(lt(t),u&&!S[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return Z(e,s,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=s&<(t),x.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=s&<(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!u):void 0;return void 0!==r?r:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},x.uniqueSort=function(t){var e,n=[],i=0,o=0;if(a=!v.sortStable,r=!v.sortStable&&l.call(t,0),O.call(t,C),a){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)A.call(t,n[i],1)}return r=null,t},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(l.apply(this)))},e=x.expr={cacheLength:50,createPseudo:et,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Y,K),t[3]=(t[3]||t[4]||t[5]||"").replace(Y,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&z.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Y,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return $(t,e)}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&_(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=Z.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(U," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,p,f=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),b=!l&&!s,_=!1;if(m){if(o){for(;f;){for(d=e;d=d[f];)if(s?$(d,v):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&b){for(_=(h=(c=(u=m[g]||(m[g]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(_=h=0)||p.pop();)if(1===d.nodeType&&++_&&d===e){u[t]=[y,h,_];break}}else if(b&&(_=h=(c=(u=e[g]||(e[g]={}))[t]||[])[0]===y&&c[1]),!1===_)for(;(d=++h&&d&&d[f]||(_=h=0)||p.pop())&&(!(s?$(d,v):1===d.nodeType)||!++_||(b&&((u=d[g]||(d[g]={}))[t]=[y,_]),d!==e)););return(_-=r)===i||_%i==0&&_/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return r[g]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,o=r(t,n),a=o.length;a--;)t[i=d.call(t,o[a])]=!(e[i]=o[a])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=vt(t.replace(D,"$1"));return i[g]?et((function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Z(t,e).length>0}})),contains:et((function(t){return t=t.replace(Y,K),function(e){return(e.textContent||x.text(e)).indexOf(t)>-1}})),lang:et((function(t){return H.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(Y,K).toLowerCase(),function(e){var n;do{if(n=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return s.activeElement}catch(t){}}()&&s.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return $(t,"input")&&!!t.checked||$(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return W.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return $(t,"input")&&"button"===t.type||$(t,"button")},text:function(t){var e;return $(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:at((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:at((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:at((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ct(){}function ut(t,n){var i,r,o,a,s,l,c,u=w[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=e.preFilter;s;){for(a in i&&!(r=R.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=B.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(D," ")}),s=s.slice(i.length)),e.filter)!(r=q[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?Z.error(t):w(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var c,u,d=[y,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(u=e[g]||(e[g]={}),r&&$(e,r))e=e[i]||e;else{if((c=u[o])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function ft(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function mt(t,e,n,i,r,o){return i&&!i[g]&&(i=mt(i)),r&&!r[g]&&(r=mt(r,o)),et((function(o,a,s,l){var c,u,h,p,f=[],g=[],v=a.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)Z(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),b=!t||!o&&e?y:ft(y,f,t,s,l);if(n?n(b,p=r||(o?t:v||i)?[]:a,s,l):p=b,i)for(c=ft(p,g),i(c,[],s,l),u=c.length;u--;)(h=c[u])&&(p[g[u]]=!(b[g[u]]=h));if(o){if(r||t){if(r){for(c=[],u=p.length;u--;)(h=p[u])&&c.push(b[u]=h);r(null,p=[],c,l)}for(u=p.length;u--;)(h=p[u])&&(c=r?d.call(o,h):f[u])>-1&&(o[c]=!(a[c]=h))}}else p=ft(p===a?p.splice(v,p.length):p),r?r(null,a,p,l):m.apply(a,p)}))}function gt(t){for(var n,r,o,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],c=s?1:0,u=ht((function(t){return t===n}),l,!0),h=ht((function(t){return d.call(n,t)>-1}),l,!0),p=[function(t,e,r){var o=!s&&(r||e!=i)||((n=e).nodeType?u(t,e,r):h(t,e,r));return n=null,o}];c<a;c++)if(r=e.relative[t[c].type])p=[ht(pt(p),r)];else{if((r=e.filter[t[c].type].apply(null,t[c].matches))[g]){for(o=++c;o<a&&!e.relative[t[o].type];o++);return mt(c>1&&pt(p),c>1&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(D,"$1"),r,c<o&>(t.slice(c,o)),o<a&>(t=t.slice(o)),o<a&&dt(t))}p.push(r)}return pt(p)}function vt(t,n){var r,o=[],a=[],l=T[t+" "];if(!l){for(n||(n=ut(t)),r=n.length;r--;)(l=gt(n[r]))[g]?o.push(l):a.push(l);l=T(t,function(t,n){var r=n.length>0,o=t.length>0,a=function(a,l,c,d,h){var p,f,g,v=0,b="0",_=a&&[],w=[],T=i,S=a||o&&e.find.TAG("*",h),C=y+=null==T?1:Math.random()||.1,k=S.length;for(h&&(i=l==s||l||h);b!==k&&null!=(p=S[b]);b++){if(o&&p){for(f=0,l||p.ownerDocument==s||(lt(p),c=!u);g=t[f++];)if(g(p,l||s,c)){m.call(d,p);break}h&&(y=C)}r&&((p=!g&&p)&&v--,a&&_.push(p))}if(v+=b,r&&b!==v){for(f=0;g=n[f++];)g(_,w,l,c);if(a){if(v>0)for(;b--;)_[b]||w[b]||(w[b]=I.call(d));w=ft(w)}m.apply(d,w),h&&!a&&w.length>0&&v+n.length>1&&x.uniqueSort(d)}return h&&(y=C,i=T),_};return r?et(a):a}(a,o)),l.selector=t}return l}function yt(t,n,i,r){var o,a,s,l,c,d="function"==typeof t&&t,h=!r&&ut(t=d.selector||t);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&u&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(Y,K),n)||[])[0]))return i;d&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(o=q.needsContext.test(t)?0:a.length;o--&&(s=a[o],!e.relative[l=s.type]);)if((c=e.find[l])&&(r=c(s.matches[0].replace(Y,K),X.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(o,1),!(t=r.length&&dt(a)))return m.apply(i,r),i;break}}return(d||vt(t,h))(r,n,!u,i,!n||X.test(t)&&st(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,v.sortStable=g.split("").sort(C).join("")===g,lt(),v.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(s.createElement("fieldset"))})),x.find=Z,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Z.compile=vt,Z.select=yt,Z.setDocument=lt,Z.tokenize=ut,Z.escape=x.escapeSelector,Z.getText=x.text,Z.isXML=x.isXMLDoc,Z.selectors=x.expr,Z.support=x.support,Z.uniqueSort=x.uniqueSort}();var U=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&x(t).is(n))break;i.push(t)}return i},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},B=x.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return y(e)?x.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?x.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?x.grep(t,(function(t){return d.call(e,t)>-1!==n})):x.filter(e,t,n)}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<i;e++)if(x.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)x.find(t,r[e],n);return i>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&B.test(t)?x(t):t||[],!1).length}});var H,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||H,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:q.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),F.test(i[1])&&x.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=_.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,H=x(_);var V=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function G(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&x(t);if(!B.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?d.call(x(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return U(t,"parentNode")},parentsUntil:function(t,e,n){return U(t,"parentNode",n)},next:function(t){return G(t,"nextSibling")},prev:function(t){return G(t,"previousSibling")},nextAll:function(t){return U(t,"nextSibling")},prevAll:function(t){return U(t,"previousSibling")},nextUntil:function(t,e,n){return U(t,"nextSibling",n)},prevUntil:function(t,e,n){return U(t,"previousSibling",n)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:($(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(n,i){var r=x.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(W[t]||x.uniqueSort(r),V.test(t)&&r.reverse()),this.pushStack(r)}}));var X=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function K(t){throw t}function Q(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(X)||[],(function(t,n){e[n]=!0})),e}(t):x.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){x.each(n,(function(n,i){y(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==S(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return x.each(arguments,(function(t,e){for(var n;(n=x.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(n){x.each(e,(function(e,i){var r=y(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function s(t,e,i,r){return function(){var l=this,c=arguments,u=function(){var n,u;if(!(t<o)){if((n=i.apply(l,c))===e.promise())throw new TypeError("Thenable self
2-resolution");u=n&&("object"===a(n)||"function"==typeof n)&&n.then,y(u)?r?u.call(n,s(o,e,Y,r),s(o,e,K,r)):(o++,u.call(n,s(o,e,Y,r),s(o,e,K,r),s(o,e,Y,e.notifyWith))):(i!==Y&&(l=void 0,c=[n]),(r||e.resolveWith)(l,c))}},d=r?u:function(){try{u()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,d.error),t+1>=o&&(i!==K&&(l=void 0,c=[n]),e.rejectWith(l,c))}};t?d():(x.Deferred.getErrorHook?d.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(d.error=x.Deferred.getStackHook()),n.setTimeout(d))}}return x.Deferred((function(n){e[0][3].add(s(0,n,y(r)?r:Y,n.notifyWith)),e[1][3].add(s(0,n,y(t)?t:Y)),e[2][3].add(s(0,n,y(i)?i:K))})).promise()},promise:function(t){return null!=t?x.extend(t,r):r}},o={};return x.each(e,(function(t,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add((function(){i=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=l.call(arguments),o=x.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?l.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Q(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)Q(r[n],a(n),o.reject);return o.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&J.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){n.setTimeout((function(){throw t}))};var Z=x.Deferred();function tt(){_.removeEventListener("DOMContentLoaded",tt),n.removeEventListener("load",tt),x.ready()}x.fn.ready=function(t){return Z.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||Z.resolveWith(_,[x]))}}),x.ready.then=Z.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?n.setTimeout(x.ready):(_.addEventListener("DOMContentLoaded",tt),n.addEventListener("load",tt));var et=function t(e,n,i,r,o,a,s){var l=0,c=e.length,u=null==i;if("object"===S(i))for(l in o=!0,i)t(e,n,l,i[l],!0,a,s);else if(void 0!==r&&(o=!0,y(r)||(s=!0),u&&(s?(n.call(e,r),n=null):(u=n,n=function(t,e,n){return u.call(x(t),n)})),n))for(;l<c;l++)n(e[l],i,s?r:r.call(e[l],l,n(e[l],i)));return o?e:u?n.call(e):c?n(e[0],i):a},nt=/^-ms-/,it=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function ot(t){return t.replace(nt,"ms-").replace(it,rt)}var at=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=x.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},at(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[ot(e)]=n;else for(i in e)r[ot(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ot(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(ot):(e=ot(e))in i?[e]:e.match(X)||[]).length;for(;n--;)delete i[e[n]]}
vendor: 20,624 bytes, line 2
2(void 0===e||x.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var lt=new st,ct=new st,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,dt=/[A-Z]/g;function ht(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(dt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}ct.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return ct.hasData(t)||lt.hasData(t)},data:function(t,e,n){return ct.access(t,e,n)},removeData:function(t,e){ct.remove(t,e)},_data:function(t,e,n){return lt.access(t,e,n)},_removeData:function(t,e){lt.remove(t,e)}}),x.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=ct.get(o),1===o.nodeType&&!lt.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=ot(i.slice(5)),ht(o,i,r[i]));lt.set(o,"hasDataAttrs",!0)}return r}return"object"===a(t)?this.each((function(){ct.set(this,t)})):et(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=ct.get(o,t))||void 0!==(n=ht(o,t))?n:void 0;this.each((function(){ct.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ct.remove(this,t)}))}}),x.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=lt.get(t,e),n&&(!i||Array.isArray(n)?i=lt.access(t,e,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),i=n.length,r=n.shift(),o=x._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){x.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return lt.get(t,n)||lt.access(t,n,{empty:x.Callbacks("once memory").add((function(){lt.remove(t,[e+"queue",n])}))})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each((function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=x.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=lt.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var pt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+pt+")([a-z%]*)$","i"),mt=["Top","Right","Bottom","Left"],gt=_.documentElement,vt=function(t){return x.contains(t.ownerDocument,t)},yt={composed:!0};gt.getRootNode&&(vt=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var bt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&vt(t)&&"none"===x.css(t,"display")};function _t(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return x.css(t,e,"")},l=s(),c=n&&n[3]||(x.cssNumber[e]?"":"px"),u=t.nodeType&&(x.cssNumber[e]||"px"!==c&&+l)&&ft.exec(x.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)x.style(t,e,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,x.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var wt={};function Tt(t){var e,n=t.ownerDocument,i=t.nodeName,r=wt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=x.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),wt[i]=r,r)}function St(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=lt.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&bt(i)&&(r[o]=Tt(i))):"none"!==n&&(r[o]="none",lt.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}x.fn.extend({show:function(){return St(this,!0)},hide:function(){return St(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){bt(this)?x(this).show():x(this).hide()}))}});var Ct,kt,xt=/^(?:checkbox|radio)$/i,Et=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,$t=/^$|^module$|\/(?:java|ecma)script/i;Ct=_.createDocumentFragment().appendChild(_.createElement("div")),(kt=_.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),Ct.appendChild(kt),v.checkClone=Ct.cloneNode(!0).cloneNode(!0).lastChild.checked,Ct.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Ct.cloneNode(!0).lastChild.defaultValue,Ct.innerHTML="<option></option>",v.option=!!Ct.lastChild;var It={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ot(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&$(t,e)?x.merge([t],n):n}function At(t,e){for(var n=0,i=t.length;n<i;n++)lt.set(t[n],"globalEval",!e||lt.get(e[n],"globalEval"))}It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,v.option||(It.optgroup=It.option=[1,"<select multiple='multiple'>","</select>"]);var Pt=/<|&#?\w+;/;function Dt(t,e,n,i,r){for(var o,a,s,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===S(o))x.merge(h,o.nodeType?[o]:o);else if(Pt.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(Et.exec(o)||["",""])[1].toLowerCase(),l=It[s]||It._default,a.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;x.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&x.inArray(o,i)>-1)r&&r.push(o);else if(c=vt(o),a=Ot(d.appendChild(o),"script"),c&&At(a),n)for(u=0;o=a[u++];)$t.test(o.type||"")&&n.push(o);return d}var Lt=/^([^.]*)(?:\.(.+)|)/;function Mt(){return!0}function Nt(){return!1}function jt(t,e,n,i,r,o){var s,l;if("object"===a(e)){for(l in"string"!=typeof n&&(i=i||n,n=void 0),e)jt(t,l,n,i,e[l],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Nt;else if(!r)return t;return 1===o&&(s=r,r=function(t){return x().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=x.guid++)),t.each((function(){x.event.add(this,e,r,i,n)}))}function Ut(t,e,n){n?(lt.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var n,i=lt.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=l.call(arguments),lt.set(this,e,i),this[e](),n=lt.get(this,e),lt.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(lt.set(this,e,x.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Mt)}})):void 0===lt.get(t,e)&&x.event.add(t,e,Mt)}x.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,m,g=lt.get(t);if(at(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(gt,r),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(X)||[""]).length;c--;)p=m=(s=Lt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=x.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=x.event.special[p]||{},u=x.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),x.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,p,f,m,g=lt.hasData(t)&<.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(X)||[""]).length;c--;)if(p=m=(s=Lt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=x.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||x.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)x.event.remove(t,p+e[c],n,i,!0);x.isEmptyObject(l)&<.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=x.event.fix(t),c=(lt.get(this,"events")||Object.create(null))[l.type]||[],u=x.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=x.event.handlers.call(this,l,c),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?x(r,this).index(c)>-1:x.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return xt.test(e.type)&&e.click&&$(e,"input")&&Ut(e,"click",!0),!1},trigger:function(t){var e=this||t;return xt.test(e.type)&&e.click&&$(e,"input")&&Ut(e,"click"),!0},_default:function(t){var e=t.target;return xt.test(e.type)&&e.click&&$(e,"input")&<.get(e,"click")||$(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Mt:Nt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Nt,isPropagationStopped:Nt,isImmediatePropagationStopped:Nt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Mt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Mt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Mt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(_.documentMode){var n=lt.get(this,"handle"),i=x.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else x.event.simulate(e,t.target,x.event.fix(t))}x.event.special[t]={setup:function(){var i;if(Ut(this,t,!0),!_.documentMode)return!1;(i=lt.get(this,e))||this.addEventListener(e,n),lt.set(this,e,(i||0)+1)},trigger:function(){return Ut(this,t),!0},teardown:function(){var t;if(!_.documentMode)return!1;(t=lt.get(this,e)-1)?lt.set(this,e,t):(this.removeEventListener(e,n),lt.remove(this,e))},_default:function(e){return lt.get(e.target,t)},delegateType:e},x.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=_.documentMode?this:i,o=lt.get(r,e);o||(_.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),lt.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=_.documentMode?this:i,o=lt.get(r,e)-1;o?lt.set(r,e,o):(_.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),lt.remove(r,e))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||x.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),x.fn.extend({on:function(t,e,n,i){return jt(this,t,e,n,i)},one:function(t,e,n,i){return jt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,x(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===a(t)){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Nt),this.each((function(){x.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return $(t,"table")&&$(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function qt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(lt.hasData(t)&&(s=lt.get(t).events))for(r in lt.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)x.event.add(e,r,s[r][n]);ct.hasData(t)&&(o=ct.access(t),a=x.extend({},o),ct.set(e,a))}}function Wt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&xt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Gt(t,e,n,i){e=c(e);var r,o,a,s,l,u,d=0,h=t.length,p=h-1,f=e[0],m=y(f);if(m||h>1&&"string"==typeof f&&!v.checkClone&&Bt.test(f))return t.each((function(r){var o=t.eq(r);m&&(e[0]=f.call(this,r,o.html())),Gt(o,e,n,i)}));if(h&&(o=(r=Dt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=x.map(Ot(r,"script"),Ht)).length;d<h;d++)l=r,d!==p&&(l=x.clone(l,!0,!0),s&&x.merge(a,Ot(l,"script"))),n.call(t[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,x.map(a,qt),d=0;d<s;d++)l=a[d],$t.test(l.type||"")&&!lt.access(l,"globalEval")&&x.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):T(l.textContent.replace(Ft,""),l,u))}return t}function Xt(t,e,n){for(var i,r=e?x.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||x.cleanData(Ot(i)),i.parentNode&&(n&&vt(i)&&At(Ot(i,"script")),i.parentNode.removeChild(i));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=vt(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(a=Ot(s),i=0,r=(o=Ot(t)).length;i<r;i++)Wt(o[i],a[i]);if(e)if(n)for(o=o||Ot(t),a=a||Ot(s),i=0,r=o.length;i<r;i++)Vt(o[i],a[i]);else Vt(t,s);return(a=Ot(s,"script")).length>0&&At(a,!l&&Ot(t,"script")),s},cleanData:function(t){for(var e,n,i,r=x.event.special,o=0;void 0!==(n=t[o]);o++)if(at(n)){if(e=n[lt.expando]){if(e.events)for(i in e.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,e.handle);n[lt.expando]=void 0}n[ct.expando]&&(n[ct.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return et(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Gt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)}))},prepend:function(){return Gt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(Ot(t,!1)),t.textContent="");return this},clone:function(t,e){return t=t??!1,e=e??t,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return et(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!It[(Et.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(Ot(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Gt(this,arguments,(function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(Ot(this)),n&&n.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var n,i=[],r=x(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(r[a])[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var Yt=new RegExp("^("+pt+")(?!px)[a-z%]+$","i"),Kt=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Jt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Zt=new RegExp(mt.join("|"),"i");function te(t,e,n){var i,r,o,a,s=Kt.test(e),l=t.style;return(n=n||Qt(t))&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(D,"$1")||void 0),""!==a||vt(t)||(a=x.style(t,e)),!v.pixelBoxStyles()&&Yt.test(a)&&Zt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function ee(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=n.getComputedStyle(u);i="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,a,s,l,c=_.createElement("div"),u=_.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,i,r;return null==s&&(t=_.createElement("table"),e=_.createElement("tr"),i=_.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;
2border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",gt.appendChild(t).appendChild(e).appendChild(i),r=n.getComputedStyle(e),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),s}}))}();var ne=["Webkit","Moz","ms"],ie=_.createElement("div").style,re={};function oe(t){return x.cssProps[t]||re[t]||(t in ie?t:re[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ne.length;n--;)if((t=ne[n]+e)in ie)return t}(t)||t)}var ae=/^(none|table(?!-c[ea]).+)/,se={position:"absolute",visibility:"hidden",display:"block"},le={letterSpacing:"0",fontWeight:"400"};function ce(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ue(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=x.css(t,n+mt[a],!0,r)),i?("content"===n&&(l-=x.css(t,"padding"+mt[a],!0,r)),"margin"!==n&&(l-=x.css(t,"border"+mt[a]+"Width",!0,r))):(l+=x.css(t,"padding"+mt[a],!0,r),"padding"!==n?l+=x.css(t,"border"+mt[a]+"Width",!0,r):s+=x.css(t,"border"+mt[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l+c}function de(t,e,n){var i=Qt(t),r=(!v.boxSizingReliable()||n)&&"border-box"===x.css(t,"boxSizing",!1,i),o=r,a=te(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&r||!v.reliableTrDimensions()&&$(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===x.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ue(t,e,n||(r?"border":"content"),o,i,a)+"px"}function he(t,e,n,i,r){return new he.prototype.init(t,e,n,i,r)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=te(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,l=ot(e),c=Kt.test(e),u=t.style;if(c||(e=oe(l)),s=x.cssHooks[e]||x.cssHooks[l],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:u[e];"string"===(o=a(n))&&(r=ft.exec(n))&&r[1]&&(n=_t(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=r&&r[3]||(x.cssNumber[l]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(c?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=ot(e);return Kt.test(e)||(e=oe(s)),(a=x.cssHooks[e]||x.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=te(t,e,i)),"normal"===r&&e in le&&(r=le[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,n,i){if(n)return!ae.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?de(t,e,i):Jt(t,se,(function(){return de(t,e,i)}))},set:function(t,n,i){var r,o=Qt(t),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===x.css(t,"boxSizing",!1,o),l=i?ue(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ue(t,e,"border",!1,o)-.5)),l&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),ce(0,n,l)}}})),x.cssHooks.marginLeft=ee(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(te(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+mt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(x.cssHooks[t+e].set=ce)})),x.fn.extend({css:function(t,e){return et(this,(function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Qt(t),r=e.length;a<r;a++)o[e[a]]=x.css(t,e[a],!1,i);return o}return void 0!==n?x.style(t,e,n):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=he,he.prototype={constructor:he,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=he.propHooks[this.prop];return t&&t.get?t.get(this):he.propHooks._default.get(this)},run:function(t){var e,n=he.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):he.propHooks._default.set(this),this}},he.prototype.init.prototype=he.prototype,he.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0}
vendor: 16,804 bytes, line 2
2,set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},he.propHooks.scrollTop=he.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=he.prototype.init,x.fx.step={};var pe,fe,me=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function ve(){fe&&(!1===_.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ve):n.setTimeout(ve,x.fx.interval),x.fx.tick())}function ye(){return n.setTimeout((function(){pe=void 0})),pe=Date.now()}function be(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=mt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function _e(t,e,n){for(var i,r=(we.tweeners[e]||[]).concat(we.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function we(t,e,n){var i,r,o=0,a=we.prefilters.length,s=x.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=pe||ye(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:pe||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var i=x.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=ot(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=x.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=we.prefilters[o].call(c,t,u,c.opts))return y(i.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return x.map(u,_e,c),y(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(we,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return _t(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,i=0,r=t.length;i<r;i++)n=t[i],we.tweeners[n]=we.tweeners[n]||[],we.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,m=t.nodeType&&bt(t),g=lt.get(t,"fxshow");for(i in n.queue||(null==(a=x._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,x.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[i],me.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||x.style(t,i)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=lt.get(t,"display")),"none"===(u=x.css(t,"display"))&&(c?u=c:(St([t],!0),c=t.style.display||c,u=x.css(t,"display"),St([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=lt.access(t,"fxshow",{display:c}),o&&(g.hidden=!m),m&&St([t],!0),h.done((function(){for(i in m||St([t]),lt.remove(t,"fxshow"),p)x.style(t,i,p[i])}))),l=_e(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?we.prefilters.unshift(t):we.prefilters.push(t)}}),x.speed=function(t,e,n){var i=t&&"object"===a(t)?x.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in x.fx.speeds?i.duration=x.fx.speeds[i.duration]:i.duration=x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(t,e,n,i){return this.filter(bt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=x.isEmptyObject(t),o=x.speed(e,n,i),a=function(){var e=we(this,x.extend({},t),o);(r||lt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=x.timers,a=lt.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ge.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=lt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=x.timers,a=i?i.length:0;for(n.finish=!0,x.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var n=x.fn[e];x.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(be(e,!0),t,i,r)}})),x.each({slideDown:be("show"),slideUp:be("hide"),slideToggle:be("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(pe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),pe=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){fe||(fe=!0,ve())},x.fx.stop=function(){fe=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,e){return t=x.fx&&x.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=_.createElement("input"),e=_.createElement("select").appendChild(_.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=_.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var Te,Se=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return et(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(r=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?Te:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=x.find.attr(t,e))??void 0)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&$(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(X);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),Te={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Se[e]||x.find.attr;Se[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=Se[a],Se[a]=r,r=null!=n(t,e,i)?a:null,Se[a]=o),r}}));var Ce=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function xe(t){return(t.match(X)||[]).join(" ")}function Ee(t){return t.getAttribute&&t.getAttribute("class")||""}function $e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}x.fn.extend({prop:function(t,e){return et(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,r=x.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,n,i,r,o,a;return y(t)?this.each((function(e){x(this).addClass(t.call(this,e,Ee(this)))})):(e=$e(t)).length?this.each((function(){if(i=Ee(this),n=1===this.nodeType&&" "+xe(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=xe(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,n,i,r,o,a;return y(t)?this.each((function(e){x(this).removeClass(t.call(this,e,Ee(this)))})):arguments.length?(e=$e(t)).length?this.each((function(){if(i=Ee(this),n=1===this.nodeType&&" "+xe(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=xe(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,s=a(t),l="string"===s||Array.isArray(t);return y(t)?this.each((function(n){x(this).toggleClass(t.call(this,n,Ee(this),e),e)})):"boolean"==typeof e&&l?e?this.addClass(t):this.removeClass(t):(n=$e(t),this.each((function(){if(l)for(o=x(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==s||((i=Ee(this))&<.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":lt.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+xe(Ee(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ie=/\r/g;x.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,x(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ie,""):n??"":void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:xe(x.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!$(n.parentNode,"optgroup"))){if(e=x(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=x.makeArray(e),a=r.length;a--;)((i=r[a]).selected=x.inArray(x.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},v.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Oe=n.location,Ae={guid:Date.now()},Pe=/\?/;x.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||x.error("Invalid XML: "+(i?x.map(i.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var De=/^(?:focusinfocus|focusoutblur)$/,Le=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(t,e,i,r){var o,s,l,c,u,d,h,p,m=[i||_],g=f.call(t,"type")?t.type:t,v=f.call(t,"namespace")?t.namespace.split("."):[];if(s=p=l=i=i||_,3!==i.nodeType&&8!==i.nodeType&&!De.test(g+x.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[x.expando]?t:new x.Event(g,"object"===a(t)&&t)).isTrigger=r?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:x.makeArray(e,[t]),h=x.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(i,e))){if(!r&&!h.noBubble&&!b(i)){for(c=h.delegateType||g,De.test(c+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),l=s;l===(i.ownerDocument||_)&&m.push(l.defaultView||l.parentWindow||n)}for(o=0;(s=m[o++])&&!t.isPropagationStopped();)p=s,t.type=o>1?c:h.bindType||g,(d=(lt.get(s,"events")||Object.create(null))[t.type]&<.get(s,"handle"))&&d.apply(s,e),(d=u&&s[u])&&d.apply&&at(s)&&(t.result=d.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),e)||!at(i)||u&&y(i[g])&&!b(i)&&((l=i[u])&&(i[u]=null),x.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Le),i[g](),t.isPropagationStopped()&&p.removeEventListener(g,Le),x.event.triggered=void 0,l&&(i[u]=l)),t.result}},simulate:function(t,e,n){var i=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}});var Me=/\[\]$/,Ne=/\r?\n/g,je=/^(?:submit|button|image|reset|file)$/i,Ue=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,i){var r;if(Array.isArray(e))x.each(e,(function(e,r){n||Me.test(t)?i(t,r):Re(t+"["+("object"===a(r)&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==S(e))i(t,e);else for(r in e)Re(t+"["+r+"]",e[r],n,i)}x.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(n??"")};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){r(this.name,this.value)}));else for(n in t)Re(n,t[n],e,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Ue.test(this.nodeName)&&!je.test(t)&&(this.checked||!xt.test(t))})).map((function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}})):{name:e.name,value:n.replace(Ne,"\r\n")}})).get()}});var Be=/%20/g,Fe=/#.*$/,ze=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:GET|HEAD)$/,Ve=/^\/\//,We={},Ge={},Xe="*/".concat("*"),Ye=_.createElement("a");function Ke(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(X)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Qe(t,e,n,i){var r={},o=t===Ge;function a(s){var l;return r[s]=!0,x.each(t[s]||[],(function(t,s){var c=s(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Je(t,e){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&x.extend(!0,t,i),t}Ye.href=Oe.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Oe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML}
vendor: 4,913 bytes, line 2
2,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,x.ajaxSettings),e):Je(x.ajaxSettings,t)},ajaxPrefilter:Ke(We),ajaxTransport:Ke(Ge),ajax:function(t,e){"object"===a(t)&&(e=t,t=void 0),e=e||{};var i,r,o,s,l,c,u,d,h,p,f=x.ajaxSetup({},e),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?x(m):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=f.statusCode||{},w={},T={},S="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=He.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=T[t.toLowerCase()]=T[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)C.always(t[C.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||S;return i&&i.abort(e),k(0,e),this}};if(v.promise(C),f.url=((t||f.url||Oe.href)+"").replace(Ve,Oe.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){c=_.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Ye.protocol+"//"+Ye.host!=c.protocol+"//"+c.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Qe(We,f,e,C),u)return C;for(h in(d=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!qe.test(f.type),r=f.url.replace(Fe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Be,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Pe.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(ze,"$1"),p=(Pe.test(r)?"&":"?")+"_="+Ae.guid+++p),f.url=r+p),f.ifModified&&(x.lastModified[r]&&C.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&C.setRequestHeader("If-None-Match",x.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xe+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(m,C,f)||u))return C.abort();if(S="abort",y.add(f.complete),C.done(f.success),C.fail(f.error),i=Qe(Ge,f,e,C)){if(C.readyState=1,d&&g.trigger("ajaxSend",[C,f]),u)return C;f.async&&f.timeout>0&&(l=n.setTimeout((function(){C.abort("timeout")}),f.timeout));try{u=!1,i.send(w,k)}catch(t){if(u)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,a,s){var c,h,p,_,w,T=e;u||(u=!0,l&&n.clearTimeout(l),i=void 0,o=s||"",C.readyState=t>0?4:0,c=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,C,a)),!c&&x.inArray("script",f.dataTypes)>-1&&x.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=function(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,_,C,c),c?(f.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=w),(w=C.getResponseHeader("etag"))&&(x.etag[r]=w)),204===t||"HEAD"===f.type?T="nocontent":304===t?T="notmodified":(T=_.state,h=_.data,c=!(p=_.error))):(p=T,!t&&T||(T="error",t<0&&(t=0))),C.status=t,C.statusText=(e||T)+"",c?v.resolveWith(m,[h,T,C]):v.rejectWith(m,[C,T,p]),C.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[C,f,c?h:p]),y.fireWith(m,[C,T]),d&&(g.trigger("ajaxComplete",[C,f]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:r,data:n,success:i},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;
vendor: 4,516 bytes, line 2
2for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,n){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,n)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){x(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ze={0:200,1223:204},tn=x.ajaxSettings.xhr();v.cors=!!tn&&"withCredentials"in tn,v.ajax=tn=!!tn,x.ajaxTransport((function(t){var e,i;if(v.cors||tn&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ze[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),i=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),_.head.appendChild(e[0])},abort:function(){n&&n()}}}));var en,nn=[],rn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=nn.pop()||x.expando+"_"+Ae.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,a,s=!1!==t.jsonp&&(rn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&rn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(rn,"$1"+r):!1!==t.jsonp&&(t.url+=(Pe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||x.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){a=arguments},i.always((function(){void 0===o?x(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,nn.push(r)),a&&y(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=((en=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),x.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((i=(e=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,e.head.appendChild(i)):e=_),o=!n&&[],(r=F.exec(t))?[e.createElement(r[1])]:(r=Dt([t],e,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(t,e,n){var i,r,o,s=this,l=t.indexOf(" ");return l>
vendor: 4,788 bytes, line 2
2-1&&(i=xe(t.slice(l)),t=t.slice(0,l)),y(e)?(n=e,e=void 0):e&&"object"===a(e)&&(r="POST"),s.length>0&&x.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?x("<div>").append(x.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c=x.css(t,"position"),u=x(t),d={};"static"===c&&(t.style.position="relative"),s=u.offset(),o=x.css(t,"top"),l=x.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),y(e)&&(e=e.call(t,n,x.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):u.css(d)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),r.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-x.css(i,"marginTop",!0),left:e.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||gt}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;x.fn[t]=function(i){return et(this,(function(t,i,r){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=ee(v.pixelPosition,(function(t,n){if(n)return n=te(t,e),Yt.test(n)?x(t).position()[e]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){x.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return et(this,(function(e,n,r){var o;return b(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?x.css(e,n,s):x.style(e,n,r,s)}),e,a?r:void 0,a)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var on=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=l.call(arguments,2),r=function(){return t.apply(e||this,i.concat(l.call(arguments)))},r.guid=t.guid=t.guid||x.guid++,r},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=$,x.isFunction=y,x.isWindow=b,x.camelCase=ot,x.type=S,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(on,"$1")},void 0===(i=function(){return x}.apply(e,[]))||(t.exports=i);var an=n.jQuery,sn=n.$;return x.noConflict=function(t){return n.$===x&&(n.$=sn),t&&n.jQuery===x&&(n.jQuery=an),x},void 0===r&&(n.jQuery=n.$=x),x},"object"===a(t)&&"object"===a(t.exports)?t.exports=r.document?o(r,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return o(t)}:o(r)},48616:(t,e,n)=>{var i=n(59660).Symbol;t.exports=i},72779:(t,e,n)=>{var i=n(48616),r=n(20651),o=n(34438),a=i?i.toStringTag:void 0;
vendor: 4,269 bytes, line 2
2t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):o(t)}},65858:(t,e,n)=>{var i=n(850),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},8641:(t,e,n)=>{function i(t){return i="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},i(t)}var r="object"==(void 0===n.g?"undefined":i(n.g))&&n.g&&n.g.Object===Object&&n.g;t.exports=r},20651:(t,e,n)=>{var i=n(48616),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}},34438:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},59660:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(8641),o="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,a=r||o||Function("return this")();t.exports=a},850:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},25714:(t,e,n)=>{var i=n(4577),r=n(33420),o=n(20082),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l,c,u,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,i=c;return l=c=void 0,f=e,d=t.apply(i,n)}function b(t){var n=t-p;return void 0===p||n>=e||n<0||g&&t-f>=u}function _(){var t=r();if(b(t))return w(t);h=setTimeout(_,function(t){var n=e-(t-p);return g?s(n,u-(t-f)):n}(t))}function w(t){return h=void 0,v&&l?y(t):(l=c=void 0,d)}function T(){var t=r(),n=b(t);if(l=arguments,c=this,p=t,n){if(void 0===h)return function(t){return f=t,h=setTimeout(_,e),m?y(t):d}(p);if(g)return clearTimeout(h),h=setTimeout(_,e),y(p)}return void 0===h&&(h=setTimeout(_,e)),d}return e=o(e)||0,i(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),T.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},T.flush=function(){return void 0===h?d:w(r())},T}},4577:t=>{function e(t){return e="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},e(t)}t.exports=function(t){var n=e(t);return null!=t&&("object"==n||"function"==n)}},11810:t=>{function e(t){return e="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},e(t)}t.exports=function(t){return null!=t&&"object"==e(t)}},23613:(t,e,n)=>{function i(t){return i="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},i(t)}var r=n(72779),o=n(11810);t.exports=function(t){return"symbol"==i(t)||o(t)&&"[object Symbol]"==r(t)}},33420:(t,e,n)=>{var i=n(59660);t.exports=function(){return i.Date.now()}},20082:(t,e,n)=>{var i=n(65858),r=n(4577),o=n(23613),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},4263:()=>{}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}
2}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n(27550)})(); 3//# sourceMappingURL=main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.