/*! For license information please see core.js.LICENSE.txt */
(()=>{"use strict";var e={26:(e,t,n)=>{var r=i(n(339)),o=i(n(825));function i(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(document).ready((function(){var e;e={country:".js-country",address:".js-address-form"},(0,r.default)("body").on("change",e.country,(function(){var t={id_country:(0,r.default)(e.country).val(),id_address:(0,r.default)("".concat(e.address," form")).data("id-address")},n=(0,r.default)("".concat(e.address," form")).data("refresh-url"),i="".concat(e.address," input");r.default.post(n,t).then((function(t){var n=[];(0,r.default)(i).each((function(){n[(0,r.default)(this).prop("name")]=(0,r.default)(this).val()})),(0,r.default)(e.address).replaceWith(t.address_form),(0,r.default)(i).each((function(){(0,r.default)(this).val(n[(0,r.default)(this).prop("name")])})),o.default.emit("updatedAddressForm",{target:(0,r.default)(e.address),resp:t})})).fail((function(e){o.default.emit("handleError",{eventType:"updateAddressForm",resp:e})}))}))}))},999:(e,t,n)=>{var r=a(n(339)),o=a(n(825)),i=n(988);function a(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(document).ready((function(){o.default.on("updateCart",(function(e){o.default.cart=e.resp.cart;var t=(0,r.default)(".js-cart").data("refresh-url");if(t){var n={};e&&e.reason&&(n={id_product_attribute:e.reason.idProductAttribute,id_product:e.reason.idProduct}),r.default.post(t,n).then((function(e){(0,r.default)(o.default.selectors.cart.detailedTotals).replaceWith(e.cart_detailed_totals),(0,r.default)(o.default.selectors.cart.summaryItemsSubtotal).replaceWith(e.cart_summary_items_subtotal),(0,r.default)(o.default.selectors.cart.summarySubTotalsContainer).replaceWith(e.cart_summary_subtotals_container),(0,r.default)(o.default.selectors.cart.summaryProducts).replaceWith(e.cart_summary_products),(0,r.default)(o.default.selectors.cart.summaryTotals).replaceWith(e.cart_summary_totals),(0,r.default)(o.default.selectors.cart.detailedActions).replaceWith(e.cart_detailed_actions),(0,r.default)(o.default.selectors.cart.voucher).replaceWith(e.cart_voucher),(0,r.default)(o.default.selectors.cart.overview).replaceWith(e.cart_detailed),(0,r.default)(o.default.selectors.cart.summaryTop).replaceWith(e.cart_summary_top),(0,r.default)(o.default.selectors.cart.productCustomizationId).val(0),(0,r.default)(o.default.selectors.cart.lineProductQuantity).each((function(e,t){var n=(0,r.default)(t);n.attr("value",n.val())})),(0,r.default)(o.default.selectors.checkout.cartPaymentStepRefresh).length&&(0,i.refreshCheckoutPage)(),o.default.emit("updatedCart",{eventType:"updateCart",resp:e})})).fail((function(e){o.default.emit("handleError",{eventType:"updateCart",resp:e})}))}}));var e=(0,r.default)("body");e.on("click",'[data-button-action="add-to-cart"]',(function(e){e.preventDefault();var t=(0,r.default)(e.currentTarget.form),n="".concat(t.serialize(),"&add=1&action=update"),i=t.attr("action"),a=(0,r.default)(e.currentTarget);a.prop("disabled",!0);var s,u=function(e){e.parents(o.default.selectors.product.addToCart).first().find(o.default.selectors.product.minimalQuantity).addClass("error"),e.parent().find("label").addClass("error")},c=t.find("input[min]");s=!0,c.each((function(e,t){var n=(0,r.default)(t),o=parseInt(n.attr("min"),10);o&&n.val()<o&&(u(n),s=!1)})),s?r.default.post(i,n,null,"json").then((function(e){o.default.emit("updateCart",{reason:{idProduct:e.id_product,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization,linkAction:"add-to-cart",cart:e.cart},resp:e})})).fail((function(e){o.default.emit("handleError",{eventType:"addProductToCart",resp:e})})).always((function(){setTimeout((function(){a.prop("disabled",!1)}),1e3)})):u(c)})),e.on("submit",'[data-link-action="add-voucher"]',(function(e){e.preventDefault();var t=(0,r.default)(e.currentTarget),n=t.attr("action");0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"ajax",value:1})),0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"action",value:"update"})),r.default.post(n,t.serialize(),null,"json").then((function(t){t.hasError?(0,r.default)(".js-error").show().find(".js-error-text").text(t.errors[0]):o.default.emit("updateCart",{reason:e.target.dataset,resp:t})})).fail((function(e){o.default.emit("handleError",{eventType:"updateCart",resp:e})}))}))}))},673:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,r.default)(o.default.selectors.checkout.editAddresses).on("click",(function(e){e.stopPropagation(),(0,r.default)(o.default.selectors.checkout.addressesStep).trigger("click"),o.default.emit("editAddress")})),(0,r.default)(o.default.selectors.checkout.deliveryAddressRadios).on("click",(function(){(0,r.default)(o.default.selectors.checkout.addressItem).removeClass("selected"),(0,r.default)(o.default.selectors.checkout.addressItemChecked).addClass("selected");var e=(0,r.default)(o.default.selectors.checkout.addressError).prop("id").split("-").pop(),t=(0,r.default)(o.default.selectors.checkout.notValidAddresses).val(),n=this.name.split("_").pop(),i=(0,r.default)("".concat(o.default.selectors.checkout.addressError,"[name=alert-").concat(n,"]"));c(!1,e,n),""!==t&&null===s&&t.split(",").indexOf(this.value)>=0?(i.show(),c(!0,this.value,n),(0,r.default)(o.default.selectors.checkout.addressError).prop("id","id-failure-address-".concat(this.value))):i.hide();var a=(0,r.default)("".concat(o.default.selectors.checkout.addressError,":visible"));l(a.length<=0)}))};var r=a(n(339)),o=a(n(825)),i=n(988);function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.psGetRequestParameter)("editAddress"),u=(0,i.psGetRequestParameter)("use_same_address");(0,r.default)(window).on("load",(function(){var e=(0,r.default)("".concat(o.default.selectors.checkout.addressError,":visible"));if(0===parseInt(u,10)&&(0,r.default)(o.default.selectors.checkout.invoiceAddresses).trigger("click"),(null!==s||(0,r.default)("".concat(o.default.selectors.checkout.addressForm,":visible")).length>1)&&e.hide(),e.length>0){var t=(0,r.default)(o.default.selectors.checkout.addressError).prop("id").split("-").pop();e.each((function(){c(!0,t,(0,r.default)(this).attr("name").split("-").pop())}))}e=(0,r.default)("".concat(o.default.selectors.checkout.addressError,":visible")),l(e.length<=0)}));var c=function(e,t,n){var o=(0,r.default)("#id-address-".concat(n,"-address-").concat(t," a.edit-address")),i=["text-info","address-item-invalid"];(0,r.default)("#".concat(n,"-addresses a.edit-address")).removeClass(i),o.toggleClass(i,e)},l=function(e){(0,r.default)("button[name=confirm-addresses]").prop("disabled",!e)}},107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(0,r.default)("body"),t=o.default.selectors.checkout.deliveryFormSelector,n=o.default.selectors.checkout.summarySelector,a=o.default.selectors.checkout.deliveryStepSelector,s=o.default.selectors.checkout.editDeliveryButtonSelector;e.on("change","".concat(t," input"),(function(e){var a=(0,r.default)(t),s=a.serialize(),u=(0,r.default)(e.currentTarget).parents(o.default.selectors.checkout.deliveryOption);r.default.post(a.data("url-update"),s).then((function(e){(0,r.default)(n).replaceWith(e.preview),(0,r.default)(o.default.selectors.checkout.cartPaymentStepRefresh).length&&(0,i.refreshCheckoutPage)(),o.default.emit("updatedDeliveryForm",{dataForm:a.serializeArray(),deliveryOption:u,resp:e})})).fail((function(e){o.default.trigger("handleError",{eventType:"updateDeliveryOptions",resp:e})}))})),e.on("click",s,(function(e){e.stopPropagation(),(0,r.default)(a).trigger("click"),o.default.emit("editDelivery")}))};var r=a(n(339)),o=a(n(825)),i=n(988);function a(e){return e&&e.__esModule?e:{default:e}}},870:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=new s;return e.init(),e};var r=i(n(339)),o=i(n(825));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.confirmationSelector=o.default.selectors.checkout.confirmationSelector,this.conditionsSelector=o.default.selectors.checkout.conditionsSelector,this.conditionAlertSelector=o.default.selectors.checkout.conditionAlertSelector,this.additionalInformatonSelector=o.default.selectors.checkout.additionalInformatonSelector,this.optionsForm=o.default.selectors.checkout.optionsForm,this.termsCheckboxSelector=o.default.selectors.checkout.termsCheckboxSelector}var t,n;return t=e,(n=[{key:"init",value:function(){var e=(0,r.default)("body");e.on("change","".concat(this.conditionsSelector,' input[type="checkbox"]'),r.default.proxy(this.toggleOrderButton,this)),e.on("change",'input[name="payment-option"]',r.default.proxy(this.toggleOrderButton,this)),e.on("click","".concat(this.confirmationSelector," button"),r.default.proxy(this.confirm,this)),this.collapseOptions()}},{key:"collapseOptions",value:function(){(0,r.default)("".concat(this.additionalInformatonSelector,", ").concat(this.optionsForm)).hide()}},{key:"getSelectedOption",value:function(){return(0,r.default)('input[name="payment-option"]:checked').attr("id")}},{key:"haveTermsBeenAccepted",value:function(){return(0,r.default)(this.termsCheckboxSelector).prop("checked")}},{key:"hideConfirmation",value:function(){(0,r.default)(this.confirmationSelector).hide()}},{key:"showConfirmation",value:function(){(0,r.default)(this.confirmationSelector).show()}},{key:"toggleOrderButton",value:function(){var e=!0;(0,r.default)("".concat(this.conditionsSelector,' input[type="checkbox"]')).each((function(t,n){n.checked||(e=!1)})),o.default.emit("termsUpdated",{isChecked:e}),this.collapseOptions();var t=this.getSelectedOption();if(t||(e=!1),(0,r.default)("#".concat(t,"-additional-information")).show(),(0,r.default)("#pay-with-".concat(t,"-form")).show(),(0,r.default)(o.default.selectors.checkout.paymentBinary).hide(),(0,r.default)("#".concat(t)).hasClass("binary")){var n=this.getPaymentOptionSelector(t);this.hideConfirmation(),(0,r.default)(n).show(),document.querySelectorAll("".concat(n," button, ").concat(n," input")).forEach((function(t){e?t.removeAttribute("disabled"):t.setAttribute("disabled",!e)})),e?(0,r.default)(n).removeClass("disabled"):(0,r.default)(n).addClass("disabled")}else this.showConfirmation(),(0,r.default)("".concat(this.confirmationSelector," button")).toggleClass("disabled",!e),(0,r.default)("".concat(this.confirmationSelector," button")).attr("disabled",!e),e?(0,r.default)(this.conditionAlertSelector).hide():(0,r.default)(this.conditionAlertSelector).show()}},{key:"getPaymentOptionSelector",value:function(e){var t=(0,r.default)("#".concat(e)).data("module-name");return".js-payment-".concat(t)}},{key:"showNativeFormErrors",value:function(){(0,r.default)("input[name=payment-option], ".concat(this.termsCheckboxSelector)).each((function(){this.reportValidity()}))}},{key:"confirm",value:function(){var e=this.getSelectedOption(),t=this.haveTermsBeenAccepted();void 0!==e&&!1!==t?((0,r.default)("".concat(this.confirmationSelector," button")).addClass("disabled"),(0,r.default)("#pay-with-".concat(e,"-form form")).submit()):this.showNativeFormErrors()}}])&&a(t.prototype,n),e}()},597:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(339)),o=i(n(825));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var c=o.default.selectors.checkout.currentStep,l=".".concat(c),d=function(){function e(){a(this,e),this.$steps=(0,r.default)(o.default.selectors.checkout.step),this.$steps.off("click"),this.$clickableSteps=(0,r.default)(l).prevAll().andSelf(),this.$clickableSteps.addClass("-clickable")}return u(e,[{key:"getClickableSteps",value:function(){return this.$clickableSteps}},{key:"makeCurrent",value:function(e){this.$steps.removeClass("-current"),this.$steps.removeClass(c),e.makeCurrent()}}],[{key:"getClickedStep",value:function(e){return new f((0,r.default)(e.target).closest(o.default.selectors.checkout.step))}}]),e}();t.default=d;var f=function(){function e(t){a(this,e),this.$step=t}return u(e,[{key:"isUnreachable",value:function(){return this.$step.hasClass("-unreachable")}},{key:"makeCurrent",value:function(){this.$step.addClass("-current"),this.$step.addClass(c)}},{key:"hasContinueButton",value:function(){return(0,r.default)("button.continue",this.$step).length>0}},{key:"disableAllAfter",value:function(){var e=this.$step.nextAll();e.addClass("-unreachable").removeClass("-complete"),(0,r.default)(o.default.selectors.checkout.stepTitle,e).addClass("not-allowed")}},{key:"enableAllBefore",value:function(){var e=this.$step.nextAll("".concat(o.default.selectors.checkout.step,".-clickable"));e.removeClass("-unreachable").addClass("-complete"),(0,r.default)(o.default.selectors.checkout.stepTitle,e).removeClass("not-allowed")}}]),e}()},982:(e,t,n)=>{var r=c(n(339)),o=c(n(825)),i=c(n(673)),a=c(n(107)),s=c(n(870)),u=c(n(597));function c(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(document).ready((function(){var e,t;1===(0,r.default)("#checkout").length&&((0,i.default)(),(0,a.default)(),(0,s.default)(),(e=new u.default).getClickableSteps().on("click",(function(t){var n=u.default.getClickedStep(t);n.isUnreachable()||(e.makeCurrent(n),n.hasContinueButton()?n.disableAllAfter():n.enableAllBefore()),o.default.emit("changedCheckoutStep",{event:t})})),t=o.default.selectors.checkout.form,(0,r.default)(t).submit((function(e){!0===(0,r.default)(this).data("disabled")&&e.preventDefault(),(0,r.default)(this).data("disabled",!0),(0,r.default)('button[type="submit"]',this).addClass("disabled")})))}))},988:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.psShowHide=function(){(0,o.default)(".ps-shown-by-js").show(),(0,o.default)(".ps-hidden-by-js").hide()},t.psGetRequestParameter=i,t.refreshCheckoutPage=function(){var e=i();if(e.updatedTransaction)window.location.reload();else{e.updatedTransaction=1;var t=Object.entries(e).map((function(e){return e.join("=")})).join("&");window.location.href="".concat(window.location.pathname,"?").concat(t)}};var r,o=(r=n(339))&&r.__esModule?r:{default:r};function i(e){var t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,(function(e,n,r){t[n]=void 0!==r?r:""})),void 0!==e?t[e]?t[e]:null:t}},247:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(339)),o=i(n(204));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,r.default)(e);r.default.each(t,(function(e,t){if(!t.checkValidity()){var n=t.value.split("@");o.default.toASCII(n[0])===n[0]&&(t.value=o.default.toASCII(t.value))}}))}},432:(e,t,n)=>{var r=i(n(339)),o=i(n(825));function i(e){return e&&e.__esModule?e:{default:e}}var a=null;function s(e){o.default.emit("updateProductList",e),window.history.pushState(e,document.title,e.current_url)}function u(e,t){return"abort"!==t}function c(e){a===e&&(a=null)}(0,r.default)(document).ready((function(){o.default.on("updateFacets",(function(e){!function(e){a&&a.abort();var t=e.indexOf("?")>=0?"&":"?",n="".concat(e+t,"from-xhr");a=r.default.ajax({url:n,dataType:"json",success:s,error:u,complete:c})}(e)}))}))},90:(e,t,n)=>{var r=i(n(339)),o=i(n(825));function i(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(document).ready((function(){(0,r.default)("body").on("click",o.default.selectors.listing.quickview,(function(e){o.default.emit("clickQuickView",{dataset:(0,r.default)(e.target).closest(o.default.selectors.product.miniature).data()}),e.preventDefault()}))}))},52:(e,t,n)=>{var r,o=(r=n(339))&&r.__esModule?r:{default:r};void 0===o.default.migrateMute&&(o.default.migrateMute=!window.prestashop.debug)},226:(e,t,n)=>{var r=a(n(339)),o=a(n(825)),i=n(988);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u(e,t,n[t])}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=null,l=null,d=!1,f=[],p=!1;function h(e){var t,n,o;t=(0,r.default)(".quickview #product-availability, .page-product:not(.modal-open) .row #product-availability, .page-product:not(.modal-open) .product-container #product-availability"),n=e,o=(0,r.default)('<div class="alert alert-danger ajax-error" role="alert">'.concat(n,"</div>")),t.replaceWith(o)}function v(e){var t=(0,r.default)(e.$targetParent.find(e.targetSelector));if(!(t.length<=0)){var n=e.$addToCartSnippet.find(e.targetSelector);n.length>0?t.replaceWith(n[0].outerHTML):t.html("")}}(0,r.default)(document).ready((function(){var e=(0,r.default)(o.default.selectors.product.actions);(0,r.default)("body").on("change touchspin.on.startspin","".concat(o.default.selectors.product.variants," *[name]"),(function(e){p=!0,o.default.emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:o.default.urls.pages.product||""}})})),(0,r.default)(e.find("form:first").serializeArray()).each((function(e,t){var n=t.value,r=t.name;f.push({value:n,name:r})})),window.addEventListener("popstate",(function(e){if(d=!0,!(!e.state||e.state&&e.state.form&&0===e.state.form.length)||p){var t=(0,r.default)(o.default.selectors.product.actions).find("form:first");e.state&&e.state.form?e.state.form.forEach((function(e){t.find('[name="'.concat(e.name,'"]')).val(e.value)})):f.forEach((function(e){t.find('[name="'.concat(e.name,'"]')).val(e.value)})),o.default.emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:o.default.urls.pages.product||""}})}})),(0,r.default)("body").on("click",o.default.selectors.product.refresh,(function(e,t){e.preventDefault();var n="updatedProductCombination";void 0!==t&&t.eventType&&(n=t.eventType),o.default.emit("updateProduct",{eventType:n,event:e,resp:{},reason:{productUrl:o.default.urls.pages.product||""}})})),o.default.on("updateProduct",(function(e){var t=e.eventType,n=e.event;(function(){var e=r.default.Deferred(),t=(0,r.default)(o.default.selectors.product.actions),n=(0,r.default)(o.default.selectors.quantityWanted);if(null!==o.default&&null!==o.default.urls&&null!==o.default.urls.pages&&""!==o.default.urls.pages.product&&null!==o.default.urls.pages.product)return e.resolve(o.default.urls.pages.product),e.promise();var i={};return(0,r.default)(t.find("form:first").serializeArray()).each((function(e,t){i[t.name]=t.value})),r.default.ajax({url:t.find("form:first").attr("action"),method:"POST",data:s({ajax:1,action:"productrefresh",quantity_wanted:n.val()},i),dataType:"json",success:function(t){var n=t.productUrl;o.default.page.canonical=n,e.resolve(n)},error:function(t,n,r){e.reject({jqXHR:t,textStatus:n,errorThrown:r})}}),e.promise()})().done((function(e){return function(e,t,n){var a=(0,r.default)(o.default.selectors.product.actions),s=a.find(o.default.selectors.quantityWanted),u=a.find("form:first"),d=u.serialize(),f=(0,i.psGetRequestParameter)("preview"),p=new Event("updateRating");if(f=null!==f?"&preview=".concat(f):"",null!==n){if(!e||"keyup"!==e.type||s.val()!==s.data("old-value")){s.data("old-value",s.val()),l&&clearTimeout(l);var m=30;"updatedProductQuantity"===t&&(m=750),l=setTimeout((function(){""!==d&&(c=r.default.ajax({url:n+(-1===n.indexOf("?")?"?":"&")+d+f,method:"POST",data:{quickview:(0,r.default)(".modal.quickview.in").length,ajax:1,action:"refresh",quantity_wanted:"updatedProductCombination"===t?s.attr("min"):s.val()},dataType:"json",beforeSend:function(){null!==c&&c.abort()},error:function(e,t){"abort"!==t&&0===(0,r.default)("section#main > .ajax-error").length&&h()},success:function(e){var n=(0,r.default)("<div>").append(e.product_cover_thumbnails);(0,r.default)(o.default.selectors.product.imageContainer).html()!==n.find(o.default.selectors.product.imageContainer).html()&&(0,r.default)(o.default.selectors.product.imageContainer).replaceWith(e.product_cover_thumbnails),(0,r.default)(o.default.selectors.product.prices).first().replaceWith(e.product_prices),(0,r.default)(o.default.selectors.product.customization).first().replaceWith(e.product_customization),(0,r.default)(o.default.selectors.product.inputCustomization).val(0),(0,r.default)(o.default.selectors.product.variantsUpdate).first().replaceWith(e.product_variants),(0,r.default)(o.default.selectors.product.discounts).first().replaceWith(e.product_discounts),(0,r.default)(o.default.selectors.product.additionalInfos).first().replaceWith(e.product_additional_info),(0,r.default)(o.default.selectors.product.details).replaceWith(e.product_details),(0,r.default)(o.default.selectors.product.flags).first().replaceWith(e.product_flags),function(e){var t=null;(0,r.default)(e.product_add_to_cart).each((function(e,n){return!(0,r.default)(n).hasClass("product-add-to-cart")||(t=(0,r.default)(n),!1)})),null===t&&h();var n=(0,r.default)(o.default.selectors.product.addToCart);v({$addToCartSnippet:t,$targetParent:n,targetSelector:".add"}),v({$addToCartSnippet:t,$targetParent:n,targetSelector:"#product-availability"}),v({$addToCartSnippet:t,$targetParent:n,targetSelector:".product-minimal-quantity"})}(e);var i=parseInt(e.product_minimal_quantity,10);document.dispatchEvent(p),isNaN(i)||"updatedProductQuantity"===t||(s.attr("min",i),s.val(i)),o.default.emit("updatedProduct",e,u.serializeArray())},complete:function(){c=null,l=null}}))}),m)}}else h()}(n,t,e)})).fail((function(){0===(0,r.default)("section#main > .ajax-error").length&&h()}))})),o.default.on("updatedProduct",(function(e,t){if(e.product_url&&e.id_product_attribute&&!(0,r.default)(".modal.quickview").length){var n=document.title;e.product_title&&(n=e.product_title,(0,r.default)(document).attr("title",n)),d||window.history.pushState({id_product_attribute:e.id_product_attribute,form:t},n,e.product_url),d=!1}})),o.default.on("updateCart",(function(e){e&&e.reason&&"add-to-cart"===e.reason.linkAction&&(0,r.default)("#quantity_wanted").val(1)})),o.default.on("showErrorNextToAddtoCartButton",(function(e){e&&e.errorMessage&&h(e.errorMessage)}))}))},965:(e,t,n)=>{var r=i(n(825)),o=i(n(339));function i(e){return e&&e.__esModule?e:{default:e}}r.default.selectors={quantityWanted:"#quantity_wanted",product:{imageContainer:".quickview .images-container, .page-product:not(.modal-open) .row .images-container, .page-product:not(.modal-open) .product-container .images-container, .quickview .js-images-container, .page-product:not(.modal-open) .row .js-images-container, .page-product:not(.modal-open) .product-container .js-images-container",container:".product-container, .js-product-container",availability:"#product-availability, .js-product-availability",actions:".product-actions, .js-product-actions",variants:".product-variants, .js-product-variants",refresh:".product-refresh, .js-product-refresh",miniature:".js-product-miniature",minimalQuantity:".product-minimal-quantity, .js-product-minimal-quantity",addToCart:".quickview .product-add-to-cart, .page-product:not(.modal-open) .row .product-add-to-cart, .page-product:not(.modal-open) .product-container .product-add-to-cart, .quickview .js-product-add-to-cart, .page-product:not(.modal-open) .row .js-product-add-to-cart, .page-product:not(.modal-open) .product-container .js-product-add-to-cart",prices:".quickview .product-prices, .page-product:not(.modal-open) .row .product-prices, .page-product:not(.modal-open) .product-container .product-prices, .quickview .js-product-prices, .page-product:not(.modal-open) .row .js-product-prices, .page-product:not(.modal-open) .product-container .js-product-prices",inputCustomization:'.product-actions input[name="id_customization"], .js-product-actions .js-product-customization-id',customization:".quickview .product-customization, .page-product:not(.modal-open) .row .product-customization, .page-product:not(.modal-open) .product-container .product-customization, .quickview .js-product-customization, .page-product:not(.modal-open) .row .js-product-customization, .page-product:not(.modal-open) .product-container .js-product-customization",variantsUpdate:".quickview .product-variants, .page-product:not(.modal-open) .row .product-variants, .page-product:not(.modal-open) .product-container .product-variants, .quickview .js-product-variants, .page-product:not(.modal-open) .row .js-product-variants, .page-product:not(.modal-open) .js-product-container .js-product-variants",discounts:".quickview .product-discounts, .page-product:not(.modal-open) .row .product-discounts, .page-product:not(.modal-open) .product-container .product-discounts, .quickview .js-product-discounts, .page-product:not(.modal-open) .row .js-product-discounts, .page-product:not(.modal-open) .product-container .js-product-discounts",additionalInfos:".quickview .product-additional-info, .page-product:not(.modal-open) .row .product-additional-info, .page-product:not(.modal-open) .product-container .product-additional-info, .quickview .js-product-additional-info, .page-product:not(.modal-open) .row .js-product-additional-info, .page-product:not(.modal-open) .js-product-container .js-product-additional-info",details:".quickview #product-details, #product-details, .quickview .js-product-details, .js-product-details",flags:".quickview .product-flags, .page-product:not(.modal-open) .row .product-flags, .page-product:not(.modal-open) .product-container .product-flags, .quickview .js-product-flags, .page-product:not(.modal-open) .row .js-product-flags, .page-product:not(.modal-open) .js-product-container .js-product-flags"},listing:{quickview:".quick-view, .js-quick-view"},checkout:{form:".checkout-step form",currentStep:"js-current-step",step:".checkout-step",stepTitle:".step-title, .js-step-title",confirmationSelector:"#payment-confirmation button, .js-payment-confirmation",conditionsSelector:'#conditions-to-approve input[type="checkbox"], .js-conditions-to-approve',conditionAlertSelector:".js-alert-payment-conditions",additionalInformatonSelector:".js-additional-information",optionsForm:".js-payment-option-form",termsCheckboxSelector:'#conditions-to-approve input[name="conditions_to_approve[terms-and-conditions]"], .js-conditions-to-approve input[name="conditions_to_approve[terms-and-conditions]"]',paymentBinary:".payment-binary, .js-payment-binary",deliveryFormSelector:"#js-delivery",summarySelector:"#js-checkout-summary",deliveryStepSelector:"#checkout-delivery-step",editDeliveryButtonSelector:".js-edit-delivery",deliveryOption:".delivery-option, .js-delivery-option",cartPaymentStepRefresh:".js-cart-payment-step-refresh",editAddresses:".js-edit-addresses",deliveryAddressRadios:"#delivery-addresses input[type=radio], #invoice-addresses input[type=radio], .js-address-selector input[type=radio]",addressItem:".address-item, .js-address-item",addressesStep:"#checkout-addresses-step",addressItemChecked:".address-item:has(input[type=radio]:checked), .js-address-item:has(input[type=radio]:checked)",addressError:".js-address-error",notValidAddresses:"#not-valid-addresses, .js-not-valid-addresses",invoiceAddresses:"#invoice-addresses, .js-address-selector",addressForm:".js-address-form"},cart:{detailedTotals:".cart-detailed-totals, .js-cart-detailed-totals",summaryItemsSubtotal:".cart-summary-items-subtotal, .js-cart-summary-items-subtotal",summarySubTotalsContainer:".cart-summary-subtotals-container, .js-cart-summary-subtotals-container",summaryTotals:".cart-summary-totals, .js-cart-summary-totals",summaryProducts:".cart-summary-products, .js-cart-summary-products",detailedActions:".cart-detailed-actions, .js-cart-detailed-actions",voucher:".cart-voucher, .js-cart-voucher",overview:".cart-overview",summaryTop:".cart-summary-top, .js-cart-summary-top",productCustomizationId:"#product_customization_id, .js-product-customization-id",lineProductQuantity:".js-cart-line-product-quantity"}},(0,o.default)(document).ready((function(){r.default.emit("selectorsInit")}))},827:(e,t,n)=>{var r,o,i;o=[n(339)],void 0===(i="function"==typeof(r=function(e){var t=e.fn.init;e.fn.init=function(e){var n=Array.prototype.slice.call(arguments);"string"==typeof e&&"#"===e&&(console.warn("jQuery('#') is not a valid selector"),n[0]=[]);var r=t.apply(this,arguments);return r.selector="string"==typeof e?e:"",r},e.fn.init.prototype=e.fn,void 0!==e.fn.live&&e.isFunction(e.fn.live)||e.fn.extend({live:function(t,n,r){return this.selector&&e(document).on(t,this.selector,n,r),console.warn("jQuery.live() has been removed since jquery v1.9, please use jQuery.on() instead."),this}})})?r.apply(t,o):r)||(e.exports=i)},291:e=>{function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n,r="object"===("undefined"==typeof Reflect?"undefined":t(Reflect))?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,o)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+t(e))}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,i,a,s;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):v(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,n,r,o){if("function"==typeof e.on)o.once?e.once(n,r):e.on(n,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+t(e));e.addEventListener(n,(function t(i){o.once&&e.removeEventListener(n,t),r(i)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=v(u,c);for(n=0;n<c;++n)o(l[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},882:(e,t,n)=>{var r,o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r=[n(339)],void 0===(o=function(e){return function(e,t){function n(t){return function(e,t){for(var n=/^(\d+)\.(\d+)\.(\d+)/,r=n.exec(e)||[],o=n.exec(t)||[],i=1;i<=3;i++){if(+r[i]>+o[i])return 1;if(+r[i]<+o[i])return-1}return 0}(e.fn.jquery,t)>=0}e.migrateVersion="3.1.0",t.console&&t.console.log&&(e&&n("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var r={};function o(n){var o=t.console;r[n]||(r[n]=!0,e.migrateWarnings.push(n),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+n),e.migrateTrace&&o.trace&&o.trace()))}function a(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o(r),n},set:function(e){o(r),n=e}})}function s(e,t,n,r){e[t]=function(){return o(r),n.apply(this,arguments)}}e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&o("jQuery is not compatible with Quirks Mode");var u,c=e.fn.init,l=e.isNumeric,d=e.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,p=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(u in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(o("jQuery( '#' ) is not a valid selector"),t[0]=[]),c.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&f.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(p,(function(e,t,n,r){return"["+t+n+'"'+r+'"]'}));try{t.document.querySelector(e),o("Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){o("Attribute selector with '#' was not fixed: "+n[0])}}return d.apply(this,n)},d)Object.prototype.hasOwnProperty.call(d,u)&&(e.find[u]=d[u]);e.fn.size=function(){return o("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},e.parseJSON=function(){return o("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){var n,r,i=l(t),a=(r=(n=t)&&n.toString(),!e.isArray(n)&&r-parseFloat(r)+1>=0);return i!==a&&o("jQuery.isNumeric() should not be called on constructed objects"),a},n("3.3.0")&&s(e,"isWindow",(function(e){return null!=e&&e===e.window}),"jQuery.isWindow() is deprecated"),s(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),s(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),a(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),a(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),n("3.2.0")&&s(e,"nodeName",e.nodeName,"jQuery.nodeName is deprecated");var h=e.ajax;e.ajax=function(){var e=h.apply(this,arguments);return e.promise&&(s(e,"success",e.done,"jQXHR.success is deprecated and removed"),s(e,"error",e.fail,"jQXHR.error is deprecated and removed"),s(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var v=e.fn.removeAttr,m=e.fn.toggleClass,y=/\S+/g;e.fn.removeAttr=function(t){var n=this;return e.each(t.match(y),(function(t,r){e.expr.match.bool.test(r)&&(o("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))})),v.apply(this,arguments)},e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?m.apply(this,arguments):(o("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each((function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")})))};var g=!1;e.swap&&e.each(["height","width","reliableMarginRight"],(function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return g=!0,e=r.apply(this,arguments),g=!1,e})})),e.swap=function(e,t,n,r){var i,a,s={};for(a in g||o("jQuery.swap() is undocumented and deprecated"),t)s[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,r||[]),t)e.style[a]=s[a];return i};var b=e.data;e.data=function(t,n,r){var a;if(n&&"object"===i(n)&&2===arguments.length){a=e.hasData(t)&&b.call(this,t);var s={};for(var u in n)u!==e.camelCase(u)?(o("jQuery.data() always sets/gets camelCased names: "+u),a[u]=n[u]):s[u]=n[u];return b.call(this,t,s),n}return n&&"string"==typeof n&&n!==e.camelCase(n)&&(a=e.hasData(t)&&b.call(this,t))&&n in a?(o("jQuery.data() always sets/gets camelCased names: "+n),arguments.length>2&&(a[n]=r),a[n]):b.apply(this,arguments)};var x=e.Tween.prototype.run,w=function(e){return e};e.Tween.prototype.run=function(){e.easing[this.easing].length>1&&(o("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),e.easing[this.easing]=w),x.apply(this,arguments)};var k=e.fx.interval||13,C="jQuery.fx.interval is deprecated";t.requestAnimationFrame&&Object.defineProperty(e.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden||o(C),k},set:function(e){o(C),k=e}});var j=e.fn.load,T=e.event.add,S=e.event.fix;e.event.props=[],e.event.fixHooks={},a(e.event.props,"concat",e.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),e.event.fix=function(t){var n,r=t.type,i=this.fixHooks[r],a=e.event.props;if(a.length)for(o("jQuery.event.props are deprecated and removed: "+a.join());a.length;)e.event.addProp(a.pop());if(i&&!i._migrated_&&(i._migrated_=!0,o("jQuery.event.fixHooks are deprecated and removed: "+r),(a=i.props)&&a.length))for(;a.length;)e.event.addProp(a.pop());return n=S.call(this,t),i&&i.filter?i.filter(n,t):n},e.event.add=function(e,n){return e===t&&"load"===n&&"complete"===t.document.readyState&&o("jQuery(window).on('load'...) called after load event occurred"),T.apply(this,arguments)},e.each(["load","unload","error"],(function(t,n){e.fn[n]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===n&&"string"==typeof e[0]?j.apply(this,e):(o("jQuery.fn."+n+"() is deprecated"),e.splice(0,0,n),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}})),e.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,n){e.fn[n]=function(e,t){return o("jQuery.fn."+n+"() event shorthand is deprecated"),arguments.length>0?this.on(n,null,e,t):this.trigger(n)}})),e((function(){e(t.document).triggerHandler("ready")})),e.event.special.ready={setup:function(){this===t.document&&o("'ready' event is deprecated")}},e.fn.extend({bind:function(e,t,n){return o("jQuery.fn.bind() is deprecated"),this.on(e,null,t,n)},unbind:function(e,t){return o("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,n,r){return o("jQuery.fn.delegate() is deprecated"),this.on(t,e,n,r)},undelegate:function(e,t,n){return o("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return o("jQuery.fn.hover() is deprecated"),this.on("mouseenter",e).on("mouseleave",t||e)}});var A=e.fn.offset;e.fn.offset=function(){var n,r=this[0],i={top:0,left:0};return r&&r.nodeType?(n=(r.ownerDocument||t.document).documentElement,e.contains(n,r)?A.apply(this,arguments):(o("jQuery.fn.offset() requires an element connected to a document"),i)):(o("jQuery.fn.offset() requires a valid DOM element"),i)};var E=e.param;e.param=function(t,n){var r=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===n&&r&&(o("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),n=r),E.call(this,t,n)};var _=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return o("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),_.apply(this,arguments)};var N=e.Deferred,q=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];return e.Deferred=function(t){var n=N(),r=n.promise();return n.pipe=r.pipe=function(){var t=arguments;return o("deferred.pipe() is deprecated"),e.Deferred((function(o){e.each(q,(function(i,a){var s=e.isFunction(t[i])&&t[i];n[a[1]]((function(){var t=s&&s.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[a[0]+"With"](this===r?o.promise():this,s?[t]:arguments)}))})),t=null})).promise()},t&&t.call(n,n),n},e.Deferred.exceptionHook=N.exceptionHook,e}(e,window)}.apply(t,r))||(e.exports=o)},165:(e,t,n)=>{var r,o;r=[n(339)],void 0===(o=function(e){return function(e){function t(e){void 0===e&&(e=window.navigator.userAgent),e=e.toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],r={},o={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0",platform:n[0]||""};if(o.browser&&(r[o.browser]=!0,r.version=o.version,r.versionNumber=parseInt(o.versionNumber,10)),o.platform&&(r[o.platform]=!0),(r.android||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"])&&(r.mobile=!0),(r.cros||r.mac||r.linux||r.win)&&(r.desktop=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){var i="msie";o.browser=i,r[i]=!0}if(r.edge){delete r.edge;var a="msedge";o.browser=a,r.msedge=!0}if(r.safari&&r.blackberry){var s="blackberry";o.browser=s,r.blackberry=!0}if(r.safari&&r.playbook){var u="playbook";o.browser=u,r.playbook=!0}if(r.bb){var c="blackberry";o.browser=c,r[c]=!0}if(r.opr){var l="opera";o.browser=l,r.opera=!0}if(r.safari&&r.android){var d="android";o.browser=d,r.android=!0}if(r.safari&&r.kindle){var f="kindle";o.browser=f,r.kindle=!0}if(r.safari&&r.silk){var p="silk";o.browser=p,r.silk=!0}return r.name=o.browser,r.platform=o.platform,r}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,e&&(e.browser=window.jQBrowser),window.jQBrowser}(e)}.apply(t,r))||(e.exports=o)},339:(e,t,n)=>{var r,o,i;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e=n.nmd(e),o="undefined"!=typeof window?window:void 0,i=function(n,o){var i=[],s=Object.getPrototypeOf,u=i.slice,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},l=i.push,d=i.indexOf,f={},p=f.toString,h=f.hasOwnProperty,v=h.toString,m=v.call(Object),y={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},x=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function k(e,t,n){var r,o,i=(n=n||x).createElement("script");if(i.text=e,t)for(r in w)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function C(e){return null==e?e+"":"object"===a(e)||"function"==typeof e?f[p.call(e)]||"object":a(e)}var j="3.5.1",T=function e(t,n){return new e.fn.init(t,n)};function S(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!g(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}T.fn=T.prototype={jquery:j,constructor:T,length:0,toArray:function(){return u.call(this)},get:function(e){return null==e?u.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:i.sort,splice:i.splice},T.extend=T.fn.extend=function(){var e,t,n,r,o,i,s=arguments[0]||{},u=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[u]||{},u++),"object"===a(s)||g(s)||(s={}),u===c&&(s=this,u--);u<c;u++)if(null!=(e=arguments[u]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(l&&r&&(T.isPlainObject(r)||(o=Array.isArray(r)))?(n=s[t],i=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,s[t]=T.extend(l,i,r)):void 0!==r&&(s[t]=r));return s},T.extend({expando:"jQuery"+(j+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e)||(t=s(e))&&("function"!=typeof(n=h.call(t,"constructor")&&t.constructor)||v.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){k(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?T.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(S(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return c(a)},guid:1,support:y}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=i[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){f["[object "+t+"]"]=t.toLowerCase()}));var A=function(e){var t,n,r,o,i,a,s,u,c,l,d,f,p,h,v,m,y,g,b,x="sizzle"+1*new Date,w=e.document,k=0,C=0,j=ue(),T=ue(),S=ue(),A=ue(),E=function(e,t){return e===t&&(d=!0),0},_={}.hasOwnProperty,N=[],q=N.pop,D=N.push,L=N.push,O=N.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\[[\\x20\\t\\r\\n\\f]*("+R+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+H+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",F=new RegExp(H+"+","g"),$=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),Q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),z=new RegExp(H+"|>"),U=new RegExp(W),X=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(N=O.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){L={apply:N.length?function(e,t){D.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,c,l,d,h,y,g=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!o&&(f(t),t=t||p,v)){if(11!==w&&(d=Z.exec(e)))if(i=d[1]){if(9===w){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(g&&(c=g.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return L.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!A[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,g=t,1===w&&(z.test(e)||B.test(e))){for((g=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((l=t.getAttribute("id"))?l=l.replace(re,oe):t.setAttribute("id",l=x)),s=(h=a(e)).length;s--;)h[s]=(l?"#"+l:":scope")+" "+be(h[s]);y=h.join(",")}try{return L.apply(r,g.querySelectorAll(y)),r}catch(t){A(e,!0)}finally{l===x&&t.removeAttribute("id")}}}return u(e.replace($,"$1"),t,r,o)}function ue(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[x]=!0,e}function le(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!=p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,v=!i(p),w!=p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=le((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=le((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=le((function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(le((function(e){var t;h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+M+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),le((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=K.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),y.push("!=",W)})),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==w&&b(w,e)?-1:t==p||t.ownerDocument==w&&b(w,t)?1:l?P(l,e)-P(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e==p?-1:t==p?1:o?-1:i?1:l?P(l,e)-P(l,t):0;if(o===i)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&v&&!A[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&f(e);var o=r.attrHandle[t.toLowerCase()],i=o&&_.call(r.attrHandle,t.toLowerCase())?o(e,t,!v):void 0;return void 0!==i?i:n.attributes||!v?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return l=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=j[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+H+"|$)"))&&j(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var c,l,d,f,p,h,v=i!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),g=!u&&!s,b=!1;if(m){if(i){for(;v;){for(f=t;f=f[v];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&g){for(b=(p=(c=(l=(d=(f=m)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===k&&c[1])&&c[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){l[e]=[k,p,b];break}}else if(g&&(b=p=(c=(l=(d=(f=t)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===k&&c[1]),!1===b)for(;(f=++p&&f&&f[v]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++b||(g&&((l=(d=f[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[k,b]),f!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=P(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[x]?ce((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return X.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ve(!1),disabled:ve(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ge(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,u){var c,l,d,f=[k,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(l=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[i])&&c[0]===k&&c[1]===s)return f[2]=c[2];if(l[i]=f,f[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function ke(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function Ce(e,t,n,r,o,i){return r&&!r[x]&&(r=Ce(r)),o&&!o[x]&&(o=Ce(o,i)),ce((function(i,a,s,u){var c,l,d,f=[],p=[],h=a.length,v=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?v:ke(v,f,e,s,u),y=n?o||(i?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r)for(c=ke(y,p),r(c,[],s,u),l=c.length;l--;)(d=c[l])&&(y[p[l]]=!(m[p[l]]=d));if(i){if(o||e){if(o){for(c=[],l=y.length;l--;)(d=y[l])&&c.push(m[l]=d);o(null,y=[],c,u)}for(l=y.length;l--;)(d=y[l])&&(c=o?P(i,d):f[l])>-1&&(i[c]=!(a[c]=d))}}else y=ke(y===a?y.splice(h,y.length):y),o?o(null,a,y,u):L.apply(a,y)}))}function je(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,l=xe((function(e){return e===t}),s,!0),d=xe((function(e){return P(t,e)>-1}),s,!0),f=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?l(e,n,r):d(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])f=[xe(we(f),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[x]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return Ce(u>1&&we(f),u>1&&be(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace($,"$1"),n,u<o&&je(e.slice(u,o)),o<i&&je(e=e.slice(o)),o<i&&be(e))}f.push(n)}return we(f)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,a=se.tokenize=function(e,t){var n,o,i,a,s,u,c,l=T[e+" "];if(l)return t?0:l.slice(0);for(s=e,u=[],c=r.preFilter;s;){for(a in n&&!(o=Q.exec(s))||(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),n=!1,(o=B.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace($," ")}),s=s.slice(n.length)),r.filter)!(o=V[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,u).slice(0)},s=se.compile=function(e,t){var n,o=[],i=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=je(t[n]))[x]?o.push(s):i.push(s);(s=S(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,u,l){var d,h,m,y=0,g="0",b=i&&[],x=[],w=c,C=i||o&&r.find.TAG("*",l),j=k+=null==w?1:Math.random()||.1,T=C.length;for(l&&(c=a==p||a||l);g!==T&&null!=(d=C[g]);g++){if(o&&d){for(h=0,a||d.ownerDocument==p||(f(d),s=!v);m=e[h++];)if(m(d,a||p,s)){u.push(d);break}l&&(k=j)}n&&((d=!m&&d)&&y--,i&&b.push(d))}if(y+=g,n&&g!==y){for(h=0;m=t[h++];)m(b,x,a,s);if(i){if(y>0)for(;g--;)b[g]||x[g]||(x[g]=q.call(u));x=ke(x)}L.apply(u,x),l&&!i&&x.length>0&&y+t.length>1&&se.uniqueSort(u)}return l&&(k=j,c=w),b};return n?ce(i):i}(i,o))).selector=e}return s},u=se.select=function(e,t,n,o){var i,u,c,l,d,f="function"==typeof e&&e,p=!o&&a(e=f.selector||e);if(n=n||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&9===t.nodeType&&v&&r.relative[u[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(i=V.needsContext.test(e)?0:u.length;i--&&(c=u[i],!r.relative[l=c.type]);)if((d=r.find[l])&&(o=d(c.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(i,1),!(e=o.length&&be(u)))return L.apply(n,o),n;break}}return(f||s(e,p))(o,t,!v,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=x.split("").sort(E).join("")===x,n.detectDuplicates=!!d,f(),n.sortDetached=le((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),le((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&le((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||de(M,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);T.find=A,(T.expr=A.selectors)[":"]=T.expr.pseudos,T.uniqueSort=T.unique=A.uniqueSort,T.text=A.getText,T.isXMLDoc=A.isXML,T.contains=A.contains,T.escapeSelector=A.escape;var E=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(n))break;r.push(e)}return r},_=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=T.expr.match.needsContext;function q(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return g(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return d.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,o[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&N.test(e)?T(e):e||[],!1).length}});var O,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),D.test(r[1])&&T.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=x.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,O=T(x);var M=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&T(e);if(!N.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?T.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?d.call(T(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return _((e.parentNode||{}).firstChild,e)},children:function(e){return _(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(q(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var o=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=T.filter(r,o)),this.length>1&&(H[e]||T.uniqueSort(o),M.test(e)&&o.reverse()),this.pushStack(o)}}));var I=/[^\x20\t\r\n\f]+/g;function W(e){return e}function F(e){throw e}function $(e,t,n,r){var o;try{e&&g(o=e.promise)?o.call(e).done(t).fail(n):e&&g(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(I)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,r,o,i=[],a=[],s=-1,u=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){T.each(n,(function(n,r){g(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==C(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var o=g(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,o){var i=0;function s(e,t,r,o){return function(){var u=this,c=arguments,l=function(){var n,l;if(!(e<i)){if((n=r.apply(u,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"===a(n)||"function"==typeof n)&&n.then,g(l)?o?l.call(n,s(i,t,W,o),s(i,t,F,o)):(i++,l.call(n,s(i,t,W,o),s(i,t,F,o),s(i,t,W,t.notifyWith))):(r!==W&&(u=void 0,c=[n]),(o||t.resolveWith)(u,c))}},d=o?l:function(){try{l()}catch(n){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(n,d.stackTrace),e+1>=i&&(r!==F&&(u=void 0,c=[n]),t.rejectWith(u,c))}};e?d():(T.Deferred.getStackHook&&(d.stackTrace=T.Deferred.getStackHook()),n.setTimeout(d))}}return T.Deferred((function(n){t[0][3].add(s(0,n,g(o)?o:W,n.notifyWith)),t[1][3].add(s(0,n,g(e)?e:W)),t[2][3].add(s(0,n,g(r)?r:F))})).promise()},promise:function(e){return null!=e?T.extend(e,o):o}},i={};return T.each(t,(function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=u.call(arguments),i=T.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?u.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&($(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||g(o[n]&&o[n].then)))return i.then();for(;n--;)$(o[n],a(n),i.reject);return i.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Q.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){n.setTimeout((function(){throw e}))};var B=T.Deferred();function z(){x.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z),T.ready()}T.fn.ready=function(e){return B.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||B.resolveWith(x,[T]))}}),T.ready.then=B.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?n.setTimeout(T.ready):(x.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z));var U=function e(t,n,r,o,i,a,s){var u=0,c=t.length,l=null==r;if("object"===C(r))for(u in i=!0,r)e(t,n,u,r[u],!0,a,s);else if(void 0!==o&&(i=!0,g(o)||(s=!0),l&&(s?(n.call(t,o),n=null):(l=n,n=function(e,t,n){return l.call(T(e),n)})),n))for(;u<c;u++)n(t[u],r,s?o:o.call(t[u],u,n(t[u],r)));return i?t:l?n.call(t):c?n(t[0],r):a},X=/^-ms-/,V=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function J(e){return e.replace(X,"ms-").replace(V,G)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=T.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[J(t)]=n;else for(r in t)o[J(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][J(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(J):(t=J(t))in r?[t]:t.match(I)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var Z=new K,ee=new K,te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ne=/[A-Z]/g;function re(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ne,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:te.test(e)?JSON.parse(e):e)}(n)}catch(e){}ee.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return ee.hasData(e)||Z.hasData(e)},data:function(e,t,n){return ee.access(e,t,n)},removeData:function(e,t){ee.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,o,i=this[0],s=i&&i.attributes;if(void 0===e){if(this.length&&(o=ee.get(i),1===i.nodeType&&!Z.get(i,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=J(r.slice(5)),re(i,r,o[r]));Z.set(i,"hasDataAttrs",!0)}return o}return"object"===a(e)?this.each((function(){ee.set(this,e)})):U(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=ee.get(i,e))||void 0!==(n=re(i,e))?n:void 0;this.each((function(){ee.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ee.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=T.queue(e,t=t||"fx"),r=n.length,o=n.shift(),i=T._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){T.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:T.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=T.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],se=x.documentElement,ue=function(e){return T.contains(e.ownerDocument,e)},ce={composed:!0};se.getRootNode&&(ue=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ue(e)&&"none"===T.css(e,"display")};function de(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},u=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),l=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+u)&&ie.exec(T.css(e,t));if(l&&l[3]!==c){for(u/=2,c=c||l[3],l=+u||1;a--;)T.style(e,t,l+c),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),l/=i;T.style(e,t,(l*=2)+c),n=n||[]}return n&&(l=+l||+u||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=o)),o}var fe={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,o=fe[r];return o||(t=n.body.appendChild(n.createElement(r)),o=T.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),fe[r]=o,o)}function he(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=Z.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&le(r)&&(o[i]=pe(r))):"none"!==n&&(o[i]="none",Z.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}T.fn.extend({show:function(){return he(this,!0)},hide:function(){return he(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?T(this).show():T(this).hide()}))}});var ve,me,ye=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;ve=x.createDocumentFragment().appendChild(x.createElement("div")),(me=x.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),ve.appendChild(me),y.checkClone=ve.cloneNode(!0).cloneNode(!0).lastChild.checked,ve.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ve.cloneNode(!0).lastChild.defaultValue,ve.innerHTML="<option></option>",y.option=!!ve.lastChild;var xe={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 we(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&q(e,t)?T.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}xe.tbody=xe.tfoot=xe.colgroup=xe.caption=xe.thead,xe.th=xe.td,y.option||(xe.optgroup=xe.option=[1,"<select multiple='multiple'>","</select>"]);var Ce=/<|&#?\w+;/;function je(e,t,n,r,o){for(var i,a,s,u,c,l,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===C(i))T.merge(f,i.nodeType?[i]:i);else if(Ce.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(i)||["",""])[1].toLowerCase(),u=xe[s]||xe._default,a.innerHTML=u[1]+T.htmlPrefilter(i)+u[2],l=u[0];l--;)a=a.lastChild;T.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(r&&T.inArray(i,r)>-1)o&&o.push(i);else if(c=ue(i),a=we(d.appendChild(i),"script"),c&&ke(a),n)for(l=0;i=a[l++];)be.test(i.type||"")&&n.push(i);return d}var Te=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function _e(){return!1}function Ne(e,t){return e===function(){try{return x.activeElement}catch(e){}}()==("focus"===t)}function qe(e,t,n,r,o,i){var s,u;if("object"===a(t)){for(u in"string"!=typeof n&&(r=r||n,n=void 0),t)qe(e,u,n,r,t[u],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=_e;else if(!o)return e;return 1===i&&(s=o,(o=function(e){return T().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),e.each((function(){T.event.add(this,t,o,r,n)}))}function De(e,t,n){n?(Z.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=u.call(arguments),Z.set(this,t,i),r=n(this,t),this[t](),i!==(o=Z.get(this,t))||r?Z.set(this,t,!1):o={},i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else i.length&&(Z.set(this,t,{value:T.event.trigger(T.extend(i[0],T.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&T.event.add(e,t,Ee)}T.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,c,l,d,f,p,h,v,m=Z.get(e);if(Y(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&T.find.matchesSelector(se,o),n.guid||(n.guid=T.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(I)||[""]).length;c--;)p=v=(s=Ae.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},l=T.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},i),(f=u[p])||((f=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,l):f.push(l),T.event.global[p]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,c,l,d,f,p,h,v,m=Z.hasData(e)&&Z.get(e);if(m&&(u=m.events)){for(c=(t=(t||"").match(I)||[""]).length;c--;)if(p=v=(s=Ae.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=u[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)l=f[i],!o&&v!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(i,1),l.selector&&f.delegateCount--,d.remove&&d.remove.call(e,l));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||T.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)T.event.remove(e,p+t[c],n,r,!0);T.isEmptyObject(u)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),u=T.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[u.type]||[],l=T.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(a=T.event.handlers.call(this,u,c),t=0;(o=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==i.namespace&&!u.rnamespace.test(i.namespace)||(u.handleObj=i,u.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,o,i,a,s=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<u;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?T(o,this).index(c)>-1:T.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,u<t.length&&s.push({elem:c,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ye.test(t.type)&&t.click&&q(t,"input")&&De(t,"click",Ee),!1},trigger:function(e){var t=this||e;return ye.test(t.type)&&t.click&&q(t,"input")&&De(t,"click"),!0},_default:function(e){var t=e.target;return ye.test(t.type)&&t.click&&q(t,"input")&&Z.get(t,"click")||q(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},(T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:_e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0}).prototype={constructor:T.Event,isDefaultPrevented:_e,isPropagationStopped:_e,isImmediatePropagationStopped:_e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.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:function(e){var t=e.button;return null==e.which&&Te.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){T.event.special[e]={setup:function(){return De(this,e,Ne),!1},trigger:function(){return De(this,e),!0},delegateType:t}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||T.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return qe(this,e,t,n,r)},one:function(e,t,n,r){return qe(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===a(e)){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=_e),this.each((function(){T.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,Oe=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return q(e,"table")&&q(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(o in Z.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)T.event.add(t,o,s[o][n]);ee.hasData(e)&&(i=ee.access(e),a=T.extend({},i),ee.set(t,a))}}function We(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ye.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=c(t);var o,i,a,s,u,l,d=0,f=e.length,p=f-1,h=t[0],v=g(h);if(v||f>1&&"string"==typeof h&&!y.checkClone&&Oe.test(h))return e.each((function(o){var i=e.eq(o);v&&(t[0]=h.call(this,o,i.html())),Fe(i,t,n,r)}));if(f&&(i=(o=je(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=T.map(we(o,"script"),He)).length;d<f;d++)u=o,d!==p&&(u=T.clone(u,!0,!0),s&&T.merge(a,we(u,"script"))),n.call(e[d],u,d);if(s)for(l=a[a.length-1].ownerDocument,T.map(a,Re),d=0;d<s;d++)u=a[d],be.test(u.type||"")&&!Z.access(u,"globalEval")&&T.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):k(u.textContent.replace(Pe,""),u,l))}return e}function $e(e,t,n){for(var r,o=t?T.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||T.cleanData(we(r)),r.parentNode&&(n&&ue(r)&&ke(we(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=ue(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=we(s),r=0,o=(i=we(e)).length;r<o;r++)We(i[r],a[r]);if(t)if(n)for(i=i||we(e),a=a||we(s),r=0,o=i.length;r<o;r++)Ie(i[r],a[r]);else Ie(e,s);return(a=we(s,"script")).length>0&&ke(a,!u&&we(e,"script")),s},cleanData:function(e){for(var t,n,r,o=T.event.special,i=0;void 0!==(n=e[i]);i++)if(Y(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[ee.expando]&&(n[ee.expando]=void 0)}}}),T.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return U(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Me(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!xe[(ge.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(we(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],o=T(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),T(o[a])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Qe=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},ze=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Ue=new RegExp(ae.join("|"),"i");function Xe(e,t,n){var r,o,i,a,s=e.style;return(n=n||Be(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ue(e)||(a=T.style(e,t)),!y.pixelBoxStyles()&&Qe.test(a)&&Ue.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(c).appendChild(l);var e=n.getComputedStyle(l);r="1%"!==e.top,u=12===t(e.marginLeft),l.style.right="60%",a=36===t(e.right),o=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),se.removeChild(c),l=null}}function t(e){return Math.round(parseFloat(e))}var r,o,i,a,s,u,c=x.createElement("div"),l=x.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),u},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,o;return null==s&&(e=x.createElement("table"),t=x.createElement("tr"),r=x.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",se.appendChild(e).appendChild(t).appendChild(r),o=n.getComputedStyle(t),s=parseInt(o.height)>3,se.removeChild(e)),s}}))}();var Ge=["Webkit","Moz","ms"],Je=x.createElement("div").style,Ye={};function Ke(e){return T.cssProps[e]||Ye[e]||(e in Je?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Je)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,et=/^--/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ot(e,t,n,r,o,i){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=T.css(e,n+ae[a],!0,o)),r?("content"===n&&(u-=T.css(e,"padding"+ae[a],!0,o)),"margin"!==n&&(u-=T.css(e,"border"+ae[a]+"Width",!0,o))):(u+=T.css(e,"padding"+ae[a],!0,o),"padding"!==n?u+=T.css(e,"border"+ae[a]+"Width",!0,o):s+=T.css(e,"border"+ae[a]+"Width",!0,o));return!r&&i>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))||0),u}function it(e,t,n){var r=Be(e),o=(!y.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),i=o,a=Xe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&o||!y.reliableTrDimensions()&&q(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===T.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ot(e,t,n||(o?"border":"content"),i,r,a)+"px"}function at(e,t,n,r,o){return new at.prototype.init(e,t,n,r,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,s,u=J(t),c=et.test(t),l=e.style;if(c||(t=Ke(u)),s=T.cssHooks[t]||T.cssHooks[u],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,r))?o:l[t];"string"===(i=a(n))&&(o=ie.exec(n))&&o[1]&&(n=de(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=o&&o[3]||(T.cssNumber[u]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var o,i,a,s=J(t);return et.test(t)||(t=Ke(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Xe(e,t,r)),"normal"===o&&t in nt&&(o=nt[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):ze(e,tt,(function(){return it(e,t,r)}))},set:function(e,n,r){var o,i=Be(e),a=!y.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,i),u=r?ot(e,t,r,s,i):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ot(e,t,"border",!1,i)-.5)),u&&(o=ie.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),rt(0,n,u)}}})),T.cssHooks.marginLeft=Ve(y.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Xe(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ae[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(T.cssHooks[e+t].set=rt)})),T.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Be(e),o=t.length;a<o;a++)i[t[a]]=T.css(e,t[a],!1,r);return i}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=at,at.prototype={constructor:at,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(T.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}},at.prototype.init.prototype=at.prototype,at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},at.propHooks.scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},(T.fx=at.prototype.init).step={};var st,ut,ct=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function dt(){ut&&(!1===x.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(dt):n.setTimeout(dt,T.fx.interval),T.fx.tick())}function ft(){return n.setTimeout((function(){st=void 0})),st=Date.now()}function pt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ae[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ht(e,t,n){for(var r,o=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function vt(e,t,n){var r,o,i=0,a=vt.prefilters.length,s=T.Deferred().always((function(){delete u.elem})),u=function(){if(o)return!1;for(var t=st||ft(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||ft(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),l=c.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=J(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(l,c.opts.specialEasing);i<a;i++)if(r=vt.prefilters[i].call(c,e,l,c.opts))return g(r.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return T.map(l,ht,c),g(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(vt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return de(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(I);for(var n,r=0,o=e.length;r<o;r++)n=e[r],vt.tweeners[n]=vt.tweeners[n]||[],vt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,u,c,l,d="width"in t||"height"in t,f=this,p={},h=e.style,v=e.nodeType&&le(e),m=Z.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[r],ct.test(o)){if(delete t[r],i=i||"toggle"===o,o===(v?"hide":"show")){if("show"!==o||!m||void 0===m[r])continue;v=!0}p[r]=m&&m[r]||T.style(e,r)}if((u=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=Z.get(e,"display")),"none"===(l=T.css(e,"display"))&&(c?l=c:(he([e],!0),c=e.style.display||c,l=T.css(e,"display"),he([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===T.css(e,"float")&&(u||(f.done((function(){h.display=c})),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,p)u||(m?"hidden"in m&&(v=m.hidden):m=Z.access(e,"fxshow",{display:c}),i&&(m.hidden=!v),v&&he([e],!0),f.done((function(){for(r in v||he([e]),Z.remove(e,"fxshow"),p)T.style(e,r,p[r])}))),u=ht(v?m[r]:0,r,f),r in m||(m[r]=u.start,v&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"===a(e)?T.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=T.isEmptyObject(e),i=T.speed(t,n,r),a=function(){var t=vt(this,T.extend({},e),i);(o||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=T.timers,a=Z.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&lt.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(pt(t,!0),e,r,o)}})),T.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),st=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ut||(ut=!0,dt())},T.fx.stop=function(){ut=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}}))},function(){var e=x.createElement("input"),t=x.createElement("select").appendChild(x.createElement("option"));e.type="checkbox",y.checkOn=""!==e.value,y.optSelected=t.selected,(e=x.createElement("input")).value="t",e.type="radio",y.radioValue="t"===e.value}();var mt,yt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return U(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?T.prop(e,t,n):(1===i&&T.isXMLDoc(e)||(o=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&q(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(I);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=yt[t]||T.find.attr;yt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=yt[a],yt[a]=o,o=null!=n(e,t,r)?a:null,yt[a]=i),o}}));var gt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function xt(e){return(e.match(I)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}T.fn.extend({prop:function(e,t){return U(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(e)||(t=T.propFix[t]||t,o=T.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(g(e))return this.each((function(t){T(this).addClass(e.call(this,t,wt(this)))}));if((t=kt(e)).length)for(;n=this[u++];)if(o=wt(n),r=1===n.nodeType&&" "+xt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=xt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(g(e))return this.each((function(t){T(this).removeClass(e.call(this,t,wt(this)))}));if(!arguments.length)return this.attr("class","");if((t=kt(e)).length)for(;n=this[u++];)if(o=wt(n),r=1===n.nodeType&&" "+xt(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=xt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=a(e),r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,wt(this),t),t)})):this.each((function(){var t,o,i,a;if(r)for(o=0,i=T(this),a=kt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=wt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+xt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;T.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=g(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,T(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Ct,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:xt(T.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?i+1:o.length;for(r=i<0?u:a?i:0;r<u;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!q(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=T.makeArray(t),a=o.length;a--;)((r=o[a]).selected=T.inArray(T.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},y.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),y.focusin="onfocusin"in n;var jt=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,r,o){var i,s,u,c,l,d,f,p,v=[r||x],m=h.call(e,"type")?e.type:e,y=h.call(e,"namespace")?e.namespace.split("."):[];if(s=p=u=r=r||x,3!==r.nodeType&&8!==r.nodeType&&!jt.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(y=m.split("."),m=y.shift(),y.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[T.expando]?e:new T.Event(m,"object"===a(e)&&e)).isTrigger=o?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:T.makeArray(t,[e]),f=T.event.special[m]||{},o||!f.trigger||!1!==f.trigger.apply(r,t))){if(!o&&!f.noBubble&&!b(r)){for(c=f.delegateType||m,jt.test(c+m)||(s=s.parentNode);s;s=s.parentNode)v.push(s),u=s;u===(r.ownerDocument||x)&&v.push(u.defaultView||u.parentWindow||n)}for(i=0;(s=v[i++])&&!e.isPropagationStopped();)p=s,e.type=i>1?c:f.bindType||m,(d=(Z.get(s,"events")||Object.create(null))[e.type]&&Z.get(s,"handle"))&&d.apply(s,t),(d=l&&s[l])&&d.apply&&Y(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),t)||!Y(r)||l&&g(r[m])&&!b(r)&&((u=r[l])&&(r[l]=null),T.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,Tt),r[m](),e.isPropagationStopped()&&p.removeEventListener(m,Tt),T.event.triggered=void 0,u&&(r[l]=u)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t);o||r.addEventListener(e,n,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var St=n.location,At={guid:Date.now()},Et=/\?/;T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var _t=/\[\]$/,Nt=/\r?\n/g,qt=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var o;if(Array.isArray(t))T.each(t,(function(t,o){n||_t.test(e)?r(e,o):Lt(e+"["+("object"===a(o)&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==C(t))r(e,t);else for(o in t)Lt(e+"["+o+"]",t[o],n,r)}T.param=function(e,t){var n,r=[],o=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){o(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Dt.test(this.nodeName)&&!qt.test(e)&&(this.checked||!ye.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}})):{name:t.name,value:n.replace(Nt,"\r\n")}})).get()}});var Ot=/%20/g,Pt=/#.*$/,Mt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,It=/^\/\//,Wt={},Ft={},$t="*/".concat("*"),Qt=x.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(I)||[];if(g(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function zt(e,t,n,r){var o={},i=e===Ft;function a(s){var u;return o[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||o[c]?i?!(u=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),u}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ut(e,t){var n,r,o=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Qt.href=St.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,T.ajaxSettings),t):Ut(T.ajaxSettings,e)},ajaxPrefilter:Bt(Wt),ajaxTransport:Bt(Ft),ajax:function(e,t){"object"===a(e)&&(t=e,e=void 0);var r,o,i,s,u,c,l,d,f,p,h=T.ajaxSetup({},t=t||{}),v=h.context||h,m=h.context&&(v.nodeType||v.jquery)?T(v):T.event,y=T.Deferred(),g=T.Callbacks("once memory"),b=h.statusCode||{},w={},k={},C="canceled",j={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=Ht.exec(i);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?i:null},setRequestHeader:function(e,t){return null==l&&(e=k[e.toLowerCase()]=k[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)j.always(e[j.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),S(0,t),this}};if(y.promise(j),h.url=((e||h.url||St.href)+"").replace(It,St.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(I)||[""],null==h.crossDomain){c=x.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Qt.protocol+"//"+Qt.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=T.param(h.data,h.traditional)),zt(Wt,h,t,j),l)return j;for(f in(d=T.event&&h.global)&&0==T.active++&&T.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Rt.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ot,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Et.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Mt,"$1"),p=(Et.test(o)?"&":"?")+"_="+At.guid+++p),h.url=o+p),h.ifModified&&(T.lastModified[o]&&j.setRequestHeader("If-Modified-Since",T.lastModified[o]),T.etag[o]&&j.setRequestHeader("If-None-Match",T.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&j.setRequestHeader("Content-Type",h.contentType),j.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+$t+"; q=0.01":""):h.accepts["*"]),h.headers)j.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(v,j,h)||l))return j.abort();if(C="abort",g.add(h.complete),j.done(h.success),j.fail(h.error),r=zt(Ft,h,t,j)){if(j.readyState=1,d&&m.trigger("ajaxSend",[j,h]),l)return j;h.async&&h.timeout>0&&(u=n.setTimeout((function(){j.abort("timeout")}),h.timeout));try{l=!1,r.send(w,S)}catch(e){if(l)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,s){var c,f,p,x,w,k=t;l||(l=!0,u&&n.clearTimeout(u),r=void 0,i=s||"",j.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(h,j,a)),!c&&T.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=l.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=c[u+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}(h,x,j,c),c?(h.ifModified&&((w=j.getResponseHeader("Last-Modified"))&&(T.lastModified[o]=w),(w=j.getResponseHeader("etag"))&&(T.etag[o]=w)),204===e||"HEAD"===h.type?k="nocontent":304===e?k="notmodified":(k=x.state,f=x.data,c=!(p=x.error))):(p=k,!e&&k||(k="error",e<0&&(e=0))),j.status=e,j.statusText=(t||k)+"",c?y.resolveWith(v,[f,k,j]):y.rejectWith(v,[j,k,p]),j.statusCode(b),b=void 0,d&&m.trigger(c?"ajaxSuccess":"ajaxError",[j,h,c?f:p]),g.fireWith(v,[j,k]),d&&(m.trigger("ajaxComplete",[j,h]),--T.active||T.event.trigger("ajaxStop")))}return j},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,o){return g(n)&&(o=o||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:o,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Vt=T.ajaxSettings.xhr();y.cors=!!Vt&&"withCredentials"in Vt,y.ajax=Vt=!!Vt,T.ajaxTransport((function(e){var t,r;if(y.cors||Vt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Xt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),x.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Gt,Jt=[],Yt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Jt.pop()||T.expando+"_"+At.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+o):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||T.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always((function(){void 0===i?T(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Jt.push(o)),a&&g(i)&&i(a[0]),a=i=void 0})),"script"})),y.createHTMLDocument=((Gt=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Gt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(r)):t=x),i=!n&&[],(o=D.exec(e))?[t.createElement(o[1])]:(o=je([e],t,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.fn.load=function(e,t,n){var r,o,i,s=this,u=e.indexOf(" ");return u>-1&&(r=xt(e.slice(u)),e=e.slice(0,u)),g(t)?(n=t,t=void 0):t&&"object"===a(t)&&(o="POST"),s.length>0&&T.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,s.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,c=T.css(e,"position"),l=T(e),d={};"static"===c&&(e.style.position="relative"),s=l.offset(),i=T.css(e,"top"),u=T.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+u).indexOf("auto")>-1?(a=(r=l.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),g(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),l.css(d))}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(r,"marginTop",!0),left:t.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||se}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return U(this,(function(e,r,o){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=Ve(y.pixelPosition,(function(e,n){if(n)return n=Xe(e,t),Qe.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return U(this,(function(t,n,o){var i;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?T.css(t,n,s):T.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.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(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=u.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(u.call(arguments)))}).guid=e.guid=e.guid||T.guid++,o},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=q,T.isFunction=g,T.isWindow=b,T.camelCase=J,T.type=C,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},void 0===(r=function(){return T}.apply(t,[]))||(e.exports=r);var Zt=n.jQuery,en=n.$;return T.noConflict=function(e){return n.$===T&&(n.$=en),e&&n.jQuery===T&&(n.jQuery=Zt),T},void 0===o&&(n.jQuery=n.$=T),T},"object"===a(e)&&"object"===a(e.exports)?e.exports=o.document?i(o,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(o)},204:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ucs2decode=f,t.default=t.toUnicode=t.toASCII=t.encode=t.decode=t.ucs2encode=void 0;var n=2147483647,r=36,o=/^xn--/,i=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,c=String.fromCharCode;function l(e){throw new RangeError(s[e])}function d(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(a,".")).split("."),t).join(".");return r+o}function f(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}var p=function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(t=e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}());var t};t.ucs2encode=p;var h=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},v=function(e,t,n){var o=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;o+=r)e=u(e/35);return u(o+36*e/(e+38))},m=function(e){var t,o=[],i=e.length,a=0,s=128,c=72,d=e.lastIndexOf("-");d<0&&(d=0);for(var f=0;f<d;++f)e.charCodeAt(f)>=128&&l("not-basic"),o.push(e.charCodeAt(f));for(var p=d>0?d+1:0;p<i;){for(var h=a,m=1,y=r;;y+=r){p>=i&&l("invalid-input");var g=(t=e.charCodeAt(p++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:r;(g>=r||g>u((n-a)/m))&&l("overflow"),a+=g*m;var b=y<=c?1:y>=c+26?26:y-c;if(g<b)break;var x=r-b;m>u(n/x)&&l("overflow"),m*=x}var w=o.length+1;c=v(a-h,w,0==h),u(a/w)>n-s&&l("overflow"),s+=u(a/w),a%=w,o.splice(a++,0,s)}return String.fromCodePoint.apply(String,o)};t.decode=m;var y=function(e){var t=[],o=(e=f(e)).length,i=128,a=0,s=72,d=!0,p=!1,m=void 0;try{for(var y,g=e[Symbol.iterator]();!(d=(y=g.next()).done);d=!0){var b=y.value;b<128&&t.push(c(b))}}catch(e){p=!0,m=e}finally{try{d||null==g.return||g.return()}finally{if(p)throw m}}var x=t.length,w=x;for(x&&t.push("-");w<o;){var k=n,C=!0,j=!1,T=void 0;try{for(var S,A=e[Symbol.iterator]();!(C=(S=A.next()).done);C=!0){var E=S.value;E>=i&&E<k&&(k=E)}}catch(e){j=!0,T=e}finally{try{C||null==A.return||A.return()}finally{if(j)throw T}}var _=w+1;k-i>u((n-a)/_)&&l("overflow"),a+=(k-i)*_,i=k;var N=!0,q=!1,D=void 0;try{for(var L,O=e[Symbol.iterator]();!(N=(L=O.next()).done);N=!0){var P=L.value;if(P<i&&++a>n&&l("overflow"),P==i){for(var M=a,H=r;;H+=r){var R=H<=s?1:H>=s+26?26:H-s;if(M<R)break;var I=M-R,W=r-R;t.push(c(h(R+I%W,0))),M=u(I/W)}t.push(c(h(M,0))),s=v(a,_,w==x),a=0,++w}}}catch(e){q=!0,D=e}finally{try{N||null==O.return||O.return()}finally{if(q)throw D}}++a,++i}return t.join("")};t.encode=y;var g=function(e){return d(e,(function(e){return o.test(e)?m(e.slice(4).toLowerCase()):e}))};t.toUnicode=g;var b=function(e){return d(e,(function(e){return i.test(e)?"xn--"+y(e):e}))};t.toASCII=b;var x={version:"2.1.0",ucs2:{decode:f,encode:p},decode:m,encode:y,toASCII:b,toUnicode:g};t.default=x},825:e=>{e.exports=prestashop}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e=a(n(339)),t=a(n(825)),r=a(n(291));n(52),n(882),n(165),n(827),n(965),n(999),n(982),n(432),n(90),n(226),n(26);var o=n(988),i=a(n(247));function a(e){return e&&e.__esModule?e:{default:e}}for(var s in r.default.prototype)t.default[s]=r.default.prototype[s];window.$=e.default,window.jQuery=e.default,(0,e.default)(document).ready((function(){(0,o.psShowHide)(),(0,i.default)('input[type="email"]')}))})()})();/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
function addNotification(productId,productAttributeId){if(typeof productId==='undefined'){var ids=$('div.js-mailalert > input[type=hidden]');productId=ids.eq(0).val();productIdAttribute=ids.eq(1).val()}
$.ajax({type:'POST',url:$('div.js-mailalert').data('url'),data:'id_product='+productId+'&id_product_attribute='+productAttributeId+'&customer_email='+$('div.js-mailalert > input[type=email]').val(),success:function(resp){resp=JSON.parse(resp);$('.js-mailalert-alerts').html('<article class="mt-1 alert alert-'+(resp.error?'danger':'success')+'" role="alert" data-alert="'+(resp.error?'error':'success')+'">'+resp.message+'</article>').show();if(!resp.error){$('div.js-mailalert > .js-mailalert-add, div.js-mailalert > input[type=email], div.js-mailalert .gdpr_consent_wrapper').hide()}}});return!1}
$(document).on('ready',function(){const mailAlertSubmitButtonClass='.js-mailalert-add';const mailAlertWrapper=$('.js-mailalert');const mailAlertSubmitButton=mailAlertWrapper.find(mailAlertSubmitButtonClass);if(mailAlertWrapper.find('#gdpr_consent, .gdpr_consent').length){setTimeout(()=>{mailAlertSubmitButton.prop('disabled',!0);mailAlertWrapper.find('[name="psgdpr_consent_checkbox"]').on('change',function(e){e.stopPropagation();mailAlertSubmitButton.prop('disabled',!$(this).prop('checked'))})},0)}
$(document).on('click',mailAlertSubmitButtonClass,function(e){e.preventDefault();addNotification($(this).data('product'),$(this).data('product-attribute'))});$(document).on('click','.js-remove-email-alert',function(){var self=$(this);var ids=self.attr('rel').replace('js-id-emailalerts-','');ids=ids.split('-');var id_product_mail_alert=ids[0];var id_product_attribute_mail_alert=ids[1];var parent=self.closest('li');$.ajax({url:self.data('url'),type:"POST",data:{'id_product':id_product_mail_alert,'id_product_attribute':id_product_attribute_mail_alert},success:function(result){if(result=='0'){parent.fadeOut("normal",function(){parent.remove()})}}})})});if(typeof LS_Meta==='object'&&LS_Meta.fixGSAP){var LS_oldGS=window.GreenSockGlobals,LS_oldGSQueue=window._gsQueue,LS_oldGSDefine=window._gsDefine;window._gsDefine=null,delete window._gsDefine;var LS_GSAP=window.GreenSockGlobals={}}
/*
 * VERSION: 1.19.0
 * DATE: 2016-07-14
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
 *
 * @license Copyright (c) 2008-2020, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 *
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},f=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=f.prototype.render},g=1e-10,h=c._internals,i=h.isSelector,j=h.isArray,k=f.prototype=c.to({},.1,{}),l=[];f.version="1.19.0",k.constructor=f,k.kill()._gc=!1,f.killTweensOf=f.killDelayedCallsTo=c.killTweensOf,f.getTweensOf=c.getTweensOf,f.lagSmoothing=c.lagSmoothing,f.ticker=c.ticker,f.render=c.render,k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),c.prototype.invalidate.call(this)},k.updateTo=function(a,b){var d,e=this.ratio,f=this.vars.immediateRender||a.immediateRender;b&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(d in a)this.vars[d]=a[d];if(this._initted||f)if(b)this._initted=!1,f&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&c._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var g=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(g,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||f)for(var h,i=1/(1-e),j=this._firstPT;j;)h=j.s+j.c,j.c*=i,j.s=h-j.c,j=j._next;return this},k.render=function(a,b,c){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var d,e,f,i,j,k,l,m,n=this._dirty?this.totalDuration():this._totalDuration,o=this._time,p=this._totalTime,q=this._cycle,r=this._duration,s=this._rawPrevTime;if(a>=n-1e-7?(this._totalTime=n,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=r,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===r&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>s||0>=a&&a>=-1e-7||s===g&&"isPause"!==this.data)&&s!==a&&(c=!0,s>g&&(e="onReverseComplete")),this._rawPrevTime=m=!b||a||s===a?a:g)):1e-7>a?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==p||0===r&&s>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===r&&(this._initted||!this.vars.lazy||c)&&(s>=0&&(c=!0),this._rawPrevTime=m=!b||a||s===a?a:g)),this._initted||(c=!0)):(this._totalTime=this._time=a,0!==this._repeat&&(i=r+this._repeatDelay,this._cycle=this._totalTime/i>>0,0!==this._cycle&&this._cycle===this._totalTime/i&&a>=p&&this._cycle--,this._time=this._totalTime-this._cycle*i,this._yoyo&&0!==(1&this._cycle)&&(this._time=r-this._time),this._time>r?this._time=r:this._time<0&&(this._time=0)),this._easeType?(j=this._time/r,k=this._easeType,l=this._easePower,(1===k||3===k&&j>=.5)&&(j=1-j),3===k&&(j*=2),1===l?j*=j:2===l?j*=j*j:3===l?j*=j*j*j:4===l&&(j*=j*j*j*j),1===k?this.ratio=1-j:2===k?this.ratio=j:this._time/r<.5?this.ratio=j/2:this.ratio=1-j/2):this.ratio=this._ease.getRatio(this._time/r)),o===this._time&&!c&&q===this._cycle)return void(p!==this._totalTime&&this._onUpdate&&(b||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=o,this._totalTime=p,this._rawPrevTime=s,this._cycle=q,h.lazyTweens.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/r):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&a>=0&&(this._active=!0),0===p&&(2===this._initted&&a>0&&this._init(),this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===r)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,b,c),b||(this._totalTime!==p||e)&&this._callback("onUpdate")),this._cycle!==q&&(b||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===r&&this._rawPrevTime===g&&m!==g&&(this._rawPrevTime=0))},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new f(a,b,c)},f.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new f(a,b,d)},f.staggerTo=f.allTo=function(a,b,g,h,k,m,n){h=h||0;var o,p,q,r,s=0,t=[],u=function(){g.onComplete&&g.onComplete.apply(g.onCompleteScope||this,arguments),k.apply(n||g.callbackScope||this,m||l)},v=g.cycle,w=g.startAt&&g.startAt.cycle;for(j(a)||("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a))),a=a||[],0>h&&(a=d(a),a.reverse(),h*=-1),o=a.length-1,q=0;o>=q;q++){p={};for(r in g)p[r]=g[r];if(v&&(e(p,a,q),null!=p.duration&&(b=p.duration,delete p.duration)),w){w=p.startAt={};for(r in g.startAt)w[r]=g.startAt[r];e(p.startAt,a,q)}p.delay=s+(p.delay||0),q===o&&k&&(p.onComplete=u),t[q]=new f(a[q],b,p),s+=h}return t},f.staggerFrom=f.allFrom=function(a,b,c,d,e,g,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,f.staggerTo(a,b,c,d,e,g,h)},f.staggerFromTo=f.allFromTo=function(a,b,c,d,e,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,f.staggerTo(a,b,d,e,g,h,i)},f.delayedCall=function(a,b,c,d,e){return new f(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,useFrames:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var m=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(m(f,b)),e=d.length),f=f._next;return d},n=f.getAllTweens=function(b){return m(a._rootTimeline,b).concat(m(a._rootFramesTimeline,b))};f.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=n(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},f.killChildTweensOf=function(a,b){if(null!=a){var e,g,k,l,m,n=h.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a)),j(a))for(l=a.length;--l>-1;)f.killChildTweensOf(a[l],b);else{e=[];for(k in n)for(g=n[k].target.parentNode;g;)g===a&&(e=e.concat(n[k].tweens)),g=g.parentNode;for(m=e.length,l=0;m>l;l++)b&&e[l].totalTime(e[l].totalDuration()),e[l]._enabled(!1,!1)}}};var o=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=n(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return f.pauseAll=function(a,b,c){o(!0,a,b,c)},f.resumeAll=function(a,b,c){o(!1,a,b,c)},f.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||g,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},k.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},f},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(e[d]=this._swapSelfInParams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e.call(b[c],c):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="1.19.0",q.constructor=d,q.kill()._gc=q._forcingPlayhead=q._hasPause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,d),e)},q.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},q.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;o<a.length;o++)l=m(e),l.startAt&&(l.startAt=m(l.startAt),l.startAt.cycle&&n(l.startAt,a,o)),r&&(n(l,a,o),null!=l.duration&&(b=l.duration,delete l.duration)),q.to(a[o],b,l,o*f);return this.add(q,g)},q.staggerFrom=function(a,b,c,d,e,f,g,h){return c.immediateRender=0!=c.immediateRender,c.runBackwards=!0,this.staggerTo(a,b,c,d,e,f,g,h)},q.staggerFromTo=function(a,b,c,d,e,f,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,this.staggerTo(a,b,d,e,f,g,h,i)},q.call=function(a,b,d,e){return this.add(c.delayedCall(0,a,b,d),e)},q.set=function(a,b,d){return d=this._parseTimeOrLabel(d,0,!0),null==b.immediateRender&&(b.immediateRender=d===this._time&&!this._paused),this.add(new c(a,0,b),d)},d.exportRoot=function(a,b){a=a||{},null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var e,f,g=new d(a),h=g._timeline;for(null==b&&(b=!0),h._remove(g,!0),g._startTime=0,g._rawPrevTime=g._time=g._totalTime=h._time,e=h._first;e;)f=e._next,b&&e instanceof c&&e.target===e.vars.onComplete||g.add(e,e._startTime-e._delay),e=f;return h.add(g,0),g},q.add=function(e,f,g,h){var j,k,l,m,n,o;if("number"!=typeof f&&(f=this._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&i(e)){for(g=g||"normal",h=h||0,j=f,k=e.length,l=0;k>l;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(this,e,f),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(n=this,o=n.rawTime()>e._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>d._startTime+d._totalDuration/d._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},q.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},q.insert=q.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},q.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},q.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},q.removeLabel=function(a){return delete this._labels[a],this},q.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parseTimeOrLabel=function(b,c,d,e){var f;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(f=e.length;--f>-1;)e[f]instanceof a&&e[f].timeline===this&&this.remove(e[f]);if("string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-this.duration():0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=this.duration());else{if(f=b.indexOf("="),-1===f)return null==this._labels[b]?d?this._labels[b]=this.duration()+c:c:this._labels[b]+c;c=parseInt(b.charAt(f-1)+"1",10)*Number(b.substr(f+1)),b=f>1?this._parseTimeOrLabel(b.substr(0,f-1),0,d):this.duration()}return Number(b)+c},q.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoAndPlay=function(a,b){return this.play(a,b)},q.gotoAndStop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._dirty?this.totalDuration():this._totalDuration,o=this._time,p=this._startTime,q=this._timeScale,r=this._paused;if(a>=n-1e-7)this._totalTime=this._time=n,this._reversed||this._hasPausedChild()||(f=!0,h="onComplete",i=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==a&&this._first&&(i=!0,this._rawPrevTime>e&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=n+1e-4;else if(1e-7>a)if(this._totalTime=this._time=0,(0!==o||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>a&&this._rawPrevTime>=0))&&(h="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(i=f=!0,h="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(i=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!b){if(a>=o)for(d=this._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(l=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(this._time=a=l._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=a}if(this._time!==o&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==o&&a>0&&(this._active=!0),0===o&&this.vars.onStart&&(0===this._time&&this._duration||b||this._callback("onStart")),m=this._time,m>=o)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._startTime<=o&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}this._onUpdate&&(b||(j.length&&k(),this._callback("onUpdate"))),h&&(this._gc||(p===this._startTime||q!==this._timeScale)&&(0===this._time||n>=this.totalDuration())&&(f&&(j.length&&k(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},q.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime<e||(g instanceof c?b!==!1&&(f[h++]=g):(d!==!1&&(f[h++]=g),a!==!1&&(f=f.concat(g.getChildren(!0,b,d)),h=f.length))),g=g._next;return f},q.getTweensOf=function(a,b){var d,e,f=this._gc,g=[],h=0;for(f&&this._enabled(!0,!0),d=c.getTweensOf(a),e=d.length;--e>-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},q.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalDuration(),e._startTime>f&&this._sortChildren&&!e._paused?this.add(e,e._startTime-e._delay):f=e._startTime,e._startTime<0&&!e._paused&&(d-=e._startTime,this._timeline.smoothChildTiming&&(this._startTime+=e._startTime/this._timeScale),this.shiftChildren(-e._startTime,!1,-9999999999),f=0),c=e._startTime+e._totalDuration/e._timeScale,c>d&&(d=c),e=b;this._duration=this._totalDuration=d,this._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._startTime===d&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},q.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="1.19.0",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time!==f.target.time()&&d===f.duration()&&f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale),c.onStart&&f._callback("onStart")},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._dirty?this.totalDuration():this._totalDuration,p=this._duration,q=this._time,r=this._totalTime,s=this._startTime,t=this._timeScale,u=this._rawPrevTime,v=this._paused,w=this._cycle;if(a>=o-1e-7)this._locked||(this._totalTime=o,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(f=!0,j="onComplete",k=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=p,a=p+1e-4);else if(1e-7>a)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==q||0===p&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(k=f=!0,j="onReverseComplete"):u>=0&&this._first&&(k=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=p||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===p&&0>u&&(k=!0),this._time=this._rawPrevTime=a,this._locked||(this._totalTime=a,0!==this._repeat&&(l=p+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&a>=r&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=p-this._time),this._time>p?(this._time=p,a=p+1e-4):this._time<0?this._time=a=0:a=this._time)),this._hasPause&&!this._forcingPlayhead&&!b){if(a=this._time,a>=q)for(d=this._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(m=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&(this._time=a=m._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==w&&!this._locked){var x=this._yoyo&&0!==(1&w),y=x===(this._yoyo&&0!==(1&this._cycle)),z=this._totalTime,A=this._cycle,B=this._rawPrevTime,C=this._time;if(this._totalTime=w*p,this._cycle<w?x=!x:this._totalTime+=p,this._time=q,this._rawPrevTime=0===p?u-1e-4:u,this._cycle=w,this._locked=!0,q=x?0:p,this.render(q,b,0===p),b||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),q!==this._time)return;if(y&&(q=x?p+1e-4:-1e-4,this.render(q,!0,!1)),this._locked=!1,this._paused&&!v)return;this._time=C,this._totalTime=z,this._cycle=A,this._rawPrevTime=B}if(!(this._time!==q&&this._first||c||k||m))return void(r!==this._totalTime&&this._onUpdate&&(b||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==r&&a>0&&(this._active=!0),0===r&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||b||this._callback("onStart")),n=this._time,n>=q)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._startTime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>this._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}this._onUpdate&&(b||(g.length&&h(),this._callback("onUpdate"))),j&&(this._locked||this._gc||(s===this._startTime||t!==this._timeScale)&&(0===this._time||o>=this.totalDuration())&&(f&&(g.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getActive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getChildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].time<a)return b[c].name;return null},k.getLabelsArray=function(){var a,b=[],c=0;for(a in this._labels)b[c++]={time:this._labels[a],name:a};return b.sort(function(a,b){return a.time-b.time}),b},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},k.totalDuration=function(b){return arguments.length?-1!==this._repeat&&b?this.timeScale(this.totalDuration()/b):this:(this._dirty&&(a.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+1e-8)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=_gsScope._gsDefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=f[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[-1>h?0:1][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length<q+1)throw"invalid Bezier data";for(m in a[0])s.push(m);for(j=s.length;--j>-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autoRotate||c.vars.orientToBezier;this._autoRotate=n?n instanceof Array?n:[["x","y","rotation",n===!0?0:Number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):m(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=o(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(n=this._autoRotate)for(this._initialRotations=[],n[0]instanceof Array||(this._autoRotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialRotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteProps.push(d)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b<this._l1&&e>0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&b<this._l1?this._l1=0:e++,this._l2=k[e],this._li=e,this._curSeg=l=this._segments[e],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(c=e,b-=this._l1,e=this._si,b>this._s2&&e<l.length-1){for(j=l.length-1;j>e&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b<this._s1&&e>0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&b<this._s1?this._s1=0:e++,this._s2=l[e],this._si=e}h=(e+(b-this._s1)/(this._s2-this._s1))*this._prec||0}else c=0>b?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierThrough=l,p.cubicToQuadratic=i,p._autoCSS=!0,p.quadraticToCubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssRegister=function(){var a=f.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,g._overwriteProps.push("rotation")),i._onInitTween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteProps,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autoRotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.19.0",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N=document,O=function(a){return N.createElementNS?N.createElementNS("http://www.w3.org/1999/xhtml",a):N.createElement(a)},P=O("div"),Q=O("img"),R=g._internals={_specialProps:i},S=navigator.userAgent,T=function(){var a=S.indexOf("Android"),b=O("a");return m=-1!==S.indexOf("Safari")&&-1===S.indexOf("Chrome")&&(-1===a||Number(S.substr(a+8,1))>3),o=m&&Number(S.substr(S.indexOf("Version/")+8,1))<6,n=-1!==S.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(S)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(S))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),U=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},V=function(a){window.console&&console.log(a)},W="",X="",Y=function(a,b){b=b||P;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(X=3===d?"ms":c[d],W="-"+X.toLowerCase()+"-",X+a):null},Z=N.defaultView?N.defaultView.getComputedStyle:function(){},$=g.getStyle=function(a,b,c,d,e){var f;return T||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||Z(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):U(a)},_=R.convertToPixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=P.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+$(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||N.body,i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(P),h=parseFloat(P[k?"offsetWidth":"offsetHeight"]),l.removeChild(P),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=_(a,c,d,e,!0))}return o&&(h/=100),n?-h:h},aa=R.calculateOffset=function(a,b,c){if("absolute"!==$(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=$(a,"margin"+d,c);return a["offset"+d]-(_(a,b,parseFloat(e),e.replace(w,""))||0)},ba=function(a,b){var c,d,e,f={};if(b=b||Z(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Ca===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ba===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return T||(f.opacity=U(a)),d=Pa(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Ea&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},ca=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:aa(a,g),void 0!==j[g]&&(h=new ra(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},da={width:["Left","Right"],height:["Top","Bottom"]},ea=["marginLeft","marginRight","marginTop","marginBottom"],fa=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||Z(a))[b]||0;if(a.getBBox&&Ma(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=da[b],f=e.length;for(c=c||Z(a,null);--f>-1;)d-=parseFloat($(a,"padding"+e[f],c,!0))||0,d-=parseFloat($(a,"border"+e[f]+"Width",c,!0))||0;return d},ga=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c<d.length;c++)a.push(ga(d[c]));return a.join(",")}return null==f?f="center"===e?"50%":"0":"center"===f&&(f="50%"),("center"===e||isNaN(parseFloat(e))&&-1===(e+"").indexOf("="))&&(e="50%"),a=e+" "+f+(d.length>2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ha=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ja=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},ka={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},la=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},ma=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),ka[a])c=ka[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(a[3])),c[0]=la(g+1/3,d,e),c[1]=la(g,d,e),c[2]=la(g-1/3,d,e);else c=a.match(s)||ka.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=ka.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},na=function(a,b){var c,d,e,f=a.match(oa)||[],g=0,h=f.length?"":a;for(c=0;c<f.length;c++)d=f[c],e=a.substr(g,a.indexOf(d,g)-g),g+=e.length+d.length,d=ma(d,b),3===d.length&&d.push(1),h+=e+(b?"hsla("+d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:"rgba("+d.join(","))+")";return h+a.substr(g)},oa="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(j in ka)oa+="|"+j+"\\b";oa=new RegExp(oa+")","gi"),g.colorStringFilter=function(a){var b,c=a[0]+a[1];oa.test(c)&&(b=-1!==c.indexOf("hsl(")||-1!==c.indexOf("hsla("),a[0]=na(a[0],b),a[1]=na(a[1],b)),oa.lastIndex=0},b.defaultStringFilter||(b.defaultStringFilter=g.colorStringFilter);var pa=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(oa)||[""])[0]:"",g=a.split(f).join("").match(u)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;n<o.length;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(oa)||[f])[0],m=a.split(b).join("").match(u)||[],n=m.length,k>n--)for(;++n<k;)m[n]=c?m[(n-1)/2|0]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(f=a.replace(I,"|").split("|"),m=0;m<f.length;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(u)||[],m=b.length,k>m--)for(;++m<k;)b[m]=c?b[(m-1)/2|0]:g[m];return h+b.join(j)+i}:function(a){return a}},qa=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},ra=(R._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=Math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d<c.l;d++)e+=c["xn"+d]+c["xs"+(d+1)];c[f]=e}}else c[f]=c.s+c.xs0;i=i._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),sa=(R._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=M;for(c._transform=null,M=b,d=k=c.parse(a,b,d,e),M=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(d.type<=1&&(h=d.p,n[h]=d.s+d.c,m[h]=d.s,f||(j=new ra(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new ra(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},R.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof sa||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ta=function(a,b,c,d,e,f){var g=new sa(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},ua=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new sa(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&oa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" "),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,oa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m],x=parseFloat(p),x||0===x)h.appendXtra("",x,ha(u,x),u.replace(t,""),G&&-1!==u.indexOf("px"),!0);else if(e&&oa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&T,p=ma(p,C),u=ma(u,C),y=p.length+u.length>6,y&&!T&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(T||(y=!1),C?h.appendXtra(y?"hsla(":"hsl(",p[0],ha(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ha(u[1],p[1]),"%,",!1).appendXtra("",p[2],ha(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(y?"rgba(":"rgb(",p[0],u[0]-p[0],",",!0,!0).appendXtra("",p[1],u[1]-p[1],",",!0).appendXtra("",p[2],u[2]-p[2],y?",":B,!0),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),oa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n<v.length;n++)A=v[n],z=p.indexOf(A,o),h.appendXtra(p.substr(o,z-o),Number(A),ha(w[n],A),"",G&&"px"===p.substr(z+A.length,2),0===n),o=z+A.length;h["xs"+h.l]+=p.substr(o)}else h["xs"+h.l]+=h.l||h["xs"+h.l]?" "+u:u;if(-1!==d.indexOf("=")&&h.data){for(B=h.xs0+h.data.s,m=1;m<h.l;m++)B+=h["xs"+m]+h.data["xn"+m];h.e=B+h["xs"+m]}return h.l||(h.type=-1,h.xs0=h.e),h.xfirst||h},va=9;for(j=sa.prototype,j.l=j.pr=0;--va>0;)j["xn"+va]=0,j["xs"+va]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new sa(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var wa=function(a,b){b=b||{},this.p=b.prefix?Y(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||pa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},xa=R._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;d<f.length;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new wa(f[d],b)},ya=R._registerPluginProp=function(a){if(!i[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";xa(a,{parser:function(a,c,d,e,f,g,j){var k=h.com.greensock.plugins[b];return k?(k._cssRegister(),i[d].parse(a,c,d,e,f,g,j)):(V("Error: "+b+" js file not loaded."),f)}})}};j=wa.prototype,j.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(I.test(c)||I.test(b)?(h=b.replace(I,"|").split("|"),i=c.replace(I,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return ua(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format($(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){xa(a,{parser:function(a,d,e,f,g,h,i){var j=new sa(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=m||n;var za,Aa="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ba=Y("transform"),Ca=W+"transform",Da=Y("transformOrigin"),Ea=null!==Y("perspective"),Fa=R.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Ea?g.defaultForce3D||"auto":!1},Ga=window.SVGElement,Ha=function(a,b,c){var d,e=N.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ia=N.documentElement,Ja=function(){var a,b,c,d=p||/Android/i.test(S)&&!window.chrome;return N.createElementNS&&!d&&(a=Ha("svg",Ia),b=Ha("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Da]="50% 50%",b.style[Ba]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Ea),Ia.removeChild(a)),d}(),Ka=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Oa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),b=ga(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Na&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},La=function(a){try{return a.getBBox()}catch(a){}},Ma=function(a){return!!(Ga&&a.getBBox&&a.getCTM&&La(a)&&(!a.parentNode||a.parentNode.getBBox&&a.parentNode.getCTM))},Na=[1,0,0,1,0,0],Oa=function(a,b){var c,d,e,f,g,h,i=a._gsTransform||new Fa,j=1e5,k=a.style;if(Ba?d=$(a,Ca,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,c&&Ba&&((h="none"===Z(a).display)||!a.parentNode)&&(h&&(f=k.display,k.display="block"),a.parentNode||(g=1,Ia.appendChild(a)),d=$(a,Ca,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&Ta(k,"display"),g&&Ia.removeChild(a)),(i.svg||a.getBBox&&Ma(a))&&(c&&-1!==(k[Ba]+"").indexOf("matrix")&&(d=k[Ba],c=0),e=a.getAttribute("transform"),c&&e&&(-1!==e.indexOf("matrix")?(d=e,c=0):-1!==e.indexOf("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return Na;for(e=(d||"").match(s)||[],va=e.length;--va>-1;)f=Number(e[va]),e[va]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Pa=R.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Fa:new Fa,n=m.scaleX<0,o=2e-5,p=1e5,q=Ea?parseFloat($(a,Da,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getBBox||!Ma(a)),m.svg&&(Ka(a,$(a,Da,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),za=g.useSVGTransformAttr||Ja),f=Oa(a),f!==Na){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),x=x*v+B*w,t=y*v+C*w,C=y*-w+C*v,D=z*-w+D*v,y=t),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),m.scaleX=(Math.sqrt(x*x+y*y)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+G*G)*p+.5|0)/p,m.scaleZ=(Math.sqrt(D*D+H*H)*p+.5|0)/p,m.rotationX||m.rotationY?m.skewX=0:(m.skewX=B||C?Math.atan2(B,C)*L+m.rotation:m.skewX||0,Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180))),m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Ea||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,Math.abs(l)>90&&Math.abs(l)<270&&(n?(i*=-1,l+=0>=k?180:-180,k+=0>=k?180:-180):(j*=-1,l+=0>=l?180:-180)),m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Ea&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}m.zOrigin=q;for(h in m)m[h]<o&&m[h]>-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(za&&a.style[Ba]?b.delayedCall(.001,function(){Ta(a.style,Ba)}):!za&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Qa=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),va=0;4>va;va++)z=ea[va],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):_(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>va?-d.ieOffsetX:-d.ieOffsetY:2>va?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===va||2===va?1:B)))+"px"}}},Ra=R.set3DTransformRatio=R.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D;if(((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||za&&L||!Ea)return void(B||z.skewX||L?(B*=K,x=z.skewX*K,y=1e5,b=Math.cos(B)*E,e=Math.sin(B)*E,c=Math.sin(B-x)*-F,f=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(s=Math.tan(x-z.skewY*K),s=Math.sqrt(1+s*s),c*=s,f*=s,z.skewY&&(s=Math.tan(z.skewY*K),s=Math.sqrt(1+s*s),b*=s,e*=s)),L&&(H+=z.xOrigin-(z.xOrigin*b+z.yOrigin*c)+z.xOffset,I+=z.yOrigin-(z.xOrigin*e+z.yOrigin*f)+z.yOffset,za&&(z.xPercent||z.yPercent)&&(p=this.t.getBBox(),H+=.01*z.xPercent*p.width,I+=.01*z.yPercent*p.height),p=1e-6,p>H&&H>-p&&(H=0),p>I&&I>-p&&(I=0)),u=(b*y|0)/y+","+(e*y|0)/y+","+(c*y|0)/y+","+(f*y|0)/y+","+H+","+I+")",L&&za?this.t.setAttribute("transform","matrix("+u):A[Ba]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ba]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(p=1e-4,p>E&&E>-p&&(E=G=2e-5),p>F&&F>-p&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||z.skewX)B*=K,q=b=Math.cos(B),r=e=Math.sin(B),z.skewX&&(B-=z.skewX*K,q=Math.cos(B),r=Math.sin(B),"simple"===z.skewType&&(s=Math.tan((z.skewX-z.skewY)*K),s=Math.sqrt(1+s*s),q*=s,r*=s,z.skewY&&(s=Math.tan(z.skewY*K),s=Math.sqrt(1+s*s),b*=s,e*=s))),c=-r,f=q;else{if(!(D||C||1!==G||M||L))return void(A[Ba]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));b=f=1,c=e=0}j=1,d=g=h=i=k=l=0,m=M?-1/M:0,o=z.zOrigin,p=1e-6,v=",",w="0",B=D*K,B&&(q=Math.cos(B),r=Math.sin(B),h=-r,k=m*-r,d=b*r,g=e*r,j=q,m*=q,b*=q,e*=q),B=C*K,B&&(q=Math.cos(B),r=Math.sin(B),s=c*q+d*r,t=f*q+g*r,i=j*r,l=m*r,d=c*-r+d*q,g=f*-r+g*q,j*=q,m*=q,c=s,f=t),1!==G&&(d*=G,g*=G,j*=G,m*=G),1!==F&&(c*=F,f*=F,i*=F,l*=F),1!==E&&(b*=E,e*=E,h*=E,k*=E),(o||L)&&(o&&(H+=d*-o,I+=g*-o,J+=j*-o+o),L&&(H+=z.xOrigin-(z.xOrigin*b+z.yOrigin*c)+z.xOffset,I+=z.yOrigin-(z.xOrigin*e+z.yOrigin*f)+z.yOffset),p>H&&H>-p&&(H=w),p>I&&I>-p&&(I=w),p>J&&J>-p&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(p>b&&b>-p?w:b)+v+(p>e&&e>-p?w:e)+v+(p>h&&h>-p?w:h),u+=v+(p>k&&k>-p?w:k)+v+(p>c&&c>-p?w:c)+v+(p>f&&f>-p?w:f),C||D||1!==G?(u+=v+(p>i&&i>-p?w:i)+v+(p>l&&l>-p?w:l)+v+(p>d&&d>-p?w:d),u+=v+(p>g&&g>-p?w:g)+v+(p>j&&j>-p?w:j)+v+(p>m&&m>-p?w:m)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ba]=u};j=Fa.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,xa("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j;"function"==typeof i[c]&&(j=i[c],i[c]=b);var k,l,m,n,o,p,s,t,u,v=a._gsTransform,w=a.style,x=1e-6,y=Aa.length,z=i,A={},B="transformOrigin",C=Pa(a,e,!0,z.parseTransform),D=z.transform&&("function"==typeof z.transform?z.transform(r,q):z.transform);if(d._transform=C,D&&"string"==typeof D&&Ba)l=P.style,l[Ba]=D,l.display="block",l.position="absolute",N.body.appendChild(P),k=Pa(P,null,!1),C.svg&&(p=C.xOrigin,s=C.yOrigin,k.x-=C.xOffset,k.y-=C.yOffset,(z.transformOrigin||z.svgOrigin)&&(D={},Ka(a,ga(z.transformOrigin),D,z.svgOrigin,z.smoothOrigin,!0),p=D.xOrigin,s=D.yOrigin,k.x-=D.xOffset-C.xOffset,k.y-=D.yOffset-C.yOffset),(p||s)&&(t=Oa(P,!0),k.x-=p-(p*t[0]+s*t[2]),k.y-=s-(p*t[1]+s*t[3]))),N.body.removeChild(P),k.perspective||(k.perspective=C.perspective),null!=z.xPercent&&(k.xPercent=ia(z.xPercent,C.xPercent)),null!=z.yPercent&&(k.yPercent=ia(z.yPercent,C.yPercent));else if("object"==typeof z){if(k={scaleX:ia(null!=z.scaleX?z.scaleX:z.scale,C.scaleX),scaleY:ia(null!=z.scaleY?z.scaleY:z.scale,C.scaleY),scaleZ:ia(z.scaleZ,C.scaleZ),x:ia(z.x,C.x),y:ia(z.y,C.y),z:ia(z.z,C.z),xPercent:ia(z.xPercent,C.xPercent),yPercent:ia(z.yPercent,C.yPercent),perspective:ia(z.transformPerspective,C.perspective)},o=z.directionalRotation,null!=o)if("object"==typeof o)for(l in o)z[l]=o[l];else z.rotation=o;"string"==typeof z.x&&-1!==z.x.indexOf("%")&&(k.x=0,k.xPercent=ia(z.x,C.xPercent)),"string"==typeof z.y&&-1!==z.y.indexOf("%")&&(k.y=0,k.yPercent=ia(z.y,C.yPercent)),k.rotation=ja("rotation"in z?z.rotation:"shortRotation"in z?z.shortRotation+"_short":"rotationZ"in z?z.rotationZ:C.rotation-C.skewY,C.rotation-C.skewY,"rotation",A),Ea&&(k.rotationX=ja("rotationX"in z?z.rotationX:"shortRotationX"in z?z.shortRotationX+"_short":C.rotationX||0,C.rotationX,"rotationX",A),k.rotationY=ja("rotationY"in z?z.rotationY:"shortRotationY"in z?z.shortRotationY+"_short":C.rotationY||0,C.rotationY,"rotationY",A)),k.skewX=ja(z.skewX,C.skewX-C.skewY),(k.skewY=ja(z.skewY,C.skewY))&&(k.skewX+=k.skewY,k.rotation+=k.skewY)}for(Ea&&null!=z.force3D&&(C.force3D=z.force3D,n=!0),C.skewType=z.skewType||C.skewType||g.defaultSkewType,m=C.force3D||C.z||C.rotationX||C.rotationY||k.z||k.rotationX||k.rotationY||k.perspective,m||null==z.scale||(k.scaleZ=1);--y>-1;)u=Aa[y],D=k[u]-C[u],(D>x||-x>D||null!=z[u]||null!=M[u])&&(n=!0,f=new sa(C,u,C[u],D,f),u in A&&(f.e=A[u]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return D=z.transformOrigin,C.svg&&(D||z.svgOrigin)&&(p=C.xOffset,s=C.yOffset,Ka(a,ga(D),k,z.svgOrigin,z.smoothOrigin),f=ta(C,"xOrigin",(v?C:k).xOrigin,k.xOrigin,f,B),f=ta(C,"yOrigin",(v?C:k).yOrigin,k.yOrigin,f,B),(p!==C.xOffset||s!==C.yOffset)&&(f=ta(C,"xOffset",v?p:C.xOffset,C.xOffset,f,B),f=ta(C,"yOffset",v?s:C.yOffset,C.yOffset,f,B)),D=za?null:"0px 0px"),(D||Ea&&m&&C.zOrigin)&&(Ba?(n=!0,u=Da,D=(D||$(a,u,e,!1,"50% 50%"))+"",f=new sa(w,u,0,0,f,-1,B),f.b=w[u],f.plugin=h,Ea?(l=C.zOrigin,D=D.split(" "),C.zOrigin=(D.length>2&&(0===l||"0px"!==D[2])?parseFloat(D[2]):l)||0,f.xs0=f.e=D[0]+" "+(D[1]||"50%")+" 0px",f=new sa(C,"zOrigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=C.zOrigin):f.xs0=f.e=D):ga(D+"",C)),n&&(d._transformType=C.svg&&za||!m&&3!==this._transformType?2:3),j&&(i[c]=j),f},prefix:!0}),xa("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),xa("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;j<y.length;j++)this.p.indexOf("border")&&(y[j]=Y(y[j])),m=l=$(a,y[j],e,!1,"0px"),-1!==m.indexOf(" ")&&(l=m.split(" "),m=l[0],l=l[1]),n=k=i[j],o=parseFloat(m),t=m.substr((o+"").length),u="="===n.charAt(1),u?(p=parseInt(n.charAt(0)+"1",10),n=n.substr(2),p*=parseFloat(n),s=n.substr((p+"").length-(0>p?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=_(a,"borderLeft",o,t),w=_(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=_(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=ua(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:pa("0px 0px 0px 0px",!1,!0)}),xa("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return ua(a.style,c,this.format($(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:pa("0px 0px",!1,!0)}),xa("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||Z(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=$(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),Q.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-Q.width:a.offsetHeight-Q.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ga}),xa("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="",ga(-1===a.indexOf(" ")?a+" "+a:a)}}),xa("perspective",{defaultValue:"0px",prefix:!0}),xa("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),xa("transformStyle",{prefix:!0}),xa("backfaceVisibility",{prefix:!0}),xa("userSelect",{prefix:!0}),xa("margin",{parser:qa("marginTop,marginRight,marginBottom,marginLeft")}),xa("padding",{parser:qa("paddingTop,paddingRight,paddingBottom,paddingLeft")}),xa("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format($(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),xa("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),xa("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),xa("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=$(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/_(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+$(a,"borderTopStyle",e,!1,"solid")+" "+$(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(oa)||["#000"])[0]}}),xa("borderWidth",{parser:qa("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),xa("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new sa(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Sa=function(a){var b,c=this.t,d=c.filter||$(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!$(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};xa("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat($(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===$(a,"visibility",e)&&0!==b&&(h=0),T?f=new sa(i,"opacity",h,b-h,f):(f=new sa(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Sa),j&&(f=new sa(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Ta=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Ua=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Ta(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};xa("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new sa(a,d,0,0,g,2),g.setRatio=Ua,g.pr=-11,c=!0,g.b=o,k=ba(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=ca(a,k,ba(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Va=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Da:i[c].p),Ta(g,c);e&&(Ta(g,Ba),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(xa("clearProps",{parser:function(a,b,d,e,f){return f=new sa(a,d,0,0,f,2),f.setRatio=Va,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),va=j.length;va--;)ya(j[va]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=Z(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=$(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ba(a,e),A.cssText=t+";"+b,n=ca(a,n,ba(a)).difs,!T&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Ba?m&&(l=!0,""===A.zIndex&&(w=$(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new sa(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ba?Ra:Qa,x.data=this._transform||Pa(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b)n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g],h?c=h.parse(a,n,g,this,c,f,b):(m=$(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=ma(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=ua(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=ua(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=fa(a,g,e),o="px"):"left"===g||"top"===g?(j=aa(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&j&&(j=_(a,g,j,o),"%"===p?(j/=_(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=_(a,g,1,p):"px"!==p&&(l=_(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new sa(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):V("invalid "+g+" tween value: "+b[g]):(c=new sa(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))),f&&c&&!c.plugin&&(c.plugin=f);return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;){if(2!==e.type)if(e.r&&-1!==e.type)if(b=Math.round(e.s+e.c),e.type){if(1===e.type){for(d=e.l,c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}}else e.t[e.p]=b+e.xs0;else e.t[e.p]=e.e;else e.setRatio(a);e=e._next}},j._enableTransforms=function(a){this._transform=this._transform||Pa(this._target,e,!0),this._transformType=this._transform.svg&&za||!a&&3!==this._transformType?2:3};var Wa=function(a){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};j._addLazySet=function(a,b,c){var d=this._firstPT=new sa(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Wa,d.data=this},j._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},j._mod=function(a){for(var b=this._firstPT;b;)"function"==typeof a[b.p]&&a[b.p]===Math.round&&(b.r=1),b=b._next},j._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}for(b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),c=this._firstPT;c;)c.plugin&&c.plugin!==d&&c.plugin._kill&&(c.plugin._kill(b),d=c.plugin),c=c._next;return a.prototype._kill.call(this,f)};var Xa=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)Xa(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ba(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Xa(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Xa(a,k,m),i.render(c,!0,!0),Xa(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=ca(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){for(;a;)a.f||a.blob||(a.m=Math.round),a=a._next},c=a.prototype;c._onInitAllProps=function(){for(var a,c,d,e=this._tween,f=e.vars.roundProps.join?e.vars.roundProps:e.vars.roundProps.split(","),g=f.length,h={},i=e._propLookup.roundProps;--g>-1;)h[f[g]]=Math.round;for(g=f.length;--g>-1;)for(a=f[g],c=e._firstPT;c;)d=c._next,c.pg?c.t._mod(h):c.n===a&&(2===c.f&&c.t?b(c.t._firstPT):(this._add(c.t,a,c.s,c.c),d&&(d._prev=c._prev),c._prev?c._prev._next=d:e._firstPT===c&&(e._firstPT=d),c._next=c._prev=null,e._propLookup[a]=i)),c=d;return!1},c._add=function(a,b,c,d){this._addTween(a,b,c,c+d,b,Math.round),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setAttribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addTween(a,"setAttribute",a.getAttribute(e)+"",f+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useRadians===!0?2*Math.PI:360,l=1e-6;for(e in b)"useRadians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexOf("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e=_gsScope.GreenSockGlobals||_gsScope,f=e.com.greensock,g=2*Math.PI,h=Math.PI/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},o=l("Back",n("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),d("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),d("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return-Math.cos(a*h)+1}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c={},d=a.GreenSockGlobals=a.GreenSockGlobals||a;if(!d.TweenLite){var e,f,g,h,i,j=function(a){var b,c=a.split("."),e=d;for(b=0;b<c.length;b++)e[c[b]]=e=e[c[b]]||{};return e},k=j("com.greensock"),l=1e-10,m=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},n=function(){},o=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),p={},q=function(e,f,g,h){this.sc=p[e]?p[e].sc:[],p[e]=this,this.gsClass=null,this.func=g;var i=[];this.check=function(k){for(var l,m,n,o,r,s=f.length,t=s;--s>-1;)(l=p[f[s]]||new q(f[s],[])).gsClass?(i[s]=l.gsClass,t--):k&&l.sc.push(this);if(0===t&&g){if(m=("com.greensock."+e).split("."),n=m.pop(),o=j(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(d[n]=c[n]=o,r="undefined"!=typeof module&&module.exports,!r&&"function"==typeof define&&define.amd)define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+e.split(".").pop(),[],function(){return o});else if(r)if(e===b){module.exports=c[b]=o;for(s in c)o[s]=c[s]}else c[b]&&(c[b][n]=o);for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},r=a._gsDefine=function(a,b,c,d){return new q(a,b,c,d)},s=k._class=function(a,b,c){return b=b||function(){},r(a,[],function(){return b},c),b};r.globals=d;var t=[0,0,1,1],u=s("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?t.concat(b):t},!0),v=u.map={},w=u.register=function(a,b,c,d){for(var e,f,g,h,i=b.split(","),j=i.length,l=(c||"easeIn,easeOut,easeInOut").split(",");--j>-1;)for(f=i[j],e=d?s("easing."+f,null,!0):k.easing[f]||{},g=l.length;--g>-1;)h=l[g],v[f+"."+h]=v[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(g=u.prototype,g._calcEnd=!1,g.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},e=["Linear","Quad","Cubic","Quart","Quint,Strong"],f=e.length;--f>-1;)g=e[f]+",Power"+f,w(new u(null,null,1,f),g,"easeOut",!0),w(new u(null,null,2,f),g,"easeIn"+(0===f?",easeNone":"")),w(new u(null,null,3,f),g,"easeInOut");v.linear=k.easing.Linear.easeIn,v.swing=k.easing.Quad.easeInOut;var x=s("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});g=x.prototype,g.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,j=this._listeners[a],k=0;for(this!==h||i||h.wake(),null==j&&(this._listeners[a]=j=[]),g=j.length;--g>-1;)f=j[g],f.c===b&&f.s===c?j.splice(g,1):0===k&&f.pr<e&&(k=g+1);j.splice(k,0,{c:b,s:c,up:d,pr:e})},g.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return void d.splice(c,1)},g.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var y=a.requestAnimationFrame,z=a.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},B=A();for(e=["ms","moz","webkit","o"],f=e.length;--f>-1&&!y;)y=a[e[f]+"RequestAnimationFrame"],z=a[e[f]+"CancelAnimationFrame"]||a[e[f]+"CancelRequestAnimationFrame"];s("Ticker",function(a,b){var c,d,e,f,g,j=this,k=A(),m=b!==!1&&y?"auto":!1,o=500,p=33,q="tick",r=function(a){var b,h,i=A()-B;i>o&&(k+=i-p),B+=i,j.time=(B-k)/1e3,b=j.time-g,(!c||b>0||a===!0)&&(j.frame++,g+=b+(b>=f?.004:f-b),h=!0),a!==!0&&(e=d(r)),h&&j.dispatchEvent(q)};x.call(j),j.time=j.frame=0,j.tick=function(){r(!0)},j.lagSmoothing=function(a,b){o=a||1/l,p=Math.min(b,o,0)},j.sleep=function(){null!=e&&(m&&z?z(e):clearTimeout(e),d=n,e=null,j===h&&(i=!1))},j.wake=function(a){null!==e?j.sleep():a?k+=-B+(B=A()):j.frame>10&&(B=A()-o+5),d=0===c?n:m&&y?y:function(a){return setTimeout(a,1e3*(g-j.time)+1|0)},j===h&&(i=!0),r(2)},j.fps=function(a){return arguments.length?(c=a,f=1/(c||60),g=this.time+f,void j.wake()):c},j.useRAF=function(a){return arguments.length?(j.sleep(),m=a,void j.fps(c)):m},j.fps(a),setTimeout(function(){"auto"===m&&j.frame<5&&"hidden"!==document.visibilityState&&j.useRAF(!1)},1500)}),g=k.Ticker.prototype=new k.events.EventDispatcher,g.constructor=k.Ticker;var C=s("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,V){i||h.wake();var c=this.vars.useFrames?U:V;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});h=C.ticker=new k.Ticker,g=C.prototype,g._dirty=g._gc=g._initted=g._paused=!1,g._totalTime=g._time=0,g._rawPrevTime=-1,g._next=g._last=g._onUpdate=g._timeline=g.timeline=null,g._paused=!1;var D=function(){i&&A()-B>2e3&&h.wake(),setTimeout(D,2e3)};D(),g.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},g.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},g.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},g.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},g.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},g.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},g.render=function(a,b,c){},g.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},g.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime())>=c&&a<c+this.totalDuration()/this._timeScale},g._enabled=function(a,b){return i||h.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},g._kill=function(a,b){return this._enabled(!1,!1)},g.kill=function(a,b){return this._kill(a,b),this},g._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},g._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},g._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},g.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=o(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},g.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},g.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},g.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},g.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(a>this._duration?this._duration:a,b)):this._time},g.totalTime=function(a,b,c){if(i||h.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(I.length&&X(),this.render(a,b,!1),I.length&&X())}return this},g.progress=g.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},g.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},g.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},g.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||l,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},g.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},g.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(i||a||h.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var E=s("core.SimpleTimeline",function(a){C.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});g=E.prototype=new C,g.constructor=E,g.kill()._gc=!1,g._first=g._last=g._recent=null,g._sortChildren=!1,g.add=g.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},g._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},g.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},g.rawTime=function(){return i||h.wake(),this._totalTime};var F=s("TweenLite",function(b,c,d){if(C.call(this,c,d),this.render=F.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:F.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?T[F.defaultOverwrite]:"number"==typeof i?i>>0:T[i],(h||b instanceof Array||b.push&&o(b))&&"number"!=typeof b[0])for(this._targets=g=m(b),this._propLookup=[],this._siblings=[],e=0;e<g.length;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(m(f))):(this._siblings[e]=Y(f,this,!1),1===i&&this._siblings[e].length>1&&$(f,this,null,1,this._siblings[e])):(f=g[e--]=F.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=Y(b,this,!1),1===i&&this._siblings.length>1&&$(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-l,this.render(Math.min(0,-this._delay)))},!0),G=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},H=function(a,b){var c,d={};for(c in a)S[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!P[c]||P[c]&&P[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};g=F.prototype=new C,g.constructor=F,g.kill()._gc=!1,g.ratio=0,g._firstPT=g._targets=g._overwrittenProps=g._startAt=null,g._notifyPluginsOfEnabled=g._lazy=!1,F.version="1.19.0",F.defaultEase=g._ease=new u(null,null,1,1),F.defaultOverwrite="auto",F.ticker=h,F.autoSleep=120,F.lagSmoothing=function(a,b){h.lagSmoothing(a,b)},F.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(F.selector=c,c(b)):"undefined"==typeof document?b:document.querySelectorAll?document.querySelectorAll(b):document.getElementById("#"===b.charAt(0)?b.substr(1):b)};var I=[],J={},K=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},M=function(a,b,c,d){var e,f,g,h,i,j,k,l=[a,b],m=0,n="",o=0;for(l.start=a,c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(K)||[],f=b.match(K)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=L,l},N=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k,l="get"===c?a[b]:c,m=typeof a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:l,f:"function"===m,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-l||0};return"number"!==m&&("function"===m&&"get"===c&&(k=b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),o.s=l=g?a[k](g):a[k]()),"string"==typeof l&&(g||isNaN(l))?(o.fp=g,j=M(l,d,h||F.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):n||(o.s=parseFloat(l),o.c=parseFloat(d)-o.s||0)),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},O=F._internals={isArray:o,isSelector:G,lazyTweens:I,blobDif:M},P=F._plugins={},Q=O.tweenLookup={},R=0,S=O.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},T={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},U=C._rootFramesTimeline=new E,V=C._rootTimeline=new E,W=30,X=O.lazyRender=function(){var a,b=I.length;for(J={};--b>-1;)a=I[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);I.length=0};V._startTime=h.time,U._startTime=h.frame,V._active=U._active=!0,setTimeout(X,1),C._updateRoot=F.render=function(){var a,b,c;if(I.length&&X(),V.render((h.time-V._startTime)*V._timeScale,!1,!1),U.render((h.frame-U._startTime)*U._timeScale,!1,!1),I.length&&X(),h.frame>=W){W=h.frame+(parseInt(F.autoSleep,10)||120);for(c in Q){for(b=Q[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete Q[c]}if(c=V._first,(!c||c._paused)&&F.autoSleep&&!U._first&&1===h._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||h.sleep()}}},h.addEventListener("tick",C._updateRoot);var Y=function(a,b,c){var d,e,f=a._gsTweenID;if(Q[f||(a._gsTweenID=f="t"+R++)]||(Q[f]={target:a,tweens:[]}),b&&(d=Q[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return Q[f].tweens},Z=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=F.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},$=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+l,m=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||_(b,0,o),0===_(h,j,o)&&(m[n++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2e-10||(m[n++]=h)));for(f=n;--f>-1;)if(h=m[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!Z(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},_=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*l>f-b?l:(f+=a.totalDuration()/a._timeScale/e)>b+l?0:f-b-l};g._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease;if(g.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,this._startAt=F.to(this.target,0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)S[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=F.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof u?k:"function"==typeof k?new u(k,g.easeParams):v[k]||F.defaultEase:F.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&F._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},g._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;J[b._gsTweenID]&&X(),this.vars.css||b.style&&b!==a&&b.nodeType&&P.css&&this.vars.autoCSS!==!1&&H(this.vars,b);for(g in this.vars)if(l=this.vars[g],S[g])l&&(l instanceof Array||l.push&&o(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(P[g]&&(j=new P[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=N.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&$(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(J[b._gsTweenID]=!0),i)},g.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===l&&"isPause"!==this.data)&&j!==a&&(c=!0,j>l&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:l);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==l||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:l)),this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var k=a/i,m=this._easeType,n=this._easePower;(1===m||3===m&&k>=.5)&&(k=1-k),3===m&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===m?this.ratio=1-k:2===m?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,I.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&a!==-1e-4&&this._startAt.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&a!==-1e-4&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===l&&g!==l&&(this._rawPrevTime=0))}},g._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:F.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((o(b)||G(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(F.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!Z(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},g.invalidate=function(){return this._notifyPluginsOfEnabled&&F._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],C.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-l,this.render(Math.min(0,-this._delay))),this},g._enabled=function(a,b){if(i||h.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=Y(d[c],this,!0);else this._siblings=Y(this.target,this,!0)}return C.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?F._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},F.to=function(a,b,c){return new F(a,b,c)},F.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new F(a,b,c)},F.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new F(a,b,d)},F.delayedCall=function(a,b,c,d,e){return new F(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},F.set=function(a,b){return new F(a,0,b)},F.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:F.selector(a)||a;var c,d,e,f;if((o(a)||G(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(F.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=Y(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d},F.killTweensOf=F.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=F.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var aa=s("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=aa.prototype},!0);if(g=aa.prototype,aa.version="1.19.0",aa.API=2,g._firstPT=null,g._addTween=N,g.setRatio=L,g._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},g._mod=g._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},F._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},aa.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===aa.API&&(P[(new a[b])._propName]=a[b]);return!0},r.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=s("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){aa.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new aa(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,aa.activate([g]),g},e=a._gsQueue){for(f=0;f<e.length;f++)e[f]();for(g in p)p[g].func||a.console.log("GSAP encountered missing dependency: "+g)}i=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");
/*
 * SplitType
 * A javascript utility that splits text into individual lines, words, and characters
 * so they can be animated and styled independently.
 * @updated: 6/6/2016
 * @author: Luke Peavey
 * @version: 1.0
 * @license MIT
 */
window.SplitType=function(a,b,c){function r(a){return null!==a&&"object"==typeof a}function s(a){return r(a)&&"number"==typeof a.length&&a.length>0}function t(a){return r(a)&&"[object Object]"===Object.prototype.toString.call(a)}function u(a){return r(a)&&/^(1|3|11)$/.test(a.nodeType)}function v(a){return"string"==typeof a}function w(a,b,c){for(var d=Object(a),e=s(d)?d:t(d)?j(d):[d],f=parseInt(e.length)||0,g=0;g<f;g++)b.call(c,e[g],g,d)}function x(a,b){return a=Object(a),b=Object(b),Object.getOwnPropertyNames(a).reduce(function(c,d){return l(c,d,n(b,d)||n(a,d))},{})}function y(a,b,d){var i,h={};return r(a)&&(i=a[e]||(a[e]=++g),h=f[i]||(f[i]={})),d===c?b===c?h:h[b]:b!==c?(h[b]=d,d):void 0}function z(a){var b=a&&a[e];b&&(delete a[b],delete f[b])}function A(a,d){var e=b.createElement(a);return d===c?e:(w(d,function(a){var b=d[a];if(null!==b)switch(a){case"textContent":e.textContent=b;break;case"innerHTML":e.innerHTML=b;break;case"children":w(b,function(a){u(a)&&e.appendChild(a)});break;default:e.setAttribute(a,b)}}),e)}function B(a){var d,e,f,g,h,j,k,c=[];if(v(a)&&(d=a.trim(),e="#"===d[0]&&!/[^\w]/.test(f=d.slice(1)),a=e?b.getElementById(f):b.querySelectorAll(d)),d||u(a))return u(a)?[a]:i.call(a);if(s(a))for(j=0,g=a.length;j<g;j++)if(s(a[j]))for(k=0,h=a[j].length;k<h;k++)u(a[j][k])&&c.push(a[j][k]);else u(a[j])&&c.push(a[j]);return c}function C(b){var f,t,u,v,x,c=this.settings,d=c.tagName,e="B"+1*new Date+"R",g=c.split,j=g.indexOf("lines")!==-1,k=g.indexOf("words")!==-1,l=g.indexOf("chars")!==-1,m="absolute"===c.position||c.absolute===!0,n=A("div"),q=[],r=[],s=[];if(x=j?A("div"):o(),n.innerHTML=b.innerHTML.replace(/<br\s*\/?>/g," "+e+" "),f=n.textContent.replace(/\s+/g," ").trim(),r=f.split(" ").map(function(a){if(a===e)return x.appendChild(A("br")),null;if(l){var b=a.split("").map(function(a){return v=A(d,{class:c.charClass+" "+c.splitClass,style:"display: inline-block;",textContent:a})});h.apply(s,b)}return k||j?(u=A(d,{class:c.wordClass+" "+c.splitClass,style:"display: inline-block; position:"+(k?"relative":"static;"),children:l?b:null,textContent:l?null:a}),x.appendChild(u)):w(b,function(a){x.appendChild(a)}),x.appendChild(p(" ")),u},this).filter(function(a){return a}),b.innerHTML="",b.appendChild(x),h.apply(this.words,r),h.apply(this.chars,s),m||j){var B,C,D,E,F,G,H,I,J,K,L,z=[];H=y(b).nodes=b.getElementsByTagName(d),I=b.parentElement,J=b.nextElementSibling,K=a.getComputedStyle(b),L=K.textAlign,m&&(E={left:x.offsetLeft,top:x.offsetTop,width:x.offsetWidth},G=b.offsetWidth,F=b.offsetHeight,y(b).cssWidth=b.style.width,y(b).cssHeight=b.style.height),w(H,function(a){if(a!==x){var c,b=a.parentElement===x;j&&b&&(c=y(a).top=a.offsetTop,c!==C&&(C=c,z.push(B=[])),B.push(a)),m&&(y(a).top=c||a.offsetTop,y(a).left=a.offsetLeft,y(a).width=a.offsetWidth,y(a).height=D||(D=a.offsetHeight))}}),I.removeChild(b),j&&(x=o(),q=z.map(function(a){return x.appendChild(t=A(d,{class:c.lineClass+" "+c.splitClass,style:"display: block; text-align:"+L+"; width: 100%;"})),m&&(y(t).type="line",y(t).top=y(a[0]).top,y(t).height=D),w(a,function(a){k?t.appendChild(a):l?i.call(a.children).forEach(function(a){t.appendChild(a)}):t.appendChild(p(a.textContent)),t.appendChild(p(" "))}),t}),b.replaceChild(x,b.firstChild),h.apply(this.lines,q)),m&&(b.style.width=b.style.width||G+"px",b.style.height=F+"px",w(H,function(a){var b="line"===y(a).type,c=!b&&"line"===y(a.parentElement).type;a.style.top=c?0:y(a).top+"px",a.style.left=b?E.left+"px":(c?y(a).left-E.left:y(a).left)+"px",a.style.height=y(a).height+"px",a.style.width=b?E.width+"px":y(a).width+"px",a.style.position="absolute"})),J?I.insertBefore(b,J):I.appendChild(b)}}function D(a,b){return this instanceof D?(this.isSplit=!1,this.settings=x(q,b),this.elements=B(a),void(this.elements.length&&(this.originals=this.elements.map(function(a){return y(a).html=y(a).html||a.innerHTML}),this.split()))):new D(a,b)}if(b.addEventListener&&Function.prototype.bind){var e="splitType"+1*new Date,f={},g=0,h=Array.prototype.push,i=Array.prototype.slice,j=Object.keys,l=(Object.prototype.hasOwnProperty,Object.defineProperty),n=(Object.defineProperties,Object.getOwnPropertyDescriptor),o=b.createDocumentFragment.bind(b),p=b.createTextNode.bind(b),q={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",split:"lines, words, chars",position:"relative",absolute:!1,tagName:"div",DEBUG:!1};return l(D,"defaults",{get:function(){return q},set:function(a){q=x(q,a)}}),D.prototype.split=function(b){this.revert(),this.lines=[],this.words=[],this.chars=[],b!==c&&(this.settings=x(this.settings,b)),w(this.elements,function(a){C.call(this,a),y(a).isSplit=!0},this),this.isSplit=!0,w(this.elements,function(a){for(var b=y(a).nodes||[],c=0,d=b.length;c<d;c++)z(b[c])})},D.prototype.revert=function(){this.isSplit&&(this.lines=this.words=this.chars=null),w(this.elements,function(a){y(a).isSplit&&y(a).html&&(a.innerHTML=y(a).html,a.style.height=y(a).cssHeight||"",a.style.width=y(a).cssWidth||"",this.isSplit=!1)},this)},D}}(window,document);if(typeof LS_Meta==='object'&&LS_Meta.fixGSAP){window.GreenSockGlobals=null,window._gsQueue=null,window._gsDefine=null,delete window.GreenSockGlobals,delete window._gsQueue,delete window._gsDefine,window.GreenSockGlobals=LS_oldGS,window._gsQueue=LS_oldGSQueue,window._gsDefine=LS_oldGSDefine};/*! Creative Popup - https://creativepopup.webshopworks.com
 * @author    WebshopWorks
 * @copyright 2018-2020 WebshopWorks
 * @license   One Domain Licence
 * Not allowed to resell or redistribute this software */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('1q.2L={6M:{8H:!1,b8:!1},kK:"80"!=2z fZ&&fZ,b9:[],9O:[],8I:[],3K:{},df:{},ba:2G.ba,dg:6N(\'6O[2m*="7q.js"], 6O[2m*="7q.kL.js"]\')[0],bd:"",9P:!1,g0:19(e,t,i,s){1h o,n,a="5s"==2z e?6N("#"+e).3A():e;2J(t){1g"g1":n="kM 6N kN",o="kO kP kQ g2 dh kR an kS 6P ("+i+") of di 6N kT. g3 g4 kU at kV 6P "+s+" or kW. g5 81 kX 6N."}6N(\'<1y 2v="cp-g6"><i 2v="cp-g6-kY">!</i><g7>\'+n+"</g7><82>"+o+"</82></1y>").g8(a)},g9:19(e){18.df[e]=2H,2E 18.df[e]},dj:19(e,t){2q(1h i=e.1M("."),s=t.1M("."),o=0;o<i.1v;++o){if(s.1v==o)1N!1;if(1o(i[o])!=1o(s[o]))1N!(1o(i[o])>1o(s[o]))}1N i.1v,s.1v,!0}},kZ.l0.1k=19(e){1N(""+18).1k(e)},19(bb){"l1 l2";1q.6j={},bb.fn.3V=19(i,s,o,n){i=i||{};1h t,e="1.7.2",a=bb.fn.l3;if(1q.2L.dj(e,a,e))1N(2z i).4z("5a|80")?(t="l4"+1A.2Q().dk(36).dl(2,9),18.3i(19(e){bb(18).1a("6k")||(1q.6j[t]=4f r(18,bb(18),i,t))})):"1a"===i?1q.6j[18.1a("6k")]:"4g"===i?1q.6j[18.1a("6k")].2r.4g():"l5"===i?1q.6j[18.1a("6k")].1s.1p.5N||!1:"6Q"===i?1q.6j[18.1a("6k")].6Q||!1:"l6"===i?1q.6j[18.1a("6k")].o||!1:"dm"===i?1q.6j[18.1a("6k")].dm||!1:18.3i(19(e){1h t=1q.6j[bb(18).1a("6k")];t&&t.2r.8J(i,s,o,n),t=2H});1q.2L.g0(bb(18),"g1",a,e)};1h r=19($,B,t,W){B.1a("6k",W).1O("1a-7q-dn",W);1h bc=18,ie=bc.3c=1q.ga||1q;bc.1s={1p:{do:"|",21:"l7",5b:["#3B","#28","#2K","#20","#8K","#3C","#3C-8K"],5N:{29:"2b",8L:"5c",dp:!0,gb:!0,7r:-1,bf:-1,gc:-1,5O:-1,bh:!1,8M:"8N",gd:"50% 50%",ge:!1,9Q:!1,63:"dq",83:!1,4L:1,bi:0,64:-1,dr:!0,bj:!1,84:!1,7s:9R,4X:"l8",8O:"/l9/ds/",8P:"5d",8Q:!1,gf:"no-65",gg:"3s",gh:"8N",gj:"50% 50%",dt:!1,9S:!1,bk:!1,gk:!1,gl:!1,gm:!1,bl:!1,gn:!1,go:!1,gp:!1,6l:"1t",bm:"60%",du:1r,9T:60,dv:35,dw:1r,9U:0,9V:!0,9W:"2M",gq:"la.lb",dx:40,dy:10,dz:"6m",gr:!1,gs:!0,dA:!1,gt:-1,dB:-1,dC:!0,gu:!1,dD:!0,gv:!1,lc:""}},1c:{9X:"gw (ld: "+W+") 6n:"},2h:{6o:{le:["1a","1U"],1U:["1a","1U"],lf:["1a","9Y"],7t:["1a","7t"],86:["1a","86"],gx:["1a","gx"],7u:["1a","7u"],7v:["1a","7v"],lg:["1a","dE"],li:["1a","bn"],lk:["1a","bn"],ll:["1a","bo"],lm:["1a","bo"],ln:["1a","3j"],lo:["1a","3j"],2D:["1a","2D"],4M:["1a","4M"],5e:["1a","5e"],gy:["2B","gz"],gA:["2B","6p"],gB:["2B","2c"],gC:["2B","2c"],gD:["2B","2R"],lp:["1w","3W"],lq:["1w","to"],gE:["1E","29"],gF:["1E","6R"],gG:["1E","dF"],gH:["1E","2N"],gI:["1E","9Z"],gJ:["1E","bp"],gK:["1E","2c"],gL:["1E","2c"],gM:["1E","87"],gN:["1E","2A"],66:["1a","66"]},5N:{1a:{1U:-1,9Y:0}}},3a:{6o:{lr:["is"],2b:["is"],6q:["1u"],3L:["1u"],ls:["1u"],88:["2n"],89:["2n"],3M:["2n"],4N:["2T"],5b:["2T"],67:["2T"],bq:["2T"],2D:["2T"],4O:["2T"],a0:["2T"],lt:["1V","4Y"],lu:["1V","4Y"],lv:["2c","4Y"],lx:["3f","4Y"],ly:["3g","4Y"],lz:["2c","4Y"],lA:["3f","4Y"],lB:["3g","4Y"],lC:["2R","4Y"],lD:["2U","4Y"],lE:["3e","4Y"],lF:["5f","4Y"],lG:["5g","4Y"],lH:["3j","8R"],lI:["4m","8R"],lJ:["3X","68"],lK:["1d","68"],lL:["1i","68"],lM:["1w","68"],4n:["2c","5h"],lN:["3f","5h"],lO:["3g","5h"],2c:["2c","5h"],lP:["3f","5h"],lQ:["3g","5h"],2R:["2R","5h"],lR:["2U","5h"],lS:["3e","5h"],lT:["5f","5h"],lU:["5g","5h"],lV:["2N","a1"],lW:["x","a1"],lX:["y","a1"],lY:["2o","a2"],lZ:["3b","in"],m0:["3b","in"],m1:["3b","in"],m2:["1U","in"],dG:["1I","in"],m3:["1I","in"],m4:["1X","in"],m5:["1V","3Y"],m6:["1V","3Y"],m7:["2c","3Y"],m8:["3f","3Y"],m9:["3g","3Y"],ma:["2c","3Y"],mb:["3f","3Y"],mc:["3g","3Y"],md:["2R","3Y"],me:["2U","3Y"],mf:["3e","3Y"],mg:["5f","3Y"],mh:["5g","3Y"],mi:["1I","8S"],mj:["1I","8S"],mk:["2N","8a"],ml:["x","8a"],mm:["y","8a"],mn:["29","2i"],mo:["7w","2i"],mp:["3b","2i"],mq:["3b","2i"],mr:["3b","2i"],mt:["1U","2i"],mu:["1X","2i"],mv:["1V","4E"],mw:["1V","4E"],mx:["2c","4E"],my:["3f","4E"],mz:["3g","4E"],mA:["2c","4E"],mB:["3f","4E"],mC:["3g","4E"],mD:["2R","4E"],mE:["2U","4E"],mF:["3e","4E"],mG:["5f","4E"],mH:["5g","4E"],mI:["3j","8T"],mJ:["4m","8T"],mK:["3X","69"],mL:["1d","69"],mM:["1i","69"],mN:["1w","69"],mO:["2N","a3"],mP:["x","a3"],mQ:["y","a3"],mR:["2o","7x"],mS:["br","1P"],mT:["3b","1P"],mU:["3b","1P"],mV:["1U","1P"],dH:["1I","1P"],mW:["1I","1P"],mX:["1X","1P"],mY:["1V","3F"],mZ:["1V","3F"],n0:["2c","3F"],n1:["3f","3F"],n2:["3g","3F"],n3:["2c","3F"],n4:["3f","3F"],n5:["3g","3F"],n6:["2R","3F"],n7:["2U","3F"],n8:["3e","3F"],n9:["5f","3F"],na:["5g","3F"],nb:["1I","3F"],nc:["1I","3F"],nd:["2N","8b"],ne:["x","8b"],nf:["y","8b"],ng:["29","2F"],nh:["7w","2F"],ni:["3b","2F"],nj:["3b","2F"],nk:["3b","2F"],nl:["1U","2F"],nm:["1X","2F"],nn:["1V","4F"],np:["2c","4F"],nq:["3f","4F"],nr:["3g","4F"],nt:["2c","4F"],nu:["3f","4F"],nv:["3g","4F"],nw:["2R","4F"],nx:["2U","4F"],ny:["3e","4F"],nz:["5f","4F"],nA:["5g","4F"],nB:["2N","6r"],nC:["x","6r"],nD:["y","6r"],nE:["1w","6r"],nF:["2o","a4"],nG:["3b","1B"],nH:["3b","1B"],nI:["1U","1B"],nJ:["3t","1B"],nK:["8U","1B"],nL:["8V","1B"],nM:["1I","1B"],nN:["1I","1B"],1B:["1X","1B"],nO:["1V","4G"],nP:["2c","4G"],nQ:["3f","4G"],nR:["3g","4G"],nS:["2c","4G"],nT:["3f","4G"],nU:["3g","4G"],nV:["2R","4G"],nW:["2U","4G"],nX:["3e","4G"],nY:["5f","4G"],nZ:["5g","4G"],o0:["3j","4G"],o1:["4m","4G"],o2:["3w","1t"],o3:["3w","1t"],o4:["3w","1t"],o5:["3w","1t"],o6:["3S","1t"],o7:["3S","1t"],o8:["6a","1t"],o9:["6a","1t"],oa:["8c","1t"],ob:["dI","1t"],oc:["x","4Z"],od:["y","4Z"],oe:["1w","4Z"],og:["3X","4Z"],oh:["3X","4Z"],oi:["2N","4Z"],1t:["1X","1t"],gy:["gz","2B"],gA:["6p","2B"],gB:["2c","2B"],gC:["2c","2B"],gD:["2R","2B"],oj:["6s","1E"],gE:["29","1E"],gF:["6R","1E"],gG:["dF","1E"],gH:["2N","1E"],gI:["9Z","1E"],gJ:["bp","1E"],gK:["2c","1E"],gL:["2c","1E"],gM:["87","1E"],1E:["1X","1E"],ok:["3a","2A"],ol:["3a","2A"],om:["3a","2A"],oo:["5t","2A"],op:["5t","2A"],oq:["5t","2A"],os:["1B","2A"],ot:["1t","2A"],gN:["1E","2A"]},dJ:["ou","ov","ow","ox","oy","oz","oA","oB","oC","oD","oE","oF","oG","oH","oI"],gO:{7y:[1],6S:[2],7z:[3,[1,2,6,7,8]],8W:[4],8d:[5],6t:[6,[1,2,3,4,5]],6T:[7],gP:[8],gQ:[9],a5:[10],8e:[11,[2,3,4,5,6,7,8,9,10]],8X:[12],dK:[13],5B:[14,[2,3,4,5,6,7,8,9,10,11,12,13]],8Y:[15],gR:[16],dL:[17]},5P:{1w:19(){1N{bs:0,gS:1r,gT:1r,gU:0,"bt-4n":0,gV:0,gW:1r,gX:0}}},5N:19(e,t){1h i={is:{5Q:!!e.is("3G.cp-bg"),2C:!!e.is(".cp-bg-4P"),gY:!!e.is("3G.cp-3a"),a6:!1,8Z:!1,2b:!0,bu:t},5i:{},2f:{},1u:{6q:"dM",oJ:t,91:t},2n:{88:0,89:0},2T:{5b:2H,4N:2H,67:2H,bq:"8N",2D:2H,4O:2H,2C:!1},1z:{7y:0,6S:0,7z:0,8W:0,8d:19(e){1N 1A.47(18.6S,18.8W)},6t:0,6T:0,gP:19(e){1N 0===18.6T&&e.1B.1X&&("4o"==2z e.1B.3b||-1!==e.1B.3b.1k("7z")&&-1!==e.1B.3b.1k("8W")&&-1!==e.1B.3b.1k("8d"))&&(18.6t=bc.1b.1m.1z.8f(e,e.1B.3b,"6t"),18.6T=-1!==e.1B.3t&&e.1z.6t+(e.1B.65+1)*e.1B.1U+e.1B.65*e.1B.8U),1A.47(18.6S,18.6T)},gQ:19(e){1N 1A.47(18.8W,18.6T)},a5:19(e){1N 1A.47(18.8d(),18.6T)},8e:0,8X:0,dK:19(e){1N 1A.47(18.8X,18.6T)},5B:19(e){1N 1A.47(18.a5(),18.8X)},8Y:0,gR:19(e){1N 1A.47(18.8Y,18.8X,18.8d())},dL:19(e){1N 1A.47(18.8Y,18.dK(),18.8d())},bv:!1,bw:!1},2a:{in:{1X:!0,92:{2w:!1,51:!1,1e:{1V:0}},93:{2w:!1,7A:19(){bc.1b.1m.in.7A(e)},4p:19(){bc.1b.1m.in.4p(e)},1e:{3x:"5u",1V:1,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0,x:0,y:0}},94:{2w:!1,51:!1,1e:{}},95:{2w:!1,1e:{}},bx:{2w:!1,51:!1,1e:{}},6U:{2w:!1,1e:{}},96:{2N:"50% 50% 0",x:0,y:0},by:{},bz:{},6b:{},3b:0,1U:1,1I:"a7"},2i:{1X:2H,bA:{6u:{},2Q:{},1V:0},a8:{1I:"a7",1e:{1V:1,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0,x:0,y:0}},97:{6u:{},2Q:{},2N:"50% 50% 0",x:0,y:0},1M:"",7w:.gZ,3b:"6S",1U:1},1P:{1X:!0,92:{2w:!1,51:!1,1e:{}},93:{2w:!1,7A:19(){bc.1b.1m.1P.7A(e)},4p:19(){bc.1b.1m.1P.4p(e)},1e:{1V:0,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0}},94:{2w:!1,51:!1,1e:{}},95:{2w:!1,1e:{}},bx:{2w:!1,51:!1,1e:{}},6U:{2w:!1,1e:{}},96:{x:0,y:0},by:{},bz:{},6b:{},3b:"a9",1U:1,1I:"a7"},2F:{1X:2H,bA:{51:!1,6u:{},1V:1},a8:{1I:"a7",51:!1,6u:{},2Q:{},1V:0},97:{6u:{},2Q:{},x:0,y:0},1M:"",3b:"a5",7w:.gZ,1U:1},1B:{1X:2H,3W:{2w:!1,51:!1,1e:{}},to:{2w:!1,1e:{}},6U:{2w:!1,51:!1,1e:{}},96:{2N:"50% 50% 0",x:0,y:0},6b:{},1I:"h0",3b:"8d",8U:0,1U:1,3t:0,8V:!1},1t:{1X:2H,3W:{2w:!1,51:!1,1e:{}},to:{2w:!1,1e:{}},97:{2N:"50% 50% 0"},dI:!0,3w:"a7",6a:.5},1E:{1X:2H},2B:{2R:1.2},2o:{1X:!1,aa:"0 0 0 0",47:"-ab ab ab -ab"},1w:{3p:{1Z:{},in:{},1P:{},1B:{},1t:{},98:{},bB:{},bC:{},bD:{}},1b:{bg:2H,in:2H,1P:2H,1B:2H,1t:2H}},1p:{1Y:{2w:!1,51:!1,1e:{3x:"5u"}}},2A:{3a:6V,5t:6V,1B:6V,1t:6V},3H:{h1:{2w:!1,1e:{1V:1,3x:"3I"}},dN:{2w:!1,1e:{x:0,y:0,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0,1V:1,3x:"3I"}},dO:{2w:!1,1e:{x:0,y:0,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0,1V:1}}}}};1N{is:i.is,5i:i.5i,2f:i.2f,1u:i.1u,2n:i.2n,2T:i.2T,2V:i.2V,1z:i.1z,in:i.2a.in,h2:i.2a.in.92,4Y:i.2a.in.92.1e,h3:i.2a.in.94,8R:i.2a.in.94.1e,h4:i.2a.in.bx,h5:i.2a.in.bx.1e,ac:i.2a.in.93,5h:i.2a.in.93.1e,dP:i.2a.in.95,bE:i.2a.in.95.1e,dQ:i.2a.in.6U,h6:i.2a.in.6U.1e,a2:i.2a.in.6b,a1:i.2a.in.96,68:i.2a.in.by,ad:i.2a.in.bz,2i:i.2a.2i,3Y:i.2a.2i.bA,8S:i.2a.2i.a8,oK:i.2a.2i.a8.1e,8a:i.2a.2i.97,1P:i.2a.1P,dR:i.2a.1P.92,dS:i.2a.1P.92.1e,dT:i.2a.1P.94,bF:i.2a.1P.94.1e,ae:i.2a.1P.93,4E:i.2a.1P.93.1e,bG:i.2a.1P.95,8T:i.2a.1P.95.1e,bH:i.2a.1P.6U,dU:i.2a.1P.6U.1e,7x:i.2a.1P.6b,a3:i.2a.1P.96,af:i.2a.1P.by,69:i.2a.1P.bz,2F:i.2a.2F,bI:i.2a.2F.bA,3F:i.2a.2F.a8,8b:i.2a.2F.97,1B:i.2a.1B,h7:i.2a.1B.3W,dV:i.2a.1B.3W.1e,bJ:i.2a.1B.to,4F:i.2a.1B.to.1e,dW:i.2a.1B.6U,h8:i.2a.1B.6U.1e,a4:i.2a.1B.6b,6r:i.2a.1B.96,1t:i.2a.1t,dX:i.2a.1t.3W,dY:i.2a.1t.3W.1e,dZ:i.2a.1t.to,4G:i.2a.1t.to.1e,4Z:i.2a.1t.97,1E:i.2a.1E,2B:i.2a.2B,2o:i.2a.2o,1w:i.2a.1w,2A:i.2a.2A,1p:i.2a.1p,3H:i.2a.3H}}}},bc.1j={3t:0,3A:{},2K:{},2I:{},20:{},1p:19(){if(!2G.3T.8g($))1N!1;2q(1h e=B.1C("> .cp-3a, > .cp-2h"),t=0,i=bc.1s.2h.6o,s=0,o=e.1v;s<o;s++){1h n,a=bb(e[s]),r=a[0].1Z,l={$4Q:!1,1T:-1,1a:{9Y:0,bK:0},1E:{},2B:{2R:1.2},1w:{}};if(bc.1j.3t++,a.4h("cp-3a").2j("cp-2h").1e({1d:bc.1c.3Z.e0,1i:bc.1c.3Z.h9}).2s(bc.1c.$7B),a.1a("cp"))2q(1h d=a.1a("cp").48().1M(";"),p=0;p<d.1v;p++){1h c,u,h=d[p].1M(":");h[0]=bb.4q(h[0]),h[1]=bb.4q(h[1]),""!==h[0]&&2x 0!==i[h[0]]&&(c=2x 0===i[h[0]][1]?h[0]:i[h[0]][1],u=bc.1R.2Y.5P(h[1]),-1===c.48().1k("1U")&&-1===c.48().1k("4i")&&"9Y"!=c||(u/=3o),l[i[h[0]][0]][c]=u)}a.4r("a.cp-4Q").1v&&(l.1a.$4Q=a.4r("a.cp-4Q").3A().1e({7C:5}).1O("1a-cp-2h-4Q",t+1).2s(bc.1c.$6c),bc.1m.2e.e1(l.1a.$4Q)),l.1a.$2C=a.4r(\'[1a-cp*="a0"]\').3A(),l.1a.$2C.1v&&(2H!==l.1a.$2C.1O("1a-cp").1M("a0")[1].1M(";")[0].4z(/(ag|1X|on|1)/i)?(l.1a.$2C.2j("cp-bg-4P").1e({1d:"2M",1i:"2M"}).4r("4P, 8h, 4A").1e({1d:"1r%",1i:"1r%"}),l.1a.$2C.6W(bb(\'<1y 2v="cp-bg-4P-3M"></1y>\'))):l.1a.$2C=!1),a.1C("> .cp-bg").1v&&(l.1a.$2k=a.1C("> .cp-bg").3A()),l.1a.2D||(a.1C("> .cp-tn").1v?n=a.1C("> .cp-tn").3A():a.1C("> .cp-bg").1v&&(n=a.1C("> .cp-bg").3A()),n?(l.1a.2D=bc.1R.bL(n),l.1a.e2=bc.1R.ha(n)):l.1a.2D=bc.o.8O.26("/7D/1e/","/7D/3G/")+bc.o.4X+"/oL.e3"),(l.1a.7u||l.1a.7v)&&"80"==2z bM&&(2E l.1a.7u,2E l.1a.7v),"4B"===r.5e&&(l.1a.5e="4B"),l.1a.3j||(l.1a.3j=""===a[0].1Z.3j?"5d":a[0].1Z.3j),bc.1j[++t]={},bc.1j[t].1a=bb.52(!0,{},bc.1s.2h.5N.1a,l.1a),bc.1j[t].1E=l.1E,bc.1j[t].2B=l.2B,bc.1j[t].1w=l.1w,bc.1j[t].1T=t,bc.1j[t].$1m=bb(),bc.1c.53.5v(l.1a.2D),bc.1m.1p(a,t)}},2e:{hb:19(){1h e=bc.1j;e.2K.1T=e.2I.1T,e.2I.1T=e.20.1T,e.20.1T=bc.1D.2W.ah(bc.1D.3y),e.2e.e4()},hc:19(e){1h t=bc.1j;t.20.1T=e,t.2e.e4()},e4:19(){1h e=bc.1j;e.2K=-1!==e.2K.1T?bb.52(!0,{},e[e.2K.1T]):{},e.2I=-1!==e.2I.1T?bb.52(!0,{},e[e.2I.1T]):{},e.20=-1!==e.20.1T?bb.52(!0,{},e[e.20.1T]):{}},4L:19(){1h e=bc.1j;if(e.3A.1T="2Q"===bc.o.4L?bc.o.4L:1A.47(bc.1R.2Y.5P(bc.o.4L,!0),1),bc.o.84&&2<bc.1j.3t?bc.o.bj=!1:bc.o.84=!1,e.3A.1T="2Q"==e.3A.1T?1A.3J(1A.2Q()*bc.1j.3t+1):e.3A.1T,2G.99.e5)2q(1h t=1;t<e.3t+1;t++)e[t].1a.4M==2G.99.e5.1M("#")[1]&&(e.3A.1T=t);e.3A.1T=e.3A.1T<1||e.3A.1T>bc.1j.3t?1:e.3A.1T,bc.o.84&&"2Q"!=bc.o.4L&&(e.3A.1T=bc.o.4L)}},2W:{4M:19(e){1N e&&bc.1j[e]&&bc.1j[e].1a&&bc.1j[e].1a.4M?bc.1j[e].1a.4M:2H}},2h:[]},bc.1m={$5C:bb(),6d:19(e,t){1N-1!=e.1k("%")?2Z(e)*t:2Z(e)},1p:19(e,t){if(!2G.3T.8g($))1N!1;2q(1h i,s=e.1C(\'.cp-bg, .cp-l, .cp-3a, *[2v^="cp-s"]\'),o=0,n=s.1v;o<n;o++){1h a=bb(s[o]),r=a[0],l=a.4r();if(-1!=a.1O("2v").1k("cp-s")){1h d=a.1O("2v").1M("cp-s")[1].1M(" ")[0];a.4h("cp-s"+d).2j("cp-3a")}3u if(a.4H("cp-l"))a.4h("cp-l").2j("cp-3a");3u if(!a.is(".cp-bg, .cp-3a")){a.5w();oM}a.is("a")&&1===l.1v&&((r=(a=a.4r().3A())[0]).oN("1a-cp",r.hd.ai("1a-cp")),r.hd.oO("1a-cp"),a.49().4h("cp-3a"),a.2j("cp-3a")),a.1a(bc.1s.1p.21,4f bc.1s.3a.5N(a,t)),-1!==a.1O("2v").1k("cp-e6-")&&18.2e.he(a),a.49().is("a")?(i=a.49(),18.2e.e1(i)):i=a,bc.1j[t].$1m=bc.1j[t].$1m.2O(i)}},2e:{e1:19(e){1h t,i,s=e.1O("4s"),o=e.1O("5R");o&&-1!==o.1k("cp-3s")&&e.on("4t."+W,19(e){e.3N();1h t,i=2G.3T.oP-bc.1n.3D;if(2x 0!==s)2J(s){1g"oQ":t=0;1l;1g"oR":t=bc.1n.bN-bc.1n.3D;1l;1g"oS":t=bc.1c.4C;1l;1g"":1g"oT":t=bc.1c.4C+bc.1c.1i;1l;5j:t=bb(s).3A().1v?bb(s).bO().5S().2l:bc.1c.4C+bc.1c.1i}t+=bc.o.9U,t=1A.aa(t,i),t=1A.47(0,t),ie.2X.to([2G.hf,2G.3T],1,{bP:t,1I:ie.4R.9a})}),-1===bc.1s.1p.5b.1k(s)&&!s.4z(/^\\#[0-9]/)||(t=bb.4q(s.48().1M("#")[1]),i=1o(t),e.on("4t."+W,19(e){if(e.3N(),-1!==["2K","20","3B","28"].1k(t))bc.2y[t]("oU");3u if("4o"==2z i&&i==i)bc.1D.6X(i,!0,!0);3u if(!bc.1c.23.9b)2J(t){1g"8K":bc.2r.8J("8K");1l;1g"3C":bc.2r.8J("3C");1l;1g"3C-8K":bc.2r.8J("3C",!0)}}))},he:19(e){2q(1h t=e.1O("2v").1M(" "),i=1,s=0;s<t.1v;s++)-1!=t[s].1k("cp-e6-")&&(i=1o(t[s].1M("cp-e6-")[1]));e.1a(bc.1s.1p.21).1u.hg=i,e.1e({3E:"oV"}).on("4t."+W,19(e){e.3N(),B.3V(bb(18).1a(bc.1s.1p.21).1u.hg)})},3n:19(e,t,i){t.is.5Q||t.is.2C?(t.2f.$9c=e.4j(".cp-bg-5T"),t.2f.$bQ=e.4j(".cp-bg-e7")):(t.2f.$1Y=e.4j(".cp-in-1P"),t.2f.$1Y.1a(bc.1s.1p.21,{}),t.1u.e8=t.2f.$1Y.1a(bc.1s.1p.21),t.2f.$9d=e.4j(".cp-2o"),t.2f.$9d.1a(bc.1s.1p.21,{}),t.1u.oW=t.2f.$9d.1a(bc.1s.1p.21),t.2f.$7E=e.4j(".cp-1B"),t.2f.$7E.1a(bc.1s.1p.21,{}),t.1u.oX=t.2f.$7E.1a(bc.1s.1p.21)),t.1E.1X&&(t.2f.$8i=e.4j(".cp-1E"),t.2f.$8i.1a(bc.1s.1p.21,{1E:{}}),t.1u.hh=t.2f.$8i.1a(bc.1s.1p.21),bc.1b.1m.1E.hi(t.2f.$8i,t.1u.hh.1E,t,i)),t.1t.1X&&!bc.1j[i].1a.66&&bc.1b.1m.1t.2e(e,t),bc.6Y.aj?t.2f.$8j=e.4j(".cp-z"):t.2f.$8j=t.1E.1X?t.2f.$8i:t.2f.$9c?t.2f.$bQ:t.2f.$1Y},1Z:19(e){1h t,i,s,o,n,a,r,l,d,p,c,u,h,m,g,f,v,y,S,w=e[0],b=e.1a(bc.1s.1p.21),x=w.1Z,T=bc.1m,C=0,k=0,O=!1,I=w.oY(),P=""!==x.6Z?T.6d(x.6Z,bc.1c.3Z.9e):2Z(e.1e("5D-1S")),L=""!==x.70?T.6d(x.70,bc.1c.3Z.9e):2Z(e.1e("5D-41")),$=""!==x.71?T.6d(x.71,bc.1c.3Z.9f):2Z(e.1e("5D-2l")),B=""!==x.72?T.6d(x.72,bc.1c.3Z.9f):2Z(e.1e("5D-24")),W=""!==x.4u?T.6d(x.4u,bc.1c.3Z.9e):2Z(e.1e("7F-1S")),F=""!==x.5U?T.6d(x.5U,bc.1c.3Z.9f):2Z(e.1e("7F-2l"));w.1Z.7F="0",d=""!==x.73?2Z(x.73):2Z(e.1e("74-1S-1d")),c=""!==x.76?2Z(x.76):2Z(e.1e("74-41-1d")),p=""!==x.77?2Z(x.77):2Z(e.1e("74-2l-1d")),u=""!==x.78?2Z(x.78):2Z(e.1e("74-24-1d")),1!==bc.22.$7G.1w(e).1v&&!e.4r("4A").1v||(y=(v=e.4r()).1O("1d")?v.1O("1d"):v.1d(),S=v.1O("1i")?v.1O("1i"):v.1i(),5E===1o(y)&&e9===1o(S)&&(y=hj,S=7H),""!==w.1Z.1d&&"2M"!==w.1Z.1d||e.1e("1d",y),""!==w.1Z.1i&&"2M"!==w.1Z.1i||e.1e("1i",S),"1r%"===x.1d&&"1r%"===x.1i&&(x.1S="50%",x.2l="50%",b.2T.79=!0),O=y/S,v.1e({1d:"1r%",1i:"1r%"}));1h 2P=b.7I;e.is("3G")&&(h=(o=e.1a("hk"))/(n=e.1a("hl")),(!x.1d&&!x.1i||"2M"===x.1d&&"2M"===x.1i)&&2P&&(2P.1d&&2P.1i?(i=-1===2P.1d.1k("%")?1o(2P.1d):(C=1o(2P.1d),T.6d(2P.1d,bc.1c.3Z.9e)),s=-1===2P.1i.1k("%")?1o(2P.1i):(k=1o(2P.1i),T.6d(2P.1i,bc.1c.3Z.9f))):2P.4a&&(e[0].1Z.1d=2P.4a+"px",i=2P.4a,s=e.1i()))),g=I.1d?I.1d:I.41-I.1S,f=I.1i?I.1i:I.24-I.2l,i||(i=x.1d,-1!==x.1d.1k("%")&&(C=1o(x.1d)),i=(i=""!==i&&"2M"!==i?T.6d(i,bc.1c.3Z.9e):g-P-L-d-c)||"2M"),s||(s=x.1i,-1!==x.1i.1k("%")&&(k=1o(x.1i)),s=(s=""!==s&&"2M"!==s?T.6d(s,bc.1c.3Z.9f):f-$-B-p-u)||"2M"),m=O||i/s,!e.is("3G")||x.1d||x.1i||2P&&(!2P||2P.1d||2P.1i)||o===i&&n===s||(o!==i?s=(i=5<o?o:i)/(m=5<o?h:m):n!==s&&(i=(s=5<n?n:s)*(m=5<n?h:m))),2Z(e.1e("1V")),a=d+P+i+L+c,r=p+$+s+B+u,t=""!==x.2o&&x.2o,x.2o="",l=x.oZ||x.1w;19 D(e){1h t=e;1N e&&-1!==e.1k("px ")&&(e=e.26("px","").1M(" "),t=1A.7a(1o(e[0])/i*1r)+"%"),t}b.3k={2o:t,6b:!1,1S:x.1S?x.1S:"0",2l:x.2l?x.2l:"0",1d:1A.7b(i),1i:1A.7b(s),9g:C,9h:k,5k:a,5l:r,p0:x.1d,p1:x.1i,1Q:m,6Z:P,71:$,70:L,72:B,4u:W,5U:F,73:d,77:p,76:c,78:u,3X:D(e.1e("p2"))+" "+D(e.1e("p3"))+" "+D(e.1e("p4"))+" "+D(e.1e("p5")),6v:2Z(e.1e("p6-p7")),bR:e.1e("hm-1i"),bS:e.1e("p8-p9"),4m:e.1e("4m"),7C:1o(e.1e("z-1T"))||"2M",1w:l,3j:e.1e("2k-4m"),pa:e.1O("1a-cp")||"",ea:e.1O("1Z")||""},x.7C="2M",b.2b={1S:x.1S?x.1S:"0",2l:x.2l?x.2l:"0",1d:i,1i:s}},5P:19(e,t,i){1h s,o=e.1a(bc.1s.1p.21);e.1a("cp");if(o.is.8Z=!e.is("3G")&&!o.is.a6,(o.5V=e).1a("cp"))2q(1h n=bc.1s.3a.6o,a=e.1a("cp").1M(";"),r=e.1a("cp").48().1M(";"),l=0;l<r.1v;l++)if(bb.4q(r[l])){1h d=r[l].1k(":"),p=[r[l].bT(0,d),r[l].bT(d+1)],c=2H,u=2H,h=2H,m=2H,g=2H;if(""!==(c=bb.4q(p[0])))if(2x 0!==n[c=c.26("1M","5t")]){if(u=n[c][0],g="3M"===c?bb.4q(a[l].bT(d+1)):bc.1R.2Y.5P(bb.4q(p[1])),p[1]&&-1!==p[1].1k("2Q")&&(c.4z(/(5t)/)||(g=bc.1R.2Y.eb(g,u)),o.5i.81||(o.5i.81=!0)),"4o"==2z g&&u.4z(/(1U|hn|ho|4i)/i)&&(g/=3o),c.4z(/(6w)(.+)/))2J(g){1g!0:g=0;1l;1g!1:g=1}2x 0!==(m=n[c][1])?""!==g&&("5a"==2z g?c.4z(/(5t)/)?m.4z(/(pb)/i)?o[m][u]=g:o[m].6u[u]=g:("4o"==2z(h=bc.1R.2Y.5P(bb.4q(g[0])))&&u.4z(/(1U|hn|ho|4i)/i)&&(h/=3o),o[m][u]=h):c.4z(/(5t)/)&&-1!==g.dk().1k("2Q")?o[m].2Q[u]=g:o[m][u]=g):o[u][c]=g}3u"2o"===c&&(o.3k.2o=p[1],o.3k.6b=!0)}if(bc.6Y.hp&&(o.in.1X=!0,o.2i.1X=!1,o.2F.1X=!1,o.2i.29=2H,o.2F.29=2H),o.in.1X&&(o.ac.1I=o.dP.1I=o.dQ.1I=bc.1R.2Y.4S(o.in.1I)),2x 0!==o.68.3X&&(o.ad.3X=o.3k.3X),2x 0!==o.69.3X&&(o.af.3X=o.3k.3X),o.8R.3j&&(o.bE.3j=o.3k.3j),o.8T.3j&&(o.bF.3j=o.3k.3j),o.8R.4m&&(o.bE.4m=o.3k.4m),o.8T.4m&&(o.bF.4m=o.3k.4m),2x 0!==o.68.1d&&(o.ad.1d=o.3k.1d),2x 0!==o.69.1d&&(o.af.1d=o.3k.1d),2x 0!==o.68.1i&&(o.ad.1i=o.3k.1i),2x 0!==o.69.1i&&(o.af.1i=o.3k.1i),2x 0!==o.1P.br&&0!==o.1P.br&&(o.1P.3b="6S + "+o.1P.br),-1!==o.1P.3b.1k("a9")&&"a9"!==o.1P.3b&&(o.1P.3b="a9"),o.1P.1X&&(o.ae.1I=o.bG.1I=o.bH.1I=bc.1R.2Y.4S(o.1P.1I)),bb.6x(o.1B.3t)&&(0<o.1B.3t||-1===o.1B.3t)&&!1!==o.1B.1X?(o.1B.1X=!0,o.bJ.1I=o.dW.1I=bc.1R.2Y.4S(o.1B.1I),-1!==o.1B.3t?o.1B.8V?o.1B.65=2*o.1B.3t-1:o.1B.65=o.1B.3t-1:o.1B.65=-1):o.1B.1X=!1,(!bb.54(o.4G)||o.4Z.x||o.4Z.y||o.4Z.3X||o.4Z.1w)&&!1!==o.1t.1X?(o.1t.1X=!0,o.1t.3S||(o.1t.3S=o.1t.3w),o.1t.3w=bc.1R.2Y.4S(o.1t.3w),o.1t.3S=bc.1R.2Y.4S(o.1t.3S,!0),o.1t.8c||(o.1t.8c=o.1t.6a),ie.2X.2e(e[0],{2w:!1,1e:{2A:o.4Z.2A}})):o.1t.1X=!1,o.1E.6s&&bb.6x(o.1E.6s)&&0!==o.1E.6s&&!1!==o.1E.1X?o.1E.1X=!0:o.1E.1X=!1,o.is.5Q){1h f={2R:1,2c:0};if(bc.1j[t].2B.6p&&(o.2B=bc.1j[t].2B),o.2B.6p){2J(o.2B.3W={},o.2B.to={},o.2B.6p){1g"1P":o.2B.3W.2R=o.2B.2R||1,o.2B.3W.2c=o.2B.2c||0,o.2B.to=f;1l;1g"in":o.2B.3W=f,o.2B.to.2R=o.2B.2R||1,o.2B.to.2c=o.2B.2c||0}2E o.2B.2R,2E o.2B.2c}3u o.2B.3W=f,o.2B.to=f;bb.54(bc.1j[t].1w)||(bc.1j[t].1w.3W&&(o.1w.3p.bC=bc.1b.1m.55.2Y(bc.1j[t].1w.3W)),bc.1j[t].1w.to&&(o.1w.3p.bD=bc.1b.1m.55.2Y(bc.1j[t].1w.to)))}if(o.2i.29&&-1===bc.1s.3a.dJ.1k(o.2i.29)&&(2E o.2i.29,2E o.2i.ns,o.2i.1X=!1),o.2F.29&&-1===bc.1s.3a.dJ.1k(o.2F.29)&&(2E o.2F.29,2E o.2F.ns,o.2F.1X=!1),(o.2i.29||o.2F.29)&&(o.is.8Z?(o.2i.29&&(o.2i.1X=!0,o.8S.1I=bc.1R.2Y.4S(o.8S.1I),o.2i.1M=o.2i.29.1M("2P")[0]),o.2F.29&&(o.2F.1X=!0,o.3F.1I=bc.1R.2Y.4S(o.3F.1I)),o.2F.1X&&o.2F.29.1M("2P")[0]!==o.2i.1M&&(o.2i.1M+=", "+o.2F.29.1M("2P")[0]),-1!==o.2i.1M.1k("pc")&&-1===o.2i.1M.1k("ec")&&(o.2i.1M+=", ec"),-1!==o.2i.1M.1k("ec")&&-1===o.2i.1M.1k("hq")&&(o.2i.1M+=", hq")):(2E o.2i.29,2E o.2F.29,2E o.2i.ns,2E o.2F.ns)),(o.3k.2o||o.a2.2o||o.7x.2o||o.a4.2o)&&(o.2o.1X=!0),o.in.1X&&o.5h.2R&&(2E o.5h.2U,2E o.5h.3e),o.1P.1X&&o.4E.2R&&(2E o.4E.2U,2E o.4E.3e),o.68.1w&&(o.1w.3p.in=bc.1b.1m.55.2Y(o.68.1w)),o.1w.3p.1Z=bc.1b.1m.55.2Y(o.3k.1w),o.69.1w&&(o.1w.3p.1P=bc.1b.1m.55.2Y(o.69.1w)),o.6r.1w&&(o.1w.3p.1B=bc.1b.1m.55.2Y(o.6r.1w)),o.4Z.1w&&(o.1w.3p.1t=bc.1b.1m.55.2Y(o.4Z.1w)),o.in.1X||(o.in.1U=0),o.2i.1X||(o.2i.1U=0),o.1B.1X||(o.1B.1U=0),o.2F.1X||(o.2F.1U=0),o.1P.1X||(o.1P.1U=0),e.1O("1a-cp-pd",t),2x 0!==o.1u.3L&&"3I"!==o.1u.3L?(0!==(s=1o(o.1u.3L))&&"pe"!==o.1u.3L?(e.1O("1a-cp-hr",s),o.1u.91=s):o.1u.91=0,o.is.3L=!0,e.1O("1a-cp-3L","1")):e.1O("1a-cp-hr",t),o.is.a6){1h v=e.4r("4P, 8h").eq(0);if(2H!==o.2T.5b)2J(o.2T.5b){1g!0:v.ak("5b",!0),v.pf("hs").7J("hs");1l;1g!1:v.ak("5b",!1)}o.2T.4O&&(o.2T.4O<0?o.2T.4O=0:1r<o.2T.4O&&(o.2T.4O=1r)),o.is.2C&&(bc.22.al(o,e),o.2n.3M&&e.1C(".cp-bg-4P-3M").1e({ht:"7c("+o.2n.3M+")"}))}o.2n.88&&(o.2n.88=2Z(o.2n.88)),o.2n.89&&(o.2n.89=2Z(o.2n.89))}},2W:19(e){1h t,i,s,o,n,a=18.$5C;1N e&&(t="in",s=i="",o=\':5F(".cp-bg")\',n=\':5F(".cp-bg-4P")\',-1==(e=e.48()).1k("bU")&&-1==e.1k("a0")||(n="",e=e.26("bU","").26("a0","")),-1!=e.1k("4P")&&(s+=", > 4P",e=e.26("4P","")),-1!=e.1k("8h")&&(s+=", > 8h",e=e.26("8h","")),-1!=e.1k("5G")&&(s+=", > 4P, > 8h",e=e.26("5G","")),-1!=e.1k("3O")&&(s+=\', > 4A[2m*="3O-bV.5x"], > 4A[2m*="3O.5x"], > 4A[2m*="bW.be"], > 4A[1a-2m*="3O-bV.5x"], > 4A[1a-2m*="3O.5x"], > 4A[1a-2m*="bW.be"]\',e=e.26("3O","")),-1!=e.1k("4v")&&(s+=\', > 4A[2m*="3P.4v"], > 4A[1a-2m*="3P.4v"]\',e=e.26("4v","")),","==s.hu(0)&&(s=s.bT(2,s.1v)),-1!=e.1k("1P")&&(t="1P"),-1==e.1k("3G")&&-1==e.1k("5y")||(i="3G"),-1==e.1k("bg")&&-1==e.1k("2k")&&-1==e.1k("bX")||(o=""),a=-1!=e.1k("2I")?a.1w(i+"[1a-cp-2h"+t+\'="\'+bc.1j.2I.1T+\'"]\'+o+n):-1!=e.1k("20")?a.1w(i+"[1a-cp-2h"+t+\'="\'+bc.1j.20.1T+\'"]\'+o+n):a.1w(i+o+n),-1!=e.1k("am")&&(a=a.1w(".cp-bg, .cp-bg-4P, :5m"),e=e.26("am","")),-1!=e.1k("3q")&&(a=a.1w(":4B:5F(.cp-bg, .cp-bg-4P)"),e=e.26("3q","")),-1!=e.1k("bY")&&(a=a.1w(\':5F([1a-cp-3L="1"])\'),e=e.26("bY","")),-1!=e.1k("3L")&&(a=a.1w(\'[1a-cp-3L="1"]\'),e=e.26("3L","")),-1!=e.1k("bX")&&(a=a.1w(".cp-bg"),e=e.26("bX","")),""!==s&&(a=a.1C(s))),a},81:{1a:19(e,t,i){1h s,o,n;2J(e hv 6N||(e=bb(e)),i&&e.1O("1a-cp",i).1a("cp",i),s=(o=e.1a(bc.1s.1p.21)).is.bu,n=o.3k,t){5j:1g"1b":o.1u.7K=!1,bc.1m.2e.5P(e,s,!0);1l;1g"5C":e.1a(bc.1s.1p.21,4f bc.1s.3a.5N(e,s)),(o=e.1a(bc.1s.1p.21)).3k=n,bc.1m.2e.5P(e,s,!0),bc.1m.2e.3n(e,o,s)}}},5T:19(h,e){1h t,i,m;bc.1j[h].9i||"hw"===bc.1j[h].9i||(bc.1j[h].9i="hw",t=e?25:0,i=bc.1j[h].$1m,m=i.1v,i.3i(19(c,u){bc.3v["2h-"+h+"-3a-"+c]=5W(19(){2E bc.3v["2h-"+h+"-3a-"+c];1h e,t=bb(u),i=t,s="",o=!1,n="";t.4H("cp-3l-6y")&&(n+=" cp-3l-on-6y"),t.4H("cp-3l-6z")&&(n+=" cp-3l-on-6z"),t.4H("cp-3l-bZ")&&(n+=" cp-3l-on-bZ"),t.4h("cp-3l-6y cp-3l-6z cp-3l-bZ"),i.is("a")&&1===i.4r().1v&&(o=!0,t=i.1C(".cp-3a"));1h a,r=t.1a(bc.1s.1p.21);if(!r)1N!0;e=bc.1c.$6c,r.is.2C?e=bc.1c.$hx:r.is.5Q&&(e=bc.1c.$c0),bc.1m.2e.1Z(t),bc.1m.2e.5P(t,h),r.2i.1M&&(a=4f pg(t[0],{1M:r.2i.1M}),r.2i.29&&(r.2i.ns=a[r.2i.29.1M("2P")[0]]),r.2F.29&&(r.2F.ns=a[r.2F.29.1M("2P")[0]])),s=r.is.5Q||r.is.2C?\'<1y 2v="cp-1Y cp-bg-e7"><1y 2v="cp-1Y cp-bg-5T"></1y></1y>\':(r.2o.1X&&(s=\'<1y 2v="cp-1Y cp-2o"></1y>\'),r.1B.1X&&(s=\'<1y 2v="cp-1Y cp-1B">\'+s+"</1y>"),\'<1y 2v="cp-1Y cp-in-1P">\'+s+"</1y>"),r.1E.1X&&(s=\'<1y 2v="cp-1Y cp-1E">\'+s+"</1y>"),bc.6Y.aj&&(s=\'<1y 2v="cp-1Y cp-z">\'+s+"</1y>"),""!==s?t.2s(e).5T(s):t.2s(e),!0===o&&i.2j("cp-3a-4Q").2s(t.49());1h l={},d=t.1e("ed-ef-eg");d&&"5c"!==d&&(l["ed-ef-eg"]=d,t.1e("ed-ef-eg","5c")),r.3k.eh=1;1h p=1o(r.3k.7C);r.is.2C||r.is.5Q?l={7C:r.3k.eh}:(p=p||c+ph,l.7C=p,r.3k.eh=p),bc.6Y.aj&&(l.3Q="hy("+pi*p+"px )"),bc.1m.2e.3n(t,r,h),r.2f.$8j.1e(l).2j(n),r.is.5Q&&r.2f.$9c.1e({3j:bc.1j[h].1a.3j}),bc.1m.$5C=bc.1m.$5C.2O(t),bc.1j[h].$1m=bc.1j[h].$1m.5F(i),c===m-1&&(B.4r(".cp-2h").eq(h-1).c1(),bc.1j[h].9i=!0)},t*(c+1))}))}},bc.1D={3y:"20",pj:0,9j:!0,4b:{5c:[],c2:[]},23:{7d:!0,4I:!1,9k:!1,ao:!1,ap:!1},5i:{7e:!1,3B:!1,28:!1},56:19(){1N 18.23.4I||18.23.9k||18.23.ao},1p:19(){1==bc.1j.3t&&(bc.o.9Q=!1,bc.o.dt=!1,bc.o.9S=!1,bc.o.bk=!1,bc.o.64=-1,bc.o.hz=!1,bc.o.9W=!0,bc.o.4L=1,bc.o.6l="c3"),bc.o.9Q&&1!=bc.1j.3t||bc.1R.3m(18,{7d:!1,4I:!0}),18.2e.63(),18.2e.hA()},2e:{63:19(){bc.o.63=!0===bc.o.63?bc.1s.1p.5N.63:bc.o.63,!1!==bc.o.63&&B.on("6e."+W,19(){bc.1c.23.8k||(bc.1R.3m(bc.1D,{ao:!0}),"dq"!==bc.o.63&&bc.1b.1m.1z.5n())}).on("5H."+W,19(){1h e=1;bc.1b.1G&&bc.1b.1G.1U()>bc.1b.1m.1z.4T&&(e=bc.1b.1m.1z.4T/bc.1b.1G.1U()),bc.1R.3m(bc.1D,{ao:!1}),bb("3T").4H("cp-aq")||"dq"===bc.o.63||bc.o.83&&bc.1D.56()||bc.1b.1m.1z.8l(),bc.1b.1G&&bc.1b.1m.1z.23.7L&&bc.1b.1G.3R()<e&&bc.1R.3m(bc.1b.1m.1z,{7L:!1}),bc.1D.3B()})},hA:19(){2q(1h e=0;e<bc.1j.3t;e++)bc.1D.4b.5c[e]=e+1;bc.1D.4b.c2=bc.1R.ei(bb.pk([],bc.1D.4b.5c))},pl:19(){1h e=bc.o.84?"c2":"5c",t=bc.1D.4b[e],i=bc.1D.4b[e].1v,s=t.1k(bc.1j.3A.1T);bc.1D.4b.ar=[];2q(1h o=s;o<i;o++)bc.1D.4b.ar.5v(t[o]);2q(1h n=0;n<s;n++)bc.1D.4b.ar.5v(t[n])},as:19(e){2J(e){1g"2K":bc.o.bj&&(bc.1D.3y="2K"),bc.1D.6X(bc.1D.2W.ah("2K"),!0);1l;1g"20":bc.1D.3y="20",bc.1D.6X(bc.1D.2W.ah("20"),!0)}}},2W:{4b:19(){1h e="5c";1N bc.o.84&&(e="c2"),e},ah:19(e){1h t=bc.1D.4b[18.4b()],i=t.1k(bc.1j.2I.1T);2J(e){1g"2K":1N 0===i?t[t.1v-1]:t[i-1];1g"20":1N i===t.1v-1?t[0]:t[i+1];5j:1N t[e]}},ej:19(e){1N bc.1D.4b[18.4b()].1k(e)}},64:{2e:19(){0<bc.o.64&&(bc.1D.c4=1,bc.1D.ek=bc.1D.2W.ej(bc.1j.3A.1T))},8m:19(e){if(bc.1D.2W.ej(e)===bc.1D.ek)1N++bc.1D.c4===bc.o.64+1}},3B:19(e){!18.56()&&bc.1b.1G&&bc.1b.1m.1z.23.7L&&18.6X(bc.1j.20.1T)},28:19(){bc.1R.3m(18,{7d:!1,4I:!0})},6X:19(e,t,i){if(!2G.3T.8g($))1N!1;if(bc.1j.2I.1T===e)1N!1;if(!18.9j&&bc.2r.4c("el")){1h s=B.4k("el",bc.2r.4g());if(!1===s)1N;bb.6x(s)&&(e=1o(s))}e>bc.1j.3t||e<1||(bc.1c.8n()||bc.1D.23.9k&&!t?!bc.1c.23.au&&bc.1c.23.8o&&bc.1b.3U&&(bc.1D.5i.7e=!0,bc.1b.3U.3R(1),bc.1b.5z&&bc.1b.5z.3R(1)):(bc.1R.3m(bc.1b.1m.1z,{7L:!1}),bc.1D.5i.7e=!1,t?"2K"===bc.2y.3y&&bc.o.bj&&(bc.1D.3y="2K"):bc.2y.3y=bc.1D.3y,bc.1b.2t.3C(),bc.22.28(!0),bc.1j.2e.hc(e),bc.1R.3m(18,{9k:!1}),bc.1R.3m(bc.1c,{9b:!0}),bc.8p.em(bc.1j.20.1T,19(){bc.1b.3B()})))},pm:19(){bc.2y.28(),bb.3i(bc.3v,19(e,t){8q(bc.3v[e])}),bc.1b.2t.28(),bc.1b.1G.28(),bc.1R.3m(bc.1b.1m.1z,{av:!0,7d:!1}),B.1C("*").28(!0,!1).pn()},po:19(){B.1C("*").28(),bc.2y.7e(bc.1j.2I.1T,bc.1D.3y)}},bc.22={aw:{},$7G:bb(),7M:"ax:",ay:0,c5:0,1p:19(){-1!=2G.99.4s.1k("9l:")&&(18.7M="9l:"),bc.1R.3m(bc.1c,{en:!1,eo:!1}),bc.22.3O.1p(),bc.22.4v.1p(),bc.22.5G.1p()},3O:{1p:19(){1h e,t,i,l=0;18.$8r=bc.1c.$7B.1C(\'4A[2m*="3O-bV.5x"], 4A[2m*="3O.5x"], 4A[2m*="bW.be"], 4A[1a-2m*="3O-bV.5x"], 4A[1a-2m*="3O.5x"], 4A[1a-2m*="bW.be"]\').3i(19(){1h e=bb(18),t=e.49(),i=t.1a(bc.1s.1p.21),s=(e.1O("2m")||e.1O("1a-2m")).26(/&hB;/g,"&").26("4N=1","4N=0").26("?","?hC=ag&"),o=-1===s.1k("ax")?bc.22.7M:"",n=-1===s.1k("?")?"?":"&",a={$az:e,9m:o+s+n+"hD=hE&5G=1&pp=1&6P=3&ep=0",hF:bc.22.7M+"//3G.3O.5x/pq/"+s.1M("hG/")[1].1M("?")[0]+"/"+bc.o.gq},r=(t.1a().cp||"").26(/\\s+/g,"");(bc.o.9V&&r.1k("4N:c3")<0||!bc.o.9V&&0<=r.1k("4N:1X"))&&(a.9m+="&pr=1"),e.1O("id","cp-3O-"+ ++l),i.2V={29:"3O",c6:a},bc.22.c7(i),i.is.2C&&bc.22.al(i,t),i.is.2C||bc.22.c8(t,e,a.9m,a.hF,i)}),bc.22.$7G=bc.22.$7G.2O(18.$8r.49()),18.$8r.1v&&(bc.3v.er=1A.3J(6A.8s()/3o),1q.c9||bb(\'6O[2m*="3O.5x/hH"]\').1v||bb("<6O>").2s("aA").1O("2m","9l://pt.3O.5x/hH"),e="pu",t=19(){1q.2L.6M.8H=!0},1q[e]=1q[e]?(i=1q[e],19(){i(),t()}):t,bc.57.es=ca(19(){1q.c9&&1===1q.c9.et||1q.2L.6M.8H||3<1A.3J(6A.8s()/3o)-bc.3v.er?(aB(bc.57.es),2E bc.57.es,2E bc.3v.er,1q.2L.6M.8H=!0,bc.22.3O.$8r.49().3i(19(){1h e=bb(18),t=e.1a(bc.1s.1p.21),i=t.2V.c6;e.on("cb."+W+" 4t."+W,".cp-6B",19(){bc.22.cc(bb(18)),bc.22.cd(e,t),bc.22.ce(e),bc.22.3O.31(e,i.$az,i.9m,t)}).on("cf."+W,19(){bc.22.3O.31(e,i.$az,i.9m,t)}).on("aC."+W,19(){bc.22.3O.28(e,i.$az,t,!0)}).on("eu."+W,19(){bc.22.3O.9n(e,i.$az,i.9m,t,!0)})}),bc.1R.3m(bc.1c,{en:!1})):bc.1R.3m(bc.1c,{en:!0})},25))},9n:19(t,e,i,s,o){if(2H!==s.2T.67)2J(i=i.26("&67=0","").26("&67=1",""),s.2T.67){1g!0:i+="&67=1";1l;1g!1:i+="&67=0"}if(2H!==s.2T.5b)2J(i=i.26("&5b=0","").26("&5b=1",""),s.2T.5b){1g!0:i+="&5b=1";1l;1g!1:i+="&5b=0"}e.1O("2m",i),s.2V.3P=4f c9.pv(e[0],{1H:{pw:19(){2H!==s.2T.4O&&s.2V.3P.hI(s.2T.4O),o&&!s.2V.ev||(s.2V.3P.ew(),s.2V.ev=!1)},py:19(e){0===e.1a&&(s.is.2C?s.2V.3P.cg(0):bc.22.ch(t,s))}}})},31:19(e,t,i,s){s.2V.3P?s.2V.3P.ew?s.2V.3P.ew():s.2V.ev=!0:18.9n(e,t,i,s)},28:19(e,t,i,s){i.2V.3P&&(i.2V.3P.pz(),s&&i.2V.3P.cg(0),i.is.2C||bc.22.ci(e.1C(".cp-6B")))}},4v:{1p:19(){1h d,e,t=18.$8r=bc.1c.$7B.1C(\'4A[2m*="3P.4v"], 4A[1a-2m*="3P.4v"]\');t.1v&&(bc.3v.ex=1A.3J(6A.8s()/3o),bc.22.$7G=bc.22.$7G.2O(t.49()),d=0,bb("<6O>").1O({2m:bc.22.7M+"//f.pA.5x/js/pB.aa.js",29:"5t/pC"}).2s("aA"),bc.57.ey=ca(19(){bc.1R.3m(bc.1c,{eo:!0}),(1q.pD||3<1A.3J(6A.8s()/3o)-bc.3v.ex)&&(aB(bc.57.ey),2E bc.57.ey,2E bc.3v.ex,1q.2L.6M.b8=!0,e())},25),e=19(){bc.22.4v.$8r.3i(19(){1h t=bb(18).1O("id","cp-4v-"+ ++d),i=t.49(),s=i.1a(bc.1s.1p.21),e=(t.1O("2m")||t.1O("1a-2m")).26(/&hB;/g,"&").26("4N=1","4N=0").26("?","?hC=ag&"),o=-1===e.1k("?")?"?":"&",n=-1===e.1k("ax")?bc.22.7M:"",a="hD=hE&2r=1&pE=cp-4v-"+d,r=bc.22.7M+"//4v.5x/2r/pF/4P/"+e.1M("4P/")[1].1M("?")[0]+".hJ?pG=?",l=n+e+o+a;s.2V={29:"4v",c6:{}},bc.22.c7(s),s.is.2C&&bc.22.al(s,i),bb.pH(r,19(e){s.is.2C||bc.22.c8(i,t,l,e[0].pI,s)}),i.on("cb."+W+" 4t."+W,".cp-6B",19(){bc.22.cc(bb(18)),bc.22.cd(i,s),bc.22.ce(i),bc.22.4v.31(i,t,l,s)}).on("cf."+W,19(){bc.22.4v.31(i,t,l,s)}).on("aC."+W,19(){bc.22.4v.28(i,t,s,!0)}).on("eu."+W,19(){bc.22.4v.9n(i,t,l,s,!0)})}),bc.1R.3m(bc.1c,{eo:!1})})},9n:19(e,t,i,s,o){if(2H!==s.2T.67)2J(i=i.26("&9o=0","").26("&9o=1","").26("&9p=0","").26("&9p=1","").26("&9q=0","").26("&9q=1",""),s.2T.67){1g!0:i=i.26("9o=0","9o=1","").26("9p=0","9p=1","").26("9q=0","9q=1","");1l;1g!1:i=i.26("9o=1","9o=0","").26("9p=1","9p=0","").26("9q=1","9q=0","")}t.1O("2m",i);19 n(){s.is.2C?s.2V.3P.2r("cg",0).2r("31"):bc.22.ch(e,s)}s.2V.3P=$f(t[0]),s.2V.3P.hK("cj",19(){s.2V.3P.hK("pJ",n),2H!==s.2T.4O&&s.2V.3P.2r("hI",s.2T.4O/1r),o||s.2V.3P.2r("31")})},31:19(e,t,i,s){s.2V.3P?s.2V.3P.2r("31"):18.9n(e,t,i,s)},28:19(e,t,i,s){i.2V.3P&&(i.2V.3P.2r("5n"),s&&i.2V.3P.2r("cg",0),i.is.2C||bc.22.ci(e.1C(".cp-6B")))}},5G:{1p:19(){1h o;18.$2f=bc.1c.$7B.1C("4P, 8h"),bc.22.$7G=bc.22.$7G.2O(18.$2f.49()),18.$2f.1v&&(o=0,bc.22.5G.$2f.3i(19(){1h e,t=bb(18).1O("id","cp-5G-"+ ++o),i=bb(18).49(),s=i.1a(bc.1s.1p.21);s.2V={29:"5G",c6:{}},bc.22.c7(s),s.is.2C&&bc.22.al(s,i),t.1O("4N")&&(e=t.7J("4N").ck(!0,!0),t.5w(),t=e.2s(i),i.1a("cp",i.1a("cp")+" 4N: ag;")),s.is.2C||bc.22.c8(i,t,!1,!1,s),t.on("pK."+W,19(){s.is.2C?(t[0].hL=0,t[0].31()):bc.22.ch(i,s)}),i.on("cb."+W+" 4t."+W,".cp-6B",19(e){bc.22.cc(bb(18)),bc.22.cd(i,s),bc.22.ce(i),bc.22.5G.31(i,t,s)}).on("cf."+W,19(){bc.22.5G.31(i,t,s)}).on("aC."+W,19(){bc.22.5G.28(i,t,s,!0)})}))},31:19(e,t,i){2H===i.2T.4O||i.2V.hM||(t[0].4O=i.2T.4O/1r,i.2V.hM=!0),t[0].31()},28:19(e,t,i,s){t[0].5n(),s&&(t[0].hL=0),i.is.2C||bc.22.ci(e.1C(".cp-6B"))}},al:19(e,t){1h i,s;e.2T={5b:!1,4N:!1,67:!1,bq:"8N",2D:!1,4O:e.2T.4O?e.2T.4O:0},t.1a("cp")&&-1!==t.1a("cp").1k("8t:")&&0==t.4r(".cp-6B").1v&&(i=bb("<1y>").2j("cp-6B").2s(t),s=t.1a("cp").1M("8t:")[1].1M(";")[0].4q(),bb("<1y>").2s(i).2j("cp-ez").1O({1Z:"2k-5y: 7c("+s+")"}))},c7:19(e){e.is.a6=!0},c8:19(e,t,i,s,o){1h n=bb("<1y>").2j("cp-6B").2s(e);2H===o.2T.4N&&bc.o.9V||o.2T.4N?e.2j("cp-4N"):bb("<1y>").2s(n).2j("cp-pL"),e.1a("cp")&&-1!==e.1a("cp").1k("8t:")&&(s=e.1a("cp").1M("8t:")[1].1M(";")[0].4q()),t.is("4A")?bb("<1y>").2s(n).2j("cp-ez").1O({1Z:"2k-5y: 7c("+s+")"}):(s||2x 0===t.1O("8t")||(s=t.1O("8t"),t.7J("8t")),s&&bb("<1y>").2s(n).2j("cp-ez").1O({1Z:"2k-5y: 7c("+s+")"}))},cd:19(e,t){!t.is.3L&&bc.o.9W&&(bc.1R.3m(bc.1D,{9k:!0}),"2M"==bc.o.9W&&18.ay++)},cc:19(e){e.4i(bc.1b.22.1s.4i).5X(bc.1b.22.1s.5X)},ci:19(e){e.5Y(bc.1b.22.1s.5Y)},ch:19(e,t){"2M"!=bc.o.9W||t.is.2C||(t.is.3L||18.c5++,18.c5==18.ay&&0!==18.ay&&(bc.1R.3m(bc.1D,{9k:!1}),bc.1D.pM=1,bc.1D.3B()))},eA:19(e){1h t=e.1a(bc.1s.1p.21);t.is.a6&&(bc.1n.7f&&(B.4H("cp-1n-is-6y")&&t.2f.$8j.4H("cp-3l-on-6y")||B.4H("cp-1n-is-6z")&&t.2f.$8j.4H("cp-3l-on-6z"))||(2H===t.2T.4N&&bc.o.9V||t.2T.4N)&&e.1C(".cp-6B").4U("cb"))},28:19(s){1h o=18;s=2x 0===s||s,bc.1m.2W("2I,1P,3O").3i(19(){1h e=bb(18),t=e.4j(".cp-3a"),i=t.1a(bc.1s.1p.21);o.3O.28(t,e,i,s)}),bc.1m.2W("2I,1P,4v").3i(19(){1h e=bb(18),t=e.4j(".cp-3a"),i=t.1a(bc.1s.1p.21);o.4v.28(t,e,i,s)}),bc.1m.2W("2I,1P,5G").3i(19(){1h e=bb(18),t=e.4j(".cp-3a"),i=t.1a(bc.1s.1p.21);o.5G.28(t,e,i,s)}),18.ay=0,18.c5=0},ce:19(e){bc.1b.1G.5Z(2H,e.4j(".cp-in-1P")[0])}},bc.1x={2y:{1p:19(){bc.o.dt&&18.as.1p(),(bc.o.9S||bc.o.bk)&&18.24.1p()},as:{1p:19(){bb(\'<a 2v="cp-1x-2u cp-3r-2K" 4s="#" />\').on("4t."+W,19(e){e.3N(),B.3V("2K")}).2s(B),bb(\'<a 2v="cp-1x-2u cp-3r-20" 4s="#" />\').on("4t."+W,19(e){e.3N(),B.3V("20")}).2s(B),bc.o.gm&&18.9r()},9r:19(){B.1C(".cp-3r-2K, .cp-3r-20").1e({3x:"3I"}),B.on("6e."+W,19(){bc.1x.2y.eB||B.1C(".cp-3r-2K, .cp-3r-20").28(!0,!0).5Y(5E)}).on("5H."+W,19(){B.1C(".cp-3r-2K, .cp-3r-20").28(!0,!0).5X(5E)})}},24:{1p:19(){18.1Y=bb(\'<1y 2v="cp-1x-2u cp-24-3r-1Y" />\').2s(B),bc.o.bk&&"9s"!=bc.o.6l&&18.cl.1p(),bc.o.9S?18.hN():"9s"!=bc.o.6l&&18.hO(),bc.o.bl&&"9s"!=bc.o.6l&&18.9r(),"9s"==bc.o.6l&&(18.1Y.2j("cp-hP-53"),18.53.1p())},cl:{1p:19(){1h t=18;bb(\'<82 2v="cp-24-9t" />\').2s(B.1C(".cp-24-3r-1Y"));2q(1h e=0;e<bc.1j.3t;e++){1h i=bb(\'<a 4s="#" />\').2s(B.1C(".cp-24-9t")).1a("1T",e+1).on("4t."+W,19(e){e.3N(),B.3V(bb(18).1a("1T"))});"1t"==bc.o.6l&&i.on("6e."+W,19(){1h e=bb(18);B.1C(".cp-2D-1t-3G").1e({1S:1o(t.8u.1e("5D-1S")),2l:1o(t.8u.1e("5D-2l"))}),t.aD.on("58."+W,19(){0===bb(18).1d()?t.aD.1e({6q:"dM",7F:"0 2M",1S:"2M"}):t.aD.1e({6q:"hQ",4u:-bb(18).1d()/2,1S:"50%"}),t.aD.1e("3x","3I").28(!0,!0).5Y(cm)}).1O("2m",bc.1j[e.1a("1T")].1a.2D),t.8u.1e({3x:"5u"}).28().8v({1S:bb(18).6q().1S+(bb(18).1d()-t.8u.5k())/2},cm),t.eC.1e({3x:"3I",7N:"4B"}).28().5Y(cm)}).on("5H."+W,19(){t.eC.28().5X(cm,19(){t.8u.1e({7N:"5m",3x:"5u"})})})}t.2e.3q(bc.1j.3A.1T),"1t"==bc.o.6l&&t.2e.1t()},2e:{3q:19(e){2x 0===e&&(e=bc.1j.2I.1T),e--,B.1C(".cp-24-9t a").4h("cp-3r-3q"),B.1C(".cp-24-9t a:eq( "+e+" )").2j("cp-3r-3q")},1t:19(){1h e=bc.1x.2y.24.cl,t=bb(\'<1y 2v="cp-2D-1t"><1y 2v="cp-2D-1t-7O"><1y 2v="cp-2D-1t-bg"></1y><1y 2v="cp-2D-1t-3G"><3G></1y><82></82></1y></1y>\').2s(B.1C(".cp-24-9t"));B.1C(".cp-2D-1t, .cp-2D-1t-3G").1e({1d:bc.o.du,1i:bc.o.9T}),e.8u=B.1C(".cp-2D-1t"),e.aD=e.8u.1C("3G").1e({1i:bc.o.9T}),e.eC=B.1C(".cp-2D-1t-7O").1e({7N:"5m",3x:"5u"}),t.2s(B.1C(".cp-24-9t"))}}},hN:19(){18.aE=bb(\'<a 2v="cp-3r-3B" 4s="#" />\').on("4t."+W,19(e){e.3N(),B.3V("3B")}).cn(B.1C(".cp-24-3r-1Y")),18.aF=bb(\'<a 2v="cp-3r-28" 4s="#" />\').on("4t."+W,19(e){e.3N(),B.3V("28")}).2s(B.1C(".cp-24-3r-1Y")),bc.o.9Q?18.aG("3B"):18.aG("28")},aG:19(e){if(bc.o.9S)2J(e){1g"3B":18.aE.2j("cp-3r-3B-3q"),18.aF.4h("cp-3r-28-3q");1l;1g"28":18.aE.4h("cp-3r-3B-3q"),18.aF.2j("cp-3r-28-3q")}},hO:19(){bb(\'<82 2v="cp-3r-hR cp-3r-pN" />\').cn(B.1C(".cp-24-3r-1Y")),bb(\'<82 2v="cp-3r-hR cp-3r-pO" />\').2s(B.1C(".cp-24-3r-1Y"))},9r:19(){1h e=18;e.1Y.1e({3x:"3I"}),B.on("6e."+W,19(){bc.1x.2y.eB||e.1Y.28(!0,!0).5Y(5E)}).on("5H."+W,19(){e.1Y.28(!0,!0).5X(5E)})},eD:19(e){if(bc.o.bl&&!B.4H("cp-1t"))2J(e){1g"on":bc.1x.2y.24.53.1Y.1e({7N:"5m",3x:"5u"});1l;1g"6C":bc.1x.2y.24.53.1Y.1e({7N:"4B",3x:"3I"})}},53:{1p:19(){18.1Y=bb(\'<1y 2v="cp-1x-2u cp-2D-1Y"></1y>\').2s(B),bb(\'<1y 2v="cp-2D"><1y 2v="cp-2D-7O"><1y 2v="cp-2D-2h-4w"><1y 2v="cp-2D-2h"></1y></1y></1y></1y>\').2s(18.1Y),18.$2u=B.1C(".cp-2D-2h-4w"),"co"in 1q?18.$2u.2j("cp-pP"):18.$2u.on("6e."+W,19(){bb(18).2j("cp-2D-2h-1t")}).on("5H."+W,19(){bb(18).4h("cp-2D-2h-1t"),bc.1x.2y.24.53.3s()}).on("6D."+W,19(e){1h t=1o(e.cq-bb(18).5S().1S)/bb(18).1d()*(bb(18).1d()-bb(18).1C(".cp-2D-2h").1d());bb(18).1C(".cp-2D-2h").28().1e({4u:t})});2q(1h e=0;e<bc.1j.3t;e++){1h t=e+1,i=bb(\'<a 4s="#" 2v="cp-7P-\'+(e+1)+\'"><3G 2m="\'+bc.1j[t].1a.2D+\'"></a>\');bc.1j[t].1a.e2&&i.1C("3G").1O("eE",bc.1j[t].1a.e2),i.1a("1T",t).on("4t."+W,19(e){e.3N(),B.3V(bb(18).1a("1T"))}).2s(B.1C(".cp-2D-2h")),"co"in 1q||i.on("6e."+W,19(){bb(18).4r().28().cr(5E,bc.o.dv/1r)}).on("5H."+W,19(){bb(18).4r().4H("cp-7P-3q")||bb(18).4r().28().cr(5E,bc.o.dw/1r)})}bc.1x.2y.24.aE&&bc.1x.2y.24.aF&&(bc.1x.2y.24.1Y=bb(\'<1y 2v="cp-24-3r-1Y cp-pQ-53"></1y>\').2s(B),bc.1x.2y.24.aE.ck().on("4t."+W,19(e){e.3N(),B.3V("3B")}).2s(bc.1x.2y.24.1Y),bc.1x.2y.24.aF.ck().on("4t."+W,19(e){e.3N(),B.3V("28")}).2s(bc.1x.2y.24.1Y)),bc.o.bl&&18.9r()},9r:19(){1h e=18;e.1Y.1e("3x","3I"),bc.1x.2y.24.1Y&&(bc.1x.2y.24.1Y="5u"==bc.1x.2y.24.1Y.1e("3x")?bc.1x.2y.24.1Y:B.1C(".cp-hP-53"),bc.1x.2y.24.1Y.1e("3x","3I")),B.on("6e."+W,19(){B.2j("cp-1t"),bc.1x.2y.eB||(e.1Y.28(!0,!0).5Y(5E),bc.1x.2y.24.1Y&&bc.1x.2y.24.1Y.28(!0,!0).5Y(5E))}).on("5H."+W,19(){B.4h("cp-1t"),e.1Y.28(!0,!0).5X(5E),bc.1x.2y.24.1Y&&bc.1x.2y.24.1Y.28(!0,!0).5X(5E)})},7e:19(e){1h t=e||bc.1j.20.1T;B.1C(".cp-2D-2h a:5F(.cp-7P-"+t+" )").4r().3i(19(){bb(18).4h("cp-7P-3q").28().cr(9R,bc.o.dw/1r)}),B.1C(".cp-2D-2h a.cp-7P-"+t).4r().2j("cp-7P-3q").28().cr(9R,bc.o.dv/1r)},3s:19(){1h e,t,i;B.1C(".cp-2D-2h-4w").4H("cp-2D-2h-1t")||(e=!!B.1C(".cp-7P-3q").1v&&B.1C(".cp-7P-3q").49())&&(t=e.6q().1S+e.1d()/2,i=0<(i=(i=B.1C(".cp-2D-2h-4w").1d()/2-t)<B.1C(".cp-2D-2h-4w").1d()-B.1C(".cp-2D-2h").1d()?B.1C(".cp-2D-2h-4w").1d()-B.1C(".cp-2D-2h").1d():i)?0:i,B.1C(".cp-2D-2h").8v({4u:i},pR))},1L:19(){bc.1x.2y.24.eD("on");1h e=-1==bc.1c.3Z.1d.1k("%")?1o(bc.1c.3Z.e0):B.1d(),t=B.1C(".cp-2D"),i=-1==bc.o.bm.1k("%")?1o(bc.o.bm):1o(e/1r*1o(bc.o.bm));B.1C(".cp-2D-2h a").1e({1d:1o(bc.o.du*bc.1L.1Q),1i:1o(bc.o.9T*bc.1L.1Q)}),B.1C(".cp-2D-2h a:bO").1e({7F:0}),B.1C(".cp-2D-2h").1e({1i:1o(bc.o.9T*bc.1L.1Q)}),t.1e({1d:i*1A.3J(1r*bc.1L.1Q)/1r}),t.1d()>B.1C(".cp-2D-2h").1d()&&t.1e({1d:B.1C(".cp-2D-2h").1d()}),bc.1x.2y.24.eD("6C")}}}},4X:{58:19(){B.2j("cp-"+bc.o.4X);1h e=bc.o.8O+bc.o.4X+"/4X.1e",t=bb("aA").1v?bb("aA"):bb("3T"),i=bb(\'4Q[4s^="\'+e+\'"], 4Q[4s*="/pS/hS/pT-"], 4Q[4s$="pU.1e"]\');i.1v?bc.1x.4X.7Q||(bc.1x.4X.7Q=!0,bc.3v.eF=5W(19(){2E bc.3v.eF,bc.1c.1p()},e9)):i=2G.hT?(2G.hT(e),bb(\'4Q[4s="\'+e+\'"]\')):bb(\'<4Q ep="hU" 4s="\'+e+\'" 29="5t/1e" />\').2s(t),i.on("58."+W,19(){bc.1x.4X.7Q||(bc.1x.4X.7Q=!0,bc.3v.eG=5W(19(){2E bc.3v.eG,bc.1c.1p()},e9))}),bc.3v.eH=5W(19(){bc.1x.4X.7Q||(bc.1x.4X.7Q=!0,2E bc.3v.eH,bc.1c.1p())},3o)}},4J:{1p:19(){18.2e(),18.1L()},2e:19(){18.$2u=bb(\'<1y 2v="cp-1x-2u cp-4J"></1y>\').2s(B),"5u"!=18.$2u.1e("3x")||18.$2u.1C("3G").1v||(18.4l=19(){bc.1x.4J.$2u.1e({3x:"3I",7N:"4B"}).5Y(6V,19(){bc.1x.4J.4l=!1})},18.5y=bb("<3G>").1O("2m",bc.o.8O.26("/7D/1e/","/7D/3G/")+bc.o.4X+"/4J.e3").2s(18.$2u),18.hV="4o"==2z 1o(B.1e("5D-24"))?1o(B.1e("5D-24")):0)},1L:19(){18.5y&&(0<18.5y.1i()?0<18.hV?18.$2u.1e({1i:18.5y.1i()/2}):18.$2u.1e({1i:18.5y.1i(),5U:-18.5y.1i()/2}):bc.3v.hW=5W(19(){2E bc.3v.hW,bc.1x.4J.1L()},50))}},2t:{1p:19(){bc.o.gn&&18.4V.6f(),bc.o.go&&18.4x.6f();1h e=!1;(e=bc.o.gp?bb("<1y>").hX(B):bb(\'[1a-2S-2q="\'+B.1O("id")+\'"], [1a-2S-2q="\'+W+\'"]\')).1v&&(e.2j("cp-1x-2u"),18.2S.6f(e))},4V:{6f:19(){18.$2u=bb("<1y>").2j("cp-1x-2u cp-4V-hY").2s(B)}},4x:{6f:19(){18.$2u=bb("<1y>").2j("cp-1x-2u cp-4x-hY").2s(B),18.$2u.6W(bb(\'<1y 2v="cp-ct-6m"></1y><1y 2v="cp-ct-1S"><1y 2v="cp-ct-4n"><1y 2v="cp-ct-hZ"><1y 2v="cp-ct-i0"></1y></1y></1y></1y><1y 2v="cp-ct-41"><1y 2v="cp-ct-4n"><1y 2v="cp-ct-hZ"><1y 2v="cp-ct-i0"></1y></1y></1y></1y>\')),18.$2u.1a("3k",{1V:18.$2u.1e("1V")})}},2S:{$5I:[],$2u:[],$eI:[],$7R:[],$cs:[],eJ:[],aH:[],7S:[],6f:19(e){19 i(e,t){(s=(e.cq?e.cq:bc.1n.i1)-n.$2u[t].5S().1S-n.7S[t]/2)<0&&(s=0),s>n.aH[t]-n.7S[t]&&(s="eK( 1r% - "+bc.1x.2t.2S.7S[t]+"px )"),n.$7R[t].1e({1S:s}),bc.1b.1G&&bc.1b.1G.3R("5s"==2z s?bc.1b.1m.1z.3R:s/(n.aH[t]-n.7S[t])*bc.1b.1m.1z.3R)}1h s,o=bb(2G),n=18;bb.3i(e,19(t,e){n.$5I[t]=bb(e).2j("cp-2S-4w "+W),n.$2u[t]=bb("<1y>").2j("cp-2S").2s(n.$5I[t]),n.$eI[t]=bb("<1y>").2j("cp-pV").2s(n.$2u[t]),n.$7R[t]=bb("<1y>").2j("cp-2S-1c-4w").2s(n.$5I[t]),n.$cs[t]=bb("<1y>").2j("cp-2S-1c").2s(n.$7R[t]),n.7S[t]=n.$7R[t].1d(),n.$7R[t].1e({5U:-n.$cs[t].5l()/2}),n.$5I[t].on("aI."+W,19(e){i(e,t)}),n.$5I[t].on("pW."+W+" i2."+W,19(e){bc.1b.1m.1z.5n(0),bb("3T").ak("aq",!0).2j("cp-aq"),bb(2G).on("6D."+W,19(e){i(e,t)}),i(e,t)}),o=o.2O(n.$cs[t])}),o.on("pX."+W+"cu."+W,19(e){bb(e.5R).4j(B).1v||(bc.1b.1G&&bc.1b.1m.1z.23.7L&&bc.1b.1G.3R()!==bc.1b.1m.1z.3R&&bc.1R.3m(bc.1b.1m.1z,{7L:!1}),bb(2G).6C("6D."+W),bb("3T").ak("aq",!1).4h("cp-aq"),bc.o.83&&!bc.1D.23.7d||bc.1c.56||!bc.1b.1G||(!0===bc.1b.1m.1z.23.eL?bc.1b.1m.1z.8l():bc.1b.1m.1z.31()))})}}},cv:{1p:19(){18.$2u=bb("<1y>").1e({3x:"3I"}).2j("cp-1x-2u cp-i3-4w").2s(B),bb("<1y>").2j("cp-i3-pY").2s(18.$2u)},4l:19(){18.$2u.4i(pZ).5Y(5E)},3l:19(){18.$2u.28(!0,!0).5X(5E)}}},bc.2y={3y:"20",1p:19(){1<bc.1j.3t&&(18.2e.i4(),18.2e.i5())},2e:{i4:19(){bc.o.gk&&bb("3T").on("q0."+W,19(e){bc.1c.q1||bc.1c.q2||(37==e.i6?bc.2y.2K():39==e.i6&&bc.2y.20())})},i5:19(){"co"in 1q&&bc.o.gl&&(bc.1c.$61.on("i2."+W,19(e){1h t=e.7g?e.7g:e.eM.7g;1==t.1v&&(bc.1n.cw=bc.1n.aJ=t[0].eN)}),bc.1c.$61.on("aI."+W,19(e){1h t=e.7g?e.7g:e.eM.7g;1==t.1v&&(bc.1n.aJ=t[0].eN),45<1A.4y(bc.1n.cw-bc.1n.aJ)&&e.3N()}),bc.1c.$61.on("cu."+W,19(e){45<1A.4y(bc.1n.cw-bc.1n.aJ)&&(0<bc.1n.cw-bc.1n.aJ?B.3V("aK"):B.3V("aL"))}))}},2K:19(){(!bc.1c.8w||bc.1c.8w&&bc.1c.23.4K)&&(18.3y="2K",18.cx="2K",bc.1D.2e.as("2K"))},20:19(){(!bc.1c.8w||bc.1c.8w&&bc.1c.23.4K)&&(18.3y="20",18.cx="20",bc.1D.2e.as("20"))},3B:19(){bc.1R.3m(bc.1D,{7d:!0,4I:!1}),!0===bc.1D.23.ap&&bc.1R.3m(bc.1D,{ap:!1}),bc.1x.2y.24.aG("3B"),bc.1D.23.ao||1!==bc.1b.1G.5o()&&bc.1b.1m.1z.8l(),bc.1D.3B()},28:19(){bc.1x.2y.24.aG("28"),bc.o.83&&bc.1b.1m.1z.5n(),bc.1D.28()}},bc.8p={1p:19(){bc.1c.$7B.1C(".cp-2h 3G").3i(19(){1h e,t=bb(18),i=t[0],s={};t.is(".cp-3a, .cp-bg")&&(i.ai("1d")&&(s.1d=i.ai("1d")),i.ai("1i")&&(s.1i=i.ai("1i")),i.cy&&(s.cy=i.cy),i.cz&&bc.o.dD&&(s.cA=i.cz,s.8x=i.eO,e=s.cA.1M(",").q3(19(e){1N 1o(bb.4q(e).1M(" ")[1])}),s.4a=1A.47.q4(2H,e)),t.7J("1d").7J("1i").7J("cy").7J("cz"),bb.54(s)||(t.1a(bc.1s.1p.21).7I=s)),t.1a("i7-2m")&&t.1a("2m",t.1a("i7-2m")),t.1a("2m")?s.8x&&t.1a("2m",s.8x):t.1a("2m",s.8x?s.8x:i.2m),t.1O("2m","1a:5y/q5;q6,q7///q8")})},em:19(e,t){1h s,o,n;!0!==bc.1j[e].9i?(18.8y=e,t?(18.aM=t,bc.1R.3m(bc.1c,{au:!0}),bc.1x.cv.4l()):18.aM=!1,bc.1c.i8&&B.1e({7N:"4B"}),18.7h=[],s=18,bc.1c.$7B.1C(".cp-2h:eq("+(s.8y-1)+") *").3i(19(){o=bb(18),n=18;1h e,t,i=o.1a(bc.1s.1p.21);o.is("3G")?(o.1a("2m")&&o.1O("2m",o.1a("2m")),i&&i.7I&&i.7I.cA&&bc.o.dD&&(n.cz=i.7I.cA),e=n.2m,(t=!!(i&&i.7I&&i.7I.8x)&&i.7I.8x)&&e!==t&&o.is(".cp-bg")&&(e=t,bc.1j[s.8y].1a.$2k.1O("2m",e)),bc.8p.7h.5v([e,o])):"3I"!==o.1e("2k-5y")&&-1!==o.1e("2k-5y").1k("7c")&&bc.8p.7h.5v([o.1e("2k-5y").4z(/7c\\((.*)\\)/)[1].26(/"/gi,""),o])}),bc.1b.4L&&bc.o.8Q&&bc.8p.7h.5v([bc.o.8Q,bb()]),18.i9||18.53(),0===18.7h.1v?18.4p():18.3B()):bc.1c.cB&&t&&(bc.1L.eP(bc.1m.2W("20, bg")),bc.1L.1m(t))},53:19(){2q(1h e=bc.1c.53.1w(19(e,t,i){1N i.1k(e)==t}),t=e.1v,i=0;i<t;i++){(4f ia).2m=e[i].26("/7D/1e/","/7D/3G/")}18.i9=!0},3B:19(){18.ib=0;2q(1h e=18,t=19(){++e.ib==e.7h.1v&&e.4p()},i=19(){18.eQ.1a("hk",18.1d),18.eQ.1a("hl",18.1i),t()},s=19(){t()},o=0;o<18.7h.1v;o++){1h n=4f ia;n.cC("6n",s,!1),n.cC("58",i,!1),n.2m=18.7h[o][0],n.eQ=18.7h[o][1]}},4p:19(){1h o=18;18.aM?(bc.1m.5T(18.8y),19 e(){1h t,i,s;0!==bc.1j[o.8y].$1m.1v?bc.3v.ic=5W(e,1r):(2E bc.3v.ic,bc.1R.3m(bc.1b.1m.1E,{cj:!0}),bb(".cp-2D-1Y, .cp-3r-20, .cp-3r-2K, .cp-24-3r-1Y").1e({7N:"4B"}),bc.1j[o.8y].9i=!0,t=!(!1q.2L.6M.8H&&bc.1m.2W("20,in,3O,bU").1v),i=!(!1q.2L.6M.b8&&bc.1m.2W("20,in,4v,bU").1v),s=19(){bc.1x.cv.3l(),bc.1c.cB?(bc.1L.eP(bc.1m.2W("20, bg")),bc.1L.1m(o.aM)):o.aM()},t&&i?s():bc.57.eR=ca(19(){(t||1q.2L.6M.8H)&&(i||1q.2L.6M.b8)&&(aB(bc.57.eR),2E bc.57.eR,s())},50))}()):bc.1m.5T(18.8y,!0),bc.1R.3m(bc.1c,{au:!1})}},bc.1L={eP:19(e){18.$aN=e.2O(bc.1m.2W("3q")),bc.1j.20.1a.$2C.1v&&(18.$aN=18.$aN.2O(bc.1j.20.1a.$2C))},5C:19(){if(!2G.3T.8g($))1N!1;bc.2r.4c("ig")&&B.4k("ig",bc.2r.4g()),18.1c(),18.2y(),18.1m(),18.4J(),18.2t(),bc.1b.1m.1z.6E&&bc.o.gu&&(bc.1R.ih(),bc.1b.1m.1z.6f(!0)),bc.2r.4c("ii")&&B.4k("ii",bc.2r.4g())},q9:19(){bb(1q).bP(1A.7a(bc.1c.4C)-(bc.1n.3D-bc.1c.1i)/2)},1c:19(){if(!2G.3T.8g($))1N!1;1h e,t,i,s,o=bc.1c.$eS?bc.1c.$eS:bc.1R.ij("1d"),n=bc.1c.3Z,a=bc.1c.$eT?o.1d()/1r*bc.1c.$eT:o.1d(),r=n.29,l=0!==n.4a?n.4a:a,d="2M"===n.4u?0:n.4u,p="2M"===n.9u?0:n.9u;2J(bc.1c.23.8k?B[0].1Z.4a="":0!==n.4a&&(B[0].1Z.4a=n.4a+"px"),-1!==l.1k("%")&&(l=a/1r*1o(l)),l<(a-=d+p)&&0<=l&&(a=l),bc.o.dp&&("6F"===r||"79"===r&&"cD"!==bc.o.8L&&"ik"!==bc.o.8L)&&(B.49(),t=o.5S().1S,i=1o(o.1e("5D-1S"))||0,s=1o(o.1e("74-1S-1d"))||0,B[0].1Z.4a="3I",B[0].1Z.4u=-(t+i+s)+"px",a=bc.1n.4d||bb(1q).1d()),a-=n.aO,bc.1c.23.8k&&(a=bc.1n.1d),r){1g"2b":e=(bc.1c.23.8k?(bc.1n.1Q>n.1Q?18.1Q=bc.1n.1i/n.1i:18.1Q=bc.1n.1d/n.1d,a=1A.7a(n.1d*18.1Q)):18.1Q=a/n.1d,1A.7a(n.1i*18.1Q));1l;1g"6F":e=a<bc.o.7r?(18.1Q=a/bc.o.7r,1A.7a(n.1i*18.1Q)):bc.1c.23.8k?bc.1n.1Q>n.aP/n.1i?(18.1Q=bc.1n.1i/n.1i,bc.1n.1i):(18.1Q=bc.1n.1d/n.aP,n.1i*18.1Q):(18.1Q=1,n.1i);1l;1g"79":2J(bc.o.8L.48()){1g"5c":e=bc.1n.3D-n.aQ;1l;1g"qa":e=bc.1n.3D-n.aQ,bc.1c.23.8k||(e-=bc.1c.il?bc.1c.il:bc.1c.4C);1l;1g"cD":a=B.49().1d()-n.aO,e=B.49().1i()-n.aQ;1l;1g"ik":a=B.49().1d()-n.aO,e=bc.1n.3D-n.aQ}a/e<n.1Q?18.1Q=a/n.aP:18.1Q=e/n.eU;1l;1g"im":1g"eV":18.1Q=1,a=n.1d,e=n.1i,bc.o.5O=1,$.1Z.4a="3I"}18.1Q=bc.o.5O&&0<bc.o.5O&&18.1Q>bc.o.5O?bc.o.5O:18.1Q,$.1Z.1d=a+"px",$.1Z.1i=e+"px",bc.1c.1d=a,bc.1c.1i=e;1h c=B.5S();bc.1c.qb=c.1S,bc.1c.qc=c.2l,bc.1n.7f?bc.1n.4d<qd&&qe<bc.1n.4d?B.4h("cp-1n-is-6y").2j("cp-1n-is-6z"):bc.1n.4d<qf&&B.4h("cp-1n-is-6z").2j("cp-1n-is-6y"):B.4h("cp-1n-is-6y cp-1n-is-6z").2j("cp-1n-is-bZ")},3X:19(e){2q(1h t=(""+e).1M(" "),i="",s=bc.o.5O&&0<bc.o.5O&&18.1Q>bc.o.5O?bc.o.5O:18.1Q,o=0,n=t.1v;o<n;o++)-1===t[o].1k("%")?i+=1A.7b(1o(t[o])*s)+"px ":i+=t[o]+" ";1N bb.4q(i)},1m:19(e){if(18.$aN){2q(1h t=18.1Q,i=18.$aN,s=bc.1c.3Z,o=bc.1c.1d,n=bc.1c.1i,a=o/n,r=[],l=[],d=[],p=[],c=0,u=0,h="2b"===s.29&&-1!==bc.o.5O?s.1d:s.aP,m="2b"===s.29&&-1!==bc.o.5O?s.1i:s.eU,u="79"===s.29||"6F"===s.29||"2b"===s.29?(c=0<h?(o-h*t)/2:0,0<m?(n-m*t)/2:0):(c=c<0?0:c,u<0?0:u),g=0,f=i.1v;g<f;g++){1h v,y=bb(i[g]),S=(i[g],y.1a(bc.1s.1p.21)),w=S.3k,b="im"===S.1u.6q,x=b?0:c,T=b?0:u,C={1d:b&&0!==w.9g?o/1r*w.9g:w.1d*t,1i:b&&0!==w.9h?n/1r*w.9h:w.1i*t,6Z:w.6Z*t,71:w.71*t,70:w.70*t,72:w.72*t,73:1A.7b(w.73*t),77:1A.7b(w.77*t),76:1A.7b(w.76*t),78:1A.7b(w.78*t),3X:18.3X(w.3X)},k={4u:w.4u*t,5U:w.5U*t},O={},I={3X:C.3X};if(b&&(w.9h||w.9g)&&S.is.gY&&(w.9h&&!w.9g&&(C.1d=w.1d*(C.1i/w.1i)),w.9g&&!w.9h&&(C.1i=w.1i*(C.1d/w.1d))),S.is.8Z&&(C.6v=w.6v*t,bc.1n.7f&&C.6v<S.2n.89?C.6v=S.2n.89:C.6v<S.2n.88&&(C.6v=S.2n.88),v=C.6v/w.6v,C.6v+="px","5c"!==w.bR&&(C.bR=2Z(w.bR)*v+"px"),"5c"!==w.bS&&(C.bS=2Z(w.bS)*v+"px")),S.is.5Q||S.is.2C)if(S.is.5Q){1h P=bc.1j[S.is.bu].1a.bn;2J((2x 0!==P&&"qg"!==P?P:bc.o.8M).26("1r% 1r%","eW")){1g"2M":1l;1g"8N":w.1Q<a?(C.1d=o,C.1i=C.1d/w.1Q):(C.1i=n,C.1d=C.1i*w.1Q);1l;1g"io":w.1Q<a?(C.1i=n,C.1d=C.1i*w.1Q):(C.1d=o,C.1i=C.1d/w.1Q);1l;1g"eW":C.1d=o,C.1i=n}C.1d=1A.7a(C.1d),C.1i=1A.7a(C.1i);1h L,$=bc.1j[S.is.bu].1a.bo;2J((L=2x 0!==$?$.1M(" "):bc.o.gd.1M(" "))[0]){1g"1S":C.x=0;1l;1g"6m":C.x=(bc.1c.1d-C.1d)/2;1l;1g"41":C.x=bc.1c.1d-C.1d;1l;5j:-1!==L[0].1k("%")?C.x=(bc.1c.1d-C.1d)/1r*1o(L[0]):C.x=1o(L[0])}if(2x 0!==L[1])2J(L[1]){1g"2l":C.y=0;1l;1g"6m":C.y=(bc.1c.1i-C.1i)/2;1l;1g"24":C.y=bc.1c.1i-C.1i;1l;5j:-1!==L[1].1k("%")?C.y=(bc.1c.1i-C.1i)/1r*1o(L[1]):C.y=1o(L[1])}C.3Q="5p("+C.x+"px) 5q("+C.y+"px)",C["-ms-3Q"]="5p("+C.x+"px) 5q("+C.y+"px)",C["-5J-3Q"]="5p("+C.x+"px) 5q("+C.y+"px)"}3u S.is.2C&&(w.1Q<a?(C.1d=o,C.1i=C.1d/w.1Q):(C.1i=n,C.1d=C.1i*w.1Q),C.x=(bc.1c.1d-C.1d)/2,C.y=(bc.1c.1i-C.1i)/2,C.1d=1A.7a(C.1d),C.1i=1A.7a(C.1i),C.3Q="5p("+C.x+"px) 5q("+C.y+"px)",C["-ms-3Q"]="5p("+C.x+"px) 5q("+C.y+"px)",C["-5J-3Q"]="5p("+C.x+"px) 5q("+C.y+"px)");3u{if(S.2T.79)2J(S.2T.bq){5j:1g"8N":w.1Q<a?(C.1d=o,C.1i=C.1d/w.1Q):(C.1i=n,C.1d=C.1i*w.1Q);1l;1g"io":w.1Q>a?(C.1d=o,C.1i=C.1d/w.1Q):(C.1i=n,C.1d=C.1i*w.1Q)}C.5k=C.1d+C.6Z+C.70+C.73+C.76,C.5l=C.1i+C.71+C.72+C.77+C.78,k.1d=O.1d=C.5k,k.1i=O.1i=C.5l,-1!=w.1S.1k("%")?"1r%"===w.1S?C.1S=0===x?bc.1c.1d/1r*2Z(w.1S)-C.5k:x+h*t/1r*2Z(w.1S)-C.5k:"0%"===w.1S?C.1S=0===x?0:x:C.1S=0===x?bc.1c.1d/1r*2Z(w.1S)-C.5k/2:x+h*t/1r*2Z(w.1S)-C.5k/2:C.1S=x+2Z(w.1S)*t,k.1S=C.1S,-1!=w.2l.1k("%")?"1r%"===w.2l?C.2l=0===T?bc.1c.1i/1r*2Z(w.2l)-C.5l:T+m*t/1r*2Z(w.2l)-C.5l:"0%"===w.2l?C.2l=0===T?0:T+0:C.2l=0===T?bc.1c.1i/1r*2Z(w.2l)-C.5l/2:T+m*t/1r*2Z(w.2l)-C.5l/2:C.2l=T+2Z(w.2l)*t,k.2l=C.2l}S.2b=C,r[g]=C,S.is.5Q||S.is.2C||(S.1u.e8.2b=k,l[g]=k,d[g]=O,p[g]=I)}2q(1h B=0,W=r.1v;B<W;B++){1h F=bb(i[B]),2P=F.1a(bc.1s.1p.21);F.1e(r[B]),2P.is.5Q||2P.is.2C?(2P.is.5Q||2P.is.2C)&&(2P.2f.$bQ.1e({1d:bc.1c.1d,1i:bc.1c.1i}),2P.2f.$8j.1e({1d:bc.1c.1d,1i:bc.1c.1i})):(F.1C(".1M-qh").1e(p[B]),18.3n(F,2P,l[B],d[B]))}2x 0!==e&&e()}},3n:19(e,t,i,s){i&&t.2f.$1Y.1e(i),s&&t.1B.1X&&t.2f.$7E.1e(s),ie.2X.2e(t.2f.$1Y[0],{2w:!1,1e:{2A:t.2A.3a*bc.1L.1Q}}),t.1B.1X&&ie.2X.2e(t.2f.$7E[0],{2w:!1,1e:{2A:t.2A.1B*bc.1L.1Q}}),t.1t.1X&&ie.2X.2e(e[0],{2w:!1,1e:{2A:t.2A.1t*bc.1L.1Q}}),t.2i.5K&&ie.2X.2e(t.2i.5K,{2w:!1,1e:{2A:t.2A.5t*bc.1L.1Q}}),t.2F.5K&&ie.2X.2e(t.2F.5K,{2w:!1,1e:{2A:t.2A.5t*bc.1L.1Q}}),t.1E.1X&&ie.2X.2e(t.2f.$8i[0],{2w:!1,1e:{2A:t.2A.1E*bc.1L.1Q}})},8z:19(e,t,i,s){if("5a"==2z i.x){2q(1h o=[],n=0;n<i.x.1v;n++)"5s"==2z i.x[n]?o[n]=18.aR(e,i.x[n],"ip"):o[n]=i.x[n]*bc.1L.1Q;t.6u.x=o}3u"5s"==2z i.x?t.x=18.aR(e,i.x,"ip"):2x 0!==i.x&&(t.x=i.x*bc.1L.1Q);if("5a"==2z i.y){2q(1h a=[],r=0;r<i.y.1v;r++)"5s"==2z i.y[r]?a[r]=18.aR(e,i.y[r],"iq"):a[r]=i.y[r]*bc.1L.1Q;t.6u.y=a}3u"5s"==2z i.y?t.y=18.aR(e,i.y,"iq"):2x 0!==i.y&&(t.y=i.y*bc.1L.1Q);if(s&&(t=s),"5a"==2z i.2N){2q(1h l=[],d=0;d<i.2N.1v;d++)l[d]=bc.1R.2Y.2N(i.2N[d],e);t.6u.2N=l}3u"5s"==2z i.2N&&(t.2N=bc.1R.2Y.2N(i.2N,e))},9v:19(e,t){2x 0!==t.1d&&(bb.6x(t.1d)?e.1d=1o(t.1d)*bc.1L.1Q:"5s"==2z t.1d&&-1!==t.1d.1k("%")&&(e.1d=bc.1c.1d/1r*1o(t.1d))),2x 0!==t.1i&&(bb.6x(t.1i)?e.1i=1o(t.1i)*bc.1L.1Q:"5s"==2z t.1i&&-1!==t.1i.1k("%")&&(e.1i=bc.1c.1i/1r*1o(t.1i))),t.3X&&(e.3X=bc.1L.3X(t.3X))},2o:19(e,t,i){t=bb.4q(t.26("ir(","").26(")",""));2q(1h s,o=e.1a(bc.1s.1p.21).2b,n=1A.7b(o.5k),a=1A.7b(o.5l),r=-1===t.1k(",")?t.1M(" "):t.1M(","),l="",d=0;d<r.1v;d++)if(-1!==r[d].1k("%"))2J(d){1g 0:l+=1o(a/1r*1o(r[d])*1r)/1r+"px ";1l;1g 1:l+=i?1o(1r*(n-n/1r*1o(r[d])))/1r+"px ":1o(n/1r*1o(r[d])*1r)/1r+"px ";1l;1g 2:l+=i?1o(1r*(a-a/1r*1o(r[d])))/1r+"px ":1o(a/1r*1o(r[d])*1r)/1r+"px ";1l;1g 3:l+=1o(n/1r*1o(r[d])*1r)/1r+"px"}3u 2J(s=1o(r[d])*bc.1L.1Q,d){1g 0:l+=s+"px ";1l;1g 1:l+=i?n-s+" ":s+"px ";1l;1g 2:l+=i?a-s+"px ":s+"px ";1l;1g 3:l+=s+"px"}1N"ir("+l+")"},aR:19(e,t,i){1h s=0,o=e.1a(bc.1s.1p.21),n=o.3k,a=o.2b,r=o.1u.e8.2b;if(n&&a&&r)2J(t){1g"1S":s=-1==n.1S.1k("%")||"1r%"===n.1S?-a.1S-a.5k-r.4u:-1o(n.1S)/1r*bc.1c.1d-a.5k/2-r.4u;1l;1g"41":s=-1==n.1S.1k("%")||"1r%"===n.1S?bc.1c.1d-a.1S-r.4u:(1-1o(n.1S)/1r)*bc.1c.1d+a.5k/2-r.4u;1l;1g"2l":s=-1==n.2l.1k("%")||"1r%"===n.2l?-a.2l-a.5l-r.5U:-1o(n.2l)/1r*bc.1c.1i-a.5l/2-r.5U;1l;1g"24":s=-1==n.2l.1k("%")||"1r%"===n.2l?bc.1c.1i-a.2l-r.5U:(1-1o(n.2l)/1r)*bc.1c.1i+a.5l/2-r.5U;1l;1g"1d":s=a.5k;1l;1g"-1d":s=-a.5k;1l;1g"1i":s=a.5l;1l;1g"-1i":s=-a.5l;1l;5j:s=-1!==t.1k("%")?a["e7"+i]/1r*1o(t):-1!==t.1k("sw")?1o(t.1M("sw")[0])/1r*bc.1c.1d:-1!==t.1k("sh")?1o(t.1M("lw")[0])/1r*bc.1c.1i:-1!==t.1k("lw")?a.5k/1r*1o(t.1M("lw")[0]):-1!==t.1k("lh")?a.5l/1r*1o(t.1M("lj")[0]):1o(t)*bc.1L.1Q}1N s},2y:19(){"9s"==bc.o.6l&&bc.1x.2y.24.53.1L()},4J:19(){bc.1x.4J.4l&&bc.1x.4J.4l(),bc.1x.4J.$2u&&bc.1x.4J.1L()},2t:19(){if(0<bc.1x.2t.2S.$5I.1v)2q(1h e=0,t=bc.1x.2t.2S.$5I.1v;e<t;e++)bc.1x.2t.2S.aH[e]=bc.1x.2t.2S.$5I[e].1d(),bc.1x.2t.2S.eJ[e]=bc.1x.2t.2S.$2u[e].1d()}},bc.1b={4L:!0,3B:19(){if(!2G.3T.8g($))1N!1;bc.1n.3s.qi=bc.1n.3s.3y,"9s"==bc.o.6l&&(bc.1x.2y.24.53.7e(),"co"in 1q||bc.1x.2y.24.53.3s()),18.1m.1P.it(),18.2h.1p()},2h:{$1Y:bb(),1p:19(){1h e,t,i,s,o,n;bc.1R.3m(bc.1c,{8o:!0}),bc.1b.1m.1E.3H(),bc.1c.$6c.4r(\'.cp-1E[1a-cp-1E="3q"]\').3i(19(){bb(18).1C(".cp-3a").1a(bc.1s.1p.21).1u.91===bc.1j.2I.1T&&bb(18).1O("1a-cp-1E","qj")}),bc.1b.3z=bc.1j.2I,bc.1b.2p=bc.1j.20,bc.1b.3U=4f ie.7i({4I:!0,4p:19(){bc.1b.2h.4p()}}),bc.1b.4L?(2x 0!==bc.1b.2p.1a.$2k&&(s=(i=bc.1b.2p.1a.$2k.1a(bc.1s.1p.21)).2B.6p?i.2B.3W.2R:1,o=i.2B.6p?i.2B.3W.2c:0,n=bc.1b.2p.1w.3W||"3I",bc.1b.3U.2e(bc.1b.2p.1a.$2k[0],{"-5J-1w":n,1w:n},0),bc.1b.3U.42(bc.1b.2p.1a.$2k.4j(".cp-bg-5T")[0],bc.o.bi,{2w:!1,1e:{2R:s,2c:o,1V:0,3x:"5u"}},{2w:!1,1e:{1V:1}},0)),18.3B(!0)):"80"==2z eX&&"80"==2z bM||2x 0===bc.1b.3z.1a.$2k&&2x 0===bc.1b.2p.1a.$2k&&"5d"==bc.1b.3z.1a.3j&&"5d"==bc.1b.2p.1a.3j?18.3B(!0):("x"===bc.o.bh?bc.1n.$aS.2j("cp-iu-5m"):"y"===bc.o.bh?bc.1n.$aS.2j("cp-iv-5m"):!0===bc.o.bh&&bc.1n.$aS.2j("cp-5e-5m"),2x 0!==bc.1b.3z.1a.$2k&&(e=bc.1b.3z.1a.$2k.4j(".cp-bg-5T")[0].iw,(t=bc.1b.3z.1a.$2k.1a(bc.1s.1p.21)).2b.1w=bc.1b.3z.1a.$2k[0].1Z.1w,t.2b.8A=2x 0!==e?" 4n("+e.2c+"8B)":" 4n(qk)",t.2b.8C=2x 0!==e?" 2R("+e.2U+")":" 2R(1)"),bc.1b.2h.$1Y=bb("<1y>").2j("cp-2h-2g-1Y").1e({1d:bc.1c.1d,1i:bc.1c.1i}),18.cE.ix())},cE:{ix:19(){bc.1b.2h.5c.cE.iy()}},3B:19(e){1h t,i,s=!(!bc.1j.2I.1T||!bc.1j.2I.1a.$2C.1v),o=!(!bc.1j.20.1T||!bc.1j.20.1a.$2C.1v);!bc.1D.9j&&bc.2r.4c("iz")&&B.4k("iz",bc.2r.4g()),e||(2x 0!==bc.1b.2p.1a.dE&&bc.1b.3U.1U(bc.1b.2p.1a.dE),.25<bc.1b.1m.1z.eY&&(i=(i=bc.1b.3U.1U()/(.75+bc.1b.1m.1z.eY))<.5?.5:i,bc.1b.3U.1U(i)));1h n,a=bc.1b.3U.1U()/bc.1b.3U.5o(),r=a,l=bc.1b.2p.1a.9Y;0<l?l=0:l<0&&1A.4y(l)>a&&(l=-a),bc.1b.2p.1a.bK=l,n=bc.1b.4L?bc.o.bi+.ql:(r+l)*bc.1b.3U.5o(),(s||o)&&bc.1b.22.iA(bc.1b.4L,s&&o),bc.1b.3U.iB(19(){!bc.1D.9j&&bc.2r.4c("iC")&&B.4k("iC",bc.2r.4g()),bc.1D.5i.7e||bc.1b.1m.1z.iD(),bc.22.28(!0),bc.1j.2e.hb(),bc.o.gv&&(2G.99.e5=bc.1j[bc.1j.2I.1T].1a.4M||"qm-4M-qn"),bc.1D.3B(),!bc.1b.4L&&bc.1j.2K.1T&&bc.1j.2K.1a.$2C.1v&&!bc.1j.2K.1a.$2C.1a(bc.1s.1p.21).2V.eZ&&(bc.1j.2K.1a.$2C.4U("aC"),bc.1j.2K.1a.$2C.1a(bc.1s.1p.21).2f.$9c.1e({3x:"3I"})),bc.1D.5i.7e||bc.1j.20.1a.$2C.1v&&!bc.1j.20.1a.$2C.1a(bc.1s.1p.21).2V.f0&&(bc.1j.20.1a.$2C.4U("eu"),bc.1j.20.1a.$2C.1a(bc.1s.1p.21).2V.f0=!0),bc.1b.4L=!1},[],18,n),bc.1b.3U.31(),2x 0!==bc.1b.3z.1a&&2x 0!==bc.1b.3z.1a.$2k&&(t=bc.1b.3z.1a.$2k.1a(bc.1s.1p.21),bc.3v.iE=5W(19(){2E bc.3v.iE,bc.1b.3z.1a.$2k.4j(".cp-bg-5T").3l(),t.2B.6p&&ie.2X.2e(bc.1b.3z.1a.$2k[0],{2w:!1,1e:t.2B.3W})},5))},4p:19(){1h e;2x 0!==bc.1b.2p.1a.$2k&&bc.1b.2p.1a.$2k.4j(".cp-bg-5T").4l(),"5d"!==bc.1b.2p.1a.3j?bc.1c.$61.1e("2k-4m",bc.1b.2p.1a.3j):bc.1c.$61.1e("2k-4m",bc.o.8P),bc.o.qo||bc.1n.$aS.4h("cp-iu-5m cp-iv-5m cp-5e-5m"),18.$1Y&&(18.$1Y.6g("").5w(),18.$1Y=!1),bc.1x.2y.24.cl.2e.3q(),0<bc.o.64&&(bc.1D.5L("ek")?bc.1D.64.8m(bc.1b.2p.1T)&&(bc.2y.28(),bc.1R.3m(bc.1D,{ap:!0}),bc.o.dr&&(bc.1D.c4=1)):bc.1D.64.2e()),bc.1R.3m(bc.1c,{8o:!1,9b:!1}),!bc.1D.9j&&bc.2r.4c("iF")&&B.4k("iF",bc.2r.4g()),(bc.1D.9j=!1)!==bc.1D.5i.7e&&bc.2y.cx?(2x 0!==bc.1b.3z.1a&&2x 0!==bc.1b.3z.1a.$2k&&(e=bc.1b.3z.1a.$2k.1a(bc.1s.1p.21),bc.1b.3z.1a.$2k.4j(".cp-bg-5T").3l(),e.2B.6p&&ie.2X.2e(bc.1b.3z.1a.$2k[0],{2w:!1,1e:e.2B.3W})),bc.1D.6X(bc.1D.2W.ah(bc.2y.cx),!0)):bc.8p.em(bc.1j.20.1T)},5c:{cE:{iy:19(){1h e,t,i;bc.o.f1?bc.1b.2h.5c.f2(bc.o.f1.29,bc.o.f1.qp):(i=!!bc.1b.2p.1a.7t&&bc.1b.2p.1a.7t.dk().1M(","),bc.1n.aL&&bc.o.dC?(bc.1n.aL=!1,18.2g("2d","1")):bc.1n.aK&&bc.o.dC?(bc.1n.aK=!1,18.2g("2d","1")):bc.1j.20.1a.$2k||i&&(!i||-1!=i.1k("1")||-1!=i.1k("2")||-1!=i.1k("3")||-1!=i.1k("4"))?bc.6Y.iG()&&(bc.1b.2p.1a.86||bc.1b.2p.1a.7v)?bc.1b.2p.1a.86&&bc.1b.2p.1a.7v?(e=1A.3J(2*1A.2Q()),t=[["3d",bc.1b.2p.1a.86],["iH",bc.1b.2p.1a.7v]],18.2g(t[e][0],t[e][1])):bc.1b.2p.1a.86?18.2g("3d",bc.1b.2p.1a.86):18.2g("iH",bc.1b.2p.1a.7v):bc.1b.2p.1a.7t&&bc.1b.2p.1a.7u?(e=1A.3J(2*1A.2Q()),t=[["2d",bc.1b.2p.1a.7t],["iI",bc.1b.2p.1a.7u]],18.2g(t[e][0],t[e][1])):bc.1b.2p.1a.7t?18.2g("2d",bc.1b.2p.1a.7t):bc.1b.2p.1a.7u?18.2g("iI",bc.1b.2p.1a.7u):18.2g("2d","1"):18.2g("2d","5"))},2g:19(e,t){t+="";1h i,s,o,n=-1==e.1k("qq")?bc.t:bc.ct,a="3d";-1!=e.1k("2d")&&(a="2d"),o=-1!=t.1k("bO")?n["t"+a].1v-1:-1!=t.1k("5C")?1A.3J(1A.2Q()*bc.1R.iJ(n["t"+a])):(s=(i=t.1M(",")).1v,1o(i[1A.3J(1A.2Q()*s)])-1),2x 0===n["t"+a][o]&&(n=bc.t,e=a="2d",o=0),bc.1b.2h.5c.f2(a,n["t"+a][o])}},f2:19(e,t){1h i,s,o,n,a=bb.52(!0,{7j:1,7k:1},t),r=2z a.7j,l=2z a.7k,d=[],p=bc.2y.3y,c=0,u=0,h=!!bc.1b.3z.1a.$2k&&bc.1R.bL(bc.1b.3z.1a.$2k),m=!!bc.1b.2p.1a.$2k&&bc.1R.bL(bc.1b.2p.1a.$2k);2J(r){1g"4o":r=a.7j;1l;1g"5s":r=1A.3J(1A.2Q()*(1o(a.7j.1M(",")[1])-1o(a.7j.1M(",")[0])+1))+1o(a.7j.1M(",")[0]);1l;5j:r=1A.3J(1A.2Q()*(a.7j[1]-a.7j[0]+1))+a.7j[0]}2J(l){1g"4o":l=a.7k;1l;1g"5s":l=1A.3J(1A.2Q()*(1o(a.7k.1M(",")[1])-1o(a.7k.1M(",")[0])+1))+1o(a.7k.1M(",")[0]);1l;5j:l=1A.3J(1A.2Q()*(a.7k[1]-a.7k[0]+1))+a.7k[0]}bc.1n.7f&&bc.o.gs?(15<=r?r=7:5<=r?r=4:4<=r?r=3:2<r&&(r=2),15<=l?l=7:5<=l?l=4:4<=l?l=3:2<l&&(l=2),2<l&&2<r&&(l=2,4<r&&(r=4))):(r=35<r?35:r,l=35<l?35:l),i=1A.3J(bc.1c.1d/r),s=1A.3J(bc.1c.1i/l),o=bc.1c.1d-i*r,n=bc.1c.1i-s*l,"2K"==p&&(a.6G&&a.6G.4b&&(a.6G.4b={2Q:"2Q",8D:"3C",3C:"8D","9w-8D":"9w-3C","9w-3C":"9w-8D"}[a.6G.4b]),bb.3i(["4W","7l","6H"],19(e,t){1h i;a[t]&&a[t].2g&&((i=a[t].2g).62&&44<1A.4y(i.62)&&(i.62*=-1),i.6h&&44<1A.4y(i.6h)&&(i.6h*=-1),i.4n&&(i.4n*=-1))}));2q(1h g,f,v=0;v<r*l;v++)d.5v(v);2J(a.6G.4b){1g"3C":d.3C();1l;1g"9w-8D":d=bc.1R.f3(l,r,"8D");1l;1g"9w-3C":d=bc.1R.f3(l,r,"3C");1l;1g"2Q":d=bc.1R.ei(d)}"5d"===bc.1b.3z.1a.3j&&(bc.1b.3z.1a.3j=bc.o.8P),"5d"===bc.1b.2p.1a.3j&&(bc.1b.2p.1a.3j=bc.o.8P),"2d"==e&&(g=-1!=a.7m.48().1k("qr"),f=-1!=a.7m.48().1k("qs"),18.$7T=bb("<1y>").2j("cp-qt").2s(bc.1b.2h.$1Y),18.$f4=bb("<1y>").2j("cp-qu").2s(bc.1b.2h.$1Y));2q(1h y=0;y<r*l;y++){1h S,w,b,x,T,C,k,O=(y+1)%r==0?o:0,I=(l-1)*r-1<y?n:0,P=bb("<1y>").2j("cp-2h-2g-6G").1e({1d:i+O,1i:s+I}).1a("1Z",{1d:i+O,1i:s+I}).2s(bc.1b.2h.$1Y),c=(d[y],y%r==0?c+1:c),u=y%r==0?1:u+1;if("3d"==e){P.2j("cp-3d-4w");1h L,$,B,W,F,2P,D=i+O,z=s+I,M=4f ie.7i,R=1A.4y(1A.4y(u-r/2-.5)-r/2-.5)*1A.4y(1A.4y(c-l/2-.5)-l/2-.5);P.1e({7C:R}),$=D/2,B=z/2,W=(L="iK"==a.4W.3y?90<1A.4y(a.4W.2g.6h)&&"iL"!=a.6G.iM?1A.3J(D/7)+O:D:90<1A.4y(a.4W.2g.62)&&"iL"!=a.6G.iM?1A.3J(z/7)+I:z)/2,18.7n("cp-3d-7o",P,0,0,0,0,-W,0,0,$+"px "+B+"px iN"),18.7n("cp-3d-iO",P.1C(".cp-3d-7o"),D,z,0,0,W,0,0),"qv"==a.4W.3y&&90<1A.4y(a.4W.2g.62)?18.7n("cp-3d-cF",P.1C(".cp-3d-7o"),D,z,0,0,-W,cG,0):18.7n("cp-3d-cF",P.1C(".cp-3d-7o"),D,z,0,0,-W,0,cG),18.7n("cp-3d-1S",P.1C(".cp-3d-7o"),L,z,-W,0,0,0,-90),18.7n("cp-3d-41",P.1C(".cp-3d-7o"),L,z,D-W,0,0,0,90),18.7n("cp-3d-2l",P.1C(".cp-3d-7o"),D,L,0,-W,0,90,0),18.7n("cp-3d-24",P.1C(".cp-3d-7o"),D,L,0,z-W,0,-90,0),S=P.1C(".cp-3d-iO"),w="iK"==a.4W.3y?90<1A.4y(a.4W.2g.6h)?P.1C(".cp-3d-cF"):0<a.4W.2g.6h?P.1C(".cp-3d-1S"):P.1C(".cp-3d-41"):90<1A.4y(a.4W.2g.62)?P.1C(".cp-3d-cF"):0<a.4W.2g.62?P.1C(".cp-3d-24"):P.1C(".cp-3d-2l"),F=d[y]*a.6G.4i,2P=bc.1b.2h.$1Y.1C(".cp-3d-4w:eq( "+y+" ) .cp-3d-7o"),a.7l&&a.7l.2g?(a.7l.2g.4i=a.7l.2g.4i?(a.7l.2g.4i+F)/3o:F/3o,M.to(2P[0],a.7l.1U/3o,bc.1R.2Y.2g(a.7l.2g,a.7l.4S))):a.4W.2g.4i=a.4W.2g.4i?(a.4W.2g.4i+F)/3o:F/3o,M.to(2P[0],a.4W.1U/3o,bc.1R.2Y.2g(a.4W.2g,a.4W.4S)),a.6H&&(a.6H.2g||(a.6H.2g={}),M.to(2P[0],a.6H.1U/3o,bc.1R.2Y.2g(a.6H.2g,a.6H.4S,"6H"))),bc.1b.3U.2O(M,0)}3u{1h H,N,E,V,A,X,Y,K,j="2M",U="2M",q="2M",G="2M",Q=1,Z=1,J={},ee="2Q"==a.2g.3y?(H=["2l","24","41","1S"])[1A.3J(1A.2Q()*H.1v)]:a.2g.3y;2J(-1!=a.7m.48().1k("iP")&&y%2==0&&(p="2K"==p?"20":"2K"),"2K"==p&&(ee={2l:"24",24:"2l",1S:"41",41:"1S",f5:"f6",f7:"f8",f8:"f7",f6:"f5"}[ee]),ee){1g"2l":j=q=-P.1a("1Z").1i,U=G=0;1l;1g"24":j=q=P.1a("1Z").1i,U=G=0;1l;1g"1S":j=q=0,U=G=-P.1a("1Z").1d;1l;1g"41":j=q=0,U=G=P.1a("1Z").1d;1l;1g"f5":j=P.1a("1Z").1i,q=0,U=P.1a("1Z").1d,G=0;1l;1g"f7":j=P.1a("1Z").1i,q=0,U=-P.1a("1Z").1d,G=0;1l;1g"f8":j=-P.1a("1Z").1i,q=0,U=P.1a("1Z").1d,G=0;1l;1g"f6":j=-P.1a("1Z").1i,q=0,U=-P.1a("1Z").1d,G=0}2J(18.9x=a.2g.2R?a.2g.2R:1,1==g&&1!=18.9x&&(j/=2,q/=2,U/=2,G/=2),a.2g.29){1g"6w":j=q=U=G=0,Q=0,Z=1;1l;1g"qw":Q=0,(Z=1)==18.9x&&(q=G=0)}(a.2g.4n||a.2g.62||a.2g.6h||1!=18.9x)&&"2h"!=a.2g.29?P.1e({5e:"4B"}):P.1e({5e:"5m"}),1==g?18.$7T.1e({5e:"4B"}):18.$7T.1e({5e:"5m"}),!0===f||"2h"==a.2g.29||!0===g?(N=P.2s(18.$7T),E=P.ck().2s(18.$f4),S=bb("<1y>").2j("cp-iQ").2s(N)):E=P.2s(18.$f4),w=bb("<1y>").2j("cp-iR").2s(E),V=d[y]*a.6G.4i/3o,A=a.2g.4n?a.2g.4n:0,X=a.2g.62?a.2g.62:0,Y=a.2g.6h?a.2g.6h:0,"2K"==p&&(A=-A,X=-X,Y=-Y),bc.1b.3U.42(w[0],a.2g.1U/3o,{51:!1,2w:!1,1e:{x:-U,y:-j,3x:"5u",1V:Q,2c:A,3f:X,3g:Y,2R:18.9x}},{2w:!1,1e:{x:0,y:0,1V:Z,2c:0,3f:0,3g:0,2R:1},1I:bc.1R.2Y.4S(a.2g.4S)},V),1==f&&(2x 0===bc.1b.2p.1a.$2k||2x 0!==bc.1b.2p.1a.$2k&&(-1!=bc.1b.2p.1a.$2k.1O("2m").48().1k("e3")||bc.1b.2p.1a.$2k.1d()<bc.1c.1d||bc.1b.2p.1a.$2k.1i()<bc.1c.1i))&&(J.1V=0),"2h"!=a.2g.29&&1!=g||-1!=a.7m.48().1k("iP")||(K=0!==A?-A:0,J.x=G,J.y=q,J.2c=K,J.2R=18.9x,J.1V=Q),2x 0!==S&&bc.1b.3U.to(S[0],a.2g.1U/3o,{2w:!1,1e:J,1I:bc.1R.2Y.4S(a.2g.4S)},V)}b=y%r*i,x=1A.3J(y/r)*s,2x 0!==bc.1b.3z.1a.$2k&&(T=bc.1b.3z.1a.$2k.1a(bc.1s.1p.21),"3d"===e||"2d"===e&&(!0===f||"2h"===a.2g.29||!0===g)?S.6W(bb("<3G>").1O("2m",h).1e({1d:T.2b.1d,1i:T.2b.1i,"-5J-1w":T.2b.1w,1w:T.2b.1w,"-ms-3Q":"5p("+(T.2b.x-b)+"px) 5q("+(T.2b.y-x)+"px)"+T.2b.8A+T.2b.8C,"-5J-3Q":"5p("+(T.2b.x-b)+"px) 5q("+(T.2b.y-x)+"px)"+T.2b.8A+T.2b.8C,3Q:"5p("+(T.2b.x-b)+"px) 5q("+(T.2b.y-x)+"px)"+T.2b.8A+T.2b.8C})):0===18.$7T.4r().1v&&18.$7T.1e("2k-4m",bc.1b.3z.1a.3j).6W(bb("<3G>").1O("2m",h).1e({1d:T.2b.1d,1i:T.2b.1i,"-5J-1w":T.2b.1w,1w:T.2b.1w,"-ms-3Q":"5p("+T.2b.x+"px) 5q("+T.2b.y+"px)"+T.2b.8A+T.2b.8C,"-5J-3Q":"5p("+T.2b.x+"px) 5q("+T.2b.y+"px)"+T.2b.8A+T.2b.8C,3Q:"5p("+T.2b.x+"px) 5q("+T.2b.y+"px)"+T.2b.8A+T.2b.8C}))),"5d"===bc.1b.3z.1a.3j||bc.1b.3z.1a.$2C.1v||("3d"===e||"2d"===e&&(!0===f||"2h"===a.2g.29||!0===g)?S.1e("2k-4m",bc.1b.3z.1a.3j):0===18.$7T.4r().1v&&18.$7T.1e("2k-4m",bc.1b.3z.1a.3j)),2x 0!==bc.1b.2p.1a.$2k&&(k=(C=bc.1b.2p.1a.$2k.1a(bc.1s.1p.21)).2B.3W,w.6W(bb("<3G>").1O("2m",m).1e({1d:C.2b.1d,1i:C.2b.1i,"-5J-1w":bc.1b.2p.1w.3W||"3I",1w:bc.1b.2p.1w.3W||"3I","-ms-3Q":"5p("+(C.2b.x-b)+"px) 5q("+(C.2b.y-x)+"px) 4n("+k.2c+"8B) 2R("+k.2R+")","-5J-3Q":"5p("+(C.2b.x-b)+"px) 5q("+(C.2b.y-x)+"px) 4n("+k.2c+"8B) 2R("+k.2R+")",3Q:"5p("+(C.2b.x-b)+"px) 5q("+(C.2b.y-x)+"px) 4n("+k.2c+"8B) 2R("+k.2R+")"}))),"5d"===bc.1b.2p.1a.3j||bc.1b.2p.1a.$2C.1v||w.1e("2k-4m",bc.1b.2p.1a.3j)}bc.1b.2h.$1Y.cn(bc.o.ge?bc.1c.$6c:bc.1c.$61),bc.1b.2h.3B()},7n:19(e,t,i,s,o,n,a,r,l,d){1h p="qx( "+o+"px, "+n+"px, "+a+"px)";0!==r&&(p+="62( "+r+"8B)"),0!==l&&(p+="6h( "+l+"8B)");1h c={1d:i,1i:s,3Q:p,"-ms-3Q":p,"-5J-3Q":p};d&&(c["3Q-f9"]=d,c["-ms-3Q-f9"]=d,c["-5J-3Q-f9"]=d),bb("<1y>").2j(e).1e(c).2s(t)}}},1m:{in:{7A:19(e){e.1a(bc.1s.1p.21).1t.1X&&bc.1b.1m.1t.9y(e)},4p:19(e){bc.22.eA(e)}},1P:{it:19(){1h o,n,a,r,e,t,i,s;bc.1b.5z&&(bc.1b.1G&&(o=4f ie.7i({4I:!0,iS:!0}),r=[],e=bc.1m.2W("2I, in, 3L, 3q").2O(bc.1m.2W("2I, 1P, 3L, 3q")),t=bc.1m.2W("2I, 1P, bY, 3q"),i=bc.1m.2W("2I, 1P, 3q"),s=bb().2O(e).2O(t),s.3i(19(){1h e,t=bb(18).1a(bc.1s.1p.21);if(t.1B.43&&(bc.1b.1G.5w(t.1B.43),t.1B.43.31()),t.is.3L){n=[t.2f.$1Y[0]],t.2f.$9d&&(n=n.fa(t.2f.$9d[0])),t.2i.5K&&(n=n.fa(t.2i.5K));2q(1h i=0;i<n.1v;i++)r=r.fa(bc.1b.1G.qy(n[i],!0));2q(1h s=0;s<r.1v;s++)r[s].1U&&0!==r[s].1U()&&(a=r[s],e=a,o.2O(e,1r-e.1U()*e.3R()))}}),i.3i(19(){bb(18).1a(bc.1s.1p.21).5i.3H=!0}),o.31().qz(1r),bc.1b.1G.28().7p()),bc.1b.5z.31()),bc.1c.$6c.1C(".cp-4Q").1e({3x:"3I"})},7A:19(e){},4p:19(e){1h t=e.1a(bc.1s.1p.21);!bc.1c.23.9b&&t.1u.91===bc.1j.2I.1T||bc.1b.1m.3H(e,t),t.1t.1X&&bc.1b.1m.1t.cH(e)}},3H:19(e,t){t.1B.43&&(t.1B.43.28().7p(),2E t.1B.43,ie.2X.2e(t.2f.$7E[0],t.3H.dO)),ie.2X.2e(t.2f.$1Y[0],t.3H.dN),ie.2X.2e(e[0],{"-5J-1w":"3I",1w:"3I"}),t.5i.81&&(t.3Y.2Q={},t.3F.2Q={},bc.1m.81.1a(e)),t.5i.3H=!1},1z:{6E:!1,6f:19(e){1h t,i,s,o,n=e?"2I":"20";bc.1b.9z=n,bc.1b.1m.1z.6E=!1,bc.1b.1m.1z.iT(),bc.1b.1G&&(bc.1b.1G.5n().3R(0).5Z().7p(!0),bc.1b.1G=2H),bc.1b.1G=4f ie.7i({4I:!0,7A:19(){bc.2r.4c("iU")&&B.4k("iU",bc.2r.4g())},cI:19(){bc.2r.4c("iV")&&B.4k("iV",bc.2r.4g()),bc.1b.1m.1z.iW&&(bc.1b.1m.1z.6E=!1,bc.1b.1G.31())},7U:19(e){bc.2r.4c("iX")&&B.4k("iX",e)},7V:["{5V}"]}),18.4T=0,18.3R=1,bc.1b.5z=4f ie.7i({4I:!0,iS:!0}),t=bc.1m.2W(n+", in, am"),i=bc.1m.2W(n+", 1P, bY").2O(bc.1m.2W(n+", 1P, 3q, 3L")),s=bc.1m.2W(n+", in, bX, am"),o=bb().2O(t).2O(i).2O(s),18.cJ(t,"in",bc.1b.1G,bc.1b.5z),18.cJ(i,"1P",bc.1b.1G,bc.1b.5z),-1!==bc.1j[n].1a.1U&&bc.1j[n].1a.1U<18.4T?18.3R=bc.1j[n].1a.1U/18.4T:bc.1b.1G.1U()>18.4T&&(18.3R=18.4T/bc.1b.1G.1U()),-1===bc.1j[n].1a.1U?(bc.1j[n].1a.1U=18.4T,bc.1j[bc.1j[n].1T].1a.1U=18.4T):18.4T=bc.1j[n].1a.1U,18.cJ(s,"in",bc.1b.1G,bc.1b.5z);2q(1h a,r=0;r<o.1v;r++)bb(o[r]).1a(bc.1s.1p.21).1E.1X&&bb(o[r]).1a(bc.1s.1p.21).2f.$8i.1O("1a-cp-1E","3q");bc.1b.1m.1E.4U(),bc.2r.4c("iY")&&B.4k("iY",{qA:bc.1b.1G,qB:o,qC:18.4T}),bc.1b.2t.6f(),bc.1b.2t.4V.3h&&bc.1b.1G.2O(bc.1b.2t.4V.3h.31(),0),bc.1b.2t.4x.3h&&bc.1b.1G.2O(bc.1b.2t.4x.3h.31(),0),bc.1b.2t.2S.3h&&bc.1b.1G.2O(bc.1b.2t.2S.3h.31(),0),bc.1b.1G.iB(19(){if(!bc.1b.1G.iZ()){if(bc.2r.4c("j0")&&!1===B.4k("j0",bc.2r.4g()))1N;bc.1R.3m(bc.1b.1m.1z,{7L:!0}),!bc.1D.56()&&bc.1D.23.7d?bc.1D.6X(bc.1j.20.1T):bc.1D.23.ap&&bc.1b.2t.3C()}},[],18,bc.1j[n].1a.1U),bc.1j.20.1a.$4Q&&bc.1j.20.1a.$4Q.1e({3x:"5u"}),(bc.1c.8w&&bc.1c.23.4K&&bc.1c.23.aT||!bc.1c.8w)&&(bc.o.83&&bc.1D.56()&&bc.1b.1G.5o(0),bc.1b.1m.1z.31()),B.4U("5H.66"+W),B.6C("6e.66"+W+" 5H.66"+W+" 6D.66"+W),bc.1j[n].1a.66&&(a=bc.1m.2W(n+",in,am").2O(bc.1m.2W("3L,3q")),B.on("6e.66"+W,19(){a.3i(19(){bc.1b.1m.1t.cK(bb(18),bb(18).1a(bc.1s.1p.21))})}),B.on("5H.66"+W,19(){a.3i(19(){bc.1b.1m.1t.fb(bb(18),bb(18).1a(bc.1s.1p.21))})}),B.on("6D.66"+W,19(){a.3i(19(){bc.1b.1m.1t.aU(bb(18),bb(18).1a(bc.1s.1p.21))})}))},iD:19(){bc.1j.20.1a.5e&&"5m"!==bc.1j.20.1a.5e?(bc.1c.$6c.2j("cp-4B"),bc.1c.$c0.2j("cp-4B")):(bc.1c.$6c.4h("cp-4B"),bc.1c.$c0.4h("cp-4B")),18.6f()},8f:19(e,t,i,s){if("4o"==2z t)1N t;t=t.48();1h o,n,a,r,l,d=bc.1s.3a.gO,p=0;if(-1!==t.1k("*")&&(l="*"),-1!==t.1k("/")&&(l="/"),-1!==t.1k("+")&&(l="+"),-1!==t.1k("-")&&(l="-"),l)if(r=t.1M(l),o=bb.4q(r[0]),a=1o(bb.4q(r[1])),d[o]&&-1!==d[i][1].1k(d[o][0]))if(n="4o"==2z e.1z[o]?e.1z[o]:e.1z[o](e),s)p=a/3o;3u 2J(l){1g"*":p=n*a;1l;1g"/":p=n/a;1l;1g"+":p=n+a/3o;1l;1g"-":p=n-a/3o}3u"+"!==l&&!s||(p=a/3o);3u d[o=bb.4q(t)]&&-1!==d[i][1].1k(d[o][0])&&(p=s?0:"4o"==2z e.1z[o]?e.1z[o]:e.1z[o](e));1N(p!=p||p<0)&&(p=0),p},cJ:19(e,t,i,s){2q(1h o=0,n=e.1v;o<n;o++){1h a,r,l=bb(e[o]),d=l.1a(bc.1s.1p.21),p=d.2f.$1Y,c=d.2f.$9d,u=d.2f.$7E;if(d.5i.3H&&bc.1b.1m.3H(l,d),l.4H("cp-bg"))d.2B.6p&&i.42(l.4j(".cp-bg-5T"),bc.1b.2p.1a.1U+bc.1b.2p.1a.bK,{2w:!1,1e:d.2B.3W},{2w:!1,1e:d.2B.to,1I:ie.qD.9a},-bc.1b.2p.1a.bK),bb.54(d.1w.3p.bC)&&bb.54(d.1w.3p.bD)||(d.1w.1b.bg||(d.1w.1b.bg=bc.1b.1m.55.6i(d,"bg",d.1w.3p.bC,d.1w.3p.bD)),i.to([{p:0},l[0]],bc.1b.2p.1a.1U,{p:1,2w:!1,1I:ie.qE.9a,7U:bc.1b.1m.55.8v,7V:["{5V}",d.1w.1b.bg]},0));3u 2J(t){1g"in":d.in.1X&&(d.1u.7K||("4o"!=2z d.in.3b&&(d.in.3b=0),d.1z.7y=d.in.3b,d.1z.6S=d.1z.7y+d.in.1U),bc.1L.8z(l,d.4Y,d.a1),bc.1L.9v(d.8R,d.68),bc.1L.9v(d.bE,d.ad),d.4Y.2A=d.2A.3a*bc.1L.1Q,d.2o.1X&&(d.3k.2o||(d.3k.2o=d.2o.aa,d.3k.6b=!0),d.a2.2o?(d.h5.2o=bc.1L.2o(l,d.a2.2o,!0),d.h6.2o=bc.1L.2o(l,d.3k.2o,d.3k.6b),i.42(c[0],d.in.1U,d.h4,d.dQ,d.1z.7y)):ie.2X.2e(c[0],{2o:bc.1L.2o(l,d.3k.2o,d.3k.6b)}),bc.1b.1m.1z.6E=!0),bb.54(d.1w.3p.in)?bb.54(d.1w.3p.1P)||l.1e("1w",d.3k.1w):(d.1w.1b.in||(d.1w.1b.in=bc.1b.1m.55.6i(d,"in",d.1w.3p.in,d.1w.3p.1Z)),i.to([{p:0},l[0]],d.in.1U,{p:1,2w:!1,1I:d.ac.1I,7U:bc.1b.1m.55.8v,7V:["{5V}",d.1w.1b.in]},d.1z.7y)),i.42(p[0],d.in.1U,d.h2,d.ac,d.1z.7y),i.42(l[0],d.in.1U,d.h3,d.dP,d.1z.7y)),d.is.8Z&&((d.2i.29||d.2F.29)&&bc.1b.1m.7W.j1(l,d),d.2i.1X&&(d.in.1X||i.to(p[0],0,bb.52(!0,{},d.ac,d.1p.1Y),d.1z.7z),d.2i.5K=bc.1b.1m.7W.fc(d.2i.29.1M("2P"),d.2i.ns),bc.1L.8z(l,d.3Y,d.8a),d.3Y.2A=d.2A.5t*bc.1L.1Q,bb.54(d.8a.2Q)||bc.1b.1m.7W.aV(d,d.8a.2Q,d.3Y),bb.54(d.3Y.2Q)||bc.1b.1m.7W.aV(d,d.3Y.2Q,d.3Y),2E d.3Y.2Q,d.1u.7K||(d.1z.7z=18.8f(d,d.2i.3b,"7z"),d.1z.8W=d.1z.7z+(d.2i.5K.1v-1)*d.2i.7w+d.2i.1U),i.j2(d.2i.5K,d.2i.1U,d.3Y,d.8S,d.2i.7w,d.1z.7z,19(e){bc.1b.1m.in.4p(e)},[l]))),d.1B.1X&&(r=4f ie.7i({65:d.1B.65,8U:d.1B.8U,8V:d.1B.8V,4I:!0}),d.1u.7K&&!d.is.3L||(d.1z.6t=18.8f(d,d.1B.3b,"6t"),d.1z.6T=-1!==d.1B.3t&&d.1z.6t+(d.1B.65+1)*d.1B.1U+d.1B.65*d.1B.8U),d.1B.43=r,bc.1L.8z(l,d.4F,{x:d.6r.x,y:d.6r.y}),(d.4F.x&&0!==d.4F.x||d.4F.y&&0!==d.4F.y)&&(bc.1b.1m.1z.6E=!0),d.dV.2N=bc.1R.2Y.2N(d.6r.2N,l),d.dV.2A=d.2A.1B*bc.1L.1Q,bb.54(d.1w.3p.1B)||(d.1w.1b.1B||(d.1w.1b.1B=bc.1b.1m.55.6i(d,"1B",bb.54(d.1w.3p.98)?d.1w.3p.1Z:d.1w.3p.98,d.1w.3p.1B)),r.to([{p:0},l[0]],d.1B.1U,{p:1,2w:!1,1I:d.bJ.1I,7U:bc.1b.1m.55.8v,7V:["{5V}",d.1w.1b.1B]},0)),r.42(u[0],d.1B.1U,d.h7,d.bJ,0),d.a4.2o&&(d.h8.2o=bc.1L.2o(l,d.a4.2o,!0),r.to(c[0],d.1B.1U,d.dW,0),bc.1b.1m.1z.6E=!0),-1===d.1B.65||"qF"!==bc.o.63&&!bc.1x.2t.2S.$2u?i.qG(19(e){e.31()},d.1z.6t,[r]):(i.2O(r,d.1z.6t),r.31())),d.is.3L&&(d.1z.bv=d.1z.6S,d.1z.bw="1r%",d.1u.7K||(a=1A.47(d.1z.a5(),0),18.4T=1A.47(18.4T,a)));1l;1g"1P":d.is.8Z&&d.2F.1X&&(d.2F.5K=bc.1b.1m.7W.fc(d.2F.29.1M("2P"),d.2F.ns),bc.1L.8z(l,d.3F,d.8b,d.bI),d.bI.2A=d.2A.5t*bc.1L.1Q,bb.54(d.8b.2Q)||bc.1b.1m.7W.aV(d,d.8b.2Q,d.3F),bb.54(d.3F.2Q)||bc.1b.1m.7W.aV(d,d.3F.2Q,d.3F),2E d.3F.2Q,d.1u.7K||(d.1z.8e=18.8f(d,d.2F.3b,"8e"),d.1z.8X=d.1z.8e+(d.2F.5K.1v-1)*d.2F.7w+d.2F.1U),d.2o.1X&&(2x 0===d.7x.2o&&i.to(c[0],0,{51:!1,1e:{2o:bc.1L.2o(l,d.2o.47)}},d.1z.8e),bc.1b.1m.1z.6E=!0),i.j2(d.2F.5K,d.2F.1U,d.bI,d.3F,d.2F.7w,d.1z.8e)),bc.1L.8z(l,d.4E,d.a3,d.dS),bc.1L.9v(d.bF,d.af),bc.1L.9v(d.8T,d.69),d.dS.2A=d.2A.3a*bc.1L.1Q,"a9"!==d.1P.3b?(d.1u.7K&&!d.is.3L||(d.is.3L?(d.1z.bv=0,d.1z.5B=18.8f(d,d.1P.3b,"5B",!0),d.1z.bw=d.1z.5B):d.1z.5B=1A.47(18.8f(d,d.1P.3b,"5B"),d.1z.6S),d.1z.8Y=d.1z.5B+d.1P.1U),d.2o.1X&&(2x 0===d.7x.2o?i.to(c[0],0,{51:!1,1e:{2o:bc.1L.2o(l,d.2o.47)}},d.1z.5B):(d.dU.2o=bc.1L.2o(l,d.7x.2o,!0),i.to(c[0],d.1P.1U,d.bH,d.1z.5B)),bc.1b.1m.1z.6E=!0),bb.54(d.1w.3p.1P)||(d.1w.1b.1P||(d.1w.1b.1P=bc.1b.1m.55.6i(d,"1P",bb.54(d.1w.3p.bB)?bb.54(d.1w.3p.98)?d.1w.3p.1Z:d.1w.3p.98:d.1w.3p.bB,d.1w.3p.1P)),i.to([{p:0},l[0]],d.1P.1U,{p:1,2w:!1,1I:d.ae.1I,7U:bc.1b.1m.55.8v,7V:["{5V}",d.1w.1b.1P]},d.1z.5B)),i.42(p[0],d.1P.1U,d.dR,d.ae,d.1z.5B),i.42(l[0],d.1P.1U,d.dT,d.bG,d.1z.5B),i.42(p[0],0,d.1p.1Y,d.3H.h1,d.1z.8Y)):(d.1z.bv=0,d.1z.bw="1r%"),(!d.is.3L||d.is.3L&&d.1u.91===bc.1j.20.1T)&&(s.42(p[0],bc.o.7s,d.dR,d.ae,0),s.42(l[0],bc.o.7s,d.dT,d.bG,0),d.2o.1X&&2x 0!==d.7x.2o&&(d.dU.2o=bc.1L.2o(l,d.7x.2o,!0),s.to(c[0],bc.o.7s,d.bH,0))),a=1A.47(d.1z.dL(),0),18.4T=1A.47(18.4T,a),d.1u.7K=!0}}},31:19(){bc.1b.1G&&(bc.1b.1G.31(),bc.1R.3m(18,{eL:!0,7d:!0,av:!1,4I:!1}))},5n:19(e){e=bb.6x(e)?e:.75;bc.1b.1G&&(ie.2X.to(bc.1b.1G,e,{5o:0}),bc.1R.3m(18,{4I:!0,av:!1}))},8l:19(){bc.1b.1G&&(ie.2X.to(bc.1b.1G,.75,{5o:1}),bc.1R.3m(18,{4I:!1,av:!1}))},3C:19(){bc.1b.1G&&bc.1b.1G.3C()},qH:19(e){1h t;e||(18.31(),18.fd()),bc.1b.1G&&(bc.1c.8n()||0!==bc.1b.1G.4T()&&1!==bc.1b.1G.3R()||"6I"!==bc.1n.3s.3y||(bc.1D.3y="20",(t=bc.1D.4b.ar).1k(bc.1j.2I.1T)===t.1v-1?(bc.1c.j3="qI",bc.1n.3s.9y(),bc.1D.3y="2K"):bc.2y.20()))},qJ:19(e,t){e&&!t||(18.3C(),18.fd()),bc.1b.1G&&(bc.1c.8n()||0!==bc.1b.1G.4T()&&0!==bc.1b.1G.3R()||"6J"!==bc.1n.3s.3y||(bc.1D.3y="2K",0===bc.1D.4b.ar.1k(bc.1j.2I.1T)?(bc.1c.j3="qK",bc.1n.3s.9y(),bc.1D.3y="20"):bc.2y.2K()))},fd:19(){bc.1b.1G&&ie.2X.to(bc.1b.1G,.25,{5o:1+18.eY})},iT:19(){18.23={eL:!1,7d:!1,4I:!1,av:!1,7L:!1}}},1t:{9y:19(e){e.1O("1a-cp-fe","1")},cH:19(e){e.1O("1a-cp-fe","0")},2e:19(e,t){t.2f.$1Y.on("6e."+W,19(){bc.1b.1m.1t.cK(e,t)}),t.2f.$1Y.on("5H."+W,19(){bc.1b.1m.1t.fb(e,t)}),t.2f.$1Y.on("6D."+W,19(){bc.1b.1m.1t.aU(e,t)})},j4:19(e,t){1h i,s,o,n;t.1t.43=4f ie.7i({4I:!0,cI:19(e,t){t.1t.43.qL&&(t.1t.43.28().7p(),2E t.1t.43)},qM:[e,t]}),bc.1L.8z(e,t.4G,t.4Z,t.dY),bc.1L.9v(t.4G,t.4Z),t.dY.2A=t.2A.1t*bc.1L.1Q,t.1t.cL=ie.2X.42(e[0],t.1t.6a,t.dX,t.dZ),t.1t.43.2O(t.1t.cL,0),e.20().is(".cp-3a-4Q")?(i=e.20(),s=bb.52(!0,{},t.dX,{1e:{1V:1,4m:"5d",2k:"5d",z:0}}),o=bb.52(!0,{},t.dZ,{1e:{1V:1,4m:"5d",2k:"5d",z:0}}),t.1t.8E=ie.2X.42(i[0],t.1t.6a,s,o),t.1t.43.2O(t.1t.8E,0)):t.1t.8E=2H,t.1t.dI&&(n={7C:ab},bc.6Y.aj&&(n.3Q="hy(qN)"),t.1t.43.to(t.2f.$8j[0],t.1t.6a,{2w:!1,1e:n},0)),t.1t.j5=t.1t.6a/t.1t.8c==1?1:t.1t.6a/t.1t.8c,18.ff(e,t)},cK:19(e,t){"1"===e.1O("1a-cp-fe")&&(e.1O("1a-cp-fg",1),t.2f.$1Y.6C("6D."+W),t.1t.43?(t.1t.43.31().28().3R(0),18.ff(e,t)):18.j4(e,t))},fb:19(e,t){t.1t.43&&(t.1t.43.28().3R(1),18.j6(e,t)),e.7J("1a-cp-fg")},aU:19(e,t){e.1O("1a-cp-fg")||18.cK(e,t)},ff:19(e,t){t.1t.cL.cM({1I:t.1t.3w}),t.1t.8E&&t.1t.8E.cM({1I:t.1t.3w}),t.1t.43.31().5o(1)},j6:19(e,t){t.1t.cL.cM({1I:t.1t.3S}),t.1t.8E&&t.1t.8E.cM({1I:t.1t.3S}),t.1t.43.3C().5o(t.1t.j5)}},1E:{cN:{29:"2d",6R:"3E",x:!0,y:!0,2c:10,87:10,9Z:1.5,bp:1.2,2N:"50% 50% 0",2A:6V},1s:{9U:5,fh:"6m",aW:40,7X:10},23:{1X:!1,cj:!1},3n:{3E:{$2d:bb(),$3d:bb()},3s:{$2d:bb(),$3d:bb()}},1p:19(){1h t=18;B.on("6e."+W,19(){(t.3n.3E.$2d.1v||t.3n.3E.$3d.1v)&&t.9A()}),B.on("6D."+W,19(e){(t.3n.3E.$2d.1v||t.3n.3E.$3d.1v)&&t.aU(e)}),B.on("5H."+W,19(){(t.3n.3E.$2d.1v||t.3n.3E.$3d.1v)&&t.3H()}),bc.1n.7f&&bc.1n.j7&&(bb(1q).on("qO."+W,19(){t.23.cj&&t.j8(6R)}),bb(1q).on("cO."+W,19(){t.9A()})),bb(1q).on("3s.1E"+W+" aI.1E"+W,19(){(t.3n.3s.$2d.1v||t.3n.3s.$3d.1v)&&t.3s()}),t.1s.9U*=bc.o.gr?-1:1},hi:19(e,t,i,s){2J(18.23.1X||(bc.1R.3m(18,{1X:!0}),18.1p()),bb.52(!0,t,18.cN,bc.1j[s].1E,i.1E),i.2A.1E?t.2A=i.2A.1E:i.2A.1E=t.2A,t.6R.4z(/(3E|3s)/)||(t.6R="3E"),t.29.4z(/(2d,3d)/)&&(t.29="2d"),t.dF){1g"3I":t.x=!1,t.y=!1;1l;1g"x":t.y=!1;1l;1g"y":t.x=!1}18.3n[t.6R]["$"+t.29]=18.3n[t.6R]["$"+t.29].2O(e)},fi:19(){1h e,t,i,s=bc.1x.4J.$2u,o=bc.1j.2I&&bc.1j.2I.1E?bc.1j.2I.1T:bc.1j.20.1T;bc.1j[o].1a.$2k&&bc.1j[o].1a.$2k.1a(bc.1s.1p.21).1E.1X&&bc.1j[o].1a.5e&&"5m"!==bc.1j[o].1a.5e&&(e="50% -"+.25*bc.1c.1i+"px 0",i=2x 0!==(t=bc.1j[o].1a.$2k.1a(bc.1s.1p.21).1E).2c?2*t.2c:2x 0!==bc.1j[o].1E.2c?2*bc.1j[o].1E.2c:2*18.cN.2c,s.1a(bc.1s.1p.21,{1E:bb.52(!0,{},18.cN,bc.1j[o].1E,{6s:t.6s,2N:e,2c:i})}),s.1O("1a-cp-1E","3q"),ie.2X.2e(s[0],{2N:e,2A:s.1a(bc.1s.1p.21).1E.2A*bc.1L.1Q}),"3d"===bc.1j[o].1E.29||"3d"===t.29?18.3n.3E.$3d=18.3n.3E.$3d.2O(s):18.3n.3E.$2d=18.3n.3E.$2d.2O(s)),18.cP=!0},j9:19(){1h e=bc.1x.4J.$2u;18.3n.3E.$2d=18.3n.3E.$2d.5F(e),18.3n.3E.$3d=18.3n.3E.$3d.5F(e),e.1O("1a-cp-1E","c3"),18.cP=!1},9A:19(){bb().2O(18.3n.3E.$2d).2O(18.3n.3E.$3d).2O(18.3n.3s.$2d).2O(18.3n.3s.$3d).3i(19(){1h e=bb(18).1a(bc.1s.1p.21).1E;ie.2X.2e(bb(18)[0],{2N:bc.1R.2Y.2N(e.2N,bb(18),bc.1c.$6c),2A:e.2A*bc.1L.1Q})}),18.aX=!0},j8:19(e){1h t,i,s;18.aX?(s=0===(t=1q.qP)?(i=5*-1o(e.fj)*18.1s.7X*bc.1L.1Q,5*(18.1s.aW-1o(e.fk))*18.1s.7X*bc.1L.1Q):90===t?(i=5*-1o(e.fk)*18.1s.7X*bc.1L.1Q,5*(1o(e.fj)+18.1s.aW)*18.1s.7X*bc.1L.1Q):(i=5*1o(e.fk)*18.1s.7X*bc.1L.1Q,5*(18.1s.aW-1o(e.fj))*18.1s.7X*bc.1L.1Q),18.cQ(i,s,"3E"),18.cR(i,s,"3E")):18.9A(),bc.1c.23.8o||18.cP||!bc.1x.4J.$2u||18.fi()},4U:19(){bb(1q).4U("3s.1E"+W),bb(1q).4U("aI.1E"+W)},3s:19(){1h e=(("2l"===18.1s.fh?bc.1n.46:bc.1n.46+(bc.1n.3D-bc.1c.1i)/2)-bc.1c.4C)*bc.1L.1Q*18.1s.9U;bc.1c.23.8k&&(e=0),18.aX||18.9A(),18.cQ(0,e,"3s"),18.cR(0,e,"3s")},aU:19(e){1h t,i,s,o;18.aX?(bc.1c.23.8o||18.cP||!bc.1x.4J.$2u||18.fi(),t=bc.1c.6K+bc.1c.1d/2,i=bc.1c.4C+bc.1c.1i/2,s=e.cq-t,o=e.ja-i,18.cQ(s,o,"3E"),18.cR(s,o,"3E")):18.9A()},cQ:19(o,n,e){18.3n[e].$2d.3i(19(){1h e,t,i,s=bb(18);"3q"===s.1O("1a-cp-1E")&&(t=(e=s.1a(bc.1s.1p.21).1E).x?-o*(e.87/cS)*1o(e.6s):0,i=e.y?-n*(e.87/cS)*1o(e.6s):0,ie.2X.to(s[0],e.9Z,{x:t,y:i}))})},cR:19(a,r,e){18.3n[e].$3d.3i(19(){1h e,t,i,s,o,n=bb(18);"3q"===n.1O("1a-cp-1E")&&(s=(e=n.1a(bc.1s.1p.21).1E).x?(i=-a/(jb/e.2c),-a*(e.87/cS)*1o(e.6s)):i=0,o=e.y?(t=r/(jb/e.2c),-r*(e.87/cS)*1o(e.6s)):t=0,ie.2X.to(n[0],e.9Z,{3f:t,3g:i,x:s,y:o}))})},3H:19(){bb().2O(18.3n.3E.$2d).2O(18.3n.3E.$3d).3i(19(){1h e=bb(18);"3q"===e.1O("1a-cp-1E")?ie.2X.to(e[0],bb(18).1a(bc.1s.1p.21).1E.bp,{x:0,y:0,3f:0,3g:0}):ie.2X.2e(e[0],{x:0,y:0,3f:0,3g:0})}),bc.1x.4J.$2u&&18.j9(),18.aX=!1}},55:{6i:19(e,t,i,s){1h o,n=4f bc.1s.3a.5P.1w,a={};2q(o in n)2J(t){1g"in":a[o]=[n[o],n[o]],a[o][0]=i.5L(o)?i[o]:s.5L(o)?s[o]:n[o],a[o][1]=s.5L(o)?s[o]:n[o],e.1w.3p.98[o]=a[o][1];1l;1g"1t":1g"1B":1g"1P":a[o]=[],a[o][0]=i.5L(o)?i[o]:n[o],a[o][1]=s.5L(o)?s[o]:i.5L(o)&&i[o]!==n[o]?i[o]:n[o],"1B"===t&&!0!==e.1B.8V&&-1!==e.1B.3t&&(e.1w.3p.bB[o]=a[o][1]);1l;1g"bg":a[o]=[n[o],n[o]],i.5L(o)&&(a[o][0]=i[o]),s.5L(o)&&(a[o][1]=s[o])}1N a},2Y:19(e){2q(1h t,i,s,o={},n=/(bs|gS|gT|gU|bt-4n|gV|gW|gX)/i,a=0,r=(e=e.1M(" ")).1v;a<r;a++)(t=(s=e[a].1M("("))[0]).4z(n)&&(i=1o(s[1]),o[t]=i);1N o},8v:19(e,t){1h i=1r*e.5R[0].p;if("5a"==2z t){1h s="";2q(1h o in t)if("5a"==2z t[o]&&2===t[o].1v)2J(o){1g"bs":s+=" bs( "+(t[o][0]<t[o][1]?t[o][0]+1A.4y(t[o][0]-t[o][1])/1r*i:t[o][0]-1A.4y(t[o][0]-t[o][1])/1r*i)+"px )";1l;1g"bt-4n":s+=" bt-4n( "+(t[o][0]<t[o][1]?t[o][0]+1A.4y(t[o][0]-t[o][1])/1r*i:t[o][0]-1A.4y(t[o][0]-t[o][1])/1r*i)+"8B )";1l;5j:s+=" "+o+"( "+(t[o][0]<t[o][1]?t[o][0]+1A.4y(t[o][0]-t[o][1])/1r*i:t[o][0]-1A.4y(t[o][0]-t[o][1])/1r*i)+"% )"}ie.2X.2e(e.5R,{"-5J-1w":s,1w:s})}}},7W:{fc:19(e,t){1h i=t;if("qQ"==e[1])i=t.cT(0).3C();3u if("qR"==e[1])i=t.cT(0).qS(19(){1N.5-1A.2Q()});3u if("6m"==e[1]){2q(1h s=1A.3J(t.1v/2),i=[t[s]],o=1;o<=s;o++)i.5v(t[s-o],t[s+o]);i.1v=t.1v}3u if("qT"==e[1]){1h n,a=1A.3J(t.1v/2);2q(i=[t[0]],n=1;n<=a;n++)i.5v(t[t.1v-n],t[n]);i.1v=t.1v}1N i},j1:19(e,t){bb(".qU, .qV, .hm",e).2O(t.2f.$1Y).1e({3Q:"3I",1V:1}).3i(19(){2E 18.iw})},aV:19(e,t,i){2q(1h s in t){2q(1h o=[],n=0,a=e.2i.5K.1v;n<a;n++)o[n]=bc.1R.2Y.eb(t[s],s);2E i[s],i.6u[s]=o}t=2H}}},22:{1s:{4i:6V,5Y:6V,5X:9R},iA:19(e,t){1h i,s,o,n,a;bc.1j.2I.1T&&bc.1j.2I.1a.$2C.1v&&(s=(i=bc.1j.2I.1a.$2C).1a(bc.1s.1p.21).2f.$9c,t&&(i.1a(bc.1s.1p.21).2V.eZ=!0,s.5X(bc.1b.22.1s.5X,19(){i.4U("aC"),i.1a(bc.1s.1p.21).2V.eZ=!1}))),bc.1j.20.1a.$2C.1v&&(n=(o=bc.1j.20.1a.$2C).1a(bc.1s.1p.21).2f.$9c,a=o.1a(bc.1s.1p.21).2f.$bQ,bc.1n.7f&&(B.4H("cp-1n-is-6y")&&a.4H("cp-3l-on-6y")||B.4H("cp-1n-is-6z")&&a.4H("cp-3l-on-6z"))||5W(19(){o.4U("cf")},e?50:0),e||t?n.5Y(bc.1b.22.1s.5X):n.1e({3x:"5u"}),o.1a(bc.1s.1p.21).2V.f0=!0)}},2t:{1s:{jc:.35,jd:.3},6f:19(e){18.9z=e||"20",18.3H(),bc.1x.2t.4V.$2u&&18.4V.6i(),bc.1x.2t.4x.$2u&&18.4x.6i(),bc.1x.2t.2S.$2u&&18.2S.6i()},3C:19(){1h e,t;bc.1j.2I&&bc.1j.2I.1a&&bc.1b.1G&&(e=bc.1b.1G.3R(),t=bc.1j.2I.1a.1U*e/18.1s.jd,bc.1x.2t.4V.$2u&&18.4V.3h&&(bc.1b.1G.5w(bc.1b.2t.4V.3h),18.4V.3h.3C().5o(t)),bc.1x.2t.4x.$2u&&18.4x.3h&&(bc.1b.1G.5w(bc.1b.2t.4x.3h),18.4x.3h.3C().5o(t)),bc.1x.2t.2S.$2u&&18.2S.3h&&(bc.1b.1G.5w(bc.1b.2t.2S.3h),18.2S.3h.3C().5o(t)))},3H:19(){bc.1x.2t.4V.$2u&&18.4V.3h&&18.4V.3H(),bc.1x.2t.4x.$2u&&18.4x.3h&&18.4x.3H(),bc.1x.2t.2S.$2u&&18.2S.3h&&18.2S.3H()},4V:{3H:19(){18.3h&&(18.3h.5Z(),18.3h=!1)},6i:19(){18.3h=ie.2X.42(bc.1x.2t.4V.$2u[0],bc.1j[bc.1b.9z].1a.1U,{2w:!1,4I:!0,1e:{1d:0}},{2w:!1,1e:{},1I:ie.9B.9C,cI:19(){bc.1b.2t.4V.3h=!1},4p:19(e){e.5R.1Z.1d="1r%",e.5R.1Z.1d="eK( 1r% - "+bc.1c.3Z.aO+"px )"},fl:["{5V}"],7U:19(e){e.5R.1Z.1d=1A.aa(bc.1c.1d,bc.1c.1d*e.3R())+"px"},7V:["{5V}"]})}},4x:{3H:19(){18.3h&&(bc.1x.2t.4x.$2u.28(!0,!0),18.3h.5Z(),18.3h=!1)},6i:19(){1h e=bc.1x.2t.4x.$2u.1C(".cp-ct-41 .cp-ct-4n")[0],t=bc.1x.2t.4x.$2u.1C(".cp-ct-1S .cp-ct-4n")[0],i=bc.1j[bc.1b.9z].1a.1U;18.3h=4f ie.7i({4I:!0}).42(bc.1x.2t.4x.$2u[0],bc.1b.2t.1s.jc,{2w:!1,51:!0,1e:{1V:0,3x:"5u"}},{2w:!1,1e:{1V:bc.1x.2t.4x.$2u.1a("3k").1V}}).42(e,i/2,{2w:!1,1e:{2c:0}},{2w:!1,1e:{2c:cG},1I:ie.9B.9C},0).42(t,i/2,{2w:!1,1e:{2c:0}},{2w:!1,1e:{2c:cG},1I:ie.9B.9C},i/2)}},2S:{3H:19(){18.3h&&(18.3h.5Z(),18.3h=!1)},6i:19(){1h i=18;i.3h=4f ie.7i({4I:!0,cI:19(){bc.1b.2t.2S.3h=!1}}),bb.3i(bc.1x.2t.2S.$7R,19(t,e){i.3h.2O(ie.2X.42(bc.1x.2t.2S.$7R[t][0],bc.1j[bc.1b.9z].1a.1U,{2w:!1,1e:{1S:0}},{2w:!1,1e:{},1I:ie.9B.9C,4p:19(e){e.5R.1Z.1S="eK( 1r% - "+bc.1x.2t.2S.7S[t]+"px )"},fl:["{5V}"],7U:19(e){e.5R.1Z.1S=(bc.1x.2t.2S.aH[t]-bc.1x.2t.2S.7S[t])*e.3R()+"px"},7V:["{5V}"]}),0),i.3h.2O(ie.2X.42(bc.1x.2t.2S.$eI[t][0],bc.1j[bc.1b.9z].1a.1U,{2w:!1,1e:{1d:0}},{2w:!1,1e:{},1I:ie.9B.9C,4p:19(e){e.5R.1Z.1d="1r%"},fl:["{5V}"],7U:19(e){e.5R.1Z.1d=bc.1x.2t.2S.eJ[t]*e.3R()+"px"},7V:["{5V}"]}),0)})}}}},bc.3K={58:19(){if(bc.o.3K&&0!==bc.o.3K.1v){1h e=bc.o.3K[0],s="5a"==2z e?e.je:e;if(1q.2L.3K[s])bc.3K.1p(s,e,!0),bc.3K.58();3u if(bc.6Y.fm||"5a"!=2z e)bc.6Y.fm?1q.5r&&(5r.6n(bc.1s.1c.9X,"qW 58 3K on jf:// 7M."),5r.aY("g5 qX di 1J fo qY.")):1q.5r&&(5r.6n(bc.1s.1c.9X,"jg fo dh qZ!"),5r.aY(\'jg "\'+s+\'" fp fq r0 in 1c 1p 5N, r1 di r2 fo dh 5F r3 on r4.\')),bc.o.3K.cU(0,1),bc.3K.58();3u{if(-1!==1q.2L.8I.1k(s))1N 2x bc.3K.jh(s);-1===1q.2L.b9.1k(s)&&-1===1q.2L.9O.1k(s)?(1q.2L.8I.5v(s),bb.fr({7c:-1===e.js.1k("ax://")&&-1===e.js.1k("9l://")?(1q.2L.9P?1q.2L.9P:1q.2L.bd+"/../3K/")+e.js:e.js,ji:"6O",fs:19(){bc.3K.1p(e.je,e,!0),1q.2L.b9.5v(s)},6n:19(e,t,i){1q.5r&&(5r.6n(bc.1s.1c.9X,s,"1J fp 5F fq et!"),5r.6n("r5 6n aY:",i)),1q.2L.9O.5v(s)},jj:19(){1q.2L.8I.cU(1q.2L.8I.1k(s),1),bc.3K.58()}})):(bc[s]||-1!==1q.2L.9O.1k(s)?bc.o.3K.cU(0,1):bc.3K.1p(s,e),bc.3K.58())}}3u bc.1c.8m.9D()},1p:19(e,t,i){bc.6L[e]=4f 1q.2L.3K[e](bc,B,W,t.1u),1q.2L.dj(bc.6L[e].ft.fu,bc.1J.6P)?(t.1e&&i&&bb(\'<4Q ep="hU" 4s="\'+(-1===t.1e.1k("ax://")&&-1===t.1e.1k("9l://")?(1q.2L.9P?1q.2L.9P:1q.2L.bd.26("/7D/js/","/7D/1e/")+"/3K/")+t.1e:t.1e)+\'">\').2s("aA"),bc.6L[e].1p&&bc.6L[e].1p()):1q.5r&&5r.6n(bc.1s.1c.9X,e,"1J fp 5F fq et! r6 gw 6P:",bc.6L[e].ft.fu,"(g2 r7:",bc.1J.6P+")"),bc.o.3K.cU(0,1)},jh:19(e){bc.57.fv=ca(19(){-1===1q.2L.b9.1k(e)&&-1===1q.2L.9O.1k(e)||-1!==1q.2L.8I.1k(e)||(aB(bc.57.fv),2E bc.57.fv,bc.3K.58())},1r)}},bc.1c={cB:!0,53:[],23:{au:!1,9b:!1,8o:!1},56:!1,8n:19(){1N 18.23.au||18.23.9b||18.23.8o},58:19(){if(!2G.3T.8g($))1N!1;bc.2r.4c("jk")&&B.4k("jk"),bc.1c.2e.cV()},2e:{cV:19(){1h e;bc.dm=B[0].r8,bc.6Q=bc.1R.2Y.5P(bc.1R.2Y.jl(t)),bc.9E={},bc.o=bb.52(!0,{},bc.1s.1p.5N,bc.6Q),bc.o.7s/=3o,bc.o.7s=0<bc.o.7s?bc.o.7s:.75,bc.o.bi/=3o,1q.5r&&!0!==bc.o.fw&&!0!==1q.2L.fw&&(1q.2L.fw=!0,e=1q.5r.aY?"aY":"r9",5r[e]("g3 g4","v"+bc.1J.6P,"9D"),5r[e]("ra rb rc rd @ 9l://7q.re.5x/")),(1q.2L.ba||1q.2L.dg)&&(1q.2L.bd=(1q.2L.ba||1q.2L.dg).2m.26(/\\\\/g,"/").26(/\\/[^\\/]*$/,"")),"5a"==2z bc.o.3K?bc.3K.58():bc.1c.8m.9D()},ea:19(){1h e,t,i,s,o,n,a,r,l,d,p,c,u,h,m=bc.1c,g=B.49(),f=$.1Z,v=1q.jm($,2H),y=1o($.rf),S=1o($.rg),w=1o(g.1d()),b=1o(g.1i()),x=bc.o.bf,T=bc.o.gc,C=bc.o.29.48(),k=bc.o.1d?-1==bc.o.1d.1k("%")?1o(bc.o.1d):bc.o.1d:f.1d?-1==f.1d.1k("%")?1o(f.1d):f.1d:0<x?x:y,O=k,I=bc.o.1i?-1==bc.o.1i.1k("%")?1o(bc.o.1i):bc.o.1i:f.1i?-1==f.1i.1k("%")?1o(f.1i):f.1i:0<T?T:S,P=I,L=""!==f.4a?-1===f.4a.1k("%")?1o(f.4a):f.4a:0;2J(2x 0===bc.6Q.29&&(0<x&&0<T||"1r%"===k&&"1r%"===I?C="79":x<=0&&T<=0&&bc.o.7r<=0?C=2x 0!==bc.o.2b&&!1===bc.o.2b?"eV":"2b":0<bc.o.7r&&(C="6F")),C){1g"6F":-1!==k.1k("%")&&(k=y),x<=0&&(x=k),bc.o.7r<=0&&(bc.o.7r=x),-1!==I.1k("%")&&(I=b/(1r/1o(I))),T<=0&&(T=I);1l;1g"79":-1!==k.1k("%")&&(k=0<x?x:w),x<=0&&(x=k),-1!==I.1k("%")&&(I=0<T?T:bb(1q).1i()/(1r/1o(I))),T<=0&&(T=I);1l;1g"eV":1l;5j:bc.6Q.29=bc.o.29=C="2b",(bc.o.7r=-1)!==k.1k("%")&&(k=y),-1!==I.1k("%")&&(k=S)}B.2j("cp-4w cp-"+C),B.49().2j("cp-3y-rh"),bc.o.gb&&bc.o.dp&&("6F"===C||"79"===C&&"cD"!==bc.o.8L)&&B.jn(":5F(3T, 6g)").3i(19(){bb(18).2j("cp-5e-4B")}),bc.6Q.8M||"2b"!==C||!bc.6Q.5L("jo")||bc.6Q.jo||(bc.o.8M="2M"),bc.o.8M=bc.o.8M.26("1r% 1r%","eW"),e=0<x?x:k,t=0<T?T:I,"2M"===(o=$.1Z.4u)?i="2M":""===o?i=1o(v.fx("7F-1S")):i=1o($.1Z.4u),"2M"===(n=$.1Z.9u)?s="2M":""===n?s=1o(v.fx("7F-41")):s=1o($.1Z.9u),i===s&&(""===o&&""===n&&(s=i="2M"),B.1e({4u:"2M",9u:"2M"})),a=""!==f.6Z?1o(f.6Z):1o(B.1e("5D-1S")),l=""!==f.70?1o(f.70):1o(B.1e("5D-41")),r=""!==f.71?1o(f.71):1o(B.1e("5D-2l")),d=""!==f.72?1o(f.72):1o(B.1e("5D-24")),p=""!==f.73?1o(f.73):1o(B.1e("74-1S-1d")),u=""!==f.76?1o(f.76):1o(B.1e("74-41-1d")),c=""!==f.77?1o(f.77):1o(B.1e("74-2l-1d")),h=""!==f.78?1o(f.78):1o(B.1e("74-24-1d")),m.3Z={29:C,1d:k,1i:I,e0:O,h9:P,9e:k/1r,9f:I/1r,aP:x,eU:T,1Q:e/t,4a:L,4u:i,9u:s,6Z:a,71:r,70:l,72:d,73:p,77:c,76:u,78:h,aO:a+l+p+u,aQ:r+d+c+h},bb("6g").1O("id")?bb("3T").1O("id")||bb("3T").1O("id","cp-cV"):bb("6g").1O("id","cp-cV"),"3L"!==f.6q&&"hQ"!==f.6q&&($.1Z.6q="dM"),bc.1c.$7B=bb(\'<1y 2v="cp-ps-4w ri cp-5m" 1a-7q-dn="\'+W+\'"></1y>\').2j(B.1O("2v")).cn("3T"),bc.1c.$61=bb(\'<1y 2v="cp-7O"></1y>\'),bc.1c.$6c=bb(\'<1y 2v="cp-1m"></1y>\').2s(bc.1c.$61),bc.1c.$hx=bb(\'<1y 2v="cp-2k-8r"></1y>\').2s(bc.1c.$6c),bc.1c.$c0=bb(\'<1y 2v="cp-2h-rj"></1y>\').2s(bc.1c.$6c),bc.1c.$61.2s(B),!0===bc.o.dA&&bc.1n.7f?(B.2j("cp-9F"),B.4j(".cp-ps-6F-4w").2j("cp-9F"),bc.o.9Q=!1):bc.1c.8m.fy(),bc.o.8Q&&bc.1c.$61.1e({ht:"7c( "+bc.o.8Q+" )",rk:bc.o.gf,rl:bc.o.gg,bn:bc.o.gh,bo:bc.o.gj}),bc.1c.$61.1e({3j:bc.o.8P}),"5d"==bc.o.8P&&!1===bc.o.8Q&&bc.1c.$61.1e({2k:"3I 5d"})},5N:19(){bb("6g").1C(\'9E[fz*="fA"]\').1v&&(bc.9E.rm=bb("6g").1C(\'9E[fz*="fA"]\').1O("fz").1M("fA")[1]),bb("6g").1C(\'6O[2m*="7q"]\').1v&&-1!=bb("6g").1C(\'6O[2m*="7q"]\').1O("2m").1k("?")&&(bc.9E.rn=bb("6g").1C(\'6O[2m*="7q"]\').1O("2m").1M("?")[1].1M("=")[1]),"80"!=2z eX&&(bc.t=bb.52({},eX)),"80"!=2z bM&&(bc.ct=bb.52({},bM)),"4o"==2z bc.o.dx&&(bc.1b.1m.1E.1s.aW=bc.o.dx),"4o"==2z bc.o.dy&&(bc.1b.1m.1E.1s.7X=bc.o.dy),bc.o.dz&&(bc.1b.1m.1E.1s.fh=bc.o.dz),bc.1c.i8=!0}},8m:{9D:19(){bc.1c.9D||(bc.1c.9D=!0,18.ds())},ds:19(){bc.o.4X&&""!==bc.o.4X&&bc.o.8O&&""!==bc.o.8O?bc.1x.4X.58():bc.1c.1p()},fy:19(){bc.1n.7f&&!1!==bc.o.dA||(bc.1n.4d<bc.o.gt||bc.1n.4d>bc.o.dB&&0<bc.o.dB?bc.1c.3l():bc.1c.4l())}},1p:19(){8q(bc.3v.eF),8q(bc.3v.eG),8q(bc.3v.eH),bc.1n.jp(),bc.1c.2e.ea(),bc.1c.2e.5N(),bc.1j.1p(),bc.22.1p(),bc.1x.2t.1p(),bc.1x.cv.1p(),bc.8p.1p(),bc.1x.4J.1p(),bc.2y.1p(),bc.1D.1p(),bc.1j.2e.4L(),bc.1x.2y.1p(),bc.1L.1c(),bb(1q).on("1L."+W,19(){bc.1c.8m.fy(),bc.1c.cB&&bc.1L.5C()}),bb(1q).on("cO."+W,19(){bc.1n.fB(),bc.1L.5C()}),bc.1n.fB(),bb(1q).4U("1L."+W),bb(1q).4U("cO."+W),bc.2r.4c("fC")&&B.4k("fC",bc.2r.4g()),bc.1R.3m(bc.1c,{7Q:!0}),bc.1c.23.jq?bc.2r.8J("aZ"):bc.1D.6X(bc.1j.3A.1T)},3l:19(){B.2j("cp-9F"),B.4j(".cp-ps-6F-4w").2j("cp-9F")},4l:19(){B.4h("cp-9F"),B.4j(".cp-ps-6F-4w").4h("cp-9F")}},bc.1R={2Y:{2N:19(e,t,i){2q(1h s=(r=bb.4q(e)).1M(" "),o="",n=["ro","rp"],a=[bc.1c.1d,bc.1c.1i],r=r.26("rq","0").26("rr","1r%").26("rs","50%").26("rt","50%").26("ru","0").26("rv","1r%").26("1S","0").26("41","1r%").26("6m","50%").26("cW","50%").26("2l","0").26("24","1r%").1M(" "),l=0;l<r.1v;l++)if(-1!==s[l].1k("1c")){bc.1b.1m.1z.6E=!0;1h d=t.1a(bc.1s.1p.21).2f.$1Y[0].1Z;o+=l<2?a[l]/(1r/1o(r[l]))-1o(d[n[l].48()])-1o(d["7F"+n[l]])+"px ":"iN"}3u{if(l<2&&t&&i)2J(l){1g 0:a=i.1d();1l;1g 1:a=i.1i()}-1!==r[l].1k("%")?o+=l<2&&t&&i?a/(1r/1o(r[l]))+"px ":r[l]+" ":o+=1o(r[l])*bc.1L.1Q+"px "}1N bb.4q(o)},4S:19(e,t){1N"5s"!=2z e?e:(-1!==(e=e.48()).1k("rw")||-1!==e.1k("h0")?i=ie.9B.9C:(s=e.4z(/(jr|dG|dH)(.+)/)[2],o=ie[s.hu(0).rx()+s.cT(1)],-1!==e.1k("jr")?i=o.9a:-1!==e.1k("dH")?i=t?o.3w:o.3S:-1!==e.1k("dG")&&(i=t?o.3S:o.3w)),i);1h i,s,o},2g:19(e,t,i,s){1h o=bb.52({},e);1N bb.3i({4n:"2c",62:"3f",6h:"3g"},19(e,t){e in o&&(o[t]=o[e],2E o[e])}),"6H"===i?o.2U=o.3e=o.jt=1:o.fD!==s&&(o.2U=o.3e=o.jt=o.fD,2E o.fD),o.4i&&(o.4i="6H"===i?o.4i/3o:o.4i),2x 0===t&&(t="ry"),o.1I=bc.1R.2Y.4S(t),o},eb:19(e,t){if(e&&-1!==e.1k("(")&&-1!==e.1k(",")&&-1!==e.1k(")")){1h i=e.1M("(")[1].1M(")")[0].1M(","),s=1;1N i[0]=2Z(i[0]),i[1]=2Z(i[1]),-1!==t.1k("2R")&&(s=1r,i[0]*=s,i[1]*=s),1A.3J(1A.2Q()*(i[1]-i[0]+1)+i[0])/s}1N e},5P:19(e,t){if("5s"==2z e)1N bc.1R.2Y.fE(e,t);if("5a"!=2z e)1N e;2q(1h i in e)e[i]=bc.1R.2Y.fE(e[i],t);1N e},fE:19(e,t){if("9y"==e||"1X"==e||"ag"==e)1N!0;if("cH"==e||"c3"==e||"rz"==e)1N!1;if("5s"!=2z e||-1===e.1k(bc.1s.1p.do))1N t?""+1o(e)=="rA"?0:1o(e):bb.6x(e)?2Z(e):e;2q(1h i=e.1M(bc.1s.1p.do),s=[],o=0;o<i.1v;o++)s[o]=bb.6x(i[o])?2Z(bb.4q(i[o])):bb.4q(i[o]);1N s},jl:19(i){1N bb.3i({rB:"4L",rC:"64",hz:"dr",rD:"bf",rE:"bf",rF:"84"},19(e,t){e in i&&(i[t]=i[e],2E i[e])}),i}},ij:19(e){2q(1h t,i=B.jn(),s=i.1v,o=1r,n=0;n<s;n++)if("2M"!==(t=1q.jm(i[n]).fx(e))){if(-1!==t.1k("px"))1N bc.1c.$eS=bb(i[n]),bb(i[n]);-1!==t.1k("%")&&(o=o/1r*1o(t),bc.1c.$eT=o)}},f3:19(e,t,i){1h s=[];if("8D"==i)2q(1h o=0;o<e;o++)2q(1h n=0;n<t;n++)s.5v(o+n*e);3u 2q(1h a=e-1;-1<a;a--)2q(1h r=t-1;-1<r;r--)s.5v(a+r*e);1N s},ei:19(e){2q(1h t,i,s=e.1v;0!==s;)i=1A.3J(1A.2Q()*s),t=e[--s],e[s]=e[i],e[i]=t;1N e},iJ:19(e){1h t=0;2q(1h i in e)e.5L(i)&&++t;1N t},bL:19(e){1N e[0].eO?e[0].eO:e.1a("2m ")?e.1a("2m "):e.1O("2m")},ha:19(e){1N!!e.1O("eE")&&e.1O("eE")},3m:19(e,t,i){if(e&&e.23){1h s=bc.1D.56();if(i)e.23[t]=i;3u 2q(1h o in t)e.23[o]=t[o];1h n=bc.1D.56();e==bc.1D&&(bc.2r.4c("ju")&&B.4k("ju",bc.2r.4g()),n!=s&&(n?bc.2r.4c("jv")&&B.4k("jv",bc.2r.4g()):bc.2r.4c("jw")&&B.4k("jw",bc.2r.4g())))}},jx:19(){2q(1h e in bc.3v)8q(bc.3v[e]),2E bc.3v[e];2q(1h t in bc.57)aB(bc.57[t]),2E bc.57[t]},jy:19(){bc.1b.1G&&(bc.1b.1G.5n().7p().5Z(),2E bc.1b.1G),bc.1b.5z&&(bc.1b.5z.5Z(),2E bc.1b.5z),bc.1b.3U&&(bc.1b.3U.5n().7p().5Z(),2E bc.1b.3U),ie.2X.rG(B.1C(".cp-bg, .cp-3a, .cp-1Y, .cp-iQ, .cp-iR").2W())},ih:19(){bc.1b.1G&&(bc.1b.1G.5n().3R(0).7p().5Z(),2E bc.1b.1G),bc.1b.5z&&(bc.1b.5z.5n().3R(1).7p().5Z(),2E bc.1b.5z),B.1C(".cp-3a:5F(.cp-bg-4P)").3i(19(){1h e=bb(18).1a(bc.1s.1p.21);e.1B.43&&(e.1B.43.28().7p(),2E e.1B.43,ie.2X.2e(e.2f.$7E[0],e.3H.dO)),ie.2X.2e(e.2f.$1Y[0],e.3H.dN)})},jz:19(){bb(1q).2O("3T").2O(B).2O(B.1C("*")).2O("."+W).6C("."+W+" .1E"+W+" .fF"+W),B.6C()}},bc.1n={$aS:bb("3T").1v?bb("3T"):bb("6g"),7f:!!cX.cY.4z(/(jA|jB|jC|rH|rI|rJ|rK|rL rM|rN|rO rP|rQ 7)/i),j7:!!1q.rR,3s:{6o:[32,33,34,35,36,37,38,39,40],cH:19(){1q.cC&&1q.cC("jD",18.3N,!1),1q.jE=18.rS,1q.cZ=2G.cZ=18.3N,1q.jF=18.3N,2G.jG=18.jH},9y:19(){1q.jI&&1q.jI("jD",18.3N,!1),1q.cZ=2G.cZ=2H,1q.jE=2H,1q.jF=2H,2G.jG=2H},3N:19(e){(e=e||1q.6R).3N&&e.3N(),e.rT=!1},jH:19(e){if(-1!==bc.1n.3s.6o.1k(e.jJ))1N bc.1n.3s.3N(e),!1}},rU:19(){1q.b0?1q.b0().c1?1q.b0().c1():1q.b0().jK&&1q.b0().jK():2G.jL&&2G.jL.c1()},fB:19(){18.1d=jM.1d,18.1i=jM.1i,18.4d=bb(1q).1d(),18.3D=bb(1q).1i(),18.rV=bb(2G).1d(),18.bN=bb(2G).1i(),18.46=bb(1q).bP(),18.8F=bb(1q).jN(),18.1Q=18.1d/18.1i,bc.1c.4C=B.5S().2l,bc.1c.6K=B.5S().1S},jp:19(){1h t,i=18;bb(1q).on("1L.fF"+W,19(){i.4d=bb(1q).1d(),i.3D=bb(1q).1i(),i.1Q=i.1d/i.1i,bc.1c.4C=B.5S().2l,bc.1c.6K=B.5S().1S}),bb(1q).on("3s.fF"+W,19(){i.46=bb(1q).bP(),i.8F=bb(1q).jN(),bc.1c.4C=B.5S().2l,bc.1c.6K=B.5S().1S}),bb(1q).on("aI",19(e){i.46=1q.rW,i.8F=1q.rX,1==(t=e.7g?e.7g:e.eM.7g).1v&&(i.i1=t[0].eN)})}},bc.2r={4c:19(e,t){1h i=bb.rY(t||$,"1H");1N!(!i||!i[e])},8J:19(e,t,i,s){if(!bc.1c.8n())if("4o"==2z e)0<e&&e<bc.1j.3t+1&&e!=bc.1j.2I.1T&&bc.1D.6X(e,!0,!0);3u 2J(e){1g"aL":bc.1n.aL=!0;1g"rZ":1g"2K":bc.2y.2K();1l;1g"aK":bc.1n.aK=!0;1g"2p":1g"20":bc.2y.20();1l;1g"s0":1g"3B":bc.2y.3B()}2J(e){1g"s1":bc.6L.1K&&bc.6L.1K.1H.4l(!0);1l;1g"jO":bc.6L.1K&&bc.6L.1K.1H.3l();1l;1g"s2":t&&bc.1m.81.1a(t,i,s);1l;1g"s3":1g"s4":bc.1L.5C();1l;1g"s5":1g"8K":bc.1b.1G&&(bc.1b.1G.3R(0),bc.1b.1G.31());1l;1g"s6":1g"3C":bc.1b.1G&&(bc.1b.1G.iZ()?bc.1b.1G.31():bc.1b.1G.3C(),t&&(bc.1b.1m.1z.iW=!0));1l;1g"s7":1g"28":bc.2y.28();1l;1g"s8":1g"5n":bc.1b.1G&&bc.1b.1G.28(),bc.1b.3U&&bc.1b.3U.28(),bc.22.28(!1);1l;1g"fG":bc.1m.2W("3q").3i(19(){bc.22.eA(bb(18))});1g"s9":1g"8l":bc.1b.1G&&(bc.1b.1G.5o()<.sa&&bc.1b.1m.1z.8l(),bc.1b.1G.31()),bc.1b.3U&&bc.1b.3U.31();1l;1g"sb":1g"sc":bc.1c.56?(B.3V("8l"),bc.1c.56=!1):(B.3V("5n"),bc.1c.56=!0);1l;1g"3H":1g"sd":1l;1g"jP":1g"se":bc.1b.1G&&(bc.1b.1G.3R(0),bc.1b.1G.28()),bc.22.28(!0);1l;1g"aZ":1g"5Z":if(bc.1c.23.7Q){if(bc.1R.jx(),bc.1R.jy(),bc.1m.$5C.sf(),bc.2r.4c("jQ")&&B.4k("jQ"),bc.1c.23.jR||t){if(bc.1c.$7B.5w(),bc.1x.2t.2S.$5I)2q(1h o=0;o<bc.1x.2t.2S.$5I.1v;o++)bc.1x.2t.2S.$5I[o]hv 6N&&bc.1x.2t.2S.$5I[o].5w();bc.2r.4c("fH")&&B.4k("fH"),B.5w()}bc.1R.jz(),1q.2L.g9(W)}3u bc.1R.3m(bc.1c,{jq:!0,jR:t||!1})}},4g:19(){1N{1a:bc,sg:bc.o,dn:W,5R:$,1c:B,23:bc.1c.23,8n:bc.1c.8n(),2r:19(e){B.3V(e)},1j:{3A:{1T:bc.1j.3A.1T,4M:bc.1j.2W.4M(bc.1j.3A.1T)},2K:{1T:bc.1j.2K.1T,4M:bc.1j.2W.4M(bc.1j.2K.1T)},2I:{1T:bc.1j.2I.1T||bc.1j.3A.1T,4M:bc.1j.2W.4M(bc.1j.2I.1T),jS:bc.1m.2W("2I,in"),jT:bc.1m.2W("2I,1P"),1z:bc.1b.1G},20:{1T:bc.1j.20.1T,4M:bc.1j.2W.4M(bc.1j.20.1T),jS:bc.1m.2W("20,in"),jT:bc.1m.2W("20,1P")},3t:bc.1j.3t},si:bc.1b.3U,1D:{23:bc.1D.23,4b:bc.1D.4b,3y:bc.1D.3y,56:bc.1D.56()},64:{47:bc.o.64,2I:bc.1D.c4}}}},bc.6Y={aj:!!cX.cY.4z(/(jA|jB|jC|sj)/i)&&!cX.cY.4z(/(sk|sl|sm)/i),fm:-1!==2G.99.4s.1k("jf://"),iG:19(){2q(1h e=bb("<1y>"),t=!1,i=!1,s=["sn","so","sp","sq","sr"],o=["ss","st","su","sv","sx"],n=s.1v-1;0<=n;n--)t=t||2x 0!==e[0].1Z[s[n]];2q(1h a=o.1v-1;0<=a;a--)e.1e("3Q-1Z","jU-3d"),i=i||"jU-3d"==e[0].1Z[o[a]];1N t&&2x 0!==e[0].1Z[s[4]]&&(e.1O("id","cp-sy").2s(B),t=3===e[0].sz&&9===e[0].6K,e.5w()),t&&i},hp:-1!==cX.cY.1k("sA/5")},bc.6L={},bc.3v={},bc.57={},bc.1J={6P:"1.6.8"},bc.1c.58()};1q.2L.3K.1K=19(o,n,i,e){1h a=18;a.ft={6P:"1.3",fu:"1.6.1"},a.4e={4D:"sB",6o:{sC:["1J","1u"],sD:["1J","1u"],sE:["1J","1u"],sF:["1J","1u"],sG:["1J","1u"],sH:["1J","1u"],sI:["1J","1u"],sJ:["1J","1u"],sK:["1J","1u"],sL:["1J","1u"],sM:["1J","1u"],sN:["1J","1u"],sO:["1J","1u"],sP:["1J","1u"],sQ:["1J","1u"],sR:["1J","1u"],sS:["1J","1u"],sT:["1J","1u"],jV:["1K","2n"],jW:["1K","2n"],d0:["1K","2n"],d1:["1K","2n"],sU:["1K","2n"],b1:["1K","2n"],b2:["1K","2n"],fI:["1K","2n"],fJ:["1K","2n"],fK:["1K","2n"],fL:["1K","2n"],sV:["1K","1f"],sW:["1K","1f"],sX:["1K","1f"],sY:["1K","1f"],sZ:["1K","1f"],t0:["1K","1f"],t1:["1K","1f"],t2:["1K","1f"],t3:["1K","1f"],jX:["1K","2n"],t4:["3M","2n"],t5:["3M","1f"],t6:["3M","1f"],t7:["3M","1f"],t8:["3M","1f"],t9:["3M","1f"],ta:["3M","1f"]}},a.1p=19(){1h e,t,i;2q(1h s in a.4e.6o)e=a[a.4e.6o[s][0]][a.4e.6o[s][1]],o.o.5L(s)&&(t=(t=s.1M("1K")[1]).dl(0,1).48()+t.dl(1),o.o[s]!==e[t]&&(-1!==(i=t.48()).1k("1I")&&(o.o[s]=o.1R.2Y.4S(o.o[s])),-1===i.1k("1U")&&-1===i.1k("4i")||"4o"!=2z o.o[s]||(o.o[s]/=3o),e[t]=o.o[s]));a.1J.d2(),a.1c.d2(),a.1K.d3(),a.1K.d4(),a.1K.d5(),a.1c.d4(),a.3M.d3(),a.3M.d5(),a.1H.2e()},a.1J={1u:{jY:!1,9G:!1,jZ:!1,d6:!1,d7:!1,9H:!1,fM:!1,k0:!1,fN:!1,k1:!1,4w:"3T",k2:!0,fO:!1,k3:!0,k4:"",k5:!0,9I:!0,k6:"2h"},d2:19(){18.1u.$b3=bb(18.1u.jY).2O(\'[1a-cp-1K-4U-2q="\'+n.1O("id")+\'"], [4s="#\'+n.1O("id")+\'"], .\'+n.1O("id")),bb(\'[4s="#\'+n.1O("id")+\'"]\').on("4t."+a.4e.4D+i,19(e){e.3N()}),n[0].1Z.1d&&-1!==n[0].1Z.1d.1k("px")&&!o.o.jV&&(a.1K.2n.1d=1o(n[0].1Z.1d)),n[0].1Z.1i&&-1!==n[0].1Z.1i.1k("px")&&!o.o.jW&&(a.1K.2n.1i=1o(n[0].1Z.1i)),!o.o.b1||"1S"!==o.o.b1&&"41"!==o.o.b1||(a.1K.2n.b4=o.o.b1),"6F"===o.o.29&&(a.1K.2n.b4="1S"),!o.o.b2||"2l"!==o.o.b2&&"24"!==o.o.b2||(a.1K.2n.d8=o.o.b2),o.o.fI&&(a.1K.2n.fP=o.o.fI),o.o.fJ&&(a.1K.2n.fQ=o.o.fJ),o.o.fK&&(a.1K.2n.fR=o.o.fK),o.o.fL&&(a.1K.2n.fS=o.o.fL),a.1J.1u.k0&&n.on("el",19(e,t){if(t.1j.2I.1T===t.1j.3t)1N a.1H.3l(),!1})}},a.3M={2n:{k7:"tb(0,0,0,.85)"},1f:{k8:.4,k9:.4,ka:o.3c.4R.3w,kb:o.3c.4R.3w,kc:"6w",kd:"6w"},d3:19(){a.$3M=bb("<1y>").2j("cp-1K-3M").1e({2k:18.2n.k7}).g8(a.$1K)},d5:19(){18.1f.1W={1V:1,3x:"5u"},18.1f.59={1I:18.1f.ka,1V:1,x:0,y:0,z:0,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0,3X:0},18.1f.1F={1I:18.1f.kb,4p:19(){o.3c.2X.2e(a.$3M[0],{3x:"3I",x:0,y:0,1V:0})}}},4l:19(){2J(18.1f.kc.48()){5j:1g"6w":18.1f.1W.1V=0;1l;1g"ke":18.1f.1W.y=-o.1n.3D;1l;1g"kf":18.1f.1W.y=o.1n.3D;1l;1g"kg":18.1f.1W.x=-o.1n.4d;1l;1g"kh":18.1f.1W.x=o.1n.4d;1l;1g"tc":18.1f.1W.x=-o.1n.4d,18.1f.1W.y=-o.1n.3D,18.1f.1W.1V=0;1l;1g"td":18.1f.1W.x=o.1n.4d,18.1f.1W.y=-o.1n.3D,18.1f.1W.1V=0;1l;1g"te":18.1f.1W.x=-o.1n.4d,18.1f.1W.y=o.1n.3D,18.1f.1W.1V=0;1l;1g"tf":18.1f.1W.x=o.1n.4d,18.1f.1W.y=o.1n.3D,18.1f.1W.1V=0;1l;1g"2R":18.1f.1W.2U=0,18.1f.1W.3e=0}o.3c.2X.42(a.$3M[0],18.1f.k8,18.1f.1W,18.1f.59)},3l:19(){2J(18.1f.kd.48()){5j:1g"6w":18.1f.1F.1V=0;1l;1g"ki":18.1f.1F.y=-o.1n.3D;1l;1g"kj":18.1f.1F.y=o.1n.3D;1l;1g"kk":18.1f.1F.x=-o.1n.4d;1l;1g"kl":18.1f.1F.x=o.1n.4d;1l;1g"tg":18.1f.1F.x=-o.1n.4d,18.1f.1F.y=-o.1n.3D,18.1f.1F.1V=0;1l;1g"th":18.1f.1F.x=o.1n.4d,18.1f.1F.y=-o.1n.3D,18.1f.1F.1V=0;1l;1g"ti":18.1f.1F.x=-o.1n.4d,18.1f.1F.y=o.1n.3D,18.1f.1F.1V=0;1l;1g"tj":18.1f.1F.x=o.1n.4d,18.1f.1F.y=o.1n.3D,18.1f.1F.1V=0;1l;1g"2R":18.1f.1F.2U=0,18.1f.1F.3e=0}o.3c.2X.to(a.$3M[0],18.1f.k9,18.1f.1F)}},a.1K={2n:{1d:hj,1i:7H,tk:!1,tl:!1,km:"",b4:"6m",d8:"cW",fP:10,fQ:10,fR:10,fS:10},1f:{6a:1,8c:.5,kn:.2,3w:o.3c.4R.9a,3S:o.3c.4R.3w,ko:"6w",kp:"6w",d9:!1,da:!1},d3:19(){1h e=n.49().is(".cp-1K")?n.49():bb(\'<1y 2v="cp-1K">\');bb(a.1J.1u.4w).6W(e.6W(bb(\'<1y 2v="cp-1K-7O">\').6W(n))),n.1O("1Z",n.1O("1Z")+"; "+a.1K.2n.km),a.$7O=n.49(),a.$1K=a.$7O.49(),a.1J.1u.k3&&n.6W(\'<1y 2v="cp-1K-9J-db" 1Z="\'+a.1J.1u.k4+\'"></1y>\')},d4:19(){a.$1K.1e({1S:a.1K.2n.fP,41:a.1K.2n.fQ,2l:a.1K.2n.fR,24:a.1K.2n.fS}),a.$7O.1e({4a:o.1c.3Z?o.1c.3Z.4a:n[0].1Z.4a||n.1e("47-1d"),9K:o.1c.3Z&&o.1c.3Z.9K?o.1c.3Z.9K:n[0].1Z.9K||n.1e("47-1i"),1d:a.1K.2n.1d,1i:a.1K.2n.1i})},d5:19(){18.1f.1W={2A:6V,2N:"50% 50%"},"5a"==2z 18.1f.d9&&(18.1f.1W=bb.52({},18.1f.1W,18.1f.d9)),18.1f.59={1V:1,x:0,y:0,z:0,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0,4i:18.1f.kn,1I:18.1f.3w,7A:19(){a.1J.1u.9I&&n.3V("fG")},4p:19(){1h e,t=6A.8s(),i=1A.3J(t/3o),s=";fT="+4f 6A(t+kq).fU();2G.9L="cp-1K-bO-tm="+i+s+";fV=/",bb.6x(o.o.fW)&&(s=(e=2Z(o.o.fW))?";fT="+4f 6A(t+tp*e).fU():"",2G.9L=n[0].id.26("2P","-1K-")+"="+i+s+";fV=/"),n.4U("tq",o.2r.4g()),o.1c.23.aT=!0,a.1J.1u.9I||(o.1b.1G?(o.o.83&&o.1D.56()&&o.1b.1G.5o(0),o.1b.1m.1z.31()):n.3V("fG")),"4o"==2z a.1J.1u.fM&&5W(19(){a.1H.3l()},3o*a.1J.1u.fM),(a.1J.1u.9G||a.1J.1u.9H)&&a.1H.b5()}},18.1f.1F={1I:18.1f.3S,2N:"50% 50%",4p:19(){a.1J.1u.9I&&n.3V("5n"),a.$1K.4h("cp-1K-4B"),o.1c.23.4K=!1,o.1c.23.aT=!1,a.1J.1u.k2?(o.2r.4c("9M")&&n.4k("9M",o.2r.4g()),a.1H.aZ()):(o.3c.2X.2e(n[0],{1V:1,x:0,y:0,z:0,2c:0,3f:0,3g:0,2U:1,3e:1,5f:0,5g:0}),"2h"===a.1J.1u.k6&&n.3V("jP"),(a.1J.1u.9G||a.1J.1u.9H)&&a.1H.b5(),o.2r.4c("9M")&&n.4k("9M",o.2r.4g()))}},"5a"==2z 18.1f.da&&(18.1f.1F=bb.52({},18.1f.1F,18.1f.da))},4l:19(){if(o.1c.23.4K=!0,o.1c.23.aT=!!a.1J.1u.9I,a.$1K.2j("cp-1K-4B"),bb(1q).4U("1L."+i),a.1H.1L(),"5a"!=2z 18.1f.d9)2J(18.1f.ko.48()){5j:1g"6w":18.1f.1W.1V=0;1l;1g"ke":18.1f.1W.y=o.1n.46-(o.1c.1i+o.1c.4C);1l;1g"kf":18.1f.1W.y=o.1n.46+o.1n.3D-o.1c.4C;1l;1g"kg":18.1f.1W.x=o.1n.8F-(o.1c.1d+o.1c.6K);1l;1g"kh":18.1f.1W.x=o.1n.8F+o.1n.4d-o.1c.6K;1l;1g"tr":18.1f.1W.1V=0,18.1f.1W.y=-o.1c.1i/2,18.1f.1W.3f=30,18.1f.59.1I=o.3c.4R.3S;1l;1g"ts":18.1f.1W.1V=0,18.1f.1W.y=o.1c.1i/2,18.1f.1W.3f=-30,18.1f.59.1I=o.3c.4R.3S;1l;1g"tt":18.1f.1W.1V=0,18.1f.1W.x=-o.1c.1d/2,18.1f.1W.3g=-30,18.1f.59.1I=o.3c.4R.3S;1l;1g"tu":18.1f.1W.1V=0,18.1f.1W.x=o.1c.1d/2,18.1f.1W.3g=30,18.1f.59.1I=o.3c.4R.3S;1l;1g"tv":18.1f.1W.1V=0,18.1f.1W.3e=1.5,18.1f.1W.y=-o.1c.1i/4,18.1f.1W.2N="50% 1r%",18.1f.59.1I=o.3c.b6.3S;1l;1g"tw":18.1f.1W.1V=0,18.1f.1W.3e=1.5,18.1f.1W.y=o.1c.1i/4,18.1f.1W.2N="50% 0",18.1f.59.1I=o.3c.b6.3S;1l;1g"tx":18.1f.1W.1V=0,18.1f.1W.2U=1.5,18.1f.1W.x=-o.1c.1d/4,18.1f.1W.2N="1r% 50%",18.1f.59.1I=o.3c.b6.3S;1l;1g"ty":18.1f.1W.1V=0,18.1f.1W.2U=1.5,18.1f.1W.x=o.1c.1d/4,18.1f.1W.2N="0 50%",18.1f.59.1I=o.3c.b6.3S;1l;1g"2R":18.1f.1W.1V=0,18.1f.1W.2U=.5,18.1f.1W.3e=.5;1l;1g"kr":18.1f.1W.2c=7H,18.1f.1W.2U=0,18.1f.1W.3e=0,18.1f.59.1I=o.3c.9N.3S;1l;1g"ks":18.1f.1W.3f=7H,18.1f.1W.2U=0,18.1f.1W.3e=0,18.1f.59.1I=o.3c.9N.3S;1l;1g"kt":18.1f.1W.3g=7H,18.1f.1W.2U=0,18.1f.1W.3e=0,18.1f.59.1I=o.3c.9N.3S;1l;1g"ku":18.1f.1W.1V=0,18.1f.1W.2U=1.2,18.1f.1W.3e=.8,18.1f.59.1I=o.3c.tz.3S}o.3c.2X.42(n[0],18.1f.6a,18.1f.1W,18.1f.59),o.1b.1G&&o.1c.23.4K&&o.1c.23.aT&&(o.o.83&&o.1D.56()&&o.1b.1G.5o(0),o.1b.1m.1z.31())},3l:19(){if("5a"!=2z 18.1f.da)2J(18.1f.kp.48()){5j:1g"6w":18.1f.1F.1V=0;1l;1g"ki":18.1f.1F.y=o.1n.46-(o.1c.1i+o.1c.4C);1l;1g"kj":18.1f.1F.y=o.1n.46+o.1n.3D-o.1c.4C;1l;1g"kk":18.1f.1F.x=o.1n.8F-(o.1c.1d+o.1c.6K);1l;1g"kl":18.1f.1F.x=o.1n.8F+o.1n.4d-o.1c.6K;1l;1g"tA":18.1f.1F.1V=0,18.1f.1F.y=-o.1c.1i/2,18.1f.1F.3f=30,18.1f.1F.1I=o.3c.4R.3w;1l;1g"tB":18.1f.1F.1V=0,18.1f.1F.y=o.1c.1i/2,18.1f.1F.3f=-30,18.1f.1F.1I=o.3c.4R.3w;1l;1g"tC":18.1f.1F.1V=0,18.1f.1F.x=-o.1c.1d/2,18.1f.1F.3g=-30,18.1f.1F.1I=o.3c.4R.3w;1l;1g"tD":18.1f.1F.1V=0,18.1f.1F.x=o.1c.1d/2,18.1f.1F.3g=30,18.1f.1F.1I=o.3c.4R.3w;1l;1g"2R":18.1f.1F.1V=0,18.1f.1F.2U=.5,18.1f.1F.3e=.5;1l;1g"tE":18.1f.1F.1V=0,18.1f.1F.3e=1.5,18.1f.1F.y=-o.1c.1i/4,18.1f.1F.2N="50% 1r%",18.1f.1F.1I=o.3c.4R.3w;1l;1g"tF":18.1f.1F.1V=0,18.1f.1F.3e=1.5,18.1f.1F.y=o.1c.1i/4,18.1f.1F.2N="50% 0",18.1f.1F.1I=o.3c.4R.3w;1l;1g"tG":18.1f.1F.1V=0,18.1f.1F.2U=1.5,18.1f.1F.x=-o.1c.1d/4,18.1f.1F.2N="1r% 50%",18.1f.1F.1I=o.3c.4R.3w;1l;1g"tH":18.1f.1F.1V=0,18.1f.1F.2U=1.5,18.1f.1F.x=o.1c.1d/4,18.1f.1F.2N="0 50%",18.1f.1F.1I=o.3c.4R.3w;1l;1g"kr":18.1f.1F.2c=7H,18.1f.1F.2U=0,18.1f.1F.3e=0,18.1f.1F.1I=o.3c.9N.3w;1l;1g"ks":18.1f.1F.3f=7H,18.1f.1F.2U=0,18.1f.1F.3e=0,18.1f.1F.1I=o.3c.9N.3w;1l;1g"kt":18.1f.1F.3g=7H,18.1f.1F.2U=0,18.1f.1F.3e=0,18.1f.1F.1I=o.3c.9N.3w;1l;1g"ku":18.1f.1F.1V=0,18.1f.1F.2U=1.2,18.1f.1F.3e=.8,18.1f.1F.1I=o.3c.b6.9a}a.1J.1u.9I||n.3V("5n"),o.3c.2X.to(n[0],18.1f.8c,18.1f.1F)}},a.1c={d2:19(){o.o.d0||o.o.d1?(o.o.29="79",o.o.8L="cD",o.o.d0&&!o.o.d1&&n.1e({9K:a.1K.2n.1i}),o.o.d1&&!o.o.d0&&n.1e({4a:a.1K.2n.1d})):(o.o.29="2b",n.1e({4a:a.1K.2n.1d,9K:a.1K.2n.1i})),o.1c.8w=!0},d4:19(){1h e={};2J(a.1K.2n.b4){1g"1S":e.1S=0,e.41="2M";1l;1g"41":e.1S="2M",e.41=0;1l;1g"6m":e.1S="50%",e.41="2M"}2J(a.1K.2n.d8){1g"2l":e.2l=0,e.24="2M";1l;1g"24":e.2l="2M",e.24=0;1l;1g"cW":e.2l="50%",e.24="2M"}n.1e(e)}},a.1H={2e:19(){n.on("fC",19(e,t){a.1J.1u.$b3&&0<a.1J.1u.$b3.1v&&a.1J.1u.$b3.on("4t."+a.4e.4D+i,19(e){e.3N(),a.$1K.4H("cp-1K-4B")?a.1H.3l():a.1H.4l()}),(a.1J.1u.9G||a.1J.1u.9H)&&(a.1H.5M="6I",a.1H.dc=o.1n.46,a.1H.b5(),bb(1q).on("3s."+a.4e.4D+i,19(){(o.1n.46>=a.1H.dc&&"6J"===a.1H.5M||o.1n.46<=a.1H.dc&&"6I"===a.1H.5M&&0!==o.1n.46)&&a.1H.kv(),a.1H.dc=o.1n.46,a.1H.5M===a.1H.8G&&("2M"===a.1J.1u.5A?o.1c.4C>o.1n.46&&o.1c.4C<o.1n.46+o.1n.3D?"6I"===a.1H.5M&&(o.1c.23.4K?a.1H.7Y=!0:a.1H.7Z=!0):"6J"===a.1H.5M&&(o.1c.23.4K?a.1H.7Y=!0:a.1H.7Z=!0):"4o"==2z a.1J.1u.5A?o.1n.46>=a.1J.1u.5A?"6I"===a.1H.5M&&(o.1c.23.4K?a.1H.7Y=!0:a.1H.7Z=!0):"6J"===a.1H.5M&&(o.1c.23.4K?a.1H.7Y=!0:a.1H.7Z=!0):-1!==a.1J.1u.5A.1k("%")&&(1o(o.1n.46/((o.1n.bN-o.1n.3D)/1r))>1o(a.1J.1u.5A)?"6I"===a.1H.5M&&(o.1c.23.4K?a.1H.7Y=!0:a.1H.7Z=!0):"6J"===a.1H.5M&&(o.1c.23.4K?a.1H.7Y=!0:a.1H.7Z=!0))),a.1H.7Z?(a.1H.7Z=!1,a.1H.4l(),a.1H.b5()):a.1H.7Y&&(a.1H.7Y=!1,a.1H.3l())}),bb(1q).4U("3s."+a.4e.4D+i)),a.1J.1u.jZ&&(bb(2G).on("6D."+a.4e.4D+i,19(e){a.1H.kw=e.ja-o.1n.46}),bb("6g").on("5H."+a.4e.4D+i,19(){a.1H.kw<1r&&a.1H.4l()})),a.1J.1u.d6&&"4o"==2z a.1J.1u.d6&&(a.1H.tI=0,a.1H.dd(),bb(1q).on("58."+a.4e.4D+i,19(){a.1H.dd()}),bb(2G).on("6D."+a.4e.4D+i+" tJ."+a.4e.4D+i+"tK."+a.4e.4D+i,19(){a.1H.dd()})),a.1J.1u.5L("d7")&&"4o"==2z a.1J.1u.d7&&a.1H.kx(),bb(1q).on("1L."+a.4e.4D+i,19(){o.1c.23.4K&&a.1H.1L()}),bb(1q).on("cO."+a.4e.4D+i,19(){o.1c.23.4K&&5W(19(){o.1L.5C(),a.1H.1L()},9R)})}),a.1J.1u.k5&&a.$3M.on("4t."+a.4e.4D+i,19(){a.1H.3l()}),n.on("4t."+a.4e.4D+i+" cu."+a.4e.4D+i,\'[4s="#tL"], [4s="#tM"], .cp-1K-9J, .cp-9J-1K, .cp-1K-9J-db, .cp-9J-1K-db\',19(e){e.3N(),a.1H.3l()}),bb(2G).on("4t."+a.4e.4D+i+" cu."+a.4e.4D+i,".cp-9J-5C-tN-db",19(e){e.3N(),a.1H.3l()})},b5:19(){a.1J.1u.9H&&o.1c.23.4K?a.1J.1u.5A=a.1J.1u.9H:a.1J.1u.9G&&!o.1c.23.4K?a.1J.1u.5A=a.1J.1u.9G:a.1J.1u.5A="","2M"===a.1J.1u.5A?o.1c.4C>o.1n.46&&o.1c.4C<o.1n.46+o.1n.3D?a.1H.8G="6J":a.1H.8G="6I":"4o"==2z a.1J.1u.5A?o.1n.46>=a.1J.1u.5A?a.1H.8G="6J":a.1H.8G="6I":-1!==a.1J.1u.5A.1k("%")&&(1o(o.1n.46/((o.1n.bN-o.1n.3D)/1r))>1o(a.1J.1u.5A)?a.1H.8G="6J":a.1H.8G="6I")},kv:19(){a.1J.1u.5A&&("6J"===a.1H.5M?a.1H.5M="6I":a.1H.5M="6J")},dd:19(){a.1H.fX&&8q(a.1H.fX),a.1H.fX=5W(19(){a.1H.4l()},3o*a.1J.1u.d6)},kx:19(){a.1H.fY&&8q(a.1H.fY),a.1H.fY=5W(19(){a.1H.4l()},3o*a.1J.1u.d7)},4l:19(e){if(!o.1c.23.4K){if(!e&&bb.6x(o.o.fW)&&~2G.9L.1k(n[0].id.26("2P","-1K-")+"="))1N;if(!e&&(o.o.b7<0&&~2G.9L.1k("cp-b7=")||0<o.o.b7&&2G.9L.1k("cp-b7=")<0))1N;1h t;if(a.1J.1u.k1&&(t=bb(".cp-1K-4B .cp-4w")).1v)1N 2x t.6C("9M.ky"+i).kz("9M.ky"+i,19(){a.1H.4l()});o.2r.4c("kA")&&n.4k("kA",o.2r.4g()),a.1J.1u.fN||bb(2G).on("kB.kC"+i,19(e){27===e.jJ&&a.1H.3l()}),a.1J.1u.fO||a.3M.4l(),a.1K.4l()}},3l:19(){o.1c.23.4K&&(n.4U("tO",o.2r.4g()),a.1J.1u.fN||bb(2G).6C("kB.kC"+i),a.1J.1u.fO||a.3M.3l(),a.1K.3l())},1L:19(){1h e={};"6m"===a.1K.2n.b4&&(e.4u=-o.1c.1d/2),"cW"===a.1K.2n.d8&&(e.5U=-o.1c.1i/2),n.1e(e);1h t=n.5S();o.1c.6K=t.1S,o.1c.4C=t.2l},aZ:19(){n.on("fH",19(){bb([1q,2G,2G.hf,2G.3T,a.1J.1u.$b3]).6C(a.4e.4D+i),a.$3M.5w(),a.$1K.5w()}).3V("aZ",!0)}}},bb(19(){1h e=bb("#cp-9E").ak("tP");e&&e.1a&&bb(e.1a.cT(7,-2).26(/<hG/g,"<3G").26(/<(\\/)?js>/g,"<$tQ>")).2s(2G.3T)}),bb(2G).on("kD",".cp-4w",19(e){e.3N();1h n=bb(18),a=6j[n.1a().6k],t=1q.ga||1q,r=n.1C(":kD")[0],l=n.tR()+"&"+r.7m+"="+r.tS+"&fr=1";"kE"!=r.7m||l.4z(/\\tT=/)?"tU"==r.7m?l+="&tV=tW":"tX"==r.7m&&1q.kF&&(l+="&tY="+kF+"&7c="):l+="&de=0";1h i=bb(\'<1y 2v="cp-tZ">\').1e("2k",a.o.jX).hX(n),d=t.kG.42(i[0],5,{2U:0},{1e:{2U:.8},1I:"u0"}),s=18.de+(~18.de.1k("?")?"&":"?")+6A.8s();bb.fr(s,{29:"u1",1a:l,ji:"hJ",hS:!1,fs:19(e){if(e.kH)1N d.kI=!0,99.4s=e.kH;if(e.aw&&!e.aw.1v){1h t,i,s;"kE"==r.7m&&~l.1k("de=0")&&(t=6A.8s(),i=1A.3J(t/3o),s=";fT="+4f 6A(t+kq).fU(),2G.9L="cp-b7="+i+s+";fV=/");2q(1h o=a.1j.3t;o;o--)if("fs"==a.1j.2W.4M(o)){n.3V(o);1l}o||n.3V("jO")}3u r.kJ(e.aw?e.aw.u2("\\n").26(/<.*?>/g,""):"u3 6n"),r.4t(),bb(r.u4).kz("u5",":u6",19(){r.kJ("")})},jj:19(){d.kI||(d.5Z(),t.kG.to(i[0],.3,{1e:{2U:1,1V:0},4p:19(){i.5w()}}))}})})}(1q.u7=6N);',62,1868,'||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||this|function|data|transitions|slider|width|css|transitionSettings|case|var|height|slides|indexOf|break|layers|device|parseInt|init|window|100|defaults|hover|settings|length|filter|gui|div|timeline|Math|loop|find|slideshow|parallax|styleOutTo|_slideTimeline|events|ease|plugin|popup|resize|split|return|attr|out|ratio|functions|left|index|duration|opacity|styleInFrom|enabled|wrapper|style|next|dataKey|media|state|bottom||replace||stop|type|transitionProperties|responsive|rotation||set|elements|transition|slide|textIn|addClass|background|top|src|styleSettings|clip|nextSlide|for|api|appendTo|timers|element|class|autoCSS|void|navigation|typeof|transformPerspective|kenBurns|backgroundVideo|thumbnail|delete|textOut|document|null|current|switch|prev|_creativePopup|auto|transformOrigin|add|_|random|scale|slidebar|mediaSettings|scaleX|mediaProperties|get|TweenMax|convert|parseFloat||play|||||||||layer|startAt|gsap||scaleY|rotationX|rotationY|_transition|each|backgroundColor|original|hide|setStates|wrappers|1e3|values|active|nav|scroll|count|else|timeouts|easeIn|display|direction|curSlide|first|start|reverse|viewportHeight|cursor|textOutNodesTo|img|reset|none|floor|plugins|static|overlay|preventDefault|youtube|player|transform|progress|easeOut|body|_slideTransition|creativePopup|from|borderRadius|textInNodesFrom|initial||right|fromTo|_timeline|||winScrollTop|max|toLowerCase|parent|maxWidth|sequence|hasEvent|viewportWidth|pluginDefaults|new|eventData|removeClass|delay|closest|triggerHandler|show|color|rotate|number|onComplete|trim|children|href|click|marginLeft|vimeo|container|circle|abs|match|iframe|visible|offsetTop|eventNamespace|outLayerToCSS|loopToCSS|hoverToCSS|hasClass|paused|shadow|popupIsVisible|firstSlide|deeplink|autoplay|volume|video|link|Quint|easing|totalDuration|trigger|bar|animation|skin|inLayerFromCSS|hoverShouldBeConverted||immediateRender|extend|thumbnails|isEmptyObject|filters|isPaused|intervals|load|styleInTo|object|controls|normal|transparent|overflow|skewX|skewY|inLayerToCSS|should|default|outerWidth|outerHeight|hidden|pause|timeScale|translateX|translateY|console|string|text|block|push|remove|com|image|_forceLayersOut|scrollPosition|transitionoutstart|all|padding|300|not|html5|mouseleave|containerElement|webkit|nodes|hasOwnProperty|scrollDirection|options|maxRatio|properties|slideBackground|target|offset|wrap|marginTop|self|setTimeout|fadeOut|fadeIn|kill||innerWrapper|rotateX|pauseOnHover|cycles|repeat|globalhover|showinfo|inLayerStyleShouldBeConvertedFrom|outLayerStyleShouldBeConvertedTo|durationIn|clipShouldBeConverted|layersWrapper|getStyle|mouseenter|create|html|rotateY|createTransition|_creativePopups|cpUID|thumbnailNavigation|center|error|keys|zoom|position|loopLayerShouldBeConverted|level|loopstart|cycle|fontSize|fade|isNumeric|phone|tablet|Date|vpcontainer|off|mousemove|shouldRestart|fullwidth|tile|after|down|up|offsetLeft|initializedPlugins|globals|jQuery|script|version|userInitOptions|event|transitioninend|loopend|clipTo|500|append|changeTo|browser|paddingLeft|paddingRight|paddingTop|paddingBottom|borderLeftWidth|border||borderRightWidth|borderTopWidth|borderBottomWidth|fullsize|round|ceil|url|running|change|isMobile|touches|preImages|TimelineMax|cols|rows|before|name|createCuboids|box|clear|creativepopup|responsiveUnder|forceLayersOutDuration|transition2d|customtransition2d|customtransition3d|shiftNodes|outClipShouldBeConverted|transitioninstart|textinstart|onStart|hiddenWrapper|zIndex|views|loopWrapper|margin|allMediaLayers|360|attributes|removeAttr|timelineIsCalculated|finished|protocol|visibility|inner|thumb|isLoaded|sliderContainerElement|sliderContainerElementWidth|curTiles|onUpdate|onUpdateParams|splitType|sensitive|popupShouldHide|popupShouldShow|undefined|update|span|pauseLayers|shuffleSlideshow||transition3d|distance|minfontsize|minmobilefontsize|textInShouldBeConverted|textOutShouldBeConverted|durationOut|allinend|textoutstart|getTiming|contains|audio|parallaxWrapper|outerWrapper|inFullscreen|resume|check|isBusy|animatingSlides|preload|clearTimeout|videos|now|poster|hoverWrapper|animate|isPopup|curSrc|slideIndex|transformProperties|kbRotation|deg|kbScale|forward|_linkTween|winScrollLeft|popupShouldShowTriggerAnEventByScrolling|youTubeIsReady|pluginsBeingLoaded|methods|replay|fullSizeMode|slideBGSize|cover|skinsPath|globalBGColor|globalBGImage|inLayerStyleFromCSS|textInNodesTo|outLayerStyleToCSS|repeatDelay|yoyo|textinend|textoutend|transitionoutend|textLayer||slideOut|layerFrom|layerTo|layerStyleFrom|layerStyleTo|layerShouldBeConverted|shouldBeConverted|afterIn|location|easeInOut|changingSlides|bgWrapper|clipWrapper|percW|percH|percentWidth|percentHeight|wrapped|firstStart|pausedByVideo|https|videoURL|createPlayer|title|byline|portrait|setHover|always|slidebuttons|marginRight|styleProperties|col|scale2D|enable|curNext|calculateTransformProperties|Linear|easeNone|initialized|meta|forcehide|showOnScroll|closeOnScroll|startSliderImmediately|close|maxHeight|cookie|popupDidClose|Quart|pluginsNotLoaded|pluginsPath|autoStart|750|navStartStop|tnHeight|scrollModifier|autoPlayVideos|autoPauseSlideshow|errorText|timeShift|durationMove|backgroundvideo|inLayerShouldBeConverted|inClipShouldBeConverted|outLayerShouldBeConverted|loopClipShouldBeConverted|allinandloopend|mediaLayer|easeInOutQuint|nodesTo|slidechangeonly|min|9999|inLayerTo|inLayerStyleShouldBeConvertedTo|outLayerTo|outLayerStyleShouldBeConvertedFrom|true|slideInSequence|getAttribute|isSafari|prop|setBackgroundVideo|notactive||pausedByHover|pausedByLastCycle|unselectable|normalized|prevNext||preloadingImages|stopped|errors|http|playingInCurSlide|videoElement|head|clearInterval|stopBackgroundVideo|hoverImage|buttonStart|buttonStop|setStartStop|containerElementWidth|touchmove|touchEndX|touchNext|touchPrev|onCompleteCallback|responsiveLayers|skinWidth|layersWidth|skinHeight|getXY|overflowWrapper|popupShouldStart|mouseMove|setRandomProperties|centerDegree|transformPropertiesCalculated|info|destroy|getSelection|popupPositionHorizontal|popupPositionVertical|clickTriggerElements|positionHorizontal|checkScrollPositions|Back|subscribed|vimeoIsReady|pluginsLoaded|currentScript|||scriptPath||layersContainerWidth||clipSlideTransition|sliderFadeInDuration|twoWaySlideshow|navButtons|hoverBottomNav|tnContainerWidth|backgroundSize|backgroundPosition|durationLeave|fillmode|showUntil|blur|hue|onSlide|staticfrom|staticto|clipFrom|layerStyleShouldBeConvertedFrom|layerStyleShouldBeConvertedTo|nodesFrom|afterLoop|bgFrom|bgTo|inLayerStyleToCSS|outLayerStyleFromCSS|outLayerStyleTo|outClipTo|textOutNodesFrom|loopTo|calculatedTimeShift|getURL|cpCustomTransitions|docHeight|last|scrollTop|bgOuterWrapper|lineHeight|letterSpacing|substring|bgvideo|nocookie|youtu|bgonly|notstatic|desktop|slideBGWrapper|empty|randomized|disabled|curCycle|endedInCurSlide|saved|setProperties|setMediaElements|YT|setInterval|playMedia|hideThumbnail|checkSlideshowState|removeFromTimeline|playBackgroundVideo|seekTo|videoEnded|showThumbnail|ready|clone|bullets|250|prependTo|ontouchstart||pageX|fadeTo|sliderElement||touchend|loadingIndicator|touchStartX|forceDirection|sizes|srcset|srcSet|shouldResize|addEventListener|fitheight|select|back|180|disable|onReverseComplete|addLayers|mouseEnter|_tween|updateTo|defaultProperties|orientationchange|shadowIsChecked|animate2D|animate3D|2e3|slice|splice|global|middle|navigator|userAgent|onmousewheel|popupFitWidth|popupFitHeight|setOptions|createMarkup|setStyles|setTransitions|showOnIdle|showOnTimeout|positionVertical|customTransitionIn|customTransitionOut|button|lastScrollPosition|startIdleTimer|action|slidersList|lsScript|are|the|checkVersions|toString|substr|originalMarkup|uid|lsDataArraySplitChar|fitScreenWidth|slideshowOnly|forceCycles|skins|navPrevNext|tnWidth|tnActiveOpacity|tnInactiveOpacity|parallaxCenterDegree|parallaxSensitivity|parallaxCenterLayers|hideOnMobile|hideOver|slideOnSwipe|useSrcset|transitionDuration|axis|easein|easeout|alwaysOnTop|splitTypeKeys|textoutandloopend|alloutandloopend|relative|wrapperOnSlideChange|loopWrapperOnSlideChange|inLayerStyleTo|inClipTo|outLayerFrom|outLayerFromCSS|outLayerStyleFrom|outClipToCSS|loopFromCSS|loopClipTo|hoverFrom|hoverFromCSS|hoverTo|originalWidth|smartLinks|tnAlt|png|slidesData|hash|linkto|outer|wrapperData|150|styles|randomProperties|words|mix||blend|mode|customZIndex|shuffleArray|indexOfSlideInSequence|cycleSlideIndex|pageChangeWillStart|imagesOfSlide|waitingForYouTube|waitingForVimeo|rel||loadYouTube|isYouTubeReady|loaded|preloadBackgroundVideo|shouldPlay|playVideo|loadVimeo|isVimeoReady|videopreview|playIfAllowed|forceHide|hoverWrapperInner|switchHelper|alt|skinLoad1|skinLoad2|skinLoad3|progressBarElement|elementWidth|calc|started|originalEvent|clientX|currentSrc|setLayers|originalLayer|waitForJSApisLoaded|parentWithNumericWidthValue|parentWithNumericWidthValuePercent|layersHeight|fixedsize|stretch|lsTransitions|timeScaleModifier|willBePaused|isPreloaded|slideTransition|setTransition|sortArray|nextTiles|topleft|bottomright|topright|bottomleft|origin|concat|mouseLeave|setNodesSequence|modifyTimeScale|canhover|hoverIn|hovered|centerLayers|addShadow|gamma|beta|onCompleteParams|usesFileProtocol||files|has|been|ajax|success|pluginData|requiredLSVersion|pluginLoaded|hideWelcomeMessage|getPropertyValue|showHide|content|WordPress|getDimensions|popupDidLoad|scale3d|_properties|setter|resumePopup|popupDidRemove|popupDistanceLeft|popupDistanceRight|popupDistanceTop|popupDistanceBottom|closeOnTimeout|preventCloseOnEsc|disableOverlay|distanceLeft|distanceRight|distanceTop|distanceBottom|expires|toUTCString|path|repeatDays|idleTimer|timeout|CP_GSAP|showNotice|oldjquery|you|Creative|Popup|Please|notification|strong|insertBefore|removeSlider|LS_GSAP|preventSliderClip|layersContainerHeight|slideBGPosition|preferBlendMode|globalBGRepeat|globalBGAttachment|globalBGSize||globalBGPosition|keybNav|touchNav|hoverPrevNext|showBarTimer|showCircleTimer|showSlideBarTimer|youtubePreview|parallaxScrollReverse|optimizeForMobile|hideUnder|allowRestartOnResize|hashChange|CreativePopup|transitionorigami|kenburnspan|pan|kenburnszoom|kenburnsrotation|kenburnsrotate|kenburnsscale|parallaxtype|parallaxevent|parallaxaxis|parallaxtransformorigin|parallaxdurationmove|parallaxdurationleave|parallaxrotate|parallaxrotation|parallaxdistance|parallaxtransformperspective|timelineHierarchy|transitioninandloopend|textinandloopend|alloutend|brightness|contrast|grayscale|invert|saturate|sepia|imageLayer|05|linear|wrapperOnTimelineEnd|inLayerFrom|inLayerStyleFrom|inClipFrom|inClipFromCSS|inClipToCSS|loopFrom|loopClipToCSS|originalHeight|getALT|slideIndexes|nextSlideIndex|parentNode|linkTo|documentElement|linkedToSlide|parallaxWrapperData|addLayer|640|preloadedWidth|preloadedHeight|line|startat|shift|isOld|lines|slideout|nocontrols|backgroundImage|charAt|instanceof|wrapping|bgVideosWrapper|translateZ|forceLoopNum|sequences|amp|smart|wmode|opaque|videoThumbnailURL|embed|iframe_api|setVolume|json|addEvent|currentTime|volumeIsSet|createStartStop|createSides|above|absolute|sides|cache|createStyleSheet|stylesheet|btmMod|resizeShadow|insertAfter|timer|hider|half|touchX|touchstart|loading|keyboard|touch|which|lazy|canShow|thumbnailsAreLoaded|Image|preloadedImagesCount|waitForWrap||||popupWillResize|resetSlideTimelines|popupDidResize|getSliderClosestParentElementWidthNumericValueOfProperty|fitwidth|heroTop|fixed||contain|Width|Height|rect||forced|overflowx|overflowy|_gsTransform|slideTransitionType|transitionType|pageChangeDidStart|changeBackgroundVideo|call|pageChangeWillComplete|prepare|applyBG|pageChangeDidComplete|supports3D|custom3d|custom2d|countProp|horizontal|large|depth|0px|front|mirror|curtile|nexttile|autoRemoveChildren|resetStates|pageTimelineDidStart|pageTimelineDidReverseComplete|shouldReplay|pageTimelineDidUpdate|pageTimelineDidCreate|reversed|pageTimelineDidComplete|resetNodes|staggerFromTo|positionToViewport|createTimeline|reverseTimeScale|hoverOut|supportOrientation|deviceTurn|removeShadow|pageY|4e3|fadeInDuration|reverseDuration|namespace|file|Plugin|checkLoaded|dataType|complete|popupWillLoad|oldProperties|getComputedStyle|parents|popupVersion|setBasicEvents|shouldBeDestroyed|easeinout||scaleZ|pageshowStateDidChange|pageshowDidPause|pageshowDidResume|clearTimers|clearTimelines|clearEvents|iPhone|iPod|iPad|DOMMouseScroll|onwheel|ontouchmove|onkeydown|preventDefaultForScrollKeys|removeEventListener|keyCode|removeAllRanges|selection|screen|scrollLeft|closePopup|resetSlide|popupDidDestroy|sholudBeRemoved|layersIn|layersOut|preserve|popupWidth|popupHeight|popupAjaxLoadColor|showOnClick|showOnLeave|closeOnSliderEnd|avoidMultiple|showOnce|showCloseButton|closeButtonStyle|overlayClickToClose|resetOnClose|overlayBackground|overlayDurationIn|overlayDurationOut|overlayEaseIn|overlayEaseOut|overlayTransitionIn|overlayTransitionOut|slidefromtop|slidefrombottom|slidefromleft|slidefromright|slidetotop|slidetobottom|slidetoleft|slidetoright|customStyle|delayIn|transitionIn|transitionOut|126144e6|spin|spinx|spiny|elastic|switchScrollDirection|mousePositionTop|startTimeout|cpAvoidMultiple|one|popupWillOpen|keyup|cpCloseOnEsc|submit|submitNewsletter|cpContactToken|TweenLite|redirect|preventStop|setCustomValidity|GSAP|unpacked|Old|issue|It|looks|like|using|old|library|requires|least|newer|your|logo|Number|prototype|use|strict|jquery|CP|defaultInitOptions|sliderInitOptions|_LS|noskin|core|maxresdefault|jpg|staticImage|UID|slidedelay|timeshift|transitionduration||backgroundsize||bgsize|backgroundposition|bgposition|backgroundcolor|bgcolor|filterfrom|filterto|keyframe|mirrortransitions|fadein|opacityin|rotatein||rotatexin|rotateyin|rotationin|rotationxin|rotationyin|scalein|scalexin|scaleyin|skewxin|skewyin|bgcolorin|colorin|radiusin|widthin|heightin|filterin|rotatex|rotatey|rotationx|rotationy|scalex|scaley|skewx|skewy|transformoriginin|offsetxin|offsetyin|clipin|delayin|startatin|instartat|durationin|easingin|transitionin|textfadein|textopacityin|textrotatein|textrotatexin|textrotateyin|textrotationin|textrotationxin|textrotationyin|textscalein|textscalexin|textscaleyin|textskewxin|textskewyin|texteasein|texteasingin|texttransformoriginin|textoffsetxin|textoffsetyin|texttypein|textshiftin|textdelayin|textstartatin|textinstartat||textdurationin|texttransitionin|fadeout|opacityout|rotateout|rotatexout|rotateyout|rotationout|rotationxout|rotationyout|scaleout|scalexout|scaleyout|skewxout|skewyout|bgcolorout|colorout|radiusout|widthout|heightout|filterout|transformoriginout|offsetxout|offsetyout|clipout|showuntil|startatout|outstartat|durationout|easingout|transitionout|textfadeout|textopacityout|textrotateout|textrotatexout|textrotateyout|textrotationout|textrotationxout|textrotationyout|textscaleout|textscalexout|textscaleyout|textskewxout|textskewyout|texteaseout|texteasingout|texttransformoriginout|textoffsetxout|textoffsetyout|texttypeout|textshiftout|textdelayout|textstartatout|textoutstartat|textdurationout|texttransitionout|loopopacity||looprotate|looprotatex|looprotatey||looprotation|looprotationx|looprotationy|loopscale|loopscalex|loopscaley|loopskewx|loopskewy|looptransformorigin|loopoffsetx|loopoffsety|loopfilter|loopclip|loopdelay|loopstartat|loopduration|loopcount|looprepeatdelay|loopyoyo|loopease|loopeasing|hoveropacity|hoverrotate|hoverrotatex|hoverrotatey|hoverrotation|hoverrotationx|hoverrotationy|hoverscale|hoverscalex|hoverscaley|hoverskewx|hoverskewy|hoverbgcolor|hovercolor|hoverease|hovereasing|hovereasein|hovereasingin|hovereaseout|hovereasingout|hoverduration|hoverdurationin|hoverdurationout|hoveralwaysontop|hoveroffsetx|hoveroffsety|hoverfilter||hoverborderradius|hoverradius|hovertransformorigin|parallaxlevel|transformperspective|transformperspectivein|transformperspectiveout||texttransformperspective|texttransformperspectivein|texttransformperspectiveout||looptransformperspective|hovertransformperspective|chars_asc|chars_desc|chars_rand|chars_center|chars_edge|words_asc|words_desc|words_rand|words_center|words_edge|lines_asc|lines_desc|lines_rand|lines_center|lines_edge|slideIn|textInNodesToCSS|nothumb|continue|setAttribute|removeAttribute|scrollHeight|pagetop|pagebottom|slidertop|sliderbottom|clicked|pointer|clipWrapperData|loopWrapperData|getBoundingClientRect|webkitFilter|styleWidth|styleHeight|borderTopLeftRadius|borderTopRightRadius|borderBottomRightRadius|borderBottomLeftRadius|font|size|letter|spacing|dataLS|converted|chars|slidein|forever|removeProp|SplitType|101|3e3|nextLoop|merge|normalizedSequence|forceStop|dequeue|restart|enablejsapi|vi|mute||www|onYouTubeIframeAPIReady|Player|onReady||onStateChange|pauseVideo|vimeocdn|froogaloop2|javascript|Froogaloop|player_id|v2|callback|getJSON|thumbnail_large|finish|ended|playvideo|remainingSlideDuration|sideleft|sideright|touchscroll|below|600|assets|theme|_all|progressbar|mousedown|mouseup|indicator|400|keydown|isAnimating|isPreloading|map|apply|gif|base64|R0lGODlhAQABAIAAAAAAAP|yH5BAEAAAAALAAAAAABAAEAAAIBRAA7|viewport|hero|offsetX|offsetY|1025|767|768|inherit|item|directionAtSlideTransitionStart|disbaled|0deg|01|_no|found_|leaveOverflow|obj|custom|carousel|crossfad|curtiles|nexttiles|vertical|mixed|translate3d|getTweensOf|seek|pageTimeline|layersOnPageTimeline|pageTimelineDuration|Quad|Sine|looplayers|addCallback|scrollForward|under|scrollBackwards|over|_reversed|onReverseCompleteParams|999999px|deviceorientation|orientation|desc|rand|sort|edge|char|word|Cannot|include|manually|missing|added|but|source|found|page|Additional|Required|have|outerHTML|log|Find|updates|and|docs|webshopworks|clientWidth|clientHeight|fix|fitvidsignore|backgrounds|backgroundRepeat|backgroundAttachment|wpVersion|cppsVersion|Left|Top|popupleft|popupright|popupcenter|popupmiddle|popuptop|popupbottom|swing|toUpperCase|easeInOutQuart|false|NaN|firstLayer|loops|layersContainer|sublayerContainer|randomSlideshow|killTweensOf|Android|BlackBerry|BB10|webOS|Windows|Phone|mobi|opera|mini|nexus|DeviceOrientationEvent|preventdefault|returnValue|removeSelection|docWidth|pageYOffset|pageXOffset|_data|previousSlide|startSlideshow|openPopup|updateLayerData|redrawSlider|redraw|replaySlide|reverseSlide|stopSlideshow|pauseSlider|resumeSlider|001|toggleSlider|toggle|resetSlider|resetCurrentSlide|removeData|userData||slideChangeTimeline|Safari|Opera|Chrome|Edge|perspective|OPerspective|msPerspective|MozPerspective|WebkitPerspective|transformStyle|OTransformStyle|msTransformStyle|MozTransformStyle||WebkitTransformStyle|test3d|offsetHeight|rident|PU|popupShowOnClick|popupShowOnScroll|popupShowOnLeave|popupShowOnIdle|popupShowOnTimeout|popupCloseOnScroll|popupCloseOnTimeout|popupCloseOnSliderEnd|popupPreventCloseOnEsc|popupAvoidMultiple|popupContainer|popupShowOnce|popupDisableOverlay|popupShowCloseButton|popupCloseButtonStyle|popupOverlayClickToClose|popupStartSliderImmediately|popupResetOnClose|popupCustomStyle|popupDurationIn|popupDurationOut|popupDelayIn|popupEaseIn|popupEaseOut|popupTransitionIn|popupTransitionOut|popupCustomTransitionIn|popupCustomTransitionOut|popupOverlayBackground|popupOverlayDurationIn|popupOverlayDurationOut|popupOverlayEaseIn|popupOverlayEaseOut|popupOverlayTransitionIn|popupOverlayTransitionOut|rgba|fadefromtopleft|fadefromtopright|fadefrombottomleft|fadefrombottomright|fadetotopleft|fadetotopright|fadetobottomleft|fadetobottomright|fitWidth|fitHeight|displayed|||864e5|popupDidOpen|rotatefromtop|rotatefrombottom|rotatefromleft|rotatefromright|scalefromtop|scalefrombottom|scalefromleft|scalefromright|Elastic|rotatetotop|rotatetobottom|rotatetoleft|rotatetoright|scaletotop|scaletobottom|scaletoleft|scaletoright|idleTime|keypress|mousewheel|popupclose|closepopup|popups|popupWillClose|nextSibling|1script|serialize|value|baction|SubmitLogin|controller|auth|submitMessage|token|ajaxload|easeOutExpo|post|join|Unknown|form|focus|input|cpjq'.split('|'),0,{}));/*! Creative Popup - https://creativepopup.webshopworks.com
 * @author    WebshopWorks
 * @copyright 2018-2020 WebshopWorks
 * @license   One Domain Licence
 * Not allowed to resell or redistribute this software */
;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2b 22={2a:[{i:\'Z M G\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'t\'}},{i:\'Z M t\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'G\'}},{i:\'Z M L\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'K\'}},{i:\'Z M K\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'1f\',a:F,h:\'L\'}},{i:\'29\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'13\',b:\'1f\',a:F,h:\'t\'}},{i:\'Y P n\',d:[2,4],g:[4,7],f:{e:1j,j:\'n\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P D\',d:[2,4],g:[4,7],f:{e:1j,j:\'D\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P 1i-n\',d:[2,4],g:[4,7],f:{e:1j,j:\'1i-n\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P 1i-D\',d:[2,4],g:[4,7],f:{e:1j,j:\'1i-D\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'Y P (k)\',d:[2,4],g:[4,7],f:{e:1j,j:\'k\'},c:{o:\'13\',b:\'y\',a:F,h:\'t\'}},{i:\'1x 1z M G\',d:1,g:1u,f:{e:25,j:\'D\'},c:{o:\'13\',b:\'28\',a:U,h:\'t\'}},{i:\'1x 1z M t\',d:1,g:1u,f:{e:25,j:\'n\'},c:{o:\'13\',b:\'u\',a:U,h:\'t\'}},{i:\'1x 1z M L\',d:1u,g:1,f:{e:25,j:\'1i-D\'},c:{o:\'13\',b:\'u\',a:U,h:\'t\'}},{i:\'1x 1z M K\',d:1u,g:1,f:{e:25,j:\'1i-n\'},c:{o:\'13\',b:\'u\',a:U,h:\'t\'}},{i:\'1x X M G\',d:1,g:25,f:{e:1j,j:\'D\'},c:{o:\'V\',b:\'u\',a:1e,h:\'t\'}},{i:\'1x X M t\',d:1,g:25,f:{e:1j,j:\'n\'},c:{o:\'V\',b:\'u\',a:1e,h:\'G\'}},{i:\'1x 27 M L\',d:25,g:1,f:{e:1j,j:\'1i-D\'},c:{o:\'V\',b:\'u\',a:1e,h:\'K\'}},{i:\'1x X M K\',d:25,g:1,f:{e:1j,j:\'1i-n\'},c:{o:\'V\',b:\'u\',a:1e,h:\'L\'}},{i:\'Z P m G (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'G\'}},{i:\'Z P m t (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'t\'}},{i:\'Z P m L (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'L\'}},{i:\'Z P m K (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'K\'}},{i:\'Z k P m k 1R\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'V\',b:\'y\',a:1l,h:\'k\'}},{i:\'Z d m G (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z d m G (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z d m G (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z d m t (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z d m t (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z d m t (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z d M K m L (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z d M K m L (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z d M L m K (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z d M L m K (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O m L (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z O m L (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z O m L (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'L\'}},{i:\'Z O m K (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O m K (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O m K (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'K\'}},{i:\'Z O M t m G (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z O M t m G (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'G\'}},{i:\'Z O M G m t (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Z O M G m t (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'V\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X P m G (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'G\'}},{i:\'Y s X P m t (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'t\'}},{i:\'Y s X P m L (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'L\'}},{i:\'Y s X P m K (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'K\'}},{i:\'Y s X k P m k 1R\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'k\'}},{i:\'Y s X P M K-t (n)\',d:[2,4],g:[4,7],f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'26\'}},{i:\'Y s X P M L-G (D)\',d:[2,4],g:[4,7],f:{e:1c,j:\'D\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'1Y\'}},{i:\'Y s X P M K-G (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'1W\'}},{i:\'Y s X P M L-t (k)\',d:[2,4],g:[4,7],f:{e:1c,j:\'k\'},c:{o:\'Q\',b:\'y\',a:1l,h:\'23\'}},{i:\'Y s X d m G (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X d m G (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X d m G (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X d m t (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X d m t (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X d m t (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X d M K m L (n)\',d:[7,11],g:1,f:{e:1a,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X d M K m L (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X d M L m K (D)\',d:[7,11],g:1,f:{e:1a,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X d M L m K (k)\',d:[7,11],g:1,f:{e:1a,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O m L (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X O m L (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X O m L (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'L\'}},{i:\'Y s X O m K (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O m K (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O m K (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'K\'}},{i:\'Y s X O M t m G (n)\',d:1,g:[12,16],f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X O M t m G (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'G\'}},{i:\'Y s X O M G m t (D)\',d:1,g:[12,16],f:{e:q,j:\'D\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'Y s X O M G m t (k)\',d:1,g:[12,16],f:{e:q,j:\'k\'},c:{o:\'Q\',b:\'u\',a:p,h:\'t\'}},{i:\'1v\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1v d\',d:4,g:1,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1v g\',d:1,g:4,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1v P z\',d:3,g:4,f:{e:1u,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5,x:v}},{i:\'1v P C\',d:3,g:4,f:{e:1u,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'K\',1g:0.5,w:-v}},{i:\'1v-1H P z\',d:3,g:4,f:{e:15,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5,x:v}},{i:\'1v-1H P C\',d:3,g:4,f:{e:15,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'K\',1g:0.5,w:-v}},{i:\'1v 1H d\',d:4,g:1,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'G\',1g:0.5}},{i:\'1v 1H g\',d:1,g:4,f:{e:1c,j:\'n\'},c:{o:\'Q\',b:\'1f\',a:U,h:\'t\',1g:0.5}},{i:\'1d f M t\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'G\',x:v}},{i:\'1d f M G\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1d f M K\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'L\',w:-v}},{i:\'1d f M L\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'V\',b:\'y\',a:U,h:\'K\',w:v}},{i:\'1d P M t\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:v}},{i:\'1d P M G\',d:[3,4],g:[3,4],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1d P M K\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:-v}},{i:\'1d P M L\',d:[3,4],g:[3,4],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:v}},{i:\'1d d M K\',d:[6,12],g:1,f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:v}},{i:\'1d d M L\',d:[6,12],g:1,f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:-v}},{i:\'1d g M t\',d:1,g:[6,12],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1d g M G\',d:1,g:[6,12],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:v}},{i:\'1w d M t\',d:[3,10],g:1,f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:v}},{i:\'1w d M G\',d:[3,10],g:1,f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',x:-v}},{i:\'1w g M K\',d:1,g:[3,10],f:{e:19,j:\'n\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:-v}},{i:\'1w g M L\',d:1,g:[3,10],f:{e:19,j:\'D\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',w:v}},{i:\'1w s 1q f M t\',d:1,g:1,f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'G\',1g:0.1,1s:-v,x:v}},{i:\'1w s 1q f M G\',d:1,g:1,f:{e:q,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\',1g:0.1,1s:v,x:-v}},{i:\'1w s 1q P M t\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'G\',1s:-1r}},{i:\'1w s 1q P M G\',d:[3,4],g:[3,4],f:{e:19,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\',1s:-1r}},{i:\'1w s 1q P M k\',d:[3,4],g:[3,4],f:{e:19,j:\'k\'},c:{o:\'Q\',b:\'y\',a:U,h:\'k\',1s:-1r}},{i:\'E f 1Q\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'13\',b:\'y\',a:18,h:\'t\',1g:0.8}},{i:\'E f M 1L\',d:1,g:1,f:{e:0,j:\'n\'},c:{o:\'13\',b:\'u\',a:18,h:\'t\',1g:1.2}},{i:\'E P k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:0.1}},{i:\'E P M 1L k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:2}},{i:\'E 1Q s 1q P k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:0.1,1s:v}},{i:\'E s 1q P M 1L k\',d:[3,4],g:[3,4],f:{e:1u,j:\'k\'},c:{o:\'13\',b:\'y\',a:U,h:\'t\',1g:2,1s:-v}},{i:\'1F-X P 21\',d:3,g:4,f:{e:15,j:\'n\'},c:{o:\'V\',b:\'u\',a:24,h:\'1W\'}},{i:\'1F-X d z\',d:6,g:1,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\'}},{i:\'1F-X d C\',d:6,g:1,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'K\'}},{i:\'1F-X g z\',d:1,g:8,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'t\'}},{i:\'1F-X g C\',d:1,g:8,f:{e:0,j:\'n\'},c:{o:\'Q\',b:\'y\',a:U,h:\'K\'}}],1Z:[{i:\'1b f m G (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:1J},b:\'1A\',a:F,h:\'z\'},A:{c:{x:l},b:\'y\',a:F,h:\'z\'}},{i:\'1b f m t (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:-1J},b:\'1A\',a:F,h:\'z\'},A:{c:{x:-l},b:\'y\',a:F,h:\'z\'}},{i:\'1b f m L (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:-1J},b:\'1A\',a:1y,h:\'C\'},A:{c:{w:-l},b:\'y\',a:1y,h:\'C\'}},{i:\'1b f m K (l°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:1J},b:\'1A\',a:1y,h:\'C\'},A:{c:{w:l},b:\'y\',a:1y,h:\'C\'}},{i:\'1b P m G (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\'},r:{c:{x:l},b:\'u\',a:F,h:\'z\'}},{i:\'1b P m t (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\'},r:{c:{x:-l},b:\'u\',a:F,h:\'z\'}},{i:\'1b P m L (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\'},r:{c:{w:-l},b:\'u\',a:F,h:\'C\'}},{i:\'1b P m K (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\'},r:{c:{w:l},b:\'u\',a:F,h:\'C\'}},{i:\'1G S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},r:{c:{x:l},b:\'u\',a:1K,h:\'z\'}},{i:\'1E S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},r:{c:{w:l},b:\'u\',a:1K,h:\'C\'}},{i:\'E s S P m G (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S P m t (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{x:-l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S P m L (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s S P m K (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\'},I:{c:{B:0.1D},a:1n,b:\'14\'},r:{c:{w:l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s z S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.1D,w:1j},a:1n,b:\'14\'},r:{c:{x:l,w:-1j},b:\'H\',a:1K,h:\'z\'},A:{c:{w:0},a:1e,b:\'H\'}},{i:\'E s C S P k (l°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.1D,x:-15},a:1n,b:\'14\'},r:{c:{w:l,x:15},b:\'H\',a:1K,h:\'C\'},A:{c:{x:0},a:1e,b:\'H\'}},{i:\'1b d m G (l°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1b d m t (l°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:-l},b:\'u\',a:18,h:\'z\'}},{i:\'1b d m L (l°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{w:-l},b:\'u\',a:F,h:\'C\'}},{i:\'1b d m K (l°)\',d:[5,9],g:1,f:{e:q,j:\'D\'},r:{c:{w:l},b:\'u\',a:F,h:\'C\'}},{i:\'1G S d k (l°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1E S d k (l°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},r:{c:{w:-l},b:\'u\',a:18,h:\'C\'}},{i:\'1E S d k (1C°)\',d:[3,7],g:1,f:{e:1N,j:\'k\'},r:{c:{w:-1C},b:\'u\',a:1O,h:\'C\'}},{i:\'E s S d m G (l°)\',d:[5,9],g:1,f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:1m,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S d m t (l°)\',d:[5,9],g:1,f:{e:19,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'H\',a:1m,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S d m L (l°)\',d:[5,9],g:1,f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'u\',a:p,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S d m K (l°)\',d:[5,9],g:1,f:{e:19,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'u\',a:p,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z S d k (l°)\',d:[5,9],g:1,f:{e:19,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:1m,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C S d k (l°)\',d:[5,9],g:1,f:{e:19,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:p,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'1b O m G (l°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1b O m t (l°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{x:-l},b:\'u\',a:18,h:\'z\'}},{i:\'1b O m L (l°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{w:-l},b:\'u\',a:F,h:\'C\'}},{i:\'1b O m K (l°)\',d:1,g:[5,9],f:{e:q,j:\'D\'},r:{c:{w:l},b:\'u\',a:F,h:\'C\'}},{i:\'1G S O k (l°)\',d:1,g:[5,9],f:{e:q,j:\'k\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1E S O k (l°)\',d:1,g:[5,9],f:{e:q,j:\'k\'},r:{c:{w:-l},b:\'u\',a:18,h:\'C\'}},{i:\'1G S O k (1C°)\',d:1,g:[4,9],f:{e:1N,j:\'k\'},r:{c:{x:1C},b:\'u\',a:1O,h:\'z\'}},{i:\'E s S O m G (l°)\',d:1,g:[7,11],f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'u\',a:p,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S O m t (l°)\',d:1,g:[7,11],f:{e:19,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'u\',a:p,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S O m L (l°)\',d:1,g:[7,11],f:{e:19,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:1m,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s S O m K (l°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'H\',a:1m,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z S O k (l°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:p,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C S O k (l°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:1m,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'1T 1U 1V s S m G (l°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},I:{c:{B:0.N,w:-1j},a:p,b:\'y\'},r:{c:{w:-1j,x:l},b:\'u\',a:F,h:\'z\'},A:{c:{w:0,e:W},b:\'y\',a:p}},{i:\'1T 1U 1V s S m t (l°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N,w:-1j},a:p,b:\'y\'},r:{c:{w:1j,x:-l},b:\'u\',a:F,h:\'z\'},A:{c:{w:0,e:W},b:\'y\',a:p}},{i:\'1d 1t m G (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:v},b:\'u\',a:18,h:\'z\'}},{i:\'1d 1t m t (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{x:-v},b:\'u\',a:18,h:\'z\'}},{i:\'1d 1t m L (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:-v},b:\'u\',a:18,h:\'C\'}},{i:\'1d 1t m K (v°)\',d:1,g:1,f:{e:q,j:\'n\'},r:{c:{w:v},b:\'u\',a:18,h:\'C\'}},{i:\'E s 17 1t m G (v°)\',d:1,g:1,f:{e:q,j:\'k\'},r:{c:{B:0.8,1s:7,w:10,x:1r},b:\'1f\',a:1y,h:\'z\'},A:{c:{1s:0,w:0,x:v},a:1y,b:\'1f\'}},{i:\'E s 17 1t m t (v°)\',d:1,g:1,f:{e:q,j:\'k\'},r:{c:{B:0.8,1s:-7,w:10,x:-1r},b:\'1f\',a:1y,h:\'z\'},A:{c:{1s:0,w:0,x:-v},a:1y,b:\'1f\'}},{i:\'E s 17 1k m G (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s 17 1k m t (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:-v},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s 17 1k m L (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s 17 1k m K (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:v},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s z 17 1k k (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.q,w:-15},a:1p,b:\'14\'},r:{c:{x:q,w:15},b:\'H\',a:1p,h:\'z\'},A:{c:{x:v,w:0},a:1p,b:\'H\'}},{i:\'E s C 17 1k k (v°)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\'},I:{c:{B:0.q,x:15},a:1p,b:\'14\'},r:{c:{w:q,x:-15},b:\'H\',a:1p,h:\'C\'},A:{c:{w:v,x:0},a:1p,b:\'H\'}},{i:\'1d d m G (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:v},b:\'u\',a:18,h:\'z\'}},{i:\'1d d m t (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},r:{c:{x:-v},b:\'u\',a:18,h:\'z\'}},{i:\'1G 17 d k (v°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},r:{c:{x:v},b:\'u\',a:18,h:\'z\'}},{i:\'E s 17 d m G (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:20},b:\'H\',a:F,h:\'z\'},A:{c:{e:W,x:v},b:\'J\',a:p}},{i:\'E s 17 d m t (v°)\',d:[5,9],g:1,f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 d m L (v°)\',d:[5,9],g:1,f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 d m K (v°)\',d:[5,9],g:1,f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z 17 d k (v°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C 17 d k (v°)\',d:[5,9],g:1,f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z 17 1I d m G (v°)\',d:[7,11],g:1,f:{e:q,j:\'n\'},r:{c:{B:0.N,x:1r},b:\'14\',a:F,h:\'z\'},A:{c:{x:v},b:\'14\',a:F}},{i:\'E s z 17 1I d m t (v°)\',d:[7,11],g:1,f:{e:q,j:\'D\'},r:{c:{B:0.N,x:-1r},b:\'14\',a:F,h:\'z\'},A:{c:{x:-v},b:\'14\',a:F}},{i:\'1d O m L (v°)\',d:1,g:[5,9],f:{e:q,j:\'n\'},r:{c:{w:-v},b:\'u\',a:F,h:\'C\'}},{i:\'1d O m K (v°)\',d:1,g:[5,9],f:{e:q,j:\'D\'},r:{c:{w:v},b:\'u\',a:F,h:\'C\'}},{i:\'1E 17 O k (v°)\',d:1,g:[5,9],f:{e:q,j:\'k\'},r:{c:{w:-v},b:\'u\',a:F,h:\'C\'}},{i:\'E s 17 O m L (v°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 O m K (v°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 O m G (v°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s 17 O m t (v°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s z 17 O k (v°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:v},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C 17 O k (v°)\',d:1,g:[7,11],f:{e:q,j:\'k\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-v},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'J\',a:p}},{i:\'E s C 17 1I O m G (v°)\',d:1,g:[7,11],f:{e:q,j:\'n\'},r:{c:{B:0.N,w:1r},b:\'14\',a:F,h:\'C\'},A:{c:{w:v},b:\'14\',a:F}},{i:\'E s C 17 1I O m t (v°)\',d:1,g:[7,11],f:{e:q,j:\'D\'},r:{c:{B:0.N,w:-1r},b:\'14\',a:F,h:\'C\'},A:{c:{w:-v},b:\'14\',a:F}},{i:\'1b 1t m G (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{x:l},b:\'u\',a:18,h:\'z\'}},{i:\'1b 1t m t (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{x:-l},b:\'u\',a:18,h:\'z\'}},{i:\'1b 1t m L (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{w:-l},b:\'u\',a:18,h:\'C\'}},{i:\'1b 1t m K (l°, R T)\',d:1,g:1,f:{e:q,j:\'n\',T:\'R\'},r:{c:{w:l},b:\'u\',a:18,h:\'C\'}},{i:\'E s S 1k m G (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S 1k m t (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{x:-l},b:\'H\',a:F,h:\'z\'},A:{a:1e,b:\'H\'}},{i:\'E s S 1k m L (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-n\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s S 1k m K (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'1i-D\',T:\'R\'},I:{c:{B:0.N},a:1n,b:\'14\'},r:{c:{w:l},b:\'H\',a:F,h:\'C\'},A:{a:1e,b:\'H\'}},{i:\'E s z S 1k k (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\',T:\'R\'},I:{c:{B:0.1h},a:1p,b:\'14\'},r:{c:{x:l},b:\'H\',a:1p,h:\'z\'},A:{a:1p,b:\'H\'}},{i:\'E s C S 1k k (l°, R T)\',d:[2,4],g:[4,7],f:{e:q,j:\'k\',T:\'R\'},I:{c:{B:0.1h},a:1p,b:\'14\'},r:{c:{w:l},b:\'H\',a:1p,h:\'C\'},A:{a:1p,b:\'H\'}},{i:\'E s S d m G (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'u\',a:1m,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S d m t (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'u\',a:1m,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S d m L (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S d m K (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s z S d k (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'u\',a:1m,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s C S d k (l°, R T)\',d:[5,9],g:1,f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'H\',a:F,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m L (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'u\',a:1m,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m K (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:l},b:\'u\',a:1m,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m G (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'n\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s S O m t (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'D\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:-l},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s z S O k (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{x:l},b:\'H\',a:F,h:\'z\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'E s C S O k (l°, R T)\',d:1,g:[7,11],f:{e:1h,j:\'k\',T:\'R\'},I:{c:{B:0.N},a:p,b:\'J\'},r:{c:{w:-l},b:\'u\',a:1m,h:\'C\'},A:{c:{e:W},b:\'y\',a:1o}},{i:\'1S 1q s 1z 1M\',d:1,g:1,f:{e:1,j:\'n\',T:\'R\'},I:{c:{B:0.1h,x:-1P,1B:0},a:18,b:\'1A\'},r:{c:{B:1,x:-1C,1B:1},b:\'y\',a:18,h:\'z\'}},{i:\'1X 1q s 1z 1M\',d:1,g:1,f:{e:1,j:\'n\',T:\'R\'},I:{c:{B:0.1h,w:-1P,1B:0},a:18,b:\'1A\'},r:{c:{B:1,w:-1C,1B:1},b:\'y\',a:18,h:\'C\'}},{i:\'1S 1q s 1z 1k\',d:[2,3],g:[3,5],f:{e:1c,j:\'k\'},I:{c:{B:0.q,1B:0},a:1e,b:\'1A\'},r:{c:{x:-1r,w:l},b:\'u\',a:1,h:\'C\'},A:{c:{x:0,1B:1},b:\'y\',a:1m}},{i:\'1X 1q s 1z 1k\',d:[2,3],g:[3,5],f:{e:1c,j:\'k\'},I:{c:{B:0.q,1B:0},a:1e,b:\'1A\'},r:{c:{w:-1r,x:l},b:\'u\',a:1,h:\'z\'},A:{c:{w:0,1B:1},b:\'y\',a:1m}}]};',62,136,'||||||||||duration|easing|transition|rows|delay|tile|cols|direction|name|sequence|random|180|to|forward|type|600|75|animation|and|left|easeInOutQuart|90|rotateX|rotateY|easeOutQuart|horizontal|after|scale3d|vertical|reverse|Scaling|1000|right|easeInOutBack|before|easeOutBack|top|bottom|from|85|columns|tiles|mixed|large|spinning|depth|750|slide|200|sliding|Fading|Sliding||||fade|easeInOutQuint|||turning|1500|55|100|Spinning|50|Turning|350|easeInOutQuad|scale|65|col|30|cuboids|500|1200|450|400|700|rotating|45|rotate|cuboid|35|Carousel|Flying|Smooth|800|fading|easeInQuart|opacity|540|95|Vertical|Mirror|Horizontal|mirror|drunk|91|1300|out|cube|150|2000|270|in|directions|Horizontally|Drunk|colums|scaling|topright|Vertically|bottomright|t3d|87|diagonal|lsTransitions|bottomleft|850||topleft|sliging|linear|Crossfading|t2d|var'.split('|'),0,{}));/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
$(document).ready(function(){prestashop.on('updateProduct',function(params){if(params.eventType==='updatedProductCombination'){var productId=$('input[name="id_product"]').val();var $productAttributes=$(params.event.handleObj.selector);var attributes=[];$productAttributes.each(function(key,attribute){if($(attribute).is("input")&&!$(attribute).is(':checked')){return}
attributes.push($(attribute).val())})
ajaxProductCombinationChange(productId,attributes)}});function ajaxProductCombinationChange(productId,attributes){$.ajax({type:'POST',url:prestashopFacebookAjaxController,data:{action:'CustomizeProduct',ajax:!0,id_product:productId,attribute_ids:attributes,}})}});(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t():typeof define==="function"&&define.amd?define(t):(e=typeof globalThis!=="undefined"?globalThis:e||self,e.mapboxgl=t())})(this,(function(){"use strict";var e,t,i;function r(r,n){if(!e){e=n}else if(!t){t=n}else{var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;";var s={};e(s);i=n(s);if(typeof window!=="undefined"&&window&&window.URL&&window.URL.createObjectURL){i.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"}))}}}r(["exports"],(function(e){"use strict";var t="undefined"!=typeof self?self:{},i=r;function r(e,t,i,r){this.cx=3*e,this.bx=3*(i-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=i,this.p2y=r}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){var i,r,n,o,s;for(void 0===t&&(t=1e-6),n=e,s=0;s<8;s++){if(o=this.sampleCurveX(n)-e,Math.abs(o)<t)return n;var a=this.sampleCurveDerivativeX(n);if(Math.abs(a)<1e-6)break;n-=o/a}if((n=e)<(i=0))return i;if(n>(r=1))return r;for(;i<r;){if(o=this.sampleCurveX(n),Math.abs(o-e)<t)return n;e>o?i=n:r=n,n=.5*(r-i)+i}return n},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var n=o;function o(e,t){this.x=e,this.y=t}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,i=e.y-this.y;return t*t+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),i=Math.sin(e),r=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=r,this},_rotateAround:function(e,t){var i=Math.cos(e),r=Math.sin(e),n=t.y+r*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-r*(this.y-t.y),this.y=n,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};const s=Math.PI/180,a=180/Math.PI;function l(e){return e*s}function c(e){return e*a}const h=[[0,0],[1,0],[1,1],[0,1]];function u(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,i=t*e;return 4*(e<.5?i:3*(e-t)+i-.75)}function p(e,t,r,n){const o=new i(e,t,r,n);return function(e){return o.solve(e)}}const d=p(.25,.1,.25,1);function f(e,t,i){return Math.min(i,Math.max(t,e))}function m(e,t,i){return(i=f((i-e)/(t-e),0,1))*i*(3-2*i)}function _(e,t,i){const r=i-t,n=((e-t)%r+r)%r+t;return n===t?i:n}function g(e,t,i){if(!e.length)return i(null,[]);let r=e.length;const n=new Array(e.length);let o=null;e.forEach(((e,s)=>{t(e,((e,t)=>{e&&(o=e),n[s]=t,0==--r&&i(o,n)}))}))}function y(e){const t=[];for(const i in e)t.push(e[i]);return t}function x(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}let v=1;function b(){return v++}function w(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function T(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function E(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function S(e,t){e.forEach((e=>{t[e]&&(t[e]=t[e].bind(t))}))}function M(e,t){return-1!==e.indexOf(t,e.length-t.length)}function I(e,t,i){const r={};for(const n in e)r[n]=t.call(i||this,e[n],n,e);return r}function A(e,t,i){const r={};for(const n in e)t.call(i||this,e[n],n,e)&&(r[n]=e[n]);return r}function C(e){return Array.isArray(e)?e.map(C):"object"==typeof e&&e?I(e,C):e}const z={};function P(e){z[e]||("undefined"!=typeof console&&console.warn(e),z[e]=!0)}function k(e,t,i){return(i.y-e.y)*(t.x-e.x)>(t.y-e.y)*(i.x-e.x)}function D(e){let t=0;for(let i,r,n=0,o=e.length,s=o-1;n<o;s=n++)i=e[n],r=e[s],t+=(r.x-i.x)*(i.y+r.y);return t}function L(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function B(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((e,i,r,n)=>{const o=r||n;return t[i]=!o||o.toLowerCase(),""})),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let R=null;function F(e){if(null==R){const t=e.navigator?e.navigator.userAgent:null;R=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return R}function O(e){try{const i=t[e];return i.setItem("_mapbox_test_",1),i.removeItem("_mapbox_test_"),!0}catch(e){return!1}}function U(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}const V=t.performance;function j(e){const t=e?e.url.toString():void 0;return V.getEntriesByName(t)}var N="2.10.0";let G,Z,$,q;const X={now:()=>void 0!==$?$:t.performance.now(),setNow(e){$=e},restoreNow(){$=void 0},frame(e){const i=t.requestAnimationFrame(e);return{cancel:()=>t.cancelAnimationFrame(i)}},getImageData(e,i=0){const{width:r,height:n}=e;q||(q=t.document.createElement("canvas"));const o=q.getContext("2d");if(!o)throw new Error("failed to create canvas 2d context");return(r>q.width||n>q.height)&&(q.width=r,q.height=n),o.clearRect(-i,-i,r+2*i,n+2*i),o.drawImage(e,0,0,r,n),o.getImageData(-i,-i,r+2*i,n+2*i)},resolveURL:e=>(G||(G=t.document.createElement("a")),G.href=e,G.href),get devicePixelRatio(){return t.devicePixelRatio},get prefersReducedMotion(){return!!t.matchMedia&&(null==Z&&(Z=t.matchMedia("(prefers-reduced-motion: reduce)")),Z.matches)}};let W;const H={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==W){const e=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{W=null!=process.env.API_URL_REGEX?new RegExp(process.env.API_URL_REGEX):e}catch(t){W=e}}return W},get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Y={supported:!1,testSupport:function(e){!Q&&J&&(ee?te(e):K=e)}};let K,J,Q=!1,ee=!1;function te(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,J),e.isContextLost())return;Y.supported=!0}catch(e){}e.deleteTexture(t),Q=!0}t.document&&(J=t.document.createElement("img"),J.onload=function(){K&&te(K),K=null,ee=!0},J.onerror=function(){Q=!0,K=null},J.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const ie="01",re="NO_ACCESS_TOKEN";function ne(e){return 0===e.indexOf("mapbox:")}function oe(e){return H.API_URL_REGEX.test(e)}const se=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ae(e){const t=e.match(se);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function le(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}function ce(e){if(!e)return null;const i=e.split(".");if(!i||3!==i.length)return null;try{return JSON.parse(decodeURIComponent(t.atob(i[1]).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")))}catch(e){return null}}class he{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const i=ce(H.ACCESS_TOKEN);let r="";return r=i&&i.u?t.btoa(encodeURIComponent(i.u).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(Number("0x"+t))))):H.ACCESS_TOKEN||"",e?`mapbox.eventData.${e}:${r}`:`mapbox.eventData:${r}`}fetchEventData(){const e=O("localStorage"),i=this.getStorageKey(),r=this.getStorageKey("uuid");if(e)try{const e=t.localStorage.getItem(i);e&&(this.eventData=JSON.parse(e));const n=t.localStorage.getItem(r);n&&(this.anonId=n)}catch(e){P("Unable to read from LocalStorage")}}saveEventData(){const e=O("localStorage"),i=this.getStorageKey(),r=this.getStorageKey("uuid");if(e)try{t.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length>=1&&t.localStorage.setItem(i,JSON.stringify(this.eventData))}catch(e){P("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,t,i,r){if(!H.EVENTS_URL)return;const n=ae(H.EVENTS_URL);n.params.push(`access_token=${r||H.ACCESS_TOKEN||""}`);const o={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:N,skuId:ie,userId:this.anonId},s=t?x(o,t):o,a={url:le(n),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=De(a,(e=>{this.pendingRequest=null,i(e),this.saveEventData(),this.processRequests(r)}))}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const ue=new class extends he{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(e,t){H.EVENTS_URL&&H.ACCESS_TOKEN&&Array.isArray(e)&&e.some((e=>ne(e)||oe(e)))&&this.queueRequest(Date.now(),t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const t=ce(H.ACCESS_TOKEN),i=t?t.u:H.ACCESS_TOKEN;let r=i!==this.eventData.tokenU;E(this.anonId)||(this.anonId=w(),r=!0);const n=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(n),i=(n-this.eventData.lastSuccess)/864e5;r=r||i>=1||i<-1||e.getDate()!==t.getDate()}else r=!0;r?this.postEvent(n,{"enabled.telemetry":!1},(e=>{e||(this.eventData.lastSuccess=n,this.eventData.tokenU=i)}),e):this.processRequests()}},pe=ue.postTurnstileEvent.bind(ue),de=new class extends he{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(e,t,i,r){this.skuToken=t,this.errorCb=r,H.EVENTS_URL&&(i||H.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},i):this.errorCb(new Error(re)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:i}=this.queue.shift();t&&this.success[t]||(this.anonId||this.fetchEventData(),E(this.anonId)||(this.anonId=w()),this.postEvent(i,{skuToken:this.skuToken},(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e))}},fe=de.postMapLoadEvent.bind(de),me=new class extends he{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(e,t,i,r){if(!H.API_URL||!H.SESSION_PATH)return;const n=ae(H.API_URL+H.SESSION_PATH);n.params.push(`sku=${t||""}`),n.params.push(`access_token=${r||H.ACCESS_TOKEN||""}`);const o={url:le(n),headers:{"Content-Type":"text/plain"}};this.pendingRequest=Le(o,(e=>{this.pendingRequest=null,i(e),this.saveEventData(),this.processRequests(r)}))}getSessionAPI(e,t,i,r){this.skuToken=t,this.errorCb=r,H.SESSION_PATH&&H.API_URL&&(i||H.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},i):this.errorCb(new Error(re)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:i}=this.queue.shift();t&&this.success[t]||this.getSession(i,this.skuToken,(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e)}},_e=me.getSessionAPI.bind(me),ge=new Set;let ye,xe=500,ve=50,be={};function we(e){const t=Se(e);let i,r;t&&t.forEach((e=>{const t=e.split("=");"language"===t[0]?i=t[1]:"worldview"===t[0]&&(r=t[1])}));let n="mapbox-tiles";return i&&(n+=`-${i}`),r&&(n+=`-${r}`),n}function Te(){try{return t.caches}catch(e){}}function Ee(e){const t=Te();t&&!be[e]&&(be[e]=t.open(e))}function Se(e){const t=e.indexOf("?");return t>0?e.slice(t+1).split("&"):[]}function Me(e){const t=e.indexOf("?");if(t<0)return e;const i=Se(e).filter((e=>{const t=e.split("=");return"language"===t[0]||"worldview"===t[0]}));return i.length?`${e.slice(0,t)}?${i.join("&")}`:e.slice(0,t)}let Ie=1/0;const Ae={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Ae);class Ce extends Error{constructor(e,t,i){401===t&&oe(i)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ze=L()?()=>self.worker&&self.worker.referrer:()=>("blob:"===t.location.protocol?t.parent:t).location.href;const Pe=function(e,i){if(!(/^file:/.test(r=e.url)||/^file:/.test(ze())&&!/^\w+:/.test(r))){if(t.fetch&&t.Request&&t.AbortController&&t.Request.prototype.hasOwnProperty("signal"))return function(e,i){const r=new t.AbortController,n=new t.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:ze(),signal:r.signal});let o=!1,s=!1;const a=(l=n.url).indexOf("sku=")>0&&oe(l);var l;"json"===e.type&&n.headers.set("Accept","application/json");const c=(r,o,l)=>{if(s)return;if(r&&"SecurityError"!==r.message&&P(r),o&&l)return h(o);const c=Date.now();t.fetch(n).then((t=>{if(t.ok){const e=a?t.clone():null;return h(t,e,c)}return i(new Ce(t.statusText,t.status,e.url))}))["catch"]((e=>{20!==e.code&&i(new Error(e.message))}))},h=(r,a,l)=>{("arrayBuffer"===e.type?r.arrayBuffer():"json"===e.type?r.json():r.text()).then((e=>{s||(a&&l&&function(e,i,r){const n=we(e.url);if(Ee(n),!be[n])return;const o={status:i.status,statusText:i.statusText,headers:new t.Headers};i.headers.forEach(((e,t)=>o.headers.set(t,e)));const s=B(i.headers.get("Cache-Control")||"");if(s["no-store"])return;s["max-age"]&&o.headers.set("Expires",new Date(r+1e3*s["max-age"]).toUTCString());const a=o.headers.get("Expires");a&&(new Date(a).getTime()-r<42e4||function(e,t){if(void 0===ye)try{new Response(new ReadableStream),ye=!0}catch(e){ye=!1}ye?t(e.body):e.blob().then(t)}(i,(i=>{const r=new t.Response(i,o);Ee(n),be[n]&&be[n].then((t=>t.put(Me(e.url),r)))["catch"]((e=>P(e.message)))})))}(n,a,l),o=!0,i(null,e,r.headers.get("Cache-Control"),r.headers.get("Expires")))}))["catch"]((e=>{s||i(new Error(e.message))}))};return a?function(e,t){const i=we(e.url);if(Ee(i),!be[i])return t(null);const r=Me(e.url);be[i].then((e=>{e.match(r).then((i=>{const n=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),i=B(e.headers.get("Cache-Control")||"");return t>Date.now()&&!i["no-cache"]}(i);e["delete"](r),n&&e.put(r,i.clone()),t(null,i,n)}))["catch"](t)}))["catch"](t)}(n,c):c(null,null),{cancel:()=>{s=!0,o||r.abort()}}}(e,i);if(L()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,i,void 0,!0)}var r;return function(e,i){const r=new t.XMLHttpRequest;r.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(r.responseType="arraybuffer");for(const t in e.headers)r.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===e.credentials,r.onerror=()=>{i(new Error(r.statusText))},r.onload=()=>{if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){let t=r.response;if("json"===e.type)try{t=JSON.parse(r.response)}catch(e){return i(e)}i(null,t,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else i(new Ce(r.statusText,r.status,e.url))},r.send(e.body),{cancel:()=>r.abort()}}(e,i)},ke=function(e,t){return Pe(x(e,{type:"arrayBuffer"}),t)},De=function(e,t){return Pe(x(e,{method:"POST"}),t)},Le=function(e,t){return Pe(x(e,{method:"GET"}),t)};function Be(e){const i=t.document.createElement("a");return i.href=e,i.protocol===t.document.location.protocol&&i.host===t.document.location.host}const Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Fe,Oe;Fe=[],Oe=0;const Ue=function(e,i){if(Y.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Oe>=H.MAX_PARALLEL_IMAGE_REQUESTS){const t={requestParameters:e,callback:i,cancelled:!1,cancel(){this.cancelled=!0}};return Fe.push(t),t}Oe++;let r=!1;const n=()=>{if(!r)for(r=!0,Oe--;Fe.length&&Oe<H.MAX_PARALLEL_IMAGE_REQUESTS;){const e=Fe.shift(),{requestParameters:t,callback:i,cancelled:r}=e;r||(e.cancel=Ue(t,i).cancel)}},o=ke(e,((e,r,o,s)=>{n(),e?i(e):r&&(t.createImageBitmap?function(e,i){const r=new t.Blob([new Uint8Array(e)],{type:"image/png"});t.createImageBitmap(r).then((e=>{i(null,e)}))["catch"]((e=>{i(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))}))}(r,((e,t)=>i(e,t,o,s))):function(e,i){const r=new t.Image,n=t.URL;r.onload=()=>{i(null,r),n.revokeObjectURL(r.src),r.onload=null,t.requestAnimationFrame((()=>{r.src=Re}))},r.onerror=()=>i(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const o=new t.Blob([new Uint8Array(e)],{type:"image/png"});r.src=e.byteLength?n.createObjectURL(o):Re}(r,((e,t)=>i(e,t,o,s))))}));return{cancel:()=>{o.cancel(),n()}}};function Ve(e,t,i){i[e]&&-1!==i[e].indexOf(t)||(i[e]=i[e]||[],i[e].push(t))}function je(e,t,i){if(i&&i[e]){const r=i[e].indexOf(t);-1!==r&&i[e].splice(r,1)}}class Ne{constructor(e,t={}){x(this,t),this.type=e}}class Ge extends Ne{constructor(e,t={}){super("error",x({error:e},t))}}class Ze{on(e,t){return this._listeners=this._listeners||{},Ve(e,t,this._listeners),this}off(e,t){return je(e,t,this._listeners),je(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Ve(e,t,this._oneTimeListeners),this):new Promise((t=>this.once(e,t)))}fire(e,t){"string"==typeof e&&(e=new Ne(e,t||{}));const i=e.type;if(this.listens(i)){e.target=this;const t=this._listeners&&this._listeners[i]?this._listeners[i].slice():[];for(const i of t)i.call(this,e);const r=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];for(const t of r)je(i,t,this._oneTimeListeners),t.call(this,e);const n=this._eventedParent;n&&(x(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),n.fire(e))}else e instanceof Ge&&console.error(e.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var $e=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"cross-faded"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"cross-faded":{"type":"property-type"},"cross-faded-data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function qe(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}function Xe(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function We(e){if(Array.isArray(e))return e.map(We);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const i in e)t[i]=We(e[i]);return t}return Xe(e)}class He extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}var Ye=He;class Ke{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,i]of t)this.bindings[e]=i}concat(e){return new Ke(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}var Je=Ke;const Qe={kind:"null"},et={kind:"number"},tt={kind:"string"},it={kind:"boolean"},rt={kind:"color"},nt={kind:"object"},ot={kind:"value"},st={kind:"collator"},at={kind:"formatted"},lt={kind:"resolvedImage"};function ct(e,t){return{kind:"array",itemType:e,N:t}}function ht(e){if("array"===e.kind){const t=ht(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const ut=[Qe,et,tt,it,rt,at,nt,ct(ot),lt];function pt(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!pt(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of ut)if(!pt(e,t))return null}return`Expected ${ht(e)} but found ${ht(t)} instead.`}function dt(e,t){return t.some((t=>t.kind===e.kind))}function ft(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}function mt(e){var t={exports:{}};return e(t,t.exports),t.exports}var _t=mt((function(e,t){var i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function n(e){return r("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function o(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function s(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}try{t.parseCSSColor=function(e){var t,a=e.replace(/ /g,"").toLowerCase();if(a in i)return i[a].slice();if("#"===a[0])return 4===a.length?(t=parseInt(a.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===a.length&&(t=parseInt(a.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=a.indexOf("("),c=a.indexOf(")");if(-1!==l&&c+1===a.length){var h=a.substr(0,l),u=a.substr(l+1,c-(l+1)).split(","),p=1;switch(h){case"rgba":if(4!==u.length)return null;p=o(u.pop());case"rgb":return 3!==u.length?null:[n(u[0]),n(u[1]),n(u[2]),p];case"hsla":if(4!==u.length)return null;p=o(u.pop());case"hsl":if(3!==u.length)return null;var d=(parseFloat(u[0])%360+360)%360/360,f=o(u[1]),m=o(u[2]),_=m<=.5?m*(f+1):m+f-m*f,g=2*m-_;return[r(255*s(g,_,d+1/3)),r(255*s(g,_,d)),r(255*s(g,_,d-1/3)),p];default:return null}}return null}}catch(e){}}));class gt{constructor(e,t,i,r=1){this.r=e,this.g=t,this.b=i,this.a=r}static parse(e){if(!e)return;if(e instanceof gt)return e;if("string"!=typeof e)return;const t=_t.parseCSSColor(e);return t?new gt(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,i,r]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(i)},${r})`}toArray(){const{r:e,g:t,b:i,a:r}=this;return 0===r?[0,0,0,0]:[255*e/r,255*t/r,255*i/r,r]}toArray01(){const{r:e,g:t,b:i,a:r}=this;return 0===r?[0,0,0,0]:[e/r,t/r,i/r,r]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:i,a:r}=this;return[e,t,i,r]}}gt.black=new gt(0,0,0,1),gt.white=new gt(1,1,1,1),gt.transparent=new gt(0,0,0,0),gt.red=new gt(1,0,0,1),gt.blue=new gt(0,0,1,1);var yt=gt;class xt{constructor(e,t,i){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class vt{constructor(e,t,i,r,n){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=i,this.fontStack=r,this.textColor=n}}class bt{constructor(e){this.sections=e}static fromString(e){return new bt([new vt(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.name.length))}static factory(e){return e instanceof bt?e:bt.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const i={};t.fontStack&&(i["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(i["font-scale"]=t.scale),t.textColor&&(i["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(i)}return e}}class wt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new wt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Tt(e,t,i,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[e,t,i,r]:[e,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Et(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof yt)return!0;if(e instanceof xt)return!0;if(e instanceof bt)return!0;if(e instanceof wt)return!0;if(Array.isArray(e)){for(const t of e)if(!Et(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!Et(e[t]))return!1;return!0}return!1}function St(e){if(null===e)return Qe;if("string"==typeof e)return tt;if("boolean"==typeof e)return it;if("number"==typeof e)return et;if(e instanceof yt)return rt;if(e instanceof xt)return st;if(e instanceof bt)return at;if(e instanceof wt)return lt;if(Array.isArray(e)){const t=e.length;let i;for(const t of e){const e=St(t);if(i){if(i===e)continue;i=ot;break}i=e}return ct(i||ot,t)}return nt}function Mt(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof yt||e instanceof bt||e instanceof wt?e.toString():JSON.stringify(e)}class It{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Et(e[1]))return t.error("invalid value");const i=e[1];let r=St(i);const n=t.expectedType;return"array"!==r.kind||0!==r.N||!n||"array"!==n.kind||"number"==typeof n.N&&0!==n.N||(r=n),new It(r,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof yt?["rgba"].concat(this.value.toArray()):this.value instanceof bt?this.value.serialize():this.value}}var At=It,Ct=class{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}};const zt={string:tt,number:et,boolean:it,object:nt};class Pt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let i,r=1;const n=e[0];if("array"===n){let n,o;if(e.length>2){const i=e[1];if("string"!=typeof i||!(i in zt)||"object"===i)return t.error('The item type argument of "array" must be one of string, number, boolean',1);n=zt[i],r++}else n=ot;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],r++}i=ct(n,o)}else i=zt[n];const o=[];for(;r<e.length;r++){const i=t.parse(e[r],r,ot);if(!i)return null;o.push(i)}return new Pt(i,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const i=this.args[t].evaluate(e);if(!pt(this.type,St(i)))return i;if(t===this.args.length-1)throw new Ct(`Expected value to be of type ${ht(this.type)}, but found ${ht(St(i))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const i=e.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){t.push(i.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((e=>e.serialize())))}}var kt=Pt;class Dt{constructor(e){this.type=at,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[1];if(!Array.isArray(i)&&"object"==typeof i)return t.error("First argument must be an image or text section.");const r=[];let n=!1;for(let i=1;i<=e.length-1;++i){const o=e[i];if(n&&"object"==typeof o&&!Array.isArray(o)){n=!1;let e=null;if(o["font-scale"]&&(e=t.parse(o["font-scale"],1,et),!e))return null;let i=null;if(o["text-font"]&&(i=t.parse(o["text-font"],1,ct(tt)),!i))return null;let s=null;if(o["text-color"]&&(s=t.parse(o["text-color"],1,rt),!s))return null;const a=r[r.length-1];a.scale=e,a.font=i,a.textColor=s}else{const o=t.parse(e[i],1,ot);if(!o)return null;const s=o.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,r.push({content:o,scale:null,font:null,textColor:null})}}return new Dt(r)}evaluate(e){return new bt(this.sections.map((t=>{const i=t.content.evaluate(e);return St(i)===lt?new vt("",i,null,null,null):new vt(Mt(i),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const i={};t.scale&&(i["font-scale"]=t.scale.serialize()),t.font&&(i["text-font"]=t.font.serialize()),t.textColor&&(i["text-color"]=t.textColor.serialize()),e.push(i)}return e}}class Lt{constructor(e){this.type=lt,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const i=t.parse(e[1],1,tt);return i?new Lt(i):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),i=wt.fromString(t);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(t)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Bt={"to-boolean":it,"to-color":rt,"to-number":et,"to-string":tt};class Rt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[0];if(("to-boolean"===i||"to-string"===i)&&2!==e.length)return t.error("Expected one argument.");const r=Bt[i],n=[];for(let i=1;i<e.length;i++){const r=t.parse(e[i],i,ot);if(!r)return null;n.push(r)}return new Rt(r,n)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,i;for(const r of this.args){if(t=r.evaluate(e),i=null,t instanceof yt)return t;if("string"==typeof t){const i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&(i=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:Tt(t[0],t[1],t[2],t[3]),!i))return new yt(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Ct(i||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const i of this.args){if(t=i.evaluate(e),null===t)return 0;const r=Number(t);if(!isNaN(r))return r}throw new Ct(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?bt.fromString(Mt(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?wt.fromString(Mt(this.args[0].evaluate(e))):Mt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new Dt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Lt(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Ft=Rt;const Ot=["Unknown","Point","LineString","Polygon"];var Ut=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Ot[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:i,y:r}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(i*t-e[0])+this.featureDistanceData.bearing[1]*(r*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=yt.parse(e)),t}};class Vt{constructor(e,t,i,r){this.name=e,this.type=t,this._evaluate=i,this.args=r}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const i=e[0],r=Vt.definitions[i];if(!r)return t.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const n=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,s=o.filter((([t])=>!Array.isArray(t)||t.length===e.length-1));let a=null;for(const[r,o]of s){a=new di(t.registry,t.path,null,t.scope);const s=[];let l=!1;for(let t=1;t<e.length;t++){const i=e[t],n=Array.isArray(r)?r[t-1]:r.type,o=a.parse(i,1+s.length,n);if(!o){l=!0;break}s.push(o)}if(!l)if(Array.isArray(r)&&r.length!==s.length)a.error(`Expected ${r.length} arguments, but found ${s.length} instead.`);else{for(let e=0;e<s.length;e++){const t=Array.isArray(r)?r[e]:r.type,i=s[e];a.concat(e+1).checkSubtype(t,i.type)}if(0===a.errors.length)return new Vt(i,n,o,s)}}if(1===s.length)t.errors.push(...a.errors);else{const i=(s.length?s:o).map((([e])=>{return t=e,Array.isArray(t)?`(${t.map(ht).join(", ")})`:`(${ht(t.type)}...)`;var t})).join(" | "),r=[];for(let i=1;i<e.length;i++){const n=t.parse(e[i],1+r.length);if(!n)return null;r.push(ht(n.type))}t.error(`Expected arguments of type ${i}, but found (${r.join(", ")}) instead.`)}return null}static register(e,t){Vt.definitions=t;for(const i in t)e[i]=Vt}}var jt=Vt;class Nt{constructor(e,t,i){this.type=st,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const i=e[1];if("object"!=typeof i||Array.isArray(i))return t.error("Collator options argument must be an object.");const r=t.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,it);if(!r)return null;const n=t.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,it);if(!n)return null;let o=null;return i.locale&&(o=t.parse(i.locale,1,tt),!o)?null:new Nt(r,n,o)}evaluate(e){return new xt(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}const Gt=8192;function Zt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function $t(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function qt(e,t){const i=(180+e[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,n=Math.pow(2,t.z);return[Math.round(i*n*Gt),Math.round(r*n*Gt)]}function Xt(e,t,i){const r=e[0]-t[0],n=e[1]-t[1],o=e[0]-i[0],s=e[1]-i[1];return r*s-o*n==0&&r*o<=0&&n*s<=0}function Wt(e,t){let i=!1;for(let s=0,a=t.length;s<a;s++){const a=t[s];for(let t=0,s=a.length;t<s-1;t++){if(Xt(e,a[t],a[t+1]))return!1;(n=a[t])[1]>(r=e)[1]!=(o=a[t+1])[1]>r[1]&&r[0]<(o[0]-n[0])*(r[1]-n[1])/(o[1]-n[1])+n[0]&&(i=!i)}}var r,n,o;return i}function Ht(e,t){for(let i=0;i<t.length;i++)if(Wt(e,t[i]))return!0;return!1}function Yt(e,t,i,r){const n=r[0]-i[0],o=r[1]-i[1],s=(e[0]-i[0])*o-n*(e[1]-i[1]),a=(t[0]-i[0])*o-n*(t[1]-i[1]);return s>0&&a<0||s<0&&a>0}function Kt(e,t,i){for(const c of i)for(let i=0;i<c.length-1;++i)if(0!=(a=[(s=c[i+1])[0]-(o=c[i])[0],s[1]-o[1]])[0]*(l=[(n=t)[0]-(r=e)[0],n[1]-r[1]])[1]-a[1]*l[0]&&Yt(r,n,o,s)&&Yt(o,s,r,n))return!0;var r,n,o,s,a,l;return!1}function Jt(e,t){for(let i=0;i<e.length;++i)if(!Wt(e[i],t))return!1;for(let i=0;i<e.length-1;++i)if(Kt(e[i],e[i+1],t))return!1;return!0}function Qt(e,t){for(let i=0;i<t.length;i++)if(Jt(e,t[i]))return!0;return!1}function ei(e,t,i){const r=[];for(let n=0;n<e.length;n++){const o=[];for(let r=0;r<e[n].length;r++){const s=qt(e[n][r],i);Zt(t,s),o.push(s)}r.push(o)}return r}function ti(e,t,i){const r=[];for(let n=0;n<e.length;n++){const o=ei(e[n],t,i);r.push(o)}return r}function ii(e,t,i,r){if(e[0]<i[0]||e[0]>i[2]){const t=.5*r;let n=e[0]-i[0]>t?-r:i[0]-e[0]>t?r:0;0===n&&(n=e[0]-i[2]>t?-r:i[2]-e[0]>t?r:0),e[0]+=n}Zt(t,e)}function ri(e,t,i,r){const n=Math.pow(2,r.z)*Gt,o=[r.x*Gt,r.y*Gt],s=[];if(!e)return s;for(const r of e)for(const e of r){const r=[e.x+o[0],e.y+o[1]];ii(r,t,i,n),s.push(r)}return s}function ni(e,t,i,r){const n=Math.pow(2,r.z)*Gt,o=[r.x*Gt,r.y*Gt],s=[];if(!e)return s;for(const i of e){const e=[];for(const r of i){const i=[r.x+o[0],r.y+o[1]];Zt(t,i),e.push(i)}s.push(e)}if(t[2]-t[0]<=n/2){(a=t)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const e of s)for(const r of e)ii(r,t,i,n)}var a;return s}class oi{constructor(e,t){this.type=it,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Et(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const i=t.features[e].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new oi(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new oi(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new oi(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(!n)return!1;if("Polygon"===t.type){const o=ei(t.coordinates,r,n),s=ri(e.geometry(),i,r,n);if(!$t(i,r))return!1;for(const e of s)if(!Wt(e,o))return!1}if("MultiPolygon"===t.type){const o=ti(t.coordinates,r,n),s=ri(e.geometry(),i,r,n);if(!$t(i,r))return!1;for(const e of s)if(!Ht(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(!n)return!1;if("Polygon"===t.type){const o=ei(t.coordinates,r,n),s=ni(e.geometry(),i,r,n);if(!$t(i,r))return!1;for(const e of s)if(!Jt(e,o))return!1}if("MultiPolygon"===t.type){const o=ti(t.coordinates,r,n),s=ni(e.geometry(),i,r,n);if(!$t(i,r))return!1;for(const e of s)if(!Qt(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var si=oi;function ai(e){if(e instanceof jt){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof si)return!1;let t=!0;return e.eachChild((e=>{t&&!ai(e)&&(t=!1)})),t}function li(e){if(e instanceof jt&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!li(e)&&(t=!1)})),t}function ci(e,t){if(e instanceof jt&&t.indexOf(e.name)>=0)return!1;let i=!0;return e.eachChild((e=>{i&&!ci(e,t)&&(i=!1)})),i}class hi{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const i=e[1];return t.scope.has(i)?new hi(i,t.scope.get(i)):t.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var ui=hi;class pi{constructor(e,t=[],i,r=new Je,n=[]){this.registry=e,this.path=t,this.key=t.map((e=>`[${e}]`)).join(""),this.scope=r,this.errors=n,this.expectedType=i}parse(e,t,i,r,n={}){return t?this.concat(t,i,r)._parse(e,n):this._parse(e,n)}_parse(e,t){function i(e,t,i){return"assert"===i?new kt(t,[e]):"coerce"===i?new Ft(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const n=this.registry[r];if(n){let r=n.parse(e,this);if(!r)return null;if(this.expectedType){const e=this.expectedType,n=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==n.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==n.kind&&"string"!==n.kind){if(this.checkSubtype(e,n))return null}else r=i(r,e,t.typeAnnotation||"coerce");else r=i(r,e,t.typeAnnotation||"assert")}if(!(r instanceof At)&&"resolvedImage"!==r.type.kind&&fi(r)){const t=new Ut;try{r=new At(r.type,r.evaluate(t))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,i){const r="number"==typeof e?this.path.concat(e):this.path,n=i?this.scope.concat(i):this.scope;return new pi(this.registry,r,t||null,n,this.errors)}error(e,...t){const i=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new Ye(i,e))}checkSubtype(e,t){const i=pt(e,t);return i&&this.error(i),i}}var di=pi;function fi(e){if(e instanceof ui)return fi(e.boundExpression);if(e instanceof jt&&"error"===e.name)return!1;if(e instanceof Nt)return!1;if(e instanceof si)return!1;const t=e instanceof Ft||e instanceof kt;let i=!0;return e.eachChild((e=>{i=t?i&&fi(e):i&&e instanceof At})),!!i&&ai(e)&&ci(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function mi(e,t){const i=e.length-1;let r,n,o=0,s=i,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),r=e[a],n=e[a+1],r<=t){if(a===i||t<n)return a;o=a+1}else{if(!(r>t))throw new Ct("Input is not a number.");s=a-1}return 0}class _i{constructor(e,t,i){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const i=t.parse(e[1],1,et);if(!i)return null;const r=[];let n=null;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(let i=1;i<e.length;i+=2){const o=1===i?-1/0:e[i],s=e[i+1],a=i,l=i+1;if("number"!=typeof o)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(r.length&&r[r.length-1][0]>=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=t.parse(s,l,n);if(!c)return null;n=n||c.type,r.push([o,c])}return new _i(n,i,r)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return i[0].evaluate(e);const n=t.length;return r>=t[n-1]?i[n-1].evaluate(e):i[mi(t,r)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}var gi=_i;function yi(e,t,i){return e*(1-i)+t*i}function xi(e,t,i){return e.map(((e,r)=>yi(e,t[r],i)))}var vi=Object.freeze({__proto__:null,number:yi,color:function(e,t,i){return new yt(yi(e.r,t.r,i),yi(e.g,t.g,i),yi(e.b,t.b,i),yi(e.a,t.a,i))},array:xi});const bi=.95047,wi=1.08883,Ti=4/29,Ei=6/29,Si=3*Ei*Ei,Mi=Math.PI/180,Ii=180/Math.PI;function Ai(e){return e>.008856451679035631?Math.pow(e,1/3):e/Si+Ti}function Ci(e){return e>Ei?e*e*e:Si*(e-Ti)}function zi(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Pi(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ki(e){const t=Pi(e.r),i=Pi(e.g),r=Pi(e.b),n=Ai((.4124564*t+.3575761*i+.1804375*r)/bi),o=Ai((.2126729*t+.7151522*i+.072175*r)/1);return{l:116*o-16,a:500*(n-o),b:200*(o-Ai((.0193339*t+.119192*i+.9503041*r)/wi)),alpha:e.a}}function Di(e){let t=(e.l+16)/116,i=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*Ci(t),i=bi*Ci(i),r=wi*Ci(r),new yt(zi(3.2404542*i-1.5371385*t-.4985314*r),zi(-.969266*i+1.8760108*t+.041556*r),zi(.0556434*i-.2040259*t+1.0572252*r),e.alpha)}function Li(e,t,i){const r=t-e;return e+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const Bi={forward:ki,reverse:Di,interpolate:function(e,t,i){return{l:yi(e.l,t.l,i),a:yi(e.a,t.a,i),b:yi(e.b,t.b,i),alpha:yi(e.alpha,t.alpha,i)}}},Ri={forward:function(e){const{l:t,a:i,b:r}=ki(e),n=Math.atan2(r,i)*Ii;return{h:n<0?n+360:n,c:Math.sqrt(i*i+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*Mi,i=e.c;return Di({l:e.l,a:Math.cos(t)*i,b:Math.sin(t)*i,alpha:e.alpha})},interpolate:function(e,t,i){return{h:Li(e.h,t.h,i),c:yi(e.c,t.c,i),l:yi(e.l,t.l,i),alpha:yi(e.alpha,t.alpha,i)}}};var Fi=Object.freeze({__proto__:null,lab:Bi,hcl:Ri});class Oi{constructor(e,t,i,r,n){this.type=e,this.operator=t,this.interpolation=i,this.input=r,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,r,n){let o=0;if("exponential"===e.name)o=Ui(t,e.base,r,n);else if("linear"===e.name)o=Ui(t,1,r,n);else if("cubic-bezier"===e.name){const s=e.controlPoints;o=new i(s[0],s[1],s[2],s[3]).solve(Ui(t,1,r,n))}return o}static parse(e,t){let[i,r,n,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(n=t.parse(n,2,et),!n)return null;const s=[];let a=null;"interpolate-hcl"===i||"interpolate-lab"===i?a=rt:t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let e=0;e<o.length;e+=2){const i=o[e],r=o[e+1],n=e+3,l=e+4;if("number"!=typeof i)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',n);if(s.length&&s[s.length-1][0]>=i)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',n);const c=t.parse(r,l,a);if(!c)return null;a=a||c.type,s.push([i,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new Oi(a,i,r,n,s):t.error(`Type ${ht(a)} is not interpolatable.`)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return i[0].evaluate(e);const n=t.length;if(r>=t[n-1])return i[n-1].evaluate(e);const o=mi(t,r),s=Oi.interpolationFactor(this.interpolation,r,t[o],t[o+1]),a=i[o].evaluate(e),l=i[o+1].evaluate(e);return"interpolate"===this.operator?vi[this.type.kind.toLowerCase()](a,l,s):"interpolate-hcl"===this.operator?Ri.reverse(Ri.interpolate(Ri.forward(a),Ri.forward(l),s)):Bi.reverse(Bi.interpolate(Bi.forward(a),Bi.forward(l),s))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let e=0;e<this.labels.length;e++)t.push(this.labels[e],this.outputs[e].serialize());return t}}function Ui(e,t,i,r){const n=r-i,o=e-i;return 0===n?0:1===t?o/n:(Math.pow(t,o)-1)/(Math.pow(t,n)-1)}var Vi=Oi;class ji{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let i=null;const r=t.expectedType;r&&"value"!==r.kind&&(i=r);const n=[];for(const r of e.slice(1)){const e=t.parse(r,1+n.length,i,void 0,{typeAnnotation:"omit"});if(!e)return null;i=i||e.type,n.push(e)}const o=r&&n.some((e=>pt(r,e.type)));return new ji(o?ot:i,n)}evaluate(e){let t,i=null,r=0;for(const n of this.args){if(r++,i=n.evaluate(e),i&&i instanceof wt&&!i.available&&(t||(t=i),i=null,r===this.args.length))return t;if(null!==i)break}return i}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var Ni=ji;class Gi{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const i=[];for(let r=1;r<e.length-1;r+=2){const n=e[r];if("string"!=typeof n)return t.error(`Expected string, but found ${typeof n} instead.`,r);if(/[^a-zA-Z0-9_]/.test(n))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);const o=t.parse(e[r+1],r+1);if(!o)return null;i.push([n,o])}const r=t.parse(e[e.length-1],e.length-1,t.expectedType,i);return r?new Gi(i,r):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,i]of this.bindings)e.push(t,i.serialize());return e.push(this.result.serialize()),e}}var Zi=Gi;class $i{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,et),r=t.parse(e[2],2,ct(t.expectedType||ot));return i&&r?new $i(r.type.itemType,i,r):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new Ct(`Array index out of bounds: ${t} < 0.`);if(t>=i.length)throw new Ct(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t!==Math.floor(t))throw new Ct(`Array index must be an integer, but found ${t} instead.`);return i[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var qi=$i;class Xi{constructor(e,t){this.type=it,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,ot),r=t.parse(e[2],2,ot);return i&&r?dt(i.type,[it,tt,et,Qe,ot])?new Xi(i,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ht(i.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(null==i)return!1;if(!ft(t,["boolean","string","number","null"]))throw new Ct(`Expected first argument to be of type boolean, string, number or null, but found ${ht(St(t))} instead.`);if(!ft(i,["string","array"]))throw new Ct(`Expected second argument to be of type array or string, but found ${ht(St(i))} instead.`);return i.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Wi=Xi;class Hi{constructor(e,t,i){this.type=et,this.needle=e,this.haystack=t,this.fromIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,ot),r=t.parse(e[2],2,ot);if(!i||!r)return null;if(!dt(i.type,[it,tt,et,Qe,ot]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ht(i.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,et);return n?new Hi(i,r,n):null}return new Hi(i,r)}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!ft(t,["boolean","string","number","null"]))throw new Ct(`Expected first argument to be of type boolean, string, number or null, but found ${ht(St(t))} instead.`);if(!ft(i,["string","array"]))throw new Ct(`Expected second argument to be of type array or string, but found ${ht(St(i))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return i.indexOf(t,r)}return i.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Yi=Hi;class Ki{constructor(e,t,i,r,n,o){this.inputType=e,this.type=t,this.input=i,this.cases=r,this.outputs=n,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let i,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const n={},o=[];for(let s=2;s<e.length-1;s+=2){let a=e[s];const l=e[s+1];Array.isArray(a)||(a=[a]);const c=t.concat(s);if(0===a.length)return c.error("Expected at least one branch label.");for(const e of a){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(i){if(c.checkSubtype(i,St(e)))return null}else i=St(e);if(void 0!==n[String(e)])return c.error("Branch labels must be unique.");n[String(e)]=o.length}const h=t.parse(l,s,r);if(!h)return null;r=r||h.type,o.push(h)}const s=t.parse(e[1],1,ot);if(!s)return null;const a=t.parse(e[e.length-1],e.length-1,r);return a?"value"!==s.type.kind&&t.concat(1).checkSubtype(i,s.type)?null:new Ki(i,r,s,n,o,a):null}evaluate(e){const t=this.input.evaluate(e);return(St(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),i=[],r={};for(const e of t){const t=r[this.cases[e]];void 0===t?(r[this.cases[e]]=i.length,i.push([this.cases[e],[e]])):i[t][1].push(e)}const n=e=>"number"===this.inputType.kind?Number(e):e;for(const[t,r]of i)e.push(1===r.length?n(r[0]):r.map(n)),e.push(this.outputs[t].serialize());return e.push(this.otherwise.serialize()),e}}var Ji=Ki;class Qi{constructor(e,t,i){this.type=e,this.branches=t,this.otherwise=i}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const r=[];for(let n=1;n<e.length-1;n+=2){const o=t.parse(e[n],n,it);if(!o)return null;const s=t.parse(e[n+1],n+1,i);if(!s)return null;r.push([o,s]),i=i||s.type}const n=t.parse(e[e.length-1],e.length-1,i);return n?new Qi(i,r,n):null}evaluate(e){for(const[t,i]of this.branches)if(t.evaluate(e))return i.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,i]of this.branches)e(t),e(i);e(this.otherwise)}outputDefined(){return this.branches.every((([e,t])=>t.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}var er=Qi;class tr{constructor(e,t,i,r){this.type=e,this.input=t,this.beginIndex=i,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,ot),r=t.parse(e[2],2,et);if(!i||!r)return null;if(!dt(i.type,[ct(ot),tt,ot]))return t.error(`Expected first argument to be of type array or string, but found ${ht(i.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,et);return n?new tr(i.type,i,r,n):null}return new tr(i.type,i,r)}evaluate(e){const t=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!ft(t,["string","array"]))throw new Ct(`Expected first argument to be of type array or string, but found ${ht(St(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(i,r)}return t.slice(i)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var ir=tr;function rr(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function nr(e,t,i,r){return 0===r.compare(t,i)}function or(e,t,i){const r="=="!==e&&"!="!==e;return class n{constructor(e,t,i){this.type=it,this.lhs=e,this.rhs=t,this.collator=i,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const i=e[0];let o=t.parse(e[1],1,ot);if(!o)return null;if(!rr(i,o.type))return t.concat(1).error(`"${i}" comparisons are not supported for type '${ht(o.type)}'.`);let s=t.parse(e[2],2,ot);if(!s)return null;if(!rr(i,s.type))return t.concat(2).error(`"${i}" comparisons are not supported for type '${ht(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error(`Cannot compare types '${ht(o.type)}' and '${ht(s.type)}'.`);r&&("value"===o.type.kind&&"value"!==s.type.kind?o=new kt(s.type,[o]):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new kt(o.type,[s])));let a=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error("Cannot use collator to compare non-string types.");if(a=t.parse(e[3],3,st),!a)return null}return new n(o,s,a)}evaluate(n){const o=this.lhs.evaluate(n),s=this.rhs.evaluate(n);if(r&&this.hasUntypedArgument){const t=St(o),i=St(s);if(t.kind!==i.kind||"string"!==t.kind&&"number"!==t.kind)throw new Ct(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${i.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=St(o),i=St(s);if("string"!==e.kind||"string"!==i.kind)return t(n,o,s)}return this.collator?i(n,o,s,this.collator.evaluate(n)):t(n,o,s)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const sr=or("==",(function(e,t,i){return t===i}),nr),ar=or("!=",(function(e,t,i){return t!==i}),(function(e,t,i,r){return!nr(0,t,i,r)})),lr=or("<",(function(e,t,i){return t<i}),(function(e,t,i,r){return r.compare(t,i)<0})),cr=or(">",(function(e,t,i){return t>i}),(function(e,t,i,r){return r.compare(t,i)>0})),hr=or("<=",(function(e,t,i){return t<=i}),(function(e,t,i,r){return r.compare(t,i)<=0})),ur=or(">=",(function(e,t,i){return t>=i}),(function(e,t,i,r){return r.compare(t,i)>=0}));class pr{constructor(e,t,i,r,n,o){this.type=tt,this.number=e,this.locale=t,this.currency=i,this.unit=r,this.minFractionDigits=n,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const i=t.parse(e[1],1,et);if(!i)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let n=null;if(r.locale&&(n=t.parse(r.locale,1,tt),!n))return null;let o=null;if(r.currency&&(o=t.parse(r.currency,1,tt),!o))return null;let s=null;if(r.unit&&(s=t.parse(r.unit,1,tt),!s))return null;let a=null;if(r["min-fraction-digits"]&&(a=t.parse(r["min-fraction-digits"],1,et),!a))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parse(r["max-fraction-digits"],1,et),!l)?null:new pr(i,n,o,s,a,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class dr{constructor(e){this.type=et,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const i=t.parse(e[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?t.error(`Expected argument of type string or array, but found ${ht(i.type)} instead.`):new dr(i):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Ct(`Expected value to be of type string or array, but found ${ht(St(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}const fr={"==":sr,"!=":ar,">":cr,"<":lr,">=":ur,"<=":hr,array:kt,at:qi,boolean:kt,"case":er,coalesce:Ni,collator:Nt,format:Dt,image:Lt,"in":Wi,"index-of":Yi,interpolate:Vi,"interpolate-hcl":Vi,"interpolate-lab":Vi,length:dr,"let":Zi,literal:At,match:Ji,number:kt,"number-format":pr,object:kt,slice:ir,step:gi,string:kt,"to-boolean":Ft,"to-color":Ft,"to-number":Ft,"to-string":Ft,"var":ui,within:si};function mr(e,[t,i,r,n]){t=t.evaluate(e),i=i.evaluate(e),r=r.evaluate(e);const o=n?n.evaluate(e):1,s=Tt(t,i,r,o);if(s)throw new Ct(s);return new yt(t/255*o,i/255*o,r/255*o,o)}function _r(e,t){return e in t}function gr(e,t){const i=t[e];return void 0===i?null:i}function yr(e){return{type:e}}jt.register(fr,{error:[{kind:"error"},[tt],(e,[t])=>{throw new Ct(t.evaluate(e))}],"typeof":[tt,[ot],(e,[t])=>ht(St(t.evaluate(e)))],"to-rgba":[ct(et,4),[rt],(e,[t])=>t.evaluate(e).toArray()],rgb:[rt,[et,et,et],mr],rgba:[rt,[et,et,et,et],mr],has:{type:it,overloads:[[[tt],(e,[t])=>_r(t.evaluate(e),e.properties())],[[tt,nt],(e,[t,i])=>_r(t.evaluate(e),i.evaluate(e))]]},get:{type:ot,overloads:[[[tt],(e,[t])=>gr(t.evaluate(e),e.properties())],[[tt,nt],(e,[t,i])=>gr(t.evaluate(e),i.evaluate(e))]]},"feature-state":[ot,[tt],(e,[t])=>gr(t.evaluate(e),e.featureState||{})],properties:[nt,[],e=>e.properties()],"geometry-type":[tt,[],e=>e.geometryType()],id:[ot,[],e=>e.id()],zoom:[et,[],e=>e.globals.zoom],pitch:[et,[],e=>e.globals.pitch||0],"distance-from-center":[et,[],e=>e.distanceFromCenter()],"heatmap-density":[et,[],e=>e.globals.heatmapDensity||0],"line-progress":[et,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[et,[],e=>e.globals.skyRadialProgress||0],accumulated:[ot,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[et,yr(et),(e,t)=>{let i=0;for(const r of t)i+=r.evaluate(e);return i}],"*":[et,yr(et),(e,t)=>{let i=1;for(const r of t)i*=r.evaluate(e);return i}],"-":{type:et,overloads:[[[et,et],(e,[t,i])=>t.evaluate(e)-i.evaluate(e)],[[et],(e,[t])=>-t.evaluate(e)]]},"/":[et,[et,et],(e,[t,i])=>t.evaluate(e)/i.evaluate(e)],"%":[et,[et,et],(e,[t,i])=>t.evaluate(e)%i.evaluate(e)],ln2:[et,[],()=>Math.LN2],pi:[et,[],()=>Math.PI],e:[et,[],()=>Math.E],"^":[et,[et,et],(e,[t,i])=>Math.pow(t.evaluate(e),i.evaluate(e))],sqrt:[et,[et],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[et,[et],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[et,[et],(e,[t])=>Math.log(t.evaluate(e))],log2:[et,[et],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[et,[et],(e,[t])=>Math.sin(t.evaluate(e))],cos:[et,[et],(e,[t])=>Math.cos(t.evaluate(e))],tan:[et,[et],(e,[t])=>Math.tan(t.evaluate(e))],asin:[et,[et],(e,[t])=>Math.asin(t.evaluate(e))],acos:[et,[et],(e,[t])=>Math.acos(t.evaluate(e))],atan:[et,[et],(e,[t])=>Math.atan(t.evaluate(e))],min:[et,yr(et),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[et,yr(et),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[et,[et],(e,[t])=>Math.abs(t.evaluate(e))],round:[et,[et],(e,[t])=>{const i=t.evaluate(e);return i<0?-Math.round(-i):Math.round(i)}],floor:[et,[et],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[et,[et],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[it,[tt,ot],(e,[t,i])=>e.properties()[t.value]===i.value],"filter-id-==":[it,[ot],(e,[t])=>e.id()===t.value],"filter-type-==":[it,[tt],(e,[t])=>e.geometryType()===t.value],"filter-<":[it,[tt,ot],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r<n}],"filter-id-<":[it,[ot],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i<r}],"filter->":[it,[tt,ot],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r>n}],"filter-id->":[it,[ot],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i>r}],"filter-<=":[it,[tt,ot],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r<=n}],"filter-id-<=":[it,[ot],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i<=r}],"filter->=":[it,[tt,ot],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r>=n}],"filter-id->=":[it,[ot],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i>=r}],"filter-has":[it,[ot],(e,[t])=>t.value in e.properties()],"filter-has-id":[it,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[it,[ct(tt)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[it,[ct(ot)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[it,[tt,ct(ot)],(e,[t,i])=>i.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[it,[tt,ct(ot)],(e,[t,i])=>function(e,t,i,r){for(;i<=r;){const n=i+r>>1;if(t[n]===e)return!0;t[n]>e?r=n-1:i=n+1}return!1}(e.properties()[t.value],i.value,0,i.value.length-1)],all:{type:it,overloads:[[[it,it],(e,[t,i])=>t.evaluate(e)&&i.evaluate(e)],[yr(it),(e,t)=>{for(const i of t)if(!i.evaluate(e))return!1;return!0}]]},any:{type:it,overloads:[[[it,it],(e,[t,i])=>t.evaluate(e)||i.evaluate(e)],[yr(it),(e,t)=>{for(const i of t)if(i.evaluate(e))return!0;return!1}]]},"!":[it,[it],(e,[t])=>!t.evaluate(e)],"is-supported-script":[it,[tt],(e,[t])=>{const i=e.globals&&e.globals.isSupportedScript;return!i||i(t.evaluate(e))}],upcase:[tt,[tt],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[tt,[tt],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[tt,yr(ot),(e,t)=>t.map((t=>Mt(t.evaluate(e)))).join("")],"resolved-locale":[tt,[st],(e,[t])=>t.evaluate(e).resolvedLocale()]});var xr=fr;function vr(e){return{result:"success",value:e}}function br(e){return{result:"error",value:e}}function wr(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Tr(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Er(e){return!!e.expression&&e.expression.interpolated}function Sr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Mr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Ir(e){return e}function Ar(e,t){const i="color"===t.type,r=e.stops&&"object"==typeof e.stops[0][0],n=r||!(r||void 0!==e.property),o=e.type||(Er(t)?"exponential":"interval");if(i&&((e=qe({},e)).stops&&(e.stops=e.stops.map((e=>[e[0],yt.parse(e[1])]))),e["default"]=yt.parse(e["default"]?e["default"]:t["default"])),e.colorSpace&&"rgb"!==e.colorSpace&&!Fi[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let s,a,l;if("exponential"===o)s=kr;else if("interval"===o)s=Pr;else if("categorical"===o){s=zr,a=Object.create(null);for(const t of e.stops)a[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=Dr}if(r){const i={},r=[];for(let t=0;t<e.stops.length;t++){const n=e.stops[t],o=n[0].zoom;void 0===i[o]&&(i[o]={zoom:o,type:e.type,property:e.property,"default":e["default"],stops:[]},r.push(o)),i[o].stops.push([n[0].value,n[1]])}const n=[];for(const e of r)n.push([i[e].zoom,Ar(i[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:Vi.interpolationFactor.bind(void 0,o),zoomStops:n.map((e=>e[0])),evaluate:({zoom:i},r)=>kr({stops:n,base:e.base},t,i).evaluate(i,r)}}if(n){const i="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:i,interpolationFactor:Vi.interpolationFactor.bind(void 0,i),zoomStops:e.stops.map((e=>e[0])),evaluate:({zoom:i})=>s(e,t,i,a,l)}}return{kind:"source",evaluate(i,r){const n=r&&r.properties?r.properties[e.property]:void 0;return void 0===n?Cr(e["default"],t["default"]):s(e,t,n,a,l)}}}function Cr(e,t,i){return void 0!==e?e:void 0!==t?t:void 0!==i?i:void 0}function zr(e,t,i,r,n){return Cr(typeof i===n?r[i]:void 0,e["default"],t["default"])}function Pr(e,t,i){if("number"!==Sr(i))return Cr(e["default"],t["default"]);const r=e.stops.length;if(1===r)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[r-1][0])return e.stops[r-1][1];const n=mi(e.stops.map((e=>e[0])),i);return e.stops[n][1]}function kr(e,t,i){const r=void 0!==e.base?e.base:1;if("number"!==Sr(i))return Cr(e["default"],t["default"]);const n=e.stops.length;if(1===n)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[n-1][0])return e.stops[n-1][1];const o=mi(e.stops.map((e=>e[0])),i),s=function(e,t,i,r){const n=r-i,o=e-i;return 0===n?0:1===t?o/n:(Math.pow(t,o)-1)/(Math.pow(t,n)-1)}(i,r,e.stops[o][0],e.stops[o+1][0]),a=e.stops[o][1],l=e.stops[o+1][1];let c=vi[t.type]||Ir;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=Fi[e.colorSpace];c=(e,i)=>t.reverse(t.interpolate(t.forward(e),t.forward(i),s))}return"function"==typeof a.evaluate?{evaluate(...e){const t=a.evaluate.apply(void 0,e),i=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==i)return c(t,i,s)}}:c(a,l,s)}function Dr(e,t,i){return"color"===t.type?i=yt.parse(i):"formatted"===t.type?i=bt.fromString(i.toString()):"resolvedImage"===t.type?i=wt.fromString(i.toString()):Sr(i)===t.type||"enum"===t.type&&t.values[i]||(i=void 0),Cr(i,e["default"],t["default"])}class Lr{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new Ut,this._defaultValue=t?function(e){return"color"===e.type&&(Mr(e["default"])||Array.isArray(e["default"]))?new yt(0,0,0,0):"color"===e.type?yt.parse(e["default"])||null:void 0===e["default"]?null:e["default"]}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,i,r,n,o,s,a){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=i,this._evaluator.canonical=r||null,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,i,r,n,o,s,a){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=i||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new Ct(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function Br(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in xr}function Rr(e,t){const i=new di(xr,[],t?function(e){const t={color:rt,string:tt,number:et,"enum":tt,boolean:it,formatted:at,resolvedImage:lt};return"array"===e.type?ct(t[e.value]||ot,e.length):t[e.type]}(t):void 0),r=i.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?vr(new Lr(r,t)):br(i.errors)}class Fr{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!li(t.expression)}evaluateWithoutErrorHandling(e,t,i,r,n,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,r,n,o)}evaluate(e,t,i,r,n,o){return this._styleExpression.evaluate(e,t,i,r,n,o)}}class Or{constructor(e,t,i,r){this.kind=e,this.zoomStops=i,this._styleExpression=t,this.isStateDependent="camera"!==e&&!li(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,i,r,n,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,r,n,o)}evaluate(e,t,i,r,n,o){return this._styleExpression.evaluate(e,t,i,r,n,o)}interpolationFactor(e,t,i){return this.interpolationType?Vi.interpolationFactor(this.interpolationType,e,t,i):0}}function Ur(e,t){if("error"===(e=Rr(e,t)).result)return e;const i=e.value.expression,r=ai(i);if(!r&&!wr(t))return br([new Ye("","data expressions not supported")]);const n=ci(i,["zoom","pitch","distance-from-center"]);if(!n&&!Tr(t))return br([new Ye("","zoom expressions not supported")]);const o=jr(i);return o||n?o instanceof Ye?br([o]):o instanceof Vi&&!Er(t)?br([new Ye("",'"interpolate" expressions cannot be used with this property')]):vr(o?new Or(r?"camera":"composite",e.value,o.labels,o instanceof Vi?o.interpolation:void 0):new Fr(r?"constant":"source",e.value)):br([new Ye("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Vr{constructor(e,t){this._parameters=e,this._specification=t,qe(this,Ar(this._parameters,this._specification))}static deserialize(e){return new Vr(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function jr(e){let t=null;if(e instanceof Zi)t=jr(e.result);else if(e instanceof Ni){for(const i of e.args)if(t=jr(i),t)break}else(e instanceof gi||e instanceof Vi)&&e.input instanceof jt&&"zoom"===e.input.name&&(t=e);return t instanceof Ye||e.eachChild((e=>{const i=jr(e);i instanceof Ye?t=i:!t&&i?t=new Ye("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new Ye("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}class Nr{constructor(e,t,i,r){this.message=(e?`${e}: `:"")+i,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)}}function Gr(e){const t=e.key,i=e.value,r=e.valueSpec||{},n=e.objectElementValidators||{},o=e.style,s=e.styleSpec;let a=[];const l=Sr(i);if("object"!==l)return[new Nr(t,i,`object expected, ${l} found`)];for(const e in i){const l=e.split(".")[0],c=r[l]||r["*"];let h;n[l]?h=n[l]:r[l]?h=Tn:n["*"]?h=n["*"]:r["*"]&&(h=Tn),h?a=a.concat(h({key:(t?`${t}.`:t)+e,value:i[e],valueSpec:c,style:o,styleSpec:s,object:i,objectKey:e},i)):a.push(new Nr(t,i[e],`unknown property "${e}"`))}for(const e in r)n[e]||r[e].required&&void 0===r[e]["default"]&&void 0===i[e]&&a.push(new Nr(t,i,`missing required property "${e}"`));return a}function Zr(e){const t=e.value,i=e.valueSpec,r=e.style,n=e.styleSpec,o=e.key,s=e.arrayElementValidator||Tn;if("array"!==Sr(t))return[new Nr(o,t,`array expected, ${Sr(t)} found`)];if(i.length&&t.length!==i.length)return[new Nr(o,t,`array length ${i.length} expected, length ${t.length} found`)];if(i["min-length"]&&t.length<i["min-length"])return[new Nr(o,t,`array length at least ${i["min-length"]} expected, length ${t.length} found`)];let a={type:i.value,values:i.values,minimum:i.minimum,maximum:i.maximum,"function":void 0};n.$version<7&&(a["function"]=i["function"]),"object"===Sr(i.value)&&(a=i.value);let l=[];for(let e=0;e<t.length;e++)l=l.concat(s({array:t,arrayIndex:e,value:t[e],valueSpec:a,style:r,styleSpec:n,key:`${o}[${e}]`}));return l}function $r(e){const t=e.key,i=e.value,r=e.valueSpec;let n=Sr(i);if("number"===n&&i!=i&&(n="NaN"),"number"!==n)return[new Nr(t,i,`number expected, ${n} found`)];if("minimum"in r){let n=r.minimum;if("array"===Sr(r.minimum)&&(n=r.minimum[e.arrayIndex]),i<n)return[new Nr(t,i,`${i} is less than the minimum value ${n}`)]}if("maximum"in r){let n=r.maximum;if("array"===Sr(r.maximum)&&(n=r.maximum[e.arrayIndex]),i>n)return[new Nr(t,i,`${i} is greater than the maximum value ${n}`)]}return[]}function qr(e){const t=e.valueSpec,i=Xe(e.value.type);let r,n,o,s={};const a="categorical"!==i&&void 0===e.value.property,l=!a,c="array"===Sr(e.value.stops)&&"array"===Sr(e.value.stops[0])&&"object"===Sr(e.value.stops[0][0]),h=Gr({key:e.key,value:e.value,valueSpec:e.styleSpec["function"],style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===i)return[new Nr(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const r=e.value;return t=t.concat(Zr({key:e.key,value:r,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:u})),"array"===Sr(r)&&0===r.length&&t.push(new Nr(e.key,r,"array must have at least one stop")),t},"default":function(e){return Tn({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&a&&h.push(new Nr(e.key,e.value,'missing required property "property"')),"identity"===i||e.value.stops||h.push(new Nr(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!Er(e.valueSpec)&&h.push(new Nr(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!wr(e.valueSpec)?h.push(new Nr(e.key,e.value,"property functions not supported")):a&&!Tr(e.valueSpec)&&h.push(new Nr(e.key,e.value,"zoom functions not supported"))),"categorical"!==i&&!c||void 0!==e.value.property||h.push(new Nr(e.key,e.value,'"property" property is required')),h;function u(e){let i=[];const r=e.value,a=e.key;if("array"!==Sr(r))return[new Nr(a,r,`array expected, ${Sr(r)} found`)];if(2!==r.length)return[new Nr(a,r,`array length 2 expected, length ${r.length} found`)];if(c){if("object"!==Sr(r[0]))return[new Nr(a,r,`object expected, ${Sr(r[0])} found`)];if(void 0===r[0].zoom)return[new Nr(a,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new Nr(a,r,"object stop key must have value")];const t=Xe(r[0].zoom);if("number"!=typeof t)return[new Nr(a,r[0].zoom,"stop zoom values must be numbers")];if(o&&o>t)return[new Nr(a,r[0].zoom,"stop zoom values must appear in ascending order")];t!==o&&(o=t,n=void 0,s={}),i=i.concat(Gr({key:`${a}[0]`,value:r[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:$r,value:p}}))}else i=i.concat(p({key:`${a}[0]`,value:r[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},r));return Br(We(r[1]))?i.concat([new Nr(`${a}[1]`,r[1],"expressions are not allowed in function stops.")]):i.concat(Tn({key:`${a}[1]`,value:r[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function p(e,o){const a=Sr(e.value),l=Xe(e.value),c=null!==e.value?e.value:o;if(r){if(a!==r)return[new Nr(e.key,c,`${a} stop domain type must match previous stop domain type ${r}`)]}else r=a;if("number"!==a&&"string"!==a&&"boolean"!==a&&"number"!=typeof l&&"string"!=typeof l&&"boolean"!=typeof l)return[new Nr(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==i){let r=`number expected, ${a} found`;return wr(t)&&void 0===i&&(r+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Nr(e.key,c,r)]}return"categorical"!==i||"number"!==a||"number"==typeof l&&isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===a&&"number"==typeof l&&"number"==typeof n&&void 0!==n&&l<n?[new Nr(e.key,c,"stop domain values must appear in ascending order")]:(n=l,"categorical"===i&&l in s?[new Nr(e.key,c,"stop domain values must be unique")]:(s[l]=!0,[])):[new Nr(e.key,c,`integer expected, found ${String(l)}`)]}}function Xr(e){const t=("property"===e.expressionContext?Ur:Rr)(We(e.value),e.valueSpec);if("error"===t.result)return t.value.map((t=>new Nr(`${e.key}${t.key}`,e.value,t.message)));const i=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!i.outputDefined())return[new Nr(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!li(i))return[new Nr(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext)return Wr(i,e);if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!ci(i,["zoom","feature-state"]))return[new Nr(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!ai(i))return[new Nr(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wr(e,t){const i=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(t.valueSpec&&t.valueSpec.expression)for(const e of t.valueSpec.expression.parameters)i["delete"](e);if(0===i.size)return[];const r=[];return e instanceof jt&&i.has(e.name)?[new Nr(t.key,t.value,`["${e.name}"] expression is not supported in a filter for a ${t.object.type} layer with id: ${t.object.id}`)]:(e.eachChild((e=>{r.push(...Wr(e,t))})),r)}function Hr(e){const t=e.key,i=e.value,r=e.valueSpec,n=[];return Array.isArray(r.values)?-1===r.values.indexOf(Xe(i))&&n.push(new Nr(t,i,`expected one of [${r.values.join(", ")}], ${JSON.stringify(i)} found`)):-1===Object.keys(r.values).indexOf(Xe(i))&&n.push(new Nr(t,i,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(i)} found`)),n}function Yr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!Yr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Kr(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Yr(e)||(e=on(e));const i=e;let r=!0;try{r=function(e){if(!en(e))return e;let t=We(e);return Qr(t),t=Jr(t),t}(i)}catch(e){console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(i,null,2)}\n        `)}const n=$e[`filter_${t}`],o=Rr(r,n);let s=null;if("error"===o.result)throw new Error(o.value.map((e=>`${e.key}: ${e.message}`)).join(", "));s=(e,t,i)=>o.value.evaluate(e,t,{},i);let a=null,l=null;if(r!==i){const e=Rr(i,n);if("error"===e.result)throw new Error(e.value.map((e=>`${e.key}: ${e.message}`)).join(", "));a=(t,i,r,n,o)=>e.value.evaluate(t,i,{},r,void 0,void 0,n,o),l=!ai(e.value.expression)}return s=s,{filter:s,dynamicFilter:a||void 0,needGeometry:nn(r),needFeature:!!l}}function Jr(e){if(!Array.isArray(e))return e;const t=function(e){if(tn.has(e[0]))for(let t=1;t<e.length;t++)if(en(e[t]))return!0;return e}(e);return!0===t?t:t.map((e=>Jr(e)))}function Qr(e){let t=!1;const i=[];if("case"===e[0]){for(let r=1;r<e.length-1;r+=2)t=t||en(e[r]),i.push(e[r+1]);i.push(e[e.length-1])}else if("match"===e[0]){t=t||en(e[1]);for(let t=2;t<e.length-1;t+=2)i.push(e[t+1]);i.push(e[e.length-1])}else if("step"===e[0]){t=t||en(e[1]);for(let t=1;t<e.length-1;t+=2)i.push(e[t+1])}t&&(e.length=0,e.push("any",...i));for(let t=1;t<e.length;t++)Qr(e[t])}function en(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let t=1;t<e.length;t++)if(en(e[t]))return!0;return!1}const tn=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function rn(e,t){return e<t?-1:e>t?1:0}function nn(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t<e.length;t++)if(nn(e[t]))return!0;return!1}function on(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?sn(e[1],e[2],"=="):"!="===t?cn(sn(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?sn(e[1],e[2],t):"any"===t?(i=e.slice(1),["any"].concat(i.map(on))):"all"===t?["all"].concat(e.slice(1).map(on)):"none"===t?["all"].concat(e.slice(1).map(on).map(cn)):"in"===t?an(e[1],e.slice(2)):"!in"===t?cn(an(e[1],e.slice(2))):"has"===t?ln(e[1]):"!has"===t?cn(ln(e[1])):"within"!==t||e;var i}function sn(e,t,i){switch(e){case"$type":return[`filter-type-${i}`,t];case"$id":return[`filter-id-${i}`,t];default:return[`filter-${i}`,e,t]}}function an(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(rn)]]:["filter-in-small",e,["literal",t]]}}function ln(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function cn(e){return["!",e]}function hn(e){return Yr(We(e.value))?Xr(qe({},e,{expressionContext:"filter",valueSpec:e.styleSpec[`filter_${e.layerType||"fill"}`]})):un(e)}function un(e){const t=e.value,i=e.key;if("array"!==Sr(t))return[new Nr(i,t,`array expected, ${Sr(t)} found`)];const r=e.styleSpec;let n,o=[];if(t.length<1)return[new Nr(i,t,"filter array must have at least 1 element")];switch(o=o.concat(Hr({key:`${i}[0]`,value:t[0],valueSpec:r.filter_operator,style:e.style,styleSpec:e.styleSpec})),Xe(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===Xe(t[1])&&o.push(new Nr(i,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&o.push(new Nr(i,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(n=Sr(t[1]),"string"!==n&&o.push(new Nr(`${i}[1]`,t[1],`string expected, ${n} found`)));for(let s=2;s<t.length;s++)n=Sr(t[s]),"$type"===Xe(t[1])?o=o.concat(Hr({key:`${i}[${s}]`,value:t[s],valueSpec:r.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==n&&"number"!==n&&"boolean"!==n&&o.push(new Nr(`${i}[${s}]`,t[s],`string, number, or boolean expected, ${n} found`));break;case"any":case"all":case"none":for(let r=1;r<t.length;r++)o=o.concat(un({key:`${i}[${r}]`,value:t[r],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":n=Sr(t[1]),2!==t.length?o.push(new Nr(i,t,`filter array for "${t[0]}" operator must have 2 elements`)):"string"!==n&&o.push(new Nr(`${i}[1]`,t[1],`string expected, ${n} found`));break;case"within":n=Sr(t[1]),2!==t.length?o.push(new Nr(i,t,`filter array for "${t[0]}" operator must have 2 elements`)):"object"!==n&&o.push(new Nr(`${i}[1]`,t[1],`object expected, ${n} found`))}return o}function pn(e,t){const i=e.key,r=e.style,n=e.styleSpec,o=e.value,s=e.objectKey,a=n[`${t}_${e.layerType}`];if(!a)return[];const l=s.match(/^(.*)-transition$/);if("paint"===t&&l&&a[l[1]]&&a[l[1]].transition)return Tn({key:i,value:o,valueSpec:n.transition,style:r,styleSpec:n});const c=e.valueSpec||a[s];if(!c)return[new Nr(i,o,`unknown property "${s}"`)];let h;if("string"===Sr(o)&&wr(c)&&!c.tokens&&(h=/^{([^}]+)}$/.exec(o)))return[new Nr(i,o,`"${s}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(h[1])} }\`.`)];const u=[];return"symbol"===e.layerType&&("text-field"===s&&r&&!r.glyphs&&u.push(new Nr(i,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===s&&Mr(We(o))&&"identity"===Xe(o.type)&&u.push(new Nr(i,o,'"text-font" does not support identity functions'))),u.concat(Tn({key:e.key,value:o,valueSpec:c,style:r,styleSpec:n,expressionContext:"property",propertyType:t,propertyKey:s}))}function dn(e){return pn(e,"paint")}function fn(e){return pn(e,"layout")}function mn(e){let t=[];const i=e.value,r=e.key,n=e.style,o=e.styleSpec;i.type||i.ref||t.push(new Nr(r,i,'either "type" or "ref" is required'));let s=Xe(i.type);const a=Xe(i.ref);if(i.id){const o=Xe(i.id);for(let s=0;s<e.arrayIndex;s++){const e=n.layers[s];Xe(e.id)===o&&t.push(new Nr(r,i.id,`duplicate layer id "${i.id}", previously used at line ${e.id.__line__}`))}}if("ref"in i){let e;["type","source","source-layer","filter","layout"].forEach((e=>{e in i&&t.push(new Nr(r,i[e],`"${e}" is prohibited for ref layers`))})),n.layers.forEach((t=>{Xe(t.id)===a&&(e=t)})),e?e.ref?t.push(new Nr(r,i.ref,"ref cannot reference another ref layer")):s=Xe(e.type):"string"==typeof a&&t.push(new Nr(r,i.ref,`ref layer "${a}" not found`))}else if("background"!==s&&"sky"!==s)if(i.source){const e=n.sources&&n.sources[i.source],o=e&&Xe(e.type);e?"vector"===o&&"raster"===s?t.push(new Nr(r,i.source,`layer "${i.id}" requires a raster source`)):"raster"===o&&"raster"!==s?t.push(new Nr(r,i.source,`layer "${i.id}" requires a vector source`)):"vector"!==o||i["source-layer"]?"raster-dem"===o&&"hillshade"!==s?t.push(new Nr(r,i.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!i.paint||!i.paint["line-gradient"]&&!i.paint["line-trim-offset"]||"geojson"===o&&e.lineMetrics||t.push(new Nr(r,i,`layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Nr(r,i,`layer "${i.id}" must specify a "source-layer"`)):t.push(new Nr(r,i.source,`source "${i.source}" not found`))}else t.push(new Nr(r,i,'missing required property "source"'));return t=t.concat(Gr({key:r,value:i,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Tn({key:`${r}.type`,value:i.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:i,objectKey:"type"}),filter:e=>hn(qe({layerType:s},e)),layout:e=>Gr({layer:i,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>fn(qe({layerType:s},e))}}),paint:e=>Gr({layer:i,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>dn(qe({layerType:s},e))}})}})),t}function _n(e){const t=e.value,i=e.key,r=Sr(t);return"string"!==r?[new Nr(i,t,`string expected, ${r} found`)]:[]}const gn={promoteId:function({key:e,value:t}){if("string"===Sr(t))return _n({key:e,value:t});{const i=[];for(const r in t)i.push(..._n({key:`${e}.${r}`,value:t[r]}));return i}}};function yn(e){const t=e.value,i=e.key,r=e.styleSpec,n=e.style;if(!t.type)return[new Nr(i,t,'"type" is required')];const o=Xe(t.type);let s;switch(o){case"vector":case"raster":case"raster-dem":return s=Gr({key:i,value:t,valueSpec:r[`source_${o.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:gn}),s;case"geojson":if(s=Gr({key:i,value:t,valueSpec:r.source_geojson,style:n,styleSpec:r,objectElementValidators:gn}),t.cluster)for(const e in t.clusterProperties){const[r,n]=t.clusterProperties[e],o="string"==typeof r?[r,["accumulated"],["get",e]]:r;s.push(...Xr({key:`${i}.${e}.map`,value:n,expressionContext:"cluster-map"})),s.push(...Xr({key:`${i}.${e}.reduce`,value:o,expressionContext:"cluster-reduce"}))}return s;case"video":return Gr({key:i,value:t,valueSpec:r.source_video,style:n,styleSpec:r});case"image":return Gr({key:i,value:t,valueSpec:r.source_image,style:n,styleSpec:r});case"canvas":return[new Nr(i,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Hr({key:`${i}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,styleSpec:r})}}function xn(e){const t=e.value,i=e.styleSpec,r=i.light,n=e.style;let o=[];const s=Sr(t);if(void 0===t)return o;if("object"!==s)return o=o.concat([new Nr("light",t,`object expected, ${s} found`)]),o;for(const e in t){const s=e.match(/^(.*)-transition$/);o=o.concat(s&&r[s[1]]&&r[s[1]].transition?Tn({key:e,value:t[e],valueSpec:i.transition,style:n,styleSpec:i}):r[e]?Tn({key:e,value:t[e],valueSpec:r[e],style:n,styleSpec:i}):[new Nr(e,t[e],`unknown property "${e}"`)])}return o}function vn(e){const t=e.value,i=e.key,r=e.style,n=e.styleSpec,o=n.terrain;let s=[];const a=Sr(t);if(void 0===t)return s;if("object"!==a)return s=s.concat([new Nr("terrain",t,`object expected, ${a} found`)]),s;for(const e in t){const i=e.match(/^(.*)-transition$/);s=s.concat(i&&o[i[1]]&&o[i[1]].transition?Tn({key:e,value:t[e],valueSpec:n.transition,style:r,styleSpec:n}):o[e]?Tn({key:e,value:t[e],valueSpec:o[e],style:r,styleSpec:n}):[new Nr(e,t[e],`unknown property "${e}"`)])}if(t.source){const e=r.sources&&r.sources[t.source],n=e&&Xe(e.type);e?"raster-dem"!==n&&s.push(new Nr(i,t.source,`terrain cannot be used with a source of type ${String(n)}, it only be used with a "raster-dem" source type`)):s.push(new Nr(i,t.source,`source "${t.source}" not found`))}else s.push(new Nr(i,t,'terrain is missing required property "source"'));return s}function bn(e){const t=e.value,i=e.style,r=e.styleSpec,n=r.fog;let o=[];const s=Sr(t);if(void 0===t)return o;if("object"!==s)return o=o.concat([new Nr("fog",t,`object expected, ${s} found`)]),o;for(const e in t){const s=e.match(/^(.*)-transition$/);o=o.concat(s&&n[s[1]]&&n[s[1]].transition?Tn({key:e,value:t[e],valueSpec:r.transition,style:i,styleSpec:r}):n[e]?Tn({key:e,value:t[e],valueSpec:n[e],style:i,styleSpec:r}):[new Nr(e,t[e],`unknown property "${e}"`)])}return o}const wn={"*":()=>[],array:Zr,boolean:function(e){const t=e.value,i=e.key,r=Sr(t);return"boolean"!==r?[new Nr(i,t,`boolean expected, ${r} found`)]:[]},number:$r,color:function(e){const t=e.key,i=e.value,r=Sr(i);return"string"!==r?[new Nr(t,i,`color expected, ${r} found`)]:null===_t.parseCSSColor(i)?[new Nr(t,i,`color expected, "${i}" found`)]:[]},"enum":Hr,filter:hn,"function":qr,layer:mn,object:Gr,source:yn,light:xn,terrain:vn,fog:bn,string:_n,formatted:function(e){return 0===_n(e).length?[]:Xr(e)},resolvedImage:function(e){return 0===_n(e).length?[]:Xr(e)},projection:function(e){const t=e.value,i=e.styleSpec,r=i.projection,n=e.style;let o=[];const s=Sr(t);if("object"===s)for(const e in t)o=o.concat(Tn({key:e,value:t[e],valueSpec:r[e],style:n,styleSpec:i}));else"string"!==s&&(o=o.concat([new Nr("projection",t,`object or string expected, ${s} found`)]));return o}};function Tn(e){const t=e.value,i=e.valueSpec,r=e.styleSpec;return i.expression&&Mr(Xe(t))?qr(e):i.expression&&Br(We(t))?Xr(e):i.type&&wn[i.type]?wn[i.type](e):Gr(qe({},e,{valueSpec:i.type?r[i.type]:i}))}function En(e){const t=e.value,i=e.key,r=_n(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new Nr(i,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Nr(i,t,'"glyphs" url must include a "{range}" token'))),r}function Sn(e,t=$e){return An(Tn({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:En,"*":()=>[]}}))}const Mn=e=>An(dn(e)),In=e=>An(fn(e));function An(e){return e.slice().sort(((e,t)=>e.line&&t.line?e.line-t.line:0))}function Cn(e,t){let i=!1;if(t&&t.length)for(const r of t)e.fire(new Ge(new Error(r.message))),i=!0;return i}var zn=Pn;function Pn(e,t,i){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var n=new Int32Array(this.arrayBuffer);e=n[0],this.d=(t=n[1])+2*(i=n[2]);for(var o=0;o<this.d*this.d;o++){var s=n[3+o],a=n[3+o+1];r.push(s===a?null:n.subarray(s,a))}var l=n[3+r.length+1];this.keys=n.subarray(n[3+r.length],l),this.bboxes=n.subarray(l),this.insert=this._insertReadonly}else{this.d=t+2*i;for(var c=0;c<this.d*this.d;c++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=i,this.scale=t/e,this.uid=0;var h=i/t*e;this.min=-h,this.max=e+h}Pn.prototype.insert=function(e,t,i,r,n){this._forEachCell(t,i,r,n,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(i),this.bboxes.push(r),this.bboxes.push(n)},Pn.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Pn.prototype._insertCell=function(e,t,i,r,n,o){this.cells[n].push(o)},Pn.prototype.query=function(e,t,i,r,n){var o=this.min,s=this.max;if(e<=o&&t<=o&&s<=i&&s<=r&&!n)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(e,t,i,r,this._queryCell,a,{},n),a},Pn.prototype._queryCell=function(e,t,i,r,n,o,s,a){var l=this.cells[n];if(null!==l)for(var c=this.keys,h=this.bboxes,u=0;u<l.length;u++){var p=l[u];if(void 0===s[p]){var d=4*p;(a?a(h[d+0],h[d+1],h[d+2],h[d+3]):e<=h[d+2]&&t<=h[d+3]&&i>=h[d+0]&&r>=h[d+1])?(s[p]=!0,o.push(c[p])):s[p]=!1}}},Pn.prototype._forEachCell=function(e,t,i,r,n,o,s,a){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),h=this._convertToCellCoord(i),u=this._convertToCellCoord(r),p=l;p<=h;p++)for(var d=c;d<=u;d++){var f=this.d*d+p;if((!a||a(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&n.call(this,e,t,i,r,f,o,s,a))return}},Pn.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Pn.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Pn.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,i=0,r=0;r<this.cells.length;r++)i+=this.cells[r].length;var n=new Int32Array(t+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;for(var o=t,s=0;s<e.length;s++){var a=e[s];n[3+s]=o,n.set(a,o),o+=a.length}return n[3+e.length]=o,n.set(this.keys,o),n[3+e.length+1]=o+=this.keys.length,n.set(this.bboxes,o),o+=this.bboxes.length,n.buffer};const kn={};function Dn(e,t,i={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),kn[t]={klass:e,omit:i.omit||[]}}Dn(Object,"Object"),zn.serialize=function(e,t){const i=e.toArrayBuffer();return t&&t.push(i),{buffer:i}},zn.deserialize=function(e){return new zn(e.buffer)},Object.defineProperty(zn,"name",{value:"Grid"}),Dn(zn,"Grid"),Dn(yt,"Color"),Dn(Error,"Error"),Dn(Ce,"AJAXError"),Dn(wt,"ResolvedImage"),Dn(Vr,"StylePropertyFunction"),Dn(Lr,"StyleExpression",{omit:["_evaluator"]}),Dn(Or,"ZoomDependentExpression"),Dn(Fr,"ZoomConstantExpression"),Dn(jt,"CompoundExpression",{omit:["_evaluate"]});for(const e in xr)kn[xr[e]._classRegistryKey]||Dn(xr[e],`Expression${e}`);function Ln(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Bn(e){return t.ImageBitmap&&e instanceof t.ImageBitmap}function Rn(e,i){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(Ln(e)||Bn(e))return i&&i.push(e),e;if(ArrayBuffer.isView(e)){const t=e;return i&&i.push(t.buffer),t}if(e instanceof t.ImageData)return i&&i.push(e.data.buffer),e;if(Array.isArray(e)){const t=[];for(const r of e)t.push(Rn(r,i));return t}if("object"==typeof e){const t=e.constructor,r=t._classRegistryKey;if(!r)throw new Error(`can't serialize object of unregistered class ${r}`);const n=t.serialize?t.serialize(e,i):{};if(!t.serialize){for(const t in e)e.hasOwnProperty(t)&&(kn[r].omit.indexOf(t)>=0||(n[t]=Rn(e[t],i)));e instanceof Error&&(n.message=e.message)}if(n.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(n.$name=r),n}throw new Error("can't serialize object of type "+typeof e)}function Fn(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||Ln(e)||Bn(e)||ArrayBuffer.isView(e)||e instanceof t.ImageData)return e;if(Array.isArray(e))return e.map(Fn);if("object"==typeof e){const t=e.$name||"Object",{klass:i}=kn[t];if(!i)throw new Error(`can't deserialize unregistered class ${t}`);if(i.deserialize)return i.deserialize(e);const r=Object.create(i.prototype);for(const t of Object.keys(e))"$name"!==t&&(r[t]=Fn(e[t]));return r}throw new Error("can't deserialize object of type "+typeof e)}class On{constructor(){this.first=!0}update(e,t){const i=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=i,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=i,!0):(this.lastFloorZoom>i?(this.lastIntegerZoom=i+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<i&&(this.lastIntegerZoom=i,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=i,!0))}}const Un=e=>e>=1536&&e<=1791,Vn=e=>e>=1872&&e<=1919,jn=e=>e>=2208&&e<=2303,Nn=e=>e>=11904&&e<=12031,Gn=e=>e>=12032&&e<=12255,Zn=e=>e>=12272&&e<=12287,$n=e=>e>=12288&&e<=12351,qn=e=>e>=12352&&e<=12447,Xn=e=>e>=12448&&e<=12543,Wn=e=>e>=12544&&e<=12591,Hn=e=>e>=12704&&e<=12735,Yn=e=>e>=12736&&e<=12783,Kn=e=>e>=12784&&e<=12799,Jn=e=>e>=12800&&e<=13055,Qn=e=>e>=13056&&e<=13311,eo=e=>e>=13312&&e<=19903,to=e=>e>=19968&&e<=40959,io=e=>e>=40960&&e<=42127,ro=e=>e>=42128&&e<=42191,no=e=>e>=44032&&e<=55215,oo=e=>e>=63744&&e<=64255,so=e=>e>=64336&&e<=65023,ao=e=>e>=65040&&e<=65055,lo=e=>e>=65072&&e<=65103,co=e=>e>=65104&&e<=65135,ho=e=>e>=65136&&e<=65279,uo=e=>e>=65280&&e<=65519;function po(e){for(const t of e)if(_o(t.charCodeAt(0)))return!0;return!1}function fo(e){for(const t of e)if(!mo(t.charCodeAt(0)))return!1;return!0}function mo(e){return!(Un(e)||Vn(e)||jn(e)||so(e)||ho(e))}function _o(e){return!(746!==e&&747!==e&&(e<4352||!(Hn(e)||Wn(e)||lo(e)&&!(e>=65097&&e<=65103)||oo(e)||Qn(e)||Nn(e)||Yn(e)||!(!$n(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||eo(e)||to(e)||Jn(e)||(e=>e>=12592&&e<=12687)(e)||(e=>e>=43360&&e<=43391)(e)||(e=>e>=55216&&e<=55295)(e)||(e=>e>=4352&&e<=4607)(e)||no(e)||qn(e)||Zn(e)||(e=>e>=12688&&e<=12703)(e)||Gn(e)||Kn(e)||Xn(e)&&12540!==e||!(!uo(e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!co(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||(e=>e>=5120&&e<=5759)(e)||(e=>e>=6320&&e<=6399)(e)||ao(e)||(e=>e>=19904&&e<=19967)(e)||io(e)||ro(e))))}function go(e){return!(_o(e)||function(e){return!!((e=>e>=128&&e<=255)(e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||(e=>e>=8192&&e<=8303)(e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||(e=>e>=8448&&e<=8527)(e)||(e=>e>=8528&&e<=8591)(e)||(e=>e>=8960&&e<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||(e=>e>=9216&&e<=9279)(e)&&9251!==e||(e=>e>=9280&&e<=9311)(e)||(e=>e>=9312&&e<=9471)(e)||(e=>e>=9632&&e<=9727)(e)||(e=>e>=9728&&e<=9983)(e)&&!(e>=9754&&e<=9759)||(e=>e>=11008&&e<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||$n(e)||Xn(e)||(e=>e>=57344&&e<=63743)(e)||lo(e)||co(e)||uo(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function yo(e){return e>=1424&&e<=2303||so(e)||ho(e)}function xo(e,t){return!(!t&&yo(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||(e=>e>=6016&&e<=6143)(e))}function vo(e){for(const t of e)if(yo(t.charCodeAt(0)))return!0;return!1}const bo="deferred",wo="loading",To="loaded";let Eo=null,So="unavailable",Mo=null;const Io=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(So="error"),Eo&&Eo(e)};function Ao(){Co.fire(new Ne("pluginStateChange",{pluginStatus:So,pluginURL:Mo}))}const Co=new Ze,zo=function(){return So},Po=function(){if(So!==bo||!Mo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");So=wo,Ao(),Mo&&ke({url:Mo},(e=>{e?Io(e):(So=To,Ao())}))},ko={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>So===To||null!=ko.applyArabicShaping,isLoading:()=>So===wo,setState(e){So=e.pluginStatus,Mo=e.pluginURL},isParsed:()=>null!=ko.applyArabicShaping&&null!=ko.processBidirectionalText&&null!=ko.processStyledBidirectionalText,getPluginURL:()=>Mo};class Do{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition,this.pitch=t.pitch):(this.now=0,this.fadeDuration=0,this.zoomHistory=new On,this.transition={},this.pitch=0)}isSupportedScript(e){return function(e,t){for(const i of e)if(!xo(i.charCodeAt(0),t))return!1;return!0}(e,ko.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,t=e-Math.floor(e),i=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*i}:{fromScale:.5,toScale:1,t:1-(1-i)*t}}}class Lo{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(Mr(e))return new Vr(e,t);if(Br(e)){const i=Ur(e,t);if("error"===i.result)throw new Error(i.value.map((e=>`${e.key}: ${e.message}`)).join(", "));return i.value}{let i=e;return"string"==typeof e&&"color"===t.type&&(i=yt.parse(e)),{kind:"constant",evaluate:()=>i}}}(void 0===t?e.specification["default"]:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,i){return this.property.possiblyEvaluate(this,e,t,i)}}class Bo{constructor(e){this.property=e,this.value=new Lo(e,void 0)}transitioned(e,t){return new Fo(this.property,this.value,t,x({},e.transition,this.transition),e.now)}untransitioned(){return new Fo(this.property,this.value,null,{},0)}}class Ro{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return C(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Bo(this._values[e].property)),this._values[e].value=new Lo(this._values[e].property,null===t?void 0:C(t))}getTransition(e){return C(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Bo(this._values[e].property)),this._values[e].transition=C(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i);const r=this.getTransition(t);void 0!==r&&(e[`${t}-transition`]=r)}return e}transitioned(e,t){const i=new Oo(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].transitioned(e,t._values[r]);return i}untransitioned(){const e=new Oo(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class Fo{constructor(e,t,i,r,n){const o=r.delay||0,s=r.duration||0;n=n||0,this.property=e,this.value=t,this.begin=n+o,this.end=this.begin+s,e.specification.transition&&(r.delay||r.duration)&&(this.prior=i)}possiblyEvaluate(e,t,i){const r=e.now||0,n=this.value.possiblyEvaluate(e,t,i),o=this.prior;if(o){if(r>this.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(r<this.begin)return o.possiblyEvaluate(e,t,i);{const s=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,i),n,u(s))}}return n}}class Oo{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,i){const r=new jo(this._properties);for(const n of Object.keys(this._values))r._values[n]=this._values[n].possiblyEvaluate(e,t,i);return r}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Uo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}getValue(e){return C(this._values[e].value)}setValue(e,t){this._values[e]=new Lo(this._values[e].property,null===t?void 0:C(t))}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i)}return e}possiblyEvaluate(e,t,i){const r=new jo(this._properties);for(const n of Object.keys(this._values))r._values[n]=this._values[n].possiblyEvaluate(e,t,i);return r}}class Vo{constructor(e,t,i){this.property=e,this.value=t,this.parameters=i}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,i,r){return this.property.evaluate(this.value,this.parameters,e,t,i,r)}}class jo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class No{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,i){const r=vi[this.specification.type];return r?r(e,t,i):e}}class Go{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,i,r){return new Vo(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},i,r)}:e.expression,t)}interpolate(e,t,i){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Vo(this,{kind:"constant",value:void 0},e.parameters);const r=vi[this.specification.type];return r?new Vo(this,{kind:"constant",value:r(e.value.value,t.value.value,i)},e.parameters):e}evaluate(e,t,i,r,n,o){return"constant"===e.kind?e.value:e.evaluate(t,i,r,n,o)}}class Zo extends Go{possiblyEvaluate(e,t,i,r){if(void 0===e.value)return new Vo(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){const n=e.expression.evaluate(t,null,{},i,r),o="resolvedImage"===e.property.specification.type&&"string"!=typeof n?n.name:n,s=this._calculate(o,o,o,t);return new Vo(this,{kind:"constant",value:s},t)}if("camera"===e.expression.kind){const i=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new Vo(this,{kind:"constant",value:i},t)}return new Vo(this,e.expression,t)}evaluate(e,t,i,r,n,o){if("source"===e.kind){const s=e.evaluate(t,i,r,n,o);return this._calculate(s,s,s,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},i,r),e.evaluate({zoom:Math.floor(t.zoom)},i,r),e.evaluate({zoom:Math.floor(t.zoom)+1},i,r),t):e.value}_calculate(e,t,i,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t,other:i}:{from:i,to:t,other:e}}interpolate(e){return e}}class $o{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,r){if(void 0!==e.value){if("constant"===e.expression.kind){const n=e.expression.evaluate(t,null,{},i,r);return this._calculate(n,n,n,t)}return this._calculate(e.expression.evaluate(new Do(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Do(Math.floor(t.zoom),t)),e.expression.evaluate(new Do(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,i,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:i,to:t}}interpolate(e){return e}}class qo{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,r){return!!e.expression.evaluate(t,null,{},i,r)}interpolate(){return!1}}class Xo{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new Do(0,{});for(const i in e){const r=e[i];r.specification.overridable&&this.overridableProperties.push(i);const n=this.defaultPropertyValues[i]=new Lo(r,void 0),o=this.defaultTransitionablePropertyValues[i]=new Bo(r);this.defaultTransitioningPropertyValues[i]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=n.possiblyEvaluate(t)}}}function Wo(e,t){return 256*(e=f(Math.floor(e),0,255))+f(Math.floor(t),0,255)}Dn(Go,"DataDrivenProperty"),Dn(No,"DataConstantProperty"),Dn(Zo,"CrossFadedDataDrivenProperty"),Dn($o,"CrossFadedProperty"),Dn(qo,"ColorRampProperty");const Ho={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Yo{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Ko{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Jo(e,t=1){let i=0,r=0;return{members:e.map((e=>{const n=Ho[e.type].BYTES_PER_ELEMENT,o=i=Qo(i,Math.max(t,n)),s=e.components||1;return r=Math.max(r,n),i+=n*s,{name:e.name,type:e.type,components:s,offset:o}})),size:Qo(i,Math.max(r,t)),alignment:t}}function Qo(e,t){return Math.ceil(e/t)*t}class es extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const r=2*e;return this.int16[r+0]=t,this.int16[r+1]=i,e}}es.prototype.bytesPerElement=4,Dn(es,"StructArrayLayout2i4");class ts extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=3*e;return this.int16[n+0]=t,this.int16[n+1]=i,this.int16[n+2]=r,e}}ts.prototype.bytesPerElement=6,Dn(ts,"StructArrayLayout3i6");class is extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.int16[o+2]=r,this.int16[o+3]=n,e}}is.prototype.bytesPerElement=8,Dn(is,"StructArrayLayout4i8");class rs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r,n,o,s)}emplace(e,t,i,r,n,o,s,a){const l=6*e,c=12*e,h=3*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.uint8[c+4]=r,this.uint8[c+5]=n,this.uint8[c+6]=o,this.uint8[c+7]=s,this.float32[h+2]=a,e}}rs.prototype.bytesPerElement=12,Dn(rs,"StructArrayLayout2i4ub1f12");class ns extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=i,this.float32[o+2]=r,this.float32[o+3]=n,e}}ns.prototype.bytesPerElement=16,Dn(ns,"StructArrayLayout4f16");class os extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c){const h=this.length;return this.resize(h+1),this.emplace(h,e,t,i,r,n,o,s,a,l,c)}emplace(e,t,i,r,n,o,s,a,l,c,h){const u=10*e;return this.uint16[u+0]=t,this.uint16[u+1]=i,this.uint16[u+2]=r,this.uint16[u+3]=n,this.uint16[u+4]=o,this.uint16[u+5]=s,this.uint16[u+6]=a,this.uint16[u+7]=l,this.uint16[u+8]=c,this.uint16[u+9]=h,e}}os.prototype.bytesPerElement=20,Dn(os,"StructArrayLayout10ui20");class ss extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a){const l=this.length;return this.resize(l+1),this.emplace(l,e,t,i,r,n,o,s,a)}emplace(e,t,i,r,n,o,s,a,l){const c=8*e;return this.uint16[c+0]=t,this.uint16[c+1]=i,this.uint16[c+2]=r,this.uint16[c+3]=n,this.uint16[c+4]=o,this.uint16[c+5]=s,this.uint16[c+6]=a,this.uint16[c+7]=l,e}}ss.prototype.bytesPerElement=16,Dn(ss,"StructArrayLayout8ui16");class as extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,r,n,o)}emplace(e,t,i,r,n,o,s){const a=6*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=r,this.int16[a+3]=n,this.int16[a+4]=o,this.int16[a+5]=s,e}}as.prototype.bytesPerElement=12,Dn(as,"StructArrayLayout6i12");class ls extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h,u){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,i,r,n,o,s,a,l,c,h,u)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,p){const d=12*e;return this.int16[d+0]=t,this.int16[d+1]=i,this.int16[d+2]=r,this.int16[d+3]=n,this.uint16[d+4]=o,this.uint16[d+5]=s,this.uint16[d+6]=a,this.uint16[d+7]=l,this.int16[d+8]=c,this.int16[d+9]=h,this.int16[d+10]=u,this.int16[d+11]=p,e}}ls.prototype.bytesPerElement=24,Dn(ls,"StructArrayLayout4i4ui4i24");class cs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,r,n,o)}emplace(e,t,i,r,n,o,s){const a=10*e,l=5*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=r,this.float32[l+2]=n,this.float32[l+3]=o,this.float32[l+4]=s,e}}cs.prototype.bytesPerElement=20,Dn(cs,"StructArrayLayout3i3f20");class hs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}hs.prototype.bytesPerElement=4,Dn(hs,"StructArrayLayout1ul4");class us extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h,u,p){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,i,r,n,o,s,a,l,c,h,u,p)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,p,d){const f=20*e,m=10*e;return this.int16[f+0]=t,this.int16[f+1]=i,this.int16[f+2]=r,this.int16[f+3]=n,this.int16[f+4]=o,this.float32[m+3]=s,this.float32[m+4]=a,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[f+14]=h,this.uint32[m+8]=u,this.uint16[f+18]=p,this.uint16[f+19]=d,e}}us.prototype.bytesPerElement=40,Dn(us,"StructArrayLayout5i4f1i1ul2ui40");class ps extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r,n,o,s)}emplace(e,t,i,r,n,o,s,a){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.int16[l+2]=r,this.int16[l+4]=n,this.int16[l+5]=o,this.int16[l+6]=s,this.int16[l+7]=a,e}}ps.prototype.bytesPerElement=16,Dn(ps,"StructArrayLayout3i2i2i16");class ds extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,r,n)}emplace(e,t,i,r,n,o){const s=4*e,a=8*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=r,this.int16[a+6]=n,this.int16[a+7]=o,e}}ds.prototype.bytesPerElement=16,Dn(ds,"StructArrayLayout2f1f2i16");class fs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=12*e,s=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=i,this.float32[s+1]=r,this.float32[s+2]=n,e}}fs.prototype.bytesPerElement=12,Dn(fs,"StructArrayLayout2ub2f12");class ms extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=3*e;return this.float32[n+0]=t,this.float32[n+1]=i,this.float32[n+2]=r,e}}ms.prototype.bytesPerElement=12,Dn(ms,"StructArrayLayout3f12");class _s extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=3*e;return this.uint16[n+0]=t,this.uint16[n+1]=i,this.uint16[n+2]=r,e}}_s.prototype.bytesPerElement=6,Dn(_s,"StructArrayLayout3ui6");class gs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x,v){const b=this.length;return this.resize(b+1),this.emplace(b,e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x,v)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x,v,b){const w=30*e,T=15*e,E=60*e;return this.int16[w+0]=t,this.int16[w+1]=i,this.int16[w+2]=r,this.float32[T+2]=n,this.float32[T+3]=o,this.uint16[w+8]=s,this.uint16[w+9]=a,this.uint32[T+5]=l,this.uint32[T+6]=c,this.uint32[T+7]=h,this.uint16[w+16]=u,this.uint16[w+17]=p,this.uint16[w+18]=d,this.float32[T+10]=f,this.float32[T+11]=m,this.uint8[E+48]=_,this.uint8[E+49]=g,this.uint8[E+50]=y,this.uint32[T+13]=x,this.int16[w+28]=v,this.uint8[E+58]=b,e}}gs.prototype.bytesPerElement=60,Dn(gs,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class ys extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x,v,b,w,T,E,S,M,I,A,C){const z=this.length;return this.resize(z+1),this.emplace(z,e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x,v,b,w,T,E,S,M,I,A,C)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x,v,b,w,T,E,S,M,I,A,C,z){const P=38*e,k=19*e;return this.int16[P+0]=t,this.int16[P+1]=i,this.int16[P+2]=r,this.float32[k+2]=n,this.float32[k+3]=o,this.int16[P+8]=s,this.int16[P+9]=a,this.int16[P+10]=l,this.int16[P+11]=c,this.int16[P+12]=h,this.int16[P+13]=u,this.uint16[P+14]=p,this.uint16[P+15]=d,this.uint16[P+16]=f,this.uint16[P+17]=m,this.uint16[P+18]=_,this.uint16[P+19]=g,this.uint16[P+20]=y,this.uint16[P+21]=x,this.uint16[P+22]=v,this.uint16[P+23]=b,this.uint16[P+24]=w,this.uint16[P+25]=T,this.uint16[P+26]=E,this.uint16[P+27]=S,this.uint16[P+28]=M,this.uint32[k+15]=I,this.float32[k+16]=A,this.float32[k+17]=C,this.float32[k+18]=z,e}}ys.prototype.bytesPerElement=76,Dn(ys,"StructArrayLayout3i2f6i15ui1ul3f76");class xs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}xs.prototype.bytesPerElement=4,Dn(xs,"StructArrayLayout1f4");class vs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,r,n)}emplace(e,t,i,r,n,o){const s=5*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=r,this.float32[s+3]=n,this.float32[s+4]=o,e}}vs.prototype.bytesPerElement=20,Dn(vs,"StructArrayLayout5f20");class bs extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=6*e;return this.uint32[3*e+0]=t,this.uint16[o+2]=i,this.uint16[o+3]=r,this.uint16[o+4]=n,e}}bs.prototype.bytesPerElement=12,Dn(bs,"StructArrayLayout1ul3ui12");class ws extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=i,e}}ws.prototype.bytesPerElement=4,Dn(ws,"StructArrayLayout2ui4");class Ts extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}Ts.prototype.bytesPerElement=2,Dn(Ts,"StructArrayLayout1ui2");class Es extends Ko{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const r=2*e;return this.float32[r+0]=t,this.float32[r+1]=i,e}}Es.prototype.bytesPerElement=8,Dn(Es,"StructArrayLayout2f8");class Ss extends Yo{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}}Ss.prototype.size=12;class Ms extends as{get(e){return new Ss(this,e)}}Dn(Ms,"FillExtrusionExtArray");class Is extends Yo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Is.prototype.size=40;class As extends us{get(e){return new Is(this,e)}}Dn(As,"CollisionBoxArray");class Cs extends Yo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}Cs.prototype.size=60;class zs extends gs{get(e){return new Cs(this,e)}}Dn(zs,"PlacedSymbolArray");class Ps extends Yo{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(e){this._structArray.uint32[this._pos4+15]=e}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}Ps.prototype.size=76;class ks extends ys{get(e){return new Ps(this,e)}}Dn(ks,"SymbolInstanceArray");class Ds extends xs{getoffsetX(e){return this.float32[1*e+0]}}Dn(Ds,"GlyphOffsetArray");class Ls extends ts{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}Dn(Ls,"SymbolLineVertexArray");class Bs extends Yo{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Bs.prototype.size=12;class Rs extends bs{get(e){return new Bs(this,e)}}Dn(Rs,"FeatureIndexArray");class Fs extends Yo{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}Fs.prototype.size=4;class Os extends ws{get(e){return new Fs(this,e)}}Dn(Os,"FillExtrusionCentroidArray");class Us extends Yo{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}}Us.prototype.size=12;class Vs extends as{get(e){return new Us(this,e)}}Dn(Vs,"CircleGlobeExtArray");const js=Jo([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"}]),Ns=Jo([{name:"a_dash_to",components:4,type:"Uint16"},{name:"a_dash_from",components:4,type:"Uint16"}]);var Gs=mt((function(e){e.exports=function(e,t){var i,r,n,o,s,a,l,c;for(r=e.length-(i=3&e.length),n=t,s=3432918353,a=461845907,c=0;c<r;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,n=27492+(65535&(o=5*(65535&(n=(n^=l=(65535&(l=(l=(65535&l)*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:n^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<15|l>>>17))*a+(((l>>>16)*a&65535)<<16)&4294967295}return n^=e.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0}})),Zs=mt((function(e){e.exports=function(e,t){for(var i,r=e.length,n=t^r,o=0;r>=4;)i=1540483477*(65535&(i=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}})),$s=Gs,qs=Zs;$s.murmur3=Gs,$s.murmur2=qs;class Xs{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,i,r){this.ids.push(Ws(e)),this.positions.push(t,i,r)}getPositions(e){const t=Ws(e);let i=0,r=this.ids.length-1;for(;i<r;){const e=i+r>>1;this.ids[e]>=t?r=e:i=e+1}const n=[];for(;this.ids[i]===t;)n.push({index:this.positions[3*i],start:this.positions[3*i+1],end:this.positions[3*i+2]}),i++;return n}static serialize(e,t){const i=new Float64Array(e.ids),r=new Uint32Array(e.positions);return Hs(i,r,0,i.length-1),t&&t.push(i.buffer,r.buffer),{ids:i,positions:r}}static deserialize(e){const t=new Xs;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t}}function Ws(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:$s(String(e))}function Hs(e,t,i,r){for(;i<r;){const n=e[i+r>>1];let o=i-1,s=r+1;for(;;){do{o++}while(e[o]<n);do{s--}while(e[s]>n);if(o>=s)break;Ys(e,o,s),Ys(t,3*o,3*s),Ys(t,3*o+1,3*s+1),Ys(t,3*o+2,3*s+2)}s-i<r-s?(Hs(e,t,i,s),i=s+1):(Hs(e,t,s+1,r),r=s)}}function Ys(e,t,i){const r=e[t];e[t]=e[i],e[i]=r}Dn(Xs,"FeaturePositionMap");class Ks{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}}class Js extends Ks{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1f(this.location,i))}}class Qs extends Ks{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]&&i[3]===this.current[3]||(this.current=i,this.gl.uniform4f(this.location,i[0],i[1],i[2],i[3])))}}class ea extends Ks{constructor(e){super(e),this.current=yt.transparent}set(e,t,i){this.fetchUniformLocation(e,t)&&(i.r===this.current.r&&i.g===this.current.g&&i.b===this.current.b&&i.a===this.current.a||(this.current=i,this.gl.uniform4f(this.location,i.r,i.g,i.b,i.a)))}}const ta=new Float32Array(16),ia=new Float32Array(9),ra=new Float32Array(4);function na(e){return[Wo(255*e.r,255*e.g),Wo(255*e.b,255*e.a)]}class oa{constructor(e,t,i){this.value=e,this.uniformNames=t.map((e=>`u_${e}`)),this.type=i}setUniform(e,t,i,r,n){t.set(e,n,r.constantOr(this.value))}getBinding(e,t){return"color"===this.type?new ea(e):new Js(e)}}class sa{constructor(e,t){this.uniformNames=t.map((e=>`u_${e}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio||1,this.pixelRatioTo=e.pixelRatio||1,this.patternFrom=t.tl.concat(t.br),this.patternTo=e.tl.concat(e.br)}setUniform(e,t,i,r,n){const o="u_pattern_to"===n||"u_dash_to"===n?this.patternTo:"u_pattern_from"===n||"u_dash_from"===n?this.patternFrom:"u_pixel_ratio_to"===n?this.pixelRatioTo:"u_pixel_ratio_from"===n?this.pixelRatioFrom:null;o&&t.set(e,n,o)}getBinding(e,t){return"u_pattern_from"===t||"u_pattern_to"===t||"u_dash_from"===t||"u_dash_to"===t?new Qs(e):new Js(e)}}class aa{constructor(e,t,i,r){this.expression=e,this.type=i,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===i?2:1,offset:0}))),this.paintVertexArray=new r}populatePaintArray(e,t,i,r,n,o){const s=this.paintVertexArray.length,a=this.expression.evaluate(new Do(0),t,{},n,r,o);this.paintVertexArray.resize(e),this._setPaintValue(s,e,a)}updatePaintArray(e,t,i,r,n){const o=this.expression.evaluate({zoom:0},i,r,void 0,n);this._setPaintValue(e,t,o)}_setPaintValue(e,t,i){if("color"===this.type){const r=na(i);for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,r[0],r[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i);this.maxValue=Math.max(this.maxValue,Math.abs(i))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class la{constructor(e,t,i,r,n,o){this.expression=e,this.uniformNames=t.map((e=>`u_${e}_t`)),this.type=i,this.useIntegerZoom=r,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===i?4:2,offset:0}))),this.paintVertexArray=new o}populatePaintArray(e,t,i,r,n,o){const s=this.expression.evaluate(new Do(this.zoom),t,{},n,r,o),a=this.expression.evaluate(new Do(this.zoom+1),t,{},n,r,o),l=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(l,e,s,a)}updatePaintArray(e,t,i,r,n){const o=this.expression.evaluate({zoom:this.zoom},i,r,void 0,n),s=this.expression.evaluate({zoom:this.zoom+1},i,r,void 0,n);this._setPaintValue(e,t,o,s)}_setPaintValue(e,t,i,r){if("color"===this.type){const n=na(i),o=na(r);for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n[0],n[1],o[0],o[1])}else{for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i,r);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(r))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,i,r,n){const o=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,s=f(this.expression.interpolationFactor(o,this.zoom,this.zoom+1),0,1);t.set(e,n,s)}getBinding(e,t){return new Js(e)}}class ca{constructor(e,t,i,r,n,o,s){this.expression=e,this.type=i,this.useIntegerZoom=r,this.zoom=n,this.layerId=s,this.paintVertexAttributes=("array"===i?Ns:js).members;for(let e=0;e<t.length;++e);this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o}populatePaintArray(e,t,i){const r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],i)}updatePaintArray(e,t,i,r,n,o){this._setPaintValues(e,t,i.patterns&&i.patterns[this.layerId],o)}_setPaintValues(e,t,i,r){if(!r||!i)return;const{min:n,mid:o,max:s}=i,a=r[n],l=r[o],c=r[s];if(a&&l&&c)for(let i=e;i<t;i++)this._setPaintValue(this.zoomInPaintVertexArray,i,l,a),this._setPaintValue(this.zoomOutPaintVertexArray,i,l,c)}_setPaintValue(e,t,i,r){e.emplace(t,i.tl[0],i.tl[1],i.br[0],i.br[1],r.tl[0],r.tl[1],r.br[0],r.br[1],i.pixelRatio,r.pixelRatio)}upload(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class ha{constructor(e,t,i=()=>!0){this.binders={},this._buffers=[];const r=[];for(const n in e.paint._values){if(!i(n))continue;const o=e.paint.get(n);if(!(o instanceof Vo&&wr(o.property.specification)))continue;const s=da(n,e.type),a=o.value,l=o.property.specification.type,c=o.property.useIntegerZoom,h=o.property.specification["property-type"],u="cross-faded"===h||"cross-faded-data-driven"===h,p="line-dasharray"===String(n)&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==a.kind||p)if("source"===a.kind||p||u){const i=_a(n,l,"source");this.binders[n]=u?new ca(a,s,l,c,t,i,e.id):new aa(a,s,l,i),r.push(`/a_${n}`)}else{const e=_a(n,l,"composite");this.binders[n]=new la(a,s,l,c,t,e),r.push(`/z_${n}`)}else this.binders[n]=u?new sa(a.value,s):new oa(a.value,s,l),r.push(`/u_${n}`)}this.cacheKey=r.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof aa||t instanceof la?t.maxValue:0}populatePaintArrays(e,t,i,r,n,o){for(const s in this.binders){const a=this.binders[s];(a instanceof aa||a instanceof la||a instanceof ca)&&a.populatePaintArray(e,t,i,r,n,o)}}setConstantPatternPositions(e,t){for(const i in this.binders){const r=this.binders[i];r instanceof sa&&r.setConstantPatternPositions(e,t)}}updatePaintArrays(e,t,i,r,n,o){let s=!1;for(const a in e){const l=t.getPositions(a);for(const t of l){const l=i.feature(t.index);for(const i in this.binders){const c=this.binders[i];if((c instanceof aa||c instanceof la||c instanceof ca)&&!0===c.expression.isStateDependent){const h=r.paint.get(i);c.expression=h.value,c.updatePaintArray(t.start,t.end,l,e[a],n,o),s=!0}}}}return s}defines(){const e=[];for(const t in this.binders){const i=this.binders[t];(i instanceof oa||i instanceof sa)&&e.push(...i.uniformNames.map((e=>`#define HAS_UNIFORM_${e}`)))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof aa||i instanceof la||i instanceof ca)for(let t=0;t<i.paintVertexAttributes.length;t++)e.push(i.paintVertexAttributes[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof oa||i instanceof sa||i instanceof la)for(const t of i.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const i in this.binders){const r=this.binders[i];if(r instanceof oa||r instanceof sa||r instanceof la)for(const n of r.uniformNames)t.push({name:n,property:i,binding:r.getBinding(e,n)})}return t}setUniforms(e,t,i,r,n){for(const{name:t,property:o,binding:s}of i)this.binders[o].setUniform(e,s,n,r.get(o),t)}updatePaintBuffers(e){this._buffers=[];for(const t in this.binders){const i=this.binders[t];if(e&&i instanceof ca){const t=2===e.fromScale?i.zoomInPaintVertexBuffer:i.zoomOutPaintVertexBuffer;t&&this._buffers.push(t)}else(i instanceof aa||i instanceof la)&&i.paintVertexBuffer&&this._buffers.push(i.paintVertexBuffer)}}upload(e){for(const t in this.binders){const i=this.binders[t];(i instanceof aa||i instanceof la||i instanceof ca)&&i.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof aa||t instanceof la||t instanceof ca)&&t.destroy()}}}class ua{constructor(e,t,i=()=>!0){this.programConfigurations={};for(const r of e)this.programConfigurations[r.id]=new ha(r,t,i);this.needsUpload=!1,this._featureMap=new Xs,this._bufferOffset=0}populatePaintArrays(e,t,i,r,n,o,s){for(const i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(e,t,r,n,o,s);void 0!==t.id&&this._featureMap.add(t.id,i,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,i,r,n){for(const o of i)this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(e,this._featureMap,t,o,r,n)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const pa={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"line-dasharray":["dash_to","dash_from"]};function da(e,t){return pa[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const fa={"line-pattern":{source:os,composite:os},"fill-pattern":{source:os,composite:os},"fill-extrusion-pattern":{source:os,composite:os},"line-dasharray":{source:ss,composite:ss}},ma={color:{source:Es,composite:ns},number:{source:xs,composite:Es}};function _a(e,t,i){const r=fa[e];return r&&r[i]||ma[t][i]}Dn(oa,"ConstantBinder"),Dn(sa,"CrossFadedConstantBinder"),Dn(aa,"SourceExpressionBinder"),Dn(ca,"CrossFadedCompositeBinder"),Dn(la,"CompositeExpressionBinder"),Dn(ha,"ProgramConfiguration",{omit:["_buffers"]}),Dn(ua,"ProgramConfigurationSet");const ga="-transition";class ya extends Ze{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new Uo(t.layout)),t.paint)){this._transitionablePaint=new Ro(t.paint);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new jo(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,i={}){null!=t&&this._validate(In,`layers.${this.id}.layout.${e}`,e,t,i)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return M(e,ga)?this._transitionablePaint.getTransition(e.slice(0,-ga.length)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,i={}){if(null!=t&&this._validate(Mn,`layers.${this.id}.paint.${e}`,e,t,i))return!1;if(M(e,ga))return this._transitionablePaint.setTransition(e.slice(0,-ga.length),t||void 0),!1;{const i=this._transitionablePaint._values[e],r="cross-faded-data-driven"===i.property.specification["property-type"],n=i.value.isDataDriven(),o=i.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);const s=this._transitionablePaint._values[e].value;return s.isDataDriven()||n||r||this._handleOverridablePaintPropertyUpdate(e,o,s)}}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getProgramConfiguration(e){return null}_handleOverridablePaintPropertyUpdate(e,t,i){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),A(e,((e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)))}_validate(e,t,i,r,n={}){return(!n||!1!==n.validate)&&Cn(this,e.call(Sn,{key:t,layerType:this.type,objectKey:i,value:r,styleSpec:$e,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Vo&&wr(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=Kr(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const xa=Jo([{name:"a_pos",components:2,type:"Int16"}],4),va=Jo([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class ba{constructor(e=[]){this.segments=e}prepareSegment(e,t,i,r){let n=this.segments[this.segments.length-1];return e>ba.MAX_VERTEX_ARRAY_LENGTH&&P(`Max vertices per segment is ${ba.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!n||n.vertexLength+e>ba.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==r)&&(n={vertexOffset:t.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},void 0!==r&&(n.sortKey=r),this.segments.push(n)),n}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,i,r){return new ba([{vertexOffset:e,primitiveOffset:t,vertexLength:i,primitiveLength:r,vaos:{},sortKey:0}])}}ba.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Dn(ba,"SegmentVector");var wa=8192;class Ta{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof Sa?new Sa(e.lng,e.lat):Sa.convert(e),this}setSouthWest(e){return this._sw=e instanceof Sa?new Sa(e.lng,e.lat):Sa.convert(e),this}extend(e){const t=this._sw,i=this._ne;let r,n;if(e instanceof Sa)r=e,n=e;else{if(!(e instanceof Ta))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Ta.convert(e)):this.extend(Sa.convert(e)):this;if(r=e._sw,n=e._ne,!r||!n)return this}return t||i?(t.lng=Math.min(r.lng,t.lng),t.lat=Math.min(r.lat,t.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new Sa(r.lng,r.lat),this._ne=new Sa(n.lng,n.lat)),this}getCenter(){return new Sa((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Sa(this.getWest(),this.getNorth())}getSouthEast(){return new Sa(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:i}=Sa.convert(e);let r=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(r=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=i&&i<=this._ne.lat&&r}static convert(e){return!e||e instanceof Ta?e:new Ta(e)}}const Ea=6371008.8;class Sa{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Sa(_(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,i=this.lat*t,r=e.lat*t,n=Math.sin(i)*Math.sin(r)+Math.cos(i)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return Ea*Math.acos(Math.min(n,1))}toBounds(e=0){const t=360*e/40075017,i=t/Math.cos(Math.PI/180*this.lat);return new Ta(new Sa(this.lng-i,this.lat-t),new Sa(this.lng+i,this.lat+t))}static convert(e){if(e instanceof Sa)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Sa(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Sa(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const Ma=2*Math.PI*Ea;function Ia(e){return Ma*Math.cos(e*Math.PI/180)}function Aa(e){return(180+e)/360}function Ca(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function za(e,t){return e/Ia(t)}function Pa(e){return 360*e-180}function ka(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function Da(e,t){return e*Ia(ka(t))}const La=85.051129;function Ba(e){return 1/Math.cos(e*Math.PI/180)}class Ra{constructor(e,t,i=0){this.x=+e,this.y=+t,this.z=+i}static fromLngLat(e,t=0){const i=Sa.convert(e);return new Ra(Aa(i.lng),Ca(i.lat),za(t,i.lat))}toLngLat(){return new Sa(Pa(this.x),ka(this.y))}toAltitude(){return Da(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Ma*Ba(ka(this.y))}}function Fa(e,t,i,r,o,s,a,l,c){const h=(t+r)/2,u=(i+o)/2,p=new n(h,u);l(p),function(e,t,i,r,n,o){const s=i-n,a=r-o;return Math.abs((r-t)*s-(i-e)*a)/Math.hypot(s,a)}(p.x,p.y,s.x,s.y,a.x,a.y)>=c?(Fa(e,t,i,h,u,s,p,l,c),Fa(e,h,u,r,o,p,a,l,c)):e.push(a)}function Oa(e,t,i){let r=e[0],n=r.x,o=r.y;t(r);const s=[r];for(let a=1;a<e.length;a++){const l=e[a],{x:c,y:h}=l;t(l),Fa(s,n,o,c,h,r,l,t,i),n=c,o=h,r=l}return s}function Ua(e,t,i,r,n){if(n(t,i)){const o=t.add(i).mult(.5);r(o),Ua(e,t,o,r,n),Ua(e,o,i,r,n)}else e.push(i)}function Va(e,t,i){let r=e[0];t(r);const n=[r];for(let o=1;o<e.length;o++){const s=e[o];t(s),Ua(n,r,s,t,i),r=s}return n}const ja=Math.pow(2,14)-1,Na=-ja-1;function Ga(e,t){const i=Math.round(e.x*t),r=Math.round(e.y*t);return e.x=f(i,Na,ja),e.y=f(r,Na,ja),(i<e.x||i>e.x+1||r<e.y||r>e.y+1)&&P("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function Za(e,t,i){const r=e.loadGeometry(),n=e.extent,o=wa/n;if(t&&i&&i.projection.isReprojectedInTileSpace){const o=1<<t.z,{scale:s,x:a,y:l,projection:c}=i,h=e=>{const i=Pa((t.x+e.x/n)/o),r=ka((t.y+e.y/n)/o),h=c.project(i,r);e.x=(h.x*s-a)*n,e.y=(h.y*s-l)*n};for(let t=0;t<r.length;t++)if(1!==e.type)r[t]=Oa(r[t],h,1);else{const e=[];for(const i of r[t])i.x<0||i.x>=n||i.y<0||i.y>=n||(h(i),e.push(i));r[t]=e}}for(const e of r)for(const t of e)Ga(t,o);return r}function $a(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Za(e):[]}}function qa(e,t,i,r,n){e.emplaceBack(2*t+(r+1)/2,2*i+(n+1)/2)}function Xa(e,t,i){const r=16384;e.emplaceBack(t.x,t.y,t.z,i[0]*r,i[1]*r,i[2]*r)}class Wa{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new es,this.indexArray=new _s,this.segments=new ba,this.programConfigurations=new ua(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,i,r){const n=this.layers[0],o=[];let s=null;"circle"===n.type&&(s=n.layout.get("circle-sort-key"));for(const{feature:t,id:n,index:a,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=$a(t,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),c,i))continue;const h=s?s.evaluate(c,{},i):void 0,u={id:n,properties:t.properties,type:t.type,sourceLayerIndex:l,index:a,geometry:e?c.geometry:Za(t,i,r),patterns:{},sortKey:h};o.push(u)}s&&o.sort(((e,t)=>e.sortKey-t.sortKey));let a=null;"globe"===r.projection.name&&(this.globeExtVertexArray=new Vs,a=r.projection);for(const r of o){const{geometry:n,index:o,sourceLayerIndex:s}=r,l=e[o].feature;this.addFeature(r,n,o,t.availableImages,i,a),t.featureIndex.insert(l,n,o,s,this.index)}}update(e,t,i,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,xa.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,va.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,t,i,r,n,o){for(const i of t)for(const t of i){const i=t.x,r=t.y;if(i<0||i>=wa||r<0||r>=wa)continue;if(o){const e=o.projectTilePoint(i,r,n),t=o.upVector(n,i,r),s=this.globeExtVertexArray;Xa(s,e,t),Xa(s,e,t),Xa(s,e,t),Xa(s,e,t)}const s=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),a=s.vertexLength;qa(this.layoutVertexArray,i,r,-1,-1),qa(this.layoutVertexArray,i,r,1,-1),qa(this.layoutVertexArray,i,r,1,1),qa(this.layoutVertexArray,i,r,-1,1),this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),s.vertexLength+=4,s.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,{},r,n)}}function Ha(e,t){for(let i=0;i<e.length;i++)if(nl(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(nl(e,t[i]))return!0;return!!Qa(e,t)}function Ya(e,t,i){return!!nl(e,t)||!!tl(t,e,i)}function Ka(e,t){if(1===e.length)return rl(t,e[0]);for(let i=0;i<t.length;i++){const r=t[i];for(let t=0;t<r.length;t++)if(nl(e,r[t]))return!0}for(let i=0;i<e.length;i++)if(rl(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(Qa(e,t[i]))return!0;return!1}function Ja(e,t,i){if(e.length>1){if(Qa(e,t))return!0;for(let r=0;r<t.length;r++)if(tl(t[r],e,i))return!0}for(let r=0;r<e.length;r++)if(tl(e[r],t,i))return!0;return!1}function Qa(e,t){if(0===e.length||0===t.length)return!1;for(let i=0;i<e.length-1;i++){const r=e[i],n=e[i+1];for(let e=0;e<t.length-1;e++)if(el(r,n,t[e],t[e+1]))return!0}return!1}function el(e,t,i,r){return k(e,i,r)!==k(t,i,r)&&k(e,t,i)!==k(e,t,r)}function tl(e,t,i){const r=i*i;if(1===t.length)return e.distSqr(t[0])<r;for(let i=1;i<t.length;i++)if(il(e,t[i-1],t[i])<r)return!0;return!1}function il(e,t,i){const r=t.distSqr(i);if(0===r)return e.distSqr(t);const n=((e.x-t.x)*(i.x-t.x)+(e.y-t.y)*(i.y-t.y))/r;return e.distSqr(n<0?t:n>1?i:i.sub(t)._mult(n)._add(t))}function rl(e,t){let i,r,n,o=!1;for(let s=0;s<e.length;s++){i=e[s];for(let e=0,s=i.length-1;e<i.length;s=e++)r=i[e],n=i[s],r.y>t.y!=n.y>t.y&&t.x<(n.x-r.x)*(t.y-r.y)/(n.y-r.y)+r.x&&(o=!o)}return o}function nl(e,t){let i=!1;for(let r=0,n=e.length-1;r<e.length;n=r++){const o=e[r],s=e[n];o.y>t.y!=s.y>t.y&&t.x<(s.x-o.x)*(t.y-o.y)/(s.y-o.y)+o.x&&(i=!i)}return i}function ol(e,t,i,r,o){for(const n of e)if(t<=n.x&&i<=n.y&&r>=n.x&&o>=n.y)return!0;const s=[new n(t,i),new n(t,o),new n(r,o),new n(r,i)];if(e.length>2)for(const t of s)if(nl(e,t))return!0;for(let t=0;t<e.length-1;t++)if(sl(e[t],e[t+1],s))return!0;return!1}function sl(e,t,i){const r=i[0],n=i[2];if(e.x<r.x&&t.x<r.x||e.x>n.x&&t.x>n.x||e.y<r.y&&t.y<r.y||e.y>n.y&&t.y>n.y)return!1;const o=k(e,t,i[0]);return o!==k(e,t,i[1])||o!==k(e,t,i[2])||o!==k(e,t,i[3])}function al(e,t,i){const r=t.paint.get(e).value;return"constant"===r.kind?r.value:i.programConfigurations.get(t.id).getMaxValue(e)}function ll(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function cl(e,t,i,r,o){if(!t[0]&&!t[1])return e;const s=n.convert(t)._mult(o);"viewport"===i&&s._rotate(-r);const a=[];for(let t=0;t<e.length;t++)a.push(e[t].sub(s));return a}function hl(e,t,i,r){const o=n.convert(e)._mult(r);return"viewport"===t&&o._rotate(-i),o}Dn(Wa,"CircleBucket",{omit:["layers"]});const ul=new Xo({"circle-sort-key":new Go($e.layout_circle["circle-sort-key"])});var pl={paint:new Xo({"circle-radius":new Go($e.paint_circle["circle-radius"]),"circle-color":new Go($e.paint_circle["circle-color"]),"circle-blur":new Go($e.paint_circle["circle-blur"]),"circle-opacity":new Go($e.paint_circle["circle-opacity"]),"circle-translate":new No($e.paint_circle["circle-translate"]),"circle-translate-anchor":new No($e.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new No($e.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new No($e.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Go($e.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Go($e.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Go($e.paint_circle["circle-stroke-opacity"])}),layout:ul},dl=1e-6,fl="undefined"!=typeof Float32Array?Float32Array:Array;function ml(){var e=new fl(9);return fl!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function _l(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function gl(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8],u=t[9],p=t[10],d=t[11],f=t[12],m=t[13],_=t[14],g=t[15],y=i*a-r*s,x=i*l-n*s,v=i*c-o*s,b=r*l-n*a,w=r*c-o*a,T=n*c-o*l,E=h*m-u*f,S=h*_-p*f,M=h*g-d*f,I=u*_-p*m,A=u*g-d*m,C=p*g-d*_,z=y*C-x*A+v*I+b*M-w*S+T*E;return z?(e[0]=(a*C-l*A+c*I)*(z=1/z),e[1]=(n*A-r*C-o*I)*z,e[2]=(m*T-_*w+g*b)*z,e[3]=(p*w-u*T-d*b)*z,e[4]=(l*M-s*C-c*S)*z,e[5]=(i*C-n*M+o*S)*z,e[6]=(_*v-f*T-g*x)*z,e[7]=(h*T-p*v+d*x)*z,e[8]=(s*A-a*M+c*E)*z,e[9]=(r*M-i*A-o*E)*z,e[10]=(f*w-m*v+g*y)*z,e[11]=(u*v-h*w-d*y)*z,e[12]=(a*S-s*I-l*E)*z,e[13]=(i*I-r*S+n*E)*z,e[14]=(m*x-f*b-_*y)*z,e[15]=(h*b-u*x+p*y)*z,e):null}function yl(e,t,i){var r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],p=t[9],d=t[10],f=t[11],m=t[12],_=t[13],g=t[14],y=t[15],x=i[0],v=i[1],b=i[2],w=i[3];return e[0]=x*r+v*a+b*u+w*m,e[1]=x*n+v*l+b*p+w*_,e[2]=x*o+v*c+b*d+w*g,e[3]=x*s+v*h+b*f+w*y,e[4]=(x=i[4])*r+(v=i[5])*a+(b=i[6])*u+(w=i[7])*m,e[5]=x*n+v*l+b*p+w*_,e[6]=x*o+v*c+b*d+w*g,e[7]=x*s+v*h+b*f+w*y,e[8]=(x=i[8])*r+(v=i[9])*a+(b=i[10])*u+(w=i[11])*m,e[9]=x*n+v*l+b*p+w*_,e[10]=x*o+v*c+b*d+w*g,e[11]=x*s+v*h+b*f+w*y,e[12]=(x=i[12])*r+(v=i[13])*a+(b=i[14])*u+(w=i[15])*m,e[13]=x*n+v*l+b*p+w*_,e[14]=x*o+v*c+b*d+w*g,e[15]=x*s+v*h+b*f+w*y,e}function xl(e,t,i){var r,n,o,s,a,l,c,h,u,p,d,f,m=i[0],_=i[1],g=i[2];return t===e?(e[12]=t[0]*m+t[4]*_+t[8]*g+t[12],e[13]=t[1]*m+t[5]*_+t[9]*g+t[13],e[14]=t[2]*m+t[6]*_+t[10]*g+t[14],e[15]=t[3]*m+t[7]*_+t[11]*g+t[15]):(n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],p=t[9],d=t[10],f=t[11],e[0]=r=t[0],e[1]=n,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=c,e[7]=h,e[8]=u,e[9]=p,e[10]=d,e[11]=f,e[12]=r*m+a*_+u*g+t[12],e[13]=n*m+l*_+p*g+t[13],e[14]=o*m+c*_+d*g+t[14],e[15]=s*m+h*_+f*g+t[15]),e}function vl(e,t,i){var r=i[0],n=i[1],o=i[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function bl(e,t,i){var r=Math.sin(i),n=Math.cos(i),o=t[4],s=t[5],a=t[6],l=t[7],c=t[8],h=t[9],u=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*n+c*r,e[5]=s*n+h*r,e[6]=a*n+u*r,e[7]=l*n+p*r,e[8]=c*n-o*r,e[9]=h*n-s*r,e[10]=u*n-a*r,e[11]=p*n-l*r,e}function wl(e,t,i){var r=Math.sin(i),n=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[8],h=t[9],u=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*n-c*r,e[1]=s*n-h*r,e[2]=a*n-u*r,e[3]=l*n-p*r,e[8]=o*r+c*n,e[9]=s*r+h*n,e[10]=a*r+u*n,e[11]=l*r+p*n,e}function Tl(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function El(e,t,i){var r,n,o,s=i[0],a=i[1],l=i[2],c=Math.hypot(s,a,l);return c<dl?null:(s*=c=1/c,a*=c,l*=c,r=Math.sin(t),n=Math.cos(t),e[0]=s*s*(o=1-n)+n,e[1]=a*s*o+l*r,e[2]=l*s*o-a*r,e[3]=0,e[4]=s*a*o-l*r,e[5]=a*a*o+n,e[6]=l*a*o+s*r,e[7]=0,e[8]=s*l*o+a*r,e[9]=a*l*o-s*r,e[10]=l*l*o+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Sl=yl;function Ml(){var e=new fl(3);return fl!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Il(e){var t=new fl(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Al(e){return Math.hypot(e[0],e[1],e[2])}function Cl(e,t,i){var r=new fl(3);return r[0]=e,r[1]=t,r[2]=i,r}function zl(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function Pl(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function kl(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function Dl(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function Ll(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function Bl(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function Rl(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function Fl(e,t){var i=t[0],r=t[1],n=t[2],o=i*i+r*r+n*n;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function Ol(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ul(e,t,i){var r=t[0],n=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=n*l-o*a,e[1]=o*s-r*l,e[2]=r*a-n*s,e}function Vl(e,t,i){var r=t[0],n=t[1],o=t[2],s=i[3]*r+i[7]*n+i[11]*o+i[15];return e[0]=(i[0]*r+i[4]*n+i[8]*o+i[12])/(s=s||1),e[1]=(i[1]*r+i[5]*n+i[9]*o+i[13])/s,e[2]=(i[2]*r+i[6]*n+i[10]*o+i[14])/s,e}function jl(e,t,i){var r=i[0],n=i[1],o=i[2],s=t[0],a=t[1],l=t[2],c=n*l-o*a,h=o*s-r*l,u=r*a-n*s,p=n*u-o*h,d=o*c-r*u,f=r*h-n*c,m=2*i[3];return h*=m,u*=m,d*=2,f*=2,e[0]=s+(c*=m)+(p*=2),e[1]=a+h+d,e[2]=l+u+f,e}var Nl,Gl=Pl,Zl=kl,$l=Al;function ql(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function Xl(e,t,i){var r=t[0],n=t[1],o=t[2],s=t[3];return e[0]=i[0]*r+i[4]*n+i[8]*o+i[12]*s,e[1]=i[1]*r+i[5]*n+i[9]*o+i[13]*s,e[2]=i[2]*r+i[6]*n+i[10]*o+i[14]*s,e[3]=i[3]*r+i[7]*n+i[11]*o+i[15]*s,e}function Wl(){var e=new fl(4);return fl!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Hl(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function Yl(e,t,i){i*=.5;var r=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=r*l+s*a,e[1]=n*l+o*a,e[2]=o*l-n*a,e[3]=s*l-r*a,e}function Kl(e,t,i){i*=.5;var r=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=r*l-o*a,e[1]=n*l+s*a,e[2]=o*l+r*a,e[3]=s*l-n*a,e}Ml(),Nl=new fl(4),fl!=Float32Array&&(Nl[0]=0,Nl[1]=0,Nl[2]=0,Nl[3]=0),Ml(),Cl(1,0,0),Cl(0,1,0),Wl(),Wl(),ml();class Jl{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,i){const r=Ol(t,this.dir);if(Math.abs(r)<1e-6)return!1;const n=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/r;return i[0]=this.pos[0]+this.dir[0]*n,i[1]=this.pos[1]+this.dir[1]*n,i[2]=this.pos[2]+this.dir[2]*n,!0}closestPointOnSphere(e,t,i){if(function(e,t){var i=e[0],r=e[1],n=e[2],o=t[0],s=t[1],a=t[2];return Math.abs(i-o)<=dl*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-s)<=dl*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-a)<=dl*Math.max(1,Math.abs(n),Math.abs(a))}(this.pos,e)||0===t)return i[0]=i[1]=i[2]=0,!1;const[r,n,o]=this.dir,s=this.pos[0]-e[0],a=this.pos[1]-e[1],l=this.pos[2]-e[2],c=r*r+n*n+o*o,h=2*(s*r+a*n+l*o),u=h*h-4*c*(s*s+a*a+l*l-t*t);if(u<0){const e=Math.max(-h/2,0),c=s+r*e,u=a+n*e,p=l+o*e,d=Math.hypot(c,u,p);return i[0]=c*t/d,i[1]=u*t/d,i[2]=p*t/d,!1}{const e=(-h-Math.sqrt(u))/(2*c);if(e<0){const e=Math.hypot(s,a,l);return i[0]=s*t/e,i[1]=a*t/e,i[2]=l*t/e,!1}return i[0]=s+r*e,i[1]=a+n*e,i[2]=l+o*e,!0}}}class Ql{constructor(e,t,i,r,n){this.TL=e,this.TR=t,this.BR=i,this.BL=r,this.horizon=n}static fromInvProjectionMatrix(e,t,i){const r=[-1,1,1],n=[1,1,1],o=[1,-1,1],s=[-1,-1,1],a=Vl(r,r,e),l=Vl(n,n,e),c=Vl(o,o,e),h=Vl(s,s,e);return new Ql(a,l,c,h,t/i)}}class ec{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(e,t,i,r){const n=Math.pow(2,i),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((i=>{const o=Xl([],i,e),s=1/o[3]/t*n;return function(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e[3]=t[3]*i[3],e}(o,o,[s,s,r?1/o[3]:s,s])})),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((e=>{const t=Fl([],Ul([],Gl([],o[e[0]],o[e[1]]),Gl([],o[e[2]],o[e[1]]))),i=-Ol(t,o[e[1]]);return t.concat(i)}));return new ec(o,s)}}class tc{static fromPoints(e){const t=[Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE],i=[Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE];for(const r of e)t[0]=Math.min(t[0],r[0]),t[1]=Math.min(t[1],r[1]),t[2]=Math.min(t[2],r[2]),i[0]=Math.max(i[0],r[0]),i[1]=Math.max(i[1],r[1]),i[2]=Math.max(i[2],r[2]);return new tc(t,i)}constructor(e,t){this.min=e,this.max=t,this.center=Bl([],zl([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],i=Il(this.min),r=Il(this.max);for(let e=0;e<t.length;e++)i[e]=t[e]?this.min[e]:this.center[e],r[e]=t[e]?this.center[e]:this.max[e];return r[2]=this.max[2],new tc(i,r)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){const t=this.getCorners();let i=!0;for(let r=0;r<e.planes.length;r++){const n=e.planes[r];let o=0;for(let e=0;e<t.length;e++)o+=Ol(n,t[e])+n[3]>=0;if(0===o)return 0;o!==t.length&&(i=!1)}if(i)return 2;for(let t=0;t<3;t++){let i=Number.MAX_VALUE,r=-Number.MAX_VALUE;for(let n=0;n<e.points.length;n++){const o=e.points[n][t]-this.min[t];i=Math.min(i,o),r=Math.max(r,o)}if(r<0||i>this.max[t]-this.min[t])return 0}return 1}}function ic(e,t,i,r,n,o,s,a,l){if(o&&e.queryGeometry.isAboveHorizon)return!1;o&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,h=i.projection.upVectorScale(c,i.center.lat,i.worldSize).metersToTile;for(const u of t)for(const t of u){const u=t.add(a),p=n&&i.elevation?i.elevation.exaggeration()*n.getElevationAt(u.x,u.y,!0):0,d=i.projection.projectTilePoint(u.x,u.y,c);if(p>0){const e=i.projection.upVector(c,u.x,u.y);d.x+=e[0]*h*p,d.y+=e[1]*h*p,d.z+=e[2]*h*p}const f=o?u:rc(d.x,d.y,d.z,r),m=o?e.tilespaceRays.map((e=>sc(e,p))):e.queryGeometry.screenGeometry,_=Xl([],[d.x,d.y,d.z,1],r);if(!s&&o?l*=_[3]/i.cameraToCenterDistance:s&&!o&&(l*=i.cameraToCenterDistance/_[3]),o){const e=ka((t.y/wa+c.y)/(1<<c.z));l/=i.projection.pixelsPerMeter(e,1)/za(1,e)}if(Ya(m,f,l))return!0}return!1}function rc(e,t,i,r){const o=Xl([],[e,t,i,1],r);return new n(o[0]/o[3],o[1]/o[3])}const nc=Cl(0,0,0),oc=Cl(0,0,1);function sc(e,t){const i=Ml();return nc[2]=t,e.intersectsPlane(nc,oc,i),new n(i[0],i[1])}class ac extends Wa{}function lc(e,{width:t,height:i},r,n){if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*i*r)throw new RangeError("mismatched image size")}else n=new Uint8Array(t*i*r);return e.width=t,e.height=i,e.data=n,e}function cc(e,t,i){const{width:r,height:n}=t;r===e.width&&n===e.height||(hc(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,n)},i),e.width=r,e.height=n,e.data=t.data)}function hc(e,t,i,r,n,o){if(0===n.width||0===n.height)return t;if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw new RangeError("out of range destination coordinates for image copy");const s=e.data,a=t.data;for(let l=0;l<n.height;l++){const c=((i.y+l)*e.width+i.x)*o,h=((r.y+l)*t.width+r.x)*o;for(let e=0;e<n.width*o;e++)a[h+e]=s[c+e]}return t}Dn(ac,"HeatmapBucket",{omit:["layers"]});class uc{constructor(e,t){lc(this,e,1,t)}resize(e){cc(this,new uc(e),1)}clone(){return new uc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,r,n){hc(e,t,i,r,n,1)}}class pc{constructor(e,t){lc(this,e,4,t)}resize(e){cc(this,new pc(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new pc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,r,n){hc(e,t,i,r,n,4)}}Dn(uc,"AlphaImage"),Dn(pc,"RGBAImage");var dc={paint:new Xo({"heatmap-radius":new Go($e.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Go($e.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new No($e.paint_heatmap["heatmap-intensity"]),"heatmap-color":new qo($e.paint_heatmap["heatmap-color"]),"heatmap-opacity":new No($e.paint_heatmap["heatmap-opacity"])})};function fc(e){const t={},i=e.resolution||256,r=e.clips?e.clips.length:1,n=e.image||new pc({width:i,height:r}),o=(i,r,o)=>{t[e.evaluationKey]=o;const s=e.expression.evaluate(t);n.data[i+r+0]=Math.floor(255*s.r/s.a),n.data[i+r+1]=Math.floor(255*s.g/s.a),n.data[i+r+2]=Math.floor(255*s.b/s.a),n.data[i+r+3]=Math.floor(255*s.a)};if(e.clips)for(let t=0,n=0;t<r;++t,n+=4*i)for(let r=0,s=0;r<i;r++,s+=4){const a=r/(i-1),{start:l,end:c}=e.clips[t];o(n,s,l*(1-a)+c*a)}else for(let e=0,t=0;e<i;e++,t+=4)o(0,t,e/(i-1));return n}var mc={paint:new Xo({"hillshade-illumination-direction":new No($e.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new No($e.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new No($e.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new No($e.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new No($e.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new No($e.paint_hillshade["hillshade-accent-color"])})};const _c=Jo([{name:"a_pos",components:2,type:"Int16"}],4),{members:gc}=_c;var yc=vc,xc=vc;function vc(e,t,i){i=i||2;var r,n,o,s,a,l,c,h=t&&t.length,u=h?t[0]*i:e.length,p=bc(e,0,u,i,!0),d=[];if(!p||p.next===p.prev)return d;if(h&&(p=function(e,t,i,r){var n,o,s,a=[];for(n=0,o=t.length;n<o;n++)(s=bc(e,t[n]*r,n<o-1?t[n+1]*r:e.length,r,!1))===s.next&&(s.steiner=!0),a.push(kc(s));for(a.sort(Ac),n=0;n<a.length;n++)i=Cc(a[n],i);return i}(e,t,p,i)),e.length>80*i){r=o=e[0],n=s=e[1];for(var f=i;f<u;f+=i)(a=e[f])<r&&(r=a),(l=e[f+1])<n&&(n=l),a>o&&(o=a),l>s&&(s=l);c=0!==(c=Math.max(o-r,s-n))?32767/c:0}return Tc(p,d,i,r,n,c,0),d}function bc(e,t,i,r,n){var o,s;if(n===$c(e,t,i,r)>0)for(o=t;o<i;o+=r)s=Nc(o,e[o],e[o+1],s);else for(o=i-r;o>=t;o-=r)s=Nc(o,e[o],e[o+1],s);return s&&Rc(s,s.next)&&(Gc(s),s=s.next),s}function wc(e,t){if(!e)return e;t||(t=e);var i,r=e;do{if(i=!1,r.steiner||!Rc(r,r.next)&&0!==Bc(r.prev,r,r.next))r=r.next;else{if(Gc(r),(r=t=r.prev)===r.next)break;i=!0}}while(i||r!==t);return t}function Tc(e,t,i,r,n,o,s){if(e){!s&&o&&function(e,t,i,r){var n=e;do{0===n.z&&(n.z=Pc(n.x,n.y,t,i,r)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,function(e){var t,i,r,n,o,s,a,l,c=1;do{for(i=e,e=null,o=null,s=0;i;){for(s++,r=i,a=0,t=0;t<c&&(a++,r=r.nextZ);t++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||i.z<=r.z)?(n=i,i=i.nextZ,a--):(n=r,r=r.nextZ,l--),o?o.nextZ=n:e=n,n.prevZ=o,o=n;i=r}o.nextZ=null,c*=2}while(s>1)}(n)}(e,r,n,o);for(var a,l,c=e;e.prev!==e.next;)if(a=e.prev,l=e.next,o?Sc(e,r,n,o):Ec(e))t.push(a.i/i|0),t.push(e.i/i|0),t.push(l.i/i|0),Gc(e),e=l.next,c=l.next;else if((e=l)===c){s?1===s?Tc(e=Mc(wc(e),t,i),t,i,r,n,o,2):2===s&&Ic(e,t,i,r,n,o):Tc(wc(e),t,i,r,n,o,1);break}}}function Ec(e){var t=e.prev,i=e,r=e.next;if(Bc(t,i,r)>=0)return!1;for(var n=t.x,o=i.x,s=r.x,a=t.y,l=i.y,c=r.y,h=n<o?n<s?n:s:o<s?o:s,u=a<l?a<c?a:c:l<c?l:c,p=n>o?n>s?n:s:o>s?o:s,d=a>l?a>c?a:c:l>c?l:c,f=r.next;f!==t;){if(f.x>=h&&f.x<=p&&f.y>=u&&f.y<=d&&Dc(n,a,o,l,s,c,f.x,f.y)&&Bc(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function Sc(e,t,i,r){var n=e.prev,o=e,s=e.next;if(Bc(n,o,s)>=0)return!1;for(var a=n.x,l=o.x,c=s.x,h=n.y,u=o.y,p=s.y,d=a<l?a<c?a:c:l<c?l:c,f=h<u?h<p?h:p:u<p?u:p,m=a>l?a>c?a:c:l>c?l:c,_=h>u?h>p?h:p:u>p?u:p,g=Pc(d,f,t,i,r),y=Pc(m,_,t,i,r),x=e.prevZ,v=e.nextZ;x&&x.z>=g&&v&&v.z<=y;){if(x.x>=d&&x.x<=m&&x.y>=f&&x.y<=_&&x!==n&&x!==s&&Dc(a,h,l,u,c,p,x.x,x.y)&&Bc(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,v.x>=d&&v.x<=m&&v.y>=f&&v.y<=_&&v!==n&&v!==s&&Dc(a,h,l,u,c,p,v.x,v.y)&&Bc(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;x&&x.z>=g;){if(x.x>=d&&x.x<=m&&x.y>=f&&x.y<=_&&x!==n&&x!==s&&Dc(a,h,l,u,c,p,x.x,x.y)&&Bc(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;v&&v.z<=y;){if(v.x>=d&&v.x<=m&&v.y>=f&&v.y<=_&&v!==n&&v!==s&&Dc(a,h,l,u,c,p,v.x,v.y)&&Bc(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function Mc(e,t,i){var r=e;do{var n=r.prev,o=r.next.next;!Rc(n,o)&&Fc(n,r,r.next,o)&&Vc(n,o)&&Vc(o,n)&&(t.push(n.i/i|0),t.push(r.i/i|0),t.push(o.i/i|0),Gc(r),Gc(r.next),r=e=o),r=r.next}while(r!==e);return wc(r)}function Ic(e,t,i,r,n,o){var s=e;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&Lc(s,a)){var l=jc(s,a);return s=wc(s,s.next),l=wc(l,l.next),Tc(s,t,i,r,n,o,0),void Tc(l,t,i,r,n,o,0)}a=a.next}s=s.next}while(s!==e)}function Ac(e,t){return e.x-t.x}function Cc(e,t){var i=function(e,t){var i,r=t,n=e.x,o=e.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=n&&a>s&&(s=a,i=r.x<r.next.x?r:r.next,a===n))return i}r=r.next}while(r!==t);if(!i)return null;var l,c=i,h=i.x,u=i.y,p=1/0;r=i;do{n>=r.x&&r.x>=h&&n!==r.x&&Dc(o<u?n:s,o,h,u,o<u?s:n,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(n-r.x),Vc(r,e)&&(l<p||l===p&&(r.x>i.x||r.x===i.x&&zc(i,r)))&&(i=r,p=l)),r=r.next}while(r!==c);return i}(e,t);if(!i)return t;var r=jc(i,e);return wc(r,r.next),wc(i,i.next)}function zc(e,t){return Bc(e.prev,e,t.prev)<0&&Bc(t.next,e,e.next)<0}function Pc(e,t,i,r,n){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function kc(e){var t=e,i=e;do{(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next}while(t!==e);return i}function Dc(e,t,i,r,n,o,s,a){return(n-s)*(t-a)>=(e-s)*(o-a)&&(e-s)*(r-a)>=(i-s)*(t-a)&&(i-s)*(o-a)>=(n-s)*(r-a)}function Lc(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&Fc(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(Vc(e,t)&&Vc(t,e)&&function(e,t){var i=e,r=!1,n=(e.x+t.x)/2,o=(e.y+t.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next}while(i!==e);return r}(e,t)&&(Bc(e.prev,e,t.prev)||Bc(e,t.prev,t))||Rc(e,t)&&Bc(e.prev,e,e.next)>0&&Bc(t.prev,t,t.next)>0)}function Bc(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function Rc(e,t){return e.x===t.x&&e.y===t.y}function Fc(e,t,i,r){var n=Uc(Bc(e,t,i)),o=Uc(Bc(e,t,r)),s=Uc(Bc(i,r,e)),a=Uc(Bc(i,r,t));return n!==o&&s!==a||!(0!==n||!Oc(e,i,t))||!(0!==o||!Oc(e,r,t))||!(0!==s||!Oc(i,e,r))||!(0!==a||!Oc(i,t,r))}function Oc(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function Uc(e){return e>0?1:e<0?-1:0}function Vc(e,t){return Bc(e.prev,e,e.next)<0?Bc(e,t,e.next)>=0&&Bc(e,e.prev,t)>=0:Bc(e,t,e.prev)<0||Bc(e,e.next,t)<0}function jc(e,t){var i=new Zc(e.i,e.x,e.y),r=new Zc(t.i,t.x,t.y),n=e.next,o=t.prev;return e.next=t,t.prev=e,i.next=n,n.prev=i,r.next=i,i.prev=r,o.next=r,r.prev=o,r}function Nc(e,t,i,r){var n=new Zc(e,t,i);return r?(n.next=r.next,n.prev=r,r.next.prev=n,r.next=n):(n.prev=n,n.next=n),n}function Gc(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Zc(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function $c(e,t,i,r){for(var n=0,o=t,s=i-r;o<i;o+=r)n+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return n}function qc(e,t,i,r,n){Xc(e,t,i||0,r||e.length-1,n||Hc)}function Xc(e,t,i,r,n){for(;r>i;){if(r-i>600){var o=r-i+1,s=t-i+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);Xc(e,t,Math.max(i,Math.floor(t-s*l/o+c)),Math.min(r,Math.floor(t+(o-s)*l/o+c)),n)}var h=e[t],u=i,p=r;for(Wc(e,i,t),n(e[r],h)>0&&Wc(e,i,r);u<p;){for(Wc(e,u,p),u++,p--;n(e[u],h)<0;)u++;for(;n(e[p],h)>0;)p--}0===n(e[i],h)?Wc(e,i,p):Wc(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function Wc(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function Hc(e,t){return e<t?-1:e>t?1:0}function Yc(e,t){const i=e.length;if(i<=1)return[e];const r=[];let n,o;for(let t=0;t<i;t++){const i=D(e[t]);0!==i&&(e[t].area=Math.abs(i),void 0===o&&(o=i<0),o===i<0?(n&&r.push(n),n=[e[t]]):n.push(e[t]))}if(n&&r.push(n),t>1)for(let e=0;e<r.length;e++)r[e].length<=t||(qc(r[e],t,1,r[e].length-1,Kc),r[e]=r[e].slice(0,t));return r}function Kc(e,t){return t.area-e.area}function Jc(e,t,i){const r=i.patternDependencies;let n=!1;for(const i of t){const t=i.paint.get(`${e}-pattern`);t.isConstant()||(n=!0);const o=t.constantOr(null);o&&(n=!0,r[o.to]=!0,r[o.from]=!0)}return n}function Qc(e,t,i,r,n){const o=n.patternDependencies;for(const s of t){const t=s.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:r-1},i,{},n.availableImages),a=t.evaluate({zoom:r},i,{},n.availableImages),l=t.evaluate({zoom:r+1},i,{},n.availableImages);e=e&&e.name?e.name:e,a=a&&a.name?a.name:a,l=l&&l.name?l.name:l,o[e]=!0,o[a]=!0,o[l]=!0,i.patterns[s.id]={min:e,mid:a,max:l}}}return i}vc.deviation=function(e,t,i,r){var n=t&&t.length,o=Math.abs($c(e,0,n?t[0]*i:e.length,i));if(n)for(var s=0,a=t.length;s<a;s++)o-=Math.abs($c(e,t[s]*i,s<a-1?t[s+1]*i:e.length,i));var l=0;for(s=0;s<r.length;s+=3){var c=r[s]*i,h=r[s+1]*i,u=r[s+2]*i;l+=Math.abs((e[c]-e[u])*(e[h+1]-e[c+1])-(e[c]-e[h])*(e[u+1]-e[c+1]))}return 0===o&&0===l?0:Math.abs((l-o)/o)},vc.flatten=function(e){for(var t=e[0][0].length,i={vertices:[],holes:[],dimensions:t},r=0,n=0;n<e.length;n++){for(var o=0;o<e[n].length;o++)for(var s=0;s<t;s++)i.vertices.push(e[n][o][s]);n>0&&i.holes.push(r+=e[n-1].length)}return i},yc["default"]=xc;class eh{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new es,this.indexArray=new _s,this.indexArray2=new ws,this.programConfigurations=new ua(e.layers,e.zoom),this.segments=new ba,this.segments2=new ba,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.projection=e.projection}populate(e,t,i,r){this.hasPattern=Jc("fill",this.layers,t);const n=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:s,id:a,index:l,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,h=$a(s,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),h,i))continue;const u=n?n.evaluate(h,{},i,t.availableImages):void 0,p={id:a,properties:s.properties,type:s.type,sourceLayerIndex:c,index:l,geometry:e?h.geometry:Za(s,i,r),patterns:{},sortKey:u};o.push(p)}n&&o.sort(((e,t)=>e.sortKey-t.sortKey));for(const r of o){const{geometry:n,index:o,sourceLayerIndex:s}=r;if(this.hasPattern){const e=Qc("fill",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,n,o,i,{},t.availableImages);t.featureIndex.insert(e[o].feature,n,o,s,this.index)}}update(e,t,i,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i,r)}addFeatures(e,t,i,r,n){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,i,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,gc),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,i,r,n,o=[]){for(const e of Yc(t,500)){let t=0;for(const i of e)t+=i.length;const i=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),r=i.vertexLength,n=[],o=[];for(const t of e){if(0===t.length)continue;t!==e[0]&&o.push(n.length/2);const i=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),r=i.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(r+t.length-1,r),n.push(t[0].x),n.push(t[0].y);for(let e=1;e<t.length;e++)this.layoutVertexArray.emplaceBack(t[e].x,t[e].y),this.indexArray2.emplaceBack(r+e-1,r+e),n.push(t[e].x),n.push(t[e].y);i.vertexLength+=t.length,i.primitiveLength+=t.length}const s=yc(n,o);for(let e=0;e<s.length;e+=3)this.indexArray.emplaceBack(r+s[e],r+s[e+1],r+s[e+2]);i.vertexLength+=t,i.primitiveLength+=s.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,n,o,r)}}Dn(eh,"FillBucket",{omit:["layers","patternFeatures"]});const th=new Xo({"fill-sort-key":new Go($e.layout_fill["fill-sort-key"])});var ih={paint:new Xo({"fill-antialias":new No($e.paint_fill["fill-antialias"]),"fill-opacity":new Go($e.paint_fill["fill-opacity"]),"fill-color":new Go($e.paint_fill["fill-color"]),"fill-outline-color":new Go($e.paint_fill["fill-outline-color"]),"fill-translate":new No($e.paint_fill["fill-translate"]),"fill-translate-anchor":new No($e.paint_fill["fill-translate-anchor"]),"fill-pattern":new Zo($e.paint_fill["fill-pattern"])}),layout:th};const rh=Jo([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),nh=Jo([{name:"a_centroid_pos",components:2,type:"Uint16"}]),oh=Jo([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:sh}=rh;var ah=lh;function lh(e,t,i,r,n){this.properties={},this.extent=i,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=n,e.readFields(ch,this,t)}function ch(e,t,i){1==e?t.id=i.readVarint():2==e?function(e,t){for(var i=e.readVarint()+e.pos;e.pos<i;){var r=t._keys[e.readVarint()],n=t._values[e.readVarint()];t.properties[r]=n}}(i,t):3==e?t.type=i.readVarint():4==e&&(t._geometry=i.pos)}function hh(e){for(var t,i,r=0,n=0,o=e.length,s=o-1;n<o;s=n++)r+=((i=e[s]).x-(t=e[n]).x)*(t.y+i.y);return r}lh.types=["Unknown","Point","LineString","Polygon"],lh.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,i=e.readVarint()+e.pos,r=1,o=0,s=0,a=0,l=[];e.pos<i;){if(o<=0){var c=e.readVarint();r=7&c,o=c>>3}if(o--,1===r||2===r)s+=e.readSVarint(),a+=e.readSVarint(),1===r&&(t&&l.push(t),t=[]),t.push(new n(s,a));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&l.push(t),l},lh.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,i=1,r=0,n=0,o=0,s=1/0,a=-1/0,l=1/0,c=-1/0;e.pos<t;){if(r<=0){var h=e.readVarint();i=7&h,r=h>>3}if(r--,1===i||2===i)(n+=e.readSVarint())<s&&(s=n),n>a&&(a=n),(o+=e.readSVarint())<l&&(l=o),o>c&&(c=o);else if(7!==i)throw new Error("unknown command "+i)}return[s,l,a,c]},lh.prototype.toGeoJSON=function(e,t,i){var r,n,o=this.extent*Math.pow(2,i),s=this.extent*e,a=this.extent*t,l=this.loadGeometry(),c=lh.types[this.type];function h(e){for(var t=0;t<e.length;t++){var i=e[t];e[t]=[360*(i.x+s)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(i.y+a)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var u=[];for(r=0;r<l.length;r++)u[r]=l[r][0];h(l=u);break;case 2:for(r=0;r<l.length;r++)h(l[r]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var i,r,n=[],o=0;o<t;o++){var s=hh(e[o]);0!==s&&(void 0===r&&(r=s<0),r===s<0?(i&&n.push(i),i=[e[o]]):i.push(e[o]))}return i&&n.push(i),n}(l),r=0;r<l.length;r++)for(n=0;n<l[r].length;n++)h(l[r][n])}1===l.length?l=l[0]:c="Multi"+c;var p={type:"Feature",geometry:{type:c,coordinates:l},properties:this.properties};return"id"in this&&(p.id=this.id),p};var uh=ph;function ph(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(dh,this,t),this.length=this._features.length}function dh(e,t,i){15===e?t.version=i.readVarint():1===e?t.name=i.readString():5===e?t.extent=i.readVarint():2===e?t._features.push(i.pos):3===e?t._keys.push(i.readString()):4===e&&t._values.push(function(e){for(var t=null,i=e.readVarint()+e.pos;e.pos<i;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(i))}function fh(e,t,i){if(3===e){var r=new uh(i,i.readVarint()+i.pos);r.length&&(t[r.name]=r)}}ph.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new ah(this._pbf,t,this.extent,this._keys,this._values)};var mh={VectorTile:function(e,t){this.layers=e.readFields(fh,{},t)},VectorTileFeature:ah,VectorTileLayer:uh};function _h(e,t,i,r){const o=[],s=0===r?(e,t,i,r,o,s)=>{e.push(new n(s,i+(s-t)/(r-t)*(o-i)))}:(e,t,i,r,o,s)=>{e.push(new n(t+(s-i)/(o-i)*(r-t),s))};for(const n of e){const e=[];for(const o of n){if(o.length<=2)continue;const n=[];for(let e=0;e<o.length-1;e++){const a=o[e].x,l=o[e].y,c=o[e+1].x,h=o[e+1].y,u=0===r?a:l,p=0===r?c:h;u<t?p>t&&s(n,a,l,c,h,t):u>i?p<i&&s(n,a,l,c,h,i):n.push(o[e]),p<t&&u>=t&&s(n,a,l,c,h,t),p>i&&u<=i&&s(n,a,l,c,h,i)}let a=o[o.length-1];const l=0===r?a.x:a.y;l>=t&&l<=i&&n.push(a),n.length&&(a=n[n.length-1],n[0].x===a.x&&n[0].y===a.y||n.push(n[0]),e.push(n))}e.length&&o.push(e)}return o}const gh=mh.VectorTileFeature.types,yh=Math.pow(2,13);function xh(e,t,i,r,n,o,s,a){e.emplaceBack((t<<1)+s,(i<<1)+o,(Math.floor(r*yh)<<1)+n,Math.round(a))}function vh(e,t,i){const r=16384;e.emplaceBack(t.x,t.y,t.z,i[0]*r,i[1]*r,i[2]*r)}class bh{constructor(){this.acc=new n(0,0),this.polyCount=[]}startRing(e){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new n(e.x,e.y),this.max=new n(e.x,e.y))}append(e,t){this.currentPolyCount.edges++,this.acc._add(e);const i=this.min,r=this.max;e.x<i.x?i.x=e.x:e.x>r.x&&(r.x=e.x),e.y<i.y?i.y=e.y:e.y>r.y&&(r.y=e.y),((0===e.x||e.x===wa)&&e.x===t.x)!=((0===e.y||e.y===wa)&&e.y===t.y)&&this.processBorderOverlap(e,t),t.x<0!=e.x<0&&this.addBorderIntersection(0,yi(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>wa!=e.x>wa&&this.addBorderIntersection(1,yi(t.y,e.y,(wa-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,yi(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>wa!=e.y>wa&&this.addBorderIntersection(3,yi(t.x,e.x,(wa-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const i=this.borders[e];t<i[0]&&(i[0]=t),t>i[1]&&(i[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const i=0===e.x?0:1;this.addBorderIntersection(i,t.y),this.addBorderIntersection(i,e.y)}else{const i=0===e.y?2:3;this.addBorderIntersection(i,t.x),this.addBorderIntersection(i,e.x)}}centroid(){const e=this.polyCount.reduce(((e,t)=>e+t.edges),0);return 0!==e?this.acc.div(e)._round():new n(0,0)}span(){return new n(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce(((e,t)=>e+ +(t[0]!==Number.MAX_VALUE)),0)}}class wh{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.layoutVertexArray=new is,this.centroidVertexArray=new Os,this.indexArray=new _s,this.programConfigurations=new ua(e.layers,e.zoom),this.segments=new ba,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.enableTerrain=e.enableTerrain}populate(e,t,i,r){this.features=[],this.hasPattern=Jc("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(e){const t=Math.exp(Math.PI*(1-e.y/(1<<e.z)*2));return 80150034*t/(t*t+1)/wa/(1<<e.z)}(i),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:n,id:o,index:s,sourceLayerIndex:a}of e){const e=this.layers[0]._featureFilter.needGeometry,l=$a(n,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),l,i))continue;const c={id:o,sourceLayerIndex:a,index:s,geometry:e?l.geometry:Za(n,i,r),properties:n.properties,type:n.type,patterns:{}},h=this.layoutVertexArray.length;this.hasPattern?this.features.push(Qc("fill-extrusion",this.layers,c,this.zoom,t)):this.addFeature(c,c.geometry,s,i,{},t.availableImages,r),t.featureIndex.insert(n,c.geometry,s,a,this.index,h)}this.sortBorders()}addFeatures(e,t,i,r,n){for(const e of this.features){const{geometry:o}=e;this.addFeature(e,o,e.index,t,i,r,n)}this.sortBorders()}update(e,t,i,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,sh),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,oh.members,!0))),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,nh.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,i,r,o,s,a){const l=[new n(0,0),new n(wa,wa)],c=a.projection,h="globe"===c.name,u=this.enableTerrain&&!h?new bh:null,p="Polygon"===gh[e.type];h&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Ms);const d=Yc(t,500);for(let e=d.length-1;e>=0;e--){const t=d[e];(0===t.length||(f=t[0]).every((e=>e.x<=0))||f.every((e=>e.x>=wa))||f.every((e=>e.y<=0))||f.every((e=>e.y>=wa)))&&d.splice(e,1)}var f;let m;if(h)m=zh(d,l,r);else{m=[];for(const e of d)m.push({polygon:e,bounds:l})}const _=p?this.edgeRadius:0;for(const{polygon:e,bounds:t}of m){let i=0,n=0;for(const t of e)p&&!t[0].equals(t[t.length-1])&&t.push(t[0]),n+=p?t.length-1:t.length;const o=this.segments.prepareSegment((p?5:4)*n,this.layoutVertexArray,this.indexArray);if(p){const t=[],n=[];i=o.vertexLength;for(const i of e){let s,a;i.length&&i!==e[0]&&n.push(t.length/2),s=i[1].sub(i[0])._perp()._unit();for(let e=1;e<i.length;e++){const n=i[e],l=i[e===i.length-1?1:e+1];let{x:u,y:p}=n;if(_){a=l.sub(n)._perp()._unit();const e=s.add(a)._unit(),t=_*Math.min(4,1/(s.x*e.x+s.y*e.y));u+=t*e.x,p+=t*e.y,s=a}xh(this.layoutVertexArray,u,p,0,0,1,1,0),o.vertexLength++,t.push(n.x,n.y),h&&vh(this.layoutVertexExtArray,c.projectTilePoint(u,p,r),c.upVector(r,u,p))}}const s=yc(t,n);for(let e=0;e<s.length;e+=3)this.indexArray.emplaceBack(i+s[e],i+s[e+2],i+s[e+1]),o.primitiveLength++}for(const n of e){u&&n.length&&u.startRing(n[0]);let e,s,a,l=n.length>4&&Ih(n[n.length-2],n[0],n[1]),d=_?Eh(n[n.length-2],n[0],n[1],_):0;s=n[1].sub(n[0])._perp()._unit();for(let f=1,m=0;f<n.length;f++){let g=n[f-1],y=n[f];const x=n[f===n.length-1?1:f+1];if(u&&p&&u.currentPolyCount.top++,Mh(y,g,t)){_&&(s=x.sub(y)._perp()._unit());continue}u&&u.append(y,g);const v=y.sub(g)._perp(),b=v.x/(Math.abs(v.x)+Math.abs(v.y)),w=v.y>0?1:0,T=g.dist(y);if(m+T>32768&&(m=0),_){a=x.sub(y)._perp()._unit();let e=Sh(g,y,x,Th(s,a),_);isNaN(e)&&(e=0);const t=y.sub(g)._unit();g=g.add(t.mult(d))._round(),y=y.add(t.mult(-e))._round(),d=e,s=a}const E=o.vertexLength,S=n.length>4&&Ih(g,y,x);let M=Ah(m,l,!0);if(xh(this.layoutVertexArray,g.x,g.y,b,w,0,0,M),xh(this.layoutVertexArray,g.x,g.y,b,w,0,1,M),m+=T,M=Ah(m,S,!1),l=S,xh(this.layoutVertexArray,y.x,y.y,b,w,0,0,M),xh(this.layoutVertexArray,y.x,y.y,b,w,0,1,M),o.vertexLength+=4,this.indexArray.emplaceBack(E+0,E+1,E+2),this.indexArray.emplaceBack(E+1,E+3,E+2),o.primitiveLength+=2,_){const r=i+(1===f?n.length-2:f-2),s=1===f?i:r+1;if(this.indexArray.emplaceBack(E+1,r,E+3),this.indexArray.emplaceBack(r,s,E+3),o.primitiveLength+=2,void 0===e&&(e=E),!Mh(x,n[f],t)){const t=f===n.length-1?e:o.vertexLength;this.indexArray.emplaceBack(E+2,E+3,t),this.indexArray.emplaceBack(E+3,t+1,t),this.indexArray.emplaceBack(E+3,s,t+1),o.primitiveLength+=3}}if(h){const e=this.layoutVertexExtArray,t=c.projectTilePoint(g.x,g.y,r),i=c.projectTilePoint(y.x,y.y,r),n=c.upVector(r,g.x,g.y),o=c.upVector(r,y.x,y.y);vh(e,t,n),vh(e,t,n),vh(e,i,o),vh(e,i,o)}}p&&(i+=n.length-1)}}if(u&&u.polyCount.length>0){if(u.borders){u.vertexArrayOffset=this.centroidVertexArray.length;const e=u.borders,t=this.featuresOnBorder.push(u)-1;for(let i=0;i<4;i++)e[i][0]!==Number.MAX_VALUE&&this.borders[i].push(t)}this.encodeCentroid(u.borders?void 0:u.centroid(),u)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,o,s,r)}sortBorders(){for(let e=0;e<4;e++)this.borders[e].sort(((t,i)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[i].borders[e][0]))}encodeCentroid(e,t,i=!0){let r,n;if(e)if(0!==e.y){const i=t.span()._mult(this.tileToMeter);r=(Math.max(e.x,1)<<3)+Math.min(7,Math.round(i.x/10)),n=(Math.max(e.y,1)<<3)+Math.min(7,Math.round(i.y/10))}else r=Math.ceil(7*(e.x+450)),n=0;else r=0,n=+i;let o=i?this.centroidVertexArray.length:t.vertexArrayOffset;for(const e of t.polyCount){i&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*e.edges+e.top);for(let t=0;t<e.top;t++)this.centroidVertexArray.emplace(o++,r,n);for(let t=0;t<2*e.edges;t++)this.centroidVertexArray.emplace(o++,0,n),this.centroidVertexArray.emplace(o++,r,n)}}}function Th(e,t){const i=e.add(t)._unit();return e.x*i.x+e.y*i.y}function Eh(e,t,i,r){const n=t.sub(e)._perp()._unit(),o=i.sub(t)._perp()._unit();return Sh(e,t,i,Th(n,o),r)}function Sh(e,t,i,r,n){const o=Math.sqrt(1-r*r);return Math.min(e.dist(t)/3,t.dist(i)/3,n*o/r)}function Mh(e,t,i){return e.x<i[0].x&&t.x<i[0].x||e.x>i[1].x&&t.x>i[1].x||e.y<i[0].y&&t.y<i[0].y||e.y>i[1].y&&t.y>i[1].y}function Ih(e,t,i){if(e.x<0||e.x>=wa||t.x<0||t.x>=wa||i.x<0||i.x>=wa)return!1;const r=i.sub(t),n=r.perp(),o=e.sub(t);return(r.x*o.x+r.y*o.y)/Math.sqrt((r.x*r.x+r.y*r.y)*(o.x*o.x+o.y*o.y))>-.866&&n.x*o.x+n.y*o.y<0}function Ah(e,t,i){const r=t?2|e:-3&e;return i?1|r:-2&r}function Ch(){const e=Math.PI/32,t=Math.tan(e),i=Ea;return i*Math.sqrt(1+2*t*t)-i}function zh(e,t,i){const r=1<<i.z,o=Pa(i.x/r),s=Pa((i.x+1)/r),a=ka(i.y/r),l=ka((i.y+1)/r);return function(e,t,i,r,o=0,s){const a=[];if(!e.length||!i||!r)return a;const l=(e,t)=>{for(const i of e)a.push({polygon:i,bounds:t})},c=Math.ceil(Math.log2(i)),h=Math.ceil(Math.log2(r)),u=c-h,p=[];for(let e=0;e<Math.abs(u);e++)p.push(u>0?0:1);for(let e=0;e<Math.min(c,h);e++)p.push(0),p.push(1);let d=e;if(d=_h(d,t[0].y-o,t[1].y+o,1),d=_h(d,t[0].x-o,t[1].x+o,0),!d.length)return a;const f=[];for(p.length?f.push({polygons:d,bounds:t,depth:0}):l(d,t);f.length;){const e=f.pop(),t=e.depth,i=p[t],r=e.bounds[0],a=e.bounds[1],c=0===i?r.x:r.y,h=0===i?a.x:a.y,u=s?s(i,c,h):.5*(c+h),d=_h(e.polygons,c-o,u+o,i),m=_h(e.polygons,u-o,h+o,i);if(d.length){const e=[r,new n(0===i?u:a.x,1===i?u:a.y)];p.length>t+1?f.push({polygons:d,bounds:e,depth:t+1}):l(d,e)}if(m.length){const e=[new n(0===i?u:r.x,1===i?u:r.y),a];p.length>t+1?f.push({polygons:m,bounds:e,depth:t+1}):l(m,e)}}return a}(e,t,Math.ceil((s-o)/11.25),Math.ceil((a-l)/11.25),1,((e,t,n)=>{if(0===e)return.5*(t+n);{const e=ka((i.y+t/wa)/r);return(Ca(.5*(ka((i.y+n/wa)/r)+e))*r-i.y)*wa}}))}Dn(wh,"FillExtrusionBucket",{omit:["layers","features"]}),Dn(bh,"PartMetadata");const Ph=new Xo({"fill-extrusion-edge-radius":new No($e["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var kh={paint:new Xo({"fill-extrusion-opacity":new No($e["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Go($e["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new No($e["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new No($e["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Zo($e["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Go($e["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Go($e["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new No($e["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new No($e["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new No($e["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"])}),layout:Ph};function Dh(e,t,i){var r=2*Math.PI*6378137/256/Math.pow(2,i);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}class Lh{constructor(e,t,i){this.z=e,this.x=t,this.y=i,this.key=Fh(0,e,e,t,i)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const i=function(e,t,i){var r=Dh(256*e,256*(t=Math.pow(2,i)-t-1),i),n=Dh(256*(e+1),256*(t+1),i);return r[0]+","+r[1]+","+n[0]+","+n[1]}(this.x,this.y,this.z),r=function(e,t,i){let r,n="";for(let o=e;o>0;o--)r=1<<o-1,n+=(t&r?1:0)+(i&r?2:0);return n}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",i)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Bh{constructor(e,t){this.wrap=e,this.canonical=t,this.key=Fh(e,t.z,t.z,t.x,t.y)}}class Rh{constructor(e,t,i,r,n){this.overscaledZ=e,this.wrap=t,this.canonical=new Lh(i,+r,+n),this.key=0===t&&e===i?this.canonical.key:Fh(t,e,i,r,n)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new Rh(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Rh(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return Fh(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const i=this.canonical.z-e;return Fh(this.wrap*+t,e,e,this.canonical.x>>i,this.canonical.y>>i)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new Rh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,i=2*this.canonical.x,r=2*this.canonical.y;return[new Rh(t,this.wrap,t,i,r),new Rh(t,this.wrap,t,i+1,r),new Rh(t,this.wrap,t,i,r+1),new Rh(t,this.wrap,t,i+1,r+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new Rh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new Rh(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Bh(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Fh(e,t,i,r,n){const o=1<<Math.min(i,22);let s=o*(n%o)+r%o;return e&&i<22&&(s+=o*o*((e<0?-2*e-1:2*e)%(1<<2*(22-i)))),16*(32*s+i)+(t-i)}function Oh(e,t){return e.x*t.x+e.y*t.y}function Uh(e,t){if(1===e.length){let i=0;const r=t[i++];let n;for(;!n||r.equals(n);)if(n=t[i++],!n)return 1/0;for(;i<t.length;i++){const o=t[i],s=e[0],a=n.sub(r),l=o.sub(r),c=s.sub(r),h=Oh(a,a),u=Oh(a,l),p=Oh(l,l),d=Oh(c,a),f=Oh(c,l),m=h*p-u*u,_=(p*d-u*f)/m,g=(h*f-u*d)/m,y=r.z*(1-_-g)+n.z*_+o.z*g;if(isFinite(y))return y}return 1/0}{let e=1/0;for(const i of t)e=Math.min(e,i.z);return e}}function Vh(e){const t=new n(e[0],e[1]);return t.z=e[2],t}function jh(e,t,i,r,n,o,s,a){const l=s*n.getElevationAt(e,t,!0,!0),c=0!==o[0],h=c?0===o[1]?s*(o[0]/7-450):s*function(e,t,i){const r=Math.floor(t[0]/8),n=Math.floor(t[1]/8),o=10*(t[0]-8*r),s=10*(t[1]-8*n),a=e.getElevationAt(r,n,!0,!0),l=e.getMeterToDEM(i),c=Math.floor(.5*(o*l-1)),h=Math.floor(.5*(s*l-1)),u=e.tileCoordToPixel(r,n),p=2*c+1,d=2*h+1,f=function(e,t,i,r,n){return[e.getElevationAtPixel(t,i,!0),e.getElevationAtPixel(t+n,i,!0),e.getElevationAtPixel(t,i+n,!0),e.getElevationAtPixel(t+r,i+n,!0)]}(e,u.x-c,u.y-h,p,d),m=Math.abs(f[0]-f[1]),_=Math.abs(f[2]-f[3]),g=Math.abs(f[0]-f[2])+Math.abs(f[1]-f[3]),y=Math.min(.25,.5*l*(m+_)/p),x=Math.min(.25,.5*l*g/d);return a+Math.max(y*o,x*s)}(n,o,a):l;return{base:l+(0===i)?-1:i,top:c?Math.max(h+r,l+i+2):l+r}}Dn(Lh,"CanonicalTileID"),Dn(Rh,"OverscaledTileID",{omit:["projMatrix"]});const Nh=Jo([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:Gh}=Nh,Zh=Jo([{name:"a_packed",components:4,type:"Float32"}]),{members:$h}=Zh,qh=mh.VectorTileFeature.types,Xh=Math.cos(Math.PI/180*37.5);class Wh{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((e=>{this.gradients[e.id]={}})),this.layoutVertexArray=new rs,this.layoutVertexArray2=new ns,this.indexArray=new _s,this.programConfigurations=new ua(e.layers,e.zoom),this.segments=new ba,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,i,r){this.hasPattern=Jc("line",this.layers,t);const n=this.layers[0].layout.get("line-sort-key"),o=[];for(const{feature:t,id:s,index:a,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=$a(t,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),c,i))continue;const h=n?n.evaluate(c,{},i):void 0,u={id:s,properties:t.properties,type:t.type,sourceLayerIndex:l,index:a,geometry:e?c.geometry:Za(t,i,r),patterns:{},sortKey:h};o.push(u)}n&&o.sort(((e,t)=>e.sortKey-t.sortKey));const{lineAtlas:s,featureIndex:a}=t,l=this.addConstantDashes(s);for(const r of o){const{geometry:n,index:o,sourceLayerIndex:c}=r;if(l&&this.addFeatureDashes(r,s),this.hasPattern){const e=Qc("line",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,n,o,i,s.positions,t.availableImages);a.insert(e[o].feature,n,o,c,this.index)}}addConstantDashes(e){let t=!1;for(const i of this.layers){const r=i.paint.get("line-dasharray").value,n=i.layout.get("line-cap").value;if("constant"!==r.kind||"constant"!==n.kind)t=!0;else{const t=n.value,i=r.value;if(!i)continue;e.addDash(i.from,t),e.addDash(i.to,t),i.other&&e.addDash(i.other,t)}}return t}addFeatureDashes(e,t){const i=this.zoom;for(const r of this.layers){const n=r.paint.get("line-dasharray").value,o=r.layout.get("line-cap").value;if("constant"===n.kind&&"constant"===o.kind)continue;let s,a,l,c,h,u;if("constant"===n.kind){const e=n.value;if(!e)continue;s=e.other||e.to,a=e.to,l=e.from}else s=n.evaluate({zoom:i-1},e),a=n.evaluate({zoom:i},e),l=n.evaluate({zoom:i+1},e);"constant"===o.kind?c=h=u=o.value:(c=o.evaluate({zoom:i-1},e),h=o.evaluate({zoom:i},e),u=o.evaluate({zoom:i+1},e)),t.addDash(s,c),t.addDash(a,h),t.addDash(l,u);const p=t.getKey(s,c),d=t.getKey(a,h),f=t.getKey(l,u);e.patterns[r.id]={min:p,mid:d,max:f}}}update(e,t,i,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i,r)}addFeatures(e,t,i,r,n){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,i,r)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,$h)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Gh),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,i,r,n,o){const s=this.layers[0].layout,a=s.get("line-join").evaluate(e,{}),l=s.get("line-cap").evaluate(e,{}),c=s.get("line-miter-limit"),h=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const i of t)this.addLine(i,e,a,l,c,h);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,n,o,r)}addLine(e,t,i,r,n,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const s="Polygon"===qh[t.type];let a=e.length;for(;a>=2&&e[a-1].equals(e[a-2]);)a--;let l=0;for(;l<a-1&&e[l].equals(e[l+1]);)l++;if(a<(s?3:2))return;"bevel"===i&&(n=1.05);const c=this.overscaling<=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*a,this.layoutVertexArray,this.indexArray);let u,p,d,f,m;this.e1=this.e2=-1,s&&(u=e[a-2],m=e[l].sub(u)._unit()._perp());for(let t=l;t<a;t++){if(d=t===a-1?s?e[l+1]:void 0:e[t+1],d&&e[t].equals(d))continue;m&&(f=m),u&&(p=u),u=e[t],m=d?d.sub(u)._unit()._perp():f,f=f||m;let _=f.add(m);0===_.x&&0===_.y||_._unit();const g=f.x*m.x+f.y*m.y,y=_.x*m.x+_.y*m.y,x=0!==y?1/y:1/0,v=2*Math.sqrt(2-2*y),b=y<Xh&&p&&d,w=f.x*m.y-f.y*m.x>0;if(b&&t>l){const e=u.dist(p);if(e>2*c){const t=u.sub(u.sub(p)._mult(c/e)._round());this.updateDistance(p,t),this.addCurrentVertex(t,f,0,0,h),p=t}}const T=p&&d;let E=T?i:s?"butt":r;if(T&&"round"===E&&(x<o?E="miter":x<=2&&(E="fakeround")),"miter"===E&&x>n&&(E="bevel"),"bevel"===E&&(x>2&&(E="flipbevel"),x<n&&(E="miter")),p&&this.updateDistance(p,u),"miter"===E)_._mult(x),this.addCurrentVertex(u,_,0,0,h);else if("flipbevel"===E){if(x>100)_=m.mult(-1);else{const e=x*f.add(m).mag()/f.sub(m).mag();_._perp()._mult(e*(w?-1:1))}this.addCurrentVertex(u,_,0,0,h),this.addCurrentVertex(u,_.mult(-1),0,0,h)}else if("bevel"===E||"fakeround"===E){const e=-Math.sqrt(x*x-1),t=w?e:0,i=w?0:e;if(p&&this.addCurrentVertex(u,f,t,i,h),"fakeround"===E){const e=Math.round(180*v/Math.PI/20);for(let t=1;t<e;t++){let i=t/e;if(.5!==i){const e=i-.5;i+=i*e*(i-1)*((1.0904+g*(g*(3.55645-1.43519*g)-3.2452))*e*e+(.848013+g*(.215638*g-1.06021)))}const r=m.sub(f)._mult(i)._add(f)._unit()._mult(w?-1:1);this.addHalfVertex(u,r.x,r.y,!1,w,0,h)}}d&&this.addCurrentVertex(u,m,-t,-i,h)}else if("butt"===E)this.addCurrentVertex(u,_,0,0,h);else if("square"===E){const e=p?1:-1;p||this.addCurrentVertex(u,_,e,e,h),this.addCurrentVertex(u,_,0,0,h),p&&this.addCurrentVertex(u,_,e,e,h)}else"round"===E&&(p&&(this.addCurrentVertex(u,f,0,0,h),this.addCurrentVertex(u,f,1,1,h,!0)),d&&(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(b&&t<a-1){const e=u.dist(d);if(e>2*c){const t=u.add(d.sub(u)._mult(c/e)._round());this.updateDistance(u,t),this.addCurrentVertex(t,m,0,0,h),u=t}}}}addCurrentVertex(e,t,i,r,n,o=!1){const s=t.y*r-t.x,a=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*i,t.y-t.x*i,o,!1,i,n),this.addHalfVertex(e,s,a,o,!0,-r,n)}addHalfVertex({x:e,y:t},i,r,n,o,s,a){this.layoutVertexArray.emplaceBack((e<<1)+(n?1:0),(t<<1)+(o?1:0),Math.round(63*i)+128,Math.round(63*r)+128,1+(0===s?0:s<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),o?this.e2=l:this.e1=l}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}Dn(Wh,"LineBucket",{omit:["layers","patternFeatures"]});const Hh=new Xo({"line-cap":new Go($e.layout_line["line-cap"]),"line-join":new Go($e.layout_line["line-join"]),"line-miter-limit":new No($e.layout_line["line-miter-limit"]),"line-round-limit":new No($e.layout_line["line-round-limit"]),"line-sort-key":new Go($e.layout_line["line-sort-key"])});var Yh={paint:new Xo({"line-opacity":new Go($e.paint_line["line-opacity"]),"line-color":new Go($e.paint_line["line-color"]),"line-translate":new No($e.paint_line["line-translate"]),"line-translate-anchor":new No($e.paint_line["line-translate-anchor"]),"line-width":new Go($e.paint_line["line-width"]),"line-gap-width":new Go($e.paint_line["line-gap-width"]),"line-offset":new Go($e.paint_line["line-offset"]),"line-blur":new Go($e.paint_line["line-blur"]),"line-dasharray":new Zo($e.paint_line["line-dasharray"]),"line-pattern":new Zo($e.paint_line["line-pattern"]),"line-gradient":new qo($e.paint_line["line-gradient"]),"line-trim-offset":new No($e.paint_line["line-trim-offset"])}),layout:Hh};const Kh=new class extends Go{possiblyEvaluate(e,t){return t=new Do(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,i,r){return t=x({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,i,r)}}(Yh.paint.properties["line-width"].specification);function Jh(e,t){return t>0?t+2*e:e}Kh.useIntegerZoom=!0;const Qh=Jo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),eu=Jo([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),tu=Jo([{name:"a_projected_pos",components:4,type:"Float32"}],4);Jo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const iu=Jo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),ru=Jo([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);Jo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const nu=Jo([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),ou=Jo([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Jo([{name:"triangle",components:3,type:"Uint16"}]),Jo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),Jo([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Jo([{type:"Float32",name:"offsetX"}]),Jo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var su=24;const au=128;function lu(e,t){const{expression:i}=t;if("constant"===i.kind)return{kind:"constant",layoutSize:i.evaluate(new Do(e+1))};if("source"===i.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:r}=i;let n=0;for(;n<t.length&&t[n]<=e;)n++;n=Math.max(0,n-1);let o=n;for(;o<t.length&&t[o]<e+1;)o++;o=Math.min(t.length-1,o);const s=t[n],a=t[o];return"composite"===i.kind?{kind:"composite",minZoom:s,maxZoom:a,interpolationType:r}:{kind:"camera",minZoom:s,maxZoom:a,minSize:i.evaluate(new Do(s)),maxSize:i.evaluate(new Do(a)),interpolationType:r}}}function cu(e,{uSize:t,uSizeT:i},{lowerSize:r,upperSize:n}){return"source"===e.kind?r/au:"composite"===e.kind?yi(r/au,n/au,i):t}function hu(e,t){let i=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){const{interpolationType:n,minZoom:o,maxZoom:s}=e,a=n?f(Vi.interpolationFactor(n,t,o,s),0,1):0;"camera"===e.kind?r=yi(e.minSize,e.maxSize,a):i=a}return{uSizeT:i,uSize:r}}var uu=Object.freeze({__proto__:null,getSizeData:lu,evaluateSizeForFeature:cu,evaluateSizeForZoom:hu,SIZE_PACK_FACTOR:au});function pu(e,t,i){return e.sections.forEach((e=>{e.text=function(e,t,i){const r=t.layout.get("text-transform").evaluate(i,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),ko.applyArabicShaping&&(e=ko.applyArabicShaping(e)),e}(e.text,t,i)})),e}const du={"!":"︕","#":"＃",$:"＄","%":"％","&":"＆","(":"︵",")":"︶","*":"＊","+":"＋",",":"︐","-":"︲",".":"・","/":"／",":":"︓",";":"︔","<":"︿","=":"＝",">":"﹀","?":"︖","@":"＠","[":"﹇","\\":"＼","]":"﹈","^":"＾",_:"︳","`":"｀","{":"︷","|":"―","}":"︸","~":"～","¢":"￠","£":"￡","¥":"￥","¦":"￤","¬":"￢","¯":"￣","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"￦","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","！":"︕","（":"︵","）":"︶","，":"︐","－":"︲","．":"・","：":"︓","；":"︔","＜":"︿","＞":"﹀","？":"︖","［":"﹇","］":"﹈","＿":"︳","｛":"︷","｜":"―","｝":"︸","｟":"︵","｠":"︶","｡":"︒","｢":"﹁","｣":"﹂"};function fu(e){return"︶"===e||"﹈"===e||"︸"===e||"﹄"===e||"﹂"===e||"︾"===e||"︼"===e||"︺"===e||"︘"===e||"﹀"===e||"︐"===e||"︓"===e||"︔"===e||"｀"===e||"￣"===e||"︑"===e||"︒"===e}function mu(e){return"︵"===e||"﹇"===e||"︷"===e||"﹃"===e||"﹁"===e||"︽"===e||"︻"===e||"︹"===e||"︗"===e||"︿"===e}var _u=function(e,t,i,r,n){var o,s,a=8*n-r-1,l=(1<<a)-1,c=l>>1,h=-7,u=i?n-1:0,p=i?-1:1,d=e[t+u];for(u+=p,o=d&(1<<-h)-1,d>>=-h,h+=a;h>0;o=256*o+e[t+u],u+=p,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=r;h>0;s=256*s+e[t+u],u+=p,h-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=c}return(d?-1:1)*s*Math.pow(2,o-r)},gu=function(e,t,i,r,n,o){var s,a,l,c=8*o-n-1,h=(1<<c)-1,u=h>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+u>=1?p/l:p*Math.pow(2,1-u))*l>=2&&(s++,l/=2),s+u>=h?(a=0,s=h):s+u>=1?(a=(t*l-1)*Math.pow(2,n),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,n),s=0));n>=8;e[i+d]=255&a,d+=f,a/=256,n-=8);for(s=s<<n|a,c+=n;c>0;e[i+d]=255&s,d+=f,s/=256,c-=8);e[i+d-f]|=128*m},yu=xu;function xu(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}xu.Varint=0,xu.Fixed64=1,xu.Bytes=2,xu.Fixed32=5;var vu=4294967296,bu=1/vu,wu="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Tu(e){return e.type===xu.Bytes?e.readVarint()+e.pos:e.pos+1}function Eu(e,t,i){return i?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function Su(e,t,i){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));i.realloc(r);for(var n=i.pos-1;n>=e;n--)i.buf[n+r]=i.buf[n]}function Mu(e,t){for(var i=0;i<e.length;i++)t.writeVarint(e[i])}function Iu(e,t){for(var i=0;i<e.length;i++)t.writeSVarint(e[i])}function Au(e,t){for(var i=0;i<e.length;i++)t.writeFloat(e[i])}function Cu(e,t){for(var i=0;i<e.length;i++)t.writeDouble(e[i])}function zu(e,t){for(var i=0;i<e.length;i++)t.writeBoolean(e[i])}function Pu(e,t){for(var i=0;i<e.length;i++)t.writeFixed32(e[i])}function ku(e,t){for(var i=0;i<e.length;i++)t.writeSFixed32(e[i])}function Du(e,t){for(var i=0;i<e.length;i++)t.writeFixed64(e[i])}function Lu(e,t){for(var i=0;i<e.length;i++)t.writeSFixed64(e[i])}function Bu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function Ru(e,t,i){e[i]=t,e[i+1]=t>>>8,e[i+2]=t>>>16,e[i+3]=t>>>24}function Fu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function Ou(e,t,i){t.glyphs=[],1===e&&i.readMessage(Uu,t)}function Uu(e,t,i){if(3===e){const{id:e,bitmap:r,width:n,height:o,left:s,top:a,advance:l}=i.readMessage(Vu,{});t.glyphs.push({id:e,bitmap:new uc({width:n+6,height:o+6},r),metrics:{width:n,height:o,left:s,top:a,advance:l}})}else 4===e?t.ascender=i.readSVarint():5===e&&(t.descender=i.readSVarint())}function Vu(e,t,i){1===e?t.id=i.readVarint():2===e?t.bitmap=i.readBytes():3===e?t.width=i.readVarint():4===e?t.height=i.readVarint():5===e?t.left=i.readSVarint():6===e?t.top=i.readSVarint():7===e&&(t.advance=i.readVarint())}function ju(e){let t=0,i=0;for(const r of e)t+=r.w*r.h,i=Math.max(i,r.w);e.sort(((e,t)=>t.h-e.h));const r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),i),h:1/0}];let n=0,o=0;for(const t of e)for(let e=r.length-1;e>=0;e--){const i=r[e];if(!(t.w>i.w||t.h>i.h)){if(t.x=i.x,t.y=i.y,o=Math.max(o,t.y+t.h),n=Math.max(n,t.x+t.w),t.w===i.w&&t.h===i.h){const t=r.pop();e<r.length&&(r[e]=t)}else t.h===i.h?(i.x+=t.w,i.w-=t.w):t.w===i.w?(i.y+=t.h,i.h-=t.h):(r.push({x:i.x+t.w,y:i.y,w:i.w-t.w,h:t.h}),i.y+=t.h,i.h-=t.h);break}}return{w:n,h:o,fill:t/(n*o)||0}}xu.prototype={destroy:function(){this.buf=null},readFields:function(e,t,i){for(i=i||this.length;this.pos<i;){var r=this.readVarint(),n=r>>3,o=this.pos;this.type=7&r,e(n,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=Bu(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=Fu(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=Bu(this.buf,this.pos)+Bu(this.buf,this.pos+4)*vu;return this.pos+=8,e},readSFixed64:function(){var e=Bu(this.buf,this.pos)+Fu(this.buf,this.pos+4)*vu;return this.pos+=8,e},readFloat:function(){var e=_u(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=_u(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,i,r=this.buf;return t=127&(i=r[this.pos++]),i<128?t:(t|=(127&(i=r[this.pos++]))<<7,i<128?t:(t|=(127&(i=r[this.pos++]))<<14,i<128?t:(t|=(127&(i=r[this.pos++]))<<21,i<128?t:function(e,t,i){var r,n,o=i.buf;if(r=(112&(n=o[i.pos++]))>>4,n<128)return Eu(e,r,t);if(r|=(127&(n=o[i.pos++]))<<3,n<128)return Eu(e,r,t);if(r|=(127&(n=o[i.pos++]))<<10,n<128)return Eu(e,r,t);if(r|=(127&(n=o[i.pos++]))<<17,n<128)return Eu(e,r,t);if(r|=(127&(n=o[i.pos++]))<<24,n<128)return Eu(e,r,t);if(r|=(1&(n=o[i.pos++]))<<31,n<128)return Eu(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(i=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&wu?function(e,t,i){return wu.decode(e.subarray(t,i))}(this.buf,t,e):function(e,t,i){for(var r="",n=t;n<i;){var o,s,a,l=e[n],c=null,h=l>239?4:l>223?3:l>191?2:1;if(n+h>i)break;1===h?l<128&&(c=l):2===h?128==(192&(o=e[n+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===h?(s=e[n+2],128==(192&(o=e[n+1]))&&128==(192&s)&&((c=(15&l)<<12|(63&o)<<6|63&s)<=2047||c>=55296&&c<=57343)&&(c=null)):4===h&&(s=e[n+2],a=e[n+3],128==(192&(o=e[n+1]))&&128==(192&s)&&128==(192&a)&&((c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,h=1):c>65535&&(c-=65536,r+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),r+=String.fromCharCode(c),n+=h}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==xu.Bytes)return e.push(this.readVarint(t));var i=Tu(this);for(e=e||[];this.pos<i;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==xu.Bytes)return e.push(this.readSVarint());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==xu.Bytes)return e.push(this.readBoolean());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==xu.Bytes)return e.push(this.readFloat());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==xu.Bytes)return e.push(this.readDouble());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==xu.Bytes)return e.push(this.readFixed32());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==xu.Bytes)return e.push(this.readSFixed32());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==xu.Bytes)return e.push(this.readFixed64());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==xu.Bytes)return e.push(this.readSFixed64());var t=Tu(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===xu.Varint)for(;this.buf[this.pos++]>127;);else if(t===xu.Bytes)this.pos=this.readVarint()+this.pos;else if(t===xu.Fixed32)this.pos+=4;else{if(t!==xu.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var i=new Uint8Array(t);i.set(this.buf),this.buf=i,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),Ru(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),Ru(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),Ru(this.buf,-1&e,this.pos),Ru(this.buf,Math.floor(e*bu),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),Ru(this.buf,-1&e,this.pos),Ru(this.buf,Math.floor(e*bu),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var i,r;if(e>=0?(i=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(i=~(-e%4294967296))?i=i+1|0:(i=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,i){i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,i.buf[i.pos]=127&(e>>>=7)}(i,0,t),function(e,t){var i=(7&e)<<4;t.buf[t.pos++]|=i|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,i){for(var r,n,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!n){r>56319||o+1===t.length?(e[i++]=239,e[i++]=191,e[i++]=189):n=r;continue}if(r<56320){e[i++]=239,e[i++]=191,e[i++]=189,n=r;continue}r=n-55296<<10|r-56320|65536,n=null}else n&&(e[i++]=239,e[i++]=191,e[i++]=189,n=null);r<128?e[i++]=r:(r<2048?e[i++]=r>>6|192:(r<65536?e[i++]=r>>12|224:(e[i++]=r>>18|240,e[i++]=r>>12&63|128),e[i++]=r>>6&63|128),e[i++]=63&r|128)}return i}(this.buf,e,this.pos);var i=this.pos-t;i>=128&&Su(t,i,this),this.pos=t-1,this.writeVarint(i),this.pos+=i},writeFloat:function(e){this.realloc(4),gu(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),gu(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var i=0;i<t;i++)this.buf[this.pos++]=e[i]},writeRawMessage:function(e,t){this.pos++;var i=this.pos;e(t,this);var r=this.pos-i;r>=128&&Su(i,r,this),this.pos=i-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,i){this.writeTag(e,xu.Bytes),this.writeRawMessage(t,i)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,Mu,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,Iu,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,zu,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Au,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Cu,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,Pu,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,ku,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,Du,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,Lu,t)},writeBytesField:function(e,t){this.writeTag(e,xu.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,xu.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,xu.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,xu.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,xu.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,xu.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,xu.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,xu.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,xu.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,xu.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};class Nu{constructor(e,{pixelRatio:t,version:i,stretchX:r,stretchY:n,content:o}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=r,this.stretchY=n,this.content=o,this.version=i}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class Gu{constructor(e,t){const i={},r={};this.haveRenderCallbacks=[];const n=[];this.addImages(e,i,n),this.addImages(t,r,n);const{w:o,h:s}=ju(n),a=new pc({width:o||1,height:s||1});for(const t in e){const r=e[t],n=i[t].paddedRect;pc.copy(r.data,a,{x:0,y:0},{x:n.x+1,y:n.y+1},r.data)}for(const e in t){const i=t[e],n=r[e].paddedRect,o=n.x+1,s=n.y+1,l=i.data.width,c=i.data.height;pc.copy(i.data,a,{x:0,y:0},{x:o,y:s},i.data),pc.copy(i.data,a,{x:0,y:c-1},{x:o,y:s-1},{width:l,height:1}),pc.copy(i.data,a,{x:0,y:0},{x:o,y:s+c},{width:l,height:1}),pc.copy(i.data,a,{x:l-1,y:0},{x:o-1,y:s},{width:1,height:c}),pc.copy(i.data,a,{x:0,y:0},{x:o+l,y:s},{width:1,height:c})}this.image=a,this.iconPositions=i,this.patternPositions=r}addImages(e,t,i){for(const r in e){const n=e[r],o={x:0,y:0,w:n.data.width+2,h:n.data.height+2};i.push(o),t[r]=new Nu(o,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(r)}}patchUpdatedImages(e,t){this.haveRenderCallbacks=this.haveRenderCallbacks.filter((t=>e.hasImage(t))),e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const i in e.updatedImages)this.patchUpdatedImage(this.iconPositions[i],e.getImage(i),t),this.patchUpdatedImage(this.patternPositions[i],e.getImage(i),t)}patchUpdatedImage(e,t,i){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[r,n]=e.tl;i.update(t.data,void 0,{x:r,y:n})}}Dn(Nu,"ImagePosition"),Dn(Gu,"ImageAtlas");const Zu={horizontal:1,vertical:2,horizontalOnly:3};class $u{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const i=new $u;return i.scale=e||1,i.fontStack=t,i}static forImage(e){const t=new $u;return t.imageName=e,t}}class qu{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const i=new qu;for(let r=0;r<e.sections.length;r++){const n=e.sections[r];n.image?i.addImageSection(n):i.addTextSection(n,t)}return i}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSections(){return this.sections}getSectionIndex(e){return this.sectionIndex[e]}getCharCode(e){return this.text.charCodeAt(e)}verticalizePunctuation(e){this.text=function(e,t){let i="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r+1)||null,o=e.charCodeAt(r-1)||null;i+=!t&&(n&&go(n)&&!du[e[r+1]]||o&&go(o)&&!du[e[r-1]])||!du[e[r]]?e[r]:du[e[r]]}return i}(this.text,e)}trim(){let e=0;for(let t=0;t<this.text.length&&Wu[this.text.charCodeAt(t)];t++)e++;let t=this.text.length;for(let i=this.text.length-1;i>=0&&i>=e&&Wu[this.text.charCodeAt(i)];i--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const i=new qu;return i.text=this.text.substring(e,t),i.sectionIndex=this.sectionIndex.slice(e,t),i.sections=this.sections,i}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((e,t)=>Math.max(e,this.sections[t].scale)),0)}addTextSection(e,t){this.text+=e.text,this.sections.push($u.forText(e.scale,e.fontStack||t));const i=this.sections.length-1;for(let t=0;t<e.text.length;++t)this.sectionIndex.push(i)}addImageSection(e){const t=e.image?e.image.name:"";if(0===t.length)return void P("Can't add FormattedSection with an empty image.");const i=this.getNextImageSectionCharCode();i?(this.text+=String.fromCharCode(i),this.sections.push($u.forImage(t)),this.sectionIndex.push(this.sections.length-1)):P("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Xu(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m){const _=qu.fromFeature(e,n);let g;u===Zu.vertical&&_.verticalizePunctuation(p);const{processBidirectionalText:y,processStyledBidirectionalText:x}=ko;if(y&&1===_.sections.length){g=[];const e=y(_.toString(),tp(_,c,o,t,r,d,f));for(const t of e){const e=new qu;e.text=t,e.sections=_.sections;for(let i=0;i<t.length;i++)e.sectionIndex.push(0);g.push(e)}}else if(x){g=[];const e=x(_.text,_.sectionIndex,tp(_,c,o,t,r,d,f));for(const t of e){const e=new qu;e.text=t[0],e.sectionIndex=t[1],e.sections=_.sections,g.push(e)}}else g=function(e,t){const i=[],r=e.text;let n=0;for(const r of t)i.push(e.substring(n,r)),n=r;return n<r.length&&i.push(e.substring(n,r.length)),i}(_,tp(_,c,o,t,r,d,f));const v=[],b={positionedLines:v,text:_.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:u,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(e,t,i,r,n,o,s,a,l,c,h,u){let p=0,d=0,f=0;const m="right"===a?1:"left"===a?0:.5;let _=!1;for(const e of n){const i=e.getSections();for(const e of i){if(e.imageName)continue;const i=t[e.fontStack];if(i&&(_=void 0!==i.ascender&&void 0!==i.descender,!_))break}if(!_)break}let g=0;for(const s of n){s.trim();const n=s.getMaxScale(),a=(n-1)*su,x={positionedGlyphs:[],lineOffset:0};e.positionedLines[g]=x;const v=x.positionedGlyphs;let b=0;if(!s.length()){d+=o,++g;continue}let w=0,T=0;for(let o=0;o<s.length();o++){const a=s.getSection(o),f=s.getSectionIndex(o),m=s.getCharCode(o);let g=a.scale,x=null,E=null,S=null,M=su,I=0;const A=!(l===Zu.horizontal||!h&&!_o(m)||h&&(Wu[m]||(y=m,Un(y)||Vn(y)||jn(y)||so(y)||ho(y))));if(a.imageName){const t=r[a.imageName];if(!t)continue;S=a.imageName,e.iconsInText=e.iconsInText||!0,E=t.paddedRect;const i=t.displaySize;g=g*su/u,x={width:i[0],height:i[1],left:1,top:-3,advance:A?i[1]:i[0],localGlyph:!1},I=_?-x.height*g:n*su-17-i[1]*g,M=x.advance;const o=(A?i[0]:i[1])*g-su*n;o>0&&o>b&&(b=o)}else{const e=i[a.fontStack];if(!e)continue;e[m]&&(E=e[m]);const r=t[a.fontStack];if(!r)continue;const o=r.glyphs[m];if(!o)continue;if(x=o.metrics,M=8203!==m?su:0,_){const e=void 0!==r.ascender?Math.abs(r.ascender):0,t=void 0!==r.descender?Math.abs(r.descender):0,i=(e+t)*g;w<i&&(w=i,T=(e-t)/2*g),I=-e*g}else I=(n-g)*su-17}A?(e.verticalizable=!0,v.push({glyph:m,imageName:S,x:p,y:d+I,vertical:A,scale:g,localGlyph:x.localGlyph,fontStack:a.fontStack,sectionIndex:f,metrics:x,rect:E}),p+=M*g+c):(v.push({glyph:m,imageName:S,x:p,y:d+I,vertical:A,scale:g,localGlyph:x.localGlyph,fontStack:a.fontStack,sectionIndex:f,metrics:x,rect:E}),p+=x.advance*g+c)}0!==v.length&&(f=Math.max(p-c,f),_?rp(v,m,b,T,o*n/2):rp(v,m,b,0,o/2)),p=0;const E=o*n+b;x.lineOffset=Math.max(b,a),d+=E,++g}var y;const x=d,{horizontalAlign:v,verticalAlign:b}=ip(s);(function(e,t,i,r,n,o){const s=(t-i)*n,a=-o*r;for(const t of e)for(const e of t.positionedGlyphs)e.x+=s,e.y+=a})(e.positionedLines,m,v,b,f,x),e.top+=-b*x,e.bottom=e.top+x,e.left+=-v*f,e.right=e.left+f,e.hasBaseline=_}(b,t,i,r,g,s,a,l,u,c,p,m),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(v)&&b}const Wu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Hu={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Yu(e,t,i,r,n,o){if(t.imageName){const e=r[t.imageName];return e?e.displaySize[0]*t.scale*su/o+n:0}{const r=i[t.fontStack],o=r&&r.glyphs[e];return o?o.metrics.advance*t.scale+n:0}}function Ku(e,t,i,r){const n=Math.pow(e-t,2);return r?e<t?n/2:2*n:n+Math.abs(i)*i}function Ju(e,t,i){let r=0;return 10===e&&(r-=1e4),i&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function Qu(e,t,i,r,n,o){let s=null,a=Ku(t,i,n,o);for(const e of r){const r=Ku(t-e.x,i,n,o)+e.badness;r<=a&&(s=e,a=r)}return{index:e,x:t,priorBreak:s,badness:a}}function ep(e){return e?ep(e.priorBreak).concat(e.index):[]}function tp(e,t,i,r,n,o,s){if("point"!==o)return[];if(!e)return[];const a=[],l=function(e,t,i,r,n,o){let s=0;for(let i=0;i<e.length();i++){const a=e.getSection(i);s+=Yu(e.getCharCode(i),a,r,n,t,o)}return s/Math.max(1,Math.ceil(s/i))}(e,t,i,r,n,s),c=e.text.indexOf("​")>=0;let h=0;for(let i=0;i<e.length();i++){const o=e.getSection(i),p=e.getCharCode(i);if(Wu[p]||(h+=Yu(p,o,r,n,t,s)),i<e.length()-1){const t=!((u=p)<11904||!(Hn(u)||Wn(u)||lo(u)||oo(u)||Qn(u)||Nn(u)||Yn(u)||$n(u)||eo(u)||to(u)||Jn(u)||uo(u)||qn(u)||Zn(u)||Gn(u)||Kn(u)||Xn(u)||ao(u)||ro(u)||io(u)));(Hu[p]||t||o.imageName)&&a.push(Qu(i+1,h,l,a,Ju(p,e.getCharCode(i+1),t&&c),!1))}}var u;return ep(Qu(e.length(),h,l,a,0,!0))}function ip(e){let t=.5,i=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":i=1;break;case"top":case"top-right":case"top-left":i=0}return{horizontalAlign:t,verticalAlign:i}}function rp(e,t,i,r,n){if(!(t||i||r||n))return;const o=e.length-1,s=e[o],a=(s.x+s.metrics.advance*s.scale)*t;for(let t=0;t<=o;t++)e[t].x-=a,e[t].y+=i+r+n}function np(e,t,i){const{horizontalAlign:r,verticalAlign:n}=ip(i),o=t[0]-e.displaySize[0]*r,s=t[1]-e.displaySize[1]*n;return{image:e,top:s,bottom:s+e.displaySize[1],left:o,right:o+e.displaySize[0]}}function op(e,t,i,r,n,o){const s=e.image;let a;if(s.content){const e=s.content,t=s.pixelRatio||1;a=[e[0]/t,e[1]/t,s.displaySize[0]-e[2]/t,s.displaySize[1]-e[3]/t]}const l=t.left*o,c=t.right*o;let h,u,p,d;"width"===i||"both"===i?(d=n[0]+l-r[3],u=n[0]+c+r[1]):(d=n[0]+(l+c-s.displaySize[0])/2,u=d+s.displaySize[0]);const f=t.top*o,m=t.bottom*o;return"height"===i||"both"===i?(h=n[1]+f-r[0],p=n[1]+m+r[2]):(h=n[1]+(f+m-s.displaySize[1])/2,p=h+s.displaySize[1]),{image:s,top:h,right:u,bottom:p,left:d,collisionPadding:a}}class sp extends n{constructor(e,t,i,r,n){super(e,t),this.angle=r,this.z=i,void 0!==n&&(this.segment=n)}clone(){return new sp(this.x,this.y,this.z,this.angle,this.segment)}}function ap(e,t,i,r,n){if(void 0===t.segment)return!0;let o=t,s=t.segment+1,a=0;for(;a>-i/2;){if(s--,s<0)return!1;a-=e[s].dist(o),o=e[s]}a+=e[s].dist(e[s+1]),s++;const l=[];let c=0;for(;a<i/2;){const t=e[s],i=e[s+1];if(!i)return!1;let o=e[s-1].angleTo(t)-t.angleTo(i);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:a,angleDelta:o}),c+=o;a-l[0].distance>r;)c-=l.shift().angleDelta;if(c>n)return!1;s++,a+=t.dist(i)}return!0}function lp(e){let t=0;for(let i=0;i<e.length-1;i++)t+=e[i].dist(e[i+1]);return t}function cp(e,t,i){return e?.6*t*i:0}function hp(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function up(e,t,i,r,n,o){const s=cp(i,n,o),a=hp(i,r)*o;let l=0;const c=lp(e)/2;for(let i=0;i<e.length-1;i++){const r=e[i],n=e[i+1],o=r.dist(n);if(l+o>c){const h=(c-l)/o,u=yi(r.x,n.x,h),p=yi(r.y,n.y,h),d=new sp(u,p,0,n.angleTo(r),i);return!s||ap(e,d,a,s,t)?d:void 0}l+=o}}function pp(e,t,i,r,n,o,s,a,l){const c=cp(r,o,s),h=hp(r,n),u=h*s,p=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-u<t/4&&(t=u+t/4),dp(e,p?t/2*a%t:(h/2+2*o)*s*a%t,t,c,i,u,p,!1,l)}function dp(e,t,i,r,n,o,s,a,l){const c=o/2,h=lp(e);let u=0,p=t-i,d=[];for(let t=0;t<e.length-1;t++){const s=e[t],a=e[t+1],f=s.dist(a),m=a.angleTo(s);for(;p+i<u+f;){p+=i;const _=(p-u)/f,g=yi(s.x,a.x,_),y=yi(s.y,a.y,_);if(g>=0&&g<l&&y>=0&&y<l&&p-c>=0&&p+c<=h){const i=new sp(g,y,0,m,t);i._round(),r&&!ap(e,i,o,r,n)||d.push(i)}}u+=f}return a||d.length||s||(d=dp(e,u/2,i,r,n,o,s,!0,l)),d}function fp(e,t,i,r,o){const s=[];for(let a=0;a<e.length;a++){const l=e[a];let c;for(let e=0;e<l.length-1;e++){let a=l[e],h=l[e+1];a.x<t&&h.x<t||(a.x<t?a=new n(t,a.y+(t-a.x)/(h.x-a.x)*(h.y-a.y))._round():h.x<t&&(h=new n(t,a.y+(t-a.x)/(h.x-a.x)*(h.y-a.y))._round()),a.y<i&&h.y<i||(a.y<i?a=new n(a.x+(i-a.y)/(h.y-a.y)*(h.x-a.x),i)._round():h.y<i&&(h=new n(a.x+(i-a.y)/(h.y-a.y)*(h.x-a.x),i)._round()),a.x>=r&&h.x>=r||(a.x>=r?a=new n(r,a.y+(r-a.x)/(h.x-a.x)*(h.y-a.y))._round():h.x>=r&&(h=new n(r,a.y+(r-a.x)/(h.x-a.x)*(h.y-a.y))._round()),a.y>=o&&h.y>=o||(a.y>=o?a=new n(a.x+(o-a.y)/(h.y-a.y)*(h.x-a.x),o)._round():h.y>=o&&(h=new n(a.x+(o-a.y)/(h.y-a.y)*(h.x-a.x),o)._round()),c&&a.equals(c[c.length-1])||(c=[a],s.push(c)),c.push(h)))))}}return s}Dn(sp,"Anchor");const mp=1e20;function _p(e,t,i,r,n,o,s,a,l){for(let c=t;c<t+r;c++)gp(e,i*o+c,o,n,s,a,l);for(let c=i;c<i+n;c++)gp(e,c*o+t,1,r,s,a,l)}function gp(e,t,i,r,n,o,s){o[0]=0,s[0]=-mp,s[1]=mp,n[0]=e[t];for(let a=1,l=0,c=0;a<r;a++){n[a]=e[t+a*i];const r=a*a;do{const e=o[l];c=(n[a]-n[e]+r-e*e)/(a-e)/2}while(c<=s[l]&&--l>-1);l++,o[l]=a,s[l]=c,s[l+1]=mp}for(let a=0,l=0;a<r;a++){for(;s[l+1]<a;)l++;const r=o[l],c=a-r;e[t+a*i]=n[r]+c*c}}const yp={none:0,ideographs:1,all:2};class xp{constructor(e,t,i){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=i,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(e){this.url=e}getGlyphs(e,t){const i=[];for(const t in e)for(const r of e[t])i.push({stack:t,id:r});g(i,(({stack:e,id:t},i)=>{let r=this.entries[e];r||(r=this.entries[e]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let n=r.glyphs[t];if(void 0!==n)return void i(null,{stack:e,id:t,glyph:n});if(n=this._tinySDF(r,e,t),n)return r.glyphs[t]=n,void i(null,{stack:e,id:t,glyph:n});const o=Math.floor(t/256);if(256*o>65535)return void i(new Error("glyphs > 65535 not supported"));if(r.ranges[o])return void i(null,{stack:e,id:t,glyph:n});let s=r.requests[o];s||(s=r.requests[o]=[],xp.loadGlyphRange(e,o,this.url,this.requestManager,((e,t)=>{if(t){r.ascender=t.ascender,r.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(r.glyphs[+e]=t.glyphs[+e]);r.ranges[o]=!0}for(const i of s)i(e,t);delete r.requests[o]}))),s.push(((r,n)=>{r?i(r):n&&i(null,{stack:e,id:t,glyph:n.glyphs[t]||null})}))}),((e,i)=>{if(e)t(e);else if(i){const e={};for(const{stack:t,id:r,glyph:n}of i)void 0===e[t]&&(e[t]={}),void 0===e[t].glyphs&&(e[t].glyphs={}),e[t].glyphs[r]=n&&{id:n.id,bitmap:n.bitmap.clone(),metrics:n.metrics},e[t].ascender=this.entries[t].ascender,e[t].descender=this.entries[t].descender;t(null,e)}}))}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==yp.none&&(this.localGlyphMode===yp.all?!!this.localFontFamily:!!this.localFontFamily&&(to(e)||no(e)||qn(e)||Xn(e)||$n(e)))}_tinySDF(e,t,i){const r=this.localFontFamily;if(!r||!this._doesCharSupportLocalGlyph(i))return;let n=e.tinySDF;if(!n){let i="400";/bold/i.test(t)?i="900":/medium/i.test(t)?i="500":/light/i.test(t)&&(i="200"),n=e.tinySDF=new xp.TinySDF({fontFamily:r,fontWeight:i,fontSize:48,buffer:6,radius:16}),n.fontWeight=i}if(this.localGlyphs[n.fontWeight][i])return this.localGlyphs[n.fontWeight][i];const o=String.fromCharCode(i),{data:s,width:a,height:l,glyphWidth:c,glyphHeight:h,glyphLeft:u,glyphTop:p,glyphAdvance:d}=n.draw(o);return this.localGlyphs[n.fontWeight][i]={id:i,bitmap:new uc({width:a,height:l},s),metrics:{width:c/2,height:h/2,left:u/2,top:p/2-27,advance:d/2,localGlyph:!0}}}}function vp(e,t,i,r){const o=[],s=e.image,a=s.pixelRatio,l=s.paddedRect.w-2,c=s.paddedRect.h-2,h=e.right-e.left,u=e.bottom-e.top,p=s.stretchX||[[0,l]],d=s.stretchY||[[0,c]],f=(e,t)=>e+t[1]-t[0],m=p.reduce(f,0),_=d.reduce(f,0),g=l-m,y=c-_;let x=0,v=m,b=0,w=_,T=0,E=g,S=0,M=y;if(s.content&&r){const e=s.content;x=bp(p,0,e[0]),b=bp(d,0,e[1]),v=bp(p,e[0],e[2]),w=bp(d,e[1],e[3]),T=e[0]-x,S=e[1]-b,E=e[2]-e[0]-v,M=e[3]-e[1]-w}const I=(r,o,l,c)=>{const p=Tp(r.stretch-x,v,h,e.left),d=Ep(r.fixed-T,E,r.stretch,m),f=Tp(o.stretch-b,w,u,e.top),g=Ep(o.fixed-S,M,o.stretch,_),y=Tp(l.stretch-x,v,h,e.left),I=Ep(l.fixed-T,E,l.stretch,m),A=Tp(c.stretch-b,w,u,e.top),C=Ep(c.fixed-S,M,c.stretch,_),z=new n(p,f),P=new n(y,f),k=new n(y,A),D=new n(p,A),L=new n(d/a,g/a),B=new n(I/a,C/a),R=t*Math.PI/180;if(R){const e=Math.sin(R),t=Math.cos(R),i=[t,-e,e,t];z._matMult(i),P._matMult(i),D._matMult(i),k._matMult(i)}const F=r.stretch+r.fixed,O=o.stretch+o.fixed;return{tl:z,tr:P,bl:D,br:k,tex:{x:s.paddedRect.x+1+F,y:s.paddedRect.y+1+O,w:l.stretch+l.fixed-F,h:c.stretch+c.fixed-O},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:B,minFontScaleX:E/a/h,minFontScaleY:M/a/u,isSDF:i}};if(r&&(s.stretchX||s.stretchY)){const e=wp(p,g,m),t=wp(d,y,_);for(let i=0;i<e.length-1;i++){const r=e[i],n=e[i+1];for(let e=0;e<t.length-1;e++)o.push(I(r,t[e],n,t[e+1]))}}else o.push(I({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return o}function bp(e,t,i){let r=0;for(const n of e)r+=Math.max(t,Math.min(i,n[1]))-Math.max(t,Math.min(i,n[0]));return r}function wp(e,t,i){const r=[{fixed:-1,stretch:0}];for(const[t,i]of e){const e=r[r.length-1];r.push({fixed:t-e.stretch,stretch:e.stretch}),r.push({fixed:t-e.stretch,stretch:e.stretch+(i-t)})}return r.push({fixed:t+1,stretch:i}),r}function Tp(e,t,i,r){return e/t*i+r}function Ep(e,t,i,r){return e-t*i/r}function Sp(e,t,i,r){const n=t+e.positionedLines[r].lineOffset;return 0===r?i+n/2:i+(n+(t+e.positionedLines[r-1].lineOffset))/2}xp.loadGlyphRange=function(e,t,i,r,n){const o=256*t,s=o+255,a=r.transformRequest(r.normalizeGlyphsURL(i).replace("{fontstack}",e).replace("{range}",`${o}-${s}`),Ae.Glyphs);ke(a,((e,t)=>{if(e)n(e);else if(t){const e={},i=function(e){return new yu(e).readFields(Ou,{})}(t);for(const t of i.glyphs)e[t.id]=t;n(null,{glyphs:e,ascender:i.ascender,descender:i.descender})}}))},xp.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:i=8,cutoff:r=.25,fontFamily:n="sans-serif",fontWeight:o="normal",fontStyle:s="normal"}={}){this.buffer=t,this.cutoff=r,this.radius=i;const a=this.size=e+4*t,l=this._createCanvas(a),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${s} ${o} ${e}px ${n}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Uint16Array(a)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:i,actualBoundingBoxDescent:r,actualBoundingBoxLeft:n,actualBoundingBoxRight:o}=this.ctx.measureText(e),s=Math.ceil(i),a=Math.min(this.size-this.buffer,Math.ceil(o-n)),l=Math.min(this.size-this.buffer,s+Math.ceil(r)),c=a+2*this.buffer,h=l+2*this.buffer,u=Math.max(c*h,0),p=new Uint8ClampedArray(u),d={data:p,width:c,height:h,glyphWidth:a,glyphHeight:l,glyphTop:s,glyphLeft:0,glyphAdvance:t};if(0===a||0===l)return d;const{ctx:f,buffer:m,gridInner:_,gridOuter:g}=this;f.clearRect(m,m,a,l),f.fillText(e,m,m+s);const y=f.getImageData(m,m,a,l);g.fill(mp,0,u),_.fill(0,0,u);for(let e=0;e<l;e++)for(let t=0;t<a;t++){const i=y.data[4*(e*a+t)+3]/255;if(0===i)continue;const r=(e+m)*c+t+m;if(1===i)g[r]=0,_[r]=mp;else{const e=.5-i;g[r]=e>0?e*e:0,_[r]=e<0?e*e:0}}_p(g,0,0,c,h,c,this.f,this.v,this.z),_p(_,m,m,a,l,c,this.f,this.v,this.z);for(let e=0;e<u;e++){const t=Math.sqrt(g[e])-Math.sqrt(_[e]);p[e]=Math.round(255-255*(t/this.radius+this.cutoff))}return d}};class Mp{constructor(e=[],t=Ip){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,r=t[e];for(;e>0;){const n=e-1>>1,o=t[n];if(i(r,o)>=0)break;t[e]=o,e=n}t[e]=r}_down(e){const{data:t,compare:i}=this,r=this.length>>1,n=t[e];for(;e<r;){let r=1+(e<<1),o=t[r];const s=r+1;if(s<this.length&&i(t[s],o)<0&&(r=s,o=t[s]),i(o,n)>=0)break;t[e]=o,e=r}t[e]=n}}function Ip(e,t){return e<t?-1:e>t?1:0}function Ap(e,t=1,i=!1){let r=1/0,o=1/0,s=-1/0,a=-1/0;const l=e[0];for(let e=0;e<l.length;e++){const t=l[e];(!e||t.x<r)&&(r=t.x),(!e||t.y<o)&&(o=t.y),(!e||t.x>s)&&(s=t.x),(!e||t.y>a)&&(a=t.y)}const c=Math.min(s-r,a-o);let h=c/2;const u=new Mp([],Cp);if(0===c)return new n(r,o);for(let t=r;t<s;t+=c)for(let i=o;i<a;i+=c)u.push(new zp(t+h,i+h,h,e));let p=function(e){let t=0,i=0,r=0;const n=e[0];for(let e=0,o=n.length,s=o-1;e<o;s=e++){const o=n[e],a=n[s],l=o.x*a.y-a.x*o.y;i+=(o.x+a.x)*l,r+=(o.y+a.y)*l,t+=3*l}return new zp(i/t,r/t,0,e)}(e),d=u.length;for(;u.length;){const r=u.pop();(r.d>p.d||!p.d)&&(p=r,i&&console.log("found best %d after %d probes",Math.round(1e4*r.d)/1e4,d)),r.max-p.d<=t||(h=r.h/2,u.push(new zp(r.p.x-h,r.p.y-h,h,e)),u.push(new zp(r.p.x+h,r.p.y-h,h,e)),u.push(new zp(r.p.x-h,r.p.y+h,h,e)),u.push(new zp(r.p.x+h,r.p.y+h,h,e)),d+=4)}return i&&(console.log(`num probes: ${d}`),console.log(`best distance: ${p.d}`)),p.p}function Cp(e,t){return t.max-e.max}function zp(e,t,i,r){this.p=new n(e,t),this.h=i,this.d=function(e,t){let i=!1,r=1/0;for(let n=0;n<t.length;n++){const o=t[n];for(let t=0,n=o.length,s=n-1;t<n;s=t++){const n=o[t],a=o[s];n.y>e.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(i=!i),r=Math.min(r,il(e,n,a))}}return(i?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}const Pp=Number.POSITIVE_INFINITY,kp=Math.sqrt(2);function Dp(e,t){return t[1]!==Pp?function(e,t,i){let r=0,n=0;switch(t=Math.abs(t),i=Math.abs(i),e){case"top-right":case"top-left":case"top":n=i-7;break;case"bottom-right":case"bottom-left":case"bottom":n=7-i}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,n]}(e,t[0],t[1]):function(e,t){let i=0,r=0;t<0&&(t=0);const n=t/kp;switch(e){case"top-right":case"top-left":r=n-7;break;case"bottom-right":case"bottom-left":r=7-n;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":i=-n;break;case"top-left":case"bottom-left":i=n;break;case"left":i=t;break;case"right":i=-t}return[i,r]}(e,t[0])}function Lp(e,t,i,r,n,o,s,a,l,c){e.createArrays(),e.tilePixelRatio=wa/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const h=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,p={};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:i}=e.textSizeData;p.compositeTextSizes=[u["text-size"].possiblyEvaluate(new Do(t),a),u["text-size"].possiblyEvaluate(new Do(i),a)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:i}=e.iconSizeData;p.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new Do(t),a),u["icon-size"].possiblyEvaluate(new Do(i),a)]}p.layoutTextSize=u["text-size"].possiblyEvaluate(new Do(l+1),a),p.layoutIconSize=u["icon-size"].possiblyEvaluate(new Do(l+1),a),p.textMaxSize=u["text-size"].possiblyEvaluate(new Do(18),a);const d="map"===h.get("text-rotation-alignment")&&"point"!==h.get("symbol-placement"),f=h.get("text-size");for(const o of e.features){const l=h.get("text-font").evaluate(o,{},a).join(","),u=f.evaluate(o,{},a),m=p.layoutTextSize.evaluate(o,{},a),_=(p.layoutIconSize.evaluate(o,{},a),{horizontal:{},vertical:void 0}),g=o.text;let y,x=[0,0];if(g){const r=g.toString(),s=h.get("text-letter-spacing").evaluate(o,{},a)*su,c=h.get("text-line-height").evaluate(o,{},a)*su,p=fo(r)?s:0,f=h.get("text-anchor").evaluate(o,{},a),y=h.get("text-variable-anchor");if(!y){const e=h.get("text-radial-offset").evaluate(o,{},a);x=e?Dp(f,[e*su,Pp]):h.get("text-offset").evaluate(o,{},a).map((e=>e*su))}let v=d?"center":h.get("text-justify").evaluate(o,{},a);const b=h.get("symbol-placement"),w="point"===b,T="point"===b?h.get("text-max-width").evaluate(o,{},a)*su:0,E=o=>{e.allowVerticalPlacement&&po(r)&&(_.vertical=Xu(g,t,i,n,l,T,c,f,o,p,x,Zu.vertical,!0,b,m,u))};if(!d&&y){const e="auto"===v?y.map((e=>Bp(e))):[v];let r=!1;for(let o=0;o<e.length;o++){const s=e[o];if(!_.horizontal[s])if(r)_.horizontal[s]=_.horizontal[0];else{const e=Xu(g,t,i,n,l,T,c,"center",s,p,x,Zu.horizontal,!1,b,m,u);e&&(_.horizontal[s]=e,r=1===e.positionedLines.length)}}E("left")}else{if("auto"===v&&(v=Bp(f)),w||h.get("text-writing-mode").indexOf("horizontal")>=0||!po(r)){const e=Xu(g,t,i,n,l,T,c,f,v,p,x,Zu.horizontal,!1,b,m,u);e&&(_.horizontal[v]=e)}E("point"===b?"left":v)}}let v=!1;if(o.icon&&o.icon.name){const t=r[o.icon.name];t&&(y=np(n[o.icon.name],h.get("icon-offset").evaluate(o,{},a),h.get("icon-anchor").evaluate(o,{},a)),v=t.sdf,void 0===e.sdfIcons?e.sdfIcons=t.sdf:e.sdfIcons!==t.sdf&&P("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==h.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const b=Up(_.horizontal)||_.vertical;e.iconsInText||(e.iconsInText=!!b&&b.iconsInText),(b||y)&&Rp(e,o,_,y,r,p,m,0,x,v,s,a,c)}o&&e.generateCollisionDebugBuffers(l,e.collisionBoxArray)}function Bp(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Rp(e,t,i,r,n,o,s,a,c,h,u,p,d){let f=o.textMaxSize.evaluate(t,{},p);void 0===f&&(f=s);const m=e.layers[0].layout,_=m.get("icon-offset").evaluate(t,{},p),g=Up(i.horizontal)||i.vertical,y="globe"===d.name,x=s/24,v=e.tilePixelRatio*f/24,b=(C=e.overscaling,e.zoom>18&&C>2&&(C>>=1),Math.max(wa/(512*C),1)*m.get("symbol-spacing")),w=m.get("text-padding")*e.tilePixelRatio,T=m.get("icon-padding")*e.tilePixelRatio,E=l(m.get("text-max-angle")),S="map"===m.get("text-rotation-alignment")&&"point"!==m.get("symbol-placement"),M="map"===m.get("icon-rotation-alignment")&&"point"!==m.get("symbol-placement"),I=m.get("symbol-placement"),A=b/2;var C;const z=m.get("icon-text-fit");let k;r&&"none"!==z&&(e.allowVerticalPlacement&&i.vertical&&(k=op(r,i.vertical,z,m.get("icon-text-fit-padding"),_,x)),g&&(r=op(r,g,z,m.get("icon-text-fit-padding"),_,x)));const D=(s,a,l)=>{if(a.x<0||a.x>=wa||a.y<0||a.y>=wa)return;let f=null;if(y){const{x:e,y:t,z:i}=d.projectTilePoint(a.x,a.y,l);f={anchor:new sp(e,t,i,0,void 0),up:d.upVector(l,a.x,a.y)}}!function(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x,v,b,w,T,E){const S=e.addToLineVertexArray(t,r);let M,I,A,C,z,k,D,L=0,B=0,R=0,F=0,O=-1,U=-1;const V={};let j=$s("");const N=i?i.anchor:t;let G=0,Z=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[G,Z]=l.layout.get("text-offset").evaluate(v,{},E).map((e=>e*su)):(G=l.layout.get("text-radial-offset").evaluate(v,{},E)*su,Z=Pp),e.allowVerticalPlacement&&n.vertical){const e=n.vertical;if(f)k=jp(e),a&&(D=jp(a));else{const i=l.layout.get("text-rotate").evaluate(v,{},E)+90;A=Vp(c,N,t,h,u,p,e,d,i,m),a&&(C=Vp(c,N,t,h,u,p,a,g,i))}}if(o){const r=l.layout.get("icon-rotate").evaluate(v,{},E),n="none"!==l.layout.get("icon-text-fit"),s=vp(o,r,w,n),d=a?vp(a,r,w,n):void 0;I=Vp(c,N,t,h,u,p,o,g,r),L=4*s.length;const f=e.iconSizeData;let m=null;"source"===f.kind?(m=[au*l.layout.get("icon-size").evaluate(v,{},E)],m[0]>Fp&&P(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):"composite"===f.kind&&(m=[au*b.compositeIconSizes[0].evaluate(v,{},E),au*b.compositeIconSizes[1].evaluate(v,{},E)],(m[0]>Fp||m[1]>Fp)&&P(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,s,m,x,y,v,!1,i,t,S.lineStartIndex,S.lineLength,-1,T,E),O=e.icon.placedSymbolArray.length-1,d&&(B=4*d.length,e.addSymbols(e.icon,d,m,x,y,v,Zu.vertical,i,t,S.lineStartIndex,S.lineLength,-1,T,E),U=e.icon.placedSymbolArray.length-1)}for(const r in n.horizontal){const o=n.horizontal[r];M||(j=$s(o.text),f?z=jp(o):M=Vp(c,N,t,h,u,p,o,d,l.layout.get("text-rotate").evaluate(v,{},E),m));const a=1===o.positionedLines.length;if(R+=Op(e,i,t,o,s,l,f,v,m,S,n.vertical?Zu.horizontal:Zu.horizontalOnly,a?Object.keys(n.horizontal):[r],V,O,b,T,E),a)break}n.vertical&&(F+=Op(e,i,t,n.vertical,s,l,f,v,m,S,Zu.vertical,["vertical"],V,U,b,T,E));let $=-1;const q=(e,t)=>e?Math.max(e,t):t;$=q(z,$),$=q(k,$),$=q(D,$);const X=$>-1?1:0;e.glyphOffsetArray.length>=Jd.MAX_GLYPHS&&P("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==v.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,v.sortKey),e.symbolInstances.emplaceBack(N.x,N.y,N.z,t.x,t.y,V.right>=0?V.right:-1,V.center>=0?V.center:-1,V.left>=0?V.left:-1,V.vertical>=0?V.vertical:-1,O,U,j,void 0!==M?M:e.collisionBoxArray.length,void 0!==M?M+1:e.collisionBoxArray.length,void 0!==A?A:e.collisionBoxArray.length,void 0!==A?A+1:e.collisionBoxArray.length,void 0!==I?I:e.collisionBoxArray.length,void 0!==I?I+1:e.collisionBoxArray.length,C||e.collisionBoxArray.length,C?C+1:e.collisionBoxArray.length,h,R,F,L,B,X,0,G,Z,$)}(e,a,f,s,i,r,n,k,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,w,S,c,0,T,M,_,t,o,h,u,p)};if("line"===I)for(const n of fp(t.geometry,0,0,wa,wa)){const t=pp(n,b,E,i.vertical||g,r,24,v,e.overscaling,wa);for(const i of t){const t=g;t&&Np(e,t.text,A,i)||D(n,i,p)}}else if("line-center"===I){for(const e of t.geometry)if(e.length>1){const t=up(e,E,i.vertical||g,r,24,v);t&&D(e,t,p)}}else if("Polygon"===t.type)for(const e of Yc(t.geometry,0)){const t=Ap(e,16);D(e[0],new sp(t.x,t.y,0,0,void 0),p)}else if("LineString"===t.type)for(const e of t.geometry)D(e,new sp(e[0].x,e[0].y,0,0,void 0),p);else if("Point"===t.type)for(const e of t.geometry)for(const t of e)D([t],new sp(t.x,t.y,0,0,void 0),p)}const Fp=32640;function Op(e,t,i,r,o,s,a,l,c,h,u,p,d,f,m,_,g){const y=function(e,t,i,r,o,s,a,l){const c=[];if(0===t.positionedLines.length)return c;const h=r.layout.get("text-rotate").evaluate(s,{})*Math.PI/180,u=function(e){const t=e[0],i=e[1],r=t*i;return r>0?[t,-i]:r<0?[-t,i]:0===t?[i,t]:[i,-t]}(i);let p=Math.abs(t.top-t.bottom);for(const e of t.positionedLines)p-=e.lineOffset;const d=t.positionedLines.length,f=p/d;let m=t.top-i[1];for(let e=0;e<d;++e){const r=t.positionedLines[e];m=Sp(t,f,m,e);for(const e of r.positionedGlyphs){if(!e.rect)continue;const r=e.rect||{};let s=4,p=!0,d=1,f=0;if(e.imageName){const t=a[e.imageName];if(!t)continue;if(t.sdf){P("SDF images are not supported in formatted text and will be ignored.");continue}p=!1,d=t.pixelRatio,s=1/d}const _=(o||l)&&e.vertical,g=e.metrics.advance*e.scale/2,y=e.metrics,x=e.rect;if(null===x)continue;l&&t.verticalizable&&(f=e.imageName?g-e.metrics.width*e.scale/2:0);const v=o?[e.x+g,e.y]:[0,0];let b=[0,0],w=[0,0],T=!1;o||(_?(w=[e.x+g+u[0],e.y+u[1]-f],T=!0):b=[e.x+g+i[0],e.y+i[1]-f]);const E=x.w*e.scale/(d*(e.localGlyph?2:1)),S=x.h*e.scale/(d*(e.localGlyph?2:1));let M,I,A,C;if(_){const t=e.y-m,i=new n(-g,g-t),r=-Math.PI/2,o=new n(...w);M=new n(-g+b[0],b[1]),M._rotateAround(r,i)._add(o),M.x+=-t+g,M.y-=(y.left-s)*e.scale;const a=e.imageName?y.advance*e.scale:su*e.scale,l=String.fromCharCode(e.glyph);fu(l)?M.x+=(1-s)*e.scale:mu(l)?M.x+=a-y.height*e.scale+(-s-1)*e.scale:M.x+=e.imageName||y.width+2*s===x.w&&y.height+2*s===x.h?(a-S)/2:(a-(y.height+2*s)*e.scale)/2,I=new n(M.x,M.y-E),A=new n(M.x+S,M.y),C=new n(M.x+S,M.y-E)}else{const t=(y.left-s)*e.scale-g+b[0],i=(-y.top-s)*e.scale+b[1],r=t+E,o=i+S;M=new n(t,i),I=new n(r,i),A=new n(t,o),C=new n(r,o)}if(h){let e;e=o?new n(0,0):T?new n(u[0],u[1]):new n(i[0],i[1]),M._rotateAround(h,e),I._rotateAround(h,e),A._rotateAround(h,e),C._rotateAround(h,e)}const z=new n(0,0),k=new n(0,0);c.push({tl:M,tr:I,bl:A,br:C,tex:r,writingMode:t.writingMode,glyphOffset:v,sectionIndex:e.sectionIndex,isSDF:p,pixelOffsetTL:z,pixelOffsetBR:k,minFontScaleX:0,minFontScaleY:0})}}return c}(0,r,c,s,a,l,o,e.allowVerticalPlacement),x=e.textSizeData;let v=null;"source"===x.kind?(v=[au*s.layout.get("text-size").evaluate(l,{},g)],v[0]>Fp&&P(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):"composite"===x.kind&&(v=[au*m.compositeTextSizes[0].evaluate(l,{},g),au*m.compositeTextSizes[1].evaluate(l,{},g)],(v[0]>Fp||v[1]>Fp)&&P(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,y,v,c,a,l,u,t,i,h.lineStartIndex,h.lineLength,f,_,g);for(const t of p)d[t]=e.text.placedSymbolArray.length-1;return 4*y.length}function Up(e){for(const t in e)return e[t];return null}function Vp(e,t,i,r,o,s,a,c,h,u){let p=a.top,d=a.bottom,f=a.left,m=a.right;const _=a.collisionPadding;if(_&&(f-=_[0],p-=_[1],m+=_[2],d+=_[3]),h){const e=new n(f,p),t=new n(m,p),i=new n(f,d),r=new n(m,d),o=l(h);let s=new n(0,0);u&&(s=new n(u[0],u[1])),e._rotateAround(o,s),t._rotateAround(o,s),i._rotateAround(o,s),r._rotateAround(o,s),f=Math.min(e.x,t.x,i.x,r.x),m=Math.max(e.x,t.x,i.x,r.x),p=Math.min(e.y,t.y,i.y,r.y),d=Math.max(e.y,t.y,i.y,r.y)}return e.emplaceBack(t.x,t.y,t.z,i.x,i.y,f,p,m,d,c,r,o,s),e.length-1}function jp(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function Np(e,t,i,r){const n=e.compareText;if(t in n){const e=n[t];for(let t=e.length-1;t>=0;t--)if(r.dist(e[t])<i)return!0}else n[t]=[];return n[t].push(r),!1}const Gp=Jo([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Zp}=Gp,$p=Jo([{name:"a_pos_3",components:3,type:"Int16"}]);var qp=Jo([{name:"a_pos",type:"Int16",components:2}]);const Xp=wa/Math.PI/2,Wp=2*za(1,0)*Xp*Math.PI,Hp=[64,32,16],Yp=-Xp,Kp=Xp,Jp=[new tc([Yp,Yp,Yp],[Kp,Kp,Kp]),new tc([Yp,Yp,Yp],[0,0,Kp]),new tc([0,Yp,Yp],[Kp,0,Kp]),new tc([Yp,0,Yp],[0,Kp,Kp]),new tc([0,0,Yp],[Kp,Kp,Kp])];function Qp(e,t,i,r=!0){const n=Bl([],e._camera.position,e.worldSize),o=[t,i,1,1];Xl(o,o,e.pixelMatrixInverse),ql(o,o,1/o[3]);const s=Fl([],Gl([],o,n)),a=e.globeMatrix,l=[a[12],a[13],a[14]],h=Gl([],l,n),u=Al(h),p=Fl([],h),d=e.worldSize/(2*Math.PI),m=Ol(p,s),_=Math.asin(d/u);if(_<Math.acos(m)){if(!r)return null;const e=[],t=[];Bl(e,s,u/m),Fl(t,Gl(t,e,h)),Fl(s,zl(s,h,Bl(s,t,Math.tan(_)*u)))}const g=[];new Jl(n,s).closestPointOnSphere(l,d,g);const y=Fl([],U(a,0)),x=Fl([],U(a,1)),v=Fl([],U(a,2)),b=Ol(y,g),w=Ol(x,g),T=Ol(v,g),E=c(Math.asin(-w/d));let S=c(Math.atan2(b,T));S=e.center.lng+function(e,t){const i=(t-e+180)%360-180;return i<-180?i+360:i}(e.center.lng,S);const M=Aa(S),I=f(Ca(E),0,1);return new Ra(M,I)}class ed{constructor(e,t,i){this.a=Gl([],e,i),this.b=Gl([],t,i),this.center=i;const r=Fl([],this.a),n=Fl([],this.b);this.angle=Math.acos(Ol(r,n))}}function td(e,t){if(0===e.angle)return null;let i;return i=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),i<0||i>1?null:function(e,t,i,r){const n=Math.sin(i);return e*(Math.sin((1-r)*i)/n)+t*(Math.sin(r*i)/n)}(e.a[t],e.b[t],e.angle,f(i,0,1))+e.center[t]}function id(e){if(e.z<=1)return Jp[e.z+2*e.y+e.x];const t=ad(sd(e));return tc.fromPoints(t)}function rd(e,t){const i=_d(t.zoom);if(0===i)return id(e);const r=sd(e),n=ad(r),o=Aa(r.getWest())*t.worldSize,s=Aa(r.getEast())*t.worldSize,a=Ca(r.getNorth())*t.worldSize,l=Ca(r.getSouth())*t.worldSize,c=[o,a,0],h=[s,a,0],u=[o,l,0],p=[s,l,0],d=gl([],t.globeMatrix);return Vl(c,c,d),Vl(h,h,d),Vl(u,u,d),Vl(p,p,d),n[0]=xi(n[0],u,i),n[1]=xi(n[1],p,i),n[2]=xi(n[2],h,i),n[3]=xi(n[3],c,i),tc.fromPoints(n)}function nd(e,t,i,r,n){for(const o of i)Vl(o,o,r),Bl(o,o,n),Dl(e,e,o),Ll(t,t,o)}function od(e,t,i){const r=t/e.worldSize,n=Number.MAX_VALUE,o=[-n,-n,-n],s=[n,n,n],a=e.globeMatrix;if(i.z<=1)return nd(s,o,id(i).getCorners(),a,r),new tc(s,o);const c=sd(i),h=ad(c);if(nd(s,o,h,a,r),c.contains(e.center)){o[2]=0;const t=e.point,i=[t.x*r,t.y*r,0];return Dl(s,s,i),Ll(o,o,i),new tc(s,o)}const u=[a[12]*r,a[13]*r,a[14]*r],p=c.getCenter(),d=f(e.center.lat,-85.051129,La),m=f(p.lat,-85.051129,La),_=Aa(e.center.lng),g=Ca(d);let y=_-Aa(p.lng);const x=g-Ca(m);y>.5?y-=1:y<-.5&&(y+=1);let v=0;Math.abs(y)>Math.abs(x)?v=y>=0?1:3:(v=x>=0?0:2,Rl(u,u,[a[4]*r,a[5]*r,a[6]*r],-Math.sin(l(x>=0?c.getSouth():c.getNorth()))*Xp));const b=h[v],w=h[(v+1)%4],T=new ed(b,w,u),E=[td(T,0)||b[0],td(T,1)||b[1],td(T,2)||b[2]];return s[2]=Math.min(b[2],w[2]),Dl(s,s,E),Ll(o,o,E),new tc(s,o)}function sd({x:e,y:t,z:i}){const r=1/(1<<i),n=new Sa(Pa(e*r),ka((t+1)*r)),o=new Sa(Pa((e+1)*r),ka(t*r));return new Ta(n,o)}function ad(e){const t=l(e.getNorth()),i=l(e.getSouth()),r=Math.cos(t),n=Math.cos(i),o=Math.sin(t),s=Math.sin(i),a=e.getWest(),c=e.getEast();return[ld(n,s,a),ld(n,s,c),ld(r,o,c),ld(r,o,a)]}function ld(e,t,i,r=Xp){return i=l(i),[e*Math.sin(i)*r,-t*r,e*Math.cos(i)*r]}function cd(e,t,i){return ld(Math.cos(l(e)),Math.sin(l(e)),t,i)}function hd(e,t,i,r){const n=1<<i.z,o=(e/wa+i.x)/n;return cd(ka((t/wa+i.y)/n),Pa(o),r)}function ud({min:e,max:t}){return 16383/Math.max(t[0]-e[0],t[1]-e[1],t[2]-e[2])}const pd=new Float64Array(16);function dd(e){const t=ud(e),i=Tl(pd,[t,t,t]);return xl(i,i,((r=[])[0]=-(n=e.min)[0],r[1]=-n[1],r[2]=-n[2],r));var r,n}function fd(e){const t=(r=e.min,(i=pd)[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=r[0],i[13]=r[1],i[14]=r[2],i[15]=1,i);var i,r;const n=1/ud(e);return vl(t,t,[n,n,n])}function md(e,t,i,r,n){const o=function(e){const t=wa/(2*Math.PI);return e/(2*Math.PI)/t}(i),s=[e,t,-i/(2*Math.PI)],a=_l(new Float64Array(16));return xl(a,a,s),vl(a,a,[o,o,o]),bl(a,a,l(-n)),wl(a,a,l(-r)),a}function _d(e){return m(5,6,e)}function gd(e,t){const i=cd(t.lat,t.lng);return o=(r=Pl([],function(e){const t=cd(e._center.lat,e._center.lng);let i=Ul([],Cl(0,1,0),t);const r=El([],-e.angle,t);i=Vl(i,i,r),El(r,-e._pitch,i);const n=Fl([],t);return Bl(n,n,e.cameraToCenterDistance/e.pixelsPerMeter*Wp),Vl(n,n,r),zl([],t,n)}(e),i))[0],s=r[1],a=r[2],l=(n=i)[0],c=n[1],h=n[2],p=(u=Math.sqrt(o*o+s*s+a*a)*Math.sqrt(l*l+c*c+h*h))&&Ol(r,n)/u,Math.acos(Math.min(Math.max(p,-1),1));var r,n,o,s,a,l,c,h,u,p}const yd=l(85),xd=Math.cos(yd),vd=Math.sin(yd);function bd(e,t){const i=e.fovAboveCenter,r=e.elevation?e.elevation.getMinElevationBelowMSL()*t:0,n=(e._camera.position[2]*e.worldSize-r)/Math.cos(e._pitch),o=Math.sin(i)*n/Math.sin(Math.max(Math.PI/2-e._pitch-i,.01)),s=Math.sin(e._pitch)*o+n;return Math.min(1.01*s,n*(1/e._horizonShift))}function wd(e,t){if(!t.isReprojectedInTileSpace)return{scale:1<<e.z,x:e.x,y:e.y,x2:e.x+1,y2:e.y+1,projection:t};const i=Math.pow(2,-e.z),r=e.x*i,n=(e.x+1)*i,o=e.y*i,s=(e.y+1)*i,a=Pa(r),l=Pa(n),c=ka(o),h=ka(s),u=t.project(a,c),p=t.project(l,c),d=t.project(l,h),f=t.project(a,h);let m=Math.min(u.x,p.x,d.x,f.x),_=Math.min(u.y,p.y,d.y,f.y),g=Math.max(u.x,p.x,d.x,f.x),y=Math.max(u.y,p.y,d.y,f.y);const x=i/16;function v(e,i,r,n,o,s){const a=(r+o)/2,l=(n+s)/2,c=t.project(Pa(a),ka(l)),h=Math.max(0,m-c.x,_-c.y,c.x-g,c.y-y);m=Math.min(m,c.x),g=Math.max(g,c.x),_=Math.min(_,c.y),y=Math.max(y,c.y),h>x&&(v(e,c,r,n,a,l),v(c,i,a,l,o,s))}v(u,p,r,o,n,o),v(p,d,n,o,n,s),v(d,f,n,s,r,s),v(f,u,r,s,r,o),m-=x,_-=x,g+=x,y+=x;const b=1/Math.max(g-m,y-_);return{scale:b,x:m*b,y:_*b,x2:g*b,y2:y*b,projection:t}}const Td=_l(new Float32Array(16));class Ed{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,t){return{x:0,y:0,z:0}}unproject(e,t){return new Sa(0,0)}projectTilePoint(e,t,i){return{x:e,y:t,z:0}}locationPoint(e,t,i=!0){return e._coordinatePoint(e.locationCoordinate(t),i)}pixelsPerMeter(e,t){return za(1,e)*t}pixelSpaceConversion(e,t,i){return 1}farthestPixelDistance(e){return bd(e,e.pixelsPerMeter)}pointCoordinate(e,t,i,r){const o=e.horizonLineFromTop(!1),s=new n(t,Math.max(o,i));return e.rayIntersectionCoordinate(e.pointRayIntersection(s,r))}pointCoordinate3D(e,t,i){const r=new n(t,i);if(e.elevation)return e.elevation.pointCoordinate(r);{const t=this.pointCoordinate(e,r.x,r.y,0);return[t.x,t.y,t.z]}}isPointAboveHorizon(e,t){if(e.elevation)return!this.pointCoordinate3D(e,t.x,t.y);const i=e.horizonLineFromTop();return t.y<i}createInversionMatrix(e,t){return Td}createTileMatrix(e,t,i){let r,n,o;const s=i.canonical,a=_l(new Float64Array(16));if(this.isReprojectedInTileSpace){const l=wd(s,this);r=1,n=l.x+i.wrap*l.scale,o=l.y,vl(a,a,[r/l.scale,r/l.scale,e.pixelsPerMeter/t])}else r=t/e.zoomScale(s.z),n=(s.x+Math.pow(2,s.z)*i.wrap)*r,o=s.y*r;return xl(a,a,[n,o,0]),vl(a,a,[r/wa,r/wa,1]),a}upVector(e,t,i){return[0,0,1]}upVectorScale(e,t,i){return{metersToTile:1}}}class Sd extends Ed{constructor(e){super(e),this.range=[4,7],this.center=e.center||[-96,37.5];const[t,i]=this.parallels=e.parallels||[29.5,45.5],r=Math.sin(l(t));this.n=(r+Math.sin(l(i)))/2,this.c=1+r*(2*this.n-r),this.r0=Math.sqrt(this.c)/this.n}project(e,t){const{n:i,c:r,r0:n}=this,o=l(e-this.center[0]),s=l(t),a=Math.sqrt(r-2*i*Math.sin(s))/i;return{x:a*Math.sin(o*i),y:a*Math.cos(o*i)-n,z:0}}unproject(e,t){const{n:i,c:r,r0:n}=this,o=n+t;let s=Math.atan2(e,Math.abs(o))*Math.sign(o);o*i<0&&(s-=Math.PI*Math.sign(e)*Math.sign(o));const a=l(this.center[0])*i;s=_(s,-Math.PI-a,Math.PI-a);const h=c(s/i)+this.center[0],u=Math.asin(f((r-(e*e+o*o)*i*i)/(2*i),-1,1)),p=f(c(u),-85.051129,La);return new Sa(h,p)}}const Md=1.340264,Id=-.081106,Ad=893e-6,Cd=.003796,zd=Math.sqrt(3)/2;class Pd extends Ed{project(e,t){t=t/180*Math.PI,e=e/180*Math.PI;const i=Math.asin(zd*Math.sin(t)),r=i*i,n=r*r*r;return{x:.5*(e*Math.cos(i)/(zd*(Md+3*Id*r+n*(7*Ad+9*Cd*r)))/Math.PI+.5),y:1-.5*(i*(Md+Id*r+n*(Ad+Cd*r))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let i=t=(2*(1-t)-1)*Math.PI,r=i*i,n=r*r*r;for(let e,o,s,a=0;a<12&&(o=i*(Md+Id*r+n*(Ad+Cd*r))-t,s=Md+3*Id*r+n*(7*Ad+9*Cd*r),e=o/s,i=f(i-e,-Math.PI/3,Math.PI/3),r=i*i,n=r*r*r,!(Math.abs(e)<1e-12));++a);const o=zd*e*(Md+3*Id*r+n*(7*Ad+9*Cd*r))/Math.cos(i),s=Math.asin(Math.sin(i)/zd),a=f(180*o/Math.PI,-180,180),l=f(180*s/Math.PI,-85.051129,La);return new Sa(a,l)}}class kd extends Ed{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){return{x:.5+e/360,y:.5-t/360,z:0}}unproject(e,t){const i=360*(e-.5),r=f(360*(.5-t),-85.051129,La);return new Sa(i,r)}}const Dd=Math.PI/2;function Ld(e){return Math.tan((Dd+e)/2)}class Bd extends Ed{constructor(e){super(e),this.center=e.center||[0,30];const[t,i]=this.parallels=e.parallels||[30,30],r=l(t),n=l(i),o=Math.cos(r);this.n=r===n?Math.sin(r):Math.log(o/Math.cos(n))/Math.log(Ld(n)/Ld(r)),this.f=o*Math.pow(Ld(r),this.n)/this.n}project(e,t){t=l(t),e=l(e-this.center[0]);const i=1e-6,{n:r,f:n}=this;n>0?t<-Dd+i&&(t=-Dd+i):t>Dd-i&&(t=Dd-i);const o=n/Math.pow(Ld(t),r),s=o*Math.sin(r*e),a=n-o*Math.cos(r*e);return{x:.5*(s/Math.PI+.5),y:1-.5*(a/Math.PI+.5),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,t=(2*(1-t)-.5)*Math.PI;const{n:i,f:r}=this,n=r-t,o=Math.sign(n),s=Math.sign(i)*Math.sqrt(e*e+n*n);let a=Math.atan2(e,Math.abs(n))*o;n*i<0&&(a-=Math.PI*Math.sign(e)*o);const l=f(c(a/i)+this.center[0],-180,180),h=f(c(2*Math.atan(Math.pow(r/s,1/i))-Dd),-85.051129,La);return new Sa(l,h)}}class Rd extends Ed{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,t){return{x:Aa(e),y:Ca(t),z:0}}unproject(e,t){const i=Pa(e),r=ka(t);return new Sa(i,r)}}const Fd=l(La);class Od extends Ed{project(e,t){const i=(t=l(t))*t,r=i*i;return{x:.5*((e=l(e))*(.8707-.131979*i+r*(r*(.003971*i-.001529*r)-.013791))/Math.PI+.5),y:1-.5*(t*(1.007226+i*(.015085+r*(.028874*i-.044475-.005916*r)))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let i=t=(2*(1-t)-1)*Math.PI,r=25,n=0,o=i*i;do{o=i*i;const e=o*o;n=(i*(1.007226+o*(.015085+e*(.028874*o-.044475-.005916*e)))-t)/(1.007226+o*(.045255+e*(.259866*o-.311325-.005916*11*e))),i=f(i-n,-Fd,Fd)}while(Math.abs(n)>1e-6&&--r>0);o=i*i;const s=f(c(e/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),a=c(i);return new Sa(s,a)}}const Ud=l(La);class Vd extends Ed{project(e,t){t=l(t),e=l(e);const i=Math.cos(t),r=2/Math.PI,n=Math.acos(i*Math.cos(e/2)),o=Math.sin(n)/n,s=.5*(e*r+2*i*Math.sin(e/2)/o)||0,a=.5*(t+Math.sin(t)/o)||0;return{x:.5*(s/Math.PI+.5),y:1-.5*(a/Math.PI+1),z:0}}unproject(e,t){let i=e=(2*e-.5)*Math.PI,r=t=(2*(1-t)-1)*Math.PI,n=25;const o=1e-6;let s=0,a=0;do{const n=Math.cos(r),o=Math.sin(r),l=2*o*n,c=o*o,h=n*n,u=Math.cos(i/2),p=Math.sin(i/2),d=2*u*p,m=p*p,_=1-h*u*u,g=_?1/_:0,y=_?Math.acos(n*u)*Math.sqrt(1/_):0,x=.5*(2*y*n*p+2*i/Math.PI)-e,v=.5*(y*o+r)-t,b=.5*g*(h*m+y*n*u*c)+1/Math.PI,w=g*(d*l/4-y*o*p),T=.125*g*(l*p-y*o*h*d),E=.5*g*(c*u+y*m*n)+.5,S=w*T-E*b;s=(v*w-x*E)/S,a=(x*T-v*b)/S,i=f(i-s,-Math.PI,Math.PI),r=f(r-a,-Ud,Ud)}while((Math.abs(s)>o||Math.abs(a)>o)&&--n>0);return new Sa(c(i),c(r))}}class jd extends Ed{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(l(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){const{scale:i,cosPhi:r}=this;return{x:l(e)*r*i+.5,y:-Math.sin(l(t))/r*i+.5,z:0}}unproject(e,t){const{scale:i,cosPhi:r}=this,n=-(t-.5)/i,o=f(c((e-.5)/i)/r,-180,180),s=Math.asin(f(n*r,-1,1)),a=f(c(s),-85.051129,La);return new Sa(o,a)}}class Nd extends Rd{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug","custom"],this.range=[3,5]}projectTilePoint(e,t,i){const r=hd(e,t,i);return Vl(r,r,dd(id(i))),{x:r[0],y:r[1],z:r[2]}}locationPoint(e,t){const i=cd(t.lat,t.lng),r=Fl([],i),o=e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(t),e._centerAltitude):e._centerAltitude;Rl(i,i,r,za(1,0)*wa*o);const s=_l(new Float64Array(16));return yl(s,e.pixelMatrix,e.globeMatrix),Vl(i,i,s),new n(i[0],i[1])}pixelsPerMeter(e,t){return za(1,0)*t}pixelSpaceConversion(e,t,i){const r=yi(za(1,45)*t,za(1,e)*t,i);return this.pixelsPerMeter(e,t)/r}createTileMatrix(e,t,i){const r=fd(id(i.canonical));return yl(new Float64Array(16),e.globeMatrix,r)}createInversionMatrix(e,t){const{center:i}=e,r=dd(id(t));return wl(r,r,l(i.lng)),bl(r,r,l(i.lat)),vl(r,r,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(r)}pointCoordinate(e,t,i,r){return Qp(e,t,i,!0)||new Ra(0,0)}pointCoordinate3D(e,t,i){const r=this.pointCoordinate(e,t,i,0);return[r.x,r.y,r.z]}isPointAboveHorizon(e,t){return!Qp(e,t.x,t.y,!1)}farthestPixelDistance(e){const t=function(e,t){const i=e.cameraToCenterDistance,r=e._centerAltitude*t,n=e._camera,o=e._camera.forward(),s=zl([],Bl([],o,-i),[0,0,r]),a=e.worldSize/(2*Math.PI),l=[0,0,-a],c=e.width/e.height,h=Math.tan(e.fovAboveCenter),u=Bl([],n.up(),h),p=Bl([],n.right(),h*c),d=Fl([],zl([],zl([],o,u),p)),f=[];let m;if(new Jl(s,d).closestPointOnSphere(l,a,f)){const t=zl([],f,l),i=Gl([],t,s);m=Math.cos(e.fovAboveCenter)*Al(i)}else{const e=Gl([],s,l),t=Gl([],l,s);Fl(t,t);const i=Al(e)-a;m=Math.sqrt(i*(i+2*a));const r=Math.acos(m/(a+i))-Math.acos(Ol(o,t));m*=Math.cos(r)}return 1.01*m}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),i=_d(e.zoom);if(i>0){const r=bd(e,za(1,e.center.lat)*e.worldSize),n=e.worldSize/(2*Math.PI),o=Math.max(e.width,e.height)/e.worldSize*Math.PI;return yi(t,r+n*(1-Math.cos(o)),Math.pow(i,10))}return t}upVector(e,t,i){return hd(t,i,e,1)}upVectorScale(e){return{metersToTile:Wp*ud(id(e))}}}function Gd(e){const t=e.parallels,i=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new Rd(e);case"equirectangular":return new kd(e);case"naturalEarth":return new Od(e);case"equalEarth":return new Pd(e);case"winkelTripel":return new Vd(e);case"albers":return i?new jd(e):new Sd(e);case"lambertConformalConic":return i?new jd(e):new Bd(e);case"globe":return new Nd(e)}throw new Error(`Invalid projection name: ${e.name}`)}const Zd=mh.VectorTileFeature.types,$d=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function qd(e,t,i,r,n,o,s,a,l,c,h,u,p){const d=a?Math.min(Fp,Math.round(a[0])):0,f=a?Math.min(Fp,Math.round(a[1])):0;e.emplaceBack(t,i,Math.round(32*r),Math.round(32*n),o,s,(d<<1)+(l?1:0),f,16*c,16*h,256*u,256*p)}function Xd(e,t,i,r,n,o,s){e.emplaceBack(t,i,r,n,o,s)}function Wd(e,t,i,r,n){e.emplaceBack(t,i,r,n),e.emplaceBack(t,i,r,n),e.emplaceBack(t,i,r,n),e.emplaceBack(t,i,r,n)}function Hd(e){for(const t of e.sections)if(vo(t.text))return!0;return!1}class Yd{constructor(e){this.layoutVertexArray=new ls,this.indexArray=new _s,this.programConfigurations=e,this.segments=new ba,this.dynamicLayoutVertexArray=new ns,this.opacityVertexArray=new hs,this.placedSymbolArray=new zs,this.globeExtVertexArray=new cs}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,t,i,r){this.isEmpty()||(i&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Qh.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,tu.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,$d,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,eu.members,!0)),this.opacityVertexBuffer.itemSize=1),(i||r)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}Dn(Yd,"SymbolBuffers");class Kd{constructor(e,t,i){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new i,this.segments=new ba,this.collisionVertexArray=new fs,this.collisionVertexArrayExt=new ms}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,iu.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,ru.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}Dn(Kd,"CollisionBuffers");class Jd{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=_l([]),this.placementViewportMatrix=_l([]);const t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=lu(this.zoom,t["text-size"]),this.iconSizeData=lu(this.zoom,t["icon-size"]);const i=this.layers[0].layout,r=i.get("symbol-sort-key"),n=i.get("symbol-z-order");this.canOverlap=i.get("text-allow-overlap")||i.get("icon-allow-overlap")||i.get("text-ignore-placement")||i.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==n&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===n||"auto"===n&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=i.get("text-writing-mode").map((e=>Zu[e])),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.sourceID=e.sourceID,this.projection=e.projection}createArrays(){this.text=new Yd(new ua(this.layers,this.zoom,(e=>/^text/.test(e)))),this.icon=new Yd(new ua(this.layers,this.zoom,(e=>/^icon/.test(e)))),this.glyphOffsetArray=new Ds,this.lineVertexArray=new Ls,this.symbolInstances=new ks}calculateGlyphDependencies(e,t,i,r,n){for(let i=0;i<e.length;i++)if(t[e.charCodeAt(i)]=!0,r&&n){const r=du[e.charAt(i)];r&&(t[r.charCodeAt(0)]=!0)}}populate(e,t,i,r){const n=this.layers[0],o=n.layout,s="globe"===this.projection.name,a=o.get("text-font"),l=o.get("text-field"),c=o.get("icon-image"),h=("constant"!==l.value.kind||l.value.value instanceof bt&&!l.value.value.isEmpty()||l.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),u="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,p=o.get("symbol-sort-key");if(this.features=[],!h&&!u)return;const d=t.iconDependencies,f=t.glyphDependencies,m=t.availableImages,_=new Do(this.zoom);for(const{feature:t,id:l,index:c,sourceLayerIndex:g}of e){const e=n._featureFilter.needGeometry,y=$a(t,e);if(!n._featureFilter.filter(_,y,i))continue;if(e||(y.geometry=Za(t,i,r)),s&&1!==t.type&&i.z<=5){const e=y.geometry,t=.98078528056;for(let r=0;r<e.length;r++)e[r]=Va(e[r],(e=>e),((e,r)=>Ol(hd(e.x,e.y,i,1),hd(r.x,r.y,i,1))<t))}let x,v;if(h){const e=n.getValueAndResolveTokens("text-field",y,i,m),t=bt.factory(e);Hd(t)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===zo()||this.hasRTLText&&ko.isParsed())&&(x=pu(t,n,y))}if(u){const e=n.getValueAndResolveTokens("icon-image",y,i,m);v=e instanceof wt?e:wt.fromString(e)}if(!x&&!v)continue;const b=this.sortFeaturesByKey?p.evaluate(y,{},i):void 0;if(this.features.push({id:l,text:x,icon:v,index:c,sourceLayerIndex:g,geometry:y.geometry,properties:t.properties,type:Zd[t.type],sortKey:b}),v&&(d[v.name]=!0),x){const e=a.evaluate(y,{},i).join(","),t="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Zu.vertical)>=0;for(const i of x.sections)if(i.image)d[i.image.name]=!0;else{const r=po(x.toString()),n=i.fontStack||e,o=f[n]=f[n]||{};this.calculateGlyphDependencies(i.text,o,t,this.allowVerticalPlacement,r)}}}"line"===o.get("symbol-placement")&&(this.features=function(e){const t={},i={},r=[];let n=0;function o(t){r.push(e[t]),n++}function s(e,t,n){const o=i[e];return delete i[e],i[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(n[0]),o}function a(e,i,n){const o=t[i];return delete t[i],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=n[0].concat(r[o].geometry[0]),o}function l(e,t,i){const r=i?t[0][t[0].length-1]:t[0][0];return`${e}:${r.x}:${r.y}`}for(let c=0;c<e.length;c++){const h=e[c],u=h.geometry,p=h.text?h.text.toString():null;if(!p){o(c);continue}const d=l(p,u),f=l(p,u,!0);if(d in i&&f in t&&i[d]!==t[f]){const e=a(d,f,u),n=s(d,f,r[e].geometry);delete t[d],delete i[f],i[l(p,r[n].geometry,!0)]=n,r[e].geometry=null}else d in i?s(d,f,u):f in t?a(d,f,u):(o(c),t[d]=n-1,i[f]=n-1)}return r.filter((e=>e.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((e,t)=>e.sortKey-t.sortKey))}update(e,t,i,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,i,r),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,i,r))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=Gd(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const i=this.lineVertexArray.length,r=e.segment;if(void 0!==r){let i=e.dist(t[r+1]),n=e.dist(t[r]);const o={};for(let e=r+1;e<t.length;e++)o[e]={x:t[e].x,y:t[e].y,tileUnitDistanceFromAnchor:i},e<t.length-1&&(i+=t[e+1].dist(t[e]));for(let e=r||0;e>=0;e--)o[e]={x:t[e].x,y:t[e].y,tileUnitDistanceFromAnchor:n},e>0&&(n+=t[e-1].dist(t[e]));for(let e=0;e<t.length;e++){const t=o[e];this.lineVertexArray.emplaceBack(t.x,t.y,t.tileUnitDistanceFromAnchor)}}return{lineStartIndex:i,lineLength:this.lineVertexArray.length-i}}addSymbols(e,t,i,r,n,o,s,a,l,c,h,u,p,d){const f=e.indexArray,m=e.layoutVertexArray,_=e.globeExtVertexArray,g=e.segments.prepareSegment(4*t.length,m,f,this.canOverlap?o.sortKey:void 0),y=this.glyphOffsetArray.length,x=g.vertexLength,v=this.allowVerticalPlacement&&s===Zu.vertical?Math.PI/2:0,b=o.text&&o.text.sections;for(let r=0;r<t.length;r++){const{tl:n,tr:s,bl:c,br:h,tex:u,pixelOffsetTL:y,pixelOffsetBR:x,minFontScaleX:w,minFontScaleY:T,glyphOffset:E,isSDF:S,sectionIndex:M}=t[r],I=g.vertexLength,A=E[1];if(qd(m,l.x,l.y,n.x,A+n.y,u.x,u.y,i,S,y.x,y.y,w,T),qd(m,l.x,l.y,s.x,A+s.y,u.x+u.w,u.y,i,S,x.x,y.y,w,T),qd(m,l.x,l.y,c.x,A+c.y,u.x,u.y+u.h,i,S,y.x,x.y,w,T),qd(m,l.x,l.y,h.x,A+h.y,u.x+u.w,u.y+u.h,i,S,x.x,x.y,w,T),a){const t=a.anchor,i=a.up;Xd(_,t.x,t.y,t.z,i[0],i[1],i[2]),Xd(_,t.x,t.y,t.z,i[0],i[1],i[2]),Xd(_,t.x,t.y,t.z,i[0],i[1],i[2]),Xd(_,t.x,t.y,t.z,i[0],i[1],i[2]),Wd(e.dynamicLayoutVertexArray,t.x,t.y,t.z,v)}else Wd(e.dynamicLayoutVertexArray,l.x,l.y,l.z,v);f.emplaceBack(I,I+1,I+2),f.emplaceBack(I+1,I+2,I+3),g.vertexLength+=4,g.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(E[0]),r!==t.length-1&&M===t[r+1].sectionIndex||e.programConfigurations.populatePaintArrays(m.length,o,o.index,{},p,d,b&&b[M])}const w=a?a.anchor:l;e.placedSymbolArray.emplaceBack(w.x,w.y,w.z,l.x,l.y,y,this.glyphOffsetArray.length-y,x,c,h,l.segment,i?i[0]:0,i?i[1]:0,r[0],r[1],s,0,!1,0,u,0)}_commitLayoutVertex(e,t,i,r,n,o,s){e.emplaceBack(t,i,r,n,o,Math.round(s.x),Math.round(s.y))}_addCollisionDebugVertices(e,t,i,r,o,s,a){const l=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),c=l.vertexLength,h=a.tileAnchorX,u=a.tileAnchorY;for(let e=0;e<4;e++)i.collisionVertexArray.emplaceBack(0,0,0,0);i.collisionVertexArrayExt.emplaceBack(t,-e.padding,-e.padding),i.collisionVertexArrayExt.emplaceBack(t,e.padding,-e.padding),i.collisionVertexArrayExt.emplaceBack(t,e.padding,e.padding),i.collisionVertexArrayExt.emplaceBack(t,-e.padding,e.padding),this._commitLayoutVertex(i.layoutVertexArray,r,o,s,h,u,new n(e.x1,e.y1)),this._commitLayoutVertex(i.layoutVertexArray,r,o,s,h,u,new n(e.x2,e.y1)),this._commitLayoutVertex(i.layoutVertexArray,r,o,s,h,u,new n(e.x2,e.y2)),this._commitLayoutVertex(i.layoutVertexArray,r,o,s,h,u,new n(e.x1,e.y2)),l.vertexLength+=4;const p=i.indexArray;p.emplaceBack(c,c+1),p.emplaceBack(c+1,c+2),p.emplaceBack(c+2,c+3),p.emplaceBack(c+3,c),l.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,i,r,n,o){for(let s=r;s<n;s++){const r=i.get(s),n=this.getSymbolInstanceTextSize(e,o,t,s);this._addCollisionDebugVertices(r,n,this.textCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}_addIconDebugCollisionBoxes(e,t,i,r,n,o){for(let s=r;s<n;s++){const r=i.get(s),n=this.getSymbolInstanceIconSize(e,t,s);this._addCollisionDebugVertices(r,n,this.iconCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}generateCollisionDebugBuffers(e,t){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Kd(ps,nu.members,ws),this.iconCollisionBox=new Kd(ps,nu.members,ws);const i=hu(this.iconSizeData,e),r=hu(this.textSizeData,e);for(let n=0;n<this.symbolInstances.length;n++){const o=this.symbolInstances.get(n);this._addTextDebugCollisionBoxes(r,e,t,o.textBoxStartIndex,o.textBoxEndIndex,o),this._addTextDebugCollisionBoxes(r,e,t,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._addIconDebugCollisionBoxes(i,e,t,o.iconBoxStartIndex,o.iconBoxEndIndex,o),this._addIconDebugCollisionBoxes(i,e,t,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex,o)}}getSymbolInstanceTextSize(e,t,i,r){const n=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:r),o=cu(this.textSizeData,e,n)/su;return this.tilePixelRatio*o}getSymbolInstanceIconSize(e,t,i){const r=this.icon.placedSymbolArray.get(i),n=cu(this.iconSizeData,e,r);return this.tilePixelRatio*n}_commitDebugCollisionVertexUpdate(e,t,i){e.emplaceBack(t,-i,-i),e.emplaceBack(t,i,-i),e.emplaceBack(t,i,i),e.emplaceBack(t,-i,i)}_updateTextDebugCollisionBoxes(e,t,i,r,n,o){for(let s=r;s<n;s++){const r=i.get(s),n=this.getSymbolInstanceTextSize(e,o,t,s);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,n,r.padding)}}_updateIconDebugCollisionBoxes(e,t,i,r,n){for(let o=r;o<n;o++){const r=i.get(o),n=this.getSymbolInstanceIconSize(e,t,o);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,n,r.padding)}}updateCollisionDebugBuffers(e,t){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const i=hu(this.iconSizeData,e),r=hu(this.textSizeData,e);for(let n=0;n<this.symbolInstances.length;n++){const o=this.symbolInstances.get(n);this._updateTextDebugCollisionBoxes(r,e,t,o.textBoxStartIndex,o.textBoxEndIndex,o),this._updateTextDebugCollisionBoxes(r,e,t,o.verticalTextBoxStartIndex,o.verticalTextBoxEndIndex,o),this._updateIconDebugCollisionBoxes(i,e,t,o.iconBoxStartIndex,o.iconBoxEndIndex),this._updateIconDebugCollisionBoxes(i,e,t,o.verticalIconBoxStartIndex,o.verticalIconBoxEndIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(e,t,i,r,n,o,s,a,l){const c={};for(let r=t;r<i;r++){const t=e.get(r);c.textBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},c.textFeatureIndex=t.featureIndex;break}for(let t=r;t<n;t++){const i=e.get(t);c.verticalTextBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,padding:i.padding,projectedAnchorX:i.projectedAnchorX,projectedAnchorY:i.projectedAnchorY,projectedAnchorZ:i.projectedAnchorZ,tileAnchorX:i.tileAnchorX,tileAnchorY:i.tileAnchorY},c.verticalTextFeatureIndex=i.featureIndex;break}for(let t=o;t<s;t++){const i=e.get(t);c.iconBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,padding:i.padding,projectedAnchorX:i.projectedAnchorX,projectedAnchorY:i.projectedAnchorY,projectedAnchorZ:i.projectedAnchorZ,tileAnchorX:i.tileAnchorX,tileAnchorY:i.tileAnchorY},c.iconFeatureIndex=i.featureIndex;break}for(let t=a;t<l;t++){const i=e.get(t);c.verticalIconBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,padding:i.padding,projectedAnchorX:i.projectedAnchorX,projectedAnchorY:i.projectedAnchorY,projectedAnchorZ:i.projectedAnchorZ,tileAnchorX:i.tileAnchorX,tileAnchorY:i.tileAnchorY},c.verticalIconFeatureIndex=i.featureIndex;break}return c}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const i=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,i.textBoxStartIndex,i.textBoxEndIndex,i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i.iconBoxStartIndex,i.iconBoxEndIndex,i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){const i=e.placedSymbolArray.get(t),r=i.vertexStartIndex+4*i.numGlyphs;for(let t=i.vertexStartIndex;t<r;t+=4)e.indexArray.emplaceBack(t,t+1,t+2),e.indexArray.emplaceBack(t+1,t+2,t+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),i=Math.cos(e),r=[],n=[],o=[];for(let e=0;e<this.symbolInstances.length;++e){o.push(e);const s=this.symbolInstances.get(e);r.push(0|Math.round(t*s.tileAnchorX+i*s.tileAnchorY)),n.push(s.featureIndex)}return o.sort(((e,t)=>r[e]-r[t]||n[t]-n[e])),o}addToSortKeyRanges(e,t){const i=this.sortKeyRanges[this.sortKeyRanges.length-1];i&&i.sortKey===t?i.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex),[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex].forEach(((e,t,i)=>{e>=0&&i.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)})),t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Dn(Jd,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),Jd.MAX_GLYPHS=65535,Jd.addDynamicAttributes=Wd;const Qd=new Xo({"symbol-placement":new No($e.layout_symbol["symbol-placement"]),"symbol-spacing":new No($e.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new No($e.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Go($e.layout_symbol["symbol-sort-key"]),"symbol-z-order":new No($e.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new No($e.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new No($e.layout_symbol["icon-ignore-placement"]),"icon-optional":new No($e.layout_symbol["icon-optional"]),"icon-rotation-alignment":new No($e.layout_symbol["icon-rotation-alignment"]),"icon-size":new Go($e.layout_symbol["icon-size"]),"icon-text-fit":new No($e.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new No($e.layout_symbol["icon-text-fit-padding"]),"icon-image":new Go($e.layout_symbol["icon-image"]),"icon-rotate":new Go($e.layout_symbol["icon-rotate"]),"icon-padding":new No($e.layout_symbol["icon-padding"]),"icon-keep-upright":new No($e.layout_symbol["icon-keep-upright"]),"icon-offset":new Go($e.layout_symbol["icon-offset"]),"icon-anchor":new Go($e.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new No($e.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new No($e.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new No($e.layout_symbol["text-rotation-alignment"]),"text-field":new Go($e.layout_symbol["text-field"]),"text-font":new Go($e.layout_symbol["text-font"]),"text-size":new Go($e.layout_symbol["text-size"]),"text-max-width":new Go($e.layout_symbol["text-max-width"]),"text-line-height":new Go($e.layout_symbol["text-line-height"]),"text-letter-spacing":new Go($e.layout_symbol["text-letter-spacing"]),"text-justify":new Go($e.layout_symbol["text-justify"]),"text-radial-offset":new Go($e.layout_symbol["text-radial-offset"]),"text-variable-anchor":new No($e.layout_symbol["text-variable-anchor"]),"text-anchor":new Go($e.layout_symbol["text-anchor"]),"text-max-angle":new No($e.layout_symbol["text-max-angle"]),"text-writing-mode":new No($e.layout_symbol["text-writing-mode"]),"text-rotate":new Go($e.layout_symbol["text-rotate"]),"text-padding":new No($e.layout_symbol["text-padding"]),"text-keep-upright":new No($e.layout_symbol["text-keep-upright"]),"text-transform":new Go($e.layout_symbol["text-transform"]),"text-offset":new Go($e.layout_symbol["text-offset"]),"text-allow-overlap":new No($e.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new No($e.layout_symbol["text-ignore-placement"]),"text-optional":new No($e.layout_symbol["text-optional"])});var ef={paint:new Xo({"icon-opacity":new Go($e.paint_symbol["icon-opacity"]),"icon-color":new Go($e.paint_symbol["icon-color"]),"icon-halo-color":new Go($e.paint_symbol["icon-halo-color"]),"icon-halo-width":new Go($e.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Go($e.paint_symbol["icon-halo-blur"]),"icon-translate":new No($e.paint_symbol["icon-translate"]),"icon-translate-anchor":new No($e.paint_symbol["icon-translate-anchor"]),"text-opacity":new Go($e.paint_symbol["text-opacity"]),"text-color":new Go($e.paint_symbol["text-color"],{runtimeType:rt,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new Go($e.paint_symbol["text-halo-color"]),"text-halo-width":new Go($e.paint_symbol["text-halo-width"]),"text-halo-blur":new Go($e.paint_symbol["text-halo-blur"]),"text-translate":new No($e.paint_symbol["text-translate"]),"text-translate-anchor":new No($e.paint_symbol["text-translate-anchor"])}),layout:Qd};class tf{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Qe,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification["default"]}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Dn(tf,"FormatSectionOverride",{omit:["defaultValue"]});class rf extends ya{constructor(e){super(e,ef)}recalculate(e,t){super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const i=this.layout.get("text-writing-mode");if(i){const e=[];for(const t of i)e.indexOf(t)<0&&e.push(t);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(e,t,i,r){const n=this.layout.get(e).evaluate(t,{},i,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||Br(o.value)||!n?n:function(e,t){return t.replace(/{([^{}]+)}/g,((t,i)=>i in e?String(e[i]):""))}(t.properties,n)}createBucket(e){return new Jd(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of ef.paint.overridableProperties){if(!rf.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),i=new tf(t),r=new Lr(i,t.property.specification);let n=null;n="constant"===t.value.kind||"source"===t.value.kind?new Fr("source",r):new Or("composite",r,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new Vo(t.property,n,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,i){return!(!this.layout||t.isDataDriven()||i.isDataDriven())&&rf.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const i=e.get("text-field"),r=ef.paint.properties[t];let n=!1;const o=e=>{for(const t of e)if(r.overrides&&r.overrides.hasOverride(t))return void(n=!0)};if("constant"===i.value.kind&&i.value.value instanceof bt)o(i.value.value.sections);else if("source"===i.value.kind){const e=t=>{n||(t instanceof At&&St(t.value)===at?o(t.value.sections):t instanceof Dt?o(t.sections):t.eachChild(e))},t=i.value;t._styleExpression&&e(t._styleExpression.expression)}return n}getProgramConfiguration(e){return new ha(this,e)}}var nf={paint:new Xo({"background-color":new No($e.paint_background["background-color"]),"background-pattern":new $o($e.paint_background["background-pattern"]),"background-opacity":new No($e.paint_background["background-opacity"])})},of={paint:new Xo({"raster-opacity":new No($e.paint_raster["raster-opacity"]),"raster-hue-rotate":new No($e.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new No($e.paint_raster["raster-brightness-min"]),"raster-brightness-max":new No($e.paint_raster["raster-brightness-max"]),"raster-saturation":new No($e.paint_raster["raster-saturation"]),"raster-contrast":new No($e.paint_raster["raster-contrast"]),"raster-resampling":new No($e.paint_raster["raster-resampling"]),"raster-fade-duration":new No($e.paint_raster["raster-fade-duration"])})};class sf extends ya{constructor(e){super(e,{}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}var af={paint:new Xo({"sky-type":new No($e.paint_sky["sky-type"]),"sky-atmosphere-sun":new No($e.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new No($e.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new No($e.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new No($e.paint_sky["sky-gradient-radius"]),"sky-gradient":new qo($e.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new No($e.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new No($e.paint_sky["sky-atmosphere-color"]),"sky-opacity":new No($e.paint_sky["sky-opacity"])})};function lf(e,t,i){const r=[0,0,1],n=Hl([]);return Kl(n,n,i?-l(e)+Math.PI:l(e)),Yl(n,n,-l(t)),jl(r,r,n),Fl(r,r)}const cf={circle:class extends ya{constructor(e){super(e,pl)}createBucket(e){return new Wa(e)}queryRadius(e){const t=e;return al("circle-radius",this,t)+al("circle-stroke-width",this,t)+ll(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,i,r,n,o,s,a){const l=hl(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(t,i)+this.paint.get("circle-stroke-width").evaluate(t,i);return ic(e,r,o,s,a,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),l,c)}getProgramIds(){return["circle"]}getProgramConfiguration(e){return new ha(this,e)}},heatmap:class extends ya{createBucket(e){return new ac(e)}constructor(e){super(e,dc),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=fc({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(e){return al("heatmap-radius",this,e)}queryIntersectsFeature(e,t,i,r,o,s,a,l){const c=this.paint.get("heatmap-radius").evaluate(t,i);return ic(e,r,s,a,l,!0,!0,new n(0,0),c)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(e){return new ha(this,e)}},hillshade:class extends ya{constructor(e){super(e,mc)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends ya{constructor(e){super(e,ih)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),i=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&i.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),i}getProgramConfiguration(e){return new ha(this,e)}recalculate(e,t){super.recalculate(e,t);const i=this.paint._values["fill-outline-color"];"constant"===i.value.kind&&void 0===i.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new eh(e)}queryRadius(){return ll(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,i,r,n,o){return!e.queryGeometry.isAboveHorizon&&Ka(cl(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),r)}isTileClipped(){return!0}},"fill-extrusion":class extends ya{constructor(e){super(e,kh)}createBucket(e){return new wh(e)}queryRadius(){return ll(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(e){return new ha(this,e)}queryIntersectsFeature(e,t,i,r,o,s,a,l,c){const h=hl(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),u=this.paint.get("fill-extrusion-height").evaluate(t,i),p=this.paint.get("fill-extrusion-base").evaluate(t,i),d=[0,0],f=l&&s.elevation,m=s.elevation?s.elevation.exaggeration():1,_=e.tile.getBucket(this);if(f&&_ instanceof wh){const e=_.centroidVertexArray,t=c+1;if(t<e.length){const i=e.get(t);d[0]=i.a_centroid_pos0,d[1]=i.a_centroid_pos1}}if(0===d[0]&&1===d[1])return!1;"globe"===s.projection.name&&(r=zh([r],[new n(0,0),new n(wa,wa)],e.tileID.canonical).map((e=>e.polygon)).flat());const g=function(e,t,i,r,o,s,a,l,c,h,u){return"globe"===e.projection.name?function(e,t,i,r,n,o,s,a,l,c,h){const u=[],p=[],d=e.projection.upVectorScale(h,e.center.lat,e.worldSize).metersToTile,f=[0,0,0,1],m=[0,0,0,1],_=(e,t,i,r)=>{e[0]=t,e[1]=i,e[2]=r,e[3]=1},g=Ch();i>0&&(i+=g),r+=g;for(const g of t){const t=[],y=[];for(const u of g){const p=u.x+n.x,g=u.y+n.y,x=e.projection.projectTilePoint(p,g,h),v=e.projection.upVector(h,u.x,u.y);let b=i,w=r;if(s){const e=jh(p,g,i,r,s,a,l,c);b+=e.base,w+=e.top}0!==i?_(f,x.x+v[0]*d*b,x.y+v[1]*d*b,x.z+v[2]*d*b):_(f,x.x,x.y,x.z),_(m,x.x+v[0]*d*w,x.y+v[1]*d*w,x.z+v[2]*d*w),Vl(f,f,o),Vl(m,m,o),t.push(Vh(f)),y.push(Vh(m))}u.push(t),p.push(y)}return[u,p]}(e,t,i,r,o,s,a,l,c,h,u):a?function(e,t,i,r,n,o,s,a,l){const c=[],h=[],u=[0,0,0,1];for(const p of e){const e=[],d=[];for(const c of p){const h=c.x+r.x,p=c.y+r.y,f=jh(h,p,t,i,o,s,a,l);u[0]=h,u[1]=p,u[2]=f.base,u[3]=1,Xl(u,u,n),u[3]=Math.max(u[3],1e-5);const m=Vh([u[0]/u[3],u[1]/u[3],u[2]/u[3]]);u[0]=h,u[1]=p,u[2]=f.top,u[3]=1,Xl(u,u,n),u[3]=Math.max(u[3],1e-5);const _=Vh([u[0]/u[3],u[1]/u[3],u[2]/u[3]]);e.push(m),d.push(_)}c.push(e),h.push(d)}return[c,h]}(t,i,r,o,s,a,l,c,h):function(e,t,i,r,o){const s=[],a=[],l=o[8]*t,c=o[9]*t,h=o[10]*t,u=o[11]*t,p=o[8]*i,d=o[9]*i,f=o[10]*i,m=o[11]*i;for(const t of e){const e=[],i=[];for(const s of t){const t=s.x+r.x,a=s.y+r.y,_=o[0]*t+o[4]*a+o[12],g=o[1]*t+o[5]*a+o[13],y=o[2]*t+o[6]*a+o[14],x=o[3]*t+o[7]*a+o[15],v=_+l,b=g+c,w=y+h,T=Math.max(x+u,1e-5),E=_+p,S=g+d,M=y+f,I=Math.max(x+m,1e-5),A=new n(v/T,b/T);A.z=w/T,e.push(A);const C=new n(E/I,S/I);C.z=M/I,i.push(C)}s.push(e),a.push(i)}return[s,a]}(t,i,r,o,s)}(s,r,p,u,h,a,f?l:null,d,m,s.center.lat,e.tileID.canonical),y=e.queryGeometry;return function(e,t,i){let r=1/0;Ka(i,t)&&(r=Uh(i,t[0]));for(let n=0;n<t.length;n++){const o=t[n],s=e[n];for(let e=0;e<o.length-1;e++){const t=o[e],n=[t,o[e+1],s[e+1],s[e],t];Ha(i,n)&&(r=Math.min(r,Uh(i,n)))}}return r!==1/0&&r}(g[0],g[1],y.isPointQuery()?y.screenBounds:y.screenGeometry)}},line:class extends ya{constructor(e){super(e,Yh),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression&&e._styleExpression.expression instanceof gi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=Kh.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Wh(e)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(e){return new ha(this,e)}queryRadius(e){const t=e,i=Jh(al("line-width",this,t),al("line-gap-width",this,t)),r=al("line-offset",this,t);return i/2+Math.abs(r)+ll(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,i,r,o,s){if(e.queryGeometry.isAboveHorizon)return!1;const a=cl(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),s.angle,e.pixelToTileUnitsFactor),l=e.pixelToTileUnitsFactor/2*Jh(this.paint.get("line-width").evaluate(t,i),this.paint.get("line-gap-width").evaluate(t,i)),c=this.paint.get("line-offset").evaluate(t,i);return c&&(r=function(e,t){const i=[],r=new n(0,0);for(let n=0;n<e.length;n++){const o=e[n],s=[];for(let e=0;e<o.length;e++){const i=o[e-1],n=o[e],a=o[e+1],l=0===e?r:n.sub(i)._unit()._perp(),c=e===o.length-1?r:a.sub(n)._unit()._perp(),h=l._add(c)._unit();h._mult(1/(h.x*c.x+h.y*c.y)),s.push(h._mult(t)._add(n))}i.push(s)}return i}(r,c*e.pixelToTileUnitsFactor)),function(e,t,i){for(let r=0;r<t.length;r++){const n=t[r];if(e.length>=3)for(let t=0;t<n.length;t++)if(nl(e,n[t]))return!0;if(Ja(e,n,i))return!0}return!1}(a,r,l)}isTileClipped(){return!0}},symbol:rf,background:class extends ya{constructor(e){super(e,nf)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends ya{constructor(e){super(e,of)}getProgramIds(){return["raster"]}},sky:class extends ya{constructor(e){super(e,af),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"sky-gradient"===e?this._updateColorRamp():"sky-atmosphere-sun"!==e&&"sky-atmosphere-halo-color"!==e&&"sky-atmosphere-color"!==e&&"sky-atmosphere-sun-intensity"!==e||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=fc({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(e){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const t=e.style.light.properties.get("position");return this._lightPosition.azimuthal!==t.azimuthal||this._lightPosition.polar!==t.polar}return!1}getCenter(e,t){if("atmosphere"===this.paint.get("sky-type")){const i=this.paint.get("sky-atmosphere-sun"),r=!i,n=e.style.light,o=n.properties.get("position");return r&&"viewport"===n.properties.get("anchor")&&P("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),r?lf(o.azimuthal,90-o.polar,t):lf(i[0],90-i[1],t)}const i=this.paint.get("sky-gradient-center");return lf(i[0],90-i[1],t)}is3D(){return!1}isSky(){return!0}markSkyboxValid(e){this._skyboxInvalidated=!1,this._lightPosition=e.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const e=this.paint.get("sky-type");return"atmosphere"===e?["skyboxCapture","skybox"]:"gradient"===e?["skyboxGradient"]:null}}};class hf{constructor(e,t,i,r){this.context=e,this.format=i,this.texture=e.gl.createTexture(),this.update(t,r)}update(e,i,r){const{width:n,height:o}=e,{context:s}=this,{gl:a}=s,{HTMLImageElement:l,HTMLCanvasElement:c,HTMLVideoElement:h,ImageData:u,ImageBitmap:p}=t;if(a.bindTexture(a.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===a.RGBA&&(!i||!1!==i.premultiply)),r||this.size&&this.size[0]===n&&this.size[1]===o){const{x:t,y:i}=r||{x:0,y:0};e instanceof l||e instanceof c||e instanceof h||e instanceof u||p&&e instanceof p?a.texSubImage2D(a.TEXTURE_2D,0,t,i,a.RGBA,a.UNSIGNED_BYTE,e):a.texSubImage2D(a.TEXTURE_2D,0,t,i,n,o,a.RGBA,a.UNSIGNED_BYTE,e.data)}else this.size=[n,o],e instanceof l||e instanceof c||e instanceof h||e instanceof u||p&&e instanceof p?a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,a.UNSIGNED_BYTE,e):a.texImage2D(a.TEXTURE_2D,0,this.format,n,o,0,this.format,a.UNSIGNED_BYTE,e.data);this.useMipmap=Boolean(i&&i.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&a.generateMipmap(a.TEXTURE_2D)}bind(e,t){const{context:i}=this,{gl:r}=i;r.bindTexture(r.TEXTURE_2D,this.texture),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,this.useMipmap?e===r.NEAREST?r.NEAREST_MIPMAP_NEAREST:r.LINEAR_MIPMAP_NEAREST:e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class uf{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.image=new uc({width:e,height:t}),this.positions={},this.uploaded=!1}getDash(e,t){const i=this.getKey(e,t);return this.positions[i]}trim(){const e=this.width,t=this.height=T(this.nextRow);this.image.resize({width:e,height:t})}getKey(e,t){return e.join(",")+t}getDashRanges(e,t,i){const r=[];let n=e.length%2==1?-e[e.length-1]*i:0,o=e[0]*i,s=!0;r.push({left:n,right:o,isDash:s,zeroLength:0===e[0]});let a=e[0];for(let t=1;t<e.length;t++){s=!s;const l=e[t];n=a*i,a+=l,o=a*i,r.push({left:n,right:o,isDash:s,zeroLength:0===l})}return r}addRoundDash(e,t,i){const r=t/2;for(let t=-i;t<=i;t++){const n=this.width*(this.nextRow+i+t);let o=0,s=e[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=e[++o]);const l=Math.abs(a-s.left),c=Math.abs(a-s.right),h=Math.min(l,c);let u;const p=t/i*(r+1);if(s.isDash){const e=r-Math.abs(p);u=Math.sqrt(h*h+e*e)}else u=r-Math.sqrt(h*h+p*p);this.image.data[n+a]=Math.max(0,Math.min(255,u+128))}}}addRegularDash(e,t){for(let t=e.length-1;t>=0;--t){const i=e[t],r=e[t+1];i.zeroLength?e.splice(t,1):r&&r.isDash===i.isDash&&(r.left=i.left,e.splice(t,1))}const i=e[0],r=e[e.length-1];i.isDash===r.isDash&&(i.left=r.left-this.width,r.right=i.right+this.width);const n=this.width*this.nextRow;let o=0,s=e[o];for(let i=0;i<this.width;i++){i/s.right>1&&(s=e[++o]);const r=Math.abs(i-s.left),a=Math.abs(i-s.right),l=Math.min(r,a);this.image.data[n+i]=Math.max(0,Math.min(255,(s.isDash?l:-l)+t+128))}}addDash(e,t){const i=this.getKey(e,t);if(this.positions[i])return this.positions[i];const r="round"===t,n=r?7:0,o=2*n+1;if(this.nextRow+o>this.height)return P("LineAtlas out of space"),null;0===e.length&&e.push(1);let s=0;for(let t=0;t<e.length;t++)e[t]<0&&(P("Negative value is found in line dasharray, replacing values with 0"),e[t]=0),s+=e[t];if(0!==s){const i=this.width/s,o=this.getDashRanges(e,this.width,i);r?this.addRoundDash(o,i,n):this.addRegularDash(o,"square"===t?.5*i:0)}const a=this.nextRow+n;this.nextRow+=o;const l={tl:[a,n],br:[s,0]};return this.positions[i]=l,l}}Dn(uf,"LineAtlas");class pf{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback()}),0))}remove(){this._channel=void 0,this._callback=()=>{}}}class df{constructor(){this.tasks={},this.taskQueue=[],S(["process"],this),this.invoker=new pf(this.process),this.nextId=0}add(e,t){const i=this.nextId++,r=function({type:e,isSymbolTile:t,zoom:i}){return i=i||0,"message"===e?0:"maybePrepare"!==e||t?"parseTile"!==e||t?"parseTile"===e&&t?300-i:"maybePrepare"===e&&t?400-i:500:200-i:100-i}(t);if(0===r){L();try{e()}finally{}return{cancel:()=>{}}}return this.tasks[i]={fn:e,metadata:t,priority:r,id:i},this.taskQueue.push(i),this.invoker.trigger(),{cancel:()=>{delete this.tasks[i]}}}process(){L();try{if(this.taskQueue=this.taskQueue.filter((e=>!!this.tasks[e])),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let i=0;i<this.taskQueue.length;i++){const r=this.tasks[this.taskQueue[i]];r.priority<t&&(t=r.priority,e=i)}if(null===e)return null;const i=this.taskQueue[e];return this.taskQueue.splice(e,1),i}remove(){this.invoker.remove()}}class ff{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const i=e[t];this._stringToNumber[i]=t,this._numberToString[t]=i}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}const mf=["tile","layer","source","sourceLayer","state"];class _f{constructor(e,t,i,r,n){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=i,this._y=r,this.properties=e.properties,this.id=n}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={type:"Feature",geometry:this.geometry,properties:this.properties};void 0!==this.id&&(e.id=this.id);for(const t of mf)void 0!==this[t]&&(e[t]=this[t]);return e}}const gf=32,yf=33,xf=new Uint16Array(8184);for(let e=0;e<2046;e++){let t=e+2,i=0,r=0,n=0,o=0,s=0,a=0;for(1&t?n=o=s=gf:i=r=a=gf;(t>>=1)>1;){const e=i+n>>1,l=r+o>>1;1&t?(n=i,o=r,i=s,r=a):(i=n,r=o,n=s,o=a),s=e,a=l}const l=4*e;xf[l+0]=i,xf[l+1]=r,xf[l+2]=n,xf[l+3]=o}const vf=new Uint16Array(2178),bf=new Uint8Array(1089),wf=new Uint16Array(1089);function Tf(e){return 0===e?-.03125:32===e?.03125:0}var Ef=Jo([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Sf={type:2,extent:wa,loadGeometry:()=>[[new n(0,0),new n(8193,0),new n(8193,8193),new n(0,8193),new n(0,0)]]};class Mf{constructor(e,t,i,r,n){this.tileID=e,this.uid=b(),this.uses=0,this.tileSize=t,this.tileZoom=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=n,this.expiredRequestCount=0,this.state="loading",r&&r.transform&&(this.projection=r.transform.projection)}registerFadeDuration(e){const t=e+this.timeAdded;t<X.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=wd(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(e,t,i){if(this.unloadVectorData(),this.state="loaded",e){e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){const i={};if(!t)return i;for(const r of e){const e=r.layerIds.map((e=>t.getLayer(e))).filter(Boolean);if(0!==e.length){r.layers=e,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map((t=>e.filter((e=>e.id===t))[0])));for(const t of e)i[t.id]=r}}return i}(e.buckets,t.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Jd){if(this.hasSymbolBuckets=!0,!i)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof Jd&&t.hasRTLText){this.hasRTLText=!0,ko.isLoading()||ko.isLoaded()||"deferred"!==zo()||Po();break}}this.queryPadding=0;for(const e in this.buckets){const i=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(e).queryRadius(i))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas)}else this.collisionBoxArray=new As}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.id]}upload(e){for(const t in this.buckets){const i=this.buckets[t];i.uploadPending()&&i.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new hf(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new hf(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new hf(e,this.lineAtlas.image,t.ALPHA),this.lineAtlas.uploaded=!0)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,i,r,n,o,s,a){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:r,pixelPosMatrix:s,transform:o,params:n,tileTransform:this.tileTransform},e,t,i):{}}querySourceFeatures(e,t){const i=this.latestFeatureIndex;if(!i||!i.rawTileData)return;const r=i.loadVTLayers(),n=t?t.sourceLayer:"",o=r._geojsonTileLayer||r[n];if(!o)return;const s=Kr(t&&t.filter),{z:a,x:l,y:c}=this.tileID.canonical,h={z:a,x:l,y:c};for(let t=0;t<o.length;t++){const r=o.feature(t);if(s.needGeometry){const e=$a(r,!0);if(!s.filter(new Do(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!s.filter(new Do(this.tileID.overscaledZ),r))continue;const u=i.getId(r,n),p=new _f(r,a,l,c,u);p.tile=h,e.push(p)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){const t=this.expirationTime;if(e.cacheControl){const t=B(e.cacheControl);t["max-age"]&&(this.expirationTime=Date.now()+1e3*t["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){const e=Date.now();let i=!1;if(this.expirationTime>e)i=!1;else if(t)if(this.expirationTime<t)i=!0;else{const r=this.expirationTime-t;r?this.expirationTime=e+Math.max(r,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(e).length||!t)return;const i=this.latestFeatureIndex.loadVTLayers(),r=t.style.listImages();for(const n in this.buckets){if(!t.style.hasLayer(n))continue;const o=this.buckets[n],s=o.layers[0].sourceLayer||"_geojsonTileLayer",a=i[s],l=e[s];if(!a||!l||0===Object.keys(l).length)continue;if(o.update(l,a,r,this.imageAtlas&&this.imageAtlas.patternPositions||{}),o instanceof Wh||o instanceof eh){const e=t.style._getSourceCache(o.layers[0].source);t._terrain&&t._terrain.enabled&&e&&o.programConfigurations.needsUpload&&t._terrain._clearRenderCacheForTile(e.id,this.tileID)}const c=t&&t.style&&t.style.getLayer(n);c&&(this.queryPadding=Math.max(this.queryPadding,c.queryRadius(o)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<X.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=X.now()+e}setTexture(e,t){const i=t.context,r=i.gl;this.texture=t.getTileTexture(e.width),this.texture?this.texture.update(e,{useMipmap:!0}):(this.texture=new hf(i,e,r.RGBA,{useMipmap:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),i.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax))}setDependencies(e,t){const i={};for(const e of t)i[e]=!0;this.dependencies[e]=i}hasDependency(e,t){for(const i of e){const e=this.dependencies[i];if(e)for(const i of t)if(e[i])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(e,t){if(!t||"mercator"===t.name||this._tileDebugBuffer)return;const i=Za(Sf,this.tileID.canonical,this.tileTransform)[0],r=new es,n=new Ts;for(let e=0;e<i.length;e++){const{x:t,y:o}=i[e];r.emplaceBack(t,o),n.emplaceBack(e)}n.emplaceBack(0),this._tileDebugIndexBuffer=e.createIndexBuffer(n),this._tileDebugBuffer=e.createVertexBuffer(r,qp.members),this._tileDebugSegments=ba.simpleSegment(0,0,r.length,n.length)}_makeTileBoundsBuffers(e,t){if(this._tileBoundsBuffer||!t||"mercator"===t.name)return;const i=Za(Sf,this.tileID.canonical,this.tileTransform)[0];let r,n;if(this.isRaster){const e=function(e,t){const i=wd(e,t),r=Math.pow(2,e.z);for(let n=0;n<yf;n++)for(let o=0;o<yf;o++){const s=Pa((e.x+(o+Tf(o))/gf)/r),a=ka((e.y+(n+Tf(n))/gf)/r),l=t.project(s,a),c=n*yf+o;vf[2*c+0]=Math.round((l.x*i.scale-i.x)*wa),vf[2*c+1]=Math.round((l.y*i.scale-i.y)*wa)}bf.fill(0),wf.fill(0);for(let e=2045;e>=0;e--){const t=4*e,i=xf[t+0],r=xf[t+1],n=xf[t+2],o=xf[t+3],s=i+n>>1,a=r+o>>1,l=s+a-r,c=a+i-s,h=r*yf+i,u=o*yf+n,p=a*yf+s,d=Math.hypot((vf[2*h+0]+vf[2*u+0])/2-vf[2*p+0],(vf[2*h+1]+vf[2*u+1])/2-vf[2*p+1])>=16;if(bf[p]=bf[p]||(d?1:0),e<1022){const e=(r+c>>1)*yf+(i+l>>1),t=(o+c>>1)*yf+(n+l>>1);bf[p]=bf[p]||bf[e]||bf[t]}}const n=new is,o=new _s;let s=0;function a(e,t){const i=t*yf+e;return 0===wf[i]&&(n.emplaceBack(vf[2*i+0],vf[2*i+1],e*wa/gf,t*wa/gf),wf[i]=++s),wf[i]-1}function l(e,t,i,r,n,s){const c=e+i>>1,h=t+r>>1;if(Math.abs(e-n)+Math.abs(t-s)>1&&bf[h*yf+c])l(n,s,e,t,c,h),l(i,r,n,s,c,h);else{const l=a(e,t),c=a(i,r),h=a(n,s);o.emplaceBack(l,c,h)}}return l(0,0,gf,gf,gf,0),l(gf,gf,0,0,0,gf),{vertices:n,indices:o}}(this.tileID.canonical,t);r=e.vertices,n=e.indices}else{r=new is,n=new _s;for(const{x:e,y:t}of i)r.emplaceBack(e,t,0,0);const e=yc(r.int16,void 0,4);for(let t=0;t<e.length;t+=3)n.emplaceBack(e[t],e[t+1],e[t+2])}this._tileBoundsBuffer=e.createVertexBuffer(r,Ef.members),this._tileBoundsIndexBuffer=e.createIndexBuffer(n),this._tileBoundsSegments=ba.simpleSegment(0,0,r.length,n.length)}_makeGlobeTileDebugBuffers(e,t){const i=t.projection;if(!i||"globe"!==i.name||t.freezeTileCoverage)return;const r=this.tileID.canonical,n=dd(rd(r,t)),o=_d(t.zoom);let s;o>0&&(s=gl(new Float64Array(16),t.globeMatrix));const a=(r.x+.5)/(1<<r.z)-Aa(t.center.lng);let l=0;a>.5?l=-1:a<-.5&&(l=1),this._makeGlobeTileDebugBorderBuffer(e,r,t,n,s,o,l),this._makeGlobeTileDebugTextBuffer(e,r,t,n,s,o,l)}_globePoint(e,t,i,r,n,o,s,a){let l=hd(e,t,i);if(o){const n=1<<i.z,c=[((e/wa+i.x)/n+a)*r,(t/wa+i.y)/n*r,0];Vl(c,c,o),l=xi(l,c,s)}return Vl(l,l,n)}_makeGlobeTileDebugBorderBuffer(e,t,i,r,n,o,s){const a=new es,l=new Ts,c=new ts,h=(e,h,u,p,d)=>{const f=(u-e)/(d-1),m=(p-h)/(d-1),_=a.length;for(let u=0;u<d;u++){const p=e+u*f,d=h+u*m;a.emplaceBack(p,d);const g=this._globePoint(p,d,t,i.worldSize,r,n,o,s);c.emplaceBack(g[0],g[1],g[2]),l.emplaceBack(_+u)}},u=wa;h(0,0,u,0,16),h(u,0,u,u,16),h(u,u,0,u,16),h(0,u,0,0,16),this._tileDebugIndexBuffer=e.createIndexBuffer(l),this._tileDebugBuffer=e.createVertexBuffer(a,qp.members),this._globeTileDebugBorderBuffer=e.createVertexBuffer(c,$p.members),this._tileDebugSegments=ba.simpleSegment(0,0,a.length,l.length)}_makeGlobeTileDebugTextBuffer(e,t,i,r,n,o,s){const a=new es,l=new _s,c=new ts,h=25;l.reserve(32),a.reserve(h),c.reserve(h);const u=(e,t)=>h*e+t;for(let e=0;e<h;e++){const l=2048*e;for(let e=0;e<h;e++){const h=2048*e;a.emplaceBack(h,l);const u=this._globePoint(h,l,t,i.worldSize,r,n,o,s);c.emplaceBack(u[0],u[1],u[2])}}for(let e=0;e<4;e++)for(let t=0;t<4;t++){const i=u(e,t),r=u(e,t+1),n=u(e+1,t),o=u(e+1,t+1);l.emplaceBack(i,r,n),l.emplaceBack(n,r,o)}this._tileDebugTextIndexBuffer=e.createIndexBuffer(l),this._tileDebugTextBuffer=e.createVertexBuffer(a,qp.members),this._globeTileDebugTextBuffer=e.createVertexBuffer(c,$p.members),this._tileDebugTextSegments=ba.simpleSegment(0,0,h,32)}}class If{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,t,i){const r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},x(this.stateChanges[e][r],i),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==r&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][r]){this.deletedStates[e][r]={};for(const t in this.state[e][r])i[t]||(this.deletedStates[e][r][t]=null)}else for(const t in i)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][t]&&delete this.deletedStates[e][r][t]}removeFeatureState(e,t,i){if(null===this.deletedStates[e])return;const r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},i&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][i]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(i in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][i]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(e,t){const i=String(t),r=x({},(this.state[e]||{})[i],(this.stateChanges[e]||{})[i]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){const i=this.deletedStates[e][t];if(null===i)return{};for(const e in i)delete r[e]}return r}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,t){const i={};for(const e in this.stateChanges){this.state[e]=this.state[e]||{};const t={};for(const i in this.stateChanges[e])this.state[e][i]||(this.state[e][i]={}),x(this.state[e][i],this.stateChanges[e][i]),t[i]=this.state[e][i];i[e]=t}for(const e in this.deletedStates){this.state[e]=this.state[e]||{};const t={};if(null===this.deletedStates[e])for(const i in this.state[e])t[i]={},this.state[e][i]={};else for(const i in this.deletedStates[e]){if(null===this.deletedStates[e][i])this.state[e][i]={};else for(const t of Object.keys(this.deletedStates[e][i]))delete this.state[e][i][t];t[i]=this.state[e][i]}i[e]=i[e]||{},x(i[e],t)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(i).length)for(const r in e)e[r].setFeatureState(i,t)}}class Af{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const i=this.toIdx(e,t);return{min:this.minimums[i],max:this.maximums[i]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function Cf(e,t,i,r){let n=0,o=Number.MAX_VALUE;for(let s=0;s<3;s++)if(Math.abs(r[s])<1e-15){if(i[s]<e[s]||i[s]>t[s])return null}else{const a=1/r[s];let l=(e[s]-i[s])*a,c=(t[s]-i[s])*a;if(l>c){const e=l;l=c,c=e}if(l>n&&(n=l),c<o&&(o=c),n>o)return null}return n}function zf(e,t,i,r,n,o,s,a,l,c,h){const u=r-e,p=n-t,d=o-i,f=s-e,m=a-t,_=l-i,g=h[1]*_-h[2]*m,y=h[2]*f-h[0]*_,x=h[0]*m-h[1]*f,v=u*g+p*y+d*x;if(Math.abs(v)<1e-15)return null;const b=1/v,w=c[0]-e,T=c[1]-t,E=c[2]-i,S=(w*g+T*y+E*x)*b;if(S<0||S>1)return null;const M=T*d-E*p,I=E*u-w*d,A=w*p-T*u,C=(h[0]*M+h[1]*I+h[2]*A)*b;return C<0||S+C>1?null:(f*M+m*I+_*A)*b}function Pf(e,t,i){return(e-t)/(i-t)}function kf(e,t,i,r,n,o,s,a,l){const c=1<<i,h=o-r,u=s-n,p=(e+1)/c*h+r,d=(t+0)/c*u+n,f=(t+1)/c*u+n;a[0]=(e+0)/c*h+r,a[1]=d,l[0]=p,l[1]=f}class Df{constructor(e){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=e,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const t=function(e){const t=Math.ceil(Math.log2(e.dim/8)),i=[];let r=Math.ceil(Math.pow(2,t));const n=1/r,o=(e,t,i,r,n)=>{const o=r?1:0,s=(e+1)*i-o,a=t*i,l=(t+1)*i-o;n[0]=e*i,n[1]=a,n[2]=s,n[3]=l};let s=new Af(r);const a=[];for(let t=0;t<r*r;t++){o(t%r,Math.floor(t/r),n,!1,a);const i=Bf(a[0],a[1],e),l=Bf(a[2],a[1],e),c=Bf(a[2],a[3],e),h=Bf(a[0],a[3],e);s.minimums.push(Math.min(i,l,c,h)),s.maximums.push(Math.max(i,l,c,h)),s.leaves.push(1)}for(i.push(s),r/=2;r>=1;r/=2){const e=i[i.length-1];s=new Af(r);for(let t=0;t<r*r;t++){o(t%r,Math.floor(t/r),2,!0,a);const i=e.getElevation(a[0],a[1]),n=e.getElevation(a[2],a[1]),l=e.getElevation(a[2],a[3]),c=e.getElevation(a[0],a[3]),h=e.isLeaf(a[0],a[1]),u=e.isLeaf(a[2],a[1]),p=e.isLeaf(a[2],a[3]),d=e.isLeaf(a[0],a[3]),f=Math.min(i.min,n.min,l.min,c.min),m=Math.max(i.max,n.max,l.max,c.max),_=h&&u&&p&&d;s.maximums.push(m),s.minimums.push(f),s.leaves.push(m-f<=5&&_?1:0)}i.push(s)}return i}(this.dem),i=t.length-1,r=t[i];this._addNode(r.minimums[0],r.maximums[0],r.leaves[0]),this._construct(t,0,0,i,0)}raycastRoot(e,t,i,r,n,o,s=1){return Cf([e,t,-100],[i,r,this.maximums[0]*s],n,o)}raycast(e,t,i,r,n,o,s=1){if(!this.nodeCount)return null;const a=this.raycastRoot(e,t,i,r,n,o,s);if(null==a)return null;const l=[],c=[],h=[],u=[],p=[{idx:0,t:a,nodex:0,nodey:0,depth:0}];for(;p.length>0;){const{idx:a,t:d,nodex:f,nodey:m,depth:_}=p.pop();if(this.leaves[a]){kf(f,m,_,e,t,i,r,h,u);const a=1<<_,l=(f+0)/a,c=(f+1)/a,p=(m+0)/a,g=(m+1)/a,y=Bf(l,p,this.dem)*s,x=Bf(c,p,this.dem)*s,v=Bf(c,g,this.dem)*s,b=Bf(l,g,this.dem)*s,w=zf(h[0],h[1],y,u[0],h[1],x,u[0],u[1],v,n,o),T=zf(u[0],u[1],v,h[0],u[1],b,h[0],h[1],y,n,o),E=Math.min(null!==w?w:Number.MAX_VALUE,null!==T?T:Number.MAX_VALUE);if(E!==Number.MAX_VALUE)return E;{const e=Rl([],n,o,d);if(Lf(y,x,b,v,Pf(e[0],h[0],u[0]),Pf(e[1],h[1],u[1]))>=e[2])return d}continue}let g=0;for(let p=0;p<this._siblingOffset.length;p++){kf((f<<1)+this._siblingOffset[p][0],(m<<1)+this._siblingOffset[p][1],_+1,e,t,i,r,h,u),h[2]=-100,u[2]=this.maximums[this.childOffsets[a]+p]*s;const d=Cf(h,u,n,o);if(null!=d){const e=d;l[p]=e;let t=!1;for(let i=0;i<g&&!t;i++)e>=l[c[i]]&&(c.splice(i,0,p),t=!0);t||(c[g]=p),g++}}for(let e=0;e<g;e++){const t=c[e];p.push({idx:this.childOffsets[a]+t,t:l[t],nodex:(f<<1)+this._siblingOffset[t][0],nodey:(m<<1)+this._siblingOffset[t][1],depth:_+1})}}return null}_addNode(e,t,i){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(i),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,i,r,n){if(1===e[r].isLeaf(t,i))return;this.childOffsets[n]||(this.childOffsets[n]=this.nodeCount);const o=r-1,s=e[o];let a=0,l=0;for(let e=0;e<this._siblingOffset.length;e++){const r=2*t+this._siblingOffset[e][0],n=2*i+this._siblingOffset[e][1],o=s.getElevation(r,n),c=s.isLeaf(r,n),h=this._addNode(o.min,o.max,c);c&&(a|=1<<e),l||(l=h)}for(let r=0;r<this._siblingOffset.length;r++)a&1<<r||this._construct(e,2*t+this._siblingOffset[r][0],2*i+this._siblingOffset[r][1],o,l+r)}}function Lf(e,t,i,r,n,o){return yi(yi(e,i,o),yi(t,r,o),n)}function Bf(e,t,i){const r=i.dim,n=f(e*r-.5,0,r-1),o=f(t*r-.5,0,r-1),s=Math.floor(n),a=Math.floor(o),l=Math.min(s+1,r-1),c=Math.min(a+1,r-1);return Lf(i.get(s,a),i.get(l,a),i.get(s,c),i.get(l,c),n-s,o-a)}const Rf={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};class Ff{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,i,r=!1,n=!1){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(i&&"mapbox"!==i&&"terrarium"!==i)return P(`"${i}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=t.height;const o=this.dim=t.height-2,s=new Uint32Array(t.data.buffer);if(this.pixels=new Uint8Array(t.data.buffer),this.encoding=i||"mapbox",this.borderReady=r,!r){for(let e=0;e<o;e++)s[this._idx(-1,e)]=s[this._idx(0,e)],s[this._idx(o,e)]=s[this._idx(o-1,e)],s[this._idx(e,-1)]=s[this._idx(e,0)],s[this._idx(e,o)]=s[this._idx(e,o-1)];s[this._idx(-1,-1)]=s[this._idx(0,0)],s[this._idx(o,-1)]=s[this._idx(o-1,0)],s[this._idx(-1,o)]=s[this._idx(0,o-1)],s[this._idx(o,o)]=s[this._idx(o-1,o-1)],n&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new Df(this)}get(e,t,i=!1){i&&(e=f(e,-1,this.dim),t=f(t,-1,this.dim));const r=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(this.pixels[r],this.pixels[r+1],this.pixels[r+2])}static getUnpackVector(e){return Rf[e]}get unpackVector(){return Rf[this.encoding]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}_unpackMapbox(e,t,i){return(256*e*256+256*t+i)/10-1e4}_unpackTerrarium(e,t,i){return 256*e+t+i/256-32768}static pack(e,t){const i=[0,0,0,0],r=Ff.getUnpackVector(t);let n=Math.floor((e+r[3])/r[2]);return i[2]=n%256,n=Math.floor(n/256),i[1]=n%256,n=Math.floor(n/256),i[0]=n,i}getPixels(){return new pc({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,i){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let r=t*this.dim,n=t*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(t){case-1:r=n-1;break;case 1:n=r+1}switch(i){case-1:o=s-1;break;case 1:s=o+1}const a=-t*this.dim,l=-i*this.dim;for(let t=o;t<s;t++)for(let i=r;i<n;i++){const r=4*this._idx(i,t),n=4*this._idx(i+a,t+l);this.pixels[r+0]=e.pixels[n+0],this.pixels[r+1]=e.pixels[n+1],this.pixels[r+2]=e.pixels[n+2],this.pixels[r+3]=e.pixels[n+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}Dn(Ff,"DEMData"),Dn(Df,"DemMinMaxQuadTree",{omit:["dem"]});class Of{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,i){const r=e.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);const n={value:t,timeout:void 0};if(void 0!==i&&(n.timeout=setTimeout((()=>{this.remove(e,n)}),i)),this.data[r].push(n),this.order.push(r),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const i=e.wrapped().key,r=void 0===t?0:this.data[i].indexOf(t),n=this.data[i][r];return this.data[i].splice(r,1),n.timeout&&clearTimeout(n.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(n.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const i in this.data)for(const r of this.data[i])e(r.value)||t.push(r);for(const e of t)this.remove(e.value.tileID,e)}}class Uf{constructor(e,t,i){this.func=e,this.mask=t,this.range=i}}Uf.ReadOnly=!1,Uf.ReadWrite=!0,Uf.disabled=new Uf(519,Uf.ReadOnly,[0,1]);const Vf=7680;class jf{constructor(e,t,i,r,n,o){this.test=e,this.ref=t,this.mask=i,this.fail=r,this.depthFail=n,this.pass=o}}jf.disabled=new jf({func:519,mask:0},0,0,Vf,Vf,Vf);class Nf{constructor(e,t,i){this.blendFunction=e,this.blendColor=t,this.mask=i}}Nf.Replace=[1,0],Nf.disabled=new Nf(Nf.Replace,yt.transparent,[!1,!1,!1,!1]),Nf.unblended=new Nf(Nf.Replace,yt.transparent,[!0,!0,!0,!0]),Nf.alphaBlended=new Nf([1,771],yt.transparent,[!0,!0,!0,!0]);const Gf=1029,Zf=2305;class $f{constructor(e,t,i){this.enable=e,this.mode=t,this.frontFace=i}}$f.disabled=new $f(!1,Gf,Zf),$f.backCCW=new $f(!0,Gf,Zf),$f.backCW=new $f(!0,Gf,2304),$f.frontCW=new $f(!0,1028,2304),$f.frontCCW=new $f(!0,1028,Zf);class qf extends Ze{constructor(e,t,i){super(),this.id=e,this._onlySymbols=i,t.on("data",(e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))})),t.on("error",(()=>{this._sourceErrored=!0})),this._source=t,this._tiles={},this._cache=new Of(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new If,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,(()=>{}))}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,(()=>{}))}serialize(){return this._source.serialize()}prepare(e){if(this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._source.prepareTile)for(const t in this._tiles){const i=this._tiles[t];this._source.prepareTile(i)&&this.map.painter.terrain&&this.map.painter.terrain._clearRenderCacheForTile(this.id,i.tileID),i.upload(e),i.prepare(this.map.style.imageManager)}else for(const t in this._tiles){const i=this._tiles[t];i.upload(e),i.prepare(this.map.style.imageManager)}}getIds(){return y(this._tiles).map((e=>e.tileID)).sort(Xf).map((e=>e.key))}getRenderableIds(e){const t=[];for(const i in this._tiles)this._isIdRenderable(+i,e)&&t.push(this._tiles[i]);return e?t.sort(((e,t)=>{const i=e.tileID,r=t.tileID,o=new n(i.canonical.x,i.canonical.y)._rotate(this.transform.angle),s=new n(r.canonical.x,r.canonical.y)._rotate(this.transform.angle);return i.overscaledZ-r.overscaledZ||s.y-o.y||s.x-o.x})).map((e=>e.tileID.key)):t.map((e=>e.tileID)).sort(Xf).map((e=>e.key))}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const i=this._tiles[e];i&&("loading"!==i.state&&(i.state=t),this._loadTile(i,this._tileLoaded.bind(this,i,e,t)))}_tileLoaded(e,t,i,r){if(r)if(e.state="errored",404!==r.status)this._source.fire(new Ge(r,{tile:e}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const e=this.map.painter.terrain;this.update(this.transform,e.getScaledDemTileSize(),!0),e.resetTileLookupCache(this.id)}else this.update(this.transform);else e.timeAdded=X.now(),"expired"===i&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(t,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Ne("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let r=0;r<t.length;r++){const n=t[r];if(e.neighboringTiles&&e.neighboringTiles[n]){const t=this.getTileByID(n);i(e,t),i(t,e)}}function i(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let i=t.tileID.canonical.x-e.tileID.canonical.x;const r=t.tileID.canonical.y-e.tileID.canonical.y,n=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===i&&0===r||Math.abs(r)>1||(Math.abs(i)>1&&(1===Math.abs(i+n)?i+=n:1===Math.abs(i-n)&&(i-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,i,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,i,r){for(const n in this._tiles){let o=this._tiles[n];if(r[n]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>i)continue;let s=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[e.key],o&&o.hasData()&&(s=e)}let a=s;for(;a.overscaledZ>t;)if(a=a.scaledTo(a.overscaledZ-1),e[a.key]){r[s.key]=s;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const i=this._loadedParentTiles[e.key];return i&&i.tileID.overscaledZ>=t?i:null}for(let i=e.overscaledZ-1;i>=t;i--){const t=e.scaledTo(i),r=this._getLoadedTile(t);if(r)return r}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const i=Math.ceil(e.width/t)+1,r=Math.ceil(e.height/t)+1,n=Math.floor(i*r*5),o="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,n):n,s="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(s)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const i in this._tiles){const r=this._tiles[i];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),e[r.tileID.key]=r}this._tiles=e;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles)this._setTileReloadTimer(+e,this._tiles[e])}}update(e,t,i){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!i)return;let r;this.updateCacheSize(e,t),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?r=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((e=>new Rh(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y))):(r=e.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!i,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(r=r.filter((e=>this._source.hasTile(e))))):r=[];const n=this._updateRetainedTiles(r);if(Wf(this._source.type)&&0!==r.length){const e={},t={},i=Object.keys(n);for(const r of i){const i=n[r],o=this._tiles[r];if(!o||o.fadeEndTime&&o.fadeEndTime<=X.now())continue;const s=this.findLoadedParent(i,Math.max(i.overscaledZ-qf.maxOverzooming,this._source.minzoom));s&&(this._addTile(s.tileID),e[s.tileID.key]=s.tileID),t[r]=i}const o=r[r.length-1].overscaledZ;for(const e in this._tiles){const i=this._tiles[e];if(n[e]||!i.hasData())continue;let r=i.tileID;for(;r.overscaledZ>o;){r=r.scaledTo(r.overscaledZ-1);const o=this._tiles[r.key];if(o&&o.hasData()&&t[r.key]){n[e]=i.tileID;break}}}for(const t in e)n[t]||(this._coveredTiles[t]=!0,n[t]=e[t])}for(const e in n)this._tiles[e].clearFadeHold();const o=function(e,t){const i=[];for(const r in e)r in t||i.push(r);return i}(this._tiles,n);for(const e of o){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+e)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const i={},r=e.reduce(((e,t)=>Math.min(e,t.overscaledZ)),1/0),n=e[0].overscaledZ,o=Math.max(n-qf.maxOverzooming,this._source.minzoom),s=Math.max(n+qf.maxUnderzooming,this._source.minzoom),a={};for(const i of e){const e=this._addTile(i);t[i.key]=i,e.hasData()||r<this._source.maxzoom&&(a[i.key]=i)}this._retainLoadedChildren(a,r,s,t);for(const r of e){let e=this._tiles[r.key];if(e.hasData())continue;if(r.canonical.z>=this._source.maxzoom){const e=r.children(this._source.maxzoom)[0],i=this.getTile(e);if(i&&i.hasData()){t[e.key]=e;continue}}else{const e=r.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let n=e.wasRequested();for(let s=r.overscaledZ-1;s>=o;--s){const o=r.scaledTo(s);if(i[o.key])break;if(i[o.key]=!0,e=this.getTile(o),!e&&n&&(e=this._addTile(o)),e&&(t[o.key]=o,n=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let i,r=this._tiles[e].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){i=this._loadedParentTiles[r.key];break}t.push(r.key);const e=r.scaledTo(r.overscaledZ-1);if(i=this._getLoadedTile(e),i)break;r=e}for(const e of t)this._loadedParentTiles[e]=i}}_addTile(e){let t=this._tiles[e.key];if(t)return this._source.prepareTile&&this._source.prepareTile(t),t;t=this._cache.getAndRemove(e),t&&(this._setTileReloadTimer(e.key,t),t.tileID=e,this._state.initializeTileState(t,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,t)));const i=Boolean(t);if(!i){const i=this.map?this.map.painter:null;t=new Mf(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,i,this._isRaster),this._source.prepareTile&&this._source.prepareTile(t)||this._loadTile(t,this._tileLoaded.bind(this,t,e.key,t.state))}return t?(t.uses++,this._tiles[e.key]=t,i||this._source.fire(new Ne("dataloading",{tile:t,coord:t.tileID,dataType:"source"})),t):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const i=t.getExpiryTimeout();i&&(this._timers[e]=setTimeout((()=>{this._reloadTile(e,"expired"),delete this._timers[e]}),i))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,t,i){const r=[],n=this.transform;if(!n)return r;const o="globe"===n.projection.name,s=Aa(n.center.lng);for(const a in this._tiles){const l=this._tiles[a];if(i&&l.clearQueryDebugViz(),l.holdingForFade())continue;let c;if(o){const e=l.tileID.canonical;if(0===e.z){const t=[Math.abs(f(s,...Hf(e,-1))-s),Math.abs(f(s,...Hf(e,1))-s)];c=[0,2*t.indexOf(Math.min(...t))-1]}else{const t=[Math.abs(f(s,...Hf(e,-1))-s),Math.abs(f(s,...Hf(e,0))-s),Math.abs(f(s,...Hf(e,1))-s)];c=[t.indexOf(Math.min(...t))-1]}}else c=[0];for(const i of c){const o=e.containsTile(l,n,t,i);o&&r.push(o)}}return r}getVisibleCoordinates(e){const t=this.getRenderableIds(e).map((e=>this._tiles[e].tileID));for(const e of t)e.projMatrix=this.transform.calculateProjMatrix(e.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(Wf(this._source.type))for(const e in this._tiles){const t=this._tiles[e];if(void 0!==t.fadeEndTime&&t.fadeEndTime>=X.now())return!0}return!1}setFeatureState(e,t,i){this._state.updateState(e=e||"_geojsonTileLayer",t,i)}removeFeatureState(e,t,i){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,i)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,i){const r=this._tiles[e];r&&r.setDependencies(t,i)}reloadTilesForDependencies(e,t){for(const i in this._tiles)this._tiles[i].hasDependency(e,t)&&this._reloadTile(+i,"reloading");this._cache.filter((i=>!i.hasDependency(e,t)))}_preloadTiles(e,t){const i=new Map,r=Array.isArray(e)?e:[e],n=this.map.painter.terrain,o=this.usedForTerrain&&n?n.getScaledDemTileSize():this._source.tileSize;for(const e of r){const t=e.coveringTiles({tileSize:o,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const e of t)i.set(e.key,e);this.usedForTerrain&&e.updateElevation(!1)}g(Array.from(i.values()),((e,t)=>{const i=new Mf(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(i,(e=>{"raster-dem"===this._source.type&&i.dem&&this._backfillDEM(i),t(e,i)}))}),t)}}function Xf(e,t){const i=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-i||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Wf(e){return"raster"===e||"image"===e||"video"===e}function Hf(e,t){const i=1<<e.z;return[e.x/i+t,(e.x+1)/i+t]}qf.maxOverzooming=10,qf.maxUnderzooming=3;class Yf{constructor(e,t,i){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=i}static create(e,t,i){const r=i||e.findDEMTileFor(t);if(!r||!r.dem)return;const n=r.dem,o=r.tileID,s=1<<t.canonical.z-o.canonical.z;return new Yf(r,r.tileSize/wa/s,[(t.canonical.x/s-o.canonical.x)*n.dim,(t.canonical.y/s-o.canonical.y)*n.dim])}tileCoordToPixel(e,t){const i=t*this._scale+this._offset[1],r=Math.floor(e*this._scale+this._offset[0]),o=Math.floor(i);return new n(r,o)}getElevationAt(e,t,i,r){const n=e*this._scale+this._offset[0],o=t*this._scale+this._offset[1],s=Math.floor(n),a=Math.floor(o),l=this._dem;return r=!!r,i?yi(yi(l.get(s,a,r),l.get(s,a+1,r),o-a),yi(l.get(s+1,a,r),l.get(s+1,a+1,r),o-a),n-s):l.get(s,a,r)}getElevationAtPixel(e,t,i){return this._dem.get(e,t,!!i)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*za(1,e)*this._dem.stride}}class Kf{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new zn(wa,16,0),this.featureIndexArray=new Rs,this.promoteId=t}insert(e,t,i,r,n,o=0){const s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,r,n,o);const a=this.grid;for(let e=0;e<t.length;e++){const i=t[e],r=[1/0,1/0,-1/0,-1/0];for(let e=0;e<i.length;e++){const t=i[e];r[0]=Math.min(r[0],t.x),r[1]=Math.min(r[1],t.y),r[2]=Math.max(r[2],t.x),r[3]=Math.max(r[3],t.y)}r[0]<wa&&r[1]<wa&&r[2]>=0&&r[3]>=0&&a.insert(s,r[0],r[1],r[2],r[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new mh.VectorTile(new yu(this.rawTileData)).layers,this.sourceLayerCoder=new ff(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,t,i,r){this.loadVTLayers();const n=e.params||{},o=Kr(n.filter),s=e.tileResult,a=e.transform,l=s.bufferedTilespaceBounds,c=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,((e,t,i,r)=>ol(s.bufferedTilespaceGeometry,e,t,i,r)));c.sort(Qf);let h=null;a.elevation&&c.length>0&&(h=Yf.create(a.elevation,this.tileID));const u={};let p;for(let a=0;a<c.length;a++){const l=c[a];if(l===p)continue;p=l;const d=this.featureIndexArray.get(l);let f=null;this.loadMatchingFeature(u,d,o,n.layers,n.availableImages,t,i,r,((t,i,r,n=0)=>(f||(f=Za(t,this.tileID.canonical,e.tileTransform)),i.queryIntersectsFeature(s,t,r,f,this.z,e.transform,e.pixelPosMatrix,h,n))))}return u}loadMatchingFeature(e,t,i,r,n,o,s,a,l){const{featureIndex:c,bucketIndex:h,sourceLayerIndex:u,layoutVertexArrayOffset:p}=t,d=this.bucketLayerIDs[h];if(r&&!function(e,t){for(let i=0;i<e.length;i++)if(t.indexOf(e[i])>=0)return!0;return!1}(r,d))return;const f=this.sourceLayerCoder.decode(u),m=this.vtLayers[f].feature(c);if(i.needGeometry){const e=$a(m,!0);if(!i.filter(new Do(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!i.filter(new Do(this.tileID.overscaledZ),m))return;const _=this.getId(m,f);for(let t=0;t<d.length;t++){const i=d[t];if(r&&r.indexOf(i)<0)continue;const h=o[i];if(!h)continue;let u={};void 0!==_&&a&&(u=a.getState(h.sourceLayer||"_geojsonTileLayer",_));const f=x({},s[i]);f.paint=Jf(f.paint,h.paint,m,u,n),f.layout=Jf(f.layout,h.layout,m,u,n);const g=!l||l(m,h,u,p);if(!g)continue;const y=new _f(m,this.z,this.x,this.y,_);y.layer=f;let v=e[i];void 0===v&&(v=e[i]=[]),v.push({featureIndex:c,feature:y,intersectionZ:g})}}lookupSymbolFeatures(e,t,i,r,n,o,s,a){const l={};this.loadVTLayers();const c=Kr(n);for(const n of e)this.loadMatchingFeature(l,{bucketIndex:i,sourceLayerIndex:r,featureIndex:n,layoutVertexArrayOffset:0},c,o,s,a,t);return l}loadFeature(e){const{featureIndex:t,sourceLayerIndex:i}=e;this.loadVTLayers();const r=this.sourceLayerCoder.decode(i),n=this.vtFeatures[r];if(n[t])return n[t];const o=this.vtLayers[r].feature(t);return n[t]=o,o}hasLayer(e){for(const t of this.bucketLayerIDs)for(const i of t)if(e===i)return!0;return!1}getId(e,t){let i=e.id;return this.promoteId&&(i=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]],"boolean"==typeof i&&(i=Number(i))),i}}function Jf(e,t,i,r,n){return I(e,((e,o)=>{const s=t instanceof jo?t.get(o):null;return s&&s.evaluate?s.evaluate(i,r,n):s}))}function Qf(e,t){return t-e}Dn(Kf,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class em{constructor(e){const t={},i=[];for(const r in e){const n=e[r],o=t[r]={};for(const e in n.glyphs){const t=n.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const r=t.metrics.localGlyph?2:1,s={x:0,y:0,w:t.bitmap.width+2*r,h:t.bitmap.height+2*r};i.push(s),o[e]=s}}const{w:r,h:n}=ju(i),o=new uc({width:r||1,height:n||1});for(const i in e){const r=e[i];for(const e in r.glyphs){const n=r.glyphs[+e];if(!n||0===n.bitmap.width||0===n.bitmap.height)continue;const s=t[i][e],a=n.metrics.localGlyph?2:1;uc.copy(n.bitmap,o,{x:0,y:0},{x:s.x+a,y:s.y+a},n.bitmap)}}this.image=o,this.positions=t}}Dn(em,"GlyphAtlas");class tm{constructor(e){this.tileID=new Rh(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.tileZoom=e.tileZoom,this.uid=e.uid,this.zoom=e.zoom,this.canonical=e.tileID.canonical,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId,this.enableTerrain=!!e.enableTerrain,this.isSymbolTile=e.isSymbolTile,this.tileTransform=wd(e.tileID.canonical,e.projection),this.projection=e.projection}parse(e,t,i,r,n){this.status="parsing",this.data=e,this.collisionBoxArray=new As;const o=new ff(Object.keys(e.layers).sort()),s=new Kf(this.tileID,this.promoteId);s.bucketLayerIDs=[];const a={},l=new uf(256,256),c={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:l,availableImages:i},h=t.familiesBySource[this.source];for(const t in h){const r=e.layers[t];if(!r)continue;let n=!1,l=!1;for(const e of h[t])"symbol"===e[0].type?n=!0:l=!0;if(!0===this.isSymbolTile&&!n)continue;if(!1===this.isSymbolTile&&!l)continue;1===r.version&&P(`Vector tile source "${this.source}" layer "${t}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const u=o.encode(t),p=[];for(let e=0;e<r.length;e++){const i=r.feature(e),n=s.getId(i,t);p.push({feature:i,id:n,index:e,sourceLayerIndex:u})}for(const e of h[t]){const t=e[0];void 0!==this.isSymbolTile&&"symbol"===t.type!==this.isSymbolTile||t.minzoom&&this.zoom<Math.floor(t.minzoom)||t.maxzoom&&this.zoom>=t.maxzoom||"none"!==t.visibility&&(im(e,this.zoom,i),(a[t.id]=t.createBucket({index:s.bucketLayerIDs.length,layers:e,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:u,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:i})).populate(p,c,this.tileID.canonical,this.tileTransform),s.bucketLayerIDs.push(e.map((e=>e.id))))}}let u,p,d,f;l.trim();const m={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},_=I(c.glyphDependencies,(e=>Object.keys(e).map(Number)));Object.keys(_).length?r.send("getGlyphs",{uid:this.uid,stacks:_},((e,t)=>{u||(u=e,p=t,v.call(this))}),void 0,!1,m):p={};const g=Object.keys(c.iconDependencies);g.length?r.send("getImages",{icons:g,source:this.source,tileID:this.tileID,type:"icons"},((e,t)=>{u||(u=e,d=t,v.call(this))}),void 0,!1,m):d={};const x=Object.keys(c.patternDependencies);function v(){if(u)return n(u);if(p&&d&&f){const e=new em(p),t=new Gu(d,f);for(const r in a){const n=a[r];n instanceof Jd?(im(n.layers,this.zoom,i),Lp(n,p,e.positions,d,t.iconPositions,this.showCollisionBoxes,i,this.tileID.canonical,this.tileZoom,this.projection)):n.hasPattern&&(n instanceof Wh||n instanceof eh||n instanceof wh)&&(im(n.layers,this.zoom,i),n.addFeatures(c,this.tileID.canonical,t.patternPositions,i,this.tileTransform))}this.status="done",n(null,{buckets:y(a).filter((e=>!e.isEmpty())),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,lineAtlas:l,imageAtlas:t,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?e.positions:null})}}x.length?r.send("getImages",{icons:x,source:this.source,tileID:this.tileID,type:"patterns"},((e,t)=>{u||(u=e,f=t,v.call(this))}),void 0,!1,m):f={},v.call(this)}}function im(e,t,i){const r=new Do(t);for(const t of e)t.recalculate(r,i)}class rm{constructor(e){this.entries={},this.scheduler=e}request(e,t,i,r){const n=this.entries[e]=this.entries[e]||{callbacks:[]};if(n.result){const[e,i]=n.result;return this.scheduler?this.scheduler.add((()=>{r(e,i)}),t):r(e,i),()=>{}}return n.callbacks.push(r),n.cancel||(n.cancel=i(((i,r)=>{n.result=[i,r];for(const e of n.callbacks)this.scheduler?this.scheduler.add((()=>{e(i,r)}),t):e(i,r);setTimeout((()=>delete this.entries[e]),3e3)}))),()=>{n.result||(n.callbacks=n.callbacks.filter((e=>e!==r)),n.callbacks.length||(n.cancel(),delete this.entries[e]))}}}function nm(e,t,i){const r=JSON.stringify(e.request);return e.data&&(this.deduped.entries[r]={result:[null,e.data]}),this.deduped.request(r,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom},(t=>{const r=ke(e.request,((e,r,n,o)=>{e?t(e):r&&t(null,{vectorTile:i?void 0:new mh.VectorTile(new yu(r)),rawData:r,cacheControl:n,expires:o})}));return()=>{r.cancel(),t()}}),t)}e.ARRAY_TYPE=fl,e.AUTH_ERR_MSG=re,e.Aabb=tc,e.Actor=class{constructor(e,i,r){this.target=e,this.parent=i,this.mapId=r,this.callbacks={},this.cancelCallbacks={},S(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=L()?e:t,this.scheduler=new df}send(e,t,i,r,n=!1,o){const s=Math.round(1e18*Math.random()).toString(36).substring(0,10);i&&(i.metadata=o,this.callbacks[s]=i);const a=F(this.globalScope)?void 0:[];return this.target.postMessage({id:s,type:e,hasCallback:!!i,targetMapId:r,mustQueue:n,sourceMapId:this.mapId,data:Rn(t,a)},a),{cancel:()=>{i&&delete this.callbacks[s],this.target.postMessage({id:s,type:"<cancel>",targetMapId:r,sourceMapId:this.mapId})}}}receive(e){const t=e.data,i=t.id;if(i&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[i];delete this.cancelCallbacks[i],e&&e.cancel()}else if(t.mustQueue||L()){const e=this.callbacks[i];this.cancelCallbacks[i]=this.scheduler.add((()=>this.processTask(i,t)),e&&e.metadata||{type:"message"})}else this.processTask(i,t)}processTask(e,t){if("<response>"===t.type){const i=this.callbacks[e];delete this.callbacks[e],i&&(t.error?i(Fn(t.error)):i(null,Fn(t.data)))}else{const i=F(this.globalScope)?void 0:[],r=t.hasCallback?(t,r)=>{delete this.cancelCallbacks[e],this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?Rn(t):null,data:Rn(r,i)},i)}:e=>{},n=Fn(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,n,r);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],n.source)[e[1]](n,r)}else r(new Error(`Could not find function ${t.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.CanonicalTileID=Lh,e.Color=yt,e.ColorMode=Nf,e.CullFaceMode=$f,e.DEMData=Ff,e.DataConstantProperty=No,e.DedupedRequest=rm,e.DepthMode=Uf,e.EXTENT=wa,e.Elevation=class{isDataAvailableAtPoint(e){const t=this._source();if(!t||e.y<0||e.y>1)return!1;const i=t.getSource().maxzoom,r=1<<i,n=Math.floor(e.x),o=Math.floor((e.x-n)*r),s=Math.floor(e.y*r),a=this.findDEMTileFor(new Rh(i,n,i,o,s));return!(!a||!a.dem)}getAtPointOrZero(e,t=0){return this.getAtPoint(e,t)||0}getAtPoint(e,t,i=!0){null==t&&(t=null);const r=this._source();if(!r)return t;if(e.y<0||e.y>1)return t;const n=r.getSource().maxzoom,o=1<<n,s=Math.floor(e.x),a=e.x-s,l=new Rh(n,s,n,Math.floor(a*o),Math.floor(e.y*o)),c=this.findDEMTileFor(l);if(!c||!c.dem)return t;const h=c.dem,u=1<<c.tileID.canonical.z,p=(a*u-c.tileID.canonical.x)*h.dim,d=(e.y*u-c.tileID.canonical.y)*h.dim,f=Math.floor(p),m=Math.floor(d);return(i?this.exaggeration():1)*yi(yi(h.get(f,m),h.get(f,m+1),d-m),yi(h.get(f+1,m),h.get(f+1,m+1),d-m),p-f)}getAtTileOffset(e,t,i){const r=1<<e.canonical.z;return this.getAtPointOrZero(new Ra(e.wrap+(e.canonical.x+t/wa)/r,(e.canonical.y+i/wa)/r))}getAtTileOffsetFunc(e,t,i,r){return n=>{const o=this.getAtTileOffset(e,n.x,n.y),s=r.upVector(e.canonical,n.x,n.y);return Bl(s,s,o*r.upVectorScale(e.canonical,t,i).metersToTile),s}}getForTilePoints(e,t,i,r){const n=Yf.create(this,e,r);return!!n&&(t.forEach((e=>{e[2]=this.exaggeration()*n.getElevationAt(e[0],e[1],i)})),!0)}getMinMaxForTile(e){const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const i=t.dem.tree,r=t.tileID,n=1<<e.canonical.z-r.canonical.z;let o=e.canonical.x/n-r.canonical.x,s=e.canonical.y/n-r.canonical.y,a=0;for(let t=0;t<e.canonical.z-r.canonical.z&&!i.leaves[a];t++){o*=2,s*=2;const e=2*Math.floor(s)+Math.floor(o);a=i.childOffsets[a]+e,o%=1,s%=1}return{min:this.exaggeration()*i.minimums[a],max:this.exaggeration()*i.maximums[a]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(e,t,i){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(e){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},e.ErrorEvent=Ge,e.EvaluationParameters=Do,e.Event=Ne,e.Evented=Ze,e.FillExtrusionBucket=wh,e.Frustum=ec,e.FrustumCorners=Ql,e.GLOBE_METERS_TO_ECEF=Wp,e.GLOBE_RADIUS=Xp,e.GLOBE_SCALE_MATCH_LATITUDE=45,e.GLOBE_ZOOM_THRESHOLD_MAX=6,e.GLOBE_ZOOM_THRESHOLD_MIN=5,e.GlobeSharedBuffers=class{constructor(e){this._createGrid(e),this._createPoles(e)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const e of this._poleSegments)e.destroy();for(const e of this._gridSegments)e.destroy();if(this._wireframeIndexBuffer){this._wireframeIndexBuffer.destroy();for(const e of this._wireframeSegments)e.destroy()}}_createGrid(e){const t=new es,i=new _s,r=65;for(let e=0;e<r;e++)for(let i=0;i<r;i++)t.emplaceBack(i,e);this._gridSegments=[];for(let e=0,t=0;e<Hp.length;e++){const n=Hp[e];for(let e=0;e<n;e++)for(let t=0;t<64;t++){const n=e*r+t;i.emplaceBack(n+1,n,n+r),i.emplaceBack(n+r,n+r+1,n+1)}const o=64*n*2;this._gridSegments.push(ba.simpleSegment(0,t,(n+1)*r,o)),t+=o}this._gridBuffer=e.createVertexBuffer(t,qp.members),this._gridIndexBuffer=e.createIndexBuffer(i,!0)}_createPoles(e){const t=new _s;for(let e=0;e<=64;e++)t.emplaceBack(0,e+1,e+2);this._poleIndexBuffer=e.createIndexBuffer(t,!0);const i=new vs,r=new vs;this._poleSegments=[];for(let e=0,t=0;e<5;e++){const n=360/(1<<e);i.emplaceBack(0,-Xp,0,.5,0),r.emplaceBack(0,-Xp,0,.5,1);for(let e=0;e<=64;e++){const t=e/64,o=yi(0,n,t),[s,a,l]=ld(xd,vd,o,Xp);i.emplaceBack(s,a,l,t,0),r.emplaceBack(s,a,l,t,1)}this._poleSegments.push(ba.simpleSegment(t,0,66,64)),t+=66}this._poleNorthVertexBuffer=e.createVertexBuffer(i,Zp,!1),this._poleSouthVertexBuffer=e.createVertexBuffer(r,Zp,!1)}getGridBuffers(e){return[this._gridBuffer,this._gridIndexBuffer,this._gridSegments[e]]}getPoleBuffers(e){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[e]]}getWirefameBuffers(e,t){if(!this._wireframeSegments){const t=new ws,i=64,r=i+1;this._wireframeSegments=[];for(let e=0,n=0;e<Hp.length;e++){const o=Hp[e];for(let e=0;e<o;e++)for(let n=0;n<i;n++){const i=e*r+n;t.emplaceBack(i,i+1),t.emplaceBack(i,i+r),t.emplaceBack(i,i+r+1)}const s=o*i*3;this._wireframeSegments.push(ba.simpleSegment(0,n,(o+1)*r,s)),n+=s}this._wireframeIndexBuffer=e.createIndexBuffer(t)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments[t]]}},e.GlyphManager=xp,e.ImagePosition=Nu,e.LineAtlas=uf,e.LngLat=Sa,e.LngLatBounds=Ta,e.LocalGlyphMode=yp,e.MAX_MERCATOR_LATITUDE=La,e.MercatorCoordinate=Ra,e.ONE_EM=su,e.OverscaledTileID=Rh,e.Properties=Xo,e.RGBAImage=pc,e.Ray=Jl,e.RequestManager=class{constructor(e,t,i){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!i,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",ie,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(e,t){if(!ne(e))return e;const i=ae(e);return i.path=`/styles/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||t)}normalizeGlyphsURL(e,t){if(!ne(e))return e;const i=ae(e);return i.path=`/fonts/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||t)}normalizeSourceURL(e,t,i,r){if(!ne(e))return e;const n=ae(e);return n.path=`/v4/${n.authority}.json`,n.params.push("secure"),i&&n.params.push(`language=${i}`),r&&n.params.push(`worldview=${r}`),this._makeAPIURL(n,this._customAccessToken||t)}normalizeSpriteURL(e,t,i,r){const n=ae(e);return ne(e)?(n.path=`/styles/v1${n.path}/sprite${t}${i}`,this._makeAPIURL(n,this._customAccessToken||r)):(n.path+=`${t}${i}`,le(n))}normalizeTileURL(e,t,i){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!ne(e))return e;const r=ae(e);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${t||i&&"raster"!==r.authority&&512===i?"@2x":""}${Y.supported?".webp":"$1"}`),"raster"===r.authority?r.path=`/${H.RASTER_URL_PREFIX}${r.path}`:(r.path=r.path.replace(/^.+\/v4\//,"/"),r.path=`/${H.TILE_URL_VERSION}${r.path}`);const n=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(r.params)||H.ACCESS_TOKEN;return H.REQUIRE_ACCESS_TOKEN&&n&&this._skuToken&&r.params.push(`sku=${this._skuToken}`),this._makeAPIURL(r,n)}canonicalizeTileURL(e,t){const i=ae(e);if(!i.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!i.path.match(/\.[\w]+$/))return e;let r="mapbox://";i.path.match(/^\/raster\/v1\//)?r+=`raster/${i.path.replace(`/${H.RASTER_URL_PREFIX}/`,"")}`:r+=`tiles/${i.path.replace(`/${H.TILE_URL_VERSION}/`,"")}`;let n=i.params;return t&&(n=n.filter((e=>!e.match(/^access_token=/)))),n.length&&(r+=`?${n.join("&")}`),r}canonicalizeTileset(e,t){const i=!!t&&ne(t),r=[];for(const t of e.tiles||[])oe(t)?r.push(this.canonicalizeTileURL(t,i)):r.push(t);return r}_makeAPIURL(e,t){const i="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=ae(H.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"http"===e.protocol){const t=e.params.indexOf("secure");t>=0&&e.params.splice(t,1)}if("/"!==r.path&&(e.path=`${r.path}${e.path}`),!H.REQUIRE_ACCESS_TOKEN)return le(e);if(t=t||H.ACCESS_TOKEN,!this._silenceAuthErrors){if(!t)throw new Error(`An API access token is required to use Mapbox GL. ${i}`);if("s"===t[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${i}`)}return e.params=e.params.filter((e=>-1===e.indexOf("access_token"))),e.params.push(`access_token=${t||""}`),le(e)}},e.ResourceType=Ae,e.SegmentVector=ba,e.SourceCache=qf,e.StencilMode=jf,e.StructArrayLayout1ui2=Ts,e.StructArrayLayout2f1f2i16=ds,e.StructArrayLayout2i4=es,e.StructArrayLayout2ui4=ws,e.StructArrayLayout3f12=ms,e.StructArrayLayout3ui6=_s,e.StructArrayLayout4i8=is,e.StructArrayLayout5f20=vs,e.Texture=hf,e.Tile=Mf,e.Transitionable=Ro,e.Uniform1f=Js,e.Uniform1i=class extends Ks{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}},e.Uniform2f=class extends Ks{constructor(e){super(e),this.current=[0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1])))}},e.Uniform3f=class extends Ks{constructor(e){super(e),this.current=[0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2])))}},e.Uniform4f=Qs,e.UniformColor=ea,e.UniformMatrix2f=class extends Ks{constructor(e){super(e),this.current=ra}set(e,t,i){if(this.fetchUniformLocation(e,t))for(let e=0;e<4;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix2fv(this.location,!1,i);break}}},e.UniformMatrix3f=class extends Ks{constructor(e){super(e),this.current=ia}set(e,t,i){if(this.fetchUniformLocation(e,t))for(let e=0;e<9;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix3fv(this.location,!1,i);break}}},e.UniformMatrix4f=class extends Ks{constructor(e){super(e),this.current=ta}set(e,t,i){if(this.fetchUniformLocation(e,t)){if(i[12]!==this.current[12]||i[0]!==this.current[0])return this.current=i,void this.gl.uniformMatrix4fv(this.location,!1,i);for(let e=1;e<16;e++)if(i[e]!==this.current[e]){this.current=i,this.gl.uniformMatrix4fv(this.location,!1,i);break}}}},e.UnwrappedTileID=Bh,e.ValidationError=Nr,e.VectorTileWorkerSource=class extends Ze{constructor(e,t,i,r,n){super(),this.actor=e,this.layerIndex=t,this.availableImages=i,this.loadVectorData=n||nm,this.loading={},this.loaded={},this.deduped=new rm(e.scheduler),this.isSpriteLoaded=r,this.scheduler=e.scheduler}loadTile(e,t){const i=e.uid,r=e&&e.request,n=r&&r.collectResourceTiming,o=this.loading[i]=new tm(e);o.abort=this.loadVectorData(e,((s,a)=>{const l=!this.loading[i];if(delete this.loading[i],l||s||!a)return o.status="done",l||(this.loaded[i]=o),t(s);const c=a.rawData,h={};a.expires&&(h.expires=a.expires),a.cacheControl&&(h.cacheControl=a.cacheControl),o.vectorTile=a.vectorTile||new mh.VectorTile(new yu(c));const u=()=>{o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,((e,i)=>{if(e||!i)return t(e);const o={};if(n){const e=j(r);e.length>0&&(o.resourceTiming=JSON.parse(JSON.stringify(e)))}t(null,x({rawTileData:c.slice(0)},i,h,o))}))};this.isSpriteLoaded?u():this.once("isSpriteLoaded",(()=>{this.scheduler?this.scheduler.add(u,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom}):u()})),this.loaded=this.loaded||{},this.loaded[i]=o}))}reloadTile(e,t){const i=this.loaded,r=e.uid,n=this;if(i&&i[r]){const o=i[r];o.showCollisionBoxes=e.showCollisionBoxes,o.enableTerrain=!!e.enableTerrain,o.projection=e.projection,o.tileTransform=wd(e.tileID.canonical,e.projection);const s=(e,i)=>{const r=o.reloadCallback;r&&(delete o.reloadCallback,o.parse(o.vectorTile,n.layerIndex,this.availableImages,n.actor,r)),t(e,i)};"parsing"===o.status?o.reloadCallback=s:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}}abortTile(e,t){const i=e.uid,r=this.loading[i];r&&(r.abort&&r.abort(),delete this.loading[i]),t()}removeTile(e,t){const i=this.loaded,r=e.uid;i&&i[r]&&delete i[r],t()}},e.WritingMode=Zu,e.ZoomHistory=On,e.add=zl,e.addDynamicAttributes=Wd,e.adjoint=function(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8];return e[0]=s*h-a*c,e[1]=n*c-r*h,e[2]=r*a-n*s,e[3]=a*l-o*h,e[4]=i*h-n*l,e[5]=n*o-i*a,e[6]=o*c-s*l,e[7]=r*l-i*c,e[8]=i*s-r*o,e},e.asyncAll=g,e.bezier=p,e.bindAll=S,e.boundsAttributes=Ef,e.bufferConvexPolygon=function(e,t){const i=[];for(let r=0;r<e.length;r++){const n=_(r-1,-1,e.length-1),o=_(r+1,-1,e.length-1),s=e[r],a=e[o],l=e[n].sub(s).unit(),c=a.sub(s).unit(),h=c.angleWithSep(l.x,l.y),u=l.add(c).unit().mult(-1*t/Math.sin(h/2));i.push(s.add(u))}return i},e.cacheEntryPossiblyAdded=function(e){Ie++,Ie>ve&&(e.getActor().send("enforceCacheSizeLimit",xe),Ie=0)},e.calculateGlobeLabelMatrix=function(e,t){const{x:i,y:r}=e.point,n=md(i,r,e.worldSize/e._pixelsPerMercatorPixel,0,0);return yl(n,n,fd(id(t)))},e.calculateGlobeMatrix=function(e){const{x:t,y:i}=e.point,{lng:r,lat:n}=e._center;return md(t,i,e.worldSize,r,n)},e.calculateGlobeMercatorMatrix=function(e){const t=e.pixelsPerMeter,i=t/za(1,e.center.lat),r=_l(new Float64Array(16));return xl(r,r,[e.point.x,e.point.y,0]),vl(r,r,[i,i,t]),Float32Array.from(r)},e.circumferenceAtLatitude=Ia,e.clamp=f,e.clearTileCache=function(e){const t=Te(),i=[];for(const e in be)t&&i.push(t["delete"](e)),delete be[e];e&&Promise.all(i)["catch"](e).then((()=>e()))},e.clipLine=fp,e.clone=function(e){var t=new fl(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=C,e.collisionCircleLayout=ou,e.config=H,e.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},e.create=function(){var e=new fl(16);return fl!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=ml,e.createExpression=Rr,e.createLayout=Jo,e.createStyleLayer=function(e){return"custom"===e.type?new sf(e):new cf[e.type](e)},e.cross=Ul,e.degToRad=l,e.distance=function(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])},e.div=function(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e},e.dot=Ol,e.ease=d,e.easeCubicInOut=u,e.emitValidationErrors=Cn,e.endsWith=M,e.enforceCacheSizeLimit=function(e){for(const t in be)Ee(t),be[t].then((t=>{t.keys().then((i=>{for(let r=0;r<i.length-e;r++)t["delete"](i[r])}))}))},e.evaluateSizeForFeature=cu,e.evaluateSizeForZoom=hu,e.evaluateVariableOffset=Dp,e.evented=Co,e.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},e.exactEquals$1=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},e.exported=X,e.exported$1=Y,e.extend=x,e.extend$1=qe,e.fillExtrusionHeightLift=Ch,e.filterObject=A,e.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},e.fromQuat=function(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=i+i,a=r+r,l=n+n,c=i*s,h=r*s,u=r*a,p=n*s,d=n*a,f=n*l,m=o*s,_=o*a,g=o*l;return e[0]=1-u-f,e[1]=h+g,e[2]=p-_,e[3]=0,e[4]=h-g,e[5]=1-c-f,e[6]=d+m,e[7]=0,e[8]=p+_,e[9]=d-m,e[10]=1-c-u,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.fromRotation=function(e,t){var i=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=i,e[2]=0,e[3]=-i,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.fromScaling=Tl,e.furthestTileCorner=function(e){const t=Math.round((e+45+360)%360/90)%4;return h[t]},e.getAABBPointSquareDist=function(e,t,i){let r=0;for(let n=0;n<2;++n){const o=i?i[n]:0;e[n]>o&&(r+=(e[n]-o)*(e[n]-o)),t[n]<o&&(r+=(o-t[n])*(o-t[n]))}return r},e.getAnchorAlignment=ip,e.getAnchorJustification=Bp,e.getBounds=function(e){let t=1/0,i=1/0,r=-1/0,o=-1/0;for(const n of e)t=Math.min(t,n.x),i=Math.min(i,n.y),r=Math.max(r,n.x),o=Math.max(o,n.y);return{min:new n(t,i),max:new n(r,o)}},e.getColumn=U,e.getGridMatrix=function(e,t,i){const r=t.getNorth(),n=t.getSouth(),o=t.getWest(),s=.015625;return[0,(t.getEast()-o)*s,1<<e.z,(n-r)/Hp[i],0,e.y,r,o,s]},e.getImage=Ue,e.getJSON=function(e,t){return Pe(x(e,{type:"json"}),t)},e.getLatitudinalLod=function(e){const t=80.051129;e=f(e,-80.051129,t)/t*90;const i=Math.pow(Math.abs(Math.sin(l(e))),3);return Math.round(i*(Hp.length-1))},e.getMapSessionAPI=_e,e.getPerformanceMeasurement=j,e.getProjection=Gd,e.getRTLTextPluginStatus=zo,e.getReferrer=ze,e.getTilePoint=function(e,{x:t,y:i},r=0){return new n(((t-r)*e.scale-e.x)*wa,(i*e.scale-e.y)*wa)},e.getTileVec3=function(e,t,i=0){return Cl(((t.x-i)*e.scale-e.x)*wa,(t.y*e.scale-e.y)*wa,Da(t.z,t.y))},e.getVideo=function(e,i){const r=t.document.createElement("video");r.muted=!0,r.onloadstart=function(){i(null,r)};for(let i=0;i<e.length;i++){const n=t.document.createElement("source");Be(e[i])||(r.crossOrigin="Anonymous"),n.src=e[i],r.appendChild(n)}return{cancel:()=>{}}},e.globeCenterToScreenPoint=function(e){const t=[0,0,0],i=_l(new Float64Array(16));return yl(i,e.pixelMatrix,e.globeMatrix),Vl(t,t,i),new n(t[0],t[1])},e.globeDenormalizeECEF=fd,e.globeECEFOrigin=function(e,t){const i=[0,0,0];return Vl(i,i,dd(id(t.canonical))),Vl(i,i,e),i},e.globeNormalizeECEF=dd,e.globePixelsToTileUnits=function(e,t){return wa/(512*Math.pow(2,e))*ud(id(t))},e.globePoleMatrixForTile=function(e,t,i){const r=_l(new Float64Array(16)),n=(t/(1<<e)-.5)*Math.PI*2;return wl(r,i.globeMatrix,n),Float32Array.from(r)},e.globeTileBounds=id,e.globeTiltAtLngLat=gd,e.globeToMercatorTransition=_d,e.globeUseCustomAntiAliasing=function(e,t,i){const r=_d(i.zoom),n=e.style.map._antialias,o=!!t.extStandardDerivatives,s=t.extStandardDerivativesForceOff||e.terrain&&e.terrain.exaggeration()>0;return 0===r&&!n&&!s&&o},e.identity=_l,e.identity$1=Hl,e.invert=gl,e.isFullscreen=function(){return!!t.document.fullscreenElement||!!t.document.webkitFullscreenElement},e.isLngLatBehindGlobe=function(e,t){return gd(e,t)>Math.PI/2*1.01},e.isMapAuthenticated=function(e){return ge.has(e)},e.isMapboxURL=ne,e.isSafariWithAntialiasingBug=function(e){const t=e.navigator?e.navigator.userAgent:null;return!!F(e)&&t&&(t.match("Version/15.4")||t.match("Version/15.5")||t.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},e.latFromMercatorY=ka,e.len=$l,e.length=Al,e.length$1=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},e.loadVectorTile=nm,e.makeRequest=Pe,e.mapValue=function(e,t,i,r,n){return f((e-t)/(i-t)*(n-r)+r,r,n)},e.mercatorScale=Ba,e.mercatorXfromLng=Aa,e.mercatorYfromLat=Ca,e.mercatorZfromAltitude=za,e.mul=Sl,e.mul$1=Zl,e.multiply=yl,e.multiply$1=function(e,t,i){var r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],p=i[0],d=i[1],f=i[2],m=i[3],_=i[4],g=i[5],y=i[6],x=i[7],v=i[8];return e[0]=p*r+d*s+f*c,e[1]=p*n+d*a+f*h,e[2]=p*o+d*l+f*u,e[3]=m*r+_*s+g*c,e[4]=m*n+_*a+g*h,e[5]=m*o+_*l+g*u,e[6]=y*r+x*s+v*c,e[7]=y*n+x*a+v*h,e[8]=y*o+x*l+v*u,e},e.multiply$2=kl,e.nextPowerOfTwo=T,e.normalize=Fl,e.normalize$1=function(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=i*i+r*r+n*n+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=i*s,e[1]=r*s,e[2]=n*s,e[3]=o*s,e},e.number=yi,e.ortho=function(e,t,i,r,n,o,s){var a=1/(t-i),l=1/(r-n),c=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+i)*a,e[13]=(n+r)*l,e[14]=(s+o)*c,e[15]=1,e},e.pbf=yu,e.perspective=function(e,t,i,r,n){var o,s=1/Math.tan(t/2);return e[0]=s/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=n&&n!==1/0?(e[10]=(n+r)*(o=1/(r-n)),e[14]=2*n*r*o):(e[10]=-1,e[14]=-2*r),e},e.pick=function(e,t){const i={};for(let r=0;r<t.length;r++){const n=t[r];n in e&&(i[n]=e[n])}return i},e.plugin=ko,e.pointGeometry=n,e.polygonContainsPoint=nl,e.polygonIntersectsBox=ol,e.polygonIntersectsPolygon=Ha,e.polygonizeBounds=function(e,t,i=0,r=!0){const o=new n(i,i),s=e.sub(o),a=t.add(o),l=[s,new n(a.x,s.y),a,new n(s.x,a.y)];return r&&l.push(s.clone()),l},e.posAttributes=qp,e.postMapLoadEvent=fe,e.postTurnstileEvent=pe,e.potpack=ju,e.prevPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},e.radToDeg=c,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.registerForPluginStateChange=function(e){return e({pluginStatus:So,pluginURL:Mo}),Co.on("pluginStateChange",e),e},e.removeAuthState=function(e){ge["delete"](e)},e.renderColorRamp=fc,e.resample=Oa,e.rotateX=bl,e.rotateX$1=Yl,e.rotateY=wl,e.rotateY$1=Kl,e.rotateZ=function(e,t,i){var r=Math.sin(i),n=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[4],h=t[5],u=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*n+c*r,e[1]=s*n+h*r,e[2]=a*n+u*r,e[3]=l*n+p*r,e[4]=c*n-o*r,e[5]=h*n-s*r,e[6]=u*n-a*r,e[7]=p*n-l*r,e},e.rotateZ$1=function(e,t,i){i*=.5;var r=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=r*l+n*a,e[1]=n*l-r*a,e[2]=o*l+s*a,e[3]=s*l-o*a,e},e.scale=vl,e.scale$1=ql,e.scale$2=Bl,e.scaleAndAdd=Rl,e.setCacheLimits=function(e,t){xe=e,ve=t},e.setColumn=function(e,t,i){e[4*t+0]=i[0],e[4*t+1]=i[1],e[4*t+2]=i[2],e[4*t+3]=i[3]},e.setRTLTextPlugin=function(e,t,i=!1){if(So===bo||So===wo||So===To)throw new Error("setRTLTextPlugin cannot be called multiple times.");Mo=X.resolveURL(e),So=bo,Eo=t,Ao(),i||Po()},e.smoothstep=m,e.spec=$e,e.storeAuthState=function(e,t){t?ge.add(e):ge["delete"](e)},e.sub=Gl,e.subtract=Pl,e.symbolSize=uu,e.tileAABB=function(e,t,i,r,n,o,s,a,l){if("globe"===l.name)return od(e,t,new Lh(i,r,n));const c=wd({z:i,x:r,y:n},l);return new tc([(o+c.x/c.scale)*t,t*(c.y/c.scale),s],[(o+c.x2/c.scale)*t,t*(c.y2/c.scale),a])},e.tileCornersToBounds=sd,e.tileTransform=wd,e.transformMat3=function(e,t,i){var r=t[0],n=t[1],o=t[2];return e[0]=r*i[0]+n*i[3]+o*i[6],e[1]=r*i[1]+n*i[4]+o*i[7],e[2]=r*i[2]+n*i[5]+o*i[8],e},e.transformMat4=Vl,e.transformMat4$1=Xl,e.transformQuat=jl,e.transitionTileAABBinECEF=rd,e.translate=xl,e.transpose=function(e,t){if(e===t){var i=t[1],r=t[2],n=t[5];e[1]=t[3],e[2]=t[6],e[3]=i,e[5]=t[7],e[6]=r,e[7]=n}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},e.triggerPluginCompletionEvent=Io,e.uniqueId=b,e.updateGlobeVertexNormal=function(e,t,i,r,n){const o=5*t+2;e.float32[o+0]=i,e.float32[o+1]=r,e.float32[o+2]=n},e.validateCustomStyleLayer=function(e){const t=[],i=e.id;return void 0===i&&t.push({message:`layers.${i}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${i}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${i}: property "renderingMode" must be either "2d" or "3d"`}),t},e.validateFilter=e=>An(hn(e)),e.validateFog=e=>An(bn(e)),e.validateLayer=e=>An(mn(e)),e.validateLight=e=>An(xn(e)),e.validateSource=e=>An(yn(e)),e.validateStyle=Sn,e.validateTerrain=e=>An(vn(e)),e.values=y,e.vectorTile=mh,e.version=N,e.warnOnce=P,e.window=t,e.wrap=_}));r(["./shared"],(function(e){"use strict";function t(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let i="[";for(const r of e)i+=`${t(r)},`;return`${i}]`}let i="{";for(const r of Object.keys(e).sort())i+=`${r}:${t(e[r])},`;return`${i}}`}function i(i){let r="";for(const n of e.refProperties)r+=`/${t(i[n])}`;return r}class r{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,r){for(const i of t)this._layerConfigs[i.id]=i,(this._layers[i.id]=e.createStyleLayer(i)).compileFilter(),this.keyCache[i.id]&&delete this.keyCache[i.id];for(const e of r)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const n=function(e,t){const r={};for(let n=0;n<e.length;n++){const o=t&&t[e[n].id]||i(e[n]);t&&(t[e[n].id]=o);let s=r[o];s||(s=r[o]=[]),s.push(e[n])}const n=[];for(const e in r)n.push(r[e]);return n}(e.values(this._layerConfigs),this.keyCache);for(const e of n){const t=e.map((e=>this._layers[e.id])),i=t[0];if("none"===i.visibility)continue;const r=i.source||"";let n=this.familiesBySource[r];n||(n=this.familiesBySource[r]={});const o=i.sourceLayer||"_geojsonTileLayer";let s=n[o];s||(s=n[o]=[]),s.push(t)}}}class n{loadTile(t,i){const{uid:r,encoding:n,rawImageData:o,padding:s,buildQuadTree:a}=t,l=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap?this.getImageData(o,s):o;i(null,new e.DEMData(r,l,n,s<1,a))}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const i=this.offscreenCanvasContext.getImageData(-t,-t,e.width+2*t,e.height+2*t);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),i}}var o=function Te(e,t){var i,r=e&&e.type;if("FeatureCollection"===r)for(i=0;i<e.features.length;i++)Te(e.features[i],t);else if("GeometryCollection"===r)for(i=0;i<e.geometries.length;i++)Te(e.geometries[i],t);else if("Feature"===r)Te(e.geometry,t);else if("Polygon"===r)s(e.coordinates,t);else if("MultiPolygon"===r)for(i=0;i<e.coordinates.length;i++)s(e.coordinates[i],t);return e};function s(e,t){if(0!==e.length){a(e[0],t);for(var i=1;i<e.length;i++)a(e[i],!t)}}function a(e,t){for(var i=0,r=0,n=0,o=e.length,s=o-1;n<o;s=n++){var a=(e[n][0]-e[s][0])*(e[s][1]+e[n][1]),l=i+a;r+=Math.abs(i)>=Math.abs(a)?i-l+a:a-l+i,i=l}i+r>=0!=!!t&&e.reverse()}const l=e.vectorTile.VectorTileFeature.prototype.toGeoJSON;class c{constructor(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const i of this._feature.geometry)t.push([new e.pointGeometry(i[0],i[1])]);return t}{const t=[];for(const i of this._feature.geometry){const r=[];for(const t of i)r.push(new e.pointGeometry(t[0],t[1]));t.push(r)}return t}}toGeoJSON(e,t,i){return l.call(this,e,t,i)}}class h{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t}feature(e){return new c(this._features[e])}}var u=e.vectorTile.VectorTileFeature,p=d;function d(e,t){this.options=t||{},this.features=e,this.length=e.length}function f(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}d.prototype.feature=function(e){return new f(this.features[e],this.options.extent)},f.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var i=0;i<t.length;i++){for(var r=t[i],n=[],o=0;o<r.length;o++)n.push(new e.pointGeometry(r[o][0],r[o][1]));this.geometry.push(n)}return this.geometry},f.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,i=-1/0,r=1/0,n=-1/0,o=0;o<e.length;o++)for(var s=e[o],a=0;a<s.length;a++){var l=s[a];t=Math.min(t,l.x),i=Math.max(i,l.x),r=Math.min(r,l.y),n=Math.max(n,l.y)}return[t,r,i,n]},f.prototype.toGeoJSON=u.prototype.toGeoJSON;var m=g,_=p;function g(t){var i=new e.pbf;return function(e,t){for(var i in e.layers)t.writeMessage(3,y,e.layers[i])}(t,i),i.finish()}function y(e,t){var i;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(i=0;i<e.length;i++)r.feature=e.feature(i),t.writeMessage(2,x,r);var n=r.keys;for(i=0;i<n.length;i++)t.writeStringField(3,n[i]);var o=r.values;for(i=0;i<o.length;i++)t.writeMessage(4,E,o[i])}function x(e,t){var i=e.feature;void 0!==i.id&&t.writeVarintField(1,i.id),t.writeMessage(2,v,e),t.writeVarintField(3,i.type),t.writeMessage(4,T,i)}function v(e,t){var i=e.feature,r=e.keys,n=e.values,o=e.keycache,s=e.valuecache;for(var a in i.properties){var l=i.properties[a],c=o[a];if(null!==l){void 0===c&&(r.push(a),o[a]=c=r.length-1),t.writeVarint(c);var h=typeof l;"string"!==h&&"boolean"!==h&&"number"!==h&&(l=JSON.stringify(l));var u=h+":"+l,p=s[u];void 0===p&&(n.push(l),s[u]=p=n.length-1),t.writeVarint(p)}}}function b(e,t){return(t<<3)+(7&e)}function w(e){return e<<1^e>>31}function T(e,t){for(var i=e.loadGeometry(),r=e.type,n=0,o=0,s=i.length,a=0;a<s;a++){var l=i[a],c=1;1===r&&(c=l.length),t.writeVarint(b(1,c));for(var h=3===r?l.length-1:l.length,u=0;u<h;u++){1===u&&1!==r&&t.writeVarint(b(2,h-1));var p=l[u].x-n,d=l[u].y-o;t.writeVarint(w(p)),t.writeVarint(w(d)),n+=p,o+=d}3===r&&t.writeVarint(b(7,1))}}function E(e,t){var i=typeof e;"string"===i?t.writeStringField(1,e):"boolean"===i?t.writeBooleanField(7,e):"number"===i&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function S(e,t,i,r,n,o){if(n-r<=i)return;const s=r+n>>1;M(e,t,s,r,n,o%2),S(e,t,i,r,s-1,o+1),S(e,t,i,s+1,n,o+1)}function M(e,t,i,r,n,o){for(;n>r;){if(n-r>600){const s=n-r+1,a=i-r+1,l=Math.log(s),c=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*c*(s-c)/s)*(a-s/2<0?-1:1);M(e,t,i,Math.max(r,Math.floor(i-a*c/s+h)),Math.min(n,Math.floor(i+(s-a)*c/s+h)),o)}const s=t[2*i+o];let a=r,l=n;for(I(e,t,r,i),t[2*n+o]>s&&I(e,t,r,n);a<l;){for(I(e,t,a,l),a++,l--;t[2*a+o]<s;)a++;for(;t[2*l+o]>s;)l--}t[2*r+o]===s?I(e,t,r,l):(l++,I(e,t,l,n)),l<=i&&(r=l+1),i<=l&&(n=l-1)}}function I(e,t,i,r){A(e,i,r),A(t,2*i,2*r),A(t,2*i+1,2*r+1)}function A(e,t,i){const r=e[t];e[t]=e[i],e[i]=r}function C(e,t,i,r){const n=e-i,o=t-r;return n*n+o*o}m.fromVectorTileJs=g,m.fromGeojsonVt=function(e,t){t=t||{};var i={};for(var r in e)i[r]=new p(e[r].features,t),i[r].name=r,i[r].version=t.version,i[r].extent=t.extent;return g({layers:i})},m.GeoJSONWrapper=_;const z=e=>e[0],P=e=>e[1];class k{constructor(e,t=z,i=P,r=64,n=Float64Array){this.nodeSize=r,this.points=e;const o=e.length<65536?Uint16Array:Uint32Array,s=this.ids=new o(e.length),a=this.coords=new n(2*e.length);for(let r=0;r<e.length;r++)s[r]=r,a[2*r]=t(e[r]),a[2*r+1]=i(e[r]);S(s,a,r,0,s.length-1,0)}range(e,t,i,r){return function(e,t,i,r,n,o,s){const a=[0,e.length-1,0],l=[];let c,h;for(;a.length;){const u=a.pop(),p=a.pop(),d=a.pop();if(p-d<=s){for(let s=d;s<=p;s++)c=t[2*s],h=t[2*s+1],c>=i&&c<=n&&h>=r&&h<=o&&l.push(e[s]);continue}const f=Math.floor((d+p)/2);c=t[2*f],h=t[2*f+1],c>=i&&c<=n&&h>=r&&h<=o&&l.push(e[f]);const m=(u+1)%2;(0===u?i<=c:r<=h)&&(a.push(d),a.push(f-1),a.push(m)),(0===u?n>=c:o>=h)&&(a.push(f+1),a.push(p),a.push(m))}return l}(this.ids,this.coords,e,t,i,r,this.nodeSize)}within(e,t,i){return function(e,t,i,r,n,o){const s=[0,e.length-1,0],a=[],l=n*n;for(;s.length;){const c=s.pop(),h=s.pop(),u=s.pop();if(h-u<=o){for(let n=u;n<=h;n++)C(t[2*n],t[2*n+1],i,r)<=l&&a.push(e[n]);continue}const p=Math.floor((u+h)/2),d=t[2*p],f=t[2*p+1];C(d,f,i,r)<=l&&a.push(e[p]);const m=(c+1)%2;(0===c?i-n<=d:r-n<=f)&&(s.push(u),s.push(p-1),s.push(m)),(0===c?i+n>=d:r+n>=f)&&(s.push(p+1),s.push(h),s.push(m))}return a}(this.ids,this.coords,e,t,i,this.nodeSize)}}const D={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},L=Math.fround||(B=new Float32Array(1),e=>(B[0]=+e,B[0]));var B;class R{constructor(e){this.options=Z(Object.create(D),e),this.trees=new Array(this.options.maxZoom+1)}load(e){const{log:t,minZoom:i,maxZoom:r,nodeSize:n}=this.options;t&&console.time("total time");const o=`prepare ${e.length} points`;t&&console.time(o),this.points=e;let s=[];for(let t=0;t<e.length;t++)e[t].geometry&&s.push(O(e[t],t));this.trees[r+1]=new k(s,$,q,n,Float32Array),t&&console.timeEnd(o);for(let e=r;e>=i;e--){const i=+Date.now();s=this._cluster(s,e),this.trees[e]=new k(s,$,q,n,Float32Array),t&&console.log("z%d: %d clusters in %dms",e,s.length,+Date.now()-i)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let i=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let n=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,n=180;else if(i>n){const e=this.getClusters([i,r,180,o],t),s=this.getClusters([-180,r,n,o],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(j(i),N(o),j(n),N(r)),l=[];for(const e of a){const t=s.points[e];l.push(t.numPoints?U(t):this.points[t.index])}return l}getChildren(e){const t=this._getOriginId(e),i=this._getOriginZoom(e),r="No cluster with the specified id.",n=this.trees[i];if(!n)throw new Error(r);const o=n.points[t];if(!o)throw new Error(r);const s=this.options.radius/(this.options.extent*Math.pow(2,i-1)),a=n.within(o.x,o.y,s),l=[];for(const t of a){const i=n.points[t];i.parentId===e&&l.push(i.numPoints?U(i):this.points[i.index])}if(0===l.length)throw new Error(r);return l}getLeaves(e,t,i){const r=[];return this._appendLeaves(r,e,t=t||10,i=i||0,0),r}getTile(e,t,i){const r=this.trees[this._limitZoom(e)],n=Math.pow(2,e),{extent:o,radius:s}=this.options,a=s/o,l=(i-a)/n,c=(i+1+a)/n,h={features:[]};return this._addTileFeatures(r.range((t-a)/n,l,(t+1+a)/n,c),r.points,t,i,n,h),0===t&&this._addTileFeatures(r.range(1-a/n,l,1,c),r.points,n,i,n,h),t===n-1&&this._addTileFeatures(r.range(0,l,a/n,c),r.points,-1,i,n,h),h.features.length?h:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const i=this.getChildren(e);if(t++,1!==i.length)break;e=i[0].properties.cluster_id}return t}_appendLeaves(e,t,i,r,n){const o=this.getChildren(t);for(const t of o){const o=t.properties;if(o&&o.cluster?n+o.point_count<=r?n+=o.point_count:n=this._appendLeaves(e,o.cluster_id,i,r,n):n<r?n++:e.push(t),e.length===i)break}return n}_addTileFeatures(e,t,i,r,n,o){for(const s of e){const e=t[s],a=e.numPoints;let l,c,h;if(a)l=V(e),c=e.x,h=e.y;else{const t=this.points[e.index];l=t.properties,c=j(t.geometry.coordinates[0]),h=N(t.geometry.coordinates[1])}const u={type:1,geometry:[[Math.round(this.options.extent*(c*n-i)),Math.round(this.options.extent*(h*n-r))]],tags:l};let p;a?p=e.id:this.options.generateId?p=e.index:this.points[e.index].id&&(p=this.points[e.index].id),void 0!==p&&(u.id=p),o.features.push(u)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))}_cluster(e,t){const i=[],{radius:r,extent:n,reduce:o,minPoints:s}=this.options,a=r/(n*Math.pow(2,t));for(let r=0;r<e.length;r++){const n=e[r];if(n.zoom<=t)continue;n.zoom=t;const l=this.trees[t+1],c=l.within(n.x,n.y,a),h=n.numPoints||1;let u=h;for(const e of c){const i=l.points[e];i.zoom>t&&(u+=i.numPoints||1)}if(u>h&&u>=s){let e=n.x*h,s=n.y*h,a=o&&h>1?this._map(n,!0):null;const p=(r<<5)+(t+1)+this.points.length;for(const i of c){const r=l.points[i];if(r.zoom<=t)continue;r.zoom=t;const c=r.numPoints||1;e+=r.x*c,s+=r.y*c,r.parentId=p,o&&(a||(a=this._map(n,!0)),o(a,this._map(r)))}n.parentId=p,i.push(F(e/u,s/u,p,u,a))}else if(i.push(n),u>1)for(const e of c){const r=l.points[e];r.zoom<=t||(r.zoom=t,i.push(r))}}return i}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?Z({},e.properties):e.properties;const i=this.points[e.index].properties,r=this.options.map(i);return t&&r===i?Z({},r):r}}function F(e,t,i,r,n){return{x:L(e),y:L(t),zoom:1/0,id:i,parentId:-1,numPoints:r,properties:n}}function O(e,t){const[i,r]=e.geometry.coordinates;return{x:L(j(i)),y:L(N(r)),zoom:1/0,index:t,parentId:-1}}function U(e){return{type:"Feature",id:e.id,properties:V(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),G(e.y)]}};var t}function V(e){const t=e.numPoints,i=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t;return Z(Z({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:i})}function j(e){return e/360+.5}function N(e){const t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function G(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function Z(e,t){for(const i in t)e[i]=t[i];return e}function $(e){return e.x}function q(e){return e.y}function X(e,t,i,r){for(var n,o=r,s=i-t>>1,a=i-t,l=e[t],c=e[t+1],h=e[i],u=e[i+1],p=t+3;p<i;p+=3){var d=W(e[p],e[p+1],l,c,h,u);if(d>o)n=p,o=d;else if(d===o){var f=Math.abs(p-s);f<a&&(n=p,a=f)}}o>r&&(n-t>3&&X(e,t,n,r),e[n+2]=o,i-n>3&&X(e,n,i,r))}function W(e,t,i,r,n,o){var s=n-i,a=o-r;if(0!==s||0!==a){var l=((e-i)*s+(t-r)*a)/(s*s+a*a);l>1?(i=n,r=o):l>0&&(i+=s*l,r+=a*l)}return(s=e-i)*s+(a=t-r)*a}function H(e,t,i,r){var n={id:void 0===e?null:e,type:t,geometry:i,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,i=e.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)Y(e,t);else if("Polygon"===i||"MultiLineString"===i)for(var r=0;r<t.length;r++)Y(e,t[r]);else if("MultiPolygon"===i)for(r=0;r<t.length;r++)for(var n=0;n<t[r].length;n++)Y(e,t[r][n])}(n),n}function Y(e,t){for(var i=0;i<t.length;i+=3)e.minX=Math.min(e.minX,t[i]),e.minY=Math.min(e.minY,t[i+1]),e.maxX=Math.max(e.maxX,t[i]),e.maxY=Math.max(e.maxY,t[i+1])}function K(e,t,i,r){if(t.geometry){var n=t.geometry.coordinates,o=t.geometry.type,s=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2),a=[],l=t.id;if(i.promoteId?l=t.properties[i.promoteId]:i.generateId&&(l=r||0),"Point"===o)J(n,a);else if("MultiPoint"===o)for(var c=0;c<n.length;c++)J(n[c],a);else if("LineString"===o)Q(n,a,s,!1);else if("MultiLineString"===o){if(i.lineMetrics){for(c=0;c<n.length;c++)Q(n[c],a=[],s,!1),e.push(H(l,"LineString",a,t.properties));return}ee(n,a,s,!1)}else if("Polygon"===o)ee(n,a,s,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(c=0;c<t.geometry.geometries.length;c++)K(e,{id:l,geometry:t.geometry.geometries[c],properties:t.properties},i,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<n.length;c++){var h=[];ee(n[c],h,s,!0),a.push(h)}}e.push(H(l,o,a,t.properties))}}function J(e,t){t.push(te(e[0])),t.push(ie(e[1])),t.push(0)}function Q(e,t,i,r){for(var n,o,s=0,a=0;a<e.length;a++){var l=te(e[a][0]),c=ie(e[a][1]);t.push(l),t.push(c),t.push(0),a>0&&(s+=r?(n*c-l*o)/2:Math.sqrt(Math.pow(l-n,2)+Math.pow(c-o,2))),n=l,o=c}var h=t.length-3;t[2]=1,X(t,0,h,i),t[h+2]=1,t.size=Math.abs(s),t.start=0,t.end=t.size}function ee(e,t,i,r){for(var n=0;n<e.length;n++){var o=[];Q(e[n],o,i,r),t.push(o)}}function te(e){return e/360+.5}function ie(e){var t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function re(e,t,i,r,n,o,s,a){if(r/=t,o>=(i/=t)&&s<r)return e;if(s<i||o>=r)return null;for(var l=[],c=0;c<e.length;c++){var h=e[c],u=h.geometry,p=h.type,d=0===n?h.minX:h.minY,f=0===n?h.maxX:h.maxY;if(d>=i&&f<r)l.push(h);else if(!(f<i||d>=r)){var m=[];if("Point"===p||"MultiPoint"===p)ne(u,m,i,r,n);else if("LineString"===p)oe(u,m,i,r,n,!1,a.lineMetrics);else if("MultiLineString"===p)ae(u,m,i,r,n,!1);else if("Polygon"===p)ae(u,m,i,r,n,!0);else if("MultiPolygon"===p)for(var _=0;_<u.length;_++){var g=[];ae(u[_],g,i,r,n,!0),g.length&&m.push(g)}if(m.length){if(a.lineMetrics&&"LineString"===p){for(_=0;_<m.length;_++)l.push(H(h.id,p,m[_],h.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===m.length?(p="LineString",m=m[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===m.length?"Point":"MultiPoint"),l.push(H(h.id,p,m,h.tags))}}}return l.length?l:null}function ne(e,t,i,r,n){for(var o=0;o<e.length;o+=3){var s=e[o+n];s>=i&&s<=r&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function oe(e,t,i,r,n,o,s){for(var a,l,c=se(e),h=0===n?ce:he,u=e.start,p=0;p<e.length-3;p+=3){var d=e[p],f=e[p+1],m=e[p+2],_=e[p+3],g=e[p+4],y=0===n?d:f,x=0===n?_:g,v=!1;s&&(a=Math.sqrt(Math.pow(d-_,2)+Math.pow(f-g,2))),y<i?x>i&&(l=h(c,d,f,_,g,i),s&&(c.start=u+a*l)):y>r?x<r&&(l=h(c,d,f,_,g,r),s&&(c.start=u+a*l)):le(c,d,f,m),x<i&&y>=i&&(l=h(c,d,f,_,g,i),v=!0),x>r&&y<=r&&(l=h(c,d,f,_,g,r),v=!0),!o&&v&&(s&&(c.end=u+a*l),t.push(c),c=se(e)),s&&(u+=a)}var b=e.length-3;d=e[b],f=e[b+1],m=e[b+2],(y=0===n?d:f)>=i&&y<=r&&le(c,d,f,m),b=c.length-3,o&&b>=3&&(c[b]!==c[0]||c[b+1]!==c[1])&&le(c,c[0],c[1],c[2]),c.length&&t.push(c)}function se(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ae(e,t,i,r,n,o){for(var s=0;s<e.length;s++)oe(e[s],t,i,r,n,o,!1)}function le(e,t,i,r){e.push(t),e.push(i),e.push(r)}function ce(e,t,i,r,n,o){var s=(o-t)/(r-t);return e.push(o),e.push(i+(n-i)*s),e.push(1),s}function he(e,t,i,r,n,o){var s=(o-i)/(n-i);return e.push(t+(r-t)*s),e.push(o),e.push(1),s}function ue(e,t){for(var i=[],r=0;r<e.length;r++){var n,o=e[r],s=o.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)n=pe(o.geometry,t);else if("MultiLineString"===s||"Polygon"===s){n=[];for(var a=0;a<o.geometry.length;a++)n.push(pe(o.geometry[a],t))}else if("MultiPolygon"===s)for(n=[],a=0;a<o.geometry.length;a++){for(var l=[],c=0;c<o.geometry[a].length;c++)l.push(pe(o.geometry[a][c],t));n.push(l)}i.push(H(o.id,s,n,o.tags))}return i}function pe(e,t){var i=[];i.size=e.size,void 0!==e.start&&(i.start=e.start,i.end=e.end);for(var r=0;r<e.length;r+=3)i.push(e[r]+t,e[r+1],e[r+2]);return i}function de(e,t){if(e.transformed)return e;var i,r,n,o=1<<e.z,s=e.x,a=e.y;for(i=0;i<e.features.length;i++){var l=e.features[i],c=l.geometry,h=l.type;if(l.geometry=[],1===h)for(r=0;r<c.length;r+=2)l.geometry.push(fe(c[r],c[r+1],t,o,s,a));else for(r=0;r<c.length;r++){var u=[];for(n=0;n<c[r].length;n+=2)u.push(fe(c[r][n],c[r][n+1],t,o,s,a));l.geometry.push(u)}}return e.transformed=!0,e}function fe(e,t,i,r,n,o){return[Math.round(i*(e*r-n)),Math.round(i*(t*r-o))]}function me(e,t,i,r,n){for(var o=t===n.maxZoom?0:n.tolerance/((1<<t)*n.extent),s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:i,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<e.length;a++){s.numFeatures++,_e(s,e[a],o,n);var l=e[a].minX,c=e[a].minY,h=e[a].maxX,u=e[a].maxY;l<s.minX&&(s.minX=l),c<s.minY&&(s.minY=c),h>s.maxX&&(s.maxX=h),u>s.maxY&&(s.maxY=u)}return s}function _e(e,t,i,r){var n=t.geometry,o=t.type,s=[];if("Point"===o||"MultiPoint"===o)for(var a=0;a<n.length;a+=3)s.push(n[a]),s.push(n[a+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)ge(s,n,e,i,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(a=0;a<n.length;a++)ge(s,n[a],e,i,"Polygon"===o,0===a);else if("MultiPolygon"===o)for(var l=0;l<n.length;l++){var c=n[l];for(a=0;a<c.length;a++)ge(s,c[a],e,i,!0,0===a)}if(s.length){var h=t.tags||null;if("LineString"===o&&r.lineMetrics){for(var u in h={},t.tags)h[u]=t.tags[u];h.mapbox_clip_start=n.start/n.size,h.mapbox_clip_end=n.end/n.size}var p={geometry:s,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:h};null!==t.id&&(p.id=t.id),e.features.push(p)}}function ge(e,t,i,r,n,o){var s=r*r;if(r>0&&t.size<(n?s:r))i.numPoints+=t.length/3;else{for(var a=[],l=0;l<t.length;l+=3)(0===r||t[l+2]>s)&&(i.numSimplified++,a.push(t[l]),a.push(t[l+1])),i.numPoints++;n&&function(e,t){for(var i=0,r=0,n=e.length,o=n-2;r<n;o=r,r+=2)i+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(i>0===t)for(r=0,n=e.length;r<n/2;r+=2){var s=e[r],a=e[r+1];e[r]=e[n-2-r],e[r+1]=e[n-1-r],e[n-2-r]=s,e[n-1-r]=a}}(a,o),e.push(a)}}function ye(e,t){var i=(t=this.options=function(e,t){for(var i in t)e[i]=t[i];return e}(Object.create(this.options),t)).debug;if(i&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var i=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)K(i,e.features[r],t,r);else K(i,"Feature"===e.type?e:{geometry:e},t);return i}(e,t);this.tiles={},this.tileCoords=[],i&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var i=t.buffer/t.extent,r=e,n=re(e,1,-1-i,i,0,-1,2,t),o=re(e,1,1-i,2+i,0,-1,2,t);return(n||o)&&(r=re(e,1,-i,1+i,0,-1,2,t)||[],n&&(r=ue(n,1).concat(r)),o&&(r=r.concat(ue(o,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),i&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function xe(e,t,i){return 32*((1<<e)*i+t)+e}function ve(e,t){const i=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);const r=this._geoJSONIndex.getTile(i.z,i.x,i.y);if(!r)return t(null,null);const n=new h(r.features);let o=m(n);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),t(null,{vectorTile:n,rawData:o.buffer})}ye.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ye.prototype.splitTile=function(e,t,i,r,n,o,s){for(var a=[e,t,i,r],l=this.options,c=l.debug;a.length;){r=a.pop(),i=a.pop(),t=a.pop(),e=a.pop();var h=1<<t,u=xe(t,i,r),p=this.tiles[u];if(!p&&(c>1&&console.time("creation"),p=this.tiles[u]=me(e,t,i,r,l),this.tileCoords.push({z:t,x:i,y:r}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,i,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var d="z"+t;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(p.source=e,n){if(t===l.maxZoom||t===n)continue;var f=1<<n-t;if(i!==Math.floor(o/f)||r!==Math.floor(s/f))continue}else if(t===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==e.length){c>1&&console.time("clipping");var m,_,g,y,x,v,b=.5*l.buffer/l.extent,w=.5-b,T=.5+b,E=1+b;m=_=g=y=null,x=re(e,h,i-b,i+T,0,p.minX,p.maxX,l),v=re(e,h,i+w,i+E,0,p.minX,p.maxX,l),e=null,x&&(m=re(x,h,r-b,r+T,1,p.minY,p.maxY,l),_=re(x,h,r+w,r+E,1,p.minY,p.maxY,l),x=null),v&&(g=re(v,h,r-b,r+T,1,p.minY,p.maxY,l),y=re(v,h,r+w,r+E,1,p.minY,p.maxY,l),v=null),c>1&&console.timeEnd("clipping"),a.push(m||[],t+1,2*i,2*r),a.push(_||[],t+1,2*i,2*r+1),a.push(g||[],t+1,2*i+1,2*r),a.push(y||[],t+1,2*i+1,2*r+1)}}},ye.prototype.getTile=function(e,t,i){var r=this.options,n=r.extent,o=r.debug;if(e<0||e>24)return null;var s=1<<e,a=xe(e,t=(t%s+s)%s,i);if(this.tiles[a])return de(this.tiles[a],n);o>1&&console.log("drilling down to z%d-%d-%d",e,t,i);for(var l,c=e,h=t,u=i;!l&&c>0;)c--,h=Math.floor(h/2),u=Math.floor(u/2),l=this.tiles[xe(c,h,u)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",c,h,u),o>1&&console.time("drilling down"),this.splitTile(l.source,c,h,u,e,t,i),o>1&&console.timeEnd("drilling down"),this.tiles[a]?de(this.tiles[a],n):null):null};class be extends e.VectorTileWorkerSource{constructor(e,t,i,r,n){super(e,t,i,r,ve),n&&(this.loadGeoJSON=n)}loadData(t,i){const r=t&&t.request,n=r&&r.collectResourceTiming;this.loadGeoJSON(t,((s,a)=>{if(s||!a)return i(s);if("object"!=typeof a)return i(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));{o(a,!0);try{if(t.filter){const i=e.createExpression(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===i.result)throw new Error(i.value.map((e=>`${e.key}: ${e.message}`)).join(", "));const r=a.features.filter((e=>i.value.evaluate({zoom:0},e)));a={type:"FeatureCollection",features:r}}this._geoJSONIndex=t.cluster?new R(function({superclusterOptions:t,clusterProperties:i}){if(!i||!t)return t;const r={},n={},o={accumulated:null,zoom:0},s={properties:null},a=Object.keys(i);for(const t of a){const[o,s]=i[t],a=e.createExpression(s),l=e.createExpression("string"==typeof o?[o,["accumulated"],["get",t]]:o);r[t]=a.value,n[t]=l.value}return t.map=e=>{s.properties=e;const t={};for(const e of a)t[e]=r[e].evaluate(o,s);return t},t.reduce=(e,t)=>{s.properties=t;for(const t of a)o.accumulated=e[t],e[t]=n[t].evaluate(o,s)},t}(t)).load(a.features):function(e,t){return new ye(e,t)}(a,t.geojsonVtOptions)}catch(s){return i(s)}this.loaded={};const l={};if(n){const i=e.getPerformanceMeasurement(r);i&&(l.resourceTiming={},l.resourceTiming[t.source]=JSON.parse(JSON.stringify(i)))}i(null,l)}}))}reloadTile(e,t){const i=this.loaded;return i&&i[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,i){if(t.request)e.getJSON(t.request,i);else{if("string"!=typeof t.data)return i(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return i(null,JSON.parse(t.data))}catch(e){return i(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class we{constructor(t){this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=e.getProjection({name:"mercator"}),this.workerSourceTypes={vector:e.VectorTileWorkerSource,geojson:be},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}}clearCaches(e,t,i){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],i()}checkIfReady(e,t,i){i()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,i){this.isSpriteLoaded[t]=i;for(const r in this.workerSources[t]){const n=this.workerSources[t][r];for(const t in n)n[t]instanceof e.VectorTileWorkerSource&&(n[t].isSpriteLoaded=i,n[t].fire(new e.Event("isSpriteLoaded")))}}setImages(e,t,i){this.availableImages[e]=t;for(const i in this.workerSources[e]){const r=this.workerSources[e][i];for(const e in r)r[e].availableImages=t}i()}enableTerrain(e,t,i){this.terrain=t,i()}setProjection(t,i){this.projections[t]=e.getProjection(i)}setLayers(e,t,i){this.getLayerIndex(e).replace(t),i()}updateLayers(e,t,i){this.getLayerIndex(e).update(t.layers,t.removedIds),i()}loadTile(t,i,r){const n=this.enableTerrain?e.extend({enableTerrain:this.terrain},i):i;n.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,i.type,i.source).loadTile(n,r)}loadDEMTile(t,i,r){const n=this.enableTerrain?e.extend({buildQuadTree:this.terrain},i):i;this.getDEMWorkerSource(t,i.source).loadTile(n,r)}reloadTile(t,i,r){const n=this.enableTerrain?e.extend({enableTerrain:this.terrain},i):i;n.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,i.type,i.source).reloadTile(n,r)}abortTile(e,t,i){this.getWorkerSource(e,t.type,t.source).abortTile(t,i)}removeTile(e,t,i){this.getWorkerSource(e,t.type,t.source).removeTile(t,i)}removeSource(e,t,i){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,i):i()}loadWorkerSource(e,t,i){try{this.self.importScripts(t.url),i()}catch(e){i(e.toString())}}syncRTLPluginState(t,i,r){try{e.plugin.setState(i);const t=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=t){this.self.importScripts(t);const i=e.plugin.isParsed();r(i?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),i)}}catch(e){r(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t}getWorkerSource(e,t,i){return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][i]||(this.workerSources[e][t][i]=new this.workerSourceTypes[t]({send:(t,i,r,n,o,s)=>{this.actor.send(t,i,r,e,o,s)},scheduler:this.actor.scheduler},this.getLayerIndex(e),this.getAvailableImages(e),this.isSpriteLoaded[e])),this.workerSources[e][t][i]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new n),this.demWorkerSources[e][t]}enforceCacheSizeLimit(t,i){e.enforceCacheSizeLimit(i)}getWorkerPerformanceMetrics(e,t,i){i(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new we(self)),we}));r(["./shared"],(function(e){"use strict";function t(e,i){if(Array.isArray(e)){if(!Array.isArray(i)||e.length!==i.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],i[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==i){if("object"!=typeof i)return!1;if(Object.keys(e).length!==Object.keys(i).length)return!1;for(const r in e)if(!t(e[r],i[r]))return!1;return!0}return e===i}var i=r;function r(e){return!function(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,i=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(i);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var i=t.getImageData(0,0,1,1);return i&&i.width===e.width}()?(void 0===n[t=e&&e.failIfMajorPerformanceCaveat]&&(n[t]=function(e){var t,i=function(e){var t=document.createElement("canvas"),i=Object.create(r.webGLContextAttributes);return i.failIfMajorPerformanceCaveat=e,t.getContext("webgl",i)||t.getContext("experimental-webgl",i)}(e);if(!i)return!1;try{t=i.createShader(i.VERTEX_SHADER)}catch(e){return!1}return!(!t||i.isContextLost())&&(i.shaderSource(t,"void main() {}"),i.compileShader(t),!0===i.getShaderParameter(t,i.COMPILE_STATUS))}(t)),n[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var t}(e)}var n={};function o(t,i,r){const n=e.window.document.createElement(t);return void 0!==i&&(n.className=i),r&&r.appendChild(n),n}function s(t,i,r){const n=e.window.document.createElementNS("http://www.w3.org/2000/svg",t);for(const e of Object.keys(i))n.setAttributeNS(null,e,i[e]);return r&&r.appendChild(n),n}r.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const a=e.window.document&&e.window.document.documentElement.style,l=a&&void 0!==a.userSelect?"userSelect":"WebkitUserSelect";let c;function h(){a&&l&&(c=a[l],a[l]="none")}function u(){a&&l&&(a[l]=c)}function p(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",p,!0)}function d(){e.window.addEventListener("click",p,!0),e.window.setTimeout((()=>{e.window.removeEventListener("click",p,!0)}),0)}function f(e,t){const i=e.getBoundingClientRect();return g(e,i,t)}function m(e,t){const i=e.getBoundingClientRect(),r=[];for(let n=0;n<t.length;n++)r.push(g(e,i,t[n]));return r}function _(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button}function g(t,i,r){const n=t.offsetWidth===i.width?1:t.offsetWidth/i.width;return new e.pointGeometry((r.clientX-i.left)*n,(r.clientY-i.top)*n)}function y(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=i*o-n*r;return s?(e[0]=o*(s=1/s),e[1]=-r*s,e[2]=-n*s,e[3]=i*s,e):null}function x(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class v extends e.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(const{ids:e,callback:t}of this.requestors)this._notify(e,t);this.requestors=[]}}hasImage(e){return!!this.getImage(e)}getImage(e){return this.images[e]}addImage(e,t){this._validate(e,t)&&(this.images[e]=t)}_validate(t,i){let r=!0;return this._validateStretch(i.stretchX,i.data&&i.data.width)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchX" value`))),r=!1),this._validateStretch(i.stretchY,i.data&&i.data.height)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchY" value`))),r=!1),this._validateContent(i.content,i)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let i=0;for(const r of e){if(r[0]<i||r[1]<r[0]||t<r[1])return!1;i=r[1]}return!0}_validateContent(e,t){return!(e&&(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1]))}updateImage(e,t){t.version=this.images[e].version+1,this.images[e]=t,this.updatedImages[e]=!0}removeImage(e){const t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(e,t){let i=!0;if(!this.isLoaded())for(const t of e)this.images[t]||(i=!1);this.isLoaded()||i?this._notify(e,t):this.requestors.push({ids:e,callback:t})}_notify(t,i){const r={};for(const i of t){this.images[i]||this.fire(new e.Event("styleimagemissing",{id:i}));const t=this.images[i];t?r[i]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)}:e.warnOnce(`Image "${i}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}i(null,r)}getPixelSize(){const{width:e,height:t}=this.atlasImage;return{width:e,height:t}}getPattern(t){const i=this.patterns[t],r=this.getImage(t);if(!r)return null;if(i&&i.position.version===r.version)return i.position;if(i)i.position.version=r.version;else{const i={w:r.data.width+2,h:r.data.height+2,x:0,y:0},n=new e.ImagePosition(i,r);this.patterns[t]={bin:i,position:n}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){const i=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,i.RGBA),this.atlasTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}_updatePatternAtlas(){const t=[];for(const e in this.patterns)t.push(this.patterns[e].bin);const{w:i,h:r}=e.potpack(t),n=this.atlasImage;n.resize({width:i||1,height:r||1});for(const t in this.patterns){const{bin:i}=this.patterns[t],r=i.x+1,o=i.y+1,s=this.images[t].data,a=s.width,l=s.height;e.RGBAImage.copy(s,n,{x:0,y:0},{x:r,y:o},{width:a,height:l}),e.RGBAImage.copy(s,n,{x:0,y:l-1},{x:r,y:o-1},{width:a,height:1}),e.RGBAImage.copy(s,n,{x:0,y:0},{x:r,y:o+l},{width:a,height:1}),e.RGBAImage.copy(s,n,{x:a-1,y:0},{x:r-1,y:o},{width:1,height:l}),e.RGBAImage.copy(s,n,{x:0,y:0},{x:r+a,y:o},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(const t of e){if(this.callbackDispatchedThisFrame[t])continue;this.callbackDispatchedThisFrame[t]=!0;const e=this.images[t];x(e)&&this.updateImage(t,e)}}}const b=new e.Properties({anchor:new e.DataConstantProperty(e.spec.light.anchor),position:new class{constructor(){this.specification=e.spec.light.position}possiblyEvaluate(t,i){return function([t,i,r]){const n=e.degToRad(i+90),o=e.degToRad(r);return{x:t*Math.cos(n)*Math.sin(o),y:t*Math.sin(n)*Math.sin(o),z:t*Math.cos(o),azimuthal:i,polar:r}}(t.expression.evaluate(i))}interpolate(t,i,r){return{x:e.number(t.x,i.x,r),y:e.number(t.y,i.y,r),z:e.number(t.z,i.z,r),azimuthal:e.number(t.azimuthal,i.azimuthal,r),polar:e.number(t.polar,i.polar,r)}}},color:new e.DataConstantProperty(e.spec.light.color),intensity:new e.DataConstantProperty(e.spec.light.intensity)}),w="-transition";class T extends e.Evented{constructor(t){super(),this._transitionable=new e.Transitionable(b),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(t,i={}){if(!this._validate(e.validateLight,t,i))for(const i in t){const r=t[i];e.endsWith(i,w)?this._transitionable.setTransition(i.slice(0,-w.length),r):this._transitionable.setValue(i,r)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,i,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}const E=new e.Properties({source:new e.DataConstantProperty(e.spec.terrain.source),exaggeration:new e.DataConstantProperty(e.spec.terrain.exaggeration)}),S="-transition";class M extends e.Evented{constructor(t,i){super(),this._transitionable=new e.Transitionable(E),this.set(t),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=i}get(){return this._transitionable.serialize()}set(t){for(const i in t){const r=t[i];e.endsWith(i,S)?this._transitionable.setTransition(i.slice(0,-S.length),r):this._transitionable.setValue(i,r)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}}function I(t,i,r,n){const o=e.smoothstep(45,65,r),[s,a]=A(t,n),l=e.length(i);let c=1-Math.min(1,Math.exp((l-s)/(a-s)*-6));return c*=c*c,c=Math.min(1,1.00747*c),c*o*t.alpha}function A(e,t){const i=.5/Math.tan(.5*t);return[e.range[0]+i,e.range[1]+i]}const C=new e.Properties({range:new e.DataConstantProperty(e.spec.fog.range),color:new e.DataConstantProperty(e.spec.fog.color),"high-color":new e.DataConstantProperty(e.spec.fog["high-color"]),"space-color":new e.DataConstantProperty(e.spec.fog["space-color"]),"horizon-blend":new e.DataConstantProperty(e.spec.fog["horizon-blend"]),"star-intensity":new e.DataConstantProperty(e.spec.fog["star-intensity"])}),z="-transition";class P extends e.Evented{constructor(t,i){super(),this._transitionable=new e.Transitionable(C),this.set(t),this._transitioning=this._transitionable.untransitioned(),this._transform=i}get state(){const t=this._transform,i="globe"===t.projection.name,r=e.globeToMercatorTransition(t.zoom),n=this.properties.get("range"),o=[.5,3];return{range:i?[e.number(o[0],n[0],r),e.number(o[1],n[1],r)]:n,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(t,i={}){if(!this._validate(e.validateFog,t,i)){for(const i of Object.keys(e.spec.fog))t&&void 0===t[i]&&(t[i]=e.spec.fog[i]["default"]);for(const i in t){const r=t[i];e.endsWith(i,z)?this._transitionable.setTransition(i.slice(0,-z.length),r):this._transitionable.setValue(i,r)}}}getOpacity(t){if(!this._transform.projection.supportsFog)return 0;const i=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:e.smoothstep(45,65,t))*i.a}getOpacityAtLatLng(t,i){return this._transform.projection.supportsFog?function(t,i,r){const n=e.MercatorCoordinate.fromLngLat(i),o=r.elevation?r.elevation.getAtPointOrZero(n):0,s=[n.x,n.y,o];return e.transformMat4(s,s,r.mercatorFogMatrix),I(t,s,r.pitch,r._fov)}(this.state,t,i):0}getFovAdjustedRange(e){return this._transform.projection.supportsFog?A(this.state,e):[0,1]}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,i,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}class k{constructor(t,i){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=e.uniqueId();const r=this.workerPool.acquire(this.id);for(let e=0;e<r.length;e++){const t=new k.Actor(r[e],i,this.id);t.name=`Worker ${e}`,this.actors.push(t)}this.ready=!1,this.broadcast("checkIfReady",null,(()=>{this.ready=!0}))}broadcast(t,i,r){e.asyncAll(this.actors,((e,r)=>{e.send(t,i,r)}),r=r||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach((e=>{e.remove()})),this.actors=[],this.workerPool.release(this.id)}}function D(t,i,r){return i*(e.EXTENT/(t.tileSize*Math.pow(2,r-t.tileID.overscaledZ)))}k.Actor=e.Actor;class L{constructor(e,t,i,r){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=i,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,r)}static createFromScreenPoints(t,i){let r,n;if(t instanceof e.pointGeometry||"number"==typeof t[0]){const o=e.pointGeometry.convert(t);r=[e.pointGeometry.convert(t)],n=i.isPointAboveHorizon(o)}else{const o=e.pointGeometry.convert(t[0]),s=e.pointGeometry.convert(t[1]);r=[o,s],n=e.polygonizeBounds(o,s).every((e=>i.isPointAboveHorizon(e)))}return new L(r,i.getCameraPoint(),n,i)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const i=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.pointGeometry(1,1)):this.screenBounds[1],n=e.polygonizeBounds(i,r,0,!1);return this.cameraPoint.y>r.y&&(this.cameraPoint.x>i.x&&this.cameraPoint.x<r.x?n.splice(3,0,this.cameraPoint):this.cameraPoint.x>=r.x?n[2]=this.cameraPoint:this.cameraPoint.x<=i.x&&(n[3]=this.cameraPoint)),e.bufferConvexPolygon(n,t)}bufferedCameraGeometryGlobe(t){const i=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.pointGeometry(1,1)):this.screenBounds[1],n=e.polygonizeBounds(i,r,t),o=this.cameraPoint.clone();switch(3*((o.y>i.y)+(o.y>r.y))+((o.x>i.x)+(o.x>r.x))){case 0:n[0]=o,n[4]=o.clone();break;case 1:n.splice(1,0,o);break;case 2:n[1]=o;break;case 3:n.splice(4,0,o);break;case 5:n.splice(2,0,o);break;case 6:n[3]=o;break;case 7:n.splice(3,0,o);break;case 8:n[2]=o}return n}containsTile(t,i,r,n=0){const o=t.queryPadding/i._pixelsPerMercatorPixel+1,s=r?this._bufferedCameraMercator(o,i):this._bufferedScreenMercator(o,i);let a=t.tileID.wrap+(s.unwrapped?n:0);const l=s.polygon.map((i=>e.getTilePoint(t.tileTransform,i,a)));if(!e.polygonIntersectsBox(l,0,0,e.EXTENT,e.EXTENT))return;a=t.tileID.wrap+(this.screenGeometryMercator.unwrapped?n:0);const c=this.screenGeometryMercator.polygon.map((i=>e.getTileVec3(t.tileTransform,i,a))),h=c.map((t=>new e.pointGeometry(t[0],t[1]))),u=i.getFreeCameraOptions().position||new e.MercatorCoordinate(0,0,0),p=e.getTileVec3(t.tileTransform,u,a),d=c.map((t=>{const i=e.sub(t,t,p);return e.normalize(i,i),new e.Ray(p,i)})),f=D(t,1,i.zoom)*i._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:h,tilespaceRays:d,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(m=e.getBounds(l),m.min.x=e.clamp(m.min.x,0,e.EXTENT),m.min.y=e.clamp(m.min.y,0,e.EXTENT),m.max.x=e.clamp(m.max.x,0,e.EXTENT),m.max.y=e.clamp(m.max.y,0,e.EXTENT),m),tile:t,tileID:t.tileID,pixelToTileUnitsFactor:f};var m}_bufferedScreenMercator(e,t){const i=F(e);if(this._screenRaycastCache[i])return this._screenRaycastCache[i];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._screenRaycastCache[i]=r,r}}_bufferedCameraMercator(e,t){const i=F(e);if(this._cameraRaycastCache[i])return this._cameraRaycastCache[i];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._cameraRaycastCache[i]=r,r}}_projectAndResample(t,i){const r=function(t,i){const r=e.multiply([],i.pixelMatrix,i.globeMatrix),n=[0,-e.GLOBE_RADIUS,0,1],o=[0,e.GLOBE_RADIUS,0,1],s=[0,0,0,1];e.transformMat4$1(n,n,r),e.transformMat4$1(o,o,r),e.transformMat4$1(s,s,r);const a=new e.pointGeometry(n[0]/n[3],n[1]/n[3]),l=new e.pointGeometry(o[0]/o[3],o[1]/o[3]),c=e.polygonContainsPoint(t,a)&&n[3]<s[3],h=e.polygonContainsPoint(t,l)&&o[3]<s[3];if(!c&&!h)return null;const u=function(e,t,i){for(let r=1;r<e.length;r++){const n=R(t.pointCoordinate3D(e[r-1]).x),o=R(t.pointCoordinate3D(e[r]).x);if(i<0){if(n<o)return{idx:r,t:-n/(o-1-n)}}else if(o<n)return{idx:r,t:(1-n)/(o+1-n)}}return null}(t,i,c?-1:1);if(!u)return null;const{idx:p,t:d}=u;let f=p>1?B(t.slice(0,p),i):[],m=p<t.length?B(t.slice(p),i):[];f=f.map((t=>new e.pointGeometry(R(t.x),t.y))),m=m.map((t=>new e.pointGeometry(R(t.x),t.y)));const _=[...f];0===_.length&&_.push(m[m.length-1]);const g=e.number(_[_.length-1].y,(0===m.length?f[0]:m[0]).y,d);let y;return y=c?[new e.pointGeometry(0,g),new e.pointGeometry(0,0),new e.pointGeometry(1,0),new e.pointGeometry(1,g)]:[new e.pointGeometry(1,g),new e.pointGeometry(1,1),new e.pointGeometry(0,1),new e.pointGeometry(0,g)],_.push(...y),0===m.length?_.push(f[0]):_.push(...m),{polygon:_.map((t=>new e.MercatorCoordinate(t.x,t.y))),unwrapped:!1}}(t,i);if(r)return r;const n=function(t,i){let r=!1,n=-1/0,o=0;for(let e=0;e<t.length-1;e++)t[e].x>n&&(n=t[e].x,o=e);for(let e=0;e<t.length-1;e++){const i=(o+e)%(t.length-1),n=t[i],s=t[i+1];Math.abs(n.x-s.x)>.5&&(n.x<s.x?(n.x+=1,0===i&&(t[t.length-1].x+=1)):(s.x+=1,i+1===t.length-1&&(t[0].x+=1)),r=!0)}const s=e.mercatorXfromLng(i.center.lng);return r&&s<Math.abs(s-1)&&t.forEach((e=>{e.x-=1})),{polygon:t,unwrapped:r}}(B(t,i).map((t=>new e.pointGeometry(R(t.x),t.y))),i);return{polygon:n.polygon.map((t=>new e.MercatorCoordinate(t.x,t.y))),unwrapped:n.unwrapped}}}function B(t,i){return e.resample(t,(e=>{const t=i.pointCoordinate3D(e);e.x=t.x,e.y=t.y}),1/256)}function R(e){return e<0?1+e%1:e%1}function F(e){return 100*e|0}function O(t,i,r,n,o){const s=function(r,n){if(r)return o(r);if(n){const r=e.pick(e.extend(n,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);n.vector_layers&&(r.vectorLayers=n.vector_layers,r.vectorLayerIds=r.vectorLayers.map((e=>e.id))),n.language_options&&(r.languageOptions=n.language_options),n.language&&n.language[n.id]&&(r.language=n.language[n.id]),n.worldview_options&&(r.worldviewOptions=n.worldview_options),n.worldview?r.worldview=n.worldview[n.id]:n.worldview_default&&(r.worldview=n.worldview_default),r.tiles=i.canonicalizeTileset(r,t.url),o(null,r)}};return t.url?e.getJSON(i.transformRequest(i.normalizeSourceURL(t.url,null,r,n),e.ResourceType.Source),s):e.exported.frame((()=>s(null,t)))}class U{constructor(t,i,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=i||0,this.maxzoom=r||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const i=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*i),n=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*i),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*i),s=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*i);return t.x>=r&&t.x<o&&t.y>=n&&t.y<s}}class V{constructor(e,t,i){this.context=e;const r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const j={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class N{constructor(e,t,i,r){this.length=t.length,this.attributes=i,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;const n=e.gl;this.buffer=n.createBuffer(),e.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let i=0;i<this.attributes.length;i++){const r=t.attributes[this.attributes[i].name];void 0!==r&&e.enableVertexAttribArray(r)}}setVertexAttribPointers(e,t,i){for(let r=0;r<this.attributes.length;r++){const n=this.attributes[r],o=t.attributes[n.name];void 0!==o&&e.vertexAttribPointer(o,n.components,e[j[n.type]],!1,this.itemSize,n.offset+this.itemSize*(i||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class G{constructor(e){this.gl=e.gl,this["default"]=this.getDefault(),this.current=this["default"],this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this["default"]}setDefault(){this.set(this["default"])}}class Z extends G{getDefault(){return e.Color.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class $ extends G{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class q extends G{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class X extends G{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class W extends G{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class H extends G{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class Y extends G{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class K extends G{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class J extends G{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class Q extends G{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class ee extends G{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class te extends G{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class ie extends G{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class re extends G{getDefault(){const e=this.gl;return[e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}}class ne extends G{getDefault(){return e.Color.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class oe extends G{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}}class se extends G{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class ae extends G{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class le extends G{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}class ce extends G{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}}class he extends G{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class ue extends G{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class pe extends G{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class de extends G{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class fe extends G{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class me extends G{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class _e extends G{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class ge extends G{constructor(e){super(e),this.vao=e.extVertexArrayObject}getDefault(){return null}set(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)}}class ye extends G{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class xe extends G{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class ve extends G{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class be extends G{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class we extends be{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class Te extends be{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class Ee extends Te{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class Se{constructor(e,t,i,r){this.context=e,this.width=t,this.height=i;const n=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new we(e,n),r&&(this.depthAttachment=new Te(e,n))}destroy(){const e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}e.deleteFramebuffer(this.framebuffer)}}class Me{constructor(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new Z(this),this.clearDepth=new $(this),this.clearStencil=new q(this),this.colorMask=new X(this),this.depthMask=new W(this),this.stencilMask=new H(this),this.stencilFunc=new Y(this),this.stencilOp=new K(this),this.stencilTest=new J(this),this.depthRange=new Q(this),this.depthTest=new ee(this),this.depthFunc=new te(this),this.blend=new ie(this),this.blendFunc=new re(this),this.blendColor=new ne(this),this.blendEquation=new oe(this),this.cullFace=new se(this),this.cullFaceSide=new ae(this),this.frontFace=new le(this),this.program=new ce(this),this.activeTexture=new he(this),this.viewport=new ue(this),this.bindFramebuffer=new pe(this),this.bindRenderbuffer=new de(this),this.bindTexture=new fe(this),this.bindVertexBuffer=new me(this),this.bindElementBuffer=new _e(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ge(this),this.pixelStoreUnpack=new ye(this),this.pixelStoreUnpackPremultiplyAlpha=new xe(this),this.pixelStoreUnpackFlipY=new ve(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extStandardDerivativesForceOff=!1,this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(e.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extStandardDerivatives=e.getExtension("OES_standard_derivatives"),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t){return new V(this,e,t)}createVertexBuffer(e,t,i){return new N(this,e,t,i)}createRenderbuffer(e,t,i){const r=this.gl,n=r.createRenderbuffer();return this.bindRenderbuffer.set(n),r.renderbufferStorage(r.RENDERBUFFER,e,t,i),this.bindRenderbuffer.set(null),n}createFramebuffer(e,t,i){return new Se(this,e,t,i)}clear({color:e,depth:t,stencil:i}){const r=this.gl;let n=0;e&&(n|=r.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==t&&(n|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==i&&(n|=r.STENCIL_BUFFER_BIT,this.clearStencil.set(i),this.stencilMask.set(255)),r.clear(n)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(i){t(i.blendFunction,e.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(i.blendFunction),this.blendColor.set(i.blendColor)),this.colorMask.set(i.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class Ie extends e.Evented{constructor(t,i,r,n){super(),this.id=t,this.dispatcher=r,this.setEventedParent(n),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},i),e.extend(this,e.pick(i,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=O(this._options,this.map._requestManager,null,null,((t,i)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):i&&(e.extend(this,i),i.bounds&&(this.tileBounds=new U(i.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(i.tiles),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,i){const r=e.exported.devicePixelRatio>=2,n=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),r,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(n,e.ResourceType.Tile),((r,n,o,s)=>(delete t.request,t.aborted?(t.state="unloaded",i(null)):r?(t.state="errored",i(r)):n?(this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:s}),t.setTexture(n,this.map.painter),t.state="loaded",e.cacheEntryPossiblyAdded(this.dispatcher),void i(null)):i(null))))}static loadTileData(e,t,i){e.setTexture(t,i)}static unloadTileData(e,t){e.texture&&t.saveTileTexture(e.texture)}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}}let Ae;function Ce(t,i,r,n,o,s,a,l){const c=[t,r,o,i,n,s,1,1,1],h=[a,l,1],u=e.adjoint([],c),[p,d,f]=e.transformMat3(h,h,e.transpose(u,u));return e.multiply$1(c,[p,0,0,0,d,0,0,0,f],c)}class ze extends e.Evented{constructor(e,t,i,r){super(),this.id=e,this.dispatcher=i,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(r),this.options=t}load(t,i){this._loaded=i||!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),((i,r)=>{if(this._loaded=!0,i)this.fire(new e.ErrorEvent(i));else if(r){const{HTMLImageElement:i}=e.window;this.image=r instanceof i?e.exported.getImageData(r):r,this.width=this.image.width,this.height=this.image.height,t&&(this.coordinates=t),this._finishLoading()}}))}loaded(){return this._loaded}updateImage(e){return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this.texture&&this.texture.destroy()}setCoordinates(t){this.coordinates=t,this._boundsArray=void 0;const i=t.map(e.MercatorCoordinate.fromLngLat);return this.tileID=function(t){let i=1/0,r=1/0,n=-1/0,o=-1/0;for(const e of t)i=Math.min(i,e.x),r=Math.min(r,e.y),n=Math.max(n,e.x),o=Math.max(o,e.y);const s=Math.max(n-i,o-r),a=Math.max(0,Math.floor(-Math.log(s)/Math.LN2)),l=Math.pow(2,a);return new e.CanonicalTileID(a,Math.floor((i+n)/2*l),Math.floor((r+o)/2*l))}(i),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(t){for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}if(this._boundsArray)return;const i=e.tileTransform(this.tileID,this.map.transform.projection),[r,n,o,s]=this.coordinates.map((t=>{const r=i.projection.project(t[0],t[1]);return e.getTilePoint(i,r)._round()}));this.perspectiveTransform=function(t,i,r,n,o,s,a,l,c,h){const u=Ce(0,0,t,0,0,i,t,i),p=Ce(r,n,o,s,a,l,c,h);return e.multiply$1(p,e.adjoint(u,u),p),[p[6]/p[8]*t/e.EXTENT,p[7]/p[8]*i/e.EXTENT]}(this.width,this.height,r.x,r.y,n.x,n.y,s.x,s.y,o.x,o.y);const a=this._boundsArray=new e.StructArrayLayout4i8;a.emplaceBack(r.x,r.y,0,0),a.emplaceBack(n.x,n.y,e.EXTENT,0),a.emplaceBack(s.x,s.y,0,e.EXTENT),a.emplaceBack(o.x,o.y,e.EXTENT,e.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=t.createVertexBuffer(a,e.boundsAttributes.members),this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const t=this.map.painter.context,i=t.gl;this.texture?this.texture.update(this.image):(this.texture=new e.Texture(t,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this._prepareData(t)}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Pe={vector:class extends e.Evented{constructor(t,i,r,n){if(super(),this.id=t,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(i,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(n),this._tileWorkers={},this._deduped=new e.DedupedRequest}load(t){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"}));const i=this.language||this.map._language,r=this.worldview||this.map._worldview;this._tileJSONRequest=O(this._options,this.map._requestManager,i,r,((n,o)=>{this._tileJSONRequest=null,this._loaded=!0,n?(i&&console.warn(`Ensure that your requested language string is a valid BCP-47 code. Found: ${i}`),r&&2!==r.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new e.ErrorEvent(n))):o&&(e.extend(this,o),o.bounds&&(this.tileBounds=new U(o.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))),t&&t(n)}))}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load((()=>{const e=this.map.style._getSourceCaches(this.id);for(const t of e)t.clearTiles()}))}setTiles(e){return this.setSourceProperty((()=>{this._options.tiles=e})),this}setUrl(e){return this.setSourceProperty((()=>{this.url=e,this._options.url=e})),this}_setLanguage(e){return e===this.language||this.setSourceProperty((()=>{this.language=e})),this}_setWorldview(e){return e===this.worldview?this:this.worldviewOptions&&e&&!this.worldviewOptions[e]?(console.warn(`Vector tile source "${this.id}" does not support worldview "${e}".`),this):(this.setSourceProperty((()=>{this.worldview=e})),this)}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}loadTile(t,i){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),n={request:this.map._requestManager.transformRequest(r,e.ResourceType.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile};if(n.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=i:t.request=t.actor.send("reloadTile",n,o.bind(this));else if(t.actor=this._tileWorkers[r]=this._tileWorkers[r]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",n,o.bind(this),void 0,!0);else{const i=e.loadVectorTile.call({deduped:this._deduped},n,((e,i)=>{e||!i?o.call(this,e):(n.data={cacheControl:i.cacheControl,expires:i.expires,rawData:i.rawData.slice(0)},t.actor&&t.actor.send("loadTile",n,o.bind(this),void 0,!0))}),!0);t.request={cancel:i}}function o(r,n){return delete t.request,t.aborted?i(null):r&&404!==r.status?i(r):(n&&n.resourceTiming&&(t.resourceTiming=n.resourceTiming),this.map._refreshExpiredTiles&&n&&t.setExpiryData(n),t.loadVectorData(n,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),i(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id})}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:Ie,"raster-dem":class extends Ie{constructor(t,i,r,n){super(t,i,r,n),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox"}loadTile(t,i){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function n(e,r){e&&(t.state="errored",i(e)),r&&(t.dem=r,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",i(null))}t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,o,s,a){if(delete t.request,t.aborted)t.state="unloaded",i(null);else if(r)t.state="errored",i(r);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:s,expires:a});const i=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap&&(null==Ae&&(Ae=e.window.OffscreenCanvas&&new e.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof e.window.createImageBitmap),Ae),r=1-(o.width-e.prevPowerOfTwo(o.width))/2;r<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));const l=i?o:e.exported.getImageData(o,r),c={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:l,encoding:this.encoding,padding:r};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",c,n.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(t){const i=t.canonical,r=Math.pow(2,i.z),n=(i.x-1+r)%r,o=0===i.x?t.wrap-1:t.wrap,s=(i.x+1+r)%r,a=i.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.OverscaledTileID(t.overscaledZ,o,i.z,n,i.y).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,a,i.z,s,i.y).key]={backfilled:!1},i.y>0&&(l[new e.OverscaledTileID(t.overscaledZ,o,i.z,n,i.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,a,i.z,s,i.y-1).key]={backfilled:!1}),i.y+1<r&&(l[new e.OverscaledTileID(t.overscaledZ,o,i.z,n,i.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,t.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new e.OverscaledTileID(t.overscaledZ,a,i.z,s,i.y+1).key]={backfilled:!1}),l}unloadTile(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded"}},geojson:class extends e.Evented{constructor(t,i,r,n){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=r.getActor(),this.setEventedParent(n),this._data=i.data,this._options=e.extend({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;const o=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*o,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*o,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:e.EXTENT,radius:(void 0!==i.clusterRadius?i.clusterRadius:50)*o,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this}getClusterLeaves(e,t,i,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:i},r),this}_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new e.Event("dataloading",{dataType:"source"})),this._loaded=!1;const t=e.extend({},this.workerOptions),i=this._data;"string"==typeof i?(t.request=this.map._requestManager.transformRequest(e.exported.resolveURL(i),e.ResourceType.Source),t.request.collectResourceTiming=this._collectResourceTiming):t.data=JSON.stringify(i),this._pendingLoad=this.actor.send(`${this.type}.loadData`,t,((t,i)=>{if(this._loaded=!0,this._pendingLoad=null,t)this.fire(new e.ErrorEvent(t));else{const t={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&i&&i.resourceTiming&&i.resourceTiming[this.id]&&(t.resourceTiming=i.resourceTiming[this.id]),this.fire(new e.Event("data",t)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)}))}loaded(){return this._loaded}loadTile(t,i){const r=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(r,{type:this.type,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},((e,n)=>(delete t.request,t.unloadVectorData(),t.aborted?i(null):e?i(e):(t.loadVectorData(n,this.map.painter,"reloadTile"===r),i(null)))),void 0,"loadTile"===r)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return e.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends ze{constructor(e,t,i,r){super(e,t,i,r),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const i of t.urls)this.urls.push(this.map._requestManager.transformRequest(i,e.ResourceType.Source).url);e.getVideo(this.urls,((t,i)=>{this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):i&&(this.video=i,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading())}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const i=this.video.seekable;t<i.start(0)||t>i.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,i=t.gl;this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(t)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:ze,canvas:class extends ze{constructor(t,i,r,n){super(t,i,r,n),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some((e=>!Array.isArray(e)||2!==e.length||e.some((e=>"number"!=typeof e))))||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError(`sources.${t}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const i=this.map.painter.context;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(i,this.canvas,i.gl.RGBA,{premultiply:!0}),this._prepareData(i)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},custom:class extends e.Evented{constructor(t,i,r,n){super(),this.id=t,this.type="custom",this._dataType="raster",this._dispatcher=r,this._implementation=i,this.setEventedParent(n),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new e.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new e.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new U(this._implementation.bounds,this.minzoom,this.maxzoom)),i.update=this._update.bind(this),i.coveringTiles=this._coveringTiles.bind(this),e.extend(this,e.pick(i,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return e.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(t){this._map=t,this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(t),this.load()}onRemove(e){this._implementation.onRemove&&this._implementation.onRemove(e)}hasTile(e){if(this._implementation.hasTile){const{x:t,y:i,z:r}=e.canonical;return this._implementation.hasTile({x:t,y:i,z:r})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,i){const{x:r,y:n,z:o}=t.tileID.canonical,s=new e.window.AbortController,a=this._implementation.loadTile({x:r,y:n,z:o},{signal:s.signal});if(!a)return this.loadTileData(t,{width:this.tileSize,height:this.tileSize,data:null}),t.state="loaded",i(null);a.cancel=()=>s.abort(),t.request=a.then(function(r){return delete t.request,t.aborted?(t.state="unloaded",i(null)):r?function(t){return t instanceof e.window.ImageData||t instanceof e.window.ImageBitmap||t instanceof e.window.HTMLCanvasElement}(r)?(this.loadTileData(t,r),t.state="loaded",void i(null)):(t.state="errored",i(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`))):(this.loadTileData(t,{width:this.tileSize,height:this.tileSize,data:null}),t.state="loaded",i(null))}.bind(this))["catch"]((e=>{20!==e.code&&(t.state="errored",i(e))}))}loadTileData(e,t){Ie.loadTileData(e,t,this._map.painter)}unloadTileData(e){Ie.unloadTileData(e,this._map.painter)}prepareTile(e){if(!this._implementation.prepareTile)return null;const{x:t,y:i,z:r}=e.tileID.canonical,n=this._implementation.prepareTile({x:t,y:i,z:r});return n?(this.loadTileData(e,n),e.state="loaded",n):null}unloadTile(e,t){if(this.unloadTileData(e),this._implementation.unloadTile){const{x:t,y:i,z:r}=e.tileID.canonical;this._implementation.unloadTile({x:t,y:i,z:r})}t()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map((e=>({x:e.canonical.x,y:e.canonical.y,z:e.canonical.z})))}_update(){this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}}},ke=function(t,i,r,n){const o=new Pe[i.type](t,i,r,n);if(o.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${o.id}`);return e.bindAll(["load","abort","unload","serialize","prepare"],o),o};function De(t,i){const r=e.identity([]);return e.scale(r,r,[.5*t.width,.5*-t.height,1]),e.translate(r,r,[1,-1,0]),e.multiply(r,r,t.calculateProjMatrix(i.toUnwrapped())),Float32Array.from(r)}function Le(e,t,i,r,n,o,s,a=!1){const l=e.tilesIn(r,s,a);l.sort(Re);const c=[];for(const r of l)c.push({wrappedTileID:r.tile.tileID.wrapped().key,queryResults:r.tile.queryRenderedFeatures(t,i,e._state,r,n,o,De(e.transform,r.tile.tileID),a)});const h=function(e){const t={},i={};for(const r of e){const e=r.queryResults,n=r.wrappedTileID,o=i[n]=i[n]||{};for(const i in e){const r=e[i],n=o[i]=o[i]||{},s=t[i]=t[i]||[];for(const e of r)n[e.featureIndex]||(n[e.featureIndex]=!0,s.push(e))}}return t}(c);for(const t in h)h[t].forEach((t=>{const i=t.feature,r=i.layer;r&&"background"!==r.type&&"sky"!==r.type&&(i.source=r.source,r["source-layer"]&&(i.sourceLayer=r["source-layer"]),i.state=void 0!==i.id?e.getFeatureState(r["source-layer"],i.id):{})}));return h}function Be(e,t){const i=e.getRenderableIds().map((t=>e.getTileByID(t))),r=[],n={};for(let e=0;e<i.length;e++){const o=i[e],s=o.tileID.canonical.key;n[s]||(n[s]=!0,o.querySourceFeatures(r,t))}return r}function Re(e,t){const i=e.tileID,r=t.tileID;return i.overscaledZ-r.overscaledZ||i.canonical.y-r.canonical.y||i.wrap-r.wrap||i.canonical.x-r.canonical.x}function Fe(){return null!=go.workerClass?new go.workerClass:new e.window.Worker(go.workerUrl)}const Oe="mapboxgl_preloaded_worker_pool";class Ue{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length<Ue.workerCount;)this.workers.push(new Fe);return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach((e=>{e.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[Oe]}numActive(){return Object.keys(this.active).length}}let Ve;function je(){return Ve||(Ve=new Ue),Ve}function Ne(t,i){const r={};for(const e in t)"ref"!==e&&(r[e]=t[e]);return e.refProperties.forEach((e=>{e in i&&(r[e]=i[e])})),r}function Ge(e){e=e.slice();const t=Object.create(null);for(let i=0;i<e.length;i++)t[e[i].id]=e[i];for(let i=0;i<e.length;i++)"ref"in e[i]&&(e[i]=Ne(e[i],t[e[i].ref]));return e}Ue.workerCount=2;const Ze={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function $e(e,t,i){i.push({command:Ze.addSource,args:[e,t[e]]})}function qe(e,t,i){t.push({command:Ze.removeSource,args:[e]}),i[e]=!0}function Xe(e,t,i,r){qe(e,i,r),$e(e,t,i)}function We(e,i,r){let n;for(n in e[r])if(e[r].hasOwnProperty(n)&&"data"!==n&&!t(e[r][n],i[r][n]))return!1;for(n in i[r])if(i[r].hasOwnProperty(n)&&"data"!==n&&!t(e[r][n],i[r][n]))return!1;return!0}function He(e,i,r,n,o,s){let a;for(a in i=i||{},e=e||{})e.hasOwnProperty(a)&&(t(e[a],i[a])||r.push({command:s,args:[n,a,i[a],o]}));for(a in i)i.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(t(e[a],i[a])||r.push({command:s,args:[n,a,i[a],o]}))}function Ye(e){return e.id}function Ke(e,t){return e[t.id]=t,e}class Je{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let e=1;e<this.points.length;e++)this._distances[e]=this._distances[e-1]+this.points[e].dist(this.points[e-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);let i=1,r=this._distances[i];const n=t*this.paddedLength+this.padding;for(;r<n&&i<this._distances.length;)r=this._distances[++i];const o=i-1,s=this._distances[o],a=r-s,l=a>0?(n-s)/a:0;return this.points[o].mult(1-l).add(this.points[i].mult(l))}}class Qe{constructor(e,t,i){const r=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(e/i),this.yCellCount=Math.ceil(t/i);for(let e=0;e<this.xCellCount*this.yCellCount;e++)r.push([]),n.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,i,r,n){this._forEachCell(t,i,r,n,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(i),this.bboxes.push(r),this.bboxes.push(n)}insertCircle(e,t,i,r){this._forEachCell(t-r,i-r,t+r,i+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(i),this.circles.push(r)}_insertBoxCell(e,t,i,r,n,o){this.boxCells[n].push(o)}_insertCircleCell(e,t,i,r,n,o){this.circleCells[n].push(o)}_query(e,t,i,r,n,o){if(i<0||e>this.width||r<0||t>this.height)return!n&&[];const s=[];if(e<=0&&t<=0&&this.width<=i&&this.height<=r){if(n)return!0;for(let e=0;e<this.boxKeys.length;e++)s.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],i=this.circles[3*e+1],r=this.circles[3*e+2];s.push({key:this.circleKeys[e],x1:t-r,y1:i-r,x2:t+r,y2:i+r})}return o?s.filter(o):s}return this._forEachCell(e,t,i,r,this._queryCell,s,{hitTest:n,seenUids:{box:{},circle:{}}},o),n?s.length>0:s}_queryCircle(e,t,i,r,n){const o=e-i,s=e+i,a=t-i,l=t+i;if(s<0||o>this.width||l<0||a>this.height)return!r&&[];const c=[];return this._forEachCell(o,a,s,l,this._queryCellCircle,c,{hitTest:r,circle:{x:e,y:t,radius:i},seenUids:{box:{},circle:{}}},n),r?c.length>0:c}query(e,t,i,r,n){return this._query(e,t,i,r,!1,n)}hitTest(e,t,i,r,n){return this._query(e,t,i,r,!0,n)}hitTestCircle(e,t,i,r){return this._queryCircle(e,t,i,!0,r)}_queryCell(e,t,i,r,n,o,s,a){const l=s.seenUids,c=this.boxCells[n];if(null!==c){const n=this.bboxes;for(const h of c)if(!l.box[h]){l.box[h]=!0;const c=4*h;if(e<=n[c+2]&&t<=n[c+3]&&i>=n[c+0]&&r>=n[c+1]&&(!a||a(this.boxKeys[h]))){if(s.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[h],x1:n[c],y1:n[c+1],x2:n[c+2],y2:n[c+3]})}}}const h=this.circleCells[n];if(null!==h){const n=this.circles;for(const c of h)if(!l.circle[c]){l.circle[c]=!0;const h=3*c;if(this._circleAndRectCollide(n[h],n[h+1],n[h+2],e,t,i,r)&&(!a||a(this.circleKeys[c]))){if(s.hitTest)return o.push(!0),!0;{const e=n[h],t=n[h+1],i=n[h+2];o.push({key:this.circleKeys[c],x1:e-i,y1:t-i,x2:e+i,y2:t+i})}}}}}_queryCellCircle(e,t,i,r,n,o,s,a){const l=s.circle,c=s.seenUids,h=this.boxCells[n];if(null!==h){const e=this.bboxes;for(const t of h)if(!c.box[t]){c.box[t]=!0;const i=4*t;if(this._circleAndRectCollide(l.x,l.y,l.radius,e[i+0],e[i+1],e[i+2],e[i+3])&&(!a||a(this.boxKeys[t])))return o.push(!0),!0}}const u=this.circleCells[n];if(null!==u){const e=this.circles;for(const t of u)if(!c.circle[t]){c.circle[t]=!0;const i=3*t;if(this._circlesCollide(e[i],e[i+1],e[i+2],l.x,l.y,l.radius)&&(!a||a(this.circleKeys[t])))return o.push(!0),!0}}}_forEachCell(e,t,i,r,n,o,s,a){const l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),h=this._convertToXCellCoord(i),u=this._convertToYCellCoord(r);for(let p=l;p<=h;p++)for(let l=c;l<=u;l++)if(n.call(this,e,t,i,r,this.xCellCount*l+p,o,s,a))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,i,r,n,o){const s=r-e,a=n-t,l=i+o;return l*l>s*s+a*a}_circleAndRectCollide(e,t,i,r,n,o,s){const a=(o-r)/2,l=Math.abs(e-(r+a));if(l>a+i)return!1;const c=(s-n)/2,h=Math.abs(t-(n+c));if(h>c+i)return!1;if(l<=a||h<=c)return!0;const u=l-a,p=h-c;return u*u+p*p<=i*i}}const et=Math.tan(85*Math.PI/180);function tt(t,i,r,n,o,s,a){const l=e.create();if(r)if("globe"===s.name){const t=e.calculateGlobeLabelMatrix(o,i);e.multiply(l,l,t)}else{const t=y([],a);l[0]=t[0],l[1]=t[1],l[4]=t[2],l[5]=t[3],n||e.rotateZ(l,l,o.angle)}else e.multiply(l,o.labelPlaneMatrix,t);return l}function it(e,t,i,r,n,o,s){const a=tt(e,t,i,r,n,o,s);return"globe"===o.name&&i||(a[2]=a[6]=a[10]=a[14]=0),a}function rt(t,i,r,n,o,s,a){if(r){if("globe"===s.name){const l=tt(t,i,r,n,o,s,a);return e.invert(l,l),e.multiply(l,t,l),l}{const i=e.clone(t),r=e.identity([]);return r[0]=a[0],r[1]=a[1],r[4]=a[2],r[5]=a[3],e.multiply(i,i,r),n||e.rotateZ(i,i,-o.angle),i}}return o.glCoordMatrix}function nt(t,i,r=0){const n=[t.x,t.y,r,1];r?e.transformMat4$1(n,n,i):gt(n,n,i);const o=n[3];return{point:[n[0]/o,n[1]/o,n[2]/o],signedDistanceFromCamera:o}}function ot(t,i){const r=[t[0],t[1],t[2],1];e.transformMat4$1(r,r,i);const n=r[3];return{point:[r[0]/n,r[1]/n,r[2]/n],signedDistanceFromCamera:n}}function st(e,t){return Math.min(.5+e/t*.5,1.5)}function at(e,t){const i=e[0]/e[3],r=e[1]/e[3];return i>=-t[0]&&i<=t[0]&&r>=-t[1]&&r<=t[1]}function lt(t,i,r,n,o,s,a,l,c,h){const u=r.transform,p=n?t.textSizeData:t.iconSizeData,d=e.evaluateSizeForZoom(p,r.transform.zoom),f="globe"===u.projection.name,m=[256/r.width*2+1,256/r.height*2+1],_=n?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;_.clear();let g=null;f&&(g=n?t.text.globeExtVertexArray:t.icon.globeExtVertexArray);const y=t.lineVertexArray,x=n?t.text.placedSymbolArray:t.icon.placedSymbolArray,v=r.transform.width/r.transform.height;let b=!1;for(let n=0;n<x.length;n++){const f=x.get(n);if(f.writingMode!==e.WritingMode.vertical||b||0!==n&&x.get(n-1).writingMode===e.WritingMode.horizontal||(b=!0),(f.hidden||f.writingMode===e.WritingMode.vertical)&&!b){_t(f.numGlyphs,_);continue}b=!1;const w=new e.pointGeometry(f.tileAnchorX,f.tileAnchorY),T=c?c(w):[0,0,0],E=u.projection.projectTilePoint(w.x,w.y,h.canonical),S=[E.x+T[0],E.y+T[1],E.z+T[2]],M=[...S,1];if(e.transformMat4$1(M,M,i),!at(M,m)){_t(f.numGlyphs,_);continue}const I=st(r.transform.cameraToCenterDistance,M[3]),A=e.evaluateSizeForFeature(p,d,f),C=a?A/I:A*I,z=nt(new e.pointGeometry(S[0],S[1]),o,S[2]);if(z.signedDistanceFromCamera<=0){_t(f.numGlyphs,_);continue}let P={};const k=a?null:c,D=ut(f,C,!1,l,i,o,s,t.glyphOffsetArray,y,_,g,z.point,w,P,v,k,u.projection,h,a);b=D.useVertical,k&&D.needsFlipping&&(P={}),(D.notEnoughRoom||b||D.needsFlipping&&ut(f,C,!0,l,i,o,s,t.glyphOffsetArray,y,_,g,z.point,w,P,v,k,u.projection,h,a).notEnoughRoom)&&_t(f.numGlyphs,_)}n?(t.text.dynamicLayoutVertexBuffer.updateData(_),g&&t.text.globeExtVertexBuffer.updateData(g)):(t.icon.dynamicLayoutVertexBuffer.updateData(_),g&&t.icon.globeExtVertexBuffer.updateData(g))}function ct(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m){const _=a.glyphStartIndex+a.numGlyphs,g=a.lineStartIndex,y=a.lineStartIndex+a.lineLength,x=t.getoffsetX(a.glyphStartIndex),v=t.getoffsetX(_-1),b=ft(e*x,i,r,n,o,s,a.segment,g,y,l,c,h,u,p,!0,d,f,m);if(!b)return null;const w=ft(e*v,i,r,n,o,s,a.segment,g,y,l,c,h,u,p,!0,d,f,m);return w?{first:b,last:w}:null}function ht(t,i,r,n){return t.writingMode===e.WritingMode.horizontal&&Math.abs(r.y-i.y)>Math.abs(r.x-i.x)*n?{useVertical:!0}:t.writingMode===e.WritingMode.vertical?i.y<r.y?{needsFlipping:!0}:null:0!==t.flipState&&function(e,t,i){const r=(t.x-e.x)*i;return 0===r||Math.abs((t.y-e.y)/r)>et}(i,r,n)?1===t.flipState?{needsFlipping:!0}:null:i.x>r.x?{needsFlipping:!0}:null}function ut(t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y,x){const v=i/24,b=t.lineOffsetX*v,w=t.lineOffsetY*v;let T;if(t.numGlyphs>1){const i=t.glyphStartIndex+t.numGlyphs,o=t.lineStartIndex,h=t.lineStartIndex+t.lineLength,u=ct(v,l,b,w,r,p,d,t,c,s,f,_,!1,g,y,x);if(!u)return{notEnoughRoom:!0};const E=ot(u.first.point,a).point,S=ot(u.last.point,a).point,M=new e.pointGeometry(E[0],E[1]),I=new e.pointGeometry(S[0],S[1]);if(n&&!r){const e=ht(t,M,I,m);if(t.flipState=e&&e.needsFlipping?1:2,e)return e}T=[u.first];for(let e=t.glyphStartIndex+1;e<i-1;e++)T.push(ft(v*l.getoffsetX(e),b,w,r,p,d,t.segment,o,h,c,s,f,_,!1,!1,g,y,x));T.push(u.last)}else{if(n&&!r){const i=nt(d,o).point,r=t.lineStartIndex+t.segment+1,n=new e.pointGeometry(c.getx(r),c.gety(r)),s=nt(n,o),a=s.signedDistanceFromCamera>0?s.point:dt(d,n,i,1,o,void 0,g,y.canonical),l=ht(t,new e.pointGeometry(i[0],i[1]),new e.pointGeometry(a[0],a[1]),m);if(t.flipState=l&&l.needsFlipping?1:2,l)return l}const i=ft(v*l.getoffsetX(t.glyphStartIndex),b,w,r,p,d,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,c,s,f,_,!1,!1,g,y,x);if(!i)return{notEnoughRoom:!0};T=[i]}if(u)for(const t of T)e.updateGlobeVertexNormal(u,h.length+0,t.up[0],t.up[1],t.up[2]),e.updateGlobeVertexNormal(u,h.length+1,t.up[0],t.up[1],t.up[2]),e.updateGlobeVertexNormal(u,h.length+2,t.up[0],t.up[1],t.up[2]),e.updateGlobeVertexNormal(u,h.length+3,t.up[0],t.up[1],t.up[2]),e.addDynamicAttributes(h,t.point[0],t.point[1],t.point[2],t.angle);else for(const t of T)e.addDynamicAttributes(h,t.point[0],t.point[1],t.point[2],t.angle);return{}}function pt(t,i,r,n,o){const s=n.projectTilePoint(t.x,t.y,i);if(!o)return nt(s,r,s.z);const a=o(t);return nt(new e.pointGeometry(s.x+a[0],s.y+a[1]),r,s.z+a[2])}function dt(t,i,r,n,o,s,a,l){const c=pt(t.add(t.sub(i)._unit()),l,o,a,s).point,h=e.sub([],r,c);return e.scaleAndAdd([],r,h,n/e.length(h))}function ft(t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g,y){const x=n?t-i:t+i;let v=x>0?1:-1,b=0;n&&(v*=-1,b=Math.PI),v<0&&(b+=Math.PI);let w=v>0?l+a:l+a+1,T=o,E=o,S=0,M=0;const I=Math.abs(x),A=[],C=[];let z=s;const P=()=>{const t=w-v;return 0===S?s:new e.pointGeometry(h.getx(t),h.gety(t))},k=()=>dt(P(),z,E,I-S+1,u,d,_,g.canonical);for(;S+M<=I;){if(w+=v,w<l||w>=c)return null;if(E=T,A.push(T),f&&C.push(z||P()),T=p[w],void 0===T){z=new e.pointGeometry(h.getx(w),h.gety(w));const t=pt(z,g.canonical,u,_,d);T=t.signedDistanceFromCamera>0?p[w]=t.point:k()}else z=null;S+=M,M=e.distance(E,T)}z=z||new e.pointGeometry(h.getx(w),h.gety(w));const D=P();m&&d&&(p[w]=T=void 0===p[w]?T:k(),M=e.distance(E,T));const L=(I-S)/M,B=z.sub(D).mult(L)._add(D),R=e.sub([],T,E),F=e.scaleAndAdd([],E,R,L);let O=[0,0,1],U=R[0],V=R[1];if(y&&(O=_.upVector(g.canonical,B.x,B.y),0!==O[0]||0!==O[1]||1!==O[2])){const t=[1,0,0],i=[0,1,0];t[0]=O[2],t[1]=0,t[2]=-O[0],e.cross(i,O,t),e.normalize(t,t),e.normalize(i,i),U=e.dot(R,t),V=e.dot(R,i)}if(r){const t=e.cross([],O,R);e.normalize(t,t),e.scaleAndAdd(F,F,t,r*v)}const j=b+Math.atan2(V,U);return A.push(F),f&&C.push(B),{point:F,angle:j,path:A,tilePath:C,up:O}}const mt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function _t(e,t){for(let i=0;i<e;i++){const e=t.length;t.resize(e+4),t.float32.set(mt,4*e)}}function gt(e,t,i){const r=t[0],n=t[1];return e[0]=i[0]*r+i[4]*n+i[12],e[1]=i[1]*r+i[5]*n+i[13],e[3]=i[3]*r+i[7]*n+i[15],e}const yt=100;class xt{constructor(e,t,i=new Qe(e.width+200,e.height+200,25),r=new Qe(e.width+200,e.height+200,25)){this.transform=e,this.grid=i,this.ignoredGrid=r,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+yt,this.screenBottomBoundary=e.height+yt,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=t}placeCollisionBox(e,t,i,r,n,o,s,a){let l=i.projectedAnchorX,c=i.projectedAnchorY,h=i.projectedAnchorZ;const u=i.elevation,p=i.tileID;if(u&&p){const t=e.getProjection().upVector(p.canonical,i.tileAnchorX,i.tileAnchorY),r=e.getProjection().upVectorScale(p.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=t[0]*u*r,c+=t[1]*u*r,h+=t[2]*u*r}const d=this.projectAndGetPerspectiveRatio(s,[l,c,h],i.tileID,"globe"===e.projection.name||!!u||this.transform.pitch>0,e.getProjection()),f=o*d.perspectiveRatio,m=(i.x1*t+r.x-i.padding)*f+d.point.x,_=(i.y1*t+r.y-i.padding)*f+d.point.y,g=(i.x2*t+r.x+i.padding)*f+d.point.x,y=(i.y2*t+r.y+i.padding)*f+d.point.y,x=d.perspectiveRatio<=.55||d.occluded;return!this.isInsideGrid(m,_,g,y)||!n&&this.grid.hitTest(m,_,g,y,a)||x?{box:[],offscreen:!1,occluded:d.occluded}:{box:[m,_,g,y],offscreen:this.isOffscreen(m,_,g,y),occluded:!1}}placeCollisionCircles(t,i,r,n,o,s,a,l,c,h,u,p,d,f,m){const _=[],g=this.transform.elevation,y=g?g.getAtTileOffsetFunc(m,this.transform.center.lat,this.transform.worldSize,t.getProjection()):e=>[0,0,0],x=new e.pointGeometry(r.tileAnchorX,r.tileAnchorY),v=t.getProjection().projectTilePoint(r.tileAnchorX,r.tileAnchorY,m.canonical),b=y(x),w=[v.x+b[0],v.y+b[1],v.z+b[2]],T="globe"===t.projection.name,E=this.projectAndGetPerspectiveRatio(a,[w[0],w[1],w[2]],m,T||!!g||this.transform.pitch>0,t.getProjection()),{perspectiveRatio:S}=E,M=(u?s/S:s*S)/e.ONE_EM,I=nt(new e.pointGeometry(w[0],w[1]),l,w[2]).point,A=E.signedDistanceFromCamera>0?ct(M,o,r.lineOffsetX*M,r.lineOffsetY*M,!1,I,x,r,n,l,{},g&&!u?y:null,u&&!!g,t.getProjection(),m,u):null;let C=!1,z=!1,P=!0;if(A&&!E.occluded){const t=.5*d*S+f,r=new e.pointGeometry(-100,-100),n=new e.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),o=new Je,s=A.first,a=A.last;let l=[];for(let e=s.path.length-1;e>=1;e--)l.push(s.path[e]);for(let e=1;e<a.path.length;e++)l.push(a.path[e]);const u=2.5*t;if(c){const e=l.map(g&&!T?(e,t)=>{const i=y(t<s.path.length-1?s.tilePath[s.path.length-1-t]:a.tilePath[t-s.path.length+2]);return e[2]=i[2],ot(e,c)}:e=>ot(e,c));l=e.some((e=>e.signedDistanceFromCamera<=0))?[]:e.map((e=>e.point))}let m=[];if(l.length>0){const t=l.map((t=>new e.pointGeometry(t[0],t[1])));let i=1/0,o=-1/0,s=1/0,a=-1/0;for(let e=0;e<t.length;e++)i=Math.min(i,t[e].x),s=Math.min(s,t[e].y),o=Math.max(o,t[e].x),a=Math.max(a,t[e].y);m=i>=r.x&&o<=n.x&&s>=r.y&&a<=n.y?[t]:o<r.x||i>n.x||a<r.y||s>n.y?[]:e.clipLine([t],r.x,r.y,n.x,n.y)}for(const e of m){o.reset(e,.25*t);let r=0;r=o.length<=.5*t?1:Math.ceil(o.paddedLength/u)+1;for(let e=0;e<r;e++){const n=e/Math.max(r-1,1),s=o.lerp(n),a=s.x+yt,l=s.y+yt;_.push(a,l,t,0);const c=a-t,u=l-t,d=a+t,f=l+t;if(P=P&&this.isOffscreen(c,u,d,f),z=z||this.isInsideGrid(c,u,d,f),!i&&this.grid.hitTestCircle(a,l,t,p)&&(C=!0,!h))return{circles:[],offscreen:!1,collisionDetected:C,occluded:!1}}}}return{circles:!h&&C||!z?[]:_,offscreen:P,collisionDetected:C,occluded:E.occluded}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const i=[];let r=1/0,n=1/0,o=-1/0,s=-1/0;for(const a of t){const t=new e.pointGeometry(a.x+yt,a.y+yt);r=Math.min(r,t.x),n=Math.min(n,t.y),o=Math.max(o,t.x),s=Math.max(s,t.y),i.push(t)}const a=this.grid.query(r,n,o,s).concat(this.ignoredGrid.query(r,n,o,s)),l={},c={};for(const t of a){const r=t.key;if(void 0===l[r.bucketInstanceId]&&(l[r.bucketInstanceId]={}),l[r.bucketInstanceId][r.featureIndex])continue;const n=[new e.pointGeometry(t.x1,t.y1),new e.pointGeometry(t.x2,t.y1),new e.pointGeometry(t.x2,t.y2),new e.pointGeometry(t.x1,t.y2)];e.polygonIntersectsPolygon(i,n)&&(l[r.bucketInstanceId][r.featureIndex]=!0,void 0===c[r.bucketInstanceId]&&(c[r.bucketInstanceId]=[]),c[r.bucketInstanceId].push(r.featureIndex))}return c}insertCollisionBox(e,t,i,r,n){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:i,featureIndex:r,collisionGroupID:n},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,i,r,n){const o=t?this.ignoredGrid:this.grid,s={bucketInstanceId:i,featureIndex:r,collisionGroupID:n};for(let t=0;t<e.length;t+=4)o.insertCircle(s,e[t],e[t+1],e[t+2])}projectAndGetPerspectiveRatio(t,i,r,n,o){const s=[i[0],i[1],i[2],1];let a=!1;if(i[2]||this.transform.pitch>0){e.transformMat4$1(s,s,t);const n="globe"===o.name;this.fogState&&r&&!n&&(a=function(t,i,r,n,o,s){const a=s.calculateFogTileMatrix(o),l=[i,r,n];return e.transformMat4(l,l,a),I(t,l,s.pitch,s._fov)}(this.fogState,i[0],i[1],i[2],r.toUnwrapped(),this.transform)>.9)}else gt(s,s,t);return{point:new e.pointGeometry((s[0]/s[3]+1)/2*this.transform.width+yt,(-s[1]/s[3]+1)/2*this.transform.height+yt),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(o)/s[3]*.5,1.5),signedDistanceFromCamera:s[3],occluded:n&&s[2]>s[3]||a}}isOffscreen(e,t,i,r){return i<yt||e>=this.screenRightBoundary||r<yt||t>this.screenBottomBoundary}isInsideGrid(e,t,i,r){return i>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.identity([]);return e.translate(t,t,[-100,-100,0]),t}}function vt(t,i,r){const n=i.createTileMatrix(t,t.worldSize,r.toUnwrapped());return e.multiply(new Float32Array(16),t.projMatrix,n)}function bt(e,t,i){if(t.projection.name===i.projection.name)return e.projMatrix;const r=i.clone();return r.setProjection(t.projection),vt(r,t.getProjection(),e)}function wt(e,t,i){return t.name===i.projection.name?e.projMatrix:vt(i,t,e)}class Tt{constructor(e,t,i,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&i?1:0,this.placed=i}isHidden(){return 0===this.opacity&&!this.placed}}class Et{constructor(e,t,i,r,n,o=!1){this.text=new Tt(e?e.text:null,t,i,n),this.icon=new Tt(e?e.icon:null,t,r,n),this.clipped=o}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class St{constructor(e,t,i,r=!1){this.text=e,this.icon=t,this.skipFade=i,this.clipped=r}}class Mt{constructor(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]}}class It{constructor(e,t,i,r,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=i,this.bucketIndex=r,this.tileID=n}}class At{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function Ct(t,i,r,n,o){const{horizontalAlign:s,verticalAlign:a}=e.getAnchorAlignment(t),l=-(s-.5)*i,c=-(a-.5)*r,h=e.evaluateVariableOffset(t,n);return new e.pointGeometry(l+h[0]*o,c+h[1]*o)}function zt(t,i,r,n,o){const s=new e.pointGeometry(t,i);return r&&s._rotate(n?o:-o),s}class Pt{constructor(e,t,i,r,n){this.transform=e.clone(),this.projection=e.projection.name,this.collisionIndex=new xt(this.transform,n),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new At(i),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,i,r,n){const o=r.getBucket(i),s=r.latestFeatureIndex;if(!o||!s||i.id!==o.layerIds[0])return;const a=o.layers[0].layout,l=r.collisionBoxArray,c=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),h=r.tileSize/e.EXTENT,u=r.tileID.toUnwrapped();this.transform.setProjection(o.projection);const p=(d=r.tileID,f=o.getProjection(),m=this.transform,f.name===this.projection?m.calculateProjMatrix(d.toUnwrapped()):vt(m,f,d));var d,f,m;const _="map"===a.get("text-pitch-alignment"),g="map"===a.get("text-rotation-alignment");i.compileFilter();const y=i.dynamicFilter(),x=i.dynamicFilterNeedsFeature(),v=this.transform.calculatePixelsToTileUnitsMatrix(r),b=it(p,r.tileID.canonical,_,g,this.transform,o.getProjection(),v);let w=null;if(_){const t=rt(p,r.tileID.canonical,_,g,this.transform,o.getProjection(),v);w=e.multiply([],this.transform.labelPlaneMatrix,t)}let T=null;y&&r.latestFeatureIndex&&(T={unwrappedTileID:u,dynamicFilter:y,dynamicFilterNeedsFeature:x,featureIndex:r.latestFeatureIndex}),this.retainedQueryData[o.bucketInstanceId]=new It(o.bucketInstanceId,s,o.sourceLayerIndex,o.index,r.tileID);const E={bucket:o,layout:a,posMatrix:p,textLabelPlaneMatrix:b,labelToScreenMatrix:w,clippingData:T,scale:c,textPixelRatio:h,holdingForFade:r.holdingForFade(),collisionBoxArray:l,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:e.evaluateSizeForZoom(o.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(n)for(const e of o.sortKeyRanges){const{sortKey:i,symbolInstanceStart:r,symbolInstanceEnd:n}=e;t.push({sortKey:i,symbolInstanceStart:r,symbolInstanceEnd:n,parameters:E})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:E})}attemptAnchorPlacement(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g){const y=[u.textOffset0,u.textOffset1],x=Ct(e,i,r,y,n),v=this.collisionIndex.placeCollisionBox(d,n,t,zt(x.x,x.y,o,s,this.transform.angle),h,a,l,c.predicate);if((!m||0!==this.collisionIndex.placeCollisionBox(d,d.getSymbolInstanceIconSize(g,this.transform.zoom,p),m,zt(x.x,x.y,o,s,this.transform.angle),h,a,l,c.predicate).box.length)&&v.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[u.crossTileID]&&this.prevPlacement.placements[u.crossTileID]&&this.prevPlacement.placements[u.crossTileID].text&&(t=this.prevPlacement.variableOffsets[u.crossTileID].anchor),this.variableOffsets[u.crossTileID]={textOffset:y,width:i,height:r,anchor:e,textScale:n,prevAnchor:t},this.markUsedJustification(d,e,u,f),d.allowVerticalPlacement&&(this.markUsedOrientation(d,f,u),this.placedOrientations[u.crossTileID]=f),{shift:x,placedGlyphBoxes:v}}}placeLayerBucketPart(t,i,r,n){const{bucket:o,layout:s,posMatrix:a,textLabelPlaneMatrix:l,labelToScreenMatrix:c,clippingData:h,textPixelRatio:u,holdingForFade:p,collisionBoxArray:d,partiallyEvaluatedTextSize:f,partiallyEvaluatedIconSize:m,collisionGroup:_}=t.parameters,g=s.get("text-optional"),y=s.get("icon-optional"),x=s.get("text-allow-overlap"),v=s.get("icon-allow-overlap"),b="map"===s.get("text-rotation-alignment"),w="map"===s.get("text-pitch-alignment"),T="none"!==s.get("icon-text-fit"),E="viewport-y"===s.get("symbol-z-order");this.transform.setProjection(o.projection);let S=x&&(v||!o.hasIconData()||y),M=v&&(x||!o.hasTextData()||g);!o.collisionArrays&&d&&o.deserializeCollisionBoxes(d),r&&n&&o.updateCollisionDebugBuffers(this.transform.zoom,d);const I=(t,n,d)=>{if(h){const r={zoom:this.transform.zoom,pitch:this.transform.pitch};let n=null;if(h.dynamicFilterNeedsFeature){const e=this.retainedQueryData[o.bucketInstanceId];n=h.featureIndex.loadFeature({featureIndex:t.featureIndex,bucketIndex:e.bucketIndex,sourceLayerIndex:e.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,h.dynamicFilter)(r,n,this.retainedQueryData[o.bucketInstanceId].tileID.canonical,new e.pointGeometry(t.tileAnchorX,t.tileAnchorY),this.transform.calculateDistanceTileData(h.unwrappedTileID)))return this.placements[t.crossTileID]=new St(!1,!1,!1,!0),void(i[t.crossTileID]=!0)}if(i[t.crossTileID])return;if(p)return void(this.placements[t.crossTileID]=new St(!1,!1,!1));let E=!1,I=!1,A=!0,C=!1,z=!1,P=null,k={box:null,offscreen:null,occluded:null},D={box:null,offscreen:null,occluded:null},L=null,B=null,R=null,F=0,O=0,U=0;d.textFeatureIndex?F=d.textFeatureIndex:t.useRuntimeCollisionCircles&&(F=t.featureIndex),d.verticalTextFeatureIndex&&(O=d.verticalTextFeatureIndex);const V=e=>{e.tileID=this.retainedQueryData[o.bucketInstanceId].tileID,(this.transform.elevation||e.elevation)&&(e.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[o.bucketInstanceId].tileID,e.tileAnchorX,e.tileAnchorY):0)},j=d.textBox;if(j){V(j);const i=i=>{let r=e.WritingMode.horizontal;if(o.allowVerticalPlacement&&!i&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,r=e,this.markUsedOrientation(o,r,t))}return r},r=(i,r)=>{if(o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&d.verticalTextBox){for(const t of o.writingModes)if(t===e.WritingMode.vertical?(k=r(),D=k):k=i(),k&&k.box&&k.box.length)break}else k=i()};if(s.get("text-variable-anchor")){let l=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[t.crossTileID]){const e=this.prevPlacement.variableOffsets[t.crossTileID];l.indexOf(e.anchor)>0&&(l=l.filter((t=>t!==e.anchor)),l.unshift(e.anchor))}const c=(e,i,r)=>{const s=o.getSymbolInstanceTextSize(f,t,this.transform.zoom,n),c=(e.x2-e.x1)*s+2*e.padding,h=(e.y2-e.y1)*s+2*e.padding,p=T&&!v?i:null;p&&V(p);let d={box:[],offscreen:!1,occluded:!1};const g=x?2*l.length:l.length;for(let i=0;i<g;++i){const g=this.attemptAnchorPlacement(l[i%l.length],e,c,h,s,b,w,u,a,_,i>=l.length,t,n,o,r,p,f,m);if(g&&(d=g.placedGlyphBoxes,d&&d.box&&d.box.length)){E=!0,P=g.shift;break}}return d};r((()=>c(j,d.iconBox,e.WritingMode.horizontal)),(()=>{const i=d.verticalTextBox;return i&&V(i),o.allowVerticalPlacement&&!(k&&k.box&&k.box.length)&&t.numVerticalGlyphVertices>0&&i?c(i,d.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null,occluded:null}})),k&&(E=k.box,A=k.offscreen,C=k.occluded);const h=i(k&&k.box);if(!E&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(o,e.anchor,t,h))}}else{const s=(i,r)=>{const s=o.getSymbolInstanceTextSize(f,t,this.transform.zoom,n),l=this.collisionIndex.placeCollisionBox(o,s,i,new e.pointGeometry(0,0),x,u,a,_.predicate);return l&&l.box&&l.box.length&&(this.markUsedOrientation(o,r,t),this.placedOrientations[t.crossTileID]=r),l};r((()=>s(j,e.WritingMode.horizontal)),(()=>{const i=d.verticalTextBox;return o.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i?(V(i),s(i,e.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}})),i(k&&k.box&&k.box.length)}}if(L=k,E=L&&L.box&&L.box.length>0,A=L&&L.offscreen,C=L&&L.occluded,t.useRuntimeCollisionCircles){const i=o.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex),n=e.evaluateSizeForFeature(o.textSizeData,f,i),h=s.get("text-padding");B=this.collisionIndex.placeCollisionCircles(o,x,i,o.lineVertexArray,o.glyphOffsetArray,n,a,l,c,r,w,_.predicate,t.collisionCircleDiameter*n/e.ONE_EM,h,this.retainedQueryData[o.bucketInstanceId].tileID),E=x||B.circles.length>0&&!B.collisionDetected,A=A&&B.offscreen,C=B.occluded}if(d.iconFeatureIndex&&(U=d.iconFeatureIndex),d.iconBox){const t=t=>{V(t);const i=T&&P?zt(P.x,P.y,b,w,this.transform.angle):new e.pointGeometry(0,0),r=o.getSymbolInstanceIconSize(m,this.transform.zoom,n);return this.collisionIndex.placeCollisionBox(o,r,t,i,v,u,a,_.predicate)};D&&D.box&&D.box.length&&d.verticalIconBox?(R=t(d.verticalIconBox),I=R.box.length>0):(R=t(d.iconBox),I=R.box.length>0),A=A&&R.offscreen,z=R.occluded}const N=g||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,G=y||0===t.numIconVertices;if(N||G?G?N||(I=I&&E):E=I&&E:I=E=I&&E,E&&L&&L.box&&this.collisionIndex.insertCollisionBox(L.box,s.get("text-ignore-placement"),o.bucketInstanceId,D&&D.box&&O?O:F,_.ID),I&&R&&this.collisionIndex.insertCollisionBox(R.box,s.get("icon-ignore-placement"),o.bucketInstanceId,U,_.ID),B&&(E&&this.collisionIndex.insertCollisionCircles(B.circles,s.get("text-ignore-placement"),o.bucketInstanceId,F,_.ID),r)){const e=o.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new Mt);for(let e=0;e<B.circles.length;e+=4)t.circles.push(B.circles[e+0]),t.circles.push(B.circles[e+1]),t.circles.push(B.circles[e+2]),t.circles.push(B.collisionDetected?1:0)}const Z="globe"!==o.projection.name;S=S&&(Z||!C),M=M&&(Z||!z),this.placements[t.crossTileID]=new St(E||S,I||M,A||o.justReloaded),i[t.crossTileID]=!0};if(E){const e=o.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){const i=e[t];I(o.symbolInstances.get(i),i,o.collisionArrays[i])}}else for(let e=t.symbolInstanceStart;e<t.symbolInstanceEnd;e++)I(o.symbolInstances.get(e),e,o.collisionArrays[e]);if(r&&o.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[o.bucketInstanceId];e.invert(t.invProjMatrix,a),t.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1}markUsedJustification(t,i,r,n){let o;o=n===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[e.getAnchorJustification(i)];const s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];for(const e of s)e>=0&&(t.text.placedSymbolArray.get(e).crossTileID=o>=0&&e!==o?0:r.crossTileID)}markUsedOrientation(t,i,r){const n=i===e.WritingMode.horizontal||i===e.WritingMode.horizontalOnly?i:0,o=i===e.WritingMode.vertical?i:0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(const e of s)t.text.placedSymbolArray.get(e).placedOrientation=n;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let i=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const r=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},o=t?t.variableOffsets:{},s=t?t.placedOrientations:{};for(const e in this.placements){const t=this.placements[e],o=n[e];o?(this.opacities[e]=new Et(o,r,t.text,t.icon,null,t.clipped),i=i||t.text!==o.text.placed||t.icon!==o.icon.placed):(this.opacities[e]=new Et(null,r,t.text,t.icon,t.skipFade,t.clipped),i=i||t.text||t.icon)}for(const e in n){const t=n[e];if(!this.opacities[e]){const n=new Et(t,r,!1,!1);n.isHidden()||(this.opacities[e]=n,i=i||t.text.placed||t.icon.placed)}}for(const e in o)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=o[e]);for(const e in s)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=s[e]);i?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const i={};for(const r of t){const t=r.getBucket(e);t&&r.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,i,r.collisionBoxArray)}}updateBucketOpacities(t,i,r){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const n=t.layers[0].layout,o=!!t.layers[0].dynamicFilter(),s=new Et(null,0,!1,!1,!0),a=n.get("text-allow-overlap"),l=n.get("icon-allow-overlap"),c=n.get("text-variable-anchor"),h="map"===n.get("text-rotation-alignment"),u="map"===n.get("text-pitch-alignment"),p="none"!==n.get("icon-text-fit"),d=new Et(null,0,a&&(l||!t.hasIconData()||n.get("icon-optional")),l&&(a||!t.hasTextData()||n.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);const f=(e,t,i)=>{for(let r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(i)};let m=0;for(let r=0;r<t.symbolInstances.length;r++){const n=t.symbolInstances.get(r),{numHorizontalGlyphVertices:a,numVerticalGlyphVertices:l,crossTileID:_}=n;let g=this.opacities[_];i[_]?g=s:g||(g=d,this.opacities[_]=g),i[_]=!0;const y=a>0||l>0,x=n.numIconVertices>0,v=this.placedOrientations[n.crossTileID],b=v===e.WritingMode.vertical,w=v===e.WritingMode.horizontal||v===e.WritingMode.horizontalOnly;if(!y&&!x||g.isHidden()||m++,y){const e=Vt(g.text);f(t.text,a,b?jt:e),f(t.text,l,w?jt:e);const i=g.text.isHidden();[n.rightJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.leftJustifiedTextSymbolIndex].forEach((e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=i||b?1:0)})),n.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).hidden=i||w?1:0);const r=this.variableOffsets[n.crossTileID];r&&this.markUsedJustification(t,r.anchor,n,v);const o=this.placedOrientations[n.crossTileID];o&&(this.markUsedJustification(t,"left",n,o),this.markUsedOrientation(t,o,n))}if(x){const e=Vt(g.icon);n.placedIconSymbolIndex>=0&&(f(t.icon,n.numIconVertices,b?jt:e),t.icon.placedSymbolArray.get(n.placedIconSymbolIndex).hidden=g.icon.isHidden()),n.verticalPlacedIconSymbolIndex>=0&&(f(t.icon,n.numVerticalIconVertices,w?jt:e),t.icon.placedSymbolArray.get(n.verticalPlacedIconSymbolIndex).hidden=g.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const i=t.collisionArrays[r];if(i){let r=new e.pointGeometry(0,0),n=!0;if(i.textBox||i.verticalTextBox){if(c){const e=this.variableOffsets[_];e?(r=Ct(e.anchor,e.width,e.height,e.textOffset,e.textScale),h&&r._rotate(u?this.transform.angle:-this.transform.angle)):n=!1}o&&(n=!g.clipped),i.textBox&&kt(t.textCollisionBox.collisionVertexArray,g.text.placed,!n||b,r.x,r.y),i.verticalTextBox&&kt(t.textCollisionBox.collisionVertexArray,g.text.placed,!n||w,r.x,r.y)}const s=n&&Boolean(!w&&i.verticalIconBox);i.iconBox&&kt(t.iconCollisionBox.collisionVertexArray,g.icon.placed,s,p?r.x:0,p?r.y:0),i.verticalIconBox&&kt(t.iconCollisionBox.collisionVertexArray,g.icon.placed,!s,p?r.x:0,p?r.y:0)}}}if(t.fullyClipped=0===m,t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const i=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*i>e}setStale(){this.stale=!0}}function kt(e,t,i,r,n){e.emplaceBack(t?1:0,i?1:0,r||0,n||0),e.emplaceBack(t?1:0,i?1:0,r||0,n||0),e.emplaceBack(t?1:0,i?1:0,r||0,n||0),e.emplaceBack(t?1:0,i?1:0,r||0,n||0)}const Dt=Math.pow(2,25),Lt=Math.pow(2,24),Bt=Math.pow(2,17),Rt=Math.pow(2,16),Ft=Math.pow(2,9),Ot=Math.pow(2,8),Ut=Math.pow(2,1);function Vt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,i=Math.floor(127*e.opacity);return i*Dt+t*Lt+i*Bt+t*Rt+i*Ft+t*Ot+i*Ut+t}const jt=0;class Nt{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,i,r,n){const o=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(o,r,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,n())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort(((e,t)=>e.sortKey-t.sortKey)));this._currentPartIndex<o.length;){const e=o[this._currentPartIndex];if(t.placeLayerBucketPart(e,this._seenCrossTileIDs,i,0===e.symbolInstanceStart),this._currentPartIndex++,n())return!0}return!1}}class Gt{constructor(e,t,i,r,n,o,s,a){this.placement=new Pt(e,n,o,s,a),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=i,this._showCollisionBoxes=r,this._done=!1}isDone(){return this._done}continuePlacement(t,i,r){const n=e.exported.now(),o=()=>{const t=e.exported.now()-n;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const e=i[t[this._currentPlacementIndex]],n=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=n)&&(!e.maxzoom||e.maxzoom>n)){if(this._inProgressLayer||(this._inProgressLayer=new Nt(e)),this._inProgressLayer.continuePlacement(r[e.source],this.placement,this._showCollisionBoxes,e,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const Zt=512/e.EXTENT/2;class $t{constructor(e,t,i){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=i;for(let i=0;i<t.length;i++){const r=t.get(i),n=r.key;this.indexedSymbolInstances[n]||(this.indexedSymbolInstances[n]=[]),this.indexedSymbolInstances[n].push({crossTileID:r.crossTileID,coord:this.getScaledCoordinates(r,e)})}}getScaledCoordinates(t,i){const r=Zt/Math.pow(2,i.canonical.z-this.tileID.canonical.z);return{x:Math.floor((i.canonical.x*e.EXTENT+t.tileAnchorX)*r),y:Math.floor((i.canonical.y*e.EXTENT+t.tileAnchorY)*r)}}findMatches(e,t,i){const r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z);for(let n=0;n<e.length;n++){const o=e.get(n);if(o.crossTileID)continue;const s=this.indexedSymbolInstances[o.key];if(!s)continue;const a=this.getScaledCoordinates(o,t);for(const e of s)if(Math.abs(e.coord.x-a.x)<=r&&Math.abs(e.coord.y-a.y)<=r&&!i[e.crossTileID]){i[e.crossTileID]=!0,o.crossTileID=e.crossTileID;break}}}}class qt{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Xt{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const e in this.indexes){const i=this.indexes[e],r={};for(const e in i){const n=i[e];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+t),r[n.tileID.key]=n}this.indexes[e]=r}this.lng=e}addBucket(e,t,i){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let e=0;e<t.symbolInstances.length;e++)t.symbolInstances.get(e).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});const r=this.usedCrossTileIDs[e.overscaledZ];for(const i in this.indexes){const n=this.indexes[i];if(Number(i)>e.overscaledZ)for(const i in n){const o=n[i];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,r)}else{const o=n[e.scaledTo(Number(i)).key];o&&o.findMatches(t.symbolInstances,e,r)}}for(let e=0;e<t.symbolInstances.length;e++){const n=t.symbolInstances.get(e);n.crossTileID||(n.crossTileID=i.generate(),r[n.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new $t(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const i in t.indexedSymbolInstances)for(const r of t.indexedSymbolInstances[i])delete this.usedCrossTileIDs[e][r.crossTileID]}removeStaleBuckets(e){let t=!1;for(const i in this.indexes){const r=this.indexes[i];for(const n in r)e[r[n].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,r[n]),delete r[n],t=!0)}return t}}class Wt{constructor(){this.layerIndexes={},this.crossTileIDs=new qt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,i,r){let n=this.layerIndexes[e.id];void 0===n&&(n=this.layerIndexes[e.id]=new Xt);let o=!1;const s={};"globe"!==r.name&&n.handleWrapJump(i);for(const i of t){const t=i.getBucket(e);t&&e.id===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(i.tileID,t,this.crossTileIDs)&&(o=!0),s[t.bucketInstanceId]=!0)}return n.removeStaleBuckets(s)&&(o=!0),o}pruneUnusedLayers(e){const t={};e.forEach((e=>{t[e]=!0}));for(const e in this.layerIndexes)t[e]||delete this.layerIndexes[e]}}const Ht=(t,i)=>e.emitValidationErrors(t,i&&i.filter((e=>"source.canvas"!==e.identifier))),Yt=e.pick(Ze,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),Kt=e.pick(Ze,["setCenter","setZoom","setBearing","setPitch"]),Jt={version:8,layers:[],sources:{}},Qt={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class ei extends e.Evented{constructor(t,i={}){super(),this.map=t,this.dispatcher=new k(je(),this),this.imageManager=new v,this.imageManager.setEventedParent(this),this.glyphManager=new e.GlyphManager(t._requestManager,i.localFontFamily?e.LocalGlyphMode.all:i.localIdeographFontFamily?e.LocalGlyphMode.ideographs:e.LocalGlyphMode.none,i.localFontFamily||i.localIdeographFontFamily),this.lineAtlas=new e.LineAtlas(256,512),this.crossTileSymbolIndex=new Wt,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());const r=this;this._rtlTextPluginCallback=ei.registerForPluginStateChange((t=>{r.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},((t,i)=>{if(e.triggerPluginCompletionEvent(t),i&&i.every((e=>e)))for(const e in r._sourceCaches){const t=r._sourceCaches[e],i=t.getSource().type;"vector"!==i&&"geojson"!==i||t.reload()}}))})),this.on("data",(e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getSource(e.sourceId);if(t&&t.vectorLayerIds)for(const e in this._layers){const i=this._layers[e];i.source===t.id&&this._validateLayer(i)}}))}loadURL(t,i={}){this.fire(new e.Event("dataloading",{dataType:"style"}));const r="boolean"==typeof i.validate?i.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,i.accessToken);const n=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(n,((t,i)=>{this._request=null,t?this.fire(new e.ErrorEvent(t)):i&&this._load(i,r)}))}loadJSON(t,i={}){this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.exported.frame((()=>{this._request=null,this._load(t,!1!==i.validate)}))}loadEmpty(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Jt,!1)}_updateLayerCount(e,t){const i=t?1:-1;e.is3D()&&(this._num3DLayers+=i),"circle"===e.type&&(this._numCircleLayers+=i),"symbol"===e.type&&(this._numSymbolLayers+=i)}_load(t,i){if(i&&Ht(this,e.validateStyle(t)))return;this._loaded=!0,this.stylesheet=e.clone$1(t),this._updateMapProjection();for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1});this._changed=!1,t.sprite?this._loadSprite(t.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(t.glyphs);const r=Ge(this.stylesheet.layers);this._order=r.map((e=>e.id)),this._layers={},this._serializedLayers={};for(let t of r)t=e.createStyleLayer(t),t.setEventedParent(this,{layer:{id:t.id}}),this._layers[t.id]=t,this._serializedLayers[t.id]=t.serialize(),this._updateLayerCount(t,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new T(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(t){this._spriteRequest=function(t,i,r){let n,o,s;const a=e.exported.devicePixelRatio>1?"@2x":"";let l=e.getJSON(i.transformRequest(i.normalizeSpriteURL(t,a,".json"),e.ResourceType.SpriteJSON),((e,t)=>{l=null,s||(s=e,n=t,h())})),c=e.getImage(i.transformRequest(i.normalizeSpriteURL(t,a,".png"),e.ResourceType.SpriteImage),((e,t)=>{c=null,s||(s=e,o=t,h())}));function h(){if(s)r(s);else if(n&&o){const t=e.exported.getImageData(o),i={};for(const r in n){const{width:o,height:s,x:a,y:l,sdf:c,pixelRatio:h,stretchX:u,stretchY:p,content:d}=n[r],f=new e.RGBAImage({width:o,height:s});e.RGBAImage.copy(t,f,{x:a,y:l},{x:0,y:0},{width:o,height:s}),i[r]={data:f,pixelRatio:h,sdf:c,stretchX:u,stretchY:p,content:d}}r(null,i)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,((t,i)=>{if(this._spriteRequest=null,t)this.fire(new e.ErrorEvent(t));else if(i)for(const e in i)this.imageManager.addImage(e,i[e]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new e.Event("data",{dataType:"style"}))}))}_validateLayer(t){const i=this.getSource(t.source);if(!i)return;const r=t.sourceLayer;r&&("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${t.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(e){const t=[];for(const i of e){const e=this._layers[i];"custom"!==e.type&&t.push(e.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;if(this.fog&&this.fog.hasTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(e){return!!this.terrain&&Qt[e.type]}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(t){if(!this._loaded)return;const i=this._changed;if(this._changed){const e=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);(e.length||i.length)&&this._updateWorkerLayers(e,i);for(const e in this._updatedSources){const t=this._updatedSources[e];"reload"===t?this._reloadSource(e):"clear"===t&&this._clearSource(e)}this._updateTilesForChangedImages();for(const e in this._updatedPaintProps)this._layers[e].updateTransitions(t);this.light.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this._resetUpdates()}const r={};for(const e in this._sourceCaches){const t=this._sourceCaches[e];r[e]=t.used,t.used=!1}for(const e of this._order){const i=this._layers[e];if(i.recalculate(t,this._availableImages),!i.isHidden(t.zoom)){const e=this._getLayerSourceCache(i);e&&(e.used=!0)}const r=this.map.painter;if(r){const e=i.getProgramIds();if(!e)continue;const n=i.getProgramConfiguration(t.zoom);for(const t of e)r.useProgram(t,n)}}for(const t in r){const i=this._sourceCaches[t];r[t]!==i.used&&i.getSource().fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:i.getSource().id}))}this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),i&&this.fire(new e.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=Object.keys(this._changedImages);if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(i){if(this._checkLoaded(),Ht(this,e.validateStyle(i)))return!1;(i=e.clone$1(i)).layers=Ge(i.layers);const r=function(e,i){if(!e)return[{command:Ze.setStyle,args:[i]}];let r=[];try{if(!t(e.version,i.version))return[{command:Ze.setStyle,args:[i]}];t(e.center,i.center)||r.push({command:Ze.setCenter,args:[i.center]}),t(e.zoom,i.zoom)||r.push({command:Ze.setZoom,args:[i.zoom]}),t(e.bearing,i.bearing)||r.push({command:Ze.setBearing,args:[i.bearing]}),t(e.pitch,i.pitch)||r.push({command:Ze.setPitch,args:[i.pitch]}),t(e.sprite,i.sprite)||r.push({command:Ze.setSprite,args:[i.sprite]}),t(e.glyphs,i.glyphs)||r.push({command:Ze.setGlyphs,args:[i.glyphs]}),t(e.transition,i.transition)||r.push({command:Ze.setTransition,args:[i.transition]}),t(e.light,i.light)||r.push({command:Ze.setLight,args:[i.light]}),t(e.fog,i.fog)||r.push({command:Ze.setFog,args:[i.fog]}),t(e.projection,i.projection)||r.push({command:Ze.setProjection,args:[i.projection]});const n={},o=[];!function(e,i,r,n){let o;for(o in i=i||{},e=e||{})e.hasOwnProperty(o)&&(i.hasOwnProperty(o)||qe(o,r,n));for(o in i)i.hasOwnProperty(o)&&(e.hasOwnProperty(o)?t(e[o],i[o])||("geojson"===e[o].type&&"geojson"===i[o].type&&We(e,i,o)?r.push({command:Ze.setGeoJSONSourceData,args:[o,i[o].data]}):Xe(o,i,r,n)):$e(o,i,r))}(e.sources,i.sources,o,n);const s=[];e.layers&&e.layers.forEach((e=>{e.source&&n[e.source]?r.push({command:Ze.removeLayer,args:[e.id]}):s.push(e)}));let a=e.terrain;a&&n[a.source]&&(r.push({command:Ze.setTerrain,args:[void 0]}),a=void 0),r=r.concat(o),t(a,i.terrain)||r.push({command:Ze.setTerrain,args:[i.terrain]}),function(e,i,r){i=i||[];const n=(e=e||[]).map(Ye),o=i.map(Ye),s=e.reduce(Ke,{}),a=i.reduce(Ke,{}),l=n.slice(),c=Object.create(null);let h,u,p,d,f,m,_;for(h=0,u=0;h<n.length;h++)p=n[h],a.hasOwnProperty(p)?u++:(r.push({command:Ze.removeLayer,args:[p]}),l.splice(l.indexOf(p,u),1));for(h=0,u=0;h<o.length;h++)p=o[o.length-1-h],l[l.length-1-h]!==p&&(s.hasOwnProperty(p)?(r.push({command:Ze.removeLayer,args:[p]}),l.splice(l.lastIndexOf(p,l.length-u),1)):u++,m=l[l.length-h],r.push({command:Ze.addLayer,args:[a[p],m]}),l.splice(l.length-h,0,p),c[p]=!0);for(h=0;h<o.length;h++)if(p=o[h],d=s[p],f=a[p],!c[p]&&!t(d,f))if(t(d.source,f.source)&&t(d["source-layer"],f["source-layer"])&&t(d.type,f.type)){for(_ in He(d.layout,f.layout,r,p,null,Ze.setLayoutProperty),He(d.paint,f.paint,r,p,null,Ze.setPaintProperty),t(d.filter,f.filter)||r.push({command:Ze.setFilter,args:[p,f.filter]}),t(d.minzoom,f.minzoom)&&t(d.maxzoom,f.maxzoom)||r.push({command:Ze.setLayerZoomRange,args:[p,f.minzoom,f.maxzoom]}),d)d.hasOwnProperty(_)&&"layout"!==_&&"paint"!==_&&"filter"!==_&&"metadata"!==_&&"minzoom"!==_&&"maxzoom"!==_&&(0===_.indexOf("paint.")?He(d[_],f[_],r,p,_.slice(6),Ze.setPaintProperty):t(d[_],f[_])||r.push({command:Ze.setLayerProperty,args:[p,_,f[_]]}));for(_ in f)f.hasOwnProperty(_)&&!d.hasOwnProperty(_)&&"layout"!==_&&"paint"!==_&&"filter"!==_&&"metadata"!==_&&"minzoom"!==_&&"maxzoom"!==_&&(0===_.indexOf("paint.")?He(d[_],f[_],r,p,_.slice(6),Ze.setPaintProperty):t(d[_],f[_])||r.push({command:Ze.setLayerProperty,args:[p,_,f[_]]}))}else r.push({command:Ze.removeLayer,args:[p]}),m=l[l.lastIndexOf(p)+1],r.push({command:Ze.addLayer,args:[f,m]})}(s,i.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:Ze.setStyle,args:[i]}]}return r}(this.serialize(),i).filter((e=>!(e.command in Kt)));if(0===r.length)return!1;const n=r.filter((e=>!(e.command in Yt)));if(n.length>0)throw new Error(`Unimplemented: ${n.map((e=>e.command)).join(", ")}.`);return r.forEach((e=>{"setTransition"!==e.command&&"setProjection"!==e.command&&this[e.command].apply(this,e.args)})),this.stylesheet=i,this._updateMapProjection(),!0}addImage(t,i){return this.getImage(t)?this.fire(new e.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(t,i),this._afterImageUpdated(t),this)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){return this.getImage(t)?(this.imageManager.removeImage(t),this._afterImageUpdated(t),this):this.fire(new e.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(t,i,r={}){if(this._checkLoaded(),void 0!==this.getSource(t))throw new Error("There is already a source with this ID");if(!i.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(i.type)>=0&&this._validate(e.validateSource,`sources.${t}`,i,null,r))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);const n=ke(t,i,this.dispatcher,this);n.setEventedParent(this,(()=>({isSourceLoaded:this._isSourceCacheLoaded(t),source:n.serialize(),sourceId:t})));const o=i=>{const r=(i?"symbol:":"other:")+t,o=this._sourceCaches[r]=new e.SourceCache(r,n,i);(i?this._symbolSourceCaches:this._otherSourceCaches)[t]=o,o.style=this,o.onAdd(this.map)};o(!1),"vector"!==i.type&&"geojson"!==i.type||o(!0),n.onAdd&&n.onAdd(this.map),this._changed=!0}removeSource(t){this._checkLoaded();const i=this.getSource(t);if(!i)throw new Error("There is no source with this ID");for(const i in this._layers)if(this._layers[i].source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${i}" is using it.`)));if(this.terrain&&this.terrain.get().source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while terrain is using it.`)));const r=this._getSourceCaches(t);for(const t of r)delete this._sourceCaches[t.id],delete this._updatedSources[t.id],t.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t.getSource().id})),t.setEventedParent(null),t.clearTiles();return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],i.setEventedParent(null),i.onRemove&&i.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getSource(e).setData(t),this._changed=!0}getSource(e){const t=this._getSourceCache(e);return t&&t.getSource()}addLayer(t,i,r={}){this._checkLoaded();const n=t.id;if(this.getLayer(n))return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${n}" already exists on this map`)));let o;if("custom"===t.type){if(Ht(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(n,t.source),t=e.clone$1(t),t=e.extend(t,{source:n})),this._validate(e.validateLayer,`layers.${n}`,t,{arrayIndex:-1},r))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:n}}),this._serializedLayers[o.id]=o.serialize(),this._updateLayerCount(o,!0)}const s=i?this._order.indexOf(i):this._order.length;if(i&&-1===s)return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${i}" does not exist on this map.`)));this._order.splice(s,0,n),this._layerOrderChanged=!0,this._layers[n]=o;const a=this._getLayerSourceCache(o);if(this._removedLayers[n]&&o.source&&a&&"custom"!==o.type){const e=this._removedLayers[n];delete this._removedLayers[n],e.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",a.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(t,i){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===i)return;const r=this._order.indexOf(t);this._order.splice(r,1);const n=i?this._order.indexOf(i):this._order.length;i&&-1===n?this.fire(new e.ErrorEvent(new Error(`Layer with id "${i}" does not exist on this map.`))):(this._order.splice(n,0,t),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(t){this._checkLoaded();const i=this._layers[t];if(!i)return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be removed.`)));i.setEventedParent(null),this._updateLayerCount(i,!1);const r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=i,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],i.onRemove&&i.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(e){return this._layers[e]}hasLayer(e){return e in this._layers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(t,i,r){this._checkLoaded();const n=this.getLayer(t);n?n.minzoom===i&&n.maxzoom===r||(null!=i&&(n.minzoom=i),null!=r&&(n.maxzoom=r),this._updateLayer(n)):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(i,r,n={}){this._checkLoaded();const o=this.getLayer(i);if(o){if(!t(o.filter,r))return null==r?(o.filter=void 0,void this._updateLayer(o)):void(this._validate(e.validateFilter,`layers.${o.id}.filter`,r,{layerType:o.type},n)||(o.filter=e.clone$1(r),this._updateLayer(o)))}else this.fire(new e.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be filtered.`)))}getFilter(t){const i=this.getLayer(t);return i&&e.clone$1(i.filter)}setLayoutProperty(i,r,n,o={}){this._checkLoaded();const s=this.getLayer(i);s?t(s.getLayoutProperty(r),n)||(s.setLayoutProperty(r,n,o),this._updateLayer(s)):this.fire(new e.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(t,i){const r=this.getLayer(t);if(r)return r.getLayoutProperty(i);this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style.`)))}setPaintProperty(i,r,n,o={}){this._checkLoaded();const s=this.getLayer(i);s?t(s.getPaintProperty(r),n)||(s.setPaintProperty(r,n,o)&&this._updateLayer(s),this._changed=!0,this._updatedPaintProps[i]=!0):this.fire(new e.ErrorEvent(new Error(`The layer '${i}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(e,t){const i=this.getLayer(e);return i&&i.getPaintProperty(t)}setFeatureState(t,i){this._checkLoaded();const r=t.source,n=t.sourceLayer,o=this.getSource(r);if(!o)return void this.fire(new e.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const s=o.type;if("geojson"===s&&n)return void this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===s&&!n)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided.")));const a=this._getSourceCaches(r);for(const e of a)e.setFeatureState(n,t.id,i)}removeFeatureState(t,i){this._checkLoaded();const r=t.source,n=this.getSource(r);if(!n)return void this.fire(new e.ErrorEvent(new Error(`The source '${r}' does not exist in the map's style.`)));const o=n.type,s="vector"===o?t.sourceLayer:void 0;if("vector"===o&&!s)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(i&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const a=this._getSourceCaches(r);for(const e of a)e.removeFeatureState(s,t.id,i)}getFeatureState(t){this._checkLoaded();const i=t.source,r=t.sourceLayer,n=this.getSource(i);if(n){if("vector"!==n.type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(i)[0].getFeatureState(r,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)))}getTransition(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const t={};for(const e in this._sourceCaches){const i=this._sourceCaches[e].getSource();t[i.id]||(t[i.id]=i.serialize())}return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:t,layers:this._serializeLayers(this._order)},(e=>void 0!==e))}_updateLayer(e){this._updatedLayers[e.id]=!0;const t=this._getLayerSourceCache(e);e.source&&!this._updatedSources[e.source]&&t&&"raster"!==t.getSource().type&&(this._updatedSources[e.source]="reload",t.pause()),this._changed=!0,e.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._layers[e].type,i={},r=[];for(let n=this._order.length-1;n>=0;n--){const o=this._order[n];if(t(o)){i[o]=n;for(const t of e){const e=t[o];if(e)for(const t of e)r.push(t)}}}r.sort(((e,t)=>t.intersectionZ-e.intersectionZ));const n=[];for(let o=this._order.length-1;o>=0;o--){const s=this._order[o];if(t(s))for(let e=r.length-1;e>=0;e--){const t=r[e].feature;if(i[t.layer.id]<o)break;n.push(t),r.pop()}else for(const t of e){const e=t[s];if(e)for(const t of e)n.push(t.feature)}}return n}queryRenderedFeatures(t,i,r){i&&i.filter&&this._validate(e.validateFilter,"queryRenderedFeatures.filter",i.filter,null,i);const n={};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const t of i.layers){const i=this._layers[t];if(!i)return this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];n[i.source]=!0}}const o=[];i.availableImages=this._availableImages;const s=i&&i.layers?i.layers.some((e=>{const t=this.getLayer(e);return t&&t.is3D()})):this.has3DLayers(),a=L.createFromScreenPoints(t,r);for(const e in this._sourceCaches){const t=this._sourceCaches[e].getSource().id;i.layers&&!n[t]||o.push(Le(this._sourceCaches[e],this._layers,this._serializedLayers,a,i,r,s,!!this.map._showQueryGeometry))}return this.placement&&o.push(function(e,t,i,r,n,o,s){const a={},l=o.queryRenderedSymbols(r),c=[];for(const e of Object.keys(l).map(Number))c.push(s[e]);c.sort(Re);for(const i of c){const r=i.featureIndex.lookupSymbolFeatures(l[i.bucketInstanceId],t,i.bucketIndex,i.sourceLayerIndex,n.filter,n.layers,n.availableImages,e);for(const e in r){const t=a[e]=a[e]||[],n=r[e];n.sort(((e,t)=>{const r=i.featureSortOrder;if(r){const i=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex}));for(const e of n)t.push(e)}}for(const t in a)a[t].forEach((r=>{const n=r.feature,o=i(e[t]).getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=o}));return a}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),a.screenGeometry,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(t,i){i&&i.filter&&this._validate(e.validateFilter,"querySourceFeatures.filter",i.filter,null,i);const r=this._getSourceCaches(t);let n=[];for(const e of r)n=n.concat(Be(e,i));return n}addSourceType(e,t,i){return ei.getSourceType(e)?i(new Error(`A source type called "${e}" already exists.`)):(ei.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},i):i(null,null))}getLight(){return this.light.getLight()}setLight(e,i={}){this._checkLoaded();const r=this.light.getLight();let n=!1;for(const i in e)if(!t(e[i],r[i])){n=!0;break}if(!n)return;const o=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(e,i),this.light.updateTransitions(o)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(i,r=1){if(this._checkLoaded(),!i)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if(1===r){if("object"==typeof i.source){const t="terrain-dem-src";this.addSource(t,i.source),i=e.clone$1(i),i=e.extend(i,{source:t})}if(this._validate(e.validateTerrain,"terrain",i))return}if(!this.terrain||this.terrain&&r!==this.terrain.drapeRenderMode)this._createTerrain(i,r);else{const r=this.terrain,n=r.get();for(const t of Object.keys(e.spec.terrain))!i.hasOwnProperty(t)&&e.spec.terrain[t]["default"]&&(i[t]=e.spec.terrain[t]["default"]);for(const e in i)if(!t(i[e],n[e])){r.set(i),this.stylesheet.terrain=i;const e=this._setTransitionParameters({duration:0});r.updateTransitions(e);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(e){const t=this.fog=new P(e,this.map.transform);this.stylesheet.fog=e;const i=this._setTransitionParameters({duration:0});t.updateTransitions(i)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask((()=>{for(const e of this.map._markers)e._evaluateOpacity()}))}getFog(){return this.fog?this.fog.get():null}setFog(e){if(this._checkLoaded(),!e)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const i=this.fog,r=i.get();0===Object.keys(e).length&&i.set(e);for(const n in e)if(!t(e[n],r[n])){i.set(e),this.stylesheet.fog=e;const t=this._setTransitionParameters({duration:0});i.updateTransitions(t);break}}else this._createFog(e);this._markersNeedUpdate=!0}_setTransitionParameters(t){return{now:e.exported.now(),transition:e.extend(t,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const e=this._order.filter((e=>this.isLayerDraped(this._layers[e]))),t=this._order.filter((e=>!this.isLayerDraped(this._layers[e])));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(e,t){const i=this.terrain=new M(e,t);this.stylesheet.terrain=e,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const r=this._setTransitionParameters({duration:0});i.updateTransitions(r)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(t,i,r,n,o={}){return(!o||!1!==o.validate)&&Ht(this,t.call(e.validateStyle,e.extend({key:i,style:this.serialize(),value:r,styleSpec:e.spec},n)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._layers)this._layers[e].setEventedParent(null);for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles(),this._sourceCaches[e].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(e){const t=this._getSourceCaches(e);for(const e of t)e.clearTiles()}_reloadSource(e){const t=this._getSourceCaches(e);for(const e of t)e.resume(),e.reload()}_updateSources(e){for(const t in this._sourceCaches)this._sourceCaches[t].update(e)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(t,i,r,n,o=!1){let s=!1,a=!1;const l={};for(const e of this._order){const i=this._layers[e];if("symbol"!==i.type)continue;if(!l[i.source]){const e=this._getLayerSourceCache(i);if(!e)continue;l[i.source]=e.getRenderableIds(!0).map((t=>e.getTileByID(t))).sort(((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)))}const r=this.crossTileSymbolIndex.addLayer(i,l[i.source],t.center.lng,t.projection);s=s||r}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),o=o||this._layerOrderChanged||0===r,this._layerOrderChanged&&this.fire(new e.Event("neworder")),(o||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.exported.now(),t.zoom))&&(this.pauseablePlacement=new Gt(t,this._order,o,i,r,n,this.placement,this.fog&&t.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.exported.now()),a=!0),s&&this.pauseablePlacement.placement.setStale()),a||s)for(const e of this._order){const t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,l[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.exported.now())}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,t,i){this.imageManager.getImages(t.icons,i),this._updateTilesForChangedImages();const r=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};r(this._otherSourceCaches[t.source]),r(this._symbolSourceCaches[t.source])}getGlyphs(e,t,i){this.glyphManager.getGlyphs(t.stacks,i)}getResource(t,i,r){return e.makeRequest(i,r)}_getSourceCache(e){return this._otherSourceCaches[e]}_getLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}_getSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}_isSourceCacheLoaded(t){const i=this._getSourceCaches(t);return 0===i.length?(this.fire(new e.ErrorEvent(new Error(`There is no source with ID '${t}'`))),!1):i.every((e=>e.loaded()))}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}ei.getSourceType=function(e){return Pe[e]},ei.setSourceType=function(e,t){Pe[e]=t},ei.registerForPluginStateChange=e.registerForPluginStateChange;var ti="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",ii="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",ri="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",ni="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",oi="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let si={},ai={};const li=[];di(ti,li),di(ri,li),di(ni,li),di(oi,li),si=fi("",ri),ai=fi(oi,ni);const ci=fi("\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),hi=ti,ui="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var pi={background:fi("uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:fi("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:fi("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);vec4 world_center=vec4(pos,1);\n#else \nmat3 surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:fi("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:fi("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\nvec3 pos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:fi("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:fi("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:fi("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:fi("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:fi("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:fi("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:fi("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:fi("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:fi("uniform lowp vec3 u_lightpos;varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;varying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\nvoid main() {vec4 color=v_color;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(v_normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying highp vec3 v_normal;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;vec3 pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_normal=normal;v_depth=gl_Position.w;\n#endif\nfloat colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);directional*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\nv_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:fi("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);\n#else\nvec3 p=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);directional*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\nv_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:fi("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos);float f=getElevation(v_pos+vec2(epsilon.x,0));float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float h=getElevation(v_pos+vec2(0,epsilon.y));float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:fi("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:fi("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;uniform float u_mix;uniform vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist_a=texture2D(u_dash_image,v_tex_a).a;float sdfdist_b=texture2D(u_dash_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\n#ifdef RENDER_LINE_GRADIENT\nhighp vec4 out_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nvec4 out_color=color;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);}}\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float scaleA=dash_from.z==0.0 ? 0.0 : tileZoomRatio/(dash_from.z*fromScale);float scaleB=dash_to.z==0.0 ? 0.0 : tileZoomRatio/(dash_to.z*toScale);float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*scaleA/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*scaleB/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:fi("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:fi("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:fi("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);vec4 offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\nvec4 offsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:fi("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);vec4 offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\nvec4 offsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:fi("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(tile_anchor,0)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);vec4 projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:fi("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=u_skirt_height*u_skirt_height*wireframeOffset;\n#endif\nvec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:fi("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:fi("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",ii),skyboxGradient:fi("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",ii),skyboxCapture:fi("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R                  vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M                  vec3(21e-6,21e-6,21e-6)\n#define MIE_G                   0.76\n#define DENSITY_HEIGHT_SCALE_R  8000.0\n#define DENSITY_HEIGHT_SCALE_M  1200.0\n#define PLANET_RADIUS           6360e3\n#define ATMOSPHERE_RADIUS       6420e3\n#define SAMPLE_STEPS            10\n#define DENSITY_STEPS           4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:fi("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);vec4 color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\nvec4 color=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idy=u_grid_matrix[1][2];float S=u_grid_matrix[2][2];vec3 latLng=u_grid_matrix*vec3(a_pos,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=a_pos[0]*S;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;\n#ifdef GLOBE_POLES\nvec3 up_vector=normalize(globe_pos)*u_tile_up_scale;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:fi("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);\n#ifdef PROJECTION_GLOBE_VIEW\nfloat globe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));float horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nfloat horizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function di(e,t){const i=e.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let e of i)if(e=e.trim(),"#"===e[0]&&e.includes("if")&&!e.includes("endif")){e=e.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const i=e.split(" ");for(const e of i)t.includes(e)||t.push(e)}}function fi(e,t){const i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),n={},o=[...li];return di(e,o),di(t,o),{fragmentSource:e=e.replace(i,((e,t,i,r,o)=>(n[o]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nvarying ${i} ${r} ${o};\n#else\nuniform ${i} ${r} u_${o};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${o}\n    ${i} ${r} ${o} = u_${o};\n#endif\n`))),vertexSource:t=t.replace(i,((e,t,i,r,o)=>{const s="float"===r?"vec2":"vec4",a=o.match(/color/)?"color":s;return n[o]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${i} ${s} a_${o};\nvarying ${i} ${r} ${o};\n#else\nuniform ${i} ${r} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n    ${o} = a_${o};\n#else\n    ${i} ${r} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n    ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n    ${i} ${r} ${o} = u_${o};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\nattribute ${i} ${s} a_${o};\n#else\nuniform ${i} ${r} u_${o};\n#endif\n`:"vec4"===a?`\n#ifndef HAS_UNIFORM_u_${o}\n    ${i} ${r} ${o} = a_${o};\n#else\n    ${i} ${r} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n    ${i} ${r} ${o} = unpack_mix_${a}(a_${o}, u_${o}_t);\n#else\n    ${i} ${r} ${o} = u_${o};\n#endif\n`})),staticAttributes:r,usedDefines:o}}class mi{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(e,t,i,r,n,o,s){this.context=e;let a=this.boundPaintVertexBuffers.length!==r.length;for(let e=0;!a&&e<r.length;e++)this.boundPaintVertexBuffers[e]!==r[e]&&(a=!0);let l=this.boundDynamicVertexBuffers.length!==s.length;for(let e=0;!l&&e<s.length;e++)this.boundDynamicVertexBuffers[e]!==s[e]&&(l=!0);if(!e.extVertexArrayObject||!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==i||a||l||this.boundIndexBuffer!==n||this.boundVertexOffset!==o)this.freshBind(t,i,r,n,o,s);else{e.bindVertexArrayOES.set(this.vao);for(const e of s)e&&e.bind();n&&n.dynamicDraw&&n.bind()}}freshBind(e,t,i,r,n,o){let s;const a=e.numAttributes,l=this.context,c=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=r,this.boundVertexOffset=n,this.boundDynamicVertexBuffers=o;else{s=l.currentNumAttributes||0;for(let e=a;e<s;e++)c.disableVertexAttribArray(e)}t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,n);for(const t of i)t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,n);for(const t of o)t&&(t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,n));r&&r.bind(),l.currentNumAttributes=a}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function _i(t,i){const r=Math.pow(2,i.canonical.z),n=i.canonical.y;return[new e.MercatorCoordinate(0,n/r).toLngLat().lat,new e.MercatorCoordinate(0,(n+1)/r).toLngLat().lat]}function gi(t,i,r,n,o,s,a){const l=t.context,c=l.gl,h=r.fbo;if(!h)return;t.prepareDrawTile();const u=t.useProgram("hillshade");l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,h.colorAttachment.get());const p=((e,t,i,r)=>{const n=i.paint.get("hillshade-shadow-color"),o=i.paint.get("hillshade-highlight-color"),s=i.paint.get("hillshade-accent-color");let a=i.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===i.paint.get("hillshade-illumination-anchor")&&(a-=e.transform.angle);const l=!e.options.moving;return{u_matrix:r||e.transform.calculateProjMatrix(t.tileID.toUnwrapped(),l),u_image:0,u_latrange:_i(0,t.tileID),u_light:[i.paint.get("hillshade-exaggeration"),a],u_shadow:n,u_highlight:o,u_accent:s}})(t,r,n,t.terrain?i.projMatrix:null);t.prepareDrawProgram(l,u,i.toUnwrapped());const{tileBoundsBuffer:d,tileBoundsIndexBuffer:f,tileBoundsSegments:m}=t.getTileBoundsBuffers(r);u.draw(l,c.TRIANGLES,o,s,a,e.CullFaceMode.disabled,p,n.id,d,f,m)}function yi(t,i,r){if(!i.needsDEMTextureUpload)return;const n=t.context,o=n.gl;n.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||t.getTileTexture(r.stride);const s=r.getPixels();i.demTexture?i.demTexture.update(s,{premultiply:!1}):i.demTexture=new e.Texture(n,s,o.RGBA,{premultiply:!1}),i.needsDEMTextureUpload=!1}function xi(t,i,r,n,o,s){const a=t.context,l=a.gl;if(!i.dem)return;const c=i.dem;if(a.activeTexture.set(l.TEXTURE1),yi(t,i,c),!i.demTexture)return;i.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);const h=c.dim;a.activeTexture.set(l.TEXTURE0);let u=i.fbo;if(!u){const t=new e.Texture(a,{width:h,height:h,data:null},l.RGBA);t.bind(l.LINEAR,l.CLAMP_TO_EDGE),u=i.fbo=a.createFramebuffer(h,h,!0),u.colorAttachment.set(t.texture)}a.bindFramebuffer.set(u.framebuffer),a.viewport.set([0,0,h,h]);const{tileBoundsBuffer:p,tileBoundsIndexBuffer:d,tileBoundsSegments:f}=t.getMercatorTileBoundsBuffers();t.useProgram("hillshadePrepare").draw(a,l.TRIANGLES,n,o,s,e.CullFaceMode.disabled,((t,i)=>{const r=i.stride,n=e.create();return e.ortho(n,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(n,n,[0,-e.EXTENT,0]),{u_matrix:n,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:i.unpackVector}})(i.tileID,c),r.id,p,d,f),i.needsHillshadePrepare=!1}const vi=t=>({u_matrix:new e.UniformMatrix4f(t),u_image0:new e.Uniform1i(t),u_skirt_height:new e.Uniform1f(t)}),bi=(e,t)=>({u_matrix:e,u_image0:0,u_skirt_height:t}),wi=(e,t,i,r,n,o,s,a,l,c,h,u,p,d)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_normalize_matrix:Float32Array.from(r),u_merc_matrix:i,u_zoom_transition:n,u_merc_center:o,u_image0:0,u_frustum_tl:s,u_frustum_tr:a,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:h,u_globe_radius:u,u_viewport:p,u_grid_matrix:d?Float32Array.from(d):new Float32Array(9)});function Ti(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const Ei=new class{constructor(){this.operations={}}newMorphing(e,t,i,r,n){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==i.tileID.key&&(t.queued=i)}else this.operations[e]={startTime:r,phase:0,duration:n,from:t,to:i,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const i=this.operations[t];for(i.phase=(e-i.startTime)/i.duration;i.phase>=1||!this._validOp(i);)if(!this._nextOp(i,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},Si={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function Mi(e,t){const i=1<<e.z;return!t&&(0===e.x||e.x===i-1)||0===e.y||e.y===i-1}const Ii=e=>({u_matrix:e});function Ai(t,i,r,n,o){if(o>0){const s=e.exported.now(),a=(s-t.timeAdded)/o,l=i?(s-i.timeAdded)/o:-1,c=r.getSource(),h=n.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),u=!i||Math.abs(i.tileID.overscaledZ-h)>Math.abs(t.tileID.overscaledZ-h),p=u&&t.refreshedUponExpiration?1:e.clamp(u?a:1-l,0,1);return t.refreshedUponExpiration&&a>=1&&(t.refreshedUponExpiration=!1),i?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}class Ci extends e.SourceCache{constructor(e){const t={type:"raster-dem",maxzoom:e.transform.maxZoom},i=new k(je(),null),r=ke("mock-dem",t,i,e.style);super("mock-dem",r,!1),r.setEventedParent(this),this._sourceLoaded=!0}_loadTile(e,t){e.state="loaded",t(null)}}class zi extends e.SourceCache{constructor(e){const t=ke("proxy",{type:"geojson",maxzoom:e.transform.maxZoom},new k(je(),null),e.style);super("proxy",t,!1),t.setEventedParent(this),this.map=this.getSource().map=e,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(t,i,r){if(t.freezeTileCoverage)return;this.transform=t;const n=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce(((i,r)=>{if(i[r.key]="",!this._tiles[r.key]){const i=new e.Tile(r,this._source.tileSize*r.overscaleFactor(),t.tileZoom);i.state="loaded",this._tiles[r.key]=i}return i}),{});for(const e in this._tiles)e in n||(this.freeFBO(e),this._tiles[e].unloadVectorData(),delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const i=Object.values(t);this.renderCachePool.push(...i),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach((e=>e.fb.destroy())),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Pi extends e.OverscaledTileID{constructor(e,t,i){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=i}}class ki extends e.Elevation{constructor(t,i){super(),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[r,n,o]=function(t){const i=new e.StructArrayLayout4i8,r=new e.StructArrayLayout3ui6,n=131;i.reserve(17161),r.reserve(33800);const o=e.EXTENT/128,s=e.EXTENT+o/2,a=s+o;for(let t=-o;t<a;t+=o)for(let r=-o;r<a;r+=o){const n=r<0||r>s||t<0||t>s?24575:0,o=e.clamp(Math.round(r),0,e.EXTENT),a=e.clamp(Math.round(t),0,e.EXTENT);i.emplaceBack(o+n,a,o,a)}const l=(e,t)=>{const i=t*n+e;r.emplaceBack(i+1,i,i+n),r.emplaceBack(i+n,i+n+1,i+1)};for(let e=1;e<129;e++)for(let t=1;t<129;t++)l(t,e);return[0,129].forEach((e=>{for(let t=0;t<130;t++)l(t,e),l(e,t)})),[i,r,32768]}(),s=t.context;this.gridBuffer=s.createVertexBuffer(r,e.boundsAttributes.members),this.gridIndexBuffer=s.createIndexBuffer(n),this.gridSegments=e.SegmentVector.simpleSegment(0,0,r.length,n.length),this.gridNoSkirtSegments=e.SegmentVector.simpleSegment(0,0,r.length,o),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new zi(i.map),this.orthoMatrix=e.create(),e.ortho(this.orthoMatrix,0,e.EXTENT,0,e.EXTENT,0,1);const a=s.gl;this._overlapStencilMode=new e.StencilMode({func:a.GEQUAL,mask:255},0,255,a.KEEP,a.KEEP,a.REPLACE),this._previousZoom=t.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=i,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Ci(i.map)}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),e.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=e,this._checkRenderCacheEfficiency()}update(t,i,r){if(t&&t.terrain){this._style!==t&&(this.style=t),this.enabled=!0;const n=t.terrain.properties;this.sourceCache=0===t.terrain.drapeRenderMode?this._mockSourceCache:t._getSourceCache(n.get("source")),this._exaggeration=n.get("exaggeration");const o=()=>{this.sourceCache.used&&e.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const t=this.getScaledDemTileSize();this.sourceCache.update(i,t,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,o(),this._initializing=!0),o(),i.updateElevation(!r),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(i),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const t=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==t.efficiency&&e.warnOnce(`Terrain render cache efficiency is not optimal (${t.efficiency}%) and performance\n                may be affected negatively, consider placing all background, fill and line layers before layer\n                with id '${t.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._sourceCaches)this._style._sourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach((e=>e.fb.destroy())),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(t){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const i=this.proxySourceCache,r=this.painter.transform;this._initializing&&(this._initializing=0===r._centerAltitude&&-1===this.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(r.center),-1),this._emptyDEMTextureDirty=!this._initializing);const n=this.proxyCoords=i.getIds().map((e=>{const t=i.getTileByID(e).tileID;return t.projMatrix=r.calculateProjMatrix(t.toUnwrapped()),t}));!function(t,i){const r=i.transform.pointCoordinate(i.transform.getCameraPoint()),n=new e.pointGeometry(r.x,r.y);t.sort(((t,i)=>{if(i.overscaledZ-t.overscaledZ)return i.overscaledZ-t.overscaledZ;const r=new e.pointGeometry(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),o=new e.pointGeometry(i.canonical.x+(1<<i.canonical.z)*i.wrap,i.canonical.y),s=n.mult(1<<t.canonical.z);return s.x-=.5,s.y-=.5,s.distSqr(r)-s.distSqr(o)}))}(n,this.painter),this._previousZoom=r.zoom;const o=this.proxyToSource||{};this.proxyToSource={},n.forEach((e=>{this.proxyToSource[e.key]={}})),this.terrainTileForTile={};const s=this._style._sourceCaches;for(const e in s){const i=s[e];if(!i.used)continue;if(i!==this.sourceCache&&this.resetTileLookupCache(i.id),this._setupProxiedCoordsForOrtho(i,t[e],o),i.usedForTerrain)continue;const r=t[e];i.getSource().reparseOverscaled&&this._assignTerrainTiles(r)}this.proxiedCoords[i.id]=n.map((e=>new Pi(e,e.key,this.orthoMatrix))),this._assignTerrainTiles(n),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1,this._updateTimestamp=e.exported.now();const a={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const i=t.tileID.key;i in a||(this._visibleDemTiles.push(t),a[i]=i)}}_assignTerrainTiles(e){this._initializing||e.forEach((e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)}))}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const i in this.terrainTileForTile){const r=this.terrainTileForTile[i],n=r.dem;!n||r.demTexture&&!r.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),yi(this.painter,r,n))}}_prepareDemTileUniforms(e,t,i,r){if(!t||null==t.demTexture)return!1;const n=e.tileID.canonical,o=Math.pow(2,t.tileID.canonical.z-n.z),s=r||"";return i[`u_dem_tl${s}`]=[n.x*o%1,n.y*o%1],i[`u_dem_scale${s}`]=o,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const t=this.painter.context,i=t.gl;if(!this._emptyDepthBufferTexture){const r=new e.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new e.Texture(t,r,i.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let e=0;const t=this._visibleDemTiles.reduce(((t,i)=>{if(!i.dem)return t;const r=i.dem.tree.minimums[0];return r>0&&e++,t+r}),0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,i=t.gl;t.activeTexture.set(i.TEXTURE2);const r=this._getLoadedAreaMinimum(),n=new e.RGBAImage({width:1,height:1},new Uint8Array(e.DEMData.pack(r,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let o=this._emptyDEMTexture;return o?o.update(n,{premultiply:!1}):o=this._emptyDEMTexture=new e.Texture(t,n,i.RGBA,{premultiply:!1}),o}setupElevationDraw(t,i,r){const n=this.painter.context,o=n.gl,s=(a=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:e.DEMData.getUnpackVector(a),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0,u_tile_tl_up:[0,0,1],u_tile_tr_up:[0,0,1],u_tile_br_up:[0,0,1],u_tile_bl_up:[0,0,1],u_tile_up_scale:1});var a;s.u_dem_size=this.sourceCache.getSource().tileSize,s.u_exaggeration=this.exaggeration();const l=this.painter.transform,c=l.projection,h=t.tileID.canonical;s.u_tile_tl_up=c.upVector(h,0,0),s.u_tile_tr_up=c.upVector(h,e.EXTENT,0),s.u_tile_br_up=c.upVector(h,e.EXTENT,e.EXTENT),s.u_tile_bl_up=c.upVector(h,0,e.EXTENT),s.u_tile_up_scale=r&&r.useDenormalizedUpVectorScale?e.GLOBE_METERS_TO_ECEF:c.upVectorScale(h,l.center.lat,l.worldSize).metersToTile;let u=null,p=null,d=1;if(r&&r.morphing&&this._useVertexMorphing){const e=r.morphing.srcDemTile,i=r.morphing.dstDemTile;d=r.morphing.phase,e&&i&&(this._prepareDemTileUniforms(t,e,s,"_prev")&&(p=e),this._prepareDemTileUniforms(t,i,s)&&(u=i))}if(p&&u?(n.activeTexture.set(o.TEXTURE2),u.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),n.activeTexture.set(o.TEXTURE4),p.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE,o.NEAREST),s.u_dem_lerp=d):(u=this.terrainTileForTile[t.tileID.key],n.activeTexture.set(o.TEXTURE2),(this._prepareDemTileUniforms(t,u,s)?u.demTexture:this.emptyDEMTexture).bind(o.NEAREST,o.CLAMP_TO_EDGE)),n.activeTexture.set(o.TEXTURE3),r&&r.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),this._depthFBO&&(s.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),s.u_depth_size_inv=[1,1]),r&&r.useMeterToDem&&u){const t=(1<<u.tileID.canonical.z)*e.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;s.u_meter_to_dem=t}r&&r.labelPlaneMatrixInv&&(s.u_label_plane_matrix_inv=r.labelPlaneMatrixInv),i.setTerrainUniformValues(n,s)}renderToBackBuffer(t){const i=this.painter,r=this.painter.context;0!==t.length&&(r.bindFramebuffer.set(null),r.viewport.set([0,0,i.width,i.height]),i.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(t,i,r,n,o){if("globe"===t.transform.projection.name)!function(t,i,r,n,o){const s=t.context,a=s.gl;let l,c;const h=t.options.showTerrainWireframe?2:0,u=t.transform,p=e.globeUseCustomAntiAliasing(t,s,u),d=(e,i)=>{if(c===e)return;const r=[Si[e],"PROJECTION_GLOBE_VIEW"];p&&r.push("CUSTOM_ANTIALIASING"),i&&r.push(Si[h]),l=t.useProgram("globeRaster",null,r),c=e},f=t.colorModeForRenderPass(),m=new e.DepthMode(a.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);Ei.update(o);const _=e.calculateGlobeMercatorMatrix(u),g=[e.mercatorXfromLng(u.center.lng),e.mercatorYfromLat(u.center.lat)],y=h?[!1,!0]:[!1],x=t.globeSharedBuffers,v=[u.width*e.exported.devicePixelRatio,u.height*e.exported.devicePixelRatio],b=Float32Array.from(u.globeMatrix),w={useDenormalizedUpVectorScale:!0};if(y.forEach((h=>{c=-1;const p=h?a.LINES:a.TRIANGLES;for(const c of n){const n=r.getTile(c),y=e.StencilMode.disabled,T=i.prevTerrainTileForTile[c.key],E=i.terrainTileForTile[c.key];Ti(T,E)&&Ei.newMorphing(c.key,T,E,o,250),s.activeTexture.set(a.TEXTURE0),n.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);const S=Ei.getMorphValuesForProxy(c.key),M=S?1:0;S&&e.extend$1(w,{morphing:{srcDemTile:S.from,dstDemTile:S.to,phase:e.easeCubicInOut(S.phase)}});const I=e.tileCornersToBounds(c.canonical),A=e.getLatitudinalLod(I.getCenter().lat),C=e.getGridMatrix(c.canonical,I,A),z=e.globeNormalizeECEF(e.globeTileBounds(c.canonical)),P=wi(u.projMatrix,b,_,z,e.globeToMercatorTransition(u.zoom),g,u.frustumCorners.TL,u.frustumCorners.TR,u.frustumCorners.BR,u.frustumCorners.BL,u.globeCenterInViewSpace,u.globeRadius,v,C);if(d(M,h),i.setupElevationDraw(n,l,w),t.prepareDrawProgram(s,l,c.toUnwrapped()),x){const[i,r,n]=h?x.getWirefameBuffers(t.context,A):x.getGridBuffers(A);l.draw(s,p,m,y,f,e.CullFaceMode.backCCW,P,"globe_raster",i,r,n)}}})),x){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];p&&o.push("CUSTOM_ANTIALIASING"),l=t.useProgram("globeRaster",null,o);for(const o of n){const{x:n,y:c,z:h}=o.canonical,p=0===c,d=c===(1<<h)-1,[_,y,b,T]=x.getPoleBuffers(h);if(T&&(p||d)){const c=r.getTile(o);s.activeTexture.set(a.TEXTURE0),c.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);let x=e.globePoleMatrixForTile(h,n,u);const E=e.globeNormalizeECEF(e.globeTileBounds(o.canonical)),S=(t,i)=>t.draw(s,a.TRIANGLES,m,e.StencilMode.disabled,f,e.CullFaceMode.disabled,wi(u.projMatrix,x,x,E,0,g,u.frustumCorners.TL,u.frustumCorners.TR,u.frustumCorners.BR,u.frustumCorners.BL,u.globeCenterInViewSpace,u.globeRadius,v),"globe_pole_raster",i,b,T);i.setupElevationDraw(c,l,w),t.prepareDrawProgram(s,l,o.toUnwrapped()),p&&S(l,_),d&&(x=e.scale(e.create(),x,[1,-1,1]),S(l,y))}}}}(t,i,r,n,o);else{const s=t.context,a=s.gl;let l,c;const h=t.options.showTerrainWireframe?2:0,u=(e,i)=>{if(c===e)return;const r=[Si[e]];i&&r.push(Si[h]),l=t.useProgram("terrainRaster",null,r),c=e},p=t.colorModeForRenderPass(),d=new e.DepthMode(a.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);Ei.update(o);const f=t.transform,m=6*Math.pow(1.5,22-f.zoom)*i.exaggeration();(h?[!1,!0]:[!1]).forEach((h=>{c=-1;const _=h?a.LINES:a.TRIANGLES,[g,y]=h?i.getWirefameBuffer():[i.gridIndexBuffer,i.gridSegments];for(const c of n){const n=r.getTile(c),x=e.StencilMode.disabled,v=i.prevTerrainTileForTile[c.key],b=i.terrainTileForTile[c.key];Ti(v,b)&&Ei.newMorphing(c.key,v,b,o,250),s.activeTexture.set(a.TEXTURE0),n.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);const w=Ei.getMorphValuesForProxy(c.key),T=w?1:0;let E;w&&(E={morphing:{srcDemTile:w.from,dstDemTile:w.to,phase:e.easeCubicInOut(w.phase)}});const S=bi(c.projMatrix,Mi(c.canonical,f.renderWorldCopies)?m/10:m);u(T,h),i.setupElevationDraw(n,l,E),t.prepareDrawProgram(s,l,c.toUnwrapped()),l.draw(s,_,d,x,p,e.CullFaceMode.backCCW,S,"terrain_raster",i.gridBuffer,g,y)}}))}}(i,this,this.proxySourceCache,t,this._updateTimestamp),this.renderingToTexture=!0,i.gpuTimingDeferredRenderEnd(),t.splice(0,t.length))}renderBatch(t){if(0===this._drapedRenderBatches.length)return t+1;this.renderingToTexture=!0;const i=this.painter,r=this.painter.context,n=this.proxySourceCache,o=this.proxiedCoords[n.id],s=this._drapedRenderBatches.shift(),a=[],l=i.style.order;let c=0;for(const h of o){const o=n.getTileByID(h.proxyTileKey),u=n.proxyCachedFBO[h.key]?n.proxyCachedFBO[h.key][t]:void 0,p=void 0!==u?n.renderCache[u]:this.pool[c++],d=void 0!==u;if(o.texture=p.tex,d&&!p.dirty){a.push(o.tileID);continue}let f;r.bindFramebuffer.set(p.fb.framebuffer),this.renderedToTile=!1,p.dirty&&(r.clear({color:e.Color.transparent,stencil:0}),p.dirty=!1);for(let e=s.start;e<=s.end;++e){const t=i.style._layers[l[e]];if(t.isHidden(i.transform.zoom))continue;const n=i.style._getLayerSourceCache(t),o=n?this.proxyToSource[h.key][n.id]:[h];if(!o)continue;const s=o;r.viewport.set([0,0,p.fb.width,p.fb.height]),f!==(n?n.id:null)&&(this._setupStencil(p,o,t,n),f=n?n.id:null),i.renderLayer(i,n,t,s)}this.renderedToTile?(p.dirty=!0,a.push(o.tileID)):d||--c,5===c&&(c=0,this.renderToBackBuffer(a))}return this.renderToBackBuffer(a),this.renderingToTexture=!1,r.bindFramebuffer.set(null),r.viewport.set([0,0,i.width,i.height]),s.end+1}postRender(){}renderCacheEfficiency(e){const t=e.order.length;if(0===t)return{efficiency:100};let i,r=0,n=0,o=!1;for(let s=0;s<t;++s){const t=e._layers[e.order[s]];this._style.isLayerDraped(t)?(o&&++r,++n):o||(o=!0,i=t.id)}return 0===n?{efficiency:100}:{efficiency:100*(1-r/n),firstUndrapedLayer:i}}getMinElevationBelowMSL(){let e=0;return this._visibleDemTiles.filter((e=>e.dem)).forEach((t=>{e=Math.min(e,t.dem.tree.minimums[0])})),0===e?e:(e-30)*this._exaggeration}raycast(e,t,i){if(!this._visibleDemTiles)return null;const r=this._visibleDemTiles.filter((e=>e.dem)).map((r=>{const n=r.tileID,o=1<<n.overscaledZ,{x:s,y:a}=n.canonical,l=s/o,c=(s+1)/o,h=a/o,u=(a+1)/o;return{minx:l,miny:h,maxx:c,maxy:u,t:r.dem.tree.raycastRoot(l,h,c,u,e,t,i),tile:r}}));r.sort(((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE)));for(const n of r){if(null==n.t)return null;const r=n.tile.dem.tree.raycast(n.minx,n.miny,n.maxx,n.maxy,e,t,i);if(null!=r)return r}return null}_createFBO(){const t=this.painter.context,i=t.gl,r=this.drapeBufferSize;t.activeTexture.set(i.TEXTURE0);const n=new e.Texture(t,{width:r[0],height:r[1],data:null},i.RGBA);n.bind(i.LINEAR,i.CLAMP_TO_EDGE);const o=t.createFramebuffer(r[0],r[1],!1);return o.colorAttachment.set(n.texture),o.depthAttachment=new Ee(t,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=t.createRenderbuffer(t.gl.DEPTH_STENCIL,r[0],r[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),t.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),t.extTextureFilterAnisotropic&&!t.extTextureFilterAnisotropicForceOff&&i.texParameterf(i.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:o,tex:n,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const e in this._style._sourceCaches)if(this._style._sourceCaches[e].hasTransition())return!0;return this._style.order.some((e=>{const t=this._style._layers[e],i=t.isHidden(this.painter.transform.zoom),r=t.getCrossfadeParameters(),n=!!r&&1!==r.t,o=t.hasTransition();return"custom"!==t.type&&!i&&(n||o)}))}_clearRasterFadeFromRenderCache(){let e=!1;for(const t in this._style._sourceCaches)if(this._style._sourceCaches[t]._source instanceof Ie){e=!0;break}if(e)for(let e=0;e<this._style.order.length;++e){const t=this._style._layers[this._style.order[e]],i=t.isHidden(this.painter.transform.zoom),r=this._style._getLayerSourceCache(t);if("raster"!==t.type||i||!r)continue;const n=t.paint.get("raster-fade-duration");for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][r.id];if(t)for(const e of t){const t=Ai(r.getTile(e),r.findLoadedParent(e,0),r,this.painter.transform,n);(1!==t.opacity||0!==t.mix)&&this._clearRenderCacheForTile(r.id,e)}}}}_setupDrapedRenderBatches(){const e=this._style.order,t=e.length;if(0===t)return;const i=[];let r,n=0,o=this._style._layers[e[n]];for(;!this._style.isLayerDraped(o)&&o.isHidden(this.painter.transform.zoom)&&++n<t;)o=this._style._layers[e[n]];for(;n<t;++n){const t=this._style._layers[e[n]];t.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(t)?void 0===r&&(r=n):void 0!==r&&(i.push({start:r,end:n-1}),r=void 0))}void 0!==r&&i.push({start:r,end:n-1}),this._drapedRenderBatches=i}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let i=0;i<e.length;++i){const r=Object.values(e[i]);t.renderCachePool.push(...r)}}return}this._clearRasterFadeFromRenderCache();const i=this.proxyCoords,r=this._tilesDirty;for(let n=i.length-1;n>=0;n--){const o=i[n];if(t.getTileByID(o.key),void 0!==t.proxyCachedFBO[o.key]){const i=e[o.key],n=this.proxyToSource[o.key];let s=0;for(const e in n){const t=n[e],o=i[e];if(!o||o.length!==t.length||t.some(((t,i)=>t!==o[i]||r[e]&&r[e].hasOwnProperty(t.key)))){s=-1;break}++s}for(const e in t.proxyCachedFBO[o.key])t.renderCache[t.proxyCachedFBO[o.key][e]].dirty=s<0||s!==Object.values(i).length}}const n=[...this._drapedRenderBatches];n.sort(((e,t)=>t.end-t.start-(e.end-e.start)));for(const e of n)for(const r of i){if(t.proxyCachedFBO[r.key])continue;let i=t.renderCachePool.pop();void 0===i&&t.renderCache.length<50&&(i=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==i&&(t.proxyCachedFBO[r.key]={},t.proxyCachedFBO[r.key][e.start]=i,t.renderCache[i].dirty=!0)}this._tilesDirty={}}_setupStencil(e,t,i,r){if(!r||!this._sourceTilesOverlap[r.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const n=this.painter.context,o=n.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let s;if(i.isTileClipped())s=t.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);s=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+s>255&&(n.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=s,this._overlapStencilMode.ref=this._stencilRef,i.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(t){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[t.key]),this._overlapStencilMode):e.StencilMode.disabled}_renderTileClippingMasks(t,i){const r=this.painter,n=this.painter.context,o=n.gl;r._tileClippingMaskIDs={},n.setColorMode(e.ColorMode.disabled),n.setDepthMode(e.DepthMode.disabled);const s=r.useProgram("clippingMask");for(const a of t){const t=r._tileClippingMaskIDs[a.key]=--i;s.draw(n,o.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:o.ALWAYS,mask:0},t,255,o.KEEP,o.KEEP,o.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,Ii(a.projMatrix),"$clipping",r.tileExtentBuffer,r.quadTriangleIndexBuffer,r.tileExtentSegments)}}pointCoordinate(t){const i=this.painter.transform;if(t.x<0||t.x>i.width||t.y<0||t.y>i.height)return null;const r=[t.x,t.y,1,1];e.transformMat4$1(r,r,i.pixelMatrixInverse),e.scale$1(r,r,1/r[3]),r[0]/=i.worldSize,r[1]/=i.worldSize;const n=i._camera.position,o=e.mercatorZfromAltitude(1,i.center.lat),s=[n[0],n[1],n[2]/o,0],a=e.subtract([],r.slice(0,3),s);e.normalize(a,a);const l=this.raycast(s,a,this._exaggeration);return null!==l&&l?(e.scaleAndAdd(s,s,a,l),s[3]=s[2],s[2]*=o,s):null}drawDepth(){const t=this.painter,i=t.context,r=this.proxySourceCache,n=Math.ceil(t.width),o=Math.ceil(t.height);if(!this._depthFBO||this._depthFBO.width===n&&this._depthFBO.height===o||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const t=i.gl,r=i.createFramebuffer(n,o,!0);i.activeTexture.set(t.TEXTURE0);const s=new e.Texture(i,{width:n,height:o,data:null},t.RGBA);s.bind(t.NEAREST,t.CLAMP_TO_EDGE),r.colorAttachment.set(s.texture);const a=i.createRenderbuffer(i.gl.DEPTH_COMPONENT16,n,o);r.depthAttachment.set(a),this._depthFBO=r,this._depthTexture=s}i.bindFramebuffer.set(this._depthFBO.framebuffer),i.viewport.set([0,0,n,o]),function(t,i,r,n){if("globe"===t.transform.projection.name)return;const o=t.context,s=o.gl;o.clear({depth:1});const a=t.useProgram("terrainDepth"),l=new e.DepthMode(s.LESS,e.DepthMode.ReadWrite,t.depthRangeFor3D);for(const t of n){const n=r.getTile(t),c=bi(t.projMatrix,0);i.setupElevationDraw(n,a),a.draw(o,s.TRIANGLES,l,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.backCCW,c,"terrain_depth",i.gridBuffer,i.gridIndexBuffer,i.gridNoSkirtSegments)}}(t,this,r,this.proxyCoords)}_setupProxiedCoordsForOrtho(e,t,i){if(e.getSource()instanceof ze)return this._setupProxiedCoordsForImageSource(e,t,i);this._findCoveringTileCache[e.id]=this._findCoveringTileCache[e.id]||{};const r=this.proxiedCoords[e.id]=[],n=this.proxyCoords;for(let t=0;t<n.length;t++){const o=n[t],s=this._findTileCoveringTileID(o,e);if(s){const t=this._createProxiedId(o,s,i[o.key]&&i[o.key][e.id]);r.push(t),this.proxyToSource[o.key][e.id]=[t]}}let o=!1;for(let n=0;n<t.length;n++){const s=e.getTile(t[n]);if(!s||!s.hasData())continue;const a=this._findTileCoveringTileID(s.tileID,this.proxySourceCache);if(a&&a.tileID.canonical.z!==s.tileID.canonical.z){const t=this.proxyToSource[a.tileID.key][e.id],n=this._createProxiedId(a.tileID,s,i[a.tileID.key]&&i[a.tileID.key][e.id]);t?t.splice(t.length-1,0,n):this.proxyToSource[a.tileID.key][e.id]=[n],r.push(n),o=!0}}this._sourceTilesOverlap[e.id]=o}_setupProxiedCoordsForImageSource(t,i,r){if(!t.getSource().loaded())return;const n=this.proxiedCoords[t.id]=[],o=this.proxyCoords,s=t.getSource(),a=new e.pointGeometry(s.tileID.x,s.tileID.y)._div(1<<s.tileID.z),l=s.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce(((e,t)=>(e.min.x=Math.min(e.min.x,t.x-a.x),e.min.y=Math.min(e.min.y,t.y-a.y),e.max.x=Math.max(e.max.x,t.x-a.x),e.max.y=Math.max(e.max.y,t.y-a.y),e)),{min:new e.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.pointGeometry(-Number.MAX_VALUE,-Number.MAX_VALUE)}),c=(t,i)=>{const r=t.wrap+t.canonical.x/(1<<t.canonical.z),n=t.canonical.y/(1<<t.canonical.z),o=e.EXTENT/(1<<t.canonical.z),s=i.wrap+i.canonical.x/(1<<i.canonical.z),a=i.canonical.y/(1<<i.canonical.z);return r+o<s+l.min.x||r>s+l.max.x||n+o<a+l.min.y||n>a+l.max.y};for(let e=0;e<o.length;e++){const s=o[e];for(let e=0;e<i.length;e++){const o=t.getTile(i[e]);if(!o||!o.hasData())continue;if(c(s,o.tileID))continue;const a=this._createProxiedId(s,o,r[s.key]&&r[s.key][t.id]),l=this.proxyToSource[s.key][t.id];l?l.push(a):this.proxyToSource[s.key][t.id]=[a],n.push(a)}}}_createProxiedId(t,i,r){let n=this.orthoMatrix;if(r){const e=r.find((e=>e.key===i.tileID.key));if(e)return e}if(i.tileID.key!==t.key){const r=t.canonical.z-i.tileID.canonical.z;let o,s,a;n=e.create();const l=i.tileID.wrap-t.wrap<<t.overscaledZ;r>0?(o=e.EXTENT>>r,s=o*((i.tileID.canonical.x<<r)-t.canonical.x+l),a=o*((i.tileID.canonical.y<<r)-t.canonical.y)):(o=e.EXTENT<<-r,s=e.EXTENT*(i.tileID.canonical.x-(t.canonical.x+l<<-r)),a=e.EXTENT*(i.tileID.canonical.y-(t.canonical.y<<-r))),e.ortho(n,0,o,0,o,0,1),e.translate(n,n,[s,a,0])}return new Pi(i.tileID,t.key,n)}_findTileCoveringTileID(t,i){let r=i.getTile(t);if(r&&r.hasData())return r;const n=this._findCoveringTileCache[i.id],o=n[t.key];if(r=o?i.getTileByID(o):null,r&&r.hasData()||null===o)return r;let s=r?r.tileID:t,a=s.overscaledZ;const l=i.getSource().minzoom,c=[];if(!o){const n=i.getSource().maxzoom;if(t.canonical.z>=n){const r=t.canonical.z-n;i.getSource().reparseOverscaled?(a=Math.max(t.canonical.z+2,i.transform.tileZoom),s=new e.OverscaledTileID(a,t.wrap,n,t.canonical.x>>r,t.canonical.y>>r)):0!==r&&(a=n,s=new e.OverscaledTileID(a,t.wrap,n,t.canonical.x>>r,t.canonical.y>>r))}s.key!==t.key&&(c.push(s.key),r=i.getTile(s))}const h=e=>{c.forEach((t=>{n[t]=e})),c.length=0};for(a-=1;a>=l&&(!r||!r.hasData());a--){r&&h(r.tileID.key);const e=s.calculateScaledKey(a);if(r=i.getTileByID(e),r&&r.hasData())break;const t=n[e];if(null===t)break;void 0===t?c.push(e):r=i.getTileByID(t)}return h(r?r.tileID.key:null),r&&r.hasData()?r:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let i=this._tilesDirty[e];i||(i=this._tilesDirty[e]={}),i[t.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const t=function(t){let i=0;const r=new e.StructArrayLayout2ui4,n=131;for(let e=1;e<129;e++){for(let t=1;t<129;t++)i=e*n+t,r.emplaceBack(i,i+1),r.emplaceBack(i,i+n),r.emplaceBack(i+1,i+n),128===e&&r.emplaceBack(i+n,i+n+1);r.emplaceBack(i+1,i+1+n)}return r}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(t),this.wireframeSegments=e.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,t.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class Di{static cacheKey(e,t,i,r){let n=`${t}${r?r.cacheKey:""}`;for(const t of i)e.usedDefines.includes(t)&&(n+=`/${t}`);return n}constructor(t,i,r,n,o,s){const a=t.gl;this.program=a.createProgram();const l=function(e){const t=[];for(let i=0;i<e.length;i++){if(null===e[i])continue;const r=e[i].split(" ");t.push(r.pop())}return t}(r.staticAttributes),c=n?n.getBinderAttributes():[],h=l.concat(c);let u=n?n.defines():[];u=u.concat(s.map((e=>`#define ${e}`)));const p=u.concat(t.extStandardDerivatives?"#extension GL_OES_standard_derivatives : enable\n".concat(ui):ui,ui,hi,ci.fragmentSource,ai.fragmentSource,r.fragmentSource).join("\n"),d=u.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",hi,ci.vertexSource,ai.vertexSource,si.vertexSource,r.vertexSource).join("\n"),f=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())return void(this.failedToCreate=!0);a.shaderSource(f,p),a.compileShader(f),a.attachShader(this.program,f);const m=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(m,d),a.compileShader(m),a.attachShader(this.program,m),this.attributes={},this.numAttributes=h.length;for(let e=0;e<this.numAttributes;e++)h[e]&&(a.bindAttribLocation(this.program,e,h[e]),this.attributes[h[e]]=e);a.linkProgram(this.program),a.deleteShader(m),a.deleteShader(f),this.fixedUniforms=o(t),this.binderUniforms=n?n.getUniforms(t):[],-1!==s.indexOf("TERRAIN")&&(this.terrainUniforms=(t=>({u_dem:new e.Uniform1i(t),u_dem_prev:new e.Uniform1i(t),u_dem_unpack:new e.Uniform4f(t),u_dem_tl:new e.Uniform2f(t),u_dem_scale:new e.Uniform1f(t),u_dem_tl_prev:new e.Uniform2f(t),u_dem_scale_prev:new e.Uniform1f(t),u_dem_size:new e.Uniform1f(t),u_dem_lerp:new e.Uniform1f(t),u_exaggeration:new e.Uniform1f(t),u_depth:new e.Uniform1i(t),u_depth_size_inv:new e.Uniform2f(t),u_meter_to_dem:new e.Uniform1f(t),u_label_plane_matrix_inv:new e.UniformMatrix4f(t),u_tile_tl_up:new e.Uniform3f(t),u_tile_tr_up:new e.Uniform3f(t),u_tile_br_up:new e.Uniform3f(t),u_tile_bl_up:new e.Uniform3f(t),u_tile_up_scale:new e.Uniform1f(t)}))(t)),-1!==s.indexOf("FOG")&&(this.fogUniforms=(t=>({u_fog_matrix:new e.UniformMatrix4f(t),u_fog_range:new e.Uniform2f(t),u_fog_color:new e.Uniform4f(t),u_fog_horizon_blend:new e.Uniform1f(t),u_fog_temporal_offset:new e.Uniform1f(t),u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_globe_pos:new e.Uniform3f(t),u_globe_radius:new e.Uniform1f(t),u_globe_transition:new e.Uniform1f(t),u_is_globe:new e.Uniform1i(t),u_viewport:new e.Uniform2f(t)}))(t))}}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const i=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e].set(this.program,e,t[e])}}setFogUniformValues(e,t){if(!this.fogUniforms)return;const i=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e].set(this.program,e,t[e])}}draw(e,t,i,r,n,o,s,a,l,c,h,u,p,d,f){const m=e.gl;if(this.failedToCreate)return;e.program.set(this.program),e.setDepthMode(i),e.setStencilMode(r),e.setColorMode(n),e.setCullFace(o);for(const e of Object.keys(this.fixedUniforms))this.fixedUniforms[e].set(this.program,e,s[e]);d&&d.setUniforms(this.program,e,this.binderUniforms,u,{zoom:p});const _={[m.LINES]:2,[m.TRIANGLES]:3,[m.LINE_STRIP]:1}[t];for(const i of h.get()){const r=i.vaos||(i.vaos={});(r[a]||(r[a]=new mi)).bind(e,this,l,d?d.getPaintVertexBuffers():[],c,i.vertexOffset,f||[]),m.drawElements(t,i.primitiveLength*_,m.UNSIGNED_SHORT,i.primitiveOffset*_*2)}}}function Li(e,t,i){const r=1/D(i,1,t.transform.tileZoom),n=Math.pow(2,i.tileID.overscaledZ),o=i.tileSize*Math.pow(2,t.transform.tileZoom)/n,s=o*(i.tileID.canonical.x+i.tileID.wrap*n),a=o*i.tileID.canonical.y;return{u_image:0,u_texsize:i.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[s>>16,a>>16],u_pixel_coord_lower:[65535&s,65535&a]}}const Bi=e.create(),Ri=(t,i,r,n,o,s,a,l,c,h,u)=>{const p=i.style.light,d=p.properties.get("position"),f=[d.x,d.y,d.z],m=e.create$1();"viewport"===p.properties.get("anchor")&&(e.fromRotation(m,-i.transform.angle),e.transformMat3(f,f,m));const _=p.properties.get("color"),g=i.transform,y={u_matrix:t,u_lightpos:f,u_lightintensity:p.properties.get("intensity"),u_lightcolor:[_.r,_.g,_.b],u_vertical_gradient:+r,u_opacity:n,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Bi,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:o,u_edge_radius:s};return"globe"===g.projection.name&&(y.u_tile_id=[a.canonical.x,a.canonical.y,1<<a.canonical.z],y.u_zoom_transition=c,y.u_inv_rot_matrix=u,y.u_merc_center=h,y.u_up_dir=g.projection.upVector(new e.CanonicalTileID(0,0,0),h[0]*e.EXTENT,h[1]*e.EXTENT),y.u_height_lift=l),y},Fi=(t,i,r,n,o,s,a,l,c,h,u,p,d)=>{const f=Ri(t,i,r,n,o,s,a,h,u,p,d),m={u_height_factor:-Math.pow(2,a.overscaledZ)/c.tileSize/8};return e.extend(f,Li(l,i,c),m)},Oi=e=>({u_matrix:e}),Ui=(t,i,r,n)=>e.extend(Oi(t),Li(r,i,n)),Vi=(e,t)=>({u_matrix:e,u_world:t}),ji=(t,i,r,n,o)=>e.extend(Ui(t,i,r,n),{u_world:o}),Ni=e.create(),Gi=(t,i,r,n,o,s)=>{const a=t.transform,l="globe"===a.projection.name;let c;if("map"===s.paint.get("circle-pitch-alignment"))if(l){const t=e.globePixelsToTileUnits(a.zoom,i.canonical)*a._pixelsPerMercatorPixel;c=Float32Array.from([t,0,0,t])}else c=a.calculatePixelsToTileUnitsMatrix(r);else c=new Float32Array([a.pixelsToGLUnits[0],0,0,a.pixelsToGLUnits[1]]);const h={u_camera_to_center_distance:a.cameraToCenterDistance,u_matrix:t.translatePosMatrix(i.projMatrix,r,s.paint.get("circle-translate"),s.paint.get("circle-translate-anchor")),u_device_pixel_ratio:e.exported.devicePixelRatio,u_extrude_scale:c,u_inv_rot_matrix:Ni,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(l){h.u_inv_rot_matrix=n,h.u_merc_center=o,h.u_tile_id=[i.canonical.x,i.canonical.y,1<<i.canonical.z],h.u_zoom_transition=e.globeToMercatorTransition(a.zoom);const t=o[0]*e.EXTENT,r=o[1]*e.EXTENT;h.u_up_dir=a.projection.upVector(new e.CanonicalTileID(0,0,0),t,r)}return h},Zi=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t},$i=(t,i,r,n)=>{const o=e.EXTENT/r.tileSize;return{u_matrix:t,u_camera_to_center_distance:i.getCameraToCenterDistance(n),u_extrude_scale:[i.pixelsToGLUnits[0]/o,i.pixelsToGLUnits[1]/o]}},qi=(e,t,i=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:i}),Xi=e.create(),Wi=(t,i,r,n,o,s,a)=>{const l=t.transform,c="globe"===l.projection.name,h=c?e.globePixelsToTileUnits(l.zoom,i.canonical)*l._pixelsPerMercatorPixel:D(r,1,s),u={u_matrix:i.projMatrix,u_extrude_scale:h,u_intensity:a,u_inv_rot_matrix:Xi,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){u.u_inv_rot_matrix=n,u.u_merc_center=o,u.u_tile_id=[i.canonical.x,i.canonical.y,1<<i.canonical.z],u.u_zoom_transition=e.globeToMercatorTransition(l.zoom);const t=o[0]*e.EXTENT,r=o[1]*e.EXTENT;u.u_up_dir=l.projection.upVector(new e.CanonicalTileID(0,0,0),t,r)}return u},Hi=(e,t,i,r,n,o,s,a)=>{const l=e.transform,c=l.calculatePixelsToTileUnitsMatrix(t),h={u_matrix:Ji(e,t,i,n),u_pixels_to_tile_units:c,u_device_pixel_ratio:s,u_units_to_pixels:[1/l.pixelsToGLUnits[0],1/l.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:o,u_texsize:[0,0],u_scale:[0,0,0],u_mix:0,u_alpha_discard_threshold:0,u_trim_offset:a};if(Qi(i)){const i=Ki(t,e.transform);h.u_texsize=t.lineAtlasTexture.size,h.u_scale=[i,r.fromScale,r.toScale],h.u_mix=r.t}return h},Yi=(e,t,i,r,n,o)=>{const s=e.transform,a=Ki(t,s);return{u_matrix:Ji(e,t,i,n),u_texsize:t.imageAtlasTexture.size,u_pixels_to_tile_units:s.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:o,u_image:0,u_scale:[a,r.fromScale,r.toScale],u_fade:r.t,u_units_to_pixels:[1/s.pixelsToGLUnits[0],1/s.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Ki(e,t){return 1/D(e,1,t.tileZoom)}function Ji(e,t,i,r){return e.translatePosMatrix(r||t.tileID.projMatrix,t,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}function Qi(e){const t=e.paint.get("line-dasharray").value;return t.value||"constant"!==t.kind}const er=(e,t,i,r,n,o)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:i,u_fade_t:r.mix,u_opacity:r.opacity*n.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:n.paint.get("raster-brightness-min"),u_brightness_high:n.paint.get("raster-brightness-max"),u_saturation_factor:(a=n.paint.get("raster-saturation"),a>0?1-1/(1.001-a):-a),u_contrast_factor:(s=n.paint.get("raster-contrast"),s>0?1/(1-s):1+s),u_spin_weights:tr(n.paint.get("raster-hue-rotate")),u_perspective_transform:o};var s,a};function tr(e){e*=Math.PI/180;const t=Math.sin(e),i=Math.cos(e);return[(2*i+1)/3,(-Math.sqrt(3)*t-i+1)/3,(Math.sqrt(3)*t-i+1)/3]}const ir=e.create(),rr=(t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_)=>{const g=o.transform,y={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:i?i.uSizeT:0,u_size:i?i.uSize:0,u_camera_to_center_distance:g.cameraToCenterDistance,u_rotate_symbol:+r,u_aspect_ratio:g.width/g.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:a,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+n,u_texsize:h,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:ir,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:ir,u_up_vector:[0,-1,0]};return"globe"===_.name&&(y.u_tile_id=[u.canonical.x,u.canonical.y,1<<u.canonical.z],y.u_zoom_transition=p,y.u_inv_rot_matrix=f,y.u_merc_center=d,y.u_camera_forward=g._camera.forward(),y.u_ecef_origin=e.globeECEFOrigin(g.globeMatrix,u.toUnwrapped()),y.u_tile_matrix=Float32Array.from(g.globeMatrix),y.u_up_vector=m),y},nr=(t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_,g)=>e.extend(rr(t,i,r,n,o,s,a,l,c,h,p,d,f,m,_,g),{u_gamma_scale:n?o.transform.cameraToCenterDistance*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:e.exported.devicePixelRatio,u_is_halo:+u}),or=(t,i,r,n,o,s,a,l,c,h,u,p,d,f,m,_)=>e.extend(nr(t,i,r,n,o,s,a,l,!0,c,!0,u,p,d,f,m,_),{u_texsize_icon:h,u_texture_icon:1}),sr=(e,t,i)=>({u_matrix:e,u_opacity:t,u_color:i}),ar=(t,i,r,n,o,s)=>e.extend(function(e,t,i,r){const n=i.imageManager.getPattern(e.from.toString()),o=i.imageManager.getPattern(e.to.toString()),{width:s,height:a}=i.imageManager.getPixelSize(),l=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,i.transform.tileZoom)/l,h=c*(r.tileID.canonical.x+r.tileID.wrap*l),u=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,a],u_mix:t.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/D(r,1,i.transform.tileZoom),u_pixel_coord_upper:[h>>16,u>>16],u_pixel_coord_lower:[65535&h,65535&u]}}(n,s,r,o),{u_matrix:t,u_opacity:i}),lr={fillExtrusion:t=>({u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t)}),fillExtrusionPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_lightpos:new e.Uniform3f(t),u_lightintensity:new e.Uniform1f(t),u_lightcolor:new e.Uniform3f(t),u_vertical_gradient:new e.Uniform1f(t),u_height_factor:new e.Uniform1f(t),u_edge_radius:new e.Uniform1f(t),u_ao:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_up_dir:new e.Uniform3f(t),u_height_lift:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t)}),fill:t=>({u_matrix:new e.UniformMatrix4f(t)}),fillPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t)}),fillOutline:t=>({u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t)}),fillOutlinePattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_world:new e.Uniform2f(t),u_image:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t)}),circle:t=>({u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}),collisionBox:t=>({u_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_extrude_scale:new e.Uniform2f(t)}),collisionCircle:t=>({u_matrix:new e.UniformMatrix4f(t),u_inv_matrix:new e.UniformMatrix4f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_viewport_size:new e.Uniform2f(t)}),debug:t=>({u_color:new e.UniformColor(t),u_matrix:new e.UniformMatrix4f(t),u_overlay:new e.Uniform1i(t),u_overlay_scale:new e.Uniform1f(t)}),clippingMask:t=>({u_matrix:new e.UniformMatrix4f(t)}),heatmap:t=>({u_extrude_scale:new e.Uniform1f(t),u_intensity:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_up_dir:new e.Uniform3f(t)}),heatmapTexture:t=>({u_image:new e.Uniform1i(t),u_color_ramp:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t)}),hillshade:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_latrange:new e.Uniform2f(t),u_light:new e.Uniform2f(t),u_shadow:new e.UniformColor(t),u_highlight:new e.UniformColor(t),u_accent:new e.UniformColor(t)}),hillshadePrepare:t=>({u_matrix:new e.UniformMatrix4f(t),u_image:new e.Uniform1i(t),u_dimension:new e.Uniform2f(t),u_zoom:new e.Uniform1f(t),u_unpack:new e.Uniform4f(t)}),line:t=>({u_matrix:new e.UniformMatrix4f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_units_to_pixels:new e.Uniform2f(t),u_dash_image:new e.Uniform1i(t),u_gradient_image:new e.Uniform1i(t),u_image_height:new e.Uniform1f(t),u_texsize:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_mix:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t),u_trim_offset:new e.Uniform2f(t)}),linePattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_texsize:new e.Uniform2f(t),u_pixels_to_tile_units:new e.UniformMatrix2f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_units_to_pixels:new e.Uniform2f(t),u_scale:new e.Uniform3f(t),u_fade:new e.Uniform1f(t),u_alpha_discard_threshold:new e.Uniform1f(t)}),raster:t=>({u_matrix:new e.UniformMatrix4f(t),u_tl_parent:new e.Uniform2f(t),u_scale_parent:new e.Uniform1f(t),u_fade_t:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_image0:new e.Uniform1i(t),u_image1:new e.Uniform1i(t),u_brightness_low:new e.Uniform1f(t),u_brightness_high:new e.Uniform1f(t),u_saturation_factor:new e.Uniform1f(t),u_contrast_factor:new e.Uniform1f(t),u_spin_weights:new e.Uniform3f(t),u_perspective_transform:new e.Uniform2f(t)}),symbolIcon:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_texture:new e.Uniform1i(t)}),symbolSDF:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_tile_id:new e.Uniform3f(t),u_zoom_transition:new e.Uniform1f(t),u_inv_rot_matrix:new e.UniformMatrix4f(t),u_merc_center:new e.Uniform2f(t),u_camera_forward:new e.Uniform3f(t),u_tile_matrix:new e.UniformMatrix4f(t),u_up_vector:new e.Uniform3f(t),u_ecef_origin:new e.Uniform3f(t),u_is_halo:new e.Uniform1i(t)}),symbolTextAndIcon:t=>({u_is_size_zoom_constant:new e.Uniform1i(t),u_is_size_feature_constant:new e.Uniform1i(t),u_size_t:new e.Uniform1f(t),u_size:new e.Uniform1f(t),u_camera_to_center_distance:new e.Uniform1f(t),u_rotate_symbol:new e.Uniform1i(t),u_aspect_ratio:new e.Uniform1f(t),u_fade_change:new e.Uniform1f(t),u_matrix:new e.UniformMatrix4f(t),u_label_plane_matrix:new e.UniformMatrix4f(t),u_coord_matrix:new e.UniformMatrix4f(t),u_is_text:new e.Uniform1i(t),u_pitch_with_map:new e.Uniform1i(t),u_texsize:new e.Uniform2f(t),u_texsize_icon:new e.Uniform2f(t),u_texture:new e.Uniform1i(t),u_texture_icon:new e.Uniform1i(t),u_gamma_scale:new e.Uniform1f(t),u_device_pixel_ratio:new e.Uniform1f(t),u_is_halo:new e.Uniform1i(t)}),background:t=>({u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_color:new e.UniformColor(t)}),backgroundPattern:t=>({u_matrix:new e.UniformMatrix4f(t),u_opacity:new e.Uniform1f(t),u_image:new e.Uniform1i(t),u_pattern_tl_a:new e.Uniform2f(t),u_pattern_br_a:new e.Uniform2f(t),u_pattern_tl_b:new e.Uniform2f(t),u_pattern_br_b:new e.Uniform2f(t),u_texsize:new e.Uniform2f(t),u_mix:new e.Uniform1f(t),u_pattern_size_a:new e.Uniform2f(t),u_pattern_size_b:new e.Uniform2f(t),u_scale_a:new e.Uniform1f(t),u_scale_b:new e.Uniform1f(t),u_pixel_coord_upper:new e.Uniform2f(t),u_pixel_coord_lower:new e.Uniform2f(t),u_tile_units_to_pixels:new e.Uniform1f(t)}),terrainRaster:vi,terrainDepth:vi,skybox:t=>({u_matrix:new e.UniformMatrix4f(t),u_sun_direction:new e.Uniform3f(t),u_cubemap:new e.Uniform1i(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}),skyboxGradient:t=>({u_matrix:new e.UniformMatrix4f(t),u_color_ramp:new e.Uniform1i(t),u_center_direction:new e.Uniform3f(t),u_radius:new e.Uniform1f(t),u_opacity:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t)}),skyboxCapture:t=>({u_matrix_3f:new e.UniformMatrix3f(t),u_sun_direction:new e.Uniform3f(t),u_sun_intensity:new e.Uniform1f(t),u_color_tint_r:new e.Uniform4f(t),u_color_tint_m:new e.Uniform4f(t),u_luminance:new e.Uniform1f(t)}),globeRaster:t=>({u_proj_matrix:new e.UniformMatrix4f(t),u_globe_matrix:new e.UniformMatrix4f(t),u_normalize_matrix:new e.UniformMatrix4f(t),u_merc_matrix:new e.UniformMatrix4f(t),u_zoom_transition:new e.Uniform1f(t),u_merc_center:new e.Uniform2f(t),u_image0:new e.Uniform1i(t),u_grid_matrix:new e.UniformMatrix3f(t),u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_globe_pos:new e.Uniform3f(t),u_globe_radius:new e.Uniform1f(t),u_viewport:new e.Uniform2f(t)}),globeAtmosphere:t=>({u_frustum_tl:new e.Uniform3f(t),u_frustum_tr:new e.Uniform3f(t),u_frustum_br:new e.Uniform3f(t),u_frustum_bl:new e.Uniform3f(t),u_horizon:new e.Uniform1f(t),u_transition:new e.Uniform1f(t),u_fadeout_range:new e.Uniform1f(t),u_color:new e.Uniform4f(t),u_high_color:new e.Uniform4f(t),u_space_color:new e.Uniform4f(t),u_star_intensity:new e.Uniform1f(t),u_star_density:new e.Uniform1f(t),u_star_size:new e.Uniform1f(t),u_temporal_offset:new e.Uniform1f(t),u_horizon_angle:new e.Uniform1f(t),u_rotation_matrix:new e.UniformMatrix4f(t)})};let cr;function hr(t,i,r,n,o,s,a){const l=t.context,c=l.gl,h=t.transform,u=t.useProgram("collisionBox"),p=[];let d=0,f=0;for(let m=0;m<n.length;m++){const _=n[m],g=i.getTile(_),y=g.getBucket(r);if(!y)continue;const x=bt(_,y,h);let v=x;0===o[0]&&0===o[1]||(v=t.translatePosMatrix(x,g,o,s));const b=a?y.textCollisionBox:y.iconCollisionBox,w=y.collisionCircleArray;if(w.length>0){const t=e.create(),i=v;e.mul(t,y.placementInvProjMatrix,h.glCoordMatrix),e.mul(t,t,y.placementViewportMatrix),p.push({circleArray:w,circleOffset:f,transform:i,invTransform:t,projection:y.getProjection()}),d+=w.length/4,f=d}b&&(t.terrain&&t.terrain.setupElevationDraw(g,u),u.draw(l,c.LINES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,$i(v,h,g,y.getProjection()),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,h.zoom,null,[b.collisionVertexBuffer,b.collisionVertexBufferExt]))}if(!a||!p.length)return;const m=t.useProgram("collisionCircle"),_=new e.StructArrayLayout2f1f2i16;_.resize(4*d),_._trim();let g=0;for(const e of p)for(let t=0;t<e.circleArray.length/4;t++){const i=4*t,r=e.circleArray[i+0],n=e.circleArray[i+1],o=e.circleArray[i+2],s=e.circleArray[i+3];_.emplace(g++,r,n,o,s,0),_.emplace(g++,r,n,o,s,1),_.emplace(g++,r,n,o,s,2),_.emplace(g++,r,n,o,s,3)}(!cr||cr.length<2*d)&&(cr=function(t){const i=2*t,r=new e.StructArrayLayout3ui6;r.resize(i),r._trim();for(let e=0;e<i;e++){const t=6*e;r.uint16[t+0]=4*e+0,r.uint16[t+1]=4*e+1,r.uint16[t+2]=4*e+2,r.uint16[t+3]=4*e+2,r.uint16[t+4]=4*e+3,r.uint16[t+5]=4*e+0}return r}(d));const y=l.createIndexBuffer(cr,!0),x=l.createVertexBuffer(_,e.collisionCircleLayout.members,!0);for(const i of p){const n={u_matrix:i.transform,u_inv_matrix:i.invTransform,u_camera_to_center_distance:(v=h).getCameraToCenterDistance(i.projection),u_viewport_size:[v.width,v.height]};m.draw(l,c.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,n,r.id,x,y,e.SegmentVector.simpleSegment(0,2*i.circleOffset,i.circleArray.length,i.circleArray.length/2),null,h.zoom)}var v;x.destroy(),y.destroy()}const ur=e.create();function pr(t,i,r,n,o,s){const{horizontalAlign:a,verticalAlign:l}=e.getAnchorAlignment(t),c=-(a-.5)*i,h=-(l-.5)*r,u=e.evaluateVariableOffset(t,n);return new e.pointGeometry((c/o+u[0])*s,(h/o+u[1])*s)}function dr(t,i,r,n,o,s,a,l,c,h,u){const p=t.text.placedSymbolArray,d=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,m={},_=wt(l,t.getProjection(),s),g=s.elevation,y=t.getProjection().upVectorScale(l.canonical,s.center.lat,s.worldSize);d.clear();for(let f=0;f<p.length;f++){const x=p.get(f),v=t.allowVerticalPlacement&&!x.placedOrientation,b=x.hidden||!x.crossTileID||v?null:n[x.crossTileID];if(b){const n=new e.pointGeometry(x.tileAnchorX,x.tileAnchorY),p=t.getProjection().upVector(l.canonical,n.x,n.y),f=g?g.getAtTileOffset(l,n.x,n.y):0,v=ot([x.projectedAnchorX+f*p[0]*y.metersToTile,x.projectedAnchorY+f*p[1]*y.metersToTile,x.projectedAnchorZ+f*p[2]*y.metersToTile],r?_:a),w=st(s.getCameraToCenterDistance(t.getProjection()),v.signedDistanceFromCamera);let T=o.evaluateSizeForFeature(t.textSizeData,h,x)*w/e.ONE_EM;r&&(T*=t.tilePixelRatio/c);const{width:E,height:S,anchor:M,textOffset:I,textScale:A}=b,C=pr(M,E,S,I,A,T);let z;if(r){const e=n.add(C),{x:i,y:r,z:o}=t.getProjection().projectTilePoint(e.x,e.y,l.canonical);z=ot([i+f*p[0]*y.metersToTile,r+f*p[1]*y.metersToTile,o+f*p[2]*y.metersToTile],a).point}else{const e=i?C.rotate(-s.angle):C;z=[v.point[0]+e.x,v.point[1]+e.y,0]}const P=t.allowVerticalPlacement&&x.placedOrientation===e.WritingMode.vertical?Math.PI/2:0;for(let t=0;t<x.numGlyphs;t++)e.addDynamicAttributes(d,z[0],z[1],z[2],P);u&&x.associatedIconIndex>=0&&(m[x.associatedIconIndex]={shiftedAnchor:z,angle:P})}else _t(x.numGlyphs,d)}if(u){f.clear();const i=t.icon.placedSymbolArray;for(let t=0;t<i.length;t++){const r=i.get(t);if(r.hidden)_t(r.numGlyphs,f);else{const i=m[t];if(i)for(let t=0;t<r.numGlyphs;t++)e.addDynamicAttributes(f,i.shiftedAnchor[0],i.shiftedAnchor[1],i.shiftedAnchor[2],i.angle);else _t(r.numGlyphs,f)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(d)}function fr(e,t,i){return i.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function mr(t,i,r,n,o,s,a,l,c,h,u,p){const d=t.context,f=d.gl,m=t.transform,_="map"===l,g="map"===c,y=_&&"point"!==r.layout.get("symbol-placement"),x=_&&!g&&!y,v=void 0!==r.layout.get("symbol-sort-key").constantOr(1);let b=!1;const w=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),T=[e.mercatorXfromLng(m.center.lng),e.mercatorYfromLat(m.center.lat)],E=r.layout.get("text-variable-anchor"),S="globe"===m.projection.name,M=[],I=[0,-1,0];let A=I;!S&&!m.mercatorFromTransition||_||(A=function(t){const i=t._camera.getWorldToCamera(t.worldSize,1),r=e.multiply([],i,t.globeMatrix);e.invert(r,r);const n=[0,0,0],o=[0,1,0,0];return e.transformMat4$1(o,o,r),n[0]=o[0],n[1]=o[1],n[2]=o[2],e.normalize(n,n),n}(m));for(const l of n){const n=i.getTile(l),c=n.getBucket(r);if(!c)continue;if("mercator"===c.projection.name&&S)continue;const u=o?c.text:c.icon;if(!u||c.fullyClipped||!u.segments.get().length)continue;const p=u.programConfigurations.get(r.id),d=o||c.sdfIcons,w=o?c.textSizeData:c.iconSizeData,C=g||0!==m.pitch,z=e.evaluateSizeForZoom(w,m.zoom);let P,k,D,L,B=[0,0],R=null;if(o){if(k=n.glyphAtlasTexture,D=f.LINEAR,P=n.glyphAtlasTexture.size,c.iconsInText){B=n.imageAtlasTexture.size,R=n.imageAtlasTexture;const e="composite"===w.kind||"camera"===w.kind;L=C||t.options.rotating||t.options.zooming||e?f.LINEAR:f.NEAREST}}else{const e=1!==r.layout.get("icon-size").constantOr(0)||c.iconsNeedLinear;k=n.imageAtlasTexture,D=d||t.options.rotating||t.options.zooming||e||C?f.LINEAR:f.NEAREST,P=n.imageAtlasTexture.size}const F="globe"===c.projection.name,O=F?A:I,U=F?e.globeToMercatorTransition(m.zoom):0,V=wt(l,c.getProjection(),m),j=m.calculatePixelsToTileUnitsMatrix(n),N=tt(V,n.tileID.canonical,g,_,m,c.getProjection(),j),G=t.terrain&&g&&y?e.invert(e.create(),N):ur,Z=rt(V,n.tileID.canonical,g,_,m,c.getProjection(),j),$=E&&c.hasTextData(),q="none"!==r.layout.get("icon-text-fit")&&$&&c.hasIconData();if(y){const e=m.elevation,i=e?e.getAtTileOffsetFunc(l,m.center.lat,m.worldSize,c.getProjection()):e=>[0,0,0],r=it(V,n.tileID.canonical,g,_,m,c.getProjection(),j);lt(c,V,t,o,r,Z,g,h,i,l)}const X=y||o&&E||q,W=t.translatePosMatrix(V,n,s,a),H=X?ur:N,Y=t.translatePosMatrix(Z,n,s,a,!0),K=c.getProjection().createInversionMatrix(m,l.canonical),J=[];t.terrain&&g&&J.push("PITCH_WITH_MAP_TERRAIN"),F&&J.push("PROJECTION_GLOBE_VIEW"),X&&J.push("PROJECTED_POS_ON_VIEWPORT");const Q=d&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1);let ee;ee=d?c.iconsInText?or(w.kind,z,x,g,t,W,H,Y,P,B,l,U,T,K,O,c.getProjection()):nr(w.kind,z,x,g,t,W,H,Y,o,P,!0,l,U,T,K,O,c.getProjection()):rr(w.kind,z,x,g,t,W,H,Y,o,P,l,U,T,K,O,c.getProjection());const te={program:t.useProgram(fr(d,o,c),p,J),buffers:u,uniformValues:ee,atlasTexture:k,atlasTextureIcon:R,atlasInterpolation:D,atlasInterpolationIcon:L,isSDF:d,hasHalo:Q,tile:n,labelPlaneMatrixInv:G};if(v&&c.canOverlap){b=!0;const t=u.segments.get();for(const i of t)M.push({segments:new e.SegmentVector([i]),sortKey:i.sortKey,state:te})}else M.push({segments:u.segments,sortKey:0,state:te})}b&&M.sort(((e,t)=>e.sortKey-t.sortKey));for(const e of M){const i=e.state;if(t.terrain&&t.terrain.setupElevationDraw(i.tile,i.program,{useDepthForOcclusion:!S,labelPlaneMatrixInv:i.labelPlaneMatrixInv}),d.activeTexture.set(f.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,f.CLAMP_TO_EDGE),i.atlasTextureIcon&&(d.activeTexture.set(f.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,f.CLAMP_TO_EDGE)),i.isSDF){const n=i.uniformValues;i.hasHalo&&(n.u_is_halo=1,_r(i.buffers,e.segments,r,t,i.program,w,u,p,n)),n.u_is_halo=0}_r(i.buffers,e.segments,r,t,i.program,w,u,p,i.uniformValues)}}function _r(t,i,r,n,o,s,a,l,c){const h=n.context,u=[t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer,t.globeExtVertexBuffer];o.draw(h,h.gl.TRIANGLES,s,a,l,e.CullFaceMode.disabled,c,r.id,t.layoutVertexBuffer,t.indexBuffer,i,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),u)}function gr(t,i,r,n,o,s,a){const l=t.context.gl,c=r.paint.get("fill-pattern"),h=c&&c.constantOr(1),u=r.getCrossfadeParameters();let p,d,f,m,_;a?(d=h&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",p=l.LINES):(d=h?"fillPattern":"fill",p=l.TRIANGLES);for(const g of n){const n=i.getTile(g);if(h&&!n.patternsLoaded())continue;const y=n.getBucket(r);if(!y)continue;t.prepareDrawTile();const x=y.programConfigurations.get(r.id),v=t.useProgram(d,x);h&&(t.context.activeTexture.set(l.TEXTURE0),n.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),x.updatePaintBuffers(u));const b=c.constantOr(null);if(b&&n.imageAtlas){const e=n.imageAtlas,t=e.patternPositions[b.to.toString()],i=e.patternPositions[b.from.toString()];t&&i&&x.setConstantPatternPositions(t,i)}const w=t.translatePosMatrix(g.projMatrix,n,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));if(a){m=y.indexBuffer2,_=y.segments2;const e=t.terrain&&t.terrain.renderingToTexture?t.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];f="fillOutlinePattern"===d&&h?ji(w,t,u,n,e):Vi(w,e)}else m=y.indexBuffer,_=y.segments,f=h?Ui(w,t,u,n):Oi(w);t.prepareDrawProgram(t.context,v,g.toUnwrapped()),v.draw(t.context,p,o,t.stencilModeForClipping(g),s,e.CullFaceMode.disabled,f,r.id,y.layoutVertexBuffer,m,_,r.paint,t.transform.zoom,x)}}function yr(t,i,r,n,o,s,a){const l=t.context,c=l.gl,h=t.transform,u=r.paint.get("fill-extrusion-pattern"),p=u.constantOr(1),d=r.getCrossfadeParameters(),f=r.paint.get("fill-extrusion-opacity"),m=[r.paint.get("fill-extrusion-ambient-occlusion-intensity"),r.paint.get("fill-extrusion-ambient-occlusion-radius")],_=r.layout.get("fill-extrusion-edge-radius"),g="globe"===h.projection.name?e.fillExtrusionHeightLift():0,y="globe"===h.projection.name,x=y?e.globeToMercatorTransition(h.zoom):0,v=[e.mercatorXfromLng(h.center.lng),e.mercatorYfromLat(h.center.lat)],b=[];y&&(b.push("PROJECTION_GLOBE_VIEW"),t.style.terrainSetForDrapingOnly()&&b.push("TERRAIN")),m[0]>0&&b.push("FAUX_AO");for(const w of n){const n=i.getTile(w),T=n.getBucket(r);if(!T||T.projection.name!==h.projection.name)continue;const E=T.programConfigurations.get(r.id),S=t.useProgram(p?"fillExtrusionPattern":"fillExtrusion",E,b);if(t.terrain){const e=t.terrain;if(t.style.terrainSetForDrapingOnly())e.setupElevationDraw(n,S,{useMeterToDem:!0});else{if(!T.enableTerrain)continue;if(e.setupElevationDraw(n,S,{useMeterToDem:!0}),xr(l,i,w,T,r,e),!T.centroidVertexBuffer){const e=S.attributes.a_centroid_pos;void 0!==e&&c.vertexAttrib2f(e,0,0)}}}p&&(t.context.activeTexture.set(c.TEXTURE0),n.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),E.updatePaintBuffers(d));const M=u.constantOr(null);if(M&&n.imageAtlas){const e=n.imageAtlas,t=e.patternPositions[M.to.toString()],i=e.patternPositions[M.from.toString()];t&&i&&E.setConstantPatternPositions(t,i)}const I=t.translatePosMatrix(w.projMatrix,n,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),A=h.projection.createInversionMatrix(h,w.canonical),C=r.paint.get("fill-extrusion-vertical-gradient"),z=p?Fi(I,t,C,f,m,_,w,d,n,g,x,v,A):Ri(I,t,C,f,m,_,w,g,x,v,A);t.prepareDrawProgram(l,S,w.toUnwrapped());const P=[];t.terrain&&P.push(T.centroidVertexBuffer),y&&P.push(T.layoutVertexExtBuffer),S.draw(l,l.gl.TRIANGLES,o,s,a,e.CullFaceMode.backCCW,z,r.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,r.paint,t.transform.zoom,E,P)}}function xr(t,i,r,n,o,s){const a=[t=>{let i=t.canonical.x-1,r=t.wrap;return i<0&&(i=(1<<t.canonical.z)-1,r--),new e.OverscaledTileID(t.overscaledZ,r,t.canonical.z,i,t.canonical.y)},t=>{let i=t.canonical.x+1,r=t.wrap;return i===1<<t.canonical.z&&(i=0,r++),new e.OverscaledTileID(t.overscaledZ,r,t.canonical.z,i,t.canonical.y)},t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,(0===t.canonical.y?1<<t.canonical.z:t.canonical.y)-1),t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y===(1<<t.canonical.z)-1?0:t.canonical.y+1)],l=e=>{const t=i.getSource().minzoom,r=e=>{const t=i.getTileByID(e);if(t&&t.hasData())return t.getBucket(o)},n=[0,-1,1];for(const i of n){if(e.overscaledZ+i<t)continue;const n=r(e.calculateScaledKey(e.overscaledZ+i));if(n)return n}},c=[0,0,0],h=(t,i)=>(c[0]=Math.min(t.min.y,i.min.y),c[1]=Math.max(t.max.y,i.max.y),c[2]=e.EXTENT-i.min.x>t.max.x?i.min.x-e.EXTENT:t.max.x,c),u=(t,i)=>(c[0]=Math.min(t.min.x,i.min.x),c[1]=Math.max(t.max.x,i.max.x),c[2]=e.EXTENT-i.min.y>t.max.y?i.min.y-e.EXTENT:t.max.y,c),p=[(e,t)=>h(e,t),(e,t)=>h(t,e),(e,t)=>u(e,t),(e,t)=>u(t,e)],d=new e.pointGeometry(0,0);let f,m,_;const g=(t,i,n,o,a)=>{const l=[[o?n:t,o?t:n,0],[o?n:i,o?i:n,0]],c=a<0?e.EXTENT+a:a,h=[o?c:(t+i)/2,o?(t+i)/2:c,0];return 0===n&&a<0||0!==n&&a>0?s.getForTilePoints(_,[h],!0,m):l.push(h),s.getForTilePoints(r,l,!0,f),Math.max(l[0][2],l[1][2],h[2])/s.exaggeration()};for(let t=0;t<4;t++){const i=(t<2?1:5)-t,o=n.borders[t];if(0===o.length)continue;const c=_=a[t](r),h=l(c);if(!(h&&h instanceof e.FillExtrusionBucket&&h.enableTerrain))continue;if(n.borderDoneWithNeighborZ[t]===h.canonical.z&&h.borderDoneWithNeighborZ[i]===n.canonical.z)continue;if(m=s.findDEMTileFor(c),!m||!m.dem)continue;if(!f){const e=s.findDEMTileFor(r);if(!e||!e.dem)return;f=e}const u=h.borders[i];let y=0;const x=h.borderDoneWithNeighborZ[i]!==n.canonical.z;if(n.canonical.z===h.canonical.z){for(let r=0;r<o.length;r++){const s=n.featuresOnBorder[o[r]],a=s.borders[t];let l;for(;y<u.length&&(l=h.featuresOnBorder[u[y]],!(l.borders[i][1]>a[0]+3));)x&&h.encodeCentroid(void 0,l,!1),y++;if(l&&y<u.length){const r=y;let o=0;for(;!(l.borders[i][0]>a[1]-3)&&(o++,++y!==u.length);)l=h.featuresOnBorder[u[y]];if(l=h.featuresOnBorder[u[r]],s.intersectsCount()>1||l.intersectsCount()>1||1!==o){1!==o&&(y=r),n.encodeCentroid(void 0,s,!1),x&&h.encodeCentroid(void 0,l,!1);continue}const c=p[t](s,l),f=t%2?e.EXTENT-1:0;d.x=g(c[0],Math.min(e.EXTENT-1,c[1]),f,t<2,c[2]),d.y=0,n.encodeCentroid(d,s,!1),x&&h.encodeCentroid(d,l,!1)}else n.encodeCentroid(void 0,s,!1)}n.borderDoneWithNeighborZ[t]=h.canonical.z,n.needsCentroidUpdate=!0,x&&(h.borderDoneWithNeighborZ[i]=n.canonical.z,h.needsCentroidUpdate=!0)}else{for(const e of o)n.encodeCentroid(void 0,n.featuresOnBorder[e],!1);if(x){for(const e of u)h.encodeCentroid(void 0,h.featuresOnBorder[e],!1);h.borderDoneWithNeighborZ[i]=n.canonical.z,h.needsCentroidUpdate=!0}n.borderDoneWithNeighborZ[t]=h.canonical.z,n.needsCentroidUpdate=!0}}(n.needsCentroidUpdate||!n.centroidVertexBuffer&&0!==n.centroidVertexArray.length)&&n.uploadCentroid(t)}const vr=new e.Color(1,0,0,1),br=new e.Color(0,1,0,1),wr=new e.Color(0,0,1,1),Tr=new e.Color(1,0,1,1),Er=new e.Color(0,1,1,1);function Sr(t,i,r){const n=t.context,o=t.transform,s=n.gl,a="globe"===o.projection.name,l=a?["PROJECTION_GLOBE_VIEW"]:null;let c=r.projMatrix;if(a&&e.globeToMercatorTransition(o.zoom)>0){const t=e.transitionTileAABBinECEF(r.canonical,o),i=e.globeDenormalizeECEF(t);c=e.multiply(new Float32Array(16),o.globeMatrix,i),e.multiply(c,o.projMatrix,c)}const h=t.useProgram("debug",null,l),u=i.getTileByID(r.key);t.terrain&&t.terrain.setupElevationDraw(u,h);const p=e.DepthMode.disabled,d=e.StencilMode.disabled,f=t.colorModeForRenderPass(),m="$debug";n.activeTexture.set(s.TEXTURE0),t.emptyTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),a?u._makeGlobeTileDebugBuffers(t.context,o):u._makeDebugTileBoundsBuffers(t.context,o.projection);const _=u._tileDebugBuffer||t.debugBuffer,g=u._tileDebugIndexBuffer||t.debugIndexBuffer,y=u._tileDebugSegments||t.debugSegments;h.draw(n,s.LINE_STRIP,p,d,f,e.CullFaceMode.disabled,qi(c,e.Color.red),m,_,g,y,null,null,null,[u._globeTileDebugBorderBuffer]);const x=u.latestRawTileData,v=Math.floor((x&&x.byteLength||0)/1024),b=i.getTile(r).tileSize,w=512/Math.min(b,512)*(r.overscaledZ/o.zoom)*.5;let T=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(T+=` => ${r.overscaledZ}`),T+=` ${v}kb`,function(e,t){e.initDebugOverlayCanvas();const i=e.debugOverlayCanvas,r=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,i.width,i.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(i),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,T);const E=u._tileDebugTextBuffer||t.debugBuffer,S=u._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,M=u._tileDebugTextSegments||t.debugSegments;h.draw(n,s.TRIANGLES,p,d,e.ColorMode.alphaBlended,e.CullFaceMode.disabled,qi(c,e.Color.transparent,w),m,E,S,M,null,null,null,[u._globeTileDebugTextBuffer])}function Mr(e,t,i,r){Ar(e,0,t+i/2,e.transform.width,i,r)}function Ir(e,t,i,r){Ar(e,t-i/2,0,i,e.transform.height,r)}function Ar(t,i,r,n,o,s){const a=t.context,l=a.gl;l.enable(l.SCISSOR_TEST),l.scissor(i*e.exported.devicePixelRatio,r*e.exported.devicePixelRatio,n*e.exported.devicePixelRatio,o*e.exported.devicePixelRatio),a.clear({color:s}),l.disable(l.SCISSOR_TEST)}const Cr=e.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:zr}=Cr;function Pr(e,t,i,r){e.emplaceBack(t,i,r)}class kr{constructor(t){this.vertexArray=new e.StructArrayLayout3f12,this.indices=new e.StructArrayLayout3ui6,Pr(this.vertexArray,-1,-1,1),Pr(this.vertexArray,1,-1,1),Pr(this.vertexArray,-1,1,1),Pr(this.vertexArray,1,1,1),Pr(this.vertexArray,-1,-1,-1),Pr(this.vertexArray,1,-1,-1),Pr(this.vertexArray,-1,1,-1),Pr(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=t.createVertexBuffer(this.vertexArray,zr),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.SegmentVector.simpleSegment(0,0,36,12)}}function Dr(t,i,r,n,o,s){const a=t.gl,l=i.paint.get("sky-atmosphere-color"),c=i.paint.get("sky-atmosphere-halo-color"),h=i.paint.get("sky-atmosphere-sun-intensity"),u=((e,t,i,r,n)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:i,u_color_tint_r:[r.r,r.g,r.b,r.a],u_color_tint_m:[n.r,n.g,n.b,n.a],u_luminance:5e-5}))(e.fromMat4(e.create$1(),n),o,h,l,c);a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+s,i.skyboxTexture,0),r.draw(t,a.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.frontCW,u,"skyboxCapture",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}const Lr=e.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class Br{constructor(t){const i=new e.StructArrayLayout5f20;i.emplaceBack(-1,1,1,0,0),i.emplaceBack(1,1,1,1,0),i.emplaceBack(1,-1,1,1,1),i.emplaceBack(-1,-1,1,0,1);const r=new e.StructArrayLayout3ui6;r.emplaceBack(0,1,2),r.emplaceBack(2,3,0),this.vertexBuffer=t.createVertexBuffer(i,Lr.members),this.indexBuffer=t.createIndexBuffer(r),this.segments=e.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const Rr={symbol:function(t,i,r,n,o){if("translucent"!==t.renderPass)return;const s=e.StencilMode.disabled,a=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,i,r,n,o,s,a){const l=i.transform,c="map"===o,h="map"===s;for(const i of t){const t=n.getTile(i),o=t.getBucket(r);if(!o||!o.text||!o.text.segments.get().length)continue;const s=e.evaluateSizeForZoom(o.textSizeData,l.zoom),u=wt(i,o.getProjection(),l),p=l.calculatePixelsToTileUnitsMatrix(t),d=tt(u,t.tileID.canonical,h,c,l,o.getProjection(),p),f="none"!==r.layout.get("icon-text-fit")&&o.hasIconData();if(s){const r=Math.pow(2,l.zoom-t.tileID.overscaledZ);dr(o,c,h,a,e.symbolSize,l,d,i,r,s,f)}}}(n,t,r,i,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&mr(t,i,r,n,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),s,a),0!==r.paint.get("text-opacity").constantOr(1)&&mr(t,i,r,n,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),s,a),i.map.showCollisionBoxes&&(hr(t,i,r,n,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),hr(t,i,r,n,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))},circle:function(t,i,r,n){if("translucent"!==t.renderPass)return;const o=r.paint.get("circle-opacity"),s=r.paint.get("circle-stroke-width"),a=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0===o.constantOr(1)&&(0===s.constantOr(1)||0===a.constantOr(1)))return;const c=t.context,h=c.gl,u=t.transform,p=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),d=e.StencilMode.disabled,f=t.colorModeForRenderPass(),m="globe"===u.projection.name,_=[e.mercatorXfromLng(u.center.lng),e.mercatorYfromLat(u.center.lat)],g=[];for(let o=0;o<n.length;o++){const s=n[o],a=i.getTile(s),c=a.getBucket(r);if(!c||c.projection.name!==u.projection.name)continue;const h=c.programConfigurations.get(r.id),p=Zi(r);m&&p.push("PROJECTION_GLOBE_VIEW");const d=t.useProgram("circle",h,p),f=c.layoutVertexBuffer,y=c.globeExtVertexBuffer,x=c.indexBuffer,v=u.projection.createInversionMatrix(u,s.canonical),b={programConfiguration:h,program:d,layoutVertexBuffer:f,globeExtVertexBuffer:y,indexBuffer:x,uniformValues:Gi(t,s,a,v,_,r),tile:a};if(l){const t=c.segments.get();for(const i of t)g.push({segments:new e.SegmentVector([i]),sortKey:i.sortKey,state:b})}else g.push({segments:c.segments,sortKey:0,state:b})}l&&g.sort(((e,t)=>e.sortKey-t.sortKey));const y={useDepthForOcclusion:!m};for(const i of g){const{programConfiguration:n,program:o,layoutVertexBuffer:s,globeExtVertexBuffer:a,indexBuffer:l,uniformValues:m,tile:_}=i.state,g=i.segments;t.terrain&&t.terrain.setupElevationDraw(_,o,y),t.prepareDrawProgram(c,o,_.tileID.toUnwrapped()),o.draw(c,h.TRIANGLES,p,d,f,e.CullFaceMode.disabled,m,r.id,s,l,g,r.paint,u.zoom,n,[a])}},heatmap:function(t,i,r,n){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,s=o.gl,a=e.StencilMode.disabled,l=new e.ColorMode([s.ONE,s.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,i,r){const n=e.gl,o=t.width*r,s=t.height*r;e.activeTexture.set(n.TEXTURE1),e.viewport.set([0,0,o,s]);let a=i.heatmapFbo;if(!a||a&&(a.width!==o||a.height!==s)){a&&a.destroy();const t=n.createTexture();n.bindTexture(n.TEXTURE_2D,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),a=i.heatmapFbo=e.createFramebuffer(o,s,!1),function(e,t,i,r,n,o){const s=e.gl;s.texImage2D(s.TEXTURE_2D,0,s.RGBA,n,o,0,s.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:s.UNSIGNED_BYTE,null),r.colorAttachment.set(i)}(e,0,t,a,o,s)}else n.bindTexture(n.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer)}(o,t,r,"globe"===t.transform.projection.name?.5:.25),o.clear({color:e.Color.transparent});const c=t.transform,h="globe"===c.projection.name,u=h?["PROJECTION_GLOBE_VIEW"]:null,p=h?e.CullFaceMode.frontCCW:e.CullFaceMode.disabled,d=[e.mercatorXfromLng(c.center.lng),e.mercatorYfromLat(c.center.lat)];for(let f=0;f<n.length;f++){const m=n[f];if(i.hasRenderableParent(m))continue;const _=i.getTile(m),g=_.getBucket(r);if(!g||g.projection.name!==c.projection.name)continue;const y=g.programConfigurations.get(r.id),x=t.useProgram("heatmap",y,u),{zoom:v}=t.transform;t.terrain&&t.terrain.setupElevationDraw(_,x),t.prepareDrawProgram(o,x,m.toUnwrapped());const b=c.projection.createInversionMatrix(c,m.canonical);x.draw(o,s.TRIANGLES,e.DepthMode.disabled,a,l,p,Wi(t,m,_,b,d,v,r.paint.get("heatmap-intensity")),r.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,r.paint,t.transform.zoom,y,h?[g.globeExtVertexBuffer]:null)}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,i){const r=t.context,n=r.gl,o=i.heatmapFbo;if(!o)return;r.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(n.TEXTURE1);let s=i.colorRampTexture;s||(s=i.colorRampTexture=new e.Texture(r,i.colorRamp,n.RGBA)),s.bind(n.LINEAR,n.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,n.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,((e,t,i,r)=>({u_image:0,u_color_ramp:1,u_opacity:t.paint.get("heatmap-opacity")}))(0,i),i.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,i.paint,t.transform.zoom)}(t,r))},line:function(t,i,r,n){if("translucent"!==t.renderPass)return;const o=r.paint.get("line-opacity"),s=r.paint.get("line-width");if(0===o.constantOr(1)||0===s.constantOr(1))return;const a=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),l=t.colorModeForRenderPass(),c=t.terrain&&t.terrain.renderingToTexture?1:e.exported.devicePixelRatio,h=r.paint.get("line-dasharray"),u=h.constantOr(1),p=r.layout.get("line-cap"),d=r.paint.get("line-pattern"),f=d.constantOr(1),m=r.paint.get("line-gradient"),_=r.getCrossfadeParameters(),g=f?"linePattern":"line",y=t.context,x=y.gl,v=(e=>{const t=[];Qi(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT");const i=e.paint.get("line-trim-offset");0===i[0]&&0===i[1]||t.push("RENDER_LINE_TRIM_OFFSET");const r=e.paint.get("line-pattern").constantOr(1),n=1!==e.paint.get("line-opacity").constantOr(1);return!r&&n&&t.push("RENDER_LINE_ALPHA_DISCARD"),t})(r);let b=v.includes("RENDER_LINE_ALPHA_DISCARD");t.terrain&&t.terrain.clipOrMaskOverlapStencilType()&&(b=!1);for(const o of n){const n=i.getTile(o);if(f&&!n.patternsLoaded())continue;const s=n.getBucket(r);if(!s)continue;t.prepareDrawTile();const w=s.programConfigurations.get(r.id),T=t.useProgram(g,w,v),E=d.constantOr(null);if(E&&n.imageAtlas){const e=n.imageAtlas,t=e.patternPositions[E.to.toString()],i=e.patternPositions[E.from.toString()];t&&i&&w.setConstantPatternPositions(t,i)}const S=h.constantOr(null),M=p.constantOr(null);if(!f&&S&&M&&n.lineAtlas){const e=n.lineAtlas,t=e.getDash(S.to,M),i=e.getDash(S.from,M);t&&i&&w.setConstantPatternPositions(t,i)}let[I,A]=r.paint.get("line-trim-offset");if("round"===M||"square"===M){const e=1;I!==A&&(0===I&&(I-=e),1===A&&(A+=e))}const C=t.terrain?o.projMatrix:null,z=f?Yi(t,n,r,_,C,c):Hi(t,n,r,_,C,s.lineClipsArray.length,c,[I,A]);if(m){const n=s.gradients[r.id];let a=n.texture;if(r.gradientVersion!==n.version){let l=256;if(r.stepInterpolant){const r=i.getSource().maxzoom,n=o.canonical.z===r?Math.ceil(1<<t.transform.maxZoom-o.canonical.z):1;l=e.clamp(e.nextPowerOfTwo(s.maxLineLength/e.EXTENT*1024*n),256,y.maxTextureSize)}n.gradient=e.renderColorRamp({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:l,image:n.gradient||void 0,clips:s.lineClipsArray}),n.texture?n.texture.update(n.gradient):n.texture=new e.Texture(y,n.gradient,x.RGBA),n.version=r.gradientVersion,a=n.texture}y.activeTexture.set(x.TEXTURE1),a.bind(r.stepInterpolant?x.NEAREST:x.LINEAR,x.CLAMP_TO_EDGE)}u&&(y.activeTexture.set(x.TEXTURE0),n.lineAtlasTexture.bind(x.LINEAR,x.REPEAT),w.updatePaintBuffers(_)),f&&(y.activeTexture.set(x.TEXTURE0),n.imageAtlasTexture.bind(x.LINEAR,x.CLAMP_TO_EDGE),w.updatePaintBuffers(_)),t.prepareDrawProgram(y,T,o.toUnwrapped());const P=i=>{T.draw(y,x.TRIANGLES,a,i,l,e.CullFaceMode.disabled,z,r.id,s.layoutVertexBuffer,s.indexBuffer,s.segments,r.paint,t.transform.zoom,w,[s.layoutVertexBuffer2])};if(b){const i=t.stencilModeForClipping(o).ref;0===i&&t.terrain&&y.clear({stencil:0});const r={func:x.EQUAL,mask:255};z.u_alpha_discard_threshold=.8,P(new e.StencilMode(r,i,255,x.KEEP,x.KEEP,x.INVERT)),z.u_alpha_discard_threshold=0,P(new e.StencilMode(r,i,255,x.KEEP,x.KEEP,x.KEEP))}else P(t.stencilModeForClipping(o))}b&&(t.resetStencilClippingMasks(),t.terrain&&y.clear({stencil:0}))},fill:function(t,i,r,n){const o=r.paint.get("fill-color"),s=r.paint.get("fill-opacity");if(0===s.constantOr(1))return;const a=t.colorModeForRenderPass(),l=r.paint.get("fill-pattern"),c=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===o.constantOr(e.Color.transparent).a&&1===s.constantOr(0)?"opaque":"translucent";if(t.renderPass===c){const o=t.depthModeForSublayer(1,"opaque"===t.renderPass?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly);gr(t,i,r,n,o,a,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){const o=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,e.DepthMode.ReadOnly);gr(t,i,r,n,o,a,!0)}},"fill-extrusion":function(t,i,r,n){const o=r.paint.get("fill-extrusion-opacity");if(0!==o&&"translucent"===t.renderPass){const s=new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);if(1!==o||r.paint.get("fill-extrusion-pattern").constantOr(1))yr(t,i,r,n,s,e.StencilMode.disabled,e.ColorMode.disabled),yr(t,i,r,n,s,t.stencilModeFor3D(),t.colorModeForRenderPass()),t.resetStencilClippingMasks();else{const o=t.colorModeForRenderPass();yr(t,i,r,n,s,e.StencilMode.disabled,o)}}},hillshade:function(t,i,r,n){if("offscreen"!==t.renderPass&&"translucent"!==t.renderPass)return;const o=t.context,s=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),a=t.colorModeForRenderPass(),l=t.terrain&&t.terrain.renderingToTexture,[c,h]="translucent"!==t.renderPass||l?[{},n]:t.stencilConfigForOverlap(n);for(const n of h){const o=i.getTile(n);if(o.needsHillshadePrepare&&"offscreen"===t.renderPass)xi(t,o,r,s,e.StencilMode.disabled,a);else if("translucent"===t.renderPass){const e=l&&t.terrain?t.terrain.stencilModeForRTTOverlap(n):c[n.overscaledZ];gi(t,n,o,r,s,e,a)}}o.viewport.set([0,0,t.width,t.height]),t.resetStencilClippingMasks()},raster:function(t,i,r,n,o,s){if("translucent"!==t.renderPass)return;if(0===r.paint.get("raster-opacity"))return;if(!n.length)return;const a=t.context,l=a.gl,c=i.getSource(),h=t.useProgram("raster"),u=t.colorModeForRenderPass(),p=t.terrain&&t.terrain.renderingToTexture,[d,f]=c instanceof ze||p?[{},n]:t.stencilConfigForOverlap(n),m=f[f.length-1].overscaledZ,_=!t.options.moving;for(const n of f){const o=p?e.DepthMode.disabled:t.depthModeForSublayer(n.overscaledZ-m,1===r.paint.get("raster-opacity")?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly,l.LESS),f=n.toUnwrapped(),g=i.getTile(n);if(p&&(!g||!g.hasData()))continue;const y=p?n.projMatrix:t.transform.calculateProjMatrix(f,_),x=t.terrain&&p?t.terrain.stencilModeForRTTOverlap(n):d[n.overscaledZ],v=s?0:r.paint.get("raster-fade-duration");g.registerFadeDuration(v);const b=i.findLoadedParent(n,0),w=Ai(g,b,i,t.transform,v);let T,E;t.terrain&&t.terrain.prepareDrawTile();const S="nearest"===r.paint.get("raster-resampling")?l.NEAREST:l.LINEAR;a.activeTexture.set(l.TEXTURE0),g.texture.bind(S,l.CLAMP_TO_EDGE),a.activeTexture.set(l.TEXTURE1),b?(b.texture.bind(S,l.CLAMP_TO_EDGE),T=Math.pow(2,b.tileID.overscaledZ-g.tileID.overscaledZ),E=[g.tileID.canonical.x*T%1,g.tileID.canonical.y*T%1]):g.texture.bind(S,l.CLAMP_TO_EDGE);const M=er(y,E||[0,0],T||1,w,r,c instanceof ze?c.perspectiveTransform:[0,0]);if(t.prepareDrawProgram(a,h,f),c instanceof ze)c.boundsBuffer&&c.boundsSegments&&h.draw(a,l.TRIANGLES,o,e.StencilMode.disabled,u,e.CullFaceMode.disabled,M,r.id,c.boundsBuffer,t.quadTriangleIndexBuffer,c.boundsSegments);else{const{tileBoundsBuffer:i,tileBoundsIndexBuffer:n,tileBoundsSegments:s}=t.getTileBoundsBuffers(g);h.draw(a,l.TRIANGLES,o,x,u,e.CullFaceMode.disabled,M,r.id,i,n,s)}}t.resetStencilClippingMasks()},background:function(t,i,r,n){const o=r.paint.get("background-color"),s=r.paint.get("background-opacity");if(0===s)return;const a=t.context,l=a.gl,c=t.transform,h=c.tileSize,u=r.paint.get("background-pattern");if(t.isPatternMissing(u))return;const p=!u&&1===o.a&&1===s&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==p)return;const d=e.StencilMode.disabled,f=t.depthModeForSublayer(0,"opaque"===p?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly),m=t.colorModeForRenderPass(),_=t.useProgram(u?"backgroundPattern":"background");let g,y=n;y||(g=t.getBackgroundTiles(),y=Object.values(g).map((e=>e.tileID))),u&&(a.activeTexture.set(l.TEXTURE0),t.imageManager.bind(t.context));const x=r.getCrossfadeParameters();for(const p of y){const y=p.toUnwrapped(),v=n?p.projMatrix:t.transform.calculateProjMatrix(y);t.prepareDrawTile();const b=i?i.getTile(p):g?g[p.key]:new e.Tile(p,h,c.zoom,t),w=u?ar(v,s,t,u,{tileID:p,tileSize:h},x):sr(v,s,o);t.prepareDrawProgram(a,_,y);const{tileBoundsBuffer:T,tileBoundsIndexBuffer:E,tileBoundsSegments:S}=t.getTileBoundsBuffers(b);_.draw(a,l.TRIANGLES,f,d,m,e.CullFaceMode.disabled,w,r.id,T,E,S)}},sky:function(t,i,r){const n=t.transform,o="mercator"===n.projection.name||"globe"===n.projection.name?1:e.smoothstep(7,8,n.zoom),s=r.paint.get("sky-opacity")*o;if(0===s)return;const a=t.context,l=r.paint.get("sky-type"),c=new e.DepthMode(a.gl.LEQUAL,e.DepthMode.ReadOnly,[0,1]),h=t.frameCounter/1e3%1;"atmosphere"===l?"offscreen"===t.renderPass?r.needsSkyboxCapture(t)&&(function(t,i,r,n){const o=t.context,s=o.gl;let a=i.skyboxFbo;if(!a){a=i.skyboxFbo=o.createFramebuffer(32,32,!1),i.skyboxGeometry=new kr(o),i.skyboxTexture=o.gl.createTexture(),s.bindTexture(s.TEXTURE_CUBE_MAP,i.skyboxTexture),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_MIN_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_CUBE_MAP,s.TEXTURE_MAG_FILTER,s.LINEAR);for(let e=0;e<6;++e)s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,s.RGBA,32,32,0,s.RGBA,s.UNSIGNED_BYTE,null)}o.bindFramebuffer.set(a.framebuffer),o.viewport.set([0,0,32,32]);const l=i.getCenter(t,!0),c=t.useProgram("skyboxCapture"),h=new Float64Array(16);e.identity(h),e.rotateY(h,h,.5*-Math.PI),Dr(o,i,c,h,l,0),e.identity(h),e.rotateY(h,h,.5*Math.PI),Dr(o,i,c,h,l,1),e.identity(h),e.rotateX(h,h,.5*-Math.PI),Dr(o,i,c,h,l,2),e.identity(h),e.rotateX(h,h,.5*Math.PI),Dr(o,i,c,h,l,3),e.identity(h),Dr(o,i,c,h,l,4),e.identity(h),e.rotateY(h,h,Math.PI),Dr(o,i,c,h,l,5),o.viewport.set([0,0,t.width,t.height])}(t,r),r.markSkyboxValid(t)):"sky"===t.renderPass&&function(t,i,r,n,o){const s=t.context,a=s.gl,l=t.transform,c=t.useProgram("skybox");s.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_CUBE_MAP,i.skyboxTexture);const h=((e,t,i,r,n)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:r,u_temporal_offset:n}))(l.skyboxMatrix,i.getCenter(t,!1),0,n,o);t.prepareDrawProgram(s,c),c.draw(s,a.TRIANGLES,r,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,h,"skybox",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(t,r,c,s,h):"gradient"===l&&"sky"===t.renderPass&&function(t,i,r,n,o){const s=t.context,a=s.gl,l=t.transform,c=t.useProgram("skyboxGradient");i.skyboxGeometry||(i.skyboxGeometry=new kr(s)),s.activeTexture.set(a.TEXTURE0);let h=i.colorRampTexture;h||(h=i.colorRampTexture=new e.Texture(s,i.colorRamp,a.RGBA)),h.bind(a.LINEAR,a.CLAMP_TO_EDGE);const u=((t,i,r,n,o)=>({u_matrix:t,u_color_ramp:0,u_center_direction:i,u_radius:e.degToRad(r),u_opacity:n,u_temporal_offset:o}))(l.skyboxMatrix,i.getCenter(t,!1),i.paint.get("sky-gradient-radius"),n,o);t.prepareDrawProgram(s,c),c.draw(s,a.TRIANGLES,r,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,u,"skyboxGradient",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(t,r,c,s,h)},debug:function(e,t,i){for(let r=0;r<i.length;r++)Sr(e,t,i[r])},custom:function(t,i,r){const n=t.context,o=r.implementation;if(t.transform.projection.unsupportedLayers&&t.transform.projection.unsupportedLayers.includes("custom"))e.warnOnce("Custom layers are not yet supported with non-mercator projections. Use mercator to enable custom layers.");else if("offscreen"===t.renderPass){const e=o.prerender;e&&(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),e.call(o,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(e.StencilMode.disabled);const i="3d"===o.renderingMode?new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,e.DepthMode.ReadOnly);n.setDepthMode(i),o.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}};class Fr{constructor(t,i){this.context=new Me(t),this.transform=i,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=e.SourceCache.maxUnderzooming+e.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wt,this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={}}updateTerrain(e,t){const i=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(i||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new ki(this,e));const r=this._terrain;this.transform.elevation=i?r:null,r.update(e,this.transform,t)}_updateFog(e){const t=e.fog;if(!t||"globe"===this.transform.projection.name||t.getOpacity(this.transform.pitch)<1||t.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[i,r]=t.getFovAdjustedRange(this.transform._fov);if(i>r)return void(this.transform.fogCullDistSq=null);const n=i+.78*(r-i);this.transform.fogCullDistSq=n*n}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(t,i){if(this.width=t*e.exported.devicePixelRatio,this.height=i*e.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._layers[e].resize()}setup(){const t=this.context,i=new e.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(e.EXTENT,0),i.emplaceBack(0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(i,e.posAttributes.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);const r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,e.posAttributes.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);const n=new e.StructArrayLayout2i4;n.emplaceBack(-1,-1),n.emplaceBack(1,-1),n.emplaceBack(-1,1),n.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(n,e.posAttributes.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);const o=new e.StructArrayLayout4i8;o.emplaceBack(0,0,0,0),o.emplaceBack(e.EXTENT,0,e.EXTENT,0),o.emplaceBack(0,e.EXTENT,0,e.EXTENT),o.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.mercatorBoundsBuffer=t.createVertexBuffer(o,e.boundsAttributes.members),this.mercatorBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);const s=new e.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s);const a=new e.StructArrayLayout1ui2;for(const e of[0,1,3,2,0])a.emplaceBack(e);this.debugIndexBuffer=t.createIndexBuffer(a),this.emptyTexture=new e.Texture(t,new e.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),t.gl.RGBA),this.identityMat=e.create();const l=this.context.gl;this.stencilClearMode=new e.StencilMode({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(e.window.performance.now()),this.atmosphereBuffer=new Br(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(e){return e._makeTileBoundsBuffers(this.context,this.transform.projection),e._tileBoundsBuffer?{tileBoundsBuffer:e._tileBoundsBuffer,tileBoundsIndexBuffer:e._tileBoundsIndexBuffer,tileBoundsSegments:e._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const t=this.context,i=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(t,i.TRIANGLES,e.DepthMode.disabled,this.stencilClearMode,e.ColorMode.disabled,e.CullFaceMode.disabled,Ii(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(t,i,r){if(!i||this.currentStencilSource===i.id||!t.isTileClipped()||!r||0===r.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let e=!1;for(const t of r)if(void 0===this._tileClippingMaskIDs[t.key]){e=!0;break}if(!e)return}this.currentStencilSource=i.id;const n=this.context,o=n.gl;this.nextStencilID+r.length>256&&this.clearStencil(),n.setColorMode(e.ColorMode.disabled),n.setDepthMode(e.DepthMode.disabled);const s=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const t of r){const r=i.getTile(t),a=this._tileClippingMaskIDs[t.key]=this.nextStencilID++,{tileBoundsBuffer:l,tileBoundsIndexBuffer:c,tileBoundsSegments:h}=this.getTileBoundsBuffers(r);s.draw(n,o.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:o.ALWAYS,mask:0},a,255,o.KEEP,o.KEEP,o.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,Ii(t.projMatrix),"$clipping",l,c,h)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,i=this.context.gl;return new e.StencilMode({func:i.NOTEQUAL,mask:255},t,255,i.KEEP,i.KEEP,i.REPLACE)}stencilModeForClipping(t){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(t);const i=this.context.gl;return new e.StencilMode({func:i.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,i.KEEP,i.KEEP,i.REPLACE)}stencilConfigForOverlap(t){const i=this.context.gl,r=t.sort(((e,t)=>t.overscaledZ-e.overscaledZ)),n=r[r.length-1].overscaledZ,o=r[0].overscaledZ-n+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();const t={};for(let r=0;r<o;r++)t[r+n]=new e.StencilMode({func:i.GEQUAL,mask:255},r+this.nextStencilID,255,i.KEEP,i.KEEP,i.REPLACE);return this.nextStencilID+=o,[t,r]}return[{[n]:e.StencilMode.disabled},r]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const i=1/8;return new e.ColorMode([t.CONSTANT_COLOR,t.ONE],new e.Color(i,i,i,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?e.ColorMode.unblended:e.ColorMode.alphaBlended}depthModeForSublayer(t,i,r){if(!this.opaquePassEnabledForLayer())return e.DepthMode.disabled;const n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new e.DepthMode(r||this.context.gl.LEQUAL,i,[n,n])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(t,i){this.style=t,this.options=i,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.exported.now()),this.imageManager.beginFrame();const r=this.style.order,n=this.style._sourceCaches;for(const e in n){const t=n[e];t.used&&t.prepare(this.context)}const o={},s={},a={};for(const e in n){const t=n[e];o[e]=t.getVisibleCoordinates(),s[e]=o[e].slice().reverse(),a[e]=t.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let e=0;e<r.length;e++)if(this.style._layers[r[e]].is3D()){this.opaquePassCutoff=e;break}if(this.terrain&&(this.terrain.updateTileBinding(a),this.opaquePassCutoff=0),"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new e.GlobeSharedBuffers(this.context)),e.isMapAuthenticated(this.context.gl)){this.renderPass="offscreen";for(const e of r){const i=this.style._layers[e],r=t._getLayerSourceCache(i);if(!i.hasOffscreenPass()||i.isHidden(this.transform.zoom))continue;const n=r?s[r.id]:void 0;("custom"===i.type||i.isSky()||n&&n.length)&&this.renderLayer(this,r,i,n)}if(this.depthRangeFor3D=[0,1-(t.order.length+2)*this.numSublayers*this.depthEpsilon],this.terrain&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&this.terrain.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]),this.context.clear({color:i.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=i.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=r.length-1;this.currentLayer>=0;this.currentLayer--){const e=this.style._layers[r[this.currentLayer]],i=t._getLayerSourceCache(e);if(e.isSky())continue;const n=i?s[i.id]:void 0;this._renderTileClippingMasks(e,i,n),this.renderLayer(this,i,e,n)}if(this.style.fog&&this.transform.projection.supportsFog&&function(t,i){const r=t.context,n=r.gl,o=t.transform,s=new e.DepthMode(n.LEQUAL,e.DepthMode.ReadOnly,[0,1]),a=t.useProgram("globeAtmosphere",null,"globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),l=e.globeToMercatorTransition(o.zoom),c=i.properties.get("color").toArray01(),h=i.properties.get("high-color").toArray01(),u=i.properties.get("space-color").toArray01PremultipliedAlpha(),p=e.identity$1([]);e.rotateY$1(p,p,-e.degToRad(o._center.lng)),e.rotateX$1(p,p,e.degToRad(o._center.lat)),e.rotateZ$1(p,p,o.angle),e.rotateX$1(p,p,-o._pitch);const d=e.fromQuat(new Float32Array(16),p),f=e.mapValue(i.properties.get("star-intensity"),0,1,0,.25),m=5e-4,_=e.mapValue(i.properties.get("horizon-blend"),0,1,m,.25),g=e.globeUseCustomAntiAliasing(t,r,o)&&_===m?o.worldSize/(2*Math.PI*1.025)-1:o.globeRadius,y=t.frameCounter/1e3%1,x=e.length(o.globeCenterInViewSpace),v=Math.sqrt(Math.pow(x,2)-Math.pow(g,2)),b=Math.acos(v/x),w=((t,i,r,n,o,s,a,l,c,h,u,p,d,f)=>({u_frustum_tl:t,u_frustum_tr:i,u_frustum_br:r,u_frustum_bl:n,u_horizon:o,u_transition:s,u_fadeout_range:a,u_color:l,u_high_color:c,u_space_color:h,u_star_intensity:u,u_star_size:5*e.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:p,u_horizon_angle:d,u_rotation_matrix:f}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,l,_,c,h,u,f,y,b,d);t.prepareDrawProgram(r,a);const T=t.atmosphereBuffer;T&&a.draw(r,n.TRIANGLES,s,e.StencilMode.disabled,e.ColorMode.alphaBlended,e.CullFaceMode.backCW,w,"skybox",T.vertexBuffer,T.indexBuffer,T.segments)}(this,this.style.fog),this.renderPass="sky",(e.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<r.length;this.currentLayer++){const e=this.style._layers[r[this.currentLayer]],i=t._getLayerSourceCache(e);e.isSky()&&this.renderLayer(this,i,e,i?s[i.id]:void 0)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<r.length;){const e=this.style._layers[r[this.currentLayer]],i=t._getLayerSourceCache(e);if(e.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(e)){if(e.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const n=i?("symbol"===e.type?a:s)[i.id]:void 0;this._renderTileClippingMasks(e,i,i?o[i.id]:void 0),this.renderLayer(this,i,e,n),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry){let i=null;e.values(this.style._layers).forEach((e=>{const r=t._getLayerSourceCache(e);r&&!e.isHidden(this.transform.zoom)&&(!i||i.getSource().maxzoom<r.getSource().maxzoom)&&(i=r)})),i&&this.options.showTileBoundaries&&Rr.debug(this,i,i.getVisibleCoordinates())}this.options.showPadding&&function(e){const t=e.transform.padding;Mr(e,e.transform.height-(t.top||0),3,vr),Mr(e,t.bottom||0,3,br),Ir(e,t.left||0,3,wr),Ir(e,e.transform.width-(t.right||0),3,Tr);const i=e.transform.centerPoint;!function(e,t,i,r){Ar(e,t-1,i-10,2,20,r),Ar(e,t-10,i-1,20,2,r)}(e,i.x,e.transform.height-i.y,Er)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(e.window.performance.now()),this.saveCanvasCopy())}}renderLayer(e,t,i,r){i.isHidden(this.transform.zoom)||("background"===i.type||"sky"===i.type||"custom"===i.type||r&&r.length)&&(this.id=i.id,this.gpuTimingStart(i),e.transform.projection.unsupportedLayers&&e.transform.projection.unsupportedLayers.includes(i.type)||Rr[i.type](e,t,i,r,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;let i=this.gpuTimers[e.id];i||(i=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),i.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,i.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const e=this.context.extTimerQuery,t=e.createQueryEXT();this.deferredRenderGpuTimeQueries.push(t),e.beginQueryEXT(e.TIME_ELAPSED_EXT,t)}}gpuTimingDeferredRenderEnd(){if(!this.options.gpuTimingDeferredRender)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}collectDeferredRenderGpuQueries(){const e=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],e}queryGpuTimers(e){const t={};for(const i in e){const r=e[i],n=this.context.extTimerQuery,o=n.getQueryObjectEXT(r.query,n.QUERY_RESULT_EXT)/1e6;n.deleteQueryEXT(r.query),t[i]=o}return t}queryGpuTimeDeferredRender(e){if(!this.options.gpuTimingDeferredRender)return 0;const t=this.context.extTimerQuery;let i=0;for(const r of e)i+=t.getQueryObjectEXT(r,t.QUERY_RESULT_EXT)/1e6,t.deleteQueryEXT(r);return i}translatePosMatrix(t,i,r,n,o){if(!r[0]&&!r[1])return t;const s=o?"map"===n?this.transform.angle:0:"viewport"===n?-this.transform.angle:0;if(s){const e=Math.sin(s),t=Math.cos(s);r=[r[0]*t-r[1]*e,r[0]*e+r[1]*t]}const a=[o?r[0]:D(i,r[0],this.transform.zoom),o?r[1]:D(i,r[1],this.transform.zoom),0],l=new Float32Array(16);return e.translate(l,t,a),l}saveTileTexture(e){const t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;const t=this.imageManager.getPattern(e.from.toString()),i=this.imageManager.getPattern(e.to.toString());return!t||!i}currentGlobalDefines(){const e=this.terrain&&this.terrain.renderingToTexture,t=this.style&&this.style.fog,i=[];return this.terrain&&!this.terrain.renderingToTexture&&i.push("TERRAIN"),t&&!e&&0!==t.getOpacity(this.transform.pitch)&&i.push("FOG"),e&&i.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&i.push("OVERDRAW_INSPECTOR"),i}useProgram(e,t,i){this.cache=this.cache||{};const r=i||[],n=this.currentGlobalDefines().concat(r),o=Di.cacheKey(pi[e],e,n,t);return this.cache[o]||(this.cache[o]=new Di(this.context,e,pi[e],t,lr[e],n)),this.cache[o]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(t,i,r){if(this.terrain&&this.terrain.renderingToTexture)return;const n=this.style.fog;if(n){const o=n.getOpacity(this.transform.pitch),s=((t,i,r,n,o,s,a,l,c,h,u)=>{const p=t.transform,d=i.properties.get("color").toArray01();d[3]=n;const f=t.frameCounter/1e3%1;return{u_fog_matrix:r?p.calculateFogTileMatrix(r):t.identityMat,u_fog_range:i.getFovAdjustedRange(p._fov),u_fog_color:d,u_fog_horizon_blend:i.properties.get("horizon-blend"),u_fog_temporal_offset:f,u_frustum_tl:o,u_frustum_tr:s,u_frustum_br:a,u_frustum_bl:l,u_globe_pos:c,u_globe_radius:h,u_viewport:u,u_globe_transition:e.globeToMercatorTransition(p.zoom),u_is_globe:+("globe"===p.projection.name)}})(this,n,r,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*e.exported.devicePixelRatio,this.transform.height*e.exported.devicePixelRatio]);i.setFogUniformValues(t,s)}}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}getBackgroundTiles(){const t=this._backgroundTiles,i=this._backgroundTiles={},r=this.transform.coveringTiles({tileSize:512});for(const n of r)i[n.key]=t[n.key]||new e.Tile(n,512,this.transform.tileZoom,this);return i}clearBackgroundTiles(){this._backgroundTiles={}}}class Or{constructor(e=0,t=0,i=0,r=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(i)||i<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=i,this.right=r}interpolate(t,i,r){return null!=i.top&&null!=t.top&&(this.top=e.number(t.top,i.top,r)),null!=i.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,i.bottom,r)),null!=i.left&&null!=t.left&&(this.left=e.number(t.left,i.left,r)),null!=i.right&&null!=t.right&&(this.right=e.number(t.right,i.right,r)),this}getCenter(t,i){const r=e.clamp((this.left+t-this.right)/2,0,t),n=e.clamp((this.top+i-this.bottom)/2,0,i);return new e.pointGeometry(r,n)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new Or(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Ur(t,i){const r=e.getColumn(t,3);e.fromQuat(t,i),e.setColumn(t,3,r)}function Vr(t,i){const r=e.identity$1([]);return e.rotateZ$1(r,r,-i),e.rotateX$1(r,r,-t),r}function jr(t,i){const r=[t[0],t[1],0],n=[i[0],i[1],0];if(e.length(r)>=1e-15){const t=e.normalize([],r);e.scale$2(n,t,e.dot(n,t)),i[0]=n[0],i[1]=n[1]}const o=e.cross([],i,t);if(e.len(o)<1e-15)return null;const s=Math.atan2(-o[1],o[0]);return Vr(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),s)}class Nr{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){if(t){const i=t instanceof e.MercatorCoordinate?t:new e.MercatorCoordinate(t[0],t[1],t[2]);this._renderWorldCopies&&(i.x=e.wrap(i.x,0,1)),this._position=i}else this._position=null}lookAtPoint(t,i){if(this.orientation=null,!this.position)return;const r=this._elevation?this._elevation.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(t)):0,n=this.position,o=e.MercatorCoordinate.fromLngLat(t,r),s=[o.x-n.x,o.y-n.y,o.z-n.z];i||(i=[0,0,1]),i[2]=Math.abs(i[2]),this.orientation=jr(s,i)}setPitchBearing(t,i){this.orientation=Vr(e.degToRad(t),e.degToRad(-i))}}class Gr{constructor(t,i){this._transform=e.identity([]),this.orientation=i,this.position=t}get mercatorPosition(){const t=this.position;return new e.MercatorCoordinate(t[0],t[1],t[2])}get position(){const t=e.getColumn(this._transform,3);return[t[0],t[1],t[2]]}set position(t){var i;t&&e.setColumn(this._transform,3,[(i=t)[0],i[1],i[2],1])}get orientation(){return this._orientation}set orientation(t){this._orientation=t||e.identity$1([]),t&&Ur(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=Vr(e,t),Ur(this._transform,this._orientation)}forward(){const t=e.getColumn(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=e.getColumn(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=e.getColumn(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(t,i){const r=new Float64Array(16);return e.invert(r,this.getWorldToCamera(t,i)),r}getWorldToCameraPosition(t,i,r){const n=this.position;e.scale$2(n,n,-t);const o=new Float64Array(16);return e.fromScaling(o,[r,r,r]),e.translate(o,o,n),o[10]*=i,o}getWorldToCamera(t,i){const r=new Float64Array(16),n=new Float64Array(4),o=this.position;return e.conjugate(n,this._orientation),e.scale$2(o,o,-t),e.fromQuat(r,n),e.translate(r,r,o),r[1]*=-1,r[5]*=-1,r[9]*=-1,r[13]*=-1,r[8]*=i,r[9]*=i,r[10]*=i,r[11]*=i,r}getCameraToClipPerspective(t,i,r,n){const o=new Float64Array(16);return e.perspective(o,t,i,r,n),o}getDistanceToElevation(t){const i=0===t?0:e.mercatorZfromAltitude(t,this.position[1]),r=this.forward();return(i-this.position[2])/r[2]}clone(){return new Gr([...this.position],[...this.orientation])}}function Zr(t,i){const r=qr(t.projection,t.zoom,t.width,t.height),n=function(t,i,r,n,o){const s=new e.LngLat(r.lng-180*Xr,r.lat),a=new e.LngLat(r.lng+180*Xr,r.lat),l=t.project(s.lng,s.lat),c=t.project(a.lng,a.lat),h=-Math.atan2(c.y-l.y,c.x-l.x),u=e.MercatorCoordinate.fromLngLat(r);u.y=e.clamp(u.y,-.999975,.999975);const p=u.toLngLat(),d=t.project(p.lng,p.lat),f=e.MercatorCoordinate.fromLngLat(p);f.x+=Xr;const m=f.toLngLat(),_=t.project(m.lng,m.lat),g=Hr(_.x-d.x,_.y-d.y,h),y=e.MercatorCoordinate.fromLngLat(p);y.y+=Xr;const x=y.toLngLat(),v=t.project(x.lng,x.lat),b=Hr(v.x-d.x,v.y-d.y,h),w=Math.abs(g.x)/Math.abs(b.y),T=e.identity([]);e.rotateZ(T,T,-h*(1-(o?0:n)));const E=e.identity([]);return e.scale(E,E,[1,1-(1-w)*n,1]),E[4]=-b.x/b.y*n,e.rotateZ(E,E,h),e.multiply(E,T,E),E}(t.projection,0,t.center,r,i),o=$r(t);return e.scale(n,n,[o,o,1]),n}function $r(t){const i=t.projection,r=qr(t.projection,t.zoom,t.width,t.height),n=Wr(i,t.center),o=Wr(i,e.LngLat.convert(i.center));return Math.pow(2,n*r+(1-r)*o)}function qr(t,i,r,n,o=1/0){const s=t.range;if(!s)return 0;const a=Math.min(o,Math.max(r,n)),l=Math.log(a/1024)/Math.LN2;return e.smoothstep(s[0]+l,s[1]+l,i)}const Xr=1/4e4;function Wr(t,i){const r=e.clamp(i.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),n=new e.LngLat(i.lng-180*Xr,r),o=new e.LngLat(i.lng+180*Xr,r),s=t.project(n.lng,r),a=t.project(o.lng,r),l=e.MercatorCoordinate.fromLngLat(n),c=e.MercatorCoordinate.fromLngLat(o),h=a.x-s.x,u=a.y-s.y,p=c.x-l.x,d=c.y-l.y,f=Math.sqrt((p*p+d*d)/(h*h+u*u));return Math.log(f)/Math.LN2}function Hr(e,t,i){const r=Math.cos(i),n=Math.sin(i);return{x:e*r-t*n,y:e*n+t*r}}class Yr{constructor(t,i,r,n,o,s,a){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=i||22,this._minPitch=null==r?0:r,this._maxPitch=null==n?60:n,this.setProjection(s),this.setMaxBounds(a),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new Or,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new Gr,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const e=new Yr(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(e){const t=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||t)&&this._updateCameraOnTerrain(),(e||t)&&this._constrainCameraAltitude(),this._calcMatrices()}getProjection(){return e.pick(this.projection,["name","center","parallels"])}setProjection(i){this.projectionOptions=i||{name:"mercator"};const r=this.projection?this.getProjection():void 0;this.projection=e.getProjection(this.projectionOptions);const n=!t(r,this.getProjection());return n&&this._calcMatrices(),this.mercatorFromTransition=!1,n}setMercatorFromTransition(){const t=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=e.getProjection({name:"mercator"});const i=t!==this.projection.name;return i&&this._calcMatrices(),i}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return e.mercatorZfromAltitude(this.center.lat,this.cameraWorldSize)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.pointGeometry(this.width,this.height)}get bearing(){return e.wrap(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(t){const i=-t*Math.PI/180;var r;this.angle!==i&&(this._unmodified=!1,this.angle=i,this._calcMatrices(),this.rotationMatrix=(r=new e.ARRAY_TYPE(4),e.ARRAY_TYPE!=Float32Array&&(r[1]=0,r[2]=0),r[0]=1,r[3]=1,r),function(e,t,i){var r=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);e[0]=r*l+o*a,e[1]=n*l+s*a,e[2]=r*-a+o*l,e[3]=n*-a+s*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const i=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const e=this._elevation;this._centerAltitude=e.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=e.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const t=this._elevation,i=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],r=this.horizonLineFromTop();let n=0,o=0;for(let s=0;s<i.length;s++){const a=new e.pointGeometry(i[s][0]*this.width,r+i[s][1]*(this.height-r)),l=t.pointCoordinate(a);if(!l)continue;const c=1/Math.hypot(l[0]-this._camera.position[0],l[1]-this._camera.position[1]);n+=l[3]*c,o+=c}return 0===o?NaN:n/o}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const e=this._seaLevelZoom,t=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),i=this.pixelsPerMeter/this.worldSize*t,r=this._mercatorZfromZoom(e),n=this._mercatorZfromZoom(this._maxZoom),o=Math.max(r-i,n);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}computeZoomRelativeTo(t){const i=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,t.toAltitude()));let r;r=t.z<this._camera.position[2]?[i.x,i.y,i.z]:[t.x,t.y,t.z];const n=e.length(e.sub([],this._camera.position,r));return e.clamp(this._zoomFromMercatorZ(n),this._minZoom,this._maxZoom)}setFreeCameraOptions(t){if(!this.height)return;if(!t.position&&!t.orientation)return;this._updateCameraState();let i=!1;if(t.orientation&&!e.exactEquals(t.orientation,this._camera.orientation)&&(i=this._setCameraOrientation(t.orientation)),t.position){const r=[t.position.x,t.position.y,t.position.z];e.exactEquals$1(r,this._camera.position)||(this._setCameraPosition(r),i=!0)}i&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const t=this._camera.position,i=new Nr;return i.position=new e.MercatorCoordinate(t[0],t[1],t[2]),i.orientation=this._camera.orientation,i._elevation=this.elevation,i._renderWorldCopies=this.renderWorldCopies,i}_setCameraOrientation(t){if(!e.length$1(t))return!1;e.normalize$1(t,t);const i=e.transformQuat([],[0,0,-1],t),r=e.transformQuat([],[0,-1,0],t);if(r[2]<0)return!1;const n=jr(i,r);return!!n&&(this._camera.orientation=n,!0)}_setCameraPosition(t){const i=this.zoomScale(this.minZoom)*this.tileSize,r=this.zoomScale(this.maxZoom)*this.tileSize,n=this.cameraToCenterDistance;t[2]=e.clamp(t[2],n/r,n/i),this._camera.position=t}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,i){this._unmodified=!1,this._edgeInsets.interpolate(e,t,i),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const i=[new e.UnwrappedTileID(0,t)];if(this.renderWorldCopies){const r=this.pointCoordinate(new e.pointGeometry(0,0)),n=this.pointCoordinate(new e.pointGeometry(this.width,0)),o=this.pointCoordinate(new e.pointGeometry(this.width,this.height)),s=this.pointCoordinate(new e.pointGeometry(0,this.height)),a=Math.floor(Math.min(r.x,n.x,o.x,s.x)),l=Math.floor(Math.max(r.x,n.x,o.x,s.x)),c=1;for(let r=a-c;r<=l+c;r++)0!==r&&i.push(new e.UnwrappedTileID(r,t))}return i}coveringTiles(t){let i=this.coveringZoomLevel(t);const r=i,n=this.elevation&&!t.isTerrainDEM,o="mercator"===this.projection.name;if(void 0!==t.minzoom&&i<t.minzoom)return[];void 0!==t.maxzoom&&i>t.maxzoom&&(i=t.maxzoom);const s=this.locationCoordinate(this.center),a=this.center.lat,l=1<<i,c=[l*s.x,l*s.y,0],h="globe"===this.projection.name,u=!h,p=e.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,i,u),d=h?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),f=l*e.mercatorZfromAltitude(1,this.center.lat),m=this._camera.position[2]/e.mercatorZfromAltitude(1,this.center.lat),_=[l*d.x,l*d.y,m*(u?1:f)],g=this.cameraToCenterDistance/t.tileSize*(t.roundZoom?1:.502),y=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?i:0,x=t.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,v=t.isTerrainDEM?-x:this._elevation?this._elevation.getMinElevationBelowMSL():0,b=this.projection.isReprojectedInTileSpace?$r(this):1,w=t=>{const i=1/4e4,r=new e.MercatorCoordinate(t.x+i,t.y,t.z),n=new e.MercatorCoordinate(t.x,t.y+i,t.z),o=t.toLngLat(),s=r.toLngLat(),a=n.toLngLat(),l=this.locationCoordinate(o),c=this.locationCoordinate(s),h=this.locationCoordinate(a),u=Math.hypot(c.x-l.x,c.y-l.y),p=Math.hypot(h.x-l.x,h.y-l.y);return Math.sqrt(u*p)*b/i},T=t=>{const i=x,r=v;return{aabb:e.tileAABB(this,l,0,0,0,t,r,i,this.projection),zoom:0,x:0,y:0,minZ:r,maxZ:i,wrap:t,fullyVisible:!1}},E=[];let S=[];const M=i,I=t.reparseOverscaled?r:i,A=e=>e*e,C=A((m-this._centerAltitude)*f),z=e=>{if(!this._elevation||!e.tileID||!o)return;const t=this._elevation.getMinMaxForTile(e.tileID),i=e.aabb;t?(i.min[2]=t.min,i.max[2]=t.max,i.center[2]=(i.min[2]+i.max[2])/2):(e.shouldSplit=P(e),e.shouldSplit||(i.min[2]=i.max[2]=i.center[2]=this._centerAltitude))},P=t=>{if(t.zoom<y)return!0;if(t.zoom===M)return!1;if(null!=t.shouldSplit)return t.shouldSplit;const i=t.aabb.distanceX(_),o=t.aabb.distanceY(_);let s=C,l=1;if(h){s=A(t.aabb.distanceZ(_));const i=Math.pow(2,t.zoom),r=e.latFromMercatorY((t.y+1)/i),n=e.latFromMercatorY(t.y/i),o=Math.min(Math.max(a,r),n),c=e.circumferenceAtLatitude(o)/e.circumferenceAtLatitude(a);if(l=o===a?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,c/this._mercatorScaleRatio),this.zoom<=e.GLOBE_ZOOM_THRESHOLD_MIN&&t.zoom===M-1&&c>=.9)return!0}else if(n&&(s=A(t.aabb.distanceZ(_)*f)),this.projection.isReprojectedInTileSpace&&r<=5){const i=Math.pow(2,t.zoom),r=w(new e.MercatorCoordinate((t.x+.5)/i,(t.y+.5)/i));l=r>.85?1:r}const c=i*i+o*o+s;return c<A((1<<M-t.zoom)*g*l*((e,t)=>{if(t*A(.707)<e)return 1;const i=Math.sqrt(t/e);return i/(1.4144271570014144+(Math.pow(1.1,i-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(s,C),c))};if(this.renderWorldCopies)for(let e=1;e<=3;e++)E.push(T(-e)),E.push(T(e));for(E.push(T(0));E.length>0;){const r=E.pop(),s=r.x,a=r.y;let u=r.fullyVisible;if(!u){const e=r.aabb.intersects(p);if(0===e)continue;u=2===e}if(r.zoom!==M&&P(r))for(let t=0;t<4;t++){const i=(s<<1)+t%2,c=(a<<1)+(t>>1),p={aabb:o?r.aabb.quadrant(t):e.tileAABB(this,l,r.zoom+1,i,c,r.wrap,r.minZ,r.maxZ,this.projection),zoom:r.zoom+1,x:i,y:c,wrap:r.wrap,fullyVisible:u,tileID:void 0,shouldSplit:void 0,minZ:r.minZ,maxZ:r.maxZ};n&&!h&&(p.tileID=new e.OverscaledTileID(r.zoom+1===M?I:r.zoom+1,r.wrap,r.zoom+1,i,c),z(p)),E.push(p)}else{const n=r.zoom===M?I:r.zoom;if(t.minzoom&&t.minzoom>n)continue;const o=c[0]-(.5+s+(r.wrap<<r.zoom))*(1<<i-r.zoom),l=c[1]-.5-a,h=r.tileID?r.tileID:new e.OverscaledTileID(n,r.wrap,r.zoom,s,a);S.push({tileID:h,distanceSq:o*o+l*l})}}if(this.fogCullDistSq){const i=this.fogCullDistSq,r=this.horizonLineFromTop();S=S.filter((n=>{const o=[0,0,0,1],s=[e.EXTENT,e.EXTENT,0,1],a=this.calculateFogTileMatrix(n.tileID.toUnwrapped());e.transformMat4$1(o,o,a),e.transformMat4$1(s,s,a);const l=e.getAABBPointSquareDist(o,s);if(0===l)return!0;let c=!1;const h=this._elevation;if(h&&l>i&&0!==r){const i=this.calculateProjMatrix(n.tileID.toUnwrapped());let o;t.isTerrainDEM||(o=h.getMinMaxForTile(n.tileID)),o||(o={min:v,max:x});const s=e.furthestTileCorner(this.rotation),a=[s[0]*e.EXTENT,s[1]*e.EXTENT,o.max];e.transformMat4(a,a,i),c=(1-a[1])*this.height*.5<r}return l<i||c}))}return S.sort(((e,t)=>e.distanceSq-t.distanceSq)).map((e=>e.tileID))}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const i=e.clamp(t.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),r=this.projection.project(t.lng,i);return new e.pointGeometry(r.x*this.worldSize,r.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}setLocationAtPoint(t,i){let r,n;const o=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;r=(i.x-o.x)/e,n=(i.y-o.y)/e}else{const e=this.pointCoordinate(i),t=this.pointCoordinate(o);r=e.x-t.x,n=e.y-t.y}const s=this.locationCoordinate(t);this.setLocation(new e.MercatorCoordinate(s.x-r,s.y-n))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e){return this.projection.locationPoint(this,e)}locationPoint3D(e){return this.projection.locationPoint(this,e,!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(t,i){const r=i?e.mercatorZfromAltitude(i,t.lat):void 0,n=this.projection.project(t.lng,t.lat);return new e.MercatorCoordinate(n.x,n.y,r)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(t,i){const r=null!=i?i:this._centerAltitude,n=[t.x,t.y,0,1],o=[t.x,t.y,1,1];e.transformMat4$1(n,n,this.pixelMatrixInverse),e.transformMat4$1(o,o,this.pixelMatrixInverse);const s=o[3];e.scale$1(n,n,1/n[3]),e.scale$1(o,o,1/s);const a=n[2],l=o[2];return{p0:n,p1:o,t:a===l?0:(r-a)/(l-a)}}screenPointToMercatorRay(t){const i=[t.x,t.y,0,1],r=[t.x,t.y,1,1];return e.transformMat4$1(i,i,this.pixelMatrixInverse),e.transformMat4$1(r,r,this.pixelMatrixInverse),e.scale$1(i,i,1/i[3]),e.scale$1(r,r,1/r[3]),i[2]=e.mercatorZfromAltitude(i[2],this._center.lat)*this.worldSize,r[2]=e.mercatorZfromAltitude(r[2],this._center.lat)*this.worldSize,e.scale$1(i,i,1/this.worldSize),e.scale$1(r,r,1/this.worldSize),new e.Ray([i[0],i[1],i[2]],e.normalize([],e.sub([],r,i)))}rayIntersectionCoordinate(t){const{p0:i,p1:r,t:n}=t,o=e.mercatorZfromAltitude(i[2],this._center.lat),s=e.mercatorZfromAltitude(r[2],this._center.lat);return new e.MercatorCoordinate(e.number(i[0],r[0],n)/this.worldSize,e.number(i[1],r[1],n)/this.worldSize,e.number(o,s,n))}pointCoordinate(e,t=this._centerAltitude){return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(t){if(!this.elevation)return this.pointCoordinate(t);let i=this.projection.pointCoordinate3D(this,t.x,t.y);if(i)return new e.MercatorCoordinate(i[0],i[1],i[2]);let r=0,n=this.horizonLineFromTop();if(t.y>n)return this.pointCoordinate(t);const o=.02*n,s=t.clone();for(let t=0;t<10&&n-r>o;t++){s.y=e.number(r,n,.66);const t=this.projection.pointCoordinate3D(this,s.x,s.y);t?(n=s.y,i=t):r=s.y}return i?new e.MercatorCoordinate(i[0],i[1],i[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){return this.projection.isPointAboveHorizon(this,e)}_coordinatePoint(t,i){const r=i&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,n=[t.x*this.worldSize,t.y*this.worldSize,r+t.toAltitude(),1];return e.transformMat4$1(n,n,this.pixelMatrix),n[3]>0?new e.pointGeometry(n[0]/n[3],n[1]/n[3]):new e.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}_getBounds(t,i){const r=new e.pointGeometry(this._edgeInsets.left,this._edgeInsets.top),n=new e.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top),o=new e.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom),s=new e.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom);let a=this.pointCoordinate(r,t),l=this.pointCoordinate(n,t);const c=this.pointCoordinate(o,i),h=this.pointCoordinate(s,i),u=(e,t)=>(t.y-e.y)/(t.x-e.x);return a.y>1&&l.y>=0?a=new e.MercatorCoordinate((1-h.y)/u(h,a)+h.x,1):a.y<0&&l.y<=1&&(a=new e.MercatorCoordinate(-h.y/u(h,a)+h.x,0)),l.y>1&&a.y>=0?l=new e.MercatorCoordinate((1-c.y)/u(c,l)+c.x,1):l.y<0&&a.y<=1&&(l=new e.MercatorCoordinate(-c.y/u(c,l)+c.x,0)),(new e.LngLatBounds).extend(this.coordinateLocation(a)).extend(this.coordinateLocation(l)).extend(this.coordinateLocation(h)).extend(this.coordinateLocation(c))}_getBounds3D(){const e=this.elevation;if(!e.visibleDemTiles.length)return this._getBounds(0,0);const t=e.visibleDemTiles.reduce(((e,t)=>{if(t.dem){const i=t.dem.tree;e.min=Math.min(e.min,i.minimums[0]),e.max=Math.max(e.max,i.maximums[0])}return e}),{min:Number.MAX_VALUE,max:0});return this._getBounds(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return this._terrainEnabled()?this._getBounds3D():this._getBounds(0,0)}horizonLineFromTop(e=!0){const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,i=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,i):i}getMaxBounds(){return this.maxBounds}setMaxBounds(t){this.maxBounds=t,this.minLat=-e.MAX_MERCATOR_LATITUDE,this.maxLat=e.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,t&&(this.minLat=t.getSouth(),this.maxLat=t.getNorth(),this.minLng=t.getWest(),this.maxLng=t.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=e.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=e.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=e.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=e.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(e,t){return this.projection.createTileMatrix(this,t,e)}calculateDistanceTileData(t){const i=t.key,r=this._distanceTileDataCache;if(r[i])return r[i];const n=t.canonical,o=1/this.height,s=this.cameraWorldSize/this.zoomScale(n.z),a=(n.x+Math.pow(2,n.z)*t.wrap)*s,l=n.y*s,c=this.point,h=this.angle,u=Math.sin(-h),p=-Math.cos(-h);return r[i]={bearing:[u,p],center:[(c.x-a)*o,(c.y-l)*o],scale:s/e.EXTENT*o},r[i]}calculateFogTileMatrix(t){const i=t.key,r=this._fogTileMatrixCache;if(r[i])return r[i];const n=this.projection.createTileMatrix(this,this.cameraWorldSize,t);return e.multiply(n,this.worldToFogMatrix,n),r[i]=new Float32Array(n),r[i]}calculateProjMatrix(t,i=!1){const r=t.key,n=i?this._alignedProjMatrixCache:this._projMatrixCache;if(n[r])return n[r];const o=this.calculatePosMatrix(t,this.worldSize);return e.multiply(o,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:i?this.alignedProjMatrix:this.projMatrix,o),n[r]=new Float32Array(o),n[r]}calculatePixelsToTileUnitsMatrix(t){const i=t.tileID.key,r=this._pixelsToTileUnitsCache;if(r[i])return r[i];const n=function(t,i){const{scale:r}=t.tileTransform,n=r*e.EXTENT/(t.tileSize*Math.pow(2,i.zoom-t.tileID.overscaledZ+t.tileID.canonical.z));return o=new Float32Array(4),l=(s=i.inverseAdjustmentMatrix)[1],c=s[2],h=s[3],p=(a=[n,n])[1],o[0]=s[0]*(u=a[0]),o[1]=l*u,o[2]=c*p,o[3]=h*p,o;var o,s,a,l,c,h,u,p}(t,this);return r[i]=n,r[i]}customLayerMatrix(){return this.mercatorMatrix.slice()}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const t=this._elevation;this._updateCameraState();const i=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(i),n=this._camera.forward(),o=e.mercatorZfromAltitude(1,this._center.lat);r[2]/=o,n[2]/=o,e.normalize(n,n);const s=t.raycast(r,n,t.exaggeration());if(s){const t=e.scaleAndAdd([],r,n,s),i=new e.MercatorCoordinate(t[0],t[1],e.mercatorZfromAltitude(t[2],e.latFromMercatorY(t[1]))),a=(i.z+e.length([i.x-r[0],i.y-r[1],i.z-r[2]*o]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(a),this._centerAltitude=i.toAltitude(),this._center=this.coordinateLocation(i),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCameraAltitude(){if(!this._elevation)return;const t=this._elevation;this._updateCameraState();const i=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(i),n=t.getAtPointOrZero(new e.MercatorCoordinate(...r)),o=this._minimumHeightOverTerrain()*Math.cos(e.degToRad(this._maxPitch)),s=this._camera.position[2]-this.pixelsPerMeter/this.worldSize*n;if(s<o){const t=this.locationCoordinate(this._center,this._centerAltitude),i=[t.x-r[0],t.y-r[1],t.z-r[2]],n=e.length(i);i[2]-=(o-s)/this._pixelsPerMercatorPixel;const a=e.length(i);if(0===a)return;e.scale$2(i,i,n/a*this._pixelsPerMercatorPixel),this._camera.position=[t.x-i[0],t.y-i[1],t.z*this._pixelsPerMercatorPixel-i[2]],this._camera.orientation=jr(i,this._camera.up()),this._updateStateFromCamera()}}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const t="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||t){const i=this.center;return i.lat=e.clamp(i.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!t)&&(i.lng=e.clamp(i.lng,this.minLng,this.maxLng)),this.center=i,void(this._constraining=!1)}const i=this._unmodified,{x:r,y:n}=this.point;let o=0,s=r,a=n;const l=this.width/2,c=this.height/2,h=this.worldMinY*this.scale,u=this.worldMaxY*this.scale;if(n-c<h&&(a=h+c),n+c>u&&(a=u-c),u-h<this.height&&(o=Math.max(o,this.height/(u-h)),a=(u+h)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const e=this.worldMinX*this.scale,t=this.worldMaxX*this.scale,i=this.worldSize/2-(e+t)/2;s=(r+i+this.worldSize)%this.worldSize-i,s-l<e&&(s=e+l),s+l>t&&(s=t-l),t-e<this.width&&(o=Math.max(o,this.width/(t-e)),s=(t+e)/2)}s===r&&a===n||(this.center=this.unproject(new e.pointGeometry(s,a))),o&&(this.zoom+=this.scaleZoom(o)),this._constrainCameraAltitude(),this._unmodified=i,this._constraining=!1}_minZoomForBounds(){let e=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(e=Math.max(e,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),e}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const t=this.centerOffset,i=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=e.mercatorZfromAltitude(1,this.center.lat)/e.mercatorZfromAltitude(1,e.GLOBE_SCALE_MATCH_LATITUDE));const r=qr(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,r),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const n=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?i:1),o=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);o[8]=2*-t.x/this.width,o[9]=2*t.y/this.height;let s=e.mul([],o,n);if(this.projection.isReprojectedInTileSpace){const t=this.locationCoordinate(this.center),i=e.identity([]);e.translate(i,i,[t.x*this.worldSize,t.y*this.worldSize,0]),e.multiply(i,i,Zr(this)),e.translate(i,i,[-t.x*this.worldSize,-t.y*this.worldSize,0]),e.multiply(s,s,i),this.inverseAdjustmentMatrix=function(e){const t=Zr(e,!0);return y([],[t[0],t[1],t[4],t[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=e.scale([],s,[this.worldSize,this.worldSize,this.worldSize/i,1]),this.projMatrix=s,this.invProjMatrix=e.invert(new Float64Array(16),this.projMatrix);const a=e.invert([],o);this.frustumCorners=e.FrustumCorners.fromInvProjectionMatrix(a,this.horizonLineFromTop(),this.height);const l=new Float32Array(16);e.identity(l),e.scale(l,l,[1,-1,1]),e.rotateX(l,l,this._pitch),e.rotateZ(l,l,this.angle);const c=e.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),h=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;c[8]=2*-t.x/this.width,c[9]=2*(t.y+h)/this.height,this.skyboxMatrix=e.multiply(l,c,l);const u=this.point,p=u.x,d=u.y,f=this.width%2/2,m=this.height%2/2,_=Math.cos(this.angle),g=Math.sin(this.angle),x=p-Math.round(p)+_*f+g*m,v=d-Math.round(d)+_*m+g*f,b=new Float64Array(s);if(e.translate(b,b,[x>.5?x-1:x,v>.5?v-1:v,0]),this.alignedProjMatrix=b,s=e.create(),e.scale(s,s,[this.width/2,-this.height/2,1]),e.translate(s,s,[1,-1,0]),this.labelPlaneMatrix=s,s=e.create(),e.scale(s,s,[1,-1,1]),e.translate(s,s,[-1,-1,0]),e.scale(s,s,[2/this.width,2/this.height,1]),this.glCoordMatrix=s,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},s=e.invert(new Float64Array(16),this.pixelMatrix),!s)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=s,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=e.calculateGlobeMatrix(this);const t=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=e.transformMat4(t,t,n),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=s;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const t=this.cameraWorldSize,i=this.cameraPixelsPerMeter,r=this._camera.position,n=1/this.height/this._pixelsPerMercatorPixel,o=[t,t,i];e.scale$2(o,o,n),e.scale$2(r,r,-1),e.multiply$2(r,r,o);const s=e.create();e.translate(s,s,r),e.scale(s,s,o),this.mercatorFogMatrix=s,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,i,n)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,i=this._camera.forward(),r=this.point,n=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[r.x/this.worldSize-i[0]*n,r.y/this.worldSize-i[1]*n,e/this.worldSize*this._centerAltitude-i[2]*n]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(t){const i=this._maxCameraBoundsDistance()*Math.cos(this._pitch),r=t[2];let n=1;r>0&&(n=Math.min((i-this._camera.position[2])/r,1)),this._camera.position=e.scaleAndAdd([],this._camera.position,t,n),this._updateStateFromCamera(),this.projection.wrap&&(this.center=this.center.wrap())}_updateStateFromCamera(){const t=this._camera.position,i=this._camera.forward(),{pitch:r,bearing:n}=this._camera.getPitchBearing(),o=e.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,s=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.degToRad(this._maxPitch)),a=Math.max((t[2]-o)/Math.cos(r),s),l=this._zoomFromMercatorZ(a);e.scaleAndAdd(t,t,i,a),this._pitch=e.clamp(r,e.degToRad(this.minPitch),e.degToRad(this.maxPitch)),this.angle=e.wrap(n,-Math.PI,Math.PI),this._setZoom(e.clamp(l,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e.MercatorCoordinate(t[0],t[1],t[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(e.warnOnce("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(t,i){const r=Math.min(t.x,i.x),n=Math.max(t.x,i.x),o=Math.min(t.y,i.y),s=Math.max(t.y,i.y);if(o<this.horizonLineFromTop(!1))return!0;if("mercator"!==this.projection.name)return!1;const a=[new e.pointGeometry(r,o),new e.pointGeometry(n,s),new e.pointGeometry(r,s),new e.pointGeometry(n,o)],l=this.renderWorldCopies?-3:0,c=this.renderWorldCopies?4:1;for(const e of a){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const i=this.rayIntersectionCoordinate(t);if(i.x<l||i.y<0||i.x>c||i.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.pointGeometry(0,0),new e.pointGeometry(this.width,this.height))}zoomDeltaToMovement(t,i){const r=e.length(e.sub([],this._camera.position,t)),n=this._zoomFromMercatorZ(r)+i;return r-this._mercatorZfromZoom(n)}getCameraPoint(){if("globe"===this.projection.name){const t=function(t,i){const r=[t[0],t[1],t[2],1];e.transformMat4$1(r,r,i);const n=Math.max(r[3],1e-6);return[r[0]/n,r[1]/n,r[2]/n,n]}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new e.pointGeometry(t[0],t[1])}{const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.pointGeometry(0,t))}}getCameraToCenterDistance(e){const t=qr(e,this.zoom,this.width,this.height,1024),i=e.pixelSpaceConversion(this.center.lat,this.worldSize,t);return.5/Math.tan(.5*this._fov)*this.height*i}}function Kr(e,t){let i=!1,r=null;const n=()=>{r=null,i&&(e(),r=setTimeout(n,t),i=!1)};return()=>(i=!0,r||n(),r)}class Jr{constructor(t){this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Kr(this._updateHashUnthrottled.bind(this),300)}addTo(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),t.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),e.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const t=this._map;if(!t)return"";const i=Qr(t);if(this._hashName){const t=this._hashName;let r=!1;const n=e.window.location.hash.slice(1).split("&").map((e=>{const n=e.split("=")[0];return n===t?(r=!0,`${n}=${i}`):e})).filter((e=>e));return r||n.push(`${t}=${i}`),`#${n.join("&")}`}return`#${i}`}_getCurrentHash(){const t=e.window.location.hash.replace("#","");if(this._hashName){let e;return t.split("&").map((e=>e.split("="))).forEach((t=>{t[0]===this._hashName&&(e=t)})),(e&&e[1]||"").split("/")}return t.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some((e=>isNaN(e)))){const i=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:i,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){const t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());e.window.history.replaceState(e.window.history.state,null,t)}}function Qr(e,t){const i=e.getCenter(),r=Math.round(100*e.getZoom())/100,n=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,n),s=Math.round(i.lng*o)/o,a=Math.round(i.lat*o)/o,l=e.getBearing(),c=e.getPitch();let h=t?`/${s}/${a}/${r}`:`${r}/${a}/${s}`;return(l||c)&&(h+="/"+Math.round(10*l)/10),c&&(h+=`/${Math.round(c)}`),h}const en={linearity:.3,easing:e.bezier(0,0,.3,1)},tn=e.extend({deceleration:2500,maxSpeed:1400},en),rn=e.extend({deceleration:20,maxSpeed:1400},en),nn=e.extend({deceleration:1e3,maxSpeed:360},en),on=e.extend({deceleration:1e3,maxSpeed:90},en);class sn{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.exported.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,i=e.exported.now();for(;t.length>0&&i-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const i={zoom:0,bearing:0,pitch:0,pan:new e.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)i.zoom+=e.zoomDelta||0,i.bearing+=e.bearingDelta||0,i.pitch+=e.pitchDelta||0,e.panDelta&&i.pan._add(e.panDelta),e.around&&(i.around=e.around),e.pinchAround&&(i.pinchAround=e.pinchAround);const r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,n={};if(i.pan.mag()){const o=ln(i.pan.mag(),r,e.extend({},tn,t||{}));n.offset=i.pan.mult(o.amount/i.pan.mag()),n.center=this._map.transform.center,an(n,o)}if(i.zoom){const e=ln(i.zoom,r,rn);n.zoom=this._map.transform.zoom+e.amount,an(n,e)}if(i.bearing){const t=ln(i.bearing,r,nn);n.bearing=this._map.transform.bearing+e.clamp(t.amount,-179,179),an(n,t)}if(i.pitch){const e=ln(i.pitch,r,on);n.pitch=this._map.transform.pitch+e.amount,an(n,e)}if(n.zoom||n.bearing){const e=void 0===i.pinchAround?i.around:i.pinchAround;n.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),n.noMoveStart=!0,n}}function an(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function ln(t,i,r){const{maxSpeed:n,linearity:o,deceleration:s}=r,a=e.clamp(t*o/(i/1e3),-n,n),l=Math.abs(a)/(s*o);return{easing:r.easing,duration:1e3*l,amount:a*(l/2)}}class cn extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,r,n={}){const o=f(i.getCanvasContainer(),r),s=i.unproject(o);super(t,e.extend({point:o,lngLat:s,originalEvent:r},n)),this._defaultPrevented=!1,this.target=i}}class hn extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,r){const n="touchend"===t?r.changedTouches:r.touches,o=m(i.getCanvasContainer(),n),s=o.map((e=>i.unproject(e))),a=o.reduce(((e,t,i,r)=>e.add(t.div(r.length))),new e.pointGeometry(0,0));super(t,{points:o,point:a,lngLats:s,lngLat:i.unproject(a),originalEvent:r}),this._defaultPrevented=!1}}class un extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,i){super(e,{originalEvent:i}),this._defaultPrevented=!1}}class pn{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new un(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new cn(e.type,this._map,e))}mouseup(e){this._map.fire(new cn(e.type,this._map,e))}preclick(t){const i=e.extend({},t);i.type="preclick",this._map.fire(new cn(i.type,this._map,i))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new cn(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new cn(e.type,this._map,e))}mouseover(e){this._map.fire(new cn(e.type,this._map,e))}mouseout(e){this._map.fire(new cn(e.type,this._map,e))}touchstart(e){return this._firePreventable(new hn(e.type,this._map,e))}touchmove(e){this._map.fire(new hn(e.type,this._map,e))}touchend(e){this._map.fire(new hn(e.type,this._map,e))}touchcancel(e){this._map.fire(new hn(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class dn{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new cn(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new cn("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new cn(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class fn{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(h(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const i=t;if(this._lastPos.equals(i)||!this._box&&i.dist(this._startPos)<this._clickTolerance)return;const r=this._startPos;this._lastPos=i,this._box||(this._box=o("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const n=Math.min(r.x,i.x),s=Math.max(r.x,i.x),a=Math.min(r.y,i.y),l=Math.max(r.y,i.y);this._map._requestDomTask((()=>{this._box&&(this._box.style.transform=`translate(${n}px,${a}px)`,this._box.style.width=s-n+"px",this._box.style.height=l-a+"px")}))}mouseupWindow(t,i){if(!this._active)return;if(0!==t.button)return;const r=this._startPos,n=i;if(this.reset(),d(),r.x!==n.x||r.y!==n.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(r,n,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),u(),delete this._startPos,delete this._lastPos}_fireEvent(t,i){return this._map.fire(new e.Event(t,{originalEvent:i}))}}function mn(e,t){const i={};for(let r=0;r<e.length;r++)i[e[r].identifier]=t[r];return i}class _n{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(t,i,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){const i=new e.pointGeometry(0,0);for(const e of t)i._add(e);return i.div(t.length)}(i),this.touches=mn(r,i)))}touchmove(e,t,i){if(this.aborted||!this.centroid)return;const r=mn(i,t);for(const e in this.touches){const t=this.touches[e],i=r[e];(!i||i.dist(t)>30)&&(this.aborted=!0)}}touchend(e,t,i){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class gn{constructor(e){this.singleTap=new _n(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(e,t,i){this.singleTap.touchstart(e,t,i)}touchmove(e,t,i){this.singleTap.touchmove(e,t,i)}touchend(e,t,i){const r=this.singleTap.touchend(e,t,i);if(r){const t=e.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(r)<30;if(t&&i||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class yn{constructor(){this._zoomIn=new gn({numTouches:1,numTaps:2}),this._zoomOut=new gn({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,i){this._zoomIn.touchstart(e,t,i),this._zoomOut.touchstart(e,t,i)}touchmove(e,t,i){this._zoomIn.touchmove(e,t,i),this._zoomOut.touchmove(e,t,i)}touchend(e,t,i){const r=this._zoomIn.touchend(e,t,i),n=this._zoomOut.touchend(e,t,i);return r?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(r)},{originalEvent:e})}):n?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(n)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const xn={0:1,2:2};class vn{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const i=_(e);this._correctButton(e,i)&&(this._lastPoint=t,this._eventButton=i)}mousemoveWindow(e,t){const i=this._lastPoint;if(i)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const i=xn[t];return void 0===e.buttons||(e.buttons&i)!==i}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(i)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(i,t)}mouseupWindow(e){this._lastPoint&&_(e)===this._eventButton&&(this._moved&&d(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class bn extends vn{mousedown(e,t){super.mousedown(e,t),this._lastPoint&&(this._active=!0)}_correctButton(e,t){return 0===t&&!e.ctrlKey}_move(e,t){return{around:t,panDelta:t.sub(e)}}}class wn extends vn{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const i=.8*(t.x-e.x);if(i)return this._active=!0,{bearingDelta:i}}contextmenu(e){e.preventDefault()}}class Tn extends vn{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const i=-.5*(t.y-e.y);if(i)return this._active=!0,{pitchDelta:i}}contextmenu(e){e.preventDefault()}}class En{constructor(t,i){this._map=t,this._el=t.getCanvasContainer(),this._minTouches=1,this._clickTolerance=i.clickTolerance||1,this.reset(),e.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new e.pointGeometry(0,0)}touchstart(e,t,i){return this._calculateTransform(e,t,i)}touchmove(t,i,r){if(this._active&&!(r.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===r.length&&!e.isFullscreen())return void this._showTouchPanBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return t.cancelable&&t.preventDefault(),this._calculateTransform(t,i,r)}}touchend(e,t,i){this._calculateTransform(e,t,i),this._active&&i.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,i,r){r.length>0&&(this._active=!0);const n=mn(r,i),o=new e.pointGeometry(0,0),s=new e.pointGeometry(0,0);let a=0;for(const e in n){const t=n[e],i=this._touches[e];i&&(o._add(t),s._add(t.sub(i)),a++,n[e]=t)}if(this._touches=n,a<this._minTouches||!s.mag())return;const l=s.div(a);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(a),panDelta:l}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")}),500)}}class Sn{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,i){return{}}touchstart(e,t,i){this._firstTwoTouches||i.length<2||(this._firstTwoTouches=[i[0].identifier,i[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,i){const r=this._firstTwoTouches;if(!r)return;e.preventDefault();const[n,o]=r,s=Mn(i,t,n),a=Mn(i,t,o);if(!s||!a)return;const l=this._aroundCenter?null:s.add(a).div(2);return this._move([s,a],l,e)}touchend(e,t,i){if(!this._firstTwoTouches)return;const[r,n]=this._firstTwoTouches,o=Mn(i,t,r),s=Mn(i,t,n);o&&s||(this._active&&d(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Mn(e,t,i){for(let r=0;r<e.length;r++)if(e[r].identifier===i)return t[r]}function In(e,t){return Math.log(e/t)/Math.LN2}class An extends Sn{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const i=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(In(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:In(this._distance,i),pinchAround:t}}}function Cn(e,t){return 180*e.angleWith(t)/Math.PI}class zn extends Sn{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const i=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Cn(this._vector,i),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,i=Cn(e,this._startVector);return Math.abs(i)<t}}function Pn(e){return Math.abs(e.y)>Math.abs(e.x)}class kn extends Sn{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(e){this._lastPoints=e,Pn(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,i){const r=this._lastPoints;if(!r)return;const n=e[0].sub(r[0]),o=e[1].sub(r[1]);return this._map._cooperativeGestures&&i.touches.length<3||(this._valid=this.gestureBeginsVertically(n,o,i.timeStamp),!this._valid)?void 0:(this._lastPoints=e,this._active=!0,{pitchDelta:(n.y+o.y)/2*-.5})}gestureBeginsVertically(e,t,i){if(void 0!==this._valid)return this._valid;const r=e.mag()>=2,n=t.mag()>=2;if(!r&&!n)return;if(!r||!n)return null==this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return Pn(e)&&Pn(t)&&o}}const Dn={panStep:100,bearingStep:15,pitchStep:10};class Ln{constructor(){const e=Dn;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,i=0,r=0,n=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?i=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?i=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(i=0,r=0),{cameraAnimation:s=>{const a=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:Bn,zoom:t?Math.round(a)+t*(e.shiftKey?2:1):a,bearing:s.getBearing()+i*this._bearingStep,pitch:s.getPitch()+r*this._pitchStep,offset:[-n*this._panStep,-o*this._panStep],center:s.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Bn(e){return e*(2-e)}const Rn=4.000244140625;class Fn{constructor(t,i){this._map=t,this._el=t.getCanvasContainer(),this._handler=i,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,e.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(t.ctrlKey||t.metaKey||this.isZooming()||e.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let i=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const r=e.exported.now(),n=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==i&&i%Rn==0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":n>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(n*i)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),t.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=t,this._delta-=i,this._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=f(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform,i=()=>t._terrainEnabled()&&this._aroundCoord?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>Rn?this._wheelZoomRate:this._defaultZoomRate;let r=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==r&&(r=1/r);const n=i(),o=Math.pow(2,n),s="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(s*r))),"wheel"===this._type&&(this._startZoom=n,this._easing=this._smoothOutEasing(200)),this._delta=0}const r="number"==typeof this._targetZoom?this._targetZoom:i(),n=this._startZoom,o=this._easing;let s,a=!1;if("wheel"===this._type&&n&&o){const t=Math.min((e.exported.now()-this._lastWheelEventTime)/200,1),i=o(t);s=e.number(n,r,i),t<1?this._frameId||(this._frameId=!0):a=!0}else s=r,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!a,zoomDelta:s-i(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let i=e.ease;if(this._prevEase){const t=this._prevEase,r=(e.exported.now()-t.start)/t.duration,n=t.easing(r+.01)-t.easing(r),o=.27/Math.sqrt(n*n+1e-4)*.01,s=Math.sqrt(.0729-o*o);i=e.bezier(o,s,.25,1)}return this._prevEase={start:e.exported.now(),duration:t,easing:i},i}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=o("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(e.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")}),200)}}class On{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Un{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:i.getZoom()+(e.shiftKey?-1:1),around:i.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Vn{constructor(){this._tap=new gn({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(e,t,i){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?i.length>0&&(this._swipePoint=t[0],this._swipeTouch=i[0].identifier):this._tap.touchstart(e,t,i))}touchmove(e,t,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;const r=t[0],n=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:n/128}}}else this._tap.touchmove(e,t,i)}touchend(e,t,i){this._tapTime?this._swipePoint&&0===i.length&&this.reset():this._tap.touchend(e,t,i)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class jn{constructor(e,t,i){this._el=e,this._mousePan=t,this._touchPan=i}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Nn{constructor(e,t,i){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Gn{constructor(e,t,i,r){this._el=e,this._touchZoom=t,this._touchRotate=i,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Zn=e=>e.zoom||e.drag||e.pitch||e.rotate;class $n extends e.Event{}class qn{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,i){const r=e.sub([],i,t);this.radius=e.length(r[2]<0?e.div([],r,this.constants):[r[0],r[1],0])}projectRay(t){e.div(t,t,this.constants),e.normalize(t,t),e.mul$1(t,t,this.constants);const i=e.scale$2([],t,this.radius);if(i[2]>0){const t=e.scale$2([],[0,0,1],e.dot(i,[0,0,1])),r=e.scale$2([],e.normalize([],[i[0],i[1],0]),this.radius),n=e.add([],i,e.scale$2([],e.sub([],e.add([],r,t),i),2));i[0]=n[0],i[1]=n[1]}return i}}function Xn(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Wn{constructor(t,i){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new sn(t),this._bearingSnap=i.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new qn,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(i),e.bindAll(["handleEvent","handleWindowEvent"],this);const r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[e.window,"blur",void 0]];for(const[t,i,r]of this._listeners)t.addEventListener(i,t===e.window.document?this.handleWindowEvent:this.handleEvent,r)}destroy(){for(const[t,i,r]of this._listeners)t.removeEventListener(i,t===e.window.document?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){const t=this._map,i=t.getCanvasContainer();this._add("mapEvent",new pn(t,e));const r=t.boxZoom=new fn(t,e);this._add("boxZoom",r);const n=new yn,o=new Un;t.doubleClickZoom=new On(o,n),this._add("tapZoom",n),this._add("clickZoom",o);const s=new Vn;this._add("tapDragZoom",s);const a=t.touchPitch=new kn(t);this._add("touchPitch",a);const l=new wn(e),c=new Tn(e);t.dragRotate=new Nn(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const h=new bn(e),u=new En(t,e);t.dragPan=new jn(i,h,u),this._add("mousePan",h),this._add("touchPan",u,["touchZoom","touchRotate"]);const p=new zn,d=new An;t.touchZoomRotate=new Gn(i,d,p,s),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",d,["touchPan","touchRotate"]),this._add("blockableMapEvent",new dn(t));const f=t.scrollZoom=new Fn(t,this);this._add("scrollZoom",f,["mousePan"]);const m=t.keyboard=new Ln;this._add("keyboard",m);for(const i of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[i]&&t[i].enable(e[i])}_add(e,t,i){this._handlers.push({handlerName:e,handler:t,allowed:i}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Zn(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,i){for(const r in e)if(r!==i&&(!t||t.indexOf(r)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,`${e.type}Window`)}_getMapTouches(e){const t=[];for(const i of e)this._el.contains(i.target)&&t.push(i);return t}handleEvent(e,t){this._updatingCamera=!0;const i="renderFrame"===e.type,r=i?void 0:e,n={needsRenderFrame:!1},o={},s={},a=e.touches?this._getMapTouches(e.touches):void 0,l=a?m(this._el,a):i?void 0:f(this._el,e);for(const{handlerName:i,handler:c,allowed:h}of this._handlers){if(!c.isEnabled())continue;let u;this._blockedByActive(s,h,i)?c.reset():c[t||e.type]&&(u=c[t||e.type](e,l,a),this.mergeHandlerResult(n,o,u,i,r),u&&u.needsRenderFrame&&this._triggerRenderFrame()),(u||c.isActive())&&(s[i]=c)}const c={};for(const e in this._previousActiveHandlers)s[e]||(c[e]=r);this._previousActiveHandlers=s,(Object.keys(c).length||Xn(n))&&(this._changes.push([n,o,c]),this._triggerRenderFrame()),(Object.keys(s).length||Xn(n))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:h}=n;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))}mergeHandlerResult(t,i,r,n,o){if(!r)return;e.extend(t,r);const s={handlerName:n,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(i.zoom=s),void 0!==r.panDelta&&(i.drag=s),void 0!==r.pitchDelta&&(i.pitch=s),void 0!==r.bearingDelta&&(i.rotate=s)}_applyChanges(){const t={},i={},r={};for(const[n,o,s]of this._changes)n.panDelta&&(t.panDelta=(t.panDelta||new e.pointGeometry(0,0))._add(n.panDelta)),n.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+n.zoomDelta),n.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+n.bearingDelta),n.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+n.pitchDelta),void 0!==n.around&&(t.around=n.around),void 0!==n.aroundCoord&&(t.aroundCoord=n.aroundCoord),void 0!==n.pinchAround&&(t.pinchAround=n.pinchAround),n.noInertia&&(t.noInertia=n.noInertia),e.extend(i,o),e.extend(r,s);this._updateMapTransform(t,i,r),this._changes=[]}_updateMapTransform(t,i,r){const n=this._map,o=n.transform,s=e=>[e.x,e.y,e.z];if((e=>{const t=this._eventsInProgress.drag;return t&&!this._handlersById[t.handlerName].isActive()})()&&!Xn(t)){const e=o.zoom;o.cameraElevationReference="sea",o.recenterOnTerrain(),o.cameraElevationReference="ground",e!==o.zoom&&this._map._update(!0)}if(!Xn(t))return void this._fireEvents(i,r,!0);let{panDelta:a,zoomDelta:l,bearingDelta:c,pitchDelta:h,around:u,aroundCoord:p,pinchAround:d}=t;void 0!==d&&(u=d),(e=>i.drag&&!this._eventsInProgress.drag)()&&u&&(this._dragOrigin=s(o.pointCoordinate3D(u)),this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",n._stop(!0),u=u||n.transform.centerPoint,c&&(o.bearing+=c),h&&(o.pitch+=h),o._updateCameraState();const f=[0,0,0];if(a)if("mercator"===o.projection.name){const e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(u).dir),t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(u.sub(a)).dir);f[0]=t[0]-e[0],f[1]=t[1]-e[1]}else{const t=o.pointCoordinate(u);if("globe"===o.projection.name){a=a.rotate(-o.angle);const i=o._pixelsPerMercatorPixel/o.worldSize;f[0]=-a.x*e.mercatorScale(e.latFromMercatorY(t.y))*i,f[1]=-a.y*e.mercatorScale(o.center.lat)*i}else{const e=o.pointCoordinate(u.sub(a));t&&e&&(f[0]=e.x-t.x,f[1]=e.y-t.y)}}const m=o.zoom,_=[0,0,0];if(l){const t=s(p||o.pointCoordinate3D(u)),i={dir:e.normalize([],e.sub([],t,o._camera.position))};if(i.dir[2]<0){const r=o.zoomDeltaToMovement(t,l);e.scale$2(_,i.dir,r)}}const g=e.add(f,f,_);o._translateCameraConstrained(g),l&&Math.abs(o.zoom-m)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(i,r,!0)}_fireEvents(t,i,r){const n=Zn(this._eventsInProgress),o=Zn(t),s={};for(const e in t){const{originalEvent:i}=t[e];this._eventsInProgress[e]||(s[`${e}start`]=i),this._eventsInProgress[e]=t[e]}!n&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in s)this._fireEvent(e,s[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:i}=t[e];this._fireEvent(e,i)}const a={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:r}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=i[t]||r,a[`${e}end`]=l)}for(const e in a)this._fireEvent(e,a[e]);const c=Zn(this._eventsInProgress);if(r&&(n||o)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;t?(i(t.bearing||this._map.getBearing())&&(t.bearing=0),this._map.easeTo(t,{originalEvent:l})):(this._map.fire(new e.Event("moveend",{originalEvent:l})),i(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,i){this._map.fire(new e.Event(t,i?{originalEvent:i}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((e=>{this._frameId=void 0,this.handleEvent(new $n("renderFrame",{timeStamp:e})),this._applyChanges()}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Hn="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Yn extends e.Evented{constructor(t,i){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=i.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}getCenter(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,i,r){return t=e.pointGeometry.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},i),r)}panTo(t,i,r){return this.easeTo(e.extend({center:t},i),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,i,r){return this.easeTo(e.extend({zoom:t},i),r)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,i,r){return this.easeTo(e.extend({bearing:t},i),r)}resetNorth(t,i){return this.rotateTo(0,e.extend({duration:1e3},t),i),this}resetNorthPitch(t,i){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),i),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(t,i){"globe"===this.transform.projection.name&&e.warnOnce('Globe projection does not support cameraForBounds API, this API may behave unexpectedly."'),t=e.LngLatBounds.convert(t);const r=i&&i.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),r,i)}_extendCameraOptions(t){const i={top:0,bottom:0,right:0,left:0};if("number"==typeof(t=e.extend({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},t)).padding){const e=t.padding;t.padding={top:e,bottom:e,right:e,left:e}}return t.padding=e.extend(i,t.padding),t}_cameraForBoxAndBearing(t,i,r,n){const o=this._extendCameraOptions(n),s=this.transform,a=s.padding,l=s.project(e.LngLat.convert(t)),c=s.project(e.LngLat.convert(i)),h=new e.pointGeometry(l.x,c.y),u=new e.pointGeometry(c.x,l.y),p=-e.degToRad(r),d=l.rotate(p),f=c.rotate(p),m=h.rotate(p),_=u.rotate(p),g=new e.pointGeometry(Math.max(d.x,f.x,m.x,_.x),Math.max(d.y,f.y,m.y,_.y)),y=new e.pointGeometry(Math.min(d.x,f.x,m.x,_.x),Math.min(d.y,f.y,m.y,_.y)),x=g.sub(y),v=(s.width-((a.left||0)+(a.right||0)+o.padding.left+o.padding.right))/x.x,b=(s.height-((a.top||0)+(a.bottom||0)+o.padding.top+o.padding.bottom))/x.y;if(b<0||v<0)return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const w=Math.min(s.scaleZoom(s.scale*Math.min(v,b)),o.maxZoom),T="number"==typeof o.offset.x&&"number"==typeof o.offset.y?new e.pointGeometry(o.offset.x,o.offset.y):e.pointGeometry.convert(o.offset),E=new e.pointGeometry((o.padding.left-o.padding.right)/2,(o.padding.top-o.padding.bottom)/2).rotate(r*Math.PI/180),S=T.add(E).mult(s.scale/s.zoomScale(w));return{center:s.unproject(l.add(c).div(2).sub(S)),zoom:w,bearing:r}}_cameraForBox(t,i,r,n,o){const s=this._extendCameraOptions(o);r=r||0,n=n||0,t=e.LngLat.convert(t),i=e.LngLat.convert(i);const a=this.transform.clone();a.padding=s.padding;const l=this.getFreeCameraOptions(),c=new e.LngLat(.5*(t.lng+i.lng),.5*(t.lat+i.lat)),h=.5*(r+n);if(a._camera.position[2]<e.mercatorZfromAltitude(h,c.lat))return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");l.lookAtPoint(c),a.setFreeCameraOptions(l);const u=e.MercatorCoordinate.fromLngLat(t),p=e.MercatorCoordinate.fromLngLat(i),d=a.pointRayIntersection(a.centerPoint,h),f=[(m=a.rayIntersectionCoordinate(d)).x,m.y,m.z];var m;const _=a.screenPointToMercatorRay(a.centerPoint),g="globe"!==a.projection.name;let y,x=0;do{const i=Math.floor(a.zoom),o=1<<i,s=Math.min(o*u.x,o*p.x),l=Math.min(o*u.y,o*p.y),c=Math.max(o*u.x,o*p.x),h=Math.max(o*u.y,o*p.y),d=new e.Aabb([s,l,r],[c,h,n]),m=e.Frustum.fromInvProjectionMatrix(a.invProjMatrix,a.worldSize,i,g);if(2!==d.intersects(m)){y&&(a._camera.position=e.scaleAndAdd([],a._camera.position,_.dir,-y),a._updateStateFromCamera());break}const x=e.sub([],a._camera.position,f);y=.5*e.length(x),a._camera.position=e.scaleAndAdd([],a._camera.position,_.dir,y);try{a._updateStateFromCamera()}catch(t){return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}}while(++x<10);return{center:a.center,zoom:a.zoom,bearing:a.bearing,pitch:a.pitch}}fitBounds(t,i,r){return"globe"===this.transform.projection.name&&e.warnOnce("Globe projection does not support fitBounds API, this API may behave unexpectedly."),this._fitInternal(this.cameraForBounds(t,i),i,r)}_raycastElevationBox(t,i){const r=this.transform.elevation;if(!r)return;const n=new e.pointGeometry(t.x,i.y),o=new e.pointGeometry(i.x,t.y),s=r.pointCoordinate(t);if(!s)return;const a=r.pointCoordinate(i);if(!a)return;const l=r.pointCoordinate(n);if(!l)return;const c=r.pointCoordinate(o);if(!c)return;const h=new e.MercatorCoordinate(s[0],s[1]).toLngLat(),u=new e.MercatorCoordinate(a[0],a[1]).toLngLat(),p=new e.MercatorCoordinate(l[0],l[1]).toLngLat(),d=new e.MercatorCoordinate(c[0],c[1]).toLngLat(),f=Math.min(h.lng,Math.min(u.lng,Math.min(p.lng,d.lng))),m=Math.min(h.lat,Math.min(u.lat,Math.min(p.lat,d.lat))),_=Math.max(h.lng,Math.max(u.lng,Math.max(p.lng,d.lng))),g=Math.max(h.lat,Math.max(u.lat,Math.max(p.lat,d.lat))),y=Math.min(s[3],Math.min(a[3],Math.min(l[3],c[3]))),x=Math.max(s[3],Math.max(a[3],Math.max(l[3],c[3])));return{minLngLat:new e.LngLat(f,m),maxLngLat:new e.LngLat(_,g),minAltitude:y,maxAltitude:x}}fitScreenCoordinates(t,i,r,n,o){let s,a,l,c;"globe"===this.transform.projection.name&&e.warnOnce("Globe projection does not support fitScreenCoordinates API, this API may behave unexpectedly.");const h=e.pointGeometry.convert(t),u=e.pointGeometry.convert(i),p=this._raycastElevationBox(h,u);if(p)s=p.minLngLat,a=p.maxLngLat,l=p.minAltitude,c=p.maxAltitude;else{if(this.transform.anyCornerOffEdge(h,u))return this;s=this.transform.pointLocation(h),a=this.transform.pointLocation(u)}return this._fitInternal(0===this.transform.pitch?this._cameraForBoxAndBearing(this.transform.pointLocation(e.pointGeometry.convert(t)),this.transform.pointLocation(e.pointGeometry.convert(i)),r,n):this._cameraForBox(s,a,l,c,n),n,o)}_fitInternal(t,i,r){return t?(delete(i=e.extend(t,i)).padding,i.linear?this.easeTo(i,r):this.flyTo(i,r)):this}jumpTo(t,i){this.stop();const r=t.preloadOnly?this.transform.clone():this.transform;let n=!1,o=!1,s=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(n=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.LngLat.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(o=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(s=!0,r.pitch=+t.pitch),null==t.padding||r.isPaddingEqual(t.padding)||(r.padding=t.padding),t.preloadOnly?(this._preloadTiles(r),this):(this.fire(new e.Event("movestart",i)).fire(new e.Event("move",i)),n&&this.fire(new e.Event("zoomstart",i)).fire(new e.Event("zoom",i)).fire(new e.Event("zoomend",i)),o&&this.fire(new e.Event("rotatestart",i)).fire(new e.Event("rotate",i)).fire(new e.Event("rotateend",i)),s&&this.fire(new e.Event("pitchstart",i)).fire(new e.Event("pitch",i)).fire(new e.Event("pitchend",i)),this.fire(new e.Event("moveend",i)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||e.warnOnce(Hn),this.transform.getFreeCameraOptions()}setFreeCameraOptions(t,i){const r=this.transform;if(!r.projection.supportsFreeCamera)return e.warnOnce(Hn),this;this.stop();const n=r.zoom,o=r.pitch,s=r.bearing;r.setFreeCameraOptions(t);const a=n!==r.zoom,l=o!==r.pitch,c=s!==r.bearing;return this.fire(new e.Event("movestart",i)).fire(new e.Event("move",i)),a&&this.fire(new e.Event("zoomstart",i)).fire(new e.Event("zoom",i)).fire(new e.Event("zoomend",i)),c&&this.fire(new e.Event("rotatestart",i)).fire(new e.Event("rotate",i)).fire(new e.Event("rotateend",i)),l&&this.fire(new e.Event("pitchstart",i)).fire(new e.Event("pitch",i)).fire(new e.Event("pitchend",i)),this.fire(new e.Event("moveend",i)),this}easeTo(t,i){this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||!t.essential&&e.exported.prefersReducedMotion)&&(t.duration=0);const r=this.transform,n=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in t?+t.zoom:n,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,h="pitch"in t?+t.pitch:s,u="padding"in t?t.padding:r.padding,p=e.pointGeometry.convert(t.offset);let d,f,m;if("globe"===r.projection.name){const i=e.MercatorCoordinate.fromLngLat(r.center),n=p.rotate(-r.angle);i.x+=n.x/r.worldSize,i.y+=n.y/r.worldSize;const o=i.toLngLat(),s=e.LngLat.convert(t.center||o);this._normalizeCenter(s),d=r.centerPoint.add(n),f=new e.pointGeometry(i.x,i.y).mult(r.worldSize),m=new e.pointGeometry(e.mercatorXfromLng(s.lng),e.mercatorYfromLat(s.lat)).mult(r.worldSize).sub(f)}else{d=r.centerPoint.add(p);const i=r.pointLocation(d),n=e.LngLat.convert(t.center||i);this._normalizeCenter(n),f=r.project(i),m=r.project(n).sub(f)}const _=r.zoomScale(l-n);let g,y;t.around&&(g=e.LngLat.convert(t.around),y=r.locationPoint(g));const x=this._zooming||l!==n,v=this._rotating||o!==c,b=this._pitching||h!==s,w=!r.isPaddingEqual(u),T=r=>T=>{if(x&&(r.zoom=e.number(n,l,T)),v&&(r.bearing=e.number(o,c,T)),b&&(r.pitch=e.number(s,h,T)),w&&(r.interpolatePadding(a,u,T),d=r.centerPoint.add(p)),g)r.setLocationAtPoint(g,y);else{const e=r.zoomScale(r.zoom-n),t=l>n?Math.min(2,_):Math.max(.5,_),i=Math.pow(t,1-T),o=r.unproject(f.add(m.mult(T*i)).mult(e));r.setLocationAtPoint(r.renderWorldCopies?o.wrap():o,d)}return t.preloadOnly||this._fireMoveEvents(i),r};if(t.preloadOnly){const e=this._emulate(T,t.duration,r);return this._preloadTiles(e),this}const E={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=x,this._rotating=v,this._pitching=b,this._padding=w,this._easeId=t.easeId,this._prepareEase(i,t.noMoveStart,E),this._ease(T(r),(e=>{r.recenterOnTerrain(),this._afterEase(i,e)}),t),this}_prepareEase(t,i,r={}){this._moving=!0,this.transform.cameraElevationReference="sea",i||r.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))}_afterEase(t,i){if(this._easeId&&i&&this._easeId===i)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const r=this._zooming,n=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),n&&this.fire(new e.Event("rotateend",t)),o&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}flyTo(t,i){if(!t.essential&&e.exported.prefersReducedMotion){const r=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,i)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);const r=this.transform,n=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in t?e.clamp(+t.zoom,r.minZoom,r.maxZoom):n,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,h="pitch"in t?+t.pitch:s,u="padding"in t?t.padding:r.padding,p=r.zoomScale(l-n),d=e.pointGeometry.convert(t.offset);let f=r.centerPoint.add(d);const m=r.pointLocation(f),_=e.LngLat.convert(t.center||m);this._normalizeCenter(_);const g=r.project(m),y=r.project(_).sub(g);let x=t.curve;const v=Math.max(r.width,r.height),b=v/p,w=y.mag();if("minZoom"in t){const i=e.clamp(Math.min(t.minZoom,n,l),r.minZoom,r.maxZoom),o=v/r.zoomScale(i-n);x=Math.sqrt(o/w*2)}const T=x*x;function E(e){const t=(b*b-v*v+(e?-1:1)*T*T*w*w)/(2*(e?b:v)*T*w);return Math.log(Math.sqrt(t*t+1)-t)}function S(e){return(Math.exp(e)-Math.exp(-e))/2}function M(e){return(Math.exp(e)+Math.exp(-e))/2}const I=E(0);let A=function(e){return M(I)/M(I+x*e)},C=function(e){return v*((M(I)*(S(t=I+x*e)/M(t))-S(I))/T)/w;var t},z=(E(1)-I)/x;if(Math.abs(w)<1e-6||!isFinite(z)){if(Math.abs(v-b)<1e-6)return this.easeTo(t,i);const e=b<v?-1:1;z=Math.abs(Math.log(b/v))/x,C=function(){return 0},A=function(t){return Math.exp(e*x*t)}}t.duration="duration"in t?+t.duration:1e3*z/("screenSpeed"in t?+t.screenSpeed/x:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0);const P=o!==c,k=h!==s,D=!r.isPaddingEqual(u),L=r=>p=>{const m=p*z,x=1/A(m);r.zoom=1===p?l:n+r.scaleZoom(x),P&&(r.bearing=e.number(o,c,p)),k&&(r.pitch=e.number(s,h,p)),D&&(r.interpolatePadding(a,u,p),f=r.centerPoint.add(d));const v=1===p?_:r.unproject(g.add(y.mult(C(m))).mult(x));return r.setLocationAtPoint(r.renderWorldCopies?v.wrap():v,f),r._updateCameraOnTerrain(),t.preloadOnly||this._fireMoveEvents(i),r};if(t.preloadOnly){const e=this._emulate(L,t.duration,r);return this._preloadTiles(e),this}return this._zooming=!0,this._rotating=P,this._pitching=k,this._padding=D,this._prepareEase(i,!1),this._ease(L(r),(()=>this._afterEase(i)),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const e=this._onEaseEnd;this._onEaseEnd=void 0,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,i,r){!1===r.animate||0===r.duration?(t(1),i()):(this._easeStart=e.exported.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.exported.now()-this._easeStart)/this._easeOptions.duration,1),i=this._onEaseFrame;i&&i(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,i){t=e.wrap(t,-180,180);const r=Math.abs(t-i);return Math.abs(t-360-i)<r&&(t-=360),Math.abs(t+360-i)<r&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(!t.renderWorldCopies||t.maxBounds)return;const i=e.lng-t.center.lng;e.lng+=i>180?-360:i<-180?360:0}_emulate(e,t,i){const r=Math.ceil(15*t/1e3),n=[],o=e(i.clone());for(let e=0;e<=r;e++){const t=o(e/r);n.push(t.clone())}return n}}class Kn{constructor(t={}){this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact;return this._map=e,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o("button","mapboxgl-ctrl-attrib-button",this._container),o("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const i=this._map._getUIString(`AttributionControl.${t}`);e.setAttribute("aria-label",i),e.removeAttribute("title"),e.firstElementChild&&e.firstElementChild.setAttribute("title",i)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));const i=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){const r=i.reduce(((e,t,r)=>(t.value&&(e+=`${t.key}=${t.value}${r<i.length-1?"&":""}`),e)),"?");t.href=`${e.config.FEEDBACK_URL}/${r}#${Qr(this._map,!0)}`,t.rel="noopener nofollow",this._setElementTitle(t,"MapFeedback")}}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let e=[];if(this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style._sourceCaches;for(const i in t){const r=t[i];if(r.used){const t=r.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e.sort(((e,t)=>e.length-t.length)),e=e.filter(((t,i)=>{for(let r=i+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0})),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const i=e.join(" | ");i!==this._attribHTML&&(this._attribHTML=i,e.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Jn{constructor(){e.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=o("div","mapboxgl-ctrl");const t=o("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const i=e[t].getSource();if(i.hasOwnProperty("mapbox_logo")&&!i.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class Qn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,i=t?this._queue.concat(t):this._queue;for(const t of i)if(t.id===e)return void(t.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const i of t)if(!i.cancelled&&(i.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function eo(t,i,r){if(t=new e.LngLat(t.lng,t.lat),i){const n=new e.LngLat(t.lng-360,t.lat),o=new e.LngLat(t.lng+360,t.lat),s=360*Math.ceil(Math.abs(t.lng-r.center.lng)/360),a=r.locationPoint(t).distSqr(i),l=i.x<0||i.y<0||i.x>r.width||i.y>r.height;r.locationPoint(n).distSqr(i)<a&&(l||Math.abs(n.lng-r.center.lng)<s)?t=n:r.locationPoint(o).distSqr(i)<a&&(l||Math.abs(o.lng-r.center.lng)<s)&&(t=o)}for(;Math.abs(t.lng-r.center.lng)>180;){const e=r.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=r.width&&e.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}const to={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class io extends e.Evented{constructor(t,i){if(super(),(t instanceof e.window.HTMLElement||i)&&(t=e.extend({element:t},i)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&t.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),t&&t.element)this._element=t.element,this._offset=e.pointGeometry.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=o("div");const i=41,r=27,n=s("svg",{display:"block",height:i*this._scale+"px",width:r*this._scale+"px",viewBox:`0 0 ${r} ${i}`},this._element),a=s("radialGradient",{id:"shadowGradient"},s("defs",{},n));s("stop",{offset:"10%","stop-opacity":.4},a),s("stop",{offset:"100%","stop-opacity":.05},a),s("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},n),s("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},n),s("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},n),s("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},n),this._offset=e.pointGeometry.convert(t&&t.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(e=>{e.preventDefault()})),this._element.addEventListener("mousedown",(e=>{e.preventDefault()}));const r=this._element.classList;for(const e in to)r.remove(`mapboxgl-marker-anchor-${e}`);r.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}remove(){const e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,i=13.5,r=Math.sqrt(Math.pow(i,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[r,-1*(t-i+r)],"bottom-right":[-r,-1*(t-i+r)],left:[i,-1*(t-i)],right:[-i,-1*(t-i)]}:this._offset}this._popup=e,e._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(e){const t=e.code,i=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==i&&13!==i||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,i=this._element;this._popup&&(t===i||i.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const e=this._map;if(!e)return!1;const t=e.unproject(this._pos),i=e.getFreeCameraOptions();if(!i.position)return!1;const r=i.position.toLngLat();return r.distanceTo(t)<.9*r.distanceTo(this._lngLat)}_evaluateOpacity(){const t=this._map;if(!t)return;const i=this._pos;if(!i||i.x<0||i.x>t.transform.width||i.y<0||i.y>t.transform.height)return void this._clearFadeTimer();const r=t.unproject(i);let n;t._showingGlobe()&&e.isLngLatBehindGlobe(t.transform,this._lngLat)?n=0:(n=1-t._queryFogOpacity(r),t.transform._terrainEnabled()&&t.getTerrain()&&this._behindTerrain()&&(n*=.2)),this._element.style.opacity=`${n}`,this._element.style.pointerEvents=n>0?"auto":"none",this._popup&&this._popup._setOpacity(n),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos;if(!e||!this._map)return;const t=this._offset.mult(this._scale);this._element.style.transform=`\n            translate(${e.x}px,${e.y}px)\n            ${to[this._anchor]}\n            ${this._calculateXYTransform()} ${this._calculateZTransform()}\n            translate(${t.x}px,${t.y}px)\n        `}_calculateXYTransform(){const t=this._pos,i=this._map,r=this.getPitchAlignment();if(!i||!t||"map"!==r)return"";if(!i._showingGlobe()){const e=i.getPitch();return e?`rotateX(${e}deg)`:""}const n=e.radToDeg(e.globeTiltAtLngLat(i.transform,this._lngLat)),o=t.sub(e.globeCenterToScreenPoint(i.transform)),s=Math.abs(o.x)+Math.abs(o.y);if(0===s)return"";const a=n/s;return`rotateX(${-o.y*a}deg) rotateY(${o.x*a}deg)`}_calculateZTransform(){const t=this._pos,i=this._map;if(!i||!t)return"";let r=0;const n=this.getRotationAlignment();if("map"===n)if(i._showingGlobe()){const t=i.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),n=i.project(new e.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(t);r=e.radToDeg(Math.atan2(n.y,n.x))-90}else r=-i.getBearing();else if("horizon"===n){const n=e.smoothstep(4,6,i.getZoom()),o=e.globeCenterToScreenPoint(i.transform);o.y+=n*i.transform.height;const s=t.sub(o),a=e.radToDeg(Math.atan2(s.y,s.x));r=(a>90?a-270:a+90)*(1-n)}return r+=this._rotation,r?`rotateZ(${r}deg)`:""}_update(t){e.window.cancelAnimationFrame(this._updateFrameId);const i=this._map;i&&(i.transform.renderWorldCopies&&(this._lngLat=eo(this._lngLat,this._pos,i.transform)),this._pos=i.project(this._lngLat),!0===t?this._updateFrameId=e.window.requestAnimationFrame((()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())})):this._pos=this._pos.round(),i._requestDomTask((()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(i._showingGlobe()||i.getTerrain()||i.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))})))}getOffset(){return this._offset}setOffset(t){return this._offset=e.pointGeometry.convert(t),this._update(),this}_onMove(t){const i=this._map;if(i){if(!this._isDragging){const e=this._clickTolerance||i._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=i.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const t=this._map;t&&(t.off("mousemove",this._onMove),t.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"}_addDragHandler(e){const t=this._map;t&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos),this._pointerdownPos=e.point,this._state="pending",t.on("mousemove",this._onMove),t.on("touchmove",this._onMove),t.once("mouseup",this._onUp),t.once("touchend",this._onUp))}setDraggable(e){this._draggable=!!e;const t=this._map;return t&&(e?(t.on("mousedown",this._addDragHandler),t.on("touchstart",this._addDragHandler)):(t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}}class ro{constructor(e){this.jumpTo(e)}getValue(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;const i=e.easeCubicInOut((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-i)+this._end*i}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,t,i){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+i}}const no={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},oo={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0};function so(e){e.parentNode&&e.parentNode.removeChild(e)}const ao={showCompass:!0,showZoom:!0,visualizePitch:!1};class lo{constructor(t,i,r=!1){this._clickTolerance=10,this.element=i,this.mouseRotate=new wn({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,r&&(this.mousePitch=new Tn({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),i.addEventListener("mousedown",this.mousedown),i.addEventListener("touchstart",this.touchstart,{passive:!1}),i.addEventListener("touchmove",this.touchmove),i.addEventListener("touchend",this.touchend),i.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),h()}move(e,t){const i=this.map,r=this.mouseRotate.mousemoveWindow(e,t),n=r&&r.bearingDelta;if(n&&i.setBearing(i.getBearing()+n),this.mousePitch){const r=this.mousePitch.mousemoveWindow(e,t),n=r&&r.pitchDelta;n&&i.setPitch(i.getPitch()+n)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){u(),e.window.removeEventListener("mousemove",this.mousemove),e.window.removeEventListener("mouseup",this.mouseup)}mousedown(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),f(this.element,t)),e.window.addEventListener("mousemove",this.mousemove),e.window.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,f(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=m(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=m(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const co={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},ho={maxWidth:100,unit:"metric"};function uo(e,t,i){const r=po(t),n=r/t,o={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"}[i];this._map._requestDomTask((()=>{this._container.style.width=e*n+"px",this._container.innerHTML=`${r}&nbsp;${o}`}))}function po(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let i=e/t;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(i),t*i}const fo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},mo=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function _o(t=new e.pointGeometry(0,0),i="bottom"){if("number"==typeof t){const r=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(i){case"top":return new e.pointGeometry(0,t);case"top-left":return new e.pointGeometry(r,r);case"top-right":return new e.pointGeometry(-r,r);case"bottom":return new e.pointGeometry(0,-t);case"bottom-left":return new e.pointGeometry(r,-r);case"bottom-right":return new e.pointGeometry(-r,-r);case"left":return new e.pointGeometry(t,0);case"right":return new e.pointGeometry(-t,0)}return new e.pointGeometry(0,0)}return t instanceof e.pointGeometry||Array.isArray(t)?e.pointGeometry.convert(t):e.pointGeometry.convert(t[i]||[0,0])}const go={version:e.version,supported:i,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:class extends Yn{constructor(t){if(null!=(t=e.extend({},oo,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&e.isSafariWithAntialiasingBug(e.window)&&(t.antialias=!1,e.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Yr(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._optimizeForTerrain=t.optimizeForTerrain,this._language="auto"===t.language?e.window.navigator.language:t.language,this._worldview=t.worldview,this._renderTaskQueue=new Qn,this._domRenderTaskQueue=new Qn,this._controls=[],this._markers=[],this._mapId=e.uniqueId(),this._locale=e.extend({},no,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new ro(0),this._useExplicitProjection=!1,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken,t.testMode),this._silenceAuthErrors=!!t.testMode,"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container}' not found.`)}else{if(!(t.container instanceof e.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&e.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1),e.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1)),this.handlers=new Wn(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),t.projection&&this.setProjection(t.projection),this._hash=t.hash&&new Jr("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),t.attributionControl&&this.addControl(new Kn({customAttribution:t.customAttribution})),this._logoControl=new Jn,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(t=>{this._update("style"===t.dataType),this.fire(new e.Event(`${t.dataType}data`,t))})),this.on("dataloading",(t=>{this.fire(new e.Event(`${t.dataType}dataloading`,t))}))}_getMapId(){return this._mapId}addControl(t,i){if(void 0===i&&(i=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=t.onAdd(this);this._controls.push(t);const n=this._controlPositions[i];return-1!==i.indexOf("bottom")?n.insertBefore(r,n.firstChild):n.appendChild(r),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const i=this._controls.indexOf(t);return i>-1&&this._controls.splice(i,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(t){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const i=!this._moving;return i&&this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t)),this.fire(new e.Event("resize",t)),i&&this.fire(new e.Event("moveend",t)),this}getBounds(){return"globe"===this.transform.projection.name&&e.warnOnce('Globe projection does not support getBounds API, this API may behave unexpectedly."'),this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){if((t=null==t?85:t)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}getLanguage(){return this._language}setLanguage(t){if(this._language="auto"===t?e.window.navigator.language:t,this.style)for(const e in this.style._sourceCaches){const t=this.style._sourceCaches[e]._source;t._setLanguage&&t._setLanguage(this._language)}for(const e of this._controls)e._setLanguage&&e._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(e){if(this._worldview=e,this.style)for(const t in this.style._sourceCaches){const i=this.style._sourceCaches[t]._source;i._setWorldview&&i._setWorldview(e)}return this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const t=this.transform,i=t.projection.name;let r;"globe"===i&&t.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX?(t.setMercatorFromTransition(),r=!0):"mercator"===i&&t.zoom<e.GLOBE_ZOOM_THRESHOLD_MAX&&(t.setProjection({name:"globe"}),r=!0),r&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(e,t){return this._updateProjection(e||t||{name:"mercator"})}_updateProjection(t){let i;if(i="globe"===t.name&&this.transform.zoom>=e.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate(),i){this.painter.clearBackgroundTiles();for(const e in this.style._sourceCaches)this.style._sourceCaches[e].clearTiles();this._update(!0)}return this}project(t){return this.transform.locationPoint3D(e.LngLat.convert(t))}unproject(t){return this.transform.pointLocation3D(e.pointGeometry.convert(t))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_createDelegatedListener(e,t,i){if("mouseenter"===e||"mouseover"===e){let r=!1;const n=n=>{const o=t.filter((e=>this.getLayer(e))),s=o.length?this.queryRenderedFeatures(n.point,{layers:o}):[];s.length?r||(r=!0,i.call(this,new cn(e,this,n.originalEvent,{features:s}))):r=!1},o=()=>{r=!1};return{layers:new Set(t),listener:i,delegates:{mousemove:n,mouseout:o}}}if("mouseleave"===e||"mouseout"===e){let r=!1;const n=n=>{const o=t.filter((e=>this.getLayer(e)));(o.length?this.queryRenderedFeatures(n.point,{layers:o}):[]).length?r=!0:r&&(r=!1,i.call(this,new cn(e,this,n.originalEvent)))},o=t=>{r&&(r=!1,i.call(this,new cn(e,this,t.originalEvent)))};return{layers:new Set(t),listener:i,delegates:{mousemove:n,mouseout:o}}}{const r=e=>{const r=t.filter((e=>this.getLayer(e))),n=r.length?this.queryRenderedFeatures(e.point,{layers:r}):[];n.length&&(e.features=n,i.call(this,e),delete e.features)};return{layers:new Set(t),listener:i,delegates:{[e]:r}}}}on(e,t,i){if(void 0===i)return super.on(e,t);Array.isArray(t)||(t=[t]);const r=this._createDelegatedListener(e,t,i);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(r);for(const e in r.delegates)this.on(e,r.delegates[e]);return this}once(e,t,i){if(void 0===i)return super.once(e,t);Array.isArray(t)||(t=[t]);const r=this._createDelegatedListener(e,t,i);for(const e in r.delegates)this.once(e,r.delegates[e]);return this}off(e,t,i){if(void 0===i)return super.off(e,t);t=new Set(Array.isArray(t)?t:[t]);const r=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0},n=this._delegatedListeners?this._delegatedListeners[e]:void 0;return n&&(e=>{for(let n=0;n<e.length;n++){const o=e[n];if(o.listener===i&&r(o.layers,t)){for(const e in o.delegates)this.off(e,o.delegates[e]);return e.splice(n,1),this}}})(n),this}queryRenderedFeatures(t,i){return this.style?(void 0!==i||void 0===t||t instanceof e.pointGeometry||Array.isArray(t)||(i=t,t=void 0),this.style.queryRenderedFeatures(t=t||[[0,0],[this.transform.width,this.transform.height]],i=i||{},this.transform)):[]}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}queryTerrainElevation(t,i){const r=this.transform.elevation;return r?(i=e.extend({},{exaggerated:!0},i),r.getAtPoint(e.MercatorCoordinate.fromLngLat(t),null,i.exaggerated)):null}setStyle(t,i){return!1!==(i=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},i)).diff&&i.localIdeographFontFamily===this._localIdeographFontFamily&&i.localFontFamily===this._localFontFamily&&this.style&&t?(this._diffStyle(t,i),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._localFontFamily=i.localFontFamily,this._updateStyle(t,i))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),e&&(this.style=new ei(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new ei(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,i){if("string"==typeof t){const r=this._requestManager.normalizeStyleURL(t),n=this._requestManager.transformRequest(r,e.ResourceType.Style);e.getJSON(n,((t,r)=>{t?this.fire(new e.ErrorEvent(t)):r&&this._updateDiff(r,i)}))}else"object"==typeof t&&this._updateDiff(t,i)}_updateDiff(t,i){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce(`Unable to perform style diff: ${r.message||r.error||r}.  Rebuilding the style from scratch.`),this._updateStyle(t,i)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(e.warnOnce("There is no style added to the map."),!1)}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){return!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){const e=this.style&&this.style._sourceCaches;for(const t in e){const i=e[t]._tiles;for(const e in i){const t=i[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,i){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,i)}removeSource(e){return this.style.removeSource(e),this._updateTerrain(),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,i,{pixelRatio:r=1,sdf:n=!1,stretchX:o,stretchY:s,content:a}={}){if(this._lazyInitEmptyStyle(),i instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&i instanceof e.window.ImageBitmap){const{width:l,height:c,data:h}=e.exported.getImageData(i);this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},h),pixelRatio:r,stretchX:o,stretchY:s,content:a,sdf:n,version:0})}else if(void 0===i.width||void 0===i.height)this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:l,height:c}=i,h=i;this.style.addImage(t,{data:new e.RGBAImage({width:l,height:c},new Uint8Array(h.data)),pixelRatio:r,stretchX:o,stretchY:s,content:a,sdf:n,version:0,userImage:h}),h.onAdd&&h.onAdd(this,t)}}updateImage(t,i){const r=this.style.getImage(t);if(!r)return void this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const n=i instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&i instanceof e.window.ImageBitmap?e.exported.getImageData(i):i,{width:o,height:s}=n;void 0!==o&&void 0!==s?o===r.data.width&&s===r.data.height?(r.data.replace(n.data,!(i instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&i instanceof e.window.ImageBitmap)),this.style.updateImage(t,r)):this.fire(new e.ErrorEvent(new Error(`The width and height of the updated image (${o}, ${s})\n                must be that same as the previous version of the image\n                (${r.data.width}, ${r.data.height})`))):this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,i){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),((t,r)=>{i(t,r instanceof e.window.HTMLImageElement?e.exported.getImageData(r):r)}))}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}setLayerZoomRange(e,t,i){return this.style.setLayerZoomRange(e,t,i),this._update(!0)}setFilter(e,t,i={}){return this.style.setFilter(e,t,i),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,i,r={}){return this.style.setPaintProperty(e,t,i,r),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,i,r={}){return this.style.setLayoutProperty(e,t,i,r),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.LngLat.convert(t),this.transform):0}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}_updateContainerDimensions(){if(!this._container)return;const t=this._container.getBoundingClientRect().width||400,i=this._container.getBoundingClientRect().height||300;let r,n,o,s=this._container;for(;s&&(!n||!o);){const t=e.window.getComputedStyle(s).transform;t&&"none"!==t&&(r=t.match(/matrix.*\((.+)\)/)[1].split(", "),r[0]&&"0"!==r[0]&&"1"!==r[0]&&(n=r[0]),r[3]&&"0"!==r[3]&&"1"!==r[3]&&(o=r[3])),s=s.parentElement}this._containerWidth=n?Math.abs(t/n):t,this._containerHeight=o?Math.abs(i/o):i}_detectMissingCSS(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=o("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=o("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=o("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const i=this._controlContainer=o("div","mapboxgl-control-container",e),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((e=>{r[e]=o("div",`mapboxgl-ctrl-${e}`,i)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,i){const r=e.exported.devicePixelRatio||1;this._canvas.width=r*Math.ceil(t),this._canvas.height=r*Math.ceil(i),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${i}px`}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_setupPainter(){const t=e.extend({},i.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",t)||this._canvas.getContext("experimental-webgl",t);r?(e.storeAuthState(r,!0),this.painter=new Fr(r,this.transform),this.on("data",(e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)})),e.exported$1.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_requestDomTask(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}_render(t){let i;const r=this.painter.context.extTimerQuery,n=e.exported.now();if(this.listens("gpu-timing-frame")&&(i=r.createQueryEXT(),r.beginQueryEXT(r.TIME_ELAPSED_EXT,i)),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();let o=!1;const s=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,i=this.transform.pitch,r=e.exported.now();this.style.zoomHistory.update(t,r);const n=new e.EvaluationParameters(t,{now:r,fadeDuration:s,pitch:i,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),a=n.crossFadingFactor();1===a&&a===this._crossFadingFactor||(o=!0,this._crossFadingFactor=a),this.style.update(n)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let a=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),a=this._updateAverageElevation(n),this.style._updateSources(this.transform),this._forceMarkerUpdate()):a=this._updateAverageElevation(n),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,s,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:s,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||o)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),i){const t=e.exported.now()-n;r.endQueryEXT(r.TIME_ELAPSED_EXT,i),setTimeout((()=>{const o=r.getQueryObjectEXT(i,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(i),this.fire(new e.Event("gpu-timing-frame",{cpuTime:t,gpuTime:o})),e.window.performance.mark("frame-gpu",{startTime:n,detail:{gpuTime:o}})}),50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout((()=>{const i=this.painter.queryGpuTimers(t);this.fire(new e.Event("gpu-timing-layer",{layerTimes:i}))}),50)}if(this.listens("gpu-timing-deferred-render")){const t=this.painter.collectDeferredRenderGpuQueries();setTimeout((()=>{const i=this.painter.queryGpuTimeDeferredRender(t);this.fire(new e.Event("gpu-timing-deferred-render",{gpuTime:i}))}),50)}const l=this._sourcesDirty||this._styleDirty||this._placementDirty||a;if(l||this._repaint)this.triggerRepaint();else{const t=!this.isMoving()&&this.loaded();if(t&&(a=this._updateAverageElevation(n,!0)),a)this.triggerRepaint();else if(this._triggerFrame(!1),t&&(this.fire(new e.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.Event("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||l||(this._fullyLoaded=!0,this._authenticate())}_forceMarkerUpdate(){for(const e of this._markers)e._update()}_updateAverageElevation(e,t=!1){const i=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&i(0);if((t||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let r=this.transform.sampleAverageElevation(),n=!1;this.transform.elevation&&(n=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(r)?r=0:this._averageElevationLastSampledAt=e;const o=Math.abs(t-r);if(o>1){if(this._isInitialLoad||n)return this._averageElevation.jumpTo(r),i(r);this._averageElevation.easeTo(r,e,300)}else if(o>1e-4)return this._averageElevation.jumpTo(r),i(r)}return!!this._averageElevation.isEasing(e)&&i(this._averageElevation.getValue(e))}_authenticate(){e.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(t=>{if(t&&(t.message===e.AUTH_ERR_MSG||401===t.status)){const t=this.painter.context.gl;e.storeAuthState(t,!1),this._logoControl instanceof Jn&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new e.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}})),e.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(()=>{}))}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const i=this.painter.context.gl,r=i.createFramebuffer();function n(e){i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e,0);const t=new Uint8Array(i.drawingBufferWidth*i.drawingBufferHeight*4);return i.readPixels(0,0,i.drawingBufferWidth,i.drawingBufferHeight,i.RGBA,i.UNSIGNED_BYTE,t),t}return i.bindFramebuffer(i.FRAMEBUFFER,r),this._canvasPixelComparison(n(e),t.canvasCopies.map(n),t.timeStamps)}_canvasPixelComparison(e,t,i){let r=i[1]-i[0];const n=e.length/4;for(let o=0;o<t.length;o++){const s=t[o];let a=0;for(let t=0;t<s.length;t+=4)s[t]===e[t]&&s[t+1]===e[t+1]&&s[t+2]===e[t+2]&&s[t+3]===e[t+3]&&(a+=1);r+=(i[o+2]-i[o+1])*(1-a/n)}return r}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),so(this._canvasContainer),so(this._controlContainer),so(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),e.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new e.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=e.exported.frame((e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)})))}_preloadTiles(t){const i=this.style?Object.values(this.style._sourceCaches):[];return e.asyncAll(i,((e,i)=>e._preloadTiles(t,i)),(()=>{this.triggerRepaint()})),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}_setCacheLimits(t,i){e.setCacheLimits(t,i)}get version(){return e.version}},NavigationControl:class{constructor(t){this.options=e.extend({},ao,t),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(e=>{this._map&&this._map.zoomIn({},{originalEvent:e})})),o("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(e=>{this._map&&this._map.zoomOut({},{originalEvent:e})})),o("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(e=>{const t=this._map;t&&(this.options.visualizePitch?t.resetNorthPitch({},{originalEvent:e}):t.resetNorth({},{originalEvent:e}))})),this._compassIcon=o("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;const t=e.getZoom(),i=t===e.getMaxZoom(),r=t===e.getMinZoom();this._zoomInButton.disabled=i,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",i.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())}_rotateCompassArrow(){const e=this._map;if(!e)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(e.transform.pitch*(Math.PI/180)),.5)}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle*(180/Math.PI)}deg)`:`rotate(${e.transform.angle*(180/Math.PI)}deg)`;e._requestDomTask((()=>{this._compassIcon&&(this._compassIcon.style.transform=t)}))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),e.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&e.on("pitch",this._rotateCompassArrow),e.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new lo(e,this._compass,this.options.visualizePitch)),this._container}onRemove(){const e=this._map;e&&(this._container.remove(),this.options.showZoom&&e.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&e.off("pitch",this._rotateCompassArrow),e.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(e,t){const i=o("button",e,this._container);return i.type="button",i.addEventListener("click",t),i}_setButtonTitle(e,t){if(!this._map)return;const i=this._map._getUIString(`NavigationControl.${t}`);e.setAttribute("aria-label",i),e.firstElementChild&&e.firstElementChild.setAttribute("title",i)}},GeolocateControl:class extends e.Evented{constructor(t){super(),this.options=e.extend({geolocation:e.window.navigator.geolocation},co,t),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Kr(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(e){return this._map=e,this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(t){void 0!==this._supportsGeolocation?t(this._supportsGeolocation):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((e=>{this._supportsGeolocation="denied"!==e.state,t(this._supportsGeolocation)})):(this._supportsGeolocation=!!this.options.geolocation,t(this._supportsGeolocation))}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),i=e.coords;return!!t&&(i.longitude<t.getWest()||i.longitude>t.getEast()||i.latitude<t.getSouth()||i.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}}_updateCamera(t){const i=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,n=this._map.getBearing(),o=e.extend({bearing:n},this.options.fitBoundsOptions);this._map.fitBounds(i.toBounds(r),o,{geolocateSource:!0})}_updateMarker(t){if(t){const i=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map.transform,i=e.mercatorZfromAltitude(1,t._center.lat)*t.worldSize,r=Math.ceil(2*this._accuracy*i);this._circleElement.style.width=`${r}px`,this._circleElement.style.height=`${r}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this._geolocateButton=o("button","mapboxgl-ctrl-geolocate",this._container),o("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o("div","mapboxgl-user-location"),this._dotElement.appendChild(o("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(o("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new io({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=o("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new io({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new e.Event("trackuserlocationend")))}))}_onDeviceOrientation(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(e={maximumAge:6e5,timeout:0},this._noTimeout=!0):(e=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,e),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const t=()=>{e.window.addEventListener("ondeviceorientationabsolute"in e.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==e.window.DeviceMotionEvent&&"function"==typeof e.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((e=>{"granted"===e&&t()}))["catch"](console.error):t()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),e.window.removeEventListener("deviceorientation",this._onDeviceOrientation),e.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Kn,ScaleControl:class{constructor(t){this.options=e.extend({},ho,t),function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"narrow",unit:"meter"}),!0}catch(e){return!1}}()||(this._setScale=uo.bind(this)),e.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const e=this.options.maxWidth||100,t=this._map,i=t._containerHeight/2,r=t._containerWidth/2-e/2,n=t.unproject([r,i]),o=t.unproject([r+e,i]),s=n.distanceTo(o);if("imperial"===this.options.unit){const t=3.2808*s;t>5280?this._setScale(e,t/5280,"mile"):this._setScale(e,t,"foot")}else"nautical"===this.options.unit?this._setScale(e,s/1852,"nautical-mile"):s>=1e3?this._setScale(e,s/1e3,"kilometer"):this._setScale(e,s,"meter")}_setScale(e,t,i){const r=po(t),n=r/t;this._map._requestDomTask((()=>{this._container.style.width=e*n+"px",this._container.innerHTML="nautical-mile"!==i?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"narrow",unit:i}).format(r):`${r}&nbsp;nm`}))}onAdd(e){return this._map=e,this._language=e.getLanguage(),this._container=o("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(e){this._language=e,this._update()}setUnit(e){this.options.unit=e,this._update()}},FullscreenControl:class{constructor(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in e.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=o("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!e.window.document.fullscreenEnabled&&!e.window.document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=o("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(e.window.document.fullscreenElement||e.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends e.Evented{constructor(t){super(),this.options=e.extend(Object.create(fo),t),e.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[])}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new e.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),this._map=void 0),this.fire(new e.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update();const i=this._map;return i&&(i.on("move",this._update),i.off("mousemove",this._onMouseEvent),i._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const e=this._map;return e&&(e.off("move",this._update),e.on("mousemove",this._onMouseEvent),e.on("drag",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(e.window.document.createTextNode(t))}setHTML(t){const i=e.window.document.createDocumentFragment(),r=e.window.document.createElement("body");let n;for(r.innerHTML=t;n=r.firstChild,n;)i.appendChild(n);return this.setDOMContent(i)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=o("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){const e=this._closeButton=o("button","mapboxgl-popup-close-button",t);e.type="button",e.setAttribute("aria-label","Close popup"),e.setAttribute("aria-hidden","true"),e.innerHTML="&#215;",e.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(e){return this._classList.add(e),this._updateClassList(),this}removeClassName(e){return this._classList["delete"](e),this._updateClassList(),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){let t;return this._classList["delete"](e)?t=!1:(this._classList.add(e),t=!0),this._updateClassList(),t}_onMouseEvent(e){this._update(e.point)}_getAnchor(e){if(this.options.anchor)return this.options.anchor;const t=this._map,i=this._container,r=this._pos;if(!t||!i||!r)return"bottom";const n=i.offsetWidth,o=i.offsetHeight,s=r.x<n/2,a=r.x>t.transform.width-n/2;if(r.y+e<o)return s?"top-left":a?"top-right":"top";if(r.y>t.transform.height-o){if(s)return"bottom-left";if(a)return"bottom-right"}return s?"left":a?"right":"bottom"}_updateClassList(){const e=this._container;if(!e)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}_update(t){const i=this._map,r=this._content;if(!i||!this._lngLat&&!this._trackPointer||!r)return;let n=this._container;if(n||(n=this._container=o("div","mapboxgl-popup",i.getContainer()),this._tip=o("div","mapboxgl-popup-tip",n),n.appendChild(r)),this.options.maxWidth&&n.style.maxWidth!==this.options.maxWidth&&(n.style.maxWidth=this.options.maxWidth),i.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=eo(this._lngLat,this._pos,i.transform)),!this._trackPointer||t){const e=this._pos=this._trackPointer&&t?t:i.project(this._lngLat),r=_o(this.options.offset),n=this._anchor=this._getAnchor(r.y),o=_o(this.options.offset,n),s=e.add(o).round();i._requestDomTask((()=>{this._container&&n&&(this._container.style.transform=`${to[n]} translate(${s.x}px,${s.y}px)`)}))}if(!this._marker&&i._showingGlobe()){const t=e.isLngLatBehindGlobe(i.transform,this._lngLat)?0:1;this._setOpacity(t)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(mo);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._container&&(this._container.style.opacity=`${e}`),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}},Marker:io,Style:ei,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.pointGeometry,MercatorCoordinate:e.MercatorCoordinate,FreeCameraOptions:Nr,Evented:e.Evented,config:e.config,prewarm:function(){je().acquire(Oe)},clearPrewarmedResources:function(){const e=Ve;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Oe),Ve=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return Ue.workerCount},set workerCount(e){Ue.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.clearTileCache(t)},workerUrl:"",workerClass:null,setNow:e.exported.setNow,restoreNow:e.exported.restoreNow};return go}));var n=i;return n}));/**
 * 2007-2024 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    Boxtal
 *
 * @copyright 2007-2024 PrestaShop SA / 2018-2024 Boxtal
 *
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */
var pluginParcelPoint=pluginParcelPoint||{};pluginParcelPoint["bx"]=pluginParcelPoint["bx"]?pluginParcelPoint["bx"]:{},pluginParcelPoint["bx"]={branding:"bx",trigger:".bx-select-parcel",initialized:!1,mapContainer:null,map:null,markers:[],carrierTextCache:{},getData:function(){let e=null;return pluginData&&pluginData.bx&&(e=pluginData.bx),e},init:function(){const e=this;e.initialized||(e.initialized=!0,e.mapContainer=document.querySelector("#"+this.branding+"-map"),e.mapContainer||e.initMap(),e.initCarriers(),e.on("body","click",e.trigger,(function(){e.openMap(),e.getPoints()})),window.MutationObserver?(e.observeDomMutations(e.getAllCarrierInputsSelector(),(function(){e.initCarriers()})),e.on("body","click",e.getAllCarrierInputsSelector(),(function(){e.initCarriers()}))):e.on("body","change",e.getAllCarrierInputsSelector(),(function(){e.initCarriers()})),e.on("body","click","."+this.branding+"-parcel-point-button",(function(t){e.selectPoint(this.getAttribute("data-code"),unescape(this.getAttribute("data-name")),this.getAttribute("data-network"),unescape(this.getAttribute("data-street")),unescape(this.getAttribute("data-zipcode")),unescape(this.getAttribute("data-city")),unescape(this.getAttribute("data-country")),unescape(this.getAttribute("data-openinghours")),unescape(this.getAttribute("data-distance")),(function(){e.initCarriers(),e.closeMap()}),(function(t){e.showError(t)}))})))},initMap:function(){const e=this,t=document.createElement("div"),n=e.getData();t.setAttribute("class",this.branding+"-close"),t.setAttribute("title",n.translation.text.closeMap),t.addEventListener("click",(function(){e.closeMap()}));const o=document.createElement("div");o.setAttribute("id",this.branding+"-map-canvas");const r=document.createElement("div");r.setAttribute("id",this.branding+"-map-container"),r.appendChild(o);const i=document.createElement("div");i.setAttribute("id",this.branding+"-pp-container");const a=document.createElement("div");a.setAttribute("id",this.branding+"-map-inner"),a.appendChild(t),a.appendChild(r),a.appendChild(i),e.mapContainer=document.createElement("div"),e.mapContainer.setAttribute("id",this.branding+"-map"),e.mapContainer.appendChild(a),document.body.appendChild(e.mapContainer),mapboxgl.accessToken="whatever",e.map=new mapboxgl.Map({container:this.branding+"-map-canvas",style:n.mapUrl,zoom:14}),e.map.addControl(new mapboxgl.NavigationControl);const c=document.createElement("img");c.setAttribute("src",n.mapLogoImageUrl);const s=document.createElement("a");s.setAttribute("href",n.mapLogoHrefUrl),s.setAttribute("target","_blank"),s.appendChild(c);const l=document.createElement("div");l.setAttribute("id",this.branding+"-logo"),l.appendChild(s);const d=document.querySelector(".mapboxgl-ctrl-top-left");d&&d.appendChild(l)},initCarriers:function(){const e=this,t=e.getCarriers(),n=e.getSelectedCarrier();for(let o=0;o<t.length;o++){const r=t[o];if(null===r.querySelector("."+this.branding+"-extra-content")){const e=document.createElement("div");e.setAttribute("class","col-sm-12 "+this.branding+"-extra-content"),r.appendChild(e)}const i=r.querySelector("."+this.branding+"-extra-content");n===e.getCarrierId(r)?e.getSelectedCarrierText(n,i):i.innerHTML=""}},getCarriers:function(){let e=document.querySelectorAll(".delivery-option");return 0===e.length&&(e=document.querySelectorAll("td.delivery_option_radio")),0===e.length&&(e=document.querySelectorAll(".delivery_option")),e},openMap:function(){this.mapContainer.classList.add(this.branding+"-modal-show");let e=window.pageYOffset+(window.innerHeight-this.mapContainer.offsetHeight)/2;e<window.pageYOffset&&(e=window.pageYOffset),this.mapContainer.style.top=e+"px",this.map.resize()},closeMap:function(){this.mapContainer.classList.remove(this.branding+"-modal-show"),this.clearMarkers()},getPoints:function(){const e=this;e.getParcelPoints((function(t){e.addParcelPointMarkers(t.nearbyParcelPoints),e.fillParcelPointPanel(t.nearbyParcelPoints),e.addRecipientMarker(t.searchLocation),e.setMapBounds()}),(function(t){e.showError(t)}))},getParcelPoints:function(e,t){console.log("getParcelPoints");const n=this.getSelectedCarrier(),o=this.getData();n||t(o.translation.error.carrierNotFound);const r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState)if(200!==r.status)t();else{const t="object"==typeof r.response&&null!==r.response?r.response:JSON.parse(r.response);e(t)}},r.open("POST",o.ajaxUrl),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.responseType="json",r.send("route=getPoints&carrier="+encodeURIComponent(n)+"&cartId="+encodeURIComponent(o.cartId)+"&token="+encodeURIComponent(o.token))},addParcelPointMarkers:function(e){for(let t=0;t<e.length;t++)e[t].index=t,this.addParcelPointMarker(e[t])},generateParcelPointTagData:function(e){return' data-code="'+e.parcelPoint.code+'" data-name="'+escape(e.parcelPoint.name)+'" data-network="'+e.parcelPoint.network+'" data-zipcode="'+escape(e.parcelPoint.location.zipCode)+'" data-country="'+escape(e.parcelPoint.location.country)+'" data-city="'+escape(e.parcelPoint.location.city)+'" data-street="'+escape(e.parcelPoint.location.street)+'" data-openinghours="'+escape(JSON.stringify(e.parcelPoint.openingDays))+'" data-distance="'+escape(JSON.stringify(e.distanceFromSearchLocation))+'" '},formatOpeningDays:function(e){var t=[];const n=this.getData();for(var o=0;o<e.length;o++){var r=e[o];if(r.weekday){for(var i=r.weekday[0]+" ",a=r.openingPeriods,c=[],s=0;s<a.length;s++){var l=a[s],d=l.openingTime===undefined?"":l.openingTime,p=l.closingTime===undefined?"":l.closingTime;""!==d&&""!==p&&c.push(d+"-"+p)}for(;c.length<2;)c.push(n.translation.text.closedLabel);i+=c.join(" "),o%2==1&&(i='<span style="background-color: #d8d8d8;">'+i+"</span>"),t.push(i)}}return t.join("\n")},addParcelPointMarker:function(e){const t=this,n=t.getData();let o=null;"number"==typeof e.distanceFromSearchLocation&&(o=Math.round(e.distanceFromSearchLocation/100)/10);let r="<div class='"+this.branding+"-marker-popup'><b>"+e.parcelPoint.name+"</b><br/>"+e.parcelPoint.location.street+"<br/>"+e.parcelPoint.location.zipCode+" "+e.parcelPoint.location.city+(null===o?"":" ("+n.translation.distance.replace("%s",o)+")")+'<br/><a href="#" class="'+this.branding+'-parcel-point-button" '+this.generateParcelPointTagData(e)+"><b>"+n.translation.text.chooseParcelPoint+'</b></a><pre class="'+this.branding+'-parcel-point-schedule">'+this.formatOpeningDays(e.parcelPoint.openingDays)+"</pre>";const i=this.getMarkerHtmlElement(e.index+1),a=new mapboxgl.Popup({offset:25}).setHTML(r),c=new mapboxgl.Marker({element:i,anchor:"bottom"}).setLngLat(new mapboxgl.LngLat(parseFloat(e.parcelPoint.location.position.longitude),parseFloat(e.parcelPoint.location.position.latitude))).setPopup(a).addTo(t.map);t.markers.push(c),t.addRightColMarkerEvent(c,e.parcelPoint.code)},addRightColMarkerEvent:function(e,t){this.on("body","click","."+this.branding+"-show-info-"+t,(function(){e.togglePopup()}))},formatHours:function(e){const t=e.split(":");return 3===t.length&&(e=t[0]+":"+t[1]),e},addRecipientMarker:function(e){const t=document.createElement("div");t.className=this.branding+"-marker-recipient";const n=new mapboxgl.Marker({element:t,anchor:"bottom"}).setLngLat(new mapboxgl.LngLat(parseFloat(e.position.longitude),parseFloat(e.position.latitude))).addTo(this.map);this.markers.push(n)},setMapBounds:function(){let e=new mapboxgl.LngLatBounds;for(let t=0;t<this.markers.length;t++){const n=this.markers[t];e=e.extend(n.getLngLat())}this.map.fitBounds(e,{padding:30,linear:!0})},fillParcelPointPanel:function(e){const t=this.getData();let n="";n+="<table><tbody>";for(let o=0;o<e.length;o++){const r=e[o];let i=null;"number"==typeof r.distanceFromSearchLocation&&(i=Math.round(r.distanceFromSearchLocation/100)/10),n+="<tr>",n+="<td>"+this.getMarkerHtmlElement(o+1).outerHTML,n+='<div class="'+this.branding+'-parcel-point-title"><a class="'+this.branding+"-show-info-"+r.parcelPoint.code+'">'+r.parcelPoint.name+"</a></div><br/>",n+=r.parcelPoint.location.street+"<br/>",n+=r.parcelPoint.location.zipCode+" "+r.parcelPoint.location.city+(null===i?"":" ("+t.translation.distance.replace("%s",i)+")")+"<br/>",n+='<a class="'+this.branding+'-parcel-point-button" '+this.generateParcelPointTagData(r)+'"><b>'+t.translation.text.chooseParcelPoint+"</b></a>",n+="</td>",n+="</tr>"}n+="</tbody></table>",document.querySelector("#"+this.branding+"-pp-container").innerHTML=n},getMarkerHtmlElement:function(e){const t=document.createElement("div");return t.className=this.branding+"-marker",t.innerHTML=e,t},selectPoint:function(e,t,n,o,r,i,a,c,s,l,d){const p=this.getData(),u=this.getSelectedCarrier();u||d(p.translation.error.carrierNotFound);const g=new XMLHttpRequest;g.onreadystatechange=function(){4===g.readyState&&(200!==g.status?d(p.translation.error.couldNotSelectPoint):l())},g.open("POST",p.ajaxUrl),g.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),g.responseType="json",g.send("route=setPoint&carrier="+encodeURIComponent(u)+"&code="+encodeURIComponent(e)+"&name="+encodeURIComponent(t)+"&address="+encodeURIComponent(o)+"&zipcode="+encodeURIComponent(r)+"&city="+encodeURIComponent(i)+"&country="+encodeURIComponent(a)+"&openingHours="+encodeURIComponent(c)+"&distance="+encodeURIComponent(s)+"&network="+encodeURIComponent(n)+"&cartId="+encodeURIComponent(p.cartId)+"&token="+encodeURIComponent(p.token))},clearMarkers:function(){for(let e=0;e<this.markers.length;e++)this.markers[e].remove();this.markers=[]},getUniqueCarrier:function(){return document.querySelector('input[type="hidden"].shipping_method')},hasUniqueCarrier:function(){return null!==this.getUniqueCarrier()},getCarrierId:function(e){if(this.hasUniqueCarrier()){return this.getUniqueCarrier().getAttribute("value")}{const t=e.querySelector("input[type=radio]");return null===t?null:t.getAttribute("value")}},getSelectedCarrier:function(){let e;if(this.hasUniqueCarrier()){e=this.getUniqueCarrier().getAttribute("value")}else{e=this.getSelectedInput().getAttribute("value")}return e},getSelectedCarrierText:function(e,t){const n=this.getData();if(null===e)return"";const o=this.carrierTextCache;o[e]!==undefined&&(t.innerHTML=o[e]);const r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState){if(200!==r.status)t.innerHTML="";else{const e="object"==typeof r.response&&null!==r.response?r.response:JSON.parse(r.response);t.innerHTML=e.text}o[e]=t.innerHTML}},r.open("POST",n.ajaxUrl),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.responseType="json",r.send("route=getSelectedCarrierText&carrier="+encodeURIComponent(e)+"&cartId="+encodeURIComponent(n.cartId)+"&token="+encodeURIComponent(n.token))},getSelectedInput:function(){var e=document.querySelector(".delivery-option input[type='radio'][name^='delivery_option']:checked");return null===e&&(e=document.querySelector(".delivery_option_radio input[type='radio']:checked")),null===e&&(e=document.querySelector(".delivery_option input[type='radio']:checked")),e},getAllCarrierInputsSelector:function(){let e=".delivery-option input[type='radio'][name^='delivery_option']";return e+=", .delivery_option_radio input[type='radio']",e+=", .delivery_option input[type='radio']",".delivery-option input[type='radio'][name^='delivery_option'], .delivery_option_radio input[type='radio'], .delivery_option input[type='radio']"},showError:function(e){this.closeMap(),alert(e)},isDescendant:function(e,t){for(var n=t.parentNode;null!=n;){if(n==e)return!0;n=n.parentNode}return!1},on:function(e,t,n,o){const r=document.querySelector(e);r.addEventListener(t,(function(e){const t=r.querySelectorAll(n),i=e.target;for(let n=0,a=t.length;n<a;n++){let a=i;const c=t[n];for(;a&&a!==r;){if(a===c)return o.call(c,e);a=a.parentNode}}}))},observeDomMutations:function(e,t){const n=this;window.MutationObserver&&new MutationObserver((function(o){const r=[];for(let t of o)if("childList"===t.type){const o=Array.from(document.body.querySelectorAll(e)),i=Array.from(t.addedNodes);-1===o.indexOf(t.target)&&i.find((e=>-1!==o.indexOf(e)))===undefined&&i.find((t=>!(t instanceof Text)&&t.querySelector&&null!==t.querySelector(e)))===undefined&&o.find((e=>i.find((t=>n.isDescendant(e,t)))!==undefined))===undefined||r.push(t)}r.length>0&&t(r)})).observe(document.body,{attributes:!0,childList:!0,subtree:!0})}};/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
!function(a,b){function e(b,c){var d,e,g,h=b.nodeName.toLowerCase();return"area"===h?(d=b.parentNode,e=d.name,!(!b.href||!e||"map"!==d.nodeName.toLowerCase())&&(g=a("img[usemap=#"+e+"]")[0],!!g&&f(g))):(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||c:c)&&f(b)}function f(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var c=0,d=/^ui-id-\d+$/;a.ui=a.ui||{},a.extend(a.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),scrollParent:function(){var b;return b=a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var e,f,d=a(this[0]);d.length&&d[0]!==document;){if(e=d.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(f=parseInt(d.css("zIndex"),10),!isNaN(f)&&0!==f))return f;d=d.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++c)})},removeUniqueId:function(){return this.each(function(){d.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return e(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var c=a.attr(b,"tabindex"),d=isNaN(c);return(d||c>=0)&&e(b,!d)}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===d?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return"number"!=typeof b?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.support.selectstart="onselectstart"in document.createElement("div"),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c){var d,e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(d=0;d<e.length;d++)a.options[e[d][0]]&&e[d][1].apply(a.element,c)}},hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;return b[d]>0||(b[d]=1,e=b[d]>0,b[d]=0,e)}})}(jQuery),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var d,c=0;null!=(d=b[c]);c++)try{a(d).triggerHandler("remove")}catch(a){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i={},j=b.split(".")[0];b=b.split(".")[1],e=j+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[j]=a[j]||{},f=a[j][b],g=a[j][b]=function(a,b){return this._createWidget?void(arguments.length&&this._createWidget(a,b)):new g(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,d){return a.isFunction(d)?void(i[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},e=function(a){return c.prototype[b].apply(this,a)};return function(){var f,b=this._super,c=this._superApply;return this._super=a,this._superApply=e,f=d.apply(this,arguments),this._super=b,this._superApply=c,f}}()):void(i[b]=d)}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix:b},i,{constructor:g,namespace:j,widgetName:b,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){for(var h,i,e=d.call(arguments,1),f=0,g=e.length;f<g;f++)for(h in e[f])i=e[f][h],e[f].hasOwnProperty(h)&&i!==b&&(a.isPlainObject(i)?c[h]=a.isPlainObject(c[h])?a.widget.extend({},c[h],i):a.widget.extend({},i):c[h]=i);return c},a.widget.bridge=function(c,e){var f=e.prototype.widgetFullName||c;a.fn[c]=function(g){var h="string"==typeof g,i=d.call(arguments,1),j=this;return g=!h&&i.length?a.widget.extend.apply(null,[g].concat(i)):g,h?this.each(function(){var d,e=a.data(this,f);return e?a.isFunction(e[g])&&"_"!==g.charAt(0)?(d=e[g].apply(e,i),d!==e&&d!==b?(j=d&&d.jquery?j.pushStack(d.get()):d,!1):void 0):a.error("no such method '"+g+"' for "+c+" widget instance"):a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+g+"'")}):this.each(function(){var b=a.data(this,f);b?b.option(g||{})._init():a.data(this,f,new e(g,this))}),j}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var f,g,h,e=c;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof c)if(e={},f=c.split("."),c=f.shift(),f.length){for(g=e[c]=a.widget.extend({},this.options[c]),h=0;h<f.length-1;h++)g[f[h]]=g[f[h]]||{},g=g[f[h]];if(c=f.pop(),d===b)return g[c]===b?null:g[c];g[c]=d}else{if(d===b)return this.options[c]===b?null:this.options[c];e[c]=d}return this._setOptions(e),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,f=this;"boolean"!=typeof b&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){if(b||f.options.disabled!==!0&&!a(this).hasClass("ui-state-disabled"))return("string"==typeof g?f[g]:g).apply(f,arguments)}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^(\w+)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.delegate(k,j,h):c.bind(j,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return("string"==typeof a?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];if(d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){"string"==typeof e&&(e={effect:e});var g,h=e?e===!0||"number"==typeof e?c:e.effect||c:b;e=e||{},"number"==typeof e&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&a.effects.effect[h]?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}})}(jQuery),function(a,b){var c=!1;a(document).mouseup(function(){c=!1}),a.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=1===b.which,f=!("string"!=typeof this.options.cancel||!b.target.nodeName)&&a(b.target).closest(this.options.cancel).length;return!(e&&!f&&this._mouseCapture(b))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(b)!==!1,!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0))}},_mouseMove:function(b){return a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button?this._mouseUp(b):this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(a,b){a.widget("ui.draggable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;return!(this.helper||c.disabled||a(b.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(b),!!this.handle&&(a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0))},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,b)),this.dropped&&(d=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!a.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b)!==!1&&c._clear()}):this._trigger("stop",b)!==!1&&this._clear(),!1)},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){return!this.options.handle||!!a(b.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d[0]===this.element[0]||/(fixed|absolute)/.test(d.css("position"))||d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;return e.containment?"window"===e.containment?void(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,a(document).width()-this.helperProportions.width-this.margins.left,(a(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),c=a(e.containment),d=c[0],void(d&&(b="hidden"!==c.css("overflow"),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c))):void(this.containment=null)},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:e.scrollTop(),left:e.scrollLeft()}),{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*d}},_generatePosition:function(b){var c,d,e,f,g=this.options,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=b.pageX,j=b.pageY;return this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),left:h.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(d=this.relative_container.offset(),c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]):c=this.containment,b.pageX-this.offset.click.left<c[0]&&(i=c[0]+this.offset.click.left),b.pageY-this.offset.click.top<c[1]&&(j=c[1]+this.offset.click.top),b.pageX-this.offset.click.left>c[2]&&(i=c[2]+this.offset.click.left),b.pageY-this.offset.click.top>c[3]&&(j=c[3]+this.offset.click.top)),g.grid&&(e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e,f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f)),{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d]),"drag"===b&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var d=a(this).data("ui-draggable"),e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[],a(e.connectToSortable).each(function(){var c=a.data(this,"ui-sortable");c&&!c.options.disabled&&(d.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,f))})},stop:function(b,c){var d=a(this).data("ui-draggable"),e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,"original"===d.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,c){var d=a(this).data("ui-draggable"),e=this;a.each(d.sortables,function(){var f=!1,g=this;this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,a.each(d.sortables,function(){return this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this!==g&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(g.instance.element[0],this.instance.element[0])&&(f=!1),f})),f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",b),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",b),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("ui-draggable").options;b.css("cursor")&&(c._cursor=b.css("cursor")),b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("ui-draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("opacity")&&(e._opacity=d.css("opacity")),d.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("ui-draggable");b.scrollParent[0]!==document&&"HTML"!==b.scrollParent[0].tagName&&(b.overflowOffset=b.scrollParent.offset())},drag:function(b){var c=a(this).data("ui-draggable"),d=c.options,e=!1;c.scrollParent[0]!==document&&"HTML"!==c.scrollParent[0].tagName?(d.axis&&"x"===d.axis||(c.overflowOffset.top+c.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity?c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+d.scrollSpeed:b.pageY-c.overflowOffset.top<d.scrollSensitivity&&(c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-d.scrollSpeed)),d.axis&&"y"===d.axis||(c.overflowOffset.left+c.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity?c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+d.scrollSpeed:b.pageX-c.overflowOffset.left<d.scrollSensitivity&&(c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft-d.scrollSpeed))):(d.axis&&"x"===d.axis||(b.pageY-a(document).scrollTop()<d.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<d.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed))),d.axis&&"y"===d.axis||(b.pageX-a(document).scrollLeft()<d.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<d.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)))),e!==!1&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,b)}}),a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("ui-draggable"),c=b.options;b.snapElements=[],a(c.snap.constructor!==String?c.snap.items||":data(ui-draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!==b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(b,c){var d,e,f,g,h,i,j,k,l,m,n=a(this).data("ui-draggable"),o=n.options,p=o.snapTolerance,q=c.offset.left,r=q+n.helperProportions.width,s=c.offset.top,t=s+n.helperProportions.height;for(l=n.snapElements.length-1;l>=0;l--)h=n.snapElements[l].left,i=h+n.snapElements[l].width,j=n.snapElements[l].top,k=j+n.snapElements[l].height,r<h-p||q>i+p||t<j-p||s>k+p||!a.contains(n.snapElements[l].item.ownerDocument,n.snapElements[l].item)?(n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1):("inner"!==o.snapMode&&(d=Math.abs(j-t)<=p,e=Math.abs(k-s)<=p,f=Math.abs(h-r)<=p,g=Math.abs(i-q)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j-n.helperProportions.height,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i}).left-n.margins.left)),m=d||e||f||g,"outer"!==o.snapMode&&(d=Math.abs(j-s)<=p,e=Math.abs(k-t)<=p,f=Math.abs(h-q)<=p,g=Math.abs(i-r)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k-n.helperProportions.height,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i-n.helperProportions.width}).left-n.margins.left)),!n.snapElements[l].snapping&&(d||e||f||g||m)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=d||e||f||g||m)}}),a.ui.plugin.add("draggable","stack",{start:function(){var b,c=this.data("ui-draggable").options,d=a.makeArray(a(c.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});d.length&&(b=parseInt(a(d[0]).css("zIndex"),10)||0,a(d).each(function(c){a(this).css("zIndex",b+c)}),this.css("zIndex",b+d.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("zIndex")&&(e._zIndex=d.css("zIndex")),d.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}a.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var b=this.options,c=b.accept;this.isover=!1,this.isout=!0,this.accept=a.isFunction(c)?c:function(a){return a.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[],a.ui.ddmanager.droppables[b.scope].push(this),b.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var b=0,c=a.ui.ddmanager.droppables[this.options.scope];b<c.length;b++)c[b]===this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(b,c){"accept"===b&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current,e=!1;return!(!d||(d.currentItem||d.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"ui-droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope===d.options.scope&&b.accept.call(b.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return e=!0,!1}),!e&&(!!this.accept.call(this.element[0],d.currentItem||d.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(d)),this.element)))},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}}),a.ui.intersect=function(a,b,d){if(!b.offset)return!1;var e,f,g=(a.positionAbs||a.position.absolute).left,h=g+a.helperProportions.width,i=(a.positionAbs||a.position.absolute).top,j=i+a.helperProportions.height,k=b.offset.left,l=k+b.proportions.width,m=b.offset.top,n=m+b.proportions.height;switch(d){case"fit":return k<=g&&h<=l&&m<=i&&j<=n;case"intersect":return k<g+a.helperProportions.width/2&&h-a.helperProportions.width/2<l&&m<i+a.helperProportions.height/2&&j-a.helperProportions.height/2<n;case"pointer":return e=(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,f=(a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,c(f,m,b.proportions.height)&&c(e,k,b.proportions.width);case"touch":return(i>=m&&i<=n||j>=m&&j<=n||i<m&&j>n)&&(g>=k&&g<=l||h>=k&&h<=l||g<k&&h>l);default:return!1}},a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(b,c){var d,e,f=a.ui.ddmanager.droppables[b.options.scope]||[],g=c?c.type:null,h=(b.currentItem||b.element).find(":data(ui-droppable)").addBack();a:for(d=0;d<f.length;d++)if(!(f[d].options.disabled||b&&!f[d].accept.call(f[d].element[0],b.currentItem||b.element))){for(e=0;e<h.length;e++)if(h[e]===f[d].element[0]){f[d].proportions.height=0;continue a}f[d].visible="none"!==f[d].element.css("display"),f[d].visible&&("mousedown"===g&&f[d]._activate.call(f[d],c),f[d].offset=f[d].element.offset(),f[d].proportions={width:f[d].element[0].offsetWidth,height:f[d].element[0].offsetHeight})}},drop:function(b,c){var d=!1;return a.each((a.ui.ddmanager.droppables[b.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),d},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,e,f,g=a.ui.intersect(b,this,this.options.tolerance),h=!g&&this.isover?"isout":g&&!this.isover?"isover":null;h&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return a.data(this,"ui-droppable").options.scope===e}),f.length&&(d=a.data(f[0],"ui-droppable"),d.greedyChild="isover"===h)),d&&"isover"===h&&(d.isover=!1,d.isout=!0,d._out.call(d,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),d&&"isout"===h&&(d.isout=!1,d.isover=!0,d._over.call(d,c)))}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}}(jQuery),function(a,b){function c(a){return parseInt(a,10)||0}function d(a){return!isNaN(parseInt(a,10))}a.widget("ui.resizable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var b,c,d,e,f,g=this,h=this.options;if(this.element.addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=h.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),b=this.handles.split(","),this.handles={},c=0;c<b.length;c++)d=a.trim(b[c]),f="ui-resizable-"+d,e=a("<div class='ui-resizable-handle "+f+"'></div>"),e.css({zIndex:h.zIndex}),"se"===d&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[d]=".ui-resizable-"+d,this.element.append(e);this._renderAxis=function(b){var c,d,e,f;b=b||this.element;for(c in this.handles)this.handles[c].constructor===String&&(this.handles[c]=a(this.handles[c],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(d=a(this.handles[c],this.element),f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join(""),b.css(e,f),this._proportionallyResize()),a(this.handles[c]).length},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){g.resizing||(this.className&&(e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),g.axis=e&&e[1]?e[1]:"se")}),h.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){h.disabled||(a(this).removeClass("ui-resizable-autohide"),g._handles.show())}).mouseleave(function(){h.disabled||g.resizing||(a(this).addClass("ui-resizable-autohide"),g._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var b,c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(c(this.element),b=this.element,this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b),b.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_mouseCapture:function(b){var c,d,e=!1;for(c in this.handles)d=a(this.handles[c])[0],(d===b.target||a.contains(d,b.target))&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(b){var d,e,f,g=this.options,h=this.element.position(),i=this.element;return this.resizing=!0,/absolute/.test(i.css("position"))?i.css({position:"absolute",top:i.css("top"),left:i.css("left")}):i.is(".ui-draggable")&&i.css({position:"absolute",top:h.top,left:h.left}),this._renderProxy(),d=c(this.helper.css("left")),e=c(this.helper.css("top")),g.containment&&(d+=a(g.containment).scrollLeft()||0,e+=a(g.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:d,top:e},this.size=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalPosition={left:d,top:e},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio="number"==typeof g.aspectRatio?g.aspectRatio:this.originalSize.width/this.originalSize.height||1,f=a(".ui-resizable-"+this.axis).css("cursor"),a("body").css("cursor","auto"===f?this.axis+"-resize":f),i.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c,d=this.helper,e={},f=this.originalMousePosition,g=this.axis,h=this.position.top,i=this.position.left,j=this.size.width,k=this.size.height,l=b.pageX-f.left||0,m=b.pageY-f.top||0,n=this._change[g];return!!n&&(c=n.apply(this,[b,l,m]),this._updateVirtualBoundaries(b.shiftKey),(this._aspectRatio||b.shiftKey)&&(c=this._updateRatio(c,b)),c=this._respectSize(c,b),this._updateCache(c),this._propagate("resize",b),this.position.top!==h&&(e.top=this.position.top+"px"),this.position.left!==i&&(e.left=this.position.left+"px"),this.size.width!==j&&(e.width=this.size.width+"px"),this.size.height!==k&&(e.height=this.size.height+"px"),d.css(e),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),a.isEmptyObject(e)||this._trigger("resize",b,this.ui()),!1)},_mouseStop:function(b){this.resizing=!1;var c,d,e,f,g,h,i,j=this.options,k=this;return this._helper&&(c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&a.ui.hasScroll(c[0],"left")?0:k.sizeDiff.height,f=d?0:k.sizeDiff.width,g={width:k.helper.width()-f,height:k.helper.height()-e},h=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null,i=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null,j.animate||this.element.css(a.extend(g,{top:i,left:h})),k.helper.height(k.size.height),k.helper.width(k.size.width),this._helper&&!j.animate&&this._proportionallyResize()),a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b,c,e,f,g,h=this.options;g={minWidth:d(h.minWidth)?h.minWidth:0,maxWidth:d(h.maxWidth)?h.maxWidth:1/0,minHeight:d(h.minHeight)?h.minHeight:0,maxHeight:d(h.maxHeight)?h.maxHeight:1/0},(this._aspectRatio||a)&&(b=g.minHeight*this.aspectRatio,e=g.minWidth/this.aspectRatio,c=g.maxHeight*this.aspectRatio,f=g.maxWidth/this.aspectRatio,b>g.minWidth&&(g.minWidth=b),e>g.minHeight&&(g.minHeight=e),c<g.maxWidth&&(g.maxWidth=c),f<g.maxHeight&&(g.maxHeight=f)),this._vBoundaries=g},_updateCache:function(a){this.offset=this.helper.offset(),d(a.left)&&(this.position.left=a.left),d(a.top)&&(this.position.top=a.top),d(a.height)&&(this.size.height=a.height),d(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var b=this.position,c=this.size,e=this.axis;return d(a.height)?a.width=a.height*this.aspectRatio:d(a.width)&&(a.height=a.width/this.aspectRatio),"sw"===e&&(a.left=b.left+(c.width-a.width),a.top=null),"nw"===e&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width)),a},_respectSize:function(a){var b=this._vBoundaries,c=this.axis,e=d(a.width)&&b.maxWidth&&b.maxWidth<a.width,f=d(a.height)&&b.maxHeight&&b.maxHeight<a.height,g=d(a.width)&&b.minWidth&&b.minWidth>a.width,h=d(a.height)&&b.minHeight&&b.minHeight>a.height,i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(c),l=/nw|ne|n/.test(c);return g&&(a.width=b.minWidth),h&&(a.height=b.minHeight),e&&(a.width=b.maxWidth),f&&(a.height=b.maxHeight),g&&k&&(a.left=i-b.minWidth),e&&k&&(a.left=i-b.maxWidth),h&&l&&(a.top=j-b.minHeight),f&&l&&(a.top=j-b.maxHeight),a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null,a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var a,b,c,d,e,f=this.helper||this.element;for(a=0;a<this._proportionallyResizeElements.length;a++){if(e=this._proportionallyResizeElements[a],!this.borderDif)for(this.borderDif=[],c=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],d=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")],b=0;b<c.length;b++)this.borderDif[b]=(parseInt(c[b],10)||0)+(parseInt(d[b],10)||0);e.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset(),this._helper?(this.helper=this.helper||a("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){var c=this.originalSize,d=this.originalPosition;return{left:d.left+b,width:c.width-b}},n:function(a,b,c){var d=this.originalSize,e=this.originalPosition;return{top:e.top+c,height:d.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),"resize"!==b&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).data("ui-resizable"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height,h=f?0:c.sizeDiff.width,i={width:c.size.width-h,height:c.size.height-g},j=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,k=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(i,k&&j?{top:k,left:j}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};e&&e.length&&a(e[0]).css({width:d.width,height:d.height}),c._updateCache(d),c._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(){var b,d,e,f,g,h,i,j=a(this).data("ui-resizable"),k=j.options,l=j.element,m=k.containment,n=m instanceof a?m.get(0):/parent/.test(m)?l.parent().get(0):m;n&&(j.containerElement=a(n),/document/.test(m)||m===document?(j.containerOffset={left:0,top:0},j.containerPosition={left:0,top:0},j.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}):(b=a(n),d=[],a(["Top","Right","Left","Bottom"]).each(function(a,e){d[a]=c(b.css("padding"+e))}),j.containerOffset=b.offset(),j.containerPosition=b.position(),j.containerSize={height:b.innerHeight()-d[3],width:b.innerWidth()-d[1]},e=j.containerOffset,f=j.containerSize.height,g=j.containerSize.width,h=a.ui.hasScroll(n,"left")?n.scrollWidth:g,i=a.ui.hasScroll(n)?n.scrollHeight:f,j.parentData={element:n,left:e.left,top:e.top,width:h,height:i}))},resize:function(b){var c,d,e,f,g=a(this).data("ui-resizable"),h=g.options,i=g.containerOffset,j=g.position,k=g._aspectRatio||b.shiftKey,l={top:0,left:0},m=g.containerElement;m[0]!==document&&/static/.test(m.css("position"))&&(l=i),j.left<(g._helper?i.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-i.left:g.position.left-l.left),k&&(g.size.height=g.size.width/g.aspectRatio),g.position.left=h.helper?i.left:0),j.top<(g._helper?i.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-i.top:g.position.top),k&&(g.size.width=g.size.height*g.aspectRatio),g.position.top=g._helper?i.top:0),g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top,c=Math.abs((g._helper?g.offset.left-l.left:g.offset.left-l.left)+g.sizeDiff.width),d=Math.abs((g._helper?g.offset.top-l.top:g.offset.top-i.top)+g.sizeDiff.height),e=g.containerElement.get(0)===g.element.parent().get(0),f=/relative|absolute/.test(g.containerElement.css("position")),e&&f&&(c-=g.parentData.left),c+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-c,k&&(g.size.height=g.size.width/g.aspectRatio)),d+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-d,k&&(g.size.width=g.size.height*g.aspectRatio))},stop:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.containerOffset,e=b.containerPosition,f=b.containerElement,g=a(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,j=g.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j}),b._helper&&!c.animate&&/static/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j})}}),a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.data("ui-resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};"object"!=typeof c.alsoResize||c.alsoResize.parentNode?d(c.alsoResize):c.alsoResize.length?(c.alsoResize=c.alsoResize[0],d(c.alsoResize)):a.each(c.alsoResize,function(a){d(a)})},resize:function(b,c){var d=a(this).data("ui-resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("ui-resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};"object"!=typeof e.alsoResize||e.alsoResize.nodeType?i(e.alsoResize):a.each(e.alsoResize,function(a,b){i(a,b)})},stop:function(){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone(),b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof c.ghost?c.ghost:""),b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("ui-resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("ui-resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size,e=b.originalSize,f=b.originalPosition,g=b.axis,h="number"==typeof c.grid?[c.grid,c.grid]:c.grid,i=h[0]||1,j=h[1]||1,k=Math.round((d.width-e.width)/i)*i,l=Math.round((d.height-e.height)/j)*j,m=e.width+k,n=e.height+l,o=c.maxWidth&&c.maxWidth<m,p=c.maxHeight&&c.maxHeight<n,q=c.minWidth&&c.minWidth>m,r=c.minHeight&&c.minHeight>n;c.grid=h,q&&(m+=i),r&&(n+=j),o&&(m-=i),p&&(n-=j),/^(se|s|e)$/.test(g)?(b.size.width=m,b.size.height=n):/^(ne)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.top=f.top-l):/^(sw)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.left=f.left-k):(b.size.width=m,b.size.height=n,b.position.top=f.top-l,b.position.left=f.left-k)}})}(jQuery),function(a,b){a.widget("ui.selectable",a.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var b,c=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){b=a(c.options.filter,c.element[0]),b.addClass("ui-selectee"),b.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=b.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(b){var c=this,d=this.options;this.opos=[b.pageX,b.pageY],this.options.disabled||(this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.pageX,top:b.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||b.ctrlKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().addBack().each(function(){var d,e=a.data(this,"selectable-item");if(e)return d=!b.metaKey&&!b.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting"),e.unselecting=!d,e.selecting=d,e.selected=d,d?c._trigger("selecting",b,{selecting:e.element}):c._trigger("unselecting",b,{unselecting:e.element}),!1}))},_mouseDrag:function(b){if(this.dragged=!0,!this.options.disabled){var c,d=this,e=this.options,f=this.opos[0],g=this.opos[1],h=b.pageX,i=b.pageY;return f>h&&(c=h,h=f,f=c),g>i&&(c=i,i=g,g=c),this.helper.css({left:f,top:g,width:h-f,height:i-g}),this.selectees.each(function(){var c=a.data(this,"selectable-item"),j=!1;c&&c.element!==d.element[0]&&("touch"===e.tolerance?j=!(c.left>h||c.right<f||c.top>i||c.bottom<g):"fit"===e.tolerance&&(j=c.left>f&&c.right<h&&c.top>g&&c.bottom<i),j?(c.selected&&(c.$element.removeClass("ui-selected"),c.selected=!1),c.unselecting&&(c.$element.removeClass("ui-unselecting"),c.unselecting=!1),c.selecting||(c.$element.addClass("ui-selecting"),c.selecting=!0,d._trigger("selecting",b,{selecting:c.element}))):(c.selecting&&((b.metaKey||b.ctrlKey)&&c.startselected?(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.$element.addClass("ui-selected"),c.selected=!0):(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.startselected&&(c.$element.addClass("ui-unselecting"),c.unselecting=!0),d._trigger("unselecting",b,{unselecting:c.element}))),c.selected&&(b.metaKey||b.ctrlKey||c.startselected||(c.$element.removeClass("ui-selected"),c.selected=!1,c.$element.addClass("ui-unselecting"),c.unselecting=!0,d._trigger("unselecting",b,{unselecting:c.element})))))}),!1}},_mouseStop:function(b){var c=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}function d(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))}a.widget("ui.sortable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===a.axis||d(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){"disabled"===b?(this.options[b]=c,this.widget().toggleClass("ui-sortable-disabled",!!c)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=null,e=!1,f=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(b),a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f)return d=a(this),!1}),a.data(b.target,f.widgetName+"-item")===f&&(d=a(b.target)),!!d&&(!(this.options.handle&&!c&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(e=!0)}),!e))&&(this.currentItem=d,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(b,c,d){var e,f,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(f=this.document.find("body"),this.storedCursor=f.css("cursor"),f.css("cursor",g.cursor),this.storedStylesheet=a("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(f)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=!1;for(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed:b.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed:b.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(b.pageY-a(document).scrollTop()<g.scrollSensitivity?h=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<g.scrollSensitivity&&(h=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)),b.pageX-a(document).scrollLeft()<g.scrollSensitivity?h=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<g.scrollSensitivity&&(h=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed))),h!==!1&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),c=this.items.length-1;c>=0;c--)if(d=this.items[c],e=d.item[0],f=this._intersectsWithPointer(d),f&&d.instance===this.currentContainer&&!(e===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===e||a.contains(this.placeholder[0],e)||"semi-dynamic"===this.options.type&&a.contains(this.element[0],e))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(b,d),this._trigger("change",b,this._uiHash());break}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};f&&"x"!==f||(g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),f&&"y"!==f||(g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l="x"===this.options.axis||d+j>h&&d+j<i,m="y"===this.options.axis||b+k>f&&b+k<g,n=l&&m;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?n:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(a){var b="x"===this.options.axis||c(this.positionAbs.top+this.offset.click.top,a.top,a.height),d="y"===this.options.axis||c(this.positionAbs.left+this.offset.click.left,a.left,a.width),e=b&&d,f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return!!e&&(this.floating?g&&"right"===g||"down"===f?2:1:f&&("down"===f?2:1))},_intersectsWithSides:function(a){var b=c(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),d=c(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?"right"===f&&d||"left"===f&&!d:e&&("down"===e&&b||"up"===e&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c,d,e,f,g=[],h=[],i=this._connectWith();if(i&&b)for(c=i.length-1;c>=0;c--)for(e=a(i[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&h.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),f]);for(h.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),c=h.length-1;c>=0;c--)h[c][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++)if(b[c]===a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[],this.containers=[this];var c,d,e,f,g,h,i,j,k=this.items,l=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],m=this._connectWith();if(m&&this.ready)for(c=m.length-1;c>=0;c--)for(e=a(m[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&(l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]),this.containers.push(f));for(c=l.length-1;c>=0;c--)for(g=l[c][1],h=l[c][0],d=0,j=h.length;d<j;d++)i=a(h[d]),i.data(this.widgetName+"-item",g),k.push({item:i,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var c,d,e,f;for(c=this.items.length-1;c>=0;c--)d=this.items[c],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=e.outerWidth(),d.height=e.outerHeight()),f=e.offset(),d.left=f.left,d.top=f.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(c=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===d?b.currentItem.children().each(function(){a("<td>&#160;</td>",b.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(e)}):"img"===d&&e.attr("src",b.currentItem.attr("src")),c||e.css("visibility","hidden"),e},update:function(a,e){c&&!d.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10)))}}),b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),d.placeholder.update(b,b.placeholder)},_contactContainers:function(b){var e,f,g,h,i,j,k,l,m,n,o=null,p=null;for(e=this.containers.length-1;e>=0;e--)if(!a.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(o&&a.contains(this.containers[e].element[0],o.element[0]))continue;o=this.containers[e],p=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0);if(o)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(g=1e4,h=null,n=o.floating||d(this.currentItem),i=n?"left":"top",j=n?"width":"height",k=this.positionAbs[i]+this.offset.click[i],f=this.items.length-1;f>=0;f--)a.contains(this.containers[p].element[0],this.items[f].item[0])&&this.items[f].item[0]!==this.currentItem[0]&&(n&&!c(this.positionAbs.top+this.offset.click.top,this.items[f].top,this.items[f].height)||(l=this.items[f].item.offset()[i],m=!1,Math.abs(l-k)>Math.abs(l+this.items[f][j]-k)&&(m=!0,l+=this.items[f][j]),Math.abs(l-k)<g&&(g=Math.abs(l-k),h=this.items[f],this.direction=m?"up":"down")));if(!h&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return;h?this._rearrange(b,h,null,!0):this._rearrange(b,null,this.containers[p].element,!0),this._trigger("change",b,this._uiHash()),this.containers[p]._trigger("change",b,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):"clone"===c.helper?this.currentItem.clone():this.currentItem;return d.parents("body").length||a("parent"!==c.appendTo?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),d[0].style.width&&!c.forceHelperSize||d.width(this.currentItem.width()),d[0].style.height&&!c.forceHelperSize||d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode),"document"!==e.containment&&"window"!==e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a("document"===e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(a("document"===e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||(b=a(e.containment)[0],c=a(e.containment).offset(),d="hidden"!==a(b).css("overflow"),this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(b){var c,d,e=this.options,f=b.pageX,g=b.pageY,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(h[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),e.grid&&(c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1],g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c,d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0],f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){this.reverting=!1;var c,d=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(c in this._storedCSS)"auto"!==this._storedCSS[c]&&"static"!==this._storedCSS[c]||(this._storedCSS[c]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!b&&d.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||d.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(b||(d.push(function(a){this._trigger("remove",a,this._uiHash())}),d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer)))),c=this.containers.length-1;c>=0;c--)b||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!b){for(this._trigger("beforeStop",a,this._uiHash()),c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!1}if(b||this._trigger("beforeStop",a,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!b){for(c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}})}(jQuery),function(a,b){var c="ui-effects-";a.effects={effect:{}},function(a,b){function m(a,b,c){var d=h[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function n(b){var c=f(),d=c._rgba=[];return b=b.toLowerCase(),l(e,function(a,e){var f,h=e.re.exec(b),i=h&&e.parse(h),j=e.space||"rgba";if(i)return f=c[j](i),c[g[j].cache]=f[g[j].cache],d=c._rgba=f._rgba,!1}),d.length?("0,0,0,0"===d.join()&&a.extend(d,k.transparent),c):k[b]}function o(a,b,c){return c=(c+1)%1,6*c<1?a+(b-a)*c*6:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}var k,c="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",d=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],f=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},i=f.support={},j=a("<p>")[0],l=a.each;j.style.cssText="background-color:rgba(1,1,1,.5)",i.rgba=j.style.backgroundColor.indexOf("rgba")>-1,l(g,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),f.fn=a.extend(f.prototype,{parse:function(c,d,e,h){if(c===b)return this._rgba=[null,null,null,null],this;(c.jquery||c.nodeType)&&(c=a(c).css(d),d=b);var i=this,j=a.type(c),o=this._rgba=[];return d!==b&&(c=[c,d,e,h],j="array"),"string"===j?this.parse(n(c)||k._default):"array"===j?(l(g.rgba.props,function(a,b){o[b.idx]=m(c[b.idx],b)}),this):"object"===j?(c instanceof f?l(g,function(a,b){c[b.cache]&&(i[b.cache]=c[b.cache].slice())}):l(g,function(b,d){var e=d.cache;l(d.props,function(a,b){if(!i[e]&&d.to){if("alpha"===a||null==c[a])return;i[e]=d.to(i._rgba)}i[e][b.idx]=m(c[a],b,!0)}),i[e]&&a.inArray(null,i[e].slice(0,3))<0&&(i[e][3]=1,d.from&&(i._rgba=d.from(i[e])))}),this):void 0},is:function(a){var b=f(a),c=!0,d=this;return l(g,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],l(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return l(g,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var c=f(a),d=c._space(),e=g[d],i=0===this.alpha()?f("transparent"):this,j=i[e.cache]||e.to(i._rgba),k=j.slice();return c=c[e.cache],l(e.props,function(a,d){var e=d.idx,f=j[e],g=c[e],i=h[d.type]||{};null!==g&&(null===f?k[e]=g:(i.mod&&(g-f>i.mod/2?f+=i.mod:f-g>i.mod/2&&(f-=i.mod)),k[e]=m((g-f)*b+f,d)))}),this[d](k)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=f(b)._rgba;return f(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,g.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var k,l,b=a[0]/255,c=a[1]/255,d=a[2]/255,e=a[3],f=Math.max(b,c,d),g=Math.min(b,c,d),h=f-g,i=f+g,j=.5*i;return k=g===f?0:b===f?60*(c-d)/h+360:c===f?60*(d-b)/h+120:60*(b-c)/h+240,l=0===h?0:j<=.5?h/i:h/(2-i),[Math.round(k)%360,l,j,null==e?1:e]},g.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],e=a[3],f=d<=.5?d*(1+c):d+c-d*c,g=2*d-f;return[Math.round(255*o(g,f,b+1/3)),Math.round(255*o(g,f,b)),Math.round(255*o(g,f,b-1/3)),e]},l(g,function(c,e){var g=e.props,h=e.cache,i=e.to,j=e.from;f.fn[c]=function(c){if(i&&!this[h]&&(this[h]=i(this._rgba)),c===b)return this[h].slice();var d,e=a.type(c),k="array"===e||"object"===e?c:arguments,n=this[h].slice();return l(g,function(a,b){var c=k["object"===e?a:b.idx];null==c&&(c=n[b.idx]),n[b.idx]=m(c,b)}),j?(d=f(j(n)),d[h]=n,d):f(n)},l(g,function(b,e){f.fn[b]||(f.fn[b]=function(f){var k,g=a.type(f),h="alpha"===b?this._hsla?"hsla":"rgba":c,i=this[h](),j=i[e.idx];return"undefined"===g?j:("function"===g&&(f=f.call(this,j),g=a.type(f)),null==f&&e.empty?this:("string"===g&&(k=d.exec(f),k&&(f=j+parseFloat(k[2])*("+"===k[1]?1:-1))),i[e.idx]=f,this[h](i)))})})}),f.hook=function(b){var c=b.split(" ");l(c,function(b,c){a.cssHooks[c]={set:function(b,d){var e,g,h="";if("transparent"!==d&&("string"!==a.type(d)||(e=n(d)))){if(d=f(e||d),!i.rgba&&1!==d._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(a){}d=d.blend(h&&"transparent"!==h?h:"_default")}d=d.toRgbaString()}try{b.style[c]=d}catch(a){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=f(b.elem,c),b.end=f(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},f.hook(c),a.cssHooks.borderColor={expand:function(a){var b={};return l(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},k=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function e(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function f(b,c){var f,g,e={};for(f in c)g=c[f],b[f]!==g&&(d[f]||!a.fx.step[f]&&isNaN(parseFloat(g))||(e[f]=g));return e}var c=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(jQuery.style(a.elem,c,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(b,d,g,h){var i=a.speed(d,g,h);return this.queue(function(){var h,d=a(this),g=d.attr("class")||"",j=i.children?d.find("*").addBack():d;j=j.map(function(){var b=a(this);return{el:b,start:e(this)}}),h=function(){a.each(c,function(a,c){b[c]&&d[c+"Class"](b[c])})},h(),j=j.map(function(){return this.end=e(this.el[0]),this.diff=f(this.start,this.end),this}),d.attr("class",g),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){h(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(d[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(c){return function(d,e,f,g,h){return"boolean"==typeof e||e===b?f?a.effects.animateClass.call(this,e?{add:d}:{remove:d},f,g,h):c.apply(this,arguments):a.effects.animateClass.call(this,{toggle:d},e,f,g)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function d(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function e(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.10.3",save:function(a,b){for(var d=0;d<b.length;d++)null!==b[d]&&a.data(c+b[d],a[0].style[b[d]])},restore:function(a,d){var e,f;for(f=0;f<d.length;f++)null!==d[f]&&(e=a.data(c+d[f]),e===b&&(e=""),a.css(d[f],e))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),float:b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(a){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function g(c){function h(){a.isFunction(e)&&e.call(d[0]),a.isFunction(c)&&c()}var d=a(this),e=b.complete,g=b.mode;(d.is(":hidden")?"hide"===g:"show"===g)?(d[g](),h()):f.call(d[0],b,h)}var b=d.apply(this,arguments),c=b.mode,e=b.queue,f=a.effects.effect[b.effect];return a.fx.off||!f?c?this[c](b.duration,b.complete):this.each(function(){b.complete&&b.complete.call(this)}):e===!1?this.each(g):this.queue(e||"fx",g)},show:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="show",this.effect.call(this,c)}}(a.fn.show),hide:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="hide",this.effect.call(this,c)}}(a.fn.hide),toggle:function(a){return function(b){if(e(b)||"boolean"==typeof b)return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="toggle",this.effect.call(this,c)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}()}(jQuery),function(a,b){var c=0,d={},e={};d.height=d.paddingTop=d.paddingBottom=d.borderTopWidth=d.borderBottomWidth="hide",e.height=e.paddingTop=e.paddingBottom=e.borderTopWidth=e.borderBottomWidth="show",a.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var b=this.options;this.prevShow=this.prevHide=a(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),b.collapsible||b.active!==!1&&null!=b.active||(b.active=0),this._processPanels(),b.active<0&&(b.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():a(),content:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),a=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){return"active"===a?void this._activate(b):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||this.options.active!==!1||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),void("disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b)))},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(b);break;case c.HOME:f=this.headers[0];break;case c.END:f=this.headers[d-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b=this.options;this._processPanels(),b.active===!1&&b.collapsible===!0||!this.headers.length?(b.active=!1,this.active=a()):b.active===!1?this._activate(0):this.active.length&&!a.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(b.active=!1,this.active=a()):this._activate(Math.max(0,b.active-1)):b.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var b,d=this.options,e=d.heightStyle,f=this.element.parent(),g=this.accordionId="ui-accordion-"+(this.element.attr("id")||++c);this.active=this._findActive(d.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(b){var c=a(this),d=c.attr("id"),e=c.next(),f=e.attr("id");d||(d=g+"-header-"+b,c.attr("id",d)),f||(f=g+"-panel-"+b,e.attr("id",f)),c.attr("aria-controls",f),e.attr("aria-labelledby",d)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(d.event),"fill"===e?(b=f.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===e&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){var c=this._findActive(b)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return"number"==typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var c={keydown:"_keydown"};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,c),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e[0]===d[0],g=f&&c.collapsible,h=g?a():e.next(),i=d.next(),j={oldHeader:d,oldPanel:i,newHeader:g?a():e,newPanel:h};b.preventDefault(),f&&!c.collapsible||this._trigger("beforeActivate",b,j)===!1||(c.active=!g&&this.headers.index(e),this.active=f?a():e,this._toggle(j),d.removeClass("ui-accordion-header-active ui-state-active"),c.icons&&d.children(".ui-accordion-header-icon").removeClass(c.icons.activeHeader).addClass(c.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),c.icons&&e.children(".ui-accordion-header-icon").removeClass(c.icons.header).addClass(c.icons.activeHeader),e.next().addClass("ui-accordion-content-active")))},_toggle:function(b){var c=b.newPanel,d=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=d,this.options.animate?this._animate(c,d,b):(d.hide(),c.show(),this._toggleComplete(b)),d.attr({"aria-expanded":"false","aria-hidden":"true"}),d.prev().attr("aria-selected","false"),c.length&&d.length?d.prev().attr("tabIndex",-1):c.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),c.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(a,b,c){var f,g,h,i=this,j=0,k=a.length&&(!b.length||a.index()<b.index()),l=this.options.animate||{},m=k&&l.down||l,n=function(){i._toggleComplete(c)};return"number"==typeof m&&(h=m),"string"==typeof m&&(g=m),g=g||m.easing||l.easing,h=h||m.duration||l.duration,b.length?a.length?(f=a.show().outerHeight(),b.animate(d,{duration:h,easing:g,step:function(a,b){b.now=Math.round(a)}}),void a.hide().animate(e,{duration:h,easing:g,complete:n,step:function(a,c){c.now=Math.round(a),"height"!==c.prop?j+=c.now:"content"!==i.options.heightStyle&&(c.now=Math.round(f-b.outerHeight()-j),j=0)}})):b.animate(d,h,g,n):a.animate(e,h,g,n)},_toggleComplete:function(a){var b=a.oldPanel;b.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),b.length&&(b.parent()[0].className=b.parent()[0].className),this._trigger("activate",null,a)}})}(jQuery),function(a,b){var c=0;a.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var b,c,d,e=this.element[0].nodeName.toLowerCase(),f="textarea"===e,g="input"===e;this.isMultiLine=!!f||!g&&this.element.prop("isContentEditable"),this.valueMethod=this.element[f||g?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))return b=!0,d=!0,void(c=!0);b=!1,d=!1,c=!1;var f=a.ui.keyCode;switch(e.keyCode){case f.PAGE_UP:b=!0,this._move("previousPage",e);break;case f.PAGE_DOWN:b=!0,this._move("nextPage",e);break;case f.UP:b=!0,this._keyEvent("previous",e);break;case f.DOWN:b=!0,this._keyEvent("next",e);break;case f.ENTER:case f.NUMPAD_ENTER:this.menu.active&&(b=!0,e.preventDefault(),this.menu.select(e));break;case f.TAB:this.menu.active&&this.menu.select(e);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(e),e.preventDefault());break;default:c=!0,this._searchTimeout(e)}},keypress:function(d){if(b)return b=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||d.preventDefault());if(!c){var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:this._move("previousPage",d);break;case e.PAGE_DOWN:this._move("nextPage",d);break;case e.UP:this._keyEvent("previous",d);break;case e.DOWN:this._keyEvent("next",d)}}},input:function(a){return d?(d=!1,void a.preventDefault()):void this._searchTimeout(a)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(a),void this._change(a))}}),this._initSource(),this.menu=a("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(b){b.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var c=this.menu.element[0];a(b.target).closest(".ui-menu-item").length||this._delay(function(){var b=this;this.document.one("mousedown",function(d){d.target===b.element[0]||d.target===c||a.contains(c,d.target)||b.close()})})},menufocus:function(b,c){if(this.isNewMenu&&(this.isNewMenu=!1,b.originalEvent&&/^mouse/.test(b.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){a(b.target).trigger(b.originalEvent)});var d=c.item.data("ui-autocomplete-item");!1!==this._trigger("focus",b,{item:d})?b.originalEvent&&/^key/.test(b.originalEvent.type)&&this._value(d.value):this.liveRegion.text(d.value)},menuselect:function(a,b){var c=b.item.data("ui-autocomplete-item"),d=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=d,this._delay(function(){this.previous=d,this.selectedItem=c})),!1!==this._trigger("select",a,{item:c})&&this._value(c.value),this.term=this._value(),this.close(a),this.selectedItem=c}}),this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(a,b){this._super(a,b),"source"===a&&this._initSource(),"appendTo"===a&&this.menu.element.appendTo(this._appendTo()),"disabled"===a&&b&&this.xhr&&this.xhr.abort()},_appendTo:function(){var b=this.options.appendTo;return b&&(b=b.jquery||b.nodeType?a(b):this.document.find(b).eq(0)),b||(b=this.element.closest(".ui-front")),b.length||(b=this.document[0].body),b},_initSource:function(){var b,c,d=this;a.isArray(this.options.source)?(b=this.options.source,this.source=function(c,d){d(a.ui.autocomplete.filter(b,c.term))}):"string"==typeof this.options.source?(c=this.options.source,this.source=function(b,e){d.xhr&&d.xhr.abort(),d.xhr=a.ajax({url:c,data:b,dataType:"json",success:function(a){e(a)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,b){return a=null!=a?a:this._value(),this.term=this._value(),a.length<this.options.minLength?this.close(b):this._trigger("search",b)!==!1?this._search(a):void 0},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:a},this._response())},_response:function(){var a=this,b=++c;return function(d){b===c&&a.__response(d),a.pending--,a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){a&&(a=this._normalize(a)),this._trigger("response",null,{content:a}),!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):this._close()},close:function(a){this.cancelSearch=!0,this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return"string"==typeof b?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty();this._renderMenu(c,b),this.isNewMenu=!0,this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItemData(b,c)})},_renderItemData:function(a,b){return this._renderItem(a,b).data("ui-autocomplete-item",b)},_renderItem:function(b,c){return a("<li>").append(a("<a>").text(c.label)).appendTo(b)},_move:function(a,b){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a)?(this._value(this.term),void this.menu.blur()):void this.menu[a](b):void this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,b){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(a,b),b.preventDefault())}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}}),a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(a>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(a){var b;this._superApply(arguments),this.options.disabled||this.cancelSearch||(b=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(b))}})}(jQuery),function(a,b){var c,d,e,f,g="ui-button ui-widget ui-state-default ui-corner-all",h="ui-state-hover ui-state-active ",i="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",j=function(){var b=a(this);setTimeout(function(){b.find(":ui-button").button("refresh")},1)},k=function(b){var c=b.name,d=b.form,e=a([]);return c&&(c=c.replace(/'/g,"\\'"),e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form})),e};a.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,j),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var b=this,h=this.options,i="checkbox"===this.type||"radio"===this.type,l=i?"":"ui-state-active",m="ui-state-focus";null===h.label&&(h.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(g).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){h.disabled||this===c&&a(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){h.disabled||a(this).removeClass(l)}).bind("click"+this.eventNamespace,function(a){h.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){b.buttonElement.addClass(m)}).bind("blur"+this.eventNamespace,function(){b.buttonElement.removeClass(m)}),i&&(this.element.bind("change"+this.eventNamespace,function(){f||b.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){h.disabled||(f=!1,d=a.pageX,e=a.pageY)}).bind("mouseup"+this.eventNamespace,function(a){h.disabled||d===a.pageX&&e===a.pageY||(f=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1;a(this).addClass("ui-state-active"),b.buttonElement.attr("aria-pressed","true");var c=b.element[0];k(c).not(c).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!h.disabled&&(a(this).addClass("ui-state-active"),c=this,void b.document.one("mouseup",function(){c=null}))}).bind("mouseup"+this.eventNamespace,function(){return!h.disabled&&void a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(b){return!h.disabled&&void(b.keyCode!==a.ui.keyCode.SPACE&&b.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})),this._setOption("disabled",h.disabled),this._resetButton()},_determineButtonType:function(){var a,b,c;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),b="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(b),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),this.buttonElement.length||(this.buttonElement=a.find(b))),this.element.addClass("ui-helper-hidden-accessible"),c=this.element.is(":checked"),c&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",c)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(g+" "+h+" "+i).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,b){return this._super(a,b),"disabled"===a?void(b?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var b=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");b!==this.options.disabled&&this._setOption("disabled",b),"radio"===this.type?k(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var b=this.buttonElement.removeClass(i),c=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",a.trim(c)))):f.push("ui-button-text-only"),b.addClass(f.join(" "))}}),a.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,b){"disabled"===a&&this.buttons.button("option",a,b),this._super(a,b)},refresh:function(){var b="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(a,b){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.dpDiv=f(a("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function f(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.delegate(c,"mouseout",function(){a(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).removeClass("ui-datepicker-next-hover")}).delegate(c,"mouseover",function(){a.datepicker._isDisabledDatepicker(d.inline?b.parent()[0]:d.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).addClass("ui-datepicker-next-hover"))})}function g(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.extend(a.ui,{datepicker:{version:"1.10.3"}});var d,c="datepicker";a.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return g(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var d=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:d,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?f(a("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,d){var e=a(b);d.append=a([]),d.trigger=a([]),e.hasClass(this.markerClassName)||(this._attachments(e,d),e.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(d),a.data(b,c,d),d.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span class='"+this._appendClass+"'>"+g+"</span>"),b[h?"before":"after"](c.append)),b.unbind("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),"focus"!==d&&"both"!==d||b.focus(this._showDatepicker),"button"!==d&&"both"!==d||(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("<button type='button'></button>").addClass(this._triggerClass).html(f?a("<img/>").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,d){var e=a(b);e.hasClass(this.markerClassName)||(e.addClass(this.markerClassName).append(d.dpDiv),a.data(b,c,d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.settings.disabled&&this._disableDatepicker(b),d.dpDiv.css("display","block"))},_dialogDatepicker:function(b,d,e,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+i+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],c,n)),g(n.settings,f||{}),d=d&&d.constructor===Date?this._formatDate(n,d):d,this._dialogInput.val(d),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=e,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],c,n),this},_destroyDatepicker:function(b){var d,e=a(b),f=a.data(b,c);e.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),a.removeData(b,c),"input"===d?(f.append.remove(),f.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==d&&"span"!==d||e.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!1,g.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!0,g.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,c)}catch(a){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(c,d,e){var f,h,i,j,k=this._getInst(c);return 2===arguments.length&&"string"==typeof d?"defaults"===d?a.extend({},a.datepicker._defaults):k?"all"===d?a.extend({},k.settings):this._get(k,d):null:(f=d||{},"string"==typeof d&&(f={},f[d]=e),void(k&&(this._curInst===k&&this._hideDatepicker(),h=this._getDateDatepicker(c,!0),i=this._getMinMaxDate(k,"min"),j=this._getMinMaxDate(k,"max"),g(k.settings,f),null!==i&&f.dateFormat!==b&&f.minDate===b&&(k.settings.minDate=this._formatDate(k,i)),null!==j&&f.dateFormat!==b&&f.maxDate===b&&(k.settings.maxDate=this._formatDate(k,j)),"disabled"in f&&(f.disabled?this._disableDatepicker(c):this._enableDatepicker(c)),this._attachments(a(c),k),this._autoSize(k),this._setDate(k,h),this._updateAlternate(k),this._updateDatepicker(k))))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".ui-datepicker-rtl");if(f._keyEvent=!0,a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv),e[0]&&a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.datepicker._get(f,"onSelect"),c?(d=a.datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput"))return c=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||d<" "||!c||c.indexOf(d)>-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(a){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,e,f,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),e=d?d.apply(b,[b,c]):{},e!==!1&&(g(c.settings,e),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),f=!1,a(b).parents().each(function(){return f|="fixed"===a(this).css("position"),!f}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,f),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,d=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,e=this._getNumberOfMonths(b),f=e[1],g=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),b.dpDiv[(1!==e[0]||1!==e[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var d,e,f,g,h=this._curInst;!h||b&&h!==a.data(b,c)||this._datepickerShowing&&(d=this._get(h,"showAnim"),e=this._get(h,"duration"),f=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[d]||a.effects[d])?h.dpDiv.hide(d,a.datepicker._get(h,"showOptions"),e,f):h.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?e:null,f),d||f(),this._datepickerShowing=!1,g=this._get(h,"onClose"),g&&g.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,t,h=0,i=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,j="string"!=typeof i?i:(new Date).getFullYear()%100+parseInt(i,10),k=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,n=(d?d.monthNames:null)||this._defaults.monthNames,o=-1,p=-1,q=-1,r=-1,s=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e=new RegExp("^\\d{1,"+d+"}"),f=c.substring(h).match(e);if(!f)throw"Missing number at position "+h;return h+=f[0].length,parseInt(f[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];if(c.substr(h,d.length).toLowerCase()===d.toLowerCase())return f=b[0],h+=d.length,!1}),f!==-1)return f+1;throw"Unknown name at position "+h},x=function(){if(c.charAt(h)!==b.charAt(e))throw"Unexpected literal at position "+h;h++};for(e=0;e<b.length;e++)if(s)"'"!==b.charAt(e)||u("'")?x():s=!1;else switch(b.charAt(e)){case"d":q=v("d");break;case"D":w("D",k,l);break;case"o":r=v("o");break;case"m":p=v("m");break;case"M":p=w("M",m,n);break;case"y":o=v("y");break;case"@":t=new Date(v("@")),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"!":t=new Date((v("!")-this._ticksTo1970)/1e4),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"'":u("'")?x():s=!0;break;default:x()}if(h<c.length&&(g=c.substr(h),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(o===-1?o=(new Date).getFullYear():o<100&&(o+=(new Date).getFullYear()-(new Date).getFullYear()%100+(o<=j?0:-100)),r>-1)for(p=1,q=r;;){if(f=this._getDaysInMonth(o,p-1),q<=f)break;p++,q-=f}if(t=this._daylightSavingAdjust(new Date(o,p-1,q)),t.getFullYear()!==o||t.getMonth()+1!==p||t.getDate()!==q)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,c){return a.settings[c]!==b?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(a){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),c,a.datepicker._getFormatConfig(b))}catch(a){}for(var d=(c.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,e=d.getFullYear(),f=d.getMonth(),g=d.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=h.exec(c);i;){switch(i[2]||"d"){case"d":case"D":g+=parseInt(i[1],10);break;case"w":case"W":g+=7*parseInt(i[1],10);break;case"m":case"M":f+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f));break;case"y":case"Y":e+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f))}i=h.exec(c)}return new Date(e,f,g)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&b<Z?Z:b;this._daylightSavingAdjust(new Date(aa,_,1))>b;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(a,"closeText")+"</button>",j=R?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Q?i:"")+(this._isInRange(a,h)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+g+"</button>":"")+(Q?"":i)+"</div>":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w<U[0];w++){for(x="",this.maxRows=4,y=0;y<U[1];y++){if(z=this._daylightSavingAdjust(new Date(aa,_,a.selectedDay)),A=" ui-corner-all",B="",X){if(B+="<div class='ui-datepicker-group",U[1]>1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",C=l?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"",v=0;v<7;v++)D=(v+k)%7,C+="<th"+((v+k+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+m[D]+"'>"+n[D]+"</span></th>";for(B+=C+"</tr></thead><tbody>",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J<H;J++){for(B+="<tr>",K=l?"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(I)+"</td>":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I<Z||$&&I>$,K+="<td class='"+((v+k+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(I.getTime()===z.getTime()&&_===a.selectedMonth&&a._keyEvent||t.getTime()===I.getTime()&&t.getTime()===z.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!r?"":" "+L[1]+(I.getTime()===Y.getTime()?" "+this._currentClass:"")+(I.getTime()===P.getTime()?" ui-datepicker-today":""))+"'"+(M&&!r||!L[2]?"":" title='"+L[2].replace(/'/g,"&#39;")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(M&&!r?"&#xa0;":N?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===P.getTime()?" ui-state-highlight":"")+(I.getTime()===Y.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+"</tr>"}_++,_>11&&(_=0,aa++),B+="</tbody></table>"+(X?"</div>"+(U[0]>0&&y===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="<div class='ui-datepicker-title'>",u="";if(f||!q)u+="<span class='ui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",k=0;k<12;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(u+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");u+="</select>"}if(s||(t+=u+(!f&&q&&r?"":"&#xa0;")),!a.yearshtml)if(a.yearshtml="",f||!r)t+="<span class='ui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";o<=p;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":"&#xa0;")+u),t+="</div>"},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&b<c?c:b;return d&&e>d?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new e,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.3"}(jQuery),function(a,b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},d={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&this._trigger("beforeClose",b)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,b){var c=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return c&&!b&&this._trigger("focus",a),c},open:function(){var b=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).focus()},_keepFocus:function(b){function c(){var b=this.document[0].activeElement,c=this.uiDialog[0]===b||a.contains(this.uiDialog[0],b);c||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(e.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(b),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html("&#160;"),a.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,d.click=function(){e.apply(b.element[0],arguments)},f={icons:d.icons,text:d.showText},delete d.icons,delete d.showText,a("<button></button>",d).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function d(a){return{position:a.position,offset:a.offset}}var b=this,c=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,e){a(this).addClass("ui-dialog-dragging"),b._blockFrames(),b._trigger("dragStart",c,d(e))},drag:function(a,c){b._trigger("drag",a,d(c))},stop:function(e,f){c.position=[f.position.left-b.document.scrollLeft(),f.position.top-b.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),b._unblockFrames(),b._trigger("dragStop",e,d(f))}})},_makeResizable:function(){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var b=this,c=this.options,d=c.resizable,e=this.uiDialog.css("position"),f="string"==typeof d?d:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:f,start:function(c,d){a(this).addClass("ui-dialog-resizing"),b._blockFrames(),b._trigger("resizeStart",c,g(d))},resize:function(a,c){b._trigger("resize",a,g(c))},stop:function(d,e){c.height=a(this).height(),c.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),b._unblockFrames(),b._trigger("resizeStop",d,g(e))}}).css("position",e)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var e=this,f=!1,g={};a.each(b,function(a,b){e._setOption(a,b),a in c&&(f=!0),a in d&&(g[a]=b)}),f&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(a,b){var c,d,e=this.uiDialog;"dialogClass"===a&&e.removeClass(this.options.dialogClass).addClass(b),"disabled"!==a&&(this._super(a,b),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+b}),"draggable"===a&&(c=e.is(":data(ui-draggable)"),c&&!b&&e.draggable("destroy"),!c&&b&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&(d=e.is(":data(ui-resizable)"),d&&!b&&e.resizable("destroy"),d&&"string"==typeof b&&e.resizable("option","handles",b),d||b===!1||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("<div>").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})}),this.overlay=a("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,a.uiBackCompat!==!1&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var e,b=this.options.position,c=[],d=[0,0];b?(("string"==typeof b||"object"==typeof b&&"0"in b)&&(c=b.split?b.split(" "):[b[0],b[1]],1===c.length&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c[0]+(d[0]<0?d[0]:"+"+d[0])+" "+c[1]+(d[1]<0?d[1]:"+"+d[1]),at:c.join(" ")}),b=a.extend({},a.ui.dialog.prototype.options.position,b)):b=a.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(b),e||this.uiDialog.hide()}})}(jQuery),function(a,b){var c=/up|down|vertical/,d=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var p,q,r,f=a(this),g=["position","top","bottom","left","right","height","width"],h=a.effects.setMode(f,b.mode||"hide"),i=b.direction||"up",j=c.test(i),k=j?"height":"width",l=j?"top":"left",m=d.test(i),n={},o="show"===h;f.parent().is(".ui-effects-wrapper")?a.effects.save(f.parent(),g):a.effects.save(f,g),f.show(),p=a.effects.createWrapper(f).css({overflow:"hidden"}),q=p[k](),r=parseFloat(p.css(l))||0,n[k]=o?q:0,m||(f.css(j?"bottom":"right",0).css(j?"top":"left","auto").css({position:"absolute"}),n[l]=o?r:q+r),o&&(p.css(k,0),m||p.css(l,r+q)),p.animate(n,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===h&&f.hide(),a.effects.restore(f,g),a.effects.removeWrapper(f),e()}})}}(jQuery),function(a,b){a.effects.effect.bounce=function(b,c){var q,r,s,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g="hide"===f,h="show"===f,i=b.direction||"up",j=b.distance,k=b.times||5,l=2*k+(h||g?1:0),m=b.duration/l,n=b.easing,o="up"===i||"down"===i?"top":"left",p="up"===i||"left"===i,t=d.queue(),u=t.length;for((h||g)&&e.push("opacity"),a.effects.save(d,e),d.show(),a.effects.createWrapper(d),j||(j=d["top"===o?"outerHeight":"outerWidth"]()/3),h&&(s={opacity:1},s[o]=0,d.css("opacity",0).css(o,p?2*-j:2*j).animate(s,m,n)),g&&(j/=Math.pow(2,k-1)),s={},s[o]=0,q=0;q<k;q++)r={},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n).animate(s,m,n),j=g?2*j:j/2;g&&(r={opacity:0},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n)),d.queue(function(){g&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),u>1&&t.splice.apply(t,[1,0].concat(t.splice(u,l+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.clip=function(b,c){var m,n,o,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"vertical",i="vertical"===h,j=i?"height":"width",k=i?"top":"left",l={};a.effects.save(d,e),d.show(),m=a.effects.createWrapper(d).css({overflow:"hidden"}),n="IMG"===d[0].tagName?m:d,o=n[j](),g&&(n.css(j,0),n.css(k,o/2)),l[j]=g?o:0,l[k]=g?0:o/2,n.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){g||d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.drop=function(b,c){var l,d=a(this),e=["position","top","bottom","left","right","opacity","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h?"pos":"neg",k={opacity:g?1:0};a.effects.save(d,e),d.show(),a.effects.createWrapper(d),l=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0)/2,g&&d.css("opacity",0).css(i,"pos"===j?-l:l),k[i]=(g?"pos"===j?"+=":"-=":"pos"===j?"-=":"+=")+l,d.animate(k,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.explode=function(b,c){function s(){l.push(this),l.length===d*e&&t()}function t(){f.css({visibility:"visible"}),a(l).remove(),h||f.hide(),c()}var m,n,o,p,q,r,d=b.pieces?Math.round(Math.sqrt(b.pieces)):3,e=d,f=a(this),g=a.effects.setMode(f,b.mode||"hide"),h="show"===g,i=f.show().css("visibility","hidden").offset(),j=Math.ceil(f.outerWidth()/e),k=Math.ceil(f.outerHeight()/d),l=[];for(m=0;m<d;m++)for(p=i.top+m*k,r=m-(d-1)/2,n=0;n<e;n++)o=i.left+n*j,q=n-(e-1)/2,f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*j,top:-m*k}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:k,left:o+(h?q*j:0),top:p+(h?r*k:0),opacity:h?0:1}).animate({left:o+(h?0:q*j),top:p+(h?0:r*k),opacity:h?1:0},b.duration||500,b.easing,s)}}(jQuery),function(a,b){a.effects.effect.fade=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"toggle");d.animate({opacity:e},{queue:!1,duration:b.duration,easing:b.easing,complete:c})}}(jQuery),function(a,b){a.effects.effect.fold=function(b,c){var o,p,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h="hide"===f,i=b.size||15,j=/([0-9]+)%/.exec(i),k=!!b.horizFirst,l=g!==k,m=l?["width","height"]:["height","width"],n=b.duration/2,q={},r={};a.effects.save(d,e),d.show(),o=a.effects.createWrapper(d).css({overflow:"hidden"}),p=l?[o.width(),o.height()]:[o.height(),o.width()],j&&(i=parseInt(j[1],10)/100*p[h?0:1]),g&&o.css(k?{height:0,width:i}:{height:i,width:0}),q[m[0]]=g?p[0]:i,r[m[1]]=g?p[1]:0,o.animate(q,n,b.easing).animate(r,n,b.easing,function(){h&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()})}}(jQuery),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),function(a,b){a.effects.effect.pulsate=function(b,c){var n,d=a(this),e=a.effects.setMode(d,b.mode||"show"),f="show"===e,g="hide"===e,h=f||"hide"===e,i=2*(b.times||5)+(h?1:0),j=b.duration/i,k=0,l=d.queue(),m=l.length;for(!f&&d.is(":visible")||(d.css("opacity",0).show(),k=1),n=1;n<i;n++)d.animate({opacity:k},j,b.easing),k=1-k;d.animate({opacity:k},j,b.easing),d.queue(function(){g&&d.hide(),c()}),m>1&&l.splice.apply(l,[1,0].concat(l.splice(m,i+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.puff=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"hide"),f="hide"===e,g=parseInt(b.percent,10)||150,h=g/100,i={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:f?g:100,from:f?i:{height:i.height*h,width:i.width*h,outerHeight:i.outerHeight*h,outerWidth:i.outerWidth*h}}),d.effect(b)},a.effects.effect.scale=function(b,c){var d=a(this),e=a.extend(!0,{},b),f=a.effects.setMode(d,b.mode||"effect"),g=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===f?0:100),h=b.direction||"both",i=b.origin,j={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()},k={y:"horizontal"!==h?g/100:1,x:"vertical"!==h?g/100:1};e.effect="size",e.queue=!1,e.complete=c,"effect"!==f&&(e.origin=i||["middle","center"],e.restore=!0),e.from=b.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:j),e.to={height:j.height*k.y,width:j.width*k.x,outerHeight:j.outerHeight*k.y,outerWidth:j.outerWidth*k.x},e.fade&&("show"===f&&(e.from.opacity=0,e.to.opacity=1),"hide"===f&&(e.from.opacity=1,e.to.opacity=0)),d.effect(e)},a.effects.effect.size=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],i=["position","top","bottom","left","right","overflow","opacity"],j=["width","height","overflow"],k=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=a.effects.setMode(g,b.mode||"effect"),o=b.restore||"effect"!==n,p=b.scale||"both",q=b.origin||["middle","center"],r=g.css("position"),s=o?h:i,t={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&g.show(),d={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===b.mode&&"show"===n?(g.from=b.to||t,g.to=b.from||d):(g.from=b.from||("show"===n?t:d),g.to=b.to||("hide"===n?t:d)),f={from:{y:g.from.height/d.height,x:g.from.width/d.width},to:{y:g.to.height/d.height,x:g.to.width/d.width}},"box"!==p&&"both"!==p||(f.from.y!==f.to.y&&(s=s.concat(l),g.from=a.effects.setTransition(g,l,f.from.y,g.from),g.to=a.effects.setTransition(g,l,f.to.y,g.to)),f.from.x!==f.to.x&&(s=s.concat(m),g.from=a.effects.setTransition(g,m,f.from.x,g.from),g.to=a.effects.setTransition(g,m,f.to.x,g.to))),"content"!==p&&"both"!==p||f.from.y!==f.to.y&&(s=s.concat(k).concat(j),g.from=a.effects.setTransition(g,k,f.from.y,g.from),g.to=a.effects.setTransition(g,k,f.to.y,g.to)),a.effects.save(g,s),g.show(),a.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),q&&(e=a.effects.getBaseline(q,d),g.from.top=(d.outerHeight-g.outerHeight())*e.y,g.from.left=(d.outerWidth-g.outerWidth())*e.x,g.to.top=(d.outerHeight-g.to.outerHeight)*e.y,g.to.left=(d.outerWidth-g.to.outerWidth)*e.x),g.css(g.from),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(k),m=m.concat(["marginLeft","marginRight"]),j=h.concat(l).concat(m),g.find("*[width]").each(function(){var c=a(this),d={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()};o&&a.effects.save(c,j),c.from={height:d.height*f.from.y,width:d.width*f.from.x,outerHeight:d.outerHeight*f.from.y,outerWidth:d.outerWidth*f.from.x},c.to={height:d.height*f.to.y,width:d.width*f.to.x,outerHeight:d.height*f.to.y,outerWidth:d.width*f.to.x},f.from.y!==f.to.y&&(c.from=a.effects.setTransition(c,l,f.from.y,c.from),c.to=a.effects.setTransition(c,l,f.to.y,c.to)),f.from.x!==f.to.x&&(c.from=a.effects.setTransition(c,m,f.from.x,c.from),c.to=a.effects.setTransition(c,m,f.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.easing,function(){o&&a.effects.restore(c,j)})})),g.animate(g.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===n&&g.hide(),a.effects.restore(g,s),o||("static"===r?g.css({position:"relative",top:g.to.top,left:g.to.left}):a.each(["top","left"],function(a,b){g.css(b,function(b,c){var d=parseInt(c,10),e=a?g.to.left:g.to.top;return"auto"===c?e+"px":d+e+"px"})})),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.shake=function(b,c){var q,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g=b.direction||"left",h=b.distance||20,i=b.times||3,j=2*i+1,k=Math.round(b.duration/j),l="up"===g||"down"===g?"top":"left",m="up"===g||"left"===g,n={},o={},p={},r=d.queue(),s=r.length;for(a.effects.save(d,e),d.show(),a.effects.createWrapper(d),n[l]=(m?"-=":"+=")+h,o[l]=(m?"+=":"-=")+2*h,p[l]=(m?"-=":"+=")+2*h,d.animate(n,k,b.easing),q=1;q<i;q++)d.animate(o,k,b.easing).animate(p,k,b.easing);d.animate(o,k,b.easing).animate(n,k/2,b.easing).queue(function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),s>1&&r.splice.apply(r,[1,0].concat(r.splice(s,j+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.slide=function(b,c){var k,d=a(this),e=["position","top","bottom","left","right","width","height"],f=a.effects.setMode(d,b.mode||"show"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h,l={};a.effects.save(d,e),d.show(),k=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(d).css({overflow:"hidden"}),g&&d.css(i,j?isNaN(k)?"-"+k:-k:k),l[i]=(g?j?"+=":"-=":j?"-=":"+=")+k,d.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.transfer=function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),c()})}}(jQuery),function(a,b){a.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(b),c.has(".ui-menu").length?this.expand(b):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function i(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var c,d,e,f,g,h=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:h=!1,d=this.previousFilter||"",e=String.fromCharCode(b.keyCode),f=!1,clearTimeout(this.filterTimer),e===d?f=!0:e=d+e,g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),c=f&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c,c.length||(e=String.fromCharCode(b.keyCode),g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),c.length?(this.focus(b,c),c.length>1?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&b.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var b=a(this),d=b.prev("a"),e=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e),b.attr("aria-labelledby",d.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(a,b)},focus:function(a,b){var c,d;this.blur(a,a&&"focus"===a.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&/^mouse/.test(a.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var c,d,e,f,g,h;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=b.offset().top-this.activeMenu.offset().top-c-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=b.height(),e<0?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,d,e;return this.active?void(this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d-e<0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(b)},previousPage:function(b){var c,d,e;return this.active?void(this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d+e>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first()))):void this.next(b)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(b,!0),this._trigger("select",b,c)}})}(jQuery),function(a,b){function m(a,b,c){return[parseFloat(a[0])*(k.test(a[0])?b/100:1),parseFloat(a[1])*(k.test(a[1])?c/100:1)]}function n(b,c){return parseInt(a.css(b,c),10)||0}function o(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var c,d=Math.max,e=Math.abs,f=Math.round,g=/left|center|right/,h=/top|center|bottom/,i=/[\+\-]\d+(\.[\d]+)?%?/,j=/^\w+/,k=/%$/,l=a.fn.position;a.position={scrollbarWidth:function(){if(c!==b)return c;var d,e,f=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=f.children()[0];return a("body").append(f),d=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,d===e&&(e=f[0].clientWidth),f.remove(),c=d-e},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth,f="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:f?a.position.scrollbarWidth():0,height:e?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var c=a(b||window),d=a.isWindow(c[0]);return{element:c,isWindow:d,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}},a.fn.position=function(b){if(!b||!b.of)return l.apply(this,arguments);b=a.extend({},b);var c,k,p,q,r,s,t=a(b.of),u=a.position.getWithinInfo(b.within),v=a.position.getScrollInfo(u),w=(b.collision||"flip").split(" "),x={};return s=o(t),t[0].preventDefault&&(b.at="left top"),k=s.width,p=s.height,q=s.offset,r=a.extend({},q),a.each(["my","at"],function(){var c,d,a=(b[this]||"").split(" ");1===a.length&&(a=g.test(a[0])?a.concat(["center"]):h.test(a[0])?["center"].concat(a):["center","center"]),a[0]=g.test(a[0])?a[0]:"center",a[1]=h.test(a[1])?a[1]:"center",c=i.exec(a[0]),d=i.exec(a[1]),x[this]=[c?c[0]:0,d?d[0]:0],b[this]=[j.exec(a[0])[0],j.exec(a[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===b.at[0]?r.left+=k:"center"===b.at[0]&&(r.left+=k/2),"bottom"===b.at[1]?r.top+=p:"center"===b.at[1]&&(r.top+=p/2),c=m(x.at,k,p),r.left+=c[0],r.top+=c[1],this.each(function(){var g,h,i=a(this),j=i.outerWidth(),l=i.outerHeight(),o=n(this,"marginLeft"),s=n(this,"marginTop"),y=j+o+n(this,"marginRight")+v.width,z=l+s+n(this,"marginBottom")+v.height,A=a.extend({},r),B=m(x.my,i.outerWidth(),i.outerHeight());"right"===b.my[0]?A.left-=j:"center"===b.my[0]&&(A.left-=j/2),"bottom"===b.my[1]?A.top-=l:"center"===b.my[1]&&(A.top-=l/2),A.left+=B[0],A.top+=B[1],a.support.offsetFractions||(A.left=f(A.left),A.top=f(A.top)),g={marginLeft:o,marginTop:s},a.each(["left","top"],function(d,e){a.ui.position[w[d]]&&a.ui.position[w[d]][e](A,{targetWidth:k,targetHeight:p,elemWidth:j,elemHeight:l,collisionPosition:g,collisionWidth:y,collisionHeight:z,offset:[c[0]+B[0],c[1]+B[1]],my:b.my,at:b.at,within:u,elem:i})}),b.using&&(h=function(a){var c=q.left-A.left,f=c+k-j,g=q.top-A.top,h=g+p-l,m={target:{element:t,left:q.left,top:q.top,width:k,height:p},element:{element:i,left:A.left,top:A.top,width:j,height:l},horizontal:f<0?"left":c>0?"right":"center",vertical:h<0?"top":g>0?"bottom":"middle"};k<j&&e(c+f)<k&&(m.horizontal="center"),p<l&&e(g+h)<p&&(m.vertical="middle"),d(e(c),e(f))>d(e(g),e(h))?m.important="horizontal":m.important="vertical",b.using.call(this,a,m)}),i.offset(a.extend(A,{using:h}))})},a.ui.position={fit:{left:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollLeft:c.offset.left,f=c.width,g=a.left-b.collisionPosition.marginLeft,h=e-g,i=g+b.collisionWidth-f-e;b.collisionWidth>f?h>0&&i<=0?(j=a.left+h+b.collisionWidth-f-e,a.left+=h-j):i>0&&h<=0?a.left=e:h>i?a.left=e+f-b.collisionWidth:a.left=e:h>0?a.left+=h:i>0?a.left-=i:a.left=d(a.left-g,a.left)},top:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollTop:c.offset.top,f=b.within.height,g=a.top-b.collisionPosition.marginTop,h=e-g,i=g+b.collisionHeight-f-e;b.collisionHeight>f?h>0&&i<=0?(j=a.top+h+b.collisionHeight-f-e,a.top+=h-j):i>0&&h<=0?a.top=e:h>i?a.top=e+f-b.collisionHeight:a.top=e:h>0?a.top+=h:i>0?a.top-=i:a.top=d(a.top-g,a.top)}},flip:{left:function(a,b){var n,o,c=b.within,d=c.offset.left+c.scrollLeft,f=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,i=h-g,j=h+b.collisionWidth-f-g,k="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,l="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*b.offset[0];i<0?(n=a.left+k+l+m+b.collisionWidth-f-d,(n<0||n<e(i))&&(a.left+=k+l+m)):j>0&&(o=a.left-b.collisionPosition.marginLeft+k+l+m-g,(o>0||e(o)<j)&&(a.left+=k+l+m))},top:function(a,b){var o,p,c=b.within,d=c.offset.top+c.scrollTop,f=c.height,g=c.isWindow?c.scrollTop:c.offset.top,h=a.top-b.collisionPosition.marginTop,i=h-g,j=h+b.collisionHeight-f-g,k="top"===b.my[1],l=k?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,m="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,n=-2*b.offset[1];i<0?(p=a.top+l+m+n+b.collisionHeight-f-d,a.top+l+m+n>i&&(p<0||p<e(i))&&(a.top+=l+m+n)):j>0&&(o=a.top-b.collisionPosition.marginTop+l+m+n-g,a.top+l+m+n>j&&(o>0||e(o)<j)&&(a.top+=l+m+n))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments),a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments),a.ui.position.fit.top.apply(this,arguments)}}},function(){var b,c,d,e,f,g=document.getElementsByTagName("body")[0],h=document.createElement("div");b=document.createElement(g?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},g&&a.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in d)b.style[f]=d[f];b.appendChild(h),c=g||document.documentElement,c.insertBefore(b,c.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",e=a(h).offset().left,a.support.offsetFractions=e>10&&e<11,b.innerHTML="",c.removeChild(b)}()}(jQuery),function(a,b){a.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(a){return a===b?this.options.value:(this.options.value=this._constrainedValue(a),void this._refreshValue())},_constrainedValue:function(a){return a===b&&(a=this.options.value),this.indeterminate=a===!1,"number"!=typeof a&&(a=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(b),this._refreshValue()},_setOption:function(a,b){"max"===a&&(b=Math.max(this.min,b)),this._super(a,b)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var b=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":b}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==b&&(this.oldValue=b,this._trigger("change")),b===this.options.max&&this._trigger("complete")}})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",g=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b<c;b++)g.push(f);this.handles=e.add(a(g.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(b){a(this).data("ui-slider-handle-index",b)})},_createRange:function(){var b=this.options,c="";b.range?(b.range===!0&&(b.values?b.values.length&&2!==b.values.length?b.values=[b.values[0],b.values[0]]:a.isArray(b.values)&&(b.values=b.values.slice(0)):b.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=a("<div></div>").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):this.range=a([])},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a),this._on(a,this._handleEvents),this._hoverable(a),this._focusable(a)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));(e>c||e===c&&(b===k._lastChangedValue||k.values(b)===l.min))&&(e=c,f=a(this),g=b)}),h=this._start(b,g),h!==!1&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&c<d)&&(c=d),c!==this.values(b)&&(e=this.values(),e[b]=c,f=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e}),d=this.values(b?0:1),f!==!1&&this.values(b,c,!0))):c!==this.value()&&(f=this._trigger("slide",a,{handle:this.handles[b],value:c}),f!==!1&&this.value(c))},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._lastChangedValue=b,this._trigger("change",a,c)}},value:function(a){return arguments.length?(this.options.value=this._trimAlignValue(a),this._refreshValue(),void this._change(null,0)):this._value()},values:function(b,c){var d,e,f;if(arguments.length>1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(e[f]),this._change(null,f);this._refreshValue()},_setOption:function(b,c){var d,e=0;switch("range"===b&&this.options.range===!0&&("min"===c?(this.options.value=this._values(0),this.options.values=null):"max"===c&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),a.isArray(this.options.values)&&(e=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments),b){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=0;d<e;d+=1)this._change(null,d);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c,d;if(arguments.length)return b=this.options.values[a],b=this._trimAlignValue(b);if(this.options.values&&this.options.values.length){for(c=this.options.values.slice(),d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c}return[]},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var d,e,f,g,h=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,h),d===!1))return}switch(g=this.options.step,e=f=this.options.values&&this.options.values.length?this.values(h):this.value(),b.keyCode){case a.ui.keyCode.HOME:f=this._valueMin();break;case a.ui.keyCode.END:f=this._valueMax();break;case a.ui.keyCode.PAGE_UP:f=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:f=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===this._valueMax())return;f=this._trimAlignValue(e+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===this._valueMin())return;f=this._trimAlignValue(e-g)}this._slide(b,h,f)},click:function(a){a.preventDefault()},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})}(jQuery),function(a){function b(a){return function(){var b=this.element.val();a.apply(this,arguments),this._refresh(),b!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var b={},c=this.element;return a.each(["min","max","step"],function(a,d){var e=c.attr(d);void 0!==e&&e.length&&(b[d]=e)}),b},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",a)))},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return!1;this._spin((b>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(b){function d(){var a=this.element[0]===this.document[0].activeElement;a||(this.element.focus(),this.previous=c,this._delay(function(){this.previous=c}))}var c;c=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),b.preventDefault(),d.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,d.call(this)}),this._start(b)!==!1&&this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(b){if(a(b.currentTarget).hasClass("ui-state-active"))return this._start(b)!==!1&&void this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*a.height())&&a.height()>0&&a.height(a.height()),this.options.disabled&&this.disable()},_keydown:function(b){var c=this.options,d=a.ui.keyCode;switch(b.keyCode){case d.UP:return this._repeat(null,1,b),!0;case d.DOWN:return this._repeat(null,-1,b),!0;case d.PAGE_UP:return this._repeat(null,c.page,b),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,b),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(a){return!(!this.spinning&&this._trigger("start",a)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(a,b,c){a=a||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,b,c)},a),this._spin(b*this.options.step,c)},_spin:function(a,b){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+a*this._increment(this.counter)),this.spinning&&this._trigger("spin",b,{value:c})===!1||(this._value(c),this.counter++)},_increment:function(b){var c=this.options.incremental;return c?a.isFunction(c)?c(b):Math.floor(b*b*b/5e4-b*b/500+17*b/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return c===-1?0:b.length-c-1},_adjustValue:function(a){var b,c,d=this.options;return b=null!==d.min?d.min:0,c=a-b,c=Math.round(c/d.step)*d.step,a=b+c,a=parseFloat(a.toFixed(this._precision())),null!==d.max&&a>d.max?d.max:null!==d.min&&a<d.min?d.min:a},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(a,b){if("culture"===a||"numberFormat"===a){var c=this._parse(this.element.val());return this.options[a]=b,void this.element.val(this._format(c))}"max"!==a&&"min"!==a&&"step"!==a||"string"==typeof b&&(b=this._parse(b)),"icons"===a&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(b.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(b.down)),this._super(a,b),"disabled"===a&&(b?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:b(function(a){this._super(a),this._value(this.element.val())}),_parse:function(a){return"string"==typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a),""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(a,b){var c;""!==a&&(c=this._parse(a),null!==c&&(b||(c=this._adjustValue(c)),a=this._format(c))),this.element.val(a),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(a){this._stepUp(a)}),_stepUp:function(a){this._start()&&(this._spin((a||1)*this.options.step),this._stop())},stepDown:b(function(a){this._stepDown(a)}),_stepDown:function(a){this._start()&&(this._spin((a||1)*-this.options.step),this._stop())},pageUp:b(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:b(function(a){this._stepDown((a||1)*this.options.page)}),value:function(a){return arguments.length?void b(this._value).call(this,a):this._parse(this.element.val())},widget:function(){return this.uiSpinner}})}(jQuery),function(a,b){function e(){return++c}function f(a){return a.hash.length>1&&decodeURIComponent(a.href.replace(d,""))===decodeURIComponent(location.href.replace(d,""))}var c=0,d=/#.*$/;a.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&b!==-1||(b=!!this.tabs.length&&0)),b!==!1&&(b=this.tabs.index(this.tabs.eq(b)),b===-1&&(b=!c&&0)),!c&&b===!1&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function e(){return b>d&&(b=0),b<0&&(b=d),b}for(var d=this.tabs.length-1;a.inArray(e(),this.options.disabled)!==-1;)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+e()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),b.active!==!1&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,d){var e,g,h,i=a(d).uniqueId().attr("id"),j=a(d).closest("li"),k=j.attr("aria-controls");f(d)?(e=d.hash,g=b.element.find(b._sanitizeSelector(e))):(h=b._tabId(j),e="#"+h,g=b.element.find(e),g.length||(g=b._createPanel(h),g.insertAfter(b.panels[c-1]||b.tablist)),g.attr("aria-live","polite")),g.length&&(b.panels=b.panels.add(g)),k&&j.data("ui-tabs-aria-controls",k),j.attr({"aria-controls":e.substring(1),"aria-labelledby":i}),g.attr("aria-labelledby",i)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("<div>").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var d,c=0;d=this.tabs[c];c++)b===!0||a.inArray(c,b)!==-1?a(d).addClass("ui-state-disabled").attr("aria-disabled","true"):a(d).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function g(){d.running=!1,d._trigger("activate",b,c)}function h(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),e.length&&d.options.show?d._show(e,d.options.show,g):(e.show(),g())}var d=this,e=c.newPanel,f=c.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),h()),f.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),e.length&&f.length?c.oldTab.attr("tabIndex",-1):e.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;d!==!1&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(d!==!0){if(c===b)d=!0;else{if(c=this._getIndex(c),a.inArray(c,d)!==-1)return;d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),g=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),i={tab:e,panel:h};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),d._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function c(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function d(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var b=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||"";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;return"disabled"===b?(this[c?"_disable":"_enable"](),void(this.options[b]=c)):(this._super(b,c),void("content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d,b=a(this);b.data("ui-tooltip-open")&&(d=a.Event("blur"),d.target=d.currentTarget=this,c.close(d,!0)),b.attr("title")&&(b.uniqueId(),c.parents[this.id]={element:this,title:b.attr("title")},b.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d?this._open(b,a,d):(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}),void(c&&this._open(b,a,c)))},_open:function(b,d,e){function j(a){i.of=a,f.is(":hidden")||f.position(i)}var f,g,h,i=a.extend({},this.options.position);if(e){if(f=this._find(d),f.length)return void f.find(".ui-tooltip-content").html(e);d.is("[title]")&&(b&&"mouseover"===b.type?d.attr("title",""):d.removeAttr("title")),f=this._tooltip(d),c(d,f.attr("id")),f.find(".ui-tooltip-content").html(e),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:j}),j(b)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(j(i.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:f}),g={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(f)}},b&&"mouseover"!==b.type||(g.mouseleave="close"),b&&"focusin"!==b.type||(g.focusout="close"),this._on(!0,d,g)}},close:function(b){var c=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),d(e),f.stop(!0),this._hide(f,this.options.hide,function(){c._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,d){a(d.element).attr("title",d.title),delete c.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(c){var d="ui-tooltip-"+b++,e=a("<div>").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("<div>").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[d]=c,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery);!function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=20)}([function(t,e){t.exports=jQuery},function(t,e){t.exports=prestashop},function(t,e,i){"use strict";!function(e,i){t.exports=i()}(0,function(){function t(t){t.setAttribute("data-loaded",!0)}var e="undefined"!=typeof document&&document.documentMode,i={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var i=document.createElement("img");e&&t.getAttribute("data-iesrc")&&(i.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(i.alt=t.getAttribute("data-alt")),t.append(i)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var n=t.children,o=void 0,s=0;s<=n.length-1;s++)(o=n[s].getAttribute("data-src"))&&(n[s].src=o);t.load()}if(t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset")),t.getAttribute("data-background-image"))t.style.backgroundImage="url('"+t.getAttribute("data-background-image").split(",").join("'),url('")+"')";else if(t.getAttribute("data-background-image-set")){var r=t.getAttribute("data-background-image-set").split(","),a=r[0].substr(0,r[0].indexOf(" "))||r[0];a=-1===a.indexOf("url(")?"url("+a+")":a,1===r.length?t.style.backgroundImage=a:t.setAttribute("style",(t.getAttribute("style")||"")+"background-image: "+a+"; background-image: -webkit-image-set("+r+"); background-image: image-set("+r+")")}t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}},n=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var e,o,s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=Object.assign({},i,r),l=a.root,c=a.rootMargin,u=a.threshold,h=a.load,d=a.loaded,f=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(f=new IntersectionObserver((e=h,o=d,function(i,s){i.forEach(function(i){(0<i.intersectionRatio||i.isIntersecting)&&(s.unobserve(i.target),n(i.target)||(e(i.target),t(i.target),o(i.target)))})}),{root:l,rootMargin:c,threshold:u})),{observe:function(){for(var e=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(s,l),i=0;i<e.length;i++)n(e[i])||(f?f.observe(e[i]):(h(e[i]),t(e[i]),d(e[i])))},triggerLoad:function(e){n(e)||(h(e),t(e),d(e))},observer:f}}})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}i(15),i(14),i(18);var o=i(2),s=n(o);i(13),i(12),i(5),i(9),i(10),i(11),i(4);var r=i(7),a=n(r),l=i(8),c=n(l),u=i(1),h=n(u),d=i(16),f=n(d);i(6);for(var p in f.default.prototype)h.default[p]=f.default.prototype[p];"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},writable:!0,configurable:!0}),$(document).ready(function(){(new a.default).init();var t=$('.js-top-menu ul[data-depth="0"]');new c.default(t).init(),(0,s.default)(".lazy").observe()})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){r.default.each((0,r.default)(c),function(t,e){(0,r.default)(e).TouchSpin({verticalbuttons:!0,verticalupclass:"icon-add-thick touchspin-up",verticaldownclass:"icon-remove-thick touchspin-down",buttondown_class:"js-touchspin js-increase-product-quantity btn btn-touchspin p-2",buttonup_class:"js-touchspin js-decrease-product-quantity btn btn-touchspin p-2",min:parseInt((0,r.default)(e).attr("min"),10),max:1e6})}),(0,r.default)(l.default.themeSelectors.touchspin).off("touchstart.touchspin"),f.switchErrorStat()}var s=i(0),r=n(s),a=i(1),l=n(a);l.default.cart=l.default.cart||{},l.default.cart.active_inputs=null;var c='input[name="product-quantity-spin"]',u=!1,h=!1,d="";(0,r.default)(document).ready(function(){function t(t){return"on.startupspin"===t||"on.startdownspin"===t}function e(t){return"on.startupspin"===t}function i(t){var e=t.parents(".bootstrap-touchspin").find(p);return e.is(":focus")?null:e}function n(t){var e=t.split("-"),i=void 0,n=void 0,o="";for(i=0;i<e.length;i++)n=e[i],0!==i&&(n=n.substring(0,1).toUpperCase()+n.substring(1)),o+=n;return o}function s(o,s){if(!t(s))return{url:o.attr("href"),type:n(o.data("link-action"))};var r=i(o);if(r){return e(s)?{url:r.data("up-url"),type:"increaseProductQuantity"}:{url:r.data("down-url"),type:"decreaseProductQuantity"}}}function a(t,e,i){return v(),r.default.ajax({url:t,method:"POST",data:e,dataType:"json",beforeSend:function(t){g.push(t)}}).then(function(t){f.checkUpdateOperation(t),i.val(t.quantity);var e=void 0;e=i&&i.dataset?i.dataset:t,l.default.emit("updateCart",{reason:e,resp:t})}).fail(function(t){l.default.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})})}function u(t){return{ajax:"1",qty:Math.abs(t),action:"update",op:h(t)}}function h(t){return t>0?"up":"down"}function d(t){var e=(0,r.default)(t.currentTarget),i=e.data("update-url"),n=e.attr("value"),o=e.val();if(o!=parseInt(o,10)||o<0||isNaN(o))return void e.val(n);var s=o-n;0!=s&&(e.attr("value",o),a(i,u(s),e))}var p=".js-cart-line-product-quantity",g=[];l.default.on("updateCart",function(){(0,r.default)(".quickview").modal("hide")}),l.default.on("updatedCart",function(){o()}),o();var m=(0,r.default)("body"),v=function(){for(var t=void 0;g.length>0;)t=g.pop(),t.abort()},_=function(t){return(0,r.default)(t.parents(".bootstrap-touchspin").find("input"))},y=function(t){t.preventDefault();var e=(0,r.default)(t.currentTarget),i=t.currentTarget.dataset,n=s(e,t.namespace),o={ajax:"1",action:"update"};n&&(v(),r.default.ajax({url:n.url,method:"POST",data:o,dataType:"json",beforeSend:function(t){g.push(t)}}).then(function(t){f.checkUpdateOperation(t),_(e).val(t.quantity),l.default.emit("updateCart",{reason:i,resp:t})}).fail(function(t){l.default.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:n.type})}))};m.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',y),m.on("touchspin.on.startdownspin",c,y),m.on("touchspin.on.startupspin",c,y),m.on("focusout keyup",p,function(t){return"keyup"===t.type?(13===t.keyCode&&d(t),!1):(d(t),!1)}),m.on("click",".js-discount .code",function(t){t.stopPropagation();var e=(0,r.default)(t.currentTarget);return(0,r.default)("[name=discount_name]").val(e.text()),!1})});var f={switchErrorStat:function(){var t=(0,r.default)(".checkout a");if(((0,r.default)("#notifications article.alert-danger").length||""!==d&&!u)&&t.addClass("disabled"),""!==d){var e='<article class="alert alert-danger mt-0" data-alert="danger" role="alert"><ul class="list-unstyled"><li>'+d+"</li></ul></article>";(0,r.default)("#notifications").html(e),d="",h=!1,u&&t.removeClass("disabled")}else!u&&h&&(u=!1,h=!1,(0,r.default)("#notifications").html(""),t.removeClass("disabled"))},checkUpdateOperation:function(t){u=t.hasOwnProperty("hasError");var e=t.errors||"";d=e instanceof Array?e.join(" "):e,h=!0}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){(0,r.default)(l.default.themeSelectors.checkout.termsLink).on("click",function(t){t.preventDefault();var e=(0,r.default)(t.target).attr("href");e&&(e+="?content_only=1",r.default.get(e,function(t){(0,r.default)(l.default.themeSelectors.modal).find(l.default.themeSelectors.modalContent).html((0,r.default)(t).find(".page-cms").contents())}).fail(function(t){l.default.emit("handleError",{eventType:"clickTerms",resp:t})})),(0,r.default)(l.default.themeSelectors.modal).modal("show")}),(0,r.default)(l.default.themeSelectors.checkout.giftCheckbox).on("click",function(){(0,r.default)("#gift").collapse("toggle")})}var s=i(0),r=n(s),a=i(1),l=n(a);(0,r.default)(document).ready(function(){1===(0,r.default)("body#checkout").length&&o(),l.default.on("updatedDeliveryForm",function(t){void 0!==t.deliveryOption&&0!==t.deliveryOption.length&&((0,r.default)(l.default.themeSelectors.checkout.carrierExtraContent).hide(),t.deliveryOption.next(l.default.themeSelectors.checkout.carrierExtraContent).slideDown())})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=i(1),s=n(o),r=i(0),a=n(r);s.default.blockcart=s.default.blockcart||{},s.default.blockcart.showModal=function(t){function e(){return(0,a.default)("#blockcart-modal")}var i=e();i.length&&i.remove(),(0,a.default)("body").append(t),i=e(),i.modal("show").on("hidden.bs.modal",function(t){s.default.emit("updateProduct",{reason:t.currentTarget.dataset,event:t})})},(0,a.default)(function(){var t=function(){return(0,a.default)(".mobile-shopping-cart .badge").text((0,a.default)(".shopping-cart-products-count").text())};(0,a.default)("body").on("shown.bs.modal","#blockcart-modal",t),s.default.on("updatedCart",t)})},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s),a=function(){function t(){n(this,t)}return o(t,[{key:"init",value:function(){this.parentFocus(),this.togglePasswordVisibility(),this.formValidation()}},{key:"parentFocus",value:function(){(0,r.default)(".js-child-focus").focus(function(){(0,r.default)(this).closest(".js-parent-focus").addClass("focus")}),(0,r.default)(".js-child-focus").focusout(function(){(0,r.default)(this).closest(".js-parent-focus").removeClass("focus")})}},{key:"togglePasswordVisibility",value:function(){(0,r.default)('button[data-action="show-password"]').on("click",function(){var t=(0,r.default)(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),(0,r.default)(this).text((0,r.default)(this).data("textHide"))):(t.attr("type","password"),(0,r.default)(this).text((0,r.default)(this).data("textShow")))})}},{key:"formValidation",value:function(){(0,r.default)(".needs-validation").find('[type="submit"]').on("click",function(){(0,r.default)(this).parents("form").addClass("was-validated")})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(s),a=function(){function t(e){n(this,t),this.el=e}return o(t,[{key:"init",value:function(){var t=this,e=(0,r.default)(".header-menu"),i=e.offset().top,n=function(){(0,r.default)(".cart-grid-right .sticky-top, .checkout-content .sticky-top").css("top",e.height()+16),(0,r.default)(window).scrollTop()>=i?e.addClass("fixed-top menu-bg").parents("body").css("padding-top",e.height()):("window"==menuwidth?e.removeClass("fixed-top"):e.removeClass("fixed-top menu-bg"),e.parents("body").css("padding-top",""))};n(),(0,r.default)(window).on("scroll",n);(0,r.default)("#menu-icon").on("click",function(){(0,r.default)('<div class="modal-backdrop fade hidden-lg-up" id="menu-backdrop"></div>').insertBefore("#mobile_top_menu_wrapper"),setTimeout(function(){return(0,r.default)("#mobile_top_menu_wrapper, #menu-backdrop").toggleClass("show")},100)}),(0,r.default)("body").on("click","#menu-close-icon i, #menu-backdrop",function(){(0,r.default)("#mobile_top_menu_wrapper, #menu-backdrop").toggleClass("show"),setTimeout(function(){return(0,r.default)("#menu-backdrop").remove()},250)}),(0,r.default)("body").on("click","#mobile_top_menu_wrapper .navbar-toggler",function(t){return t.preventDefault()}),this.el.on("click",function(e){t.el.parent().hasClass("mobile")||e.stopPropagation()})}}]),t}();e.default=a,t.exports=e.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){(0,a.default)(c.default.themeSelectors.order.returnForm+" table thead input[type=checkbox]").on("click",function(){var t=(0,a.default)(this).prop("checked");(0,a.default)(c.default.themeSelectors.order.returnForm+" table tbody input[type=checkbox]").each(function(e,i){(0,a.default)(i).prop("checked",t)})})}function s(){(0,a.default)("body#order-detail")&&o()}var r=i(0),a=n(r),l=i(1),c=n(l);(0,a.default)(document).ready(s)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t){(0,r.default)(l.default.themeSelectors.listing.searchFilters).replaceWith(t.rendered_facets),(0,r.default)(l.default.themeSelectors.listing.activeSearchFilters).replaceWith(t.rendered_active_filters),(0,r.default)(l.default.themeSelectors.listing.listTop).replaceWith(t.rendered_products_top),(0,r.default)(l.default.themeSelectors.listing.list).replaceWith(t.rendered_products),(0,r.default)(l.default.themeSelectors.listing.listBottom).replaceWith(t.rendered_products_bottom),(0,r.default)('[data-toggle="tooltip"]').tooltip({trigger:"hover"}),(0,r.default)("[data-ob]").attr("tabindex",0),(0,d.default)(".lazy").observe(),"undefined"!=typeof productListingComments&&(productListingComments.init(),productListingComments.load()),(0,r.default)("#center-column").hasClass("hidden-md-down")||(0,r.default)("html, body").animate({scrollTop:(0,r.default)("#js-product-list-top").offset().top-60},1e3)}var s=i(0),r=n(s),a=i(1),l=n(a),c=i(17),u=n(c),h=i(2),d=n(h);(0,r.default)(document).ready(function(){var t=window.location.href;(0,r.default)("body").on("click",".category-description-toggle",function(){(0,r.default)(this).hasClass("more")?(0,r.default)(".category-description").addClass("show"):(0,r.default)(".category-description").removeClass("show")}),u.default.set("statictoken",statictoken,{sameSite:"strict"}),u.default.set("listdisplay",listdisplay,{sameSite:"strict"}),u.default.set("listproducts",listproducts,{sameSite:"strict"}),u.default.set("listbutton",listbutton,{sameSite:"strict"}),(0,r.default)("body").on("click",".grid-or-list span",function(){(0,r.default)(this).hasClass("grid-view")?((0,r.default)(this).addClass("active"),(0,r.default)(".list-view").removeClass("active"),u.default.set("gridorlist","grid",{sameSite:"strict"}),(0,r.default)("#js-product-list").find(".products").removeClass("list").addClass("grid")):(0,r.default)(this).hasClass("list-view")&&((0,r.default)(this).addClass("active"),(0,r.default)(".grid-view").removeClass("active"),u.default.set("gridorlist","list",{sameSite:"strict"}),(0,r.default)("#js-product-list").find(".products").removeClass("grid").addClass("list"))}),l.default.on("clickQuickView",function(t){var i={action:"quickview",id_product:t.dataset.idProduct,id_product_attribute:t.dataset.idProductAttribute};r.default.post(l.default.urls.pages.product,i,null,"json").then(function(t){(0,r.default)("body").append(t.quickview_html);var i=(0,r.default)("#quickview-modal-"+t.product.id+"-"+t.product.id_product_attribute);i.modal("show"),e(i),i.on("hidden.bs.modal",function(){i.remove()})}).fail(function(t){l.default.emit("handleError",{eventType:"clickQuickView",resp:t})})});var e=function(t){(0,r.default)(l.default.themeSelectors.product.thumb).on("click",function(t){(0,r.default)(l.default.themeSelectors.product.thumb).hasClass("selected")&&(0,r.default)(l.default.themeSelectors.product.thumb).removeClass("selected"),(0,r.default)(t.currentTarget).addClass("selected"),(0,r.default)(l.default.themeSelectors.product.cover).attr("src",(0,r.default)(t.target).data("image-large-src"))}),t.find(l.default.themeSelectors.quantityWanted).TouchSpin({verticalbuttons:!0,verticalupclass:"icon-add-thick touchspin-up",verticaldownclass:"icon-remove-thick touchspin-down",buttondown_class:"js-touchspin btn btn-touchspin p-2",buttonup_class:"js-touchspin btn btn-touchspin p-2",min:1,max:1e6}),(0,r.default)(l.default.themeSelectors.touchspin).off("touchstart.touchspin")};(0,r.default)("body").on("click",l.default.themeSelectors.listing.searchFilterToggler,function(){(0,r.default)(".side-column").removeClass("hidden-md-down"),(0,r.default)(".side-block").addClass("hidden-md-down"),(0,r.default)(l.default.themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-md-down"),(0,r.default)(l.default.themeSelectors.contentWrapper).addClass("hidden-md-down"),(0,r.default)(l.default.themeSelectors.footer).addClass("hidden-md-down")}),(0,r.default)(l.default.themeSelectors.listing.searchFilterControls+" "+l.default.themeSelectors.clear+",\n    "+l.default.themeSelectors.listing.searchFilterControls+" .ok").on("click",function(){(0,r.default)(l.default.themeSelectors.listing.searchFiltersWrapper).addClass("hidden-md-down"),(0,r.default)(l.default.themeSelectors.contentWrapper).removeClass("hidden-md-down"),(0,r.default)(l.default.themeSelectors.footer).removeClass("hidden-md-down")});var i=function(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===(0,r.default)(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return(0,r.default)(t.target).parent()[0].dataset.searchUrl};(0,r.default)("body").on("change",l.default.themeSelectors.listing.searchFilters+" input[data-search-url]",function(t){l.default.emit("updateFacets",i(t))}),(0,r.default)("body").on("click",l.default.themeSelectors.listing.searchFiltersClearAll,function(t){l.default.emit("updateFacets",i(t))}),(0,r.default)("body").on("click",l.default.themeSelectors.listing.searchLink,function(t){t.preventDefault();var e=(0,r.default)(t.target),i=e.is("[href]")?e.closest("a").get(0).href:atob(e.closest("span").data("ob"));l.default.emit("updateFacets",i)}),(0,r.default)(l.default.themeSelectors.listing.list).length&&window.addEventListener("popstate",function(e){var i=e.state;window.location.href=i&&i.current_url?i.current_url:t}),(0,r.default)("body").on("change",l.default.themeSelectors.listing.searchFilters+" select",function(t){var e=(0,r.default)(t.target).closest("form");l.default.emit("updateFacets","?"+e.serialize())}),l.default.on("updateProductList",function(t){o(t)})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=i(0),s=n(o),r=i(1),a=n(r);(0,s.default)(document).ready(function(){function t(){(0,s.default)(a.default.themeSelectors.product.thumb).on("click",function(t){(0,s.default)(a.default.themeSelectors.product.modalProductCover).attr("src",(0,s.default)(t.target).data("image-large-src")),(0,s.default)(a.default.themeSelectors.product.selected).removeClass("selected"),(0,s.default)(t.target).addClass("selected"),(0,s.default)(a.default.themeSelectors.product.cover).prop("src",(0,s.default)(t.currentTarget).data("image-large-src"))})}function e(){(0,s.default)(a.default.themeSelectors.fileInput).on("change",function(t){var e=void 0,i=void 0;(e=(0,s.default)(t.currentTarget)[0])&&(i=e.files[0])&&(0,s.default)(e).next().text(i.name)})}!function(){var t=(0,s.default)(a.default.themeSelectors.quantityWanted);t.TouchSpin({verticalbuttons:!0,verticalupclass:"icon-add-thick touchspin-up",verticaldownclass:"icon-remove-thick touchspin-down",buttondown_class:"js-touchspin btn btn-touchspin p-2",buttonup_class:"js-touchspin btn btn-touchspin p-2",min:parseInt(t.attr("min"),10),max:1e6}),(0,s.default)(a.default.themeSelectors.touchspin).off("touchstart.touchspin"),t.focusout(function(){(""===t.val()||t.val()<t.attr("min"))&&(t.val(t.attr("min")),t.trigger("change"))}),(0,s.default)("body").on("change keyup",a.default.themeSelectors.quantityWanted,function(e){""!==t.val()&&((0,s.default)(e.currentTarget).trigger("touchspin.stopspin"),a.default.emit("updateProduct",{eventType:"updatedProductQuantity",event:e}))})}(),e(),t(),function(){var t=(0,s.default)(a.default.themeSelectors.product.tabs);t.on("show.bs.tab",function(t){var e=(0,s.default)(t.target);e.addClass(a.default.themeSelectors.product.activeNavClass),(0,s.default)(e.attr("href")).addClass(a.default.themeSelectors.product.activeTabClass)}),t.on("hide.bs.tab",function(t){var e=(0,s.default)(t.target);e.removeClass(a.default.themeSelectors.product.activeNavClass),(0,s.default)(e.attr("href")).removeClass(a.default.themeSelectors.product.activeTabClass)})}(),a.default.on("updatedProduct",function(i){if(e(),t(),i&&i.product_minimal_quantity){var n=parseInt(i.product_minimal_quantity,10),o=a.default.themeSelectors.quantityWanted;(0,s.default)(o).trigger("touchspin.updatesettings",{min:n})}(0,s.default)((0,s.default)(a.default.themeSelectors.product.activeTabs).attr("href")).addClass("active").removeClass("fade"),(0,s.default)(a.default.themeSelectors.product.imagesModal).replaceWith(i.product_images_modal)})})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var i=e.children().detach();e.empty().append(t.children().detach()),t.append(i)}function s(){c.default.responsive.mobile?(0,a.default)('*[id^="_desktop_"]').each(function(t,e){var i=(0,a.default)("#"+e.id.replace("_desktop_","_mobile_"));i.length&&o((0,a.default)(e),i)}):(0,a.default)('*[id^="_mobile_"]').each(function(t,e){var i=(0,a.default)("#"+e.id.replace("_mobile_","_desktop_"));i.length&&o((0,a.default)(e),i)}),c.default.emit("responsive update",{mobile:c.default.responsive.mobile})}var r=i(0),a=n(r),l=i(1),c=n(l);c.default.responsive=c.default.responsive||{},c.default.responsive.current_width=window.innerWidth,c.default.responsive.min_width=992,c.default.responsive.mobile=c.default.responsive.current_width<c.default.responsive.min_width,(0,a.default)(window).on("resize",function(){var t=c.default.responsive.current_width,e=c.default.responsive.min_width,i=window.innerWidth,n=t>=e&&i<e||t<e&&i>=e;c.default.responsive.current_width=i,c.default.responsive.mobile=c.default.responsive.current_width<c.default.responsive.min_width,n&&s()}),(0,a.default)(document).ready(function(){c.default.responsive.mobile&&s()})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=i(1),s=n(o),r=i(0),a=n(r);s.default.themeSelectors={quantityWanted:"#quantity_wanted",product:{tabs:".tabs .nav-link",activeNavClass:"js-product-nav-active",activeTabClass:"js-product-tab-active",activeTabs:".tabs .nav-link.active, .js-product-nav-active",imagesModal:".js-product-images-modal",thumb:".js-thumb",thumbContainer:".thumb-container, .js-thumb-container",arrows:".js-arrows",selected:".selected, .js-thumb-selected",modalProductCover:".js-modal-product-cover",cover:".js-qv-product-cover"},listing:{searchFilterToggler:"#search_filter_toggler, .js-search-toggler",searchFiltersWrapper:"#search_filters_wrapper",searchFilterControls:"#search_filter_controls",searchFilters:"#search_filters",activeSearchFilters:"#js-active-search-filters",listTop:"#js-product-list-top",list:"#js-product-list",listBottom:"#js-product-list-bottom",listHeader:"#js-product-list-header",searchFiltersClearAll:".js-search-filters-clear-all",searchLink:".js-search-link"},order:{returnForm:"#order-return-form, .js-order-return-form"},arrowDown:".arrow-down, .js-arrow-down",arrowUp:".arrow-up, .js-arrow-up",clear:".clear",fileInput:".js-file-input",contentWrapper:"#content-wrapper, .js-content-wrapper",footer:"#footer, .js-footer",modalContent:".js-modal-content",modal:"#modal, .js-checkout-modal",touchspin:".js-touchspin",checkout:{termsLink:".js-terms a",giftCheckbox:".js-gift-checkbox",imagesLink:".card-block .cart-summary-products p a, .js-show-details",carrierExtraContent:".carrier-extra-content, .js-carrier-extra-content"}},(0,a.default)(document).ready(function(){s.default.emit("themeSelectorsInit")})},function(t,e,i){"use strict";!function(t){function e(t,e){return t+".touchspin_"+e}function i(i,n){return t.map(i,function(t){return e(t,n)})}var n=0;t.fn.TouchSpin=function(e){if("destroy"===e)return void this.each(function(){var e=t(this),n=e.data();t(document).off(i(["mouseup","touchend","touchcancel","mousemove","touchmove","scroll","scrollstart"],n.spinnerid).join(" "))});var o={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalupclass:"glyphicon glyphicon-chevron-up",verticaldownclass:"glyphicon glyphicon-chevron-down",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-default",buttonup_class:"btn btn-default",buttondown_txt:"-",buttonup_txt:"+"},s={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){function r(){""!==S.initval&&""===L.val()&&L.val(S.initval)}function a(t){u(t),y();var e=A.input.val();""!==e&&(e=Number(A.input.val()),A.input.val(e.toFixed(S.decimals)))}function l(){S=t.extend({},o,P,c(),e)}function c(){var e={};return t.each(s,function(t,i){var n="bts-"+i;L.is("[data-"+n+"]")&&(e[t]=L.data(n))}),e}function u(e){S=t.extend({},S,e)}function h(){var t=L.val(),e=L.parent();""!==t&&(t=Number(t).toFixed(S.decimals)),L.data("initvalue",t).val(t),L.addClass("form-control"),e.hasClass("input-group")?d(e):f()}function d(e){e.addClass("bootstrap-touchspin");var i,n,o=L.prev(),s=L.next(),r='<span class="input-group-addon bootstrap-touchspin-prefix">'+S.prefix+"</span>",a='<span class="input-group-addon bootstrap-touchspin-postfix">'+S.postfix+"</span>";o.hasClass("input-group-btn")?(i='<button class="'+S.buttondown_class+' bootstrap-touchspin-down" type="button">'+S.buttondown_txt+"</button>",o.append(i)):(i='<span class="input-group-btn"><button class="'+S.buttondown_class+' bootstrap-touchspin-down" type="button">'+S.buttondown_txt+"</button></span>",t(i).insertBefore(L)),s.hasClass("input-group-btn")?(n='<button class="'+S.buttonup_class+' bootstrap-touchspin-up" type="button">'+S.buttonup_txt+"</button>",s.prepend(n)):(n='<span class="input-group-btn"><button class="'+S.buttonup_class+' bootstrap-touchspin-up" type="button">'+S.buttonup_txt+"</button></span>",t(n).insertAfter(L)),t(r).insertBefore(L),t(a).insertAfter(L),D=e}function f(){var e;e=S.verticalbuttons?'<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">'+S.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+S.postfix+'</span><span class="input-group-btn-vertical"><button class="'+S.buttondown_class+' bootstrap-touchspin-up" type="button"><i class="'+S.verticalupclass+'"></i></button><button class="'+S.buttonup_class+' bootstrap-touchspin-down" type="button"><i class="'+S.verticaldownclass+'"></i></button></span></div>':'<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="'+S.buttondown_class+' bootstrap-touchspin-down" type="button">'+S.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix">'+S.prefix+'</span><span class="input-group-addon bootstrap-touchspin-postfix">'+S.postfix+'</span><span class="input-group-btn"><button class="'+S.buttonup_class+' bootstrap-touchspin-up" type="button">'+S.buttonup_txt+"</button></span></div>",D=t(e).insertBefore(L),t(".bootstrap-touchspin-prefix",D).after(L),L.hasClass("input-sm")?D.addClass("input-group-sm"):L.hasClass("input-lg")&&D.addClass("input-group-lg")}function p(){A={down:t(".bootstrap-touchspin-down",D),up:t(".bootstrap-touchspin-up",D),input:t("input",D),prefix:t(".bootstrap-touchspin-prefix",D).addClass(S.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",D).addClass(S.postfix_extraclass)}}function g(){""===S.prefix&&A.prefix.hide(),""===S.postfix&&A.postfix.hide()}function m(){L.on("keydown",function(t){var e=t.keyCode||t.which;38===e?("up"!==F&&(b(),x()),t.preventDefault()):40===e&&("down"!==F&&(C(),E()),t.preventDefault())}),L.on("keyup",function(t){var e=t.keyCode||t.which;38===e?T():40===e&&T()}),L.on("blur",function(){y()}),A.down.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==F&&(C(),E()),t.preventDefault())}),A.down.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||T()}),A.up.on("keydown",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==F&&(b(),x()),t.preventDefault())}),A.up.on("keyup",function(t){var e=t.keyCode||t.which;32!==e&&13!==e||T()}),A.down.on("mousedown.touchspin",function(t){A.down.off("touchstart.touchspin"),L.is(":disabled")||(C(),E(),t.preventDefault(),t.stopPropagation())}),A.down.on("touchstart.touchspin",function(t){A.down.off("mousedown.touchspin"),L.is(":disabled")||(C(),E(),t.preventDefault(),t.stopPropagation())}),A.up.on("mousedown.touchspin",function(t){A.up.off("touchstart.touchspin"),L.is(":disabled")||(b(),x(),t.preventDefault(),t.stopPropagation())}),A.up.on("touchstart.touchspin",function(t){A.up.off("mousedown.touchspin"),L.is(":disabled")||(b(),x(),t.preventDefault(),t.stopPropagation())}),A.up.on("mouseout touchleave touchend touchcancel",function(t){F&&(t.stopPropagation(),T())}),A.down.on("mouseout touchleave touchend touchcancel",function(t){F&&(t.stopPropagation(),T())}),A.down.on("mousemove touchmove",function(t){F&&(t.stopPropagation(),t.preventDefault())}),A.up.on("mousemove touchmove",function(t){F&&(t.stopPropagation(),t.preventDefault())}),t(document).on(i(["mouseup","touchend","touchcancel"],n).join(" "),function(t){F&&(t.preventDefault(),T())}),t(document).on(i(["mousemove","touchmove","scroll","scrollstart"],n).join(" "),function(t){F&&(t.preventDefault(),T())}),L.on("mousewheel DOMMouseScroll",function(t){if(S.mousewheel&&L.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?C():b()}})}function v(){L.on("touchspin.uponce",function(){T(),b()}),L.on("touchspin.downonce",function(){T(),C()}),L.on("touchspin.startupspin",function(){x()}),L.on("touchspin.startdownspin",function(){E()}),L.on("touchspin.stopspin",function(){T()}),L.on("touchspin.updatesettings",function(t,e){a(e)})}function _(t){switch(S.forcestepdivisibility){case"round":return(Math.round(t/S.step)*S.step).toFixed(S.decimals);case"floor":return(Math.floor(t/S.step)*S.step).toFixed(S.decimals);case"ceil":return(Math.ceil(t/S.step)*S.step).toFixed(S.decimals);default:return t}}function y(){var t,e,i;if(""===(t=L.val()))return void(""!==S.replacementval&&(L.val(S.replacementval),L.trigger("change")));S.decimals>0&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==S.replacementval?S.replacementval:0),i=e,e.toString()!==t&&(i=e),e<S.min&&(i=S.min),e>S.max&&(i=S.max),i=_(i),Number(t).toString()!==i.toString()&&(L.val(i),L.trigger("change")))}function w(){if(S.booster){var t=Math.pow(2,Math.floor(M/S.boostat))*S.step;return S.maxboostedstep&&t>S.maxboostedstep&&(t=S.maxboostedstep,k=Math.round(k/t)*t),Math.max(S.step,t)}return S.step}function b(){y(),k=parseFloat(A.input.val()),isNaN(k)&&(k=0);var t=k,e=w();k+=e,k>S.max&&(k=S.max,L.trigger("touchspin.on.max"),T()),A.input.val(Number(k).toFixed(S.decimals)),t!==k&&L.trigger("change")}function C(){y(),k=parseFloat(A.input.val()),isNaN(k)&&(k=0);var t=k,e=w();k-=e,k<S.min&&(k=S.min,L.trigger("touchspin.on.min"),T()),A.input.val(k.toFixed(S.decimals)),t!==k&&L.trigger("change")}function E(){T(),M=0,F="down",L.trigger("touchspin.on.startspin"),L.trigger("touchspin.on.startdownspin"),N=setTimeout(function(){I=setInterval(function(){M++,C()},S.stepinterval)},S.stepintervaldelay)}function x(){T(),M=0,F="up",L.trigger("touchspin.on.startspin"),L.trigger("touchspin.on.startupspin"),j=setTimeout(function(){O=setInterval(function(){M++,b()},S.stepinterval)},S.stepintervaldelay)}function T(){switch(clearTimeout(N),clearTimeout(j),clearInterval(I),clearInterval(O),F){case"up":L.trigger("touchspin.on.stopupspin"),L.trigger("touchspin.on.stopspin");break;case"down":L.trigger("touchspin.on.stopdownspin"),L.trigger("touchspin.on.stopspin")}M=0,F=!1}var S,D,A,k,I,O,N,j,L=t(this),P=L.data(),M=0,F=!1;!function(){L.data("alreadyinitialized")||(L.data("alreadyinitialized",!0),n+=1,L.data("spinnerid",n),L.is("input")&&(l(),r(),y(),h(),p(),g(),m(),v(),A.input.css("display","block")))}()})}}(jQuery)},function(t,e,i){"use strict";(function(t){!function(t,n){n(e,i(0))}(0,function(e,i){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach(function(e){var n,o,s;n=t,s=i[o=e],o in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function a(t){var e=this,n=!1;return i(this).one(Y.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||Y.triggerTransitionEnd(e)},t),this}function l(t){return t&&"[object Function]"==={}.toString.call(t)}function c(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function u(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function h(t){for(var e=!0;e;){var i=t;if(e=!1,!i)return document.body;switch(i.nodeName){case"HTML":case"BODY":return i.ownerDocument.body;case"#document":return i.body}var n=c(i),o=n.overflow,s=n.overflowX,r=n.overflowY;if(/(auto|scroll|overlay)/.test(o+r+s))return i;t=u(i),e=!0,n=o=s=r=void 0}}function d(t){return t&&t.referenceNode?t.referenceNode:t}function f(t){return 11===t?Bt:10===t?qt:Bt||qt}function p(t){var e=!0;t:for(;e;){var i=t;if(e=!1,!i)return document.documentElement;for(var n=f(10)?document.body:null,o=i.offsetParent||null;o===n&&i.nextElementSibling;)o=(i=i.nextElementSibling).offsetParent;var s=o&&o.nodeName;if(s&&"BODY"!==s&&"HTML"!==s){if(-1!==["TH","TD","TABLE"].indexOf(o.nodeName)&&"static"===c(o,"position")){t=o,e=!0,n=o=s=void 0;continue t}return o}return i?i.ownerDocument.documentElement:document.documentElement}}function g(t){for(var e=!0;e;){var i=t;e=!1;{if(null===i.parentNode)return i;t=i.parentNode,e=!0}}}function m(t,e){for(var i=!0;i;){var n=t,o=e;if(i=!1,!(n&&n.nodeType&&o&&o.nodeType))return document.documentElement;var s=n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING,r=s?n:o,a=s?o:n,l=document.createRange();l.setStart(r,0),l.setEnd(a,0);var c=l.commonAncestorContainer;if(n!==c&&o!==c||r.contains(a))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||p(t.firstElementChild)===t)}(c)?c:p(c);var u=g(n);u.host?(t=u.host,e=o,i=!0,s=r=a=l=c=u=void 0):(t=n,e=g(o).host,i=!0,s=r=a=l=c=u=void 0)}}function v(t,e){var i="top"===(1<arguments.length&&void 0!==e?e:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"!==n&&"HTML"!==n)return t[i];var o=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||o)[i]}function _(t,e){var i="x"===e?"Left":"Top",n="Left"==i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function y(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],f(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,i=t.documentElement,n=f(10)&&getComputedStyle(i);return{height:y("Height",e,i,n),width:y("Width",e,i,n)}}function b(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function C(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function E(t){return Qt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function x(t){var e={};try{if(f(10)){e=t.getBoundingClientRect();var i=v(t,"top"),n=v(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},s="HTML"===t.nodeName?w(t.ownerDocument):{},r=s.width||t.clientWidth||o.width,a=s.height||t.clientHeight||o.height,l=t.offsetWidth-r,u=t.offsetHeight-a;if(l||u){var h=c(t);l-=_(h,"x"),u-=_(h,"y"),o.width-=l,o.height-=u}return E(o)}function T(t,e,i){var n=2<arguments.length&&void 0!==i&&i,o=f(10),s="HTML"===e.nodeName,r=x(t),a=x(e),l=h(t),u=c(e),d=parseFloat(u.borderTopWidth,10),p=parseFloat(u.borderLeftWidth,10);n&&s&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var g=E({top:r.top-a.top-d,left:r.left-a.left-p,width:r.width,height:r.height});if(g.marginTop=0,g.marginLeft=0,!o&&s){var m=parseFloat(u.marginTop,10),_=parseFloat(u.marginLeft,10);g.top-=d-m,g.bottom-=d-m,g.left-=p-_,g.right-=p-_,g.marginTop=m,g.marginLeft=_}return(o&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(g=function(t,e,i){var n=2<arguments.length&&void 0!==i&&i,o=v(e,"top"),s=v(e,"left"),r=n?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=s*r,t.right+=s*r,t}(g,e)),g}function S(t){if(!t||!t.parentElement||f())return document.documentElement;for(var e=t.parentElement;e&&"none"===c(e,"transform");)e=e.parentElement;return e||document.documentElement}function D(t,e,i,n,o){var s=4<arguments.length&&void 0!==o&&o,r={top:0,left:0},a=s?S(t):m(t,d(e));if("viewport"===n)r=function(t,e){var i=1<arguments.length&&void 0!==e&&e,n=t.ownerDocument.documentElement,o=T(t,n),s=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=i?0:v(n),l=i?0:v(n,"left");return E({top:a-o.top+o.marginTop,left:l-o.left+o.marginLeft,width:s,height:r})}(a,s);else{var l=void 0;"scrollParent"===n?"BODY"===(l=h(u(e))).nodeName&&(l=t.ownerDocument.documentElement):l="window"===n?t.ownerDocument.documentElement:n;var f=T(l,a,s);if("HTML"!==l.nodeName||function(t){for(var e,i=!0;i;){var n=t;i=!1;var o=n.nodeName;if("BODY"===o||"HTML"===o)return!1;if("fixed"===c(n,"position"))return!0;var s=u(n);if(!(e=!!s))return e;t=s,i=!0,o=s=void 0}}(a))r=f;else{var p=w(t.ownerDocument),g=p.height,_=p.width;r.top+=f.top-f.marginTop,r.bottom=g+f.top,r.left+=f.left-f.marginLeft,r.right=_+f.left}}var y="number"==typeof(i=i||0);return r.left+=y?i:i.left||0,r.top+=y?i:i.top||0,r.right-=y?i:i.right||0,r.bottom-=y?i:i.bottom||0,r}function A(t,e,i,n,o,s){var r=5<arguments.length&&void 0!==s?s:0;if(-1===t.indexOf("auto"))return t;var a=D(i,n,r,o),l={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}},c=Object.keys(l).map(function(t){return Qt({key:t},l[t],{area:function(t){return t.width*t.height}(l[t])})}).sort(function(t,e){return e.area-t.area}),u=c.filter(function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight}),h=0<u.length?u[0].key:c[0].key,d=t.split("-")[1];return h+(d?"-"+d:"")}function k(t,e,i,n){var o=3<arguments.length&&void 0!==n?n:null;return T(i,o?S(e):m(e,d(i)),o)}function I(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function O(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 N(t,e,i){i=i.split("-")[0];var n=I(t),o={width:n.width,height:n.height},s=-1!==["right","left"].indexOf(i),r=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return o[r]=e[r]+e[l]/2-n[l]/2,o[a]=i===a?e[a]-n[c]:e[O(a)],o}function j(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function L(t,e,i){return(void 0===i?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var n=j(t,function(t){return t[e]===i});return t.indexOf(n)}(t,"name",i))).forEach(function(t){t.function;var i=t.function||t.fn;t.enabled&&l(i)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=i(e,t))}),e}function P(t,e){return t.some(function(t){var i=t.name;return t.enabled&&i===e})}function M(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var o=e[n],s=o?""+o+i:t;if(void 0!==document.body.style[s])return s}return null}function F(t){var e=t.ownerDocument;return e?e.defaultView:window}function H(t,e,i,n){i.updateBound=n,F(t).addEventListener("resize",i.updateBound,{passive:!0});var o=h(t);return function t(e,i,n,o){var s="BODY"===e.nodeName,r=s?e.ownerDocument.defaultView:e;r.addEventListener(i,n,{passive:!0}),s||t(h(r.parentNode),i,n,o),o.push(r)}(o,"scroll",i.updateBound,i.scrollParents),i.scrollElement=o,i.eventsEnabled=!0,i}function R(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return F(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function W(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function $(t,e){Object.keys(e).forEach(function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&W(e[i])&&(n="px"),t.style[i]=e[i]+n})}function z(t,e){function i(t){return t}var n=t.offsets,o=n.popper,s=n.reference,r=Math.round,a=Math.floor,l=r(s.width),c=r(o.width),u=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),d=e?u||h||l%2==c%2?r:a:i,f=e?r:i;return{left:d(l%2==1&&c%2==1&&!h&&e?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}function U(t,e,i){var n=j(t,function(t){return t.name===e}),o=!!n&&t.some(function(t){return t.name===i&&t.enabled&&t.order<n.order});if(!o);return o}function B(t,e){var i=1<arguments.length&&void 0!==e&&e,n=Yt.indexOf(t),o=Yt.slice(n+1).concat(Yt.slice(0,n));return i?o.reverse():o}function q(t,e,i,n){var o=[0,0],s=-1!==["right","left"].indexOf(n),r=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=r.indexOf(j(r,function(t){return-1!==t.search(/,|\s/)}));r[a]&&r[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[r.slice(0,a).concat([r[a].split(l)[0]]),[r[a].split(l)[1]].concat(r.slice(a+1))]:[r];return(c=c.map(function(t,n){var o=(1===n?!s:s)?"height":"width",r=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,i,n){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],r=o[2];if(!s)return t;if(0!==r.indexOf("%"))return"vh"!==r&&"vw"!==r?s:("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s;var a=void 0;switch(r){case"%p":a=i;break;case"%":case"%r":default:a=n}return E(a)[e]/100*s}(t,o,e,i)})})).forEach(function(t,e){t.forEach(function(i,n){W(i)&&(o[e]+=i*("-"===t[n-1]?-1:1))})}),o}function Q(t,e){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Q),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ut(this.update.bind(this)),this.options=Qt({},Q.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(Qt({},Q.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=Qt({},Q.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Qt({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&l(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}function K(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),s=[].slice.call(n.body.querySelectorAll("*")),r=0,a=s.length;r<a;r++)!function(t){var i=s[t],n=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var r=[].slice.call(i.attributes),a=[].concat(e["*"]||[],e[n]||[]);r.forEach(function(t){!function(t,e){var i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===Ae.indexOf(i)||Boolean(t.nodeValue.match(Ie)||t.nodeValue.match(Oe));for(var n=e.filter(function(t){return t instanceof RegExp}),o=0,s=n.length;o<s;o++)if(i.match(n[o]))return!0;return!1}(t,a)&&i.removeAttribute(t.nodeName)})}(r);return n.body.innerHTML}i=i&&i.hasOwnProperty("default")?i.default:i;var V="transitionend",Y={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=i(t).css("transition-duration"),n=i(t).css("transition-delay"),o=parseFloat(e),s=parseFloat(n);return o||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i(t).trigger(V)},supportsTransitionEnd:function(){return Boolean(V)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var o=i[n],s=e[n],r=s&&Y.isElement(s)?"element":(a=s,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(r))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+r+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?Y.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null},jQueryDetection:function(){if(void 0===i)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=i.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};Y.jQueryDetection(),i.fn.emulateTransitionEnd=a,i.event.special[Y.TRANSITION_END]={bindType:V,delegateType:V,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var X="alert",Z="bs.alert",G="."+Z,J=i.fn[X],tt={CLOSE:"close"+G,CLOSED:"closed"+G,CLICK_DATA_API:"click"+G+".data-api"},et=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){i.removeData(this._element,Z),this._element=null},e._getRootElement=function(t){var e=Y.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n=n||i(t).closest(".alert")[0]},e._triggerCloseEvent=function(t){var e=i.Event(tt.CLOSE);return i(t).trigger(e),e},e._removeElement=function(t){var e=this;if(i(t).removeClass("show"),i(t).hasClass("fade")){var n=Y.getTransitionDurationFromElement(t);i(t).one(Y.TRANSITION_END,function(i){return e._destroyElement(t,i)}).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){i(t).detach().trigger(tt.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(Z);o||(o=new t(this),n.data(Z,o)),"close"===e&&o[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),t}();i(document).on(tt.CLICK_DATA_API,'[data-dismiss="alert"]',et._handleDismiss(new et)),i.fn[X]=et._jQueryInterface,i.fn[X].Constructor=et,i.fn[X].noConflict=function(){return i.fn[X]=J,et._jQueryInterface};var it="button",nt="bs.button",ot="."+nt,st=".data-api",rt=i.fn[it],at="active",lt='[data-toggle^="button"]',ct='input:not([type="hidden"])',ut=".btn",ht={CLICK_DATA_API:"click"+ot+st,FOCUS_BLUR_DATA_API:"focus"+ot+st+" blur"+ot+st,LOAD_DATA_API:"load"+ot+st},dt=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=i(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=this._element.querySelector(ct);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(at))t=!1;else{var s=n.querySelector(".active");s&&i(s).removeClass(at)}else"checkbox"===o.type?"LABEL"===this._element.tagName&&o.checked===this._element.classList.contains(at)&&(t=!1):t=!1;t&&(o.checked=!this._element.classList.contains(at),i(o).trigger("change")),o.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(at)),t&&i(this._element).toggleClass(at))},e.dispose=function(){i.removeData(this._element,nt),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(nt);n||(n=new t(this),i(this).data(nt,n)),"toggle"===e&&n[e]()})},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),t}();i(document).on(ht.CLICK_DATA_API,lt,function(t){var e=t.target;if(i(e).hasClass("btn")||(e=i(e).closest(ut)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var n=e.querySelector(ct);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void t.preventDefault();dt._jQueryInterface.call(i(e),"toggle")}}).on(ht.FOCUS_BLUR_DATA_API,lt,function(t){var e=i(t.target).closest(ut)[0];i(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),i(window).on(ht.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,i=t.length;e<i;e++){var n=t[e],o=n.querySelector(ct);o.checked||o.hasAttribute("checked")?n.classList.add(at):n.classList.remove(at)}for(var s=0,r=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;s<r;s++){var a=t[s];"true"===a.getAttribute("aria-pressed")?a.classList.add(at):a.classList.remove(at)}}),i.fn[it]=dt._jQueryInterface,i.fn[it].Constructor=dt,i.fn[it].noConflict=function(){return i.fn[it]=rt,dt._jQueryInterface};var ft="carousel",pt="bs.carousel",gt="."+pt,mt=".data-api",vt=i.fn[ft],_t={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},yt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},wt="next",bt="prev",Ct={SLIDE:"slide"+gt,SLID:"slid"+gt,KEYDOWN:"keydown"+gt,MOUSEENTER:"mouseenter"+gt,MOUSELEAVE:"mouseleave"+gt,TOUCHSTART:"touchstart"+gt,TOUCHMOVE:"touchmove"+gt,TOUCHEND:"touchend"+gt,POINTERDOWN:"pointerdown"+gt,POINTERUP:"pointerup"+gt,DRAG_START:"dragstart"+gt,LOAD_DATA_API:"load"+gt+mt,CLICK_DATA_API:"click"+gt+mt},Et="active",xt=".active.carousel-item",Tt=".carousel-indicators",St={TOUCH:"touch",PEN:"pen"},Dt=function(){function t(t,e){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(e),this._element=t,this._indicatorsElement=this._element.querySelector(Tt),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(wt)},e.nextWhenVisible=function(){!document.hidden&&i(this._element).is(":visible")&&"hidden"!==i(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(bt)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(Y.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(xt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)i(this._element).one(Ct.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var o=n<t?wt:bt;this._slide(o,this._items[t])}},e.dispose=function(){i(this._element).off(gt),i.removeData(this._element,pt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},_t,{},t),Y.typeCheckConfig(ft,t,yt),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;(this.touchDeltaX=0)<e&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&i(this._element).on(Ct.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&i(this._element).on(Ct.MOUSEENTER,function(e){return t.pause(e)}).on(Ct.MOUSELEAVE,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&St[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&St[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))};i(this._element.querySelectorAll(".carousel-item img")).on(Ct.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(i(this._element).on(Ct.POINTERDOWN,function(t){return e(t)}),i(this._element).on(Ct.POINTERUP,function(t){return n(t)}),this._element.classList.add("pointer-event")):(i(this._element).on(Ct.TOUCHSTART,function(t){return e(t)}),i(this._element).on(Ct.TOUCHMOVE,function(e){return function(e){e.originalEvent.touches&&1<e.originalEvent.touches.length?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)}),i(this._element).on(Ct.TOUCHEND,function(t){return n(t)}))}},e._keydown=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()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var i=t===wt,n=t===bt,o=this._getItemIndex(e),s=this._items.length-1;if((n&&0===o||i&&o===s)&&!this._config.wrap)return e;var r=(o+(t===bt?-1:1))%this._items.length;return-1==r?this._items[this._items.length-1]:this._items[r]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(xt)),s=i.Event(Ct.SLIDE,{relatedTarget:t,direction:e,from:o,to:n});return i(this._element).trigger(s),s},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));i(e).removeClass(Et);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&i(n).addClass(Et)}},e._slide=function(t,e){var n,o,s,r=this,a=this._element.querySelector(xt),l=this._getItemIndex(a),c=e||a&&this._getItemByDirection(t,a),u=this._getItemIndex(c),h=Boolean(this._interval);if(s=t===wt?(n="carousel-item-left",o="carousel-item-next","left"):(n="carousel-item-right",o="carousel-item-prev","right"),c&&i(c).hasClass(Et))this._isSliding=!1;else if(!this._triggerSlideEvent(c,s).isDefaultPrevented()&&a&&c){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(c);var d=i.Event(Ct.SLID,{relatedTarget:c,direction:s,from:l,to:u});if(i(this._element).hasClass("slide")){i(c).addClass(o),Y.reflow(c),i(a).addClass(n),i(c).addClass(n);var f=parseInt(c.getAttribute("data-interval"),10);f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=f):this._config.interval=this._config.defaultInterval||this._config.interval;var p=Y.getTransitionDurationFromElement(a);i(a).one(Y.TRANSITION_END,function(){i(c).removeClass(n+" "+o).addClass(Et),i(a).removeClass(Et+" "+o+" "+n),r._isSliding=!1,setTimeout(function(){return i(r._element).trigger(d)},0)}).emulateTransitionEnd(p)}else i(a).removeClass(Et),i(c).addClass(Et),this._isSliding=!1,i(this._element).trigger(d);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(pt),o=r({},_t,{},i(this).data());"object"==typeof e&&(o=r({},o,{},e));var s="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),i(this).data(pt,n)),"number"==typeof e)n.to(e);else if("string"==typeof s){if(void 0===n[s])throw new TypeError('No method named "'+s+'"');n[s]()}else o.interval&&o.ride&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=Y.getSelectorFromElement(this);if(n){var o=i(n)[0];if(o&&i(o).hasClass("carousel")){var s=r({},i(o).data(),{},i(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),t._jQueryInterface.call(i(o),s),a&&i(o).data(pt).to(a),e.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return _t}}]),t}();i(document).on(Ct.CLICK_DATA_API,"[data-slide], [data-slide-to]",Dt._dataApiClickHandler),i(window).on(Ct.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var o=i(t[e]);Dt._jQueryInterface.call(o,o.data())}}),i.fn[ft]=Dt._jQueryInterface,i.fn[ft].Constructor=Dt,i.fn[ft].noConflict=function(){return i.fn[ft]=vt,Dt._jQueryInterface};var At="collapse",kt="bs.collapse",It="."+kt,Ot=i.fn[At],Nt={toggle:!0,parent:""},jt={toggle:"boolean",parent:"(string|element)"},Lt={SHOW:"show"+It,SHOWN:"shown"+It,HIDE:"hide"+It,HIDDEN:"hidden"+It,CLICK_DATA_API:"click"+It+".data-api"},Pt="show",Mt="collapse",Ft="collapsing",Ht="collapsed",Rt='[data-toggle="collapse"]',Wt=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(Rt)),n=0,o=i.length;n<o;n++){var s=i[n],r=Y.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter(function(e){return e===t});null!==r&&0<a.length&&(this._selector=r,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=t.prototype;return e.toggle=function(){i(this._element).hasClass(Pt)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!(this._isTransitioning||i(this._element).hasClass(Pt)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(Mt)})).length&&(e=null),e&&(n=i(e).not(this._selector).data(kt))&&n._isTransitioning))){var s=i.Event(Lt.SHOW);if(i(this._element).trigger(s),!s.isDefaultPrevented()){e&&(t._jQueryInterface.call(i(e).not(this._selector),"hide"),n||i(e).data(kt,null));var r=this._getDimension();i(this._element).removeClass(Mt).addClass(Ft),this._element.style[r]=0,this._triggerArray.length&&i(this._triggerArray).removeClass(Ht).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(r[0].toUpperCase()+r.slice(1)),l=Y.getTransitionDurationFromElement(this._element);i(this._element).one(Y.TRANSITION_END,function(){i(o._element).removeClass(Ft).addClass(Mt).addClass(Pt),o._element.style[r]="",o.setTransitioning(!1),i(o._element).trigger(Lt.SHOWN)}).emulateTransitionEnd(l),this._element.style[r]=this._element[a]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&i(this._element).hasClass(Pt)){var e=i.Event(Lt.HIDE);if(i(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",Y.reflow(this._element),i(this._element).addClass(Ft).removeClass(Mt).removeClass(Pt);var o=this._triggerArray.length;if(0<o)for(var s=0;s<o;s++){var r=this._triggerArray[s],a=Y.getSelectorFromElement(r);null!==a&&(i([].slice.call(document.querySelectorAll(a))).hasClass(Pt)||i(r).addClass(Ht).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var l=Y.getTransitionDurationFromElement(this._element);i(this._element).one(Y.TRANSITION_END,function(){t.setTransitioning(!1),i(t._element).removeClass(Ft).addClass(Mt).trigger(Lt.HIDDEN)}).emulateTransitionEnd(l)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){i.removeData(this._element,kt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=r({},Nt,{},t)).toggle=Boolean(t.toggle),Y.typeCheckConfig(At,t,jt),t},e._getDimension=function(){return i(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;Y.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 o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(e.querySelectorAll(o));return i(s).each(function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),e},e._addAriaAndCollapsedClass=function(t,e){var n=i(t).hasClass(Pt);e.length&&i(e).toggleClass(Ht,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=Y.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(kt),s=r({},Nt,{},n.data(),{},"object"==typeof e&&e?e:{});if(!o&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),o||(o=new t(this,s),n.data(kt,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Nt}}]),t}();i(document).on(Lt.CLICK_DATA_API,Rt,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=i(this),n=Y.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));i(o).each(function(){var t=i(this),n=t.data(kt)?"toggle":e.data();Wt._jQueryInterface.call(t,n)})}),i.fn[At]=Wt._jQueryInterface,i.fn[At].Constructor=Wt,i.fn[At].noConflict=function(){return i.fn[At]=Ot,Wt._jQueryInterface};var $t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,zt=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if($t&&0<=navigator.userAgent.indexOf(t[e]))return 1;return 0}(),Ut=$t&&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()},zt))}},Bt=$t&&!(!window.MSInputMethodContext||!document.documentMode),qt=$t&&/MSIE 10/.test(navigator.userAgent),Qt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},Kt=$t&&/Firefox/i.test(navigator.userAgent),Vt=["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"],Yt=Vt.slice(3),Xt={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,i=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,s=o.reference,r=o.popper,a=-1!==["bottom","top"].indexOf(i),l=a?"left":"top",c=a?"width":"height",u={start:C({},l,s[l]),end:C({},l,s[l]+s[c]-r[c])};t.offsets.popper=Qt({},r,u[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,n=t.placement,o=t.offsets,s=o.popper,r=o.reference,a=n.split("-")[0],l=void 0;return l=W(+i)?[+i,0]:q(i,s,r,a),"left"===a?(s.top+=l[0],s.left-=l[1]):"right"===a?(s.top+=l[0],s.left+=l[1]):"top"===a?(s.left+=l[0],s.top-=l[1]):"bottom"===a&&(s.left+=l[0],s.top+=l[1]),t.popper=s,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||p(t.instance.popper);t.instance.reference===i&&(i=p(i));var n=M("transform"),o=t.instance.popper.style,s=o.top,r=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=D(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);o.top=s,o.left=r,o[n]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,h={primary:function(t){var i=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(u[t],l[t])),C({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=u[i];return u[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(u[i],l[t]-("right"===t?u.width:u.height))),C({},i,n)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=Qt({},u,h[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,i=e.popper,n=e.reference,o=t.placement.split("-")[0],s=Math.floor,r=-1!==["top","bottom"].indexOf(o),a=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return i[a]<s(n[l])&&(t.offsets.popper[l]=s(n[l])-i[c]),i[l]>s(n[a])&&(t.offsets.popper[l]=s(n[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!U(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return t;var o=t.placement.split("-")[0],s=t.offsets,r=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",h=l?"Top":"Left",d=h.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",g=I(n)[u];a[p]-g<r[d]&&(t.offsets.popper[d]-=r[d]-(a[p]-g)),a[d]+g>r[p]&&(t.offsets.popper[d]+=a[d]+g-r[p]),t.offsets.popper=E(t.offsets.popper);var m=a[d]+a[u]/2-g/2,v=c(t.instance.popper),_=parseFloat(v["margin"+h],10),y=parseFloat(v["border"+h+"Width"],10),w=m-t.offsets.popper[d]-_-y;return w=Math.max(Math.min(r[u]-g,w),0),t.arrowElement=n,t.offsets.arrow=(C(i={},d,Math.round(w)),C(i,f,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(P(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=D(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],o=O(n),s=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case"flip":r=[n,o];break;case"clockwise":r=B(n);break;case"counterclockwise":r=B(n,!0);break;default:r=e.behavior}return r.forEach(function(a,l){if(n!==a||r.length===l+1)return t;n=t.placement.split("-")[0],o=O(n);var c=t.offsets.popper,u=t.offsets.reference,h=Math.floor,d="left"===n&&h(c.right)>h(u.left)||"right"===n&&h(c.left)<h(u.right)||"top"===n&&h(c.bottom)>h(u.top)||"bottom"===n&&h(c.top)<h(u.bottom),f=h(c.left)<h(i.left),p=h(c.right)>h(i.right),g=h(c.top)<h(i.top),m=h(c.bottom)>h(i.bottom),v="left"===n&&f||"right"===n&&p||"top"===n&&g||"bottom"===n&&m,_=-1!==["top","bottom"].indexOf(n),y=!!e.flipVariations&&(_&&"start"===s&&f||_&&"end"===s&&p||!_&&"start"===s&&g||!_&&"end"===s&&m),w=!!e.flipVariationsByContent&&(_&&"start"===s&&p||_&&"end"===s&&f||!_&&"start"===s&&m||!_&&"end"===s&&g),b=y||w;(d||v||b)&&(t.flipped=!0,(d||v)&&(n=r[l+1]),b&&(s=function(t){return"end"===t?"start":"start"===t?"end":t}(s)),t.placement=n+(s?"-"+s:""),t.offsets.popper=Qt({},t.offsets.popper,N(t.instance.popper,t.offsets.reference,t.placement)),t=L(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,i=e.split("-")[0],n=t.offsets,o=n.popper,s=n.reference,r=-1!==["left","right"].indexOf(i),a=-1===["top","left"].indexOf(i);return o[r?"left":"top"]=s[i]-(a?o[r?"width":"height"]:0),t.placement=O(e),t.offsets.popper=E(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!U(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=j(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.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 i=e.x,n=e.y,o=t.offsets.popper,s=j(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration,r=void 0!==s?s:e.gpuAcceleration,a=p(t.instance.popper),l=x(a),c={position:o.position},u=z(t,window.devicePixelRatio<2||!Kt),h="bottom"===i?"top":"bottom",d="right"===n?"left":"right",f=M("transform"),g=void 0,m=void 0;if(m="bottom"==h?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,g="right"==d?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,r&&f)c[f]="translate3d("+g+"px, "+m+"px, 0)",c[h]=0,c[d]=0,c.willChange="transform";else{var v="bottom"==h?-1:1,_="right"==d?-1:1;c[h]=m*v,c[d]=g*_,c.willChange=h+", "+d}var y={"x-placement":t.placement};return t.attributes=Qt({},y,t.attributes),t.styles=Qt({},c,t.styles),t.arrowStyles=Qt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return $(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach(function(i){!1!==e[i]?t.setAttribute(i,e[i]):t.removeAttribute(i)})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&$(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,o){var s=k(o,e,t,i.positionFixed),r=A(i.placement,s,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",r),$(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},Zt=(function(t,e,i){e&&b(t.prototype,e),i&&b(t,i)}(Q,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=A(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=N(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=L(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,P(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[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return R.call(this)}}]),Q);Zt.Utils=("undefined"!=typeof window?window:t).PopperUtils,Zt.placements=Vt,Zt.Defaults=Xt;var Gt="dropdown",Jt="bs.dropdown",te="."+Jt,ee=".data-api",ie=i.fn[Gt],ne=new RegExp("38|40|27"),oe={HIDE:"hide"+te,HIDDEN:"hidden"+te,SHOW:"show"+te,SHOWN:"shown"+te,CLICK:"click"+te,CLICK_DATA_API:"click"+te+ee,KEYDOWN_DATA_API:"keydown"+te+ee,KEYUP_DATA_API:"keyup"+te+ee},se="disabled",re="show",ae="dropdown-menu-right",le='[data-toggle="dropdown"]',ce=".dropdown-menu",ue={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},he={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},de=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!i(this._element).hasClass(se)){var e=i(this._menu).hasClass(re);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i(this._element).hasClass(se)||i(this._menu).hasClass(re))){var n={relatedTarget:this._element},o=i.Event(oe.SHOW,n),s=t._getParentFromElement(this._element);if(i(s).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===Zt)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var r=this._element;"parent"===this._config.reference?r=s:Y.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i(s).addClass("position-static"),this._popper=new Zt(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i(s).closest(".navbar-nav").length&&i(document.body).children().on("mouseover",null,i.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i(this._menu).toggleClass(re),i(s).toggleClass(re).trigger(i.Event(oe.SHOWN,n))}}},e.hide=function(){if(!this._element.disabled&&!i(this._element).hasClass(se)&&i(this._menu).hasClass(re)){var e={relatedTarget:this._element},n=i.Event(oe.HIDE,e),o=t._getParentFromElement(this._element);i(o).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i(this._menu).toggleClass(re),i(o).toggleClass(re).trigger(i.Event(oe.HIDDEN,e)))}},e.dispose=function(){i.removeData(this._element,Jt),i(this._element).off(te),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;i(this._element).on(oe.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=r({},this.constructor.Default,{},i(this._element).data(),{},t),Y.typeCheckConfig(Gt,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(ce))}return this._menu},e._getPlacement=function(){var t=i(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?(e="top-start",i(this._menu).hasClass(ae)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i(this._menu).hasClass(ae)&&(e="bottom-end"),e},e._detectNavbar=function(){return 0<i(this._element).closest(".navbar").length},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=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}),r({},t,{},this._config.popperConfig)},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(Jt);if(n||(n=new t(this,"object"==typeof e?e:null),i(this).data(Jt,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(le)),o=0,s=n.length;o<s;o++){var r=t._getParentFromElement(n[o]),a=i(n[o]).data(Jt),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),a){var c=a._menu;if(i(r).hasClass(re)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&i.contains(r,e.target))){var u=i.Event(oe.HIDE,l);i(r).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i(document.body).children().off("mouseover",null,i.noop),n[o].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),i(c).removeClass(re),i(r).removeClass(re).trigger(i.Event(oe.HIDDEN,l)))}}}},t._getParentFromElement=function(t){var e,i=Y.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||i(e.target).closest(ce).length)):ne.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!i(this).hasClass(se))){var n=t._getParentFromElement(this),o=i(n).hasClass(re);if(o||27!==e.which)if(o&&(!o||27!==e.which&&32!==e.which)){var s=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(t){return i(t).is(":visible")});if(0!==s.length){var r=s.indexOf(e.target);38===e.which&&0<r&&r--,40===e.which&&r<s.length-1&&r++,r<0&&(r=0),s[r].focus()}}else{if(27===e.which){var a=n.querySelector(le);i(a).trigger("focus")}i(this).trigger("click")}}},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ue}},{key:"DefaultType",get:function(){return he}}]),t}();i(document).on(oe.KEYDOWN_DATA_API,le,de._dataApiKeydownHandler).on(oe.KEYDOWN_DATA_API,ce,de._dataApiKeydownHandler).on(oe.CLICK_DATA_API+" "+oe.KEYUP_DATA_API,de._clearMenus).on(oe.CLICK_DATA_API,le,function(t){t.preventDefault(),t.stopPropagation(),de._jQueryInterface.call(i(this),"toggle")}).on(oe.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),i.fn[Gt]=de._jQueryInterface,i.fn[Gt].Constructor=de,i.fn[Gt].noConflict=function(){return i.fn[Gt]=ie,de._jQueryInterface};var fe="modal",pe="bs.modal",ge="."+pe,me=i.fn[fe],ve={backdrop:!0,keyboard:!0,focus:!0,show:!0},_e={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},ye={HIDE:"hide"+ge,HIDE_PREVENTED:"hidePrevented"+ge,HIDDEN:"hidden"+ge,SHOW:"show"+ge,SHOWN:"shown"+ge,FOCUSIN:"focusin"+ge,RESIZE:"resize"+ge,CLICK_DISMISS:"click.dismiss"+ge,KEYDOWN_DISMISS:"keydown.dismiss"+ge,MOUSEUP_DISMISS:"mouseup.dismiss"+ge,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ge,CLICK_DATA_API:"click"+ge+".data-api"},we="modal-open",be="fade",Ce="show",Ee="modal-static",xe=".modal-dialog",Te=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Se=".sticky-top",De=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(xe),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){i(this._element).hasClass(be)&&(this._isTransitioning=!0);var n=i.Event(ye.SHOW,{relatedTarget:t});i(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),i(this._element).on(ye.CLICK_DISMISS,'[data-dismiss="modal"]',function(t){return e.hide(t)}),i(this._dialog).on(ye.MOUSEDOWN_DISMISS,function(){i(e._element).one(ye.MOUSEUP_DISMISS,function(t){i(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=i.Event(ye.HIDE);if(i(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=i(this._element).hasClass(be);if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),i(document).off(ye.FOCUSIN),i(this._element).removeClass(Ce),i(this._element).off(ye.CLICK_DISMISS),i(this._dialog).off(ye.MOUSEDOWN_DISMISS),o){var s=Y.getTransitionDurationFromElement(this._element);i(this._element).one(Y.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(s)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return i(t).off(ge)}),i(document).off(ye.FOCUSIN),i.removeData(this._element,pe),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},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=r({},ve,{},t),Y.typeCheckConfig(fe,t,_e),t},e._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var e=i.Event(ye.HIDE_PREVENTED);if(i(this._element).trigger(e),e.defaultPrevented)return;this._element.classList.add(Ee);var n=Y.getTransitionDurationFromElement(this._element);i(this._element).one(Y.TRANSITION_END,function(){t._element.classList.remove(Ee)}).emulateTransitionEnd(n),this._element.focus()}else this.hide()},e._showElement=function(t){function e(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,i(n._element).trigger(r)}var n=this,o=i(this._element).hasClass(be),s=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),i(this._dialog).hasClass("modal-dialog-scrollable")&&s?s.scrollTop=0:this._element.scrollTop=0,o&&Y.reflow(this._element),i(this._element).addClass(Ce),this._config.focus&&this._enforceFocus();var r=i.Event(ye.SHOWN,{relatedTarget:t});if(o){var a=Y.getTransitionDurationFromElement(this._dialog);i(this._dialog).one(Y.TRANSITION_END,e).emulateTransitionEnd(a)}else e()},e._enforceFocus=function(){var t=this;i(document).off(ye.FOCUSIN).on(ye.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===i(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?i(this._element).on(ye.KEYDOWN_DISMISS,function(e){27===e.which&&t._triggerBackdropTransition()}):this._isShown||i(this._element).off(ye.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?i(window).on(ye.RESIZE,function(e){return t.handleUpdate(e)}):i(window).off(ye.RESIZE)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){i(document.body).removeClass(we),t._resetAdjustments(),t._resetScrollbar(),i(t._element).trigger(ye.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(i(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=i(this._element).hasClass(be)?be:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),i(this._backdrop).appendTo(document.body),i(this._element).on(ye.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&e._triggerBackdropTransition()}),n&&Y.reflow(this._backdrop),i(this._backdrop).addClass(Ce),!t)return;if(!n)return void t();var o=Y.getTransitionDurationFromElement(this._backdrop);i(this._backdrop).one(Y.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){i(this._backdrop).removeClass(Ce);var s=function(){e._removeBackdrop(),t&&t()};if(i(this._element).hasClass(be)){var r=Y.getTransitionDurationFromElement(this._backdrop);i(this._backdrop).one(Y.TRANSITION_END,s).emulateTransitionEnd(r)}else s()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(Te)),n=[].slice.call(document.querySelectorAll(Se));i(e).each(function(e,n){var o=n.style.paddingRight,s=i(n).css("padding-right");i(n).data("padding-right",o).css("padding-right",parseFloat(s)+t._scrollbarWidth+"px")}),i(n).each(function(e,n){var o=n.style.marginRight,s=i(n).css("margin-right");i(n).data("margin-right",o).css("margin-right",parseFloat(s)-t._scrollbarWidth+"px")});var o=document.body.style.paddingRight,s=i(document.body).css("padding-right");i(document.body).data("padding-right",o).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}i(document.body).addClass(we)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(Te));i(t).each(function(t,e){var n=i(e).data("padding-right");i(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+Se));i(e).each(function(t,e){var n=i(e).data("margin-right");void 0!==n&&i(e).css("margin-right",n).removeData("margin-right")});var n=i(document.body).data("padding-right");i(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=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},t._jQueryInterface=function(e,n){return this.each(function(){var o=i(this).data(pe),s=r({},ve,{},i(this).data(),{},"object"==typeof e&&e?e:{});if(o||(o=new t(this,s),i(this).data(pe,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](n)}else s.show&&o.show(n)})},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ve}}]),t}();i(document).on(ye.CLICK_DATA_API,'[data-toggle="modal"]',function(t){var e,n=this,o=Y.getSelectorFromElement(this);o&&(e=document.querySelector(o));var s=i(e).data(pe)?"toggle":r({},i(e).data(),{},i(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=i(e).one(ye.SHOW,function(t){t.isDefaultPrevented()||a.one(ye.HIDDEN,function(){i(n).is(":visible")&&n.focus()})});De._jQueryInterface.call(i(e),s,this)}),i.fn[fe]=De._jQueryInterface,i.fn[fe].Constructor=De,i.fn[fe].noConflict=function(){return i.fn[fe]=me,De._jQueryInterface};var Ae=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ke={"*":["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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ie=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Oe=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,Ne="tooltip",je="bs.tooltip",Le="."+je,Pe=i.fn[Ne],Me="bs-tooltip",Fe=new RegExp("(^|\\s)"+Me+"\\S+","g"),He=["sanitize","whiteList","sanitizeFn"],Re={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)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},We={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},$e={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",sanitize:!0,sanitizeFn:null,whiteList:ke,popperConfig:null},ze="show",Ue={HIDE:"hide"+Le,HIDDEN:"hidden"+Le,SHOW:"show"+Le,SHOWN:"shown"+Le,INSERTED:"inserted"+Le,CLICK:"click"+Le,FOCUSIN:"focusin"+Le,FOCUSOUT:"focusout"+Le,MOUSEENTER:"mouseenter"+Le,MOUSELEAVE:"mouseleave"+Le},Be="fade",qe="show",Qe="hover",Ke="focus",Ve=function(){function t(t,e){if(void 0===Zt)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i(this.getTipElement()).hasClass(qe))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),i.removeData(this.element,this.constructor.DATA_KEY),i(this.element).off(this.constructor.EVENT_KEY),i(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i(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},e.show=function(){var t=this;if("none"===i(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i(this.element).trigger(e);var n=Y.findShadowRoot(this.element),o=i.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!o)return;var s=this.getTipElement(),r=Y.getUID(this.constructor.NAME);s.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&i(s).addClass(Be);var a="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,l=this._getAttachment(a);this.addAttachmentClass(l);var c=this._getContainer();i(s).data(this.constructor.DATA_KEY,this),i.contains(this.element.ownerDocument.documentElement,this.tip)||i(s).appendTo(c),i(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Zt(this.element,s,this._getPopperConfig(l)),i(s).addClass(qe),"ontouchstart"in document.documentElement&&i(document.body).children().on("mouseover",null,i.noop);var u=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(i(this.tip).hasClass(Be)){var h=Y.getTransitionDurationFromElement(this.tip);i(this.tip).one(Y.TRANSITION_END,u).emulateTransitionEnd(h)}else u()}},e.hide=function(t){function e(){n._hoverState!==ze&&o.parentNode&&o.parentNode.removeChild(o),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),i(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()}var n=this,o=this.getTipElement(),s=i.Event(this.constructor.Event.HIDE);if(i(this.element).trigger(s),!s.isDefaultPrevented()){if(i(o).removeClass(qe),"ontouchstart"in document.documentElement&&i(document.body).children().off("mouseover",null,i.noop),this._activeTrigger.click=!1,this._activeTrigger[Ke]=!1,this._activeTrigger[Qe]=!1,i(this.tip).hasClass(Be)){var r=Y.getTransitionDurationFromElement(o);i(o).one(Y.TRANSITION_END,e).emulateTransitionEnd(r)}else e();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){i(this.getTipElement()).addClass(Me+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||i(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(i(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i(t).removeClass(Be+" "+qe)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=K(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i(e).parent().is(t)||t.empty().append(e):t.text(i(e).text())},e.getTitle=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)},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},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)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:Y.isElement(this.config.container)?i(this.config.container):i(document).find(this.config.container)},e._getAttachment=function(t){return We[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)i(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var n=e===Qe?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===Qe?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i(t.element).on(n,t.config.selector,function(e){return t._enter(e)}).on(o,t.config.selector,function(e){return t._leave(e)})}}),this._hideModalHandler=function(){t.element&&t.hide()},i(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof 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",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Ke:Qe]=!0),i(e.getTipElement()).hasClass(qe)||e._hoverState===ze?e._hoverState=ze:(clearTimeout(e._timeout),e._hoverState=ze,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===ze&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Ke:Qe]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=i(this.element).data();return Object.keys(e).forEach(function(t){-1!==He.indexOf(t)&&delete e[t]}),"number"==typeof(t=r({},this.constructor.Default,{},e,{},"object"==typeof 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()),Y.typeCheckConfig(Ne,t,this.constructor.DefaultType),t.sanitize&&(t.template=K(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=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},e._cleanTipClass=function(){var t=i(this.getTipElement()),e=t.attr("class").match(Fe);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i(t).removeClass(Be),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(je),o="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,o),i(this).data(je,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return $e}},{key:"NAME",get:function(){return Ne}},{key:"DATA_KEY",get:function(){return je}},{key:"Event",get:function(){return Ue}},{key:"EVENT_KEY",get:function(){return Le}},{key:"DefaultType",get:function(){return Re}}]),t}();i.fn[Ne]=Ve._jQueryInterface,i.fn[Ne].Constructor=Ve,i.fn[Ne].noConflict=function(){return i.fn[Ne]=Pe,Ve._jQueryInterface};var Ye="popover",Xe="bs.popover",Ze="."+Xe,Ge=i.fn[Ye],Je="bs-popover",ti=new RegExp("(^|\\s)"+Je+"\\S+","g"),ei=r({},Ve.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>'}),ii=r({},Ve.DefaultType,{content:"(string|element|function)"}),ni={HIDE:"hide"+Ze,HIDDEN:"hidden"+Ze,SHOW:"show"+Ze,SHOWN:"shown"+Ze,INSERTED:"inserted"+Ze,CLICK:"click"+Ze,FOCUSIN:"focusin"+Ze,FOCUSOUT:"focusout"+Ze,MOUSEENTER:"mouseenter"+Ze,MOUSELEAVE:"mouseleave"+Ze},oi=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){i(this.getTipElement()).addClass(Je+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||i(this.config.template)[0],this.tip},n.setContent=function(){var t=i(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("fade show")},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=i(this.getTipElement()),e=t.attr("class").match(ti);null!==e&&0<e.length&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each(function(){var n=i(this).data(Xe),o="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,o),i(this).data(Xe,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ei}},{key:"NAME",get:function(){return Ye}},{key:"DATA_KEY",get:function(){return Xe}},{key:"Event",get:function(){return ni}},{key:"EVENT_KEY",get:function(){return Ze}},{key:"DefaultType",get:function(){return ii}}]),e}(Ve);i.fn[Ye]=oi._jQueryInterface,i.fn[Ye].Constructor=oi,i.fn[Ye].noConflict=function(){return i.fn[Ye]=Ge,oi._jQueryInterface};var si="scrollspy",ri="bs.scrollspy",ai="."+ri,li=i.fn[si],ci={offset:10,method:"auto",target:""},ui={offset:"number",method:"string",target:"(string|element)"},hi={ACTIVATE:"activate"+ai,SCROLL:"scroll"+ai,LOAD_DATA_API:"load"+ai+".data-api"},di="active",fi=".nav, .list-group",pi=".nav-link",gi=".list-group-item",mi=".dropdown-item",vi="position",_i=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+pi+","+this._config.target+" "+gi+","+this._config.target+" "+mi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,i(this._scrollElement).on(hi.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":vi,n="auto"===this._config.method?e:this._config.method,o=n===vi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,s=Y.getSelectorFromElement(t);if(s&&(e=document.querySelector(s)),e){var r=e.getBoundingClientRect();if(r.width||r.height)return[i(e)[n]().top+o,s]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){i.removeData(this._element,ri),i(this._scrollElement).off(ai),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},ci,{},"object"==typeof t&&t?t:{})).target){var e=i(t.target).attr("id");e||(e=Y.getUID(si),i(t.target).attr("id",e)),t.target="#"+e}return Y.typeCheckConfig(si,t,ui),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),i<=t){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=i([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass(di),n.addClass(di)):(n.addClass(di),n.parents(fi).prev(pi+", "+gi).addClass(di),n.parents(fi).prev(".nav-item").children(pi).addClass(di)),i(this._scrollElement).trigger(hi.ACTIVATE,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(di)}).forEach(function(t){return t.classList.remove(di)})},t._jQueryInterface=function(e){return this.each(function(){var n=i(this).data(ri);if(n||(n=new t(this,"object"==typeof e&&e),i(this).data(ri,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ci}}]),t}();i(window).on(hi.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=i(t[e]);_i._jQueryInterface.call(n,n.data())}}),i.fn[si]=_i._jQueryInterface,i.fn[si].Constructor=_i,i.fn[si].noConflict=function(){return i.fn[si]=li,_i._jQueryInterface};var yi="bs.tab",wi="."+yi,bi=i.fn.tab,Ci={HIDE:"hide"+wi,HIDDEN:"hidden"+wi,SHOW:"show"+wi,SHOWN:"shown"+wi,CLICK_DATA_API:"click"+wi+".data-api"},Ei="active",xi=".active",Ti="> li > .active",Si=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&i(this._element).hasClass(Ei)||i(this._element).hasClass("disabled"))){var e,n,o=i(this._element).closest(".nav, .list-group")[0],s=Y.getSelectorFromElement(this._element);if(o){var r="UL"===o.nodeName||"OL"===o.nodeName?Ti:xi;n=(n=i.makeArray(i(o).find(r)))[n.length-1]}var a=i.Event(Ci.HIDE,{relatedTarget:this._element}),l=i.Event(Ci.SHOW,{relatedTarget:n});if(n&&i(n).trigger(a),i(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){s&&(e=document.querySelector(s)),this._activate(this._element,o);var c=function(){var e=i.Event(Ci.HIDDEN,{relatedTarget:t._element}),o=i.Event(Ci.SHOWN,{relatedTarget:n});i(n).trigger(e),i(t._element).trigger(o)};e?this._activate(e,e.parentNode,c):c()}}},e.dispose=function(){i.removeData(this._element,yi),this._element=null},e._activate=function(t,e,n){function o(){return s._transitionComplete(t,r,n)}var s=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?i(e).children(xi):i(e).find(Ti))[0],a=n&&r&&i(r).hasClass("fade");if(r&&a){var l=Y.getTransitionDurationFromElement(r);i(r).removeClass("show").one(Y.TRANSITION_END,o).emulateTransitionEnd(l)}else o()},e._transitionComplete=function(t,e,n){if(e){i(e).removeClass(Ei);var o=i(e.parentNode).find("> .dropdown-menu .active")[0];o&&i(o).removeClass(Ei),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(i(t).addClass(Ei),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),Y.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&i(t.parentNode).hasClass("dropdown-menu")){var s=i(t).closest(".dropdown")[0];if(s){var r=[].slice.call(s.querySelectorAll(".dropdown-toggle"));i(r).addClass(Ei)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(yi);if(o||(o=new t(this),n.data(yi,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),t}();i(document).on(Ci.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),Si._jQueryInterface.call(i(this),"show")}),i.fn.tab=Si._jQueryInterface,i.fn.tab.Constructor=Si,i.fn.tab.noConflict=function(){return i.fn.tab=bi,Si._jQueryInterface};var Di="toast",Ai="bs.toast",ki="."+Ai,Ii=i.fn[Di],Oi={CLICK_DISMISS:"click.dismiss"+ki,HIDE:"hide"+ki,HIDDEN:"hidden"+ki,SHOW:"show"+ki,SHOWN:"shown"+ki},Ni="hide",ji="show",Li="showing",Pi={animation:"boolean",autohide:"boolean",delay:"number"},Mi={animation:!0,autohide:!0,delay:500},Fi=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=i.Event(Oi.SHOW);if(i(this._element).trigger(e),!e.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove(Li),t._element.classList.add(ji),i(t._element).trigger(Oi.SHOWN),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove(Ni),Y.reflow(this._element),this._element.classList.add(Li),this._config.animation){var o=Y.getTransitionDurationFromElement(this._element);i(this._element).one(Y.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},e.hide=function(){if(this._element.classList.contains(ji)){var t=i.Event(Oi.HIDE);i(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(ji)&&this._element.classList.remove(ji),i(this._element).off(Oi.CLICK_DISMISS),i.removeData(this._element,Ai),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},Mi,{},i(this._element).data(),{},"object"==typeof t&&t?t:{}),Y.typeCheckConfig(Di,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;i(this._element).on(Oi.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return t.hide()})},e._close=function(){function t(){e._element.classList.add(Ni),i(e._element).trigger(Oi.HIDDEN)}var e=this;if(this._element.classList.remove(ji),this._config.animation){var n=Y.getTransitionDurationFromElement(this._element);i(this._element).one(Y.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._jQueryInterface=function(e){return this.each(function(){var n=i(this),o=n.data(Ai);if(o||(o=new t(this,"object"==typeof e&&e),n.data(Ai,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](this)}})},o(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Pi}},{key:"Default",get:function(){return Mi}}]),t}();i.fn[Di]=Fi._jQueryInterface,i.fn[Di].Constructor=Fi,i.fn[Di].noConflict=function(){return i.fn[Di]=Ii,Fi._jQueryInterface},e.Alert=et,e.Button=dt,e.Carousel=Dt,e.Collapse=Wt,e.Dropdown=de,e.Modal=De,e.Popover=oi,e.Scrollspy=_i,e.Tab=Si,e.Toast=Fi,e.Tooltip=Ve,e.Util=Y,Object.defineProperty(e,"__esModule",{value:!0})})}).call(e,i(19))},function(t,e,i){"use strict";function n(t){console&&console.warn}function o(){o.init.call(this)}function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function r(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function a(t,e,i,o){var a,l,c;if(s(i),l=t._events,void 0===l?(l=t._events=Object.create(null),t._eventsCount=0):(void 0!==l.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),l=t._events),c=l[e]),void 0===c)c=l[e]=i,++t._eventsCount;else if("function"==typeof c?c=l[e]=o?[i,c]:[c,i]:o?c.unshift(i):c.push(i),(a=r(t))>0&&c.length>a&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=c.length,n(u)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},o=l.bind(n);return o.listener=i,n.wrapFn=o,o}function u(t,e,i){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?i?[o.listener||o]:[o]:i?p(o):d(o,o.length)}function h(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function d(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function f(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function p(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}function g(t,e){return new Promise(function(i,n){function o(i){t.removeListener(e,s),n(i)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",o),i([].slice.call(arguments))}v(t,e,s,{once:!0}),"error"!==e&&m(t,o,{once:!0})})}function m(t,e,i){"function"==typeof t.on&&v(t,"error",e,i)}function v(t,e,i,n){if("function"==typeof t.on)n.once?t.once(e,i):t.on(e,i);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function o(s){n.once&&t.removeEventListener(e,o),i(s)})}}var _,y="object"==typeof Reflect?Reflect:null,w=y&&"function"==typeof y.apply?y.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};_=y&&"function"==typeof y.ownKeys?y.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var b=Number.isNaN||function(t){return t!==t};t.exports=o,t.exports.once=g,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var C=10;Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return C},set:function(t){if("number"!=typeof t||t<0||b(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");C=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||b(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return r(this)},o.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var r=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw r.context=s,r}var a=o[t];if(void 0===a)return!1;if("function"==typeof a)w(a,this,e);else for(var l=a.length,c=d(a,l),i=0;i<l;++i)w(c[i],this,e);return!0},o.prototype.addListener=function(t,e){return a(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return a(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,c(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,c(this,t,e)),this},o.prototype.removeListener=function(t,e){var i,n,o,r,a;if(s(e),void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(o=-1,r=i.length-1;r>=0;r--)if(i[r]===e||i[r].listener===e){a=i[r].listener,o=r;break}if(o<0)return this;0===o?i.shift():f(i,o),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var o,s=Object.keys(i);for(n=0;n<s.length;++n)"removeListener"!==(o=s[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return u(this,t,!0)},o.prototype.rawListeners=function(t){return u(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?_(this._events):[]}},function(t,e,i){"use strict";var n,o;!function(s){var r;if(n=s,void 0!==(o="function"==typeof n?n.call(e,i,e,t):n)&&(t.exports=o),r=!0,t.exports=s(),r=!0,!r){var a=window.Cookies,l=window.Cookies=s();l.noConflict=function(){return window.Cookies=a,l}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(n){function o(){}function s(e,i,s){if("undefined"!=typeof document){s=t({path:"/"},o.defaults,s),"number"==typeof s.expires&&(s.expires=new Date(1*new Date+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var r=JSON.stringify(i);/^[\{\[]/.test(r)&&(i=r)}catch(t){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,!0!==s[l]&&(a+="="+s[l].split(";")[0]));return document.cookie=e+"="+i+a}}function r(t,i){if("undefined"!=typeof document){for(var o={},s=document.cookie?document.cookie.split("; "):[],r=0;r<s.length;r++){var a=s[r].split("="),l=a.slice(1).join("=");i||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=e(a[0]);if(l=(n.read||n)(l,c)||e(l),i)try{l=JSON.parse(l)}catch(t){}if(o[c]=l,t===c)break}catch(t){}}return t?o[t]:o}}return o.set=s,o.get=function(t){return r(t,!1)},o.getJSON=function(t){return r(t,!0)},o.remove=function(e,i){s(e,"",t(i,{expires:-1}))},o.defaults={},o.withConverter=i,o}return i(function(){})})},function(t,e,i){"use strict";!function(t,e,i,n){function o(e,i){this.settings=null,this.options=t.extend({},o.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(e,i){this._handlers[i]=t.proxy(this[i],this)},this)),t.each(o.Plugins,t.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(o.Workers,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Type={Event:"event",State:"state"},o.Plugins={},o.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,o={width:"auto","margin-left":n?e:"","margin-right":n?"":e};!i&&this.$stage.children().css(o),t.css=o}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,o=!this.settings.autoWidth,s=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,s[n]=o?e*i:this._items[n].width();this._widths=s}},{filter:["items","settings"],run:function(){var e=[],i=this._items,n=this.settings,o=Math.max(2*n.items,4),s=2*Math.ceil(i.length/2),r=n.loop&&i.length?n.rewind?o:Math.max(o,s):0,a="",l="";for(r/=2;r--;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),l=i[e[e.length-1]][0].outerHTML+l;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,o=0,s=[];++i<e;)n=s[i-1]||0,o=this._widths[this.relative(i)]+this.settings.margin,s.push(n+o*t);this._coordinates=s}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,o=this.settings.rtl?1:-1,s=2*this.settings.stagePadding,r=this.coordinates(this.current())+s,a=r+this.width()*o,l=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+s*o,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],o.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var e,i,n;e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,n=this.$element.children(i).width(),e.length&&n<=0&&this.preloadAutoWidthImages(e)}this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,n=-1,o=null;i?(t.each(i,function(t){t<=e&&t>n&&(n=Number(t))}),o=t.extend({},this.options,i[n]),"function"==typeof o.stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):o=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=n,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},o.prototype.update=function(){for(var e=0,i=this._pipe.length,n=t.proxy(function(t){return this[t]},this._invalidated),o={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,n).length>0)&&this._pipe[e].run(o),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},o.prototype.width=function(t){switch(t=t||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},o.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},o.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(e){var n=null;3!==e.which&&(t.support.transform?(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),n={x:n[16===n.length?12:4],y:n[16===n.length?13:5]}):(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},o.prototype.onDragMove=function(t){var e=null,i=null,n=null,o=this.difference(this._drag.pointer,this.pointer(t)),s=this.difference(this._drag.stage.start,o);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,s.x=((s.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*o.x/5:0,s.x=Math.max(Math.min(s.x,e+n),i+n)),this._drag.stage.current=s,this.animate(s.x))},o.prototype.onDragEnd=function(e){var n=this.difference(this._drag.pointer,this.pointer(e)),o=this._drag.stage.current,s=n.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(o.x,0!==n.x?s:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=s,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},o.prototype.closest=function(e,i){var n=-1,o=this.width(),s=this.coordinates();return this.settings.freeDrag||t.each(s,t.proxy(function(t,r){return"left"===i&&e>r-30&&e<r+30?n=t:"right"===i&&e>r-o-30&&e<r-o+30?n=t+1:this.op(e,"<",r)&&this.op(e,">",s[t+1]||r-o)&&(n="left"===i?t+1:t),-1===n},this)),this.settings.loop||(this.op(e,">",s[this.minimum()])?n=e=this.minimum():this.op(e,"<",s[this.maximum()])&&(n=e=this.maximum())),n},o.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},o.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},o.prototype.current=function(t){if(void 0===t)return this._current;if(0!==this._items.length){if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});void 0!==e.data&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},o.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},o.prototype.reset=function(t){void 0!==(t=this.normalize(t))&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},o.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=void 0:(t<0||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},o.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},o.prototype.maximum=function(t){var e,i,n,o=this.settings,s=this._coordinates.length;if(o.loop)s=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){for(e=this._items.length,i=this._items[--e].width(),n=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>n););s=e+1}else s=o.center?this._items.length-1:this._items.length-o.items;return t&&(s-=this._clones.length/2),Math.max(s,0)},o.prototype.minimum=function(t){return t?0:this._clones.length/2},o.prototype.items=function(t){return void 0===t?this._items.slice():(t=this.normalize(t,!0),this._items[t])},o.prototype.mergers=function(t){return void 0===t?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},o.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2==0?n+t/2:i-(t+1)/2};return void 0===e?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},o.prototype.speed=function(t){return void 0!==t&&(this._speed=t),this._speed},o.prototype.coordinates=function(e){var i,n=1,o=e-1;return void 0===e?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(n=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*n):i=this._coordinates[o]||0,i=Math.ceil(i))},o.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},o.prototype.to=function(t,e){var i=this.current(),n=null,o=t-this.relative(i),s=(o>0)-(o<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>r/2&&(o+=-1*s*r),t=i+o,(n=((t-a)%r+r)%r+a)!==t&&n-o<=l&&n-o>0&&(i=n-o,t=n,this.reset(i))):this.settings.rewind?(l+=1,t=(t%l+l)%l):t=Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.$element.is(":visible")&&this.update()},o.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},o.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},o.prototype.onTransitionEnd=function(t){if(void 0!==t&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},o.prototype.viewport=function(){var n;if(this.options.responsiveBaseElement!==e)n=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)n=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";n=i.documentElement.clientWidth}return n},o.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(e,i){var n=this.relative(this._current);i=void 0===i?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},o.prototype.remove=function(t){void 0!==(t=this.normalize(t,!0))&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},o.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},o.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize));for(var n in this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},o.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:t<i;case">":return n?t<i:t>i;case">=":return n?t<=i:t>=i;case"<=":return n?t>=i:t<=i}},o.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},o.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},o.prototype.trigger=function(e,i,n,s,r){var a={item:{count:this._items.length,index:this.current()}},l=t.camelCase(t.grep(["on",e,n],function(t){return t}).join("-").toLowerCase()),c=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(c)}),this.register({type:o.Type.Event,name:e}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},o.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){void 0===this._states.current[e]&&(this._states.current[e]=0),this._states.current[e]++},this))},o.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},o.prototype.register=function(e){if(e.type===o.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===o.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,n){return t.inArray(i,this._states.tags[e.name])===n},this)))},o.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},o.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},o.prototype.pointer=function(t){var i={x:null,y:null};return t=t.originalEvent||t||e.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t.pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},o.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},o.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=t(this),s=n.data("owl.carousel");s||(s=new o(this,"object"==typeof e&&e),n.data("owl.carousel",s),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){s.register({type:o.Type.Event,name:i}),s.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),s[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},s))})),"string"==typeof e&&"_"!==e.charAt(0)&&s[e].apply(s,i)})},t.fn.owlCarousel.Constructor=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function e(i){this._core=i,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var t,i;e.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function e(i){this._core=i,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,o=i.center&&-1*n||0,s=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+o,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);o++<n;)this.load(r/2+this._core.relative(s)),r&&t.each(this._core.clones(this._core.relative(s)),a),s++},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1},o.prototype.load=function(i){var n=this._core.$stage.children().eq(i),o=n&&n.find(".owl-lazy");!o||t.inArray(n.get(0),this._loaded)>-1||(o.each(t.proxy(function(i,n){var o,s=t(n),r=e.devicePixelRatio>1&&s.attr("data-src-retina")||s.attr("data-src");this._core.trigger("load",{element:s,url:r},"lazy"),s.is("img")?s.one("load.owl.lazy",t.proxy(function(){s.css("opacity",1),this._core.trigger("loaded",{element:s,url:r},"lazy")},this)).attr("src",r):(o=new Image,o.onload=t.proxy(function(){s.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:s,url:r},"lazy")},this),o.src=r)},this)),this._loaded.push(n.get(0)))},o.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function e(i){this._core=i,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,n=this._core.$stage.children().toArray().slice(e,i),o=[],s=0;t.each(n,function(e,i){o.push(t(i).height())}),s=Math.max.apply(null,o),this._core.$stage.parent().height(s).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function e(i){this._core=i,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(t,e){var i=function(){return t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube"}(),n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),o=t.attr("data-width")||this._core.settings.videoWidth,s=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:o,height:s},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},o.prototype.thumbnail=function(e,i){var n,o,s,r=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=e.find("img"),l="src",c="",u=this._core.settings,h=function(t){o='<div class="owl-video-play-icon"></div>',n=u.lazyLoad?'<div class="owl-video-tn '+c+'" '+l+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(n),e.after(o)};if(e.wrap('<div class="owl-video-wrapper"'+r+"></div>"),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),a.length)return h(a.attr(l)),a.remove(),!1;"youtube"===i.type?(s="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",h(s)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,h(s)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,h(s)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(e){var i,n=t(e.target),o=n.closest("."+this._core.settings.itemClass),s=this._videos[o.attr("data-video")],r=s.width||"100%",a=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),o=this._core.items(this._core.relative(o.index())),this._core.reset(o.index()),"youtube"===s.type?i='<iframe width="'+r+'" height="'+a+'" src="//www.youtube.com/embed/'+s.id+"?autoplay=1&v="+s.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===s.type?i='<iframe src="//player.vimeo.com/video/'+s.id+'?autoplay=1" width="'+r+'" height="'+a+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===s.type&&(i='<iframe frameborder="0"height="'+a+'"width="'+r+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+s.id+'/player?autoplay=true"></iframe>'),t('<div class="owl-video-frame">'+i+"</div>").insertAfter(o.find(".owl-video")),this._playing=o.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function e(i){this.core=i,this.core.options=t.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),s&&o.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(s))}},o.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function e(i){this._core=i,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},e.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype.play=function(t,e){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},o.prototype._getNextTimeout=function(n,o){return this._timeout&&e.clearTimeout(this._timeout),e.setTimeout(t.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(o||this._core.settings.autoplaySpeed)},this),n||this._core.settings.autoplayTimeout)},o.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},o.prototype.stop=function(){this._core.is("rotating")&&(e.clearTimeout(this._timeout),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},o.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function e(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},o.prototype.initialize=function(){var e,i=this._core.settings;this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t("<div>").addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",t.proxy(function(e){var n=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(n,i.dotsSpeed)},this));for(e in this._overrides)this._core[e]=t.proxy(this[e],this)},o.prototype.destroy=function(){var t,e,i,n;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},o.prototype.update=function(){var t,e,i,n=this._core.clones().length/2,o=n+this._core.items().length,s=this._core.maximum(!0),r=this._core.settings,a=r.center||r.autoWidth||r.dotsData?1:r.dotsEach||r.items;if("page"!==r.slideBy&&(r.slideBy=Math.min(r.slideBy,r.items)),r.dots||"page"==r.slideBy)for(this._pages=[],t=n,e=0,i=0;t<o;t++){if(e>=a||0===e){if(this._pages.push({start:Math.min(s,t-n),end:t-n+a-1}),Math.min(s,t-n)===s)break;e=0,++i}e+=this._core.mergers(this._core.relative(t))}},o.prototype.draw=function(){var e,i=this._core.settings,n=this._core.items().length<=i.items,o=this._core.relative(this._core.current()),s=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!s&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!s&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},o.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},o.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t,i){return t.start<=e&&t.end>=e},this)).pop()},o.prototype.getPosition=function(e){var i,n,o=this._core.settings;return"page"==o.slideBy?(i=t.inArray(this.current(),this._pages),n=this._pages.length,e?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,e?i+=o.slideBy:i-=o.slideBy),i},o.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},o.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},o.prototype.to=function(e,i,n){var o;!n&&this._pages.length?(o=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%o+o)%o].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var o=function i(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),o=t.map(this._hashes,function(t,e){return t===n?e:null}).join();if(!o||e.location.hash.slice(1)===o)return;e.location.hash=o}},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(t){var i=e.location.hash.substring(1),n=this._core.$stage.children(),o=this._hashes[i]&&n.index(this._hashes[i]);void 0!==o&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var i,n;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){function o(e,i){var o=!1,s=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+a.join(s+" ")+s).split(" "),function(t,e){if(r[e]!==n)return o=!i||e,!1}),o}function s(t){return o(t,!0)}var r=t("<support>").get(0).style,a="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},c={csstransforms:function(){return!!o("transform")},csstransforms3d:function(){return!!o("perspective")},csstransitions:function(){return!!o("transition")},cssanimations:function(){return!!o("animation")}};c.csstransitions()&&(t.support.transition=new String(s("transition")),t.support.transition.end=l.transition.end[t.support.transition]),c.cssanimations()&&(t.support.animation=new String(s("animation")),t.support.animation.end=l.animation.end[t.support.animation]),c.csstransforms()&&(t.support.transform=new String(s("transform")),t.support.transform3d=c.csstransforms3d())}(window.Zepto||window.jQuery,window,document)},function(t,e,i){"use strict";var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,i){t.exports=i(3)}]);window.product=function(t){function e(e){for(var n,a,u=e[0],s=e[1],c=e[2],d=0,f=[];d<u.length;d++)a=u[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);for(l&&l(e);f.length;)f.shift()();return o.push.apply(o,c||[]),r()}function r(){for(var t,e=0;e<o.length;e++){for(var r=o[e],n=!0,u=1;u<r.length;u++){var s=r[u];0!==i[s]&&(n=!1)}n&&(o.splice(e--,1),t=a(a.s=r[0]))}return t}var n={},i={7:0,2:0,5:0},o=[];function a(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=t,a.c=n,a.d=function(t,e,r){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(r,n,function(e){return t[e]}.bind(null,n));return r},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="";var u=window.webpackJsonp_name_=window.webpackJsonp_name_||[],s=u.push.bind(u);u.push=e,u=u.slice();for(var c=0;c<u.length;c++)e(u[c]);var l=s;return o.push([432,0,1]),r()}({0:function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"d",(function(){return u})),r.d(e,"e",(function(){return s}));var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{s(n.next(t))}catch(t){o(t)}}function u(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,u)}s((n=n.apply(t,e||[])).next())}))}function u(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function s(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<r;e++)for(var o=arguments[e],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}},10:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(35)),i=o(r(30));function o(t){return t&&t.__esModule?t:{default:t}}
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var a=new n.default;window.WishlistEventBus=a,i.default.emit("wishlistEventBusInit"),e.default=a},101:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(0,o(r(21)).default)(["\n  mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n    removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n      success\n      message\n    }\n  }\n"],["\n  mutation removeFromList($listId: Int!, $productId: Int!, $productAttributeId: Int!, $url: String!) {\n    removeFromList(listId: $listId, productId: $productId, productAttributeId: $productAttributeId, url: $url) {\n      success\n      message\n    }\n  }\n"]),i=o(r(23));function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,i.default)(n)},104:function(t,e,r){"use strict";r.r(e),r.d(e,"ContentLoader",(function(){return a})),r.d(e,"BulletListLoader",(function(){return u})),r.d(e,"CodeLoader",(function(){return s})),r.d(e,"FacebookLoader",(function(){return c})),r.d(e,"ListLoader",(function(){return l})),r.d(e,"InstagramLoader",(function(){return d}));var n=r(34),i=r.n(n),o=function(){return Math.random().toString(36).substring(2)},a={name:"ContentLoader",functional:!0,props:{width:{type:[Number,String],default:400},height:{type:[Number,String],default:130},speed:{type:Number,default:2},preserveAspectRatio:{type:String,default:"xMidYMid meet"},baseUrl:{type:String,default:""},primaryColor:{type:String,default:"#f9f9f9"},secondaryColor:{type:String,default:"#ecebeb"},primaryOpacity:{type:Number,default:1},secondaryOpacity:{type:Number,default:1},uniqueKey:{type:String},animate:{type:Boolean,default:!0}},render:function(t,e){var r=e.props,n=e.data,a=e.children,u=r.uniqueKey?r.uniqueKey+"-idClip":o(),s=r.uniqueKey?r.uniqueKey+"-idGradient":o();return t("svg",i()([n,{attrs:{viewBox:"0 0 "+r.width+" "+r.height,version:"1.1",preserveAspectRatio:r.preserveAspectRatio}}]),[t("rect",{style:{fill:"url("+r.baseUrl+"#"+s+")"},attrs:{"clip-path":"url("+r.baseUrl+"#"+u+")",x:"0",y:"0",width:r.width,height:r.height}}),t("defs",[t("clipPath",{attrs:{id:u}},[a||t("rect",{attrs:{x:"0",y:"0",rx:"5",ry:"5",width:r.width,height:r.height}})]),t("linearGradient",{attrs:{id:s}},[t("stop",{attrs:{offset:"0%","stop-color":r.primaryColor,"stop-opacity":r.primaryOpacity}},[r.animate?t("animate",{attrs:{attributeName:"offset",values:"-2; 1",dur:r.speed+"s",repeatCount:"indefinite"}}):null]),t("stop",{attrs:{offset:"50%","stop-color":r.secondaryColor,"stop-opacity":r.secondaryOpacity}},[r.animate?t("animate",{attrs:{attributeName:"offset",values:"-1.5; 1.5",dur:r.speed+"s",repeatCount:"indefinite"}}):null]),t("stop",{attrs:{offset:"100%","stop-color":r.primaryColor,"stop-opacity":r.primaryOpacity}},[r.animate?t("animate",{attrs:{attributeName:"offset",values:"-1; 2",dur:r.speed+"s",repeatCount:"indefinite"}}):null])])])])}},u={name:"BulletListLoader",functional:!0,render:function(t,e){var r=e.data;return t(a,r,[t("circle",{attrs:{cx:"10",cy:"20",r:"8"}}),t("rect",{attrs:{x:"25",y:"15",rx:"5",ry:"5",width:"220",height:"10"}}),t("circle",{attrs:{cx:"10",cy:"50",r:"8"}}),t("rect",{attrs:{x:"25",y:"45",rx:"5",ry:"5",width:"220",height:"10"}}),t("circle",{attrs:{cx:"10",cy:"80",r:"8"}}),t("rect",{attrs:{x:"25",y:"75",rx:"5",ry:"5",width:"220",height:"10"}}),t("circle",{attrs:{cx:"10",cy:"110",r:"8"}}),t("rect",{attrs:{x:"25",y:"105",rx:"5",ry:"5",width:"220",height:"10"}})])}},s={name:"CodeLoader",functional:!0,render:function(t,e){var r=e.data;return t(a,r,[t("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"70",height:"10"}}),t("rect",{attrs:{x:"80",y:"0",rx:"3",ry:"3",width:"100",height:"10"}}),t("rect",{attrs:{x:"190",y:"0",rx:"3",ry:"3",width:"10",height:"10"}}),t("rect",{attrs:{x:"15",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),t("rect",{attrs:{x:"155",y:"20",rx:"3",ry:"3",width:"130",height:"10"}}),t("rect",{attrs:{x:"15",y:"40",rx:"3",ry:"3",width:"90",height:"10"}}),t("rect",{attrs:{x:"115",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),t("rect",{attrs:{x:"185",y:"40",rx:"3",ry:"3",width:"60",height:"10"}}),t("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"30",height:"10"}})])}},c={name:"FacebookLoader",functional:!0,render:function(t,e){var r=e.data;return t(a,r,[t("rect",{attrs:{x:"70",y:"15",rx:"4",ry:"4",width:"117",height:"6.4"}}),t("rect",{attrs:{x:"70",y:"35",rx:"3",ry:"3",width:"85",height:"6.4"}}),t("rect",{attrs:{x:"0",y:"80",rx:"3",ry:"3",width:"350",height:"6.4"}}),t("rect",{attrs:{x:"0",y:"100",rx:"3",ry:"3",width:"380",height:"6.4"}}),t("rect",{attrs:{x:"0",y:"120",rx:"3",ry:"3",width:"201",height:"6.4"}}),t("circle",{attrs:{cx:"30",cy:"30",r:"30"}})])}},l={name:"ListLoader",functional:!0,render:function(t,e){var r=e.data;return t(a,r,[t("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}}),t("rect",{attrs:{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}}),t("rect",{attrs:{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}}),t("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}}),t("rect",{attrs:{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}}),t("rect",{attrs:{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}})])}},d={name:"InstagramLoader",functional:!0,render:function(t,e){var r=e.data;return t(a,i()([r,{attrs:{height:480}}]),[t("circle",{attrs:{cx:"30",cy:"30",r:"30"}}),t("rect",{attrs:{x:"75",y:"13",rx:"4",ry:"4",width:"100",height:"13"}}),t("rect",{attrs:{x:"75",y:"37",rx:"4",ry:"4",width:"50",height:"8"}}),t("rect",{attrs:{x:"0",y:"70",rx:"5",ry:"5",width:"400",height:"400"}})])}}},105:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"wishlist-button-add",class:{"wishlist-button-product":this.isProduct},on:{click:this.addToWishlist}},[this.isChecked?e("i",{staticClass:"material-icons"},[this._v("favorite")]):e("i",{staticClass:"material-icons"},[this._v("favorite_border")])])},i=[];n._withStripped=!0},106:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"wishlist-chooselist"},[r("ul",{staticClass:"wishlist-list"},t._l(t.lists,(function(e){return r("li",{key:e.id_wishlist,staticClass:"wishlist-list-item",on:{click:function(r){return t.select(e.id_wishlist)}}},[r("p",[t._v("\n        "+t._s(e.name)+"\n      ")])])})),0),t._v(" "),t.$apollo.queries.lists.loading?r("ContentLoader",{staticClass:"wishlist-list-loader",attrs:{height:"105"}},[r("rect",{attrs:{x:"0",y:"12",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"36",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"84",rx:"3",ry:"0",width:"100%",height:"11"}})]):t._e(),t._v(" "),t.lists&&t.lists.length<=0&&!t.$apollo.queries.lists.loading?r("p",{staticClass:"wishlist-list-empty"},[t._v("\n    "+t._s(t.emptyText)+"\n  ")]):t._e()],1)},i=[];n._withStripped=!0},12:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},131:function(t,e,r){var n=r(208);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,r(17).default)("0e4dc420",n,!1,{})},132:function(t,e,r){"use strict";var n=o(r(19)),i=o(r(133));function o(t){return t&&t.__esModule?t:{default:t}}
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var a=[{name:"url",type:String},{name:"title",type:String},{name:"label",type:String},{name:"productId",type:Number},{name:"placeholder",type:String},{name:"cancelText",type:String},{name:"lengthText",type:String},{name:"createText",type:String}];(0,n.default)(i.default,".wishlist-create",a)},133:function(t,e,r){"use strict";r.r(e);var n=r(37);for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);r(135);var o=r(4),a=Object(o.a)(n.default,void 0,void 0,!1,null,null,null);a.options.__file="_dev/front/js/components/Create/Create.vue",e.default=a.exports},134:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(0,o(r(21)).default)(["\n  mutation createList($name: String!, $url: String!) {\n    createList(name: $name, url: $url) {\n      message\n      datas {\n        name\n        id_wishlist\n      }\n      success\n    }\n  }\n"],["\n  mutation createList($name: String!, $url: String!) {\n    createList(name: $name, url: $url) {\n      message\n      datas {\n        name\n        id_wishlist\n      }\n      success\n    }\n  }\n"]),i=o(r(23));function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,i.default)(n)},135:function(t,e,r){"use strict";r(83)},136:function(t,e,r){(e=r(16)(!1)).push([t.i,".wishlist-create .wishlist-modal{opacity:0;pointer-events:none;z-index:0}.wishlist-create .wishlist-modal.show{opacity:1;pointer-events:all;z-index:1053}\n",""]),t.exports=e},138:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(0,o(r(21)).default)(["\n  query lists($url: String!) {\n    lists(url: $url) {\n      id_wishlist\n      name\n      listUrl\n      shareUrl\n      nbProducts\n      default\n    }\n  }\n"],["\n  query lists($url: String!) {\n    lists(url: $url) {\n      id_wishlist\n      name\n      listUrl\n      shareUrl\n      nbProducts\n      default\n    }\n  }\n"]),i=o(r(23));function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,i.default)(n)},139:function(t,e,r){var n=r(219);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,r(17).default)("74f2cc0d",n,!1,{})},14:function(t,e,r){t.exports=r(31)},140:function(t,e,r){var n=r(221);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,r(17).default)("42165746",n,!1,{})},141:function(t,e,r){"use strict";var n=o(r(19)),i=o(r(142));function o(t){return t&&t.__esModule?t:{default:t}}
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var a=[{name:"renameWishlistText",type:String},{name:"createWishlistText",type:String},{name:"addedWishlistText",type:String},{name:"shareText",type:String},{name:"deleteWishlistText",type:String},{name:"deleteProductText",type:String},{name:"copyText",type:String}];(0,n.default)(i.default,".wishlist-toast",a)},142:function(t,e,r){"use strict";r.r(e);var n=r(62),i=r(39);for(var o in i)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r(143);var a=r(4),u=Object(a.a)(i.default,n.a,n.b,!1,null,null,null);u.options.__file="_dev/front/js/components/Toast/Toast.vue",e.default=u.exports},143:function(t,e,r){"use strict";r(84)},144:function(t,e,r){(e=r(16)(!1)).push([t.i,".wishlist-toast{padding:0.875rem 1.25rem;box-sizing:border-box;width:auto;border:1px solid #e5e5e5;border-radius:4px;background-color:#ffffff;box-shadow:0.125rem 0.125rem 0.625rem 0 rgba(0,0,0,0.2);position:fixed;right:1.25rem;z-index:9999;top:4.375rem;transition:0.2s ease-out;transform:translateY(-10px);pointer-events:none;opacity:0}.wishlist-toast.success{background-color:#69b92d;border-color:#69b92d}.wishlist-toast.success .wishlist-toast-text{color:white}.wishlist-toast.error{background-color:#b9312d;border-color:#b9312d}.wishlist-toast.error .wishlist-toast-text{color:white}.wishlist-toast.isActive{transform:translateY(0);pointer-events:all;opacity:1}.wishlist-toast-text{color:#232323;font-size:0.875rem;letter-spacing:0;line-height:1.1875rem;margin-bottom:0}\n",""]),t.exports=e},146:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(19)),i=o(r(206));function o(t){return t&&t.__esModule?t:{default:t}}
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var a=function(){var t=[{name:"url",type:String},{name:"checked",type:Boolean},{name:"productId",type:Number},{name:"productAttributeId",type:Number},{name:"isProduct",type:Boolean}];(0,n.default)(i.default,".wishlist-button",t)};a(),e.default=a},15:function(t,e,r){"use strict";e.__esModule=!0;var n,i=r(33),o=(n=i)&&n.__esModule?n:{default:n};e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default((function(t,r){return function n(i,a){try{var u=e[i](a),s=u.value}catch(t){return void r(t)}if(!u.done)return o.default.resolve(s).then((function(t){n("next",t)}),(function(t){n("throw",t)}));t(s)}("next")}))}}},16:function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=(a=n,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(s," */")),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([i]).join("\n")}var a,u,s;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var u=0;u<t.length;u++){var s=[].concat(t[u]);n&&i[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),e.push(s))}},e}},17:function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;i<e.length;i++){var o=e[i],a=o[0],u={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};n[a]?n[a].parts.push(u):r.push(n[a]={id:a,parts:[u]})}return r}r.r(e),r.d(e,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),u=null,s=0,c=!1,l=function(){},d=null,f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,r,i){c=r,d=i||{};var a=n(t,e);return h(a),function(e){for(var r=[],i=0;i<a.length;i++){var u=a[i];(s=o[u.id]).refs--,r.push(s)}e?h(a=n(t,e)):a=[];for(i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete o[s.id]}}}}function h(t){for(var e=0;e<t.length;e++){var r=t[e],n=o[r.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](r.parts[i]);for(;i<r.parts.length;i++)n.parts.push(v(r.parts[i]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(i=0;i<r.parts.length;i++)a.push(v(r.parts[i]));o[r.id]={id:r.id,refs:1,parts:a}}}}function y(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function v(t){var e,r,n=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(n){if(c)return l;n.parentNode.removeChild(n)}if(f){var i=s++;n=u||(u=y()),e=b.bind(null,n,i,!1),r=b.bind(null,n,i,!0)}else n=y(),e=w.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}var m,g=(m=[],function(t,e){return m[t]=e,m.filter(Boolean).join("\n")});function b(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=g(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function w(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),d.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},174:function(t,e,r){"use strict";r.r(e);var n=r(175),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e.default=i.a},175:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(10)),i=o(r(30));function o(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Login",props:{cancelText:{type:String,required:!0,default:"Cancel"},loginText:{type:String,required:!0,default:"Login"}},data:function(){return{value:"",isHidden:!0,listId:null,prestashop:i.default}},methods:{toggleModal:function(){this.isHidden=!this.isHidden}},mounted:function(){var t=this;n.default.$on("showLogin",(function(){t.toggleModal()}))}}},19:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u(r(42));e.default=function(t,e,r){i.default.use(o.default);var u=new o.default({defaultClient:a.default}),s=document.querySelectorAll(e),c=i.default.extend(t),l={};s.forEach((function(t){var e=!0,i=!1,o=void 0;try{for(var a,s=(0,n.default)(r);!(e=(a=s.next()).done);e=!0){var d=a.value;t.dataset[d.name]&&(d.type===Number?l[d.name]=parseInt(t.dataset[d.name],10):d.type===Boolean?l[d.name]="true"===t.dataset[d.name]:l[d.name]=t.dataset[d.name])}}catch(t){i=!0,o=t}finally{try{!e&&s.return&&s.return()}finally{if(i)throw o}}new c({el:t,delimiters:["((","))"],apolloProvider:u,propsData:l})}))}
/**
   * 2007-2020 PrestaShop and Contributors
   *
   * NOTICE OF LICENSE
   *
   * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
   * that is bundled with this package in the file LICENSE.txt.
   * It is also available through the world-wide-web at this URL:
   * https://opensource.org/licenses/AFL-3.0
   * If you did not receive a copy of the license and are unable to
   * obtain it through the world-wide-web, please send an email
   * to license@prestashop.com so we can send you a copy immediately.
   *
   * @author    PrestaShop SA <contact@prestashop.com>
   * @copyright 2007-2020 PrestaShop SA and Contributors
   * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
   * International Registered Trademark & Property of PrestaShop SA
   */;var i=u(r(35)),o=u(r(91)),a=u(r(44));function u(t){return t&&t.__esModule?t:{default:t}}},20:function(t,e,r){"use strict";var n=r(27),i=r.n(n).a;e.a=i},206:function(t,e,r){"use strict";r.r(e);var n=r(105),i=r(69);for(var o in i)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r(207);var a=r(4),u=Object(a.a)(i.default,n.a,n.b,!1,null,null,null);u.options.__file="_dev/front/js/components/Button/Button.vue",e.default=u.exports},207:function(t,e,r){"use strict";r(131)},208:function(t,e,r){(e=r(16)(!1)).push([t.i,".wishlist-button-product{margin-left:1.25rem}.wishlist-button-add{display:flex;align-items:center;justify-content:center;height:2.5rem;width:2.5rem;min-width:2.5rem;padding-top:0.1875rem;background-color:#ffffff;box-shadow:0.125rem -0.125rem 0.25rem 0 rgba(0,0,0,0.2);border-radius:50%;cursor:pointer;transition:0.2s ease-out;border:none}.wishlist-button-add:hover{opacity:0.7}.wishlist-button-add:focus{outline:0}.wishlist-button-add:active{transform:scale(1.2)}.wishlist-button-add i{color:#7a7a7a}\n",""]),t.exports=e},21:function(t,e,r){"use strict";e.__esModule=!0;var n=o(r(56)),i=o(r(57));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){return(0,i.default)((0,n.default)(t,{raw:{value:(0,i.default)(e)}}))}},214:function(t,e,r){"use strict";var n=o(r(19)),i=o(r(215));function o(t){return t&&t.__esModule?t:{default:t}}
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var a=[{name:"url",type:String}];(0,n.default)(i.default,".wishlist-add-to",a)},215:function(t,e,r){"use strict";r.r(e);var n=r(73);for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);r(220);var o=r(4),a=Object(o.a)(n.default,void 0,void 0,!1,null,null,null);a.options.__file="_dev/front/js/components/AddToWishlist/AddToWishlist.vue",e.default=a.exports},216:function(t,e,r){"use strict";r.r(e);var n=r(106),i=r(75);for(var o in i)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r(218);var a=r(4),u=Object(a.a)(i.default,n.a,n.b,!1,null,null,null);u.options.__file="_dev/front/js/components/ChooseList/ChooseList.vue",e.default=u.exports},217:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=(0,o(r(21)).default)(["\n  mutation addToList($listId: Int!, $productId: Int!, $quantity: Int!, $productAttributeId: Int!, $url: String!) {\n    addToList(\n      listId: $listId\n      productId: $productId\n      quantity: $quantity\n      productAttributeId: $productAttributeId\n      url: $url\n    ) {\n      success\n      message\n    }\n  }\n"],["\n  mutation addToList($listId: Int!, $productId: Int!, $quantity: Int!, $productAttributeId: Int!, $url: String!) {\n    addToList(\n      listId: $listId\n      productId: $productId\n      quantity: $quantity\n      productAttributeId: $productAttributeId\n      url: $url\n    ) {\n      success\n      message\n    }\n  }\n"]),i=o(r(23));function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,i.default)(n)},218:function(t,e,r){"use strict";r(139)},219:function(t,e,r){(e=r(16)(!1)).push([t.i,".wishlist-list{max-height:55vh;overflow-y:auto;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;margin:0}.wishlist-list-empty{font-size:30;text-align:center;padding:30px;padding-bottom:1.25rem;font-weight:bold;color:#000}.wishlist-list .wishlist-list-item{padding:0.875rem 0;transition:0.25s ease-out;cursor:pointer;margin-bottom:0}.wishlist-list .wishlist-list-item:hover{background:#ecf8fb}.wishlist-list .wishlist-list-item p{font-size:0.875rem;letter-spacing:0;color:#232323;margin-bottom:0;line-height:1rem;padding:0 2.5rem}\n",""]),t.exports=e},22:function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var s,c=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?c=s.concat(c):d=-1,c.length&&p())}function p(){if(!l){var t=u(f);l=!0;for(var e=c.length;e;){for(s=c,c=[];++d<e;)s&&s[d].run();d=-1,e=c.length}s=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new h(t,e)),1!==c.length||l||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},220:function(t,e,r){"use strict";r(140)},221:function(t,e,r){(e=r(16)(!1)).push([t.i,".wishlist-add-to-new{cursor:pointer;transition:0.2s ease-out;font-size:0.875rem;letter-spacing:0;line-height:1rem}.wishlist-add-to-new:hover{opacity:0.7}.wishlist-add-to-new i{margin-right:0.3125rem;vertical-align:middle;color:#2fb5d2;margin-top:-0.125rem;font-size:1.25rem}.wishlist-add-to .modal-body{padding:0}.wishlist-add-to .modal-footer{text-align:left;padding:0.75rem 1.25rem}\n",""]),t.exports=e},24:function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},25:function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},26:function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}r.d(e,"a",(function(){return n}))},27:function(t,e,r){t.exports=r(46).Observable},29:function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=new Map;function u(t,e){try{return function t(e,r){if(e===r)return!0;var n=i.call(e),a=i.call(r);if(n!==a)return!1;switch(n){case"[object Array]":if(e.length!==r.length)return!1;case"[object Object]":if(s(e,r))return!0;var u=Object.keys(e),c=Object.keys(r),l=u.length;if(l!==c.length)return!1;for(var d=0;d<l;++d)if(!o.call(r,u[d]))return!1;for(d=0;d<l;++d){var f=u[d];if(!t(e[f],r[f]))return!1}return!0;case"[object Error]":return e.name===r.name&&e.message===r.message;case"[object Number]":if(e!=e)return r!=r;case"[object Boolean]":case"[object Date]":return+e==+r;case"[object RegExp]":case"[object String]":return e==""+r;case"[object Map]":case"[object Set]":if(e.size!==r.size)return!1;if(s(e,r))return!0;for(var p=e.entries(),h="[object Map]"===n;;){var y=p.next();if(y.done)break;var v=y.value,m=v[0],g=v[1];if(!r.has(m))return!1;if(h&&!t(g,r.get(m)))return!1}return!0}return!1}(t,e)}finally{a.clear()}}function s(t,e){var r=a.get(t);if(r){if(r.has(e))return!0}else a.set(t,r=new Set);return r.add(e),!1}},3:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return u}));var n=r(0),i=Object.setPrototypeOf,o=void 0===i?function(t,e){return t.__proto__=e,t}:i,a=function(t){function e(r){void 0===r&&(r="Invariant Violation");var n=t.call(this,"number"==typeof r?"Invariant Violation: "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name="Invariant Violation",o(n,e.prototype),n}return Object(n.c)(e,t),e}(Error);function u(t,e){if(!t)throw new a(e)}function s(t){return function(){return console[t].apply(console,arguments)}}!function(t){t.warn=s("warn"),t.error=s("error")}(u||(u={}));var c={env:{}};if("object"==typeof t)c=t;else try{Function("stub","process = stub")(c)}catch(t){}}).call(this,r(22))},30:function(t,e){t.exports=window.prestashop},308:function(t,e,r){var n=r(438);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,r(17).default)("24c92fe5",n,!1,{})},31:function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(32),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},32:function(t,e){!function(e){"use strict";var r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",s="object"==typeof t,c=e.regeneratorRuntime;if(c)s&&(t.exports=c);else{(c=e.regeneratorRuntime=s?t.exports:{}).wrap=y;var l={},d={};d[o]=function(){return this};var f=Object.getPrototypeOf,p=f&&f(f(k([])));p&&p!==r&&n.call(p,o)&&(d=p);var h=b.prototype=m.prototype=Object.create(d);g.prototype=h.constructor=b,b.constructor=g,b[u]=g.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(h),t},c.awrap=function(t){return{__await:t}},w(_.prototype),_.prototype[a]=function(){return this},c.AsyncIterator=_,c.async=function(t,e,r,n){var i=new _(y(t,e,r,n));return c.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(h),h[u]="Generator",h[o]=function(){return this},h.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},c.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,l):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),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}}}function y(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return T()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=v(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===l)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),o}function v(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function m(){}function g(){}function b(){}function w(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function _(t){var e;this._invoke=function(r,i){function o(){return new Promise((function(e,o){!function e(r,i,o,a){var u=v(t[r],t,i);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){s.value=t,o(s)}),a)}a(u.arg)}(r,i,e,o)}))}return e=e?e.then(o,o):o()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=v(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function I(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}}(function(){return this}()||Function("return this")())},33:function(t,e,r){t.exports={default:r(82),__esModule:!0}},34:function(t,e){var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,u,s;for(a in e)if(i=t[a],o=e[a],i&&r.test(a))if("class"===a&&("string"==typeof i&&(s=i,t[a]=i={},i[s]=!0),"string"==typeof o&&(s=o,e[a]=o={},o[s]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(u in o)i[u]=n(i[u],o[u]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(u in o)i[u]=o[u];else t[a]=e[a];return t}),{})}},36:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={addToCart:{Accept:"application/json, text/javascript"},products:{"Content-Type":"application/json",Accept:"application/json, text/javascript, */*; q=0.01"}}},37:function(t,e,r){"use strict";r.r(e);var n=r(38),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e.default=i.a},38:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=s(r(14)),o=s(r(15)),a=s(r(134)),u=s(r(10));function s(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Create",props:{url:{type:String,required:!0,default:"#"},title:{type:String,required:!0,default:"New wishlist"},label:{type:String,required:!0,default:"Wishlist name"},placeholder:{type:String,required:!0,default:"Add name"},cancelText:{type:String,required:!0,default:"Cancel"},lengthText:{type:String,required:!0,default:"List title is too short"},createText:{type:String,required:!0,default:"Create"}},data:function(){return{value:"",isHidden:!0}},methods:{toggleModal:function(){this.isHidden=!this.isHidden},createWishlist:(n=(0,o.default)(i.default.mark((function t(){var e,r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(this.value.replace(/ /g,"")<1)){t.next=4;break}return u.default.$emit("showToast",{detail:{type:"error",message:this.lengthText}}),t.abrupt("return",!1);case 4:return t.next=6,this.$apollo.mutate({mutation:a.default,variables:{name:this.value,url:this.url}});case 6:return e=t.sent,r=e.data,u.default.$emit("showToast",{detail:{type:r.createList.success?"success":"error",message:r.createList.message}}),u.default.$emit("refetchList"),this.toggleModal(),u.default.$emit("showAddToWishList",{detail:{forceOpen:!0}}),t.abrupt("return",!0);case 13:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},mounted:function(){var t=this;u.default.$on("showCreateWishlist",(function(){t.value="",t.toggleModal()}))}}},39:function(t,e,r){"use strict";r.r(e);var n=r(40),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e.default=i.a},4:function(t,e,r){"use strict";function n(t,e,r,n,i,o,a,u){var s,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):i&&(s=u?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(t,e){return s.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,s):[s]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},40:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(10),o=(n=i)&&n.__esModule?n:{default:n};e.default={name:"Button",props:{renameWishlistText:{type:String,required:!0},addedWishlistText:{type:String,required:!0},deleteWishlistText:{type:String,required:!0},createWishlistText:{type:String,required:!0},deleteProductText:{type:String,required:!0},copyText:{type:String,required:!0}},data:function(){return{text:"",active:!1,timeout:null,type:"basic"}},mounted:function(){var t=this;o.default.$on("showToast",(function(e){e.detail.message&&(t[e.detail.message]?t.text=t[e.detail.message]:t.text=e.detail.message),t.active=!0,t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout((function(){t.active=!1,t.timeout=null}),2500),t.type=e.detail.type?e.detail.type:"basic"}))}}},41:function(t,e,r){"use strict";r.d(e,"a",(function(){return T})),r.d(e,"b",(function(){return M}));var n=null,i={},o=1,a=Array,u=a["@wry/context:Slot"]||function(){var t=function(){function t(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var t=n;t;t=t.parent)if(this.id in t.slots){var e=t.slots[this.id];if(e===i)break;return t!==n&&(n.slots[this.id]=e),!0}return n&&(n.slots[this.id]=i),!1},t.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},t.prototype.withValue=function(t,e,r,i){var o,a=((o={__proto__:null})[this.id]=t,o),u=n;n={parent:u,slots:a};try{return e.apply(i,r)}finally{n=u}},t.bind=function(t){var e=n;return function(){var r=n;try{return n=e,t.apply(this,arguments)}finally{n=r}}},t.noContext=function(t,e,r){if(!n)return t.apply(r,e);var i=n;try{return n=null,t.apply(r,e)}finally{n=i}},t}();try{Object.defineProperty(a,"@wry/context:Slot",{value:a["@wry/context:Slot"]=t,enumerable:!1,writable:!1,configurable:!1})}finally{return t}}();u.bind,u.noContext;function s(){}var c=function(){function t(t,e){void 0===t&&(t=1/0),void 0===e&&(e=s),this.max=t,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(t){return this.map.has(t)},t.prototype.get=function(t){var e=this.getEntry(t);return e&&e.value},t.prototype.getEntry=function(t){var e=this.map.get(t);if(e&&e!==this.newest){var r=e.older,n=e.newer;n&&(n.older=r),r&&(r.newer=n),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=n)}return e},t.prototype.set=function(t,e){var r=this.getEntry(t);return r?r.value=e:(r={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(t){var e=this.map.get(t);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(t),this.dispose(e.value,t),!0)},t}(),l=new u,d=[],f=[];function p(t,e){if(!t)throw new Error(e||"assertion failure")}function h(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var y=function(){function t(e,r){this.fn=e,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++t.count}return t.prototype.recompute=function(){if(p(!this.recomputing,"already recomputing"),function(t){var e=l.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),m(t)?w(e,t):_(e,t),e}(this)||!I(this))return m(this)?function(t){var e=S(t);l.withValue(t,v,[t]),function(t){if("function"==typeof t.subscribe)try{k(t),t.unsubscribe=t.subscribe.apply(null,t.args)}catch(e){return t.setDirty(),!1}return!0}(t)&&function(t){if(t.dirty=!1,m(t))return;b(t)}(t);return e.forEach(I),h(t.value)}(this):h(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,g(this),k(this))},t.prototype.dispose=function(){var t=this;S(this).forEach(I),k(this),this.parents.forEach((function(e){e.setDirty(),O(e,t)}))},t.count=0,t}();function v(t){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,t.args)}catch(e){t.value[1]=e}t.recomputing=!1}function m(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function g(t){t.parents.forEach((function(e){return w(e,t)}))}function b(t){t.parents.forEach((function(e){return _(e,t)}))}function w(t,e){if(p(t.childValues.has(e)),p(m(e)),t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=f.pop()||new Set;t.dirtyChildren.add(e),g(t)}function _(t,e){p(t.childValues.has(e)),p(!m(e));var r,n,i,o=t.childValues.get(e);0===o.length?t.childValues.set(e,e.value.slice(0)):(r=o,n=e.value,(i=r.length)>0&&i===n.length&&r[i-1]===n[i-1]||t.setDirty()),x(t,e),m(t)||b(t)}function x(t,e){var r=t.dirtyChildren;r&&(r.delete(e),0===r.size&&(f.length<100&&f.push(r),t.dirtyChildren=null))}function I(t){return 0===t.parents.size&&"function"==typeof t.reportOrphan&&!0===t.reportOrphan()}function S(t){var e=d;return t.childValues.size>0&&(e=[],t.childValues.forEach((function(r,n){O(t,n),e.push(n)}))),p(null===t.dirtyChildren),e}function O(t,e){e.parents.delete(t),t.childValues.delete(e),x(t,e)}function k(t){var e=t.unsubscribe;"function"==typeof e&&(t.unsubscribe=void 0,e())}var T=function(){function t(t){this.weakness=t}return t.prototype.lookup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.lookupArray(t)},t.prototype.lookupArray=function(t){var e=this;return t.forEach((function(t){return e=e.getChildTrie(t)})),e.data||(e.data=Object.create(null))},t.prototype.getChildTrie=function(e){var r=this.weakness&&function(t){switch(typeof t){case"object":if(null===t)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(e);return n||r.set(e,n=new t(this.weakness)),n},t}();var j=new T("function"==typeof WeakMap);function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return j.lookupArray(t)}var C=new Set;function M(t,e){void 0===e&&(e=Object.create(null));var r=new c(e.max||Math.pow(2,16),(function(t){return t.dispose()})),n=!!e.disposable,i=e.makeCacheKey||L;function o(){if(!n||l.hasValue()){var o=i.apply(null,arguments);if(void 0===o)return t.apply(null,arguments);var a=Array.prototype.slice.call(arguments),u=r.get(o);u?u.args=a:(u=new y(t,a),r.set(o,u),u.subscribe=e.subscribe,n&&(u.reportOrphan=function(){return r.delete(o)}));var s=u.recompute();return r.set(o,u),C.add(r),l.hasValue()||(C.forEach((function(t){return t.clean()})),C.clear()),n?void 0:s}}return o.dirty=function(){var t=i.apply(null,arguments),e=void 0!==t&&r.get(t);e&&e.setDirty()},o}},42:function(t,e,r){t.exports={default:r(88),__esModule:!0}},43:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,i,o,a,u,s=1,c={},l=!1,d=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},n=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,n=function(t){var e=d.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(h,0,t)}:(a="setImmediate$"+Math.random()+"$",u=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&h(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",u,!1):t.attachEvent("onmessage",u),n=function(e){t.postMessage(a+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return c[s]=i,n(s),s++},f.clearImmediate=p}function p(t){delete c[t]}function h(t){if(l)setTimeout(h,0,t);else{var e=c[t];if(e){l=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{p(t),l=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,r(12),r(22))},432:function(t,e,r){r(433),r(146),r(141),r(435),r(132),t.exports=r(214)},433:function(t,e,r){"use strict";var n=o(r(146)),i=o(r(434));function o(t){return t&&t.__esModule?t:{default:t}}
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var a=function(){document.querySelectorAll(".js-product-miniature").forEach((function(t){var e=document.createElement("div");e.classList.add("wishlist-button"),e.dataset.productId=t.dataset.idProduct,e.dataset.url=i.default,e.dataset.productAttributeId=t.dataset.idProductAttribute,e.dataset.checked=!1,t.querySelector(".thumbnail-container").append(e)}))};a(),(0,n.default)();var u=document.querySelectorAll("#products, .featured-products"),s={attributes:!1,childList:!0};u.forEach((function(t){new MutationObserver((function(){a(),(0,n.default)()})).observe(t,s)}))},434:function(t,e){t.exports=window.removeFromWishlistUrl},435:function(t,e,r){"use strict";var n=o(r(19)),i=o(r(436));function o(t){return t&&t.__esModule?t:{default:t}}
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */var a=[{name:"loginText",type:String},{name:"cancelText",type:String}];(0,n.default)(i.default,".wishlist-login",a)},436:function(t,e,r){"use strict";r.r(e);var n=r(174);for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);r(437);var o=r(4),a=Object(o.a)(n.default,void 0,void 0,!1,null,null,null);a.options.__file="_dev/front/js/components/Login/Login.vue",e.default=a.exports},437:function(t,e,r){"use strict";r(308)},438:function(t,e,r){(e=r(16)(!1)).push([t.i,".wishlist-login .wishlist-modal{z-index:0}.wishlist-login .wishlist-modal.show{z-index:1053}\n",""]),t.exports=e},44:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(92),o=r(93),a=r(96),u=r(51),s=(n=u)&&n.__esModule?n:{default:n};
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */
var c=new a.InMemoryCache;e.default=new i.ApolloClient({link:new o.SchemaLink({schema:s.default}),cache:c})},45:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},46:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.Observable=void 0;var a=function(){return"function"==typeof Symbol},u=function(t){return a()&&Boolean(Symbol[t])},s=function(t){return u(t)?Symbol[t]:"@@"+t};a()&&!u("observable")&&(Symbol.observable=Symbol("observable"));var c=s("iterator"),l=s("observable"),d=s("species");function f(t,e){var r=t[e];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function p(t){var e=t.constructor;return void 0!==e&&null===(e=e[d])&&(e=void 0),void 0!==e?e:I}function h(t){return t instanceof I}function y(t){y.log?y.log(t):setTimeout((function(){throw t}))}function v(t){Promise.resolve().then((function(){try{t()}catch(t){y(t)}}))}function m(t){var e=t._cleanup;if(void 0!==e&&(t._cleanup=void 0,e))try{if("function"==typeof e)e();else{var r=f(e,"unsubscribe");r&&r.call(e)}}catch(t){y(t)}}function g(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function b(t,e,r){t._state="running";var n=t._observer;try{var i=f(n,e);switch(e){case"next":i&&i.call(n,r);break;case"error":if(g(t),!i)throw r;i.call(n,r);break;case"complete":g(t),i&&i.call(n)}}catch(t){y(t)}"closed"===t._state?m(t):"running"===t._state&&(t._state="ready")}function w(t,e,r){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:e,value:r}],void v((function(){return function(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var r=0;r<e.length&&(b(t,e[r].type,e[r].value),"closed"!==t._state);++r);}}(t)}))):void b(t,e,r);t._queue.push({type:e,value:r})}}var _=function(){function t(e,r){n(this,t),this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var i=new x(this);try{this._cleanup=r.call(void 0,i)}catch(t){i.error(t)}"initializing"===this._state&&(this._state="ready")}return o(t,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(g(this),m(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),t}(),x=function(){function t(e){n(this,t),this._subscription=e}return o(t,[{key:"next",value:function(t){w(this._subscription,"next",t)}},{key:"error",value:function(t){w(this._subscription,"error",t)}},{key:"complete",value:function(){w(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),I=function(){function t(e){if(n(this,t),!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return o(t,[{key:"subscribe",value:function(t){return"object"==typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new _(t,this._subscriber)}},{key:"forEach",value:function(t){var e=this;return new Promise((function(r,n){if("function"==typeof t)var i=e.subscribe({next:function(e){try{t(e,o)}catch(t){n(t),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(t+" is not a function"));function o(){i.unsubscribe(),r()}}))}},{key:"map",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(p(this))((function(r){return e.subscribe({next:function(e){try{e=t(e)}catch(t){return r.error(t)}r.next(e)},error:function(t){r.error(t)},complete:function(){r.complete()}})}))}},{key:"filter",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(p(this))((function(r){return e.subscribe({next:function(e){try{if(!t(e))return}catch(t){return r.error(t)}r.next(e)},error:function(t){r.error(t)},complete:function(){r.complete()}})}))}},{key:"reduce",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var r=p(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r((function(r){return e.subscribe({next:function(e){var o=!i;if(i=!0,!o||n)try{a=t(a,e)}catch(t){return r.error(t)}else a=e},error:function(t){r.error(t)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=p(this);return new i((function(e){var n,o=0;return function t(a){n=a.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){o===r.length?(n=void 0,e.complete()):t(i.from(r[o++]))}})}(t),function(){n&&(n.unsubscribe(),n=void 0)}}))}},{key:"flatMap",value:function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var r=p(this);return new r((function(n){var i=[],o=e.subscribe({next:function(e){if(t)try{e=t(e)}catch(t){return n.error(t)}var o=r.from(e).subscribe({next:function(t){n.next(t)},error:function(t){n.error(t)},complete:function(){var t=i.indexOf(o);t>=0&&i.splice(t,1),a()}});i.push(o)},error:function(t){n.error(t)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(t){return t.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(e){var r="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var n=f(e,l);if(n){var i=n.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===r?i:new r((function(t){return i.subscribe(t)}))}if(u("iterator")&&(n=f(e,c)))return new r((function(t){v((function(){if(!t.closed){var r=!0,i=!1,o=void 0;try{for(var a,u=n.call(e)[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var s=a.value;if(t.next(s),t.closed)return}}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}t.complete()}}))}));if(Array.isArray(e))return new r((function(t){v((function(){if(!t.closed){for(var r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i="function"==typeof this?this:t;return new i((function(t){v((function(){if(!t.closed){for(var e=0;e<r.length;++e)if(t.next(r[e]),t.closed)return;t.complete()}}))}))}},{key:d,get:function(){return this}}]),t}();e.Observable=I,a()&&Object.defineProperty(I,Symbol("extensions"),{value:{symbol:l,hostReportError:y},configurable:!0})},47:function(t,e,r){"use strict";r.r(e),r.d(e,"$$iterator",(function(){return o})),r.d(e,"isIterable",(function(){return a})),r.d(e,"isArrayLike",(function(){return u})),r.d(e,"isCollection",(function(){return s})),r.d(e,"getIterator",(function(){return c})),r.d(e,"getIteratorMethod",(function(){return l})),r.d(e,"createIterator",(function(){return d})),r.d(e,"forEach",(function(){return p})),r.d(e,"$$asyncIterator",(function(){return y})),r.d(e,"isAsyncIterable",(function(){return v})),r.d(e,"getAsyncIterator",(function(){return m})),r.d(e,"getAsyncIteratorMethod",(function(){return g})),r.d(e,"createAsyncIterator",(function(){return b})),r.d(e,"forAwaitEach",(function(){return x}));var n="function"==typeof Symbol?Symbol:void 0,i=n&&n.iterator,o=i||"@@iterator";function a(t){return!!l(t)}function u(t){var e=null!=t&&t.length;return"number"==typeof e&&e>=0&&e%1==0}function s(t){return Object(t)===t&&(u(t)||a(t))}function c(t){var e=l(t);if(e)return e.call(t)}function l(t){if(null!=t){var e=i&&t[i]||t["@@iterator"];if("function"==typeof e)return e}}function d(t){if(null!=t){var e=c(t);if(e)return e;if(u(t))return new f(t)}}function f(t){this._o=t,this._i=0}function p(t,e,r){if(null!=t){if("function"==typeof t.forEach)return t.forEach(e,r);var n=0,i=c(t);if(i){for(var o;!(o=i.next()).done;)if(e.call(r,o.value,n++,t),n>9999999)throw new TypeError("Near-infinite iteration.")}else if(u(t))for(;n<t.length;n++)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}}f.prototype[o]=function(){return this},f.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var h=n&&n.asyncIterator,y=h||"@@asyncIterator";function v(t){return!!g(t)}function m(t){var e=g(t);if(e)return e.call(t)}function g(t){if(null!=t){var e=h&&t[h]||t["@@asyncIterator"];if("function"==typeof e)return e}}function b(t){if(null!=t){var e=m(t);if(e)return e;var r=d(t);if(r)return new w(r)}}function w(t){this._i=t}function _(t,e,r){var n;return new Promise((function(i){i((n=t[e](r)).value)})).then((function(t){return{value:t,done:n.done}}))}function x(t,e,r){var n=b(t);if(n){var i=0;return new Promise((function(o,a){!function u(){return n.next().then((function(n){return n.done?o():Promise.resolve(e.call(r,n.value,i++,t)).then(u).catch(a),null})).catch(a),null}()}))}}w.prototype[y]=function(){return this},w.prototype.next=function(t){return _(this._i,"next",t)},w.prototype.return=function(t){return this._i.return?_(this._i,"return",t):Promise.resolve({value:t,done:!0})},w.prototype.throw=function(t){return this._i.throw?_(this._i,"throw",t):Promise.reject(t)}},51:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(97),i=a(r(54)),o=a(r(55));function a(t){return t&&t.__esModule?t:{default:t}}e.default=(0,n.makeExecutableSchema)({typeDefs:o.default,resolvers:i.default})},52:function(t,e,r){var n,i,o=r(24),a=r(25),u=0,s=0;t.exports=function(t,e,r){var c=e&&r||0,l=e||[],d=(t=t||{}).node||n,f=void 0!==t.clockseq?t.clockseq:i;if(null==d||null==f){var p=o();null==d&&(d=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=i=16383&(p[6]<<8|p[7]))}var h=void 0!==t.msecs?t.msecs:(new Date).getTime(),y=void 0!==t.nsecs?t.nsecs:s+1,v=h-u+(y-s)/1e4;if(v<0&&void 0===t.clockseq&&(f=f+1&16383),(v<0||h>u)&&void 0===t.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,s=y,i=f;var m=(1e4*(268435455&(h+=122192928e5))+y)%4294967296;l[c++]=m>>>24&255,l[c++]=m>>>16&255,l[c++]=m>>>8&255,l[c++]=255&m;var g=h/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var b=0;b<6;++b)l[c+b]=d[b];return e||a(l)}},53:function(t,e,r){var n=r(24),i=r(25);t.exports=function(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var u=0;u<16;++u)e[o+u]=a[u];return e||i(a)}},54:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i,o,a,u,s,c,l=v(r(14)),d=v(r(15)),f=v(r(10)),p=v(r(36)),h=r(100),y=v(h);function v(t){return t&&t.__esModule?t:{default:t}}e.default={JSON:y.default,JSONObject:h.GraphQLJSONObject,Query:{products:(c=(0,d.default)(l.default.mark((function t(e,r){var n,i,o=r.url;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(o+"&from-xhr",{headers:p.default.products});case 2:return n=t.sent,t.next=5,n.json();case 5:return i=t.sent,f.default.$emit("paginate",{detail:{total:i.pagination.total_items,minShown:i.pagination.items_shown_from,maxShown:i.pagination.items_shown_to,pageNumber:i.pagination.pages_count,pages:i.pagination.pages,display:i.pagination.should_be_displayed,currentPage:i.pagination.current_page}}),window.history.pushState(i,document.title,i.current_url),window.scrollTo(0,0),t.abrupt("return",{datas:{products:i.products,pagination:i.pagination,current_url:i.current_url,sort_orders:i.sort_orders,sort_selected:i.sort_selected}});case 10:case"end":return t.stop()}}),t,void 0)}))),function(t,e){return c.apply(this,arguments)}),lists:(s=(0,d.default)(l.default.mark((function t(e,r){var n,i,o=r.url;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(o);case 2:return n=t.sent,t.next=5,n.json();case 5:return i=t.sent,t.abrupt("return",i.wishlists);case 7:case"end":return t.stop()}}),t,void 0)}))),function(t,e){return s.apply(this,arguments)})},Mutation:{createList:(u=(0,d.default)(l.default.mark((function t(e,r){var n,i,o,a=r.name,u=r.url;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=encodeURIComponent(a),t.next=3,fetch(u+"&params[name]="+n,{method:"POST"});case 3:return i=t.sent,t.next=6,i.json();case 6:return o=t.sent,t.abrupt("return",o);case 8:case"end":return t.stop()}}),t,void 0)}))),function(t,e){return u.apply(this,arguments)}),renameList:(a=(0,d.default)(l.default.mark((function t(e,r){var n,i,o=r.name,a=r.listId,u=r.url;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(u+"&params[name]="+o+"&params[idWishList]="+a,{method:"POST"});case 2:return n=t.sent,t.next=5,n.json();case 5:return i=t.sent,t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,void 0)}))),function(t,e){return a.apply(this,arguments)}),addToList:(o=(0,d.default)(l.default.mark((function t(e,r){var n,i,o=r.listId,a=r.url,u=r.productId,s=r.quantity,c=r.productAttributeId;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(a+"&params[id_product]="+u+"&params[idWishList]="+o+"&params[quantity]="+s+"&params[id_product_attribute]="+c,{method:"POST"});case 2:return n=t.sent,t.next=5,n.json();case 5:return(i=t.sent).success&&productsAlreadyTagged.push({id_product:u.toString(),id_wishlist:o.toString(),quantity:s.toString(),id_product_attribute:c.toString()}),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,void 0)}))),function(t,e){return o.apply(this,arguments)}),removeFromList:(i=(0,d.default)(l.default.mark((function t(e,r){var n,i,o=r.listId,a=r.productId,u=r.url,s=r.productAttributeId;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(u+"&params[id_product]="+a+"&params[idWishList]="+o+"&params[id_product_attribute]="+s,{method:"POST"});case 2:return n=t.sent,t.next=5,n.json();case 5:return(i=t.sent).success&&(productsAlreadyTagged=productsAlreadyTagged.filter((function(t){return t.id_product!==a.toString()||t.id_product_attribute!==s.toString()&&t.id_product===a.toString()||t.id_wishlist!==o.toString()}))),t.abrupt("return",i);case 8:case"end":return t.stop()}}),t,void 0)}))),function(t,e){return i.apply(this,arguments)}),deleteList:(n=(0,d.default)(l.default.mark((function t(e,r){var n,i,o=r.listId,a=r.url;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(a+"&params[idWishList]="+o,{method:"POST"});case 2:return n=t.sent,t.next=5,n.json();case 5:return i=t.sent,t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,void 0)}))),function(t,e){return n.apply(this,arguments)})}}},55:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),
/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */
e.default="\n  scalar JSON\n  scalar JSONObject\n\n  type List {\n    id_wishlist: Int\n    name: String\n    listUrl: String\n    shareUrl: String\n    default: Int\n    nbProducts: Int\n  }\n\n  type ShareUrl {\n    url: String\n  }\n\n  type CreateResponse {\n    datas: List\n    success: Boolean!\n    message: String!\n  }\n\n  type ProductListResponse {\n    datas: JSONObject\n  }\n\n  type Response {\n    success: Boolean!\n    message: String!\n  }\n\n  type Query {\n    products(listId: Int!, url: String!): ProductListResponse\n    lists(url: String!): [List]\n  }\n\n  type Mutation {\n    createList(name: String!, url: String!): CreateResponse\n    shareList(listId: String!, userId: Int!): ShareUrl\n    renameList(name: String!, url: String!, listId: Int!): Response\n    addToList(listId: Int!, productId: Int!, quantity: Int!, productAttributeId: Int!, url: String!): Response\n    removeFromList(listId: Int!, productId: Int!, productAttributeId: Int!, url: String!): Response\n    deleteList(listId: Int!, url: String!): Response\n  }\n"},56:function(t,e,r){t.exports={default:r(102),__esModule:!0}},57:function(t,e,r){t.exports={default:r(103),__esModule:!0}},62:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"wishlist-toast",class:[{isActive:this.active},this.type]},[e("p",{staticClass:"wishlist-toast-text"},[this._v("\n    "+this._s(this.text)+"\n  ")])])},i=[];n._withStripped=!0},69:function(t,e,r){"use strict";r.r(e);var n=r(70),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e.default=i.a},70:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=c(r(14)),o=c(r(15)),a=c(r(101)),u=c(r(30)),s=c(r(10));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"Button",props:{url:{type:String,required:!0,default:"#"},productId:{type:Number,required:!0,default:null},productAttributeId:{type:Number,required:!0,default:null},checked:{type:Boolean,required:!1,default:!1},isProduct:{type:Boolean,required:!1,default:!1}},data:function(){return{isChecked:"true"===this.checked,idList:this.listId}},methods:{toggleCheck:function(){this.isChecked=!this.isChecked},addToWishlist:(n=(0,o.default)(i.default.mark((function t(e){var r,n,o,c;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),r=document.querySelector(".product-quantity input#quantity_wanted"),u.default.customer.is_logged){t.next=5;break}return s.default.$emit("showLogin"),t.abrupt("return");case 5:if(this.isChecked){t.next=9;break}s.default.$emit("showAddToWishList",{detail:{productId:this.productId,productAttributeId:parseInt(this.productAttributeId,10),forceOpen:!0,quantity:r?parseInt(r.value,10):0}}),t.next=16;break;case 9:return t.next=11,this.$apollo.mutate({mutation:a.default,variables:{productId:this.productId,url:this.url,productAttributeId:this.productAttributeId,listId:this.idList?this.idList:this.listId}});case 11:n=t.sent,o=n.data,c=o.removeFromList,s.default.$emit("showToast",{detail:{type:c.success?"success":"error",message:c.message}}),c.error||this.toggleCheck();case 16:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},mounted:function(){var t=this;s.default.$on("addedToWishlist",(function(e){e.detail.productId===t.productId&&parseInt(e.detail.productAttributeId,10)===t.productAttributeId&&(t.isChecked=!0,t.idList=e.detail.listId)}));var e=productsAlreadyTagged.filter((function(e){return parseInt(e.id_product,10)===t.productId&&parseInt(e.id_product_attribute,10)===t.productAttributeId}));e.length>0&&(this.isChecked=!0,this.idList=parseInt(e[0].id_wishlist,10)),this.isProduct&&(u.default.on("updateProduct",(function(e){"updatedProductQuantity"===e.eventType&&(t.isChecked=!1)})),u.default.on("updatedProduct",(function(e){var r=document.querySelector(".product-quantity input#quantity_wanted");t.productAttributeId=parseInt(e.id_product_attribute,10);var n=productsAlreadyTagged.filter((function(e){return parseInt(e.id_product,10)===t.productId&&e.quantity.toString()===r.value&&parseInt(e.id_product_attribute,10)===t.productAttributeId}));n.length>0?(t.isChecked=!0,t.idList=parseInt(n[0].id_wishlist,10)):t.isChecked=!1})))}}},73:function(t,e,r){"use strict";r.r(e);var n=r(74),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e.default=i.a},74:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(10)),i=o(r(216));function o(t){return t&&t.__esModule?t:{default:t}}e.default={name:"AddToWishlist",components:{ChooseList:i.default},props:{url:{type:String,required:!0,default:"#"}},data:function(){return{value:"",isHidden:!0,productAttributeId:0,productId:0,quantity:0}},methods:{toggleModal:function(t){this.isHidden=!0!==t&&!this.isHidden},openNewWishlistModal:function(){this.toggleModal(),n.default.$emit("showCreateWishlist")}},mounted:function(){var t=this;n.default.$on("showAddToWishList",(function(e){t.toggleModal(e.detail.forceOpen?e.detail.forceOpen:null),e.detail.productId&&(t.productId=e.detail.productId),"number"==typeof e.detail.productAttributeId&&(t.productAttributeId=e.detail.productAttributeId),e.detail.quantity&&(t.quantity=e.detail.quantity)}))}}},75:function(t,e,r){"use strict";r.r(e);var n=r(76),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e.default=i.a},76:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=l(r(14)),o=l(r(15)),a=l(r(138)),u=l(r(217)),s=l(r(10)),c=r(104);function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"ChooseList",components:{ContentLoader:c.ContentLoader},apollo:{lists:{query:a.default,variables:function(){return{url:this.url}}}},props:{productId:{type:Number,required:!0,default:0},quantity:{type:Number,required:!0,default:0},productAttributeId:{type:Number,required:!0,default:0},url:{type:String,required:!0,default:""},emptyText:{type:String,required:!0,default:"No list found"},addUrl:{type:String,required:!0,default:""}},methods:{select:(n=(0,o.default)(i.default.mark((function t(e){var r,n,o;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$apollo.mutate({mutation:u.default,variables:{listId:e,url:this.addUrl,productId:this.productId,quantity:this.quantity,productAttributeId:this.productAttributeId}});case 2:r=t.sent,n=r.data,o=n.addToList,this.$emit("hide"),s.default.$emit("showToast",{detail:{type:o.success?"success":"error",message:o.message}}),s.default.$emit("addedToWishlist",{detail:{productId:this.productId,listId:e,productAttributeId:this.productAttributeId}});case 8:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},mounted:function(){var t=this;s.default.$on("refetchList",(function(){t.$apollo.queries.lists.refetch()}))}}},83:function(t,e,r){var n=r(136);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,r(17).default)("79d679a6",n,!1,{})},84:function(t,e,r){var n=r(144);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,r(17).default)("0174a4e3",n,!1,{})},85:function(t,e,r){"use strict";(function(t,n){var i,o=r(26);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:n;var a=Object(o.a)(i);e.a=a}).call(this,r(12),r(45)(t))},86:function(t,e,r){"use strict";t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r,n="boolean"==typeof e.cycles&&e.cycles,i=e.cmp&&(r=e.cmp,function(t){return function(e,n){var i={key:e,value:t[e]},o={key:n,value:t[n]};return r(i,o)}}),o=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var r,a;if(Array.isArray(e)){for(a="[",r=0;r<e.length;r++)r&&(a+=","),a+=t(e[r])||"null";return a+"]"}if(null===e)return"null";if(-1!==o.indexOf(e)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=o.push(e)-1,s=Object.keys(e).sort(i&&i(e));for(a="",r=0;r<s.length;r++){var c=s[r],l=t(e[c]);l&&(a&&(a+=","),a+=JSON.stringify(c)+":"+l)}return o.splice(u,1),"{"+a+"}"}}(t)}},87:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));var n=r(1);function i(t){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:o(t)}]}}function o(t){if("number"==typeof t||"boolean"==typeof t||"string"==typeof t||null==t)return null;if(Array.isArray(t))return o(t[0]);var e=[];return Object.keys(t).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:o(t[r])||void 0};e.push(n)})),{kind:"SelectionSet",selections:e}}var a,u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},s=function(){function t(){}return t.prototype.transformDocument=function(t){return t},t.prototype.transformForLink=function(t){return t},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.read({query:t.query,variables:t.variables,optimistic:e})},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.read({query:Object(n.k)(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,optimistic:e})},t.prototype.writeQuery=function(t){this.write({dataId:"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables})},t.prototype.writeFragment=function(t){this.write({dataId:t.id,result:t.data,variables:t.variables,query:Object(n.k)(t.fragment,t.fragmentName)})},t.prototype.writeData=function(t){var e,r,n=t.id,a=t.data;if(void 0!==n){var s=null;try{s=this.read({rootId:n,optimistic:!1,query:u})}catch(t){}var c=s&&s.__typename||"__ClientData",l=Object.assign({__typename:c},a);this.writeFragment({id:n,fragment:(e=l,r=c,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:o(e)}]}),data:l})}else this.writeQuery({query:i(a),data:a})},t}();a||(a={})},90:function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r(43),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(12))},98:function(t,e,r){"use strict";function n(t,e,r,n,i){var o={};return function(){var a=(((new Error).stack||"").match(/(?:\s+at\s.+){2}\s+at\s(.+)/)||[void 0,""])[1];if(!((a=/\)$/.test(a)?a.match(/[^(]+(?=\)$)/)[0]:a.trim())in o)){var u;switch(o[a]=!0,t){case"class":u="Class";break;case"property":u="Property";break;case"method":u="Method";break;case"function":u="Function"}u+=" `"+e+"` has been deprecated",n&&(u+=" since version "+n),r&&(u+=", use `"+r+"` instead"),u+=".",a&&(u+="\n    at "+a),i&&(u+="\nCheck out "+i+" for more information."),console.warn(u)}}}function i(t,r,i,o,a,u){var s=(e.options.getWarner||n)(t,r,o,a,u),c={enumerable:(i=i||{writable:!0,enumerable:!1,configurable:!0}).enumerable,configurable:i.configurable};if(i.get||i.set)i.get&&(c.get=function(){return s(),i.get.call(this)}),i.set&&(c.set=function(t){return s(),i.set.call(this,t)});else{var l=i.value;c.get=function(){return s(),l},i.writable&&(c.set=function(t){s(),l=t})}return c}function o(t,r,i,o,a){for(var u=r.name,s=(e.options.getWarner||n)(t,u,i,o,a),c=function(){return s(),r.apply(this,arguments)},l=0,d=Object.getOwnPropertyNames(r);l<d.length;l++){var f=d[l],p=Object.getOwnPropertyDescriptor(r,f);p.writable?c[f]=r[f]:p.configurable&&Object.defineProperty(c,f,p)}return c}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=t[t.length-1];r="function"==typeof r?t.pop():void 0;var n,a,u,s=t[0];return"string"==typeof s?(n=s,a=t[1],u=t[2]):s&&(n=s.alternative,a=s.version,u=s.url),r?o("function",r,n,a,u):function(t,e,r){if("string"==typeof e)return i(r&&"function"==typeof r.value?"method":"property",e,r,n,a,u);if("function"==typeof t){for(var s=o("class",t,n,a,u),c=t.name,l=0,d=Object.getOwnPropertyNames(s);l<d.length;l++){var f=d[l],p=Object.getOwnPropertyDescriptor(s,f);(p=i("class",c,p,n,a,u)).writable?s[f]=t[f]:p.configurable&&Object.defineProperty(s,f,p)}return s}}}e.options={getWarner:void 0},e.deprecated=a,Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},99:function(t,e,r){var n=r(52),i=r(53),o=i;o.v1=n,o.v4=i,t.exports=o}});/*! For license information please see front.js.LICENSE.txt */
(()=>{var t={557:()=>{!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,n=t.ui.mouse.prototype,r=n._mouseInit,i=n._mouseDestroy;n._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,o(t,"mouseover"),o(t,"mousemove"),o(t,"mousedown"))},n._touchMove=function(t){e&&(this._touchMoved=!0,o(t,"mousemove"))},n._touchEnd=function(t){e&&(o(t,"mouseup"),o(t,"mouseout"),this._touchMoved||o(t,"click"),e=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),i.call(e)}}function o(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var n=t.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(e,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(r)}}}(jQuery)},658:(t,e,n)=>{var r=/[\\^$.*+?()[\]{}|]/g,i=RegExp(r.source),o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,a="object"==typeof self&&self&&self.Object===Object&&self,u=o||a||Function("return this")(),c=Object.prototype.toString,l=u.Symbol,s=l?l.prototype:void 0,f=s?s.toString:void 0;t.exports=function(t){var e;return(t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return f?f.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e))&&i.test(t)?t.replace(r,"\\$&"):t}},741:()=>{},580:()=>{},765:()=>{},379:(t,e,n)=>{"use strict";var r,i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function a(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},r=[],i=0;i<t.length;i++){var u=t[i],c=e.base?u[0]+e.base:u[0],l=n[c]||0,s="".concat(c," ").concat(l);n[c]=l+1;var f=a(s),p={css:u[1],media:u[2],sourceMap:u[3]};-1!==f?(o[f].references++,o[f].updater(p)):o.push({identifier:s,updater:v(p,e),references:1}),r.push(s)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,s=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=s(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function p(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var y=null,d=0;function v(t,e){var n,r,i;if(e.singleton){var o=d++;n=y||(y=c(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=c(e),r=p.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var c=u(t,e),l=0;l<n.length;l++){var s=a(n[l]);0===o[s].references&&(o[s].updater(),o.splice(s,1))}n=c}}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0,(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(557);const e=function(e){return e.split("&").map((function(e){var n,r,i=(n=e.split("="),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];return{name:o,value:decodeURIComponent(a).replace(/\+/g," ")}}))};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(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,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}const a=o((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.message=e,this.name="LocalizationException"}));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)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===u(i)?i:String(i)),r)}var i}const l=function(){function t(e,n,r,i,o,a,u,c,l,s,f){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.decimal=e,this.group=n,this.list=r,this.percentSign=i,this.minusSign=o,this.plusSign=a,this.exponential=u,this.superscriptingExponent=c,this.perMille=l,this.infinity=s,this.nan=f,this.validateData()}var e,n;return e=t,(n=[{key:"getDecimal",value:function(){return this.decimal}},{key:"getGroup",value:function(){return this.group}},{key:"getList",value:function(){return this.list}},{key:"getPercentSign",value:function(){return this.percentSign}},{key:"getMinusSign",value:function(){return this.minusSign}},{key:"getPlusSign",value:function(){return this.plusSign}},{key:"getExponential",value:function(){return this.exponential}},{key:"getSuperscriptingExponent",value:function(){return this.superscriptingExponent}},{key:"getPerMille",value:function(){return this.perMille}},{key:"getInfinity",value:function(){return this.infinity}},{key:"getNan",value:function(){return this.nan}},{key:"validateData",value:function(){if(!this.decimal||"string"!=typeof this.decimal)throw new a("Invalid decimal");if(!this.group||"string"!=typeof this.group)throw new a("Invalid group");if(!this.list||"string"!=typeof this.list)throw new a("Invalid symbol list");if(!this.percentSign||"string"!=typeof this.percentSign)throw new a("Invalid percentSign");if(!this.minusSign||"string"!=typeof this.minusSign)throw new a("Invalid minusSign");if(!this.plusSign||"string"!=typeof this.plusSign)throw new a("Invalid plusSign");if(!this.exponential||"string"!=typeof this.exponential)throw new a("Invalid exponential");if(!this.superscriptingExponent||"string"!=typeof this.superscriptingExponent)throw new a("Invalid superscriptingExponent");if(!this.perMille||"string"!=typeof this.perMille)throw new a("Invalid perMille");if(!this.infinity||"string"!=typeof this.infinity)throw new a("Invalid infinity");if(!this.nan||"string"!=typeof this.nan)throw new a("Invalid nan")}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();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 f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===s(i)?i:String(i)),r)}var i}const p=function(){function t(e,n,r,i,o,u,c,s){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.positivePattern=e,this.negativePattern=n,this.symbol=r,this.maxFractionDigits=i,this.minFractionDigits=i<o?i:o,this.groupingUsed=u,this.primaryGroupSize=c,this.secondaryGroupSize=s,!this.positivePattern||"string"!=typeof this.positivePattern)throw new a("Invalid positivePattern");if(!this.negativePattern||"string"!=typeof this.negativePattern)throw new a("Invalid negativePattern");if(!(this.symbol&&this.symbol instanceof l))throw new a("Invalid symbol");if("number"!=typeof this.maxFractionDigits)throw new a("Invalid maxFractionDigits");if("number"!=typeof this.minFractionDigits)throw new a("Invalid minFractionDigits");if("boolean"!=typeof this.groupingUsed)throw new a("Invalid groupingUsed");if("number"!=typeof this.primaryGroupSize)throw new a("Invalid primaryGroupSize");if("number"!=typeof this.secondaryGroupSize)throw new a("Invalid secondaryGroupSize")}var e,n;return e=t,(n=[{key:"getSymbol",value:function(){return this.symbol}},{key:"getPositivePattern",value:function(){return this.positivePattern}},{key:"getNegativePattern",value:function(){return this.negativePattern}},{key:"getMaxFractionDigits",value:function(){return this.maxFractionDigits}},{key:"getMinFractionDigits",value:function(){return this.minFractionDigits}},{key:"isGroupingUsed",value:function(){return this.groupingUsed}},{key:"getPrimaryGroupSize",value:function(){return this.primaryGroupSize}},{key:"getSecondaryGroupSize",value:function(){return this.secondaryGroupSize}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t){return y="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},y(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===y(i)?i:String(i)),r)}var i}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}const m=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&&v(t,e)}(c,t);var e,n,r,i,o,u=(i=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=h(i);if(o){var n=h(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===y(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 c(t,e,n,r,i,o,l,s,f,p){var y;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(y=u.call(this,t,e,n,r,i,o,l,s)).currencySymbol=f,y.currencyCode=p,!y.currencySymbol||"string"!=typeof y.currencySymbol)throw new a("Invalid currencySymbol");if(!y.currencyCode||"string"!=typeof y.currencyCode)throw new a("Invalid currencyCode");return y}return e=c,r=[{key:"getCurrencyDisplay",value:function(){return"symbol"}}],(n=[{key:"getCurrencySymbol",value:function(){return this.currencySymbol}},{key:"getCurrencyCode",value:function(){return this.currencyCode}}])&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(p);function b(t){return b="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},b(t)}function g(t,e,n){return g=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}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&S(i,n.prototype),i},g.apply(null,arguments)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function w(t){return function(t){if(Array.isArray(t))return P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||j(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){if(t){if("string"==typeof t)return P(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)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===b(i)?i:String(i)),r)}var i}var O=n(658),E=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.numberSpecification=e}var e,n,r;return e=t,n=[{key:"format",value:function(t,e){void 0!==e&&(this.numberSpecification=e);var n,r,i=Math.abs(t).toFixed(this.numberSpecification.getMaxFractionDigits()),o=(n=this.extractMajorMinorDigits(i),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,u=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(n,r)||j(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],u=o[1],c=a=this.splitMajorGroups(a);(u=this.adjustMinorDigitsZeroes(u))&&(c+="."+u);var l=this.getCldrPattern(t<0);return c=this.addPlaceholders(c,l),c=this.replaceSymbols(c),this.performSpecificReplacements(c)}},{key:"extractMajorMinorDigits",value:function(t){var e=t.toString().split(".");return[e[0],void 0===e[1]?"":e[1]]}},{key:"splitMajorGroups",value:function(t){if(!this.numberSpecification.isGroupingUsed())return t;var e=t.split("").reverse(),n=[];for(n.push(e.splice(0,this.numberSpecification.getPrimaryGroupSize()));e.length;)n.push(e.splice(0,this.numberSpecification.getSecondaryGroupSize()));n=n.reverse();var r=[];return n.forEach((function(t){r.push(t.reverse().join(""))})),r.join(",")}},{key:"adjustMinorDigitsZeroes",value:function(t){var e=t;return e.length>this.numberSpecification.getMaxFractionDigits()&&(e=e.replace(/0+$/,"")),e.length<this.numberSpecification.getMinFractionDigits()&&(e=e.padEnd(this.numberSpecification.getMinFractionDigits(),"0")),e}},{key:"getCldrPattern",value:function(t){return t?this.numberSpecification.getNegativePattern():this.numberSpecification.getPositivePattern()}},{key:"replaceSymbols",value:function(t){var e=this.numberSpecification.getSymbol(),n={};return n["."]=e.getDecimal(),n[","]=e.getGroup(),n["-"]=e.getMinusSign(),n["%"]=e.getPercentSign(),n["+"]=e.getPlusSign(),this.strtr(t,n)}},{key:"strtr",value:function(t,e){var n=Object.keys(e).map(O);return t.split(RegExp("(".concat(n.join("|"),")"))).map((function(t){return e[t]||t})).join("")}},{key:"addPlaceholders",value:function(t,e){return e.replace(/#?(,#+)*0(\.[0#]+)*/,t)}},{key:"performSpecificReplacements",value:function(t){return this.numberSpecification instanceof m?t.split("¤").join(this.numberSpecification.getCurrencySymbol()):t}}],r=[{key:"build",value:function(e){var n;return n=void 0!==e.numberSymbols?g(l,w(e.numberSymbols)):g(l,w(e.symbol)),new t(e.currencySymbol?new m(e.positivePattern,e.negativePattern,n,parseInt(e.maxFractionDigits,10),parseInt(e.minFractionDigits,10),e.groupingUsed,e.primaryGroupSize,e.secondaryGroupSize,e.currencySymbol,e.currencyCode):new p(e.positivePattern,e.negativePattern,n,parseInt(e.maxFractionDigits,10),parseInt(e.minFractionDigits,10),e.groupingUsed,e.primaryGroupSize,e.secondaryGroupSize))}}],n&&x(e.prototype,n),r&&x(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const k=E;var M={},I=function(t,e,n,r){void 0===M[t]?e.text(e.text().replace(/([^\d]*)(?:[\d\s.,]+)([^\d]+)(?:[\d\s.,]+)(.*)/,"$1".concat(n,"$2").concat(r,"$3"))):e.text("".concat(M[t].format(n)," - ").concat(M[t].format(r)))};const _=function(){$(".faceted-slider").each((function(){var t=$(this),n=t.data("slider-values"),r=t.data("slider-specifications");null!=r&&(M[t.data("slider-id")]=k.build(r)),I(t.data("slider-id"),$("#facet_label_".concat(t.data("slider-id"))),null===n?t.data("slider-min"):n[0],null===n?t.data("slider-max"):n[1]),$("#slider-range_".concat(t.data("slider-id"))).slider({range:!0,min:t.data("slider-min"),max:t.data("slider-max"),values:[null===n?t.data("slider-min"):n[0],null===n?t.data("slider-max"):n[1]],stop:function(n,r){var i=t.data("slider-encoded-url").split("?"),o=[];i.length>1&&(o=e(i[1]));var a=!1;o.forEach((function(t){"q"===t.name&&(a=!0)})),a||o.push({name:"q",value:""}),o.forEach((function(e){"q"===e.name&&(e.value+=[e.value.length>0?"/":"",t.data("slider-label"),"-",t.data("slider-unit"),"-",r.values[0],"-",r.values[1]].join(""))}));var u=[i[0],"?",$.param(o)].join("");prestashop.emit("updateFacets",u)},slide:function(e,n){I(t.data("slider-id"),$("#facet_label_".concat(t.data("slider-id"))),n.values[0],n.values[1])}})}))};var C=n(379),D=n.n(C),F=n(580),T=n.n(F);D()(T(),{insert:"head",singleton:!1}),T().locals,$(document).ready((function(){prestashop.on("updateProductList",(function(){$(".faceted-overlay").remove(),_()})),_(),prestashop.on("updateFacets",(function(){1!==$(".faceted-overlay").length&&$("body").append('<div class="faceted-overlay">\n<div class="overlay__inner">\n<div class="overlay__content"><span class="spinner"></span></div>\n</div>\n</div>')}))}));var G=n(765),A=n.n(G);D()(A(),{insert:"head",singleton:!1}),A().locals;var R=n(741),z=n.n(R);D()(z(),{insert:"head",singleton:!1}),z().locals})()})();$(document).ready(function(){var $searchWidget=$('#search_widget');var $searchBox=$searchWidget.find('input[type=text]');var searchURL=$searchWidget.attr('data-search-controller-url');var $clearButton=$searchWidget.find('i.clear');$.widget('prestashop.psBlockSearchAutocomplete',$.ui.autocomplete,{_renderItem:function(ul,product){var image=(product.cover)?product.cover:prestashop.urls.no_picture_image;var $img=$('<img class="autocomplete-thumbnail" src="'+image.bySize.small_default.url+'">');return $("<li>").append($("<a>").append($img).append($("<span>").html(product.name).addClass("product"))).appendTo(ul)}});var isMobile=function(){return $(window).width()<768};var autocompletePosition=function(){return{my:'right top',at:'right bottom',of:isMobile()?'.header-top':'#search_widget',}};$searchBox.psBlockSearchAutocomplete({position:autocompletePosition(),source:function(query,response){$.post(searchURL,{s:query.term,resultsPerPage:10},null,'json').then(function(resp){response(resp.products)}).fail(response)},select:function(event,ui){var url=ui.item.url;window.location.href=url},}).psBlockSearchAutocomplete("widget").addClass('searchbar-autocomplete');$(window).resize(function(){$searchBox.psBlockSearchAutocomplete({position:autocompletePosition(),});$searchBox.keyup()});$clearButton.click(function(){$searchBox.val("");$clearButton.hide()});$searchBox.keyup(function(){$clearButton.toggle($searchBox.val()!==""&&isMobile())})});/**
 * 2007-2020 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */
$(document).ready(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){var $body=$('body');$body.append(modal);$body.one('click','#blockcart-modal',function(event){if(event.target.id==='blockcart-modal'){$(event.target).remove()}})};prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&typeof event.resp!=='undefined'&&!event.resp.hasError){requestData={id_customization:event.reason.idCustomization,id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction}}
if(event&&event.resp&&event.resp.hasError){prestashop.emit('showErrorNextToAddtoCartButton',{errorMessage:event.resp.errors.join('<br/>')})}
$.post(refreshURL,requestData).then(function(resp){var html=$('<div />').append($.parseHTML(resp.preview));$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));if(resp.modal){showModal(resp.modal)}}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})})});(window.webpackJsonp_name_=window.webpackJsonp_name_||[]).push([[1],[,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(n,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(n,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(n,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(n,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(n,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(n,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(n,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(n,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(n,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(n,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(n,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(n,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(n,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(n,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(n,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(n,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(n,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(n,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(n,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(n,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(n,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(n,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(n,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(n,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(n,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(n,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(n,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(n,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(n,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(n,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(n,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(n,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(n,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(n,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(n,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(n,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(n,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(n,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(n,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(n,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(n,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(n,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(n,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(n,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(n,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(n,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(n,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(n,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(n,"isDirective",{enumerable:!0,get:function(){return a.isDirective}}),Object.defineProperty(n,"assertDirective",{enumerable:!0,get:function(){return a.assertDirective}}),Object.defineProperty(n,"GraphQLDirective",{enumerable:!0,get:function(){return a.GraphQLDirective}}),Object.defineProperty(n,"isSpecifiedDirective",{enumerable:!0,get:function(){return a.isSpecifiedDirective}}),Object.defineProperty(n,"specifiedDirectives",{enumerable:!0,get:function(){return a.specifiedDirectives}}),Object.defineProperty(n,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return a.GraphQLIncludeDirective}}),Object.defineProperty(n,"GraphQLSkipDirective",{enumerable:!0,get:function(){return a.GraphQLSkipDirective}}),Object.defineProperty(n,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return a.GraphQLDeprecatedDirective}}),Object.defineProperty(n,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return a.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(n,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(n,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(n,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(n,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(n,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(n,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(n,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(n,"isIntrospectionType",{enumerable:!0,get:function(){return u.isIntrospectionType}}),Object.defineProperty(n,"introspectionTypes",{enumerable:!0,get:function(){return u.introspectionTypes}}),Object.defineProperty(n,"__Schema",{enumerable:!0,get:function(){return u.__Schema}}),Object.defineProperty(n,"__Directive",{enumerable:!0,get:function(){return u.__Directive}}),Object.defineProperty(n,"__DirectiveLocation",{enumerable:!0,get:function(){return u.__DirectiveLocation}}),Object.defineProperty(n,"__Type",{enumerable:!0,get:function(){return u.__Type}}),Object.defineProperty(n,"__Field",{enumerable:!0,get:function(){return u.__Field}}),Object.defineProperty(n,"__InputValue",{enumerable:!0,get:function(){return u.__InputValue}}),Object.defineProperty(n,"__EnumValue",{enumerable:!0,get:function(){return u.__EnumValue}}),Object.defineProperty(n,"__TypeKind",{enumerable:!0,get:function(){return u.__TypeKind}}),Object.defineProperty(n,"TypeKind",{enumerable:!0,get:function(){return u.TypeKind}}),Object.defineProperty(n,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return u.SchemaMetaFieldDef}}),Object.defineProperty(n,"TypeMetaFieldDef",{enumerable:!0,get:function(){return u.TypeMetaFieldDef}}),Object.defineProperty(n,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return u.TypeNameMetaFieldDef}}),Object.defineProperty(n,"validateSchema",{enumerable:!0,get:function(){return c.validateSchema}}),Object.defineProperty(n,"assertValidSchema",{enumerable:!0,get:function(){return c.assertValidSchema}});var r=t(95),i=t(11),a=t(50),o=t(66),u=t(64),c=t(154)},,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=u,n.printError=c;var r,i=(r=t(65))&&r.__esModule?r:{default:r},a=t(185),o=t(243);function u(e,n,t,r,o,c,s){var l=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,f=t;if(!f&&l){var p=l[0];f=p&&p.loc&&p.loc.source}var d,v=r;!v&&l&&(v=l.reduce((function(e,n){return n.loc&&e.push(n.loc.start),e}),[])),v&&0===v.length&&(v=void 0),r&&t?d=r.map((function(e){return(0,a.getLocation)(t,e)})):l&&(d=l.reduce((function(e,n){return n.loc&&e.push((0,a.getLocation)(n.loc.source,n.loc.start)),e}),[]));var y=s;if(null==y&&null!=c){var h=c.extensions;(0,i.default)(h)&&(y=h)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:Boolean(d)},path:{value:o||void 0,enumerable:Boolean(o)},nodes:{value:l||void 0},source:{value:f||void 0},positions:{value:v||void 0},originalError:{value:c},extensions:{value:y||void 0,enumerable:Boolean(y)}}),c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function c(e){var n=e.message;if(e.nodes)for(var t=0,r=e.nodes;t<r.length;t++){var i=r[t];i.loc&&(n+="\n\n"+(0,o.printLocation)(i.loc))}else if(e.source&&e.locations)for(var a=0,u=e.locations;a<u.length;a++){var c=u[a];n+="\n\n"+(0,o.printSourceLocation)(e.source,c)}return n}u.prototype=Object.create(Error.prototype,{constructor:{value:u},name:{value:"GraphQLError"},toString:{value:function(){return c(this)}}})},function(e,n,t){"use strict";t.r(n);var r=t(194);t.d(n,"version",(function(){return r.version})),t.d(n,"versionInfo",(function(){return r.versionInfo}));var i=t(195);t.d(n,"graphql",(function(){return i.graphql})),t.d(n,"graphqlSync",(function(){return i.graphqlSync}));var a=t(2);t.d(n,"GraphQLSchema",(function(){return a.GraphQLSchema})),t.d(n,"GraphQLDirective",(function(){return a.GraphQLDirective})),t.d(n,"GraphQLScalarType",(function(){return a.GraphQLScalarType})),t.d(n,"GraphQLObjectType",(function(){return a.GraphQLObjectType})),t.d(n,"GraphQLInterfaceType",(function(){return a.GraphQLInterfaceType})),t.d(n,"GraphQLUnionType",(function(){return a.GraphQLUnionType})),t.d(n,"GraphQLEnumType",(function(){return a.GraphQLEnumType})),t.d(n,"GraphQLInputObjectType",(function(){return a.GraphQLInputObjectType})),t.d(n,"GraphQLList",(function(){return a.GraphQLList})),t.d(n,"GraphQLNonNull",(function(){return a.GraphQLNonNull})),t.d(n,"specifiedScalarTypes",(function(){return a.specifiedScalarTypes})),t.d(n,"GraphQLInt",(function(){return a.GraphQLInt})),t.d(n,"GraphQLFloat",(function(){return a.GraphQLFloat})),t.d(n,"GraphQLString",(function(){return a.GraphQLString})),t.d(n,"GraphQLBoolean",(function(){return a.GraphQLBoolean})),t.d(n,"GraphQLID",(function(){return a.GraphQLID})),t.d(n,"specifiedDirectives",(function(){return a.specifiedDirectives})),t.d(n,"GraphQLIncludeDirective",(function(){return a.GraphQLIncludeDirective})),t.d(n,"GraphQLSkipDirective",(function(){return a.GraphQLSkipDirective})),t.d(n,"GraphQLDeprecatedDirective",(function(){return a.GraphQLDeprecatedDirective})),t.d(n,"TypeKind",(function(){return a.TypeKind})),t.d(n,"DEFAULT_DEPRECATION_REASON",(function(){return a.DEFAULT_DEPRECATION_REASON})),t.d(n,"introspectionTypes",(function(){return a.introspectionTypes})),t.d(n,"__Schema",(function(){return a.__Schema})),t.d(n,"__Directive",(function(){return a.__Directive})),t.d(n,"__DirectiveLocation",(function(){return a.__DirectiveLocation})),t.d(n,"__Type",(function(){return a.__Type})),t.d(n,"__Field",(function(){return a.__Field})),t.d(n,"__InputValue",(function(){return a.__InputValue})),t.d(n,"__EnumValue",(function(){return a.__EnumValue})),t.d(n,"__TypeKind",(function(){return a.__TypeKind})),t.d(n,"SchemaMetaFieldDef",(function(){return a.SchemaMetaFieldDef})),t.d(n,"TypeMetaFieldDef",(function(){return a.TypeMetaFieldDef})),t.d(n,"TypeNameMetaFieldDef",(function(){return a.TypeNameMetaFieldDef})),t.d(n,"isSchema",(function(){return a.isSchema})),t.d(n,"isDirective",(function(){return a.isDirective})),t.d(n,"isType",(function(){return a.isType})),t.d(n,"isScalarType",(function(){return a.isScalarType})),t.d(n,"isObjectType",(function(){return a.isObjectType})),t.d(n,"isInterfaceType",(function(){return a.isInterfaceType})),t.d(n,"isUnionType",(function(){return a.isUnionType})),t.d(n,"isEnumType",(function(){return a.isEnumType})),t.d(n,"isInputObjectType",(function(){return a.isInputObjectType})),t.d(n,"isListType",(function(){return a.isListType})),t.d(n,"isNonNullType",(function(){return a.isNonNullType})),t.d(n,"isInputType",(function(){return a.isInputType})),t.d(n,"isOutputType",(function(){return a.isOutputType})),t.d(n,"isLeafType",(function(){return a.isLeafType})),t.d(n,"isCompositeType",(function(){return a.isCompositeType})),t.d(n,"isAbstractType",(function(){return a.isAbstractType})),t.d(n,"isWrappingType",(function(){return a.isWrappingType})),t.d(n,"isNullableType",(function(){return a.isNullableType})),t.d(n,"isNamedType",(function(){return a.isNamedType})),t.d(n,"isRequiredArgument",(function(){return a.isRequiredArgument})),t.d(n,"isRequiredInputField",(function(){return a.isRequiredInputField})),t.d(n,"isSpecifiedScalarType",(function(){return a.isSpecifiedScalarType})),t.d(n,"isIntrospectionType",(function(){return a.isIntrospectionType})),t.d(n,"isSpecifiedDirective",(function(){return a.isSpecifiedDirective})),t.d(n,"assertSchema",(function(){return a.assertSchema})),t.d(n,"assertDirective",(function(){return a.assertDirective})),t.d(n,"assertType",(function(){return a.assertType})),t.d(n,"assertScalarType",(function(){return a.assertScalarType})),t.d(n,"assertObjectType",(function(){return a.assertObjectType})),t.d(n,"assertInterfaceType",(function(){return a.assertInterfaceType})),t.d(n,"assertUnionType",(function(){return a.assertUnionType})),t.d(n,"assertEnumType",(function(){return a.assertEnumType})),t.d(n,"assertInputObjectType",(function(){return a.assertInputObjectType})),t.d(n,"assertListType",(function(){return a.assertListType})),t.d(n,"assertNonNullType",(function(){return a.assertNonNullType})),t.d(n,"assertInputType",(function(){return a.assertInputType})),t.d(n,"assertOutputType",(function(){return a.assertOutputType})),t.d(n,"assertLeafType",(function(){return a.assertLeafType})),t.d(n,"assertCompositeType",(function(){return a.assertCompositeType})),t.d(n,"assertAbstractType",(function(){return a.assertAbstractType})),t.d(n,"assertWrappingType",(function(){return a.assertWrappingType})),t.d(n,"assertNullableType",(function(){return a.assertNullableType})),t.d(n,"assertNamedType",(function(){return a.assertNamedType})),t.d(n,"getNullableType",(function(){return a.getNullableType})),t.d(n,"getNamedType",(function(){return a.getNamedType})),t.d(n,"validateSchema",(function(){return a.validateSchema})),t.d(n,"assertValidSchema",(function(){return a.assertValidSchema}));var o=t(7);t.d(n,"Source",(function(){return o.Source})),t.d(n,"getLocation",(function(){return o.getLocation})),t.d(n,"printLocation",(function(){return o.printLocation})),t.d(n,"printSourceLocation",(function(){return o.printSourceLocation})),t.d(n,"createLexer",(function(){return o.createLexer})),t.d(n,"TokenKind",(function(){return o.TokenKind})),t.d(n,"parse",(function(){return o.parse})),t.d(n,"parseValue",(function(){return o.parseValue})),t.d(n,"parseType",(function(){return o.parseType})),t.d(n,"print",(function(){return o.print})),t.d(n,"visit",(function(){return o.visit})),t.d(n,"visitInParallel",(function(){return o.visitInParallel})),t.d(n,"visitWithTypeInfo",(function(){return o.visitWithTypeInfo})),t.d(n,"getVisitFn",(function(){return o.getVisitFn})),t.d(n,"BREAK",(function(){return o.BREAK})),t.d(n,"Kind",(function(){return o.Kind})),t.d(n,"DirectiveLocation",(function(){return o.DirectiveLocation})),t.d(n,"isDefinitionNode",(function(){return o.isDefinitionNode})),t.d(n,"isExecutableDefinitionNode",(function(){return o.isExecutableDefinitionNode})),t.d(n,"isSelectionNode",(function(){return o.isSelectionNode})),t.d(n,"isValueNode",(function(){return o.isValueNode})),t.d(n,"isTypeNode",(function(){return o.isTypeNode})),t.d(n,"isTypeSystemDefinitionNode",(function(){return o.isTypeSystemDefinitionNode})),t.d(n,"isTypeDefinitionNode",(function(){return o.isTypeDefinitionNode})),t.d(n,"isTypeSystemExtensionNode",(function(){return o.isTypeSystemExtensionNode})),t.d(n,"isTypeExtensionNode",(function(){return o.isTypeExtensionNode}));var u=t(115);t.d(n,"execute",(function(){return u.execute})),t.d(n,"defaultFieldResolver",(function(){return u.defaultFieldResolver})),t.d(n,"defaultTypeResolver",(function(){return u.defaultTypeResolver})),t.d(n,"responsePathAsArray",(function(){return u.responsePathAsArray})),t.d(n,"getDirectiveValues",(function(){return u.getDirectiveValues}));var c=t(198);t.d(n,"subscribe",(function(){return c.subscribe})),t.d(n,"createSourceEventStream",(function(){return c.createSourceEventStream}));var s=t(9);t.d(n,"validate",(function(){return s.validate})),t.d(n,"ValidationContext",(function(){return s.ValidationContext})),t.d(n,"specifiedRules",(function(){return s.specifiedRules})),t.d(n,"ExecutableDefinitionsRule",(function(){return s.ExecutableDefinitionsRule})),t.d(n,"FieldsOnCorrectTypeRule",(function(){return s.FieldsOnCorrectTypeRule})),t.d(n,"FragmentsOnCompositeTypesRule",(function(){return s.FragmentsOnCompositeTypesRule})),t.d(n,"KnownArgumentNamesRule",(function(){return s.KnownArgumentNamesRule})),t.d(n,"KnownDirectivesRule",(function(){return s.KnownDirectivesRule})),t.d(n,"KnownFragmentNamesRule",(function(){return s.KnownFragmentNamesRule})),t.d(n,"KnownTypeNamesRule",(function(){return s.KnownTypeNamesRule})),t.d(n,"LoneAnonymousOperationRule",(function(){return s.LoneAnonymousOperationRule})),t.d(n,"NoFragmentCyclesRule",(function(){return s.NoFragmentCyclesRule})),t.d(n,"NoUndefinedVariablesRule",(function(){return s.NoUndefinedVariablesRule})),t.d(n,"NoUnusedFragmentsRule",(function(){return s.NoUnusedFragmentsRule})),t.d(n,"NoUnusedVariablesRule",(function(){return s.NoUnusedVariablesRule})),t.d(n,"OverlappingFieldsCanBeMergedRule",(function(){return s.OverlappingFieldsCanBeMergedRule})),t.d(n,"PossibleFragmentSpreadsRule",(function(){return s.PossibleFragmentSpreadsRule})),t.d(n,"ProvidedRequiredArgumentsRule",(function(){return s.ProvidedRequiredArgumentsRule})),t.d(n,"ScalarLeafsRule",(function(){return s.ScalarLeafsRule})),t.d(n,"SingleFieldSubscriptionsRule",(function(){return s.SingleFieldSubscriptionsRule})),t.d(n,"UniqueArgumentNamesRule",(function(){return s.UniqueArgumentNamesRule})),t.d(n,"UniqueDirectivesPerLocationRule",(function(){return s.UniqueDirectivesPerLocationRule})),t.d(n,"UniqueFragmentNamesRule",(function(){return s.UniqueFragmentNamesRule})),t.d(n,"UniqueInputFieldNamesRule",(function(){return s.UniqueInputFieldNamesRule})),t.d(n,"UniqueOperationNamesRule",(function(){return s.UniqueOperationNamesRule})),t.d(n,"UniqueVariableNamesRule",(function(){return s.UniqueVariableNamesRule})),t.d(n,"ValuesOfCorrectTypeRule",(function(){return s.ValuesOfCorrectTypeRule})),t.d(n,"VariablesAreInputTypesRule",(function(){return s.VariablesAreInputTypesRule})),t.d(n,"VariablesInAllowedPositionRule",(function(){return s.VariablesInAllowedPositionRule})),t.d(n,"LoneSchemaDefinitionRule",(function(){return s.LoneSchemaDefinitionRule})),t.d(n,"UniqueOperationTypesRule",(function(){return s.UniqueOperationTypesRule})),t.d(n,"UniqueTypeNamesRule",(function(){return s.UniqueTypeNamesRule})),t.d(n,"UniqueEnumValueNamesRule",(function(){return s.UniqueEnumValueNamesRule})),t.d(n,"UniqueFieldDefinitionNamesRule",(function(){return s.UniqueFieldDefinitionNamesRule})),t.d(n,"UniqueDirectiveNamesRule",(function(){return s.UniqueDirectiveNamesRule})),t.d(n,"PossibleTypeExtensionsRule",(function(){return s.PossibleTypeExtensionsRule}));var l=t(81);t.d(n,"GraphQLError",(function(){return l.GraphQLError})),t.d(n,"syntaxError",(function(){return l.syntaxError})),t.d(n,"locatedError",(function(){return l.locatedError})),t.d(n,"printError",(function(){return l.printError})),t.d(n,"formatError",(function(){return l.formatError}));var f=t(8);t.d(n,"getIntrospectionQuery",(function(){return f.getIntrospectionQuery})),t.d(n,"introspectionQuery",(function(){return f.introspectionQuery})),t.d(n,"getOperationAST",(function(){return f.getOperationAST})),t.d(n,"getOperationRootType",(function(){return f.getOperationRootType})),t.d(n,"introspectionFromSchema",(function(){return f.introspectionFromSchema})),t.d(n,"buildClientSchema",(function(){return f.buildClientSchema})),t.d(n,"buildASTSchema",(function(){return f.buildASTSchema})),t.d(n,"buildSchema",(function(){return f.buildSchema})),t.d(n,"getDescription",(function(){return f.getDescription})),t.d(n,"extendSchema",(function(){return f.extendSchema})),t.d(n,"lexicographicSortSchema",(function(){return f.lexicographicSortSchema})),t.d(n,"printSchema",(function(){return f.printSchema})),t.d(n,"printType",(function(){return f.printType})),t.d(n,"printIntrospectionSchema",(function(){return f.printIntrospectionSchema})),t.d(n,"typeFromAST",(function(){return f.typeFromAST})),t.d(n,"valueFromAST",(function(){return f.valueFromAST})),t.d(n,"valueFromASTUntyped",(function(){return f.valueFromASTUntyped})),t.d(n,"astFromValue",(function(){return f.astFromValue})),t.d(n,"TypeInfo",(function(){return f.TypeInfo})),t.d(n,"coerceInputValue",(function(){return f.coerceInputValue})),t.d(n,"coerceValue",(function(){return f.coerceValue})),t.d(n,"isValidJSValue",(function(){return f.isValidJSValue})),t.d(n,"isValidLiteralValue",(function(){return f.isValidLiteralValue})),t.d(n,"concatAST",(function(){return f.concatAST})),t.d(n,"separateOperations",(function(){return f.separateOperations})),t.d(n,"stripIgnoredCharacters",(function(){return f.stripIgnoredCharacters})),t.d(n,"isEqualType",(function(){return f.isEqualType})),t.d(n,"isTypeSubTypeOf",(function(){return f.isTypeSubTypeOf})),t.d(n,"doTypesOverlap",(function(){return f.doTypesOverlap})),t.d(n,"assertValidName",(function(){return f.assertValidName})),t.d(n,"isValidNameError",(function(){return f.isValidNameError})),t.d(n,"BreakingChangeType",(function(){return f.BreakingChangeType})),t.d(n,"DangerousChangeType",(function(){return f.DangerousChangeType})),t.d(n,"findBreakingChanges",(function(){return f.findBreakingChanges})),t.d(n,"findDangerousChanges",(function(){return f.findDangerousChanges})),t.d(n,"findDeprecatedUsages",(function(){return f.findDeprecatedUsages}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return r.Source}}),Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return i.getLocation}}),Object.defineProperty(n,"printLocation",{enumerable:!0,get:function(){return a.printLocation}}),Object.defineProperty(n,"printSourceLocation",{enumerable:!0,get:function(){return a.printSourceLocation}}),Object.defineProperty(n,"Kind",{enumerable:!0,get:function(){return o.Kind}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return u.TokenKind}}),Object.defineProperty(n,"createLexer",{enumerable:!0,get:function(){return c.createLexer}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return s.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return s.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return s.parseType}}),Object.defineProperty(n,"print",{enumerable:!0,get:function(){return l.print}}),Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return f.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return f.visitInParallel}}),Object.defineProperty(n,"visitWithTypeInfo",{enumerable:!0,get:function(){return f.visitWithTypeInfo}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return f.getVisitFn}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return f.BREAK}}),Object.defineProperty(n,"isDefinitionNode",{enumerable:!0,get:function(){return p.isDefinitionNode}}),Object.defineProperty(n,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return p.isExecutableDefinitionNode}}),Object.defineProperty(n,"isSelectionNode",{enumerable:!0,get:function(){return p.isSelectionNode}}),Object.defineProperty(n,"isValueNode",{enumerable:!0,get:function(){return p.isValueNode}}),Object.defineProperty(n,"isTypeNode",{enumerable:!0,get:function(){return p.isTypeNode}}),Object.defineProperty(n,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return p.isTypeSystemDefinitionNode}}),Object.defineProperty(n,"isTypeDefinitionNode",{enumerable:!0,get:function(){return p.isTypeDefinitionNode}}),Object.defineProperty(n,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return p.isTypeSystemExtensionNode}}),Object.defineProperty(n,"isTypeExtensionNode",{enumerable:!0,get:function(){return p.isTypeExtensionNode}}),Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return d.DirectiveLocation}});var r=t(184),i=t(185),a=t(243),o=t(18),u=t(120),c=t(186),s=t(122),l=t(63),f=t(28),p=t(110),d=t(123)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getIntrospectionQuery",{enumerable:!0,get:function(){return r.getIntrospectionQuery}}),Object.defineProperty(n,"introspectionQuery",{enumerable:!0,get:function(){return r.introspectionQuery}}),Object.defineProperty(n,"getOperationAST",{enumerable:!0,get:function(){return i.getOperationAST}}),Object.defineProperty(n,"getOperationRootType",{enumerable:!0,get:function(){return a.getOperationRootType}}),Object.defineProperty(n,"introspectionFromSchema",{enumerable:!0,get:function(){return o.introspectionFromSchema}}),Object.defineProperty(n,"buildClientSchema",{enumerable:!0,get:function(){return u.buildClientSchema}}),Object.defineProperty(n,"buildASTSchema",{enumerable:!0,get:function(){return c.buildASTSchema}}),Object.defineProperty(n,"buildSchema",{enumerable:!0,get:function(){return c.buildSchema}}),Object.defineProperty(n,"getDescription",{enumerable:!0,get:function(){return c.getDescription}}),Object.defineProperty(n,"extendSchema",{enumerable:!0,get:function(){return s.extendSchema}}),Object.defineProperty(n,"lexicographicSortSchema",{enumerable:!0,get:function(){return l.lexicographicSortSchema}}),Object.defineProperty(n,"printSchema",{enumerable:!0,get:function(){return f.printSchema}}),Object.defineProperty(n,"printType",{enumerable:!0,get:function(){return f.printType}}),Object.defineProperty(n,"printIntrospectionSchema",{enumerable:!0,get:function(){return f.printIntrospectionSchema}}),Object.defineProperty(n,"typeFromAST",{enumerable:!0,get:function(){return p.typeFromAST}}),Object.defineProperty(n,"valueFromAST",{enumerable:!0,get:function(){return d.valueFromAST}}),Object.defineProperty(n,"valueFromASTUntyped",{enumerable:!0,get:function(){return v.valueFromASTUntyped}}),Object.defineProperty(n,"astFromValue",{enumerable:!0,get:function(){return y.astFromValue}}),Object.defineProperty(n,"TypeInfo",{enumerable:!0,get:function(){return h.TypeInfo}}),Object.defineProperty(n,"coerceInputValue",{enumerable:!0,get:function(){return m.coerceInputValue}}),Object.defineProperty(n,"coerceValue",{enumerable:!0,get:function(){return T.coerceValue}}),Object.defineProperty(n,"isValidJSValue",{enumerable:!0,get:function(){return g.isValidJSValue}}),Object.defineProperty(n,"isValidLiteralValue",{enumerable:!0,get:function(){return b.isValidLiteralValue}}),Object.defineProperty(n,"concatAST",{enumerable:!0,get:function(){return E.concatAST}}),Object.defineProperty(n,"separateOperations",{enumerable:!0,get:function(){return O.separateOperations}}),Object.defineProperty(n,"stripIgnoredCharacters",{enumerable:!0,get:function(){return _.stripIgnoredCharacters}}),Object.defineProperty(n,"isEqualType",{enumerable:!0,get:function(){return N.isEqualType}}),Object.defineProperty(n,"isTypeSubTypeOf",{enumerable:!0,get:function(){return N.isTypeSubTypeOf}}),Object.defineProperty(n,"doTypesOverlap",{enumerable:!0,get:function(){return N.doTypesOverlap}}),Object.defineProperty(n,"assertValidName",{enumerable:!0,get:function(){return I.assertValidName}}),Object.defineProperty(n,"isValidNameError",{enumerable:!0,get:function(){return I.isValidNameError}}),Object.defineProperty(n,"BreakingChangeType",{enumerable:!0,get:function(){return S.BreakingChangeType}}),Object.defineProperty(n,"DangerousChangeType",{enumerable:!0,get:function(){return S.DangerousChangeType}}),Object.defineProperty(n,"findBreakingChanges",{enumerable:!0,get:function(){return S.findBreakingChanges}}),Object.defineProperty(n,"findDangerousChanges",{enumerable:!0,get:function(){return S.findDangerousChanges}}),Object.defineProperty(n,"findDeprecatedUsages",{enumerable:!0,get:function(){return D.findDeprecatedUsages}});var r=t(282),i=t(337),a=t(191),o=t(338),u=t(339),c=t(283),s=t(340),l=t(341),f=t(342),p=t(67),d=t(159),v=t(248),y=t(157),h=t(128),m=t(193),T=t(284),g=t(343),b=t(344),E=t(345),O=t(346),_=t(347),N=t(156),I=t(246),S=t(348),D=t(349)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return r.validate}}),Object.defineProperty(n,"ValidationContext",{enumerable:!0,get:function(){return i.ValidationContext}}),Object.defineProperty(n,"specifiedRules",{enumerable:!0,get:function(){return a.specifiedRules}}),Object.defineProperty(n,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return o.ExecutableDefinitions}}),Object.defineProperty(n,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return u.FieldsOnCorrectType}}),Object.defineProperty(n,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypes}}),Object.defineProperty(n,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return s.KnownArgumentNames}}),Object.defineProperty(n,"KnownDirectivesRule",{enumerable:!0,get:function(){return l.KnownDirectives}}),Object.defineProperty(n,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return f.KnownFragmentNames}}),Object.defineProperty(n,"KnownTypeNamesRule",{enumerable:!0,get:function(){return p.KnownTypeNames}}),Object.defineProperty(n,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperation}}),Object.defineProperty(n,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return v.NoFragmentCycles}}),Object.defineProperty(n,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return y.NoUndefinedVariables}}),Object.defineProperty(n,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return h.NoUnusedFragments}}),Object.defineProperty(n,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return m.NoUnusedVariables}}),Object.defineProperty(n,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return T.OverlappingFieldsCanBeMerged}}),Object.defineProperty(n,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return g.PossibleFragmentSpreads}}),Object.defineProperty(n,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return b.ProvidedRequiredArguments}}),Object.defineProperty(n,"ScalarLeafsRule",{enumerable:!0,get:function(){return E.ScalarLeafs}}),Object.defineProperty(n,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return O.SingleFieldSubscriptions}}),Object.defineProperty(n,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return _.UniqueArgumentNames}}),Object.defineProperty(n,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return N.UniqueDirectivesPerLocation}}),Object.defineProperty(n,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return I.UniqueFragmentNames}}),Object.defineProperty(n,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return S.UniqueInputFieldNames}}),Object.defineProperty(n,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return D.UniqueOperationNames}}),Object.defineProperty(n,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return L.UniqueVariableNames}}),Object.defineProperty(n,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return A.ValuesOfCorrectType}}),Object.defineProperty(n,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return j.VariablesAreInputTypes}}),Object.defineProperty(n,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return w.VariablesInAllowedPosition}}),Object.defineProperty(n,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return P.LoneSchemaDefinition}}),Object.defineProperty(n,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return k.UniqueOperationTypes}}),Object.defineProperty(n,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return F.UniqueTypeNames}}),Object.defineProperty(n,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return R.UniqueEnumValueNames}}),Object.defineProperty(n,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return M.UniqueFieldDefinitionNames}}),Object.defineProperty(n,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return x.UniqueDirectiveNames}}),Object.defineProperty(n,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return G.PossibleTypeExtensions}});var r=t(160),i=t(197),a=t(249),o=t(250),u=t(258),c=t(255),s=t(269),l=t(267),f=t(260),p=t(254),d=t(252),v=t(263),y=t(265),h=t(261),m=t(266),T=t(273),g=t(262),b=t(271),E=t(257),O=t(253),_=t(270),N=t(268),I=t(259),S=t(274),D=t(251),L=t(264),A=t(196),j=t(256),w=t(272),P=t(275),k=t(276),F=t(277),R=t(278),M=t(279),x=t(280),G=t(281)},,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isType=E,n.assertType=O,n.isScalarType=_,n.assertScalarType=function(e){if(!_(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Scalar type."));return e},n.isObjectType=N,n.assertObjectType=function(e){if(!N(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Object type."));return e},n.isInterfaceType=I,n.assertInterfaceType=function(e){if(!I(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Interface type."));return e},n.isUnionType=S,n.assertUnionType=function(e){if(!S(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Union type."));return e},n.isEnumType=D,n.assertEnumType=function(e){if(!D(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Enum type."));return e},n.isInputObjectType=L,n.assertInputObjectType=function(e){if(!L(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Input Object type."));return e},n.isListType=A,n.assertListType=function(e){if(!A(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL List type."));return e},n.isNonNullType=j,n.assertNonNullType=function(e){if(!j(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL Non-Null type."));return e},n.isInputType=w,n.assertInputType=function(e){if(!w(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL input type."));return e},n.isOutputType=P,n.assertOutputType=function(e){if(!P(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL output type."));return e},n.isLeafType=k,n.assertLeafType=function(e){if(!k(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL leaf type."));return e},n.isCompositeType=F,n.assertCompositeType=function(e){if(!F(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL composite type."));return e},n.isAbstractType=R,n.assertAbstractType=function(e){if(!R(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL abstract type."));return e},n.GraphQLList=M,n.GraphQLNonNull=x,n.isWrappingType=G,n.assertWrappingType=function(e){if(!G(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL wrapping type."));return e},n.isNullableType=V,n.assertNullableType=K,n.getNullableType=function(e){if(e)return j(e)?e.ofType:e},n.isNamedType=C,n.assertNamedType=function(e){if(!C(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL named type."));return e},n.getNamedType=function(e){if(e){for(var n=e;G(n);)n=n.ofType;return n}},n.argsToArgsConfig=H,n.isRequiredArgument=function(e){return j(e.type)&&void 0===e.defaultValue},n.isRequiredInputField=function(e){return j(e.type)&&void 0===e.defaultValue},n.GraphQLInputObjectType=n.GraphQLEnumType=n.GraphQLUnionType=n.GraphQLInterfaceType=n.GraphQLObjectType=n.GraphQLScalarType=void 0;var r=m(t(111)),i=m(t(13)),a=m(t(94)),o=m(t(247)),u=m(t(189)),c=m(t(59)),s=m(t(112)),l=m(t(190)),f=m(t(65)),p=m(t(331)),d=m(t(152)),v=m(t(151)),y=t(18),h=t(248);function m(e){return e&&e.__esModule?e:{default:e}}function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(t,!0).forEach((function(n){b(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(e){return _(e)||N(e)||I(e)||S(e)||D(e)||L(e)||A(e)||j(e)}function O(e){if(!E(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL type."));return e}function _(e){return(0,l.default)(e,B)}function N(e){return(0,l.default)(e,q)}function I(e){return(0,l.default)(e,z)}function S(e){return(0,l.default)(e,$)}function D(e){return(0,l.default)(e,ee)}function L(e){return(0,l.default)(e,ne)}function A(e){return(0,l.default)(e,M)}function j(e){return(0,l.default)(e,x)}function w(e){return _(e)||D(e)||L(e)||G(e)&&w(e.ofType)}function P(e){return _(e)||N(e)||I(e)||S(e)||D(e)||G(e)&&P(e.ofType)}function k(e){return _(e)||D(e)}function F(e){return N(e)||I(e)||S(e)}function R(e){return I(e)||S(e)}function M(e){if(!(this instanceof M))return new M(e);this.ofType=O(e)}function x(e){if(!(this instanceof x))return new x(e);this.ofType=K(e)}function G(e){return A(e)||j(e)}function V(e){return E(e)&&!j(e)}function K(e){if(!V(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL nullable type."));return e}function C(e){return _(e)||N(e)||I(e)||S(e)||D(e)||L(e)}function Q(e){return"function"==typeof e?e():e}function U(e){return e&&e.length>0?e:void 0}M.prototype.toString=function(){return"["+String(this.ofType)+"]"},(0,v.default)(M),(0,d.default)(M),x.prototype.toString=function(){return String(this.ofType)+"!"},(0,v.default)(x),(0,d.default)(x);var B=function(){function e(e){var n=e.parseValue||p.default;this.name=e.name,this.description=e.description,this.serialize=e.serialize||p.default,this.parseValue=n,this.parseLiteral=e.parseLiteral||function(e){return n((0,h.valueFromASTUntyped)(e))},this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.serialize||"function"==typeof e.serialize||(0,c.default)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,c.default)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();n.GraphQLScalarType=B,(0,v.default)(B),(0,d.default)(B);var q=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._fields=J.bind(void 0,e),this._interfaces=Y.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,c.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,i.default)(e.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:X(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();function Y(e){var n=Q(e.interfaces)||[];return Array.isArray(n)||(0,c.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function J(e){var n=Q(e.fields)||{};return W(n)||(0,c.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,o.default)(n,(function(n,t){W(n)||(0,c.default)(0,"".concat(e.name,".").concat(t," field config must be an object")),!("isDeprecated"in n)||(0,c.default)(0,"".concat(e.name,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),null==n.resolve||"function"==typeof n.resolve||(0,c.default)(0,"".concat(e.name,".").concat(t," field resolver must be a function if ")+"provided, but got: ".concat((0,i.default)(n.resolve),"."));var a=n.args||{};W(a)||(0,c.default)(0,"".concat(e.name,".").concat(t," args must be an object with argument names as keys."));var o=(0,r.default)(a).map((function(e){var n=e[0],t=e[1];return{name:n,description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&(0,u.default)(t.extensions),astNode:t.astNode}}));return g({},n,{name:t,description:n.description,type:n.type,args:o,resolve:n.resolve,subscribe:n.subscribe,isDeprecated:Boolean(n.deprecationReason),deprecationReason:n.deprecationReason,extensions:n.extensions&&(0,u.default)(n.extensions),astNode:n.astNode})}))}function W(e){return(0,f.default)(e)&&!Array.isArray(e)}function X(e){return(0,o.default)(e,(function(e){return{description:e.description,type:e.type,args:H(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function H(e){return(0,s.default)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}n.GraphQLObjectType=q,(0,v.default)(q),(0,d.default)(q);var z=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._fields=J.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,c.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,i.default)(e.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.toConfig=function(){return{name:this.name,description:this.description,fields:X(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();n.GraphQLInterfaceType=z,(0,v.default)(z),(0,d.default)(z);var $=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._types=Z.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,c.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,i.default)(e.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},n.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();function Z(e){var n=Q(e.types)||[];return Array.isArray(n)||(0,c.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}n.GraphQLUnionType=$,(0,v.default)($),(0,d.default)($);var ee=function(){function e(e){var n,t;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._values=(n=this.name,W(t=e.values)||(0,c.default)(0,"".concat(n," values must be an object with value names as keys.")),(0,r.default)(t).map((function(e){var t=e[0],r=e[1];return W(r)||(0,c.default)(0,"".concat(n,".").concat(t,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,i.default)(r),".")),!("isDeprecated"in r)||(0,c.default)(0,"".concat(n,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),{name:t,description:r.description,value:"value"in r?r.value:t,isDeprecated:Boolean(r.deprecationReason),deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,u.default)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=(0,a.default)(this._values,(function(e){return e.name})),"string"==typeof e.name||(0,c.default)(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(e){return this._nameLookup[e]},n.serialize=function(e){var n=this._valueLookup.get(e);if(n)return n.name},n.parseValue=function(e){if("string"==typeof e){var n=this.getValue(e);if(n)return n.value}},n.parseLiteral=function(e,n){if(e.kind===y.Kind.ENUM){var t=this.getValue(e.value);if(t)return t.value}},n.toConfig=function(){var e=(0,s.default)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();n.GraphQLEnumType=ee,(0,v.default)(ee),(0,d.default)(ee);var ne=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._fields=te.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var e=(0,o.default)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();function te(e){var n=Q(e.fields)||{};return W(n)||(0,c.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,o.default)(n,(function(n,t){return!("resolve"in n)||(0,c.default)(0,"".concat(e.name,".").concat(t," field has a resolve property, but Input Types cannot define resolvers.")),g({},n,{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&(0,u.default)(n.extensions),astNode:n.astNode})}))}n.GraphQLInputObjectType=ne,(0,v.default)(ne),(0,d.default)(ne)},,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return o(e,[])};var r,i=(r=t(244))&&r.__esModule?r:{default:r};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){switch(a(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,n){if(-1!==n.indexOf(e))return"[Circular]";var t=[].concat(n,[e]),r=function(e){var n=e[String(i.default)];if("function"==typeof n)return n;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==r){var a=r.call(e);if(a!==e)return"string"==typeof a?a:o(a,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),r=e.length-t,i=[],a=0;a<t;++a)i.push(o(e[a],n));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);if(0===t.length)return"{}";if(n.length>2)return"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]";return"{ "+t.map((function(t){return t+": "+o(e[t],n)})).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}},,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0;var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});n.Kind=r},,,,,function(e,n,t){"use strict";t.r(n),t.d(n,"gql",(function(){return p})),t.d(n,"resetCaches",(function(){return d})),t.d(n,"disableFragmentWarnings",(function(){return v})),t.d(n,"enableExperimentalFragmentVariables",(function(){return y})),t.d(n,"disableExperimentalFragmentVariables",(function(){return h}));var r=function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.create;Object.create;var i=t(7),a=new Map,o=new Map,u=!0,c=!1;function s(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var n=new Set,t=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=s((c=e.loc).source.body.substring(c.start,c.end)),a=o.get(r);a&&!a.has(i)?u&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||o.set(r,a=new Set),a.add(i),n.has(i)||(n.add(i),t.push(e))}else t.push(e);var c})),r(r({},e),{definitions:t})}function f(e){var n=s(e);if(!a.has(n)){var t=Object(i.parse)(e,{experimentalFragmentVariables:c});if(!t||"Document"!==t.kind)throw new Error("Not a valid GraphQL document.");a.set(n,function(e){var n=new Set(e.definitions);n.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(t){var r=e[t];r&&"object"==typeof r&&n.add(r)}))}));var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}(l(t)))}return a.get(n)}function p(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach((function(n,t){n&&"Document"===n.kind?r+=n.loc.source.body:r+=n,r+=e[t+1]})),f(r)}function d(){a.clear(),o.clear()}function v(){u=!1}function y(){c=!0}function h(){c=!1}var m,T={gql:p,resetCaches:d,disableFragmentWarnings:v,enableExperimentalFragmentVariables:y,disableExperimentalFragmentVariables:h};(m=p||(p={})).gql=T.gql,m.resetCaches=T.resetCaches,m.disableFragmentWarnings=T.disableFragmentWarnings,m.enableExperimentalFragmentVariables=T.enableExperimentalFragmentVariables,m.disableExperimentalFragmentVariables=T.disableExperimentalFragmentVariables,p.default=p;n.default=p},,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,s=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,v=void 0,y=void 0,h=[],m=[],T=e;do{var g=++f===l.length,b=g&&0!==p.length;if(g){if(v=0===m.length?void 0:h[h.length-1],d=y,y=m.pop(),b){if(s)d=d.slice();else{for(var E={},O=0,_=Object.keys(d);O<_.length;O++){var N=_[O];E[N]=d[N]}d=E}for(var I=0,S=0;S<p.length;S++){var D=p[S][0],L=p[S][1];s&&(D-=I),s&&null===L?(d.splice(D,1),I++):d[D]=L}}f=r.index,l=r.keys,p=r.edits,s=r.inArray,r=r.prev}else{if(v=y?s?f:l[f]:void 0,null==(d=y?y[v]:T))continue;y&&h.push(v)}var A=void 0;if(!Array.isArray(d)){if(!u(d))throw new Error("Invalid AST Node: "+(0,i.default)(d));var j=c(n,d.kind,g);if(j){if((A=j.call(n,d,v,y,h,m))===o)break;if(!1===A){if(!g){h.pop();continue}}else if(void 0!==A&&(p.push([v,A]),!g)){if(!u(A)){h.pop();continue}d=A}}}void 0===A&&b&&p.push([v,d]),g?h.pop():(r={inArray:s,index:f,keys:l,edits:p,prev:r},s=Array.isArray(d),l=s?d:t[d.kind]||[],f=-1,p=[],y&&m.push(y),y=d)}while(void 0!==r);0!==p.length&&(T=p[p.length-1][1]);return T},n.visitInParallel=function(e){var n=new Array(e.length);return{enter:function(t){for(var r=0;r<e.length;r++)if(!n[r]){var i=c(e[r],t.kind,!1);if(i){var a=i.apply(e[r],arguments);if(!1===a)n[r]=t;else if(a===o)n[r]=o;else if(void 0!==a)return a}}},leave:function(t){for(var r=0;r<e.length;r++)if(n[r])n[r]===t&&(n[r]=null);else{var i=c(e[r],t.kind,!0);if(i){var a=i.apply(e[r],arguments);if(a===o)n[r]=o;else if(void 0!==a&&!1!==a)return a}}}}},n.visitWithTypeInfo=function(e,n){return{enter:function(t){e.enter(t);var r=c(n,t.kind,!1);if(r){var i=r.apply(n,arguments);return void 0!==i&&(e.leave(t),u(i)&&e.enter(i)),i}},leave:function(t){var r,i=c(n,t.kind,!0);return i&&(r=i.apply(n,arguments)),e.leave(t),r}}},n.getVisitFn=c,n.BREAK=n.QueryDocumentKeys=void 0;var r,i=(r=t(13))&&r.__esModule?r:{default:r};var a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};n.QueryDocumentKeys=a;var o=Object.freeze({});function u(e){return Boolean(e&&"string"==typeof e.kind)}function c(e,n,t){var r=e[n];if(r){if(!t&&"function"==typeof r)return r;var i=t?r.leave:r.enter;if("function"==typeof i)return i}else{var a=t?e.leave:e.enter;if(a){if("function"==typeof a)return a;var o=a[n];if("function"==typeof o)return o}}}n.BREAK=o},,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){if(!Boolean(e))throw new Error(n||"Unexpected invariant triggered")}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Object.values||function(e){return Object.keys(e).map((function(n){return e[n]}))};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isDirective=y,n.assertDirective=function(e){if(!y(e))throw new Error("Expected ".concat((0,i.default)(e)," to be a GraphQL directive."));return e},n.isSpecifiedDirective=function(e){return y(e)&&b.some((function(n){return n.name===e.name}))},n.specifiedDirectives=n.GraphQLDeprecatedDirective=n.DEFAULT_DEPRECATION_REASON=n.GraphQLSkipDirective=n.GraphQLIncludeDirective=n.GraphQLDirective=void 0;var r=v(t(111)),i=v(t(13)),a=v(t(189)),o=v(t(59)),u=v(t(190)),c=v(t(152)),s=v(t(65)),l=v(t(151)),f=t(123),p=t(66),d=t(11);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){return(0,u.default)(e,h)}var h=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&(0,a.default)(e.extensions),this.astNode=e.astNode,e.name||(0,o.default)(0,"Directive must be named."),Array.isArray(e.locations)||(0,o.default)(0,"@".concat(e.name," locations must be an Array."));var n=e.args||{};(0,s.default)(n)&&!Array.isArray(n)||(0,o.default)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=(0,r.default)(n).map((function(e){var n=e[0],t=e[1];return{name:n,description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&(0,a.default)(t.extensions),astNode:t.astNode}}))}var n=e.prototype;return n.toString=function(){return"@"+this.name},n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:(0,d.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();n.GraphQLDirective=h,(0,l.default)(h),(0,c.default)(h);var m=new h({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[f.DirectiveLocation.FIELD,f.DirectiveLocation.FRAGMENT_SPREAD,f.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,d.GraphQLNonNull)(p.GraphQLBoolean),description:"Included when true."}}});n.GraphQLIncludeDirective=m;var T=new h({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[f.DirectiveLocation.FIELD,f.DirectiveLocation.FRAGMENT_SPREAD,f.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:(0,d.GraphQLNonNull)(p.GraphQLBoolean),description:"Skipped when true."}}});n.GraphQLSkipDirective=T;n.DEFAULT_DEPRECATION_REASON="No longer supported";var g=new h({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[f.DirectiveLocation.FIELD_DEFINITION,f.DirectiveLocation.ENUM_VALUE],args:{reason:{type:p.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}});n.GraphQLDeprecatedDirective=g;var b=Object.freeze([m,T,g]);n.specifiedDirectives=b},,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){if(!Boolean(e))throw new Error(n)}},,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.print=function(e){return(0,r.visit)(e,{leave:a})};var r=t(28),i=t(121);var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,t=e.name,r=s("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),a=e.selectionSet;return t||i||r||"query"!==n?u([n,u([t,r]),i,a]," "):a},VariableDefinition:function(e){var n=e.variable,t=e.type,r=e.defaultValue,i=e.directives;return n+": "+t+s(" = ",r)+s(" ",u(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var n=e.alias,t=e.name,r=e.arguments,i=e.directives,a=e.selectionSet;return u([s("",n,": ")+t+s("(",u(r,", "),")"),u(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+s(" ",u(e.directives," "))},InlineFragment:function(e){var n=e.typeCondition,t=e.directives,r=e.selectionSet;return u(["...",s("on ",n),u(t," "),r]," ")},FragmentDefinition:function(e){var n=e.name,t=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(n).concat(s("(",u(r,", "),")")," ")+"on ".concat(t," ").concat(s("",u(i," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var t=e.value;return e.block?(0,i.printBlockString)(t,"description"===n?"":"  "):JSON.stringify(t)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+s("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var n=e.directives,t=e.operationTypes;return u(["schema",u(n," "),c(t)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:o((function(e){return u(["scalar",e.name,u(e.directives," ")]," ")})),ObjectTypeDefinition:o((function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return u(["type",n,s("implements ",u(t," & ")),u(r," "),c(i)]," ")})),FieldDefinition:o((function(e){var n=e.name,t=e.arguments,r=e.type,i=e.directives;return n+(p(t)?s("(\n",l(u(t,"\n")),"\n)"):s("(",u(t,", "),")"))+": "+r+s(" ",u(i," "))})),InputValueDefinition:o((function(e){var n=e.name,t=e.type,r=e.defaultValue,i=e.directives;return u([n+": "+t,s("= ",r),u(i," ")]," ")})),InterfaceTypeDefinition:o((function(e){var n=e.name,t=e.directives,r=e.fields;return u(["interface",n,u(t," "),c(r)]," ")})),UnionTypeDefinition:o((function(e){var n=e.name,t=e.directives,r=e.types;return u(["union",n,u(t," "),r&&0!==r.length?"= "+u(r," | "):""]," ")})),EnumTypeDefinition:o((function(e){var n=e.name,t=e.directives,r=e.values;return u(["enum",n,u(t," "),c(r)]," ")})),EnumValueDefinition:o((function(e){return u([e.name,u(e.directives," ")]," ")})),InputObjectTypeDefinition:o((function(e){var n=e.name,t=e.directives,r=e.fields;return u(["input",n,u(t," "),c(r)]," ")})),DirectiveDefinition:o((function(e){var n=e.name,t=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+n+(p(t)?s("(\n",l(u(t,"\n")),"\n)"):s("(",u(t,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")})),SchemaExtension:function(e){var n=e.directives,t=e.operationTypes;return u(["extend schema",u(n," "),c(t)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var n=e.name,t=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",n,s("implements ",u(t," & ")),u(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var n=e.name,t=e.directives,r=e.fields;return u(["extend interface",n,u(t," "),c(r)]," ")},UnionTypeExtension:function(e){var n=e.name,t=e.directives,r=e.types;return u(["extend union",n,u(t," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var n=e.name,t=e.directives,r=e.values;return u(["extend enum",n,u(t," "),c(r)]," ")},InputObjectTypeExtension:function(e){var n=e.name,t=e.directives,r=e.fields;return u(["extend input",n,u(t," "),c(r)]," ")}};function o(e){return function(n){return u([n.description,e(n)],"\n")}}function u(e,n){return e?e.filter((function(e){return e})).join(n||""):""}function c(e){return e&&0!==e.length?"{\n"+l(u(e,"\n"))+"\n}":""}function s(e,n,t){return n?e+n+(t||""):""}function l(e){return e&&"  "+e.replace(/\n/g,"\n  ")}function f(e){return-1!==e.indexOf("\n")}function p(e){return e&&e.some(f)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIntrospectionType=function(e){return(0,l.isNamedType)(e)&&N.some((function(n){var t=n.name;return e.name===t}))},n.introspectionTypes=n.TypeNameMetaFieldDef=n.TypeMetaFieldDef=n.SchemaMetaFieldDef=n.__TypeKind=n.TypeKind=n.__EnumValue=n.__InputValue=n.__Field=n.__Type=n.__DirectiveLocation=n.__Directive=n.__Schema=void 0;var r=f(t(49)),i=f(t(13)),a=f(t(48)),o=t(63),u=t(123),c=t(157),s=t(66),l=t(11);function f(e){return e&&e.__esModule?e:{default:e}}var p=new l.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:(0,l.GraphQLNonNull)((0,l.GraphQLList)((0,l.GraphQLNonNull)(y))),resolve:function(e){return(0,r.default)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:(0,l.GraphQLNonNull)(y),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:y,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:y,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:(0,l.GraphQLNonNull)((0,l.GraphQLList)((0,l.GraphQLNonNull)(d))),resolve:function(e){return e.getDirectives()}}}}});n.__Schema=p;var d=new l.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:(0,l.GraphQLNonNull)(s.GraphQLString),resolve:function(e){return e.name}},description:{type:s.GraphQLString,resolve:function(e){return e.description}},locations:{type:(0,l.GraphQLNonNull)((0,l.GraphQLList)((0,l.GraphQLNonNull)(v))),resolve:function(e){return e.locations}},args:{type:(0,l.GraphQLNonNull)((0,l.GraphQLList)((0,l.GraphQLNonNull)(m))),resolve:function(e){return e.args}}}}});n.__Directive=d;var v=new l.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:u.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:u.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:u.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:u.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:u.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:u.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:u.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:u.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:u.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:u.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:u.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:u.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:u.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:u.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:u.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:u.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:u.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:u.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:u.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});n.__DirectiveLocation=v;var y=new l.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:(0,l.GraphQLNonNull)(b),resolve:function(e){return(0,l.isScalarType)(e)?g.SCALAR:(0,l.isObjectType)(e)?g.OBJECT:(0,l.isInterfaceType)(e)?g.INTERFACE:(0,l.isUnionType)(e)?g.UNION:(0,l.isEnumType)(e)?g.ENUM:(0,l.isInputObjectType)(e)?g.INPUT_OBJECT:(0,l.isListType)(e)?g.LIST:(0,l.isNonNullType)(e)?g.NON_NULL:void(0,a.default)(!1,'Unexpected type: "'.concat((0,i.default)(e),'".'))}},name:{type:s.GraphQLString,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:s.GraphQLString,resolve:function(e){return void 0!==e.description?e.description:void 0}},fields:{type:(0,l.GraphQLList)((0,l.GraphQLNonNull)(h)),args:{includeDeprecated:{type:s.GraphQLBoolean,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e)){var i=(0,r.default)(e.getFields());return t||(i=i.filter((function(e){return!e.deprecationReason}))),i}return null}},interfaces:{type:(0,l.GraphQLList)((0,l.GraphQLNonNull)(y)),resolve:function(e){if((0,l.isObjectType)(e))return e.getInterfaces()}},possibleTypes:{type:(0,l.GraphQLList)((0,l.GraphQLNonNull)(y)),resolve:function(e,n,t,r){var i=r.schema;if((0,l.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:(0,l.GraphQLList)((0,l.GraphQLNonNull)(T)),args:{includeDeprecated:{type:s.GraphQLBoolean,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if((0,l.isEnumType)(e)){var r=e.getValues();return t||(r=r.filter((function(e){return!e.deprecationReason}))),r}}},inputFields:{type:(0,l.GraphQLList)((0,l.GraphQLNonNull)(m)),resolve:function(e){if((0,l.isInputObjectType)(e))return(0,r.default)(e.getFields())}},ofType:{type:y,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}});n.__Type=y;var h=new l.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:(0,l.GraphQLNonNull)(s.GraphQLString),resolve:function(e){return e.name}},description:{type:s.GraphQLString,resolve:function(e){return e.description}},args:{type:(0,l.GraphQLNonNull)((0,l.GraphQLList)((0,l.GraphQLNonNull)(m))),resolve:function(e){return e.args}},type:{type:(0,l.GraphQLNonNull)(y),resolve:function(e){return e.type}},isDeprecated:{type:(0,l.GraphQLNonNull)(s.GraphQLBoolean),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:s.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});n.__Field=h;var m=new l.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:(0,l.GraphQLNonNull)(s.GraphQLString),resolve:function(e){return e.name}},description:{type:s.GraphQLString,resolve:function(e){return e.description}},type:{type:(0,l.GraphQLNonNull)(y),resolve:function(e){return e.type}},defaultValue:{type:s.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var n=(0,c.astFromValue)(e.defaultValue,e.type);return n?(0,o.print)(n):null}}}}});n.__InputValue=m;var T=new l.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:(0,l.GraphQLNonNull)(s.GraphQLString),resolve:function(e){return e.name}},description:{type:s.GraphQLString,resolve:function(e){return e.description}},isDeprecated:{type:(0,l.GraphQLNonNull)(s.GraphQLBoolean),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:s.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});n.__EnumValue=T;var g=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});n.TypeKind=g;var b=new l.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:g.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:g.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:g.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:g.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:g.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:g.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:g.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:g.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});n.__TypeKind=b;var E={name:"__schema",type:(0,l.GraphQLNonNull)(p),description:"Access the current type schema of this server.",args:[],resolve:function(e,n,t,r){return r.schema},deprecationReason:void 0,extensions:void 0,astNode:void 0};n.SchemaMetaFieldDef=E;var O={name:"__type",type:y,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:(0,l.GraphQLNonNull)(s.GraphQLString),defaultValue:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,n,t,r){var i=n.name;return r.schema.getType(i)},deprecationReason:void 0,extensions:void 0,astNode:void 0};n.TypeMetaFieldDef=O;var _={name:"__typename",type:(0,l.GraphQLNonNull)(s.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,n,t,r){return r.parentType.name},deprecationReason:void 0,extensions:void 0,astNode:void 0};n.TypeNameMetaFieldDef=_;var N=Object.freeze([p,d,v,y,h,m,T,b]);n.introspectionTypes=N},function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return"object"==r(e)&&null!==e}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSpecifiedScalarType=function(e){return(0,c.isScalarType)(e)&&h.some((function(n){var t=n.name;return e.name===t}))},n.specifiedScalarTypes=n.GraphQLID=n.GraphQLBoolean=n.GraphQLString=n.GraphQLFloat=n.GraphQLInt=void 0;var r=s(t(332)),i=s(t(333)),a=s(t(13)),o=s(t(65)),u=t(18),c=t(11);function s(e){return e&&e.__esModule?e:{default:e}}var l=new c.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){if("boolean"==typeof e)return e?1:0;var n=e;if("string"==typeof e&&""!==e&&(n=Number(e)),!(0,i.default)(n))throw new TypeError("Int cannot represent non-integer value: ".concat((0,a.default)(e)));if(n>2147483647||n<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat((0,a.default)(e)));return n},parseValue:function(e){if(!(0,i.default)(e))throw new TypeError("Int cannot represent non-integer value: ".concat((0,a.default)(e)));if(e>2147483647||e<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){if(e.kind===u.Kind.INT){var n=parseInt(e.value,10);if(n<=2147483647&&n>=-2147483648)return n}}});n.GraphQLInt=l;var f=new c.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"==typeof e)return e?1:0;var n=e;if("string"==typeof e&&""!==e&&(n=Number(e)),!(0,r.default)(n))throw new TypeError("Float cannot represent non numeric value: ".concat((0,a.default)(e)));return n},parseValue:function(e){if(!(0,r.default)(e))throw new TypeError("Float cannot represent non numeric value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.FLOAT||e.kind===u.Kind.INT?parseFloat(e.value):void 0}});function p(e){if((0,o.default)(e)){if("function"==typeof e.valueOf){var n=e.valueOf();if(!(0,o.default)(n))return n}if("function"==typeof e.toJSON)return e.toJSON()}return e}n.GraphQLFloat=f;var d=new c.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var n=p(e);if("string"==typeof n)return n;if("boolean"==typeof n)return n?"true":"false";if((0,r.default)(n))return n.toString();throw new TypeError("String cannot represent value: ".concat((0,a.default)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.STRING?e.value:void 0}});n.GraphQLString=d;var v=new c.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if((0,r.default)(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat((0,a.default)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.BOOLEAN?e.value:void 0}});n.GraphQLBoolean=v;var y=new c.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var n=p(e);if("string"==typeof n)return n;if((0,i.default)(n))return String(n);throw new TypeError("ID cannot represent value: ".concat((0,a.default)(e)))},parseValue:function(e){if("string"==typeof e)return e;if((0,i.default)(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat((0,a.default)(e)))},parseLiteral:function(e){return e.kind===u.Kind.STRING||e.kind===u.Kind.INT?e.value:void 0}});n.GraphQLID=y;var h=Object.freeze([d,l,f,v,y]);n.specifiedScalarTypes=h},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeFromAST=function e(n,t){var u;if(t.kind===a.Kind.LIST_TYPE)return(u=e(n,t.type))&&(0,o.GraphQLList)(u);if(t.kind===a.Kind.NON_NULL_TYPE)return(u=e(n,t.type))&&(0,o.GraphQLNonNull)(u);if(t.kind===a.Kind.NAMED_TYPE)return n.getType(t.name.value);(0,i.default)(!1,"Unexpected type node: "+(0,r.default)(t))};var r=u(t(13)),i=u(t(48)),a=t(18),o=t(11);function u(e){return e&&e.__esModule?e:{default:e}}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(350);n.addResolveFunctionsToSchema=r.default;var i=t(352);n.addSchemaLevelResolveFunction=i.default;var a=t(353);n.assertResolveFunctionsPresent=a.default;var o=t(354);n.attachDirectiveResolvers=o.default;var u=t(355);n.attachConnectorsToContext=u.default;var c=t(356);n.buildSchemaFromTypeDefinitions=c.default;var s=t(358);n.chainResolvers=s.chainResolvers;var l=t(359);n.checkForResolveTypeResolver=l.default;var f=t(360);n.concatenateTypeDefs=f.default;var p=t(361);n.decorateWithLogger=p.default;var d=t(362);n.extendResolversFromInterfaces=d.default;var v=t(363);n.extractExtensionDefinitions=v.default;var y=t(364);n.forEachField=y.default;var h=t(365);n.SchemaError=h.default},,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(n,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}}),Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return a.locatedError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return o.formatError}});var r=t(5),i=t(187),a=t(188),o=t(336)},,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){return e.reduce((function(e,t){return e[n(t)]=t,e}),Object.create(null))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSchema=y,n.assertSchema=function(e){if(!y(e))throw new Error("Expected ".concat((0,a.default)(e)," to be a GraphQL schema."));return e},n.GraphQLSchema=void 0;var r=v(t(126)),i=v(t(49)),a=v(t(13)),o=v(t(189)),u=v(t(59)),c=v(t(190)),s=v(t(65)),l=v(t(151)),f=t(64),p=t(50),d=t(11);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){return(0,c.default)(e,h)}var h=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,(0,s.default)(e)||(0,u.default)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,u.default)(0,'"types" must be Array if provided but got: '.concat((0,a.default)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,u.default)(0,'"directives" must be Array if provided but got: '+"".concat((0,a.default)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||(0,u.default)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat((0,a.default)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&(0,o.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||p.specifiedDirectives;var n=[this._queryType,this._mutationType,this._subscriptionType,f.__Schema].concat(e.types),t=Object.create(null);t=n.reduce(m,t),t=this._directives.reduce(T,t),this._typeMap=t,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var r=0,c=(0,i.default)(this._typeMap);r<c.length;r++){var l=c[r];if((0,d.isObjectType)(l))for(var v=0,y=l.getInterfaces();v<y.length;v++){var h=y[v];if((0,d.isInterfaceType)(h)){var g=this._implementations[h.name];g?g.push(l):this._implementations[h.name]=[l]}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(e){return this.getTypeMap()[e]},n.getPossibleTypes=function(e){return(0,d.isUnionType)(e)?e.getTypes():this._implementations[e.name]||[]},n.isPossibleType=function(e,n){if(null==this._possibleTypeMap[e.name]){for(var t=Object.create(null),r=0,i=this.getPossibleTypes(e);r<i.length;r++){t[i[r].name]=!0}this._possibleTypeMap[e.name]=t}return Boolean(this._possibleTypeMap[e.name][n.name])},n.getDirectives=function(){return this._directives},n.getDirective=function(e){return(0,r.default)(this.getDirectives(),(function(n){return n.name===e}))},n.toConfig=function(){return{query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:(0,i.default)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[],assumeValid:void 0!==this.__validationErrors,allowedLegacyNames:this.__allowedLegacyNames}},e}();function m(e,n){if(!n)return e;var t=(0,d.getNamedType)(n),r=e[t.name];if(r){if(r!==t)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(t.name,'".'));return e}e[t.name]=t;var a=e;if((0,d.isUnionType)(t)&&(a=t.getTypes().reduce(m,a)),(0,d.isObjectType)(t)&&(a=t.getInterfaces().reduce(m,a)),(0,d.isObjectType)(t)||(0,d.isInterfaceType)(t))for(var o=0,u=(0,i.default)(t.getFields());o<u.length;o++){var c=u[o];a=m(a=c.args.map((function(e){return e.type})).reduce(m,a),c.type)}if((0,d.isInputObjectType)(t))for(var s=0,l=(0,i.default)(t.getFields());s<l.length;s++){a=m(a,l[s].type)}return a}function T(e,n){return(0,p.isDirective)(n)?n.args.reduce((function(e,n){return m(e,n.type)}),e):e}n.GraphQLSchema=h,(0,l.default)(h)},,function(e,n,t){function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(127)),r(t(366)),r(t(367)),r(t(297));var i=t(161);n.SchemaDirectiveVisitor=i.SchemaDirectiveVisitor},,,function(e,n,t){"use strict";t.r(n),t.d(n,"GraphQLJSON",(function(){return s})),t.d(n,"GraphQLJSONObject",(function(){return l}));var r=t(2),i=t(7);function a(e){return e}function o(e){if("object"!=typeof e||null===e||Array.isArray(e))throw new TypeError("JSONObject cannot represent non-object value: "+e);return e}function u(e,n,t){var r=Object.create(null);return n.fields.forEach((function(n){r[n.name.value]=c(e,n.value,t)})),r}function c(e,n,t){switch(n.kind){case i.Kind.STRING:case i.Kind.BOOLEAN:return n.value;case i.Kind.INT:case i.Kind.FLOAT:return parseFloat(n.value);case i.Kind.OBJECT:return u(e,n,t);case i.Kind.LIST:return n.values.map((function(n){return c(e,n,t)}));case i.Kind.NULL:return null;case i.Kind.VARIABLE:return t?t[n.name.value]:void 0;default:throw new TypeError(e+" cannot represent value: "+Object(i.print)(n))}}var s=new r.GraphQLScalarType({name:"JSON",description:"The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",specifiedByUrl:"http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",serialize:a,parseValue:a,parseLiteral:function(e,n){return c("JSON",e,n)}});n.default=s;var l=new r.GraphQLScalarType({name:"JSONObject",description:"The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",specifiedByUrl:"http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",serialize:o,parseValue:o,parseLiteral:function(e,n){if(e.kind!==i.Kind.OBJECT)throw new TypeError("JSONObject cannot represent non-object value: "+Object(i.print)(e));return u("JSONObject",e,n)}})},,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isDefinitionNode=function(e){return i(e)||a(e)||u(e)},n.isExecutableDefinitionNode=i,n.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},n.isValueNode=function(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT},n.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},n.isTypeSystemDefinitionNode=a,n.isTypeDefinitionNode=o,n.isTypeSystemExtensionNode=u,n.isTypeExtensionNode=c;var r=t(18);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===r.Kind.SCHEMA_DEFINITION||o(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function o(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function u(e){return e.kind===r.Kind.SCHEMA_EXTENSION||c(e)}function c(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Object.entries||function(e){return Object.keys(e).map((function(n){return[n,e[n]]}))};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t){return e.reduce((function(e,r){return e[n(r)]=t(r),e}),Object.create(null))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){var t="string"==typeof e?[e,n]:[void 0,e],r=t[0],i=t[1],a=" Did you mean ";r&&(a+=r+" ");switch(i.length){case 0:return"";case 1:return a+i[0]+"?";case 2:return a+i[0]+" or "+i[1]+"?"}var o=i.slice(0,5),u=o.pop();return a+o.join(", ")+", or "+u+"?"}},function(e,n,t){"use strict";function r(e,n){if(e===n)return 0;var t=[],r=e.toLowerCase(),i=n.toLowerCase(),a=r.length,o=i.length;if(r===i)return 1;for(var u=0;u<=a;u++)t[u]=[u];for(var c=1;c<=o;c++)t[0][c]=c;for(var s=1;s<=a;s++)for(var l=1;l<=o;l++){var f=r[s-1]===i[l-1]?0:1;t[s][l]=Math.min(t[s-1][l]+1,t[s][l-1]+1,t[s-1][l-1]+f),s>1&&l>1&&r[s-1]===i[l-2]&&r[s-2]===i[l-1]&&(t[s][l]=Math.min(t[s][l],t[s-2][l-2]+f))}return t[a][o]}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){for(var t=Object.create(null),i=e.length/2,a=0;a<n.length;a++){var o=n[a],u=r(e,o),c=Math.max(i,o.length/2,1);u<=c&&(t[o]=u)}return Object.keys(t).sort((function(e,n){return t[e]-t[n]}))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"responsePathAsArray",{enumerable:!0,get:function(){return r.pathToArray}}),Object.defineProperty(n,"execute",{enumerable:!0,get:function(){return i.execute}}),Object.defineProperty(n,"defaultFieldResolver",{enumerable:!0,get:function(){return i.defaultFieldResolver}}),Object.defineProperty(n,"defaultTypeResolver",{enumerable:!0,get:function(){return i.defaultTypeResolver}}),Object.defineProperty(n,"getDirectiveValues",{enumerable:!0,get:function(){return a.getDirectiveValues}});var r=t(125),i=t(116),a=t(158)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.execute=function(e,n,t,r,i,a,o,u){return S(1===arguments.length?e:{schema:e,document:n,rootValue:t,contextValue:r,variableValues:i,operationName:a,fieldResolver:o,typeResolver:u})},n.assertValidExecutionArguments=D,n.buildExecutionContext=L,n.collectFields=j,n.buildResolveInfo=F,n.resolveFieldValueOrError=R,n.getFieldDef=J,n.defaultFieldResolver=n.defaultTypeResolver=void 0;var r=t(47),i=I(t(13)),a=I(t(328)),o=I(t(48)),u=I(t(59)),c=I(t(124)),s=I(t(245)),l=I(t(153)),f=I(t(65)),p=I(t(329)),d=I(t(330)),v=t(125),y=t(5),h=t(188),m=t(18),T=t(154),g=t(64),b=t(50),E=t(11),O=t(67),_=t(191),N=t(158);function I(e){return e&&e.__esModule?e:{default:e}}function S(e){var n=e.schema,t=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,o=e.operationName,u=e.fieldResolver,c=e.typeResolver;D(n,t,a);var s=L(n,t,r,i,a,o,u,c);if(Array.isArray(s))return{errors:s};var f=function(e,n,t){var r=(0,_.getOperationRootType)(e.schema,n),i=j(e,r,n.selectionSet,Object.create(null),Object.create(null));try{var a="mutation"===n.operation?function(e,n,t,r,i){return(0,p.default)(Object.keys(i),(function(a,o){var u=i[o],c=(0,v.addPath)(r,o),s=k(e,n,t,u,c);return void 0===s?a:(0,l.default)(s)?s.then((function(e){return a[o]=e,a})):(a[o]=s,a)}),Object.create(null))}(e,r,t,void 0,i):A(e,r,t,void 0,i);return(0,l.default)(a)?a.then(void 0,(function(n){return e.errors.push(n),Promise.resolve(null)})):a}catch(n){return e.errors.push(n),null}}(s,s.operation,r);return function e(n,t){if((0,l.default)(t))return t.then((function(t){return e(n,t)}));return 0===n.errors.length?{data:t}:{errors:n.errors,data:t}}(s,f)}function D(e,n,t){n||(0,u.default)(0,"Must provide document"),(0,T.assertValidSchema)(e),null==t||(0,f.default)(t)||(0,u.default)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function L(e,n,t,r,i,a,o,u){for(var c,s=!1,l=Object.create(null),f=0,p=n.definitions;f<p.length;f++){var d=p[f];switch(d.kind){case m.Kind.OPERATION_DEFINITION:!a&&c?s=!0:(!a||d.name&&d.name.value===a)&&(c=d);break;case m.Kind.FRAGMENT_DEFINITION:l[d.name.value]=d}}if(!c)return a?[new y.GraphQLError('Unknown operation named "'.concat(a,'".'))]:[new y.GraphQLError("Must provide an operation.")];if(s)return[new y.GraphQLError("Must provide operation name if query contains multiple operations.")];var v=(0,N.getVariableValues)(e,c.variableDefinitions||[],i||{},{maxErrors:50});return v.errors?v.errors:{schema:e,fragments:l,rootValue:t,contextValue:r,operation:c,variableValues:v.coerced,fieldResolver:o||Y,typeResolver:u||q,errors:[]}}function A(e,n,t,r,i){for(var a=Object.create(null),o=!1,u=0,c=Object.keys(i);u<c.length;u++){var s=c[u],f=k(e,n,t,i[s],(0,v.addPath)(r,s));void 0!==f&&(a[s]=f,!o&&(0,l.default)(f)&&(o=!0))}return o?(0,d.default)(a):a}function j(e,n,t,r,i){for(var a=0,o=t.selections;a<o.length;a++){var u=o[a];switch(u.kind){case m.Kind.FIELD:if(!w(e,u))continue;var c=(f=u).alias?f.alias.value:f.name.value;r[c]||(r[c]=[]),r[c].push(u);break;case m.Kind.INLINE_FRAGMENT:if(!w(e,u)||!P(e,u,n))continue;j(e,n,u.selectionSet,r,i);break;case m.Kind.FRAGMENT_SPREAD:var s=u.name.value;if(i[s]||!w(e,u))continue;i[s]=!0;var l=e.fragments[s];if(!l||!P(e,l,n))continue;j(e,n,l.selectionSet,r,i)}}var f;return r}function w(e,n){var t=(0,N.getDirectiveValues)(b.GraphQLSkipDirective,n,e.variableValues);if(t&&!0===t.if)return!1;var r=(0,N.getDirectiveValues)(b.GraphQLIncludeDirective,n,e.variableValues);return!r||!1!==r.if}function P(e,n,t){var r=n.typeCondition;if(!r)return!0;var i=(0,O.typeFromAST)(e.schema,r);return i===t||!!(0,E.isAbstractType)(i)&&e.schema.isPossibleType(i,t)}function k(e,n,t,r,i){var a=r[0].name.value,o=J(e.schema,n,a);if(o){var u=o.resolve||e.fieldResolver,c=F(e,o,r,n,i),s=R(e,o,r,u,t,c);return x(e,o.type,r,c,i,s)}}function F(e,n,t,r,i){return{fieldName:n.name,fieldNodes:t,returnType:n.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function R(e,n,t,r,i,a){try{var o=r(i,(0,N.getArgumentValues)(n,t[0],e.variableValues),e.contextValue,a);return(0,l.default)(o)?o.then(void 0,M):o}catch(e){return M(e)}}function M(e){return e instanceof Error?e:new Error("Unexpected error value: "+(0,i.default)(e))}function x(e,n,t,r,i,a){try{var o;return o=(0,l.default)(a)?a.then((function(a){return V(e,n,t,r,i,a)})):V(e,n,t,r,i,a),(0,l.default)(o)?o.then(void 0,(function(r){return G(r,t,i,n,e)})):o}catch(r){return G(r,t,i,n,e)}}function G(e,n,t,r,i){var a=(0,h.locatedError)(M(e),n,(0,v.pathToArray)(t));if((0,E.isNonNullType)(r))throw a;return i.errors.push(a),null}function V(e,n,t,a,u,f){if(f instanceof Error)throw f;if((0,E.isNonNullType)(n)){var p=V(e,n.ofType,t,a,u,f);if(null===p)throw new Error("Cannot return null for non-nullable field ".concat(a.parentType.name,".").concat(a.fieldName,"."));return p}return(0,s.default)(f)?null:(0,E.isListType)(n)?function(e,n,t,i,a,o){if(!(0,r.isCollection)(o))throw new y.GraphQLError("Expected Iterable, but did not find one for field ".concat(i.parentType.name,".").concat(i.fieldName,"."));var u=n.ofType,c=!1,s=[];return(0,r.forEach)(o,(function(n,r){var o=(0,v.addPath)(a,r),f=x(e,u,t,i,o,n);!c&&(0,l.default)(f)&&(c=!0),s.push(f)})),c?Promise.all(s):s}(e,n,t,a,u,f):(0,E.isLeafType)(n)?function(e,n){var t=e.serialize(n);if((0,c.default)(t))throw new Error('Expected a value of type "'.concat((0,i.default)(e),'" but ')+"received: ".concat((0,i.default)(n)));return t}(n,f):(0,E.isAbstractType)(n)?function(e,n,t,r,i,a){var o=n.resolveType||e.typeResolver,u=e.contextValue,c=o(a,u,r,n);if((0,l.default)(c))return c.then((function(o){return C(e,K(o,e,n,t,r,a),t,r,i,a)}));return C(e,K(c,e,n,t,r,a),t,r,i,a)}(e,n,t,a,u,f):(0,E.isObjectType)(n)?C(e,n,t,a,u,f):void(0,o.default)(!1,"Cannot complete value of unexpected output type: "+(0,i.default)(n))}function K(e,n,t,r,a,o){var u="string"==typeof e?n.schema.getType(e):e;if(!(0,E.isObjectType)(u))throw new y.GraphQLError("Abstract type ".concat(t.name," must resolve to an Object type at runtime for field ").concat(a.parentType.name,".").concat(a.fieldName," with ")+"value ".concat((0,i.default)(o),', received "').concat((0,i.default)(u),'". ')+"Either the ".concat(t.name,' type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);if(!n.schema.isPossibleType(t,u))throw new y.GraphQLError('Runtime Object type "'.concat(u.name,'" is not a possible type for "').concat(t.name,'".'),r);return u}function C(e,n,t,r,i,a){if(n.isTypeOf){var o=n.isTypeOf(a,e.contextValue,r);if((0,l.default)(o))return o.then((function(r){if(!r)throw Q(n,a,t);return U(e,n,t,i,a)}));if(!o)throw Q(n,a,t)}return U(e,n,t,i,a)}function Q(e,n,t){return new y.GraphQLError('Expected value of type "'.concat(e.name,'" but got: ').concat((0,i.default)(n),"."),t)}function U(e,n,t,r,i){return A(e,n,i,r,B(e,n,t))}var B=(0,a.default)((function(e,n,t){for(var r=Object.create(null),i=Object.create(null),a=0;a<t.length;a++){var o=t[a];o.selectionSet&&(r=j(e,n,o.selectionSet,r,i))}return r}));var q=function(e,n,t,r){if((0,f.default)(e)&&"string"==typeof e.__typename)return e.__typename;for(var i=t.schema.getPossibleTypes(r),a=[],o=0;o<i.length;o++){var u=i[o];if(u.isTypeOf){var c=u.isTypeOf(e,n,t);if((0,l.default)(c))a[o]=c;else if(c)return u}}return a.length?Promise.all(a).then((function(e){for(var n=0;n<e.length;n++)if(e[n])return i[n]})):void 0};n.defaultTypeResolver=q;var Y=function(e,n,t,r){if((0,f.default)(e)||"function"==typeof e){var i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](n,t,r):i}};function J(e,n,t){return t===g.SchemaMetaFieldDef.name&&e.getQueryType()===n?g.SchemaMetaFieldDef:t===g.TypeMetaFieldDef.name&&e.getQueryType()===n?g.TypeMetaFieldDef:t===g.TypeNameMetaFieldDef.name?g.TypeNameMetaFieldDef:n.getFields()[t]}n.defaultFieldResolver=Y},,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0;var r=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});n.TokenKind=r},function(e,n,t){"use strict";function r(e){for(var n=null,t=1;t<e.length;t++){var r=e[t],a=i(r);if(a!==r.length&&((null===n||a<n)&&0===(n=a)))break}return null===n?0:n}function i(e){for(var n=0;n<e.length&&(" "===e[n]||"\t"===e[n]);)n++;return n}function a(e){return i(e)===e.length}Object.defineProperty(n,"__esModule",{value:!0}),n.dedentBlockStringValue=function(e){var n=e.split(/\r\n|[\n\r]/g),t=r(n);if(0!==t)for(var i=1;i<n.length;i++)n[i]=n[i].slice(t);for(;n.length>0&&a(n[0]);)n.shift();for(;n.length>0&&a(n[n.length-1]);)n.pop();return n.join("\n")},n.getBlockStringIndentation=r,n.printBlockString=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],a='"'===e[e.length-1],o=!r||a||t,u="";!o||r&&i||(u+="\n"+n);u+=n?e.replace(/\n/g,"\n"+n):e,o&&(u+="\n");return'"""'+u.replace(/"""/g,'\\"""')+'"""'}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){return new d(e,n).parseDocument()},n.parseValue=function(e,n){var t=new d(e,n);t.expectToken(f.TokenKind.SOF);var r=t.parseValueLiteral(!1);return t.expectToken(f.TokenKind.EOF),r},n.parseType=function(e,n){var t=new d(e,n);t.expectToken(f.TokenKind.SOF);var r=t.parseTypeReference();return t.expectToken(f.TokenKind.EOF),r};var r=p(t(13)),i=p(t(59)),a=p(t(152)),o=t(187),u=t(18),c=t(184),s=t(186),l=t(123),f=t(120);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,n){var t="string"==typeof e?new c.Source(e):e;t instanceof c.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,r.default)(t))),this._lexer=(0,s.createLexer)(t),this._options=n||{}}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(f.TokenKind.NAME);return{kind:u.Kind.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:u.Kind.DOCUMENT,definitions:this.many(f.TokenKind.SOF,this.parseDefinition,f.TokenKind.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(f.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(f.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(f.TokenKind.BRACE_L))return{kind:u.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(f.TokenKind.NAME)&&(n=this.parseName()),{kind:u.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(f.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(f.TokenKind.PAREN_L,this.parseVariableDefinition,f.TokenKind.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:u.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(f.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(f.TokenKind.DOLLAR),{kind:u.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:u.Kind.SELECTION_SET,selections:this.many(f.TokenKind.BRACE_L,this.parseSelection,f.TokenKind.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(f.TokenKind.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,r=this.parseName();return this.expectOptionalToken(f.TokenKind.COLON)?(e=r,n=this.parseName()):n=r,{kind:u.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){var n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.TokenKind.PAREN_L,n,f.TokenKind.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(f.TokenKind.COLON),{kind:u.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:u.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(f.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(f.TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(f.TokenKind.NAME)?{kind:u.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:u.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case f.TokenKind.BRACKET_L:return this.parseList(e);case f.TokenKind.BRACE_L:return this.parseObject(e);case f.TokenKind.INT:return this._lexer.advance(),{kind:u.Kind.INT,value:n.value,loc:this.loc(n)};case f.TokenKind.FLOAT:return this._lexer.advance(),{kind:u.Kind.FLOAT,value:n.value,loc:this.loc(n)};case f.TokenKind.STRING:case f.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case f.TokenKind.NAME:return"true"===n.value||"false"===n.value?(this._lexer.advance(),{kind:u.Kind.BOOLEAN,value:"true"===n.value,loc:this.loc(n)}):"null"===n.value?(this._lexer.advance(),{kind:u.Kind.NULL,loc:this.loc(n)}):(this._lexer.advance(),{kind:u.Kind.ENUM,value:n.value,loc:this.loc(n)});case f.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:u.Kind.STRING,value:e.value,block:e.kind===f.TokenKind.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.LIST,values:this.any(f.TokenKind.BRACKET_L,(function(){return n.parseValueLiteral(e)}),f.TokenKind.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.OBJECT,fields:this.any(f.TokenKind.BRACE_L,(function(){return n.parseObjectField(e)}),f.TokenKind.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(f.TokenKind.COLON),{kind:u.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(f.TokenKind.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(f.TokenKind.AT),{kind:u.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(f.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(f.TokenKind.BRACKET_R),e={kind:u.Kind.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(f.TokenKind.BANG)?{kind:u.Kind.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:u.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===f.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(f.TokenKind.STRING)||this.peek(f.TokenKind.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.many(f.TokenKind.BRACE_L,this.parseOperationTypeDefinition,f.TokenKind.BRACE_R);return{kind:u.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(f.TokenKind.COLON);var t=this.parseNamedType();return{kind:u.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);return{kind:u.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:u.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:a,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(f.TokenKind.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(f.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(f.TokenKind.NAME))}return e},n.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(f.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===f.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(f.TokenKind.BRACE_L,this.parseFieldDefinition,f.TokenKind.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(f.TokenKind.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:u.Kind.FIELD_DEFINITION,description:n,name:t,arguments:r,type:i,directives:a,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(f.TokenKind.PAREN_L,this.parseInputValueDef,f.TokenKind.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(f.TokenKind.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(f.TokenKind.EQUALS)&&(r=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:u.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:r,directives:a,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:u.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:u.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:i,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(f.TokenKind.EQUALS)){this.expectOptionalToken(f.TokenKind.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(f.TokenKind.PIPE))}return e},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:u.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:i,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(f.TokenKind.BRACE_L,this.parseEnumValueDefinition,f.TokenKind.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseDirectives(!0);return{kind:u.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:u.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(f.TokenKind.BRACE_L,this.parseInputValueDef,f.TokenKind.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===f.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(f.TokenKind.BRACE_L,this.parseOperationTypeDefinition,f.TokenKind.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:u.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:u.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:t,fields:r,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:r,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:r,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:r,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.TokenKind.AT);var t=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:u.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},n.parseDirectiveLocations=function(){this.expectOptionalToken(f.TokenKind.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(f.TokenKind.PIPE));return e},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==l.DirectiveLocation[n.value])return n;throw this.unexpected(e)},n.loc=function(e){if(!this._options.noLocation)return new v(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw(0,o.syntaxError)(this._lexer.source,n.start,"Expected ".concat(e,", found ").concat(y(n)))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==f.TokenKind.NAME||n.value!==e)throw(0,o.syntaxError)(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(y(n)));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===f.TokenKind.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=e||this._lexer.token;return(0,o.syntaxError)(this._lexer.source,n.start,"Unexpected ".concat(y(n)))},n.any=function(e,n,t){this.expectToken(e);for(var r=[];!this.expectOptionalToken(t);)r.push(n.call(this));return r},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r}return[]},n.many=function(e,n,t){this.expectToken(e);var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r},e}();function v(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}function y(e){var n=e.value;return n?"".concat(e.kind,' "').concat(n,'"'):e.kind}(0,a.default)(v,(function(){return{start:this.start,end:this.end}}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0;var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});n.DirectiveLocation=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return void 0===e||e!=e}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addPath=function(e,n){return{prev:e,key:n}},n.pathToArray=function(e){var n=[],t=e;for(;t;)n.push(t.key),t=t.prev;return n.reverse()}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r))return r}};n.default=r},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(161),a=t(285),o=t(68);function u(e){o.forEachField(e,(function(e,n,t){var i,a,o=n+"."+t;e.resolve=(i=e.resolve,a=o,void 0===i&&(i=r.defaultFieldResolver),function(e,n,t,r){var o=i(e,n,t,r);if(void 0===o)throw new Error('Resolve function for "'+a+'" returned undefined');return o})}))}function c(e,n){if(!n)throw new Error("Must provide a logger");if("function"!=typeof n.log)throw new Error("Logger.log must be a function");o.forEachField(e,(function(e,t,r){var i=t+"."+r;e.resolve=o.decorateWithLogger(e.resolve,n,i)}))}n.makeExecutableSchema=function(e){var n=e.typeDefs,t=e.resolvers,r=void 0===t?{}:t,s=e.connectors,l=e.logger,f=e.allowUndefinedInResolve,p=void 0===f||f,d=e.resolverValidationOptions,v=void 0===d?{}:d,y=e.directiveResolvers,h=void 0===y?null:y,m=e.schemaDirectives,T=void 0===m?null:m,g=e.parseOptions,b=void 0===g?{}:g,E=e.inheritResolversFromInterfaces,O=void 0!==E&&E;if("object"!=typeof v)throw new o.SchemaError("Expected `resolverValidationOptions` to be an object");if(!n)throw new o.SchemaError("Must provide typeDefs");if(!r)throw new o.SchemaError("Must provide resolvers");var _=Array.isArray(r)?r.filter((function(e){return"object"==typeof e})).reduce(a.default,{}):r,N=o.buildSchemaFromTypeDefinitions(n,b);return N=o.addResolveFunctionsToSchema({schema:N,resolvers:_,resolverValidationOptions:v,inheritResolversFromInterfaces:O}),o.assertResolveFunctionsPresent(N,v),p||u(N),l&&c(N,l),"function"==typeof r.__schema&&o.addSchemaLevelResolveFunction(N,r.__schema),s&&o.attachConnectorsToContext(N,s),h&&o.attachDirectiveResolvers(N,h),T&&i.SchemaDirectiveVisitor.visitSchemaDirectives(N,T),N},n.addCatchUndefinedToSchema=u,n.addErrorLoggingToSchema=c,function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(68))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TypeInfo=void 0;var r,i=(r=t(126))&&r.__esModule?r:{default:r},a=t(18),o=t(11),u=t(64),c=t(67);var s=function(){function e(e,n,t){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n||l,t&&((0,o.isInputType)(t)&&this._inputTypeStack.push(t),(0,o.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,o.isOutputType)(t)&&this._typeStack.push(t))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(e){var n=this._schema;switch(e.kind){case a.Kind.SELECTION_SET:var t=(0,o.getNamedType)(this.getType());this._parentTypeStack.push((0,o.isCompositeType)(t)?t:void 0);break;case a.Kind.FIELD:var r,u,s=this.getParentType();s&&(r=this._getFieldDef(n,s,e))&&(u=r.type),this._fieldDefStack.push(r),this._typeStack.push((0,o.isOutputType)(u)?u:void 0);break;case a.Kind.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case a.Kind.OPERATION_DEFINITION:var l;"query"===e.operation?l=n.getQueryType():"mutation"===e.operation?l=n.getMutationType():"subscription"===e.operation&&(l=n.getSubscriptionType()),this._typeStack.push((0,o.isObjectType)(l)?l:void 0);break;case a.Kind.INLINE_FRAGMENT:case a.Kind.FRAGMENT_DEFINITION:var f=e.typeCondition,p=f?(0,c.typeFromAST)(n,f):(0,o.getNamedType)(this.getType());this._typeStack.push((0,o.isOutputType)(p)?p:void 0);break;case a.Kind.VARIABLE_DEFINITION:var d=(0,c.typeFromAST)(n,e.type);this._inputTypeStack.push((0,o.isInputType)(d)?d:void 0);break;case a.Kind.ARGUMENT:var v,y,h=this.getDirective()||this.getFieldDef();h&&(v=(0,i.default)(h.args,(function(n){return n.name===e.name.value})))&&(y=v.type),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push((0,o.isInputType)(y)?y:void 0);break;case a.Kind.LIST:var m=(0,o.getNullableType)(this.getInputType()),T=(0,o.isListType)(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,o.isInputType)(T)?T:void 0);break;case a.Kind.OBJECT_FIELD:var g,b,E=(0,o.getNamedType)(this.getInputType());(0,o.isInputObjectType)(E)&&(b=E.getFields()[e.name.value])&&(g=b.type),this._defaultValueStack.push(b?b.defaultValue:void 0),this._inputTypeStack.push((0,o.isInputType)(g)?g:void 0);break;case a.Kind.ENUM:var O,_=(0,o.getNamedType)(this.getInputType());(0,o.isEnumType)(_)&&(O=_.getValue(e.value)),this._enumValue=O}},n.leave=function(e){switch(e.kind){case a.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case a.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case a.Kind.DIRECTIVE:this._directive=null;break;case a.Kind.OPERATION_DEFINITION:case a.Kind.INLINE_FRAGMENT:case a.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case a.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case a.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case a.Kind.LIST:case a.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case a.Kind.ENUM:this._enumValue=null}},e}();function l(e,n,t){var r=t.name.value;return r===u.SchemaMetaFieldDef.name&&e.getQueryType()===n?u.SchemaMetaFieldDef:r===u.TypeMetaFieldDef.name&&e.getQueryType()===n?u.TypeMetaFieldDef:r===u.TypeNameMetaFieldDef.name&&(0,o.isCompositeType)(n)?u.TypeNameMetaFieldDef:(0,o.isObjectType)(n)||(0,o.isInterfaceType)(n)?n.getFields()[r]:void 0}n.TypeInfo=s},function(e,n,t){var r=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var i,a=t(6),o=t(130);!function(e){e.TYPE="VisitSchemaKind.TYPE",e.SCALAR_TYPE="VisitSchemaKind.SCALAR_TYPE",e.ENUM_TYPE="VisitSchemaKind.ENUM_TYPE",e.COMPOSITE_TYPE="VisitSchemaKind.COMPOSITE_TYPE",e.OBJECT_TYPE="VisitSchemaKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="VisitSchemaKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="VisitSchemaKind.ABSTRACT_TYPE",e.UNION_TYPE="VisitSchemaKind.UNION_TYPE",e.INTERFACE_TYPE="VisitSchemaKind.INTERFACE_TYPE",e.ROOT_OBJECT="VisitSchemaKind.ROOT_OBJECT",e.QUERY="VisitSchemaKind.QUERY",e.MUTATION="VisitSchemaKind.MUTATION",e.SUBSCRIPTION="VisitSchemaKind.SUBSCRIPTION"}(i=n.VisitSchemaKind||(n.VisitSchemaKind={})),n.visitSchema=function(e,n,t){var u={},c=o.createResolveType((function(e){if(void 0===u[e])throw new Error("Can't find type "+e+".");return u[e]})),s=e.getQueryType(),l=e.getMutationType(),f=e.getSubscriptionType(),p=e.getTypeMap();return Object.keys(p).map((function(s){var l=p[s];if(a.isNamedType(l)&&"__"!==a.getNamedType(l).name.slice(0,2)){var f=function(e,n){var t=[i.TYPE];if(e instanceof a.GraphQLObjectType){t.unshift(i.COMPOSITE_TYPE,i.OBJECT_TYPE);var r=n.getQueryType(),o=n.getMutationType(),u=n.getSubscriptionType();e===r?t.push(i.ROOT_OBJECT,i.QUERY):e===o?t.push(i.ROOT_OBJECT,i.MUTATION):e===u&&t.push(i.ROOT_OBJECT,i.SUBSCRIPTION)}else e instanceof a.GraphQLInputObjectType?t.push(i.INPUT_OBJECT_TYPE):e instanceof a.GraphQLInterfaceType?t.push(i.COMPOSITE_TYPE,i.ABSTRACT_TYPE,i.INTERFACE_TYPE):e instanceof a.GraphQLUnionType?t.push(i.COMPOSITE_TYPE,i.ABSTRACT_TYPE,i.UNION_TYPE):e instanceof a.GraphQLEnumType?t.push(i.ENUM_TYPE):e instanceof a.GraphQLScalarType&&t.push(i.SCALAR_TYPE);return t}(l,e),d=function(e,n){var t=null,i=r(n);for(;!t&&i.length>0;){var a=i.pop();t=e[a]}return t}(n,f);if(d){var v=d(l,e);u[s]=void 0===v?o.recreateType(l,c,!t):null===v?null:o.recreateType(v,c,!t)}else u[s]=o.recreateType(l,c,!t)}})),new a.GraphQLSchema({query:s?u[s.name]:null,mutation:l?u[l.name]:null,subscription:f?u[f.name]:null,types:Object.keys(u).map((function(e){return u[e]}))})}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(286),a=t(200),o=t(201);function u(e){switch(e.kind){case r.Kind.STRING:case r.Kind.BOOLEAN:return e.value;case r.Kind.INT:case r.Kind.FLOAT:return parseFloat(e.value);case r.Kind.OBJECT:var n=Object.create(null);return e.fields.forEach((function(e){n[e.name.value]=u(e.value)})),n;case r.Kind.LIST:return e.values.map(u);default:return null}}function c(e,n,t){var r={};return Object.keys(e).forEach((function(i){var a=e[i];null!==n(a.type)&&(r[i]=s(e[i],n,t))})),r}function s(e,n,t){return{type:n(e.type),args:l(e.args,n),resolve:t?e.resolve:o.default,subscribe:t?e.subscribe:null,description:e.description,deprecationReason:e.deprecationReason,astNode:e.astNode}}function l(e,n){var t={};return e.forEach((function(e){var r=f(e,n);r&&(t[r[0]]=r[1])})),t}function f(e,n){var t=n(e.type);return null===t?null:[e.name,{type:t,defaultValue:e.defaultValue,description:e.description}]}function p(e,n){var t={};return Object.keys(e).forEach((function(r){var i=e[r];null!==n(i.type)&&(t[r]=d(e[r],n))})),t}function d(e,n){return{type:n(e.type),defaultValue:e.defaultValue,description:e.description,astNode:e.astNode}}n.recreateType=function(e,n,t){if(e instanceof r.GraphQLObjectType){var o=e.getFields(),s=e.getInterfaces();return new r.GraphQLObjectType({name:e.name,description:e.description,astNode:e.astNode,isTypeOf:t?e.isTypeOf:void 0,fields:function(){return c(o,n,t)},interfaces:function(){return s.map((function(e){return n(e)}))}})}if(e instanceof r.GraphQLInterfaceType){var l=e.getFields();return new r.GraphQLInterfaceType({name:e.name,description:e.description,astNode:e.astNode,fields:function(){return c(l,n,t)},resolveType:t?e.resolveType:function(e,n,t){return a.default(e,t.schema)}})}if(e instanceof r.GraphQLUnionType)return new r.GraphQLUnionType({name:e.name,description:e.description,astNode:e.astNode,types:function(){return e.getTypes().map((function(e){return n(e)}))},resolveType:t?e.resolveType:function(e,n,t){return a.default(e,t.schema)}});if(e instanceof r.GraphQLInputObjectType)return new r.GraphQLInputObjectType({name:e.name,description:e.description,astNode:e.astNode,fields:function(){return p(e.getFields(),n)}});if(e instanceof r.GraphQLEnumType){var f=e.getValues(),d={};return f.forEach((function(e){d[e.name]={value:e.value,deprecationReason:e.deprecationReason,description:e.description,astNode:e.astNode}})),new r.GraphQLEnumType({name:e.name,description:e.description,astNode:e.astNode,values:d})}if(e instanceof r.GraphQLScalarType)return t||i.default(e)?e:new r.GraphQLScalarType({name:e.name,description:e.description,astNode:e.astNode,serialize:function(e){return e},parseValue:function(e){return e},parseLiteral:function(e){return u(e)}});throw new Error("Invalid type "+e)},n.recreateDirective=function(e,n){return new r.GraphQLDirective({name:e.name,description:e.description,locations:e.locations,args:l(e.args,n),astNode:e.astNode})},n.fieldMapToFieldConfigMap=c,n.createResolveType=function(e){var n=function(t){var i;if(t instanceof r.GraphQLList)return null===(i=n(t.ofType))?null:new r.GraphQLList(i);if(t instanceof r.GraphQLNonNull)return null===(i=n(t.ofType))?null:new r.GraphQLNonNull(i);if(!r.isNamedType(t))return t;var a=r.getNamedType(t).name;switch(a){case r.GraphQLInt.name:return r.GraphQLInt;case r.GraphQLFloat.name:return r.GraphQLFloat;case r.GraphQLString.name:return r.GraphQLString;case r.GraphQLBoolean.name:return r.GraphQLBoolean;case r.GraphQLID.name:return r.GraphQLID;default:return e(a,t)}};return n},n.fieldToFieldConfig=s,n.argsToFieldConfigArgumentMap=l,n.argumentToArgumentConfig=f,n.inputFieldMapToFieldConfigMap=p,n.inputFieldToFieldConfig=d},,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=n,e.prototype.inspect=n,i.default&&(e.prototype[i.default]=n)};var r,i=(r=t(244))&&r.__esModule?r:{default:r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return Boolean(e&&"function"==typeof e.then)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateSchema=h,n.assertValidSchema=function(e){var n=h(e);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))};var r=y(t(126)),i=y(t(155)),a=y(t(49)),o=y(t(111)),u=y(t(13)),c=t(5),s=t(246),l=t(156),f=t(50),p=t(64),d=t(95),v=t(11);function y(e){return e&&e.__esModule?e:{default:e}}function h(e){if((0,d.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var n=new m(e);!function(e){var n=e.schema,t=n.getQueryType();t?(0,v.isObjectType)(t)||e.reportError("Query root type must be Object type, it cannot be ".concat((0,u.default)(t),"."),T(n,t,"query")):e.reportError("Query root type must be provided.",n.astNode);var r=n.getMutationType();r&&!(0,v.isObjectType)(r)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,u.default)(r),"."),T(n,r,"mutation"));var i=n.getSubscriptionType();i&&!(0,v.isObjectType)(i)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,u.default)(i),"."),T(n,i,"subscription"))}(n),function(e){for(var n=0,t=e.schema.getDirectives();n<t.length;n++){var r=t[n];if((0,f.isDirective)(r)){g(e,r);for(var i=Object.create(null),a=function(n,t){var a=t[n],o=a.name;if(g(e,a),i[o])return e.reportError("Argument @".concat(r.name,"(").concat(o,":) can only be defined once."),r.astNode&&r.args.filter((function(e){return e.name===o})).map((function(e){return e.astNode}))),"continue";i[o]=!0,(0,v.isInputType)(a.type)||e.reportError("The type of @".concat(r.name,"(").concat(o,":) must be Input Type ")+"but got: ".concat((0,u.default)(a.type),"."),a.astNode)},o=0,c=r.args;o<c.length;o++)a(o,c)}else e.reportError("Expected directive but got: ".concat((0,u.default)(r),"."),r&&r.astNode)}}(n),function(e){for(var n=function(e){var n=Object.create(null),t=[],r=Object.create(null);return function i(o){if(n[o.name])return;n[o.name]=!0,r[o.name]=t.length;for(var u=(0,a.default)(o.getFields()),c=0;c<u.length;c++){var s=u[c];if((0,v.isNonNullType)(s.type)&&(0,v.isInputObjectType)(s.type.ofType)){var l=s.type.ofType,f=r[l.name];if(t.push(s),void 0===f)i(l);else{var p=t.slice(f),d=p.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(l.name,'" within itself through a series of non-null fields: "').concat(d,'".'),p.map((function(e){return e.astNode})))}t.pop()}}r[o.name]=void 0}}(e),t=e.schema.getTypeMap(),r=0,i=(0,a.default)(t);r<i.length;r++){var o=i[r];(0,v.isNamedType)(o)?((0,p.isIntrospectionType)(o)||g(e,o),(0,v.isObjectType)(o)?(b(e,o),E(e,o)):(0,v.isInterfaceType)(o)?b(e,o):(0,v.isUnionType)(o)?_(e,o):(0,v.isEnumType)(o)?N(e,o):(0,v.isInputObjectType)(o)&&(I(e,o),n(o))):e.reportError("Expected GraphQL named type but got: ".concat((0,u.default)(o),"."),o&&o.astNode)}}(n);var t=n.getErrors();return e.__validationErrors=t,t}var m=function(){function e(e){this._errors=[],this.schema=e}var n=e.prototype;return n.reportError=function(e,n){var t=Array.isArray(n)?n.filter(Boolean):n;this.addError(new c.GraphQLError(e,t))},n.addError=function(e){this._errors.push(e)},n.getErrors=function(){return this._errors},e}();function T(e,n,t){for(var r=D(e,(function(e){return e.operationTypes})),i=0;i<r.length;i++){var a=r[i];if(a.operation===t)return a.type}return n.astNode}function g(e,n){if(-1===e.schema.__allowedLegacyNames.indexOf(n.name)){var t=(0,s.isValidNameError)(n.name,n.astNode||void 0);t&&e.addError(t)}}function b(e,n){var t=(0,a.default)(n.getFields());0===t.length&&e.reportError("Type ".concat(n.name," must define one or more fields."),S(n));for(var r=0;r<t.length;r++){var i=t[r];g(e,i),(0,v.isOutputType)(i.type)||e.reportError("The type of ".concat(n.name,".").concat(i.name," must be Output Type ")+"but got: ".concat((0,u.default)(i.type),"."),i.astNode&&i.astNode.type);for(var o=Object.create(null),c=function(t,r){var a=r[t],c=a.name;g(e,a),o[c]&&e.reportError("Field argument ".concat(n.name,".").concat(i.name,"(").concat(c,":) can only be defined once."),i.args.filter((function(e){return e.name===c})).map((function(e){return e.astNode}))),o[c]=!0,(0,v.isInputType)(a.type)||e.reportError("The type of ".concat(n.name,".").concat(i.name,"(").concat(c,":) must be Input ")+"Type but got: ".concat((0,u.default)(a.type),"."),a.astNode&&a.astNode.type)},s=0,l=i.args;s<l.length;s++)c(s,l)}}function E(e,n){for(var t=Object.create(null),r=0,i=n.getInterfaces();r<i.length;r++){var a=i[r];(0,v.isInterfaceType)(a)?t[a.name]?e.reportError("Type ".concat(n.name," can only implement ").concat(a.name," once."),L(n,a)):(t[a.name]=!0,O(e,n,a)):e.reportError("Type ".concat((0,u.default)(n)," must only implement Interface types, ")+"it cannot implement ".concat((0,u.default)(a),"."),L(n,a))}}function O(e,n,t){for(var i=n.getFields(),a=t.getFields(),c=0,s=(0,o.default)(a);c<s.length;c++){var f=s[c],p=f[0],d=f[1],y=i[p];if(y){(0,l.isTypeSubTypeOf)(e.schema,y.type,d.type)||e.reportError("Interface field ".concat(t.name,".").concat(p," expects type ")+"".concat((0,u.default)(d.type)," but ").concat(n.name,".").concat(p," ")+"is type ".concat((0,u.default)(y.type),"."),[d.astNode&&d.astNode.type,y.astNode&&y.astNode.type]);for(var h=function(i,a){var o=a[i],c=o.name,s=(0,r.default)(y.args,(function(e){return e.name===c}));if(!s)return e.reportError("Interface field argument ".concat(t.name,".").concat(p,"(").concat(c,":) expected but ").concat(n.name,".").concat(p," does not provide it."),[o.astNode,y.astNode]),"continue";(0,l.isEqualType)(o.type,s.type)||e.reportError("Interface field argument ".concat(t.name,".").concat(p,"(").concat(c,":) ")+"expects type ".concat((0,u.default)(o.type)," but ")+"".concat(n.name,".").concat(p,"(").concat(c,":) is type ")+"".concat((0,u.default)(s.type),"."),[o.astNode&&o.astNode.type,s.astNode&&s.astNode.type])},m=0,T=d.args;m<T.length;m++)h(m,T);for(var g=function(i,a){var o=a[i],u=o.name;!(0,r.default)(d.args,(function(e){return e.name===u}))&&(0,v.isRequiredArgument)(o)&&e.reportError("Object field ".concat(n.name,".").concat(p," includes required argument ").concat(u," that is missing from the Interface field ").concat(t.name,".").concat(p,"."),[o.astNode,d.astNode])},b=0,E=y.args;b<E.length;b++)g(b,E)}else e.reportError("Interface field ".concat(t.name,".").concat(p," expected but ").concat(n.name," does not provide it."),[d.astNode].concat(S(n)))}}function _(e,n){var t=n.getTypes();0===t.length&&e.reportError("Union type ".concat(n.name," must define one or more member types."),S(n));for(var r=Object.create(null),i=0;i<t.length;i++){var a=t[i];r[a.name]?e.reportError("Union type ".concat(n.name," can only include type ").concat(a.name," once."),A(n,a.name)):(r[a.name]=!0,(0,v.isObjectType)(a)||e.reportError("Union type ".concat(n.name," can only include Object types, ")+"it cannot include ".concat((0,u.default)(a),"."),A(n,String(a))))}}function N(e,n){var t=n.getValues();0===t.length&&e.reportError("Enum type ".concat(n.name," must define one or more values."),S(n));for(var r=0;r<t.length;r++){var i=t[r],a=i.name;g(e,i),"true"!==a&&"false"!==a&&"null"!==a||e.reportError("Enum type ".concat(n.name," cannot include value: ").concat(a,"."),i.astNode)}}function I(e,n){var t=(0,a.default)(n.getFields());0===t.length&&e.reportError("Input Object type ".concat(n.name," must define one or more fields."),S(n));for(var r=0;r<t.length;r++){var i=t[r];g(e,i),(0,v.isInputType)(i.type)||e.reportError("The type of ".concat(n.name,".").concat(i.name," must be Input Type ")+"but got: ".concat((0,u.default)(i.type),"."),i.astNode&&i.astNode.type)}}function S(e){var n=e.astNode,t=e.extensionASTNodes;return n?t?[n].concat(t):[n]:t||[]}function D(e,n){return(0,i.default)(S(e),(function(e){return n(e)||[]}))}function L(e,n){return D(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===n.name}))}function A(e,n){return D(e,(function(e){return e.types})).filter((function(e){return e.name.value===n}))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Array.prototype.flatMap,i=r?function(e,n){return r.call(e,n)}:function(e,n){for(var t=[],r=0;r<e.length;r++){var i=n(e[r]);Array.isArray(i)?t=t.concat(i):t.push(i)}return t};n.default=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isEqualType=function e(n,t){if(n===t)return!0;if((0,r.isNonNullType)(n)&&(0,r.isNonNullType)(t))return e(n.ofType,t.ofType);if((0,r.isListType)(n)&&(0,r.isListType)(t))return e(n.ofType,t.ofType);return!1},n.isTypeSubTypeOf=function e(n,t,i){if(t===i)return!0;if((0,r.isNonNullType)(i))return!!(0,r.isNonNullType)(t)&&e(n,t.ofType,i.ofType);if((0,r.isNonNullType)(t))return e(n,t.ofType,i);if((0,r.isListType)(i))return!!(0,r.isListType)(t)&&e(n,t.ofType,i.ofType);if((0,r.isListType)(t))return!1;if((0,r.isAbstractType)(i)&&(0,r.isObjectType)(t)&&n.isPossibleType(i,t))return!0;return!1},n.doTypesOverlap=function(e,n,t){if(n===t)return!0;if((0,r.isAbstractType)(n))return(0,r.isAbstractType)(t)?e.getPossibleTypes(n).some((function(n){return e.isPossibleType(t,n)})):e.isPossibleType(n,t);if((0,r.isAbstractType)(t))return e.isPossibleType(t,n);return!1};var r=t(11)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.astFromValue=function e(n,t){if((0,p.isNonNullType)(t)){var d=e(n,t.ofType);return d&&d.kind===l.Kind.NULL?null:d}if(null===n)return{kind:l.Kind.NULL};if((0,c.default)(n))return null;if((0,p.isListType)(t)){var y=t.ofType;if((0,r.isCollection)(n)){var h=[];return(0,r.forEach)(n,(function(n){var t=e(n,y);t&&h.push(t)})),{kind:l.Kind.LIST,values:h}}return e(n,y)}if((0,p.isInputObjectType)(t)){if(!(0,s.default)(n))return null;for(var m=[],T=0,g=(0,i.default)(t.getFields());T<g.length;T++){var b=g[T],E=e(n[b.name],b.type);E&&m.push({kind:l.Kind.OBJECT_FIELD,name:{kind:l.Kind.NAME,value:b.name},value:E})}return{kind:l.Kind.OBJECT,fields:m}}if((0,p.isLeafType)(t)){var O=t.serialize(n);if((0,u.default)(O))return null;if("boolean"==typeof O)return{kind:l.Kind.BOOLEAN,value:O};if("number"==typeof O){var _=String(O);return v.test(_)?{kind:l.Kind.INT,value:_}:{kind:l.Kind.FLOAT,value:_}}if("string"==typeof O)return(0,p.isEnumType)(t)?{kind:l.Kind.ENUM,value:O}:t===f.GraphQLID&&v.test(O)?{kind:l.Kind.INT,value:O}:{kind:l.Kind.STRING,value:O};throw new TypeError("Cannot convert value to AST: ".concat((0,a.default)(O)))}(0,o.default)(!1,"Unexpected input type: "+(0,a.default)(t))};var r=t(47),i=d(t(49)),a=d(t(13)),o=d(t(48)),u=d(t(245)),c=d(t(124)),s=d(t(65)),l=t(18),f=t(66),p=t(11);function d(e){return e&&e.__esModule?e:{default:e}}var v=/^-?(?:0|[1-9][0-9]*)$/},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getVariableValues=function(e,n,t,r){var i=r&&r.maxErrors,c=[];try{var v=function(e,n,t,r){for(var i={},c=function(c){var v=n[c],y=v.variable.name.value,m=(0,f.typeFromAST)(e,v.type);if(!(0,l.isInputType)(m)){var T=(0,s.print)(v.type);return r(new u.GraphQLError('Variable "$'.concat(y,'" expected value of type "').concat(T,'" which cannot be used as an input type.'),v.type)),"continue"}if(!h(t,y)){if(v.defaultValue)i[y]=(0,p.valueFromAST)(v.defaultValue,m);else if((0,l.isNonNullType)(m)){var g=(0,a.default)(m);r(new u.GraphQLError('Variable "$'.concat(y,'" of required type "').concat(g,'" was not provided.'),v))}return"continue"}var b=t[y];if(null===b&&(0,l.isNonNullType)(m)){var E=(0,a.default)(m);return r(new u.GraphQLError('Variable "$'.concat(y,'" of non-null type "').concat(E,'" must not be null.'),v)),"continue"}i[y]=(0,d.coerceInputValue)(b,m,(function(e,n,t){var i='Variable "$'.concat(y,'" got invalid value ')+(0,a.default)(n);e.length>0&&(i+=' at "'.concat(y).concat((0,o.default)(e),'"')),r(new u.GraphQLError(i+"; "+t.message,v,void 0,void 0,void 0,t.originalError))}))},v=0;v<n.length;v++)c(v);return i}(e,n,t,(function(e){if(null!=i&&c.length>=i)throw new u.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");c.push(e)}));if(0===c.length)return{coerced:v}}catch(e){c.push(e)}return{errors:c}},n.getArgumentValues=y,n.getDirectiveValues=function(e,n,t){var i=n.directives&&(0,r.default)(n.directives,(function(n){return n.name.value===e.name}));if(i)return y(e,i,t)};var r=v(t(126)),i=v(t(94)),a=v(t(13)),o=v(t(192)),u=t(5),c=t(18),s=t(63),l=t(11),f=t(67),p=t(159),d=t(193);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,n,t){for(var r={},o=(0,i.default)(n.arguments||[],(function(e){return e.name.value})),f=0,d=e.args;f<d.length;f++){var v=d[f],y=v.name,m=v.type,T=o[y];if(T){var g=T.value,b=g.kind===c.Kind.NULL;if(g.kind===c.Kind.VARIABLE){var E=g.name.value;if(null==t||!h(t,E)){if(void 0!==v.defaultValue)r[y]=v.defaultValue;else if((0,l.isNonNullType)(m))throw new u.GraphQLError('Argument "'.concat(y,'" of required type "').concat((0,a.default)(m),'" ')+'was provided the variable "$'.concat(E,'" which was not provided a runtime value.'),g);continue}b=null==t[E]}if(b&&(0,l.isNonNullType)(m))throw new u.GraphQLError('Argument "'.concat(y,'" of non-null type "').concat((0,a.default)(m),'" ')+"must not be null.",g);var O=(0,p.valueFromAST)(g,m,t);if(void 0===O)throw new u.GraphQLError('Argument "'.concat(y,'" has invalid value ').concat((0,s.print)(g),"."),g);r[y]=O}else if(void 0!==v.defaultValue)r[y]=v.defaultValue;else if((0,l.isNonNullType)(m))throw new u.GraphQLError('Argument "'.concat(y,'" of required type "').concat((0,a.default)(m),'" ')+"was not provided.",n)}return r}function h(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.valueFromAST=function e(n,t,l){if(!n)return;if((0,s.isNonNullType)(t)){if(n.kind===c.Kind.NULL)return;return e(n,t.ofType,l)}if(n.kind===c.Kind.NULL)return null;if(n.kind===c.Kind.VARIABLE){var p=n.name.value;if(!l||(0,u.default)(l[p]))return;var d=l[p];if(null===d&&(0,s.isNonNullType)(t))return;return d}if((0,s.isListType)(t)){var v=t.ofType;if(n.kind===c.Kind.LIST){for(var y=[],h=0,m=n.values;h<m.length;h++){var T=m[h];if(f(T,l)){if((0,s.isNonNullType)(v))return;y.push(null)}else{var g=e(T,v,l);if((0,u.default)(g))return;y.push(g)}}return y}var b=e(n,v,l);if((0,u.default)(b))return;return[b]}if((0,s.isInputObjectType)(t)){if(n.kind!==c.Kind.OBJECT)return;for(var E=Object.create(null),O=(0,i.default)(n.fields,(function(e){return e.name.value})),_=0,N=(0,r.default)(t.getFields());_<N.length;_++){var I=N[_],S=O[I.name];if(S&&!f(S.value,l)){var D=e(S.value,I.type,l);if((0,u.default)(D))return;E[I.name]=D}else if(void 0!==I.defaultValue)E[I.name]=I.defaultValue;else if((0,s.isNonNullType)(I.type))return}return E}if((0,s.isEnumType)(t)){if(n.kind!==c.Kind.ENUM)return;var L=t.getValue(n.value);if(!L)return;return L.value}if((0,s.isScalarType)(t)){var A;try{A=t.parseLiteral(n,l)}catch(e){return}if((0,u.default)(A))return;return A}(0,o.default)(!1,"Unexpected input type: "+(0,a.default)(t))};var r=l(t(49)),i=l(t(94)),a=l(t(13)),o=l(t(48)),u=l(t(124)),c=t(18),s=t(11);function l(e){return e&&e.__esModule?e:{default:e}}function f(e,n){return e.kind===c.Kind.VARIABLE&&(!n||(0,u.default)(n[e.name.value]))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validate=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.specifiedRules,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new c.TypeInfo(e),f=arguments.length>4?arguments[4]:void 0;n||(0,i.default)(0,"Must provide document"),(0,u.assertValidSchema)(e);var p=Object.freeze({}),d=[],v=f&&f.maxErrors,y=new l.ValidationContext(e,n,r,(function(e){if(null!=v&&d.length>=v)throw d.push(new a.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),p;d.push(e)})),h=(0,o.visitInParallel)(t.map((function(e){return e(y)})));try{(0,o.visit)(n,(0,o.visitWithTypeInfo)(r,h))}catch(e){if(e!==p)throw e}return d},n.validateSDL=p,n.assertValidSDL=function(e){var n=p(e);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))},n.assertValidSDLExtension=function(e,n){var t=p(e,n);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))},n.ABORT_VALIDATION=void 0;var r,i=(r=t(59))&&r.__esModule?r:{default:r},a=t(5),o=t(28),u=t(154),c=t(128),s=t(249),l=t(197);var f=Object.freeze({});function p(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.specifiedSDLRules,r=[],i=new l.SDLValidationContext(e,n,(function(e){r.push(e)})),a=t.map((function(e){return e(i)}));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}n.ABORT_VALIDATION=f},function(e,n,t){var r,i=this&&this.__extends||(r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var o=t(6),u=t(158),c=Object.prototype.hasOwnProperty,s=function(){function e(){}return e.implementsVisitorMethod=function(n){if(!n.startsWith("visit"))return!1;var t=this.prototype[n];return"function"==typeof t&&(this===e||t!==e.prototype[n])},e.prototype.visitSchema=function(e){},e.prototype.visitScalar=function(e){},e.prototype.visitObject=function(e){},e.prototype.visitFieldDefinition=function(e,n){},e.prototype.visitArgumentDefinition=function(e,n){},e.prototype.visitInterface=function(e){},e.prototype.visitUnion=function(e){},e.prototype.visitEnum=function(e){},e.prototype.visitEnumValue=function(e,n){},e.prototype.visitInputObject=function(e){},e.prototype.visitInputFieldDefinition=function(e,n){},e}();function l(e,n){function t(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return n(t,e).every((function(n){var i=n[e].apply(n,a([t],r));if(void 0===i)return!0;if("visitSchema"===e||t instanceof o.GraphQLSchema)throw new Error("Method "+e+" cannot replace schema with "+i);return null===i?(t=null,!1):(t=i,!0)})),t}function r(e){v(e.getFields(),(function(n){var r=t("visitFieldDefinition",n,{objectType:e});return r&&r.args&&v(r.args,(function(n){return t("visitArgumentDefinition",n,{field:r,objectType:e})})),r}))}return function e(n){if(n instanceof o.GraphQLSchema)return t("visitSchema",n),v(n.getTypeMap(),(function(n,t){if(!t.startsWith("__"))return e(n)})),n;if(n instanceof o.GraphQLObjectType){var i=t("visitObject",n);return i&&r(i),i}if(n instanceof o.GraphQLInterfaceType){var a=t("visitInterface",n);return a&&r(a),a}if(n instanceof o.GraphQLInputObjectType){var u=t("visitInputObject",n);return u&&v(u.getFields(),(function(e){return t("visitInputFieldDefinition",e,{objectType:u})})),u}if(n instanceof o.GraphQLScalarType)return t("visitScalar",n);if(n instanceof o.GraphQLUnionType)return t("visitUnion",n);if(n instanceof o.GraphQLEnumType){var c=t("visitEnum",n);return c&&v(c.getValues(),(function(e){return t("visitEnumValue",e,{enumType:c})})),c}throw new Error("Unexpected schema type: "+n)}(e),e}function f(e){return function e(r){if(r instanceof o.GraphQLSchema){var i=r.getTypeMap(),a=Object.create(null);d(i,(function(e,n){if(!n.startsWith("__")){var t=e.name;if(!t.startsWith("__")){if(c.call(a,t))throw new Error("Duplicate schema type name "+t);a[t]=e}}})),d(a,(function(e,n){i[n]=e})),d(r.getDirectives(),(function(e){e.args&&d(e.args,(function(e){e.type=t(e.type)}))})),d(i,(function(n,t){t.startsWith("__")||e(n)})),v(i,(function(e,n){if(!n.startsWith("__")&&!c.call(a,n))return null}))}else if(r instanceof o.GraphQLObjectType)n(r),d(r.getInterfaces(),(function(n){return e(n)}));else if(r instanceof o.GraphQLInterfaceType)n(r);else if(r instanceof o.GraphQLInputObjectType)d(r.getFields(),(function(e){e.type=t(e.type)}));else if(r instanceof o.GraphQLScalarType);else if(r instanceof o.GraphQLUnionType)v(r.getTypes(),(function(e){return t(e)}));else if(!(r instanceof o.GraphQLEnumType))throw new Error("Unexpected schema type: "+r)}(e),e;function n(e){d(e.getFields(),(function(e){e.type=t(e.type),e.args&&d(e.args,(function(e){e.type=t(e.type)}))}))}function t(n){if(n instanceof o.GraphQLList)n=new o.GraphQLList(t(n.ofType));else if(n instanceof o.GraphQLNonNull)n=new o.GraphQLNonNull(t(n.ofType));else if(o.isNamedType(n)){var r=n,i=e.getType(r.name);if(i&&r!==i)return i}return n}}n.SchemaVisitor=s,n.visitSchema=l,n.healSchema=f;var p=function(e){function n(n){var t=e.call(this)||this;return t.name=n.name,t.args=n.args,t.visitedType=n.visitedType,t.schema=n.schema,t.context=n.context,t}return i(n,e),n.getDirectiveDeclaration=function(e,n){return n.getDirective(e)},n.visitSchemaDirectives=function(e,n,t){void 0===t&&(t=Object.create(null));var r=this.getDeclaredDirectives(e,n),i=Object.create(null);return Object.keys(n).forEach((function(e){i[e]=[]})),l(e,(function(a,o){var s=[],l=a.astNode&&a.astNode.directives;return l?(l.forEach((function(i){var l=i.name.value;if(c.call(n,l)){var f=n[l];if(f.implementsVisitorMethod(o)){var p,d=r[l];d?p=u.getArgumentValues(d,i):(p=Object.create(null),i.arguments.forEach((function(e){p[e.name.value]=y(e.value)}))),s.push(new f({name:l,args:p,visitedType:a,schema:e,context:t}))}}})),s.length>0&&s.forEach((function(e){i[e.name].push(e)})),s):s})),f(e),i},n.getDeclaredDirectives=function(e,n){var t=Object.create(null);return d(e.getDirectives(),(function(e){t[e.name]=e})),d(n,(function(n,r){var i=n.getDirectiveDeclaration(r,e);i&&(t[r]=i)})),d(t,(function(e,t){if(c.call(n,t)){var r=n[t];d(e.locations,(function(e){var n=function(e){return"visit"+e.replace(/([^_]*)_?/g,(function(e,n){return n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()}))}(e);if(s.implementsVisitorMethod(n)&&!r.implementsVisitorMethod(n))throw new Error("SchemaDirectiveVisitor for @"+t+" must implement "+n+" method")}))}})),t},n}(s);function d(e,n){Object.keys(e).forEach((function(t){n(e[t],t)}))}function v(e,n){var t=0;Object.keys(e).forEach((function(r){var i=n(e[r],r);if(void 0!==i)return null===i?(delete e[r],void t++):void(e[r]=i)})),t>0&&Array.isArray(e)&&e.splice(0).forEach((function(n){e.push(n)}))}function y(e){switch(e.kind){case o.Kind.NULL:return null;case o.Kind.INT:return parseInt(e.value,10);case o.Kind.FLOAT:return parseFloat(e.value);case o.Kind.STRING:case o.Kind.ENUM:case o.Kind.BOOLEAN:return e.value;case o.Kind.LIST:return e.values.map(y);case o.Kind.OBJECT:var n=Object.create(null);return e.fields.forEach((function(e){n[e.name.value]=y(e.value)})),n;default:throw new Error("Unexpected value kind: "+e.kind)}}n.SchemaDirectiveVisitor=p},,,,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void 0;var r=a(t(59)),i=a(t(151));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e,n,t){this.body=e,this.name=n||"GraphQL request",this.locationOffset=t||{line:1,column:1},this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};n.Source=o,(0,i.default)(o)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){var t,r=/\r\n|[\n\r]/g,i=1,a=n+1;for(;(t=r.exec(e.body))&&t.index<n;)i+=1,a=n+1-(t.index+t[0].length);return{line:i,column:a}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createLexer=function(e,n){var t=new l(u.TokenKind.SOF,0,0,0,0,null);return{source:e,options:n,lastToken:t,token:t,line:1,lineStart:0,advance:c,lookahead:s}},n.isPunctuatorToken=function(e){var n=e.kind;return n===u.TokenKind.BANG||n===u.TokenKind.DOLLAR||n===u.TokenKind.AMP||n===u.TokenKind.PAREN_L||n===u.TokenKind.PAREN_R||n===u.TokenKind.SPREAD||n===u.TokenKind.COLON||n===u.TokenKind.EQUALS||n===u.TokenKind.AT||n===u.TokenKind.BRACKET_L||n===u.TokenKind.BRACKET_R||n===u.TokenKind.BRACE_L||n===u.TokenKind.PIPE||n===u.TokenKind.BRACE_R};var r,i=(r=t(152))&&r.__esModule?r:{default:r},a=t(187),o=t(121),u=t(120);function c(){return this.lastToken=this.token,this.token=this.lookahead()}function s(){var e=this.token;if(e.kind!==u.TokenKind.EOF)do{e=e.next||(e.next=p(this,e))}while(e.kind===u.TokenKind.COMMENT);return e}function l(e,n,t,r,i,a,o){this.kind=e,this.start=n,this.end=t,this.line=r,this.column=i,this.value=o,this.prev=a,this.next=null}function f(e){return isNaN(e)?u.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function p(e,n){var t=e.source,r=t.body,i=r.length,c=function(e,n,t){var r=e.length,i=n;for(;i<r;){var a=e.charCodeAt(i);if(9===a||32===a||44===a||65279===a)++i;else if(10===a)++i,++t.line,t.lineStart=i;else{if(13!==a)break;10===e.charCodeAt(i+1)?i+=2:++i,++t.line,t.lineStart=i}}return i}(r,n.end,e),s=e.line,p=1+c-e.lineStart;if(c>=i)return new l(u.TokenKind.EOF,i,i,s,p,n);var y=r.charCodeAt(c);switch(y){case 33:return new l(u.TokenKind.BANG,c,c+1,s,p,n);case 35:return function(e,n,t,r,i){var a,o=e.body,c=n;do{a=o.charCodeAt(++c)}while(!isNaN(a)&&(a>31||9===a));return new l(u.TokenKind.COMMENT,n,c,t,r,i,o.slice(n+1,c))}(t,c,s,p,n);case 36:return new l(u.TokenKind.DOLLAR,c,c+1,s,p,n);case 38:return new l(u.TokenKind.AMP,c,c+1,s,p,n);case 40:return new l(u.TokenKind.PAREN_L,c,c+1,s,p,n);case 41:return new l(u.TokenKind.PAREN_R,c,c+1,s,p,n);case 46:if(46===r.charCodeAt(c+1)&&46===r.charCodeAt(c+2))return new l(u.TokenKind.SPREAD,c,c+3,s,p,n);break;case 58:return new l(u.TokenKind.COLON,c,c+1,s,p,n);case 61:return new l(u.TokenKind.EQUALS,c,c+1,s,p,n);case 64:return new l(u.TokenKind.AT,c,c+1,s,p,n);case 91:return new l(u.TokenKind.BRACKET_L,c,c+1,s,p,n);case 93:return new l(u.TokenKind.BRACKET_R,c,c+1,s,p,n);case 123:return new l(u.TokenKind.BRACE_L,c,c+1,s,p,n);case 124:return new l(u.TokenKind.PIPE,c,c+1,s,p,n);case 125:return new l(u.TokenKind.BRACE_R,c,c+1,s,p,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,n,t,r,i){var a=e.body,o=a.length,c=n+1,s=0;for(;c!==o&&!isNaN(s=a.charCodeAt(c))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++c;return new l(u.TokenKind.NAME,n,c,t,r,i,a.slice(n,c))}(t,c,s,p,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,n,t,r,i,o){var c=e.body,s=t,p=n,v=!1;45===s&&(s=c.charCodeAt(++p));if(48===s){if((s=c.charCodeAt(++p))>=48&&s<=57)throw(0,a.syntaxError)(e,p,"Invalid number, unexpected digit after 0: ".concat(f(s),"."))}else p=d(e,p,s),s=c.charCodeAt(p);46===s&&(v=!0,s=c.charCodeAt(++p),p=d(e,p,s),s=c.charCodeAt(p));69!==s&&101!==s||(v=!0,43!==(s=c.charCodeAt(++p))&&45!==s||(s=c.charCodeAt(++p)),p=d(e,p,s),s=c.charCodeAt(p));if(46===s||69===s||101===s)throw(0,a.syntaxError)(e,p,"Invalid number, expected digit but got: ".concat(f(s),"."));return new l(v?u.TokenKind.FLOAT:u.TokenKind.INT,n,p,r,i,o,c.slice(n,p))}(t,c,y,s,p,n);case 34:return 34===r.charCodeAt(c+1)&&34===r.charCodeAt(c+2)?function(e,n,t,r,i,c){var s=e.body,p=n+3,d=p,v=0,y="";for(;p<s.length&&!isNaN(v=s.charCodeAt(p));){if(34===v&&34===s.charCodeAt(p+1)&&34===s.charCodeAt(p+2))return y+=s.slice(d,p),new l(u.TokenKind.BLOCK_STRING,n,p+3,t,r,i,(0,o.dedentBlockStringValue)(y));if(v<32&&9!==v&&10!==v&&13!==v)throw(0,a.syntaxError)(e,p,"Invalid character within String: ".concat(f(v),"."));10===v?(++p,++c.line,c.lineStart=p):13===v?(10===s.charCodeAt(p+1)?p+=2:++p,++c.line,c.lineStart=p):92===v&&34===s.charCodeAt(p+1)&&34===s.charCodeAt(p+2)&&34===s.charCodeAt(p+3)?(y+=s.slice(d,p)+'"""',d=p+=4):++p}throw(0,a.syntaxError)(e,p,"Unterminated string.")}(t,c,s,p,n,e):function(e,n,t,r,i){var o=e.body,c=n+1,s=c,p=0,d="";for(;c<o.length&&!isNaN(p=o.charCodeAt(c))&&10!==p&&13!==p;){if(34===p)return d+=o.slice(s,c),new l(u.TokenKind.STRING,n,c+1,t,r,i,d);if(p<32&&9!==p)throw(0,a.syntaxError)(e,c,"Invalid character within String: ".concat(f(p),"."));if(++c,92===p){switch(d+=o.slice(s,c-1),p=o.charCodeAt(c)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var y=(m=o.charCodeAt(c+1),T=o.charCodeAt(c+2),g=o.charCodeAt(c+3),b=o.charCodeAt(c+4),v(m)<<12|v(T)<<8|v(g)<<4|v(b));if(y<0){var h=o.slice(c+1,c+5);throw(0,a.syntaxError)(e,c,"Invalid character escape sequence: \\u".concat(h,"."))}d+=String.fromCharCode(y),c+=4;break;default:throw(0,a.syntaxError)(e,c,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}++c,s=c}}var m,T,g,b;throw(0,a.syntaxError)(e,c,"Unterminated string.")}(t,c,s,p,n)}throw(0,a.syntaxError)(t,c,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return"Cannot contain the invalid character ".concat(f(e),".");if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character ".concat(f(e),".")}(y))}function d(e,n,t){var r=e.body,i=n,o=t;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw(0,a.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(f(o),"."))}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}(0,i.default)(l,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=function(e,n,t){return new r.GraphQLError("Syntax Error: ".concat(t),void 0,e,[n])};var r=t(5)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.locatedError=function(e,n,t){if(e&&Array.isArray(e.path))return e;return new r.GraphQLError(e&&e.message,e&&e.nodes||n,e&&e.source,e&&e.positions,t,e)};var r=t(5)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){if(null===Object.getPrototypeOf(e))return e;for(var n=Object.create(null),t=0,r=(0,i.default)(e);t<r.length;t++){var a=r[t],o=a[0],u=a[1];n[o]=u}return n};var r,i=(r=t(111))&&r.__esModule?r:{default:r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=function(e,n){return e instanceof n};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getOperationRootType=function(e,n){if("query"===n.operation){var t=e.getQueryType();if(!t)throw new r.GraphQLError("Schema does not define the required query root type.",n);return t}if("mutation"===n.operation){var i=e.getMutationType();if(!i)throw new r.GraphQLError("Schema is not configured for mutations.",n);return i}if("subscription"===n.operation){var a=e.getSubscriptionType();if(!a)throw new r.GraphQLError("Schema is not configured for subscriptions.",n);return a}throw new r.GraphQLError("Can only have query, mutation and subscription operations.",n)};var r=t(5)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.coerceInputValue=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return h(e,n,t)};var r=t(47),i=v(t(49)),a=v(t(13)),o=v(t(48)),u=v(t(113)),c=v(t(65)),s=v(t(114)),l=v(t(192)),f=t(125),p=t(5),d=t(11);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,n,t){var r="Invalid value "+(0,a.default)(n);throw e.length>0&&(r+=' at "value'.concat((0,l.default)(e),'": ')),t.message=r+": "+t.message,t}function h(e,n,t,l){if((0,d.isNonNullType)(n))return null!=e?h(e,n.ofType,t,l):void t((0,f.pathToArray)(l),e,new p.GraphQLError("Expected non-nullable type ".concat((0,a.default)(n)," not to be null.")));if(null==e)return null;if((0,d.isListType)(n)){var v=n.ofType;if((0,r.isCollection)(e)){var y=[];return(0,r.forEach)(e,(function(e,n){y.push(h(e,v,t,(0,f.addPath)(l,n)))})),y}return[h(e,v,t,l)]}if((0,d.isInputObjectType)(n)){if(!(0,c.default)(e))return void t((0,f.pathToArray)(l),e,new p.GraphQLError("Expected type ".concat(n.name," to be an object.")));for(var m={},T=n.getFields(),g=0,b=(0,i.default)(T);g<b.length;g++){var E=b[g],O=e[E.name];if(void 0!==O)m[E.name]=h(O,E.type,t,(0,f.addPath)(l,E.name));else if(void 0!==E.defaultValue)m[E.name]=E.defaultValue;else if((0,d.isNonNullType)(E.type)){var _=(0,a.default)(E.type);t((0,f.pathToArray)(l),e,new p.GraphQLError("Field ".concat(E.name," of required type ").concat(_," was not provided.")))}}for(var N=0,I=Object.keys(e);N<I.length;N++){var S=I[N];if(!T[S]){var D=(0,s.default)(S,Object.keys(n.getFields()));t((0,f.pathToArray)(l),e,new p.GraphQLError('Field "'.concat(S,'" is not defined by type ').concat(n.name,".")+(0,u.default)(D)))}}return m}if((0,d.isScalarType)(n)){var L;try{L=n.parseValue(e)}catch(r){return void t((0,f.pathToArray)(l),e,new p.GraphQLError("Expected type ".concat(n.name,". ")+r.message,void 0,void 0,void 0,void 0,r))}return void 0===L&&t((0,f.pathToArray)(l),e,new p.GraphQLError("Expected type ".concat(n.name,"."))),L}if((0,d.isEnumType)(n)){if("string"==typeof e){var A=n.getValue(e);if(A)return A.value}var j=(0,s.default)(String(e),n.getValues().map((function(e){return e.name})));t((0,f.pathToArray)(l),e,new p.GraphQLError("Expected type ".concat(n.name,".")+(0,u.default)(j)))}else(0,o.default)(!1,"Unexpected input type: "+(0,a.default)(n))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.versionInfo=n.version=void 0;n.version="14.7.0";var r=Object.freeze({major:14,minor:7,patch:0,preReleaseTag:null});n.versionInfo=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.graphql=function(e,n,t,r,i,a,o,u){var c=arguments;return new Promise((function(l){return l(1===c.length?s(e):s({schema:e,source:n,rootValue:t,contextValue:r,variableValues:i,operationName:a,fieldResolver:o,typeResolver:u}))}))},n.graphqlSync=function(e,n,t,r,a,o,u,c){var l=s(1===arguments.length?e:{schema:e,source:n,rootValue:t,contextValue:r,variableValues:a,operationName:o,fieldResolver:u,typeResolver:c});if((0,i.default)(l))throw new Error("GraphQL execution failed to complete synchronously.");return l};var r,i=(r=t(153))&&r.__esModule?r:{default:r},a=t(122),o=t(160),u=t(154),c=t(116);function s(e){var n,t=e.schema,r=e.source,i=e.rootValue,s=e.contextValue,l=e.variableValues,f=e.operationName,p=e.fieldResolver,d=e.typeResolver,v=(0,u.validateSchema)(t);if(v.length>0)return{errors:v};try{n=(0,a.parse)(r)}catch(e){return{errors:[e]}}var y=(0,o.validate)(t,n);return y.length>0?{errors:y}:(0,c.execute)({schema:t,document:n,rootValue:i,contextValue:s,variableValues:l,operationName:f,fieldResolver:p,typeResolver:d})}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.badValueMessage=d,n.badEnumValueMessage=v,n.requiredFieldMessage=y,n.unknownFieldMessage=h,n.ValuesOfCorrectType=function(e){return{NullValue:function(n){var t=e.getInputType();(0,f.isNonNullType)(t)&&e.reportError(new s.GraphQLError(d((0,a.default)(t),(0,l.print)(n)),n))},ListValue:function(n){var t=(0,f.getNullableType)(e.getParentInputType());if(!(0,f.isListType)(t))return m(e,n),!1},ObjectValue:function(n){var t=(0,f.getNamedType)(e.getInputType());if(!(0,f.isInputObjectType)(t))return m(e,n),!1;for(var o=(0,i.default)(n.fields,(function(e){return e.name.value})),u=0,c=(0,r.default)(t.getFields());u<c.length;u++){var l=c[u];if(!o[l.name]&&(0,f.isRequiredInputField)(l)){var p=(0,a.default)(l.type);e.reportError(new s.GraphQLError(y(t.name,l.name,p),n))}}},ObjectField:function(n){var t=(0,f.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,f.isInputObjectType)(t)){var r=(0,c.default)(n.name.value,Object.keys(t.getFields()));e.reportError(new s.GraphQLError(h(t.name,n.name.value,r),n))}},EnumValue:function(n){var t=(0,f.getNamedType)(e.getInputType());(0,f.isEnumType)(t)?t.getValue(n.value)||e.reportError(new s.GraphQLError(v(t.name,(0,l.print)(n),T(t,n)),n)):m(e,n)},IntValue:function(n){return m(e,n)},FloatValue:function(n){return m(e,n)},StringValue:function(n){return m(e,n)},BooleanValue:function(n){return m(e,n)}}};var r=p(t(49)),i=p(t(94)),a=p(t(13)),o=p(t(124)),u=p(t(113)),c=p(t(114)),s=t(5),l=t(63),f=t(11);function p(e){return e&&e.__esModule?e:{default:e}}function d(e,n,t){return"Expected type ".concat(e,", found ").concat(n)+(t?"; ".concat(t):".")}function v(e,n,t){return"Expected type ".concat(e,", found ").concat(n,".")+(0,u.default)("the enum value",t)}function y(e,n,t){return"Field ".concat(e,".").concat(n," of required type ").concat(t," was not provided.")}function h(e,n,t){return'Field "'.concat(n,'" is not defined by type ').concat(e,".")+(0,u.default)(t)}function m(e,n){var t=e.getInputType();if(t){var r=(0,f.getNamedType)(t);if((0,f.isScalarType)(r))try{var i=r.parseLiteral(n,void 0);(0,o.default)(i)&&e.reportError(new s.GraphQLError(d((0,a.default)(t),(0,l.print)(n)),n))}catch(r){e.reportError(new s.GraphQLError(d((0,a.default)(t),(0,l.print)(n),r.message),n,void 0,void 0,void 0,r))}else{var u=(0,f.isEnumType)(r)?v((0,a.default)(t),(0,l.print)(n),T(r,n)):d((0,a.default)(t),(0,l.print)(n));e.reportError(new s.GraphQLError(u,n))}}}function T(e,n){var t=e.getValues().map((function(e){return e.name}));return(0,c.default)((0,l.print)(n),t)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ValidationContext=n.SDLValidationContext=n.ASTValidationContext=void 0;var r=t(18),i=t(28),a=t(128);function o(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var u=function(){function e(e,n){this._ast=e,this._errors=[],this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}var n=e.prototype;return n.reportError=function(e){this._errors.push(e),this._onError&&this._onError(e)},n.getErrors=function(){return this._errors},n.getDocument=function(){return this._ast},n.getFragment=function(e){var n=this._fragments;return n||(this._fragments=n=this.getDocument().definitions.reduce((function(e,n){return n.kind===r.Kind.FRAGMENT_DEFINITION&&(e[n.name.value]=n),e}),Object.create(null))),n[e]},n.getFragmentSpreads=function(e){var n=this._fragmentSpreads.get(e);if(!n){n=[];for(var t=[e];0!==t.length;)for(var i=0,a=t.pop().selections;i<a.length;i++){var o=a[i];o.kind===r.Kind.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&t.push(o.selectionSet)}this._fragmentSpreads.set(e,n)}return n},n.getRecursivelyReferencedFragments=function(e){var n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];for(var t=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),a=0,o=this.getFragmentSpreads(i);a<o.length;a++){var u=o[a].name.value;if(!0!==t[u]){t[u]=!0;var c=this.getFragment(u);c&&(n.push(c),r.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n},e}();n.ASTValidationContext=u;var c=function(e){function n(n,t,r){var i;return(i=e.call(this,n,r)||this)._schema=t,i}return o(n,e),n.prototype.getSchema=function(){return this._schema},n}(u);n.SDLValidationContext=c;var s=function(e){function n(n,t,r,i){var a;return(a=e.call(this,t,i)||this)._schema=n,a._typeInfo=r,a._variableUsages=new Map,a._recursiveVariableUsages=new Map,a}o(n,e);var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(e){var n=this._variableUsages.get(e);if(!n){var t=[],r=new a.TypeInfo(this._schema);(0,i.visit)(e,(0,i.visitWithTypeInfo)(r,{VariableDefinition:function(){return!1},Variable:function(e){t.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),n=t,this._variableUsages.set(e,n)}return n},t.getRecursiveVariableUsages=function(e){var n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(var t=0,r=this.getRecursivelyReferencedFragments(e);t<r.length;t++){var i=r[t];n=n.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,n)}return n},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},n}(u);n.ValidationContext=s},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"subscribe",{enumerable:!0,get:function(){return r.subscribe}}),Object.defineProperty(n,"createSourceEventStream",{enumerable:!0,get:function(){return r.createSourceEventStream}});var r=t(334)},function(e,n){var t=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};function r(e,n){return n.reduce((function(e,n){return n.transformSchema?n.transformSchema(e):e}),e)}function i(e,n){return n.reduce((function(e,n){return n.transformRequest?n.transformRequest(e):e}),e)}function a(e,n){return n.reduce((function(e,n){return n.transformResult?n.transformResult(e):e}),e)}Object.defineProperty(n,"__esModule",{value:!0}),n.applySchemaTransforms=r,n.applyRequestTransforms=i,n.applyResultTransforms=a,n.composeTransforms=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=t(e).reverse();return{transformSchema:function(n){return r(n,e)},transformRequest:function(e){return i(e,o)},transformResult:function(e){return a(e,o)}}}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);n.default=function(e,n){var t=e.__typename;if(!t)throw new Error("Did not fetch typename for object, unable to resolve interface.");var i=n.getType(t);if(!(i instanceof r.GraphQLObjectType))throw new Error("__typename did not match an object type: "+t);return i}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(81),a=t(202),o=t(287);n.default=function(e,n,t,u){if(!e)return null;var c=o.getResponseKeyFromInfo(u),s=a.getErrorsFromParent(e,c);if("OWN"===s.kind)throw i.locatedError(new Error(s.error.message),u.fieldNodes,r.responsePathAsArray(u.path));var l=e[c];return null==l&&(l=e[u.fieldName]),!l&&e.data&&e.data[c]&&(l=e.data[c]),s.errors&&(l=a.annotateWithChildrenErrors(l,s.errors)),l}},function(e,n,t){(function(e){var r,i=this&&this.__extends||(r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var o=t(6),u=t(81),c=t(287);function s(e,t){var r;if(!t||0===t.length)return e;if(Array.isArray(e)){var i={};return t.forEach((function(e){if(e.path){var n=e.path[1],t=i[n]||[];t.push(a(a({},e),{path:e.path.slice(1)})),i[n]=t}})),e.map((function(e,n){return s(e,i[n])}))}return a(a({},e),((r={})[n.ERROR_SYMBOL]=t.map((function(e){return a(a({},e),e.path?{path:e.path.slice(1)}:{})})),r))}void 0!==e&&"Symbol"in e||"undefined"!=typeof window&&"Symbol"in window?n.ERROR_SYMBOL=Symbol("subSchemaErrors"):n.ERROR_SYMBOL="@@__subSchemaErrors",n.annotateWithChildrenErrors=s,n.getErrorsFromParent=function(e,t){for(var r=[],i=0,a=e&&e[n.ERROR_SYMBOL]||[];i<a.length;i++){var o=a[i];if(!o.path||1===o.path.length&&o.path[0]===t)return{kind:"OWN",error:o};o.path[0]===t&&r.push(o)}return{kind:"CHILDREN",errors:r}};var l=function(e){function n(n,t){var r=e.call(this,n)||this;return r.errors=t,r}return i(n,e),n}(Error);n.checkResultAndHandleErrors=function(e,n,t){if(t||(t=c.getResponseKeyFromInfo(n)),e.errors&&(!e.data||null==e.data[t])){var r=1===e.errors.length&&((i=e.errors[0]).result||i.extensions||i.originalError&&i.originalError.result)?e.errors[0]:new l(e.errors.map((function(e){return e.message})).join("\n"),e.errors);throw u.locatedError(r,n.fieldNodes,o.responsePathAsArray(n.path))}var i,a=e.data[t];return e.errors&&(a=s(a,e.errors)),a}}).call(this,t(12))},function(e,n,t){var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,u)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},a=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var o=t(6),u=t(199),c=t(290),s=t(291),l=t(293),f=t(294),p=t(372),d=t(295),v=t(296),y=t(373);function h(e){return r(this,void 0,void 0,(function(){var n,t,r,h,m,T,g,b,E,O,_;return i(this,(function(i){switch(i.label){case 0:if(n=e.info,t=e.args,r=void 0===t?{}:t,h=e.operation||n.operation.operation,m=function(e,n,t,r,i,u){var c=[],s=[];t.forEach((function(e){var n=e.selectionSet?e.selectionSet.selections:[];c=c.concat(n),s=s.concat(e.arguments||[])}));var l=null;c.length>0&&(l={kind:o.Kind.SELECTION_SET,selections:c});var f={kind:o.Kind.FIELD,alias:null,arguments:s,selectionSet:l,name:{kind:o.Kind.NAME,value:e}},p={kind:o.Kind.SELECTION_SET,selections:[f]},d={kind:o.Kind.OPERATION_DEFINITION,operation:n,variableDefinitions:i,selectionSet:p,name:u};return{kind:o.Kind.DOCUMENT,definitions:a([d],r)}}(e.fieldName,h,n.fieldNodes,Object.keys(n.fragments).map((function(e){return n.fragments[e]})),n.operation.variableDefinitions,n.operation.name),T={document:m,variables:n.variableValues},g=a(e.transforms||[],[new d.default(n.schema,e.schema)]),n.mergeInfo&&n.mergeInfo.fragments&&g.push(new v.default(e.schema,n.mergeInfo.fragments)),g=g.concat([new c.default(e.schema,r),new s.default(e.schema),new l.default(e.schema),new f.default(n,e.fieldName)]),o.isEnumType(e.info.returnType)&&(g=g.concat(new y.default(e.info.returnType))),b=u.applyRequestTransforms(T,g),!e.skipValidation&&(E=o.validate(e.schema,b.document)).length>0)throw E;return"query"!==h&&"mutation"!==h?[3,2]:(O=u.applyResultTransforms,[4,o.execute(e.schema,b.document,n.rootValue,e.context,b.variables)]);case 1:return[2,O.apply(void 0,[i.sent(),g])];case 2:return"subscription"!==h?[3,4]:[4,o.subscribe(e.schema,b.document,n.rootValue,e.context,b.variables)];case 3:return _=i.sent(),[2,p.default(_,(function(e){var n,t=u.applyResultTransforms(e,g);return(n={})[Object.keys(e.data)[0]]=t,n}))];case 4:return[2]}}))}))}n.default=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if(e instanceof o.GraphQLSchema)throw new Error("Passing positional arguments to delegateToSchema is a deprecated. Please pass named parameters instead.");return h(e)}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(289),a=t(129),o=t(130),u=function(){function e(e){this.transform=e}return e.prototype.transformSchema=function(e){var n,t=this;return a.visitSchema(e,((n={})[a.VisitSchemaKind.QUERY]=function(e){return c(e,(function(e,n){return t.transform("Query",e,n)}))},n[a.VisitSchemaKind.MUTATION]=function(e){return c(e,(function(e,n){return t.transform("Mutation",e,n)}))},n[a.VisitSchemaKind.SUBSCRIPTION]=function(e){return c(e,(function(e,n){return t.transform("Subscription",e,n)}))},n))},e}();function c(e,n){var t=o.createResolveType((function(e,n){return n})),a=e.getFields(),u={};return Object.keys(a).forEach((function(e){var r=a[e],i=n(e,r);void 0===i?u[e]=o.fieldToFieldConfig(r,t,!0):null!==i&&(i.name?u[i.name]=i.field:u[e]=i)})),i.default(u)?null:new r.GraphQLObjectType({name:e.name,description:e.description,astNode:e.astNode,fields:u})}n.default=u},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},n.printSourceLocation=i;var r=t(185);function i(e,n){var t=e.locationOffset.column-1,r=o(t)+e.body,i=n.line-1,u=e.locationOffset.line-1,c=n.line+u,s=1===n.line?t:0,l=n.column+s,f="".concat(e.name,":").concat(c,":").concat(l,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){for(var v=Math.floor(l/80),y=l%80,h=[],m=0;m<d.length;m+=80)h.push(d.slice(m,m+80));return f+a([["".concat(c),h[0]]].concat(h.slice(1,v+1).map((function(e){return["",e]})),[[" ",o(y-1)+"^"],["",h[v+1]]]))}return f+a([["".concat(c-1),p[i-1]],["".concat(c),d],["",o(l-1)+"^"],["".concat(c+1),p[i+1]]])}function a(e){var n=e.filter((function(e){e[0];return void 0!==e[1]})),t=Math.max.apply(Math,n.map((function(e){return e[0].length})));return n.map((function(e){var n,r=e[0],i=e[1];return o(t-(n=r).length)+n+(i?" | "+i:" |")})).join("\n")}function o(e){return Array(e+1).join(" ")}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return null==e||e!=e}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assertValidName=function(e){var n=u(e);if(n)throw n;return e},n.isValidNameError=u;var r,i=(r=t(59))&&r.__esModule?r:{default:r},a=t(5);var o=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function u(e,n){return"string"==typeof e||(0,i.default)(0,"Expected string"),e.length>1&&"_"===e[0]&&"_"===e[1]?new a.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'),n):o.test(e)?void 0:new a.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),n)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){for(var t=Object.create(null),r=0,a=(0,i.default)(e);r<a.length;r++){var o=a[r],u=o[0],c=o[1];t[u]=n(c,u)}return t};var r,i=(r=t(111))&&r.__esModule?r:{default:r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.valueFromASTUntyped=function e(n,t){switch(n.kind){case u.Kind.NULL:return null;case u.Kind.INT:return parseInt(n.value,10);case u.Kind.FLOAT:return parseFloat(n.value);case u.Kind.STRING:case u.Kind.ENUM:case u.Kind.BOOLEAN:return n.value;case u.Kind.LIST:return n.values.map((function(n){return e(n,t)}));case u.Kind.OBJECT:return(0,a.default)(n.fields,(function(e){return e.name.value}),(function(n){return e(n.value,t)}));case u.Kind.VARIABLE:var c=n.name.value;return t&&!(0,o.default)(t[c])?t[c]:void 0}(0,i.default)(!1,"Unexpected value node: "+(0,r.default)(n))};var r=c(t(13)),i=c(t(48)),a=c(t(112)),o=c(t(124)),u=t(18);function c(e){return e&&e.__esModule?e:{default:e}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.specifiedSDLRules=n.specifiedRules=void 0;var r=t(250),i=t(251),a=t(252),o=t(253),u=t(254),c=t(255),s=t(256),l=t(257),f=t(258),p=t(259),d=t(260),v=t(261),y=t(262),h=t(263),m=t(264),T=t(265),g=t(266),b=t(267),E=t(268),O=t(269),_=t(270),N=t(196),I=t(271),S=t(272),D=t(273),L=t(274),A=t(275),j=t(276),w=t(277),P=t(278),k=t(279),F=t(280),R=t(281),M=Object.freeze([r.ExecutableDefinitions,i.UniqueOperationNames,a.LoneAnonymousOperation,o.SingleFieldSubscriptions,u.KnownTypeNames,c.FragmentsOnCompositeTypes,s.VariablesAreInputTypes,l.ScalarLeafs,f.FieldsOnCorrectType,p.UniqueFragmentNames,d.KnownFragmentNames,v.NoUnusedFragments,y.PossibleFragmentSpreads,h.NoFragmentCycles,m.UniqueVariableNames,T.NoUndefinedVariables,g.NoUnusedVariables,b.KnownDirectives,E.UniqueDirectivesPerLocation,O.KnownArgumentNames,_.UniqueArgumentNames,N.ValuesOfCorrectType,I.ProvidedRequiredArguments,S.VariablesInAllowedPosition,D.OverlappingFieldsCanBeMerged,L.UniqueInputFieldNames]);n.specifiedRules=M;var x=Object.freeze([A.LoneSchemaDefinition,j.UniqueOperationTypes,w.UniqueTypeNames,P.UniqueEnumValueNames,k.UniqueFieldDefinitionNames,F.UniqueDirectiveNames,u.KnownTypeNames,b.KnownDirectives,E.UniqueDirectivesPerLocation,R.PossibleTypeExtensions,O.KnownArgumentNamesOnDirectives,_.UniqueArgumentNames,L.UniqueInputFieldNames,I.ProvidedRequiredArgumentsOnDirectives]);n.specifiedSDLRules=x},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.nonExecutableDefinitionMessage=o,n.ExecutableDefinitions=function(e){return{Document:function(n){for(var t=0,u=n.definitions;t<u.length;t++){var c=u[t];(0,a.isExecutableDefinitionNode)(c)||e.reportError(new r.GraphQLError(o(c.kind===i.Kind.SCHEMA_DEFINITION||c.kind===i.Kind.SCHEMA_EXTENSION?"schema":c.name.value),c))}return!1}}};var r=t(5),i=t(18),a=t(110);function o(e){return"The ".concat(e," definition is not executable.")}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateOperationNameMessage=i,n.UniqueOperationNames=function(e){var n=Object.create(null);return{OperationDefinition:function(t){var a=t.name;return a&&(n[a.value]?e.reportError(new r.GraphQLError(i(a.value),[n[a.value],a])):n[a.value]=a),!1},FragmentDefinition:function(){return!1}}};var r=t(5);function i(e){return'There can be only one operation named "'.concat(e,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.anonOperationNotAloneMessage=a,n.LoneAnonymousOperation=function(e){var n=0;return{Document:function(e){n=e.definitions.filter((function(e){return e.kind===i.Kind.OPERATION_DEFINITION})).length},OperationDefinition:function(t){!t.name&&n>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",t))}}};var r=t(5),i=t(18);function a(){return"This anonymous operation must be the only defined operation."}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.singleFieldOnlyMessage=i,n.SingleFieldSubscriptions=function(e){return{OperationDefinition:function(n){"subscription"===n.operation&&1!==n.selectionSet.selections.length&&e.reportError(new r.GraphQLError(i(n.name&&n.name.value),n.selectionSet.selections.slice(1)))}}};var r=t(5);function i(e){return e?'Subscription "'.concat(e,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field."}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownTypeMessage=c,n.KnownTypeNames=function(e){for(var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null),u=0,l=e.getDocument().definitions;u<l.length;u++){var f=l[u];(0,o.isTypeDefinitionNode)(f)&&(r[f.name.value]=!0)}var p=Object.keys(t).concat(Object.keys(r));return{NamedType:function(n,u,l,f,d){var v,y=n.name.value;if(!t[y]&&!r[y]){var h=d[2]||l,m=(v=h,Boolean(v&&!Array.isArray(v)&&((0,o.isTypeSystemDefinitionNode)(v)||(0,o.isTypeSystemExtensionNode)(v))));if(m&&function(e){return-1!==s.indexOf(e)}(y))return;var T=(0,i.default)(y,m?s.concat(p):p);e.reportError(new a.GraphQLError(c(y,T),n))}}}};var r=u(t(113)),i=u(t(114)),a=t(5),o=t(110);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n){return'Unknown type "'.concat(e,'".')+(0,r.default)(n.map((function(e){return'"'.concat(e,'"')})))}var s=t(66).specifiedScalarTypes.map((function(e){return e.name}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.inlineFragmentOnNonCompositeErrorMessage=u,n.fragmentOnNonCompositeErrorMessage=c,n.FragmentsOnCompositeTypes=function(e){return{InlineFragment:function(n){var t=n.typeCondition;if(t){var c=(0,o.typeFromAST)(e.getSchema(),t);c&&!(0,a.isCompositeType)(c)&&e.reportError(new r.GraphQLError(u((0,i.print)(t)),t))}},FragmentDefinition:function(n){var t=(0,o.typeFromAST)(e.getSchema(),n.typeCondition);t&&!(0,a.isCompositeType)(t)&&e.reportError(new r.GraphQLError(c(n.name.value,(0,i.print)(n.typeCondition)),n.typeCondition))}}};var r=t(5),i=t(63),a=t(11),o=t(67);function u(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}function c(e,n){return'Fragment "'.concat(e,'" cannot condition on non composite type "').concat(n,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.nonInputTypeOnVarMessage=u,n.VariablesAreInputTypes=function(e){return{VariableDefinition:function(n){var t=(0,o.typeFromAST)(e.getSchema(),n.type);if(t&&!(0,a.isInputType)(t)){var c=n.variable.name.value;e.reportError(new r.GraphQLError(u(c,(0,i.print)(n.type)),n.type))}}}};var r=t(5),i=t(63),a=t(11),o=t(67);function u(e,n){return'Variable "$'.concat(e,'" cannot be non-input type "').concat(n,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.noSubselectionAllowedMessage=u,n.requiredSubselectionMessage=c,n.ScalarLeafs=function(e){return{Field:function(n){var t=e.getType(),r=n.selectionSet;t&&((0,o.isLeafType)((0,o.getNamedType)(t))?r&&e.reportError(new a.GraphQLError(u(n.name.value,(0,i.default)(t)),r)):r||e.reportError(new a.GraphQLError(c(n.name.value,(0,i.default)(t)),n)))}}};var r,i=(r=t(13))&&r.__esModule?r:{default:r},a=t(5),o=t(11);function u(e,n){return'Field "'.concat(e,'" must not have a selection since type "').concat(n,'" has no subfields.')}function c(e,n){return'Field "'.concat(e,'" of type "').concat(n,'" must have a selection of subfields. Did you mean "').concat(e,' { ... }"?')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.undefinedFieldMessage=c,n.FieldsOnCorrectType=function(e){return{Field:function(n){var t=e.getParentType();if(t&&!e.getFieldDef()){var r=e.getSchema(),u=n.name.value,s=function(e,n,t){if((0,o.isAbstractType)(n)){for(var r=[],i=Object.create(null),a=0,u=e.getPossibleTypes(n);a<u.length;a++){var c=u[a];if(c.getFields()[t]){r.push(c.name);for(var s=0,l=c.getInterfaces();s<l.length;s++){var f=l[s];f.getFields()[t]&&(i[f.name]=(i[f.name]||0)+1)}}}return Object.keys(i).sort((function(e,n){return i[n]-i[e]})).concat(r)}return[]}(r,t,u),l=0!==s.length?[]:function(e,n,t){if((0,o.isObjectType)(n)||(0,o.isInterfaceType)(n)){var r=Object.keys(n.getFields());return(0,i.default)(t,r)}return[]}(0,t,u);e.reportError(new a.GraphQLError(c(u,t.name,s,l),n))}}}};var r=u(t(113)),i=u(t(114)),a=t(5),o=t(11);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,n,t,i){var a=t.map((function(e){return'"'.concat(e,'"')})),o=i.map((function(e){return'"'.concat(e,'"')}));return'Cannot query field "'.concat(e,'" on type "').concat(n,'".')+((0,r.default)("to use an inline fragment on",a)||(0,r.default)(o))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateFragmentNameMessage=i,n.UniqueFragmentNames=function(e){var n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(t){var a=t.name.value;return n[a]?e.reportError(new r.GraphQLError(i(a),[n[a],t.name])):n[a]=t.name,!1}}};var r=t(5);function i(e){return'There can be only one fragment named "'.concat(e,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownFragmentMessage=i,n.KnownFragmentNames=function(e){return{FragmentSpread:function(n){var t=n.name.value;e.getFragment(t)||e.reportError(new r.GraphQLError(i(t),n.name))}}};var r=t(5);function i(e){return'Unknown fragment "'.concat(e,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unusedFragMessage=i,n.NoUnusedFragments=function(e){var n=[],t=[];return{OperationDefinition:function(e){return n.push(e),!1},FragmentDefinition:function(e){return t.push(e),!1},Document:{leave:function(){for(var a=Object.create(null),o=0;o<n.length;o++)for(var u=n[o],c=0,s=e.getRecursivelyReferencedFragments(u);c<s.length;c++){a[s[c].name.value]=!0}for(var l=0;l<t.length;l++){var f=t[l],p=f.name.value;!0!==a[p]&&e.reportError(new r.GraphQLError(i(p),f))}}}}};var r=t(5);function i(e){return'Fragment "'.concat(e,'" is never used.')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeIncompatibleSpreadMessage=s,n.typeIncompatibleAnonSpreadMessage=l,n.PossibleFragmentSpreads=function(e){return{InlineFragment:function(n){var t=e.getType(),r=e.getParentType();(0,o.isCompositeType)(t)&&(0,o.isCompositeType)(r)&&!(0,c.doTypesOverlap)(e.getSchema(),t,r)&&e.reportError(new a.GraphQLError(l((0,i.default)(r),(0,i.default)(t)),n))},FragmentSpread:function(n){var t=n.name.value,r=function(e,n){var t=e.getFragment(n);if(t){var r=(0,u.typeFromAST)(e.getSchema(),t.typeCondition);if((0,o.isCompositeType)(r))return r}}(e,t),l=e.getParentType();r&&l&&!(0,c.doTypesOverlap)(e.getSchema(),r,l)&&e.reportError(new a.GraphQLError(s(t,(0,i.default)(l),(0,i.default)(r)),n))}}};var r,i=(r=t(13))&&r.__esModule?r:{default:r},a=t(5),o=t(11),u=t(67),c=t(156);function s(e,n,t){return'Fragment "'.concat(e,'" cannot be spread here as objects of type "').concat(n,'" can never be of type "').concat(t,'".')}function l(e,n){return'Fragment cannot be spread here as objects of type "'.concat(e,'" can never be of type "').concat(n,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cycleErrorMessage=i,n.NoFragmentCycles=function(e){var n=Object.create(null),t=[],a=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(o){return function o(u){if(n[u.name.value])return;var c=u.name.value;n[c]=!0;var s=e.getFragmentSpreads(u.selectionSet);if(0===s.length)return;a[c]=t.length;for(var l=0;l<s.length;l++){var f=s[l],p=f.name.value,d=a[p];if(t.push(f),void 0===d){var v=e.getFragment(p);v&&o(v)}else{var y=t.slice(d),h=y.slice(0,-1).map((function(e){return e.name.value}));e.reportError(new r.GraphQLError(i(p,h),y))}t.pop()}a[c]=void 0}(o),!1}}};var r=t(5);function i(e,n){var t=n.length?" via "+n.join(", "):"";return'Cannot spread fragment "'.concat(e,'" within itself').concat(t,".")}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateVariableMessage=i,n.UniqueVariableNames=function(e){var n=Object.create(null);return{OperationDefinition:function(){n=Object.create(null)},VariableDefinition:function(t){var a=t.variable.name.value;n[a]?e.reportError(new r.GraphQLError(i(a),[n[a],t.variable.name])):n[a]=t.variable.name}}};var r=t(5);function i(e){return'There can be only one variable named "'.concat(e,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.undefinedVarMessage=i,n.NoUndefinedVariables=function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(t){for(var a=e.getRecursiveVariableUsages(t),o=0;o<a.length;o++){var u=a[o].node,c=u.name.value;!0!==n[c]&&e.reportError(new r.GraphQLError(i(c,t.name&&t.name.value),[u,t]))}}},VariableDefinition:function(e){n[e.variable.name.value]=!0}}};var r=t(5);function i(e,n){return n?'Variable "$'.concat(e,'" is not defined by operation "').concat(n,'".'):'Variable "$'.concat(e,'" is not defined.')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unusedVariableMessage=i,n.NoUnusedVariables=function(e){var n=[];return{OperationDefinition:{enter:function(){n=[]},leave:function(t){for(var a=Object.create(null),o=e.getRecursiveVariableUsages(t),u=t.name?t.name.value:null,c=0;c<o.length;c++){a[o[c].node.name.value]=!0}for(var s=0,l=n;s<l.length;s++){var f=l[s],p=f.variable.name.value;!0!==a[p]&&e.reportError(new r.GraphQLError(i(p,u),f))}}},VariableDefinition:function(e){n.push(e)}}};var r=t(5);function i(e,n){return n?'Variable "$'.concat(e,'" is never used in operation "').concat(n,'".'):'Variable "$'.concat(e,'" is never used.')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownDirectiveMessage=u,n.misplacedDirectiveMessage=c,n.KnownDirectives=function(e){for(var n=Object.create(null),t=e.getSchema(),s=t?t.getDirectives():o.specifiedDirectives,l=0;l<s.length;l++){var f=s[l];n[f.name]=f.locations}for(var p=e.getDocument().definitions,d=0;d<p.length;d++){var v=p[d];v.kind===i.Kind.DIRECTIVE_DEFINITION&&(n[v.name.value]=v.locations.map((function(e){return e.value})))}return{Directive:function(t,o,s,l,f){var p=t.name.value,d=n[p];if(d){var v=function(e){var n=e[e.length-1];if(!Array.isArray(n))switch(n.kind){case i.Kind.OPERATION_DEFINITION:switch(n.operation){case"query":return a.DirectiveLocation.QUERY;case"mutation":return a.DirectiveLocation.MUTATION;case"subscription":return a.DirectiveLocation.SUBSCRIPTION}break;case i.Kind.FIELD:return a.DirectiveLocation.FIELD;case i.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case i.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case i.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case i.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case i.Kind.SCHEMA_DEFINITION:case i.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case i.Kind.SCALAR_TYPE_DEFINITION:case i.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case i.Kind.OBJECT_TYPE_DEFINITION:case i.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case i.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case i.Kind.INTERFACE_TYPE_DEFINITION:case i.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case i.Kind.UNION_TYPE_DEFINITION:case i.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case i.Kind.ENUM_TYPE_DEFINITION:case i.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case i.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case i.Kind.INPUT_OBJECT_TYPE_DEFINITION:case i.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case i.Kind.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}}(f);v&&-1===d.indexOf(v)&&e.reportError(new r.GraphQLError(c(p,v),t))}else e.reportError(new r.GraphQLError(u(p),t))}}};var r=t(5),i=t(18),a=t(123),o=t(50);function u(e){return'Unknown directive "'.concat(e,'".')}function c(e,n){return'Directive "'.concat(e,'" may not be used on ').concat(n,".")}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateDirectiveMessage=o,n.UniqueDirectivesPerLocation=function(e){for(var n=Object.create(null),t=e.getSchema(),u=t?t.getDirectives():a.specifiedDirectives,c=0;c<u.length;c++){var s=u[c];n[s.name]=!s.isRepeatable}for(var l=e.getDocument().definitions,f=0;f<l.length;f++){var p=l[f];p.kind===i.Kind.DIRECTIVE_DEFINITION&&(n[p.name.value]=!p.repeatable)}return{enter:function(t){var i=t.directives;if(i)for(var a=Object.create(null),u=0;u<i.length;u++){var c=i[u],s=c.name.value;n[s]&&(a[s]?e.reportError(new r.GraphQLError(o(s),[a[s],c])):a[s]=c)}}}};var r=t(5),i=t(18),a=t(50);function o(e){return'The directive "'.concat(e,'" can only be used once at this location.')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownArgMessage=f,n.unknownDirectiveArgMessage=p,n.KnownArgumentNames=function(e){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(t,!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},d(e),{Argument:function(n){var t=e.getArgument(),r=e.getFieldDef(),o=e.getParentType();if(!t&&r&&o){var u=n.name.value,c=r.args.map((function(e){return e.name}));e.reportError(new a.GraphQLError(f(u,r.name,o.name,(0,i.default)(u,c)),n))}}})},n.KnownArgumentNamesOnDirectives=d;var r=c(t(113)),i=c(t(114)),a=t(5),o=t(18),u=t(50);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n,t,i){return'Unknown argument "'.concat(e,'" on field "').concat(n,'" of type "').concat(t,'".')+(0,r.default)(i.map((function(e){return'"'.concat(e,'"')})))}function p(e,n,t){return'Unknown argument "'.concat(e,'" on directive "@').concat(n,'".')+(0,r.default)(t.map((function(e){return'"'.concat(e,'"')})))}function d(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():u.specifiedDirectives,c=0;c<r.length;c++){var s=r[c];n[s.name]=s.args.map((function(e){return e.name}))}for(var l=e.getDocument().definitions,f=0;f<l.length;f++){var d=l[f];d.kind===o.Kind.DIRECTIVE_DEFINITION&&(n[d.name.value]=d.arguments?d.arguments.map((function(e){return e.name.value})):[])}return{Directive:function(t){var r=t.name.value,o=n[r];if(t.arguments&&o)for(var u=0,c=t.arguments;u<c.length;u++){var s=c[u],l=s.name.value;if(-1===o.indexOf(l)){var f=(0,i.default)(l,o);e.reportError(new a.GraphQLError(p(l,r,f),s))}}return!1}}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateArgMessage=i,n.UniqueArgumentNames=function(e){var n=Object.create(null);return{Field:function(){n=Object.create(null)},Directive:function(){n=Object.create(null)},Argument:function(t){var a=t.name.value;return n[a]?e.reportError(new r.GraphQLError(i(a),[n[a],t.name])):n[a]=t.name,!1}}};var r=t(5);function i(e){return'There can be only one argument named "'.concat(e,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.missingFieldArgMessage=d,n.missingDirectiveArgMessage=v,n.ProvidedRequiredArguments=function(e){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(t,!0).forEach((function(n){p(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},y(e),{Field:{leave:function(n){var t=e.getFieldDef();if(!t)return!1;for(var o=n.arguments||[],u=(0,i.default)(o,(function(e){return e.name.value})),c=0,l=t.args;c<l.length;c++){var f=l[c];!u[f.name]&&(0,s.isRequiredArgument)(f)&&e.reportError(new a.GraphQLError(d(t.name,f.name,(0,r.default)(f.type)),n))}}}})},n.ProvidedRequiredArgumentsOnDirectives=y;var r=l(t(13)),i=l(t(94)),a=t(5),o=t(18),u=t(63),c=t(50),s=t(11);function l(e){return e&&e.__esModule?e:{default:e}}function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e,n,t){return'Field "'.concat(e,'" argument "').concat(n,'" of type "').concat(t,'" is required, but it was not provided.')}function v(e,n,t){return'Directive "@'.concat(e,'" argument "').concat(n,'" of type "').concat(t,'" is required, but it was not provided.')}function y(e){for(var n=Object.create(null),t=e.getSchema(),l=t?t.getDirectives():c.specifiedDirectives,f=0;f<l.length;f++){var p=l[f];n[p.name]=(0,i.default)(p.args.filter(s.isRequiredArgument),(function(e){return e.name}))}for(var d=e.getDocument().definitions,y=0;y<d.length;y++){var m=d[y];m.kind===o.Kind.DIRECTIVE_DEFINITION&&(n[m.name.value]=(0,i.default)(m.arguments?m.arguments.filter(h):[],(function(e){return e.name.value})))}return{Directive:{leave:function(t){var o=t.name.value,c=n[o];if(c)for(var l=t.arguments||[],f=(0,i.default)(l,(function(e){return e.name.value})),p=0,d=Object.keys(c);p<d.length;p++){var y=d[p];if(!f[y]){var h=c[y].type;e.reportError(new a.GraphQLError(v(o,y,(0,s.isType)(h)?(0,r.default)(h):(0,u.print)(h)),t))}}}}}}function h(e){return e.type.kind===o.Kind.NON_NULL_TYPE&&null==e.defaultValue}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.badVarPosMessage=l,n.VariablesInAllowedPosition=function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(t){for(var r=e.getRecursiveVariableUsages(t),o=0;o<r.length;o++){var u=r[o],s=u.node,p=u.type,d=u.defaultValue,v=s.name.value,y=n[v];if(y&&p){var h=e.getSchema(),m=(0,c.typeFromAST)(h,y.type);m&&!f(h,m,y.defaultValue,p,d)&&e.reportError(new a.GraphQLError(l(v,(0,i.default)(m),(0,i.default)(p)),[y,s]))}}}},VariableDefinition:function(e){n[e.variable.name.value]=e}}};var r,i=(r=t(13))&&r.__esModule?r:{default:r},a=t(5),o=t(18),u=t(11),c=t(67),s=t(156);function l(e,n,t){return'Variable "$'.concat(e,'" of type "').concat(n,'" used in position expecting type "').concat(t,'".')}function f(e,n,t,r,i){if((0,u.isNonNullType)(r)&&!(0,u.isNonNullType)(n)){if(!(null!=t&&t.kind!==o.Kind.NULL)&&!(void 0!==i))return!1;var a=r.ofType;return(0,s.isTypeSubTypeOf)(e,n,a)}return(0,s.isTypeSubTypeOf)(e,n,r)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.fieldsConflictMessage=p,n.OverlappingFieldsCanBeMerged=function(e){var n=new g,t=new Map;return{SelectionSet:function(r){for(var a=function(e,n,t,r,a){var o=[],u=m(e,n,r,a),c=u[0],s=u[1];if(function(e,n,t,r,a){for(var o=0,u=(0,i.default)(a);o<u.length;o++){var c=u[o],s=c[0],l=c[1];if(l.length>1)for(var f=0;f<l.length;f++)for(var p=f+1;p<l.length;p++){var d=h(e,t,r,!1,s,l[f],l[p]);d&&n.push(d)}}}(e,o,n,t,c),0!==s.length)for(var l=Object.create(null),f=0;f<s.length;f++){d(e,o,n,l,t,!1,c,s[f]);for(var p=f+1;p<s.length;p++)v(e,o,n,t,!1,s[f],s[p])}return o}(e,t,n,e.getParentType(),r),u=0;u<a.length;u++){var c=a[u],s=c[0],l=s[0],f=s[1],y=c[1],T=c[2];e.reportError(new o.GraphQLError(p(l,f),y.concat(T)))}}}};var r=f(t(126)),i=f(t(111)),a=f(t(13)),o=t(5),u=t(18),c=t(63),s=t(11),l=t(67);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,n){return'Fields "'.concat(e,'" conflict because ').concat(function e(n){if(Array.isArray(n))return n.map((function(n){var t=n[0],r=n[1];return'subfields "'.concat(t,'" conflict because ').concat(e(r))})).join(" and ");return n}(n),". ")+"Use different aliases on the fields to fetch both if this was intentional."}function d(e,n,t,r,i,a,o,u){if(!r[u]){r[u]=!0;var c=e.getFragment(u);if(c){var s=T(e,t,c),l=s[0],f=s[1];if(o!==l){y(e,n,t,i,a,o,l);for(var p=0;p<f.length;p++)d(e,n,t,r,i,a,o,f[p])}}}}function v(e,n,t,r,i,a,o){if(a!==o&&!r.has(a,o,i)){r.add(a,o,i);var u=e.getFragment(a),c=e.getFragment(o);if(u&&c){var s=T(e,t,u),l=s[0],f=s[1],p=T(e,t,c),d=p[0],h=p[1];y(e,n,t,r,i,l,d);for(var m=0;m<h.length;m++)v(e,n,t,r,i,a,h[m]);for(var g=0;g<f.length;g++)v(e,n,t,r,i,f[g],o)}}}function y(e,n,t,r,i,a,o){for(var u=0,c=Object.keys(a);u<c.length;u++){var s=c[u],l=o[s];if(l)for(var f=a[s],p=0;p<f.length;p++)for(var d=0;d<l.length;d++){var v=h(e,t,r,i,s,f[p],l[d]);v&&n.push(v)}}}function h(e,n,t,i,o,u,l){var f=u[0],p=u[1],h=u[2],T=l[0],g=l[1],b=l[2],E=i||f!==T&&(0,s.isObjectType)(f)&&(0,s.isObjectType)(T),O=h&&h.type,_=b&&b.type;if(!E){var N=p.name.value,I=g.name.value;if(N!==I)return[[o,"".concat(N," and ").concat(I," are different fields")],[p],[g]];if(!function(e,n){if(e.length!==n.length)return!1;return e.every((function(e){var t,i,a=(0,r.default)(n,(function(n){return n.name.value===e.name.value}));return!!a&&(t=e.value,i=a.value,!t&&!i||(0,c.print)(t)===(0,c.print)(i))}))}(p.arguments||[],g.arguments||[]))return[[o,"they have differing arguments"],[p],[g]]}if(O&&_&&function e(n,t){if((0,s.isListType)(n))return!(0,s.isListType)(t)||e(n.ofType,t.ofType);if((0,s.isListType)(t))return!0;if((0,s.isNonNullType)(n))return!(0,s.isNonNullType)(t)||e(n.ofType,t.ofType);if((0,s.isNonNullType)(t))return!0;if((0,s.isLeafType)(n)||(0,s.isLeafType)(t))return n!==t;return!1}(O,_))return[[o,"they return conflicting types ".concat((0,a.default)(O)," and ").concat((0,a.default)(_))],[p],[g]];var S=p.selectionSet,D=g.selectionSet;return S&&D?function(e,n,t,r){if(e.length>0)return[[n,e.map((function(e){return e[0]}))],e.reduce((function(e,n){var t=n[1];return e.concat(t)}),[t]),e.reduce((function(e,n){var t=n[2];return e.concat(t)}),[r])]}(function(e,n,t,r,i,a,o,u){var c=[],s=m(e,n,i,a),l=s[0],f=s[1],p=m(e,n,o,u),h=p[0],T=p[1];if(y(e,c,n,t,r,l,h),0!==T.length)for(var g=Object.create(null),b=0;b<T.length;b++)d(e,c,n,g,t,r,l,T[b]);if(0!==f.length)for(var E=Object.create(null),O=0;O<f.length;O++)d(e,c,n,E,t,r,h,f[O]);for(var _=0;_<f.length;_++)for(var N=0;N<T.length;N++)v(e,c,n,t,r,f[_],T[N]);return c}(e,n,t,E,(0,s.getNamedType)(O),S,(0,s.getNamedType)(_),D),o,p,g):void 0}function m(e,n,t,r){var i=n.get(r);if(!i){var a=Object.create(null),o=Object.create(null);!function e(n,t,r,i,a){for(var o=0,c=r.selections;o<c.length;o++){var f=c[o];switch(f.kind){case u.Kind.FIELD:var p=f.name.value,d=void 0;((0,s.isObjectType)(t)||(0,s.isInterfaceType)(t))&&(d=t.getFields()[p]);var v=f.alias?f.alias.value:p;i[v]||(i[v]=[]),i[v].push([t,f,d]);break;case u.Kind.FRAGMENT_SPREAD:a[f.name.value]=!0;break;case u.Kind.INLINE_FRAGMENT:var y=f.typeCondition,h=y?(0,l.typeFromAST)(n.getSchema(),y):t;e(n,h,f.selectionSet,i,a)}}}(e,t,r,a,o),i=[a,Object.keys(o)],n.set(r,i)}return i}function T(e,n,t){var r=n.get(t.selectionSet);if(r)return r;var i=(0,l.typeFromAST)(e.getSchema(),t.typeCondition);return m(e,n,i,t.selectionSet)}var g=function(){function e(){this._data=Object.create(null)}var n=e.prototype;return n.has=function(e,n,t){var r=this._data[e],i=r&&r[n];return void 0!==i&&(!1!==t||!1===i)},n.add=function(e,n,t){b(this._data,e,n,t),b(this._data,n,e,t)},e}();function b(e,n,t,r){var i=e[n];i||(i=Object.create(null),e[n]=i),i[t]=r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateInputFieldMessage=i,n.UniqueInputFieldNames=function(e){var n=[],t=Object.create(null);return{ObjectValue:{enter:function(){n.push(t),t=Object.create(null)},leave:function(){t=n.pop()}},ObjectField:function(n){var a=n.name.value;t[a]?e.reportError(new r.GraphQLError(i(a),[t[a],n.name])):t[a]=n.name}}};var r=t(5);function i(e){return'There can be only one input field named "'.concat(e,'".')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.schemaDefinitionNotAloneMessage=i,n.canNotDefineSchemaWithinExtensionMessage=a,n.LoneSchemaDefinition=function(e){var n=e.getSchema(),t=n&&(n.astNode||n.getQueryType()||n.getMutationType()||n.getSubscriptionType()),i=0;return{SchemaDefinition:function(n){t?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",n)):(i>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",n)),++i)}}};var r=t(5);function i(){return"Must provide only one schema definition."}function a(){return"Cannot define a new schema within a schema extension."}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateOperationTypeMessage=i,n.existedOperationTypeMessage=a,n.UniqueOperationTypes=function(e){var n=e.getSchema(),t=Object.create(null),o=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:u,SchemaExtension:u};function u(n){if(n.operationTypes)for(var u=0,c=n.operationTypes||[];u<c.length;u++){var s=c[u],l=s.operation,f=t[l];o[l]?e.reportError(new r.GraphQLError(a(l),s)):f?e.reportError(new r.GraphQLError(i(l),[f,s])):t[l]=s}return!1}};var r=t(5);function i(e){return"There can be only one ".concat(e," type in schema.")}function a(e){return"Type for ".concat(e," already defined in the schema. It cannot be redefined.")}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateTypeNameMessage=i,n.existedTypeNameMessage=a,n.UniqueTypeNames=function(e){var n=Object.create(null),t=e.getSchema();return{ScalarTypeDefinition:o,ObjectTypeDefinition:o,InterfaceTypeDefinition:o,UnionTypeDefinition:o,EnumTypeDefinition:o,InputObjectTypeDefinition:o};function o(o){var u=o.name.value;if(!t||!t.getType(u))return n[u]?e.reportError(new r.GraphQLError(i(u),[n[u],o.name])):n[u]=o.name,!1;e.reportError(new r.GraphQLError(a(u),o.name))}};var r=t(5);function i(e){return'There can be only one type named "'.concat(e,'".')}function a(e){return'Type "'.concat(e,'" already exists in the schema. It cannot also be defined in this type definition.')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateEnumValueNameMessage=a,n.existedEnumValueNameMessage=o,n.UniqueEnumValueNames=function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),u=Object.create(null);return{EnumTypeDefinition:c,EnumTypeExtension:c};function c(n){var c=n.name.value;if(u[c]||(u[c]=Object.create(null)),n.values)for(var s=u[c],l=0,f=n.values;l<f.length;l++){var p=f[l],d=p.name.value,v=t[c];(0,i.isEnumType)(v)&&v.getValue(d)?e.reportError(new r.GraphQLError(o(c,d),p.name)):s[d]?e.reportError(new r.GraphQLError(a(c,d),[s[d],p.name])):s[d]=p.name}return!1}};var r=t(5),i=t(11);function a(e,n){return'Enum value "'.concat(e,".").concat(n,'" can only be defined once.')}function o(e,n){return'Enum value "'.concat(e,".").concat(n,'" already exists in the schema. It cannot also be defined in this type extension.')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateFieldDefinitionNameMessage=a,n.existedFieldDefinitionNameMessage=o,n.UniqueFieldDefinitionNames=function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:c,InputObjectTypeExtension:c,InterfaceTypeDefinition:c,InterfaceTypeExtension:c,ObjectTypeDefinition:c,ObjectTypeExtension:c};function c(n){var c=n.name.value;if(i[c]||(i[c]=Object.create(null)),n.fields)for(var s=i[c],l=0,f=n.fields;l<f.length;l++){var p=f[l],d=p.name.value;u(t[c],d)?e.reportError(new r.GraphQLError(o(c,d),p.name)):s[d]?e.reportError(new r.GraphQLError(a(c,d),[s[d],p.name])):s[d]=p.name}return!1}};var r=t(5),i=t(11);function a(e,n){return'Field "'.concat(e,".").concat(n,'" can only be defined once.')}function o(e,n){return'Field "'.concat(e,".").concat(n,'" already exists in the schema. It cannot also be defined in this type extension.')}function u(e,n){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&e.getFields()[n]}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateDirectiveNameMessage=i,n.existedDirectiveNameMessage=a,n.UniqueDirectiveNames=function(e){var n=Object.create(null),t=e.getSchema();return{DirectiveDefinition:function(o){var u=o.name.value;if(!t||!t.getDirective(u))return n[u]?e.reportError(new r.GraphQLError(i(u),[n[u],o.name])):n[u]=o.name,!1;e.reportError(new r.GraphQLError(a(u),o.name))}}};var r=t(5);function i(e){return'There can be only one directive named "'.concat(e,'".')}function a(e){return'Directive "'.concat(e,'" already exists in the schema. It cannot be redefined.')}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.extendingUnknownTypeMessage=p,n.extendingDifferentTypeKindMessage=d,n.PossibleTypeExtensions=function(e){for(var n=e.getSchema(),t=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var l=i[r];(0,c.isTypeDefinitionNode)(l)&&(t[l.name.value]=l)}return{ScalarTypeExtension:f,ObjectTypeExtension:f,InterfaceTypeExtension:f,UnionTypeExtension:f,EnumTypeExtension:f,InputObjectTypeExtension:f};function f(r){var i=r.name.value,c=t[i],l=n&&n.getType(i);if(c){var f=v[c.kind];f!==r.kind&&e.reportError(new o.GraphQLError(d(i,y(f)),[c,r]))}else if(l){var h=function(e){if((0,s.isScalarType)(e))return u.Kind.SCALAR_TYPE_EXTENSION;if((0,s.isObjectType)(e))return u.Kind.OBJECT_TYPE_EXTENSION;if((0,s.isInterfaceType)(e))return u.Kind.INTERFACE_TYPE_EXTENSION;if((0,s.isUnionType)(e))return u.Kind.UNION_TYPE_EXTENSION;if((0,s.isEnumType)(e))return u.Kind.ENUM_TYPE_EXTENSION;if((0,s.isInputObjectType)(e))return u.Kind.INPUT_OBJECT_TYPE_EXTENSION}(l);h!==r.kind&&e.reportError(new o.GraphQLError(d(i,y(h)),r))}else{var m=Object.keys(t);n&&(m=m.concat(Object.keys(n.getTypeMap())));var T=(0,a.default)(i,m);e.reportError(new o.GraphQLError(p(i,T),r.name))}}};var r,i=l(t(113)),a=l(t(114)),o=t(5),u=t(18),c=t(110),s=t(11);function l(e){return e&&e.__esModule?e:{default:e}}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function p(e,n){return'Cannot extend type "'.concat(e,'" because it is not defined.')+(0,i.default)(n.map((function(e){return'"'.concat(e,'"')})))}function d(e,n){return"Cannot extend non-".concat(n,' type "').concat(e,'".')}var v=(f(r={},u.Kind.SCALAR_TYPE_DEFINITION,u.Kind.SCALAR_TYPE_EXTENSION),f(r,u.Kind.OBJECT_TYPE_DEFINITION,u.Kind.OBJECT_TYPE_EXTENSION),f(r,u.Kind.INTERFACE_TYPE_DEFINITION,u.Kind.INTERFACE_TYPE_EXTENSION),f(r,u.Kind.UNION_TYPE_DEFINITION,u.Kind.UNION_TYPE_EXTENSION),f(r,u.Kind.ENUM_TYPE_DEFINITION,u.Kind.ENUM_TYPE_EXTENSION),f(r,u.Kind.INPUT_OBJECT_TYPE_DEFINITION,u.Kind.INPUT_OBJECT_TYPE_EXTENSION),r);function y(e){switch(e){case u.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case u.Kind.OBJECT_TYPE_EXTENSION:return"object";case u.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case u.Kind.UNION_TYPE_EXTENSION:return"union";case u.Kind.ENUM_TYPE_EXTENSION:return"enum";case u.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:return"unknown type"}}},function(e,n,t){"use strict";function r(e){var n=!(e&&!1===e.descriptions);return"\n    query IntrospectionQuery {\n      __schema {\n        queryType { name }\n        mutationType { name }\n        subscriptionType { name }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ".concat(n?"description":"","\n          locations\n          args {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ").concat(n?"description":"","\n      fields(includeDeprecated: true) {\n        name\n        ").concat(n?"description":"","\n        args {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ").concat(n?"description":"","\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ").concat(n?"description":"","\n      type { ...TypeRef }\n      defaultValue\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name\n      ofType {\n        kind\n        name\n        ofType {\n          kind\n          name\n          ofType {\n            kind\n            name\n            ofType {\n              kind\n              name\n              ofType {\n                kind\n                name\n                ofType {\n                  kind\n                  name\n                  ofType {\n                    kind\n                    name\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  ")}Object.defineProperty(n,"__esModule",{value:!0}),n.getIntrospectionQuery=r,n.introspectionQuery=void 0;var i=r();n.introspectionQuery=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.buildASTSchema=_,n.getDescription=L,n.buildSchema=function(e,n){return _((0,f.parse)(e,n),n)},n.ASTDefinitionBuilder=void 0;var r=O(t(49)),i=O(t(94)),a=O(t(13)),o=O(t(48)),u=O(t(59)),c=O(t(112)),s=t(18),l=t(120),f=t(122),p=t(110),d=t(121),v=t(160),y=t(158),h=t(66),m=t(64),T=t(95),g=t(50),b=t(11),E=t(159);function O(e){return e&&e.__esModule?e:{default:e}}function _(e,n){var t;e&&e.kind===s.Kind.DOCUMENT||(0,u.default)(0,"Must provide valid Document AST"),n&&(n.assumeValid||n.assumeValidSDL)||(0,v.assertValidSDL)(e);for(var i=[],a=[],o=0,c=e.definitions;o<c.length;o++){var l=c[o];l.kind===s.Kind.SCHEMA_DEFINITION?t=l:(0,p.isTypeDefinitionNode)(l)?i.push(l):l.kind===s.Kind.DIRECTIVE_DEFINITION&&a.push(l)}var f=new I(n,(function(e){var n=d[e];if(void 0===n)throw new Error('Type "'.concat(e,'" not found in document.'));return n})),d=S(i,(function(e){return f.buildType(e)})),y=t?function(e){for(var n={},t=0,r=e.operationTypes;t<r.length;t++){var i=r[t];n[i.operation]=i.type.name.value}return n}(t):{query:"Query",mutation:"Mutation",subscription:"Subscription"},h=a.map((function(e){return f.buildDirective(e)}));return h.some((function(e){return"skip"===e.name}))||h.push(g.GraphQLSkipDirective),h.some((function(e){return"include"===e.name}))||h.push(g.GraphQLIncludeDirective),h.some((function(e){return"deprecated"===e.name}))||h.push(g.GraphQLDeprecatedDirective),new T.GraphQLSchema({query:y.query?d[y.query]:null,mutation:y.mutation?d[y.mutation]:null,subscription:y.subscription?d[y.subscription]:null,types:(0,r.default)(d),directives:h,astNode:t,assumeValid:n&&n.assumeValid,allowedLegacyNames:n&&n.allowedLegacyNames})}var N=(0,i.default)(h.specifiedScalarTypes.concat(m.introspectionTypes),(function(e){return e.name})),I=function(){function e(e,n){this._options=e,this._resolveType=n}var n=e.prototype;return n.getNamedType=function(e){var n=e.name.value;return N[n]||this._resolveType(n)},n.getWrappedType=function(e){return e.kind===s.Kind.LIST_TYPE?new b.GraphQLList(this.getWrappedType(e.type)):e.kind===s.Kind.NON_NULL_TYPE?new b.GraphQLNonNull(this.getWrappedType(e.type)):this.getNamedType(e)},n.buildDirective=function(e){var n=this,t=e.locations.map((function(e){return e.value}));return new g.GraphQLDirective({name:e.name.value,description:L(e,this._options),locations:t,isRepeatable:e.repeatable,args:S(e.arguments||[],(function(e){return n.buildArg(e)})),astNode:e})},n.buildField=function(e){var n=this;return{type:this.getWrappedType(e.type),description:L(e,this._options),args:S(e.arguments||[],(function(e){return n.buildArg(e)})),deprecationReason:D(e),astNode:e}},n.buildArg=function(e){var n=this.getWrappedType(e.type);return{type:n,description:L(e,this._options),defaultValue:(0,E.valueFromAST)(e.defaultValue,n),astNode:e}},n.buildInputField=function(e){var n=this.getWrappedType(e.type);return{type:n,description:L(e,this._options),defaultValue:(0,E.valueFromAST)(e.defaultValue,n),astNode:e}},n.buildEnumValue=function(e){return{description:L(e,this._options),deprecationReason:D(e),astNode:e}},n.buildType=function(e){var n=e.name.value;if(N[n])return N[n];switch(e.kind){case s.Kind.OBJECT_TYPE_DEFINITION:return this._makeTypeDef(e);case s.Kind.INTERFACE_TYPE_DEFINITION:return this._makeInterfaceDef(e);case s.Kind.ENUM_TYPE_DEFINITION:return this._makeEnumDef(e);case s.Kind.UNION_TYPE_DEFINITION:return this._makeUnionDef(e);case s.Kind.SCALAR_TYPE_DEFINITION:return this._makeScalarDef(e);case s.Kind.INPUT_OBJECT_TYPE_DEFINITION:return this._makeInputObjectDef(e)}(0,o.default)(!1,"Unexpected type definition node: "+(0,a.default)(e))},n._makeTypeDef=function(e){var n=this,t=e.interfaces,r=e.fields,i=t&&t.length>0?function(){return t.map((function(e){return n.getNamedType(e)}))}:[],a=r&&r.length>0?function(){return S(r,(function(e){return n.buildField(e)}))}:Object.create(null);return new b.GraphQLObjectType({name:e.name.value,description:L(e,this._options),interfaces:i,fields:a,astNode:e})},n._makeInterfaceDef=function(e){var n=this,t=e.fields,r=t&&t.length>0?function(){return S(t,(function(e){return n.buildField(e)}))}:Object.create(null);return new b.GraphQLInterfaceType({name:e.name.value,description:L(e,this._options),fields:r,astNode:e})},n._makeEnumDef=function(e){var n=this,t=e.values||[];return new b.GraphQLEnumType({name:e.name.value,description:L(e,this._options),values:S(t,(function(e){return n.buildEnumValue(e)})),astNode:e})},n._makeUnionDef=function(e){var n=this,t=e.types,r=t&&t.length>0?function(){return t.map((function(e){return n.getNamedType(e)}))}:[];return new b.GraphQLUnionType({name:e.name.value,description:L(e,this._options),types:r,astNode:e})},n._makeScalarDef=function(e){return new b.GraphQLScalarType({name:e.name.value,description:L(e,this._options),astNode:e})},n._makeInputObjectDef=function(e){var n=this,t=e.fields;return new b.GraphQLInputObjectType({name:e.name.value,description:L(e,this._options),fields:t?function(){return S(t,(function(e){return n.buildInputField(e)}))}:Object.create(null),astNode:e})},e}();function S(e,n){return(0,c.default)(e,(function(e){return e.name.value}),n)}function D(e){var n=(0,y.getDirectiveValues)(g.GraphQLDeprecatedDirective,e);return n&&n.reason}function L(e,n){if(e.description)return e.description.value;if(n&&n.commentDescriptions){var t=function(e){var n=e.loc;if(!n)return;var t=[],r=n.startToken.prev;for(;r&&r.kind===l.TokenKind.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);t.push(i),r=r.prev}return t.reverse().join("\n")}(e);if(void 0!==t)return(0,d.dedentBlockStringValue)("\n"+t)}}n.ASTDefinitionBuilder=I},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.coerceValue=function(e,n,t,c){var s=[],l=(0,u.coerceInputValue)(e,n,(function(e,n,u){var l="Invalid value "+(0,r.default)(n),f=[].concat((0,a.pathToArray)(c),e);f.length>0&&(l+=' at "value'.concat((0,i.default)(f),'"')),s.push(new o.GraphQLError(l+": "+u.message,t,void 0,void 0,void 0,u.originalError))}));return s.length>0?{errors:s,value:void 0}:{errors:void 0,value:l}};var r=c(t(13)),i=c(t(192)),a=t(125),o=t(5),u=t(193);function c(e){return e&&e.__esModule?e:{default:e}}},function(e,n){function t(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(n,r){var i=Object.assign({},n);return t(n)&&t(r)&&Object.keys(r).forEach((function(a){var o,u;t(r[a])?a in n?i[a]=e(n[a],r[a]):Object.assign(i,((o={})[a]=r[a],o)):Object.assign(i,((u={})[a]=r[a],u))})),i}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);n.specifiedScalarTypes=[r.GraphQLString,r.GraphQLInt,r.GraphQLFloat,r.GraphQLBoolean,r.GraphQLID],n.default=function(e){return r.isNamedType(e)&&(e.name===r.GraphQLString.name||e.name===r.GraphQLInt.name||e.name===r.GraphQLFloat.name||e.name===r.GraphQLBoolean.name||e.name===r.GraphQLID.name)}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getResponseKeyFromInfo=function(e){return e.fieldNodes[0].alias?e.fieldNodes[0].alias.value:e.fieldName}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(79),i=t(79);n.execute=i.execute,n.default=function(e){return function(n){return r.makePromise(r.execute(e,n))}}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){if(!e)return!0;for(var n in e)if(Object.hasOwnProperty.call(e,n))return!1;return!0}},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var a=t(6),o=function(){function e(e,n){this.schema=e,this.args=n}return e.prototype.transformRequest=function(e){var n=function(e,n,t){var o=n.definitions.filter((function(e){return e.kind===a.Kind.OPERATION_DEFINITION})),c=n.definitions.filter((function(e){return e.kind===a.Kind.FRAGMENT_DEFINITION})),s={},l=o.map((function(n){var i,o=n.variableDefinitions.map((function(e){return e.variable.name.value})),c=0,l={};i="subscription"===n.operation?e.getSubscriptionType():"mutation"===n.operation?e.getMutationType():e.getQueryType();var f=[];return n.selectionSet.selections.forEach((function(e){if(e.kind===a.Kind.FIELD){var n={};e.arguments.forEach((function(e){n[e.name.value]=e}));var p=e.name.value;i.getFields()[p].args.forEach((function(e){if(e.name in t){var r=function(e){var n;do{n="_v"+c+"_"+e,c++}while(-1!==o.indexOf(n));return n}(e.name);s[e.name]=r,n[e.name]={kind:a.Kind.ARGUMENT,name:{kind:a.Kind.NAME,value:e.name},value:{kind:a.Kind.VARIABLE,name:{kind:a.Kind.NAME,value:r}}},o.push(r),l[r]={kind:a.Kind.VARIABLE_DEFINITION,variable:{kind:a.Kind.VARIABLE,name:{kind:a.Kind.NAME,value:r}},type:u(e.type)}}})),f.push(r(r({},e),{arguments:Object.keys(n).map((function(e){return n[e]}))}))}else f.push(e)})),r(r({},n),{variableDefinitions:n.variableDefinitions.concat(Object.keys(l).map((function(e){return l[e]}))),selectionSet:{kind:a.Kind.SELECTION_SET,selections:f}})})),f={};return Object.keys(s).forEach((function(e){f[s[e]]=t[e]})),{document:r(r({},n),{definitions:i(l,c)}),newVariables:f}}(this.schema,e.document,this.args),t=n.document,o=n.newVariables;return{document:t,variables:r(r({},e.variables),o)}},e}();function u(e){if(e instanceof a.GraphQLNonNull){var n=u(e.ofType);if(n.kind===a.Kind.LIST_TYPE||n.kind===a.Kind.NAMED_TYPE)return{kind:a.Kind.NON_NULL_TYPE,type:n};throw new Error("Incorrent inner non-null type")}return e instanceof a.GraphQLList?{kind:a.Kind.LIST_TYPE,type:u(e.ofType)}:{kind:a.Kind.NAMED_TYPE,name:{kind:a.Kind.NAME,value:e.toString()}}}n.default=o},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var a=t(6),o=t(292),u=function(){function e(e){this.targetSchema=e}return e.prototype.transformRequest=function(e){var n=function(e,n){var t=n.definitions.filter((function(e){return e.kind===a.Kind.OPERATION_DEFINITION})),r=n.definitions.filter((function(e){return e.kind===a.Kind.FRAGMENT_DEFINITION})),o=[],u=[],s=[],f=r.filter((function(n){var t=n.typeCondition.name.value;return Boolean(e.getType(t))})),p={};f.forEach((function(n){var t=n.typeCondition.name.value,r=e.getType(t);p[n.name.value]=r}));var d=Object.create(null);return t.forEach((function(n){var t;t="subscription"===n.operation?e.getSubscriptionType():"mutation"===n.operation?e.getMutationType():e.getQueryType();var r=c(e,t,p,n.selectionSet),i=r.selectionSet,v=r.usedFragments,y=r.usedVariables;o=l(o,v);var h=function(e,n,t,r,i){var o=[],u=[],s=function(){var s=i.pop(),f=t.find((function(e){return e.name.value===s}));if(f){var p=s,d=f.typeCondition.name.value,v=e.getType(d),y=c(e,v,r,f.selectionSet),h=y.selectionSet,m=y.usedFragments,T=y.usedVariables;i=l(i,m),o=l(o,T),n[p]||(n[p]=!0,u.push({kind:a.Kind.FRAGMENT_DEFINITION,name:{kind:a.Kind.NAME,value:p},typeCondition:f.typeCondition,selectionSet:h}))}};for(;0!==i.length;)s();return{usedVariables:o,newFragments:u,fragmentSet:n}}(e,d,f,p,o),m=h.usedVariables,T=h.newFragments,g=h.fragmentSet,b=l(y,m);s=T,d=g;var E=n.variableDefinitions.filter((function(e){return-1!==b.indexOf(e.variable.name.value)}));u.push({kind:a.Kind.OPERATION_DEFINITION,operation:n.operation,name:n.name,directives:n.directives,variableDefinitions:E,selectionSet:i})})),{kind:a.Kind.DOCUMENT,definitions:i(u,s)}}(this.targetSchema,e.document);return r(r({},e),{document:n})},e}();function c(e,n,t,i){var u,c=[],l=[],f=[n];return{selectionSet:a.visit(i,((u={})[a.Kind.FIELD]={enter:function(e){var n=s(f[f.length-1]);if(n instanceof a.GraphQLObjectType||n instanceof a.GraphQLInterfaceType){var t=n.getFields(),i="__typename"===e.name.value?a.TypeNameMetaFieldDef:t[e.name.value];if(!i)return null;f.push(i.type);var o=(i.args||[]).map((function(e){return e.name}));if(e.arguments){var u=e.arguments.filter((function(e){return-1!==o.indexOf(e.name.value)}));if(u.length!==e.arguments.length)return r(r({},e),{arguments:u})}}else n instanceof a.GraphQLUnionType&&"__typename"===e.name.value&&f.push(a.TypeNameMetaFieldDef.type)},leave:function(e){var n,t=s(f.pop());if(t instanceof a.GraphQLObjectType||t instanceof a.GraphQLInterfaceType){var r=e.selectionSet&&e.selectionSet.selections||null;if(!r||0===r.length)return a.visit(e,((n={})[a.Kind.VARIABLE]=function(e){var n=l.indexOf(e.name.value);-1!==n&&l.splice(n,1)},n)),null}}},u[a.Kind.FRAGMENT_SPREAD]=function(n){if(n.name.value in t){var r=s(f[f.length-1]),i=t[n.name.value];return o.default(e,r,i)?void c.push(n.name.value):null}return null},u[a.Kind.INLINE_FRAGMENT]={enter:function(n){if(n.typeCondition){var t=e.getType(n.typeCondition.name.value),r=s(f[f.length-1]);if(!o.default(e,r,t))return null;f.push(t)}},leave:function(e){f.pop()}},u[a.Kind.VARIABLE]=function(e){l.push(e.name.value)},u)),usedFragments:c,usedVariables:l}}function s(e){for(var n=e;n instanceof a.GraphQLNonNull||n instanceof a.GraphQLList;)n=n.ofType;return n}function l(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t={},r=[];return e.forEach((function(e){e.forEach((function(e){t[e]||(t[e]=!0,r.push(e))}))})),r}n.default=u},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);n.default=function(e,n,t){return n===t||!(!r.isCompositeType(n)||!r.isCompositeType(t))&&r.doTypesOverlap(e,n,t)}},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=t(6),a=function(){function e(e){this.targetSchema=e}return e.prototype.transformRequest=function(e){var n=function(e,n){var t,a=new i.TypeInfo(e);return i.visit(n,i.visitWithTypeInfo(a,((t={})[i.Kind.SELECTION_SET]=function(e){var n=a.getParentType(),t=e.selections;if(n&&(n instanceof i.GraphQLInterfaceType||n instanceof i.GraphQLUnionType)&&!t.find((function(e){return e.kind===i.Kind.FIELD&&"__typename"===e.name.value}))&&(t=t.concat({kind:i.Kind.FIELD,name:{kind:i.Kind.NAME,value:"__typename"}})),t!==e.selections)return r(r({},e),{selections:t})},t)))}(this.targetSchema,e.document);return r(r({},e),{document:n})},e}();n.default=a},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(202),i=function(){function e(e,n){this.info=e,this.fieldName=n}return e.prototype.transformResult=function(e){return r.checkResultAndHandleErrors(e,this.info,this.fieldName)},e}();n.default=i},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var a=t(6),o=t(292),u=function(){function e(e,n){var t,r;this.targetSchema=n,this.mapping=function(e,n){var t=e.getTypeMap(),r={};return Object.keys(t).forEach((function(i){var o=t[i];if(a.isAbstractType(o)){var u=n.getType(i);if(!a.isAbstractType(u)){var c=e.getPossibleTypes(o)||[];r[i]=c.filter((function(e){return n.getType(e.name)})).map((function(e){return e.name}))}}})),r}(e,n),this.reverseMapping=(t=this.mapping,r={},Object.keys(t).forEach((function(e){t[e].forEach((function(n){r[n]||(r[n]=[]),r[n].push(e)}))})),r)}return e.prototype.transformRequest=function(e){var n=function(e,n,t,u){var c,s=u.definitions.filter((function(e){return e.kind===a.Kind.OPERATION_DEFINITION})),l=u.definitions.filter((function(e){return e.kind===a.Kind.FRAGMENT_DEFINITION})),f=l.map((function(e){return e.name.value})),p=0,d=[],v={};l.forEach((function(e){d.push(e);var t=n[e.typeCondition.name.value];t&&(v[e.name.value]=[],t.forEach((function(n){var t=function(e){var n;do{n="_"+e+"_Fragment"+p,p++}while(-1!==f.indexOf(n));return n}(n);f.push(t);var r={kind:a.Kind.FRAGMENT_DEFINITION,name:{kind:a.Kind.NAME,value:t},typeCondition:{kind:a.Kind.NAMED_TYPE,name:{kind:a.Kind.NAME,value:n}},selectionSet:e.selectionSet};d.push(r),v[e.name.value].push({fragmentName:t,typeName:n})})))}));var y=r(r({},u),{definitions:i(s,d)}),h=new a.TypeInfo(e);return a.visit(y,a.visitWithTypeInfo(h,((c={})[a.Kind.SELECTION_SET]=function(u){var c=i(u.selections),s=a.getNamedType(h.getParentType());if(u.selections.forEach((function(t){if(t.kind===a.Kind.INLINE_FRAGMENT){var r=n[t.typeCondition.name.value];r&&r.forEach((function(n){o.default(e,s,e.getType(n))&&c.push({kind:a.Kind.INLINE_FRAGMENT,typeCondition:{kind:a.Kind.NAMED_TYPE,name:{kind:a.Kind.NAME,value:n}},selectionSet:t.selectionSet})}))}else if(t.kind===a.Kind.FRAGMENT_SPREAD){var i=t.name.value,u=v[i];u&&u.forEach((function(n){var t=n.typeName;o.default(e,s,e.getType(t))&&c.push({kind:a.Kind.FRAGMENT_SPREAD,name:{kind:a.Kind.NAME,value:n.fragmentName}})}))}})),s&&t[s.name]&&c.push({kind:a.Kind.FIELD,name:{kind:a.Kind.NAME,value:"__typename"}}),c.length!==u.selections.length)return r(r({},u),{selections:c})},c)))}(this.targetSchema,this.mapping,this.reverseMapping,e.document);return r(r({},e),{document:n})},e}();n.default=u},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=t(6),a=function(){function e(e,n){this.targetSchema=e,this.mapping={};for(var t=0,r=n;t<r.length;t++){var i=r[t],a=i.field,u=o(i.fragment),c=u.typeCondition.name.value;this.mapping[c]=this.mapping[c]||{},this.mapping[c][a]?this.mapping[c][a].push(u):this.mapping[c][a]=[u]}}return e.prototype.transformRequest=function(e){var n=function(e,n,t){var a,o=new i.TypeInfo(e);return i.visit(n,i.visitWithTypeInfo(o,((a={})[i.Kind.SELECTION_SET]=function(e){var n=o.getParentType();if(n){var a=n.name,c=e.selections;if(t[a]&&e.selections.forEach((function(e){if(e.kind===i.Kind.FIELD){var n=e.name.value,r=t[a][n];if(r&&r.length>0){var o=u(a,r);c=c.concat(o)}}})),c!==e.selections)return r(r({},e),{selections:c})}},a)))}(this.targetSchema,e.document,this.mapping);return r(r({},e),{document:n})},e}();function o(e){if(e.trim().startsWith("fragment"))for(var n=0,t=i.parse(e).definitions;n<t.length;n++){var r=t[n];if(r.kind===i.Kind.FRAGMENT_DEFINITION)return{kind:i.Kind.INLINE_FRAGMENT,typeCondition:r.typeCondition,selectionSet:r.selectionSet}}for(var a=0,o=i.parse("{"+e+"}").definitions[0].selectionSet.selections;a<o.length;a++){var u=o[a];if(u.kind===i.Kind.INLINE_FRAGMENT)return u}throw new Error("Could not parse fragment")}function u(e,n){var t,a=n.reduce((function(e,n){return e.concat(n.selectionSet.selections)}),[]),o=(t=a.reduce((function(e,n){var t,i,a;switch(n.kind){case"Field":return n.alias?e.hasOwnProperty(n.alias.value)?e:r(r({},e),((t={})[n.alias.value]=n,t)):e.hasOwnProperty(n.name.value)?e:r(r({},e),((i={})[n.name.value]=n,i));case"FragmentSpread":return e.hasOwnProperty(n.name.value)?e:r(r({},e),((a={})[n.name.value]=n,a));case"InlineFragment":if(e.__fragment){var o=e.__fragment;return r(r({},e),{__fragment:u(o.typeCondition.name.value,[o,n])})}return r(r({},e),{__fragment:n});default:return e}}),{}),Object.keys(t).reduce((function(e,n){return e.concat(t[n])}),[]));return{kind:i.Kind.INLINE_FRAGMENT,typeCondition:{kind:i.Kind.NAMED_TYPE,name:{kind:i.Kind.NAME,value:e}},selectionSet:{kind:i.Kind.SELECTION_SET,selections:o}}}n.default=a},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(375);n.transformSchema=r.default;var i=t(290);n.AddArgumentsAsVariables=i.default;var a=t(294);n.CheckResultAndHandleErrors=a.default;var o=t(296);n.ReplaceFieldWithFragment=o.default;var u=t(293);n.AddTypenameToAbstract=u.default;var c=t(291);n.FilterToSchema=c.default;var s=t(377);n.RenameTypes=s.default;var l=t(378);n.FilterTypes=l.default;var f=t(204);n.TransformRootFields=f.default;var p=t(379);n.RenameRootFields=p.default;var d=t(380);n.FilterRootFields=d.default;var v=t(295);n.ExpandAbstractTypes=v.default;var y=t(381);n.ExtractField=y.default;var h=t(382);n.WrapQuery=h.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n;return function(t,r,i){n||(n=new WeakMap);var a,o=n.get(t);if(o){if(a=o.get(r)){var u=a.get(i);if(void 0!==u)return u}}else o=new WeakMap,n.set(t,o);a||(a=new WeakMap,o.set(r,a));var c=e(t,r,i);return a.set(i,c),c}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t){return e.reduce((function(e,t){return(0,i.default)(e)?e.then((function(e){return n(e,t)})):n(e,t)}),t)};var r,i=(r=t(153))&&r.__esModule?r:{default:r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=Object.keys(e),t=n.map((function(n){return e[n]}));return Promise.all(t).then((function(e){return e.reduce((function(e,t,r){return e[n[r]]=t,e}),Object.create(null))}))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return e}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};n.default=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscribe=function(e,n,t,r,i,a,o,u){return d(1===arguments.length?e:{schema:e,document:n,rootValue:t,contextValue:r,variableValues:i,operationName:a,fieldResolver:o,subscribeFieldResolver:u})},n.createSourceEventStream=v;var r=t(47),i=f(t(13)),a=t(125),o=t(5),u=t(188),c=t(116),s=t(191),l=f(t(335));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){if(e instanceof o.GraphQLError)return{errors:[e]};throw e}function d(e){var n=e.schema,t=e.document,i=e.rootValue,a=e.contextValue,o=e.variableValues,u=e.operationName,s=e.fieldResolver,f=e.subscribeFieldResolver,d=v(n,t,i,a,o,u,f),y=function(e){return(0,c.execute)(n,t,e,a,o,u,s)};return d.then((function(e){return(0,r.isAsyncIterable)(e)?(0,l.default)(e,y,p):e}))}function v(e,n,t,l,f,p,d){(0,c.assertValidExecutionArguments)(e,n,f);try{var v=(0,c.buildExecutionContext)(e,n,t,l,f,p,d);if(Array.isArray(v))return Promise.resolve({errors:v});var y=(0,s.getOperationRootType)(e,v.operation),h=(0,c.collectFields)(v,y,v.operation.selectionSet,Object.create(null),Object.create(null)),m=Object.keys(h)[0],T=h[m],g=T[0].name.value,b=(0,c.getFieldDef)(e,y,g);if(!b)throw new o.GraphQLError('The subscription field "'.concat(g,'" is not defined.'),T);var E=b.subscribe||v.fieldResolver,O=(0,a.addPath)(void 0,m),_=(0,c.buildResolveInfo)(v,b,T,y,O),N=(0,c.resolveFieldValueOrError)(v,b,T,E,t,_);return Promise.resolve(N).then((function(e){if(e instanceof Error)return{errors:[(0,u.locatedError)(e,T,(0,a.pathToArray)(O))]};if((0,r.isAsyncIterable)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+(0,i.default)(e))}))}catch(e){return e instanceof o.GraphQLError?Promise.resolve({errors:[e]}):Promise.reject(e)}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n,t){var o,u,c,s=(0,r.getAsyncIterator)(e);"function"==typeof s.return&&(o=s.return,u=function(e){var n=function(){return Promise.reject(e)};return o.call(s).then(n,n)});function l(e){return e.done?e:i(e.value,n).then(a,u)}if(t){var f=t;c=function(e){return i(e,f).then(a,u)}}return function(e,n,t){n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t;return e}({next:function(){return s.next().then(l,c)},return:function(){return o?o.call(s).then(l,c):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof s.throw?s.throw(e).then(l,c):Promise.reject(e).catch(u)}},r.$$asyncIterator,(function(){return this}))};var r=t(47);function i(e,n){return new Promise((function(t){return t(n(e))}))}function a(e){return{value:e,done:!1}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.formatError=function(e){e||(0,i.default)(0,"Received null or undefined error.");var n=e.message||"An unknown error occurred.",t=e.locations,r=e.path,a=e.extensions;return a?{message:n,locations:t,path:r,extensions:a}:{message:n,locations:t,path:r}};var r,i=(r=t(59))&&r.__esModule?r:{default:r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getOperationAST=function(e,n){for(var t=null,i=0,a=e.definitions;i<a.length;i++){var o=a[i];if(o.kind===r.Kind.OPERATION_DEFINITION)if(n){if(o.name&&o.name.value===n)return o}else{if(t)return null;t=o}}return t};var r=t(18)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.introspectionFromSchema=function(e,n){var t=(0,a.parse)((0,u.getIntrospectionQuery)(n)),c=(0,o.execute)(e,t);return!(0,i.default)(c)&&!c.errors&&c.data||(0,r.default)(0),c.data};var r=c(t(48)),i=c(t(153)),a=t(122),o=t(116),u=t(282);function c(e){return e&&e.__esModule?e:{default:e}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.buildClientSchema=function(e,n){(0,u.default)(e)&&(0,u.default)(e.__schema)||(0,a.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '+(0,i.default)(e));for(var t=e.__schema,y=(0,o.default)(t.types,(function(e){return e.name}),(function(e){return function(e){if(e&&e.name&&e.kind)switch(e.kind){case f.TypeKind.SCALAR:return t=e,new d.GraphQLScalarType({name:t.name,description:t.description});case f.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+(0,i.default)(e));return new d.GraphQLObjectType({name:e.name,description:e.description,interfaces:function(){return e.interfaces.map(S)},fields:function(){return D(e)}})}(e);case f.TypeKind.INTERFACE:return n=e,new d.GraphQLInterfaceType({name:n.name,description:n.description,fields:function(){return D(n)}});case f.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+(0,i.default)(e));return new d.GraphQLUnionType({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(I)}})}(e);case f.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+(0,i.default)(e));return new d.GraphQLEnumType({name:e.name,description:e.description,values:(0,o.default)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case f.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+(0,i.default)(e));return new d.GraphQLInputObjectType({name:e.name,description:e.description,fields:function(){return L(e.inputFields)}})}(e)}var n;var t;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+(0,i.default)(e))}(e)})),h=0,m=[].concat(l.specifiedScalarTypes,f.introspectionTypes);h<m.length;h++){var T=m[h];y[T.name]&&(y[T.name]=T)}var g=t.queryType?I(t.queryType):null,b=t.mutationType?I(t.mutationType):null,E=t.subscriptionType?I(t.subscriptionType):null,O=t.directives?t.directives.map((function(e){if(!e.args)throw new Error("Introspection result missing directive args: "+(0,i.default)(e));if(!e.locations)throw new Error("Introspection result missing directive locations: "+(0,i.default)(e));return new s.GraphQLDirective({name:e.name,description:e.description,locations:e.locations.slice(),args:L(e.args)})})):[];return new p.GraphQLSchema({query:g,mutation:b,subscription:E,types:(0,r.default)(y),directives:O,assumeValid:n&&n.assumeValid,allowedLegacyNames:n&&n.allowedLegacyNames});function _(e){if(e.kind===f.TypeKind.LIST){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");return(0,d.GraphQLList)(_(n))}if(e.kind===f.TypeKind.NON_NULL){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");var r=_(t);return(0,d.GraphQLNonNull)((0,d.assertNullableType)(r))}if(!e.name)throw new Error("Unknown type reference: "+(0,i.default)(e));return function(e){var n=y[e];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(e,". Ensure that a full introspection query is used in order to build a client schema."));return n}(e.name)}function N(e){var n=_(e);if((0,d.isOutputType)(n))return n;throw new Error("Introspection must provide output type for fields, but received: "+(0,i.default)(n)+".")}function I(e){var n=_(e);return(0,d.assertObjectType)(n)}function S(e){var n=_(e);return(0,d.assertInterfaceType)(n)}function D(e){if(!e.fields)throw new Error("Introspection result missing fields: "+(0,i.default)(e));return(0,o.default)(e.fields,(function(e){return e.name}),(function(e){if(!e.args)throw new Error("Introspection result missing field args: "+(0,i.default)(e));return{description:e.description,deprecationReason:e.deprecationReason,type:N(e.type),args:L(e.args)}}))}function L(e){return(0,o.default)(e,(function(e){return e.name}),A)}function A(e){var n=function(e){var n=_(e);if((0,d.isInputType)(n))return n;throw new Error("Introspection must provide input type for arguments, but received: "+(0,i.default)(n)+".")}(e.type),t=e.defaultValue?(0,v.valueFromAST)((0,c.parseValue)(e.defaultValue),n):void 0;return{description:e.description,type:n,defaultValue:t}}};var r=y(t(49)),i=y(t(13)),a=y(t(59)),o=y(t(112)),u=y(t(65)),c=t(122),s=t(50),l=t(66),f=t(64),p=t(95),d=t(11),v=t(159);function y(e){return e&&e.__esModule?e:{default:e}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.extendSchema=function(e,n,t){(0,h.assertSchema)(e),n&&n.kind===l.Kind.DOCUMENT||(0,c.default)(0,"Must provide valid Document AST"),t&&(t.assumeValid||t.assumeValidSDL)||(0,p.assertValidSDLExtension)(n,e);for(var g,b=[],O=Object.create(null),_=[],N=[],I=0,S=n.definitions;I<S.length;I++){var D=S[I];if(D.kind===l.Kind.SCHEMA_DEFINITION)g=D;else if(D.kind===l.Kind.SCHEMA_EXTENSION)N.push(D);else if((0,f.isTypeDefinitionNode)(D))b.push(D);else if((0,f.isTypeExtensionNode)(D)){var L=D.name.value,A=O[L];O[L]=A?A.concat([D]):[D]}else D.kind===l.Kind.DIRECTIVE_DEFINITION&&_.push(D)}if(0===Object.keys(O).length&&0===b.length&&0===_.length&&0===N.length&&!g)return e;for(var j=e.toConfig(),w=new T.ASTDefinitionBuilder(t,(function(e){var n=P[e];if(void 0===n)throw new Error('Unknown type: "'.concat(e,'".'));return n})),P=(0,s.default)(b,(function(e){return e.name.value}),(function(e){return w.buildType(e)})),k=0,F=j.types;k<F.length;k++){var R=F[k];P[R.name]=ee(R)}var M={query:j.query&&j.query.name,mutation:j.mutation&&j.mutation.name,subscription:j.subscription&&j.subscription.name};if(g)for(var x=0,G=g.operationTypes;x<G.length;x++){var V=G[x],K=V.operation,C=V.type;M[K]=C.name.value}for(var Q=0;Q<N.length;Q++){var U=N[Q];if(U.operationTypes)for(var B=0,q=U.operationTypes;B<q.length;B++){var Y=q[B],J=Y.operation,W=Y.type;M[J]=W.name.value}}var X=j.allowedLegacyNames.concat(t&&t.allowedLegacyNames||[]);return new h.GraphQLSchema({query:Z(M.query),mutation:Z(M.mutation),subscription:Z(M.subscription),types:(0,i.default)(P),directives:(H=e.getDirectives().map(ne),H||(0,c.default)(0,"schema must have default directives"),H.concat(_.map((function(e){return w.buildDirective(e)})))),astNode:g||j.astNode,extensionASTNodes:j.extensionASTNodes.concat(N),allowedLegacyNames:X});var H;function z(e){return(0,m.isListType)(e)?new m.GraphQLList(z(e.ofType)):(0,m.isNonNullType)(e)?new m.GraphQLNonNull(z(e.ofType)):$(e)}function $(e){return P[e.name]}function Z(e){return e?P[e]:null}function ee(e){return(0,y.isIntrospectionType)(e)||(0,v.isSpecifiedScalarType)(e)?e:(0,m.isScalarType)(e)?function(e){var n=e.toConfig(),t=O[n.name]||[];return new m.GraphQLScalarType(E({},n,{extensionASTNodes:n.extensionASTNodes.concat(t)}))}(e):(0,m.isObjectType)(e)?function(e){var n=e.toConfig(),t=O[n.name]||[],i=(0,r.default)(t,(function(e){return e.interfaces||[]})),a=(0,r.default)(t,(function(e){return e.fields||[]}));return new m.GraphQLObjectType(E({},n,{interfaces:function(){return[].concat(e.getInterfaces().map($),i.map((function(e){return w.getNamedType(e)})))},fields:function(){return E({},(0,o.default)(n.fields,te),{},(0,s.default)(a,(function(e){return e.name.value}),(function(e){return w.buildField(e)})))},extensionASTNodes:n.extensionASTNodes.concat(t)}))}(e):(0,m.isInterfaceType)(e)?function(e){var n=e.toConfig(),t=O[n.name]||[],i=(0,r.default)(t,(function(e){return e.fields||[]}));return new m.GraphQLInterfaceType(E({},n,{fields:function(){return E({},(0,o.default)(n.fields,te),{},(0,s.default)(i,(function(e){return e.name.value}),(function(e){return w.buildField(e)})))},extensionASTNodes:n.extensionASTNodes.concat(t)}))}(e):(0,m.isUnionType)(e)?function(e){var n=e.toConfig(),t=O[n.name]||[],i=(0,r.default)(t,(function(e){return e.types||[]}));return new m.GraphQLUnionType(E({},n,{types:function(){return[].concat(e.getTypes().map($),i.map((function(e){return w.getNamedType(e)})))},extensionASTNodes:n.extensionASTNodes.concat(t)}))}(e):(0,m.isEnumType)(e)?function(e){var n=e.toConfig(),t=O[e.name]||[],i=(0,r.default)(t,(function(e){return e.values||[]}));return new m.GraphQLEnumType(E({},n,{values:E({},n.values,{},(0,s.default)(i,(function(e){return e.name.value}),(function(e){return w.buildEnumValue(e)}))),extensionASTNodes:n.extensionASTNodes.concat(t)}))}(e):(0,m.isInputObjectType)(e)?function(e){var n=e.toConfig(),t=O[n.name]||[],i=(0,r.default)(t,(function(e){return e.fields||[]}));return new m.GraphQLInputObjectType(E({},n,{fields:function(){return E({},(0,o.default)(n.fields,(function(e){return E({},e,{type:z(e.type)})})),{},(0,s.default)(i,(function(e){return e.name.value}),(function(e){return w.buildInputField(e)})))},extensionASTNodes:n.extensionASTNodes.concat(t)}))}(e):void(0,u.default)(!1,"Unexpected type: "+(0,a.default)(e))}function ne(e){var n=e.toConfig();return new d.GraphQLDirective(E({},n,{args:(0,o.default)(n.args,re)}))}function te(e){return E({},e,{type:z(e.type),args:(0,o.default)(e.args,re)})}function re(e){return E({},e,{type:z(e.type)})}};var r=g(t(155)),i=g(t(49)),a=g(t(13)),o=g(t(247)),u=g(t(48)),c=g(t(59)),s=g(t(112)),l=t(18),f=t(110),p=t(160),d=t(50),v=t(66),y=t(64),h=t(95),m=t(11),T=t(283);function g(e){return e&&e.__esModule?e:{default:e}}function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(t,!0).forEach((function(n){O(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function O(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.lexicographicSortSchema=function(e){var n=e.toConfig(),t=(0,o.default)(h(n.types),(function(e){return e.name}),(function(e){if((0,l.isScalarType)(e)||(0,s.isIntrospectionType)(e))return e;if((0,l.isObjectType)(e)){var n=e.toConfig();return new l.GraphQLObjectType(d({},n,{interfaces:function(){return b(n.interfaces)},fields:function(){return g(n.fields)}}))}if((0,l.isInterfaceType)(e)){var t=e.toConfig();return new l.GraphQLInterfaceType(d({},t,{fields:function(){return g(t.fields)}}))}if((0,l.isUnionType)(e)){var r=e.toConfig();return new l.GraphQLUnionType(d({},r,{types:function(){return b(r.types)}}))}if((0,l.isEnumType)(e)){var o=e.toConfig();return new l.GraphQLEnumType(d({},o,{values:y(o.values)}))}if((0,l.isInputObjectType)(e)){var u=e.toConfig();return new l.GraphQLInputObjectType(d({},u,{fields:function(){return y(u.fields,(function(e){return d({},e,{type:f(e.type)})}))}}))}(0,a.default)(!1,"Unexpected type: "+(0,i.default)(e))}));return new u.GraphQLSchema(d({},n,{types:(0,r.default)(t),directives:h(n.directives).map((function(e){var n=e.toConfig();return new c.GraphQLDirective(d({},n,{locations:m(n.locations,(function(e){return e})),args:T(n.args)}))})),query:v(n.query),mutation:v(n.mutation),subscription:v(n.subscription)}));function f(e){return(0,l.isListType)(e)?new l.GraphQLList(f(e.ofType)):(0,l.isNonNullType)(e)?new l.GraphQLNonNull(f(e.ofType)):p(e)}function p(e){return t[e.name]}function v(e){return e&&p(e)}function T(e){return y(e,(function(e){return d({},e,{type:f(e.type)})}))}function g(e){return y(e,(function(e){return d({},e,{type:f(e.type),args:T(e.args)})}))}function b(e){return h(e).map(p)}};var r=f(t(49)),i=f(t(13)),a=f(t(48)),o=f(t(112)),u=t(95),c=t(50),s=t(64),l=t(11);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(t,!0).forEach((function(n){v(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function y(e,n){for(var t=Object.create(null),r=m(Object.keys(e),(function(e){return e})),i=0;i<r.length;i++){var a=r[i],o=e[a];t[a]=n?n(o):o}return t}function h(e){return m(e,(function(e){return e.name}))}function m(e,n){return e.slice().sort((function(e,t){var r=n(e),i=n(t);return r.localeCompare(i)}))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.printSchema=function(e,n){return h(e,(function(e){return!(0,f.isSpecifiedDirective)(e)}),y,n)},n.printIntrospectionSchema=function(e,n){return h(e,f.isSpecifiedDirective,s.isIntrospectionType,n)},n.printType=T;var r=v(t(155)),i=v(t(49)),a=v(t(13)),o=v(t(48)),u=t(63),c=t(121),s=t(64),l=t(66),f=t(50),p=t(11),d=t(157);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){return!(0,l.isSpecifiedScalarType)(e)&&!(0,s.isIntrospectionType)(e)}function h(e,n,t,r){var a=e.getDirectives().filter(n),o=e.getTypeMap(),u=(0,i.default)(o).sort((function(e,n){return e.name.localeCompare(n.name)})).filter(t);return[m(e)].concat(a.map((function(e){return function(e,n){return N(n,e)+"directive @"+e.name+E(n,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)})),u.map((function(e){return T(e,r)}))).filter(Boolean).join("\n\n")+"\n"}function m(e){if(!function(e){var n=e.getQueryType();if(n&&"Query"!==n.name)return!1;var t=e.getMutationType();if(t&&"Mutation"!==t.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e)){var n=[],t=e.getQueryType();t&&n.push("  query: ".concat(t.name));var r=e.getMutationType();r&&n.push("  mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&n.push("  subscription: ".concat(i.name)),"schema {\n".concat(n.join("\n"),"\n}")}}function T(e,n){return(0,p.isScalarType)(e)?function(e,n){return N(n,e)+"scalar ".concat(e.name)}(e,n):(0,p.isObjectType)(e)?function(e,n){var t=e.getInterfaces(),r=t.length?" implements "+t.map((function(e){return e.name})).join(" & "):"";return N(n,e)+"type ".concat(e.name).concat(r)+g(n,e)}(e,n):(0,p.isInterfaceType)(e)?function(e,n){return N(n,e)+"interface ".concat(e.name)+g(n,e)}(e,n):(0,p.isUnionType)(e)?function(e,n){var t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return N(n,e)+"union "+e.name+r}(e,n):(0,p.isEnumType)(e)?function(e,n){var t=e.getValues().map((function(e,t){return N(n,e,"  ",!t)+"  "+e.name+_(e)}));return N(n,e)+"enum ".concat(e.name)+b(t)}(e,n):(0,p.isInputObjectType)(e)?function(e,n){var t=(0,i.default)(e.getFields()).map((function(e,t){return N(n,e,"  ",!t)+"  "+O(e)}));return N(n,e)+"input ".concat(e.name)+b(t)}(e,n):void(0,o.default)(!1,"Unexpected type: "+(0,a.default)(e))}function g(e,n){return b((0,i.default)(n.getFields()).map((function(n,t){return N(e,n,"  ",!t)+"  "+n.name+E(e,n.args,"  ")+": "+String(n.type)+_(n)})))}function b(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function E(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===n.length?"":n.every((function(e){return!e.description}))?"("+n.map(O).join(", ")+")":"(\n"+n.map((function(n,r){return N(e,n,"  "+t,!r)+"  "+t+O(n)})).join("\n")+"\n"+t+")"}function O(e){var n=(0,d.astFromValue)(e.defaultValue,e.type),t=e.name+": "+String(e.type);return n&&(t+=" = ".concat((0,u.print)(n))),t}function _(e){if(!e.isDeprecated)return"";var n=e.deprecationReason,t=(0,d.astFromValue)(n,l.GraphQLString);return t&&""!==n&&n!==f.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,u.print)(t)+")":" @deprecated"}function N(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!n.description)return"";var i=S(n.description,120-t.length);if(e&&e.commentDescriptions)return I(i,t,r);var a=i.join("\n"),o=a.length>70,u=(0,c.printBlockString)(a,"",o),s=t&&!r?"\n"+t:t;return s+u.replace(/\n/g,"\n"+t)+"\n"}function I(e,n,t){for(var r=n&&!t?"\n":"",i=0;i<e.length;i++){var a=e[i];r+=""===a?n+"#\n":n+"# "+a+"\n"}return r}function S(e,n){var t=e.split("\n");return(0,r.default)(t,(function(e){return e.length<n+5?e:function(e,n){var t=e.split(new RegExp("((?: |^).{15,".concat(n-40,"}(?= |$))")));if(t.length<4)return[e];for(var r=[t[0]+t[1]+t[2]],i=3;i<t.length;i+=2)r.push(t[i].slice(1)+t[i+1]);return r}(e,n)}))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isValidJSValue=function(e,n){var t=(0,r.coerceValue)(e,n).errors;return t?t.map((function(e){return e.message})):[]};var r=t(284)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isValidLiteralValue=function(e,n){var t=new u.GraphQLSchema({}),s={kind:r.Kind.DOCUMENT,definitions:[]},l=new c.TypeInfo(t,void 0,e),f=new o.ValidationContext(t,s,l),p=(0,a.ValuesOfCorrectType)(f);return(0,i.visit)(n,(0,i.visitWithTypeInfo)(l,p)),f.getErrors()};var r=t(18),i=t(28),a=t(196),o=t(197),u=t(95),c=t(128)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.concatAST=function(e){return{kind:"Document",definitions:(0,i.default)(e,(function(e){return e.definitions}))}};var r,i=(r=t(155))&&r.__esModule?r:{default:r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.separateOperations=function(e){var n,t=[],o=Object.create(null),u=new Map,c=Object.create(null),s=0;(0,r.visit)(e,{OperationDefinition:function(e){n=i(e),t.push(e),u.set(e,s++)},FragmentDefinition:function(e){n=e.name.value,o[n]=e,u.set(e,s++)},FragmentSpread:function(e){var t=e.name.value;(c[n]||(c[n]=Object.create(null)))[t]=!0}});for(var l=Object.create(null),f=0;f<t.length;f++){var p=t[f],d=i(p),v=Object.create(null);a(v,c,d);for(var y=[p],h=0,m=Object.keys(v);h<m.length;h++){var T=m[h];y.push(o[T])}y.sort((function(e,n){return(u.get(e)||0)-(u.get(n)||0)})),l[d]={kind:"Document",definitions:y}}return l};var r=t(28);function i(e){return e.name?e.name.value:""}function a(e,n,t){var r=n[t];if(r)for(var i=0,o=Object.keys(r);i<o.length;i++){var u=o[i];e[u]||(e[u]=!0,a(e,n,u))}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.stripIgnoredCharacters=function(e){var n="string"==typeof e?new a.Source(e):e;if(!(n instanceof a.Source))throw new TypeError("Must provide string or Source. Received: ".concat((0,i.default)(n)));var t=n.body,r=(0,u.createLexer)(n),c="",l=!1;for(;r.advance().kind!==o.TokenKind.EOF;){var f=r.token,p=f.kind,d=!(0,u.isPunctuatorToken)(f);l&&(d||f.kind===o.TokenKind.SPREAD)&&(c+=" ");var v=t.slice(f.start,f.end);p===o.TokenKind.BLOCK_STRING?c+=s(v):c+=v,l=d}return c};var r,i=(r=t(13))&&r.__esModule?r:{default:r},a=t(184),o=t(120),u=t(186),c=t(121);function s(e){var n=e.slice(3,-3),t=(0,c.dedentBlockStringValue)(n),r=t.split(/\r\n|[\n\r]/g);(0,c.getBlockStringIndentation)(r)>0&&(t="\n"+t);var i=t[t.length-1];return('"'===i&&'\\"""'!==t.slice(-4)||"\\"===i)&&(t+="\n"),'"""'+t+'"""'}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findBreakingChanges=function(e,n){return h(e,n).filter((function(e){return e.type in v}))},n.findDangerousChanges=function(e,n){return h(e,n).filter((function(e){return e.type in y}))},n.DangerousChangeType=n.BreakingChangeType=void 0;var r=f(t(49)),i=f(t(94)),a=f(t(13)),o=f(t(48)),u=t(63),c=t(28),s=t(11),l=t(157);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var v=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"});n.BreakingChangeType=v;var y=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",INTERFACE_ADDED_TO_OBJECT:"INTERFACE_ADDED_TO_OBJECT",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function h(e,n){return[].concat(function(e,n){for(var t=[],i=D((0,r.default)(e.getTypeMap()),(0,r.default)(n.getTypeMap())),a=0,o=i.removed;a<o.length;a++){var u=o[a];t.push({type:v.TYPE_REMOVED,description:"".concat(u.name," was removed.")})}for(var c=0,l=i.persisted;c<l.length;c++){var f=l[c],p=f[0],d=f[1];(0,s.isEnumType)(p)&&(0,s.isEnumType)(d)?t.push.apply(t,g(p,d)):(0,s.isUnionType)(p)&&(0,s.isUnionType)(d)?t.push.apply(t,T(p,d)):(0,s.isInputObjectType)(p)&&(0,s.isInputObjectType)(d)?t.push.apply(t,m(p,d)):(0,s.isObjectType)(p)&&(0,s.isObjectType)(d)?t.push.apply(t,b(p,d)):(0,s.isInterfaceType)(p)&&(0,s.isInterfaceType)(d)?t.push.apply(t,E(p,d)):p.constructor!==d.constructor&&t.push({type:v.TYPE_CHANGED_KIND,description:"".concat(p.name," changed from ")+"".concat(I(p)," to ").concat(I(d),".")})}return t}(e,n),function(e,n){for(var t=[],r=D(e.getDirectives(),n.getDirectives()),i=0,a=r.removed;i<a.length;i++){var o=a[i];t.push({type:v.DIRECTIVE_REMOVED,description:"".concat(o.name," was removed.")})}for(var u=0,c=r.persisted;u<c.length;u++){for(var l=c[u],f=l[0],p=l[1],d=D(f.args,p.args),y=0,h=d.added;y<h.length;y++){var m=h[y];(0,s.isRequiredArgument)(m)&&t.push({type:v.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(m.name," on directive ").concat(f.name," was added.")})}for(var T=0,g=d.removed;T<g.length;T++){var b=g[T];t.push({type:v.DIRECTIVE_ARG_REMOVED,description:"".concat(b.name," was removed from ").concat(f.name,".")})}for(var E=0,O=f.locations;E<O.length;E++){var _=O[E];-1===p.locations.indexOf(_)&&t.push({type:v.DIRECTIVE_LOCATION_REMOVED,description:"".concat(_," was removed from ").concat(f.name,".")})}}return t}(e,n))}function m(e,n){for(var t=[],i=D((0,r.default)(e.getFields()),(0,r.default)(n.getFields())),a=0,o=i.added;a<o.length;a++){var u=o[a];(0,s.isRequiredInputField)(u)?t.push({type:v.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(u.name," on input type ").concat(e.name," was added.")}):t.push({type:y.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(u.name," on input type ").concat(e.name," was added.")})}for(var c=0,l=i.removed;c<l.length;c++){var f=l[c];t.push({type:v.FIELD_REMOVED,description:"".concat(e.name,".").concat(f.name," was removed.")})}for(var p=0,d=i.persisted;p<d.length;p++){var h=d[p],m=h[0],T=h[1];N(m.type,T.type)||t.push({type:v.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(m.name," changed type from ")+"".concat(String(m.type)," to ").concat(String(T.type),".")})}return t}function T(e,n){for(var t=[],r=D(e.getTypes(),n.getTypes()),i=0,a=r.added;i<a.length;i++){var o=a[i];t.push({type:y.TYPE_ADDED_TO_UNION,description:"".concat(o.name," was added to union type ").concat(e.name,".")})}for(var u=0,c=r.removed;u<c.length;u++){var s=c[u];t.push({type:v.TYPE_REMOVED_FROM_UNION,description:"".concat(s.name," was removed from union type ").concat(e.name,".")})}return t}function g(e,n){for(var t=[],r=D(e.getValues(),n.getValues()),i=0,a=r.added;i<a.length;i++){var o=a[i];t.push({type:y.VALUE_ADDED_TO_ENUM,description:"".concat(o.name," was added to enum type ").concat(e.name,".")})}for(var u=0,c=r.removed;u<c.length;u++){var s=c[u];t.push({type:v.VALUE_REMOVED_FROM_ENUM,description:"".concat(s.name," was removed from enum type ").concat(e.name,".")})}return t}function b(e,n){for(var t=E(e,n),r=D(e.getInterfaces(),n.getInterfaces()),i=0,a=r.added;i<a.length;i++){var o=a[i];t.push({type:y.INTERFACE_ADDED_TO_OBJECT,description:"".concat(o.name," added to interfaces implemented by ").concat(e.name,".")})}for(var u=0,c=r.removed;u<c.length;u++){var s=c[u];t.push({type:v.INTERFACE_REMOVED_FROM_OBJECT,description:"".concat(e.name," no longer implements interface ").concat(s.name,".")})}return t}function E(e,n){for(var t=[],i=D((0,r.default)(e.getFields()),(0,r.default)(n.getFields())),a=0,o=i.removed;a<o.length;a++){var u=o[a];t.push({type:v.FIELD_REMOVED,description:"".concat(e.name,".").concat(u.name," was removed.")})}for(var c=0,s=i.persisted;c<s.length;c++){var l=s[c],f=l[0],p=l[1];t.push.apply(t,O(e,f,p)),_(f.type,p.type)||t.push({type:v.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(f.name," changed type from ")+"".concat(String(f.type)," to ").concat(String(p.type),".")})}return t}function O(e,n,t){for(var r=[],i=D(n.args,t.args),a=0,o=i.removed;a<o.length;a++){var u=o[a];r.push({type:v.ARG_REMOVED,description:"".concat(e.name,".").concat(n.name," arg ").concat(u.name," was removed.")})}for(var c=0,l=i.persisted;c<l.length;c++){var f=l[c],p=f[0],d=f[1];if(N(p.type,d.type)){if(void 0!==p.defaultValue)if(void 0===d.defaultValue)r.push({type:y.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(n.name," arg ").concat(p.name," defaultValue was removed.")});else{var h=S(p.defaultValue,p.type),m=S(d.defaultValue,d.type);h!==m&&r.push({type:y.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(n.name," arg ").concat(p.name," has changed defaultValue from ").concat(h," to ").concat(m,".")})}}else r.push({type:v.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(n.name," arg ").concat(p.name," has changed type from ")+"".concat(String(p.type)," to ").concat(String(d.type),".")})}for(var T=0,g=i.added;T<g.length;T++){var b=g[T];(0,s.isRequiredArgument)(b)?r.push({type:v.REQUIRED_ARG_ADDED,description:"A required arg ".concat(b.name," on ").concat(e.name,".").concat(n.name," was added.")}):r.push({type:y.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(b.name," on ").concat(e.name,".").concat(n.name," was added.")})}return r}function _(e,n){return(0,s.isListType)(e)?(0,s.isListType)(n)&&_(e.ofType,n.ofType)||(0,s.isNonNullType)(n)&&_(e,n.ofType):(0,s.isNonNullType)(e)?(0,s.isNonNullType)(n)&&_(e.ofType,n.ofType):(0,s.isNamedType)(n)&&e.name===n.name||(0,s.isNonNullType)(n)&&_(e,n.ofType)}function N(e,n){return(0,s.isListType)(e)?(0,s.isListType)(n)&&N(e.ofType,n.ofType):(0,s.isNonNullType)(e)?(0,s.isNonNullType)(n)&&N(e.ofType,n.ofType)||!(0,s.isNonNullType)(n)&&N(e.ofType,n):(0,s.isNamedType)(n)&&e.name===n.name}function I(e){return(0,s.isScalarType)(e)?"a Scalar type":(0,s.isObjectType)(e)?"an Object type":(0,s.isInterfaceType)(e)?"an Interface type":(0,s.isUnionType)(e)?"a Union type":(0,s.isEnumType)(e)?"an Enum type":(0,s.isInputObjectType)(e)?"an Input type":void(0,o.default)(!1,"Unexpected type: "+(0,a.default)(e))}function S(e,n){var t=(0,l.astFromValue)(e,n);null!=t||(0,o.default)(0);var r=(0,c.visit)(t,{ObjectValue:function(e){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(t,!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(t).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},e,{fields:[].concat(e.fields).sort((function(e,n){return e.name.value.localeCompare(n.name.value)}))})}});return(0,u.print)(r)}function D(e,n){for(var t=[],r=[],a=[],o=(0,i.default)(e,(function(e){return e.name})),u=(0,i.default)(n,(function(e){return e.name})),c=0;c<e.length;c++){var s=e[c],l=u[s.name];void 0===l?r.push(s):a.push([s,l])}for(var f=0;f<n.length;f++){var p=n[f];void 0===o[p.name]&&t.push(p)}return{added:t,persisted:a,removed:r}}n.DangerousChangeType=y},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findDeprecatedUsages=function(e,n){var t=[],u=new o.TypeInfo(e);return(0,i.visit)(n,(0,i.visitWithTypeInfo)(u,{Field:function(e){var n=u.getFieldDef();if(n&&n.isDeprecated){var i=u.getParentType();if(i){var a=n.deprecationReason;t.push(new r.GraphQLError("The field ".concat(i.name,".").concat(n.name," is deprecated.")+(a?" "+a:""),e))}}},EnumValue:function(e){var n=u.getEnumValue();if(n&&n.isDeprecated){var i=(0,a.getNamedType)(u.getInputType());if(i){var o=n.deprecationReason;t.push(new r.GraphQLError("The enum value ".concat(i.name,".").concat(n.name," is deprecated.")+(o?" "+o:""),e))}}}})),t};var r=t(5),i=t(28),a=t(11),o=t(128)},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(68),i=t(6),a=t(199),o=t(68),u=t(351);function c(e,n){Object.keys(n).forEach((function(t){e[t]=n[t]}))}n.default=function(e,n,t){e instanceof i.GraphQLSchema&&(console.warn("The addResolveFunctionsToSchema function takes named options now; see IAddResolveFunctionsToSchemaOptions"),e={schema:e,resolvers:n,resolverValidationOptions:t});var s=e.schema,l=e.resolvers,f=e.resolverValidationOptions,p=void 0===f?{}:f,d=e.inheritResolversFromInterfaces,v=void 0!==d&&d,y=p.allowResolversNotInSchema,h=void 0!==y&&y,m=p.requireResolversForResolveType,T=v?o.extendResolversFromInterfaces(s,l):l,g=Object.create(null);return Object.keys(T).forEach((function(e){var n=T[e],t=typeof n;if("object"!==t&&"function"!==t)throw new r.SchemaError('"'+e+'" defined in resolvers, but has invalid value "'+n+"\". A resolver's value must be of type object or function.");var a=s.getType(e);if(!a&&"__schema"!==e){if(h)return;throw new r.SchemaError('"'+e+'" defined in resolvers, but not in schema')}Object.keys(n).forEach((function(t){if(t.startsWith("__"))a[t.substring(2)]=n[t];else if(a instanceof i.GraphQLScalarType)a[t]=n[t];else{if(a instanceof i.GraphQLEnumType){if(!a.getValue(t)){if(h)return;throw new r.SchemaError(e+"."+t+" was defined in resolvers, but enum is not in schema")}return g[a.name]=g[a.name]||{},void(g[a.name][t]=n[t])}var o=function(e){return e instanceof i.GraphQLObjectType||e instanceof i.GraphQLInterfaceType?e.getFields():void 0}(a);if(!o){if(h)return;throw new r.SchemaError(e+" was defined in resolvers, but it's not an object")}if(!o[t]){if(h)return;throw new r.SchemaError(e+"."+t+" defined in resolvers, but not in schema")}var u=o[t],s=n[t];if("function"==typeof s)c(u,{resolve:s});else{if("object"!=typeof s)throw new r.SchemaError("Resolver "+e+"."+t+" must be object or function");c(u,s)}}}))})),o.checkForResolveTypeResolver(s,m),a.applySchemaTransforms(s,[new u.default(g)])}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(129),a=function(){function e(e){this.enumValueMap=e}return e.prototype.transformSchema=function(e){var n,t=this.enumValueMap;return t&&0!==Object.keys(t).length?i.visitSchema(e,((n={})[i.VisitSchemaKind.ENUM_TYPE]=function(e){var n=t[e.name];if(n){var i=e.getValues(),a={};return i.forEach((function(e){var t=Object.keys(n).includes(e.name)?n[e.name]:e.name;a[e.name]={value:t,deprecationReason:e.deprecationReason,description:e.description,astNode:e.astNode}})),new r.GraphQLEnumType({name:e.name,description:e.description,astNode:e.astNode,values:a})}return e},n)):e},e}();n.default=a},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);function i(e,n){return function(t,i,a,o){return Promise.resolve(n(t,i,a,o)).then((function(n){return e?e(n,i,a,o):r.defaultFieldResolver(n,i,a,o)}))}}n.default=function(e,n){[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()].filter((function(e){return!!e})).forEach((function(t){var r=function(e){var n,t=Math.random();return function(r,i,a,o){return o.operation.__runAtMostOnce||(o.operation.__runAtMostOnce={}),o.operation.__runAtMostOnce[t]||(o.operation.__runAtMostOnce[t]=!0,n=e(r,i,a,o)),n}}(n),a=t.getFields();Object.keys(a).forEach((function(o){t===e.getSubscriptionType()?a[o].resolve=i(a[o].resolve,n):a[o].resolve=i(a[o].resolve,r)}))}))}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(68);function a(e,n,t){if(e.resolve){if("function"!=typeof e.resolve)throw new i.SchemaError('Resolver "'+n+"."+t+'" must be a function')}else console.warn('Resolve function missing for "'+n+"."+t+'". To disable this warning check https://github.com/apollostack/graphql-tools/issues/131')}n.default=function(e,n){void 0===n&&(n={});var t=n.requireResolversForArgs,o=void 0!==t&&t,u=n.requireResolversForNonScalar,c=void 0!==u&&u,s=n.requireResolversForAllFields,l=void 0!==s&&s;if(l&&(o||c))throw new TypeError("requireResolversForAllFields takes precedence over the more specific assertions. Please configure either requireResolversForAllFields or requireResolversForArgs / requireResolversForNonScalar, but not a combination of them.");i.forEachField(e,(function(e,n,t){l&&a(e,n,t),o&&e.args.length>0&&a(e,n,t),!c||r.getNamedType(e.type)instanceof r.GraphQLScalarType||a(e,n,t)}))}},function(e,n,t){var r,i=this&&this.__extends||(r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,u)}c((r=r.apply(e,n||[])).next())}))},o=this&&this.__generator||function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(n,"__esModule",{value:!0});var u=t(6),c=t(161);n.default=function(e,n){if("object"!=typeof n)throw new Error("Expected directiveResolvers to be of type object, got "+typeof n);if(Array.isArray(n))throw new Error("Expected directiveResolvers to be of type object, got Array");var t=Object.create(null);Object.keys(n).forEach((function(e){t[e]=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.visitFieldDefinition=function(t){var r=this,i=n[e],c=t.resolve||u.defaultFieldResolver,s=this.args;t.resolve=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var u=e[0],l=e[2],f=e[3];return i((function(){return a(r,void 0,void 0,(function(){return o(this,(function(n){return[2,c.apply(t,e)]}))}))}),u,s,l,f)}},r}(c.SchemaDirectiveVisitor)})),c.SchemaDirectiveVisitor.visitSchemaDirectives(e,t)}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(98),a=t(68),o=i.deprecated({version:"0.7.0",url:"https://github.com/apollostack/graphql-tools/issues/140"},(function(e,n){if(!(e&&e instanceof r.GraphQLSchema))throw new Error("schema must be an instance of GraphQLSchema. This error could be caused by installing more than one version of GraphQL-JS");if("object"!=typeof n)throw new Error("Expected connectors to be of type object, got "+typeof n);if(0===Object.keys(n).length)throw new Error("Expected connectors to not be an empty object");if(Array.isArray(n))throw new Error("Expected connectors to be of type object, got Array");if(e._apolloConnectorsAttached)throw new Error("Connectors already attached to context, cannot attach more than once");e._apolloConnectorsAttached=!0;a.addSchemaLevelResolveFunction(e,(function(e,t,r){if("object"!=typeof r)throw new Error("Cannot attach connector because context is not an object: "+typeof r);return void 0===r.connectors&&(r.connectors={}),Object.keys(n).forEach((function(e){var t=n[e];if(!t.prototype)throw new Error("Connector must be a function or an class");r.connectors[e]=new t(r)})),e}))}));n.default=o},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(68),a=t(357);n.default=function(e,n){var t,o=e;if(function(e){return void 0!==e.kind}(e))t=e;else if("string"!=typeof o){if(!Array.isArray(o)){var u=typeof o;throw new i.SchemaError("typeDefs must be a string, array or schema AST, got "+u)}o=i.concatenateTypeDefs(o)}"string"==typeof o&&(t=r.parse(o,n));var c={commentDescriptions:!0},s=a.default(t),l=r.buildASTSchema(s,c),f=i.extractExtensionDefinitions(t);return f.definitions.length>0&&(l=r.extendSchema(l,f,c)),l}},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=t(6);n.default=function(e){var n=e.definitions.filter((function(e){return e.kind!==i.Kind.OBJECT_TYPE_EXTENSION&&e.kind!==i.Kind.INTERFACE_TYPE_EXTENSION&&e.kind!==i.Kind.INPUT_OBJECT_TYPE_EXTENSION&&e.kind!==i.Kind.UNION_TYPE_EXTENSION&&e.kind!==i.Kind.ENUM_TYPE_EXTENSION&&e.kind!==i.Kind.SCALAR_TYPE_EXTENSION&&e.kind!==i.Kind.SCHEMA_EXTENSION}));return r(r({},e),{definitions:n})}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);n.chainResolvers=function(e){return function(n,t,i,a){return e.reduce((function(e,n){return n?n(e,t,i,a):r.defaultFieldResolver(e,t,i,a)}),n)}}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(68);n.default=function(e,n){Object.keys(e.getTypeMap()).map((function(n){return e.getType(n)})).forEach((function(e){if((e instanceof r.GraphQLUnionType||e instanceof r.GraphQLInterfaceType)&&!e.resolveType){if(!1===n)return;if(!0===n)throw new i.SchemaError('Type "'+e.name+'" is missing a "resolveType" resolver');console.warn('Type "'+e.name+'" is missing a "__resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.')}}))}},function(e,n,t){var r=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var i=t(6),a=t(68);n.default=function e(n,t){void 0===t&&(t=[]);var o,u=[];return n.forEach((function(n){if(void 0!==n.kind&&(n=i.print(n)),"function"==typeof n)-1===t.indexOf(n)&&(t.push(n),u=u.concat(e(n(),t)));else{if("string"!=typeof n){var r=typeof n;throw new a.SchemaError("typeDef array must contain only strings and functions, got "+r)}u.push(n.trim())}})),(o=u.map((function(e){return e.trim()})),o.reduce((function(e,n){return-1===e.indexOf(n)?r(e,[n]):e}),[])).join("\n")}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);n.default=function(e,n,t){void 0===e&&(e=r.defaultFieldResolver);var i=function(e){var r=new Error;r.stack=e.stack,t&&(r.originalMessage=e.message,r.message="Error in resolver "+t+"\n"+e.message),n.log(r)};return function(n,t,r,a){try{var o=e(n,t,r,a);return o&&"function"==typeof o.then&&"function"==typeof o.catch&&o.catch((function(e){var n=e instanceof Error?e:new Error(e);return i(n),e})),o}catch(e){throw i(e),e}}}},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var a=t(6);n.default=function(e,n){var t=Object.keys(r(r({},e.getTypeMap()),n)),o={};return t.forEach((function(t){var r=n[t],u=e.getType(t);if(u instanceof a.GraphQLObjectType){var c=u.getInterfaces().map((function(e){return n[e.name]}));o[t]=Object.assign.apply(Object,i([{}],c,[r]))}else r&&(o[t]=r)})),o}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0});n.default=function(e){var n=e.definitions.filter((function(e){return"ObjectTypeExtension"===e.kind||"InterfaceTypeExtension"===e.kind||"InputObjectTypeExtension"===e.kind||"UnionTypeExtension"===e.kind||"EnumTypeExtension"===e.kind}));return Object.assign({},e,{definitions:n})}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);n.default=function(e,n){var t=e.getTypeMap();Object.keys(t).forEach((function(e){var i=t[e];if(!r.getNamedType(i).name.startsWith("__")&&i instanceof r.GraphQLObjectType){var a=i.getFields();Object.keys(a).forEach((function(t){var r=a[t];n(r,e,t)}))}}))}},function(e,n){var t,r=this&&this.__extends||(t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0});var i=function(e){function n(n){var t=e.call(this,n)||this;return t.message=n,Error.captureStackTrace(t,t.constructor),t}return r(n,e),n}(Error);n.default=i},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(99),a=t(127);n.mockServer=function(e,n,t){var i;return void 0===t&&(t=!1),u({schema:i=e instanceof r.GraphQLSchema?e:a.buildSchemaFromTypeDefinitions(e),mocks:n,preserveResolvers:t}),{query:function(e,n){return r.graphql(i,e,{},{},n)}}};var o=new Map;function u(e){var n=e.schema,t=e.mocks,i=void 0===t?{}:t,u=e.preserveResolvers,p=void 0!==u&&u;if(!n)throw new Error("Must provide schema to mock");if(!(n instanceof r.GraphQLSchema))throw new Error('Value at "schema" must be of type GraphQLSchema');if(!c(i))throw new Error("mocks must be of type Object");var d=new Map;Object.keys(i).forEach((function(e){d.set(e,i[e])})),d.forEach((function(e,n){if("function"!=typeof e)throw new Error("mockFunctionMap["+n+"] must be a function")}));var v=function(e,t,i){return function(t,a,u,l){var p=r.getNullableType(e),y=r.getNamedType(p);if(t&&void 0!==t[i]){var h=void 0;return"function"==typeof t[i]?(h=t[i](t,a,u,l))instanceof f&&(h=h.mock(t,a,u,l,p,v)):h=t[i],d.has(y.name)&&(h=function e(n,t){if(Array.isArray(t))return t.map((function(t){return e(n,t)}));if(c(t))return r=n(),i=t,Object.assign(r,i);var r,i;return t}(d.get(y.name).bind(null,t,a,u,l),h)),h}if(p instanceof r.GraphQLList||p instanceof r.GraphQLNonNull)return[v(p.ofType)(t,a,u,l),v(p.ofType)(t,a,u,l)];if(d.has(p.name)&&!(p instanceof r.GraphQLUnionType||p instanceof r.GraphQLInterfaceType))return d.get(p.name)(t,a,u,l);if(p instanceof r.GraphQLObjectType)return{};if(p instanceof r.GraphQLUnionType||p instanceof r.GraphQLInterfaceType){var m=void 0;if(d.has(p.name)){var T=d.get(p.name)(t,a,u,l);if(!T||!T.__typename)return Error('Please return a __typename in "'+p.name+'"');m=n.getType(T.__typename)}else{m=s(n.getPossibleTypes(p))}return Object.assign({__typename:m},v(m)(t,a,u,l))}return p instanceof r.GraphQLEnumType?s(p.getValues()).value:o.has(p.name)?o.get(p.name)(t,a,u,l):Error('No mock defined for type "'+p.name+'"')}};a.forEachField(n,(function(e,t,i){var a;!function(e,n){var t=r.getNullableType(e),i=r.getNamedType(t),a=function(e){return e instanceof r.GraphQLInterfaceType||e instanceof r.GraphQLUnionType?e.resolveType:void 0}(i);if(n&&a&&a.length)return;(i instanceof r.GraphQLUnionType||i instanceof r.GraphQLInterfaceType)&&(i.resolveType=function(e,n,t){return t.schema.getType(e.__typename)})}(e.type,p);var o=n.getQueryType()&&n.getQueryType().name===t,u=n.getMutationType()&&n.getMutationType().name===t;if((o||u)&&d.has(t)){var s=d.get(t);"function"==typeof s(void 0,{},{},{})[i]&&(a=function(n,r,a,o){var u=n||{};return u[i]=s(n,r,a,o)[i],v(e.type,t,i)(u,r,a,o)})}if(a||(a=v(e.type,t,i)),p&&e.resolve){var f=e.resolve;e.resolve=function(e,n,t,r){return Promise.all([a(e,n,t,r),f(e,n,t,r)]).then((function(e){var n=e[0],t=e[1];if(n instanceof Error){if(void 0===t)throw n;return t}return t instanceof Date&&n instanceof Date?void 0!==t?t:n:c(n)&&c(t)?function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return n.forEach((function(n){for(var t=n;t;)l(e,t),t=Object.getPrototypeOf(t)})),e}(Object.create(Object.getPrototypeOf(t)),t,n):void 0!==t?t:n}))}}else e.resolve=a}))}function c(e){return e===Object(e)&&!Array.isArray(e)}function s(e){return e[Math.floor(Math.random()*e.length)]}function l(e,n){Object.getOwnPropertyNames(n).forEach((function(t){Object.getOwnPropertyDescriptor(e,t)||Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}o.set("Int",(function(){return Math.round(200*Math.random())-100})),o.set("Float",(function(){return 200*Math.random()-100})),o.set("String",(function(){return"Hello World"})),o.set("Boolean",(function(){return Math.random()>.5})),o.set("ID",(function(){return i.v4()})),n.addMockFunctionsToSchema=u;var f=function(){function e(e,n){if(this.len=e,void 0!==n){if("function"!=typeof n)throw new Error("Second argument to MockList must be a function or undefined");this.wrappedFunction=n}}return e.prototype.mock=function(n,t,i,a,o,u){var c;c=Array.isArray(this.len)?new Array(this.randint(this.len[0],this.len[1])):new Array(this.len);for(var s=0;s<c.length;s++)if("function"==typeof this.wrappedFunction){var l=this.wrappedFunction(n,t,i,a);if(l instanceof e){var f=r.getNullableType(o.ofType);c[s]=l.mock(n,t,i,a,f,u)}else c[s]=l}else c[s]=u(o.ofType)(n,t,i,a);return c},e.prototype.randint=function(e,n){return Math.floor(Math.random()*(n-e+1)+e)},e}();n.MockList=f},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(368);n.makeRemoteExecutableSchema=r.default,n.defaultCreateRemoteResolver=r.createResolver;var i=t(370);n.introspectSchema=i.default;var a=t(371);n.mergeSchemas=a.default;var o=t(203);n.delegateToSchema=o.default;var u=t(201);n.defaultMergedResolver=u.default},function(e,n,t){var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,u)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},a=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var o=t(6),u=t(288),c=t(289),s=t(127),l=t(130),f=t(200),p=t(201),d=t(202),v=t(369);function y(e){var n=this;return function(t,u,c,s){return r(n,void 0,void 0,(function(){var n,t,r;return i(this,(function(i){switch(i.label){case 0:return n=Object.keys(s.fragments).map((function(e){return s.fragments[e]})),t={kind:o.Kind.DOCUMENT,definitions:a([s.operation],n)},[4,e({query:t,variables:s.variableValues,context:{graphqlContext:c}})];case 1:return r=i.sent(),[2,d.checkResultAndHandleErrors(r,s)]}}))}))}}function h(e,n){return function(e,t,r,i){var c=Object.keys(i.fragments).map((function(e){return i.fragments[e]})),s={query:{kind:o.Kind.DOCUMENT,definitions:a([i.operation],c)},variables:i.variableValues,context:{graphqlContext:r}},l=u.execute(n,s);return v.observableToAsyncIterable(l)}}n.default=function(e){var n,t,r=e.schema,i=e.link,a=e.fetcher,d=e.createResolver,v=void 0===d?y:d,m=e.buildSchemaOptions,T=e.printSchemaOptions,g=void 0===T?{commentDescriptions:!0}:T;!a&&i&&(a=u.default(i)),"string"==typeof r?(t=r,r=o.buildSchema(t,m)):t=o.printSchema(r,g);var b={},E=r.getQueryType(),O=E.getFields();Object.keys(O).forEach((function(e){b[e]=v(a)}));var _={},N=r.getMutationType();if(N){var I=N.getFields();Object.keys(I).forEach((function(e){_[e]=v(a)}))}var S={},D=r.getSubscriptionType();if(D){var L=D.getFields();Object.keys(L).forEach((function(e){S[e]={subscribe:h(e,i)}}))}var A=((n={})[E.name]=b,n);c.default(_)||(A[N.name]=_),c.default(S)||(A[D.name]=S);for(var j=r.getTypeMap(),w=function(e){if(e instanceof o.GraphQLInterfaceType||e instanceof o.GraphQLUnionType)A[e.name]={__resolveType:function(e,n,t){return f.default(e,t.schema)}};else if(e instanceof o.GraphQLScalarType)e!==o.GraphQLID&&e!==o.GraphQLString&&e!==o.GraphQLFloat&&e!==o.GraphQLBoolean&&e!==o.GraphQLInt&&(A[e.name]=l.recreateType(e,(function(e){return null}),!1));else if(e instanceof o.GraphQLObjectType&&"__"!==e.name.slice(0,2)&&e!==E&&e!==N&&e!==D){var n={};Object.keys(e.getFields()).forEach((function(e){n[e]=p.default})),A[e.name]=n}},P=0,k=Object.keys(j).map((function(e){return j[e]}));P<k.length;P++){w(k[P])}return s.makeExecutableSchema({typeDefs:t,resolvers:A})},n.createResolver=y},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,u)}c((r=r.apply(e,n||[])).next())}))},a=this&&this.__generator||function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(n,"__esModule",{value:!0});var o=t(47);n.observableToAsyncIterable=function(e){var n,t=[],u=[],c=!0,s=e.subscribe({next:function(e){!function(e){var n=e.data;0!==t.length?t.shift()({value:n,done:!1}):u.push({value:n})}(e)},error:function(e){var n;n=e,0!==t.length?t.shift()({value:{errors:[n]},done:!1}):u.push({value:{errors:[n]}})}}),l=function(){c&&(c=!1,s.unsubscribe(),t.forEach((function(e){return e({value:void 0,done:!0})})),t.length=0,u.length=0)};return(n={next:function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return[2,c?new Promise((function(e){if(0!==u.length){var n=u.shift();e(r(r({},n),{done:!1}))}else t.push(e)})):this.return()]}))}))},return:function(){return l(),Promise.resolve({value:void 0,done:!0})},throw:function(e){return l(),Promise.reject(e)}})[o.$$asyncIterator]=function(){return this},n}},function(e,n,t){var r=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,u)}c((r=r.apply(e,n||[])).next())}))},i=this&&this.__generator||function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e],r=0}finally{t=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};Object.defineProperty(n,"__esModule",{value:!0});var a=t(6),o=t(8),u=t(288),c=a.parse(o.getIntrospectionQuery());n.default=function(e,n){return r(this,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return e.request&&(e=u.default(e)),[4,e({query:c,context:n})];case 1:if((t=r.sent()).errors&&t.errors.length||!t.data.__schema)throw t.errors;return[2,a.buildClientSchema(t.data)]}}))}))}},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var a=t(6),o=t(127),u=t(130),c=t(203),s=t(374),l=t(297),f=t(285),p=t(161);function d(e,n,t){e[n]||(e[n]=[]),e[n].push(t)}n.default=function(e){var n=e.schemas;return e.onTypeConflict,function(e){var n=e.schemas,t=e.resolvers,v=e.schemaDirectives,y=e.inheritResolversFromInterfaces,h=e.mergeDirectives,m=[],T={},g={},b=[],E=[],O=[],_=u.createResolveType((function(e){if(void 0===g[e])throw new Error("Can't find type "+e+".");return g[e]}));n.forEach((function(e){if(e instanceof a.GraphQLSchema){m.push(e);var n=e.getQueryType(),t=e.getMutationType(),r=e.getSubscriptionType();if(n&&d(T,"Query",{schema:e,type:n}),t&&d(T,"Mutation",{schema:e,type:t}),r&&d(T,"Subscription",{schema:e,type:r}),h)e.getDirectives().forEach((function(e){E.push(e)}));var i=e.getTypeMap();Object.keys(i).forEach((function(o){var u=i[o];a.isNamedType(u)&&"__"!==a.getNamedType(u).name.slice(0,2)&&u!==n&&u!==t&&u!==r&&d(T,u.name,{schema:e,type:u})}))}else if("string"==typeof e||e&&e.kind===a.Kind.DOCUMENT){var u="string"==typeof e?a.parse(e):e;u.definitions.forEach((function(e){var n=s.default(e);n instanceof a.GraphQLDirective&&h?E.push(n):!n||n instanceof a.GraphQLDirective||d(T,n.name,{type:n})}));var c=o.extractExtensionDefinitions(u);c.definitions.length>0&&b.push(c)}else{if(!Array.isArray(e))throw new Error("Invalid schema passed");e.forEach((function(e){d(T,e.name,{type:e})}))}}));var N=function(e,n){return{delegate:function(t,r,a,o,u,s){console.warn("`mergeInfo.delegate` is deprecated. Use `mergeInfo.delegateToSchema and pass explicit schema instances.");var f=function(e,n,t){for(var r=0,i=e;r<i.length;r++){var a=i[r],o=void 0;if(o="subscription"===n?a.getSubscriptionType():"mutation"===n?a.getMutationType():a.getQueryType())if(o.getFields()[t])return a}throw new Error("Could not find subschema with field `"+n+"."+t+"`")}(e,t,r),p=new l.ExpandAbstractTypes(u.schema,f),d=new l.ReplaceFieldWithFragment(f,n);return c.default({schema:f,operation:t,fieldName:r,args:a,context:o,info:u,transforms:i(s||[],[p,d])})},delegateToSchema:function(e){return c.default(r(r({},e),{transforms:e.transforms}))},fragments:n}}(m,O);t?"function"==typeof t?(console.warn("Passing functions as resolver parameter is deprecated. Use `info.mergeInfo` instead."),t=t(N)):Array.isArray(t)&&(t=t.reduce((function(e,n){return"function"==typeof n&&(console.warn("Passing functions as resolver parameter is deprecated. Use `info.mergeInfo` instead."),n=n(N)),f.default(e,n)}),{})):t={};var I={};Object.keys(T).forEach((function(e){var n=function(e,n,t){t||(t=function(e){return e[e.length-1]});var i=u.createResolveType((function(e,n){return n}));if("Query"===e||"Mutation"===e||"Subscription"===e){var o,c={};switch(e){case"Query":o="query";break;case"Mutation":o="mutation";break;case"Subscription":o="subscription"}var s={},l="subscription"===o?"subscribe":"resolve";return n.forEach((function(e){var n=e.type,t=e.schema,i=n.getFields();c=r(r({},c),i),Object.keys(i).forEach((function(e){var n;s[e]=((n={})[l]=function(e,n,t){return function(r,i,a,o){return o.mergeInfo.delegateToSchema({schema:e,operation:n,fieldName:t,args:i,context:a,info:o})}}(t,o,e),n)}))})),{type:new a.GraphQLObjectType({name:e,fields:u.fieldMapToFieldConfigMap(c,i,!1)}),resolvers:s}}return t(n).type}(e,T[e]);if(null===n)g[e]=null;else{var t=void 0,i=void 0;if(a.isNamedType(n))t=n;else{if(!n.type)throw new Error("Invalid visitType result for type "+e);t=n.type,i=n.resolvers}g[e]=u.recreateType(t,_,!1),i&&(I[e]=i)}}));var S=new a.GraphQLSchema({query:g.Query,mutation:g.Mutation,subscription:g.Subscription,types:Object.keys(g).map((function(e){return g[e]})),directives:E.map((function(e){return u.recreateDirective(e,_)}))});b.forEach((function(e){S=a.extendSchema(S,e,{commentDescriptions:!0})})),t?Array.isArray(t)&&(t=t.reduce(f.default,{})):t={};Object.keys(t).forEach((function(e){var n=t[e];n instanceof a.GraphQLScalarType||Object.keys(n).forEach((function(e){var t=n[e];t.fragment&&O.push({field:e,fragment:t.fragment})}))})),D=S=o.addResolveFunctionsToSchema({schema:S,resolvers:f.default(I,t),inheritResolversFromInterfaces:y}),L=function(e){if(e.resolve){var n=e.resolve;e.resolve=function(e,t,i,a){var o=r(r({},a),{mergeInfo:N});return n(e,t,i,o)}}if(e.subscribe){var t=e.subscribe;e.subscribe=function(e,n,i,a){var o=r(r({},a),{mergeInfo:N});return t(e,n,i,o)}}},A=D.getTypeMap(),void Object.keys(A).forEach((function(e){var n=A[e];if(!a.getNamedType(n).name.startsWith("__")&&n instanceof a.GraphQLObjectType){var t=n.getFields();Object.keys(t).forEach((function(n){var r=t[n];L(r,e,n)}))}})),v&&p.SchemaDirectiveVisitor.visitSchemaDirectives(S,v);var D,L,A;return S}({schemas:n,resolvers:e.resolvers,schemaDirectives:e.schemaDirectives,inheritResolversFromInterfaces:e.inheritResolversFromInterfaces,mergeDirectives:e.mergeDirectives})}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(47);function i(e,n){return new Promise((function(t){return t(n(e))}))}function a(e){return{value:e,done:!1}}n.default=function(e,n,t){var o,u,c,s;function l(e){return e.done?e:i(e.value,n).then(a,c)}if("function"==typeof e.return&&(u=e.return,c=function(n){var t=function(){return Promise.reject(n)};return u.call(e).then(t,t)}),t){var f=t;s=function(e){return i(e,f).then(a,c)}}return(o={next:function(){return e.next().then(l,s)},return:function(){return u?u.call(e).then(l,s):Promise.resolve({value:void 0,done:!0})},throw:function(n){return"function"==typeof e.throw?e.throw(n).then(l,s):Promise.reject(n).catch(c)}})[r.$$asyncIterator]=function(){return this},o}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(e){this.enumNode=e}return e.prototype.transformResult=function(e){var n=this.enumNode.getValue(e);return n?n.value:e},e}();n.default=t},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(200),a={commentDescriptions:!0};function o(e){var n={};return e.forEach((function(e){var t=e.directives.find((function(e){return e&&e.name&&"deprecated"===e.name.value})),i=t&&t.arguments&&t.arguments.find((function(e){return e&&e.name&&"reason"===e.name.value})),o=i&&i.value&&i.value.value;n[e.name.value]={type:c(e.type,"object"),args:u(e.arguments),description:r.getDescription(e,a),deprecationReason:o}})),n}function u(e){var n={};return e.forEach((function(e){var t=c(e.type,"input");n[e.name.value]={type:t,defaultValue:r.valueFromAST(e.defaultValue,t),description:r.getDescription(e,a)}})),n}function c(e,n){switch(e.kind){case r.Kind.LIST_TYPE:return new r.GraphQLList(c(e.type,n));case r.Kind.NON_NULL_TYPE:return new r.GraphQLNonNull(c(e.type,n));default:return s(e.name.value,n)}}function s(e,n){return new("object"===n?r.GraphQLObjectType:"interface"===n?r.GraphQLInterfaceType:r.GraphQLInputObjectType)({name:e,fields:{__fake:{type:r.GraphQLString}}})}n.default=function(e){switch(e.kind){case r.Kind.OBJECT_TYPE_DEFINITION:return function(e){return new r.GraphQLObjectType({name:e.name.value,fields:function(){return o(e.fields)},interfaces:function(){return e.interfaces.map((function(e){return s(e.name.value,"interface")}))},description:r.getDescription(e,a)})}(e);case r.Kind.INTERFACE_TYPE_DEFINITION:return function(e){return new r.GraphQLInterfaceType({name:e.name.value,fields:function(){return o(e.fields)},description:r.getDescription(e,a),resolveType:function(e,n,t){return i.default(e,t.schema)}})}(e);case r.Kind.ENUM_TYPE_DEFINITION:return function(e){var n={};return e.values.forEach((function(e){n[e.name.value]={description:r.getDescription(e,a)}})),new r.GraphQLEnumType({name:e.name.value,values:n,description:r.getDescription(e,a)})}(e);case r.Kind.UNION_TYPE_DEFINITION:return function(e){return new r.GraphQLUnionType({name:e.name.value,types:function(){return e.types.map((function(e){return c(e,"object")}))},description:r.getDescription(e,a),resolveType:function(e,n,t){return i.default(e,t.schema)}})}(e);case r.Kind.SCALAR_TYPE_DEFINITION:return function(e){return new r.GraphQLScalarType({name:e.name.value,description:r.getDescription(e,a),serialize:function(){return null},parseValue:function(){return!1},parseLiteral:function(){return!1}})}(e);case r.Kind.INPUT_OBJECT_TYPE_DEFINITION:return function(e){return new r.GraphQLInputObjectType({name:e.name.value,fields:function(){return u(e.fields)},description:r.getDescription(e,a)})}(e);case r.Kind.DIRECTIVE_DEFINITION:return function(e){var n=[];return e.locations.forEach((function(e){e.value in r.DirectiveLocation&&n.push(e.value)})),new r.GraphQLDirective({name:e.name.value,description:e.description?e.description.value:null,args:u(e.arguments),locations:n})}(e);default:return null}}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(127),i=t(129),a=t(199),o=t(376);n.default=function(e,n){var t=i.visitSchema(e,{},!0),u=o.generateSimpleMapping(e),c=o.generateProxyingResolvers(e,n,u);return t=r.addResolveFunctionsToSchema({schema:t,resolvers:c,resolverValidationOptions:{allowResolversNotInSchema:!0}}),(t=a.applySchemaTransforms(t,n)).transforms=n,t}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(203);function i(e,n){var t={},r=e.getFields();return Object.keys(r).forEach((function(e){t[e]={name:e,operation:n}})),t}n.generateProxyingResolvers=function(e,n,t){var i={};return Object.keys(t).forEach((function(a){i[a]={};var o=t[a];Object.keys(o).forEach((function(t){var u,c=o[t],s="subscription"===c.operation?"subscribe":"resolve";i[a][t]=((u={})[s]=function(e,n,t,i){return function(a,o,u,c){return r.default({schema:e,operation:n,fieldName:t,args:{},context:u,info:c,transforms:i})}}(e,c.operation,c.name,n),u)}))})),i},n.generateSimpleMapping=function(e){var n=e.getQueryType(),t=e.getMutationType(),r=e.getSubscriptionType(),a={};return n&&(a[n.name]=i(n,"query")),t&&(a[t.name]=i(t,"mutation")),r&&(a[r.name]=i(r,"subscription")),a},n.generateMappingFromObjectType=i},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=t(6),a=t(286),o=t(129),u=function(){function e(e,n){this.renamer=e,this.reverseMap={};var t=n||{},r=t.renameBuiltins,i=void 0!==r&&r,a=t.renameScalars,o=void 0===a||a;this.renameBuiltins=i,this.renameScalars=o}return e.prototype.transformSchema=function(e){var n,t=this;return o.visitSchema(e,((n={})[o.VisitSchemaKind.TYPE]=function(e){if((!a.default(e)||t.renameBuiltins)&&(!(e instanceof i.GraphQLScalarType)||t.renameScalars)){var n=t.renamer(e.name);if(n&&n!==e.name){t.reverseMap[n]=e.name;var r=Object.assign(Object.create(e),e);return r.name=n,r}}},n[o.VisitSchemaKind.ROOT_OBJECT]=function(e){},n))},e.prototype.transformRequest=function(e){var n,t=this;return{document:i.visit(e.document,((n={})[i.Kind.NAMED_TYPE]=function(e){var n=e.name.value;if(n in t.reverseMap)return r(r({},e),{name:{kind:i.Kind.NAME,value:t.reverseMap[n]}})},n)),variables:e.variables}},e.prototype.transformResult=function(e){if(e.data){var n=this.renameTypes(e.data,"data");if(n!==e.data)return r(r({},e),{data:n})}return e},e.prototype.renameTypes=function(e,n){var t=this;if("__typename"===n)return this.renamer(e);if(e&&"object"==typeof e){var r=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),i=!1;if(Object.keys(e).forEach((function(n){var a=e[n],o=t.renameTypes(a,n);r[n]=o,o!==a&&(i=!0)})),i)return r}return e},e}();n.default=u},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(129),i=function(){function e(e){this.filter=e}return e.prototype.transformSchema=function(e){var n,t=this;return r.visitSchema(e,((n={})[r.VisitSchemaKind.TYPE]=function(e){return t.filter(e)?void 0:null},n))},e}();n.default=i},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(130),i=t(204),a=function(){function e(e){var n=r.createResolveType((function(e,n){return n}));this.transformer=new i.default((function(t,i,a){return{name:e(t,i,a),field:r.fieldToFieldConfig(a,n,!0)}}))}return e.prototype.transformSchema=function(e){return this.transformer.transformSchema(e)},e}();n.default=a},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(204),i=function(){function e(e){this.transformer=new r.default((function(n,t,r){return e(n,t,r)?void 0:null}))}return e.prototype.transformSchema=function(e){return this.transformer.transformSchema(e)},e}();n.default=i},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0});var i=t(6),a=function(){function e(e){var n=e.from,t=e.to;this.from=n,this.to=t}return e.prototype.transformRequest=function(e){var n,t,a,o=JSON.stringify(this.from),u=JSON.stringify(this.to),c=[];i.visit(e.document,((n={})[i.Kind.FIELD]={enter:function(e){if(c.push(e.name.value),o===JSON.stringify(c))return a=e.selectionSet,i.BREAK},leave:function(e){c.pop()}},n)),c=[];var s=i.visit(e.document,((t={})[i.Kind.FIELD]={enter:function(e){if(c.push(e.name.value),u===JSON.stringify(c)&&a)return r(r({},e),{selectionSet:a})},leave:function(e){c.pop()}},t));return r(r({},e),{document:s})},e}();n.default=a},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)},i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),i=0;for(n=0;n<t;n++)for(var a=arguments[n],o=0,u=a.length;o<u;o++,i++)r[i]=a[o];return r};Object.defineProperty(n,"__esModule",{value:!0});var a=t(6),o=function(){function e(e,n,t){this.path=e,this.wrapper=n,this.extractor=t}return e.prototype.transformRequest=function(e){var n,t=this,i=e.document,o=[],u=JSON.stringify(this.path),c=a.visit(i,((n={})[a.Kind.FIELD]={enter:function(e){if(o.push(e.name.value),u===JSON.stringify(o)){var n=t.wrapper(e.selectionSet),i=n.kind===a.Kind.SELECTION_SET?n:{kind:a.Kind.SELECTION_SET,selections:[n]};return r(r({},e),{selectionSet:i})}},leave:function(e){o.pop()}},n));return r(r({},e),{document:c})},e.prototype.transformResult=function(e){var n=e.data;if(n){for(var t=n,r=i(this.path);r.length>1;){var a=r.shift();t[a]&&(t=t[a])}t[r[0]]=this.extractor(t[r[0]])}return{data:n,errors:e.errors}},e}();n.default=o}]]);(window.webpackJsonp_name_=window.webpackJsonp_name_||[]).push([[0],[,function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return F})),r.d(e,"b",(function(){return p})),r.d(e,"c",(function(){return j})),r.d(e,"d",(function(){return V})),r.d(e,"e",(function(){return H})),r.d(e,"f",(function(){return z})),r.d(e,"g",(function(){return Q})),r.d(e,"h",(function(){return P})),r.d(e,"i",(function(){return g})),r.d(e,"j",(function(){return A})),r.d(e,"k",(function(){return S})),r.d(e,"l",(function(){return E})),r.d(e,"m",(function(){return $})),r.d(e,"n",(function(){return C})),r.d(e,"o",(function(){return R})),r.d(e,"p",(function(){return f})),r.d(e,"q",(function(){return Y})),r.d(e,"r",(function(){return w})),r.d(e,"s",(function(){return _})),r.d(e,"t",(function(){return h})),r.d(e,"u",(function(){return y})),r.d(e,"v",(function(){return v})),r.d(e,"w",(function(){return b})),r.d(e,"x",(function(){return W})),r.d(e,"y",(function(){return J})),r.d(e,"z",(function(){return Z})),r.d(e,"A",(function(){return tt})),r.d(e,"B",(function(){return et})),r.d(e,"C",(function(){return B})),r.d(e,"D",(function(){return N})),r.d(e,"E",(function(){return d})),r.d(e,"F",(function(){return O})),r.d(e,"G",(function(){return c})),r.d(e,"H",(function(){return m})),r.d(e,"I",(function(){return G}));var n=r(28),i=r(3),o=r(0),a=r(86),s=r.n(a);r(29);function u(t,e,r,n){if(function(t){return"IntValue"===t.kind}(r)||function(t){return"FloatValue"===t.kind}(r))t[e.value]=Number(r.value);else if(function(t){return"BooleanValue"===t.kind}(r)||function(t){return"StringValue"===t.kind}(r))t[e.value]=r.value;else if(function(t){return"ObjectValue"===t.kind}(r)){var o={};r.fields.map((function(t){return u(o,t.name,t.value,n)})),t[e.value]=o}else if(function(t){return"Variable"===t.kind}(r)){var a=(n||{})[r.name.value];t[e.value]=a}else if(function(t){return"ListValue"===t.kind}(r))t[e.value]=r.values.map((function(t){var r={};return u(r,e,t,n),r[e.value]}));else if(function(t){return"EnumValue"===t.kind}(r))t[e.value]=r.value;else{if(!function(t){return"NullValue"===t.kind}(r))throw new i.a(17);t[e.value]=null}}function c(t,e){var r=null;t.directives&&(r={},t.directives.forEach((function(t){r[t.name.value]={},t.arguments&&t.arguments.forEach((function(n){var i=n.name,o=n.value;return u(r[t.name.value],i,o,e)}))})));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach((function(t){var r=t.name,i=t.value;return u(n,r,i,e)}))),f(t.name.value,n,r)}var l=["connection","include","skip","client","rest","export"];function f(t,e,r){if(r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=e,o={};return n.forEach((function(t){o[t]=i[t]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=t;if(e){var u=s()(e);a+="("+u+")"}return r&&Object.keys(r).forEach((function(t){-1===l.indexOf(t)&&(r[t]&&Object.keys(r[t]).length?a+="@"+t+"("+JSON.stringify(r[t])+")":a+="@"+t)})),a}function p(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach((function(t){var n=t.name,i=t.value;return u(r,n,i,e)})),r}return null}function d(t){return t.alias?t.alias.value:t.name.value}function h(t){return"Field"===t.kind}function v(t){return"InlineFragment"===t.kind}function y(t){return t&&"id"===t.type&&"boolean"==typeof t.generated}function m(t,e){return void 0===e&&(e=!1),Object(o.a)({type:"id",generated:e},"string"==typeof t?{id:t,typename:void 0}:t)}function b(t){return null!=t&&"object"==typeof t&&"json"===t.type}function g(t,e){if(t.directives&&t.directives.length){var r={};return t.directives.forEach((function(t){r[t.name.value]=p(t,e)})),r}return null}function O(t,e){return void 0===e&&(e={}),(r=t.directives,r?r.filter(k).map((function(t){var e=t.arguments;t.name.value,Object(i.b)(e&&1===e.length,14);var r=e[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:t,ifArgument:r}})):[]).every((function(t){var r=t.directive,n=t.ifArgument,o=!1;return"Variable"===n.value.kind?(o=e[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}));var r}function _(t,e){return function(t){var e=[];return Object(n.visit)(t,{Directive:function(t){e.push(t.name.value)}}),e}(e).some((function(e){return t.indexOf(e)>-1}))}function w(t){return t&&_(["client"],t)&&_(["export"],t)}function k(t){var e=t.name.value;return"skip"===e||"include"===e}function S(t,e){var r=e,n=[];return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw new i.a(11);"FragmentDefinition"===t.kind&&n.push(t)})),void 0===r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},t),{definitions:Object(o.e)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions)})}function j(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(e){null!=e&&Object.keys(e).forEach((function(r){t[r]=e[r]}))})),t}function x(t){Object(i.b)(t&&"Document"===t.kind,2);var e=t.definitions.filter((function(t){return"FragmentDefinition"!==t.kind})).map((function(t){if("OperationDefinition"!==t.kind)throw new i.a(3);return t}));return Object(i.b)(e.length<=1,4),t}function $(t){return x(t),t.definitions.filter((function(t){return"OperationDefinition"===t.kind}))[0]}function C(t){return t.definitions.filter((function(t){return"OperationDefinition"===t.kind&&t.name})).map((function(t){return t.name.value}))[0]||null}function A(t){return t.definitions.filter((function(t){return"FragmentDefinition"===t.kind}))}function R(t){var e=$(t);return Object(i.b)(e&&"query"===e.operation,6),e}function E(t){var e;x(t);for(var r=0,n=t.definitions;r<n.length;r++){var o=n[r];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||e||(e=o)}if(e)return e;throw new i.a(10)}function Q(t){void 0===t&&(t=[]);var e={};return t.forEach((function(t){e[t.name.value]=t})),e}function P(t){if(t&&t.variableDefinitions&&t.variableDefinitions.length){var e=t.variableDefinitions.filter((function(t){return t.defaultValue})).map((function(t){var e=t.variable,r=t.defaultValue,n={};return u(n,e.name,r),n}));return j.apply(void 0,Object(o.e)([{}],e))}return{}}function M(t,e,r){var n=0;return t.forEach((function(r,i){e.call(this,r,i,t)&&(t[n++]=r)}),r),t.length=n,t}var I={kind:"Field",name:{kind:"Name",value:"__typename"}};function q(t){return function t(e,r){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&t(r[e.name.value],r)}))}($(t)||function(t){Object(i.b)("Document"===t.kind,7),Object(i.b)(t.definitions.length<=1,8);var e=t.definitions[0];return Object(i.b)("FragmentDefinition"===e.kind,9),e}(t),Q(A(t)))?null:t}function D(t){return function(e){return t.some((function(t){return t.name&&t.name===e.name.value||t.test&&t.test(e)}))}}function T(t,e){var r=Object.create(null),i=[],a=Object.create(null),s=[],u=q(Object(n.visit)(e,{Variable:{enter:function(t,e,n){"VariableDefinition"!==n.kind&&(r[t.name.value]=!0)}},Field:{enter:function(e){if(t&&e.directives&&(t.some((function(t){return t.remove}))&&e.directives&&e.directives.some(D(t))))return e.arguments&&e.arguments.forEach((function(t){"Variable"===t.value.kind&&i.push({name:t.value.name.value})})),e.selectionSet&&function t(e){var r=[];return e.selections.forEach((function(e){(h(e)||v(e))&&e.selectionSet?t(e.selectionSet).forEach((function(t){return r.push(t)})):"FragmentSpread"===e.kind&&r.push(e)})),r}(e.selectionSet).forEach((function(t){s.push({name:t.name.value})})),null}},FragmentSpread:{enter:function(t){a[t.name.value]=!0}},Directive:{enter:function(e){if(D(t)(e))return null}}}));return u&&M(i,(function(t){return!r[t.name]})).length&&(u=function(t,e){var r=function(t){return function(e){return t.some((function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))}))}}(t);return q(Object(n.visit)(e,{OperationDefinition:{enter:function(e){return Object(o.a)(Object(o.a)({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return!t.some((function(t){return t.name===e.variable.name.value}))}))})}},Field:{enter:function(e){if(t.some((function(t){return t.remove}))){var n=0;if(e.arguments.forEach((function(t){r(t)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(t){if(r(t))return null}}}))}(i,u)),u&&M(s,(function(t){return!a[t.name]})).length&&(u=function(t,e){function r(e){if(t.some((function(t){return t.name===e.name.value})))return null}return q(Object(n.visit)(e,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(s,u)),u}function F(t){return Object(n.visit)(x(t),{SelectionSet:{enter:function(t,e,r){if(!r||"OperationDefinition"!==r.kind){var n=t.selections;if(n)if(!n.some((function(t){return h(t)&&("__typename"===t.name.value||0===t.name.value.lastIndexOf("__",0))}))){var i=r;if(!(h(i)&&i.directives&&i.directives.some((function(t){return"export"===t.name.value}))))return Object(o.a)(Object(o.a)({},t),{selections:Object(o.e)(n,[I])})}}}}})}var L={test:function(t){var e="connection"===t.name.value;return e&&(!t.arguments||t.arguments.some((function(t){return"key"===t.name.value}))),e}};function N(t){return T([L],x(t))}function V(t){return"query"===E(t).operation?t:Object(n.visit)(t,{OperationDefinition:{enter:function(t){return Object(o.a)(Object(o.a)({},t),{operation:"query"})}}})}function B(t){x(t);var e=T([{test:function(t){return"client"===t.name.value},remove:!0}],t);return e&&(e=Object(n.visit)(e,{FragmentDefinition:{enter:function(t){if(t.selectionSet&&t.selectionSet.selections.every((function(t){return h(t)&&"__typename"===t.name.value})))return null}}})),e}var H="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),U=Object.prototype.toString;function z(t){return function t(e,r){switch(U.call(e)){case"[object Array]":if(r.has(e))return r.get(e);var n=e.slice(0);return r.set(e,n),n.forEach((function(e,i){n[i]=t(e,r)})),n;case"[object Object]":if(r.has(e))return r.get(e);var i=Object.create(Object.getPrototypeOf(e));return r.set(e,i),Object.keys(e).forEach((function(n){i[n]=t(e[n],r)})),i;default:return e}}(t,new Map)}function K(e){return(void 0!==t?"production":"development")===e}function W(){return!0===K("production")}function J(){return!0===K("test")}function G(t){try{return t()}catch(t){console.error&&console.error(t)}}function Y(t){return t.errors&&t.errors.length}function Z(t){if((!0===K("development")||J())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return function t(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(r){null===e[r]||"object"!=typeof e[r]&&"function"!=typeof e[r]||Object.isFrozen(e[r])||t(e[r])})),e}(t);return t}var X=Object.prototype.hasOwnProperty;function tt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return et(t)}function et(t){var e=t[0]||{},r=t.length;if(r>1){var n=[];e=it(e,n);for(var i=1;i<r;++i)e=nt(e,t[i],n)}return e}function rt(t){return null!==t&&"object"==typeof t}function nt(t,e,r){return rt(e)&&rt(t)?(Object.isExtensible&&!Object.isExtensible(t)&&(t=it(t,r)),Object.keys(e).forEach((function(n){var i=e[n];if(X.call(t,n)){var o=t[n];i!==o&&(t[n]=nt(it(o,r),i,r))}else t[n]=i})),t):e}function it(t,e){return null!==t&&"object"==typeof t&&e.indexOf(t)<0&&(t=Array.isArray(t)?t.slice(0):Object(o.a)({__proto__:Object.getPrototypeOf(t)},t),e.push(t)),t}Object.create({})}).call(this,r(22))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),function(t,r){var n=Object.freeze({});function i(t){return null==t}function o(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function l(t){return"[object Object]"===c.call(t)}function f(t){return"[object RegExp]"===c.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i<n.length;i++)r[n[i]]=!0;return e?function(t){return r[t.toLowerCase()]}:function(t){return r[t]}}var m=y("slot,component",!0),b=y("key,ref,slot,slot-scope,is");function g(t,e){if(t.length){var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var O=Object.prototype.hasOwnProperty;function _(t,e){return O.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var k=/-(\w)/g,S=w((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),j=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),x=/\B([A-Z])/g,$=w((function(t){return t.replace(x,"-$1").toLowerCase()}));var C=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function A(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function R(t,e){for(var r in e)t[r]=e[r];return t}function E(t){for(var e={},r=0;r<t.length;r++)t[r]&&R(e,t[r]);return e}function Q(t,e,r){}var P=function(t,e,r){return!1},M=function(t){return t};function I(t,e){if(t===e)return!0;var r=u(t),n=u(e);if(!r||!n)return!r&&!n&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,r){return I(t,e[r])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(r){return I(t[r],e[r])}))}catch(t){return!1}}function q(t,e){for(var r=0;r<t.length;r++)if(I(t[r],e))return r;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var T=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],L={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:Q,parsePlatformTagName:M,mustUseProp:P,async:!0,_lifecycleHooks:F},N=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function B(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!!n,writable:!0,configurable:!0})}var H=new RegExp("[^"+N.source+".$_\\d]");var U,z="__proto__"in{},K="undefined"!=typeof window,W="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,J=W&&WXEnvironment.platform.toLowerCase(),G=K&&window.navigator.userAgent.toLowerCase(),Y=G&&/msie|trident/.test(G),Z=G&&G.indexOf("msie 9.0")>0,X=G&&G.indexOf("edge/")>0,tt=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===J),et=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),rt={}.watch,nt=!1;if(K)try{var it={};Object.defineProperty(it,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,it)}catch(t){}var ot=function(){return void 0===U&&(U=!K&&!W&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),U},at=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var ut,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);ut="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=Q,ft=0,pt=function(){this.id=ft++,this.subs=[]};pt.prototype.addSub=function(t){this.subs.push(t)},pt.prototype.removeSub=function(t){g(this.subs,t)},pt.prototype.depend=function(){pt.target&&pt.target.addDep(this)},pt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,r=t.length;e<r;e++)t[e].update()},pt.target=null;var dt=[];function ht(t){dt.push(t),pt.target=t}function vt(){dt.pop(),pt.target=dt[dt.length-1]}var yt=function(t,e,r,n,i,o,a,s){this.tag=t,this.data=e,this.children=r,this.text=n,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},mt={child:{configurable:!0}};mt.child.get=function(){return this.componentInstance},Object.defineProperties(yt.prototype,mt);var bt=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function gt(t){return new yt(void 0,void 0,void 0,String(t))}function Ot(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var _t=Array.prototype,wt=Object.create(_t);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=_t[t];B(wt,t,(function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];var i,o=e.apply(this,r),a=this.__ob__;switch(t){case"push":case"unshift":i=r;break;case"splice":i=r.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var kt=Object.getOwnPropertyNames(wt),St=!0;function jt(t){St=t}var xt=function(t){this.value=t,this.dep=new pt,this.vmCount=0,B(t,"__ob__",this),Array.isArray(t)?(z?function(t,e){t.__proto__=e}(t,wt):function(t,e,r){for(var n=0,i=r.length;n<i;n++){var o=r[n];B(t,o,e[o])}}(t,wt,kt),this.observeArray(t)):this.walk(t)};function $t(t,e){var r;if(u(t)&&!(t instanceof yt))return _(t,"__ob__")&&t.__ob__ instanceof xt?r=t.__ob__:St&&!ot()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(r=new xt(t)),e&&r&&r.vmCount++,r}function Ct(t,e,r,n,i){var o=new pt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(r=t[e]);var c=!i&&$t(r);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):r;return pt.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Et(e))),e},set:function(e){var n=s?s.call(t):r;e===n||e!=e&&n!=n||s&&!u||(u?u.call(t,e):r=e,c=!i&&$t(e),o.notify())}})}}function At(t,e,r){if(Array.isArray(t)&&p(e))return t.length=Math.max(t.length,e),t.splice(e,1,r),r;if(e in t&&!(e in Object.prototype))return t[e]=r,r;var n=t.__ob__;return t._isVue||n&&n.vmCount?r:n?(Ct(n.value,e,r),n.dep.notify(),r):(t[e]=r,r)}function Rt(t,e){if(Array.isArray(t)&&p(e))t.splice(e,1);else{var r=t.__ob__;t._isVue||r&&r.vmCount||_(t,e)&&(delete t[e],r&&r.dep.notify())}}function Et(t){for(var e=void 0,r=0,n=t.length;r<n;r++)(e=t[r])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Et(e)}xt.prototype.walk=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Ct(t,e[r])},xt.prototype.observeArray=function(t){for(var e=0,r=t.length;e<r;e++)$t(t[e])};var Qt=L.optionMergeStrategies;function Pt(t,e){if(!e)return t;for(var r,n,i,o=ct?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(r=o[a])&&(n=t[r],i=e[r],_(t,r)?n!==i&&l(n)&&l(i)&&Pt(n,i):At(t,r,i));return t}function Mt(t,e,r){return r?function(){var n="function"==typeof e?e.call(r,r):e,i="function"==typeof t?t.call(r,r):t;return n?Pt(n,i):i}:e?t?function(){return Pt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function It(t,e){var r=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return r?function(t){for(var e=[],r=0;r<t.length;r++)-1===e.indexOf(t[r])&&e.push(t[r]);return e}(r):r}function qt(t,e,r,n){var i=Object.create(t||null);return e?R(i,e):i}Qt.data=function(t,e,r){return r?Mt(t,e,r):e&&"function"!=typeof e?t:Mt(t,e)},F.forEach((function(t){Qt[t]=It})),T.forEach((function(t){Qt[t+"s"]=qt})),Qt.watch=function(t,e,r,n){if(t===rt&&(t=void 0),e===rt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in R(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Qt.props=Qt.methods=Qt.inject=Qt.computed=function(t,e,r,n){if(!t)return e;var i=Object.create(null);return R(i,t),e&&R(i,e),i},Qt.provide=Mt;var Dt=function(t,e){return void 0===e?t:e};function Tt(t,e,r){if("function"==typeof e&&(e=e.options),function(t,e){var r=t.props;if(r){var n,i,o={};if(Array.isArray(r))for(n=r.length;n--;)"string"==typeof(i=r[n])&&(o[S(i)]={type:null});else if(l(r))for(var a in r)i=r[a],o[S(a)]=l(i)?i:{type:i};else 0;t.props=o}}(e),function(t,e){var r=t.inject;if(r){var n=t.inject={};if(Array.isArray(r))for(var i=0;i<r.length;i++)n[r[i]]={from:r[i]};else if(l(r))for(var o in r){var a=r[o];n[o]=l(a)?R({from:o},a):{from:a}}else 0}}(e),function(t){var e=t.directives;if(e)for(var r in e){var n=e[r];"function"==typeof n&&(e[r]={bind:n,update:n})}}(e),!e._base&&(e.extends&&(t=Tt(t,e.extends,r)),e.mixins))for(var n=0,i=e.mixins.length;n<i;n++)t=Tt(t,e.mixins[n],r);var o,a={};for(o in t)s(o);for(o in e)_(t,o)||s(o);function s(n){var i=Qt[n]||Dt;a[n]=i(t[n],e[n],r,n)}return a}function Ft(t,e,r,n){if("string"==typeof r){var i=t[e];if(_(i,r))return i[r];var o=S(r);if(_(i,o))return i[o];var a=j(o);return _(i,a)?i[a]:i[r]||i[o]||i[a]}}function Lt(t,e,r,n){var i=e[t],o=!_(r,t),a=r[t],s=Ht(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===$(t)){var u=Ht(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=function(t,e,r){if(!_(e,"default"))return;var n=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[r]&&void 0!==t._props[r])return t._props[r];return"function"==typeof n&&"Function"!==Vt(e.type)?n.call(t):n}(n,i,t);var c=St;jt(!0),$t(a),jt(c)}return a}var Nt=/^\s*function (\w+)/;function Vt(t){var e=t&&t.toString().match(Nt);return e?e[1]:""}function Bt(t,e){return Vt(t)===Vt(e)}function Ht(t,e){if(!Array.isArray(e))return Bt(e,t)?0:-1;for(var r=0,n=e.length;r<n;r++)if(Bt(e[r],t))return r;return-1}function Ut(t,e,r){ht();try{if(e)for(var n=e;n=n.$parent;){var i=n.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(n,t,e,r))return}catch(t){Kt(t,n,"errorCaptured hook")}}Kt(t,e,r)}finally{vt()}}function zt(t,e,r,n,i){var o;try{(o=r?t.apply(e,r):t.call(e))&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return Ut(t,n,i+" (Promise/async)")})),o._handled=!0)}catch(t){Ut(t,n,i)}return o}function Kt(t,e,r){if(L.errorHandler)try{return L.errorHandler.call(null,t,e,r)}catch(e){e!==t&&Wt(e,null,"config.errorHandler")}Wt(t,e,r)}function Wt(t,e,r){if(!K&&!W||"undefined"==typeof console)throw t;console.error(t)}var Jt,Gt=!1,Yt=[],Zt=!1;function Xt(){Zt=!1;var t=Yt.slice(0);Yt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&st(Promise)){var te=Promise.resolve();Jt=function(){te.then(Xt),tt&&setTimeout(Q)},Gt=!0}else if(Y||"undefined"==typeof MutationObserver||!st(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Jt=void 0!==r&&st(r)?function(){r(Xt)}:function(){setTimeout(Xt,0)};else{var ee=1,re=new MutationObserver(Xt),ne=document.createTextNode(String(ee));re.observe(ne,{characterData:!0}),Jt=function(){ee=(ee+1)%2,ne.data=String(ee)},Gt=!0}function ie(t,e){var r;if(Yt.push((function(){if(t)try{t.call(e)}catch(t){Ut(t,e,"nextTick")}else r&&r(e)})),Zt||(Zt=!0,Jt()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){r=t}))}var oe=new ut;function ae(t){!function t(e,r){var n,i,o=Array.isArray(e);if(!o&&!u(e)||Object.isFrozen(e)||e instanceof yt)return;if(e.__ob__){var a=e.__ob__.dep.id;if(r.has(a))return;r.add(a)}if(o)for(n=e.length;n--;)t(e[n],r);else for(i=Object.keys(e),n=i.length;n--;)t(e[i[n]],r)}(t,oe),oe.clear()}var se=w((function(t){var e="&"===t.charAt(0),r="~"===(t=e?t.slice(1):t).charAt(0),n="!"===(t=r?t.slice(1):t).charAt(0);return{name:t=n?t.slice(1):t,once:r,capture:n,passive:e}}));function ue(t,e){function r(){var t=arguments,n=r.fns;if(!Array.isArray(n))return zt(n,null,arguments,e,"v-on handler");for(var i=n.slice(),o=0;o<i.length;o++)zt(i[o],null,t,e,"v-on handler")}return r.fns=t,r}function ce(t,e,r,n,o,s){var u,c,l,f;for(u in t)c=t[u],l=e[u],f=se(u),i(c)||(i(l)?(i(c.fns)&&(c=t[u]=ue(c,s)),a(f.once)&&(c=t[u]=o(f.name,c,f.capture)),r(f.name,c,f.capture,f.passive,f.params)):c!==l&&(l.fns=c,t[u]=l));for(u in e)i(t[u])&&n((f=se(u)).name,e[u],f.capture)}function le(t,e,r){var n;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function u(){r.apply(this,arguments),g(n.fns,u)}i(s)?n=ue([u]):o(s.fns)&&a(s.merged)?(n=s).fns.push(u):n=ue([s,u]),n.merged=!0,t[e]=n}function fe(t,e,r,n,i){if(o(e)){if(_(e,r))return t[r]=e[r],i||delete e[r],!0;if(_(e,n))return t[r]=e[n],i||delete e[n],!0}return!1}function pe(t){return s(t)?[gt(t)]:Array.isArray(t)?function t(e,r){var n,u,c,l,f=[];for(n=0;n<e.length;n++)i(u=e[n])||"boolean"==typeof u||(c=f.length-1,l=f[c],Array.isArray(u)?u.length>0&&(de((u=t(u,(r||"")+"_"+n))[0])&&de(l)&&(f[c]=gt(l.text+u[0].text),u.shift()),f.push.apply(f,u)):s(u)?de(l)?f[c]=gt(l.text+u):""!==u&&f.push(gt(u)):de(u)&&de(l)?f[c]=gt(l.text+u.text):(a(e._isVList)&&o(u.tag)&&i(u.key)&&o(r)&&(u.key="__vlist"+r+"_"+n+"__"),f.push(u)));return f}(t):void 0}function de(t){return o(t)&&o(t.text)&&!1===t.isComment}function he(t,e){if(t){for(var r=Object.create(null),n=ct?Reflect.ownKeys(t):Object.keys(t),i=0;i<n.length;i++){var o=n[i];if("__ob__"!==o){for(var a=t[o].from,s=e;s;){if(s._provided&&_(s._provided,a)){r[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var u=t[o].default;r[o]="function"==typeof u?u.call(e):u}else 0}}return r}}function ve(t,e){if(!t||!t.length)return{};for(var r={},n=0,i=t.length;n<i;n++){var o=t[n],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(r.default||(r.default=[])).push(o);else{var s=a.slot,u=r[s]||(r[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var c in r)r[c].every(ye)&&delete r[c];return r}function ye(t){return t.isComment&&!t.asyncFactory||" "===t.text}function me(t){return t.isComment&&t.asyncFactory}function be(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=ge(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=Oe(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),B(i,"$stable",a),B(i,"$key",s),B(i,"$hasNormal",o),i}function ge(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:pe(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!me(e))?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function Oe(t,e){return function(){return t[e]}}function _e(t,e){var r,n,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,i=t.length;n<i;n++)r[n]=e(t[n],n);else if("number"==typeof t)for(r=new Array(t),n=0;n<t;n++)r[n]=e(n+1,n);else if(u(t))if(ct&&t[Symbol.iterator]){r=[];for(var c=t[Symbol.iterator](),l=c.next();!l.done;)r.push(e(l.value,r.length)),l=c.next()}else for(a=Object.keys(t),r=new Array(a.length),n=0,i=a.length;n<i;n++)s=a[n],r[n]=e(t[s],s,n);return o(r)||(r=[]),r._isVList=!0,r}function we(t,e,r,n){var i,o=this.$scopedSlots[t];o?(r=r||{},n&&(r=R(R({},n),r)),i=o(r)||("function"==typeof e?e():e)):i=this.$slots[t]||("function"==typeof e?e():e);var a=r&&r.slot;return a?this.$createElement("template",{slot:a},i):i}function ke(t){return Ft(this.$options,"filters",t)||M}function Se(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function je(t,e,r,n,i){var o=L.keyCodes[e]||r;return i&&n&&!L.keyCodes[e]?Se(i,n):o?Se(o,t):n?$(n)!==e:void 0===t}function xe(t,e,r,n,i){if(r)if(u(r)){var o;Array.isArray(r)&&(r=E(r));var a=function(a){if("class"===a||"style"===a||b(a))o=t;else{var s=t.attrs&&t.attrs.type;o=n||L.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=S(a),c=$(a);u in o||c in o||(o[a]=r[a],i&&((t.on||(t.on={}))["update:"+a]=function(t){r[a]=t}))};for(var s in r)a(s)}return t}function $e(t,e){var r=this._staticTrees||(this._staticTrees=[]),n=r[t];return n&&!e||Ae(n=r[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),n}function Ce(t,e,r){return Ae(t,"__once__"+e+(r?"_"+r:""),!0),t}function Ae(t,e,r){if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]&&"string"!=typeof t[n]&&Re(t[n],e+"_"+n,r);else Re(t,e,r)}function Re(t,e,r){t.isStatic=!0,t.key=e,t.isOnce=r}function Ee(t,e){if(e)if(l(e)){var r=t.on=t.on?R({},t.on):{};for(var n in e){var i=r[n],o=e[n];r[n]=i?[].concat(i,o):o}}return t}function Qe(t,e,r,n){e=e||{$stable:!r};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Qe(o,e,r):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return n&&(e.$key=n),e}function Pe(t,e){for(var r=0;r<e.length;r+=2){var n=e[r];"string"==typeof n&&n&&(t[e[r]]=e[r+1])}return t}function Me(t,e){return"string"==typeof t?e+t:t}function Ie(t){t._o=Ce,t._n=v,t._s=h,t._l=_e,t._t=we,t._q=I,t._i=q,t._m=$e,t._f=ke,t._k=je,t._b=xe,t._v=gt,t._e=bt,t._u=Qe,t._g=Ee,t._d=Pe,t._p=Me}function qe(t,e,r,i,o){var s,u=this,c=o.options;_(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var l=a(c._compiled),f=!l;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=he(c.inject,i),this.slots=function(){return u.$slots||be(t.scopedSlots,u.$slots=ve(r,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return be(t.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=be(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,r,n){var o=Be(s,t,e,r,n,f);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(t,e,r,n){return Be(s,t,e,r,n,f)}}function De(t,e,r,n,i){var o=Ot(t);return o.fnContext=r,o.fnOptions=n,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Te(t,e){for(var r in e)t[S(r)]=e[r]}Ie(qe.prototype);var Fe={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var r=t;Fe.prepatch(r,r)}else{(t.componentInstance=function(t,e){var r={_isComponent:!0,_parentVnode:t,parent:e},n=t.data.inlineTemplate;o(n)&&(r.render=n.render,r.staticRenderFns=n.staticRenderFns);return new t.componentOptions.Ctor(r)}(t,Ze)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var r=e.componentOptions;!function(t,e,r,i,o){0;var a=i.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key||!a&&t.$scopedSlots.$key),c=!!(o||t.$options._renderChildren||u);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){jt(!1);for(var l=t._props,f=t.$options._propKeys||[],p=0;p<f.length;p++){var d=f[p],h=t.$options.props;l[d]=Lt(d,h,e,t)}jt(!0),t.$options.propsData=e}r=r||n;var v=t.$options._parentListeners;t.$options._parentListeners=r,Ye(t,r,v),c&&(t.$slots=ve(o,i.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,r.propsData,r.listeners,e,r.children)},insert:function(t){var e,r=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,rr(n,"mounted")),t.data.keepAlive&&(r._isMounted?((e=n)._inactive=!1,ir.push(e)):er(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,r){if(r&&(e._directInactive=!0,tr(e)))return;if(!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)t(e.$children[n]);rr(e,"deactivated")}}(e,!0):e.$destroy())}},Le=Object.keys(Fe);function Ne(t,e,r,s,c){if(!i(t)){var l=r.$options._base;if(u(t)&&(t=l.extend(t)),"function"==typeof t){var f;if(i(t.cid)&&void 0===(t=function(t,e){if(a(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var r=Ue;r&&o(t.owners)&&-1===t.owners.indexOf(r)&&t.owners.push(r);if(a(t.loading)&&o(t.loadingComp))return t.loadingComp;if(r&&!o(t.owners)){var n=t.owners=[r],s=!0,c=null,l=null;r.$on("hook:destroyed",(function(){return g(n,r)}));var f=function(t){for(var e=0,r=n.length;e<r;e++)n[e].$forceUpdate();t&&(n.length=0,null!==c&&(clearTimeout(c),c=null),null!==l&&(clearTimeout(l),l=null))},p=D((function(r){t.resolved=ze(r,e),s?n.length=0:f(!0)})),h=D((function(e){o(t.errorComp)&&(t.error=!0,f(!0))})),v=t(p,h);return u(v)&&(d(v)?i(t.resolved)&&v.then(p,h):d(v.component)&&(v.component.then(p,h),o(v.error)&&(t.errorComp=ze(v.error,e)),o(v.loading)&&(t.loadingComp=ze(v.loading,e),0===v.delay?t.loading=!0:c=setTimeout((function(){c=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,f(!1))}),v.delay||200)),o(v.timeout)&&(l=setTimeout((function(){l=null,i(t.resolved)&&h(null)}),v.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}(f=t,l)))return function(t,e,r,n,i){var o=bt();return o.asyncFactory=t,o.asyncMeta={data:e,context:r,children:n,tag:i},o}(f,e,r,s,c);e=e||{},Sr(t),o(e.model)&&function(t,e){var r=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[r]=e.model.value;var i=e.on||(e.on={}),a=i[n],s=e.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[n]=[s].concat(a)):i[n]=s}(t.options,e);var p=function(t,e,r){var n=e.options.props;if(!i(n)){var a={},s=t.attrs,u=t.props;if(o(s)||o(u))for(var c in n){var l=$(c);fe(a,u,c,l,!0)||fe(a,s,c,l,!1)}return a}}(e,t);if(a(t.options.functional))return function(t,e,r,i,a){var s=t.options,u={},c=s.props;if(o(c))for(var l in c)u[l]=Lt(l,c,e||n);else o(r.attrs)&&Te(u,r.attrs),o(r.props)&&Te(u,r.props);var f=new qe(r,u,a,i,t),p=s.render.call(null,f._c,f);if(p instanceof yt)return De(p,r,f.parent,s,f);if(Array.isArray(p)){for(var d=pe(p)||[],h=new Array(d.length),v=0;v<d.length;v++)h[v]=De(d[v],r,f.parent,s,f);return h}}(t,p,e,r,s);var h=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}!function(t){for(var e=t.hook||(t.hook={}),r=0;r<Le.length;r++){var n=Le[r],i=e[n],o=Fe[n];i===o||i&&i._merged||(e[n]=i?Ve(o,i):o)}}(e);var y=t.options.name||c;return new yt("vue-component-"+t.cid+(y?"-"+y:""),e,void 0,void 0,void 0,r,{Ctor:t,propsData:p,listeners:h,tag:c,children:s},f)}}}function Ve(t,e){var r=function(r,n){t(r,n),e(r,n)};return r._merged=!0,r}function Be(t,e,r,n,c,l){return(Array.isArray(r)||s(r))&&(c=n,n=r,r=void 0),a(l)&&(c=2),function(t,e,r,n,s){if(o(r)&&o(r.__ob__))return bt();o(r)&&o(r.is)&&(e=r.is);if(!e)return bt();0;Array.isArray(n)&&"function"==typeof n[0]&&((r=r||{}).scopedSlots={default:n[0]},n.length=0);2===s?n=pe(n):1===s&&(n=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(n));var c,l;if("string"==typeof e){var f;l=t.$vnode&&t.$vnode.ns||L.getTagNamespace(e),c=L.isReservedTag(e)?new yt(L.parsePlatformTagName(e),r,n,void 0,void 0,t):r&&r.pre||!o(f=Ft(t.$options,"components",e))?new yt(e,r,n,void 0,void 0,t):Ne(f,r,t,n,e)}else c=Ne(e,r,t,n);return Array.isArray(c)?c:o(c)?(o(l)&&function t(e,r,n){e.ns=r,"foreignObject"===e.tag&&(r=void 0,n=!0);if(o(e.children))for(var s=0,u=e.children.length;s<u;s++){var c=e.children[s];o(c.tag)&&(i(c.ns)||a(n)&&"svg"!==c.tag)&&t(c,r,n)}}(c,l),o(r)&&function(t){u(t.style)&&ae(t.style);u(t.class)&&ae(t.class)}(r),c):bt()}(t,e,r,n,c)}var He,Ue=null;function ze(t,e){return(t.__esModule||ct&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function Ke(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var r=t[e];if(o(r)&&(o(r.componentOptions)||me(r)))return r}}function We(t,e){He.$on(t,e)}function Je(t,e){He.$off(t,e)}function Ge(t,e){var r=He;return function n(){var i=e.apply(null,arguments);null!==i&&r.$off(t,n)}}function Ye(t,e,r){He=t,ce(e,r||{},We,Je,Ge,t),He=void 0}var Ze=null;function Xe(t){var e=Ze;return Ze=t,function(){Ze=e}}function tr(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function er(t,e){if(e){if(t._directInactive=!1,tr(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var r=0;r<t.$children.length;r++)er(t.$children[r]);rr(t,"activated")}}function rr(t,e){ht();var r=t.$options[e],n=e+" hook";if(r)for(var i=0,o=r.length;i<o;i++)zt(r[i],t,null,t,n);t._hasHookEvent&&t.$emit("hook:"+e),vt()}var nr=[],ir=[],or={},ar=!1,sr=!1,ur=0;var cr=0,lr=Date.now;if(K&&!Y){var fr=window.performance;fr&&"function"==typeof fr.now&&lr()>document.createEvent("Event").timeStamp&&(lr=function(){return fr.now()})}function pr(){var t,e;for(cr=lr(),sr=!0,nr.sort((function(t,e){return t.id-e.id})),ur=0;ur<nr.length;ur++)(t=nr[ur]).before&&t.before(),e=t.id,or[e]=null,t.run();var r=ir.slice(),n=nr.slice();ur=nr.length=ir.length=0,or={},ar=sr=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,er(t[e],!0)}(r),function(t){var e=t.length;for(;e--;){var r=t[e],n=r.vm;n._watcher===r&&n._isMounted&&!n._isDestroyed&&rr(n,"updated")}}(n),at&&L.devtools&&at.emit("flush")}var dr=0,hr=function(t,e,r,n,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++dr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ut,this.newDepIds=new ut,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!H.test(t)){var e=t.split(".");return function(t){for(var r=0;r<e.length;r++){if(!t)return;t=t[e[r]]}return t}}}(e),this.getter||(this.getter=Q)),this.value=this.lazy?void 0:this.get()};hr.prototype.get=function(){var t;ht(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Ut(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ae(t),vt(),this.cleanupDeps()}return t},hr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},hr.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},hr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==or[e]){if(or[e]=!0,sr){for(var r=nr.length-1;r>ur&&nr[r].id>t.id;)r--;nr.splice(r+1,0,t)}else nr.push(t);ar||(ar=!0,ie(pr))}}(this)},hr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user){var r='callback for watcher "'+this.expression+'"';zt(this.cb,this.vm,[t,e],this.vm,r)}else this.cb.call(this.vm,t,e)}}},hr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},hr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var vr={enumerable:!0,configurable:!0,get:Q,set:Q};function yr(t,e,r){vr.get=function(){return this[e][r]},vr.set=function(t){this[e][r]=t},Object.defineProperty(t,r,vr)}function mr(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},i=t.$options._propKeys=[];t.$parent&&jt(!1);var o=function(o){i.push(o);var a=Lt(o,e,r,t);Ct(n,o,a),o in t||yr(t,"_props",o)};for(var a in e)o(a);jt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var r in e)t[r]="function"!=typeof e[r]?Q:C(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){ht();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{vt()}}(e,t):e||{})||(e={});var r=Object.keys(e),n=t.$options.props,i=(t.$options.methods,r.length);for(;i--;){var o=r[i];0,n&&_(n,o)||V(o)||yr(t,"_data",o)}$t(e,!0)}(t):$t(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=ot();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,n||(r[i]=new hr(t,a||Q,Q,br)),i in t||gr(t,i,o)}}(t,e.computed),e.watch&&e.watch!==rt&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)wr(t,r,n[i]);else wr(t,r,n)}}(t,e.watch)}var br={lazy:!0};function gr(t,e,r){var n=!ot();"function"==typeof r?(vr.get=n?Or(e):_r(r),vr.set=Q):(vr.get=r.get?n&&!1!==r.cache?Or(e):_r(r.get):Q,vr.set=r.set||Q),Object.defineProperty(t,e,vr)}function Or(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),pt.target&&e.depend(),e.value}}function _r(t){return function(){return t.call(this,this)}}function wr(t,e,r,n){return l(r)&&(n=r,r=r.handler),"string"==typeof r&&(r=t[r]),t.$watch(e,r,n)}var kr=0;function Sr(t){var e=t.options;if(t.super){var r=Sr(t.super);if(r!==t.superOptions){t.superOptions=r;var n=function(t){var e,r=t.options,n=t.sealedOptions;for(var i in r)r[i]!==n[i]&&(e||(e={}),e[i]=r[i]);return e}(t);n&&R(t.extendOptions,n),(e=t.options=Tt(r,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function jr(t){this._init(t)}function xr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,n=r.cid,i=t._Ctor||(t._Ctor={});if(i[n])return i[n];var o=t.name||r.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(r.prototype)).constructor=a,a.cid=e++,a.options=Tt(r.options,t),a.super=r,a.options.props&&function(t){var e=t.options.props;for(var r in e)yr(t.prototype,"_props",r)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var r in e)gr(t.prototype,r,e[r])}(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,T.forEach((function(t){a[t]=r[t]})),o&&(a.options.components[o]=a),a.superOptions=r.options,a.extendOptions=t,a.sealedOptions=R({},a.options),i[n]=a,a}}function $r(t){return t&&(t.Ctor.options.name||t.tag)}function Cr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Ar(t,e){var r=t.cache,n=t.keys,i=t._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!e(s)&&Rr(r,o,n,i)}}}function Rr(t,e,r,n){var i=t[e];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),t[e]=null,g(r,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=kr++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Tt(Sr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ye(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=ve(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,r,n,i){return Be(t,e,r,n,i,!1)},t.$createElement=function(e,r,n,i){return Be(t,e,r,n,i,!0)};var o=r&&r.data;Ct(t,"$attrs",o&&o.attrs||n,null,!0),Ct(t,"$listeners",e._parentListeners||n,null,!0)}(e),rr(e,"beforeCreate"),function(t){var e=he(t.$options.inject,t);e&&(jt(!1),Object.keys(e).forEach((function(r){Ct(t,r,e[r])})),jt(!0))}(e),mr(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),rr(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(jr),function(t){var e={get:function(){return this._data}},r={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",r),t.prototype.$set=At,t.prototype.$delete=Rt,t.prototype.$watch=function(t,e,r){if(l(e))return wr(this,t,e,r);(r=r||{}).user=!0;var n=new hr(this,t,e,r);if(r.immediate){var i='callback for immediate watcher "'+n.expression+'"';ht(),zt(e,this,[n.value],this,i),vt()}return function(){n.teardown()}}}(jr),function(t){var e=/^hook:/;t.prototype.$on=function(t,r){var n=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)n.$on(t[i],r);else(n._events[t]||(n._events[t]=[])).push(r),e.test(t)&&(n._hasHookEvent=!0);return n},t.prototype.$once=function(t,e){var r=this;function n(){r.$off(t,n),e.apply(r,arguments)}return n.fn=e,r.$on(t,n),r},t.prototype.$off=function(t,e){var r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(t)){for(var n=0,i=t.length;n<i;n++)r.$off(t[n],e);return r}var o,a=r._events[t];if(!a)return r;if(!e)return r._events[t]=null,r;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return r},t.prototype.$emit=function(t){var e=this,r=e._events[t];if(r){r=r.length>1?A(r):r;for(var n=A(arguments,1),i='event handler for "'+t+'"',o=0,a=r.length;o<a;o++)zt(r[o],e,n,e,i)}return e}}(jr),function(t){t.prototype._update=function(t,e){var r=this,n=r.$el,i=r._vnode,o=Xe(r);r._vnode=t,r.$el=i?r.__patch__(i,t):r.__patch__(r.$el,t,e,!1),o(),n&&(n.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){rr(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||g(e.$children,t),t._watcher&&t._watcher.teardown();for(var r=t._watchers.length;r--;)t._watchers[r].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),rr(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(jr),function(t){Ie(t.prototype),t.prototype.$nextTick=function(t){return ie(t,this)},t.prototype._render=function(){var t,e=this,r=e.$options,n=r.render,i=r._parentVnode;i&&(e.$scopedSlots=be(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{Ue=e,t=n.call(e._renderProxy,e.$createElement)}catch(r){Ut(r,e,"render"),t=e._vnode}finally{Ue=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof yt||(t=bt()),t.parent=i,t}}(jr);var Er=[String,RegExp,Array],Qr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Er,exclude:Er,max:[String,Number]},methods:{cacheVNode:function(){var t=this.cache,e=this.keys,r=this.vnodeToCache,n=this.keyToCache;if(r){var i=r.tag,o=r.componentInstance,a=r.componentOptions;t[n]={name:$r(a),tag:i,componentInstance:o},e.push(n),this.max&&e.length>parseInt(this.max)&&Rr(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Rr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Ar(t,(function(t){return Cr(e,t)}))})),this.$watch("exclude",(function(e){Ar(t,(function(t){return!Cr(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ke(t),r=e&&e.componentOptions;if(r){var n=$r(r),i=this.include,o=this.exclude;if(i&&(!n||!Cr(i,n))||o&&n&&Cr(o,n))return e;var a=this.cache,s=this.keys,u=null==e.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):e.key;a[u]?(e.componentInstance=a[u].componentInstance,g(s,u),s.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return L}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:R,mergeOptions:Tt,defineReactive:Ct},t.set=At,t.delete=Rt,t.nextTick=ie,t.observable=function(t){return $t(t),t},t.options=Object.create(null),T.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,R(t.options.components,Qr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=A(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Tt(this.options,t),this}}(t),xr(t),function(t){T.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&l(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(jr),Object.defineProperty(jr.prototype,"$isServer",{get:ot}),Object.defineProperty(jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(jr,"FunctionalRenderContext",{value:qe}),jr.version="2.6.14";var Pr=y("style,class"),Mr=y("input,textarea,option,select,progress"),Ir=function(t,e,r){return"value"===r&&Mr(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},qr=y("contenteditable,draggable,spellcheck"),Dr=y("events,caret,typing,plaintext-only"),Tr=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Fr="http://www.w3.org/1999/xlink",Lr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Nr=function(t){return Lr(t)?t.slice(6,t.length):""},Vr=function(t){return null==t||!1===t};function Br(t){for(var e=t.data,r=t,n=t;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Hr(n.data,e));for(;o(r=r.parent);)r&&r.data&&(e=Hr(e,r.data));return function(t,e){if(o(t)||o(e))return Ur(t,zr(e));return""}(e.staticClass,e.class)}function Hr(t,e){return{staticClass:Ur(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Ur(t,e){return t?e?t+" "+e:t:e||""}function zr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,i=t.length;n<i;n++)o(e=zr(t[n]))&&""!==e&&(r&&(r+=" "),r+=e);return r}(t):u(t)?function(t){var e="";for(var r in t)t[r]&&(e&&(e+=" "),e+=r);return e}(t):"string"==typeof t?t:""}var Kr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Wr=y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Jr=y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Gr=function(t){return Wr(t)||Jr(t)};function Yr(t){return Jr(t)?"svg":"math"===t?"math":void 0}var Zr=Object.create(null);var Xr=y("text,number,password,search,email,tel,url");function tn(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}var en=Object.freeze({createElement:function(t,e){var r=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&r.setAttribute("multiple","multiple"),r},createElementNS:function(t,e){return document.createElementNS(Kr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),rn={create:function(t,e){nn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(nn(t,!0),nn(e))},destroy:function(t){nn(t,!0)}};function nn(t,e){var r=t.data.ref;if(o(r)){var n=t.context,i=t.componentInstance||t.elm,a=n.$refs;e?Array.isArray(a[r])?g(a[r],i):a[r]===i&&(a[r]=void 0):t.data.refInFor?Array.isArray(a[r])?a[r].indexOf(i)<0&&a[r].push(i):a[r]=[i]:a[r]=i}}var on=new yt("",{},[]),an=["create","activate","update","remove","destroy"];function sn(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var r,n=o(r=t.data)&&o(r=r.attrs)&&r.type,i=o(r=e.data)&&o(r=r.attrs)&&r.type;return n===i||Xr(n)&&Xr(i)}(t,e)||a(t.isAsyncPlaceholder)&&i(e.asyncFactory.error))}function un(t,e,r){var n,i,a={};for(n=e;n<=r;++n)o(i=t[n].key)&&(a[i]=n);return a}var cn={create:ln,update:ln,destroy:function(t){ln(t,on)}};function ln(t,e){(t.data.directives||e.data.directives)&&function(t,e){var r,n,i,o=t===on,a=e===on,s=pn(t.data.directives,t.context),u=pn(e.data.directives,e.context),c=[],l=[];for(r in u)n=s[r],i=u[r],n?(i.oldValue=n.value,i.oldArg=n.arg,hn(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(hn(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var f=function(){for(var r=0;r<c.length;r++)hn(c[r],"inserted",e,t)};o?le(e,"insert",f):f()}l.length&&le(e,"postpatch",(function(){for(var r=0;r<l.length;r++)hn(l[r],"componentUpdated",e,t)}));if(!o)for(r in s)u[r]||hn(s[r],"unbind",t,t,a)}(t,e)}var fn=Object.create(null);function pn(t,e){var r,n,i=Object.create(null);if(!t)return i;for(r=0;r<t.length;r++)(n=t[r]).modifiers||(n.modifiers=fn),i[dn(n)]=n,n.def=Ft(e.$options,"directives",n.name);return i}function dn(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function hn(t,e,r,n,i){var o=t.def&&t.def[e];if(o)try{o(r.elm,t,r,n,i)}catch(n){Ut(n,r.context,"directive "+t.name+" "+e+" hook")}}var vn=[rn,cn];function yn(t,e){var r=e.componentOptions;if(!(o(r)&&!1===r.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var n,a,s=e.elm,u=t.data.attrs||{},c=e.data.attrs||{};for(n in o(c.__ob__)&&(c=e.data.attrs=R({},c)),c)a=c[n],u[n]!==a&&mn(s,n,a,e.data.pre);for(n in(Y||X)&&c.value!==u.value&&mn(s,"value",c.value),u)i(c[n])&&(Lr(n)?s.removeAttributeNS(Fr,Nr(n)):qr(n)||s.removeAttribute(n))}}function mn(t,e,r,n){n||t.tagName.indexOf("-")>-1?bn(t,e,r):Tr(e)?Vr(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):qr(e)?t.setAttribute(e,function(t,e){return Vr(e)||"false"===e?"false":"contenteditable"===t&&Dr(e)?e:"true"}(e,r)):Lr(e)?Vr(r)?t.removeAttributeNS(Fr,Nr(e)):t.setAttributeNS(Fr,e,r):bn(t,e,r)}function bn(t,e,r){if(Vr(r))t.removeAttribute(e);else{if(Y&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var gn={create:yn,update:yn};function On(t,e){var r=e.elm,n=e.data,a=t.data;if(!(i(n.staticClass)&&i(n.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Br(e),u=r._transitionClasses;o(u)&&(s=Ur(s,zr(u))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var _n,wn,kn,Sn,jn,xn,$n={create:On,update:On},Cn=/[\w).+\-_$\]]/;function An(t){var e,r,n,i,o,a=!1,s=!1,u=!1,c=!1,l=0,f=0,p=0,d=0;for(n=0;n<t.length;n++)if(r=e,e=t.charCodeAt(n),a)39===e&&92!==r&&(a=!1);else if(s)34===e&&92!==r&&(s=!1);else if(u)96===e&&92!==r&&(u=!1);else if(c)47===e&&92!==r&&(c=!1);else if(124!==e||124===t.charCodeAt(n+1)||124===t.charCodeAt(n-1)||l||f||p){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:u=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===e){for(var h=n-1,v=void 0;h>=0&&" "===(v=t.charAt(h));h--);v&&Cn.test(v)||(c=!0)}}else void 0===i?(d=n+1,i=t.slice(0,n).trim()):y();function y(){(o||(o=[])).push(t.slice(d,n).trim()),d=n+1}if(void 0===i?i=t.slice(0,n).trim():0!==d&&y(),o)for(n=0;n<o.length;n++)i=Rn(i,o[n]);return i}function Rn(t,e){var r=e.indexOf("(");if(r<0)return'_f("'+e+'")('+t+")";var n=e.slice(0,r),i=e.slice(r+1);return'_f("'+n+'")('+t+(")"!==i?","+i:i)}function En(t,e){console.error("[Vue compiler]: "+t)}function Qn(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function Pn(t,e,r,n,i){(t.props||(t.props=[])).push(Vn({name:e,value:r,dynamic:i},n)),t.plain=!1}function Mn(t,e,r,n,i){(i?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Vn({name:e,value:r,dynamic:i},n)),t.plain=!1}function In(t,e,r,n){t.attrsMap[e]=r,t.attrsList.push(Vn({name:e,value:r},n))}function qn(t,e,r,n,i,o,a,s){(t.directives||(t.directives=[])).push(Vn({name:e,rawName:r,value:n,arg:i,isDynamicArg:o,modifiers:a},s)),t.plain=!1}function Dn(t,e,r){return r?"_p("+e+',"'+t+'")':t+e}function Tn(t,e,r,i,o,a,s,u){var c;(i=i||n).right?u?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete i.right):i.middle&&(u?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),i.capture&&(delete i.capture,e=Dn("!",e,u)),i.once&&(delete i.once,e=Dn("~",e,u)),i.passive&&(delete i.passive,e=Dn("&",e,u)),i.native?(delete i.native,c=t.nativeEvents||(t.nativeEvents={})):c=t.events||(t.events={});var l=Vn({value:r.trim(),dynamic:u},s);i!==n&&(l.modifiers=i);var f=c[e];Array.isArray(f)?o?f.unshift(l):f.push(l):c[e]=f?o?[l,f]:[f,l]:l,t.plain=!1}function Fn(t,e,r){var n=Ln(t,":"+e)||Ln(t,"v-bind:"+e);if(null!=n)return An(n);if(!1!==r){var i=Ln(t,e);if(null!=i)return JSON.stringify(i)}}function Ln(t,e,r){var n;if(null!=(n=t.attrsMap[e]))for(var i=t.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===e){i.splice(o,1);break}return r&&delete t.attrsMap[e],n}function Nn(t,e){for(var r=t.attrsList,n=0,i=r.length;n<i;n++){var o=r[n];if(e.test(o.name))return r.splice(n,1),o}}function Vn(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Bn(t,e,r){var n=r||{},i=n.number,o="$$v";n.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Hn(e,o);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+a+"}"}}function Hn(t,e){var r=function(t){if(t=t.trim(),_n=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<_n-1)return(Sn=t.lastIndexOf("."))>-1?{exp:t.slice(0,Sn),key:'"'+t.slice(Sn+1)+'"'}:{exp:t,key:null};wn=t,Sn=jn=xn=0;for(;!zn();)Kn(kn=Un())?Jn(kn):91===kn&&Wn(kn);return{exp:t.slice(0,jn),key:t.slice(jn+1,xn)}}(t);return null===r.key?t+"="+e:"$set("+r.exp+", "+r.key+", "+e+")"}function Un(){return wn.charCodeAt(++Sn)}function zn(){return Sn>=_n}function Kn(t){return 34===t||39===t}function Wn(t){var e=1;for(jn=Sn;!zn();)if(Kn(t=Un()))Jn(t);else if(91===t&&e++,93===t&&e--,0===e){xn=Sn;break}}function Jn(t){for(var e=t;!zn()&&(t=Un())!==e;);}var Gn;function Yn(t,e,r){var n=Gn;return function i(){var o=e.apply(null,arguments);null!==o&&ti(t,i,r,n)}}var Zn=Gt&&!(et&&Number(et[1])<=53);function Xn(t,e,r,n){if(Zn){var i=cr,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Gn.addEventListener(t,e,nt?{capture:r,passive:n}:r)}function ti(t,e,r,n){(n||Gn).removeEventListener(t,e._wrapper||e,r)}function ei(t,e){if(!i(t.data.on)||!i(e.data.on)){var r=e.data.on||{},n=t.data.on||{};Gn=e.elm,function(t){if(o(t.__r)){var e=Y?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),ce(r,n,Xn,ti,Yn,e.context),Gn=void 0}}var ri,ni={create:ei,update:ei};function ii(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var r,n,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(r in o(u.__ob__)&&(u=e.data.domProps=R({},u)),s)r in u||(a[r]="");for(r in u){if(n=u[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=n;var c=i(n)?"":String(n);oi(a,c)&&(a.value=c)}else if("innerHTML"===r&&Jr(a.tagName)&&i(a.innerHTML)){(ri=ri||document.createElement("div")).innerHTML="<svg>"+n+"</svg>";for(var l=ri.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(n!==s[r])try{a[r]=n}catch(t){}}}}function oi(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(o(n)){if(n.number)return v(r)!==v(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var ai={create:ii,update:ii},si=w((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function ui(t){var e=ci(t.style);return t.staticStyle?R(t.staticStyle,e):e}function ci(t){return Array.isArray(t)?E(t):"string"==typeof t?si(t):t}var li,fi=/^--/,pi=/\s*!important$/,di=function(t,e,r){if(fi.test(e))t.style.setProperty(e,r);else if(pi.test(r))t.style.setProperty($(e),r.replace(pi,""),"important");else{var n=vi(e);if(Array.isArray(r))for(var i=0,o=r.length;i<o;i++)t.style[n]=r[i];else t.style[n]=r}},hi=["Webkit","Moz","ms"],vi=w((function(t){if(li=li||document.createElement("div").style,"filter"!==(t=S(t))&&t in li)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<hi.length;r++){var n=hi[r]+e;if(n in li)return n}}));function yi(t,e){var r=e.data,n=t.data;if(!(i(r.staticStyle)&&i(r.style)&&i(n.staticStyle)&&i(n.style))){var a,s,u=e.elm,c=n.staticStyle,l=n.normalizedStyle||n.style||{},f=c||l,p=ci(e.data.style)||{};e.data.normalizedStyle=o(p.__ob__)?R({},p):p;var d=function(t,e){var r,n={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(r=ui(i.data))&&R(n,r);(r=ui(t.data))&&R(n,r);for(var o=t;o=o.parent;)o.data&&(r=ui(o.data))&&R(n,r);return n}(e,!0);for(s in f)i(d[s])&&di(u,s,"");for(s in d)(a=d[s])!==f[s]&&di(u,s,null==a?"":a)}}var mi={create:yi,update:yi},bi=/\s+/;function gi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function Oi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function _i(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&R(e,wi(t.name||"v")),R(e,t),e}return"string"==typeof t?wi(t):void 0}}var wi=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),ki=K&&!Z,Si="transition",ji="transitionend",xi="animation",$i="animationend";ki&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Si="WebkitTransition",ji="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xi="WebkitAnimation",$i="webkitAnimationEnd"));var Ci=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ai(t){Ci((function(){Ci(t)}))}function Ri(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),gi(t,e))}function Ei(t,e){t._transitionClasses&&g(t._transitionClasses,e),Oi(t,e)}function Qi(t,e,r){var n=Mi(t,e),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s="transition"===i?ji:$i,u=0,c=function(){t.removeEventListener(s,l),r()},l=function(e){e.target===t&&++u>=a&&c()};setTimeout((function(){u<a&&c()}),o+1),t.addEventListener(s,l)}var Pi=/\b(transform|all)(,|$)/;function Mi(t,e){var r,n=window.getComputedStyle(t),i=(n[Si+"Delay"]||"").split(", "),o=(n[Si+"Duration"]||"").split(", "),a=Ii(i,o),s=(n[xi+"Delay"]||"").split(", "),u=(n[xi+"Duration"]||"").split(", "),c=Ii(s,u),l=0,f=0;return"transition"===e?a>0&&(r="transition",l=a,f=o.length):"animation"===e?c>0&&(r="animation",l=c,f=u.length):f=(r=(l=Math.max(a,c))>0?a>c?"transition":"animation":null)?"transition"===r?o.length:u.length:0,{type:r,timeout:l,propCount:f,hasTransform:"transition"===r&&Pi.test(n[Si+"Property"])}}function Ii(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,r){return qi(e)+qi(t[r])})))}function qi(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Di(t,e){var r=t.elm;o(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var n=_i(t.data.transition);if(!i(n)&&!o(r._enterCb)&&1===r.nodeType){for(var a=n.css,s=n.type,c=n.enterClass,l=n.enterToClass,f=n.enterActiveClass,p=n.appearClass,d=n.appearToClass,h=n.appearActiveClass,y=n.beforeEnter,m=n.enter,b=n.afterEnter,g=n.enterCancelled,O=n.beforeAppear,_=n.appear,w=n.afterAppear,k=n.appearCancelled,S=n.duration,j=Ze,x=Ze.$vnode;x&&x.parent;)j=x.context,x=x.parent;var $=!j._isMounted||!t.isRootInsert;if(!$||_||""===_){var C=$&&p?p:c,A=$&&h?h:f,R=$&&d?d:l,E=$&&O||y,Q=$&&"function"==typeof _?_:m,P=$&&w||b,M=$&&k||g,I=v(u(S)?S.enter:S);0;var q=!1!==a&&!Z,T=Li(Q),F=r._enterCb=D((function(){q&&(Ei(r,R),Ei(r,A)),F.cancelled?(q&&Ei(r,C),M&&M(r)):P&&P(r),r._enterCb=null}));t.data.show||le(t,"insert",(function(){var e=r.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),Q&&Q(r,F)})),E&&E(r),q&&(Ri(r,C),Ri(r,A),Ai((function(){Ei(r,C),F.cancelled||(Ri(r,R),T||(Fi(I)?setTimeout(F,I):Qi(r,s,F)))}))),t.data.show&&(e&&e(),Q&&Q(r,F)),q||T||F()}}}function Ti(t,e){var r=t.elm;o(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var n=_i(t.data.transition);if(i(n)||1!==r.nodeType)return e();if(!o(r._leaveCb)){var a=n.css,s=n.type,c=n.leaveClass,l=n.leaveToClass,f=n.leaveActiveClass,p=n.beforeLeave,d=n.leave,h=n.afterLeave,y=n.leaveCancelled,m=n.delayLeave,b=n.duration,g=!1!==a&&!Z,O=Li(d),_=v(u(b)?b.leave:b);0;var w=r._leaveCb=D((function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),g&&(Ei(r,l),Ei(r,f)),w.cancelled?(g&&Ei(r,c),y&&y(r)):(e(),h&&h(r)),r._leaveCb=null}));m?m(k):k()}function k(){w.cancelled||(!t.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),p&&p(r),g&&(Ri(r,c),Ri(r,f),Ai((function(){Ei(r,c),w.cancelled||(Ri(r,l),O||(Fi(_)?setTimeout(w,_):Qi(r,s,w)))}))),d&&d(r,w),g||O||w())}}function Fi(t){return"number"==typeof t&&!isNaN(t)}function Li(t){if(i(t))return!1;var e=t.fns;return o(e)?Li(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Ni(t,e){!0!==e.data.show&&Di(e)}var Vi=function(t){var e,r,n={},u=t.modules,c=t.nodeOps;for(e=0;e<an.length;++e)for(n[an[e]]=[],r=0;r<u.length;++r)o(u[r][an[e]])&&n[an[e]].push(u[r][an[e]]);function l(t){var e=c.parentNode(t);o(e)&&c.removeChild(e,t)}function f(t,e,r,i,s,u,l){if(o(t.elm)&&o(u)&&(t=u[l]=Ot(t)),t.isRootInsert=!s,!function(t,e,r,i){var s=t.data;if(o(s)){var u=o(t.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(t,!1),o(t.componentInstance))return p(t,e),d(r,t.elm,i),a(u)&&function(t,e,r,i){var a,s=t;for(;s.componentInstance;)if(s=s.componentInstance._vnode,o(a=s.data)&&o(a=a.transition)){for(a=0;a<n.activate.length;++a)n.activate[a](on,s);e.push(s);break}d(r,t.elm,i)}(t,e,r,i),!0}}(t,e,r,i)){var f=t.data,v=t.children,y=t.tag;o(y)?(t.elm=t.ns?c.createElementNS(t.ns,y):c.createElement(y,t),b(t),h(t,v,e),o(f)&&m(t,e),d(r,t.elm,i)):a(t.isComment)?(t.elm=c.createComment(t.text),d(r,t.elm,i)):(t.elm=c.createTextNode(t.text),d(r,t.elm,i))}}function p(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(m(t,e),b(t)):(nn(t),e.push(t))}function d(t,e,r){o(t)&&(o(r)?c.parentNode(r)===t&&c.insertBefore(t,e,r):c.appendChild(t,e))}function h(t,e,r){if(Array.isArray(e)){0;for(var n=0;n<e.length;++n)f(e[n],r,t.elm,null,!0,e,n)}else s(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function m(t,r){for(var i=0;i<n.create.length;++i)n.create[i](on,t);o(e=t.data.hook)&&(o(e.create)&&e.create(on,t),o(e.insert)&&r.push(t))}function b(t){var e;if(o(e=t.fnScopeId))c.setStyleScope(t.elm,e);else for(var r=t;r;)o(e=r.context)&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),r=r.parent;o(e=Ze)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function g(t,e,r,n,i,o){for(;n<=i;++n)f(r[n],o,t,e,!1,r,n)}function O(t){var e,r,i=t.data;if(o(i))for(o(e=i.hook)&&o(e=e.destroy)&&e(t),e=0;e<n.destroy.length;++e)n.destroy[e](t);if(o(e=t.children))for(r=0;r<t.children.length;++r)O(t.children[r])}function _(t,e,r){for(;e<=r;++e){var n=t[e];o(n)&&(o(n.tag)?(w(n),O(n)):l(n.elm))}}function w(t,e){if(o(e)||o(t.data)){var r,i=n.remove.length+1;for(o(e)?e.listeners+=i:e=function(t,e){function r(){0==--r.listeners&&l(t)}return r.listeners=e,r}(t.elm,i),o(r=t.componentInstance)&&o(r=r._vnode)&&o(r.data)&&w(r,e),r=0;r<n.remove.length;++r)n.remove[r](t,e);o(r=t.data.hook)&&o(r=r.remove)?r(t,e):e()}else l(t.elm)}function k(t,e,r,n){for(var i=r;i<n;i++){var a=e[i];if(o(a)&&sn(t,a))return i}}function S(t,e,r,s,u,l){if(t!==e){o(e.elm)&&o(s)&&(e=s[u]=Ot(e));var p=e.elm=t.elm;if(a(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?$(t.elm,e,r):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var d,h=e.data;o(h)&&o(d=h.hook)&&o(d=d.prepatch)&&d(t,e);var y=t.children,m=e.children;if(o(h)&&v(e)){for(d=0;d<n.update.length;++d)n.update[d](t,e);o(d=h.hook)&&o(d=d.update)&&d(t,e)}i(e.text)?o(y)&&o(m)?y!==m&&function(t,e,r,n,a){var s,u,l,p=0,d=0,h=e.length-1,v=e[0],y=e[h],m=r.length-1,b=r[0],O=r[m],w=!a;for(0;p<=h&&d<=m;)i(v)?v=e[++p]:i(y)?y=e[--h]:sn(v,b)?(S(v,b,n,r,d),v=e[++p],b=r[++d]):sn(y,O)?(S(y,O,n,r,m),y=e[--h],O=r[--m]):sn(v,O)?(S(v,O,n,r,m),w&&c.insertBefore(t,v.elm,c.nextSibling(y.elm)),v=e[++p],O=r[--m]):sn(y,b)?(S(y,b,n,r,d),w&&c.insertBefore(t,y.elm,v.elm),y=e[--h],b=r[++d]):(i(s)&&(s=un(e,p,h)),i(u=o(b.key)?s[b.key]:k(b,e,p,h))?f(b,n,t,v.elm,!1,r,d):sn(l=e[u],b)?(S(l,b,n,r,d),e[u]=void 0,w&&c.insertBefore(t,l.elm,v.elm)):f(b,n,t,v.elm,!1,r,d),b=r[++d]);p>h?g(t,i(r[m+1])?null:r[m+1].elm,r,d,m,n):d>m&&_(e,p,h)}(p,y,m,r,l):o(m)?(o(t.text)&&c.setTextContent(p,""),g(p,null,m,0,m.length-1,r)):o(y)?_(y,0,y.length-1):o(t.text)&&c.setTextContent(p,""):t.text!==e.text&&c.setTextContent(p,e.text),o(h)&&o(d=h.hook)&&o(d=d.postpatch)&&d(t,e)}}}function j(t,e,r){if(a(r)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n<e.length;++n)e[n].data.hook.insert(e[n])}var x=y("attrs,class,staticClass,staticStyle,key");function $(t,e,r,n){var i,s=e.tag,u=e.data,c=e.children;if(n=n||u&&u.pre,e.elm=t,a(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(u)&&(o(i=u.hook)&&o(i=i.init)&&i(e,!0),o(i=e.componentInstance)))return p(e,r),!0;if(o(s)){if(o(c))if(t.hasChildNodes())if(o(i=u)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var l=!0,f=t.firstChild,d=0;d<c.length;d++){if(!f||!$(f,c[d],r,n)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else h(e,c,r);if(o(u)){var v=!1;for(var y in u)if(!x(y)){v=!0,m(e,r);break}!v&&u.class&&ae(u.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,r,s){if(!i(e)){var u,l=!1,p=[];if(i(t))l=!0,f(e,p);else{var d=o(t.nodeType);if(!d&&sn(t,e))S(t,e,p,null,null,s);else{if(d){if(1===t.nodeType&&t.hasAttribute("data-server-rendered")&&(t.removeAttribute("data-server-rendered"),r=!0),a(r)&&$(t,e,p))return j(e,p,!0),t;u=t,t=new yt(c.tagName(u).toLowerCase(),{},[],void 0,u)}var h=t.elm,y=c.parentNode(h);if(f(e,p,h._leaveCb?null:y,c.nextSibling(h)),o(e.parent))for(var m=e.parent,b=v(e);m;){for(var g=0;g<n.destroy.length;++g)n.destroy[g](m);if(m.elm=e.elm,b){for(var w=0;w<n.create.length;++w)n.create[w](on,m);var k=m.data.hook.insert;if(k.merged)for(var x=1;x<k.fns.length;x++)k.fns[x]()}else nn(m);m=m.parent}o(y)?_([t],0,0):o(t.tag)&&O(t)}}return j(e,p,l),e.elm}o(t)&&O(t)}}({nodeOps:en,modules:[gn,$n,ni,ai,mi,K?{create:Ni,activate:Ni,remove:function(t,e){!0!==t.data.show?Ti(t,e):e()}}:{}].concat(vn)});Z&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Gi(t,"input")}));var Bi={inserted:function(t,e,r,n){"select"===r.tag?(n.elm&&!n.elm._vOptions?le(r,"postpatch",(function(){Bi.componentUpdated(t,e,r)})):Hi(t,e,r.context),t._vOptions=[].map.call(t.options,Ki)):("textarea"===r.tag||Xr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Wi),t.addEventListener("compositionend",Ji),t.addEventListener("change",Ji),Z&&(t.vmodel=!0)))},componentUpdated:function(t,e,r){if("select"===r.tag){Hi(t,e,r.context);var n=t._vOptions,i=t._vOptions=[].map.call(t.options,Ki);if(i.some((function(t,e){return!I(t,n[e])})))(t.multiple?e.value.some((function(t){return zi(t,i)})):e.value!==e.oldValue&&zi(e.value,i))&&Gi(t,"change")}}};function Hi(t,e,r){Ui(t,e,r),(Y||X)&&setTimeout((function(){Ui(t,e,r)}),0)}function Ui(t,e,r){var n=e.value,i=t.multiple;if(!i||Array.isArray(n)){for(var o,a,s=0,u=t.options.length;s<u;s++)if(a=t.options[s],i)o=q(n,Ki(a))>-1,a.selected!==o&&(a.selected=o);else if(I(Ki(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function zi(t,e){return e.every((function(e){return!I(e,t)}))}function Ki(t){return"_value"in t?t._value:t.value}function Wi(t){t.target.composing=!0}function Ji(t){t.target.composing&&(t.target.composing=!1,Gi(t.target,"input"))}function Gi(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Yi(t){return!t.componentInstance||t.data&&t.data.transition?t:Yi(t.componentInstance._vnode)}var Zi={model:Bi,show:{bind:function(t,e,r){var n=e.value,i=(r=Yi(r)).data&&r.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&i?(r.data.show=!0,Di(r,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Yi(r)).data&&r.data.transition?(r.data.show=!0,n?Di(r,(function(){t.style.display=t.__vOriginalDisplay})):Ti(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,i){i||(t.style.display=t.__vOriginalDisplay)}}},Xi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function to(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?to(Ke(e.children)):t}function eo(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var i=r._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function ro(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var no=function(t){return t.tag||me(t)},io=function(t){return"show"===t.name},oo={name:"transition",props:Xi,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(no)).length){0;var n=this.mode;0;var i=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=to(i);if(!o)return i;if(this._leaving)return ro(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=eo(this),c=this._vnode,l=to(c);if(o.data.directives&&o.data.directives.some(io)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!me(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=R({},u);if("out-in"===n)return this._leaving=!0,le(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ro(t,i);if("in-out"===n){if(me(o))return c;var p,d=function(){p()};le(u,"afterEnter",d),le(u,"enterCancelled",d),le(f,"delayLeave",(function(t){p=t}))}}return i}}},ao=R({tag:String,moveClass:String},Xi);function so(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function uo(t){t.data.newPos=t.elm.getBoundingClientRect()}function co(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,i=e.top-r.top;if(n||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete ao.mode;var lo={Transition:oo,TransitionGroup:{props:ao,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var i=Xe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=eo(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),r[u.key]=u,(u.data||(u.data={})).transition=a}if(n){for(var c=[],l=[],f=0;f<n.length;f++){var p=n[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),r[p.key]?c.push(p):l.push(p)}this.kept=t(e,null,c),this.removed=l}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(so),t.forEach(uo),t.forEach(co),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var r=t.elm,n=r.style;Ri(r,e),n.transform=n.WebkitTransform=n.transitionDuration="",r.addEventListener(ji,r._moveCb=function t(n){n&&n.target!==r||n&&!/transform$/.test(n.propertyName)||(r.removeEventListener(ji,t),r._moveCb=null,Ei(r,e))})}})))},methods:{hasMove:function(t,e){if(!ki)return!1;if(this._hasMove)return this._hasMove;var r=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Oi(r,t)})),gi(r,e),r.style.display="none",this.$el.appendChild(r);var n=Mi(r);return this.$el.removeChild(r),this._hasMove=n.hasTransform}}}};jr.config.mustUseProp=Ir,jr.config.isReservedTag=Gr,jr.config.isReservedAttr=Pr,jr.config.getTagNamespace=Yr,jr.config.isUnknownElement=function(t){if(!K)return!0;if(Gr(t))return!1;if(t=t.toLowerCase(),null!=Zr[t])return Zr[t];var e=document.createElement(t);return t.indexOf("-")>-1?Zr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Zr[t]=/HTMLUnknownElement/.test(e.toString())},R(jr.options.directives,Zi),R(jr.options.components,lo),jr.prototype.__patch__=K?Vi:Q,jr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=bt),rr(t,"beforeMount"),n=function(){t._update(t._render(),r)},new hr(t,n,Q,{before:function(){t._isMounted&&!t._isDestroyed&&rr(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,rr(t,"mounted")),t}(this,t=t&&K?tn(t):void 0,e)},K&&setTimeout((function(){L.devtools&&at&&at.emit("init",jr)}),0);var fo=/\{\{((?:.|\r?\n)+?)\}\}/g,po=/[-.*+?^${}()|[\]\/\\]/g,ho=w((function(t){var e=t[0].replace(po,"\\$&"),r=t[1].replace(po,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+r,"g")}));var vo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var r=Ln(t,"class");r&&(t.staticClass=JSON.stringify(r));var n=Fn(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}};var yo,mo={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var r=Ln(t,"style");r&&(t.staticStyle=JSON.stringify(si(r)));var n=Fn(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},bo=function(t){return(yo=yo||document.createElement("div")).innerHTML=t,yo.textContent},go=y("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Oo=y("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),_o=y("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),wo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,So="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+N.source+"]*",jo="((?:"+So+"\\:)?"+So+")",xo=new RegExp("^<"+jo),$o=/^\s*(\/?)>/,Co=new RegExp("^<\\/"+jo+"[^>]*>"),Ao=/^<!DOCTYPE [^>]+>/i,Ro=/^<!\--/,Eo=/^<!\[/,Qo=y("script,style,textarea",!0),Po={},Mo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,qo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Do=y("pre,textarea",!0),To=function(t,e){return t&&Do(t)&&"\n"===e[0]};function Fo(t,e){var r=e?qo:Io;return t.replace(r,(function(t){return Mo[t]}))}var Lo,No,Vo,Bo,Ho,Uo,zo,Ko,Wo=/^@|^v-on:/,Jo=/^v-|^@|^:|^#/,Go=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zo=/^\(|\)$/g,Xo=/^\[.*\]$/,ta=/:(.*)$/,ea=/^:|^\.|^v-bind:/,ra=/\.[^.\]]+(?=[^\]]*$)/g,na=/^v-slot(:|$)|^#/,ia=/[\r\n]/,oa=/[ \f\t\r\n]+/g,aa=w(bo);function sa(t,e,r){return{type:1,tag:t,attrsList:e,attrsMap:ha(e),rawAttrsMap:{},parent:r,children:[]}}function ua(t,e){Lo=e.warn||En,Uo=e.isPreTag||P,zo=e.mustUseProp||P,Ko=e.getTagNamespace||P;var r=e.isReservedTag||P;(function(t){return!(!(t.component||t.attrsMap[":is"]||t.attrsMap["v-bind:is"])&&(t.attrsMap.is?r(t.attrsMap.is):r(t.tag)))}),Vo=Qn(e.modules,"transformNode"),Bo=Qn(e.modules,"preTransformNode"),Ho=Qn(e.modules,"postTransformNode"),No=e.delimiters;var n,i,o=[],a=!1!==e.preserveWhitespace,s=e.whitespace,u=!1,c=!1;function l(t){if(f(t),u||t.processed||(t=ca(t,e)),o.length||t===n||n.if&&(t.elseif||t.else)&&fa(n,{exp:t.elseif,block:t}),i&&!t.forbidden)if(t.elseif||t.else)a=t,(s=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(i.children))&&s.if&&fa(s,{exp:a.elseif,block:a});else{if(t.slotScope){var r=t.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[r]=t}i.children.push(t),t.parent=i}var a,s;t.children=t.children.filter((function(t){return!t.slotScope})),f(t),t.pre&&(u=!1),Uo(t.tag)&&(c=!1);for(var l=0;l<Ho.length;l++)Ho[l](t,e)}function f(t){if(!c)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var r,n,i=[],o=e.expectHTML,a=e.isUnaryTag||P,s=e.canBeLeftOpenTag||P,u=0;t;){if(r=t,n&&Qo(n)){var c=0,l=n.toLowerCase(),f=Po[l]||(Po[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),p=t.replace(f,(function(t,r,n){return c=n.length,Qo(l)||"noscript"===l||(r=r.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),To(l,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""}));u+=t.length-p.length,t=p,x(l,u-c,u)}else{var d=t.indexOf("<");if(0===d){if(Ro.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),u,u+h+3),k(h+3);continue}}if(Eo.test(t)){var v=t.indexOf("]>");if(v>=0){k(v+2);continue}}var y=t.match(Ao);if(y){k(y[0].length);continue}var m=t.match(Co);if(m){var b=u;k(m[0].length),x(m[1],b,u);continue}var g=S();if(g){j(g),To(g.tagName,t)&&k(1);continue}}var O=void 0,_=void 0,w=void 0;if(d>=0){for(_=t.slice(d);!(Co.test(_)||xo.test(_)||Ro.test(_)||Eo.test(_)||(w=_.indexOf("<",1))<0);)d+=w,_=t.slice(d);O=t.substring(0,d)}d<0&&(O=t),O&&k(O.length),e.chars&&O&&e.chars(O,u-O.length,u)}if(t===r){e.chars&&e.chars(t);break}}function k(e){u+=e,t=t.substring(e)}function S(){var e=t.match(xo);if(e){var r,n,i={tagName:e[1],attrs:[],start:u};for(k(e[0].length);!(r=t.match($o))&&(n=t.match(ko)||t.match(wo));)n.start=u,k(n[0].length),n.end=u,i.attrs.push(n);if(r)return i.unarySlash=r[1],k(r[0].length),i.end=u,i}}function j(t){var r=t.tagName,u=t.unarySlash;o&&("p"===n&&_o(r)&&x(n),s(r)&&n===r&&x(r));for(var c=a(r)||!!u,l=t.attrs.length,f=new Array(l),p=0;p<l;p++){var d=t.attrs[p],h=d[3]||d[4]||d[5]||"",v="a"===r&&"href"===d[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;f[p]={name:d[1],value:Fo(h,v)}}c||(i.push({tag:r,lowerCasedTag:r.toLowerCase(),attrs:f,start:t.start,end:t.end}),n=r),e.start&&e.start(r,f,c,t.start,t.end)}function x(t,r,o){var a,s;if(null==r&&(r=u),null==o&&(o=u),t)for(s=t.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)e.end&&e.end(i[c].tag,r,o);i.length=a,n=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,r,o):"p"===s&&(e.start&&e.start(t,[],!1,r,o),e.end&&e.end(t,r,o))}x()}(t,{warn:Lo,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,r,a,s,f){var p=i&&i.ns||Ko(t);Y&&"svg"===p&&(r=function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];va.test(n.name)||(n.name=n.name.replace(ya,""),e.push(n))}return e}(r));var d,h=sa(t,r,i);p&&(h.ns=p),"style"!==(d=h).tag&&("script"!==d.tag||d.attrsMap.type&&"text/javascript"!==d.attrsMap.type)||ot()||(h.forbidden=!0);for(var v=0;v<Bo.length;v++)h=Bo[v](h,e)||h;u||(!function(t){null!=Ln(t,"v-pre")&&(t.pre=!0)}(h),h.pre&&(u=!0)),Uo(h.tag)&&(c=!0),u?function(t){var e=t.attrsList,r=e.length;if(r)for(var n=t.attrs=new Array(r),i=0;i<r;i++)n[i]={name:e[i].name,value:JSON.stringify(e[i].value)},null!=e[i].start&&(n[i].start=e[i].start,n[i].end=e[i].end);else t.pre||(t.plain=!0)}(h):h.processed||(la(h),function(t){var e=Ln(t,"v-if");if(e)t.if=e,fa(t,{exp:e,block:t});else{null!=Ln(t,"v-else")&&(t.else=!0);var r=Ln(t,"v-else-if");r&&(t.elseif=r)}}(h),function(t){null!=Ln(t,"v-once")&&(t.once=!0)}(h)),n||(n=h),a?l(h):(i=h,o.push(h))},end:function(t,e,r){var n=o[o.length-1];o.length-=1,i=o[o.length-1],l(n)},chars:function(t,e,r){if(i&&(!Y||"textarea"!==i.tag||i.attrsMap.placeholder!==t)){var n,o,l,f=i.children;if(t=c||t.trim()?"script"===(n=i).tag||"style"===n.tag?t:aa(t):f.length?s?"condense"===s&&ia.test(t)?"":" ":a?" ":"":"")c||"condense"!==s||(t=t.replace(oa," ")),!u&&" "!==t&&(o=function(t,e){var r=e?ho(e):fo;if(r.test(t)){for(var n,i,o,a=[],s=[],u=r.lastIndex=0;n=r.exec(t);){(i=n.index)>u&&(s.push(o=t.slice(u,i)),a.push(JSON.stringify(o)));var c=An(n[1].trim());a.push("_s("+c+")"),s.push({"@binding":c}),u=i+n[0].length}return u<t.length&&(s.push(o=t.slice(u)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(t,No))?l={type:2,expression:o.expression,tokens:o.tokens,text:t}:" "===t&&f.length&&" "===f[f.length-1].text||(l={type:3,text:t}),l&&f.push(l)}},comment:function(t,e,r){if(i){var n={type:3,text:t,isComment:!0};0,i.children.push(n)}}}),n}function ca(t,e){var r;!function(t){var e=Fn(t,"key");if(e){t.key=e}}(t),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Fn(t,"ref");e&&(t.ref=e,t.refInFor=function(t){var e=t;for(;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=Ln(t,"scope"),t.slotScope=e||Ln(t,"slot-scope")):(e=Ln(t,"slot-scope"))&&(t.slotScope=e);var r=Fn(t,"slot");r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Mn(t,"slot",r,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot")));if("template"===t.tag){var n=Nn(t,na);if(n){0;var i=pa(n),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=n.value||"_empty_"}}else{var s=Nn(t,na);if(s){0;var u=t.scopedSlots||(t.scopedSlots={}),c=pa(s),l=c.name,f=c.dynamic,p=u[l]=sa("template",[],t);p.slotTarget=l,p.slotTargetDynamic=f,p.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=p,!0})),p.slotScope=s.value||"_empty_",t.children=[],t.plain=!1}}}(t),"slot"===(r=t).tag&&(r.slotName=Fn(r,"name")),function(t){var e;(e=Fn(t,"is"))&&(t.component=e);null!=Ln(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var n=0;n<Vo.length;n++)t=Vo[n](t,e)||t;return function(t){var e,r,n,i,o,a,s,u,c=t.attrsList;for(e=0,r=c.length;e<r;e++){if(n=i=c[e].name,o=c[e].value,Jo.test(n))if(t.hasBindings=!0,(a=da(n.replace(Jo,"")))&&(n=n.replace(ra,"")),ea.test(n))n=n.replace(ea,""),o=An(o),(u=Xo.test(n))&&(n=n.slice(1,-1)),a&&(a.prop&&!u&&"innerHtml"===(n=S(n))&&(n="innerHTML"),a.camel&&!u&&(n=S(n)),a.sync&&(s=Hn(o,"$event"),u?Tn(t,'"update:"+('+n+")",s,null,!1,0,c[e],!0):(Tn(t,"update:"+S(n),s,null,!1,0,c[e]),$(n)!==S(n)&&Tn(t,"update:"+$(n),s,null,!1,0,c[e])))),a&&a.prop||!t.component&&zo(t.tag,t.attrsMap.type,n)?Pn(t,n,o,c[e],u):Mn(t,n,o,c[e],u);else if(Wo.test(n))n=n.replace(Wo,""),(u=Xo.test(n))&&(n=n.slice(1,-1)),Tn(t,n,o,a,!1,0,c[e],u);else{var l=(n=n.replace(Jo,"")).match(ta),f=l&&l[1];u=!1,f&&(n=n.slice(0,-(f.length+1)),Xo.test(f)&&(f=f.slice(1,-1),u=!0)),qn(t,n,i,o,f,u,a,c[e])}else Mn(t,n,JSON.stringify(o),c[e]),!t.component&&"muted"===n&&zo(t.tag,t.attrsMap.type,n)&&Pn(t,n,"true",c[e])}}(t),t}function la(t){var e;if(e=Ln(t,"v-for")){var r=function(t){var e=t.match(Go);if(!e)return;var r={};r.for=e[2].trim();var n=e[1].trim().replace(Zo,""),i=n.match(Yo);i?(r.alias=n.replace(Yo,"").trim(),r.iterator1=i[1].trim(),i[2]&&(r.iterator2=i[2].trim())):r.alias=n;return r}(e);r&&R(t,r)}}function fa(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function pa(t){var e=t.name.replace(na,"");return e||"#"!==t.name[0]&&(e="default"),Xo.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}function da(t){var e=t.match(ra);if(e){var r={};return e.forEach((function(t){r[t.slice(1)]=!0})),r}}function ha(t){for(var e={},r=0,n=t.length;r<n;r++)e[t[r].name]=t[r].value;return e}var va=/^xmlns:NS\d+/,ya=/^NS\d+:/;function ma(t){return sa(t.tag,t.attrsList.slice(),t.parent)}var ba=[vo,mo,{preTransformNode:function(t,e){if("input"===t.tag){var r,n=t.attrsMap;if(!n["v-model"])return;if((n[":type"]||n["v-bind:type"])&&(r=Fn(t,"type")),n.type||r||!n["v-bind"]||(r="("+n["v-bind"]+").type"),r){var i=Ln(t,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Ln(t,"v-else",!0),s=Ln(t,"v-else-if",!0),u=ma(t);la(u),In(u,"type","checkbox"),ca(u,e),u.processed=!0,u.if="("+r+")==='checkbox'"+o,fa(u,{exp:u.if,block:u});var c=ma(t);Ln(c,"v-for",!0),In(c,"type","radio"),ca(c,e),fa(u,{exp:"("+r+")==='radio'"+o,block:c});var l=ma(t);return Ln(l,"v-for",!0),In(l,":type",r),ca(l,e),fa(u,{exp:i,block:l}),a?u.else=!0:s&&(u.elseif=s),u}}}}];var ga,Oa,_a={expectHTML:!0,modules:ba,directives:{model:function(t,e,r){r;var n=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return Bn(t,n,i),!1;if("select"===o)!function(t,e,r){var n='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r&&r.number?"_n(val)":"val")+"});";n=n+" "+Hn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Tn(t,"change",n,null,!0)}(t,n,i);else if("input"===o&&"checkbox"===a)!function(t,e,r){var n=r&&r.number,i=Fn(t,"value")||"null",o=Fn(t,"true-value")||"true",a=Fn(t,"false-value")||"false";Pn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Tn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(n?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Hn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Hn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Hn(e,"$$c")+"}",null,!0)}(t,n,i);else if("input"===o&&"radio"===a)!function(t,e,r){var n=r&&r.number,i=Fn(t,"value")||"null";Pn(t,"checked","_q("+e+","+(i=n?"_n("+i+")":i)+")"),Tn(t,"change",Hn(e,i),null,!0)}(t,n,i);else if("input"===o||"textarea"===o)!function(t,e,r){var n=t.attrsMap.type;0;var i=r||{},o=i.lazy,a=i.number,s=i.trim,u=!o&&"range"!==n,c=o?"change":"range"===n?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n("+l+")");var f=Hn(e,l);u&&(f="if($event.target.composing)return;"+f);Pn(t,"value","("+e+")"),Tn(t,c,f,null,!0),(s||a)&&Tn(t,"blur","$forceUpdate()")}(t,n,i);else{if(!L.isReservedTag(o))return Bn(t,n,i),!1}return!0},text:function(t,e){e.value&&Pn(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Pn(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:go,mustUseProp:Ir,canBeLeftOpenTag:Oo,isReservedTag:Gr,getTagNamespace:Yr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ba)},wa=w((function(t){return y("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function ka(t,e){t&&(ga=wa(e.staticKeys||""),Oa=e.isReservedTag||P,function t(e){if(e.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||m(t.tag)||!Oa(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(ga)))}(e),1===e.type){if(!Oa(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var r=0,n=e.children.length;r<n;r++){var i=e.children[r];t(i),i.static||(e.static=!1)}if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++){var s=e.ifConditions[o].block;t(s),s.static||(e.static=!1)}}}(t),function t(e,r){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=r),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,i=e.children.length;n<i;n++)t(e.children[n],r||!!e.for);if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++)t(e.ifConditions[o].block,r)}}(t,!1))}var Sa=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ja=/\([^)]*?\);*$/,xa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,$a={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ca={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Aa=function(t){return"if("+t+")return null;"},Ra={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Aa("$event.target !== $event.currentTarget"),ctrl:Aa("!$event.ctrlKey"),shift:Aa("!$event.shiftKey"),alt:Aa("!$event.altKey"),meta:Aa("!$event.metaKey"),left:Aa("'button' in $event && $event.button !== 0"),middle:Aa("'button' in $event && $event.button !== 1"),right:Aa("'button' in $event && $event.button !== 2")};function Ea(t,e){var r=e?"nativeOn:":"on:",n="",i="";for(var o in t){var a=Qa(t[o]);t[o]&&t[o].dynamic?i+=o+","+a+",":n+='"'+o+'":'+a+","}return n="{"+n.slice(0,-1)+"}",i?r+"_d("+n+",["+i.slice(0,-1)+"])":r+n}function Qa(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Qa(t)})).join(",")+"]";var e=xa.test(t.value),r=Sa.test(t.value),n=xa.test(t.value.replace(ja,""));if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(Ra[s])o+=Ra[s],$a[s]&&a.push(s);else if("exact"===s){var u=t.modifiers;o+=Aa(["ctrl","shift","alt","meta"].filter((function(t){return!u[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Pa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+".apply(null, arguments)":r?"return ("+t.value+").apply(null, arguments)":n?"return "+t.value:t.value)+"}"}return e||r?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function Pa(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var r=$a[t],n=Ca[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(r)+",$event.key,"+JSON.stringify(n)+")"}var Ma={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(r){return"_b("+r+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:Q},Ia=function(t){this.options=t,this.warn=t.warn||En,this.transforms=Qn(t.modules,"transformCode"),this.dataGenFns=Qn(t.modules,"genData"),this.directives=R(R({},Ma),t.directives);var e=t.isReservedTag||P;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function qa(t,e){var r=new Ia(e);return{render:"with(this){return "+(t?"script"===t.tag?"null":Da(t,r):'_c("div")')+"}",staticRenderFns:r.staticRenderFns}}function Da(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ta(t,e);if(t.once&&!t.onceProcessed)return Fa(t,e);if(t.for&&!t.forProcessed)return Na(t,e);if(t.if&&!t.ifProcessed)return La(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var r=t.slotName||'"default"',n=Ua(t,e),i="_t("+r+(n?",function(){return "+n+"}":""),o=t.attrs||t.dynamicAttrs?Wa((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:S(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];!o&&!a||n||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(t,e);var r;if(t.component)r=function(t,e,r){var n=e.inlineTemplate?null:Ua(e,r,!0);return"_c("+t+","+Va(e,r)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Va(t,e));var i=t.inlineTemplate?null:Ua(t,e,!0);r="_c('"+t.tag+"'"+(n?","+n:"")+(i?","+i:"")+")"}for(var o=0;o<e.transforms.length;o++)r=e.transforms[o](t,r);return r}return Ua(t,e)||"void 0"}function Ta(t,e){t.staticProcessed=!0;var r=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+Da(t,e)+"}"),e.pre=r,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function Fa(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return La(t,e);if(t.staticInFor){for(var r="",n=t.parent;n;){if(n.for){r=n.key;break}n=n.parent}return r?"_o("+Da(t,e)+","+e.onceId+++","+r+")":Da(t,e)}return Ta(t,e)}function La(t,e,r,n){return t.ifProcessed=!0,function t(e,r,n,i){if(!e.length)return i||"_e()";var o=e.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+t(e,r,n,i):""+a(o.block);function a(t){return n?n(t,r):t.once?Fa(t,r):Da(t,r)}}(t.ifConditions.slice(),e,r,n)}function Na(t,e,r,n){var i=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(n||"_l")+"(("+i+"),function("+o+a+s+"){return "+(r||Da)(t,e)+"})"}function Va(t,e){var r="{",n=function(t,e){var r=t.directives;if(!r)return;var n,i,o,a,s="directives:[",u=!1;for(n=0,i=r.length;n<i;n++){o=r[n],a=!0;var c=e.directives[o.name];c&&(a=!!c(t,o,e.warn)),a&&(u=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(u)return s.slice(0,-1)+"]"}(t,e);n&&(r+=n+","),t.key&&(r+="key:"+t.key+","),t.ref&&(r+="ref:"+t.ref+","),t.refInFor&&(r+="refInFor:true,"),t.pre&&(r+="pre:true,"),t.component&&(r+='tag:"'+t.tag+'",');for(var i=0;i<e.dataGenFns.length;i++)r+=e.dataGenFns[i](t);if(t.attrs&&(r+="attrs:"+Wa(t.attrs)+","),t.props&&(r+="domProps:"+Wa(t.props)+","),t.events&&(r+=Ea(t.events,!1)+","),t.nativeEvents&&(r+=Ea(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(r+="slot:"+t.slotTarget+","),t.scopedSlots&&(r+=function(t,e,r){var n=t.for||Object.keys(e).some((function(t){var r=e[t];return r.slotTargetDynamic||r.if||r.for||Ba(r)})),i=!!t.if;if(!n)for(var o=t.parent;o;){if(o.slotScope&&"_empty_"!==o.slotScope||o.for){n=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(e).map((function(t){return Ha(e[t],r)})).join(",");return"scopedSlots:_u(["+a+"]"+(n?",null,true":"")+(!n&&i?",null,false,"+function(t){var e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e>>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(r+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var r=t.children[0];0;if(r&&1===r.type){var n=qa(r,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(r+=o+",")}return r=r.replace(/,$/,"")+"}",t.dynamicAttrs&&(r="_b("+r+',"'+t.tag+'",'+Wa(t.dynamicAttrs)+")"),t.wrapData&&(r=t.wrapData(r)),t.wrapListeners&&(r=t.wrapListeners(r)),r}function Ba(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ba))}function Ha(t,e){var r=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!r)return La(t,e,Ha,"null");if(t.for&&!t.forProcessed)return Na(t,e,Ha);var n="_empty_"===t.slotScope?"":String(t.slotScope),i="function("+n+"){return "+("template"===t.tag?t.if&&r?"("+t.if+")?"+(Ua(t,e)||"undefined")+":undefined":Ua(t,e)||"undefined":Da(t,e))+"}",o=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ua(t,e,r,n,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=r?e.maybeComponent(a)?",1":",0":"";return""+(n||Da)(a,e)+s}var u=r?function(t,e){for(var r=0,n=0;n<t.length;n++){var i=t[n];if(1===i.type){if(za(i)||i.ifConditions&&i.ifConditions.some((function(t){return za(t.block)}))){r=2;break}(e(i)||i.ifConditions&&i.ifConditions.some((function(t){return e(t.block)})))&&(r=1)}}return r}(o,e.maybeComponent):0,c=i||Ka;return"["+o.map((function(t){return c(t,e)})).join(",")+"]"+(u?","+u:"")}}function za(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Ka(t,e){return 1===t.type?Da(t,e):3===t.type&&t.isComment?function(t){return"_e("+JSON.stringify(t.text)+")"}(t):function(t){return"_v("+(2===t.type?t.expression:Ja(JSON.stringify(t.text)))+")"}(t)}function Wa(t){for(var e="",r="",n=0;n<t.length;n++){var i=t[n],o=Ja(i.value);i.dynamic?r+=i.name+","+o+",":e+='"'+i.name+'":'+o+","}return e="{"+e.slice(0,-1)+"}",r?"_d("+e+",["+r.slice(0,-1)+"])":e}function Ja(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Ga(t,e){try{return new Function(t)}catch(r){return e.push({err:r,code:t}),Q}}function Ya(t){var e=Object.create(null);return function(r,n,i){(n=R({},n)).warn;delete n.warn;var o=n.delimiters?String(n.delimiters)+r:r;if(e[o])return e[o];var a=t(r,n);var s={},u=[];return s.render=Ga(a.render,u),s.staticRenderFns=a.staticRenderFns.map((function(t){return Ga(t,u)})),e[o]=s}}var Za,Xa,ts=(Za=function(t,e){var r=ua(t.trim(),e);!1!==e.optimize&&ka(r,e);var n=qa(r,e);return{ast:r,render:n.render,staticRenderFns:n.staticRenderFns}},function(t){function e(e,r){var n=Object.create(t),i=[],o=[];if(r)for(var a in r.modules&&(n.modules=(t.modules||[]).concat(r.modules)),r.directives&&(n.directives=R(Object.create(t.directives||null),r.directives)),r)"modules"!==a&&"directives"!==a&&(n[a]=r[a]);n.warn=function(t,e,r){(r?o:i).push(t)};var s=Za(e.trim(),n);return s.errors=i,s.tips=o,s}return{compile:e,compileToFunctions:Ya(e)}})(_a),es=(ts.compile,ts.compileToFunctions);function rs(t){return(Xa=Xa||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',Xa.innerHTML.indexOf("&#10;")>0}var ns=!!K&&rs(!1),is=!!K&&rs(!0),os=w((function(t){var e=tn(t);return e&&e.innerHTML})),as=jr.prototype.$mount;jr.prototype.$mount=function(t,e){if((t=t&&tn(t))===document.body||t===document.documentElement)return this;var r=this.$options;if(!r.render){var n=r.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=os(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){0;var i=es(n,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:is,delimiters:r.delimiters,comments:r.comments},this),o=i.render,a=i.staticRenderFns;r.render=o,r.staticRenderFns=a}}return as.call(this,t,e)},jr.compile=es,e.default=jr}.call(this,r(12),r(90).setImmediate)},,,,,,,,,,,,,,,,,,,,,,,function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},,function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(237)("wks"),i=r(182),o=r(58).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),r.d(e,"ApolloLink",(function(){return g})),r.d(e,"concat",(function(){return b})),r.d(e,"createOperation",(function(){return p})),r.d(e,"empty",(function(){return v})),r.d(e,"execute",(function(){return O})),r.d(e,"from",(function(){return y})),r.d(e,"fromError",(function(){return f})),r.d(e,"fromPromise",(function(){return l})),r.d(e,"makePromise",(function(){return c})),r.d(e,"split",(function(){return m})),r.d(e,"toPromise",(function(){return u}));var n=r(20);r.d(e,"Observable",(function(){return n.a}));var i=r(3),o=r(0),a=r(1);r.d(e,"getOperationName",(function(){return a.n}));!function(t){function e(e,r){var n=t.call(this,e)||this;return n.link=r,n}Object(o.c)(e,t)}(Error);function s(t){return t.request.length<=1}function u(t){var e=!1;return new Promise((function(r,n){t.subscribe({next:function(t){e||(e=!0,r(t))},error:n})}))}var c=u;function l(t){return new n.a((function(e){t.then((function(t){e.next(t),e.complete()})).catch(e.error.bind(e))}))}function f(t){return new n.a((function(e){e.error(t)}))}function p(t,e){var r=Object(o.a)({},t);return Object.defineProperty(e,"setContext",{enumerable:!1,value:function(t){r="function"==typeof t?Object(o.a)({},r,t(r)):Object(o.a)({},r,t)}}),Object.defineProperty(e,"getContext",{enumerable:!1,value:function(){return Object(o.a)({},r)}}),Object.defineProperty(e,"toKey",{enumerable:!1,value:function(){return function(t){var e=t.query,r=t.variables,n=t.operationName;return JSON.stringify([n,e,r])}(e)}}),e}function d(t,e){return e?e(t):n.a.of()}function h(t){return"function"==typeof t?new g(t):t}function v(){return new g((function(){return n.a.of()}))}function y(t){return 0===t.length?v():t.map(h).reduce((function(t,e){return t.concat(e)}))}function m(t,e,r){var i=h(e),o=h(r||new g(d));return s(i)&&s(o)?new g((function(e){return t(e)?i.request(e)||n.a.of():o.request(e)||n.a.of()})):new g((function(e,r){return t(e)?i.request(e,r)||n.a.of():o.request(e,r)||n.a.of()}))}var b=function(t,e){var r=h(t);if(s(r))return r;var i=h(e);return s(i)?new g((function(t){return r.request(t,(function(t){return i.request(t)||n.a.of()}))||n.a.of()})):new g((function(t,e){return r.request(t,(function(t){return i.request(t,e)||n.a.of()}))||n.a.of()}))},g=function(){function t(t){t&&(this.request=t)}return t.prototype.split=function(e,r,n){return this.concat(m(e,r,n||new t(d)))},t.prototype.concat=function(t){return b(this,t)},t.prototype.request=function(t,e){throw new i.a(1)},t.empty=v,t.from=y,t.split=m,t.execute=O,t}();function O(t,e){return t.request(p(e.context,function(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName="string"!=typeof e.query?Object(a.n)(e.query):""),e}(function(t){for(var e=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];if(e.indexOf(o)<0)throw new i.a(2)}return t}(e))))||n.a.of()}},function(t,e,r){var n=r(89);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},,function(t,e,r){r(383),r(240),r(232),r(384),r(395),r(396),t.exports=r(60).Promise},,,,,,function(t,e,r){r(232),r(240),t.exports=r(327)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"ApolloMutation",(function(){return tt})),r.d(e,"ApolloProvider",(function(){return Y})),r.d(e,"ApolloQuery",(function(){return Z})),r.d(e,"ApolloSubscribeToMore",(function(){return X})),r.d(e,"install",(function(){return G}));var n=r(23);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})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?h(t):e}function y(t){var e=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}}();return function(){var r,n=p(t);if(e){var i=p(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function m(t,e,r){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||O(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||O(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){if(t){if("string"==typeof t)return _(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function w(t,e){return t(e={exports:{}},e.exports),e.exports}var k,S=w((function(t,e){!function(t){function e(t,e,r,n){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function u(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];var f=this,p=Date.now()-a;function d(){a=Date.now(),r.apply(f,c)}function h(){i=void 0}o||(n&&!i&&d(),s(),void 0===n&&p>t?d():!0!==e&&(i=setTimeout(n?h:d,void 0===n?t-p:t)))}return"boolean"!=typeof e&&(n=r,r=e,e=void 0),u.cancel=function(){s(),o=!0},u}t.debounce=function(t,r,n){return void 0===n?e(t,r,!1):e(t,n,!1!==r)},t.throttle=e,Object.defineProperty(t,"__esModule",{value:!0})}(e)}));(k=S)&&k.__esModule&&Object.prototype.hasOwnProperty.call(k,"default")&&k.default;var j=w((function(t,e){var r=e.Globals={};function n(t){return function(e,r){return t(r,e)}}e.throttle=n(S.throttle),e.debounce=n(S.debounce),e.getMergedDefinition=function(t){return r.Vue.util.mergeOptions({},t)},e.reapply=function(t,e){for(;"function"==typeof t;)t=t.call(e);return t},e.omit=function(t,e){return Object.entries(t).filter((function(t){var r=b(t,1)[0];return!e.includes(r)})).reduce((function(t,e){var r=b(e,2),n=r[0],i=r[1];return t[n]=i,t}),{})},e.addGqlError=function(t){t.graphQLErrors&&t.graphQLErrors.length&&(t.gqlError=t.graphQLErrors[0])},e.noop=function(){}})),x=j.Globals,$=j.throttle,C=j.debounce,A=(j.getMergedDefinition,j.reapply),R=j.omit,E=j.addGqlError,Q=(j.noop,function(){function t(e,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];o(this,t),u(this,"type",null),u(this,"vueApolloSpecialKeys",[]),this.vm=e,this.key=r,this.initialOptions=n,this.options=Object.assign({},n),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null,i&&this.autostart()}return s(t,[{key:"autostart",value:function(){var t=this;"function"==typeof this.options.skip?this._skipWatcher=this.vm.$watch((function(){return t.options.skip.call(t.vm,t.vm,t.key)}),this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):this.options.skip?this._skip=!0:this.start(),"function"==typeof this.options.pollInterval&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(t,e){t!==e&&(this.pollInterval=t,null==t?this.stopPolling():this.startPolling(t))}},{key:"skipChanged",value:function(t,e){t!==e&&(this.skip=t)}},{key:"pollInterval",get:function(){return this._pollInterval},set:function(t){this._pollInterval=t}},{key:"skip",get:function(){return this._skip},set:function(t){t?this.stop():this.start(),this._skip=t}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var t=this;this.starting=!0;for(var e=function(e,r){var n=r[e];if("function"==typeof t.initialOptions[n]){var i=t.initialOptions[n].bind(t.vm);t.options[n]=i();var o=function(e){t.options[n]=e,t.refresh()};t.vm.$isServer||(o=t.options.throttle?$(o,t.options.throttle):o,o=t.options.debounce?C(o,t.options.debounce):o),t._watchers.push(t.vm.$watch(i,o,{deep:t.options.deep}))}},r=0,n=["query","document","context"];r<n.length;r++)e(r,n);if("function"==typeof this.options.variables){var i=this.executeApollo.bind(this);this.vm.$isServer||(i=this.options.throttle?$(i,this.options.throttle):i,i=this.options.debounce?C(i,this.options.debounce):i),this._watchers.push(this.vm.$watch((function(){return"function"==typeof t.options.variables?t.options.variables.call(t.vm):t.options.variables}),i,{immediate:!0,deep:this.options.deep}))}else this.executeApollo(this.options.variables)}},{key:"stop",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){(0,e[t])()}this.sub&&(this.sub.unsubscribe(),this.sub=null)}},{key:"generateApolloOptions",value:function(t){var e=R(this.options,this.vueApolloSpecialKeys);return e.variables=t,this.lastApolloOptions=e,e}},{key:"executeApollo",value:function(t){this.starting=!1}},{key:"nextResult",value:function(t){var e=t.error;e&&E(e)}},{key:"callHandlers",value:function(t){for(var e=!1,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var o=0;o<t.length;o++){var a=t[o];if(a){e=!0;var s=a.apply(this.vm,n);if(void 0!==s&&!s)break}}return e}},{key:"errorHandler",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.callHandlers.apply(this,[[this.options.error,this.vm.$apollo.error,this.vm.$apollo.provider.errorHandler]].concat(e))}},{key:"catchError",value:function(t){if(E(t),!this.errorHandler(t,this.vm,this.key,this.type,this.lastApolloOptions))if(t.graphQLErrors&&0!==t.graphQLErrors.length){console.error("GraphQL execution errors for ".concat(this.type," '").concat(this.key,"'"));for(var e=0,r=t.graphQLErrors;e<r.length;e++){var n=r[e];console.error(n)}}else if(t.networkError)console.error("Error sending the ".concat(this.type," '").concat(this.key,"'"),t.networkError);else{var i;if(console.error("[vue-apollo] An error has occurred for ".concat(this.type," '").concat(this.key,"'")),Array.isArray(t))(i=console).error.apply(i,g(t));else console.error(t)}}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.stop(),this._skipWatcher&&this._skipWatcher())}}]),t}()),P=["variables","watch","update","result","error","loadingKey","watchLoading","skip","throttle","debounce","subscribeToMore","prefetch","manual"],M=function(t){f(r,t);var e=y(r);function r(t,n,i){var a,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return o(this,r),t.$data.$apolloData&&!t.$data.$apolloData.queries[n]&&t.$set(t.$data.$apolloData.queries,n,{loading:!1}),u(h(a=e.call(this,t,n,i,!1)),"type","query"),u(h(a),"vueApolloSpecialKeys",P),u(h(a),"_loading",!1),u(h(a),"_linkedSubscriptions",[]),t.$isServer&&(a.firstRun=new Promise((function(t,e){a._firstRunResolve=t,a._firstRunReject=e}))),a.vm.$isServer&&(a.options.fetchPolicy="network-only"),i.manual||(a.hasDataField=Object.prototype.hasOwnProperty.call(a.vm.$data,n),a.hasDataField?Object.defineProperty(a.vm.$data.$apolloData.data,n,{get:function(){return a.vm.$data[n]},enumerable:!0,configurable:!0}):Object.defineProperty(a.vm.$data,n,{get:function(){return a.vm.$data.$apolloData.data[n]},enumerable:!0,configurable:!0})),s&&a.autostart(),a}return s(r,[{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(t){this._loading!==t&&(this._loading=t,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=t,this.vm.$data.$apolloData.loading+=t?1:-1))}},{key:"stop",value:function(){m(p(r.prototype),"stop",this).call(this),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"generateApolloOptions",value:function(t){var e=m(p(r.prototype),"generateApolloOptions",this).call(this,t);return this.vm.$isServer&&delete e.pollInterval,e}},{key:"executeApollo",value:function(t){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe();for(var n=0,i=this._linkedSubscriptions;n<i.length;n++){i[n].stop()}}if(this.previousVariablesJson=e,this.observer=this.vm.$apollo.watchQuery(this.generateApolloOptions(t)),this.startQuerySubscription(),"no-cache"!==this.options.fetchPolicy||this.options.notifyOnNetworkStatusChange){var o=this.retrieveCurrentResult();(this.options.notifyOnNetworkStatusChange||this.observer.getCurrentResult&&!o.loading)&&this.nextResult(o)}m(p(r.prototype),"executeApollo",this).call(this,t);for(var a=0,s=this._linkedSubscriptions;a<s.length;a++){s[a].start()}}},{key:"startQuerySubscription",value:function(){this.sub&&!this.sub.closed||(this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)}))}},{key:"retrieveCurrentResult",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult();return(t||e.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),e}},{key:"nextResult",value:function(t){m(p(r.prototype),"nextResult",this).call(this,t);var e=t.data,n=t.loading,i=t.error,o=t.errors,a=o&&o.length;if((i||a)&&this.firstRunReject(i),n||this.loadingDone(),a){var s=new Error("GraphQL error: ".concat(o.map((function(t){return t.message})).join(" | ")));Object.assign(s,{graphQLErrors:o,networkError:null}),m(p(r.prototype),"catchError",this).call(this,s)}if("none"!==this.observer.options.errorPolicy||!i&&!a){var u="function"==typeof this.options.result;null==e||(this.options.manual?u||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):"function"==typeof this.options.update?this.setData(this.options.update.call(this.vm,e)):void 0===e[this.key]&&Object.keys(e).length?console.error("Missing ".concat(this.key," attribute on result"),e):this.setData(e[this.key])),u&&this.options.result.call(this.vm,t,this.key)}}},{key:"setData",value:function(t){this.vm.$set(this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data,this.key,t)}},{key:"catchError",value:function(t){m(p(r.prototype),"catchError",this).call(this,t),this.firstRunReject(t),this.loadingDone(t),this.nextResult(this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var t=this.observer.getLastError(),e=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:t,lastResult:e})}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}},{key:"watchLoading",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.callHandlers.apply(this,[[this.options.watchLoading,this.vm.$apollo.watchLoading,this.vm.$apollo.provider.watchLoading]].concat(e,[this]))}},{key:"applyLoadingModifier",value:function(t){var e=this.loadingKey;e&&"number"==typeof this.vm[e]&&(this.vm[e]+=t),this.watchLoading(1===t,t)}},{key:"loadingDone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,t||this.firstRunResolve()}},{key:"fetchMore",value:function(){var t,e=this;if(this.observer)return this.retrieveCurrentResult(!0),(t=this.observer).fetchMore.apply(t,arguments).then((function(t){return t.loading||e.loadingDone(),t}))}},{key:"subscribeToMore",value:function(){var t;if(this.observer)return{unsubscribe:(t=this.observer).subscribeToMore.apply(t,arguments)}}},{key:"refetch",value:function(t){var e=this;if(t&&(this.options.variables=t),this.observer){var r=this.observer.refetch(t).then((function(t){return t.loading||e.loadingDone(),t}));return this.retrieveCurrentResult(),r}}},{key:"setVariables",value:function(t,e){if(this.options.variables=t,this.observer){var r=this.observer.setVariables(t,e);return this.retrieveCurrentResult(),r}}},{key:"setOptions",value:function(t){if(Object.assign(this.options,t),this.observer){var e=this.observer.setOptions(t);return this.retrieveCurrentResult(),e}}},{key:"startPolling",value:function(){var t;if(this.observer)return(t=this.observer).startPolling.apply(t,arguments)}},{key:"stopPolling",value:function(){var t;if(this.observer)return(t=this.observer).stopPolling.apply(t,arguments)}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(t){this._firstRunReject&&(this._firstRunReject(t),this._firstRunReject=null)}},{key:"destroy",value:function(){m(p(r.prototype),"destroy",this).call(this),this.loading&&this.watchLoading(!1,-1),this.loading=!1}}]),r}(Q),I=function(t){f(r,t);var e=y(r);function r(){var t;o(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return u(h(t=e.call.apply(e,[this].concat(i))),"type","subscription"),u(h(t),"vueApolloSpecialKeys",["variables","result","error","throttle","debounce","linkedQuery"]),t}return s(r,[{key:"executeApollo",value:function(t){var e=JSON.stringify(t);if(this.sub){if(e===this.previousVariablesJson)return;this.sub.unsubscribe()}this.previousVariablesJson=e;var n=this.generateApolloOptions(t);if("function"==typeof n.updateQuery&&(n.updateQuery=n.updateQuery.bind(this.vm)),this.options.linkedQuery){if("function"==typeof this.options.result){var i=this.options.result.bind(this.vm),o=n.updateQuery&&n.updateQuery.bind(this.vm);n.updateQuery=function(){return i.apply(void 0,arguments),o&&o.apply(void 0,arguments)}}this.sub=this.options.linkedQuery.subscribeToMore(n)}else this.observer=this.vm.$apollo.subscribe(n),this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)});m(p(r.prototype),"executeApollo",this).call(this,t)}},{key:"nextResult",value:function(t){m(p(r.prototype),"nextResult",this).call(this,t),"function"==typeof this.options.result&&this.options.result.call(this.vm,t,this.key)}}]),r}(Q),q=function(){function t(e){o(this,t),this._apolloSubscriptions=[],this._watchers=[],this.vm=e,this.queries={},this.subscriptions={},this.client=void 0,this.loadingKey=void 0,this.error=void 0}return s(t,[{key:"provider",get:function(){return this.vm.$apolloProvider}},{key:"getClient",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t||!t.client){if("object"===i(this.client))return this.client;if(this.client){if(this.provider.clients){var e=this.provider.clients[this.client];if(!e)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return e}throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'")}return this.provider.defaultClient}var r=this.provider.clients[t.client];if(!r)throw new Error("[vue-apollo] Missing client '".concat(t.client,"' in 'apolloProvider'"));return r}},{key:"query",value:function(t){return this.getClient(t).query(t)}},{key:"watchQuery",value:function(t){var e=this,r=this.getClient(t).watchQuery(t),n=r.subscribe.bind(r);return r.subscribe=function(t){var r=n(t);return e._apolloSubscriptions.push(r),r},r}},{key:"mutate",value:function(t){return this.getClient(t).mutate(t)}},{key:"subscribe",value:function(t){var e=this;if(!this.vm.$isServer){var r=this.getClient(t).subscribe(t),n=r.subscribe.bind(r);return r.subscribe=function(t){var r=n(t);return e._apolloSubscriptions.push(r),r},r}}},{key:"loading",get:function(){return 0!==this.vm.$data.$apolloData.loading}},{key:"data",get:function(){return this.vm.$data.$apolloData.data}},{key:"addSmartQuery",value:function(t,e){var r=this,n=A(e,this.vm);n.query||(n={query:n});var i,o=this.vm.$options.apollo,a=this.provider.defaultOptions;if(a&&a.$query&&(i=a.$query),o&&o.$query&&(i=l(l({},i||{}),o.$query)),i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);var u=this.queries[t]=new M(this.vm,t,n,!1);if(this.vm.$isServer&&!1===n.prefetch||u.autostart(),!this.vm.$isServer){var c=n.subscribeToMore;c&&(Array.isArray(c)?c.forEach((function(e,n){r.addSmartSubscription("".concat(t).concat(n),l(l({},e),{},{linkedQuery:u}))})):this.addSmartSubscription(t,l(l({},c),{},{linkedQuery:u})))}return u}},{key:"addSmartSubscription",value:function(t,e){if(!this.vm.$isServer){e=A(e,this.vm);var r=this.subscriptions[t]=new I(this.vm,t,e,!1);return r.autostart(),e.linkedQuery&&e.linkedQuery._linkedSubscriptions.push(r),r}}},{key:"defineReactiveSetter",value:function(t,e,r){var n=this;this._watchers.push(this.vm.$watch(e,(function(e){n[t]=e}),{immediate:!0,deep:r}))}},{key:"skipAllQueries",set:function(t){for(var e in this.queries)this.queries[e].skip=t}},{key:"skipAllSubscriptions",set:function(t){for(var e in this.subscriptions)this.subscriptions[e].skip=t}},{key:"skipAll",set:function(t){this.skipAllQueries=t,this.skipAllSubscriptions=t}},{key:"destroy",value:function(){for(var t=0,e=this._watchers;t<e.length;t++){(0,e[t])()}for(var r in this.queries)this.queries[r].destroy();for(var n in this.subscriptions)this.subscriptions[n].destroy();this._apolloSubscriptions.forEach((function(t){t.unsubscribe()}))}}]),t}(),D=function(){function t(e){if(o(this,t),!e)throw new Error("Options argument required");this.clients=e.clients||{},e.defaultClient&&(this.clients.defaultClient=this.defaultClient=e.defaultClient),this.defaultOptions=e.defaultOptions,this.watchLoading=e.watchLoading,this.errorHandler=e.errorHandler,this.prefetch=e.prefetch}return s(t,[{key:"provide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$apolloProvider";return console.warn("<ApolloProvider>.provide() is deprecated. Use the 'apolloProvider' option instead with the provider object directly."),u({},t,this)}}]),t}();var T={name:"ApolloQuery",provide:function(){return{getDollarApollo:this.getDollarApollo,getApolloQuery:this.getApolloQuery}},props:{query:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},fetchPolicy:{type:String,default:void 0},pollInterval:{type:Number,default:void 0},notifyOnNetworkStatusChange:{type:Boolean,default:void 0},context:{type:Object,default:void 0},update:{type:Function,default:function(t){return t}},skip:{type:Boolean,default:!1},debounce:{type:Number,default:0},throttle:{type:Number,default:0},clientId:{type:String,default:void 0},deep:{type:Boolean,default:void 0},tag:{type:String,default:"div"},prefetch:{type:Boolean,default:!0},options:{type:Object,default:function(){return{}}}},data:function(){return{result:{data:null,loading:!1,networkStatus:7,error:null},times:0}},watch:{fetchPolicy:function(t){this.$apollo.queries.query.setOptions({fetchPolicy:t})},pollInterval:function(t){this.$apollo.queries.query.setOptions({pollInterval:t})},notifyOnNetworkStatusChange:function(t){this.$apollo.queries.query.setOptions({notifyOnNetworkStatusChange:t})},"$data.$apolloData.loading":function(t){this.$emit("loading",!!t)}},apollo:{$client:function(){return this.clientId},query:function(){return l(l({query:function(){return"function"==typeof this.query?this.query(n.default):this.query},variables:function(){return this.variables},fetchPolicy:this.fetchPolicy,pollInterval:this.pollInterval,debounce:this.debounce,throttle:this.throttle,notifyOnNetworkStatusChange:this.notifyOnNetworkStatusChange,context:function(){return this.context},skip:function(){return this.skip},deep:this.deep,prefetch:this.prefetch},this.options),{},{manual:!0,result:function(t){var e=t,r=e.errors,n=e.loading,i=e.networkStatus,o=t.error;t=Object.assign({},t),r&&r.length&&((o=new Error("Apollo errors occurred (".concat(r.length,")"))).graphQLErrors=r);var a={};n?Object.assign(a,this.$_previousData,t.data):o?Object.assign(a,this.$apollo.queries.query.observer.getLastResult()||{},t.data):(a=t.data,this.$_previousData=t.data);var s=function(t){return t&&Object.keys(t).length>0}(a);this.result={data:s?this.update(a):void 0,fullData:s?a:void 0,loading:n,error:o,networkStatus:i},this.times=++this.$_times,this.$emit("result",this.result)},error:function(t){this.result.loading=!1,this.result.error=t,this.$emit("error",t)}})}},created:function(){this.$_times=0},methods:{getDollarApollo:function(){return this.$apollo},getApolloQuery:function(){return this.$apollo.queries.query}},render:function(t){var e=this.$scopedSlots.default({result:this.result,times:this.times,query:this.$apollo.queries.query,isLoading:this.$apolloData.loading,gqlError:this.result&&this.result.error&&this.result.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots.default):[e].concat(this.$slots.default),this.tag?t(this.tag,e):e[0]}},F=0,L={name:"ApolloSubscribeToMore",inject:["getDollarApollo","getApolloQuery"],props:{document:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},updateQuery:{type:Function,default:void 0}},watch:{document:"refresh",variables:"refresh"},created:function(){this.$_key="sub_component_".concat(F++)},mounted:function(){this.refresh()},beforeDestroy:function(){this.destroy()},methods:{destroy:function(){this.$_sub&&this.$_sub.destroy()},refresh:function(){this.destroy();var t=this.document;"function"==typeof t&&(t=t(n.default)),this.$_sub=this.getDollarApollo().addSmartSubscription(this.$_key,{document:t,variables:this.variables,updateQuery:this.updateQuery,linkedQuery:this.getApolloQuery()})}},render:function(t){return null}},N={props:{mutation:{type:[Function,Object],required:!0},variables:{type:Object,default:void 0},optimisticResponse:{type:Object,default:void 0},update:{type:Function,default:void 0},refetchQueries:{type:Function,default:void 0},clientId:{type:String,default:void 0},tag:{type:String,default:"div"},context:{type:Object,default:void 0}},data:function(){return{loading:!1,error:null}},watch:{loading:function(t){this.$emit("loading",t)}},methods:{mutate:function(t){var e=this;this.loading=!0,this.error=null;var r=this.mutation;return"function"==typeof r&&(r=r(n.default)),this.$apollo.mutate(l({mutation:r,client:this.clientId,variables:this.variables,optimisticResponse:this.optimisticResponse,update:this.update,refetchQueries:this.refetchQueries,context:this.context},t)).then((function(t){e.$emit("done",t),e.loading=!1})).catch((function(t){E(t),e.error=t,e.$emit("error",t),e.loading=!1}))}},render:function(t){var e=this.$scopedSlots.default({mutate:this.mutate,loading:this.loading,error:this.error,gqlError:this.error&&this.error.gqlError});return e=Array.isArray(e)?e.concat(this.$slots.default):[e].concat(this.$slots.default),this.tag?t(this.tag,e):e[0]}};function V(t,e){return void 0!==t&&Object.prototype.hasOwnProperty.call(t,e)}function B(){var t=this.$options,e=t.apolloProvider;if(e)this.$apolloProvider="function"==typeof e?e():e;else if(t.parent&&t.parent.$apolloProvider)this.$apolloProvider=t.parent.$apolloProvider;else if(t.provide){var r="function"==typeof t.provide?t.provide.call(this):t.provide;r&&r.$apolloProvider&&(this.$apolloProvider=r.$apolloProvider)}}function H(){var t=this;this.$_apolloInitData={};var e=this.$options.apollo;if(e){var r=function(r){"$"!==r.charAt(0)&&(e[r].manual||V(t.$options.props,r)||V(t.$options.computed,r)||V(t.$options.methods,r)||Object.defineProperty(t,r,{get:function(){return t.$data.$apolloData.data[r]},set:function(e){return t.$_apolloInitData[r]=e},enumerable:!0,configurable:!0}))};for(var n in e)r(n)}}function U(){var t=this,e=this.$apolloProvider;if(!this._apolloLaunched&&e){this._apolloLaunched=!0;var r=this.$options.apollo;if(r){for(var n in this.$_apolloPromises=[],r.$init||(r.$init=!0,e.defaultOptions&&(r=this.$options.apollo=Object.assign({},e.defaultOptions,r))),z(this.$apollo,"skipAll",r.$skipAll,r.$deep),z(this.$apollo,"skipAllQueries",r.$skipAllQueries,r.$deep),z(this.$apollo,"skipAllSubscriptions",r.$skipAllSubscriptions,r.$deep),z(this.$apollo,"client",r.$client,r.$deep),z(this.$apollo,"loadingKey",r.$loadingKey,r.$deep),z(this.$apollo,"error",r.$error,r.$deep),z(this.$apollo,"watchLoading",r.$watchLoading,r.$deep),Object.defineProperty(this,"$apolloData",{get:function(){return t.$data.$apolloData},enumerable:!0,configurable:!0}),r)if("$"!==n.charAt(0)){var i=r[n],o=this.$apollo.addSmartQuery(n,i);this.$isServer&&(i=A(i,this),!1===e.prefetch||!1===i.prefetch||!1===r.$prefetch||o.skip||this.$_apolloPromises.push(o.firstRun))}if(r.subscribe&&x.Vue.util.warn("vue-apollo -> `subscribe` option is deprecated. Use the `$subscribe` option instead."),r.$subscribe)for(var a in r.$subscribe)this.$apollo.addSmartSubscription(a,r.$subscribe[a])}}}function z(t,e,r,n){void 0!==r&&("function"==typeof r?t.defineReactiveSetter(e,r,n):t[e]=r)}function K(){this.$_apollo&&this.$_apollo.destroy()}function W(t,e){t.mixin(l(l(l({},"1"===e?{init:B}:{}),"2"===e?{data:function(){return{$apolloData:{queries:{},loading:0,data:this.$_apolloInitData}}},beforeCreate:function(){B.call(this),H.call(this)},serverPrefetch:function(){var t=this;if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises).then((function(){K.call(t)})).catch((function(e){return K.call(t),Promise.reject(e)}))}}:{}),{},{created:U,destroyed:K}))}var J=["$subscribe"];function G(t,e){if(!G.installed){G.installed=!0,x.Vue=t;var r=t.version.substr(0,t.version.indexOf(".")),n=t.config.optionMergeStrategies.methods;t.config.optionMergeStrategies.apollo=function(t,e,r){if(!t)return e;if(!e)return t;for(var i=Object.assign({},R(t,J),t.data),o=Object.assign({},R(e,J),e.data),a={},s=0;s<J.length;s++){var u=J[s];a[u]=n(t[u],e[u])}return Object.assign(a,n(i,o))},Object.prototype.hasOwnProperty.call(t,"$apollo")||Object.defineProperty(t.prototype,"$apollo",{get:function(){return this.$_apollo||(this.$_apollo=new q(this)),this.$_apollo}}),W(t,r),"2"===r&&(t.component("ApolloQuery",T),t.component("ApolloQuery",T),t.component("ApolloSubscribeToMore",L),t.component("ApolloSubscribeToMore",L),t.component("ApolloMutation",N),t.component("ApolloMutation",N))}}D.install=G,D.version="3.0.8";var Y=D,Z=T,X=L,tt=N,et=null;"undefined"!=typeof window?et=window.Vue:void 0!==t&&(et=t.Vue),et&&et.use(D),e.default=D}.call(this,r(12))},function(t,e,r){"use strict";r.r(e),r.d(e,"ApolloClient",(function(){return A})),r.d(e,"ApolloError",(function(){return m})),r.d(e,"FetchType",(function(){return y})),r.d(e,"NetworkStatus",(function(){return n})),r.d(e,"ObservableQuery",(function(){return b})),r.d(e,"isApolloError",(function(){return v}));var n,i=r(0),o=r(1),a=r(29),s=r(20),u=r(79),c=r(85),l=r(3),f=r(28);function p(t){return t<7}!function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"}(n||(n={}));var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype[c.a]=function(){return this},e.prototype["@@observable"]=function(){return this},e}(s.a);function h(t){return Array.isArray(t)&&t.length>0}function v(t){return t.hasOwnProperty("graphQLErrors")}var y,m=function(t){function e(r){var n,i,o=r.graphQLErrors,a=r.networkError,s=r.errorMessage,u=r.extraInfo,c=t.call(this,s)||this;return c.graphQLErrors=o||[],c.networkError=a||null,c.message=s||(i="",h((n=c).graphQLErrors)&&n.graphQLErrors.forEach((function(t){var e=t?t.message:"Error message not found.";i+="GraphQL error: "+e+"\n"})),n.networkError&&(i+="Network error: "+n.networkError.message+"\n"),i=i.replace(/\n$/,"")),c.extraInfo=u,c.__proto__=e.prototype,c}return Object(i.c)(e,t),e}(Error);!function(t){t[t.normal=1]="normal",t[t.refetch=2]="refetch",t[t.poll=3]="poll"}(y||(y={}));var b=function(t){function e(e){var r=e.queryManager,n=e.options,i=e.shouldSubscribe,a=void 0===i||i,s=t.call(this,(function(t){return s.onSubscribe(t)}))||this;s.observers=new Set,s.subscriptions=new Set,s.isTornDown=!1,s.options=n,s.variables=n.variables||{},s.queryId=r.generateQueryId(),s.shouldSubscribe=a;var u=Object(o.m)(n.query);return s.queryName=u&&u.name&&u.name.value,s.queryManager=r,s}return Object(i.c)(e,t),e.prototype.result=function(){var t=this;return new Promise((function(e,r){var n={next:function(r){e(r),t.observers.delete(n),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=t.subscribe(n)}))},e.prototype.currentResult=function(){var t=this.getCurrentResult();return void 0===t.data&&(t.data={}),t},e.prototype.getCurrentResult=function(){if(this.isTornDown){var t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:n.error}}var e,r,o,a=this.queryManager.getCurrentQueryResult(this),s=a.data,u=a.partial,c=this.queryManager.queryStore.get(this.queryId),l=this.options.fetchPolicy,f="network-only"===l||"no-cache"===l;if(c){var d=c.networkStatus;if(r=c,void 0===(o=this.options.errorPolicy)&&(o="none"),r&&(r.networkError||"none"===o&&h(r.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:d,error:new m({graphQLErrors:c.graphQLErrors,networkError:c.networkError})};c.variables&&(this.options.variables=Object(i.a)(Object(i.a)({},this.options.variables),c.variables),this.variables=this.options.variables),e={data:s,loading:p(d),networkStatus:d},c.graphQLErrors&&"all"===this.options.errorPolicy&&(e.errors=c.graphQLErrors)}else{var v=f||u&&"cache-only"!==l;e={data:s,loading:v,networkStatus:v?n.loading:n.ready}}return u||this.updateLastResult(Object(i.a)(Object(i.a)({},e),{stale:!1})),Object(i.a)(Object(i.a)({},e),{partial:u})},e.prototype.isDifferentFromLastResult=function(t){var e=this.lastResultSnapshot;return!(e&&t&&e.networkStatus===t.networkStatus&&e.stale===t.stale&&Object(a.a)(e.data,t.data))},e.prototype.getLastResult=function(){return this.lastResult},e.prototype.getLastError=function(){return this.lastError},e.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){var t=this.queryManager.queryStore.get(this.queryId);t&&(t.networkError=null,t.graphQLErrors=[])},e.prototype.refetch=function(t){var e=this.options.fetchPolicy;return"cache-only"===e?Promise.reject(new l.a(1)):("no-cache"!==e&&"cache-and-network"!==e&&(e="network-only"),Object(a.a)(this.variables,t)||(this.variables=Object(i.a)(Object(i.a)({},this.variables),t)),Object(a.a)(this.options.variables,this.variables)||(this.options.variables=Object(i.a)(Object(i.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(i.a)(Object(i.a)({},this.options),{fetchPolicy:e}),y.refetch))},e.prototype.fetchMore=function(t){var e=this;Object(l.b)(t.updateQuery,2);var r=Object(i.a)(Object(i.a)({},t.query?t:Object(i.a)(Object(i.a)(Object(i.a)({},this.options),t),{variables:Object(i.a)(Object(i.a)({},this.variables),t.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,y.normal,this.queryId).then((function(i){return e.updateQuery((function(e){return t.updateQuery(e,{fetchMoreResult:i.data,variables:r.variables})})),e.queryManager.stopQuery(n),i}),(function(t){throw e.queryManager.stopQuery(n),t}))},e.prototype.subscribeToMore=function(t){var e=this,r=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables}).subscribe({next:function(r){var n=t.updateQuery;n&&e.updateQuery((function(t,e){var i=e.variables;return n(t,{subscriptionData:r,variables:i})}))},error:function(e){t.onError&&t.onError(e)}});return this.subscriptions.add(r),function(){e.subscriptions.delete(r)&&r.unsubscribe()}},e.prototype.setOptions=function(t){var e=this.options.fetchPolicy;this.options=Object(i.a)(Object(i.a)({},this.options),t),t.pollInterval?this.startPolling(t.pollInterval):0===t.pollInterval&&this.stopPolling();var r=t.fetchPolicy;return this.setVariables(this.options.variables,e!==r&&("cache-only"===e||"standby"===e||"network-only"===r),t.fetchResults)},e.prototype.setVariables=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),this.isTornDown=!1,t=t||this.variables,!e&&Object(a.a)(t,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=t,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},e.prototype.updateQuery=function(t){var e=this.queryManager,r=e.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,a=r.document,s=Object(o.I)((function(){return t(n,{variables:i})}));s&&(e.dataStore.markUpdateQueryResult(a,i,s),e.broadcastQueries())},e.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},e.prototype.startPolling=function(t){_(this),this.options.pollInterval=t,this.queryManager.startPollingQuery(this.options,this.queryId)},e.prototype.updateLastResult=function(t){var e=this.lastResult;return this.lastResult=t,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?t:Object(o.f)(t),e},e.prototype.onSubscribe=function(t){var e=this;try{var r=t._subscription._observer;r&&!r.error&&(r.error=g)}catch(t){}var n=!this.observers.size;return this.observers.add(t),t.next&&this.lastResult&&t.next(this.lastResult),t.error&&this.lastError&&t.error(this.lastError),n&&this.setUpQuery(),function(){e.observers.delete(t)&&!e.observers.size&&e.tearDownQuery()}},e.prototype.setUpQuery=function(){var t=this,e=this.queryManager,r=this.queryId;this.shouldSubscribe&&e.addObservableQuery(r,this),this.options.pollInterval&&(_(this),e.startPollingQuery(this.options,r));var o=function(e){t.updateLastResult(Object(i.a)(Object(i.a)({},t.lastResult),{errors:e.graphQLErrors,networkStatus:n.error,loading:!1})),O(t.observers,"error",t.lastError=e)};e.observeQuery(r,this.options,{next:function(r){if(t.lastError||t.isDifferentFromLastResult(r)){var n=t.updateLastResult(r),i=t.options,o=i.query,s=i.variables,u=i.fetchPolicy;e.transform(o).hasClientExports?e.getLocalState().addExportedVariables(o,s).then((function(i){var s=t.variables;t.variables=t.options.variables=i,!r.loading&&n&&"cache-only"!==u&&e.transform(o).serverQuery&&!Object(a.a)(s,i)?t.refetch():O(t.observers,"next",r)})):O(t.observers,"next",r)}},error:o}).catch(o)},e.prototype.tearDownQuery=function(){var t=this.queryManager;this.isTornDown=!0,t.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions.clear(),t.removeObservableQuery(this.queryId),t.stopQuery(this.queryId),this.observers.clear()},e}(d);function g(t){}function O(t,e,r){var n=[];t.forEach((function(t){return t[e]&&n.push(t)})),n.forEach((function(t){return t[e](r)}))}function _(t){var e=t.options.fetchPolicy;Object(l.b)("cache-first"!==e&&"cache-only"!==e,3)}var w=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initMutation=function(t,e,r){this.store[t]={mutation:e,variables:r||{},loading:!0,error:null}},t.prototype.markMutationError=function(t,e){var r=this.store[t];r&&(r.loading=!1,r.error=e)},t.prototype.markMutationResult=function(t){var e=this.store[t];e&&(e.loading=!1,e.error=null)},t.prototype.reset=function(){this.store={}},t}(),k=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initQuery=function(t){var e=this.store[t.queryId];Object(l.b)(!e||e.document===t.document||Object(a.a)(e.document,t.document),19);var r,i=!1,o=null;t.storePreviousVariables&&e&&e.networkStatus!==n.loading&&(Object(a.a)(e.variables,t.variables)||(i=!0,o=e.variables)),r=i?n.setVariables:t.isPoll?n.poll:t.isRefetch?n.refetch:n.loading;var s=[];e&&e.graphQLErrors&&(s=e.graphQLErrors),this.store[t.queryId]={document:t.document,variables:t.variables,previousVariables:o,networkError:null,graphQLErrors:s,networkStatus:r,metadata:t.metadata},"string"==typeof t.fetchMoreForQueryId&&this.store[t.fetchMoreForQueryId]&&(this.store[t.fetchMoreForQueryId].networkStatus=n.fetchMore)},t.prototype.markQueryResult=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=null,this.store[t].graphQLErrors=h(e.errors)?e.errors:[],this.store[t].previousVariables=null,this.store[t].networkStatus=n.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=n.ready))},t.prototype.markQueryError=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=e,this.store[t].networkStatus=n.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},t.prototype.markQueryResultClient=function(t,e){var r=this.store&&this.store[t];r&&(r.networkError=null,r.previousVariables=null,e&&(r.networkStatus=n.ready))},t.prototype.stopQuery=function(t){delete this.store[t]},t.prototype.reset=function(t){var e=this;Object.keys(this.store).forEach((function(r){t.indexOf(r)<0?e.stopQuery(r):e.store[r].networkStatus=n.loading}))},t}();var S=function(){function t(t){var e=t.cache,r=t.client,n=t.resolvers,i=t.fragmentMatcher;this.cache=e,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=Object(o.A)(e.resolvers,t)})):this.resolvers=Object(o.A)(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){var e=t.document,r=t.remoteResult,n=t.context,o=t.variables,a=t.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(t){return e?[2,this.resolveDocument(e,r.data,n,o,this.fragmentMatcher,s).then((function(t){return Object(i.a)(Object(i.a)({},r),{data:t.result})}))]:[2,r]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return Object(o.s)(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return this.resolvers?Object(o.C)(t):t},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.cache;return Object(i.a)(Object(i.a)({},t),{cache:e,getCacheKey:function(t){if(e.config)return e.config.dataIdFromObject(t);Object(l.b)(!1,6)}})},t.prototype.addExportedVariables=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(n){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(r),e).then((function(t){return Object(i.a)(Object(i.a)({},e),t.exportedVariables)}))]:[2,Object(i.a)({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return Object(f.visit)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value}))))return f.BREAK}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:Object(o.d)(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e,r,n,a,s){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(i.b)(this,void 0,void 0,(function(){var u,c,l,f,p,d,h,v,y;return Object(i.d)(this,(function(m){var b;return u=Object(o.l)(t),c=Object(o.j)(t),l=Object(o.g)(c),f=u.operation,p=f?(b=f).charAt(0).toUpperCase()+b.slice(1):"Query",h=(d=this).cache,v=d.client,y={fragmentMap:l,context:Object(i.a)(Object(i.a)({},r),{cache:h,client:v}),variables:n,fragmentMatcher:a,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(u.selectionSet,e,y).then((function(t){return{result:t,exportedVariables:y.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,r){return Object(i.b)(this,void 0,void 0,(function(){var n,a,s,u,c,f=this;return Object(i.d)(this,(function(p){return n=r.fragmentMap,a=r.context,s=r.variables,u=[e],c=function(t){return Object(i.b)(f,void 0,void 0,(function(){var c,f;return Object(i.d)(this,(function(i){return Object(o.F)(t,s)?Object(o.t)(t)?[2,this.resolveField(t,e,r).then((function(e){var r;void 0!==e&&u.push(((r={})[Object(o.E)(t)]=e,r))}))]:(Object(o.v)(t)?c=t:(c=n[t.name.value],Object(l.b)(c,7)),c&&c.typeCondition&&(f=c.typeCondition.name.value,r.fragmentMatcher(e,f,a))?[2,this.resolveSelectionSet(c.selectionSet,e,r).then((function(t){u.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(c)).then((function(){return Object(o.B)(u)}))]}))}))},t.prototype.resolveField=function(t,e,r){return Object(i.b)(this,void 0,void 0,(function(){var n,a,s,u,c,l,f,p,d,h=this;return Object(i.d)(this,(function(i){return n=r.variables,a=t.name.value,s=Object(o.E)(t),u=a!==s,c=e[s]||e[a],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(f=e.__typename||r.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(d=p[u?a:s])&&(l=Promise.resolve(d(e,Object(o.b)(t,n),r.context,{field:t,fragmentMap:r.fragmentMap})))),[2,l.then((function(e){return void 0===e&&(e=c),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(r.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?h.resolveSubSelectedArray(t,e,r):t.selectionSet?h.resolveSelectionSet(t.selectionSet,e,r):void 0:e}))]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,r){var n=this;return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?n.resolveSubSelectedArray(t,e,r):t.selectionSet?n.resolveSelectionSet(t.selectionSet,e,r):void 0})))},t}();function j(t){var e=new Set,r=null;return new d((function(n){return e.add(n),r=r||t.subscribe({next:function(t){e.forEach((function(e){return e.next&&e.next(t)}))},error:function(t){e.forEach((function(e){return e.error&&e.error(t)}))},complete:function(){e.forEach((function(t){return t.complete&&t.complete()}))}}),function(){e.delete(n)&&!e.size&&r&&(r.unsubscribe(),r=null)}}))}var x=Object.prototype.hasOwnProperty,$=function(){function t(t){var e=t.link,r=t.queryDeduplication,n=void 0!==r&&r,i=t.store,a=t.onBroadcast,s=void 0===a?function(){}:a,u=t.ssrMode,c=void 0!==u&&u,l=t.clientAwareness,f=void 0===l?{}:l,p=t.localState,d=t.assumeImmutableResults;this.mutationStore=new w,this.queryStore=new k,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(o.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=e,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=s,this.clientAwareness=f,this.localState=p||new S({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return t.prototype.stop=function(){var t=this;this.queries.forEach((function(e,r){t.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(t){t(new l.a(8))}))},t.prototype.mutate=function(t){var e=t.mutation,r=t.variables,n=t.optimisticResponse,a=t.updateQueries,s=t.refetchQueries,u=void 0===s?[]:s,c=t.awaitRefetchQueries,f=void 0!==c&&c,p=t.update,d=t.errorPolicy,v=void 0===d?"none":d,y=t.fetchPolicy,b=t.context,g=void 0===b?{}:b;return Object(i.b)(this,void 0,void 0,(function(){var t,s,c,d=this;return Object(i.d)(this,(function(b){switch(b.label){case 0:return Object(l.b)(e,9),Object(l.b)(!y||"no-cache"===y,10),t=this.generateQueryId(),e=this.transform(e).document,this.setQuery(t,(function(){return{document:e}})),r=this.getVariables(e,r),this.transform(e).hasClientExports?[4,this.localState.addExportedVariables(e,r,g)]:[3,2];case 1:r=b.sent(),b.label=2;case 2:return s=function(){var t={};return a&&d.queries.forEach((function(e,r){var n=e.observableQuery;if(n){var i=n.queryName;i&&x.call(a,i)&&(t[r]={updater:a[i],query:d.queryStore.get(r)})}})),t},this.mutationStore.initMutation(t,e,r),this.dataStore.markMutationInit({mutationId:t,document:e,variables:r,updateQueries:s(),update:p,optimisticResponse:n}),this.broadcastQueries(),c=this,[2,new Promise((function(a,l){var d,b;c.getObservableFromLink(e,Object(i.a)(Object(i.a)({},g),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(o.q)(n)&&"none"===v?b=new m({graphQLErrors:n.errors}):(c.mutationStore.markMutationResult(t),"no-cache"!==y&&c.dataStore.markMutationResult({mutationId:t,result:n,document:e,variables:r,updateQueries:s(),update:p}),d=n)},error:function(e){c.mutationStore.markMutationError(t,e),c.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),c.broadcastQueries(),c.setQuery(t,(function(){return{document:null}})),l(new m({networkError:e}))},complete:function(){if(b&&c.mutationStore.markMutationError(t,b),c.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),c.broadcastQueries(),b)l(b);else{"function"==typeof u&&(u=u(d));var e=[];h(u)&&u.forEach((function(t){if("string"==typeof t)c.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===t&&e.push(n.refetch())}));else{var r={query:t.query,variables:t.variables,fetchPolicy:"network-only"};t.context&&(r.context=t.context),e.push(c.query(r))}})),Promise.all(f?e:[]).then((function(){c.setQuery(t,(function(){return{document:null}})),"ignore"===v&&d&&Object(o.q)(d)&&delete d.errors,a(d)}))}}})}))]}}))}))},t.prototype.fetchQuery=function(t,e,r,n){return Object(i.b)(this,void 0,void 0,(function(){var a,s,u,c,l,f,p,d,h,b,g,O,_,w,k,S,j,x,$=this;return Object(i.d)(this,(function(C){switch(C.label){case 0:return a=e.metadata,s=void 0===a?null:a,u=e.fetchPolicy,c=void 0===u?"cache-first":u,l=e.context,f=void 0===l?{}:l,p=this.transform(e.query).document,d=this.getVariables(p,e.variables),this.transform(p).hasClientExports?[4,this.localState.addExportedVariables(p,d,f)]:[3,2];case 1:d=C.sent(),C.label=2;case 2:if(e=Object(i.a)(Object(i.a)({},e),{variables:d}),g=b="network-only"===c||"no-cache"===c,b||(O=this.dataStore.getCache().diff({query:p,variables:d,returnPartialData:!0,optimistic:!1}),_=O.complete,w=O.result,g=!_||"cache-and-network"===c,h=w),k=g&&"cache-only"!==c&&"standby"!==c,Object(o.s)(["live"],p)&&(k=!0),S=this.idCounter++,j="no-cache"!==c?this.updateQueryWatch(t,p,e):void 0,this.setQuery(t,(function(){return{document:p,lastRequestId:S,invalidated:!0,cancel:j}})),this.invalidate(n),this.queryStore.initQuery({queryId:t,document:p,storePreviousVariables:k,variables:d,isPoll:r===y.poll,isRefetch:r===y.refetch,metadata:s,fetchMoreForQueryId:n}),this.broadcastQueries(),k){if(x=this.fetchRequest({requestId:S,queryId:t,document:p,options:e,fetchMoreForQueryId:n}).catch((function(e){throw v(e)?e:(S>=$.getQuery(t).lastRequestId&&($.queryStore.markQueryError(t,e,n),$.invalidate(t),$.invalidate(n),$.broadcastQueries()),new m({networkError:e}))})),"cache-and-network"!==c)return[2,x];x.catch((function(){}))}return this.queryStore.markQueryResultClient(t,!k),this.invalidate(t),this.invalidate(n),this.transform(p).hasForcedResolvers?[2,this.localState.runResolvers({document:p,remoteResult:{data:h},context:f,variables:d,onlyRunForcedResolvers:!0}).then((function(r){return $.markQueryResult(t,r,e,n),$.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:h}])}}))}))},t.prototype.markQueryResult=function(t,e,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(t,(function(){return{newData:{result:e.data,complete:!0}}})):this.dataStore.markQueryResult(e,this.getQuery(t).document,o,n,"ignore"===a||"all"===a)},t.prototype.queryListenerForObserver=function(t,e,r){var n=this;function i(t,e){if(r[t])try{r[t](e)}catch(t){}}return function(r,o){if(n.invalidate(t,!1),r){var a=n.getQuery(t),s=a.observableQuery,u=a.document,c=s?s.options.fetchPolicy:e.fetchPolicy;if("standby"!==c){var l=p(r.networkStatus),f=s&&s.getLastResult(),d=!(!f||f.networkStatus===r.networkStatus),v=e.returnPartialData||!o&&r.previousVariables||d&&e.notifyOnNetworkStatusChange||"cache-only"===c||"cache-and-network"===c;if(!l||v){var y=h(r.graphQLErrors),b=s&&s.options.errorPolicy||e.errorPolicy||"none";if("none"===b&&y||r.networkError)return i("error",new m({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var g=void 0,O=void 0;if(o)"no-cache"!==c&&"network-only"!==c&&n.setQuery(t,(function(){return{newData:null}})),g=o.result,O=!o.complete;else{var _=s&&s.getLastError(),w="none"!==b&&(_&&_.graphQLErrors)!==r.graphQLErrors;if(f&&f.data&&!w)g=f.data,O=!1;else{var k=n.dataStore.getCache().diff({query:u,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});g=k.result,O=!k.complete}}var S=O&&!(e.returnPartialData||"cache-only"===c),j={data:S?f&&f.data:g,loading:l,networkStatus:r.networkStatus,stale:S};"all"===b&&y&&(j.errors=r.graphQLErrors),i("next",j)}catch(t){i("error",new m({networkError:t}))}}}}}},t.prototype.transform=function(t){var e=this.transformCache;if(!e.has(t)){var r=this.dataStore.getCache(),n=r.transformDocument(t),i=Object(o.D)(r.transformForLink(n)),a=this.localState.clientQuery(n),s=this.localState.serverQuery(i),u={document:n,hasClientExports:Object(o.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:a,serverQuery:s,defaultVars:Object(o.h)(Object(o.m)(n))},c=function(t){t&&!e.has(t)&&e.set(t,u)};c(t),c(n),c(a),c(s)}return e.get(t)},t.prototype.getVariables=function(t,e){return Object(i.a)(Object(i.a)({},this.transform(t).defaultVars),e)},t.prototype.watchQuery=function(t,e){void 0===e&&(e=!0),Object(l.b)("standby"!==t.fetchPolicy,11),t.variables=this.getVariables(t.query,t.variables),void 0===t.notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var r=Object(i.a)({},t);return new b({queryManager:this,options:r,shouldSubscribe:e})},t.prototype.query=function(t){var e=this;return Object(l.b)(t.query,12),Object(l.b)("Document"===t.query.kind,13),Object(l.b)(!t.returnPartialData,14),Object(l.b)(!t.pollInterval,15),new Promise((function(r,n){var i=e.watchQuery(t,!1);e.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return e.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},t.prototype.generateQueryId=function(){return String(this.idCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){this.stopPollingQuery(t),this.queryStore.stopQuery(t),this.invalidate(t)},t.prototype.addQueryListener=function(t,e){this.setQuery(t,(function(t){return t.listeners.add(e),{invalidated:!1}}))},t.prototype.updateQueryWatch=function(t,e,r){var n=this,i=this.getQuery(t).cancel;i&&i();return this.dataStore.getCache().watch({query:e,variables:r.variables,optimistic:!0,previousResult:function(){var e=null,r=n.getQuery(t).observableQuery;if(r){var i=r.getLastResult();i&&(e=i.data)}return e},callback:function(e){n.setQuery(t,(function(){return{invalidated:!0,newData:e}}))}})},t.prototype.addObservableQuery=function(t,e){this.setQuery(t,(function(){return{observableQuery:e}}))},t.prototype.removeObservableQuery=function(t){var e=this.getQuery(t).cancel;this.setQuery(t,(function(){return{observableQuery:null}})),e&&e()},t.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(t){t(new l.a(16))}));var t=[];return this.queries.forEach((function(e,r){e.observableQuery&&t.push(r)})),this.queryStore.reset(t),this.mutationStore.reset(),this.dataStore.reset()},t.prototype.resetStore=function(){var t=this;return this.clearStore().then((function(){return t.reFetchObservableQueries()}))},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!t&&"standby"===a||r.push(o.refetch()),e.setQuery(i,(function(){return{newData:null}})),e.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},t.prototype.observeQuery=function(t,e,r){return this.addQueryListener(t,this.queryListenerForObserver(t,e,r)),this.fetchQuery(t,e)},t.prototype.startQuery=function(t,e,r){return this.addQueryListener(t,r),this.fetchQuery(t,e).catch((function(){})),t},t.prototype.startGraphQLSubscription=function(t){var e=this,r=t.query,n=t.fetchPolicy,i=t.variables;r=this.transform(r).document,i=this.getVariables(r,i);var a=function(t){return e.getObservableFromLink(r,{},t,!1).map((function(i){if(n&&"no-cache"===n||(e.dataStore.markSubscriptionResult(i,r,t),e.broadcastQueries()),Object(o.q)(i))throw new m({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var s=this.localState.addExportedVariables(r,i).then(a);return new d((function(t){var e=null;return s.then((function(r){return e=r.subscribe(t)}),t.error),function(){return e&&e.unsubscribe()}}))}return a(i)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchQueryRejectFns.delete("query:"+t),this.fetchQueryRejectFns.delete("fetchRequest:"+t),this.getQuery(t).subscriptions.forEach((function(t){return t.unsubscribe()})),this.queries.delete(t)},t.prototype.getCurrentQueryResult=function(t,e){void 0===e&&(e=!0);var r=t.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=t.getLastResult(),u=this.getQuery(t.queryId).newData;if(u&&u.complete)return{data:u.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var c=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:e}),l=c.result,f=c.complete;return{data:f||a?l:void 0,partial:!f}},t.prototype.getQueryWithPreviousResult=function(t){var e;if("string"==typeof t){var r=this.getQuery(t).observableQuery;Object(l.b)(r,17),e=r}else e=t;var n=e.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(e,!1).data,variables:i,document:o}},t.prototype.broadcastQueries=function(){var t=this;this.onBroadcast(),this.queries.forEach((function(e,r){e.invalidated&&e.listeners.forEach((function(n){n&&n(t.queryStore.get(r),e.newData)}))}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,r,n){var a,s=this;void 0===n&&(n=this.queryDeduplication);var c=this.transform(t).serverQuery;if(c){var l=this.inFlightLinkObservables,f=this.link,p={query:c,variables:r,operationName:Object(o.n)(c)||void 0,context:this.prepareContext(Object(i.a)(Object(i.a)({},e),{forceFetch:!n}))};if(e=p.context,n){var h=l.get(c)||new Map;l.set(c,h);var v=JSON.stringify(r);if(!(a=h.get(v))){h.set(v,a=j(Object(u.execute)(f,p)));var y=function(){h.delete(v),h.size||l.delete(c),m.unsubscribe()},m=a.subscribe({next:y,error:y,complete:y})}}else a=j(Object(u.execute)(f,p))}else a=d.of({data:{}}),e=this.prepareContext(e);var b=this.transform(t).clientQuery;return b&&(a=function(t,e){return new d((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,u={next:function(t){++a,new Promise((function(r){r(e(t))})).then((function(t){--a,n&&n.call(r,t),s&&u.complete()}),(function(t){--a,i&&i.call(r,t)}))},error:function(t){i&&i.call(r,t)},complete:function(){s=!0,a||o&&o.call(r)}},c=t.subscribe(u);return function(){return c.unsubscribe()}}))}(a,(function(t){return s.localState.runResolvers({document:b,remoteResult:t,context:e,variables:r})}))),a},t.prototype.fetchRequest=function(t){var e,r,i=this,o=t.requestId,a=t.queryId,s=t.document,u=t.options,c=t.fetchMoreForQueryId,l=u.variables,f=u.errorPolicy,p=void 0===f?"none":f,d=u.fetchPolicy;return new Promise((function(t,f){var v=i.getObservableFromLink(s,u.context,l),y="fetchRequest:"+a;i.fetchQueryRejectFns.set(y,f);var b=function(){i.fetchQueryRejectFns.delete(y),i.setQuery(a,(function(t){t.subscriptions.delete(g)}))},g=v.map((function(t){if(o>=i.getQuery(a).lastRequestId&&(i.markQueryResult(a,t,u,c),i.queryStore.markQueryResult(a,t,c),i.invalidate(a),i.invalidate(c),i.broadcastQueries()),"none"===p&&h(t.errors))return f(new m({graphQLErrors:t.errors}));if("all"===p&&(r=t.errors),c||"no-cache"===d)e=t.data;else{var n=i.dataStore.getCache().diff({variables:l,query:s,optimistic:!1,returnPartialData:!0}),v=n.result;(n.complete||u.returnPartialData)&&(e=v)}})).subscribe({error:function(t){b(),f(t)},complete:function(){b(),t({data:e,errors:r,loading:!1,networkStatus:n.ready,stale:!1})}});i.setQuery(a,(function(t){t.subscriptions.add(g)}))}))},t.prototype.getQuery=function(t){return this.queries.get(t)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},t.prototype.setQuery=function(t,e){var r=this.getQuery(t),n=Object(i.a)(Object(i.a)({},r),e(r));this.queries.set(t,n)},t.prototype.invalidate=function(t,e){void 0===e&&(e=!0),t&&this.setQuery(t,(function(){return{invalidated:e}}))},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return Object(i.a)(Object(i.a)({},e),{clientAwareness:this.clientAwareness})},t.prototype.checkInFlight=function(t){var e=this.queryStore.get(t);return e&&e.networkStatus!==n.ready&&e.networkStatus!==n.error},t.prototype.startPollingQuery=function(t,e,r){var n=this,o=t.pollInterval;if(Object(l.b)(o,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(e);a||this.pollingInfoByQueryId.set(e,a={}),a.interval=o,a.options=Object(i.a)(Object(i.a)({},t),{fetchPolicy:"network-only"});var s=function(){var t=n.pollingInfoByQueryId.get(e);t&&(n.checkInFlight(e)?u():n.fetchQuery(e,t.options,y.poll).then(u,u))},u=function(){var t=n.pollingInfoByQueryId.get(e);t&&(clearTimeout(t.timeout),t.timeout=setTimeout(s,t.interval))};r&&this.addQueryListener(e,r),u()}return e},t.prototype.stopPollingQuery=function(t){this.pollingInfoByQueryId.delete(t)},t}(),C=function(){function t(t){this.cache=t}return t.prototype.getCache=function(){return this.cache},t.prototype.markQueryResult=function(t,e,r,n,i){void 0===i&&(i=!1);var a=!Object(o.q)(t);i&&Object(o.q)(t)&&t.data&&(a=!0),!n&&a&&this.cache.write({result:t.data,dataId:"ROOT_QUERY",query:e,variables:r})},t.prototype.markSubscriptionResult=function(t,e,r){Object(o.q)(t)||this.cache.write({result:t.data,dataId:"ROOT_SUBSCRIPTION",query:e,variables:r})},t.prototype.markMutationInit=function(t){var e,r=this;t.optimisticResponse&&(e="function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:t.mutationId,result:{data:e},document:t.document,variables:t.variables,updateQueries:t.updateQueries,update:t.update})}finally{r.cache=i}}),t.mutationId))},t.prototype.markMutationResult=function(t){var e=this;if(!Object(o.q)(t.result)){var r=[{result:t.result.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}],n=t.updateQueries;n&&Object.keys(n).forEach((function(i){var a=n[i],s=a.query,u=a.updater,c=e.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),l=c.result;if(c.complete){var f=Object(o.I)((function(){return u(l,{mutationResult:t.result,queryName:Object(o.n)(s.document)||void 0,queryVariables:s.variables})}));f&&r.push({result:f,dataId:"ROOT_QUERY",query:s.document,variables:s.variables})}})),this.cache.performTransaction((function(e){r.forEach((function(t){return e.write(t)}));var n=t.update;n&&Object(o.I)((function(){return n(e,t.result)}))}))}},t.prototype.markMutationComplete=function(t){var e=t.mutationId;t.optimisticResponse&&this.cache.removeOptimistic(e)},t.prototype.markUpdateQueryResult=function(t,e,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:e,query:t})},t.prototype.reset=function(){return this.cache.reset()},t}(),A=function(){function t(t){var e=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.cache,n=t.ssrMode,i=void 0!==n&&n,o=t.ssrForceFetchDelay,a=void 0===o?0:o,s=t.connectToDevTools,c=t.queryDeduplication,f=void 0===c||c,p=t.defaultOptions,d=t.assumeImmutableResults,h=void 0!==d&&d,v=t.resolvers,y=t.typeDefs,m=t.fragmentMatcher,b=t.name,g=t.version,O=t.link;if(!O&&v&&(O=u.ApolloLink.empty()),!O||!r)throw new l.a(4);this.link=O,this.cache=r,this.store=new C(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=f,this.defaultOptions=p||{},this.typeDefs=y,a&&setTimeout((function(){return e.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new S({cache:r,client:this,resolvers:v,fragmentMatcher:m}),this.queryManager=new $({link:this.link,store:this.store,queryDeduplication:f,ssrMode:i,clientAwareness:{name:b,version:g},localState:this.localState,assumeImmutableResults:h,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Object(i.a)(Object(i.a)({},this.defaultOptions.watchQuery),t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=Object(i.a)(Object(i.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=Object(i.a)(Object(i.a)({},this.defaultOptions.query),t)),Object(l.b)("cache-and-network"!==t.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=Object(i.a)(Object(i.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Object(i.a)(Object(i.a)({},this.defaultOptions.mutate),t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){var e=this.cache.writeQuery(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeFragment=function(t){var e=this.cache.writeFragment(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeData=function(t){var e=this.cache.writeData(t);return this.queryManager.broadcastQueries(),e},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return Object(u.execute)(this.link,t)},t.prototype.initQueryManager=function(){return this.queryManager},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t}();e.default=A},function(t,e,r){"use strict";r.r(e),r.d(e,"SchemaLink",(function(){return s}));var n=r(0),i=r(20),o=r(79),a=r(116),s=function(t){function e(e){var r=e.schema,n=e.rootValue,i=e.context,o=t.call(this)||this;return o.schema=r,o.rootValue=n,o.context=i,o}return Object(n.c)(e,t),e.prototype.request=function(t){var e=this;return new i.a((function(r){Promise.resolve(Object(a.execute)(e.schema,t.query,e.rootValue,"function"==typeof e.context?e.context(t):e.context,t.variables,t.operationName)).then((function(t){r.closed||(r.next(t),r.complete())})).catch((function(t){r.closed||r.error(t)}))}))},e}(o.ApolloLink);e.default=s},,,function(t,e,r){"use strict";r.r(e),r.d(e,"HeuristicFragmentMatcher",(function(){return f})),r.d(e,"InMemoryCache",(function(){return E})),r.d(e,"IntrospectionFragmentMatcher",(function(){return p})),r.d(e,"ObjectCache",(function(){return O})),r.d(e,"StoreReader",(function(){return y})),r.d(e,"StoreWriter",(function(){return S})),r.d(e,"WriteError",(function(){return w})),r.d(e,"assertIdValue",(function(){return g})),r.d(e,"defaultDataIdFromObject",(function(){return C})),r.d(e,"defaultNormalizedCacheFactory",(function(){return _})),r.d(e,"enhanceErrorWithDocument",(function(){return k}));var n=r(0),i=r(87),o=r(1),a=r(29),s=r(41),u=r(3),c=!1;function l(){var t=!c;return Object(o.y)()||(c=!0),t}var f=function(){function t(){}return t.prototype.ensureReady=function(){return Promise.resolve()},t.prototype.canBypassInit=function(){return!0},t.prototype.match=function(t,e,r){var n=r.store.get(t.id),i="ROOT_QUERY"===t.id;if(!n)return i;var o=n.__typename,a=void 0===o?i&&"Query":o;return a&&a===e||(l(),"heuristic")},t}(),p=function(){function t(t){t&&t.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(t.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return t.prototype.match=function(t,e,r){Object(u.b)(this.isReady,1);var n=r.store.get(t.id),i="ROOT_QUERY"===t.id;if(!n)return i;var o=n.__typename,a=void 0===o?i&&"Query":o;if(Object(u.b)(a,2),a===e)return!0;var s=this.possibleTypesMap[e];return!!(a&&s&&s.indexOf(a)>-1)},t.prototype.parseIntrospectionResult=function(t){var e={};return t.__schema.types.forEach((function(t){"UNION"!==t.kind&&"INTERFACE"!==t.kind||(e[t.name]=t.possibleTypes.map((function(t){return t.name})))})),e},t}(),d=Object.prototype.hasOwnProperty,h=function(){function t(t){var e=this;void 0===t&&(t=Object.create(null)),this.data=t,this.depend=Object(s.b)((function(t){return e.data[t]}),{disposable:!0,makeCacheKey:function(t){return t}})}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.depend(t),this.data[t]},t.prototype.set=function(t,e){e!==this.data[t]&&(this.data[t]=e,this.depend.dirty(t))},t.prototype.delete=function(t){d.call(this.data,t)&&(delete this.data[t],this.depend.dirty(t))},t.prototype.clear=function(){this.replace(null)},t.prototype.replace=function(t){var e=this;t?(Object.keys(t).forEach((function(r){e.set(r,t[r])})),Object.keys(this.data).forEach((function(r){d.call(t,r)||e.delete(r)}))):Object.keys(this.data).forEach((function(t){e.delete(t)}))},t}();function v(t){return new h(t)}var y=function(){function t(t){var e=this,r=void 0===t?{}:t,n=r.cacheKeyRoot,i=void 0===n?new s.a(o.e):n,a=r.freezeResults,u=void 0!==a&&a,c=this.executeStoreQuery,l=this.executeSelectionSet,f=this.executeSubSelectedArray;this.freezeResults=u,this.executeStoreQuery=Object(s.b)((function(t){return c.call(e,t)}),{makeCacheKey:function(t){var e=t.query,r=t.rootValue,n=t.contextValue,o=t.variableValues,a=t.fragmentMatcher;if(n.store instanceof h)return i.lookup(n.store,e,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=Object(s.b)((function(t){return l.call(e,t)}),{makeCacheKey:function(t){var e=t.selectionSet,r=t.rootValue,n=t.execContext;if(n.contextValue.store instanceof h)return i.lookup(n.contextValue.store,e,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=Object(s.b)((function(t){return f.call(e,t)}),{makeCacheKey:function(t){var e=t.field,r=t.array,n=t.execContext;if(n.contextValue.store instanceof h)return i.lookup(n.contextValue.store,e,r,JSON.stringify(n.variableValues))}})}return t.prototype.readQueryFromStore=function(t){return this.diffQueryAgainstStore(Object(n.a)(Object(n.a)({},t),{returnPartialData:!1})).result},t.prototype.diffQueryAgainstStore=function(t){var e=t.store,r=t.query,n=t.variables,i=t.previousResult,s=t.returnPartialData,c=void 0===s||s,l=t.rootId,f=void 0===l?"ROOT_QUERY":l,p=t.fragmentMatcherFunction,d=t.config,h=Object(o.o)(r);n=Object(o.c)({},Object(o.h)(h),n);var v={store:e,dataIdFromObject:d&&d.dataIdFromObject,cacheRedirects:d&&d.cacheRedirects||{}},y=this.executeStoreQuery({query:r,rootValue:{type:"id",id:f,generated:!0,typename:"Query"},contextValue:v,variableValues:n,fragmentMatcher:p}),m=y.missing&&y.missing.length>0;return m&&!c&&y.missing.forEach((function(t){if(!t.tolerable)throw new u.a(8)})),i&&Object(a.a)(i,y.result)&&(y.result=i),{result:y.result,complete:!m}},t.prototype.executeStoreQuery=function(t){var e=t.query,r=t.rootValue,n=t.contextValue,i=t.variableValues,a=t.fragmentMatcher,s=void 0===a?b:a,u=Object(o.l)(e),c=Object(o.j)(e),l={query:e,fragmentMap:Object(o.g)(c),contextValue:n,variableValues:i,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:u.selectionSet,rootValue:r,execContext:l})},t.prototype.executeSelectionSet=function(t){var e=this,r=t.selectionSet,i=t.rootValue,a=t.execContext,s=a.fragmentMap,c=a.contextValue,l=a.variableValues,f={result:null},p=[],d=c.store.get(i.id),h=d&&d.__typename||"ROOT_QUERY"===i.id&&"Query"||void 0;function v(t){var e;return t.missing&&(f.missing=f.missing||[],(e=f.missing).push.apply(e,t.missing)),t.result}return r.selections.forEach((function(t){var r;if(Object(o.F)(t,l))if(Object(o.t)(t)){var f=v(e.executeField(d,h,t,a));void 0!==f&&p.push(((r={})[Object(o.E)(t)]=f,r))}else{var y=void 0;if(Object(o.v)(t))y=t;else if(!(y=s[t.name.value]))throw new u.a(9);var m=y.typeCondition&&y.typeCondition.name.value,b=!m||a.fragmentMatcher(i,m,c);if(b){var g=e.executeSelectionSet({selectionSet:y.selectionSet,rootValue:i,execContext:a});"heuristic"===b&&g.missing&&(g=Object(n.a)(Object(n.a)({},g),{missing:g.missing.map((function(t){return Object(n.a)(Object(n.a)({},t),{tolerable:!0})}))})),p.push(v(g))}}})),f.result=Object(o.B)(p),this.freezeResults,f},t.prototype.executeField=function(t,e,r,n){var i=n.variableValues,a=n.contextValue,s=function(t,e,r,n,i,a){a.resultKey;var s=a.directives,u=r;(n||s)&&(u=Object(o.p)(u,n,s));var c=void 0;if(t&&void 0===(c=t[u])&&i.cacheRedirects&&"string"==typeof e){var l=i.cacheRedirects[e];if(l){var f=l[r];f&&(c=f(t,n,{getCacheKey:function(t){var e=i.dataIdFromObject(t);return e&&Object(o.H)({id:e,typename:t.__typename})}}))}}if(void 0===c)return{result:c,missing:[{object:t,fieldName:u,tolerable:!1}]};Object(o.w)(c)&&(c=c.json);return{result:c}}(t,e,r.name.value,Object(o.b)(r,i),a,{resultKey:Object(o.E)(r),directives:Object(o.i)(r,i)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:r,array:s.result,execContext:n})):r.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:s.result,execContext:n})):(m(r,s.result),this.freezeResults,s)},t.prototype.combineExecResults=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e.forEach((function(e){e.missing&&(t=t||[]).push.apply(t,e.missing)})),{result:e.pop().result,missing:t}},t.prototype.executeSubSelectedArray=function(t){var e,r=this,n=t.field,i=t.array,o=t.execContext;function a(t){return t.missing&&(e=e||[]).push.apply(e,t.missing),t.result}return i=i.map((function(t){return null===t?null:Array.isArray(t)?a(r.executeSubSelectedArray({field:n,array:t,execContext:o})):n.selectionSet?a(r.executeSelectionSet({selectionSet:n.selectionSet,rootValue:t,execContext:o})):(m(n,t),t)})),this.freezeResults,{result:i,missing:e}},t}();function m(t,e){if(!t.selectionSet&&Object(o.u)(e))throw new u.a(10)}function b(){return!0}function g(t){Object(u.b)(Object(o.u)(t),11)}var O=function(){function t(t){void 0===t&&(t=Object.create(null)),this.data=t}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){this.data[t]=e},t.prototype.delete=function(t){this.data[t]=void 0},t.prototype.clear=function(){this.data=Object.create(null)},t.prototype.replace=function(t){this.data=t||Object.create(null)},t}();function _(t){return new O(t)}var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="WriteError",e}return Object(n.c)(e,t),e}(Error);function k(t,e){var r=new w("Error writing result to store for query:\n "+JSON.stringify(e));return r.message+="\n"+t.message,r.stack=t.stack,r}var S=function(){function t(){}return t.prototype.writeQueryToStore=function(t){var e=t.query,r=t.result,n=t.store,i=void 0===n?v():n,o=t.variables,a=t.dataIdFromObject,s=t.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:r,document:e,store:i,variables:o,dataIdFromObject:a,fragmentMatcherFunction:s})},t.prototype.writeResultToStore=function(t){var e=t.dataId,r=t.result,n=t.document,i=t.store,a=void 0===i?v():i,s=t.variables,u=t.dataIdFromObject,c=t.fragmentMatcherFunction,l=Object(o.m)(n);try{return this.writeSelectionSetToStore({result:r,dataId:e,selectionSet:l.selectionSet,context:{store:a,processedData:{},variables:Object(o.c)({},Object(o.h)(l),s),dataIdFromObject:u,fragmentMap:Object(o.g)(Object(o.j)(n)),fragmentMatcherFunction:c}})}catch(t){throw k(t,n)}},t.prototype.writeSelectionSetToStore=function(t){var e=this,r=t.result,n=t.dataId,i=t.selectionSet,a=t.context,s=a.variables,c=a.store,l=a.fragmentMap;return i.selections.forEach((function(t){var i;if(Object(o.F)(t,s))if(Object(o.t)(t)){var c=Object(o.E)(t),f=r[c];if(void 0!==f)e.writeFieldToStore({dataId:n,value:f,field:t,context:a});else{var p=!1,d=!1;t.directives&&t.directives.length&&(p=t.directives.some((function(t){return t.name&&"defer"===t.name.value})),d=t.directives.some((function(t){return t.name&&"client"===t.name.value}))),!p&&!d&&a.fragmentMatcherFunction}}else{var h=void 0;Object(o.v)(t)?h=t:(h=(l||{})[t.name.value],Object(u.b)(h,3));var v=!0;if(a.fragmentMatcherFunction&&h.typeCondition){var y=n||"self",m=Object(o.H)({id:y,typename:void 0}),b={store:new O((i={},i[y]=r,i)),cacheRedirects:{}},g=a.fragmentMatcherFunction(m,h.typeCondition.name.value,b);Object(o.x)(),v=!!g}v&&e.writeSelectionSetToStore({result:r,selectionSet:h.selectionSet,dataId:n,context:a})}})),c},t.prototype.writeFieldToStore=function(t){var e,r,i,s=t.field,c=t.value,l=t.dataId,f=t.context,p=f.variables,d=f.dataIdFromObject,h=f.store,v=Object(o.G)(s,p);if(s.selectionSet&&null!==c)if(Array.isArray(c)){var y=l+"."+v;r=this.processArrayValue(c,y,s.selectionSet,f)}else{var m=l+"."+v,b=!0;if(j(m)||(m="$"+m),d){var g=d(c);Object(u.b)(!g||!j(g),4),(g||"number"==typeof g&&0===g)&&(m=g,b=!1)}x(m,s,f.processedData)||this.writeSelectionSetToStore({dataId:m,result:c,selectionSet:s.selectionSet,context:f});var O=c.__typename;r=Object(o.H)({id:m,typename:O},b);var _=(i=h.get(l))&&i[v];if(_!==r&&Object(o.u)(_)){var w=void 0!==_.typename,k=void 0!==O,S=w&&k&&_.typename!==O;Object(u.b)(!b||_.generated||S,5),Object(u.b)(!w||k,6),_.generated&&(S?b||h.delete(_.id):function t(e,r,i){if(e===r)return!1;var s=i.get(e),u=i.get(r),c=!1;Object.keys(s).forEach((function(e){var r=s[e],n=u[e];Object(o.u)(r)&&j(r.id)&&Object(o.u)(n)&&!Object(a.a)(r,n)&&t(r.id,n.id,i)&&(c=!0)})),i.delete(e);var l=Object(n.a)(Object(n.a)({},s),u);if(Object(a.a)(l,u))return c;return i.set(r,l),!0}(_.id,r.id,h))}}else r=null!=c&&"object"==typeof c?{type:"json",json:c}:c;(i=h.get(l))&&Object(a.a)(r,i[v])||h.set(l,Object(n.a)(Object(n.a)({},i),((e={})[v]=r,e)))},t.prototype.processArrayValue=function(t,e,r,n){var i=this;return t.map((function(t,a){if(null===t)return null;var s=e+"."+a;if(Array.isArray(t))return i.processArrayValue(t,s,r,n);var u=!0;if(n.dataIdFromObject){var c=n.dataIdFromObject(t);c&&(s=c,u=!1)}return x(s,r,n.processedData)||i.writeSelectionSetToStore({dataId:s,result:t,selectionSet:r,context:n}),Object(o.H)({id:s,typename:t.__typename},u)}))},t}();function j(t){return"$"===t[0]}function x(t,e,r){if(!r)return!1;if(r[t]){if(r[t].indexOf(e)>=0)return!0;r[t].push(e)}else r[t]=[e];return!1}var $={fragmentMatcher:new f,dataIdFromObject:C,addTypename:!0,resultCaching:!0,freezeResults:!1};function C(t){if(t.__typename){if(void 0!==t.id)return t.__typename+":"+t.id;if(void 0!==t._id)return t.__typename+":"+t._id}return null}var A=Object.prototype.hasOwnProperty,R=function(t){function e(e,r,n){var i=t.call(this,Object.create(null))||this;return i.optimisticId=e,i.parent=r,i.transaction=n,i}return Object(n.c)(e,t),e.prototype.toObject=function(){return Object(n.a)(Object(n.a)({},this.parent.toObject()),this.data)},e.prototype.get=function(t){return A.call(this.data,t)?this.data[t]:this.parent.get(t)},e}(O),E=function(t){function e(e){void 0===e&&(e={});var r=t.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new s.a(o.e),r.silenceBroadcast=!1,r.config=Object(n.a)(Object(n.a)({},$),e),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new h:new O,r.optimisticData=r.data,r.storeWriter=new S,r.storeReader=new y({cacheKeyRoot:r.cacheKeyRoot,freezeResults:e.freezeResults});var i=r,a=i.maybeBroadcastWatch;return r.maybeBroadcastWatch=Object(s.b)((function(t){return a.call(r,t)}),{makeCacheKey:function(t){if(!t.optimistic&&!t.previousResult)return i.data instanceof h?i.cacheKeyRoot.lookup(t.query,JSON.stringify(t.variables)):void 0}}),r}return Object(n.c)(e,t),e.prototype.restore=function(t){return t&&this.data.replace(t),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).toObject()},e.prototype.read=function(t){if("string"==typeof t.rootId&&void 0===this.data.get(t.rootId))return null;var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.readQueryFromStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,rootId:t.rootId,fragmentMatcherFunction:r,previousResult:t.previousResult,config:this.config})||null},e.prototype.write=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;this.storeWriter.writeResultToStore({dataId:t.dataId,result:t.result,variables:t.variables,document:this.transformDocument(t.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},e.prototype.diff=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,returnPartialData:t.returnPartialData,previousResult:t.previousResult,fragmentMatcherFunction:r,config:this.config})},e.prototype.watch=function(t){var e=this;return this.watches.add(t),function(){e.watches.delete(t)}},e.prototype.evict=function(t){throw new u.a(7)},e.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){for(var e=[],r=0,n=this.optimisticData;n instanceof R;)n.optimisticId===t?++r:e.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;e.length>0;){var i=e.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},e.prototype.performTransaction=function(t,e){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof e&&(this.data=this.optimisticData=new R(e,this.optimisticData,t));try{t(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},e.prototype.recordOptimisticTransaction=function(t,e){return this.performTransaction(t,e)},e.prototype.transformDocument=function(t){if(this.addTypename){var e=this.typenameDocumentCache.get(t);return e||(e=Object(o.a)(t),this.typenameDocumentCache.set(t,e),this.typenameDocumentCache.set(e,e)),e}return t},e.prototype.broadcastWatches=function(){var t=this;this.silenceBroadcast||this.watches.forEach((function(e){return t.maybeBroadcastWatch(e)}))},e.prototype.maybeBroadcastWatch=function(t){t.callback(this.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic}))},e}(i.a)},,,,,,function(t,e,r){r(397);var n=r(60).Object;t.exports=function(t,e){return n.defineProperties(t,e)}},function(t,e,r){r(398),t.exports=r(60).Object.freeze},,,,function(t,e,r){var n=r(58),i=r(60),o=r(148),a=r(108),s=r(119),u=function(t,e,r){var c,l,f,p=t&u.F,d=t&u.G,h=t&u.S,v=t&u.P,y=t&u.B,m=t&u.W,b=d?i:i[e]||(i[e]={}),g=b.prototype,O=d?n:h?n[e]:(n[e]||{}).prototype;for(c in d&&(r=e),r)(l=!p&&O&&void 0!==O[c])&&s(b,c)||(f=l?O[c]:r[c],b[c]=d&&"function"!=typeof O[c]?r[c]:y&&l?o(f,n):m&&O[c]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[c]=f,t&u.R&&g&&!g[c]&&a(g,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(118),i=r(234);t.exports=r(109)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){t.exports=!r(150)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},,,,,,,,function(t,e){t.exports={}},function(t,e,r){var n=r(80),i=r(315),o=r(316),a=Object.defineProperty;e.f=r(109)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(149);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n=r(314),i=r(177);t.exports=function(t){return n(i(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){t.exports=!0},function(t,e,r){var n=r(89),i=r(58).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(237)("keys"),i=r(182);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(118).f,i=r(119),o=r(61)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(149);function i(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){r(311);for(var n=r(58),i=r(108),o=r(117),a=r(61)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=n[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(t,e,r){"use strict";var n=r(178),i=r(107),o=r(317),a=r(108),s=r(117),u=r(318),c=r(183),l=r(324),f=r(61)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,h,v,y,m){u(r,e,h);var b,g,O,_=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=e+" Iterator",k="values"==v,S=!1,j=t.prototype,x=j[f]||j["@@iterator"]||v&&j[v],$=x||_(v),C=v?k?_("entries"):$:void 0,A="Array"==e&&j.entries||x;if(A&&(O=l(A.call(new t)))!==Object.prototype&&O.next&&(c(O,w,!0),n||"function"==typeof O[f]||a(O,f,d)),k&&x&&"values"!==x.name&&(S=!0,$=function(){return x.call(this)}),n&&!m||!p&&!S&&j[f]||a(j,f,$),s[e]=$,s[w]=d,v)if(b={values:k?$:_("values"),keys:y?$:_("keys"),entries:C},m)for(g in b)g in j||o(j,g,b[g]);else i(i.P+i.F*(p||S),e,b);return b}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(118),i=r(80),o=r(320);t.exports=r(109)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),s=a.length,u=0;s>u;)n.f(t,r=a[u++],e[r]);return t}},function(t,e,r){var n=r(180),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(60),i=r(58),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(178)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(58).document;t.exports=n&&n.documentElement},function(t,e,r){"use strict";var n=r(326)(!0);r(233)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(242),i=r(61)("iterator"),o=r(117);t.exports=r(60).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){var n=r(147),i=r(61)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){var n=r(80),i=r(149),o=r(61)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(148),s=r(389),u=r(239),c=r(179),l=r(58),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,y=0,m={},b=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},g=function(t){b.call(t.data)};p&&d||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return m[++y]=function(){s("function"==typeof t?t:Function(t),e)},n(y),y},d=function(t){delete m[t]},"process"==r(147)(f)?n=function(t){f.nextTick(a(b,t,1))}:v&&v.now?n=function(t){v.now(a(b,t,1))}:h?(o=(i=new h).port2,i.port1.onmessage=g,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",g,!1)):n="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),b.call(t)}}:function(t){setTimeout(a(b,t,1),0)}),t.exports={set:p,clear:d}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(80),i=r(89),o=r(205);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},,,,,,,,,,function(t,e,r){"use strict";var n=r(312),i=r(313),o=r(117),a=r(176);t.exports=r(233)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(147);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){t.exports=!r(109)&&!r(150)((function(){return 7!=Object.defineProperty(r(179)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(89);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){t.exports=r(108)},function(t,e,r){"use strict";var n=r(319),i=r(234),o=r(183),a={};r(108)(a,r(61)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(80),i=r(235),o=r(238),a=r(181)("IE_PROTO"),s=function(){},u=function(){var t,e=r(179)("iframe"),n=o.length;for(e.style.display="none",r(239).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[a]=t):r=u(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(321),i=r(238);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(119),i=r(176),o=r(322)(!1),a=r(181)("IE_PROTO");t.exports=function(t,e){var r,s=i(t),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(176),i=r(236),o=r(323);t.exports=function(t){return function(e,r,a){var s,u=n(e),c=i(u.length),l=o(a,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(180),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(119),i=r(325),o=r(181)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(177);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(180),i=r(177);t.exports=function(t){return function(e,r){var o,a,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(t,e,r){var n=r(80),i=r(241);t.exports=r(60).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},function(t,e,r){"use strict";var n,i,o,a,s=r(178),u=r(58),c=r(148),l=r(242),f=r(107),p=r(89),d=r(149),h=r(385),v=r(386),y=r(298),m=r(299).set,b=r(390)(),g=r(205),O=r(300),_=r(391),w=r(301),k=u.TypeError,S=u.process,j=S&&S.versions,x=j&&j.v8||"",$=u.Promise,C="process"==l(S),A=function(){},R=i=g.f,E=!!function(){try{var t=$.resolve(1),e=(t.constructor={})[r(61)("species")]=function(t){t(A,A)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e&&0!==x.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),Q=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var r=t._c;b((function(){for(var n=t._v,i=1==t._s,o=0,a=function(e){var r,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&q(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?c(k("Promise-chain cycle")):(o=Q(r))?o.call(r,u,c):u(r)):c(n)}catch(t){l&&!a&&l.exit(),c(t)}};r.length>o;)a(r[o++]);t._c=[],t._n=!1,e&&!t._h&&M(t)}))}},M=function(t){m.call(u,(function(){var e,r,n,i=t._v,o=I(t);if(o&&(e=O((function(){C?S.emit("unhandledRejection",i,t):(r=u.onunhandledrejection)?r({promise:t,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=C||I(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},q=function(t){m.call(u,(function(){var e;C?S.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},D=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()),P(e,!0))},T=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw k("Promise can't be resolved itself");(e=Q(t))?b((function(){var n={_w:r,_d:!1};try{e.call(t,c(T,n,1),c(D,n,1))}catch(t){D.call(n,t)}})):(r._v=t,r._s=1,P(r,!1))}catch(t){D.call({_w:r,_d:!1},t)}}};E||($=function(t){h(this,$,"Promise","_h"),d(t),n.call(this);try{t(c(T,this,1),c(D,this,1))}catch(t){D.call(this,t)}},(n=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=r(392)($.prototype,{then:function(t,e){var r=R(y(this,$));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=C?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(T,t,1),this.reject=c(D,t,1)},g.f=R=function(t){return t===$||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!E,{Promise:$}),r(183)($,"Promise"),r(393)("Promise"),a=r(60).Promise,f(f.S+f.F*!E,"Promise",{reject:function(t){var e=R(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!E),"Promise",{resolve:function(t){return w(s&&this===a?$:this,t)}}),f(f.S+f.F*!(E&&r(394)((function(t){$.all(t).catch(A)}))),"Promise",{all:function(t){var e=this,r=R(e),n=r.resolve,i=r.reject,o=O((function(){var r=[],o=0,a=1;v(t,!1,(function(t){var s=o++,u=!1;r.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,r[s]=t,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=R(e),n=r.reject,i=O((function(){v(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(148),i=r(387),o=r(388),a=r(80),s=r(236),u=r(241),c={},l={};(e=t.exports=function(t,e,r,f,p){var d,h,v,y,m=p?function(){return t}:u(t),b=n(r,f,e?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=s(t.length);d>g;g++)if((y=e?b(a(h=t[g])[0],h[1]):b(t[g]))===c||y===l)return y}else for(v=m.call(t);!(h=v.next()).done;)if((y=i(v,b,h.value,e))===c||y===l)return y}).BREAK=c,e.RETURN=l},function(t,e,r){var n=r(80);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(117),i=r(61)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(58),i=r(299).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(147)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var f=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),r=function(){p.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){var n=r(58).navigator;t.exports=n&&n.userAgent||""},function(t,e,r){var n=r(108);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e,r){"use strict";var n=r(58),i=r(60),o=r(118),a=r(109),s=r(61)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(61)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e,r){"use strict";var n=r(107),i=r(60),o=r(58),a=r(298),s=r(301);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then((function(){return r}))}:t,r?function(r){return s(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){"use strict";var n=r(107),i=r(205),o=r(300);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){var n=r(107);n(n.S+n.F*!r(109),"Object",{defineProperties:r(235)})},function(t,e,r){var n=r(89),i=r(399).onFreeze;r(400)("freeze",(function(t){return function(e){return t&&n(e)?t(i(e)):e}}))},function(t,e,r){var n=r(182)("meta"),i=r(89),o=r(119),a=r(118).f,s=0,u=Object.isExtensible||function(){return!0},c=!r(150)((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[n].w},onFreeze:function(t){return c&&f.NEED&&u(t)&&!o(t,n)&&l(t),t}}},function(t,e,r){var n=r(107),i=r(60),o=r(150);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}}]]);jQuery.event.special.touchstart={setup:function(_,ns,handle){this.addEventListener('touchstart',handle,{passive:!0})}};!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).outdatedBrowserRework=e()}(function(){return function n(i,a,s){function t(o,e){if(!a[o]){if(!i[o]){var r="function"==typeof require&&require;if(!e&&r)return r(o,!0);if(l)return l(o,!0);throw(r=new Error("Cannot find module '"+o+"'")).code="MODULE_NOT_FOUND",r}r=a[o]={exports:{}},i[o][0].call(r.exports,function(e){return t(i[o][1][e]||e)},r,r.exports,n,i,a,s)}return a[o].exports}for(var l="function"==typeof require&&require,e=0;e<s.length;e++)t(s[e]);return t}({1:[function(e,o,r){var a={Chrome:57,Edge:39,Safari:10,"Mobile Safari":10,Opera:50,Firefox:50,Vivaldi:1,IE:!1},d={12:.1,13:21,14:31,15:39,16:41,17:42,18:44};o.exports=function(t,e){var o,l=e.browserSupport?function(e,o){for(var r in o)e[r]=o[r];return e}(a,e.browserSupport):a,r=e.requiredCssProperty||!1,n=t.browser.name;e.requireChromeOnAndroid&&(o="Android"===t.os.name&&"Chrome"!==t.browser.name);var i,u=(i=!1,n in l?l[n]||(i=!0):e.isUnknownBrowserOK||(i=!0),i);return{isAndroidButNotChrome:o,isBrowserOutOfDate:function(){var e=t.browser.version,o=t.browser.major,r=t.os.name,i=t.os.version;"Edge"===n&&o<=18&&(o=d[o]),"Firefox"===n&&"iOS"===r&&(n="Mobile Safari",o=(e=i).substring(0,i.indexOf(".")));var a,s=!1;return u?s=!0:n in l&&("object"==typeof(a=l[n])?(r=a.major,i=a.minor,(o<r||o==r&&e.replace(/[^\d.]/g,"").split(".")[1]<i)&&(s=!0)):o<a&&(s=!0)),s}(),isBrowserUnsupported:u,isPropertySupported:function(e){if(!e)return!0;var o=document.createElement("div"),r=["khtml","ms","o","moz","webkit"],i=r.length;if(e in o.style)return!0;for(e=e.replace(/^[a-z]/,function(e){return e.toUpperCase()});i--;){if(r[i]+e in o.style)return!0}return!1}(r)}}},{}],2:[function(e,o,r){o.exports=function t(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];for(var e=arguments[0],o=1;o<arguments.length;o++){var r,i=arguments[o];for(r in i){var a=e[r],s=i[r];e[r]="object"!=typeof s||null===s?s:t("object"!=typeof a||null===a?{}:a,s)}}return e}},{}],3:[function(e,o,r){var f=e("./evaluateBrowser"),v=e("./languages.json"),y=e("./extend"),S=e("ua-parser-js"),k="#f25648",A="white";o.exports=function(h){var e=function(){var e=new S(navigator.userAgent).getResult(),r=document.getElementById("outdated");h=h||{};var o=window.navigator.language||window.navigator.userLanguage,i=h.backgroundColor||k,a=h.textColor||A,s=h.fullscreen||!1,t=h.language||o.slice(0,2),l="web";"Android"===e.os.name?l="googlePlay":"iOS"===e.os.name&&(l="appStore");var n,u,d,p,w,c=!1,g=!0,m=function(e){var o;o=e,r.style.opacity=o/100,r.style.filter="alpha(opacity="+o+")",1===e&&(r.style.display="table"),100===e&&(g=!0)},e=f(e,h);if(e.isAndroidButNotChrome||e.isBrowserOutOfDate||!e.isPropertySupported){if(c=e.isBrowserUnsupported,g&&"1"!==r.style.opacity){g=!1;for(var b=1;b<=100;b++)setTimeout(function(e){return function(){m(e)}}(b),8*b)}e=document.getElementById("outdated");s&&e.classList.add("fullscreen"),e.innerHTML=(p=v[d=t]||v.en,w=h.messages&&h.messages[d],d=y({},p,w),p={web:"<p>"+d.update.web+(d.url?'<a id="buttonUpdateBrowser" rel="nofollow" target="_blank" href="'+d.url+'">'+d.callToAction+"</a>":"")+"</p>",googlePlay:"<p>"+d.update.googlePlay+'<a id="buttonUpdateBrowser" rel="nofollow" href="https://play.google.com/store/apps/details?id=com.android.chrome">'+d.callToAction+"</a></p>",appStore:"<p>"+d.update[l]+"</p>"}[l],w=d.outOfDate,c&&d.unsupported&&(w=d.unsupported),'<div><h6>'+w+"</h6>"+p+'<a href="#" id="buttonCloseUpdateBrowser" title="'+d.close+'">&times;</a></div>'),n=document.getElementById("buttonCloseUpdateBrowser"),u=document.getElementById("buttonUpdateBrowser"),n.onmousedown=function(){return!(r.style.display="none")}}},o=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){o&&o(),e()}}},{"./evaluateBrowser":1,"./extend":2,"./languages.json":4,"ua-parser-js":5}],4:[function(e,o,r){o.exports={ko:{outOfDate:"최신 브라우저가 아닙니다!",update:{web:"웹사이트를 제대로 보려면 브라우저를 업데이트하세요.",googlePlay:"Google Play에서 Chrome을 설치하세요",appStore:"설정 앱에서 iOS를 업데이트하세요"},url:"https://browser-update.org/update-browser.html",callToAction:"지금 브라우저 업데이트하기",close:"닫기"},ja:{outOfDate:"古いブラウザをお使いのようです。",update:{web:"ウェブサイトを正しく表示できるように、ブラウザをアップデートしてください。",googlePlay:"Google PlayからChromeをインストールしてください",appStore:"設定からiOSをアップデートしてください"},url:"https://browser-update.org/update-browser.html",callToAction:"今すぐブラウザをアップデートする",close:"閉じる"},br:{outOfDate:"O seu navegador est&aacute; desatualizado!",update:{web:"Atualize o seu navegador para ter uma melhor experi&ecirc;ncia e visualiza&ccedil;&atilde;o deste site. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Atualize o seu navegador agora",close:"Fechar"},ca:{outOfDate:"El vostre navegador no està actualitzat!",update:{web:"Actualitzeu el vostre navegador per veure correctament aquest lloc web. ",googlePlay:"Instal·leu Chrome des de Google Play",appStore:"Actualitzeu iOS des de l'aplicació Configuració"},url:"https://browser-update.org/update-browser.html",callToAction:"Actualitzar el meu navegador ara",close:"Tancar"},zh:{outOfDate:"您的浏览器已过时",update:{web:"要正常浏览本网站请升级您的浏览器。",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"现在升级",close:"关闭"},cz:{outOfDate:"Váš prohlížeč je zastaralý!",update:{web:"Pro správné zobrazení těchto stránek aktualizujte svůj prohlížeč. ",googlePlay:"Nainstalujte si Chrome z Google Play",appStore:"Aktualizujte si systém iOS"},url:"https://browser-update.org/update-browser.html",callToAction:"Aktualizovat nyní svůj prohlížeč",close:"Zavřít"},da:{outOfDate:"Din browser er forældet!",update:{web:"Opdatér din browser for at få vist denne hjemmeside korrekt. ",googlePlay:"Installér venligst Chrome fra Google Play",appStore:"Opdatér venligst iOS"},url:"https://browser-update.org/update-browser.html",callToAction:"Opdatér din browser nu",close:"Luk"},de:{outOfDate:"Ihr Browser ist veraltet!",update:{web:"Bitte aktualisieren Sie Ihren Browser, um diese Website korrekt darzustellen. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Den Browser jetzt aktualisieren ",close:"Schließen"},ee:{outOfDate:"Sinu veebilehitseja on vananenud!",update:{web:"Palun uuenda oma veebilehitsejat, et näha lehekülge korrektselt. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Uuenda oma veebilehitsejat kohe",close:"Sulge"},en:{outOfDate:"Your browser is out-of-date!",update:{web:"Update your browser to view this website correctly. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Update my browser now",close:"Close"},es:{outOfDate:"¡Tu navegador está anticuado!",update:{web:"Actualiza tu navegador para ver esta página correctamente. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Actualizar mi navegador ahora",close:"Cerrar"},fa:{rightToLeft:!0,outOfDate:"مرورگر شما منسوخ شده است!",update:{web:"جهت مشاهده صحیح این وبسایت، مرورگرتان را بروز رسانی نمایید. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"همین حالا مرورگرم را بروز کن",close:"Close"},fi:{outOfDate:"Selaimesi on vanhentunut!",update:{web:"Lataa ajantasainen selain n&auml;hd&auml;ksesi t&auml;m&auml;n sivun oikein. ",googlePlay:"Asenna uusin Chrome Google Play -kaupasta",appStore:"Päivitä iOS puhelimesi asetuksista"},url:"https://browser-update.org/update-browser.html",callToAction:"P&auml;ivit&auml; selaimeni nyt ",close:"Sulje"},fr:{outOfDate:"Votre navigateur n'est plus compatible !",update:{web:"Mettez à jour votre navigateur pour afficher correctement ce site Web. ",googlePlay:"Merci d'installer Chrome depuis le Google Play Store",appStore:"Merci de mettre à jour iOS depuis l'application Réglages"},url:"https://browser-update.org/update-browser.html",callToAction:"Mettre à jour maintenant ",close:"Fermer"},hu:{outOfDate:"A böngészője elavult!",update:{web:"Firssítse vagy cserélje le a böngészőjét. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"A böngészőm frissítése ",close:"Close"},id:{outOfDate:"Browser yang Anda gunakan sudah ketinggalan zaman!",update:{web:"Perbaharuilah browser Anda agar bisa menjelajahi website ini dengan nyaman. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Perbaharui browser sekarang ",close:"Close"},it:{outOfDate:"Il tuo browser non &egrave; aggiornato!",update:{web:"Aggiornalo per vedere questo sito correttamente. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Aggiorna ora",close:"Chiudi"},lt:{outOfDate:"Jūsų naršyklės versija yra pasenusi!",update:{web:"Atnaujinkite savo naršyklę, kad galėtumėte peržiūrėti šią svetainę tinkamai. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Atnaujinti naršyklę ",close:"Close"},nl:{outOfDate:"Je gebruikt een oude browser!",update:{web:"Update je browser om deze website correct te bekijken. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Update mijn browser nu ",close:"Sluiten"},pl:{outOfDate:"Twoja przeglądarka jest przestarzała!",update:{web:"Zaktualizuj swoją przeglądarkę, aby poprawnie wyświetlić tę stronę. ",googlePlay:"Proszę zainstalować przeglądarkę Chrome ze sklepu Google Play",appStore:"Proszę zaktualizować iOS z Ustawień"},url:"https://browser-update.org/update-browser.html",callToAction:"Zaktualizuj przeglądarkę już teraz",close:"Zamknij"},pt:{outOfDate:"O seu browser est&aacute; desatualizado!",update:{web:"Atualize o seu browser para ter uma melhor experi&ecirc;ncia e visualiza&ccedil;&atilde;o deste site. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Atualize o seu browser agora",close:"Fechar"},ro:{outOfDate:"Browserul este învechit!",update:{web:"Actualizați browserul pentru a vizualiza corect acest site. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Actualizați browserul acum!",close:"Close"},ru:{outOfDate:"Ваш браузер устарел!",update:{web:"Обновите ваш браузер для правильного отображения этого сайта. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Обновить мой браузер ",close:"Закрыть"},si:{outOfDate:"Vaš brskalnik je zastarel!",update:{web:"Za pravilen prikaz spletne strani posodobite vaš brskalnik. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Posodobi brskalnik ",close:"Zapri"},sv:{outOfDate:"Din webbläsare stödjs ej längre!",update:{web:"Uppdatera din webbläsare för att webbplatsen ska visas korrekt. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Uppdatera min webbläsare nu",close:"Stäng"},ua:{outOfDate:"Ваш браузер застарів!",update:{web:"Оновіть ваш браузер для правильного відображення цього сайта. ",googlePlay:"Please install Chrome from Google Play",appStore:"Please update iOS from the Settings App"},url:"https://browser-update.org/update-browser.html",callToAction:"Оновити мій браузер ",close:"Закрити"}}},{}],5:[function(e,k,A){!function(a,p){"use strict";var w="function",e="undefined",o="model",r="name",i="type",s="vendor",t="version",l="architecture",n="console",u="mobile",d="tablet",c="smarttv",g="wearable",m={extend:function(e,o){var r,i={};for(r in e)o[r]&&o[r].length%2==0?i[r]=o[r].concat(e[r]):i[r]=e[r];return i},has:function(e,o){return"string"==typeof e&&-1!==o.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:p},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},b={rgx:function(e,o){for(var r,i,a,s,t,l=0;l<o.length&&!s;){for(var n=o[l],u=o[l+1],d=r=0;d<n.length&&!s;)if(s=n[d++].exec(e))for(i=0;i<u.length;i++)t=s[++r],"object"==typeof(a=u[i])&&0<a.length?2==a.length?typeof a[1]==w?this[a[0]]=a[1].call(this,t):this[a[0]]=a[1]:3==a.length?typeof a[1]!=w||a[1].exec&&a[1].test?this[a[0]]=t?t.replace(a[1],a[2]):p:this[a[0]]=t?a[1].call(this,t,a[2]):p:4==a.length&&(this[a[0]]=t?a[3].call(this,t.replace(a[1],a[2])):p):this[a]=t||p;l+=2}},str:function(e,o){for(var r in o)if("object"==typeof o[r]&&0<o[r].length){for(var i=0;i<o[r].length;i++)if(m.has(o[r][i],e))return"?"===r?p:r}else if(m.has(o[r],e))return"?"===r?p:r;return e}},h={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},f={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[r,t],[/(opios)[\/\s]+([\w\.]+)/i],[[r,"Opera Mini"],t],[/\s(opr)\/([\w\.]+)/i],[[r,"Opera"],t],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[r,t],[/(konqueror)\/([\w\.]+)/i],[[r,"Konqueror"],t],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[r,"IE"],t],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[r,"Edge"],t],[/(yabrowser)\/([\w\.]+)/i],[[r,"Yandex"],t],[/(Avast)\/([\w\.]+)/i],[[r,"Avast Secure Browser"],t],[/(AVG)\/([\w\.]+)/i],[[r,"AVG Secure Browser"],t],[/(puffin)\/([\w\.]+)/i],[[r,"Puffin"],t],[/(focus)\/([\w\.]+)/i],[[r,"Firefox Focus"],t],[/(opt)\/([\w\.]+)/i],[[r,"Opera Touch"],t],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[r,"UCBrowser"],t],[/(comodo_dragon)\/([\w\.]+)/i],[[r,/_/g," "],t],[/(windowswechat qbcore)\/([\w\.]+)/i],[[r,"WeChat(Win) Desktop"],t],[/(micromessenger)\/([\w\.]+)/i],[[r,"WeChat"],t],[/(brave)\/([\w\.]+)/i],[[r,"Brave"],t],[/(qqbrowserlite)\/([\w\.]+)/i],[r,t],[/(QQ)\/([\d\.]+)/i],[r,t],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[r,t],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[r,t],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[r,t],[/(MetaSr)[\/\s]?([\w\.]+)/i],[r],[/(LBBROWSER)/i],[r],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[t,[r,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[t,[r,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[r,t],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[t,[r,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[r,/(.+)/,"$1 WebView"],t],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[r,/(.+(?:g|us))(.+)/,"$1 $2"],t],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[t,[r,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[r,"Sailfish Browser"],t],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[r,t],[/(dolfin)\/([\w\.]+)/i],[[r,"Dolphin"],t],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[r,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[r,"Chrome"],t],[/(coast)\/([\w\.]+)/i],[[r,"Opera Coast"],t],[/fxios\/([\w\.-]+)/i],[t,[r,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[t,[r,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[t,r],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[r,"GSA"],t],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[r,[t,b.str,h.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[r,t],[/(navigator|netscape)\/([\w\.-]+)/i],[[r,"Netscape"],t],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[r,t]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[l,"amd64"]],[/(ia32(?=;))/i],[[l,m.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[l,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[l,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[l,/ower/,"",m.lowerize]],[/(sun4\w)[;\)]/i],[[l,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[l,m.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[o,s,[i,d]],[/applecoremedia\/[\w\.]+\((ipad)/],[o,[s,"Apple"],[i,d]],[/(apple\s{0,1}tv)/i],[[o,"Apple TV"],[s,"Apple"],[i,c]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[s,o,[i,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[o,[s,"Amazon"],[i,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[o,b.str,h.device.amazon.model],[s,"Amazon"],[i,u]],[/android.+aft([bms])\sbuild/i],[o,[s,"Amazon"],[i,c]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[o,s,[i,u]],[/\((ip[honed|\s\w*]+);/i],[o,[s,"Apple"],[i,u]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[s,o,[i,u]],[/\(bb10;\s(\w+)/i],[o,[s,"BlackBerry"],[i,u]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[o,[s,"Asus"],[i,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[s,"Sony"],[o,"Xperia Tablet"],[i,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[s,"Sony"],[i,u]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[s,o,[i,n]],[/android.+;\s(shield)\sbuild/i],[o,[s,"Nvidia"],[i,n]],[/(playstation\s[34portablevi]+)/i],[o,[s,"Sony"],[i,n]],[/(sprint\s(\w+))/i],[[s,b.str,h.device.sprint.vendor],[o,b.str,h.device.sprint.model],[i,u]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[s,[o,/_/g," "],[i,u]],[/(nexus\s9)/i],[o,[s,"HTC"],[i,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29|ele-l29)/i],[o,[s,"Huawei"],[i,u]],[/android.+(bah2?-a?[lw]\d{2})/i],[o,[s,"Huawei"],[i,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[s,o,[i,u]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[o,[s,"Microsoft"],[i,n]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[s,"Microsoft"],[i,u]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[o,[s,"Motorola"],[i,u]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[o,[s,"Motorola"],[i,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,m.trim],[o,m.trim],[i,c]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[s,"Samsung"],[i,c]],[/\(dtv[\);].+(aquos)/i],[o,[s,"Sharp"],[i,c]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[s,"Samsung"],o,[i,d]],[/smart-tv.+(samsung)/i],[s,[i,c],o],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[s,"Samsung"],o,[i,u]],[/sie-(\w*)/i],[o,[s,"Siemens"],[i,u]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[s,"Nokia"],o,[i,u]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[o,[s,"Acer"],[i,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[o,[s,"LG"],[i,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[s,"LG"],o,[i,d]],[/(lg)netcast\.tv/i],[s,o,[i,c]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[o,[s,"LG"],[i,u]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[s,o,[i,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[o,[s,"Lenovo"],[i,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[s,o,[i,u]],[/linux;.+((jolla));/i],[s,o,[i,u]],[/((pebble))app\/[\d\.]+\s/i],[s,o,[i,g]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[s,o,[i,u]],[/crkey/i],[[o,"Chromecast"],[s,"Google"],[i,c]],[/android.+;\s(glass)\s\d/i],[o,[s,"Google"],[i,g]],[/android.+;\s(pixel c)[\s)]/i],[o,[s,"Google"],[i,d]],[/android.+;\s(pixel([23])?(xl)?)[\s)]/i],[o,[s,"Google"],[i,u]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]?[\w\s]+))\s+build/i],[[o,/_/g," "],[s,"Xiaomi"],[i,u]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]?[\w\s]+))\s+build/i],[[o,/_/g," "],[s,"Xiaomi"],[i,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[o,[s,"Meizu"],[i,u]],[/(mz)-([\w-]{2,})/i],[[s,"Meizu"],o,[i,u]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[o,[s,"OnePlus"],[i,u]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[o,[s,"RCA"],[i,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[o,[s,"Dell"],[i,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[o,[s,"Verizon"],[i,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[s,"Barnes & Noble"],o,[i,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[o,[s,"NuVision"],[i,d]],[/android.+;\s(k88)\sbuild/i],[o,[s,"ZTE"],[i,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[o,[s,"Swiss"],[i,u]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[o,[s,"Swiss"],[i,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[o,[s,"Zeki"],[i,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[s,"Dragon Touch"],o,[i,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[o,[s,"Insignia"],[i,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[o,[s,"NextBook"],[i,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[s,"Voice"],o,[i,u]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[s,"LvTel"],o,[i,u]],[/android.+;\s(PH-1)\s/i],[o,[s,"Essential"],[i,u]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[o,[s,"Envizen"],[i,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[s,o,[i,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[o,[s,"MachSpeed"],[i,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[s,o,[i,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[o,[s,"Rotor"],[i,d]],[/android.+(KS(.+))\s+build/i],[o,[s,"Amazon"],[i,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[s,o,[i,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,m.lowerize],s,o],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,c]],[/(android[\w\.\s\-]{0,9});.+build/i],[o,[s,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[t,[r,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[t,[r,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[r,t],[/rv\:([\w\.]{1,9}).+(gecko)/i],[t,r]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[r,t],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[r,[t,b.str,h.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[r,"Windows"],[t,b.str,h.os.windows.version]],[/\((bb)(10);/i],[[r,"BlackBerry"],t],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[r,t],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[r,"Symbian"],t],[/\((series40);/i],[r],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[r,"Firefox OS"],t],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[r,t],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[r,"Chromium OS"],t],[/(sunos)\s?([\w\.\d]*)/i],[[r,"Solaris"],t],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[r,t],[/(haiku)\s(\w+)/i],[r,t],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[t,/_/g,"."],[r,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[r,"Mac OS"],[t,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[r,t]]},v=function(e,o){if("object"==typeof e&&(o=e,e=p),!(this instanceof v))return new v(e,o).getResult();var r=e||(a&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:""),i=o?m.extend(f,o):f;return this.getBrowser=function(){var e={name:p,version:p};return b.rgx.call(e,r,i.browser),e.major=m.major(e.version),e},this.getCPU=function(){var e={architecture:p};return b.rgx.call(e,r,i.cpu),e},this.getDevice=function(){var e={vendor:p,model:p,type:p};return b.rgx.call(e,r,i.device),e},this.getEngine=function(){var e={name:p,version:p};return b.rgx.call(e,r,i.engine),e},this.getOS=function(){var e={name:p,version:p};return b.rgx.call(e,r,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=e,this},this};v.VERSION="0.7.22",v.BROWSER={NAME:r,MAJOR:"major",VERSION:t},v.CPU={ARCHITECTURE:l},v.DEVICE={MODEL:o,VENDOR:s,TYPE:i,CONSOLE:n,MOBILE:u,SMARTTV:c,TABLET:d,WEARABLE:g,EMBEDDED:"embedded"},v.ENGINE={NAME:r,VERSION:t},v.OS={NAME:r,VERSION:t},typeof A!=e?(typeof k!=e&&k.exports&&(A=k.exports=v),A.UAParser=v):a&&(a.UAParser=v);var y,S=a&&(a.jQuery||a.Zepto);S&&!S.ua&&(y=new v,S.ua=y.getResult(),S.ua.get=function(){return y.getUA()},S.ua.set=function(e){y.setUA(e);var o,r=y.getResult();for(o in r)S.ua[o]=r[o]})}("object"==typeof window?window:this)},{}]},{},[3])(3)});outdatedBrowserRework({browserSupport:{Chrome:58,Edge:39,Safari:12,Firefox:55,Opera:45,IE:11},isUnknownBrowserOK:!0});$(function(){$('.language-selector').find('.dropdown-menu').css('min-width',($('.language-selector').outerWidth()+16)+'px');$('.currency-selector').find('.dropdown-menu').css('min-width',($('.currency-selector').outerWidth()+16)+'px');$('[data-toggle="tooltip"]').tooltip({trigger:'hover'});$('body').on('click','.add-to-cart',function(){$(this).tooltip('hide').attr('disabled',!0)});$('body').on('hidden.bs.modal','#blockcart-modal',function(){$('.add-to-cart').removeAttr('disabled')});$('body').on('click','.shopping-cart-block',function(){$('.user-block').slideUp();$('.shopping-cart-details').slideToggle()});$('body').on('click','.account-block',function(){$('.shopping-cart-details').slideUp();$('.user-block').slideToggle()});$('[data-ob]').attr('tabindex',0);$('body').on('click','[data-ob]',function(){if(!$(this).hasClass('no-redirect')){var link=atob($(this).data('ob'));$(this).hasClass('blank')?window.open(link):window.location.href=link}})});$(function(){if($('#slider-container').length){$('#slider-container').owlCarousel({items:1,loop:!0,lazyLoad:!0,animateOut:pte_slideranimateout,animateIn:pte_slideranimatein,autoplay:pte_sliderautoscroll,autoplayTimeout:pte_sliderspeed+4000,autoplayHoverPause:!0,smartSpeed:pte_sliderspeed,nav:!0,navContainer:'.slider-nav',navText:['&lsaquo;','&rsaquo;'],dots:!0,dotsContainer:'.slider-dots'});$('#slider-container').find('.cloned').find('h1').remove();$('#slider-container').on('translate.owl.carousel',function(){$(this).find('.slider-caption').fadeOut('fast').removeClass('animated '+pte_captionanimation)});$('#slider-container').on('translated.owl.carousel',function(){$(this).find('.active').find('.slider-caption').fadeIn('slow').addClass('animated '+pte_captionanimation)})}});$(function(){productImagesCarousel=function(){$('#js-product-images').owlCarousel({items:4,smartSpeed:1000,nav:!0,navText:['&lsaquo;','&rsaquo;'],dots:!1})};productImagesCarousel();$('body').on('shown.bs.modal','.quickview',productImagesCarousel);prestashop.on('updatedProduct',productImagesCarousel);$('body').on('shown.bs.modal','#product-modal',function(){$('#product-images-modal').owlCarousel({items:1,smartSpeed:1000,nav:!0,navText:['&lsaquo;','&rsaquo;'],dots:!1})})});$(function(){$('.products-carousel .owl-carousel').owlCarousel({lazyLoad:!0,responsive:{0:{items:1},360:{items:2},576:{items:3},992:{items:4},1200:{items:5}},smartSpeed:1000,nav:!0,navText:['&lsaquo;','&rsaquo;'],dots:!1})})