(("undefined"!=typeof self?self:this).webpackJsonp__wix_form_app=("undefined"!=typeof self?self:this).webpackJsonp__wix_form_app||[]).push([[256],{3274:(e,t,n)=>{var o={"./messages_ar.json":[94886,1247],"./messages_bg.json":[64598,7474],"./messages_ca.json":[84318,3845],"./messages_cs.json":[7289,8264],"./messages_da.json":[95285,9618],"./messages_de.json":[66988,1957],"./messages_el.json":[30287,9661],"./messages_en.json":[20378,3714],"./messages_es.json":[77161,6897],"./messages_fi.json":[39780,220],"./messages_fr.json":[94106,3588],"./messages_he.json":[66500,8790],"./messages_hi.json":[97353,8081],"./messages_hr.json":[92779,3903],"./messages_hu.json":[72408,7424],"./messages_id.json":[74332,8589],"./messages_it.json":[2789,2032],"./messages_ja.json":[29184,6305],"./messages_ko.json":[26054,564],"./messages_lt.json":[45955,9315],"./messages_lv.json":[23051,3601],"./messages_ms.json":[88382,184],"./messages_nl.json":[97320,7817],"./messages_no.json":[517,2437],"./messages_pl.json":[80291,6753],"./messages_pt.json":[80217,6147],"./messages_ro.json":[20739,9497],"./messages_ru.json":[66001,5062],"./messages_sk.json":[18230,2045],"./messages_sl.json":[30940,793],"./messages_sv.json":[36304,6718],"./messages_th.json":[16527,3178],"./messages_tl.json":[70280,978],"./messages_tr.json":[22338,9882],"./messages_uk.json":[35209,962],"./messages_vi.json":[18728,7268],"./messages_zh.json":[81199,7106]};function r(e){if(!n.o(o,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=o[e],r=t[0];return n.e(t[1]).then(()=>n.t(r,17))}r.keys=()=>Object.keys(o),r.id=3274,e.exports=r},89447:function(e){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t,n){"use strict";var o={JPG:"jpg",JPEG:"jpeg",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",UNRECOGNIZED:"unrecognized"},r=[o.JPG,o.JPEG,o.PNG,o.GIF,o.WEBP];e.exports={alignTypes:{CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},alignTypesMap:{center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},transformTypes:{FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},fittingTypes:{SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},htmlTag:{BG:"bg",IMG:"img",SVG:"svg"},upscaleMethods:{AUTO:"auto",CLASSIC:"classic",SUPER:"super"},upscaleMethodsValues:{classic:1,super:2},defaultUSM:{radius:.66,amount:1,threshold:.01},emptyData:{uri:"",css:{img:{},container:{}},attr:{img:{},container:{}}},imageQuality:{HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},imageFilters:{CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},imageScaleDefaults:{HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},fileType:o,supportedExtensions:r,webp:{LOSSLESS:"lossless",LOSSY:"lossy",ALPHA:"alpha",ANIMATION:"animation"},SAFE_TRANSFORMED_AREA:25e6,SUPER_UPSCALE_MODELS:[1.5,2,4],MAX_DEVICE_PIXEL_RATIO:2,API_VERSION:"v1"}},function(e,t,n){"use strict";var o=n(2),r=n(0),i=n(4);function a(e){var t=new window.Image;t.onload=function(){var n=i.getFeature("isWEBP");n[e]=t.width>0&&t.height>0,i.setFeature("isWEBP",n)},t.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[e]}function s(e){var t=[r.fileType.PNG,r.fileType.JPEG,r.fileType.JPG,r.fileType.WIX_ICO_MP,r.fileType.WIX_MP];return o.includes(t,d(e))}function l(e){return o.includes(["webp"],d(e))}function c(e){return/(^https?)|(^data)|(^\/\/)/.test(e)}function d(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function u(e,t,n,o,i){return i===r.transformTypes.FILL?function(e,t,n,o){return Math.max(n/e,o/t)}(e,t,n,o):i===r.transformTypes.FIT?function(e,t,n,o){return Math.min(n/e,o/t)}(e,t,n,o):1}function p(e,t){var n=g(e,t);return{optimizedScaleFactor:r.imageScaleDefaults[n].maxUpscale,upscaleMethodValue:r.upscaleMethodsValues.classic,forceUSM:!1}}function m(e,t){var n=g(e,t);return{optimizedScaleFactor:r.imageScaleDefaults[n].maxUpscale,upscaleMethodValue:r.upscaleMethodsValues.classic,forceUSM:!1}}function h(e,t,n){return{optimizedScaleFactor:o.last(r.SUPER_UPSCALE_MODELS),upscaleMethodValue:r.upscaleMethodsValues.super,forceUSM:!(r.SUPER_UPSCALE_MODELS.includes(n)||n>o.last(r.SUPER_UPSCALE_MODELS))}}function g(e,t){var n=e*t;return n>r.imageScaleDefaults[r.imageQuality.HIGH].size?r.imageQuality.HIGH:n>r.imageScaleDefaults[r.imageQuality.MEDIUM].size?r.imageQuality.MEDIUM:n>r.imageScaleDefaults[r.imageQuality.LOW].size?r.imageQuality.LOW:r.imageQuality.TINY}function _(e,t){var n=Math.pow(10,t||0);return(e*n/n).toFixed(parseInt(t,10))}e.exports={populateGlobalFeatureSupport:function(){"undefined"!=typeof window&&(a(r.webp.LOSSY),a(r.webp.LOSSLESS),a(r.webp.ALPHA),a(r.webp.ANIMATION),i.setFeature("isObjectFitBrowser","objectFit"in window.document.documentElement.style))},isWEBPBrowserSupport:function(e){var t=i.getFeature("isWEBP"),n=e===r.fileType.JPG&&t[r.webp.LOSSY],o=e===r.fileType.PNG&&t[r.webp.LOSSLESS],a=e===r.fileType.PNG&&t[r.webp.ALPHA];return n||o&&a},isObjectFitBrowserSupport:function(){return i.getFeature("isObjectFitBrowser")},isImageTransformApplicable:function(e){return s(e)&&!c(e)},isValidRequest:function(e,t,n){return n&&t&&!(!(i=t.id)||!i.trim()||"none"===i.toLowerCase())&&o.includes(r.fittingTypes,e);var i},isImageTypeSupported:s,isExternalUrl:c,isWEBP:l,getFileType:function(e){return function(e){return o.includes(["jpg","jpeg"],d(e))}(e)?r.fileType.JPG:function(e){return o.includes(["png"],d(e))}(e)?r.fileType.PNG:l(e)?r.fileType.WEBP:r.fileType.UNRECOGNIZED},getFileExtension:d,getFileName:function(e,t){var n=/\.([^.]*)$/;if("string"==typeof t&&t.length){var i=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),a=new RegExp("("+i.concat(["\\.","\\*"]).join("|")+")","g"),s=t,l=t.match(n);return l&&o.includes(r.supportedExtensions,l[1])&&(s=t.replace(n,"")),encodeURIComponent(s).replace(a,"_")}var c=e.match(/\/(.*?)$/);return(c?c[1]:e).replace(n,"")},getAlignedRect:function(e,t,n){var o=void 0,i=void 0;switch(n){case r.alignTypes.CENTER:o=Math.max(0,(e.width-t.width)/2),i=Math.max(0,(e.height-t.height)/2);break;case r.alignTypes.TOP:o=Math.max(0,(e.width-t.width)/2),i=0;break;case r.alignTypes.TOP_LEFT:o=0,i=0;break;case r.alignTypes.TOP_RIGHT:o=Math.max(0,e.width-t.width),i=0;break;case r.alignTypes.BOTTOM:o=Math.max(0,(e.width-t.width)/2),i=Math.max(0,e.height-t.height);break;case r.alignTypes.BOTTOM_LEFT:o=0,i=Math.max(0,e.height-t.height);break;case r.alignTypes.BOTTOM_RIGHT:o=Math.max(0,e.width-t.width),i=Math.max(0,e.height-t.height);break;case r.alignTypes.LEFT:o=0,i=Math.max(0,(e.height-t.height)/2);break;case r.alignTypes.RIGHT:o=Math.max(0,e.width-t.width),i=Math.max(0,(e.height-t.height)/2)}return{x:e.x?e.x+o:o,y:e.y?e.y+i:i,width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}},getOverlappingRect:function(e,t){var n=Math.max(0,Math.min(e.width,t.x+t.width)-Math.max(0,t.x)),o=Math.max(0,Math.min(e.height,t.y+t.height)-Math.max(0,t.y));return n&&o&&(e.width!==n||e.height!==o)?{x:Math.max(0,t.x),y:Math.max(0,t.y),width:n,height:o}:null},getScaleFactor:u,getTransformData:function(e,t,n,o,i){e=e||n.width,t=t||n.height;var a=function(e){return Math.min(e.pixelAspectRatio||1,r.MAX_DEVICE_PIXEL_RATIO)}(n),s=function(e,t,n,o,i){var a=void 0,s=void 0,l=void 0;if(a=u(e,t,n,o,i),i===r.transformTypes.FILL?(s=n,l=o):i===r.transformTypes.FIT&&(s=e*a,l=t*a),s*l>r.SAFE_TRANSFORMED_AREA){var c=Math.sqrt(r.SAFE_TRANSFORMED_AREA/(s*l));a=u(e,t,s*=c,l*=c,i)}return{scaleFactor:a,width:s,height:l}}(e,t,n.width*a,n.height*a,o),l=s.scaleFactor;return function(e,t,n,o,i,a,s){var l=function(e,t,n,o){return{classic:p,auto:m,super:h}[o](e,t,n)}(e,t,a,i),c=l.optimizedScaleFactor,d=l.upscaleMethodValue,u=l.forceUSM;if(a<=c)return{width:n,height:o,scaleFactor:a,upscaleMethodValue:d,forceUSM:u,cssUpscaleNeeded:!1};var g=void 0,_=void 0;switch(s){case r.transformTypes.FILL:g=n*(c/a),_=o*(c/a);break;case r.transformTypes.FIT:g=e*c,_=t*c}return{width:g,height:_,scaleFactor:c,upscaleMethodValue:d,forceUSM:u,cssUpscaleNeeded:!0}}(e,t,s.width,s.height,i,l,o)},getAlignment:function(e){return r.alignTypesMap[e.alignment]||r.alignTypesMap[r.alignTypes.CENTER]},getPreferredImageQuality:function(e,t){return r.imageScaleDefaults[g(e,t)].quality},getDimension:function(e,t,n,o,r){var i=u(e,t,n,o,r);return{width:Math.round(e*i),height:Math.round(t*i)}},getFocalPoint:function(e){var t=null;return"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:_(Math.max(0,Math.min(100,e.x))/100,2),y:_(Math.max(0,Math.min(100,e.y))/100,2)}),t},getUpscaleString:function(e){return e&&e.upscaleMethod&&"string"==typeof e.upscaleMethod&&r.upscaleMethods[e.upscaleMethod.toUpperCase()]||r.upscaleMethods.AUTO},roundToFixed:_}},function(e,t,n){"use strict";var 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};e.exports={assign:function(){for(var e=arguments[0]||{},t=Array.prototype.slice.call(arguments,1,arguments.length),n=0;n-1:!(!e||"object"!==(void 0===e?"undefined":o(e)))&&Object.keys(e).some(function(n){return e[n]===t})},last:function(e){return e[e.length-1]},template:function(e){return function(t){var n=e;for(var o in t)t.hasOwnProperty(o)&&(n=n.replace(new RegExp("\\${"+o+"}","g"),t[o]));return n}}}},function(e,t,n){"use strict";var o=n(1),r=n(5),i=n(6);e.exports=function(e,t,n,a){var s=o.getFileType(t.id),l={fileName:o.getFileName(t.id,t.name),fileExtension:o.getFileExtension(t.id),fileType:s,isWEBPSupport:o.isWEBPBrowserSupport(s),fittingType:e,src:{id:t.id,width:t.width,height:t.height,isCropped:!1},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],quality:0,upscaleMethod:o.getUpscaleString(a),progressive:!0,watermark:"",unsharpMask:{},filters:{}};return o.isImageTransformApplicable(t.id)&&(r.setTransformParts(l,t,n),i.setTransformOptions(l,a)),l}},function(e,t,n){"use strict";var o={isWEBP:{lossless:!1,lossy:!1,alpha:!1,animation:!1},isObjectFitBrowser:!0};e.exports={getFeature:function(e){return o[e]},setFeature:function(e,t){o[e]=t}}},function(e,t,n){"use strict";var o=n(2),r=n(0),i=n(1);function a(e,t){var n=i.getTransformData(e.src.width,e.src.height,t,r.transformTypes.FIT,e.upscaleMethod);return{transformType:r.transformTypes.FILL,width:Math.round(n.width),height:Math.round(n.height),alignment:r.alignTypesMap.center,upscale:n.scaleFactor>1,forceUSM:n.forceUSM,scaleFactor:n.scaleFactor,cssUpscaleNeeded:n.cssUpscaleNeeded,upscaleMethodValue:n.upscaleMethodValue}}function s(e){return{transformType:r.transformTypes.CROP,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}e.exports={setTransformParts:function(e,t,n){var l=void 0;switch(t.crop&&(l=i.getOverlappingRect(t,t.crop))&&(e.src.width=l.width,e.src.height=l.height,e.src.cropped=!0,e.parts.push(s(l))),e.fittingType){case r.fittingTypes.SCALE_TO_FIT:case r.fittingTypes.LEGACY_FIT_WIDTH:case r.fittingTypes.LEGACY_FIT_HEIGHT:case r.fittingTypes.LEGACY_FULL:case r.fittingTypes.FIT_AND_TILE:case r.fittingTypes.LEGACY_BG_FIT_AND_TILE:case r.fittingTypes.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case r.fittingTypes.LEGACY_BG_FIT_AND_TILE_VERTICAL:case r.fittingTypes.LEGACY_BG_NORMAL:e.parts.push(a(e,n));break;case r.fittingTypes.SCALE_TO_FILL:e.parts.push(function(e,t){var n=i.getTransformData(e.src.width,e.src.height,t,r.transformTypes.FILL,e.upscaleMethod),o=i.getFocalPoint(e.focalPoint);return{transformType:o?r.transformTypes.FILL_FOCAL:r.transformTypes.FILL,width:Math.round(n.width),height:Math.round(n.height),alignment:i.getAlignment(t),focalPointX:o&&o.x,focalPointY:o&&o.y,upscale:n.scaleFactor>1,forceUSM:n.forceUSM,scaleFactor:n.scaleFactor,cssUpscaleNeeded:n.cssUpscaleNeeded,upscaleMethodValue:n.upscaleMethodValue}}(e,n));break;case r.fittingTypes.STRETCH:e.parts.push(function(e,t){var n=i.getScaleFactor(e.src.width,e.src.height,t.width,t.height,r.transformTypes.FILL),s=o.assign({},t);return s.width=e.src.width*n,s.height=e.src.height*n,a(e,s)}(e,n));break;case r.fittingTypes.TILE_HORIZONTAL:case r.fittingTypes.TILE_VERTICAL:case r.fittingTypes.TILE:case r.fittingTypes.LEGACY_ORIGINAL_SIZE:case r.fittingTypes.ORIGINAL_SIZE:l=i.getAlignedRect(e.src,n,n.alignment),e.src.isCropped?(o.assign(e.parts[0],l),e.src.width=l.width,e.src.height=l.height):e.parts.push(s(l));break;case r.fittingTypes.LEGACY_STRIP_TILE_HORIZONTAL:case r.fittingTypes.LEGACY_STRIP_TILE_VERTICAL:case r.fittingTypes.LEGACY_STRIP_TILE:case r.fittingTypes.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:r.transformTypes.LEGACY_CROP,width:Math.round(e.width),height:Math.round(e.height),alignment:i.getAlignment(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(n));break;case r.fittingTypes.LEGACY_STRIP_SCALE_TO_FIT:case r.fittingTypes.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:r.transformTypes.FIT,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(n));break;case r.fittingTypes.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:r.transformTypes.LEGACY_FILL,width:Math.round(e.width),height:Math.round(e.height),alignment:i.getAlignment(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(n))}}}},function(e,t,n){"use strict";var o=n(2),r=n(0),i=n(1);function a(e,t,n){return!isNaN(e)&&"number"==typeof e&&0!==e&&e>=t&&e<=n}e.exports={setTransformOptions:function(e,t){t=t||{},e.quality=function(e,t){var n=o.last(e.parts),r=i.getPreferredImageQuality(n.width,n.height),a=t.quality&&t.quality>=5&&t.quality<=90?t.quality:r;return parseInt(a,10)}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.unsharpMask=function(e,t){var n=void 0;return function(e){e=e||{};var t=!isNaN(e.radius)&&"number"==typeof e.radius&&e.radius>=.1&&e.radius<=500,n=!isNaN(e.amount)&&"number"==typeof e.amount&&e.amount>=0&&e.amount<=10,o=!isNaN(e.threshold)&&"number"==typeof e.threshold&&e.threshold>=0&&e.threshold<=255;return t&&n&&o}(t.unsharpMask)?n={radius:t.unsharpMask.radius,amount:t.unsharpMask.amount,threshold:t.unsharpMask.threshold}:function(e){return e=e||{},!isNaN(e.radius)&&"number"==typeof e.radius&&0===e.radius&&!isNaN(e.amount)&&"number"==typeof e.amount&&0===e.amount&&!isNaN(e.threshold)&&"number"==typeof e.threshold&&0===e.threshold}(t.unsharpMask)||function(e){var t=o.last(e.parts);return!(t.scaleFactor>=1)||t.forceUSM}(e)&&(n=r.defaultUSM),n&&(n.radius=i.roundToFixed(n.radius,2),n.amount=i.roundToFixed(n.amount,2),n.threshold=i.roundToFixed(n.threshold,2)),n}(e,t),e.filters=function(e){var t=e.filters||{},n={};return a(t[r.imageFilters.CONTRAST],-100,100)&&(n[r.imageFilters.CONTRAST]=t[r.imageFilters.CONTRAST]),a(t[r.imageFilters.BRIGHTNESS],-100,100)&&(n[r.imageFilters.BRIGHTNESS]=t[r.imageFilters.BRIGHTNESS]),a(t[r.imageFilters.SATURATION],-100,100)&&(n[r.imageFilters.SATURATION]=t[r.imageFilters.SATURATION]),a(t[r.imageFilters.HUE],-180,180)&&(n[r.imageFilters.HUE]=t[r.imageFilters.HUE]),a(t[r.imageFilters.BLUR],0,100)&&(n[r.imageFilters.BLUR]=t[r.imageFilters.BLUR]),n}(t)}}},function(e,t,n){"use strict";var o=n(0),r=n(1),i=n(8),a=n(3);e.exports=function(e,t,n,s,l){var c=o.emptyData.uri;return r.isImageTransformApplicable(t.id)?(l=l||a(e,t,n,s,l),c=i.getImageURI(l)):c=t.id,c}},function(e,t,n){"use strict";var o,r=n(2),i=n(0),a=r.template("fit/w_${width},h_${height}"),s=r.template("fill/w_${width},h_${height},al_${alignment}"),l=r.template("fill/w_${width},h_${height},fp_${focalPointX}_${focalPointY}"),c=r.template("crop/x_${x},y_${y},w_${width},h_${height}"),d=r.template("crop/w_${width},h_${height},al_${alignment}"),u=r.template("fill/w_${width},h_${height},al_${alignment}"),p=r.template(",lg_${upscaleMethodValue}"),m=r.template(",q_${quality}"),h=r.template(",usm_${radius}_${amount}_${threshold}"),g=r.template(",bl"),_=r.template(",wm_${watermark}"),f=((o={})[i.imageFilters.CONTRAST]=r.template(",con_${contrast}"),o[i.imageFilters.BRIGHTNESS]=r.template(",br_${brightness}"),o[i.imageFilters.SATURATION]=r.template(",sat_${saturation}"),o[i.imageFilters.HUE]=r.template(",hue_${hue}"),o[i.imageFilters.BLUR]=r.template(",blur_${blur}"),o);e.exports={getImageURI:function(e){var t=[];e.parts.forEach(function(e){switch(e.transformType){case i.transformTypes.CROP:t.push(c(e));break;case i.transformTypes.LEGACY_CROP:t.push(d(e));break;case i.transformTypes.LEGACY_FILL:var n=u(e);e.upscale&&(n+=p(e)),t.push(n);break;case i.transformTypes.FIT:var o=a(e);e.upscale&&(o+=p(e)),t.push(o);break;case i.transformTypes.FILL:var r=s(e);e.upscale&&(r+=p(e)),t.push(r);break;case i.transformTypes.FILL_FOCAL:var m=l(e);e.upscale&&(m+=p(e)),t.push(m)}});var n=t.join("/");return(e.fileType===i.fileType.PNG&&e.isWEBPSupport||e.fileType===i.fileType.JPG)&&(n+=m(e)),e.unsharpMask&&(n+=h(e.unsharpMask)),e.progressive||(n+=g(e)),e.watermark&&(n+=_(e)),e.filters&&(n+=Object.keys(e.filters).map(function(t){return f[t](e.filters)}).join("")),e.src.id+"/"+i.API_VERSION+"/"+n+"/"+e.fileName+"."+(e.isWEBPSupport?"webp":e.fileExtension)}}},,,,,,,function(e,t,n){"use strict";var o=n(16),r=n(0);o.populateGlobalFeatureSupport();var i="https://static.wixstatic.com/",a="https://static.wixstatic.com/media/",s=/^media\//i,l="undefined"!=typeof window?window.devicePixelRatio:1;function c(e){return s.test(e)?""+i+e:""+a+e}e.exports={getScaleToFitImageURL:function(e,t,n,i,a,s){return c(o.getData(r.fittingTypes.SCALE_TO_FIT,{id:e,width:t,height:n,name:s&&s.name},{width:i,height:a,htmlTag:o.htmlTag.IMG,alignment:o.alignTypes.CENTER,pixelAspectRatio:l},s).uri)},getScaleToFillImageURL:function(e,t,n,i,a,s){return c(o.getData(r.fittingTypes.SCALE_TO_FILL,{id:e,width:t,height:n,name:s&&s.name,focalPoint:{x:s&&s.focalPoint&&s.focalPoint.x,y:s&&s.focalPoint&&s.focalPoint.y}},{width:i,height:a,htmlTag:o.htmlTag.IMG,alignment:o.alignTypes.CENTER,pixelAspectRatio:l},s).uri)},getCropImageURL:function(e,t,n,i,a,s,d,u,p,m){return c(o.getData(r.fittingTypes.SCALE_TO_FILL,{id:e,width:t,height:n,name:m&&m.name,crop:{x:i,y:a,width:s,height:d}},{width:u,height:p,htmlTag:o.htmlTag.IMG,alignment:o.alignTypes.CENTER,pixelAspectRatio:l},m).uri)}}},function(e,t,n){"use strict";var o=n(0),r=n(1),i=n(7);e.exports={populateGlobalFeatureSupport:r.populateGlobalFeatureSupport,getData:function(e,t,n,a){var s=o.emptyData.uri;return r.isValidRequest(e,t,n)&&(s=i(e,t,n,a)),{uri:s}},fittingTypes:o.fittingTypes,alignTypes:o.alignTypes,htmlTag:o.htmlTag,upscaleMethods:o.upscaleMethods}}])},72442:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Oi});var o=n(27762),r=n(17607);const i="10.153.0";var a=i;const s=()=>"undefined"==typeof window,l=(e=!1)=>!s()&&(/ricos-debug/i.test(window.location.search)||e),c=o.lazy(()=>Promise.all([n.e(4876),n.e(2321),n.e(1187),n.e(7298)]).then(n.bind(n,19916)));var d=n(7362);Object.freeze({ONE:"header-one",TWO:"header-two",THREE:"header-three",FOUR:"header-four",FIVE:"header-five",SIX:"header-six",PARAGRAPH:"unstyled"});const u="wix-draft-plugin-emoji",p="wix-draft-plugin-file-upload",m="wix-draft-plugin-gallery",h="wix-draft-plugin-image",g="wix-rich-content-plugin-spoiler",_="wix-draft-plugin-link-preview",f="wix-draft-plugin-vertical-embed",E="wix-draft-plugin-video",y="ricos-audio",b="wix-draft-plugin-poll",v=(d.J.DIVIDER,d.J.IMAGE,d.J.CAPTION,d.J.GALLERY,d.J.FILE,d.J.GIF,d.J.VIDEO,d.J.AUDIO,d.J.LINK_PREVIEW,d.J.EMBED,d.J.POLL),T=(d.J.APP_EMBED,d.J.COLLAPSIBLE_LIST,d.J.COLLAPSIBLE_ITEM,d.J.COLLAPSIBLE_ITEM_TITLE,d.J.COLLAPSIBLE_ITEM_BODY,d.J.HTML,d.J.CODE_BLOCK,d.J.TABLE,d.J.TABLE_ROW,d.J.TABLE_CELL,d.J.LAYOUT,d.J.LAYOUT_CELL,{[d.J.BUTTON]:"buttonData",[d.J.DIVIDER]:"dividerData",[d.J.FILE]:"fileData",[d.J.GALLERY]:"galleryData",[d.J.GIF]:"gifData",[d.J.HTML]:"htmlData",[d.J.IMAGE]:"imageData",[d.J.CAPTION]:"captionData",[d.J.COLLAPSIBLE_LIST]:"collapsibleListData",[d.J.LINK_PREVIEW]:"linkPreviewData",[d.J.APP_EMBED]:"appEmbedData",[d.J.VIDEO]:"videoData",[d.J.POLL]:"pollData",[d.J.TABLE]:"tableData",[d.J.TABLE_CELL]:"tableCellData",[d.J.PARAGRAPH]:"paragraphData",[d.J.LIST_ITEM]:"paragraphData",[d.J.HEADING]:"headingData",[d.J.CODE_BLOCK]:"codeBlockData",[d.J.BLOCKQUOTE]:"paragraphData",[d.J.EMBED]:"embedData",[d.J.EXTERNAL]:"externalData",[d.J.AUDIO]:"audioData",[d.J.TEXT]:"textData",[d.J.BULLETED_LIST]:"bulletedListData",[d.J.ORDERED_LIST]:"orderedListData",[d.J.COLLAPSIBLE_ITEM]:void 0,[d.J.COLLAPSIBLE_ITEM_TITLE]:void 0,[d.J.COLLAPSIBLE_ITEM_BODY]:void 0,[d.J.TABLE_ROW]:void 0,[d.J.UNRECOGNIZED]:void 0,[d.J.MAP]:void 0,[d.J.LAYOUT]:void 0,[d.J.LAYOUT_CELL]:"layoutCellData"});var w=n(69743);const I=e=>{const t=(({type:e})=>T[e])(e);return t&&t in e?e[t]:void 0},A=e=>r.countBy(e,e=>e.type),L={[d.J.DIVIDER]:"wix-draft-plugin-divider",[d.J.IMAGE]:h,[d.J.GALLERY]:m,[d.J.GIF]:"wix-draft-plugin-giphy",[d.J.HTML]:"wix-draft-plugin-html",[d.J.VIDEO]:E,[d.J.FILE]:p,[d.J.POLL]:b,[d.J.COLLAPSIBLE_LIST]:"wix-rich-content-plugin-collapsible-list",[d.J.TABLE]:"wix-rich-content-plugin-table",[d.J.EMBED]:_,[d.J.LINK_PREVIEW]:_,[d.J.APP_EMBED]:"wix-draft-plugin-vertical-embed",[d.J.AUDIO]:y,[d.J.BUTTON]:"wix-draft-plugin-link-button",[d.J.CODE_BLOCK]:"code-block",[d.J.BLOCKQUOTE]:"blockquote"},S={1:"header-one",2:"header-two",3:"header-three",4:"header-four",5:"header-five",6:"header-six"},x={[d.a.MENTION]:"mention",[d.a.LINK]:"LINK",[d.a.ANCHOR]:"ANCHOR"},C=/\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]/g;var P=n(13499);const D=e=>`${e?.nofollow?"nofollow ":""}${e?.sponsored?"sponsored ":""}${e?.ugc?"ugc ":""}${e?.noreferrer?"noreferrer":""}`.trim();var O=n(88725),V=n(18858),M=(n(73968),n(3108)),R=n(2548),k=n(25888);n(96732);M.dp,M.xb;const B=e=>t=>Object.keys(t).sort(e.compare);k.Df;function U(e){if("function"==typeof e)return U(k.Df)(e);const t=B(e);return e=>n=>{const o=[];for(const r of t(n))o.push(e(r,n[r]));return o}}const N=U(k.Df)((e,t)=>[e,t]);M.dx,M.e$;M.Bu,M.P5,M.Su,M.UI;M.ri;function F(e){return M.vP(e)}M._r;M.jt;M.yW,M.G,M.t9;const J=M.HA,G=(M.nn,M.kp),$=M.CC,j=M.RF,H=(M.I8,M.mS,M.RJ,M._Y,M.V_),z=M.EW,W=M.nu,Y=(M.SW,M.zV,M.Ub,M.vA,M.qS),K=(M.mK,e=>t=>{const n=B(e);return(e,o)=>{const r=n(e);if(0===r.length)return t.of({});let i=t.of({});for(const n of r)i=t.ap(t.map(i,e=>t=>(e[n]=t,e)),o(n,e[n]));return i}});M.hX,M.DZ,M.uK,M.tV;M.oA,M.oh;const q="Record";M.Eh;const Z=M.uZ,X=(k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,M.nr,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,k.Df,(0,V.n_)({config:Z((0,R.Z$)()),typeMappers:(0,O.uZ)(),nodeViewDecorators:(0,O.uZ)(),nodeViewRenderers:Z((0,R.Z$)())}));function Q({plugins:e=[],viewerProps:t}){return(0,P.zG)(e,(0,O.UI)(e=>{const t={config:{[e.type]:e.config},typeMappers:[],nodeViewRenderers:{},nodeViewDecorators:[]};return e.nodeViewRenderers?t.nodeViewRenderers=e.nodeViewRenderers:e.typeMapper&&(t.typeMappers=[e.typeMapper]),t.nodeViewDecorators=e.nodeViewDecorators?e.nodeViewDecorators:[],t}),(0,V.g_)(X),(n=(({config:e={},typeMappers:t=[],nodeViewRenderers:n,nodeViewDecorators:o})=>({config:e,typeMappers:t,nodeViewRenderers:n,nodeViewDecorators:o}))(t),e=>r.merge({},e,n)));var n}const ee=(e,...t)=>!e||e.some(e=>"function"!=typeof e)?(console.warn(`${e} is expected to be a function array`),{}):e.reduce((e,n)=>Object.assign(e,n(...t)),{});function te({_rcProps:e,isMobile:t,addAnchors:n,onError:o,mediaSettings:a={},linkSettings:s={},generalLinkSettings:l,textAlignment:c,experiments:d,iframeSandboxDomain:u,theme:p,plugins:m=[],content:h,viewerProps:g,onNodeClick:_,debugMode:f,jsdomMode:E,baseUrl:y}){const b=Q({plugins:m,viewerProps:g}),{pauseMedia:v,disableRightClick:T}=a,{customAnchorScroll:w}=s;let{anchorTarget:I="_blank",relValue:A,rel:L}=s;A&&(console.warn("relValue is deprecated, Please use rel prop instead."),L=(e=>({nofollow:e?.includes("nofollow"),sponsored:e?.includes("sponsored"),ugc:e?.includes("ugc"),noreferrer:e?.includes("noreferrer")}))(A)||L);const{target:S,...x}=l?.initialLinkOptions||{};I=S||I,L={...L,...x},A=D(L);const C={addAnchors:n,isMobile:t,config:{uiSettings:{disableDownload:a?.disableDownload||T}},content:h,onError:o,helpers:{},disabled:v,anchorTarget:I,relValue:A,customAnchorScroll:w,textAlignment:c,experiments:d,iframeSandboxDomain:u,theme:p,onNodeClick:_,jsdomMode:E,baseUrl:y},O=(0,P.zG)(r.merge({locale:"en",config:{}},b,e,C,g),(V=()=>h?.metadata?.id,({helpers:e={},...t})=>({...t,helpers:{...e,onViewerLoaded:t=>e.onViewerLoaded?.({...t,version:i,contentId:V()}),onViewerAction:(t,n,o,r,i)=>e.onViewerAction?.(t,n,o,r||V(),i)}})));var V;return{...O,debugMode:f,typeMappers:ee(O.typeMappers||[])}}var ne=n(95237),oe=n(98878);const re=(0,P.ls)(e=>Array.isArray(e)?{id:"root",type:"UNRECOGNIZED",nodes:e}:e,(0,oe.K)(e=>Array.isArray(e.nodes)?e.nodes:[])),ie={PARAGRAPH:"PARAGRAPH",TEXT:"TEXT",HEADING:"HEADING",BULLETED_LIST:"BULLETED_LIST",ORDERED_LIST:"ORDERED_LIST",LIST_ITEM:"LIST_ITEM",BLOCKQUOTE:"BLOCKQUOTE",CODE_BLOCK:"CODE_BLOCK",VIDEO:"VIDEO",DIVIDER:"DIVIDER",FILE:"FILE",GALLERY:"GALLERY",GIF:"GIF",HTML:"HTML",IMAGE:"IMAGE",LINK_PREVIEW:"LINK_PREVIEW",POLL:"POLL",APP_EMBED:"APP_EMBED",BUTTON:"BUTTON",COLLAPSIBLE_LIST:"COLLAPSIBLE_LIST",COLLAPSIBLE_ITEM:"COLLAPSIBLE_ITEM",COLLAPSIBLE_ITEM_TITLE:"COLLAPSIBLE_ITEM_TITLE",COLLAPSIBLE_ITEM_BODY:"COLLAPSIBLE_ITEM_BODY",TABLE:"TABLE",EMBED:"EMBED",TABLE_CELL:"TABLE_CELL",TABLE_ROW:"TABLE_ROW",EXTERNAL:"EXTERNAL",AUDIO:"AUDIO",CAPTION:"CAPTION",LAYOUT:"LAYOUT",LAYOUT_CELL:"LAYOUT_CELL",UNRECOGNIZED:"UNRECOGNIZED",MAP:"MAP"},ae=()=>Promise.all([n.e(1642),n.e(6498),n.e(9994)]).then(n.bind(n,18074)),se=o.lazy(ae),le=e=>{const{children:t,isMobile:n,fullscreenProps:r,content:i}=e,[a,s]=o.useState({type:"closed"}),l=o.useMemo(()=>i?ce(i):{images:[],imageMap:{}},[e.content]);return o.createElement(o.Fragment,null,t({config:(e=>{const t=(e,t=0)=>{s({type:"open",activeIndex:l?l.imageMap[e]+t:0})},n={...e},o=e["wix-draft-plugin-image"],r=e["wix-draft-plugin-gallery"];return o&&!o.onExpand&&(n["wix-draft-plugin-image"]={...o,onExpand:t}),r&&!r.onExpand&&(n["wix-draft-plugin-gallery"]={...r,onExpand:t}),n})(e.config),onHover:()=>ae()}),"open"===a.type&&o.createElement(o.Suspense,{fallback:o.createElement("div",null)},o.createElement(se,{images:l.images,onClose:()=>s({type:"closed"}),index:a.activeIndex,isMobile:n,...r,jsdomMode:e.jsdomMode,t:e.t})))},ce=e=>{let t=0;return re(e.nodes).filter(e=>[ie.IMAGE,ie.GALLERY].includes(e.type)).get().reduce((e,n)=>{const{images:o,imageMap:r}=e,i=de(n),a=t;return t+=i.length,{images:[...o,...i],imageMap:{...r,[n.id??""]:a}}},{images:[],imageMap:{}})},de=e=>{switch(e.type){case ie.IMAGE:return e.imageData.image?.src&&!e.imageData?.disableExpand?[{image:{media:{...e.imageData.image}},disableDownload:e.imageData.disableDownload,altText:e.imageData.altText}]:[];case ie.GALLERY:return e.galleryData?.disableExpand?[]:e.galleryData.items.map(t=>({...t,disableDownload:e.galleryData.disableDownload}));default:return[]}};var ue=n(95685);const pe={fontWeight:"normal",fontStyle:"normal",lineHeight:"1.5"},me={bgColor:"#ffffff",textColor:"#000000"},he={desktop:{customStyles:{p:{...pe,fontSize:"16px"},h1:{...pe,fontSize:"40px"},h2:{...pe,fontSize:"28px"},h3:{...pe,fontSize:"24px"},h4:{...pe,fontSize:"20px"},h5:{...pe,fontSize:"18px"},h6:{...pe,fontSize:"16px"},quote:{lineHeight:"1.5",fontSize:"18px"},codeBlock:{lineHeight:"1.5"}},palette:me},mobile:{customStyles:{p:{...pe,fontSize:"14px"},h1:{...pe,fontSize:"32px"},h2:{...pe,fontSize:"24px"},h3:{...pe,fontSize:"20px"},h4:{...pe,fontSize:"20px"},h5:{...pe,fontSize:"16px"},h6:{...pe,fontSize:"14px"},quote:{lineHeight:"1.5",fontSize:"18px"},codeBlock:{lineHeight:"1.5"}},palette:me}};var ge=n(78393),_e=n(28198);class fe{constructor(){this.type=d.a.UNRECOGNIZED}getDecoration(){return{}}fromCustomStyle(e){return new fe}toCustomStyle(){return{}}overrideWith(e){return e}}class Ee{constructor(e){this.type=d.a.BOLD,this.customStyle=e}static of(e){if(e.type!==d.a.BOLD)throw new TypeError(`invalid decoration initializer ${e}`);return new Ee({fontWeight:e.fontWeightValue})}getDecoration(){return{type:this.type,fontWeightValue:(e=this.customStyle.fontWeight,"bold"===e?700:"normal"===e?400:parseInt(e,10))};var e}static fromCustomStyle(e){return new Ee(e)}fromCustomStyle(e){return Ee.fromCustomStyle(e)}toCustomStyle(){return this.customStyle}overrideWith(e){if(!(e instanceof Ee||e instanceof fe))throw new TypeError(`invalid merge decoration ${e}`);const t={...this.customStyle,...e.toCustomStyle()};return new Ee(t)}}class ye{constructor(e){this.type=d.a.COLOR,this.customStyle=e}static of(e){if(e.type!==d.a.COLOR)throw new TypeError(`invalid decoration initializer ${e}`);const{foreground:t,background:n}=e.colorData||{},o=r.pickBy({color:t,backgroundColor:n});return new ye(o)}getDecoration(){return{type:this.type,colorData:{...this.customStyle.color&&{foreground:this.customStyle.color},...this.customStyle.backgroundColor&&{background:this.customStyle.backgroundColor}}}}static fromCustomStyle(e){return new ye(e)}fromCustomStyle(e){return ye.fromCustomStyle(e)}toCustomStyle(){return this.customStyle}overrideWith(e){if(!(e instanceof ye||e instanceof fe))throw new TypeError(`invalid merge decoration ${e}`);const t={...this.customStyle,...e.toCustomStyle()};return new ye(t)}}var be=(e=>(e.PX="PX",e.EM="EM",e.UNRECOGNIZED="UNRECOGNIZED",e))(be||{});class ve{constructor(e){this.type=d.a.FONT_SIZE,this.customStyle=e}static of(e){if(e.type!==d.a.FONT_SIZE)throw new TypeError(`invalid decoration initializer ${e}`);const t=e.fontSizeData?.value,n=e.fontSizeData?.unit?.toLocaleLowerCase();return new ve(t?{fontSize:`${t}${n}`}:{})}getDecoration(){return{type:this.type,fontSizeData:{value:parseInt(this.customStyle.fontSize),unit:be.PX}}}static fromCustomStyle(e){return new ve(e)}fromCustomStyle(e){return ve.fromCustomStyle(e)}toCustomStyle(){return this.customStyle}overrideWith(e){if(!(e instanceof ve||e instanceof fe))throw new TypeError(`invalid merge decoration ${e}`);const t={...this.customStyle,...e.toCustomStyle()};return new ve(t)}}class Te{constructor(e){this.type=d.a.ITALIC,this.customStyle=e}static of(e){if(e.type!==d.a.ITALIC)throw new TypeError(`invalid decoration initializer ${e}`);return new Te(e.italicData?{fontStyle:"italic"}:{})}getDecoration(){return{type:this.type,italicData:this.customStyle.fontStyle?.includes("italic")}}static fromCustomStyle(e){return new Te(e)}fromCustomStyle(e){return Te.fromCustomStyle(e)}toCustomStyle(){return this.customStyle}overrideWith(e){if(!(e instanceof Te||e instanceof fe))throw new TypeError(`invalid merge decoration ${e}`);const t={...this.customStyle,...e.toCustomStyle()};return new Te(t)}}var we=n(63963);const Ie=(e,t,n)=>{const o=we.jG(R.Ps()),r=R.ur(o)(we.t$(t));return(0,P.zG)(r((0,P.zG)(n,O.UI(n=>(0,P.zG)(e,we.DT(n[0],()=>t),we.UI(n[1]))))),we.g_(P.yR,P.yR))},Ae=class e{constructor(e){this.decorations=e}static of(t){const n=(t||[]).map(e.toTextDecoration);return new e(n)}static fromCustomStyle(t){const{color:n,backgroundColor:o,...r}=t,i={color:n??"",backgroundColor:o??""},a=Object.entries(r).map(([e,t])=>({[e]:t})).concat([i]).map(e.styleToDecoration);return new e(a)}static styleToDecoration(t){return Ie(t,e.empty,[[e=>!!e.fontWeight,e=>Ee.fromCustomStyle(e)],[e=>!!e.fontSize,e=>ve.fromCustomStyle(e)],[e=>!!e.fontStyle,e=>Te.fromCustomStyle(e)],[e=>!!e.color||!!e.backgroundColor,e=>ye.fromCustomStyle(e)]])}static toTextDecoration(t){return Ie(t,e.empty,[[e=>e.type===d.a.BOLD,e=>Ee.of(e)],[e=>e.type===d.a.ITALIC,e=>Te.of(e)],[e=>e.type===d.a.FONT_SIZE,e=>ve.of(e)],[e=>e.type===d.a.COLOR,e=>ye.of(e)]])}toDecorationArray(){return this.decorations.filter(e=>e.type!==d.a.UNRECOGNIZED).map(e=>e.getDecoration())}byType(t){return this.decorations.find(e=>e.type===t)||e.empty}toCustomStyle(){return this.decorations.reduce((e,t)=>({...e,...t.toCustomStyle()}),{})}overrideWith(t){const n=t.map(e.toTextDecoration).map(e=>this.byType(e.type).overrideWith(e)),o=n.map(e=>e.type),r=this.decorations.filter(e=>!o.includes(e.type)).concat(n);return new e(r)}};Ae.empty=new fe;let Le=Ae;const Se=class e{constructor(t){this.getNodeStyle=()=>this.nodeStyle,this.toCustomStyle=()=>({paddingBottom:this.nodeStyle.paddingBottom,paddingTop:this.nodeStyle.paddingTop}),this.overrideWith=(t={})=>e.of({...this.nodeStyle,...t}),this.nodeStyle=t}static of(t){return new e(t||{})}};Se.fromCustomStyle=e=>{const{paddingBottom:t,paddingTop:n}=e,o={paddingBottom:t,paddingTop:n};return Se.of(o)};let xe=Se;const Ce=class e{constructor(t){this.getTextStyle=()=>this.textStyle,this.toCustomStyle=()=>({lineHeight:this.textStyle.lineHeight}),this.overrideWith=t=>e.of({...this.textStyle,...t}),this.textStyle=this.preprocess(t)}preprocess(e){let t=e.lineHeight;return t&&!Number(t)&&(t.includes("px")||t.includes("em"))&&(t=t.slice(0,t.length-2)),r.pickBy({...e,lineHeight:t})}static of(t){return new e(t||{})}};Ce.fromCustomStyle=e=>{const{lineHeight:t}=e,n={lineHeight:t};return Ce.of(n)};let Pe=Ce;var De={darkTheme:{textColor:"#000000",bgColor:"#FFFFFF",actionColor:"#15E0FB"}};const Oe={BG_COLOR:11,DISABLED_COLOR:13,TEXT_COLOR_LOW:14,TEXT_COLOR:15,ACTION_COLOR:18},Ve=(e,t)=>((e,t)=>e[t<=5?t-1:t-6])(e,t).value;function Me(e,t){const n=e.map((e,t)=>{if(e.indexOf("%")>-1){const n=parseFloat(e.substr(0,e.length-1))/100;return t<3?Math.round(255*n):n}return parseFloat(e)});let o=Number(n[0]).toString(16),r=Number(n[1]).toString(16),i=Number(n[2]).toString(16),a=Math.round(255*Number(n[3])).toString(16);return 1===o.length&&(o="0"+o),1===r.length&&(r="0"+r),1===i.length&&(i="0"+i),1===a.length&&(a="0"+a),"#"+o+r+i+(t?a:"")}function Re(e){if("transparent"===e)return"#FFFFFF00";if((e.startsWith("rgb(")||e.startsWith("rgba("))&&e.endsWith(")")){const t=e.replace(/^(rgba\()|^(rgb\()|(\s)|(\))$/g,"").split(",");if(4===t.length)return Me(t,!0);if(3===t.length)return Me(t);throw Error("[ricos-common] themeUtils.ts: Bad RGB / RGBA value: "+e)}if(!e.startsWith("#"))throw Error(`[ricos-common] themeUtils.ts: Bad Hex (${e}).\n Ricos color can only accept "transparent" or a HEX formatted color as its value`);return e}function ke(e){if("transparent"===e)return!0;if((e.startsWith("rgb(")||e.startsWith("rgba("))&&e.endsWith(")")){const t=e.replace(/^(rgba\()|^(rgb\()|(\s)|(\))$/g,"").split(",");return 4===t.length||3===t.length}return!!e.startsWith("#")}function Be(e){const t=e.replace("#","");return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3}function Ue(e,t){if(e)return Be(e)<150?e:t||"#000000"}function Ne(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e.toLowerCase());if(t)return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:parseInt(t[4],16)};throw new Error("Bad Hex")}function Fe(e){if(!e)return;const{r:t,g:n,b:o}=Ne(e);return`${t}, ${n}, ${o}`}function Je(e){return`rgb(${e})`}const Ge=e=>e.replace(/([A-Z])/g,(e,t)=>"-"+t.toLowerCase()),$e=(" ".repeat(4),e=>"object"==typeof e&&"type"in e&&"rgb"===e.type),je=(e,t)=>{const{contentBgColor:n=!1,focusActionColor:o,settingsActionColor:r}=t||{},i=$e(e),{textColor:a,bgColor:s,actionColor:l,fallbackColor:c=(i?"0, 0, 0":"#000000"),disabledColor:d,textColorLow:u,textOnActionColor:p}=e,m=(h={textColor:a,actionColor:l,backgroundColor:s,fallbackColor:c,disabledColor:d,textColorLow:u,settingsActionColor:r,focusActionColor:o,textOnActionColor:p},Object.keys(h).reduce((e,t)=>{const n=h[t];if(void 0!==n){const o=ke(n)&&i?Fe(Re(n)):void 0,r=void 0!==o?o:n;e[t]=i?Je(r):r,e[`${t}Tuple`]=i?r:Fe(r)}return e},{}));var h;const g=n&&void 0!==s?i?Je(s):s:void 0,_=i?`rgb(${c})`:Ue(l,c),f=i?c:Fe(Ue(l,c));return{...m,..._&&{actionColorFallback:_},...f&&{actionColorFallbackTuple:f},...g&&{bgColorContainer:g}}},He=e=>"string"==typeof e?e in De?De[e]:(console.error(`Palette ${e} is unknown. Supported themes: ${De}`),{}):Array.isArray(e)?((e=>{if(0===e.length)throw Error("Received empty palette colors array");const t=e.map(e=>e.name),n=r.difference(Object.values(Oe).map(e=>`color_${e}`),t);if(n.length>0){const e=[];throw e.push("Some palette colors were not supplied:",`\n${n}\n`,"Palette array must include the following colors:",Object.entries(Oe).map(e=>`${e[1]} - ${e[0]}`).toString().split(",").join("\n"),""),Error(e.join("\n"))}})(e),{actionColor:Ve(e,Oe.ACTION_COLOR),bgColor:Ve(e,Oe.BG_COLOR),textColor:Ve(e,Oe.TEXT_COLOR),disabledColor:Ve(e,Oe.DISABLED_COLOR),textColorLow:Ve(e,Oe.TEXT_COLOR_LOW)}):e&&((e=>e&&"string"!=typeof e&&!Array.isArray(e)&&(e.actionColor||e.textColor||e.bgColor))(e)||$e(e))?e:(console.error("Unrecognized Palette object. Please refer to Ricos Theme Documentation"),{});function ze(e,t){if(!e)return{paletteVarsObject:{}};const n=$e(e),o=He(e),r=function(e,t){return!!Object.entries(e).length&&Object.entries(e).every(([e,n])=>!(n&&"string"==typeof n&&!t&&!ke(n))||(console.error(`Invalid color value '${n}' for ${e}. Please refer to Ricos Theme Documentation`),!1))}(o,n);if(!r)return{paletteVarsObject:{},colors:o};const i=function(e,t=!1){return Object.entries(e).reduce((e,[n,o])=>(e[n]=o&&"string"==typeof o&&!t&&ke(o)?Re(o):o,e),{})}(o,n);return{paletteVarsObject:je(i,t),colors:i}}class We{constructor(e,t){this.key=e,this.customStyle=t}getKey(){return this.key}toCustomStyle(){return this.customStyle}overrideWith(e){if("empty"!==e.key&&this.key!==e.key)throw new Error(`Different keys, ${this.key} doesn't equal to ${e.key}`);return new We(this.key,{...this.customStyle,...e.customStyle})}}const Ye=["h1","h2","h3","h4","h5","h6","p","quote","codeBlock"],Ke=class e{constructor(e){this.customStyles=e}static of(t){const n=Object.entries(t).map(([e,t])=>new We(e,t));return new e(n)}static fromTheme(t){const n=t.customStyles||{},{colors:o}=ze(t.palette,t.paletteConfig),{textColor:r,bgColor:i}=o||{};if(o?.textColor||o?.bgColor){const t=Ye.reduce((e,t)=>({...e,[t]:{color:r,backgroundColor:i}}),{});return e.of(t).overrideWith(e.of(n))}return e.of(n)}toCustomStyles(){return this.customStyles.reduce((e,t)=>{const n=t.toCustomStyle();return{...e,...r.isEmpty(n)?{}:{[t.getKey()]:n}}},{})}byKey(t){return this.customStyles.find(e=>e.getKey()===t)||e.empty}overrideWith(t){const n=Ye.reduce((e,t)=>({...e,[t]:{}}),{}),o=e.of(n).customStyles.map(e=>e.overrideWith(this.byKey(e.getKey())).overrideWith(t.byKey(e.getKey())));return new e(o)}};Ke.empty=new class extends We{constructor(){super("empty",{})}overrideWith(e){return e}};let qe=Ke;const Ze={headerOne:"h1",headerTwo:"h2",headerThree:"h3",headerFour:"h4",headerFive:"h5",headerSix:"h6",paragraph:"p",blockquote:"quote",codeBlock:"codeBlock"},Xe=(0,P.zG)(Ze,Object.entries,O.UI(ge.LF),_e.s),Qe=(0,P.ls)(e=>N(e),O.UI(ge.Pd(e=>({...Le.of(e?.decorations).toCustomStyle(),...xe.of(e?.nodeStyle).toCustomStyle(),...Pe.of({lineHeight:e?.lineHeight}).toCustomStyle()}),e=>Ze[e])),e=>(0,_e.s)(e)),et=(0,P.ls)(Object.entries,O.UI(ge.Pd(e=>({decorations:Le.fromCustomStyle(e).toDecorationArray(),nodeStyle:xe.fromCustomStyle(e).getNodeStyle(),lineHeight:Pe.fromCustomStyle(e).getTextStyle().lineHeight}),e=>Xe[e])),_e.s,JSON.stringify,JSON.parse);class tt{constructor(e){this.theme=e}static fromTheme(e){return new tt(e||{})}static fromDocumentStyle(e){const t=Qe(e);return new tt({customStyles:t})}toTheme(){return this.theme}toDocumentStyle(){return et(qe.fromTheme(this.theme).toCustomStyles())}}function nt(e){return{...r.mapValues(e,e=>"object"==typeof e&&null!==e?nt(e):e),...void 0!==e.fontSize&&void 0===e.lineHeight?{lineHeight:1.5}:{}}}function ot(e,t="",n="-"){const o={};return function e(r,i=""){for(const[a,s]of Object.entries(r)){const r=i?`${i}${n}${a}`:a;"object"==typeof s?e(s,r):o[`${t?t+"-":""}${r}`]=s}}(e),o}var rt=({customStyles:e={},settingsStyles:t={},nativeStyle:n={}})=>r.merge({},ot(nt(e),"custom"),ot(t,"settings"),ot(n,"native"));const it=e=>(e=>Object.entries(e))(e).reduce((e,t)=>{return{...e,[`font-${t[0].toLowerCase()}`]:(n=t[1],n.value.substr(5,n.value.length-6))};var n},{});const at=(e,t)=>{const n=tt.fromDocumentStyle(t).toTheme(),o=r.merge({},e,n),{palette:i,paletteConfig:a,typography:s,customStyles:l,nativeStyle:c}=o,{paletteVarsObject:d}=ze(i,a),u=function(e){if(!e)return{};const{fontFamily:t,wixTypography:n}=e,o=n?it(n):{};return Object.assign(o,t&&{fontFamily:t})}(s);return(e=>{const t=e=>"--ricos-"+Ge(e);return Object.entries(e).reduce((e,[n,o])=>({...e,[t(n)]:o}),{})})({...d,...u,...rt({customStyles:l,nativeStyle:c}),...{"breakout-normal-padding-start":e?.breakout?.normalPadding.start??"0","breakout-normal-padding-end":e?.breakout?.normalPadding.end??"0","breakout-full-width-padding-start":e?.breakout?.fullWidthPadding?.start??"0","breakout-full-width-padding-end":e?.breakout?.fullWidthPadding?.end??"0"}})},st=o.createContext({isMobile:!1,experiments:{},languageDir:"ltr"}),lt="no-outline";class ct extends o.Component{constructor(){super(...arguments),this.handleTabKeyUp=e=>{9===e.which&&document.body.classList.contains(lt)&&document.body.classList.remove(lt)},this.handleClick=()=>{document.body.classList.contains(lt)||document.body.classList.add(lt)},this.render=()=>null}componentDidMount(){document.body.classList.add(lt),this.props.isMobile||(document.addEventListener("keyup",this.handleTabKeyUp),document.addEventListener("click",this.handleClick))}componentWillUnmount(){this.props.isMobile||(document.removeEventListener("keyup",this.handleTabKeyUp),document.removeEventListener("click",this.handleClick))}}const dt=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"],ut=e=>(e=>!!e&&dt.includes(e.split("-|_")[0].toLowerCase()))(e)?"rtl":"ltr";var pt={fontElementMap:"xtw5m",wrapper:"qYEY-",pluginContainerMobile:"cSYsF",viewer:"i5JRu",android:"ILoNz",rootedTraversedContent:"O6D-u",atomic:"dx-HQ",toolbar:"nSsIz",block:"lXRwy"},mt={rtl:"UfzCT",ltr:"g0pjP"};const ht=o.memo(({anchorKey:e,type:t})=>o.createElement("div",{key:e,type:t,"data-hook":e})),gt=(e,t,n)=>{const r=(e=>[d.J.PARAGRAPH,d.J.HEADING,d.J.BLOCKQUOTE,d.J.CODE_BLOCK].includes(e.type)&&!e.nodes?.length)(e)?"empty-line":e.type.toLowerCase(),i=`${n}${t+1}`;return o.createElement(ht,{key:i,type:r,anchorKey:i})};var _t=({addAnchors:e,children:t})=>{if(e){const n=e&&(!0===e?"rcv-block":e),r=`${n}-first`,i=`${n}-last`;return o.createElement(o.Fragment,null,o.createElement(ht,{type:"first",anchorKey:r}),(0,o.cloneElement)(o.Children.only(t),{addAnchorsPrefix:n}),o.createElement(ht,{type:"last",anchorKey:i}))}return t};const ft=o.createContext({locale:"en",localeContent:"en",experiments:{},isMobile:!1,t:e=>e,languageDir:"ltr",theme:{},portal:null,debugMode:[],platform:"macOs",content:null,jsdomMode:!1,environment:"liveSite",tabIndex:0,lastInteraction:null}),Et=({children:e,isMobile:t,locale:n,localeContent:r,experiments:i,languageDir:a,theme:s,t:l,portal:c,debugMode:d=[],jsdomMode:u=!1,platform:p="macOs",content:m=null,environment:h="liveSite",tabIndex:g=0,lastInteraction:_=null})=>o.createElement(ft.Provider,{value:{t:l,locale:n,localeContent:r,isMobile:t,experiments:i??{},languageDir:a,theme:s,portal:c??null,debugMode:d,jsdomMode:u,platform:p,content:m,environment:h,tabIndex:g,lastInteraction:_}},e);const yt=o.createContext(null),bt=({zIndexService:e,children:t})=>o.createElement(yt.Provider,{value:e},t);const vt=o.createContext(null),Tt=({nodeViewDecorators:e,renderers:t,SpoilerViewerWrapper:n,children:r})=>o.createElement(vt.Provider,{value:{nodeViewDecorators:e,renderers:t,SpoilerViewerWrapper:n}},r);var wt=n(18154);const It=o.createContext(null),At=({textAlignment:e,children:t})=>{const n=(0,o.useMemo)(()=>({textAlignment:e}),[e]);return o.createElement(It.Provider,{value:n},t)},Lt=o.createContext(null),St=({spoilerManager:e,children:t})=>o.createElement(Lt.Provider,{value:{spoilerManager:e}},t),xt=o.createContext(null),Ct=({visibleIndentation:e,children:t})=>o.createElement(xt.Provider,{value:{visibleIndentation:e}},t),Pt=o.createContext(null),Dt=({parentNode:e,parentIndex:t,children:n})=>o.createElement(Pt.Provider,{value:{parentNode:e,parentIndex:t}},n);function Ot(e,t=0,n){const o=[],r={};return e.forEach((e,i)=>{const a={node:e,index:i,depth:t,parent:n,children:[]},s=e.id||`${t}-${i}`;if(r[s]=a,e.nodes&&e.nodes.length>0){const{tree:n,map:o}=Ot(e.nodes,t+1,a);a.children=n,Object.assign(r,o)}o.push(a)}),{tree:o,map:r}}const Vt=o.createContext(null),Mt=({nodes:e,children:t})=>{const n=(0,o.useMemo)(()=>{const{map:t}=Ot(e);return t},[e]);return o.createElement(Vt.Provider,{value:{nodeTreeMap:n}},t)},Rt=1e5,kt=5e3,Bt={TOOLBAR:100,POPUP:200,DRAWER:300,DIALOG:300,TOOLTIP:400,NOTIFICATION:500};class Ut{constructor(e,t){this.baseZIndex=e?Rt:kt,this.settingsStyles=t}layerToCssVar(e){if(this.settingsStyles&&this.settingsStyles?.modals)return`--ricos-settings-modals-${e.toLowerCase()}-z-index`}getZIndex(e){const t=this.baseZIndex+Bt[e],n=this.layerToCssVar(e);return void 0!==n?`var(${n}, ${t})`:t}}const Nt=[{rule:e=>!!e.textData?.decorations?.some(({type:e})=>e===d.a.BOLD),decorate:({element:e,node:t})=>{const n=t.textData?.decorations?.find(({type:e})=>e===d.a.BOLD);return((e,t)=>{const{fontWeightValue:n}=e;return o.createElement("strong",{key:`bold-${t?.key}`,style:{fontWeight:n||700}},t)})(n,e)}},{rule:e=>!!e.textData?.decorations?.some(({type:e})=>e===d.a.ITALIC),decorate:({element:e,node:t})=>{const n=t.textData?.decorations?.find(({type:e})=>e===d.a.ITALIC);return((e,t)=>{const{italicData:n}=t,r=void 0===n||n;return o.createElement("em",{key:`italic-${e.key}`,style:{fontStyle:r?"italic":"normal"}},e)})(e,n)}},{rule:e=>!!e.textData?.decorations?.some(({type:e})=>e===d.a.UNDERLINE),decorate:({element:e,node:t})=>{const n=t.textData?.decorations?.find(({type:e})=>e===d.a.UNDERLINE);return((e,t)=>{const{underlineData:n}=t,r=void 0===n||n;return o.createElement("u",{key:e.key,style:{textDecoration:r?"underline":"none"}},e)})(e,n)},priority:2},{rule:e=>!!e.textData?.decorations?.some(({type:e})=>e===d.a.FONT_SIZE),decorate:({element:e,node:t})=>{const n=t.textData?.decorations?.find(({type:e})=>e===d.a.FONT_SIZE);return((e,t)=>{const{unit:n,value:r}=t.fontSizeData||{};return o.createElement("span",{key:`fontsize-${e.key}`,style:{fontSize:`${r}${n?n.toLowerCase():"px"}`}},e)})(e,n)}},{rule:e=>!!e.textData?.decorations?.some(({type:e})=>e===d.a.STRIKETHROUGH),decorate:({element:e,node:t})=>{const n=t.textData?.decorations?.find(({type:e})=>e===d.a.STRIKETHROUGH);return((e,t)=>{const{strikethroughData:n}=t,r=void 0===n||n;return o.createElement("s",{key:`strikethrough-${e?.key}`,style:{textDecoration:r?"line-through":"none"}},e)})(e,n)}},{rule:e=>!!e.textData?.decorations?.some(({type:e})=>e===d.a.SUBSCRIPT),decorate:({element:e,node:t})=>{const n=t.textData?.decorations?.find(({type:e})=>e===d.a.SUBSCRIPT);return((e,t)=>{const{subscriptData:n}=t;return void 0===n||n?o.createElement("sub",{key:`subscript-${e?.key}`},e):e})(e,n)}},{rule:e=>!!e.textData?.decorations?.some(({type:e})=>e===d.a.SUPERSCRIPT),decorate:({element:e,node:t})=>{const n=t.textData?.decorations?.find(({type:e})=>e===d.a.SUPERSCRIPT);return((e,t)=>{const{superscriptData:n}=t;return void 0===n||n?o.createElement("sup",{key:`superscript-${e?.key}`},e):e})(e,n)}}],Ft={rule:()=>!0,decorate:({node:e,element:t,isRoot:n,context:r})=>{if(!n)return o.createElement(o.Fragment,null,t);const i=r.theme.breakout;if(!i)return o.createElement(o.Fragment,null,t);const a=i.rule({node:e});return o.createElement("div",{"data-breakout":a},t)}},Jt=class e{constructor(t,n){this.decorators=[],this.textualDecorators=[],this.decorators=t.filter(e=>!e.isText).sort(e.sort).reverse(),this.textualDecorators=t.filter(e=>e.isText),this.context=n}static sort(t,n){const o=t.priority??e.defaultPriority,r=n.priority??e.defaultPriority;return o>r?-1:oo.rule(t)?o.decorate({node:t,context:this.context,element:e,isRoot:n}):e,e)}applyTextual(e){const t=this.textualDecorators.find(t=>t.rule(e));return t?.decorate({node:e,context:this.context,isRoot:!1})}};Jt.defaultPriority=100;const Gt=[...Nt,Ft];var $t=Jt;const jt="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",Ht="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",zt=new RegExp("^[^"+Ht+"]*["+jt+"]"),Wt=new RegExp("^[^"+jt+"]*["+Ht+"]"),Yt=/\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]/g,Kt=e=>{if(!e)return"auto";const t=e.replace(Yt,"");return zt.test(t)?"rtl":Wt.test(t)?"ltr":"auto"};var qt={indentZero:"ZCXew",indentOne:"GqOX3",indentTwo:"_5Imlo",indentThree:"jwRVa",indentFour:"I2TiZ",indentFive:"whbhn",indentSix:"RCIv9"};var Zt=({nodeId:e,children:t})=>o.cloneElement(o.Children.only(t),{id:`viewer-${e}`});const Xt=({className:e="paywall",index:t=3},n)=>n"object"==typeof e&&"object"==typeof e?.paywall;var en=(e=>(e.AUTO="AUTO",e.LEFT="LEFT",e.RIGHT="RIGHT",e.CENTER="CENTER",e.JUSTIFY="JUSTIFY",e.UNRECOGNIZED="UNRECOGNIZED",e))(en||{});const tn={0:"indentZero",1:"indentOne",2:"indentTwo",3:"indentThree",4:"indentFour",5:"indentFive",6:"indentSix"},nn={[en.LEFT]:"left",[en.CENTER]:"center",[en.RIGHT]:"right",[en.JUSTIFY]:"flex-start"};var on={fontElementMap:"_4-ohy",quote:"h90aq"};const rn=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>{const{seoMode:r}=(0,o.useContext)(wt.U),{parentNode:i}=(0,o.useContext)(Pt),{indentation:a=0}=e.blockquoteData||{},s=e.nodes?.[0],l=`${s?.type?.toLowerCase()}Data`,{textAlignment:c}=s?.[l]?.textStyle||{},d=ue(on.quote,a>0&&qt[tn[a]],!i&&Qt(r)&&Xt(r?.paywall||{},t)),u=on.child;return o.createElement(Zt,{nodeId:e.id},o.createElement("div",{style:{display:"flex",justifyContent:nn[c]},dir:Kt(e.nodes?.[0]?.nodes?.[0]?.textData?.text)||"ltr"},o.createElement("blockquote",{className:d,style:e.style},o.createElement("span",{className:u},o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{nodes:e.nodes??[]}))))))};var an=({node:e,...t})=>o.createElement(rn,{key:e.id,node:e,...t});const sn=e=>{let t="";return("string"==typeof e&&e.match(/^\d+(\.\d+)?$/)||"number"==typeof e)&&(t="em"),`max(0.8em, ${e}${t})`};var ln={alignLeft:"WwqSH",textWrapNowrap:"mL-Cv",alignRight:"J5h8K",alignCenter:"rQ1-Q",sizeFullWidth:"eY5DI",renderedInTable:"zW7ng",sizeOriginal:"wJubF",sizeContent:"rvj8R",sizeSmall:"_8HNCh",sizeSmallCenter:"CDdad",flex:"Ai5NV",LEFT:"jsXD9",CENTER:"yiu9-",RIGHT:"SohYT",AUTO:"HDF0c",JUSTIFY:"ZTRgS"},cn="-JOc8 dOAGj";const dn=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>{const{seoMode:r}=(0,o.useContext)(wt.U),{textAlignment:i}=(0,o.useContext)(It),{parentNode:a}=(0,o.useContext)(Pt),{textAlignment:s,lineHeight:l}=e.codeBlockData?.textStyle||{},c=ue(cn,ln[s||i||en.AUTO],!a&&Qt(r)&&Xt(r?.paywall||{},t)),d={...e.style,...l&&{lineHeight:sn(l)}};return o.createElement(Zt,{nodeId:e.id},o.createElement("pre",{className:c,style:d,dir:"auto"},o.createElement("span",{className:ue(s===en.JUSTIFY&&ln[s])},o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{nodes:e.nodes??[]})))))};var un=({node:e,...t})=>o.createElement(dn,{key:e.id,node:e,...t});const pn=o.createContext(null),mn=({directionHandled:e,children:t})=>{const n=(0,o.useMemo)(()=>({directionHandled:e}),[e]);return o.createElement(pn.Provider,{value:n},t)};var hn={fontElementMap:"sO8-v",elementSpacing:"NKz8q",headerOne:"E1dEV NKz8q",headerTwo:"C50H4 NKz8q",headerThree:"-zBkU NKz8q",headerFour:"e1xff NKz8q",headerFive:"bKx3E NKz8q",headerSix:"daxQ6 NKz8q",child:"RNM8T"};const gn={1:"headerOne",2:"headerTwo",3:"headerThree",4:"headerFour",5:"headerFive",6:"headerSix"},_n={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},fn=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>{const{seoMode:r}=(0,o.useContext)(wt.U),{textAlignment:i}=(0,o.useContext)(It),{parentNode:a}=(0,o.useContext)(Pt),s=(0,o.useContext)(pn),{level:l=0,textStyle:c,indentation:d=0}=e.headingData||{},{textAlignment:u,lineHeight:p}=c||{},m=ue(hn[gn[l]??gn[1]],ln[u||i||en.AUTO],qt[tn[d]],!a&&Qt(r)&&Xt(r?.paywall||{},t)),h=ue(hn.child,u===en.JUSTIFY&&ln[u]),g=_n[l]??_n[1],_=e.style?{...e.style}:{};p&&(_.lineHeight=sn(p));const f=!e.nodes?.length,E=!f&&"\n"===e.nodes?.[e.nodes.length-1]?.textData?.text?.slice(-1),y=f?o.createElement("br",{role:"presentation"}):o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{key:`children-${e.id}`,nodes:e.nodes??[]}));return o.createElement(Zt,{nodeId:e.id},o.createElement(g,{className:m,style:_,dir:s?"":"auto"},o.createElement("span",{className:h},y),E&&o.createElement("br",{role:"presentation"})))};var En=({node:e,...t})=>o.createElement(fn,{key:e.id,node:e,...t}),yn="Ls2rX",bn="UrNcS",vn="vAt9g",Tn="kMyvt";const wn=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>o.createElement("div",{className:Tn},o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{key:`children-${e.id}`,nodes:e.nodes??[],shouldParagraphApplyTextStyle:!0}))),In={backgroundColor:"#00000000",backgroundImage:null,borderColor:"#00000000",borderWidth:0,borderRadius:0,backdropColor:null,backdropImage:null,backdropPaddingTop:0,backdropPaddingBottom:0,gap:20,cellPadding:[18,0,18,0],cellVerticalAlignment:"TOP",responsivenessBehaviour:"STACK",responsivenessBreakpoint:400};var An=n(89447);const Ln="https://static.wixstatic.com",Sn=300,xn=5,Cn="preload",Pn=750,Dn=20,On={small:350,fullWidth:940},Vn=({file_name:e,width:t,height:n}={},o=Sn,r=Sn,i=xn,a)=>{if(e){const{width:s,height:l}=((e,t,n,o)=>n>e&&o>t?{width:e,height:t}:{width:n,height:o})(t,n,o,r),c=Math.ceil(l),d=Math.ceil(s),u=kn(e);return`${Ln}/media/${e}/v1/fit/${`w_${d},h_${c},al_c,q_${i}${a?",enc_auto":""}`}/file${u}`}},Mn=({file_name:e,width:t,height:n}={},o,r=Dn,i,a)=>{if(e){const l=o||On[i||Pn],c=Math.min(l,t),d=(s={w:c,h:c*(n/t)},{w:Math.ceil(s.w),h:Math.ceil(s.h)}),u=`w_${d.w},h_${d.h},al_c,q_${r}${a?",enc_auto":""}`;return`${Ln}/media/${e}/v1/fit/${u}/file${kn(e)}`}var s;return""},Rn=({file_name:e,width:t,height:n}={},o=Sn,r=Sn,i=xn,a=!1)=>e?An.getScaleToFitImageURL(e,t,n,o,r,{quality:i,...a&&{unsharpMask:{amount:0,radius:0,threshold:0}}}):"",kn=e=>{const t=/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/i.exec(e);return t?t[0]:".jpg"},Bn=(e,t,n={})=>{if("object"==typeof e)if(e.source){if("static"===e.source){if(e.url)return e.url;console.error("must provide src url when using static image source!",e)}else if("custom"===e.source){if(t)return t({file_name:e.file_name});console.error("must provide getImageUrl helper when using custom image source!",e)}}else if(e.file_name){const t=((e,t,n,o,r=Cn,i,a)=>"preload"===r?Vn(e,t,n,o,a?.encAutoImageUrls):"quailtyPreload"===r?Mn(e,t,o,i,a?.encAutoImageUrls):Rn(e,t,n,o,a?.removeUsm))(e,n.requiredWidth,n.requiredHeight,n.requiredQuality,n.imageType,n.size,{removeUsm:n.removeUsm,encAutoImageUrls:n.encAutoImageUrls});return t}return e};const Un=e=>{const t=[];return e.nodes.forEach(e=>{"LAYOUT_CELL"===e.type&&t.push(e.layoutCellData?.colSpan??0)}),(e=>{const t=e.reduce((e,t)=>e+t,0),n=e.every(e=>e>=1);if(12===t&&n)return e;let o=12-t;const r=e.filter(e=>0===e),i=t<=12&&o/r.length>=1,a=Math.floor(12/e.length);return e.map((t,n)=>{let r=a;return i&&(t?r=t:n===e.length-1?r=o:(r=a,o-=a)),r})})(t).map(e=>`minmax(0, ${e}fr)`).join(" ")},Nn=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>{const{isMobile:r}=(0,o.useContext)(ft),i=o.useMemo(()=>{if("LAYOUT"!==e.type)return{};const t=e.layoutData,n=t?.backgroundImage?.media?.src?.url??(t?.backgroundImage?.media?.src?.id&&Bn({file_name:t?.backgroundImage?.media?.src.id},void 0,{requiredQuality:100,requiredWidth:Math.min(t?.backgroundImage?.media?.width??4e3,4e3),requiredHeight:Math.min(t?.backgroundImage?.media?.height??4e3,4e3)})),o=t?.backdropImage?.media?.src?.url??(t?.backdropImage?.media?.src?.id&&Bn({file_name:t?.backdropImage?.media?.src.id},void 0,{requiredQuality:100,requiredWidth:Math.min(t?.backdropImage?.media?.width??4e3,4e3),requiredHeight:Math.min(t?.backdropImage?.media?.height??4e3,4e3)})),r=(i=t?.cellPadding,a=[...In.cellPadding],i&&0!==i.length?1===i.length?[i[0],i[0],i[0],i[0]]:2===i.length?[i[0],i[1],i[0],i[1]]:3===i.length?[i[0],i[1],i[2],i[1]]:i:a);var i,a;const s=t?.cellVerticalAlignment??In.cellVerticalAlignment,l=t?.borderColor??In.borderColor,c=t?.borderWidth??In.borderWidth;return{...t?.containerData?.width?.custom?{"--ricos-internal-layout-width":`${t.containerData.width.custom}px`}:{},...t?.backgroundColor?{"--ricos-internal-layout-background-color":t.backgroundColor}:{},...t?.backgroundImage?{"--ricos-internal-layout-background-image-src":`url(${n})`,...t.backgroundImage.opacity?{"--ricos-internal-layout-background-image-opacity":`${t.backgroundImage.opacity}%`}:{},...t.backgroundImage.scaling?{"--ricos-internal-layout-background-image-scaling":t.backgroundImage.scaling.toLowerCase()}:{},...t.backgroundImage.position?{"--ricos-internal-layout-background-image-position":t.backgroundImage.position.toLowerCase().split("_").join(" ")}:{}}:{},...l?{"--ricos-internal-layout-border-color":l,"--ricos-internal-layout-border-width":`${c}px`}:{},...t?.borderRadius?{"--ricos-internal-layout-border-radius":`${t.borderRadius}px`}:{},...t?.backdropColor?{"--ricos-internal-layout-backdrop-color":t.backdropColor}:{},...t?.backdropImage?{"--ricos-internal-layout-backdrop-image-src":`url(${o})`,...t.backdropImage.opacity?{"--ricos-internal-layout-backdrop-image-opacity":`${t.backdropImage.opacity}%`}:{},...t.backdropImage.scaling?{"--ricos-internal-layout-backdrop-image-scaling":t.backdropImage.scaling.toLowerCase()}:{},...t.backdropImage.position?{"--ricos-internal-layout-backdrop-image-position":t.backdropImage.position.toLowerCase().split("_").join(" ")}:{}}:{},..."number"==typeof t?.gap?{"--ricos-internal-layout-gap":`${t.gap}px`}:{},...t?.backdropPaddingTop&&t.backdropPaddingTop>0?{"--ricos-internal-layout-backdrop-padding-top":`${t.backdropPaddingTop}px`}:{},...t?.backdropPaddingBottom&&t.backdropPaddingBottom>0?{"--ricos-internal-layout-backdrop-padding-bottom":`${t.backdropPaddingBottom}px`}:{},...r&&r.length>0?{"--ricos-internal-layout-cell-padding-top":`${r[0]}px`,"--ricos-internal-layout-cell-padding-right":`${r[1]??r[0]}px`,"--ricos-internal-layout-cell-padding-bottom":`${r[2]??r[0]}px`,"--ricos-internal-layout-cell-padding-left":`${r[3]??r[1]??r[0]}px`}:{},...s?{"--ricos-internal-layout-cell-vertical-alignment":"TOP"===s?"flex-start":"BOTTOM"===s?"flex-end":"center"}:{}}},[e]),a=o.useMemo(()=>(e=>{const t={STACK:"stack",WRAP:"wrap"}[e.layoutData?.responsivenessBehaviour??In.responsivenessBehaviour],n=e.layoutData?.responsivenessBreakpoint&&!isNaN(e.layoutData?.responsivenessBreakpoint)?e.layoutData?.responsivenessBreakpoint:In.responsivenessBreakpoint,o=encodeURIComponent(`layout-${e.id}-${n}-${t}`),r="wrap"===t,i=`\n [data-layout-scope=${o}].${bn} {\n --ricos-internal-layout-display: ${r?"flex":"grid"};\n --ricos-internal-layout-justify-content: ${r?"center":"auto"};\n --ricos-internal-layout-grid-template: grid-template-columns: minmax(0, 1fr);\n --ricos-internal-layout-cell-min-width: ${r?`${Math.floor(n/e.nodes.length)}px`:"100%"};\n --ricos-internal-layout-cell-height: ${r?"auto":"100%"};\n }\n `;return{scopeValue:o,content:`\n@supports not (contain: inline-size) {\n @media only screen and (max-width: ${n}px) {\n ${i}\n }\n}\n\n@container (max-width: ${n}px) {\n ${i}\n}\n`}})(e),[e]);return o.createElement("div",{className:yn,style:i},o.createElement("style",{"data-layout-style":e.id},a.content),o.createElement("div",{"data-breakout":"normal"},o.createElement("div",{"data-layout-scope":a.scopeValue,className:ue(bn,{[vn]:r}),style:{"--ricos-internal-layout-column-template":Un(e)}},o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{key:`children-${e.id}`,nodes:e.nodes??[]})))))};var Fn="-AR89",Jn="L-aDi",Gn="_6ZJ-O";const $n=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>{const{textAlignment:r}=(0,o.useContext)(It),{visibleIndentation:i}=(0,o.useContext)(xt),a=i?.indentation||0,s=e.bulletedListData?.offset||0,l=(i&&i?.nodeId!==e.id?1:0)+a+s,c=ue(Jn,ln[r||en.AUTO]);return o.createElement("ul",{className:c},o.createElement(Ct,{visibleIndentation:{indentation:l,nodeId:e.id}},o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{nodes:e.nodes??[]}))))};var jn=({node:e,...t})=>o.createElement($n,{key:e.id,node:e,...t}),Hn=n(92887);function zn(e){return e<0?0:e>Hn.zV?Hn.zV:e}const Wn={[ie.BULLETED_LIST]:["disc","circle","square"],[ie.ORDERED_LIST]:["decimal","lower-latin","lower-roman"]};const Yn=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>{const{seoMode:r}=(0,o.useContext)(wt.U),{parentIndex:i}=(0,o.useContext)(Pt),{visibleIndentation:a}=(0,o.useContext)(xt),s=e.nodes[0],l=`${s?.type?.toLowerCase()}Data`,{textAlignment:c}=s?.[l]?.textStyle||{},u=c&&c===en.CENTER,{parentNode:p}=(0,o.useContext)(Pt),m=a&&a?.nodeId===p?.id?zn(a?.indentation):0,h=function(e,t){if(!e)return"1.5em";const n=`${e?.type?.slice(0,-5).toLowerCase()}ListData`,o=e[n]?.offset||0,r=t>Hn.zV?o-(t-Hn.zV):zn(o);return e?2*zn(r)+1.5+"em":""}(p,a?.indentation||0),g=p?function(e,t){const n=Wn[t];return n?n[e%n.length]:""}(m,p.type):"",_=s?.type===d.J.HEADING&&s.headingData?.level,f=ue(Gn,Qt(r)&&Xt(r?.paywall||{},t+i)),E=s?.nodes?.[0]?.textData?.decorations?.find(e=>e.type===d.a.FONT_SIZE)?.fontSizeData?.value;return o.createElement("li",{dir:"auto","aria-level":m+1,className:f,style:{textAlign:c,fontSize:E,marginInlineStart:h,listStyleType:g},..._?{"data-heading-level":gn[_]}:{},...u?{"data-list-style-position":"inside"}:{}},o.createElement(mn,{directionHandled:!0},o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{nodes:e.nodes??[],shouldParagraphApplyTextStyle:!0}))))};var Kn=({node:e,...t})=>o.createElement(Yn,{key:e.id,node:e,...t});const qn=({node:e,nodeIndex:t,RicosNodesRenderer:n})=>{const{textAlignment:r}=(0,o.useContext)(It),{visibleIndentation:i}=(0,o.useContext)(xt),a=i?.indentation||0,s=e.orderedListData?.offset||0,l=(i&&i?.nodeId!==e.id?1:0)+a+s,c=ue(Fn,ln[r||en.AUTO]);return o.createElement("ol",{className:c,start:e.orderedListData?.start},o.createElement(Ct,{visibleIndentation:{indentation:l,nodeId:e.id}},o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{nodes:e.nodes??[]}))))};var Zn=({node:e,...t})=>o.createElement(qn,{key:e.id,node:e,...t}),Xn="-eHYR HhqCj",Qn="-rcXh";const eo=({node:e,nodeIndex:t,RicosNodesRenderer:n,shouldParagraphApplyTextStyle:r})=>{const{seoMode:i}=(0,o.useContext)(wt.U),{textAlignment:a}=(0,o.useContext)(It),{parentNode:s}=(0,o.useContext)(Pt),l=(0,o.useContext)(pn),{indentation:c=0}=e.paragraphData||{},{textAlignment:d,lineHeight:u}=e.paragraphData?.textStyle||{},p=d!==en.AUTO&&d?d:a,m=ue(r&&Xn,ln[p||en.AUTO],qt[tn[c]],!s&&Qt(i)&&Xt(i?.paywall||{},t)),h=ue(Qn,d===en.JUSTIFY&&ln[d]),g=!e.nodes?.length,_=!g&&"\n"===e.nodes?.[e.nodes?.length-1]?.textData?.text?.slice(-1),f=g||!r?"div":"p",E={...e.style,...u&&{lineHeight:sn(u)}},y=g?o.createElement("br",{role:"presentation"}):o.createElement(Dt,{parentNode:e,parentIndex:t},o.createElement(n,{key:`children-${e.id}`,nodes:e.nodes??[]}));return o.createElement(Zt,{nodeId:e.id},o.createElement(f,{className:m,style:E,dir:l?"":"auto"},o.createElement("span",{className:h},y),_&&o.createElement("br",{role:"presentation"})))};var to=({node:e,...t})=>o.createElement(eo,{key:e.id,node:e,...t});const no=({node:e})=>{const{text:t}=e.textData||{},{nodeViewDecorators:n}=(0,o.useContext)(vt);return t&&""!==t?o.createElement("span",null,n.applyTextual(e)||t):o.createElement("br",{role:"presentation"})};var oo,ro=(oo=e=>{const{parentId:t,nodeIndex:n}=e,r=`${t}-text-node-${n}`;return o.createElement(no,{key:r,...e})},function(e){return o.createElement(Pt.Consumer,{key:Math.random().toString().slice(2,9)},({parentNode:t,parentIndex:n})=>o.createElement(oo,{...e,parentNode:t,parentIndex:n}))});var io={[d.J.PARAGRAPH]:to,[d.J.TEXT]:ro,[d.J.BLOCKQUOTE]:an,[d.J.CODE_BLOCK]:un,[d.J.HEADING]:En,[d.J.BULLETED_LIST]:jn,[d.J.ORDERED_LIST]:Zn,[d.J.LIST_ITEM]:Kn,[d.J.LAYOUT]:({node:e,...t})=>o.createElement(Nn,{key:e.id,node:e,...t}),[d.J.LAYOUT_CELL]:({node:e,...t})=>o.createElement(wn,{key:e.id,node:e,...t})},ao=n(56249),so=(e=>(e.NULL_VALUE="NULL_VALUE",e.UNRECOGNIZED="UNRECOGNIZED",e))(so||{});const lo=e=>"boolean"==typeof e.boolValue,co=e=>"string"==typeof e.stringValue,uo=e=>"number"==typeof e.numberValue,po=e=>r.isObject(e.listValue)&&Array.isArray(e.listValue?.values),mo=e=>r.isObject(e.structValue)&&r.isObject(e.structValue?.fields),ho=e=>e.nullValue===so.NULL_VALUE,go=Z((0,R.Ps)()),_o=([e,t])=>({[e]:t}),fo=e=>(0,P.zG)(e.fields,Object.entries,O.UI(ge.Pd(Eo,P.yR)),O.UI(_o),(0,V.ur)(go)),Eo=e=>(0,ao.Pl)(e,null,[[lo,({boolValue:e})=>e],[uo,({numberValue:e})=>e],[co,({stringValue:e})=>e],[ho,()=>null],[po,e=>yo(e.listValue||{values:[]})],[mo,e=>fo(e.structValue||{fields:{}})]]),yo=e=>(0,P.zG)(e.values,O.UI(Eo));var bo={alignLeft:"s20Wv",textWrapNowrap:"gjBx5",alignRight:"UXhK-",alignCenter:"z5ZVK",sizeFullWidth:"uPclb",renderedInTable:"_1WfHq",sizeOriginal:"aPtpv",sizeContent:"IP4q8",sizeSmall:"G-ncZ",sizeSmallCenter:"BE9mi",flex:"WKUjG",atomic:"Q-ulj",embed:"WOmCz",horizontalScrollbar:"rNbpB",pluginContainerMobile:"Dz36t"};const vo=e=>{const t=`${r.camelCase(e.type)}Data`;return e?.[t]?.containerData},To=e=>{const t=e?.alignment;if(!t)return"";const n=`align${r.upperFirst(t.toLowerCase())}`;return bo[n]},wo=e=>{const t=e?.width?.size;if(!t||"FULL_WIDTH"===t)return"";const n=`size${r.upperFirst(t.toLowerCase())}`;return bo[n]},Io=e=>e?.textWrap?"":bo.textWrapNowrap;class Ao extends o.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}render(){return this.state.hasError?null:this.props.children}}const Lo={[d.J.IMAGE]:(e,t)=>e?.image?.width&&t&&("number"==typeof e?.containerData?.width?.custom?e.containerData.width.custom:parseFloat(e?.containerData?.width?.custom||"0"))>150},So=e=>e?.width?.size&&("CONTENT"===e.width.size||"FULL_WIDTH"===e.width?.size),xo={[d.J.IMAGE]:e=>So(e.containerData)?"100%":`${e?.image?.width}px`,[d.J.GIF]:e=>So(e.containerData)?"100%":`${e.width}px`},Co=({nodeType:e,componentData:t,nodeIndex:n,className:r,children:i})=>{const{containerData:a}=t,{seoMode:s}=(0,o.useContext)(wt.U),{isMobile:l}=(0,o.useContext)(ft),{parentNode:c}=(0,o.useContext)(Pt),d=Lo[e]?.(t,l),u=a?.width?.custom&&!d?`${isNaN(Number(a.width.custom))?a.width.custom:parseInt(a.width.custom)}px`:void 0,p=("ORIGINAL"===a?.width?.size||d)&&xo[e]?.(t),m=u||p,h=t&&m?{width:`min(100%, ${m})`}:void 0;return o.createElement("div",{className:ue(r,!c&&Qt(s)&&Xt(s?.paywall||{},n)),style:h},i)};var Po=n(34334),Do=n(59024),Oo="eC4YV",Vo="jhhM5";const Mo=({children:e,nodeType:t,link:n})=>{const{anchorTarget:r,baseUrl:i,customAnchorScroll:a}=(0,o.useContext)(wt.U),{tabIndex:s}=(0,o.useContext)(ft);return n&&t!==d.J.BUTTON?o.createElement("a",{className:ue(Vo,"has-custom-focus",{[Oo]:n}),tabIndex:s,href:n?(0,Po.Q)(n,i):void 0,target:n.target?`_${n.target.toLowerCase()}`:r,rel:n.rel&&D(n.rel),onClick:n?.anchor?e=>{if(a)return a(e,n?.anchor);const t=`viewer-${n?.anchor}`,o=document.getElementById(t);o&&((0,Do.s)(t),(0,Do.l)(o))}:void 0},e):o.createElement(o.Fragment,null,e)},Ro=e=>void 0!==e,ko=(e={})=>({config:{spoiler:{enabled:!!e.spoiler?.enabled,description:e.spoiler?.description,buttonContent:e.spoiler?.buttonText}}}),Bo=({node:e,nodeIndex:t,customClassNames:n,withHorizontalScroll:i,children:a})=>{const{isMobile:s}=(0,o.useContext)(ft),{SpoilerViewerWrapper:l}=(0,o.useContext)(vt),c=`${r.camelCase(e.type)}Data`,d=e[c]||{},{containerData:u,link:p}=d,{alignment:m,size:h,textWrap:g}=n||{},_=ue({[bo.pluginContainerMobile]:s,[bo.horizontalScrollbar]:i},Ro(m)?m:(e=>To(vo(e)))(e),Ro(h)?h:(e=>wo(vo(e)))(e),Ro(g)?g:(e=>Io(vo(e)))(e)),f=(0,o.useCallback)(n=>o.createElement(Co,{className:_,nodeType:e.type,componentData:d,nodeIndex:t},n),[_,e.type,u?.width?.custom,u?.width?.size,u?.alignment,t]),E=(0,o.useCallback)(t=>l?o.createElement(l,{className:_,width:u?.width?.custom?parseInt(u.width.custom):void 0,type:e.type,componentData:ko(u)},t):t,[_,e.type,u?.width?.custom,u?.width?.size,u?.alignment,u?.spoiler?.enabled,u?.spoiler?.buttonText,u?.spoiler?.description]),y=(0,o.useCallback)(t=>o.createElement(Mo,{link:p,nodeType:e.type},t),[e.type,p?.url,p?.target,p?.anchor,p?.rel?.nofollow,p?.rel?.noreferrer,p?.rel?.sponsored]);return"function"==typeof a?o.createElement(Uo,{node:e},a((0,o.useMemo)(()=>({ContainerElement:e=>f(e.children),SpoilerWrapper:e=>E(e.children),LinkWrapper:e=>y(e.children)}),[f,E,y]))):o.createElement(Uo,{node:e},y(E(f(a))))},Uo=({children:e,node:t})=>o.createElement(Ao,null,o.createElement(Zt,{nodeId:t.id},o.createElement("div",{className:bo.atomic},e))),No=({type:e,context:t,node:n,nodeIndex:r,children:i,pluginComponent:{component:a}})=>{const s=t.config?.[e]||{},l=n.externalData&&fo(n.externalData)||{},c=(((u=(d=l).config||{}).width||u.alignment||u.textWrap)&&(["content","original","fullWidth","small"].includes(u.size)||["center","left","right"].includes(u.alignment))?(e=>({..."string"==typeof e.size?{width:{size:e.size.toUpperCase()}}:{},..."string"==typeof e.alignment?{alignment:e.alignment.toUpperCase()}:{},...void 0!==e.textWrap?{textWrap:"nowrap"!==e.textWrap}:{}}))(d.config):d.containerData)||{};var d,u;const p={type:e,componentData:l,settings:s,children:i,...t,blockKey:n.id},m={alignment:To(c),size:wo(c),textWrap:Io(c)};return o.createElement(Bo,{node:n,nodeIndex:r,customClassNames:m},o.createElement(a,{...p}))},Fo=(e,t,n,r)=>{const i=Object.entries(t).reduce((t,[n,i])=>{return n===d.J.EXTERNAL?{...t,...(a={pluginComponent:i,type:n,context:e,SpoilerViewerWrapper:r},{[d.J.EXTERNAL]:({node:e,nodeIndex:t})=>o.createElement(No,{key:e.id,node:e,nodeIndex:t,...a})})}:{...t};var a},{});return{...i,...n}};class Jo{constructor(){this.spoilers={},this.registerSpoiler=(e,t)=>{this.spoilers[e]||(this.spoilers[e]={isActive:!0,notifiers:[]}),this.spoilers[e].notifiers.push(t)},this.toggleSpoiler=e=>{this.spoilers[e].isActive=!this.spoilers[e].isActive,this.spoilers[e].notifiers.forEach(e=>e())},this.isActive=e=>this.spoilers[e]?.isActive}}const Go=e=>$o.includes(e),$o=["FIGURE","LINK_BUTTON","ACTION_BUTTON",d.J.IMAGE,d.J.VIDEO,d.J.GALLERY,d.J.DIVIDER,d.J.HTML,d.J.EMBED,d.J.FILE,d.J.GIF,d.J.AUDIO,d.J.POLL,d.J.BUTTON,d.J.ORDERED_LIST,d.J.BULLETED_LIST,d.J.LIST_ITEM,d.J.LINK_PREVIEW,d.J.APP_EMBED,d.J.CODE_BLOCK,d.J.BLOCKQUOTE,d.J.TABLE,d.J.TABLE_CELL,d.J.LAYOUT,d.J.LAYOUT_CELL,d.J.COLLAPSIBLE_LIST,d.J.COLLAPSIBLE_ITEM_BODY],jo=[[d.J.LAYOUT,d.J.LAYOUT]];var Ho=n(13158),zo="a888c51a";(()=>{var e='._71Vwf,.qX9PE{cursor:pointer;height:14px;margin:0;padding:0;pointer-events:auto;position:relative;width:100%}._71Vwf:not(.POCU-):hover .wvrVc,.qX9PE:not(.POCU-):hover .wvrVc{opacity:1}.POCU-.qX9PE,._71Vwf.POCU-{cursor:auto;height:0;pointer-events:none}.qX9PE{cursor:none;pointer-events:none}._0uGGU .wvrVc{opacity:1}.wvrVc{background-color:var(--ricos-action-color,#116dff);height:2px;top:50%;transform:translateY(-50%);transition:opacity .2s ease;width:100%}.JI0-T,.wvrVc{opacity:0;position:absolute}.JI0-T{background:var(--wds-tooltip-background-fill,var(--wsr-color-D10,#000624));border-radius:var(--wds-tooltip-border-radius,8px);box-shadow:var(--wds-shadow-surface-overlay-dark,var(--wsr-shadow30,0 6px 6px 0 rgba(22,45,61,.06),0 0 18px 0 rgba(22,45,61,.12)));color:var(--wds-tooltip-text-fill,var(--wsr-color-D80,#fff));font-family:var(--wds-font-family-default,var(--wsr-font-family,Madefor,"Helvetica Neue",Helvetica,Arial,"\\30E1\\30A4\\30EA\\30AA","meiryo","\\30D2\\30E9\\30AE\\30CE\\89D2\\30B4 pro w3","hiragino kaku gothic pro",sans-serif));font-size:var(--wds-font-size-body-tiny,var(--wsr-text-font-size-tiny,12px));font-weight:var(--wds-font-weight-regular,var(--wsr-font-weight-regular,400));letter-spacing:var(--wds-font-letter-spacing-0,unset);line-height:var(--wds-font-line-height-body-tiny,var(--wsr-text-line-height-tiny,15px));padding:var(--wds-tooltip-padding-vertical-small,8px) var(--wds-tooltip-padding-horizontal-small,12px) var(--wds-tooltip-padding-vertical-small,7px);word-wrap:break-word;border:none;max-width:180px;pointer-events:none;transform:translateX(-50%) translateY(-100%) scale(.8);transition:opacity .15s ease-out,transform .15s ease-out;word-break:break-word;z-index:1000000}';if(!(void 0!==Ho&&Ho.env,"undefined"==typeof document||document.querySelector('style[data-ricos-style-hash="'+zo+'"]'))){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.setAttribute("data-ricos-style-hash",zo),n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}})();var Wo="qX9PE",Yo="POCU-";const Ko=({collapsed:e})=>o.createElement("div",{className:ue(Wo,{[Yo]:e})}),qo=(e,t,n)=>{const r=e.id||`0-${t}`,i=n[r];if(!i||!Zo(r,n))return[];const a=rr(r,n);return[o.createElement(Ko,{key:`gap-spacer-${i.node?.id||i.index}`,collapsed:a})]},Zo=(e,t)=>{const n=t[e],o=n?.node;if(!n||!o||Qo(o))return!1;if(n.parent&&tr(n))return!1;if(!n.parent){if(0===n.index)return Go(o.type);const e=Object.values(t).filter(e=>0===e.depth).find(e=>e.index===n.index-1);return!!e&&(Go(e.node.type)&&Go(o.type))}return!(!nr(e,t)||!or(e,t))},Xo=(e,t)=>{const n=t[e],o=n?.node;return!(!n||!o||Qo(o))&&(!er(o)&&((!n.parent||!tr(n))&&or(e,t)))},Qo=e=>e.type===d.J.TEXT,er=e=>[d.J.PARAGRAPH,d.J.HEADING,d.J.BLOCKQUOTE,d.J.CODE_BLOCK].includes(e.type),tr=e=>{const t=e.parent;return!!t&&(t.node.type===d.J.TABLE_ROW&&e.node.type===d.J.TABLE_CELL||(t.node.type===d.J.TABLE&&e.node.type===d.J.TABLE_ROW||(t.node.type===d.J.LAYOUT&&e.node.type===d.J.LAYOUT_CELL||(t.node.type===d.J.COLLAPSIBLE_LIST&&e.node.type===d.J.COLLAPSIBLE_ITEM||(t.node.type===d.J.COLLAPSIBLE_ITEM&&(e.node.type===d.J.COLLAPSIBLE_ITEM_TITLE||e.node.type===d.J.COLLAPSIBLE_ITEM_BODY)||((t.node.type===d.J.BULLETED_LIST||t.node.type===d.J.ORDERED_LIST)&&e.node.type===d.J.LIST_ITEM||t.node.type===d.J.LIST_ITEM&&(e.node.type===d.J.BULLETED_LIST||e.node.type===d.J.ORDERED_LIST)))))))},nr=(e,t)=>{const n=t[e];if(!n)return!1;if(0===n.depth){if(0===n.index)return Go(n.node.type);const e=Object.values(t).filter(e=>0===e.depth).find(e=>e.index===n.index-1);return!!e&&Go(e.node.type)}if(er(n.node))return!1;for(let e=n.depth;e>=0;e--){let t=n;for(;t&&t.depth>e;)t=t.parent;if(!t||t.depth!==e)continue;const o=t.index,r=t.parent;if(0!==o){if(r&&r.children[o-1]){let e=r.children[o-1];for(;e.children.length>0;)e=e.children[e.children.length-1];if(0===e.children.length&&!Qo(e.node))return Go(e.node.type);if(Go(e.node.type))return!0;if(Qo(e.node))return!1}}else if(r&&Go(r.node.type))return!0}return!1},or=(e,t)=>{const n=t[e];if(!n)return!1;let o=n;for(let e=n.depth;e>=0;e--){const t=o.parent,n=o.index+1;if(!t||n>=t.children.length){if(0===e)return Go(o.node.type);if(t&&Go(t.node.type))return!0;if(!t)break;o=t;continue}let r=t.children[n];for(;r.children.length>0;)r=r.children[0];if(0===r.children.length&&!Qo(r.node))return Go(r.node.type);if(Go(r.node.type))return!0;if(Qo(r.node))return!1;if(!t)break;o=t}return!1},rr=(e,t)=>{const n=t[e],o=n.parent?n.parent.children[n.index-1]:Object.values(t).find(e=>0===e.depth&&e.index===n.index-1);return!(!n||!o)&&(r=o.node.type,i=n.node.type,jo.some(([e,t])=>e===r&&t===i));var r,i},ir=({node:e})=>null,ar=({node:e,index:t,isRoot:n,shouldParagraphApplyTextStyle:r})=>{const{renderers:i,nodeViewDecorators:a}=(0,o.useContext)(vt),s=i[e.type];return s?a.apply(o.createElement(s,{node:e,key:e.id||t.toString(),RicosNodesRenderer:sr,isRoot:n,nodeIndex:t,NodeViewContainer:Bo,shouldParagraphApplyTextStyle:r}),e,!!n):(console.error(`RicosNodeDedcorated Error: no renderer passed for node type - ${e.type}`),o.createElement(ir,{node:e}))},sr=({nodes:e,isRoot:t,shouldParagraphApplyTextStyle:n,addAnchorsPrefix:r})=>{const{nodeTreeMap:i}=(0,o.useContext)(Vt);return o.createElement(o.Fragment,null,e.flatMap((e,a)=>[...qo(e,a,i),o.createElement(ar,{isRoot:t,node:e,index:a,key:e.id||a.toString(),shouldParagraphApplyTextStyle:n}),...r?[gt(e,a,r)]:[]]),((e,t)=>{if(0===e.length)return null;const n=e[e.length-1].id||"0-"+(e.length-1),r=t[n];return r&&Xo(n,t)?o.createElement(Ko,{key:`gap-spacer-${r.node?.id||r.index+1}`}):null})(e,i))};var lr=sr;var cr=({content:e,context:t,typeMappers:n,nodeViewRenderers:r,nodeViewDecorators:i,SpoilerViewerWrapper:a,addAnchorsPrefix:s})=>{const{nodes:l}=e,c=new Jo,d=(0,o.useMemo)(()=>({...io,...Fo(t,n,r,a)}),[]),u=(0,o.useMemo)(()=>$t.of([...Gt,...i],t),[]),p=(0,o.useMemo)(()=>{const{t:e,locale:n,isMobile:o,theme:r,experiments:i,languageDir:a,jsdomMode:s}=t;return{t:e,locale:n,localeContent:n,isMobile:o,theme:r,experiments:i,languageDir:a,jsdomMode:s,tabIndex:0}},[t.t,t.locale,t.isMobile,t.theme,t.experiments,t.languageDir,t.jsdomMode]),m=(0,o.useMemo)(()=>new Ut(t.isMobile,t.theme.settingsStyles),[]);return o.createElement(o.Fragment,null,o.createElement(Et,{...p},o.createElement(bt,{zIndexService:m},o.createElement(Tt,{nodeViewDecorators:u,renderers:d,SpoilerViewerWrapper:a},o.createElement(wt.W,{contextualData:t},o.createElement(At,{textAlignment:t.textAlignment},o.createElement(St,{spoilerManager:c},o.createElement(Ct,{visibleIndentation:null},o.createElement(Dt,{parentNode:null,parentIndex:0},o.createElement(Mt,{nodes:l??[]},o.createElement("div",{className:pt.rootedTraversedContent},o.createElement(lr,{nodes:l??[],isRoot:!0,addAnchorsPrefix:s,shouldParagraphApplyTextStyle:!0}))))))))))))};const dr={...pt,...mt},ur=({t:e,theme:t,isMobile:n=!1,anchorTarget:o,relValue:r,customAnchorScroll:i,config:a,locale:s,disabled:l,seoMode:c,iframeSandboxDomain:d,textAlignment:u,experiments:p,textDirection:m,direction:h,helpers:g,onNodeClick:_,jsdomMode:f,baseUrl:E})=>({t:e,theme:t||{},isMobile:n,anchorTarget:o,relValue:r,customAnchorScroll:i,config:a,helpers:g||{},locale:s||"en",disabled:l,seoMode:c,iframeSandboxDomain:d,disableRightClick:a?.uiSettings?.disableRightClick,textAlignment:u,experiments:p,textDirection:m,languageDir:h||ut(s),onNodeClick:_,jsdomMode:f,baseUrl:E});var pr=e=>{const{config:t={},onHover:n,isMobile:i=!1,addAnchors:a,onMouseOver:s=()=>{},content:l,setRef:c,typeMappers:d,nodeViewRenderers:u,nodeViewDecorators:p,experiments:m={},t:h}=e,[_,f]=(0,o.useState)(void 0),E=(0,o.useRef)(null),y=(0,o.useRef)(null);(0,o.useLayoutEffect)(()=>{if(!(/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent))||!y.current)return;const e=new ResizeObserver(e=>{const t=e[0].contentRect.height;t>0&&f(t)});return e.observe(y.current),()=>{e.disconnect()}},[l]);const b=(0,o.useCallback)(e=>{E.current=e,c&&(c.current=e)},[c]),v=t[g]?.SpoilerViewerWrapper,T=ur(e),w=ue(dr.viewer,{[mt.rtl]:"rtl"===T.textDirection}),I=r.merge({},i?he.mobile:he.desktop,T.theme),A=at(I,l?.documentStyle??{});return o.createElement(st.Provider,{key:"RicosViewer",value:{experiments:m,isMobile:i,t:h}},o.createElement("div",{className:ue(dr.wrapper),dir:T.languageDir,style:{...A,minHeight:_?`${_}px`:void 0},onMouseEnter:e=>n&&n(e),onMouseOver:s,ref:b,"data-id":"content-viewer"},e.devTools,o.createElement("div",{className:w,ref:y},o.createElement(_t,{addAnchors:a},o.createElement(cr,{content:l,typeMappers:d,context:T,nodeViewRenderers:u,nodeViewDecorators:p,SpoilerViewerWrapper:v}))),o.createElement(ct,{isMobile:i})))};const mr=function(e){const t=e.en;return Object.keys(e).reduce((n,o)=>(n[o]={...t,...e[o]},n),{})}({ar:{VerticalEmbed_Products_Button:"\u0634\u0631\u0627\u0621 \u0627\u0644\u0622\u0646",VerticalEmbed_Events_Button:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0622\u0646",VerticalEmbed_Bookings_Button:"\u062d\u062c\u0632 \u0627\u0644\u0622\u0646",UploadFile_Viewer_Download:"\u062a\u0646\u0632\u064a\u0644 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} \u0633",VerticalEmbed_Units_Minute:"{{minutes}} \u062f"},bg:{VerticalEmbed_Products_Button:"\u041a\u0443\u043f\u0435\u0442\u0435 \u0441\u0435\u0433\u0430",VerticalEmbed_Events_Button:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0430\u0439\u0442\u0435 \u0441\u0435 \u0441\u0435\u0433\u0430",VerticalEmbed_Bookings_Button:"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0430\u0439\u0442\u0435 \u0441\u0435\u0433\u0430",UploadFile_Viewer_Download:"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435 \u043d\u0430 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}\u0447.",VerticalEmbed_Units_Minute:"{{minutes}}\u043c\u0438\u043d."},ca:{VerticalEmbed_Products_Button:"Compra ara",VerticalEmbed_Events_Button:"Registra't ara",VerticalEmbed_Bookings_Button:"Reserva ara",UploadFile_Viewer_Download:"Baixa {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} h",VerticalEmbed_Units_Minute:"{{minutes}} min"},cs:{VerticalEmbed_Products_Button:"Koupit",VerticalEmbed_Events_Button:"Registrovat",VerticalEmbed_Bookings_Button:"Rezervovat",UploadFile_Viewer_Download:"St\xe1hnout {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}\xa0h",VerticalEmbed_Units_Minute:"{{minutes}}\xa0min"},da:{VerticalEmbed_Products_Button:"K\xf8b nu",VerticalEmbed_Events_Button:"Tilmeld dig",VerticalEmbed_Bookings_Button:"Book nu",UploadFile_Viewer_Download:"Download {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} t",VerticalEmbed_Units_Minute:"{{minutes}} min"},de:{VerticalEmbed_Products_Button:"Jetzt kaufen",VerticalEmbed_Events_Button:"Jetzt anmelden",VerticalEmbed_Bookings_Button:"Jetzt buchen",UploadFile_Viewer_Download:"{{fileType}} herunterladen",VerticalEmbed_Units_Hour:"{{hours}} Std.",VerticalEmbed_Units_Minute:"{{minutes}} Min."},el:{VerticalEmbed_Products_Button:"\u0391\u03b3\u03bf\u03c1\u03ac \u03c4\u03ce\u03c1\u03b1",VerticalEmbed_Events_Button:"\u0395\u03b3\u03b3\u03c1\u03b1\u03c6\u03b5\u03af\u03c4\u03b5 \u03c4\u03ce\u03c1\u03b1",VerticalEmbed_Bookings_Button:"\u039a\u03ac\u03bd\u03c4\u03b5 \u03ba\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03c4\u03ce\u03c1\u03b1",UploadFile_Viewer_Download:"\u039b\u03ae\u03c8\u03b7 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}\u03c9",VerticalEmbed_Units_Minute:"{{minutes}} \u03bb\u03b5\u03c0\u03c4\u03ac"},en:{Poll_Viewer_VoteCount_Modal_Voters_Private_Voter:"Private User",Poll_Viewer_ShowAllOptions_CTA:"See All Options",Spoiler_Reveal_Tooltip:"Click to reveal",VerticalEmbed_Event_Error_Subtitle:"This event has been deleted, replace it with another event.",Viewer_Toolbar_Twitter_Tooltip:"Tweet this",CollapsibleListPlugin_CollapseButton_AriaLabel:"Item is collapsed",Spoiler_Reveal_Video_CTA:"Reveal Video",VerticalEmbed_Pricing_Plan:"Plan only",Image_Expand_Button_AriaLabel:"Expand image",VerticalEmbed_From_Price:"From",Poll_Viewer_ShowAllResults_CTA:"See All Results",Spoiler_Reveal_Image_Placeholder:"This image contains a spoiler",VerticalEmbed_Ribbon:"Sale",Audio_Plugin_Elapsed_Time_Slider_AriaLabel:"Seek slider",VerticalEmbed_Error_Subtitle:"This item has been deleted, replace it with another item.",Poll_Viewer_Multiselect_Footer:"You can vote for more than one answer.",Audio_Plugin_More_Actions_Button_AriaLabel:"Show more audio controls",VerticalEmbed_Booking_Fetch_Error_Title:"Service couldn\u2019t be loaded",Fullscreen_Close_Button_AriaLabel:"Close",VerticalEmbed_Event_Fetch_Error_Title:"Event couldn't be loaded",UploadFile_Viewer_Loader:"Loading {{fileType}}",Polls_Plugin_User_Avatar_Alt:"User avatar",Preview_ReadMore_Label:"Read more",Spoiler_Insert_Tooltip:"Spoiler",VerticalEmbed_Product_Fetch_Error_Title:"Product couldn\u2019t be loaded",Fullscreen_Shrink_Button_AriaLabel:"Shrink",Audio_Plugin_Volume_Control_Slider_AriaLabel:"Volume",Spoiler_Reveal_Gallery_Placeholder:"This gallery contains a spoiler",Fullscreen_Expand_Button_AriaLabel:"Expand",VerticalEmbed_Bookings_Button:"Book Now",Audio_Plugin_Volume_Control_Unmute_AriaLabel:"Unmute",Spoiler_Reveal_Gallery_CTA:"Reveal Gallery",Poll_Viewer_ShowLess_CTA:"Show Less",VerticalEmbed_Disabled_Button_Tooltip:"Product page will be available once you publish your site.",Audio_Plugin_Volume_Control_Mute_AriaLabel:"Mute",Poll_Viewer_VoteCount_Modal_Voters_Anonymous:"+{{anonNumber}} anonymous",Poll_Viewer_VoteCount_Modal_Voters_CTA_Follow:"Follow",VerticalEmbed_Products_Button:"Buy Now",Poll_Viewer_Toast_Error_ServerDown:"Couldn't connect to server. Try again later.",Poll_Viewer_VoteCount_Modal_Voters_Header:"{{count}} person voted for this answer",Poll_Viewer_VoteCount:"{{number}} votes",VerticalEmbed_Events_Button:"Register Now",Spoiler_Reveal_Image_CTA:"Reveal Image",Poll_Viewer_Toast_Error_Connection:"No internet. Check your connection.",Poll_Viewer_Visibility_Owner_Footer:"Only you can see the results.",VerticalEmbed_Booking_Error_Title:"Service deleted",VerticalEmbed_Product_Error_Title:"Product deleted",VerticalEmbed_Fetch_Error_Subtitle:"Unable to load item information.",Poll_Viewer_VoteCount_Modal_Voters_Header_plural:"{{count}} people voted for this answer",VerticalEmbed_Event_Error_Title:"Event deleted",CollapsibleListPlugin_ExpandButton_AriaLabel:"Item is expanded",Audio_Plugin_Cover_Alt:"Audio cover",Spoiler_Reveal_Video_Placeholder:"This video contains a spoiler",VerticalEmbed_Product_Fetch_Error_Subtitle:"There was a technical issue. Check your connection or try again.",VerticalEmbed_Fetch_Error_Title:"Failed to load item",Poll_Viewer_Option_AriaLabel_Unchecked:"unchecked",VerticalEmbed_Product_Error_Subtitle:"This product has been deleted, replace it with another product.",VerticalEmbed_Booking_Error_Subtitle:"This service has been deleted, replace it with another service.",Preview_SeeFullPost_Label:"See Full Post",UploadFile_Viewer_Download:"Download {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}}min",VerticalEmbed_Event_Fetch_Error_Subtitle:"There was a technical issue. Check your connection or try again.",VerticalEmbed_Error_Button:"Replace",VerticalEmbed_Error_Title:"Item deleted",VerticalEmbed_Booking_Fetch_Error_Subtitle:"There was a technical issue. Check your connection or try again.",Poll_Viewer_Option_AriaLabel_Checked:"checked"},es:{VerticalEmbed_Products_Button:"Comprar ahora",VerticalEmbed_Events_Button:"Registrarse",VerticalEmbed_Bookings_Button:"Reservar ahora",UploadFile_Viewer_Download:"Descargar {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}}min"},fi:{VerticalEmbed_Products_Button:"Osta nyt",VerticalEmbed_Events_Button:"Rekister\xf6idy nyt",VerticalEmbed_Bookings_Button:"Varaa nyt",UploadFile_Viewer_Download:"Lataa {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} t",VerticalEmbed_Units_Minute:"{{minutes}} min"},fr:{VerticalEmbed_Products_Button:"Acheter",VerticalEmbed_Events_Button:"S'inscrire",VerticalEmbed_Bookings_Button:"R\xe9server",UploadFile_Viewer_Download:"T\xe9l\xe9charger {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} h",VerticalEmbed_Units_Minute:"{{minutes}} min"},he:{VerticalEmbed_Products_Button:"\u05dc\u05e7\u05e0\u05d9\u05d9\u05d4",VerticalEmbed_Events_Button:"\u05dc\u05d4\u05e8\u05e9\u05de\u05d4",VerticalEmbed_Bookings_Button:"\u05d4\u05d6\u05de\u05d9\u05e0\u05d5 \u05e2\u05db\u05e9\u05d9\u05d5",UploadFile_Viewer_Download:"\u05d4\u05d5\u05e8\u05d9\u05d3\u05d5 \u05d0\u05ea {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} \u05e9\u05e2\u05d5\u05ea",VerticalEmbed_Units_Minute:"{{minutes}} \u05d3\u05e7\u05d5\u05ea"},hi:{VerticalEmbed_Products_Button:"\u0905\u092d\u0940 \u0916\u0930\u0940\u0926\u0947\u0902",VerticalEmbed_Events_Button:"\u0905\u092d\u0940 \u092a\u0902\u091c\u0940\u0915\u0930\u0923 \u0915\u0930\u0947\u0902",VerticalEmbed_Bookings_Button:"\u0905\u092d\u0940 \u092c\u0941\u0915 \u0915\u0930\u0947\u0902",UploadFile_Viewer_Download:"{{fileType}} \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902",VerticalEmbed_Units_Hour:"{{hours}}\u0918\u0902\u091f\u0947",VerticalEmbed_Units_Minute:"{{minutes}}\u092e\u093f\u0928\u091f"},hr:{VerticalEmbed_Products_Button:"Kupi odmah",VerticalEmbed_Events_Button:"Prijavi se odmah",VerticalEmbed_Bookings_Button:"Rezerviraj odmah",UploadFile_Viewer_Download:"Preuzmi {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}}min"},hu:{VerticalEmbed_Products_Button:"V\xe1s\xe1rl\xe1s most",VerticalEmbed_Events_Button:"Regisztr\xe1ci\xf3 most",VerticalEmbed_Bookings_Button:"Foglal\xe1s most",UploadFile_Viewer_Download:"{{fileType}} let\xf6lt\xe9se",VerticalEmbed_Units_Hour:"{{hours}} \xf3ra",VerticalEmbed_Units_Minute:"{{minutes}} perc"},id:{VerticalEmbed_Products_Button:"Beli Sekarang",VerticalEmbed_Events_Button:"Daftar Sekarang",VerticalEmbed_Bookings_Button:"Pesan Sekarang",UploadFile_Viewer_Download:"Unduh {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}j",VerticalEmbed_Units_Minute:"{{minutes}}mnt"},it:{VerticalEmbed_Products_Button:"Acquista",VerticalEmbed_Events_Button:"Registrati",VerticalEmbed_Bookings_Button:"Prenota",UploadFile_Viewer_Download:"Scarica {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} h",VerticalEmbed_Units_Minute:"{{minutes}} min"},ja:{VerticalEmbed_Products_Button:"\u8cfc\u5165\u3059\u308b",VerticalEmbed_Events_Button:"\u4eca\u3059\u3050\u767b\u9332",VerticalEmbed_Bookings_Button:"\u4eca\u3059\u3050\u4e88\u7d04",UploadFile_Viewer_Download:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff1a{{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}\u6642\u9593",VerticalEmbed_Units_Minute:"{{minutes}}\u5206"},ko:{VerticalEmbed_Products_Button:"\uad6c\ub9e4\ud558\uae30",VerticalEmbed_Events_Button:"\ub4f1\ub85d\ud558\uae30",VerticalEmbed_Bookings_Button:"\uc608\uc57d\ud558\uae30",UploadFile_Viewer_Download:"{{fileType}} \ub2e4\uc6b4\ub85c\ub4dc",VerticalEmbed_Units_Hour:"{{hours}}\uc2dc\uac04",VerticalEmbed_Units_Minute:"{{minutes}}\ubd84"},lt:{VerticalEmbed_Products_Button:"Pirkti",VerticalEmbed_Events_Button:"Registruotis",VerticalEmbed_Bookings_Button:"U\u017esakyti",UploadFile_Viewer_Download:"Atsisi\u0173sti {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}\xa0val.",VerticalEmbed_Units_Minute:"{{minutes}}\xa0min."},lv:{VerticalEmbed_Products_Button:"P\u0113rciet t\u016bl\u012bt",VerticalEmbed_Events_Button:"Re\u0123istr\u0113jieties t\u016bl\u012bt",VerticalEmbed_Bookings_Button:"Rezerv\u0113jiet t\u016bl\u012bt",UploadFile_Viewer_Download:"Lejupiel\u0101d\u0113t {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}\xa0h",VerticalEmbed_Units_Minute:"{{minutes}}\xa0min"},ms:{VerticalEmbed_Products_Button:"Beli Sekarang",VerticalEmbed_Events_Button:"Daftar Sekarang",VerticalEmbed_Bookings_Button:"Tempah Sekarang",UploadFile_Viewer_Download:"Muat turun {{fileType}}",VerticalEmbed_Units_Hour:"{{jam}}j",VerticalEmbed_Units_Minute:"{{minit}}min"},nl:{VerticalEmbed_Products_Button:"Nu kopen",VerticalEmbed_Events_Button:"Nu registreren",VerticalEmbed_Bookings_Button:"Nu boeken",UploadFile_Viewer_Download:"Download {{fileType}}",VerticalEmbed_Units_Hour:"{{uur}}u",VerticalEmbed_Units_Minute:"{{minuten}}min"},no:{VerticalEmbed_Products_Button:"Kj\xf8p n\xe5",VerticalEmbed_Events_Button:"Registrer deg n\xe5",VerticalEmbed_Bookings_Button:"Book n\xe5",UploadFile_Viewer_Download:"Last ned {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}t",VerticalEmbed_Units_Minute:"{{minutes}}min"},pl:{VerticalEmbed_Products_Button:"Kup teraz",VerticalEmbed_Events_Button:"Zarejestruj si\u0119 teraz",VerticalEmbed_Bookings_Button:"Zarezerwuj teraz",UploadFile_Viewer_Download:"Pobierz {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}}min"},pt:{VerticalEmbed_Products_Button:"Comprar",VerticalEmbed_Events_Button:"Registrar-se",VerticalEmbed_Bookings_Button:"Agendar",UploadFile_Viewer_Download:"Fazer download de {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}}min"},ro:{VerticalEmbed_Products_Button:"Cump\u0103r\u0103 acum",VerticalEmbed_Events_Button:"\xcenregistreaz\u0103-te acum",VerticalEmbed_Bookings_Button:"Rezerv\u0103 acum",UploadFile_Viewer_Download:"Descarc\u0103 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} h",VerticalEmbed_Units_Minute:"{{minutes}} min"},ru:{VerticalEmbed_Products_Button:"\u041a\u0443\u043f\u0438\u0442\u044c",VerticalEmbed_Events_Button:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f",VerticalEmbed_Bookings_Button:"\u0417\u0430\u0431\u0440\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c",UploadFile_Viewer_Download:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} \u0447.",VerticalEmbed_Units_Minute:"{{minutes}} \u043c\u0438\u043d."},sk:{VerticalEmbed_Products_Button:"K\xfapi\u0165 teraz",VerticalEmbed_Events_Button:"Zaregistrujte sa teraz",VerticalEmbed_Bookings_Button:"Rezervova\u0165 teraz",UploadFile_Viewer_Download:"Stiahnu\u0165 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}}min"},sl:{VerticalEmbed_Products_Button:"Kupi zdaj",VerticalEmbed_Events_Button:"Registrirajte se zdaj",VerticalEmbed_Bookings_Button:"Rezerviraj zdaj",UploadFile_Viewer_Download:"Prenos {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}} min"},sv:{VerticalEmbed_Products_Button:"K\xf6p nu",VerticalEmbed_Events_Button:"Registrera dig nu",VerticalEmbed_Bookings_Button:"Boka nu",UploadFile_Viewer_Download:"Ladda ner {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} t",VerticalEmbed_Units_Minute:"{{minutes}} min"},th:{VerticalEmbed_Products_Button:"\u0e0b\u0e37\u0e49\u0e2d\u0e40\u0e25\u0e22",VerticalEmbed_Events_Button:"\u0e25\u0e07\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49",VerticalEmbed_Bookings_Button:"\u0e08\u0e2d\u0e07\u0e40\u0e25\u0e22",UploadFile_Viewer_Download:"\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} \u0e0a\u0e21.",VerticalEmbed_Units_Minute:"{{minutes}} \u0e19\u0e32\u0e17\u0e35"},tl:{VerticalEmbed_Products_Button:"Bumili Na",VerticalEmbed_Events_Button:"Magparehistro Na",VerticalEmbed_Bookings_Button:"Mag-book Na",UploadFile_Viewer_Download:"I-download ang {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}}h",VerticalEmbed_Units_Minute:"{{minutes}}min"},tr:{VerticalEmbed_Products_Button:"Sat\u0131n Al",VerticalEmbed_Events_Button:"Hemen Kaydol",VerticalEmbed_Bookings_Button:"Yer Ay\u0131rt",UploadFile_Viewer_Download:"{{fileType}} dosyas\u0131n\u0131 indir",VerticalEmbed_Units_Hour:"{{hours}} sa.",VerticalEmbed_Units_Minute:"{{minutes}} dk."},uk:{VerticalEmbed_Products_Button:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0437\u0430\u0440\u0430\u0437",VerticalEmbed_Events_Button:"\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044f",VerticalEmbed_Bookings_Button:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f",UploadFile_Viewer_Download:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} \u0433\u043e\u0434.",VerticalEmbed_Units_Minute:"{{minutes}} \u0445\u0432."},vi:{VerticalEmbed_Products_Button:"Mua ngay",VerticalEmbed_Events_Button:"\u0110\u0103ng k\xfd ngay",VerticalEmbed_Bookings_Button:"\u0110\u0103\u0323t ngay",UploadFile_Viewer_Download:"T\u1ea3i v\u1ec1 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} gi\u1edd",VerticalEmbed_Units_Minute:"{{minutes}} ph\xfat"},zh:{VerticalEmbed_Products_Button:"\u7acb\u5373\u8cfc\u8cb7",VerticalEmbed_Events_Button:"\u7acb\u5373\u5831\u540d",VerticalEmbed_Bookings_Button:"\u7acb\u5373\u9810\u8a02",UploadFile_Viewer_Download:"\u4e0b\u8f09 {{fileType}}",VerticalEmbed_Units_Hour:"{{hours}} \u5c0f\u6642",VerticalEmbed_Units_Minute:"{{minutes}} \u5206\u9418"}}),hr=e=>{const t=e.locale,[r,i]=o.useState(()=>({status:"READY",loadedLocales:["en"],i18nextInstance:gr({activeLocale:t,resources:mr})})),{i18nextInstance:a,loadedLocales:s}=r;t!==a.language&&a.changeLanguage(t),o.useEffect(()=>{if(s.includes(t)||"READY"!==r.status)return;(async()=>{try{i(e=>({...e,status:"LOADING"}));const e=(await n(3274)(`./messages_${t}.json`)).default;a.addResourceBundle(t,"translation",e,!0,!0),i(e=>({...e,status:"READY",loadedLocales:[...e.loadedLocales,t]}))}catch(e){if(console.error(`Failed to load locale resource for ${t}:`,e),"en"===t||s.includes("en"))i(e=>({...e,status:"ERROR"}));else try{console.warn(`Falling back to English locale for ${t}`);const e=(await n.e(3714).then(n.t.bind(n,20378,17))).default;a.addResourceBundle("en","translation",e,!0,!0),i(e=>({...e,status:"READY",loadedLocales:[...e.loadedLocales,"en"]}))}catch(e){console.error("Failed to load fallback English locale:",e),i(e=>({...e,status:"ERROR"}))}}})()},[t,s]);const l=o.useMemo(()=>a.t.bind(a),[a]);return function(e){const{[h]:t,[m]:n}=e||{},o=!t?.onExpand||!n?.onExpand;return!((!t||t.disableExpand)&&(!n||n?.disableExpand))&&o}(e.config)?o.createElement(le,{key:"RicosFullscreenProvider",fullscreenProps:e?.fullscreenProps,isMobile:!!e.isMobile,content:e.content,experiments:e.experiments,config:e.config,jsdomMode:e.jsdomMode,t:l},({config:t,onHover:n})=>o.createElement(pr,{...e,config:t,t:l,onHover:n})):o.createElement(pr,{...e,t:l})};function gr({activeLocale:e,resources:t}){const n=Object.keys(t).reduce((e,n)=>(e[n]={translation:t[n]},e),{}),o=ne.Z.createInstance({lng:e,keySeparator:"$",interpolation:{escapeValue:!1},resources:n});return o.init(),o}class _r extends o.Component{constructor(e){super(e),this.loadTextSelection=()=>{const{textSelectionToolbar:e,isMobile:t}=this.props;if(e&&!t&&!this.state.TextSelectionToolbar){const e=o.lazy(()=>n.e(8157).then(n.bind(n,48157)));this.setState({TextSelectionToolbar:e})}},this.loadLinkPreviewPopover=()=>{const{linkPreviewPopoverFetchData:e,isMobile:t}=this.props;if(e&&!t&&!this.state.LinkPreviewPopover){const e=o.lazy(()=>n.e(346).then(n.bind(n,20346)));this.setState({LinkPreviewPopover:e})}},this.onMouseOver=()=>{this.loadTextSelection(),this.loadLinkPreviewPopover()},this.getBiCallback=e=>{const{children:t,_rcProps:n}=this.props;return t?.props.helpers?.[e]||n?.helpers?.[e]},this.viewerRef=(0,o.createRef)(),this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}componentDidMount(){const e=this.getBiCallback("onViewerLoaded"),t=this.props.content||this.props._rcProps?.content,{pluginsCount:o}=t&&function(e){const{nodes:t}=e,n=(0,w.K)(t??[]).filter(e=>![d.J.PARAGRAPH,d.J.TEXT,d.J.UNRECOGNIZED,d.J.COLLAPSIBLE_ITEM,d.J.COLLAPSIBLE_ITEM_BODY,d.J.COLLAPSIBLE_ITEM_TITLE,d.J.TABLE_CELL,d.J.TABLE_ROW].includes(e.type)).map(e=>{const{type:t}=e,n=I(e),o={},r=L[t]||t===d.J.HEADING&&S[n?.level];return r&&(o.type=r,n&&(o.data=n)),o}).filter(e=>!!e.type).get(),o=(0,w.K)(t??[]).filter(e=>!!e.textData?.decorations?.some(e=>[d.a.ANCHOR,d.a.LINK,d.a.MENTION].includes(e.type))).map(e=>{const t=e.textData?.decorations?.find(e=>x[e.type]),n={},o=t?.type&&x[t.type];return o&&(n.type=o,t&&(n.data=I(e))),n}).filter(e=>!!e.type).get(),r=(0,w.K)(t??[]).map(({textData:e})=>e?.text||"").get().reduce((e,t)=>e+(t.match(C)||[]).length,0);return{pluginsCount:{...A(n),...A(o),[u]:r},pluginsDetails:[...n,...o]}}(t)||{};var r,i,s,l,c,p;o&&e?.({isPreview:!1,version:a,pluginsCount:o,url:document.URL,contentId:t?.metadata?.id}),r=this.viewerRef.current,i=()=>this.setState({debugInvokedWithMouse:!0}),l=null,c=function(e){e.metaKey&&e.shiftKey&&e.altKey&&!l&&(l=function(e){2===e.detail&&(i(),s&&"undefined"!=typeof window&&Promise.all([n.e(2321),n.e(8957)]).then(n.bind(n,5417)).then(function(e){(0,e.applyDevTools)(s.view,{})},function(e){console.error("Failed to load prosemirror-dev-tools",e)}))},null==r||r.addEventListener("click",l,{capture:!0}))},p=function(e){e.metaKey&&e.shiftKey&&e.altKey||l&&(null==r||r.removeEventListener("click",l),l=null)},document.addEventListener("keydown",c),document.addEventListener("keyup",p)}render(){const{seoSettings:e,linkPreviewPopoverFetchData:t,mediaSettings:n,content:r,debugMode:i}=this.props,{TextSelectionToolbar:s,LinkPreviewPopover:d}=this.state,u=te({...this.props,viewerProps:{seoMode:e,onMouseOver:this.onMouseOver,locale:this.props.locale}});try{return this.state.error?(this.props.onError?.(this.state.error),null):[o.createElement(hr,{...u,content:this.state.content??u.content,config:u.config,onHover:()=>{},key:"viewer",setRef:this.viewerRef,fullscreenProps:n?.fullscreenProps,devTools:this.state.debugInvokedWithMouse||l(i?.includes("all"))?o.createElement(o.Suspense,null,o.createElement(c,{schema:{getContent:()=>this.state.content??u.content,setContent:e=>this.setState({content:e})},version:a,mode:"viewer",contentState:r,ricosProps:this.props,autoOpen:this.state.debugInvokedWithMouse??!1})):null}),s?o.createElement(o.Suspense,{key:"TextSelectionToolbar",fallback:o.createElement("div",null)},o.createElement(s,{onButtonClick:this.getBiCallback("onViewerAction"),container:this.viewerRef.current})):null,d?o.createElement(o.Suspense,{key:"LinkPreviewPopover",fallback:o.createElement("div",null)},o.createElement(d,{fetchUrlPreviewData:t,container:this.viewerRef.current})):null]}catch(e){return this.props.onError?.(e),null}}}_r.displayName="RicosViewerNext",_r.defaultProps={onError:e=>{throw e}};var fr=_r;function Er(e){const t={ricosFeatures:{},wixRicosFeatures:{}};if(!e)return t;const n=function(e){return Object.entries(e).reduce((e,[t,n])=>{const[,o,r]=t.split("."),i=n.toString().toLowerCase();return e[r]={enabled:""!==i&&"false"!==i,value:n,namespace:o},e},{})}(r.isFunction(e?.all)?e.all():e);return Object.entries(n).reduce((e,[t,n])=>("wixRicos"===n?.namespace?e.wixRicosFeatures[t]=n:"ricos"===n?.namespace&&(e.ricosFeatures[t]=n),e),t)}function yr(e){return{evid:47,src:116,endpoint:"rich-editor",params:e}}function br(e){return{evid:51,src:116,endpoint:"rich-editor",params:e}}function vr(e){return{evid:25,src:116,endpoint:"rich-editor",params:e}}function Tr(e){return{evid:2,src:116,endpoint:"rich-editor",params:e}}function wr(e){return{evid:50,src:116,endpoint:"rich-editor",params:e}}function Ir(e){return{evid:9,src:116,endpoint:"rich-editor",params:e}}function Ar(e){return{evid:13,src:116,endpoint:"rich-editor",params:e}}function Lr(e){return{evid:3,src:116,endpoint:"rich-editor",params:e}}function Sr(e){return{evid:46,src:116,endpoint:"rich-editor",params:e}}function xr(e){return{evid:5,src:116,endpoint:"rich-editor",params:e}}function Cr(e){return{evid:16,src:116,endpoint:"rich-editor",params:e}}function Pr(e){return{evid:4,src:116,endpoint:"rich-editor",params:e}}function Dr(e){return{evid:33,src:116,endpoint:"rich-editor",params:e}}function Or(e){return{evid:8,src:116,endpoint:"rich-editor",params:e}}function Vr(e){return{evid:15,src:116,endpoint:"rich-editor",params:e}}function Mr(e){return{evid:55,src:116,endpoint:"rich-editor",params:e}}function Rr(e){return{evid:6,src:116,endpoint:"rich-editor",params:e}}function kr(e){return{evid:14,src:116,endpoint:"rich-editor",params:e}}function Br(e){return{evid:11,src:116,endpoint:"rich-editor",params:e}}function Ur(e){return{evid:17,src:116,endpoint:"rich-editor",params:e}}const Nr={addPluginLink:function(e){return{evid:26,src:116,endpoint:"rich-editor",params:e}},searchForPlugin:function(e){return{evid:35,src:116,endpoint:"rich-editor",params:e}},searchInsideThePlugin:function(e){return{evid:34,src:116,endpoint:"rich-editor",params:e}},pluginTableColumnRowAction:function(e){return{evid:32,src:116,endpoint:"rich-editor",params:e}},tablePluginAddColumnRow:function(e){return{evid:20,src:116,endpoint:"rich-editor",params:e}},tablePluginDeleteColumnRow:function(e){return{evid:21,src:116,endpoint:"rich-editor",params:e}},tablePluginClickOnOptionMenu:function(e){return{evid:22,src:116,endpoint:"rich-editor",params:e}},tablePluginClickActionFromOptionMenu:function(e){return{evid:23,src:116,endpoint:"rich-editor",params:e}},settingsModalOpenedForPlugin:function(e){return{evid:36,src:116,endpoint:"rich-editor",params:e}},settingsModalClosedForPlugin:function(e){return{evid:37,src:116,endpoint:"rich-editor",params:e}}};function Fr(e){return{evid:59,src:116,endpoint:"",params:e}}const Jr=e=>({evid:1113,src:76,endpoint:"",params:e}),Gr=(e,t)=>{if(t){const n={element_id:e||"",url:"undefined"!=typeof window?window.location.href:"",elementGroup:"Ricos",actionName:""};switch(t.type){case d.J.BUTTON:return{...n,elementTitle:t.buttonData?.text||"",details:t.buttonData?.link?.rel?JSON.stringify(t.buttonData.link.rel):"",elementType:d.J.BUTTON,value:t.buttonData?.link?.url||""};case d.J.LINK_PREVIEW:return{...n,elementTitle:t.linkPreviewData?.title||"",details:t.linkPreviewData?.link?.rel?JSON.stringify(t.linkPreviewData.link.rel):"",elementType:d.J.LINK_PREVIEW,value:t.linkPreviewData?.link?.url||""};case d.J.APP_EMBED:return{...n,elementTitle:t.appEmbedData?.name||"",details:t.appEmbedData?.type||"",elementType:d.J.APP_EMBED,value:t.appEmbedData?.url||""};case d.J.TEXT:{const e=t.textData?.decorations?.find(({type:e})=>e===d.a.LINK);if(e)return{...n,elementTitle:t.textData?.text||"",details:e?.linkData?.link?.rel?JSON.stringify(e.linkData.link.rel):"",elementType:d.a.LINK,value:e?.linkData?.link?.url||""};break}default:return}}};function $r(e){const{bsi:t,metaSiteId:n,visitorId:o,appId:i,instanceId:a,siteOwnerId:s}=e;return r.pickBy({bsi:t,msid:n,_visitorId:o,_appId:i,_instanceId:a,_siteOwnerId:s},r.identity)}class jr{constructor({logger:e,webBiLogger:t,genericParams:o,essentials:i={}}){if(e)this.newLoggerConfig={logger:e,genericParams:r.omit(o,"msid")};else if(!s()){const e=Promise.resolve(t||n.e(6563).then(n.bind(n,64627)).then(e=>e.webBiLogger));this.oldLogger=e.then(e=>(e.default?.default?e.default:e).factory().updateDefaults({...o,...$r(i)}).logger())}}log(e,t){if(this.newLoggerConfig){const n=e(t),{params:o,...r}=n;this.newLoggerConfig.logger.report?.({params:{...this.newLoggerConfig.genericParams,...o},...r})}else this.oldLogger?this.oldLogger.then(n=>n.report(e(t))):console.error("[RicosBILogger.ts:log] RicosBILogger was not initialized")}logV2(e){const t={evid:101,src:116,endpoint:"rich-editor",params:e};this.newLoggerConfig?this.newLoggerConfig.logger.report?.(t):this.oldLogger?this.oldLogger.then(e=>e.report(t)):console.error("[RicosBILogger.ts:log] RicosBILogger was not initialized")}}const Hr=(()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})})();function zr(e,t,n,o,r,i){const{biCallbacks:a,postId:s,contentId:l,...c}=r,d=s||l||"",u={...c.defaultParams,bsi:c.defaultParams?.bsi||"undefined"!=typeof window&&window.commonConfig?.bsi},p=new jr({logger:c.logger,webBiLogger:c.webBiLogger,genericParams:{container:c.consumer||"default",container_id:e,container_platform:c.platform,container_usage:c.usage,post_id:d,rce_session_id:Hr,msid:t,wixRicosVersion:n,version:o},essentials:u}),m=((e,{postId:t})=>({biLogger:e,onModalAction:({pluginId:t,modalId:n,modalSessionId:o,actionName:r,value:i,actionNumber:a,initialSelection:s,style:l})=>{e.log(Fr,{action:r,modal_session_id:o,numActions:a-1,actionNumber:a,modal_id:n,plugin_id:t,content_id:"",uuid:"",value:i,initial_selection:s,style:l})},onPluginAdd:(t,n,o,r)=>e.log(Tr,{plugin_id:t,search_term:void 0,entry_point:n,version:o,content_id:r,entry_type:void 0,plugins_details:void 0,pluginUniqueId:void 0,button_name:void 0,plugin_specification:void 0,editor_engine:void 0}),onPluginAddStep:({entryPoint:t,entryType:n,pluginDetails:o,pluginId:r,step:i,version:a,contentId:s})=>e.log(Br,{entry_point:t,entry_type:n,params:void 0,plugin_id:r,pluginUniqueId:o,plugins_details:void 0,step:i,version:a,content_id:s,plugin_specification:void 0}),onPluginAddSuccess:(t,n,o,r,i)=>e.log(Rr,{plugin_id:t,entry_point:n,entry_type:void 0,params:JSON.stringify(o),plugins_details:void 0,pluginUniqueId:void 0,version:r,content_id:i,plugin_specification:void 0,editor_engine:void 0,is_tiptap:void 0,mediaOrigin:void 0}),onPluginDelete:({pluginId:t,pluginDetails:n,version:o,contentId:r})=>e.log(Pr,{plugin_id:t,plugins_details:JSON.stringify(n||{}),pluginUniqueId:void 0,version:o,content_id:r,editor_engine:void 0}),onPluginChange:(t,n,o,r)=>e.log(Lr,{plugin_id:t,plugins_details:JSON.stringify(n),settingSessionId:void 0,button_name:void 0,category:void 0,origin:void 0,type:void 0,value:void 0,pluginUniqueId:void 0,version:o,content_id:r,editor_engine:void 0}),onPublish:(n,o,r,i,a)=>e.log(xr,{post_id:n||t,plugins_count:o?JSON.stringify(o):void 0,plugins_details:"",params:void 0,version:i,content_id:a,editor_engine:void 0,is_tiptap:void 0}),onMenuLoad:({menu:t,version:n,contentId:o})=>e.log(Ur,{menu:t,version:n,content_id:o}),onPluginModalOpened:({entryPoint:t,entryType:n,pluginDetails:o,pluginId:r,version:i,contentId:a,dropdownValue:s,modalSessionId:l})=>e.log(Dr,{entry_point:t,entry_type:n,plugin_id:r,plugins_details:JSON.stringify(o),version:i,content_id:a,plugin_specification:void 0,editor_engine:void 0,is_tiptap:void 0,dropdown_value:s,modal_session_id:l}),onViewerAction:(t,n,o,r,i)=>{e.log(Or,{action_name:n,plugin_id:t,value:o,plugins_details:void 0,pluginUniqueId:void 0,content_id:r,params:void 0,productType:void 0,plugin_specification:void 0});const a=Gr(r,i);a&&e.log(Jr,a)},onViewerLoaded:({isPreview:t,url:n,pluginsCount:o,version:r,contentId:i})=>{const a="boolean"==typeof t?t:"string"==typeof t&&"true"===t;e.log(Vr,{preview:a,postURL:n,version:r,content_id:i,pluginsCount:JSON.stringify(o)})},onOpenEditorSuccess:(t,n,o)=>e.log(Ir,{toolbarType:n,version:t,content_id:o,editor_engine:void 0,is_tiptap:void 0}),onContentEdited:({version:t,contentId:n})=>e.log(Cr,{version:t,content_id:n,contact_id:void 0,container_type:void 0,editing_time:void 0,paragraph_count:void 0,word_count:void 0,editor_engine:void 0,is_tiptap:void 0}),onInlineToolbarOpen:({version:t,toolbarType:n,pluginId:o,contentId:r})=>e.log(Sr,{version:t,content_id:r,toolbarType:n,plugin_id:o}),onToolbarButtonClick:({buttonName:t,category:n,origin:o,pluginDetails:r,pluginId:i,pluginUniqueId:a,type:s,value:l,version:c,contentId:d})=>e.log(Lr,{button_name:t,category:n,origin:o,pluginUniqueId:a,plugin_id:i,plugins_details:r,type:s,value:l,version:c,content_id:d,settingSessionId:void 0,editor_engine:void 0}),onKeyboardShortcutAction:({buttonName:t,pluginId:n,value:o,version:r,contentId:i})=>e.log(yr,{button_name:t,category:void 0,origin:void 0,pluginUniqueId:void 0,plugin_id:n,plugins_details:void 0,type:void 0,value:o,version:r,content_id:i,settingSessionId:void 0}),onMediaUploadStart:(t,n,o,r,i,a)=>{e.log(Ar,{plugin_id:n,correlationId:t,fileSize:o,mediaType:r,type:void 0,version:i,content_id:a})},onMediaUploadEnd:(t,n,o,r,i,a,s,l,c)=>{e.log(kr,{plugin_id:n,correlationId:t,duration:o,fileSize:r,mediaType:i,isSuccess:a,errorReason:s,type:void 0,version:l,content_id:c})},onPluginAction:(t,n)=>{if(n.params){const e=JSON.stringify(n.params);n.params=e}const{contentId:o,...r}=n||{};e.log(Nr[t],{content_id:o,version:void 0,plugins_details:void 0,...r})},onPluginsPopOverTabSwitch:({pluginId:t,buttonName:n,version:o,contentId:r})=>{e.log(br,{plugin_id:t,button_name:n,content_id:r,version:o,plugins_details:void 0,pluginUniqueId:void 0,settingSessionId:void 0,category:void 0,origin:void 0,value:void 0,type:void 0})},onPluginsPopOverClick:({pluginId:t,buttonName:n,version:o,contentId:r})=>{e.log(wr,{plugin_id:t,button_name:n,content_id:r,version:o,plugins_details:void 0,pluginUniqueId:void 0,settingSessionId:void 0,category:void 0,origin:void 0,value:void 0,type:void 0})},onChangePluginSettings:({pluginId:t,actionName:n,value:o,version:r,contentId:i})=>{e.log(vr,{plugin_id:t,actionName:n,content_id:i,value:o,version:r,container:void 0,container_id:void 0,container_platform:void 0,entry_point:void 0,entry_type:void 0,layout:void 0,params:o,pluginUniqueId:void 0,plugins_details:void 0})},mediaPluginsDetails:({pluginId:t,creator:n,title:o,track_duration:r,url:i,type:a,version:s,contentId:l})=>{e.log(Mr,{plugin_id:t,creator:n,title:o,track_duration:r?.toString(),url:i,type:a,version:s,content_id:l,pluginUniqueId:void 0,container:void 0,container_id:void 0,container_platform:void 0,params:void 0})}}))(p,{postId:d});return{biLogger:p,helpers:{onModalAction:e=>{m.onModalAction(e),a?.onModalAction?.(e)},onPluginAdd:(e,t,n,o)=>{m.onPluginAdd(e,t,n,o),a?.onPluginAdd?.(e,t,n,o)},onPluginAddStep:e=>{m.onPluginAddStep(e),a?.onPluginAddStep?.(e)},onPluginAddSuccess:(e,t,n,o,r)=>{m.onPluginAddSuccess(e,t,n,o,r),a?.onPluginAddSuccess?.(e,t,n,o,r)},onPluginDelete:e=>{m.onPluginDelete(e),a?.onPluginDelete?.(e)},onPublish:(e,t,n,o,r)=>{const i=e||s||l;m.onPublish(i,t,n,o,r),a?.onPublish?.(i,t,n,o,r)},onMenuLoad:e=>{m.onMenuLoad(e),a?.onMenuLoad?.(e)},onPluginModalOpened:e=>{m.onPluginModalOpened(e),a?.onPluginModalOpened?.(e)},onViewerAction:(e,t,n,o,r)=>{m.onViewerAction(e,t,n,o,r),a?.onViewerAction?.(e,t,n,o,r)},onViewerLoaded:e=>{m.onViewerLoaded(e),a?.onViewerLoaded?.(e)},onOpenEditorSuccess:(e,t,n)=>{m.onOpenEditorSuccess(e,t,n),a?.onOpenEditorSuccess?.(e,t,n)},onContentEdited:e=>{m.onContentEdited(e),a?.onContentEdited?.(e)},onInlineToolbarOpen:e=>{m.onInlineToolbarOpen(e),a?.onInlineToolbarOpen?.(e)},onToolbarButtonClick:e=>{m.onToolbarButtonClick(e),a?.onToolbarButtonClick?.(e)},onKeyboardShortcutAction:e=>{m.onKeyboardShortcutAction(e),a?.onKeyboardShortcutAction?.(e)},onMediaUploadStart:(e,t,n,o,r,i)=>{m.onMediaUploadStart(e,t,n,o,r,i),a?.onMediaUploadStart?.(e,t,n,o,r,i)},onMediaUploadEnd:(e,t,n,o,r,i,s,l,c)=>{m.onMediaUploadEnd(e,t,n,o,r,i,s,l,c),a?.onMediaUploadEnd?.(e,t,n,o,r,i,s,l,c)},onPluginAction:(e,t)=>{m.onPluginAction(e,t),a?.onPluginAction?.(e,t)},onPluginsPopOverTabSwitch:e=>{m.onPluginsPopOverTabSwitch(e),a?.onPluginsPopOverTabSwitch?.(e)},onPluginsPopOverClick:e=>{m.onPluginsPopOverClick(e),a?.onPluginsPopOverClick?.(e)},onChangePluginSettings:e=>{m.onChangePluginSettings(e),a?.onChangePluginSettings?.(e)},mediaPluginsDetails:e=>{m.mediaPluginsDetails(e),a?.mediaPluginsDetails?.(e)}}}}var Wr=n(45308),Yr=(e=>(e.CREATOR="CREATOR",e.VOTERS="VOTERS",e.EVERYONE="EVERYONE",e.UNRECOGNIZED="UNRECOGNIZED",e))(Yr||{}),Kr=(e=>(e.SITE_MEMBERS="SITE_MEMBERS",e.ALL="ALL",e.UNRECOGNIZED="UNRECOGNIZED",e))(Kr||{});const qr=e=>({id:e.id,title:e.title,createdBy:e.createdBy,count:e.count,anonymousCount:e.anonymousCount,creatorFlag:e.creatorFlag,ownVotes:e.ownVotes,image:{src:{url:e.mediaId}},options:e.options.map(Zr),settings:{permissions:{view:Xr(e.settings.resultsVisibility),vote:Qr(e.settings.voteRole),allowMultipleVotes:e.settings.multipleVotes},showVoters:e.settings.votersDisplay,showVotesCount:e.settings.votesDisplay}}),Zr=e=>({id:e.id,title:e.title,image:{src:{url:e.mediaId}},count:e.count,anonymousCount:e.anonymousCount,rating:e.rating,latestVoters:e.latestVoters}),Xr=e=>{switch(e){case"ALWAYS":return Yr.EVERYONE;case"VOTERS_ONLY":return Yr.VOTERS;default:return Yr.CREATOR}},Qr=e=>{switch(e){case"ALL":return Kr.ALL;case"SITE_MEMBERS":return Kr.SITE_MEMBERS;default:return Kr.UNRECOGNIZED}},ei=e=>({title:e.title,mediaId:e.image.src.url,ownVotes:[],options:e.options.map(e=>({title:e.title,mediaId:e.image.src.url})),settings:{resultsVisibility:ni(e.settings.permissions?.view),multipleVotes:!!e.settings.permissions?.allowMultipleVotes,voteRole:oi(e.settings.permissions?.vote),votersDisplay:!!e.settings.showVoters,votesDisplay:!!e.settings.showVotesCount}}),ti=e=>({id:e.id,title:e.title,mediaId:e.image.src.url,count:e.count,anonymousCount:e.anonymousCount,rating:e.rating,latestVoters:e.latestVoters}),ni=e=>"EVERYONE"===e?"ALWAYS":"VOTERS"===e?"VOTERS_ONLY":"ONLY_ME",oi=e=>e===Kr.UNRECOGNIZED||void 0===e?"ALL":e,ri="/_serverless/polls-client/v1";class ii{constructor(e){this.getWixClientPromise=e,this.fetchPoll=async e=>{try{const t=await this.getWixClientPromise(),n=await t.fetchWithAuth(`${ri}/questions/${e}`),o=await n.json();return qr(o.question)}catch(e){if(404===e?.response?.status)throw new Error("POLL_NOT_FOUND");throw e}},this.createPoll=async e=>{const t=await this.getWixClientPromise(),n=await t.fetchWithAuth(`${ri}/questions`,{method:"POST",body:JSON.stringify({question:ei(e)}),headers:{"Content-Type":"application/json"}}),o=await n.json();return qr(o.question)},this.updatePoll=async e=>{try{const n=await this.getWixClientPromise(),o=await n.fetchWithAuth(`${ri}/questions/${e.id}`,{method:"PATCH",body:JSON.stringify({question:(t=e,{...ei(t),options:t.options.map(ti),id:t.id,createdBy:t.createdBy,count:t.count,anonymousCount:t.anonymousCount,creatorFlag:t.creatorFlag,ownVotes:t.ownVotes})}),headers:{"Content-Type":"application/json"}}),r=await o.json();return qr(r.question)}catch(e){if(404===e?.response?.status)throw new Error("POLL_NOT_FOUND");throw e}var t},this.vote=async(e,t)=>{const n=await this.getWixClientPromise(),o=await n.fetchWithAuth(`${ri}/questions/${e}/vote`,{method:"POST",body:JSON.stringify({optionId:t}),headers:{"Content-Type":"application/json"}}),r=await o.json();return qr(r.question)},this.unvote=async(e,t)=>{const n=await this.getWixClientPromise(),o=await n.fetchWithAuth(`${ri}/questions/${e}/unvote`,{method:"POST",body:JSON.stringify({optionId:t}),headers:{"Content-Type":"application/json"}}),r=await o.json();return qr(r.question)},this.getVoters=async(e,t,n)=>{const o=`${ri}/questions/${e}/options/${t}/voters`,r=new URLSearchParams;Object.entries(n).forEach(([e,t])=>{void 0!==t&&r.set(e,t.toString())});const i=await this.getWixClientPromise();return await i.fetchWithAuth(`${o}?${r.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json())},this.requestOptions={baseURL:ri}}}const ai=new Map;const si=e=>e?.map?.(e=>({siteMemberId:e._id??void 0,imageUrl:e.profile?.photo?.url??void 0,name:{nick:e.profile?.nickname??void 0}}));function li(e,t){if(!e)return{};const o="undefined"==typeof window?void 0:(()=>{const e=(o=async e=>{const o=await((e,t)=>Promise.all([t(),n.e(8764).then(n.bind(n,46087)).then(e=>e.members)]).then(([t,n])=>t.use(n).queryMembers().in("_id",e).find().then(e=>e.items).catch(e=>(console.error("[pollsStrategy] fetchMembers failed. error:",e),[])).then(si)))(e,t);return e.map(e=>o.find(t=>t.siteMemberId===e)||{siteMemberId:e})},new Wr(e=>o(e).then(t=>e.map(e=>t.find(t=>t.siteMemberId===e)||new Error("Member not found"))),{cacheMap:ai}));var o;return e.loadMany.bind(e)})();return{config:{[b]:{pollServiceApi:new ii(t),siteToken:e,getSiteMembers:o}}}}const ci=(e,t)=>!!t?.some(t=>t.type===e),di={instanceId:"",appDefId:"",metaSiteId:"",uid:"",siteOwnerId:""};function ui(e){if(!e)return di;try{const t=function(e){console.assert(e,"instance is mandatory");const t=e.split(".");return console.assert(t.length>=2,"instance must contain data and signature separated by ."),t.reduce((e,t)=>t.length>e.length?t:e,"")}(e),n="undefined"==typeof window?global.Buffer.from(t,"base64").toString("utf8"):atob(t),o=JSON.parse(n);return o.data?{...di,...JSON.parse(o.data).instance}:{...di,...o}}catch(e){return di}}var pi=(e=>(e.AUDIO="music",e.VIDEO="video",e.IMAGE="picture",e.DOCUMENT="document",e))(pi||{});function mi(e,t){return({id:n,type:o,privacy:r})=>{if("private"!==r&&function(e){return e.includes("/")}(n)){const t=((e,t)=>({picture:"static.wixstatic.com",video:"video.wixstatic.com",music:"music.wixstatic.com",document:`${t}.usrfiles.com`,archive:`${t}.usrfiles.com`}[e]))((e=>{const t=e.split(".").pop()?.toLowerCase()||"";return["jpg","png","gif","jpeg","jpe","jfif","bmp","heic","heif","tiff","tif","webp"].includes(t)?pi.IMAGE:["avi","mpeg","mpg","mpe","mp4","mkv","webm","mov","ogv","vob","m4v","3gp","divx","xvid","mxf","wmv","m1v","flv","m2ts"].includes(t)?pi.VIDEO:["mp3","wav","flac","m4a","wma","aac","aif","aiff"].includes(t)?pi.AUDIO:["zip","rar","tar","gz","gzip","jar","7z","fgz","webarchive"].includes(t)?"archive":pi.DOCUMENT})(o),e);return Promise.resolve(`https://${t}/${n}`)}return function(e){return async t=>{const n=new URLSearchParams({fileId:t}),o=await fetch(`/_serverless/ricos-media-services/download-url?${n.toString()}`,{headers:{Authorization:e}});return await o.json()}}(t)(n).then(e=>Array.isArray(e)&&e[0]?.path)}}const hi=e=>`https://video.wixstatic.com/${e.pathname}`,gi=e=>e.pathname.startsWith("media/")?`https://static.wixstatic.com/${e.pathname}`:`https://static.wixstatic.com/media/${e.pathname}`,_i=e=>`https://static.wixstatic.com/${e.id}`;const fi=({experiments:e={},plugins:t,instance:n,wixRicosVersion:o,ricosVersion:i,biSettings:a,getWixClientPromise:s,msid:l="",viewer:c=!1,content:d})=>{const u=e=>ci(e,t),{metaSiteId:m,appDefId:h}=ui(n),g=m||l,{ricosFeatures:_,wixRicosFeatures:f}=e,T=u(b)&&(!c||c&&(e=>{if(!e)return!1;const t=e.nodes;return t?.some(e=>[b,v].includes(e.type))})(d));return r.merge({experiments:_},zr(h,g,o,i,a),function(e,t,n){return n?{config:{...e(E)&&{[E]:{getVideoUrl:hi,getThumbnailUrl:gi}},...e(y)&&{[y]:{getAudioUrl:_i}},...e(p)&&n&&{[p]:{resolveFileUrl:mi(n,t)}}},helpers:{getImageUrl:({file_name:e})=>`https://static.wixstatic.com/media/${e}`}}:{config:{}}}(u,n,g),T&&li(n,s),function(e){const t={};if(e){const n="filesusr";t.iframeSandboxDomain=`https://${e}.${n}.com`}return t}(g),f)},Ei={palette:{},paletteConfig:{settingsActionColor:"#000000"},settingsStyles:{buttons:{borderRadius:"0px",textColor:"#FFFFFF"},dividers:{color:"#ededed",height:"12px"},icons:{color:"#000000"},inputs:{borderColor:"#000000",borderRadius:"0px",placeholderColor:"#646464"},text:{color:"#000000",fontFamily:"HelveticaNeue,Helvetica,Arial"},whitebox:{borderRadius:"0px",boxShadow:"0 8px 8px 0 rgba(22, 45, 61, 0.12), 0 3px 24px 0 rgba(22, 45, 61, 0.18)"},colorPaletteSelectedButton:{borderRadius:"0px"},smallButtons:{borderRadius:"0px"},bgColor:{backgroundColor:"rgba(0,0,0,.2)"},disabled:{backgroundColor:"#969696"},hover:{color:"#4D4D4D"}}},yi={nativeStyle:{text:{fontFamily:"Madefor",color:"#20303C"},primaryText:{fontWeight:700},bgColor:{backgroundColor:"#F8F9FA"},secondary:{backgroundColor:"#E8ECF0"},whitebox:{borderRadius:"8px"},coverImage:{height:"70px",width:"70px",margin:"8px",border:"1px solid rgba(110, 120, 129, 0.1)"}}},bi="#116DFF",vi={palette:{actionColor:bi,bgColor:"#FFFFFF",textColor:"#000000"},paletteConfig:{focusActionColor:bi,settingsActionColor:bi},settingsStyles:{buttons:{borderRadius:"18px",textColor:"#FFFFFF"},dividers:{color:"#DFE5EB",height:"12px"},icons:{color:"#333853"},inputs:{borderColor:"#A8CAFF",borderRadius:"6px",placeholderColor:"#868AA5"},text:{color:"#333853",fontFamily:"Madefor"},whitebox:{borderRadius:"8px",boxShadow:"0 8px 8px 0 rgba(22, 45, 61, 0.12), 0 3px 24px 0 rgba(22, 45, 61, 0.18)"},colorPaletteSelectedButton:{borderRadius:"6px"},smallButtons:{borderRadius:"4px"},bgColor:{backgroundColor:"#D6E6FE"},disabled:{backgroundColor:"#0006244d"},hover:{color:"#33385380"}}},Ti={customStyles:{editor:{addPluginButton:{plusIconColor:bi}}}},wi=({useWixStyles:e,useNativeStyles:t,...n}={},o=!1)=>{return t?(i=n,r.merge({},yi,i||{})):e??o?(e=>r.merge({},vi,e||{},Ti))(n):(e=>r.merge({},e||{},Ei))(n);var i},Ii=e=>{const t=new URL("https://www.wixapis.com/ricos/v1/oembeds");return t.searchParams.append("url",(e=>e.substring(0,5).includes("http")?e:"http://"+e)(e)),t.searchParams.append("options.maxWidth","980"),t},Ai=["wix","facebook"],Li=e=>async t=>{try{return(async(e,t)=>(await fetch(Ii(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:t}})).json())(t,e).then(e=>{const{html:t,...n}=e,{provider_name:o}=n;return Ai.includes((o||"").toLowerCase())?{...n}:{...n,html:t}})}catch{return new Promise(e=>{setTimeout(()=>e({}),1)})}},Si="?d=",xi=/^https:\/\/www.wix.app/,Ci=(e,t)=>{const n=e.match(xi),o=n?(e=>e.split(Si)[1])(e):e,r=(e=>{const t=Math.max(e.indexOf("/product-page/"),e.indexOf("/stores/"),e.indexOf("/bookings-checkout/"),e.indexOf("/service-page/"),e.indexOf("/event-details/"),e.indexOf("/events/"),e.indexOf("/event-details-registration/"));return t>=0?e.slice(t):void 0})(o),i=void 0!==r?(e=>e.replace(/\/$/,""))(t)+r:o;return n?((e,t)=>`${e.split(Si)[0]}${Si}${t}`)(e,i):i};const Pi=(e,t,n)=>t&&ci(f,e)?function(e,t=!1){return{config:{[f]:{changeBaseUrl:t=>Ci(t,e),disabled:t}}}}(t,n):{config:{}};var Di;const Oi=(Di=fr,function(e){const{children:t,biSettings:a,instance:s,plugins:l,theme:c,wixExperiments:d,allowLinkPreviewPopover:u,msid:p,baseUrl:m,previewMode:h,content:_,...f}=e,E=Er(d),{getWixClientPromise:y}=((e,t)=>{const r=o.useMemo(()=>{let t;return()=>t||(t=n.e(8167).then(n.bind(n,74820)).then(t=>t.createClient({auth:{getAuthHeaders:()=>({headers:{Authorization:e}})}})),t)},[e]);return t?{getWixClientPromise:t}:{getWixClientPromise:r}})(s),b=fi({plugins:l,instance:s,biSettings:a,experiments:E,wixRicosVersion:i,ricosVersion:i,getWixClientPromise:y,msid:p,viewer:!0,content:_}),v=r.merge(b,Pi(l,m,h),((e,t)=>{let n={};return e?.forEach(e=>{const{type:o,config:r}=e;r&&0!==Object.keys(r).length&&(n={...n,[o]:r}),o===g&&t&&(n[o].onViewerAction=t.onViewerAction)}),{config:n}})(l,b.helpers));return o.createElement(Di,{_rcProps:v,baseUrl:m,content:_,experiments:b.experiments,plugins:l,theme:wi(c),...u&&{linkPreviewPopoverFetchData:Li(s)},...f},t)})},45308:(e,t,n)=>{"use strict";var o,r=n(13158),i=function(){function e(e,t){if("function"!=typeof e)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=function(e){var t=!e||!1!==e.batch;if(!t)return 1;var n=e&&e.maxBatchSize;if(void 0===n)return 1/0;if("number"!=typeof n||n<1)throw new TypeError("maxBatchSize must be a positive number: "+n);return n}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(void 0===t)return a;if("function"!=typeof t)throw new TypeError("batchScheduleFn must be a function: "+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return function(e){return e};if("function"!=typeof t)throw new TypeError("cacheKeyFn must be a function: "+t);return t}(t),this._cacheMap=function(e){var t=!e||!1!==e.cache;if(!t)return null;var n=e&&e.cacheMap;if(void 0===n)return new Map;if(null!==n){var o=["get","set","delete","clear"].filter(function(e){return n&&"function"!=typeof n[e]});if(0!==o.length)throw new TypeError("Custom cacheMap missing methods: "+o.join(", "))}return n}(t),this._batch=null,this.name=function(e){if(e&&e.name)return e.name;return null}(t)}var t=e.prototype;return t.load=function(e){if(null==e)throw new TypeError("The loader.load() function must be called with a value, but got: "+String(e)+".");var t,n=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length and returns Promise>, but the function errored synchronously: "+String(n)+"."))}if(!n||"function"!=typeof n.then)return s(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise: "+String(n)+"."));n.then(function(e){if(!c(e))throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==t.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\n"+String(e));l(t);for(var n=0;n but got: "+e+".");for(var t=[],n=0;n0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=i},92887:(e,t,n)=>{"use strict";n.d(t,{BD:()=>o,zV:()=>r});const o="linkViewer",r=4}}]); //# sourceMappingURL=form-app-wix-ricos-viewer.chunk.min.js.map