!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@wix/image-kit"),require("react"),require("react-dom"),require("lodash")):"function"==typeof define&&define.amd?define(["imageClientApi","react","reactDOM","lodash"],t):"object"==typeof exports?exports.PostListViewerWidgetNoCss=t(require("@wix/image-kit"),require("react"),require("react-dom"),require("lodash")):e.PostListViewerWidgetNoCss=t(e.__imageClientApi__,e.React,e.ReactDOM,e._)}("undefined"!=typeof self?self:this,((e,t,r,o)=>(()=>{var i,n,a,s,l={58899:e=>{e.exports={TRANSFORM_TYPE_FIT:"fit",TRANSFORM_TYPE_FILL:"fill"}},96648:(e,t,r)=>{var o=r(58899).TRANSFORM_TYPE_FIT,i=r(16252).min,n="png",a=[n,"gif","jpg","jpeg"];function s(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}e.exports={getImageFilename:function(e){return e?e.replace(/^media\//,""):""},getImageUrl:function(e){return function(t,r){var l=void 0===t?{}:t,u=l.file_name,c=l.width,d=l.height,p=void 0===r?{}:r,h=p.maxWidth,g=void 0===h?1e3:h,m=p.maxHeight,f=void 0===m?1e3:m,y=p.quality,v=void 0===y?80:y,b=p.type,S=void 0===b?o:b,P=p.format,w=p.blur,C=void 0===w?0:w,E=p.encode,A=void 0!==E&&E;if(!P){var I=s(u);P=a.includes(I)?I:n}if(u){var _=[i([g,c]),i([f,d])];return"https://"+e+"/media/"+u+"/v1/"+S+"/w_"+_[0]+"%2Ch_"+_[1]+"%2C"+function(e){return e>0?"blur_"+e+"%2C":""}(C)+"al_c"+(v&&P!==n?"%2Cq_"+v:"")+(A?",enc_auto":"")+"/file."+P}return""}},getFileFormat:s}},97377:(e,t,r)=>{var o=r(96648),i=o.getImageFilename,n=o.getImageUrl;e.exports={resizeThumbnail:function(e){return function(t,r,o){return{url:n(e)({file_name:i(t),width:r,height:o},{maxWidth:640,maxHeight:480}),width:640,height:480}}},MAX_THUMBNAIL_WIDTH:640,MAX_THUMBNAIL_HEIGHT:480}},73990:e=>{e.exports=function(e){return function(t){return t&&e?"https://"+e+"/"+t:""}}},44239:(e,t,r)=>{"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i=r(49436);e.exports=o({},i,{BLOG_APP_ID:"14bcded7-0066-7c35-14d7-466cb3f09103",PAYWALL_APP_ID:"27125d23-126b-493a-bd7d-fc37eba188df",PAID_PLANS_APP_ID:"1522827f-c56c-a5c9-2ac9-00f9e6ae12d3",PAID_PLANS_SECTION_ID:"membership_plan_picker_tpa",SITE_MEMBERS_APP_ID:"SiteMembers",MEMBERS_ABOUT_APP_ID:"14dbef06-cc42-5583-32a7-3abd44da4908",SEARCH_APP_ID:"1484cb44-49cd-5b39-9681-75188ab429de",MULTILINGUAL_APP_ID:"14d84998-ae09-1abf-c6fc-3f3cace5bf19"})},49436:e=>{"use strict";e.exports={APP_PROTOCOL:"https",BLOG_SECTION_ID:"blog",BLOG_POST_PAGE_SECTION_ID:"post",MEMBERS_APP_ID:"14ad9202-3dd3-128a-57bd-e5675fd7e313",FORUM_APP_ID:"14724f35-6794-cd1a-0244-25fd138f9242",FORUM_SECTION_ID:"forum",SANTA_MEMBERS_APP_ID:"14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",NOTIFICATIONS_APP_ID:"14f25924-5664-31b2-9568-f9c5ed98c9b1",NOTIFICATIONS_SETTING_APP_ID:"14f25dc5-6af3-5420-9568-f9c5ed98c9b1",MEMBER_INFO_APP_ID:"14cffd81-5215-0a7f-22f8-074b0e2401fb",MEMBER_INFO_SECTION_ID:"member_info",FOLLOWERS_APP_ID:"14ebe801-d78a-daa9-c9e5-0286a891e46f",FORUM_RECENT_POST_WIDGET_ID:"151bd179-dfe6-3ca3-399c-ee97957f93a2",FORUM_APP_PAGE_ID:"1489040e-001f-4631-55a9-2c29b4417126",CHAT_APP_DEF_ID:"14517e1a-3ff0-af98-408e-2bd6953c36a2"}},79597:(e,t,r)=>{"use strict";var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};var n=r(16252),a=n.findKey,s=n.get,l=n.isEmpty,u=n.startsWith,c=r(41450).numberOrZero,d=["IMAGE","wix-draft-plugin-image","wix-draft-plugin-gallery"],p=function(e){return s(e,"content.entityMap",{})},h=function(e){var t=p(e),r=a(t,(function(e){return d.indexOf(e.type)>-1})),o=t[r];return o?function(e){var t=s(e,"data.src");return t&&t.fallback?{file_name:t.file_name||t.fallback,width:c(t.width),height:c(t.height)}:t}(o)||function(e){var t=s(e,"data.items[0]");return t?{file_name:t.url,width:t.metadata?t.metadata.width:0,height:t.metadata?t.metadata.height:0}:{}}(o):void 0},g="VIDEO-EMBED",m="wix-draft-plugin-video",f=[g,m],y=((o={})[g]="data.oembed",o[m]="data.metadata.oembed",o),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=p(e),o=a(r,(function(e){return f.includes(e.type)&&(s(e,y[e.type]+".thumbnail_url")||s(e,"data.src.thumbnail"))})),n=r[o];return n?function(e){if(s(e,y[e.type]+".thumbnail_url")){var t=s(e,y[e.type]);return u(t.thumbnail_url,"//")?i({},t,{thumbnail_url:"https:"+t.thumbnail_url}):t}}(n)||function(e,t){var r=t.resizeThumbnail,o=t.getVideoUrl;if(r&&o){var i=s(e,"data.src"),n=s(e,"data.src.thumbnail");if(n){var a=r(n.pathname,n.width,n.height);return{thumbnail_url:a.url,thumbnail_height:a.height,thumbnail_width:a.width,video_url:o(i.pathname)}}}}(n,t):void 0},b=function(e){var t=s(e,"coverImage",{})||{},r=t.isEnabled,o=void 0===r||r,i=t.isCustom,n=void 0===i||i,a=t.src;return l(a)?{isEnabled:o,isCustom:!1}:{isEnabled:o,imageMetadata:a,isCustom:n}},S=function(e){var t=e.coverImage||{},r=t.isResolved,o=function(e,t){var r={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}(t,["isResolved"]);return!0===r?o:void 0};e.exports={getPostImageCover:h,getPostVideoEmbedCover:v,getCustomCoverImage:b,getPostCover:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=S(e);if(r)return r;var o=b(e),i=o.imageMetadata,n=o.videoMetadata,a=o.isCustom,l=o.isEnabled;return i||(i=h(e)),i||(n=v(e,t)),{shouldRender:Boolean(i||n)&&l,imageMetadata:i,videoMetadata:n,src:i||s(n,"thumbnail_url"),isEnabled:l,isCustom:a}},getResolvedCoverImage:S}},41450:e=>{"use strict";e.exports={numberOrZero:function(e){return Number(e)||0}}},45967:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>s});var o="NOT_FOUND";var i=function(e,t){return e===t};function n(e,t){var r,n,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=void 0===s?i:s,u=a.maxSize,c=void 0===u?1:u,d=a.resultEqualityCheck,p=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var o=t.length,i=0;i<o;i++)if(!e(t[i],r[i]))return!1;return!0}}(l),h=1===c?(r=p,{get:function(e){return n&&r(n.key,e)?n.value:o},put:function(e,t){n={key:e,value:t}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}):function(e,t){var r=[];function i(e){var i=r.findIndex((function(r){return t(e,r.key)}));if(i>-1){var n=r[i];return i>0&&(r.splice(i,1),r.unshift(n)),n.value}return o}return{get:i,put:function(t,n){i(t)===o&&(r.unshift({key:t,value:n}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(c,p);function g(){var t=h.get(arguments);if(t===o){if(t=e.apply(null,arguments),d){var r=h.getEntries().find((function(e){return d(e.value,t)}));r&&(t=r.value)}h.put(arguments,t)}return t}return g.clearCache=function(){return h.clear()},g}function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var n,a=0,s={memoizeOptions:void 0},l=o.pop();if("object"==typeof l&&(s=l,l=o.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var u=s.memoizeOptions,c=void 0===u?r:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var r=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}(o),h=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),g=e((function(){for(var e=[],t=p.length,r=0;r<t;r++)e.push(p[r].apply(null,arguments));return n=h.apply(null,e)}));return Object.assign(g,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return n},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),g}}var s=a(n)},63544:(e,t,r)=>{"use strict";r.d(t,{AJ:()=>n,Xv:()=>s,r2:()=>a});var o=r(74740);const i={[o.As]:{title:{start:22,min:16,max:22},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.ML]:{title:{start:26,min:18,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.sC]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.ag]:{title:{start:26},description:{start:16},metadata:{start:12}},[o.yK]:{title:{start:40},description:{start:18},metadata:{start:14}},[o.gu]:{title:{start:22},description:{start:16},metadata:{start:12}},[o.Nk]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.Ul]:{title:{start:22,min:16,max:22},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.LO]:{title:{start:28,min:16,max:22},description:{start:16},metadata:{start:12}},[o.h5]:{title:{start:26,min:26,max:48},description:{start:16},metadata:{start:12}},[o.QC]:{title:{start:22,min:12,max:30},description:{start:14,min:12,max:18},metadata:{start:12}},[o.G_]:{title:{start:14,min:12,max:30},description:{start:14,min:12,max:18},metadata:{start:12}},[o.a1]:{title:{start:22,min:12,max:30},description:{start:16,min:12,max:18},metadata:{start:12}},[o.bf]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}},[o.XH]:{title:{start:26,min:26,max:48},description:{start:16},metadata:{start:12},mobile:{title:{start:22,min:20,max:48},description:{start:16},metadata:{start:12}}},[o.nH]:{title:{start:28,min:26,max:48},description:{start:16},metadata:{start:12}},[o.Em]:{title:{start:26,min:18,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.Zv]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.yp]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o.ql]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12},mobile:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}}},[o.Qc]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}},[o.qt]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}},[o.xA]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[o._m]:{title:{start:22,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14},mobile:{title:{start:22,min:20,max:28},description:{start:14,min:12,max:16},metadata:{start:12,min:10,max:14}}},[o.mA]:{title:{start:14},description:{start:14},metadata:{start:12},mobile:{title:{start:14},description:{start:14},metadata:{start:12}}},[o.s4]:{title:{start:18},description:{start:14},metadata:{start:12}},[o.Ws]:{title:{start:22},description:{start:14},metadata:{start:12}}},n=(e,t,r)=>{const o=r&&i[e].mobile;return o?o[t].start:i[e][t].start},a=(e,t)=>i[e][t].max,s=(e,t)=>i[e][t].min},74740:(e,t,r)=>{"use strict";r.d(t,{$5:()=>re,As:()=>u,D1:()=>K,D5:()=>ee,Em:()=>P,Ev:()=>oe,G_:()=>f,It:()=>Y,LO:()=>R,ML:()=>c,NN:()=>ie,Nk:()=>L,PE:()=>o,QC:()=>m,Qc:()=>A,Qz:()=>te,Sv:()=>Z,Ul:()=>M,Ws:()=>N,XH:()=>b,Zv:()=>w,_m:()=>T,a1:()=>y,ag:()=>p,bf:()=>v,ei:()=>$,fG:()=>J,gc:()=>X,gu:()=>g,h5:()=>k,js:()=>q,l3:()=>F,mA:()=>O,nH:()=>S,q7:()=>Q,ql:()=>E,qt:()=>I,s4:()=>x,sC:()=>d,wO:()=>D,xA:()=>_,yK:()=>h,yp:()=>C,z5:()=>l});var o,i,n,a=r(16252),s=r(3790);!function(e){e[e.CardProfile=3]="CardProfile",e[e.FullPost=4]="FullPost",e[e.Mobile=5]="Mobile",e[e.OneColumnMobile=10]="OneColumnMobile",e[e.SideBySideMobile=11]="SideBySideMobile",e[e.TextOnImageMobile=12]="TextOnImageMobile",e[e.PgTextOnImageSmall=23]="PgTextOnImageSmall",e[e.PgTextOnImageMedium=13]="PgTextOnImageMedium",e[e.PgTextOnImageLarge=24]="PgTextOnImageLarge",e[e.PgCardMedium=14]="PgCardMedium",e[e.PgSideBySide=15]="PgSideBySide",e[e.PgSideBySideRight=22]="PgSideBySideRight",e[e.PgGrid=16]="PgGrid",e[e.PgGridIntermediate=20]="PgGridIntermediate",e[e.PgGridLarge=21]="PgGridLarge",e[e.PgOneColumn=17]="PgOneColumn",e[e.Slider=18]="Slider",e[e.List=19]="List",e[e.ListMedium=25]="ListMedium",e[e.ListLarge=26]="ListLarge",e[e.CardSmall=0]="CardSmall",e[e.CardMedium=1]="CardMedium",e[e.CardLarge=2]="CardLarge",e[e.SideBySide=6]="SideBySide",e[e.Grid=7]="Grid",e[e.TextOnImageSmall=8]="TextOnImageSmall",e[e.TextOnImageMedium=9]="TextOnImageMedium"}(o||(o={})),function(e){e.CardSmall="small",e.CardMedium="medium",e.CardLarge="large",e.CardProfile="profile",e.FullPost="full",e.SideBySide="side-by-side",e.Grid="grid",e.TextOnImageSmall="text-on-image-small",e.TextOnImageMedium="text-on-image-medium",e.PgTextOnImageSmall="pg-text-on-image-small",e.PgTextOnImageMedium="pg-text-on-image-medium",e.PgTextOnImageLarge="pg-text-on-image-large",e.PgCardMedium="pg-medium",e.PgSideBySide="pg-side-by-side",e.PgSideBySideRight="pg-side-by-side-right",e.PgGrid="pg-grid",e.PgGridIntermediate="pg-grid-intermediate",e.PgGridLarge="pg-grid-large",e.PgOneColumn="pg-one-column",e.Slider="slider",e.List="list",e.ListMedium="list-medium",e.ListLarge="list-large",e.Mobile="mobile",e.OneColumnMobile="one-column-mobile",e.SideBySideMobile="side-by-side-mobile",e.TextOnImageMobile="text-on-image-mobile"}(i||(i={})),function(e){e[e.CardMedium=1]="CardMedium",e[e.SideBySide=6]="SideBySide",e[e.TextOnImageMedium=9]="TextOnImageMedium",e[e.Grid=7]="Grid",e[e.CardSmall=0]="CardSmall",e[e.TextOnImageSmall=8]="TextOnImageSmall",e[e.CardLarge=2]="CardLarge"}(n||(n={}));const l=o.Grid,u=o.CardSmall,c=o.CardMedium,d=o.CardLarge,p=o.CardProfile,h=o.FullPost,g=o.Mobile,m=o.OneColumnMobile,f=o.SideBySideMobile,y=o.TextOnImageMobile,v=o.PgTextOnImageSmall,b=o.PgTextOnImageMedium,S=o.PgTextOnImageLarge,P=o.PgCardMedium,w=o.PgSideBySide,C=o.PgSideBySideRight,E=o.PgGrid,A=o.PgGridIntermediate,I=o.PgGridLarge,_=o.PgOneColumn,T=o.Slider,O=o.List,x=o.ListMedium,N=o.ListLarge,L=o.SideBySide,M=o.Grid,R=o.TextOnImageSmall,k=o.TextOnImageMedium,D=(i.CardSmall,i.CardMedium,i.CardLarge,i.CardProfile,i.FullPost,i.Mobile,i.SideBySide,i.Grid,i.TextOnImageSmall,i.TextOnImageMedium,i.OneColumnMobile,i.SideBySideMobile,i.TextOnImageMobile,i.PgTextOnImageSmall,i.PgTextOnImageMedium,i.PgTextOnImageLarge,i.PgCardMedium,i.PgSideBySide,i.PgSideBySideRight,i.PgGrid),B=(i.PgGridIntermediate,i.PgGridLarge,i.PgOneColumn,i.Slider,i.List,i.ListMedium,i.ListLarge,i.Mobile,i.OneColumnMobile,i.SideBySideMobile,i.TextOnImageMobile,{[o.CardSmall]:i.CardSmall,[o.CardMedium]:i.CardMedium,[o.CardLarge]:i.CardLarge,[o.FullPost]:i.FullPost,[o.SideBySide]:i.SideBySide,[o.Grid]:i.Grid,[o.TextOnImageSmall]:i.TextOnImageSmall,[o.TextOnImageMedium]:i.TextOnImageMedium,[o.TextOnImageMobile]:i.TextOnImageMobile,[o.PgTextOnImageSmall]:i.PgTextOnImageSmall,[o.PgTextOnImageMedium]:i.PgTextOnImageMedium,[o.PgTextOnImageLarge]:i.PgTextOnImageLarge,[o.PgCardMedium]:i.PgCardMedium,[o.PgSideBySide]:i.PgSideBySide,[o.PgSideBySideRight]:i.PgSideBySideRight,[o.PgGrid]:i.PgGrid,[o.PgGridIntermediate]:i.PgGridIntermediate,[o.PgGridLarge]:i.PgGridLarge,[o.PgOneColumn]:i.PgOneColumn,[o.List]:i.List,[o.ListMedium]:i.ListMedium,[o.ListLarge]:i.ListLarge,[o.Slider]:i.Slider}),H={[o.PgGrid]:i.PgGrid,[o.PgGridLarge]:i.PgGridLarge,[o.Slider]:i.Slider,[o.ListMedium]:i.ListMedium,[o.ListLarge]:i.ListLarge,[o.PgSideBySide]:i.PgSideBySide,[o.PgSideBySideRight]:i.PgSideBySideRight,[o.PgOneColumn]:i.PgOneColumn,[o.PgTextOnImageSmall]:i.PgTextOnImageSmall,[o.PgTextOnImageMedium]:i.PgTextOnImageMedium,[o.PgTextOnImageLarge]:i.PgTextOnImageLarge,[o.PgGridIntermediate]:i.PgGridIntermediate,[o.List]:i.List,[o.PgCardMedium]:i.PgCardMedium},V={[o.PgGrid]:i.PgGrid,[o.PgGridLarge]:i.PgGridLarge,[o.Slider]:i.Slider,[o.ListMedium]:i.ListMedium,[o.ListLarge]:i.ListLarge,[o.PgSideBySide]:i.PgSideBySide,[o.PgSideBySideRight]:i.PgSideBySideRight,[o.PgOneColumn]:i.PgOneColumn,[o.PgTextOnImageSmall]:i.PgTextOnImageSmall,[o.PgTextOnImageMedium]:i.PgTextOnImageMedium,[o.PgTextOnImageLarge]:i.PgTextOnImageLarge,[o.PgGridIntermediate]:i.PgGridIntermediate,[o.List]:i.List,[o.PgCardMedium]:i.PgCardMedium},F={[o.PgGrid]:o.PgGrid,[o.PgGridIntermediate]:o.PgGrid,[o.PgGridLarge]:o.PgGrid,[o.Slider]:o.Slider,[o.List]:o.List,[o.ListMedium]:o.List,[o.OneColumnMobile]:o.OneColumnMobile,[o.SideBySideMobile]:o.SideBySideMobile,[o.SideBySide]:o.SideBySideMobile,[o.ListLarge]:o.List,[o.PgSideBySide]:o.PgGrid,[o.PgSideBySideRight]:o.PgGrid,[o.PgTextOnImageMedium]:o.PgTextOnImageMedium,[o.PgTextOnImageSmall]:o.PgTextOnImageMedium,[o.PgTextOnImageLarge]:o.PgTextOnImageMedium,[o.PgOneColumn]:o.PgGrid,[o.PgCardMedium]:o.PgGrid},G={[o.PgSideBySide]:i.PgSideBySide},z={...B,...H,...V,...G},W=(s.ti,s.vx,s.wj,s.CI,s.$Y,{[o.OneColumnMobile]:i.OneColumnMobile,[o.SideBySideMobile]:i.SideBySideMobile,[o.TextOnImageMobile]:i.TextOnImageMobile}),U={[o.CardProfile]:i.CardProfile,[o.Mobile]:i.Mobile};o.PgGrid,o.PgGridIntermediate,o.PgGridLarge,o.PgCardMedium,o.PgOneColumn,o.Slider,o.List,o.ListMedium,o.ListLarge;var j;function K(e){return e?z[e]:void 0}!function(e){e[e.ImageLeft=0]="ImageLeft",e[e.ImageRight=1]="ImageRight",e[e.ImageNone=2]="ImageNone"}(j||(j={}));const Z=e=>z[e]||W[e]||U[e],$=e=>Number(e)===o.PgOneColumn,q=e=>Number(e)===o.PgSideBySide||Number(e)===o.PgSideBySideRight,Y=e=>Number(e)===o.FullPost,X=e=>(0,a.includes)([o.TextOnImageSmall,o.TextOnImageMedium,o.TextOnImageMobile,o.PgTextOnImageSmall,o.PgTextOnImageMedium,o.PgTextOnImageLarge],Number(e)),Q=e=>Number(e)===o.Slider,J=e=>Number(e)===o.List||Number(e)===o.ListMedium||Number(e)===o.ListLarge,ee=e=>(0,a.includes)([o.Mobile,o.OneColumnMobile,o.SideBySideMobile,o.TextOnImageMobile],Number(e)),te=e=>(0,a.includes)([i.PgSideBySide,i.PgSideBySideRight],e),re=e=>e===i.PgOneColumn,oe=e=>(0,a.includes)([i.List,i.ListMedium,i.ListLarge],e),ie=e=>(0,a.includes)([i.TextOnImageSmall,i.TextOnImageMedium,i.TextOnImageMobile,i.PgTextOnImageSmall,i.PgTextOnImageMedium,i.PgTextOnImageLarge],e)},33014:(e,t,r)=>{"use strict";r.d(t,{$X:()=>o,Gh:()=>a,Sf:()=>n,TI:()=>d,Tw:()=>i,YK:()=>s,YX:()=>c,w5:()=>u,yB:()=>l});const o="subscribe",i="edit",n="share",a="print",s="pin",l="toggle-comments",u="delete",c="duplicate",d=[o,i,n,a,s,"revert-to-draft",l,"report",u,"translate","change-language"]},82314:(e,t,r)=>{"use strict";r.d(t,{EB:()=>i,F$:()=>s,Oo:()=>n,P1:()=>u,Tw:()=>a,fR:()=>o,mz:()=>l});const o="PostListMasonry",i="PostListSimple",n="PostListMobile",a="PostListItem",s="SideBySideMobile",l="TextOnImageMobile",u="Post"},93396:(e,t,r)=>{"use strict";r.d(t,{Is:()=>n,R9:()=>o,TT:()=>i});const o=200,i=480,n={published:"published",unpublished:"unpublished",scheduled:"scheduled",deleted:"deleted",in_moderation:"in_moderation",in_review:"in_review"}},21504:(e,t,r)=>{"use strict";r.d(t,{DM:()=>C,E0:()=>f,KN:()=>$,LG:()=>h,MQ:()=>m,Mw:()=>K,Nr:()=>p,PE:()=>_,Qp:()=>b,X:()=>u,Zx:()=>d,dq:()=>l,eg:()=>c,hs:()=>S,ij:()=>P,jk:()=>I,kt:()=>E,n$:()=>ve,rE:()=>A,rM:()=>g,sr:()=>w,uO:()=>Z,vw:()=>v,z2:()=>y});var o=r(74740),i=r(3790);const n=2,a=3,s=6;var l,u;!function(e){e.Crop="0",e.Max="1"}(l||(l={})),function(e){e[e.Proportional=0]="Proportional",e[e.Fixed=1]="Fixed"}(u||(u={}));const c={MANUAL:0,AUTO:1};var d;!function(e){e[e.FitToScreen=0]="FitToScreen",e[e.ItemsPerRow=1]="ItemsPerRow"}(d||(d={}));const p="DEFAULT_PG_LAYOUT_IMAGE_RATIO",h="DEFAULT_PG_LAYOUT_ITEM_SIZE",g="DEFAULT_PG_LAYOUT_CARDS_ROW_TYPE",m="DEFAULT_PG_LAYOUT_POSTS_PER_ROW",f="DEFAULT_PG_LAYOUT_INFO_SIZE",y="DEFAULT_PG_LAYOUT_INFO_SIZE_TYPE",v="DEFAULT_PG_LAYOUT_SPACING",b="DEFAULT_PG_LAYOUT_SIDES_PADDING",S="DEFAULT_PG_LAYOUT_MARGINS",P="DEFAULT_PG_IMAGE_ALIGNMENT",w="DEFAULT_PG_IMAGE_PROPORTIONS",C="DEFAULT_PG_IMAGE_WIDTH",E="DEFAULT_PG_IMAGE_RESIZING_MODE",A="DEFAULT_PG_LAYOUT_IMAGE_CROP_TYPE",I="DEFAULT_PG_LAYOUT_TITLE_LINE_COUNT",_="DEFAULT_PG_LAYOUT_DESCRIPTION_LINE_COUNT",T="MIN_PG_LAYOUT_SPACNG",O="MIN_PG_LAYOUT_ITEM_SIZE",x="MIN_PG_LAYOUT_POSTS_PER_ROW",N="MIN_PG_LAYOUT_INFO_SIZE",L="MIN_PG_LAYOUT_SIDES_PADDING",M="MIN_PG_LAYOUT_MARGINS",R="MIN_PG_LAYOUT_TITLE_LINE_COUNT",k="MIN_PG_LAYOUT_DESCRIPTION_LINE_COUNT",D="MIN_PG_IMAGE_PROPORTIONS",B="MAX_PG_LAYOUT_ITEM_SIZE",H="MAX_PG_LAYOUT_POSTS_PER_ROW",V="MAX_PG_LAYOUT_INFO_SIZE",F="MAX_PG_LAYOUT_SPACNG",G="MAX_PG_LAYOUT_SIDES_PADDING",z="MAX_PG_LAYOUT_MARGINS",W="MAX_PG_LAYOUT_TITLE_LINE_COUNT",U="MAX_PG_LAYOUT_DESCRIPTION_LINE_COUNT",j="MAX_PG_IMAGE_PROPORTIONS",K="DEFAULT_PG_LAYOUT_SPACING_MOBILE",Z="DEFAULT_PG_LAYOUT_MARGINS_MOBILE",$="DEFAULT_PG_LAYOUT_IMAGE_RATIO_MOBILE",q={[T]:0,[O]:150,[x]:1,[L]:0,[M]:0,[R]:1,[F]:100,[B]:1e3,[H]:5,[G]:100,[z]:100,[W]:6,[p]:3,[h]:454,[g]:d.FitToScreen,[m]:3,[v]:32,[b]:30,[S]:20,[A]:0,[I]:3,[K]:20,[Z]:0,[$]:3},Y={...q,[h]:292,[b]:24},X={...q,[p]:1,[h]:1e3},Q={[T]:0,[O]:150,[x]:1,[L]:0,[M]:0,[R]:1,[F]:100,[B]:1e3,[H]:5,[G]:100,[z]:100,[W]:6,[p]:a,[h]:454,[g]:d.ItemsPerRow,[m]:3,[v]:24,[b]:24,[S]:0,[A]:l.Crop,[I]:3,[K]:20,[Z]:0,[$]:3},J={[T]:0,[O]:150,[x]:1,[N]:0,[L]:0,[M]:0,[R]:1,[k]:1,[F]:100,[B]:1e3,[H]:5,[V]:700,[G]:100,[z]:100,[W]:6,[U]:8,[h]:454,[g]:d.FitToScreen,[m]:3,[f]:350,[y]:c.MANUAL,[v]:32,[b]:30,[S]:20,[I]:3,[_]:3},ee={[O]:450,[T]:0,[L]:0,[M]:0,[D]:20,[R]:1,[k]:1,[B]:1200,[F]:100,[G]:100,[z]:100,[j]:60,[W]:6,[U]:8,[h]:1100,[v]:32,[b]:36,[S]:20,[w]:50,[E]:u.Proportional,[P]:2,[p]:2,[A]:0,[I]:3,[_]:3},te={...ee,[P]:1},re={[h]:980,[v]:24,[b]:30,[S]:30,[C]:177,[E]:u.Fixed,[P]:2,[p]:3,[A]:0,[I]:2,[_]:0},oe={[O]:450,[T]:0,[L]:0,[M]:0,[D]:20,[R]:1,[k]:1,[B]:1200,[F]:100,[G]:100,[z]:100,[j]:60,[W]:6,[U]:8,[h]:1100,[v]:24,[b]:24,[S]:0,[w]:30,[E]:u.Proportional,[P]:2,[p]:n,[A]:l.Crop,[I]:3,[_]:3},ie={[T]:0,[O]:150,[x]:1,[N]:0,[L]:0,[M]:0,[R]:1,[k]:1,[F]:100,[B]:1e3,[H]:5,[V]:700,[G]:100,[z]:100,[W]:6,[U]:8,[p]:2,[h]:292,[g]:d.FitToScreen,[m]:3,[f]:350,[y]:c.MANUAL,[v]:32,[b]:24,[S]:20,[A]:0,[I]:3,[_]:3,[K]:20,[Z]:0,[$]:2},ne={[T]:0,[O]:150,[x]:1,[N]:0,[L]:0,[M]:0,[R]:1,[k]:1,[F]:100,[B]:1e3,[H]:5,[V]:700,[G]:100,[z]:100,[W]:6,[U]:8,[p]:n,[h]:292,[g]:d.ItemsPerRow,[m]:3,[f]:350,[y]:c.AUTO,[v]:24,[b]:24,[S]:0,[A]:l.Crop,[I]:3,[_]:3,[K]:20,[Z]:0,[$]:2},ae={...ie,[h]:454},se={...ie,[p]:1,[h]:1e3},le={[T]:0,[L]:0,[M]:0,[N]:0,[R]:1,[k]:1,[F]:100,[G]:100,[z]:100,[V]:700,[W]:6,[U]:8,[v]:32,[b]:48,[S]:20,[p]:6,[f]:350,[y]:c.MANUAL,[I]:3,[_]:3},ue={[T]:0,[L]:0,[M]:0,[N]:0,[R]:1,[k]:1,[F]:100,[G]:100,[z]:100,[V]:700,[W]:6,[U]:8,[v]:24,[b]:24,[S]:0,[p]:s,[f]:350,[y]:c.AUTO,[I]:3,[_]:3},ce={[T]:0,[O]:150,[x]:1,[L]:0,[M]:0,[N]:0,[D]:20,[R]:1,[k]:1,[F]:100,[B]:1e3,[H]:5,[G]:100,[z]:100,[V]:300,[j]:80,[W]:6,[U]:8,[v]:12,[h]:292,[g]:d.FitToScreen,[m]:3,[f]:100,[b]:12,[S]:0,[p]:3,[w]:25,[E]:u.Proportional,[P]:1,[A]:0,[I]:3,[_]:3,[K]:20,[Z]:0,[$]:3},de={[T]:0,[O]:150,[x]:1,[L]:0,[M]:0,[N]:0,[D]:20,[R]:1,[k]:1,[F]:100,[B]:1e3,[H]:5,[G]:100,[z]:100,[V]:300,[j]:80,[W]:6,[U]:8,[v]:24,[h]:292,[g]:d.ItemsPerRow,[m]:3,[f]:100,[y]:c.MANUAL,[b]:12,[S]:0,[p]:a,[w]:25,[E]:u.Proportional,[P]:1,[A]:l.Crop,[I]:3,[_]:3,[K]:20,[Z]:0,[$]:3},pe={...ce,[h]:454,[f]:60,[S]:20,[v]:24,[P]:2,[b]:24},he={...ce,[h]:1e3,[f]:25,[S]:20,[v]:24,[P]:2,[b]:24},ge={[v]:20,[h]:280,[g]:d.FitToScreen,[m]:1,[f]:60,[b]:12,[S]:0,[p]:3,[w]:32,[E]:u.Proportional,[P]:2,[A]:0,[I]:3},me={[N]:0,[L]:0,[M]:0,[R]:1,[k]:1,[V]:700,[G]:48,[z]:100,[W]:6,[U]:8,[f]:230,[y]:c.MANUAL,[b]:24,[S]:0,[p]:1,[A]:0,[I]:3,[_]:3,[Z]:0,[$]:2},fe={[N]:0,[L]:0,[M]:0,[R]:1,[k]:1,[V]:700,[G]:48,[z]:100,[W]:6,[U]:8,[f]:230,[y]:c.AUTO,[b]:24,[S]:0,[p]:n,[A]:l.Crop,[I]:3,[_]:3,[Z]:0,[$]:2},ye={[o.bf]:{[i.ti]:Y,[i.vx]:Y,[i.wj]:Y,[i.e8]:Y,[i.CI]:Y,[i.$Y]:Y},[o.XH]:{[i.ti]:q,[i.vx]:q,[i.wj]:q,[i.e8]:q,[i.CI]:Q,[i.$Y]:q},[o.nH]:{[i.ti]:X,[i.vx]:X,[i.wj]:X,[i.e8]:X,[i.CI]:X,[i.$Y]:X},[o.Em]:{[i.ti]:J,[i.vx]:J,[i.wj]:J,[i.e8]:J,[i.CI]:J,[i.$Y]:J},[o.Zv]:{[i.ti]:ee,[i.vx]:ee,[i.wj]:ee,[i.e8]:ee,[i.CI]:oe,[i.$Y]:re},[o.yp]:{[i.ti]:te,[i.vx]:te,[i.wj]:te,[i.e8]:te,[i.CI]:te,[i.$Y]:re},[o.ql]:{[i.ti]:ie,[i.vx]:ie,[i.wj]:ie,[i.e8]:ie,[i.CI]:ne,[i.$Y]:ie},[o.Qc]:{[i.ti]:ae,[i.vx]:ae,[i.wj]:ae,[i.e8]:ae,[i.CI]:ae,[i.$Y]:ae},[o.qt]:{[i.ti]:se,[i.vx]:se,[i.wj]:se,[i.e8]:se,[i.CI]:se,[i.$Y]:se},[o.xA]:{[i.ti]:le,[i.vx]:le,[i.wj]:le,[i.e8]:le,[i.CI]:ue,[i.$Y]:le},[o._m]:{[i.ti]:me,[i.vx]:me,[i.wj]:me,[i.e8]:me,[i.CI]:fe,[i.$Y]:me},[o.mA]:{[i.ti]:ce,[i.vx]:ce,[i.wj]:ce,[i.e8]:ce,[i.CI]:de,[i.$Y]:ge},[o.s4]:{[i.ti]:pe,[i.vx]:pe,[i.wj]:pe,[i.e8]:pe,[i.CI]:pe,[i.$Y]:pe},[o.Ws]:{[i.ti]:he,[i.vx]:he,[i.wj]:he,[i.e8]:he,[i.CI]:he,[i.$Y]:he}},ve=(e,t,r=i.ti)=>{const o=ye[e]?.[r];return o?.[t]}},91158:(e,t,r)=>{"use strict";r.d(t,{J:()=>i,jF:()=>a,uK:()=>o,wY:()=>n});const o="categories",i="hashtags",n="archive",a="tags"},3790:(e,t,r)=>{"use strict";r.d(t,{$Y:()=>l,CI:()=>s,e8:()=>n,gY:()=>u,ti:()=>o,vx:()=>i,wj:()=>a});const o="homepage",i="category",n="tags",a="post-list",s="related-posts",l="my-posts",u=[o,i]},56152:(e,t,r)=>{"use strict";r.d(t,{aI:()=>l,nJ:()=>s});const o="facebook",i="twitter",n="linked-in",a="link",s="print",l=[o,i,n,a]},30223:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});const o="PRIVATE"},31386:(e,t,r)=>{"use strict";r.d(t,{GM:()=>n,Mm:()=>o,eX:()=>a,vv:()=>i});const o="editor",i="preview",n="site",a="onboarding"},17617:(e,t,r)=>{"use strict";r.d(t,{$T:()=>s,$l:()=>c,$u:()=>h,BA:()=>u,CX:()=>v,DA:()=>d,DF:()=>z,Dt:()=>W,EV:()=>ne,EZ:()=>oe,Eo:()=>B,FG:()=>q,FX:()=>L,Gm:()=>ee,HA:()=>w,HQ:()=>M,IR:()=>T,It:()=>I,Jt:()=>i,MA:()=>_,MT:()=>he,OB:()=>m,Op:()=>me,RL:()=>b,T3:()=>ae,Tv:()=>X,Vi:()=>$,W4:()=>le,WB:()=>S,Y:()=>Q,Zy:()=>x,_b:()=>ge,bD:()=>te,bp:()=>l,cX:()=>ie,cc:()=>N,cz:()=>V,dJ:()=>R,eU:()=>y,fe:()=>G,g5:()=>J,g7:()=>fe,h5:()=>re,k7:()=>Z,lJ:()=>ce,ld:()=>pe,mS:()=>a,mY:()=>D,nS:()=>P,oR:()=>de,pm:()=>se,rE:()=>g,rk:()=>k,ro:()=>A,sk:()=>H,sm:()=>K,ub:()=>j,ud:()=>Y,v:()=>E,wP:()=>f,xS:()=>U,xg:()=>O,ye:()=>ue,z:()=>p,zA:()=>F,zg:()=>C});var o,i,n=r(91354);!function(e){e[e.NameAndPicture=0]="NameAndPicture",e[e.Name=1]="Name"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(i||(i={}));const a={"banner-isEnabled":{defaultValue:!1,key:"banner-isEnabled"},"blog-authorInfoType":{key:"blog-authorInfoType"},"blog-isAnonymousCommentsEnabled":{key:"blog-isAnonymousCommentsEnabled"},"blog-isAuthorNameEnabled":{key:"blog-isAuthorNameEnabled"},"blog-isAuthorPictureEnabled":{key:"blog-isAuthorPictureEnabled"},"blog-isCategoryLabelEnabled":{key:"blog-isCategoryLabelEnabled"},"blog-isCategoryLabelsEnabled":{key:"blog-isCategoryLabelsEnabled"},"blog-isCommentCountEnabled":{key:"blog-isCommentCountEnabled"},"blog-isCommentsEnabled":{key:"blog-isCommentsEnabled"},"blog-isCoverImageEnabled":{key:"blog-isCoverImageEnabled"},"blog-isLikeCountEnabled":{key:"blog-isLikeCountEnabled"},"blog-isMoreOptionsMenuEnabled":{key:"blog-isMoreOptionsMenuEnabled"},"blog-isPostDateEnabled":{key:"blog-isPostDateEnabled"},"blog-isPostDescriptionEnabled":{key:"blog-isPostDescriptionEnabled"},"blog-isPostListFullWidthEnabled":{key:"blog-isPostListFullWidthEnabled"},"blog-isPostPublishDateEnabled":{key:"blog-isPostPublishDateEnabled"},"blog-isPostRatingEnabled":{key:"blog-isPostRatingEnabled"},"blog-isPostTitleEnabled":{key:"blog-isPostTitleEnabled"},"blog-isPostUpdatedDateEnabled":{key:"blog-isPostUpdatedDateEnabled"},"blog-isReadingTimeEnabled":{key:"blog-isReadingTimeEnabled"},"blog-isRecentPostsEnabled":{key:"blog-isRecentPostsEnabled"},"blog-isTagsEnabled":{key:"blog-isTagsEnabled"},"blog-isViewCountEnabled":{key:"blog-isViewCountEnabled"},"blog-mobile-authorInfoType":{key:"blog-mobile-authorInfoType"},"blog-mobile-isAuthorNameEnabled":{key:"blog-mobile-isAuthorNameEnabled"},"blog-mobile-isAuthorPictureEnabled":{key:"blog-mobile-isAuthorPictureEnabled"},"blog-mobile-isCategoryLabelEnabled":{key:"blog-mobile-isCategoryLabelEnabled"},"blog-mobile-isCategoryLabelsEnabled":{key:"blog-mobile-isCategoryLabelsEnabled"},"blog-mobile-isCommentCountEnabled":{key:"blog-mobile-isCommentCountEnabled"},"blog-mobile-isCommentsEnabled":{key:"blog-mobile-isCommentsEnabled"},"blog-mobile-isCoverImageEnabled":{key:"blog-mobile-isCoverImageEnabled"},"blog-mobile-isLikeCountEnabled":{key:"blog-mobile-isLikeCountEnabled"},"blog-mobile-isMobileDisplaySettingsEnabled":{key:"blog-mobile-isMobileDisplaySettingsEnabled"},"blog-mobile-isMoreOptionsMenuEnabled":{key:"blog-mobile-isMoreOptionsMenuEnabled"},"blog-mobile-isPostDateEnabled":{key:"blog-mobile-isPostDateEnabled"},"blog-mobile-isPostDescriptionEnabled":{key:"blog-mobile-isPostDescriptionEnabled"},"blog-mobile-isPostPublishDateEnabled":{key:"blog-mobile-isPostPublishDateEnabled"},"blog-mobile-isPostRatingEnabled":{key:"blog-mobile-isPostRatingEnabled"},"blog-mobile-isPostTitleEnabled":{key:"blog-mobile-isPostTitleEnabled"},"blog-mobile-isPostUpdatedDateEnabled":{key:"blog-mobile-isPostUpdatedDateEnabled"},"blog-mobile-isReadingTimeEnabled":{key:"blog-mobile-isReadingTimeEnabled"},"blog-mobile-isRecentPostsEnabled":{key:"blog-mobile-isRecentPostsEnabled"},"blog-mobile-isTagsEnabled":{key:"blog-mobile-isTagsEnabled"},"blog-mobile-isViewCountEnabled":{key:"blog-mobile-isViewCountEnabled"},"blogMenu-isCategoryLabelsEnabled":{key:"blogMenu-isCategoryLabelsEnabled"},"blogMenu-isEnabled":{key:"blogMenu-isEnabled"},"blogMenu-isSearchEnabled":{key:"blogMenu-isSearchEnabled"},"blogMenu-mobile-isCategoryLabelsEnabled":{key:"blogMenu-mobile-isCategoryLabelsEnabled"},"blogMenu-mobile-isEnabled":{key:"blogMenu-mobile-isEnabled"},"blogMenu-mobile-isLoginButtonEnabled":{key:"blogMenu-mobile-isLoginButtonEnabled"},"blogMenu-mobile-isSearchEnabled":{key:"blogMenu-mobile-isSearchEnabled"},"categoryHeader-isEnabled":{key:"categoryHeader-isEnabled"},contentAlignment:{defaultValue:i.Left,key:"contentAlignment"},contentAlignmentMobile:{defaultValue:i.Left,key:"contentAlignmentMobile"},feedBackgroundColor:{defaultOpacity:0,defaultValue:"color-5",key:"feedBackgroundColor"},feedSliderArrowsColor:{defaultValue:"color-5",key:"feedSliderArrowsColor"},feedSliderArrowsPosition:{defaultValue:n.B9.OnGallery,key:"feedSliderArrowsPosition",options:n.OU},feedSliderArrowsSize:{defaultValue:18,key:"feedSliderArrowsSize",maxValue:180,minValue:6},feedSliderAutoSlide:{defaultValue:!1,key:"feedSliderAutoSlide"},feedSliderLoop:{defaultValue:!1,key:"feedSliderLoop"},feedSliderPauseTime:{defaultValue:4,key:"feedSliderPauseTime",maxValue:10,minValue:1},feedSliderShowArrows:{defaultValue:!0,key:"feedSliderShowArrows"},"navigation-backgroundColor":{defaultValue:"rgba(255,255,255,1)",key:"navigation-backgroundColor"},"navigation-textColor":{key:"navigation-textColor"},"navigation-textColorActive":{key:"navigation-textColorActive"},"pinterest-isEnabled":{key:"pinterest-isEnabled"},"socialSharing-isEnabled":{key:"socialSharing-isEnabled"},"socialSharing-mobile-isEnabled":{key:"socialSharing-mobile-isEnabled"},"twitter-isEnabled":{key:"twitter-isEnabled"},"widget-isLoginButtonEnabled":{key:"widget-isLoginButtonEnabled"}},s="blog-isViewCountEnabled",l=`style.booleans.${s}`,u="blog-isCommentCountEnabled",c=`style.booleans.${u}`,d="blog-isLikeCountEnabled",p=`style.booleans.${d}`,h="blog-isAuthorNameEnabled",g=`style.booleans.${h}`,m="blog-isAuthorPictureEnabled",f=`style.booleans.${m}`,y="blog-authorInfoType",v=`style.numbers.${y}`,b=0,S=1,P="blog-isPostDateEnabled",w=`style.booleans.${P}`,C="blog-isPostUpdatedDateEnabled",E=`style.booleans.${C}`,A="style.booleans.blog-isRecentPostsEnabled",I="style.booleans.blog-isCommentsEnabled",_="blog-isCategoryLabelsEnabled",T=`style.booleans.${_}`,O="blog-isTagsEnabled",x=`style.booleans.${O}`,N="style.booleans.blog-mobile-isTagsEnabled",L="blog-isPostTitleEnabled",M=`style.booleans.${L}`,R="blog-isPostPublishDateEnabled",k=`style.booleans.${R}`,D="blog-isReadingTimeEnabled",B=`style.booleans.${D}`,H="blog-isMoreOptionsMenuEnabled",V=`style.booleans.${H}`,F="blog-isPostDescriptionEnabled",G=`style.booleans.${F}`,z="blog-isCoverImageEnabled",W="blog-isCategoryLabelEnabled",U=`style.booleans.${W}`,j="style.booleans.blog-mobile-isCategoryLabelEnabled",K="blog-isPostRatingEnabled",Z=`style.booleans.${K}`,$="style.booleans.blog-mobile-isPostRatingEnabled",q="style.booleans.blog-mobile-isMobileDisplaySettingsEnabled",Y="style.booleans.blog-mobile-isViewCountEnabled",X="style.booleans.blog-mobile-isMoreOptionsMenuEnabled",Q="style.booleans.blog-mobile-isCommentCountEnabled",J="style.booleans.blog-mobile-isLikeCountEnabled",ee="style.booleans.blog-mobile-isAuthorNameEnabled",te="style.booleans.blog-mobile-isAuthorPictureEnabled",re="style.numbers.blog-mobile-authorInfoType",oe="style.booleans.blog-mobile-isPostDateEnabled",ie="style.booleans.blog-mobile-isPostUpdatedDateEnabled",ne="style.booleans.blog-mobile-isRecentPostsEnabled",ae="style.booleans.blog-mobile-isCommentsEnabled",se="style.booleans.blog-mobile-isCategoryLabelsEnabled",le="style.booleans.blog-mobile-isPostTitleEnabled",ue="style.booleans.blog-mobile-isPostPublishDateEnabled",ce="style.booleans.blog-mobile-isReadingTimeEnabled",de="style.booleans.blog-mobile-isPostDescriptionEnabled",pe="style.booleans.socialSharing-mobile-isEnabled",he="style.booleans.pinterest-isEnabled",ge="style.booleans.twitter-isEnabled",me="style.booleans.socialSharing-isEnabled",fe=(e,t=!1)=>`style.booleans.${((e,t=!1)=>`socialSharing-${t?"mobile-":""}${e}`)(e,t)}`},91053:(e,t,r)=>{"use strict";r.d(t,{L1:()=>B,Mv:()=>R,RT:()=>D,S7:()=>_,Ut:()=>A,XD:()=>O,Xv:()=>N,c5:()=>F,cr:()=>V,kt:()=>n,mC:()=>M,mn:()=>k,no:()=>i,od:()=>I,qZ:()=>a,ql:()=>H,uN:()=>L,xe:()=>T,zf:()=>x});r(16252);var o=r(74740);const i="style.booleans.blog-mobile-isMobileLayoutSettingsEnabled",n="style.booleans.blog-postDesignInFullpostEnabled",a=(e,t=!1)=>`style.numbers.${((e,t=!1)=>((e,t,r)=>`layout-${r?"mobile-":""}${e}-${"layoutType"}`)(e,0,t))(e,t)}`;function s(e){return function(t,r,o=!1){return`layout-${o?"mobile-":""}${t}-${r}-${e}`}}const l=e=>(t,r,o=!1)=>`style.numbers.${e(t,r,o)}`,u=s("layoutSpacing"),c=s("layoutPostSize"),d=s("layoutCardsRowType"),p=s("layoutPostsPerRow"),h=s("contentHeight"),g=s("contentHeightType"),m=s("margins"),f=s("titleLineCount"),y=s("descriptionLineCount"),v=s("sidesPadding"),b=s("imageRatio"),S=s("imageAlignment"),P=s("imageProportions"),w=s("imageCropType"),C=s("imageResizingMode"),E=s("imageWidth"),A=l(u),I=l(c),_=l(d),T=l(p),O=l(b),x=l(h),N=l(g),L=l(m),M=l(f),R=l(y),k=l(v),D=l(S),B=l(P),H=l(w),V=l(C),F=l(E),G=(e=!1)=>({startWithColor:e?"#FFFFFF":"color-5",startWithTheme:"font_8",fontMinSize:12,fontMaxSize:24,startWithSize:14});o.ML,G(),o.Nk,G(),o.h5,G(!0),o.Ul,G(),o.As,G(),o.LO,G(!0),o.sC,G(),o.yK,G(),o.QC,G(),o.G_,G(),o.a1,G(),o.bf,G(!0),o.XH,G(!0),o.nH,G(!0),o.Em,G(),o.Zv,G(),o.yp,G(),o.ql,G(),o.Qc,G(),o.qt,G(),o.xA,G(),o.mA,G(),o.s4,G(),o.Ws,G(),o._m,G(),o.Zv,G()},91354:(e,t,r)=>{"use strict";r.d(t,{$6:()=>d,B9:()=>s,K8:()=>g,Nq:()=>c,Nx:()=>a,OU:()=>l,Tz:()=>f,U$:()=>n,aG:()=>m,el:()=>v,fE:()=>S,iU:()=>b,oc:()=>u,rS:()=>h,rh:()=>y});var o=r(74740),i=r(21504);const n={margins:10,sidesPadding:16,postSize:254,contentHeight:156,imageRatio:2,spacing:12,layoutName:o.wO,layoutType:o.ql,layoutCardsRowType:i.Zx.FitToScreen,layoutPostsPerRow:3};var a,s;!function(e){e[e.NumberOfPosts=0]="NumberOfPosts",e[e.Paginated=1]="Paginated"}(a||(a={})),function(e){e[e.OnGallery=0]="OnGallery",e[e.OutsideGallery=1]="OutsideGallery"}(s||(s={}));const l=e=>[{value:s.OnGallery,label:e("post-list-widget.layout-tab.slider-arrows-position-on-post")},{value:s.OutsideGallery,label:e("post-list-widget.layout-tab.slider-arrows-position-outside-post")}],u={postListWidgetBackgroundColor:{key:"postListWidgetBackgroundColor",defaultValue:"color-5",defaultOpacity:0},postListWidgetSliderArrowsColor:{key:"postListWidgetSliderArrowsColor",defaultValue:"color-5"},postListWidgetBackgroundColorMobile:{key:"postListWidgetBackgroundColorMobile",defaultValue:"color-5",defaultOpacity:0},postListWidgetSliderArrowsColorMobile:{key:"postListWidgetSliderArrowsColorMobile",defaultValue:"color-5"},postListWidgetIsFeatured:{key:"postListWidgetIsFeatured",defaultValue:!1},postListWidgetEntityCount:{key:"postListWidgetEntityCount",defaultValue:3,minValue:1,maxValue:50},postListWidgetPaginationType:{key:"postListWidgetPaginationType",defaultValue:a.NumberOfPosts,options:e=>[{value:a.NumberOfPosts,label:e("post-list-widget.settings-tab.pagination-number-of-posts")},{value:a.Paginated,label:e("post-list-widget.settings-tab.pagination-with-page-numbers")}]},postListWidgetPostsPerPage:{key:"postListWidgetPostsPerPage",defaultValue:3,minValue:1,maxValue:50},postListWidgetSliderLoop:{key:"postListWidgetSliderLoop",defaultValue:!1},postListWidgetSliderAutoSlide:{key:"postListWidgetSliderAutoSlide",defaultValue:!1},postListWidgetSliderPauseTime:{key:"postListWidgetSliderPauseTime",defaultValue:4,minValue:1,maxValue:10},postListWidgetSliderShowArrows:{key:"postListWidgetSliderShowArrows",defaultValue:!0},postListWidgetSliderArrowsPosition:{key:"postListWidgetSliderArrowsPosition",defaultValue:s.OnGallery,options:l},postListWidgetSliderArrowsSize:{key:"postListWidgetSliderArrowsSize",defaultValue:18,minValue:6,maxValue:180},postListWidgetSliderLoopMobile:{key:"postListWidgetSliderLoopMobile",defaultValue:!1},postListWidgetSliderAutoSlideMobile:{key:"postListWidgetSliderAutoSlideMobile",defaultValue:!0},postListWidgetSliderPauseTimeMobile:{key:"postListWidgetSliderPauseTimeMobile",defaultValue:4,minValue:1,maxValue:10},postListWidgetSliderShowArrowsMobile:{key:"postListWidgetSliderShowArrowsMobile",defaultValue:!0},postListWidgetSliderArrowsPositionMobile:{key:"postListWidgetSliderArrowsPositionMobile",defaultValue:s.OnGallery,options:l},postListWidgetSliderArrowsSizeMobile:{key:"postListWidgetSliderArrowsSizeMobile",defaultValue:18,maxValue:180,minValue:6}},c={desktop:{sliderLoop:u.postListWidgetSliderLoop,widgetBackgroundColor:u.postListWidgetBackgroundColor,sliderAutoSlide:u.postListWidgetSliderAutoSlide,sliderPauseTime:u.postListWidgetSliderPauseTime,sliderShowArrows:u.postListWidgetSliderShowArrows,sliderArrowsPosition:u.postListWidgetSliderArrowsPosition,sliderArrowsSize:u.postListWidgetSliderArrowsSize,sliderArrowsColor:u.postListWidgetSliderArrowsColor},mobile:{sliderLoop:u.postListWidgetSliderLoopMobile,widgetBackgroundColor:u.postListWidgetBackgroundColorMobile,sliderAutoSlide:u.postListWidgetSliderAutoSlideMobile,sliderPauseTime:u.postListWidgetSliderPauseTimeMobile,sliderShowArrows:u.postListWidgetSliderShowArrowsMobile,sliderArrowsPosition:u.postListWidgetSliderArrowsPositionMobile,sliderArrowsSize:u.postListWidgetSliderArrowsSizeMobile,sliderArrowsColor:u.postListWidgetSliderArrowsColorMobile}};a.NumberOfPosts,a.NumberOfPosts,a.Paginated;var d,p;!function(e){e[e.Related=0]="Related",e[e.Recent=1]="Recent"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Button=1]="Button"}(p||(p={}));d.Related,d.Related,p.Text,s.OnGallery,s.OnGallery;const h="style.booleans.blog-isRelatedPostsEnabled",g="style.booleans.blog-mobile-isRelatedPostsEnabled",m="style.booleans.blog-isRelatedPostsLabelEnabled",f="style.booleans.blog-mobile-isRelatedPostsLabelEnabled",y="style.numbers.relatedPostsLabel",v="style.numbers.mobile-relatedPostsLabel",b={related:0,recent:1},S={0:"related-posts.title",1:"recent-posts.title"};b.related},67957:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,LL:()=>d,R2:()=>v,Vk:()=>h,X$:()=>p,Xc:()=>f,Yu:()=>m,kl:()=>s,lu:()=>y,m:()=>g,rO:()=>n,sq:()=>l});var o=r(16252),i=r(74740);const n="style.booleans.blog-mobile-isMobileDesignSettingsEnabled",a="titleFontSize",s="style.booleans.blog-isFeedDesignPropsMigrated",l="style.booleans.blog-isConfigurableLineClampingEnabled",u=(...e)=>`post-${e.filter(o.identity).join("-")}`,c=(e,t,r,o=!1)=>u((0,i.Sv)(e),t,o?"mobile":"",r),d=(e,t,r)=>c(e,t,a,r),p=(e,t,r)=>c(e,t,"descriptionFontSize",r),h=(...e)=>`style.numbers.${c(...e)}`,g=(e,t)=>`style.fonts.${u(e,t)}`,m=(...e)=>`style.numbers.${((e,t)=>`post-${(0,i.Sv)(e)}-${t}-cardBorderWidth`)(...e)}`,f=e=>`style.colors.${(e=>`post-${e}-borderColor`)(e)}`,y=e=>`style.colors.${(e=>`post-${e}-mobile-borderColor`)(e)}`,v="style.numbers.post-cardBorderWidth"},49457:(e,t,r)=>{"use strict";r.d(t,{k$:()=>i,nT:()=>o});var o,i,n;!function(e){e[e.Button=0]="Button",e[e.Text=1]="Text"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(i||(i={})),function(e){e[e.MostUsed=0]="MostUsed",e[e.Alphabetical=1]="Alphabetical"}(n||(n={}));i.Left,i.Left,i.Left,i.Left,n.MostUsed,n.MostUsed},68701:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});const o=e=>e?.id?e.id:e?._id?(console.log("[Wix Blog]",'No "id" field found',e),e._id):e?.internalId?e.internalId:void 0},54558:(e,t,r)=>{"use strict";r.d(t,{Ym:()=>a,kx:()=>i});r(16252);const o=e=>e.appConfig||{},i=e=>o(e).bundleName,n=(e,t)=>i(e)===t,a=e=>n(e,"post-page")},56040:(e,t,r)=>{"use strict";r.d(t,{Gw:()=>u,HW:()=>s,lT:()=>l});var o=r(16252),i=r(45967),n=r(44239),a=r(30223);const s=e=>(0,o.get)(e,"auth.currentUser"),l=((0,i.Mz)([s],(e=>e&&e.siteMemberId)),(0,i.Mz)([s],(e=>e&&e.slug)),(0,i.Mz)([s],(e=>e&&e.counters)),(0,i.Mz)([s],(e=>(0,o.get)(e,`appStore[${n.BLOG_APP_ID}].permissions.role`,"guest"))),(0,i.Mz)([s],(e=>Boolean(e&&e.isBlocked)))),u=(0,i.Mz)([s],(e=>e&&e.privacyStatus===a.g))},58632:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var o=r(16252);const i=(e,t,r)=>function(e,t,r){return r||(r="true"),(Array.isArray(r)?r:[r]).includes((0,o.get)(e,t))}((e=>e.experiments??{})(e),t,r)},34672:(e,t,r)=>{"use strict";r.d(t,{Qx:()=>l,Rk:()=>u,TH:()=>a,Wv:()=>s});const o=e=>e.tpaSettings,i=e=>o(e)?.settings??{},n=e=>i(e)?.comments??{},a=e=>void 0!==i(e).comments,s=e=>n(e).enabled??!0,l=e=>n(e).ratingsEnabled??!1,u=e=>(i(e).liveSiteEditingDeprecated||(e=>i(e).blocksPostPage??!1)(e))??!1},75403:(e,t,r)=>{"use strict";r.d(t,{loadableReady:()=>O});var o=r(60751),i=r.n(o),n=r(49257),a=r(68102),s=r(72367),l=r(51449),u=r(84271),c=r(58486),d=r.n(c);function p(e,t){if(!e){var r=new Error("loadable: "+t);throw r.framesToPop=1,r.name="Invariant Violation",r}}function h(e){console.warn("loadable: "+e)}var g=i().createContext(),m="__LOADABLE_REQUIRED_CHUNKS__";function f(e){return""+e+m}var y={initialChunks:{}},v="PENDING",b="REJECTED";var S=function(e){return e};function P(e){var t=e.defaultResolveComponent,r=void 0===t?S:t,o=e.render,c=e.onLoad;function h(e,t){void 0===t&&(t={});var h=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),m={};function f(e){return t.cacheKey?t.cacheKey(e):h.resolve?h.resolve(e):"static"}function S(e,o,i){var n=t.resolveComponent?t.resolveComponent(e,o):r(e);if(t.resolveComponent&&!(0,u.isValidElementType)(n))throw new Error("resolveComponent returned something that is not a React component!");return d()(i,n,{preload:!0}),n}var P,w,C=function(e){var t=f(e),r=m[t];return r&&r.status!==b||((r=h.requireAsync(e)).status=v,m[t]=r,r.then((function(){r.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:h.resolve(e),chunkName:h.chunkName(e),error:t?t.message:t}),r.status=b}))),r},E=function(e){function r(r){var o;return(o=e.call(this,r)||this).state={result:null,error:null,loading:!0,cacheKey:f(r)},p(!r.__chunkExtractor||h.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),r.__chunkExtractor?(!1===t.ssr||(h.requireAsync(r).catch((function(){return null})),o.loadSync(),r.__chunkExtractor.addChunk(h.chunkName(r))),(0,s.A)(o)):(!1!==t.ssr&&(h.isReady&&h.isReady(r)||h.chunkName&&y.initialChunks[h.chunkName(r)])&&o.loadSync(),o)}(0,l.A)(r,e),r.getDerivedStateFromProps=function(e,t){var r=f(e);return(0,a.A)({},t,{cacheKey:r,loading:t.loading||t.cacheKey!==r})};var i=r.prototype;return i.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===b&&this.setCache(),this.state.loading&&this.loadAsync()},i.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},i.componentWillUnmount=function(){this.mounted=!1},i.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},i.getCacheKey=function(){return f(this.props)},i.getCache=function(){return m[this.getCacheKey()]},i.setCache=function(e){void 0===e&&(e=void 0),m[this.getCacheKey()]=e},i.triggerOnLoad=function(){var e=this;c&&setTimeout((function(){c(e.state.result,e.props)}))},i.loadSync=function(){if(this.state.loading)try{var e=S(h.requireSync(this.props),this.props,I);this.state.result=e,this.state.loading=!1}catch(e){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:h.resolve(this.props),chunkName:h.chunkName(this.props),error:e?e.message:e}),this.state.error=e}},i.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var r=S(t,e.props,I);e.safeSetState({result:r,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},i.resolveAsync=function(){var e=this.props,t=(e.__chunkExtractor,e.forwardedRef,(0,n.A)(e,["__chunkExtractor","forwardedRef"]));return C(t)},i.render=function(){var e=this.props,r=e.forwardedRef,i=e.fallback,s=(e.__chunkExtractor,(0,n.A)(e,["forwardedRef","fallback","__chunkExtractor"])),l=this.state,u=l.error,c=l.loading,d=l.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===v)throw this.loadAsync();if(u)throw u;var p=i||t.fallback||null;return c?p:o({fallback:p,result:d,options:t,props:(0,a.A)({},s,{ref:r})})},r}(i().Component),A=(w=function(e){return i().createElement(g.Consumer,null,(function(t){return i().createElement(P,Object.assign({__chunkExtractor:t},e))}))},(P=E).displayName&&(w.displayName=P.displayName+"WithChunkExtractor"),w),I=i().forwardRef((function(e,t){return i().createElement(A,Object.assign({forwardedRef:t},e))}));return I.displayName="Loadable",I.preload=function(e){I.load(e)},I.load=function(e){return C(e)},I}return{loadable:h,lazy:function(e,t){return h(e,(0,a.A)({},t,{suspense:!0}))}}}var w=P({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,r=e.props;return i().createElement(t,r)}}),C=w.loadable,E=w.lazy,A=P({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,r=e.props;return r.children?r.children(t):null}}),I=A.loadable,_=A.lazy,T="undefined"!=typeof window;function O(e,t){void 0===e&&(e=function(){});var r=void 0===t?{}:t,o=r.namespace,i=void 0===o?"":o,n=r.chunkLoadingGlobal,a=void 0===n?"__LOADABLE_LOADED_CHUNKS__":n;if(!T)return h("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var s=null;if(T){var l=f(i),u=document.getElementById(l);if(u){s=JSON.parse(u.textContent);var c=document.getElementById(l+"_ext");if(!c)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(c.textContent).namedChunks.forEach((function(e){y.initialChunks[e]=!0}))}}if(!s)return h("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var d=!1;return new Promise((function(e){window[a]=window[a]||[];var t=window[a],r=t.push.bind(t);function o(){s.every((function(e){return t.some((function(t){return t[0].indexOf(e)>-1}))}))&&(d||(d=!0,e()))}t.push=function(){r.apply(void 0,arguments),o()},o()})).then(e)}var x=C;x.lib=I,E.lib=_},78544:(e,t,r)=>{"use strict";r.r(t),r.d(t,{classes:()=>i,cssStates:()=>u,keyframes:()=>n,layers:()=>a,namespace:()=>o,st:()=>d,stVars:()=>s,style:()=>c,vars:()=>l});var o="ojV7EMp",i={root:"sr68_Zl"},n={},a={},s={},l={},u=r.stc.bind(null,o),c=r.sts.bind(null,o),d=c},39528:(e,t,r)=>{"use strict";r.r(t),r.d(t,{classes:()=>i,cssStates:()=>u,keyframes:()=>n,layers:()=>a,namespace:()=>o,st:()=>d,stVars:()=>s,style:()=>c,vars:()=>l});var o="oBOzC4P",i={root:"s__8Q1fd3"},n={},a={},s={},l={},u=r.stc.bind(null,o),c=r.sts.bind(null,o),d=c},89422:(e,t,r)=>{"use strict";r.r(t),r.d(t,{classes:()=>i,cssStates:()=>u,keyframes:()=>n,layers:()=>a,namespace:()=>o,st:()=>d,stVars:()=>s,style:()=>c,vars:()=>l});var o="ovDvCKH",i={root:"sFt1Kaa"},n={},a={},s={},l={},u=r.stc.bind(null,o),c=r.sts.bind(null,o),d=c},40795:e=>{e.exports={YEAR_SLASH_MONTH_OPTIONAL_SLASH_DAY:"([12]\\d{3})/(0[1-9]|1[0-2])(/(0[1-9]|[12][0-9]|3[01]))?",TEXT_WITHOUT_SLASH:"([^/]+)"}},13512:(e,t,r)=>{"use strict";t.py=t.g3=t.Ql=void 0;var o=r(16252),i=o.sortBy,n=o.intersection,a=r(53072),s=(t.g3=function(e){return void 0===e&&(e=[]),i(e,[function(e){return!e.isPinned},function(e){return-a(e.firstPublishedDate)}])},t.Ql=function(e){return void 0===e&&(e=[]),i(e,(function(e){return-a(e.firstPublishedDate)}))});t.py=s},53072:e=>{e.exports=function(e){return e instanceof Date?e:new Date(e)}},81693:(e,t,r)=>{"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i=r(63986);e.exports=o({},i,{BLOG_APP_ID:"14bcded7-0066-7c35-14d7-466cb3f09103",PAYWALL_APP_ID:"27125d23-126b-493a-bd7d-fc37eba188df",PAID_PLANS_APP_ID:"1522827f-c56c-a5c9-2ac9-00f9e6ae12d3",PAID_PLANS_SECTION_ID:"membership_plan_picker_tpa",SITE_MEMBERS_APP_ID:"SiteMembers",MEMBERS_ABOUT_APP_ID:"14dbef06-cc42-5583-32a7-3abd44da4908",SEARCH_APP_ID:"1484cb44-49cd-5b39-9681-75188ab429de",MULTILINGUAL_APP_ID:"14d84998-ae09-1abf-c6fc-3f3cace5bf19"})},63986:e=>{"use strict";e.exports={APP_PROTOCOL:"https",BLOG_SECTION_ID:"blog",BLOG_POST_PAGE_SECTION_ID:"post",MEMBERS_APP_ID:"14ad9202-3dd3-128a-57bd-e5675fd7e313",FORUM_APP_ID:"14724f35-6794-cd1a-0244-25fd138f9242",FORUM_SECTION_ID:"forum",SANTA_MEMBERS_APP_ID:"14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",NOTIFICATIONS_APP_ID:"14f25924-5664-31b2-9568-f9c5ed98c9b1",NOTIFICATIONS_SETTING_APP_ID:"14f25dc5-6af3-5420-9568-f9c5ed98c9b1",MEMBER_INFO_APP_ID:"14cffd81-5215-0a7f-22f8-074b0e2401fb",MEMBER_INFO_SECTION_ID:"member_info",FOLLOWERS_APP_ID:"14ebe801-d78a-daa9-c9e5-0286a891e46f",FORUM_RECENT_POST_WIDGET_ID:"151bd179-dfe6-3ca3-399c-ee97957f93a2",FORUM_APP_PAGE_ID:"1489040e-001f-4631-55a9-2c29b4417126",CHAT_APP_DEF_ID:"14517e1a-3ff0-af98-408e-2bd6953c36a2"}},62445:(e,t,r)=>{"use strict";var o=r(16252),i=o.chain,n=o.identity,a=o.trim,s=o.truncate,l=function(e){return e.replace(/{\$h\d}(.*?){\$h}/g,(function(e,t){return t}))};e.exports={getContentText:function(e,t){var r=i(e).get("blocks",[]).filter((function(e){return"atomic"!==e.type})).map((function(e){return a(e.text)})).map(l).filter(n).join(" ").value();return t?s(r,{length:t}):r}}},97026:(e,t)=>{"use strict";t.hot=void 0;t.hot=function(e,t){return t}},21717:(e,t,r)=>{e.exports=r(97026)},10020:function(e){var t;"undefined"!=typeof self&&self,t=()=>(()=>{"use strict";var e={"../editor-platform-sdk-types/dist/esm/common.js":
/*!*******************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/common.js ***!
  \*******************************************************/(e,t,r)=>{var o,i,n,a,s;r.r(t),r.d(t,{AddElementsPanelBannerIcons:()=>s,DeviceType:()=>i,LinkTypes:()=>o,TPAComponentType:()=>n,WidgetInstallationType:()=>a}),function(e){e.NoLink="NoLink",e.PageLink="PageLink",e.AnchorLink="AnchorLink",e.ExternalLink="ExternalLink",e.DocumentLink="DocumentLink",e.PhoneLink="PhoneLink",e.EmailLink="EmailLink",e.LoginToWixLink="LoginToWixLink",e.DynamicPageLink="DynamicPageLink",e.EdgeAnchorLink="EdgeAnchorLinks",e.PopupLink="PopupLink",e.FormSubmitButtonLink="FormSubmitButtonLink"}(o||(o={})),function(e){e.Desktop="desktop",e.Mobile="mobile"}(i||(i={})),function(e){e.Page="PAGE",e.Widget="WIDGET"}(n||(n={})),function(e){e.Open="open",e.Closed="closed"}(a||(a={})),function(e){e.AllBreakpoints="all-breakpoints"}(s||(s={}))},"../editor-platform-sdk-types/dist/esm/definitions/appEditorApi.js":
/*!*************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/appEditorApi.js ***!
  \*************************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/appReflow.js":
/*!**********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/appReflow.js ***!
  \**********************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/consentPolicy.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/consentPolicy.js ***!
  \**************************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/index.js":
/*!******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/index.js ***!
  \******************************************************************/(e,t,r)=>{r.r(t),r.d(t,{EditorSubType:()=>n.EditorSubType,EditorType:()=>n.EditorType,InstallInitiator:()=>n.InstallInitiator,InstallationOriginType:()=>n.InstallationOriginType,MediaType:()=>o.MediaType,NotificationPresetTypes:()=>i.NotificationPresetTypes,NotificationType:()=>i.NotificationType,PagesPanelTabType:()=>a.PagesPanelTabType,PanelResolveType:()=>a.PanelResolveType,PanelType:()=>a.PanelType,PremiumIntent:()=>s.PremiumIntent,customizeActions:()=>a.customizeActions}),r(/*! ./appEditorApi */"../editor-platform-sdk-types/dist/esm/definitions/appEditorApi.js"),r(/*! ./consentPolicy */"../editor-platform-sdk-types/dist/esm/definitions/consentPolicy.js");var o=r(/*! ./media */"../editor-platform-sdk-types/dist/esm/definitions/media.js"),i=(r(/*! ./monitoring */"../editor-platform-sdk-types/dist/esm/definitions/monitoring.js"),r(/*! ./notifications */"../editor-platform-sdk-types/dist/esm/definitions/notifications.js")),n=r(/*! ./origin */"../editor-platform-sdk-types/dist/esm/definitions/origin.js"),a=(r(/*! ./pageDefinition */"../editor-platform-sdk-types/dist/esm/definitions/pageDefinition.js"),r(/*! ./panels */"../editor-platform-sdk-types/dist/esm/definitions/panels.js")),s=r(/*! ./premiumIntent */"../editor-platform-sdk-types/dist/esm/definitions/premiumIntent.js");r(/*! ./responsiveLayout */"../editor-platform-sdk-types/dist/esm/definitions/responsiveLayout.js"),r(/*! ./info */"../editor-platform-sdk-types/dist/esm/definitions/info.js"),r(/*! ./appReflow */"../editor-platform-sdk-types/dist/esm/definitions/appReflow.js")},"../editor-platform-sdk-types/dist/esm/definitions/info.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/info.js ***!
  \*****************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/media.js":
/*!******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/media.js ***!
  \******************************************************************/(e,t,r)=>{var o;r.r(t),r.d(t,{MediaType:()=>o}),function(e){e.Image="IMAGE",e.Video="VIDEO",e.Document="DOCUMENT"}(o||(o={}))},"../editor-platform-sdk-types/dist/esm/definitions/monitoring.js":
/*!***********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/monitoring.js ***!
  \***********************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/notifications.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/notifications.js ***!
  \**************************************************************************/(e,t,r)=>{var o,i;r.r(t),r.d(t,{NotificationPresetTypes:()=>i,NotificationType:()=>o}),function(e){e.Success="success",e.Error="error",e.Warning="warning",e.Info="info"}(o||(o={})),function(e){e.REPEATER_EDITOR_MAX_ITEMS="repeaterMaxItemsEditorLimitation"}(i||(i={}))},"../editor-platform-sdk-types/dist/esm/definitions/origin.js":
/*!*******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/origin.js ***!
  \*******************************************************************/(e,t,r)=>{var o,i,n,a;r.r(t),r.d(t,{EditorSubType:()=>i,EditorType:()=>o,InstallInitiator:()=>n,InstallationOriginType:()=>a}),function(e){e.Classic="CLASSIC",e.Responsive="RESPONSIVE",e.ADI="ADI",e.ADI_MA="ADI_MA",e.ADI_TEMPLATE="ADI_TEMPLATE",e.Blocks="blocks"}(o||(o={})),function(e){e.EditorX="EDITOR_X",e.Studio="STUDIO"}(i||(i={})),function(e){e.Editor="EDITOR",e.App="APP",e.Dependency_Service="Dependency_Service"}(n||(n={})),function(e){e.AppMarket="APP_MARKET",e.AddPanel="ADD_PANEL",e.AppPanel="APP_PANEL",e.PageSettingsPanel="PAGE_SETTINGS_PANEL",e.PresetService="PRESET_SERVICE",e.SITE_CREATION="SITE_CREATION",e.SITE_GENERATION="SITE_GENERATION",e.SILENT_INSTALL_SITE_CREATION="SILENT_INSTALL_SITE_CREATION",e.SILENT_INSTALL="SILENT_INSTALL",e.INTENT_INSTALL="INTENT_INSTALL",e.ADD_SECTION_PANEL="ADD_SECTION_PANEL",e.ADD_PAGE_PANEL="ADD_PAGE_PANEL",e.COPY_PASTE="COPY_PASTE",e.INTRO_FUNNEL="INTRO_FUNNEL",e.PAGES_PANEL="PAGES_PANEL",e.PAGE_SETTINGS_PANEL="PAGE_SETTINGS_PANEL",e.IMPORT_PANEL="IMPORT_PANEL",e.MY_BUSINESS="MY_BUSINESS",e.IFRAME_JS_SDK="IFRAME_JS_SDK",e.UPDATE_PANEL="UPDATE_PANEL"}(a||(a={}))},"../editor-platform-sdk-types/dist/esm/definitions/pageDefinition.js":
/*!***************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/pageDefinition.js ***!
  \***************************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/definitions/panels.js":
/*!*******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/panels.js ***!
  \*******************************************************************/(e,t,r)=>{var o,i,n,a;r.r(t),r.d(t,{PagesPanelTabType:()=>n,PanelResolveType:()=>i,PanelType:()=>o,customizeActions:()=>a}),function(e){e.Settings="settings",e.Layout="layout",e.Design="design",e.Upgrade="upgrade",e.Add="add"}(o||(o={})),function(e){e.MAIN_ACTION="mainActionClicked",e.SECONDARY_ACTION="secActionClicked",e.CLOSE_ACTION="closeActionClicked"}(i||(i={})),function(e){e.PageInfo="page_info",e.Layout="layout",e.Permissions="permissions",e.SEO="seo"}(n||(n={})),function(e){e.Custom="Custom"}(a||(a={}))},"../editor-platform-sdk-types/dist/esm/definitions/premiumIntent.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/premiumIntent.js ***!
  \**************************************************************************/(e,t,r)=>{var o;r.r(t),r.d(t,{PremiumIntent:()=>o}),function(e){e.Neutral="NEUTRAL",e.Free="FREE",e.Paid="PAID"}(o||(o={}))},"../editor-platform-sdk-types/dist/esm/definitions/responsiveLayout.js":
/*!*****************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/definitions/responsiveLayout.js ***!
  \*****************************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/editor-app.js":
/*!***********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/editor-app.js ***!
  \***********************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/events/EventType.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/EventType.js ***!
  \*****************************************************************/(e,t,r)=>{var o;r.r(t),r.d(t,{EventType:()=>o,customEventTypes:()=>i,generalEventTypes:()=>n}),function(e){e.appMenuReorder="appMenuReorder",e.componentDeleted="componentDeleted",e.componentGfppClicked="componentGfppClicked",e.appActionClicked="appActionClicked",e.connectedComponentPasted="connectedComponentPasted",e.connectedComponentDuplicated="connectedComponentDuplicated",e.concurrentPanelEdit="concurrentPanelEdit",e.widgetPasted="widgetPasted",e.widgetDuplicated="widgetDuplicated",e.widgetAdded="widgetAdded",e.controllerAdded="controllerAdded",e.controllerSettingsButtonClicked="controllerSettingsButtonClicked",e.controllerGfppClicked="controllerGfppClicked",e.stateChanged="stateChanged",e.stateAdded="stateAdded",e.stateDuplicated="stateDuplicated",e.pageDeleted="pageDeleted",e.siteWasPublished="siteWasPublished",e.siteWasFirstSaved="siteWasFirstSaved",e.siteWasSaved="siteWasSaved",e.startConfiguration="startConfiguration",e.welcomeSectionMainActionClicked="welcomeSectionMainActionClicked",e.widgetGfppClicked="widgetGfppClicked",e.appUpgradeCompleted="appUpgradeCompleted",e.instanceChanged="instanceChanged",e.componentSelectionChanged="componentSelectionChanged",e.globalDesignPresetChanged="globalDesignPresetChanged",e.developerModeChanged="developerModeChanged",e.developerModeStatusChanged="developerModeStatusChanged",e.focusedPageChanged="focusedPageChanged",e.componentAddedToStage="componentAddedToStage",e.connectedComponentAddedToStage="connectedComponentAddedToStage",e.presetChanged="presetChanged",e.anyComponentAddedToStage="anyComponentAddedToStage",e.appUpdateCompleted="appUpdateCompleted",e.appRefreshCompleted="appRefreshCompleted",e.componentAnimationChanged="componentAnimationChanged",e.componentDataChanged="componentDataChanged",e.componentDesignChanged="componentDesignChanged",e.componentStyleChanged="componentStyleChanged",e.switchedFromPreview="switchedFromPreview",e.componentArrangementChanged="componentArrangementChanged",e.componentDragEnded="componentDragEnded",e.componentResizeStarted="componentResizeStarted",e.componentRotateEnded="componentRotateEnded",e.sitePublishedDialogClosed="sitePublishedDialogClosed",e.pageBackgroundChanged="pageBackgroundChanged",e.mobileTextScaleChanged="mobileTextScaleChanged",e.componentCropSaved="componentCropSaved",e.toggleBackToTopButtonOn="toggleBackToTopButtonOn",e.componentBehaviorChanged="componentBehaviorChanged",e.componentPropsChanged="componentPropsChanged",e.switchedToMobileView="switchedToMobileView",e.switchedToDesktopView="switchedToDesktopView",e.textEditBoxClosed="textEditBoxClosed",e.hideMobileElement="hideMobileElement",e.showMobileElement="showMobileElement",e.pageRenamed="pageRenamed",e.addDynamicPageClicked="addDynamicPageClicked",e.consentPolicyChanged="consentPolicyChanged",e.pageDuplicated="pageDuplicated",e.pageAdded="pageAdded",e.undo="undo",e.redo="redo",e.addElementsCompClicked="addElementsCompClicked",e.addElementsAllCompsClicked="addElementsAllCompsClicked",e.addElementsResetClicked="addElementsResetClicked",e.appVisitedInDashboard="appVisitedInDashboard",e.componentAddedToApp="componentAddedToApp",e.documentOperationError="documentOperationError",e.solveAddWidgetLimitation="solveAddWidgetLimitation",e.componentConnected="componentConnected",e.componentDisconnected="componentDisconnected",e.panelHeaderButtonClicked="panelHeaderButtonClicked",e.themeChanged="themeChanged",e.viewStateChanged="viewStateChanged",e.revokeApp="revokeApp",e.grantApp="grantApp",e.pageVariantSelected="pageVariantSelected",e.resetWidgetOverrides="resetWidgetOverrides",e.widgetPluginAdded="widgetPluginAdded",e.widgetPluginRemoved="widgetPluginRemoved",e.widgetPluginShowOnPageClicked="widgetPluginShowOnPageClicked",e.appInstalled="appInstalled",e.removeAppCompleted="removeAppCompleted",e.siteLanguageChanged="siteLanguageChanged"}(o||(o={}));const i=[o.componentSelectionChanged,o.focusedPageChanged,o.anyComponentAddedToStage,o.appUpdateCompleted,o.componentAnimationChanged,o.componentDataChanged,o.componentDesignChanged,o.componentStyleChanged,o.switchedFromPreview,o.componentArrangementChanged,o.componentDragEnded,o.componentResizeStarted,o.componentRotateEnded,o.sitePublishedDialogClosed,o.pageBackgroundChanged,o.mobileTextScaleChanged,o.componentCropSaved,o.toggleBackToTopButtonOn,o.componentBehaviorChanged,o.appRefreshCompleted,o.componentPropsChanged,o.switchedToMobileView,o.switchedToDesktopView,o.textEditBoxClosed,o.hideMobileElement,o.showMobileElement,o.undo,o.redo,o.appVisitedInDashboard,o.developerModeStatusChanged,o.componentConnected,o.componentDisconnected,o.solveAddWidgetLimitation,o.pageDuplicated,o.pageAdded,o.themeChanged,o.viewStateChanged,o.pageVariantSelected,o.siteLanguageChanged],n=[o.appMenuReorder,o.componentDeleted,o.componentGfppClicked,o.appActionClicked,o.connectedComponentPasted,o.connectedComponentDuplicated,o.concurrentPanelEdit,o.widgetPasted,o.widgetDuplicated,o.widgetAdded,o.resetWidgetOverrides,o.widgetPluginAdded,o.widgetPluginRemoved,o.widgetPluginShowOnPageClicked,o.controllerAdded,o.controllerSettingsButtonClicked,o.controllerGfppClicked,o.presetChanged,o.stateChanged,o.stateAdded,o.stateDuplicated,o.pageDeleted,o.siteWasPublished,o.siteWasFirstSaved,o.siteWasSaved,o.startConfiguration,o.welcomeSectionMainActionClicked,o.widgetGfppClicked,o.appUpgradeCompleted,o.instanceChanged,o.globalDesignPresetChanged,o.developerModeChanged,o.connectedComponentAddedToStage,o.pageRenamed,o.addDynamicPageClicked,o.consentPolicyChanged,o.addElementsCompClicked,o.addElementsAllCompsClicked,o.addElementsResetClicked,o.componentAddedToApp,o.documentOperationError,o.panelHeaderButtonClicked,o.grantApp,o.revokeApp,o.appInstalled,o.removeAppCompleted]},"../editor-platform-sdk-types/dist/esm/events/EventsInterfaceMap.js":
/*!**************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/EventsInterfaceMap.js ***!
  \**************************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/events/eventInterfaces.js":
/*!***********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/eventInterfaces.js ***!
  \***********************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/events/index.js":
/*!*************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/events/index.js ***!
  \*************************************************************/(e,t,r)=>{r.r(t),r.d(t,{EventType:()=>o.EventType,customEventTypes:()=>o.customEventTypes,generalEventTypes:()=>o.generalEventTypes}),r(/*! ./eventInterfaces */"../editor-platform-sdk-types/dist/esm/events/eventInterfaces.js");var o=r(/*! ./EventType */"../editor-platform-sdk-types/dist/esm/events/EventType.js");r(/*! ./EventsInterfaceMap */"../editor-platform-sdk-types/dist/esm/events/EventsInterfaceMap.js")},"../editor-platform-sdk-types/dist/esm/index.js":
/*!******************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/index.js ***!
  \******************************************************/(e,t,r)=>{r.r(t),r.d(t,{AddElementsPanelBannerIcons:()=>i.AddElementsPanelBannerIcons,DeviceType:()=>i.DeviceType,EditorSubType:()=>n.EditorSubType,EditorType:()=>n.EditorType,EventType:()=>a.EventType,InstallInitiator:()=>n.InstallInitiator,InstallationOriginType:()=>n.InstallationOriginType,LinkTypes:()=>i.LinkTypes,MediaType:()=>n.MediaType,MemberKind:()=>o.MemberKind,NotificationPresetTypes:()=>n.NotificationPresetTypes,NotificationType:()=>n.NotificationType,PagesPanelTabType:()=>n.PagesPanelTabType,PanelResolveType:()=>n.PanelResolveType,PanelType:()=>n.PanelType,PremiumIntent:()=>n.PremiumIntent,TPAComponentType:()=>i.TPAComponentType,WidgetInstallationType:()=>i.WidgetInstallationType,customEventTypes:()=>a.customEventTypes,customizeActions:()=>n.customizeActions,generalEventTypes:()=>a.generalEventTypes}),r(/*! ./editor-app */"../editor-platform-sdk-types/dist/esm/editor-app.js");var o=r(/*! ./manifest */"../editor-platform-sdk-types/dist/esm/manifest.js"),i=r(/*! ./common */"../editor-platform-sdk-types/dist/esm/common.js"),n=r(/*! ./definitions */"../editor-platform-sdk-types/dist/esm/definitions/index.js"),a=r(/*! ./events */"../editor-platform-sdk-types/dist/esm/events/index.js");r(/*! ./tpaStyleParams */"../editor-platform-sdk-types/dist/esm/tpaStyleParams.js"),r(/*! ./sdk */"../editor-platform-sdk-types/dist/esm/sdk/index.js")},"../editor-platform-sdk-types/dist/esm/manifest.js":
/*!*********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/manifest.js ***!
  \*********************************************************/(e,t,r)=>{var o;r.r(t),r.d(t,{MemberKind:()=>o}),function(e){e.MEMBER="member",e.FUNCTION="function"}(o||(o={}))},"../editor-platform-sdk-types/dist/esm/sdk/app-settings.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/app-settings.js ***!
  \*****************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/document/application.js":
/*!*************************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/document/application.js ***!
  \*************************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/document/index.js":
/*!*******************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/document/index.js ***!
  \*******************************************************************/(e,t,r)=>{r.r(t),r(/*! ./application */"../editor-platform-sdk-types/dist/esm/sdk/document/application.js")},"../editor-platform-sdk-types/dist/esm/sdk/editor/index.js":
/*!*****************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/editor/index.js ***!
  \*****************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/editorSDK.js":
/*!**************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/editorSDK.js ***!
  \**************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/event-listeners.js":
/*!********************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/event-listeners.js ***!
  \********************************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/extra.js":
/*!**********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/extra.js ***!
  \**********************************************************/(e,t,r)=>{r.r(t)},"../editor-platform-sdk-types/dist/esm/sdk/index.js":
/*!**********************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/sdk/index.js ***!
  \**********************************************************/(e,t,r)=>{r.r(t),r(/*! ./editorSDK */"../editor-platform-sdk-types/dist/esm/sdk/editorSDK.js"),r(/*! ./extra */"../editor-platform-sdk-types/dist/esm/sdk/extra.js"),r(/*! ./event-listeners */"../editor-platform-sdk-types/dist/esm/sdk/event-listeners.js"),r(/*! ./editor */"../editor-platform-sdk-types/dist/esm/sdk/editor/index.js"),r(/*! ./app-settings */"../editor-platform-sdk-types/dist/esm/sdk/app-settings.js"),r(/*! ./document */"../editor-platform-sdk-types/dist/esm/sdk/document/index.js")},"../editor-platform-sdk-types/dist/esm/tpaStyleParams.js":
/*!***************************************************************!*\
  !*** ../editor-platform-sdk-types/dist/esm/tpaStyleParams.js ***!
  \***************************************************************/(e,t,r)=>{r.r(t)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{
/*!******************!*\
  !*** ./index.ts ***!
  \******************/
r.r(o),r.d(o,{AddElementsPanelBannerIcons:()=>e.AddElementsPanelBannerIcons,DeviceType:()=>e.DeviceType,EditorSubType:()=>e.EditorSubType,EditorType:()=>e.EditorType,EventType:()=>e.EventType,InstallInitiator:()=>e.InstallInitiator,InstallationOriginType:()=>e.InstallationOriginType,LinkTypes:()=>e.LinkTypes,MediaType:()=>e.MediaType,MemberKind:()=>e.MemberKind,NotificationPresetTypes:()=>e.NotificationPresetTypes,NotificationType:()=>e.NotificationType,PagesPanelTabType:()=>e.PagesPanelTabType,PanelResolveType:()=>e.PanelResolveType,PanelType:()=>e.PanelType,PremiumIntent:()=>e.PremiumIntent,TPAComponentType:()=>e.TPAComponentType,WidgetInstallationType:()=>e.WidgetInstallationType,customEventTypes:()=>e.customEventTypes,customizeActions:()=>e.customizeActions,generalEventTypes:()=>e.generalEventTypes});var e=r(/*! @wix/editor-platform-sdk-types */"../editor-platform-sdk-types/dist/esm/index.js")})(),o})(),e.exports=t()},11416:(e,t,r)=>{"use strict";r.d(t,{H:()=>n,s:()=>i});var o=r(60751),i=r.n(o)().createContext({ready:!1,set:null,get:null,getDefaultValue:null,reset:null,resetAll:null,changeSiteColors:null,getStylesForAllBreakpoints:null}),n=i.Consumer},86019:(e,t,r)=>{"use strict";var o;r.d(t,{N:()=>o}),function(e){e.Number="Number",e.Boolean="Boolean",e.Font="Font",e.Color="Color",e.String="String"}(o||(o={}))},28853:(e,t,r)=>{"use strict";r.d(t,{D:()=>i,K:()=>n});var o=r(34629);function i(e){return Object.keys(e).reduce((function(t,r){return t[r]=(0,o.__assign)((0,o.__assign)({},e[r]),{key:e[r].key||r}),t}),{})}var n=function(e,t){return(0,o.__assign)({key:e},t)}},92213:(e,t,r)=>{"use strict";r.d(t,{N:()=>s});var o=r(55286),i=["white/black","black/white","primery-1","primery-2","primery-3"];function n(e){var t=e.colors,r=e.reference,n=e.opacity,a=void 0===n?1:n,s=t.find((function(e){var t,o,n,a;return(null!==(t=e.reference)&&void 0!==t?t:(o=e.name,n=o.split("_")[1],(a=Number(n))<=5?i[a-1]:"".concat("color-").concat(a-10)))===r}))||null;return{opacity:a,value:(0,o.A)(null==s?void 0:s.value,a).rgb(),name:null==s?void 0:s.name}}var a={"color-fill-background-primary":"color-1","color-fill-background-secondary":"color-2","color-text-primary":"color-5","color-text-secondary":"color-4","color-action":"color-8","color-disabled":"color-29","color-title":"color-35","color-subtitle":"color-36","color-line":"color-37","button-color-fill-primary":"color-38","button-color-border-primary":"color-39","button-color-text-primary":"color-40","button-color-fill-primary-hover":"color-41","button-color-border-primary-hover":"color-42","button-color-text-primary-hover":"color-43","button-color-fill-primary-disabled":"color-44","button-color-border-primary-disabled":"color-45","button-color-text-primary-disabled":"color-46","button-color-fill-secondary":"color-47","button-color-border-secondary":"color-48","button-color-text-secondary":"color-49","button-color-fill-secondary-hover":"color-50","button-color-border-secondary-hover":"color-51","button-color-text-secondary-hover":"color-52","button-color-fill-secondary-disabled":"color-53","button-color-border-secondary-disabled":"color-54","button-color-text-secondary-disabled":"color-55","color-fill-base-1":"color-26","color-fill-base-2":"color-27","color-fill-base-shade-1":"color-28","color-fill-base-shade-2":"color-29","color-fill-base-shade-3":"color-30","color-fill-accent-1":"color-31","color-fill-accent-2":"color-32","color-fill-accent-3":"color-33","color-fill-accent-4":"color-34"},s=function(e,t){return function(r){var o=r.colors;return n({reference:a[e]||e,opacity:t,colors:o})}}},89229:(e,t,r)=>{"use strict";r.d(t,{NY:()=>i,ro:()=>n});var o=r(34629);function i(e,t){if(void 0===t&&(t={}),!t[e])return null;var r=t[e];return{size:parseInt(r.size,10),family:r.fontFamily,preset:e,style:{bold:"bold"===r.weight,italic:"italic"===r.style,underline:!1},fontStyleParam:!1}}var n=function(e,t){return void 0===t&&(t={}),function(r){var n=r.textPresets;return(0,o.__assign)((0,o.__assign)({},function(e){return i(e.name,e.textPresets)}({name:e,textPresets:n})),t)}}},55286:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(34629),i=r(56250),n=r.n(i);const a=function(e,t){var r,i,a;if(e){var s=n().get(e);if(null===s)throw new Error("Unable to parse color from string: "+e);i=s.value.slice(0,3),a=null!==(r=s.value[3])&&void 0!==r?r:1}else i=[0,0,0],a=1;return{rgb:function(){var e;return(e=n().to).rgb.apply(e,(0,o.__spreadArray)((0,o.__spreadArray)([],i,!1),[null!=t?t:a],!1))},hex:function(){return e=i,t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase(),"000000".substring(t.length)+t;var e,t},opacity:function(){return null!=t?t:a}}}},8503:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var o=r(60751),i=r.n(o)().createContext(null)},40565:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var o=r(60751),i=r.n(o),n=r(8503);function a(e){var t=void 0===e?{}:e,r=t.suspense,o=void 0===r||r,a=(t.readOnly,i().useContext(n.q));if(!a)throw new Error("You are trying to get Experiments outside ExperimentsProvider component.\nPlease wrap up your application in ExperimentsProvider.");var s=a.ready,l=a.promise,u=a.experimentsInstance;if(o&&!s)throw l;return{ready:s,experiments:u}}},41758:(e,t,r)=>{"use strict";r.d(t,{TO:()=>d,gJ:()=>l,hz:()=>c,rV:()=>u});var o=r(92099),i=r(48183),n=(r(41705),r(60751));var a,s={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:r(10197).x},l=(0,n.createContext)();function u(){return s}var c=function(){function e(){(0,o.A)(this,e),this.usedNamespaces={}}return(0,i.A)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function d(){return a}},10197:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var o=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,i={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},n=function(e){return i[e]},a=function(e){return e.replace(o,n)}},64739:(e,t,r)=>{"use strict";r.d(t,{B:()=>d});var o=r(10911),i=r(41705),n=r(60751),a=r(41758),s=r(73228);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c=function(e,t){var r=(0,n.useRef)();return(0,n.useEffect)((function(){r.current=t?r.current:e}),[e,t]),r.current};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,i=(0,n.useContext)(a.gJ)||{},l=i.i18n,d=i.defaultNS,p=r||l||(0,a.TO)();if(p&&!p.reportNamespaces&&(p.reportNamespaces=new a.hz),!p){(0,s.mc)("You will need to pass in an i18next instance by using initReactI18next");var h=function(e){return Array.isArray(e)?e[e.length-1]:e},g=[h,{},!1];return g.t=h,g.i18n={},g.ready=!1,g}p.options.react&&void 0!==p.options.react.wait&&(0,s.mc)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=u(u(u({},(0,a.rV)()),p.options.react),t),f=m.useSuspense,y=m.keyPrefix,v=e||d||p.options&&p.options.defaultNS;v="string"==typeof v?[v]:v||["translation"],p.reportNamespaces.addUsedNamespaces&&p.reportNamespaces.addUsedNamespaces(v);var b=(p.isInitialized||p.initializedStoreOnce)&&v.every((function(e){return(0,s.NM)(e,p,m)}));function S(){return p.getFixedT(null,"fallback"===m.nsMode?v:v[0],y)}var P=(0,n.useState)(S),w=(0,o.A)(P,2),C=w[0],E=w[1],A=v.join(),I=c(A),_=(0,n.useRef)(!0);(0,n.useEffect)((function(){var e=m.bindI18n,t=m.bindI18nStore;function r(){_.current&&E(S)}return _.current=!0,b||f||(0,s.dM)(p,v,(function(){_.current&&E(S)})),b&&I&&I!==A&&_.current&&E(S),e&&p&&p.on(e,r),t&&p&&p.store.on(t,r),function(){_.current=!1,e&&p&&e.split(" ").forEach((function(e){return p.off(e,r)})),t&&p&&t.split(" ").forEach((function(e){return p.store.off(e,r)}))}}),[p,A]);var T=(0,n.useRef)(!0);(0,n.useEffect)((function(){_.current&&!T.current&&E(S),T.current=!1}),[p,y]);var O=[C,p,b];if(O.t=C,O.i18n=p,O.ready=b,b)return O;if(!b&&!f)return O;throw new Promise((function(e){(0,s.dM)(p,v,(function(){e()}))}))}},73228:(e,t,r)=>{"use strict";function o(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r.d(t,{Mn:()=>l,NM:()=>s,dM:()=>a,mc:()=>n});var i={};function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&i[t[0]]||("string"==typeof t[0]&&(i[t[0]]=new Date),o.apply(void 0,t))}function a(e,t,r){e.loadNamespaces(t,(function(){if(e.isInitialized)r();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}}))}function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,o){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.languages[0],i=!!t.options&&t.options.fallbackLng,n=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,r){var o=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===o||2===o};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(o,e)||i&&!a(n,e)))}(e,t,r):(n("i18n.languages were undefined or empty",t.languages),!0)}function l(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},19635:(e,t,r)=>{e.exports=r(75403)},26179:(e,t,r)=>{e.exports=r(16252).cloneDeep},77172:(e,t,r)=>{e.exports=r(16252).memoize},51387:(e,t,r)=>{"use strict";r.d(t,{$O:()=>o});const o=e=>{let{isMobile:t,getStyleParamValue:r,paramName:o,mobileParamName:i,dependencyParam:n}=e;if(t){if(r(n)){const e=r(i);if(void 0!==e)return e}}return r(o)}},12084:(e,t,r)=>{"use strict";r.d(t,{$5:()=>rt,$N:()=>F,A:()=>Ne,A7:()=>W,AG:()=>R,Ah:()=>Le,Ay:()=>se,DE:()=>It,E5:()=>ne,ER:()=>he,Ey:()=>X,F3:()=>Ce,Ft:()=>j,GA:()=>I,Gb:()=>Fe,Gh:()=>ce,Gn:()=>O,HB:()=>oe,HV:()=>y,Hb:()=>C,Hp:()=>Se,I0:()=>z,IA:()=>Ze,Ik:()=>xt,KC:()=>ft,KQ:()=>Ct,Kb:()=>te,Kc:()=>re,LF:()=>_,Lr:()=>$,M8:()=>yt,Mt:()=>wt,Mv:()=>x,NJ:()=>bt,NV:()=>Xe,Nn:()=>T,O2:()=>M,OA:()=>Q,OB:()=>U,OR:()=>ve,Om:()=>je,P4:()=>Ge,PF:()=>b,PP:()=>Ie,Qk:()=>A,SP:()=>k,SS:()=>pt,SW:()=>G,T5:()=>me,TG:()=>E,TI:()=>Ee,V7:()=>we,VW:()=>lt,Vz:()=>Ot,W9:()=>_t,WA:()=>d,XF:()=>qe,XQ:()=>gt,Xk:()=>ke,Xz:()=>Me,_N:()=>ut,_y:()=>Ve,aG:()=>nt,as:()=>At,bg:()=>st,bm:()=>Qe,bq:()=>v,cd:()=>de,dE:()=>K,dL:()=>ht,db:()=>V,de:()=>ye,eN:()=>w,fK:()=>Pt,fh:()=>_e,gK:()=>ge,gf:()=>Y,gr:()=>vt,hG:()=>at,hq:()=>Tt,iB:()=>m,iV:()=>pe,jM:()=>c,jr:()=>Ue,ju:()=>Je,kT:()=>D,kd:()=>dt,ls:()=>St,lw:()=>We,m1:()=>ee,m4:()=>Te,mM:()=>P,ml:()=>q,o8:()=>mt,oD:()=>J,oN:()=>Et,oo:()=>ie,ox:()=>$e,q6:()=>ue,qG:()=>N,r3:()=>it,rR:()=>f,ri:()=>fe,rz:()=>ot,s$:()=>tt,sA:()=>Be,sc:()=>L,te:()=>H,vE:()=>S,w$:()=>le,we:()=>ct,xT:()=>B,xr:()=>g,zA:()=>De,zY:()=>Z,zf:()=>et,zz:()=>Oe});var o=r(28853),i=r(86019),n=r(89229),a=r(92213),s=r(17617),l=r(91354),u=r(49457);const c=(0,o.K)("blog-mobile-isMobileDisplaySettingsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!1}),d=(0,o.K)("blog-isAuthorNameEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),p=(0,o.K)("blog-authorInfoType",{type:i.N.Number,getDefaultValue:()=>s.RL}),h=(0,o.K)("blog-mobile-authorInfoType",{type:i.N.Number,getDefaultValue:()=>s.RL}),g=(0,o.K)("blog-isAuthorPictureEnabled",{type:i.N.Boolean,getDefaultValue:e=>{let{getStyleParamValue:t}=e;return t(p)===s.RL}}),m=(0,o.K)("blog-mobile-isAuthorNameEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),f=(0,o.K)("blog-mobile-isAuthorPictureEnabled",{type:i.N.Boolean,getDefaultValue:e=>{let{getStyleParamValue:t}=e;return t(h)===s.RL}}),y=(0,o.K)("blog-isPostPublishDateEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),v=(0,o.K)("blog-mobile-isPostPublishDateEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),b=(0,o.K)("blog-isReadingTimeEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),S=(0,o.K)("blog-mobile-isReadingTimeEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),P=(0,o.K)("blog-isPostTitleEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),w=(0,o.K)("blog-mobile-isPostTitleEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),C=(0,o.K)("blog-isPostUpdatedDateEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),E=(0,o.K)("blog-mobile-isPostUpdatedDateEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),A=(0,o.K)("blog-isCategoryLabelsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),I=(0,o.K)("blog-mobile-isCategoryLabelsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),_=(0,o.K)("blog-isTagsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),T=(0,o.K)("blog-mobile-isTagsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),O=(0,o.K)("blog-isMoreOptionsMenuEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),x=(0,o.K)("blog-mobile-isMoreOptionsMenuEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),N=(0,o.K)("blog-isCommentCountEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),L=(0,o.K)("blog-mobile-isCommentCountEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),M=(0,o.K)("blog-isViewCountEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),R=(0,o.K)("blog-mobile-isViewCountEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),k=(0,o.K)("blog-isLikeCountEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),D=(0,o.K)("blog-mobile-isLikeCountEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),B=(0,o.K)("blog-isPostRatingEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),H=(0,o.K)("blog-mobile-isPostRatingEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),V=(0,o.K)("blogMenu-isEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),F=(0,o.K)("blogMenu-mobile-isEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),G=(0,o.K)("blogMenu-isCategoryLabelsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),z=(0,o.K)("blogMenu-mobile-isCategoryLabelsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),W=(0,o.K)("widget-isLoginButtonEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),U=(0,o.K)("blogMenu-mobile-isLoginButtonEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),j=(0,o.K)("blogMenu-isSearchEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),K=(0,o.K)("blogMenu-mobile-isSearchEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),Z=(0,o.K)("socialSharing-isEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),$=(0,o.K)("socialSharing-mobile-isEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),q=(0,o.K)("socialSharing-facebook",{type:i.N.Boolean,getDefaultValue:()=>!0}),Y=(0,o.K)("socialSharing-mobile-facebook",{type:i.N.Boolean,getDefaultValue:()=>!0}),X=(0,o.K)("socialSharing-twitter",{type:i.N.Boolean,getDefaultValue:()=>!0}),Q=(0,o.K)("socialSharing-mobile-twitter",{type:i.N.Boolean,getDefaultValue:()=>!0}),J=(0,o.K)("socialSharing-linked-in",{type:i.N.Boolean,getDefaultValue:()=>!0}),ee=(0,o.K)("socialSharing-mobile-linked-in",{type:i.N.Boolean,getDefaultValue:()=>!0}),te=(0,o.K)("socialSharing-link",{type:i.N.Boolean,getDefaultValue:()=>!0}),re=(0,o.K)("socialSharing-mobile-link",{type:i.N.Boolean,getDefaultValue:()=>!0}),oe=(0,o.K)("socialSharing-print",{type:i.N.Boolean,getDefaultValue:()=>!1}),ie=(0,o.K)("pinterest-isEnabled",{type:i.N.Boolean,getDefaultValue:()=>!1}),ne=(0,o.K)("twitter-isEnabled",{type:i.N.Boolean,getDefaultValue:()=>!1}),ae=(0,o.K)("blog-isRecentPostsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),se=(0,o.K)("blog-isRelatedPostsEnabled",{type:i.N.Boolean,getDefaultValue:e=>{let{getStyleParamValue:t}=e;return t(ae)??!0}}),le=(0,o.K)("blog-mobile-isRelatedPostsEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),ue=(0,o.K)("blog-isRelatedPostsLabelEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),ce=(0,o.K)("blog-mobile-isRelatedPostsLabelEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),de=(0,o.K)("relatedPostsLabel",{type:i.N.Number,getDefaultValue:()=>l.$6.Recent}),pe=(0,o.K)("mobile-relatedPostsLabel",{type:i.N.Number,getDefaultValue:()=>l.$6.Recent}),he=(0,o.K)("blog-isSeeAllPostsLinkEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),ge=(0,o.K)("blog-mobile-isSeeAllPostsLinkEnabled",{type:i.N.Boolean,getDefaultValue:()=>!0}),me=(0,o.K)("navigation-font",{type:i.N.Font,getDefaultValue:(0,n.ro)("Body-M",{size:14})}),fe=(0,o.K)("navigation-textColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),ye=(0,o.K)("navigation-textColorActive",{type:i.N.Color,getDefaultValue:(0,a.N)("color-8")}),ve=(0,o.K)("navigation-backgroundColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-1",0)}),be=(e,t)=>r=>{let{getStyleParamValue:o,...i}=r;const n=o(e,i),a=o(t,i);return{...n,lineHeight:1.4*a,size:a}},Se=(0,o.K)("post-pageFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Body-M",{size:18})({textPresets:t})}}),Pe=(0,o.K)("post-mobile-pageFontSize",{type:i.N.Number,getDefaultValue:()=>16}),we=(0,o.K)("post-mobile-pageFont",{type:i.N.Font,getDefaultValue:be(Se,Pe)}),Ce=(0,o.K)("post-textColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),Ee=(0,o.K)("post-quotesFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Body-L",{size:24})({textPresets:t})}}),Ae=(0,o.K)("post-mobile-quotesFontSize",{type:i.N.Number,getDefaultValue:()=>20}),Ie=(0,o.K)("post-mobile-quotesFont",{type:i.N.Font,getDefaultValue:be(Ee,Ae)}),_e=(0,o.K)("post-quotesColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),Te=(0,o.K)("blog-linkHashtagColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-8")}),Oe=(0,o.K)("post-titleFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Title",{size:40})({textPresets:t})}}),xe=(0,o.K)("post-mobile-titleFontSize",{type:i.N.Number,getDefaultValue:()=>26}),Ne=(0,o.K)("post-mobile-titleFont",{type:i.N.Font,getDefaultValue:be(Oe,xe)}),Le=(0,o.K)("post-titleColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),Me=(0,o.K)("post-headerTwoFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Page-title",{size:28})({textPresets:t})}}),Re=(0,o.K)("post-mobile-headerTwoFontSize",{type:i.N.Number,getDefaultValue:()=>24}),ke=(0,o.K)("post-mobile-headerTwoFont",{type:i.N.Font,getDefaultValue:be(Me,Re)}),De=(0,o.K)("post-headerTwoColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),Be=(0,o.K)("post-headerThreeFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Heading-XL",{size:22})({textPresets:t})}}),He=(0,o.K)("post-mobile-headerThreeFontSize",{type:i.N.Number,getDefaultValue:()=>20}),Ve=(0,o.K)("post-mobile-headerThreeFont",{type:i.N.Font,getDefaultValue:be(Be,He)}),Fe=(0,o.K)("post-headerThreeColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),Ge=(0,o.K)("post-headerFourFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Heading-L",{size:20})({textPresets:t})}}),ze=(0,o.K)("post-mobile-headerFourFontSize",{type:i.N.Number,getDefaultValue:()=>18}),We=(0,o.K)("post-mobile-headerFourFont",{type:i.N.Font,getDefaultValue:be(Ge,ze)}),Ue=(0,o.K)("post-headerFourColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),je=(0,o.K)("post-headerFiveFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Heading-M",{size:18})({textPresets:t})}}),Ke=(0,o.K)("post-mobile-headerFiveFontSize",{type:i.N.Number,getDefaultValue:()=>16}),Ze=(0,o.K)("post-mobile-headerFiveFont",{type:i.N.Font,getDefaultValue:be(je,Ke)}),$e=(0,o.K)("post-headerFiveColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),qe=(0,o.K)("post-headerSixFont",{type:i.N.Font,getDefaultValue:e=>{let{textPresets:t}=e;return(0,n.ro)("Heading-S",{size:16})({textPresets:t})}}),Ye=(0,o.K)("post-mobile-headerSixFontSize",{type:i.N.Number,getDefaultValue:()=>14}),Xe=(0,o.K)("post-mobile-headerSixFont",{type:i.N.Font,getDefaultValue:be(qe,Ye)}),Qe=(0,o.K)("post-headerSixColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),Je=(0,o.K)("post-ratingFont",{type:i.N.Font,getDefaultValue:(0,n.ro)("Body-S",{size:14})}),et=(0,o.K)("post-ratingFontColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),tt=(0,o.K)("post-ratingFilledStarColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-8")}),rt=(0,o.K)("post-ratingUnfilledStarColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-3")}),ot=(0,o.K)("post-isTagLabelEnabled",{type:i.N.Boolean,getDefaultValue:()=>!1}),it=(0,o.K)("tagLayout",{type:i.N.Number,getDefaultValue:()=>u.nT.Button}),nt=(0,o.K)("tags-buttonTag-alignment",{type:i.N.Number,getDefaultValue:()=>u.k$.Left}),at=(0,o.K)("tags-buttonTag-textFont",{type:i.N.Font,getDefaultValue:(0,n.ro)("Body-S",{size:14})}),st=(0,o.K)("tags-buttonTag-textColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),lt=(0,o.K)("tags-buttonTag-textHoverColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),ut=(0,o.K)("tags-buttonTag-backgroundColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-1",1)}),ct=(0,o.K)("tags-buttonTag-backgroundHoverColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-1",1)}),dt=(0,o.K)("tags-buttonTag-borderColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5",.2)}),pt=(0,o.K)("tags-buttonTag-borderHoverColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5",.6)}),ht=(0,o.K)("tags-buttonTag-borderWidth",{type:i.N.Number,getDefaultValue:()=>1}),gt=(0,o.K)("tags-buttonTag-cornerRadius",{type:i.N.Number,getDefaultValue:()=>0}),mt=(0,o.K)("tags-buttonTag-verticalPadding",{type:i.N.Number,getDefaultValue:()=>6}),ft=(0,o.K)("tags-buttonTag-horizontalPadding",{type:i.N.Number,getDefaultValue:()=>12}),yt=(0,o.K)("tags-buttonTag-verticalSpacing",{type:i.N.Number,getDefaultValue:()=>8}),vt=(0,o.K)("tags-buttonTag-horizontalSpacing",{type:i.N.Number,getDefaultValue:()=>8}),bt=(0,o.K)("tags-textTag-alignment",{type:i.N.Number,getDefaultValue:()=>u.k$.Left}),St=(0,o.K)("tags-textTag-verticalSpacing",{type:i.N.Number,getDefaultValue:()=>12}),Pt=(0,o.K)("tags-textTag-horizontalSpacing",{type:i.N.Number,getDefaultValue:()=>12}),wt=(0,o.K)("tags-textTag-textFont",{type:i.N.Font,getDefaultValue:(0,n.ro)("Body-S",{size:14})}),Ct=(0,o.K)("tags-textTag-textColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-5")}),Et=(0,o.K)("tags-textTag-textHoverColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-8")}),At=(0,o.K)("post-cardBorderColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-2",.75)}),It=(0,o.K)("post-cardBorderWidth",{type:i.N.Number,inheritDesktop:!1,getDefaultValue:e=>{let{isMobile:t}=e;return t?0:1}}),_t=(0,o.K)("post-cardBackgroundColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-1")}),Tt=(0,o.K)("post-appBackgroundColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-1")}),Ot=(0,o.K)("button-textColor",{type:i.N.Color,getDefaultValue:(0,a.N)("color-1")}),xt=(0,o.K)("button-color",{type:i.N.Color,getDefaultValue:(0,a.N)("color-8")})},71527:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var o=r(86019),i=r(28853),n=r(51387),a=r(12084);const s={showAuthorName:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.WA,mobileParamName:a.iB,dependencyParam:a.jM})}},showAuthorPicture:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.xr,mobileParamName:a.rR,dependencyParam:a.jM})}},showPostPublishDate:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.HV,mobileParamName:a.bq,dependencyParam:a.jM})}},showReadingTime:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.PF,mobileParamName:a.vE,dependencyParam:a.jM})}},showPostTitle:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.mM,mobileParamName:a.eN,dependencyParam:a.jM})}},showPostUpdatedDate:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.Hb,mobileParamName:a.TG,dependencyParam:a.jM})}},showCategoryLabel:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.Qk,mobileParamName:a.GA,dependencyParam:a.jM})}},showTags:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.LF,mobileParamName:a.Nn,dependencyParam:a.jM})}},showMoreOptionsMenu:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.Gn,mobileParamName:a.Mv,dependencyParam:a.jM})}},showPostRating:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.xT,mobileParamName:a.te,dependencyParam:a.jM})}},showCommentCount:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.qG,mobileParamName:a.sc,dependencyParam:a.jM})}},showViewCount:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.O2,mobileParamName:a.AG,dependencyParam:a.jM})}},showLikeCount:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.SP,mobileParamName:a.kT,dependencyParam:a.jM})}},showMenu:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.db,mobileParamName:a.$N,dependencyParam:a.jM})}},showMenuLoginButton:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.A7,mobileParamName:a.OB,dependencyParam:a.jM})}},showMenuCategoryLabels:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.SW,mobileParamName:a.I0,dependencyParam:a.jM})}},showMenuSearch:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.Ft,mobileParamName:a.dE,dependencyParam:a.jM})}},showShare:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.zY,mobileParamName:a.Lr,dependencyParam:a.jM})}},showShareIconFacebook:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.ml,mobileParamName:a.gf,dependencyParam:a.jM})}},showShareIconX:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.Ey,mobileParamName:a.OA,dependencyParam:a.jM})}},showShareIconLinkedIn:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.oD,mobileParamName:a.m1,dependencyParam:a.jM})}},showShareIconLink:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.Kb,mobileParamName:a.Kc,dependencyParam:a.jM})}},showShareIconPrint:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return r(a.HB)}},showSharePluginPinterest:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return r(a.oo)}},showSharePluginX:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return r(a.E5)}},showRelatedPosts:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.Ay,mobileParamName:a.w$,dependencyParam:a.jM})}},showRelatedPostsLabel:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.q6,mobileParamName:a.Gh,dependencyParam:a.jM})}},showRelatedPostsLabelType:{type:o.N.Number,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.cd,mobileParamName:a.iV,dependencyParam:a.jM})}},showRelatedPostsSeeAllLink:{type:o.N.Boolean,getDefaultValue:e=>{let{isMobile:t,getStyleParamValue:r}=e;return(0,n.$O)({isMobile:t,getStyleParamValue:r,paramName:a.ER,mobileParamName:a.gK,dependencyParam:a.jM})}},navigationTextFont:{type:o.N.Font,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.T5,r)}},navigationTextColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return r.isMobile?t(a.F3,r):t(a.ri,r)}},navigationTextActiveColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.de,r)}},navigationBackgroundColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return r.isMobile?t(a.W9,r):t(a.OR,r)}},textParagraphFont:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a.V7:a.Hp,r)}},textParagraphColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.F3,r)}},textQuoteFont:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a.PP:a.TI,r)}},textQuoteColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.fh,r)}},textLinksAndHashtagsColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.m4,r)}},textH1Font:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a.A:a.zz,r)}},textH1Color:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.Ah,r)}},textH2Font:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a.Xk:a.Xz,r)}},textH2Color:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.zA,r)}},textH3Font:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a._y:a.sA,r)}},textH3Color:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.Gb,r)}},textH4Font:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a.lw:a.P4,r)}},textH4Color:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.jr,r)}},textH5Font:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a.IA:a.Om,r)}},textH5Color:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.ox,r)}},textH6Font:{type:o.N.Font,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(r.isMobile?a.NV:a.XF,r)}},textH6Color:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.bm,r)}},ratingsTextFont:{type:o.N.Font,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.ju,r)}},ratingsTextColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.zf,r)}},ratingsStarFilledColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.s$,r)}},ratingsStarEmptyColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.$5,r)}},showTagsLabel:{type:o.N.Boolean,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.rz,r)}},tagLayout:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.r3,r)}},buttonTagAlignment:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.aG,r)}},buttonTagTextFont:{type:o.N.Font,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.hG,r)}},buttonTagTextColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.bg,r)}},buttonTagTextHoverColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.VW,r)}},buttonTagBackgroundColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a._N,r)}},buttonTagBackgroundHoverColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.we,r)}},buttonTagBorderColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.kd,r)}},buttonTagBorderHoverColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.SS,r)}},buttonTagBorderWidth:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.dL,r)}},buttonTagBorderRadius:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.XQ,r)}},buttonTagVerticalPadding:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.o8,r)}},buttonTagHorizontalPadding:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.KC,r)}},buttonTagVerticalSpacing:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.M8,r)}},buttonTagHorizontalSpacing:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.gr,r)}},textTagAlignment:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.NJ,r)}},textTagTextFont:{type:o.N.Font,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.Mt,r)}},textTagTextColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.KQ,r)}},textTagTextHoverColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.oN,r)}},textTagVerticalSpacing:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.ls,r)}},textTagHorizontalSpacing:{type:o.N.Number,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.fK,r)}},postBorderColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.as,r)}},postBorderWidth:{type:o.N.Number,inheritDesktop:!1,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.DE,r)}},postBackgroundColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.W9,r)}},postAreaBackgroundColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.hq,r)}},postButtonTextColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.Vz,r)}},postButtonBackgroundColor:{type:o.N.Color,getDefaultValue:e=>{let{getStyleParamValue:t,...r}=e;return t(a.Ik,r)}}},l=(0,i.D)(s)},65259:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});const o={INSTALL_SEARCH:"specs.wixBlog.InstallSearch",USE_PLATFORM_API:"specs.wixBlog.migratedToNewPlatformApi",MANAGE_POSTS_NAVIGATE_TO_POSTS:"specs.wixBlog.ManagePostsNavigateToPosts",SLOTS_IN_POST_PAGE:"specs.wixBlog.SlotsInPostPage",USE_NEW_POST_PAGE_SETTINGS_URL:"specs.wixBlog.useNewPostPageSettingsUrl",USE_AVIF_ENCODING:"specs.wixBlog.UseAvifEncoding"}},87365:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(51808);const i=e=>(0,o.Ng)(((t,r)=>e(t.state,r,t.actions,t.host,t.workerReady)),{})},20915:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>o.A,d4:()=>n.A,dN:()=>i.A});var o=r(87365),i=r(46582),n=r(64744)},46582:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(51808);const i=()=>(0,o.d4)((e=>e.actions))},64744:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(51808);const i=e=>(0,o.d4)((t=>e(t.state,t.host,t.actions)))},91157:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(30987);const i=e=>t=>(t.displayName=(0,o.A)(e,t),t)},44574:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var o=r(16252),i=r(82314),n=r(74740),a=r(20915),s=r(61545),l=r(1408),u=r(14509),c=r(91157);const d=e=>(t,r)=>{var o;const a=r.section||(0,l.S)(t,e),c=r.mobileLayoutType||(0,s.NS)(t,a,!0);let d=r.layoutType||(0,s.NS)(t,a);return!(0,s.Ez)(t)&&d&&(null==(o=(0,u.jE)(d))?void 0:o.listComponentName)===i.fR&&(d=n.z5),{section:a,layoutType:d,mobileLayoutType:c,layoutName:(0,n.Sv)(d),mobileLayoutName:(0,n.Sv)(c)}};function p(e){let{fallbackEnabled:t=!0}=void 0===e?{}:e;return(0,o.flowRight)((0,a.Ng)(d(t)),(0,c.A)("WithLayoutProps"))}},39132:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(60751),i=r(56040),n=r(20915),a=r(81809),s=r(72859),l=r(85467);function u(){const e=(0,n.dN)(),t=(0,n.d4)(i.HW),r=(0,n.d4)(a.w),u=(0,n.d4)(i.lT),c=(0,n.d4)(i.Gw),d=(0,n.d4)(l.g),p=(0,n.d4)(s.IC),h=(0,o.useCallback)((function(t,o){let{preventDefault:i=!1}=void 0===o?{}:o;return function(){for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];if(i){const e=n[0];e.preventDefault&&e.preventDefault()}if(!r||!c)return t.apply(this,n);e.showJoinCommunityPopup()}}),[e,r,c]),g=(0,o.useCallback)(((e,t)=>d&&p?h(e,t):e),[d,p,h]);return{currentUser:t,isAuthenticated:r,isBlocked:u,isPrivate:c,forPublicUser:g}}},27342:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,z:()=>p});var o=r(60751),i=r(3790),n=r(20915),a=r(63861),s=r(29572),l=r(84329),u=r(1408),c=r(54943),d=r(14509);const p=function(e){void 0===e&&(e=i.ti);const t=(0,n.d4)((t=>(0,u.S)(t)||e)),r=(0,n.d4)(a.aM),p=(0,n.d4)(s.et),h=(0,n.d4)(s.cM),g=(0,n.d4)(s.bu),m=(0,n.d4)(l.h),f=(0,c.OH)(r)&&!m,y=t===i.wj||t===i.CI||t===i.$Y||(h||p)&&(f||!1);return{getPostClassName:(0,o.useMemo)((()=>y?(0,d.nn)(t,g):()=>[]),[y,t,g]),applyFeedDesign:y,section:t}},h=p},39835:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var o=r(60751),i=r(4452),n=r.n(i),a=r(74740),s=r(20915),l=r(29572),u=r(14509),c=r(27342),d=r(86579),p=r(69653);const h=(e,t,r)=>({iconColorClassName:n()(e(t(r,"description-fill"))),textColorClassName:n()(e(t(r,"description-color"),t(r,"description-fill"),"description-font")),separatorBackgroundColorClassName:n()(e(t(r,"description-background-color")))}),g=(e,t,r,o)=>(0,a.gc)(e)?{iconColorClassName:p.A.textOnImageIcons,textColorClassName:p.A.textOnImageTextColor,separatorBackgroundColorClassName:p.A.textOnImageSeperatorBackgroundColor}:{iconColorClassName:t||"blog-icon-fill",textColorClassName:r||"blog-text-color",separatorBackgroundColorClassName:o||"blog-separator-background-color"},m=function(e){let{iconColorClassName:t,textColorClassName:r,separatorBackgroundColorClassName:i}=void 0===e?{}:e;const n=(0,d.A)({fallbackEnabled:!1}),a=(0,c.A)(n.section),p=(0,s.d4)(l.Xu)?n.mobileLayoutName:n.layoutName;return(0,o.useMemo)((()=>a.applyFeedDesign?h(a.getPostClassName,u.hw,p):g(n.layoutType,t,r,i)),[p,a.applyFeedDesign,a.getPostClassName,n.layoutType,t,i,r])}},86579:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(60751),i=r(82314),n=r(74740),a=r(20915),s=r(61545),l=r(1408),u=r(14509);function c(e){void 0===e&&(e={});const t=(0,a.d4)((t=>e.section??(0,l.S)(t,e.fallbackEnabled??!0))),r=(0,a.d4)((r=>e.mobileLayoutType??(0,s.NS)(r,t,!0))),c=(0,a.d4)((r=>e.layoutType??(0,s.NS)(r,t))),d=(0,a.d4)(s.Ez);return(0,o.useMemo)((()=>{var e;return d||(null==(e=(0,u.jE)(c))?void 0:e.listComponentName)!==i.fR?{section:t,layoutType:c,mobileLayoutType:r,layoutName:(0,n.Sv)(c),mobileLayoutName:(0,n.Sv)(r)}:{section:t,layoutType:n.z5,mobileLayoutType:r,layoutName:(0,n.Sv)(n.z5),mobileLayoutName:(0,n.Sv)(r)}}),[t,c,r,d])}},63861:(e,t,r)=>{"use strict";r.d(t,{aM:()=>a});var o=r(24885);const i=e=>e.router,n=(0,o.Mz)([i],(e=>null==e?void 0:e.currentMatch)),a=((0,o.Mz)([i],(e=>{var t;return(null==e||null==(t=e.previousMatches)?void 0:t[1])??{}})),(0,o.Mz)([n],(e=>(null==e?void 0:e.pathname)??"")),(0,o.Mz)([n],(e=>(null==e?void 0:e.encodedPathname)??"")),(0,o.Mz)([i],(e=>0===(null==e?void 0:e.previousMatches.length))),(0,o.Mz)([n],(e=>null==e?void 0:e.route)));(0,o.Mz)([n],(e=>null==e?void 0:e.params))},51880:(e,t,r)=>{"use strict";r.d(t,{EH:()=>s,Y2:()=>c,tl:()=>a,uD:()=>l,wE:()=>u});var o=r(16252),i=r(24885),n=r(91354);const a=e=>e.appSettings;function s(e){let{state:t,key:r,fallback:i}=e;return(0,o.get)(a(t),r,i)}const l=function(e,t,r){return void 0===r&&(r=1),s({state:e,key:`style.numbers.${t}`,fallback:r})},u=function(e,t,r){return void 0===r&&(r=void 0),s({state:e,key:`style.fonts.${t}`,fallback:r})},c=(0,i.Mz)([e=>e],(e=>{const t=s({state:e,key:`style.numbers.${n.oc.postListWidgetPaginationType.key}`,fallback:n.oc.postListWidgetPaginationType.defaultValue});return Number(t)!==n.Nx.NumberOfPosts}))},29572:(e,t,r)=>{"use strict";r.d(t,{yY:()=>q,tc:()=>Re,wH:()=>se,yO:()=>Le,ny:()=>le,Gs:()=>Z,X8:()=>$,Oc:()=>Me,fB:()=>F,mI:()=>H,Cj:()=>oe,et:()=>de,cM:()=>Q,sB:()=>V,_:()=>j,EW:()=>U,eo:()=>ke,TR:()=>J,jd:()=>W,oy:()=>z,dE:()=>X,pb:()=>ne,p2:()=>ee,an:()=>te,xE:()=>ie,pJ:()=>G,I:()=>K,EJ:()=>me,Xp:()=>Se,nH:()=>Pe,iz:()=>Ae,Li:()=>be,MP:()=>Oe,Hv:()=>xe,$9:()=>ve,AO:()=>_e,ky:()=>Te,yu:()=>we,y3:()=>he,Rm:()=>fe,eW:()=>Ie,AK:()=>ye,QM:()=>Ee,uE:()=>ue,p0:()=>re,uX:()=>ae,dN:()=>ce,bu:()=>D,h3:()=>R,Xu:()=>k});var o=r(16252),i=r(24885),n=r(20446),a=r(3790),s=r(17617);const l={[s.$T]:!0,[s.BA]:!0,[s.DA]:!0,[s.Dt]:!1,[s.xg]:!0,[s.zA]:!0,[s.FX]:!0,[s.sk]:!0,[s.MA]:!0,[s.zg]:!0,[s.nS]:!0,[s.dJ]:!0,[s.mY]:!0,[s.OB]:!0,[s.$u]:!0,[s.DF]:!0,[s.sm]:!0,[s.eU]:s.RL},u={[s.$T]:!1,[s.BA]:!1,[s.DA]:!1,[s.Dt]:!1,[s.xg]:!1,[s.zA]:!1,[s.FX]:!0,[s.sk]:!0,[s.MA]:!1,[s.zg]:!0,[s.dJ]:!0,[s.nS]:!1,[s.mY]:!1,[s.OB]:!1,[s.$u]:!1,[s.DF]:!0,[s.sm]:!0,[s.eU]:s.RL},c={[s.$T]:!1,[s.BA]:!1,[s.DA]:!1,[s.Dt]:!1,[s.xg]:!1,[s.zA]:!1,[s.FX]:!0,[s.sk]:!1,[s.MA]:!1,[s.zg]:!1,[s.nS]:!1,[s.dJ]:!1,[s.mY]:!1,[s.OB]:!1,[s.$u]:!1,[s.DF]:!0,[s.sm]:!1,[s.eU]:s.RL},d={[a.ti]:l,[a.vx]:l,[a.wj]:l,[a.e8]:l,[a.CI]:c,[a.$Y]:u},p=(e,t=a.ti)=>(0,o.get)(d,[t,e]);var h=r(34672),g=r(67957),m=r(91354),f=r(56152),y=r(74740),v=r(63544);const b=`page-${a.$Y}-borderWidth`;var S=r(21504),P=r(91053),w=r(58632),C=r(71527),E=r(65259),A=r(77960),I=r(72859),_=r(85467),T=r(51880),O=r(61545),x=r(67603),N=r(1408);const L=(0,i.Ad)(n.UI,o.isEqual),M=L([T.tl],(e=>(0,o.get)(e,"colorPresets",[]))),R=e=>(0,I.Ny)(e)&&(0,x.$T)(e),k=e=>(0,I.Ny)(e)&&(0,x.ro)(e),D=e=>(0,I.Ny)(e)&&(0,x.dt)(e);function B(e){let t="fallback"in e?e.fallback:void 0;return"wixParam"in e&&(t??=p(e.wixParam,(0,N.S)(e.state))),(0,T.EH)({state:e.state,key:R(e.state)?e.mobileKey:e.key,fallback:t})}const H=e=>B({state:e,mobileKey:s.Y,key:s.$l,wixParam:s.BA}),V=e=>B({state:e,mobileKey:s.g5,key:s.z,wixParam:s.DA}),F=e=>B({state:e,mobileKey:s.pm,key:s.IR,wixParam:s.MA}),G=e=>B({state:e,mobileKey:s.cc,key:s.Zy,wixParam:s.xg}),z=e=>B({state:e,mobileKey:s.W4,key:s.HQ,wixParam:s.FX}),W=e=>!!(0,h.Qx)(e)&&B({state:e,mobileKey:s.Vi,key:s.k7,wixParam:s.sm,fallback:!0}),U=(e,t)=>{const r=(0,x.$T)(e),o=(0,I.Ny)(e);return(t=t||(0,N.S)(e))===a.$Y?p(s.zA,a.$Y):!(t===a.wj||t===a.CI||r||!o)||B({state:e,mobileKey:s.oR,key:s.fe,wixParam:s.zA})},j=e=>B({state:e,mobileKey:s.Tv,key:s.cz,wixParam:s.sk}),K=e=>B({state:e,mobileKey:s.ud,key:s.bp,wixParam:s.$T}),Z=e=>{const t=p(s.$u,(0,N.S)(e)),r=R(e);return B({state:e,mobileKey:s.Gm,key:s.rE,fallback:r?(0,T.EH)({state:e,key:s.rE,fallback:t}):t})},$=(e,t)=>B({state:e,mobileKey:s.bD,key:s.wP,wixParam:s.OB,fallback:t}),q=e=>{const t=p(s.eU,(0,N.S)(e));return B({state:e,key:s.CX,mobileKey:s.h5,fallback:R(e)?(0,T.EH)({state:e,key:s.CX,fallback:t}):t})},Y=e=>B({state:e,mobileKey:s.EZ,key:s.HA,wixParam:s.nS}),X=e=>B({state:e,mobileKey:s.cX,key:s.v,wixParam:s.zg}),Q=e=>(0,T.EH)({state:e,key:g.kl,fallback:!1}),J=e=>{const t=(0,N.S)(e)===a.$Y?p(s.dJ,a.$Y):Y(e);return B({state:e,mobileKey:s.ye,key:s.rk,fallback:t})},ee=e=>B({state:e,mobileKey:s.lJ,key:s.Eo,fallback:Y(e)}),te=e=>{const t=(0,w.b)(e,E.f.USE_NEW_POST_PAGE_SETTINGS_URL)?B({state:e,mobileKey:`style.booleans.${C.default.showRelatedPosts.key}`,key:`style.booleans.${C.default.showRelatedPosts.key}`})??B({state:e,mobileKey:m.K8,key:m.rS}):B({state:e,mobileKey:m.K8,key:m.rS});return void 0===t?B({state:e,mobileKey:s.EV,key:s.ro,fallback:!0}):t},re=e=>{const t=B({state:e,mobileKey:m.Tz,key:m.aG,fallback:!0}),r=(0,T.EH)({state:e,key:R(e)?m.el:m.rh,fallback:m.iU.recent});return t?m.fE[r]:void 0},oe=e=>B({state:e,mobileKey:s.T3,key:s.It,fallback:!0}),ie=e=>B({state:e,mobileKey:s.ld,key:s.Op,fallback:!0}),ne=e=>(0,T.EH)({state:e,key:(0,s.g7)(f.nJ,R(e)),fallback:!1}),ae=L([ie,e=>(0,o.filter)(f.aI,(t=>((e,t)=>(0,T.EH)({state:e,key:(0,s.g7)(t,R(e)),fallback:!0}))(e,t)))],((e,t)=>e?t:[])),se=(e,t,r,o)=>{if((0,I.Ny)(e))return;const i=(0,y.Sv)(t),n=(0,g.A)(i,r,`${o}Font`),a=(0,v.AJ)(t,o);return(0,T.wE)(e,n,{}).size||a},le=(e,t,r,i)=>{const n=(0,g.Vk)(t,r||a.vx,`${i}FontSize`),s=(0,I.Ny)(e),l=(0,v.AJ)(t,i,s);if(s){if(r===a.wj||r===a.CI){const a=(0,g.Vk)(t,r,`${i}FontSize`,!0);return(0,o.get)((0,T.tl)(e),a,(0,o.get)((0,T.tl)(e),n,l))}const s=(0,v.r2)(t,i),u=(0,v.Xv)(t,i);let c=((e,t,r)=>{var o;return null==(o=(0,T.EH)({state:e,key:`${(0,g.m)(t,r)}`}))?void 0:o.size})(e,r,`${i}Font`)||l;return c=Math.min(s,c)||c,c=Math.max(u,c)||c,(0,o.get)((0,T.tl)(e),n,c)}return(0,o.get)((0,T.tl)(e),n,l)},ue=e=>(0,T.EH)({state:e,key:s.MT,fallback:!1}),ce=e=>(0,T.EH)({state:e,key:s._b,fallback:!1}),de=e=>(0,o.get)((0,T.tl)(e),"style.booleans.responsive",!1),pe=e=>{let{state:t,section:r,containerWidth:o,layoutType:i}=e;const n=(0,S.n$)(i,S.LG,r),a=we({state:t,section:r,layoutType:i}),s=(e=>(0,T.uD)(e,b,0))(t);return("number"==typeof o?Math.min(o,n):n)-2*s-2*a},he=e=>{let{state:t,section:r,hostWidth:i,rootWidth:n,layoutMargins:s,layoutType:l}=e;r||=(0,N.S)(t),l||=(0,O.NS)(t,r);const u=(0,y.D1)(l),c=(0,y.Qz)(u),d=(0,y.$5)(u),p=(0,o.isNumber)(i)?i:(0,o.isNumber)(n)?n:void 0;if(r===a.$Y)return pe({state:t,section:r,containerWidth:p,layoutType:l});if(c||d){const e=c?1100:980,t=void 0!==p&&p<e?p:e;return s?t-2*s:t}return(0,T.EH)({state:t,key:(0,P.od)(r,u,k(t)),fallback:(0,S.n$)(l,S.LG,r)})},ge=(e,t,r)=>o=>{let{state:i,section:n,layoutType:a}=o;n||=(0,N.S)(i);const s=k(i);if(a||=(0,O.NS)(i,n,s),!a)return;const l=(0,y.D1)(a),u=e(n,l,s),c=(0,S.n$)(a,s&&r||t,n);return(0,T.EH)({state:i,key:u,fallback:c})},me=ge(P.S7,S.rM),fe=ge(P.xe,S.MQ),ye=ge(P.Ut,S.vw,S.Mw),ve=ge(P.XD,S.Nr,S.KN),be=ge(P.RT,S.ij),Se=ge(P.zf,S.E0),Pe=ge(P.Xv,S.z2),we=ge(P.uN,S.hs,S.uO),Ce=e=>(0,T.EH)({state:e,key:g.sq,fallback:!1}),Ee=e=>Ce(e.state)?ge(P.mC,S.jk)(e):ge(P.mC)(e),Ae=e=>Ce(e.state)?ge(P.Mv,S.PE)(e):ge(P.Mv)(e),Ie=ge(P.mn,S.Qp),_e=ge(P.cr,S.kt),Te=ge(P.c5,S.DM),Oe=ge(P.ql,S.rE),xe=ge(P.L1,S.sr),Ne=(e,t)=>(0,o.get)((0,o.find)(M(e),(e=>{let{reference:r}=e;return r===t})),"value");function Le(e){let{state:t,section:r}=e;const o=D(t)?(0,g.lu)(r):(0,g.Xc)(r),i={value:Ne(t,"color-2")};return(0,T.EH)({state:t,key:o,fallback:i})}(0,i.Mz)([j,_.g,(e,t)=>t],((e,t,r)=>o=>{if(e){const e=(0,A.m)({post:o,canSee:r,enableShare:!0,enableSubscribe:t});return Boolean(e.length)}return!1}));const Me=e=>B({state:e,key:s.xS,mobileKey:s.ub,wixParam:s.Dt}),Re=(e,t)=>(0,T.EH)({state:e,key:`style.numbers.${s.mS.contentAlignment.key}`,fallback:t?s.Jt.Right:s.Jt.Left}),ke=e=>(0,T.EH)({state:e,key:P.kt,fallback:!1})},61545:(e,t,r)=>{"use strict";r.d(t,{kK:()=>f,NS:()=>y,Ez:()=>v});var o=r(16252),i=r(74740),n=r(54558),a=r(3790),s=r(91053),l=r(72859);const u=e=>(0,l.Ny)(e)?i.mA:i.Zv;var c=r(59272),d=r(44736),p=r(73676),h=r(37607),g=r(51880),m=r(29572);r(1408);const f=(e,t)=>{if(t)return i.QC;if((0,n.kx)(e)===c.y||(0,n.kx)(e)===p.y)return i.ql;return(0,m.et)(e)?i.ql:i.Nk};function y(e,t,r){if(void 0===r&&(r=(0,l.Ny)(e)),!t)return;if(t===a.wj)return(0,d.n)({state:e,isMobile:r});if(t===a.CI)return(0,h.ZB)({state:e,isMobile:r});if(t===a.$Y)return u(e);const i=f(e,r);return(0,o.get)((0,g.tl)(e),(0,s.qZ)(t,r),i)}const v=e=>!(0,l.ah)(e)},67603:(e,t,r)=>{"use strict";r.d(t,{$T:()=>h,DQ:()=>y,Do:()=>v,EV:()=>p,TG:()=>f,_h:()=>b,cu:()=>S,dt:()=>m,ro:()=>g});var o=r(17617),i=r(91053),n=r(67957),a=r(3790),s=r(74740),l=r(72859),u=r(51880),c=r(61545),d=r(1408);const p=(e,t)=>(0,u.EH)({state:e,key:t,fallback:!1}),h=e=>p(e,o.FG),g=e=>p(e,i.no),m=e=>p(e,n.rO),f=e=>{const t=(0,d.S)(e);return(t===a.wj||t===a.CI)&&(0,l.Ny)(e)},y=e=>{const t=(0,d.S)(e);return(t===a.wj||t===a.CI)&&(0,l.Ny)(e)},v=e=>{const t=(0,d.S)(e);if(!(0,l.Ny)(e))return null;if(t===a.wj||t===a.CI){const r=(0,c.NS)(e,t,!0);return(0,s.Sv)(r)}return null},b=e=>(0,l.Ny)(e)&&g(e)&&(P(e,a.wj)||P(e,a.CI)),S=e=>(0,l.Ny)(e)&&m(e)&&(P(e,a.wj)||P(e,a.CI)),P=(e,t)=>(0,c.NS)(e,t,!0)===s._m||!(0,c.NS)(e,t,!0)&&(0,c.NS)(e,t)===s._m},1408:(e,t,r)=>{"use strict";r.d(t,{S:()=>c});var o=r(3790),i=r(54558),n=r(77666),a=r(59272),s=r(73676),l=r(63861),u=r(54943);function c(e,t){const r=(0,l.aM)(e);return(0,u.KD)(r)?o.ti:(0,u.gk)(r)||(0,u.rg)(r)||(0,u.pP)(r)||(0,u.t)(r)?o.vx:(0,i.kx)(e)===a.y?o.wj:(0,i.kx)(e)===s.y?o.CI:(0,i.kx)(e)===n.we?o.$Y:(0,u.ju)(r)?void 0:t?o.vx:void 0}},14509:(e,t,r)=>{"use strict";r.d(t,{hw:()=>d,jE:()=>l,nn:()=>c});var o=r(10711),i=r(74740),n=r(82314),a=r(3790);const s={[i.As]:{listComponentName:n.fR,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:3,description:3},withoutCover:{title:3,description:3}}}},[i.ML]:{listComponentName:n.fR,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:3,description:3},withoutCover:{title:3,description:3}}}},[i.sC]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:2,description:2},withoutCover:{title:2,description:2}}}},[i.ag]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:2,description:2},withoutCover:{title:2,description:2}}}},[i.yK]:{listComponentName:n.EB,itemComponentName:n.P1,itemConfig:{displayFooterIcons:!1}},[i.gu]:{listComponentName:n.Oo,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:0,description:3},withoutCover:{title:0,description:3}}}},[i.Nk]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:3,description:2},withoutCover:{title:2,description:2}}}},[i.Ul]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:3,description:0},withoutCover:{title:3,description:4}}}},[i.LO]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:2,description:0},withoutCover:{title:2,description:0}}}},[i.h5]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:2,description:0},withoutCover:{title:2,description:0}}}},[i.QC]:{listComponentName:n.Oo,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:0,description:3},withoutCover:{title:0,description:3}}}},[i.G_]:{listComponentName:n.Oo,itemComponentName:n.F$,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:0,description:3},withoutCover:{title:0,description:3}}}},[i.a1]:{listComponentName:n.Oo,itemComponentName:n.mz,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:2,description:0},withoutCover:{title:2,description:0}}}},[i.bf]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:0}}},[i.XH]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:0}}},[i.nH]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:0}}},[i.Em]:{listComponentName:n.fR,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[i.Zv]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[i.yp]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[i.ql]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:4}}},[i.Qc]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:4}}},[i.qt]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:4}}},[i.xA]:{listComponentName:n.EB,itemComponentName:n.Tw,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[i._m]:{itemComponentName:void 0,listComponentName:void 0,itemConfig:{hideFooter:!0,hideHeader:!0,hideDescription:!0,lineCount:{title:3,description:3},displayFooterIcons:!0}},[i.mA]:{itemComponentName:void 0,listComponentName:void 0,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:3}}},[i.s4]:{itemComponentName:void 0,listComponentName:void 0,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:3}}},[i.Ws]:{itemComponentName:void 0,listComponentName:void 0,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:3}}}},l=e=>s[e],u=["title-color","TOI-title-color","description-color","TOI-description-color","overlay-background-color","border-color","background-color","TOI-background-color","post-container","hover-container","link-hashtag-hover-fill","link-hashtag-hover-color","pagination-active","description-fill","TOI-description-fill","description-background-color","TOI-description-background-color"],c=(0,o.default)(((e,t)=>function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.map((r=>`blog-post-${e}-${((e,t,r)=>e&&(t===a.wj||t===a.CI)&&u.includes(r)?r.startsWith("TOI")?r.replace("TOI","TOI-mobile"):`mobile-${r}`:r)(t,e,r)}`))})),d=(e,t)=>`${(0,i.NN)(e)?"TOI-":""}${t}`},77960:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var o=r(33014);const i=e=>{let{actions:t=o.TI,post:r,canSee:i,enableShare:n=!0,enableSubscribe:a=!0}=e;const s=[];n||s.push(o.Sf),a||s.push(o.$X);return t.filter((e=>i(e,"post",r)&&!s.includes(e)))}},47210:(e,t,r)=>{"use strict";r.d(t,{DC:()=>n,Qz:()=>i,RZ:()=>a,TE:()=>s,tW:()=>l,tv:()=>u,wc:()=>c});var o=r(91158);const i="/(page/:page(/))",n="/category/:categorySlug(/:subcategorySlug)(/page/:page)(/)",a=`/${o.uK}/:categorySlug(/:subcategorySlug)(/page/:page)(/)`,s="/search(/:query)",l=`/${o.J}/:hashtag(/page/:pageIndex)(/)`,u=`/${o.wY}/:year/:month(/page/:pageIndex)(/)`,c=`/${o.jF}/:tagSlug(/page/:page)(/)`},44736:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var o=r(16252),i=r(91053),n=r(74740),a=r(3790),s=r(51880),l=r(61545),u=r(67603);const c=e=>{let{state:t,isMobile:r}=e;const o=(0,u.EV)(t,i.no)?p(t):void 0,a=d(t)??(0,l.kK)(t);if(r&&a&&!o)return n.l3[a];let s=r&&o||a;return r&&((0,n.js)(s)||(0,n.ei)(s))&&(s=n.ql),s},d=e=>(0,o.get)((0,s.tl)(e),(0,i.qZ)(a.wj,!1)),p=e=>(0,o.get)((0,s.tl)(e),(0,i.qZ)(a.wj,!0))},58892:(e,t,r)=>{"use strict";r.d(t,{F:()=>u,Wq:()=>l,ZO:()=>o,gg:()=>i,ko:()=>a,mR:()=>c,qv:()=>s,tc:()=>n});const o="/404",i="/create-post",n="/:postSlug",a="/:year/:month(/:day)/:postSlug(/)",s="/:postSlug/edit",l="/:postId/preview/:instance(=*)",u="/:postSlug/edit-comment/:commentId",c="/:year/:month(/:day)/:postSlug/edit-comment/:commentId"},73676:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});const o="related-posts-widget"},37607:(e,t,r)=>{"use strict";r.d(t,{ZB:()=>c});var o=r(16252),i=r(91053),n=r(74740),a=r(3790),s=r(51880),l=r(61545),u=r(67603);r(72859);const c=e=>{let{state:t,isMobile:r}=e;const o=d(t,!1)??(0,l.kK)(t,!1),a=(0,u.EV)(t,i.no)?d(t,!0):void 0;if(r&&!a)return n.PE.List;const s=r&&a||o;return r&&((0,n.js)(s)||(0,n.ei)(s))?n.PE.PgGrid:s};function d(e,t){return(0,o.get)((0,s.tl)(e),(0,i.qZ)(a.CI,t))}},53292:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var o=r(78304),i=r.n(o),n=r(60751),a=r.n(n);const s=e=>a().createElement("svg",i()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",role:"img",style:{fillRule:"nonzero"}},e),a().createElement("path",{d:"M7 14.33l3-2.933 3 2.934V3.978H7v10.353zM7 3h6a.99.99 0 0 1 1 .978v11.533c0 .27-.224.489-.5.489a.506.506 0 0 1-.354-.143L10 12.78l-3.146 3.077a.508.508 0 0 1-.708 0A.484.484 0 0 1 6 15.51V3.978A.99.99 0 0 1 7 3z"}))},4040:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>h,yC:()=>c,ns:()=>d});var o=r(60751),i=r.n(o),n=r(4452),a=r.n(n),s=r(44886);const l="tmHsxH",u="Ki_0_s",c=e=>{let{className:t,inverted:r,separatorBackgroundColorClassName:o}=e;return i().createElement("span",{className:a()(l,t,p(r,o))})},d=(0,s.A)(c);function p(e,t){return e?"blog-inverted-separator-background-color":t||"blog-separator-background-color"}const h=(0,s.A)((e=>{let{className:t,inverted:r,separatorBackgroundColorClassName:o}=e;return i().createElement("span",{className:a()(u,t,p(r,o))})}))},971:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var o=r(78304),i=r.n(o),n=r(60751),a=r.n(n),s=r(58486),l=r.n(s),u=r(16252),c=r(3790),d=r(20915),p=(r(27342),r(63861)),h=r(29572),g=r(84329),m=r(1408),f=r(54943),y=r(14509),v=r(91157);const b=e=>{const t=t=>{let{isCreatedWithResponsiveEditor:r,isFeedDesignPropsMigrated:o,isInFeed:n,isInSearch:s,section:l=c.ti,useMobileSettings:d,shouldApplyPostDesignInFeed:p,...h}=t;const g=n&&!p,m=l===c.wj||l===c.CI||l===c.$Y||(o||r)&&(g||s),f=m?(0,y.nn)(l,d):u.noop;return a().createElement(e,i()({getPostClassName:f,applyFeedDesign:m,section:l},h))};l()(t,e);return(0,u.flowRight)((0,d.Ng)(((e,t)=>{let{section:r}=t;const o=(0,p.aM)(e);return{section:(0,m.S)(e)||r,isInFeed:(0,f.OH)(o),isInSearch:!1,isCreatedWithResponsiveEditor:(0,h.et)(e),isFeedDesignPropsMigrated:(0,h.cM)(e),useMobileSettings:(0,h.bu)(e),shouldApplyPostDesignInFeed:(0,g.h)(e)}})),(0,v.A)("WithIsFeedDesignEnabled"))(t)}},44886:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var o=r(4452),i=r.n(o),n=r(16252),a=r(74740),s=r(20915),l=(r(39835),r(29572)),u=r(14509),c=r(91157),d=r(971),p=r(44574),h=r(69653);const g=(0,n.flowRight)((0,p.A)({fallbackEnabled:!1}),d.A,(0,s.Ng)(((e,t)=>{let{applyFeedDesign:r,layoutType:o,layoutName:n,mobileLayoutName:s,getPostClassName:c,iconColorClassName:d,textColorClassName:p,separatorBackgroundColorClassName:g}=t;const m=(0,l.Xu)(e)?s:n;return r?((e,t,r)=>({iconColorClassName:i()(e(t(r,"description-fill"))),textColorClassName:i()(e(t(r,"description-color"),t(r,"description-fill"),"description-font")),separatorBackgroundColorClassName:i()(e(t(r,"description-background-color")))}))(c,u.hw,m):((e,t,r,o)=>(0,a.gc)(e)?{iconColorClassName:h.A.textOnImageIcons,textColorClassName:h.A.textOnImageTextColor,separatorBackgroundColorClassName:h.A.textOnImageSeperatorBackgroundColor}:{iconColorClassName:t||"blog-icon-fill",textColorClassName:r||"blog-text-color",separatorBackgroundColorClassName:o||"blog-separator-background-color"})(o,d,p,g)})),(0,c.A)("WithLayoutColorClasses"))},84329:(e,t,r)=>{"use strict";r.d(t,{h:()=>l});var o=r(3790),i=r(74740),n=r(29572),a=r(61545),s=r(1408);const l=e=>{const t=(0,s.S)(e);if(t!==o.ti)return!1;const r=(0,a.NS)(e,t);return(0,i.It)(r)&&(0,n.eo)(e)}},30987:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(47773);function i(e,t){return`${e}(${(0,o.A)(t)})`}},54943:(e,t,r)=>{"use strict";r.d(t,{KD:()=>y,OH:()=>S,gk:()=>v,ju:()=>P,pP:()=>w,rg:()=>b,t:()=>C});var o=r(16252),i=r(47210),n=r(58892);const a="page_not_found",s="search_results",l="post_page",u="post_page_preview",c="post_edit_page",d="comment_edit_page",p="feed_page",h="categories_page",g="create_post",m="archive_page",f={[a]:[n.ZO],[p]:[i.Qz],[s]:[i.TE],[g]:[n.gg],[h]:[i.DC,i.RZ],[d]:[n.F,n.mR],[c]:[n.qv],[u]:[n.Wq],[l]:[n.tc,n.ko],[m]:[i.tv]},y=(Object.entries(f),e=>e===i.Qz),v=e=>(0,o.includes)([i.DC,i.RZ],e),b=e=>e===i.wc,S=e=>(0,o.includes)([i.DC,i.RZ,i.Qz,i.wc,i.tv,i.tW],e),P=e=>(0,o.includes)([n.tc,n.ko],e),w=e=>e===i.tv,C=e=>e===i.tW},47773:(e,t,r)=>{"use strict";function o(e){return e.displayName||e.name||"Component"}r.d(t,{A:()=>o})},81809:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var o=r(16252);const i=(0,r(24885).Mz)((e=>e.auth),(e=>(0,o.get)(e,"isAuthenticated")))},72859:(e,t,r)=>{"use strict";r.d(t,{DY:()=>c,IC:()=>h,KV:()=>p,Md:()=>b,Ny:()=>v,Z0:()=>u,_o:()=>d,ah:()=>y,bU:()=>m,sb:()=>g,tl:()=>f});var o=r(16252),i=r(24885),n=r(31386);const a=e=>e.basicParams||{},s=e=>{var t;return null==(t=e.basicParams)?void 0:t.viewMode},l=e=>{var t;return null==(t=e.basicParams)?void 0:t.formFactor},u=((0,i.Mz)([a],(e=>{let{instance:t}=e;return t})),e=>{var t;return null==(t=e.basicParams)?void 0:t.language}),c=((0,i.Mz)([a],(e=>{let{url:t}=e;return t})),(0,i.Mz)([a],(e=>{let{isSSR:t}=e;return t})),(0,i.Mz)([a],(e=>{let{isRTL:t}=e;return t}))),d=(0,i.Mz)([a],(e=>{let{isDebug:t}=e;return t})),p=(0,i.Mz)((e=>a(e)),(e=>{let{isProduction:t}=e;return t})),h=((0,i.Mz)([a],(e=>{let{commentId:t}=e;return t})),(0,i.Mz)([a],(e=>{let{isRendered:t}=e;return t})),(0,i.Mz)([s],(e=>e===n.GM))),g=(0,i.Mz)([s],(e=>e===n.Mm)),m=(0,i.Mz)([s],(e=>e===n.vv)),f=(0,i.Mz)([s],(e=>{let{editor:t,preview:r}=e;return t||r})),y=((0,i.Mz)([s],(e=>e===n.eX)),(0,i.Mz)([a],(e=>{let{isSeo:t}=e;return t}))),v=(0,i.Mz)([l],(e=>"Mobile"===e)),b=((0,i.Mz)([l],(e=>"Mobile"!==e)),(0,i.Mz)([a],(e=>{let{biPageNumber:t}=e;return void 0!==t&&1===t})),(0,i.Mz)([e=>e.basicParams.currentPage],(e=>(0,o.get)(e,"name",""))),(0,i.Mz)([a],(e=>{let{timeZone:t}=e;return t})))},85467:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var o=r(16252),i=r(81693);const n=(e,t)=>((e,t)=>(0,o.get)(e,t,{}))((e=>e.communitiesContext)(e),t),a=e=>Boolean(n(e,i.SANTA_MEMBERS_APP_ID).isInstalled)},77666:(e,t,r)=>{"use strict";r.d(t,{we:()=>o});const o="my-posts-page"},59272:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});const o="post-list-widget"},78282:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>cy});var o={};r.r(o),r.d(o,{customCssVars:()=>iy,default:()=>ny});var i=r(60751),n=r.n(i);const a=new Map,s=e=>{const t=(r=e,Object.keys(r).filter((e=>void 0!==r[e])).sort().map((e=>`${e}=${r[e]}`)).join("&"));var r;if(a.has(t))return a.get(t);const o=(({language:e,country:t,...r})=>{if(void 0===Intl?.NumberFormat)throw new Error("Intl.NumberFormat is not available.");const o=(e=>e.split("-")[0])(e),i=t?`${o}-${t}`:e;return Intl.NumberFormat(i,{style:"currency",...r})})(e);return a.set(t,o),o};s.cache=a;const l={AC:"%N%n%O%n%A%n%C%n%Z",AD:"%N%n%O%n%A%n%Z %C",AE:"%N%n%O%n%A%n%S",AF:"%N%n%O%n%A%n%C%n%Z",AI:"%N%n%O%n%A%n%C%n%Z",AL:"%N%n%O%n%A%n%Z%n%C",AM:"%N%n%O%n%A%n%Z%n%C%n%S",AR:"%N%n%O%n%A%n%Z %C%n%S",AS:"%N%n%O%n%A%n%C %S %Z",AT:"%O%n%N%n%A%n%Z %C",AU:"%O%n%N%n%A%n%C %S %Z",AX:"%O%n%N%n%A%n%Z %C%n\xc5LAND",AZ:"%N%n%O%n%A%nAZ %Z %C",BA:"%N%n%O%n%A%n%Z %C",BB:"%N%n%O%n%A%n%C, %S %Z",BD:"%N%n%O%n%A%n%C - %Z",BE:"%O%n%N%n%A%n%Z %C",BF:"%N%n%O%n%A%n%C %X",BG:"%N%n%O%n%A%n%Z %C",BH:"%N%n%O%n%A%n%C %Z",BL:"%O%n%N%n%A%n%Z %C %X",BM:"%N%n%O%n%A%n%C %Z",BN:"%N%n%O%n%A%n%C %Z",BR:"%O%n%N%n%A%n%D%n%C-%S%n%Z",BS:"%N%n%O%n%A%n%C, %S",BT:"%N%n%O%n%A%n%C %Z",BY:"%O%n%N%n%A%n%Z, %C%n%S",CA:"%N%n%O%n%A%n%C %S %Z",CC:"%O%n%N%n%A%n%C %S %Z",CH:"%O%n%N%n%A%n%Z %C",CI:"%N%n%O%n%X %A %C %X",CL:"%N%n%O%n%A%n%Z %C%n%S",CN:"%Z%n%S%C%D%n%A%n%O%n%N",CO:"%N%n%O%n%A%n%D%n%C, %S, %Z",CR:"%N%n%O%n%A%n%S, %C%n%Z",CU:"%N%n%O%n%A%n%C %S%n%Z",CV:"%N%n%O%n%A%n%Z %C%n%S",CX:"%O%n%N%n%A%n%C %S %Z",CY:"%N%n%O%n%A%n%Z %C",CZ:"%N%n%O%n%A%n%Z %C",DE:"%N%n%O%n%A%n%Z %C",DK:"%N%n%O%n%A%n%Z %C",DO:"%N%n%O%n%A%n%Z %C",DZ:"%N%n%O%n%A%n%Z %C",EC:"%N%n%O%n%A%n%Z%n%C",EE:"%N%n%O%n%A%n%Z %C %S",EG:"%N%n%O%n%A%n%C%n%S%n%Z",EH:"%N%n%O%n%A%n%Z %C",ES:"%N%n%O%n%A%n%Z %C %S",ET:"%N%n%O%n%A%n%Z %C",FI:"%O%n%N%n%A%n%Z %",FK:"%N%n%O%n%A%n%C%n%Z",FM:"%N%n%O%n%A%n%C %S %Z",FO:"%N%n%O%n%A%nFO%Z %C",FR:"%O%n%N%n%A%n%Z %C",GB:"%N%n%O%n%A%n%C%n%Z",GE:"%N%n%O%n%A%n%Z %C",GF:"%O%n%N%n%A%n%Z %C %X",GG:"%N%n%O%n%A%n%C%nGUERNSEY%n%Z",GI:"%N%n%O%n%A%nGIBRALTAR%n%Z",GL:"%N%n%O%n%A%n%Z %C",GN:"%N%n%O%n%Z %A %C",GP:"%O%n%N%n%A%n%Z %C %X",GR:"%N%n%O%n%A%n%Z %C",GS:"%N%n%O%n%A%n%n%C%n%Z",GT:"%N%n%O%n%A%n%Z- %C",GU:"%N%n%O%n%A%n%C %Z",GW:"%N%n%O%n%A%n%Z %C",HK:"%S%n%C%n%A%n%O%n%N",HM:"%O%n%N%n%A%n%C %S %Z",HN:"%N%n%O%n%A%n%C, %S%n%Z",HR:"%N%n%O%n%A%n%Z %C",HT:"%N%n%O%n%A%nHT%Z %C",HU:"%N%n%O%n%C%n%A%n%Z",ID:"%N%n%O%n%A%n%C%n%S %Z",IE:"%N%n%O%n%A%n%D%n%C%n%S%n%Z",IL:"%N%n%O%n%A%n%C %Z",IM:"%N%n%O%n%A%n%C%n%Z",IN:"%N%n%O%n%A%n%C %Z%n%S",IO:"%N%n%O%n%A%n%C%n%Z",IQ:"%O%n%N%n%A%n%C, %S%n%Z",IR:"%O%n%N%n%S%n%C, %D%n%A%n%Z",IS:"%N%n%O%n%A%n%Z %C",IT:"%N%n%O%n%A%n%Z %C %S",JE:"%N%n%O%n%A%n%C%nJERSEY%n%Z",JM:"%N%n%O%n%A%n%C%n%S %X",JO:"%N%n%O%n%A%n%C %Z",JP:"\u3012%Z%n%S%n%A%n%C%n%O%n%N%",KE:"%N%n%O%n%A%n%C%n%Z",KG:"%N%n%O%n%A%n%Z %C",KH:"%N%n%O%n%A%n%C %Z",KI:"%N%n%O%n%A%n%S%n%C",KN:"%N%n%O%n%A%n%C, %S",KP:"%Z%n%S%n%C%n%A%n%O%n%N",KR:"%S %C%D%n%A%n%O%n%N%n%Z",KW:"%N%n%O%n%A%n%Z %C",KY:"%N%n%O%n%A%n%S %Z",KZ:"%Z%n%S%n%C%n%A%n%O%n%N",LA:"%N%n%O%n%A%n%Z %C",LB:"%N%n%O%n%A%n%C %Z",LI:"%O%n%N%n%A%n%Z %C",LK:"%N%n%O%n%A%n%C%n%Z",LR:"%N%n%O%n%A%n%Z %C",LS:"%N%n%O%n%A%n%C %Z",LT:"%O%n%N%n%A%n%Z %C",LU:"%O%n%N%n%A%n%Z %C",LV:"%N%n%O%n%A%n%S%n%C, %Z",MA:"%N%n%O%n%A%n%Z %C",MC:"%N%n%O%n%A%n%Z %C %X",MD:"%N%n%O%n%A%n%Z %C",ME:"%N%n%O%n%A%n%Z %C",MF:"%O%n%N%n%A%n%Z %C %X",MG:"%N%n%O%n%A%n%Z %C",MH:"%N%n%O%n%A%n%C %S %Z",MK:"%N%n%O%n%A%n%Z %C",MM:"%N%n%O%n%A%n%C, %Z",MN:"%N%n%O%n%A%n%C%n%S %Z",MO:"%A%n%O%n%N",MP:"%N%n%O%n%A%n%C %S %Z",MQ:"%O%n%N%n%A%n%Z %C %X",MT:"%N%n%O%n%A%n%C %Z",MU:"%N%n%O%n%A%n%Z%n%C",MV:"%N%n%O%n%A%n%C %Z",MW:"%N%n%O%n%A%n%C %X",MX:"%N%n%O%n%A%n%D%n%Z %C, %S",MY:"%N%n%O%n%A%n%D%n%Z %C%n%S",MZ:"%N%n%O%n%A%n%Z %C%S",NA:"%N%n%O%n%A%n%C%n%Z",NC:"%O%n%N%n%A%n%Z %C %X",NE:"%N%n%O%n%A%n%Z %C",NF:"%O%n%N%n%A%n%C %S %Z",NG:"%N%n%O%n%A%n%D%n%C %Z%n%S",NI:"%N%n%O%n%A%n%Z%n%C, %S",NL:"%O%n%N%n%A%n%Z %C",NO:"%N%n%O%n%A%n%Z %C",NP:"%N%n%O%n%A%n%C %Z",NR:"%N%n%O%n%A%n%S",NZ:"%N%n%O%n%A%n%D%n%C %Z",OM:"%N%n%O%n%A%n%Z%n%C",PA:"%N%n%O%n%A%n%C%n%S",PE:"%N%n%O%n%A%n%C %Z%n%S",PF:"%N%n%O%n%A%n%Z %C %S",PG:"%N%n%O%n%A%n%C %Z %S",PH:"%N%n%O%n%A%n%D, %C%n%Z %S",PK:"%N%n%O%n%A%n%D%n%C-%Z",PL:"%N%n%O%n%A%n%Z %C",PM:"%O%n%N%n%A%n%Z %C %X",PN:"%N%n%O%n%A%n%C%n%Z",PR:"%N%n%O%n%A%n%C PR %Z",PT:"%N%n%O%n%A%n%Z %C",PW:"%N%n%O%n%A%n%C %S %Z",PY:"%N%n%O%n%A%n%Z %C",RE:"%O%n%N%n%A%n%Z %C %X",RO:"%N%n%O%n%A%n%Z %S %C",RS:"%N%n%O%n%A%n%Z %C",RU:"%N%n%O%n%A%n%C%n%S%n%Z",SA:"%N%n%O%n%A%n%C %Z",SC:"%N%n%O%n%A%n%C%n%S",SD:"%N%n%O%n%A%n%C%n%Z",SE:"%O%n%N%n%A%n%Z %C",SG:"%N%n%O%n%A%nSINGAPORE %Z",SH:"%N%n%O%n%A%n%C%n%Z",SI:"%N%n%O%n%A%n%Z %C",SJ:"%N%n%O%n%A%n%Z %C",SK:"%N%n%O%n%A%n%Z %C",SM:"%N%n%O%n%A%n%Z %C",SN:"%N%n%O%n%A%n%Z %C",SO:"%N%n%O%n%A%n%C, %S %Z",SR:"%N%n%O%n%A%n%C%n%S",SV:"%N%n%O%n%A%n%Z-%C%n%S",SZ:"%N%n%O%n%A%n%C%n%Z",TA:"%N%n%O%n%A%n%C%n%Z",TC:"%N%n%O%n%A%n%C%n%Z",TH:"%N%n%O%n%A%n%D %C%n%S %Z",TJ:"%N%n%O%n%A%n%Z %C",TM:"%N%n%O%n%A%n%Z %C",TN:"%N%n%O%n%A%n%Z %C",TR:"%N%n%O%n%A%n%Z %C/%S",TV:"%N%n%O%n%A%n%C%n%S",TW:"%Z%n%S%C%n%A%n%O%n%N",TZ:"%N%n%O%n%A%n%Z %C",UA:"%N%n%O%n%A%n%C%n%S%n%Z",UM:"%N%n%O%n%A%n%C %S %Z",US:"%N%n%O%n%A%n%C, %S %Z",UY:"%N%n%O%n%A%n%Z %C %S",UZ:"%N%n%O%n%A%n%Z %C%n%S",VA:"%N%n%O%n%A%n%Z %C",VC:"%N%n%O%n%A%n%C %Z",VE:"%N%n%O%n%A%n%C %Z, %S",VG:"%N%n%O%n%A%n%C%n%Z",VI:"%N%n%O%n%A%n%C %S %Z",VN:"%N%n%O%n%A%n%C%n%S %Z",WF:"%O%n%N%n%A%n%Z %C %X",XK:"%N%n%O%n%A%n%Z %C",YT:"%O%n%N%n%A%n%Z %C %X",ZA:"%N%n%O%n%A%n%D%n%C%n%Z",ZM:"%N%n%O%n%A%n%Z %C"},u={"%N":"name","%O":"organization","%A":"addressLines","%D":"dependentLocality","%C":"locality","%S":"administrativeArea","%Z":"postalCode","%X":"sortingCode","%R":"postalCountry"},c=["AU","AT","BG","HR","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IT","LV","LT","LU","NL","NZ","NO","PL","PT","RO","SK","SI","ES","SE","CH","TR","IE","JP","BR"],d=(e,t)=>{const r=[],o=e.addressLine2??e.addressLine_2??void 0;if(e.streetAddress){const t=(({name:e,number:t,apt:r},o)=>{if(!e&&!t)return"";if(!e||!t)return e||t;const i=r?`${t}-${r}`:t;return c.includes(o)?`${e} ${i}`.trim():`${i} ${e}`.trim()})(e.streetAddress,e.country);r.push(t)}else e.addressLine&&r.push(e.addressLine);return o&&r.push(o),{name:t?.fullName,organization:t?.company,postalCountry:e.country,administrativeArea:e.subdivision,locality:e.city,country:e.countryFullname,postalCode:e.postalCode,addressLines:r}},p=e=>"%"===e[0]&&"%n"!==e,h=e=>u[e],g=(e,t)=>"addressLines"===t?void 0!==e.addressLines&&e.addressLines.length>0:void 0!==e[t]&&""!==e[t],m=({address:e,addressContactDetails:t},{appendCountry:r=!0}={})=>{const o=d(e,t),i=(e=>{const t=[];let r=0;for(;r<e.length;){if("%"===e[r])t.push(e.slice(r,r+2)),r+=1;else{let o=r;for(;"%"!==e[o]&&o<e.length;)o+=1;t.push(e.slice(r,o)),r=o-1}r+=1}return t})((e=>{const t=e?.toUpperCase();return t&&t in l?l[t]:"%N%n%O%n%A%n%C"})(e.country)),n=((e,t)=>{const r=[];let o=0;for(;o<t.length;){const i=t[o];if("%n"===i)r.push(i);else if(p(i)){const t=h(i);g(e,t)&&r.push(i)}else{const n=0===o||!p(t[o-1])||r.length>0&&p(r[r.length-1]),a=o===i.length-1||"%n"===i[o+1]||g(e,h(t[o+1]));n&&a&&r.push(i)}o+=1}for(;r.length>0&&"%n"===r[0];)r.shift();return r})(o,i);return((e,t,r)=>{const o=[];let i="";for(const r of t)if("%n"===r)i.length>0&&(o.push(i),i="");else if(p(r)){const t=h(r);if("postalCountry"===t)continue;if("addressLines"===t){e.addressLines&&e.addressLines.length>0&&(i+=e.addressLines[0],o.push(i),i="",2===e.addressLines.length&&o.push(e.addressLines[1]));continue}i+=e[t]}else i+=r;return i.length>0&&o.push(i),r.appendCountry&&e.country&&o.push(e.country),o})(o,n,{appendCountry:r})};var f=r(34629);var y=r(77172),v=r.n(y),b=r(26179),S=r.n(b),P=function(e){return e&&e.split("-")[0]},w=function(e,t,r,o){return new(r||(r=Promise))((function(i,n){function a(e){try{l(o.next(e))}catch(e){n(e)}}function s(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},C=function(e,t){var r,o,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},E=function(){throw new Error("Translations has not been initialized yet")},A=function(){throw new Error("You are using t function, but have disabled translations.")},I=function(e){var t=e.language,o=e.defaultTranslations,i=e.prefix,n=void 0===i?"messages":i,a=e.defaultLanguage,s=e.availableLanguages,l=e.localeDistPath,u=e.initI18n,c=e.basePath,d=this;this.t=E,this.all={},this.init=function(e){var t=void 0===e?{}:e,o=t.prepopulated,i=t.wait,n=void 0!==i&&i,a=t.useSuspense,s=void 0!==a&&a;return w(d,void 0,void 0,(function(){var e,t,i,a=this;return C(this,(function(l){switch(l.label){case 0:if(e=this.config,t=new Set(e.availableLanguages||[]),!this._initI18n)throw new Error("Can't initialize i18n without initI18n method.");return this.i18n=this._initI18n({locale:e.language,useSuspense:s,wait:n,messages:o,disableAutoInit:!0,asyncMessagesLoader:function(o){var i;return"en"===o?Promise.resolve(e.defaultTranslations):t.has(o)?fetch("".concat(null!==(i=a.basePath)&&void 0!==i?i:r.p).concat(a.localeDistPath,"/").concat(e.prefix,"_").concat(o,".json")).then((function(t){return t.ok?t.json():Promise.reject(new Error("Can't load locale: ".concat(e.language)))})):Promise.reject(new Error("Locale assets for ".concat(o," are not provided")))}}),[4,this.i18n.init()];case 1:if(l.sent(),!(i=this.i18n.getResourceBundle(e.language,"translation"))&&t.has(e.language))throw new Error("Unexpected missing translations for language ".concat(e.language));return this.all=i||e.defaultTranslations||{},this.t=function(e,t){return a.i18n.t(e,t)},[2,this]}}))}))},this.config={availableLanguages:s,language:P(t),defaultTranslations:o,prefix:n,defaultLanguage:a},this.localeDistPath=l,this._initI18n=u,this.i18n=null,this.basePath=c},_=function(e){var t=e.providers,r=e.children,o=e.additionalProps;return t.reduce((function(e,t){return t(e,o||{})}),r)},T=(0,i.createContext)({error:null,errorId:null,errorEnvironment:null}).Provider,O=function(){return new URLSearchParams(window.location.search).get("editorType")},x=function(e){var t,r,o,i,n,a,s,l,u,c,d,p,h,g,m;this.entry="Widget";var f,y=e.host,v=e.controllerOptions,b=e.predefined,S=e.query;this.isSSR=null!==(t=null==b?void 0:b.isSSR)&&void 0!==t?t:null==v?void 0:v.isSSR,this.isRTL=null!==(r=null==b?void 0:b.isRTL)&&void 0!==r?r:null==v?void 0:v.isRTL,this.language=null!==(o=null==b?void 0:b.language)&&void 0!==o?o:null==v?void 0:v.language,this.multilingual=null!==(i=null==b?void 0:b.multilingual)&&void 0!==i?i:null==v?void 0:v.multilingual,this.appDefinitionId=null!==(n=null==b?void 0:b.appDefinitionId)&&void 0!==n?n:null==v?void 0:v.appDefinitionId,this.widgetId=null!==(a=null==b?void 0:b.widgetId)&&void 0!==a?a:null==v?void 0:v.widgetId,this.isMobile=null!==(s=null==b?void 0:b.isMobile)&&void 0!==s?s:"Mobile"===(null==y?void 0:y.formFactor),this.isEditor=null!==(l=null==b?void 0:b.isEditor)&&void 0!==l?l:"Editor"===(null==y?void 0:y.viewMode),this.isPreview=null!==(u=null==b?void 0:b.isPreview)&&void 0!==u?u:"Preview"===(null==y?void 0:y.viewMode),this.isViewer=null!==(c=null==b?void 0:b.isViewer)&&void 0!==c?c:"Site"===(null==y?void 0:y.viewMode),this.isEditorX=null!==(d=null==b?void 0:b.isEditorX)&&void 0!==d?d:function(e){var t;return null!==(t=null==e?void 0:e.booleans.responsive)&&void 0!==t&&t}(null==y?void 0:y.style.styleParams),this.isADI=null!==(p=null==b?void 0:b.isADI)&&void 0!==p?p:(void 0===(f=S)&&(f={}),"onboarding"===f.dsOrigin),this.isClassicEditor=null!==(h=null==b?void 0:b.isClassicEditor)&&void 0!==h?h:function(e){return void 0===e&&(e={}),"Editor1.4"===e.dsOrigin}(S),this.isCssPerBreakpoint=null!==(g=null==b?void 0:b.isCssPerBreakpoint)&&void 0!==g?g:!!(null==y?void 0:y.usesCssPerBreakpoint),this.dimensions=null!==(m=null==b?void 0:b.dimensions)&&void 0!==m?m:{height:null==y?void 0:y.dimensions.height,width:null==y?void 0:y.dimensions.width}},N=(0,i.createContext)(null),L=N.Provider,M=N.Consumer,R=(0,i.createContext)(null),k=(R.Consumer,R.Provider);const D=(0,i.createContext)(null),B=(D.Consumer,({errorMonitor:e,children:t})=>{const r=(0,i.useMemo)((()=>({errorMonitor:e})),[e]);return n().createElement(D.Provider,{value:r.errorMonitor,children:t})});var H,V,F=r(62688),G=r.n(F),z=n().createContext({ready:!1,set:null,get:null,getDefaultValue:null,reset:null,resetAll:null,publishEvent:null}),W=z.Consumer,U=function(e){function t(){var t=this.constructor,r=e.call(this,'\nSettingsProvider is not ready.\nUsually this case should be unreachable.  \nIn case you face it use "context.ready: boolean" flag not determine if it possible to set/get params. \n')||this;return Object.setPrototypeOf(r,t.prototype),r}return(0,f.__extends)(t,e),t}(Error);!function(e){e.Set="set",e.Reset="reset",e.ResetAll="resetAll",e.PublishEvent="publishEvent"}(H||(H={})),function(e){e.Setting="Settings",e.Styles="Styles"}(V||(V={}));var j,K=function(e){function t(t,r){var o=this.constructor,i=e.call(this,"\nCan't modify ".concat(r," values from current environment.\nPlease make sure you are not using `").concat(r,".").concat(t,"(...)` from the widget part.\n"))||this;return Object.setPrototypeOf(i,o.prototype),i}return(0,f.__extends)(t,e),t}(Error);!function(e){e.Number="Number",e.Boolean="Boolean",e.String="String",e.Text="Text",e.Object="Object"}(j||(j={}));var Z=function(){var e,t=this;this.handlers=((e={})[j.Object]={serialize:function(e){return"string"==typeof e?(console.error("\u26a0\ufe0f Seems like you are calling `settings.set(param, JSON.stringify(value))`. Please, pass a plain object/array and tpa-settings will serializate it."),e):JSON.stringify(e)},deserialize:function(e){return"string"!=typeof e?e:JSON.parse(e)}},e),this.serialize=function(e,r){return e.type===j.Object?t.handlers[j.Object].serialize(r):r},this.deserialize=function(e,r){return e.type===j.Object?t.handlers[j.Object].deserialize(r):r}},$=function(e){function t(){var t=this.constructor,r=e.call(this,"\nNo `Wix`, `editorSDK` or `publicData` was passed to TPASettingsProvider.\nIn order to work with tpa-settings, you have to pass either Wix SDK or Editor SDK for Settings panel mode or publicData for Widget mode.\n")||this;return Object.setPrototypeOf(r,t.prototype),r}return(0,f.__extends)(t,e),t}(Error),q=function(e,t){return e.localeCompare(t)},Y=function(e,t){var r=t.isMobile,o=t.language,i=void 0===o?"en":o;return"function"==typeof e.dangerousKeyTransformationOverride?e.dangerousKeyTransformationOverride(e.key,{isMobile:r,language:i}):function(e,t,r){if("string"!=typeof e)throw new Error("`generateKey` expects key to be passed and be a string");if(!t)throw new Error("`generateKey` expects options to be passed");return Object.keys(r).sort(q).reduce((function(e,o){var i=r[o]===t[o],n=!t[o]&&!r[o];return i||n?e:e+"\u25b6\ufe0e"+("boolean"!=typeof t[o]||r[o]?o+":"+t[o]:o)}),e)}(e.key,{m:r,l:i},{m:!1,l:"en"})},X=function(e){return e.type===j.Text},Q=function(e,t){return{languageAndMobile:Y(e,{isMobile:t.isMobile,language:t.language}),language:Y(e,{isMobile:!1,language:t.language}),mobile:Y(e,{isMobile:t.isMobile}),original:e.key}},J=function(e){return void 0===e.inheritDesktop||e.inheritDesktop},ee=function(e){var t=e.environmentLabel;return function(e){throw new Error("It is not possible to translate ".concat(e,". Translate function was not passed to the ").concat(t))}},te=new Z;function re(e,t,r){void 0===r&&(r={});var o,i=X(t),n=Q(t,{isMobile:r.isMobile,language:i?r.language:void 0}),a=J(t);return i?void 0!==e[n.languageAndMobile]?o=e[n.languageAndMobile]:a&&void 0!==e[n.language]&&(o=e[n.language]):void 0!==e[n.mobile]?o=e[n.mobile]:a&&void 0!==e[n.original]&&(o=e[n.original]),te.deserialize(t,o)}var oe=!1;function ie(e,t,r,o){void 0===r&&(r={});var i=(0,f.__rest)(r,[]);void 0===o&&(o="COMPONENT");var n=e;e.COMPONENT||(oe||(console.warn("`getSettingsValue` or `getSettingsValues` should accept whole public data object. Probably, data was passed only for one scope."),oe=!0),n={COMPONENT:e,APP:{}});var a="COMPONENT"===o&&t.inheritFromAppScope,s=re(n[o],t,i);return void 0===s&&a&&(s=re(n.APP,t,i)),t.getDefaultValue&&void 0===s?ne(n,o,t,i):s}function ne(e,t,r,o){var i,n;void 0===o&&(o={});var a=null!==(i=o.t)&&void 0!==i?i:ee({environmentLabel:null!==(n=o.environmentLabel)&&void 0!==n?n:"`getSettingsValue` function"});return r.getDefaultValue({isMobile:o.isMobile,isRTL:o.isRTL,isEditorX:o.isEditorX,t:a,presetId:o.presetId,experiments:o.experiments,getSettingParamValue:function(r,i){return void 0===i&&(i={}),ie(e,r,(0,f.__assign)((0,f.__assign)((0,f.__assign)({},o),i),{t:a}),t)}})}var ae=function(e){var t,r;return{APP:null!==(t=null==e?void 0:e.APP)&&void 0!==t?t:{},COMPONENT:null!==(r=null==e?void 0:e.COMPONENT)&&void 0!==r?r:{}}},se=function(e){function t(t){var r=e.call(this,t)||this;r.handleRevisionChanged=function(){return(0,f.__awaiter)(r,void 0,void 0,(function(){var e,t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return e=this.props.SDKAdapter,this.isWidgetMode()?[3,2]:[4,e.getAllData()];case 1:t=r.sent(),this.setState({publicData:ae(t)}),r.label=2;case 2:return[2]}}))}))},r.getLanguageForParam=function(e){return X(e)?r.props.language:void 0},r.handleGetParam=function(e){var t=r.props.scope;if(!r.state.ready)throw new U;return ie(r.state.publicData,e,{t:r.props.t,experiments:r.props.experiments,isMobile:r.props.isMobile,isEditorX:r.props.isEditorX,isRTL:r.props.isRTL,language:r.props.language,presetId:r.state.publicData[t].presetId,environmentLabel:"<SettingsProvider />"},t)},r.handleGetDefaultValue=function(e){var t=r.props.scope;return ne(r.state.publicData,t,e,{t:r.props.t,experiments:r.props.experiments,isMobile:r.props.isMobile,isEditorX:r.props.isEditorX,isRTL:r.props.isRTL,presetId:r.state.publicData[t].presetId,environmentLabel:"<SettingsProvider />"})},r.handleSetParam=function(e,t){var o,i,n=r.props.scope;if(!r.state.ready)throw new U;if(r.isWidgetMode())throw new K(H.Set,V.Setting);var a=r.serializer.serialize(e,t),s=Y(e,{isMobile:r.props.isMobile,language:r.getLanguageForParam(e)});r.state.publicData[n][s]!==a&&(r.setState((function(e){var t,r;return(0,f.__assign)((0,f.__assign)({},e),{publicData:(0,f.__assign)((0,f.__assign)({},e.publicData),(t={},t[n]=(0,f.__assign)((0,f.__assign)({},e.publicData[n]),(r={},r[s]=a,r)),t))})})),r.setWixDataParam(s,a),null===(o=r.props.history)||void 0===o||o.addDebounced(e.key),null===(i=r.props.bi)||void 0===i||i.settingsChanged({parameter:e.key,value:a}))},r.handleResetParam=function(e){var t,o,i=r.props.scope;if(r.isWidgetMode())throw new K(H.Reset,V.Setting);var n=Y(e,{isMobile:r.props.isMobile,language:r.getLanguageForParam(e)});r.setState((function(e){var t,r;return(0,f.__assign)((0,f.__assign)({},e),{publicData:(0,f.__assign)((0,f.__assign)({},e.publicData),(t={},t[i]=(0,f.__assign)((0,f.__assign)({},e.publicData[i]),(r={},r[n]=void 0,r)),t))})})),r.removeWixDataParam(n),null===(t=r.props.history)||void 0===t||t.addDebounced(e.key),null===(o=r.props.bi)||void 0===o||o.settingsChanged({parameter:e.key,value:""})},r.handleResetAll=function(e){var t,o;if(r.isWidgetMode())throw new K(H.ResetAll,V.Setting);null===(t=r.props.history)||void 0===t||t.startBatch(),Object.keys(e).forEach((function(t){r.handleResetParam(e[t])})),null===(o=r.props.history)||void 0===o||o.endBatch("All settings")},r.handlePublishEvent=function(e,t){if(r.isWidgetMode())throw new K(H.PublishEvent,V.Setting);r.setWixDataParam("___settingsEvent",{event:e,payload:{id:Date.now(),value:t}})};var o=t.publicData;return r.state={ready:!!o,publicData:ae(o)},r.serializer=new Z,r}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,t,r,o=this;return(0,f.__generator)(this,(function(i){switch(i.label){case 0:return e=this.props,t=e.SDKAdapter,e.publicData?[2]:t?[4,t.getAllData()]:[3,2];case 1:return r=i.sent(),this.setState({ready:!0,publicData:ae(r)}),window.onunload=function(){o.handlePublishEvent("reset",{})},[2];case 2:throw new $}}))}))},t.prototype.componentDidUpdate=function(e){var t=this.props,r=t.publicData,o=t.revisionID;this.isWidgetMode()&&r!==e.publicData&&this.setState({ready:!!r,publicData:ae(r)}),o!==e.revisionID&&this.handleRevisionChanged()},t.prototype.isWidgetMode=function(){return this.props.publicData},t.prototype.setWixDataParam=function(e,t){var r=this.props,o=r.SDKAdapter,i=r.scope;o.setData(e,t,i)},t.prototype.removeWixDataParam=function(e){var t=this.props,r=t.SDKAdapter,o=t.scope;r.removeData(e,o)},t.prototype.render=function(){return n().createElement(z.Provider,{value:{ready:this.state.ready,get:this.handleGetParam,getDefaultValue:this.handleGetDefaultValue,set:this.handleSetParam,reset:this.handleResetParam,resetAll:this.handleResetAll,publishEvent:this.handlePublishEvent}},this.props.children)},t.propTypes={SDKAdapter:G().object,settingsValues:G().object,t:G().func,experiments:G().object,bi:G().object,isMobile:G().bool,isEditorX:G().bool,scope:G().string.isRequired},t.defaultProps={scope:"COMPONENT"},t}(n().Component),le=r(16252),ue=r(11416),ce=r(86019),de=r(55286);function pe(e){var t=e.styles,r=e.textPresets,o=e.colors,i=e.isMobile,n=e.isRTL,a=e.isEditorX,s=e.dimensions,l=e.experiments,u=e.styleParamsPerBreakpointMode;return function(e){return e.getDefaultValue({colors:o,textPresets:r,isMobile:i,isRTL:n,isEditorX:a,dimensions:s,experiments:l,getStyleParamValue:function(e,c){return void 0===c&&(c={}),he((0,f.__assign)({storage:t,colors:o,textPresets:r,isMobile:i,isRTL:n,isEditorX:a,dimensions:s,experiments:l,styleParamsPerBreakpointMode:u},c))(e)}})}}function he(e){var t=e.storage,r=e.textPresets,o=e.colors,i=void 0===o?[]:o,n=e.isMobile,a=e.isRTL,s=e.isEditorX,l=e.dimensions,u=e.experiments,c=e.styleParamsPerBreakpointMode,d=function(e){return(t.numbers||{})[e]},p=function(e){return(t.booleans||{})[e]},h=function(e){return(t.fonts||{})[e]},g=function(e){return(t.colors||{})[e]},m=function(e){return(t.strings||{})[e]};return function(e){var o,y,v=(o={},o[ce.N.Number]=d,o[ce.N.Boolean]=p,o[ce.N.Font]=h,o[ce.N.Color]=g,o[ce.N.String]=m,o)[e.type],b=e.key||e.name;if(c)y=v(b);else{var S=Y((0,f.__assign)((0,f.__assign)({},e),{key:b}),{isMobile:n});y=v(S);var P=J(e);S!==b&&P&&void 0===y&&(y=v(b))}return void 0===y&&e.getDefaultValue?pe({styles:t,textPresets:r,colors:i,isMobile:n,isRTL:a,isEditorX:s,dimensions:l,experiments:u,styleParamsPerBreakpointMode:c})(e):y}}var ge=function(e){function t(t){var r=this.constructor,o=e.call(this,"\nYou are calling `getDefaultValue` for styles param, but it wasn't specified.\nPlease check the `".concat(t,"` style param implementation.\n"))||this;return Object.setPrototypeOf(o,r.prototype),o}return(0,f.__extends)(t,e),t}(Error);var me=function(){function e(e){var t=e.styleParams,r=e.wixStyles,o=e.textPresets,i=e.colors,n=e.history,a=e.bi,s=e.isMobile,l=e.isRTL,u=e.isEditorX,c=e.dimensions,d=e.experiments,p=e.styleParamsPerBreakpointMode,h=e.currentStylesGetter,g=e.allStylesGetter,m=this;this.set=function(e,t,r){var o,i;void 0===r&&(r={}),e.name&&console.warn('Check the "'.concat(e.name,'" style param \u2013 property "name" is deprecated. Please use "key"'));var n=e.key||e.name,a=Y((0,f.__assign)((0,f.__assign)({},e),{key:n}),{isMobile:!m.styleParamsPerBreakpointMode&&m.isMobile});switch(e.type){case ce.N.Number:m.setNumberParam(a,t,r);break;case ce.N.Boolean:m.setBooleanParam(a,t,r);break;case ce.N.Font:m.setFontParam(a,t,r);break;case ce.N.Color:m.setColorParam(a,t,r);break;case ce.N.String:m.setStringParam(a,t,r);break;default:console.error('"'.concat(e.type,'" is not supported type.'))}null===(o=m.history)||void 0===o||o.addDebounced(n),null===(i=m.bi)||void 0===i||i.settingsChanged({parameter:n,value:t})},this.getCurrentStyles=function(){return m.currentStylesGetter?m.wixStyles.decode(m.currentStylesGetter(),m.colors,m.textPresets):m.styles},this.get=function(e){return he({storage:m.getCurrentStyles(),colors:m.colors,textPresets:m.textPresets,isMobile:m.isMobile,isRTL:m.isRTL,isEditorX:m.isEditorX,dimensions:m.dimensions,experiments:m.experiments,styleParamsPerBreakpointMode:m.styleParamsPerBreakpointMode})(e)},this.getDefaultValue=function(e){if(!e.getDefaultValue)throw new ge(e.key);return pe({styles:m.styles,colors:m.colors,textPresets:m.textPresets,isMobile:m.isMobile,isRTL:m.isRTL,isEditorX:m.isEditorX,dimensions:m.dimensions,experiments:m.experiments,styleParamsPerBreakpointMode:m.styleParamsPerBreakpointMode})(e)},this.reset=function(e){var t=pe({styles:m.styles,colors:m.colors,textPresets:m.textPresets,isMobile:m.isMobile,isRTL:m.isRTL,isEditorX:m.isEditorX,dimensions:m.dimensions,experiments:m.experiments,styleParamsPerBreakpointMode:m.styleParamsPerBreakpointMode});m.set(e,t(e))},this.resetAll=function(e){var t,r;null===(t=m.history)||void 0===t||t.startBatch(),Object.keys(e).forEach((function(t){m.reset(e[t])})),null===(r=m.history)||void 0===r||r.endBatch("All styles")},this.wixStyles=r,this.textPresets=o,this.colors=i,this.styles=t,this.history=n,this.bi=a,this.isMobile=s,this.isRTL=l,this.isEditorX=u,this.dimensions=c,this.experiments=d,this.styleParamsPerBreakpointMode=p,this.currentStylesGetter=h,this.allStylesGetter=g}return e.prototype.setStylesParam=function(e,t,r){var o,i;this.styles=(0,f.__assign)((0,f.__assign)({},this.styles),((o={})[e]=(0,f.__assign)((0,f.__assign)({},this.styles[e]),((i={})[t]=r,i)),o))},e.prototype.setBooleanParam=function(e,t,r){this.setStylesParam("booleans",e,t),this.wixStyles.setBooleanParam(e,t,r)},e.prototype.setColorParam=function(e,t,r){this.setStylesParam("colors",e,function(e,t){if(null==e?void 0:e.name){var r=t.find((function(t){return t.name===e.name}));return(0,f.__assign)((0,f.__assign)({},e),{value:(0,de.A)(r.value,e.opacity).rgb()})}return e}(t,this.colors)),this.wixStyles.setColorParam(e,t,r)},e.prototype.setFontParam=function(e,t,r){this.setStylesParam("fonts",e,t),this.wixStyles.setFontParam(e,t,r)},e.prototype.setNumberParam=function(e,t,r){this.setStylesParam("numbers",e,t),this.wixStyles.setNumberParam(e,t,r)},e.prototype.setStringParam=function(e,t,r){this.setStylesParam("strings",e,t),this.wixStyles.setStringParam(e,t,r)},e.prototype.getAll=function(){return JSON.parse(JSON.stringify(this.getCurrentStyles()))},e.prototype.getAllForAllBreakpoints=function(){var e=this;return this.allStylesGetter?JSON.parse(JSON.stringify(this.allStylesGetter().map((function(t){return e.wixStyles.decode(t,e.colors,e.textPresets)})))):[this.getAll()]},e.prototype.setStyleParams=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return t=this,[4,this.wixStyles.decode(e,this.colors,this.textPresets)];case 1:return t.styles=r.sent(),[2]}}))}))},e.prototype.handleSiteColorChange=function(e){var t=this.styles.colors,r=Object.keys(t).reduce((function(r,o){return t[o].name?r[o]=(0,f.__assign)((0,f.__assign)({},t[o]),{value:e[t[o].name]}):r[o]=t[o],r}),{});this.styles=(0,f.__assign)((0,f.__assign)({},this.styles),{colors:r})},e}();var fe=r(89229);function ye(e,t,r){var o=Object.keys(e.fonts||[]).reduce((function(t,o){var i,n,a=e.fonts[o];return(0,f.__assign)((0,f.__assign)({},t),{fonts:(0,f.__assign)((0,f.__assign)({},t.fonts),(i={},i[o]="Custom"!==a.preset&&null!==(n=(0,fe.NY)(e.fonts[o].preset,r))&&void 0!==n?n:a,i))})}),{fonts:{}}).fonts,i=Object.keys(e.colors||[]).reduce((function(r,o){var i;try{var n=function(e,t){var r;if(!e.value)return null;if(e.themeName){var o=t.find((function(t){return t.reference===e.themeName||t.name===e.themeName})),i=(0,de.A)(e.value||o.value);if(o)return{value:i.rgb(),name:o.name,opacity:i.opacity()}}var n=(0,de.A)(e.value);return{value:n.rgb(),name:null!==(r=e.themeName)&&void 0!==r?r:null,opacity:n.opacity()}}(e.colors[o],t);return(0,f.__assign)((0,f.__assign)({},r),{colors:(0,f.__assign)((0,f.__assign)({},r.colors),(i={},i[o]=n,i))})}catch(e){return(0,f.__assign)((0,f.__assign)({},r),{errors:r.errors.concat(o)})}}),{colors:{},errors:[]}),n=i.colors;i.errors;return(0,f.__assign)((0,f.__assign)({},e),{fonts:o,colors:n})}var ve,be,Se=function(){function e(e,t){var r=this;this.refresh=function(){return(0,f.__awaiter)(r,void 0,void 0,(function(){var e,t,r;return(0,f.__generator)(this,(function(o){switch(o.label){case 0:return(null===(r=this.editorSDKAdapter)||void 0===r?void 0:r.instance)?[4,this.editorSDKAdapter.instance.components.getById("token",{id:new URLSearchParams(window.location.search).get("origCompId")})]:[3,3];case 1:return e=o.sent(),[4,this.editorSDKAdapter.instance.document.tpa.getStyleParams("token",{compRef:e})];case 2:return t=o.sent(),[2,this.normalizeStylesReceivedFromEditorSDK(t)];case 3:return[2]}}))}))},this.decode=function(e,t,r){return e?ye(e,t,r):null},this.SDKAdapter=e,this.editorSDKAdapter=t}return e.prototype.setBooleanParam=function(e,t,r){this.SDKAdapter.setBooleanParam(e,t,r)},e.prototype.setFontParam=function(e,t,r){this.SDKAdapter.setFontParam(e,t,r)},e.prototype.setNumberParam=function(e,t,r){this.SDKAdapter.setNumberParam(e,t,r)},e.prototype.setColorParam=function(e,t,r){return(0,f.__awaiter)(this,void 0,void 0,(function(){var o,i;return(0,f.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.SDKAdapter.getSiteColors()];case 1:return o=n.sent(),i=function(e,t){if(e.name){var r=t.find((function(t){return t.name===e.name})),o=(0,de.A)(r.value,e.opacity).rgb();return{opacity:e.opacity,rgba:o,color:{value:o,name:r.name,reference:r.reference}}}return{opacity:e.opacity,rgba:(0,de.A)(e.value,e.opacity).rgb(),color:!1}}(t,o),this.SDKAdapter.setColorParam(e,i,r),[2]}}))}))},e.prototype.setStringParam=function(e,t,r){this.editorSDKAdapter.setStringParam(e,t,r)},e.prototype.load=function(){return this.SDKAdapter.getStyleParams()},e.prototype.getSiteTextPresets=function(){return this.SDKAdapter.getSiteTextPresets()},e.prototype.getSiteColors=function(){return this.SDKAdapter.getSiteColors()},e.prototype.normalizeStylesReceivedFromEditorSDK=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t,r,o,i,n,a;return(0,f.__generator)(this,(function(s){switch(s.label){case 0:for(n in t=function(t){var o,i;return(0,f.__generator)(this,(function(n){switch(n.label){case 0:return e.colors.hasOwnProperty(t)&&e.colors[t].hasOwnProperty("themeName")?[4,r.getSiteColors()]:[3,2];case 1:o=n.sent(),i=o.find((function(r){return r.name===e.colors[t].themeName})),e.colors[t].themeName=i.reference,n.label=2;case 2:return[2]}}))},r=this,o=e.colors,i=[],o)i.push(n);a=0,s.label=1;case 1:return a<i.length?(n=i[a])in o?[5,t(n)]:[3,3]:[3,4];case 2:s.sent(),s.label=3;case 3:return a++,[3,1];case 4:return[2,e]}}))}))},e}(),Pe=function(e){function t(){var t=this.constructor,r=e.call(this,'\nStylesProvider is not ready. Styles are not loaded.\nUsually this case should be unreachable.  \nIn case you face it use "context.ready: boolean" flag not determine if it possible to set/get params. \n')||this;return Object.setPrototypeOf(r,t.prototype),r}return(0,f.__extends)(t,e),t}(Error),we=((ve={})[ce.N.Number]="numbers",ve[ce.N.Boolean]="booleans",ve[ce.N.Font]="fonts",ve[ce.N.Color]="colors",ve[ce.N.String]="strings",ve),Ce=function(e){function t(t){var r=e.call(this,t)||this;return r.state={ready:!1,styles:null},r.getStyleParamsWithDefaults=function(e){var t=r.props.userStylesParams;if(!t)return e;var o=he({storage:e,colors:r.props.siteColors,textPresets:r.props.textPresets,isMobile:r.props.isMobile,isRTL:r.props.isRTL,isEditorX:r.props.isEditorX,dimensions:r.props.dimensions,experiments:r.props.experiments,styleParamsPerBreakpointMode:r.props.styleParamsPerBreakpointMode});return Object.values(t).forEach((function(t){var r=o(t);void 0!==r&&(e[we[t.type]][t.key]=r)})),e},r.getStylesForAllBreakpoints=function(){if(!r.state.ready)throw new Pe;return r.stylesStore.getAllForAllBreakpoints().map(r.getStyleParamsWithDefaults)},r.handleGetParam=function(e){if(!r.state.ready)throw new Pe;return r.stylesStore.get(e)},r.handleGetDefaultValue=function(e){if(!r.state.ready)throw new Pe;return r.stylesStore.getDefaultValue(e)},r.handleSetParam=function(e,t,o){if(!r.state.ready)throw new Pe;if(r.isWidgetMode())throw new K(H.Set,V.Styles);if(r.stylesStore.get(e)!==t){r.stylesStore.set(e,t,o);var i=r.stylesStore.getAll();r.setState({styles:i})}},r.handleResetParam=function(e){if(!r.state.ready)throw new Pe;if(r.isWidgetMode())throw new K(H.Reset,V.Styles);r.stylesStore.reset(e);var t=r.stylesStore.getAll();r.setState({styles:t})},r.handleResetAll=function(e){if(!r.state.ready)throw new Pe;if(r.isWidgetMode())throw new K(H.ResetAll,V.Styles);r.stylesStore.resetAll(e),r.setState({styles:r.stylesStore.getAll()})},r.handleSiteColorChange=function(e){if(!r.state.ready)throw new Pe;r.stylesStore.handleSiteColorChange(e);var t=r.stylesStore.getAll();r.setState({styles:t})},r.isWidgetMode(t)&&(r.wixStyles=new Se,r.initStylesStore({textPresets:t.textPresets,colors:t.siteColors,styleParams:t.styleParams,currentStylesGetter:t.currentStylesGetter,allStylesGetter:t.allStylesGetter})),r.state={ready:r.isWidgetMode(t),styles:null},r}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,t,r,o,i,n,a;return(0,f.__generator)(this,(function(s){switch(s.label){case 0:return this.isWidgetModeWithoutStyleProps()?(this.setState({ready:!0}),[2]):this.isWidgetMode()?[2]:(this.wixStyles=new Se(this.props.SDKAdapter,this.props.editorSDKAdapter),n=(i=Promise).all,[4,this.wixStyles.load()]);case 1:return a=[s.sent()],[4,this.wixStyles.getSiteTextPresets()];case 2:return a=a.concat([s.sent()]),[4,this.wixStyles.getSiteColors()];case 3:return[4,n.apply(i,[a.concat([s.sent()])])];case 4:return e=s.sent(),t=e[0],r=e[1],o=e[2],this.initStylesStore({styleParams:t,textPresets:r,colors:o,currentStylesGetter:this.props.currentStylesGetter,allStylesGetter:this.props.allStylesGetter}),this.setState({ready:!0}),[2]}}))}))},t.prototype.initStylesStore=function(e){var t=e.styleParams,r=e.textPresets,o=e.colors,i=e.currentStylesGetter,n=e.allStylesGetter,a=this.wixStyles.decode(t,o,r);this.stylesStore=new me({styleParams:a,textPresets:r,colors:o,wixStyles:this.wixStyles||null,history:this.props.history,bi:this.props.bi,isMobile:this.props.isMobile,isRTL:this.props.isRTL,isEditorX:this.props.isEditorX,dimensions:this.props.dimensions,experiments:this.props.experiments,styleParamsPerBreakpointMode:this.props.styleParamsPerBreakpointMode,currentStylesGetter:i,allStylesGetter:n})},t.prototype.componentDidUpdate=function(e){var t;return(0,f.__awaiter)(this,void 0,void 0,(function(){var r,o;return(0,f.__generator)(this,(function(i){switch(i.label){case 0:if(this.props.revisionID===e.revisionID)return[3,2];if(!(null===(t=this.props.editorSDKAdapter)||void 0===t?void 0:t.instance))throw new Error("Pass editorSDK to TPASettingsProvider's props");return[4,this.wixStyles.refresh()];case 1:r=i.sent(),this.stylesStore.setStyleParams(r),o=this.stylesStore.getAll(),this.setState({styles:o}),i.label=2;case 2:return this.isWidgetMode(this.props)&&this.widgetPropsChanged(this.props,e)&&this.initStylesStore({textPresets:this.props.textPresets,colors:this.props.siteColors,styleParams:this.props.styleParams,currentStylesGetter:this.props.currentStylesGetter,allStylesGetter:this.props.allStylesGetter}),[2]}}))}))},t.prototype.isWidgetMode=function(e){return void 0===e&&(e=this.props),e.styleParams&&!e.SDKAdapter},t.prototype.widgetPropsChanged=function(e,t){return!((0,le.isEqual)(e.styleParams,t.styleParams)&&(0,le.isEqual)(e.siteColors,t.siteColors)&&(0,le.isEqual)(e.textPresets,t.textPresets)&&(0,le.isEqual)(e.dimensions,t.dimensions)&&e.isMobile===t.isMobile&&e.allStylesGetter===t.allStylesGetter&&e.currentStylesGetter===t.currentStylesGetter)},t.prototype.isWidgetModeWithoutStyleProps=function(){return!this.isWidgetMode()&&!this.props.SDKAdapter},t.prototype.render=function(){return n().createElement(ue.s.Provider,{value:{getStylesForAllBreakpoints:this.getStylesForAllBreakpoints,ready:this.state.ready,get:this.handleGetParam,getDefaultValue:this.handleGetDefaultValue,set:this.handleSetParam,reset:this.handleResetParam,resetAll:this.handleResetAll,changeSiteColors:this.handleSiteColorChange}},this.props.children)},t.propTypes={SDKAdapter:G().object,isMobile:G().bool,isRTL:G().bool,isEditorX:G().bool,dimensions:G().object,experiments:G().object,bi:G().object,styleParams:G().object,textPresets:G().object,siteColors:G().array,userStylesParams:G().object,styleParamsPerBreakpointMode:G().bool,currentStylesGetter:G().func,allStylesGetter:G().func},t}(n().Component),Ee=function(e){var t=e.t,r=e.experiments,o=e.publicData,i=e.isMobile,a=e.isRTL,s=e.isEditorX,l=e.dimensions,u=e.language,c=e.children,d=e.hostStyle,p=e.stylesParams,h=e.styleParamsPerBreakpointMode,g=e.currentStylesGetter,m=e.allStylesGetter;return n().createElement(se,{t,experiments:r,publicData:o,isMobile:i,isRTL:a,isEditorX:s,language:u},n().createElement(Ce,{userStylesParams:p,currentStylesGetter:g,allStylesGetter:m,styleParamsPerBreakpointMode:h,styleParams:null==d?void 0:d.styleParams,textPresets:null==d?void 0:d.siteTextPresets,siteColors:null==d?void 0:d.siteColors,isEditorX:s,isMobile:i,isRTL:a,experiments:r,dimensions:l},n().createElement(W,null,(function(e){return n().createElement(ue.H,null,(function(t){return e.ready&&t.ready&&c}))}))))},Ae=r(40565),Ie=function(){return Ie=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ie.apply(this,arguments)},_e=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]])}return r},Te=function(){return null},Oe=function(e){var t=e.experimentsDisabled,r=_e(e,["experimentsDisabled"]),o=(t?Te:Ae.W)();return n().createElement(Ee,Ie({experiments:null==o?void 0:o.experiments},r))},xe=function(){return xe=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xe.apply(this,arguments)},Ne={language:"_language",translations:"_translations",multilingual:"_multilingual",experiments:"_experiments",biMethods:"_biMethods",openModal:"__openModal__",biUtil:"_biUtil",mobile:"_mobile",isRTL:"_isRTL",isSSR:"_isSSR",isSEO:"_isSEO",appDefinitionId:"_appDefinitionId",widgetId:"_widgetId",fedopsLogger:"_fedopsLogger",sentry:"_sentry",errorMonitor:"_errorMonitor",publicData:"_publicData",styles:"__styles",enabledHOCs:"_enabledHOCs",onAppLoaded:"_onAppLoaded",onAppLoadStarted:"_onAppLoadStarted",error:"_workerError",errorMonitorWithOptions:"__errorMonitorWithOptions",logger:"__logger",transactionWithAction:"__transactionWithAction",shouldReportAppLoadStarted:"shouldReportAppLoadStarted"},Le=function(){function e(){this.store={}}return e.prototype.init=function(){},e.prototype.getProps=function(){return this.store},e.prototype.getProp=function(e){var t=this.getPrivateKey(e);return this.store[t]},e.prototype.spreadProp=function(e){var t,r=this.getPrivateKey(e);return(t={})[r]=this.store[r],t},e.prototype.getPrivateKey=function(t){return e.PropsMap[t]},e.prototype.getFromExternalStore=function(e,t){return t[this.getPrivateKey(e)]},e.prototype.setProp=function(e,t){var r=this.getPrivateKey(e);this.store[r]=t},e.prototype.isHOCEnabled=function(e){return this.getProp("enabledHOCs")[e]},e.prototype.isFlowPropsReceived=function(){return!!this.getProp("enabledHOCs")},e.PropsMap=Ne,e}(),Me=(be=function(e,t){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},be(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}be(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Re=function(e){function t(t){var r=t.props,o=e.call(this)||this;return o.getPanoramaClient=function(){return e={errorMonitorWithOptions:o.getProp("errorMonitorWithOptions"),transactionWithAction:o.getProp("transactionWithAction"),logger:o.getProp("logger")},{errorMonitor:function(t){return{reportError:function(r,o){e.errorMonitorWithOptions(t,"reportError",r,o)},addBreadcrumb:function(r){e.errorMonitorWithOptions(t,"addBreadcrumb",r)}}},transaction:function(t){return{start:function(r){e.transactionWithAction(t,"start",r)},finish:function(r){e.transactionWithAction(t,"finish",r)}}},logger:function(){return e.logger}};var e},o.getBILogger=function(){return function(e){var t=e.biMethods,r=e.biUtil;return xe(xe({},t),{util:r})}({biMethods:o.getProp("biMethods"),biUtil:o.getProp("biUtil")})},o.initConsumerProps(r),o}return Me(t,e),t.prototype.initConsumerProps=function(e){this.store=e},t.prototype.getControllerError=function(){return this.getProp("error")?function(e){var t=new Error;return t.name=e.name,t.message=e.message,t.stack=e.stack,{error:t,errorId:e.errorId}}(this.getProp("error")):null},t}(Le),ke=(0,i.createContext)(null),De=(ke.Consumer,function(e){var t=e.openModal,r=e.children,o=(0,i.useMemo)((function(){return{openModal:t}}),[t]);return n().createElement(ke.Provider,{value:o},r)});const Be=(0,i.createContext)(null).Provider;const He=(0,i.createContext)(null).Provider;var Ve=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Fe=function(){return Fe=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fe.apply(this,arguments)},Ge=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]])}return r},ze=function(e){return(0,i.useMemo)((function(){return new Re({props:e})}),[e])},We=function(e){function t(t){var r=e.call(this,t)||this;return t.onAppLoadStarted&&t.onAppLoadStarted(),r}return Ve(t,e),t.prototype.componentDidMount=function(){this.props.onAppLoaded&&this.props.host.registerToComponentDidLayout(this.props.onAppLoaded)},t.prototype.render=function(){return this.props.children},t}(n().Component);const Ue=()=>n().createElement("div",null,"Loading...");var je=r(85707),Ke=r.n(je),Ze=r(58486),$e=r.n(Ze),qe=r(65832);const Ye=e=>{class t extends n().Component{render(){return n().createElement("div",{dir:this.props.isRTL?"rtl":void 0},n().createElement(e,this.props))}}return Ke()(t,"displayName",`withDirection(${(0,qe.A)(e)})`),$e()(t,e),t};function Xe(e){return t=>{if(!t.state)throw new Error("Controller not initialized. Cannot render without props.");return n().createElement(e,t)}}const Qe=e=>{class t extends n().Component{constructor(){super(...arguments),Ke()(this,"updateLayoutIfNeeded",(()=>{this.lastHeight!==this.node.offsetHeight&&(this.lastHeight=this.node.offsetHeight,this.props.host.updateLayout())})),Ke()(this,"updateLayoutIfNeededDebounced",(0,le.debounce)(this.updateLayoutIfNeeded,100,{leading:!0}))}componentDidMount(){this.node=document.getElementById(this.props.host.id),this.node&&(this.node.style.minWidth=0,this.observer=new MutationObserver(this.updateLayoutIfNeeded),this.observer.observe(this.node,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.lastHeight=this.node.offsetHeight,window.addEventListener("resize",this.updateLayoutIfNeededDebounced),window.addEventListener("transitionend",this.updateLayoutIfNeeded))}componentWillUnmount(){this.node&&(this.observer.disconnect(),window.removeEventListener("resize",this.updateLayoutIfNeededDebounced),window.removeEventListener("transitionend",this.updateLayoutIfNeeded))}render(){return n().createElement(e,this.props)}}return Ke()(t,"displayName",`withLayoutUpdate(${(0,qe.A)(e)})`),$e()(t,e),t},Je=e=>t=>{class r extends n().Component{render(){const{provisioningInProgress:r}=this.props;return r?n().createElement(e,this.props):n().createElement(t,this.props)}}return Ke()(r,"displayName",`withProvisioning(${(0,qe.A)(t)})`),$e()(r,t),r};var et=r(4452),tt=r.n(et),rt=r(41705),ot=r(10911),it=r(49257);var nt=r(64739),at=r(73228),st=["forwardedRef"];function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){(0,rt.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function o(o){var n=o.forwardedRef,a=function(e,t){if(null==e)return{};var r,o,i=(0,it.A)(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)r=n[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(o,st),s=(0,nt.B)(e,ut(ut({},a),{},{keyPrefix:t.keyPrefix})),l=(0,ot.A)(s,3),u=l[0],c=l[1],d=l[2],p=ut(ut({},a),{},{t:u,i18n:c,tReady:d});return t.withRef&&n?p.ref=n:!t.withRef&&n&&(p.forwardedRef=n),(0,i.createElement)(r,p)}o.displayName="withI18nextTranslation(".concat((0,at.Mn)(r),")"),o.WrappedComponent=r;return t.withRef?(0,i.forwardRef)((function(e,t){return(0,i.createElement)(o,Object.assign({},e,{forwardedRef:t}))})):o}}var dt=r(3790),pt=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some((function(e,o){return e[0]===t&&(r=o,!0)})),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(t,r){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,o=e(r,t);~o&&r.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,o=this.__entries__;r<o.length;r++){var i=o[r];e.call(t,i[1],i[0])}},t}()}(),ht="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,gt=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),mt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(gt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ft=["top","right","bottom","left","width","height","size","weight"],yt="undefined"!=typeof MutationObserver,vt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,o=!1,i=0;function n(){r&&(r=!1,e()),o&&s()}function a(){mt(n)}function s(){var e=Date.now();if(r){if(e-i<2)return;o=!0}else r=!0,o=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){ht&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){ht&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;ft.some((function(e){return!!~r.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bt=function(e,t){for(var r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},St=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||gt},Pt=_t(0,0,0,0);function wt(e){return parseFloat(e)||0}function Ct(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce((function(t,r){return t+wt(e["border-"+r+"-width"])}),0)}function Et(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Pt;var o=St(e).getComputedStyle(e),i=function(e){for(var t={},r=0,o=["top","right","bottom","left"];r<o.length;r++){var i=o[r],n=e["padding-"+i];t[i]=wt(n)}return t}(o),n=i.left+i.right,a=i.top+i.bottom,s=wt(o.width),l=wt(o.height);if("border-box"===o.boxSizing&&(Math.round(s+n)!==t&&(s-=Ct(o,"left","right")+n),Math.round(l+a)!==r&&(l-=Ct(o,"top","bottom")+a)),!function(e){return e===St(e).document.documentElement}(e)){var u=Math.round(s+n)-t,c=Math.round(l+a)-r;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return _t(i.left,i.top,s,l)}var At="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof St(e).SVGGraphicsElement}:function(e){return e instanceof St(e).SVGElement&&"function"==typeof e.getBBox};function It(e){return ht?At(e)?function(e){var t=e.getBBox();return _t(0,0,t.width,t.height)}(e):Et(e):Pt}function _t(e,t,r,o){return{x:e,y:t,width:r,height:o}}var Tt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_t(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=It(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ot=function(e,t){var r=function(e){var t=e.x,r=e.y,o=e.width,i=e.height,n="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(n.prototype);return bt(a,{x:t,y:r,width:o,height:i,top:r,right:t+o,bottom:i+r,left:t}),a}(t);bt(this,{target:e,contentRect:r})},xt=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new pt,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof St(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Tt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof St(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ot(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Nt="undefined"!=typeof WeakMap?new WeakMap:new pt,Lt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=vt.getInstance(),o=new xt(t,r,this);Nt.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){Lt.prototype[e]=function(){var t;return(t=Nt.get(this))[e].apply(t,arguments)}}));const Mt=void 0!==gt.ResizeObserver?gt.ResizeObserver:Lt;var Rt=function(){var e=(0,i.useContext)(N);if(!e)throw new Error("`useEnvironment()` can't be used within a `Settings` component. Please use `useSettingsEnvironment()`");return e};var kt=r(78304),Dt=r.n(kt);const Bt=()=>(0,i.useContext)(Ht),Ht=(0,i.createContext)({rootWidth:void 0});const Vt=Ht,Ft=Object.entries({xs:e=>e<660,s:e=>e>=660&&e<686,sm:e=>e>=686&&e<980,md:e=>e>=980&&e<1280,lg:e=>e>=1280&&e<1920,xl:e=>e>=1920,"lt-s":e=>e<660,"lt-sm":e=>e<686,"lt-md":e=>e<980,"lt-lg":e=>e<1280,"lt-xl":e=>e<1920,"gt-xs":e=>e>=660,"gt-s":e=>e>=686,"gt-sm":e=>e>=980,"gt-md":e=>e>=1280,"gt-lg":e=>e>=1920,"gt-740":e=>e>=740,"gt-830":e=>e>=830,"gt-886":e=>e>=886,"gt-940":e=>e>=940,"gt-1000":e=>e>=1e3,"gt-1080":e=>e>=1080,"gt-1200":e=>e>=1200,"w686-745":e=>e>=686&&e<=745,"w686-980":e=>e>=686&&e<=980,"lte-w980":e=>e<=980,"lte-post_content_area_min":e=>e<=746,"lte-post_content_area_small":e=>e<=900,"lte-banner-w1564":e=>e<=1564,"lte-banner-w1425":e=>e<=1425,"lte-banner-w1181":e=>e<=1181,"lte-banner-w980":e=>e<=980,"lte-category-header-w1364 ":e=>e<=1364}),Gt=e=>{const t=(0,i.useRef)(null),{dimensions:r,isMobile:o}=Rt(),a=!o,[s,l]=(0,i.useState)(r.width||void 0),u=(0,i.useMemo)((()=>((e,t)=>{if("number"!=typeof e)return t?"use-media-queries":void 0;const r=Ft.filter((t=>{let[r,o]=t;return o(e)})).map((e=>{let[t]=e;return t}));return tt()(r)})(s,a)),[a,s]);(0,i.useEffect)((()=>{if(!t.current)return;const e=new Mt((e=>{const t=Math.floor(e[0].contentRect.width);s!==t&&l(t)}));return e.observe(t.current),()=>{e.disconnect()}}),[s]);const c=(0,i.useMemo)((()=>({rootWidth:s})),[s]),d=(0,i.useMemo)((()=>({"--root-width":s?`${s}px`:"100vw"})),[s]);return n().createElement("div",{ref:t,style:d,className:tt()(u,e.className),"data-hook":e.dataHook},n().createElement(Vt.Provider,{value:c},e.children))};var zt=r(20915),Wt=r(51808);function Ut(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var jt="function"==typeof Symbol&&Symbol.observable||"@@observable",Kt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Zt={INIT:"@@redux/INIT"+Kt(),REPLACE:"@@redux/REPLACE"+Kt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kt()}};function $t(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function qt(e,t,r){var o;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Ut(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Ut(1));return r(qt)(e,t)}if("function"!=typeof e)throw new Error(Ut(2));var i=e,n=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(Ut(3));return n}function d(e){if("function"!=typeof e)throw new Error(Ut(4));if(l)throw new Error(Ut(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(Ut(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function p(e){if(!$t(e))throw new Error(Ut(7));if(void 0===e.type)throw new Error(Ut(8));if(l)throw new Error(Ut(9));try{l=!0,n=i(n,e)}finally{l=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}return p({type:Zt.INIT}),(o={dispatch:p,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ut(10));i=e,p({type:Zt.REPLACE})}})[jt]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Ut(11));function r(){e.next&&e.next(c())}return r(),{unsubscribe:t(r)}}})[jt]=function(){return this},e},o}const Yt=function(e,t=le.identity,r){function o(...o){const i=o[0]instanceof Error?o[0]:t?.apply(void 0,o),n={type:e};return null!=i&&(n.payload=i),(o instanceof Error||i instanceof Error)&&(n.error=!0),r&&(n.meta=r.apply(void 0,o)),n}return o.toString=()=>e,o.type=e,o};const Xt={},Qt=()=>{const e=Date.now(),t=(()=>{let e,t;return{promise:new Promise(((r,o)=>{e=r,t=o})),resolve:e,reject:t}})();return Xt[e]=t,{correlationId:e,promise:t.promise}},Jt=(Yt("modal/OPEN",((e,t,r,o)=>({type:e,props:t,correlationId:o})),((e,t,r,o)=>r)),Yt("modal/CLOSE",(e=>e)),e=>(t,r,o)=>{const{correlationId:i,promise:n}=Qt();return e(t,r,o,i),n});var er=r(72859);const tr=Yt("root/SET_STATE",(e=>e)),rr=Yt("root/SET_HOST",(e=>e)),or=function(e,t){switch(void 0===e&&(e={}),t.type){case tr.type:return{...e,state:t.payload};case rr.type:return{...e,host:t.payload};default:return e}};var ir=r(29572),nr=r(61545);const ar=()=>"undefined"!=typeof window&&window.top!==window.self,sr=e=>e.translations||{};var lr=r(91354),ur=r(74740),cr=r(17617),dr=r(77017),pr=r(69143);function hr(e,t,r,o){void 0===o&&(o=!0);var i=o?(0,f.__assign)({},e):e,n=t.split("_"),a=n.pop(),s=i;return n.forEach((function(e){"object"!=typeof s[e]&&(s[e]={}),s=s[e]})),s[a]=r,i}function gr(e){var t={};for(var r in e)if(e.hasOwnProperty(r))if("object"==typeof e[r]&&!(e[r]instanceof Array)&&null!==e[r]&&Object.keys(e[r]).length>0){var o=gr(e[r]);for(var i in o)o.hasOwnProperty(i)&&(t[r+"_"+i]=o[i])}else t[r]=e[r];return t}function mr(e){return Object.entries(e).reduce((function(e,t){return hr(e,t[0],t[1],false)}),{})}function fr(e){return Object.keys(e).forEach((function(t){return void 0===e[t]?delete e[t]:{}})),e}function yr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mr(Object.assign.apply(Object,(0,f.__spreadArray)([{}],e.map(gr),!1)))}var vr=r(32972);const br={layoutParams:{groups:{density:"layoutParams_groups_density",groupByOrientation:"layoutParams_groups_groupByOrientation",numberOfGroupsPerRow:"layoutParams_groups_numberOfGroupsPerRow",allowedGroupTypes:"layoutParams_groups_allowedGroupTypes",repeatingGroupTypes:"layoutParams_groups_repeatingGroupTypes",groupSize:"layoutParams_groups_groupSize"},crop:{method:"layoutParams_crop_method",alignment:"layoutParams_crop_alignment",enable:"layoutParams_crop_enable",enableSmartCrop:"layoutParams_crop_enableSmartCrop",cropOnlyFill:"layoutParams_crop_cropOnlyFill",ratios:"layoutParams_crop_ratios"},structure:{galleryLayout:"layoutParams_structure_galleryLayout",galleryRatio:{value:"layoutParams_structure_galleryRatio_value",includeExternalInfo:"layoutParams_structure_galleryRatio_includeExternalInfo"},enableStreching:"layoutParams_structure_enableStreching",gallerySpacing:"layoutParams_structure_gallerySpacing",itemSpacing:"layoutParams_structure_itemSpacing",scrollDirection:"layoutParams_structure_scrollDirection",numberOfColumns:"layoutParams_structure_numberOfColumns",numberOfGridRows:"layoutParams_structure_numberOfGridRows",responsiveMode:"layoutParams_structure_responsiveMode",columnRatios:"layoutParams_structure_columnRatios",scatter:{randomScatter:"layoutParams_structure_scatter_randomScatter",manualScatter:"layoutParams_structure_scatter_manualScatter"},layoutOrientation:"layoutParams_structure_layoutOrientation",groupsOrder:"layoutParams_structure_groupsOrder"},thumbnails:{enable:"layoutParams_thumbnails_enable",position:"layoutParams_thumbnails_position",spacing:"layoutParams_thumbnails_spacing",size:"layoutParams_thumbnails_size",alignment:"layoutParams_thumbnails_alignment"},navigationArrows:{enable:"layoutParams_navigationArrows_enable",size:"layoutParams_navigationArrows_size",padding:"layoutParams_navigationArrows_padding",position:"layoutParams_navigationArrows_position",verticalAlignment:"layoutParams_navigationArrows_verticalAlignment",type:"layoutParams_navigationArrows_type",container:{type:"layoutParams_navigationArrows_container_type",borderRadius:"layoutParams_navigationArrows_container_borderRadius",backgroundColor:"layoutParams_navigationArrows_container_backgroundColor"},mouseCursorContainerMaxWidth:"layoutParams_navigationArrows_mouseCursorContainerMaxWidth"},info:{sizeUnits:"layoutParams_info_sizeUnits",width:"layoutParams_info_width",height:"layoutParams_info_height",spacing:"layoutParams_info_spacing",layout:"layoutParams_info_layout",border:{width:"layoutParams_info_border_width",color:"layoutParams_info_border_color",radius:"layoutParams_info_border_radius"},placement:"layoutParams_info_placement"},targetItemSize:{unit:"layoutParams_targetItemSize_unit",value:"layoutParams_targetItemSize_value",minimum:"layoutParams_targetItemSize_minimum"}},behaviourParams:{item:{clickAction:"behaviourParams_item_clickAction",video:{speed:"behaviourParams_item_video_speed",volume:"behaviourParams_item_video_volume",loop:"behaviourParams_item_video_loop",playTrigger:"behaviourParams_item_video_playTrigger",enablePlayButton:"behaviourParams_item_video_enablePlayButton",enableControls:"behaviourParams_item_video_enableControls",enablePlaceholder:"behaviourParams_item_video_enablePlaceholder"},overlay:{hoveringBehaviour:"behaviourParams_item_overlay_hoveringBehaviour",hoverAnimation:"behaviourParams_item_overlay_hoverAnimation",position:"behaviourParams_item_overlay_position",size:"behaviourParams_item_overlay_size",sizeUnits:"behaviourParams_item_overlay_sizeUnits",padding:"behaviourParams_item_overlay_padding"},content:{hoverAnimation:"behaviourParams_item_content_hoverAnimation",placementAnimation:"behaviourParams_item_content_placementAnimation",loader:"behaviourParams_item_content_loader",magnificationValue:"behaviourParams_item_content_magnificationValue"},secondaryMedia:{trigger:"behaviourParams_item_secondaryMedia_trigger",behaviour:"behaviourParams_item_secondaryMedia_behaviour"}},gallery:{layoutDirection:"behaviourParams_gallery_layoutDirection",blockContextMenu:"behaviourParams_gallery_blockContextMenu",scrollAnimation:"behaviourParams_gallery_scrollAnimation",enableIndexingShareLinks:"behaviourParams_gallery_enableIndexingShareLinks",vertical:{loadMore:{enable:"behaviourParams_gallery_vertical_loadMore_enable",amount:"behaviourParams_gallery_vertical_loadMore_amount",text:"behaviourParams_gallery_vertical_loadMore_text"}},horizontal:{enableScrollSnap:"behaviourParams_gallery_horizontal_enableScrollSnap",slideAnimation:"behaviourParams_gallery_horizontal_slideAnimation",slideTransition:"behaviourParams_gallery_horizontal_slideTransition",blockScroll:"behaviourParams_gallery_horizontal_blockScroll",navigationDuration:"behaviourParams_gallery_horizontal_navigationDuration",loop:"behaviourParams_gallery_horizontal_loop",autoSlide:{behaviour:"behaviourParams_gallery_horizontal_autoSlide_behaviour",interval:"behaviourParams_gallery_horizontal_autoSlide_interval",pauseOnHover:"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover",speed:"behaviourParams_gallery_horizontal_autoSlide_speed"},slideshowInfo:{buttonsAlignment:"behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment",enableCounter:"behaviourParams_gallery_horizontal_slideshowInfo_enableCounter",enablePlayButton:"behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton"}}}},stylingParams:{arrowsColor:"stylingParams_arrowsColor",itemShadowBlur:"stylingParams_itemShadowBlur",itemShadowDirection:"stylingParams_itemShadowDirection",itemShadowOpacityAndColor:"stylingParams_itemShadowOpacityAndColor",itemShadowSize:"stylingParams_itemShadowSize",itemEnableShadow:"stylingParams_itemEnableShadow",itemBorderRadius:"stylingParams_itemBorderRadius",itemBorderWidth:"stylingParams_itemBorderWidth",itemResolutionMode:"stylingParams_itemResolutionMode"}};var Sr=[["galleryLayout",br.layoutParams.structure.galleryLayout],["imageMargin",br.layoutParams.structure.itemSpacing],["groupsPerStrip",br.layoutParams.groups.numberOfGroupsPerRow],["cubeImages",br.layoutParams.crop.enable],["smartCrop",br.layoutParams.crop.enableSmartCrop],["cropOnlyFill",br.layoutParams.crop.cropOnlyFill],["minItemSize",br.layoutParams.targetItemSize.minimum],["scatter",br.layoutParams.structure.scatter.randomScatter],["rotatingScatter",br.layoutParams.structure.scatter.manualScatter],["numberOfImagesPerCol",br.layoutParams.structure.numberOfGridRows],["collageDensity",br.layoutParams.groups.density],["chooseBestGroup",br.layoutParams.groups.groupByOrientation],["groupSize",br.layoutParams.groups.groupSize],["hasThumbnails",br.layoutParams.thumbnails.enable],["thumbnailSpacings",br.layoutParams.thumbnails.spacing],["thumbnailSize",br.layoutParams.thumbnails.size],["showArrows",br.layoutParams.navigationArrows.enable],["arrowsPadding",br.layoutParams.navigationArrows.padding],["arrowsVerticalPosition",br.layoutParams.navigationArrows.verticalAlignment],["arrowsSize",br.layoutParams.navigationArrows.size],["imageInfoType",br.layoutParams.info.layout],["textImageSpace",br.layoutParams.info.spacing],["textBoxBorderWidth",br.layoutParams.info.border.width],["textBoxBorderColor",br.layoutParams.info.border.color],["textBoxBorderRadius",br.layoutParams.info.border.radius]],Pr=[["useMaxDimensions",br.layoutParams.structure.enableStreching]],wr=[["magnificationLevel",br.behaviourParams.item.content.magnificationValue],["videoLoop",br.behaviourParams.item.video.loop],["showVideoPlayButton",br.behaviourParams.item.video.enablePlayButton],["showVideoControls",br.behaviourParams.item.video.enableControls],["enableVideoPlaceholder",br.behaviourParams.item.video.enablePlaceholder],["overlayAnimation",br.behaviourParams.item.overlay.hoverAnimation],["overlayPosition",br.behaviourParams.item.overlay.position],["overlaySize",br.behaviourParams.item.overlay.size],["overlaySizeType",br.behaviourParams.item.overlay.sizeUnits],["overlayPadding",br.behaviourParams.item.overlay.padding],["imageHoverAnimation",br.behaviourParams.item.content.hoverAnimation],["imagePlacementAnimation",br.behaviourParams.item.content.placementAnimation],["imageLoadingMode",br.behaviourParams.item.content.loader],["scrollSnap",br.behaviourParams.gallery.horizontal.enableScrollSnap],["scrollAnimation",br.behaviourParams.gallery.scrollAnimation],["shouldIndexDirectShareLinkInSEO",br.behaviourParams.gallery.enableIndexingShareLinks],["loadMoreButtonText",br.behaviourParams.gallery.vertical.loadMore.text],["slideAnimation",br.behaviourParams.gallery.horizontal.slideAnimation],["slideTransition",br.behaviourParams.gallery.horizontal.slideTransition],["scrollDuration",br.behaviourParams.gallery.horizontal.navigationDuration],["slideshowLoop",br.behaviourParams.gallery.horizontal.loop],["autoSlideshowInterval",br.behaviourParams.gallery.horizontal.autoSlide.interval],["pauseAutoSlideshowOnHover",br.behaviourParams.gallery.horizontal.autoSlide.pauseOnHover],["autoSlideshowContinuousSpeed",br.behaviourParams.gallery.horizontal.autoSlide.speed],["allowSlideshowCounter",br.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter],["playButtonForAutoSlideShow",br.behaviourParams.gallery.horizontal.slideshowInfo.enablePlayButton]],Cr=[["enableInfiniteScroll",br.behaviourParams.gallery.vertical.loadMore.enable],["allowContextMenu",br.behaviourParams.gallery.blockContextMenu],["enableScroll",br.behaviourParams.gallery.horizontal.blockScroll]],Er=[["itemShadowBlur",br.stylingParams.itemShadowBlur],["itemShadowDirection",br.stylingParams.itemShadowDirection],["itemShadowOpacityAndColor",br.stylingParams.itemShadowOpacityAndColor],["arrowsColor",br.stylingParams.arrowsColor],["itemShadowSize",br.stylingParams.itemShadowSize],["itemEnableShadow",br.stylingParams.itemEnableShadow],["itemBorderRadius",br.stylingParams.itemBorderRadius],["itemBorderWidth",br.stylingParams.itemBorderWidth]];function Ar(e,t){for(var r=(0,f.__assign)({},e),o=0,i=t;o<i.length;o++){var n=i[o];r=_r(r,n[0],n[1])}return r}function Ir(e,t){for(var r=(0,f.__assign)({},e),o=0,i=t;o<i.length;o++){var n=i[o];r=Tr(r,n[0],n[1])}return r}function _r(e,t,r){return void 0===e[r]&&void 0!==e[t]&&(e[r]=e[t]),delete e[t],e}function Tr(e,t,r){return void 0===e[r]&&void 0!==e[t]&&(e[r]=!e[t]),delete e[t],e}function Or(e){var t,r,o,i,n=(o=e,i=function(e){var t,r=e;return(r=_r(r,br.layoutParams.thumbnails.alignment,"galleryThumbnailsAlignment")).galleryThumbnailsAlignment=null===(t=r.galleryThumbnailsAlignment)||void 0===t?void 0:t.toLowerCase(),r}(i=Ir(i=Ar(i=(0,f.__assign)({},o),(0,f.__spreadArray)([],Sr,!0).map((function(e){return(0,f.__spreadArray)([],e,!0).reverse()}))),(0,f.__spreadArray)([],Pr,!0).map((function(e){return(0,f.__spreadArray)([],e,!0).reverse()})))),i=function(e){var t,r=e;return(r=_r(r,br.layoutParams.crop.method,"cubeType")).cubeType=null===(t=r.cubeType)||void 0===t?void 0:t.toLowerCase(),r}(i=function(e){var t=e;return(t=_r(t,br.layoutParams.structure.columnRatios,"columnWidths")).columnWidths=t.columnWidths?t.columnWidths.join?t.columnWidths.join(","):"":void 0,t}(i=function(e){var t=e;switch((t=_r(t,br.layoutParams.info.sizeUnits,"calculateTextBoxWidthMode")).calculateTextBoxWidthMode){case"PERCENT":t.calculateTextBoxWidthMode="PERCENT",(t=_r(t,br.layoutParams.info.width,"textBoxWidthPercent")).textBoxWidth=t.textBoxWidth||200;break;case"PIXEL":t.calculateTextBoxWidthMode="MANUAL",(t=_r(t,br.layoutParams.info.width,"textBoxWidth")).textBoxWidthPercent=t.textBoxWidthPercent||50}return t}(i=function(e){var t,r=e,o=r[br.layoutParams.crop.ratios]&&(0,f.__spreadArray)([],r[br.layoutParams.crop.ratios],!0),i=o||[];return t=i.length>1?i.slice(0).join(","):0===(null==o?void 0:o.length)?"":void 0,r.layoutParams_cropRatio=r.cubeRatio=i[0],r.rotatingCropRatios=t,delete r[br.layoutParams.crop.ratios],r}(i=function(e){var t=e;return"CENTER"===(t=_r(t,br.layoutParams.crop.alignment,"cubeFitPosition")).cubeFitPosition&&(t.cubeFitPosition="MIDDLE"),t}(i=function(e){var t=e,r=t[br.layoutParams.targetItemSize.value],o=t.gallerySizeType,i={smart:"gallerySize",px:"gallerySizePx",ratio:"gallerySizeRatio"};return t.gallerySize=t.gallerySizePx=t.gallerySizeRatio=void 0,t[i[o]]=r,delete t[br.layoutParams.targetItemSize.value],t}(i=function(e){var t=e;switch((t=_r(t,br.layoutParams.targetItemSize.unit,"gallerySizeType")).gallerySizeType){case"PIXEL":t.gallerySizeType="px";break;case"PERCENT":t.gallerySizeType="ratio";break;case"SMART":t.gallerySizeType="smart"}return t}((t=i=function(e){var t=e;switch((t=_r(t,br.layoutParams.structure.responsiveMode,"gridStyle")).gridStyle){case"FIT_TO_SCREEN":t.gridStyle=0;break;case"SET_ITEMS_PER_ROW":t.gridStyle=1}return t}(i=function(e){var t=e;switch((t=_r(t,br.layoutParams.structure.groupsOrder,"placeGroupsLtr")).placeGroupsLtr){case"LEFT_TO_RIGHT":t.placeGroupsLtr=!0;break;case"RIGHT_TO_LEFT":case"BY_HEIGHT":t.placeGroupsLtr=!1;break;default:t.placeGroupsLtr=void 0}return t}(i=function(e){var t=e;switch((t=_r(t,br.layoutParams.structure.layoutOrientation,"isVertical")).isVertical){case"VERTICAL":t.isVertical=!0;break;case"HORIZONTAL":t.isVertical=!1}return t}(i=function(e){var t=e;switch((t=_r(t,br.layoutParams.structure.scrollDirection,"scrollDirection")).scrollDirection){case"VERTICAL":t.scrollDirection=0;break;case"HORIZONTAL":t.scrollDirection=1}return t}(i)))),(r=t).fixedColumns=r.fixedColumns||void 0,r.numberOfImagesPerRow=r[br.layoutParams.structure.numberOfColumns],delete r[br.layoutParams.structure.numberOfColumns],i=r)))))))),i=function(e){var t,r,o=e,i=(0,vr.n)("SLIDESHOW")({galleryLayout:e.galleryLayout>=-3?e.galleryLayout:null===(r=null===(t=e.layoutParams)||void 0===t?void 0:t.structure)||void 0===r?void 0:r.galleryLayout});return i?(o=_r(o,br.layoutParams.info.height,"slideshowInfoSize")).textBoxHeight=o.slideshowInfoSize:(o=_r(o,br.layoutParams.info.height,"textBoxHeight")).slideshowInfoSize=o.textBoxHeight,o}(i=function(e){var t=e;return t.layoutParams_gallerySpacing=t.galleryMargin=t.layoutParams_structure_gallerySpacing,delete t.layoutParams_structure_gallerySpacing,t}(i=function(e){var t=e;return t.groupTypes=t[br.layoutParams.groups.allowedGroupTypes]?t[br.layoutParams.groups.allowedGroupTypes].join?t[br.layoutParams.groups.allowedGroupTypes].join(","):"":void 0,delete t[br.layoutParams.groups.allowedGroupTypes],t}(i=function(e){var t=e,r=t[br.layoutParams.groups.repeatingGroupTypes]&&t[br.layoutParams.groups.repeatingGroupTypes].join(",");return t.layoutParams_repeatingGroupTypes=t.rotatingGroupTypes=r,delete t[br.layoutParams.groups.repeatingGroupTypes],t}(i)))),i=function(e){var t,r=e;return"action"===((r=_r(r,br.behaviourParams.item.clickAction,"itemClick")).itemClick=null===(t=r.itemClick)||void 0===t?void 0:t.toLowerCase(),r.itemClick)&&(r.itemClick="expand"),r}(i=Ir(i=Ar(i=function(e){var t=e;switch((t=_r(t,br.layoutParams.navigationArrows.position,"arrowsPosition")).arrowsPosition){case"ON_GALLERY":t.arrowsPosition=0;break;case"OUTSIDE_GALLERY":t.arrowsPosition=1;break;case"MOUSE_CURSOR":t.arrowsPosition=2}return t}(i),(0,f.__spreadArray)([],wr,!0).map((function(e){return(0,f.__spreadArray)([],e,!0).reverse()}))),(0,f.__spreadArray)([],Cr,!0).map((function(e){return(0,f.__spreadArray)([],e,!0).reverse()})))),i=function(e){var t,r=e;return(r=_r(r,br.behaviourParams.gallery.vertical.loadMore.amount,"loadMoreAmount")).loadMoreAmount=null===(t=r.loadMoreAmount)||void 0===t?void 0:t.toLowerCase(),r}(i=function(e){var t=e;switch((t=_r(t,br.behaviourParams.gallery.layoutDirection,"isRTL")).isRTL){case"RIGHT_TO_LEFT":t.isRTL=!0;break;case"LEFT_TO_RIGHT":t.isRTL=!1}return t}(i=function(e){var t=e;switch((t=_r(t,br.layoutParams.info.placement,"titlePlacement")).titlePlacement){case"OVERLAY":t.titlePlacement="SHOW_ON_HOVER";break;case"BELOW":t.titlePlacement="SHOW_BELOW";break;case"ABOVE":t.titlePlacement="SHOW_ABOVE";break;case"RIGHT":t.titlePlacement="SHOW_ON_THE_RIGHT";break;case"LEFT":t.titlePlacement="SHOW_ON_THE_LEFT";break;case"ALTERNATE_HORIZONTALLY":t.titlePlacement="ALTERNATE_HORIZONTAL";break;case"ALTERNATE_VERTICALLY":t.titlePlacement="ALTERNATE_VERTICAL"}return t}(i=function(e){var t=e;switch((t=_r(t,br.behaviourParams.item.overlay.hoveringBehaviour,"hoveringBehaviour")).hoveringBehaviour){case"ALWAYS_VISIBLE":t.hoveringBehaviour="NO_CHANGE";break;case"NEVER_VISIBLE":t.hoveringBehaviour="NEVER_SHOW"}return t}(i=function(e){var t=e;return(t=_r(t,br.behaviourParams.item.video.speed,"videoSpeed")).videoSpeed=t.videoSpeed>=0?String(t.videoSpeed):void 0,t}(i=function(e){var t=e;return(t=_r(t,br.behaviourParams.item.video.volume,"videoSound")).videoSound=void 0===t.videoSound?void 0:!!t.videoSound,t}(i=function(e){var t=e;switch((t=_r(t,br.behaviourParams.item.video.playTrigger,"videoPlay")).videoPlay){case"CLICK":t.videoPlay="onClick";break;case"HOVER":t.videoPlay="hover";break;case"AUTO":t.videoPlay="auto"}return t}(i))))))),i=function(e){var t,r=e;return(r=_r(r,br.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment,"galleryTextAlign")).galleryTextAlign=null===(t=r.galleryTextAlign)||void 0===t?void 0:t.toLowerCase(),r}(i=function(e){var t=e;switch(t[br.behaviourParams.gallery.horizontal.autoSlide.behaviour]){case"OFF":t.isAutoSlideshow=!1,t.autoSlideshowType="interval";break;case"INTERVAL":t.isAutoSlideshow=!0,t.autoSlideshowType="interval";break;case"CONTINUOUS":t.isAutoSlideshow=!0,t.autoSlideshowType="continuous"}return delete t[br.behaviourParams.gallery.horizontal.autoSlide.behaviour],t}(i)),i=Ar(i,(0,f.__spreadArray)([],Er,!0).map((function(e){return(0,f.__spreadArray)([],e,!0).reverse()}))));return(0,f.__assign)((0,f.__assign)({},fr(n)),fr(e))}function xr(e){var t=Or(function(e){var t=(n=e,a=(0,f.__assign)({},n),a=function(e){var t,r=e;return(r=_r(r,"galleryThumbnailsAlignment",br.layoutParams.thumbnails.alignment))[br.layoutParams.thumbnails.alignment]=null===(t=r[br.layoutParams.thumbnails.alignment])||void 0===t?void 0:t.toUpperCase(),r}(a=Ir(a=Ar(a,Sr),Pr)),a=function(e){var t;if(void 0!==e[br.layoutParams.groups.allowedGroupTypes])return e;var r=e;return r[br.layoutParams.groups.allowedGroupTypes]=(null===(t=r.groupTypes)||void 0===t?void 0:t.split)?r.groupTypes.split(","):r.groupTypes?r.groupTypes:void 0,delete r.groupTypes,r}(a=function(e){if(void 0!==e[br.layoutParams.groups.repeatingGroupTypes])return e;var t,r=e,o=r.rotatingGroupTypes||r.layoutParams_repeatingGroupTypes;return t="string"==typeof o&&""!==o?o.split(","):"string"==typeof o&&""===o?[]:void 0,r[br.layoutParams.groups.repeatingGroupTypes]=t,delete r.layoutParams_repeatingGroupTypes,delete r.rotatingGroupTypes,r}(a=function(e){var t=e;switch((t=_r(t,"placeGroupsLtr",br.layoutParams.structure.groupsOrder))[br.layoutParams.structure.groupsOrder]){case!0:t[br.layoutParams.structure.groupsOrder]="LEFT_TO_RIGHT";break;case!1:t[br.layoutParams.structure.groupsOrder]="BY_HEIGHT"}return t}(a=function(e){var t=e;switch((t=_r(t,"isVertical",br.layoutParams.structure.layoutOrientation))[br.layoutParams.structure.layoutOrientation]){case!0:t[br.layoutParams.structure.layoutOrientation]="VERTICAL";break;case!1:t[br.layoutParams.structure.layoutOrientation]="HORIZONTAL"}return t}(a=function(e){var t=e;switch((t=_r(t,"scrollDirection",br.layoutParams.structure.scrollDirection))[br.layoutParams.structure.scrollDirection]){case 0:t[br.layoutParams.structure.scrollDirection]="VERTICAL";break;case 1:t[br.layoutParams.structure.scrollDirection]="HORIZONTAL"}return t}(a))))),a=function(e){var t,r,o,i=e;return i=_r(i,"columnWidths",br.layoutParams.structure.columnRatios),0===(null===(t=i[br.layoutParams.structure.columnRatios])||void 0===t?void 0:t.length)?i[br.layoutParams.structure.columnRatios]=[]:i[br.layoutParams.structure.columnRatios]=i[br.layoutParams.structure.columnRatios]?(null===(r=i[br.layoutParams.structure.columnRatios])||void 0===r?void 0:r.split)?(0,f.__spreadArray)([],null===(o=i[br.layoutParams.structure.columnRatios])||void 0===o?void 0:o.split(",").map(Number),!0):i[br.layoutParams.structure.columnRatios]:void 0,i}(a=function(e){var t=e;switch((t=_r(t,"calculateTextBoxWidthMode",br.layoutParams.info.sizeUnits))[br.layoutParams.info.sizeUnits]){case"PERCENT":t[br.layoutParams.info.sizeUnits]="PERCENT",delete(t=_r(t,"textBoxWidthPercent",br.layoutParams.info.width)).textBoxWidth;break;case"MANUAL":t[br.layoutParams.info.sizeUnits]="PIXEL",delete(t=_r(t,"textBoxWidth",br.layoutParams.info.width)).textBoxWidthPercent}return t}(a=function(e){if(void 0!==e[br.layoutParams.crop.ratios])return e;var t,r=e,o=r.rotatingCropRatios,i=r.cubeRatio||r.layoutParams_cropRatio;t="string"==typeof o&&""!==o?o:i;var n=function(e){return Number(e)>=0?Number(e):e};return r[br.layoutParams.crop.ratios]=t&&String(t).split(",").map(n),delete r.cubeRatio,delete r.layoutParams_cropRatio,delete r.rotatingCropRatios,r}((o=a=function(e){var t,r=e;switch(r[br.layoutParams.targetItemSize.unit]){case"PIXEL":t="gallerySizePx";break;case"SMART":t="gallerySize";break;case"PERCENT":t="gallerySizeRatio"}return delete(r=_r(r,t,br.layoutParams.targetItemSize.value)).gallerySizePx,delete r.gallerySizeRatio,delete r.gallerySize,r}(a=function(e){var t=e;switch((t=_r(t,"gallerySizeType",br.layoutParams.targetItemSize.unit))[br.layoutParams.targetItemSize.unit]){case"px":t[br.layoutParams.targetItemSize.unit]="PIXEL";break;case"ratio":t[br.layoutParams.targetItemSize.unit]="PERCENT";break;case"smart":t[br.layoutParams.targetItemSize.unit]="SMART"}return t}(a=function(e){if(void 0!==e[br.layoutParams.structure.numberOfColumns])return e;var t=e,r=e.fixedColumns,o=e.numberOfImagesPerRow,i=o>=0?o:r>=0?r:void 0;return t[br.layoutParams.structure.numberOfColumns]=i,delete t.fixedColumns,delete t.numberOfImagesPerRow,t}(a))),i=o,"MIDDLE"===(i=_r(i,"cubeFitPosition",br.layoutParams.crop.alignment))[br.layoutParams.crop.alignment]&&(i[br.layoutParams.crop.alignment]="CENTER"),a=i)))),a=function(e){var t,r=e;return(r=_r(r,"cubeType",br.layoutParams.crop.method))[br.layoutParams.crop.method]=null===(t=r[br.layoutParams.crop.method])||void 0===t?void 0:t.toUpperCase(),r}(a),a=function(e){var t,r=e;switch((r=_r(r,"itemClick",br.behaviourParams.item.clickAction))[br.behaviourParams.item.clickAction]=null===(t=r[br.behaviourParams.item.clickAction])||void 0===t?void 0:t.toUpperCase(),r[br.behaviourParams.item.clickAction]){case"FULLSCREEN":case"EXPAND":r[br.behaviourParams.item.clickAction]="ACTION"}return r}(a=Ir(a=Ar(a=function(e){var t=e;switch((t=_r(t,"arrowsPosition",br.layoutParams.navigationArrows.position))[br.layoutParams.navigationArrows.position]){case 0:t[br.layoutParams.navigationArrows.position]="ON_GALLERY";break;case 1:t[br.layoutParams.navigationArrows.position]="OUTSIDE_GALLERY";break;case 2:t[br.layoutParams.navigationArrows.position]="MOUSE_CURSOR"}return t}(a=function(e){var t=e;return delete(t=(0,vr.n)("SLIDESHOW")({galleryLayout:e.galleryLayout>=-3?e.galleryLayout:e[br.layoutParams.structure.galleryLayout]})?_r(t,"slideshowInfoSize",br.layoutParams.info.height):_r(t,"textBoxHeight",br.layoutParams.info.height)).slideshowInfoSize,delete t.textBoxHeight,t}(a=function(e){if(void 0!==e[br.layoutParams.structure.gallerySpacing])return e;var t,r=e;return r["layoutParams.gallerySpacing"]>=0?t=r["layoutParams.gallerySpacing"]:r.galleryMargin>=0&&(t=r.galleryMargin),r[br.layoutParams.structure.gallerySpacing]=t,delete r.layoutParams_gallerySpacing,delete r.galleryMargin,r}(a=function(e){var t=e;switch((t=_r(t,"gridStyle",br.layoutParams.structure.responsiveMode))[br.layoutParams.structure.responsiveMode]){case 0:t[br.layoutParams.structure.responsiveMode]="FIT_TO_SCREEN";break;case 1:t[br.layoutParams.structure.responsiveMode]="SET_ITEMS_PER_ROW"}return t}(a)))),wr),Cr)),a=function(e){var t,r=e;return(r=_r(r,"videoPlay",br.behaviourParams.item.video.playTrigger))[br.behaviourParams.item.video.playTrigger]=null===(t=r[br.behaviourParams.item.video.playTrigger])||void 0===t?void 0:t.toUpperCase(),r}(a),a=function(e){var t,r=e;return(r=_r(r,"loadMoreAmount",br.behaviourParams.gallery.vertical.loadMore.amount))[br.behaviourParams.gallery.vertical.loadMore.amount]=null===(t=r[br.behaviourParams.gallery.vertical.loadMore.amount])||void 0===t?void 0:t.toUpperCase(),r}(a=function(e){var t=e;switch((t=_r(t,"isRTL",br.behaviourParams.gallery.layoutDirection))[br.behaviourParams.gallery.layoutDirection]){case!0:t[br.behaviourParams.gallery.layoutDirection]="RIGHT_TO_LEFT";break;case!1:t[br.behaviourParams.gallery.layoutDirection]="LEFT_TO_RIGHT"}return t}(a=function(e){var t=e;switch((t=_r(t,"titlePlacement",br.layoutParams.info.placement))[br.layoutParams.info.placement]){case"SHOW_ON_HOVER":t[br.layoutParams.info.placement]="OVERLAY";break;case"SHOW_BELOW":t[br.layoutParams.info.placement]="BELOW";break;case"SHOW_ABOVE":t[br.layoutParams.info.placement]="ABOVE";break;case"SHOW_ON_THE_RIGHT":t[br.layoutParams.info.placement]="RIGHT";break;case"SHOW_ON_THE_LEFT":t[br.layoutParams.info.placement]="LEFT";break;case"ALTERNATE_HORIZONTAL":t[br.layoutParams.info.placement]="ALTERNATE_HORIZONTALLY";break;case"ALTERNATE_VERTICAL":t[br.layoutParams.info.placement]="ALTERNATE_VERTICALLY"}return t}(a=function(e){var t=e;switch((t=_r(t,"hoveringBehaviour",br.behaviourParams.item.overlay.hoveringBehaviour))[br.behaviourParams.item.overlay.hoveringBehaviour]){case"NO_CHANGE":t[br.behaviourParams.item.overlay.hoveringBehaviour]="ALWAYS_VISIBLE";break;case"NEVER_SHOW":t[br.behaviourParams.item.overlay.hoveringBehaviour]="NEVER_VISIBLE"}return t}(a=function(e){var t=e;return(t=_r(t,"videoSpeed",br.behaviourParams.item.video.speed))[br.behaviourParams.item.video.speed]=Number(t[br.behaviourParams.item.video.speed])>=0?Number(t[br.behaviourParams.item.video.speed]):void 0,t}(a=function(e){var t=e;return void 0!==(t=_r(t,"videoSound",br.behaviourParams.item.video.volume))[br.behaviourParams.item.video.volume]&&(t[br.behaviourParams.item.video.volume]=Number(t[br.behaviourParams.item.video.volume])),t}(a)))))),a=function(e){var t,r=e;return(r=_r(r,"galleryTextAlign",br.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment))[br.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment]=null===(t=r[br.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment])||void 0===t?void 0:t.toUpperCase(),r}(a=function(e){if(void 0!==e[br.behaviourParams.gallery.horizontal.autoSlide.behaviour])return e;var t,r=e,o=r.isAutoSlideshow,i=r.autoSlideshowType;return t=void 0===o?void 0:o?"interval"===i?"INTERVAL":"CONTINUOUS":"OFF",r[br.behaviourParams.gallery.horizontal.autoSlide.behaviour]=t,delete r.isAutoSlideshow,delete r.autoSlideshowType,r}(a)),delete(a=Ar(a,Er)).enableLeanGallery,delete a.fullscreen,delete a.magicLayoutSeed,a),r=(0,f.__assign)((0,f.__assign)({},fr(t)),fr(e));var o,i;var n,a;return delete r.oldRefactoredOptionInCore,r}(gr(e)));return mr(t)}var Nr=new(function(){function e(){this._hash2int={}}return e.prototype.stripSlashes=function(e){var t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t},e.prototype.parseStringObject=function(e){if("string"!=typeof e)return e;var t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t},e.prototype.hashToInt=function(e,t,r){var o=0;if(void 0===e||0===e.length)return o;if(!this._hash2int[e]){for(var i=0;i<e.length;i++)o+=e.charCodeAt(i);this._hash2int[e]=o}return void 0===t||void 0===r?this._hash2int[e]:this._hash2int[e]%(r-t+1)+t},e.prototype.hashToRandomInt=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=1e5),void 0===e||0===e.length?0:(t=Math.round(t),r=Math.round(r),e+=e.length+t+r,this._hash2int[e]||(this._hash2int[e]=Math.round(Math.random()*(r-t)+t)),this._hash2int[e])},e.prototype.addDefaultStyleParams=function(e){var t,r,o,i,n={layoutParams:{gallerySpacing:0,cropRatio:1,repeatingGroupTypes:""},cubeImages:!1,cubeType:"fill",rotatingCropRatios:"",smartCrop:!1,imageMargin:10,scatter:0,rotatingScatter:"",chooseBestGroup:!0,groupSize:3,groupTypes:"1,2h,2v,3h,3v,3t,3b,3l,3r",isVertical:!0,minItemSize:120,scrollDirection:0,targetItemSize:500,collageDensity:50,fixedColumns:0,columnWidths:""},a=xr(e);return xr((t=a,r=gr(n),o=gr(t),i=Object.assign({},r,o),Object.keys(i).forEach((function(e){void 0===i[e]&&(i[e]=n[e])})),mr(i)))},e.prototype.convertContainer=function(e,t){var r=(0,f.__assign)({bounds:{}},e);return e.width>=0&&!(e.galleryWidth>=0)&&(r.galleryWidth=e.width+2*((t.imageMargin/2||0)-(t.layoutParams.gallerySpacing||0)),delete r.width),e.height>=0&&!(e.galleryHeight>=0)&&(r.galleryHeight=e.height+((t.imageMargin/2||0)-(t.layoutParams.gallerySpacing||0)),delete r.height),t.externalInfoHeight>=0&&1===t.scrollDirection&&(r.galleryHeight-=t.externalInfoHeight),r},e}()),Lr=function(){function e(e){if(this.style={},this.visibility={},(e=e||{}).dto||(console.error("Item has no DTO",e),e.dto={}),this.config=e,this.dto=e.dto,this.idx=e.idx,this.inGroupIdx=e.inGroupIdx,this.container=e.container,this.cubeType="fill",e.styleParams){var t=e.styleParams;this.cubeType=t.cubeType,this.cubeImages=t.cubeImages,this._cropRatio=t.layoutParams.cropRatio,this.rotatingCropRatios=t.rotatingCropRatios,this.smartCrop=t.smartCrop,this.cropOnlyFill=t.cropOnlyFill,this.imageMargin=t.imageMargin,this.gallerySpacing=t.layoutParams.gallerySpacing,this.scatter=t.scatter,this.rotatingScatter=t.rotatingScatter,this.smartCrop=t.smartCrop,this.useMaxDimensions=t.useMaxDimensions&&"text"!==this.itemType,this.cubeFitPosition=t.cubeFitPosition}this._groupOffset={top:0,left:0,right:0,bottom:0},this._group={},this.calcPinOffset=function(){return 0},this.resize(1)}return e.prototype.fixMetadataVerticalVideoRatio=function(e){if(e.qualities&&e.qualities[0]){var t=e.qualities,r=t[t.length-1],o=r.height,i=r.width;e.height=o,e.width=i}},e.prototype.resize=function(e){var t=1;if(!1!==e){if(e>0)t=e;else if("object"==typeof e){if(e.width)t=Math.max(1,e.width)/this.width;else if(e.height){t=Math.max(1,e.height)/this.height}}return this.width*=t,this.height*=t,this.resized=!0,this}},e.prototype.pinToCorner=function(e,t){var r=this;void 0===t&&(t=!1);var o=e.indexOf("top")>=0,i=e.indexOf("left")>=0;this.style.top=o?0:"auto",this.style.bottom=o?"auto":0,this.style.left=i?0:"auto",this.style.right=i?"auto":0,this.pin=e,this.isPinnedTop=o,this.isPinnedLeft=i,this.pinAfter=t,this.pinAfterType=o?"top":i?"left":"",this.calcPinOffset=function(e,t){if(r.pinAfter){if(r.pin===t){var o=r.imageMargin/2;return"top"===t?r.pinAfter.height+2*o:"left"===t?r.pinAfter.width+2*o:0}return 0}return 0}},e.prototype.setPosition=function(e){this.style.position=e},e.prototype.getPosition=function(e){return parseInt(e,10)>=0?e:"auto"},e.prototype.calcScatter=function(e){var t=this.imageMargin/2,r=this.gallerySpacing,o=e.left>0?t:r,i=this.container.galleryWidth-e.right>2*t?t:r,n=e.top>0?t:r,a=this.container.galleryHeight-e.bottom>2*t?t:r;if(!(this.rotatingScatter.length>0)){if(this.scatter>0){var s=this.scatter/100*.4;l=Nr.hashToRandomInt(this.seed+e.right+"x",-o,i);l*=this.scatter/100,l*=1-s,l+=(l>0?s*i:s*o)*Math.sign(l),l=Math.round(l);u=Nr.hashToRandomInt(this.seed+e.right+"y",-n,a);return u*=this.scatter/100,u*=1-s,u+=(u>0?s*a:s*n)*Math.sign(u),{x:l,y:u=Math.round(u)}}return{x:0,y:0}}try{var l,u,c=this.rotatingScatter.split(","),d=c[this.idx%c.length].split("/").map((function(e){return parseInt(e)})).map((function(e){return e/100})),p=d[0],h=d[1];return{x:l=p*(p>0?i:o),y:u=h*(h>0?a:n)}}catch(e){console.error("Cannot calculate rotating scatter",e)}},Object.defineProperty(e.prototype,"top",{get:function(){return this.getPosition(this.style.top)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.getPosition(this.style.left)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.getPosition(this.style.right)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.getPosition(this.style.bottom)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"group",{get:function(){return this._group},set:function(e){Object.assign(this._group,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupOffset",{set:function(e){Object.assign(this._groupOffset,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){var e,t={top:this._groupOffset.top+(this.isPinnedTop?this.calcPinOffset(this._group.height,"top"):this._group.height-this.outerHeight)||0,left:this._groupOffset.left+(this.isPinnedLeft?this.calcPinOffset(this._group.width,"left"):this._group.width-this.outerWidth)||0},r=this.dimensions,o=r.fixTop,i=void 0===o?0:o,n=r.fixLeft,a=void 0===n?0:n,s=r.fixRight,l=void 0===s?0:s,u=r.fixBottom,c=void 0===u?0:u;if(t.innerTop=i,t.innerLeft=a,t.innerRight=l,t.innerBottom=c,t.right=t.left+this.width,t.bottom=t.top+this.height,this.scatter>0||(null===(e=this.rotatingScatter)||void 0===e?void 0:e.length)>0){var d=this.calcScatter(t),p=d.x,h=d.y;t.left+=p,t.top+=h,t.right=t.left+this.width,t.bottom=t.top+this.height}return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.dto.id||this.dto.photoId||this.dto.itemId},set:function(e){this.dto.itemId=this.dto.photoId=this.dto.id=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.dto.hash||this.dto.mediaUrl||this.dto.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.dto.seed||Nr.hashToInt(this.hash)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this.dto.metadata||this.dto.metaData||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemType",{get:function(){return this.metadata.type||"image"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this.dto.width||this.dto.w},set:function(e){this.dto.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outerWidth",{get:function(){return this.width+2*this.margins},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infoWidth",{get:function(){return this.Group?this.Group.infoWidth:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orgWidth",{get:function(){return this.style.orgWidth||this.dto.width||this.dto.w||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e;return e=this.cubeImages&&this.ratio>=this.cropRatio?this.style.cubedWidth||this.orgHeight*this.cropRatio:this.orgWidth,Math.max(e,1)},set:function(e){this.style.cubedWidth=this.style.orgWidth=this.style.width=Math.max(1,e);var t=this.dimensions,r=t.fixLeft,o=void 0===r?0:r,i=t.fixRight,n=void 0===i?0:i;this.style.innerWidth=this.style.width-o-n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outerHeight",{get:function(){return this.height+2*this.margins},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orgHeight",{get:function(){return this.style.orgHeight||this.dto.height||this.dto.h||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e;return e=this.cubeImages&&this.ratio<this.cropRatio?this.style.cubedHeight||this.orgWidth/this.cropRatio:this.orgHeight,Math.max(e,1)},set:function(e){this.style.cubedHeight=this.style.orgHeight=this.style.height=Math.max(1,e);var t=this.dimensions,r=t.fixTop,o=void 0===r?0:r,i=t.fixBottom,n=void 0===i?0:i;this.style.innerHeight=this.style.height-n-o},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this.dto.height||this.dto.h},set:function(e){this.dto.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infoHeight",{get:function(){return this.Group?this.Group.infoHeight:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"margins",{get:function(){return this.imageMargin/2||0},set:function(e){this.imageMargin=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dimensions",{get:function(){var e=this,t=this.cubeImages&&"fit"===this.cubeType,r=this.width,o=this.height,i=function(t,i){t?(r=e.useMaxDimensions?Math.min(e.width,e.maxWidth):e.width,o=r/i):(o=e.useMaxDimensions?Math.min(e.height,e.maxHeight):e.height,r=o*i)},n=this.ratio>=this.cropRatio;t?i(n,this.ratio):this.useMaxDimensions&&(this.width>this.maxWidth||this.height>this.maxHeight)&&(this.cubeImages?i(!n,this.cropRatio):i(!n,this.ratio));var a={fixTop:(this.height-o)/2,fixLeft:(this.width-r)/2,fixRight:(this.width-r)/2,fixBottom:(this.height-o)/2};switch(this.cubeFitPosition){case"TOP":a.fixTop=0,a.fixBottom*=2;break;case"BOTTOM":a.fixTop*=2,a.fixBottom=0;break;case"LEFT":a.fixLeft=0,a.fixRight*=2;break;case"RIGHT":a.fixLeft*=2,a.fixRight=0}return a},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cropRatio",{get:function(){var e,t=this;if(this.rotatingCropRatio)e=this.rotatingCropRatio;else if(this.rotatingCropRatios&&this.rotatingCropRatios.length>0){var r=String(this.rotatingCropRatios).split(",");e=this.rotatingCropRatio=r[this.idx%r.length]}if(e||"function"!=typeof this._cropRatio||(e=this._cropRatio()),!e&&this.cropOnlyFill&&"fit"===this.cubeType&&(e=this.ratio),e||(e=this._cropRatio||this.ratio),null!==this.dynamicCropRatios&&"string"==typeof e){if(!this.dynamicCropRatios){var o=/^\d*\.?\d*(%|px)\/\d*\.?\d*(%|px)$/.exec(e);this.dynamicCropRatios=o?e.split("/").map((function(e,t){return e.indexOf("%")>0?{type:"%",val:parseFloat(e.replace("%",""))/100,dim:0===t?"galleryWidth":"galleryHeight"}:{type:"px",val:parseInt(e.replace("px",""))}})):null}if(this.dynamicCropRatios){var i=this.dynamicCropRatios.map((function(e){if("%"===e.type){var r=t.container[e.dim]+("galleryHeight"===e.dim?t.imageMargin/2:0);return e.val*r-t.imageMargin}return e.val}));e=i[0]/i[1]}}return e=Number(e),!0===this.smartCrop&&(e=this.isPortrait?Math.min(e,1/e):Math.max(e,1/e)),"min"===this.cubeType?e=Math.max(e,this.orgRatio):"max"===this.cubeType&&(e=Math.min(e,this.orgRatio)),e},set:function(e){"number"==typeof this._cropRatio&&(this._cropRatio=e,this.style.cubedHeight=this.style.cubedWidth=0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.ratio<.999?"portrait":"landscape"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPortrait",{get:function(){return"portrait"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLandscape",{get:function(){return"landscape"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratio",{get:function(){return this.orgRatio||(this.orgRatio=this.orgWidth/this.orgHeight),this.orgRatio},set:function(e){this.orgRatio=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundedStyle",{get:function(){return(0,f.__assign)((0,f.__assign)({},this.style),{width:Math.round(this.style.width),height:Math.round(this.style.height)})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{id:this.id,idx:this.idx,inGroupIdx:this.inGroupIdx,dto:this.dto,type:this.type,style:this.style,roundedStyle:this.roundedStyle,width:this.width,maxWidth:this.maxWidth,outerWidth:this.outerWidth,infoWidth:this.infoWidth,margins:this.margins,ratio:this.ratio,dimensions:this.dimensions,cropRatio:this.cropRatio,isCropped:this.cubeImages,cropType:this.cubeType,height:this.height,maxHeight:this.maxHeight,outerHeight:this.outerHeight,infoHeight:this.infoHeight,group:this.group,offset:this.offset,groupOffset:this._groupOffset,orientation:this.orientation,isPortrait:this.isPortrait,isLandscape:this.isLandscape,visibility:this.visibility}},enumerable:!1,configurable:!0}),e}(),Mr=function(){function e(e){this.uniqueId=pr.A.generateUUID(),this.isGalleryItem=!0,this.createdBy=e.createdBy,this.createUrl=this.createUrl.bind(this),this.createMagnifiedUrl=this.createMagnifiedUrl.bind(this),this.createSecondMediaItemIfNeeded(e),this.update(e)}return e.prototype.createSecondMediaItemIfNeeded=function(t){var r;(null===(r=t.dto)||void 0===r?void 0:r.secondaryMedia)&&(this.secondaryMediaItem=new e(this.mapItemConfig(t)))},e.prototype.updateSecondaryMedia=function(e){this.secondaryMediaItem&&this.secondaryMediaItem.update(this.mapItemConfig(e))},e.prototype.mapItemConfig=function(e){var t={};return Object.assign(t,e.dto.secondaryMedia,e.dto.secondaryMedia.metadata),(0,f.__assign)((0,f.__assign)({},e),{dto:t,scheme:(0,f.__assign)((0,f.__assign)({},e.scheme),{maxHeight:t.height,maxWidth:t.width})})},e.prototype.update=function(e){if(this.createMediaUrl=e.createMediaUrl,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,pr.A.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=(0,f.__assign)({},e.dto),e.scheme)this.processScheme(e.scheme);else{var t={};Object.assign(t,this.dto,this.metadata),this.processScheme(new Lr({dto:t}).scheme)}if(this.dto){var r=this.dto.metaData||this.dto.metadata;r&&(this.dto.metaData=pr.A.parseStringObject(r))}this.sharpParams=(0,f.__assign)({},e.sharpParams),this.sharpParams.quality||(this.sharpParams.quality=90),this.sharpParams.usm||(this.sharpParams.usm={}),this.thumbnailSize=e.thumbnailSize||120,this.resetUrls(),this.updateSharpParams(),this.updateSecondaryMedia(e)},e.prototype.processScheme=function(e){this.id=e.id,this.idx=e.idx,this.type=e.type,this.style=e.style,this.width=e.width,this.maxWidth=e.maxWidth,this.infoWidth=e.infoWidth,this.height=e.height,this.maxHeight=e.maxHeight,this.infoHeight=e.infoHeight,this.margins=e.margins,this.ratio=e.ratio,this.cropRatio=e.cropRatio,this.cubeImages=e.isCropped,this.cubeType=e.cropType||dr.A.resizeMethods.FILL,this.offset=e.offset,this.group=e.group,this.orientation=e.orientation,this.visibility=e.visibility},e.prototype.renderProps=function(e){var t=(0,f.__assign)({ratio:this.ratio,bgColor:this.bgColor,maxWidth:this.maxWidth,maxHeight:this.maxHeight,infoWidth:this.infoWidth,infoHeight:this.infoHeight,orientation:this.orientation},this.style),r=(0,f.__assign)({className:"image",key:this.key,idx:this.idx,photoId:this.photoId,id:this.id,hash:this.id,html:this.html,type:this.type,isVideoPlaceholder:this.isVideoPlaceholder,url:this.url,alt:this.alt,htmlContent:this.htmlContent,directLink:this.directLink,directShareLink:this.directShareLink,linkUrl:this.linkUrl,linkType:this.linkType,linkOpenType:this.linkOpenType,linkData:this.linkData,title:this.title,fileName:this.fileName,description:this.description,createUrl:this.createUrl,createMagnifiedUrl:this.createMagnifiedUrl,cubeImages:this.cubeImages,cubeType:this.cubeType,cropRatio:this.cropRatio,isTransparent:this.isTransparent,offset:this.offset,style:t,isDemo:this.isDemo,videoUrl:this.videoUrl,isExternalVideo:this.isExternalVideo,hasSecondaryMedia:this.hasSecondaryMedia},e);return this.hasSecondaryMedia&&(r.secondaryMediaItem=(0,f.__assign)((0,f.__assign)({},this.secondaryMediaItem.renderProps()),{style:(0,f.__assign)((0,f.__assign)({},t),{bgColor:this.secondaryMediaItem.bgColor})})),r},e.prototype.getDataForShop=function(){var e=this.focalPoint,t=this.metadata;return{isDemo:t.isDemo,orderIndex:this.orderIndex,itemId:this.dto.itemId,itemUrl:this.url,itemHeight:t.height,title:t.title,itemWidth:t.width,itemType:t.type||"image",imageUrl:this.processedMediaUrl(dr.A.resizeMethods.FIT,200,200,null,null).img(),imagePurchasedUrl:this.dto.mediaUrl,fpX:e[0],fpY:e[1]}},e.prototype.getHighestMp4Resolution=function(e){var t=e.filter((function(e){return"mp4"===e.formats[0]})),r=t.sort((function(e,t){return t.width-e.width}))[0];return{width:r.width,height:r.height}},e.prototype.processedMediaUrl=function(e,t,r,o,i){var n,a=this;void 0===i&&(i=!1);var s=function(e,t,r,o,n,s,l){var u;if(void 0===s&&(s=null),void 0===l&&(l=null),"function"==typeof a.createMediaUrl)try{var c=String(pr.A.hashCode(JSON.stringify({url:t,resizeMethod:r,requiredWidth:o,requiredHeight:n,sharpParams:s,focalPoint:l})));a._cachedUrls[c]||(a._cachedUrls[c]=a.createMediaUrl({item:e,originalUrl:t,resizeMethod:r,requiredWidth:o,requiredHeight:n,sharpParams:s,focalPoint:l,createMultiple:i})||""),u=a._cachedUrls[c]}catch(i){console.error("Cannot create url",i,e,t,r,o,n,s,l),u=String(t)}else u=String(t);return u};t=Math.ceil(t),r=Math.ceil(r);var l=e===dr.A.resizeMethods.FILL&&this.isCropped&&this.focalPoint,u={},c=this.url;return this.isText?Object.assign.apply(Object,(0,f.__spreadArray)([{}],Object.values(dr.A.urlTypes).map((function(e){var t;return(t={})[e]=function(){return""},t})),!1)):((this.isVideo||this.isVideoPlaceholder)&&(c=null===(n=this.poster)||void 0===n?void 0:n.url,pr.A.isExternalUrl(this.url)?u[dr.A.urlTypes.VIDEO]=function(){return a.url}:u[dr.A.urlTypes.VIDEO]=function(){return s(a,a.url,dr.A.resizeMethods.VIDEO,t,r)}),u[dr.A.urlTypes.HIGH_RES]=function(){return s(a,c,e,t,r,o,l)},u[dr.A.urlTypes.LOW_RES]=function(){return s(a,c,a.cubeImages&&e!==dr.A.resizeMethods.FIT?dr.A.resizeMethods.FILL:dr.A.resizeMethods.FIT,250,250,(0,f.__assign)((0,f.__assign)({},o),{quality:30,blur:30}),l)},u)},e.prototype.resetUrls=function(){var e=this.maxWidth||this.dto.width||this.metadata.width,t=this.maxHeight||this.dto.height||this.metadata.height;this.resizeWidth=Math.min(e,Math.ceil(this.width)),this.resizeHeight=Math.min(t,Math.ceil(this.height)),this._cachedUrls={},this.urls={}},e.prototype.createUrl=function(e,t){try{return this[e+"_url"][t]()}catch(e){return""}},e.prototype.createMagnifiedUrl=function(e){if(void 0===e&&(e=1),!this.urls.magnified_url){var t=this.style,r=t.innerWidth,o=t.innerHeight;this.urls.magnified_url=this.processedMediaUrl(this.cubeType,r*e,o*e,this.sharpParams,!0)}return this.urls.magnified_url[dr.A.urlTypes.HIGH_RES]()},Object.defineProperty(e.prototype,"resized_url",{get:function(){return this.urls.resized_url||(this.urls.resized_url=this.processedMediaUrl(this.cubeType,this.resizeWidth,this.resizeHeight,this.sharpParams)),this.urls.resized_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multi_url",{get:function(){return this.urls.multi_url||(this.urls.multi_url=this.processedMediaUrl(this.cubeType,this.resizeWidth,this.resizeHeight,this.sharpParams,!0)),this.urls.multi_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaled_url",{get:function(){if(!this.urls.scaled_url){var e=this.maxWidth/this.maxHeight,t=this.resizeWidth/this.resizeHeight<e;this.urls.scaled_url=this.processedMediaUrl(dr.A.resizeMethods.FILL,t?e*this.resizeHeight:this.resizeWidth,t?this.resizeHeight:this.resizeWidth/e,this.sharpParams)}return this.urls.scaled_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pixel_url",{get:function(){return this.urls.pixel_url||(this.urls.pixel_url=this.processedMediaUrl(dr.A.resizeMethods.FILL,1,1,{quality:90})),this.urls.pixel_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbnail_url",{get:function(){return this.urls.thumbnail_url||(this.urls.thumbnail_url=this.processedMediaUrl(dr.A.resizeMethods.FILL,this.thumbnailSize,this.thumbnailSize,{quality:70})),this.urls.thumbnail_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"square_url",{get:function(){return this.urls.square_url||(this.urls.square_url=this.processedMediaUrl(dr.A.resizeMethods.FILL,100,100,{quality:80})),this.urls.square_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"full_url",{get:function(){return this.urls.full_url||(this.urls.full_url=this.processedMediaUrl(dr.A.resizeMethods.FULL,this.maxWidth,this.maxHeight,this.sharpParams)),this.urls.full_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sample_url",{get:function(){return this.urls.sample_url||(this.urls.sample_url=this.processedMediaUrl(dr.A.resizeMethods.FIT,500,500,this.sharpParams)),this.urls.sample_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preload_url",{get:function(){return this.urls.preload_url||(this.urls.preload_url=this.processed_url),this.urls.preload_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"download_url",{get:function(){return this.createDownloadUrl(this.full_url)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"download_sample_url",{get:function(){return this.createDownloadUrl(this.sample_url)},enumerable:!1,configurable:!0}),e.prototype.createDownloadUrl=function(e){var t=this;return this.urls.download_url||(this.urls.download_url=e,this.urls.download_url._img=this.urls.download_url.img,this.urls.download_url.img=function(){var e=t.urls.download_url._img();return e+(e.includes("?")?"&":"?")+"dn=".concat(t.fileName)}),this.urls.download_url},e.prototype.updateSharpParams=function(){if(this.dto.metaData&&this.dto.metaData.sharpParams&&this.dto.metaData.sharpParams.L){var e=this.dto.metaData.sharpParams.L;e.quality&&!0===e.overrideQuality&&(this.sharpParams.quality=e.quality),e.usm&&!0===e.overrideUsm&&(this.sharpParams.usm=e.usm)}},Object.defineProperty(e.prototype,"hasSecondaryMedia",{get:function(){return!!this.secondaryMediaItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemId",{get:function(){return this.id},enumerable:!1,configurable:!0}),e.prototype.updateId=function(e){this.dto.itemId=this.id=e},Object.defineProperty(e.prototype,"metadata",{get:function(){var e=this.dto.metaData||this.dto.metadata;return pr.A.isUndefined(e)&&(e={}),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metaData",{get:function(){return this.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bgColor",{get:function(){return this.isText?this.metadata&&(this.metadata.textStyle&&this.metadata.textStyle.backgroundColor||this.metadata.backgroundColor):"none"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCropped",{get:function(){return this.cubeImages&&this.cubeType===dr.A.resizeMethods.FILL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focalPoint",{get:function(){return this.metadata.focalPoint||[.5,.5]},set:function(e){this.metadata.focalPoint=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"photoId",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this._key||(this._key=(this.dto.key||this.id||this.dto.url||"no_key_found").replace(/\W/g,"")),this._key},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orderIndex",{get:function(){return this.dto.orderIndex||this.dto.o||0},set:function(e){this.dto.orderIndex=e},enumerable:!1,configurable:!0}),e.prototype.updateOrderIndex=function(e){var t=this.orderIndex!==e;return this.orderIndex=e,t},Object.defineProperty(e.prototype,"url",{get:function(){return this.dto.file_url||this.dto.mediaUrl||this.dto.url||this.dto.src||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaUrl",{get:function(){return this.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.dto.html||this.dto.text||this.metadata.html||this.metadata.text},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastModified",{get:function(){return this.metadata.lastModified},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return pr.A.hashToInt(this.url)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isImage",{get:function(){return"image"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isImportant",{get:function(){return!!this.dto.i},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoUrl",{get:function(){return this.metadata.videoUrl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"poster",{get:function(){return this.metadata.poster||this.metadata.customPoster&&this.metadata.customPoster||(this.metadata.posters?this.metadata.posters[this.metadata.posters.length-1]:null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"qualities",{get:function(){return this.metadata.qualities},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternalVideo",{get:function(){return this.metadata.isExternal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternal",{get:function(){return!0===this.metadata.isExternal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){switch(this._type||this.dto.type||this.metadata.type||this.dto.media_type){case"dummy":return"dummy";case"v":case"video":return"video";case"h":case"html":case"text":return"text";default:return"image"}},set:function(e){this._type=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVideoPlaceholder",{get:function(){return!!(this.dto.isVideoPlaceholder||this.metadata.isVideoPlaceholder||this.dto.media_isVideoPlaceholder)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"htmlContent",{get:function(){var e;return null===(e=this.html)||void 0===e?void 0:e.replace(/<[^<>]*>/g,"").trim()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alt",{get:function(){return pr.A.isMeaningfulString(this.metadata.alt)&&this.metadata.alt||""},set:function(e){this.metadata.alt=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.metadata.title||""},set:function(e){this.metadata.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileName",{get:function(){return this.metadata.fileName||""},set:function(e){this.metadata.fileName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this.metadata.description||""},set:function(e){this.metadata.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exif",{get:function(){return this.metadata.exif||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return"wix"===this.linkType?!!this.linkData.type:!!this.linkUrl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"link",{get:function(){return this.metadata.link||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkData",{get:function(){return this.metadata.link&&this.metadata.link.data?this.metadata.link.data:this.isWixUrl?{type:"web",url:this.linkUrl}:{}},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.data=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkType",{get:function(){return this.metadata.link&&!pr.A.isUndefined(this.metadata.link.type)?this.metadata.link.type:this.linkUrl?"web":"none"},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link={type:e,url:void 0,text:void 0,title:void 0,target:"_blank"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultLinkText",{get:function(){var e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Go to Link";switch(e.type){case"PageLink":return"Go to Page ".concat(e.pageName);case"AnchorLink":return"Scroll to ".concat(e.anchorName);case"ExternalLink":return"".concat(e.url);case"EmailLink":return"Email ".concat(e.recipient);case"PhoneLink":return"Call ".concat(e.phoneNumber);case"DocumentLink":return"Open ".concat(e.name);default:return"Go to Link"}case"web":return this.linkTitleFromUrl||this.linkUrl;case"page":return this.linkTitle;default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultLinkValue",{get:function(){var e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Add a Link";switch(e.type){case"PageLink":return e.pageName?"PAGE - ".concat(e.pageName):"PAGE";case"AnchorLink":return"ANCHOR - ".concat(e.anchorName);case"ExternalLink":return"LINK - ".concat(e.url);case"EmailLink":return"EMAIL - ".concat(e.recipient);case"PhoneLink":return"PHONE - ".concat(e.phoneNumber);case"DocumentLink":return"DOCUMENT - ".concat(e.name);default:return"Add a Link"}case"web":return this.linkUrl;case"page":return this.linkTitle;default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkText",{get:function(){return this.metadata.link&&this.metadata.link.text||this.defaultLinkText},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkTitle",{get:function(){return this.metadata.link&&this.metadata.link.title},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkUrl",{get:function(){return this.metadata.link&&this.metadata.link.url},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.url=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWixUrl",{get:function(){return this.linkUrl&&0===this.linkUrl.indexOf("wix")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkTitleFromUrl",{get:function(){var e=/[^/]*\.\w+$/g.exec(this.linkUrl),t=e&&e[0];return t&&t.split(".")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unprotectedLinkOpenType",{get:function(){return pr.A.get(this,"metadata.link.target")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkOpenType",{get:function(){return this.metadata.link&&!pr.A.isUndefined(this.metadata.link.target)?this.unprotectedLinkOpenType:this.metadata.link&&!pr.A.isUndefined(this.metadata.link.targetBlank)?this.metadata.link.targetBlank?"_blank":"_top":"_blank"},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.target=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialLinkObject",{get:function(){return{type:"none",url:void 0,text:void 0,title:void 0,target:"_blank"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDemo",{get:function(){return this.metadata.isDemo||this.dto.isDemo||"public"===this.metadata.sourceName||this.metadata.tags&&Array.isArray(this.metadata.tags)&&this.metadata.tags.indexOf("_paid")>=0},set:function(e){this.metadata.isDemo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isText",{get:function(){return"text"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVideo",{get:function(){return"video"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRendered",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDimensionless",{get:function(){return!(this.maxWidth>1||this.maxHeight>1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isTransparent",{get:function(){return this.url&&(this.url.indexOf(".png")>0||this.url.indexOf(".gif")>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"webLink",{get:function(){var e;return(null===(e=this.linkUrl)||void 0===e?void 0:e.length)>0&&"web"===this.linkType?{url:this.linkUrl,target:this.linkOpenType}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"directLink",{get:function(){return this.dto.directLink||this.webLink||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"directShareLink",{get:function(){return this.dto.directShareLink||""},enumerable:!1,configurable:!0}),e}();const Rr=Mr;var kr={lll:"1,2h",llp:"1,3r",lpl:"1,2h",pll:"1,2h,3l",lpp:"1,2h,3r,3h",plp:"1,2h,3l,3r,3h",ppl:"1,2h,3l,3h",ppp:"1,2h,3l,3r,3h"},Dr={lll:"1,2v,3t,3b,3v",llp:"1,2v,3t,3v",lpl:"1,2v,3t,3b,3v",pll:"1,2v,3b,3v",lpp:"1,2v,3t",plp:"1,2v",ppl:"1,3b",ppp:"1,2h"},Br={1:[[1]],2:[[1],[1,2],[2]],3:[[1],[1,2],[1,2,3],[2,3],[3]]},Hr=function(){function e(e){var t=this;if(this.idx=e.idx,this.stripIdx=e.stripIdx,this.inStripIdx=e.inStripIdx,this.top=e.top,this.showAllItems=e.showAllItems,this.isLastItems=e.isLastItems,this.dummyItems=[],this.targetItemSize=e.targetItemSize,this.items=e.items.map((function(e){return e.Group=t,e})),e.styleParams){var r=e.styleParams;this.scrollDirection=r.scrollDirection,this.cubeType=r.cubeType,this.cubeImages=r.cubeImages,this.isVertical=r.isVertical,this.minItemSize=r.minItemSize,this.collageAmount=r.collageAmount,this.collageDensity=r.collageDensity,this.groupTypes=String(r.groupTypes),this.repeatingGroupTypes=String(r.layoutParams.repeatingGroupTypes),this.rotatingCropRatios=String(r.rotatingCropRatios),this.chooseBestGroup=r.chooseBestGroup,this.externalInfoHeight=r.externalInfoHeight,this.externalInfoWidth=r.externalInfoWidth,this.imageMargin=r.imageMargin,this.groupSize=r.groupSize}this.visible=!0,this.rendered=!0,this.required=!0;for(var o=this.items.length;!this.isWithinMinItemSize&&o>0;)this.placeItems(o),this.resize(),o--}return e.prototype.resize=function(){this.isVertical?this.resizeToWidth(this.targetItemSize):this.resizeToHeight(this.targetItemSize),this.setLeft(this.left),this.setTop(this.top)},e.prototype.safeGetItem=function(e){if(this.items[e])return this.items[e];if(this.dummyItems[e])return this.dummyItems[e];var t=new Lr((0,f.__assign)({},this.items[this.items.length-1].config));return t.idx=t.config.idx+e-(this.items.length-1),t.type="dummy",this.dummyItems[e]=t,t},e.prototype.setCubedHeight=function(e){var t=this.cubeImages&&1===this.groupSize&&["fill","fit"].includes(this.cubeType)&&0===this.repeatingGroupTypes.length&&0===this.rotatingCropRatios.length;this.cubedHeight=t?e:null},e.prototype.round=function(){this.isLastGroup&&0===this.scrollDirection?this.width=this.stripWidth-this.left:this.width=Math.round(this.width),this.height=Math.round(this.height);for(var e=0,t=this.items;e<t.length;e++){var r=t[e];r.width=Math.round(r.width),r.height=Math.round(r.height),r.group={width:this.width,height:this.height}}var o=this.imageMargin;switch(this.type){default:case"1":this.safeGetItem(0).width=this.width-o,this.safeGetItem(0).height=this.height-o;break;case"2v":this.safeGetItem(0).width=this.safeGetItem(1).width=this.width-o,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*o;break;case"2h":this.safeGetItem(0).height=this.safeGetItem(1).height=this.height-o,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*o;break;case"3t":this.safeGetItem(0).width=this.width-o,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*o,this.safeGetItem(1).width=this.width-this.safeGetItem(2).width-2*o,this.safeGetItem(2).height=this.safeGetItem(1).height;break;case"3b":this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*o,this.safeGetItem(1).height=this.safeGetItem(0).height,this.safeGetItem(2).height=this.height-this.safeGetItem(1).height-2*o,this.safeGetItem(2).width=this.width-o;break;case"3l":this.safeGetItem(1).height=this.height-this.safeGetItem(2).height-2*o,this.safeGetItem(2).width=this.safeGetItem(1).width,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*o,this.safeGetItem(0).height=this.height-o;break;case"3r":this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*o,this.safeGetItem(1).width=this.safeGetItem(0).width,this.safeGetItem(2).width=this.width-this.safeGetItem(1).width-2*o,this.safeGetItem(2).height=this.height-o;break;case"3v":this.safeGetItem(0).width=this.width-o,this.safeGetItem(1).width=this.width-o,this.safeGetItem(2).width=this.width-o,this.safeGetItem(2).height=this.height-this.safeGetItem(0).height-this.safeGetItem(1).height-3*o;break;case"3h":this.safeGetItem(0).height=this.height-o,this.safeGetItem(1).height=this.height-o,this.safeGetItem(2).height=this.height-o,this.safeGetItem(2).width=this.width-this.safeGetItem(0).width-this.safeGetItem(1).width-3*o}},e.prototype.getGroupType=function(e){if(this.repeatingGroupTypes){var t=String(this.repeatingGroupTypes).split(",");return t[this.idx%t.length]}var r=this.isVertical,o=void 0;if(this.chooseBestGroup){var i=this.items.map((function(e){return e.orientation.slice(0,1)})).join("");o=(r?kr:Dr)[i]}else 3!==this.items.length&&3!==e||(o=r?"1,2h,3l,3r,3h":"1,2v,3t,3b,3v");2!==this.items.length&&2!==e||(o=r?"1,2h":"1,2v"),1!==this.items.length&&1!==e||(o="1");var n=o.length>0?o.split(","):[];if(this.groupTypes){var a=this.groupTypes.split(",");a.length>1?0===(n=n.filter((function(e){return a.indexOf(e)>=0}))).length&&(n=["1"]):n=a}if(this.collageDensity>=0){var s=this.collageDensity,l=parseInt(n[n.length-1]),u=Br[l],c=u[Math.floor(s*(u.length-1))];0===(n=n.filter((function(e){return c.indexOf(parseInt(e))>=0}))).length&&(n=["1"])}return n[this.calculateRandomSeed(n.length)]||"1"},e.prototype.calculateRandomSeed=function(e){var t;return t=this.isVertical?this.items[0].seed%e:(this.inStripIdx+this.stripIdx)%e,Math.round(Math.min(Math.max(0,t),e-1))},e.prototype.placeItems=function(e){this.type=this.getGroupType(e);var t,r=[],o=0,i=0;switch(this.type){default:case"1":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),o=t.width,i=t.height;break;case"2v":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(1)).pinToCorner("bottom-left"),t.resize(o/t.width),i+=t.height,r.push(t);break;case"2h":(t=this.safeGetItem(0)).pinToCorner("top-left"),t.innerOffset=[0,0],r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(1)).pinToCorner("top-right"),t.innerOffset=[0,0],t.resize(i/t.height),o+=t.width,r.push(t);break;case"3b":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(1)).pinToCorner("top-right"),t.resize(i/t.height),o+=t.width,r.push(t),(t=this.safeGetItem(2)).pinToCorner("bottom-left"),t.resize(o/t.width),i+=t.height,r.push(t);break;case"3t":(t=this.safeGetItem(1)).pinToCorner("bottom-left"),r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(2)).pinToCorner("bottom-right"),t.resize(i/t.height),o+=t.width,r.push(t),(t=this.safeGetItem(0)).pinToCorner("top-left"),t.resize(o/t.width),i+=t.height,r=[t].concat(r);break;case"3r":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(1)).pinToCorner("bottom-left"),t.resize(o/t.width),i+=t.height,r.push(t),(t=this.safeGetItem(2)).pinToCorner("top-right"),t.resize(i/t.height),o+=t.width,r.push(t);break;case"3l":(t=this.safeGetItem(1)).pinToCorner("top-right"),r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(2)).pinToCorner("bottom-right"),t.resize(o/t.width),i+=t.height,r.push(t),(t=this.safeGetItem(0)).pinToCorner("top-left"),t.resize(i/t.height),o+=t.width,r=[t].concat(r);break;case"3v":(t=this.safeGetItem(0)).pinToCorner("top-left"),t.setPosition("relative"),r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(2)).pinToCorner("bottom-left"),t.setPosition("relative"),t.resize(o/t.width),i+=t.height,r.push(t),(t=this.safeGetItem(1)).setPosition("relative"),t.resize(o/t.width),i+=t.height,t.pinToCorner("top",r[0]),r=[r[0],t,r[1]];break;case"3h":(t=this.safeGetItem(0)).pinToCorner("top-left"),t.setPosition("relative"),r.push(t),o=t.width,i=t.height,(t=this.safeGetItem(2)).pinToCorner("top-right"),t.setPosition("relative"),t.resize(i/t.height),o+=t.width,r.push(t),(t=this.safeGetItem(1)).setPosition("relative"),t.resize(i/t.height),o+=t.width,t.pinToCorner("left",r[0]),r=[r[0],t,r[1]]}this.width=o,this.height=i,this.items=r,this.placed=!0},e.prototype.resizeToHeight=function(e){this.height=e,this.width=this.getWidthByHeight(e),this.resizeItems()},e.prototype.resizeToWidth=function(e){this.width=e,this.height=this.getHeightByWidth(e),this.resizeItems()},e.prototype.resizeItems=function(){var e=this,t=["3b","3r"].indexOf(this.type)>=0?this.items.slice().reverse():this.items;t.forEach((function(r,o){r.resize(e.getItemDimensions(t,o)),r.group={top:e.top,left:e.left,width:e.width,height:e.height},r.groupOffset={bottom:e.top+e.height,right:e.left+e.width}}))},e.prototype.getItemDimensions=function(e,t){var r=this.imageMargin;switch(this.type){default:case"1":case"2v":case"3v":return{width:this.width-r};case"2h":case"3h":return{height:this.height-r};case"3t":case"3b":return 0===t?{width:this.width-r}:{height:this.height-e[0].height-2*r};case"3r":case"3l":return 0===t?{height:this.height-r}:{width:this.width-e[0].width-2*r}}},e.prototype.getHeightByWidth=function(e){var t=1,r=1,o=this.imageMargin,i=this.items.map((function(e){return e.width/e.height}));switch(this.type){default:case"1":r=1-(t=1/i[0]);break;case"2h":r=1-2*(t=1/(i[0]+i[1]));break;case"2v":r=2-(t=1/i[0]+1/i[1]);break;case"3h":r=1-3*(t=1/(i[0]+i[1]+i[2]));break;case"3v":r=3-(t=1/i[0]+1/i[1]+1/i[2]);break;case"3t":t=1/(i[2]+i[1])+1/i[0],r=2-2/(i[2]+i[1])+1/i[0];break;case"3b":t=1/(i[0]+i[1])+1/i[2],r=2-2/(i[0]+i[1])+1/i[2];break;case"3l":r=2-(t=(i[1]+i[2])/(i[0]*i[1]+i[1]*i[2]+i[0]*i[2]))*(2+i[0]);break;case"3r":r=2-(t=(i[0]+i[1])/(i[0]*i[1]+i[1]*i[2]+i[0]*i[2]))*(2+i[2])}return e*t+o*r},e.prototype.getWidthByHeight=function(e){var t=1,r=1,o=this.imageMargin,i=this.items.map((function(e){return e.width/e.height}));switch(this.type){default:case"1":r=1-(t=i[0]);break;case"2h":r=2-(t=i[0]+i[1]);break;case"2v":r=1-2*(t=1/(1/i[0]+1/i[1]));break;case"3h":r=3-(t=i[0]+i[1]+i[2]);break;case"3v":r=1-3*(t=1/(1/i[0]+1/i[1]+1/i[2]));break;case"3t":t=1/(1/(i[2]+i[1])+1/i[0]),r=(2/(i[2]+i[1])+1/i[0]-2)*t;break;case"3b":t=1/(1/(i[0]+i[1])+1/i[2]),r=(2/(i[0]+i[1])+1/i[2]-2)*t;break;case"3l":t=(i[0]*i[1]+i[1]*i[2]+i[0]*i[2])/(i[1]+i[2]),r=2+i[0]-2*t;break;case"3r":t=(i[0]*i[1]+i[1]*i[2]+i[0]*i[2])/(i[0]+i[1]),r=2+i[2]-2*t}return e*t+o*r},e.prototype.setTop=function(e){this.top=e||0;for(var t=0,r=this.items;t<r.length;t++){r[t].groupOffset={top:e,bottom:e+this.height}}},e.prototype.setLeft=function(e){this.left=e||0;for(var t=0,r=this.items;t<r.length;t++){r[t].groupOffset={left:e,right:e+this.width}}},Object.defineProperty(e.prototype,"id",{get:function(){return"g"+this.idx+"_"+(this.items[0]||{}).id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratio",{get:function(){return this.width/this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.cubedHeight||this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalHeight",{get:function(){return this.height+this.infoHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infoHeight",{get:function(){return this.externalInfoHeight||0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infoWidth",{get:function(){return this.Column?this.Column.infoWidth:this.externalInfoWidth||0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.left+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realItems",{get:function(){return this._items.filter((function(e){return"dummy"!==e.type}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWithinMinItemSize",{get:function(){var e=this;return!(0===this.items.length||!this.placed)&&(1===this.items.length||this.items.reduce((function(t,r){var o=Math.min(r.width,r.height)>=e.minItemSize;return t&&o}),!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{id:this.id,idx:this.idx,stripIdx:this.stripIdx,inStripIdx:this.inStripIdx,isLastGroup:this.isLastGroup,items:this.items.map((function(e){return e.scheme})),type:this.type,width:this.width,height:this.height,infoHeight:this.infoHeight,infoWidth:this.infoWidth,ratio:this.ratio,top:this.top,left:this.left,right:this.right,bottom:this.bottom,visible:this.visible,rendered:this.rendered,required:this.required}},enumerable:!1,configurable:!0}),e}();const Vr=function(){function e(e){this.uniqueId=pr.A.generateUUID(),this.isGalleryGroup=!0,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,pr.A.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=Object.assign({},e.dto),e.scheme?this.processScheme(e.scheme):this.processScheme(new Hr({dto:e.dto}).scheme),e.items?this.items=e.items:console.warn("Pro Gallery created Gallery Group without items",e)}return e.prototype.processScheme=function(e){this.id=e.id,this.idx=e.idx,this.width=e.width,this.height=e.height,this.totalHeight=e.totalHeight,this.ratio=e.ratio,this.top=e.top,this.left=e.left,this.right=e.right,this.bottom=e.bottom,this.visible=e.visible,this.rendered=e.rendered,this.required=e.required},e.prototype.renderProps=function(e){return{className:"group",id:this.id,idx:this.idx,key:this.key,type:this.type,top:this.top,left:this.left,right:this.right,bottom:this.bottom,width:this.width,height:this.height,totalHeight:this.totalHeight,items:this.items,visible:this.visible,rendered:this.rendered,required:this.required,galleryConfig:e}},Object.defineProperty(e.prototype,"key",{get:function(){return"group_"+this.id},enumerable:!1,configurable:!0}),e}();var Fr=function(){function e(){}return e.convertDtoToLayoutItem=function(e){if(!!(e.id&&e.width>0&&e.height>0))return e;var t=e.metadata||e.metaData,r="object"==typeof t?t:pr.A.parseStringObject(t)||{};return(0,f.__assign)({id:e.itemId||e.photoId,width:r.width,height:r.height},e)},e.convertToGalleryItems=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=[]),e.galleryItems=[];for(var o=0;o<e.columns.length;o++){var i=e.columns[o];i.galleryGroups=[];for(var n=i.groups||i,a=0;a<n.length;a++){for(var s=n[a],l=[],u=0;u<s.items.length;u++){var c=s.items[u],d=(0,f.__assign)({scheme:c,dto:c.dto},t),p=r[c.idx],h=void 0;p&&p.id&&p.id===c.id?(h=p).update(d):h=new Rr(d),l[u]=h,e.galleryItems[c.idx]=l[u]}i.galleryGroups[a]=new Vr({scheme:s,dto:s.dto,items:l})}}return e},e.convertExistingStructureToGalleryItems=function(e,t,r){void 0===r&&(r={}),pr.A.isVerbose()&&console.time("convertToGalleryItems"),e.galleryItems||(e.galleryItems=[]);var o=e.columns.slice(-1)[0].galleryGroups.pop();o&&e.galleryItems.splice(-o.items.length);for(var i=0;i<t.columns.length;i++){var n=t.columns[i],a=e.columns[i]||n;a.galleryGroups||(a.galleryGroups=[]);for(var s=n.groups||n,l=0;l<s.length;l++){for(var u=s[l],c=[],d=0;d<u.items.length;d++){var p=u.items[d];e.galleryItems[p.idx]?e.galleryItems[p.idx].processScheme(p):(c[d]=new Rr(Object.assign({scheme:p,dto:p.dto},r)),e.galleryItems[p.idx]=c[d])}a.galleryGroups[l]?a.galleryGroups[l].processScheme(u):a.galleryGroups[l]=new Vr({scheme:u,dto:u.dto,items:c})}n.galleryGroups=a.galleryGroups}return t.galleryItems=e.galleryItems,pr.A.isVerbose()&&console.timeEnd("convertToGalleryItems"),t},e}(),Gr=function(){function e(e){this.ratio=0,this.groups=[],this.width=0,this.height=0,this.isFullWidth=!0,this.idx=e.idx,this.groupsPerStrip=e.groupsPerStrip,this.scrollDirection=e.scrollDirection,this.targetItemSize=e.targetItemSize,this.container=e.container}return e.prototype.addGroup=function(e){this.hasGroups&&(this.lastGroup.isLastGroup=!1),this.groups.push(e),e.stripIdx=this.idx,e.Strip=this,this.lastGroup.isLastGroup=!0,this.lastGroup.stripWidth=this.height*this.ratio},e.prototype.markAsIncomplete=function(){this.isFullWidth=!1,this.lastGroup.isLastGroup=!1},e.prototype.canRemainIncomplete=function(){return!(this.groupsPerStrip>0)&&1.5*this.targetItemSize<this.height},e.prototype.setWidth=function(e){this.width=e,this.hasGroups&&(this.lastGroup.stripWidth=e)},e.prototype.resizeToHeight=function(e){this.height=e;for(var t=0,r=0,o=0,i=this.groups;o<i.length;o++){var n=i[o];n.setLeft(t),n.width+=r,n.resizeToHeight(e),r=n.width,n.round(),r-=n.width,t+=n.width}},e.prototype.isFull=function(e,t){if(!this.hasGroups)return!1;var r=this,o=r.groupsPerStrip,i=r.scrollDirection,n=r.targetItemSize;if(o>0)return this.groups.length>=o;var a,s=this.container.galleryWidth;if(1===i)a=!1;else{var l=s/(this.ratio+e.ratio)-n,u=s/this.ratio-n;(a=!isNaN(l)&&!isNaN(u)&&(u<0||l<0&&Math.abs(u)<Math.abs(l)))&&t&&(a=Number(Math.abs(u))<Math.abs(l))}return a},Object.defineProperty(e.prototype,"hasGroups",{get:function(){return this.groups.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastGroup",{get:function(){return this.groups[this.groups.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{idx:this.idx,groups:this.groups.map((function(e){return e.scheme})),width:this.width,height:this.height,ratio:this.ratio,isFullWidth:this.isFullWidth}},enumerable:!1,configurable:!0}),e}(),zr=function(){function e(e,t,r,o,i){this.idx=e,this.groups=[],this.height=0,this.width=t,this.left=r,this.cubedHeight=o,this.infoWidth=i||0}return e.prototype.addGroup=function(e){this.addGroups([e])},e.prototype.addGroups=function(e){var t=this;this.groups=this.groups.concat(e),e.forEach((function(e){e.columnIdx=t.idx,e.Column=t}))},Object.defineProperty(e.prototype,"totalWidth",{get:function(){return this.width+this.infoWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{idx:this.idx,groups:this.groups.map((function(e){return e.scheme})),width:this.width,height:this.height}},enumerable:!1,configurable:!0}),e}();const Wr=new(function(){function e(){}return Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout=(0,f.__assign)({},e)},enumerable:!1,configurable:!0}),e}());var Ur=function(){function e(e){this.ready=!1,this.pointer=0,this.layoutItems=[],this.findNeighborItem=this.findNeighborItem.bind(this),this.updateParams(e),!1!==this.createLayoutOnInit&&this.createLayout(e)}return e.prototype.updateParams=function(e){this.srcItems=e.items,this.styleParams=Nr.addDefaultStyleParams(e.styleParams),this.container=Nr.convertContainer(e.container,this.styleParams);var t=e.options||{};this.useExistingLayout=!!t.useExistingLayout,this.createLayoutOnInit=t.createLayoutOnInit,this.showAllItems=!!t.showAllItems||!!e.showAllItems,this.useLayoutStore=!!t.useLayoutStore},e.prototype.verifyGalleryState=function(){if(!this.container.galleryWidth)throw this.ready=!1,new Error("Layouter: cannot create layout, galleryWidth is undefined or 0");if(!this.styleParams.targetItemSize)throw this.ready=!1,new Error("Layouter: cannot create layout, targetItemSize is undefined or 0")},e.prototype.calcNumberOfColumns=function(e,t){var r=1;if(this.styleParams.isVertical)if(this.styleParams.fixedColumns>0)r=this.styleParams.fixedColumns;else{var o=e/t,i=[Math.floor,Math.ceil],n=i.map((function(e){return e(o)})).map((function(t){return Math.round(e/t)})).map((function(e){return Math.abs(t-e)}));r=(0,i[n.indexOf(Math.min.apply(Math,n))])(o)||1}else r=1;return r},e.prototype.findShortestColumn=function(e,t){var r=e[0];if(this.styleParams.placeGroupsLtr)r=e[t%e.length];else for(var o=-1,i=0,n=e;i<n.length;i++){var a=n[i],s=a.height;(s<o||o<0)&&(o=s,r=a)}return r},e.prototype.saveExistingLayout=function(){this.useLayoutStore&&(Wr.layout={pointer:this.pointer,layoutItems:this.layoutItems,groups:this.groups,strips:this.strips,groupIdx:this.groupIdx,groupItems:this.groupItems,group:this.group,strip:this.strip,targetItemSize:this.targetItemSize,galleryHeight:this.galleryHeight,columns:this.columns})},e.prototype.prepareLayoutParams=function(){var e=this;if(this.useExistingLayout&&this.pointer>0){if(this.useLayoutStore)Object.assign(this,Wr.layout);else if(this.styleParams.isVertical){this.groups.slice(-3).forEach((function(t){var r=e.columns[t.columnIdx];r&&(r.height-=t.totalHeight,r.groups.splice(-1,1)),e.groups.splice(-1,1),t.realItems.forEach((function(){e.layoutItems.splice(-1,1),e.pointer--})),e.groupIdx--}))}else{if(1===this.scrollDirection){this.groups.slice(-1).forEach((function(t){var r=e.columns[0];r&&r.groups.splice(-1,1);var o=e.strips[0];o&&(o.setWidth(o.width-t.width),o.ratio=o.width/o.height,o.groups.splice(-1,1),e.strip=o),e.strips=[],e.groups.splice(-1,1),t.realItems.forEach((function(){e.layoutItems.splice(-1,1),e.pointer--})),e.groupIdx--})),this.galleryHeight=0}else{var t=this.strips.slice(-2);t&&(t.forEach((function(t){t&&(e.strips.splice(-1,1),t.groups.forEach((function(t){e.groups.splice(-1,1),t.items.forEach((function(){e.layoutItems.splice(-1,1),e.pointer--})),e.groupIdx--})))})),this.galleryHeight=this.strips.reduce((function(e,t){return e+t.height}),0),this.strip=new Gr({idx:this.strips.length+1,container:this.container,groupsPerStrip:this.styleParams.groupsPerStrip,scrollDirection:this.styleParams.scrollDirection,targetItemSize:this.targetItemSize}))}this.groupItems=[]}this.item={},this.pointer=Math.max(0,this.pointer),this.maxLoops=10*this.srcItems.length}else{if(this.pointer=0,this.firstGroup=!1,this.layoutItems=[],this.groups=[],this.strips=[],this.styleParams.forceFullHeight)this.targetItemSize=Math.sqrt(this.container.galleryHeight*this.container.galleryWidth/this.srcItems.length);else{var r=void 0;r="function"==typeof this.styleParams.targetItemSize?this.styleParams.targetItemSize():this.styleParams.targetItemSize,this.targetItemSize=Math.floor(r)+Math.ceil(2*(this.styleParams.imageMargin/2-this.styleParams.layoutParams.gallerySpacing))}this.galleryWidth=Math.floor(this.container.galleryWidth),this.maxGroupSize=this.getMaxGroupSize(),this.groupIdx=0,this.item={},this.groupItems=[],this.group={},this.bounds=this.container.bounds||{},this.strip=new Gr({idx:1,container:this.container,groupsPerStrip:this.styleParams.groupsPerStrip,scrollDirection:this.styleParams.scrollDirection,targetItemSize:this.targetItemSize}),this.galleryHeight=0,this.numOfCols=this.calcNumberOfColumns(this.galleryWidth,this.targetItemSize),this.targetItemSize=this.styleParams.isVertical?Math.floor(this.galleryWidth/this.numOfCols):this.targetItemSize;var o=this.styleParams,i=o.columnWidths,n=o.externalInfoWidth,a=o.imageMargin,s=this.styleParams.layoutParams.cropRatio,l=!1;if(i&&i.length>0){for(l=i.split(",").map(Number);l.length<this.numOfCols;)l.push.apply(l,l);l=l.slice(0,this.numOfCols);var u=this.galleryWidth/l.reduce((function(e,t){return e+t}),0);l=l.map((function(e){return Math.round(e*=u)}))}var c,d=0,p=this.galleryWidth;this.columns=Array(this.numOfCols).fill(0).map((function(t,r){var o=l?l[r]:Math.round(p/(e.numOfCols-r)),i=d;d+=o,p-=o;var u=Math.round(n>1?n:n*o)||0;return o-=u,c=c||(e.targetItemSize-u-a)/s+a,new zr(r,o,i,c,u)})),this.maxLoops=10*this.srcItems.length}},e.prototype.createLayout=function(e){for(void 0!==e&&this.updateParams(e),this.verifyGalleryState(),this.prepareLayoutParams();this.srcItems[this.pointer];){if(6===this.imagesLeft&&this.saveExistingLayout(),this.maxLoops--,this.maxLoops<=0)return console.error("Cannot create layout, maxLoops reached!!!"),!1;if(this.item=new Lr({idx:this.pointer,inGroupIdx:this.groupItems.length+1,scrollTop:this.galleryHeight,dto:this.srcItems[this.pointer],container:this.container,styleParams:this.styleParams}),this.layoutItems[this.pointer]=this.item,this.groupItems.push(this.item),this.groupItems.length<this.maxGroupSize&&this.srcItems[this.pointer+1])this.pointer++;else{if(this.group=new Hr({idx:this.groupIdx,stripIdx:this.strip.idx,inStripIdx:this.strip.groups.length+1,top:this.galleryHeight,items:this.groupItems,isLastItems:this.isLastImages,targetItemSize:this.targetItemSize,showAllItems:this.showAllItems,container:this.container,styleParams:this.styleParams}),this.groups[this.groupIdx]=this.group,this.pointer+=this.group.realItems.length-this.groupItems.length,this.groupIdx++,this.groupItems=[],this.styleParams.isVertical){var t=this.findShortestColumn(this.columns,this.groups.length-1);this.group.setCubedHeight(t.cubedHeight),this.group.resizeToWidth(t.width),this.group.round(),this.group.setTop(t.height),this.group.setLeft(t.left),t.addGroup(this.group),t.height+=this.group.totalHeight,this.galleryHeight<t.height&&(this.galleryHeight=t.height)}else{if(this.strip.isFull(this.group,this.isLastImage)){this.strip.resizeToHeight(this.galleryWidth/this.strip.ratio),this.strip.setWidth(this.galleryWidth),this.galleryHeight+=this.strip.height,this.columns[0].addGroups(this.strip.groups),this.strips.push(this.strip),this.strip=new Gr({idx:this.strip.idx+1,container:this.container,groupsPerStrip:this.styleParams.groupsPerStrip,scrollDirection:this.styleParams.scrollDirection,targetItemSize:this.targetItemSize}),this.pointer-=this.group.realItems.length-1,this.groupIdx--;continue}this.group.setTop(this.galleryHeight),this.strip.ratio+=this.group.ratio,this.strip.height=this.galleryWidth/this.strip.ratio,this.strip.setWidth(this.galleryWidth),this.strip.addGroup(this.group),this.isLastImage&&this.strip.hasGroups&&(1===this.styleParams.scrollDirection?this.strip.height=this.container.galleryHeight+(this.styleParams.imageMargin/2-this.styleParams.layoutParams.gallerySpacing):this.strip.canRemainIncomplete()&&(this.strip.height=this.targetItemSize,this.strip.markAsIncomplete()),this.strip.resizeToHeight(this.strip.height),this.galleryHeight+=this.strip.height,this.columns[0].addGroups(this.strip.groups),this.strips.push(this.strip))}this.firstGroup||(this.firstGroup=this.group),this.pointer++}}if(this.styleParams.forceFullHeight){var r=this.container.galleryHeight/this.galleryHeight;this.items.map((function(e){return e.cubeImages=!0,e.cropRatio=e.ratio=e.width/(e.height*r),e.height*=r,e})),this.groups.map((function(e){return e.height*=r,e.setTop(e.top*r),e.resizeItems(),e}))}return this.lastGroup=this.group,this.colWidth=Math.floor(this.galleryWidth/this.numOfCols),this.height=this.galleryHeight-2*(this.styleParams.imageMargin/2-this.styleParams.layoutParams.gallerySpacing),this.width=this.lastGroup.left+this.lastGroup.width,this.ready=!0,this.scheme},e.prototype.lastVisibleItemIdxInHeight=function(e){for(var t=this.items.length-1;t>=0;t--){if(this.items[t].offset.top<e)return t}return this.items.length-1},e.prototype.lastVisibleItemIdx=function(){return this.lastVisibleItemIdxInHeight(this.container.galleryHeight-100)},e.prototype.findNeighborItem=function(e,t){var r,o=this,i=this.layoutItems[e],n=function(e,t,r){var i,n,a,s=null,l={};return o.layoutItems.forEach((function(o){i=o.offset.top+o.height/2,n=o.offset.left+o.width/2,a=Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2)),(null===s||a>0&&a<s)&&r(e,t,n,i)&&(s=a,l=o)})),l};switch(t){case"up":r=n(i.offset.left+i.width/2,i.offset.top,(function(e,t,r,o){return o<t}));break;case"left":r=n(i.offset.left,i.offset.top+i.height/2,(function(e,t,r){return r<e}));break;case"down":r=n(i.offset.left+i.width/2,i.offset.bottom,(function(e,t,r,o){return o>t}));break;default:r=n(i.offset.right,i.offset.top+i.height/2,(function(e,t,r){return r>e}))}return r.idx>=0?r.idx:(console.warn("Could not find offset for itemIdx",e,t),e)},e.prototype.getMaxGroupSize=function(){var e=1;try{var t="string"==typeof this.styleParams.groupTypes&&this.styleParams.groupTypes.length>0?this.styleParams.groupTypes.split(","):this.styleParams.groupTypes;e=t.length>0?t.reduce((function(e,t){return Math.max(e,parseInt(t))}),1):Number(t),e=Math.min(e,this.styleParams.groupSize)}catch(t){console.error("couldn't calculate max group size - returing 3 (?)",t),e=3}return e},Object.defineProperty(e.prototype,"isLastImage",{get:function(){return!this.srcItems[this.pointer+1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLastImages",{get:function(){return!this.srcItems[this.pointer+1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imagesLeft",{get:function(){return this.srcItems.length-this.pointer-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.layoutItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{items:this.items.map((function(e){return e.scheme})),groups:this.groups.map((function(e){return e.scheme})),strips:this.strips.map((function(e){return e.scheme})),columns:this.columns.map((function(e){return e.scheme})),height:this.height,width:this.width}},enumerable:!1,configurable:!0}),e}();const jr=Ur;var Kr=yr({layoutParams:{gallerySpacing:0,cropRatio:1},isRTL:!1,isVertical:!1,minItemSize:120,groupSize:3,chooseBestGroup:!0,groupTypes:"1,2h,2v,3t,3b,3l,3r",cubeImages:!1,cubeType:"fill",smartCrop:!1,fullscreen:!0,videoLoop:!0,videoSound:!1,videoPlay:"hover",videoSpeed:1,numberOfImagesPerRow:3,collageDensity:.8,galleryTextAlign:"center",imageMargin:10,fixedColumns:0,showArrows:!0,hasThumbnails:!1,galleryThumbnailsAlignment:"bottom",gridStyle:0,titlePlacement:dr.A.placements.SHOW_ON_HOVER,hoveringBehaviour:dr.A.infoBehaviourOnHover.APPEARS,isAutoSlideshow:!1,slideshowLoop:!1,playButtonForAutoSlideShow:!1,pauseAutoSlideshowOnHover:!0,allowSlideshowCounter:!1,autoSlideshowInterval:4,arrowsSize:23,slideshowInfoSize:200,imageLoadingMode:dr.A.loadingMode.BLUR,scrollAnimation:dr.A.scrollAnimations.NO_EFFECT,overlayAnimation:dr.A.overlayAnimations.NO_EFFECT,imageHoverAnimation:dr.A.imageHoverAnimations.NO_EFFECT,itemBorderWidth:0,itemBorderRadius:0,itemEnableShadow:!1,itemShadowBlur:20,loadMoreAmount:"all",itemShadowDirection:135,itemShadowSize:10,imageInfoType:dr.A.infoType.NO_BACKGROUND,textBoxBorderRadius:0,textBoxBorderWidth:0,textBoxHeight:200,textImageSpace:10,scrollDirection:0,slideAnimation:dr.A.slideAnimations.SCROLL,autoSlideshowType:dr.A.autoSlideshowTypes.INTERVAL,autoSlideshowContinuousSpeed:200},{layoutParams:{repeatingGroupTypes:"",navigationArrows:{type:dr.A.arrowsType.DEFAULT_ARROW,container:{type:dr.A.arrowsContainerStyleType.SHADOW,backgroundColor:"rgba(0,0,0,0)",borderRadius:0},mouseCursorContainerMaxWidth:100},thumbnails:{position:dr.A.thumbnailsPosition.OUTSIDE_GALLERY},structure:{galleryRatio:{value:0,includeExternalInfo:!1}}},behaviourParams:{item:{content:{magnificationValue:2},secondaryMedia:{trigger:dr.A.secondaryMediaTrigger.OFF,behaviour:dr.A.secondaryMediaBehaviour.APPEARS}}},galleryLayout:-1,gallerySizePx:0,gallerySizeRatio:0,gallerySizeType:dr.A.gallerySizeType.SMART,itemShadowOpacityAndColor:"",arrowsColor:"",textBoxBorderColor:"",allowContextMenu:!1,showVideoPlayButton:!1,gallerySize:30,cropOnlyFill:!1,rotatingCropRatios:"",columnWidths:"",numberOfImagesPerCol:1,groupsPerStrip:0,imageMargin:10,scatter:0,rotatingScatter:"",placeGroupsLtr:!1,enableInfiniteScroll:!0,thumbnailSpacings:4,enableScroll:!0,scrollSnap:!1,itemClick:dr.A.itemClick.NOTHING,slideAnimation:dr.A.slideAnimations.SCROLL,scrollDuration:400,arrowsPosition:dr.A.arrowsPosition.ON_GALLERY,arrowsVerticalPosition:dr.A.arrowsVerticalPosition.ITEM_CENTER,arrowsPadding:23,thumbnailSize:120,magicLayoutSeed:1,imagePlacementAnimation:dr.A.imagePlacementAnimations.NO_EFFECT,calculateTextBoxWidthMode:dr.A.textBoxWidthCalculationOptions.PERCENT,textBoxWidth:200,textBoxWidthPercent:50,loadMoreButtonText:"",videoSpeed:"1",showVideoControls:!1,shouldIndexDirectShareLinkInSEO:!0,slideTransition:dr.A.slideTransition.ease,useMaxDimensions:!1,enableVideoPlaceholder:!0,overlayPosition:dr.A.overlayPositions.LEFT,overlaySize:100,overlaySizeType:dr.A.overlaySizeType.PERCENT,overlayPadding:0,cubeFitPosition:dr.A.cubeFitPosition.MIDDLE,magnificationLevel:2});var Zr=r(32669),$r=r(15218),qr=r(87270),Yr=r(23151),Xr=r(59494),Qr=r(38414),Jr=r(99715),eo=r(96675),to=r(64695),ro=r(85382),oo=r(17831);const io=function(e,t){var r=(0,f.__assign)({},e);return r.textBoxHeight=function(e,t){if(!function(e,t){return(0,$r.D3)(e.titlePlacement)&&t}(e,t))return 0;return e.textBoxHeight}(r,t),r.externalInfoHeight=function(e,t){var r=t;t>0&&(0,$r.D3)(e.titlePlacement)&&e.imageInfoType===ro.A.SEPARATED_BACKGROUND&&(r+=e.textImageSpace,r+=2*e.textBoxBorderWidth);return r}(r,r.textBoxHeight),r.externalInfoWidth=function(e,t){if(!function(e,t){var r=e.scrollDirection,o=e.isVertical,i=e.groupSize,n=e.titlePlacement,a=r===dr.A.scrollDirection.VERTICAL&&o&&1===i;return a&&(0,$r.rU)(n)&&t}(e,t))return 0;var r=e.calculateTextBoxWidthMode,o=e.textBoxWidth,i=e.textBoxWidthPercent,n=0;n=r===oo.A.PERCENT?Math.min(100,Math.max(0,i))/100:o;return n}(r,t),r};var no=function(e){return e.replace(/_/g," ").split(" ").map((function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})).join(" ")},ao=function(e){return Object.entries(dr.A[e]).map((function(e){var t=e[0];return{value:e[1],title:no(t)}}))};const so=function(e){return e.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&1===e.groupSize&&e.cubeImages&&"100%/100%"===e.layoutParams.cropRatio},lo=(dr.A.slideAnimations.SCROLL,ao("slideAnimations"),function(){return!0}),uo=(dr.A.scrollDirection.VERTICAL,ao("scrollDirection"),function(e){return lo(e)&&e.scrollDirection===dr.A.scrollDirection.HORIZONTAL}),co=function(e){return uo(e)&&e.showArrows};dr.A.arrowsPosition.ON_GALLERY,ao("arrowsPosition");var po=function(e,t){return void 0===t&&(t=!1),e.gallerySizeType===Jr.A.PIXELS&&e.gallerySizePx>0?e.gallerySizePx:e.gallerySizeType===Jr.A.RATIO&&e.gallerySizeRatio>0?(Zr.A&&Zr.A.innerWidth||980)*(e.gallerySizeRatio/100):t||e.gallerySize},ho=function(e){var t=(0,f.__assign)({},e);return t.fixedColumns=0,(e.scrollDirection===dr.A.scrollDirection.VERTICAL||e.isVertical)&&(t.fixedColumns="1"===String(e.gridStyle)?Number(e.numberOfImagesPerRow):0,t.groupTypes="1",t.groupSize=1,t.collageAmount=0,t.collageDensity=0),t},go=function(e){var t=(0,f.__assign)({},e);return!function(e){if((0,$r.D3)(e.titlePlacement)){if(dr.A.isLayout("SLIDER")(e)||dr.A.isLayout("PANORAMA")(e)||dr.A.isLayout("COLUMN")(e))return!0;if(dr.A.isLayout("MASONRY")(e)&&e.isVertical)return!0;if(dr.A.isLayout("GRID")(e)&&1!==e.scrollDirection)return!0}return!1}(t)?(pr.A.isUndefined(t.itemFont)||(t=fo("itemFont","textDecorationTitle",t)),pr.A.isUndefined(t.itemDescriptionFont)||(t=fo("itemDescriptionFont","textDecorationDesc",t))):(pr.A.isUndefined(t.itemFontSlideshow)||(t=fo("itemFontSlideshow","textDecorationTitle",t)),pr.A.isUndefined(t.itemDescriptionFontSlideshow)||(t=fo("itemDescriptionFontSlideshow","textDecorationDesc",t))),t},mo=function(e){var t=(0,f.__assign)({},e);return"fit"===t.cubeType&&(t.itemBorderWidth=0,t.itemBorderRadius=0,t.itemEnableShadow=!1),t},fo=function(e,t,r){var o=(0,f.__assign)({},r);return o[e].value=o[e].value.replace(/^font\s*:\s*/,""),o[e].value=o[e].value.replace(/;$/,""),o[e].value.indexOf("underline")>-1||!0===o[e].style.underline?(o[e].value=o[e].value.replace("underline",""),o[t]="underline"):!1===o[e].style.underline&&(o[t]="none"),o};const yo=function(e,t){var r=(0,f.__assign)({},e);return pr.A.isMobile()&&(r=function(e){var t=(0,f.__assign)({},e);return t.imageMargin>0&&(t.imageMargin=Math.min(t.imageMargin,50)),t}(r=go(r))),r=function(e){var t=(0,f.__assign)({},e);return t.gallerySizeType===Jr.A.PIXELS&&t.gallerySizePx>0?t.targetItemSize=t.gallerySizePx:t.gallerySizeType===Jr.A.RATIO&&t.gallerySizeRatio>0&&(t.targetItemSize=(Zr.A&&Zr.A.innerWidth||980)*(t.gallerySizeRatio/100)),t}(r=function(e){var t=(0,f.__assign)({},e);return t.forceMobileCustomButton&&(t.targetItemSize=Math.round(405),t.titlePlacement=$r.Ay.SHOW_BELOW,t.galleryLayout=2,t.fixedColumns=1,t.numberOfImagesPerRow=1),t}(r=function(e){var t=(0,f.__assign)({},e);return t.loadMoreButtonFont&&pr.A.isMobile()&&(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/^font\s*:\s*/,""),t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/;$/,""),t.loadMoreButtonFont.value.indexOf("underline")>-1?(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace("underline",""),t.textDecorationLoadMore="underline"):t.textDecorationLoadMore="none"),t}(r=function(e){var t=(0,f.__assign)({},e);return(t.scrollDirection===dr.A.scrollDirection.VERTICAL||t.groupSize>1||!t.cubeImages)&&(t.slideAnimation=Qr.A.SCROLL),t}(r=function(e){var t=(0,f.__assign)({},e);return t.scrollDirection===dr.A.scrollDirection.VERTICAL&&(t.slideshowLoop=!1),t}(r=function(e){var t=(0,f.__assign)({},e);return t.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&(t.isVertical=!1),t}(r=function(e){var t=(0,f.__assign)({},e);return t.arrowsPosition===eo.A.OUTSIDE_GALLERY&&(t.arrowsPadding=0),t}(r=function(e){var t=(0,f.__assign)({},e);return t.itemEnableShadow&&t.scrollDirection===dr.A.scrollDirection.VERTICAL&&(t=hr(t,"layoutParams_gallerySpacing",Math.max(t.layoutParams.gallerySpacing,(t.itemShadowSize||0)+(t.itemShadowBlur||0)))),t}(r=function(e){var t=(0,f.__assign)({},e);return t.itemEnableShadow&&t.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&(t.itemEnableShadow=!1),t}(r=function(e){var t=(0,f.__assign)({},e);return t.imageLoadingMode===Yr.A.COLOR&&t.imageLoadingWithColorMode===Xr.A.MAIN_COLOR&&(t.imageLoadingMode=Yr.A.MAIN_COLOR),t}(r=function(e){var t=(0,f.__assign)({},e);return e.EXPERIMENTALallowParallelInfos||(0,$r.uF)(t.titlePlacement)||t.hoveringBehaviour===qr.A.NEVER_SHOW||(t.hoveringBehaviour=qr.A.APPEARS),t}(r=function(e){var t=(0,f.__assign)({},e);return dr.A.isLayout("SLIDER")(t)||dr.A.isLayout("COLUMN")(t)||dr.A.isLayout("SLIDESHOW")(t)||(!t.isVertical||t.groupSize>1)&&(t.titlePlacement=$r.Ay.SHOW_ON_HOVER),t}(r)))))))))))),r=function(e){var t=(0,f.__assign)({},e);return!0===t.cropOnlyFill&&(t.cubeImages=t.layoutParams.crop.enable=t.cubeType===to.A.CROP),t}(r=function(e){var t=(0,f.__assign)({},e);return pr.A.isTouch()&&e.arrowsPosition===dr.A.arrowsPosition.MOUSE_CURSOR&&co(e)&&(t.showArrows=!1),t}(r=function(e){var t=(0,f.__assign)({},e);return e.arrowsPosition===dr.A.arrowsPosition.MOUSE_CURSOR&&co(e)&&(t.showVideoControls=!1),t}(r=function(e){var t=(0,f.__assign)({},e);return e.slideAnimation!==dr.A.slideAnimations.FADE&&e.slideAnimation!==dr.A.slideAnimations.DECK||!so(e)||(t.enableScroll=!1),t}(r=function(e){var t=(0,f.__assign)({},e);return t.allowSlideshowCounter?(t.isAutoSlideshow||(t.allowSlideshowCounter=!1),!1===dr.A.isLayout("SLIDESHOW")(e)&&(t.allowSlideshowCounter=!1),t):t}(r=function(e){var t=(0,f.__assign)({},e),r=t.layoutParams.repeatingGroupTypes?"1"==t.layoutParams.repeatingGroupTypes:"1"==t.groupTypes,o=t.titlePlacement.split(",").filter((function(e){return!(0,$r.WC)(e)})).join(",");return(0,$r.O9)(o)&&r||(t.arrowsVerticalPosition=dr.A.arrowsVerticalPosition.ITEM_CENTER),t}(r=io(r,t)))))))};var vo=r(13030),bo=r(35685),So=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.ALTERNATE,t.cubeType="fill",t.cubeImages=!0,(t=hr(t,"layoutParams_cropRatio",1)).titlePlacement=$r.Ay.SHOW_ON_HOVER,t.scrollDirection=vo.A.VERTICAL,t.gridStyle=bo.A.SET_ITEMS_PER_ROW,(t=hr(t,"layoutParams_gallerySpacing",0)).isVertical=!0,t.groupSize=3,t.collageDensity=.48,t.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",t.gallerySize=86,t.minItemSize=50,t.chooseBestGroup=!0,(t=hr(t,"layoutParams_repeatingGroupTypes","1,2h,1,2h")).smartCrop=!1,t.scatter=0,t.rotatingScatter="",t.fixedColumns=1,t.groupsPerStrip=0,t.placeGroupsLtr=!1,t.rotatingCropRatios="",t.slideshowLoop=!1,t},Po=(So({}),function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.BRICKS,t.cubeType="fill",t.cubeImages=!0,(t=hr(t,"layoutParams_cropRatio",1)).titlePlacement=$r.Ay.SHOW_ON_HOVER,t.scrollDirection=vo.A.VERTICAL,(t=hr(t,"layoutParams_gallerySpacing",0)).isVertical=!0,t.groupSize=3,t.collageDensity=.8,t.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",t.slideshowLoop=!1,t.gridStyle=bo.A.SET_ITEMS_PER_ROW,t.gallerySize=400,t.minItemSize=50,t.chooseBestGroup=!0,(t=hr(t,"layoutParams_repeatingGroupTypes","2h")).smartCrop=!1,t.scatter=0,t.rotatingScatter="",t.fixedColumns=1,t.groupsPerStrip=0,t.placeGroupsLtr=!1,t.rotatingCropRatios="0.707,1.414,1.414,0.707",t}),wo=(Po({}),function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.COLLAGE,t.cubeImages=!1,t.titlePlacement=$r.Ay.SHOW_ON_HOVER,t.groupSize=3,t.hasThumbnails=!1,t.groupTypes="1,2h,2v,3t,3b,3l,3r",t.slideshowLoop=!1,t.numberOfImagesPerCol=1,t.gridStyle=bo.A.FIT_TO_SCREEN,t.targetItemSize=0,t.fixedColumns=0,t.enableScroll=!0,t.cropOnlyFill=!1,t.slideAnimation=Qr.A.SCROLL,t}),Co=(wo({}),function(e){var t=(0,f.__assign)({},e);return(t=wo(t)).targetItemSize=po(t,Math.round(5*t.gallerySize+500)),t}),Eo=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.FULLSIZE,t.cubeImages=!0,(t=hr(t,"layoutParams_cropRatio","100%/100%")).cubeType="fill",t.titlePlacement=$r.Ay.SHOW_ON_HOVER,t.scrollDirection=vo.A.HORIZONTAL,t.galleryMargin=0,t.isVertical=!1,t.groupSize=1,t.groupTypes="1",t.numberOfImagesPerCol=1,t.smartCrop=!1,t.galleryType="Strips",t.hasThumbnails=!1,t.enableScroll=!0,t.scrollSnap=!0,t.cropOnlyFill=!1,t.scatter=0,t.rotatingScatter="",t.imageMargin=0,t},Ao=(Eo({}),function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.COLUMN,t.cubeType="fill",t.cubeImages=!0,(t=hr(t,"layoutParams_cropRatio",.35)).scrollDirection=vo.A.HORIZONTAL,t.isVertical=!1,t.groupSize=1,t.groupTypes="1",t.numberOfImagesPerCol=1,t.smartCrop=!1,t.galleryType="Strips",t.fixedColumns=0,t.enableScroll=!0,t.cropOnlyFill=!1,t.slideAnimation=Qr.A.SCROLL,t}),Io=(Ao({}),function(e){var t=(0,f.__assign)({},e);return(t=Ao(t)).targetItemSize=po(t),t}),_o=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.GRID,t.cubeImages=!0,t.isVertical=!0,t.groupSize=1,t.hasThumbnails=!1,t.groupTypes="1",t.slideshowLoop=!1,t.smartCrop=!1,t.galleryType="Columns",t.targetItemSize=0,t.enableScroll=!0,t.cropOnlyFill=!1,t.minItemSize=50,t.slideAnimation=Qr.A.SCROLL,t.collageDensity=0,t},To=(_o({}),function(e){var t=(0,f.__assign)({},e);return(t=_o(t)).targetItemSize=po(t,Math.round(8.5*t.gallerySize+150)),t=function(e){var t=(0,f.__assign)({},e);if(!pr.A.isUndefined(e.numberOfImagesPerCol)&&e.scrollDirection===dr.A.scrollDirection.HORIZONTAL)switch(t.fixedColumns=0,e.numberOfImagesPerCol){case 1:default:t.groupTypes="1",t.groupSize=1,t.collageAmount=0,t.collageDensity=0;break;case 2:t.groupTypes="2v",t.groupSize=2,t.collageAmount=1,t.collageDensity=1;break;case 3:t.groupTypes="3v",t.groupSize=3,t.collageAmount=1,t.collageDensity=1}return t}(t=ho(t)),t=mo(t)}),Oo=function(){function e(){this.features={fullscreenRedesign:{title:"New fullscreen design",releaseDate:Date.parse("2017-09-25T12:00:00.000Z")},spacingCalculation:{title:"Improve spacing calculation",releaseDate:Date.parse("2017-08-29T11:27:29.000Z")},fixedColumnsInMasonry:{title:"Allow fixed number of columns in Masonry layout",releaseDate:Date.parse("2018-05-24T18:00:00.000Z")},mobileSettings:{title:"Separate mobile and desktop setting",releaseDate:Date.parse("2018-12-18T12:00:50.054Z")}},this.freezeDate=new Date,this.updateFeatures()}return Object.defineProperty(e.prototype,"freezeDate",{get:function(){return this._dateCreated||new Date},set:function(e){"object"==typeof e&&"function"==typeof e.getTime&&(this._dateCreated=e,this.updateFeatures())},enumerable:!1,configurable:!0}),e.prototype.updateFeatures=function(){var e=this;this.supports=Object.entries(this.features).reduce((function(t,r){var o,i=r[0],n=r[1].releaseDate;return(0,f.__assign)((0,f.__assign)({},t),((o={})[i]=e.freezeDate>=n,o))}))},e}(),xo=new Oo,No=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.MAGIC,t.cubeImages=void 0,(t=hr(t,"layoutParams_cropRatio",void 0)).isVertical=void 0,t.targetItemSize=void 0,t.collageAmount=void 0,t.collageDensity=void 0,t.groupTypes=void 0,t.oneRow=void 0,t.imageMargin=void 0,t.scatter=void 0,(t=hr(t,"layoutParams_gallerySpacing",void 0)).chooseBestGroup=void 0,t.smartCrop=void 0,t.cubeType=void 0,t.hasThumbnails=void 0,t.enableScroll=void 0,t.cropOnlyFill=void 0,t.fixedColumns=void 0,t.enableInfiniteScroll=void 0,t.slideshowLoop=!1,t},Lo=(No({}),function(e){var t=(0,f.__assign)({},e),r=t.magicLayoutSeed;!r>0&&(r=999999),r=Math.floor(r);var o=function(e,t,o){var i,n,a=function(e){e=String(e);for(var t=0,r=0;r<e.length;r++)t+=e.charCodeAt(r);return t}(o),s=t-e+1;return i=r,n=a,Math.floor(1e7*(i/n-Math.floor(i/n)))%s+e},i=function(e){return!!o(0,1,e)};return t.cubeImages=i("cubeImages"),(t=hr(t,"layoutParams_cropRatio",o(1,25,"cubeRatio")/5)).isVertical=i("isVertical"),t.targetItemSize=o(300,800,"gallerySize"),t.collageAmount=o(5,10,"collageAmount")/10,t.collageDensity=(xo.supports.spacingCalculation?o(1,100,"collageDensity"):o(5,10,"collageDensity"))/100,t.groupTypes=["1"].concat("2h,2v,3t,3b,3l,3r,3h,3v".split(",").filter((function(e,t){return i("groupTypes"+t)}))),t.oneRow=i("oneRow"),t.imageMargin=o(0,xo.supports.spacingCalculation?o(300,800,"gallerySize")/5:5,"imageMargin"),(t=hr(t,"layoutParams_gallerySpacing",xo.supports.spacingCalculation?0:o(0,5,"imageMargin"))).scatter=0,t.rotatingScatter="",t.chooseBestGroup=i("chooseBestGroup"),t.smartCrop=i("smartCrop"),t.cubeType="fill",t.enableScroll=!0,t.cropOnlyFill=!1,t.fixedColumns=0,t.enableInfiniteScroll=1,t.oneRow?(t.isVertical=!1,t.scrollDirection=vo.A.HORIZONTAL):t.scrollDirection=vo.A.VERTICAL,t.galleryType=t.isVertical?"Columns":"Strips",t.groupSize=parseInt(t.groupTypes.slice(-1)[0]),t.groupTypes=t.groupTypes.join(","),t.minItemSize=t.targetItemSize/t.groupSize/2,t}),Mo=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.MASONRY,t.cubeImages=!1,t.scrollDirection=vo.A.VERTICAL,t.groupSize=1,t.groupTypes="1",t.slideshowLoop=!1,t.enableScroll=!0,t.cropOnlyFill=!1,t},Ro=(Mo({}),function(e){var t=(0,f.__assign)({},e);return(t=Mo(t)).targetItemSize=po(t,t.isVertical?8*t.gallerySize+200:5*t.gallerySize+200),xo.supports.fixedColumnsInMasonry&&(t=ho(t)),t=function(e){var t=(0,f.__assign)({},e);return t.gridStyle=t.isVertical?e.gridStyle:dr.A.gridStyle.FIT_TO_SCREEN,t}(t),t}),ko=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.MIX,t.cubeType="fill",t.cubeImages=!0,(t=hr(t,"layoutParams_cropRatio",1)).titlePlacement=$r.Ay.SHOW_ON_HOVER,t.scrollDirection=vo.A.VERTICAL,(t=hr(t,"layoutParams_gallerySpacing",0)).isVertical=!0,t.groupSize=3,t.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",t.collageDensity=.48,t.gridStyle=bo.A.SET_ITEMS_PER_ROW,t.gallerySize=86,t.minItemSize=50,t.chooseBestGroup=!0,(t=hr(t,"layoutParams_repeatingGroupTypes","1,3l,1,3r")).smartCrop=!1,t.scatter=0,t.rotatingScatter="",t.fixedColumns=1,t.groupsPerStrip=0,t.placeGroupsLtr=!1,t.rotatingCropRatios="",t},Do=(ko({}),function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.PANORAMA,t.cubeImages=!1,t.scrollDirection=vo.A.VERTICAL,t.isVertical=!0,t.groupSize=1,t.groupTypes="1",t.gridStyle=bo.A.SET_ITEMS_PER_ROW,t.galleryType="Columns",t.fixedColumns=1,t.enableScroll=!0,t.cropOnlyFill=!1,t.slideshowLoop=!1,t}),Bo=(Do({}),function(e){var t=(0,f.__assign)({},e);return(t=Do(t)).targetItemSize=po(t),t}),Ho=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.SLIDER,t.enableInfiniteScroll=!0,t.cubeImages=!0,t.scrollDirection=vo.A.HORIZONTAL,t.isVertical=!1,t.groupSize=1,t.groupTypes="1",t.numberOfImagesPerCol=1,t.smartCrop=!1,t.galleryType="Strips",t.hasThumbnails=!1,t.enableScroll=!0,t.scrollSnap=!0,t.cropOnlyFill=!0,t.slideAnimation=Qr.A.SCROLL,t},Vo=(Ho({}),r(88021)),Fo=r(61720),Go=r(45863);const zo=function(e){e.imagePlacementAnimation=Vo.A.NO_EFFECT,e.overlayAnimation=Go.A.NO_EFFECT,e.imageHoverAnimation=Fo.A.NO_EFFECT};var Wo=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.SLIDESHOW,t.enableInfiniteScroll=!0,(t=hr(t,"layoutParams_cropRatio","100%/100%")).cubeImages=!0,t.hoveringBehaviour=qr.A.NEVER_SHOW,t.scrollDirection=vo.A.HORIZONTAL,(t=hr(t,"layoutParams_gallerySpacing",0)).isVertical=!1,t.groupSize=1,t.titlePlacement="SHOW_BELOW",t.groupTypes="1",t.itemBorderWidth=0,t.itemBorderRadius=0,t.itemBorderColor=void 0,t.numberOfImagesPerCol=1,zo(t),t.smartCrop=!1,t.targetItemSize=550,t.galleryType="Strips",t.fixedColumns=1,t.hasThumbnails=!1,t.enableScroll=!0,t.scrollSnap=!0,t.cropOnlyFill=!1,t.scatter=0,t.rotatingScatter="",t.imageMargin=0,t},Uo=(Wo({}),function(e){var t=(0,f.__assign)({},e);return(t=Wo(t)).targetItemSize=po(t),t=mo(t)}),jo=function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.THUMBNAIL,t.enableInfiniteScroll=!0,(t=hr(t,"layoutParams_cropRatio","100%/100%")).cubeImages=!0,t.titlePlacement=$r.Ay.SHOW_ON_HOVER,t.scrollDirection=vo.A.HORIZONTAL,(t=hr(t,"layoutParams_gallerySpacing",0)).isVertical=!1,t.groupSize=1,t.groupTypes="1",t.numberOfImagesPerCol=1,t.smartCrop=!1,t.galleryType="Strips",t.hasThumbnails=!0,t.enableScroll=!0,t.scrollSnap=!0,t.cropOnlyFill=!1,t.scatter=0,t.rotatingScatter="",t.imageMargin=0,t},Ko=(jo({}),function(e){var t=(0,f.__assign)({},e);return t.galleryLayout=vr.A.EMPTY,t}),Zo=(Ko({}),function(e){var t=e.galleryType,r=e.galleryType,o=e.galleryLayout;if(void 0!==r&&void 0===o)switch(t){case"1":case"0":default:return Co(e);case"2":return To(e);case"3":case"4":return Ro(e);case"5":return Bo(e);case"6":return Io(e);case"7":case"13":return Uo(e)}else switch(e.galleryLayout){case vr.A.MASONRY:return Ro(e);case vr.A.GRID:return To(e);case vr.A.THUMBNAIL:return function(e){var t=(0,f.__assign)({},e);return(t=jo(t)).targetItemSize=po(t),mo(t)}(e);case vr.A.SLIDER:return function(e){var t=(0,f.__assign)({},e);return(t=Ho(t)).targetItemSize=po(t),mo(t)}(e);case vr.A.SLIDESHOW:return Uo(e);case vr.A.PANORAMA:return Bo(e);case vr.A.COLUMN:return Io(e);case vr.A.MAGIC:return function(e){var t=(0,f.__assign)({},e);return t=No(t),Lo(t)}(e);case vr.A.FULLSIZE:return function(e){var t=(0,f.__assign)({},e);return(t=Eo(t)).targetItemSize=po(t),t}(e);case vr.A.BRICKS:return function(e){var t=(0,f.__assign)({},e);return(t=Po(t)).targetItemSize=po(t),t}(e);case vr.A.MIX:return function(e){var t=(0,f.__assign)({},e);return(t=ko(t)).targetItemSize=po(t),t}(e);case vr.A.ALTERNATE:return function(e){var t=(0,f.__assign)({},e);return(t=So(t)).targetItemSize=po(t),t}(e);case vr.A.EMPTY:return function(e){var t=(0,f.__assign)({},e);return(t=Ko(t)).targetItemSize=po(t,Math.round(9*t.gallerySize+100)),t}(e);case vr.A.JSON_FIXED:return function(e){try{return yr(e,mr(e.jsonStyleParams?JSON.parse(e.jsonStyleParams):{}))}catch(e){return{}}}(e);case vr.A.COLLAGE:default:return Co(e)}});const $o=function(e){return e.scrollDirection===dr.A.scrollDirection.HORIZONTAL},qo=function(e){var t=e.layoutParams.repeatingGroupTypes?"1"===e.layoutParams.repeatingGroupTypes:"1"===e.groupTypes,r=e.titlePlacement.split(",").filter((function(e){return!(0,$r.WC)(e)})).join(",");return t&&(0,$r.O9)(r)&&$o(e)&&e.layoutParams.structure.galleryRatio.value>0};var Yo=function(){function e(){this.options={},this.container={},this.id="",this._cache={}}return e.prototype.getOrPutInCache=function(e,t){return this._cache[e]||(this._cache[e]=t()),this._cache[e]},e.prototype.dumpCache=function(){this._cache={}},e.prototype.updateParams=function(e){var t=e.options,r=e.container,o=e.id;this.dumpCache(),this.id=o||this.id,this.options=t||this.options,this.container=r||this.container,this.fixHeightForHorizontalGalleryIfNeeded()},e.prototype.getGalleryDimensions=function(){var e=this;return this.getOrPutInCache("galleryDimensions",(function(){var t={galleryWidth:Math.ceil(e.getGalleryWidth()),galleryHeight:Math.ceil(e.getGalleryHeight()),scrollBase:e.container.scrollBase?Math.ceil(e.container.scrollBase):0,height:Math.ceil(e.container.height),width:Math.ceil(e.container.width)};return e.container.externalScrollBase&&(t.scrollBase+=e.container.externalScrollBase),e.options.hasThumbnails&&e.options.layoutParams.thumbnails.position===dr.A.thumbnailsPosition.OUTSIDE_GALLERY&&(t.galleryHeight-=e.getThumbnailHeightDelta(),t.galleryWidth-=e.getThumbnailWidthDelta()),t}))},e.prototype.getGalleryWidth=function(){var e=this;return this.getOrPutInCache("galleryWidth",(function(){var t=Math.floor(e.container.width)+2*e.getDimensionFix();return e.options.arrowsPosition===dr.A.arrowsPosition.OUTSIDE_GALLERY&&e.options.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&(t-=2*(e.options.arrowsSize+40+e.options.imageMargin/2)),t}))},e.prototype.getGalleryHeight=function(){var e=this;return this.getOrPutInCache("galleryHeight",(function(){return Math.floor((e.container.height>0?e.container.height:0)+(e.options.scrollDirection===dr.A.scrollDirection.HORIZONTAL?e.getDimensionFix():0))}))},e.prototype.getDimensionFix=function(){var e=this;return this.getOrPutInCache("dimensionFix",(function(){return Number(e.options.imageMargin/2)-Number(e.options.layoutParams.gallerySpacing)}))},e.prototype.getGalleryRatio=function(){var e=this;return this.getOrPutInCache("galleryRatio",(function(){var t=e.getGalleryDimensions();return t.galleryWidth/t.galleryHeight}))},e.prototype.getThumbnailSize=function(){return this.options.thumbnailSize+this.options.layoutParams.gallerySpacing+3*this.options.thumbnailSpacings},e.prototype.getThumbnailHeightDelta=function(){switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":return this.getThumbnailSize();case"left":case"right":return 0}},e.prototype.getThumbnailWidthDelta=function(){switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":return 0;case"left":case"right":return this.getThumbnailSize()}},e.prototype.fixHeightForHorizontalGalleryIfNeeded=function(){if(this.options.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&this.options.layoutParams.structure.galleryRatio.value>0)if(this.options.hasThumbnails&&this.options.layoutParams.thumbnails.position===dr.A.thumbnailsPosition.OUTSIDE_GALLERY)switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":this.container.height=this.container.width*this.options.layoutParams.structure.galleryRatio.value+this.getThumbnailHeightDelta();break;case"left":case"right":this.container.height=(this.container.width-this.getThumbnailWidthDelta())*this.options.layoutParams.structure.galleryRatio.value}else this.container.height=this.container.width*this.options.layoutParams.structure.galleryRatio.value,!this.options.layoutParams.structure.galleryRatio.includeExternalInfo&&qo(this.options)&&(this.container.height+=this.options.externalInfoHeight)},e}();const Xo=new Yo;var Qo=function(){function e(){}return e.prototype.createBlueprint=function(e){var t=e.params,r=e.lastParams,o=e.existingBlueprint,i=e.blueprintManagerId,n=e.isUsingCustomInfoElements;this.reasons={items:"",itemsAdded:"",options:"",container:""};var a={};try{var s=t.container,l=t.items,u=t.options,c=r.container,d=r.items,p=r.options,h=this.formatItemsIfNeeded(l,d),g=h.formattedItems,m=h.changed,y=this.formatOptionsIfNeeded(u,p,n),v=y.formattedOptions,b=y.changed,S=this.formatContainerIfNeeded(s,c,p,v||o.options,b),P=S.formattedContainer,w=S.changed,C=m||b||w;if(a={itemsChanged:m,optionsChanged:b,containerChanged:w},C||!o){o||(o={});var E=this.createStructure({formattedContainer:P||o.container,formattedItems:g||o.items,formattedOptions:v||o.options},C);v&&(o.options=v),g&&(o.items=g),P&&(o.container=P),o.structure=E,o.options.scrollDirection===dr.A.scrollDirection.VERTICAL&&o.options.enableInfiniteScroll&&(o.container.height=o.container.galleryHeight=E.height)}}catch(e){console.error("Could not create blueprint, error:",e)}var A=Object.entries(this.reasons).reduce((function(e,t){var r=t[0],o=t[1];return(0,f.__spreadArray)((0,f.__spreadArray)([],e,!0),["".concat(r,": ").concat(o)],!1)}),[]).join(", ");return{blueprint:o,changedParams:a,blueprintManagerId:i,reasons:A}},e.prototype.formatItemsIfNeeded=function(e,t){var r,o=this,i=t,n=!1;return!function(e,t){if(e===t)return o.reasons.itemsAdded="items are the same object.",!1;if(!e)return o.reasons.itemsAdded="new items do not exist.",!1;if(!t||t&&0===t.length)return o.reasons.itemsAdded="old items do not exist.",!1;if(t.length>=e.length)return o.reasons.itemsAdded="more old items than new items.",!1;var r=t.reduce((function(t,r,o){return t&&r.id===e[o].itemId}),!0);return r||(o.reasons.itemsAdded="items ids were changed. "),r}(e,i)?function(e,t){return e===t?(o.reasons.items="items are the same object.",!1):e?!t||t&&0===t.length?(o.reasons.items="old items do not exist.",!0):t.length!==e.length?(o.reasons.items="more new items than old items (or vice versa).",!0):e.some((function(e,r){var i=t[r];try{var n=!e||!i||e.itemId!==i.itemId||e.mediaUrl!==i.mediaUrl||e.measured!==i.measured||e.metaData&&i.metaData&&(e.metaData.type!==i.metaData.type||e.metaData.title!==i.metaData.title||e.metaData.description!==i.metaData.description||e.metaData.width!==i.metaData.width||e.metaData.height!==i.metaData.height)||e.metaData&&"text"===e.metaData.type&&i.metaData&&"text"===i.metaData.type&&(e.metaData.html!==i.metaData.html||e.metaData.textStyle!==i.metaData.textStyle||e.metaData.editorHtml!==i.metaData.editorHtml);return n&&(o.reasons.items="items #".concat(r," id was changed.")),n}catch(e){return o.reasons.items="an error occured",!0}}),!1):(o.reasons.items="new items do not exist.",!1)}(e,i)&&(r=e.map((function(e){return Object.assign(Fr.convertDtoToLayoutItem(e))})),this.gettingMoreItems=!1,n=!0):(r=i.concat(e.slice(i.length).map((function(e){return Fr.convertDtoToLayoutItem(e)}))),this.gettingMoreItems=!1,n=!0),{formattedItems:r,changed:n}},e.prototype.formatOptionsIfNeeded=function(e,t,r){var o,i=this,n=!1;if(function(e,t){if(!e)return i.reasons.options="no new options.",!1;if(!t)return i.reasons.options="no old options.",!0;try{var r={};Object.keys(t).sort().forEach((function(e){return r[e]=t[e]}));var o={};Object.keys(e).sort().forEach((function(t){return o[t]=e[t]}));var n=JSON.stringify(o)!==JSON.stringify(r);return n&&(i.reasons.options="options were changed."),n}catch(e){return console.error("Could not compare options",e),!1}}(e,t)){var a=function(e){var t=gr(Kr),r=gr(e),o=Object.assign({},t,r);return Object.keys(o).forEach((function(e){void 0===o[e]&&(o[e]=Kr[e])})),mr(o)}(xr(e));o=xr(yo(Zo(a),r)),n=!0}return{formattedOptions:o,changed:n}},e.prototype.formatContainerIfNeeded=function(e,t,r,o,i){var n,a=this,s=!1;return(i||function(e){var t=e.newContainerParams,r=e.oldContainerParams;if(!e.oldOptions||!r)return a.reasons.container="no old container or options. ",!0;if(!t)return a.reasons.container="no new container.",!1;var i={height:(o.scrollDirection!==dr.A.scrollDirection.VERTICAL||!o.enableInfiniteScroll)&&(!!t.height&&t.height!==r.height),width:!r||!!t.width&&t.width!==r.width,scrollBase:t.scrollBase!==r.scrollBase};return Object.keys(i).reduce((function(e,t){return i[t]&&(a.reasons.container+="container.".concat(t," has changed. ")),e||i[t]}),!1)}({newContainerParams:e,oldContainerParams:t,oldOptions:r}))&&(Xo.updateParams({options:o,container:e}),s=!0,n=Object.assign({},e,Xo.getGalleryDimensions())),{formattedContainer:n,changed:s}},e.prototype.createStructure=function(e){var t=e.formattedContainer,r=e.formattedOptions,o={items:e.formattedItems,container:t,styleParams:r,options:{showAllItems:!0,skipVisibilitiesCalc:!0,useLayoutStore:!1}};return o.options.createLayoutOnInit=!1,this.layouter=new jr(o),this.layouter.createLayout(o)},e}();const Jo=new Qo;var ei=r(98762),ti=function(){function e(e){var t=e.id;this.id=t+"'s blueprintsManager",this.currentState={},this.existingBlueprint={},this.lastBlueprintId=0,this.cache={},this.api={},this.currentState.totalItemsCount=1/0,this.onBlueprintReady=function(){},this.loopingItems=!1}return e.prototype.init=function(e){this.api=e.api,this.currentState.totalItemsCount=e&&e.totalItemsCount||this.currentState.totalItemsCount,ei.CB.setDeviceType(e.deviceType)},e.prototype.setCurrentBlueprint=function(e){this.lastBlueprintId=e},e.prototype.createBlueprint=function(e){return void 0===e&&(e={}),(0,f.__awaiter)(this,void 0,void 0,(function(){var t,r,o,i,n,a,s,l,u,c,d=this;return(0,f.__generator)(this,(function(p){switch(p.label){case 0:return t=Math.floor(1e3*Math.random()),this.currentState.totalItemsCount=e.totalItemsCount||this.api.getTotalItemsCount&&this.api.getTotalItemsCount()||this.currentState.totalItemsCount,this.currentState.isUsingCustomInfoElements=e.isUsingCustomInfoElements||this.api.isUsingCustomInfoElements&&this.api.isUsingCustomInfoElements()||this.currentState.isUsingCustomInfoElements,r=[(0,f.__assign)({},e)],[4,this.completeParams(e)];case 1:return e=f.__assign.apply(void 0,r.concat([p.sent()])),e=this.duplicateItemsForSlideshowLoopIfNeeded(e),o=function(e){return(0,f.__awaiter)(d,void 0,void 0,(function(){return(0,f.__generator)(this,(function(t){switch(t.label){case 0:return this.setCurrentBlueprint(e.blueprintManagerId),this.api.createBlueprintImp?[4,this.api.createBlueprintImp(e)]:[3,2];case 1:case 3:return[2,t.sent()];case 2:return[4,Jo.createBlueprint(e)]}}))}))},[4,o({params:e,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id+t,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements})];case 2:return i=p.sent(),n=i.blueprintManagerId,a=i.blueprint,s=i.changedParams,l=i.reasons,n!==this.lastBlueprintId?[2]:(u=Object.values(s).some((function(e){return!!e})),c=Object.keys(a).length>0,this.updateLastParamsIfNeeded(e,s,c),c&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:a,blueprintChanged:u,reasons:l}),[2,this.cache[e]=this.existingBlueprint=a])}}))}))},e.prototype.getMoreItems=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return e<this.currentState.totalItemsCount?[4,this.api.fetchMoreItems(e)]:[3,2];case 1:return(t=r.sent())&&this.createBlueprint({items:t}),[3,3];case 2:this.existingBlueprint.options.slideshowLoop&&this.duplicateItemsAndCreateBlueprint(),r.label=3;case 3:return[2]}}))}))},e.prototype.resetItemLooping=function(){this.loopingItems=!1},e.prototype.createInitialBlueprint=function(e){this.currentState.totalItemsCount=e.totalItemsCount||this.api.getTotalItemsCount&&this.api.getTotalItemsCount()||this.currentState.totalItemsCount,this.currentState.isUsingCustomInfoElements=e.isUsingCustomInfoElements||this.api.isUsingCustomInfoElements&&this.api.isUsingCustomInfoElements()||this.currentState.isUsingCustomInfoElements,e=this.duplicateItemsForSlideshowLoopIfNeeded(e);var t=Jo.createBlueprint({params:e,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements}),r=t.blueprint,o=t.changedParams,i=t.reasons,n=Object.values(o).some((function(e){return!!e})),a=Object.keys(r).length>0;return this.updateLastParamsIfNeeded(e,o,a),a&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:r,blueprintChanged:n,reasons:i,initialBlueprint:!0}),a&&(this.cache[e]=this.existingBlueprint=r)},e.prototype.createSingleBlueprint=function(e){void 0===e&&(e={});var t=e.isUsingCustomInfoElements;return Jo.createBlueprint({params:e,lastParams:{},existingBlueprint:{},blueprintManagerId:this.id+"_singleBlueprint",isUsingCustomInfoElements:t}).blueprint},e.prototype.duplicateGalleryItems=function(e){for(var t=e.items,r=e.duplicateFactor,o=void 0===r?1:r,i=(t=t||this.currentState.items).slice(0,this.currentState.totalItemsCount),n=0;n<o;n++)t=t.concat.apply(t,i);return this.loopingItems=!0,t},e.prototype.duplicateItemsAndCreateBlueprint=function(){var e=this.duplicateGalleryItems({});this.createBlueprint({items:e})},e.prototype.duplicateItemsForSlideshowLoopIfNeeded=function(e){var t=e.items,r=e.options,o=r.slideshowLoop,i=r.scrollDirection,n=this.currentState.totalItemsCount,a=t.length<30&&t.length===n,s=i===dr.A.scrollDirection.HORIZONTAL;if(o&&a&&s){var l=Math.ceil(30/t.length)-1;return(0,f.__assign)((0,f.__assign)({},e),{items:this.duplicateGalleryItems({items:t,duplicateFactor:l})})}return e},e.prototype.completeParams=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t,r,o,i,n;return(0,f.__generator)(this,(function(a){switch(a.label){case 0:return r=(t=e||{}).container,o=t.items,i=t.options,n=t.id,[4,this.fetchContainerIfNeeded(r)];case 1:return r=a.sent(),[4,this.fetchItemsIfNeeded(o)];case 2:return o=a.sent(),[4,this.fetchOptionsIfNeeded(i)];case 3:return i=a.sent(),[2,{container:r,items:o,options:i,id:n}]}}))}))},e.prototype.fetchContainerIfNeeded=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return function(e){var t=!0;return e&&Object.keys(e).length>0&&(t=!1),t}(e)?(t=this.api.fetchContainer)?[4,this.api.fetchContainer()]:[3,2]:[3,3];case 1:t=r.sent(),r.label=2;case 2:e=t||this.currentState.container,r.label=3;case 3:return[2,e]}}))}))},e.prototype.fetchItemsIfNeeded=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return function(e){var t=!0;return e&&e.length>0&&(t=!1),t}(e)?(t=!this.loopingItems&&this.api.fetchItems)?[4,this.api.fetchItems()]:[3,2]:[3,3];case 1:t=r.sent(),r.label=2;case 2:e=t||this.currentState.items,r.label=3;case 3:return[2,e]}}))}))},e.prototype.fetchOptionsIfNeeded=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return function(e){var t=!0;return e&&Object.keys(e).length>0&&(t=!1),t}(e)?(t=this.api.fetchOptions)?[4,this.api.fetchOptions()]:[3,2]:[3,3];case 1:t=r.sent(),r.label=2;case 2:e=t||this.currentState.options,r.label=3;case 3:return[2,e]}}))}))},e.prototype.updateLastParamsIfNeeded=function(e,t,r){var o=e.items,i=e.container,n=e.options;r&&(this.currentState.items=t.itemsChanged?o:this.currentState.items,this.currentState.container=t.containerChanged?(0,f.__assign)({},i):this.currentState.container,this.currentState.options=t.optionsChanged?(0,f.__assign)({},n):this.currentState.options)},e.prototype.needMoreItems=function(e){this.getMoreItems(e)},e}();const ri=ti;const oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,f.__extends)(t,e),t.prototype.render=function(){if("true"!==pr.A.getTopUrlParam("pgdebug"))return!1;var e=n().createElement("div",{className:"version-header "},"Pro Gallery Version #",Zr.A.staticsVersion),t="";try{t=" psw"+Zr.A.top.screen.width+" piw"+Zr.A.top.innerWidth+" pbw"+Zr.A.top.document.body.clientWidth}catch(e){}var r=n().createElement("div",{className:"version-header "},pr.A.isLandscape()?"land":"port"," sw",Zr.A.screen.width,"sh",Zr.A.screen.height," iw",Zr.A.innerWidth," bw",Zr.A.document.body.clientWidth," sr","1","rc",this.props.resizeCount," oc",this.props.orientationCount," nh",this.props.newHeight," lh",this.props.lastHeight,t,"www",this.props.maxGalleryWidth);return n().createElement("div",null,e,r)},t}(n().Component);var ii=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isPrinting:!1},r}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this;window.addEventListener("beforeprint",(function(){e.setState({isPrinting:!0})})),window.addEventListener("afterprint",(function(){e.setState({isPrinting:!1})}))},t.prototype.render=function(){return this.state.isPrinting?n().createElement("source",(0,f.__assign)({},this.props)):null},t}(n().Component),ni=function(e){function t(t){var r=e.call(this,t)||this;return r.imageRef=null,r}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){var e;(null===(e=this.imageRef)||void 0===e?void 0:e.complete)&&"function"==typeof this.props.onLoad&&this.props.onLoad()},t.prototype.render=function(){var e=this,t=this.props,r=t.customImageRenderer,o=(0,f.__rest)(t,["customImageRenderer"]);return"function"==typeof r?r(this.props):"string"==typeof this.props.src?n().createElement("img",(0,f.__assign)({ref:function(t){e.imageRef=t},alt:this.props.alt},o)):"object"==typeof this.props.src?n().createElement("picture",{id:"multi_picture_".concat(this.props.id),key:"multi_picture_".concat(this.props.id)},this.props.src.map((function(e,t){return e.forPrinting?n().createElement(ii,{key:"print-only-image-".concat(t),srcSet:e.dpr,type:"image/".concat(e.type)}):n().createElement("source",{key:"image-source-".concat(t),srcSet:e.dpr||e.url,type:"image/".concat(e.type)})})),n().createElement("img",(0,f.__assign)({ref:function(t){e.imageRef=t},alt:this.props.alt},o,{src:this.props.src[this.props.src.length-1].url}))):null},t}(n().Component);const ai=ni;var si=function(e){function t(t){var r=e.call(this,t)||this;return r.getImageContainer=r.getImageContainer.bind(r),r.getImageContainerClassNames=r.getImageContainerClassNames.bind(r),r.getImageElement=r.getImageElement.bind(r),r.state={isHighResImageLoaded:!1},r.handleHighResImageLoad=r.handleHighResImageLoad.bind(r),r}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){try{"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}catch(e){console.error(e)}},t.prototype.handleHighResImageLoad=function(){this.setState({isHighResImageLoaded:!0});try{this.props.actions.setItemLoaded()}catch(e){console.error("Failed to load high res image",e)}},t.prototype.getImageContainerClassNames=function(){var e=this.props,t=e.isCurrentHover,r=e.options,o=e.isTransparent,i=this.state.isHighResImageLoaded;return["gallery-item-content",t?"item-content-hover":"item-content-regular","image-item","gallery-item-visible","gallery-item","gallery-item-preloaded",r.cubeImages&&"fit"===r.cubeType?"grid-fit":"",r.imageLoadingMode!==dr.A.loadingMode.COLOR||o?"":"load-with-color ".concat(i?"image-loaded":"")].join(" ")},t.prototype.getImageContainer=function(e,t,r){var o=this.props,i=o.imageDimensions,a=o.id,s=o.actions;return n().createElement("div",{className:t,onTouchStart:s.handleItemMouseDown,onTouchEnd:s.handleItemMouseUp,key:"image_container-"+a,"data-hook":"image-item",style:i},e(),r)},t.prototype.getImageAnimationOverlay=function(){var e=this.props,t=e.imageDimensions,r=e.options,o=e.createUrl,i=e.id,a=null;switch(r.scrollAnimation){case dr.A.scrollAnimations.BLUR:a=o(dr.A.urlSizes.RESIZED,dr.A.urlTypes.LOW_RES);break;case dr.A.scrollAnimations.MAIN_COLOR:a=o(dr.A.urlSizes.PIXEL,dr.A.urlTypes.HIGH_RES)}return a&&n().createElement("div",{key:"image_container-overlay-"+i,"data-hook":"image-item-overlay",style:(0,f.__assign)((0,f.__assign)({},t),{backgroundImage:"url(".concat(a,")"),backgroundSize:"cover",pointerEvents:"none",position:"absolute",top:0,left:0})})},t.prototype.getImageElement=function(){var e=this,t=this.props,r=t.alt,o=t.imageDimensions,i=t.createUrl,a=t.id,s=t.idx,l=t.settings,u=void 0===l?{}:l,c=t.options,d=t.isTransparent,p=this.state.isHighResImageLoaded,h=u&&u.imageProps&&"function"==typeof u.imageProps?u.imageProps(a):{},g=(o.marginLeft,o.marginTop,(0,f.__rest)(o,["marginLeft","marginTop"]));return function(){var t,o,l,u,m=[],y=pr.A.isMobile()&&!e.props.options.allowContextMenu?{WebkitUserSelect:"none",WebkitTouchCallout:"none"}:{},v=e.props.isPrerenderMode?{width:"100%",height:"100%"}:{};if(!p&&!d){var b=null,S=(0,f.__assign)({className:"gallery-item-visible gallery-item gallery-item-preloaded",key:"gallery-item-image-img-preload","data-hook":"gallery-item-image-img-preload",loading:"eager"},h);switch(c.imageLoadingMode){case dr.A.loadingMode.BLUR:b=n().createElement(ai,(0,f.__assign)({id:a,alt:"",key:"image_preload_blur-"+a,src:i(dr.A.urlSizes.RESIZED,dr.A.urlTypes.LOW_RES),style:(0,f.__assign)((0,f.__assign)((0,f.__assign)({},g),v),y)},S,{customImageRenderer:null===(t=e.props.customComponents)||void 0===t?void 0:t.customImageRenderer}));break;case dr.A.loadingMode.MAIN_COLOR:b=n().createElement(ai,(0,f.__assign)({id:a,alt:"",key:"image_preload_main_color-"+a,src:i(dr.A.urlSizes.PIXEL,dr.A.urlTypes.HIGH_RES),style:(0,f.__assign)((0,f.__assign)((0,f.__assign)({},g),v),y)},S,{customImageRenderer:null===(o=e.props.customComponents)||void 0===o?void 0:o.customImageRenderer}));break;case dr.A.loadingMode.NONE:b=null}m.push(b)}var P=!e.props.isPrerenderMode,w=(null===(l=c.stylingParams)||void 0===l?void 0:l.itemResolutionMode)===dr.A.itemResolutionMode.FULL?dr.A.urlSizes.FULL:dr.A.urlSizes.MULTI,C=i(w,dr.A.urlTypes.HIGH_RES),E=n().createElement(ai,(0,f.__assign)({id:a,key:"image_highres-"+a,className:"gallery-item-visible gallery-item gallery-item-preloaded","data-hook":"gallery-item-image-img","data-idx":s,src:C,alt:"string"==typeof r?r:"",onLoad:e.handleHighResImageLoad,loading:e.props.isPrerenderMode?"lazy":"eager",style:(0,f.__assign)((0,f.__assign)((0,f.__assign)({},g),y),!P&&v)},h,{customImageRenderer:null===(u=e.props.customComponents)||void 0===u?void 0:u.customImageRenderer}));return m.push(E),m}},t.prototype.render=function(){var e=this.getImageElement(),t="".concat(this.getImageContainerClassNames()," ").concat(this.props.extraClasses||""),r=this.props.overlay||this.getImageAnimationOverlay();return this.getImageContainer(e,t,r)},t}(n().Component);const li=si;const ui=function(e){return function(t){function r(e){var r=t.call(this,e)||this;return r.onMouseMove=r.onMouseMove.bind(r),r.onMouseDown=r.onMouseDown.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r.isMagnifiedBiggerThanContainer=r.isMagnifiedBiggerThanContainer.bind(r),r.toggleMagnify=r.toggleMagnify.bind(r),r.getMagnifyInitialPos=r.getMagnifyInitialPos.bind(r),r.getBoundrys=r.getBoundrys.bind(r),r.getMagnifiedDimensions=r.getMagnifiedDimensions.bind(r),r.containerRef=null,r.state={shouldMagnify:!1,x:0,y:0},r}return(0,f.__extends)(r,t),r.prototype.onDragStart=function(e){e.preventDefault()},r.prototype.onMouseMove=function(e){if(this.dragStarted){var t=this.getMagnifiedDimensions(),r=t.magnifiedWidth,o=t.magnifiedHeight;this.isDragging=!0;var i=this.props.style,n=i.cubedWidth,a=i.cubedHeight,s=e.clientY,l=e.clientX,u=this.getBoundrys(),c=u.boundryY,d=u.boundryX;this.setState({x:Math.max(-d,Math.min(this.dragStartX-l,r-n)),y:Math.max(-c,Math.min(this.dragStartY-s,o-a))})}},r.prototype.onMouseDown=function(e){var t=e.clientX,r=e.clientY,o=this.state,i=o.x,n=o.y;o.shouldMagnify?(this.dragStartX=i+t,this.dragStartY=n+r,this.dragStarted=!0):this.setState(this.getMagnifyInitialPos(e))},r.prototype.onMouseUp=function(){this.isDragging||this.toggleMagnify(),this.dragStarted=!1,this.isDragging=!1},r.prototype.toggleMagnify=function(e){var t=this.state.shouldMagnify;"boolean"==typeof e?this.setState({shouldMagnify:e}):this.setState({shouldMagnify:!t})},r.prototype.getMagnifiedDimensions=function(){var e=this.props,t=e.style,r=t.innerHeight,o=t.innerWidth,i=e.options.behaviourParams.item.content.magnificationValue;return{magnifiedHeight:r*i,magnifiedWidth:o*i}},r.prototype.getPreloadImage=function(){var e,t=this.props,r=t.createUrl,o=t.id,i=t.style,a=t.imageDimensions,s=t.options,l=i.innerWidth,u=i.innerHeight,c=a.marginTop,d=a.marginLeft,p=this.state,h=p.shouldMagnify,g=p.x,m=p.y,f=s.behaviourParams.item.content.magnificationValue,y=r(dr.A.urlSizes.RESIZED,dr.A.urlTypes.HIGH_RES),v=h?f:1;return n().createElement(ai,{alt:"",key:"magnified-item-preload-"+o,className:"magnified-item-preload",src:y,style:{width:l,height:u,position:"relative",zIndex:1,opacity:h?1:0,transform:"scale(".concat(v,")"),transformOrigin:"".concat((g+d)/(f-1),"px ").concat((m+c)/(f-1),"px"),transition:"transform 0.3s ease".concat(h?"":", opacity 0.1s ease 0.3s")},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})},r.prototype.getHighResImage=function(){var e,t=this.props,r=t.createMagnifiedUrl,o=t.id,i=t.alt,a=t.options,s=this.getMagnifiedDimensions(),l=s.magnifiedWidth,u=s.magnifiedHeight,c=r(a.behaviourParams.item.content.magnificationValue);return n().createElement(ai,{key:"magnified-item-".concat(o),className:"magnified-item","data-hook":"magnified-item",src:c,alt:"string"==typeof i?i:"untitled image",id:o,style:{width:l,height:u,position:"absolute"},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})},r.prototype.isMagnifiedBiggerThanContainer=function(e){var t=this.getMagnifiedDimensions(),r=t.magnifiedWidth,o=t.magnifiedHeight,i=e.cubedWidth,n=e.cubedHeight;return i<r||n<o},r.prototype.getMagnifyInitialPos=function(e){var t=e.clientX,r=e.clientY,o=this.props.style,i=this.getMagnifiedDimensions(),n=i.magnifiedWidth,a=i.magnifiedHeight,s=o.cubedWidth,l=o.cubedHeight,u=this.containerRef.getBoundingClientRect(),c=u.top,d=u.left,p=(t-d)/s*n-(t-d),h=(r-c)/l*a-(r-c),g=this.getBoundrys(),m=g.boundryY,f=g.boundryX;return{x:Math.max(-f,Math.min(p,n-s)),y:Math.max(-m,Math.min(h,a-l))}},r.prototype.getBoundrys=function(){var e=this.props.style,t=this.getMagnifiedDimensions(),r=t.magnifiedWidth,o=t.magnifiedHeight,i=e.cubedWidth,n=e.cubedHeight;return{boundryY:o<n?n/2-o/2:0,boundryX:r<i?i/2-r/2:0}},r.prototype.getContainerStyle=function(){var e=this.state.shouldMagnify,t=this.props.style;return{width:t.cubedWidth,height:t.cubedHeight,position:"relative",display:"flex",justifyContent:"center",alignItems:"center",cursor:e?"zoom-out":"zoom-in"}},r.prototype.getMagnifiedImageStyle=function(){var e=this.state,t=e.shouldMagnify,r=e.x,o=e.y;return{zIndex:2,position:"absolute",top:0,left:0,transform:"translate(".concat(-r,"px, ").concat(-o,"px)"),opacity:t?1:0,transition:"opacity 0.1s ease",transitionDelay:t?"0.3s":"none"}},r.prototype.render=function(){var t=this,r=this.state.shouldMagnify;return this.props.options.itemClick!==dr.A.itemClick.MAGNIFY?n().createElement(e,(0,f.__assign)({},this.props)):n().createElement("div",{ref:function(e){return t.containerRef=e},className:"magnified-item-container",style:this.getContainerStyle(),onDragStart:this.onDragStart,onMouseMove:this.onMouseMove,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},n().createElement(e,(0,f.__assign)({},this.props)),this.getPreloadImage(),n().createElement("div",{className:"magnified-images",style:this.getMagnifiedImageStyle()},r&&this.getHighResImage()))},r}(i.Component)},ci=ui(li);const di=function(e){return function(t){var r=t.itemWasHovered,o=t.isCurrentHover,i=t.hasSecondaryMedia,a=t.secondaryMediaItem;if(t.options.behaviourParams.item.secondaryMedia.trigger===dr.A.secondaryMediaTrigger.OFF||!i)return n().createElement(e,(0,f.__assign)({},t));return n().createElement("div",{className:"item-with-secondary-media-container"},n().createElement(e,(0,f.__assign)({},t)),n().createElement("div",{className:["secondary-media-item",o?"show":"hide"].join(" ")},r&&n().createElement(e,(0,f.__assign)({},function(){var e=a.createUrl,r=a.createMagnifiedUrl,o=a.style,i=a.html;return(0,f.__assign)((0,f.__assign)({},t),{style:o,html:i,createUrl:e,createMagnifiedUrl:r})}()))))}};var pi=function(e){function t(t){var r=e.call(this,t)||this;return"function"==typeof r.props.actions.setItemLoaded&&r.props.actions.setItemLoaded(),r}return(0,f.__extends)(t,e),t.prototype.getTextDimensions=function(){var e=this.props,t=e.style,r=e.options,o=e.cropRatio,i=e.imageDimensions,n=t.ratio<o-.01,a=i.marginLeft,s=i.marginTop,l=(n?t.height/t.maxHeight:t.width/t.maxWidth)*t.maxHeight,u=(n?t.height/t.maxHeight:t.width/t.maxWidth)*t.maxWidth,c="fit"===r.cubeType?"0, 0":"".concat(Math.round((t.width-u)/2),"px, ").concat(Math.round((t.height-l)/2),"px"),d=n?t.height/t.maxHeight:t.width/t.maxWidth,p="translate(".concat(c,") scale(").concat(d,")"),h=Math.round(a/d),g=Math.round(s/d);return{width:t.maxWidth+"px",height:t.maxHeight+"px",marginLeft:h,marginTop:g,transformOrigin:"".concat(-h,"px ").concat(-g,"px"),WebkitTransform:p,MsTransform:p,OTransform:p,transform:p}},t.prototype.processInnerhtml=function(e){try{return e.replace(/class="font_\d+"/gm,"")}catch(t){return e}},t.prototype.render=function(){var e=this.props,t=e.id,r=e.options,o=e.html,i=e.style,a=e.actions,s=e.imageDimensions,l=this.processInnerhtml(o),u=this.getTextDimensions(),c={dangerouslySetInnerHTML:{__html:l}},d={style:Object.assign(u,"fit"===r.cubeType?{backgroundColor:i.bgColor}:{})},p=(0,f.__assign)((0,f.__assign)({},c),d),h={height:s&&!this.props.isPrerenderMode?s.height:"inherit",backgroundColor:"fit"!==r.cubeType?i.bgColor:"inherit"};s&&s.borderRadius&&(h.borderRadius=s.borderRadius);var g=["gallery-item-content",this.props.isCurrentHover?"item-content-hover":"item-content-regular"];return n().createElement("div",{className:g.join(" "),style:h},n().createElement("div",(0,f.__assign)({className:"gallery-item-visible gallery-item gallery-item-loaded text-item",key:"item-text-"+t,onTouchStart:a.handleItemMouseDown,onTouchEnd:a.handleItemMouseUp,"data-hook":"text-item"},p)))},t}(n().Component);const hi=pi;var gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,f.__extends)(t,e),t.prototype.getHoverClass=function(){var e=this.props,t=e.options,r=e.forceShowHover,o=["gallery-item-hover"];return o.push("fullscreen-"+(t.fullscreen?"enabled":"disabled")),pr.A.isUndefined(t.itemOpacity)&&o.push("default"),r?o.push("force-hover"):pr.A.isMobile()&&o.push("hide-hover"),this.props.isCurrentHover?o.push("item-overlay-hover"):o.push("item-overlay-regular"),o.join(" ")},t.prototype.shouldRenderHoverInnerIfExist=function(){var e=this.props,t=e.itemWasHovered,r=e.options,o=r.hoveringBehaviour,i=r.overlayAnimation,n=r.alwaysShowHover,a=r.previewHover,s=dr.A.infoBehaviourOnHover.APPEARS,l=dr.A.overlayAnimations.NO_EFFECT;return!!n||(!(!(0,ei.Q)()||!a)||(o!==s||i===l||t))},t.prototype.getOverlayStyle=function(){var e=this.props,t=e.options,r=e.imageDimensions,o={},i=t.overlayPosition,n=t.overlaySize,a=t.overlaySizeType,s=t.overlayPadding,l=i===dr.A.overlayPositions.LEFT||i===dr.A.overlayPositions.RIGHT||i===dr.A.overlayPositions.CENTERED_HORIZONTALLY,u=this.calcHeightAndWidth({isHorizontal:l,overlayPadding:s,requiredOverlaySize:n,imageDimensions:r,overlaySizeType:a}),c=u.width,d=u.height,p=s;return Object.assign(o,{width:c,height:d,margin:p,position:"relative"}),o},t.prototype.calcHeightAndWidth=function(e){var t,r=e.isHorizontal,o=e.overlayPadding,i=e.requiredOverlaySize,n=e.imageDimensions,a=e.overlaySizeType,s=r?"width":"height",l=r?"height":"width",u=this.calcOverlaySize(n[s],i,a,o);return(t={})[s]=u,t[l]=n[l]-2*o,t},t.prototype.calcOverlaySize=function(e,t,r,o){var i=e+-2*o,n=Math.min(i,"PERCENT"===r?i*(t/100):t);return Math.max(0,n)},t.prototype.getOverlayPositionByFlex=function(){var e=this.props,t=e.options,r=e.imageDimensions,o=t.overlayPosition,i={width:r.width,height:r.height,marginTop:r.marginTop,marginLeft:r.marginLeft,display:"flex",position:"absolute",top:0,left:0};switch(o){case dr.A.overlayPositions.RIGHT:Object.assign(i,{justifyContent:"flex-end"});break;case dr.A.overlayPositions.BOTTOM:Object.assign(i,{alignItems:"flex-end"});break;case dr.A.overlayPositions.CENTERED_HORIZONTALLY:Object.assign(i,{justifyContent:"center"});break;case dr.A.overlayPositions.CENTERED_VERTICALLY:Object.assign(i,{alignItems:"center"})}return i},t.prototype.render=function(){var e=this.props,t=e.actions,r=e.idx,o=e.renderCustomInfo,i=this.getHoverClass(),a=this.getOverlayStyle(),s=this.getOverlayPositionByFlex();return n().createElement("div",{className:"item-hover-flex-container",style:s},n().createElement("div",{key:"item-hover-"+r,"data-hook":"item-hover-"+r,"aria-hidden":!0,className:i,onTouchStart:t.handleItemMouseDown,onTouchEnd:t.handleItemMouseUp,style:a},this.shouldRenderHoverInnerIfExist()&&o?n().createElement("div",{className:"gallery-item-hover-inner"},o()):null))},t}(n().Component);const mi=gi;var fi=r(79566),yi=function(){function e(){this.pgScrollSteps=[40960,20480,10240,5120,2560,1280,640,320,160,80,40,20,10],this.pgScrollClassName="pgscl",this.screenSize=Math.max(Zr.A.screen.width,Zr.A.screen.height),this.scrollCss=[],this.scrollCssProps=[],this.calcScrollPaddings(!1)}return e.prototype.calcScrollPaddings=function(){var e=this;this.allPagePadding=function(){return[1/0,1/0]},this.inScreenPadding=function(){return[0,0]},this.aboveScreenPadding=function(){return[0,1/0]},this.justBelowScreenPadding=function(t){return[1/0,-1*(t+e.screenSize)]},this.justBelowAndAboveScreenPadding=function(){return[2560,1/0]},this.justBelowAndInScreenPadding=function(){return[5120,0]},this.belowScreenPadding=function(){return[1/0,0]},this.highResPadding=function(){return[5120,1/0]},this.lowResPadding=function(){return[10240,1/0]}},e.prototype.getSellectorDomId=function(e){var t=e.id,r=e.idx,o=String(t).replace(/[\W]+/g,"");return"pgi".concat(o,"_").concat(r)},e.prototype.buildScrollClassName=function(e,t,r){var o=String(e).replace(/[\W]+/g,"").slice(-8);return"".concat(this.pgScrollClassName,"_").concat(o,"_").concat(r,"-").concat(this.pgScrollSteps[t]+Number(r))},e.prototype.calcScrollClasses=function(e,t){var r=this;return"".concat(this.pgScrollClassName,"-").concat(t," ")+this.pgScrollSteps.map((function(o,i){return r.buildScrollClassName(e,i,Math.floor(t/o)*o)})).join(" ")},e.prototype.calcScrollCss=function(e){var t=this,r=e.id,o=e.items,i=e.options,n=e.container;if(pr.A.isVerbose()&&console.time("CSS Scroll"),!o||!o.length)return[];var a=i.scrollAnimation;if(!a||a===dr.A.scrollAnimations.NO_EFFECT)return[];this.screenSize=i.scrollDirection===dr.A.scrollDirection.HORIZONTAL?Math.min(Zr.A.outerWidth,Zr.A.screen.width,n.galleryWidth):Math.min(Zr.A.outerHeight,Zr.A.screen.height),i.scrollDirection===dr.A.scrollDirection.VERTICAL&&pr.A.isMobile()&&(this.screenSize+=50),this.calcScrollPaddings();var s=o.slice(-1)[0].offset,l=s.top,u=s.right,c=this.pgScrollSteps[0];this.minHeight=0-c,this.maxHeight=(Math.ceil(((i.scrollDirection===dr.A.scrollDirection.HORIZONTAL?u:l)+this.screenSize)/c)+1)*c;var d=o.map((function(e){return t.calcScrollCssForItem({id:r,item:e,options:i})}));return pr.A.isVerbose()&&console.timeEnd("CSS Scroll"),d},e.prototype.shouldCalcScrollCss=function(e){var t=e.type;return"video"!==t&&"text"!==t},e.prototype.createScrollSelectorsFunction=function(e){var t=this,r=e.id,o=e.item,i=e.options,n=i.scrollDirection===dr.A.scrollDirection.HORIZONTAL?o.offset.left-this.screenSize:o.offset.top-this.screenSize,a=i.scrollDirection===dr.A.scrollDirection.HORIZONTAL?o.offset.left+o.width:o.offset.top+o.height,s=this.pgScrollSteps[this.pgScrollSteps.length-1],l=this.getSellectorDomId(o);return function(e,o){var i=e[0],u=e[1];if(i===1/0&&u===1/0)return"#pro-gallery-".concat(r," #").concat(l," ").concat(o);for(var c,d,p=(c=n-i,d=s,Math.floor(Math.max(t.minHeight,c)/d)*d),h=function(e,r){return Math.ceil(Math.min(t.maxHeight,e)/r)*r}(a+u,s),g=[];p<h;){var m=t.pgScrollSteps.findIndex((function(e){return p%e==0&&p+e<=h}));if(-1===m){console.error("largestDividerIdx is -1. Couldn't find index in pgScrollSteps array.\nfrom =",p,"\nto =",h,"\npadding[0] =",e[0],"\npadding[1] =",e[1]);break}g.push(".".concat(t.buildScrollClassName(r,m,p)," ~ div #").concat(l," ").concat(o)),p+=t.pgScrollSteps[m]}return g.join(", ")}},e.prototype.calcScrollCssForItem=function(e){var t=e.id,r=e.item,o=e.options,i=r.idx,n="",a=this.createScrollSelectorsFunction({id:t,item:r,options:o});return n+=this.createScrollAnimationsIfNeeded({idx:i,item:r,options:o,createScrollSelectors:a}),this.scrollCss[i]=n||this.scrollCss[i],this.scrollCss[i]},e.prototype.createScrollAnimationsIfNeeded=function(e){var t=e.idx,r=e.options,o=e.createScrollSelectors,i=r.isRTL,n=r.scrollDirection,a=r.scrollAnimation;if(!a||a===dr.A.scrollAnimations.NO_EFFECT)return"";var s=100*(t%3+1),l=100*(t%3+1),u=this.allPagePadding(),c=this.aboveScreenPadding(),d="";if(a!==dr.A.scrollAnimations.MAIN_COLOR&&a!==dr.A.scrollAnimations.BLUR||(d+=o(u,' [data-hook="image-item-overlay"]')+"{filter: opacity(1); transition: filter 1.".concat(l,"s ease-in ").concat(s,"ms !important;}"),d+=o(c,' [data-hook="image-item-overlay"]')+"{filter: opacity(0) !important;}"),a===dr.A.scrollAnimations.FADE_IN&&(d+=o(u,"")+"{filter: opacity(0); transition: filter 1.".concat(l,"s ease-in !important;}"),d+=o(c,"")+"{filter: opacity(1) !important;}"),a===dr.A.scrollAnimations.GRAYSCALE&&(d+=o(u," .gallery-item-wrapper")+"{filter: grayscale(100%); transition: filter 1.".concat(200+l,"s ease-in !important;}"),d+=o(c," .gallery-item-wrapper")+"{filter: grayscale(0) !important;}"),a===dr.A.scrollAnimations.SLIDE_UP){var p=n===dr.A.scrollDirection.HORIZONTAL?"X":"Y",h=i?"-":"";d+=o(u,"")+"{transform: translate".concat(p,"(").concat(h,"100px); transition: transform 0.8s cubic-bezier(.13,.78,.53,.92) !important;}"),d+=o(c,"")+"{transform: translate".concat(p,"(0) !important;}")}if(a===dr.A.scrollAnimations.EXPAND&&(d+=o(u,"")+"{transform: scale(0.95); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ".concat(s,"ms !important;}"),d+=o(c,"")+"{transform: scale(1) !important;}"),a===dr.A.scrollAnimations.SHRINK&&(d+=o(u,"")+"{transform: scale(1.05); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ".concat(s,"ms !important;}"),d+=o(c,"")+"{transform: scale(1) !important;}"),a===dr.A.scrollAnimations.ZOOM_OUT&&(d+=o(u," .gallery-item-wrapper")+"{transform: scale(1.1); transition: transform 1.2s cubic-bezier(.13,.78,.53,.92) ".concat(s,"ms !important;}"),d+=o(c," .gallery-item-wrapper")+"{transform: scale(1) !important;}"),a===dr.A.scrollAnimations.ONE_COLOR){var g=r.oneColorAnimationColor&&r.oneColorAnimationColor.value?r.oneColorAnimationColor.value:"transparent";d+=o(u,"")+"{background-color: ".concat(g,";}"),d+=o(u," .gallery-item-wrapper")+"{filter: opacity(0); transition: filter 0.".concat(600+l,"s ease-in !important;}"),d+=o(c," .gallery-item-wrapper")+"{filter: opacity(1) !important;}"}return d},e}(),vi=new yi;function bi(e){return(0,f.__assign)({},(e.imageInfoType===dr.A.infoType.ATTACHED_BACKGROUND||dr.A.hasHoverPlacement(e.titlePlacement))&&(0,f.__assign)((0,f.__assign)({},Pi(e.itemBorderRadius,e.itemBorderWidth,e.itemBorderColor)),function(e){var t={};if(e.itemEnableShadow){var r=e.itemShadowBlur,o=e.itemShadowDirection,i=e.itemShadowSize,n=-1*(Number(o)-90)/360*2*Math.PI,a=Math.round(i*Math.cos(n)),s=Math.round(-1*i*Math.sin(n));t={boxShadow:"".concat(a,"px ").concat(s,"px ").concat(r,"px ").concat(pr.A.formatColor(e.itemShadowOpacityAndColor))}}return t}(e)))}function Si(e){return(0,f.__assign)({},!dr.A.hasHoverPlacement(e.titlePlacement)&&(e.imageInfoType===dr.A.infoType.NO_BACKGROUND||e.imageInfoType===dr.A.infoType.SEPARATED_BACKGROUND)&&(0,f.__assign)({},Pi(e.itemBorderRadius,e.itemBorderWidth,e.itemBorderColor)))}function Pi(e,t,r){return(0,f.__assign)((0,f.__assign)({overflow:"hidden"},e>0&&{borderRadius:e}),t>0&&{borderWidth:t+"px",borderColor:pr.A.formatColor(r),borderStyle:"solid"})}function wi(e,t,r,o){var i=(0,f.__assign)((0,f.__assign)({},dr.A.hasExternalHorizontalPlacement(e)&&{height:r,float:dr.A.isExternalRightPlacement(e)?"right":"left"}),dr.A.hasExternalVerticalPlacement(e)&&{height:o,boxSizing:"content-box"});return t.imageInfoType===dr.A.infoType.SEPARATED_BACKGROUND?(0,f.__assign)((0,f.__assign)((0,f.__assign)((0,f.__assign)({},i),Pi(t.textBoxBorderRadius,t.textBoxBorderWidth,t.textBoxBorderColor)),dr.A.hasExternalAbovePlacement(e)&&{marginBottom:t.textImageSpace}),dr.A.hasExternalBelowPlacement(e)&&{marginTop:t.textImageSpace}):i}function Ci(e,t,r,o){var i=(0,f.__assign)((0,f.__assign)({},(t.imageInfoType===dr.A.infoType.SEPARATED_BACKGROUND||t.imageInfoType===dr.A.infoType.ATTACHED_BACKGROUND)&&t.textBoxFillColor&&t.textBoxFillColor.value&&{backgroundColor:t.textBoxFillColor.value}),{overflow:"hidden",boxSizing:"border-box"}),n=dr.A.hasExternalVerticalPlacement(e),a=dr.A.hasExternalHorizontalPlacement(e);return(0,f.__assign)((0,f.__assign)((0,f.__assign)({},i),n&&function(e,t){return{width:"100%",height:t}}(0,r)),a&&function(e,t){return{height:"100%",width:t}}(0,o))}var Ei=function(e){var t=e.size,r=(0,f.__rest)(e,["size"]);return n().createElement("svg",(0,f.__assign)({viewBox:"0 0 60 60",fill:"currentColor",width:t||"60",height:t||"60"},r),n().createElement("path",{d:"M30,0c16.6,0,30,13.4,30,30S46.6,60,30,60C13.4,60,0,46.6,0,30S13.4,0,30,0z",fillRule:"evenodd",clipRule:"evenodd"}))};Ei.displayName="play_background",Ei.propTypes={size:G().string};const Ai=Ei;var Ii=function(e){var t=e.size,r=(0,f.__rest)(e,["size"]);return n().createElement("svg",(0,f.__assign)({viewBox:"0 0 60 60",fill:"currentColor",width:t||"60",height:t||"60"},r),n().createElement("path",{d:"M41.5,30l-17,10V20L41.5,30z"}))};Ii.displayName="play_triangle",Ii.propTypes={size:G().string};const _i=Ii;var Ti=function(e){var t=e.size,r=(0,f.__rest)(e,["size"]);return n().createElement("svg",(0,f.__assign)({viewBox:"0 0 60 60",fill:"currentColor",width:t||"60",height:t||"60"},r),n().createElement("rect",{x:"21",y:"19.5",width:"6",height:"22"}),n().createElement("rect",{x:"33",y:"19.5",width:"6",height:"22"}))};Ti.displayName="pause-bars",Ti.propTypes={size:G().string};const Oi=Ti;const xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,f.__extends)(t,e),t.prototype.render=function(){return n().createElement(li,(0,f.__assign)({overlay:this.props.videoPlayButton,extraClasses:" video-item gallery-item-video"},this.props))},t}(n().Component);var Ni=pr.A.isiOS(),Li=function(e){return((e.videoUrl||e.url).includes("youtube.com")||(e.videoUrl||e.url).includes("youtu.be"))&&Ni},Mi=function(e){var t=e.pointerEvents,r=e.buttonRole,o=e.buttonSvg;return n().createElement("div",{style:{pointerEvents:t?"initial":"none"}},n().createElement("i",{key:r,"data-hook":r,className:"gallery-item-video-".concat(r," ").concat(r," ")},o),n().createElement("i",{key:"play-bg","data-hook":"play-background",className:"gallery-item-video-play-background play-background "},n().createElement(Ai,null)))},Ri=function(e){function t(t){var r=e.call(this,t)||this;return r.mightPlayVideo=r.mightPlayVideo.bind(r),r.createVideoPlaceholder=r.createVideoPlaceholder.bind(r),r.state={videoItemLoaded:!1},r.isCompMounted=!1,r}return(0,f.__extends)(t,e),t.prototype.mightPlayVideo=function(){var e=this.props.options,t=e.videoPlay,r=e.itemClick,o=this.props.hasLink,i=Zr.A.matchMedia&&Zr.A.matchMedia("(prefers-reduced-motion: reduce)").matches;return!this.props.isVideoPlaceholder&&((!i||"auto"!==t)&&("hover"===t||"auto"===t||("nothing"===r||"link"===r&&!o)))},t.prototype.createVideoPlaceholder=function(e){var t=pr.A.pick(this.props,["alt","title","description","id","idx","options","createUrl","settings","actions","isCurrentHover","customComponents"]),r=this.props.isCurrentHover;return n().createElement(xi,(0,f.__assign)({},t,{key:"videoPlaceholder",imageDimensions:this.props.imageDimensions,isThumbnail:!!this.props.thumbnailHighlightId,id:this.props.idx,videoPlayButton:e&&n().createElement(Mi,{pointerEvents:!Li(this.props),buttonRole:"play-triangle",buttonSvg:n().createElement(_i,null)}),videoPauseButton:r&&n().createElement(Mi,{pointerEvents:Li(this.props),buttonRole:"pause-bars",buttonSvg:n().createElement(Oi,null)})}))},t.prototype.componentDidMount=function(){return(0,f.__awaiter)(this,void 0,void 0,(function(){var e;return(0,f.__generator)(this,(function(t){switch(t.label){case 0:if(this.isCompMounted=!0,(0,ei.Q)())return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Promise.all([r.e(8841),r.e(1215),r.e(9143),r.e(4367)]).then(r.bind(r,89685))];case 2:return e=t.sent(),this.VideoItem=e.default,this.isCompMounted&&this.setState({videoItemLoaded:!0}),[3,4];case 3:return t.sent(),console.error("Failed to fetch VideoItem"),[3,4];case 4:return[2]}}))}))},t.prototype.componentWillUnmount=function(){this.isCompMounted=!1},t.prototype.render=function(){var e=this.props.hover,t=!this.props.hidePlay&&this.props.options.showVideoPlayButton,r=this.props.isCurrentHover&&this.props.options.showVideoPlayButton,o=this.createVideoPlaceholder(t),i=this.VideoItem;if(!this.mightPlayVideo()||!this.state.videoItemLoaded||this.props.isPrerenderMode)return n().createElement("div",null,(0,fi.g4)(this.props.options)&&o,e);var a=Li(this.props);return n().createElement(i,(0,f.__assign)({},this.props,{loadVideo:this.props.loadVideo||a,videoPlaceholder:o,videoPlayButton:t&&n().createElement(Mi,{pointerEvents:!Li(this.props),buttonRole:"play-triangle",buttonSvg:n().createElement(_i,null)}),videoPauseButton:r&&n().createElement(Mi,{pointerEvents:Li(this.props),buttonRole:"pause-bars",buttonSvg:n().createElement(Oi,null)})}))},t}(n().Component);const ki=Ri;function Di(e){return(0,f.__assign)((0,f.__assign)({},e),{isMobile:pr.A.isMobile()})}var Bi=function(e,t){var r=e.idx,o=e.activeIndex,i=e.options;void 0===t&&(t=!1);var n=i.isRTL;switch(i.slideAnimation){case dr.A.slideAnimations.FADE:return"fade fade-".concat(o===r?"visible":"hidden");case dr.A.slideAnimations.DECK:return o<r?"deck-after ".concat(t?"override":""):o===r?"deck-current ".concat(t?"override":""):o>r?"deck-before".concat(n?"-rtl":""):{};default:return{}}},Hi=di(ci),Vi=di(hi),Fi=function(e){function t(t){var r=e.call(this,t)||this;return r.shouldUseDirectLink=function(){var e=r.props.directLink||{},t=e.url,o=e.target,i=!(!t||!o||"link"!==r.props.options.itemClick);return r.shouldShowHoverOnMobile()&&r.isClickOnCurrentHoveredItem()&&i?(r.props.actions.eventsListener(dr.A.events.HOVER_SET,-1),!0):!(!i||r.shouldShowHoverOnMobile())},r.isClickOnCurrentHoveredItem=function(){return r.state.isCurrentHover||r.props.options.hoveringBehaviour===dr.A.infoBehaviourOnHover.NO_CHANGE},r.props.actions.eventsListener(dr.A.events.ITEM_CREATED,r.props),r.init(),r.state={isCurrentHover:!1,itemWasHovered:!1},r.activeElement="",r}return(0,f.__extends)(t,e),t.prototype.init=function(){this.onItemClick=this.onItemClick.bind(this),this.onItemWrapperClick=this.onItemWrapperClick.bind(this),this.onItemInfoClick=this.onItemInfoClick.bind(this),this.onContainerKeyUp=this.onContainerKeyUp.bind(this),this.onAnchorKeyDown=this.onAnchorKeyDown.bind(this),this.handleItemMouseDown=this.handleItemMouseDown.bind(this),this.handleItemMouseUp=this.handleItemMouseUp.bind(this),this.setItemLoaded=this.setItemLoaded.bind(this),this.isHighlight=this.isHighlight.bind(this),this.getItemHover=this.getItemHover.bind(this),this.getImageItem=this.getImageItem.bind(this),this.getVideoItem=this.getVideoItem.bind(this),this.getTextItem=this.getTextItem.bind(this),this.getItemInner=this.getItemInner.bind(this),this.getItemContainerStyles=this.getItemContainerStyles.bind(this),this.getItemWrapperStyles=this.getItemWrapperStyles.bind(this),this.getItemAriaLabel=this.getItemAriaLabel.bind(this),this.getItemContainerClass=this.getItemContainerClass.bind(this),this.getItemWrapperClass=this.getItemWrapperClass.bind(this),this.getItemContainerTabIndex=this.getItemContainerTabIndex.bind(this),this.isIconTag=this.isIconTag.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.checkIfCurrentHoverChanged=this.checkIfCurrentHoverChanged.bind(this),this.shouldHoverWithoutOverlayAndClickOnMobile=this.shouldHoverWithoutOverlayAndClickOnMobile.bind(this)},t.prototype.setItemLoaded=function(){this.props.actions.eventsListener(dr.A.events.ITEM_LOADED,this.props),this.setState({loaded:!0})},t.prototype.isIconTag=function(e){return["button","i","a","svg","path"].indexOf(e.toLowerCase())>=0},t.prototype.onMouseEnter=function(){pr.A.isMobile()||this.props.actions.eventsListener(dr.A.events.HOVER_SET,this.props.idx)},t.prototype.onMouseLeave=function(){pr.A.isMobile()||(this.props.actions.eventsListener(dr.A.events.HOVER_SET,-1),this.props.actions.eventsListener(dr.A.events.HOVER_UNSET,this.props.idx))},t.prototype.onFocus=function(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&this.props.actions.eventsListener(dr.A.events.HOVER_SET,this.props.idx),this.props.actions.eventsListener(dr.A.events.ITEM_FOCUSED,this.props)},t.prototype.onBlur=function(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&(this.props.actions.eventsListener(dr.A.events.HOVER_SET,-1),this.props.actions.eventsListener(dr.A.events.HOVER_UNSET,this.props.idx)),this.props.actions.eventsListener(dr.A.events.ITEM_LOST_FOCUS,this.props)},t.prototype.onContainerKeyUp=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),this.onItemClick(e,"item-container",!1),this.shouldUseDirectLink()&&this.itemAnchor.click(),!1;case 27:return this.state.isCurrentHover?this.props.actions.eventsListener(dr.A.events.HOVER_SET,-1):(e.target.blur(),this.props.actions.eventsListener(dr.A.events.ITEM_LOST_FOCUS,this.props)),!1;default:return!0}},t.prototype.onAnchorKeyDown=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),!1;default:return!0}},t.prototype.handleGalleryItemAction=function(e){this.props.actions.eventsListener(dr.A.events.ITEM_ACTION_TRIGGERED,this.props,e)},t.prototype.onItemWrapperClick=function(e){this.onItemClick(e,"item-media")},t.prototype.onItemInfoClick=function(e){this.onItemClick(e,"item-info",!1),e.stopPropagation()},t.prototype.onItemClick=function(e,t,r){void 0===r&&(r=!0),pr.A.isFunction(pr.A.get(Zr.A,"galleryWixCodeApi.onItemClicked"))&&Zr.A.galleryWixCodeApi.onItemClicked(this.props),this.props.actions.eventsListener(dr.A.events.ITEM_CLICKED,(0,f.__assign)((0,f.__assign)({},this.props),{clickTarget:t}),e),"video"!==this.props.type||this.props.idx!==this.props.playingVideoIdx?this.shouldUseDirectLink()||(r&&e.preventDefault(),this.shouldShowHoverOnMobile()||this.shouldShowSecondMediaOnMobile()?setTimeout(this.handleHoverClickOnMobile(e),0):this.shouldHoverWithoutOverlayAndClickOnMobile()?this.props.actions.eventsListener(dr.A.events.HOVER_SET,this.props.idx):this.handleGalleryItemAction(e)):this.props.actions.eventsListener(dr.A.events.VIDEO_PAUSED,(0,f.__assign)((0,f.__assign)({},this.props),{clickTarget:t}),e)},t.prototype.handleHoverClickOnMobile=function(e){this.isClickOnCurrentHoveredItem()?(this.handleGalleryItemAction(e),this.props.actions.eventsListener(dr.A.events.HOVER_SET,-1)):this.props.actions.eventsListener(dr.A.events.HOVER_SET,this.props.idx)},t.prototype.handleItemMouseDown=function(){return!0},t.prototype.handleItemMouseUp=function(){return pr.A.isMobile()&&this.longPressTimer&&clearTimeout(this.longPressTimer),!0},t.prototype.shouldShowHoverOnMobile=function(){if(pr.A.isMobile()){var e=this.props.options,t=e.titlePlacement,r=e.hoveringBehaviour,o=e.itemClick,i=e.alwaysShowHover,n=e.previewHover,a=e.allowDescription,s=e.allowTitle,l=e.isStoreGallery,u=xo.supports.mobileSettings;if(r===dr.A.infoBehaviourOnHover.NEVER_SHOW)return!1;if("nothing"===o&&"video"!==this.props.type)return!0;if(this.props.customComponents.customHoverRenderer&&dr.A.hasHoverPlacement(t)&&r!==dr.A.infoBehaviourOnHover.NEVER_SHOW&&u&&(a||s||l))return!0;if(i)return!0;if((0,ei.Q)()&&n)return!0}return!1},t.prototype.shouldShowSecondMediaOnMobile=function(){return!!pr.A.isMobile()&&("nothing"===this.props.options.itemClick&&"video"!==this.props.type&&this.props.options.behaviourParams.item.secondaryMedia.trigger===dr.A.secondaryMediaTrigger.HOVER)},t.prototype.shouldHoverWithoutOverlayAndClickOnMobile=function(){return pr.A.isMobile()&&this.props.options.videoPlay===dr.A.videoPlay.HOVER&&this.props.options.itemClick===dr.A.itemClick.NOTHING},t.prototype.isHighlight=function(){return this.props.thumbnailHighlightId&&this.props.thumbnailHighlightId===this.props.id},t.prototype.shouldHover=function(){var e=this.props.options,t=e.alwaysShowHover,r=e.previewHover,o=e.hoveringBehaviour,i=e.overlayAnimation,n=dr.A.infoBehaviourOnHover,a=n.NEVER_SHOW,s=n.APPEARS,l=dr.A.overlayAnimations.NO_EFFECT;return o!==a&&(!0===t||(!(!(0,ei.Q)()||!r)||!(o===s&&i===l&&!this.state.itemWasHovered)&&(!pr.A.isMobile()||this.shouldShowHoverOnMobile())))},t.prototype.getItemHover=function(e){var t=this,r=this.props,o=r.customComponents,i=(0,f.__rest)(r,["customComponents"]);return this.shouldHover()&&n().createElement(mi,(0,f.__assign)({},i,{forceShowHover:this.simulateOverlayHover(),isCurrentHover:this.simulateHover(),imageDimensions:e,itemWasHovered:this.state.itemWasHovered,key:"hover",actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp},renderCustomInfo:o.customHoverRenderer?function(){return o.customHoverRenderer(Di(t.props))}:null}))},t.prototype.getImageItem=function(e){var t=pr.A.pick(this.props,["gotFirstScrollEvent","alt","title","description","id","idx","options","createUrl","createMagnifiedUrl","settings","isPrerenderMode","isTransparent","style","hasSecondaryMedia","secondaryMediaItem","customComponents"]);return n().createElement(Hi,(0,f.__assign)({},t,{key:"imageItem",imageDimensions:e,isThumbnail:!!this.props.thumbnailHighlightId,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))},t.prototype.getVideoItem=function(e,t){return n().createElement(ki,(0,f.__assign)({},this.props,{shouldPlay:this.props.idx===this.props.playingVideoIdx,key:"video"+this.props.idx,hover:t,imageDimensions:e,hasLink:this.itemHasLink(),isCurrentHover:this.simulateHover(),actions:(0,f.__assign)((0,f.__assign)({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp})}))},t.prototype.getTextItem=function(e){var t=pr.A.pick(this.props,["id","options","style","html","cropRatio","isPrerenderMode","hasSecondaryMedia","secondaryMediaItem"]);return n().createElement(Vi,(0,f.__assign)({},t,{key:"textItem",imageDimensions:e,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))},t.prototype.getItemInner=function(){var e,t=this.props,r=t.type,o=t.style,i=t.offset,a={width:o.innerWidth,height:o.innerHeight,marginTop:i.innerTop,marginLeft:i.innerLeft},s=null;switch(this.shouldHover()&&(s=this.getItemHover(a)),r){case"dummy":e=n().createElement("div",null);break;case"video":e=this.getVideoItem(a,s);break;case"text":e=[this.getTextItem(a),s];break;default:e=this.props.isVideoPlaceholder?this.getVideoItem(a,s):[this.getImageItem(a),s]}return e},t.prototype.getRightInfoElementIfNeeded=function(){return dr.A.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(dr.A.placements.SHOW_ON_THE_RIGHT,"gallery-item-right-info"):null},t.prototype.getLeftInfoElementIfNeeded=function(){return dr.A.hasExternalLeftPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(dr.A.placements.SHOW_ON_THE_LEFT,"gallery-item-left-info"):null},t.prototype.getBottomInfoElementIfNeeded=function(){return dr.A.hasExternalBelowPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(dr.A.placements.SHOW_BELOW,"gallery-item-bottom-info"):null},t.prototype.getTopInfoElementIfNeeded=function(){return dr.A.hasExternalAbovePlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(dr.A.placements.SHOW_ABOVE,"gallery-item-top-info"):null},t.prototype.getExternalInfoElement=function(e,t){var r=this.props,o=r.options,i=r.customComponents,a=r.style;if(!i.customInfoRenderer)return null;var s=o.textBoxHeight+(this.hasRequiredMediaUrl?0:a.height),l=a.infoWidth+(this.hasRequiredMediaUrl?0:a.width),u=i.customInfoRenderer(Di(this.props),e),c=dr.A.isLayout("SLIDESHOW")(this.props.options);return n().createElement("div",{className:"gallery-item-common-info-outer "+Bi(this.props,c),style:(0,f.__assign)({},wi(e,o,a.height,o.textBoxHeight))},n().createElement("div",{style:Ci(e,o,s,l),className:"gallery-item-common-info "+t,onClick:this.onItemInfoClick},u))},t.prototype.simulateHover=function(){return this.state.isCurrentHover||!0===this.props.options.alwaysShowHover||(0,ei.Q)()&&this.props.options.previewHover},t.prototype.simulateOverlayHover=function(){return this.simulateHover()||this.props.options.hoveringBehaviour===dr.A.infoBehaviourOnHover.NO_CHANGE},t.prototype.itemHasLink=function(){var e=this.props,t=e.linkData,r=e.linkUrl;return!(void 0===t.type&&(void 0===r||""===r))},t.prototype.getItemContainerStyles=function(){var e,t=this.props,r=t.idx,o=t.activeIndex,i=t.offset,n=t.style,a=t.options,s=t.settings,l=void 0===s?{}:s,u=a.scrollDirection,c=a.imageMargin,d=a.isRTL,p=a.slideAnimation,h=bi(a),g={overflowY:"hidden",position:"absolute",bottom:"auto",margin:u===dr.A.scrollDirection.HORIZONTAL?c/2+"px":0},m=l.avoidInlineStyles,y=this.props.isPrerenderMode&&!this.props.settings.disableSSROpacity,v=m?{}:{opacity:y?0:1,display:y?"none":"block",transition:"opacity .2s ease"},b=m?{}:{top:i.top,left:d?"auto":i.left,right:d?i.left:"auto",width:n.width+n.infoWidth,height:n.height+n.infoHeight};switch(p){case dr.A.slideAnimations.FADE:e={left:d?"auto":0,right:d?0:"auto",pointerEvents:o===r?"auto":"none",zIndex:o===r?1:0};break;case dr.A.slideAnimations.DECK:e={left:d?"auto":0,right:d?0:"auto",pointerEvents:o===r?"auto":"none",zIndex:Math.sign(o-r)};break;default:e={}}var S=this.state.loaded&&((0,ei.Q)()||(0,ei.IL)())?{transition:"all .4s ease",transitionProperty:"top, left, width, height, opacity"}:{transition:"none"};return(0,f.__assign)((0,f.__assign)((0,f.__assign)((0,f.__assign)((0,f.__assign)((0,f.__assign)({},g),b),h),S),v),e)},t.prototype.getItemWrapperStyles=function(){var e=this.props,t=e.createUrl,r=e.options,o=e.style,i=e.type,n=o.height,a=o.width,s={};return s.backgroundColor="text"===i?"fit"!==r.cubeType?"transparent":"inherit":("fit"!==r.cubeType?o.bgColor:"inherit")||"transparent",r.imageHoverAnimation===dr.A.imageHoverAnimations.MAIN_COLOR&&(s.background="url(".concat(t(dr.A.urlSizes.PIXEL,dr.A.urlTypes.HIGH_RES),")")),s.height=n+"px",s.width=a+"px",s.margin=-r.itemBorderWidth+"px",s},t.prototype.getItemAriaLabel=function(){var e=this.props,t=e.type,r=e.alt,o=e.htmlContent,i=e.options;return{dummy:"",text:o,video:r||"",image:r||""}[t]+(i.isStoreGallery?", Buy Now":"")},t.prototype.isItemClickable=function(e){var t=!this.itemHasLink();return!(e.itemClick===dr.A.itemClick.NOTHING||e.itemClick===dr.A.itemClick.LINK&&t)},t.prototype.getItemContainerClass=function(){var e=this.props.options,t=e.imagePlacementAnimation,r=e.overlayAnimation,o=e.imageHoverAnimation,i=this.simulateHover(),n={"gallery-item-container":!0,"item-container-regular":!i,"item-container-hover":i,"has-custom-focus":!0,visible:!0,"pro-gallery-highlight":this.isHighlight(),clickable:this.isItemClickable(e),"simulate-hover":this.simulateHover(),"hide-hover":!this.simulateHover()&&pr.A.isMobile(),"invert-hover":e.hoveringBehaviour===dr.A.infoBehaviourOnHover.DISAPPEARS,"animation-slide":t===dr.A.imagePlacementAnimations.SLIDE,"hover-animation-fade-in":r===dr.A.overlayAnimations.FADE_IN,"hover-animation-expand":r===dr.A.overlayAnimations.EXPAND,"hover-animation-slide-up":r===dr.A.overlayAnimations.SLIDE_UP,"hover-animation-slide-right":r===dr.A.overlayAnimations.SLIDE_RIGHT,"hover-animation-slide-down":r===dr.A.overlayAnimations.SLIDE_DOWN,"hover-animation-slide-left":r===dr.A.overlayAnimations.SLIDE_LEFT,"main-color-on-hover":o===dr.A.imageHoverAnimations.MAIN_COLOR,"zoom-in-on-hover":o===dr.A.imageHoverAnimations.ZOOM_IN,"blur-on-hover":o===dr.A.imageHoverAnimations.BLUR,"grayscale-on-hover":o===dr.A.imageHoverAnimations.GRAYSCALE,"shrink-on-hover":o===dr.A.imageHoverAnimations.SHRINK,"invert-on-hover":o===dr.A.imageHoverAnimations.INVERT,"color-in-on-hover":o===dr.A.imageHoverAnimations.COLOR_IN,"darkened-on-hover":o===dr.A.imageHoverAnimations.DARKENED,"pro-gallery-mobile-indicator":pr.A.isMobile()},a=Object.entries(n).map((function(e){var t=e[0];return!!e[1]&&t})).filter(Boolean).join(" ");return a},t.prototype.getItemWrapperClass=function(){var e=this.props,t=e.options,r=e.type,o=["gallery-item-wrapper","visible"];return t.cubeImages&&o.push("cube-type-"+t.cubeType),"text"===r&&o.push("gallery-item-wrapper-text"),o.push(Bi(this.props)),o.join(" ")},t.prototype.getItemContainerTabIndex=function(){return this.props.shouldDisableItemFocus?-1:this.isHighlight()?pr.A.getTabIndex("currentThumbnail"):this.props.activeIndex===this.props.idx?pr.A.getTabIndex("currentGalleryItem"):-1},t.prototype.componentDidMount=function(){if(pr.A.isMobile()&&"function"==typeof n().initializeTouchEvents)try{n().initializeTouchEvents(!0)}catch(e){console.error(e)}Zr.A.addEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},t.prototype.componentWillUnmount=function(){clearTimeout(this.itemLoadedTimeout),Zr.A.removeEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},t.prototype.componentDidUpdate=function(e){(0,fi.Xe)({prevProps:e,currentProps:this.props,itemContainer:this.itemContainer})},t.prototype.checkIfCurrentHoverChanged=function(e){e.galleryId===this.props.galleryId&&(this.state.isCurrentHover||e.currentHoverIdx!==this.props.idx?this.state.isCurrentHover&&e.currentHoverIdx!==this.props.idx&&this.setState({isCurrentHover:!1}):this.setState({isCurrentHover:!0,itemWasHovered:!0}))},t.prototype.onContextMenu=function(e){pr.A.isDev()||this.props.options.allowContextMenu||e.preventDefault(e)},t.prototype.getItemAriaRole=function(){switch(this.props.options.itemClick){case"expand":case"fullscreen":return"button";case"link":return"link";default:return""}},t.prototype.composeItem=function(){var e,t,r=this,o=this.props,i=o.photoId,a=o.id,s=o.hash,l=o.idx,u=o.options,c=o.type,d=o.url;this.hasRequiredMediaUrl=d||"text"===c;var p=u.titlePlacement!==dr.A.placements.SHOW_ON_HOVER&&!this.hasRequiredMediaUrl,h=this.getItemAriaRole(),g=(null===(e=this.props.elementsOverride)||void 0===e?void 0:e.item)||"div",m=n().createElement(g,(0,f.__assign)({className:this.getItemContainerClass(),onContextMenu:function(e){return r.onContextMenu(e)},id:vi.getSellectorDomId(this.props),ref:function(e){return r.itemContainer=e},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur,tabIndex:this.getItemContainerTabIndex(),"aria-label":this.getItemAriaLabel(),"data-hash":s,"data-id":i,"data-idx":l},h&&{role:h},{"data-hook":"item-container",key:"item-container-"+a,style:this.getItemContainerStyles(),onKeyUp:this.onContainerKeyUp,onKeyDown:this.handleKeyDown,onClick:this.onItemWrapperClick}),this.getTopInfoElementIfNeeded(),this.getLeftInfoElementIfNeeded(),n().createElement("div",{style:(0,f.__assign)((0,f.__assign)((0,f.__assign)({},Si(this.props.options)),dr.A.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)&&{float:"left"}),dr.A.hasExternalLeftPlacement(this.props.options.titlePlacement,this.props.idx)&&{float:"right"})},!p&&n().createElement("div",{"data-hook":"item-wrapper",className:this.getItemWrapperClass(),key:"item-wrapper-"+a,id:"item-wrapper-"+a,style:this.getItemWrapperStyles()},this.getItemInner())),this.getRightInfoElementIfNeeded(),this.getBottomInfoElementIfNeeded()),y=function(e){var t=e.directLink,r=e.options,o=e.directShareLink,i=e.noFollowForSEO,n=(0,ei.Xf)();if(r.itemClick===dr.A.itemClick.LINK){var a=t||{},s=a.url,l=a.target,u=n&&i?{rel:"nofollow"}:{};return s&&l?(0,f.__assign)({href:s,target:l},u):{}}if(r.itemClick===dr.A.itemClick.FULLSCREEN||r.itemClick===dr.A.itemClick.EXPAND){var c=!!(s=o);return u=r.shouldIndexDirectShareLinkInSEO?{}:{rel:"nofollow"},c?(0,f.__assign)({href:s,"data-cancel-link":!0},u):{}}}(this.props),v={ref:function(e){return r.itemAnchor=e},"data-id":i,className:"item-link-wrapper","data-idx":l,"data-hook":"item-link-wrapper",onFocus:function(){(0,fi.tF)({itemAnchor:r.itemAnchor,enableExperimentalFeatures:r.props.enableExperimentalFeatures,itemContainer:r.itemContainer})},tabIndex:-1,onKeyDown:function(e){r.onAnchorKeyDown(e)}};return(null===(t=null==y?void 0:y.href)||void 0===t?void 0:t.length)>0?n().createElement("a",(0,f.__assign)({key:"item-container-link-"+a},v,y),m):n().createElement("div",(0,f.__assign)({key:"item-container-div-"+a},v),m)},t.prototype.render=function(){return this.composeItem()},t}(n().Component);const Gi=Fi;var zi=function(e){function t(t){var r=e.call(this,t)||this;return r.handleKeys=r.handleKeys.bind(r),r.showMoreItems=r.showMoreItems.bind(r),r.onLoadMoreButtonKeyDown=r.onLoadMoreButtonKeyDown.bind(r),r.onLoadMoreButtonKeyUp=r.onLoadMoreButtonKeyUp.bind(r),r.createGalleryConfig=r.createGalleryConfig.bind(r),r.screenLogs=r.screenLogs.bind(r),r.createGallery=r.createGallery.bind(r),r.id=Date.now()+"|"+Math.floor(1e4*Math.random()),r.state={activeIndex:0},r}return(0,f.__extends)(t,e),t.prototype.handleKeys=function(e){var t=Zr.A.document.activeElement.getAttribute("data-idx");if(t){var r=this.props.actions.findNeighborItem||this.props.galleryStructure.findNeighborItem||function(){},o=Number(t),i=-1;switch(e.keyCode||e.charCode){case 38:i=r(o,"up");break;case 37:i=r(o,this.props.options.isRTL?"right":"left");break;case 40:if(i=r(o,"down"),this.props.totalItemsCount-1===i&&i===this.state.activeIndex)return e.stopPropagation(),pr.A.focusGalleryElement(this.props.outOfViewComponent),!1;break;case 39:i=r(o,this.props.options.isRTL?"left":"right");break;case 27:return!1}if(i>this.lastVisibleItemIdx()&&(i=o),i>=0)return e.preventDefault(),e.stopPropagation(),pr.A.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:i}),!1}return!0},t.prototype.lastVisibleItemIdxInHeight=function(e){for(var t=this.props.galleryStructure.items.length-1;t>=0;t--){if(this.props.galleryStructure.items[t].offset.top<e)return t}return this.items.length-1},t.prototype.lastVisibleItemIdx=function(){var e=this.props.displayShowMore?this.props.container.height:this.props.galleryStructure.height;return this.lastVisibleItemIdxInHeight(e-100)},t.prototype.showMoreItems=function(){var e,t=this;if(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)try{var r=this.lastVisibleItemIdx();pr.A.setStateAndLog(this,"Focus on Last Gallery Item",{activeIndex:r+1},(function(){t.props.actions.toggleLoadMoreItems()}))}catch(e){console.warn("showMoreItems: Cannot find item to focus",e)}else this.props.actions.toggleLoadMoreItems()},t.prototype.onLoadMoreButtonKeyDown=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),this.props.actions.toggleLoadMoreItems(),!1}},t.prototype.onLoadMoreButtonKeyUp=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),!1}},t.prototype.createGallery=function(e){var t,r,o=this,i=this.props,a=i.options,s=i.settings,l=i.container,u=i.galleryStructure,c=i.getVisibleItems,d=i.virtualizationSettings,p=i.scrollTop,h=this.createGalleryConfig(),g=n().createElement(oi,(0,f.__assign)({},this.props.debug));r=e?l.galleryHeight-138:u.height+"px";var m=this.props.isPrerenderMode?"auto":this.props.container.galleryWidth-a.imageMargin,y=function(e){var t=e.items,r=e.options,o=e.virtualizationSettings,i=e.galleryWidth,n=e.galleryHeight,a=e.scrollPosition,s=o||{},l=s.enabled,u=void 0!==l&&l,c=s.forwardItemScrollMargin,d=void 0===c?10:c,p=s.backwardItemScrollMargin,h=void 0===p?10:p;if(!u)return t.map((function(e){return{item:e,shouldRender:!0}}));var g=r.scrollDirection===dr.A.scrollDirection.HORIZONTAL,m=g?i:n,f=g?"width":"height";function y(e){var t=e.group,r=t["height"===f?"top":"left"],o=r+t[f];return r>a-m*h&&o<a+m*d}return t.map((function(e){return{item:e,shouldRender:y(e)}}))}({items:c(u.galleryItems,l,this.props.isPrerenderMode),options:a,virtualizationSettings:d,galleryHeight:Math.min(u.height,(null===(t=l.screen)||void 0===t?void 0:t.height)||u.height),scrollPosition:p||0}),v=y.map((function(e,t){var r=e.item,i=e.shouldRender,a=r.renderProps((0,f.__assign)((0,f.__assign)({},h),{visible:r.isVisible,key:"itemView-".concat(r.id,"-").concat(t),shouldDisableItemFocus:o.props.shouldDisableItemFocus}));return n().createElement(Gi,(0,f.__assign)((0,f.__assign)({},a),{type:i?a.type:"dummy"}))}));return n().createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles "+(a.scrollDirection===dr.A.scrollDirection.HORIZONTAL?" one-row slider hide-scrollbars ":"")+((null==s?void 0:s.isAccessible)?" accessible ":"")+(a.isRTL?" rtl ":" ltr "),style:{height:r,overflowX:"hidden"},onKeyDown:this.handleKeys},n().createElement("div",{id:"pro-gallery-margin-container-".concat(this.props.id),className:"pro-gallery-margin-container",style:{margin:a.layoutParams.gallerySpacing+"px",height:r,width:m,overflow:"visible",position:"relative"}},g,v))},t.prototype.createGalleryConfig=function(){return{scrollingElement:this.props.scrollingElement,scroll:this.props.scroll,container:this.props.container,options:this.props.options,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener}}},t.prototype.screenLogs=function(){return pr.A.shouldDebug("screenLogs")?n().createElement("div",{className:"screen-logs"},"URL width: ",pr.A.parseGetParam("width"),", Container:"," ",JSON.stringify(this.props.container.galleryWidth),", window.document.body.clientWidth ",document.body.clientWidth,", window.innerWidth ",Zr.A.innerWidth,", window.screen.width:"," ",Zr.A.screen.width):""},t.prototype.createShowMoreButton=function(){if("function"==typeof this.props.customComponents.customLoadMoreRenderer)return n().createElement("div",{onClick:this.showMoreItems},this.props.customComponents.customLoadMoreRenderer(this.props));var e=this.props.options,t=!1;if(this.props.displayShowMore&&this.props.galleryStructure.height>this.props.container.height){var r=e.loadMoreButtonText||"Load More";t=n().createElement("div",{className:"show-more-container"+(pr.A.isMobile()?" pro-gallery-mobile-indicator":"")},n().createElement("button",{tabIndex:pr.A.getTabIndex("loadMoreButton"),id:"show-more-"+this.props.id,className:"show-more",onClick:this.showMoreItems,onMouseDown:function(e){return e.preventDefault()},"data-hook":"show-more","aria-label":r,onKeyDown:this.onLoadMoreButtonKeyDown,onKeyUp:this.onLoadMoreButtonKeyUp},r))}return t},t.prototype.render=function(){pr.A.isVerbose()&&(console.count("galleryView render"),console.time("Rendering Gallery took "),console.log("[DEBUG_RENDER] GalleryView options",this.props.options),console.log("[DEBUG_RENDER] GalleryView props have changed",pr.A.printableObjectsDiff(this.lastProps||{},this.props)),this.lastProps=(0,f.__assign)({},this.props),console.log("[DEBUG_RENDER] GalleryView state changed",pr.A.printableObjectsDiff(this.lastState||{},this.state)),this.lastState=(0,f.__assign)({},this.state),this.renderCount=(this.renderCount||0)+1);var e=this.createShowMoreButton(),t=this.createGallery(e);pr.A.isVerbose()&&console.timeEnd("Rendering Gallery took ");var r=this.screenLogs();return n().createElement("div",(0,f.__assign)({className:"pro-gallery-parent-container",key:"pro-gallery-".concat(this.id)},pr.A.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel})),r,t,e)},t}(n().Component);const Wi=zi;var Ui=function(e){function t(t){var r=e.call(this,t)||this;return r.displayName="GroupView",r.dom=[],r.state={},r}return(0,f.__extends)(t,e),t.prototype.createDom=function(e,t){var r=this;return this.props.items.map((function(o){var i=o.renderProps((0,f.__assign)((0,f.__assign)({},r.props.galleryConfig),{visible:e}));return n().createElement(Gi,(0,f.__assign)((0,f.__assign)({},i),{type:null!=t&&t?"dummy":i.type}))}))},t.prototype.shouldRender=function(){var e=this.props.items;return!!(e&&e.length&&e[0])},t.prototype.isVisible=function(){var e=this.props,t=e.items,r=e.galleryConfig;if(this.props.allowLoop){var o=t[t.length-1].idx,i=r.activeIndex,n=r.totalItemsCount,a=i-o,s=Math.floor(n/2);return Math.abs(a)<=s}return!0},t.prototype.render=function(){var e=this.props.galleryConfig.options.isRTL;return this.shouldRender()?n().createElement("div",{key:"group_".concat(this.props.idx,"_").concat(this.props.items[0].id),"data-hook":"group-view",style:{"--group-top":this.props.top+"px","--group-left":e?"auto":this.props.left+"px","--group-width":this.props.width+"px","--group-right":e?this.props.left+"px":"auto"},"aria-hidden":this.props.ariaHidden},this.createDom(this.isVisible(),this.props.shouldRenderEmpty)):null},t}(n().Component);const ji=Ui;var Ki=function(e){var t=e.size,r=(0,f.__rest)(e,["size"]);return n().createElement("svg",(0,f.__assign)({viewBox:"0 0 11 14",fill:"currentColor",width:t||"11",height:t||"14"},r),n().createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},n().createElement("g",{id:"Pause",transform:"translate(-490 -763)",fill:"currentColor"},n().createElement("g",{id:"Group-2",transform:"translate(470 284)"},n().createElement("g",{id:"Group",transform:"translate(20 479)"},n().createElement("path",{id:"play",d:"M0.0788076641 0L0 14 10.5 6.81856071z"}))))))};Ki.displayName="play",Ki.propTypes={size:G().string};const Zi=Ki;function $i(e,t){var r=function(e){return pr.A.uniqueBy(e,"id").filter((function(e){return void 0!==e.idx})).sort((function(e,t){return e.idx-t.idx}))}(t);return r.map((function(t){return{item:e.find((function(e){return e.id===t.id})),thumbnailItem:t,idx:t.idx}}))}function qi(e){var t=e.options,r=e.activeIndex,o=e.items,i=e.thumbnailAlignment,n=e.galleryStructure,a=e.containerWidth,s=e.containerHeight,l=e.activeIndexOffsetMemory,u=void 0===l?r:l,c=e.prevActiveIndex,d=void 0===c?r:c,p=$i(o,n.galleryItems);u=function(e){var t=e.activeIndex,r=e.prevActiveIndex,o=e.activeIndexOffsetMemory,i=e.items.length;if(t===r)return o;t=pr.A.inRange(t,i);var n=Math.abs(r-t),a=Math.abs(r-i-t),s=Math.abs(r+i-t);return s<a&&s<n?o-i:a<s&&a<n?o+i:o}({activeIndex:r,activeIndexOffsetMemory:u,items:p,prevActiveIndex:d});var h=u+r,g=t.thumbnailSize,m=t.isRTL,y=t.thumbnailSpacings;pr.A.isVerbose()&&console.log("creating thumbnails for idx",r);var v=g+2*y,b=i===dr.A.thumbnailsAlignment.BOTTOM||i===dr.A.thumbnailsAlignment.TOP,S=function(e){var t=e.horizontalThumbnails,r=e.containerWidth,o=e.containerHeight,i=e.thumbnailSizeWithSpacing;return t?{width:r,height:i}:{width:i,height:o}}({horizontalThumbnails:b,containerWidth:a,containerHeight:s,thumbnailSizeWithSpacing:v}),P=S.width,w=S.height,C=function(e){var t=e.width,r=e.height,o=e.horizontalThumbnails;return o?Math.ceil(t/r):Math.ceil(r/t)}({width:P,height:w,horizontalThumbnails:b}),E=C%2==1?C:C+1,A=(E-1)/2,I=h%p.length-A,_=I+E,T=pr.A.sliceArrayIfAvailable(p,I,_),O=function(e){var t,r=e.horizontalThumbnails,o=e.width,i=e.height,n=e.activeIndex,a=e.thumbnailSizeWithSpacing,s=e.itemsCount,l={overflow:"visible",width:o,height:i},u=r?o:i,c=r?"left":"top",d=a*(n%s),p=u/2-a/2;return(0,f.__assign)((0,f.__assign)({},l),(t={},t[c]=d<p?0:p-d,t))}({horizontalThumbnails:b,width:P,height:w,thumbnailSizeWithSpacing:v,activeIndex:h,itemsCount:p.length}),x=m?(0,f.__assign)((0,f.__assign)({},O),{left:void 0,top:void 0,right:O.left,bottom:O.top}):O,N=function(e){var t=e.thumbnailAlignment,r=e.thumbnailSpacings,o=t===dr.A.thumbnailsAlignment.BOTTOM||t===dr.A.thumbnailsAlignment.TOP;if(o){var i=t===dr.A.thumbnailsAlignment.TOP;return{marginTop:i?0:r,marginBottom:i?r:0}}var n=t===dr.A.thumbnailsAlignment.LEFT;return{marginLeft:n?0:r,marginRight:n?r:0}}({thumbnailAlignment:i,thumbnailSpacings:y});return{items:T.map((function(e,t){var r=e.item,o=e.thumbnailItem,n=e.idx,a=t+T[0].idx;return{thumbnailItem:o,item:r,location:Yi({thumbnailAlignment:i,offset:a,isRTL:m,thumbnailSizeWithSpacing:v}),idx:n}})),thumbnailsMargins:N,horizontalThumbnails:b,thumbnailsStyle:x,activeIndexOffsetMemory:u}}function Yi(e){var t,r,o=e.thumbnailAlignment,i=e.thumbnailSizeWithSpacing,n=e.offset,a=e.isRTL,s=n*i;return o===dr.A.thumbnailsAlignment.BOTTOM||o===dr.A.thumbnailsAlignment.TOP?((t={})[a?"right":"left"]=s,t):((r={})[a?"bottom":"top"]=s,r)}var Xi=function(e){function t(t){var r=e.call(this,t)||this;return r.scrollToThumbnail=r.scrollToThumbnail.bind(r),r}return(0,f.__extends)(t,e),t.prototype.scrollToThumbnail=function(e){this.props.navigationToIdxCB(e)},t.prototype.createThumbnails=function(e){var t=this,r=e.navigationPanelPosition,o=e.thumbnailAlignment,i=e.options,a=e.galleryStructure,s=e.settings,l=$i(this.props.items,this.props.galleryStructure.galleryItems),u=pr.A.inRange(this.props.activeIndex,l.length),c=i.thumbnailSize,d=i.thumbnailSpacings,p=qi({items:this.props.items,activeIndex:u,options:i,galleryStructure:a,thumbnailAlignment:o,containerHeight:this.props.container.height,containerWidth:this.props.container.width,activeIndexOffsetMemory:this.activeIndexOffsetMemory,prevActiveIndex:this.prevActiveIndex}),h=p.horizontalThumbnails,g=p.items,m=p.thumbnailsMargins,y=p.thumbnailsStyle,v=p.activeIndexOffsetMemory;return this.prevActiveIndex=u,this.activeIndexOffsetMemory=v,n().createElement("div",{className:"pro-gallery inline-styles thumbnails-gallery "+(h?" one-row hide-scrollbars ":"")+(i.isRTL?" rtl ":" ltr ")+((null==s?void 0:s.isAccessible)?" accessible ":""),style:(0,f.__assign)((0,f.__assign)({width:y.width,height:y.height},m),en({galleryThumbnailsAlignment:o,navigationPanelPosition:r})),"data-hook":"gallery-thumbnails"},n().createElement("div",{"data-hook":"gallery-thumbnails-column",className:"galleryColumn",key:"thumbnails-column",style:(0,f.__assign)({},y)},g.map((function(e){var r=e.thumbnailItem,o=e.location,a=e.idx,s=a===u%l.length,p=(0,f.__assign)({width:c,height:c,marginLeft:d,marginTop:d,overflow:"hidden",backgroundImage:"url(".concat(r.createUrl(dr.A.urlSizes.THUMBNAIL,dr.A.urlTypes.HIGH_RES),")")},o);return n().createElement("div",{key:"thumbnail-"+r.id+(Number.isInteger(a)?"-"+a:""),className:"thumbnailItem"+(s?" pro-gallery-thumbnails-highlighted pro-gallery-highlight"+(pr.A.isMobile()?" pro-gallery-mobile-indicator":""):""),"data-key":r.id,style:p,onClick:function(){return t.scrollToThumbnail(a)},onKeyDown:function(e){"Enter"===e.key&&t.scrollToThumbnail(a)}},"text"===r.type?n().createElement(hi,(0,f.__assign)({},t.props,r.renderProps(),{options:(0,f.__assign)((0,f.__assign)({},i),{cubeType:"fill",cubeImages:!0}),actions:{},imageDimensions:(0,f.__assign)((0,f.__assign)({},p),{marginTop:0,marginLeft:0}),style:(0,f.__assign)((0,f.__assign)({},r.renderProps().style),p)})):null)}))))},t.prototype.render=function(){var e={navigationPanelPosition:this.props.options.layoutParams.thumbnails.position,thumbnailAlignment:this.props.options.galleryThumbnailsAlignment,options:this.props.options,galleryStructure:this.props.galleryStructure,settings:this.props.settings};return this.createThumbnails(e)},t}(n().Component),Qi=function(e){var t=e.width,r=e.height,o=e.galleryHeight;return"ON_GALLERY"===e.navigationPanelPosition?{}:{width:t,height:r-o}},Ji=function(e){var t=e.galleryHeight,r=e.galleryWidth,o=e.height,i=e.width,n=e.galleryThumbnailsAlignment,a=e.navigationPanelPosition;return(0,f.__assign)((0,f.__assign)((0,f.__assign)({},function(e){var t=e.galleryHeight,r=e.galleryWidth,o=e.height,i=e.width,n=e.galleryThumbnailsAlignment,a=e.navigationPanelPosition;switch(n){case"top":case"bottom":return Qi({galleryHeight:t,galleryWidth:r,height:o,width:i,navigationPanelPosition:a});case"right":case"left":return function(e){var t=e.width,r=e.height,o=e.galleryWidth;return"ON_GALLERY"===e.navigationPanelPosition?{}:{width:t-o,height:r}}({galleryHeight:t,galleryWidth:r,height:o,width:i,navigationPanelPosition:a});default:return!1}}({galleryHeight:t,galleryWidth:r,height:o,width:i,galleryThumbnailsAlignment:n,navigationPanelPosition:a})),en({galleryThumbnailsAlignment:n,navigationPanelPosition:a})),{overflow:"hidden",float:"left"})},en=function(e){var t=e.galleryThumbnailsAlignment;if(e.navigationPanelPosition===dr.A.thumbnailsPosition.ON_GALLERY){var r={position:"absolute"};return r[t]=0,r}};const tn=Xi;var rn=r(83202),on=r.n(rn);function nn(e){return new Proxy({},{get:function(t,r){return e(r)}})}const an=function(){function e(){this.listeners={}}return e.prototype.on=function(e,t){var r=this;return this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),{remove:function(){r.off(e,t)}}},e.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=this.listeners[e];o&&o.forEach((function(e){return e.apply(void 0,t)}))},e.prototype.off=function(e,t){var r=this.listeners[e];r&&r.splice(r.indexOf(t),1)},Object.defineProperty(e.prototype,"call",{get:function(){var e=this;return nn((function(t){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.emit.apply(e,(0,f.__spreadArray)([t],r,!1))}}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listen",{get:function(){var e=this;return nn((function(t){return function(r){return e.on(t,r),function(){e.off(t,r)}}}))},enumerable:!1,configurable:!0}),e}();var sn=function(e){return document.getElementById("pro-gallery-container-".concat(e))},ln=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={position:[0,0],mouseIn:!1},t}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.getElement();this.mouseFollower=function(e){var t=new an,r=function(t){var r=e.getBoundingClientRect();return[t.clientX-r.left,t.clientY-r.top]};function o(o){var i,n=r(o);(i=t.call).mouseEnterState.apply(i,(0,f.__spreadArray)([!cn.apply(void 0,(0,f.__spreadArray)([e,o],n,!1))],n,!1))}function i(o){var i,n,a=r(o);(i=t.call).mouseEnterState.apply(i,(0,f.__spreadArray)([!cn.apply(void 0,(0,f.__spreadArray)([e,o],a,!1))],a,!1)),(n=t.call).mouseMove.apply(n,a)}function n(){t.call.mouseEnterState(!1,0,0)}function a(e){t.call.mouseClick(e)}return e.addEventListener("mouseenter",o),e.addEventListener("mousemove",i),e.addEventListener("mouseleave",n),e.addEventListener("click",a),{listen:t.listen,destroy:function(){e.removeEventListener("mouseenter",o),e.removeEventListener("mousemove",i),e.removeEventListener("mouseleave",n),e.removeEventListener("click",a)}}}(t),this.mouseFollower.listen.mouseMove(pr.A.throttle((function(t,r){e.setState({position:[t,r]})}),this.props.throttle)),this.mouseFollower.listen.mouseEnterState((function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e.state.mouseIn!==t&&(e.setState({mouseIn:t,position:r}),e.props.onEnterState&&e.props.onEnterState(t))})),this.mouseFollower.listen.mouseClick((function(t){if(e.state.mouseIn){var r=e.state.position,o=r[0],i=r[1];e.props.shouldRenderAtPosition(o,i)&&e.props.onClick(t)}}))},t.prototype.componentWillUnmount=function(){var e;null===(e=this.mouseFollower)||void 0===e||e.destroy()},t.prototype.render=function(){if(!this.state.mouseIn)return null;var e=this.state.position,t=e[0],r=e[1];return this.props.shouldRenderAtPosition(t,r)?this.props.render(this.state.position[0],this.state.position[1]):null},t}(n().Component),un="pg-clickable",cn=function(e,t,r,o){for(var i=0,n=t.composedPath();i<n.length;i++){var a=n[i];if(a instanceof HTMLElement&&"true"===a.getAttribute(un))return!0}var s=e.getBoundingClientRect(),l=document.elementFromPoint(r+s.left,o+s.top);if(!l)return!1;for(var u=l;u;){if("true"===u.getAttribute(un))return!0;u=u.parentElement}return!1},dn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shouldRender=function(e){var r=sn(t.props.id).offsetWidth,o=r*(Math.min(t.props.mouseCursorContainerMaxWidth,t.props.isTheOnlyArrow?100:50)/100),i=o>e,n=e>r-o;return"left"===t.props.direction?i:n},t.onNavigation=function(e){e.preventDefault(),e.stopPropagation(),t.props.onNavigate()},t}return(0,f.__extends)(t,e),t.prototype.render=function(){var e=this;return n().createElement(ln,{getElement:function(){return sn(e.props.id)},render:function(t,r){var o;return n().createElement(n().Fragment,null,e.props.children(t,r),n().createElement("style",null,"\n                  #".concat(null===(o=sn(e.props.id))||void 0===o?void 0:o.id," * {\n                    cursor: none !important;\n                  }\n              ")))},shouldRenderAtPosition:this.shouldRender,onClick:this.onNavigation,throttle:50})},t}(n().Component);var pn;pn=new Map,nn((function(e){return pn.get(e)||pn.set(e,(function(t){var r;return n().createElement(e,(0,f.__assign)((0,f.__assign)({},t),((r={})[un]="true",r)))})),pn.get(e)}));var hn={DEFAULT_ARROW:{SvgComp:function(e){var t=e.style;return n().createElement("svg",{className:"slideshow-arrow",style:t,width:"23",height:"39",viewBox:"0 0 23 39"},n().createElement("path",{d:"M857.005,231.479L858.5,230l18.124,18-18.127,18-1.49-1.48L873.638,248Z",transform:"translate(-855 -230)"}))},width:23,height:39},ARROW_2:{SvgComp:function(e){var t=e.style;return n().createElement("svg",{className:"slideshow-arrow",style:t,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},n().createElement("g",{id:"Artboard-Copy-93",transform:"translate(-28.000000, -32.000000)",fillRule:"nonzero"},n().createElement("polygon",{id:"4",points:"51.5515789 32 67.6 48.0484211 51.5515789 64.0968421 46.9663158 59.5115789 54.9880947 51.4881326 28 51.4897902 28 44.9245271 55.30728 44.9243284 46.9663158 36.5852632"}))))},width:40,height:33},ARROW_3:{SvgComp:function(e){var t=e.style;return n().createElement("svg",{className:"slideshow-arrow",style:t,width:"25px",height:"42px",viewBox:"0 0 25 42",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},n().createElement("g",{id:"Artboard-Copy-97",transform:"translate(-36.000000, -27.000000)",fillRule:"nonzero"},n().createElement("path",{d:"M37.2206398,28.239114 C38.8026583,26.647265 41.3436172,26.5881667 42.9967317,28.0675785 L43.1590153,28.2206482 L59.1611748,44.1233571 C61.1319602,46.0819718 61.1995454,49.2312919 59.3527322,51.2754674 L59.1795659,51.4581932 L43.1590166,67.3793505 C41.51408,69.0140701 38.8553922,69.0057967 37.2206146,67.3608606 C35.638653,65.7689547 35.5953873,63.2276769 37.0850712,61.5838107 L37.2391492,61.4224839 L50.946,47.799 L37.2391492,34.1775161 C35.7003375,32.6482622 35.5938031,30.2229032 36.9247365,28.5696317 L37.0675472,28.4014262 L37.2206398,28.239114 Z",id:"8"}))))},width:25,height:42},ARROW_4:{SvgComp:function(e){var t=e.style;return n().createElement("svg",{className:"slideshow-arrow",style:t,width:"39px",height:"11px",viewBox:"0 0 39 11",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},n().createElement("g",{transform:"translate(-29.000000, -43.000000)",fillRule:"nonzero"},n().createElement("polygon",{points:"59.79296 43 67.1767272 48.2074587 59.79296 53.3482492 59.792 49.24 29 49.2402303 29 47.3156703 59.792 47.315"}))))},width:39,height:11},ARROW_5:{SvgComp:function(e){var t=e.style;return n().createElement("svg",{className:"slideshow-arrow",style:t,width:"39px",height:"25px",viewBox:"0 0 39 25",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},n().createElement("g",{transform:"translate(-29.000000, -36.000000)",fillRule:"nonzero"},n().createElement("path",{d:"M29,48.2400242 C29,47.3087892 29.6817196,46.6578788 30.6657131,46.6578788 L62.0721815,46.6578788 L53.6034603,38.6027842 C52.9919732,38.0244263 52.9745394,37.0965804 53.5626533,36.4993057 L53.6196503,36.4424086 C54.2232252,35.8695838 55.2162345,35.8487051 55.8566495,36.4049822 L66.7354947,46.6987178 C66.8997789,46.8532785 67.0362567,47.0299812 67.1410943,47.2233734 C67.6421069,47.9137524 67.5952684,48.7577348 67.0654839,49.3382112 L66.9183084,49.529704 C66.8745903,49.5829565 66.834409,49.6278886 66.7923536,49.6712745 L55.84922,60.0371144 C55.2232594,60.6516206 54.1974244,60.6696143 53.554893,60.0838114 C52.9168128,59.5020667 52.8980482,58.5443858 53.5126939,57.940867 L53.5761731,57.877497 L62.0800244,49.8549119 L30.6657131,49.8549119 C29.6912419,49.8549119 29,49.1805348 29,48.2400242 Z",id:"5"}))))},width:39,height:25},ARROW_6:{SvgComp:function(e){var t=e.style;return n().createElement("svg",{className:"slideshow-arrow",style:t,width:"26px",height:"40px",viewBox:"0 0 26 40",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},n().createElement("g",{transform:"translate(-35.000000, -28.000000)",fillRule:"nonzero"},n().createElement("polygon",{points:"60.4571429 47.8 40.6571429 67.6 35 61.9428571 49.1433951 47.7994621 35 33.6571429 40.6571429 28"}))))},width:26,height:40},ARROW_7:{SvgComp:function(e){var t=e.style;return n().createElement("svg",{className:"slideshow-arrow",style:t,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},n().createElement("g",{transform:"translate(-28.000000, -32.000000)",strokeWidth:"nonzero"},n().createElement("polygon",{transform:"translate(47.800000, 48.469489) rotate(-180.000000) translate(-47.800000, -48.469489) ",points:"43.2916087 32 44.4061622 33.1660321 30.8430707 47.6817192 67.6 47.6813756 67.6 49.2576026 30.9452714 49.2580761 44.4061622 63.772946 43.2924258 64.9389782 28.8681974 49.4277178 28 48.5197421"}))))},width:40,height:33}};const gn=hn;var mn=function(e){var t=e.customNavArrowsRenderer,r=e.arrowsSize,o=e.svgData,i=e.containerStyleType,n=o.width/o.height>1;if(i===dr.A.arrowsContainerStyleType.BOX)return{navArrowsContainerWidth:r,navArrowsContainerHeight:r,scalePercentage:r/2.4/(n?o.width:o.height)};if(t)return{navArrowsContainerWidth:r,navArrowsContainerHeight:r};var a=r/o.width;return{scalePercentage:a,navArrowsContainerWidth:r,navArrowsContainerHeight:o.height*a}},fn=function(e){var t=yn(e),r=t.options.showArrows,o=t.container.galleryWidth,i=t.isPrerenderMode,n=t.galleryStructure,a=t.customNavArrowsRenderer,s={options:t.options,container:t.container,customNavArrowsRenderer:a},l=n.width<=o;return!!r&&!i&&function(e){var t=e.options,r=t.arrowsVerticalPosition,o=t.textBoxHeight,i=t.arrowsSize,n=t.layoutParams,a=e.container.height,s=e.customNavArrowsRenderer,l=vn(n.navigationArrows.type),u=mn({customNavArrowsRenderer:s,arrowsSize:i,svgData:l,containerStyleType:n.navigationArrows.container.containerStyleType}).navArrowsContainerHeight;return{INFO_CENTER:o,IMAGE_CENTER:a-o,ITEM_CENTER:a}[r]>=u}(s)&&!l},yn=function(e){var t=e.isPrerenderMode,r=e.galleryStructure,o=e.customNavArrowsRenderer;return{options:e.options,container:e.container,isPrerenderMode:t,galleryStructure:r,customNavArrowsRenderer:o}},vn=function(e){void 0===e&&(e=dr.A.arrowsType.DEFAULT_ARROW);var t,r=dr.A.arrowsType,o=(r.DEFAULT_ARROW,r.ARROW_2),i=r.ARROW_3,n=r.ARROW_4,a=r.ARROW_5,s=r.ARROW_6,l=r.ARROW_7;switch(e){case o:t=gn.ARROW_2;break;case i:t=gn.ARROW_3;break;case n:t=gn.ARROW_4;break;case a:t=gn.ARROW_5;break;case s:t=gn.ARROW_6;break;case l:t=gn.ARROW_7;break;default:t=gn.DEFAULT_ARROW}return t};function bn(e){var t,r,o=e.options,i=e.hideLeftArrow,a=e.hideRightArrow,s=e.container,l=e.customNavArrowsRenderer,u=e.next,c=e.id,d=o.isRTL,p=o.scrollDirection,h=o.imageMargin,g=o.arrowsPadding,m=o.arrowsPosition,y=o.arrowsVerticalPosition,v=o.layoutParams,b=o.titlePlacement,S=o.textBoxHeight,P=o.arrowsColor,w=o.arrowsSize,C=v.navigationArrows,E=C.container,A=E.type,I=E.backgroundColor,_=E.borderRadius,T=C.mouseCursorContainerMaxWidth,O=function(e){var t=e.customNavArrowsRenderer,r=e.arrowsColor,o=e.arrowsSize,i=e.arrowsType,a=e.containerStyleType,s=vn(i),l=mn({customNavArrowsRenderer:t,arrowsSize:o,svgData:s,containerStyleType:a}),u=l.navArrowsContainerWidth,c=l.navArrowsContainerHeight,d=l.scalePercentage;if(t){var p=a===dr.A.arrowsContainerStyleType.BOX?o/2.4:o;return{arrowRenderer:function(e){return n().createElement("div",{style:{width:p,height:p}},t(e))},navArrowsContainerWidth:u,navArrowsContainerHeight:c}}return{arrowRenderer:function(e){var t={transform:"scaleX(".concat("right"===e?1:-1,") scale(").concat(d,")"),fill:pr.A.isMobile()&&(null==r?void 0:r.value)?r.value:""};return n().createElement(s.SvgComp,{style:t})},navArrowsContainerWidth:u,navArrowsContainerHeight:c}}({customNavArrowsRenderer:l,arrowsColor:P,arrowsSize:w,arrowsType:v.navigationArrows.type,containerStyleType:A}),x=O.arrowRenderer,N=O.navArrowsContainerWidth,L=O.navArrowsContainerHeight,M=m===dr.A.arrowsPosition.MOUSE_CURSOR,R=s.galleryHeight,k=s.galleryWidth,D=S,B=R-D,H="50% + ".concat(h/4,"px");dr.A.hasExternalAbovePlacement(b)?r=-1:dr.A.hasExternalBelowPlacement(b)&&(r=1);var V=(t={},t[dr.A.arrowsVerticalPosition.ITEM_CENTER]=0,t[dr.A.arrowsVerticalPosition.IMAGE_CENTER]=D*r,t[dr.A.arrowsVerticalPosition.INFO_CENTER]=-B*r,t)[y],F=function(e){var t=e.type,r=e.backgroundColor,o=e.borderRadius;return t===dr.A.arrowsContainerStyleType.BOX?{backgroundColor:r,borderRadius:"".concat(o,"%")}:{}}({type:A,backgroundColor:I,borderRadius:_}),G=M?{width:"".concat(k,"px"),maxWidth:"".concat(T,"%"),height:"".concat(R,"px"),padding:0,top:0,flex:1}:(0,f.__assign)({width:"".concat(N,"px"),height:"".concat(L,"px"),padding:0,top:"calc(".concat(H," - ").concat(L/2,"px - \n        ").concat(V/2,"px)")},F),z=p===dr.A.scrollDirection.HORIZONTAL&&m===dr.A.arrowsPosition.OUTSIDE_GALLERY?"-".concat(20+N,"px"):"".concat(h/2+(g||0),"px"),W={left:M?0:z},U={right:M?0:z},j=["nav-arrows-container",A===dr.A.arrowsContainerStyleType.SHADOW?"drop-shadow":"",pr.A.isMobile()?" pro-gallery-mobile-indicator":"",M?"follow-mouse-cursor":""],K="arrow-portal-container-".concat(c),Z=M?Pn:Sn,$=function(e){return n().createElement(Z,(0,f.__assign)({},{renderArrowSvg:x,next:u,directionIsLeft:e,arrowsBaseClasses:j,containerStyle:G,prevContainerStyle:W,nextContainerStyle:U,isRTL:d,hideLeftArrow:i,hideRightArrow:a,arrowBoxStyle:F,navArrowsContainerWidth:N,navArrowsContainerHeight:L,navigationArrowPortalId:K,mouseCursorContainerMaxWidth:T,id:c}))};return n().createElement(wn,{hideLeftArrow:i,hideRightArrow:a,mouseCursorEnabled:M,isRTL:d,navigationArrowPortalId:K},i?null:$(!0),a?null:$(!1))}function Sn(e){var t,r=e.cursor,o=e.arrowsBaseClasses,i=e.containerStyle,a=e.prevContainerStyle,s=e.nextContainerStyle,l=e.isRTL,u=e.directionIsLeft,c=e.renderArrowSvg,d=e.next,p=e.arrowBoxStyle,h=e.navArrowsContainerWidth,g=e.navArrowsContainerHeight,m=e.navigationArrowPortalId,y=u&&l||!u&&!l,v=function(){return d({direction:u?-1:1})},b=((t={className:o.join(" "),onClick:function(){return setTimeout(v,0)}})["aria-label"]="".concat(y?"Next":"Previous"," Item"),t.tabIndex="-1",t.key=y?"nav-arrow-next":"nav-arrow-back",t["data-hook"]=y?"nav-arrow-next":"nav-arrow-back",t.style=(0,f.__assign)((0,f.__assign)({},i),u?a:s),t);if(r){var S=r.containerRef,P=r.isMouseEnter,w=r.position;return n().createElement("button",(0,f.__assign)({ref:function(e){return S.current=e}},b),P&&rn.createPortal(n().createElement("span",{style:(0,f.__assign)((0,f.__assign)({top:w.y-g/2,left:w.x-h/2},p),{width:h,height:g})},c(u?"left":"right")),window.document.getElementById(m)))}return n().createElement("button",(0,f.__assign)({},b),c(u?"left":"right"))}function Pn(e){var t=e.directionIsLeft,r=e.next,o=e.mouseCursorContainerMaxWidth,i=e.hideLeftArrow,a=e.hideRightArrow,s=e.renderArrowSvg,l=i||a;return n().createElement(dn,{id:e.id,mouseCursorContainerMaxWidth:o,onNavigate:function(){return r({direction:t?-1:1})},direction:t?"left":"right",isTheOnlyArrow:l},(function(e,r){return n().createElement("div",{style:{position:"absolute",top:r,left:e,transition:"all 0.2s ease",pointerEvents:"none"}},s(t?"left":"right"))}))}function wn(e){var t=e.hideRightArrow,r=e.hideLeftArrow,o=e.mouseCursorEnabled,i=e.isRTL,a=e.children,s=e.navigationArrowPortalId;if(o){var l={justifyContent:r?"flex-end":t?"flex-start":"space-between",flexDirection:i?"row-reverse":"row"};return n().createElement("div",{className:"mouse-cursor",style:(0,f.__assign)({},l)},n().createElement("div",{id:s,className:"arrow-portal-container"}),a)}return n().Fragment?n().createElement(n().Fragment,null,a):n().createElement("div",null,a)}function Cn(e){if([33,37,38].includes(e))return-1;if([32,34,39,40].includes(e))return 1;throw new Error("no direction is defined for charCode: ".concat(e))}var En=function(e){function t(t){var r=e.call(this,t)||this;return r.autoScrollToNextItem=function(){if(!(0,ei.Q)()&&(r.props.isInViewport||(0,ei.IL)())){var e=r.props.options,t=e.isRTL?-1:1;e.autoSlideshowType===dr.A.autoSlideshowTypes.CONTINUOUS?r._next({direction:t,isAutoTrigger:!0,isContinuousScrolling:!0}):e.autoSlideshowType===dr.A.autoSlideshowTypes.INTERVAL&&r._next({direction:t,isAutoTrigger:!0,scrollDuration:800})}},r.getCustomNavigationPanel=function(){var e;return"function"==typeof(null===(e=r.props.customComponents)||void 0===e?void 0:e.EXPERIMENTAL_customNavigationPanelRenderer)&&r.props.customComponents.EXPERIMENTAL_customNavigationPanelRenderer},r.createOrGetCustomNavigationPanelAPI=function(){var e=r.props.options.isRTL;return r.navigationPanelAPI||(r.navigationPanelAPI={next:function(){return r.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?-1:1})},back:function(){return r.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?1:-1})},isAbleToNavigateNext:function(){return e?!r.state.hideLeftArrow:!r.state.hideRightArrow},isAbleToNavigateBack:function(){return e?!r.state.hideRightArrow:!r.state.hideLeftArrow},getActiveItemIndex:function(){return r.state.activeIndex},triggerItemAction:function(e,t){var o=(void 0===t?{}:t).itemIndex,i=void 0===o?r.state.activeIndex:o,n=r.createGalleryConfig(),a=r.props.galleryStructure.galleryItems[i%r.props.totalItemsCount],s=null==a?void 0:a.renderProps((0,f.__assign)((0,f.__assign)({},n),{visible:!0}));r.props.actions.eventsListener(dr.A.events.ITEM_ACTION_TRIGGERED,s,e)},toIndex:function(t){return r.scrollToIndex({itemIdx:t,scrollDuration:400,isRTL:e})},assignIndexChangeCallback:function(e){r.navigationPanelCallbackOnIndexChange=e}})},r.navigationPanelCallbackOnIndexChange=function(){},r.scrollToThumbnail=r.scrollToThumbnail.bind(r),r.clearAutoSlideshowInterval=r.clearAutoSlideshowInterval.bind(r),r.onFocus=r.onFocus.bind(r),r.onBlur=r.onBlur.bind(r),r.onAutoSlideShowButtonClick=r.onAutoSlideShowButtonClick.bind(r),r.startAutoSlideshowIfNeeded=r.startAutoSlideshowIfNeeded.bind(r),r.updateAutoSlideShowState=r.updateAutoSlideShowState.bind(r),r.canStartAutoSlideshow=r.canStartAutoSlideshow.bind(r),r.handleSlideshowKeyPress=r.handleSlideshowKeyPress.bind(r),r.onAutoSlideshowAutoPlayKeyPress=r.onAutoSlideshowAutoPlayKeyPress.bind(r),r.setCurrentItemByScroll=r.setCurrentItemByScroll.bind(r),r._setCurrentItemByScroll=pr.A.throttle(r.setCurrentItemByScroll,600).bind(r),r._next=pr.A.throttle(r.nextWithEffects.bind(r),t.isScrollLessGallery?600:400).bind(r),r._next=pr.A.throttle(r.next.bind(r),400).bind(r),r.state={activeIndex:t.activeIndex||0,isInView:!0,pauseAutoSlideshowClicked:!1,hideLeftArrow:!t.options.isRTL,hideRightArrow:t.options.isRTL,shouldBlockAutoSlideshow:!1,isInFocus:!1},r.lastCurrentItem=void 0,r.shouldCreateSlideShowPlayButton=!1,r.skipFromSlide=Math.round(1.5*r.props.totalItemsCount),r}return(0,f.__extends)(t,e),t.prototype.isFirstItem=function(){return 0===this.state.activeIndex},t.prototype.isScrollStart=function(e){return void 0===e&&(e=this.props),!(e.options.slideAnimation!==dr.A.slideAnimations.SCROLL||!this.scrollElement)&&this.scrollPosition()<=1},t.prototype.isScrollEnd=function(e){void 0===e&&(e=this.props);var t=e.options,r=t.slideshowLoop,o=t.slideAnimation;return!r&&o!==dr.A.slideAnimations.FADE&&o!==dr.A.slideAnimations.DECK&&(this.isAllItemsLoaded(e)&&this.scrollPositionAtTheAndOfTheGallery(e)>=Math.floor(this.getScrollElementWidth(e)))},t.prototype.isAllItemsLoaded=function(e){void 0===e&&(e=this.props);var t=e.totalItemsCount,r=e.getVisibleItems,o=e.galleryStructure,i=e.container,n=e.isPrerenderMode;return r(o.galleryItems,i,n).length>=t},t.prototype.getScrollElementWidth=function(e){void 0===e&&(e=this.props);var t=e.galleryStructure,r=this.props.options.imageMargin;return t.width-r/2},t.prototype.isFirstItemFullyVisible=function(){return!this.props.options.slideshowLoop&&this.isScrollStart()},t.prototype.isLastItemFullyVisible=function(){return!this.props.options.slideshowLoop&&this.isScrollEnd()},t.prototype.isLastItem=function(e){return void 0===e&&(e=this.props),!e.options.slideshowLoop&&this.state.activeIndex>=e.totalItemsCount-1},t.prototype.shouldBlockNext=function(e){var t=e.scrollingUpTheGallery;return t&&this.isLastItem()||!t&&this.isFirstItem()},t.prototype.shouldNotAllowScroll=function(e){var t=e.scrollingUpTheGallery;return t&&this.isLastItemFullyVisible()||!t&&this.isFirstItemFullyVisible()},t.prototype.nextWithEffects=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t,r,o=this;return(0,f.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.next(e)];case 1:return t=i.sent(),1===this.props.options.groupSize&&this.props.isScrollLessGallery&&t>=this.skipFromSlide&&(r=this.skipFromSlide-this.props.totalItemsCount,n=function(){return o.onScrollToItemOrGroup(r,!1)},a=function(e){console.log("toggleScrollLessAnimation: ",e),[".gallery-item-wrapper",".gallery-item-common-info-outer"].forEach((function(t){e?(0,f.__spreadArray)([],document.querySelectorAll(t),!0).forEach((function(e){var t;null===(t=e.classList)||void 0===t||t.add("disabled-transition")})):(0,f.__spreadArray)([],document.querySelectorAll(t),!0).forEach((function(e){var t;e.offsetHeight,null===(t=e.classList)||void 0===t||t.remove("disabled-transition")}))}))},setTimeout((function(){n&&n(),a(!0),a(!1)}),600)),[2]}var n,a}))}))},t.prototype.next=function(e){var t,r=e.direction,o=e.isAutoTrigger,i=e.scrollDuration,n=e.isKeyboardNavigation,a=void 0!==n&&n,s=e.isContinuousScrolling,l=void 0!==s&&s;return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,n,s,u,c;return(0,f.__generator)(this,(function(d){return e=this.props.options.isRTL?r<=-1:r>=1,this.shouldBlockNext({scrollingUpTheGallery:e})?(this.clearAutoSlideshowInterval(),[2]):(r*=this.props.options.isRTL?-1:1,n=document.activeElement,s=n.className&&n.className.includes("gallery-item-container"),u=!a||!((null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)&&s),c=!1,this.props.options.slideAnimation!==dr.A.slideAnimations.SCROLL&&(i=0,c=!0),this.removeArrowsIfNeeded(),u&&this.props.options.groupSize>1?[2,this.nextGroup({direction:r,scrollDuration:i,isContinuousScrolling:l,scrollingUpTheGallery:e})]:(u&&dr.A.isLayout("GRID")(this.props.options)&&this.props.options.numberOfImagesPerCol&&(r*=this.props.options.numberOfImagesPerCol),[2,this.nextItem({direction:r,isAutoTrigger:o,scrollDuration:i,avoidIndividualNavigation:u,ignoreScrollPosition:c,isContinuousScrolling:l,scrollingUpTheGallery:e})]))}))}))},t.prototype.getNextItemOrGroupToScrollTo=function(e,t,r,o,i){var n;if(this.isSliding=!0,"nextGroup"!==e&&("nextItem"!==e||r||!o||this.props.options.groupSize>1))"nextItem"===e&&(n=r||!i?this.state.activeIndex:this.setCurrentItemByScroll(),n+=t,this.props.options.slideshowLoop||(n=Math.min(this.props.galleryStructure.items.length-1,n),n=Math.max(0,n)));else{var a="nextGroup"===e?"groups":"galleryItems";n=this.getCenteredItemOrGroupIdxByScroll(a)+t}return this.isAutoScrolling=!0,n},t.prototype.nextItem=function(e){var t=e.direction,r=e.isAutoTrigger,o=e.scrollDuration,i=e.avoidIndividualNavigation,n=e.ignoreScrollPosition,a=e.isContinuousScrolling,s=e.scrollingUpTheGallery;return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,l,u;return(0,f.__generator)(this,(function(c){switch(c.label){case 0:if(this.isSliding)return[2];e=this.getNextItemOrGroupToScrollTo("nextItem",t,n,i,r),c.label=1;case 1:return c.trys.push([1,5,,6]),l=n?0:e,[4,this.scrollToItemOrGroup(this.props.actions.scrollToItem,l,a,o,s)];case 2:return c.sent(),1!==this.props.options.groupSize||this.props.isScrollLessGallery?[3,4]:e>=this.skipFromSlide?(e=pr.A.inRange(e,this.props.totalItemsCount),[4,this.props.actions.scrollToItem(e)]):[3,4];case 3:c.sent(),c.label=4;case 4:return this.onScrollToItemOrGroup(e,a),n&&(this.props.getMoreItemsIfNeeded(this.props.galleryStructure.galleryItems[e].offset.left),this.props.setGotFirstScrollIfNeeded()),[2,e];case 5:return u=c.sent(),this.onThrowScrollError("Cannot proceed to the next Item",u),[3,6];case 6:return[2]}}))}))},t.prototype.nextGroup=function(e){var t=e.direction,r=e.scrollDuration,o=e.isContinuousScrolling,i=void 0!==o&&o,n=e.scrollingUpTheGallery;return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,o,a;return(0,f.__generator)(this,(function(s){switch(s.label){case 0:if(this.isSliding)return[2];e=this.getNextItemOrGroupToScrollTo("nextGroup",t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.scrollToItemOrGroup(this.props.actions.scrollToGroup,e,i,r,n)];case 2:return s.sent(),o=this.getCenteredItemOrGroupIdxByScroll("galleryItems")+t,this.onScrollToItemOrGroup(o,i),[3,4];case 3:return a=s.sent(),this.onThrowScrollError("Cannot proceed to the next Group",a),[3,4];case 4:return[2]}}))}))},t.prototype.scrollToItemOrGroup=function(e,t,r,o,i){return(0,f.__awaiter)(this,void 0,void 0,(function(){var n,a,s,l;return(0,f.__generator)(this,(function(u){switch(u.label){case 0:return n=!this.shouldNotAllowScroll({scrollingUpTheGallery:i}),a=this.getScrollParameters(o),s=a.scrollMarginCorrection,l=a._scrollDuration,n?[4,e(t,!1,!0,l,s,r)]:[3,2];case 1:u.sent(),u.label=2;case 2:return[2]}}))}))},t.prototype.onThrowScrollError=function(e,t){console.error(e,t),this.clearAutoSlideshowInterval()},t.prototype.onScrollToItemOrGroup=function(e,t){var r=this;pr.A.setStateAndLog(this,"Next Item",{activeIndex:e},(function(){r.onCurrentItemChanged(),r.isSliding=!1,t&&r.startAutoSlideshowIfNeeded(r.props.options)}))},t.prototype.getScrollParameters=function(e){return{scrollMarginCorrection:this.getStyles().margin||0,_scrollDuration:e||this.props.options.scrollDuration||400}},t.prototype.onCurrentItemChanged=function(){if(this.lastCurrentItem!==this.state.activeIndex){this.lastCurrentItem=this.state.activeIndex;var e=this.props.galleryStructure.galleryItems[this.state.activeIndex],t=this.props.items[this.state.activeIndex];t&&(t.idx=this.state.activeIndex,t.resizedImageSrc=e.createUrl(dr.A.urlSizes.RESIZED,dr.A.urlTypes.HIGH_RES),this.props.actions.eventsListener(dr.A.events.CURRENT_ITEM_CHANGED,t)),this.navigationPanelCallbackOnIndexChange(this.state.activeIndex)}this.removeArrowsIfNeeded()},t.prototype.clearAutoSlideshowInterval=function(){clearInterval(this.autoSlideshowInterval)},t.prototype.canStartAutoSlideshow=function(e){return e.isAutoSlideshow&&!this.state.shouldBlockAutoSlideshow},t.prototype.startAutoSlideshowIfNeeded=function(e){this.clearAutoSlideshowInterval(),this.canStartAutoSlideshow(e)&&(e.autoSlideshowType===dr.A.autoSlideshowTypes.CONTINUOUS&&e.autoSlideshowContinuousSpeed>0?this.autoScrollToNextItem():e.autoSlideshowType===dr.A.autoSlideshowTypes.INTERVAL&&e.autoSlideshowInterval>0&&(this.autoSlideshowInterval=setInterval(this.autoScrollToNextItem,1e3*e.autoSlideshowInterval)))},t.prototype.getFirstIdx=function(e){var t=this.props.galleryStructure.galleryItems,r=t[e].itemId;return t.find((function(e){return e.itemId===r})).idx},t.prototype.scrollToThumbnail=function(e,t){this.props.actions.eventsListener(dr.A.events.THUMBNAIL_CLICKED,this.props);var r=this.state.activeIndex,o=r+(this.getFirstIdx(e)-this.getFirstIdx(r));this.scrollToIndex({itemIdx:o,scrollDuration:t,isRTL:this.props.options.isRTL})},t.prototype.scrollToIndex=function(e){var t=e.itemIdx,r=e.scrollDuration,o=e.isRTL;this.props.setGotFirstScrollIfNeeded();var i=o?this.state.activeIndex-t:t-this.state.activeIndex;return this.next({direction:i,isAutoTrigger:!1,scrollDuration:r,isKeyboardNavigation:!1})},t.prototype.handleSlideshowKeyPress=function(e){e.stopPropagation();var t=e.charCode||e.keyCode;if(!1===[32,33,34,37,38,39,40,27].includes(t))return!0;e.preventDefault();var r=Zr.A.document.activeElement.getAttribute("data-idx"),o=r&&this.props.totalItemsCount-1===Number(r)&&Number(r)===this.state.activeIndex;if(40===t&&o||27===t){var i={27:this.props.galleryContainerRef,40:this.props.outOfViewComponent}[t];pr.A.focusGalleryElement(i)}else this._next({direction:Cn(t),isKeyboardNavigation:!0});return!1},t.prototype.getCenteredItemOrGroupIdxByScroll=function(e){var t,r=this.props.galleryStructure[e],o=this.scrollPositionAtTheMiddleOfTheGallery();if(0===o)t=0;else for(var i=void 0,n=0;i=r[n];n++){if(("galleryItems"===e?i.offset.left:i.left)>o){t=n-1;break}}return t>=0||(t=r.length-1),t},t.prototype.setCurrentItemByScroll=function(){var e=this;if(pr.A.isVerbose()&&console.log("Setting current Idx by scroll",this.isAutoScrolling),this.isAutoScrolling)this.isAutoScrolling=!1;else{if(!("true"===(this.scrollElement&&this.scrollElement.getAttribute("data-scrolling")))){this.startAutoSlideshowIfNeeded(this.props.options);var t=this.getCenteredItemOrGroupIdxByScroll("galleryItems");return pr.A.isUndefined(t)||pr.A.setStateAndLog(this,"Set Current Item",{activeIndex:t},(function(){e.onCurrentItemChanged()})),t}this.clearAutoSlideshowInterval()}},t.prototype.createDebugMsg=function(){return n().createElement(oi,(0,f.__assign)({},this.props.debug))},t.prototype.createNavArrows=function(){var e=this.props,t=e.container,r=e.options,o=e.customComponents,i=e.id,a=this.state,s=a.hideLeftArrow,l=a.hideRightArrow;return n().createElement(bn,{container:t,options:r,customNavArrowsRenderer:o.customNavArrowsRenderer,hideLeftArrow:s,hideRightArrow:l,next:this._next,id:i})},t.prototype.getBufferedItems=function(e,t){var r,o=this.state,i=this.props,n=i.options,a=i.virtualizationSettings,s=i.getVisibleItems,l=i.isPrerenderMode,u=o.activeIndex;return function(e){var t=e.groups,r=e.options,o=e.virtualizationSettings,i=e.galleryWidth,n=e.galleryHeight,a=e.activeIndex,s=o||{},l=s.enabled,u=void 0!==l&&l,c=s.forwardItemMargin,d=void 0===c?3:c,p=s.backwardItemMargin,h=void 0===p?3:p,g=s.forwardItemScrollMargin,m=void 0===g?10:g,f=s.backwardItemScrollMargin,y=void 0===f?10:f,v=r.scrollDirection===dr.A.scrollDirection.HORIZONTAL,b=!v||r.slideAnimation===dr.A.slideAnimations.SCROLL;if(!u)return t.map((function(e){return{group:e,shouldRender:!0}}));for(var S=v?i:n,P=v?"width":"height",w=b?m:d,C=b?y:h,E=t.findIndex((function(e){var t,r,o=e.items,i=o[0],n=o[o.length-1],s=null!==(t=i.idx)&&void 0!==t?t:i.fullscreenIdx,l=null!==(r=n.idx)&&void 0!==r?r:n.fullscreenIdx;return s<=a&&l>=a})),A=t[E],I=A[P]/S,_=I,T=I,O=[A],x=1;_<w||T<C;x++){var N=t[E+x],L=t[E-x];if(N&&_<w&&(_+=N[P]/S,O.push(N)),L&&T<C&&(T+=L[P]/S,O.push(L)),!L&&!N)break}return t.map((function(e){return{group:e,shouldRender:O.includes(e)}}))}({groups:s(e,t,l),activeIndex:u,galleryWidth:(null===(r=this.props.galleryContainerRef)||void 0===r?void 0:r.clientWidth)||t.galleryWidth||0,options:n,virtualizationSettings:a})},t.prototype.createGalleryConfig=function(){return{scrollingElement:this.props.scrollingElement,scroll:this.props.scroll,container:this.props.container,options:this.props.options,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener},totalItemsCount:this.props.totalItemsCount,totalWidth:this.props.galleryStructure.width}},t.prototype.createLayout=function(){var e=this,t=this.props,r=t.container,o=t.galleryStructure,i=this.createGalleryConfig();return o.columns.map((function(t,o){var a={width:e.props.isPrerenderMode?"100%":t.width,height:e.getDimensions().height,overflowY:e.props.isPrerenderMode?"visible":"hidden"};return n().createElement("div",{"data-hook":"gallery-column",id:"gallery-horizontal-scroll-".concat(e.props.id),className:"gallery-horizontal-scroll gallery-column hide-scrollbars ".concat(e.props.options.isRTL?" rtl ":" ltr "," ").concat(e.props.options.scrollSnap?" scroll-snap ":""," "),key:"column"+o,style:a},n().createElement("div",{className:"gallery-horizontal-scroll-inner"},function(t){var o=!!t.galleryGroups.length&&e.getBufferedItems(t.galleryGroups,r);if(o)return o.map((function(t){var r=t.group,o=t.shouldRender;return!!r.rendered&&n().createElement(ji,(0,f.__assign)((0,f.__assign)({activeIndex:e.state.activeIndex,slideAnimation:e.props.options.slideAnimation,allowLoop:e.props.options.slideshowLoop&&e.props.galleryStructure.width>e.props.container.width},r.renderProps(i)),{ariaHidden:r.idx>e.skipFromSlide,shouldRenderEmpty:!o,container:e.props.container,key:r.idx}))}))}(t)))}))},t.prototype.getDimensions=function(){var e=this.props.container.galleryHeight;return this.props.isPrerenderMode?{width:"100%",height:e}:{height:e,width:this.props.container.galleryWidth}},t.prototype.createGallery=function(){var e,t=this.props.options.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&this.props.options.arrowsPosition===dr.A.arrowsPosition.OUTSIDE_GALLERY?{overflow:"visible",left:this.props.options.arrowsSize+40+this.props.options.imageMargin/2}:{},r=this.getDimensions(),o=(0,f.__assign)((0,f.__assign)((0,f.__assign)({},r),t),{display:"flex",justifyContent:"space-between"});return n().createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles one-row hide-scrollbars "+(this.props.options.enableScroll?" slider ":"")+((null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)?" accessible ":"")+(this.props.options.isRTL?" rtl ":" ltr "),style:o},this.createDebugMsg(),this.createLayout(),this.createAutoSlideShowPlayButton(),this.createSlideShowNumbers(),fn({options:this.props.options,container:this.props.container,isPrerenderMode:this.props.isPrerenderMode,galleryStructure:this.props.galleryStructure,customNavArrowsRenderer:this.props.customComponents.customNavArrowsRenderer})&&this.createNavArrows())},t.prototype.onAutoSlideShowButtonClick=function(){var e=this;this.setState({pauseAutoSlideshowClicked:!this.state.pauseAutoSlideshowClicked},(function(){e.updateAutoSlideShowState(e.props)}))},t.prototype.isFullWidthGallery=function(){return this.props.container.galleryWidth>=pr.A.getWindowWidth()-10},t.prototype.onAutoSlideshowAutoPlayKeyPress=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),this.onAutoSlideShowButtonClick(),!1;default:return!0}},t.prototype.calcSlideshowCounterWidth=function(){var e=this.props.totalItemsCount;return e<10?26:e<100?43:e<1e3?60:76},t.prototype.createAutoSlideShowPlayButton=function(){var e=this;if(!this.shouldCreateSlideShowPlayButton)return!1;var t=this.props.options,r=t.galleryTextAlign,o=t.textBoxHeight,i=this.props.options.imageMargin/2+(this.isFullWidthGallery()?50:0),a="right"===r?{left:"".concat(i/2,"px")}:{right:"".concat(i/2+(this.props.options.allowSlideshowCounter?this.calcSlideshowCounterWidth():0),"px")};return n().createElement("button",{className:"auto-slideshow-button",onClick:function(){e.onAutoSlideShowButtonClick()},onKeyDown:this.onAutoSlideshowAutoPlayKeyPress,"data-hook":"auto-slideshow-button",title:"slideshow auto play","aria-pressed":this.state.pauseAutoSlideshowClicked,tabIndex:0,style:(0,f.__assign)({top:"calc(100% - ".concat(o,"px + 3px)")},a)},this.state.pauseAutoSlideshowClicked?n().createElement(Zi,{width:"10px",height:"100%"}):n().createElement(Oi,{width:"10px",height:"100%"}))},t.prototype.createSlideShowNumbers=function(){if(!this.props.options.allowSlideshowCounter)return!1;var e=this.props,t=e.totalItemsCount,r=e.options,o=r.galleryTextAlign,i=r.textBoxHeight,a=this.props.options.imageMargin/2+(this.isFullWidthGallery()?50:0),s=this.shouldCreateSlideShowPlayButton?a/2+25:a/2,l="right"===o?{left:"".concat(s,"px")}:{right:"".concat(a/2,"px")};return n().createElement("div",{className:"auto-slideshow-counter","data-hook":"auto-slideshow-counter",style:(0,f.__assign)({top:"calc(100% - ".concat(i,"px + 3px)")},l)},n().createElement("div",null,this.state.activeIndex%t+1+"/"+t))},t.prototype.getNavigationPanelArray=function(){if(!this.props.options.hasThumbnails)return[!1,!1];var e,t=this.getCustomNavigationPanel();if(t){var r=this.props.container,o=r.galleryHeight,i=r.galleryWidth,a=r.height,s=r.width,l=this.props.options.galleryThumbnailsAlignment,u=this.props.options.layoutParams.thumbnails.position,c=Ji({galleryHeight:o,galleryWidth:i,height:a,width:s,galleryThumbnailsAlignment:l,navigationPanelPosition:u});e=n().createElement("div",{className:"custom-navigation-panel",style:c},t((0,f.__assign)((0,f.__assign)({},this.props),{activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail,navigationPanelAPI:this.createOrGetCustomNavigationPanelAPI()})))}else e=n().createElement(tn,(0,f.__assign)({},this.props,{activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail}));var d=this.props.options.layoutParams.thumbnails.position,p=this.props.options.galleryThumbnailsAlignment,h=[];if(d===dr.A.thumbnailsPosition.ON_GALLERY)return h[0]=!1,h[1]=e,h;switch(p){case"top":case"left":h[0]=e,h[1]=!1;break;case"right":case"bottom":h[0]=!1,h[1]=e}return h},t.prototype.getClassNames=function(){var e="pro-gallery-parent-container";return dr.A.isLayout("SLIDER")(this.props.options)?e+=" gallery-slider":this.props.options.hasThumbnails?e+=" gallery-thumbnails":dr.A.isLayout("COLUMN")(this.props.options)&&(e+=" gallery-columns"),e},t.prototype.getStyles=function(){return{margin:-1*(this.props.options.imageMargin/2-this.props.options.layoutParams.gallerySpacing),width:this.props.container.width,height:this.props.container.height}},t.prototype.getScrollPosition=function(e){return void 0===e&&(e=this.props),this.scrollElement?this.scrollPosition(e):0},t.prototype.scrollPositionAtTheMiddleOfTheGallery=function(){return this.getScrollPosition()+this.props.container.galleryWidth/2},t.prototype.scrollPositionAtTheAndOfTheGallery=function(e){return void 0===e&&(e=this.props),this.getScrollPosition(e)+e.container.galleryWidth},t.prototype.scrollPosition=function(e){return void 0===e&&(e=this.props),(e.options.isRTL?-1:1)*this.scrollElement.scrollLeft},t.prototype.updateAutoSlideShowState=function(e){var t=this;void 0===e&&(e=this.props);var r=e.isGalleryInHover,o=e.options,i=e.settings,n=this.state,a=n.pauseAutoSlideshowClicked,s=n.shouldBlockAutoSlideshow,l=n.isInView,u=n.isInFocus,c=r&&o.pauseAutoSlideshowOnHover,d=u&&(null==i?void 0:i.isAccessible),p=!l||a||d||c;s!==p&&this.setState({shouldBlockAutoSlideshow:p},(function(){t.startAutoSlideshowIfNeeded(o)}))},t.prototype.onFocus=function(){var e=this;this.setState({isInFocus:!0},(function(){e.updateAutoSlideShowState(e.props)}))},t.prototype.onBlur=function(){var e=this;this.setState({isInFocus:!1},(function(){e.updateAutoSlideShowState(e.props)}))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,r,o=this,i=e.isInViewport&&(null===(t=e.isInDisplay)||void 0===t||t);i!==(this.props.isInViewport&&(null===(r=this.props.isInDisplay)||void 0===r||r))?this.setState({isInView:i},(function(){o.updateAutoSlideShowState(e)})):this.props.isGalleryInHover!==e.isGalleryInHover?this.updateAutoSlideShowState(e):this.props.container.scrollBase!=e.container.scrollBase&&this.forceUpdate((function(){o.startAutoSlideshowIfNeeded(e.options)})),this.state.activeIndex>e.items.length-1&&pr.A.setStateAndLog(this,"Next Item",{activeIndex:0},(function(){o.onCurrentItemChanged()})),this.props.activeIndex!==e.activeIndex&&pr.A.setStateAndLog(this,"Next Item",{activeIndex:e.activeIndex},(function(){o.onCurrentItemChanged()})),this.props.totalItemsCount===e.totalItemsCount&&this.props.container.galleryHeight===e.container.galleryHeight&&this.props.container.galleryWidth===e.container.galleryWidth||this.removeArrowsIfNeeded(e),((0,ei.Q)()||(0,ei.IL)())&&(this.props.options.isAutoSlideshow===e.options.isAutoSlideshow&&this.props.options.autoSlideshowInterval===e.options.autoSlideshowInterval||this.startAutoSlideshowIfNeeded(e.options)),this.shouldCreateSlideShowPlayButton=e.options.isAutoSlideshow&&e.options.playButtonForAutoSlideShow},t.prototype.removeArrowsIfNeeded=function(e){void 0===e&&(e=this.props);var t=e.options.isRTL,r=this.state,o=r.hideLeftArrow,i=r.hideRightArrow,n=this.isScrollStart(e),a=this.isFirstItem(),s=this.isScrollEnd(e),l=this.isLastItem(e),u=n||a,c=s||l,d=!t&&u||t&&c,p=t&&u||!t&&c;(!!d!=!!o||!!p!=!!i)&&this.setState({hideLeftArrow:!!d,hideRightArrow:!!p})},t.prototype.componentDidMount=function(){this.scrollElement=Zr.A.document.querySelector("#pro-gallery-".concat(this.props.id," #gallery-horizontal-scroll-").concat(this.props.id)),this.scrollElement&&this.scrollElement.addEventListener("scroll",this._setCurrentItemByScroll),this.state.activeIndex>0?(this.props.actions.scrollToItem(this.state.activeIndex),this.onCurrentItemChanged()):this.setCurrentItemByScroll(),this.startAutoSlideshowIfNeeded(this.props.options)},t.prototype.componentWillUnmount=function(){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this._setCurrentItemByScroll)},t.prototype.render=function(){pr.A.isVerbose()&&(console.count("galleryView render"),console.count("Rendering Gallery count"),console.time("Rendering Gallery took "));var e=this.createGallery(),t=this.getNavigationPanelArray();return pr.A.isVerbose()&&console.timeEnd("Rendering Gallery took "),n().createElement("div",(0,f.__assign)({className:this.getClassNames(),style:this.getStyles(),onKeyDown:this.handleSlideshowKeyPress},pr.A.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel}),{onFocus:this.onFocus,onBlur:this.onBlur}),t[0],e,t[1])},t}(n().Component);const An=En;var In=r(75446),_n=function(e){function t(t){var r=e.call(this)||this;return r.state={scrollTop:0,scrollLeft:0},r.debouncedOnScroll=pr.A.debounce(t.onScroll,50),r}return(0,f.__extends)(t,e),t.prototype.removeScrollListener=function(){if(this.scrollEventListenerSet){var e=this.props.scrollingElement;try{e.vertical().removeEventListener("scroll",this.onVerticalScroll)}catch(e){}try{this.props.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&e.horizontal().removeEventListener("scroll",this.onHorizontalScroll)}catch(e){}this.scrollEventListenerSet=!1}},t.prototype.initScrollListener=function(){var e,t,r=this;this.scrollEventListenerSet&&this.removeScrollListener(),this.scrollEventListenerSet=!0;var o=this.props.scrollingElement;if(this.onHorizontalScrollTransition=function(e){var t=e.detail,o=Math.round(t);o>=0&&r.props.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&r.setState({scrollLeft:r.state.scrollLeft+o})},this.onHorizontalScroll=function(e){r.props.setGotFirstScrollIfNeeded();var t=e.currentTarget||e.target||e,o=t&&(t.scrollX||t.scrollLeft||t.x);r.props.isRTL&&(o=Math.abs(o)),o>=0&&r.props.scrollDirection===dr.A.scrollDirection.HORIZONTAL&&(r.setState({scrollTop:o,scrollLeft:o}),r.props.getMoreItemsIfNeeded(o),r.debouncedOnScroll({left:o}))},this.props.scrollDirection===dr.A.scrollDirection.HORIZONTAL)try{null===(e=null==o?void 0:o.horizontal())||void 0===e||e.addEventListener("scroll",this.onHorizontalScroll),null===(t=null==o?void 0:o.horizontal())||void 0===t||t.addEventListener("scrollTransition",this.onHorizontalScrollTransition)}catch(e){console.error(e)}this.onVerticalScroll=function(e){r.props.setGotFirstScrollIfNeeded();var t=e.currentTarget||e.target||e,o=t&&(t.scrollY||t.scrollTop||t.y);o>=0&&(r.props.scrollDirection===dr.A.scrollDirection.VERTICAL&&(r.setState({scrollTop:o}),r.props.getMoreItemsIfNeeded(o)),r.debouncedOnScroll({top:o}))};try{o.vertical().addEventListener("scroll",this.onVerticalScroll)}catch(e){console.error(e)}},t.prototype.componentWillUnmount=function(){this.removeScrollListener()},t.prototype.componentDidMount=function(){this.initScrollListener()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){for(var t=!1,r=0,o=["id","scrollDirection","isRTL","totalWidth","scrollBase"];r<o.length;r++){var i=o[r];if(e[i]!==this.props[i]){t=!0;break}}t&&this.initScrollListener()},t.prototype.render=function(){var e=this.props.scrollDirection===dr.A.scrollDirection.VERTICAL&&this.props.scrollBase>0?this.props.scrollBase:0,t=this.state.scrollTop-e,r=this.props.id;return n().createElement("div",{key:"css-scroll-indicator","data-hook":"css-scroll-indicator","data-scroll-base":e,"data-scroll-top":this.state.scrollTop,className:vi.calcScrollClasses(r,t),style:{display:"none"}})},t}(n().Component);const Tn=_n;var On=function(e,t,r){void 0===e&&(e="");var o=r.isRTL,i="";return t.forEach((function(t){var r=function(e){var t=e.galleryId,r=e.item;return"#pro-gallery-".concat(t," #").concat(vi.getSellectorDomId(r))}({galleryId:e,item:t}),n=function(e){return{top:e.offset.top,left:e.offset.left,width:e.width+e.infoWidth,height:e.height+e.infoHeight,innerHeight:e.height}}(t),a="top:".concat(n.top,"px;"),s=o?"right:".concat(n.left,"px;left:auto;"):"left:".concat(n.left,"px;"),l="width:".concat(n.width,"px;"),u="height:".concat(n.height,"px;");i+="".concat(r," {").concat(a).concat(s).concat(l).concat(u,"}")})),i},xn=function(){function e(e){this.left=0,this.top=0,this.setPlayingIdxState=e,this.handleEvent=function(){},this.onScroll=this.onScroll.bind(this),this.trigger={SCROLL:this.onScroll,INIT_SCROLL:function(){}},this.stop=function(){},this.initializePlayState=function(){}}return e.prototype.onScroll=function(e){var t=e.top,r=e.left;this.top=t||this.top,this.left=r||this.left},e.prototype.initVideoScrollHelperIfNeeded=function(e,t){var o=this;if(t.some((function(e){return e.metaData&&"video"===e.metaData.type||e.metadata&&"video"===e.metadata.type}))){var i={setPlayingVideos:(0,ei.Q)()?function(){}:this.setPlayingIdxState};Promise.all([r.e(8841),r.e(9143),r.e(4313)]).then(r.bind(r,26069)).then((function(t){Object.assign(o,new t.default(i)),o.updateGalleryStructure(e),o.onScroll({top:o.top,left:o.left})})).catch((function(e){console.error("Failed to load videoScrollHelper. error: "+e)}))}},e.prototype.updateGalleryStructure=function(e,t,r){t&&this.initVideoScrollHelperIfNeeded(e,r)},e}();const Nn=xn;const Ln=function(e,t,r){var o,i=r[e],n=function(e,t,o){var i,n,a,s=null,l={};return r.forEach((function(r){i=r.offset.top+r.height/2,n=r.offset.left+r.width/2,a=Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2)),(null===s||a>0&&a<s)&&o(e,t,n,i)&&(s=a,l=r)})),l};switch(t){case"up":o=n(i.offset.left+i.width/2,i.offset.top,(function(e,t,r,o){return o<t}));break;case"left":o=n(i.offset.left,i.offset.top+i.height/2,(function(e,t,r){return r<e}));break;case"down":o=n(i.offset.left+i.width/2,i.offset.bottom,(function(e,t,r,o){return o>t}));break;default:o=n(i.offset.right,i.offset.top+i.height/2,(function(e,t,r){return r>e}))}return o.idx>=0?o.idx:(console.warn("Could not find offset for itemIdx",e,t),e)};var Mn=r(80295),Rn=function(e){function t(t){var r=e.call(this,t)||this;r.updateVisibility=function(){var e=(0,Mn.I)({container:r.props.container,scrollTop:r.state.scrollPosition.top});r.state.isInViewport!==e&&r.setState({isInViewport:e})},r.setVisibilityIfNeeded=function(e,t){var o=r.props.container,i=r.state.scrollPosition;o.scrollBase===e.container.scrollBase&&i.top===t.scrollPosition.top||r.updateVisibility()},r.findNeighborItem=function(e,t){return Ln(e,t,r.state.structure.items)},pr.A.isVerbose()&&console.count("[OOISSR] galleryContainer constructor",Zr.A.isMock),r.getMoreItemsIfNeeded=r.getMoreItemsIfNeeded.bind(r),r.setGotFirstScrollIfNeeded=r.setGotFirstScrollIfNeeded.bind(r),r.toggleLoadMoreItems=r.toggleLoadMoreItems.bind(r),r.scrollToItem=r.scrollToItem.bind(r),r.scrollToGroup=r.scrollToGroup.bind(r),r._scrollingElement=r.getScrollingElement(),r.eventsListener=r.eventsListener.bind(r),r.onGalleryScroll=r.onGalleryScroll.bind(r),r.setPlayingIdxState=r.setPlayingIdxState.bind(r),r.getVisibleItems=r.getVisibleItems.bind(r),r.findNeighborItem=r.findNeighborItem.bind(r),r.updateVideoScrollHelperStructure=r.updateVideoScrollHelperStructure.bind(r),r.setCurrentSlideshowViewIdx=r.setCurrentSlideshowViewIdx.bind(r),r.getIsScrollLessGallery=r.getIsScrollLessGallery.bind(r),r.onMouseEnter=r.onMouseEnter.bind(r),r.onMouseLeave=r.onMouseLeave.bind(r),r.videoScrollHelper=new Nn(r.setPlayingIdxState);var o={scrollPosition:{top:0,left:0},showMoreClickedAtLeastOnce:!1,initialGalleryHeight:void 0,needToHandleShowMoreClick:!1,gotFirstScrollEvent:t.activeIndex>=0,playingVideoIdx:-1,viewComponent:null,firstUserInteractionExecuted:!1,isInHover:!1,isInViewport:!0};r.state=o,r.layoutCss=[],r.initialGalleryState={};try{var i=r.propsToState(t);Object.keys(i).length>0&&(r.initialGalleryState=i)}catch(e){console.warn("Cannot create initial state from props",e)}return r.state=(0,f.__assign)((0,f.__assign)({},o),r.initialGalleryState),r}return(0,f.__extends)(t,e),t.prototype.initializeScrollPosition=function(){if(this.props.activeIndex>0){this.scrollToItem(this.props.activeIndex,!1,!0,0);var e=this.galleryStructure.items[this.props.activeIndex];this.onGalleryScroll(e.offset)}},t.prototype.isScrollingUnavailable=function(e,t){return this.isVerticalGallery()?e<=t+300:this.state.structure.width<this.state.container.width+300},t.prototype.getMoreItemsIfScrollIsDisabled=function(e,t){return(0,f.__awaiter)(this,void 0,void 0,(function(){var r,o=this;return(0,f.__generator)(this,(function(i){return this.isScrollingUnavailable(e,t)&&(r=this.state.items.length,this.getMoreItemsIfNeeded(0).then((function(){if(o.state.items.length>r){var e=document.body,t=document.documentElement,i=Zr.A.innerHeight,n=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);o.getMoreItemsIfScrollIsDisabled(n,i)}}))),[2]}))}))},t.prototype.componentDidMount=function(){var e={galleryStructure:this.galleryStructure,galleryWidth:this.state.container.galleryWidth,scrollBase:this.state.container.scrollBase,videoPlay:this.state.options.videoPlay,videoLoop:this.state.options.videoLoop,itemClick:this.state.options.itemClick,scrollDirection:this.state.options.scrollDirection,cb:this.setPlayingIdxState};this.updateVideoScrollHelperStructure(e,this.state.items),Zr.C.stopUsingMock();var t=document.body,r=document.documentElement,o=Zr.A.innerHeight,i=Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);this.initializeScrollPosition(),this.getMoreItemsIfScrollIsDisabled(i,o),this.handleNewGalleryStructure(),this.eventsListener(dr.A.events.APP_LOADED,{}),this.videoScrollHelper.initializePlayState();try{"function"==typeof Zr.A.CustomEvent?this.currentHoverChangeEvent=new CustomEvent("current_hover_change"):(this.currentHoverChangeEvent=Zr.A.document.createEvent("CustomEvent"),this.currentHoverChangeEvent.initCustomEvent("current_hover_change",!1,!1,null))}catch(e){console.error("could not create 'current_hover_change' customEvent. Error =",e)}this.props.id&&(this.currentHoverChangeEvent.galleryId=this.props.id)},t.prototype.updateVideoScrollHelperStructure=function(e,t){this.videoScrollHelper.updateGalleryStructure(e,!pr.A.isSSR(),t)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this;!this.currentHoverChangeEvent.galleryId&&e.id&&(this.currentHoverChangeEvent.galleryId=e.id),this.props.activeIndex!==e.activeIndex&&e.activeIndex!==this.currentSlideshowViewIdx&&this.scrollToItem(e.activeIndex,!1,!0,0);var r=function(e){return{id:e.id,options:e.options,container:e.container,items:e.items,isInDisplay:e.isInDisplay,isPrerenderMode:e.isPrerenderMode}};this.reCreateGalleryTimer&&clearTimeout(this.reCreateGalleryTimer);var o,i,n=!0;try{var a=r(this.props),s=r(e);n=JSON.stringify(a)!==JSON.stringify(s),pr.A.isVerbose()&&n&&console.log("New props arrived",pr.A.printableObjectsDiff(a,s))}catch(e){console.error("Cannot compare props",e)}n&&(o=t.propsToState(e),i={galleryStructure:t.galleryStructure,galleryWidth:o.container.galleryWidth,scrollBase:o.container.scrollBase,videoPlay:o.options.videoPlay,videoLoop:o.options.videoLoop,itemClick:o.options.itemClick,scrollDirection:o.options.scrollDirection,cb:t.setPlayingIdxState},t.updateVideoScrollHelperStructure(i,o.items),Object.keys(o).length>0&&t.setState(o,t.handleNewGalleryStructure),this.props.isInDisplay!==e.isInDisplay&&this.handleNavigation(e.isInDisplay))},t.prototype.handleNavigation=function(e){e?this.videoScrollHelper.trigger.INIT_SCROLL():this.videoScrollHelper.stop()},t.prototype.handleNewGalleryStructure=function(){var e=this.state,t=e.container,r=e.needToHandleShowMoreClick,o=e.initialGalleryHeight,i="vertical"===this.containerInfiniteGrowthDirection(),n=!1;if(!i&&r){n=t.height+(o-138)}var a=this.props.options,s={numOfItems:this.state.items.length,container:t,options:a,layoutHeight:n||this.props.container.height,layoutItems:this.props.structure.items,isInfinite:i,isFixedHorizontlaGalleryRatio:"horizontal"===this.containerInfiniteGrowthDirection()&&this.state.options.layoutParams.structure.galleryRatio.value>0,updatedHeight:n};pr.A.isVerbose()&&console.log("handleNewGalleryStructure",s),this.eventsListener(dr.A.events.GALLERY_CHANGE,s),r&&this.setState({needToHandleShowMoreClick:!1})},t.prototype.isVerticalGallery=function(){return this.state.options.scrollDirection===dr.A.scrollDirection.VERTICAL},t.prototype.getIsScrollLessGallery=function(e){var t=e.scrollDirection,r=e.slideAnimation;return t===dr.A.scrollDirection.HORIZONTAL&&r!==dr.A.slideAnimations.SCROLL},t.prototype.getVisibleItems=function(e,t,r){var o,i,n=this.state.gotFirstScrollEvent,a=(null===(i=null===(o=this.state)||void 0===o?void 0:o.scrollPosition)||void 0===i?void 0:i.top)||0,s=t.galleryHeight,l=t.scrollBase,u=t.galleryWidth;if(r||(0,ei.Xf)()||(0,ei.Q)()||n||a>0||Zr.A.scrollY>0||(0,ei.IL)()||this.props.activeIndex>0)return e;var c=e;try{var d=Zr.A.innerHeight,p=this.isVerticalGallery()&&"vertical"===this.containerInfiniteGrowthDirection()?1/0:l+s,h=a+d,g=Math.min(p,h)-l;(c=g<0?[]:this.isVerticalGallery()?e.filter((function(e){return e.offset.top<g})):e.filter((function(e){return e.left<=u+20}))).length<2&&c.length<e.length&&(c=e.slice(0,2))}catch(t){console.error("Could not calculate visible items, returning original items",t),c=e}return c},t.prototype.propsToState=function(e){var t=e.items,r=e.options,o=e.structure,i=e.container,n=e.id,a=e.createMediaUrl,s=e.isPrerenderMode;t=t||this.props.items,r=r||this.props.options,i=i||this.props.container,o=o||this.props.structure,n=n||this.props.id,a=a||this.props.createMediaUrl,this.galleryStructure=Fr.convertToGalleryItems(o,{thumbnailSize:r.thumbnailSize,sharpParams:r.sharpParams,createMediaUrl:a}),!(0,ei.Xf)()&&((0,ei.Q)()||this.state.gotFirstScrollEvent||this.state.showMoreClickedAtLeastOnce)&&this.getScrollCss({id:n,items:this.galleryStructure.galleryItems,options:r,container:i});var l={items:t,container:i,styleParams:r,gotScrollEvent:!0,options:{showAllItems:!0,skipVisibilitiesCalc:!0,useLayoutStore:!1,createLayoutOnInit:!1}};return this.createCssLayoutsIfNeeded(l),this.createDynamicStyles(r,s),{items:t,options:r,container:i,structure:o}},t.prototype.getScrollingElement=function(){var e=this;return{vertical:this.props.scrollingElement?function(){return e.props.scrollingElement}:function(){return Zr.A},horizontal:function(){return Zr.A.document.querySelector("#pro-gallery-".concat(e.props.id," #gallery-horizontal-scroll-").concat(e.props.id))}}},t.prototype.scrollToItem=function(e,t,r,o,i,n){var a=this;if(void 0===o&&(o=0),void 0===n&&(n=!1),e>=0){if(this.state.gotFirstScrollEvent||this.setState({gotFirstScrollEvent:!0}),this.getIsScrollLessGallery(this.state.options))return;var s=this._scrollingElement,l=s.horizontal();try{var u={scrollMarginCorrection:i,isRTL:this.state.options.isRTL,scrollDirection:this.state.options.scrollDirection,galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,items:this.galleryStructure.items,totalWidth:this.galleryStructure.width,itemIdx:e,fixedScroll:t,isManual:r,scrollingElement:s,horizontalElement:l,durationInMS:o,slideTransition:this.state.options.slideTransition,isContinuousScrolling:n,autoSlideshowContinuousSpeed:this.state.options.autoSlideshowContinuousSpeed,imageMargin:this.state.options.imageMargin};return this.currentScrollData=(0,In.iC)(u),this.currentScrollData.scrollDeffered.promise.then((function(){a.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToItem, cannot get scrollParams, ","isEditMode =",(0,ei.Q)()," isPreviewMode =",(0,ei.IL)()," isSiteMode =",(0,ei.PP)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}},t.prototype.scrollToGroup=function(e,t,r,o,i,n){var a=this;if(void 0===o&&(o=0),void 0===n&&(n=!1),e>=0){var s=this._scrollingElement,l=s.horizontal();try{var u={scrollMarginCorrection:i,isRTL:this.state.options.isRTL,scrollDirection:this.state.options.scrollDirection,galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,groups:this.galleryStructure.groups,totalWidth:this.galleryStructure.width,groupIdx:e,fixedScroll:t,isManual:r,scrollingElement:s,horizontalElement:l,durationInMS:o,slideTransition:this.state.options.slideTransition,isContinuousScrolling:n,autoSlideshowContinuousSpeed:this.state.options.autoSlideshowContinuousSpeed,imageMargin:this.state.options.imageMargin};return this.currentScrollData=(0,In.I2)(u),this.currentScrollData.scrollDeffered.promise.then((function(){a.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToGroup, cannot get scrollParams, ","isEditMode =",(0,ei.Q)()," isPreviewMode =",(0,ei.IL)()," isSiteMode =",(0,ei.PP)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}},t.prototype.containerInfiniteGrowthDirection=function(e){void 0===e&&(e=!1);var t=e||this.props.options,r=this.props.options.enableInfiniteScroll,o=this.state.showMoreClickedAtLeastOnce,i=t.scrollDirection,n=t.loadMoreAmount;return i===dr.A.scrollDirection.HORIZONTAL?"horizontal":r||o&&"all"===n?"vertical":"none"},t.prototype.setPlayingIdxState=function(e){this.setState({playingVideoIdx:e})},t.prototype.onGalleryScroll=function(e){this.props.isInDisplay&&this.eventsListener(dr.A.events.GALLERY_SCROLLED,e)},t.prototype.componentDidUpdate=function(e,t){if(this.setVisibilityIfNeeded(e,t),this.props.isPrerenderMode!==e.isPrerenderMode){var r=document.body,o=document.documentElement,i=Zr.A.innerHeight,n=Math.max(r.scrollHeight,r.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight);this.getMoreItemsIfScrollIsDisabled(n,i)}},t.prototype.createDynamicStyles=function(e,t){var r=e.overlayBackground,o=t&&!this.props.settings.disableSSROpacity;this.dynamicStyles="\n      ".concat(o?"#pro-gallery-".concat(this.props.id," .gallery-item-container { opacity: 0 }"):"","\n      ").concat(r?"#pro-gallery-".concat(this.props.id," .gallery-item-hover::before { background: ").concat(r," !important}"):"","\n    ").trim()},t.prototype.createCssLayoutsIfNeeded=function(e){var t=this.props.settings;(void 0===t?{}:t).avoidInlineStyles&&(this.layoutCss=function(e){var t=e.galleryItems,r=e.layoutParams,o=e.id,i=[];return i.push(On(o,t,r.styleParams)),i}({layoutParams:e,isMobile:pr.A.isMobile(),id:this.props.id,galleryItems:this.galleryStructure.galleryItems}))},t.prototype.getScrollCss=function(e){var t=e.id,r=e.items,o=e.options,i=e.container;this.scrollCss=vi.calcScrollCss({items:r,options:o,id:t,container:i})},t.prototype.toggleLoadMoreItems=function(){var e=this;this.eventsListener(dr.A.events.LOAD_MORE_CLICKED,this.galleryStructure.galleryItems);var t=!0;if(this.state.showMoreClickedAtLeastOnce)this.setState({needToHandleShowMoreClick:t},(function(){e.handleNewGalleryStructure()}));else{this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container});var r=this.state.container.height;this.setState({showMoreClickedAtLeastOnce:!0,initialGalleryHeight:r,needToHandleShowMoreClick:t},(function(){e.handleNewGalleryStructure()}))}},t.prototype.setGotFirstScrollIfNeeded=function(){this.state.gotFirstScrollEvent||(this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container}),this.setState({gotFirstScrollEvent:!0}))},t.prototype.setCurrentSlideshowViewIdx=function(e){this.currentSlideshowViewIdx=e},t.prototype.simulateHorizontalScrollToItem=function(e){(null==e?void 0:e.offset)&&this.onGalleryScroll({left:e.offset.left})},t.prototype.eventsListener=function(e,t,r){var o=this;if(this.videoScrollHelper.handleEvent({eventName:e,eventData:t}),e===dr.A.events.HOVER_SET&&(this.currentHoverChangeEvent.currentHoverIdx=t,Zr.A.dispatchEvent(this.currentHoverChangeEvent)),e===dr.A.events.CURRENT_ITEM_CHANGED&&(this.setCurrentSlideshowViewIdx(t.idx),this.getIsScrollLessGallery(this.state.options)&&this.state.firstUserInteractionExecuted&&this.simulateHorizontalScrollToItem(this.galleryStructure.items[t.idx])),!this.state.firstUserInteractionExecuted)switch(e){case dr.A.events.HOVER_SET:case dr.A.events.LOAD_MORE_CLICKED:case dr.A.events.ITEM_ACTION_TRIGGERED:this.setState({firstUserInteractionExecuted:!0})}if("function"==typeof this.props.eventsListener)switch(e){case dr.A.events.ITEM_ACTION_TRIGGERED:case dr.A.events.ITEM_CLICKED:setTimeout((function(){o.props.eventsListener(e,t,r)}),0);break;default:this.props.eventsListener(e,t,r)}if(e===dr.A.events.GALLERY_SCROLLED){this.videoScrollHelper.trigger.SCROLL(t);var i=(0,f.__assign)((0,f.__assign)({},this.state.scrollPosition),t);this.setState({scrollPosition:i})}},t.prototype.getMoreItemsIfNeeded=function(e){var t,r=this;if(null===(t=this.deferredGettingMoreItems)||void 0===t?void 0:t.isPending);else if(this.deferredGettingMoreItems=new Mn.c,this.galleryStructure&&this.galleryStructure.galleryItems&&this.galleryStructure.galleryItems.length>0&&this.state.items&&this.state.options&&this.state.container){var o=this.state.options.scrollDirection,i=this.galleryStructure[o===dr.A.scrollDirection.HORIZONTAL?"width":"height"]+(o===dr.A.scrollDirection.HORIZONTAL?0:this.state.container.scrollBase),n=Zr.A[o===dr.A.scrollDirection.HORIZONTAL?"innerWidth":"innerHeight"];i<(e?3*n:0)+(e+n)?(this.eventsListener(dr.A.events.NEED_MORE_ITEMS,this.state.items.length),setTimeout((function(){r.deferredGettingMoreItems.resolve()}),2e3)):this.deferredGettingMoreItems.reject()}else this.deferredGettingMoreItems.reject();return this.deferredGettingMoreItems.promise.catch((function(){}))},t.prototype.canRender=function(){var e=this.props.container&&this.props.options&&this.state.items;return!e&&pr.A.isVerbose()&&console.log("PROGALLERY [CAN_RENDER] GalleryContainer",e,this.props.container,this.props.options,this.state.items),e},t.prototype.onMouseEnter=function(){var e;(null===(e=this.currentScrollData)||void 0===e?void 0:e.isContinuousScrolling)&&this.state.options.pauseAutoSlideshowOnHover&&(0,In.HC)(this.currentScrollData),this.setState({isInHover:!0})},t.prototype.onMouseLeave=function(){this.setState({isInHover:!1})},t.prototype.render=function(){var e,t,r,o=this;if(!this.canRender())return null;var i=this.props.options.scrollDirection===dr.A.scrollDirection.HORIZONTAL?An:Wi;pr.A.isVerbose()&&(console.count("PROGALLERY [COUNTS] - GalleryContainer (render)"),console.log("PROGALLERY [RENDER] - GalleryContainer",this.props.container.scrollBase,{props:this.props,items:this.state.items}));var a="none"===this.containerInfiniteGrowthDirection();return n().createElement("div",{"data-key":"pro-gallery-inner-container",key:"pro-gallery-inner-container",className:this.props.isPrerenderMode?"pro-gallery-prerender":"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:function(e){return o.galleryContainerRef=e},tabIndex:-1},n().createElement(Tn,{id:this.props.id,scrollDirection:this.props.options.scrollDirection,isRTL:this.props.options.isRTL,totalWidth:this.galleryStructure.width,scrollBase:this.props.container.scrollBase,scrollingElement:this._scrollingElement,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,onScroll:this.onGalleryScroll}),n().createElement(i,(0,f.__assign)({isInDisplay:this.props.isInDisplay,isInViewport:this.state.isInViewport,isPrerenderMode:this.props.isPrerenderMode,scrollingElement:this._scrollingElement,totalItemsCount:this.props.totalItemsCount,renderedItemsCount:this.props.renderedItemsCount,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,gotFirstScrollEvent:this.state.gotFirstScrollEvent,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,items:this.state.items,getVisibleItems:this.getVisibleItems,galleryStructure:this.galleryStructure,options:this.props.options,container:this.props.container,settings:this.props.settings,displayShowMore:a,id:this.props.id,activeIndex:this.props.activeIndex||0,customComponents:this.props.customComponents,playingVideoIdx:this.state.playingVideoIdx,noFollowForSEO:this.props.noFollowForSEO,proGalleryRegionLabel:this.props.proGalleryRegionLabel,proGalleryRole:this.props.proGalleryRole,firstUserInteractionExecuted:this.state.firstUserInteractionExecuted,isGalleryInHover:this.state.isInHover,enableExperimentalFeatures:this.props.enableExperimentalFeatures,galleryContainerRef:this.galleryContainerRef,outOfViewComponent:this.outOfViewComponent,virtualizationSettings:this.props.virtualizationSettings,galleryContainerId:"pro-gallery-container-".concat(this.props.id),scrollTop:null===(t=null===(e=this.state)||void 0===e?void 0:e.scrollPosition)||void 0===t?void 0:t.top,isScrollLessGallery:this.getIsScrollLessGallery(this.state.options),shouldDisableItemFocus:this.props.shouldDisableItemFocus,actions:(0,f.__assign)((0,f.__assign)({},this.props.actions),{findNeighborItem:this.findNeighborItem,toggleLoadMoreItems:this.toggleLoadMoreItems,eventsListener:this.eventsListener,setWixHeight:function(){},scrollToItem:this.scrollToItem,scrollToGroup:this.scrollToGroup})},this.props.gallery)),n().createElement("div",{"data-key":"items-styles",key:"items-styles",style:{display:"none"}},(this.layoutCss||[]).filter(Boolean).map((function(e,t){return n().createElement("style",{id:"layoutCss-".concat(t),key:"layoutCss-".concat(t),dangerouslySetInnerHTML:{__html:e}})})),(this.scrollCss||[]).filter(Boolean).map((function(e,t){return n().createElement("style",{id:"scrollCss_".concat(t),key:"scrollCss_".concat(t),dangerouslySetInnerHTML:{__html:e}})})),!!this.dynamicStyles&&n().createElement("style",{dangerouslySetInnerHTML:{__html:this.dynamicStyles}})),"application"===this.props.proGalleryRole&&n().createElement("span",{ref:function(e){return o.outOfViewComponent=e},tabIndex:-1,className:"sr-only out-of-view-component"},null===(r=this.props.translations)||void 0===r?void 0:r.Accessibility_Left_Gallery))},t}(n().Component);const kn=Rn;var Dn=function(e){function t(){var t=e.call(this)||this;return pr.A.isLocal()&&!pr.A.isTest()&&console.log("PRO GALLERY DEV"),t}return(0,f.__extends)(t,e),t.prototype.renderProps=function(){var e;return(0,f.__assign)((0,f.__assign)({},this.props),{id:this.props.id,items:this.props.items||[],settings:this.props.settings||{},offsetTop:this.props.offsetTop,proGalleryRegionLabel:this.props.proGalleryRegionLabel,isInDisplay:null===(e=this.props.isInDisplay)||void 0===e||e})},t.prototype.containerProps=function(){return{id:"pro-gallery-".concat(this.props.id),className:"pro-gallery"}},t.prototype.render=function(){return n().createElement("div",(0,f.__assign)({},this.containerProps()),n().createElement(kn,(0,f.__assign)({},this.renderProps())))},t}(n().Component);const Bn=Dn;function Hn(e,t){return!0!==t&&(!0===e.shouldValidateTypes||"true"===(function(){try{var e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}catch(e){return console.log("cannot use the URLSearchParams",e),{}}}()||""))}var Vn=function(e){function t(t){var r=e.call(this,t)||this;return r.isUsingCustomInfoElements=r.isUsingCustomInfoElements.bind(r),r.blueprintsManager=new ri({id:"layoutingGallery"}),r.blueprintsManager.init({deviceType:t.deviceType,api:{isUsingCustomInfoElements:r.isUsingCustomInfoElements,fetchMoreItems:function(e){"function"==typeof t.eventsListener&&t.eventsListener(dr.A.events.NEED_MORE_ITEMS,e)},onBlueprintReady:function(e){var t=e.blueprint,o=e.blueprintChanged,i=e.initialBlueprint;o?r.setBlueprint(t,i):pr.A.isVerbose()&&console.count(">>> Blueprint not changed, not setting it")}}}),r.onNewProps(t,!0),r.state={blueprint:r.blueprintsManager.createInitialBlueprint(t)||null},r}return(0,f.__extends)(t,e),t.prototype.setBlueprint=function(e,t){t||this.setState({blueprint:e})},t.prototype.isUsingCustomInfoElements=function(){return!!this.galleryProps.customComponents.customHoverRenderer||!!this.galleryProps.customComponents.customInfoRenderer},t.prototype.onNewProps=function(e,t){var r=this,o=e.eventsListener,i=(0,f.__rest)(e,["eventsListener"]);this.galleryProps=(0,f.__assign)((0,f.__assign)({},i),{eventsListener:function(e,t,i){e===dr.A.events.NEED_MORE_ITEMS?r.blueprintsManager.getMoreItems(t):"function"==typeof o&&o(e,t,i)},id:e.id||"default-dom-id",customComponents:e.customComponents||{}}),t||this.blueprintsManager.createBlueprint(this.galleryProps).catch((function(e){console.error("Could not create a blueprint from the new props",e)}))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.onNewProps(e,!1)},t.prototype.render=function(){var e=this.state,t=e.blueprint,r=e.typeErrors;return r||(t&&Object.keys(t).length>0?n().createElement(Bn,(0,f.__assign)({},this.galleryProps,t)):null)},t.prototype.componentDidMount=function(){return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,t,o,i;return(0,f.__generator)(this,(function(n){switch(n.label){case 0:return!1===Hn(this.props,pr.A.isSSR())?[2]:[4,r.e(8638).then(r.bind(r,3598))];case 1:return e=n.sent(),t=e.validate,o=e.typeErrorsUI,(i=t(this.state.blueprint.options)).length>0&&this.setState({typeErrors:o(i)}),[2]}}))}))},t}(n().Component);const Fn=(Gn=Vn,function(e){function t(t){var r=e.call(this,t)||this;return r.initViewModeWrapper(t),r}return(0,f.__extends)(t,e),t.prototype.initViewModeWrapper=function(e){void 0!==e.viewMode&&ei.CB.setViewMode(e.viewMode),void 0!==e.deviceType&&ei.CB._deviceType!==e.deviceType&&(pr.A.dumpCache(),ei.CB.setDeviceType(e.deviceType))},t.prototype.updateViewModeWrapper=function(e){this.props.viewMode!==e.viewMode&&(pr.A.dumpCache(),ei.CB.setViewMode(e.viewMode)),this.props.deviceType!==e.deviceType&&(pr.A.dumpCache(),ei.CB.setDeviceType(e.deviceType))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.updateViewModeWrapper(e)},t.prototype.render=function(){return n().createElement(Gn,(0,f.__assign)({},this.props))},t}(n().Component));var Gn,zn=r(68701),Wn=r(21504),Un=r(45967);const jn={PLAY:"play",SOUND:"sound",PLAYBACK_SPEED:"playbackSpeed",LOOP:"loop",SHOW_PLAY_BUTTON:"showPlayButton"},Kn=["hover","auto","onClick"],Zn=["0.25","0.5","1","1.25","1.50","2"],$n={[jn.PLAY]:{defaultValue:0,param:"play",appSettingsPath:"style.numbers.postListWidgetPostsPerPage",values:{ON_HOVER:0,AUTOPLAY:1,ON_CLICK:2}},[jn.SOUND]:{defaultValue:!1,param:"sound"},[jn.PLAYBACK_SPEED]:{defaultValue:2,param:"playbackSpeed",values:{"0.25x":0,"0.5x":1,"1x":2,"1.25x":3,"1.5x":4,"2x":5}},[jn.LOOP]:{defaultValue:!0,param:"loop"},[jn.SHOW_PLAY_BUTTON]:{defaultValue:!0,param:"showPlayButton"}},qn=(e,t)=>`${(e=>e===dt.wj?dt.wj:e===dt.CI?dt.CI:dt.gY.includes(e)?"feed-page":"unknown")(e)}-video-${$n[t].param}`,Yn=(e,t)=>"number"==typeof $n[t].defaultValue?`style.numbers.${qn(e,t)}`:`style.booleans.${qn(e,t)}`,{PLAY:Xn,PLAYBACK_SPEED:Qn,SOUND:Jn,LOOP:ea,SHOW_PLAY_BUTTON:ta}=jn,ra=(0,Un.Mz)([(e,t)=>{const r=(0,le.get)(e.appSettings,Yn(t,Xn),$n[Xn].defaultValue);return Kn[r]},(e,t)=>{const r=(0,le.get)(e.appSettings,Yn(t,Qn),$n[Qn].defaultValue);return Zn[r]},(e,t)=>(0,le.get)(e.appSettings,Yn(t,Jn),$n[Jn].defaultValue),(e,t)=>(0,le.get)(e.appSettings,Yn(t,ea),$n[ea].defaultValue),(e,t)=>(0,le.get)(e.appSettings,Yn(t,ta),$n[ta].defaultValue)],((e,t,r,o,i)=>({play:e,playbackSpeed:t,sound:r,loop:o,showPlayButton:i})));var oa="specs.wixBlog.UseLayoutFixer";const ia="ITEM_CLICKED",na="item-media",aa="NEVER_SHOW",sa="NO_CHANGE",la="px",ua="FADE_IN",ca="NO_EFFECT",da="BLUR",pa="fill",ha="min",ga="max",ma="SHOW_ON_HOVER",fa="SHOW_BELOW",ya="SHOW_ON_THE_RIGHT",va="SHOW_ON_THE_LEFT",ba="MANUAL",Sa="MANUAL",Pa="PERCENT",wa=[null,va,ya],Ca=[null,16/9,4/3,1,3/4,9/16,16/7];var Ea=r(51880),Aa=r(1408),Ia=r(67957),_a=r(86579);const Ta=e=>{const t=(0,_a.A)(e),r=(0,ur.gc)(t.layoutType),o=(0,Ia.Yu)(t.layoutType,t.section),i=(0,zt.d4)(Ea.tl),n=(0,le.get)(i,o,1);return{...t,borderWidth:r?0:n}};var Oa=r(27342);function xa(e){const{borderWidth:t}=Ta(e),{applyFeedDesign:r}=(0,Oa.A)(null==e?void 0:e.section),o=(0,zt.d4)(Aa.S)||dt.ti,i=(0,zt.d4)(er.Ny),n=(0,zt.d4)((e=>(0,nr.NS)(e,o,i))),a=(0,ur.Sv)(n),s=(0,zt.d4)(ir.bu),l=(0,zt.d4)((e=>(0,ur.NN)(a)?0:(0,Ea.uD)(e,s?`post-${o}-mobile-borderWidth`:`post-${o}-borderWidth`)));return{borderWidth:r?l:t}}const Na=28,La=25,Ma=16,Ra=24,ka=34,Da=18,Ba=18,Ha=15,Va=8,Fa=11,Ga=10,za=10,Wa=12,Ua=2,ja=1,Ka=()=>{},Za={addEventListener:Ka,getAdsOnPage:Ka,isApplicationInstalled:(e,t)=>t(!1),removeEventListener:Ka,currentMember:e=>e(null),requestLogin:Ka,logOutCurrentMember:Ka,closeWindow:Ka,setHeight:Ka,resizeComponent:Ka,getBoundingRectAndOffsets:Ka,WindowOrigin:{},WindowPlacement:{},getCurrentPageId:e=>e("pageId"),getSitePages:()=>[{id:"/"}],getSiteInfo:Ka,navigateToPage:Ka,scrollTo:Ka,getSiteMap:e=>e([]),getPublicAPI:Ka,getSiteTextPresets:Ka,Events:{},PubSub:{publish:Ka,subscribe:Ka,unsubscribe:Ka},openPopup:Ka,Utils:{getUid:()=>"00000000-0000-0000-0000-000000000001",getSiteOwnerId:()=>"00000000-0000-0000-0000-000000000001",getSectionUrl:()=>`${window.location.protocol}//${window.location.host}/`,getInstanceId:()=>"33750584-5cda-44e1-8738-62a9139347b3",getInstanceValue:()=>"00000000-0000-0000-0000-000000000000",getViewMode:()=>"",navigateToSection:Ka},Performance:{applicationLoaded:Ka,applicationLoadingStep:Ka},Theme:{BARE:0},Styles:{getSiteTextPresets:Ka,getSiteColors:Ka,getStyleParams:e=>e({})},Dashboard:{getEditorUrl:Ka},Settings:{setHelpArticle:Ka,triggerSettingsUpdatedEvent:Ka},Metadata:{removeAppMetadata:Ka,setAppMetadata:Ka}},$a=()=>ar()&&window.Wix||Za,qa={get:(e,t)=>$a()[t]},Ya=new Proxy($a(),qa),Xa=e=>{let{createdWithResponsiveEditor:t,section:r}=e;const o=dt.gY.includes(r);return t&&!o},Qa=e=>{let{borderWidth:t,createdWithResponsiveEditor:r,hostWidth:o,isMobile:i,layoutMargins:n,layoutPostSize:a,layoutType:s,rootWidth:l,section:u,useLayoutFixerExperimentEnabled:c,isEditor:d}=e;if((0,ur.js)(s)||(0,ur.ei)(s)||u===dt.$Y)return a;const p=o||l;if(function(e){return isNaN(e)||""===e}(p))return(0,ur.q7)(s)&&d?369:c?i?320:980:1;const h=Xa({createdWithResponsiveEditor:r,section:u});return(0,ur.q7)(s)?Math.max(1,p-2*n-2*t):h||n<1?p:Math.max(1,p-2*n)};const Ja=e=>{let{borderWidth:t,createdWithResponsiveEditor:r,hostWidth:o,isMobile:i,layoutContentHeight:n,layoutImageRatio:a,layoutMargins:s=0,layoutPostSize:l,layoutType:u,rootWidth:c,section:d,useLayoutFixerExperimentEnabled:p,useMobilePostListLayout:h,isEditor:g}=e;const m=Qa({borderWidth:t,createdWithResponsiveEditor:r,hostWidth:o,isMobile:i,layoutMargins:i&&!h?0:s,layoutPostSize:l,layoutType:u,rootWidth:c,section:d,useLayoutFixerExperimentEnabled:p,isEditor:g});if((0,ur.q7)(u)){let e=m+2*t;return Xa({createdWithResponsiveEditor:r,section:d})&&(e-=2*s),{width:m,height:e/(a??1)+n}}return{width:m,height:void 0}},es="vpm41p",ts=e=>{const t=n().useRef({page:e,pageStart:e});return(0,i.useEffect)((()=>{e!==t.current.pageStart&&(t.current={page:e,pageStart:e})}),[e]),t},rs=e=>{let{hasMore:t=!1,pageStart:r=2,children:o,loader:a,isLoading:s,loadMore:l}=e;const[u,c]=n().useState(!1),d=ts(r),{isSSR:p,isEditor:h}=Rt(),g=(0,i.useRef)(null),m=(e=>{let{scrollRef:t,delay:r=0}=e;const[o,n]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{let e;return setTimeout((()=>{e=new IntersectionObserver((e=>{let[t]=e;n(t.intersectionRatio>0)})),t.current&&e.observe(t.current)}),r),()=>{e&&e.disconnect()}}),[r,t]),o})({scrollRef:g,delay:h?1e3:0}),f=(0,i.useCallback)((()=>{s||u||(c(!0),l(d.current.page).finally((()=>{c(!1)})),d.current.page++)}),[s,u,l,d]),y=n().useMemo((()=>!(!t||s||u||p)&&!(h&&d.current.page>3)),[t,h,u,s,p,d]);return(0,i.useEffect)((()=>{m&&y&&f()}),[m]),n().createElement("div",null,o,n().createElement("div",{className:es,ref:g}),t&&(s||u)&&a)},os="JNxVBA",is="mnxIuN",ns=e=>{let{bubbleClassName:t="blog-text-background-color",dataHook:r}=e;const o=tt()(is,t);return n().createElement("div",{className:os,"data-hook":r},n().createElement("span",{className:o}),n().createElement("span",{className:o}),n().createElement("span",{className:o}))},as={HEADER_HEIGHT:ka+Da,FOOTER_HEIGHT:Ba+Ha+Va+ja,TITLE_MARGIN:Fa,VERTICAL_PADDING:Na+La,CATEGORY_LABEL_MARGIN:Wa,DEFAULT_TITLE_FONT_SIZE:22,DEFAULT_DESCRIPTION_FONT_SIZE:14},ss={[ur.ql]:as,[ur.qt]:as,[ur.Qc]:as,[ur.Em]:{HEADER_HEIGHT:ka+Da,FOOTER_HEIGHT:Ba+Ha+ja,TITLE_MARGIN:0,VERTICAL_PADDING:Na+La,CATEGORY_LABEL_MARGIN:Wa,DEFAULT_TITLE_FONT_SIZE:22,DEFAULT_DESCRIPTION_FONT_SIZE:14},[ur.xA]:{HEADER_HEIGHT:ka+Da,FOOTER_HEIGHT:Ba+Ha+Va+ja,TITLE_MARGIN:Fa,VERTICAL_PADDING:Na+La,CATEGORY_LABEL_MARGIN:Wa,DEFAULT_TITLE_FONT_SIZE:26,DEFAULT_DESCRIPTION_FONT_SIZE:16},[ur._m]:{HEADER_HEIGHT:ka+Da,FOOTER_HEIGHT:Ba+Ha+Va+ja,TITLE_MARGIN:Ga+za,VERTICAL_PADDING:Ma+Ra,CATEGORY_LABEL_MARGIN:Ua,DEFAULT_TITLE_FONT_SIZE:22,DEFAULT_DESCRIPTION_FONT_SIZE:12}},ls=0,us=1,cs="style.booleans.category-label-isMobileDesignSettingsEnabled",ds={textFont:{wixParam:"category-label-text-textFont",appSettingsPath:"style.fonts.category-label-text-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-text-textColor",appSettingsPath:"style.colors.category-label-text-textColor",defaultColor:"color-8"},textColorHover:{wixParam:"category-label-text-textColorHover",appSettingsPath:"style.colors.category-label-text-textColorHover",defaultColor:"color-8",defaultOpacity:.7},uppercase:{wixParam:"category-label-text-uppercase",appSettingsPath:"style.booleans.category-label-text-uppercase",defaultValue:!1}},ps={textFont:{wixParam:"category-label-text-mobile-textFont",appSettingsPath:"style.fonts.category-label-text-mobile-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-text-mobile-textColor",appSettingsPath:"style.colors.category-label-text-mobile-textColor",defaultColor:"color-8"},uppercase:{wixParam:"category-label-text-mobile-uppercase",appSettingsPath:"style.booleans.category-label-text-mobile-uppercase",defaultValue:!1}},hs={verticalPadding:{wixParam:"category-label-button-verticalPadding",appSettingsPath:"style.numbers.category-label-button-verticalPadding",defaultPadding:6,minPadding:0,maxPadding:100},horizontalPadding:{wixParam:"category-label-button-horizontalPadding",appSettingsPath:"style.numbers.category-label-button-horizontalPadding",defaultPadding:12,minPadding:0,maxPadding:100},textFont:{wixParam:"category-label-button-textFont",appSettingsPath:"style.fonts.category-label-button-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-button-textColor",appSettingsPath:"style.colors.category-label-button-textColor",defaultColor:"color-1"},uppercase:{wixParam:"category-label-button-uppercase",appSettingsPath:"style.booleans.category-label-button-uppercase",defaultValue:!1},backgroundColor:{wixParam:"category-label-button-backgroundColor",appSettingsPath:"style.colors.category-label-button-backgroundColor",defaultColor:"color-8",defaultOpacity:1},cornerRadius:{wixParam:"category-label-button-cornerRadius",appSettingsPath:"style.numbers.category-label-button-cornerRadius",defaultRadius:0,minRadius:0,maxRadius:100},borderColor:{wixParam:"category-label-button-borderColor",appSettingsPath:"style.colors.category-label-button-borderColor",defaultColor:"color-8",defaultOpacity:1},borderWidth:{wixParam:"category-label-button-borderWidth",appSettingsPath:"style.numbers.category-label-button-borderWidth",defaultWidth:0,minWidth:0,maxWidth:10},textColorHover:{wixParam:"category-label-button-textColorHover",appSettingsPath:"style.colors.category-label-button-textColorHover",defaultColor:"color-1",defaultOpacity:1},backgroundColorHover:{wixParam:"category-label-button-backgroundColorHover",appSettingsPath:"style.colors.category-label-button-backgroundColorHover",defaultColor:"color-8",defaultOpacity:.7},borderColorHover:{wixParam:"category-label-button-borderColorHover",appSettingsPath:"style.colors.category-label-button-borderColorHover",defaultColor:"color-8",defaultOpacity:.7}},gs={verticalPadding:{wixParam:"category-label-button-mobile-verticalPadding",appSettingsPath:"style.numbers.category-label-button-mobile-verticalPadding",defaultPadding:6,minPadding:0,maxPadding:100},horizontalPadding:{wixParam:"category-label-button-mobile-horizontalPadding",appSettingsPath:"style.numbers.category-label-button-mobile-horizontalPadding",defaultPadding:12,minPadding:0,maxPadding:100},textFont:{wixParam:"category-label-button-mobile-textFont",appSettingsPath:"style.fonts.category-label-button-mobile-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-button-mobile-textColor",appSettingsPath:"style.colors.category-label-button-mobile-textColor",defaultColor:"color-1"},uppercase:{wixParam:"category-label-button-mobile-uppercase",appSettingsPath:"style.booleans.category-label-button-mobile-uppercase",defaultValue:!1},backgroundColor:{wixParam:"category-label-button-mobile-backgroundColor",appSettingsPath:"style.colors.category-label-button-mobile-backgroundColor",defaultColor:"color-8",defaultOpacity:1},cornerRadius:{wixParam:"category-label-button-mobile-cornerRadius",appSettingsPath:"style.numbers.category-label-button-mobile-cornerRadius",defaultRadius:0,minRadius:0,maxRadius:100},borderColor:{wixParam:"category-label-button-mobile-borderColor",appSettingsPath:"style.colors.category-label-button-mobile-borderColor",defaultColor:"color-8",defaultOpacity:1},borderWidth:{wixParam:"category-label-button-mobile-borderWidth",appSettingsPath:"style.numbers.category-label-button-mobile-borderWidth",defaultWidth:0,minWidth:0,maxWidth:10}};var ms=r(67603);const fs=e=>(0,er.Ny)(e)&&(0,ms.EV)(e,cs),ys=e=>(0,Ea.EH)({state:e,key:fs(e)?"style.numbers.category-label-mobile-layoutType":"style.numbers.category-label-layoutType",fallback:ls}),vs=e=>ys(e)===ls,bs=e=>{const t=fs(e),r=ys(e);return{[ls]:t?ps:ds,[us]:t?gs:hs}[r]},Ss=(e,t)=>r=>{const o=bs(r);return(0,Ea.EH)({state:r,key:o[e].appSettingsPath,fallback:o[e][t]})},Ps=Ss("verticalPadding","defaultPadding"),ws=Ss("borderWidth","defaultWidth"),Cs=Ss("uppercase","defaultValue"),Es=(e,t,r)=>e?r*e:r*t,As=(e,t)=>{if(!(0,ir.Oc)(e))return 0;const r=(e=>{const{textFont:t}=bs(e);return(0,Ea.EH)({state:e,key:t.appSettingsPath})||{size:t.defaultSize}})(e);if(vs(e))return 1.5*r.size+t.CATEGORY_LABEL_MARGIN;return 1.5*r.size+2*ws(e)+2*Ps(e)+t.CATEGORY_LABEL_MARGIN},Is=(e,t,r)=>{const o=r||(0,nr.NS)(e,t,!1),i=ss[o],n=As(e,i),a=((e,t)=>{const r=(0,ir.p2)(e),o=(0,ir.TR)(e);return(0,ir.Gs)(e)||o||r?t.HEADER_HEIGHT:0})(e,i),s=((e,t)=>{const r=(0,ir.mI)(e),o=(0,ir.I)(e),i=(0,ir.sB)(e);return r||o||i?t.FOOTER_HEIGHT:0})(e,i),l=((e,t,r,o)=>{const i=(0,Ea.tl)(e),n=(0,ir.QM)({state:e,section:t,layoutType:r})||3,a=(0,le.get)(i,`style.fonts.post-${t}-titleFont`)??{},s=(0,er.Ny)(e)?(0,le.get)(i,`style.numbers.${(0,Ia.LL)(r,t,!0)}`):a.size;return Es(s||a.size,o.DEFAULT_TITLE_FONT_SIZE,1.5)*n+o.TITLE_MARGIN})(e,t,o,i),u=((e,t,r,o)=>{if(!(0,ir.EW)(e))return 0;const i=(0,Ea.tl)(e),n=(0,le.get)(i,`style.fonts.post-${t}-descriptionFont`)??{},a=(0,ir.iz)({state:e,section:t,layoutType:r})||3,s=(0,er.Ny)(e)?(0,le.get)(i,`style.numbers.${(0,Ia.X$)(r,t,!0)}`):n.size;return Es(s||n.size,o.DEFAULT_DESCRIPTION_FONT_SIZE,1.5)*a})(e,t,o,i),c=Math.ceil(a+s+l+u+n+i.VERTICAL_PADDING);return(0,er._o)(e)&&(console.groupCollapsed("blog auto height"),console.log("Constants"),console.table({...i,DEFAULT_TITLE_LINE_HEIGHT:1.5,DEFAULT_DESCRIPTION_LINE_HEIGHT:1.5,DEFAULT_CATEGORY_LABEL_LINE_HEIGHT:1.5}),console.log("Calculated components"),console.table({header:a,footer:s,title:l,description:u,categoryLabelSize:n,verticalPadding:i.VERTICAL_PADDING,total:c}),console.groupEnd()),c};var _s=r(14509),Ts=r(34672);const Os=e=>e.isPostInPreview;var xs=r(24885);const Ns=e=>{const t={...(0,le.keyBy)(e,"_id"),...(0,le.keyBy)(e,"id")};return delete t.undefined,delete t.null,t},Ls=2147483647,Ms=36,Rs=/^xn--/,ks=/[^\0-\x7E]/,Ds=/[\x2E\u3002\uFF0E\uFF61]/g,Bs={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Hs=Math.floor,Vs=String.fromCharCode;function Fs(e){throw new RangeError(Bs[e])}function Gs(e,t){const r=e.split("@");let o="";r.length>1&&(o=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let o=e.length;for(;o--;)r[o]=t(e[o]);return r}((e=e.replace(Ds,".")).split("."),t).join(".");return o+i}function zs(e){const t=[];let r=0;const o=e.length;for(;r<o;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<o){const o=e.charCodeAt(r++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),r--)}else t.push(i)}return t}const Ws=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Us=function(e,t,r){let o=0;for(e=r?Hs(e/700):e>>1,e+=Hs(e/t);e>455;o+=Ms)e=Hs(e/35);return Hs(o+36*e/(e+38))},js=function(e){const t=[],r=e.length;let o=0,i=128,n=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&Fs("not-basic"),t.push(e.charCodeAt(r));for(let l=a>0?a+1:0;l<r;){let a=o;for(let t=1,i=Ms;;i+=Ms){l>=r&&Fs("invalid-input");const a=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:Ms;(a>=Ms||a>Hs((Ls-o)/t))&&Fs("overflow"),o+=a*t;const u=i<=n?1:i>=n+26?26:i-n;if(a<u)break;const c=Ms-u;t>Hs(Ls/c)&&Fs("overflow"),t*=c}const u=t.length+1;n=Us(o-a,u,0==a),Hs(o/u)>Ls-i&&Fs("overflow"),i+=Hs(o/u),o%=u,t.splice(o++,0,i)}var s;return String.fromCodePoint(...t)},Ks=function(e){const t=[];let r=(e=zs(e)).length,o=128,i=0,n=72;for(const r of e)r<128&&t.push(Vs(r));let a=t.length,s=a;for(a&&t.push("-");s<r;){let r=Ls;for(const t of e)t>=o&&t<r&&(r=t);const l=s+1;r-o>Hs((Ls-i)/l)&&Fs("overflow"),i+=(r-o)*l,o=r;for(const r of e)if(r<o&&++i>Ls&&Fs("overflow"),r==o){let e=i;for(let r=Ms;;r+=Ms){const o=r<=n?1:r>=n+26?26:r-n;if(e<o)break;const i=e-o,a=Ms-o;t.push(Vs(Ws(o+i%a,0))),e=Hs(i/a)}t.push(Vs(Ws(e,0))),n=Us(i,l,s==a),i=0,++s}++i,++o}return t.join("")},Zs=function(e){return Gs(e,(function(e){return Rs.test(e)?js(e.slice(4).toLowerCase()):e}))},$s=function(e){return Gs(e,(function(e){return ks.test(e)?"xn--"+Ks(e):e}))};function qs(e,t){var r=arguments.length>=1;if(!(this instanceof qs))return r?arguments.length>=2?new qs(e,t):new qs(e):new qs;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}qs.version="1.19.2";var Ys=qs.prototype,Xs=Object.prototype.hasOwnProperty;function Qs(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function Js(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function el(e){return"Array"===Js(e)}function tl(e,t){var r,o,i={};if("RegExp"===Js(t))i=null;else if(el(t))for(r=0,o=t.length;r<o;r++)i[t[r]]=!0;else i[t]=!0;for(r=0,o=e.length;r<o;r++){(i&&void 0!==i[e[r]]||!i&&t.test(e[r]))&&(e.splice(r,1),o--,r--)}return e}function rl(e,t){var r,o;if(el(t)){for(r=0,o=t.length;r<o;r++)if(!rl(e,t[r]))return!1;return!0}var i=Js(t);for(r=0,o=e.length;r<o;r++)if("RegExp"===i){if("string"==typeof e[r]&&e[r].match(t))return!0}else if(e[r]===t)return!0;return!1}function ol(e,t){if(!el(e)||!el(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,o=e.length;r<o;r++)if(e[r]!==t[r])return!1;return!0}function il(e){return e.replace(/^\/+|\/+$/g,"")}function nl(e){return escape(e)}function al(e){return encodeURIComponent(e).replace(/[!'()*]/g,nl).replace(/\*/g,"%2A")}qs._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:qs.preventInvalidHostname,duplicateQueryParameters:qs.duplicateQueryParameters,escapeQuerySpace:qs.escapeQuerySpace}},qs.preventInvalidHostname=!1,qs.duplicateQueryParameters=!1,qs.escapeQuerySpace=!0,qs.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,qs.idn_expression=/[^a-z0-9\._-]/i,qs.punycode_expression=/(xn--)/i,qs.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,qs.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/gi,qs.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},qs.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},qs.hostProtocols=["http","https"],qs.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,qs.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},qs.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return qs.domAttributes[t]}},qs.encode=al,qs.decode=decodeURIComponent,qs.unicode=function(){qs.encode=al,qs.decode=decodeURIComponent},qs.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},qs.encodeQuery=function(e,t){var r=qs.encode(e+"");return void 0===t&&(t=qs.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},qs.decodeQuery=function(e,t){e+="",void 0===t&&(t=qs.escapeQuerySpace);try{return qs.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var sl,ll={encode:"encode",decode:"decode"},ul=function(e,t){return function(r){try{return qs[t](r+"").replace(qs.characters[e][t].expression,(function(r){return qs.characters[e][t].map[r]}))}catch(e){return r}}};for(sl in ll)qs[sl+"PathSegment"]=ul("pathname",ll[sl]),qs[sl+"UrnPathSegment"]=ul("urnpath",ll[sl]);var cl=function(e,t,r){return function(o){var i;i=r?function(e){return qs[t](qs[r](e))}:qs[t];for(var n=(o+"").split(e),a=0,s=n.length;a<s;a++)n[a]=i(n[a]);return n.join(e)}};function dl(e){return function(t,r){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}}function pl(e,t){return function(r,o){return void 0===r?this._parts[e]||"":(null!==r&&(r+="").charAt(0)===t&&(r=r.substring(1)),this._parts[e]=r,this.build(!o),this)}}qs.decodePath=cl("/","decodePathSegment"),qs.decodeUrnPath=cl(":","decodeUrnPathSegment"),qs.recodePath=cl("/","encodePathSegment","decode"),qs.recodeUrnPath=cl(":","encodeUrnPathSegment","decode"),qs.encodeReserved=ul("reserved","encode"),qs.parse=function(e,t){var r;return t||(t={preventInvalidHostname:qs.preventInvalidHostname}),(r=e.indexOf("#"))>-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=qs.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(qs.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3)?(e=e.substring(r+3),e=qs.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},qs.parseHost=function(e,t){e||(e="");var r,o,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,i)||null,"/"===t.port&&(t.port=null);else{var n=e.indexOf(":"),a=e.indexOf("/"),s=e.indexOf(":",n+1);-1!==s&&(-1===a||s<a)?(t.hostname=e.substring(0,i)||null,t.port=null):(o=e.substring(0,i).split(":"),t.hostname=o[0]||null,t.port=o[1]||null)}return t.hostname&&"/"!==e.substring(i).charAt(0)&&(i++,e="/"+e),t.preventInvalidHostname&&qs.ensureValidHostname(t.hostname,t.protocol),t.port&&qs.ensureValidPort(t.port),e.substring(i)||"/"},qs.parseAuthority=function(e,t){return e=qs.parseUserinfo(e,t),qs.parseHost(e,t)},qs.parseUserinfo=function(e,t){var r,o=e.indexOf("/"),i=e.lastIndexOf("@",o>-1?o:e.length-1);return i>-1&&(-1===o||i<o)?(r=e.substring(0,i).split(":"),t.username=r[0]?qs.decode(r[0]):null,r.shift(),t.password=r[0]?qs.decode(r.join(":")):null,e=e.substring(i+1)):(t.username=null,t.password=null),e},qs.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,o,i,n={},a=e.split("&"),s=a.length,l=0;l<s;l++)r=a[l].split("="),o=qs.decodeQuery(r.shift(),t),i=r.length?qs.decodeQuery(r.join("="),t):null,Xs.call(n,o)?("string"!=typeof n[o]&&null!==n[o]||(n[o]=[n[o]]),n[o].push(i)):n[o]=i;return n},qs.build=function(e){var t="",r=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",r=!0),t+=qs.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&r&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},qs.buildHost=function(e){var t="";return e.hostname?(t+=e.hostname,e.port&&(t+=":"+e.port),t):""},qs.buildAuthority=function(e){return qs.buildUserinfo(e)+qs.buildHost(e)},qs.buildUserinfo=function(e){var t="";return e.username&&(t+=qs.encode(e.username)),e.password&&(t+=":"+qs.encode(e.password)),t&&(t+="@"),t},qs.buildQuery=function(e,t,r){var o,i,n,a,s="";for(i in e)if(Xs.call(e,i))if(el(e[i]))for(o={},n=0,a=e[i].length;n<a;n++)void 0!==e[i][n]&&void 0===o[e[i][n]+""]&&(s+="&"+qs.buildQueryParameter(i,e[i][n],r),!0!==t&&(o[e[i][n]+""]=!0));else void 0!==e[i]&&(s+="&"+qs.buildQueryParameter(i,e[i],r));return s.substring(1)},qs.buildQueryParameter=function(e,t,r){return qs.encodeQuery(e,r)+(null!==t?"="+qs.encodeQuery(t,r):"")},qs.addQuery=function(e,t,r){if("object"==typeof t)for(var o in t)Xs.call(t,o)&&qs.addQuery(e,o,t[o]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=r);"string"==typeof e[t]&&(e[t]=[e[t]]),el(r)||(r=[r]),e[t]=(e[t]||[]).concat(r)}},qs.setQuery=function(e,t,r){if("object"==typeof t)for(var o in t)Xs.call(t,o)&&qs.setQuery(e,o,t[o]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===r?null:r}},qs.removeQuery=function(e,t,r){var o,i,n;if(el(t))for(o=0,i=t.length;o<i;o++)e[t[o]]=void 0;else if("RegExp"===Js(t))for(n in e)t.test(n)&&(e[n]=void 0);else if("object"==typeof t)for(n in t)Xs.call(t,n)&&qs.removeQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===Js(r)?!el(e[t])&&r.test(e[t])?e[t]=void 0:e[t]=tl(e[t],r):e[t]!==String(r)||el(r)&&1!==r.length?el(e[t])&&(e[t]=tl(e[t],r)):e[t]=void 0:e[t]=void 0}},qs.hasQuery=function(e,t,r,o){switch(Js(t)){case"String":break;case"RegExp":for(var i in e)if(Xs.call(e,i)&&t.test(i)&&(void 0===r||qs.hasQuery(e,i,r)))return!0;return!1;case"Object":for(var n in t)if(Xs.call(t,n)&&!qs.hasQuery(e,n,t[n]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(Js(r)){case"Undefined":return t in e;case"Boolean":return r===Boolean(el(e[t])?e[t].length:e[t]);case"Function":return!!r(e[t],t,e);case"Array":return!!el(e[t])&&(o?rl:ol)(e[t],r);case"RegExp":return el(e[t])?!!o&&rl(e[t],r):Boolean(e[t]&&e[t].match(r));case"Number":r=String(r);case"String":return el(e[t])?!!o&&rl(e[t],r):e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},qs.joinPaths=function(...e){const t=[],r=[];let o=0;for(const i of e){const e=new qs(i);t.push(e);const n=e.segment();for(const e of n)"string"==typeof e&&r.push(e),e&&o++}if(!r.length||!o)return new qs("");let i=new qs("").segment(r);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||(i=i.path("/"+i.path())),i.normalize()},qs.ensureValidHostname=function(e,t){var r=!!e,o=!1;if(!!t&&(o=rl(qs.hostProtocols,t)),o&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+t);if(e&&e.match(qs.invalid_hostname_characters)&&$s(e).match(qs.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')},qs.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},Ys.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=qs.build(this._parts),this._deferred_build=!1),this},Ys.clone=function(){return new qs(this)},Ys.valueOf=Ys.toString=function(){return this.build(!1)._string},Ys.protocol=dl("protocol"),Ys.username=dl("username"),Ys.password=dl("password"),Ys.hostname=dl("hostname"),Ys.port=dl("port"),Ys.query=pl("query","?"),Ys.fragment=pl("fragment","#"),Ys.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},Ys.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},Ys.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?qs.decodeUrnPath:qs.decodePath)(r):r}return this._parts.urn?this._parts.path=e?qs.recodeUrnPath(e):"":this._parts.path=e?qs.recodePath(e):"/",this.build(!t),this},Ys.path=Ys.pathname,Ys.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=qs._parts();var o=e instanceof qs,i="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[qs.getDomAttribute(e)]||"",i=!1);if(!o&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=qs.parse(String(e),this._parts);else{if(!o&&!i)throw new TypeError("invalid input");var n=o?e._parts:e;for(r in n)"query"!==r&&Xs.call(this._parts,r)&&(this._parts[r]=n[r]);n.query&&this.query(n.query,!1)}return this.build(!t),this},Ys.is=function(e){var t=!1,r=!1,o=!1,i=!1,n=!1,a=!1,s=!this._parts.urn;switch(this._parts.hostname&&(s=!1,n=(i=!(t=(r=qs.ip4_expression.test(this._parts.hostname))||o))&&qs.idn_expression.test(this._parts.hostname),a=i&&qs.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return s;case"absolute":return!s;case"domain":case"name":return i;case"sld":return!1;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return o;case"idn":return n;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return a}return null};var hl=Ys.protocol,gl=(Ys.port,Ys.hostname);Ys.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(qs.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return hl.call(this,e,t)},Ys.scheme=Ys.protocol,Ys.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==qs.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&qs.ensureValidHostname(e,this._parts.protocol)}return gl.call(this,e,t)},Ys.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var o=qs(e);return this.protocol(o.protocol()).authority(o.authority()).build(!t),this},Ys.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?qs.buildHost(this._parts):"";if("/"!==qs.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},Ys.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?qs.buildAuthority(this._parts):"";if("/"!==qs.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},Ys.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,o=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?qs.decodePath(o):o}var i=this._parts.path.length-this.filename().length,n=this._parts.path.substring(0,i),a=new RegExp("^"+Qs(n));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=qs.recodePath(e),this._parts.path=this._parts.path.replace(a,e),this.build(!t),this},Ys.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),o=this._parts.path.substring(r+1);return e?qs.decodePathSegment(o):o}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var n=new RegExp(Qs(this.filename())+"$");return e=qs.recodePath(e),this._parts.path=this._parts.path.replace(n,e),i?this.normalizePath(t):this.build(!t),this},Ys.segment=function(e,t,r){var o=this._parts.urn?":":"/",i=this.path(),n="/"===i.substring(0,1),a=i.split(o);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(n&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(el(t)){a=[];for(var s=0,l=t.length;s<l;s++)(t[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(il(t[s])))}else(t||"string"==typeof t)&&(t=il(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=il(t):a.splice(e,1);return n&&a.unshift(""),this.path(a.join(o),r)};var ml=Ys.query;Ys.query=function(e,t){if(!0===e)return qs.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var r=qs.parseQuery(this._parts.query,this._parts.escapeQuerySpace),o=e.call(this,r);return this._parts.query=qs.buildQuery(o||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=qs.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):ml.call(this,e,t)},Ys.setQuery=function(e,t,r){var o=qs.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)o[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in e)Xs.call(e,i)&&(o[i]=e[i])}return this._parts.query=qs.buildQuery(o,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},Ys.addQuery=function(e,t,r){var o=qs.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return qs.addQuery(o,e,void 0===t?null:t),this._parts.query=qs.buildQuery(o,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},Ys.removeQuery=function(e,t,r){var o=qs.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return qs.removeQuery(o,e,t),this._parts.query=qs.buildQuery(o,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},Ys.hasQuery=function(e,t,r){var o=qs.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return qs.hasQuery(o,e,t,r)},Ys.setSearch=Ys.setQuery,Ys.addSearch=Ys.addQuery,Ys.removeSearch=Ys.removeQuery,Ys.hasSearch=Ys.hasQuery,Ys.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},Ys.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},Ys.normalizeHostname=function(e){return this._parts.hostname&&(this.is("IDN")&&(this._parts.hostname=$s(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!e)),this},Ys.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===qs.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},Ys.normalizePath=function(e){var t,r=this._parts.path;if(!r)return this;if(this._parts.urn)return this._parts.path=qs.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var o,i,n="";for("/"!==(r=qs.recodePath(r)).charAt(0)&&(t=!0,r="/"+r),"/.."!==r.slice(-3)&&"/."!==r.slice(-2)||(r+="/"),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(n=r.substring(1).match(/^(\.\.\/)+/)||"")&&(n=n[0]);-1!==r.search(/\/\.\.(\/|$)/)&&-1!==(o=r.search(/\/\.\.(\/|$)/));)0!==o?(-1===(i=r.substring(0,o).lastIndexOf("/"))&&(i=o),r=r.substring(0,i)+r.substring(o+3)):r=r.substring(3);return t&&this.is("relative")&&(r=n+r.substring(1)),this._parts.path=r,this.build(!e),this},Ys.normalizePathname=Ys.normalizePath,Ys.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(qs.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},Ys.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},Ys.normalizeSearch=Ys.normalizeQuery,Ys.normalizeHash=Ys.normalizeFragment,Ys.unicode=function(){var e=qs.encode,t=qs.decode;qs.encode=al,qs.decode=unescape;try{this.normalize()}finally{qs.encode=e,qs.decode=t}return this},Ys.readable=function(){var e=this.clone();e.username("").password("").normalize();var t="";if(e._parts.protocol&&(t+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")?(t+=Zs(e._parts.hostname),e._parts.port&&(t+=":"+e._parts.port)):t+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(t+="/"),t+=e.path(!0),e._parts.query){for(var r="",o=0,i=e._parts.query.split("&"),n=i.length;o<n;o++){var a=(i[o]||"").split("=");r+="&"+qs.decodeQuery(a[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==a[1]&&(r+="="+qs.decodeQuery(a[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}t+="?"+r.substring(1)}return t+=qs.decodeQuery(e.hash(),!0)},Ys.absoluteTo=function(e){var t,r=this.clone();if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");return e instanceof qs||(e=new qs(e)),r._parts.protocol?r:(r._parts.protocol=e._parts.protocol,this._parts.hostname||(["protocol","username","password","hostname","port"].forEach((t=>r._parts[t]=e._parts[t])),r._parts.path?(".."===r._parts.path.substring(-2)&&(r._parts.path+="/"),"/"!==r.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),r._parts.path=(t?t+"/":"")+r._parts.path,r.normalizePath())):(r._parts.path=e._parts.path,r._parts.query||(r._parts.query=e._parts.query)),r.build()),r)},Ys.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},Ys.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},Ys.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this};const fl=qs,yl=e=>{const t=new fl(e),r=t.pathname(),o=t.origin();let i=new fl(o+r).readable();return"/"!==r||e.endsWith("/")||(i=(0,le.trimEnd)(i,"/")),i+t.search()+t.hash()},vl=(e,t)=>yl(((e,t)=>{const r=new fl(t||"").unicode();if(""===e&&r.hostname()&&t?.endsWith(r.hostname()))return t;const o=new fl(e).unicode(),i=(0,le.trimEnd)(yl(r.pathname()),"/")+o.pathname(),n=(0,le.chain)([r.query(),o.query()]).compact().join("&").value();return r.pathname(i),r.query(n),r.hash(o.hash()||r.hash()),r.toString()})(e,t));var bl=r(91158);const Sl=e=>e.categories??[],Pl=((0,xs.Mz)([Sl,(e,t)=>t],((e,t)=>e.slice(0,t))),(0,xs.Mz)([Sl],(e=>{return t=e,Object.keys(Ns(t));var t})),(0,xs.Mz)([Sl],(e=>Ns(e)))),wl=function(e,t){return void 0===t&&(t={}),t.mainCategory??Al(e,t)},Cl=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),t.mainCategory)return t.mainCategory.link;const o=Al(e,t);return o?(({topology:e,to:t,shouldNavigateToFeed:r})=>{const{baseUrl:o,isHomePage:i,sectionUrl:n,postPageSectionUrl:a}=e,s="/"===t?"":t;return vl(s,r?""===s&&i?o:n:a)})({topology:r,to:`/${bl.uK}/${o.slug}`,shouldNavigateToFeed:!0}):void 0},El=function(e,t){var r,o;if(void 0===t&&(t={}),null!=(r=t.mainCategory)&&r.label)return null==(o=t.mainCategory)?void 0:o.label;const i=Al(e,t);return i?i.menuLabel??i.label:void 0};(0,xs.Mz)([Sl,(e,t)=>t],((e,t)=>(0,le.find)(e,(e=>(0,le.includes)(e.slugs,t)||(0,le.includes)(e.slugs,`${t}/`))))),(0,xs.Mz)([Sl,(e,t)=>t,(e,t,r)=>r],((e,t,r)=>e.find((e=>{var o;return e.language===r&&(null==(o=e.translations)?void 0:o.find((e=>{var r;let{url:o}=e;return null==o||null==(r=o.path)?void 0:r.includes(t)})))}))));function Al(e,t){var r;void 0===t&&(t={});const o=null==(r=t.categoryIds)?void 0:r[0];if(o)return((e,t)=>Pl(e)[t])(e,o)}const Il=e=>{const t=(0,zt.d4)(Ts.TH),r=(0,zt.d4)(Ts.Wv),o=(0,zt.d4)(ir.Cj),i=(0,zt.d4)(Os),n=!i&&(t?r:o),a=(0,zt.d4)((e=>!i&&(0,ir.an)(e))),s=(0,zt.d4)((e=>i?void 0:(0,ir.p0)(e))),l=(0,zt.d4)((e=>!i&&(0,ir.I)(e))),u=(0,zt.d4)((e=>n&&(0,ir.mI)(e))),c=(0,zt.d4)((e=>!i&&(0,ir.sB)(e))),d=(0,zt.d4)(ir.Gs),p=(0,zt.d4)(ir.yY),h=(0,zt.d4)(ir.dE),g=(0,zt.d4)(ir.fB),m=(0,zt.d4)(ir.oy),f=(0,zt.d4)(ir.TR),y=(0,zt.d4)(ir.p2),v=(0,zt.d4)((t=>(0,ir.EW)(t,null==e?void 0:e.section))),b=p!==cr.WB,S=(0,zt.d4)((e=>(0,ir.X8)(e,b))),P=(0,zt.d4)(ir._),w=(0,zt.d4)((t=>!!wl(t,null==e?void 0:e.post)&&(0,ir.Oc)(t))),C=(0,zt.d4)(ir.jd),E=(0,zt.d4)(ir.pJ);return{showComments:n,showViewCount:l,showCommentCount:u,showLikeCount:c,showAuthorName:d,showAuthorPicture:S,showPostUpdatedDate:h,showCategoryLabels:g,showPostTitle:m,showPublishDate:f,showReadingTime:y,showPostDescription:v,showMoreOptionsMenu:P,showCategoryLabel:w,isMetadataFooterVisible:!i&&(l||u||c),isMetadataHeaderVisible:d||f||y,showRelatedPosts:a,relatedPostsLabelKey:s,showPostRating:C,showTags:E}};var _l=r(54558);const Tl=()=>({titleFontClassName:"blog-post-title-font",contentFontClassName:(0,zt.d4)((e=>(0,_l.Ym)(e)?"blog-post-page-font":"blog-post-description-font")),contentFontClassNameWithStyle:"blog-post-description-style-font"}),Ol=e=>{const{section:t}=(0,_a.A)({section:e}),r=(0,zt.d4)(er.Ny),o=(0,zt.d4)((e=>(0,nr.NS)(e,t,r)));return{postTitleFontSize:(0,zt.d4)((e=>(0,ir.ny)(e,o,t,"title"))),postDescriptionFontSize:(0,zt.d4)((e=>(0,ir.ny)(e,o,t,"description"))),postMetadataFontSize:(0,zt.d4)((e=>(0,ir.ny)(e,o,t,"metadata"))),defaultPostTitleFontSize:(0,zt.d4)((e=>(0,ir.wH)(e,o,t,"title"))),defaultPostDescriptionFontSize:(0,zt.d4)((e=>(0,ir.wH)(e,o,t,"description")))}};var xl=r(93396);const Nl="posts",Ll=`posts-${xl.Is.unpublished}`,Ml=`posts-${xl.Is.published}`,Rl=`posts-${xl.Is.scheduled}`,kl=`posts-${xl.Is.deleted}`,Dl=`posts-${xl.Is.in_review}`;var Bl=r(13512);const Hl=(e,t)=>t||function(e){throw new Error(e)}("Missing second param in selector");var Vl=r(40795);const Fl=new RegExp(`^${Vl.YEAR_SLASH_MONTH_OPTIONAL_SLASH_DAY}/$`),Gl=e=>{let{year:t,month:r,day:o,postSlug:i}=e;return o?!isNaN(new Date(`${t}-${r}-${o}`).getTime()):Fl.test(`${t}/${r}/`)};r(63861);const zl=(0,xs.Mz)([e=>e.pagination,(e,t)=>t],((e,t)=>(0,le.get)(e,t,{}))),Wl=(0,xs.Mz)([zl],(e=>e.entitiesByPage)),Ul=((0,xs.Mz)([zl],(e=>e.entityCount)),(0,xs.Mz)([zl],(e=>e.currentPage||1))),jl=(0,xs.Mz)([Wl,Ul],((e,t)=>(0,le.get)(e,t))),Kl=((0,xs.Mz)([Wl],(e=>(0,le.toNumber)((0,le.last)(Object.keys(e).sort()))||1)),e=>e.posts??{}),Zl=(0,xs.Mz)([Kl,(e,t)=>t],((e,t)=>t?e[t]:void 0)),$l=(0,xs.Mz)([Kl,(e,t)=>t],((e,t)=>{if("string"!=typeof t)return;const r=t.toLowerCase(),[o,i,n]=(0,le.trimStart)(r,"/").split("/");return Gl({year:o,month:i,postSlug:n})?(0,le.find)(e,(e=>(0,le.includes)(e.slugs,r)||(0,le.includes)(e.slugs,`${r}/`))):(0,le.find)(e,(e=>(0,le.includes)(e.slugs,r)))})),ql=(e,t)=>{var r;return(null==(r=Wl(e,Nl))?void 0:r[t])??[]},Yl=(e,t,r)=>ql(e,r),Xl=e=>!!e&&e.status===xl.Is.published,Ql=e=>!!e&&e.status===xl.Is.unpublished,Jl=(e,t)=>!!t&&(0,le.includes)(t.categoryIds,e),eu=(0,le.curry)(((e,t)=>!!t&&(0,le.includes)(t.tagIds,e))),tu=(e,t,r)=>o=>{const i=((e,t)=>{const r=new Date(e);if(!t)return{month:r.getMonth()+1,year:r.getFullYear()};const[o,i]=r.toLocaleString("en",{timeZone:t,year:"numeric",month:"numeric"}).split("/");return{month:parseInt(o,10),year:parseInt(i,10)}})(o.firstPublishedDate,r);return i.year===parseInt(e,10)&&i.month===parseInt(t,10)},ru=((0,xs.Mz)([Kl,(e,t)=>t],((e,t)=>(0,Bl.Ql)((0,le.chain)(e).filter((e=>Jl(t,e))).value()))),(0,xs.Mz)([Kl,Hl,Yl],((e,t,r)=>(0,le.chain)(r).map((t=>e[t])).filter((e=>Jl(t,e))).value())),(0,xs.Mz)([Kl],(e=>(0,Bl.Ql)(Object.values(e)))),(0,xs.Mz)([Kl,ql],((e,t)=>t.map((t=>e[t])))),(0,xs.Mz)([Kl,(e,t)=>t,er.Md],((e,t,r)=>{let{year:o,month:i}=t;return(0,Bl.Ql)((0,le.chain)(e).filter(tu(o,i,r)).value())})),(0,xs.Mz)([Kl,Hl,Yl,er.Md],((e,t,r,o)=>{let{year:i,month:n}=t;return(0,le.chain)(r).map((t=>e[t])).filter(tu(i,n,o)).value()})),(0,xs.Mz)([Kl,(e,t)=>t],((e,t)=>(0,Bl.Ql)((0,le.chain)(e).filter(eu(t)).filter(Xl).value()))),(0,xs.Mz)([Kl,(e,t)=>t],((e,t)=>(0,le.chain)(e).filter((e=>{var r;return(null==(r=e.hashtags)?void 0:r.some((e=>e.toLowerCase()===t.toLowerCase())))??!1})).value())),(0,xs.Mz)([Kl,Hl,Yl],((e,t,r)=>(0,le.chain)(r).map((t=>e[t])).filter(eu(t)).value())),(0,xs.Mz)([Kl],(e=>(0,Bl.g3)(Object.values(e)))),(0,xs.Mz)([Kl],(e=>(0,Bl.py)(Object.values(e)))),(0,xs.Mz)([Kl],(e=>(0,le.values)(e)))),ou=((0,xs.Mz)([Kl],(e=>(0,le.values)(e))),(0,xs.Mz)([Kl,ql],((e,t)=>t.map((t=>e[t])))),(0,xs.Mz)([Kl],(e=>(0,le.filter)(e,Xl))),(0,xs.Mz)([Kl],(e=>(0,le.filter)(e,Ql))),(0,xs.Mz)([Kl],(e=>(0,le.chain)(e).filter(Xl).size().value())),(0,xs.Mz)([Kl],(e=>(0,le.chain)(e).filter(Ql).size().value())),(0,xs.Mz)([Kl,jl],((e,t)=>(0,le.chain)(t).map((t=>null==e?void 0:e[t])).compact().value())),e=>{var t;return null==(t=(e=>e.coverImage)(e))?void 0:t.src}),iu={center:"woUe2C",content:"mABNle",headerContainer:"Bt5sQV",metadataContainer:"dXvq5u",avatar:"H_gEjP",postDetails:"htMcyB",options:"bhsfaV",categoryLabel:"JGhsWK",textAlign:"HhgCcE",isRTL:"qikwPI",isRtl:"qikwPI",rating:"UjX6YI",end:"mW_sDH"};var nu=r(69653),au=r(39835);const su=e=>e.isLoaded,lu=function(e,t,r){return void 0===r&&(r=""),Boolean(r?(0,le.get)(su(e),[t,r]):su(e)[t])};var uu=r(39132);const cu=(e,t)=>e.postLikes[t]||{},du=(0,xs.Mz)(cu,(e=>e.liked)),pu=((0,xs.Mz)(cu,(e=>e.isLikeInProgress)),(0,xs.Mz)(cu,(e=>e.likeCount))),hu=e=>{let{count:t=0,countFormatted:r,i18nKey:o="counter.count",className:i,showZero:a=!0,ariaHidden:s,tabIndex:l}=e;const{t:u}=(0,nt.B)();return t>0||a&&0===t?n().createElement("span",{"aria-hidden":s,className:i,tabIndex:l},u(o,{count:t,numberFormatted:r})):null},gu=e=>n().createElement("svg",Dt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19","aria-hidden":"true"},e),n().createElement("path",{d:"M9.44985848,15.5291774 C9.43911371,15.5362849 9.42782916,15.5449227 9.41715267,15.5553324 L9.44985848,15.5291774 Z M9.44985848,15.5291774 L9.49370677,15.4941118 C9.15422701,15.7147757 10.2318883,15.0314406 10.7297038,14.6971183 C11.5633567,14.1372547 12.3827081,13.5410755 13.1475707,12.9201001 C14.3829188,11.9171478 15.3570936,10.9445466 15.9707237,10.0482572 C16.0768097,9.89330422 16.1713564,9.74160032 16.2509104,9.59910798 C17.0201658,8.17755699 17.2088969,6.78363112 16.7499013,5.65913129 C16.4604017,4.81092573 15.7231445,4.11008901 14.7401472,3.70936139 C13.1379564,3.11266008 11.0475663,3.84092251 9.89976068,5.36430396 L9.50799408,5.8842613 L9.10670536,5.37161711 C7.94954806,3.89335486 6.00516066,3.14638251 4.31830373,3.71958508 C3.36517186,4.00646284 2.65439601,4.72068063 2.23964629,5.77358234 C1.79050315,6.87166888 1.98214559,8.26476279 2.74015555,9.58185512 C2.94777753,9.93163559 3.23221417,10.3090129 3.5869453,10.7089994 C4.17752179,11.3749196 4.94653811,12.0862394 5.85617417,12.8273544 C7.11233096,13.8507929 9.65858244,15.6292133 9.58280954,15.555334 C9.53938013,15.5129899 9.48608859,15.5 9.50042471,15.5 C9.5105974,15.5 9.48275828,15.5074148 9.44985848,15.5291774 Z"})),mu={isLiked:"AsLaVa",heart:"LtaU1R",heartRing:"_zh4Km",active:"rbBvhf",heartSparkle:"IiFRN3",isAnimationEnabled:"U1kLgW","pop-bounce":"qrbXQX",popBounce:"qrbXQX",explode:"kWXE2n",shoot:"e1MjpB",pos1:"TlM_il",pos2:"h1CBon",pos3:"ab2Jus",pos4:"GKdqLq"},fu=e=>{let{isLiked:t}=e;const[r,o]=(0,i.useState)(!1);return n().createElement("span",{onClick:()=>o(!t),className:tt()("like-button",mu.heart,{[mu.active]:t},{[mu.isAnimationEnabled]:r}),"data-hook":"like-button","aria-hidden":"true"},[1,2,3,4].map((e=>n().createElement("span",{key:e,"aria-hidden":"true",className:mu[`pos${e}`]},n().createElement("span",{"aria-hidden":"true",className:mu.heartSparkle})))),n().createElement("span",{"aria-hidden":"true",className:mu.heartRing}),n().createElement(gu,{className:mu.heartBody}))},yu="Kh5HMz",vu="h7K_lu",bu="FYRNvd",Su="p9gct4",Pu="laz8E8",wu=e=>{let{className:t,showZero:r=!1,switchCounterAndButton:o=!1,postId:a}=e;const s=(0,zt.dN)(),{forPublicUser:l}=(0,uu.A)(),{count:u,liked:c,setState:d}=(e=>{const t=(0,zt.d4)((t=>pu(t,e))),r=(0,zt.d4)((t=>du(t,e))),[o,n]=(0,i.useState)({count:t,liked:r});return(0,i.useEffect)((()=>{n({count:t,liked:r})}),[t,r]),{...o,setState:n}})(a),p=l((()=>{s.incrementPostLikeCount(a,c),d((e=>({count:e.count+(e.liked?-1:1),liked:!e.liked})))})),{t:h}=(0,nt.B)(),g=(e=>{let{t,isLiked:r,likeCount:o,isComment:i}=e;const n=(e=>{let{t,likeCount:r}=e;return r?`${r} ${t(r>1?"like-button.total-likes_plural":"like-button.total-likes")}`:null})({t,likeCount:o}),a=(e=>{let{t,isComment:r,isLiked:o}=e;return t(o?r?"like-button.comment-is-liked":"like-button.is-liked":r?"like-button.comment-is-unliked":"like-button.is-unliked")})({t,isComment:i,isLiked:r});return n?`${n} ${a}`:a})({t:h,likeCount:u,isLiked:c,isComment:!1});return n().createElement("button",{className:tt()(yu,t),onClick:p},n().createElement("span",{"aria-live":"polite",className:Pu},g),n().createElement("span",{"aria-hidden":"true",className:tt()(vu,o&&Su),"data-hook":"like-button-with-count__like-count"},n().createElement(hu,{className:tt()(bu,"like-button-with-count__like-count"),count:u,showZero:r,ariaHidden:!0}),n().createElement(fu,{isLiked:c})))},Cu="t66ylj",Eu="eYQJQu",Au=e=>n().createElement("span",{className:tt()(Cu,e.className),"data-hook":e.dataHook},e.children,n().createElement(hu,Dt()({},e,{className:Eu}))),Iu=e=>{let{title:t,...r}=e;return n().createElement("svg",Dt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19"},r),n().createElement("title",null,t),n().createElement("path",{d:"M9.5,13 L15,13 C15.5522847,13 16,12.5522847 16,12 L16,12 L16,5 C16,4.44771525 15.5522847,4 15,4 L15,4 L4,4 L4,4 C3.44771525,4 3,4.44771525 3,5 L3,12 C3,12.5522847 3.44771525,13 4,13 L7,13 L7,15.5 L9.5,13 Z M15.0081158,13.973325 L10,13.973325 L7.42191625,16.5445317 C6.63661359,17.3277395 6,17.0667904 6,15.9700713 L6,13.973325 L3.99188419,13.973325 C2.89179693,13.973325 2,13.0706688 2,11.979044 L2,4.994281 C2,3.89287002 2.89339733,3 3.99188419,3 L15.0081158,3 C16.1082031,3 17,3.90265618 17,4.994281 L17,11.979044 C17,13.0804549 16.1066027,13.973325 15.0081158,13.973325 Z"}))},_u=e=>{let{count:t,countFormatted:r,showZero:o=!1}=e;const{t:i}=(0,nt.B)(),{iconColorClassName:a}=(0,au.A)();return n().createElement(Au,{dataHook:"comment-count-compact",ariaHidden:!0,count:t,countFormatted:r,showZero:o},n().createElement(Iu,{title:i("comment-count.label",{count:t,numberFormatted:r}),className:tt()(a,"blog-link-hover-fill")}))},Tu=(e,t)=>e.postCounters[t],Ou="bEeZ1_",xu=e=>{let{isLoaded:t,children:r,className:o,width:i}=e;const a=n().createElement(n().Fragment,null,"\xa0");return t?n().createElement("div",{className:o},r):n().createElement("div",{className:tt()(Ou,o),style:{"--width":i?`${i}px`:"300px"}},a)},Nu=e=>n().createElement(hu,Dt()({},e,{i18nKey:"view-count.label"}));var Lu=r(44886);const Mu=e=>ct()(e),Ru=e=>{let{title:t,...r}=e;return n().createElement("svg",Dt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19"},r),n().createElement("title",null,t),n().createElement("path",{d:"M18.6514224,10.4604595 C17.3924224,11.9688254 13.9774224,15.4790227 9.46342244,15.5 L9.42442244,15.5 C6.26242244,15.5 3.20842244,13.7938483 0.345422443,10.4264963 C-0.115140814,9.88163847 -0.115140814,9.08439833 0.345422443,8.5395405 C1.60442244,7.03117456 5.01942244,3.52097727 9.53342244,3.5 L9.57342244,3.5 C12.7354224,3.5 15.7894224,5.20615167 18.6524224,8.5735037 C19.1122856,9.11875503 19.1118633,9.91569484 18.6514224,10.4604595 Z M17.8674224,9.2228003 C15.2084224,6.09518855 12.4194224,4.50990594 9.57442244,4.50990594 L9.54042244,4.50990594 C5.46142244,4.52888537 2.30642244,7.78335969 1.14042244,9.18084575 C0.991393136,9.3517953 0.988008897,9.60533857 1.13242244,9.78019645 C3.79142244,12.9078082 6.58142244,14.4920919 9.42542244,14.4920919 L9.46042244,14.4920919 C13.5394224,14.4741114 16.6934224,11.2196371 17.8604224,9.822151 C18.0095734,9.6511131 18.0125381,9.39726759 17.8674224,9.2228003 L17.8674224,9.2228003 Z M9.49942244,13.3932823 C7.35251405,13.3646853 5.63255349,11.6080263 5.65157552,9.46333471 C5.67059754,7.31864313 7.42144652,5.59270141 9.56852513,5.6021069 C11.7156037,5.61151239 13.4512316,7.35272696 13.4514224,9.49750271 C13.4349115,11.6625186 11.6668124,13.4054651 9.49942244,13.3932823 L9.49942244,13.3932823 Z M9.49942244,6.61762258 C7.91092198,6.63961751 6.63891624,7.93990193 6.65354481,9.52676854 C6.66817338,11.1136351 7.96393479,12.3902997 9.55257137,12.3830695 C11.1412079,12.3758393 12.4252698,11.0874333 12.4254224,9.50049946 C12.4127657,7.89797688 11.1037033,6.60820738 9.49942244,6.61762258 L9.49942244,6.61762258 Z"}))},ku=(0,le.flowRight)(Mu,Lu.A)((e=>{let{t,iconColorClassName:r,...o}=e;return n().createElement(Au,Dt()({},o,{dataHook:"view-count-compact",ariaHidden:!0}),n().createElement(Ru,{"aria-label":t("view-count.label",{count:o.count,numberFormatted:o.countFormatted}),className:r}))})),Du="E54HWO",Bu=e=>{let{postId:t,displayIcons:r,className:o,isMetadataLoaded:i,showViewCount:a=!0,showCommentCount:s=!0,postCommentsDisabled:l}=e;const u=(0,zt.d4)((e=>((e,t)=>(0,le.get)(Tu(e,t),"viewCount",0))(e,t))),c=(0,zt.d4)((e=>((e,t)=>(0,le.get)(Tu(e,t),"totalComments",0))(e,t))),d=r?ku:Nu,p=r?_u:e=>n().createElement(hu,Dt()({i18nKey:"comment-count.label"},e)),h=s&&(c>0||!l);return n().createElement("div",{className:tt()(Du,"post-stats",o),"data-hook":"post-stats"},a&&n().createElement(xu,{isLoaded:i,width:30},n().createElement(d,{count:u,className:o})),h&&n().createElement(xu,{isLoaded:i,width:30},n().createElement(p,{showZero:!0,count:c,className:o})))},Hu={container:"NT9zC5","list-medium":"eJayAP",listMedium:"eJayAP","list-large":"T6pLzn",listLarge:"T6pLzn",list:"KToN9P",search:"zGPuSQ",leftButtons:"PsEy9r",rightButtons:"L2cuMO"},Vu=e=>{let{post:t,displayIcons:r=!1,type:o,className:i,inPostPage:a=!1}=e;const{showViewCount:s,showCommentCount:l,showLikeCount:u}=Il({post:t}),{textColorClassName:c}=(0,au.A)(),{contentFontClassName:d}=Tl(),p=(0,zn.S)(t),h=(0,zt.d4)((e=>!a||(e=>lu(e,"post-metadata"))(e)));return n().createElement("div",{"data-hook":"post-footer",className:tt()(Hu.container,o?Hu[o]:void 0,d,c,"post-footer",i)},(s||l)&&n().createElement("div",{className:Hu.leftButtons},n().createElement(Bu,{postId:p,isMetadataLoaded:h,postCommentsDisabled:t.isCommentsDisabled,displayIcons:r,showViewCount:s,showCommentCount:l})),u&&n().createElement("div",{className:Hu.rightButtons},n().createElement(xu,{isLoaded:h,width:40},n().createElement(wu,{key:p,postId:p,className:"post-footer__like-button"}))))};var Fu=r(4040);const Gu=e=>e.topology??{},zu=e=>Gu(e).baseUrl??"",Wu=e=>{let{path:t,sectionId:r,children:o,onClick:i,...a}=e;const s=(0,zt.d4)(er.IC),l=(0,zt.dN)();return n().createElement("a",Dt()({},a,{onClick:e=>{const o="FEEDBACK"===new URLSearchParams(window.location.search).get("rc");if((!s||o)&&r)return e.preventDefault(),void(o?l.navigateProGalleryWithinPostPage(t):l.navigateToSectionInPreview(t,r));null==i||i()}}),o)},Uu="Ym42pV",ju=e=>{let{categoryLink:t,categoryPath:r,children:o,...i}=e;return n().createElement(Wu,Dt()({},i,{href:t,path:`${bl.uK}/${(0,le.trimStart)(r,"/")}`,sectionId:"blog",className:tt()(Uu,i.className)}),o)},Ku={container:"CS4xCt",link:"pratMU","list-medium":"d7TwYL",listMedium:"d7TwYL","list-large":"g99UQY",listLarge:"g99UQY",list:"u0T9F0",slider:"TRcECH","text-on-image-medium":"ewnq0g",textOnImageMedium:"ewnq0g","pg-text-on-image-small":"dU7Co_",pgTextOnImageSmall:"dU7Co_","pg-text-on-image-large":"TpXFK4",pgTextOnImageLarge:"TpXFK4","pg-text-on-image-medium":"sEWsEY",pgTextOnImageMedium:"sEWsEY",categoryLabelButton:"dqpczu",categoryLabelText:"SkWvPq",mobile:"iT3c03"},Zu=e=>{let{post:t,postListLayout:r,className:o}=e;const{mainCategory:i,mainCategoryDisplayLabel:a,mainCategoryLink:s,isCategoryLabelLayoutText:l,isCategoryLabelUpperCase:u,useMobileSettings:c,categoryLabelClicked:d}=(0,zt.d4)(((e,r,o)=>({mainCategory:wl(e,t),mainCategoryDisplayLabel:El(e,t),mainCategoryLink:Cl(e,t,Gu(e)),isCategoryLabelLayoutText:vs(e),isCategoryLabelUpperCase:Cs(e),useMobileSettings:fs(e),categoryLabelClicked:o.categoryLabelClicked}))),p=u?null==a?void 0:a.toUpperCase():a;if(!p||!s||null==i||!i.slug)throw new Error("Category is missing label or link");const h=tt()([Ku.container,r?Ku[r]:void 0,o]),g=tt()([c&&Ku.mobile,l?Ku.categoryLabelText:Ku.categoryLabelButton]);return n().createElement("div",{className:h,"data-hook":"post-category-label"},n().createElement(ju,{categoryLink:s,categoryPath:i.slug,className:g,onClick:()=>d(i)},p))},$u=e=>{let{post:t,type:r}=e;return Il({post:t}).showCategoryLabel?n().createElement(Zu,{className:tt()(iu.categoryLabel,nu.A.categoryLabelWrapper),post:t,postListLayout:r}):null};var qu=r(85467);const Yu=function(e,t){return r=>{const o=(0,zt.d4)(qu.g)?e:t;return n().createElement(o,r)}};var Xu=r(30223);const Qu=e=>{e.stopPropagation(),e.preventDefault()},Ju=e=>{let{children:t,...r}=e;const o=(0,le.omit)(r,["user","tReady","lng"]);return n().createElement("span",Dt()({style:{pointerEvents:"none"}},o,{onClick:Qu}),t)};const ec=e=>{let{to:t,children:r,...o}=e;const i=(0,zt.d4)(zu);return n().createElement("a",Dt()({href:`${(0,le.trimEnd)(i,"/")}${t}`},o),r)},tc=Yu(function(e,t){return void 0===t&&(t=Ju),r=>{var o;return(null==(o=r.user)?void 0:o.privacyStatus)===Xu.g?n().createElement(t,r):n().createElement(e,r)}}((e=>{let{user:t,className:r,children:o}=e;const i=(0,zt.dN)(),a=(0,zt.d4)((e=>((e,t)=>{var r;return null!=t&&t.siteMemberId?null==(r=(e=>e.profileUrls)(e))?void 0:r[null==t?void 0:t.siteMemberId]:void 0})(e,t)));return n().createElement(ec,{onClick:e=>{e.preventDefault(),i.navigateToProfile(null==t?void 0:t.siteMemberId,null==t?void 0:t.slug)},"data-hook":"profile-link",href:a,className:r},o)})),Ju),rc="tQ0Q1A",oc=e=>{let{name:t,className:r}=e;return n().createElement("span",{title:t,className:tt()(rc,"user-name",r),"data-hook":"user-name"},t)},ic={en:{s:"1s",ss:"%ds",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd"},nl:{s:"1sec.",ss:"%dsec.",m:"1min.",mm:"%dmin.",h:"1u.",hh:"%du."},cs:{s:"1sek",ss:"%dsek",m:"1min",mm:"%dmin",h:"1hod",hh:"%dhod"},da:{s:"1s",ss:"%ds",m:"1m",mm:"%dm",h:"1t",hh:"%dt"},de:{s:"1Sek.",ss:"%dSek.",m:"1Min.",mm:"%dMin.",h:"1Std.",hh:"%dStd."},fr:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},hi:{s:"1\u0938\u0947",ss:"%d\u0938\u0947",m:"1\u092e\u093f",mm:"%d\u092e\u093f",h:"1\u0918\u0902\u091f\u093e",hh:"%d\u0918\u0902\u091f\u093e"},it:{s:"1sec",ss:"%dsec",m:"1min",mm:"%dmin",h:"1ora",hh:"%dore"},ja:{s:"1\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593"},ko:{s:"1\ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"1\uc2dc\uac04",hh:"%d\uc2dc\uac04"},lt:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1val",hh:"%dval"},nb:{s:"1sek",ss:"%dsek",m:"1min",mm:"%dmin",h:"1time",hh:"%dtimer"},pl:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},pt:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},es:{s:"1seg",ss:"%dseg",m:"1min",mm:"%dmin",h:"1h",hh:"%dhs"},sv:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},th:{s:"1\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1\u0e19\u0e32\u0e17\u0e35",mm:"%d\u0e19\u0e32\u0e17\u0e35",h:"1\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},tr:{s:"1sn.",ss:"%dsn.",m:"1dk.",mm:"%ddk.",h:"1sa.",hh:"%dsa."},ru:{s:"1\u0441\u0435\u043a.",ss:"%d\u0441\u0435\u043a.",m:"1d\u043c\u0438\u043d.",mm:"%d\u043c\u0438\u043d.",h:"1\u0447.",hh:"%d\u0447."},"zh-cn":{s:"1\u79d2",ss:"%d\u79d2",m:"1d\u5206\u9418",mm:"%d\u5206\u9418",h:"1\u5c0f\u6642",hh:"%d\u5c0f\u6642"},uk:{s:"1\u0441.",ss:"%d\u0441.",m:"1d\u0445\u0432.",mm:"%d\u0445\u0432.",h:"1\u0433.",hh:"%d\u0433."}};var nc;!function(e){e.SECONDS="second",e.MINUTES="minute",e.HOURS="hour",e.DAYS="day"}(nc||(nc={}));const ac=(e,{floorSeconds:t=!1,extraShortExpression:r=!1}={},o={})=>{let i;return n=>{i||void 0===Intl.RelativeTimeFormat||(i=new Intl.RelativeTimeFormat(e,{...o}));let a=(new Date).getTime()-new Date(n).getTime();isNaN(a)&&(console.error(`[@wix/wix-i18n-config/relative-time-formatter] received invalid time: ${n}`),a=1e3);const s=(e=>{const t=e<0?-e:e;switch(!0){case t<6e4:return nc.SECONDS;case t<36e5:return nc.MINUTES;case t<864e5:return nc.HOURS;default:return nc.DAYS}})(a),l=((e,t,r)=>{let o;switch(t){case nc.SECONDS:o=r?1:e/1e3;break;case nc.MINUTES:o=e/1e3/60;break;case nc.HOURS:o=e/1e3/60/60;break;case nc.DAYS:o=e/1e3/60/60/24;break;default:o=e}return-Math.round(o)})(a,s,t),u=r||!i?((e,t,r)=>{const o={[nc.SECONDS]:"ss",[nc.MINUTES]:"mm",[nc.HOURS]:"hh",[nc.DAYS]:"dd"},i=-1===r?o[t][0]:o[t],n=ic[e]?ic[e][i]:null;return n?n.replace("%d",""+-r):null})(e,s,l):null;return u||(i?i.format(l,s):n)}},sc={formats:{date:{monthAndYearUtc:{month:"long",year:"numeric"},date:{month:"short",day:"numeric"},fullDate:{year:"numeric",month:"short",day:"numeric"}},time:{hoursAndMinutes:{hour:"numeric",minute:"2-digit"}}}},lc=e=>new Date(e).getTime()>(new Date).getTime()-6e4,uc=e=>new Date(e).getTime()>(new Date).getTime()-6048e5,cc=e=>uc(e)?"timeRelative":(e=>(new Date).getFullYear()!==new Date(e).getFullYear())(e)?"fullDate":"date";function dc(e,t){if(!e)return;const r=new Date(e);if(t){const e=function(e){const t=new Date,r=t.toLocaleString("ja",{timeZone:e}).split(/[/\s:]/).map(Number);r[1]--;const o=Date.UTC(...r),i=new Date(t).setMilliseconds(0);return(i-o)/60/1e3}(t),o=e-r.getTimezoneOffset();return new Date(new Date(r.getTime()-60*o*1e3).toISOString())}return r}let pc,hc;const gc=({date:e,lng:t,rtfFormatter:r,timezone:o,showTimezone:i})=>{const n=cc(e);if(pc&&t===hc||!r||(pc=r,hc=t),"timeRelative"===n&&pc)return lc(e)?"few-seconds-ago":pc(new Date(e));const a=o&&i?{timeZone:o,timeZoneName:o!==mc()?"short":void 0}:{},s=dc(e,o),l="date"===n||"fullDate"===n?sc.formats.date[n]:void 0;return new Intl.DateTimeFormat(t,{...a,...l}).format(new Date(s))},mc=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return"UTC"}};const fc=()=>{const e=(0,zt.d4)(er.Z0),t=(0,zt.d4)(er.Md),r=ac(e);return(0,i.useCallback)((o=>o?gc({date:"number"==typeof o?new Date(o):o,lng:e,rtfFormatter:r,timezone:t}):""),[e,r,t])},yc=e=>{let{className:t,time:r,timeFormatted:o}=e;const{t:i}=(0,nt.B)(),a=fc(),s=i(o||a(r));return n().createElement("span",{title:s,className:tt()(t,"time-ago"),"data-hook":"time-ago"},s)},vc=e=>{let{minutes:t,isShortLabel:r,children:o,...i}=e;const{t:a}=(0,nt.B)();if("number"!=typeof t)return null;const s=a(r?"time-to-read.short-label":"time-to-read.label",{minutes:t});return n().createElement("span",Dt()({},i,{title:s,"data-hook":"time-to-read"}),s)},bc=e=>{let{children:t,containerClassName:r,itemClassName:o,separatorClassName:i=o,separator:a=null,native:s=!0}=e;const l=n().Children.toArray(t);return 0===l.length?null:s?n().createElement("ul",{className:r},l.map(((e,t)=>{const r="object"==typeof e&&"key"in e?e.key:t;return n().createElement(n().Fragment,{key:`${r}-fragment`},n().createElement("li",{key:r,className:o},e),t<l.length-1&&a?n().createElement("li",{key:`${r}-separator`,className:i},a):null)}))):n().createElement("div",{className:r},l.map(((e,t)=>{const r="object"==typeof e&&"key"in e?e.key:t;return n().createElement(n().Fragment,{key:`${r}-fragment`},n().createElement("span",{key:r,className:o},e),t<l.length-1&&a?n().createElement("span",{key:`${r}-separator`,className:i},a):null)})))},Sc="xUuoH9",Pc="rmqd9q",wc="F4tRtJ",Cc=e=>{let{className:t,itemClassName:r,children:o}=e;const{applyFeedDesign:i,getPostClassName:a}=(0,Oa.A)(),s=n().useMemo((()=>i?{className:Pc,separatorBackgroundColorClassName:tt()(a("description-background-color"))}:{className:Pc}),[i,a]);return n().createElement(bc,{itemClassName:r||wc,containerClassName:tt()(Sc,t),separator:n().createElement(Fu.Ht,s),native:!1,children:o})},Ec="MBUSKJ",Ac="UZa2Xr",Ic=e=>{let{className:t,date:r,dateFormatted:o,readTime:i,isShortReadTimeLabel:a,showPublishDate:s,showReadingTime:l}=e;return n().createElement(Cc,{className:tt()(t,Ec),itemClassName:Ac},s&&n().createElement(yc,{className:"post-metadata__date",time:r,timeFormatted:o}),l&&n().createElement(vc,{className:"post-metadata__readTime",minutes:i,isShortLabel:a}))},_c={container:"dZs5e3",search:"krCqqh",large:"mtJpOF","side-by-side-mobile":"PZIDK7",sideBySideMobile:"PZIDK7",userName:"mJ89ha",profileLink:"taLqKM"},Tc=e=>{var t;let{post:r,type:o,showAuthorName:i=!0,showPublishDate:a=!0,showReadingTime:s=!0,className:l}=e;const u=(0,au.A)(),{applyFeedDesign:c,getPostClassName:d}=(0,Oa.A)(),p=tt()(_c.userName,!c&&["blog-link-hover-color",u.textColorClassName],d((0,_s.hw)(o,"description-color"),"description-font","link-hashtag-hover-color"));return n().createElement("div",{className:tt()([_c.container,o?_c[o]:void 0,l])},i&&n().createElement(tc,{user:r.owner,className:_c.profileLink},n().createElement(oc,{className:p,name:(null==(t=r.owner)?void 0:t.name)??"-"})),(a||s)&&n().createElement(Ic,{date:r.firstPublishedDate||new Date,readTime:r.timeToRead,isShortReadTimeLabel:!1,className:tt()(d("description-font",(0,_s.hw)(o,"description-color"))),showPublishDate:a,showReadingTime:s}))},Oc="lAV2rI";var xc=r(43425);const{STATIC_MEDIA_URL:Nc}=xc,Lc=({fittingType:e,src:t,target:r,options:o})=>{const i=xc.getPlaceholder(e,t,r,{...o,autoEncode:!0});return i?.uri&&!/^[a-z]+:/.test(i.uri)&&(i.uri=`${Nc}${i.uri}`),i},Mc=/^[a-z]+:/,Rc=e=>{const{id:t,containerId:r,uri:o,alt:n,name:a="",role:s,width:l,height:u,displayMode:c,devicePixelRatio:d,quality:p,alignType:h,bgEffectName:g="",focalPoint:m,upscaleMethod:f,className:y="",crop:v,imageStyles:b={},targetWidth:S,targetHeight:P,targetScale:w,onLoad:C=(()=>{}),onError:E=(()=>{}),shouldUseLQIP:A,containerWidth:I,containerHeight:_,getPlaceholder:T,isInFirstFold:O,placeholderTransition:x,socialAttrs:N,isSEOBot:L,skipMeasure:M,hasAnimation:R,encoding:k}=e,D=i.useRef(null);let B="";const H="blur"===x,V=i.useRef(null);if(!V.current)if(T||A||O||L){const e={upscaleMethod:f,...p||{},shouldLoadHQImage:O,isSEOBot:L,hasAnimation:R,encoding:k};V.current=(T||Lc)({fittingType:c,src:{id:o,width:l,height:u,crop:v,name:a,focalPoint:m},target:{width:I,height:_,alignment:h,htmlTag:"img"},options:e}),B=!V.current.transformed||O||L?"":"true"}else V.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const F=!L&&(T||A)&&!O&&V.current.transformed,G=i.useMemo((()=>JSON.stringify({containerId:r,...r&&{containerId:r},...h&&{alignType:h},...M&&{skipMeasure:!0},displayMode:c,...I&&{targetWidth:I},..._&&{targetHeight:_},...S&&{targetWidth:S},...P&&{targetHeight:P},...w&&{targetScale:w},isLQIP:F,isSEOBot:L,lqipTransition:x,encoding:k,imageData:{width:l,height:u,uri:o,name:a,displayMode:c,hasAnimation:R,...p&&{quality:p},...d&&{devicePixelRatio:d},...m&&{focalPoint:m},...v&&{crop:v},...f&&{upscaleMethod:f}}})),[r,h,M,c,I,_,S,P,w,F,L,x,k,l,u,o,a,R,p,d,m,v,f]),z=V.current,W=z?.uri,U=z?.srcset,j=z.css?.img,K=`${Oc} ${y}`;i.useEffect((()=>{const e=D.current;C&&e?.currentSrc&&e?.complete&&C({target:e})}),[]);const Z=z&&!z?.transformed?`max(${l}px, 100%)`:S?`${S}px`:null;return i.createElement("wow-image",{id:t,class:K,"data-image-info":G,"data-motion-part":`BG_IMG ${r}`,"data-bg-effect-name":g,"data-has-ssr-src":B,"data-animate-blur":!L&&F&&H?"":void 0,style:Z?{"--wix-img-max-width":Z}:{}},i.createElement("img",{src:W,ref:D,alt:n||"",role:s,style:{...j,...b},onLoad:C,onError:E,width:I||void 0,height:_||void 0,...N,srcSet:O?U?.dpr?.map((e=>Mc.test(e)?e:`${Nc}${e}`)).join(", "):void 0,fetchpriority:O?"high":void 0,loading:!1===O?"lazy":void 0,suppressHydrationWarning:!0}))};var kc=r(97377);const Dc=()=>"undefined"==typeof window,Bc=(Dc()||window.screen.width,Dc()||window.devicePixelRatio,e=>{if("string"==typeof e)return e;if(e){if("id"in e&&""!==e.id)return e.id??("file_name"in e?e.file_name:void 0);if("file_name"in e)return e.file_name}}),Hc=({pathname:e,width:t,height:r,imageHost:o})=>(0,kc.resizeThumbnail)(o)(e,t,r);var Vc=r(58632),Fc=r(65259);const Gc=e=>n().createElement("svg",Dt()({width:"1000",height:"1000",viewBox:"0 0 1000 1000"},e),n().createElement("circle",{cx:"500",cy:"500",r:"500",fill:"#cccccc"}),n().createElement("path",{fill:"#a0a09f",d:"M830.8,874.927c-77.344-60.8-187.181-104.877-227.88-111.347-20.335-3.233-20.8-59.1-20.8-59.1s59.746-59.106,72.768-138.584c35.029,0,56.666-84.5,21.631-114.226C677.986,420.37,721.551,206,501,206S324.015,420.37,325.473,451.666c-35.033,29.729-13.4,114.226,21.632,114.226,13.021,79.478,72.77,138.584,72.77,138.584s-0.464,55.871-20.8,59.1c-40.883,6.5-151.537,50.943-228.934,112.176C65.84,784.12,0,649.751,0,500,0,223.858,223.858,0,500,0s500,223.858,500,500C1000,649.3,934.559,783.311,830.8,874.927ZM500,1000h0Z"})),zc="lR3yj5",Wc="dDcMfv",Uc=e=>{let{image:t,size:r,ariaLabel:o,className:i}=e;const a=Bc(t)??(t&&"url"in t?t.url:void 0),s=(0,zt.d4)((e=>(0,Vc.b)(e,Fc.f.USE_AVIF_ENCODING)));return a?n().createElement(Rc,{alt:o,className:tt()(zc,"fluid-avatar-image",i),uri:a,displayMode:"fill",width:r,height:r,targetWidth:r,targetHeight:r,"data-hook":"avatar-image",role:"img",encoding:s?"AVIF":void 0}):n().createElement("span",{"aria-label":o,className:tt()(zc,"fluid-avatar-image",i),"data-hook":"avatar-image",role:"img"},n().createElement(Gc,{className:Wc}))},jc={IMAGE_SIZE_DEFAULT:"32px",imageSizeDefault:"32px",IMAGE_SIZE_LARGE:"40px",imageSizeLarge:"40px",IMAGE_SIZE_EXTRA_LARGE:"92px",imageSizeExtraLarge:"92px",IMAGE_SIZE_PROMOTE:"100px",imageSizePromote:"100px",IMAGE_SIZE_MEMBER:"80px",imageSizeMember:"80px",IMAGE_SIZE_WIDGET:"30px",imageSizeWidget:"30px",IMAGE_SIZE_COMMENT:"40px",imageSizeComment:"40px",IMAGE_SIZE_COMMENT_SEARCH:"30px",imageSizeCommentSearch:"30px",image:"ERF5R1",large:"A9WFUN",extraLarge:"A0qBRg",promote:"zI70HL",member:"pozZSb",widget:"Zcb_uj",comment:"bCACxF",commentSearch:"C3KamW"},Kc=e=>2*parseInt(e,10),Zc={large:Kc(jc.IMAGE_SIZE_LARGE),extraLarge:Kc(jc.IMAGE_SIZE_EXTRA_LARGE),promote:Kc(jc.IMAGE_SIZE_PROMOTE),widget:Kc(jc.IMAGE_SIZE_WIDGET),comment:Kc(jc.IMAGE_SIZE_COMMENT),commentSearch:Kc(jc.IMAGE_SIZE_COMMENT_SEARCH)},$c=Kc(jc.IMAGE_SIZE_DEFAULT),qc=e=>{let{className:t,type:r,user:o}=e;const i=(r&&Zc[r])??$c,[a]=(0,nt.B)();return n().createElement("span",{className:tt()(jc.image,r&&jc[r],t,"avatar-image")},n().createElement(Uc,{ariaLabel:`${a("aria-label.authors-picture")}: ${null==o?void 0:o.name}`,image:null==o?void 0:o.image,size:i}))},Yc="lBv2XN",Xc="dlINDG",Qc=e=>{let{type:t=Qc.DEFAULT,user:r={},isImageVisible:o=!0,isNameVisible:i=!0}=e;const a=tt()(Yc,"blog-text-color","blog-link-hover-color","avatar","blog-post-text-color");return n().createElement("span",{className:a},o&&n().createElement(qc,{type:t,user:r}),i&&r.name&&n().createElement(oc,{className:Xc,name:r.name}))},Jc=Qc,ed=(e,t)=>(0,zt.Ng)((e=>({isRTL:(0,er.DY)(e)})))((r=>{let{isRTL:o,...i}=r;const a=o?t:e;return n().createElement(a,i)})),td=ed((e=>n().createElement("svg",Dt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19","aria-hidden":"true"},e),n().createElement("path",{d:"M2.44398805,5.99973295 C1.62345525,5.9690612 0.980075653,5.28418875 1.00047182,4.46312144 C1.02086799,3.64205413 1.69745853,2.98998831 2.51850166,3.0001164 C3.33954478,3.01024449 3.99985313,3.67880182 4,4.50012255 C3.98424812,5.34399206 3.28763905,6.0153508 2.44398805,5.99973295 L2.44398805,5.99973295 Z M2.44398805,10.9997329 C1.62345525,10.9690612 0.980075653,10.2841888 1.00047182,9.46312144 C1.02086799,8.64205413 1.69745853,7.98998831 2.51850166,8.0001164 C3.33954478,8.01024449 3.99985313,8.67880182 4,9.50012255 C3.98424812,10.3439921 3.28763905,11.0153508 2.44398805,10.9997329 L2.44398805,10.9997329 Z M2.44398805,15.9997329 C1.62345525,15.9690612 0.980075653,15.2841888 1.00047182,14.4631214 C1.02086799,13.6420541 1.69745853,12.9899883 2.51850166,13.0001164 C3.33954478,13.0102445 3.99985313,13.6788018 4,14.5001225 C3.98424812,15.3439921 3.28763905,16.0153508 2.44398805,15.9997329 L2.44398805,15.9997329 Z"}))),(e=>n().createElement("svg",Dt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19","aria-hidden":"true"},e),n().createElement("path",{d:"M2.44398805,5.99973295 C1.62345525,5.9690612 0.980075653,5.28418875 1.00047182,4.46312144 C1.02086799,3.64205413 1.69745853,2.98998831 2.51850166,3.0001164 C3.33954478,3.01024449 3.99985313,3.67880182 4,4.50012255 C3.98424812,5.34399206 3.28763905,6.0153508 2.44398805,5.99973295 L2.44398805,5.99973295 Z M2.44398805,10.9997329 C1.62345525,10.9690612 0.980075653,10.2841888 1.00047182,9.46312144 C1.02086799,8.64205413 1.69745853,7.98998831 2.51850166,8.0001164 C3.33954478,8.01024449 3.99985313,8.67880182 4,9.50012255 C3.98424812,10.3439921 3.28763905,11.0153508 2.44398805,10.9997329 L2.44398805,10.9997329 Z M2.44398805,15.9997329 C1.62345525,15.9690612 0.980075653,15.2841888 1.00047182,14.4631214 C1.02086799,13.6420541 1.69745853,12.9899883 2.51850166,13.0001164 C3.33954478,13.0102445 3.99985313,13.6788018 4,14.5001225 C3.98424812,15.3439921 3.28763905,16.0153508 2.44398805,15.9997329 L2.44398805,15.9997329 Z",transform:"translate(9.582843, 9.542641) scale(-1, 1) translate(-9.582843, -9.542641) "})))),rd="WmZAIu",od=()=>n().createElement("div",{className:rd,id:"new-blog-popover-root"});od.getPopoverRootElement=()=>document.getElementById("new-blog-popover-root");const id=od,nd={icon:"Bvf4SR",more:"_EA3Ke",actions:"Z9ijf3"},ad=e=>{let{children:t,className:o,isWhite:a,id:s,icon:l,container:u}=e;const c=(0,i.useRef)(null),d=(0,i.useRef)(null),[p,h]=(0,i.useState)(!1),[g,m]=(0,i.useState)(null),{t:f}=(0,nt.B)(),{contentFontClassName:y}=Tl(),{iconColorClassName:v}=(0,au.A)(),b=(0,zt.d4)(((e,t)=>t.id)),S=(0,zt.d4)(er.IC),{checkIfFits:P,checkIfFitsInEditor:w,calculateActionsContainerPosition:C}=(e=>{let{actionsContainerRef:t,containerRef:r,componentId:o,container:i}=e;const[a,s]=n().useState(!1),[l,u]=n().useState(!1),c=(e,r)=>{var o;const i=(null==t||null==(o=t.current)?void 0:o.offsetWidth)??0,n=e.right-r.right,a=r.left-e.left;return n>i&&a<n||!(a>i)},d=()=>(i??id.getPopoverRootElement()).getBoundingClientRect();return{calculateActionsContainerPosition:()=>{if(null!=r&&r.current){const e=d(),t=r.current.getBoundingClientRect();return{...a?{top:"auto",bottom:e.bottom-t.bottom}:{top:t.top-e.top+r.current.clientHeight},...l?{left:t.right-e.left}:{right:e.right-t.left}}}},checkIfFits:()=>{if(null!=r&&r.current){var e;const i=r.current.getBoundingClientRect(),n=d(),a=null==(e=document)||null==(e=e.getElementById(o))?void 0:e.getBoundingClientRect();if(a){const e=null!=t&&t.current?t.current.offsetHeight:0,r=i.top-Math.max(a.top,0),o=window.innerHeight>a.bottom?a.bottom-Math.max(i.bottom,0):window.innerHeight-Math.max(i.bottom,0);s(r>e&&o<e),u(c(n,i))}}},checkIfFitsInEditor:()=>{var e;const o=null==r||null==(e=r.current)?void 0:e.getBoundingClientRect();if(o){const e=d(),r=window.scrollY||document.documentElement.scrollTop||0,i=document.body.offsetHeight,n=r+o.top,a=i-n-o.height,l=null!=t&&t.current?t.current.offsetHeight:0;s(l>a-60&&l<n),u(c(e,o))}},checkIfShouldRenderRight:c,setIsAtTop:s,setIsAtRight:u}})({actionsContainerRef:d,containerRef:c,componentId:b,container:u}),E=()=>{document.removeEventListener("click",E),h(!1)},A=tt()(o,nd.more,"more-button",{[nd.moreWhite]:a});return n().createElement(n().Fragment,null,n().createElement("button",{onClick:e=>{e.stopPropagation(),p?E():(async()=>{const e=t()instanceof Promise?await t():t();m(e),document.addEventListener("click",E,{once:!0}),h(!0),S?P():w()})()},className:A,ref:c,onKeyUp:e=>{"Escape"===e.key&&E()},type:"button","aria-pressed":p,"aria-label":f("more-button.more-actions"),id:s,"data-hook":"more-button"},n().createElement("span",{className:nd.icon},l||n().createElement(td,{className:tt()(v,"blog-post-homepage-link-hashtag-hover-fill")}))),p?(()=>{const e=tt()(nd.actions,y,"blog-text-color","blog-dropdown-background-color"),t=C(),o=n().lazy((()=>r.e(4544).then(r.t.bind(r,4544,23))));return on().createPortal(n().createElement("div",{ref:d,className:e,style:t,role:"menu","data-hook":"actions"},n().createElement(i.Suspense,{fallback:n().createElement(ns,null)},n().createElement(o,{focusTrapOptions:{allowOutsideClick:!0,preventScroll:!1,escapeDeactivates:!0,fallbackFocus:c.current}},g))),u??id.getPopoverRootElement())})():null)},sd=(0,le.once)((async()=>(await Promise.all([r.e(3984),r.e(4287)]).then(r.bind(r,93984))).default));var ld=r(53292);const ud="l6L1Fh",cd="bFiLuu",dd=(0,Lu.A)((e=>{let{IconComponent:t,className:r,iconColorClassName:o}=e;return n().createElement("div",{className:cd},n().createElement("div",{className:tt()(ud,r)},n().createElement(t,{className:tt()(o,r)})))})),pd="XqK7Ko",hd=e=>{let{post:t,className:r,iconClassName:o}=e;return t.isPinned?n().createElement("div",{className:tt()(pd,r)},n().createElement(dd,{IconComponent:ld.t,className:tt()("pin-icon",o)})):null},gd={container:"SbjQym","side-by-side":"IStc0y",sideBySide:"IStc0y","pg-side-by-side-right":"_dR9OP",pgSideBySideRight:"_dR9OP","pg-side-by-side":"YD6Z1G",pgSideBySide:"YD6Z1G",grid:"Nn0z1D","pg-one-column":"SoK2Wc",pgOneColumn:"SoK2Wc","pg-grid":"DKNKji",pgGrid:"DKNKji","pg-grid-intermediate":"rA58nq",pgGridIntermediate:"rA58nq","pg-grid-large":"Ij__Zw",pgGridLarge:"Ij__Zw",slider:"jc3Fi0",list:"kAgxB9","list-medium":"MLEYRZ",listMedium:"MLEYRZ","list-large":"AwRwmV",listLarge:"AwRwmV","pg-medium":"otAa9D",pgMedium:"otAa9D",withoutHeaderMetadata:"Fsmreb","with-category-label":"wjdRtO",withCategoryLabel:"wjdRtO","spacing-bottom":"TjmPXo",spacingBottom:"TjmPXo","side-by-side-mobile":"vL7wf0",sideBySideMobile:"vL7wf0","text-on-image-mobile":"YVAddP",textOnImageMobile:"YVAddP",search:"Mo4mKl",metadata:"V_aJB6","with-three-dots":"CH7asw",withThreeDots:"CH7asw",small:"PVEWzt",medium:"eOIH_4",large:"G1sD4r","one-column-mobile":"pWST8_",oneColumnMobile:"pWST8_",mobile:"rDlcKq",unpublishedBadge:"YiEou4",unpublishedBadgeBorder:"YfT_t7",icons:"Dgs_GX",moreButton:"GygROR",enter:"Q8iQIg",appear:"dtYGur",enterActive:"VL02DE",appearActive:"EhKyap",postOptions:"Z0hXe1"},md=e=>{let{moreButtonClass:t,moreButtonIcon:r,post:o,showHeaderIcons:i=!0,showMoreButton:a=!0,type:s,visibleActions:l}=e;const u={id:`more-button-${(0,zn.S)(o)}`,...r?{icon:r}:{}};return n().createElement("div",{className:tt()(gd.postOptions,iu.options)},i?n().createElement(hd,{post:o,className:gd.icons,iconClassName:"blog-button-fill"}):n().createElement("div",{className:gd.icons}),n().createElement("div",{className:tt()(gd.moreButton,s?gd[s]:void 0,"blog-more-icon-fill",t)},a&&n().createElement(ad,u,(async()=>{const e=await sd();return n().createElement(e,{post:o,visibleActions:l})}))))},fd=e=>{let{className:t,moreButtonClass:r,moreButtonIcon:o,post:i,showHeaderIcons:a=!0,showMoreButton:s=!0,showProfileImage:l=!0,style:u,type:c,visibleActions:d}=e;const{showAuthorName:p,showAuthorPicture:h,showPublishDate:g,isMetadataHeaderVisible:m,showCategoryLabel:f,showReadingTime:y}=Il({post:i}),v=!m,b=tt()(gd.container,c?gd[c]:void 0,"blog-post-metadata-font","post-header",v&&gd.withoutHeaderMetadata,t,f&&gd.withCategoryLabel,p&&(g||y||h)&&gd.spacingBottom);return n().createElement("div",{className:b,style:u},n().createElement("div",{className:tt()([gd.metadata,s&&gd.withThreeDots,iu.metadataContainer])},m&&n().createElement(n().Fragment,null,p&&l&&h&&n().createElement(tc,{user:i.owner},n().createElement("div",{className:iu.avatar},n().createElement(Jc,{user:i.owner,isNameVisible:!1}))),n().createElement(Tc,{post:i,type:c,className:iu.postDetails,showAuthorName:p,showPublishDate:g,showReadingTime:y}))),(a||s)&&n().createElement(md,{moreButtonClass:r,moreButtonIcon:o,post:i,showHeaderIcons:a,showMoreButton:s,type:c,visibleActions:d}))},yd=e=>{let{post:t,type:r,showMoreButton:o,visibleActions:a,styleFontSizeMetadata:s}=e;const{getPostClassName:l}=(0,Oa.A)(),{contentFontClassName:u}=Tl(),c=(0,i.useMemo)((()=>tt()(nu.A.headerWrapper,u,l("description-font"),iu.headerContainer)),[u,l]);return n().createElement(fd,{className:c,post:t,showMoreButton:o,showProfileImage:!(0,ur.NN)(r),style:s,type:r,visibleActions:a})},vd=e=>{let{postLink:t,postPath:r,children:o,...i}=e;return n().createElement(Wu,Dt()({},i,{href:t??void 0,path:r,sectionId:"post"}),o)};var bd=r(10711),Sd=r(62445);const Pd=()=>{const e=window.navigator?window.navigator.userAgent:"";return e.match(/iPhone/i)&&e.match(/safari/i)},wd=e=>({clamp:e.clamp||2,useNativeClamp:void 0===e.useNativeClamp||e.useNativeClamp,useExactLineHeight:void 0!==e.useExactLineHeight&&e.useExactLineHeight,splitOnChars:e.splitOnChars||[".","-","\u2013","\u2014"," "],animate:e.animate||!1,truncationChar:e.truncationChar||"\u2026",truncationHTML:e.truncationHTML,maxLineCount:void 0!==e.maxLineCount?e.maxLineCount:9999}),Cd=(e,t)=>{if(t.useExactLineHeight)return Ed(e);const r=Ad(e,"line-height");return"normal"===r?1.2*parseInt(Ad(e,"font-size"),2):parseInt(r,10)},Ed=e=>{var t;const r=e.parentNode;if(!r)throw new Error("Parent node is null");const o=(3===(null==(t=e.lastChild)?void 0:t.nodeType)?e:e.lastChild).cloneNode(!0);(Nd(o)||o).textContent=e.textContent?e.textContent.trim()[0]:"&nbsp;",r.appendChild(o);const i=o.clientHeight;return r.removeChild(o),i},Ad=(e,t)=>window.getComputedStyle(e,null).getPropertyValue(t),Id=(e,t,r)=>{const o=e.clamp,i=e.maxLineCount??2;return"parent"===o?_d(t.parentElement.clientHeight,r,i):"auto"===o?_d(void 0,r,i):"string"==typeof o&&(o.indexOf("px")>-1||o.indexOf("em")>-1)?_d(parseInt(o,2),r,i):o},_d=(e,t,r)=>{const o=e||document.documentElement.clientHeight,i=Pd()?Math.ceil:Math.floor,n=Math.max(i(o/t),0);return Math.min(n,r)},Td=(e,t)=>t*e,Od=(e,t,r,o)=>{const i=e.style;i.overflow="hidden",i.textOverflow="ellipsis",i.webkitBoxOrient="vertical",i.display=t>0?"-webkit-box":"none",i.webkitLineClamp=t.toString(),i.maxHeight=t*r+"px","string"==typeof o.clamp&&(i.height=o.clamp)},xd=(e,t,r)=>{let o,i=r.splitOnChars.slice(0),n=i[0],a=null;const s=(e,t)=>{e.nodeValue=t+r.truncationChar},l=u=>{if(!u||!t)return;const c=u.nodeValue.replace(r.truncationChar,"");if(a||(n=i.length>0?i.shift():"",a=c.split(n)),a.length>1?(o=a.pop(),s(u,a.join(n))):a=null,r.truncationHTML){const t=document.createElement("span");t.innerHTML=r.truncationHTML,u.nodeValue=u.nodeValue.replace(r.truncationChar,""),e.innerHTML=u.nodeValue+" "+t.innerHTML+r.truncationChar}if(a){if(e.clientHeight<=t){if(!(i.length>=0&&""!==n))return e.innerHTML;s(u,a.join(n)+n+o),a=null}}else""===n&&(s(u,""),u=Nd(e),i=r.splitOnChars.slice(0),n=i[0],a=null,o=void 0);if(!r.animate)return l(u);setTimeout((()=>l(u)),!0===r.animate?10:r.animate)};return l(Nd(e))},Nd=e=>{if(e.lastChild){if(e.lastChild.childNodes&&e.lastChild.childNodes.length>0)return Nd(Array.prototype.slice.call(e.children).pop());if(e.lastChild.nodeValue&&""!==e.lastChild.nodeValue)return e.lastChild;{const t=e.lastChild;do{if(!t)return;if(3===t.nodeType&&""!==t.nodeValue)return t;if(t.lastChild){const e=Nd(t);if(e)return e}t.parentNode.removeChild(t)}while(t===t.previousSibling)}}},Ld="j1Y_aa",Md=(Rd=e=>{const t=e.as??"span",r=n().useRef(null),o=()=>n().createElement(t,{ref:r,className:tt()(Ld,e.className)},e.children);return(0,i.useLayoutEffect)((()=>{if(e.clamp&&r.current){if(n().Children.count(e.children)>1)throw new Error("Please provide exactly one child to dotdotdot");!function(e,t){void 0===t&&(t={}),e.removeAttribute("style");const r=wd(t),o=e.innerHTML,i=void 0!==e.style.webkitLineClamp,n=Cd(e,r),a=Id(r,e,n);if(i&&r.useNativeClamp&&!Pd())Od(e,a,n,r);else{const t=Td(a,n);if(t<e.clientHeight)xd(e,t,r)}}(r.current,{clamp:e.clamp,useExactLineHeight:e.useExactLineHeight,useNativeClamp:!0,truncationChar:"\u2026"})}}),[e]),n().createElement(o,null)},e=>{const t=Bt();return n().createElement(Rd,Dt()({},e,t))});var Rd;const kd="wR7PET",Dd="DxQ8C1",Bd="BOlnTh",Hd=(0,bd.default)((e=>({WebkitLineClamp:e}))),Vd=e=>{let{post:{content:t,excerpt:r},lineCount:o,descriptionLineCount:i}=e;const a=r?r.slice(0,xl.TT):(0,Sd.getContentText)(t).slice(0,xl.TT);return n().createElement("div",{className:kd},i?n().createElement("div",{className:Bd,style:Hd(i)},a):n().createElement(Md,{clamp:"auto",maxLineCount:o,className:Dd},a))},Fd=e=>{let{type:t,showMoreButton:r,withoutFooter:o,post:a,lineCount:s,descriptionLineCount:l,withDescription:u,isHoverDisabled:c}=e;const d=(0,zt.dN)(),{applyFeedDesign:p,getPostClassName:h}=(0,Oa.A)(),g=(0,zt.d4)(ms.DQ),{contentFontClassNameWithStyle:m}=Tl(),{postDescriptionFontSize:f,defaultPostDescriptionFontSize:y}=Ol(),v=t?nu.A[t]:void 0,b=(0,i.useMemo)((()=>tt()(nu.A.excerptLink,nu.A.textWrapper,nu.A.proGallery,v,r?nu.A.withShowMoreButton:nu.A.withoutShowMoreButton)),[v,r]),S=(0,i.useMemo)((()=>tt()(nu.A.content,v,o&&nu.A.withoutFooter,m,h("description-style-font"),iu.content)),[v,o,m,h]),P=(0,i.useMemo)((()=>({fontSize:!p||g?f:y})),[p,g,f,y]),w=(0,i.useCallback)((()=>n().createElement("div",{style:P,className:tt()(S,iu.textAlign),"data-hook":"post-description"},n().createElement(Vd,{post:a,lineCount:null==s?void 0:s.description,descriptionLineCount:l}))),[P,S,a,null==s?void 0:s.description,l]);return u&&(null!=s&&s.description||l)?c?w():n().createElement("div",{className:b,onClick:()=>d.navigateProGalleryWithinPostPage(null==a?void 0:a.slug)},w()):null};function Gd(){const e=(0,zt.d4)(er.Ny);return{isMobile:e,isDesktop:!e}}const zd=e=>{let{className:t}=e;return n().createElement("svg",{viewBox:"3 2 18 18",width:"18",height:"18",className:t},n().createElement("path",{d:"M20.9502,8.8922 C20.8322,8.5282 20.5222,8.2672 20.1432,8.2112 L15.1362,7.4842 L12.8962,2.9472 C12.5572,2.2592 11.4422,2.2592 11.1032,2.9472 L8.8642,7.4842 L3.8562,8.2112 C3.4772,8.2672 3.1682,8.5282 3.0492,8.8922 C2.9312,9.2562 3.0282,9.6502 3.3022,9.9172 L6.9262,13.4492 L6.0712,18.4362 C6.0062,18.8142 6.1582,19.1882 6.4682,19.4132 C6.7782,19.6412 7.1812,19.6692 7.5212,19.4912 L11.9992,17.1352 L16.4792,19.4912 C16.6262,19.5692 16.7862,19.6072 16.9452,19.6072 C17.1512,19.6072 17.3572,19.5412 17.5322,19.4132 C17.8422,19.1882 17.9942,18.8142 17.9292,18.4362 L17.0742,13.4502 L20.6982,9.9172 C20.9722,9.6502 21.0692,9.2562 20.9502,8.8922",fillRule:"evenodd",fill:"currentColor"}))},Wd="JMAXlV",Ud="fbd51l",jd="hhO2ky",Kd="siwre6",Zd="MKPjdi",$d="TbC84K",qd="j6jO4F",Yd="MrH3GO",Xd="TYUuco",Qd=e=>{let{a11yLabel:t}=e;return n().createElement("span",{className:Wd},t&&n().createElement("span",{className:Ud},t),n().createElement("span",{"aria-hidden":"true",className:jd},n().createElement(zd,{className:tt()(Xd,Kd)})))},Jd=e=>{let{rating:t,a11yLabel:r}=e;const o=Math.min(Math.max(t,0),5);return n().createElement("span",{className:Wd},r&&n().createElement("span",{className:Ud},r),n().createElement("span",{"aria-hidden":"true",className:jd},[1,2,3,4,5].map((e=>{const t=function(e,t){if(t<=e)return"full";if(t-e<1){const r=t-e;return r<.25?"full":r>.75?"empty":"half"}return"empty"}(o,e);return"half"===t?n().createElement("span",{className:$d,key:e},n().createElement(zd,{key:`${e}-start`,className:tt()(Xd,qd,Kd)}),n().createElement(zd,{key:`${e}-end`,className:tt()(Xd,Yd,Zd)})):n().createElement(zd,{key:e,className:tt()(Xd,"full"===t?Kd:Zd)})}))))};const ep={container:"A6pgue",ratingInfo:"KJeQ3_",withTransitions:"T5ArNO","fade-in":"M5aq50",fadeIn:"M5aq50","with-range":"TW0XHJ",withRange:"TW0XHJ","count-only":"z8kPtl",countOnly:"z8kPtl"},tp={default:"default",bracket_separated:"bracket-separated",with_range:"with-range",count_only:"count-only"},rp=(0,le.flowRight)(Mu)((e=>{let{className:t,rating:r,count:o,isLoading:i=!1,useTransitions:a=!1,t:s,layout:l=tp.default}=e;const u=n().useRef(a);return n().createElement("span",{className:tt()(ep.container,{[ep.withTransitions]:u.current},ep[l],t),"data-hook":tt()("ratings-display",i?"":"is-ready")},l===tp.with_range?n().createElement(Qd,{a11yLabel:s("ratings-display.rating-aria-label",{rating:r})}):n().createElement(Jd,{rating:i?0:r,a11yLabel:s("ratings-display.rating-aria-label",{rating:r})}),!i&&n().createElement("span",{className:ep.ratingInfo},0===o?s("ratings-display.no-ratings"):(()=>{switch(l){case tp.default:return`${r.toFixed(1)} | ${s("ratings-display.count",{count:o})}`;case tp.bracket_separated:return`${r.toFixed(1)} (${o})`;case tp.count_only:return`(${o})`;case tp.with_range:return`${r.toFixed(1)} / 5 (${o})`;default:return}})()))})),op=e=>{let{post:t,type:r,withoutFooter:o,section:i}=e;const{isMobile:a}=Gd(),s=(0,zn.S)(t),l=(0,zt.d4)((e=>((e,t)=>{var r;return null==(r=e.postRatings[t])?void 0:r.averageRating})(e,s))),u=(0,zt.d4)((e=>((e,t)=>{var r;return null==(r=e.postRatings[t])?void 0:r.totalRatings})(e,s)));return Il({post:t}).showPostRating&&u?n().createElement(rp,{className:tt()(nu.A.rating,nu.A[i],r?nu.A[r]:void 0,iu.rating,{[nu.A.withoutFooter]:o,[nu.A.withTextOnImageStyles]:(0,ur.NN)(r)}),rating:l,count:u,layout:a?tp.with_range:tp.count_only}):null},ip={title:"T5UMT5","pg-medium":"mjh3Ex",pgMedium:"mjh3Ex","pg-grid":"I9XQQf",pgGrid:"I9XQQf","pg-grid-intermediate":"xwfLlB",pgGridIntermediate:"xwfLlB","pg-grid-large":"AreR2k",pgGridLarge:"AreR2k",slider:"LMmmGm","pg-one-column":"Qr0HYQ",pgOneColumn:"Qr0HYQ","pg-side-by-side-right":"zKj_nc",pgSideBySideRight:"zKj_nc","pg-side-by-side":"WD_8WI",pgSideBySide:"WD_8WI","list-medium":"tMAW2P",listMedium:"tMAW2P",list:"v0TP18","list-large":"PW6Nzn",listLarge:"PW6Nzn","pg-text-on-image-small":"nOu63e",pgTextOnImageSmall:"nOu63e","with-category-label":"_wPn3X",withCategoryLabel:"_wPn3X","pg-text-on-image-large":"xAtwHK",pgTextOnImageLarge:"xAtwHK","pg-text-on-image-medium":"ML3wIh",pgTextOnImageMedium:"ML3wIh","text-on-image-medium":"SmUSYw",textOnImageMedium:"SmUSYw","title-hover":"fcPJ4D",titleHover:"fcPJ4D",single:"iFTNPs","one-column-mobile":"zEYAqe",oneColumnMobile:"zEYAqe",mobile:"SSbNRm",clamp:"KNiaIk","inherit-font":"bD0vt9",inheritFont:"bD0vt9"},np=e=>{let{style:t,lineCount:r,titleLineCount:o,title:i,type:a,showCategoryLabel:s,isHoverDisabled:l}=e;const u=(0,zt.d4)(ms.Do),{getPostClassName:c}=(0,Oa.A)(),d=tt()(c((0,_s.hw)(u||a,"title-color"),"title-font")),p=n().useMemo((()=>({WebkitLineClamp:o})),[o]),h=tt()(ip.title,{[ip.titleHover]:!l,"blog-hover-container-element-color":!l},a&&ip[a],"post-title",d,s&&ip.withCategoryLabel);return n().createElement("div",{className:h,style:t,"data-hook":"post-title"},o?n().createElement("h2",{className:tt()(null!=t&&t.fontSize?ip.inheritFont:d,ip.clamp),style:p},i):n().createElement(Md,{useExactLineHeight:!0,clamp:"auto",maxLineCount:r,className:null!=t&&t.fontSize?ip.inheritFont:d,as:"h2"},i))},ap=e=>{let{post:t,itemConfig:r,type:o,showMoreButton:a,withoutFooter:s}=e;const l=(0,zt.d4)((e=>(0,ir.QM)({state:e}))),u=(0,zt.d4)((e=>(0,ir.iz)({state:e}))),c=(0,zt.d4)(Ts.Rk),{getPostClassName:d,section:p}=(0,Oa.A)(),h=c&&"my-posts"===p&&"unpublished"===(null==t?void 0:t.status),g=r.lineCount&&"description"in r.lineCount&&r.lineCount?r.lineCount:void 0,{titleFontClassName:m}=Tl(),f=(0,ur.Ev)(o),y=Il({post:t}),v=y.showPostDescription&&!f,{postTitleFontSize:b,defaultPostTitleFontSize:S}=Ol(),P=(0,zt.d4)(ms.TG),w=o?nu.A[o]:void 0,C=(0,i.useMemo)((()=>tt()(nu.A.textWrapper,{[d("link-hashtag-hover-color").join(" ")]:!h,[nu.A.fadeout]:u||l},w,y.showCategoryLabel&&nu.A.withCategoryLabel)),[h,u,l,w,y.showCategoryLabel,d]),E=(0,i.useMemo)((()=>tt()(nu.A.titleWrapper,nu.A.proGallery,w,a?nu.A.withShowMoreButton:nu.A.withoutShowMoreButton)),[w,a]),A=(0,i.useMemo)((()=>tt()(nu.A.title,m,w,s&&nu.A.withoutFooter,!v&&s&&nu.A.withoutBottomMargin,!v&&nu.A.withoutDescription,(null==t?void 0:t.isPinned)&&nu.A.withIcons,a?nu.A.withShowMoreButton:nu.A.withoutShowMoreButton)),[m,w,s,v,null==t?void 0:t.isPinned,a]),I=(0,i.useMemo)((()=>({fontSize:P?b:S})),[P,b,S]),_=(0,i.useMemo)((()=>()=>n().createElement("div",{style:I,className:tt()(A,iu.textAlign),"data-hook":"post-list-item__title"},n().createElement(np,{type:o,title:null==t?void 0:t.title,style:I,lineCount:null==g?void 0:g.title,titleLineCount:l,showCategoryLabel:y.showCategoryLabel,isHoverDisabled:h}),!f&&n().createElement(op,{post:t,type:o,withoutFooter:s,section:p}))),[I,A,o,null==g?void 0:g.title,l,y.showCategoryLabel,h,f,t,s,p]);return n().createElement("div",{className:C},h?n().createElement(_,null):n().createElement(vd,{postLink:h||null==t?void 0:t.link,postPath:null==t?void 0:t.slug,className:E},n().createElement(_,null)),n().createElement(Fd,{post:t,lineCount:g,type:o,showMoreButton:a,withoutFooter:s,descriptionLineCount:u,isHoverDisabled:h,withDescription:v}))},sp="uYL9xS",lp=e=>{let{post:t,showMoreButton:r,layoutList:o,type:i,styleFontSizeMetadata:a,visibleActions:s,withoutFooter:l,itemConfig:u}=e;const c=Il({post:t}),d=(0,zt.d4)((e=>(0,Vc.b)(e,"specs.wixBlog.FeedMoreActionsFix"))),p=r||(null==t?void 0:t.isPinned);return n().createElement("div",{className:o?void 0:sp},n().createElement(ap,{type:i,post:t,itemConfig:u,showMoreButton:r,withoutFooter:l}),o?null:n().createElement(n().Fragment,null,n().createElement($u,{post:t,type:i}),(d&&p||c.isMetadataHeaderVisible)&&n().createElement(yd,{post:t,type:i,styleFontSizeMetadata:a,showMoreButton:r,visibleActions:s})))},up={},cp=n().memo((e=>{let{type:t,post:r,postId:o,itemConfig:a,canSeeMoreButton:s=(()=>!1),layoutSidesPadding:l,galleryOptions:u={},textBoxAlignment:c,visibleActions:d}=e;const{isRTL:p}=Rt(),{applyFeedDesign:h,getPostClassName:g,section:m}=(0,Oa.A)(),f=(0,zt.d4)((e=>r||((e,t)=>Zl(e,t)||$l(e,t))(e,o))),{contentFontClassName:y}=Tl(),{postMetadataFontSize:v}=Ol(),b=Il({post:f}),S=(0,zt.d4)((e=>((e,t)=>{switch(e){case cr.Jt.Center:return"center";case cr.Jt.Right:return t?"start":"end";case cr.Jt.Left:default:return t?"end":"start"}})((0,ir.tc)(e,p),p))),P=s(f),{displayFooterIcons:w}=a,C=(0,ur.Ev)(t),E=(0,ur.Qz)(t),A=!b.isMetadataFooterVisible,I=t?nu.A[t]:void 0,_=(0,i.useMemo)((()=>tt()(nu.A.container,nu.A.proGallery,p&&nu.A.isRTL,I,iu[S],A&&nu.A.withoutFooter,y,"blog-text-color","blog-card-background-color","blog-card-border-color","post-list-item",g("border-color","post-container",(0,_s.hw)(t,"background-color")))),[p,I,S,A,y,g,t]),T=(0,i.useMemo)((()=>tt()(nu.A.contentWrapper,I,p&&iu.isRTL,!h&&(0,ur.NN)(t)&&nu.A.withBackground,A&&nu.A.withoutFooter,"post-list-item-wrapper",(0,ur.NN)(t)&&g("overlay-background-color"),g("description-font",(0,_s.hw)(t,"description-color"),(0,_s.hw)(t,"description-fill")))),[p,I,h,A,g,t]),O=(0,i.useMemo)((()=>tt()(g("description-font",(0,_s.hw)(t,"description-color")))),[g,t]),x=(0,i.useMemo)((()=>({fontSize:v})),[v]),N=(0,i.useMemo)((()=>{var e;const r={background:(ou(f)||null!=f&&null!=(e=f.media)&&null!=(e=e.embedMedia)&&null!=(e=e.thumbnail)&&e.url)&&(0,ur.NN)(t)?"transparent":void 0,borderWidth:0,"--wix-blog-inline-padding":(0,le.isNumber)(l)?`${l}px`:void 0};return C&&(r.background="transparent",r.paddingTop="12px",r.paddingBottom="12px",c===ya?r.marginLeft="14px":r.marginRight="14px"),!(0,le.get)(f,"coverImage.shouldRender")&&E&&(c===ya&&(r.paddingLeft=2*u.itemBorderWidth+"px"),c===va&&(r.paddingRight=2*u.itemBorderWidth+"px")),r}),[f,t,l,C,c,u.itemBorderWidth,E]),L=(0,i.useCallback)((function(e){return void 0===e&&(e=!1),!(0,ur.NN)(t)&&e?up:(0,le.isNumber)(l)?{paddingLeft:l,paddingRight:l,...e&&{left:0,right:0}}:{}}),[l,t]);return n().createElement("div",{className:tt()(_,nu.A.forceRelative),style:N,"data-hook":"post-list-item"},n().createElement("div",{style:L(),className:T},n().createElement(lp,{post:f,showMoreButton:P,layoutList:C,type:t,styleFontSizeMetadata:x,visibleActions:d,withoutFooter:A,itemConfig:a}),C?n().createElement(n().Fragment,null,n().createElement($u,{post:f,type:t}),n().createElement(op,{post:f,type:t,withoutFooter:A,section:m}),n().createElement(yd,{post:f,type:t,styleFontSizeMetadata:x,showMoreButton:P,visibleActions:d})):null,b.isMetadataFooterVisible&&n().createElement("div",{style:L(!0),className:tt()(nu.A.footer,I,nu.A.withoutCover,nu.A[m])},!C&&n().createElement(Fu.ns,{className:tt()(nu.A.separator,I)}),n().createElement("div",{style:x},n().createElement(Vu,{className:O,displayIcons:w,post:f,type:t})))))})),dp=cp,pp="Bzea4H",hp=(e,t,r)=>{var o;const i=t.containerWidth-r.width,n=-(i>0?r.width:r.width-1+i),a={gallerySizeType:la,gallerySizePx:t.layoutPostSize,imageMargin:0===t.layoutSpacing?n:t.layoutSpacing,enableInfiniteScroll:!0,allowTitle:!0,allowContextMenu:!0,overlayAnimation:ua,imageHoverAnimation:ca,imageLoadingMode:da,imageInfoType:"ATTACHED_BACKGROUND",textsHorizontalPadding:-30,itemBorderWidth:r.width,itemBorderColor:r.color,isRTL:t.isRTL,videoPlay:t.videoSettings.play,itemClick:"nothing",videoSound:t.videoSettings.sound,showVideoPlayButton:t.videoSettings.showPlayButton,videoLoop:t.videoSettings.loop,videoSpeed:t.videoSettings.playbackSpeed,groupTypes:1},s=t.layoutCardsRowType===Wn.Zx.ItemsPerRow&&t.layoutPostsPerRow?{gridStyle:1,numberOfImagesPerRow:t.layoutPostsPerRow}:{},l=`${t.layoutImageCropType}`===Wn.dq.Max?ga:pa,u=((e,t,r)=>t.hideCoverImage&&t.layoutAutoHeightEnabled?99:`${r}`!==Wn.dq.Max?t.layoutImageRatio:(0,ur.js)(e)?4/3:16/9)(e,t,t.layoutImageCropType),c=t.layoutImageResizingMode===Wn.X.Fixed?{textBoxWidth:t.layoutPostSize-t.layoutImageWidth,calculateTextBoxWidthMode:Sa}:{textBoxWidthPercent:Math.abs(t.layoutImageProportions-100),calculateTextBoxWidthMode:Pa};switch(e){case ur.PE.PgTextOnImageSmall:case ur.PE.PgTextOnImageMedium:case ur.PE.PgTextOnImageLarge:return{...a,...s,galleryLayout:2,placeGroupsLtr:!0,cubeImages:!0,cubeType:pa,cubeRatio:u,titlePlacement:ma,hoveringBehaviour:sa};case ur.PE.PgSideBySide:case ur.PE.PgSideBySideRight:return{...a,...c,galleryLayout:2,placeGroupsLtr:!0,cubeType:l,cubeRatio:u,hoveringBehaviour:aa,titlePlacement:t.textBoxAlignment,gridStyle:1,numberOfImagesPerRow:1};case ur.PE.PgCardMedium:return{...a,...s,galleryLayout:1,isVertical:!0,cubeImages:!0,calculateTextBoxHeightMode:ba,textBoxHeight:t.layoutContentHeight,textsVerticalPadding:-15,titlePlacement:fa,hoveringBehaviour:aa};case ur.PE.PgOneColumn:return{...a,galleryLayout:2,placeGroupsLtr:!0,isVertical:!0,cubeImages:!0,cubeType:ha,cubeRatio:u,calculateTextBoxHeightMode:ba,textBoxHeight:t.layoutContentHeight,textsVerticalPadding:-15,titlePlacement:fa,hoveringBehaviour:aa};case ur.PE.Slider:return{...a,galleryLayout:5,isVertical:!0,cubeImages:!0,cubeType:l,cubeRatio:u,showArrows:t.showArrows,slideshowInfoSize:t.layoutContentHeight,arrowsSize:t.arrowsSize,isAutoSlideshow:t.autoSlide,autoSlideshowInterval:t.pauseTime,autoSlideshowType:"interval",arrowsPosition:t.arrowsPosition,arrowsColor:"string"==typeof t.arrowsColor?t.arrowsColor:null==(o=t.arrowsColor)?void 0:o.value,slideshowLoop:t.loop,layoutParams:{navigationArrows:{verticalAlignment:"IMAGE_CENTER"}}};case ur.PE.List:case ur.PE.ListMedium:case ur.PE.ListLarge:return{...a,...s,...c,galleryLayout:2,placeGroupsLtr:!0,isVertical:!0,cubeImages:!0,numberOfImagesPerRow:1,cubeType:l,cubeRatio:u,hoveringBehaviour:aa,titlePlacement:`SHOW_BELOW,${t.textBoxAlignment}`,textBoxHeight:t.layoutContentHeight,calculateTextBoxHeightMode:ba};case ur.PE.PgGrid:case ur.PE.PgGridIntermediate:case ur.PE.PgGridLarge:default:return{...a,...s,galleryLayout:2,placeGroupsLtr:!0,isVertical:!0,cubeImages:!0,cubeType:l,cubeRatio:u,calculateTextBoxHeightMode:ba,textBoxHeight:t.layoutContentHeight,textsVerticalPadding:-15,titlePlacement:fa,hoveringBehaviour:aa}}};var gp=r(79597),mp=r(73990),fp=r.n(mp);const yp=({pathname:e,videoHost:t})=>fp()(t)(e);var vp=(e=>(e.PARAGRAPH="PARAGRAPH",e.TEXT="TEXT",e.HEADING="HEADING",e.BULLETED_LIST="BULLETED_LIST",e.ORDERED_LIST="ORDERED_LIST",e.LIST_ITEM="LIST_ITEM",e.BLOCKQUOTE="BLOCKQUOTE",e.CODE_BLOCK="CODE_BLOCK",e.VIDEO="VIDEO",e.DIVIDER="DIVIDER",e.FILE="FILE",e.GALLERY="GALLERY",e.GIF="GIF",e.HTML="HTML",e.IMAGE="IMAGE",e.LINK_PREVIEW="LINK_PREVIEW",e.MAP="MAP",e.POLL="POLL",e.APP_EMBED="APP_EMBED",e.BUTTON="BUTTON",e.COLLAPSIBLE_LIST="COLLAPSIBLE_LIST",e.TABLE="TABLE",e.EMBED="EMBED",e.COLLAPSIBLE_ITEM="COLLAPSIBLE_ITEM",e.COLLAPSIBLE_ITEM_TITLE="COLLAPSIBLE_ITEM_TITLE",e.COLLAPSIBLE_ITEM_BODY="COLLAPSIBLE_ITEM_BODY",e.TABLE_CELL="TABLE_CELL",e.TABLE_ROW="TABLE_ROW",e.EXTERNAL="EXTERNAL",e.AUDIO="AUDIO",e.CAPTION="CAPTION",e.LAYOUT="LAYOUT",e.LAYOUT_CELL="LAYOUT_CELL",e.UNRECOGNIZED="UNRECOGNIZED",e))(vp||{});const bp=(e,t,r)=>{const o=(e.nodes??[]).find((e=>e.type===vp.VIDEO));if(o?.videoData){const e=o.videoData.thumbnail||{},i=o.videoData.video?.src?.id?yp({videoHost:r,pathname:o.videoData.video.src.id}):o.videoData.video?.src?.url;if(e.src?.id){const r=Hc({pathname:e.src?.id||"",width:e.width,height:e.height,imageHost:t});return{thumbnail_url:r.url,thumbnail_height:r.height,thumbnail_width:r.width,video_url:i}}return{thumbnail_url:e.src?.url,thumbnail_height:e.height,thumbnail_width:e.width,video_url:i}}},Sp=e=>{const t=e.nodes??[],r=t.find((e=>e.type===vp.IMAGE));if(r?.imageData)return{id:r.imageData.image?.src?.id||r.imageData.image?.src?.url,file_name:r.imageData.image?.src?.id||r.imageData.image?.src?.url,width:r.imageData.image?.width,height:r.imageData.image?.height};const o=t.find((e=>e.type===vp.GALLERY));if(o?.galleryData){const e=o.galleryData?.items?.[0];if(e)return{id:e.image?.media?.src?.id||e.image?.media?.src?.url,file_name:e.image?.media?.src?.id||e.image?.media?.src?.url,width:e.image?.media?.width,height:e.image?.media?.height}}},Pp=(e,t)=>({resizeThumbnail:(t,r,o)=>Hc({pathname:t,width:r,height:o,imageHost:e}),getVideoUrl:e=>yp({pathname:e,videoHost:t})}),wp=(e,t,r)=>{return t&&r&&e.content?(o=e.content)&&"nodes"in o?((e,t,r)=>{const o=(0,gp.getResolvedCoverImage)(e);if(o)return o;let{imageMetadata:i,videoMetadata:n,isCustom:a,isEnabled:s}=(0,gp.getCustomCoverImage)(e);return i||(i=Sp(e.content)),i||(n=bp(e.content,t,r)),{shouldRender:Boolean(i||n)&&s,imageMetadata:i,videoMetadata:n,src:i||(0,le.get)(n,"thumbnail_url"),isEnabled:s,isCustom:a}})({content:e.content},t,r):(0,gp.getPostCover)(e,Pp(t,r)):e?.coverImage??{};var o},Cp="https://static.wixstatic.com/media/",Ep=e=>/(^https?)|(^data)|(^blob)/.test(e),Ap=e=>{let{item:t,originalUrl:r,resizeMethod:o,requiredHeight:i,requiredWidth:n,sharpParams:a,focalPoint:s,useWebp:l,devicePixelRatio:u}=e;r=r||"",a=a||{},a.quality>0&&(a.quality=Math.min(90,a.quality));const c={x:50,y:50};if(s&&s[0]>=0&&s[1]>=0&&(c.x=Math.round(100*s[0]),c.y=Math.round(100*s[1])),!0===a.allowUsm&&a.usm?(a.usm.usm_a=Math.min(5,Math.max(0,a.usm.usm_a||0)),a.usm.usm_r=Math.min(128,Math.max(0,a.usm.usm_r||0)),a.usm.usm_t=Math.min(1,Math.max(0,a.usm.usm_t||0))):a.usm={usm_a:0,usm_r:0,usm_t:0},!Ep(r)||r.indexOf("//static.wixstatic.com")>=0){const e="fit"===o?xc.sdk.getScaleToFitImageURL:xc.sdk.getScaleToFillImageURL,s={devicePixelRatio:u};a.quality>0&&(s.quality=a.quality),a.blur>0&&(s.filters={blur:a.blur}),c&&(s.focalPoint=c),a&&a.usm&&(s.unsharpMask={radius:parseFloat(a.usm.usm_r),amount:parseFloat(a.usm.usm_a),threshold:parseFloat(a.usm.usm_t)});const d=e((e=>e.replace(Cp,""))(r),t.maxWidth,t.maxHeight,u?n*u:n,u?i*u:i,s);return l?d.replace(/[^.]\w*$/,"webp"):d}return r},Ip=e=>{let{item:t,originalUrl:r,resizeMethod:o,requiredWidth:i,requiredHeight:n,sharpParams:a,focalPoint:s}=e;const l=/\/v\d\/(fill|fit)\/w_\d*(,|%2C)h_\d*/.exec(r);return l&&l.index>0&&(r=r.substr(0,l.index)),"video"===o?((e,t,r,o)=>{let i=t;if(e.qualities&&e.qualities.length){let t="/";const r=e.qualities.filter((e=>"mp4"===e.formats[0]));for(let n=0;n<r.length;n++){const a=r[n];if(a.height>=o||!r[n+1]){t+=a.quality;for(const r of a.formats)i="//video.wixstatic.com/video/"+e.url+t+"/"+r+"/file."+r;break}}return i}})(t,r,0,n):"full"===o?(e=>Ep(e)?e:Cp+e)(r):[{type:null==(u=r)||null==u.match||null==(u=u.match(/[^.]\w*$/))?void 0:u[0],url:Ap({item:t,originalUrl:r,resizeMethod:o,requiredWidth:i,requiredHeight:n,sharpParams:a,focalPoint:s,useWebp:!1,devicePixelRatio:1}),dpr:[1,2].map((e=>Ap({item:t,originalUrl:r,resizeMethod:o,requiredWidth:i,requiredHeight:n,sharpParams:a,focalPoint:s,useWebp:!1,devicePixelRatio:e})+` ${e}x`)).join(", ")},{type:"webp",url:Ap({item:t,originalUrl:r,resizeMethod:o,requiredWidth:i,requiredHeight:n,sharpParams:a,focalPoint:s,useWebp:!0,devicePixelRatio:1}),dpr:[1,2].map((e=>Ap({item:t,originalUrl:r,resizeMethod:o,requiredWidth:i,requiredHeight:n,sharpParams:a,focalPoint:s,useWebp:!0,devicePixelRatio:e})+` ${e}x`)).join(", ")}];var u},_p=/(?:https:\/\/static.wixstatic.com\/media\/)([\w\d.]+)(?:\/v\d\/(?:fit|fill)\/)w_(\d+)*(?:,|%2C)h_(\d+)/,Tp=(e,t,r,o)=>{var i,n;const a=(0,zn.S)(e),s={itemId:a,metaData:{...r,alt:e.title},url:""},l=wp(e,"","")??{};let{imageMetadata:u}=l;const{videoMetadata:c,shouldRender:d}=l,p=(null==e||null==(i=e.media)?void 0:i.altText)??e.title;if(t||!d)return s;if(u)return"string"==typeof u&&u.startsWith(Cp)&&(u=(e=>{const t=e.match(_p);if(t){const[,e,r,o]=t;return{file_name:e,width:+r,height:+o}}return{file_name:"",height:1,width:1e4}})(u)),{itemId:a,metaData:{type:"image",height:u.height||o.height,width:u.width||o.width,alt:p},url:u.id??u.file_name};if(c){const{height:e,width:t,thumbnail_height:r,thumbnail_width:i,thumbnail_url:n}=c,s=""===(null==c?void 0:c.video_url),l=s?n:null==c?void 0:c.video_url;return{itemId:a,metaData:{type:s?"image":"video",height:e||r||o.height,width:t||i||o.width,poster:{url:n,height:r,width:i},alt:p,videoUrl:l},url:l}}if(null!=e&&null!=(n=e.media)&&n.embedMedia){var h,g,m,f;if(null!=e&&null!=(h=e.media)&&null!=(h=h.embedMedia)&&h.video){var y,v,b,S,P,w,C,E;const t=""===(null==e||null==(y=e.media)||null==(y=y.embedMedia)||null==(y=y.video)?void 0:y.url),r=t?null==e||null==(v=e.media)||null==(v=v.embedMedia)||null==(v=v.thumbnail)?void 0:v.url:null==e||null==(b=e.media)||null==(b=b.embedMedia)||null==(b=b.video)?void 0:b.url;return{itemId:a,metaData:{type:t?"image":"video",height:null==e||null==(S=e.media)||null==(S=S.embedMedia)||null==(S=S.video)?void 0:S.height,width:null==e||null==(P=e.media)||null==(P=P.embedMedia)||null==(P=P.video)?void 0:P.width,poster:{url:null==e||null==(w=e.media)||null==(w=w.embedMedia)||null==(w=w.thumbnail)?void 0:w.url,height:(null==e||null==(C=e.media)||null==(C=C.embedMedia)||null==(C=C.thumbnail)?void 0:C.height)||o.height,width:(null==e||null==(E=e.media)||null==(E=E.embedMedia)||null==(E=E.thumbnail)?void 0:E.width)||o.width},alt:p,videoUrl:r},url:r}}return{itemId:a,metaData:{type:"image",height:(null==e||null==(g=e.media)||null==(g=g.embedMedia)||null==(g=g.thumbnail)?void 0:g.height)||o.height,width:(null==e||null==(m=e.media)||null==(m=m.embedMedia)||null==(m=m.thumbnail)?void 0:m.width)||o.width,alt:p},url:null==e||null==(f=e.media)||null==(f=f.embedMedia)||null==(f=f.thumbnail)?void 0:f.url}}return s};var Op=["isRTL","cubeType","cubeImages","arrowsSize","arrowsPosition","cubeRatio","cropRatio","layoutParams_cropRatio","collageAmount","collageDensity","columnsWidth","cropOnlyFill","chooseBestGroup","externalInfoHeight","externalInfoWidth","fixedColumns","groupsPerStrip","galleryMargin","layoutParams_gallerySpacing","groupTypes","groupSize","isVertical","imageMargin","minItemSize","scrollDirection","placeGroupsLtr","rotatingGroupTypes","layoutParams_repeatingGroupTypes","rotatingCropRatios","smartCrop","scatter","smartCrop","targetItemSize","hasThumbnails","thumbnailSize","thumbnailSpacings","galleryThumbnailsAlignment","isSlideshow","galleryLayout","slideshowInfoSize","layoutParams_structure_galleryRatio_value","gallerySizeType","gallerySizePx","gallerySize","enableInfiniteScroll","imageInfoType","textsHorizontalPadding","gridStyle","numberOfImagesPerRow","numberOfImagesPerCol","calculateTextBoxHeightMode","textBoxHeight","textsVerticalPadding","titlePlacement","textBoxWidthPercent","calculateTextBoxWidthMode","useMaxDimensions"],xp=function(e,t){return Object.keys(e).filter((function(e){return t.indexOf(e)>=0})).reduce((function(t,r){return t[r]=e[r],t}),{})},Np=function(e){void 0===e&&(e="");for(var t=0,r=0;r<e.length;r++)t+=e.charCodeAt(r);return t};function Lp(e){var t=e.items,r=e.rawOptions,o=void 0===r?e.options:r,i=e.useNativeLayoutFixer,n=e.customCreateGetOptionsFunc,a=t.slice(0,20).map((function(e){return"".concat(Np(e.mediaUrl),"_").concat(e.width||e.metaData.width,"_").concat(e.height||e.metaData.height)})).join("|");if(i){var s="function"==typeof n?n(o):function(e){var t=gr(e),r="(galleryEle) => {\n        const computedStyle = window.getComputedStyle(galleryEle);\n        const computedStyles = {};\n        // search css variables to query\n        const cssVariables = [];\n        const stylesheets = document.styleSheets;\n        for (let i = 0; i < stylesheets.length; i++) {\n            try {\n                const rules = stylesheets[i].rules || stylesheets[i].cssRules;\n                for (let j = 0; j < rules.length; j++) {\n                    const rule = rules[j];\n                    const style = rule.style;\n                    if (style) {\n                        for (let k = 0; k < style.length; k++) {\n                            const prop = style[k];\n                            if (prop.startsWith('--')) {\n                                if (prop.includes('ProGallery-')) {\n                                    cssVariables.push(prop);\n                                }\n                            }\n                        }\n                    }\n                }\n            } catch (e) {\n            }\n        }\n        const cssVariablesMap = cssVariables.map((item) => {\n            return {\n                name: item,\n                value: computedStyle.getPropertyValue(item),\n            }\n        }).filter((item) => item.value);\n        // get computed styles\n        for (let i = 0; i < cssVariablesMap.length; i++) {\n            computedStyles[cssVariablesMap[i].name] = cssVariablesMap[i].value;\n        }\n        const options = Object.entries(computedStyles).reduce((res, [key, value]) => {\n            const keyNameStart = key.indexOf('ProGallery-') + 'ProGallery-'.length;\n            const keyName = key.substring(keyNameStart);\n            res[keyName] = JSON.parse(value);\n            return res;\n        }, {});\n        const optionsStr = Object.entries({...".concat(JSON.stringify(t),",...options})\n        .map(([key, value]) => ([key, JSON.stringify(value)]))\n        .filter(([key, value]) => key.includes('layoutParams_'))\n        .map((keyval) => keyval.join(\":\")).join('|');\n        return optionsStr;\n    }");return"(ele) => {\n        const mainFunc = ".concat(r,";\n        return mainFunc(ele);\n    }")}(o);return{hrefStr:"/_serverless/pro-gallery-native-layout-fixer/layoutCssNative?id=".concat(e.id,"&items=").concat(a,"&container="),getOptions:s}}var l=Object.entries(xp(o,Op)).map((function(e){return e.join(":")})).join("|");return{hrefStr:"/_serverless/pro-gallery-css-v4-server/layoutCss?ver=2&id=".concat(e.id,"&items=").concat(a,"&container="),getOptions:"() => ".concat(JSON.stringify(l))}}function Mp(e){var t,r,o,i,n,a,s,l,u,c,d,p,h,g,m,f,y,v,b,S,P,w,C,E,A,I,_,T,O,x,N,L,M,R,k,D,B=e.useNativeLayoutFixer,H=Lp(e),V=H.hrefStr,F=H.getOptions,G=e.measureContainerId||"pro-gallery-"+e.id,z=function(t){return"\n  ".concat(t,"\n  var isVertical = options.includes('layoutParams_structure_scrollDirection:\"VERTICAL\"');\n  var layoutFixerUrl =  '").concat(V,"' + pgMeasures.top + '_' + pgMeasures.width + '_' + pgMeasures.height + '_' + window.innerHeight + '&options=' + options;\n  document.getElementById('").concat("layout-fixer-style-"+e.id,"').setAttribute('href', encodeURI(layoutFixerUrl));\n  ")};return z(B?'\n      var ele = document.getElementById("'.concat(e.id,'"), nativeRect = ele.getBoundingClientRect();\n      var pgMeasures = {top: nativeRect.top, width: nativeRect.width, height: Number(getComputedStyle(ele).getPropertyValue("height").replace("px", ""))};\n      var options = (').concat(F,")(ele);\n    "):"\n      var ele = document.getElementById('".concat(G,"');\n      var pgMeasures = ele.getBoundingClientRect();\n      var options = (").concat(F,")(ele);\n      var width = pgMeasures.width;\n      var height = pgMeasures.height;\n\n      var isIOS = /iPad|iPhone|iPod/.test(navigator?.userAgent);\n      if(isIOS) {\n        width = ").concat((null===(o=null===(r=null===(t=null==e?void 0:e.containerPostProcess)||void 0===t?void 0:t.ios)||void 0===r?void 0:r.width)||void 0===o?void 0:o.percentage)?"width * ".concat(null===(n=null===(i=null==e?void 0:e.containerPostProcess)||void 0===i?void 0:i.ios)||void 0===n?void 0:n.width.percentage):"width",";\n        width = ").concat((null===(l=null===(s=null===(a=null==e?void 0:e.containerPostProcess)||void 0===a?void 0:a.ios)||void 0===s?void 0:s.width)||void 0===l?void 0:l.addition)?"width + (".concat(null===(c=null===(u=null==e?void 0:e.containerPostProcess)||void 0===u?void 0:u.ios)||void 0===c?void 0:c.width.addition,")"):"width",";\n        height = ").concat((null===(h=null===(p=null===(d=null==e?void 0:e.containerPostProcess)||void 0===d?void 0:d.ios)||void 0===p?void 0:p.height)||void 0===h?void 0:h.percentage)?"height * ".concat(null===(f=null===(m=null===(g=null==e?void 0:e.containerPostProcess)||void 0===g?void 0:g.ios)||void 0===m?void 0:m.height)||void 0===f?void 0:f.percentage):"height",";\n        height = ").concat((null===(b=null===(v=null===(y=null==e?void 0:e.containerPostProcess)||void 0===y?void 0:y.ios)||void 0===v?void 0:v.height)||void 0===b?void 0:b.addition)?"height + (".concat(null===(w=null===(P=null===(S=null==e?void 0:e.containerPostProcess)||void 0===S?void 0:S.ios)||void 0===P?void 0:P.height)||void 0===w?void 0:w.addition,")"):"height",";\n      } else {\n        width = ").concat((null===(E=null===(C=null==e?void 0:e.containerPostProcess)||void 0===C?void 0:C.width)||void 0===E?void 0:E.percentage)?"width * ".concat(null===(A=e.containerPostProcess)||void 0===A?void 0:A.width.percentage):"width",";\n        width = ").concat((null===(_=null===(I=null==e?void 0:e.containerPostProcess)||void 0===I?void 0:I.width)||void 0===_?void 0:_.addition)?"width + (".concat(null===(T=e.containerPostProcess)||void 0===T?void 0:T.width.addition,")"):"width",";\n        height = ").concat((null===(x=null===(O=null==e?void 0:e.containerPostProcess)||void 0===O?void 0:O.height)||void 0===x?void 0:x.percentage)?"height * ".concat(null===(L=null===(N=null==e?void 0:e.containerPostProcess)||void 0===N?void 0:N.height)||void 0===L?void 0:L.percentage):"height",";\n        height = ").concat((null===(R=null===(M=null==e?void 0:e.containerPostProcess)||void 0===M?void 0:M.height)||void 0===R?void 0:R.addition)?"height + (".concat(null===(D=null===(k=null==e?void 0:e.containerPostProcess)||void 0===k?void 0:k.height)||void 0===D?void 0:D.addition,")"):"height",";\n      }\n\n      pgMeasures = { top: pgMeasures.top, width, height };\n"))}var Rp=function(e){var t;try{var r="undefined"!=typeof window?((null===(t=window.document.getElementById("layout-fixer-style-"+e.id))||void 0===t?void 0:t.href)||"").replace(/^.*\/\/[^/]+/,""):"";return n().createElement("div",{id:"layout-fixer-"+e.id+e.isPrerenderMode,key:"layout-fixer-"+e.id+e.isPrerenderMode,style:{display:"none"}},e.isPrerenderMode&&n().createElement("link",{href:r,rel:"stylesheet",id:"layout-fixer-style-"+e.id}),n().createElement("script",{dangerouslySetInnerHTML:{__html:"try {\n            window.requestAnimationFrame(function() {\n              setTimeout(() => {\n                ".concat(Mp(e),"\n              }, 0);\n            });\n        } catch (e) {\n          console.warn('Cannot set layoutFixer css', e);\n        }")}}))}catch(e){return n().createElement("div",{id:"layoutFixerErrors",style:{display:"none"}},e.toString())}};function kp(e){const{rootWidth:t}=Bt(),r=(0,zt.d4)(er.ah),{dimensions:o}=Rt(),a=(0,i.useMemo)((()=>{const e=o.width||t;return(!e||isNaN(e))&&!r}),[null==o?void 0:o.width,r,t]),[s,l]=(0,i.useState)(a),{experiments:u}=(0,Ae.W)(),c=(0,i.useMemo)((()=>u.enabled(oa)&&s),[u,s]);(0,i.useEffect)((()=>{if(s!==a){const e=requestAnimationFrame((()=>{l(a)}));return()=>cancelAnimationFrame(e)}}),[a,s]);const d=!e.items.every((e=>""===e.url))&&c;return n().createElement(n().Fragment,null,e.children(c),d?n().createElement(Rp,{id:e.id,items:e.items,isPrerenderMode:!0,options:e.options}):void 0)}Rp.defaultProps={measureContainerId:""},Rp.propTypes={isPrerenderMode:G().bool,id:G().string,items:G().array,options:G().object,useNativeLayoutFixer:G().bool,containerPostProcess:G().shape({width:G().shape({percentage:G().number,addition:G().number}),height:G().shape({percentage:G().number,addition:G().number}),ios:G().shape({width:G().shape({percentage:G().number,addition:G().number}),height:G().shape({percentage:G().number,addition:G().number})})}),measureContainerId:G().string};const Dp="_SIYmI",Bp={elementsOverride:{item:"article"}};const Hp=e=>{const{t}=(0,nt.B)(),{isEditor:r,isRTL:o}=Rt(),{experiments:a}=(0,Ae.W)(),s=(0,i.useRef)((()=>{try{return"undefined"!=typeof window?window:{addEventListener:(e,t)=>{Ya.addEventListener(e.toUpperCase(),t)},removeEventListener:(e,t)=>{Ya.removeEventListener(e.toUpperCase(),t)}}}catch(e){return console.error("Cannot get scrolling element",e),null}})()),{borderWidth:l}=xa(),{getPostClassName:u}=(0,Oa.z)(),c=(0,zt.dN)(),d=function(e){let{section:t,layoutDefaults:r={},layoutName:o,layoutType:i}=e;const{rootWidth:n}=Bt(),a=(0,_a.A)({layoutType:i,section:t}),s=(0,zt.d4)(((e,t)=>{var r;return null==(r=t.dimensions)?void 0:r.width})),l=(0,zt.d4)(ir.et),u=Xa({createdWithResponsiveEditor:l,section:a.section}),c=(0,zt.d4)((e=>(0,ir.yu)({state:e,section:a.section,layoutType:a.layoutType}))),d=u?0:c,p=(0,zt.d4)((e=>(0,ir.nH)({state:e,section:a.section,layoutType:a.layoutType})===Wn.eg.AUTO)),h=(0,zt.d4)((e=>(0,ir.yO)({state:e,section:a.section}))),g=(0,zt.d4)(er.Ny),m=(0,zt.d4)((e=>p?Is(e,a.section,a.layoutType):(0,ir.Xp)({state:e,section:a.section,layoutType:a.layoutType})))??r.contentHeight,f=(0,zt.d4)((e=>wa[(0,ir.Li)({state:e,section:a.section,layoutType:a.layoutType})])),y=(0,zt.d4)((e=>(0,ir.Hv)({state:e,section:a.section,layoutType:a.layoutType}))),v=(0,zt.d4)((e=>(0,ir.ky)({state:e,section:a.section,layoutType:a.layoutType}))),b=(0,zt.d4)((e=>(0,ir.AO)({state:e,section:a.section,layoutType:a.layoutType}))),S=(0,zt.d4)((e=>Ca[(0,ir.$9)({state:e,section:a.section,layoutType:a.layoutType})??r.imageRatio])),P=(0,zt.d4)((e=>(0,ir.MP)({state:e,section:a.section,layoutType:a.layoutType}))),w=(0,zt.d4)((e=>(0,ir.y3)({state:e,hostWidth:s,rootWidth:n,layoutMargins:d,section:a.section,layoutType:a.layoutType}))),C=(0,zt.d4)((e=>(0,ir.EJ)({state:e,section:a.section,layoutType:a.layoutType})??r.layoutCardsRowType)),E=(0,zt.d4)((e=>(0,ir.Rm)({state:e,section:a.section,layoutType:a.layoutType})??r.layoutPostsPerRow)),A=(0,zt.d4)((e=>(0,ir.eW)({state:e,section:a.section,layoutType:a.layoutType})??r.sidesPadding)),I=(0,zt.d4)((e=>(0,ir.AK)({state:e,section:a.section,layoutType:a.layoutType})??r.spacing)),_=(0,zt.d4)((e=>((e,t)=>(0,er.sb)(e)?dr.A.viewMode.EDIT:(0,er.bU)(e)?dr.A.viewMode.PREVIEW:(0,er.ah)(e)?dr.A.viewMode.SEO:t?dr.A.viewMode.SITE:void 0)(e,n))),T=(0,zt.d4)((e=>ra(e,a.section))),O=(0,zt.d4)(ir.Xu);return{hostWidth:s,section:a.section,layoutType:a.layoutType,layoutName:o??a.layoutName,createdWithResponsiveEditor:l,layoutAutoHeightEnabled:p,rootWidth:n,isMobile:g,borderColor:"string"==typeof h?h:h.value||h.themeName,layoutContentHeight:m,textBoxAlignment:f,layoutImageProportions:y,layoutImageWidth:v,layoutImageResizingMode:b,layoutImageRatio:S,layoutImageCropType:P,layoutMargins:d,layoutPostSize:w,layoutCardsRowType:C,layoutPostsPerRow:E,layoutSidesPadding:A,layoutSpacing:I,viewMode:_,videoSettings:T,useMobilePostListLayout:O}}({section:e.section,layoutType:e.layoutType,layoutName:e.layoutName,layoutDefaults:e.layoutDefaults}),p=a.enabled(oa);(0,i.useEffect)((()=>{d.createdWithResponsiveEditor&&document.documentElement.classList.add("enable-scroll")}),[d.createdWithResponsiveEditor]);const h=(0,i.useMemo)((()=>{const t=Ja({borderWidth:l,isEditor:r,useLayoutFixerExperimentEnabled:p,layoutType:d.layoutType,section:d.section,createdWithResponsiveEditor:d.createdWithResponsiveEditor,hostWidth:d.hostWidth,isMobile:d.isMobile,layoutContentHeight:d.layoutContentHeight,layoutImageRatio:d.layoutImageRatio,layoutMargins:d.layoutMargins,layoutPostSize:d.layoutPostSize,rootWidth:d.rootWidth,useMobilePostListLayout:d.useMobilePostListLayout});return hp(d.layoutType,{isRTL:o,containerWidth:t.width,hideCoverImage:e.hideCoverImage,layoutAutoHeightEnabled:d.layoutAutoHeightEnabled,layoutCardsRowType:d.layoutCardsRowType,layoutContentHeight:d.layoutContentHeight,layoutImageCropType:d.layoutImageCropType,layoutImageProportions:d.layoutImageProportions,layoutImageRatio:d.layoutImageRatio,layoutImageResizingMode:d.layoutImageResizingMode,layoutImageWidth:d.layoutImageWidth,layoutPostSize:(0,ur.q7)(d.layoutType)?d.hostWidth:d.layoutPostSize,layoutPostsPerRow:d.layoutPostsPerRow,layoutSpacing:d.layoutSpacing,textBoxAlignment:d.textBoxAlignment,videoSettings:d.videoSettings,...e.layoutOptions},{width:l,color:d.borderColor})}),[l,r,o,p,e.hideCoverImage,e.layoutOptions,d.borderColor,d.createdWithResponsiveEditor,d.hostWidth,d.isMobile,d.layoutAutoHeightEnabled,d.layoutCardsRowType,d.layoutContentHeight,d.layoutImageCropType,d.layoutImageProportions,d.layoutImageRatio,d.layoutImageResizingMode,d.layoutImageWidth,d.layoutMargins,d.layoutPostSize,d.layoutPostsPerRow,d.layoutSpacing,d.layoutType,d.rootWidth,d.section,d.textBoxAlignment,d.useMobilePostListLayout,d.videoSettings]),g=d.videoSettings.play,m=(0,i.useCallback)(((t,r)=>{if(!(0,ur.gc)(d.layoutType)&&(e=>e===ia)(t)&&(e=>(null==e?void 0:e.clickTarget)===na)(r)){var o;const t=e.allPosts.find((e=>(0,zn.S)(e)===r.id));if(null==t||!t.slug||null!=(o=t.coverImage)&&o.videoMetadata&&"onClick"===g)return;c.navigateProGalleryWithinPostPage(t.slug)}}),[e.allPosts,d.layoutType,g,c]),f=(0,i.useMemo)((()=>(e=>{let{allPosts:t,prevAllPosts:r,layoutType:o,layoutName:i,section:a,layoutSidesPadding:s,canSeeMoreButton:l,textBoxAlignment:u,options:c,getPostClassName:d,visibleActions:p}=e;return(e,h)=>{if((0,ur.fG)(o)&&"SHOW_BELOW"===h){const e=tt()(d("background-color"),pp);return n().createElement("div",{className:e})}const g=o?(0,_s.jE)(o):{},m=t.find((t=>(0,zn.S)(t)===e.id))||r.find((t=>(0,zn.S)(t)===e.id));return n().createElement(dp,{itemConfig:g.itemConfig??{},type:i,postId:e.id,post:m,galleryOptions:c,layoutSidesPadding:s,section:a,canSeeMoreButton:l,textBoxAlignment:u,visibleActions:p})}})({getPostClassName:u,options:h,prevAllPosts:[],allPosts:e.allPosts,canSeeMoreButton:e.canSeeMoreButton,layoutName:d.layoutName,layoutType:d.layoutType,section:d.section,visibleActions:e.visibleActions,layoutSidesPadding:d.layoutSidesPadding,textBoxAlignment:d.textBoxAlignment})),[h,u,e.allPosts,e.canSeeMoreButton,e.visibleActions,d.layoutName,d.layoutType,d.section,d.textBoxAlignment,d.layoutSidesPadding]),y="hoveringBehaviour"in h?h.hoveringBehaviour:void 0,v=(0,i.useMemo)((()=>{if(f)return{customHoverRenderer:y===aa?void 0:f,customInfoRenderer:f}}),[f,y]),b=(0,i.useMemo)((()=>{const t=(r=d.layoutType,{height:1,width:1e4,...(0,ur.gc)(r)||(0,ur.q7)(r)?{type:"text"}:{}});var r;const o=(e=>{const t=e.cubeRatio||1,r=e.isVertical?0:e.textBoxWidthPercent??50,o=e.numberOfImagesPerRow??1,i=(e.gallerySizePx??0)/o,n=i-i*r*.01;return{width:n,height:n/t}})(h);return e.allPosts.map((r=>Tp(r,e.hideCoverImage,t,o)))}),[e.allPosts,e.hideCoverImage,d.layoutType,h]),S=n().memo((()=>{const o=Ja({borderWidth:l,isEditor:r,useLayoutFixerExperimentEnabled:p,createdWithResponsiveEditor:d.createdWithResponsiveEditor,hostWidth:d.hostWidth,isMobile:d.isMobile,layoutContentHeight:d.layoutContentHeight,layoutImageRatio:d.layoutImageRatio,layoutMargins:d.layoutMargins,layoutPostSize:d.layoutPostSize,layoutType:d.layoutType,rootWidth:d.rootWidth,section:d.section,useMobilePostListLayout:d.useMobilePostListLayout}),a=(e=>{let{container:t,createdWithResponsiveEditor:r,isMobile:o,layoutMargins:i,layoutPostSize:n,layoutType:a,section:s}=e;const l={"--blog-pl-common-padding-top":`${Na}px`,"--blog-pl-common-padding-bottom":`${La}px`,"--blog-pl-slider-padding-top":`${Ma}px`,"--blog-pl-slider-padding-bottom":`${Ra}px`,"--blog-pl-header-height":`${ka}px`,"--blog-pl-header-margin-bottom":`${Da}px`,"--blog-pl-footer-content-height":`${Ba}px`,"--blog-pl-footer-separator-margin":`${Ha}px`,"--blog-pl-footer-padding-top":`${Va}px`,"--blog-pl-common-title-margin":`${Fa}px`,"--blog-pl-default-title-margin":`${Ga}px`,"--blog-pl-slider-title-margin-top":`${za}px`,"--blog-pl-category-label-margin-bottom":`${Wa}px`,"--blog-pl-slider-category-label-margin-bottom":`${Ua}px`,height:t.height},u=Xa({createdWithResponsiveEditor:r,section:s}),c=(0,ur.js)(a),d=(0,ur.ei)(a);if((c||d)&&s!==dt.$Y&&(l.maxWidth=n),s!==dt.wj&&s!==dt.CI&&s!==dt.$Y||c){l.marginTop=u?20:i,l.marginBottom=u?0:i;const e=(e=>{let{layoutPGSideBySide:t,layoutPGOneColumn:r,layoutMargins:o,useResponsiveStyling:i}=e;return t||r?"auto":i?0:o})({layoutPGSideBySide:c,layoutPGOneColumn:d,layoutMargins:i,useResponsiveStyling:u});l.marginLeft=e,l.marginRight=e}return o&&(l.margin=0),l})({container:o,createdWithResponsiveEditor:d.createdWithResponsiveEditor,isMobile:d.isMobile,layoutMargins:d.layoutMargins,layoutPostSize:d.layoutPostSize,layoutType:d.layoutType,section:d.section}),u=n().useRef(null),c=(e=>{const[t,r]=(0,i.useState)(0);return(0,i.useEffect)((()=>{let t=null;const o=new IntersectionObserver((e=>{let[o]=e;if(o.isIntersecting&&t){const e=t.getBoundingClientRect();r(e.top+window.scrollY)}}));if(e.current){t=e.current;const i=t.getBoundingClientRect();r(i.top+window.scrollY),o.observe(t)}return()=>{t&&o.unobserve(t)}}),[e]),t})(u),g=e.domId??"pro-blog",f=d.isMobile?dr.A.deviceType.MOBILE:dr.A.deviceType.DESKTOP;return n().createElement("div",{key:"pg-container","data-hook":"post-list-pro-gallery-container",style:a,className:tt()(`post-list-pro-gallery-${d.layoutName}`,{"is-mobile":d.isMobile},d.section,d.isMobile&&1===b.length?"post-list-pro-gallery-flat":"",d.textBoxAlignment===ya?"gallery-left-align":"gallery-right-align",Dp,e.className),ref:u},n().createElement(kp,{id:g,items:b,options:h},(e=>n().createElement(Fn,Dt()({},Bp,{id:g,items:b,options:h,container:{...o,scrollBase:c},scrollingElement:s.current,eventsListener:m,viewMode:d.viewMode,deviceType:f,customComponents:v,createMediaUrl:Ip,proGalleryRegionLabel:t("pro-gallery.parent-container-aria-label"),isPrerenderMode:e,shouldDisableItemFocus:!0})))))}));return"loadMore"in e&&e.loadMore?n().createElement(rs,{loadMore:e.loadMore,loader:n().createElement(ns,null),isLoading:e.isLoading,hasMore:e.allPosts.length<e.entityCount,pageStart:e.pageStart},n().createElement(S,null)):n().createElement(S,null)},Vp={page:1,pageSize:10,entityCount:0,showPosition:!1,component:e=>{let{children:t,...r}=e;return n().createElement("div",(0,le.omit)(r,["page","isDisabled","isActive"]),t)}};let Fp=function(e){return e.FIRST="first",e.LAST="last",e.NEXT="next",e.PREVIOUS="previous",e.PAGE="page",e}({});const Gp={page:"KhVdjt",previous:"acbUIp",first:"IeY3vx",next:"gwgQCb",last:"lfi41p",active:"sI4Nnn",large:"wR7lgz",arrow:"RcfyI6",inner:"ixAZGX",container:"ynW8KF",position:"fOICak",withPosition:"IZ6Wrl",disabled:"BCQZoR"},zp=e=>{let{children:t,label:r,arrowClass:o,disabledClass:i,type:a,state:s,showPosition:l,component:u}=e;const c={[Fp.FIRST]:()=>({isEnabled:s.currentPage>(l?1:3),isVisible:s.lastPage>(l?2:5),pageToOpen:1}),[Fp.PREVIOUS]:()=>({isEnabled:s.currentPage>1,isVisible:!0,pageToOpen:s.currentPage-1}),[Fp.NEXT]:()=>({isEnabled:s.currentPage<s.lastPage,isVisible:!0,pageToOpen:s.currentPage+1}),[Fp.LAST]:()=>({isEnabled:s.currentPage<s.lastPage-(l?0:2),isVisible:s.lastPage>(l?2:5),pageToOpen:s.lastPage})},{isVisible:d,isEnabled:p,pageToOpen:h}=c[a]();if(!d)return null;const g=p?s.getButtonEventHandlers(h,a):void 0;return n().createElement(u,Dt()({},g,{page:h,isDisabled:!p,className:tt()(Gp[a],o,!p&&i),"aria-label":r,"data-hook":`pagination__${a}`}),t)};const Wp=e=>{let{state:t,component:r,activeClass:o,innerClass:i}=e;const{t:a}=(0,nt.B)(),s=function(e){const t=Math.floor(2.5);let r=1,o=5;e.lastPage<5?o=e.lastPage:e.currentPage+t+1>e.lastPage?(r=e.lastPage-2*t,o=e.lastPage):e.currentPage>t+1&&(r=e.currentPage-t,o=e.currentPage+t);return(0,le.range)(r,o+1)}(t);return n().createElement(n().Fragment,null,s.map((e=>{const s=e===t.currentPage,l=tt()(Gp.page,i,{"blog-button-color":s},o?{[o]:s}:void 0),u=s?void 0:t.getButtonEventHandlers(e,Fp.PAGE);return n().createElement(r,Dt()({},u,{key:e,page:e,isActive:s,className:l,"aria-label":a("pagination.page",{page:e}),"data-hook":`pagination__${e}`}),e)})))},Up=e=>{let{className:t,state:r}=e;return n().createElement("div",{className:t},r.currentPage,"/",r.lastPage)},jp=e=>n().createElement("svg",Dt()({xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",style:{fillRule:"evenodd"}},e),n().createElement("path",{d:"M 1.503579,6.000003 6.933844,0.824205 c 0.08821,-0.08407 0.08821,-0.220384 0,-0.304458 L 6.454703,0.063059 c -0.08821,-0.08407 -0.23122,-0.08407 -0.319427,0 L 0.066156,5.847774 C 0.022052,5.889811 0,5.944907 0,6.000003 c 0,0.0551 0.02205,0.110193 0.06616,0.152229 l 6.06912,5.784715 c 0.08821,0.08407 0.23122,0.08407 0.319427,0 l 0.479141,-0.456688 c 0.08821,-0.08407 0.08821,-0.220383 0,-0.304459 z"})),Kp=e=>n().createElement("svg",Dt()({xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",style:{fillRule:"evenodd"}},e),n().createElement("path",{d:"m 5.4964265,6.0000035 -5.430265,5.1757985 c -0.08821,0.08407 -0.08821,0.220384 0,0.304458 l 0.479141,0.456688 c 0.08821,0.08407 0.23122,0.08407 0.319427,0 l 6.06912,-5.7847155 c 0.044104,-0.042037 0.066156,-0.097133 0.066156,-0.152229 0,-0.0551 -0.02205,-0.110193 -0.06616,-0.15223 l -6.06912,-5.784715 c -0.08821,-0.08407 -0.23122,-0.08407 -0.319427,0 l -0.479141,0.456688 c -0.08821,0.08407 -0.08821,0.220385 0,0.304459 z"}));const Zp="specs.wixBlog.LimitPaginationTo100Pages";const $p=(e,t=1)=>Math.ceil(e/t),qp=(e,t)=>r=>{r.keyCode===e&&t(r)};const Yp=e=>{const t=function(e){let{page:t=Vp.page,entityCount:r=Vp.entityCount,pageSize:o=Vp.pageSize,onChange:n}=e;const a=(0,zt.d4)((e=>(0,Vc.b)(e,Zp)));let s=r;if(a){const e=100*o;s=e>r?r:e}const[l,u]=(0,i.useState)({currentPage:t,lastPage:$p(s,o)});(0,i.useEffect)((()=>{u({currentPage:t,lastPage:$p(s,o)})}),[t,s,o]);const c=(e,t)=>r=>{r.preventDefault(),u((t=>({...t,currentPage:e}))),null==n||n({page:e,from:(e-1)*o,to:e*o,buttonType:t})};return{currentPage:l.currentPage,lastPage:l.lastPage,getButtonEventHandlers:(e,t)=>{var r;if(n)return{onClick:c(e,t),onKeyUp:(r=c,e=>qp(13,r)(e)),tabIndex:0}}}}(e),{t:r}=(0,nt.B)(),o=function(){const e=(0,zt.d4)(er.DY),t=t=>e?"right"===t?jp:Kp:"right"===t?Kp:jp;return{Left:t("left"),Right:t("right")}}(),{entityCount:a=Vp.entityCount,showPosition:s=Vp.showPosition,component:l=Vp.component,pageSize:u=Vp.pageSize,arrowFillClass:c="blog-icon-fill",activeClass:d,className:p,pageClass:h,positionClass:g}=e;if(a<=u)return null;const m={state:t,showPosition:s,arrowClass:Gp.arrow,disabledClass:Gp.disabled,component:l};return n().createElement("div",{className:tt()(Gp.container,s&&Gp.withPosition,p),"aria-live":"polite"},n().createElement(zp,Dt()({},m,{label:r("pagination.first-page"),type:Fp.FIRST}),n().createElement(o.Left,{className:c}),n().createElement(o.Left,{className:c})),n().createElement(zp,Dt()({},m,{label:r("pagination.previous-page"),type:Fp.PREVIOUS}),n().createElement(o.Left,{className:c})),s?n().createElement(Up,{state:t,className:tt()(Gp.position,g)}):n().createElement(Wp,{activeClass:tt()(Gp.active,"blog-button-color",d),component:l,innerClass:tt()(Gp.page,h),state:t}),n().createElement(zp,Dt()({},m,{label:r("pagination.next-page"),type:Fp.NEXT}),n().createElement(o.Right,{className:c})),n().createElement(zp,Dt()({},m,{label:r("pagination.last-page"),type:Fp.LAST}),n().createElement(o.Right,{className:c}),n().createElement(o.Right,{className:c})))},Xp=(0,bd.default)((function(e,t){void 0===t&&(t=()=>{});return(0,zt.Ng)(((e,t,r)=>({navigateInPreview:r.navigateInPreview})))((r=>{let{children:o,page:i,isDisabled:a,isActive:s,navigateInPreview:l,...u}=r;if(s||a)return n().createElement("button",u,o);const c=e(i);return n().createElement("a",Dt()({href:c,onClick:e=>t({event:e,pageUrl:c,navigateInPreview:l})},u),o)}))})),Qp="aq_u4p",Jp="HcArW_",eh=e=>{const t=(0,_a.A)({section:e.section}),{rootWidth:r}=Bt(),o=(0,ur.D5)(t.layoutType),i=e.useDescriptionColor||!(0,ur.gc)(t.layoutType),a=tt()(Qp,o&&Jp,o&&`blog-post-${t.section}-background-color`,i?`blog-post-${t.section}-description-color`:"blog-text-color",e.containerClassName),s=i?`blog-post-${t.section}-description-fill`:void 0,l=`blog-post-${t.section}-description-style-font`;return n().createElement("div",{className:a,"data-hook":e.dataHook},n().createElement(Yp,{activeClass:e.activeClass,page:e.page,pageSize:e.pageSize,entityCount:e.entityCount,showPosition:o||r<375,arrowFillClass:s,onChange:e.onChange,pageClass:l,positionClass:l,component:Xp(e.createPageUrl??(()=>""),e.handleNavigation)}))},th=e=>e.isLoading,rh=function(e,t,r){return void 0===r&&(r=""),Boolean(r?(0,le.get)(th(e),[t,r]):th(e)[t])},oh=e=>e.postCount;var ih=r(44736);const nh=e=>{const t=(0,Ea.EH)({state:e,key:`style.numbers.${lr.oc.postListWidgetPaginationType.key}`,fallback:lr.oc.postListWidgetPaginationType.defaultValue}),r=Number(t)===Number(lr.Nx.Paginated)?lr.oc.postListWidgetPostsPerPage:lr.oc.postListWidgetEntityCount;return(0,Ea.uD)(e,r.key,r.defaultValue)},ah=e=>e.wixData,sh=(0,Un.Mz)([ah],(e=>(0,le.get)(e,"categoryId",null))),lh=(0,Un.Mz)([ah],(e=>(0,le.get)(e,"tagId",null)));const uh="arh2qf",ch="cJscj1",dh="cTdFFO",ph="clf9mN",hh="wdbmEY",gh="nAaNon",mh=e=>{let{title:t,content:r,style:o={},className:i,children:a,isLayoutTextOnImage:s=!1,titleClassName:l}=e;const{borderWidth:u}=function(e){const{borderWidth:t}=xa(e),{applyFeedDesign:r}=(0,Oa.A)(null==e?void 0:e.section),o=(0,zt.d4)(er.Ny),i=(0,zt.d4)((e=>o?1:(0,le.get)((0,Ea.tl)(e),Ia.R2,1)));return{borderWidth:r?t:i}}(),{getPostClassName:c}=(0,Oa.A)(),{titleFontClassName:d,contentFontClassName:p}=Tl(),h=tt()(uh,p,i,s?gh:["blog-card-background-color","blog-text-color"],"blog-card-border-color",null==c?void 0:c("border-color","post-container","background-color")),g=tt()(d,l,null==c?void 0:c("title-font","title-color")),m=tt()(dh,null==c?void 0:c("description-font","description-color"));return n().createElement("div",{"data-hook":"empty-state-container",className:h,style:{borderWidth:u,...o}},n().createElement("div",{className:g,"data-hook":"empty-states__title"},n().createElement("div",{tabIndex:0,className:ch},t)),n().createElement("div",{className:m},n().createElement("div",{className:ph},r)),a&&n().createElement("div",{className:hh},a))},fh=e=>(0,le.get)(e,"locale.query");const yh=()=>{const e=(0,zt.d4)(er.tl),t=(0,zt.d4)(er.sb),r=(0,zt.d4)(sh),o=(0,zt.d4)(lh),i=(0,zt.d4)((e=>(0,Ea.EH)({state:e,key:`style.booleans.${lr.oc.postListWidgetIsFeatured.key}`}))),n=(0,zt.d4)(fh),a=Boolean(r||o||i);return{isMultilingual:Boolean(n),showFilterWarning:e&&a,showUnifiedStateText:t}},vh=e=>{let{...t}=e;const{t:r}=(0,nt.B)(),{showUnifiedStateText:o,isMultilingual:i,showFilterWarning:a}=yh();return n().createElement(mh,Dt()({title:r(o?"no-posts-feed.nothing-to-show":a?"no-posts.filtered.title":i?"no-posts-feed.no-published-posts-multilingual":"no-posts-feed.on-the-way"),content:r(o?"no-posts.publish-posts-to-see-them":a?"no-posts.filtered.subtitle":"no-posts-feed.stay-tuned")},t))},bh="zVjbZW",Sh=()=>!1;const Ph=()=>{const[e,t]=(0,i.useState)(1),r=(0,zt.dN)(),o=function(){const e=Gd();return(0,zt.d4)(((t,r)=>{const o=(0,ih.n)({state:t,isMobile:e.isMobile}),i=(0,ur.Sv)(o)||lr.U$.layoutName,{sliderShowArrows:n,sliderArrowsSize:a,sliderAutoSlide:s,sliderPauseTime:l,sliderArrowsPosition:u,sliderArrowsColor:c,sliderLoop:d}=(0,ir.Xu)(t)?lr.Nq.mobile:lr.Nq.desktop;return{posts:ru(t),layoutType:o,layoutName:i,isLoading:rh(t,"postListPosts"),componentId:r.id,pageSize:nh(t),sliderArrowsPositions:u.options,hideCoverImage:!(0,Ea.EH)({state:t,key:`style.booleans.${(0,ir.h3)(t)?cr.mS["blog-mobile-isCoverImageEnabled"].key:cr.mS["blog-isCoverImageEnabled"].key}`,fallback:!0}),layoutOptions:{showArrows:(0,Ea.EH)({state:t,key:`style.booleans.${n.key}`,fallback:n.defaultValue}),arrowsSize:(0,Ea.EH)({state:t,key:`style.numbers.${a.key}`,fallback:a.defaultValue}),autoSlide:(0,Ea.EH)({state:t,key:`style.booleans.${s.key}`,fallback:s.defaultValue}),pauseTime:(0,Ea.EH)({state:t,key:`style.numbers.${l.key}`,fallback:l.defaultValue}),arrowsPosition:(0,Ea.EH)({state:t,key:`style.numbers.${u.key}`,fallback:u.defaultValue}),arrowsColor:(0,Ea.EH)({state:t,key:`style.colors.${c.key}`,fallback:c.defaultValue}),loop:(0,Ea.EH)({state:t,key:`style.booleans.${d.key}`,fallback:d.defaultValue})},shouldUsePostListMobileSliderArrowColor:(0,ms._h)(t),shouldUsePostListMobileSliderBorderStyles:(0,ms.cu)(t)}}))}(),a=(0,zt.d4)((e=>(0,Ea.EH)({state:e,key:`style.booleans.${lr.oc.postListWidgetIsFeatured.key}`}))),s=(0,zt.d4)(ru),l=(0,zt.d4)(nh),u=(0,zt.d4)(Ea.Y2),c=(0,zt.d4)(oh),d=(0,i.useRef)({pageSize:l,featuredOnly:a,isPaginationEnabled:u}),p=(0,i.useRef)(o.layoutOptions);(0,i.useEffect)((()=>{l===d.current.pageSize&&a===d.current.featuredOnly&&u===d.current.isPaginationEnabled||(d.current={pageSize:l,featuredOnly:a,isPaginationEnabled:u},t(1),r.fetchPostListPostsPromisified(1))}),[r,l,a,u]),(0,i.useEffect)((()=>{(0,le.isEqual)(p.current,o.layoutOptions)||(p.current=o.layoutOptions,r.fetchPostListPostsPromisified(e))}),[o.layoutOptions,r,e]);const h=Boolean(s.length);if(!o.isLoading&&!h)return n().createElement(vh,null);const g=tt()({"mobile-slider-arrow-color":o.shouldUsePostListMobileSliderArrowColor,"mobile-slider-border-styles":o.shouldUsePostListMobileSliderBorderStyles});return n().createElement("div",{className:g},n().createElement(Hp,{className:p.current.arrowsPosition===lr.B9.OnGallery?"arrows-on-gallery":"",layoutName:o.layoutName,layoutType:o.layoutType,layoutDefaults:lr.U$,domId:o.componentId,allPosts:s,currentPagePosts:s,isLoading:o.isLoading,showCreatePostAction:!1,section:dt.wj,canSeeMoreButton:Sh,layoutOptions:p.current,hideCoverImage:o.hideCoverImage}),u?n().createElement(eh,{dataHook:"post-list-pagination-container",useDescriptionColor:!0,containerClassName:bh,page:e,onChange:e=>{t(e.page),r.fetchPostListPostsPromisified(e.page)},pageSize:o.pageSize,section:dt.wj,entityCount:c,activeClass:"blog-post-list-pagination-active"}):null)},wh="sXdULV",Ch="b79EPn",Eh="c3VDPV";class Ah extends n().Component{componentDidMount(){ar()||document.documentElement.classList.add("enable-scroll"),this.props.isEditor&&this.props.createdWithResponsiveEditor&&(document.body.style.height="auto")}render(){const{padding:e,useMobileDesign:t,i18n:r,language:o,translations:i}=this.props;return r.addResourceBundle(o,"translation",i,!0,!1),n().createElement(Gt,{dataHook:"post-list-root"},n().createElement("div",{style:{padding:e},className:tt()(Eh,t?Ch:wh)},n().createElement(Ph,null)))}}const Ih=(0,le.flowRight)(ct(),(e=>t=>{const{state:r,stateVersions:o,actions:a,actionsPromisified:s,host:l,controllerId:u,isSSR:c}=t,d=(0,i.useRef)(null),p=(0,i.useRef)(o),h=(0,i.useRef)(u),g=(0,i.useRef)(function(){const e={};function t(t){const r=(e=>e.promisifiedActionsResults||{})(t);Object.entries(r).forEach((t=>{let[r,{payload:o,isResolved:i}]=t;const n=e[r];n&&(i?n.resolve(o):n.reject(o),delete e[r])}))}return{usePromisifiedAction:function(r,o){return t(o),function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return new Promise(((t,i)=>{const n=Date.now()+100*Math.random().toFixed(2);e[n]={resolve:t,reject:i},r(o,n)}))}},resolvePromisifiedActions:t}}()),m=(0,i.useRef)(void 0),f=(0,i.useRef)((()=>{})),y=n().useCallback(((e,t)=>{r.appSettings={...e.appSettings,colorPresets:t.style.siteColors,textPresets:t.style.siteTextPresets,style:t.style.styleParams}}),[r]);(0,i.useEffect)((()=>{if(d.current){const e=d.current.getState().state,t=(e=>{let{currentState:t,currentVersions:r,newState:o,newVersions:i,currentControllerId:n,newControllerId:a}=e;return a<n?t:r&&i&&n===a?Object.keys(r).reduce(((e,o)=>(r[o]===i[o]&&(e[o]=t[o]),e)),{...o}):o})({currentState:e,currentVersions:p.current,newState:r,newVersions:o,currentControllerId:h.current,newControllerId:u});p.current=o,(0,er.sb)(t)?(y(t,l),(0,le.isEqual)(t,e)||d.current.dispatch(tr(t)),d.current.dispatch(rr(l))):(t.appSettings&&!t.appSettings.colorPresets&&y(t,l),(0,le.isEqual)(t,e)||d.current.dispatch(tr(t))),g.current.resolvePromisifiedActions(t)}}),[r,o,l,u,y]),(0,i.useEffect)((()=>{d.current&&h.current!==u&&(h.current=u)}),[u]),(0,i.useEffect)((()=>{f.current&&f.current()}),[c]);if(!d.current){const e=Object.keys(s).reduce(((e,t)=>(e[t]=g.current.usePromisifiedAction(s[t],r),e)),{});p.current=o,y(r,l),d.current=qt(or,{state:r,actions:{...a,...e,openModal:Jt(a.openModal)},host:l,workerReady:(m.current||=new Promise((e=>{c?f.current=e:(e(),f.current=()=>{})})),m.current)})}return"undefined"!=typeof jest||!(0,er._o)(d.current.getState().state)&&(0,er.KV)(d.current.getState().state)||console.log("AppRoot",t),n().createElement(Wt.Kq,{store:d.current},n().createElement(e,t))}),(0,zt.Ng)((e=>({language:(0,er.Z0)(e),translations:sr(e),isEditor:(0,er.sb)(e),createdWithResponsiveEditor:(0,ir.et)(e),useMobileDesign:(0,ir.bu)(e),padding:(0,er.Ny)(e)&&!(0,ir.Xu)(e)||(0,ir.et)(e)?0:(0,ir.yu)({state:e,section:dt.wj,layoutType:(0,nr.NS)(e,dt.wj,(0,ir.Xu)(e))})}))))(Ah),_h=function(e){return(0,le.flowRight)(Ye,Je(Ue),Xe,Qe)(e)}(Ih);var Th,Oh=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};function xh(e){return e.type===Th.literal}function Nh(e){return e.type===Th.argument}function Lh(e){return e.type===Th.number}function Mh(e){return e.type===Th.date}function Rh(e){return e.type===Th.time}function kh(e){return e.type===Th.select}function Dh(e){return e.type===Th.plural}function Bh(e){return e.type===Th.pound}function Hh(e){return!(!e||"object"!=typeof e||0!==e.type)}function Vh(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(Th||(Th={}));var Fh=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Gh=function(){return Gh=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Gh.apply(this,arguments)},zh=function(e){function t(r,o,i,n){var a=e.call(this)||this;return a.message=r,a.expected=o,a.found=i,a.location=n,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return Fh(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function n(e){switch(e.type){case"literal":return'"'+o(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,o=e.map(n);if(o.sort(),o.length>0){for(t=1,r=1;t<o.length;t++)o[t-1]!==o[t]&&(o[r]=o[t],r++);o.length=r}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(e)+" but "+(((a=t)?'"'+o(a)+'"':"end of input")+" found.");var a},t}(Error);var Wh=function(e,t){t=void 0!==t?t:{};var r,o={},i={start:st},n=st,a=function(e){return e.join("")},s=function(e){return Gh({type:Th.literal,value:e},xt())},l="#",u=et("#",!1),c=function(){return Gh({type:Th.pound},xt())},d=rt("argumentElement"),p="{",h=et("{",!1),g="}",m=et("}",!1),f=function(e){return Gh({type:Th.argument,value:e},xt())},y=rt("numberSkeletonId"),v=/^['\/{}]/,b=tt(["'","/","{","}"],!1,!1),S={type:"any"},P=rt("numberSkeletonTokenOption"),w="/",C=et("/",!1),E=function(e){return e},A=rt("numberSkeletonToken"),I=function(e,t){return{stem:e,options:t}},_=function(e){return Gh({type:0,tokens:e},xt())},T="::",O=et("::",!1),x=function(e){return e},N=function(){return Tt.push("numberArgStyle"),!0},L=function(e){return Tt.pop(),e.replace(/\s*$/,"")},M=",",R=et(",",!1),k="number",D=et("number",!1),B=function(e,t,r){return Gh({type:"number"===t?Th.number:"date"===t?Th.date:Th.time,style:r&&r[2],value:e},xt())},H="'",V=et("'",!1),F=/^[^']/,G=tt(["'"],!0,!1),z=/^[^a-zA-Z'{}]/,W=tt([["a","z"],["A","Z"],"'","{","}"],!0,!1),U=/^[a-zA-Z]/,j=tt([["a","z"],["A","Z"]],!1,!1),K=function(e){return Gh({type:1,pattern:e},xt())},Z=function(){return Tt.push("dateOrTimeArgStyle"),!0},$="date",q=et("date",!1),Y="time",X=et("time",!1),Q="plural",J=et("plural",!1),ee="selectordinal",te=et("selectordinal",!1),re="offset:",oe=et("offset:",!1),ie=function(e,t,r,o){return Gh({type:Th.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:o.reduce((function(e,t){var r=t.id,o=t.value,i=t.location;return r in e&&Je('Duplicate option "'+r+'" in plural element: "'+Xe()+'"',Qe()),e[r]={value:o,location:i},e}),{})},xt())},ne="select",ae=et("select",!1),se=function(e,t){return Gh({type:Th.select,value:e,options:t.reduce((function(e,t){var r=t.id,o=t.value,i=t.location;return r in e&&Je('Duplicate option "'+r+'" in select element: "'+Xe()+'"',Qe()),e[r]={value:o,location:i},e}),{})},xt())},le="=",ue=et("=",!1),ce=function(e){return Tt.push("select"),!0},de=function(e,t){return Tt.pop(),Gh({id:e,value:t},xt())},pe=function(e){return Tt.push("plural"),!0},he=function(e,t){return Tt.pop(),Gh({id:e,value:t},xt())},ge=rt("whitespace"),me=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,fe=tt([["\t","\r"]," ","\x85","\xa0","\u1680",["\u2000","\u200a"],"\u2028","\u2029","\u202f","\u205f","\u3000"],!1,!1),ye=rt("syntax pattern"),ve=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,be=tt([["!","/"],[":","@"],["[","^"],"`",["{","~"],["\xa1","\xa7"],"\xa9","\xab","\xac","\xae","\xb0","\xb1","\xb6","\xbb","\xbf","\xd7","\xf7",["\u2010","\u2027"],["\u2030","\u203e"],["\u2041","\u2053"],["\u2055","\u205e"],["\u2190","\u245f"],["\u2500","\u2775"],["\u2794","\u2bff"],["\u2e00","\u2e7f"],["\u3001","\u3003"],["\u3008","\u3020"],"\u3030","\ufd3e","\ufd3f","\ufe45","\ufe46"],!1,!1),Se=rt("optional whitespace"),Pe=rt("number"),we="-",Ce=et("-",!1),Ee=function(e,t){return t?e?-t:t:0},Ae=(rt("apostrophe"),rt("double apostrophes")),Ie="''",_e=et("''",!1),Te=function(){return"'"},Oe=function(e,t){return e+t.replace("''","'")},xe=function(e){return!("{"===e||Ot()&&"#"===e||Tt.length>1&&"}"===e)},Ne="\n",Le=et("\n",!1),Me=function(e){return"{"===e||"}"===e||Ot()&&"#"===e},Re=rt("argNameOrNumber"),ke=rt("argNumber"),De="0",Be=et("0",!1),He=function(){return 0},Ve=/^[1-9]/,Fe=tt([["1","9"]],!1,!1),Ge=/^[0-9]/,ze=tt([["0","9"]],!1,!1),We=function(e){return parseInt(e.join(""),10)},Ue=rt("argName"),je=0,Ke=0,Ze=[{line:1,column:1}],$e=0,qe=[],Ye=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');n=i[t.startRule]}function Xe(){return e.substring(Ke,je)}function Qe(){return it(Ke,je)}function Je(e,t){throw function(e,t){return new zh(e,[],"",t)}(e,t=void 0!==t?t:it(Ke,je))}function et(e,t){return{type:"literal",text:e,ignoreCase:t}}function tt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function rt(e){return{type:"other",description:e}}function ot(t){var r,o=Ze[t];if(o)return o;for(r=t-1;!Ze[r];)r--;for(o={line:(o=Ze[r]).line,column:o.column};r<t;)10===e.charCodeAt(r)?(o.line++,o.column=1):o.column++,r++;return Ze[t]=o,o}function it(e,t){var r=ot(e),o=ot(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:o.line,column:o.column}}}function nt(e){je<$e||(je>$e&&($e=je,qe=[]),qe.push(e))}function at(e,t,r){return new zh(zh.buildMessage(e,t),e,t,r)}function st(){return lt()}function lt(){var e,t;for(e=[],t=ut();t!==o;)e.push(t),t=ut();return e}function ut(){var t;return(t=function(){var e,t;e=je,(t=ct())!==o&&(Ke=e,t=s(t));return e=t,e}())===o&&(t=function(){var t,r,i,n;Ye++,t=je,123===e.charCodeAt(je)?(r=p,je++):(r=o,0===Ye&&nt(h));r!==o&&St()!==o&&(i=At())!==o&&St()!==o?(125===e.charCodeAt(je)?(n=g,je++):(n=o,0===Ye&&nt(m)),n!==o?(Ke=t,t=r=f(i)):(je=t,t=o)):(je=t,t=o);Ye--,t===o&&(r=o,0===Ye&&nt(d));return t}())===o&&(t=function(){var t;t=function(){var t,r,i,n,a,s,l,u,c;t=je,123===e.charCodeAt(je)?(r=p,je++):(r=o,0===Ye&&nt(h));r!==o&&St()!==o&&(i=At())!==o&&St()!==o?(44===e.charCodeAt(je)?(n=M,je++):(n=o,0===Ye&&nt(R)),n!==o&&St()!==o?(e.substr(je,6)===k?(a=k,je+=6):(a=o,0===Ye&&nt(D)),a!==o&&St()!==o?(s=je,44===e.charCodeAt(je)?(l=M,je++):(l=o,0===Ye&&nt(R)),l!==o&&(u=St())!==o?(c=function(){var t,r,i;t=je,e.substr(je,2)===T?(r=T,je+=2):(r=o,0===Ye&&nt(O));r!==o?(i=function(){var e,t,r;if(e=je,t=[],r=ht(),r!==o)for(;r!==o;)t.push(r),r=ht();else t=o;t!==o&&(Ke=e,t=_(t));return e=t,e}(),i!==o?(Ke=t,t=r=x(i)):(je=t,t=o)):(je=t,t=o);t===o&&(t=je,Ke=je,(r=(r=N())?void 0:o)!==o&&(i=ct())!==o?(Ke=t,t=r=L(i)):(je=t,t=o));return t}(),c!==o?s=l=[l,u,c]:(je=s,s=o)):(je=s,s=o),s===o&&(s=null),s!==o&&(l=St())!==o?(125===e.charCodeAt(je)?(u=g,je++):(u=o,0===Ye&&nt(m)),u!==o?(Ke=t,t=r=B(i,a,s)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o);return t}(),t===o&&(t=function(){var t,r,i,n,a,s,l,u,c;t=je,123===e.charCodeAt(je)?(r=p,je++):(r=o,0===Ye&&nt(h));r!==o&&St()!==o&&(i=At())!==o&&St()!==o?(44===e.charCodeAt(je)?(n=M,je++):(n=o,0===Ye&&nt(R)),n!==o&&St()!==o?(e.substr(je,4)===$?(a=$,je+=4):(a=o,0===Ye&&nt(q)),a===o&&(e.substr(je,4)===Y?(a=Y,je+=4):(a=o,0===Ye&&nt(X))),a!==o&&St()!==o?(s=je,44===e.charCodeAt(je)?(l=M,je++):(l=o,0===Ye&&nt(R)),l!==o&&(u=St())!==o?(c=function(){var t,r,i;t=je,e.substr(je,2)===T?(r=T,je+=2):(r=o,0===Ye&&nt(O));r!==o?(i=function(){var t,r,i,n;t=je,r=je,i=[],n=gt(),n===o&&(n=mt());if(n!==o)for(;n!==o;)i.push(n),(n=gt())===o&&(n=mt());else i=o;r=i!==o?e.substring(r,je):i;r!==o&&(Ke=t,r=K(r));return t=r,t}(),i!==o?(Ke=t,t=r=x(i)):(je=t,t=o)):(je=t,t=o);t===o&&(t=je,Ke=je,(r=(r=Z())?void 0:o)!==o&&(i=ct())!==o?(Ke=t,t=r=L(i)):(je=t,t=o));return t}(),c!==o?s=l=[l,u,c]:(je=s,s=o)):(je=s,s=o),s===o&&(s=null),s!==o&&(l=St())!==o?(125===e.charCodeAt(je)?(u=g,je++):(u=o,0===Ye&&nt(m)),u!==o?(Ke=t,t=r=B(i,a,s)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o);return t}());return t}())===o&&(t=function(){var t,r,i,n,a,s,l,u,c,d,f;t=je,123===e.charCodeAt(je)?(r=p,je++):(r=o,0===Ye&&nt(h));if(r!==o)if(St()!==o)if((i=At())!==o)if(St()!==o)if(44===e.charCodeAt(je)?(n=M,je++):(n=o,0===Ye&&nt(R)),n!==o)if(St()!==o)if(e.substr(je,6)===Q?(a=Q,je+=6):(a=o,0===Ye&&nt(J)),a===o&&(e.substr(je,13)===ee?(a=ee,je+=13):(a=o,0===Ye&&nt(te))),a!==o)if(St()!==o)if(44===e.charCodeAt(je)?(s=M,je++):(s=o,0===Ye&&nt(R)),s!==o)if(St()!==o)if(l=je,e.substr(je,7)===re?(u=re,je+=7):(u=o,0===Ye&&nt(oe)),u!==o&&(c=St())!==o&&(d=Pt())!==o?l=u=[u,c,d]:(je=l,l=o),l===o&&(l=null),l!==o)if((u=St())!==o){if(c=[],(d=yt())!==o)for(;d!==o;)c.push(d),d=yt();else c=o;c!==o&&(d=St())!==o?(125===e.charCodeAt(je)?(f=g,je++):(f=o,0===Ye&&nt(m)),f!==o?(Ke=t,t=r=ie(i,a,l,c)):(je=t,t=o)):(je=t,t=o)}else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;return t}())===o&&(t=function(){var t,r,i,n,a,s,l,u,c;t=je,123===e.charCodeAt(je)?(r=p,je++):(r=o,0===Ye&&nt(h));if(r!==o)if(St()!==o)if((i=At())!==o)if(St()!==o)if(44===e.charCodeAt(je)?(n=M,je++):(n=o,0===Ye&&nt(R)),n!==o)if(St()!==o)if(e.substr(je,6)===ne?(a=ne,je+=6):(a=o,0===Ye&&nt(ae)),a!==o)if(St()!==o)if(44===e.charCodeAt(je)?(s=M,je++):(s=o,0===Ye&&nt(R)),s!==o)if(St()!==o){if(l=[],(u=ft())!==o)for(;u!==o;)l.push(u),u=ft();else l=o;l!==o&&(u=St())!==o?(125===e.charCodeAt(je)?(c=g,je++):(c=o,0===Ye&&nt(m)),c!==o?(Ke=t,t=r=se(i,l)):(je=t,t=o)):(je=t,t=o)}else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;else je=t,t=o;return t}())===o&&(t=function(){var t,r;t=je,35===e.charCodeAt(je)?(r=l,je++):(r=o,0===Ye&&nt(u));r!==o&&(Ke=t,r=c());return t=r,t}()),t}function ct(){var e,t,r;if(e=je,t=[],(r=wt())===o&&(r=Ct())===o&&(r=Et()),r!==o)for(;r!==o;)t.push(r),(r=wt())===o&&(r=Ct())===o&&(r=Et());else t=o;return t!==o&&(Ke=e,t=a(t)),e=t}function dt(){var t,r,i,n,a;if(Ye++,t=je,r=[],i=je,n=je,Ye++,(a=vt())===o&&(v.test(e.charAt(je))?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(b))),Ye--,a===o?n=void 0:(je=n,n=o),n!==o?(e.length>je?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(S)),a!==o?i=n=[n,a]:(je=i,i=o)):(je=i,i=o),i!==o)for(;i!==o;)r.push(i),i=je,n=je,Ye++,(a=vt())===o&&(v.test(e.charAt(je))?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(b))),Ye--,a===o?n=void 0:(je=n,n=o),n!==o?(e.length>je?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(S)),a!==o?i=n=[n,a]:(je=i,i=o)):(je=i,i=o);else r=o;return t=r!==o?e.substring(t,je):r,Ye--,t===o&&(r=o,0===Ye&&nt(y)),t}function pt(){var t,r,i;return Ye++,t=je,47===e.charCodeAt(je)?(r=w,je++):(r=o,0===Ye&&nt(C)),r!==o&&(i=dt())!==o?(Ke=t,t=r=E(i)):(je=t,t=o),Ye--,t===o&&(r=o,0===Ye&&nt(P)),t}function ht(){var e,t,r,i;if(Ye++,e=je,St()!==o)if((t=dt())!==o){for(r=[],i=pt();i!==o;)r.push(i),i=pt();r!==o?(Ke=e,e=I(t,r)):(je=e,e=o)}else je=e,e=o;else je=e,e=o;return Ye--,e===o&&(o,0===Ye&&nt(A)),e}function gt(){var t,r,i,n;if(t=je,39===e.charCodeAt(je)?(r=H,je++):(r=o,0===Ye&&nt(V)),r!==o){if(i=[],(n=wt())===o&&(F.test(e.charAt(je))?(n=e.charAt(je),je++):(n=o,0===Ye&&nt(G))),n!==o)for(;n!==o;)i.push(n),(n=wt())===o&&(F.test(e.charAt(je))?(n=e.charAt(je),je++):(n=o,0===Ye&&nt(G)));else i=o;i!==o?(39===e.charCodeAt(je)?(n=H,je++):(n=o,0===Ye&&nt(V)),n!==o?t=r=[r,i,n]:(je=t,t=o)):(je=t,t=o)}else je=t,t=o;if(t===o)if(t=[],(r=wt())===o&&(z.test(e.charAt(je))?(r=e.charAt(je),je++):(r=o,0===Ye&&nt(W))),r!==o)for(;r!==o;)t.push(r),(r=wt())===o&&(z.test(e.charAt(je))?(r=e.charAt(je),je++):(r=o,0===Ye&&nt(W)));else t=o;return t}function mt(){var t,r;if(t=[],U.test(e.charAt(je))?(r=e.charAt(je),je++):(r=o,0===Ye&&nt(j)),r!==o)for(;r!==o;)t.push(r),U.test(e.charAt(je))?(r=e.charAt(je),je++):(r=o,0===Ye&&nt(j));else t=o;return t}function ft(){var t,r,i,n,a;return t=je,St()!==o&&(r=_t())!==o&&St()!==o?(123===e.charCodeAt(je)?(i=p,je++):(i=o,0===Ye&&nt(h)),i!==o?(Ke=je,(ce(r)?void 0:o)!==o&&(n=lt())!==o?(125===e.charCodeAt(je)?(a=g,je++):(a=o,0===Ye&&nt(m)),a!==o?(Ke=t,t=de(r,n)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o),t}function yt(){var t,r,i,n,a;return t=je,St()!==o?(r=function(){var t,r,i,n;return t=je,r=je,61===e.charCodeAt(je)?(i=le,je++):(i=o,0===Ye&&nt(ue)),i!==o&&(n=Pt())!==o?r=i=[i,n]:(je=r,r=o),(t=r!==o?e.substring(t,je):r)===o&&(t=_t()),t}(),r!==o&&St()!==o?(123===e.charCodeAt(je)?(i=p,je++):(i=o,0===Ye&&nt(h)),i!==o?(Ke=je,(pe(r)?void 0:o)!==o&&(n=lt())!==o?(125===e.charCodeAt(je)?(a=g,je++):(a=o,0===Ye&&nt(m)),a!==o?(Ke=t,t=he(r,n)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o)):(je=t,t=o),t}function vt(){var t;return Ye++,me.test(e.charAt(je))?(t=e.charAt(je),je++):(t=o,0===Ye&&nt(fe)),Ye--,t===o&&(o,0===Ye&&nt(ge)),t}function bt(){var t;return Ye++,ve.test(e.charAt(je))?(t=e.charAt(je),je++):(t=o,0===Ye&&nt(be)),Ye--,t===o&&(o,0===Ye&&nt(ye)),t}function St(){var t,r,i;for(Ye++,t=je,r=[],i=vt();i!==o;)r.push(i),i=vt();return t=r!==o?e.substring(t,je):r,Ye--,t===o&&(r=o,0===Ye&&nt(Se)),t}function Pt(){var t,r,i;return Ye++,t=je,45===e.charCodeAt(je)?(r=we,je++):(r=o,0===Ye&&nt(Ce)),r===o&&(r=null),r!==o&&(i=It())!==o?(Ke=t,t=r=Ee(r,i)):(je=t,t=o),Ye--,t===o&&(r=o,0===Ye&&nt(Pe)),t}function wt(){var t,r;return Ye++,t=je,e.substr(je,2)===Ie?(r=Ie,je+=2):(r=o,0===Ye&&nt(_e)),r!==o&&(Ke=t,r=Te()),Ye--,(t=r)===o&&(r=o,0===Ye&&nt(Ae)),t}function Ct(){var t,r,i,n,a,s;if(t=je,39===e.charCodeAt(je)?(r=H,je++):(r=o,0===Ye&&nt(V)),r!==o)if(i=function(){var t,r,i,n;t=je,r=je,e.length>je?(i=e.charAt(je),je++):(i=o,0===Ye&&nt(S));i!==o?(Ke=je,(n=(n=Me(i))?void 0:o)!==o?r=i=[i,n]:(je=r,r=o)):(je=r,r=o);t=r!==o?e.substring(t,je):r;return t}(),i!==o){for(n=je,a=[],e.substr(je,2)===Ie?(s=Ie,je+=2):(s=o,0===Ye&&nt(_e)),s===o&&(F.test(e.charAt(je))?(s=e.charAt(je),je++):(s=o,0===Ye&&nt(G)));s!==o;)a.push(s),e.substr(je,2)===Ie?(s=Ie,je+=2):(s=o,0===Ye&&nt(_e)),s===o&&(F.test(e.charAt(je))?(s=e.charAt(je),je++):(s=o,0===Ye&&nt(G)));(n=a!==o?e.substring(n,je):a)!==o?(39===e.charCodeAt(je)?(a=H,je++):(a=o,0===Ye&&nt(V)),a===o&&(a=null),a!==o?(Ke=t,t=r=Oe(i,n)):(je=t,t=o)):(je=t,t=o)}else je=t,t=o;else je=t,t=o;return t}function Et(){var t,r,i,n;return t=je,r=je,e.length>je?(i=e.charAt(je),je++):(i=o,0===Ye&&nt(S)),i!==o?(Ke=je,(n=(n=xe(i))?void 0:o)!==o?r=i=[i,n]:(je=r,r=o)):(je=r,r=o),r===o&&(10===e.charCodeAt(je)?(r=Ne,je++):(r=o,0===Ye&&nt(Le))),t=r!==o?e.substring(t,je):r}function At(){var t,r;return Ye++,t=je,(r=It())===o&&(r=_t()),t=r!==o?e.substring(t,je):r,Ye--,t===o&&(r=o,0===Ye&&nt(Re)),t}function It(){var t,r,i,n,a;if(Ye++,t=je,48===e.charCodeAt(je)?(r=De,je++):(r=o,0===Ye&&nt(Be)),r!==o&&(Ke=t,r=He()),(t=r)===o){if(t=je,r=je,Ve.test(e.charAt(je))?(i=e.charAt(je),je++):(i=o,0===Ye&&nt(Fe)),i!==o){for(n=[],Ge.test(e.charAt(je))?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(ze));a!==o;)n.push(a),Ge.test(e.charAt(je))?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(ze));n!==o?r=i=[i,n]:(je=r,r=o)}else je=r,r=o;r!==o&&(Ke=t,r=We(r)),t=r}return Ye--,t===o&&(r=o,0===Ye&&nt(ke)),t}function _t(){var t,r,i,n,a;if(Ye++,t=je,r=[],i=je,n=je,Ye++,(a=vt())===o&&(a=bt()),Ye--,a===o?n=void 0:(je=n,n=o),n!==o?(e.length>je?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(S)),a!==o?i=n=[n,a]:(je=i,i=o)):(je=i,i=o),i!==o)for(;i!==o;)r.push(i),i=je,n=je,Ye++,(a=vt())===o&&(a=bt()),Ye--,a===o?n=void 0:(je=n,n=o),n!==o?(e.length>je?(a=e.charAt(je),je++):(a=o,0===Ye&&nt(S)),a!==o?i=n=[n,a]:(je=i,i=o)):(je=i,i=o);else r=o;return t=r!==o?e.substring(t,je):r,Ye--,t===o&&(r=o,0===Ye&&nt(Ue)),t}var Tt=["root"];function Ot(){return"plural"===Tt[Tt.length-1]}function xt(){return t&&t.captureLocation?{location:Qe()}:{}}if((r=n())!==o&&je===e.length)return r;throw r!==o&&je<e.length&&nt({type:"end"}),at(qe,$e<e.length?e.charAt($e):null,$e<e.length?it($e,$e+1):it($e,$e))},Uh=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<r;t++)for(var n=arguments[t],a=0,s=n.length;a<s;a++,i++)o[i]=n[a];return o},jh=/(^|[^\\])#/g;function Kh(e){e.forEach((function(e){(Dh(e)||kh(e))&&Object.keys(e.options).forEach((function(t){for(var r,o=e.options[t],i=-1,n=void 0,a=0;a<o.value.length;a++){var s=o.value[a];if(xh(s)&&jh.test(s.value)){i=a,n=s;break}}if(n){var l=n.value.replace(jh,"$1{"+e.value+", number}"),u=Wh(l);(r=o.value).splice.apply(r,Uh([i,1],u))}Kh(o.value)}))}))}function Zh(e,t){var r=Wh(e,t);return t&&!1===t.normalizeHashtagInPlural||Kh(r),r}var $h=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<r;t++)for(var n=arguments[t],a=0,s=n.length;a<s;a++,i++)o[i]=n[a];return o};function qh(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var r;return(r={})[e]=t[e],r}))):e;var t})))}const Yh=function(e,t){return void 0===t&&(t={}),function(){for(var r,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=qh(o),a=n&&t[n];return a||(a=new((r=e).bind.apply(r,$h([void 0],o))),n&&(t[n]=a)),a}};var Xh=function(){return Xh=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xh.apply(this,arguments)},Qh=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Jh(e){var t={};return e.replace(Qh,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t}var eg=/^\.(?:(0+)(\+|#+)?)?$/g,tg=/^(@+)?(\+|#+)?$/g;function rg(e){var t={};return e.replace(tg,(function(e,r,o){return"string"!=typeof o?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===o?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof o?o.length:0)),""})),t}function og(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function ig(e){var t=og(e);return t||{}}function ng(e){for(var t={},r=0,o=e;r<o.length;r++){var i=o[r];switch(i.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Xh(Xh(Xh({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return Xh(Xh({},e),ig(t))}),{}));continue;case"engineering":t=Xh(Xh(Xh({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return Xh(Xh({},e),ig(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(eg.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(eg,(function(e,r,o){return"."===e?t.maximumFractionDigits=0:"+"===o?t.minimumFractionDigits=o.length:"#"===r[0]?t.maximumFractionDigits=r.length:(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length+("string"==typeof o?o.length:0)),""})),i.options.length&&(t=Xh(Xh({},t),rg(i.options[0])))}else if(tg.test(i.stem))t=Xh(Xh({},t),rg(i.stem));else{var n=og(i.stem);n&&(t=Xh(Xh({},t),n))}}return t}var ag,sg=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),lg=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<r;t++)for(var n=arguments[t],a=0,s=n.length;a<s;a++,i++)o[i]=n[a];return o},ug=function(e){function t(t,r){var o=e.call(this,t)||this;return o.variableId=r,o}return sg(t,e),t}(Error);function cg(e,t,r,o,i,n,a){if(1===e.length&&xh(e[0]))return[{type:0,value:e[0].value}];for(var s,l=[],u=0,c=e;u<c.length;u++){var d=c[u];if(xh(d))l.push({type:0,value:d.value});else if(Bh(d))"number"==typeof n&&l.push({type:0,value:r.getNumberFormat(t).format(n)});else{var p=d.value;if(!i||!(p in i))throw new ug('The intl string context variable "'+p+'" was not provided to the string "'+a+'"');var h=i[p];if(Nh(d))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),l.push({type:1,value:h});else if(Mh(d)){var g="string"==typeof d.style?o.date[d.style]:void 0;l.push({type:0,value:r.getDateTimeFormat(t,g).format(h)})}else if(Rh(d)){g="string"==typeof d.style?o.time[d.style]:Vh(d.style)?Jh(d.style.pattern):void 0;l.push({type:0,value:r.getDateTimeFormat(t,g).format(h)})}else if(Lh(d)){g="string"==typeof d.style?o.number[d.style]:Hh(d.style)?ng(d.style.tokens):void 0;l.push({type:0,value:r.getNumberFormat(t,g).format(h)})}else if(kh(d)){if(!(m=d.options[h]||d.options.other))throw new RangeError('Invalid values for "'+d.value+'": "'+h+'". Options are "'+Object.keys(d.options).join('", "')+'"');l.push.apply(l,cg(m.value,t,r,o,i))}else if(Dh(d)){var m;if(!(m=d.options["="+h])){if(!Intl.PluralRules)throw new ug('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var f=r.getPluralRules(t,{type:d.pluralType}).select(h-(d.offset||0));m=d.options[f]||d.options.other}if(!m)throw new RangeError('Invalid values for "'+d.value+'": "'+h+'". Options are "'+Object.keys(d.options).join('", "')+'"');l.push.apply(l,cg(m.value,t,r,o,i,h-(d.offset||0)))}else;}}return(s=l).length<2?s:s.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}var dg=/@@(\d+_\d+)@@/g,pg=0;function hg(e,t){return e.split(dg).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var gg=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,mg=Date.now()+"@@",fg=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function yg(e,t,r){var o=e.tagName,i=e.outerHTML,n=e.textContent,a=e.childNodes;if(!o)return hg(n||"",t);o=o.toLowerCase();var s=~fg.indexOf(o),l=r[o];if(l&&s)throw new ug(o+" is a self-closing tag and can not be used, please use another tag name.");if(!a.length)return[i];var u=Array.prototype.slice.call(a).reduce((function(e,o){return e.concat(yg(o,t,r))}),[]);return l?"function"==typeof l?[l.apply(void 0,u)]:[l]:lg(["<"+o+">"],u,["</"+o+">"])}function vg(e,t,r,o,i,n){var a=cg(e,t,r,o,i,void 0,n),s={},l=a.reduce((function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++pg;return s[r]=t.value,e+"@@"+r+"@@"}),"");if(!gg.test(l))return hg(l,s);if(!i)throw new ug("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new ug("Cannot format XML message without DOMParser");ag||(ag=new DOMParser);var u=ag.parseFromString('<formatted-message id="'+mg+'">'+l+"</formatted-message>","text/html").getElementById(mg);if(!u)throw new ug("Malformed HTML message "+l);var c=Object.keys(i).filter((function(e){return!!u.getElementsByTagName(e).length}));if(!c.length)return hg(l,s);var d=c.filter((function(e){return e!==e.toLowerCase()}));if(d.length)throw new ug("HTML tag must be lowercased but the following tags are not: "+d.join(", "));return Array.prototype.slice.call(u.childNodes).reduce((function(e,t){return e.concat(yg(t,s,i))}),[])}var bg=function(){return bg=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bg.apply(this,arguments)};function Sg(e,t){return t?Object.keys(e).reduce((function(r,o){var i,n;return r[o]=(i=e[o],(n=t[o])?bg(bg(bg({},i||{}),n||{}),Object.keys(i).reduce((function(e,t){return e[t]=bg(bg({},i[t]),n[t]||{}),e}),{})):i),r}),bg({},e)):e}var Pg=function(){function e(t,r,o,i){var n=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,r,o,i,n){var a=cg(e,t,r,o,i,void 0,n);return 1===a.length?a[0].value:a.reduce((function(e,t){return e+t.value}),"")}(n.ast,n.locales,n.formatters,n.formats,e,n.message)},this.formatToParts=function(e){return cg(n.ast,n.locales,n.formatters,n.formats,e,void 0,n.message)},this.formatHTMLMessage=function(e){return vg(n.ast,n.locales,n.formatters,n.formats,e,n.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(n.locales)[0]}},this.getAst=function(){return n.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Sg(e.formats,o),this.locales=r,this.formatters=i&&i.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Yh(Intl.NumberFormat,e.number),getDateTimeFormat:Yh(Intl.DateTimeFormat,e.dateTime),getPluralRules:Yh(Intl.PluralRules,e.pluralRules)}}(this.formatterCache)}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=Zh,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const wg=Pg;function Cg(e,t,r){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}const n="string"!=typeof t?[].concat(t):t.split(".");for(;n.length>1;){if(i())return{};const t=o(n.shift());!e[t]&&r&&(e[t]=new r),e=e[t]}return i()?{}:{obj:e,k:o(n.shift())}}const Eg=[],Ag=Eg.forEach,Ig=Eg.slice;class _g{constructor(e){this.type="i18nFormat",this.mem={},this.init(null,e)}init(e,t){const r=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return Ag.call(Ig.call(arguments,1),(function(t){if(t)for(const r in t)void 0===e[r]&&(e[r]=t[r])})),e}(r,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:void 0,parseErrorHandler:(e,t,r)=>r}),this.formats=this.options?.formats,e){const{bindI18n:t,bindI18nStore:r,memoize:o}=this.options;e.IntlMessageFormat=wg,e.ICU=this,o&&(t&&e.on(t,(()=>this.clearCache())),r&&e.store.on(r,(()=>this.clearCache())))}this.options?.localeData&&("[object Array]"===Object.prototype.toString.apply(this.options.localeData)?this.options.localeData.forEach((e=>this.addLocaleData(e))):this.addLocaleData(this.options.localeData))}addLocaleData(e){(Array.isArray(e)?e:[e]).forEach((e=>{e&&e.locale&&wg.__addLocaleData(e)}))}addUserDefinedFormats(e){this.formats=this.formats?{...this.formats,...e}:e}parse(e,t,r,o,i,n){const a=n&&n.resolved&&n.resolved.res,s=this.options?.memoize&&`${r}.${o}.${i.replace(/\./g,"###")}`;let l;this.options?.memoize&&(l=function(e,t){const{obj:r,k:o}=Cg(e,t);if(r)return r[o]}(this.mem,s));try{return l||(l=new wg(e,r,this.formats),this.options?.memoize&&(this.options.memoizeFallback||!n||a)&&function(e,t,r){const{obj:o,k:i}=Cg(e,t,Object);o[i]=r}(this.mem,s,l)),l.format(t)}catch(r){return this.options?.parseErrorHandler?.(r,i,e,t)}}addLookupKeys(e){return e}clearCache(){this.mem={}}}_g.type="i18nFormat";const Tg=_g;var Og=r(40694);function xg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach((function(t){(0,rt.A)(e,t,r[t])}))}return e}var Ng=r(92099),Lg=r(48183),Mg=r(72367);function Rg(e,t){if(t&&("object"==(0,Og.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,Mg.A)(e)}function kg(e){return kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kg(e)}var Dg=r(91576);function Bg(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,Dg.A)(e,t)}var Hg={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Vg=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Ng.A)(this,e),this.init(t,r)}return(0,Lg.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Hg,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,xg({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Fg=function(){function e(){(0,Ng.A)(this,e),this.observers={}}return(0,Lg.A)(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,r)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(r))}))}}]),e}();function Gg(){var e,t,r=new Promise((function(r,o){e=r,t=o}));return r.resolve=e,r.reject=t,r}function zg(e){return null==e?"":""+e}function Wg(e,t,r){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var n="string"!=typeof t?[].concat(t):t.split(".");n.length>1;){if(i())return{};var a=o(n.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:o(n.shift())}}function Ug(e,t,r){var o=Wg(e,t,Object);o.obj[o.k]=r}function jg(e,t){var r=Wg(e,t),o=r.obj,i=r.k;if(o)return o[i]}function Kg(e,t,r){var o=jg(e,r);return void 0!==o?o:jg(t,r)}function Zg(e,t,r){for(var o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?r&&(e[o]=t[o]):Zg(e[o],t[o],r):e[o]=t[o]);return e}function $g(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var qg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Yg(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return qg[e]})):e}var Xg="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Qg=function(e){function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,Ng.A)(this,t),r=Rg(this,kg(t).call(this)),Xg&&Fg.call((0,Mg.A)(r)),r.data=e||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return Bg(t,e),(0,Lg.A)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,n=[e,t];return r&&"string"!=typeof r&&(n=n.concat(r)),r&&"string"==typeof r&&(n=n.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=e.split(".")),jg(this.data,n)}},{key:"addResource",value:function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},n=this.options.keySeparator;void 0===n&&(n=".");var a=[e,t];r&&(a=a.concat(n?r.split(n):r)),e.indexOf(".")>-1&&(o=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Ug(this.data,a,o),i.silent||this.emit("added",e,t,r,o)}},{key:"addResources",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!=typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(e,t,i,r[i],{silent:!0});o.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,o,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(o=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=jg(this.data,a)||{};o?Zg(s,r,i):s=xg({},s,r),Ug(this.data,a,s),n.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?xg({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(Fg),Jg={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,o,i){var n=this;return e.forEach((function(e){n.processors[e]&&(t=n.processors[e].process(t,r,o,i))})),t}},em={},tm=function(e){function t(e){var r,o,i,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Ng.A)(this,t),r=Rg(this,kg(t).call(this)),Xg&&Fg.call((0,Mg.A)(r)),o=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i=e,n=(0,Mg.A)(r),o.forEach((function(e){i[e]&&(n[e]=i[e])})),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=Vg.create("translator"),r}return Bg(t,e),(0,Lg.A)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:i};var a=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(o)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,r,o){var i=this;if("object"!==(0,Og.A)(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],r),s=a.key,l=a.namespaces,u=l[l.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(d){var p=r.nsSeparator||this.options.nsSeparator;return u+p+s}return s}var h=this.resolve(e,r),g=h&&h.res,m=h&&h.usedKey||s,f=h&&h.exactUsedKey||s,y=Object.prototype.toString.apply(g),v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&g&&("string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof v||"[object Array]"!==y)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,r):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(n){var S="[object Array]"===y,P=S?[]:{},w=S?f:m;for(var C in g)if(Object.prototype.hasOwnProperty.call(g,C)){var E="".concat(w).concat(n).concat(C);P[C]=this.translate(E,xg({},r,{joinArrays:!1,ns:l})),P[C]===E&&(P[C]=g[C])}g=P}}else if(b&&"string"==typeof v&&"[object Array]"===y)(g=g.join(v))&&(g=this.extendTranslation(g,e,r,o));else{var A=!1,I=!1,_=void 0!==r.count&&"string"!=typeof r.count,T=t.hasDefaultValue(r),O=_?this.pluralResolver.getSuffix(c,r.count):"",x=r["defaultValue".concat(O)]||r.defaultValue;!this.isValidLookup(g)&&T&&(A=!0,g=x),this.isValidLookup(g)||(I=!0,g=s);var N=T&&x!==g&&this.options.updateMissing;if(I||A||N){if(this.logger.log(N?"updateKey":"missingKey",c,u,s,N?x:g),n){var L=this.resolve(s,xg({},r,{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var k=0;k<R.length;k++)M.push(R[k]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(r.lng||this.language):M.push(r.lng||this.language);var D=function(e,t,o){i.options.missingKeyHandler?i.options.missingKeyHandler(e,u,t,N?o:g,N,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,u,t,N?o:g,N,r),i.emit("missingKey",e,u,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?M.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){D([e],s+t,r["defaultValue".concat(t)]||x)}))})):D(M,s,x))}g=this.extendTranslation(g,e,r,h,o),I&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(u,":").concat(s)),I&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,r,o,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(xg({},r,{interpolation:xg({},this.options.interpolation,r.interpolation)}));var a,s=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=xg({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return i&&i[0]===o[0]&&!r.context?(n.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):n.translate.apply(n,o.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==r.applyPostProcessor&&(e=Jg.handle(p,e,t,this.options&&this.options.postProcessPassResolved?xg({i18nResolved:o},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,o,i,n,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;r=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(n=e,!em["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(n)&&(em["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(r){if(!a.isValidLookup(t)){i=r;var n,l,c=u,h=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(h,u,r,e,s);else d&&(n=a.pluralResolver.getSuffix(r,s.count)),d&&p&&h.push(c+n),p&&h.push(c+="".concat(a.options.contextSeparator).concat(s.context)),d&&h.push(c+=n);for(;l=h.pop();)a.isValidLookup(t)||(o=l,t=a.getResource(r,e,l,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:n}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,o):this.resourceStore.getResource(e,t,r,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}]),t}(Fg);function rm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var om=function(){function e(t){(0,Ng.A)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vg.create("languageUtils")}return(0,Lg.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=rm(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=rm(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=rm(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var o=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(o)||(t=o)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var o=r.getLanguagePartFromCode(e);if(r.isSupportedCode(o))return t=o;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],n=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),o.forEach((function(e){i.indexOf(e)<0&&n(r.formatLanguageCode(e))})),i}}]),e}(),im=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],nm={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var am=function(){function e(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Ng.A)(this,e),this.languageUtils=t,this.options=o,this.logger=Vg.create("pluralResolver"),this.rules=(r={},im.forEach((function(e){e.lngs.forEach((function(t){r[t]={numbers:e.nr,plurals:nm[e.fc]}}))})),r)}return(0,Lg.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,r=this.getRule(e);return r?r.numbers.map((function(r){return t.getSuffix(e,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),n=o.numbers[i];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===n?n="plural":1===n&&(n=""));var a=function(){return r.options.prepend&&n.toString()?r.options.prepend+n.toString():n.toString()};return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?"_plural_".concat(n.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),sm=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,Ng.A)(this,e),this.logger=Vg.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,Lg.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Yg,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?$g(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?$g(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?$g(t.nestingPrefix):t.nestingPrefixEscaped||$g("$t("),this.nestingSuffix=t.nestingSuffix?$g(t.nestingSuffix):t.nestingSuffixEscaped||$g(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,o){var i,n,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var i=Kg(t,l,e);return s.alwaysFormat?s.format(i,void 0,r):i}var n=e.split(s.formatSeparator),a=n.shift().trim(),u=n.join(s.formatSeparator).trim();return s.format(Kg(t,l,a),u,r,o)};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){if(void 0===(n=c(i[1].trim())))if("function"==typeof d){var r=d(e,i,o);n="string"==typeof r?r:""}else{if(p){n=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),n=""}else"string"==typeof n||s.useRawValueToEscape||(n=zg(n));if(e=e.replace(i[0],t.safeValue(n)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,o,i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=xg({},n);function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var o=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(o[1]);e=o[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=xg({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],u=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,u=!0}if((o=t(s.call(this,r[1].trim(),a),a))&&r[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=zg(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),u&&(o=l.reduce((function(e,t){return i.format(e,t,n.lng,n)}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),e}();var lm=function(e){function t(e,r,o){var i,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,Ng.A)(this,t),i=Rg(this,kg(t).call(this)),Xg&&Fg.call((0,Mg.A)(i)),i.backend=e,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=n,i.logger=Vg.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,n.backend,n),i}return Bg(t,e),(0,Lg.A)(t,[{key:"queueLoad",value:function(e,t,r,o){var i=this,n=[],a=[],s=[],l=[];return e.forEach((function(e){var o=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,o=!1,a.indexOf(s)<0&&a.push(s),n.indexOf(s)<0&&n.push(s),l.indexOf(t)<0&&l.push(t)))})),o||s.push(e)})),(n.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:o}),{toLoad:n,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var o=e.split("|"),i=o[0],n=o[1];t&&this.emit("failedLoading",i,n,t),r&&this.store.addResourceBundle(i,n,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){var o,s,l,u,c,d;o=r.loaded,s=n,u=Wg(o,[i],Object),c=u.obj,d=u.k,c[d]=c[d]||[],l&&(c[d]=c[d].concat(s)),l||c[d].push(s),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(s,l){s&&l&&i<5?setTimeout((function(){o.read.call(o,e,t,r,i+1,2*n,a)}),n):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var n=this.queueLoad(e,t,o,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),i=o[0],n=o[1];this.read(i,n,"read",void 0,void 0,(function(o,a){o&&t.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(i," failed"),o),!o&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(i),a),t.loaded(e,o,a)}))}},{key:"saveMissing",value:function(e,t,r,o,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,o,null,xg({},n,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,r,o))}}]),t}(Fg);function um(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cm(){}var dm=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if((0,Ng.A)(this,t),e=Rg(this,kg(t).call(this)),Xg&&Fg.call((0,Mg.A)(e)),e.options=um(r),e.services={},e.logger=Vg,e.modules={external:[]},o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),Rg(e,(0,Mg.A)(e));setTimeout((function(){e.init(r,o)}),0)}return e}return Bg(t,e),(0,Lg.A)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=xg({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,Og.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,Og.A)(e[2])||"object"===(0,Og.A)(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,um(t)),this.format=this.options.interpolation.format,r||(r=cm),!this.options.isClone){this.modules.logger?Vg.init(o(this.modules.logger),this.options):Vg.init(null,this.options);var i=new om(this.options);this.store=new Qg(this.options.resources,this.options);var n=this.services;n.logger=Vg,n.resourceStore=this.store,n.languageUtils=i,n.pluralResolver=new am(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),n.interpolator=new sm(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new lm(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e.emit.apply(e,[t].concat(o))})),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new tm(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];e.emit.apply(e,[t].concat(o))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var s=Gg(),l=function(){var t=function(t,o){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),s.resolve(o),r(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cm,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],n=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)n(o);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return n(e)}));this.options.preload&&this.options.preload.forEach((function(e){return n(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,r){var o=Gg();return e||(e=this.languages),t||(t=this.options.ns),r||(r=cm),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),r(e)})),o}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Jg.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var o=Gg();this.emit("languageChanging",e);var i=function(e){var i="string"==typeof e?e:r.services.languageUtils.getBestMatchFromCodes(e);i&&(r.language||(r.language=i,r.languages=r.services.languageUtils.toResolveHierarchy(i)),r.translator.language||r.translator.changeLanguage(i),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(i)),r.loadResources(i,(function(e){!function(e,i){i?(r.language=i,r.languages=r.services.languageUtils.toResolveHierarchy(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,o.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t){var r=this,o=function e(t,o){var i;if("object"!==(0,Og.A)(o)){for(var n=arguments.length,a=new Array(n>2?n-2:0),s=2;s<n;s++)a[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(a))}else i=xg({},o);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,r.t(t,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,r){var o=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===o||2===o};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(o,e)||(!this.services.backendConnector.backend||!(!a(o,e)||i&&!a(n,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,o=Gg();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=Gg();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],i=e.filter((function(e){return o.indexOf(e)<0}));return i.length?(this.options.preload=o.concat(i),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cm,i=xg({},this.options,r,{isClone:!0}),n=new t(i);return["store","services","language"].forEach((function(t){n[t]=e[t]})),n.services=xg({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new tm(n.services,n.options),n.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n.emit.apply(n,[e].concat(r))})),n.init(i,o),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}}]),t}(Fg);const pm=new dm;var hm,gm=function({icuOptions:e={},...t}){const{parseErrorHandler:r}=t;return function({locale:e,asyncMessagesLoader:t,messages:r,useSuspense:o=!1,wait:i,disableAutoInit:n=!1,bindI18n:a},{icu:s}={}){const l={lng:e,fallbackLng:"en",keySeparator:!1,react:{useSuspense:o,bindI18n:a,wait:i},_polyfill:{isLoading:!1}},u=pm.createInstance(n?l:void 0);return s&&u.use(s),t&&u.use({type:"backend",read:async(e,r,o)=>{try{return o(null,await t(e))}catch(e){return o(e,null)}}}),r&&(l.resources={[e]:{translation:r}}),n||u.init(l),u}(t,{icu:new Tg({parseErrorHandler:r,bindI18n:t.bindI18n,...e})})};!function(e){e.Default="",e.OwnerAccount="owner-account"}(hm||(hm={}));var mm="__WIXEXP_USE_NEW_API",fm="__WIXEXP_CONDUCTION_METHOD_",ym="__WIXEXP_OWNER_ACCOUNT_ID_",vm="__WIXEXP_LOGGED_IN_USER_ID_";function bm(e,t,r){var o,i;if("undefined"!=typeof self)if("function"==typeof r){if(void 0!==r(self[t]))return(o={})[e]=r(self[t]),o}else if(typeof self[t]===r)return(i={})[e]=self[t],i;return{}}var Sm=function(e){return Object.keys(hm).filter((function(t){return hm[t]===e})).length>0?e:void 0};function Pm(e){return function(e){return e.conductionMethod===hm.OwnerAccount&&e.siteOwnerId&&e.loggedInUserId}(e)?{forSiteOwner:{siteOwnerId:e.siteOwnerId,loggedInUserId:e.loggedInUserId}}:{}}var wm=function(e){return"string"==typeof e&&""!==e};function Cm(e){void 0===e&&(e={});var t=e.forSiteOwner,r=e.forSiteVisitors,o=e.overrideCriteria,i="";if(["forSiteOwner","forSiteVisitors"].reduce((function(t,r){return e[r]?t+1:t}),0)>1)throw new Error('Only one of "forSiteOwner" or "forSiteVisitors" is accepted.');return t&&(i+=function(e){return wm(e.loggedInUserId)&&wm(e.siteOwnerId)?"&"+"requestContext.forSiteOwner.loggedInUserId=".concat(e.loggedInUserId,"&")+"requestContext.forSiteOwner.siteOwnerId=".concat(e.siteOwnerId):""}(t)),r&&(i+=function(e){return wm(e.visitorId)&&wm(e.siteOwnerId)?"&"+"requestContext.forSiteVisitors.visitorId=".concat(e.visitorId,"&")+"requestContext.forSiteVisitors.siteOwnerId=".concat(e.siteOwnerId):""}(r)),o&&(i+=function(e){return wm(e.entityId)?"&requestContext.overrideCriteria.entityId=".concat(e.entityId):""}(o)),i}function Em(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}var Am={conductAllInScope:"/_api/wix-laboratory-server/v1/laboratory/platform/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/v1/laboratory/platform/conductExperiment"},Im={conductAllInScope:"/_api/wix-laboratory-server/laboratory/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/laboratory/conductExperiment"};function _m(e,t){return-1!==e.indexOf(t?Am.conductAllInScope:Im.conductAllInScope)}var Tm=function(e,t,r){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===r&&(r=!1),r?"".concat(Am.conductExperiment,"?key=").concat(encodeURIComponent(e),"&fallbackValue=").concat(encodeURIComponent(t)):"".concat(Im.conductExperiment,"?key=").concat(encodeURIComponent(e),"&fallback=").concat(encodeURIComponent(t))};function Om(e,t,r){var o="".concat(Tm(t,"",r));return e.includes(o)}var xm=function(){function e(){this.urlMap=new Map,this.pendingUrlMap=new Map}return e.prototype.addUrlRequest=function(e,t){return(0,f.__awaiter)(this,void 0,void 0,(function(){var r=this;return(0,f.__generator)(this,(function(o){switch(o.label){case 0:return this.pendingUrlMap.set(e,t),[4,t.then((function(t){return r.addUrlResponse(e,t)}))];case 1:return o.sent(),[2]}}))}))},e.prototype.addUrlResponse=function(e,t){this.urlMap.set(e,t)},e.prototype.getUrlResponse=function(e){return this.urlMap.get(e)},e.prototype.getUrlRequest=function(e){return this.pendingUrlMap.get(e)},e.prototype.getExperimentValue=function(e,t){var r,o;try{for(var i=(0,f.__values)(this.urlMap.keys()),n=i.next();!n.done;n=i.next()){var a=n.value;if(Om(a,e,t))return this.urlMap.get(a);if(_m(a,t)){var s=Em(this.urlMap.get(a));if("object"==typeof s&&e in s)return s[e]}}}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e}();!function(){function e(){}e.prototype.addUrlRequest=function(){},e.prototype.addUrlResponse=function(){},e.prototype.getUrlResponse=function(){},e.prototype.getUrlRequest=function(){},e.prototype.getExperimentValue=function(){}}();function Nm(){return void 0===self.experimentsCacheV2&&(self.experimentsCacheV2=new xm),self.experimentsCacheV2}function Lm(){return"object"==typeof self?self:r.g}function Mm(e){const t=function(e){return function(){const e=function(){if("object"==typeof document)return document}();if(e&&e.cookie)return decodeURIComponent(e.cookie).split(";");return[]}().filter((t=>e===t.split("=")[0].trim()))[0]}(e);return t?t.split("=")[1]:""}const Rm="XSRF-TOKEN",km="x-xsrf-token";const Dm="x-wix-brand";function Bm(){const e=function(){const e=Lm();if(e&&e.commonConfig&&"string"==typeof e.commonConfig.brand)return e.commonConfig.brand;return""}();return{[Dm]:e}}function Hm(){return function(){const e=Lm();if(e&&e.consentPolicyManager&&"function"==typeof e.consentPolicyManager._getConsentPolicyHeader)return e.consentPolicyManager._getConsentPolicyHeader();return}()||function(){const e=Lm();if(e&&e.Wix&&e.Wix.Utils&&"function"==typeof e.Wix.Utils._getConsentPolicyHeader)return e.Wix.Utils._getConsentPolicyHeader();return}()||{}}var Vm=r(88538);function Fm(){return void 0!==Vm&&null!=Vm.versions?.node&&(!!Vm.env.TEAMCITY_VERSION||!!Vm.env.BUILDKITE)}const Gm=["consentPolicy","consentPolicyHeader"],zm="commonConfig",Wm={bsi:"BSI"};const Um=()=>{const e=function(){const e=Lm(),t=e?.commonConfig;if(!t)return null;const r={};let o=!1;return Object.keys(t).forEach((e=>{const i=Wm[e];i?(r[i]=t[e],o=!0):Gm.indexOf(e)<0&&"function"!=typeof t[e]&&(r[e]=t[e],o=!0)})),o?r:null}(),t=e?JSON.stringify(e):"";return{[zm]:encodeURIComponent(t)}};var jm=r(54902),Km=r.n(jm);const Zm="x-wix-linguist";function $m({lang:e,locale:t,isPrimaryLanguage:r,signedInstance:o}){if(function({lang:e,locale:t,isPrimaryLanguage:r}){return e&&t&&/^(true|false)$/.test(r?.toString()||"")}({lang:e,locale:t,isPrimaryLanguage:r})){const i=function(e){try{const t=e?.startsWith("wixcode")?e?.split(".")[2]:e?.split(".")[1];if(t)return JSON.parse(Km().decode(t)).instanceId}catch(e){}}(o);if(void 0!==i)return{[Zm]:[e,t,r?.toString(),i].join("|")}}return{}}Error;class qm extends Error{constructor(e,t,r){super(`WixHeadersValidationError: expected ${t} to be ${e} but got ${JSON.stringify(r)}`)}}function Ym(e={}){!function(e){(function(e,t){if("boolean"!=typeof t)throw new qm("boolean",e,t)})("opts.csrf",e.csrf),function(e,t){if("string"!=typeof t)throw new qm("string",e,t)}("opts.signedInstance",e.signedInstance)}(e={csrf:!0,signedInstance:"",...e});const t=[Bm(),Hm(),(o=e.signedInstance,{authorization:o}),(r=e.artifactId,{"X-Wix-Client-Artifact-Id":r??(Fm()?"":"communities-blog-ooi")}),Um(),$m({signedInstance:e.signedInstance,...e.multilingualOptions})];var r,o;return e.csrf&&t.push(function(){const e=Mm(Rm);return{[km]:e}}()),t.filter((e=>Object.values(e).every((e=>e)))).reduce(((e,t)=>({...e,...t})),{})}var Xm=function(){function e(e){var t;this.experiments=null!==(t=e.experiments)&&void 0!==t?t:{}}return e.prototype.get=function(e){return this.experiments[e]},e.prototype.enabled=function(e){return"true"===this.get(e)},e.prototype.pending=function(){return!1},e.prototype.ready=function(){return Promise.resolve()},e.prototype.all=function(){return this.experiments},e}(),Qm=function(){},Jm=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this,o=(0,f.__assign)((0,f.__assign)((0,f.__assign)((0,f.__assign)({},bm("useNewApi",mm,"boolean")),bm("conductionMethod",fm,Sm)),bm("siteOwnerId",ym,"string")),bm("loggedInUserId",vm,"string"));return r.useNewApi=void 0!==t.useNewApi?t.useNewApi:o.useNewApi||!1,r.experiments=t.experiments||{},r.loaders=new Map,r.baseUrl=(r.useNewApi,t.baseUrl||""),r.requestContext=t.requestContext||Pm(o),r.onError=t.onError||Qm,t.scope&&r.load(t.scope),t.scopes&&t.scopes.forEach(r.load.bind(r)),r}return(0,f.__extends)(t,e),t.prototype.add=function(e){this.experiments=(0,f.__assign)((0,f.__assign)({},this.experiments),e)},t.prototype._addLoader=function(e,t){var r=this;return this.loaders.set(e,t),t.then((function(){r.loaders.delete(e)})),t},t.prototype._getUrlWithFallback=function(e,t){var r=this,o=Nm().getUrlResponse(e);if(void 0!==o)return Promise.resolve(o);var i=Nm().getUrlRequest(e);if(void 0!==i)return i;var n=this.loaders.get(e);if(void 0!==n)return n;var a=function(e){return new Promise((function(t,r){var o=Ym(),i=new XMLHttpRequest;i.open("GET",e,!0),Object.keys(o).forEach((function(e){return i.setRequestHeader(e,o[e])})),i.responseType="text",i.withCredentials=!0,i.onload=function(){i.status>=200&&i.status<400?t(i.responseText):r(new Error("Failed to load ".concat(e,", status ").concat(i.status)))},i.onerror=function(){return r(new Error("Failed to load ".concat(e)))},i.send()}))}(e).catch((function(e){return r.onError(e),t}));return Nm().addUrlRequest(e,a),a},t.prototype.load=function(e){var t=this,r=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),t?"".concat(Am.conductAllInScope,"?scope=").concat(encodeURIComponent(e)):"".concat(Im.conductAllInScope,"?scope=").concat(encodeURIComponent(e))}(e,this.useNewApi),o=this.useNewApi?Cm(this.requestContext):"",i="".concat(this.baseUrl).concat(r).concat(o),n=this._getUrlWithFallback(i,"{}").then((function(e){return Em(e)})).then((function(e){return t.useNewApi?e.values:e})).then((function(e){return t.add(e),e}));return this._addLoader(i,n)},t.prototype.conduct=function(e,t){var r=this,o=Nm().getExperimentValue(e,this.useNewApi);if(void 0!==o)return this._addConductResult(e,o);var i=Tm(e,t,this.useNewApi),n=this.useNewApi?Cm(this.requestContext):"",a="".concat(this.baseUrl).concat(i).concat(n),s=this._getUrlWithFallback(a,null!=t?t:"").then((function(t){return r._addConductResult(e,t)}));return this._addLoader(a,s)},t.prototype.pending=function(){return!!this.loaders.size},t.prototype.ready=function(){return Promise.all(Array.from(this.loaders.values()))},t.prototype._addConductResult=function(e,t){var r,o=this.useNewApi?JSON.parse(t).value:t;return this.add(((r={})[e]=o,r)),Promise.resolve(o)},t}(Xm),ef=function(){return ef=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ef.apply(this,arguments)},tf=function(e,t){var r={};return e.visitorId?r.forSiteVisitors=ef(ef({},e),{visitorId:e.visitorId}):r.forSiteOwner=ef(ef({},e),{loggedInUserId:e.loggedInUserId}),t&&(r.overrideCriteria=t),r},rf=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),of=function(e,t,r,o){return new(r||(r=Promise))((function(i,n){function a(e){try{l(o.next(e))}catch(e){n(e)}}function s(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},nf=function(e,t){var r,o,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},af=function(e){function t(t){var r=t.experimentsConfig,o=t.prepopulated,i=t.baseUrl,n=t.ctx,a=t.overrideCriteria,s=e.call(this,{baseUrl:null!=i?i:"",experiments:o,useNewApi:!0,requestContext:tf(n,a)})||this;return s.init=function(){return of(s,void 0,void 0,(function(){var e,t=this;return nf(this,(function(r){switch(r.label){case 0:return this.prepopulated||!this.flowConfig?[2,this]:(e=this.flowConfig.scopes.map((function(e){return t.load(e)})),[4,Promise.all(e).then((function(){return t}))]);case 1:return r.sent(),[2,this]}}))}))},s.flowConfig=r,s.prepopulated=o,s}return rf(t,e),t}(Jm),sf=r(41758);var lf=r(8503),uf=(0,i.createContext)({}),cf=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),df=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cf(t,e),t.prototype.render=function(){return n().createElement(uf.Provider,{value:this.props.logger},this.props.children)},t}(n().Component),pf=(0,i.createContext)(null),hf=(pf.Consumer,pf.Provider),gf=(0,i.createContext)(null),mf=(gf.Consumer,gf.Provider),ff=n().createContext({});const yf={"--wix-color-29":"var(--wix-color-3)","--wix-color-37":"var(--wix-color-5)","--wix-color-38":"var(--wix-color-8)","--wix-color-39":"var(--wix-color-8)","--wix-color-40":"var(--wix-color-1)","--wix-color-41":"var(--wix-color-8)","--wix-color-42":"var(--wix-color-8)","--wix-color-43":"var(--wix-color-1)","--wix-color-44":"var(--wix-color-3)","--wix-color-45":"var(--wix-color-3)","--wix-color-46":"var(--wix-color-1)","--wix-color-47":"var(--wix-color-1)","--wix-color-48":"var(--wix-color-8)","--wix-color-49":"var(--wix-color-8)","--wix-color-50":"var(--wix-color-1)","--wix-color-51":"var(--wix-color-8)","--wix-color-52":"var(--wix-color-8)","--wix-color-53":"var(--wix-color-1)","--wix-color-54":"var(--wix-color-3)","--wix-color-55":"var(--wix-color-3)"},vf=i.createContext({mobile:!1,rtl:!1,seo:!1,cssVars:!1}),bf=(vf.Consumer,()=>i.useContext(vf));function Sf(){return Sf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var o=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=kg(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},Sf.apply(null,arguments)}var Pf=r(78544);const wf=function(e){var t=e.darkMode;return(0,Pf.st)(Pf.classes.root,{darkMode:t})};var Cf=r(89422);const Ef=function(e){var t=e.darkMode;return(0,Cf.st)(Cf.classes.root,{darkMode:t})};var Af=r(39528);const If=function(e){var t=e.darkMode;return(0,Af.st)(Af.classes.root,{darkMode:t})};var _f="oBfzlDn",Tf="sv48GTr",Of=r.sts.bind(null,_f);var xf="oLqU4i_",Nf="suSpTPt",Lf=r.sts.bind(null,xf);var Mf="omZAvGw",Rf="spaEIWv",kf=r.sts.bind(null,Mf);const Df=i.createContext({});Df.Consumer;class Bf extends i.PureComponent{getClassName(){const{theme:e,darkMode:t,madefor:r,className:o}=this.props;return kf(Rf,{madefor:r},o,"responsive"===e&&(({darkMode:e})=>Lf(Nf,{darkMode:e}))({darkMode:t}))}getDataAttributes(){const{theme:e,darkMode:t,madefor:r}=this.props;return{"data-theme":e,"data-dark-mode":t,"data-madefor":r}}getValue(){const{theme:e,darkMode:t,madefor:r}=this.props;return{theme:e,darkMode:t,madefor:r,appFlagsClass:this.getClassName(),appDataAttributes:this.getDataAttributes()}}render(){const{dataHook:e,as:t="span",children:r}=this.props;return i.createElement(Df.Provider,{value:this.getValue()},i.createElement(t,{className:this.getClassName(),"data-hook":e,...this.getDataAttributes()},r))}}function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Vf(e,t,r){return t=kg(t),Rg(e,Ff()?Reflect.construct(t,r||[],kg(e).constructor):t.apply(e,r))}function Ff(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ff=function(){return!!e})()}function Gf(e,t,r,o){var i=Sf(kg(1&o?e.prototype:e),t,r);return 2&o&&"function"==typeof i?function(e){return i.apply(r,e)}:i}Bf.displayName="BaseUiNextProvider",Bf.defaultProps={as:"span",darkMode:!1,madefor:!1};var zf=function(e){function t(e){var r;return(0,Ng.A)(this,t),(r=Vf(this,t,[e])).themes={classic:wf,responsive:Ef,facelift:If},r.themeRootSelectors={classic:void 0,responsive:"responsive-skin",facelift:"classic-facelift-skin"},r}return Bg(t,e),(0,Lg.A)(t,[{key:"getClassName",value:function(){var e=this.props,r=e.theme,o=e.madefor,i=e.darkMode,n=e.inputBorders;return Of(Tf,{madefor:o},this.themes[r]({darkMode:i}),this.themeRootSelectors[r],i&&"dark-mode",n&&"facelift"===r?"input-borders-experiment":"",Gf(t,"getClassName",this,3)([]))}},{key:"getDataAttributes",value:function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(r),!0).forEach((function(t){(0,rt.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({"data-madefor":this.props.madefor},Gf(t,"getDataAttributes",this,3)([]))}},{key:"getValue",value:function(){var e=this.props;return{theme:e.theme,darkMode:e.darkMode,madefor:e.madefor,inputBorders:e.inputBorders,forceCloseTooltipAutomaticallyAfter:e.forceCloseTooltipAutomaticallyAfter}}}])}(Bf);zf.displayName="WixBaseUiEnvironmentProvider",zf.propTypes={dataHook:G().string,as:G().string,theme:G().oneOf(["classic","responsive","facelift"]),madefor:G().bool,darkMode:G().bool,inputBorders:G().bool,forceCloseTooltipAutomaticallyAfter:G().number},zf.defaultProps={theme:"facelift",as:"span",madefor:!1,darkMode:!1,inputBorders:!1};var Wf=r(10020),Uf=(0,i.createContext)(null),jf=(Uf.Consumer,Uf.Provider,"specs.components.editorX.useMadefor"),Kf="specs.components.editorClassic.useMadefor",Zf=function(e,t){return!!e&&(t.isEditorX?e.enabled(jf):e.enabled(Kf))},$f=r(28853),qf=r(92213);let Yf=function(e){return e[e.OnHover=0]="OnHover",e[e.Autoplay=1]="Autoplay",e[e.OnClick=2]="OnClick",e}({}),Xf=function(e){return e[e.Quarter=0]="Quarter",e[e.Half=1]="Half",e[e.Normal=2]="Normal",e[e.OneAndQuarter=3]="OneAndQuarter",e[e.OneAndHalf=4]="OneAndHalf",e[e.Two=5]="Two",e}({}),Qf=function(e){return e[e.Text=0]="Text",e[e.Button=1]="Button",e}({});const Jf=(0,$f.K)("blog-authorInfoType",{type:ce.N.Number,getDefaultValue:()=>cr.RL}),ey=(0,$f.K)("blog-mobile-authorInfoType",{type:ce.N.Number,getDefaultValue:()=>cr.RL}),ty=e=>e,ry=(0,fe.ro)("Body-M",{size:14,lineHeight:14*1.4}),oy={showFeaturedPostsOnly:(0,$f.K)("postListWidgetIsFeatured",{type:ce.N.Boolean,getDefaultValue:()=>!1}),paginationType:(0,$f.K)("postListWidgetPaginationType",{type:ce.N.Number,getDefaultValue:()=>lr.Nx.NumberOfPosts}),postCount:(0,$f.K)("postListWidgetEntityCount",{type:ce.N.Number,getDefaultValue:()=>3}),postsPerPage:(0,$f.K)("postListWidgetPostsPerPage",{type:ce.N.Number,getDefaultValue:()=>3}),showAuthorName:(0,$f.K)("blog-isAuthorNameEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showAuthorPicture:(0,$f.K)("blog-isAuthorPictureEnabled",{type:ce.N.Boolean,getDefaultValue:e=>{let{getStyleParamValue:t}=e;return t(Jf)===cr.RL}}),showPostPublishDate:(0,$f.K)("blog-isPostPublishDateEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showReadingTime:(0,$f.K)("blog-isReadingTimeEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showCoverImage:(0,$f.K)("blog-isCoverImageEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showCategoryLabel:(0,$f.K)("blog-isCategoryLabelEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showDescription:(0,$f.K)("blog-isPostDescriptionEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showPostRating:(0,$f.K)("blog-isPostRatingEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showCommentCount:(0,$f.K)("blog-isCommentCountEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showViewCount:(0,$f.K)("blog-isViewCountEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),showLikeCount:(0,$f.K)("blog-isLikeCountEnabled",{type:ce.N.Boolean,getDefaultValue:()=>!0}),isMobileDisplaySettingsEnabled:(0,$f.K)("blog-mobile-isMobileDisplaySettingsEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!1}),showAuthorNameMobile:(0,$f.K)("blog-mobile-isAuthorNameEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showAuthorPictureMobile:(0,$f.K)("blog-mobile-isAuthorPictureEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:e=>{let{getStyleParamValue:t}=e;return t(ey)===cr.RL}}),showPostPublishDateMobile:(0,$f.K)("blog-mobile-isPostPublishDateEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showReadingTimeMobile:(0,$f.K)("blog-mobile-isReadingTimeEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showCoverImageMobile:(0,$f.K)("blog-mobile-isCoverImageEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showCategoryLabelMobile:(0,$f.K)("blog-mobile-isCategoryLabelEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showDescriptionMobile:(0,$f.K)("blog-mobile-isPostDescriptionEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showPostRatingMobile:(0,$f.K)("blog-mobile-isPostRatingEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showCommentCountMobile:(0,$f.K)("blog-mobile-isCommentCountEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showViewCountMobile:(0,$f.K)("blog-mobile-isViewCountEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),showLikeCountMobile:(0,$f.K)("blog-mobile-isLikeCountEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!0}),layoutType:(0,$f.K)("layout-post-list-layoutType",{type:ce.N.Number,getDefaultValue:()=>ur.PE.PgGrid}),isMobileLayoutSettingsEnabled:(0,$f.K)("blog-mobile-isMobileLayoutSettingsEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!1}),layoutTypeMobile:(0,$f.K)("layout-mobile-post-list-layoutType",{type:ce.N.Number,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>ur.PE.PgGrid}),layoutSliderTitleFontSizeMobile:(0,$f.K)("post-slider-post-list-mobile-titleFontSize",{type:ce.N.Number,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>22}),layoutMagazineTitleFontSizeMobile:(0,$f.K)("post-pg-text-on-image-medium-post-list-mobile-titleFontSize",{type:ce.N.Number,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>22}),layoutSideBySideTitleFontSizeMobile:(0,$f.K)("post-list-post-list-mobile-titleFontSize",{type:ce.N.Number,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>14}),layoutOneColumnTitleFontSizeMobile:(0,$f.K)("post-pg-grid-post-list-mobile-titleFontSize",{type:ce.N.Number,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>22}),layoutOneColumnDescriptionFontSizeMobile:(0,$f.K)("post-pg-grid-post-list-mobile-descriptionFontSize",{type:ce.N.Number,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>16}),categoryLabelType:(0,$f.K)("category-label-layoutType",{type:ce.N.Number,getDefaultValue:()=>Qf.Text}),categoryLabelTextFont:(0,$f.K)("category-label-text-textFont",{type:ce.N.Font,getDefaultValue:(0,fe.ro)("Body-M",{size:14,lineHeight:14*1.4})}),categoryLabelTextColor:(0,$f.K)("category-label-text-textColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-8")}),categoryLabelTextColorHover:(0,$f.K)("category-label-text-textColorHover",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-8",.7)}),categoryLabelTextUppercase:(0,$f.K)("category-label-text-uppercase",{type:ce.N.Boolean,getDefaultValue:()=>!1}),categoryLabelButtonHorizontalPadding:(0,$f.K)("category-label-button-horizontalPadding",{type:ce.N.Number,getDefaultValue:()=>12}),categoryLabelButtonVerticalPadding:(0,$f.K)("category-label-button-verticalPadding",{type:ce.N.Number,getDefaultValue:()=>6}),categoryLabelButtonFont:(0,$f.K)("category-label-button-textFont",{type:ce.N.Font,getDefaultValue:(0,fe.ro)("Body-M",{size:14,lineHeight:14*1.4})}),categoryLabelButtonTextColor:(0,$f.K)("category-label-button-textColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-1")}),categoryLabelButtonTextColorHover:(0,$f.K)("category-label-button-textColorHover",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-1")}),categoryLabelButtonUppercase:(0,$f.K)("category-label-button-uppercase",{type:ce.N.Boolean,getDefaultValue:()=>!1}),categoryLabelButtonBackgroundColor:(0,$f.K)("category-label-button-backgroundColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-8")}),categoryLabelButtonBackgroundColorHover:(0,$f.K)("category-label-button-backgroundColorHover",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-8",.7)}),categoryLabelButtonCornerRadius:(0,$f.K)("category-label-button-cornerRadius",{type:ce.N.Number,getDefaultValue:()=>0}),categoryLabelButtonBorderColor:(0,$f.K)("category-label-button-borderColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-8")}),categoryLabelButtonBorderColorHover:(0,$f.K)("category-label-button-borderColorHover",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-8",.7)}),categoryLabelButtonBorderWidth:(0,$f.K)("category-label-button-borderWidth",{type:ce.N.Number,getDefaultValue:()=>0}),ratingsStarFilledColor:(0,$f.K)("post-post-list-ratingFilledStarColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-8")}),ratingsStarEmptyColor:(0,$f.K)("post-post-list-ratingUnfilledStarColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-3")}),ratingsLayoutMagazineStarFilledColor:(0,$f.K)("post-post-list-TOI-ratingFilledStarColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-1")}),ratingsLayoutMagazineStarEmptyColor:(0,$f.K)("post-post-list-TOI-ratingUnfilledStarColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-3")}),ratingsFontColor:(0,$f.K)("post-post-list-ratingFontColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-5")}),ratingsLayoutMagazineFontColor:(0,$f.K)("post-post-list-TOI-ratingFontColor",{type:ce.N.Color,getDefaultValue:(0,qf.N)("color-1")}),ratingsLayoutClassicFont:(0,$f.K)("post-list-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutEditorialFont:(0,$f.K)("post-pg-grid-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutOneColumnFont:(0,$f.K)("post-pg-one-column-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutSideBySideFont:(0,$f.K)("post-pg-side-by-side-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutMagazineFont:(0,$f.K)("post-pg-text-on-image-medium-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutSliderFont:(0,$f.K)("post-slider-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyListFont:(0,$f.K)("post-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:(0,fe.ro)("Body-M")}),ratingsLayoutLegacyListMediumFont:(0,$f.K)("post-list-medium-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyListLargeFont:(0,$f.K)("post-list-large-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyPgIntermediateFont:(0,$f.K)("post-pg-grid-intermediate-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyPgLargeFont:(0,$f.K)("post-pg-grid-large-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyPgMediumFont:(0,$f.K)("post-pg-medium-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyPgSideBySideFont:(0,$f.K)("post-pg-side-by-side-right-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyPgTextOnImageLargeFont:(0,$f.K)("post-pg-text-on-image-large-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),ratingsLayoutLegacyPgTextOnImageSmallFont:(0,$f.K)("post-pg-text-on-image-small-post-list-ratingFont",{type:ce.N.Font,getDefaultValue:ry}),videoSettingsPlayType:(0,$f.K)("post-list-video-play",{type:ce.N.Number,getDefaultValue:()=>Yf.OnHover}),videoSettingsSoundEnabled:(0,$f.K)("post-list-video-sound",{type:ce.N.Boolean,getDefaultValue:()=>!1}),videoSettingsPlaybackSpeed:(0,$f.K)("post-list-video-playbackSpeed",{type:ce.N.Number,getDefaultValue:()=>Xf.Normal}),videoSettingsLoopEnabled:(0,$f.K)("post-list-video-loop",{type:ce.N.Boolean,getDefaultValue:()=>!0}),videoSettingsShowPlayButton:(0,$f.K)("post-list-video-showPlayButton",{type:ce.N.Boolean,getDefaultValue:()=>!0}),isMobileDesignSettingsEnabled:(0,$f.K)("blog-mobile-isMobileDesignSettingsEnabled",{type:ce.N.Boolean,dangerousKeyTransformationOverride:ty,getDefaultValue:()=>!1})},iy=()=>({}),ny=(0,$f.D)(oy);var ay=r(21717);e=r.hmd(e);var sy={I18nextProvider:function(e){var t=e.i18n,r=e.defaultNS,o=e.children,n=(0,i.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,i.createElement)(sf.gJ.Provider,{value:n},o)},ExperimentsProvider:n().Fragment,PureExperimentsProvider:function(e){var t=e.experiments,r=e.children,o=function(e){var t=(0,i.useState)(!e.pending()),r=t[0],o=t[1];return(0,i.useEffect)((function(){var t=!0;return r||e.ready().then((function(){t&&o(!0)})).catch((function(){})),function(){t=!1}}),[r,e]),{ready:r,promise:e.ready(),experimentsInstance:e}}(t);return n().createElement(lf.q.Provider,{value:o},r)},BILoggerProvider:df,FedopsLoggerProvider:mf,PanoramaProvider:hf,HttpProvider:function(e){var t=e.children,r=e.client;return n().createElement(ff.Provider,{value:{client:r}},t)},TPAComponentsProvider:({value:e,children:t,dataHook:r="tpa-components-provider",as:o="div"})=>{const{paletteContextValue:n,style:a}=(e=>{const[t,r]=i.useState(void 0),o=bf();return i.useLayoutEffect((()=>{r(e)}),[e]),i.useEffect((()=>{o._setIsExtendedPaletteEnabledState&&!o.isExtendedPaletteEnabled&&t&&o._setIsExtendedPaletteEnabledState(!0)}),[t,o._setIsExtendedPaletteEnabledState]),{paletteContextValue:{isExtendedPaletteEnabled:t,_setIsExtendedPaletteEnabledState:r},style:t?{}:yf}})(e.isExtendedPaletteEnabled);return i.createElement(o,{style:a,"data-hook":r},i.createElement(vf.Provider,{value:{...e,...n}},t))},BaseUiEnvironmentProviderWrapper:function(e){var t=e.children,r=(e.experimentsConfig?Ae.W:function(){return null})(),o=function(){var e=(0,i.useContext)(Uf);if(!e)throw new Error("`useSettingsEnvironment()` can't be used within a `Widget` component. Please use `useEnvironment()`");return e}(),a=n().useMemo(O,[]);return n().createElement(zf,{madefor:Zf(null==r?void 0:r.experiments,o),theme:o.isEditorX||o.isWixStudio||a===Wf.EditorType.Responsive?"responsive":"facelift",inputBorders:!0,dataHook:"base-ui-provider"},t)}},ly=function(e,t,r){var o=e.initI18n,a=e.withStylesHoc,l=e.createWidgetExperiments,u=e.providers,c=r.name,d=r.componentId,p=r.withErrorBoundary,h=r.localeDistPath,g=r.translationsConfig,y=r.sentryConfig,b=r.styleHocConfig,P=r.stylesParams,w=r.customCssVars,C=r.multilingualDisabled,E=function(e){var r,a=e.error,c=e.errorId,d=e.host,p=Ge(e,["error","errorId","host"]),f=ze(e),y=(0,i.useState)((function(){return f.getPanoramaClient()}))[0];f.getProp("error");var v=u,b=v.I18nextProvider,w=v.PureExperimentsProvider,E=v.BILoggerProvider,O=v.TPAComponentsProvider,N=v.FedopsLoggerProvider,R=v.PanoramaProvider,D=f.getBILogger(),H=new x({host:d,controllerOptions:{appDefinitionId:f.getProp("appDefinitionId"),widgetId:f.getProp("widgetId"),isSSR:f.getProp("isSSR"),isRTL:f.getProp("isRTL"),language:f.getProp("language"),multilingual:C?null:null!==(r=f.getProp("multilingual"))&&void 0!==r?r:null},query:p.query}),V=f.getProp("experiments"),F=(0,i.useMemo)((function(){if(f.isHOCEnabled("experiments"))return l({experiments:V})}),[V]),G=(0,i.useMemo)((function(){return function(e){return function(t){const r={...e,...t};return function({value:e,currency:t}){const o=s({...r,currency:t}),i="string"==typeof e?Number(e):e;return r.parts?o.formatToParts(i):o.format(i)}}}({language:H.language})}),[H.language]),z=function(e,t,r){return(0,i.useMemo)((function(){if(r){var o=r.error,i=r.errorId;return{error:o,errorId:null!=i?i:null,errorEnvironment:"controller"}}return e?{error:e,errorId:null!=t?t:null,errorEnvironment:"component"}:{error:null,errorId:null,errorEnvironment:null}}),[e,r])}(a,c,f.getControllerError()),W=[function(e){return n().createElement(O,{value:{mobile:H.isMobile,rtl:H.isRTL}},e)},function(e){return n().createElement(T,{value:z},e)}];f.isHOCEnabled("bi")&&W.push((function(e){return n().createElement(E,{logger:D},e)})),f.isHOCEnabled("fedops")&&W.push((function(e){return n().createElement(N,{value:f.getProp("fedopsLogger")},e)})),f.isHOCEnabled("panoramaClient")&&W.push((function(e){return n().createElement(R,{value:y},e)})),f.isHOCEnabled("sentry")&&W.push((function(e){return n().createElement(k,{value:f.getProp("sentry")},e)})),f.isHOCEnabled("errorMonitor")&&W.push((function(e){return n().createElement(B,{errorMonitor:f.getProp("errorMonitor")},e)}));var U=f.getProp("language"),j=f.getProp("translations"),K=f.isHOCEnabled("translations"),Z=(0,i.useMemo)((function(){if(K){var e=new I({localeDistPath:h,language:U,availableLanguages:null==g?void 0:g.availableLanguages,prefix:null==g?void 0:g.prefix,initI18n:o});return e.init({prepopulated:j,useSuspense:!1,wait:!H.isSSR}),e.i18n}}),[K,U,j]),$=(0,i.useMemo)((function(){return Z?Z.t.bind(Z):A}),[Z]);return f.isHOCEnabled("translations")&&W.push((function(e){return n().createElement(b,{i18n:Z},e)})),W.push((function(e){return n().createElement(M,null,(function(t){var r,o,i,a,s,l,u=t.isEditor||t.isEditorX||t.isADI?[S()(null===(r=null==d?void 0:d.style)||void 0===r?void 0:r.styleParams),S()(null===(o=null==d?void 0:d.style)||void 0===o?void 0:o.siteColors),S()(null===(i=null==d?void 0:d.style)||void 0===i?void 0:i.siteTextPresets)]:[null===(a=null==d?void 0:d.style)||void 0===a?void 0:a.styleParams,null===(s=null==d?void 0:d.style)||void 0===s?void 0:s.siteColors,null===(l=null==d?void 0:d.style)||void 0===l?void 0:l.siteTextPresets],c=u[0],p=u[1],h=u[2];return n().createElement(Oe,{isMobile:t.isMobile,isRTL:t.isRTL,publicData:f.getProp("publicData"),currentStylesGetter:t.isSSR?void 0:d.getCurrentStyle,allStylesGetter:d.getAllStyles,styleParamsPerBreakpointMode:t.isCssPerBreakpoint,stylesParams:null!=P?P:{},hostStyle:{styleParams:c,siteColors:p,siteTextPresets:h},dimensions:t.dimensions,language:t.multilingual.isEnabled&&t.multilingual.currentLanguage||void 0,t:$,isEditorX:t.isEditorX,experimentsDisabled:!f.isHOCEnabled("experiments")},e)}))})),f.isHOCEnabled("experiments")&&W.push((function(e){return n().createElement(w,{experiments:F},e)})),W.push((function(t){return n().createElement(We,{onAppLoaded:f.getProp("onAppLoaded"),onAppLoadStarted:f.getProp("onAppLoadStarted"),host:e.host},n().createElement(De,{openModal:f.getProp("openModal")},t))})),W.push((function(e){return n().createElement(L,{value:H},e)})),W.push((function(e){return n().createElement(Be,{value:G},e)})),W.push((function(e){return n().createElement(He,{value:m},e)})),n().createElement(_,{providers:W},n().createElement(t,Fe({host:d},p)))},O=null==b?void 0:b.enabled;if(!a)throw new Error("withStyles HOC have not been passed, please report this to Yoshi team");var N=a(E,{defaults:null!=P?P:void 0,customCssVars:w,enableMemoization:"undefined"==typeof WeakMap||v().Cache!==WeakMap}),R=O?function(e){var t=ze(e);!function(e,t){if(!t.isFlowPropsReceived())throw new Error("Controller loading error. Please check https://bo.wix.com/pages/yoshi/docs/editor-flow/issues/controller-error for more info")}(0,t);var r=t.getProp("styles"),o=e.host,a=(0,i.useMemo)((function(){return r&&(o.style.styleParams=r),o}),[o,r]),s=t.getProp("publicData").COMPONENT;return n().createElement(N,Fe({},e,{tpaData:s,host:a,isRTL:t.getProp("isRTL"),isMobile:t.getProp("mobile")}))}:E;if(y){return function(e){var t=ze(e),r=t.getProp("isSSR"),o=t.getProp("isSEO"),a=(0,i.useMemo)((function(){return e=R,t={dsn:y.DSN,config:{environment:"Viewer"},tags:{componentId:d,componentName:c,isSSR:r,isSEO:o}},a=p?(s=R,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ve(t,e),t.prototype.componentDidCatch=function(){},t.prototype.render=function(){return n().createElement(s,Fe({},this.props))},t}(n().Component)):R,function(r){function o(){var e=null!==r&&r.apply(this,arguments)||this;return e.state={error:null},e}return(0,f.__extends)(o,r),o.prototype.getLazySentry=function(){return new this.props.host.LazySentry((0,f.__assign)((0,f.__assign)({dsn:t.dsn},t.config),{release:this.props.sentryRelease}))},o.prototype.getRavenUserContextOverrides=function(){return this.props.ravenUserContextOverrides},o.prototype.componentDidCatch=function(e){null===this.state.error&&this.setState({error:e});var r=this.getLazySentry();if(r){t.tags&&r.configureScope((function(e){Object.keys(t.tags).forEach((function(r){e.setTag(r,t.tags[r])}))}));var o=this.getRavenUserContextOverrides();(t.userContext||o)&&r.configureScope((function(e){e.setUser((0,f.__assign)((0,f.__assign)({},t.userContext),o))})),r.captureException(e)}},o.prototype.render=function(){return this.state.error&&a?i.createElement(a,(0,f.__assign)({error:this.state.error},this.props)):i.createElement(e,(0,f.__assign)({},this.props))},o}(i.Component);var e,t,a,s}),[d,c,r,o]);return n().createElement(a,Fe({},e))}}return R}({initI18n:gm,withStylesHoc:function(e,t){var r=[].concat(t.cssPath||[]),o=[].concat(t.rtlCssPath||[]),n=[].concat(t.ltrCssPath||[]),a=o.length,s=function(t){var s=t.isRTL,l=t.host,u=t.cssBaseUrl,c=i.useMemo((function(){return r.concat(s?o:n)}),[s]),d=i.useState((function(){var e=0;if(!Oh())return e;for(var t=0,r=Array.from(document.styleSheets);t<r.length;t++){var o=r[t];if("string"==typeof o.href){var i=o.href.replace(u||"","");c.includes(i)&&e++}}return e})),p=d[0],h=d[1],g=(null==l?void 0:l.id)||t.id,m=g?".".concat(g):"",y=p+i.useMemo((function(){return Oh()?document.querySelectorAll("".concat(m," link")).length:c.length}),[])>=c.length;return i.createElement("div",{className:g},u&&a?c.map((function(e){return i.createElement("link",{href:"".concat(u).concat(e),rel:"stylesheet",type:"text/css",key:e,onLoad:v})})):null,a&&y?i.createElement(e,(0,f.__assign)({},t)):null,!a&&i.createElement(e,(0,f.__assign)({},t)));function v(){h((function(e){return e+1}))}};return s.displayName="WithStyles",s.tokenForCiPoliceRule="e2425ecc-e4c1-474c-9e2b-8357f32c907b",s},createExperiments:function(e){return new af(e)},createWidgetExperiments:function(e){return new Jm(e)},providers:sy},_h,{multilingualDisabled:!1,sentryConfig:{DSN:"https://2062d0a4929b45348643784b5cb39c36@sentry.wixpress.com/1643",id:"2062d0a4929b45348643784b5cb39c36",projectName:"communities-blog-ooi",teamName:"blogas",errorMonitor:!0},styleHocConfig:{enabled:!0},translationsConfig:{enabled:!0,icuEnabled:!0,defaultTranslationsPath:"/home/builduser/work/a28d066c8eec62f2/packages/communities-blog-ooi/src/assets/locales/messages_en.json",availableLanguages:["ar","bg","ca","cs","da","de","el","en","es","fi","fr","he","hi","hr","hu","id","it","ja","ko","lt","lv","ms","nl","no","pl","pt","ro","ru","sk","sl","sv","th","tl","tr","uk","vi","zh"]},stylesParams:o.default,customCssVars:o.customCssVars||function(){return{}},componentId:"813eb645-c6bd-4870-906d-694f30869fd9",name:"PostList",withErrorBoundary:!1,localeDistPath:"assets/locales"});ly=(0,ay.hot)(e,ly);const uy=_h.loadChunks,cy={loadableReady:r(19635).loadableReady,chunkLoadingGlobal:"webpackJsonp__wix_communities_blog_ooi",component:ly,loadChunks:uy}},54902:function(e,t,r){var o;/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */e=r.nmd(e),function(i){var n=t,a=(e&&e.exports,"object"==typeof r.g&&r.g);a.global!==a&&a.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var l=function(e){throw new s(e)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var t,r,o,i,n=e.length%3,a="",s=-1,c=e.length-n;++s<c;)t=e.charCodeAt(s)<<16,r=e.charCodeAt(++s)<<8,o=e.charCodeAt(++s),a+=u.charAt((i=t+r+o)>>18&63)+u.charAt(i>>12&63)+u.charAt(i>>6&63)+u.charAt(63&i);return 2==n?(t=e.charCodeAt(s)<<8,r=e.charCodeAt(++s),a+=u.charAt((i=t+r)>>10)+u.charAt(i>>4&63)+u.charAt(i<<2&63)+"="):1==n&&(i=e.charCodeAt(s),a+=u.charAt(i>>2)+u.charAt(i<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(c,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var r,o,i=0,n="",a=-1;++a<t;)o=u.indexOf(e.charAt(a)),r=i%4?64*r+o:o,i++%4&&(n+=String.fromCharCode(255&r>>(-2*i&6)));return n},version:"1.0.0"};void 0===(o=function(){return d}.call(t,r,t,e))||(e.exports=o)}()},32880:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},56250:(e,t,r)=>{var o=r(32880),i=r(56852),n=Object.hasOwnProperty,a=Object.create(null);for(var s in o)n.call(o,s)&&(a[o[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,r){return Math.min(Math.max(t,e),r)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),r="hsl";break;case"hwb":t=l.get.hwb(e),r="hwb";break;default:t=l.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,r,i,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(t.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],r=0;r<3;r++)a[r]=parseInt(t[r]+t[r],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(t[r+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:n.call(o,t[1])?((a=o[t[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(r=0;r<3;r++)a[r]=u(a[r],0,255);return a[3]=u(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var e=i(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),o=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+o+"%)":"rgba("+t+"%, "+r+"%, "+o+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},58486:(e,t,r)=>{"use strict";var o=r(84271),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?a:s[e.$$typeof]||i}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,r,o){if("string"!=typeof r){if(g){var i=h(r);i&&i!==g&&e(t,i,o)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),f=0;f<a.length;++f){var y=a[f];if(!(n[y]||o&&o[y]||m&&m[y]||s&&s[y])){var v=p(r,y);try{u(t,y,v)}catch(e){}}}}return t}},75199:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},10711:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var o=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(i=e[r],n=t[r],!(i===n||o(i)&&o(n)))return!1;var i,n;return!0}const n=function(e,t){var r;void 0===t&&(t=i);var o,n=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&r===this&&t(i,n)||(o=e.apply(this,i),a=!0,r=this,n=i),o}}},69653:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o={container:"RiOfiW",isRTL:"FnDyW0",isRtl:"FnDyW0",withCover:"ac4Ofz",newPadding:"JlQ2sc",grid:"jDqjOt","pg-grid":"lyd6fK",pgGrid:"lyd6fK","pg-grid-intermediate":"i_25UC",pgGridIntermediate:"i_25UC","pg-grid-large":"yWOr1I",pgGridLarge:"yWOr1I",slider:"hKl06e","pg-one-column":"UUSLFD",pgOneColumn:"UUSLFD","pg-medium":"x_FPRX",pgMedium:"x_FPRX","list-medium":"PoYsMP",listMedium:"PoYsMP","list-large":"EfvfyL",listLarge:"EfvfyL",list:"NAWdyL","side-by-side":"ivAnV0",sideBySide:"ivAnV0","pg-side-by-side-right":"g8vcTX",pgSideBySideRight:"g8vcTX","pg-side-by-side":"TBrkhx",pgSideBySide:"TBrkhx",videoEmbed:"ITPCIq",large:"feQY6g",image:"pccjOy",contentWrapper:"iSTCpN",boxShadow:"QlVZyW","one-column-mobile":"glhtJc",oneColumnMobile:"glhtJc",withoutFooter:"p8Uk20",mobile:"WdRrHJ",small:"G1V6el",medium:"KwFkyo","text-on-image-small":"sCkhyN",textOnImageSmall:"sCkhyN",withBackground:"KEL4fK","pg-text-on-image-small":"hp0NoL",pgTextOnImageSmall:"hp0NoL","pg-text-on-image-large":"FK1tXh",pgTextOnImageLarge:"FK1tXh","pg-text-on-image-medium":"JnzaaY",pgTextOnImageMedium:"JnzaaY","text-on-image-medium":"LdmkLw",textOnImageMedium:"LdmkLw",titleWrapper:"O16KGI",textWrapper:"JMCi2v",proGallery:"pu51Xe",withShowMoreButton:"mqysW5",withoutHeaderMetadata:"ZBB0ua",withoutShowMoreButton:"xs2MeC","with-category-label":"I5nSmk",withCategoryLabel:"I5nSmk",category:"hrftIZ",title:"FbwBsX",withIcons:"CzG_Nm",profile:"ZpmKeC",withoutDescription:"AkO1lZ",withoutBottomMargin:"ySFpqx",content:"nebVix",footer:"NPsER6","without-footer":"p8Uk20","text-on-image-icons":"n9F1tl",textOnImageIcons:"n9F1tl","text-on-image-text-color":"VMF9AQ",textOnImageTextColor:"VMF9AQ","text-on-image-seperator-background-color":"BVf6py",textOnImageSeperatorBackgroundColor:"BVf6py",separator:"TE7que",mobileSeparator:"iD0LEx",withMetadata:"vxAOcp",withoutCover:"kzwb6t","post-list":"zwuMcM",postList:"zwuMcM",unpublishedBadge:"GGI4XB",unpublishedBadgeBorder:"NtnM8D",coverContainer:"tFEVbz",coverWrapper:"QP8OH2",responsiveTitle:"Gf88Ln",fadeout:"so9KdE",mobileWrapper:"hMB1wk",excerptLink:"CHRJex",forceRelative:"_UH27m",rating:"EQ1O0U",homepage:"xczrBK",withTextOnImageStyles:"amZSNe"}},96675:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{ON_GALLERY:0,OUTSIDE_GALLERY:1,MOUSE_CURSOR:2}},64695:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{CROP:"fill",FIT:"fit",MIN:"min",MAX:"max"}},38928:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{DESKTOP:"desktop",MOBILE:"mobile",TABLET:"tablet"}},99715:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{SMART:"smart",PIXELS:"px",RATIO:"ratio"}},35685:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{FIT_TO_SCREEN:0,SET_ITEMS_PER_ROW:1}},61720:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{NO_EFFECT:"NO_EFFECT",ZOOM_IN:"ZOOM_IN",BLUR:"BLUR",GRAYSCALE:"GRAYSCALE",SHRINK:"SHRINK",INVERT:"INVERT",COLOR_IN:"COLOR_IN",DARKENED:"DARKENED",MAIN_COLOR:"MAIN_COLOR"}},88021:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{NO_EFFECT:"NO_EFFECT",SLIDE:"SLIDE"}},77017:(e,t,r)=>{"use strict";r.d(t,{A:()=>$});var o=r(96675);const i={ITEM_CENTER:"ITEM_CENTER",IMAGE_CENTER:"IMAGE_CENTER",INFO_CENTER:"INFO_CENTER"};var n=r(64695);const a={SIDE_BAR_WIDTH:430,STORE_SIDE_BAR_WIDTH:560,MOBILE_PADDING:120,NO_PADDING:0};const s={APP_LOADED:"APP_LOADED",ITEM_CREATED:"ITEM_CREATED",ITEM_LOADED:"ITEM_LOADED",GALLERY_CHANGE:"GALLERY_CHANGE",ITEM_ACTION_TRIGGERED:"ITEM_ACTION_TRIGGERED",CURRENT_ITEM_CHANGED:"CURRENT_ITEM_CHANGED",NEED_MORE_ITEMS:"NEED_MORE_ITEMS",VIDEO_ENDED:"VIDEO_ENDED",VIDEO_ERROR:"VIDEO_ERROR",VIDEO_PAUSED:"VIDEO_PAUSED",VIDEO_PLAYED:"VIDEO_PLAYED",HOVER_SET:"HOVER_SET",HOVER_UNSET:"HOVER_UNSET",LOAD_MORE_CLICKED:"LOAD_MORE_CLICKED",ITEM_CLICKED:"ITEM_CLICKED",THUMBNAIL_CLICKED:"THUMBNAIL_CLICKED",ITEM_FOCUSED:"ITEM_FOCUSED",ITEM_LOST_FOCUS:"ITEM_LOST_FOCUS",GALLERY_SCROLLED:"GALLERY_SCROLLED"};var l=r(38928),u=r(99715);const c={LEFT:"left",RIGHT:"right",CENTER:"center"};var d=r(35685);const p={MIDDLE:"MIDDLE",TOP:"TOP",LEFT:"LEFT",RIGHT:"RIGHT",BOTTOM:"BOTTOM"};const h={1:"1","2v":"2v","2h":"2h","3r":"3r","3b":"3b","3t":"3t","3l":"3l","3v":"3v","3h":"3h"};var g=r(61720),m=r(87270),f=r(85382);const y={COLUMNS:!0,ROWS:!1};const v={EXPAND:"expand",LINK:"link",NOTHING:"nothing",FULLSCREEN:"fullscreen",MAGNIFY:"magnify"};var b=r(32972);const S={LEFT_TO_RIGHT:!1,RIGHT_TO_LEFT:!0};var P=r(23151),w=r(59494);const C={PARTIAL:"partial",ALL:"all"};const E={EXPAND:"EXPAND",FADE:"FADE",CAROUSEL:"CAROUSEL",CROSSFADE:"CROSSFADE"};var A=r(45863),I=r(15218);const _={FILL:"fill",FIT:"fit",FULL:"full",VIDEO:"video"};const T={NO_EFFECT:"NO_EFFECT",FADE_IN:"FADE_IN",GRAYSCALE:"GRAYSCALE",SLIDE_UP:"SLIDE_UP",EXPAND:"EXPAND",SHRINK:"SHRINK",ZOOM_OUT:"ZOOM_OUT",ONE_COLOR:"ONE_COLOR",MAIN_COLOR:"MAIN_COLOR",BLUR:"BLUR"};var O=r(38414),x=r(13030);const N={FACEBOOK:"facebook",TWITTER:"twitter",PINTEREST:"pinterest",EMAIL:"email",TUMBLR:"tumblr"};var L=r(17831);const M={BOTTOM:"bottom",LEFT:"left",TOP:"top",RIGHT:"right"};const R={ON_GALLERY:"ON_GALLERY",OUTSIDE_GALLERY:"OUTSIDE_GALLERY"};const k={HOVER:"hover",AUTO:"auto",ON_CLICK:"onClick"};var D=r(39256),B=r(88021);const H={ease:"cubic-bezier(0.46,0.1,0.25,1)"};const V={LEFT:"LEFT",RIGHT:"RIGHT",BOTTOM:"BOTTOM",TOP:"TOP",CENTERED_VERTICALLY:"CENTERED_VERTICALLY",CENTERED_HORIZONTALLY:"CENTERED_HORIZONTALLY"};const F={PIXEL:"PIXEL",PERCENT:"PERCENT"};const G={INTERVAL:"interval",CONTINUOUS:"continuous"};const z={DEFAULT_ARROW:"DEFAULT_ARROW",ARROW_2:"ARROW_2",ARROW_3:"ARROW_3",ARROW_4:"ARROW_4",ARROW_5:"ARROW_5",ARROW_6:"ARROW_6",ARROW_7:"ARROW_7"};const W={NONE:"NONE",SHADOW:"SHADOW",BOX:"BOX"};const U={FULL:"FULL",SCALED_DOWN:"SCALED_DOWN"};const j={OFF:"OFF",INTERVAL:"INTERVAL",CONTINUOUS:"CONTINUOUS"};const K={OFF:"OFF",HOVER:"HOVER"};const Z={APPEARS:"APPEARS"},$={arrowsPosition:o.A,itemResolutionMode:U,arrowsVerticalPosition:i,cubeType:n.A,dimensions:a,events:s,deviceType:l.A,gallerySizeType:u.A,galleryTextAlign:c,gridStyle:d.A,cubeFitPosition:p,groupTypes:h,imageHoverAnimations:g.A,infoBehaviourOnHover:m.A,infoType:f.A,isVertical:y,itemClick:v,layout:b.A,isLayout:b.n,layoutDirection:S,loadingMode:P.A,loadingWithColorMode:w.A,loadMoreAmount:C,mobileSwipeAnimations:E,overlayAnimations:A.A,placements:I.Ay,hasExternalAbovePlacement:I.IR,hasExternalBelowPlacement:I.kH,hasHoverPlacement:I.uF,hasExternalRightPlacement:I.rv,hasExternalLeftPlacement:I.Mr,hasExternalVerticalPlacement:I.D3,hasExternalHorizontalPlacement:I.rU,isExternalAbovePlacement:I.M4,isExternalBelowPlacement:I.gs,isHoverPlacement:I.WC,isExternalRightPlacement:I.t$,isExternalLeftPlacement:I._f,isExternalVerticalPlacement:I.zY,isExternalHorizontalPlacement:I.HZ,isConstantVerticalPlacement:I.O9,resizeMethods:_,scrollAnimations:T,slideAnimations:O.A,scrollDirection:x.A,socialNetworks:N,textBoxWidthCalculationOptions:L.A,thumbnailsAlignment:M,thumbnailsPosition:R,urlSizes:{RESIZED:"resized",MULTI:"multi",SCALED:"scaled",PIXEL:"pixel",THUMBNAIL:"thumbnail",SQUARE:"square",FULL:"full",SAMPLE:"sample",PRELOAD:"preload",DOWNLOAD:"download",DOWNLOAD_SAMPLE:"download_sample",MAGNIFIED:"magnified"},urlTypes:{HIGH_RES:"img",LOW_RES:"thumb",VIDEO:"video"},videoPlay:k,viewMode:D.A,imagePlacementAnimations:B.A,slideTransition:H,overlayPositions:V,overlaySizeType:F,autoSlideshowTypes:G,arrowsType:z,arrowsContainerStyleType:W,autoSlideBehaviour:j,secondaryMediaTrigger:K,secondaryMediaBehaviour:Z}},87270:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{APPEARS:"APPEARS",DISAPPEARS:"DISAPPEARS",NO_CHANGE:"NO_CHANGE",NEVER_SHOW:"NEVER_SHOW"}},85382:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{NO_BACKGROUND:"NO_BACKGROUND",ATTACHED_BACKGROUND:"ATTACHED_BACKGROUND",SEPARATED_BACKGROUND:"SEPARATED_BACKGROUND",DONT_SHOW:"DONT_SHOW"}},32972:(e,t,r)=>{"use strict";r.d(t,{A:()=>n,n:()=>i});var o={JSON_FIXED:-3,DESIGNED_PRESET:-2,EMPTY:-1,COLLAGE:0,MASONRY:1,GRID:2,THUMBNAIL:3,SLIDER:4,SLIDESHOW:5,PANORAMA:6,COLUMN:7,MAGIC:8,FULLSIZE:9,BRICKS:10,MIX:11,ALTERNATE:12},i=function(e){return function(t){return t.galleryLayout===o[e]}};const n=/^(326|564)7$/.test(r.j)?null:o},23151:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{BLUR:"BLUR",COLOR:"COLOR",MAIN_COLOR:"MAIN_COLOR",NONE:"NONE"}},59494:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{PICKED_COLOR:"PICKED_COLOR",MAIN_COLOR:"MAIN_COLOR"}},45863:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{NO_EFFECT:"NO_EFFECT",FADE_IN:"FADE_IN",EXPAND:"EXPAND",SLIDE_UP:"SLIDE_UP",SLIDE_RIGHT:"SLIDE_RIGHT",SLIDE_DOWN:"SLIDE_DOWN",SLIDE_LEFT:"SLIDE_LEFT"}},15218:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>I,D3:()=>f,HZ:()=>b,IR:()=>p,M4:()=>S,Mr:()=>m,O9:()=>A,WC:()=>w,_f:()=>E,gs:()=>P,kH:()=>h,rU:()=>y,rv:()=>g,t$:()=>C,uF:()=>d,zY:()=>v});var o={SHOW_ON_HOVER:"SHOW_ON_HOVER",SHOW_BELOW:"SHOW_BELOW",SHOW_ABOVE:"SHOW_ABOVE",SHOW_ON_THE_RIGHT:"SHOW_ON_THE_RIGHT",SHOW_ON_THE_LEFT:"SHOW_ON_THE_LEFT",ALTERNATE_HORIZONTAL:"ALTERNATE_HORIZONTAL",ALTERNATE_VERTICAL:"ALTERNATE_VERTICAL"},i="OVERLAY",n="ABOVE",a="BELOW",s="LEFT",l="RIGHT",u="ALTERNATE_HORIZONTALLY",c="ALTERNATE_VERTICALLY",d=function(e){return String(e).includes(o.SHOW_ON_HOVER)||String(e).includes(i)},p=function(e,t){return String(e).includes(o.SHOW_ABOVE)||String(e).includes(n)||t%2==0&&(String(e).includes(o.ALTERNATE_VERTICAL)||String(e).includes(c))},h=function(e,t){return String(e).includes(o.SHOW_BELOW)||String(e).includes(a)||t%2==1&&(String(e).includes(o.ALTERNATE_VERTICAL)||String(e).includes(c))},g=function(e,t){return String(e).includes(o.SHOW_ON_THE_RIGHT)||String(e).includes(l)||t%2==0&&String(e).includes(o.ALTERNATE_HORIZONTAL)||String(e).includes(u)},m=function(e,t){return String(e).includes(o.SHOW_ON_THE_LEFT)||t%2==1&&String(e).includes(o.ALTERNATE_HORIZONTAL)||String(e).includes(u)},f=function(e){return p(e,0)||h(e,1)},y=function(e){return g(e,0)||m(e,1)},v=function(e){return f(e)&&!y(e)&&!d(e)},b=function(e){return y(e)&&!f(e)&&!d(e)},S=function(e){return String(e)===o.SHOW_ABOVE||String(e)===n},P=function(e){return String(e)===o.SHOW_BELOW||String(e)===a},w=function(e){return String(e)===o.SHOW_ON_HOVER||String(e)===i},C=function(e){return String(e)===o.SHOW_ON_THE_RIGHT||String(e)===l},E=function(e){return String(e)===o.SHOW_ON_THE_LEFT||String(e)===s},A=function(e){var t=e.split(","),r=t.shift();return function(e){return S(e)||P(e)}(r)&&t.every((function(e){return e===r}))};const I=/^(326|564)7$/.test(r.j)?null:o},13030:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{VERTICAL:0,HORIZONTAL:1}},38414:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{SCROLL:"SCROLL",FADE:"FADE",DECK:"DECK"}},17831:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{PERCENT:"PERCENT",MANUAL:"MANUAL"}},39256:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=/^(326|564)7$/.test(r.j)?null:{SITE:"SITE",EDIT:"EDIT",PREVIEW:"PREVIEW",SEO:"SEO"}},69143:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var o={};r.r(o),r.d(o,{debounce:()=>l,get:()=>u,isEqual:()=>d,isFunction:()=>c,isNumber:()=>p,pick:()=>a,throttle:()=>s});var i=r(34629),n=void 0,a=function(e,t){var r={};return Object.entries(e||{}).forEach((function(e){var o=e[0],i=e[1];t.indexOf(o)>=0&&(r[o]=i)})),r},s=function(e,t){var r=!1,o=!1;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];r?o=!0:(o=!1,e.apply(n,i),r=!0,setTimeout((function(){o&&e.apply(n,i),r=!1}),t))}},l=function(e,t){var r;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];clearTimeout(r),r=setTimeout((function(){e.apply(n,o)}),t)}},u=function(e,t,r){var o=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce((function(e,t){return null!=e?e[t]:e}),e);return void 0===o||o===e?r:o},c=function(e){return"function"==typeof e},d=function(e,t){try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},p=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},h=r(32669),g=r(98762),m=r(77017),f=function(){function e(){this._cache={},this._hash2int={},this._params={},Object.assign(this,o)}return e.prototype.shouldUseCache=function(){return!(0,g.Q)()&&!(0,g.IL)()&&!this.isSSR()},e.prototype.isUndefined=function(e){return void 0===e},e.prototype.uniqueBy=function(e,t){return e.filter((function(e,r,o){return o.map((function(e){return e[t]})).indexOf(e[t])===r}))},e.prototype.inRange=function(e,t,r){if(void 0===r&&(r=t),0===t)throw new Error("Range cannot be 0");for(;e<0;)e+=t;for(;e>r;)e-=t;return e},e.prototype.sliceArrayWithRange=function(e,t,r){var o=this;return Array(r-t).fill(0).map((function(r,i){var n=t+i;return e[o.inRange(n,e.length,e.length-1)]}))},e.prototype.sliceArrayIfAvailable=function(e,t,r){var o=Math.max(t,0),i=Math.min(r,e.length);return o>t&&(i=Math.min(i+(o-t),e.length)),i<r&&(o=Math.max(o-(r-i),0)),this.sliceArrayWithRange(e,o,i)},e.prototype.dumpCache=function(){this._cache={}},e.prototype.getOrPutFromCache=function(e,t){return this.shouldUseCache()?(void 0!==this._cache[e]||(this._cache[e]=t()),this._cache[e]):t()},e.prototype.hashToInt=function(e,t,r){var o=0;if(this.isUndefined(e)||0===e.length)return o;if(!this._hash2int[e]){for(var i=0;i<e.length;i++)o+=e.charCodeAt(i);this._hash2int[e]=o}return this.isUndefined(t)||this.isUndefined(r)?this._hash2int[e]:this._hash2int[e]%(r-t+1)+t},e.prototype.parseGetParam=function(e,t){try{if(!this.isUndefined(this._params[e]))return this._params[e];var r="",o=[],i=location;if(t&&(i={search:"?"+(t.split("?")[1]||""),pathname:(t.split("?")[0]||"").split("/")[1]||""}),i.search.substr(1).split("&").forEach((function(t){(o=t.split("="))[0]===e&&(r=decodeURIComponent(o[1]))})),!r){var n=decodeURIComponent(i.pathname).split("?")[1];if(!n)return"";n.split("&").forEach((function(t){(o=t.split("="))[0]===e&&(r=decodeURIComponent(o[1]))}))}return this._params[e]=r,r}catch(e){return!1}},e.prototype.stripSlashes=function(e){var t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t},e.prototype.parseStringObject=function(e){if("string"!=typeof e)return e;var t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t},e.prototype.hashCode=function(e){var t,r=0;if(0===e.length)return r;for(t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r},e.prototype.isMobileByProps=function(){var e=this;return this.getOrPutFromCache("isMobileByProps",(function(){var t=e.parseGetParam("deviceType")||h.A.deviceType,r="true"===e.parseGetParam("showMobileView"),o=(0,g.N)();return!!r||(t?String(t).toLowerCase().indexOf("mobile")>=0:o||void 0)}))},e.prototype.isUserAgentMobile=function(){try{return this.getOrPutFromCache("isUserAgentMobile",(function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||h.A.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))&&(t=!0),t}))}catch(e){return!1}},e.prototype.isMobile=function(){var e=this;return this.getOrPutFromCache("isMobile",(function(){var t=e.isMobileByProps(),r=e.isUserAgentMobile();return e.isUndefined(t)?r:t}))},e.prototype.isTouch=function(){var e=this;return this.getOrPutFromCache("isTouch",(function(){var t,r=(0,g.Ig)(),o=(null===(t=h.A.navigator)||void 0===t?void 0:t.maxTouchPoints)>0||"ontouchstart"in h.A.document.documentElement;return e.isUndefined(r)?o:r}))},e.prototype.isTest=function(){try{return h.A.isTest}catch(e){return!1}},e.prototype.isLocal=function(){try{var e=h.A.location.hostname;return"local.wix.com"===e||(e.indexOf("localhost")>=0||"true"===this.parseGetParam("debug"))}catch(e){return!1}},e.prototype.isDev=function(){var e=this;return this.getOrPutFromCache("isDev",(function(){return e.shouldDebug("ph_local")||e.isOOI()&&!1||"true"===(e.safeLocalStorage()||{}).forceDevMode}))},e.prototype.isVerbose=function(){return!this.isTest()&&"true"===(this.safeLocalStorage()||{}).forceDevMode},e.prototype.isStoreGallery=function(){var e=this;return this.getOrPutFromCache("isStoreGallery",(function(){try{return h.A.location.search.toLowerCase().indexOf("isstore")>-1}catch(t){return e.isDev()&&console.error("cant find window",t),!1}}))},e.prototype.isSSR=function(){return void 0===(null===r.g||void 0===r.g?void 0:r.g.window)},e.prototype.isOOI=function(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.origin.includes("editor.wix.com"))},e.prototype.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))},e.prototype.isExternalUrl=function(e){return/(^https?)|(^data)|(^blob)/.test(e)},e.prototype.isiOS=function(){return this.getOrPutFromCache("isiOS",(function(){try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!h.A.MSStream}catch(e){return!1}}))},e.prototype.isiPhone=function(){return this.getOrPutFromCache("isiPhone",(function(){try{return/iPhone/.test(navigator.userAgent)&&!h.A.MSStream}catch(e){return!1}}))},e.prototype.isLandscape=function(){var e=this;return this.getOrPutFromCache("isLandscape",(function(){if(!e.isMobile())return!1;try{if(e.isUndefined(h.A.orientation)){var t=h.A.matchMedia("(orientation: landscape)");return!(!t||!0!==t.matches)}return 90===h.A.orientation||-90===h.A.orientation}catch(e){return!1}}))},e.prototype.safeLocalStorage=function(){try{return localStorage||h.A}catch(e){return h.A}},e.prototype.shouldDebug=function(e){try{return!!this.safeLocalStorage()[e]||(h.A.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}},e.prototype.deviceHasMemoryIssues=function(){return this.isiOS()},e.prototype.getTabIndex=function(e){var t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1},e.prototype.setStateAndLog=function(e,t,r,o){var n=this;if(this.isVerbose()){console.log("State Change Called (".concat(t,")"),r);var a=(0,i.__assign)({},e.state);e.setState(r,(function(){var r=(0,i.__assign)({},e.state),s=n.printableObjectsDiff(a,r,"state");Object.keys(s).length>0&&console.log("State Change Completed (".concat(t,")"),s),n.isFunction(o)&&o.bind(e)()}))}else e.setState(r,(function(){n.isFunction(o)&&o.bind(e)()}))},e.prototype.printableObjectsDiff=function(e,t,r){var o=this;void 0===r&&(r="");var i=function(e){return""===e?e="''":o.isUndefined(e)&&(e="undefined"),String(e)},n=function(e,t,r,a){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===a&&(a=1),a>3?{}:Object.entries(e).reduce((function(e,s){var l=s[0],u=s[1];return o.isEqual(u,t[l])||(Array.isArray(t[l])?(u.length!==t[l].length&&(e[l+".length"]="["+u.length+"] => ["+t[l].length+"]"),e=Object.assign(e,n(u,t[l],(r?r+".":"")+l,a+1))):"object"==typeof t[l]?e=Object.assign(e,n(u,t[l],(r?r+".":"")+l,a+1)):e[(r?r+".":"")+l]=i(u)+" => "+i(t[l])),e}),{})};return n(e,t,r,1)},e.prototype.getScreenWidth=function(){if((0,g.IL)()&&this.isMobile())return 320;if(this.isTest())return 1920;try{return this.isLandscape()?Math.max(h.A.screen.width,h.A.screen.height):h.A.screen.width}catch(e){return 1920}},e.prototype.getScreenHeight=function(){if(this.isTest())return 1200;try{return this.isLandscape()?Math.min(h.A.screen.width,h.A.screen.height):h.A.screen.height}catch(e){return 1200}},e.prototype.getWindowWidth=function(){try{return h.A.innerWidth||980}catch(e){return 980}},e.prototype.getMobileEnabledClick=function(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}},e.prototype.getTopUrlParam=function(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((function(t){var r=t.split("=");return r[0]===e&&r[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]},e.prototype.scrollTo=function(e,t,r,o,i){this.isMobile()&&(r=0);var n=o?e.scrollLeft:e.scrollTop,a=t-n,s=0,l=function(){var t=function(e,t,r,o){return 0===o?r+t:(e/=o/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t}(s+=20,n,a,r);s<r?setTimeout(l,20):(e.setAttribute("data-scrolling",""),"function"==typeof i&&i()),o?e.scrollLeft=t:e.scrollTop=t};e.setAttribute("data-scrolling","true"),l()},e.prototype.formatColor=function(e){var t="inherit";if(!e)return t;var r=e.value?e.value:e,o=/(?:#|0x)(?:[A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})\b|(?:rgb|hsl)a?\([^)]*\)/.exec(r);return o&&o[0]?r:t},e.prototype.logPlaygroundLink=function(e){try{if(this.isVerbose()){var t=Object.entries(e).filter((function(e){var t=e[0];return"object"!=typeof e[1]&&-1===String(t).indexOf("Expand")&&-1===String(t).indexOf("Color")})).map((function(e){var t=e[0],r=e[1];return"".concat(t,"=").concat(encodeURI(r))})).join("&");console.log("Gallery Playground link:","https://pro-gallery.surge.sh?".concat(t))}}catch(e){console.error(e)}},e.prototype.isSingleItemHorizontalDisplay=function(e){return e.scrollDirection===m.A.scrollDirection.HORIZONTAL&&1===e.groupSize&&e.cubeImages&&"100%/100%"===e.layoutParams.cropRatio},e.prototype.getAriaAttributes=function(e){var t,r=e.proGalleryRole,o=e.proGalleryRegionLabel,i=r||"region",n="application"===r?"gallery application":"region",a=((t={role:r||"region"})["aria-label"]=o,t);return i!==n&&(a["aria-roledescription"]=n),a},e.prototype.focusGalleryElement=function(e){e.focus()},e.prototype.isMeaningfulString=function(e){return"string"==typeof e&&!!e.trim().length},e}();const y=new f},98762:(e,t,r)=>{"use strict";r.d(t,{CB:()=>n,IL:()=>l,Ig:()=>d,N:()=>c,PP:()=>a,Q:()=>s,Xf:()=>u});var o=r(39256),i=r(38928),n=new(function(){function e(){this.setViewMode=this.setViewMode.bind(this),this.isSiteMode=this.isSiteMode.bind(this),this.isEditMode=this.isEditMode.bind(this),this.isPreviewMode=this.isPreviewMode.bind(this),this.isSEOMode=this.isSEOMode.bind(this),this.setDeviceType=this.setDeviceType.bind(this),this.isDeviceTypeDesktop=this.isDeviceTypeDesktop.bind(this),this.isDeviceTypeMobile=this.isDeviceTypeMobile.bind(this),this.isDeviceTypeTablet=this.isDeviceTypeTablet.bind(this),this.isDeviceTypeTouch=this.isDeviceTypeTouch.bind(this),this._viewMode=o.A.SITE,this._deviceType=i.A.DESKTOP}return e.prototype.setViewMode=function(e){this._viewMode=e},e.prototype.setDeviceType=function(e){this._deviceType=e},e.prototype.isDeviceTypeMobile=function(){return this._deviceType===i.A.MOBILE},e.prototype.isDeviceTypeTablet=function(){return this._deviceType===i.A.TABLET},e.prototype.isDeviceTypeDesktop=function(){return this._deviceType===i.A.DESKTOP},e.prototype.isDeviceTypeTouch=function(){return this.isDeviceTypeMobile()||this.isDeviceTypeTablet()},e.prototype.isSiteMode=function(){return this._viewMode===o.A.SITE},e.prototype.isEditMode=function(){return this._viewMode===o.A.EDIT},e.prototype.isPreviewMode=function(){return this._viewMode===o.A.PREVIEW},e.prototype.isSEOMode=function(){return this._viewMode===o.A.SEO},e}()),a=n.isSiteMode,s=n.isEditMode,l=n.isPreviewMode,u=n.isSEOMode,c=n.isDeviceTypeMobile,d=(n.isDeviceTypeTablet,n.isDeviceTypeDesktop,n.isDeviceTypeTouch)},32669:(e,t,r)=>{"use strict";r.d(t,{A:()=>m,C:()=>g});var o=r(34629),i=function(){return{}},n=2560,a=1440,s={y:0,x:0,width:n,height:a,innerWidth:n,innerHeight:a,outerWidth:n,outerHeight:a,clientWidth:n,clientHeight:a},l=(0,o.__assign)((0,o.__assign)({},s),{getBoundingClientRect:function(){return s}}),u=(0,o.__assign)({addEventListener:i,removeEventListener:i,createEvent:i,getElementById:function(){return l},getElementsByClassName:function(){return[l]},getElementsByTagName:function(){return[l]},querySelector:function(){return[l]},documentElement:l,activeElement:l,style:s},s);u.body=u;var c=(0,o.__assign)((0,o.__assign)({},s),{scrollTop:0,scrollY:0}),d=(0,o.__assign)({isMock:!0,isSSR:!0,orientation:0,devicePixelRatio:1,addEventListener:i,removeEventListener:i,createEvent:i,CustomEvent:i,screen:s,open:i,petri:{},search:{},location:{href:"http://mock.wix.com/",protocol:"http:",host:"mock.wix.com",hostname:"mock.wix.com",port:"",pathname:"/",search:"",hash:""},postMessage:i,requestAnimationFrame:i,dispatchEvent:i,document:u,getComputedStyle:i,localStorage:{},frames:[]},c),p=new Map(Object.keys(c).map((function(e){return[e,c[e]]})));d.parent=d;const h=d;var g=new(function(){function e(){this.shouldUseMock=!0,this.initProxyWindow=this.initProxyWindow.bind(this),this.windowIsAvailable()?this.initProxyWindow():this.initMockWindow()}return e.prototype.windowIsAvailable=function(){try{return"undefined"!=typeof window}catch(e){return!1}},e.prototype.initProxyWindow=function(){var e={get:function(e,t){return p.has(t)&&this.shouldUseMock?p.get(t):e[t]}.bind(this),set:function(e,t,r){return Reflect.set(e,t,r)}},t=new Proxy(window,e),r={get:function(e,r){return t.proGalleryCustomProps.has(r)||"function"!=typeof t[r]?t[r]:t[r].bind(window)},set:function(e,r,o){return t.proGalleryCustomProps.add(r),Reflect.set(t,r,o)}};t.proGalleryCustomProps||(t.proGalleryCustomProps=new Set),this.window=new Proxy({},r)},e.prototype.initMockWindow=function(){this.window=h,this.window.mockInstanceId=Math.floor(1e5*Math.random())},e.prototype.stopUsingMock=function(){this.shouldUseMock=!1},Object.defineProperty(e.prototype,"shouldUseMock",{get:function(){return this._shouldUseMock},set:function(e){this._shouldUseMock=e},enumerable:!1,configurable:!0}),e}());const m=g.window},80295:(e,t,r)=>{"use strict";r.d(t,{I:()=>n,c:()=>i});var o=r(32669),i=function(){var e=this;this.promise=new Promise((function(t,r){e.reject=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];e.isPending=!1,r.apply(void 0,t)},e.resolve=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.isPending=!1,t.apply(void 0,r)},e.isPending=!0}))};function n(e){var t=e.container,r=e.scrollTop;try{var i=t.scrollBase<r+o.A.innerHeight,n=t.scrollBase+t.galleryHeight>r;return i&&n}catch(e){return console.warn("Could not calculate viewport",e),!0}}},75446:(e,t,r)=>{"use strict";r.d(t,{HC:()=>p,I2:()=>s,S:()=>c,iC:()=>a,u9:()=>u});var o=r(69143),i=r(77017),n=r(80295);function a(e){var t,r,n=e.scrollMarginCorrection,a=void 0===n?0:n,s=e.durationInMS,l=e.horizontalElement,u=e.scrollingElement,c=e.isRTL,p=e.scrollDirection,h=e.galleryWidth,g=e.galleryHeight,m=e.totalWidth,f=e.top,y=e.items,v=e.itemIdx,b=e.fixedScroll,S=e.slideTransition,P=e.isContinuousScrolling,w=e.autoSlideshowContinuousSpeed,C=e.imageMargin,E=c?-1:1;if(p===i.A.scrollDirection.HORIZONTAL?(r=l.scrollLeft*E,t=r+v*h/2):(r=f,t=f+v*g/2),!0!==b){o.A.isVerbose()&&console.log("Scrolling to items #"+v);var A=y.find((function(e){return e.idx===v}));if(t=p===i.A.scrollDirection.HORIZONTAL?o.A.get(A,"offset.left"):o.A.get(A,"offset.top"),o.A.isVerbose()&&console.log("Scrolling to position "+t,A),!(t>=0))return o.A.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(e){return e()}));if(p===i.A.scrollDirection.HORIZONTAL){var I=(h-A.width-C)/2;t-=I,t=Math.max(0,t),t=Math.min(t,m-h+a),t*=E,r*=E,o.A.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return p===i.A.scrollDirection.HORIZONTAL?d({scroller:l,from:Math.round(r),to:Math.round(t),duration:s,isRTL:c,slideTransition:S,isContinuousScrolling:P,autoSlideshowContinuousSpeed:w}):new Promise((function(e){u.vertical().scrollTo(0,t),e(t)}))}function s(e){var t,r,n=e.scrollMarginCorrection,a=void 0===n?0:n,s=e.durationInMS,l=e.horizontalElement,u=e.scrollingElement,c=e.isRTL,p=e.scrollDirection,h=e.galleryWidth,g=e.galleryHeight,m=e.totalWidth,f=e.top,y=e.groups,v=e.groupIdx,b=e.fixedScroll,S=e.slideTransition,P=e.isContinuousScrolling,w=e.autoSlideshowContinuousSpeed,C=e.imageMargin,E=c?-1:1;if(p===i.A.scrollDirection.HORIZONTAL&&l?(r=l.scrollLeft,t=r+v*h/2):(r=f,t=f+v*g/2),!0!==b){o.A.isVerbose()&&console.log("Scrolling to groups #"+v);var A=y.find((function(e){return e.idx===v}));if(t=p===i.A.scrollDirection.HORIZONTAL?o.A.get(A,"left"):o.A.get(A,"top"),o.A.isVerbose()&&console.log("Scrolling to position "+t,A),!(t>=0))return o.A.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(e){return e()}));if(p===i.A.scrollDirection.HORIZONTAL){var I=(h-A.width-C)/2;t-=I,t=Math.max(0,t),t=Math.min(t,m-h+a),t*=E,o.A.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return p===i.A.scrollDirection.HORIZONTAL?d({scroller:l,from:Math.round(r),to:Math.round(t),duration:s,isRTL:c,slideTransition:S,isContinuousScrolling:P,autoSlideshowContinuousSpeed:w}):new Promise((function(e){u.vertical().scrollTo(0,t),e(t)}))}function l(e){var t=e.offset,r=e.scroll,o=e.itemStart;return{before:r-t-e.itemEnd,after:t+o-e.screenSize-r}}function u(e){var t=e.target,r=e.scrollBase,o=e.top,i=e.bottom,n=e.screenHeight,a=e.padding,s=l({offset:r||0,scroll:t.scrollY,itemStart:o,itemEnd:i,screenSize:n});return s.before<a&&s.after<a}function c(e){var t=e.target,r=e.left,o=e.right,i=e.screenWidth,n=e.padding,a=l({offset:0,scroll:t.scrollLeft,itemStart:r,itemEnd:o,screenSize:i});return a.before<n&&a.after<n}function d(e){var t=e.scroller,r=e.from,o=e.to,i=e.duration,a=e.isRTL,s=e.slideTransition,l=e.isContinuousScrolling,u=e.autoSlideshowContinuousSpeed,c=o-r;if(0===c)return new Promise((function(e){return e(o)}));l&&(i=Math.abs(c)/u*1e3);var d=t.firstChild;t.setAttribute("data-scrolling","true"),Object.assign(t.style,{"scroll-snap-type":"none"}),Object.assign(d.style,{transition:"transform ".concat(i,"ms ").concat(s),"-webkit-transition":"transform ".concat(i,"ms ").concat(s)},{transform:"translateX(".concat(-1*c,"px)")});var p=new CustomEvent("scrollTransition",{detail:c/10}),h=setInterval((function(){t.dispatchEvent(p)}),Math.round(i/10)),g=new n.c,m=setTimeout((function(){clearInterval(h),Object.assign(d.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),t.style.removeProperty("scroll-snap-type"),t.scrollLeft=o,t.setAttribute("data-scrolling",""),g.resolve(o)}),i);return{scrollDeffered:g,scroller:t,from:r,to:o,duration:i,isRTL:a,slideTransition:s,isContinuousScrolling:l,autoSlideshowContinuousSpeed:u,currentScrollEndTimeout:m}}function p(e){var t=e.scroller,r=e.from,o=e.isRTL,i=e.currentScrollEndTimeout,a=e.scrollDeffered;clearTimeout(i);var s=t.firstChild,l=getComputedStyle(s).getPropertyValue("transform"),u=new DOMMatrix(l);(function(e){var t=e.scroller,r=e.at,o=e.isRTL;Object.assign(t.style,{"scroll-snap-type":"none"});var i=new n.c;Object.assign(t.firstChild.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),t.scrollLeft=r,i.resolve(r)})({scroller:t,at:r-=Math.round(parseInt(u.m41,10)),isRTL:o}),a.resolve(r)}},79566:(e,t,r)=>{"use strict";r.d(t,{Xe:()=>c,g4:()=>d,tF:()=>l});var o=r(98762),i=r(69143),n=r(32669),a=r(77017);function s(){return((0,o.PP)()||(0,o.Xf)())&&!i.A.isMobile()&&n.A.document}function l(e){var t=e.itemContainer,r=e.enableExperimentalFeatures,o=e.itemAnchor;s()&&r&&(n.A.document.activeElement===o&&t.focus())}function u(e,t){var r=n.A.document.activeElement;return String(r.className).includes(e)&&!!n.A.document.querySelector("#pro-gallery-".concat(t," #").concat(String(r.id)))}function c(e){var t=e.prevProps,r=e.currentProps,o=e.itemContainer;try{if(s()&&n.A.document.activeElement.className){var i=u("gallery-item-container",r.galleryId),a=u("show-more",r.galleryId);(i||a)&&(r.thumbnailHighlightId!==t.thumbnailHighlightId&&r.thumbnailHighlightId===r.id||r.activeIndex!==t.activeIndex&&r.activeIndex===r.idx)&&o.focus()}}catch(e){console.error("Could not set focus to active element",e)}}function d(e){return e.enableVideoPlaceholder&&(!i.A.isSingleItemHorizontalDisplay(e)||e.videoPlay!==a.A.videoPlay.AUTO)}},88538:e=>{var t,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:n}catch(e){r=n}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===n||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||u||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},40362:(e,t,r)=>{"use strict";var o=r(56441);function i(){}function n(){}n.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,n,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:i};return r.PropTypes=r,r}},62688:(e,t,r)=>{e.exports=r(40362)()},56441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},65832:(e,t)=>{"use strict";t.A=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},38299:(e,t)=>{"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,f=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,S=r?Symbol.for("react.scope"):60119;function P(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case d:case n:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case f:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return P(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=n,t.Lazy=f,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||P(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return P(e)===u},t.isContextProvider=function(e){return P(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return P(e)===p},t.isFragment=function(e){return P(e)===n},t.isLazy=function(e){return P(e)===f},t.isMemo=function(e){return P(e)===m},t.isPortal=function(e){return P(e)===i},t.isProfiler=function(e){return P(e)===s},t.isStrictMode=function(e){return P(e)===a},t.isSuspense=function(e){return P(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===s||e===a||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===S||e.$$typeof===y)},t.typeOf=P},84271:(e,t,r)=>{"use strict";e.exports=r(38299)},97126:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var o=r(60751);const i=Symbol.for(`react-redux-context-${o.version}`),n=globalThis;const a=new Proxy({},new Proxy({},{get(e,t){const r=function(){let e=n[i];return e||(e=(0,o.createContext)(null),n[i]=e),e}();return(e,...o)=>Reflect[t](r,...o)}}))},1524:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(60751),i=r.n(o),n=r(97126),a=r(14737),s=r(89911);const l=function({store:e,context:t,children:r,serverState:l,stabilityCheck:u="once",noopCheck:c="once"}){const d=(0,o.useMemo)((()=>{const t=(0,a.K)(e);return{store:e,subscription:t,getServerState:l?()=>l:void 0,stabilityCheck:u,noopCheck:c}}),[e,l,u,c]),p=(0,o.useMemo)((()=>e.getState()),[e]);(0,s.E)((()=>{const{subscription:t}=d;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),p!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[d,p]);const h=t||n.t;return i().createElement(h.Provider,{value:d},r)}},14935:(e,t,r)=>{"use strict";r.d(t,{A:()=>A,T:()=>P});var o=r(68102),i=r(49257),n=r(58486),a=r.n(n),s=r(60751),l=r.n(s),u=r(20661),c=r(80208),d=r(89436),p=r(49169),h=r(19015),g=r(14737),m=r(89911),f=r(93944),y=r(97126),v=r(19612);const b=["reactReduxForwardedRef"];let S=v.w;const P=e=>{S=e},w=[null,null];function C(e,t,r,o,i,n){e.current=o,r.current=!1,i.current&&(i.current=null,n())}function E(e,t){return e===t}const A=function(e,t,r,{pure:n,areStatesEqual:v=E,areOwnPropsEqual:P=f.A,areStatePropsEqual:A=f.A,areMergedPropsEqual:I=f.A,forwardRef:_=!1,context:T=y.t}={}){const O=T,x=(0,p.J)(e),N=(0,d.q)(t),L=(0,h.ne)(r),M=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:M,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:x,initMapDispatchToProps:N,initMergeProps:L,areStatesEqual:v,areStatePropsEqual:A,areOwnPropsEqual:P,areMergedPropsEqual:I};function d(t){const[r,a,d]=(0,s.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,r=(0,i.A)(t,b);return[t.context,e,r]}),[t]),p=(0,s.useMemo)((()=>r&&r.Consumer&&(0,u.isContextConsumer)(l().createElement(r.Consumer,null))?r:O),[r,O]),h=(0,s.useContext)(p),f=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),y=Boolean(h)&&Boolean(h.store);const v=f?t.store:h.store,P=y?h.getServerState:v.getState,E=(0,s.useMemo)((()=>(0,c.A)(v.dispatch,n)),[v]),[A,I]=(0,s.useMemo)((()=>{if(!M)return w;const e=(0,g.K)(v,f?void 0:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[v,f,h]),_=(0,s.useMemo)((()=>f?h:(0,o.A)({},h,{subscription:A})),[f,h,A]),T=(0,s.useRef)(),x=(0,s.useRef)(d),N=(0,s.useRef)(),L=(0,s.useRef)(!1),R=((0,s.useRef)(!1),(0,s.useRef)(!1)),k=(0,s.useRef)();(0,m.E)((()=>(R.current=!0,()=>{R.current=!1})),[]);const D=(0,s.useMemo)((()=>()=>N.current&&d===x.current?N.current:E(v.getState(),d)),[v,d]),B=(0,s.useMemo)((()=>e=>A?function(e,t,r,o,i,n,a,s,l,u,c){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!s.current)return;const e=t.getState();let r,h;try{r=o(e,i.current)}catch(e){h=e,p=e}h||(p=null),r===n.current?a.current||u():(n.current=r,l.current=r,a.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}(M,v,A,E,x,T,L,R,N,I,e):()=>{}),[A]);var H,V,F;let G;H=C,V=[x,T,L,d,N,I],(0,m.E)((()=>H(...V)),F);try{G=S(B,D,P?()=>E(P(),d):D)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}(0,m.E)((()=>{k.current=void 0,N.current=void 0,T.current=G}));const z=(0,s.useMemo)((()=>l().createElement(e,(0,o.A)({},G,{ref:a}))),[a,e,G]);return(0,s.useMemo)((()=>M?l().createElement(p.Provider,{value:_},z):z),[p,z,_])}const p=l().memo(d);if(p.WrappedComponent=e,p.displayName=d.displayName=r,_){const t=l().forwardRef((function(e,t){return l().createElement(p,(0,o.A)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,a()(t,e)}return a()(p,e)}}},81884:(e,t,r)=>{"use strict";function o(e,t){return(r,o)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}r.d(t,{i:()=>o})},89436:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});var o=r(71950),i=r(81884);function n(e){return e&&"object"==typeof e?(0,o.o6)((t=>function(e,t){const r={};for(const o in e){const i=e[o];"function"==typeof i&&(r[o]=(...e)=>t(i(...e)))}return r}(e,t))):e?"function"==typeof e?(0,o.Qb)(e,"mapDispatchToProps"):(0,i.i)(e,"mapDispatchToProps"):(0,o.o6)((e=>({dispatch:e})))}},49169:(e,t,r)=>{"use strict";r.d(t,{J:()=>n});var o=r(71950),i=r(81884);function n(e){return e?"function"==typeof e?(0,o.Qb)(e,"mapStateToProps"):(0,i.i)(e,"mapStateToProps"):(0,o.o6)((()=>({})))}},19015:(e,t,r)=>{"use strict";r.d(t,{ne:()=>a});var o=r(68102),i=r(81884);function n(e,t,r){return(0,o.A)({},r,e,t)}function a(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:o}){let i,n=!1;return function(t,r,a){const s=e(t,r,a);return n?o(s,i)||(i=s):(n=!0,i=s),i}}}(e):(0,i.i)(e,"mergeProps"):()=>n}},80208:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(49257);const i=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function n(e,t,r,o,{areStatesEqual:i,areOwnPropsEqual:n,areStatePropsEqual:a}){let s,l,u,c,d,p=!1;function h(p,h){const g=!n(h,l),m=!i(p,s,h,l);return s=p,l=h,g&&m?(u=e(s,l),t.dependsOnOwnProps&&(c=t(o,l)),d=r(u,c,l),d):g?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(o,l)),d=r(u,c,l),d):m?function(){const t=e(s,l),o=!a(t,u);return u=t,o&&(d=r(u,c,l)),d}():d}return function(i,n){return p?h(i,n):(s=i,l=n,u=e(s,l),c=t(o,l),d=r(u,c,l),p=!0,d)}}function a(e,t){let{initMapStateToProps:r,initMapDispatchToProps:a,initMergeProps:s}=t,l=(0,o.A)(t,i);return n(r(e,l),a(e,l),s(e,l),e,l)}},71950:(e,t,r)=>{"use strict";function o(e){return function(t){const r=e(t);function o(){return r}return o.dependsOnOwnProps=!1,o}}function i(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function n(e,t){return function(t,{displayName:r}){const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,r){o.mapToProps=e,o.dependsOnOwnProps=i(e);let n=o(t,r);return"function"==typeof n&&(o.mapToProps=n,o.dependsOnOwnProps=i(n),n=o(t,r)),n},o}}r.d(t,{Qb:()=>n,o6:()=>o})},14111:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>o.A,Ng:()=>i.A,d4:()=>n.d4});var o=r(1524),i=r(14935),n=(r(97126),r(47886),r(71825));r(70495)},47886:(e,t,r)=>{"use strict";r(97126),r(70495)},58597:(e,t,r)=>{"use strict";r.d(t,{b:()=>n,n:()=>a});var o=r(60751),i=r(97126);function n(e=i.t){return function(){return(0,o.useContext)(e)}}const a=n()},71825:(e,t,r)=>{"use strict";r.d(t,{d4:()=>c,ld:()=>s});var o=r(60751),i=r(58597),n=r(97126);let a=r(19612).w;const s=e=>{a=e},l=(e,t)=>e===t;function u(e=n.t){const t=e===n.t?i.n:(0,i.b)(e);return function(e,r={}){const{equalityFn:i=l,stabilityCheck:n,noopCheck:s}="function"==typeof r?{equalityFn:r}:r;const{store:u,subscription:c,getServerState:d,stabilityCheck:p,noopCheck:h}=t(),g=((0,o.useRef)(!0),(0,o.useCallback)({[e.name]:t=>e(t)}[e.name],[e,p,n])),m=a(c.addNestedSub,u.getState,d||u.getState,g,i);return(0,o.useDebugValue)(m),m}}const c=u()},70495:(e,t,r)=>{"use strict";r(97126),r(58597)},51808:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>u.Kq,Ng:()=>u.Ng,d4:()=>u.d4});var o=r(43676),i=r(95390),n=r(85920),a=r(87990),s=r(71825),l=r(14935),u=r(14111);(0,s.ld)(i.useSyncExternalStoreWithSelector),(0,l.T)(o.useSyncExternalStore),(0,a.d)(n.r)},14737:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});var o=r(87990);const i={notify(){},get:()=>[]};function n(e,t){let r,n=i;function a(){l.onStateChange&&l.onStateChange()}function s(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=function(){const e=(0,o.f)();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let o=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){o&&null!==t&&(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}const l={addNestedSub:function(e){return s(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(r)},trySubscribe:s,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=i)},getListeners:()=>n};return l}},87990:(e,t,r)=>{"use strict";r.d(t,{d:()=>i,f:()=>n});let o=function(e){e()};const i=e=>o=e,n=()=>o},85920:(e,t,r)=>{"use strict";r.d(t,{r:()=>o.unstable_batchedUpdates});var o=r(83202)},93944:(e,t,r)=>{"use strict";function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function i(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!o(e[r[i]],t[r[i]]))return!1;return!0}r.d(t,{A:()=>i})},89911:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var o=r(60751);const i=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?o.useLayoutEffect:o.useEffect},19612:(e,t,r)=>{"use strict";r.d(t,{w:()=>o});const o=()=>{throw new Error("uSES not initialized!")}},15577:(e,t)=>{"use strict";var r,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");
/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case n:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case g:case l:return e;default:return t}}case i:return t}}}r=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return y(e)===u}},20661:(e,t,r)=>{"use strict";e.exports=r(15577)},20446:(e,t,r)=>{"use strict";r.d(t,{UI:()=>n});var o="NOT_FOUND";var i=function(e,t){return e===t};function n(e,t){var r,n,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=void 0===s?i:s,u=a.maxSize,c=void 0===u?1:u,d=a.resultEqualityCheck,p=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var o=t.length,i=0;i<o;i++)if(!e(t[i],r[i]))return!1;return!0}}(l),h=1===c?(r=p,{get:function(e){return n&&r(n.key,e)?n.value:o},put:function(e,t){n={key:e,value:t}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}):function(e,t){var r=[];function i(e){var i=r.findIndex((function(r){return t(e,r.key)}));if(i>-1){var n=r[i];return i>0&&(r.splice(i,1),r.unshift(n)),n.value}return o}return{get:i,put:function(t,n){i(t)===o&&(r.unshift({key:t,value:n}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(c,p);function g(){var t=h.get(arguments);if(t===o){if(t=e.apply(null,arguments),d){var r=h.getEntries().find((function(e){return d(e.value,t)}));r&&(t=r.value)}h.put(arguments,t)}return t}return g.clearCache=function(){return h.clear()},g}},24885:(e,t,r)=>{"use strict";function o(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var n,a=0,s={memoizeOptions:void 0},l=o.pop();if("object"==typeof l&&(s=l,l=o.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var u=s.memoizeOptions,c=void 0===u?r:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var r=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}(o),h=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),g=e((function(){for(var e=[],t=p.length,r=0;r<t;r++)e.push(p[r].apply(null,arguments));return n=h.apply(null,e)}));return Object.assign(g,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return n},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),g}}r.d(t,{Ad:()=>o,Mz:()=>i});var i=o(r(20446).UI)},56852:(e,t,r)=>{"use strict";var o=r(75199),i=Array.prototype.concat,n=Array.prototype.slice,a=e.exports=function(e){for(var t=[],r=0,a=e.length;r<a;r++){var s=e[r];o(s)?t=i.call(t,n.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},78779:(e,t,r)=>{"use strict";
/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o=r(60751);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=o.useState,a=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=n({inst:{value:r,getSnapshot:t}}),i=o[0].inst,c=o[1];return s((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),a((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:c},57320:(e,t,r)=>{"use strict";
/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o=r(60751),i=r(43676);var n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=o.useRef,l=o.useEffect,u=o.useMemo,c=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,i){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=u((function(){function e(e){if(!l){if(l=!0,a=e,e=o(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return s=t}return s=e}if(t=s,n(a,e))return t;var r=o(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,o,i]);var h=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),c(h),h}},43676:(e,t,r)=>{"use strict";e.exports=r(78779)},95390:(e,t,r)=>{"use strict";e.exports=r(57320)},43425:t=>{"use strict";t.exports=e},60751:e=>{"use strict";e.exports=t},83202:e=>{"use strict";e.exports=r},16252:e=>{"use strict";e.exports=o},85707:(e,t,r)=>{var o=r(45498);e.exports=function(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},78304:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},11327:(e,t,r)=>{var o=r(10564).default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},45498:(e,t,r)=>{var o=r(10564).default,i=r(11327);e.exports=function(e){var t=i(e,"string");return"symbol"==o(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},10564:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4452:(e,t)=>{var r;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,n(r)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)o.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},17451:(e,t,r)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}r.d(t,{A:()=>o})},47919:(e,t,r)=>{"use strict";function o(e){if(Array.isArray(e))return e}r.d(t,{A:()=>o})},72367:(e,t,r)=>{"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>o})},92099:(e,t,r)=>{"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>o})},48183:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(80092);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,o.A)(i.key),i)}}function n(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},41705:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(80092);function i(e,t,r){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},68102:(e,t,r)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},o.apply(null,arguments)}r.d(t,{A:()=>o})},51449:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(91576);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,o.A)(e,t)}},17720:(e,t,r)=>{"use strict";function o(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,n,a,s=[],l=!0,u=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=n.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}r.d(t,{A:()=>o})},52772:(e,t,r)=>{"use strict";function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>o})},49257:(e,t,r)=>{"use strict";function o(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}r.d(t,{A:()=>o})},91576:(e,t,r)=>{"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}r.d(t,{A:()=>o})},10911:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(47919),i=r(17720),n=r(16438),a=r(52772);function s(e,t){return(0,o.A)(e)||(0,i.A)(e,t)||(0,n.A)(e,t)||(0,a.A)()}},51417:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(40694);function i(e,t){if("object"!=(0,o.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,o.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},80092:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(40694),i=r(51417);function n(e){var t=(0,i.A)(e,"string");return"symbol"==(0,o.A)(t)?t:t+""}},40694:(e,t,r)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(t,{A:()=>o})},16438:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(17451);function i(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,o.A)(e,t):void 0}}},34629:(e,t,r)=>{"use strict";r.d(t,{__assign:()=>n,__awaiter:()=>s,__extends:()=>i,__generator:()=>l,__rest:()=>a,__spreadArray:()=>c,__values:()=>u});var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function a(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]])}return r}function s(e,t,r,o){return new(r||(r=Promise))((function(i,n){function a(e){try{l(o.next(e))}catch(e){n(e)}}function s(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function l(e,t){var r,o,i,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(n=0)),n;)try{if(r=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,o=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(i=n.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){n=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(6===s[0]&&n.label<i[1]){n.label=i[1],i=s;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(s);break}i[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],o=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function u(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t,r){if(r||2===arguments.length)for(var o,i=0,n=t.length;i<n;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={id:e,loaded:!1,exports:{}};return l[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}return c.m=l,c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);c.r(r);var o={};i=i||[null,n({}),n([]),n(n)];for(var a=2&t&&e;"object"==typeof a&&!~i.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,c.d(r,o),r},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,r)=>(c.f[r](e,t),t)),[])),c.u=e=>"client-viewer/"+({2042:"reactPlayerTwitch",2723:"reactPlayerMux",2749:"proGallery_reactPlayer",3051:"proGallery_HlsPlayer",3392:"reactPlayerVidyard",4287:"post-actions",4313:"proGallery_videoScrollHelper",4367:"proGallery_videoItem",6173:"reactPlayerVimeo",6328:"reactPlayerDailyMotion",6353:"reactPlayerPreview",6463:"reactPlayerKaltura",6887:"reactPlayerFacebook",7458:"reactPlayerFilePlayer",7570:"reactPlayerMixcloud",7627:"reactPlayerStreamable",8446:"reactPlayerYouTube",8638:"proGallery_validateTypes",9340:"reactPlayerWistia",9896:"proGallery_vimeoPlayer",9979:"reactPlayerSoundCloud"}[e]||e)+".chunk.min.js",c.miniCssF=e=>"client-viewer/post-actions.chunk.min.css",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a={},s="_wix_communities_blog_ooi:",c.l=(e,t,r,o)=>{if(a[e])a[e].push(t);else{var i,n;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==s+r){i=d;break}}i||(n=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",s+r),i.src=e,0!==i.src.indexOf(window.location.origin+"/")&&(i.crossOrigin="anonymous")),a[e]=[t];var p=(t,r)=>{i.onerror=i.onload=null,clearTimeout(h);var o=a[e];if(delete a[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(r))),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),n&&document.head.appendChild(i)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.j=6971,function(e){var t="-",r="--",o="---";function i(e,i,n){return!1===n||null==n||n!=n?"":!0===n?function(e,t){return e+r+t}(e,i):function(e,r,i){return e+o+r+t+i.length+t+i.replace(/\s/gm,"_")}(e,i,n.toString())}(e=e||{}).sts=function(e){for(var t=[],r=1;r<arguments.length;r++){var o=arguments[r];if(o)if("string"==typeof o)t[t.length]=o;else if(2===r)for(var n in o){var a=i(e,n,o[n]);a&&(t[t.length]=a)}}return t.join(" ")},e.stc=function(e,t){var r=[];for(var o in t){var n=i(e,o,t[o]);n&&r.push(n)}return r.join(" ")}}(c),c.p="https://static.parastorage.com/services/communities-blog-ooi/a3947cd0c231ecbf8fbc8ae8970a39f2470179b0968a47053590f909/",(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var o=c.miniCssF(e),i=c.p+o;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var i=(a=r[o]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var n=document.getElementsByTagName("style");for(o=0;o<n.length;o++){var a;if((i=(a=n[o]).getAttribute("data-href"))===e||i===t)return a}})(o,i))return t();((e,t,r,o,i)=>{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.onerror=n.onload=r=>{if(n.onerror=n.onload=null,"load"===r.type)o();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,n.parentNode&&n.parentNode.removeChild(n),i(l)}},n.href=t,0!==n.href.indexOf(window.location.origin+"/")&&(n.crossOrigin="anonymous"),r?r.parentNode.insertBefore(n,r.nextSibling):document.head.appendChild(n)})(e,i,null,t,r)})),t={6971:0,9143:0};c.f.miniCss=(r,o)=>{t[r]?o.push(t[r]):0!==t[r]&&{4287:1}[r]&&o.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={6971:0,9143:0};c.f.j=(t,r)=>{var o=c.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise(((r,i)=>o=e[t]=[r,i]));r.push(o[2]=i);var n=c.p+c.u(t),a=new Error;c.l(n,(r=>{if(c.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+n+")",a.name="ChunkLoadError",a.type=i,a.request=n,o[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,[n,a,s]=r,l=0;if(n.some((t=>0!==e[t]))){for(o in a)c.o(a,o)&&(c.m[o]=a[o]);if(s)s(c)}for(t&&t(r);l<n.length;l++)i=n[l],c.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi=("undefined"!=typeof self?self:this).webpackJsonp__wix_communities_blog_ooi||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),c(78282)})()));
//# sourceMappingURL=PostListViewerWidgetNoCss.bundle.min.js.map