var EleCustomSkinSlider=elementorModules.frontend.handlers.Base.extend({
getSkinPrefix: function getSkinPrefix(){
return 'custom_';
},
getDefaultSettings: function getDefaultSettings(){
return {
selectors: {
carousel: '.swiper-container',
slideContent: '.swiper-slide'
}};},
getDefaultElements: function getDefaultElements(){
var selectors=this.getSettings('selectors');
var elements={
$carousel: this.$element.find(selectors.carousel)
};
elements.$swiperSlides=elements.$carousel.find(selectors.slideContent);
return elements;
},
getSlidesCount: function getSlidesCount(){
return this.elements.$swiperSlides.length;
},
getSwiperSettings: function getSwiperSettings(){
const elementSettings=this.getElementSettings(),
slidesToShow=+elementSettings[this.getSkinPrefix() + 'slides_to_show']||3,
isSingleSlide=1===slidesToShow,
elementorBreakpoints=elementorFrontend.config.responsive.activeBreakpoints,
defaultSlidesToShowMap={
mobile: 1,
tablet: isSingleSlide ? 1:2
};
const swiperOptions={
slidesPerView: slidesToShow,
loop: 'yes'===elementSettings[this.getSkinPrefix() + 'infinite'],
speed: elementSettings[this.getSkinPrefix() + 'speed'],
handleElementorBreakpoints: true
};
swiperOptions.breakpoints={};
let lastBreakpointSlidesToShowValue=slidesToShow;
Object.keys(elementorBreakpoints).reverse().forEach(breakpointName=> {
const defaultSlidesToShow=defaultSlidesToShowMap[breakpointName] ? defaultSlidesToShowMap[breakpointName]:lastBreakpointSlidesToShowValue;
swiperOptions.breakpoints[elementorBreakpoints[breakpointName].value]={
slidesPerView: +elementSettings[this.getSkinPrefix() + 'slides_to_show_' + breakpointName]||defaultSlidesToShow,
slidesPerGroup: +elementSettings[this.getSkinPrefix() + 'slides_to_scroll_' + breakpointName]||1
};
lastBreakpointSlidesToShowValue=+elementSettings[this.getSkinPrefix() + 'slides_to_show_' + breakpointName]||defaultSlidesToShow;
});
if('yes'===elementSettings[this.getSkinPrefix() + 'autoplay']){
swiperOptions.autoplay={
delay: elementSettings[this.getSkinPrefix() + 'autoplay_speed'],
disableOnInteraction: 'yes'===elementSettings[this.getSkinPrefix() + 'pause_on_interaction']
};}
if(isSingleSlide){
swiperOptions.effect=elementSettings[this.getSkinPrefix() + 'effect'];
if('fade'===elementSettings[this.getSkinPrefix() + 'effect']){
swiperOptions.fadeEffect={
crossFade: true
};}}else{
swiperOptions.slidesPerGroup=+elementSettings[this.getSkinPrefix() + 'slides_to_scroll']||1;
}
if(elementSettings[this.getSkinPrefix() + 'slide_gap']['size']){
swiperOptions.spaceBetween=elementSettings[this.getSkinPrefix() + 'slide_gap']['size'];
}
const showArrows='arrows'===elementSettings[this.getSkinPrefix() + 'navigation']||'both'===elementSettings[this.getSkinPrefix() + 'navigation'],
showDots='dots'===elementSettings[this.getSkinPrefix() + 'navigation']||'both'===elementSettings[this.getSkinPrefix() + 'navigation'];
if(showArrows){
swiperOptions.navigation={
prevEl: '.elementor-swiper-button-prev',
nextEl: '.elementor-swiper-button-next'
};}
if(showDots){
swiperOptions.pagination={
el: '.swiper-pagination',
type: 'bullets',
clickable: true
};}
return swiperOptions;
},
getSwiperSettingss: function getSwiperSettingss(){
var elementSettings=this.getElementSettings(),
slidesToShow=+elementSettings[this.getSkinPrefix() + 'slides_to_show']||3,
isSingleSlide=1===slidesToShow,
defaultLGDevicesSlidesCount=isSingleSlide ? 1:2,
elementorBreakpoints=elementorFrontend.config.responsive.activeBreakpoints;
var swiperOptions={
slidesPerView: slidesToShow,
loop: 'yes'===elementSettings[this.getSkinPrefix() + 'infinite'],
speed: elementSettings[this.getSkinPrefix() + 'speed'],
handleElementorBreakpoints: true
};
swiperOptions.breakpoints={};
swiperOptions.breakpoints[elementorBreakpoints.mobile.value]={
slidesPerView: +elementSettings[this.getSkinPrefix() + 'slides_to_show_mobile']||1,
slidesPerGroup: +elementSettings[this.getSkinPrefix() + 'slides_to_scroll_mobile']||1
};
swiperOptions.breakpoints[elementorBreakpoints.tablet.value]={
slidesPerView: +elementSettings[this.getSkinPrefix() + 'slides_to_show_tablet']||defaultLGDevicesSlidesCount,
slidesPerGroup: +elementSettings[this.getSkinPrefix() + 'slides_to_scroll_tablet']||defaultLGDevicesSlidesCount
};
if(!this.isEdit&&'yes'===elementSettings[this.getSkinPrefix() + 'autoplay']){
swiperOptions.autoplay={
delay: elementSettings[this.getSkinPrefix() + 'autoplay_speed'],
pause_on_hover:'yes',
disableOnInteraction: true,
pauseOnMouseEnter: true
};}
if(true===swiperOptions.loop){
swiperOptions.loopedSlides=this.getSlidesCount();
}
if(isSingleSlide){
swiperOptions.effect=elementSettings[this.getSkinPrefix() + 'effect'];
}else{
swiperOptions.slidesPerGroup=+elementSettings[this.getSkinPrefix() + 'slides_to_scroll']||defaultLGDevicesSlidesCount;
}
if(elementSettings[this.getSkinPrefix() + 'slide_gap'].size){
swiperOptions.spaceBetween=elementSettings[this.getSkinPrefix() + 'slide_gap'].size;
}
var showArrows='arrows'===elementSettings[this.getSkinPrefix() + 'navigation']||'both'===elementSettings[this.getSkinPrefix() + 'navigation'],
showDots='dots'===elementSettings[this.getSkinPrefix() + 'navigation']||'both'===elementSettings[this.getSkinPrefix() + 'navigation'];
if(showArrows){
swiperOptions.navigation={
prevEl: '.elementor-swiper-button-prev',
nextEl: '.elementor-swiper-button-next'
};}
if(showDots){
swiperOptions.pagination={
el: '.swiper-pagination',
type: 'bullets',
clickable: true
};}
return swiperOptions;
},
updateSpaceBetween: function updateSpaceBetween(){
this.swiper.params.spaceBetween=this.getElementSettings(this.getSkinPrefix() + 'slide_gap')||0;
this.swiper.update();
},
isSliderEnabled: function isSliderEnabled(){
return !!this.getElementSettings(this.getSkinPrefix() + 'post_slider');
},
togglePauseOnHover: function togglePauseOnHover(toggleOn){
if(toggleOn){
this.elements.$carousel.on({
mouseenter: ()=> {
},
mouseleave: ()=> {
}});
}else{
this.elements.$carousel.off('mouseenter mouseleave');
}},
run: function run(){
if(!this.isSliderEnabled()) return;
if(!this.elements.$carousel.length){
return;
}
const Swiper=elementorFrontend.utils.swiper;
this.swiper=new Swiper(this.elements.$carousel, this.getSwiperSettings());
this.elements.$carousel.data('swiper', this.swiper);
if('yes'===this.getElementSettings(this.getSkinPrefix() + 'pause_on_hover')){
this.togglePauseOnHover(true);
}
ECScarousel=this.elements.$carousel;
ECSswiperSettings=this.getSwiperSettings();
ECS_add_action("swiper", function(){
ECSswiper=new Swiper(ECScarousel, ECSswiperSettings);
});
},
onInit: function onInit(...arguments){
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
this.run();
},
onElementChange: function onElementChange(propertyName){
if(0===propertyName.indexOf(this.getSkinPrefix() + 'slide_gap')){
this.updateSpaceBetween();
}},
onEditSettingsChange: function onEditSettingsChange(propertyName){
if(!this.isSliderEnabled()) return;
if('activeItemIndex'===propertyName){
}}
}
);
var EleCustomSkinSliderArchive=EleCustomSkinSlider.extend({
getSkinPrefix: function getSkinPrefix(){
return 'archive_custom_';
}});
jQuery(window).on('elementor/frontend/init', ()=> {
const addHandler=($element)=> {
elementorFrontend.elementsHandler.addHandler(EleCustomSkinSlider, {
$element,
});
};
elementorFrontend.hooks.addAction('frontend/element_ready/posts.custom', addHandler);
const addHandlerArchive=($element)=> {
elementorFrontend.elementsHandler.addHandler(EleCustomSkinSliderArchive, {
$element,
});
};
elementorFrontend.hooks.addAction('frontend/element_ready/archive-posts.archive_custom', addHandlerArchive);
});
function ECS_reset_masonry(element){
element.children(".ecs-post-loop").css('margin-top', '');
}
var EleCustomSkinMasonry=elementorModules.frontend.handlers.Base.extend({
getSkinPrefix: function getSkinPrefix(){
return 'custom_';
},
bindEvents: function bindEvents(){
var cid=this.getModelCID();
elementorFrontend.addListenerOnce(cid, 'resize', this.onWindowResize);
},
getClosureMethodsNames: function getClosureMethodsNames(){
return elementorModules.frontend.handlers.Base.prototype.getClosureMethodsNames.apply(this, arguments).concat(['fitImages', 'onWindowResize', 'runMasonry']);
},
getDefaultSettings: function getDefaultSettings(){
return {
classes: {
fitHeight: 'elementor-fit-height',
hasItemRatio: 'elementor-has-item-ratio'
},
selectors: {
postsContainer: '.elementor-posts-container',
post: '.elementor-post',
postThumbnail: '.elementor-post__thumbnail',
postThumbnailImage: '.elementor-post__thumbnail img'
}};},
getDefaultElements: function getDefaultElements(){
var selectors=this.getSettings('selectors');
return {
$postsContainer: this.$element.find(selectors.postsContainer),
$posts: this.$element.find(selectors.post)
};},
fitImage: function fitImage($post){
var settings=this.getSettings(),
$imageParent=$post.find(settings.selectors.postThumbnail),
$image=$imageParent.find('img'),
image=$image[0];
if(!image){
return;
}
var imageParentRatio=$imageParent.outerHeight() / $imageParent.outerWidth(),
imageRatio=image.naturalHeight / image.naturalWidth;
$imageParent.toggleClass(settings.classes.fitHeight, imageRatio < imageParentRatio);
},
fitImages: function fitImages(){
var $=jQuery,
self=this,
itemRatio=getComputedStyle(this.$element[0], ':after').content,
settings=this.getSettings();
this.elements.$postsContainer.toggleClass(settings.classes.hasItemRatio, !!itemRatio.match(/\d/));
if(self.isMasonryEnabled()){
return;
}
this.elements.$posts.each(function(){
var $post=$(this),
$image=$post.find(settings.selectors.postThumbnailImage);
self.fitImage($post);
$image.on('load', function(){
self.fitImage($post);
});
});
},
setColsCountSettings: function setColsCountSettings(){
var currentDeviceMode=elementorFrontend.getCurrentDeviceMode(),
settings=this.getElementSettings(),
skinPrefix=this.getSkinPrefix(),
colsCount;
switch (currentDeviceMode){
case 'mobile':
colsCount=settings[skinPrefix + 'columns_mobile'];
break;
case 'tablet':
colsCount=settings[skinPrefix + 'columns_tablet'];
break;
default:
colsCount=settings[skinPrefix + 'columns'];
}
this.setSettings('colsCount', colsCount);
},
isMasonryEnabled: function isMasonryEnabled(){
return !!this.getElementSettings(this.getSkinPrefix() + 'masonrys');
},
initMasonry: function initMasonry(){
imagesLoaded(this.elements.$posts, this.runMasonry);
},
runMasonry: function runMasonry(){
var elements=this.elements;
elements.$posts.css({
marginTop: '',
transitionDuration: ''
});
this.setColsCountSettings();
var colsCount=this.getSettings('colsCount'),
hasMasonry=this.isMasonryEnabled();
elements.$postsContainer.toggleClass('elementor-posts-masonry', hasMasonry);
if(!hasMasonry){
elements.$postsContainer.height('');
return;
}
var verticalSpaceBetween=this.getElementSettings(this.getSkinPrefix() + 'row_gap.size');
if(''===this.getSkinPrefix()&&''===verticalSpaceBetween){
verticalSpaceBetween=this.getElementSettings(this.getSkinPrefix() + 'item_gap.size');
}
var masonry=new elementorModules.utils.Masonry({
container: elements.$postsContainer,
items: elements.$postsContainer.children(".ecs-post-loop"),
columnsCount: this.getSettings('colsCount'),
verticalSpaceBetween: verticalSpaceBetween
});
masonry.run();
ECS_Columns_Count=this.getSettings('colsCount');
ECS_add_action("ajax", function(){
ECS_reset_masonry(elements.$postsContainer);
mymasonry=new elementorModules.utils.Masonry({
container: elements.$postsContainer,
items: elements.$postsContainer.children(".ecs-post-loop"),
columnsCount: ECS_Columns_Count,
verticalSpaceBetween: verticalSpaceBetween
});
mymasonry.run();
});
},
run: function run(){
setTimeout(this.fitImages, 0);
this.initMasonry();
},
onInit: function onInit(){
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
this.bindEvents();
this.run();
},
onWindowResize: function onWindowResize(){
this.fitImages();
ECS_reset_masonry(this.elements.$postsContainer);
this.runMasonry();
},
onElementChange: function onElementChange(){
this.fitImages();
setTimeout(this.runMasonry);
}});
var EleCustomSkinMasonryArchive=EleCustomSkinMasonry.extend({
getSkinPrefix: function getSkinPrefix(){
return 'archive_custom_';
}});
jQuery(window).on('elementor/frontend/init', ()=> {
const addHandler=($element)=> {
elementorFrontend.elementsHandler.addHandler(EleCustomSkinMasonry, {
$element,
});
};
elementorFrontend.hooks.addAction('frontend/element_ready/posts.custom', addHandler);
const addHandlerArchive=($element)=> {
elementorFrontend.elementsHandler.addHandler(EleCustomSkinMasonryArchive, {
$element,
});
};
elementorFrontend.hooks.addAction('frontend/element_ready/archive-posts.archive_custom', addHandlerArchive);
});
function EleCustomSkinItemLink(){
jQuery(".ecs-link-wrapper")
.on("click", function (event){
loc=jQuery(this).attr("data-href");
aTarget=jQuery(this).attr("data-target");
if(!jQuery(event.target).closest(".elementor-swiper-button, .swiper-pagination, .ecs-ignore-link"
).length
){
if(aTarget=="_blank"||event.ctrlKey||event.metaKey){
window.open(loc);
}else{
window.location=loc;
}}
})
.on("click", ".ecs-ignore-link", function (e){
if(!jQuery(e.target).find('.elementor-button-wrapper')){
e.stopPropagation();
}});
}
/*function EleCustomSkinItemLink(){
jQuery(".ecs-link-wrapper").click(function(event){
loc=jQuery(this).attr("data-href");
aTarget=jQuery(this).attr("data-target");
if(!jQuery(event.target).closest('.elementor-swiper-button, .swiper-pagination, .ecs-ignore-link').length){
if(aTarget=="_blank"||event.ctrlKey||event.metaKey){
window.open(loc);
}else{
window.location=loc;
}}
return false;
});
}*/
jQuery(document).ready(function(){
EleCustomSkinItemLink();
ECS_add_action("ajax", function(){EleCustomSkinItemLink()});
});
jQuery.fn.inView=function(){
if(!this.length)
return false;
var rect=this.get(0).getBoundingClientRect();
var loadOffset=0;
return (
rect.top >=0 &&
rect.left >=0 &&
rect.bottom - loadOffset <=(window.innerHeight||document.documentElement.clientHeight) &&
rect.right <=(window.innerWidth||document.documentElement.clientWidth)
);
};
function ECScheckInView(){
jQuery('.ecs-lazyload').each(function(){
if(jQuery(this).inView()){
id=jQuery(this).attr("data-targetid");
jQuery(this).removeClass("animation-hidden");
ECS_load_next_page(id);
}});
}
jQuery(function($){
if(!$("body").hasClass("elementor-editor-active")&&!$("body").hasClass("elementor-editor-preview") ){
ECScheckInView();
$(window).scroll(function(){
if(canBeLoaded==true){
ECScheckInView();
}});
}});
(function(){
"use strict";var wp;(wp||={}).hooks=(()=>{var v=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var w=(e,n)=>{for(var s in n)v(e,s,{get:n[s],enumerable:!0})},D=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of g(n))!I.call(e,t)&&t!==s&&v(e,t,{get:()=>n[t],enumerable:!(r=S(n,t))||r.enumerable});return e};var T=e=>D(v({},"__esModule",{value:!0}),e);var le={};w(le,{actions:()=>ae,addAction:()=>J,addFilter:()=>K,applyFilters:()=>N,applyFiltersAsync:()=>ee,createHooks:()=>F,currentAction:()=>te,currentFilter:()=>re,defaultHooks:()=>b,didAction:()=>ie,didFilter:()=>se,doAction:()=>X,doActionAsync:()=>Y,doingAction:()=>ne,doingFilter:()=>oe,filters:()=>ce,hasAction:()=>P,hasFilter:()=>Q,removeAction:()=>L,removeAllActions:()=>U,removeAllFilters:()=>W,removeFilter:()=>M});function z(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var m=z;function E(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var f=E;function Z(e,n){return function(r,t,a,i=10){let c=e[n];if(!f(r)||!m(t))return;if(typeof a!="function"){console.error("The hook callback must be a function.");return}if(typeof i!="number"){console.error("If specified, the hook priority must be a number.");return}let l={callback:a,priority:i,namespace:t};if(c[r]){let o=c[r].handlers,d;for(d=o.length;d>0&&!(i>=o[d-1].priority);d--);d===o.length?o[d]=l:o.splice(d,0,l),c.__current.forEach(h=>{h.name===r&&h.currentIndex>=d&&h.currentIndex++})}else c[r]={handlers:[l],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,t,a,i)}}var H=Z;function C(e,n,s=!1){return function(t,a){let i=e[n];if(!f(t)||!s&&!m(a))return;if(!i[t])return 0;let c=0;if(s)c=i[t].handlers.length,i[t]={runs:i[t].runs,handlers:[]};else{let l=i[t].handlers;for(let o=l.length-1;o>=0;o--)l[o].namespace===a&&(l.splice(o,1),c++,i.__current.forEach(d=>{d.name===t&&d.currentIndex>=o&&d.currentIndex--}))}return t!=="hookRemoved"&&e.doAction("hookRemoved",t,a),c}}var p=C;function O(e,n){return function(r,t){let a=e[n];return typeof t<"u"?r in a&&a[r].handlers.some(i=>i.namespace===t):r in a}}var _=O;function j(e,n,s,r){return function(a,...i){let c=e[n];c[a]||(c[a]={handlers:[],runs:0}),c[a].runs++;let l=c[a].handlers;if(!l||!l.length)return s?i[0]:void 0;let o={name:a,currentIndex:0};async function d(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=await l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}function h(){try{c.__current.add(o);let u=s?i[0]:void 0;for(;o.currentIndex<l.length;)u=l[o.currentIndex].callback.apply(null,i),s&&(i[0]=u),o.currentIndex++;return s?u:void 0}finally{c.__current.delete(o)}}return(r?d:h)()}}var A=j;function $(e,n){return function(){let r=e[n];return Array.from(r.__current).at(-1)?.name??null}}var y=$;function V(e,n){return function(r){let t=e[n];return typeof r>"u"?t.__current.size>0:Array.from(t.__current).some(a=>a.name===r)}}var k=V;function q(e,n){return function(r){let t=e[n];if(f(r))return t[r]&&t[r].runs?t[r].runs:0}}var x=q;var B=class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=H(this,"actions"),this.addFilter=H(this,"filters"),this.removeAction=p(this,"actions"),this.removeFilter=p(this,"filters"),this.hasAction=_(this,"actions"),this.hasFilter=_(this,"filters"),this.removeAllActions=p(this,"actions",!0),this.removeAllFilters=p(this,"filters",!0),this.doAction=A(this,"actions",!1,!1),this.doActionAsync=A(this,"actions",!1,!0),this.applyFilters=A(this,"filters",!0,!1),this.applyFiltersAsync=A(this,"filters",!0,!0),this.currentAction=y(this,"actions"),this.currentFilter=y(this,"filters"),this.doingAction=k(this,"actions"),this.doingFilter=k(this,"filters"),this.didAction=x(this,"actions"),this.didFilter=x(this,"filters")}};function G(){return new B}var F=G;var b=F(),{addAction:J,addFilter:K,removeAction:L,removeFilter:M,hasAction:P,hasFilter:Q,removeAllActions:U,removeAllFilters:W,doAction:X,doActionAsync:Y,applyFilters:N,applyFiltersAsync:ee,currentAction:te,currentFilter:re,doingAction:ne,doingFilter:oe,didAction:ie,didFilter:se,actions:ae,filters:ce}=b;return T(le);})();
(window.wp||={}).hooks=wp.hooks;
})();
(function(){
"use strict";var wp;(wp||={}).i18n=(()=>{var nt=Object.create;var L=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var it=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty;var ft=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),ot=(t,r)=>{for(var e in r)L(t,e,{get:r[e],enumerable:!0})},O=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of it(r))!lt.call(t,u)&&u!==e&&L(t,u,{get:()=>r[u],enumerable:!(n=at(r,u))||n.enumerable});return t};var st=(t,r,e)=>(e=t!=null?nt(ut(t)):{},O(r||!t||!t.__esModule?L(e,"default",{value:t,enumerable:!0}):e,t)),pt=t=>O(L({},"__esModule",{value:!0}),t);var $=ft((It,M)=>{M.exports=window.wp.hooks});var yt={};ot(yt,{__:()=>Z,_n:()=>G,_nx:()=>B,_x:()=>q,createI18n:()=>R,defaultI18n:()=>H,getLocaleData:()=>j,hasTranslation:()=>Q,isRTL:()=>J,resetLocaleData:()=>U,setLocaleData:()=>z,sprintf:()=>P,subscribe:()=>X});var ct=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function T(t,...r){var e=0;return Array.isArray(r[0])&&(r=r[0]),t.replace(ct,function(){var n,u,l,o,f;return n=arguments[3],u=arguments[5],l=arguments[7],o=arguments[9],o==="%"?"%":(l==="*"&&(l=r[e],e++),u===void 0?(n===void 0&&(n=e+1),e++,f=r[n-1]):r[0]&&typeof r[0]=="object"&&r[0].hasOwnProperty(u)&&(f=r[0][u]),o==="f"?f=parseFloat(f)||0:o==="d"&&(f=parseInt(f)||0),l!==void 0&&(o==="f"?f=f.toFixed(l):o==="s"&&(f=f.substr(0,l))),f??"")})}function P(t,...r){return T(t,...r)}var D,I,h,N;D={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1};I=["(","?"];h={")":["("],":":["?","?:"]};N=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;function b(t){for(var r=[],e=[],n,u,l,o;n=t.match(N);){for(u=n[0],l=t.substr(0,n.index).trim(),l&&r.push(l);o=e.pop();){if(h[u]){if(h[u][0]===o){u=h[u][1]||u;break}}else if(I.indexOf(o)>=0||D[o]<D[u]){e.push(o);break}r.push(o)}h[u]||e.push(u),t=t.substr(n.index+u.length)}return t=t.trim(),t&&r.push(t),r.concat(e.reverse())}var dt={"!":function(t){return!t},"*":function(t,r){return t*r},"/":function(t,r){return t/r},"%":function(t,r){return t%r},"+":function(t,r){return t+r},"-":function(t,r){return t-r},"<":function(t,r){return t<r},"<=":function(t,r){return t<=r},">":function(t,r){return t>r},">=":function(t,r){return t>=r},"==":function(t,r){return t===r},"!=":function(t,r){return t!==r},"&&":function(t,r){return t&&r},"||":function(t,r){return t||r},"?:":function(t,r,e){if(t)throw r;return e}};function g(t,r){var e=[],n,u,l,o,f,_;for(n=0;n<t.length;n++){if(f=t[n],o=dt[f],o){for(u=o.length,l=Array(u);u--;)l[u]=e.pop();try{_=o.apply(null,l)}catch(v){return v}}else r.hasOwnProperty(f)?_=r[f]:_=+f;e.push(_)}return e[0]}function A(t){var r=b(t);return function(e){return g(r,e)}}function E(t){var r=A(t);return function(e){return+r({n:e})}}var S={contextDelimiter:"",onMissingKey:null};function _t(t){var r,e,n;for(r=t.split(";"),e=0;e<r.length;e++)if(n=r[e].trim(),n.indexOf("plural=")===0)return n.substr(7)}function x(t,r){var e;this.data=t,this.pluralForms={},this.options={};for(e in S)this.options[e]=r!==void 0&&e in r?r[e]:S[e]}x.prototype.getPluralForm=function(t,r){var e=this.pluralForms[t],n,u,l;return e||(n=this.data[t][""],l=n["Plural-Forms"]||n["plural-forms"]||n.plural_forms,typeof l!="function"&&(u=_t(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),l=E(u)),e=this.pluralForms[t]=l),e(r)};x.prototype.dcnpgettext=function(t,r,e,n,u){var l,o,f;return u===void 0?l=0:l=this.getPluralForm(t,u),o=e,r&&(o=r+this.options.contextDelimiter+e),f=this.data[t][o],f&&f[l]?f[l]:(this.options.onMissingKey&&this.options.onMissingKey(e,t),l===0?e:n)};var K={"":{plural_forms(t){return t===1?0:1}}},vt=/^i18n\.(n?gettext|has_translation)(_|$)/,R=(t,r,e)=>{let n=new x({}),u=new Set,l=()=>{u.forEach(a=>a())},o=a=>(u.add(a),()=>u.delete(a)),f=(a="default")=>n.data[a],_=(a,i="default")=>{n.data[i]={...n.data[i],...a},n.data[i][""]={...K[""],...n.data[i]?.[""]},delete n.pluralForms[i]},v=(a,i)=>{_(a,i),l()},V=(a,i="default")=>{n.data[i]={...n.data[i],...a,"":{...K[""],...n.data[i]?.[""],...a?.[""]}},delete n.pluralForms[i],l()},W=(a,i)=>{n.data={},n.pluralForms={},v(a,i)},m=(a="default",i,s,c,d)=>(n.data[a]||_(void 0,a),n.dcnpgettext(a,i,s,c,d)),y=a=>a||"default",Y=(a,i)=>{let s=m(i,void 0,a);return e?(s=e.applyFilters("i18n.gettext",s,a,i),e.applyFilters("i18n.gettext_"+y(i),s,a,i)):s},w=(a,i,s)=>{let c=m(s,i,a);return e?(c=e.applyFilters("i18n.gettext_with_context",c,a,i,s),e.applyFilters("i18n.gettext_with_context_"+y(s),c,a,i,s)):c},k=(a,i,s,c)=>{let d=m(c,void 0,a,i,s);return e?(d=e.applyFilters("i18n.ngettext",d,a,i,s,c),e.applyFilters("i18n.ngettext_"+y(c),d,a,i,s,c)):d},tt=(a,i,s,c,d)=>{let F=m(d,c,a,i,s);return e?(F=e.applyFilters("i18n.ngettext_with_context",F,a,i,s,c,d),e.applyFilters("i18n.ngettext_with_context_"+y(d),F,a,i,s,c,d)):F},rt=()=>w("ltr","text direction")==="rtl",et=(a,i,s)=>{let c=i?i+""+a:a,d=!!n.data?.[s??"default"]?.[c];return e&&(d=e.applyFilters("i18n.has_translation",d,a,i,s),d=e.applyFilters("i18n.has_translation_"+y(s),d,a,i,s)),d};if(t&&v(t,r),e){let a=i=>{vt.test(i)&&l()};e.addAction("hookAdded","core/i18n",a),e.addAction("hookRemoved","core/i18n",a)}return{getLocaleData:f,setLocaleData:v,addLocaleData:V,resetLocaleData:W,subscribe:o,__:Y,_x:w,_n:k,_nx:tt,isRTL:rt,hasTranslation:et}};var C=st($(),1);var p=R(void 0,void 0,C.defaultHooks),H=p,j=p.getLocaleData.bind(p),z=p.setLocaleData.bind(p),U=p.resetLocaleData.bind(p),X=p.subscribe.bind(p),Z=p.__.bind(p),q=p._x.bind(p),G=p._n.bind(p),B=p._nx.bind(p),J=p.isRTL.bind(p),Q=p.hasTranslation.bind(p);return pt(yt);})();
(window.wp||={}).i18n=wp.i18n;
})();