var WPRecipeMaker;!function(){var e={26262:function(e,t,r){"use strict";r(22980),r(38472),r(54883),r(68995);var n,i=r(5831);window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.conversion={init(){document.addEventListener("click",(function(e){e.target.matches(".wprm-unit-conversion")&&(e.preventDefault(),WPRecipeMaker.conversion.clickSystem(e.target))}),!1),document.addEventListener("change",(function(e){e.target.matches(".wprm-unit-conversion-dropdown")&&WPRecipeMaker.conversion.changeDropdown(e.target)}),!1),document.addEventListener("wprm-recipe-change",(e=>{"unitSystem"===e.detail.type&&window.WPRecipeMaker.manager.getRecipe(e.detail.id).then((e=>{e&&(WPRecipeMaker.conversion.updateSelectors(e),WPRecipeMaker.conversion.updateTemperatures(e),wprmp_public.settings.unit_conversion_enabled&&wprmp_public.settings.unit_conversion_remember&&localStorage.setItem("wprm-unit-system",e.data.currentSystem))}))})),setTimeout((()=>{WPRecipeMaker.conversion.setPreferedUnitSystem()}),100)},setPreferedUnitSystem(){wprmp_public.settings.unit_conversion_enabled&&wprmp_public.settings.unit_conversion_remember&&function(){var e=localStorage.getItem("wprm-unit-system");if(e&&(e=parseInt(e),!isNaN(e)&&0<e)){var t=window.WPRecipeMaker.manager.findRecipesOnPage();for(var r of t)window.WPRecipeMaker.manager.getRecipe(r).then((t=>{t&&t.data.currentSystem!==e&&t.setUnitSystem(e)}))}}()},clickSystem(e){var t=e.dataset.recipe,r=parseInt(e.dataset.system);e.classList.contains("wprmpuc-active")||(window.WPRecipeMaker.hasOwnProperty("analytics")&&window.WPRecipeMaker.analytics.registerActionOnce(t,wprm_public.post_id,"unit-conversion",{type:"link"}),this.setSystem(t,r))},changeDropdown(e){var t=e.dataset.recipe,r=parseInt(e.value);window.WPRecipeMaker.hasOwnProperty("analytics")&&window.WPRecipeMaker.analytics.registerActionOnce(t,wprm_public.post_id,"unit-conversion",{type:"dropdown"}),this.setSystem(t,r)},setSystem(e,t){window.WPRecipeMaker.manager.getRecipe(e).then((e=>{e&&e.setUnitSystem(t)}))},updateSelectors(e){var t=document.querySelectorAll(".wprm-unit-conversion-container-"+e.id);for(var r of t){var n=r.querySelector(".wprm-unit-conversion-dropdown");if(n)n.value=e.data.currentSystem;else{var i=r.querySelectorAll(".wprm-unit-conversion");for(var o of i){var a=parseInt(o.dataset.system);e.data.currentSystem===a?o.classList.add("wprmpuc-active"):o.classList.remove("wprmpuc-active")}}}},updateTemperatures(e){if("change"===wprmp_public.settings.unit_conversion_temperature){var t=wprmp_public.settings["unit_conversion_system_".concat(e.data.currentSystem,"_temperature")],r=document.querySelectorAll("#wprm-recipe-container-".concat(e.id,", .wprm-recipe-roundup-item-").concat(e.id,", .wprm-print-recipe-").concat(e.id,", .wprm-recipe-").concat(e.id,"-instructions-container"));for(var n of r){var o=n.querySelectorAll(".wprm-temperature-container");for(var a of o){var s=WPRecipeMaker.temperature.getData(a);if((a.dataset.hasOwnProperty("currentUnit")?a.dataset.currentUnit:s.unit)!==t){var c=void 0;if(t===s.unit)c=s.value;else{var u=(0,i.L)(s.value);c="C"===t?5*(u-32)/9:9*u/5+32,c=(0,i.o)(c,0)}a.querySelector(".wprm-temperature-value").innerHTML=c,a.querySelector(".wprm-temperature-unit").innerHTML=" °".concat(t),a.dataset.currentUnit=t}}}}}},n=()=>{window.WPRecipeMaker.conversion.init()},"loading"!=document.readyState?n():document.addEventListener("DOMContentLoaded",n)},22980:function(e,t,r){"use strict";r(54883),r(68995),r(193),r(35054);var n,i=r(1001),o=(r(79608),r(5831));window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.advancedServings={load(){document.addEventListener("wprm-recipe-change",(e=>{"servings"===e.detail.type&&window.WPRecipeMaker.manager.getRecipe(e.detail.id).then((e=>{e&&WPRecipeMaker.advancedServings.adjustedServingsDirectly(e)})),"advancedServings"===e.detail.type&&window.WPRecipeMaker.manager.getRecipe(e.detail.id).then((e=>{e&&WPRecipeMaker.advancedServings.updateAdvancedServingsDisplay(e)})),"unitSystem"===e.detail.type&&window.WPRecipeMaker.manager.getRecipe(e.detail.id).then((e=>{e&&WPRecipeMaker.advancedServings.updateUnitOnUnitSystemChange(e)}))})),window.WPRecipeMaker.advancedServings.init()},init(){if(!document.querySelector("body").classList.contains("wprm-print")){var e=document.querySelectorAll("span.wprm-recipe-advanced-servings-input");for(var t of e){var r=document.createElement("a");r.innerHTML=t.innerHTML,r.setAttribute("href","#"),r.setAttribute("role","button");var n=[...t.attributes].reduce(((e,t)=>(e[t.name]=t.value,e)),{});for(var o of Object.keys(n))r.setAttribute(o,n[o]);t.parentNode.replaceChild(r,t),r.onclick=e=>{e.preventDefault(),WPRecipeMaker.advancedServings.onClickInput(e.target)},n.hasOwnProperty("aria-label")&&(0,i.ZP)(r,{theme:"wprm",content:n["aria-label"]})}}},onClickInput(e){e.classList.contains("wprm-recipe-advanced-servings-input-shape")?WPRecipeMaker.advancedServings.toggleShape(e):e.classList.contains("wprm-recipe-advanced-servings-input-unit")?WPRecipeMaker.advancedServings.toggleUnit(e):WPRecipeMaker.advancedServings.changeNumber(e)},changeNumber(e){WPRecipeMaker.advancedServings.getRecipeFromElem(e).then((t=>{if(t){var r=e.getAttribute("aria-label"),n=e.innerText,i=prompt("".concat(r,":"),n);if(i){var o=WPRecipeMaker.advancedServings.parse(i);if(o&&0<o){var a={};a[e.dataset.type]=o,t.setAdvancedServings(a)}}}}))},toggleShape(e){WPRecipeMaker.advancedServings.getRecipeFromElem(e).then((e=>{if(e){var t="round"===e.data.currentAdvancedServings.shape?"rectangle":"round";e.setAdvancedServings({shape:t})}}))},toggleUnit(e){WPRecipeMaker.advancedServings.getRecipeFromElem(e).then((e=>{if(e){var t="cm"===e.data.currentAdvancedServings.unit?"inch":"cm";e.setAdvancedServings({unit:t})}}))},adjustedServingsDirectly(e){var t=WPRecipeMaker.advancedServings.getServingsFromAdvancedServings(e),r=e.data.currentServingsParsed;r!==t&&(r===e.data.originalServingsParsed?e.setAdvancedServings(e.data.originalAdvancedServings):e.setAdvancedServings({diameter:"?",width:"?",length:"?"}))},getRecipeFromElem(e){for(var t=!1,r=e.parentNode;r&&r!=document;r=r.parentNode)if(r.matches(".wprm-recipe-advanced-servings-container")){t=r;break}return t?window.WPRecipeMaker.manager.getRecipe(t.dataset.recipe):Promise.resolve(!1)},updateUnitOnUnitSystemChange(e){if(wprmp_public.settings.unit_conversion_advanced_servings_conversion){var t=wprmp_public.settings["unit_conversion_system_".concat(e.data.currentSystem,"_length_unit")];t!==e.data.currentAdvancedServings.unit&&e.setAdvancedServings({unit:t})}},updateAdvancedServingsDisplay(e){var t=document.querySelectorAll(".wprm-recipe-advanced-servings-".concat(e.id,"-container")),r=e.data.currentAdvancedServings;for(var n of t){var i=n.querySelector(".wprm-recipe-advanced-servings-input-shape");i.innerHTML=i.dataset["shape".concat(r.shape[0].toUpperCase()+r.shape.slice(1))],"round"===r.shape?(n.querySelector(".wprm-recipe-advanced-servings-round").style.display="",n.querySelector(".wprm-recipe-advanced-servings-rectangle").style.display="none"):(n.querySelector(".wprm-recipe-advanced-servings-rectangle").style.display="",n.querySelector(".wprm-recipe-advanced-servings-round").style.display="none");var o=n.querySelectorAll(".wprm-recipe-advanced-servings-input-unit");for(var a of o)a.innerHTML=a.dataset["unit".concat(r.unit[0].toUpperCase()+r.unit.slice(1))];n.querySelector(".wprm-recipe-advanced-servings-input-diameter").innerHTML=WPRecipeMaker.advancedServings.format(r.diameter),n.querySelector(".wprm-recipe-advanced-servings-input-width").innerHTML=WPRecipeMaker.advancedServings.format(r.width),n.querySelector(".wprm-recipe-advanced-servings-input-length").innerHTML=WPRecipeMaker.advancedServings.format(r.length),r.height&&(n.querySelector(".wprm-recipe-advanced-servings-input-height").innerHTML=WPRecipeMaker.advancedServings.format(r.height))}var s=WPRecipeMaker.advancedServings.getServingsFromAdvancedServings(e);s&&e.setServings(s)},getServingsFromAdvancedServings(e){if(e){var t=e.data.currentAdvancedServings,r=e.data.originalAdvancedServings;if("?"===t.height)return!1;if("round"===t.shape){if("?"===t.diameter)return!1}else if("?"===t.width||"?"===t.length)return!1;var n=0<r.height,i=WPRecipeMaker.advancedServings.getArea(r),o=WPRecipeMaker.advancedServings.getArea(t);if(n)i*="inch"===r.unit?2.54*r.height:r.height,o*="inch"===t.unit?2.54*t.height:t.height;var a=o/i;return e.data.originalServingsParsed*a}return!1},getArea(e){var t=e.diameter/2,r=e.width,n=e.length;return"inch"===e.unit&&(t*=2.54,r*=2.54,n*=2.54),"round"===e.shape?Math.PI*t*t:r*n},parse(e){return(0,o.L)(e)},format(e){var t=(0,o.o)(e,wprmp_public.settings.adjustable_servings_round_to_decimals);return isNaN(t)?e:t}},n=()=>{window.WPRecipeMaker.advancedServings.load()},"loading"!=document.readyState?n():document.addEventListener("DOMContentLoaded",n),window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.checkboxes={initModern:()=>{document.addEventListener("change",(function(e){for(var t=e.target;t&&t!=this;t=t.parentNode)if(t.matches(".wprm-checkbox")){window.WPRecipeMaker.checkboxes.toggle(t,e);break}}),!1)},toggle:(e,t)=>{t.preventDefault();for(var r=e.parentNode;r&&r!=document;r=r.parentNode)if(r.matches("li")){r.classList.toggle("wprm-checkbox-is-checked");break}},initLegacy:()=>{var e="";e="checkbox"==wprmp_public.settings.template_ingredient_list_style&&"checkbox"==wprmp_public.settings.template_instruction_list_style?"li.wprm-recipe-ingredient, li.wprm-recipe-instruction":"checkbox"==wprmp_public.settings.template_ingredient_list_style?"li.wprm-recipe-ingredient":"li.wprm-recipe-instruction";var t=document.querySelectorAll(e);for(var r of t){r.classList.add("wprm-list-checkbox-container");var n=document.createElement("span");n.classList.add("wprm-list-checkbox"),r.insertBefore(n,r.firstChild)}document.addEventListener("click",(function(e){for(var t=e.target;t&&t!=this;t=t.parentNode)if(t.matches(".wprm-list-checkbox")){window.WPRecipeMaker.checkboxes.click(t,e);break}}),!1)},click:(e,t)=>{t.preventDefault();for(var r=e.parentNode;r&&r!=document;r=r.parentNode)if(r.matches(".wprm-list-checkbox-container")){e.classList.toggle("wprm-list-checkbox-checked"),r.classList.toggle("wprm-list-checkbox-checked");break}}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{"legacy"!==wprmp_public.settings.recipe_template_mode||"checkbox"!=wprmp_public.settings.template_ingredient_list_style&&"checkbox"!=wprmp_public.settings.template_instruction_list_style||window.WPRecipeMaker.checkboxes.initLegacy(),"modern"===wprmp_public.settings.recipe_template_mode&&window.WPRecipeMaker.checkboxes.initModern()}));r(39275),r(22321),r(29897),r(75668),r(72975),r(33290);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.managerPremiumIngredients={load(){document.addEventListener("wprm-recipe-change",(e=>{"servings"!==e.detail.type&&"unitSystem"!==e.detail.type||window.WPRecipeMaker.manager.getRecipe(e.detail.id).then((e=>{e&&WPRecipeMaker.managerPremiumIngredients.updateIngredientsDisplay(e)}))}))},getCurrentIngredients(e){e.data.hasOwnProperty("ingredientsElements")||window.WPRecipeMaker.managerPremiumIngredients.findIngredientsElements(e);for(var t=[],r=e.data.currentServingsParsed===e.data.originalServingsParsed&&e.data.currentSystem===e.data.originalSystem,n=0;n<e.data.ingredients.length;n++){for(var i=e.data.ingredients[n],o={},a=1;a<=2;a++){var s=void 0,c=void 0;i.unit_systems.hasOwnProperty("unit-system-"+a)?(s=i.unit_systems["unit-system-"+a],c=!1):(s=i.unit_systems["unit-system-"+(a%2+1)],c=!0);var u=wprmp_public.settings.fractions_enabled;wprmp_public.settings.unit_conversion_enabled&&window.WPRecipeMaker.hasOwnProperty("conversion")&&(u=!wprmp_public.settings.hasOwnProperty("unit_conversion_system_".concat(a,"_fractions"))||wprmp_public.settings["unit_conversion_system_".concat(a,"_fractions")]);for(var l=s.amount,p=s.amountString,d=!1,f=!1,m=0;m<s.amountParts.length;m++){var v=s.amountParts[m].numberUnitQuantity*e.data.currentServingsParsed;!isNaN(v)&&0<v&&(0===m&&(f=v<=1,d=v),p=p.replace("%wprm".concat(m,"%"),this.format(v,u)))}!1===/%wprm\d+%/g.test(p)&&(l=p),r?l=s.amount:e.data.currentServingsParsed!==e.data.originalServingsParsed||c||(l=s.amount);var g=s.unitParsed;if(!r)if(e.data.currentServingsParsed!==e.data.originalServingsParsed||c){var h=!!s.hasOwnProperty("unit_singular")&&s.unit_singular,w=!!s.hasOwnProperty("unit_plural")&&s.unit_plural;g=s.unitParsed,h&&w&&(g=f?h:w)}else g=s.unitParsed;var y=i.name,b=!1;if(!r){var S=!!i.hasOwnProperty("name_singular")&&i.name_singular,M=!!i.hasOwnProperty("name_plural")&&i.name_plural;S&&M&&(b=!0,y=f?S:M)}o["unit-system-"+a]={amount:l,amountParsed:d,amountIsSingular:f,unit:g,name:y,needsNameChange:b}}t.push(o)}return t},updateIngredientsDisplay(e){e.data.hasOwnProperty("ingredientsElements")||window.WPRecipeMaker.managerPremiumIngredients.findIngredientsElements(e);for(var t=e.data.hasOwnProperty("overrideContainerId")&&!1!==e.data.overrideContainerId?e.data.overrideContainerId:e.id,r=e.data.currentServingsParsed===e.data.originalServingsParsed&&e.data.currentSystem===e.data.originalSystem,n=window.WPRecipeMaker.managerPremiumIngredients.getCurrentIngredients(e),i=0;i<e.data.ingredients.length;i++){var o=e.data.ingredients[i],a=e.data.ingredientsElements[i],s=n[i];for(var c of a){for(var u=0;u<c.amounts.length;u++){var l=c.amounts[u],p=e.data.currentSystem;c.showingBothUnitSystems&&1===u&&(p=p%2+1);var d=s["unit-system-"+p];l.elem.innerHTML=r?l.original:d.amount,c.units.hasOwnProperty(u)&&(c.units[u].elem.innerHTML=r?c.units[u].original:d.unit)}c.name&&(s["unit-system-"+e.data.currentSystem].needsNameChange?c.name.elem.innerHTML=s["unit-system-"+e.data.currentSystem].name:c.name.elem.innerHTML=c.name.original)}if(!1!==o.uid&&1<=a.length){var f=document.querySelectorAll(".wprm-inline-ingredient-"+t+"-"+o.uid+", .wprm-recipe-instruction-ingredient-"+t+"-"+o.uid);if(0<f.length){var m="";for(var v of a){var g=document.createElement("div");g.innerHTML=v.elem.innerHTML;var h=g.querySelector(".wprm-recipe-ingredient-notes");h&&h.remove();var w=g.querySelector(".wprm-checkbox-container");if(w&&w.remove(),m=(m=(m=g.innerText).replace(/\s\s+/g," ")).trim())break}if(m)for(var y of f){var b="";y.dataset.hasOwnProperty("separator")&&(b=y.dataset.separator),y.innerText=m+b}}}}window.WPRecipeMaker.quantities.findAdjustables(e)},findIngredientsElements(e){for(var t=[],r=0;r<e.data.ingredients.length;r++){var n=e.data.ingredients[r];for(var i of Object.keys(n.unit_systems)){var a=n.unit_systems[i],c=window.WPRecipeMaker.managerPremiumIngredients.parseAmountString(a.amount,e.data.originalServingsParsed);e.data.ingredients[r].unit_systems[i]=s(s({},e.data.ingredients[r].unit_systems[i]),c)}t[r]=[]}var u=e.data.hasOwnProperty("overrideContainerId")&&!1!==e.data.overrideContainerId?e.data.overrideContainerId:e.id,l=document.querySelectorAll("#wprm-recipe-container-".concat(u,", .wprm-recipe-roundup-item-").concat(u,", .wprm-print-recipe-").concat(u,", .wprm-recipe-").concat(u,"-ingredients-container, .wprm-recipe-").concat(u,"-instructions-container"));for(var p of l)for(var d=p.querySelectorAll(".wprm-recipe-ingredient"),f=0;f<d.length;f++){var m=d[f];if(!m.dataset.hasOwnProperty("wprmParsed")){var v={elem:m,showingBothUnitSystems:!1,amounts:[],units:[],name:!1,notes:!1};m.querySelector(".wprm-recipe-ingredient-unit-system")&&(v.showingBothUnitSystems=!0);var g=m.querySelectorAll(".wprm-recipe-ingredient-amount");for(var h of g)v.amounts.push({elem:h,original:h.innerHTML,unitQuantity:(0,o.L)(h.innerText)/e.data.originalServingsParsed});var w=m.querySelectorAll(".wprm-recipe-ingredient-unit");for(var y of w)v.units.push({elem:y,original:y.innerHTML});var b=m.querySelector(".wprm-recipe-ingredient-name");b&&(v.name={elem:b,original:b.innerHTML});var S=m.querySelector(".wprm-recipe-ingredient-notes");S&&(v.notes={elem:S,original:S.innerHTML}),m.dataset.wprmParsed=!0,t[f].push(v)}}window.WPRecipeMaker.manager.changeRecipeData(e.id,{ingredientsElements:t})},parseAmountString(e,t){e=(e=(e=e.replace(/&quot;/g,'"')).replace(/&#39;/g,"'")).replace(/&amp;/g,"&");var r=!1;if(/^\.\d+\s*$/.test(e))r=[e];else{var n="¼½¾⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞",i="[\\d"+n+"]([\\d"+n+".,\\/\\s]*[\\d"+n+"])?",a=e.match(new RegExp(i,"g"));a&&(r=a)}var s=[];if(r){for(var c=0;c<r.length;c++){var u=r[c];e=e.replace(u,"%wprmtemporaryplaceholder%");var l=(0,o.L)(u);s.push({number:u,numberParsed:l,numberUnitQuantity:l/t})}for(var p=0;p<r.length;p++)e=e.replace("%wprmtemporaryplaceholder%","%wprm".concat(p,"%"))}return{amountString:e,amountParts:s}},format(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,o.o)(e,wprmp_public.settings.adjustable_servings_round_to_decimals,t)}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.managerPremiumIngredients.load()}));r(38472),r(18183),r(19985),r(38974);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,i)}window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.managerPremium={loadRecipeObject:(e,t)=>l(l({},t),{},{data:l({},t.data),addRating:t=>(window.WPRecipeMaker.hasOwnProperty("analytics")&&window.WPRecipeMaker.analytics.registerAction(e,wprm_public.post_id,"user-rating",{rating:t.rating}),window.WPRecipeMaker.userRating.addRatingForRecipe(t,e).then((t=>!1!==t&&(window.WPRecipeMaker.manager.changeRecipeData(e,{rating:t}),window.WPRecipeMaker.manager.triggerChangeEvent(e,"rating"),!0)))),setServings:function(r){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,o.L)(r),a=(0,o.o)(i,wprmp_public.settings.adjustable_servings_round_to_decimals,!1),s=i/t.data.originalServingsParsed;window.WPRecipeMaker.manager.changeRecipeData(e,{currentServings:r,currentServingsParsed:i,currentServingsFormatted:a,currentServingsMultiplier:s,overrideContainerId:n}),window.WPRecipeMaker.manager.triggerChangeEvent(e,"servings")},setAdvancedServings:t=>{window.WPRecipeMaker.manager.getRecipe(e).then((r=>{if(t.hasOwnProperty("unit")&&t.unit!==r.data.currentAdvancedServings.unit){var n="cm"===t.unit?2.54:1/2.54;"?"!==r.data.currentAdvancedServings.diameter&&(t.diameter=Math.round(r.data.currentAdvancedServings.diameter*n)),"?"!==r.data.currentAdvancedServings.width&&(t.width=Math.round(r.data.currentAdvancedServings.width*n)),"?"!==r.data.currentAdvancedServings.length&&(t.length=Math.round(r.data.currentAdvancedServings.length*n)),"?"!==r.data.currentAdvancedServings.height&&(t.height=Math.round(r.data.currentAdvancedServings.height*n))}window.WPRecipeMaker.manager.changeRecipeData(e,{currentAdvancedServings:l(l({},r.data.currentAdvancedServings),t)}),window.WPRecipeMaker.manager.triggerChangeEvent(e,"advancedServings")}))},setUnitSystem:r=>{r=parseInt(r),t.data.unitSystems.includes(r)&&(window.WPRecipeMaker.manager.changeRecipeData(e,{currentSystem:r}),window.WPRecipeMaker.manager.triggerChangeEvent(e,"unitSystem"))}})},window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.preventSleep={wakeLockApi:!1,wakeLock:!1,init(){if("wakeLock"in navigator&&"request"in navigator.wakeLock&&(this.wakeLockApi=navigator.wakeLock),this.wakeLockApi){var e=document.querySelectorAll(".wprm-prevent-sleep");if(0<e.length)for(var t of e){t.style.display="",t.querySelector(".wprm-prevent-sleep-checkbox").addEventListener("change",(function(e){WPRecipeMaker.preventSleep.checkboxChange(e.target)}),!1)}}},checkboxChange(e){e.checked?this.lock():this.unlock()},setCheckboxesState(e){var t=document.querySelectorAll(".wprm-prevent-sleep-checkbox");for(var r of t)r.checked=e},lock(){var e=this;return function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}}((function*(){try{e.wakeLock=yield e.wakeLockApi.request("screen"),e.wakeLock.addEventListener("release",(t=>{e.wakeLock=!1,e.setCheckboxesState(!1)})),e.setCheckboxesState(!0)}catch(t){e.setCheckboxesState(!1)}}))()},unlock(){this.wakeLock&&(this.wakeLock.release(),this.wakeLock=!1),this.setCheckboxesState(!1)}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.preventSleep.init()})),window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.privateNotes={load:()=>{document.addEventListener("click",(function(e){for(var t=e.target;t&&t!=this;t=t.parentNode)if(t.matches(".wprm-private-notes-container:not(.wprm-private-notes-container-disabled)")){window.WPRecipeMaker.privateNotes.click(t,e);break}}),!1),window.WPRecipeMaker.privateNotes.init()},init:()=>{var e=document.querySelectorAll(".wprm-private-notes-container");for(var t of e)window.WPRecipeMaker.privateNotes.showNotes(t)},currentlyEditing:!1,click:(e,t)=>{t.preventDefault(),window.WPRecipeMaker.privateNotes.startEditing(e)},startEditing:e=>{if(parseInt(e.dataset.recipe)&&!window.WPRecipeMaker.privateNotes.currentlyEditing){window.WPRecipeMaker.privateNotes.currentlyEditing=!0,e.classList.add("wprm-private-notes-editing");var t=e.querySelector("textarea"),r=t.scrollHeight<100?100:t.scrollHeight;t.style.height=r+"px",window.onbeforeunload=()=>{window.WPRecipeMaker.privateNotes.stopEditing(e)},t.addEventListener("blur",(()=>{window.WPRecipeMaker.privateNotes.stopEditing(e)}),!1),t.addEventListener("input",(()=>{var e=t.scrollHeight<100?100:t.scrollHeight;t.style.height=e+"px"}),!1),t.focus(),t.setSelectionRange(t.value.length,t.value.length)}},stopEditing:e=>{window.WPRecipeMaker.privateNotes.currentlyEditing=!1;var t=e.querySelector("textarea"),r=t.value.trim(),n=t.cloneNode(!0);t.parentNode.replaceChild(n,t),e.classList.remove("wprm-private-notes-editing");var i=parseInt(e.dataset.recipe);window.WPRecipeMaker.privateNotes.saveNotes(i,r),window.WPRecipeMaker.privateNotes.showNotes(e)},showNotes:e=>{var t=parseInt(e.dataset.recipe);if(t){var r=window.WPRecipeMaker.privateNotes.getNotes(t,e),n=e.querySelector("textarea");n&&(n.value=r),r?e.classList.add("wprm-private-notes-has-notes"):e.classList.remove("wprm-private-notes-has-notes");var i=e.querySelector(".wprm-private-notes-user");i&&(i.innerHTML=r)}},recipeNotes:{},getNotes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="";if(window.WPRecipeMaker.privateNotes.recipeNotes.hasOwnProperty("recipe-".concat(e)))return r=window.WPRecipeMaker.privateNotes.recipeNotes["recipe-".concat(e)];if(t){var n=t.querySelector("textarea");n&&(r=n.value)}if(!r){var i=localStorage.getItem("wprm-recipe-private-notes-".concat(e));i&&(r=i)}return r},saveNotes:(e,t)=>{e&&(window.WPRecipeMaker.privateNotes.recipeNotes["recipe-".concat(e)]=t,0<parseInt(wprmp_public.user)?fetch("".concat(wprmp_public.endpoints.private_notes,"/").concat(e),{method:"POST",headers:{"X-WP-Nonce":wprm_public.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({notes:t})}).then((e=>!!e.ok&&e.json())).then((r=>{!1===r?window.WPRecipeMaker.privateNotes.saveNotesInLocalStorage(e,t):window.WPRecipeMaker.privateNotes.saveNotesInLocalStorage(e,!1)})):window.WPRecipeMaker.privateNotes.saveNotesInLocalStorage(e,t))},saveNotesInLocalStorage:(e,t)=>{t?localStorage.setItem("wprm-recipe-private-notes-".concat(e),t):localStorage.removeItem("wprm-recipe-private-notes-".concat(e))},hideEmpty:()=>{var e=document.querySelectorAll(".wprm-private-notes-container");for(var t of e){var r=parseInt(t.dataset.recipe);if(r)if(!window.WPRecipeMaker.privateNotes.getNotes(r,t)){var n=t.previousElementSibling;n&&n.classList.contains("wprm-recipe-private-notes-header")&&n.remove(),t.remove()}}}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.privateNotes.load()}));r(56650),r(23528),r(11592),r(67838);var f=r(52082);window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.quantities={load(){if(document.addEventListener("input",(function(e){e.target.matches("input.wprm-recipe-servings")&&WPRecipeMaker.quantities.inputChange(e.target)}),!1),document.addEventListener("change",(function(e){e.target.matches("input.wprm-recipe-servings")&&WPRecipeMaker.quantities.inputChange(e.target)}),!1),document.addEventListener("click",(function(e){e.target.matches(".wprm-recipe-servings-change")&&WPRecipeMaker.quantities.changeClick(e.target),e.target.matches(".wprm-recipe-adjustable-servings")&&WPRecipeMaker.quantities.multiplierClick(e.target)}),!1),document.addEventListener("keypress",(function(e){if(e.target.matches(".wprm-recipe-servings-change")){var t=e.which||e.keyCode||0;13!==t&&32!==t||(WPRecipeMaker.quantities.changeClick(e.target),e.preventDefault())}}),!1),document.addEventListener("wprm-recipe-change",(e=>{"servings"===e.detail.type&&window.WPRecipeMaker.manager.getRecipe(e.detail.id).then((e=>{e&&(WPRecipeMaker.quantities.updateServingsDisplay(e),WPRecipeMaker.quantities.updateAdjustables(e),document.dispatchEvent(new CustomEvent("wprmAdjustedServings",{detail:e.id})))})),"unitSystem"===e.detail.type&&window.WPRecipeMaker.manager.getRecipe(e.detail.id).then((e=>{e&&WPRecipeMaker.quantities.updateAdjustables(e)}))})),window.WPRecipeMaker.quantities.init(),wprmp_public.settings.adjustable_servings_url){var e=wprmp_public.settings.adjustable_servings_url_param;e&&function(){var t=new URLSearchParams(window.location.search),r=parseFloat(t.get(e));if(!isNaN(r)&&0<r){var n=window.WPRecipeMaker.manager.findRecipesOnPage();for(var i of n)window.WPRecipeMaker.manager.getRecipe(i).then((e=>{e.setServings(r)}))}}()}},init(){var e=document.querySelectorAll(".wprm-recipe-servings");for(var t of e)if(!t.dataset.hasOwnProperty("servings")){var r=this.parse(t.innerText);0<r&&(t.dataset.servings=r,t.dataset.originalServings=r,document.querySelector("body").classList.contains("wprm-print")||("modern"===wprmp_public.settings.recipe_template_mode?t.classList.contains("wprm-recipe-servings-adjustable-tooltip")?this.initTooltipSlider(t):t.classList.contains("wprm-recipe-servings-adjustable-text")?this.initTextInput(t):t.classList.contains("wprm-recipe-servings-adjustable-text-buttons")&&this.initTextButtonsInput(t):wprmp_public.settings.features_adjustable_servings&&("text_field"===wprmp_public.settings.servings_changer_display?this.initTextInput(t):this.initTooltipSlider(t))))}},getRecipeIdFromElem(e){var t=e.dataset.recipe;if(!t)for(var r=e.parentNode;r&&r!=document;r=r.parentNode)if(r.matches(".wprm-recipe-container")){t=r.dataset.recipeId;break}return t},initTextInput(e){var t=e.dataset.servings,r=this.getRecipeIdFromElem(e),n=e.getAttribute("aria-label");if(r){var i='<input type="number" class="wprm-recipe-servings wprm-recipe-servings-'+r+'" min="0" step="any" value="'+t+'" data-recipe="'+r+'" aria-label="'+n+'" />';e.outerHTML=i}},initTextButtonsInput(e){var t=e.dataset.servings,r=this.getRecipeIdFromElem(e),n=e.getAttribute("aria-label");if(r){var i="";i+="background-color: "+e.dataset.buttonBackground+";",i+="border-color: "+e.dataset.buttonBackground+";",i+="color: "+e.dataset.buttonAccent+";",i+="border-radius: "+e.dataset.buttonRadius+";";var o="";o+="border-color: "+e.dataset.buttonBackground+";";var a='<span class="wprm-recipe-servings-decrement wprm-recipe-servings-change" style="'+i+'" role="button" tabindex="0" aria-label="'+(0,f.S)("Decrease serving size by 1")+'">–</span>',s='<input type="text" class="wprm-recipe-servings wprm-recipe-servings-'+r+'" min="0" step="any" value="'+t+'" data-recipe="'+r+'" aria-label="'+n+'" style="'+o+'"/>',c='<span class="wprm-recipe-servings-increment wprm-recipe-servings-change" style="'+i+'" role="button" tabindex="0" aria-label="'+(0,f.S)("Increase serving size by 1")+'">+</span>';e.outerHTML='<span class="wprm-recipe-servings-text-buttons-container">'+a+s+c+"</span>"}},initTooltipSlider(e){var t=this.getRecipeIdFromElem(e),r=e.getAttribute("aria-label");if(t){var n=document.createElement("a");n.href="#",n.classList.add("wprm-recipe-servings-link"),n.setAttribute("aria-label",r),e.parentNode.insertBefore(n,e),n.appendChild(e);var o=(0,i.ZP)(n,{theme:"wprm",content:"",onShow(e){window.WPRecipeMaker.manager.getRecipe(t).then((n=>{if(!n)return!1;var i,o=n.data.currentServingsParsed,a=20<2*o?2*o:20,s=(i=o.toString().split(".")).length>1?i[1].length:0,c=1/Math.pow(10,s);e.setContent('<input id="wprm-recipe-servings-slider-input" type="range" min="1" max="'.concat(a,'" step="').concat(c,'" value="').concat(o,'" data-recipe="').concat(t,'" class="wprm-recipe-servings-slider wprm-recipe-servings-').concat(t,'" aria-label="').concat(r,'" oninput="WPRecipeMaker.quantities.inputChange(this)" onchange="WPRecipeMaker.quantities.inputChange(this)"></input>'))}))},allowHTML:!0,interactive:!0,delay:[0,250]});n.onclick=e=>{e.preventDefault(),o.show(),setTimeout((()=>{var e=document.getElementById("wprm-recipe-servings-slider-input");e&&e.focus()}),250)}}},inputChange(e){var t=e.value,r=e.dataset.recipe;if(t){var n=e.classList.contains("wprm-recipe-servings-slider")?"slider":"input";window.WPRecipeMaker.analytics.registerActionOnce(r,wprm_public.post_id,"adjust-servings",{type:n}),this.setServings(r,t)}},changeClick(e){var t=e.closest(".wprm-recipe-servings-text-buttons-container");if(t){var r=t.querySelector("input"),n=this.parse(r.value),i=n;e.classList.contains("wprm-recipe-servings-decrement")&&n>1?i--:e.classList.contains("wprm-recipe-servings-increment")&&i++,i!==n&&(r.value=i,this.inputChange(r))}},multiplierClick(e){if(!e.classList.contains("wprm-toggle-active")||"?"===e.dataset.multiplier){var t=e.dataset.multiplier,r=e.dataset.recipe,n=e.dataset.servings,i=!1;"?"===t?(i=prompt(e.getAttribute("aria-label")))&&(i=this.parse(i)):i=this.parse(n)*this.parse(t),i&&(window.WPRecipeMaker.analytics.registerActionOnce(r,wprm_public.post_id,"adjust-servings",{type:"button"}),this.setServings(r,i))}},setServings(e,t){window.WPRecipeMaker.manager.getRecipe(e).then((e=>{e&&e.setServings(t)}))},updateServingsDisplay(e){var t=e.data.hasOwnProperty("overrideContainerId")&&!1!==e.data.overrideContainerId?e.data.overrideContainerId:e.id,r=document.querySelectorAll(".wprm-recipe-servings-"+t);for(var n of r)n.textContent=e.data.currentServingsFormatted,n.dataset.servings=e.data.currentServingsParsed,"input"===n.tagName.toLowerCase()?"string"==typeof e.data.currentServings||e.data.currentServings instanceof String?n.value=e.data.currentServings:n.value=e.data.currentServingsFormatted:n.value=e.data.currentServingsParsed;var i=document.querySelectorAll(".wprm-recipe-adjustable-servings-"+t+"-container");for(var a of i){var s=a.querySelectorAll(".wprm-recipe-adjustable-servings"),c=!1;for(var u of s)u.classList.remove("wprm-toggle-active"),(0,o.L)(u.dataset.multiplier)===e.data.currentServingsMultiplier?(c=!0,u.classList.add("wprm-toggle-active")):"?"!==u.dataset.multiplier||c||u.classList.add("wprm-toggle-active")}},updateAdjustables(e){for(var t of(e.data.hasOwnProperty("adjustables")||window.WPRecipeMaker.quantities.findAdjustables(e),e.data.adjustables))if(e.data.currentServingsParsed===e.data.originalServingsParsed)t.elem.textContent=t.original;else{var r=e.data.currentServings*t.unitQuantity;if(!isNaN(r)){var n=!0;if(wprmp_public.settings.unit_conversion_enabled&&window.WPRecipeMaker.hasOwnProperty("conversion")){var i=e.data.hasOwnProperty("currentSystem")?e.data.currentSystem:1;n=!wprmp_public.settings.hasOwnProperty("unit_conversion_system_".concat(i,"_fractions"))||wprmp_public.settings["unit_conversion_system_".concat(i,"_fractions")]}t.elem.textContent=this.format(r,n)}}},findAdjustables(e){for(var t=e.data.hasOwnProperty("adjustables")?e.data.adjustables:[],r=t.length-1;r>=0;r--)document.body.contains(t[r].elem)||t.splice(r,1);var n=document.querySelectorAll("#wprm-recipe-container-".concat(e.id,", .wprm-recipe-roundup-item-").concat(e.id,", .wprm-print-recipe-").concat(e.id,", .wprm-recipe-").concat(e.id,"-ingredients-container, .wprm-recipe-").concat(e.id,"-instructions-container"));for(var i of n){var a=i.querySelectorAll(".wprm-dynamic-quantity");for(var s of a)if(0===s.querySelectorAll(".wprm-adjustable").length){var c=s.innerText;if(/^\.\d+\s*$/.test(c))s.innerHTML='<span class="wprm-adjustable">'+c+"</span>";else{var u="¼½¾⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞",l="[\\d"+u+"]([\\d"+u+".,\\/\\s]*[\\d"+u+"])?";c=c.replace(new RegExp(l,"g"),'<span class="wprm-adjustable">$&</span>'),s.innerHTML=c}}var p=i.querySelectorAll(".wpurp-adjustable-quantity");for(var d of p)d.classList.add("wprm-adjustable");var f=i.querySelectorAll(".wprm-adjustable"),m=function(r){if(-1!==t.findIndex((e=>e.elem===r)))return"continue";t.push({elem:r,original:r.innerText,unitQuantity:(0,o.L)(r.innerText)/e.data.originalServingsParsed})};for(var v of f)m(v)}window.WPRecipeMaker.manager.changeRecipeData(e.id,{adjustables:t})},parse(e){return(0,o.L)(e)},format(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,o.o)(e,wprmp_public.settings.adjustable_servings_round_to_decimals,t)}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.quantities.load()})),window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.timer={init:()=>{var e=document.querySelector("body");if(!e||!e.classList.contains("wprm-print")){var t=document.querySelectorAll(".wprm-timer"),r=function(e){var t=e.dataset.seconds;if(t>0){var r=document.createElement("a");r.href="#",r.classList.add("wprm-timer-link"),r.onclick=e=>{e.preventDefault(),e.stopPropagation(),window.WPRecipeMaker.timer.start(t)},e.parentNode.insertBefore(r,e),r.appendChild(e),(0,i.ZP)(r,{theme:"wprm",content:wprmp_public.timer.text.start_timer})}};for(var n of t)r(n)}},runningTimer:!1,runningTotal:0,runningRemaining:0,lastUpdated:0,update:()=>{var e=Date.now()-window.WPRecipeMaker.timer.lastUpdated;window.WPRecipeMaker.timer.runningRemaining-=e,window.WPRecipeMaker.timer.lastUpdated=Date.now();var t=window.WPRecipeMaker.timer.runningTotal,r=window.WPRecipeMaker.timer.runningRemaining;r<=0&&(r=0,window.WPRecipeMaker.timer.finished()),window.WPRecipeMaker.timer.showTime(Math.round(r/1e3));var n=100*(t-r)/t;document.querySelector("#wprm-timer-bar-elapsed").style.width=n+"%"},start:e=>{window.WPRecipeMaker.timer.stop((()=>{window.WPRecipeMaker.timer.createContainer(),window.WPRecipeMaker.timer.runningTotal=1e3*e,window.WPRecipeMaker.timer.runningRemaining=1e3*e,window.WPRecipeMaker.timer.showTime(e),window.WPRecipeMaker.timer.play()}))},play:()=>{document.querySelector("#wprm-timer-play").style.display="none",document.querySelector("#wprm-timer-pause").style.display="",window.WPRecipeMaker.timer.interval&&clearInterval(window.WPRecipeMaker.timer.interval),window.WPRecipeMaker.timer.interval=setInterval(window.WPRecipeMaker.timer.update,1e3),window.WPRecipeMaker.timer.lastUpdated=Date.now()},pauze:()=>{document.querySelector("#wprm-timer-play").style.display="",document.querySelector("#wprm-timer-pause").style.display="none",window.WPRecipeMaker.timer.interval&&clearInterval(window.WPRecipeMaker.timer.interval)},stop:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.WPRecipeMaker.timer.interval&&clearInterval(window.WPRecipeMaker.timer.interval);var t=document.querySelector("#wprm-timer-container");t&&t.parentNode.removeChild(t),e&&e()},finished:()=>{window.WPRecipeMaker.timer.pauze(),new Audio(wprmp_public.timer.sound_file).play(),document.querySelector("#wprm-timer-container").classList.add("wprm-timer-finished")},createContainer:()=>{var e=document.createElement("div");e.id="wprm-timer-container",e.innerHTML='<span id="wprm-timer-play" class="wprm-timer-icon" onclick="window.WPRecipeMaker.timer.play()">'+wprmp_public.timer.icons.play+"</span>",e.innerHTML+='<span id="wprm-timer-pause" class="wprm-timer-icon" onclick="window.WPRecipeMaker.timer.pauze()">'+wprmp_public.timer.icons.pause+"</span>",e.innerHTML+='<span id="wprm-timer-remaining"></span>',e.innerHTML+='<span id="wprm-timer-bar-container"><span id="wprm-timer-bar"><span id="wprm-timer-bar-elapsed"></span></span></span>',e.innerHTML+='<span id="wprm-timer-close" class="wprm-timer-icon" onclick="window.WPRecipeMaker.timer.stop()">'+wprmp_public.timer.icons.close+"</span>",document.querySelector("body").appendChild(e)},showTime:e=>{var t=Math.floor(e/3600);e-=3600*t;var r=Math.floor(e/60),n=(t<10?"0"+t:t)+":"+(r<10?"0"+r:r)+":"+((e-=60*r)<10?"0"+e:e);document.querySelector("#wprm-timer-remaining").textContent=n}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.timer.init()}));r(4227);window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.userRatingModal={init(){if(wprmp_public.settings.user_ratings_open_url_parameter&&new URLSearchParams(window.location.search).has(wprmp_public.settings.user_ratings_open_url_parameter)){var e=document.querySelectorAll(".wprm-user-rating, .wprm-recipe-user-ratings-modal");for(var t of e){if(t.dataset.hasOwnProperty("modalUid")&&t.dataset.hasOwnProperty("recipe"))if("break"===function(){var e=t.dataset.modalUid,r=t.dataset.recipe;return(r=parseInt(r))&&setTimeout((()=>{window.WPRecipeMaker.modal.open(e,{recipe:r,rating:0})})),"break"}())break}}document.addEventListener("wprm-modal-open",(e=>{"user-rating"===e.detail.type&&window.WPRecipeMaker.userRatingModal.opened(e.detail.uid,e.detail.modal,e.detail.data)})),document.addEventListener("wprm-modal-close",(e=>{"user-rating"===e.detail.type&&window.WPRecipeMaker.userRatingModal.closed(e.detail.uid,e.detail.modal,e.detail.data)})),document.addEventListener("wprm-comment-rating-change",(e=>{e.detail.hasOwnProperty("container")&&e.detail.container.classList.contains("wprm-user-ratings-modal-stars")&&window.WPRecipeMaker.userRatingModal.ratingChange(e.detail.rating)})),document.addEventListener("click",(function(e){for(var t=e.target;t&&t!=this;t=t.parentNode){if(t.matches(".wprm-cta-rating-modal")||t.matches(".wprm-recipe-user-ratings-modal")){e.preventDefault();var r=t.dataset.modalUid,n=t.dataset.recipe;(n=parseInt(n))&&window.WPRecipeMaker.modal.open(r,{recipe:n,rating:0});break}if(t.matches(".wprm-user-rating-modal-comment-suggestion")){e.preventDefault();var i=t.innerText,o=document.querySelector(".wprm-user-rating-modal-comment");i&&o&&(o.value=i,window.WPRecipeMaker.userRatingModal.checkFields());break}if(t.matches(".wprm-user-rating-summary-details-no-comments")){e.preventDefault(),window.WPRecipeMaker.userRatingModal.ratingsWithoutCommentsPopup(t);break}}}),!1)},modalUid:!1,currentRecipe:!1,currentCommentForRecipe:{},opened(e,t,r){window.WPRecipeMaker.userRatingModal.modalUid=e,window.WPRecipeMaker.userRatingModal.setTitle(wprmp_public.settings.user_ratings_modal_title),window.WPRecipeMaker.userRatingModal.displayMessage('<div class="wprm-loader"></div>');var n=t.querySelector(".wprm-user-ratings-modal-stars-container").querySelectorAll("input");if(n[0].click(),r.hasOwnProperty("rating")){var i=parseInt(r.rating);for(var o of n)if(i===parseInt(o.value)){o.click();break}}var a=t.querySelector('input[name="wprm-user-rating-recipe-id"]');a.value=r.hasOwnProperty("recipe")?r.recipe:0,window.WPRecipeMaker.manager.getRecipe(a.value).then((e=>{window.WPRecipeMaker.userRatingModal.currentRecipe=e,window.WPRecipeMaker.userRatingModal.displayMessage(!1);var r=t.querySelector(".wprm-user-rating-modal-comment");r.value="",e&&window.WPRecipeMaker.userRatingModal.currentCommentForRecipe.hasOwnProperty(e.id)&&(r.value=window.WPRecipeMaker.userRatingModal.currentCommentForRecipe[e.id]),window.WPRecipeMaker.userRatingModal.checkFields(),window.WPRecipeMaker.userRatingModal.displayError(!1),window.WPRecipeMaker.userRatingModal.displayWaiting(!1),t.querySelector(".wprm-user-ratings-modal-recipe-name").innerHTML=e?e.data.name:""}))},ratingChange(e){window.WPRecipeMaker.userRatingModal.checkFields()},checkFields(){var e=document.querySelector(".wprm-popup-modal-user-rating"),t=0<parseInt(wprmp_public.user);t&&e.classList.add("wprm-user-rating-modal-logged-in");var r=e.querySelector(".wprm-user-rating-modal-comment"),n=e.querySelector('input[name="wprm-user-rating-name"]'),i=e.querySelector('input[name="wprm-user-rating-email"]');r.required=wprmp_public.settings.user_ratings_require_comment,n.required=!t&&wprmp_public.settings.user_ratings_require_name,i.required=!t&&wprmp_public.settings.user_ratings_require_email;var o=new FormData(r.form),a=Object.fromEntries(o),s=parseInt(a["wprm-user-rating-stars"]),c=e.querySelector(".wprm-user-rating-modal-comment-suggestions-container");if(c&&(c.style.display=window.WPRecipeMaker.userRatingModal.shouldSuggestionsShow(s)?"block":"none"),!wprmp_public.settings.user_ratings_require_comment){var u=e.querySelector(".wprm-user-rating-modal-submit-comment"),l=e.querySelector(".wprm-user-rating-modal-submit-no-comment");r.value?(u.style.display="block",l.style.display="none"):(u.style.display="none",l.style.display="block")}},shouldSuggestionsShow(e){if("never"!==wprmp_public.settings.user_ratings_comment_suggestions_enabled){var t={always:1,"2_star":2,"3_star":3,"4_star":4,"5_star":5};if(t.hasOwnProperty(wprmp_public.settings.user_ratings_comment_suggestions_enabled)&&e>=t[wprmp_public.settings.user_ratings_comment_suggestions_enabled])return!0}return!1},submit(e){var t=new FormData(e),r=Object.fromEntries(t),n=parseInt(r["wprm-user-rating-recipe-id"]),i=parseInt(r["wprm-user-rating-stars"]),o=r["wprm-user-rating-comment"].trim(),a=r["wprm-user-rating-name"].trim(),s=r["wprm-user-rating-email"].trim();if(i<=0||i>5)return window.WPRecipeMaker.userRatingModal.displayError("rating"),!1;if(0===parseInt(wprmp_public.user)){if(!a&&wprmp_public.settings.user_ratings_require_name)return window.WPRecipeMaker.userRatingModal.displayError("name"),!1;if(!s&&wprmp_public.settings.user_ratings_require_email)return window.WPRecipeMaker.userRatingModal.displayError("email"),!1}window.WPRecipeMaker.userRatingModal.displayError(!1),window.WPRecipeMaker.userRatingModal.displayWaiting(!0);var c={post_id:wprm_public.post_id,rating:i,comment:o,name:a,email:s};window.WPRecipeMaker.manager.getRecipe(n).then((e=>{var t=e=>{var t="";(t=!1===e?wprmp_public.settings.user_ratings_problem_message:wprmp_public.settings.user_ratings_thank_you_message_with_comment)?(window.WPRecipeMaker.userRatingModal.setTitle(wprmp_public.settings.user_ratings_thank_you_title),window.WPRecipeMaker.userRatingModal.displayMessage(t)):window.WPRecipeMaker.modal.close(window.WPRecipeMaker.userRatingModal.modalUid)};e?e.addRating(c).then((e=>{window.WPRecipeMaker.userRatingModal.displayWaiting(!1),t(e)})):t(!1)}))},displayError(e){var t=document.querySelector("#wprm-user-rating-modal-errors");t&&t.querySelectorAll("div").forEach((t=>{e&&t.id==="wprm-user-rating-modal-error-"+e?t.style.display="block":t.style.display=""}))},displayWaiting(e){var t=document.querySelector("#wprm-user-rating-modal-waiting");t&&(t.style.display=e?"inline-block":"");var r=document.querySelectorAll(".wprm-user-rating-modal-submit-rating, .wprm-user-rating-modal-submit-comment");for(var n of r)n.disabled=e},displayMessage(e){var t=document.querySelector("#wprm-user-ratings-modal-stars-form"),r=document.querySelector("#wprm-user-ratings-modal-message");!1===e?(t.style.display="block",r.style.display="none"):(t.style.display="none",r.innerHTML=e,r.style.display="block")},setTitle(e){var t=document.querySelector("#wprm-popup-modal-user-rating-title");t&&e&&(t.innerHTML=e)},closed(e,t,r){var n=window.WPRecipeMaker.userRatingModal.currentRecipe;if(n){var i="";if("none"!==document.querySelector("#wprm-user-ratings-modal-stars-form").style.display)i=t.querySelector(".wprm-user-rating-modal-comment").value;window.WPRecipeMaker.userRatingModal.currentCommentForRecipe[n.id]=i}window.WPRecipeMaker.userRatingModal.currentRecipe=!1,window.WPRecipeMaker.userRatingModal.modalUid=!1},ratingsWithoutCommentsPopup(e){var t=e.dataset.modalUid;if(t){var r=document.getElementById("wprm-popup-modal-"+t);window.WPRecipeMaker.modal.open(t);var n=r.querySelector(".wprm-loader"),i=r.querySelector(".wprm-popup-modal-user-rating-summary-error"),o=r.querySelector(".wprm-popup-modal-user-rating-summary-ratings");n.style.display="block",i.style.display="none",o.innerHTML="";var a=e.dataset.recipeId,s=e.dataset.postId,c={Accept:"application/json","Content-Type":"application/json"};return 0<parseInt(wprmp_public.user)&&(c["X-WP-Nonce"]=wprm_public.api_nonce),fetch("".concat(wprmp_public.endpoints.user_rating,"/summary-popup"),{method:"POST",headers:c,credentials:"same-origin",body:JSON.stringify({recipeId:a,postId:s})}).then((e=>!!e.ok&&e.json())).then((e=>{n.style.display="none",e&&e.html?o.innerHTML=e.html:i.style.display="block"}))}}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.userRatingModal.init()}));r(12798);var m=r(23362),v=r.n(m);window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.userRating={init(){document.addEventListener("wprm-recipe-change",(e=>{if("rating"===e.detail.type){var t=e.detail.id;window.WPRecipeMaker.manager.getRecipe(t).then((e=>{e&&window.WPRecipeMaker.userRating.updateRatingDisplay(t,e.data.rating)}))}}))},settings:{color:wprmp_public.settings.template_color_icon},enter(e){e.parentNode.classList.add("wprm-user-rating-voting");var t=window.WPRecipeMaker.userRating.settings.color;"modern"===wprmp_public.settings.recipe_template_mode&&e.dataset.color&&(t=e.dataset.color);for(var r=e;r;){r.classList.add("wprm-rating-star-selecting-filled");var n=r.querySelectorAll("polygon");for(var i of n)i.style.fill=t;r=r.previousSibling}for(var o=e.nextSibling;o;){o.classList.add("wprm-rating-star-selecting-empty");var a=o.querySelectorAll("polygon");for(var s of a)s.style.fill="none";o=o.nextSibling}},leave(e){e.parentNode.classList.remove("wprm-user-rating-voting");for(var t=e.parentNode.firstChild;t;){t.classList.remove("wprm-rating-star-selecting-filled"),t.classList.remove("wprm-rating-star-selecting-empty");var r=t.querySelectorAll("polygon");for(var n of r)n.style.fill="";t=t.nextSibling}},click(e,t){var r=t.which||t.keyCode||0;if("click"===t.type||13===r||32===r){t.preventDefault();var n=e.parentNode,i=parseInt(e.dataset.rating),o=parseInt(n.dataset.recipe);if(!o)for(var a=e.parentNode;a&&a!=document;a=a.parentNode)if(a.matches(".wprm-recipe-container")){o=parseInt(a.dataset.recipeId);break}if("scroll"===wprmp_public.settings.user_ratings_type&&window.WPRecipeMaker.userRating.canJumpToComments())window.WPRecipeMaker.userRating.jumpToCommentRating(i);else{var s=n.dataset.modalUid;window.WPRecipeMaker.modal.open(s,{recipe:o,rating:i})}}},updateRatingDisplay(e,t){var r=document.querySelectorAll(".wprm-recipe-rating-recipe-"+e);for(var n of r){var i=n.dataset.hasOwnProperty("decimals")?parseInt(n.dataset.decimals):2;i=0<=i?i:2,t.roundedAverage=Number(t.average.toFixed(i)),t.formattedAverage=(0,o.o)(t.average,i);var a=n.querySelector(".wprm-recipe-rating-details");if(a)a.innerHTML=window.WPRecipeMaker.userRating.getRatingDetailsText(t);else{var s=n.querySelector(".wprm-recipe-rating-average"),c=n.querySelector(".wprm-recipe-rating-count");s&&(s.innerText=t.formattedAverage),c&&(c.innerText=t.count)}for(var u=t.roundedAverage,l=1;l<=5;l++){var p=n.querySelector(".wprm-rating-star-"+l);if(p)if(p.classList.remove("wprm-rating-star-full"),p.classList.remove("wprm-rating-star-empty"),p.classList.remove("wprm-rating-star-33"),p.classList.remove("wprm-rating-star-50"),p.classList.remove("wprm-rating-star-66"),l<=u)p.classList.add("wprm-rating-star-full");else{var d=0+u-l+1;0<d&&d<=.33?p.classList.add("wprm-rating-star-33"):0<d&&d<=.5?p.classList.add("wprm-rating-star-50"):0<d&&d<=.66?p.classList.add("wprm-rating-star-66"):0<d&&d<=1?p.classList.add("wprm-rating-star-full"):p.classList.add("wprm-rating-star-empty")}}n.classList.contains("wprm-user-rating")&&(0<t.user?(n.classList.remove("wprm-user-rating-not-voted"),n.classList.add("wprm-user-rating-has-voted")):(n.classList.add("wprm-user-rating-not-voted"),n.classList.remove("wprm-user-rating-has-voted")))}},getRatingDetailsText(e){var t="";if(t=0===e.count?wprmp_public.settings.rating_details_zero:1===e.count?wprmp_public.settings.rating_details_one:wprmp_public.settings.rating_details_multiple,0<e.user){var r=wprmp_public.settings.rating_details_user_voted;t=(t=t.replace("%not_voted%","")).replace("%voted%",r)}else{var n=wprmp_public.settings.rating_details_user_not_voted;t=(t=t.replace("%voted%","")).replace("%not_voted%",n)}return(t=(t=(t=t.replace("%average%",'<span class="wprm-recipe-rating-average">'+e.formattedAverage+"</span>")).replace("%votes%",'<span class="wprm-recipe-rating-count">'+e.count+"</span>")).replace("%user%",'<span class="wprm-recipe-rating-user">'+e.user+"</span>")).trim()},addRatingForRecipe(e,t){var r={Accept:"application/json","Content-Type":"application/json"};return 0<parseInt(wprmp_public.user)&&(r["X-WP-Nonce"]=wprm_public.api_nonce),fetch("".concat(wprmp_public.endpoints.user_rating,"/").concat(t),{method:"POST",headers:r,credentials:"same-origin",body:JSON.stringify({data:e})}).then((r=>r.ok?r.json():window.WPRecipeMaker.userRating.addRatingForRecipeThroughAjax(e,t))).then((e=>e))},addRatingForRecipeThroughAjax(e,t){return fetch(wprm_public.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_user_rate_recipe&security="+encodeURIComponent(wprm_public.nonce)+"&recipe_id="+encodeURIComponent(t)+"&data="+encodeURIComponent(JSON.stringify(e)),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>!!e.ok&&e.json())).then((e=>!!e.success&&e.data))},getCommentContainerElement(){var e=[".comment-form-wprm-rating","#llc_comments"];for(var t of(wprmp_public.settings.user_ratings_force_comment_scroll_to&&e.unshift(wprmp_public.settings.user_ratings_force_comment_scroll_to),e)){var r=document.querySelector(t);if(r)return r}return!1},canJumpToComments(){return!!wprmp_public.settings.features_comment_ratings&&!!window.WPRecipeMaker.userRating.getCommentContainerElement()},jumpToCommentRating(e){var t=window.WPRecipeMaker.userRating.getCommentContainerElement();if(t){var r=()=>{var t=document.querySelector(".comment-form-wprm-rating");if(t){var r=t.querySelectorAll("input");for(var n of r)if(e===parseInt(n.value)){n.click();break}}var i=document.getElementById("comment");i&&i.focus()};!!wprmp_public.settings.user_ratings_force_comment_scroll_to_smooth?v()(t,{verticalOffset:-100,speed:250}).then(r):(t.scrollIntoView({behavior:"instant"}),r())}}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.userRating.init()}))},5831:function(e,t,r){"use strict";r.d(t,{L:function(){return s},o:function(){return a}});r(38472),r(39275),r(22321),r(54883),r(68995),r(29897),r(11592),r(12798),r(67838);var n=r(6),i=r.n(n),o={"¼":"1/4","½":"1/2","¾":"3/4","⅐":"1/7","⅑":"1/9","⅒":"1/10","⅓":"1/3","⅔":"2/3","⅕":"1/5","⅖":"2/5","⅗":"3/5","⅘":"4/5","⅙":"1/6","⅚":"5/6","⅛":"1/8","⅜":"3/8","⅝":"5/8","⅞":"7/8"};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=void 0!==window.wprmp_public?wprmp_public.settings.decimal_separator:wprmp_admin.settings.decimal_separator,a="comma"===n?",":".",s="comma"===n?".":",",c=e,u=!1;if(r&&(void 0!==window.wprmp_public?wprmp_public.settings.fractions_enabled:wprmp_admin.settings.fractions_enabled)){var l=void 0!==window.wprmp_public?wprmp_public.settings.fractions_use_mixed:wprmp_admin.settings.fractions_use_mixed,p=void 0!==window.wprmp_public?wprmp_public.settings.fractions_use_symbols:wprmp_admin.settings.fractions_use_symbols,d=parseInt(void 0!==window.wprmp_public?wprmp_public.settings.fractions_max_denominator:wprmp_admin.settings.fractions_max_denominator);d=d>1?d:8;var f=i()(e,d,l);if(f&&3===f.length&&!isNaN(f[0])&&!isNaN(f[1])&&!isNaN(f[2])){var m="";if(0<f[0]&&(m=(m+="".concat(f[0]," ")).replace(/\B(?=(\d{3})+(?!\d))/g,s)),0<f[1]?0<f[2]&&(m+=1===f[2]?f[1]:"".concat(f[1],"/").concat(f[2])):0===f[0]&&(m+="1/".concat(d)),m){if(p)for(var v of(m=" "+m+" ",Object.keys(o))){var g=o[v];m=m.replace(" ".concat(g," ")," ".concat(v," "))}c=m.trim(),u=!0}}}if(!u){t=parseInt(t),(isNaN(t)||t<0)&&(t=0);do{if(c=parseFloat(parseFloat(e).toFixed(t)),3<++t)break}while(0==c);c=""+c,"comma"===n&&(c=c.replace(".",","));var h=c.split(a);h[0]=h[0].replace(/\B(?=(\d{3})+(?!\d))/g,s),c=h.join(a)}return c}function s(e){var t="number"==typeof e;if(e=""+e,!t)if("comma"===(void 0!==window.wprmp_public?wprmp_public.settings.decimal_separator:wprmp_admin.settings.decimal_separator)){var r=e.indexOf(".");if(-1!==r&&e.length-r>3){var n=e.substr(0,r);0!==parseInt(n)&&(e=e.replace(".",""))}}else{var i=e.indexOf(",");if(-1!==i&&e.length-i>3){var a=e.substr(0,i);0!==parseInt(a)&&(e=e.replace(",",""))}}var s=(e=(e=(e=(e=(e=((e=(e=(e=(e=(e=e.replace(",",".")).replace(" to ","-")).replace("–","-")).replace("—","-")).replace(" - ","-"))+"").replace(/(\u00BC|\u00BD|\u00BE|\u2150|\u2151|\u2152|\u2153|\u2154|\u2155|\u2156|\u2157|\u2158|\u2159|\u215A|\u215B|\u215C|\u215D|\u215E)/,(function(e,t){return" "+o[t]}))).replace(/(<([^>]+)>)/gi,"")).replace(/(\[([^\]]+)\])/gi,"")).replace(/[^\d\s\.\/-]/gi,"")).trim()).split(" "),c=!1;if(""!==e){c=0;for(var u=0;u<s.length;u++)if(""!==s[u].trim()){var l=s[u].split("/",2),p=parseFloat(l[0]);if(void 0!==l[1]){var d=parseFloat(l[1]);0!==d&&(p/=d)}isNaN(p)||(c+=p)}}return c}},52082:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{S:function(){return s}});var a={};function s(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=i(i({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=i(i({},a),wprm_admin.translations))},79608:function(){},89640:function(e,t,r){"use strict";r.d(t,{kZ:function(){return f}});var n=r(16329),i=r(210),o=r(24534),a=r(31022),s=r(97285),c=r(49102),u=r(70350),l=r(39818),p={placement:"bottom",modifiers:[],strategy:"absolute"};function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function f(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,f=void 0===r?[]:r,m=t.defaultOptions,v=void 0===m?p:m;return function(e,t,r){void 0===r&&(r=v);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},p,v),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],h=!1,w={state:m,setOptions:function(r){var n="function"==typeof r?r(m.options):r;y(),m.options=Object.assign({},v,m.options,n),m.scrollParents={reference:(0,l.kK)(e)?(0,o.Z)(e):e.contextElement?(0,o.Z)(e.contextElement):[],popper:(0,o.Z)(t)};var i=(0,s.Z)((0,u.Z)([].concat(f,m.options.modifiers)));return m.orderedModifiers=i.filter((function(e){return e.enabled})),m.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:m,name:t,instance:w,options:n}),a=function(){};g.push(o||a)}})),w.update()},forceUpdate:function(){if(!h){var e=m.elements,t=e.reference,r=e.popper;if(d(t,r)){m.rects={reference:(0,n.Z)(t,(0,a.Z)(r),"fixed"===m.options.strategy),popper:(0,i.Z)(r)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach((function(e){return m.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<m.orderedModifiers.length;o++)if(!0!==m.reset){var s=m.orderedModifiers[o],c=s.fn,u=s.options,l=void 0===u?{}:u,p=s.name;"function"==typeof c&&(m=c({state:m,options:l,name:p,instance:w})||m)}else m.reset=!1,o=-1}}},update:(0,c.Z)((function(){return new Promise((function(e){w.forceUpdate(),e(m)}))})),destroy:function(){y(),h=!0}};if(!d(e,t))return w;function y(){g.forEach((function(e){return e()})),g=[]}return w.setOptions(r).then((function(e){!h&&r.onFirstUpdate&&r.onFirstUpdate(e)})),w}}},58751:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(39818);function i(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.Zq)(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},22801:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(39818),i=r(73416);function o(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),o=1,a=1;if((0,n.Re)(e)&&t){var s=e.offsetHeight,c=e.offsetWidth;c>0&&(o=(0,i.NM)(r.width)/c||1),s>0&&(a=(0,i.NM)(r.height)/s||1)}return{width:r.width/o,height:r.height/a,top:r.top/a,right:r.right/o,bottom:r.bottom/a,left:r.left/o,x:r.left/o,y:r.top/a}}},3315:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(89670),i=r(55764),o=r(24646),a=r(24534),s=r(31022),c=r(27306),u=r(6401),l=r(39818),p=r(22801),d=r(72987),f=r(58751),m=r(94870),v=r(92505),g=r(73416);function h(e,t){return t===n.Pj?(0,v.Z)((0,i.Z)(e)):(0,l.kK)(t)?function(e){var t=(0,p.Z)(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,v.Z)((0,o.Z)((0,c.Z)(e)))}function w(e,t,r){var n="clippingParents"===t?function(e){var t=(0,a.Z)((0,d.Z)(e)),r=["absolute","fixed"].indexOf((0,u.Z)(e).position)>=0&&(0,l.Re)(e)?(0,s.Z)(e):e;return(0,l.kK)(r)?t.filter((function(e){return(0,l.kK)(e)&&(0,f.Z)(e,r)&&"body"!==(0,m.Z)(e)})):[]}(e):[].concat(t),i=[].concat(n,[r]),o=i[0],c=i.reduce((function(t,r){var n=h(e,r);return t.top=(0,g.Fp)(n.top,t.top),t.right=(0,g.VV)(n.right,t.right),t.bottom=(0,g.VV)(n.bottom,t.bottom),t.left=(0,g.Fp)(n.left,t.left),t}),h(e,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},16329:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(22801),i=r(52189),o=r(94870),a=r(39818),s=r(83345),c=r(27306),u=r(54653),l=r(73416);function p(e,t,r){void 0===r&&(r=!1);var p=(0,a.Re)(t),d=(0,a.Re)(t)&&function(e){var t=e.getBoundingClientRect(),r=(0,l.NM)(t.width)/e.offsetWidth||1,n=(0,l.NM)(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),f=(0,c.Z)(t),m=(0,n.Z)(e,d),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(p||!p&&!r)&&(("body"!==(0,o.Z)(t)||(0,u.Z)(f))&&(v=(0,i.Z)(t)),(0,a.Re)(t)?((g=(0,n.Z)(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):f&&(g.x=(0,s.Z)(f))),{x:m.left+v.scrollLeft-g.x,y:m.top+v.scrollTop-g.y,width:m.width,height:m.height}}},6401:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(73432);function i(e){return(0,n.Z)(e).getComputedStyle(e)}},27306:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(39818);function i(e){return(((0,n.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},24646:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(27306),i=r(6401),o=r(83345),a=r(53219),s=r(73416);function c(e){var t,r=(0,n.Z)(e),c=(0,a.Z)(e),u=null==(t=e.ownerDocument)?void 0:t.body,l=(0,s.Fp)(r.scrollWidth,r.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),p=(0,s.Fp)(r.scrollHeight,r.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),d=-c.scrollLeft+(0,o.Z)(e),f=-c.scrollTop;return"rtl"===(0,i.Z)(u||r).direction&&(d+=(0,s.Fp)(r.clientWidth,u?u.clientWidth:0)-l),{width:l,height:p,x:d,y:f}}},8331:function(e,t,r){"use strict";function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}r.d(t,{Z:function(){return n}})},210:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(22801);function i(e){var t=(0,n.Z)(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}},94870:function(e,t,r){"use strict";function n(e){return e?(e.nodeName||"").toLowerCase():null}r.d(t,{Z:function(){return n}})},52189:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(53219),i=r(73432),o=r(39818),a=r(8331);function s(e){return e!==(0,i.Z)(e)&&(0,o.Re)(e)?(0,a.Z)(e):(0,n.Z)(e)}},31022:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(73432),i=r(94870),o=r(6401),a=r(39818),s=r(29777),c=r(72987);function u(e){return(0,a.Re)(e)&&"fixed"!==(0,o.Z)(e).position?e.offsetParent:null}function l(e){for(var t=(0,n.Z)(e),r=u(e);r&&(0,s.Z)(r)&&"static"===(0,o.Z)(r).position;)r=u(r);return r&&("html"===(0,i.Z)(r)||"body"===(0,i.Z)(r)&&"static"===(0,o.Z)(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,a.Re)(e)&&"fixed"===(0,o.Z)(e).position)return null;var r=(0,c.Z)(e);for((0,a.Zq)(r)&&(r=r.host);(0,a.Re)(r)&&["html","body"].indexOf((0,i.Z)(r))<0;){var n=(0,o.Z)(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}},72987:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(94870),i=r(27306),o=r(39818);function a(e){return"html"===(0,n.Z)(e)?e:e.assignedSlot||e.parentNode||((0,o.Zq)(e)?e.host:null)||(0,i.Z)(e)}},82513:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(72987),i=r(54653),o=r(94870),a=r(39818);function s(e){return["html","body","#document"].indexOf((0,o.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&(0,i.Z)(e)?e:s((0,n.Z)(e))}},55764:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(73432),i=r(27306),o=r(83345);function a(e){var t=(0,n.Z)(e),r=(0,i.Z)(e),a=t.visualViewport,s=r.clientWidth,c=r.clientHeight,u=0,l=0;return a&&(s=a.width,c=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=a.offsetLeft,l=a.offsetTop)),{width:s,height:c,x:u+(0,o.Z)(e),y:l}}},73432:function(e,t,r){"use strict";function n(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}r.d(t,{Z:function(){return n}})},53219:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(73432);function i(e){var t=(0,n.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},83345:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(22801),i=r(27306),o=r(53219);function a(e){return(0,n.Z)((0,i.Z)(e)).left+(0,o.Z)(e).scrollLeft}},39818:function(e,t,r){"use strict";r.d(t,{Re:function(){return o},Zq:function(){return a},kK:function(){return i}});var n=r(73432);function i(e){return e instanceof(0,n.Z)(e).Element||e instanceof Element}function o(e){return e instanceof(0,n.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,n.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},54653:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(6401);function i(e){var t=(0,n.Z)(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}},29777:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(94870);function i(e){return["table","td","th"].indexOf((0,n.Z)(e))>=0}},24534:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(82513),i=r(72987),o=r(73432),a=r(54653);function s(e,t){var r;void 0===t&&(t=[]);var c=(0,n.Z)(e),u=c===(null==(r=e.ownerDocument)?void 0:r.body),l=(0,o.Z)(c),p=u?[l].concat(l.visualViewport||[],(0,a.Z)(c)?c:[]):c,d=t.concat(p);return u?d:d.concat(s((0,i.Z)(p)))}},89670:function(e,t,r){"use strict";r.d(t,{BL:function(){return u},Ct:function(){return g},F2:function(){return o},I:function(){return i},Pj:function(){return d},YP:function(){return m},bw:function(){return v},d7:function(){return s},k5:function(){return f},mv:function(){return c},t$:function(){return a},ut:function(){return l},we:function(){return n},xs:function(){return h},zV:function(){return p}});var n="top",i="bottom",o="right",a="left",s="auto",c=[n,i,o,a],u="start",l="end",p="clippingParents",d="viewport",f="popper",m="reference",v=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),g=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),h=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},19826:function(e,t,r){"use strict";var n=r(94870),i=r(39818);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},a=t.elements[e];(0,i.Re)(a)&&(0,n.Z)(a)&&(Object.assign(a.style,r),Object.keys(o).forEach((function(e){var t=o[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});(0,i.Re)(o)&&(0,n.Z)(o)&&(Object.assign(o.style,s),Object.keys(a).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]}},97364:function(e,t,r){"use strict";var n=r(37441),i=r(210),o=r(58751),a=r(31022),s=r(80082),c=r(78889),u=r(20661),l=r(14986),p=r(89670);t.Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,d=e.options,f=r.elements.arrow,m=r.modifiersData.popperOffsets,v=(0,n.Z)(r.placement),g=(0,s.Z)(v),h=[p.t$,p.F2].indexOf(v)>=0?"height":"width";if(f&&m){var w=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.Z)("number"!=typeof e?e:(0,l.Z)(e,p.mv))}(d.padding,r),y=(0,i.Z)(f),b="y"===g?p.we:p.t$,S="y"===g?p.I:p.F2,M=r.rects.reference[h]+r.rects.reference[g]-m[g]-r.rects.popper[h],P=m[g]-r.rects.reference[g],_=(0,a.Z)(f),k=_?"y"===g?_.clientHeight||0:_.clientWidth||0:0,R=M/2-P/2,x=w[b],O=k-y[h]-w[S],A=k/2-y[h]/2+R,E=(0,c.u)(x,A,O),W=g;r.modifiersData[o]=((t={})[W]=E,t.centerOffset=E-A,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(0,o.Z)(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},73730:function(e,t,r){"use strict";var n=r(89670),i=r(31022),o=r(73432),a=r(27306),s=r(6401),c=r(37441),u=r(13605),l=r(73416),p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(e){var t,r=e.popper,c=e.popperRect,u=e.placement,d=e.variation,f=e.offsets,m=e.position,v=e.gpuAcceleration,g=e.adaptive,h=e.roundOffsets,w=e.isFixed,y=f.x,b=void 0===y?0:y,S=f.y,M=void 0===S?0:S,P="function"==typeof h?h({x:b,y:M}):{x:b,y:M};b=P.x,M=P.y;var _=f.hasOwnProperty("x"),k=f.hasOwnProperty("y"),R=n.t$,x=n.we,O=window;if(g){var A=(0,i.Z)(r),E="clientHeight",W="clientWidth";if(A===(0,o.Z)(r)&&(A=(0,a.Z)(r),"static"!==(0,s.Z)(A).position&&"absolute"===m&&(E="scrollHeight",W="scrollWidth")),u===n.we||(u===n.t$||u===n.F2)&&d===n.ut)x=n.I,M-=(w&&A===O&&O.visualViewport?O.visualViewport.height:A[E])-c.height,M*=v?1:-1;if(u===n.t$||(u===n.we||u===n.I)&&d===n.ut)R=n.F2,b-=(w&&A===O&&O.visualViewport?O.visualViewport.width:A[W])-c.width,b*=v?1:-1}var L,T=Object.assign({position:m},g&&p),I=!0===h?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:(0,l.NM)(t*n)/n||0,y:(0,l.NM)(r*n)/n||0}}({x:b,y:M}):{x:b,y:M};return b=I.x,M=I.y,v?Object.assign({},T,((L={})[x]=k?"0":"",L[R]=_?"0":"",L.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+M+"px)":"translate3d("+b+"px, "+M+"px, 0)",L)):Object.assign({},T,((t={})[x]=k?M+"px":"",t[R]=_?b+"px":"",t.transform="",t))}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,l=void 0===s||s,p={placement:(0,c.Z)(t.placement),variation:(0,u.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,d(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,d(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},93570:function(e,t,r){"use strict";var n=r(73432),i={passive:!0};t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,a=o.scroll,s=void 0===a||a,c=o.resize,u=void 0===c||c,l=(0,n.Z)(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach((function(e){e.addEventListener("scroll",r.update,i)})),u&&l.addEventListener("resize",r.update,i),function(){s&&p.forEach((function(e){e.removeEventListener("scroll",r.update,i)})),u&&l.removeEventListener("resize",r.update,i)}},data:{}}},49640:function(e,t,r){"use strict";var n=r(6448),i=r(37441),o=r(27640),a=r(7550),s=r(47240),c=r(89670),u=r(13605);t.Z={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var p=r.mainAxis,d=void 0===p||p,f=r.altAxis,m=void 0===f||f,v=r.fallbackPlacements,g=r.padding,h=r.boundary,w=r.rootBoundary,y=r.altBoundary,b=r.flipVariations,S=void 0===b||b,M=r.allowedAutoPlacements,P=t.options.placement,_=(0,i.Z)(P),k=v||(_===P||!S?[(0,n.Z)(P)]:function(e){if((0,i.Z)(e)===c.d7)return[];var t=(0,n.Z)(e);return[(0,o.Z)(e),t,(0,o.Z)(t)]}(P)),R=[P].concat(k).reduce((function(e,r){return e.concat((0,i.Z)(r)===c.d7?(0,s.Z)(t,{placement:r,boundary:h,rootBoundary:w,padding:g,flipVariations:S,allowedAutoPlacements:M}):r)}),[]),x=t.rects.reference,O=t.rects.popper,A=new Map,E=!0,W=R[0],L=0;L<R.length;L++){var T=R[L],I=(0,i.Z)(T),C=(0,u.Z)(T)===c.BL,j=[c.we,c.I].indexOf(I)>=0,N=j?"width":"height",F=(0,a.Z)(t,{placement:T,boundary:h,rootBoundary:w,altBoundary:y,padding:g}),Z=j?C?c.F2:c.t$:C?c.I:c.we;x[N]>O[N]&&(Z=(0,n.Z)(Z));var q=(0,n.Z)(Z),B=[];if(d&&B.push(F[I]<=0),m&&B.push(F[Z]<=0,F[q]<=0),B.every((function(e){return e}))){W=T,E=!1;break}A.set(T,B)}if(E)for(var D=function(e){var t=R.find((function(t){var r=A.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return W=t,"break"},H=S?3:1;H>0;H--){if("break"===D(H))break}t.placement!==W&&(t.modifiersData[l]._skip=!0,t.placement=W,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},78307:function(e,t,r){"use strict";var n=r(89670),i=r(7550);function o(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function a(e){return[n.we,n.F2,n.I,n.t$].some((function(t){return e[t]>=0}))}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,s=t.rects.popper,c=t.modifiersData.preventOverflow,u=(0,i.Z)(t,{elementContext:"reference"}),l=(0,i.Z)(t,{altBoundary:!0}),p=o(u,n),d=o(l,s,c),f=a(p),m=a(d);t.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},25900:function(e,t,r){"use strict";var n=r(37441),i=r(89670);t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,a=r.offset,s=void 0===a?[0,0]:a,c=i.Ct.reduce((function(e,r){return e[r]=function(e,t,r){var o=(0,n.Z)(e),a=[i.t$,i.we].indexOf(o)>=0?-1:1,s="function"==typeof r?r(Object.assign({},t,{placement:e})):r,c=s[0],u=s[1];return c=c||0,u=(u||0)*a,[i.t$,i.F2].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}}(r,t.rects,s),e}),{}),u=c[t.placement],l=u.x,p=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=c}}},25196:function(e,t,r){"use strict";var n=r(86852);t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=(0,n.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},12789:function(e,t,r){"use strict";var n=r(89670),i=r(37441),o=r(80082),a=r(72243),s=r(78889),c=r(210),u=r(31022),l=r(7550),p=r(13605),d=r(48388),f=r(73416);t.Z={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,m=e.name,v=r.mainAxis,g=void 0===v||v,h=r.altAxis,w=void 0!==h&&h,y=r.boundary,b=r.rootBoundary,S=r.altBoundary,M=r.padding,P=r.tether,_=void 0===P||P,k=r.tetherOffset,R=void 0===k?0:k,x=(0,l.Z)(t,{boundary:y,rootBoundary:b,padding:M,altBoundary:S}),O=(0,i.Z)(t.placement),A=(0,p.Z)(t.placement),E=!A,W=(0,o.Z)(O),L=(0,a.Z)(W),T=t.modifiersData.popperOffsets,I=t.rects.reference,C=t.rects.popper,j="function"==typeof R?R(Object.assign({},t.rects,{placement:t.placement})):R,N="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Z={x:0,y:0};if(T){if(g){var q,B="y"===W?n.we:n.t$,D="y"===W?n.I:n.F2,H="y"===W?"height":"width",U=T[W],V=U+x[B],z=U-x[D],G=_?-C[H]/2:0,$=A===n.BL?I[H]:C[H],J=A===n.BL?-C[H]:-I[H],K=t.elements.arrow,Q=_&&K?(0,c.Z)(K):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.Z)(),X=Y[B],ee=Y[D],te=(0,s.u)(0,I[H],Q[H]),re=E?I[H]/2-G-te-X-N.mainAxis:$-te-X-N.mainAxis,ne=E?-I[H]/2+G+te+ee+N.mainAxis:J+te+ee+N.mainAxis,ie=t.elements.arrow&&(0,u.Z)(t.elements.arrow),oe=ie?"y"===W?ie.clientTop||0:ie.clientLeft||0:0,ae=null!=(q=null==F?void 0:F[W])?q:0,se=U+re-ae-oe,ce=U+ne-ae,ue=(0,s.u)(_?(0,f.VV)(V,se):V,U,_?(0,f.Fp)(z,ce):z);T[W]=ue,Z[W]=ue-U}if(w){var le,pe="x"===W?n.we:n.t$,de="x"===W?n.I:n.F2,fe=T[L],me="y"===L?"height":"width",ve=fe+x[pe],ge=fe-x[de],he=-1!==[n.we,n.t$].indexOf(O),we=null!=(le=null==F?void 0:F[L])?le:0,ye=he?ve:fe-I[me]-C[me]-we+N.altAxis,be=he?fe+I[me]+C[me]-we-N.altAxis:ge,Se=_&&he?(0,s.q)(ye,fe,be):(0,s.u)(_?ye:ve,fe,_?be:ge);T[L]=Se,Z[L]=Se-fe}t.modifiersData[m]=Z}},requiresIfExists:["offset"]}},71717:function(e,t,r){"use strict";r.d(t,{fi:function(){return m}});var n=r(89640),i=r(93570),o=r(25196),a=r(73730),s=r(19826),c=r(25900),u=r(49640),l=r(12789),p=r(97364),d=r(78307),f=[i.Z,o.Z,a.Z,s.Z,c.Z,u.Z,l.Z,p.Z,d.Z],m=(0,n.kZ)({defaultModifiers:f})},47240:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(13605),i=r(89670),o=r(7550),a=r(37441);function s(e,t){void 0===t&&(t={});var r=t,s=r.placement,c=r.boundary,u=r.rootBoundary,l=r.padding,p=r.flipVariations,d=r.allowedAutoPlacements,f=void 0===d?i.Ct:d,m=(0,n.Z)(s),v=m?p?i.bw:i.bw.filter((function(e){return(0,n.Z)(e)===m})):i.mv,g=v.filter((function(e){return f.indexOf(e)>=0}));0===g.length&&(g=v);var h=g.reduce((function(t,r){return t[r]=(0,o.Z)(e,{placement:r,boundary:c,rootBoundary:u,padding:l})[(0,a.Z)(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}},86852:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(37441),i=r(13605),o=r(80082),a=r(89670);function s(e){var t,r=e.reference,s=e.element,c=e.placement,u=c?(0,n.Z)(c):null,l=c?(0,i.Z)(c):null,p=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2;switch(u){case a.we:t={x:p,y:r.y-s.height};break;case a.I:t={x:p,y:r.y+r.height};break;case a.F2:t={x:r.x+r.width,y:d};break;case a.t$:t={x:r.x-s.width,y:d};break;default:t={x:r.x,y:r.y}}var f=u?(0,o.Z)(u):null;if(null!=f){var m="y"===f?"height":"width";switch(l){case a.BL:t[f]=t[f]-(r[m]/2-s[m]/2);break;case a.ut:t[f]=t[f]+(r[m]/2-s[m]/2)}}return t}},49102:function(e,t,r){"use strict";function n(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}r.d(t,{Z:function(){return n}})},7550:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(3315),i=r(27306),o=r(22801),a=r(86852),s=r(92505),c=r(89670),u=r(39818),l=r(20661),p=r(14986);function d(e,t){void 0===t&&(t={});var r=t,d=r.placement,f=void 0===d?e.placement:d,m=r.boundary,v=void 0===m?c.zV:m,g=r.rootBoundary,h=void 0===g?c.Pj:g,w=r.elementContext,y=void 0===w?c.k5:w,b=r.altBoundary,S=void 0!==b&&b,M=r.padding,P=void 0===M?0:M,_=(0,l.Z)("number"!=typeof P?P:(0,p.Z)(P,c.mv)),k=y===c.k5?c.YP:c.k5,R=e.rects.popper,x=e.elements[S?k:y],O=(0,n.Z)((0,u.kK)(x)?x:x.contextElement||(0,i.Z)(e.elements.popper),v,h),A=(0,o.Z)(e.elements.reference),E=(0,a.Z)({reference:A,element:R,strategy:"absolute",placement:f}),W=(0,s.Z)(Object.assign({},R,E)),L=y===c.k5?W:A,T={top:O.top-L.top+_.top,bottom:L.bottom-O.bottom+_.bottom,left:O.left-L.left+_.left,right:L.right-O.right+_.right},I=e.modifiersData.offset;if(y===c.k5&&I){var C=I[f];Object.keys(T).forEach((function(e){var t=[c.F2,c.I].indexOf(e)>=0?1:-1,r=[c.we,c.I].indexOf(e)>=0?"y":"x";T[e]+=C[r]*t}))}return T}},14986:function(e,t,r){"use strict";function n(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}r.d(t,{Z:function(){return n}})},72243:function(e,t,r){"use strict";function n(e){return"x"===e?"y":"x"}r.d(t,{Z:function(){return n}})},37441:function(e,t,r){"use strict";function n(e){return e.split("-")[0]}r.d(t,{Z:function(){return n}})},48388:function(e,t,r){"use strict";function n(){return{top:0,right:0,bottom:0,left:0}}r.d(t,{Z:function(){return n}})},80082:function(e,t,r){"use strict";function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}r.d(t,{Z:function(){return n}})},6448:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n={left:"right",right:"left",bottom:"top",top:"bottom"};function i(e){return e.replace(/left|right|bottom|top/g,(function(e){return n[e]}))}},27640:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n={start:"end",end:"start"};function i(e){return e.replace(/start|end/g,(function(e){return n[e]}))}},13605:function(e,t,r){"use strict";function n(e){return e.split("-")[1]}r.d(t,{Z:function(){return n}})},73416:function(e,t,r){"use strict";r.d(t,{Fp:function(){return n},NM:function(){return o},VV:function(){return i}});var n=Math.max,i=Math.min,o=Math.round},70350:function(e,t,r){"use strict";function n(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}r.d(t,{Z:function(){return n}})},20661:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(48388);function i(e){return Object.assign({},(0,n.Z)(),e)}},97285:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(89670);function i(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}function o(e){var t=i(e);return n.xs.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}},92505:function(e,t,r){"use strict";function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}r.d(t,{Z:function(){return n}})},78889:function(e,t,r){"use strict";r.d(t,{q:function(){return o},u:function(){return i}});var n=r(73416);function i(e,t,r){return(0,n.Fp)(e,(0,n.VV)(t,r))}function o(e,t,r){var n=i(e,t,r);return n>r?r:n}},23362:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){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=t.call(e,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function o(e){var t=0,r=0,n=e;do{t+=n.offsetTop||0,r+=n.offsetLeft||0,n=n.offsetParent}while(n);return{top:t,left:r}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e){this.element=e}return e.prototype.getHorizontalScroll=function(){return this.element.scrollLeft},e.prototype.getVerticalScroll=function(){return this.element.scrollTop},e.prototype.getMaxHorizontalScroll=function(){return this.element.scrollWidth-this.element.clientWidth},e.prototype.getMaxVerticalScroll=function(){return this.element.scrollHeight-this.element.clientHeight},e.prototype.getHorizontalElementScrollOffset=function(e,t){return o(e).left-o(t).left},e.prototype.getVerticalElementScrollOffset=function(e,t){return o(e).top-o(t).top},e.prototype.scrollTo=function(e,t){this.element.scrollLeft=e,this.element.scrollTop=t},e}(),s=function(){function e(){}return e.prototype.getHorizontalScroll=function(){return window.scrollX||document.documentElement.scrollLeft},e.prototype.getVerticalScroll=function(){return window.scrollY||document.documentElement.scrollTop},e.prototype.getMaxHorizontalScroll=function(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth},e.prototype.getMaxVerticalScroll=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight},e.prototype.getHorizontalElementScrollOffset=function(e){return(window.scrollX||document.documentElement.scrollLeft)+e.getBoundingClientRect().left},e.prototype.getVerticalElementScrollOffset=function(e){return(window.scrollY||document.documentElement.scrollTop)+e.getBoundingClientRect().top},e.prototype.scrollTo=function(e,t){window.scrollTo(e,t)},e}(),c={elements:[],cancelMethods:[],add:function(e,t){c.elements.push(e),c.cancelMethods.push(t)},remove:function(e,t){void 0===t&&(t=!0);var r=c.elements.indexOf(e);r>-1&&(t&&c.cancelMethods[r](),c.elements.splice(r,1),c.cancelMethods.splice(r,1))}},u="undefined"!=typeof window,l={cancelOnUserAction:!0,easing:function(e){return--e*e*e+1},elementToScroll:u?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};t.default=function(e,t){return void 0===t&&(t={}),n(this,void 0,void 0,(function(){var n,o,p,d,f,m,v,g,h,w,y,b,S,M,P,_,k;return i(this,(function(i){if(!u)return[2,new Promise((function(e){e(!1)}))];if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill.";if(d=r(r({},l),t),f=d.elementToScroll===window,m=!!d.elementToScroll.nodeName,!f&&!m)throw"Element to scroll needs to be either window or DOM element.";if(v=f?document.documentElement:d.elementToScroll,"smooth"===getComputedStyle(v).getPropertyValue("scroll-behavior")&&console.warn(v.tagName+' has "scroll-behavior: smooth" which can mess up with animated-scroll-to\'s animations'),g=f?new s:new a(d.elementToScroll),e instanceof Element){if(p=e,m&&(!d.elementToScroll.contains(p)||d.elementToScroll.isSameNode(p)))throw"options.elementToScroll has to be a parent of scrollToElement";n=g.getHorizontalElementScrollOffset(p,d.elementToScroll),o=g.getVerticalElementScrollOffset(p,d.elementToScroll)}else if("number"==typeof e)n=g.getHorizontalScroll(),o=e;else{if(!Array.isArray(e)||2!==e.length)throw"Wrong function signature. Check documentation.\nAvailable method signatures are:\n  animateScrollTo(y:number, options)\n  animateScrollTo([x:number | null, y:number | null], options)\n  animateScrollTo(scrollToElement:Element, options)";n=null===e[0]?g.getHorizontalScroll():e[0],o=null===e[1]?g.getVerticalScroll():e[1]}return n+=d.horizontalOffset,o+=d.verticalOffset,h=g.getMaxHorizontalScroll(),w=g.getHorizontalScroll(),n>h&&(n=h),y=n-w,b=g.getMaxVerticalScroll(),S=g.getVerticalScroll(),o>b&&(o=b),M=o-S,P=Math.abs(Math.round(y/1e3*d.speed)),_=Math.abs(Math.round(M/1e3*d.speed)),(k=P>_?P:_)<d.minDuration?k=d.minDuration:k>d.maxDuration&&(k=d.maxDuration),[2,new Promise((function(e,t){var r;0===y&&0===M&&e(!0),c.remove(d.elementToScroll,!0);var i=function(){l(),cancelAnimationFrame(r),e(!1)};c.add(d.elementToScroll,i);var a=d.cancelOnUserAction?i:function(e){return e.preventDefault()},s=d.cancelOnUserAction?{passive:!0}:{passive:!1},u=["wheel","touchstart","keydown","mousedown"],l=function(){u.forEach((function(e){d.elementToScroll.removeEventListener(e,a,s)}))};u.forEach((function(e){d.elementToScroll.addEventListener(e,a,s)}));var p=Date.now(),f=function(){var t=Date.now()-p,i=t/k,a=Math.round(w+y*d.easing(i)),s=Math.round(S+M*d.easing(i));t<k&&(a!==n||s!==o)?(g.scrollTo(a,s),r=requestAnimationFrame(f)):(g.scrollTo(n,o),cancelAnimationFrame(r),l(),c.remove(d.elementToScroll,!1),e(!0))};r=requestAnimationFrame(f)}))]}))}))}},38974:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,c=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),i=c(r(93)),o=c(r(94)),a=c(r(95)),s=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)})),n>0){var a=Object.keys(r),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var p=this.satisfies(r[l]);if(void 0!==p)return p}}if(o>0){var d=Object.keys(i),f=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)(\d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},97676:function(e,t,r){var n=r(75277),i=r(28768),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not a function")}},43327:function(e,t,r){var n=r(31536),i=r(28768),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not a constructor")}},75017:function(e,t,r){var n=r(75277),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},6677:function(e,t,r){var n=r(52280),i=r(51569),o=r(86385).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},13350:function(e,t,r){"use strict";var n=r(91140).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9519:function(e,t,r){var n=r(32010),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw i("Incorrect invocation")}},83875:function(e,t,r){var n=r(52786),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not an object")}},37190:function(e,t,r){var n=r(29580),i=r(32565),o=r(47046),a=function(e){return function(t,r,a){var s,c=n(t),u=o(c),l=i(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},54324:function(e,t,r){"use strict";var n=r(79044);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},86596:function(e,t,r){var n=r(97676),i=r(30744),o=r(78609),a=r(47046),s=TypeError,c=function(e){return function(t,r,c,u){n(r);var l=i(t),p=o(l),d=a(l),f=e?d-1:0,m=e?-1:1;if(c<2)for(;;){if(f in p){u=p[f],f+=m;break}if(f+=m,e?f<0:d<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=m)f in p&&(u=r(u,p[f],f,l));return u}};e.exports={left:c(!1),right:c(!0)}},58990:function(e,t,r){var n=r(32565),i=r(47046),o=r(35039),a=Array,s=Math.max;e.exports=function(e,t,r){for(var c=i(e),u=n(t,c),l=n(void 0===r?c:r,c),p=a(s(l-u,0)),d=0;u<l;u++,d++)o(p,d,e[u]);return p.length=d,p}},15629:function(e,t,r){var n=r(88697);e.exports=n([].slice)},2013:function(e,t,r){var n=r(58990),i=Math.floor,o=function(e,t){var r=e.length,c=i(r/2);return r<8?a(e,t):s(e,o(n(e,0,c),t),o(n(e,c),t),t)},a=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},s=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e};e.exports=o},8662:function(e,t,r){var n=r(52280)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(s){}return r}},79159:function(e,t,r){var n=r(88697),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},36994:function(e,t,r){var n=r(57301),i=r(75277),o=r(79159),a=r(52280)("toStringTag"),s=Object,c="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=s(e),a))?r:c?o(t):"Object"==(n=o(t))&&i(t.callee)?"Arguments":n}},73870:function(e,t,r){var n=r(24792),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t,r){for(var s=i(t),c=a.f,u=o.f,l=0;l<s.length;l++){var p=s[l];n(e,p)||r&&n(r,p)||c(e,p,u(t,p))}}},15454:function(e,t,r){var n=r(52280)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},25115:function(e,t,r){var n=r(79044);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6181:function(e,t,r){"use strict";var n=r(97022).IteratorPrototype,i=r(51569),o=r(69199),a=r(60878),s=r(44818),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=i(n,{next:o(+!u,r)}),a(e,l,!1,!0),s[l]=c,e}},45899:function(e,t,r){var n=r(7493),i=r(86385),o=r(69199);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},69199:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},35039:function(e,t,r){"use strict";var n=r(383),i=r(86385),o=r(69199);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},50403:function(e,t,r){var n=r(75277),i=r(86385),o=r(20833),a=r(62359);e.exports=function(e,t,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;return n(r)&&o(r,u,s),s.global?c?e[t]=r:a(t,r):(s.unsafe?e[t]&&(c=!0):delete e[t],c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})),e}},63357:function(e,t,r){var n=r(50403);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},62359:function(e,t,r){var n=r(98363),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},61495:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(21178),a=r(55316),s=r(75277),c=r(6181),u=r(12654),l=r(22412),p=r(60878),d=r(45899),f=r(50403),m=r(52280),v=r(44818),g=r(97022),h=a.PROPER,w=a.CONFIGURABLE,y=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,S=m("iterator"),M="keys",P="values",_="entries",k=function(){return this};e.exports=function(e,t,r,a,m,g,R){c(r,t,a);var x,O,A,E=function(e){if(e===m&&C)return C;if(!b&&e in T)return T[e];switch(e){case M:case P:case _:return function(){return new r(this,e)}}return function(){return new r(this)}},W=t+" Iterator",L=!1,T=e.prototype,I=T[S]||T["@@iterator"]||m&&T[m],C=!b&&I||E(m),j="Array"==t&&T.entries||I;if(j&&(x=u(j.call(new e)))!==Object.prototype&&x.next&&(o||u(x)===y||(l?l(x,y):s(x[S])||f(x,S,k)),p(x,W,!0,!0),o&&(v[W]=k)),h&&m==P&&I&&I.name!==P&&(!o&&w?d(T,"name",P):(L=!0,C=function(){return i(I,this)})),m)if(O={values:E(P),keys:g?C:E(M),entries:E(_)},R)for(A in O)(b||L||!(A in T))&&f(T,A,O[A]);else n({target:t,proto:!0,forced:b||L},O);return o&&!R||T[S]===C||f(T,S,C,{name:m}),v[t]=C,O}},7493:function(e,t,r){var n=r(79044);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(e,t,r){var n=r(98363),i=r(52786),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},12848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79189:function(e,t,r){var n=r(92750)("span").classList,i=n&&n.constructor&&n.constructor.prototype;e.exports=i===Object.prototype?void 0:i},47923:function(e){e.exports="object"==typeof window&&"object"!=typeof Deno},55357:function(e,t,r){var n=r(82647),i=r(98363);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},53121:function(e,t,r){var n=r(82647);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},93921:function(e,t,r){var n=r(79159),i=r(98363);e.exports="process"==n(i.process)},14402:function(e,t,r){var n=r(82647);e.exports=/web0s(?!.*chrome)/i.test(n)},82647:function(e,t,r){var n=r(22773);e.exports=n("navigator","userAgent")||""},11197:function(e,t,r){var n,i,o=r(98363),a=r(82647),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},48869:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(e,t,r){var n=r(98363),i=r(66012).f,o=r(45899),a=r(50403),s=r(62359),c=r(73870),u=r(86291);e.exports=function(e,t){var r,l,p,d,f,m=e.target,v=e.global,g=e.stat;if(r=v?n:g?n[m]||s(m,{}):(n[m]||{}).prototype)for(l in t){if(d=t[l],p=e.dontCallGetSet?(f=i(r,l))&&f.value:r[l],!u(v?l:m+(g?".":"#")+l,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(e.sham||p&&p.sham)&&o(d,"sham",!0),a(r,l,d,e)}}},79044:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},81492:function(e,t,r){"use strict";r(39275);var n=r(88697),i=r(50403),o=r(99749),a=r(79044),s=r(52280),c=r(45899),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,r,p){var d=s(e),f=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),m=f&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!f||!m||r){var v=n(/./[d]),g=t(d,""[e],(function(e,t,r,i,a){var s=n(e),c=t.exec;return c===o||c===l.exec?f&&!a?{done:!0,value:v(t,r,i)}:{done:!0,value:s(r,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(l,d,g[1])}p&&c(l[d],"sham",!0)}},63530:function(e,t,r){var n=r(23996),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},98166:function(e,t,r){var n=r(88697),i=r(97676),o=r(23996),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},23996:function(e,t,r){var n=r(79044);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},79611:function(e,t,r){var n=r(23996),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},55316:function(e,t,r){var n=r(7493),i=r(24792),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},88697:function(e,t,r){var n=r(23996),i=Function.prototype,o=i.bind,a=i.call,s=n&&o.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},22773:function(e,t,r){var n=r(98363),i=r(75277);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},77193:function(e,t,r){var n=r(36994),i=r(97219),o=r(44818),a=r(52280)("iterator");e.exports=function(e){if(null!=e)return i(e,a)||i(e,"@@iterator")||o[n(e)]}},11805:function(e,t,r){var n=r(79611),i=r(97676),o=r(83875),a=r(28768),s=r(77193),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw c(a(e)+" is not iterable")}},97219:function(e,t,r){var n=r(97676);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},81373:function(e,t,r){var n=r(88697),i=r(30744),o=Math.floor,a=n("".charAt),s=n("".replace),c=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,p,d){var f=r+e.length,m=n.length,v=l;return void 0!==p&&(p=i(p),v=u),s(d,v,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,r);case"'":return c(t,f);case"<":u=p[c(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>m){var d=o(l/10);return 0===d?i:d<=m?void 0===n[d-1]?a(s,1):n[d-1]+a(s,1):i}u=n[l-1]}return void 0===u?"":u}))}},98363:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},24792:function(e,t,r){var n=r(88697),i=r(30744),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},47505:function(e){e.exports={}},46271:function(e,t,r){var n=r(98363);e.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},47055:function(e,t,r){var n=r(22773);e.exports=n("document","documentElement")},67548:function(e,t,r){var n=r(7493),i=r(79044),o=r(92750);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78609:function(e,t,r){var n=r(88697),i=r(79044),o=r(79159),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},59250:function(e,t,r){var n=r(75277),i=r(52786),o=r(22412);e.exports=function(e,t,r){var a,s;return o&&n(a=t.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(e,s),e}},56429:function(e,t,r){var n=r(88697),i=r(75277),o=r(49415),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},20821:function(e,t,r){var n,i,o,a=r(36830),s=r(98363),c=r(88697),u=r(52786),l=r(45899),p=r(24792),d=r(49415),f=r(50466),m=r(47505),v="Object already initialized",g=s.TypeError,h=s.WeakMap;if(a||d.state){var w=d.state||(d.state=new h),y=c(w.get),b=c(w.has),S=c(w.set);n=function(e,t){if(b(w,e))throw new g(v);return t.facade=e,S(w,e,t),t},i=function(e){return y(w,e)||{}},o=function(e){return b(w,e)}}else{var M=f("state");m[M]=!0,n=function(e,t){if(p(e,M))throw new g(v);return t.facade=e,l(e,M,t),t},i=function(e){return p(e,M)?e[M]:{}},o=function(e){return p(e,M)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return r}}}},68089:function(e,t,r){var n=r(52280),i=r(44818),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},75277:function(e){e.exports=function(e){return"function"==typeof e}},31536:function(e,t,r){var n=r(88697),i=r(79044),o=r(75277),a=r(36994),s=r(22773),c=r(56429),u=function(){},l=[],p=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),m=!d.exec(u),v=function(e){if(!o(e))return!1;try{return p(u,l,e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(d,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!p||i((function(){var e;return v(v.call)||!v(Object)||!v((function(){e=!0}))||e}))?g:v},86291:function(e,t,r){var n=r(79044),i=r(75277),o=/#|\.prototype\./,a=function(e,t){var r=c[s(e)];return r==l||r!=u&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},52786:function(e,t,r){var n=r(75277);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},21178:function(e){e.exports=!1},42622:function(e,t,r){var n=r(52786),i=r(79159),o=r(52280)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},66681:function(e,t,r){var n=r(22773),i=r(75277),o=r(32010),a=r(189),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},5166:function(e,t,r){var n=r(98166),i=r(79611),o=r(83875),a=r(28768),s=r(68089),c=r(47046),u=r(32010),l=r(11805),p=r(77193),d=r(18744),f=TypeError,m=function(e,t){this.stopped=e,this.result=t},v=m.prototype;e.exports=function(e,t,r){var g,h,w,y,b,S,M,P=r&&r.that,_=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_ITERATOR),R=!(!r||!r.INTERRUPTED),x=n(t,P),O=function(e){return g&&d(g,"normal",e),new m(!0,e)},A=function(e){return _?(o(e),R?x(e[0],e[1],O):x(e[0],e[1])):R?x(e,O):x(e)};if(k)g=e;else{if(!(h=p(e)))throw f(a(e)+" is not iterable");if(s(h)){for(w=0,y=c(e);y>w;w++)if((b=A(e[w]))&&u(v,b))return b;return new m(!1)}g=l(e,h)}for(S=g.next;!(M=i(S,g)).done;){try{b=A(M.value)}catch(E){d(g,"throw",E)}if("object"==typeof b&&b&&u(v,b))return b}return new m(!1)}},18744:function(e,t,r){var n=r(79611),i=r(83875),o=r(97219);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw r;if(s)throw a;return i(a),r}},97022:function(e,t,r){"use strict";var n,i,o,a=r(79044),s=r(75277),c=r(51569),u=r(12654),l=r(50403),p=r(52280),d=r(21178),f=p("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):m=!0),null==n||a((function(){var e={};return n[f].call(e)!==e}))?n={}:d&&(n=c(n)),s(n[f])||l(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},44818:function(e){e.exports={}},47046:function(e,t,r){var n=r(35108);e.exports=function(e){return n(e.length)}},20833:function(e,t,r){var n=r(79044),i=r(75277),o=r(24792),a=r(7493),s=r(55316).CONFIGURABLE,c=r(56429),u=r(20821),l=u.enforce,p=u.get,d=Object.defineProperty,f=a&&!n((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),v=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&d(e,"name",{value:t,configurable:!0}),f&&r&&o(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=l(e);return o(n,"source")||(n.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return i(this)&&p(this).source||c(this)}),"toString")},78300:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},71800:function(e,t,r){var n,i,o,a,s,c,u,l,p=r(98363),d=r(98166),f=r(66012).f,m=r(84643).set,v=r(53121),g=r(55357),h=r(14402),w=r(93921),y=p.MutationObserver||p.WebKitMutationObserver,b=p.document,S=p.process,M=p.Promise,P=f(p,"queueMicrotask"),_=P&&P.value;_||(n=function(){var e,t;for(w&&(e=S.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(r){throw i?a():o=void 0,r}}o=void 0,e&&e.enter()},v||w||h||!y||!b?!g&&M&&M.resolve?((u=M.resolve(void 0)).constructor=M,l=d(u.then,u),a=function(){l(n)}):w?a=function(){S.nextTick(n)}:(m=d(m,p),a=function(){m(n)}):(s=!0,c=b.createTextNode(""),new y(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=_||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3850:function(e,t,r){var n=r(11197),i=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},40655:function(e,t,r){var n=r(79044),i=r(52280),o=r(21178),a=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},36830:function(e,t,r){var n=r(98363),i=r(75277),o=r(56429),a=n.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},29269:function(e,t,r){"use strict";var n=r(97676),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},21049:function(e,t,r){var n=r(42622),i=TypeError;e.exports=function(e){if(n(e))throw i("The method doesn't accept regular expressions");return e}},44762:function(e,t,r){var n=r(98363),i=r(79044),o=r(88697),a=r(28967),s=r(10287).trim,c=r(2569),u=o("".charAt),l=n.parseFloat,p=n.Symbol,d=p&&p.iterator,f=1/l(c+"-0")!=-1/0||d&&!i((function(){l(Object(d))}));e.exports=f?function(e){var t=s(a(e)),r=l(t);return 0===r&&"-"==u(t,0)?-0:r}:l},35399:function(e,t,r){var n=r(98363),i=r(79044),o=r(88697),a=r(28967),s=r(10287).trim,c=r(2569),u=n.parseInt,l=n.Symbol,p=l&&l.iterator,d=/^[+-]?0x/i,f=o(d.exec),m=8!==u(c+"08")||22!==u(c+"0x16")||p&&!i((function(){u(Object(p))}));e.exports=m?function(e,t){var r=s(a(e));return u(r,t>>>0||(f(d,r)?16:10))}:u},51569:function(e,t,r){var n,i=r(83875),o=r(17840),a=r(48869),s=r(47505),c=r(47055),u=r(92750),l=r(50466),p="prototype",d="script",f=l("IE_PROTO"),m=function(){},v=function(e){return"<"+d+">"+e+"</"+d+">"},g=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;h="undefined"!=typeof document?document.domain&&n?g(n):(t=u("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):g(n);for(var i=a.length;i--;)delete h[p][a[i]];return h()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=i(e),r=new m,m[p]=null,r[f]=e):r=h(),void 0===t?r:o.f(r,t)}},17840:function(e,t,r){var n=r(7493),i=r(51010),o=r(86385),a=r(83875),s=r(29580),c=r(60667);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=c(t),u=i.length,l=0;u>l;)o.f(e,r=i[l++],n[r]);return e}},86385:function(e,t,r){var n=r(7493),i=r(67548),o=r(51010),a=r(83875),s=r(383),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",f="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=l(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return u(e,t,r)}catch(n){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:function(e,t,r){var n=r(7493),i=r(79611),o=r(81513),a=r(69199),s=r(29580),c=r(383),u=r(24792),l=r(67548),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=s(e),t=c(t),l)try{return p(e,t)}catch(r){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},87994:function(e,t,r){var n=r(18794),i=r(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},89612:function(e,t){t.f=Object.getOwnPropertySymbols},12654:function(e,t,r){var n=r(24792),i=r(75277),o=r(30744),a=r(50466),s=r(25115),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(n(t,c))return t[c];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},32010:function(e,t,r){var n=r(88697);e.exports=n({}.isPrototypeOf)},18794:function(e,t,r){var n=r(88697),i=r(24792),o=r(29580),a=r(37190).indexOf,s=r(47505),c=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&c(l,r);for(;t.length>u;)i(n,r=t[u++])&&(~a(l,r)||c(l,r));return l}},60667:function(e,t,r){var n=r(18794),i=r(48869);e.exports=Object.keys||function(e){return n(e,i)}},81513:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},22412:function(e,t,r){var n=r(88697),i=r(83875),o=r(75017);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(a){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},17141:function(e,t,r){var n=r(79611),i=r(75277),o=r(52786),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw a("Can't convert object to primitive value")}},31561:function(e,t,r){var n=r(22773),i=r(88697),o=r(87994),a=r(89612),s=r(83875),c=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?c(t,r(e)):t}},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},35182:function(e,t,r){var n=r(98363),i=r(25988),o=r(75277),a=r(86291),s=r(56429),c=r(52280),u=r(47923),l=r(21178),p=r(11197),d=i&&i.prototype,f=c("species"),m=!1,v=o(n.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===p)return!0;if(l&&(!d.catch||!d.finally))return!0;if(p>=51&&/native code/.test(e))return!1;var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[f]=n,!(m=r.then((function(){}))instanceof n)||!t&&u&&!v}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:m}},25988:function(e,t,r){var n=r(98363);e.exports=n.Promise},11621:function(e,t,r){var n=r(83875),i=r(52786),o=r(29269);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},99581:function(e,t,r){var n=r(25988),i=r(8662),o=r(35182).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},79557:function(e,t,r){var n=r(86385).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},12423:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},94088:function(e,t,r){var n=r(79611),i=r(83875),o=r(75277),a=r(79159),s=r(99749),c=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var u=n(r,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return n(s,e,t);throw c("RegExp#exec called on incompatible receiver")}},99749:function(e,t,r){"use strict";var n,i,o=r(79611),a=r(88697),s=r(28967),c=r(58083),u=r(97047),l=r(53580),p=r(51569),d=r(20821).get,f=r(41669),m=r(1638),v=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,h=g,w=a("".charAt),y=a("".indexOf),b=a("".replace),S=a("".slice),M=(i=/b*/g,o(g,n=/a/,"a"),o(g,i,"a"),0!==n.lastIndex||0!==i.lastIndex),P=u.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(M||_||P||f||m)&&(h=function(e){var t,r,n,i,a,u,l,f=this,m=d(f),k=s(e),R=m.raw;if(R)return R.lastIndex=f.lastIndex,t=o(h,R,k),f.lastIndex=R.lastIndex,t;var x=m.groups,O=P&&f.sticky,A=o(c,f),E=f.source,W=0,L=k;if(O&&(A=b(A,"y",""),-1===y(A,"g")&&(A+="g"),L=S(k,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==w(k,f.lastIndex-1))&&(E="(?: "+E+")",L=" "+L,W++),r=new RegExp("^(?:"+E+")",A)),_&&(r=new RegExp("^"+E+"$(?!\\s)",A)),M&&(n=f.lastIndex),i=o(g,O?r:f,L),O?i?(i.input=S(i.input,W),i[0]=S(i[0],W),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:M&&i&&(f.lastIndex=f.global?i.index+i[0].length:n),_&&i&&i.length>1&&o(v,i[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&x)for(i.groups=u=p(null),a=0;a<x.length;a++)u[(l=x[a])[0]]=i[l[1]];return i}),e.exports=h},58083:function(e,t,r){"use strict";var n=r(83875);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},22511:function(e,t,r){var n=r(79611),i=r(24792),o=r(32010),a=r(58083),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:n(a,e)}},97047:function(e,t,r){var n=r(79044),i=r(98363).RegExp,o=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=o||n((function(){return!i("a","y").sticky})),s=o||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},41669:function(e,t,r){var n=r(79044),i=r(98363).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1638:function(e,t,r){var n=r(79044),i=r(98363).RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},96411:function(e){var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},10420:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},57323:function(e,t,r){"use strict";var n=r(22773),i=r(86385),o=r(52280),a=r(7493),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},60878:function(e,t,r){var n=r(86385).f,i=r(24792),o=r(52280)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},50466:function(e,t,r){var n=r(53580),i=r(34524),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},49415:function(e,t,r){var n=r(98363),i=r(62359),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},53580:function(e,t,r){var n=r(21178),i=r(49415);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7270:function(e,t,r){var n=r(83875),i=r(43327),o=r(52280)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},91140:function(e,t,r){var n=r(88697),i=r(14229),o=r(28967),a=r(96411),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=o(a(t)),d=i(r),f=p.length;return d<0||d>=f?e?"":void 0:(n=c(p,d))<55296||n>56319||d+1===f||(l=c(p,d+1))<56320||l>57343?e?s(p,d):n:e?u(p,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},26031:function(e,t,r){"use strict";var n=r(14229),i=r(28967),o=r(96411),a=RangeError;e.exports=function(e){var t=i(o(this)),r="",s=n(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},68487:function(e,t,r){var n=r(55316).PROPER,i=r(79044),o=r(2569);e.exports=function(e){return i((function(){return!!o[e]()||"​᠎"!=="​᠎"[e]()||n&&o[e].name!==e}))}},10287:function(e,t,r){var n=r(88697),i=r(96411),o=r(28967),a=r(2569),s=n("".replace),c="["+a+"]",u=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),p=function(e){return function(t){var r=o(i(t));return 1&e&&(r=s(r,u,"")),2&e&&(r=s(r,l,"")),r}};e.exports={start:p(1),end:p(2),trim:p(3)}},84643:function(e,t,r){var n,i,o,a,s=r(98363),c=r(63530),u=r(98166),l=r(75277),p=r(24792),d=r(79044),f=r(47055),m=r(15629),v=r(92750),g=r(27687),h=r(53121),w=r(93921),y=s.setImmediate,b=s.clearImmediate,S=s.process,M=s.Dispatch,P=s.Function,_=s.MessageChannel,k=s.String,R=0,x={},O="onreadystatechange";try{n=s.location}catch(T){}var A=function(e){if(p(x,e)){var t=x[e];delete x[e],t()}},E=function(e){return function(){A(e)}},W=function(e){A(e.data)},L=function(e){s.postMessage(k(e),n.protocol+"//"+n.host)};y&&b||(y=function(e){g(arguments.length,1);var t=l(e)?e:P(e),r=m(arguments,1);return x[++R]=function(){c(t,void 0,r)},i(R),R},b=function(e){delete x[e]},w?i=function(e){S.nextTick(E(e))}:M&&M.now?i=function(e){M.now(E(e))}:_&&!h?(a=(o=new _).port2,o.port1.onmessage=W,i=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!d(L)?(i=L,s.addEventListener("message",W,!1)):i=O in v("script")?function(e){f.appendChild(v("script"))[O]=function(){f.removeChild(this),A(e)}}:function(e){setTimeout(E(e),0)}),e.exports={set:y,clear:b}},41655:function(e,t,r){var n=r(88697);e.exports=n(1..valueOf)},32565:function(e,t,r){var n=r(14229),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},29580:function(e,t,r){var n=r(78609),i=r(96411);e.exports=function(e){return n(i(e))}},14229:function(e,t,r){var n=r(78300);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},35108:function(e,t,r){var n=r(14229),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:function(e,t,r){var n=r(96411),i=Object;e.exports=function(e){return i(n(e))}},21893:function(e,t,r){var n=r(79611),i=r(52786),o=r(66681),a=r(97219),s=r(17141),c=r(52280),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,c=a(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||o(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},383:function(e,t,r){var n=r(21893),i=r(66681);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},57301:function(e,t,r){var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},28967:function(e,t,r){var n=r(36994),i=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},28768:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},34524:function(e,t,r){var n=r(88697),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},189:function(e,t,r){var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},51010:function(e,t,r){var n=r(7493),i=r(79044);e.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},27687:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},52280:function(e,t,r){var n=r(98363),i=r(53580),o=r(24792),a=r(34524),s=r(3850),c=r(189),u=i("wks"),l=n.Symbol,p=l&&l.for,d=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(l,e)?u[e]=l[e]:u[e]=c&&p?p(t):d(t)}return u[e]}},2569:function(e){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},18183:function(e,t,r){"use strict";var n=r(19882),i=r(37190).includes,o=r(79044),a=r(6677);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54883:function(e,t,r){"use strict";var n=r(29580),i=r(6677),o=r(44818),a=r(20821),s=r(86385).f,c=r(61495),u=r(21178),l=r(7493),p="Array Iterator",d=a.set,f=a.getterFor(p);e.exports=c(Array,"Array",(function(e,t){d(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&l&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(v){}},193:function(e,t,r){"use strict";var n=r(19882),i=r(86596).left,o=r(54324),a=r(11197),s=r(93921);n({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},12798:function(e,t,r){"use strict";var n=r(19882),i=r(88697),o=r(14229),a=r(41655),s=r(26031),c=r(79044),u=RangeError,l=String,p=Math.floor,d=i(s),f=i("".slice),m=i(1..toFixed),v=function(e,t,r){return 0===t?r:t%2==1?v(e,t-1,r*e):v(e*e,t/2,r)},g=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=p(i/1e7)},h=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=p(n/t),n=n%t*1e7},w=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=l(e[t]);r=""===r?n:r+d("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:c((function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)}))||!c((function(){m({})}))},{toFixed:function(e){var t,r,n,i,s=a(this),c=o(e),p=[0,0,0,0,0,0],m="",y="0";if(c<0||c>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(m="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*v(2,69,1))-69)<0?s*v(2,-t,1):s/v(2,t,1),r*=4503599627370496,(t=52-t)>0){for(g(p,0,r),n=c;n>=7;)g(p,1e7,0),n-=7;for(g(p,v(10,n,1),0),n=t-1;n>=23;)h(p,1<<23),n-=23;h(p,1<<n),g(p,1,1),h(p,2),y=w(p)}else g(p,0,r),g(p,1<<-t,0),y=w(p)+d("0",c);return y=c>0?m+((i=y.length)<=c?"0."+d("0",c-i)+y:f(y,0,i-c)+"."+f(y,i-c)):m+y}})},4227:function(e,t,r){var n=r(19882),i=r(5166),o=r(35039);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,r){o(t,e,r)}),{AS_ENTRIES:!0}),t}})},11592:function(e,t,r){var n=r(19882),i=r(44762);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},38472:function(e,t,r){var n=r(19882),i=r(35399);n({global:!0,forced:parseInt!=i},{parseInt:i})},1321:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(97676),a=r(29269),s=r(74443),c=r(5166);n({target:"Promise",stat:!0,forced:r(99581)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,l=s((function(){var r=o(t.resolve),a=[],s=0,l=1;c(e,(function(e){var o=s++,c=!1;l++,i(r,t,e).then((function(e){c||(c=!0,a[o]=e,--l||n(a))}),u)})),--l||n(a)}));return l.error&&u(l.value),r.promise}})},10865:function(e,t,r){"use strict";var n=r(19882),i=r(21178),o=r(35182).CONSTRUCTOR,a=r(25988),s=r(22773),c=r(75277),u=r(50403),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(a)){var p=s("Promise").prototype.catch;l.catch!==p&&u(l,"catch",p,{unsafe:!0})}},95999:function(e,t,r){"use strict";var n,i,o,a=r(19882),s=r(21178),c=r(93921),u=r(98363),l=r(79611),p=r(50403),d=r(22412),f=r(60878),m=r(57323),v=r(97676),g=r(75277),h=r(52786),w=r(9519),y=r(7270),b=r(84643).set,S=r(71800),M=r(46271),P=r(74443),_=r(12423),k=r(20821),R=r(25988),x=r(35182),O=r(29269),A="Promise",E=x.CONSTRUCTOR,W=x.REJECTION_EVENT,L=x.SUBCLASSING,T=k.getterFor(A),I=k.set,C=R&&R.prototype,j=R,N=C,F=u.TypeError,Z=u.document,q=u.process,B=O.f,D=B,H=!!(Z&&Z.createEvent&&u.dispatchEvent),U="unhandledrejection",V=function(e){var t;return!(!h(e)||!g(t=e.then))&&t},z=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,p=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?r=o:(p&&p.enter(),r=s(o),p&&(p.exit(),i=!0)),r===e.promise?u(F("Promise-chain cycle")):(n=V(r))?l(n,r,c,u):c(r)):u(o)}catch(d){p&&!i&&p.exit(),u(d)}},G=function(e,t){e.notified||(e.notified=!0,S((function(){for(var r,n=e.reactions;r=n.get();)z(r,e);e.notified=!1,t&&!e.rejection&&J(e)})))},$=function(e,t,r){var n,i;H?((n=Z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!W&&(i=u["on"+e])?i(n):e===U&&M("Unhandled promise rejection",r)},J=function(e){l(b,u,(function(){var t,r=e.facade,n=e.value;if(K(e)&&(t=P((function(){c?q.emit("unhandledRejection",n,r):$(U,r,n)})),e.rejection=c||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){l(b,u,(function(){var t=e.facade;c?q.emit("rejectionHandled",t):$("rejectionhandled",t,e.value)}))},Y=function(e,t,r){return function(n){e(t,n,r)}},X=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,G(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw F("Promise can't be resolved itself");var n=V(t);n?S((function(){var r={done:!1};try{l(n,t,Y(ee,r,e),Y(X,r,e))}catch(i){X(r,i,e)}})):(e.value=t,e.state=1,G(e,!1))}catch(i){X({done:!1},i,e)}}};if(E&&(N=(j=function(e){w(this,N),v(e),l(n,this);var t=T(this);try{e(Y(ee,t),Y(X,t))}catch(r){X(t,r)}}).prototype,(n=function(e){I(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=p(N,"then",(function(e,t){var r=T(this),n=B(y(this,j));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=c?q.domain:void 0,0==r.state?r.reactions.add(n):S((function(){z(n,r)})),n.promise})),i=function(){var e=new n,t=T(e);this.promise=e,this.resolve=Y(ee,t),this.reject=Y(X,t)},O.f=B=function(e){return e===j||undefined===e?new i(e):D(e)},!s&&g(R)&&C!==Object.prototype)){o=C.then,L||p(C,"then",(function(e,t){var r=this;return new j((function(e,t){l(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete C.constructor}catch(te){}d&&d(C,N)}a({global:!0,constructor:!0,wrap:!0,forced:E},{Promise:j}),f(j,A,!1,!0),m(A)},35054:function(e,t,r){r(95999),r(1321),r(10865),r(77688),r(36055),r(9240)},77688:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(97676),a=r(29269),s=r(74443),c=r(5166);n({target:"Promise",stat:!0,forced:r(99581)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=o(t.resolve);c(e,(function(e){i(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},36055:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(29269);n({target:"Promise",stat:!0,forced:r(35182).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},9240:function(e,t,r){"use strict";var n=r(19882),i=r(22773),o=r(21178),a=r(25988),s=r(35182).CONSTRUCTOR,c=r(11621),u=i("Promise"),l=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},72975:function(e,t,r){var n=r(7493),i=r(98363),o=r(88697),a=r(86291),s=r(59250),c=r(45899),u=r(87994).f,l=r(32010),p=r(42622),d=r(28967),f=r(22511),m=r(97047),v=r(79557),g=r(50403),h=r(79044),w=r(24792),y=r(20821).enforce,b=r(57323),S=r(52280),M=r(41669),P=r(1638),_=S("match"),k=i.RegExp,R=k.prototype,x=i.SyntaxError,O=o(R.exec),A=o("".charAt),E=o("".replace),W=o("".indexOf),L=o("".slice),T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,C=/a/g,j=new k(I)!==I,N=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,Z=n&&(!j||N||M||P||h((function(){return C[_]=!1,k(I)!=I||k(C)==C||"/a/i"!=k(I,"i")})));if(a("RegExp",Z)){for(var q=function(e,t){var r,n,i,o,a,u,m=l(R,this),v=p(e),g=void 0===t,h=[],b=e;if(!m&&v&&g&&e.constructor===q)return e;if((v||l(R,e))&&(e=e.source,g&&(t=f(b))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),b=e,M&&"dotAll"in I&&(n=!!t&&W(t,"s")>-1)&&(t=E(t,/s/g,"")),r=t,N&&"sticky"in I&&(i=!!t&&W(t,"y")>-1)&&F&&(t=E(t,/y/g,"")),P&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a={},s=!1,c=!1,u=0,l="";n<=r;n++){if("\\"===(t=A(e,n)))t+=A(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:O(T,L(e,n+1))&&(n+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||w(a,l))throw new x("Invalid capture group name");a[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],h=o[1]),a=s(k(e,t),m?this:R,q),(n||i||h.length)&&(u=y(a),n&&(u.dotAll=!0,u.raw=q(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=A(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+A(e,++n);return i}(e),r)),i&&(u.sticky=!0),h.length&&(u.groups=h)),e!==b)try{c(a,"source",""===b?"(?:)":b)}catch(S){}return a},B=u(k),D=0;B.length>D;)v(q,k,B[D++]);R.constructor=q,q.prototype=R,g(i,"RegExp",q,{constructor:!0})}b("RegExp")},39275:function(e,t,r){"use strict";var n=r(19882),i=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},33290:function(e,t,r){"use strict";var n=r(55316).PROPER,i=r(50403),o=r(83875),a=r(28967),s=r(79044),c=r(22511),u="toString",l=RegExp.prototype[u],p=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=n&&l.name!=u;(p||d)&&i(RegExp.prototype,u,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},19985:function(e,t,r){"use strict";var n=r(19882),i=r(88697),o=r(21049),a=r(96411),s=r(28967),c=r(15454),u=i("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},75668:function(e,t,r){"use strict";var n=r(79611),i=r(81492),o=r(83875),a=r(35108),s=r(28967),c=r(96411),u=r(97219),l=r(13350),p=r(94088);i("match",(function(e,t,r){return[function(t){var r=c(this),i=null==t?void 0:u(t,e);return i?n(i,t,r):new RegExp(t)[e](s(r))},function(e){var n=o(this),i=s(e),c=r(t,n,i);if(c.done)return c.value;if(!n.global)return p(n,i);var u=n.unicode;n.lastIndex=0;for(var d,f=[],m=0;null!==(d=p(n,i));){var v=s(d[0]);f[m]=v,""===v&&(n.lastIndex=l(i,a(n.lastIndex),u)),m++}return 0===m?null:f}]}))},22321:function(e,t,r){"use strict";var n=r(63530),i=r(79611),o=r(88697),a=r(81492),s=r(79044),c=r(83875),u=r(75277),l=r(14229),p=r(35108),d=r(28967),f=r(96411),m=r(13350),v=r(97219),g=r(81373),h=r(94088),w=r(52280)("replace"),y=Math.max,b=Math.min,S=o([].concat),M=o([].push),P=o("".indexOf),_=o("".slice),k="$0"==="a".replace(/./,"$0"),R=!!/./[w]&&""===/./[w]("a","$0");a("replace",(function(e,t,r){var o=R?"$":"$0";return[function(e,r){var n=f(this),o=null==e?void 0:v(e,w);return o?i(o,e,n,r):i(t,d(n),e,r)},function(e,i){var a=c(this),s=d(e);if("string"==typeof i&&-1===P(i,o)&&-1===P(i,"$<")){var f=r(t,a,s,i);if(f.done)return f.value}var v=u(i);v||(i=d(i));var w=a.global;if(w){var k=a.unicode;a.lastIndex=0}for(var R=[];;){var x=h(a,s);if(null===x)break;if(M(R,x),!w)break;""===d(x[0])&&(a.lastIndex=m(s,p(a.lastIndex),k))}for(var O,A="",E=0,W=0;W<R.length;W++){for(var L=d((x=R[W])[0]),T=y(b(l(x.index),s.length),0),I=[],C=1;C<x.length;C++)M(I,void 0===(O=x[C])?O:String(O));var j=x.groups;if(v){var N=S([L],I,T,s);void 0!==j&&M(N,j);var F=d(n(i,void 0,N))}else F=g(L,s,T,I,j,i);T>=E&&(A+=_(s,E,T)+F,E=T+L.length)}return A+_(s,E)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!k||R)},23528:function(e,t,r){"use strict";var n=r(79611),i=r(81492),o=r(83875),a=r(96411),s=r(10420),c=r(28967),u=r(97219),l=r(94088);i("search",(function(e,t,r){return[function(t){var r=a(this),i=null==t?void 0:u(t,e);return i?n(i,t,r):new RegExp(t)[e](c(r))},function(e){var n=o(this),i=c(e),a=r(t,n,i);if(a.done)return a.value;var u=n.lastIndex;s(u,0)||(n.lastIndex=0);var p=l(n,i);return s(n.lastIndex,u)||(n.lastIndex=u),null===p?-1:p.index}]}))},67838:function(e,t,r){"use strict";var n=r(63530),i=r(79611),o=r(88697),a=r(81492),s=r(42622),c=r(83875),u=r(96411),l=r(7270),p=r(13350),d=r(35108),f=r(28967),m=r(97219),v=r(58990),g=r(94088),h=r(99749),w=r(97047),y=r(79044),b=w.UNSUPPORTED_Y,S=4294967295,M=Math.min,P=[].push,_=o(/./.exec),k=o(P),R=o("".slice),x=!y((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));a("split",(function(e,t,r){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=f(u(this)),a=void 0===r?S:r>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);for(var c,l,p,d=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,w=new RegExp(e.source,m+"g");(c=i(h,w,o))&&!((l=w.lastIndex)>g&&(k(d,R(o,g,c.index)),c.length>1&&c.index<o.length&&n(P,d,v(c,1)),p=c[0].length,g=l,d.length>=a));)w.lastIndex===c.index&&w.lastIndex++;return g===o.length?!p&&_(w,"")||k(d,""):k(d,R(o,g)),d.length>a?v(d,0,a):d}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(t,this,e,r)}:t,[function(t,r){var n=u(this),a=null==t?void 0:m(t,e);return a?i(a,t,n,r):i(o,f(n),t,r)},function(e,n){var i=c(this),a=f(e),s=r(o,i,a,n,o!==t);if(s.done)return s.value;var u=l(i,RegExp),m=i.unicode,v=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),h=new u(b?"^(?:"+i.source+")":i,v),w=void 0===n?S:n>>>0;if(0===w)return[];if(0===a.length)return null===g(h,a)?[a]:[];for(var y=0,P=0,_=[];P<a.length;){h.lastIndex=b?0:P;var x,O=g(h,b?R(a,P):a);if(null===O||(x=M(d(h.lastIndex+(b?P:0)),a.length))===y)P=p(a,P,m);else{if(k(_,R(a,y,P)),_.length===w)return _;for(var A=1;A<=O.length-1;A++)if(k(_,O[A]),_.length===w)return _;P=y=x}}return k(_,R(a,y)),_}]}),!x,b)},29897:function(e,t,r){"use strict";var n=r(19882),i=r(10287).trim;n({target:"String",proto:!0,forced:r(68487)("trim")},{trim:function(){return i(this)}})},68995:function(e,t,r){var n=r(98363),i=r(12848),o=r(79189),a=r(54883),s=r(45899),c=r(52280),u=c("iterator"),l=c("toStringTag"),p=a.values,d=function(e,t){if(e){if(e[u]!==p)try{s(e,u,p)}catch(n){e[u]=p}if(e[l]||s(e,l,t),i[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(n){e[r]=a[r]}}};for(var f in i)d(n[f]&&n[f].prototype,f);d(o,"DOMTokenList")},37856:function(e,t,r){"use strict";r(54883);var n=r(19882),i=r(98363),o=r(79611),a=r(88697),s=r(7493),c=r(40655),u=r(50403),l=r(63357),p=r(60878),d=r(6181),f=r(20821),m=r(9519),v=r(75277),g=r(24792),h=r(98166),w=r(36994),y=r(83875),b=r(52786),S=r(28967),M=r(51569),P=r(69199),_=r(11805),k=r(77193),R=r(27687),x=r(52280),O=r(2013),A=x("iterator"),E="URLSearchParams",W=E+"Iterator",L=f.set,T=f.getterFor(E),I=f.getterFor(W),C=Object.getOwnPropertyDescriptor,j=function(e){if(!s)return i[e];var t=C(i,e);return t&&t.value},N=j("fetch"),F=j("Request"),Z=j("Headers"),q=F&&F.prototype,B=Z&&Z.prototype,D=i.RegExp,H=i.TypeError,U=i.decodeURIComponent,V=i.encodeURIComponent,z=a("".charAt),G=a([].join),$=a([].push),J=a("".replace),K=a([].shift),Q=a([].splice),Y=a("".split),X=a("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=D("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return U(e)}catch(t){return e}},ie=function(e){var t=J(e,ee," "),r=4;try{return U(t)}catch(n){for(;r;)t=J(t,re(r--),ne);return t}},oe=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},ce=function(e){return J(V(e),oe,se)},ue=d((function(e,t){L(this,{type:W,iterator:_(T(e).entries),kind:t})}),"Iterator",(function(){var e=I(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===z(e,0)?X(e,1):e:S(e)))};le.prototype={type:E,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,a,s,c,u=k(e);if(u)for(r=(t=_(e,u)).next;!(n=o(r,t)).done;){if(a=(i=_(y(n.value))).next,(s=o(a,i)).done||(c=o(a,i)).done||!o(a,i).done)throw H("Expected sequence with length 2");$(this.entries,{key:S(s.value),value:S(c.value)})}else for(var l in e)g(e,l)&&$(this.entries,{key:l,value:S(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=Y(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=Y(t,"="),$(this.entries,{key:ie(K(r)),value:ie(G(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],$(r,ce(e.key)+"="+ce(e.value));return G(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pe=function(){m(this,de),L(this,new le(arguments.length>0?arguments[0]:void 0))},de=pe.prototype;if(l(de,{append:function(e,t){R(arguments.length,2);var r=T(this);$(r.entries,{key:S(e),value:S(t)}),r.updateURL()},delete:function(e){R(arguments.length,1);for(var t=T(this),r=t.entries,n=S(e),i=0;i<r.length;)r[i].key===n?Q(r,i,1):i++;t.updateURL()},get:function(e){R(arguments.length,1);for(var t=T(this).entries,r=S(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){R(arguments.length,1);for(var t=T(this).entries,r=S(e),n=[],i=0;i<t.length;i++)t[i].key===r&&$(n,t[i].value);return n},has:function(e){R(arguments.length,1);for(var t=T(this).entries,r=S(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){R(arguments.length,1);for(var r,n=T(this),i=n.entries,o=!1,a=S(e),s=S(t),c=0;c<i.length;c++)(r=i[c]).key===a&&(o?Q(i,c--,1):(o=!0,r.value=s));o||$(i,{key:a,value:s}),n.updateURL()},sort:function(){var e=T(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=T(this).entries,n=h(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(de,A,de.entries,{name:"entries"}),u(de,"toString",(function(){return T(this).serialize()}),{enumerable:!0}),p(pe,E),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:pe}),!c&&v(Z)){var fe=a(B.has),me=a(B.set),ve=function(e){if(b(e)){var t,r=e.body;if(w(r)===E)return t=e.headers?new Z(e.headers):new Z,fe(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),M(e,{body:P(0,S(r)),headers:P(0,t)})}return e};if(v(N)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return N(e,arguments.length>1?ve(arguments[1]):{})}}),v(F)){var ge=function(e){return m(this,q),new F(e,arguments.length>1?ve(arguments[1]):{})};q.constructor=ge,ge.prototype=q,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:pe,getState:T}},56650:function(e,t,r){r(37856)},6:function(e){var t=function(e,t,r){var n=Math.floor(e),i=1,o=n+1,a=1;if(e!==n)for(;i<=t&&a<=t;){var s=(n+o)/(i+a);if(e===s){i+a<=t?(i+=a,n+=o,a=t+1):i>a?a=t+1:i=t+1;break}e<s?(o=n+o,a=i+a):(n+=o,i+=a)}if(i>t&&(i=a,n=o),!r)return[0,n,i];var c=Math.floor(n/i);return[c,n-c*i,i]};t.cont=function(e,t,r){for(var n=e<0?-1:1,i=e*n,o=0,a=1,s=0,c=1,u=0,l=0,p=Math.floor(i);u<t&&(s=(p=Math.floor(i))*a+o,l=p*u+c,!(i-p<5e-8));)i=1/(i-p),o=a,a=s,c=u,u=l;if(l>t&&(u>t?(l=c,s=o):(l=u,s=a)),!r)return[0,n*s,l];var d=Math.floor(n*s/l);return[d,n*s-d*l,l]},"undefined"==typeof DO_NOT_EXPORT_FRAC&&(e.exports=t)},1001:function(e,t,r){"use strict";var n=r(71717),i=r(19826),o="tippy-content",a="tippy-backdrop",s="tippy-arrow",c="tippy-svg-arrow",u={passive:!0,capture:!0},l=function(){return document.body};function p(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function d(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function m(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout((function(){e(n)}),t)};var r}function v(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function h(e){return e.split("-")[0]}function w(e){return[].slice.call(e)}function y(e){return Object.keys(e).reduce((function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t}),{})}function b(){return document.createElement("div")}function S(e){return["Element","Fragment"].some((function(t){return d(e,t)}))}function M(e){return d(e,"MouseEvent")}function P(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function _(e){return S(e)?[e]:function(e){return d(e,"NodeList")}(e)?w(e):Array.isArray(e)?e:w(document.querySelectorAll(e))}function k(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function R(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function x(e){var t,r=v(e)[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function O(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,r)}))}function A(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var E={isTouch:!1},W=0;function L(){E.isTouch||(E.isTouch=!0,window.performance&&document.addEventListener("mousemove",T))}function T(){var e=performance.now();e-W<20&&(E.isTouch=!1,document.removeEventListener("mousemove",T)),W=e}function I(){var e=document.activeElement;if(P(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var C=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var j={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},N=Object.assign({appendTo:l,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},j,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),F=Object.keys(N);function Z(e){var t=(e.plugins||[]).reduce((function(t,r){var n,i=r.name,o=r.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(n=N[i])?n:o);return t}),{});return Object.assign({},e,t)}function q(e,t){var r=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Z(Object.assign({},N,{plugins:t}))):F).reduce((function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(i){t[r]=n}return t}),{})}(e,t.plugins));return r.aria=Object.assign({},N.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function B(e,t){e.innerHTML=t}function D(e){var t=b();return!0===e?t.className=s:(t.className=c,S(e)?t.appendChild(e):B(t,e)),t}function H(e,t){S(t.content)?(B(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?B(e,t.content):e.textContent=t.content)}function U(e){var t=e.firstElementChild,r=w(t.children);return{box:t,content:r.find((function(e){return e.classList.contains(o)})),arrow:r.find((function(e){return e.classList.contains(s)||e.classList.contains(c)})),backdrop:r.find((function(e){return e.classList.contains(a)}))}}function V(e){var t=b(),r=b();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=b();function i(r,n){var i=U(t),o=i.box,a=i.content,s=i.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||H(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(D(n.arrow))):o.appendChild(D(n.arrow)):s&&o.removeChild(s)}return n.className=o,n.setAttribute("data-state","hidden"),H(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props),{popper:t,onUpdate:i}}V.$$tippy=!0;var z=1,G=[],$=[];function J(e,t){var r,i,o,a,s,c,d,S,P=q(e,Object.assign({},N,Z(y(t)))),_=!1,W=!1,L=!1,T=!1,I=[],j=m(be,P.interactiveDebounce),F=z++,B=(S=P.plugins).filter((function(e,t){return S.indexOf(e)===t})),D={id:F,reference:e,popper:b(),popperInstance:null,props:P,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:B,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)},setProps:function(t){0;if(D.state.isDestroyed)return;ae("onBeforeUpdate",[D,t]),we();var r=D.props,n=q(e,Object.assign({},r,y(t),{ignoreAttributes:!0}));D.props=n,he(),r.interactiveDebounce!==n.interactiveDebounce&&(ue(),j=m(be,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?v(r.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");ce(),oe(),J&&J(r,n);D.popperInstance&&(_e(),Re().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[D,t])},setContent:function(e){D.setProps({content:e})},show:function(){0;var e=D.state.isVisible,t=D.state.isDestroyed,r=!D.state.isEnabled,n=E.isTouch&&!D.props.touch,i=p(D.props.duration,0,N.duration);if(e||t||r||n)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[D],!1),!1===D.props.onShow(D))return;D.state.isVisible=!0,ee()&&(V.style.visibility="visible");oe(),fe(),D.state.isMounted||(V.style.transition="none");if(ee()){var o=ne();k([o.box,o.content],0)}c=function(){var e;if(D.state.isVisible&&!T){if(T=!0,V.offsetHeight,V.style.transition=D.props.moveTransition,ee()&&D.props.animation){var t=ne(),r=t.box,n=t.content;k([r,n],i),R([r,n],"visible")}se(),ce(),g($,D),null==(e=D.popperInstance)||e.forceUpdate(),ae("onMount",[D]),D.props.animation&&ee()&&function(e,t){ve(e,t)}(i,(function(){D.state.isShown=!0,ae("onShown",[D])}))}},function(){var e,t=D.props.appendTo,r=te();e=D.props.interactive&&t===l||"parent"===t?r.parentNode:f(t,[r]);e.contains(V)||e.appendChild(V);D.state.isMounted=!0,_e(),!1}()},hide:function(){0;var e=!D.state.isVisible,t=D.state.isDestroyed,r=!D.state.isEnabled,n=p(D.props.duration,1,N.duration);if(e||t||r)return;if(ae("onHide",[D],!1),!1===D.props.onHide(D))return;D.state.isVisible=!1,D.state.isShown=!1,T=!1,_=!1,ee()&&(V.style.visibility="hidden");if(ue(),me(),oe(!0),ee()){var i=ne(),o=i.box,a=i.content;D.props.animation&&(k([o,a],n),R([o,a],"hidden"))}se(),ce(),D.props.animation?ee()&&function(e,t){ve(e,(function(){!D.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&t()}))}(n,D.unmount):D.unmount()},hideWithInteractivity:function(e){0;re().addEventListener("mousemove",j),g(G,j),j(e)},enable:function(){D.state.isEnabled=!0},disable:function(){D.hide(),D.state.isEnabled=!1},unmount:function(){0;D.state.isVisible&&D.hide();if(!D.state.isMounted)return;ke(),Re().forEach((function(e){e._tippy.unmount()})),V.parentNode&&V.parentNode.removeChild(V);$=$.filter((function(e){return e!==D})),D.state.isMounted=!1,ae("onHidden",[D])},destroy:function(){0;if(D.state.isDestroyed)return;D.clearDelayTimeouts(),D.unmount(),we(),delete e._tippy,D.state.isDestroyed=!0,ae("onDestroy",[D])}};if(!P.render)return D;var H=P.render(D),V=H.popper,J=H.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+D.id,D.popper=V,e._tippy=D,V._tippy=D;var K=B.map((function(e){return e.fn(D)})),Q=e.hasAttribute("aria-expanded");return he(),ce(),oe(),ae("onCreate",[D]),P.showOnCreate&&xe(),V.addEventListener("mouseenter",(function(){D.props.interactive&&D.state.isVisible&&D.clearDelayTimeouts()})),V.addEventListener("mouseleave",(function(){D.props.interactive&&D.props.trigger.indexOf("mouseenter")>=0&&re().addEventListener("mousemove",j)})),D;function Y(){var e=D.props.touch;return Array.isArray(e)?e:[e,0]}function X(){return"hold"===Y()[0]}function ee(){var e;return!(null==(e=D.props.render)||!e.$$tippy)}function te(){return d||e}function re(){var e=te().parentNode;return e?x(e):document}function ne(){return U(V)}function ie(e){return D.state.isMounted&&!D.state.isVisible||E.isTouch||a&&"focus"===a.type?0:p(D.props.delay,e?0:1,N.delay)}function oe(e){void 0===e&&(e=!1),V.style.pointerEvents=D.props.interactive&&!e?"":"none",V.style.zIndex=""+D.props.zIndex}function ae(e,t,r){var n;(void 0===r&&(r=!0),K.forEach((function(r){r[e]&&r[e].apply(r,t)})),r)&&(n=D.props)[e].apply(n,t)}function se(){var t=D.props.aria;if(t.content){var r="aria-"+t.content,n=V.id;v(D.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(r);if(D.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var i=t&&t.replace(n,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}}))}}function ce(){!Q&&D.props.aria.expanded&&v(D.props.triggerTarget||e).forEach((function(e){D.props.interactive?e.setAttribute("aria-expanded",D.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ue(){re().removeEventListener("mousemove",j),G=G.filter((function(e){return e!==j}))}function le(t){if(!E.isTouch||!L&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!D.props.interactive||!A(V,r)){if(v(D.props.triggerTarget||e).some((function(e){return A(e,r)}))){if(E.isTouch)return;if(D.state.isVisible&&D.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[D,t]);!0===D.props.hideOnClick&&(D.clearDelayTimeouts(),D.hide(),W=!0,setTimeout((function(){W=!1})),D.state.isMounted||me())}}}function pe(){L=!0}function de(){L=!1}function fe(){var e=re();e.addEventListener("mousedown",le,!0),e.addEventListener("touchend",le,u),e.addEventListener("touchstart",de,u),e.addEventListener("touchmove",pe,u)}function me(){var e=re();e.removeEventListener("mousedown",le,!0),e.removeEventListener("touchend",le,u),e.removeEventListener("touchstart",de,u),e.removeEventListener("touchmove",pe,u)}function ve(e,t){var r=ne().box;function n(e){e.target===r&&(O(r,"remove",n),t())}if(0===e)return t();O(r,"remove",s),O(r,"add",n),s=n}function ge(t,r,n){void 0===n&&(n=!1),v(D.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,r,n),I.push({node:e,eventType:t,handler:r,options:n})}))}function he(){var e;X()&&(ge("touchstart",ye,{passive:!0}),ge("touchend",Se,{passive:!0})),(e=D.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,ye),e){case"mouseenter":ge("mouseleave",Se);break;case"focus":ge(C?"focusout":"blur",Me);break;case"focusin":ge("focusout",Me)}}))}function we(){I.forEach((function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)})),I=[]}function ye(e){var t,r=!1;if(D.state.isEnabled&&!Pe(e)&&!W){var n="focus"===(null==(t=a)?void 0:t.type);a=e,d=e.currentTarget,ce(),!D.state.isVisible&&M(e)&&G.forEach((function(t){return t(e)})),"click"===e.type&&(D.props.trigger.indexOf("mouseenter")<0||_)&&!1!==D.props.hideOnClick&&D.state.isVisible?r=!0:xe(e),"click"===e.type&&(_=!r),r&&!n&&Oe(e)}}function be(e){var t=e.target,r=te().contains(t)||V.contains(t);if("mousemove"!==e.type||!r){var n=Re().concat(V).map((function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:P}:null})).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=h(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,p="left"===a?s.right.x:0,d=t.top-n+c>o,f=n-t.bottom-u>o,m=t.left-r+l>o,v=r-t.right-p>o;return d||f||m||v}))})(n,e)&&(ue(),Oe(e))}}function Se(e){Pe(e)||D.props.trigger.indexOf("click")>=0&&_||(D.props.interactive?D.hideWithInteractivity(e):Oe(e))}function Me(e){D.props.trigger.indexOf("focusin")<0&&e.target!==te()||D.props.interactive&&e.relatedTarget&&V.contains(e.relatedTarget)||Oe(e)}function Pe(e){return!!E.isTouch&&X()!==e.type.indexOf("touch")>=0}function _e(){ke();var t=D.props,r=t.popperOptions,i=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,u=ee()?U(V).arrow:null,l=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var r=ne().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},p];ee()&&u&&d.push({name:"arrow",options:{element:u,padding:3}}),d.push.apply(d,(null==r?void 0:r.modifiers)||[]),D.popperInstance=(0,n.fi)(l,V,Object.assign({},r,{placement:i,onFirstUpdate:c,modifiers:d}))}function ke(){D.popperInstance&&(D.popperInstance.destroy(),D.popperInstance=null)}function Re(){return w(V.querySelectorAll("[data-tippy-root]"))}function xe(e){D.clearDelayTimeouts(),e&&ae("onTrigger",[D,e]),fe();var t=ie(!0),n=Y(),i=n[0],o=n[1];E.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout((function(){D.show()}),t):D.show()}function Oe(e){if(D.clearDelayTimeouts(),ae("onUntrigger",[D,e]),D.state.isVisible){if(!(D.props.trigger.indexOf("mouseenter")>=0&&D.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&_)){var t=ie(!1);t?i=setTimeout((function(){D.state.isVisible&&D.hide()}),t):o=requestAnimationFrame((function(){D.hide()}))}}else me()}}function K(e,t){void 0===t&&(t={});var r=N.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",L,u),window.addEventListener("blur",I);var n=Object.assign({},t,{plugins:r}),i=_(e).reduce((function(e,t){var r=t&&J(t,n);return r&&e.push(r),e}),[]);return S(e)?i[0]:i}K.defaultProps=N,K.setDefaultProps=function(e){Object.keys(e).forEach((function(t){N[t]=e[t]}))},K.currentInput=E;Object.assign({},i.Z,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});K.setDefaultProps({render:V}),t.ZP=K}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n);r(26262),r(54883),r(68995),r(38472),r(35054);var e,t=r(1001),i=(r(79608),r(52082)),o={checkInbox:e=>{var t=localStorage.getItem("wprm-recipe-collection");t&&(JSON.parse(t).inbox.items["0-0"].filter((t=>t.recipeId===e)).length>0&&o.updateButtons(e))},updateButtons:e=>{var t=document.querySelectorAll(".wprm-recipe-add-to-collection");for(var r of t)e===parseInt(r.dataset.recipeId)&&(r.classList.contains("wprm-recipe-not-in-collection")?r.style.display="none":r.classList.contains("wprm-recipe-in-collection")&&(r.style.display=""))}};window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.collections={init(){if(0===parseInt(wprmp_public.user)){var e=document.querySelectorAll(".wprm-recipe-add-to-collection-recipe.wprm-recipe-not-in-collection");for(var r of e){var n=parseInt(r.dataset.recipeId);o.checkInbox(n)}if("choose"===wprmp_public.add_to_collection.behaviour){var i=localStorage.getItem("wprm-recipe-collection");if(i){var a=JSON.parse(i);wprmp_public.add_to_collection.collections.user=a.user}}}if(document.addEventListener("click",(function(e){for(var t=e.target;t&&t!=this;t=t.parentNode)if(t.matches(".wprm-recipe-add-to-collection.wprm-recipe-not-in-collection")){window.WPRecipeMaker.collections.onClick(t,e);break}}),!1),"logged_in"===wprmp_public.add_to_collection.access&&0===parseInt(wprmp_public.user)&&wprmp_public.add_to_collection.not_logged_in_tooltip){var s=document.querySelectorAll(".wprm-recipe-add-to-collection");for(var c of s)(0,t.ZP)(c,{theme:"wprm",content:wprmp_public.add_to_collection.not_logged_in_tooltip})}},onClick(e,t){if(t.preventDefault(),"logged_in"===wprmp_public.add_to_collection.access&&0===parseInt(wprmp_public.user)){if("redirect"===wprmp_public.add_to_collection.not_logged_in){var r=wprmp_public.add_to_collection.not_logged_in_redirect;if(r&&(window.location=r),r)if(e.classList.contains("wprm-recipe-add-to-collection-grid"))window.location=r;else{var n=parseInt(e.dataset.recipeId),i=WPRecipeMaker.collections.getRecipeServings(n);window.WPRecipeMaker.manager.getRecipe(n).then((e=>{if(e){var t={timestamp:Date.now(),recipe:e.data.collection,servings:i,collection:"inbox"};localStorage.setItem("wprm-added-to-collection-before-login",JSON.stringify(t))}window.location=r}))}}}else e.classList.contains("wprm-recipe-add-to-collection-grid")?WPRecipeMaker.collections.onClickGrid(e):WPRecipeMaker.collections.onClickRecipe(e)},onClickGrid(e){var t=e.dataset.gridId;if(window.hasOwnProperty("WPUPG_Grids")&&window.WPUPG_Grids.hasOwnProperty("wpupg-grid-".concat(t))){var r=WPUPG_Grids["wpupg-grid-".concat(t)];if(r){var n=r.isotope.getFilteredItemElements(),i=[];for(var o of n)o.classList.contains("wpupg-type-wprm_recipe")&&i.push({id:parseInt(o.dataset.id)});0<i.length&&("choose"===wprmp_public.add_to_collection.behaviour?WPRecipeMaker.collections.showCollectionPicker(e,(t=>{WPRecipeMaker.collections.addRecipesToCollection(e,i,t)})):WPRecipeMaker.collections.addRecipesToCollection(e,i,{id:"inbox"}))}}},onClickRecipe(e){var t=parseInt(e.dataset.recipeId),r=[{id:t,servings:WPRecipeMaker.collections.getRecipeServings(t)}];"choose"===wprmp_public.add_to_collection.behaviour?WPRecipeMaker.collections.showCollectionPicker(e,(t=>{WPRecipeMaker.collections.addRecipesToCollection(e,r,t)})):WPRecipeMaker.collections.addRecipesToCollection(e,r,{id:"inbox"})},getRecipeServings(e){var t=document.querySelectorAll(".wprm-recipe-servings-"+e),r=0<t.length&&t[0].dataset.servings;return isNaN(r)&&(r=!1),r},currentTooltip:!1,showCollectionPicker(e,r){if(e.hasOwnProperty("_tippy")){var n=e._tippy.state.isShown;if(e._tippy.destroy(),n)return}(0,t.ZP)(e,{theme:"wprm",trigger:"click",showOnCreate:!0,allowHTML:!0,interactive:!0,content(e){window.WPRecipeMaker.collections.currentTooltip={ref:e,callback:r,collection:"",column:"",group:""};var t='<div class="wprm-add-to-collection-tooltip-container">';for(var n of(t+='<select class="wprm-add-to-collection-tooltip" id="wprm-add-to-collection-tooltip-collection" onchange="window.WPRecipeMaker.collections.selectCollection(this)">',t+='<option value="">'+(0,i.S)("Select a collection")+"</option>",t+='<option value="inbox">'+wprmp_public.add_to_collection.collections.inbox+"</option>",wprmp_public.add_to_collection.collections.user))t+='<option value="user-'+n.id+'">'+n.name+"</option>";return t+="</select>","choose_column"!==wprmp_public.add_to_collection.choice&&"choose_column_group"!==wprmp_public.add_to_collection.choice||(t+='<select class="wprm-add-to-collection-tooltip" id="wprm-add-to-collection-tooltip-column" onchange="window.WPRecipeMaker.collections.selectColumn(this)" disabled="disabled">',t+='<option value="">'+(0,i.S)("Select a column")+"</option>",t+="</select>"),"choose_column_group"===wprmp_public.add_to_collection.choice&&(t+='<select class="wprm-add-to-collection-tooltip" id="wprm-add-to-collection-tooltip-group" onchange="window.WPRecipeMaker.collections.selectGroup(this)" disabled="disabled">',t+='<option value="">'+(0,i.S)("Select a group")+"</option>",t+="</select>"),t+="</div>"},onShown(e){e.popper.addEventListener("click",(function(e){e.stopPropagation(),e.preventDefault()}),!1)}})},selectCollection(e){var t=e.value;window.WPRecipeMaker.collections.currentTooltip.collection=t,window.WPRecipeMaker.collections.currentTooltip.column="",window.WPRecipeMaker.collections.currentTooltip.group="","inbox"===t?window.WPRecipeMaker.collections.madeTooltipSelection():window.WPRecipeMaker.collections.updateDropdowns()},selectColumn(e){var t=e.value;window.WPRecipeMaker.collections.currentTooltip.column=t,window.WPRecipeMaker.collections.currentTooltip.group="",window.WPRecipeMaker.collections.updateDropdowns()},selectGroup(e){var t=e.value;window.WPRecipeMaker.collections.currentTooltip.group=t,window.WPRecipeMaker.collections.madeTooltipSelection()},updateDropdowns(){var e=window.WPRecipeMaker.collections.currentTooltip,t=document.getElementById("wprm-add-to-collection-tooltip-column"),r=document.getElementById("wprm-add-to-collection-tooltip-group"),n=window.WPRecipeMaker.collections.getSelectedCollection(e.collection);if(e.column)1===n.groups.length&&r?(r.value=n.groups[0].id,window.WPRecipeMaker.collections.selectGroup(r)):r||window.WPRecipeMaker.collections.madeTooltipSelection();else{if(t)t.querySelectorAll('option:not([value=""])').forEach((e=>e.parentNode.removeChild(e)));if(r)r.querySelectorAll('option:not([value=""])').forEach((e=>e.parentNode.removeChild(e)));n&&(n.columns.every((e=>{var r=document.createElement("option");return r.value=e.id,r.text=e.name,t?(t.add(r),!0):(window.WPRecipeMaker.collections.currentTooltip.column=e.id,!1)})),n.groups.every((e=>{var t=document.createElement("option");return t.value=e.id,t.text=e.name,r?(r.add(t),!0):(window.WPRecipeMaker.collections.currentTooltip.group=e.id,""!==window.WPRecipeMaker.collections.currentTooltip.column&&window.WPRecipeMaker.collections.madeTooltipSelection(),!1)})),1===n.columns.length&&t&&(t.value=n.columns[0].id,window.WPRecipeMaker.collections.selectColumn(t)))}t&&(t.disabled=!n),r&&(r.disabled=!n||""===e.column)},getSelectedCollection(e){var t=!1;if("user-"===e.substring(0,5)){var r=parseInt(e.substring(5)),n=wprmp_public.add_to_collection.collections.user.find((e=>e.id===r));n&&(t=n)}return t},madeTooltipSelection(){var e=window.WPRecipeMaker.collections.currentTooltip;e.ref._tippy.destroy(),e.callback({id:e.collection,column:e.column,group:e.group})},addRecipesToCollection(e,t,r){var n=localStorage.getItem("wprm-recipe-collection"),i=!1;n&&(i=JSON.parse(n));var a=e.innerHTML;e.style.width="".concat(e.offsetWidth,"px"),e.style.height="".concat(e.offsetHeight,"px"),"inline"===getComputedStyle(e).display&&(e.style.display="inline-block"),e.style.opacity="0.5",e.innerHTML="...";var s={Accept:"application/json","Content-Type":"application/json"};0<parseInt(wprmp_public.user)&&(s["X-WP-Nonce"]=wprm_public.api_nonce),fetch("".concat(wprmp_public.endpoints.collections_helper,"/add"),{method:"POST",headers:s,credentials:"same-origin",body:JSON.stringify({localCollections:i,recipes:t,collection:r})}).then((function(r){r.ok?r.json().then((r=>{if(!1===r)alert("Something went wrong. Please try again later.");else if(!0!==r){var n=!!r.hasOwnProperty("collections")&&r.collections;n&&localStorage.setItem("wprm-recipe-collection",JSON.stringify(n))}for(var i of(e.innerHTML=a,e.style.width="",e.style.height="",e.style.display="",e.style.opacity="",t))o.updateButtons(i.id)})):alert("Something went wrong. Please try again later.")}))}},e=()=>{window.WPRecipeMaker.collections.init()},"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e);var a={checkTemp:e=>{var t=localStorage.getItem("wprm-recipe-collection");if(t){var r=JSON.parse(t);if(r.hasOwnProperty("temp")&&r.temp.items.hasOwnProperty("0-0"))r.temp.items["0-0"].filter((t=>t.recipeId===e)).length>0&&a.updateButtons(e)}},updateButtons:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"add",r=document.querySelectorAll(".wprm-recipe-add-to-shopping-list");for(var n of r)e===parseInt(n.dataset.recipeId)&&(n.classList.contains("wprm-recipe-not-in-shopping-list")?n.style.display="add"===t?"none":"":n.classList.contains("wprm-recipe-in-shopping-list")&&(n.style.display="add"===t?"":"none"))}};window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.shoppingList={init(){if(0===parseInt(wprmp_public.user)){var e=document.querySelectorAll(".wprm-recipe-add-to-shopping-list.wprm-recipe-not-in-shopping-list");for(var r of e){var n=parseInt(r.dataset.recipeId);a.checkTemp(n)}}if(document.addEventListener("click",(function(e){for(var t=e.target;t&&t!=this;t=t.parentNode)if(t.matches(".wprm-recipe-add-to-shopping-list.wprm-recipe-not-in-shopping-list, .wprm-recipe-add-to-shopping-list.wprm-recipe-remove-from-shopping-list")){window.WPRecipeMaker.shoppingList.onClick(t,e);break}}),!1),"logged_in"===wprmp_public.quick_access_shopping_list.access&&0===parseInt(wprmp_public.user)&&wprmp_public.add_to_collection.not_logged_in_tooltip){var i=document.querySelectorAll(".wprm-recipe-add-to-shopping-list");for(var o of i)(0,t.ZP)(o,{theme:"wprm",content:wprmp_public.add_to_collection.not_logged_in_tooltip})}},onClick(e,t){if(t.preventDefault(),"logged_in"===wprmp_public.quick_access_shopping_list.access&&0===parseInt(wprmp_public.user)){if("redirect"===wprmp_public.add_to_collection.not_logged_in){var r=wprmp_public.add_to_collection.not_logged_in_redirect;if(r){var n=parseInt(e.dataset.recipeId),i=WPRecipeMaker.shoppingList.getRecipeServings(n);window.WPRecipeMaker.manager.getRecipe(n).then((e=>{if(e){var t={timestamp:Date.now(),recipe:e.data.collection,servings:i,collection:"temp"};localStorage.setItem("wprm-added-to-collection-before-login",JSON.stringify(t))}window.location=r}))}}}else e.classList.contains("wprm-recipe-remove-from-shopping-list")?WPRecipeMaker.shoppingList.onClickRecipeRemove(e):WPRecipeMaker.shoppingList.onClickRecipe(e)},onClickRecipe(e){var t=parseInt(e.dataset.recipeId),r=[{id:t,servings:WPRecipeMaker.shoppingList.getRecipeServings(t)}];WPRecipeMaker.shoppingList.addRecipesToShoppingList(e,r)},getRecipeServings(e){var t=document.querySelectorAll(".wprm-recipe-servings-"+e),r=0<t.length&&t[0].dataset.servings;return isNaN(r)&&(r=!1),r},addRecipesToShoppingList(e,t){var r=localStorage.getItem("wprm-recipe-collection"),n=!1;r&&(n=JSON.parse(r));var i=e.innerHTML;e.style.width="".concat(e.offsetWidth,"px"),e.style.height="".concat(e.offsetHeight,"px"),"inline"===getComputedStyle(e).display&&(e.style.display="inline-block"),e.style.opacity="0.5",e.innerHTML="...";var o={Accept:"application/json","Content-Type":"application/json"};0<parseInt(wprmp_public.user)&&(o["X-WP-Nonce"]=wprm_public.api_nonce),fetch("".concat(wprmp_public.endpoints.collections_helper,"/add"),{method:"POST",headers:o,credentials:"same-origin",body:JSON.stringify({localCollections:n,recipes:t,collection:{id:"temp"}})}).then((function(r){r.ok?r.json().then((r=>{if(!1===r)alert("Something went wrong. Please try again later.");else if(!0!==r){var n=!!r.hasOwnProperty("collections")&&r.collections;n&&localStorage.setItem("wprm-recipe-collection",JSON.stringify(n))}for(var o of(e.innerHTML=i,e.style.width="",e.style.height="",e.style.display="",e.style.opacity="",t))a.updateButtons(o.id,"add")})):alert("Something went wrong. Please try again later.")}))},onClickRecipeRemove(e){var t=[parseInt(e.dataset.recipeId)];WPRecipeMaker.shoppingList.removeRecipesFromShoppingList(e,t)},removeRecipesFromShoppingList(e,t){var r=localStorage.getItem("wprm-recipe-collection"),n=!1;r&&(n=JSON.parse(r));var i=e.innerHTML;e.style.width="".concat(e.offsetWidth,"px"),e.style.height="".concat(e.offsetHeight,"px"),"inline"===getComputedStyle(e).display&&(e.style.display="inline-block"),e.style.opacity="0.5",e.innerHTML="...";var o={Accept:"application/json","Content-Type":"application/json"};0<parseInt(wprmp_public.user)&&(o["X-WP-Nonce"]=wprm_public.api_nonce),fetch("".concat(wprmp_public.endpoints.collections_helper,"/remove"),{method:"POST",headers:o,credentials:"same-origin",body:JSON.stringify({localCollections:n,recipes:t,collection:{id:"temp"}})}).then((function(r){r.ok?r.json().then((r=>{if(!1===r)alert("Something went wrong. Please try again later.");else if(!0!==r){var n=!!r.hasOwnProperty("collections")&&r.collections;n&&localStorage.setItem("wprm-recipe-collection",JSON.stringify(n))}for(var o of(e.innerHTML=i,e.style.width="",e.style.height="",e.style.display="",e.style.opacity="",t))a.updateButtons(o,"remove")})):alert("Something went wrong. Please try again later.")}))}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.shoppingList.init()}));r(11592),r(12798);window.WPRecipeMaker=void 0===window.WPRecipeMaker?{}:window.WPRecipeMaker,window.WPRecipeMaker.submission={init(){var e=document.querySelector("#wprmprs_submit");e&&e.addEventListener("click",(e=>{this.onClickSubmit(e.target)}));var t=document.querySelectorAll('.wprm-recipe-submission input[type="file"]');for(var r of t)r.addEventListener("change",(e=>{this.checkFileSize(e.target)}))},onClickSubmit(e){e.form.reportValidity()&&(e.style.width="".concat(e.offsetWidth,"px"),e.style.height="".concat(e.offsetHeight,"px"),"inline"===getComputedStyle(e).display&&(e.style.display="inline-block"),e.style.opacity="0.5",e.value="...")},onSubmit(e){return!e.classList.contains("is-submitting")&&(e.classList.add("is-submitting"),!0)},checkFileSize(e){var t=e.files;if(t.length){var r=t[0],n=wprmp_public.recipe_submission.max_file_size;if(e.dataset.hasOwnProperty("maxSize")&&e.dataset.maxSize&&(n=parseInt(e.dataset.maxSize)),n<r.size){e.value="";var i=this.formatBytes(n);alert(wprmp_public.recipe_submission.text.image_size+" "+i)}}},formatBytes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var r=t<0?0:t,n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(r))+""+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}},function(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}((()=>{window.WPRecipeMaker.submission.init()}))}(),(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker-premium/dist/public-elite"]=n}();
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3<e[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(n){"use strict";n.fn.emulateTransitionEnd=function(t){var e=!1,i=this;n(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||n(i).trigger(n.support.transition.end)},t),this},n(function(){n.support.transition=function o(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(t.style[i]!==undefined)return{end:e[i]};return!1}(),n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(s){"use strict";var e='[data-dismiss="alert"]',a=function(t){s(t).on("click",e,this.close)};a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=s(this),i=e.attr("data-target");i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),i="#"===i?[]:i;var o=s(document).find(i);function n(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),o.length||(o=e.closest(".alert")),o.trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),s.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(a.TRANSITION_DURATION):n())};var t=s.fn.alert;s.fn.alert=function o(i){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof i&&e[i].call(t)})},s.fn.alert.Constructor=a,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(s){"use strict";var n=function(t,e){this.$element=s(t),this.options=s.extend({},n.DEFAULTS,e),this.isLoading=!1};function i(o){return this.each(function(){var t=s(this),e=t.data("bs.button"),i="object"==typeof o&&o;e||t.data("bs.button",e=new n(this,i)),"toggle"==o?e.toggle():o&&e.setState(o)})}n.VERSION="3.4.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var e="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[o]()),setTimeout(s.proxy(function(){i[o](null==n[t]?this.options[t]:n[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=s.fn.button;s.fn.button=i,s.fn.button.Constructor=n,s.fn.button.noConflict=function(){return s.fn.button=t,this},s(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=s(t.target).closest(".btn");i.call(e,"toggle"),s(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),e.is("input,button")?e.trigger("focus"):e.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){s(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(p){"use strict";var c=function(t,e){this.$element=p(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",p.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",p.proxy(this.pause,this)).on("mouseleave.bs.carousel",p.proxy(this.cycle,this))};function r(n){return this.each(function(){var t=p(this),e=t.data("bs.carousel"),i=p.extend({},c.DEFAULTS,t.data(),"object"==typeof n&&n),o="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new c(this,i)),"number"==typeof n?e.to(n):o?e[o]():i.interval&&e.pause().cycle()})}c.VERSION="3.4.1",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(p.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var o=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(o)},c.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&p.support.transition&&(this.$element.trigger(p.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var i=this.$element.find(".item.active"),o=e||this.getItemForDirection(t,i),n=this.interval,s="next"==t?"left":"right",a=this;if(o.hasClass("active"))return this.sliding=!1;var r=o[0],l=p.Event("slide.bs.carousel",{relatedTarget:r,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,n&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=p(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var d=p.Event("slid.bs.carousel",{relatedTarget:r,direction:s});return p.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),"object"==typeof o&&o.length&&o[0].offsetWidth,i.addClass(s),o.addClass(s),i.one("bsTransitionEnd",function(){o.removeClass([t,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(d)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),n&&this.cycle(),this}};var t=p.fn.carousel;p.fn.carousel=r,p.fn.carousel.Constructor=c,p.fn.carousel.noConflict=function(){return p.fn.carousel=t,this};var e=function(t){var e=p(this),i=e.attr("href");i&&(i=i.replace(/.*(?=#[^\s]+$)/,""));var o=e.attr("data-target")||i,n=p(document).find(o);if(n.hasClass("carousel")){var s=p.extend({},n.data(),e.data()),a=e.attr("data-slide-to");a&&(s.interval=!1),r.call(n,s),a&&n.data("bs.carousel").to(a),t.preventDefault()}};p(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),p(window).on("load",function(){p('[data-ride="carousel"]').each(function(){var t=p(this);r.call(t,t.data())})})}(jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.options=a.extend({},r.DEFAULTS,e),this.$trigger=a('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var e,i=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(i)}function l(o){return this.each(function(){var t=a(this),e=t.data("bs.collapse"),i=a.extend({},r.DEFAULTS,t.data(),"object"==typeof o&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new r(this,i)),"string"==typeof o&&e[o]()})}r.VERSION="3.4.1",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var i=a.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){e&&e.length&&(l.call(e,"hide"),t||e.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var n=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return n.call(this);var s=a.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[o](this.$element[0][s])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=a.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return i.call(this);this.$element[e](0).one("bsTransitionEnd",a.proxy(i,this)).emulateTransitionEnd(r.TRANSITION_DURATION)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(t,e){var i=a(e);this.addAriaAndCollapsedClass(n(i),i)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=a.fn.collapse;a.fn.collapse=l,a.fn.collapse.Constructor=r,a.fn.collapse.noConflict=function(){return a.fn.collapse=t,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=a(this);e.attr("data-target")||t.preventDefault();var i=n(e),o=i.data("bs.collapse")?"toggle":e.data();l.call(i,o)})}(jQuery),function(a){"use strict";var r='[data-toggle="dropdown"]',o=function(t){a(t).on("click.bs.dropdown",this.toggle)};function l(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==e?a(document).find(e):null;return i&&i.length?i:t.parent()}function s(o){o&&3===o.which||(a(".dropdown-backdrop").remove(),a(r).each(function(){var t=a(this),e=l(t),i={relatedTarget:this};e.hasClass("open")&&(o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&a.contains(e[0],o.target)||(e.trigger(o=a.Event("hide.bs.dropdown",i)),o.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",i)))))}))}o.VERSION="3.4.1",o.prototype.toggle=function(t){var e=a(this);if(!e.is(".disabled, :disabled")){var i=l(e),o=i.hasClass("open");if(s(),!o){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",s);var n={relatedTarget:this};if(i.trigger(t=a.Event("show.bs.dropdown",n)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(a.Event("shown.bs.dropdown",n))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=a(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=l(e),o=i.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&i.find(r).trigger("focus"),e.trigger("click");var n=i.find(".dropdown-menu li:not(.disabled):visible a");if(n.length){var s=n.index(t.target);38==t.which&&0<s&&s--,40==t.which&&s<n.length-1&&s++,~s||(s=0),n.eq(s).trigger("focus")}}}};var t=a.fn.dropdown;a.fn.dropdown=function e(i){return this.each(function(){var t=a(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new o(this)),"string"==typeof i&&e[i].call(t)})},a.fn.dropdown.Constructor=o,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=t,this},a(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(a){"use strict";var s=function(t,e){this.options=e,this.$body=a(document.body),this.$element=a(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function r(o,n){return this.each(function(){var t=a(this),e=t.data("bs.modal"),i=a.extend({},s.DEFAULTS,t.data(),"object"==typeof o&&o);e||t.data("bs.modal",e=new s(this,i)),"string"==typeof o?e[o](n):i.show&&e.show(n)})}s.VERSION="3.4.1",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},s.prototype.show=function(i){var o=this,t=a.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){a(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=a.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:i});t?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(s.TRANSITION_DURATION):o.$element.trigger("focus").trigger(e)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=a.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var e=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=a.support.transition&&i;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){e.removeBackdrop(),t&&t()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):n()}else t&&t()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),a(this.fixedContent).each(function(t,e){var i=e.style.paddingRight,o=a(e).css("padding-right");a(e).data("padding-right",i).css("padding-right",parseFloat(o)+n+"px")}))},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),a(this.fixedContent).each(function(t,e){var i=a(e).data("padding-right");a(e).removeData("padding-right"),e.style.paddingRight=i||""})},s.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=a.fn.modal;a.fn.modal=r,a.fn.modal.Constructor=s,a.fn.modal.noConflict=function(){return a.fn.modal=t,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=a(this),i=e.attr("href"),o=e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""),n=a(document).find(o),s=n.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(i)&&i},n.data(),e.data());e.is("a")&&t.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),r.call(n,s,this)})}(jQuery),function(g){"use strict";var o=["sanitize","whiteList","sanitizeFn"],a=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["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:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function u(t,e){var i=t.nodeName.toLowerCase();if(-1!==g.inArray(i,e))return-1===g.inArray(i,a)||Boolean(t.nodeValue.match(r)||t.nodeValue.match(l));for(var o=g(e).filter(function(t,e){return e instanceof RegExp}),n=0,s=o.length;n<s;n++)if(i.match(o[n]))return!0;return!1}function n(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=t;for(var n=g.map(e,function(t,e){return e}),s=g(o.body).find("*"),a=0,r=s.length;a<r;a++){var l=s[a],h=l.nodeName.toLowerCase();if(-1!==g.inArray(h,n))for(var d=g.map(l.attributes,function(t){return t}),p=[].concat(e["*"]||[],e[h]||[]),c=0,f=d.length;c<f;c++)u(d[c],p)||l.removeAttribute(d[c].nodeName);else l.parentNode.removeChild(l)}return o.body.innerHTML}var m=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};m.VERSION="3.4.1",m.TRANSITION_DURATION=150,m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},m.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&g(document).find(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s=o[n];if("click"==s)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",r="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){var e=this.$element.data();for(var i in e)e.hasOwnProperty(i)&&-1!==g.inArray(i,o)&&delete e[i];return(t=g.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},m.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&g.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},m.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var i=this,o=this.tip(),n=this.getUID(this.type);this.setContent(),o.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(s);r&&(s=s.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(g(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(r){var p=s,c=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>c.bottom?"top":"top"==s&&l.top-d<c.top?"bottom":"right"==s&&l.right+h>c.width?"left":"left"==s&&l.left-h<c.left?"right":s,o.removeClass(p).addClass(s)}var f=this.getCalculatedOffset(s,l,h,d);this.applyPlacement(f,s);var u=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};g.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",u).emulateTransitionEnd(m.TRANSITION_DURATION):u()}},m.prototype.applyPlacement=function(t,e){var i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,g.offset.setOffset(i[0],g.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in");var r=i[0].offsetWidth,l=i[0].offsetHeight;"top"==e&&l!=n&&(t.top=t.top+n-l);var h=this.getViewportAdjustedDelta(e,t,r,l);h.left?t.left+=h.left:t.top+=h.top;var d=/top|bottom/.test(e),p=d?2*h.left-o+r:2*h.top-n+l,c=d?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(p,i[0][c],d)},m.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},m.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},m.prototype.hide=function(t){var e=this,i=g(this.$tip),o=g.Event("hide.bs."+this.type);function n(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),g.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",n).emulateTransitionEnd(m.TRANSITION_DURATION):n(),this.hoverState=null,this},m.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},m.prototype.hasContent=function(){return this.getTitle()},m.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,o=e.getBoundingClientRect();null==o.width&&(o=g.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var n=window.SVGElement&&e instanceof window.SVGElement,s=i?{top:0,left:0}:n?null:t.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},r=i?{width:g(window).width(),height:g(window).height()}:null;return g.extend({},o,a,r,s)},m.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},m.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-s-a.scroll,l=e.top+s-a.scroll+o;r<a.top?n.top=a.top-r:l>a.top+a.height&&(n.top=a.top+a.height-l)}else{var h=e.left-s,d=e.left+s+i;h<a.left?n.left=a.left-h:d>a.right&&(n.left=a.left+a.width-d)}return n},m.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},m.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=g.fn.tooltip;g.fn.tooltip=function i(o){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new m(this,i)),"string"==typeof o&&e[o]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=e,this}}(jQuery),function(n){"use strict";var s=function(t,e){this.init("popover",t,e)};if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.4.1",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var o=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===o&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===o?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function e(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(s){"use strict";function n(t,e){this.$body=s(document.body),this.$scrollElement=s(t).is(document.body)?s(window):s(t),this.options=s.extend({},n.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s.proxy(this.process,this)),this.refresh(),this.process()}function e(o){return this.each(function(){var t=s(this),e=t.data("bs.scrollspy"),i="object"==typeof o&&o;e||t.data("bs.scrollspy",e=new n(this,i)),"string"==typeof o&&e[o]()})}n.VERSION="3.4.1",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var t=this,o="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),s.isWindow(this.$scrollElement[0])||(o="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=s(this),e=t.data("target")||t.attr("href"),i=/^#./.test(e)&&s(e);return i&&i.length&&i.is(":visible")&&[[i[o]().top+n,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},n.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),o<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)a!=s[t]&&e>=n[t]&&(n[t+1]===undefined||e<n[t+1])&&this.activate(s[t])},n.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=s(e).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},n.prototype.clear=function(){s(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=s.fn.scrollspy;s.fn.scrollspy=e,s.fn.scrollspy.Constructor=n,s.fn.scrollspy.noConflict=function(){return s.fn.scrollspy=t,this},s(window).on("load.bs.scrollspy.data-api",function(){s('[data-spy="scroll"]').each(function(){var t=s(this);e.call(t,t.data())})})}(jQuery),function(r){"use strict";var a=function(t){this.element=r(t)};function e(i){return this.each(function(){var t=r(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new a(this)),"string"==typeof i&&e[i]()})}a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=e.find(".active:last a"),n=r.Event("hide.bs.tab",{relatedTarget:t[0]}),s=r.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(n),t.trigger(s),!s.isDefaultPrevented()&&!n.isDefaultPrevented()){var a=r(document).find(i);this.activate(t.closest("li"),e),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},a.prototype.activate=function(t,e,i){var o=e.find("> .active"),n=i&&r.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&n?o.one("bsTransitionEnd",s).emulateTransitionEnd(a.TRANSITION_DURATION):s(),o.removeClass("in")};var t=r.fn.tab;r.fn.tab=e,r.fn.tab.Constructor=a,r.fn.tab.noConflict=function(){return r.fn.tab=t,this};var i=function(t){t.preventDefault(),e.call(r(this),"show")};r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(l){"use strict";var h=function(t,e){this.options=l.extend({},h.DEFAULTS,e);var i=this.options.target===h.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=i.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(o){return this.each(function(){var t=l(this),e=t.data("bs.affix"),i="object"==typeof o&&o;e||t.data("bs.affix",e=new h(this,i)),"string"==typeof o&&e[o]()})}h.VERSION="3.4.1",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(t,e,i,o){var n=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=s.top)&&"bottom":!(n+a<=t-o)&&"bottom";var r=null==this.affixed,l=r?n:s.top;return null!=i&&n<=i?"top":null!=o&&t-o<=l+(r?a:e)&&"bottom"},h.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(h.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},h.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,o=e.bottom,n=Math.max(l(document).height(),l(document.body).height());"object"!=typeof e&&(o=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof o&&(o=e.bottom(this.$element));var s=this.getState(n,t,i,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var a="affix"+(s?"-"+s:""),r=l.Event(a+".bs.affix");if(this.$element.trigger(r),r.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(a).trigger(a.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:n-t-o})}};var t=l.fn.affix;l.fn.affix=i,l.fn.affix.Constructor=h,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery);
;!function(b){b.expr[":"].icontains=function(e,c,d){return b(e).text().toUpperCase().indexOf(d[3].toUpperCase())>=0};var a=function(d,c,f){if(f){f.stopPropagation();f.preventDefault()}this.$element=b(d);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=b.extend({},b.fn.selectpicker.defaults,this.$element.data(),typeof c=="object"&&c);if(this.options.title===null){this.options.title=this.$element.attr("title")}this.val=a.prototype.val;this.render=a.prototype.render;this.refresh=a.prototype.refresh;this.setStyle=a.prototype.setStyle;this.selectAll=a.prototype.selectAll;this.deselectAll=a.prototype.deselectAll;this.init()};a.prototype={constructor:a,init:function(){var c=this,d=this.$element.attr("id");this.$element.hide();this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement);this.$menu=this.$newElement.find("> .dropdown-menu");this.$button=this.$newElement.find("> button");this.$searchbox=this.$newElement.find("input");if(d!==undefined){this.$button.attr("data-id",d);b('label[for="'+d+'"]').click(function(f){f.preventDefault();c.$button.focus()})}this.checkDisabled();this.clickListener();if(this.options.liveSearch){this.liveSearchListener()}this.render();this.liHeight();this.setStyle();this.setWidth();if(this.options.container){this.selectPosition()}this.$menu.data("this",this);this.$newElement.data("this",this)},createDropdown:function(){var c=this.multiple?" show-tick":"";var d=this.$element.parent().hasClass("input-group")?" input-group-btn":"";var i=this.autofocus?" autofocus":"";var h=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>":"";var g=this.options.liveSearch?'<div class="bootstrap-select-searchbox"><input type="text" class="input-block-level form-control" /></div>':"";var f=this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-block"><button class="actions-btn bs-select-all btn btn-sm btn-default">Select All</button><button class="actions-btn bs-deselect-all btn btn-sm btn-default">Deselect All</button></div></div>':"";var e='<div class="btn-group bootstrap-select'+c+d+'"><button type="button" class="btn dropdown-toggle selectpicker" data-toggle="dropdown"'+i+'><span class="filter-option pull-left"></span>&nbsp;<span class="caret"></span></button><div class="dropdown-menu open">'+h+g+f+'<ul class="dropdown-menu inner selectpicker" role="menu"></ul></div></div>';return b(e)},createView:function(){var c=this.createDropdown();var d=this.createLi();c.find("ul").append(d);return c},reloadLi:function(){this.destroyLi();var c=this.createLi();this.$menu.find("ul").append(c)},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var d=this,e=[],c="";this.$element.find("option").each(function(){var i=b(this);var g=i.attr("class")||"";var h=i.attr("style")||"";var m=i.data("content")?i.data("content"):i.html();var k=i.data("subtext")!==undefined?'<small class="muted text-muted">'+i.data("subtext")+"</small>":"";var j=i.data("icon")!==undefined?'<i class="'+d.options.iconBase+" "+i.data("icon")+'"></i> ':"";if(j!==""&&(i.is(":disabled")||i.parent().is(":disabled"))){j="<span>"+j+"</span>"}if(!i.data("content")){m=j+'<span class="text">'+m+k+"</span>"}if(d.options.hideDisabled&&(i.is(":disabled")||i.parent().is(":disabled"))){e.push('<a style="min-height: 0; padding: 0"></a>')}else{if(i.parent().is("optgroup")&&i.data("divider")!==true){if(i.index()===0){var l=i.parent().attr("label");var n=i.parent().data("subtext")!==undefined?'<small class="muted text-muted">'+i.parent().data("subtext")+"</small>":"";var f=i.parent().data("icon")?'<i class="'+i.parent().data("icon")+'"></i> ':"";l=f+'<span class="text">'+l+n+"</span>";if(i[0].index!==0){e.push('<div class="div-contain"><div class="divider"></div></div><dt>'+l+"</dt>"+d.createA(m,"opt "+g,h))}else{e.push("<dt>"+l+"</dt>"+d.createA(m,"opt "+g,h))}}else{e.push(d.createA(m,"opt "+g,h))}}else{if(i.data("divider")===true){e.push('<div class="div-contain"><div class="divider"></div></div>')}else{if(b(this).data("hidden")===true){e.push("<a></a>")}else{e.push(d.createA(m,g,h))}}}}});b.each(e,function(g,h){var f=h==="<a></a>"?'class="hide is-hidden"':"";c+='<li rel="'+g+'"'+f+">"+h+"</li>"});if(!this.multiple&&this.$element.find("option:selected").length===0&&!this.options.title){this.$element.find("option").eq(0).prop("selected",true).attr("selected","selected")}return b(c)},createA:function(e,c,d){return'<a tabindex="0" class="'+c+'" style="'+d+'">'+e+'<i class="'+this.options.iconBase+" "+this.options.tickIcon+' icon-ok check-mark"></i></a>'},render:function(e){var d=this;if(e!==false){this.$element.find("option").each(function(i){d.setDisabled(i,b(this).is(":disabled")||b(this).parent().is(":disabled"));d.setSelected(i,b(this).is(":selected"))})}this.tabIndex();var h=this.$element.find("option:selected").map(function(){var k=b(this);var j=k.data("icon")&&d.options.showIcon?'<i class="'+d.options.iconBase+" "+k.data("icon")+'"></i> ':"";var i;if(d.options.showSubtext&&k.attr("data-subtext")&&!d.multiple){i=' <small class="muted text-muted">'+k.data("subtext")+"</small>"}else{i=""}if(k.data("content")&&d.options.showContent){return k.data("content")}else{if(k.attr("title")!==undefined){return k.attr("title")}else{return j+k.html()+i}}}).toArray();var g=!this.multiple?h[0]:h.join(this.options.multipleSeparator);if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var c=this.options.selectedTextFormat.split(">");var f=this.options.hideDisabled?":not([disabled])":"";if((c.length>1&&h.length>c[1])||(c.length==1&&h.length>=2)){g=this.options.countSelectedText.replace("{0}",h.length).replace("{1}",this.$element.find('option:not([data-divider="true"]):not([data-hidden="true"])'+f).length)}}this.options.title=this.$element.attr("title");if(!g){g=this.options.title!==undefined?this.options.title:this.options.noneSelectedText}this.$button.attr("title",b.trim(g));this.$newElement.find(".filter-option").html(g)},setStyle:function(e,d){if(this.$element.attr("class")){this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device/gi,""))}var c=e?e:this.options.style;if(d=="add"){this.$button.addClass(c)}else{if(d=="remove"){this.$button.removeClass(c)}else{this.$button.removeClass(this.options.style);this.$button.addClass(c)}}},liHeight:function(){if(this.options.size===false){return}var f=this.$menu.parent().clone().find("> .dropdown-toggle").prop("autofocus",false).end().appendTo("body"),g=f.addClass("open").find("> .dropdown-menu"),e=g.find("li > a").outerHeight(),d=this.options.header?g.find(".popover-title").outerHeight():0,h=this.options.liveSearch?g.find(".bootstrap-select-searchbox").outerHeight():0,c=this.options.actionsBox?g.find(".bs-actionsbox").outerHeight():0;f.remove();this.$newElement.data("liHeight",e).data("headerHeight",d).data("searchHeight",h).data("actionsHeight",c)},setSize:function(){var i=this,d=this.$menu,j=d.find(".inner"),u=this.$newElement.outerHeight(),f=this.$newElement.data("liHeight"),s=this.$newElement.data("headerHeight"),m=this.$newElement.data("searchHeight"),h=this.$newElement.data("actionsHeight"),l=d.find("li .divider").outerHeight(true),r=parseInt(d.css("padding-top"))+parseInt(d.css("padding-bottom"))+parseInt(d.css("border-top-width"))+parseInt(d.css("border-bottom-width")),p=this.options.hideDisabled?":not(.disabled)":"",o=b(window),g=r+parseInt(d.css("margin-top"))+parseInt(d.css("margin-bottom"))+2,q,v,t,k=function(){v=i.$newElement.offset().top-o.scrollTop();t=o.height()-v-u};k();if(this.options.header){d.css("padding-top",0)}if(this.options.size=="auto"){var e=function(){var x,w=i.$lis.not(".hide");k();q=t-g;if(i.options.dropupAuto){i.$newElement.toggleClass("dropup",(v>t)&&((q-g)<d.height()))}if(i.$newElement.hasClass("dropup")){q=v-g}if((w.length+w.find("dt").length)>3){x=f*3+g-2}else{x=0}d.css({"max-height":q+"px",overflow:"hidden","min-height":x+s+m+h+"px"});j.css({"max-height":q-s-m-h-r+"px","overflow-y":"auto","min-height":Math.max(x-r,0)+"px"})};e();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",e);b(window).off("resize.getSize").on("resize.getSize",e);b(window).off("scroll.getSize").on("scroll.getSize",e)}else{if(this.options.size&&this.options.size!="auto"&&d.find("li"+p).length>this.options.size){var n=d.find("li"+p+" > *").filter(":not(.div-contain)").slice(0,this.options.size).last().parent().index();var c=d.find("li").slice(0,n+1).find(".div-contain").length;q=f*this.options.size+c*l+r;if(i.options.dropupAuto){this.$newElement.toggleClass("dropup",(v>t)&&(q<d.height()))}d.css({"max-height":q+s+m+h+"px",overflow:"hidden"});j.css({"max-height":q-r+"px","overflow-y":"auto"})}}},setWidth:function(){if(this.options.width=="auto"){this.$menu.css("min-width","0");var e=this.$newElement.clone().appendTo("body");var c=e.find("> .dropdown-menu").css("width");var d=e.css("width","auto").find("> button").css("width");e.remove();this.$newElement.css("width",Math.max(parseInt(c),parseInt(d))+"px")}else{if(this.options.width=="fit"){this.$menu.css("min-width","");this.$newElement.css("width","").addClass("fit-width")}else{if(this.options.width){this.$menu.css("min-width","");this.$newElement.css("width",this.options.width)}else{this.$menu.css("min-width","");this.$newElement.css("width","")}}}if(this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"){this.$newElement.removeClass("fit-width")}},selectPosition:function(){var e=this,d="<div />",f=b(d),h,g,c=function(i){f.addClass(i.attr("class").replace(/form-control/gi,"")).toggleClass("dropup",i.hasClass("dropup"));h=i.offset();g=i.hasClass("dropup")?0:i[0].offsetHeight;f.css({top:h.top+g,left:h.left,width:i[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",function(){if(e.isDisabled()){return}c(b(this));f.appendTo(e.options.container);f.toggleClass("open",!b(this).hasClass("open"));f.append(e.$menu)});b(window).resize(function(){c(e.$newElement)});b(window).on("scroll",function(){c(e.$newElement)});b("html").on("click",function(i){if(b(i.target).closest(e.$newElement).length<1){f.removeClass("open")}})},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement);if(this.options.container){this.$menu.hide()}},refresh:function(){this.$lis=null;this.reloadLi();this.render();this.setWidth();this.setStyle();this.checkDisabled();this.liHeight()},update:function(){this.reloadLi();this.setWidth();this.setStyle();this.checkDisabled();this.liHeight()},setSelected:function(c,d){if(this.$lis==null){this.$lis=this.$menu.find("li")}b(this.$lis[c]).toggleClass("selected",d)},setDisabled:function(c,d){if(this.$lis==null){this.$lis=this.$menu.find("li")}if(d){b(this.$lis[c]).addClass("disabled").find("a").attr("href","#").attr("tabindex",-1)}else{b(this.$lis[c]).removeClass("disabled").find("a").removeAttr("href").attr("tabindex",0)}},isDisabled:function(){return this.$element.is(":disabled")},checkDisabled:function(){var c=this;if(this.isDisabled()){this.$button.addClass("disabled").attr("tabindex",-1)}else{if(this.$button.hasClass("disabled")){this.$button.removeClass("disabled")}if(this.$button.attr("tabindex")==-1){if(!this.$element.data("tabindex")){this.$button.removeAttr("tabindex")}}}this.$button.click(function(){return !c.isDisabled()})},tabIndex:function(){if(this.$element.is("[tabindex]")){this.$element.data("tabindex",this.$element.attr("tabindex"));this.$button.attr("tabindex",this.$element.data("tabindex"))}},clickListener:function(){var c=this;b("body").on("touchstart.dropdown",".dropdown-menu",function(d){d.stopPropagation()});this.$newElement.on("click",function(){c.setSize();if(!c.options.liveSearch&&!c.multiple){setTimeout(function(){c.$menu.find(".selected a").focus()},10)}});this.$menu.on("click","li a",function(n){var t=b(this).parent().index(),m=c.$element.val(),i=c.$element.prop("selectedIndex");if(c.multiple){n.stopPropagation()}n.preventDefault();if(!c.isDisabled()&&!b(this).parent().hasClass("disabled")){var l=c.$element.find("option"),d=l.eq(t),f=d.prop("selected"),r=d.parent("optgroup"),p=c.options.maxOptions,h=r.data("maxOptions")||false;if(!c.multiple){l.prop("selected",false);d.prop("selected",true);c.$menu.find(".selected").removeClass("selected");c.setSelected(t,true)}else{d.prop("selected",!f);c.setSelected(t,!f);if((p!==false)||(h!==false)){var o=p<l.filter(":selected").length,j=h<r.find("option:selected").length,s=c.options.maxOptionsText,g=s[0].replace("{n}",p),q=s[1].replace("{n}",h),k=b('<div class="notify"></div>');if((p&&o)||(h&&j)){if(s[2]){g=g.replace("{var}",s[2][p>1?0:1]);q=q.replace("{var}",s[2][h>1?0:1])}d.prop("selected",false);c.$menu.append(k);if(p&&o){k.append(b("<div>"+g+"</div>"));c.$element.trigger("maxReached.bs.select")}if(h&&j){k.append(b("<div>"+q+"</div>"));c.$element.trigger("maxReachedGrp.bs.select")}setTimeout(function(){c.setSelected(t,false)},10);k.delay(750).fadeOut(300,function(){b(this).remove()})}}}if(!c.multiple){c.$button.focus()}else{if(c.options.liveSearch){c.$searchbox.focus()}}if((m!=c.$element.val()&&c.multiple)||(i!=c.$element.prop("selectedIndex")&&!c.multiple)){c.$element.change()}}});this.$menu.on("click","li.disabled a, li dt, li .div-contain, .popover-title, .popover-title :not(.close)",function(d){if(d.target==this){d.preventDefault();d.stopPropagation();if(!c.options.liveSearch){c.$button.focus()}else{c.$searchbox.focus()}}});this.$menu.on("click",".popover-title .close",function(){c.$button.focus()});this.$searchbox.on("click",function(d){d.stopPropagation()});this.$menu.on("click",".actions-btn",function(d){if(c.options.liveSearch){c.$searchbox.focus()}else{c.$button.focus()}d.preventDefault();d.stopPropagation();if(b(this).is(".bs-select-all")){c.selectAll()}else{c.deselectAll()}c.$element.change()});this.$element.change(function(){c.render(false)})},liveSearchListener:function(){var d=this,c=b('<li class="no-results"></li>');this.$newElement.on("click.dropdown.data-api",function(){d.$menu.find(".active").removeClass("active");if(!!d.$searchbox.val()){d.$searchbox.val("");d.$lis.not(".is-hidden").removeClass("hide");if(!!c.parent().length){c.remove()}}if(!d.multiple){d.$menu.find(".selected").addClass("active")}setTimeout(function(){d.$searchbox.focus()},10)});this.$searchbox.on("input propertychange",function(){if(d.$searchbox.val()){d.$lis.not(".is-hidden").removeClass("hide").find("a").not(":icontains("+d.$searchbox.val()+")").parent().addClass("hide");if(!d.$menu.find("li").filter(":visible:not(.no-results)").length){if(!!c.parent().length){c.remove()}c.html(d.options.noneResultsText+' "'+d.$searchbox.val()+'"').show();d.$menu.find("li").last().after(c)}else{if(!!c.parent().length){c.remove()}}}else{d.$lis.not(".is-hidden").removeClass("hide");if(!!c.parent().length){c.remove()}}d.$menu.find("li.active").removeClass("active");d.$menu.find("li").filter(":visible:not(.divider)").eq(0).addClass("active").find("a").focus();b(this).focus()});this.$menu.on("mouseenter","a",function(f){d.$menu.find(".active").removeClass("active");b(f.currentTarget).parent().not(".disabled").addClass("active")});this.$menu.on("mouseleave","a",function(){d.$menu.find(".active").removeClass("active")})},val:function(c){if(c!==undefined){this.$element.val(c);this.$element.change();return this.$element}else{return this.$element.val()}},selectAll:function(){if(this.$lis==null){this.$lis=this.$menu.find("li")}this.$element.find("option:enabled").prop("selected",true);b(this.$lis).filter(":not(.disabled)").addClass("selected");this.render(false)},deselectAll:function(){if(this.$lis==null){this.$lis=this.$menu.find("li")}this.$element.find("option:enabled").prop("selected",false);b(this.$lis).filter(":not(.disabled)").removeClass("selected");this.render(false)},keydown:function(p){var q,o,i,n,k,j,r,f,h,m,d,s,g={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};q=b(this);i=q.parent();if(q.is("input")){i=q.parent().parent()}m=i.data("this");if(m.options.liveSearch){i=q.parent().parent()}if(m.options.container){i=m.$menu}o=b("[role=menu] li:not(.divider) a",i);s=m.$menu.parent().hasClass("open");if(!s&&/([0-9]|[A-z])/.test(String.fromCharCode(p.keyCode))){if(!m.options.container){m.setSize();m.$menu.parent().addClass("open");s=m.$menu.parent().hasClass("open")}else{m.$newElement.trigger("click")}m.$searchbox.focus()}if(m.options.liveSearch){if(/(^9$|27)/.test(p.keyCode)&&s&&m.$menu.find(".active").length===0){p.preventDefault();m.$menu.parent().removeClass("open");m.$button.focus()}o=b("[role=menu] li:not(.divider):visible",i);if(!q.val()&&!/(38|40)/.test(p.keyCode)){if(o.filter(".active").length===0){o=m.$newElement.find("li").filter(":icontains("+g[p.keyCode]+")")}}}if(!o.length){return}if(/(38|40)/.test(p.keyCode)){n=o.index(o.filter(":focus"));j=o.parent(":not(.disabled):visible").first().index();r=o.parent(":not(.disabled):visible").last().index();k=o.eq(n).parent().nextAll(":not(.disabled):visible").eq(0).index();f=o.eq(n).parent().prevAll(":not(.disabled):visible").eq(0).index();h=o.eq(k).parent().prevAll(":not(.disabled):visible").eq(0).index();if(m.options.liveSearch){o.each(function(e){if(b(this).is(":not(.disabled)")){b(this).data("index",e)}});n=o.index(o.filter(".active"));j=o.filter(":not(.disabled):visible").first().data("index");r=o.filter(":not(.disabled):visible").last().data("index");k=o.eq(n).nextAll(":not(.disabled):visible").eq(0).data("index");f=o.eq(n).prevAll(":not(.disabled):visible").eq(0).data("index");h=o.eq(k).prevAll(":not(.disabled):visible").eq(0).data("index")}d=q.data("prevIndex");if(p.keyCode==38){if(m.options.liveSearch){n-=1}if(n!=h&&n>f){n=f}if(n<j){n=j}if(n==d){n=r}}if(p.keyCode==40){if(m.options.liveSearch){n+=1}if(n==-1){n=0}if(n!=h&&n<k){n=k}if(n>r){n=r}if(n==d){n=j}}q.data("prevIndex",n);if(!m.options.liveSearch){o.eq(n).focus()}else{p.preventDefault();if(!q.is(".dropdown-toggle")){o.removeClass("active");o.eq(n).addClass("active").find("a").focus();q.focus()}}}else{if(!q.is("input")){var c=[],l,t;o.each(function(){if(b(this).parent().is(":not(.disabled)")){if(b.trim(b(this).text().toLowerCase()).substring(0,1)==g[p.keyCode]){c.push(b(this).parent().index())}}});l=b(document).data("keycount");l++;b(document).data("keycount",l);t=b.trim(b(":focus").text().toLowerCase()).substring(0,1);if(t!=g[p.keyCode]){l=1;b(document).data("keycount",l)}else{if(l>=c.length){b(document).data("keycount",0);if(l>c.length){l=1}}}o.eq(c[l-1]).focus()}}if(/(13|32|^9$)/.test(p.keyCode)&&s){if(!/(32)/.test(p.keyCode)){p.preventDefault()}if(!m.options.liveSearch){b(":focus").click()}else{if(!/(32)/.test(p.keyCode)){m.$menu.find(".active a").click();q.focus()}}b(document).data("keycount",0)}if((/(^9$|27)/.test(p.keyCode)&&s&&(m.multiple||m.options.liveSearch))||(/(27)/.test(p.keyCode)&&!s)){m.$menu.parent().removeClass("open");m.$button.focus()}},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},destroy:function(){this.$newElement.remove();this.$element.remove()}};b.fn.selectpicker=function(e,f){var c=arguments;var g;var d=this.each(function(){if(b(this).is("select")){var m=b(this),l=m.data("selectpicker"),h=typeof e=="object"&&e;if(!l){m.data("selectpicker",(l=new a(this,h,f)))}else{if(h){for(var j in h){l.options[j]=h[j]}}}if(typeof e=="string"){var k=e;if(l[k] instanceof Function){[].shift.apply(c);g=l[k].apply(l,c)}else{g=l.options[k]}}}});if(g!==undefined){return g}else{return d}};b.fn.selectpicker.defaults={style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",noneSelectedText:"Nothing selected",noneResultsText:"No results match",countSelectedText:"{0} of {1} selected",maxOptionsText:["Limit reached ({n} {var} max)","Group limit reached ({n} {var} max)",["items","item"]],width:false,container:false,hideDisabled:false,showSubtext:false,showIcon:true,showContent:true,dropupAuto:true,header:false,liveSearch:false,actionsBox:false,multipleSeparator:", ",iconBase:"glyphicon",tickIcon:"glyphicon-ok",maxOptions:false};b(document).data("keycount",0).on("keydown",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bootstrap-select-searchbox input",a.prototype.keydown).on("focusin.modal",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bootstrap-select-searchbox input",function(c){c.stopPropagation()})}(window.jQuery);
(function(factory){
if(typeof define==='function'&&define.amd){
define(['jquery'], factory);
}else if(typeof module==='object'&&typeof module.exports==='object'){
module.exports=factory(require('jquery'));
}else{
factory(jQuery);
}} (function($){
var menuTrees=[],
mouse=false,
touchEvents='ontouchstart' in window,
mouseDetectionEnabled=false,
requestAnimationFrame=window.requestAnimationFrame||function(callback){ return setTimeout(callback, 1000 / 60); },
cancelAnimationFrame=window.cancelAnimationFrame||function(id){ clearTimeout(id); },
canAnimate = !!$.fn.animate;
function initMouseDetection(disable){
var eNS='.smartmenus_mouse';
if(!mouseDetectionEnabled&&!disable){
var firstTime=true,
lastMove=null,
events={
'mousemove': function(e){
var thisMove={ x: e.pageX, y: e.pageY, timeStamp: new Date().getTime() };
if(lastMove){
var deltaX=Math.abs(lastMove.x - thisMove.x),
deltaY=Math.abs(lastMove.y - thisMove.y);
if((deltaX > 0||deltaY > 0)&&deltaX <=2&&deltaY <=2&&thisMove.timeStamp - lastMove.timeStamp <=300){
mouse=true;
if(firstTime){
var $a=$(e.target).closest('a');
if($a.is('a')){
$.each(menuTrees, function(){
if($.contains(this.$root[0], $a[0])){
this.itemEnter({ currentTarget: $a[0] });
return false;
}});
}
firstTime=false;
}}
}
lastMove=thisMove;
}};
events[touchEvents ? 'touchstart':'pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut']=function(e){
if(isTouchEvent(e.originalEvent)){
mouse=false;
}};
$(document).on(getEventsNS(events, eNS));
mouseDetectionEnabled=true;
}else if(mouseDetectionEnabled&&disable){
$(document).off(eNS);
mouseDetectionEnabled=false;
}}
function isTouchEvent(e){
return !/^(4|mouse)$/.test(e.pointerType);
}
function getEventsNS(events, eNS){
if(!eNS){
eNS='';
}
var eventsNS={};
for (var i in events){
eventsNS[i.split(' ').join(eNS + ' ') + eNS]=events[i];
}
return eventsNS;
}
$.SmartMenus=function(elm, options){
this.$root=$(elm);
this.opts=options;
this.rootId='';
this.accessIdPrefix='';
this.$subArrow=null;
this.activatedItems=[];
this.visibleSubMenus=[];
this.showTimeout=0;
this.hideTimeout=0;
this.scrollTimeout=0;
this.clickActivated=false;
this.focusActivated=false;
this.zIndexInc=0;
this.idInc=0;
this.$firstLink=null;
this.$firstSub=null;
this.disabled=false;
this.$disableOverlay=null;
this.$touchScrollingSub=null;
this.cssTransforms3d='perspective' in elm.style||'webkitPerspective' in elm.style;
this.wasCollapsible=false;
this.init();
};
$.extend($.SmartMenus, {
hideAll: function(){
$.each(menuTrees, function(){
this.menuHideAll();
});
},
destroy: function(){
while (menuTrees.length){
menuTrees[0].destroy();
}
initMouseDetection(true);
},
prototype: {
init: function(refresh){
var self=this;
if(!refresh){
menuTrees.push(this);
this.rootId=(new Date().getTime() + Math.random() + '').replace(/\D/g, '');
this.accessIdPrefix='sm-' + this.rootId + '-';
if(this.$root.hasClass('sm-rtl')){
this.opts.rightToLeftSubMenus=true;
}
var eNS='.smartmenus';
this.$root
.data('smartmenus', this)
.attr('data-smartmenus-id', this.rootId)
.dataSM('level', 1)
.on(getEventsNS({
'mouseover focusin': $.proxy(this.rootOver, this),
'mouseout focusout': $.proxy(this.rootOut, this),
'keydown': $.proxy(this.rootKeyDown, this)
}, eNS))
.on(getEventsNS({
'mouseenter': $.proxy(this.itemEnter, this),
'mouseleave': $.proxy(this.itemLeave, this),
'mousedown': $.proxy(this.itemDown, this),
'focus': $.proxy(this.itemFocus, this),
'blur': $.proxy(this.itemBlur, this),
'click': $.proxy(this.itemClick, this)
}, eNS), 'a');
eNS +=this.rootId;
if(this.opts.hideOnClick){
$(document).on(getEventsNS({
'touchstart': $.proxy(this.docTouchStart, this),
'touchmove': $.proxy(this.docTouchMove, this),
'touchend': $.proxy(this.docTouchEnd, this),
'click': $.proxy(this.docClick, this)
}, eNS));
}
$(window).on(getEventsNS({ 'resize orientationchange': $.proxy(this.winResize, this) }, eNS));
if(this.opts.subIndicators){
this.$subArrow=$('<span/>').addClass('sub-arrow');
if(this.opts.subIndicatorsText){
this.$subArrow.html(this.opts.subIndicatorsText);
}}
initMouseDetection();
}
this.$firstSub=this.$root.find('ul').each(function(){ self.menuInit($(this)); }).eq(0);
this.$firstLink=this.$root.find('a').eq(0);
if(this.opts.markCurrentItem){
var reDefaultDoc=/(index|default)\.[^#\?\/]*/i,
reHash=/#.*/,
locHref=window.location.href.replace(reDefaultDoc, ''),
locHrefNoHash=locHref.replace(reHash, '');
this.$root.find('a').each(function(){
var href=this.href.replace(reDefaultDoc, ''),
$this=$(this);
if(href==locHref||href==locHrefNoHash){
$this.addClass('current');
if(self.opts.markCurrentTree){
$this.parentsUntil('[data-smartmenus-id]', 'ul').each(function(){
$(this).dataSM('parent-a').addClass('current');
});
}}
});
}
this.wasCollapsible=this.isCollapsible();
},
destroy: function(refresh){
if(!refresh){
var eNS='.smartmenus';
this.$root
.removeData('smartmenus')
.removeAttr('data-smartmenus-id')
.removeDataSM('level')
.off(eNS);
eNS +=this.rootId;
$(document).off(eNS);
$(window).off(eNS);
if(this.opts.subIndicators){
this.$subArrow=null;
}}
this.menuHideAll();
var self=this;
this.$root.find('ul').each(function(){
var $this=$(this);
if($this.dataSM('scroll-arrows')){
$this.dataSM('scroll-arrows').remove();
}
if($this.dataSM('shown-before')){
if(self.opts.subMenusMinWidth||self.opts.subMenusMaxWidth){
$this.css({ width: '', minWidth: '', maxWidth: '' }).removeClass('sm-nowrap');
}
if($this.dataSM('scroll-arrows')){
$this.dataSM('scroll-arrows').remove();
}
$this.css({ zIndex: '', top: '', left: '', marginLeft: '', marginTop: '', display: '' });
}
if(($this.attr('id')||'').indexOf(self.accessIdPrefix)==0){
$this.removeAttr('id');
}})
.removeDataSM('in-mega')
.removeDataSM('shown-before')
.removeDataSM('scroll-arrows')
.removeDataSM('parent-a')
.removeDataSM('level')
.removeDataSM('beforefirstshowfired')
.removeAttr('role')
.removeAttr('aria-hidden')
.removeAttr('aria-labelledby')
.removeAttr('aria-expanded');
this.$root.find('a.has-submenu').each(function(){
var $this=$(this);
if($this.attr('id').indexOf(self.accessIdPrefix)==0){
$this.removeAttr('id');
}})
.removeClass('has-submenu')
.removeDataSM('sub')
.removeAttr('aria-haspopup')
.removeAttr('aria-controls')
.removeAttr('aria-expanded')
.closest('li').removeDataSM('sub');
if(this.opts.subIndicators){
this.$root.find('span.sub-arrow').remove();
}
if(this.opts.markCurrentItem){
this.$root.find('a.current').removeClass('current');
}
if(!refresh){
this.$root=null;
this.$firstLink=null;
this.$firstSub=null;
if(this.$disableOverlay){
this.$disableOverlay.remove();
this.$disableOverlay=null;
}
menuTrees.splice($.inArray(this, menuTrees), 1);
}},
disable: function(noOverlay){
if(!this.disabled){
this.menuHideAll();
if(!noOverlay&&!this.opts.isPopup&&this.$root.is(':visible')){
var pos=this.$root.offset();
this.$disableOverlay=$('<div class="sm-jquery-disable-overlay"/>').css({
position: 'absolute',
top: pos.top,
left: pos.left,
width: this.$root.outerWidth(),
height: this.$root.outerHeight(),
zIndex: this.getStartZIndex(true),
opacity: 0
}).appendTo(document.body);
}
this.disabled=true;
}},
docClick: function(e){
if(this.$touchScrollingSub){
this.$touchScrollingSub=null;
return;
}
if(this.visibleSubMenus.length&&!$.contains(this.$root[0], e.target)||$(e.target).closest('a').length){
this.menuHideAll();
}},
docTouchEnd: function(e){
if(!this.lastTouch){
return;
}
if(this.visibleSubMenus.length&&(this.lastTouch.x2===undefined||this.lastTouch.x1==this.lastTouch.x2)&&(this.lastTouch.y2===undefined||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!$.contains(this.$root[0], this.lastTouch.target))){
if(this.hideTimeout){
clearTimeout(this.hideTimeout);
this.hideTimeout=0;
}
var self=this;
this.hideTimeout=setTimeout(function(){ self.menuHideAll(); }, 350);
}
this.lastTouch=null;
},
docTouchMove: function(e){
if(!this.lastTouch){
return;
}
var touchPoint=e.originalEvent.touches[0];
this.lastTouch.x2=touchPoint.pageX;
this.lastTouch.y2=touchPoint.pageY;
},
docTouchStart: function(e){
var touchPoint=e.originalEvent.touches[0];
this.lastTouch={ x1: touchPoint.pageX, y1: touchPoint.pageY, target: touchPoint.target };},
enable: function(){
if(this.disabled){
if(this.$disableOverlay){
this.$disableOverlay.remove();
this.$disableOverlay=null;
}
this.disabled=false;
}},
getClosestMenu: function(elm){
var $closestMenu=$(elm).closest('ul');
while ($closestMenu.dataSM('in-mega')){
$closestMenu=$closestMenu.parent().closest('ul');
}
return $closestMenu[0]||null;
},
getHeight: function($elm){
return this.getOffset($elm, true);
},
getOffset: function($elm, height){
var old;
if($elm.css('display')=='none'){
old={ position: $elm[0].style.position, visibility: $elm[0].style.visibility };
$elm.css({ position: 'absolute', visibility: 'hidden' }).show();
}
var box=$elm[0].getBoundingClientRect&&$elm[0].getBoundingClientRect(),
val=box&&(height ? box.height||box.bottom - box.top:box.width||box.right - box.left);
if(!val&&val!==0){
val=height ? $elm[0].offsetHeight:$elm[0].offsetWidth;
}
if(old){
$elm.hide().css(old);
}
return val;
},
getStartZIndex: function(root){
var zIndex=parseInt(this[root ? '$root':'$firstSub'].css('z-index'));
if(!root&&isNaN(zIndex)){
zIndex=parseInt(this.$root.css('z-index'));
}
return !isNaN(zIndex) ? zIndex:1;
},
getTouchPoint: function(e){
return e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e;
},
getViewport: function(height){
var name=height ? 'Height':'Width',
val=document.documentElement['client' + name],
val2=window['inner' + name];
if(val2){
val=Math.min(val, val2);
}
return val;
},
getViewportHeight: function(){
return this.getViewport(true);
},
getViewportWidth: function(){
return this.getViewport();
},
getWidth: function($elm){
return this.getOffset($elm);
},
handleEvents: function(){
return !this.disabled&&this.isCSSOn();
},
handleItemEvents: function($a){
return this.handleEvents()&&!this.isLinkInMegaMenu($a);
},
isCollapsible: function(){
return this.$firstSub.css('position')=='static';
},
isCSSOn: function(){
return this.$firstLink.css('display')!='inline';
},
isFixed: function(){
var isFixed=this.$root.css('position')=='fixed';
if(!isFixed){
this.$root.parentsUntil('body').each(function(){
if($(this).css('position')=='fixed'){
isFixed=true;
return false;
}});
}
return isFixed;
},
isLinkInMegaMenu: function($a){
return $(this.getClosestMenu($a[0])).hasClass('mega-menu');
},
isTouchMode: function(){
return !mouse||this.opts.noMouseOver||this.isCollapsible();
},
itemActivate: function($a, hideDeeperSubs){
var $ul=$a.closest('ul'),
level=$ul.dataSM('level');
if(level > 1&&(!this.activatedItems[level - 2]||this.activatedItems[level - 2][0]!=$ul.dataSM('parent-a')[0])){
var self=this;
$($ul.parentsUntil('[data-smartmenus-id]', 'ul').get().reverse()).add($ul).each(function(){
self.itemActivate($(this).dataSM('parent-a'));
});
}
if(!this.isCollapsible()||hideDeeperSubs){
this.menuHideSubMenus(!this.activatedItems[level - 1]||this.activatedItems[level - 1][0]!=$a[0] ? level - 1:level);
}
this.activatedItems[level - 1]=$a;
if(this.$root.triggerHandler('activate.smapi', $a[0])===false){
return;
}
var $sub=$a.dataSM('sub');
if($sub&&(this.isTouchMode()||(!this.opts.showOnClick||this.clickActivated))){
this.menuShow($sub);
}},
itemBlur: function(e){
var $a=$(e.currentTarget);
if(!this.handleItemEvents($a)){
return;
}
this.$root.triggerHandler('blur.smapi', $a[0]);
},
itemClick: function(e){
var $a=$(e.currentTarget);
if(!this.handleItemEvents($a)){
return;
}
if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==$a.closest('ul')[0]){
this.$touchScrollingSub=null;
e.stopPropagation();
return false;
}
if(this.$root.triggerHandler('click.smapi', $a[0])===false){
return false;
}
var subArrowClicked=$(e.target).is('.sub-arrow'),
$sub=$a.dataSM('sub'),
firstLevelSub=$sub ? $sub.dataSM('level')==2:false,
collapsible=this.isCollapsible(),
behaviorToggle=/toggle$/.test(this.opts.collapsibleBehavior),
behaviorLink=/link$/.test(this.opts.collapsibleBehavior),
behaviorAccordion=/^accordion/.test(this.opts.collapsibleBehavior);
if($sub&&!$sub.is(':visible')){
if(!behaviorLink||!collapsible||subArrowClicked){
if(this.opts.showOnClick&&firstLevelSub){
this.clickActivated=true;
}
this.itemActivate($a, behaviorAccordion);
if($sub.is(':visible')){
this.focusActivated=true;
return false;
}}
}else if(collapsible&&(behaviorToggle||subArrowClicked)){
this.itemActivate($a, behaviorAccordion);
this.menuHide($sub);
if(behaviorToggle){
this.focusActivated=false;
}
return false;
}
if(this.opts.showOnClick&&firstLevelSub||$a.hasClass('disabled')||this.$root.triggerHandler('select.smapi', $a[0])===false){
return false;
}},
itemDown: function(e){
var $a=$(e.currentTarget);
if(!this.handleItemEvents($a)){
return;
}
$a.dataSM('mousedown', true);
},
itemEnter: function(e){
var $a=$(e.currentTarget);
if(!this.handleItemEvents($a)){
return;
}
if(!this.isTouchMode()){
if(this.showTimeout){
clearTimeout(this.showTimeout);
this.showTimeout=0;
}
var self=this;
this.showTimeout=setTimeout(function(){ self.itemActivate($a); }, this.opts.showOnClick&&$a.closest('ul').dataSM('level')==1 ? 1:this.opts.showTimeout);
}
this.$root.triggerHandler('mouseenter.smapi', $a[0]);
},
itemFocus: function(e){
var $a=$(e.currentTarget);
if(!this.handleItemEvents($a)){
return;
}
if(this.focusActivated&&(!this.isTouchMode()||!$a.dataSM('mousedown'))&&(!this.activatedItems.length||this.activatedItems[this.activatedItems.length - 1][0]!=$a[0])){
this.itemActivate($a, true);
}
this.$root.triggerHandler('focus.smapi', $a[0]);
},
itemLeave: function(e){
var $a=$(e.currentTarget);
if(!this.handleItemEvents($a)){
return;
}
if(!this.isTouchMode()){
$a[0].blur();
if(this.showTimeout){
clearTimeout(this.showTimeout);
this.showTimeout=0;
}}
$a.removeDataSM('mousedown');
this.$root.triggerHandler('mouseleave.smapi', $a[0]);
},
menuHide: function($sub){
if(this.$root.triggerHandler('beforehide.smapi', $sub[0])===false){
return;
}
if(canAnimate){
$sub.stop(true, true);
}
if($sub.css('display')!='none'){
var complete=function(){
$sub.css('z-index', '');
};
if(this.isCollapsible()){
if(canAnimate&&this.opts.collapsibleHideFunction){
this.opts.collapsibleHideFunction.call(this, $sub, complete);
}else{
$sub.hide(this.opts.collapsibleHideDuration, complete);
}}else{
if(canAnimate&&this.opts.hideFunction){
this.opts.hideFunction.call(this, $sub, complete);
}else{
$sub.hide(this.opts.hideDuration, complete);
}}
if($sub.dataSM('scroll')){
this.menuScrollStop($sub);
$sub.css({ 'touch-action': '', '-ms-touch-action': '', '-webkit-transform': '', transform: '' })
.off('.smartmenus_scroll').removeDataSM('scroll').dataSM('scroll-arrows').hide();
}
$sub.dataSM('parent-a').removeClass('highlighted').attr('aria-expanded', 'false');
$sub.attr({
'aria-expanded': 'false',
'aria-hidden': 'true'
});
var level=$sub.dataSM('level');
this.activatedItems.splice(level - 1, 1);
this.visibleSubMenus.splice($.inArray($sub, this.visibleSubMenus), 1);
this.$root.triggerHandler('hide.smapi', $sub[0]);
}},
menuHideAll: function(){
if(this.showTimeout){
clearTimeout(this.showTimeout);
this.showTimeout=0;
}
var level=this.opts.isPopup ? 1:0;
for (var i=this.visibleSubMenus.length - 1; i >=level; i--){
this.menuHide(this.visibleSubMenus[i]);
}
if(this.opts.isPopup){
if(canAnimate){
this.$root.stop(true, true);
}
if(this.$root.is(':visible')){
if(canAnimate&&this.opts.hideFunction){
this.opts.hideFunction.call(this, this.$root);
}else{
this.$root.hide(this.opts.hideDuration);
}}
}
this.activatedItems=[];
this.visibleSubMenus=[];
this.clickActivated=false;
this.focusActivated=false;
this.zIndexInc=0;
this.$root.triggerHandler('hideAll.smapi');
},
menuHideSubMenus: function(level){
for (var i=this.activatedItems.length - 1; i >=level; i--){
var $sub=this.activatedItems[i].dataSM('sub');
if($sub){
this.menuHide($sub);
}}
},
menuInit: function($ul){
if(!$ul.dataSM('in-mega')){
if($ul.hasClass('mega-menu')){
$ul.find('ul').dataSM('in-mega', true);
}
var level=2,
par=$ul[0];
while ((par=par.parentNode.parentNode)!=this.$root[0]){
level++;
}
var $a=$ul.prevAll('a').eq(-1);
if(!$a.length){
$a=$ul.prevAll().find('a').eq(-1);
}
$a.addClass('has-submenu').dataSM('sub', $ul);
$ul.dataSM('parent-a', $a)
.dataSM('level', level)
.parent().dataSM('sub', $ul);
var aId=$a.attr('id')||this.accessIdPrefix + (++this.idInc),
ulId=$ul.attr('id')||this.accessIdPrefix + (++this.idInc);
$a.attr({
id: aId,
'aria-haspopup': 'true',
'aria-controls': ulId,
'aria-expanded': 'false'
});
$ul.attr({
id: ulId,
'role': 'group',
'aria-hidden': 'true',
'aria-labelledby': aId,
'aria-expanded': 'false'
});
if(this.opts.subIndicators){
$a[this.opts.subIndicatorsPos](this.$subArrow.clone());
}}
},
menuPosition: function($sub){
var $a=$sub.dataSM('parent-a'),
$li=$a.closest('li'),
$ul=$li.parent(),
level=$sub.dataSM('level'),
subW=this.getWidth($sub),
subH=this.getHeight($sub),
itemOffset=$a.offset(),
itemX=itemOffset.left,
itemY=itemOffset.top,
itemW=this.getWidth($a),
itemH=this.getHeight($a),
$win=$(window),
winX=$win.scrollLeft(),
winY=$win.scrollTop(),
winW=this.getViewportWidth(),
winH=this.getViewportHeight(),
horizontalParent=$ul.parent().is('[data-sm-horizontal-sub]')||level==2&&!$ul.hasClass('sm-vertical'),
rightToLeft=this.opts.rightToLeftSubMenus&&!$li.is('[data-sm-reverse]')||!this.opts.rightToLeftSubMenus&&$li.is('[data-sm-reverse]'),
subOffsetX=level==2 ? this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,
subOffsetY=level==2 ? this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY,
x, y;
if(horizontalParent){
x=rightToLeft ? itemW - subW - subOffsetX:subOffsetX;
y=this.opts.bottomToTopSubMenus ? -subH - subOffsetY:itemH + subOffsetY;
}else{
x=rightToLeft ? subOffsetX - subW:itemW - subOffsetX;
y=this.opts.bottomToTopSubMenus ? itemH - subOffsetY - subH:subOffsetY;
}
if(this.opts.keepInViewport){
var absX=itemX + x,
absY=itemY + y;
if(rightToLeft&&absX < winX){
x=horizontalParent ? winX - absX + x:itemW - subOffsetX;
}else if(!rightToLeft&&absX + subW > winX + winW){
x=horizontalParent ? winX + winW - subW - absX + x:subOffsetX - subW;
}
if(!horizontalParent){
if(subH < winH&&absY + subH > winY + winH){
y +=winY + winH - subH - absY;
}else if(subH >=winH||absY < winY){
y +=winY - absY;
}}
if(horizontalParent&&(absY + subH > winY + winH + 0.49||absY < winY)||!horizontalParent&&subH > winH + 0.49){
var self=this;
if(!$sub.dataSM('scroll-arrows')){
$sub.dataSM('scroll-arrows', $([$('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0], $('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]])
.on({
mouseenter: function(){
$sub.dataSM('scroll').up=$(this).hasClass('scroll-up');
self.menuScroll($sub);
},
mouseleave: function(e){
self.menuScrollStop($sub);
self.menuScrollOut($sub, e);
},
'mousewheel DOMMouseScroll': function(e){ e.preventDefault(); }})
.insertAfter($sub)
);
}
var eNS='.smartmenus_scroll';
$sub.dataSM('scroll', {
y: this.cssTransforms3d ? 0:y - itemH,
step: 1,
itemH: itemH,
subH: subH,
arrowDownH: this.getHeight($sub.dataSM('scroll-arrows').eq(1))
})
.on(getEventsNS({
'mouseover': function(e){ self.menuScrollOver($sub, e); },
'mouseout': function(e){ self.menuScrollOut($sub, e); },
'mousewheel DOMMouseScroll': function(e){ self.menuScrollMousewheel($sub, e); }}, eNS))
.dataSM('scroll-arrows').css({ top: 'auto', left: '0', marginLeft: x + (parseInt($sub.css('border-left-width'))||0), width: subW - (parseInt($sub.css('border-left-width'))||0) - (parseInt($sub.css('border-right-width'))||0), zIndex: $sub.css('z-index') })
.eq(horizontalParent&&this.opts.bottomToTopSubMenus ? 0:1).show();
if(this.isFixed()){
var events={};
events[touchEvents ? 'touchstart touchmove touchend':'pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp']=function(e){
self.menuScrollTouch($sub, e);
};
$sub.css({ 'touch-action': 'none', '-ms-touch-action': 'none' }).on(getEventsNS(events, eNS));
}}
}
$sub.css({ top: 'auto', left: '0', marginLeft: x, marginTop: y - itemH });
},
menuScroll: function($sub, once, step){
var data=$sub.dataSM('scroll'),
$arrows=$sub.dataSM('scroll-arrows'),
end=data.up ? data.upEnd:data.downEnd,
diff;
if(!once&&data.momentum){
data.momentum *=0.92;
diff=data.momentum;
if(diff < 0.5){
this.menuScrollStop($sub);
return;
}}else{
diff=step||(once||!this.opts.scrollAccelerate ? this.opts.scrollStep:Math.floor(data.step));
}
var level=$sub.dataSM('level');
if(this.activatedItems[level - 1]&&this.activatedItems[level - 1].dataSM('sub')&&this.activatedItems[level - 1].dataSM('sub').is(':visible')){
this.menuHideSubMenus(level - 1);
}
data.y=data.up&&end <=data.y||!data.up&&end >=data.y ? data.y:(Math.abs(end - data.y) > diff ? data.y + (data.up ? diff:-diff):end);
$sub.css(this.cssTransforms3d ? { '-webkit-transform': 'translate3d(0, ' + data.y + 'px, 0)', transform: 'translate3d(0, ' + data.y + 'px, 0)' }:{ marginTop: data.y });
if(mouse&&(data.up&&data.y > data.downEnd||!data.up&&data.y < data.upEnd)){
$arrows.eq(data.up ? 1:0).show();
}
if(data.y==end){
if(mouse){
$arrows.eq(data.up ? 0:1).hide();
}
this.menuScrollStop($sub);
}else if(!once){
if(this.opts.scrollAccelerate&&data.step < this.opts.scrollStep){
data.step +=0.2;
}
var self=this;
this.scrollTimeout=requestAnimationFrame(function(){ self.menuScroll($sub); });
}},
menuScrollMousewheel: function($sub, e){
if(this.getClosestMenu(e.target)==$sub[0]){
e=e.originalEvent;
var up=(e.wheelDelta||-e.detail) > 0;
if($sub.dataSM('scroll-arrows').eq(up ? 0:1).is(':visible')){
$sub.dataSM('scroll').up=up;
this.menuScroll($sub, true);
}}
e.preventDefault();
},
menuScrollOut: function($sub, e){
if(mouse){
if(!/^scroll-(up|down)/.test((e.relatedTarget||'').className)&&($sub[0]!=e.relatedTarget&&!$.contains($sub[0], e.relatedTarget)||this.getClosestMenu(e.relatedTarget)!=$sub[0])){
$sub.dataSM('scroll-arrows').css('visibility', 'hidden');
}}
},
menuScrollOver: function($sub, e){
if(mouse){
if(!/^scroll-(up|down)/.test(e.target.className)&&this.getClosestMenu(e.target)==$sub[0]){
this.menuScrollRefreshData($sub);
var data=$sub.dataSM('scroll'),
upEnd=$(window).scrollTop() - $sub.dataSM('parent-a').offset().top - data.itemH;
$sub.dataSM('scroll-arrows').eq(0).css('margin-top', upEnd).end()
.eq(1).css('margin-top', upEnd + this.getViewportHeight() - data.arrowDownH).end()
.css('visibility', 'visible');
}}
},
menuScrollRefreshData: function($sub){
var data=$sub.dataSM('scroll'),
upEnd=$(window).scrollTop() - $sub.dataSM('parent-a').offset().top - data.itemH;
if(this.cssTransforms3d){
upEnd=-(parseFloat($sub.css('margin-top')) - upEnd);
}
$.extend(data, {
upEnd: upEnd,
downEnd: upEnd + this.getViewportHeight() - data.subH
});
},
menuScrollStop: function($sub){
if(this.scrollTimeout){
cancelAnimationFrame(this.scrollTimeout);
this.scrollTimeout=0;
$sub.dataSM('scroll').step=1;
return true;
}},
menuScrollTouch: function($sub, e){
e=e.originalEvent;
if(isTouchEvent(e)){
var touchPoint=this.getTouchPoint(e);
if(this.getClosestMenu(touchPoint.target)==$sub[0]){
var data=$sub.dataSM('scroll');
if(/(start|down)$/i.test(e.type)){
if(this.menuScrollStop($sub)){
e.preventDefault();
this.$touchScrollingSub=$sub;
}else{
this.$touchScrollingSub=null;
}
this.menuScrollRefreshData($sub);
$.extend(data, {
touchStartY: touchPoint.pageY,
touchStartTime: e.timeStamp
});
}else if(/move$/i.test(e.type)){
var prevY=data.touchY!==undefined ? data.touchY:data.touchStartY;
if(prevY!==undefined&&prevY!=touchPoint.pageY){
this.$touchScrollingSub=$sub;
var up=prevY < touchPoint.pageY;
if(data.up!==undefined&&data.up!=up){
$.extend(data, {
touchStartY: touchPoint.pageY,
touchStartTime: e.timeStamp
});
}
$.extend(data, {
up: up,
touchY: touchPoint.pageY
});
this.menuScroll($sub, true, Math.abs(touchPoint.pageY - prevY));
}
e.preventDefault();
}else{
if(data.touchY!==undefined){
if(data.momentum=Math.pow(Math.abs(touchPoint.pageY - data.touchStartY) / (e.timeStamp - data.touchStartTime), 2) * 15){
this.menuScrollStop($sub);
this.menuScroll($sub);
e.preventDefault();
}
delete data.touchY;
}}
}}
},
menuShow: function($sub){
if(!$sub.dataSM('beforefirstshowfired')){
$sub.dataSM('beforefirstshowfired', true);
if(this.$root.triggerHandler('beforefirstshow.smapi', $sub[0])===false){
return;
}}
if(this.$root.triggerHandler('beforeshow.smapi', $sub[0])===false){
return;
}
$sub.dataSM('shown-before', true);
if(canAnimate){
$sub.stop(true, true);
}
if(!$sub.is(':visible')){
var $a=$sub.dataSM('parent-a'),
collapsible=this.isCollapsible();
if(this.opts.keepHighlighted||collapsible){
$a.addClass('highlighted');
}
if(collapsible){
$sub.removeClass('sm-nowrap').css({ zIndex: '', width: 'auto', minWidth: '', maxWidth: '', top: '', left: '', marginLeft: '', marginTop: '' });
}else{
$sub.css('z-index', this.zIndexInc=(this.zIndexInc||this.getStartZIndex()) + 1);
if(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth){
$sub.css({ width: 'auto', minWidth: '', maxWidth: '' }).addClass('sm-nowrap');
if(this.opts.subMenusMinWidth){
$sub.css('min-width', this.opts.subMenusMinWidth);
}
if(this.opts.subMenusMaxWidth){
var noMaxWidth=this.getWidth($sub);
$sub.css('max-width', this.opts.subMenusMaxWidth);
if(noMaxWidth > this.getWidth($sub)){
$sub.removeClass('sm-nowrap').css('width', this.opts.subMenusMaxWidth);
}}
}
this.menuPosition($sub);
}
var complete=function(){
$sub.css('overflow', '');
};
if(collapsible){
if(canAnimate&&this.opts.collapsibleShowFunction){
this.opts.collapsibleShowFunction.call(this, $sub, complete);
}else{
$sub.show(this.opts.collapsibleShowDuration, complete);
}}else{
if(canAnimate&&this.opts.showFunction){
this.opts.showFunction.call(this, $sub, complete);
}else{
$sub.show(this.opts.showDuration, complete);
}}
$a.attr('aria-expanded', 'true');
$sub.attr({
'aria-expanded': 'true',
'aria-hidden': 'false'
});
this.visibleSubMenus.push($sub);
this.$root.triggerHandler('show.smapi', $sub[0]);
}},
popupHide: function(noHideTimeout){
if(this.hideTimeout){
clearTimeout(this.hideTimeout);
this.hideTimeout=0;
}
var self=this;
this.hideTimeout=setTimeout(function(){
self.menuHideAll();
}, noHideTimeout ? 1:this.opts.hideTimeout);
},
popupShow: function(left, top){
if(!this.opts.isPopup){
alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');
return;
}
if(this.hideTimeout){
clearTimeout(this.hideTimeout);
this.hideTimeout=0;
}
this.$root.dataSM('shown-before', true);
if(canAnimate){
this.$root.stop(true, true);
}
if(!this.$root.is(':visible')){
this.$root.css({ left: left, top: top });
var self=this,
complete=function(){
self.$root.css('overflow', '');
};
if(canAnimate&&this.opts.showFunction){
this.opts.showFunction.call(this, this.$root, complete);
}else{
this.$root.show(this.opts.showDuration, complete);
}
this.visibleSubMenus[0]=this.$root;
}},
refresh: function(){
this.destroy(true);
this.init(true);
},
rootKeyDown: function(e){
if(!this.handleEvents()){
return;
}
switch (e.keyCode){
case 27:
var $activeTopItem=this.activatedItems[0];
if($activeTopItem){
this.menuHideAll();
$activeTopItem[0].focus();
var $sub=$activeTopItem.dataSM('sub');
if($sub){
this.menuHide($sub);
}}
break;
case 32:
var $target=$(e.target);
if($target.is('a')&&this.handleItemEvents($target)){
var $sub=$target.dataSM('sub');
if($sub&&!$sub.is(':visible')){
this.itemClick({ currentTarget: e.target });
e.preventDefault();
}}
break;
}},
rootOut: function(e){
if(!this.handleEvents()||this.isTouchMode()||e.target==this.$root[0]){
return;
}
if(this.hideTimeout){
clearTimeout(this.hideTimeout);
this.hideTimeout=0;
}
if(!this.opts.showOnClick||!this.opts.hideOnClick){
var self=this;
this.hideTimeout=setTimeout(function(){ self.menuHideAll(); }, this.opts.hideTimeout);
}},
rootOver: function(e){
if(!this.handleEvents()||this.isTouchMode()||e.target==this.$root[0]){
return;
}
if(this.hideTimeout){
clearTimeout(this.hideTimeout);
this.hideTimeout=0;
}},
winResize: function(e){
if(!this.handleEvents()){
if(this.$disableOverlay){
var pos=this.$root.offset();
this.$disableOverlay.css({
top: pos.top,
left: pos.left,
width: this.$root.outerWidth(),
height: this.$root.outerHeight()
});
}
return;
}
if(!('onorientationchange' in window)||e.type=='orientationchange'){
var collapsible=this.isCollapsible();
if(!(this.wasCollapsible&&collapsible)){
if(this.activatedItems.length){
this.activatedItems[this.activatedItems.length - 1][0].blur();
}
this.menuHideAll();
}
this.wasCollapsible=collapsible;
}}
}});
$.fn.dataSM=function(key, val){
if(val){
return this.data(key + '_smartmenus', val);
}
return this.data(key + '_smartmenus');
};
$.fn.removeDataSM=function(key){
return this.removeData(key + '_smartmenus');
};
$.fn.smartmenus=function(options){
if(typeof options=='string'){
var args=arguments,
method=options;
Array.prototype.shift.call(args);
return this.each(function(){
var smartmenus=$(this).data('smartmenus');
if(smartmenus&&smartmenus[method]){
smartmenus[method].apply(smartmenus, args);
}});
}
return this.each(function(){
var dataOpts=$(this).data('sm-options')||null;
if(dataOpts){
try {
dataOpts=eval('(' + dataOpts + ')');
} catch(e){
dataOpts=null;
alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.');
};}
new $.SmartMenus(this, $.extend({}, $.fn.smartmenus.defaults, options, dataOpts));
});
};
$.fn.smartmenus.defaults={
isPopup:		false,
mainMenuSubOffsetX:	0,
mainMenuSubOffsetY:	0,
subMenusSubOffsetX:	0,
subMenusSubOffsetY:	0,
subMenusMinWidth:	'10em',
subMenusMaxWidth:	'20em',
subIndicators: 		true,
subIndicatorsPos: 	'append',
subIndicatorsText:	'',
scrollStep: 		30,
scrollAccelerate:	true,
showTimeout:		250,
hideTimeout:		500,
showDuration:		0,
showFunction:		null,
hideDuration:		0,
hideFunction:		function($ul, complete){ $ul.fadeOut(200, complete); },
collapsibleShowDuration:0,
collapsibleShowFunction:function($ul, complete){ $ul.slideDown(200, complete); },
collapsibleHideDuration:0,
collapsibleHideFunction:function($ul, complete){ $ul.slideUp(200, complete); },
showOnClick:		false,
hideOnClick:		true,
noMouseOver:		false,
keepInViewport:		true,
keepHighlighted:	true,
markCurrentItem:	false,
markCurrentTree:	true,
rightToLeftSubMenus:	false,
bottomToTopSubMenus:	false,
collapsibleBehavior:	'default'
};
return $;
}));
(function(factory){
if(typeof define==='function'&&define.amd){
define(['jquery', 'smartmenus'], factory);
}else if(typeof module==='object'&&typeof module.exports==='object'){
module.exports=factory(require('jquery'));
}else{
factory(jQuery);
}} (function($){
$.extend($.SmartMenus.Bootstrap={}, {
keydownFix: false,
init: function(){
var $navbars=$('ul.navbar-nav:not([data-sm-skip])');
$navbars.each(function(){
var $this=$(this),
obj=$this.data('smartmenus');
if(!obj){
$this.smartmenus({
subMenusSubOffsetX: 2,
subMenusSubOffsetY: -6,
subIndicators: false,
collapsibleShowFunction: null,
collapsibleHideFunction: null,
rightToLeftSubMenus: $this.hasClass('navbar-right'),
bottomToTopSubMenus: $this.closest('.navbar').hasClass('navbar-fixed-bottom')
})
.on({
'show.smapi': function(e, menu){
var $menu=$(menu),
$scrollArrows=$menu.dataSM('scroll-arrows');
if($scrollArrows){
$scrollArrows.css('background-color', $(document.body).css('background-color'));
}
$menu.parent().addClass('open');
},
'hide.smapi': function(e, menu){
$(menu).parent().removeClass('open');
}});
function onInit(){
$this.find('a.current').parent().addClass('active');
$this.find('a.has-submenu').each(function(){
var $this=$(this);
if($this.is('[data-toggle="dropdown"]')){
$this.dataSM('bs-data-toggle-dropdown', true).removeAttr('data-toggle');
}
if($this.is('[role="button"]')){
$this.dataSM('bs-role-button', true).removeAttr('role');
}});
}
onInit();
function onBeforeDestroy(){
$this.find('a.current').parent().removeClass('active');
$this.find('a.has-submenu').each(function(){
var $this=$(this);
if($this.dataSM('bs-data-toggle-dropdown')){
$this.attr('data-toggle', 'dropdown').removeDataSM('bs-data-toggle-dropdown');
}
if($this.dataSM('bs-role-button')){
$this.attr('role', 'button').removeDataSM('bs-role-button');
}});
}
obj=$this.data('smartmenus');
obj.isCollapsible=function(){
return !/^(left|right)$/.test(this.$firstLink.parent().css('float'))&&this.$root.css('display')=='block';
};
obj.refresh=function(){
$.SmartMenus.prototype.refresh.call(this);
onInit();
detectCollapsible(true);
};
obj.destroy=function(refresh){
onBeforeDestroy();
$.SmartMenus.prototype.destroy.call(this, refresh);
};
if($this.is('[data-sm-skip-collapsible-behavior]')){
obj.opts.collapsibleBehavior='toggle';
}
var winW;
function detectCollapsible(force){
var newW=obj.getViewportWidth();
if(newW!=winW||force){
var $carets=$this.find('.caret');
if(obj.isCollapsible()){
$this.addClass('sm-collapsible');
if(!$this.is('[data-sm-skip-collapsible-behavior]')){
$carets.addClass('navbar-toggle sub-arrow');
}}else{
$this.removeClass('sm-collapsible');
if(!$this.is('[data-sm-skip-collapsible-behavior]')){
$carets.removeClass('navbar-toggle sub-arrow');
}}
winW=newW;
}}
detectCollapsible();
$(window).on('resize.smartmenus' + obj.rootId, detectCollapsible);
}});
if($navbars.length&&!$.SmartMenus.Bootstrap.keydownFix){
$(document).off('keydown.bs.dropdown.data-api', '.dropdown-menu');
if($.fn.dropdown&&$.fn.dropdown.Constructor){
$(document).on('keydown.bs.dropdown.data-api', '.dropdown-menu:not([id^="sm-"])', $.fn.dropdown.Constructor.prototype.keydown);
}
$.SmartMenus.Bootstrap.keydownFix=true;
}}
});
$($.SmartMenus.Bootstrap.init);
return $;
}));
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this.drag=a.extend({},m),this.state=a.extend({},n),this.e=a.extend({},o),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._invalidated={},this._pipe=[],a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a[0].toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Pipe,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}function f(a){if(a.touches!==d)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(a.touches===d){if(a.pageX!==d)return{x:a.pageX,y:a.pageY};if(a.pageX===d)return{x:a.clientX,y:a.clientY}}}function g(a){var b,d,e=c.createElement("div"),f=a;for(b in f)if(d=f[b],"undefined"!=typeof e.style[d])return e=null,[d,b];return[!1]}function h(){return g(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function i(){return g(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function j(){return g(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function k(){return"ontouchstart"in b||!!navigator.msMaxTouchPoints}function l(){return b.navigator.msPointerEnabled}var m,n,o;m={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},n={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},o={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},e.Defaults={items:3,loop:!1,center:!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:b,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Plugins={},e.Pipe=[{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var a=this._clones,b=this.$stage.children(".cloned");(b.length!==a.length||!this.settings.loop&&a.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var a,b,c=this._clones,d=this._items,e=this.settings.loop?c.length-Math.max(2*this.settings.items,4):0;for(a=0,b=Math.abs(e/2);b>a;a++)e>0?(this.$stage.children().eq(d.length+c.length-1).remove(),c.pop(),this.$stage.children().eq(0).remove(),c.pop()):(c.push(c.length/2),this.$stage.append(d[c[c.length-1]].clone().addClass("cloned")),c.push(d.length-1-(c.length-1)/2),this.$stage.prepend(d[c[c.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var a,b,c,d=this.settings.rtl?1:-1,e=(this.width()/this.settings.items).toFixed(3),f=0;for(this._coordinates=[],b=0,c=this._clones.length+this._items.length;c>b;b++)a=this._mergers[this.relative(b)],a=this.settings.mergeFit&&Math.min(a,this.settings.items)||a,f+=(this.settings.autoWidth?this._items[this.relative(b)].width()+this.settings.margin:e*a)*d,this._coordinates.push(f)}},{filter:["width","items","settings"],run:function(){var b,c,d=(this.width()/this.settings.items).toFixed(3),e={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(e),e={width:this.settings.autoWidth?"auto":d-this.settings.margin},e[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&a.grep(this._mergers,function(a){return a>1}).length>0)for(b=0,c=this._coordinates.length;c>b;b++)e.width=Math.abs(this._coordinates[b])-Math.abs(this._coordinates[b-1]||0)-this.settings.margin,this.$stage.children().eq(b).css(e);else this.$stage.children().css(e)}},{filter:["width","items","settings"],run:function(a){a.current&&this.reset(this.$stage.children().index(a.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;d>c;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],e.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var b,c,e;if(b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&0>=e)return this.preloadAutoWidthImages(b),!1}this.$element.addClass("owl-loading"),this.$stage=a("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){b>=a&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),delete e.responsive,e.responsiveClass&&this.$element.attr("class",function(a,b){return b.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+d)):e=a.extend({},this.options),(null===this.settings||this._breakpoint!==d)&&(this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},e.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};c>b;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={}},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=b.orientation,this.watchVisibility(),this.trigger("refreshed")},e.prototype.eventsCall=function(){this.e._onDragStart=a.proxy(function(a){this.onDragStart(a)},this),this.e._onDragMove=a.proxy(function(a){this.onDragMove(a)},this),this.e._onDragEnd=a.proxy(function(a){this.onDragEnd(a)},this),this.e._onResize=a.proxy(function(a){this.onResize(a)},this),this.e._transitionEnd=a.proxy(function(a){this.transitionEnd(a)},this),this.e._preventClick=a.proxy(function(a){this.preventClick(a)},this)},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},e.prototype.eventsRouter=function(a){var b=a.type;"mousedown"===b||"touchstart"===b?this.onDragStart(a):"mousemove"===b||"touchmove"===b?this.onDragMove(a):"mouseup"===b||"touchend"===b?this.onDragEnd(a):"touchcancel"===b&&this.onDragEnd(a)},e.prototype.internalEvents=function(){var c=(k(),l());this.settings.mouseDrag?(this.$stage.on("mousedown",a.proxy(function(a){this.eventsRouter(a)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!c&&this.$stage.on("touchstart touchcancel",a.proxy(function(a){this.eventsRouter(a)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(b,"resize",a.proxy(this.onThrottledResize,this))},e.prototype.onDragStart=function(d){var e,g,h,i;if(e=d.originalEvent||d||b.event,3===e.which||this.state.isTouch)return!1;if("mousedown"===e.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,g=f(e).x,h=f(e).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)i=this.getTransformProperty(),this.drag.offsetX=i,this.animate(i),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=g-this.drag.offsetX,this.drag.startY=h-this.drag.offsetY,this.drag.start=g-this.drag.startX,this.drag.targetEl=e.target||e.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),a(c).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",a.proxy(function(a){this.eventsRouter(a)},this))},e.prototype.onDragMove=function(a){var c,e,g,h,i,j;this.state.isTouch&&(this.state.isScrolling||(c=a.originalEvent||a||b.event,e=f(c).x,g=f(c).y,this.drag.currentX=e-this.drag.startX,this.drag.currentY=g-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(h=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),i=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),j=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,h+j),i+j)),(this.drag.distance>8||this.drag.distance<-8)&&(c.preventDefault!==d?c.preventDefault():c.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},e.prototype.onDragEnd=function(b){var d,e,f;if(this.state.isTouch){if("mouseup"===b.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),d=this.drag.endTime-this.drag.startTime,e=Math.abs(this.drag.distance),(e>3||d>300)&&this.removeClick(this.drag.targetEl),f=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(f),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(f)||this.transitionEnd(),this.drag.distance=0,a(c).off(".owl.dragEvents")}},e.prototype.removeClick=function(c){this.drag.targetEl=c,a(c).on("click.preventClick",this.e._preventClick),b.setTimeout(function(){a(c).off("click.preventClick")},300)},e.prototype.preventClick=function(b){b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation&&b.stopPropagation(),a(b.target).off("click.preventClick")},e.prototype.getTransformProperty=function(){var a,c;return a=b.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),a=a.replace(/matrix(3d)?\(|\)/g,"").split(","),c=16===a.length,c!==!0?a[4]:a[12]},e.prototype.closest=function(b){var c=-1,d=30,e=this.width(),f=this.coordinates();return this.settings.freeDrag||a.each(f,a.proxy(function(a,g){return b>g-d&&g+d>b?c=a:this.op(b,"<",g)&&this.op(b,">",f[a+1]||g-e)&&(c="left"===this.state.direction?a+1:a),-1===c},this)),this.settings.loop||(this.op(b,">",f[this.minimum()])?c=b=this.minimum():this.op(b,"<",f[this.maximum()])&&(c=b=this.maximum())),c},e.prototype.animate=function(b){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+b+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:b+"px"}):this.$stage.animate({left:b},this.speed()/1e3,this.settings.fallbackEasing,a.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(a){this._invalidated[a]=!0},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(b,c){var e=c?this._items.length:this._items.length+this._clones.length;return!a.isNumeric(b)||1>e?d:b=this._clones.length?(b%e+e)%e:Math.max(this.minimum(c),Math.min(this.maximum(c),b))},e.prototype.relative=function(a){return a=this.normalize(a),a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=0,f=this.settings;if(a)return this._items.length-1;if(!f.loop&&f.center)b=this._items.length-1;else if(f.loop||f.center)if(f.loop||f.center)b=this._items.length+f.items;else{if(!f.autoWidth&&!f.merge)throw"Can not detect maximum absolute position.";for(revert=f.rtl?1:-1,c=this.$stage.width()-this.$element.width();(d=this.coordinates(e))&&!(d*revert>=c);)b=++e}else b=this._items.length-f.items;return b},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c=null;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[b-1]||0))/2*(this.settings.rtl?-1:1)):c=this._coordinates[b-1]||0,c)},e.prototype.duration=function(a,b,c){return Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(c,d){if(this.settings.loop){var e=c-this.relative(this.current()),f=this.current(),g=this.current(),h=this.current()+e,i=0>g-h?!0:!1,j=this._clones.length+this._items.length;h<this.settings.items&&i===!1?(f=g+this._items.length,this.reset(f)):h>=j-this.settings.items&&i===!0&&(f=g-this._items.length,this.reset(f)),b.clearTimeout(this.e._goToLoop),this.e._goToLoop=b.setTimeout(a.proxy(function(){this.speed(this.duration(this.current(),f+e,d)),this.current(f+e),this.update()},this),30)}else this.speed(this.duration(this.current(),c,d)),this.current(c),this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.transitionEnd=function(a){return a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},e.prototype.viewport=function(){var d;if(this.options.responsiveBaseElement!==b)d=a(this.options.responsiveBaseElement).width();else if(b.innerWidth)d=b.innerWidth;else{if(!c.documentElement||!c.documentElement.clientWidth)throw"Can not detect viewport width.";d=c.documentElement.clientWidth}return d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(a.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(a,b){b=b===d?this._items.length:this.normalize(b,!0),this.trigger("add",{content:a,position:b}),0===this._items.length||b===this._items.length?(this.$stage.append(a),this._items.push(a),this._mergers.push(1*a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[b].before(a),this._items.splice(b,0,a),this._mergers.splice(b,0,1*a.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:a,position:b})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.addTriggerableEvents=function(){var b=a.proxy(function(b,c){return a.proxy(function(a){a.relatedTarget!==this&&(this.suppress([c]),b.apply(this,[].slice.call(arguments,1)),this.release([c]))},this)},this);a.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},a.proxy(function(a,c){this.$element.on(a+".owl.carousel",b(c,a+".owl.carousel"))},this))},e.prototype.watchVisibility=function(){function c(a){return a.offsetWidth>0&&a.offsetHeight>0}function d(){c(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),b.clearInterval(this.e._checkVisibile))}c(this.$element.get(0))||(this.$element.addClass("owl-hidden"),b.clearInterval(this.e._checkVisibile),this.e._checkVisibile=b.setInterval(a.proxy(d,this),500))},e.prototype.preloadAutoWidthImages=function(b){var c,d,e,f;c=0,d=this,b.each(function(g,h){e=a(h),f=new Image,f.onload=function(){c++,e.attr("src",f.src),e.css("opacity",1),c>=b.length&&(d.state.imagesLoaded=!0,d.initialize())},f.src=e.attr("src")||e.attr("data-src")||e.attr("data-src-retina")})},e.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&a(b).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var d in this._plugins)this._plugins[d].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),a(c).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:c>a;case">":return d?c>a:a>c;case">=":return d?c>=a:a>=c;case"<=":return d?a>=c:c>=a}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d){var e={item:{count:this._items.length,index:this.current()}},f=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),g=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},e,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(g)}),this.$element.trigger(g),this.settings&&"function"==typeof this.settings[f]&&this.settings[f].apply(this,g)),g},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.browserSupport=function(){if(this.support3d=j(),this.support3d){this.transformVendor=i();var a=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=a[h()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=b.orientation},a.fn.owlCarousel=function(b){return this.each(function(){a(this).data("owlCarousel")||a(this).data("owlCarousel",new e(this,b))})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b){var c=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,d=c.center&&Math.ceil(c.items/2)||c.items,e=c.center&&-1*d||0,f=(b.property&&b.property.value||this._core.current())+e,g=this._core.clones().length,h=a.proxy(function(a,b){this.load(b)},this);e++<d;)this.load(g/2+this._core.relative(f)),g&&a.each(this._core.clones(this._core.relative(f++)),h)},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this._core.$element.on(this._handlers)};c.Defaults={lazyLoad:!1},c.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":"url("+g+")",opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},c.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=c}(window.Zepto||window.jQuery,window,document),function(a){var b=function(c){this._core=c,this._handlers={"initialized.owl.carousel":a.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this._core.$element.on(this._handlers)};b.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},b.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},b.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=b}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this._core=b,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":a.proxy(function(a){this._core.settings.video&&!this.isInFullScreen()&&a.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":a.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))},this)},this._core.options=a.extend({},d.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};d.Defaults={video:!1,videoHeight:!1,videoWidth:!1},d.prototype.fetch=function(a,b){var c=a.attr("data-vimeo-id")?"vimeo":"youtube",d=a.attr("data-vimeo-id")||a.attr("data-youtube-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else{if(!(d[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");c="vimeo"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},d.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};return b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length?(l(h.attr(i)),h.remove(),!1):void("youtube"===c.type?(f="http://img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type&&a.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}))},d.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},d.prototype.play=function(b){this._core.trigger("play",null,"video"),this._playing&&this.stop();var c,d,e=a(b.target||b.srcElement),f=e.closest("."+this._core.settings.itemClass),g=this._videos[f.attr("data-video")],h=g.width||"100%",i=g.height||this._core.$stage.height();"youtube"===g.type?c='<iframe width="'+h+'" height="'+i+'" src="http://www.youtube.com/embed/'+g.id+"?autoplay=1&v="+g.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===g.type&&(c='<iframe src="http://player.vimeo.com/video/'+g.id+'?autoplay=1" width="'+h+'" height="'+i+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),f.addClass("owl-video-playing"),this._playing=f,d=a('<div style="height:'+i+"px; width:"+h+'px" class="owl-video-frame">'+c+"</div>"),e.after(d)},d.prototype.isInFullScreen=function(){var d=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return d&&a(d).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),d&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==b.orientation?(this._core.state.orientation=b.orientation,!1):!0},d.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=d}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){this.swapping="translated"==a.type},this),"translate.owl.carousel":a.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c)),f&&e.addClass("animated owl-animated-in").addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",c))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this.core=b,this.core.options=a.extend({},d.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":a.proxy(function(){this.autoplay()
},this),"play.owl.autoplay":a.proxy(function(a,b,c){this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(b.clearInterval(this.interval),this.interval=b.setInterval(a.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):b.clearInterval(this.interval)},d.prototype.play=function(){return c.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void b.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},d.prototype.stop=function(){b.clearInterval(this.interval)},d.prototype.pause=function(){b.clearInterval(this.interval)},d.prototype.destroy=function(){var a,c;b.clearInterval(this.interval);for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,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":a.proxy(function(b){this._core.settings.dotsData&&this._templates.push(a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":a.proxy(function(b){this._core.settings.dotsData&&this._templates.splice(b.position,0,a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":a.proxy(function(a){this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"change.owl.carousel":a.proxy(function(a){if("position"==a.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var b=this._core.current(),c=this._core.maximum(),d=this._core.minimum();a.data=a.property.value>c?b>=c?d:c:a.property.value<d?c:a.property.value}},this),"changed.owl.carousel":a.proxy(function(a){"position"==a.property.name&&this.draw()},this),"refreshed.owl.carousel":a.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this.$element.on(this._handlers)};b.Defaults={nav:!1,navRewind:!0,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,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},b.prototype.initialize=function(){var b,c,d=this._core.settings;d.dotsData||(this._templates=[a("<div>").addClass(d.dotClass).append(a("<span>")).prop("outerHTML")]),d.navContainer&&d.dotsContainer||(this._controls.$container=a("<div>").addClass(d.controlsClass).appendTo(this.$element)),this._controls.$indicators=d.dotsContainer?a(d.dotsContainer):a("<div>").hide().addClass(d.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",a.proxy(function(b){var c=a(b.target).parent().is(this._controls.$indicators)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(c,d.dotsSpeed)},this)),b=d.navContainer?a(d.navContainer):a("<div>").addClass(d.navContainerClass).prependTo(this._controls.$container),this._controls.$next=a("<"+d.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(d.navClass[0]).html(d.navText[0]).hide().prependTo(b).on("click",a.proxy(function(){this.prev(d.navSpeed)},this)),this._controls.$next.addClass(d.navClass[1]).html(d.navText[1]).hide().appendTo(b).on("click",a.proxy(function(){this.next(d.navSpeed)},this));for(c in this._overrides)this._core[c]=a.proxy(this[c],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.settings,e=this._core.clones().length/2,f=e+this._core.items().length,g=d.center||d.autoWidth||d.dotData?1:d.dotsEach||d.items;if("page"!==d.slideBy&&(d.slideBy=Math.min(d.slideBy,d.items)),d.dots||"page"==d.slideBy)for(this._pages=[],a=e,b=0,c=0;f>a;a++)(b>=g||0===b)&&(this._pages.push({start:a-e,end:a-e+g-1}),b=0,++c),b+=this._core.mergers(this._core.relative(a))},b.prototype.draw=function(){var b,c,d="",e=this._core.settings,f=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!e.nav||e.loop||e.navRewind||(this._controls.$previous.toggleClass("disabled",0>=f),this._controls.$next.toggleClass("disabled",f>=this._core.maximum())),this._controls.$previous.toggle(e.nav),this._controls.$next.toggle(e.nav),e.dots){if(b=this._pages.length-this._controls.$indicators.children().length,e.dotData&&0!==b){for(c=0;c<this._controls.$indicators.children().length;c++)d+=this._templates[this._core.relative(c)];this._controls.$indicators.html(d)}else b>0?(d=new Array(b+1).join(this._templates[0]),this._controls.$indicators.append(d)):0>b&&this._controls.$indicators.children().slice(b).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(a.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(e.dots)},b.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotData?1:c.dotsEach||c.items)}},b.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,function(a){return a.start<=b&&a.end>=b}).pop()},b.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},b.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},b.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},b.prototype.to=function(b,c,d){var e;d?a.proxy(this._overrides.to,this._core)(b,c):(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c))},a.fn.owlCarousel.Constructor.Plugins.Navigation=b}(window.Zepto||window.jQuery,window,document),function(a,b){"use strict";var c=function(d){this._core=d,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(){"URLHash"==this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){var c=a(b.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[c]=b.content},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(){var a=b.location.hash.substring(1),c=this._core.$stage.children(),d=this._hashes[a]&&c.index(this._hashes[a])||0;return a?void this._core.to(d,!1,!0):!1},this))};c.Defaults={URLhashListener:!1},c.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=c}(window.Zepto||window.jQuery,window,document);
jQuery(document).ready(function($){
kale_responsive_videos();
kale_jump_to_recipe();
$("#toggle-main_search").on("click", function (event){
var x=setTimeout('jQuery(".main_search .form-control").focus()', 700);
});
kale_fluidBox();
$(window).load(function(){kale_fluidBox();})
$(window).resize(function(){kale_fluidBox();});
$('body').addClass('js');
if($('.sidebar-column .instagram-pics').length>0){
$(".sidebar-column .instagram-pics").owlCarousel({
lazyContent:true,
loop:true,
nav:false,
dots:false,
autoplay:true,
items:1,
dots:false,
});
}
$("select.form-control").selectpicker();
$(".header-row-1-toggle").click(function(){
$(this).toggleClass('open');
$('.header-row-1').toggleClass('open');
return false;
});
$('body').on('click', '.checkbox label,.checkbox-inline label,.radio label,.radio-inline label', function (){
kale_setupLabel();
});
if($(".sidebar-sticky").length){
var offset=$('.sidebar-sticky').offset();
$(window).scroll(function(e){
if(window.scrollY >=offset.top){
$('.sidebar-sticky').addClass('sidebar-sticky-fixed');
}else{
$('.sidebar-sticky').removeClass('sidebar-sticky-fixed');
}});
}
$('.search-trigger').on('click', function(){
$(this).siblings('form').find('.search-field').toggleClass('visible').focus();
});
if($('.header-row-1 .widget_nav_menu li').hasClass('menu-item-has-children') ){
$('.header-row-1 .menu-item-has-children').addClass('dropdown')
.find('> a').addClass('dropdown-toggle has-submenu')
.append('<span class="caret 0"></span>');
}});
jQuery(document).ready(function($){
if($("#main_menu").hasClass("stick-to-top")){
var admin_bar=$('body').hasClass('admin-bar') ? 32:0;
var $header_3=$('.header .header-row-3');
var $nav_bar=$header_3.find('.navbar');
var nav_off_top=$nav_bar.offset().top - admin_bar;
var nav_height=$nav_bar.height();
$(window).resize(function(){
nav_off_top=$nav_bar.offset().top;
nav_height=$nav_bar.height();
});
$(window).scroll(function(){
var w_scroll=$(window).scrollTop();
if(w_scroll>=nav_off_top&&!$nav_bar.hasClass('navbar-fixed-top')){
$header_3.find('.stick-to-top').addClass('navbar-fixed-top container');
$header_3.css('height',nav_height);
}else if(w_scroll<nav_off_top&&$nav_bar.hasClass('navbar-fixed-top')){
$header_3.find('.stick-to-top').removeClass('navbar-fixed-top container');
$header_3.css('height','auto');
}});
}});
function kale_setupLabel(){
if(jQuery('.checkbox,.checkbox-inline').length){
jQuery('.checkbox label,.checkbox-inline label').each(function(){
jQuery(this).removeClass('on');
});
jQuery('.checkbox input:checked,.checkbox-inline input:checked').each(function(){
jQuery(this).parent('label').addClass('on');
});
};
if(jQuery('.radio,.radio-inline').length){
jQuery('.radio label,.radio-inline label').each(function(){
jQuery(this).removeClass('on');
});
jQuery('.radio input:checked,.radio-inline input:checked').each(function(){
jQuery(this).parent('label').addClass('on');
});
};};
function kale_fluidBox(){
if(jQuery('[data-fluid]').length>0){
jQuery('[data-fluid]').each(function(){
var data=jQuery(this).attr('data-fluid');
var dataFloat=jQuery(this).attr('data-float');
var _container=jQuery(this);
var dataSplit=data.split(',');
if(_container.hasClass('carousel')){
_container.find('.item').addClass('show');
}
for(i=0;i<dataSplit.length;i++){
if(dataSplit[i]!=''){
if(jQuery(dataSplit[i],_container).length>0){
jQuery(dataSplit[i],_container).css('min-height','inherit');
if(dataFloat=='true'&&jQuery(dataSplit[i],_container).parent().css('float')!='none'){
var newH=0;
if(jQuery(dataSplit[i],_container).length>0){
jQuery(dataSplit[i],_container).each(function(){
var thisH=jQuery(this).innerHeight();
if(newH<thisH) newH=thisH;
});
jQuery(dataSplit[i],_container).css('min-height',newH);
}}else if(dataFloat!='true'){
var newH=0;
if(jQuery(dataSplit[i],_container).length>0){
jQuery(dataSplit[i],_container).each(function(){
var thisH=jQuery(this).innerHeight();
if(newH<thisH) newH=thisH;
});
jQuery(dataSplit[i],_container).css('min-height',newH);
}}
}}
}
if(_container.hasClass('carousel')){
_container.find('.item').removeClass('show');
}});
}}
function kale_responsive_videos(){
YOUTUBE_VIDEO_MARGIN=5;
jQuery('.single-content iframe, .page-content iframe').each(function(index,item){
if(jQuery(this)[0].hasAttribute("src")&&jQuery(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)){
var w=jQuery(item).attr('width');
var h=jQuery(item).attr('height');
var ar=h/w*100;
ar=ar.toFixed(2);
jQuery(item).css('position','absolute');
jQuery(item).css('top','0');
jQuery(item).css('left','0');
jQuery(item).css('width','100%');
jQuery(item).css('height','100%');
jQuery(item).css('max-width',w+'px');
jQuery(item).css('max-height', h+'px');
jQuery(item).wrap('<div style="max-width:'+w+'px;margin:0 auto; padding:'+YOUTUBE_VIDEO_MARGIN+'px;" />');
jQuery(item).wrap('<div style="position: relative;padding-bottom: '+ar+'%; height: 0; overflow: hidden;" />');
}});
}
function kale_jump_to_recipe(){
jQuery('.jump-to-recipe a').on('click',function (e){
e.preventDefault();
var target=this.hash;
var $target=jQuery(target);
jQuery('html, body').stop().animate({
'scrollTop': $target.offset().top
}, 900, 'swing', function (){
window.location.hash=target;
});
});
};