| @@ -1,278 +1,197 @@ | ||
| 1 | 1 | /*! For license information please see editor-beta.js.LICENSE.txt */ |
| 2 | -(()=>{var e,t,n,r,a,s,o={60400:(e,t,n)=>{"use strict";n.d(t,{L:()=>l});var r=n(2615),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};const s="text/event-stream",o=1e3,i="last-event-id";function l(e,t){var{signal:n,headers:l,onopen:u,onmessage:d,onclose:p,onerror:m,openWhenHidden:g,fetch:A}=t,h=a(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((t,a)=>{const E=Object.assign({},l);let f;function b(){f.abort(),document.hidden||w()}E.accept||(E.accept=s),g||document.addEventListener("visibilitychange",b);let C=o,v=0;function k(){document.removeEventListener("visibilitychange",b),window.clearTimeout(v),f.abort()}null==n||n.addEventListener("abort",(()=>{k(),t()}));const B=null!=A?A:window.fetch,y=null!=u?u:c;async function w(){var n;f=new AbortController;try{const n=await B(e,Object.assign(Object.assign({},h),{headers:E,signal:f.signal}));await y(n),await(0,r.Pw)(n.body,(0,r.UM)((0,r._U)((e=>{e?E[i]=e:delete E[i]}),(e=>{C=e}),d))),null==p||p(),k(),t()}catch(e){if(!f.signal.aborted)try{const t=null!==(n=null==m?void 0:m(e))&&void 0!==n?n:C;window.clearTimeout(v),v=window.setTimeout(w,t)}catch(e){k(),a(e)}}}w()}))}function c(e){const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith(s)))throw new Error(`Expected content-type to be ${s}, Actual: ${t}`)}},2615:(e,t,n)=>{"use strict";async function r(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function a(e){let t,n,r,a=!1;return function(s){void 0===t?(t=s,n=0,r=-1):t=function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(t,s);const o=t.length;let i=0;for(;n<o;){a&&(10===t[n]&&(i=++n),a=!1);let s=-1;for(;n<o&&-1===s;++n)switch(t[n]){case 58:-1===r&&(r=n-i);break;case 13:a=!0;case 10:s=n}if(-1===s)break;e(t.subarray(i,s),r),i=n,r=-1}i===o?t=void 0:0!==i&&(t=t.subarray(i),n-=i)}}function s(e,t,n){let r=o();const a=new TextDecoder;return function(s,i){if(0===s.length)null==n||n(r),r=o();else if(i>0){const n=a.decode(s.subarray(0,i)),o=i+(32===s[i+1]?2:1),l=a.decode(s.subarray(o));switch(n){case"data":r.data=r.data?r.data+"\n"+l:l;break;case"event":r.event=l;break;case"id":e(r.id=l);break;case"retry":const n=parseInt(l,10);isNaN(n)||t(r.retry=n)}}}}function o(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{Pw:()=>r,UM:()=>a,_U:()=>s})},84788:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2378);let a,s,o,i;const l=/<(\/)?(\w+)\s*(\/)?>/g;function c(e,t,n,r,a){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:a,children:[]}}const u=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,r.isValidElement)(e)))};function d(e){const t=function(){const e=l.exec(a);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,s,o]=e,i=n.length;if(o)return["self-closed",s,t,i];if(r)return["closer",s,t,i];return["opener",s,t,i]}(),[n,u,d,g]=t,A=i.length,h=d>s?s:null;if(!e[u])return p(),!1;switch(n){case"no-more-tokens":if(0!==A){const{leadingTextStart:e,tokenStart:t}=i.pop();o.push(a.substr(e,t))}return p(),!1;case"self-closed":return 0===A?(null!==h&&o.push(a.substr(h,d-h)),o.push(e[u]),s=d+g,!0):(m(c(e[u],d,g)),s=d+g,!0);case"opener":return i.push(c(e[u],d,g,d+g,h)),s=d+g,!0;case"closer":if(1===A)return function(e){const{element:t,leadingTextStart:n,prevOffset:s,tokenStart:l,children:c}=i.pop(),u=e?a.substr(s,e-s):a.substr(s);u&&c.push(u);null!==n&&o.push(a.substr(n,l-n));o.push((0,r.cloneElement)(t,null,...c))}(d),s=d+g,!0;const t=i.pop(),n=a.substr(t.prevOffset,d-t.prevOffset);t.children.push(n),t.prevOffset=d+g;const l=c(t.element,t.tokenStart,t.tokenLength,d+g);return l.children=t.children,m(l),s=d+g,!0;default:return p(),!1}}function p(){const e=a.length-s;0!==e&&o.push(a.substr(s,e))}function m(e){const{element:t,tokenStart:n,tokenLength:s,prevOffset:o,children:l}=e,c=i[i.length-1],u=a.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push((0,r.cloneElement)(t,null,...l)),c.prevOffset=o||n+s}t.default=(e,t)=>{if(a=e,s=0,o=[],i=[],l.lastIndex=0,!u(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(d(t));return(0,r.createElement)(r.Fragment,null,...o)}},51806:(e,t,n)=>{"use strict";var r=n(25877);Object.defineProperty(t,"__esModule",{value:!0});var a={createInterpolateElement:!0,Platform:!0,renderToString:!0,RawHTML:!0};Object.defineProperty(t,"Platform",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"RawHTML",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"createInterpolateElement",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"renderToString",{enumerable:!0,get:function(){return u.default}});var s=r(n(84788)),o=n(2378);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=n(29115);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var l=n(82986);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=r(n(82912)),u=r(n(51962)),d=r(n(74745))},82912:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0}},74745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({children:e,...t}){let n="";return r.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(n+=e)})),(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:n},...t})};var r=n(2378)},29115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createPortal",{enumerable:!0,get:function(){return r.createPortal}}),Object.defineProperty(t,"createRoot",{enumerable:!0,get:function(){return a.createRoot}}),Object.defineProperty(t,"findDOMNode",{enumerable:!0,get:function(){return r.findDOMNode}}),Object.defineProperty(t,"flushSync",{enumerable:!0,get:function(){return r.flushSync}}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return r.hydrate}}),Object.defineProperty(t,"hydrateRoot",{enumerable:!0,get:function(){return a.hydrateRoot}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return r.render}}),Object.defineProperty(t,"unmountComponentAtNode",{enumerable:!0,get:function(){return r.unmountComponentAtNode}});var r=n(91850),a=n(51516)},2378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Children",{enumerable:!0,get:function(){return r.Children}}),Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return r.Component}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return r.Fragment}}),Object.defineProperty(t,"PureComponent",{enumerable:!0,get:function(){return r.PureComponent}}),Object.defineProperty(t,"StrictMode",{enumerable:!0,get:function(){return r.StrictMode}}),Object.defineProperty(t,"Suspense",{enumerable:!0,get:function(){return r.Suspense}}),Object.defineProperty(t,"cloneElement",{enumerable:!0,get:function(){return r.cloneElement}}),t.concatChildren=function(...e){return e.reduce(((e,t,n)=>(r.Children.forEach(t,((t,a)=>{t&&"string"!=typeof t&&(t=(0,r.cloneElement)(t,{key:[n,a].join()})),e.push(t)})),e)),[])},Object.defineProperty(t,"createContext",{enumerable:!0,get:function(){return r.createContext}}),Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return r.createElement}}),Object.defineProperty(t,"createRef",{enumerable:!0,get:function(){return r.createRef}}),Object.defineProperty(t,"forwardRef",{enumerable:!0,get:function(){return r.forwardRef}}),Object.defineProperty(t,"isValidElement",{enumerable:!0,get:function(){return r.isValidElement}}),Object.defineProperty(t,"lazy",{enumerable:!0,get:function(){return r.lazy}}),Object.defineProperty(t,"memo",{enumerable:!0,get:function(){return r.memo}}),Object.defineProperty(t,"startTransition",{enumerable:!0,get:function(){return r.startTransition}}),t.switchChildrenNodeName=function(e,t){return e&&r.Children.map(e,((e,n)=>{if("string"==typeof e?.valueOf())return(0,r.createElement)(t,{key:n},e);const{children:a,...s}=e.props;return(0,r.createElement)(t,{key:n,...s},a)}))},Object.defineProperty(t,"useCallback",{enumerable:!0,get:function(){return r.useCallback}}),Object.defineProperty(t,"useContext",{enumerable:!0,get:function(){return r.useContext}}),Object.defineProperty(t,"useDebugValue",{enumerable:!0,get:function(){return r.useDebugValue}}),Object.defineProperty(t,"useDeferredValue",{enumerable:!0,get:function(){return r.useDeferredValue}}),Object.defineProperty(t,"useEffect",{enumerable:!0,get:function(){return r.useEffect}}),Object.defineProperty(t,"useId",{enumerable:!0,get:function(){return r.useId}}),Object.defineProperty(t,"useImperativeHandle",{enumerable:!0,get:function(){return r.useImperativeHandle}}),Object.defineProperty(t,"useInsertionEffect",{enumerable:!0,get:function(){return r.useInsertionEffect}}),Object.defineProperty(t,"useLayoutEffect",{enumerable:!0,get:function(){return r.useLayoutEffect}}),Object.defineProperty(t,"useMemo",{enumerable:!0,get:function(){return r.useMemo}}),Object.defineProperty(t,"useReducer",{enumerable:!0,get:function(){return r.useReducer}}),Object.defineProperty(t,"useRef",{enumerable:!0,get:function(){return r.useRef}}),Object.defineProperty(t,"useState",{enumerable:!0,get:function(){return r.useState}}),Object.defineProperty(t,"useSyncExternalStore",{enumerable:!0,get:function(){return r.useSyncExternalStore}}),Object.defineProperty(t,"useTransition",{enumerable:!0,get:function(){return r.useTransition}});var r=n(99196)},51962:(e,t,n)=>{"use strict";var r=n(25877);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.hasPrefix=E,t.renderAttributes=S,t.renderComponent=j,t.renderElement=_,t.renderNativeComponent=I,t.renderStyle=Q;var a=n(62313),s=n(28132),o=n(81975),i=n(2378),l=r(n(74745));const{Provider:c,Consumer:u}=(0,i.createContext)(void 0),d=(0,i.forwardRef)((()=>null)),p=new Set(["string","boolean","number"]),m=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),g=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),A=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),h=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function E(e,t){return t.some((t=>0===e.indexOf(t)))}function f(e){return"key"===e||"children"===e}function b(e,t){return"style"===e?Q(t):t}const C=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),v=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),k=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e)),{});function B(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return v[t]?v[t]:C[t]?(0,s.paramCase)(C[t]):k[t]?k[t]:t}function y(e){return e.startsWith("--")?e:E(e,["ms","O","Moz","Webkit"])?"-"+(0,s.paramCase)(e):(0,s.paramCase)(e)}function w(e,t){return"number"!=typeof t||0===t||h.has(e)?t:t+"px"}function _(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return x(e,t,n);switch(typeof e){case"string":return(0,o.escapeHTML)(e);case"number":return e.toString()}const{type:r,props:a}=e;switch(r){case i.StrictMode:case i.Fragment:return x(a.children,t,n);case l.default:const{children:e,...r}=a;return I(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return I(r,a,t,n);case"function":return r.prototype&&"function"==typeof r.prototype.render?j(r,a,t,n):_(r(a,n),t,n)}switch(r&&r.$$typeof){case c.$$typeof:return x(a.children,a.value,n);case u.$$typeof:return _(a.children(t||r._currentValue),t,n);case d.$$typeof:return _(r.render(a),t,n)}return""}function I(e,t,n,r={}){let a="";if("textarea"===e&&t.hasOwnProperty("value")){a=x(t.value,n,r);const{value:e,...s}=t;t=s}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?a=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(a=x(t.children,n,r));if(!e)return a;const s=S(t);return m.has(e)?"<"+e+s+"/>":"<"+e+s+">"+a+"</"+e+">"}function j(e,t,n,r={}){const a=new e(t,r);"function"==typeof a.getChildContext&&Object.assign(r,a.getChildContext());return _(a.render(),n,r)}function x(e,t,n={}){let r="";e=Array.isArray(e)?e:[e];for(let a=0;a<e.length;a++){r+=_(e[a],t,n)}return r}function S(e){let t="";for(const n in e){const r=B(n);if(!(0,o.isValidAttributeName)(r))continue;let a=b(n,e[n]);if(!p.has(typeof a))continue;if(f(n))continue;const s=g.has(r);if(s&&!1===a)continue;const i=s||E(n,["data-","aria-"])||A.has(r);("boolean"!=typeof a||i)&&(t+=" "+r,s||("string"==typeof a&&(a=(0,o.escapeAttribute)(a)),t+='="'+a+'"'))}return t}function Q(e){if(!(0,a.isPlainObject)(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=y(n)+":"+w(n,r)}return t}t.default=_},82986:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyElement=void 0;t.isEmptyElement=e=>"number"!=typeof e&&("string"==typeof e?.valueOf()||Array.isArray(e)?!e.length:!e)},61074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(69307);const a=(0,r.forwardRef)((function({icon:e,size:t=24,...n},a){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:a})}))},79404:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"}))},60495:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}))},90986:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"}))},59756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}))},58829:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"}))},79201:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},42229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},52800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}))},46936:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},57489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}))},6163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}))},39517:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))},64967:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"}))},71063:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(77840).Z},15381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}))},43618:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}))},75365:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"}))},1078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"}))},20843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,r.createElement)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}))},77840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}))},24955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z",fillRule:"evenodd"}))},11908:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"}))},58532:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"}))},92710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"}))},3639:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}))},34394:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"}))},586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"}))},32677:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"}))},78270:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"}))},74927:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}))},48381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"}))},47659:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}))},30797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99196),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,r.createElement)(a.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}))},59823:(e,t,n)=>{"use strict";n.d(t,{AG:()=>o,Ti:()=>s,eV:()=>i});var r=n(38697),a=n(72867);function s(e,t){return 0===t?e.toLowerCase():(0,a.By)(e,t)}function o(e,t){return 0===t?e.toLowerCase():(0,a.Pv)(e)}function i(e,t){return void 0===t&&(t={}),(0,a.Ho)(e,(0,r.pi)({transform:s},t))}},81338:(e,t,n)=>{"use strict";n.d(t,{I:()=>i,w:()=>o});var r=n(38697),a=n(68308),s=n(83078);function o(e){return(0,s.l)(e.toLowerCase())}function i(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:" ",transform:o},t))}},28132:(e,t,n)=>{"use strict";n.r(t),n.d(t,{camelCase:()=>r.eV,camelCaseTransform:()=>r.Ti,camelCaseTransformMerge:()=>r.AG,capitalCase:()=>a.I,capitalCaseTransform:()=>a.w,constantCase:()=>s.c,dotCase:()=>o.$,headerCase:()=>i.e,noCase:()=>l.B,paramCase:()=>c.o,pascalCase:()=>u.Ho,pascalCaseTransform:()=>u.By,pascalCaseTransformMerge:()=>u.Pv,pathCase:()=>d.Y,sentenceCase:()=>p.G,sentenceCaseTransform:()=>p.a,snakeCase:()=>m.f});var r=n(59823),a=n(81338),s=n(56233),o=n(77352),i=n(20025),l=n(68308),c=n(76854),u=n(72867),d=n(76559),p=n(44434),m=n(59491)},73320:(e,t)=>{var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)a(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty;var r=/\s+/;function a(e,a){if(a){var s=typeof a;"string"===s?function(e,t){for(var n=t.split(r),a=n.length,s=0;s<a;++s)e[n[s]]=!0}(e,a):Array.isArray(a)?t(e,a):"object"===s?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,a):"number"===s&&function(e,t){e[t]=!0}(e,a)}}return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];var s=new e;t(s,r);var o=[];for(var i in s)s[i]&&o.push(i);return o.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},65235:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===s){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},56233:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(38697),a=n(68308),s=n(48936);function o(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:"_",transform:s.L},t))}},94273:e=>{!function(){"use strict";var t=[],n=3988292384;function r(e){var t,r,a,s,o=-1;for(t=0,a=e.length;t<a;t+=1){for(s=255&(o^e[t]),r=0;r<8;r+=1)1&~s?s>>>=1:s=s>>>1^n;o=o>>>8^s}return~o}function a(e,n){var r,s,o;if(void 0!==a.crc&&n&&e||(a.crc=~0,e)){for(r=a.crc,s=0,o=e.length;s<o;s+=1)r=r>>>8^t[255&(r^e[s])];return a.crc=r,~r}}!function(){var e,r,a;for(r=0;r<256;r+=1){for(e=r,a=0;a<8;a+=1)1&e?e=n^e>>>1:e>>>=1;t[r]=e>>>0}}(),e.exports=function(e,t){var n;e="string"==typeof e?(n=e,Array.prototype.map.call(n,(function(e){return e.charCodeAt(0)}))):e;return((t?r(e):a(e))>>>0).toString(16)},e.exports.direct=r,e.exports.table=a}()},77352:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(38697),a=n(68308);function s(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:"."},t))}},92384:(e,t)=>{"use strict";var n=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!n.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some((function(e){return e.length>63}))}},53184:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function a(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}A(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&A(e,"error",t,n)}(e,a,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var a,s,o,c;if(i(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),o=s[t]),void 0===o)o=s[t]=n,++e._eventsCount;else if("function"==typeof o?o=s[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=l(e))>0&&o.length>a&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function p(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):g(a,a.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function A(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function a(s){r.once&&e.removeEventListener(t,a),n(s)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,s=this._events;if(void 0!==s)a=a&&void 0===s.error;else if(!a)return!1;if(a){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=g(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return i(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return i(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,a,s,o;if(i(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,a=s;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(a=s[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},90861:function(e){e.exports=function(){"use strict";var e=/^(b|B)$/,t={iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},n={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},r={floor:Math.floor,ceil:Math.ceil};function a(a){var s,o,i,l,c,u,d,p,m,g,A,h,E,f,b,C,v,k,B,y,w,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},I=[],j=0;if(isNaN(a))throw new TypeError("Invalid number");if(i=!0===_.bits,b=!0===_.unix,h=!0===_.pad,o=_.base||10,E=void 0!==_.round?_.round:b?1:2,d=void 0!==_.locale?_.locale:"",p=_.localeOptions||{},C=void 0!==_.separator?_.separator:"",v=void 0!==_.spacer?_.spacer:b?"":" ",B=_.symbols||{},k=2===o?_.standard||"iec":"jedec",A=_.output||"string",c=!0===_.fullform,u=_.fullforms instanceof Array?_.fullforms:[],s=void 0!==_.exponent?_.exponent:-1,y=r[_.roundingMethod]||Math.round,m=(g=Number(a))<0,l=o>2?1e3:1024,w=!1===isNaN(_.precision)?parseInt(_.precision,10):0,m&&(g=-g),(-1===s||isNaN(s))&&(s=Math.floor(Math.log(g)/Math.log(l)))<0&&(s=0),s>8&&(w>0&&(w+=8-s),s=8),"exponent"===A)return s;if(0===g)I[0]=0,f=I[1]=b?"":t[k][i?"bits":"bytes"][s];else{j=g/(2===o?Math.pow(2,10*s):Math.pow(1e3,s)),i&&(j*=8)>=l&&s<8&&(j/=l,s++);var x=Math.pow(10,s>0?E:0);I[0]=y(j*x)/x,I[0]===l&&s<8&&void 0===_.exponent&&(I[0]=1,s++),f=I[1]=10===o&&1===s?i?"kbit":"kB":t[k][i?"bits":"bytes"][s],b&&(I[1]=I[1].charAt(0),e.test(I[1])&&(I[0]=Math.floor(I[0]),I[1]=""))}if(m&&(I[0]=-I[0]),w>0&&(I[0]=I[0].toPrecision(w)),I[1]=B[I[1]]||I[1],!0===d?I[0]=I[0].toLocaleString():d.length>0?I[0]=I[0].toLocaleString(d,p):C.length>0&&(I[0]=I[0].toString().replace(".",C)),h&&!1===Number.isInteger(I[0])&&E>0){var S=C||".",Q=I[0].toString().split(S),N=Q[1]||"",P=N.length,T=E-P;I[0]="".concat(Q[0]).concat(S).concat(N.padEnd(P+T,"0"))}return c&&(I[1]=u[s]?u[s]:n[k][s]+(i?"bit":"byte")+(1===I[0]?"":"s")),"array"===A?I:"object"===A?{value:I[0],symbol:I[1],exponent:s,unit:f}:I.join(v)}return a.partial=function(e){return function(t){return a(t,e)}},a}()},20025:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(38697),a=n(81338);function s(e,t){return void 0===t&&(t={}),(0,a.I)(e,(0,r.pi)({delimiter:"-"},t))}},62313:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},84097:function(e,t){var n,r;r="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:this,e.exports=function(r){"use strict";var a,s=(r=r||{}).Base64,o="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(i),c=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(d,u)},m=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(n>>>18),i.charAt(n>>>12&63),t>=2?"=":i.charAt(n>>>6&63),t>=1?"=":i.charAt(63&n)].join("")},g=r.btoa&&"function"==typeof r.btoa?function(e){return r.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,m)},A=function(e){return g(p(String(e)))},h=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},E=function(e,t){return t?h(A(e)):A(e)},f=function(e){return E(e,!0)};r.Uint8Array&&(a=function(e,t){for(var n="",r=0,a=e.length;r<a;r+=3){var s=e[r],o=e[r+1],l=e[r+2],c=s<<16|o<<8|l;n+=i.charAt(c>>>18)+i.charAt(c>>>12&63)+(void 0!==o?i.charAt(c>>>6&63):"=")+(void 0!==l?i.charAt(63&c):"=")}return t?h(n):n});var b,C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return c(55296+(t>>>10))+c(56320+(1023&t));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k=function(e){return e.replace(C,v)},B=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),a=[c(r>>>16),c(r>>>8&255),c(255&r)];return a.length-=[0,0,2,1][n],a.join("")},y=r.atob&&"function"==typeof r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/\S{1,4}/g,B)},w=function(e){return y(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_=function(e){return k(y(e))},I=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},j=function(e){return _(I(e))};r.Uint8Array&&(b=function(e){return Uint8Array.from(w(I(e)),(function(e){return e.charCodeAt(0)}))});var x=function(){var e=r.Base64;return r.Base64=s,e};if(r.Base64={VERSION:o,atob:w,btoa:g,fromBase64:j,toBase64:E,utob:p,encode:E,encodeURI:f,btou:k,decode:j,noConflict:x,fromUint8Array:a,toUint8Array:b},"function"==typeof Object.defineProperty){var S=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",S((function(){return j(this)}))),Object.defineProperty(String.prototype,"toBase64",S((function(e){return E(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",S((function(){return E(this,!0)})))}}return r.Meteor&&(Base64=r.Base64),e.exports?e.exports.Base64=r.Base64:void 0===(n=function(){return r.Base64}.apply(t,[]))||(e.exports=n),{Base64:r.Base64}}(r)},97740:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});function r(e){return e.toLowerCase()}},82339:e=>{"use strict";function t(e,t,n,r){var a=Number(e[t].meta.id+1).toString(),s="";return"string"==typeof r.docId&&(s="-"+r.docId+"-"),s+a}function n(e,t){var n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=":"+e[t].meta.subId),"["+n+"]"}function r(e,t,n,r,a){var s=a.rules.footnote_anchor_name(e,t,n,r,a),o=a.rules.footnote_caption(e,t,n,r,a),i=s;return e[t].meta.subId>0&&(i+=":"+e[t].meta.subId),'<sup class="footnote-ref"><a href="#fn'+s+'" id="fnref'+i+'">'+o+"</a></sup>"}function a(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function s(){return"</ol>\n</section>\n"}function o(e,t,n,r,a){var s=a.rules.footnote_anchor_name(e,t,n,r,a);return e[t].meta.subId>0&&(s+=":"+e[t].meta.subId),'<li id="fn'+s+'" class="footnote-item">'}function i(){return"</li>\n"}function l(e,t,n,r,a){var s=a.rules.footnote_anchor_name(e,t,n,r,a);return e[t].meta.subId>0&&(s+=":"+e[t].meta.subId),' <a href="#fnref'+s+'" class="footnote-backref">↩︎</a>'}e.exports=function(e){var c=e.helpers.parseLinkLabel,u=e.utils.isSpace;e.renderer.rules.footnote_ref=r,e.renderer.rules.footnote_block_open=a,e.renderer.rules.footnote_block_close=s,e.renderer.rules.footnote_open=o,e.renderer.rules.footnote_close=i,e.renderer.rules.footnote_anchor=l,e.renderer.rules.footnote_caption=n,e.renderer.rules.footnote_anchor_name=t,e.block.ruler.before("reference","footnote_def",(function(e,t,n,r){var a,s,o,i,l,c,d,p,m,g,A,h=e.bMarks[t]+e.tShift[t],E=e.eMarks[t];if(h+4>E)return!1;if(91!==e.src.charCodeAt(h))return!1;if(94!==e.src.charCodeAt(h+1))return!1;for(l=h+2;l<E;l++){if(32===e.src.charCodeAt(l))return!1;if(93===e.src.charCodeAt(l))break}if(l===h+2)return!1;if(l+1>=E||58!==e.src.charCodeAt(++l))return!1;if(r)return!0;for(l++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),c=e.src.slice(h+2,l-2),e.env.footnotes.refs[":"+c]=-1,(d=new e.Token("footnote_reference_open","",1)).meta={label:c},d.level=e.level++,e.tokens.push(d),a=e.bMarks[t],s=e.tShift[t],o=e.sCount[t],i=e.parentType,A=l,p=m=e.sCount[t]+l-(e.bMarks[t]+e.tShift[t]);l<E&&(g=e.src.charCodeAt(l),u(g));)9===g?m+=4-m%4:m++,l++;return e.tShift[t]=l-A,e.sCount[t]=m-p,e.bMarks[t]=A,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,n,!0),e.parentType=i,e.blkIndent-=4,e.tShift[t]=s,e.sCount[t]=o,e.bMarks[t]=a,(d=new e.Token("footnote_reference_close","",-1)).level=--e.level,e.tokens.push(d),!0}),{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",(function(e,t){var n,r,a,s,o=e.posMax,i=e.pos;return!(i+2>=o)&&(94===e.src.charCodeAt(i)&&(91===e.src.charCodeAt(i+1)&&(n=i+2,!((r=c(e,i+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),a=e.env.footnotes.list.length,e.md.inline.parse(e.src.slice(n,r),e.md,e.env,s=[]),e.push("footnote_ref","",0).meta={id:a},e.env.footnotes.list[a]={content:e.src.slice(n,r),tokens:s}),e.pos=r+1,e.posMax=o,!0))))})),e.inline.ruler.after("footnote_inline","footnote_ref",(function(e,t){var n,r,a,s,o=e.posMax,i=e.pos;if(i+3>o)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(i))return!1;if(94!==e.src.charCodeAt(i+1))return!1;for(r=i+2;r<o;r++){if(32===e.src.charCodeAt(r))return!1;if(10===e.src.charCodeAt(r))return!1;if(93===e.src.charCodeAt(r))break}return r!==i+2&&(!(r>=o)&&(r++,n=e.src.slice(i+2,r-1),void 0!==e.env.footnotes.refs[":"+n]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(a=e.env.footnotes.list.length,e.env.footnotes.list[a]={label:n,count:0},e.env.footnotes.refs[":"+n]=a):a=e.env.footnotes.refs[":"+n],s=e.env.footnotes.list[a].count,e.env.footnotes.list[a].count++,e.push("footnote_ref","",0).meta={id:a,subId:s,label:n}),e.pos=r,e.posMax=o,!0)))})),e.core.ruler.after("inline","footnote_tail",(function(e){var t,n,r,a,s,o,i,l,c,u,d=!1,p={};if(e.env.footnotes&&(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(d=!0,c=[],u=e.meta.label,!1):"footnote_reference_close"===e.type?(d=!1,p[":"+u]=c,!1):(d&&c.push(e),!d)})),e.env.footnotes.list)){for(o=e.env.footnotes.list,i=new e.Token("footnote_block_open","",1),e.tokens.push(i),t=0,n=o.length;t<n;t++){for((i=new e.Token("footnote_open","",1)).meta={id:t,label:o[t].label},e.tokens.push(i),o[t].tokens?(l=[],(i=new e.Token("paragraph_open","p",1)).block=!0,l.push(i),(i=new e.Token("inline","",0)).children=o[t].tokens,i.content=o[t].content,l.push(i),(i=new e.Token("paragraph_close","p",-1)).block=!0,l.push(i)):o[t].label&&(l=p[":"+o[t].label]),l&&(e.tokens=e.tokens.concat(l)),s="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,a=o[t].count>0?o[t].count:1,r=0;r<a;r++)(i=new e.Token("footnote_anchor","",0)).meta={id:t,subId:r,label:o[t].label},e.tokens.push(i);s&&e.tokens.push(s),i=new e.Token("footnote_close","",-1),e.tokens.push(i)}i=new e.Token("footnote_block_close","",-1),e.tokens.push(i)}}))}},1488:()=>{},56878:()=>{},40888:()=>{},59961:()=>{},73443:()=>{},78296:()=>{},44046:()=>{},7679:()=>{},15184:()=>{},9170:()=>{},32295:()=>{},46154:()=>{},18145:()=>{},91680:()=>{},49304:()=>{},27212:()=>{},5609:()=>{},58449:()=>{},62103:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},53351:()=>{},72098:()=>{},45460:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"star-icon":"cuoSlhSNrqf1dozY22Xb",jetpack:"lAIiifeLMmZAPlQ9n9ZR","checkmark-icon":"JLquNpQVlysAamuh5lJO",socialIcon:"cbOwD8Y4tFjwimmtchQI",bluesky:"aLWBKY0yRghEk7tNCgK3",facebook:"aHOlEBGD5EA8NKRw3xTw",instagram:"cL3m0xBYTYhIKI7lCqDB",twitter:"af4Y_zItXvLAOEoSDPSv",linkedin:"f68aqF3XSD1OBvXR1get",tumblr:"xFI0dt3UiXRlRQdqPWkx",google:"q7JEoyymveP6kF747M43",mastodon:"DKOBOTVmTLbh26gUH_73",nextdoor:"n5XodNsuMfMAAvqHFmbw",whatsapp:"fftumuc_lJ6v0tq4UMVR"}},49710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)"}},46409:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},34086:()=>{},48026:()=>{},85837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-medium-semi-bold":"gKZWDv5chz3_O3Syp74H","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz","body-extra-small-bold":"mQ1UlbN9u4Mg9byO8m7v",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},93468:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={global:"_fUXxnSp5pagKBp9gSN7"}},75124:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={wrapper:"O5Go3eBOBqWlXy7fX0su","connection-name":"fgQ4OdnJ1svMwDnOKu2H","profile-link":"ArQoWnNoP4okGpEbxF6b",confirmDialog:"QsEfjoVyfc0gVACXTvUM","mark-shared-wrap":"eCH_xkiqbqL0UkJjU_1p","connection-panel":"J2Rz6Qb6mWPyJDF0yoqw","connection-list":"fXYYdRkn3LXtN9YH3354","connection-list-item":"LaK9P7Nfi4ZBH0NhtbSs","connection-item":"tI3FtttoJPuF9AJzCAMv","connection-item-name":"msoMjBB_4Uq5qpRgobsH","learn-more":"RjMLptH6v03AX5ABWBp3","connection-name-wrapper":"z5Do97zRnujyW3Oj0pPJ"}},91853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"connection-container":"KQcQQLxH5fI08DfOlKwL"}},75631:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"connections-list":"Ua6eKcnk_tQQpFlgXMSn","components-notice":"SHqrIEguRfCILRHPyxE9","more-link":"ejyuBjiLmHz_UTFmBnjA","change-settings-button":"smqXe_da1eoP4Agql_Cs","bar-wrapper":"wy2LRr6EYfEPS1_tw21X","share-count-info":"RY1gHNa4QvZVfS6_9jwN","enabled-connections-notice":"O_ZghPCUG7291iVsp1wx","auto-share-title":"PR7POigxhvyqNIjSo9F0","title-container":"doYMSVhNe2U7so5sInxh","no-connections-text":"nrOxj0JeSCWwCB4oaR94"}},58487:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={container:"OWstrHF6QZdaosKs0b6j",hidden:"HJMFrbZ0khdkKKkocrIK"}},31182:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={confirmation:"udAWaza1u34TkmZZUPq4","header-text":"JsO4jFxFAKjG6Go62bZF",form:"SeoSfJ6eII9O0PiDkl5g","accounts-list":"M6POQFFbhswwolN6D9VN","account-input":"Sk_WQxS97yTokR_rM3Ci","account-label":"CRjatFVv3dQMjG9_Vmjj","submit-wrap":"re3HrL6GJa59uqDgx771","profile-pic":"jPB4ApiYyEswu6AKKJqk","account-info":"JhIphWt8e2X_ee0l7KEZ"}},16845:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={modal:"Mu_jAq5ZcYDM1kmBbxcs","connect-form":"foAsC5GlXOWEzACnxT_P",small:"_7PKKGx44v2H9dJbUltFw"}},42911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={wrapper:"pp_WJTHlGIX9bcHCLxJh",title:"IzRyqrcpwjKRBJKEtECz"}},69339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"preview-wrapper":"cZuW54OEuUN9yvuE_rNU","preview-image":"vCs0BOExDMOystFhG2wa",container:"sKpch49QzrpontC0DvF7",subtitle:"vOO47kVjHn7i63fQ0bx0",preview:"ziE_jq4PmQmGBedGskf_",remove:"qqGj0rmSJvZs9dyr0u_I","remove-loading":"TJGgifcTHqUtknPqVQpH"}},45811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={wrapper:"f92zWdEJJIwBvwH5rRzn",disabled:"rBTOWyeewE4VxAqYgjoI","preview-wrapper":"PykCvaqoL7AIDzVKJAtg",notice:"SSMDWFYkP44va5KqPpTP"}},82283:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={notice:"ptn8jt555LOvMXWaoLxs","notice--default":"IVzciZv5S5E8XgR5EsLp","notice--highlight":"OpbDsm3F65Z4K5Bz43cz","notice--warning":"dlrSwB0tyuf1TYcypDec","notice--error":"hkpqil8E11PObwu7TVU2",content:"AeqtA3GRe7sFjKaC9SqL",dismiss:"IArBTmNL2K4du5WPBUhg",actions:"T7E2eJJN4qjwPpv3mcjV"}},23761:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={panel:"U_WW2qLSQA71SJYyITOq"}},45078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={description:"D8uyjb_rjCf4HTMT0mj0"}},2097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={prompt:"CW7R8fRQqVKfyXFYiNWR",buttons:"n34j0qWq2EZzYl1jAiej",button:"aIuCL8MdydCJGcrOqp4x",header:"qegtnlYWDc3UnIGPRlQb"}},90934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={services:"SbpyhN5jnda8H868J3rX","service-list-item":"ONeewrk3aNC1gYJebq7K","service-item":"RoTxOeGFqAwk3pXUZpvF","service-item-info":"AjlYaYB_xi9ciXXCqHIJ","service-basics":"kdYli5nS3b46T57Ih5TQ",title:"fXvUC1jZNUXR7RSrIylI",description:"d22_aeSA1etqpnckP_Mr",actions:"ddhaNmGMqOySRjR_TtqJ","learn-more":"nnSF_IK4vYviTlCOzPrg","service-panel":"u17AiTny2Jbh35JFAUYw","connect-form-wrapper":"U_Z9JvOsEQ6BtkH9P1IQ","active-connection":"MyXskAb4aXwO7zitR97z","service-connection-list":"Y_4JpLfOnXVZKvEs179H","example-wrapper":"jdahJvXCrCw0hA5NP3D3",small:"LLeYGX7Owy6gmpNW88VV","service-connection":"EdjyE9tVLH6lWMoB9z3M","connection-details":"EQQHwkVXRn0caD6J7LqV","profile-pic":"vvlyiVm67wUWF9NhpMA4",disconnect:"zqX6xk8KCGK1_qbYKqY5","connect-form":"fNeO_MZFp7cPkgtCdkAF","connect-button":"zK8sijAMFNs2m6WRAoi4","mark-shared-wrap":"zLobzkXnF6jHxNvkfz5_"}},78619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"settings-link":"ZuktxapayvvIV1xDFrTG"}},67415:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"share-buttons":"JUeclE9CucaXRlTL5K9H",x:"rhyZKz4FQtFOFAMwLgLj",whatsapp:"DDRhGoqXUOM6Jug54nEB",facebook:"h57Cabo4jn8Ke77_DLOX",clipboard:"tvNWJpaNzPro4QaItBae",vertical:"p_VTpBCFklSkcb0iiD0K",container:"DyIAUIn_2bkciyB_XtgH",label:"Lx8xScOApJmJdhJF9JWd"}},73640:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"bar-wrapper":"wu3aDYFeiXIJx7zjdQg7",wrapper:"PYlDideBTzXaLK6N44H_"}},40088:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={templateControl:"tfWupx32Rn5hHqVjTzui",customText:"qu9UsV1EEFeFxhU3Wgt5",mediaPicker:"nZhgKYFn6MQoIDGcKrUG"}},15214:()=>{"use strict"},47320:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={templates:"m9360_cMWKFHTNk9xpNz",template:"j4EvSJfKIJLGEIAETiEY","template--active":"dQb3Zpl0puk4V6ezZslo"}},89696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={checkbox:"NWFjHxAKqZPzk0O6w4IF",disabled:"gLaHzq2GjbiHJ5It_wy3"}},28161:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={"publicize-notice":"__nV49on4_ijaV8Brnsw","components-notice":"zZ3Pu7E87XyYIdPR2WTt","components-button":"fLC8AaLf3xcKaoJ4Opax"}},87728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={wrapper:"sP1aklNMfj7lCDxuhWaq",progress:"a6tcXi51GAewl3qx0AVi",duration:"uFtCCGeycoI94JbCnJh8"}},5743:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={wrapper:"h2NGkiVs1r1nf85LtJpF","conversion-notice":"k3Apzwo3v9n0IaHbB8tf"}},73171:e=>{var t=1e3,n=60*t,r=60*n,a=24*r,s=7*a,o=365.25*a;function i(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!i)return;var l=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*s;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var s=Math.abs(e);if(s>=a)return i(e,s,a,"day");if(s>=r)return i(e,s,r,"hour");if(s>=n)return i(e,s,n,"minute");if(s>=t)return i(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=a)return Math.round(e/a)+"d";if(s>=r)return Math.round(e/r)+"h";if(s>=n)return Math.round(e/n)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},68308:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r=n(97740),a=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],s=/[^A-Z0-9]+/gi;function o(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?a:n,l=t.stripRegexp,c=void 0===l?s:l,u=t.transform,d=void 0===u?r.U:u,p=t.delimiter,m=void 0===p?" ":p,g=i(i(e,o,"$1\0$2"),c,"\0"),A=0,h=g.length;"\0"===g.charAt(A);)A++;for(;"\0"===g.charAt(h-1);)h--;return g.slice(A,h).split("\0").map(d).join(m)}function i(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}},76854:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(38697),a=n(77352);function s(e,t){return void 0===t&&(t={}),(0,a.$)(e,(0,r.pi)({delimiter:"-"},t))}},72867:(e,t,n)=>{"use strict";n.d(t,{By:()=>s,Ho:()=>i,Pv:()=>o});var r=n(38697),a=n(68308);function s(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function o(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function i(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:"",transform:s},t))}},76559:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(38697),a=n(77352);function s(e,t){return void 0===t&&(t={}),(0,a.$)(e,(0,r.pi)({delimiter:"/"},t))}},69424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(94273),a=n.n(r),s=n(53191),o=n.n(s),i=n(51128),l=n.n(i)()("photon"),c={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},u="__domain__.invalid",d="http://".concat(u),p="https://i0.wp.com";function m(e,t){var n;try{n=new URL(e,d)}catch(e){return null}var r,s,i,m,g,A="https:"===n.protocol,h=new URL(p);if(g=n.host,/^i[0-2]\.wp\.com$/.test(g))h.pathname=n.pathname,h.hostname=n.hostname;else{if(n.search)return null;var E=n.href.replace("".concat(n.protocol,"/"),"");"blob:"===n.protocol&&(E=n.pathname.replace("://","//")),n.hostname===u&&(E=n.pathname),h.pathname=E,h.hostname=(r=E,s=a()(r),i=o()(s),m="i"+Math.floor(3*i()),l('determined server "%s" to use with "%s"',m,r),m+".wp.com"),A&&h.searchParams.set("ssl",1)}if(t)for(var f in t)"host"!==f&&"hostname"!==f?"secure"!==f||t[f]?h.searchParams.set(c[f]||f,t[f]):h.protocol="http:":h.hostname=t[f];return l("generated Photon URL: %s",h.href),h.href}},469:(e,t,n)=>{"use strict";var r=n(90758);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,s,o){if(o!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:a};return n.PropTypes=n,n}},25162:(e,t,n)=>{e.exports=n(469)()},90758:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},15720:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>f});const r=2147483647,a=36,s=/^xn--/,o=/[^\0-\x7F]/,i=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(l[e])}function p(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const a=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(i,".")).split("."),t).join(".");return r+a}function m(e){const t=[];let n=0;const r=e.length;for(;n<r;){const a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&a)<<10)+(1023&r)+65536):(t.push(a),n--)}else t.push(a)}return t}const g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},A=function(e,t,n){let r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=a)e=c(e/35);return c(r+36*e/(e+38))},h=function(e){const t=[],n=e.length;let s=0,o=128,i=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n<l;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let p=l>0?l+1:0;p<n;){const l=s;for(let t=1,o=a;;o+=a){p>=n&&d("invalid-input");const l=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:a;l>=a&&d("invalid-input"),l>c((r-s)/t)&&d("overflow"),s+=l*t;const m=o<=i?1:o>=i+26?26:o-i;if(l<m)break;const g=a-m;t>c(r/g)&&d("overflow"),t*=g}const m=t.length+1;i=A(s-l,m,0==l),c(s/m)>r-o&&d("overflow"),o+=c(s/m),s%=m,t.splice(s++,0,o)}var u;return String.fromCodePoint(...t)},E=function(e){const t=[],n=(e=m(e)).length;let s=128,o=0,i=72;for(const n of e)n<128&&t.push(u(n));const l=t.length;let p=l;for(l&&t.push("-");p<n;){let n=r;for(const t of e)t>=s&&t<n&&(n=t);const m=p+1;n-s>c((r-o)/m)&&d("overflow"),o+=(n-s)*m,s=n;for(const n of e)if(n<s&&++o>r&&d("overflow"),n===s){let e=o;for(let n=a;;n+=a){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const s=e-r,o=a-r;t.push(u(g(r+s%o,0))),e=c(s/o)}t.push(u(g(e,0))),i=A(o,m,p===l),o=0,++p}++o,++s}return t.join("")},f={version:"2.3.1",ucs2:{decode:m,encode:e=>String.fromCodePoint(...e)},decode:h,encode:E,toASCII:function(e){return p(e,(function(e){return o.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return p(e,(function(e){return s.test(e)?h(e.slice(4).toLowerCase()):e}))}}},28918:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>j});var r,a=n(99196),s=n.n(a),o=Object.defineProperty,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&u(e,n,t[n]);if(i)for(var n of i(t))c.call(t,n)&&u(e,n,t[n]);return e},p=(e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&i)for(var r of i(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const i=this.addEccAndInterleave(r);if(this.drawCodewords(i),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(a=t,e=n),this.applyMask(t)}}s(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(n,r){const a=e.QrSegment.makeSegments(n);return t.encodeSegments(a,r)}static encodeBinary(n,r){const a=e.QrSegment.makeBytes(n);return t.encodeSegments([a],r)}static encodeSegments(e,n,a=1,o=40,l=-1,c=!0){if(!(t.MIN_VERSION<=a&&a<=o&&o<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let u,d;for(u=a;;u++){const r=8*t.getNumDataCodewords(u,n),a=i.getTotalBits(e,u);if(a<=r){d=a;break}if(u>=o)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(u),p);for(const e of t.getData())p.push(e)}s(p.length==d);const m=8*t.getNumDataCodewords(u,n);s(p.length<=m),r(0,Math.min(4,m-p.length),p),r(0,(8-p.length%8)%8,p),s(p.length%8==0);for(let e=236;p.length<m;e^=253)r(e,8,p);let g=[];for(;8*g.length<p.length;)g.push(0);return p.forEach(((e,t)=>g[t>>>3]|=e<<7-(7&t))),new t(u,n,g,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);s(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,a(r,e));this.setFunctionModule(8,7,a(r,6)),this.setFunctionModule(8,8,a(r,7)),this.setFunctionModule(7,8,a(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,a(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,a(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,a(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;s(t>>>18==0);for(let e=0;e<18;e++){const n=a(t,e),r=this.size-11+e%3,s=Math.floor(e/3);this.setFunctionModule(r,s,n),this.setFunctionModule(s,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const a=Math.max(Math.abs(r),Math.abs(n)),s=e+r,o=t+n;0<=s&&s<this.size&&0<=o&&o<this.size&&this.setFunctionModule(s,o,2!=a&&4!=a)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const a=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],o=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],i=Math.floor(t.getNumRawDataModules(n)/8),l=a-i%a,c=Math.floor(i/a);let u=[];const d=t.reedSolomonComputeDivisor(o);for(let n=0,r=0;n<a;n++){let a=e.slice(r,r+c-o+(n<l?0:1));r+=a.length;const s=t.reedSolomonComputeRemainder(a,d);n<l&&a.push(0),u.push(a.concat(s))}let p=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=c-o||n>=l)&&p.push(t[e])}));return s(p.length==i),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let s=0;s<2;s++){const o=t-s,i=!(t+1&2)?this.size-1-r:r;!this.isFunction[i][o]&&n<8*e.length&&(this.modules[i][o]=a(e[n>>>3],7-(7&n)),n++)}}s(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,a=0,s=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]==r?(a++,5==a?e+=t.PENALTY_N1:a>5&&e++):(this.finderPenaltyAddHistory(a,s),r||(e+=this.finderPenaltyCountPatterns(s)*t.PENALTY_N3),r=this.modules[n][o],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,s)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,a=0,s=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]==r?(a++,5==a?e+=t.PENALTY_N1:a>5&&e++):(this.finderPenaltyAddHistory(a,s),r||(e+=this.finderPenaltyCountPatterns(s)*t.PENALTY_N3),r=this.modules[o][n],a=1);e+=this.finderPenaltyTerminateAndCount(r,a,s)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const a=this.modules[n][r];a==this.modules[n][r+1]&&a==this.modules[n+1][r]&&a==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*r)/r)-1;return s(0<=a&&a<=9),e+=a*t.PENALTY_N4,s(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return s(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let a=0;a<e;a++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const a of e){const e=a^r.shift();r.push(0),n.forEach(((n,a)=>r[a]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return s(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];s(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function a(e,t){return!!(e>>>t&1)}function s(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const o=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new o(o.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!o.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const a=Math.min(e.length-n,3);r(parseInt(e.substr(n,a),10),3*a+1,t),n+=a}return new o(o.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!o.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let a=45*o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));a+=o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(a,11,n)}return t<e.length&&r(o.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new o(o.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:o.isNumeric(e)?[o.makeNumeric(e)]:o.isAlphanumeric(e)?[o.makeAlphanumeric(e)]:[o.makeBytes(o.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new o(o.Mode.ECI,0,t)}static isNumeric(e){return o.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return o.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let i=o;i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=i})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(r||(r={}));var m=r,g={L:m.QrCode.Ecc.LOW,M:m.QrCode.Ecc.MEDIUM,Q:m.QrCode.Ecc.QUARTILE,H:m.QrCode.Ecc.HIGH},A=128,h="L",E="#FFFFFF",f="#000000",b=!1,C=4,v=.1;function k(e,t=0){const n=[];return e.forEach((function(e,r){let a=null;e.forEach((function(s,o){if(!s&&null!==a)return n.push(`M${a+t} ${r+t}h${o-a}v1H${a+t}z`),void(a=null);if(o!==e.length-1)s&&null===a&&(a=o);else{if(!s)return;null===a?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${a+t},${r+t} h${o+1-a}v1H${a+t}z`)}}))})),n.join("")}function B(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function y(e,t,n,r){if(null==r)return null;const a=n?C:0,s=e.length+2*a,o=Math.floor(t*v),i=s/t,l=(r.width||o)*i,c=(r.height||o)*i,u=null==r.x?e.length/2-l/2:r.x*i,d=null==r.y?e.length/2-c/2:r.y*i;let p=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);p={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:p}}var w=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function _(e){const t=e,{value:n,size:r=A,level:o=h,bgColor:i=E,fgColor:l=f,includeMargin:c=b,style:u,imageSettings:v}=t,_=p(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),I=null==v?void 0:v.src,j=(0,a.useRef)(null),x=(0,a.useRef)(null),[S,Q]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(null!=j.current){const e=j.current,t=e.getContext("2d");if(!t)return;let a=m.QrCode.encodeText(n,g[o]).getModules();const s=c?C:0,u=a.length+2*s,d=y(a,r,c,v),p=x.current,A=null!=d&&null!==p&&p.complete&&0!==p.naturalHeight&&0!==p.naturalWidth;A&&null!=d.excavation&&(a=B(a,d.excavation));const h=window.devicePixelRatio||1;e.height=e.width=r*h;const E=r/u*h;t.scale(E,E),t.fillStyle=i,t.fillRect(0,0,u,u),t.fillStyle=l,w?t.fill(new Path2D(k(a,s))):a.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+s,n+s,1,1)}))})),A&&t.drawImage(p,d.x+s,d.y+s,d.w,d.h)}})),(0,a.useEffect)((()=>{Q(!1)}),[I]);const N=d({height:r,width:r},u);let P=null;return null!=I&&(P=s().createElement("img",{src:I,key:I,style:{display:"none"},onLoad:()=>{Q(!0)},ref:x})),s().createElement(s().Fragment,null,s().createElement("canvas",d({style:N,height:r,width:r,ref:j},_)),P)}function I(e){const t=e,{value:n,size:r=A,level:a=h,bgColor:o=E,fgColor:i=f,includeMargin:l=b,imageSettings:c}=t,u=p(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let v=m.QrCode.encodeText(n,g[a]).getModules();const w=l?C:0,_=v.length+2*w,I=y(v,r,l,c);let j=null;null!=c&&null!=I&&(null!=I.excavation&&(v=B(v,I.excavation)),j=s().createElement("image",{xlinkHref:c.src,height:I.h,width:I.w,x:I.x+w,y:I.y+w,preserveAspectRatio:"none"}));const x=k(v,w);return s().createElement("svg",d({height:r,width:r,viewBox:`0 0 ${_} ${_}`},u),s().createElement("path",{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:"crispEdges"}),s().createElement("path",{fill:i,d:x,shapeRendering:"crispEdges"}),j)}var j=e=>{const t=e,{renderAs:n}=t,r=p(t,["renderAs"]);return"svg"===n?s().createElement(I,d({},r)):s().createElement(_,d({},r))}},40142:(e,t)=>{"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function a(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,s,o=[];for(s in"string"!=typeof t&&(t="?"),e)if(n.call(e,s)){if((r=e[s])||null!=r&&!isNaN(r)||(r=""),s=a(s),r=a(r),null===s||null===r)continue;o.push(s+"="+r)}return o.length?t+o.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,a={};t=n.exec(e);){var s=r(t[1]),o=r(t[2]);null===s||null===o||s in a||(a[s]=o)}return a}},51516:(e,t,n)=>{"use strict";var r=n(91850);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},22552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(99196),a=n(19905),s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(_n=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,a=e}finally{try{!_n&&o.return&&o.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=a.Gb&&a.WD;const i=function(){var e=(0,a.XO)(),t=s(e,1)[0],n=(0,r.useState)(t),i=s(n,2),l=i[0],c=i[1];return(0,r.useEffect)((function(){if(o){var e=function(){var e=(0,a.XO)(),t=s(e,1)[0];c(t)};return document.addEventListener(a.WD.event,e),function(){document.removeEventListener(a.WD.event,e)}}}),[]),l}},19905:(e,t,n)=>{"use strict";n.d(t,{Gb:()=>s,WD:()=>o,XO:()=>i});var r="undefined"!=typeof document,a=[{hidden:"hidden",event:"visibilitychange",state:"visibilityState"},{hidden:"webkitHidden",event:"webkitvisibilitychange",state:"webkitVisibilityState"},{hidden:"mozHidden",event:"mozvisibilitychange",state:"mozVisibilityState"},{hidden:"msHidden",event:"msvisibilitychange",state:"msVisibilityState"},{hidden:"oHidden",event:"ovisibilitychange",state:"oVisibilityState"}],s=r&&Boolean(document.addEventListener),o=function(){if(!s)return null;var e=!0,t=!1,n=void 0;try{for(var r,o=a[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value;if(i.hidden in document)return i}}catch(e){t=!0,n=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw n}}return null}(),i=function(){if(!o)return[!0,"visible"];var e=o.hidden,t=o.state;return[!document[e],document[t]]}},24561:(e,t,n)=>{"use strict";var r=n(99196),a=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,s={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:s,_owner:i.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},30275:(e,t,n)=>{"use strict";e.exports=n(24561)},24274:e=>{"use strict";function t(e,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)t(e,n[r]);else for(r in n)e[r]=(e[r]||[]).concat(n[r])}e.exports=function(e){var n,r={};return t(r,e),(n=function(e){return function(t){return function(n){var a,s,o=r[n.type],i=t(n);if(o)for(a=0;a<o.length;a++)(s=o[a](n,e))&&e.dispatch(s);return i}}}).effects=r,n}},82298:e=>{"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},6209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}()}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,a=0;function s(){n&&(n=!1,e()),r&&l()}function i(){o(s)}function l(){var e=Date.now();if(n){if(e-a<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);a=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;i.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},p=f(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+m(e["border-"+n+"-width"])}),0)}function A(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],s=e["padding-"+a];t[a]=m(s)}return t}(r),s=a.left+a.right,o=a.top+a.bottom,i=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(i+s)!==t&&(i-=g(r,"left","right")+s),Math.round(l+o)!==n&&(l-=g(r,"top","bottom")+o)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(i+s)-t,u=Math.round(l+o)-n;1!==Math.abs(c)&&(i-=c),1!==Math.abs(u)&&(l-=u)}return f(a.left,a.top,i,l)}var h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function E(e){return a?h(e)?function(e){var t=e.getBBox();return f(0,0,t.width,t.height)}(e):A(e):p}function f(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=E(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),C=function(e,t){var n,r,a,s,o,i,l,c=(r=(n=t).x,a=n.y,s=n.width,o=n.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(i.prototype),u(l,{x:r,y:a,width:s,height:o,top:a,right:r+s,bottom:o+a,left:r}),l);u(this,{target:e,contentRect:c})},v=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new C(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,B=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new v(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){B.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));const y=void 0!==s.ResizeObserver?s.ResizeObserver:B},53191:e=>{"use strict";var t=256,n=[],r=window,a=Math.pow(t,6),s=Math.pow(2,52),o=2*s,i=255,l=Math.random;function c(e){var n,r=e.length,a=this,s=0,o=a.i=a.j=0,l=a.S=[];for(r||(e=[r++]);s<t;)l[s]=s++;for(s=0;s<t;s++)l[s]=l[o=i&o+e[s%r]+(n=l[s])],l[o]=n;(a.g=function(e){for(var n,r=0,s=a.i,o=a.j,l=a.S;e--;)n=l[s=i&s+1],r=r*t+l[i&(l[s]=l[o=i&o+n])+(l[o]=n)];return a.i=s,a.j=o,r})(t)}function u(e,t){var n,r=[],a=(typeof e)[0];if(t&&"o"==a)for(n in e)try{r.push(u(e[n],t-1))}catch(e){}return r.length?r:"s"==a?e:e+"\0"}function d(e,t){for(var n,r=e+"",a=0;a<r.length;)t[i&a]=i&(n^=19*t[i&a])+r.charCodeAt(a++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}e.exports=function(i,l){if(l&&!0===l.global)return l.global=!1,Math.random=e.exports(i,l),l.global=!0,Math.random;var m=[],g=(d(u(l&&l.entropy||!1?[i,p(n)]:0 in arguments?i:function(e){try{return r.crypto.getRandomValues(e=new Uint8Array(t)),p(e)}catch(e){return[+new Date,r,r.navigator&&r.navigator.plugins,r.screen,p(n)]}}(),3),m),new c(m));return d(p(g.S),n),function(){for(var e=g.g(6),n=a,r=0;e<s;)e=(e+r)*t,n*=t,r=g.g(1);for(;e>=o;)e/=2,n/=2,r>>>=1;return(e+r)/n}},e.exports.resetGlobal=function(){Math.random=l},d(Math.random(),n)},44434:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,a:()=>o});var r=n(38697),a=n(68308),s=n(83078);function o(e,t){var n=e.toLowerCase();return 0===t?(0,s.l)(n):n}function i(e,t){return void 0===t&&(t={}),(0,a.B)(e,(0,r.pi)({delimiter:" ",transform:o},t))}},59491:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(38697),a=n(77352);function s(e,t){return void 0===t&&(t={}),(0,a.$)(e,(0,r.pi)({delimiter:"_"},t))}},87309:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(86989),a=n.n(r);const s="default"in a()?a().default:a()},67742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51128),a=n.n(r),s=n(56694);const o=a()("jetpack-ai-client:ask-question");async function i(e,{postId:t=null,fromCache:n=!1,feature:r,functions:a,model:i}={}){return o("Asking question: %o. options: %o",e,{postId:t,fromCache:n,feature:r,functions:a,model:i}),new s.Z({question:e,options:{postId:t,feature:r,fromCache:n,functions:a,model:i}})}},78982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51128),a=n.n(r),s=n(2890);const o=a()("jetpack-ai-client:ask-question-sync");async function i(e,{postId:t=null,feature:n,model:r}={}){o("Asking question with no streaming: %o. options: %o",e,{postId:t,feature:n,model:r});let a=null;try{a=(await(0,s.Z)()).token}catch(e){return o("Error getting token: %o",e),Promise.reject(e)}const i={question:e,stream:!1,postId:t,feature:n,model:r},l={Authorization:`Bearer ${a}`,"Content-Type":"application/json"},c=await fetch("https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query",{method:"POST",headers:l,body:JSON.stringify(i)}).then((e=>e.json()));return c?.data?.status&&c?.data?.status>200?(o("Error generating prompt: %o",c),Promise.reject(c)):c}},46961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51128),a=n.n(r),s=n(2890);const o=a()("jetpack-ai-client:audio-transcription");async function i(e,t,n){o("Transcribing audio: %o. Feature: %o",e,t);let r="";try{r=(await(0,s.Z)()).token}catch(e){return o("Error getting token: %o",e),Promise.reject(e)}const a=new FormData;a.append("audio_file",e);try{const e={Authorization:`Bearer ${r}`},s="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-transcription"+(t?`?feature=${t}`:"");return fetch(s,{method:"POST",body:a,headers:e,signal:n??void 0}).then((e=>(o("Transcription response: %o",e),e.ok?e.json().then((e=>e?.text)):e.json().then((e=>Promise.reject(e))))))}catch(e){return o("Transcription error response: %o",e),Promise.reject(e)}}},14053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(52175),a=n(65235),s=n.n(a),o=n(99196),i=n.n(o),l=n(11928);function c({className:e,disabled:t=!1,value:n="",placeholder:a="",isTransparent:o=!1,state:c="init",onChange:u,banner:d=null,error:p=null,actions:m=null,message:g=null,promptUserInputRef:A=null,wrapperRef:h=null}){return i().createElement("div",{className:s()("jetpack-components-ai-control__container-wrapper",e),ref:h},p,i().createElement("div",{className:"jetpack-components-ai-control__container"},d,i().createElement("div",{className:s()("jetpack-components-ai-control__wrapper",{"is-transparent":o})},i().createElement(l.Z,{state:c}),i().createElement("div",{className:"jetpack-components-ai-control__input-wrapper"},i().createElement(r.PlainText,{value:n,onChange:u,placeholder:a,className:"jetpack-components-ai-control__input",disabled:t,ref:A})),m),g))}},6493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(55609),a=n(94333),s=n(69307),o=n(65736),i=n(61074),l=n(6163),c=n(90986),u=n(78270),d=n(34394),p=n(79201),m=n(51128),g=n.n(m),A=n(99196),h=n.n(A),E=n(7840),f=n(14053);const __=o.__,b=g()("jetpack-ai-client:block-ai-control");function C({disabled:e=!1,value:t="",placeholder:n="",showAccept:o=!1,acceptLabel:m=__("Accept","jetpack"),showButtonLabels:g=!0,isTransparent:A=!1,state:C="init",showGuideLine:v=!1,customFooter:k=null,onChange:B,onSend:y,onStop:w,onAccept:_,onDiscard:I,showRemove:j=!1,banner:x=null,error:S=null},Q){const N="requesting"===C||"suggesting"===C,[P,T]=(0,s.useState)(!1),[R,Z]=(0,s.useState)(t||null),L=(0,s.useRef)(null);(0,s.useImperativeHandle)(Q,(()=>L.current)),(0,s.useEffect)((()=>{P&&L?.current?.focus()}),[P]);const M=(0,s.useCallback)((()=>{Z(t),T(!1),y?.(t)}),[t]),D=(0,s.useCallback)((e=>{B?.(e),"init"!==C&&T(R?e!==R:e.length>0)}),[R,C]),F=(0,s.useCallback)((()=>{I?.()}),[]),z=(0,s.useCallback)((()=>{b("cancelEdit, revert to last value",R),B?.(R||""),T(!1)}),[R]);(0,a.useKeyboardShortcut)("mod+enter",(()=>{o&&_?.()}),{target:L}),(0,a.useKeyboardShortcut)("enter",(e=>{e.preventDefault(),M()}),{target:L});const O=h().createElement(h().Fragment,null,(!o||P)&&h().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},N?h().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:w,variant:"secondary",label:__("Stop request","jetpack")},g?__("Stop","jetpack"):h().createElement(i.Z,{icon:l.Z})):h().createElement(h().Fragment,null,P&&h().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:z,variant:"secondary",label:__("Cancel","jetpack")},g?__("Cancel","jetpack"):h().createElement(i.Z,{icon:l.Z})),j&&!P&&!t?.length&&I&&h().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:F,variant:"secondary",label:__("Cancel","jetpack")},g?__("Cancel","jetpack"):h().createElement(i.Z,{icon:l.Z})),t?.length>0&&h().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:M,variant:"primary",disabled:!t?.length||e,label:__("Send request","jetpack")},g?__("Generate","jetpack"):h().createElement(i.Z,{icon:c.Z})))),o&&!P&&h().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},(t?.length>0||null===R)&&h().createElement(r.ButtonGroup,null,h().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Discard","jetpack"),onClick:F,tooltipPosition:"top"},h().createElement(i.Z,{icon:u.Z})),h().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Regenerate","jetpack"),onClick:()=>y?.(t),tooltipPosition:"top",disabled:!t?.length||null===t||e},h().createElement(i.Z,{icon:d.Z}))),h().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:_,variant:"primary",label:m},g?m:h().createElement(i.Z,{icon:p.Z})))),U=v&&!N&&!P&&(k||h().createElement(E.Eo,null));return h().createElement(f.Z,{disabled:e||N,value:t,placeholder:n,isTransparent:A,state:C,onChange:D,banner:x,error:S,actions:O,message:U,promptUserInputRef:L})}const v=(0,A.forwardRef)(C)},2543:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(55609),a=n(94333),s=n(69307),o=n(65736),i=n(61074),l=n(6163),c=n(90986),u=n(74927),d=n(99196),p=n.n(d),m=n(7840),g=n(14053);const __=o.__;function A({className:e,disabled:t=!1,value:n="",placeholder:o="",showButtonLabels:d=!0,isTransparent:A=!1,state:h="init",showGuideLine:E=!1,error:f,requestsRemaining:b,showUpgradeMessage:C=!1,upgradeUrl:v,wrapperRef:k,onChange:B,onSend:y,onStop:w,onClose:_,onUndo:I,onUpgrade:j,onTryAgain:x},S){const Q="requesting"===h||"suggesting"===h,[N,P]=(0,s.useState)(!1),[T,R]=(0,s.useState)(n||null),Z=(0,s.useRef)(null);(0,s.useImperativeHandle)(S,(()=>Z.current)),(0,s.useEffect)((()=>{N&&Z?.current?.focus()}),[N]);const L=(0,s.useCallback)((()=>{R(n),P(!1),y?.(n)}),[y,n]),M=(0,s.useCallback)((e=>{B?.(e),"init"!==h&&P(T?e!==T:e.length>0)}),[B,T,h]),D=(0,s.useCallback)((()=>{w?.()}),[w]),F=(0,s.useCallback)((()=>{_?.()}),[_]),z=(0,s.useCallback)((()=>{I?.()}),[I]),O=(0,s.useCallback)((e=>{j?.(e)}),[j]),U=(0,s.useCallback)((()=>{x?.()}),[x]);(0,a.useKeyboardShortcut)("enter",(e=>{e.preventDefault(),L()}),{target:Z});const H=p().createElement(p().Fragment,null,Q?p().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:D,variant:"secondary",label:__("Stop request","jetpack")},d?__("Stop","jetpack"):p().createElement(i.Z,{icon:l.Z})):p().createElement(p().Fragment,null,n?.length>0&&p().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},p().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:L,variant:"primary",disabled:!n?.length||t,label:__("Send request","jetpack")},d?__("Generate","jetpack"):p().createElement(i.Z,{icon:c.Z}))),n?.length<=0&&"done"===h&&p().createElement("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper"},p().createElement(r.ButtonGroup,null,p().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Undo","jetpack"),onClick:z,tooltipPosition:"top"},p().createElement(i.Z,{icon:u.Z})),p().createElement(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Close","jetpack"),onClick:F,variant:"tertiary"},__("Close","jetpack"))))));let V=null;return f?.message?V=p().createElement(m.Bc,{error:f.message,code:f.code,onTryAgainClick:U,onUpgradeClick:O,upgradeUrl:v}):C?V=p().createElement(m.xi,{requestsRemaining:b,onUpgradeClick:O,upgradeUrl:v}):E&&(V=p().createElement(m.Eo,null)),p().createElement(g.Z,{className:e,disabled:t||Q,value:n,placeholder:o,isTransparent:A,state:h,onChange:M,actions:H,message:V,promptUserInputRef:Z,wrapperRef:k})}const h=(0,d.forwardRef)(A)},4437:(e,t,n)=>{"use strict";n.d(t,{C3:()=>a.Z,MW:()=>r.Z});n(14053);var r=n(6493),a=n(2543)},11928:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(55609),a=n(65235),s=n.n(a);function o({state:e}){return React.createElement("div",{className:s()("jetpack-ai-status-indicator__icon-wrapper",{[`is-${e}`]:!0})},React.createElement(r.Spinner,null))}},590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(55392);function a({duration:e,className:t}){return React.createElement("span",{className:t},(0,r.m)(e,{addDecimalPart:!1}))}},55392:(e,t,n)=>{"use strict";function r(e,{addDecimalPart:t=!1,showMinutes:n=!0,showHours:r=!1}={}){const a=Math.floor(e/36e5),s=Math.floor(e/6e4)%60,o=Math.floor(e/1e3)%60,i=Math.floor(e/10)%100,l=[a>0||r?a.toString().padStart(2,"0")+":":"",a>0||s>0||n?s.toString().padStart(2,"0")+":":"",o.toString().padStart(2,"0")];return t&&l.push("."+i.toString().padStart(2,"0")),l.join("")}n.d(t,{m:()=>r})},58890:(e,t,n)=>{"use strict";n.d(t,{C3:()=>r.C3,Eo:()=>o.Eo,MW:()=>r.MW,ZK:()=>s.Z,rp:()=>a.Z,xi:()=>o.xi});var r=n(4437),a=n(11928),s=n(590),o=n(7840)},7840:(e,t,n)=>{"use strict";n.d(t,{Bc:()=>C,Eo:()=>f,xi:()=>b});var r=n(55609),a=n(65736),s=n(79201),o=n(61074),i=n(60495),l=n(65235),c=n.n(l),u=n(83585),d=n(16700);const __=a.__,p="warning",m="error",g="success",A="info",h={[A]:null,[p]:null,[m]:u.Z,[g]:s.Z};function E({severity:e=A,icon:t=null,showSidebarIcon:n=!1,onSidebarIconClick:a=(()=>{}),children:s}){return React.createElement("div",{className:c()("jetpack-ai-assistant__message",`jetpack-ai-assistant__message-severity-${e}`)},(h[e]||t)&&React.createElement(o.Z,{icon:h[e]||t}),React.createElement("div",{className:"jetpack-ai-assistant__message-content"},s),n&&React.createElement(r.Button,{className:"jetpack-ai-assistant__message-sidebar",onClick:a},React.createElement(o.Z,{size:20,icon:i.Z})))}function f(){return React.createElement(E,null,React.createElement("span",null,__("AI-generated content could be inaccurate or biased.","jetpack")),React.createElement(r.ExternalLink,{href:"https://automattic.com/ai-guidelines"},__("Learn more","jetpack")))}function b({requestsRemaining:e,severity:t,onUpgradeClick:n,upgradeUrl:s}){let o=t;return null==o&&(o=e>0?A:p),React.createElement(E,{severity:o},React.createElement("span",null,(0,a.sprintf)( | |
| 2 | +(()=>{var e,t,n={7675(e,t,n){"use strict";n.d(t,{y:()=>i});var r=n(76416),o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const s="text/event-stream",a="last-event-id";function i(e,t){var{signal:n,headers:i,onopen:l,onmessage:u,onclose:d,onerror:p,openWhenHidden:h,fetch:m}=t,g=o(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,o)=>{const f=Object.assign({},i);let b;function v(){b.abort(),document.hidden||j()}f.accept||(f.accept=s),h||document.addEventListener("visibilitychange",v);let y=1e3,k=0;function w(){document.removeEventListener("visibilitychange",v),window.clearTimeout(k),b.abort()}null==n||n.addEventListener("abort",()=>{w(),t()});const x=null!=m?m:window.fetch,_=null!=l?l:c;async function j(){var n;b=new AbortController;try{const n=await x(e,Object.assign(Object.assign({},g),{headers:f,signal:b.signal}));await _(n),await(0,r.q5)(n.body,(0,r.iv)((0,r.VL)(e=>{e?f[a]=e:delete f[a]},e=>{y=e},u))),null==d||d(),w(),t()}catch(e){if(!b.signal.aborted)try{const t=null!==(n=null==p?void 0:p(e))&&void 0!==n?n:y;window.clearTimeout(k),k=window.setTimeout(j,t)}catch(e){w(),o(e)}}}j()})}function c(e){const t=e.headers.get("content-type");if(!(null==t?void 0:t.startsWith(s)))throw new Error(`Expected content-type to be ${s}, Actual: ${t}`)}},76416(e,t,n){"use strict";async function r(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function o(e){let t,n,r,o=!1;return function(s){void 0===t?(t=s,n=0,r=-1):t=function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(t,s);const a=t.length;let i=0;for(;n<a;){o&&(10===t[n]&&(i=++n),o=!1);let s=-1;for(;n<a&&-1===s;++n)switch(t[n]){case 58:-1===r&&(r=n-i);break;case 13:o=!0;case 10:s=n}if(-1===s)break;e(t.subarray(i,s),r),i=n,r=-1}i===a?t=void 0:0!==i&&(t=t.subarray(i),n-=i)}}function s(e,t,n){let r=a();const o=new TextDecoder;return function(s,i){if(0===s.length)null==n||n(r),r=a();else if(i>0){const n=o.decode(s.subarray(0,i)),a=i+(32===s[i+1]?2:1),c=o.decode(s.subarray(a));switch(n){case"data":r.data=r.data?r.data+"\n"+c:c;break;case"event":r.event=c;break;case"id":e(r.id=c);break;case"retry":const n=parseInt(c,10);isNaN(n)||t(r.retry=n)}}}}function a(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{VL:()=>s,iv:()=>o,q5:()=>r})},11787(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},87399(e){!function(){"use strict";var t=[],n=3988292384;function r(e){var t,r,o,s,a=-1;for(t=0,o=e.length;t<o;t+=1){for(s=255&(a^e[t]),r=0;r<8;r+=1)1&~s?s>>>=1:s=s>>>1^n;a=a>>>8^s}return-1^a}function o(e,n){var r,s,a;if(void 0!==o.crc&&n&&e||(o.crc=~0,e)){for(r=o.crc,s=0,a=e.length;s<a;s+=1)r=r>>>8^t[255&(r^e[s])];return o.crc=r,-1^r}}!function(){var e,r,o;for(r=0;r<256;r+=1){for(e=r,o=0;o<8;o+=1)1&e?e=n^e>>>1:e>>>=1;t[r]=e>>>0}}(),e.exports=function(e,t){var n;e="string"==typeof e?(n=e,Array.prototype.map.call(n,function(e){return e.charCodeAt(0)})):e;return((t?r(e):o(e))>>>0).toString(16)},e.exports.direct=r,e.exports.table=o}()},615(e){var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],s=0;s<4;s++)8*r+6*s<=8*e.length?n.push(t.charAt(o>>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}},e.exports=n},86954(e){function t(e,t=100,n={}){if("function"!=typeof e)throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");const{immediate:r}="boolean"==typeof n?{immediate:n}:n;let o,s,a,i,c;function l(){const t=o,n=s;return o=void 0,s=void 0,c=e.apply(t,n),c}function u(){const e=Date.now()-i;e<t&&e>=0?a=setTimeout(u,t-e):(a=void 0,r||(c=l()))}const d=function(...e){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,s=e,i=Date.now();const n=r&&!a;return a||(a=setTimeout(u,t)),n&&(c=l()),c};return Object.defineProperty(d,"isPending",{get:()=>void 0!==a}),d.clear=()=>{a&&(clearTimeout(a),a=void 0)},d.flush=()=>{a&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}e.exports.debounce=t,e.exports=t},93764(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function i(e,t,n){var o={};return n.isMergeableObject(e)&&s(e).forEach(function(t){o[t]=r(e[t],n)}),s(t).forEach(function(s){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(a(e,s)&&n.isMergeableObject(t[s])?o[s]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(s,n)(e[s],t[s],n):o[s]=r(t[s],n))}),o}function c(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?s.arrayMerge(e,n,s):i(e,n,s):r(n,s)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return c(e,n,t)},{})};var l=c;e.exports=l},39904(e,t){"use strict";var n=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.t=function(e){if(!e)return!1;if(e.length>254)return!1;if(!n.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some(function(e){return e.length>63})}},2467(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,o,{once:!0})})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,s,a,l;if(i(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]),void 0===a)a=s[t]=n,++e._eventsCount;else if("function"==typeof a?a=s[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):m(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(s){r.once&&e.removeEventListener(t,o),n(s)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,s=this._events;if(void 0!==s)o=o&&void 0===s.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var c=s[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=m(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return l(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return l(this,e,t,!0)},s.prototype.once=function(e,t){return i(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return i(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,s,a;if(i(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){a=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(o=s[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},35933(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},58314(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},20305(e){"use strict";function t(e,t,n,r){var o=Number(e[t].meta.id+1).toString(),s="";return"string"==typeof r.docId&&(s="-"+r.docId+"-"),s+o}function n(e,t){var n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=":"+e[t].meta.subId),"["+n+"]"}function r(e,t,n,r,o){var s=o.rules.footnote_anchor_name(e,t,n,r,o),a=o.rules.footnote_caption(e,t,n,r,o),i=s;return e[t].meta.subId>0&&(i+=":"+e[t].meta.subId),'<sup class="footnote-ref"><a href="#fn'+s+'" id="fnref'+i+'">'+a+"</a></sup>"}function o(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function s(){return"</ol>\n</section>\n"}function a(e,t,n,r,o){var s=o.rules.footnote_anchor_name(e,t,n,r,o);return e[t].meta.subId>0&&(s+=":"+e[t].meta.subId),'<li id="fn'+s+'" class="footnote-item">'}function i(){return"</li>\n"}function c(e,t,n,r,o){var s=o.rules.footnote_anchor_name(e,t,n,r,o);return e[t].meta.subId>0&&(s+=":"+e[t].meta.subId),' <a href="#fnref'+s+'" class="footnote-backref">↩︎</a>'}e.exports=function(e){var l=e.helpers.parseLinkLabel,u=e.utils.isSpace;e.renderer.rules.footnote_ref=r,e.renderer.rules.footnote_block_open=o,e.renderer.rules.footnote_block_close=s,e.renderer.rules.footnote_open=a,e.renderer.rules.footnote_close=i,e.renderer.rules.footnote_anchor=c,e.renderer.rules.footnote_caption=n,e.renderer.rules.footnote_anchor_name=t,e.block.ruler.before("reference","footnote_def",function(e,t,n,r){var o,s,a,i,c,l,d,p,h,m,g,f=e.bMarks[t]+e.tShift[t],b=e.eMarks[t];if(f+4>b)return!1;if(91!==e.src.charCodeAt(f))return!1;if(94!==e.src.charCodeAt(f+1))return!1;for(c=f+2;c<b;c++){if(32===e.src.charCodeAt(c))return!1;if(93===e.src.charCodeAt(c))break}if(c===f+2)return!1;if(c+1>=b||58!==e.src.charCodeAt(++c))return!1;if(r)return!0;for(c++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),l=e.src.slice(f+2,c-2),e.env.footnotes.refs[":"+l]=-1,(d=new e.Token("footnote_reference_open","",1)).meta={label:l},d.level=e.level++,e.tokens.push(d),o=e.bMarks[t],s=e.tShift[t],a=e.sCount[t],i=e.parentType,g=c,p=h=e.sCount[t]+c-(e.bMarks[t]+e.tShift[t]);c<b&&(m=e.src.charCodeAt(c),u(m));)9===m?h+=4-h%4:h++,c++;return e.tShift[t]=c-g,e.sCount[t]=h-p,e.bMarks[t]=g,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,n,!0),e.parentType=i,e.blkIndent-=4,e.tShift[t]=s,e.sCount[t]=a,e.bMarks[t]=o,(d=new e.Token("footnote_reference_close","",-1)).level=--e.level,e.tokens.push(d),!0},{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",function(e,t){var n,r,o,s,a=e.posMax,i=e.pos;return!(i+2>=a)&&(94===e.src.charCodeAt(i)&&(91===e.src.charCodeAt(i+1)&&(n=i+2,!((r=l(e,i+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.md.inline.parse(e.src.slice(n,r),e.md,e.env,s=[]),e.push("footnote_ref","",0).meta={id:o},e.env.footnotes.list[o]={content:e.src.slice(n,r),tokens:s}),e.pos=r+1,e.posMax=a,!0))))}),e.inline.ruler.after("footnote_inline","footnote_ref",function(e,t){var n,r,o,s,a=e.posMax,i=e.pos;if(i+3>a)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(i))return!1;if(94!==e.src.charCodeAt(i+1))return!1;for(r=i+2;r<a;r++){if(32===e.src.charCodeAt(r))return!1;if(10===e.src.charCodeAt(r))return!1;if(93===e.src.charCodeAt(r))break}return r!==i+2&&(!(r>=a)&&(r++,n=e.src.slice(i+2,r-1),void 0!==e.env.footnotes.refs[":"+n]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:n,count:0},e.env.footnotes.refs[":"+n]=o):o=e.env.footnotes.refs[":"+n],s=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push("footnote_ref","",0).meta={id:o,subId:s,label:n}),e.pos=r,e.posMax=a,!0)))}),e.core.ruler.after("inline","footnote_tail",function(e){var t,n,r,o,s,a,i,c,l,u,d=!1,p={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(e){return"footnote_reference_open"===e.type?(d=!0,l=[],u=e.meta.label,!1):"footnote_reference_close"===e.type?(d=!1,p[":"+u]=l,!1):(d&&l.push(e),!d)}),e.env.footnotes.list)){for(a=e.env.footnotes.list,i=new e.Token("footnote_block_open","",1),e.tokens.push(i),t=0,n=a.length;t<n;t++){for((i=new e.Token("footnote_open","",1)).meta={id:t,label:a[t].label},e.tokens.push(i),a[t].tokens?(c=[],(i=new e.Token("paragraph_open","p",1)).block=!0,c.push(i),(i=new e.Token("inline","",0)).children=a[t].tokens,i.content=a[t].content,c.push(i),(i=new e.Token("paragraph_close","p",-1)).block=!0,c.push(i)):a[t].label&&(c=p[":"+a[t].label]),c&&(e.tokens=e.tokens.concat(c)),s="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,o=a[t].count>0?a[t].count:1,r=0;r<o;r++)(i=new e.Token("footnote_anchor","",0)).meta={id:t,subId:r,label:a[t].label},e.tokens.push(i);s&&e.tokens.push(s),i=new e.Token("footnote_close","",-1),e.tokens.push(i)}i=new e.Token("footnote_block_close","",-1),e.tokens.push(i)}})}},93379(e,t,n){var r,o,s,a,i;r=n(615),o=n(11787).utf8,s=n(35933),a=n(11787).bin,(i=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):s(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,d=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var m=i._ff,g=i._gg,f=i._hh,b=i._ii;for(h=0;h<n.length;h+=16){var v=l,y=u,k=d,w=p;l=m(l,u,d,p,n[h+0],7,-680876936),p=m(p,l,u,d,n[h+1],12,-389564586),d=m(d,p,l,u,n[h+2],17,606105819),u=m(u,d,p,l,n[h+3],22,-1044525330),l=m(l,u,d,p,n[h+4],7,-176418897),p=m(p,l,u,d,n[h+5],12,1200080426),d=m(d,p,l,u,n[h+6],17,-1473231341),u=m(u,d,p,l,n[h+7],22,-45705983),l=m(l,u,d,p,n[h+8],7,1770035416),p=m(p,l,u,d,n[h+9],12,-1958414417),d=m(d,p,l,u,n[h+10],17,-42063),u=m(u,d,p,l,n[h+11],22,-1990404162),l=m(l,u,d,p,n[h+12],7,1804603682),p=m(p,l,u,d,n[h+13],12,-40341101),d=m(d,p,l,u,n[h+14],17,-1502002290),l=g(l,u=m(u,d,p,l,n[h+15],22,1236535329),d,p,n[h+1],5,-165796510),p=g(p,l,u,d,n[h+6],9,-1069501632),d=g(d,p,l,u,n[h+11],14,643717713),u=g(u,d,p,l,n[h+0],20,-373897302),l=g(l,u,d,p,n[h+5],5,-701558691),p=g(p,l,u,d,n[h+10],9,38016083),d=g(d,p,l,u,n[h+15],14,-660478335),u=g(u,d,p,l,n[h+4],20,-405537848),l=g(l,u,d,p,n[h+9],5,568446438),p=g(p,l,u,d,n[h+14],9,-1019803690),d=g(d,p,l,u,n[h+3],14,-187363961),u=g(u,d,p,l,n[h+8],20,1163531501),l=g(l,u,d,p,n[h+13],5,-1444681467),p=g(p,l,u,d,n[h+2],9,-51403784),d=g(d,p,l,u,n[h+7],14,1735328473),l=f(l,u=g(u,d,p,l,n[h+12],20,-1926607734),d,p,n[h+5],4,-378558),p=f(p,l,u,d,n[h+8],11,-2022574463),d=f(d,p,l,u,n[h+11],16,1839030562),u=f(u,d,p,l,n[h+14],23,-35309556),l=f(l,u,d,p,n[h+1],4,-1530992060),p=f(p,l,u,d,n[h+4],11,1272893353),d=f(d,p,l,u,n[h+7],16,-155497632),u=f(u,d,p,l,n[h+10],23,-1094730640),l=f(l,u,d,p,n[h+13],4,681279174),p=f(p,l,u,d,n[h+0],11,-358537222),d=f(d,p,l,u,n[h+3],16,-722521979),u=f(u,d,p,l,n[h+6],23,76029189),l=f(l,u,d,p,n[h+9],4,-640364487),p=f(p,l,u,d,n[h+12],11,-421815835),d=f(d,p,l,u,n[h+15],16,530742520),l=b(l,u=f(u,d,p,l,n[h+2],23,-995338651),d,p,n[h+0],6,-198630844),p=b(p,l,u,d,n[h+7],10,1126891415),d=b(d,p,l,u,n[h+14],15,-1416354905),u=b(u,d,p,l,n[h+5],21,-57434055),l=b(l,u,d,p,n[h+12],6,1700485571),p=b(p,l,u,d,n[h+3],10,-1894986606),d=b(d,p,l,u,n[h+10],15,-1051523),u=b(u,d,p,l,n[h+1],21,-2054922799),l=b(l,u,d,p,n[h+8],6,1873313359),p=b(p,l,u,d,n[h+15],10,-30611744),d=b(d,p,l,u,n[h+6],15,-1560198380),u=b(u,d,p,l,n[h+13],21,1309151649),l=b(l,u,d,p,n[h+4],6,-145523070),p=b(p,l,u,d,n[h+11],10,-1120210379),d=b(d,p,l,u,n[h+2],15,718787259),u=b(u,d,p,l,n[h+9],21,-343485551),l=l+v>>>0,u=u+y>>>0,d=d+k>>>0,p=p+w>>>0}return r.endian([l,u,d,p])})._ff=function(e,t,n,r,o,s,a){var i=e+(t&n|~t&r)+(o>>>0)+a;return(i<<s|i>>>32-s)+t},i._gg=function(e,t,n,r,o,s,a){var i=e+(t&r|n&~r)+(o>>>0)+a;return(i<<s|i>>>32-s)+t},i._hh=function(e,t,n,r,o,s,a){var i=e+(t^n^r)+(o>>>0)+a;return(i<<s|i>>>32-s)+t},i._ii=function(e,t,n,r,o,s,a){var i=e+(n^(t|~r))+(o>>>0)+a;return(i<<s|i>>>32-s)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(i(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},34657(){},57799(){},56239(){},23263(){},45349(){},45817(){},28151(){},44582(){},60802(){},1184(){},92051(){},33829(){},55307(){},68294(){},29900(){},8243(){},76391(){},94089(){},39769(){},77934(e,t,n){"use strict";n.d(t,{A:()=>r});const r={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},67400(e,t,n){"use strict";n.d(t,{A:()=>r});const r={"star-icon":"cuoSlhSNrqf1dozY22Xb",jetpack:"lAIiifeLMmZAPlQ9n9ZR","checkmark-icon":"JLquNpQVlysAamuh5lJO",socialIcon:"cbOwD8Y4tFjwimmtchQI",bluesky:"aLWBKY0yRghEk7tNCgK3",facebook:"aHOlEBGD5EA8NKRw3xTw",twitter:"af4Y_zItXvLAOEoSDPSv",linkedin:"f68aqF3XSD1OBvXR1get",tumblr:"xFI0dt3UiXRlRQdqPWkx",google:"q7JEoyymveP6kF747M43",mastodon:"DKOBOTVmTLbh26gUH_73",nextdoor:"n5XodNsuMfMAAvqHFmbw",instagram:"cL3m0xBYTYhIKI7lCqDB",whatsapp:"fftumuc_lJ6v0tq4UMVR",threads:"inzgC27qxdt7hSdhTWRI",x:"PW9A5OHnDYBX0yNn9RHO"}},87682(e,t,n){"use strict";n.d(t,{A:()=>r});const r={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},8706(e,t,n){"use strict";n.d(t,{A:()=>r});const r={global:"_fUXxnSp5pagKBp9gSN7"}},48297(){},75070(){},47621(){},13371(){},39169(){},48543(){},5332(){},64106(){},57675(){},3458(){},77212(){},12948(){},97498(){},18703(){},85708(){},97880(){},66298(){},16307(){},84422(){},48279(){},75312(){},3223(){},82379(){},56850(){},15264(){},67429(){},95071(){},19073(){},78202(e,t,n){"use strict";n.d(t,{A:()=>r});const r={"link-preview-modal":"uuzr0ceItcil_58_n92b","link-preview-tabs":"qFkKYGmOWLHX2m3wwVe7","link-preview-tab":"f6uLY4Sqr5h5ZlN9439o"}},37209(){},49663(){},97850(){},78518(){},84368(){},85808(){},49882(){},53061(){},68594(){},5955(){},23227(){},75279(){},7738(){},3010(){},6988(){},22597(){},8400(){},18681(){},82805(){},28769(){},78215(){},61095(){},75360(){},25378(){},57378(){},45318(){},16279(){},59357(){},88561(){},27453(){},14647(){},31624(){},56262(){},65742(){},93726(){},82412(){},31369(){},30938(){},50221(){},2753(){},52918(){},64525(){},1982(){},92610(){},79935(){},45199(){},64521(){},98373(){},90705(){},31839(){},37795(){},78724(){},89399(){},73163(){},38940(){},70431(){},10559(){},27394(){},63036(){},88894(){},75646(){},99323(){},67229(){},57458(){},5971(){},89275(){},17309(){},17319(){},58203(){},64016(){},59318(){},16862(){},92829(){},43909(){},36398(){},37613(){},80490(){},20744(){},74192(){},51378(){},591(){},86154(){},58227(){},89732(e,t,n){"use strict";n.d(t,{A:()=>r});const r={wrapper:"h2NGkiVs1r1nf85LtJpF","conversion-notice":"k3Apzwo3v9n0IaHbB8tf"}},60333(){},94533(){},42265(){},22734(){},24920(){},28802(){},34523(){},42283(){},45529(){},21682(){},87734(){},91312(){},95066(){},72613(){},90698(){},99292(){},9485(){},78226(){},29297(){},67917(){},64993(){},97866(){},17390(){},27001(){},35269(){},42036(){},93571(){},94378(){},53585(){},32141(){},53472(){},51082(){},65823(){},20209(){},81641(){},51521(){},62653(){},44997(e){var t=1e3,n=60*t,r=60*n,o=24*r,s=7*o,a=365.25*o;function i(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!i)return;var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*a;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var s=Math.abs(e);if(s>=o)return i(e,s,o,"day");if(s>=r)return i(e,s,r,"hour");if(s>=n)return i(e,s,n,"minute");if(s>=t)return i(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=o)return Math.round(e/o)+"d";if(s>=r)return Math.round(e/r)+"h";if(s>=n)return Math.round(e/n)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},68530(e,t,n){"use strict";var r=n(10961);e.exports=function(e,t){var n=this;return r(n.data,e,n.data[t]||o,n),n};var o=[]},35479(e,t,n){"use strict";var r=n(75466);e.exports=function(e){return Boolean(r(this,e))}},49897(e,t,n){"use strict";var r=n(74424);e.exports=function(e){var t,n,o,s,a=this,i=-1;r(e,a,a.data);for(;++i<a.compoundRules.length;){for(t=a.compoundRules[i],n="",s=-1;++s<t.length;)o=t.charAt(s),n+=a.compoundRuleCodes[o].length?"(?:"+a.compoundRuleCodes[o].join("|")+")":o;a.compoundRules[i]=new RegExp(n,"i")}return a}},16073(e,t,n){"use strict";var r=n(58314),o=n(58496);e.exports=a;var s=a.prototype;function a(e,t){var n,s=-1;if(!(this instanceof a))return new a(e,t);if("string"==typeof e||r(e)?("string"==typeof t||r(t))&&(n=[{dic:t}]):e&&("length"in e?(n=e,e=e[0]&&e[0].aff):(e.dic&&(n=[e]),e=e.aff)),!e)throw new Error("Missing `aff` in dictionary");if(e=o(e),this.data=Object.create(null),this.compoundRuleCodes=e.compoundRuleCodes,this.replacementTable=e.replacementTable,this.conversion=e.conversion,this.compoundRules=e.compoundRules,this.rules=e.rules,this.flags=e.flags,n)for(;++s<n.length;)n[s].dic&&this.dictionary(n[s].dic)}s.correct=n(35479),s.suggest=n(98559),s.spell=n(92347),s.add=n(68530),s.remove=n(51809),s.wordCharacters=n(13766),s.dictionary=n(49897),s.personal=n(51165)},51165(e){"use strict";e.exports=function(e){var t,n,r,o,s=this,a=e.toString("utf8").split("\n"),i=-1;void 0===s.flags.FORBIDDENWORD&&(s.flags.FORBIDDENWORD=!1);o=s.flags.FORBIDDENWORD;for(;++i<a.length;)(t=a[i].trim())&&((n="*"===(r=(t=t.split("/"))[0]).charAt(0))&&(r=r.slice(1)),s.add(r,t[1]),n&&s.data[r].push(o));return s}},51809(e){"use strict";e.exports=function(e){return delete this.data[e],this}},92347(e,t,n){"use strict";var r=n(75466),o=n(91534);e.exports=function(e){var t=this,n=r(t,e,!0);return{correct:t.correct(e),forbidden:Boolean(n&&o(t.flags,"FORBIDDENWORD",t.data[n])),warn:Boolean(n&&o(t.flags,"WARN",t.data[n]))}}},98559(e,t,n){"use strict";var r=n(41455),o=n(92545),s=n(91534),a=n(75466);e.exports=function(e){var t,n,s,a,l,u,d,p,h,m,g,f,b,v,y,k,w,x,_,j,C,A,S,E,T,N=this,P={},B=[],I={},M=[];if(!(e=o(e.trim(),N.conversion.in))||N.correct(e))return[];T=r(e),a=-1;for(;++a<N.replacementTable.length;)for(n=N.replacementTable[a],l=e.indexOf(n[0]);l>-1;)M.push(e.replace(n[0],n[1])),l=e.indexOf(n[0],l+1);a=-1;for(;++a<e.length;)for(m=e.charAt(a),f=e.slice(0,a),b=e.slice(a+1),v=(y=m.toLowerCase())!==m,P={},l=-1;++l<N.flags.KEY.length;)if(!((u=(g=N.flags.KEY[l]).indexOf(y))<0))for(p=-1;++p<g.length;)if(p!==u){if(P[h=g.charAt(p)])continue;P[h]=!0,v&&(h=h.toUpperCase()),M.push(f+h+b)}a=-1,_=e.charAt(0),s=[""],j=1,C=0;for(;++a<e.length;){for(m=_,_=e.charAt(a+1),f=e.slice(0,a),n=m===_?"":m+m,l=-1,d=s.length;++l<d;)l<=j&&s.push(s[l]+n),s[l]+=m;++C<3&&(j=s.length)}i.apply(M,s),s=[e],n=e.toLowerCase(),(e===n||null===T)&&s.push(e.charAt(0).toUpperCase()+n.slice(1));n=e.toUpperCase(),e!==n&&s.push(n);k=c(N,t={state:{},weighted:I,suggestions:B},s,M),w=0,j=Math.min(k.length,Math.pow(Math.max(15-e.length,3),3)),A=Math.max(Math.pow(10-e.length,3),1);for(;!B.length&&w<j;)x=w+A,c(N,t,k.slice(w,x)),w=x;B.sort(function(e,t){return function(e,t){return I[e]===I[t]?0:I[e]>I[t]?-1:1}(e,t)||function(e,t){var n=r(e),o=r(t);return n===o?0:n===T?-1:o===T?1:void 0}(e,t)||function(e,t){return e.localeCompare(t)}(e,t)}),s=[],S=[],a=-1;for(;++a<B.length;)n=(E=o(B[a],N.conversion.out)).toLowerCase(),S.indexOf(n)<0&&(s.push(E),S.push(n));return s};var i=[].push;function c(e,t,n,o){var i,c,l,u,d,p,h,m,g,f,b,v,y,k=e.flags.TRY,w=e.data,x=e.flags,_=[],j=-1;if(o)for(;++j<o.length;)C(o[j],!0);for(j=-1;++j<n.length;)for(c="",l="",u=(i=n[j]).charAt(0),d=i,p=i.slice(1),h=u.toLowerCase()!==u,m=r(i),g=-1;++g<=i.length;)for(c+=l,f=d,p=(d=p).slice(1),l=u,b=h,(u=i.charAt(g+1))&&(h=u.toLowerCase()!==u),d&&b!==h&&(C(c+A(d)),C(c+A(u)+A(l)+p)),C(c+d),d&&C(c+u+l+p),y=-1;++y<k.length;)v=k[y],b&&v!==v.toUpperCase()?("s"!==m&&(C(c+v+f),C(c+v+d)),C(c+(v=v.toUpperCase())+f),C(c+v+d)):(C(c+v+f),C(c+v+d));return _;function C(n,r){var o,i=t.state[n];i!==Boolean(i)&&(_.push(n),i=(o=a(e,n))&&!s(x,"NOSUGGEST",w[o]),t.state[n]=i,i&&(t.weighted[n]=r?10:0,t.suggestions.push(n))),i&&t.weighted[n]++}function A(e){var t=e.charAt(0);return(t.toLowerCase()===t?t.toUpperCase():t.toLowerCase())+e.slice(1)}}},10961(e,t,n){"use strict";var r=n(77598);e.exports=function(e,t,n,a){var i,c,l,u,d,p,h,m=-1;(!("NEEDAFFIX"in a.flags)||n.indexOf(a.flags.NEEDAFFIX)<0)&&function(e,t,n){var r=e[t];t in e?r===s?e[t]=n.concat():o.apply(r,n):e[t]=n.concat()}(e,t,n);for(;++m<n.length;)if(i=a.rules[n[m]],n[m]in a.compoundRuleCodes&&a.compoundRuleCodes[n[m]].push(t),i)for(p=r(t,i,a.rules,[]),c=-1;++c<p.length;)if(p[c]in e||(e[p[c]]=s),i.combineable)for(l=m;++l<n.length;)if((d=a.rules[n[l]])&&d.combineable&&i.type!==d.type)for(h=r(p[c],d,a.rules,[]),u=-1;++u<h.length;)h[u]in e||(e[h[u]]=s)};var o=[].push,s=[]},58496(e,t,n){"use strict";var r=n(73509);e.exports=function(e){var t,n,u,d,p,h,m,g,f,b,v,y,k=Object.create(null),w=Object.create(null),x=Object.create(null),_=[],j={in:[],out:[]},C=[],A=e.toString("utf8"),S=[],E=0,T=A.indexOf("\n");x.KEY=[];for(;T>-1;)N(A.slice(E,T)),E=T+1,T=A.indexOf("\n",E);N(A.slice(E)),T=-1;for(;++T<S.length;)if("REP"===(n=(t=S[T].split(a))[0])){for(u=T+parseInt(t[1],10);++T<=u;)t=S[T].split(a),_.push([t[1],t[2]]);T--}else if("ICONV"===n||"OCONV"===n){for(u=T+parseInt(t[1],10),m=j["ICONV"===n?"in":"out"];++T<=u;)t=S[T].split(a),m.push([new RegExp(t[1],"g"),t[2]]);T--}else if("COMPOUNDRULE"===n){for(u=T+parseInt(t[1],10);++T<=u;)for(f=S[T].split(a)[1],g=-1,C.push(f);++g<f.length;)w[f.charAt(g)]=[];T--}else if("PFX"===n||"SFX"===n){for(u=T+parseInt(t[3],10),f={type:n,combineable:"Y"===t[2],entries:[]},k[t[1]]=f;++T<=u;){d=(t=S[T].split(a))[2],p=t[3].split("/"),h=t[4],m={add:"",remove:"",match:"",continuation:r(x,p[1])},p&&"0"!==p[0]&&(m.add=p[0]);try{"0"!==d&&(m.remove="SFX"===n?c(d):d),h&&"."!==h&&(m.match="SFX"===n?c(h):l(h))}catch(e){m=null}m&&f.entries.push(m)}T--}else if("TRY"===n){for(h=t[1],v=-1,b=[];++v<h.length;)(y=h.charAt(v)).toLowerCase()===y&&b.push(y);for(v=-1;++v<s.length;)h.indexOf(s[v])<0&&b.push(s[v]);x[n]=b}else"KEY"===n?o.apply(x[n],t[1].split("|")):"COMPOUNDMIN"===n?x[n]=Number(t[1]):"ONLYINCOMPOUND"===n?(x[n]=t[1],w[t[1]]=[]):x[n]=t[1];isNaN(x.COMPOUNDMIN)&&(x.COMPOUNDMIN=3);x.KEY.length||(x.KEY=i);x.TRY||(x.TRY=s.concat());x.KEEPCASE||(x.KEEPCASE=!1);return{compoundRuleCodes:w,replacementTable:_,conversion:j,compoundRules:C,rules:k,flags:x};function N(e){(e=e.trim())&&35!==e.charCodeAt(0)&&S.push(e)}};var o=[].push,s="etaoinshrdlcumwfgypbvkjxqz".split(""),a=/\s+/,i=["qwertzuop","yxcvbnm","qaw","say","wse","dsx","sy","edr","fdc","dx","rft","gfv","fc","tgz","hgb","gv","zhu","jhn","hb","uji","kjm","jn","iko","lkm"];function c(e){return new RegExp(e+"$")}function l(e){return new RegExp("^"+e)}},77598(e){"use strict";e.exports=function e(t,n,r,o){var s,a,i,c,l,u=-1;for(;++u<n.entries.length;)if(c=(s=n.entries[u]).continuation,l=-1,(!s.match||s.match.test(t))&&(a=s.remove?t.replace(s.remove,""):t,a="SFX"===n.type?a+s.add:s.add+a,o.push(a),c&&c.length))for(;++l<c.length;)(i=r[c[l]])&&e(a,i,r,o);return o}},41455(e){"use strict";function t(e){return e===e.toLowerCase()?"l":e===e.toUpperCase()?"u":null}e.exports=function(e){var n=t(e.charAt(0)),r=e.slice(1);if(!r)return n;if(r=t(r),n===r)return n;if("u"===n&&"l"===r)return"s";return null}},74424(e,t,n){"use strict";var r=n(73509),o=n(10961);e.exports=function(e,t,n){var r=e.toString("utf8"),o=r.indexOf("\n")+1,s=r.indexOf("\n",o);for(;s>-1;)9!==r.charCodeAt(o)&&a(r.slice(o,s),t,n),o=s+1,s=r.indexOf("\n",o);a(r.slice(o),t,n)};var s=/\s/g;function a(e,t,n){for(var a,i,c=e.indexOf("/"),l=e.indexOf("#"),u="";c>-1&&92===e.charCodeAt(c-1);)c=(e=e.slice(0,c-1)+e.slice(c)).indexOf("/",c);l>-1?c>-1&&c<l?(a=e.slice(0,c),s.lastIndex=c+1,i=s.exec(e),u=e.slice(c+1,i?i.index:void 0)):a=e.slice(0,l):c>-1?(a=e.slice(0,c),u=e.slice(c+1)):a=e,(a=a.trim())&&o(n,a,r(t.flags,u.trim()),t)}},81277(e,t,n){"use strict";var r=n(91534);e.exports=function(e,t){var n=-1;if(e.data[t])return!r(e.flags,"ONLYINCOMPOUND",e.data[t]);if(t.length>=e.flags.COMPOUNDMIN)for(;++n<e.compoundRules.length;)if(e.compoundRules[n].test(t))return!0;return!1}},91534(e){"use strict";e.exports=function(e,t,n){return n&&t in e&&n.indexOf(e[t])>-1}},75466(e,t,n){"use strict";var r=n(92545),o=n(81277),s=n(91534);function a(e,t,n){return s(e,"KEEPCASE",t)||n||s(e,"FORBIDDENWORD",t)}e.exports=function(e,t,n){var i,c=t.trim();if(!c)return null;if(c=r(c,e.conversion.in),o(e,c))return!n&&s(e.flags,"FORBIDDENWORD",e.data[c])?null:c;if(c.toUpperCase()===c){if(i=c.charAt(0)+c.slice(1).toLowerCase(),a(e.flags,e.data[i],n))return null;if(o(e,i))return i}if((i=c.toLowerCase())!==c){if(a(e.flags,e.data[i],n))return null;if(o(e,i))return i}return null}},92545(e){"use strict";e.exports=function(e,t){var n=-1;for(;++n<t.length;)e=e.replace(t[n][0],t[n][1]);return e}},73509(e){"use strict";e.exports=function(e,n){var r,o=0;if(!n)return t;if("long"===e.FLAG){for(r=new Array(Math.ceil(n.length/2));o<n.length;)r[o/2]=n.slice(o,o+2),o+=2;return r}return n.split("num"===e.FLAG?",":"")};var t=[]},13766(e){"use strict";e.exports=function(){return this.flags.WORDCHARS||null}},14936(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(87399),o=n.n(r),s=n(10067),a=n.n(s),i=n(11264),c=n.n(i);const l=a()("photon"),u={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},d="__domain__.invalid",p=`https://${d}`;function h(e,t){let n;try{n=new URL(e,p)}catch{return null}const r="https:"===n.protocol,s=new URL("https://i0.wp.com");if(a=n.host,/^i[0-2]\.wp\.com$/.test(a))s.pathname=n.pathname,s.hostname=r?"i0.wp.com":n.hostname;else{if(n.search)return null;let e=n.href.replace(`${n.protocol}/`,"");"blob:"===n.protocol&&(e=n.pathname.replace("://","//")),n.hostname===d&&(e=n.pathname),s.pathname=e,s.hostname=function(e,t){if(t)return"i0.wp.com";const n=o()(e),r=c()(n),s="i"+Math.floor(3*r());return l('determined server "%s" to use with "%s"',s,e),s+".wp.com"}(e,"https:"===s.protocol),r&&s.searchParams.set("ssl","1")}var a;if(t)for(const[e,n]of Object.entries(t))"host"!==e&&"hostname"!==e?"secure"!==e||n?s.searchParams.set(u[e]??e,n.toString()):s.protocol="http:":s.hostname=n;return l("generated Photon URL: %s",s.href),s.href}},15762(e,t,n){"use strict";var r=n(53761);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,s,a){if(a!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return n.PropTypes=n,n}},28120(e,t,n){e.exports=n(15762)()},53761(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},87072(e,t,n){"use strict";n.d(t,{Ay:()=>y});const r=2147483647,o=36,s=/^xn--/,a=/[^\0-\x7F]/,i=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(c[e])}function p(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(i,".")).split("."),t).join(".");return r+o}function h(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const m=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:o},g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},f=function(e,t,n){let r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;r+=o)e=l(e/35);return l(r+36*e/(e+38))},b=function(e){const t=[],n=e.length;let s=0,a=128,i=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n<c;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let u=c>0?c+1:0;u<n;){const c=s;for(let t=1,a=o;;a+=o){u>=n&&d("invalid-input");const c=m(e.charCodeAt(u++));c>=o&&d("invalid-input"),c>l((r-s)/t)&&d("overflow"),s+=c*t;const p=a<=i?1:a>=i+26?26:a-i;if(c<p)break;const h=o-p;t>l(r/h)&&d("overflow"),t*=h}const p=t.length+1;i=f(s-c,p,0==c),l(s/p)>r-a&&d("overflow"),a+=l(s/p),s%=p,t.splice(s++,0,a)}return String.fromCodePoint(...t)},v=function(e){const t=[],n=(e=h(e)).length;let s=128,a=0,i=72;for(const n of e)n<128&&t.push(u(n));const c=t.length;let p=c;for(c&&t.push("-");p<n;){let n=r;for(const t of e)t>=s&&t<n&&(n=t);const h=p+1;n-s>l((r-a)/h)&&d("overflow"),a+=(n-s)*h,s=n;for(const n of e)if(n<s&&++a>r&&d("overflow"),n===s){let e=a;for(let n=o;;n+=o){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const s=e-r,a=o-r;t.push(u(g(r+s%a,0))),e=l(s/a)}t.push(u(g(e,0))),i=f(a,h,p===c),a=0,++p}++a,++s}return t.join("")},y={version:"2.3.1",ucs2:{decode:h,encode:e=>String.fromCodePoint(...e)},decode:b,encode:v,toASCII:function(e){return p(e,function(e){return a.test(e)?"xn--"+v(e):e})},toUnicode:function(e){return p(e,function(e){return s.test(e)?b(e.slice(4).toLowerCase()):e})}}},24588(e,t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function o(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var r,s,a=[];for(s in"string"!=typeof t&&(t="?"),e)if(n.call(e,s)){if((r=e[s])||null!=r&&!isNaN(r)||(r=""),s=o(s),r=o(r),null===s||null===r)continue;a.push(s+"="+r)}return a.length?t+a.join("&"):""},t.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,o={};t=n.exec(e);){var s=r(t[1]),a=r(t[2]);null===s||null===a||s in o||(o[s]=a)}return o}},32047(e){"use strict";function t(e,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)t(e,n[r]);else for(r in n)e[r]=(e[r]||[]).concat(n[r])}e.exports=function(e){var n,r={};return t(r,e),(n=function(e){return function(t){return function(n){var o,s,a=r[n.type],i=t(n);if(a)for(o=0;o<a.length;o++)(s=a[o](n,e))&&e.dispatch(s);return i}}}).effects=r,n}},96811(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},94107(e,t,n){"use strict";n.d(t,{A:()=>j});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var i=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function s(){n&&(n=!1,e()),r&&c()}function i(){a(s)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;i.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},p=v(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+h(e["border-"+n+"-width"])},0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],s=e["padding-"+o];t[o]=h(s)}return t}(r),s=o.left+o.right,a=o.top+o.bottom,i=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(i+s)!==t&&(i-=m(r,"left","right")+s),Math.round(c+a)!==n&&(c-=m(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var l=Math.round(i+s)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(i-=l),1!==Math.abs(u)&&(c-=u)}return v(o.left,o.top,i,c)}var f="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?f(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):g(e):p}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(e,t){var n,r,o,s,a,i,c,l=(r=(n=t).x,o=n.y,s=n.width,a=n.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(i.prototype),u(c,{x:r,y:o,width:s,height:a,top:o,right:r+s,bottom:a+o,left:r}),c);u(this,{target:e,contentRect:l})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new k(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new r,_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new w(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){_.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});const j=void 0!==s.ResizeObserver?s.ResizeObserver:_},11264(e){"use strict";var t=256,n=[],r=window,o=Math.pow(t,6),s=Math.pow(2,52),a=2*s,i=255,c=Math.random;function l(e){var n,r=e.length,o=this,s=0,a=o.i=o.j=0,c=o.S=[];for(r||(e=[r++]);s<t;)c[s]=s++;for(s=0;s<t;s++)c[s]=c[a=i&a+e[s%r]+(n=c[s])],c[a]=n;(o.g=function(e){for(var n,r=0,s=o.i,a=o.j,c=o.S;e--;)n=c[s=i&s+1],r=r*t+c[i&(c[s]=c[a=i&a+n])+(c[a]=n)];return o.i=s,o.j=a,r})(t)}function u(e,t){var n,r=[],o=(typeof e)[0];if(t&&"o"==o)for(n in e)try{r.push(u(e[n],t-1))}catch(e){}return r.length?r:"s"==o?e:e+"\0"}function d(e,t){for(var n,r=e+"",o=0;o<r.length;)t[i&o]=i&(n^=19*t[i&o])+r.charCodeAt(o++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}e.exports=function(i,c){if(c&&!0===c.global)return c.global=!1,Math.random=e.exports(i,c),c.global=!0,Math.random;var h=[],m=(d(u(c&&c.entropy||!1?[i,p(n)]:0 in arguments?i:function(e){try{return r.crypto.getRandomValues(e=new Uint8Array(t)),p(e)}catch(e){return[+new Date,r,r.navigator&&r.navigator.plugins,r.screen,p(n)]}}(),3),h),new l(h));return d(p(m.S),n),function(){for(var e=m.g(6),n=o,r=0;e<s;)e=(e+r)*t,n*=t,r=m.g(1);for(;e>=a;)e/=2,n/=2,r>>>=1;return(e+r)/n}},e.exports.resetGlobal=function(){Math.random=c},d(Math.random(),n)},48931(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(1455),o=n.n(r);const s="default"in o()?o().default:o()},87286(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(47143),o=n(10067),s=n.n(o),a=n(53664);const i=s()("jetpack-ai-client:ask-question");async function c(e,{postId:t=null,fromCache:n=!1,feature:o,functions:s,model:c,languageCode:l}={}){const u=l||(0,r.select)("core").getEntityRecord("root","site")?.language||"en_US";return i("Asking question: %o. options: %o",e,{postId:t,fromCache:n,feature:o,functions:s,model:c,languageCode:u}),new a.A({question:e,options:{postId:t,feature:o,fromCache:n,functions:s,model:c,languageCode:u}})}},31439(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(47143),o=n(10067),s=n.n(o),a=n(51391);const i=s()("jetpack-ai-client:ask-question-sync");async function c(e,t={}){t.languageCode=t.languageCode||(0,r.select)("core").getEntityRecord("root","site")?.language||"en_US",i("Asking question with no streaming: %o. options: %o",e,t);let n;try{n=(await(0,a.A)()).token}catch(e){return i("Error getting token: %o",e),Promise.reject(e)}const o=Array.isArray(e)?{messages:e}:{question:e},{languageCode:s,...c}=t,l={...o,...c,language_code:s,stream:!1},u={Authorization:`Bearer ${n}`,"Content-Type":"application/json"};try{const e=await fetch("https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query",{method:"POST",headers:u,body:JSON.stringify(l)}).then(e=>e.json());return e?.data?.status&&e?.data?.status>200?(i("Error generating prompt: %o",e),Promise.reject(e)):e.choices?.[0]?.message?.content}catch(e){return i("Error asking question: %o",e),Promise.reject(e)}}},57745(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(10067),o=n.n(r),s=n(51391);const a=o()("jetpack-ai-client:audio-transcription");async function i(e,t,n){let r;a("Transcribing audio: %o. Feature: %o",e,t);try{r=(await(0,s.A)()).token}catch(e){return a("Error getting token: %o",e),Promise.reject(e)}const o=new FormData;o.append("audio_file",e);try{const e={Authorization:`Bearer ${r}`},s="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-transcription"+(t?`?feature=${t}`:"");return fetch(s,{method:"POST",body:o,headers:e,signal:n??void 0}).then(e=>(a("Transcription response: %o",e),e.ok?e.json().then(e=>e?.text):e.json().then(e=>Promise.reject(e))))}catch(e){return a("Transcription error response: %o",e),Promise.reject(e)}}},70629(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(13022),s=n(6754),a=(n(34657),n(10790));function i({className:e,disabled:t=!1,value:n="",placeholder:i="",isTransparent:c=!1,state:l="init",onChange:u,banner:d=null,error:p=null,actions:h=null,message:m=null,promptUserInputRef:g=null,wrapperRef:f=null}){return(0,a.jsxs)("div",{className:(0,o.A)("jetpack-components-ai-control__container-wrapper",e),ref:f,children:[p,(0,a.jsxs)("div",{className:"jetpack-components-ai-control__container",children:[d,(0,a.jsxs)("div",{className:(0,o.A)("jetpack-components-ai-control__wrapper",{"is-transparent":c}),children:[(0,a.jsx)(s.A,{state:l}),(0,a.jsx)("div",{className:"jetpack-components-ai-control__input-wrapper",children:(0,a.jsx)(r.PlainText,{value:n,onChange:u,placeholder:i,className:"jetpack-components-ai-control__input",disabled:t,ref:g})}),h]}),m]})]})}},71417(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(56427),o=n(29491),s=n(86087),a=n(27723),i=n(13109),c=n(87756),l=n(88901),u=n(65995),d=n(48568),p=n(57839),h=n(10067),m=n.n(h),g=n(51609),f=n(63098),b=n(70629),v=(n(34657),n(10790));const __=a.__,y=m()("jetpack-ai-client:block-ai-control");function k({disabled:e=!1,value:t="",placeholder:n="",showAccept:a=!1,acceptLabel:h=__("Accept","jetpack"),showButtonLabels:m=!0,isTransparent:g=!1,state:k="init",showGuideLine:w=!1,customFooter:x=null,onChange:_,onSend:j,onStop:C,onAccept:A,onDiscard:S,showRemove:E=!1,banner:T=null,error:N=null,lastAction:P},B){const I="requesting"===k||"suggesting"===k,[M,R]=(0,s.useState)(!1),[L,D]=(0,s.useState)(t||null),F=(0,s.useRef)(null);(0,s.useImperativeHandle)(B,()=>F.current),(0,s.useEffect)(()=>{M&&F?.current?.focus()},[M]);const O=(0,s.useCallback)(()=>{D(t),R(!1),j?.(t)},[t]),z=(0,s.useCallback)(e=>{_?.(e),"init"!==k&&R(L?e!==L:e.length>0)},[L,k]),U=(0,s.useCallback)(()=>{S?.()},[]),H=(0,s.useCallback)(()=>{y("cancelEdit, revert to last value",L),_?.(L||""),R(!1)},[L]);(0,o.useKeyboardShortcut)("mod+enter",()=>{a&&A?.()},{target:F}),(0,o.useKeyboardShortcut)("enter",e=>{e.preventDefault(),O()},{target:F});const $=(0,v.jsxs)(v.Fragment,{children:[(!a||M)&&(0,v.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:I?(0,v.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:C,variant:"secondary",label:__("Stop request","jetpack"),children:m?__("Stop","jetpack"):(0,v.jsx)(i.A,{icon:u.A})}):(0,v.jsxs)(v.Fragment,{children:[M&&(0,v.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:H,variant:"secondary",label:__("Cancel","jetpack"),children:m?__("Cancel","jetpack"):(0,v.jsx)(i.A,{icon:u.A})}),E&&!M&&!t?.length&&S&&(0,v.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:U,variant:"secondary",label:__("Cancel","jetpack"),children:m?__("Cancel","jetpack"):(0,v.jsx)(i.A,{icon:u.A})}),t?.length>0&&(0,v.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:O,variant:"primary",disabled:!t?.length||e,label:__("Send request","jetpack"),children:m?__("Generate","jetpack"):(0,v.jsx)(i.A,{icon:c.A})})]})}),a&&!M&&(0,v.jsxs)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:[(t?.length>0||null===L)&&(0,v.jsxs)(r.Flex,{gap:1,role:"group",className:"jetpack-components-ai-control__button-group",children:[(0,v.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Discard","jetpack"),onClick:U,tooltipPosition:"top",children:(0,v.jsx)(i.A,{icon:p.A})}),(0,v.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Regenerate","jetpack"),onClick:()=>j?.(t),tooltipPosition:"top",disabled:!t?.length||null===t||e,children:(0,v.jsx)(i.A,{icon:d.A})})]}),(0,v.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:A,variant:"primary",label:h,children:m?h:(0,v.jsx)(i.A,{icon:l.A})})]})]}),V=w&&!I&&!M&&(x||(0,v.jsx)(f.Yj,{aiFeedbackThumbsOptions:{showAIFeedbackThumbs:!0,ratedItem:"ai-assistant",prompt:P,block:"ai-assistant"}}));return(0,v.jsx)(b.A,{disabled:e||I,value:t,placeholder:n,isTransparent:g,state:k,onChange:z,banner:T,error:N,actions:$,message:V,promptUserInputRef:F})}const w=(0,g.forwardRef)(k)},61(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(56427),o=n(29491),s=n(86087),a=n(27723),i=n(13109),c=n(87756),l=n(65995),u=n(84701),d=n(51609),p=n(63098),h=n(70629),m=(n(34657),n(10790));const __=a.__;function g({className:e,disabled:t=!1,value:n="",placeholder:a="",showButtonLabels:d=!0,isTransparent:g=!1,state:f="init",showGuideLine:b=!1,error:v,requestsRemaining:y,showUpgradeMessage:k=!1,showFairUsageMessage:w=!1,upgradeUrl:x,wrapperRef:_,onChange:j,onSend:C,onStop:A,onClose:S,onUndo:E,onUpgrade:T,onTryAgain:N,lastAction:P,blockType:B},I){const M="requesting"===f||"suggesting"===f,[R,L]=(0,s.useState)(!1),[D,F]=(0,s.useState)(n||null),O=(0,s.useRef)(null),z=n?.length<=0&&"done"===f;(0,s.useImperativeHandle)(I,()=>O.current),(0,s.useEffect)(()=>{R&&O?.current?.focus()},[R]);const U=(0,s.useCallback)(()=>{F(n),L(!1),C?.(n)},[C,n]),H=(0,s.useCallback)(e=>{j?.(e),"init"!==f&&L(D?e!==D:e.length>0)},[j,D,f]),$=(0,s.useCallback)(()=>{A?.()},[A]),V=(0,s.useCallback)(()=>{S?.()},[S]),q=(0,s.useCallback)(()=>{E?.()},[E]),G=(0,s.useCallback)(e=>{T?.(e)},[T]),W=(0,s.useCallback)(()=>{N?.()},[N]);(0,o.useKeyboardShortcut)("enter",e=>{e.preventDefault(),U()},{target:O});const Z=(0,m.jsx)(m.Fragment,{children:M?(0,m.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:$,variant:"secondary",label:__("Stop request","jetpack"),children:d?__("Stop","jetpack"):(0,m.jsx)(i.A,{icon:l.A})}):(0,m.jsxs)(m.Fragment,{children:[n?.length>0&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",onClick:U,variant:"primary",disabled:!n?.length||t,label:__("Send request","jetpack"),children:d?__("Generate","jetpack"):(0,m.jsx)(i.A,{icon:c.A})})}),z&&(0,m.jsx)("div",{className:"jetpack-components-ai-control__controls-prompt_button_wrapper",children:(0,m.jsxs)(r.Flex,{gap:1,role:"group",className:"jetpack-components-ai-control__button-group",children:[(0,m.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Undo","jetpack"),onClick:q,tooltipPosition:"top",children:(0,m.jsx)(i.A,{icon:u.A})}),(0,m.jsx)(r.Button,{className:"jetpack-components-ai-control__controls-prompt_button",label:__("Close","jetpack"),onClick:V,variant:"tertiary",children:__("Close","jetpack")})]})})]})});let J=null;return v?.message?J=(0,m.jsx)(p.Kw,{error:v.message,code:v.code,onTryAgainClick:W,onUpgradeClick:G,upgradeUrl:x}):w?J=(0,m.jsx)(p.k9,{}):k?J=(0,m.jsx)(p.AK,{requestsRemaining:y,onUpgradeClick:G,upgradeUrl:x}):b&&(J=z?(0,m.jsx)(p.Yj,{aiFeedbackThumbsOptions:{showAIFeedbackThumbs:!0,ratedItem:"ai-assistant",prompt:P,block:B}}):(0,m.jsx)(p.Yj,{})),(0,m.jsx)(h.A,{className:e,disabled:t||M,value:n,placeholder:a,isTransparent:g,state:f,onChange:H,actions:Z,message:J,promptUserInputRef:O,wrapperRef:_})}const f=(0,d.forwardRef)(g)},42299(e,t,n){"use strict";n.d(t,{FC:()=>o.A,N0:()=>r.A});n(70629);var r=n(71417),o=n(61)},11497(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(85985),o=n(56427),s=n(86087),a=n(27723),i=n(57577),c=n(22201),l=n(13022),u=(n(57799),n(10790));const __=a.__;function d({disabled:e=!1,iconSize:t=24,ratedItem:n="",feature:a="",savedRatings:d={},options:p={},onRate:h}){if(!function(e){return!0===(0,r.FB)(e).available}("ai-response-feedback"))return null;const[m,g]=(0,s.useState)({}),{tracks:f}=(0,r.st)();(0,s.useEffect)(()=>{const e={...d,...m};JSON.stringify(e)!==JSON.stringify(m)&&g(e)},[d]);const b=e=>!!m[n]&&m[n]===e,v=e=>{const t=e?"thumbs-up":"thumbs-down";b(t)||(g({...m,[n]:t}),h?.(t),f.recordEvent("jetpack_ai_feedback",{type:a,rating:t,media_library_id:p.mediaLibraryId||null,prompt:p.prompt||null,revised_prompt:p.revisedPrompt||null,block:p.block||null}))};return(0,u.jsxs)("div",{className:"ai-assistant-feedback__selection",children:[(0,u.jsx)(o.Tooltip,{text:__("I like this","jetpack"),children:(0,u.jsx)(o.Button,{disabled:e,icon:c.A,onClick:()=>v(!0),iconSize:t,showTooltip:!1,className:(0,l.A)({"ai-assistant-feedback__thumb-selected":b("thumbs-up")})})}),(0,u.jsx)(o.Tooltip,{text:__("I don't find this useful","jetpack"),children:(0,u.jsx)(o.Button,{disabled:e,icon:i.A,onClick:()=>v(!1),iconSize:t,showTooltip:!1,className:(0,l.A)({"ai-assistant-feedback__thumb-selected":b("thumbs-down")})})})]})}},23059(e,t,n){"use strict";n.d(t,{A:()=>c,R:()=>i});var r=n(56427),o=n(13109),s=n(5573),a=n(10790);const i=(0,a.jsxs)(r.SVG,{width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsxs)(r.G,{clipPath:"url(#clip0_4479_1006)",children:[(0,a.jsx)(r.Path,{d:"M7.87488 0L10.1022 5.64753L15.7498 7.87488L10.1022 10.1022L7.87488 15.7498L5.64753 10.1022L0 7.87488L5.64753 5.64753L7.87488 0Z",fill:"#A7AAAD"}),(0,a.jsx)(r.Path,{d:"M31.4998 0L34.4696 7.53004L41.9997 10.4998L34.4696 13.4696L31.4998 20.9997L28.53 13.4696L21 10.4998L28.53 7.53004L31.4998 0Z",fill:"#A7AAAD"}),(0,a.jsx)(r.Path,{d:"M18.3748 15.7496L22.0871 25.1621L31.4996 28.8744L22.0871 32.5866L18.3748 41.9992L14.6625 32.5866L5.25 28.8744L14.6625 25.1621L18.3748 15.7496Z",fill:"#A7AAAD"})]}),(0,a.jsx)(s.Defs,{children:(0,a.jsx)("clipPath",{id:"clip0_4479_1006",children:(0,a.jsx)(r.Rect,{width:"41.9997",height:"41.9992",fill:"white"})})})]});function c({className:e,size:t=42}){return(0,a.jsx)(o.A,{icon:i,width:t,height:t,className:e})}},96390(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(85985),o=n(56427),s=n(86087),a=n(27723),i=n(10067),c=n.n(i),l=n(66223),u=n(23101),d=n(46381),p=n(14016),h=n(57853),m=n(77990),g=n(47560),f=(n(56239),n(10790));const __=a.__,b=c()("jetpack-ai-client:ai-image-modal");function v({title:e,cost:t,open:n,images:a,currentIndex:i=0,onClose:c=null,onTryAgain:v=null,onGenerate:y=null,generating:k=!1,notEnoughRequests:w=!1,requireUpgrade:x=!1,currentLimit:_=null,currentUsage:j=null,isUnlimited:C=!1,upgradeDescription:A=null,hasError:S=!1,handlePreviousImage:E=()=>{},handleNextImage:T=()=>{},acceptButton:N=null,autoStart:P=!1,autoStartAction:B=null,instructionsPlaceholder:I=null,imageStyles:M=[],onGuessStyle:R=null,prompt:L="",setPrompt:D=()=>{},initialStyle:F=null,inputDisabled:O=!1,actionDisabled:z=!1}){const{tracks:U}=(0,r.st)(),{recordEvent:H}=U,$=(0,s.useRef)(!1),[V,q]=(0,s.useState)(!1),[G,W]=(0,s.useState)(null),[Z,J]=(0,s.useState)(M||[]),K=(0,s.useCallback)(()=>{v?.({userPrompt:L,style:G})},[v,L,G]),Y=(0,s.useCallback)(async()=>{if(G===l.Wp&&R){H("jetpack_ai_general_image_guess_style",{context:"block-editor",tool:"image"});const e=await R(L)||l.Hu;W(e),b("guessed style",e),y?.({userPrompt:L,style:e})}else y?.({userPrompt:L,style:G})},[y,L,G,R,H]),Q=(0,s.useCallback)(e=>{b("change style",e),W(e),H("jetpack_ai_image_generator_switch_style",{context:"block-editor",style:e})},[W,H]),X=(x||w)&&!k,ee=Boolean(!C&&t&&_),te=__("Generate","jetpack"),ne=__("Try again","jetpack");return(0,s.useEffect)(()=>{P&&n&&($.current||($.current=!0,B?.({})))},[P,B,n]),(0,s.useEffect)(()=>{M&&M.length>0&&(J([M.find(({value:e})=>e===l.Hu),M.find(({value:e})=>e===l.Wp),...M.filter(({value:e})=>![l.Hu,l.Wp].includes(e))].filter(e=>e)),q(!0),W(F||l.Hu))},[M,F]),(0,f.jsx)(f.Fragment,{children:n&&(0,f.jsxs)(p.A,{handleClose:c,title:e,children:[(0,f.jsxs)("div",{className:"ai-image-modal__content",children:[V&&(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:16},children:[(0,f.jsx)("div",{style:{fontWeight:500,flexGrow:1},children:__("Generate image","jetpack")}),(0,f.jsx)("div",{children:(0,f.jsx)(o.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:G,options:Z,onChange:Q})})]}),(0,f.jsx)(u.K,{prompt:L,setPrompt:D,disabled:O,actionDisabled:z,generateHandler:S?K:Y,placeholder:I,buttonLabel:S?ne:te}),X&&(0,f.jsx)(h.A,{description:A,placement:"ai-image-generator",useLightNudge:!0}),(0,f.jsx)("div",{className:"ai-image-modal__actions",children:(0,f.jsx)("div",{className:"ai-image-modal__actions-left",children:ee&&(0,f.jsx)(g.A,{cost:t,currentLimit:_,currentUsage:j})})}),(0,f.jsx)("div",{className:"ai-image-modal__image-canvas",children:(0,f.jsx)(m.A,{images:a,current:i,handlePreviousImage:E,handleNextImage:T,actions:N})})]}),(0,f.jsx)("div",{className:"ai-image-modal__footer",children:(0,f.jsx)(d.A,{})})]})})}},77990(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(56427),o=n(86087),s=n(27723),a=n(13109),i=n(39558),c=n(48329),l=n(13022),u=n(11497),d=n(23059),p=(n(23263),n(10790));const __=s.__;function h({children:e,isDotted:t=!1,contentClassName:n=""}){const r=(0,p.jsx)("img",{className:"ai-assistant-image__carrousel-image",src:"data:image/svg+xml,<svg viewBox='0 0 1 1' width='1024' height='768' xmlns='http://www.w3.org/2000/svg'><path d='M0 0 L1 0 L1 1 L0 1 L0 0 Z' fill='none' /></svg>",alt:""});return(0,p.jsxs)("div",{className:"ai-assistant-image__blank",children:[r,(0,p.jsx)("div",{className:(0,l.A)("ai-assistant-image__blank-content",n,{"is-dotted":t}),children:e})]})}function m({images:e,current:t,handlePreviousImage:n,handleNextImage:s,actions:m=null}){const[g,f]=(0,o.useState)(!1),b=(0,p.jsx)("button",{className:"ai-carrousel__prev",onClick:n,children:(0,p.jsx)(a.A,{icon:i.A,className:(0,l.A)("ai-carrousel__prev-icon",{"is-disabled":0===t})})}),v=(0,p.jsx)("button",{className:"ai-carrousel__next",onClick:s,children:(0,p.jsx)(a.A,{icon:c.A,className:(0,l.A)("ai-carrousel__next-icon",{"is-disabled":t+1===e.length})})}),y=e?.filter?.(e=>e?.generating||Object.hasOwn(e,"image")||Object.hasOwn(e,"libraryId"))?.length,k=0===t&&0===y?0:t+1;return(0,o.useEffect)(()=>{const n=e[t];n||f(!0);const{image:r,generating:o,error:s}=n||{};return r||o||s?o||s?f(!0):void f(!1):f(!0)},[t,e]),(0,p.jsxs)("div",{className:"ai-assistant-image__carrousel",children:[(0,p.jsxs)("div",{className:"ai-assistant-image__carrousel-images",children:[e.length>1&&b,e.map(({image:e,generating:n,error:o,revisedPrompt:s,libraryUrl:a},i)=>(0,p.jsx)("div",{className:(0,l.A)("ai-assistant-image__carrousel-image-container",{"is-current":t===i,"is-prev":t>i}),children:n?(0,p.jsxs)(h,{contentClassName:"ai-assistant-image__loading",children:[__("Creating image…","jetpack"),(0,p.jsx)(r.Spinner,{style:{width:"50px",height:"50px"}})]}):(0,p.jsx)(p.Fragment,{children:o?(0,p.jsx)(h,{isDotted:!0,children:(0,p.jsxs)("div",{className:"ai-assistant-image__error",children:[__("An error occurred while generating the image. Please, try again!","jetpack"),o?.message&&(0,p.jsx)("span",{className:"ai-assistant-image__error-message",children:o?.message})]})}):(0,p.jsx)(p.Fragment,{children:n||e||a?(0,p.jsx)("img",{className:"ai-assistant-image__carrousel-image",src:e||a,alt:s}):(0,p.jsx)(h,{children:(0,p.jsx)(d.A,{})})})})},"image:"+i)),e.length>1&&v]}),(0,p.jsxs)("div",{className:"ai-assistant-image__carrousel-footer",children:[(0,p.jsxs)("div",{className:"ai-assistant-image__carrousel-footer-left",children:[(0,p.jsxs)("div",{className:"ai-assistant-image__carrousel-counter",children:[b,k," / ",y,v]}),(0,p.jsx)(u.A,{disabled:g,ratedItem:e[t]?.libraryUrl||"",iconSize:20,options:{mediaLibraryId:Number(e[t].libraryId),prompt:e[t].prompt,revisedPrompt:e[t].revisedPrompt},feature:"image-generator"})]}),(0,p.jsx)("div",{className:"ai-assistant-image__carrousel-actions",children:m})]})]})}},47560(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(27723),s=(n(45349),n(10790));const __=o.__;function a({currentLimit:e,currentUsage:t,cost:n}){const a=e-t,i=(0,r.createInterpolateElement)( | |
| 3 | +// Translators: %d is the cost of one image. | |
| 4 | +// Translators: %d is the cost of one image. | |
| 5 | +(0,o.sprintf)(__("Requests needed: <counter>%d</counter>","jetpack"),n),{counter:(0,s.jsx)("span",{})}),c=(0,r.createInterpolateElement)((0,o.sprintf)( | |
| 6 | +// Translators: %d is the current requests balance. | |
| 7 | +__("Requests available: <counter>%d</counter>","jetpack"),a),{counter:a<n?(0,s.jsx)("span",{className:"ai-assistant-featured-image__usage-counter-no-limit"}):(0,s.jsx)("strong",{})});return(0,s.jsxs)("div",{className:"ai-assistant-featured-image__usage-counter",children:[(0,s.jsx)("span",{children:i}),(0,s.jsx)("span",{children:c})]})}},89289(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(85985),o=n(56427),s=n(47143),a=n(43656),i=n(86087),c=n(27723),l=n(10067),u=n.n(l),d=(n(45817),n(43984)),p=n(72448),h=n(71508),m=n(62038),g=n(96390),f=n(3620),b=n(35918),v=n(75988),y=n(10790);const __=c.__,k=u()("jetpack-ai-client:featured-image");function w({busy:e,disabled:t,placement:n,onClose:l=()=>{}}){const[u,w]=(0,i.useState)(n===v.hB),x=(0,b.A)(),{getPostContent:_,isEditedPostEmpty:j}=(0,h.A)(),{postTitle:C,postFeaturedMediaId:A,isEditorPanelOpened:S}=(0,s.useSelect)(e=>({postTitle:e(a.store).getEditedPostAttribute("title"),postFeaturedMediaId:e(a.store).getEditedPostAttribute("featured_media"),isEditorPanelOpened:e(a.store).isEditorPanelOpened??e("core/edit-post").isEditorPanelOpened}),[]),{saveToMediaLibrary:E}=(0,m.A)(),{tracks:T}=(0,r.st)(),{recordEvent:N}=T,[P,B]=(0,i.useState)(null),[I,M]=(0,i.useState)(""),{enableComplementaryArea:R}=(0,s.useDispatch)("core/interface"),{clearSelectedBlock:L}=(0,s.useDispatch)("core/block-editor"),{toggleEditorPanelOpened:D}=(0,s.useDispatch)("core/edit-post"),{editPost:F,toggleEditorPanelOpened:O}=(0,s.useDispatch)(a.store),{requireUpgrade:z,requestsCount:U,requestsLimit:H,currentTier:$,costs:V}=(0,p.A)(),q=(0,r.Bd)($),G=V?.[v.oW]?.activeModel??10,W=G===V?.[v.oW]?.stableDiffusion?v.Dk:v.bb,Z=q===r.Ti,J=H-U<G,K=O??D,{pointer:Y,current:Q,setCurrent:X,processImageGeneration:ee,handlePreviousImage:te,handleNextImage:ne,currentImage:re,currentPointer:oe,images:se,imageStyles:ae,guessStyle:ie}=(0,f.A)({autoStart:!1,cost:G,type:"featured-image-generation",feature:v.oW,previousMediaId:A}),ce=(0,i.useCallback)(()=>{w(!1),l?.()},[l]),le=(0,i.useCallback)(()=>{w(!0)},[]),ue=(0,i.useCallback)(e=>{const t=C+"\n\n"+_();return ie(e,"featured-image-guess-style",t)},[C,_,ie]),de=(0,i.useCallback)(({userPrompt:e,style:t})=>(N("jetpack_ai_featured_image_generation_generate_image",{placement:n,model:W,site_type:x,style:t,userPrompt:e}),w(!0),ee({userPrompt:e,postContent:C+"\n\n"+_(),notEnoughRequests:J,style:t}).catch(e=>{N("jetpack_ai_featured_image_generation_error",{placement:n,error:e?.message,model:W,site_type:x,style:t})})),[N,n,W,x,ee,_,J,C]),pe=(0,i.useCallback)(async()=>{oe.generating=!0;const e=await ue("");B(e);const t=await de({userPrompt:"",style:e});t&&(k("handleFirstGenerate",t.revisedPrompt),M(t.revisedPrompt||""))},[oe,de,ue]),he=(0,i.useCallback)(({userPrompt:e,style:t})=>{N("jetpack_ai_featured_image_generation_generate_another_image",{placement:n,model:W,site_type:x,style:t}),X(()=>se.length),ee({userPrompt:e,postContent:C+"\n\n"+_(),notEnoughRequests:J,style:t}).catch(r=>{N("jetpack_ai_featured_image_generation_error",{placement:n,error:r?.message,model:W,site_type:x,style:t,userPrompt:e})})},[N,n,W,x,X,ee,C,_,J,se]),me=(0,i.useCallback)(({userPrompt:e,style:t})=>{N("jetpack_ai_featured_image_generation_try_again",{placement:n,model:W,site_type:x,style:t}),ee({userPrompt:e,postContent:C+"\n\n"+_(),notEnoughRequests:J,style:t}).catch(e=>{N("jetpack_ai_featured_image_generation_error",{placement:n,error:e?.message,model:W,site_type:x,style:t})})},[N,n,W,x,ee,_,J,C]),ge=(0,i.useCallback)(()=>(L(),R("core/edit-post","edit-post/document")),[L,R]),fe=(0,i.useCallback)(()=>{N("jetpack_ai_featured_image_generation_use_image",{placement:n,model:W,site_type:x});const e=e=>{F({featured_media:e}),ce(),setTimeout(()=>{const e=S("featured-image"),t=S("post-status");ge().then(()=>{e||K("featured-image"),t||K("post-status")})},500)};re?.libraryId?e(re?.libraryId):E(re?.image).then(t=>{e(t?.id)}).catch(e=>{N("jetpack_ai_featured_image_saving_error",{placement:n,error:e?.message,model:W,site_type:x})})},[N,n,W,x,re?.libraryId,re?.image,F,ce,S,ge,K,E]),be=__("Generate another image","jetpack"),ve=__("Generate","jetpack"),ye=!(j()&&!C.trim?.()),ke=ye?I.length>=0:I.length>=3,we=J||oe?.generating||z,xe=we||!ye&&!ke,_e=J?(0,c.sprintf)( | |
| 8 | +// Translators: %d is the cost of generating a featured image. | |
| 9 | +__("Featured image generation costs %d requests per image. You don't have enough requests to generate another image.","jetpack"),G):null,je=(0,y.jsx)(o.Button,{onClick:fe,variant:"primary",disabled:!re?.image||re?.generating||re?.libraryId===A,children:__("Set as featured image","jetpack")});return(0,y.jsxs)(y.Fragment,{children:[(n===d.s6||n===d.wb)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("p",{className:"jetpack-ai-assistant__help-text",children:__("Based on your post content.","jetpack")}),(0,y.jsx)(o.Button,{onClick:le,isBusy:e,disabled:t||J,variant:"secondary",__next40pxDefaultSize:!0,children:__("Generate image","jetpack")})]}),(0,y.jsx)(g.A,{autoStart:ye&&!A,autoStartAction:pe,images:se,currentIndex:Q,title:__("Generate a featured image with AI","jetpack"),cost:G,open:u,placement:n,onClose:ce,onTryAgain:me,onGenerate:Y?.current>0||A?he:de,generating:oe?.generating,notEnoughRequests:J,requireUpgrade:z,upgradeDescription:_e,currentLimit:H,currentUsage:U,isUnlimited:Z,hasError:Boolean(oe?.error),handlePreviousImage:te,handleNextImage:ne,acceptButton:je,generateButtonLabel:Y?.current>0?be:ve,instructionsPlaceholder:__("Describe the featured image you'd like to create and select a style.","jetpack"),imageStyles:ae,onGuessStyle:ue,prompt:I,setPrompt:M,initialStyle:P,inputDisabled:we,actionDisabled:xe})]})}},83158(e,t,n){"use strict";n(85985),n(56427),n(86087),n(27723);var r=n(10067),o=n.n(r);n(45817),n(72448),n(71508),n(62038),n(96390),n(3620),n(35918),n(10790);o()("jetpack-ai:general-purpose-image")},3620(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(47143),o=n(86087),s=n(27723),a=n(93832),i=n(31439),c=n(72448),l=n(62614),u=n(62038),d=n(75988);const __=s.__;function p({feature:e,type:t,cost:n,autoStart:s=!0,previousMediaId:p}){const{generateImageWithParameters:h}=(0,l.Ay)(),{increaseRequestsCount:m,featuresControl:g}=(0,c.A)(),{saveToMediaLibrary:f}=(0,u.A)(),{createNotice:b}=(0,r.useDispatch)("core/notices"),v=(0,o.useRef)(0),[y,k]=(0,o.useState)(0),[w,x]=(0,o.useState)([{generating:s}]),_=e===d.oW?"featured-image":"image",j=g?.[_],C=j?.styles,A=(0,o.useCallback)((e,t)=>{x(n=>{const r=[...n];return r[t]={...r[t],...e},r})},[]),S=(0,r.useSelect)(e=>e("core")?.getEntityRecord?.("postType","attachment",p),[p]);(0,o.useEffect)(()=>{S&&A({image:S.source_url,libraryId:S.id,libraryUrl:S.source_url,generating:!1},v.current)},[S,A]);const E=(0,o.useCallback)(e=>{b("success",e,{type:"snackbar",isDismissible:!0})},[b]),T=(0,o.useCallback)(()=>{m(n)},[m,n]),N=(0,o.useCallback)(e=>{if(!e)return"image.png";const t=e.split(" ").slice(0,10).join(" ");return(0,a.cleanForSlug)(t)+".png"},[]),P=(0,o.useCallback)(({userPrompt:n,postContent:r,notEnoughRequests:o,style:s=null})=>new Promise((a,i)=>{if(p&&0===v.current&&v.current++,A({generating:!0,error:null},v.current),o)return A({generating:!1,error:new Error(__("You don't have enough requests to generate another image.","jetpack"))},v.current),void a({});const c=h({feature:e,size:"1792x1024",responseFormat:"b64_json",messages:[{role:"jetpack-ai",context:{type:t,request:n||null,content:r,style:s}}],style:s||""}),l=N(n);c.then(e=>{if(e.data.length>0){const t="data:image/png;base64,"+e.data[0].b64_json,r=n||null,o=e.data[0].revised_prompt||null;A({image:t,prompt:r,revisedPrompt:o},v.current),T(),f(t,l).then(e=>{E(__("Image saved to media library.","jetpack")),A({libraryId:e?.id,libraryUrl:e?.url,generating:!1},v.current),v.current+=1,a({image:t,libraryId:e?.id,libraryUrl:e?.url,revisedPrompt:o})}).catch(()=>{A({generating:!1},v.current),v.current+=1,a({image:t})})}}).catch(e=>{A({generating:!1,error:e},v.current),i(e)})}),[A,h,e,t,T,f,E,N,p]),B=(0,o.useCallback)(()=>{k(Math.max(y-1,0))},[y]),I=(0,o.useCallback)(()=>{k(Math.min(y+1,w.length-1))},[y,w.length]),M=(0,o.useCallback)(async function(e,t="",n=""){if(!C||!C.length)return null;const r=[{role:"jetpack-ai",context:{type:t||"general-image-guess-style",request:e,content:n}}];try{const e=await(0,i.A)(r,{feature:"jetpack-ai-image-generator"});if(!e)return null;const t=C.find(({value:t})=>t===e);return t?t.value:null}catch(e){Promise.reject(e)}},[C]);return{current:y,setCurrent:k,processImageGeneration:P,handlePreviousImage:B,handleNextImage:I,currentImage:w[y],currentPointer:w[v.current],images:w,pointer:v,imageStyles:C,guessStyle:M}}},35918(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(97999),o=n(86087);function s(){const[e]=(0,o.useState)((0,r.isWoASite)()?"atomic":(0,r.isSimpleSite)()?"simple":"jetpack");return e}},77089(e,t,n){"use strict";n.d(t,{m2:()=>r.A});var r=n(89289);n(83158)},75988(e,t,n){"use strict";n.d(t,{Dk:()=>o,bb:()=>s,hB:()=>a,oW:()=>r});const r="featured-post-image",o="stable-diffusion",s="dall-e-3",a="media-source-dropdown"},46381(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(56427),o=n(86087),s=n(27723),a=n(13109),i=n(28847),c=(n(28151),n(10790));const __=s.__;function l({onGuidelinesClick:e,onFeedbackClick:t}){const n=(0,o.useCallback)(()=>{e?.()},[e]),s=(0,o.useCallback)(()=>{t?.()},[t]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"ai-image-modal__footer-disclaimer",children:[(0,c.jsx)(a.A,{icon:i.A}),(0,c.jsx)("span",{children:__("Generated images could be inaccurate, biased or include text.","jetpack")}),(0,c.jsx)(r.Button,{variant:"link",className:"ai-image-modal__guidelines-button",href:"https://jetpack.com/redirect/?source=ai-guidelines",target:"_blank",onClick:n,children:(0,c.jsxs)("span",{children:[__("Guidelines","jetpack")," ↗"]})})]}),(0,c.jsx)(r.Button,{variant:"link",className:"ai-image-modal__feedback-button",href:"https://jetpack.com/redirect/?source=jetpack-ai-feedback",target:"_blank",onClick:s,children:(0,c.jsxs)("span",{children:[__("Give feedback","jetpack")," ↗"]})})]})}},6754(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(13022),s=(n(44582),n(10790));function a({state:e}){return(0,s.jsx)("div",{className:(0,o.A)("jetpack-ai-status-indicator__icon-wrapper",{[`is-${e}`]:!0}),children:(0,s.jsx)(r.Spinner,{})})}},68203(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(32569),o=n(10790);function s({duration:e,className:t}){return(0,o.jsx)("span",{className:t,children:(0,r.f)(e,{addDecimalPart:!1})})}},32569(e,t,n){"use strict";function r(e,{addDecimalPart:t=!1,showMinutes:n=!0,showHours:r=!1}={}){const o=Math.floor(e/36e5),s=Math.floor(e/6e4)%60,a=Math.floor(e/1e3)%60,i=Math.floor(e/10)%100,c=[o>0||r?o.toString().padStart(2,"0")+":":"",o>0||s>0||n?s.toString().padStart(2,"0")+":":"",a.toString().padStart(2,"0")];return t&&c.push("."+i.toString().padStart(2,"0")),c.join("")}n.d(t,{f:()=>r})},27802(e,t,n){"use strict";n.d(t,{AK:()=>c.AK,FC:()=>r.FC,HL:()=>o.A,Hb:()=>u.A,N0:()=>r.N0,QA:()=>u.Q,RD:()=>s.R,Yj:()=>c.Yj,m2:()=>a.m2,yV:()=>l.A,z3:()=>i.A});var r=n(42299),o=n(11497),s=n(23059),a=n(77089),i=(n(6754),n(68203)),c=(n(46381),n(63098)),l=n(14016),u=n(57853)},63098(e,t,n){"use strict";n.d(t,{AK:()=>_,Kw:()=>j,Yj:()=>w,k9:()=>x});var r=n(56427),o=n(86087),s=n(27723),a=n(13109),i=n(88901),c=n(79654),l=n(13022),u=(n(60802),n(42154)),d=n(78836),p=n(11497),h=n(10790);const __=s.__,m="warning",g="error",f="success",b="info",v={[b]:null,[m]:null,[g]:u.A,[f]:i.A};function y({severity:e=b,icon:t=null,aiFeedbackThumbsOptions:n={showAIFeedbackThumbs:!1,ratedItem:"",prompt:"",block:null,onRate:()=>{}},children:r}){return(0,h.jsxs)("div",{className:(0,l.A)("jetpack-ai-assistant__message",`jetpack-ai-assistant__message-severity-${e}`),children:[(v[e]||t)&&(0,h.jsx)(a.A,{icon:v[e]||t}),(0,h.jsx)("div",{className:"jetpack-ai-assistant__message-content",children:r}),n.showAIFeedbackThumbs&&n.prompt&&(0,h.jsx)(p.A,{disabled:!1,ratedItem:n.ratedItem,feature:"ai-assistant",options:{prompt:n.prompt,block:n.block},onRate:n.onRate})]})}function k(){return(0,h.jsx)(c.N,{openInNewTab:!0,href:"https://jetpack.com/redirect/?source=ai-guidelines",children:__("Learn more","jetpack")})}function w({aiFeedbackThumbsOptions:e={showAIFeedbackThumbs:!1,ratedItem:"",prompt:"",block:null,onRate:()=>{}}}){return(0,h.jsxs)(y,{aiFeedbackThumbsOptions:e,children:[(0,h.jsx)("span",{children:__("AI-generated content could be inaccurate or biased.","jetpack")}),(0,h.jsx)(k,{})]})}function x(){const e=__("You've reached this month's request limit, per our <link>fair usage policy</link>","jetpack"),t=(0,o.createInterpolateElement)(e,{link:(0,h.jsx)(c.N,{openInNewTab:!0,href:"https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy",children:null})});return(0,h.jsx)(y,{severity:m,children:t})}function _({requestsRemaining:e,severity:t,onUpgradeClick:n,upgradeUrl:o}){let a=t;return null==a&&(a=e>0?b:m),(0,h.jsxs)(y,{severity:a,children:[(0,h.jsx)("span",{children:(0,s.sprintf)( | |
| 3 | 10 | // translators: %1$d: number of requests remaining |
| 4 | -__("You have %1$d requests remaining.","jetpack"),e)),React.createElement(r.Button,{variant:"link",onClick:n,href:s,target:s?"_blank":null},__("Upgrade now","jetpack")))}function C({error:e,code:t,onTryAgainClick:n,onUpgradeClick:s,upgradeUrl:o}){const i=e||__("Something went wrong","jetpack");return React.createElement(E,{severity:m},React.createElement("span",null,(0,a.sprintf)( | |
| 11 | +__("You have %1$d requests remaining.","jetpack"),e)}),(0,h.jsx)(r.Button,{variant:"link",onClick:n,href:o,target:o?"_blank":null,children:(0,h.jsx)("span",{children:__("Upgrade now","jetpack")})})]})}function j({error:e,code:t,onTryAgainClick:n,onUpgradeClick:o,upgradeUrl:a}){const i=e||__("Something went wrong","jetpack");return(0,h.jsxs)(y,{severity:g,children:[(0,h.jsx)("span",{children:(0,s.sprintf)( | |
| 5 | 12 | // translators: %1$d: A dynamic error message |
| 6 | -__("Error: %1$s","jetpack"),i)),t===d.$L?React.createElement(r.Button,{variant:"link",onClick:s,href:o,target:o?"_blank":null},__("Upgrade now","jetpack")):React.createElement(r.Button,{variant:"link",onClick:n},__("Try again","jetpack")))}},62282:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,u:()=>s});var r=n(99196),a=n.n(r);const s=(0,r.createContext)({}),o=({value:e,children:t})=>a().createElement(s.Provider,{value:e,children:t})},20281:(e,t,n)=>{"use strict";n.d(t,{X_:()=>s.Z,hE:()=>r.h,oN:()=>a.Z,uE:()=>r.u});var r=n(62282),a=n(3669),s=n(79466)},79466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(99196),a=n(16700),s=n(20281);function o({onDone:e,onSuggestion:t,onError:n}={}){const o=(0,r.useContext)(s.uE),{eventSource:i}=o,l=(0,r.useCallback)((t=>e?.(t?.detail)),[e]),c=(0,r.useCallback)((e=>t?.(e?.detail)),[t]),u=(0,r.useCallback)((e=>{n?.(e?.detail)}),[]);return(0,r.useEffect)((()=>{if(i)return e&&i.addEventListener("done",l),t&&i.addEventListener("suggestion",c),n&&i.addEventListener(a.vF,u),()=>{i.removeEventListener("done",l),i.removeEventListener("suggestion",c),i.removeEventListener(a.vF,u)}}),[i]),o}},3669:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(94333),a=n(69307),s=n(99196),o=n.n(s),i=n(42194),l=n(20281);const c=(0,r.createHigherOrderComponent)((e=>t=>{const{suggestion:n,error:r,requestingState:s,request:c,stopSuggestion:u,eventSource:d}=(0,i.Z)(),p=(0,a.useMemo)((()=>({suggestion:n,requestingError:r,requestingState:s,eventSource:d,requestSuggestion:c,stopSuggestion:u})),[n,r,s,d,c,u]);return o().createElement(l.hE,{value:p},o().createElement(e,t))}),"withAiDataProvider")},42194:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,Z:()=>l});var r=n(69307),a=n(65736),s=n(67742),o=n(16700);const __=a.__;function i(e){switch(e){case o.$L:return{code:o.$L,message:__("You have reached the limit of requests for this site.","jetpack"),severity:"info"};case o.bC:return{code:o.bC,message:__("Your request was unclear. Mind trying again?","jetpack"),severity:"info"};case o.$u:return{code:o.$u,message:__("Jetpack AI services are currently unavailable. Sorry for the inconvenience.","jetpack"),severity:"info"};case o.q4:return{code:o.q4,message:__("This request has been flagged by our moderation system. Please try to rephrase it and try again.","jetpack"),severity:"info"};case o.cv:return{code:o.cv,message:__("The content is too large to be processed all at once. Please try to shorten it or divide it into smaller parts.","jetpack"),severity:"info"};case o.co:default:return{code:o.co,message:__("It was not possible to process your request. Mind trying again?","jetpack"),severity:"info"}}}function l({prompt:e,autoRequest:t=!1,askQuestionOptions:n={},initialRequestingState:a="init",onSuggestion:l,onDone:c,onStop:u,onError:d,onAllErrors:p}={}){const[m,g]=(0,r.useState)(a),[A,h]=(0,r.useState)(""),[E,f]=(0,r.useState)(),b=(0,r.useRef)(void 0),C=(0,r.useCallback)((e=>{h(e?.detail),l?.(e?.detail)}),[l]),v=(0,r.useCallback)((e=>{Q(),c?.(e?.detail),g("done")}),[c]),k=(0,r.useCallback)((e=>{p?.(e?.detail)}),[p]),B=(0,r.useCallback)((e=>{b?.current?.close(),g("error"),f(i(e)),d?.(i(e))}),[d]),y=(0,r.useCallback)((()=>B(o.$L)),[]),w=(0,r.useCallback)((()=>B(o.bC)),[]),_=(0,r.useCallback)((()=>B(o.$u)),[]),I=(0,r.useCallback)((()=>B(o.q4)),[]),j=(0,r.useCallback)((()=>B(o.co)),[]),x=(0,r.useCallback)((async(e,t={...n})=>{if(f(void 0),g("requesting"),b.current=await(0,s.Z)(e,t),!b?.current)return;const r=b.current;g("suggesting"),r.addEventListener("suggestion",C),r.addEventListener(o.$L,y),r.addEventListener(o.bC,w),r.addEventListener(o.$u,_),r.addEventListener(o.q4,I),r.addEventListener(o.co,j),r.addEventListener(o.vF,k),r.addEventListener("done",v)}),[v,y,w,_,I,j,C]),S=(0,r.useCallback)((()=>{g("init"),h(""),f(void 0)}),[]),Q=(0,r.useCallback)((()=>{if(!b?.current)return;const e=b?.current;e.close(),e.removeEventListener("suggestion",C),e.removeEventListener(o.$L,y),e.removeEventListener(o.bC,w),e.removeEventListener(o.$u,_),e.removeEventListener(o.q4,I),e.removeEventListener(o.co,j),e.removeEventListener("done",v)}),[b,C,y,w,_,I,j,v]),N=(0,r.useCallback)((()=>{Q(),u?.(),g("done")}),[u]);return(0,r.useEffect)((()=>{if(e?.length)return t&&x(e,n),()=>{N()}}),[t,e,x,N]),{suggestion:A,error:E,requestingState:m,request:x,stopSuggestion:N,reset:S,handleErrorQuotaExceededError:y,eventSource:b.current}}},93509:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(69307),a=n(65736),s=n(51128),o=n.n(s),i=n(46961);const __=a.__,l=o()("jetpack-ai-client:use-audio-transcription"),c=e=>{if("string"==typeof e)return e;if("code"in e)switch(e.code){case"error_quota_exceeded":return __("You exceeded your current quota, please check your plan details.","jetpack");case"jetpack_ai_missing_audio_param":return __("The audio_file is required to perform a transcription.","jetpack");case"jetpack_ai_service_unavailable":return __("The Jetpack AI service is temporarily unavailable.","jetpack");case"file_size_not_supported":return __("The provided audio file is too big.","jetpack");case"file_type_not_supported":return __("The provided audio file type is not supported.","jetpack");case"jetpack_ai_error":return __("There was an error processing the transcription request.","jetpack");default:return e.message}return"message"in e?e.message:__("There was an error processing the transcription request.","jetpack")};function u({feature:e,onReady:t,onError:n}){const[a,s]=(0,r.useState)(""),[o,u]=(0,r.useState)(""),[d,p]=(0,r.useState)(!1),m=(0,r.useRef)(null);return{transcriptionResult:a,isTranscribingAudio:d,transcriptionError:o,transcribeAudio:(0,r.useCallback)((r=>{l("Transcribing audio"),s(""),u(""),p(!0);const a=new AbortController;m.current=a,(0,i.Z)(r,e,a.signal).then((e=>{s(e),t?.(e)})).catch((e=>{a.signal.aborted||(u(e.message),n?.(c(e)))})).finally((()=>p(!1)))}),[i.Z,s,u,p]),cancelTranscription:(0,r.useCallback)((()=>{m.current?.abort(),s(""),u(""),p(!1)}),[m,s,u,p])}}},92718:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(69307),a=n(65736);const __=a.__,s=25e6,o=1500,i=["audio/mpeg","audio/mp3","audio/ogg","audio/flac","audio/x-flac","audio/m4a","audio/x-m4a","audio/mp4","audio/wav","audio/wave","audio/x-wav","audio/webm"];function l(){const[e,t]=(0,r.useState)(!1);return{isValidatingAudio:e,validateAudio:(0,r.useCallback)(((e,n,r)=>{if(t(!0),e?.size>s)return t(!1),r(__("The audio file is too large. The maximum file size is 25MB.","jetpack"));const a=e instanceof File;if(a&&!i.includes(e.type))return t(!1),r(__("The audio file type is not supported. Please use a supported audio file type.","jetpack"));const l=new AudioContext;e.arrayBuffer().then((s=>{l.decodeAudioData(s,(function(s){const i=Math.ceil(s.duration);return i>o?(t(!1),r(__("The audio file is too long. The maximum recording time is 25 minutes.","jetpack"))):(t(!1),n({duration:i,isFile:a,size:e?.size}))}))}))}),[t])}}},70286:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51128),a=n.n(r),s=n(78982),o=n(2890);const i=a()("ai-client:use-image-generator"),l=(e,t)=>{const n=4e3-t;return e.length>n?e.substring(0,n-6)+" [...]":e},c=async(e,t,n)=>{const r=((e,t)=>{if(t){const n=`I need a Stable Diffusion prompt to generate a featured image for a blog post based on this user-provided image description:\n\n${t.length>1e3?t.substring(0,1e3):t}\n\nThe image should be a photo. Make sure you highlight the main suject of the image description, and include brief details about the light and style of the image.\nInclude a request to use high resolution and produce a highly detailed image, with sharp focus.\nReturn just the prompt, without comments.\n\nFor additional context, this is the post content:\n\n`;return n+l(e,n.length)}return"I need a Stable Diffusion prompt to generate a featured image for a blog post with the following content.\nThe image should be a photo. Make sure you highlight the main suject of the content, and include brief details about the light and style of the image.\nInclude a request to use high resolution and produce a highly detailed image, with sharp focus.\nReturn just the prompt, without comments. The content is:\n\n"+l(e,412)})(e,t),a=await(0,s.Z)(r,{feature:n});return a.choices?.[0]?.message?.content},u=()=>{const e=async function(e){let t="";try{t=(await(0,o.Z)()).token}catch(e){return i("Error getting token: %o",e),Promise.reject(e)}try{const n="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-image",r={Authorization:`Bearer ${t}`,"Content-Type":"application/json"},a=await fetch(n,{method:"POST",headers:r,body:JSON.stringify(e)}).then((e=>e.json()));return a?.data?.status&&a?.data?.status>200?(i("Error generating image: %o",a),Promise.reject(a)):a}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}};return{generateImage:async function({feature:t,postContent:n,responseFormat:r="url",userPrompt:a}){try{i("Generating image");const s=((e,t)=>{if(t){const n=`I need a cover image for a blog post based on this user prompt:\n\n${t.length>1e3?t.substring(0,1e3):t}\n\nBefore creating the image, identify the main topic of the user prompt and relate it to the post content.\nDo not represent the whole content in one image, keep it simple and just represent one single idea.\nDo not add details, detailed explanations or highlights from the content, just represent the main idea as if it was a photograph.\nDo not use collages or compositions with multiple elements or scenes. Stick to one single scene. Do not compose unrealistic scenes.\nIf the content describes facts, objects or concepts from the real world, represent them on a realistic style and do not make unreal compositions.\nIf the content is more abstract, use a more abstract style to represent the main idea.\nMake sure the light and the style are visually appealing.\nDo not add text to the image.\n\nFor additional context, this is the post content:\n\n`;return n+l(e,n.length)}const n="I need a cover image for a blog post.\nBefore creating the image, identify the main topic of the content and only represent it.\nDo not represent the whole content in one image, keep it simple and just represent one single idea.\nDo not add details, detailed explanations or highlights from the content, just represent the main idea as if it was a photograph.\nDo not use collages or compositions with multiple elements or scenes. Stick to one single scene. Do not compose unrealistic scenes.\nIf the content describes facts, objects or concepts from the real world, represent them on a realistic style and do not make unreal compositions.\nIf the content is more abstract, use a more abstract style to represent the main idea.\nMake sure the light and the style are visually appealing.\nDo not add text to the image.\n\nThis is the post content:\n\n";return n+l(e,838)})(n,a),o={prompt:s,response_format:r,feature:t,size:"1792x1024"};return await e(o)}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}},generateImageWithStableDiffusion:async function({feature:t,postContent:n,userPrompt:r}){try{i("Generating image with Stable Diffusion");const a={prompt:await c(n,r,t),feature:t,model:"stable-diffusion",style:"photographic"};return await e(a)}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}},generateImageWithParameters:e}}},13109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(69307);const a="audio/mp4;codecs=mp4a",s="audio/mp4",o="audio/webm";function i({onDone:e}={}){const t=(0,r.useRef)(null),[n,i]=(0,r.useState)("inactive"),l=(0,r.useRef)(!1),c=(0,r.useRef)(0),[u,d]=(0,r.useState)(0),p=(0,r.useRef)(null),[m,g]=(0,r.useState)(null),A=(0,r.useRef)([]).current,[h,E]=(0,r.useState)(null),f=(0,r.useRef)(null);function b(){return MediaRecorder.isTypeSupported(a)?new Blob(A,{type:s}):new Blob(A,{type:o})}const C=(0,r.useCallback)((e=>{if(y(),!e)return t?.current?.start();e<100&&(e=100),c.current=Date.now(),t?.current?.start(e)}),[]),v=(0,r.useCallback)((()=>{l.current=!0,t?.current?.pause(),d((e=>e+Date.now()-c.current))}),[]),k=(0,r.useCallback)((()=>{l.current=!1,t?.current?.resume(),c.current=Date.now()}),[]),B=(0,r.useCallback)((()=>{t?.current?.stop(),"recording"===n&&d((e=>e+Date.now()-c.current))}),[]),y=(0,r.useCallback)((()=>{A.length=0,g(null),E(null),d(0),l.current=!1,c.current=0}),[]),w=(0,r.useCallback)((()=>{t?.current&&(t.current.removeEventListener("start",j),t.current.removeEventListener("stop",x),t.current.removeEventListener("pause",S),t.current.removeEventListener("resume",Q),t.current.removeEventListener("dataavailable",N),t.current=null)}),[]),_=(0,r.useCallback)((()=>{if(i("inactive"),y(),w(),!navigator.mediaDevices?.getUserMedia)return;const e=new AudioContext;f.current=e.createAnalyser();navigator.mediaDevices.getUserMedia({audio:!0}).then((n=>{p.current=n;e.createMediaStreamSource(n).connect(f.current),MediaRecorder.isTypeSupported(a)?t.current=new MediaRecorder(n,{mimeType:a}):t.current=new MediaRecorder(n,{mimeType:o}),t.current.addEventListener("start",j),t.current.addEventListener("stop",x),t.current.addEventListener("pause",S),t.current.addEventListener("resume",Q),t.current.addEventListener("dataavailable",N)})).catch((e=>{throw e}))}),[]),I=(0,r.useCallback)((e=>{B(),E("string"==typeof e?e:e.message),i("error")}),[]);function j(){i("recording")}function x(){const t=b();e?.(t),A.length=0}function S(){i("paused")}function Q(){i("recording")}function N(e){const{data:t}=e;t?.size&&(A.push(t),g(b()),l.current||d((e=>{const t=Date.now(),n=t-c.current;return c.current=t,e+n})))}return(0,r.useEffect)((()=>(_(),()=>{p.current&&p.current.getTracks().forEach((e=>e.stop())),w()})),[]),{state:n,blob:m,error:h,duration:u,analyser:f.current,onError:I,controls:{start:C,pause:v,resume:k,stop:B,reset:_}}}},44696:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l,Z:()=>c});var r=n(69307),a=n(51128),s=n.n(a),o=n(42194);const i=s()("jetpack-ai-client:use-transcription-post-processing"),l="voice-to-content-simple-draft";function c({feature:e,onReady:t,onError:n,onUpdate:a}){const[s,l]=(0,r.useState)(""),[c,u]=(0,r.useState)(""),[d,p]=(0,r.useState)(!1),m=(0,r.useCallback)((e=>{l(e),a?.(e)}),[l,a]),g=(0,r.useCallback)((e=>{l(e),a?.(e),t?.(e)}),[l,a,t]),A=(0,r.useCallback)((e=>{u(e.message),n?.(e.message)}),[u,n]),{request:h,stopSuggestion:E}=(0,o.Z)({onSuggestion:m,onDone:g,onError:A});return{postProcessingResult:s,isProcessingTranscription:d,postProcessingError:c,processTranscription:(0,r.useCallback)(((t,n)=>{i("Post-processing transcription"),l(""),u(""),p(!0);h([{role:"jetpack-ai",context:{type:t,content:n}}],{feature:e})}),[l,u,p,h,e]),cancelTranscriptionProcessing:(0,r.useCallback)((()=>{E(),p(!1)}),[E,p])}}},61317:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(55609),a=n(99196),s=n.n(a);const o=s().createElement(r.SVG,{viewBox:"0 0 32 32",width:"32",height:"32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"ai-assistant-icon"},s().createElement(r.Path,{className:"spark-first",d:"M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z"}),s().createElement(r.Path,{className:"spark-second",d:"M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z"}),s().createElement(r.Path,{className:"spark-third",d:"M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z"}))},83585:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(55609);const a=React.createElement(r.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.95833C6.66328 3.95833 3.95833 6.66327 3.95833 9.99999C3.95833 13.3367 6.66328 16.0417 10 16.0417C13.3367 16.0417 16.0417 13.3367 16.0417 9.99999C16.0417 6.66327 13.3367 3.95833 10 3.95833ZM2.70833 9.99999C2.70833 5.97292 5.97292 2.70833 10 2.70833C14.0271 2.70833 17.2917 5.97292 17.2917 9.99999C17.2917 14.0271 14.0271 17.2917 10 17.2917C5.97292 17.2917 2.70833 14.0271 2.70833 9.99999Z"}),React.createElement(r.Path,{d:"M10.8333 5.83333H9.16667V10.8333H10.8333V5.83333Z"}),React.createElement(r.Path,{d:"M10.8333 12.5H9.16667V14.1667H10.8333V12.5Z"}))},59822:(e,t,n)=>{"use strict";n.d(t,{Qf:()=>a.Z,Qr:()=>s.Z,u_:()=>r.Z,v_:()=>o.Z});var r=n(61317),a=n(81204),s=(n(4454),n(71893),n(52887),n(96083)),o=n(50500)},81204:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(55609),a=n(99196),s=n.n(a);const o=s().createElement(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},s().createElement(r.Path,{d:"M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z",fill:"#008710"}),s().createElement(r.Rect,{x:"10.5",y:"8.25",width:"3",height:"4.875",rx:"1.5",fill:"#008710"}),s().createElement(r.Path,{d:"M15 11.25C15 11.644 14.9224 12.0341 14.7716 12.3981C14.6209 12.762 14.3999 13.0927 14.1213 13.3713C13.8427 13.6499 13.512 13.8709 13.1481 14.0216C12.7841 14.1724 12.394 14.25 12 14.25C11.606 14.25 11.2159 14.1724 10.8519 14.0216C10.488 13.8709 10.1573 13.6499 9.87868 13.3713C9.6001 13.0927 9.37913 12.762 9.22836 12.3981C9.0776 12.0341 9 11.644 9 11.25",stroke:"#008710",strokeWidth:"1.125",strokeLinecap:"round"}),s().createElement(r.Path,{d:"M11.4375 15.75C11.4375 16.0607 11.6893 16.3125 12 16.3125C12.3107 16.3125 12.5625 16.0607 12.5625 15.75L11.4375 15.75ZM11.4375 14.25L11.4375 15.75L12.5625 15.75L12.5625 14.25L11.4375 14.25Z",fill:"#008710"}))},4454:(e,t,n)=>{"use strict";var r=n(55609),a=n(99196),s=n.n(a);r.SVG,r.Path,r.Path},96083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(55609),a=n(99196),s=n.n(a);const o=s().createElement(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},s().createElement(r.Path,{d:"M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z",fill:"#008710"}),s().createElement(r.Rect,{x:"12.75",y:"9",width:"2.25",height:"6",fill:"#008710"}),s().createElement(r.Rect,{x:"9",y:"9",width:"2.25",height:"6",fill:"#008710"}))},71893:(e,t,n)=>{"use strict";var r=n(55609),a=n(99196),s=n.n(a);r.SVG,r.Path,r.Path},52887:(e,t,n)=>{"use strict";var r=n(55609),a=n(99196),s=n.n(a);r.SVG,r.Path,r.Rect},50500:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(55609),a=n(99196),s=n.n(a);const o=s().createElement(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s().createElement(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 10C12.5 11.3807 11.3807 12.5 10 12.5C8.61929 12.5 7.5 11.3807 7.5 10C7.5 8.61929 8.61929 7.5 10 7.5C11.3807 7.5 12.5 8.61929 12.5 10ZM14 10C14 12.2091 12.2091 14 10 14C7.79086 14 6 12.2091 6 10C6 7.79086 7.79086 6 10 6C12.2091 6 14 7.79086 14 10ZM16.75 21V19C16.75 17.4812 15.5188 16.25 14 16.25L6 16.25C4.48122 16.25 3.25 17.4812 3.25 19V21H4.75L4.75 19C4.75 18.3096 5.30964 17.75 6 17.75L14 17.75C14.6904 17.75 15.25 18.3096 15.25 19V21H16.75Z",fill:"currentColor"}),s().createElement(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.976 16.3599C21.2507 14.5642 22.0001 12.3695 22.0001 9.99969C22.0001 7.63128 21.2515 5.43769 19.9782 3.64258L18.754 4.50967C19.8537 6.05996 20.5001 7.95434 20.5001 9.99969C20.5001 12.0464 19.8528 13.9419 18.7519 15.4928L19.976 16.3599ZM17.3357 14.4897C18.2357 13.222 18.7648 11.6727 18.7648 9.99969C18.7648 8.32808 18.2365 6.77984 17.3379 5.51279L16.1137 6.37988C16.8387 7.4021 17.2648 8.65114 17.2648 9.99969C17.2648 11.3496 16.8378 12.5998 16.1116 13.6226L17.3357 14.4897Z",fill:"currentColor"}))},42290:(e,t,n)=>{"use strict";n.d(t,{$L:()=>p.$L,$u:()=>p.$u,C3:()=>u.C3,Eo:()=>u.Eo,JP:()=>m.JP,L$:()=>i.Z,LB:()=>m.LB,MW:()=>u.MW,OS:()=>o.Z,Qf:()=>c.Qf,Qr:()=>c.Qr,Rc:()=>l.Z,X_:()=>d.X_,Y:()=>p.Y,ZK:()=>u.ZK,_T:()=>a.Z,bC:()=>p.bC,cH:()=>s.Z,co:()=>p.co,cv:()=>p.cv,g:()=>m.g,oN:()=>d.oN,pw:()=>r.Z,q4:()=>p.q4,rp:()=>u.rp,u_:()=>c.u_,v_:()=>c.v_,xi:()=>u.xi});n(2890),n(56694),n(67742),n(46961);var r=n(42194),a=n(13109),s=n(93509),o=n(44696),i=n(92718),l=n(70286),c=n(59822),u=n(58890),d=n(20281),p=n(16700),m=n(35613)},2890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(13419),a=n(51128),s=n.n(a),o=n(87309);const i=s()("jetpack-ai-client:jwt"),l="jetpack-ai-jwt",c=12e4;async function u({apiNonce:e,siteId:t,expirationTime:n}={}){e=e||window.JP_CONNECTION_INITIAL_STATE.apiNonce,t=t||window.JP_CONNECTION_INITIAL_STATE.siteSuffix,n=n||c;const a=(0,r.Wp)(),s=localStorage.getItem(l);let u,d=null;if(s)try{d=JSON.parse(s)}catch(e){i("Error parsing token",e)}if(d&&d?.expire>Date.now())return i("Using cached token"),d;u=a?await(0,o.Z)({path:"/wpcom/v2/sites/"+t+"/jetpack-openai-query/jwt",method:"POST"}):await(0,o.Z)({path:"/jetpack/v4/jetpack-ai-jwt?_cacheBuster="+Date.now(),credentials:"same-origin",headers:{"X-WP-Nonce":e},method:"POST"});const p={token:u.token,blogId:a?t:u.blog_id,expire:Date.now()+n};return i("Storing new token"),localStorage.setItem(l,JSON.stringify(p)),p}},35613:(e,t,n)=>{"use strict";n.d(t,{JP:()=>r.JP,LB:()=>r.LB,g:()=>r.g});var r=n(71197)},22999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(92213);const a={paragraph:e=>e.replaceAll("\n","<br />")},s={emDelimiter:"_",headingStyle:"atx"},o={strikethrough:{filter:["del","s"],replacement:function(e){return"~~"+e+"~~"}}};class i{constructor({options:e={},rules:t={},keep:n=[],remove:a=[],fixes:i=[]}={}){this.fixes=i,this.turndownService=new r.Z({...s,...e}),this.turndownService.keep(n),this.turndownService.remove(a);const l={...o,...t};for(const e in l)this.turndownService.addRule(e,l[e])}render({content:e}){const t=this.turndownService.turndown(e);return this.fixes.reduce(((e,t)=>a[t](e)),t)}}},71197:(e,t,n)=>{"use strict";n.d(t,{JP:()=>r.Z,LB:()=>o,g:()=>i});var r=n(22999);const a=new(n(28603).Z),s=new r.Z,o=({content:e,rules:t,extension:n})=>a.render({content:e,rules:t,extension:n}),i=({content:e})=>s.render({content:e})},28603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(95601);const a=e=>e.replaceAll("\x3c!-- wp:list-item --\x3e","").replaceAll("\x3c!-- /wp:list-item --\x3e","").replaceAll("\x3c!-- wp:list --\x3e","").replaceAll("\x3c!-- /wp:list --\x3e","").replaceAll("<li>","\x3c!-- wp:list-item --\x3e<li>").replaceAll("</li>","</li>\x3c!-- /wp:list-item --\x3e").replaceAll("<ol>",'\x3c!-- wp:list {"ordered":true} --\x3e<ol>').replaceAll("</ol>","</ol>\x3c!-- /wp:list --\x3e").replaceAll("<ul>","\x3c!-- wp:list --\x3e<ul>").replaceAll("</ul>","</ul>\x3c!-- /wp:list --\x3e"),s={list:(e,t=!1)=>{const n=e.replace(/<li>\s+<p>/g,"<li>").replace(/<\/p>\s+<\/li>/g,"</li>");return t?a(n):n},listItem:(e,t=!1)=>t?a(e.replace(/^<[ou]l>\s*/g,"").replace(/\s*<\/[ou]l>\s*$/g,"")):e,paragraph:(e,t=!1)=>t?e.replaceAll(/\s*<br \/>\s*/g,"<br />"):e},o={breaks:!0},i=["list"];class l{constructor(e=o){this.markdownConverter=new r.Z(e)}render({content:e,rules:t=i,extension:n=!1}){const r=this.markdownConverter.render(e);return t.reduce(((e,t)=>s[t](e,n)),r)}}},56694:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(60400),a=n(51128),s=n.n(a),o=n(42194),i=n(2890),l=n(16700);const c=s()("jetpack-ai-client:suggestions-event-source");class u extends EventTarget{constructor(e){super(),this.fullMessage="",this.fullFunctionCall={name:"",arguments:""},this.isPromptClear=!1,this.controller=new AbortController,this.initEventSource(e)}async initEventSource({url:e,question:t,token:n,options:a={}}){if(!n)try{c("Token was not provided, requesting one..."),n=(await(0,i.Z)()).token}catch(e){return void this.processErrorEvent(e)}const s={};if(Number.isInteger(parseInt(a.postId))&&(s.post_id=+a.postId),!e){const t=new URL("https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query");a?.fromCache&&t.searchParams.append("stream_cache","true"),e=t.toString(),c("URL not provided, using default: %o",e)}Array.isArray(t)?s.messages=t:s.question=t,a?.feature?.length&&(c("Feature: %o",a.feature),s.feature=a.feature),a?.functions?.length&&(c("Functions: %o",a.functions),s.functions=a.functions),a?.model?.length&&(c("Model: %o",a.model),s.model=a.model),this.errorUnclearPromptTriggered=!1,await(0,r.L)(e,{openWhenHidden:!0,method:"POST",headers:{"Content-type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify(s),onclose:()=>{c("Stream closed")},onerror:e=>{throw this.processErrorEvent(e),e},onmessage:e=>{this.processEvent(e)},onopen:async e=>{if(e.ok)return;let t;throw e.status>=400&&e.status<=500&&![413,422,429].includes(e.status)&&(c("Connection error: %o",e),t=l.co,this.dispatchEvent(new CustomEvent(l.co,{detail:e}))),503===e.status&&(t=l.$u,this.dispatchEvent(new CustomEvent(l.$u))),413===e.status&&(t=l.cv,this.dispatchEvent(new CustomEvent(l.cv))),422===e.status&&(t=l.q4,this.dispatchEvent(new CustomEvent(l.q4))),429===e.status&&(t=l.$L,this.dispatchEvent(new CustomEvent(l.$L))),this.dispatchEvent(new CustomEvent(l.vF,{detail:(0,o.A)(t)})),new Error},signal:this.controller.signal})}checkForUnclearPrompt(){if(this.isPromptClear)return;const e=this.fullMessage.replace(/__|(\*\*)/g,"");if(e.startsWith("JETPACK_AI_ERROR")){if(this.errorUnclearPromptTriggered)return;this.errorUnclearPromptTriggered=!0,this.dispatchEvent(new CustomEvent(l.bC)),c("Unclear error prompt dispatched"),this.dispatchEvent(new CustomEvent(l.vF,{detail:(0,o.A)(l.bC)}))}else"JETPACK_AI_ERROR".startsWith(e)?c(this.fullMessage):this.isPromptClear=!0}close(){this.controller.abort()}processEvent(e){if("[DONE]"===e.data){if(this.errorUnclearPromptTriggered)return;if(this.fullMessage.length)return this.dispatchEvent(new CustomEvent("done",{detail:this.fullMessage})),void c("Done: %o",this.fullMessage);if(this.fullFunctionCall.name.length)return this.dispatchEvent(new CustomEvent("function_done",{detail:this.fullFunctionCall})),void c("Done: %o",this.fullFunctionCall)}let t;try{t=JSON.parse(e.data)}catch(t){return void c("Error parsing JSON",e,t)}const{delta:n}=t?.choices?.[0]??{delta:{content:null,function_call:null}},r=n.content,a=n.function_call;r&&(this.fullMessage+=r,this.checkForUnclearPrompt(),this.isPromptClear&&(this.dispatchEvent(new CustomEvent("chunk",{detail:r})),c("suggestion: %o",this.fullMessage),this.dispatchEvent(new CustomEvent("suggestion",{detail:this.fullMessage})))),a&&(null!=a.name&&(this.fullFunctionCall.name+=a.name),null!=a.arguments&&(this.fullFunctionCall.arguments+=a.arguments),this.dispatchEvent(new CustomEvent("functionCallChunk",{detail:this.fullFunctionCall})))}processErrorEvent(e){c("onerror: %o",e),this.dispatchEvent(new CustomEvent(l.co,{detail:e})),this.dispatchEvent(new CustomEvent(l.vF,{detail:(0,o.A)(l.co)}))}}},16700:(e,t,n)=>{"use strict";n.d(t,{$L:()=>s,$u:()=>a,Y:()=>r.Y,bC:()=>c,co:()=>l,cv:()=>i,q4:()=>o,vF:()=>u});var r=n(44696);const a="error_service_unavailable",s="error_quota_exceeded",o="error_moderation",i="error_context_too_large",l="error_network",c="error_unclear_prompt",u="error_response"},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51128);const a=n.n(r)()("dops:analytics");let s,o;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const i={initialize:function(e,t,n){i.setUser(e,t),i.setSuperProps(n),i.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){o={ID:e,username:t}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=Object.assign(s||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Built stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){i.tracks.recordPageView(e),i.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,a,s,o){i.ga.recordPurchase(e,t,n,r,a,s,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(s&&(a("- Super Props: %o",s),t=Object.assign(t,s)),a('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):a('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};i.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){i.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){a("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};i.ga.initialized||(o&&(e={userId:"u-"+o.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),i.ga.initialized=!0)},recordPageView:function(e,t){i.ga.initialize(),a("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){i.ga.initialize();let s="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(s+=" [Option Label: "+n+"]"),void 0!==r&&(s+=" [Option Value: "+r+"]"),a(s),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,a,s,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:a,quantity:s}),window.ga("ecommerce:send")}},identifyUser:function(){o&&window._tkq.push(["identifyUser",o.ID,o.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},l=i},64743:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d});var r=n(61132),a=n(96483);function s(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const o=s("JsonParseError"),i=s("JsonParseAfterRedirectError"),l=s("Api404Error"),c=s("Api404AfterRedirectError"),u=s("FetchNetworkError");const d=new function(e,t){let n=e,s=e,o={"X-WP-Nonce":t},i={credentials:"same-origin",headers:o},l={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})},c=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const u={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){s=e},setApiNonce(e){o={"X-WP-Nonce":e},i={credentials:"same-origin",headers:o},l={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{c=e},registerSite:(e,t,a)=>{const s={registration_nonce:e,no_iframe:!0};return(0,r.jetpackConfigHas)("consumer_slug")&&(s.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(s.redirect_uri=t),a&&(s.from=a),g(`${n}jetpack/v4/connection/register`,l,{body:JSON.stringify(s)}).then(p).then(m)},fetchAuthorizationUrl:e=>d((0,a.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),i).then(p).then(m),fetchSiteConnectionData:()=>d(`${n}jetpack/v4/connection/data`,i).then(m),fetchSiteConnectionStatus:()=>d(`${n}jetpack/v4/connection`,i).then(m),fetchSiteConnectionTest:()=>d(`${n}jetpack/v4/connection/test`,i).then(p).then(m),fetchUserConnectionData:()=>d(`${n}jetpack/v4/connection/data`,i).then(m),fetchUserTrackingSettings:()=>d(`${n}jetpack/v4/tracking/settings`,i).then(p).then(m),updateUserTrackingSettings:e=>g(`${n}jetpack/v4/tracking/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),disconnectSite:()=>g(`${n}jetpack/v4/connection`,l,{body:JSON.stringify({isActive:!1})}).then(p).then(m),fetchConnectUrl:()=>d(`${n}jetpack/v4/connection/url`,i).then(p).then(m),unlinkUser:()=>g(`${n}jetpack/v4/connection/user`,l,{body:JSON.stringify({linked:!1})}).then(p).then(m),reconnect:()=>g(`${n}jetpack/v4/connection/reconnect`,l).then(p).then(m),fetchConnectedPlugins:()=>d(`${n}jetpack/v4/connection/plugins`,i).then(p).then(m),setHasSeenWCConnectionModal:()=>g(`${n}jetpack/v4/seen-wc-connection-modal`,l).then(p).then(m),fetchModules:()=>d(`${n}jetpack/v4/module/all`,i).then(p).then(m),fetchModule:e=>d(`${n}jetpack/v4/module/${e}`,i).then(p).then(m),activateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,l,{body:JSON.stringify({active:!0})}).then(p).then(m),deactivateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,l,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>g(`${n}jetpack/v4/module/${e}`,l,{body:JSON.stringify(t)}).then(p).then(m),updateSettings:e=>g(`${n}jetpack/v4/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),getProtectCount:()=>d(`${n}jetpack/v4/module/protect/data`,i).then(p).then(m),resetOptions:e=>g(`${n}jetpack/v4/options/${e}`,l,{body:JSON.stringify({reset:!0})}).then(p).then(m),activateVaultPress:()=>g(`${n}jetpack/v4/plugins`,l,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(m),getVaultPressData:()=>d(`${n}jetpack/v4/module/vaultpress/data`,i).then(p).then(m),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),g(`${n}jetpack/v4/plugins`,l,{body:JSON.stringify(r)}).then(p).then(m)},activateAkismet:()=>g(`${n}jetpack/v4/plugins`,l,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(m),getAkismetData:()=>d(`${n}jetpack/v4/module/akismet/data`,i).then(p).then(m),checkAkismetKey:()=>d(`${n}jetpack/v4/module/akismet/key/check`,i).then(p).then(m),checkAkismetKeyTyped:e=>g(`${n}jetpack/v4/module/akismet/key/check`,l,{body:JSON.stringify({api_key:e})}).then(p).then(m),fetchStatsData:e=>d(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),i).then(p).then(m).then(h),getPluginUpdates:()=>d(`${n}jetpack/v4/updates/plugins`,i).then(p).then(m),getPlans:()=>d(`${n}jetpack/v4/plans`,i).then(p).then(m),fetchSettings:()=>d(`${n}jetpack/v4/settings`,i).then(p).then(m),updateSetting:e=>g(`${n}jetpack/v4/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),fetchSiteData:()=>d(`${n}jetpack/v4/site`,i).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>d(`${n}jetpack/v4/site/features`,i).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>d(`${n}jetpack/v4/site/products`,i).then(p).then(m),fetchSitePurchases:()=>d(`${n}jetpack/v4/site/purchases`,i).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>d(`${n}jetpack/v4/site/benefits`,i).then(p).then(m).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>d(`${n}jetpack/v4/site/discount`,i).then(p).then(m).then((e=>e.data)),fetchSetupQuestionnaire:()=>d(`${n}jetpack/v4/setup/questionnaire`,i).then(p).then(m),fetchRecommendationsData:()=>d(`${n}jetpack/v4/recommendations/data`,i).then(p).then(m),fetchRecommendationsProductSuggestions:()=>d(`${n}jetpack/v4/recommendations/product-suggestions`,i).then(p).then(m),fetchRecommendationsUpsell:()=>d(`${n}jetpack/v4/recommendations/upsell`,i).then(p).then(m),fetchRecommendationsConditional:()=>d(`${n}jetpack/v4/recommendations/conditional`,i).then(p).then(m),saveRecommendationsData:e=>g(`${n}jetpack/v4/recommendations/data`,l,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>d(`${n}jetpack/v4/products`,i).then(p).then(m),fetchRewindStatus:()=>d(`${n}jetpack/v4/rewind`,i).then(p).then(m).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>d(`${n}jetpack/v4/scan`,i).then(p).then(m).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>g(`${n}jetpack/v4/notice/${e}`,l,{body:JSON.stringify({dismissed:!0})}).then(p).then(m),fetchPluginsData:()=>d(`${n}jetpack/v4/plugins`,i).then(p).then(m),fetchIntroOffers:()=>d(`${n}jetpack/v4/intro-offers`,i).then(p).then(m),fetchVerifySiteGoogleStatus:e=>d(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,i).then(p).then(m),verifySiteGoogle:e=>g(`${n}jetpack/v4/verify-site/google`,l,{body:JSON.stringify({keyring_id:e})}).then(p).then(m),submitSurvey:e=>g(`${n}jetpack/v4/marketing/survey`,l,{body:JSON.stringify(e)}).then(p).then(m),saveSetupQuestionnaire:e=>g(`${n}jetpack/v4/setup/questionnaire`,l,{body:JSON.stringify(e)}).then(p).then(m),updateLicensingError:e=>g(`${n}jetpack/v4/licensing/error`,l,{body:JSON.stringify(e)}).then(p).then(m),updateLicenseKey:e=>g(`${n}jetpack/v4/licensing/set-license`,l,{body:JSON.stringify({license:e})}).then(p).then(m),getUserLicensesCounts:()=>d(`${n}jetpack/v4/licensing/user/counts`,i).then(p).then(m),getUserLicenses:()=>d(`${n}jetpack/v4/licensing/user/licenses`,i).then(p).then(m),updateLicensingActivationNoticeDismiss:e=>g(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,l,{body:JSON.stringify({last_detached_count:e})}).then(p).then(m),updateRecommendationsStep:e=>g(`${n}jetpack/v4/recommendations/step`,l,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>g(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,l).then(p),startIDCFresh:e=>g(`${n}jetpack/v4/identity-crisis/start-fresh`,l,{body:JSON.stringify({redirect_uri:e})}).then(p).then(m),migrateIDC:()=>g(`${n}jetpack/v4/identity-crisis/migrate`,l).then(p),attachLicenses:e=>g(`${n}jetpack/v4/licensing/attach-licenses`,l,{body:JSON.stringify({licenses:e})}).then(p).then(m),fetchSearchPlanInfo:()=>d(`${s}jetpack/v4/search/plan`,i).then(p).then(m),fetchSearchSettings:()=>d(`${s}jetpack/v4/search/settings`,i).then(p).then(m),updateSearchSettings:e=>g(`${s}jetpack/v4/search/settings`,l,{body:JSON.stringify(e)}).then(p).then(m),fetchSearchStats:()=>d(`${s}jetpack/v4/search/stats`,i).then(p).then(m),fetchWafSettings:()=>d(`${n}jetpack/v4/waf`,i).then(p).then(m),updateWafSettings:e=>g(`${n}jetpack/v4/waf`,l,{body:JSON.stringify(e)}).then(p).then(m),fetchWordAdsSettings:()=>d(`${n}jetpack/v4/wordads/settings`,i).then(p).then(m),updateWordAdsSettings:e=>g(`${n}jetpack/v4/wordads/settings`,l,{body:JSON.stringify(e)}),fetchSearchPricing:()=>d(`${s}jetpack/v4/search/pricing`,i).then(p).then(m),fetchMigrationStatus:()=>d(`${n}jetpack/v4/migration/status`,i).then(p).then(m),fetchBackupUndoEvent:()=>d(`${n}jetpack/v4/site/backup/undo-event`,i).then(p).then(m),fetchBackupPreflightStatus:()=>d(`${n}jetpack/v4/site/backup/preflight`,i).then(p).then(m)};function d(e,t){return fetch(c(e),t)}function g(e,t,n){return fetch(e,Object.assign({},t,n)).catch(A)}function h(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,u)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new c(e.redirected):new l})):e.json().catch((e=>g(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function m(e){return e.json().catch((t=>g(t,e.redirected,e.url)))}function g(e,t,n){throw t?new i(n):new o}function A(){throw new u}},90526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(82674),a=n.n(r),s=n(55609),o=n(65736),i=n(61074),l=n(15381),c=n(65235),u=n.n(c),d=n(99196),p=n.n(d),m=n(62103);const __=o.__,g=(0,d.forwardRef)(((e,t)=>{const{children:n,variant:r="primary",size:o="normal",weight:c="bold",icon:d,iconSize:g,disabled:A,isDestructive:h,isLoading:E,isExternalLink:f,className:b,text:C,fullWidth:v,...k}=e,B=u()(m.Z.button,b,{[m.Z.normal]:"normal"===o,[m.Z.small]:"small"===o,[m.Z.icon]:Boolean(d),[m.Z.loading]:E,[m.Z.regular]:"regular"===c,[m.Z["full-width"]]:v,[m.Z["is-icon-button"]]:Boolean(d)&&!n});k.ref=t;const y="normal"===o?20:16,w=f&&p().createElement(p().Fragment,null,p().createElement(i.Z,{size:y,icon:l.Z,className:m.Z["external-icon"]}),p().createElement(s.VisuallyHidden,{as:"span"},/* translators: accessibility text */ | |
| 7 | -__("(opens in a new tab)","jetpack"))),_=f?"_blank":void 0,I=n?.[0]&&null!==n[0]&&"components-tooltip"!==n?.[0]?.props?.className;return p().createElement(s.Button,a()({target:_,variant:r,className:u()(B,{"has-text":!!d&&I}),icon:f?void 0:d,iconSize:g,disabled:A,"aria-disabled":A,isDestructive:h,text:C},k),E&&p().createElement(s.Spinner,null),p().createElement("span",null,n),w)}));g.displayName="Button";const A=g},14203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(82674),a=n.n(r),s=n(94333),o=n(69307),i=n(65736),l=n(90526),c=n(3396);const __=i.__,u=({buttonStyle:e="icon",textToCopy:t,onCopy:n,...r})=>{const[i,u]=(0,o.useState)(!1),d=(0,o.useRef)(),p=(0,s.useCopyToClipboard)(t,(()=>{d.current&&clearTimeout(d.current),u(!0),n?.(),d.current=setTimeout((()=>{u(!1),d.current=void 0}),3e3)}));(0,o.useEffect)((()=>()=>{d.current&&clearTimeout(d.current)}),[]);let m=null,g=null;"text"!==e&&(m=i?React.createElement(c.KM,null):React.createElement(c.Km,null));const A=__("Copy to clipboard","jetpack");return"icon"!==e&&(g=i?__("Copied!","jetpack"):A),React.createElement(l.Z,a()({"aria-label":A,icon:m,children:g,ref:p},r))}},60068:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var r=n(9818),a=n(53961);function s(){const e=(0,r.useDispatch)(a.store),t=(0,r.useSelect)((e=>e(a.store).getNotices()),[]);return{...e,createNotice:(t,n,r)=>e.createNotice(t,n,{type:"snackbar",...r}),createErrorNotice:(t,n)=>e.createErrorNotice(t,{type:"snackbar",...n}),createInfoNotice:(t,n)=>e.createInfoNotice(t,{type:"snackbar",...n}),createSuccessNotice:(t,n)=>e.createSuccessNotice(t,{type:"snackbar",...n}),createWarningNotice:(t,n)=>e.createWarningNotice(t,{type:"snackbar",...n}),getNotices:()=>t}}},67172:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(65736),a=n(65235),s=n.n(a),o=n(99196);n(53351);const __=r.__;class i extends o.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-arrow-left","gridicons-arrow-right","gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-info-outline","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGDescription(e){if("description"in this.props)return this.props.description;switch(e){default:return"";case"gridicons-audio":return __("Has audio.","jetpack");case"gridicons-arrow-left":return __("Arrow left","jetpack");case"gridicons-arrow-right":return __("Arrow right","jetpack");case"gridicons-calendar":return __("Is an event.","jetpack");case"gridicons-cart":return __("Is a product.","jetpack");case"chevron-down":return __("Show filters","jetpack");case"gridicons-comment":return __("Matching comment.","jetpack");case"gridicons-cross":return __("Close.","jetpack");case"gridicons-filter":return __("Toggle search filters.","jetpack");case"gridicons-folder":return __("Category","jetpack");case"gridicons-info":case"gridicons-info-outline":return __("Information.","jetpack");case"gridicons-image-multiple":return __("Has multiple images.","jetpack");case"gridicons-image":return __("Has an image.","jetpack");case"gridicons-page":return __("Page","jetpack");case"gridicons-post":return __("Post","jetpack");case"gridicons-jetpack-search":case"gridicons-search":return __("Magnifying Glass","jetpack");case"gridicons-tag":return __("Tag","jetpack");case"gridicons-video":return __("Has a video.","jetpack")}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return React.createElement("g",null,React.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-arrow-left":return React.createElement("g",null,React.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}));case"gridicons-arrow-right":return React.createElement("g",null,React.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}));case"gridicons-block":return React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return React.createElement("g",null,React.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return React.createElement("g",null,React.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return React.createElement("g",null,React.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-left":return React.createElement("g",null,React.createElement("path",{d:"M16.443 7.41L15.0399 6L9.06934 12L15.0399 18L16.443 16.59L11.8855 12L16.443 7.41Z"}));case"gridicons-chevron-right":return React.createElement("g",null,React.createElement("path",{d:"M10.2366 6L8.8335 7.41L13.391 12L8.8335 16.59L10.2366 18L16.2072 12L10.2366 6Z"}));case"gridicons-chevron-down":return React.createElement("g",null,React.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return React.createElement("g",null,React.createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-computer":return React.createElement("g",null,React.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"}));case"gridicons-cross":return React.createElement("g",null,React.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return React.createElement("g",null,React.createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return React.createElement("g",null,React.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return React.createElement("g",null,React.createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return React.createElement("g",null,React.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-info-outline":return React.createElement("g",null,React.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"}));case"gridicons-jetpack-search":return React.createElement("g",null,React.createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-phone":return React.createElement("g",null,React.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"}));case"gridicons-pages":return React.createElement("g",null,React.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return React.createElement("g",null,React.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return React.createElement("g",null,React.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return React.createElement("g",null,React.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return React.createElement("g",null,React.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return React.createElement("g",null,React.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return React.createElement("g",null,React.createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}));case"gridicons-lock":return React.createElement(React.Fragment,null,React.createElement("g",{id:"lock"},React.createElement("path",{d:"M18,8h-1V7c0-2.757-2.243-5-5-5S7,4.243,7,7v1H6c-1.105,0-2,0.895-2,2v10c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V10 C20,8.895,19.105,8,18,8z M9,7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H9V7z M13,15.723V18h-2v-2.277c-0.595-0.346-1-0.984-1-1.723 c0-1.105,0.895-2,2-2s2,0.895,2,2C14,14.738,13.595,15.376,13,15.723z"})),React.createElement("g",{id:"Layer_1"}));case"gridicons-external":return React.createElement("g",null,React.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"}))}}render(){const{size:e=24,className:t=""}=this.props,n=this.props.height||e,r=this.props.width||e,a=this.props.style||{height:n,width:r},o="gridicons-"+this.props.icon,i=s()("gridicon",o,t,{"needs-offset":this.needsOffset(o,e)}),l=this.getSVGDescription(o);return React.createElement("svg",{className:i,focusable:this.props.focusable,height:n,onClick:this.props.onClick,style:a,viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},l?React.createElement("desc",null,l):null,this.renderIcon(o))}}const l=i},69665:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(55609),a=n(65235),s=n.n(a),o=n(99196),i=n.n(o),l=n(90526),c=n(67172);n(72098);const u=e=>({"top-end":"top left",top:"top center","top-start":"top right","bottom-end":"bottom left",bottom:"bottom center","bottom-start":"bottom right"}[e]),d=({className:e="",iconClassName:t="",placement:n="bottom-end",animate:a=!0,iconCode:d="info-outline",iconSize:p=18,offset:m=10,title:g,children:A,popoverAnchorStyle:h="icon",forceShow:E=!1,wide:f=!1,inline:b=!0,shift:C=!1})=>{const[v,k]=(0,o.useState)(!1),B=(0,o.useCallback)((()=>k(!1)),[k]),y=(0,o.useCallback)((e=>{e.preventDefault(),k(!v)}),[v,k]),w={position:u(n),placement:n,animate:a,noArrow:!1,resize:!1,flip:!1,offset:m,focusOnMount:"container",onClose:B,className:"icon-tooltip-container",inline:b,shift:C},_="wrapper"===h,I=s()("icon-tooltip-wrapper",e),j={left:_?0:-(62-p/2)+"px"},x=_&&E;return i().createElement("div",{className:I,"data-testid":"icon-tooltip_wrapper"},!_&&i().createElement(l.Z,{variant:"link",onMouseDown:y},i().createElement(c.Z,{className:t,icon:d,size:p})),i().createElement("div",{className:s()("icon-tooltip-helper",{"is-wide":f}),style:j},(x||v)&&i().createElement(r.Popover,w,i().createElement("div",null,g&&i().createElement("div",{className:"icon-tooltip-title"},g),i().createElement("div",{className:"icon-tooltip-content"},A)))))}},3396:(e,t,n)=>{"use strict";n.d(t,{KM:()=>d,Km:()=>p,av:()=>m});var r=n(82674),a=n.n(r),s=n(55609),o=n(65235),i=n.n(o),l=n(56286),c=n(45460);const u=({className:e,size:t=24,viewBox:n="0 0 24 24",opacity:r=1,color:o="#2C3338",children:l})=>{const u={className:i()(c.Z.iconWrapper,e),width:t,height:t,viewBox:n,opacity:r,fill:void 0};return o&&(u.fill=o),React.createElement(s.SVG,a()({},u,{fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg"}),React.createElement(s.G,{opacity:r},l))},d=({size:e,className:t=c.Z["checkmark-icon"],color:n})=>React.createElement(u,{className:t,size:e,color:n},React.createElement(s.Path,{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})),p=({size:e,className:t=c.Z["clipboard-icon"],color:n})=>React.createElement(u,{className:t,size:e,color:n},React.createElement(s.Path,{d:"M5.625 5.5H15.375C15.444 5.5 15.5 5.55596 15.5 5.625V15.375C15.5 15.444 15.444 15.5 15.375 15.5H5.625C5.55596 15.5 5.5 15.444 5.5 15.375V5.625C5.5 5.55596 5.55596 5.5 5.625 5.5ZM4 5.625C4 4.72754 4.72754 4 5.625 4H15.375C16.2725 4 17 4.72754 17 5.625V10V15.375C17 16.2725 16.2725 17 15.375 17C15.375 17 6.52246 17 5.625 17C4.72754 17 4 16.2725 4 15.375V5.625ZM18.5 17.2812V8.28125H20V17.2812C20 18.7995 18.7704 20 17.2511 20H6.25V18.5H17.2511C17.9409 18.5 18.5 17.9721 18.5 17.2812Z"}));const m=({serviceName:e,className:t,iconSize:n})=>React.createElement(l.ZP,{className:i()(c.Z.socialIcon,c.Z[e],t),icon:e,size:n||24})},78868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(82674),a=n.n(r),s=n(65736),o=n(65235),i=n.n(o),l=n(99196),c=n.n(l);const __=s.__,u=({logoColor:e="#069e08",showText:t=!0,className:n,height:r=32,...s})=>{const o=t?"0 0 118 32":"0 0 32 32";return c().createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:i()("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title",height:r},s,{role:"img"}),c().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack")),c().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&c().createElement(c().Fragment,null,c().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),c().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),c().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),c().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),c().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),c().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),c().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},32054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(94333),a=n(49710);const s=["sm","md","lg"],o=(e,t)=>{const n=Array.isArray(e)?e:[e],o=Array.isArray(t)?t:[t],[i,l,c]=s,u={sm:(0,r.useMediaQuery)(a.Z[i]),md:(0,r.useMediaQuery)(a.Z[l]),lg:(0,r.useMediaQuery)(a.Z[c])};return n.map(((e,t)=>{const n=o[t];return n?((e,t,n)=>{const r=s.indexOf(e),a=r+1,o=t.includes("=");let i=[];return t.startsWith("<")&&(i=s.slice(0,o?a:r)),t.startsWith(">")&&(i=s.slice(o?r:a)),i?.length?i.some((e=>n[e])):n[e]})(e,n,u):u[e]}))}},22636:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(65235),a=n.n(r),s=n(99196),o=n.n(s),i=n(46409);const l=({children:e=null,width:t=null,height:n=null,className:r=""})=>o().createElement("div",{className:a()(i.Z.placeholder,r),style:{width:t,height:n}},e)},52947:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(98709);const a=(e,t={})=>{const n=(0,r.X)();return new Intl.NumberFormat(n,t).format(e)}},49777:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28918);const a=({value:e="https://jetpack.com",bgColor:t,fgColor:n,level:a,includeMargin:s,imageSettings:o,renderAs:i="canvas",size:l=248})=>React.createElement(r.ZP,{value:e,size:l,bgColor:t,fgColor:n,level:a,includeMargin:s,imageSettings:o,renderAs:i})},43521:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(65736),a=n(65235),s=n.n(a),o=n(99196),i=n.n(o),l=n(52947);n(34086);const __=r.__,c=({totalCount:e,items:t=[],showLegendLabelBeforeCount:n=!1,sortByCount:r,className:a,tableCaption:c,legendTitle:u,recordTypeLabel:d,recordCountLabel:p})=>{const m=(0,o.useMemo)((()=>e||t.reduce(((e,{count:t})=>e+t),0)),[t,e]),g=(0,o.useMemo)((()=>r?[...t].sort(((e,t)=>"ascending"===r?e.count-t.count:t.count-e.count)):t),[t,r]);return i().createElement("div",{className:s()("record-meter-bar",a)},i().createElement("div",{className:"record-meter-bar__items","aria-hidden":"true"},g.map((({count:e,label:t,backgroundColor:n})=>{const r=(e/m*100).toPrecision(2);return i().createElement("div",{key:t,style:{backgroundColor:n,flexBasis:`${r}%`}})}))),i().createElement("div",{className:"record-meter-bar__legend","aria-hidden":"true"},u&&i().createElement("div",{className:"record-meter-bar__legend--title"},u),i().createElement("ul",{className:"record-meter-bar__legend--items"},g.map((({count:e,label:t,backgroundColor:r})=>{const a=(0,l.Z)(e);return i().createElement("li",{key:t,className:"record-meter-bar__legend--item"},i().createElement("div",{className:"record-meter-bar__legend--item-circle",style:{backgroundColor:r}}),!n&&i().createElement("span",null,i().createElement("span",{className:"record-meter-bar__legend--item-count"},a),i().createElement("span",{className:"record-meter-bar__legend--item-label"},t)),n&&i().createElement("span",null,i().createElement("span",{className:"record-meter-bar__legend--item-label record-meter-bar__legend--item-label-first"},t),i().createElement("span",{className:"record-meter-bar__legend--item-count"},"(",a,")")))})))),i().createElement("table",{className:"screen-reader-text"},i().createElement("caption",null,c||__("Summary of the records","jetpack")),i().createElement("tbody",null,i().createElement("tr",null,i().createElement("th",{scope:"col"},d||__("Record type","jetpack")),i().createElement("th",{scope:"col"},p||__("Record count","jetpack"))),g.map((({label:e,count:t})=>i().createElement("tr",{key:e},i().createElement("td",null,e),i().createElement("td",null,t)))))))}},45033:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(25162),a=n.n(r),s=n(99196),o=n.n(s);n(48026);const i=({color:e="#FFFFFF",className:t="",size:n=20})=>{const r=t+" jp-components-spinner",a={width:n,height:n,fontSize:n,borderTopColor:e},s={borderTopColor:e,borderRightColor:e};return o().createElement("div",{className:r},o().createElement("div",{className:"jp-components-spinner__outer",style:a},o().createElement("div",{className:"jp-components-spinner__inner",style:s})))};i.propTypes={color:a().string,className:a().string,size:a().number};const l=i},66017:(e,t,n)=>{"use strict";n.d(t,{h:()=>r,s:()=>a});const r={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},a=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},45106:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p});var r=n(82674),a=n.n(r),s=n(65235),o=n.n(s),i=n(99196),l=n.n(i),c=n(66017),u=n(85837);const d=(0,i.forwardRef)((({variant:e="body",children:t,component:n,className:r,...s},d)=>{const p=n||c.h[e]||"span",m=(0,i.useMemo)((()=>c.s.reduce(((e,t)=>(void 0!==s[t]&&(e+=u.Z[`${t}-${s[t]}`]+" ",delete s[t]),e)),"")),[s]);return s.ref=d,l().createElement(p,a()({className:o()(u.Z.reset,u.Z[e],r,m)},s),t)}));d.displayName="Text";const p=d},88275:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p});var r=n(99196),a=n.n(r),s=n(93468);const o={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},i={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},l={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},c={"--spacing-base":"8px"},u={},d=(e,t,n)=>{const r={...o,...i,...l,...c};for(const t in r)e.style.setProperty(t,r[t]);n&&e.classList.add(s.Z.global),t&&(u[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:n,withGlobalStyles:s=!0})=>{const o=(0,r.useRef)(),i=u?.[n]?.provided;return(0,r.useLayoutEffect)((()=>{if(!i)return t?d(t,n,s):void(o?.current&&d(o.current,n,s))}),[t,o,i,n,s]),t?a().createElement(a().Fragment,null,e):a().createElement("div",{ref:o},e)}},98709:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(69771);const a=()=>{const{l10n:{locale:e}}=(0,r.getSettings)();if(e)return(e=>{const t=e.match(/^([a-z]{2,3})(_[a-z]{2}|_[a-z][a-z0-9]{4,7})?(?:_.*)?$/i);return t?`${t[1]}${t[2]?t[2]:""}`.replace("_","-"):"en-US"})(e);return window?.window?.navigator?.language??"en-US"}},6895:(e,t,n)=>{"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map((e=>e+"="+n[e])).join("&")}n.d(t,{Z:()=>r})},61132:(e,t,n)=>{let r={};try{r=n(92787)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0}}const a=e=>r.hasOwnProperty(e);e.exports={jetpackConfigHas:a,jetpackConfigGet:e=>{if(!a(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},31294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(64743),a=n(9818),s=n(99196),o=n(80428);const i=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{},l=({registrationNonce:e=i.registrationNonce,apiRoot:t=i.apiRoot,apiNonce:n=i.apiNonce,redirectUri:l,autoTrigger:c,from:u,skipUserConnection:d}={})=>{const{registerSite:p,connectUser:m,refreshConnectedPlugins:g}=(0,a.useDispatch)(o.t),A=(0,a.useSelect)((e=>e(o.t).getRegistrationError())),{siteIsRegistering:h,userIsConnecting:E,userConnectionData:f,connectedPlugins:b,connectionErrors:C,isRegistered:v,isUserConnected:k,hasConnectedOwner:B,isOfflineMode:y}=(0,a.useSelect)((e=>({siteIsRegistering:e(o.t).getSiteIsRegistering(),userIsConnecting:e(o.t).getUserIsConnecting(),userConnectionData:e(o.t).getUserConnectionData(),connectedPlugins:e(o.t).getConnectedPlugins(),connectionErrors:e(o.t).getConnectionErrors(),isOfflineMode:e(o.t).getIsOfflineMode(),...e(o.t).getConnectionStatus()}))),w=()=>d?l?(window.location=l,Promise.resolve(l)):Promise.resolve():m({from:u,redirectUri:l}),_=t=>(t&&t.preventDefault(),v?w():p({registrationNonce:e,redirectUri:l,from:u}).then((()=>w())));return(0,s.useEffect)((()=>{r.ZP.setApiRoot(t),r.ZP.setApiNonce(n)}),[t,n]),(0,s.useEffect)((()=>{!c||h||E||_()}),[]),{handleRegisterSite:_,handleConnectUser:w,refreshConnectedPlugins:g,isRegistered:v,isUserConnected:k,siteIsRegistering:h,userIsConnecting:E,registrationError:A,userConnectionData:f,hasConnectedOwner:B,connectedPlugins:b,connectionErrors:C,isOfflineMode:y}}},27523:(e,t,n)=>{"use strict";n.d(t,{LI:()=>s,N4:()=>i,Qo:()=>d,T1:()=>c,TS:()=>u,ZP:()=>k,b5:()=>m,i6:()=>a,qJ:()=>g,qV:()=>l,r7:()=>o,wQ:()=>p});var r=n(64743);const a="SET_CONNECTION_STATUS",s="SET_CONNECTION_STATUS_IS_FETCHING",o="SET_SITE_IS_REGISTERING",i="SET_USER_IS_CONNECTING",l="SET_REGISTRATION_ERROR",c="CLEAR_REGISTRATION_ERROR",u="SET_AUTHORIZATION_URL",d="DISCONNECT_USER_SUCCESS",p="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",g="SET_IS_OFFLINE_MODE",A=e=>({type:a,connectionStatus:e}),h=e=>({type:o,isRegistering:e}),E=e=>({type:i,isConnecting:e}),f=e=>({type:l,registrationError:e}),b=()=>({type:c}),C=e=>({type:u,authorizationUrl:e}),v=e=>({type:p,connectedPlugins:e});const k={setConnectionStatus:A,setConnectionStatusIsFetching:e=>({type:s,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:h,setUserIsConnecting:E,setRegistrationError:f,clearRegistrationError:b,setAuthorizationUrl:C,registerSite:function*({registrationNonce:e,redirectUri:t,from:n=""}){yield b(),yield h(!0);try{const r=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:n};return yield A({isRegistered:!0}),yield C(r.authorizeUrl),yield h(!1),Promise.resolve(r)}catch(e){return yield f(e),yield h(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:n}={}){yield E(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}},disconnectUserSuccess:()=>({type:d}),setConnectedPlugins:v,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>r.ZP.fetchConnectedPlugins().then((n=>{e(v(n)),t(n)})))),setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:g,isOfflineMode:e})}},31432:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(64743),a=n(9818),s=n(27057);const o={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>r.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:n})=>r.ZP.registerSite(e,t,n),CONNECT_USER:(0,a.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:n,redirectUri:r}={})=>new Promise(((a,o)=>{e(s.Z).getAuthorizationUrl(r).then((e=>{const r=n||(e=>window.location.assign(e)),s=new URL(e);t&&s.searchParams.set("from",encodeURIComponent(t));const o=s.toString();r(o),a(o)})).catch((e=>{o(e)}))}))))}},41479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9818),a=n(27523);const s=(0,r.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case a.i6:return{...e,...t.connectionStatus};case a.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===a.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===a.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===a.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case a.T1:return!1;case a.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===a.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===a.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===a.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===a.qJ?t.isConnecting:e})},77728:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),a=n(27523),s=n(27057);const o={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const n=Boolean(e.authorizationUrl),a=(0,r.select)(s.Z).hasFinishedResolution("getAuthorizationUrl",t);return n&&!a&&(0,r.dispatch)(s.Z).finishResolution("getAuthorizationUrl",t),n},*fulfill(e){const t=yield a.ZP.fetchAuthorizationUrl(e);yield a.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},82725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},13535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9818);class a{static store=null;static mayBeInit(e,t){null===a.store&&(a.store=(0,r.createReduxStore)(e,t),(0,r.register)(a.store))}}const s=a},27057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="jetpack-connection"},80428:(e,t,n)=>{"use strict";n.d(t,{t:()=>c.Z});var r=n(27523),a=n(31432),s=n(41479),o=n(77728),i=n(82725),l=n(13535),c=n(27057);const u=window.JP_CONNECTION_INITIAL_STATE;u||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.Z.mayBeInit(c.Z,{__experimentalUseThunks:!0,reducer:s.Z,actions:r.ZP,selectors:i.Z,resolvers:o.Z,controls:a.Z,initialState:u||{}})},81050:(e,t,n)=>{"use strict";n.d(t,{PostPublishManualSharing:()=>l.Z,PostPublishReviewPrompt:()=>i.Z,PublicizePanel:()=>o.Z,SocialImageGeneratorPanel:()=>s.Z,SocialPreviewsModal:()=>r.Z,SocialPreviewsPanel:()=>a.Z,usePublicizeConfig:()=>u.Z,useSocialMediaConnections:()=>c.Z,useSyncPostDataToStore:()=>p.N});n(23177),n(4277),n(49021),n(84703);var r=n(8454),a=n(74140),s=n(54005),o=(n(8350),n(76848),n(92116),n(79631),n(8714)),i=(n(19649),n(52403)),l=n(91750),c=(n(77106),n(75674),n(37568)),u=(n(48751),n(14085)),d=(n(45579),n(75323),n(42032));n.o(d,"useSyncPostDataToStore")&&n.d(t,{useSyncPostDataToStore:function(){return d.useSyncPostDataToStore}});n(91474);var p=n(19890);n(32637),n(86419),n(34431),n(71806),n(22917),n(95766)},92116:(e,t,n)=>{"use strict";n(9818),n(69307),n(99196),n(23177)},85761:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(3396),a=n(69307),s=n(65235),o=n.n(s),i=n(25162),l=n.n(i);const c=e=>{const{checked:t,serviceName:n,label:s,onClick:i,profilePicture:l}=e,[c,u]=(0,a.useState)(!!l),d=(0,a.useCallback)((()=>u(!1)),[]),p=(0,a.useCallback)((e=>{13===e.keyCode&&i()}),[i]);return React.createElement("div",{onClick:i,onKeyDown:p,role:"switch","aria-checked":t,tabIndex:"0",className:o()("components-connection-icon",{"components-connection-icon__picture":c})},c&&React.createElement("img",{src:l,alt:s,onError:d}),React.createElement(r.av,{alt:s,serviceName:"instagram-business"===n?"instagram":"twitter"===n?"x":n,className:"jetpack-publicize-gutenberg-social-icon"}))};c.propTypes={serviceName:l().string,label:l().string,profilePicture:l().string};const u=c},60676:(e,t,n)=>{"use strict";n(55609),n(65736),n(99196),n(85761),n(62878),n(25893),n(20841),n(43876),n(75124)},62878:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(55609),a=n(65736),s=n(75124);const __=a.__;function o({connection:e}){return e.display_name?React.createElement("div",{className:s.Z["connection-name"]},e.profile_link?React.createElement(r.ExternalLink,{className:s.Z["profile-link"],href:e.profile_link},e.display_name):React.createElement("span",{className:s.Z["profile-link"]},e.display_name)):React.createElement(r.Spinner,{color:"black","aria-label":__("Loading account details","jetpack")})}},25893:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(65736),a=n(67660);const __=r.__;function s({connection:e,service:t,onConfirmReconnect:n}){return"broken"!==e.status?null:React.createElement("div",null,React.createElement("span",{className:"description"},__("There is an issue with this connection.","jetpack"))," ",React.createElement(a.w,{connection:e,service:t,onConfirmReconnect:n}))}},20841:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var r=n(90526),a=n(55609),s=n(9818),o=n(69307),i=n(65736),l=n(23177),c=n(75124);const __=i.__,_x=i._x;function u({connection:e,variant:t="secondary",isDestructive:n=!0,buttonClassName:u}){const[d,p]=(0,o.useReducer)((e=>!e),!1),{deleteConnectionById:m}=(0,s.useDispatch)(l.h),{isDisconnecting:g}=(0,s.useSelect)((t=>{const{getDeletingConnections:n}=t(l.h);return{isDisconnecting:n().includes(e.connection_id)}}),[e.connection_id]),A=(0,o.useCallback)((async()=>{p(),await m({connectionId:e.connection_id})}),[e.connection_id,m]);return e.can_disconnect?React.createElement(React.Fragment,null,React.createElement(a.__experimentalConfirmDialog,{className:c.Z.confirmDialog,isOpen:d,onConfirm:A,onCancel:p,cancelButtonText:__("Cancel","jetpack"),confirmButtonText:__("Yes","jetpack")},(0,o.createInterpolateElement)((0,i.sprintf)( | |
| 8 | -// translators: %s: The name of the connection the user is disconnecting. | |
| 9 | -__("Are you sure you want to disconnect <strong>%s</strong>?","jetpack"),e.display_name),{strong:React.createElement("strong",null)})),React.createElement(r.Z,{size:"small",onClick:p,disabled:g,variant:t,isDestructive:n,className:u},g?__("Disconnecting…","jetpack"):_x("Disconnect","Disconnect a social media account","jetpack"))):null}},75674:(e,t,n)=>{"use strict";n(55609),n(9818),n(69307),n(65736),n(65235),n(37568),n(23177),n(95766),n(66475),n(60676),n(75124)},43876:(e,t,n)=>{"use strict";n.d(t,{l:()=>l});var r=n(55609),a=n(9818),s=n(69307),o=n(65736),i=n(23177);const __=o.__;function l({connection:e}){const{updateConnectionById:t}=(0,a.useDispatch)(i.h),{isUpdating:n}=(0,a.useSelect)((t=>{const{getUpdatingConnections:n}=t(i.h);return{isUpdating:n().includes(e.connection_id)}}),[e.connection_id]),o=(0,s.useCallback)((n=>{t(e.connection_id,{shared:n})}),[e.connection_id,t]);return React.createElement(r.CheckboxControl,{checked:e.shared??!1,onChange:o,disabled:n||"broken"===e.status,label:__("Mark the connection as shared","jetpack")})}},67660:(e,t,n)=>{"use strict";n.d(t,{w:()=>c});var r=n(90526),a=n(9818),s=n(69307),o=n(65736),i=n(23177),l=n(58300);const __=o.__,_x=o._x;function c({connection:e,service:t,variant:n="link",onConfirmReconnect:o}){const{deleteConnectionById:c,setKeyringResult:u}=(0,a.useDispatch)(i.h),{isDisconnecting:d}=(0,a.useSelect)((t=>{const{getDeletingConnections:n}=t(i.h);return{isDisconnecting:n().includes(e.connection_id)}}),[e.connection_id]),p=(0,s.useCallback)((e=>{u(e),e?.ID&&o?.()}),[o,u]),m=(0,l.N)({service:t,onConfirm:p}),g=(0,s.useCallback)((async()=>{if(!await c({connectionId:e.connection_id,showSuccessNotice:!1}))return;const n=new FormData;"mastodon"===t.ID&&n.set("instance",e.external_display),m(n)}),[e,c,m,t.ID]);return e.can_disconnect?React.createElement(React.Fragment,null,React.createElement(r.Z,{size:"small",onClick:g,disabled:d,variant:n},d?__("Disconnecting…","jetpack"):_x("Reconnect","Reconnect a social media account","jetpack"))):null}},24479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(65235),a=n.n(r),s=n(25162),o=n.n(s),i=n(85761);const l=e=>{const{checked:t,disabled:n,onChange:r,serviceName:s,label:o,profilePicture:l}=e,c=a()("components-connection-toggle",{"is-not-checked":!t,"is-disabled":n});return React.createElement("div",{className:c,title:o},React.createElement(i.Z,{checked:t,label:o,onClick:r,serviceName:s,profilePicture:l}))};l.propTypes={className:o().string,checked:o().bool,id:o().string.isRequired,disabled:o().bool,onChange:o().func,serviceName:o().string,label:o().string,profilePicture:o().string};const c=l},49021:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(94333),a=n(9818),s=n(69307),o=n(23177);class i extends s.Component{componentDidMount(){this.props.refreshConnections()}render(){return null}}const l=(0,r.compose)([(0,a.withSelect)((e=>({failedConnections:e(o.Eg).getFailedConnections()}))),(0,a.withDispatch)((e=>({refreshConnections:e(o.Eg).refreshConnectionTestResults})))])(i)},4277:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(13419),a=n(55609),s=n(9818),o=n(69307),i=n(65736),l=n(23177),c=n(24479),u=n(28161),d=n(91853);const __=i.__;class p extends o.Component{maybeDisplayLinkedInNotice=()=>this.connectionNeedsReauth()&&React.createElement(a.Notice,{className:u.Z["publicize-notice"],isDismissible:!1,status:"error"},React.createElement("p",null,__("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.","jetpack")),React.createElement(a.ExternalLink,{href:`https://wordpress.com/marketing/connections/${(0,r.lQ)()}`},__("Go to Sharing settings","jetpack")));connectionNeedsReauth=()=>this.props.mustReauthConnections.includes(this.props.name);onConnectionChange=()=>{const{id:e}=this.props;this.isDisabled()||this.props.toggleConnection(e)};connectionIsFailing(){const{failedConnections:e,name:t}=this.props;return e.some((e=>e.service_name===t))}isDisabled(){return this.props.disabled||this.connectionIsFailing()||this.connectionNeedsReauth()}render(){const{enabled:e,id:t,label:n,name:r,profilePicture:a}=this.props,s="connection-"+r+"-"+t,o=r.replace("_","-"),i=React.createElement(c.Z,{id:s,className:d.Z["connection-toggle"],checked:e,onChange:this.onConnectionChange,disabled:this.isDisabled(),serviceName:o,label:n,profilePicture:a});return React.createElement("li",null,this.maybeDisplayLinkedInNotice(),React.createElement("div",{className:d.Z["connection-container"]},i))}}const m=(0,s.withSelect)((e=>({failedConnections:e(l.Eg).getFailedConnections(),mustReauthConnections:e(l.Eg).getMustReauthConnections()})))(p)},1922:(e,t,n)=>{"use strict";n.d(t,{F:()=>d});var r=n(6895),a=n(13419),s=n(55609),o=n(69307),i=n(65736),l=n(81050),c=n(75323),u=n(62578);const __=i.__,d=()=>{const{shouldShowAdvancedPlanNudge:e}=(0,l.usePublicizeConfig)(),{dismissNotice:t,shouldShowNotice:n,NOTICES:i}=(0,c.Z)(),d=(0,o.useCallback)((()=>t(i.advancedUpgradeEditor,7776e3)),[t,i]);return e&&n(i.advancedUpgradeEditor)&&React.createElement(u.Z,{onDismiss:d,type:"highlight"},(0,o.createInterpolateElement)(__("Need more reach? Unlock custom media sharing with the <upgradeLink>Advanced Plan</upgradeLink>","jetpack"),{upgradeLink:React.createElement(s.ExternalLink,{href:(0,r.Z)("jetpack-social-advanced-site-checkout",{site:(0,a.lQ)(),query:"redirect_to="+encodeURIComponent(window.location.href)})})}))}},87029:(e,t,n)=>{"use strict";n.d(t,{w:()=>d});var r=n(13419),a=n(55609),s=n(69307),o=n(65736),i=n(81050),l=n(75323),c=n(62578),u=n(75631);const __=o.__,d=()=>{const{dismissNotice:e,shouldShowNotice:t,NOTICES:n}=(0,l.Z)(),o=(0,s.useCallback)((()=>e(n.autoConversion)),[e,n]),{adminUrl:d,jetpackSharingSettingsUrl:p}=(0,i.usePublicizeConfig)();return!(0,r.Wp)()&&t(n.autoConversion)&&React.createElement(c.Z,{type:"warning",actions:[React.createElement(a.Button,{onClick:o,key:"dismiss",variant:"primary"},__("Got it","jetpack")),React.createElement(a.Button,{className:u.Z["change-settings-button"],key:"change-settings",href:d||p,target:"_blank",rel:"noreferrer noopener"},__("Change settings","jetpack"))]},__("When your post is published, the selected image will be converted for maximum compatibility across your connected social networks.","jetpack"))}},63503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(55609),a=n(69307),s=n(65736),o=n(81050),i=n(37568),l=n(62578),c=n(49285);const _n=s._n,u=()=>{const{connections:e}=(0,i.Z)(),t=e.filter((e=>(0,c.A)(e,"broken"))),{connectionsAdminUrl:n}=(0,o.usePublicizeConfig)();return t.length>0&&React.createElement(l.Z,{type:"error"},(0,a.createInterpolateElement)(_n("One of your social connections is broken. Reconnect them on the <fixLink>connection management</fixLink> page.","Some of your social connections are broken. Reconnect them on the <fixLink>connection management</fixLink> page.",t.length,"jetpack"),{fixLink:React.createElement(r.ExternalLink,{href:n})}))}},75457:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(14085),a=n(37568),s=n(4277),o=n(69709),i=n(75631),l=n(28155);const c=()=>{const{connections:e,toggleById:t}=(0,a.Z)(),{canBeTurnedOn:n,shouldBeDisabled:c}=(0,l.z)(),{needsUserConnection:u}=(0,r.Z)();return React.createElement("ul",{className:i.Z["connections-list"]},e.map((e=>{const{display_name:r,id:a,service_name:o,profile_picture:i,connection_id:l}=e,u=l||a;return React.createElement(s.Z,{disabled:c(e),enabled:n(e)&&e.enabled,key:u,id:u,label:r,name:o,toggleConnection:t,profilePicture:i})})),u?null:React.createElement("li",null,React.createElement(o.Z,null)))}},82356:(e,t,n)=>{"use strict";n.d(t,{H:()=>c});var r=n(55609),a=n(65736),s=n(14085),o=n(37568),i=n(75631),l=n(28155);const _n=a._n;function c(){const{enabledConnections:e}=(0,o.Z)(),{isPublicizeEnabled:t}=(0,s.Z)(),{canBeTurnedOn:n,shouldBeDisabled:c}=(0,l.z)(),u=e.filter((e=>n(e)&&!c(e)));return u.length&&t?React.createElement(r.PanelRow,null,React.createElement("p",{className:i.Z["enabled-connections-notice"]},(0,a.sprintf)(/* translators: %d: number of connections */ | |
| 10 | -_n("This post will be shared to %d connection.","This post will be shared to %d connections.",u.length,"jetpack"),u.length))):null}},84703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Q});var r=n(90526),a=n(55609),s=n(9818),o=n(69307),i=n(65736),l=n(81050),c=n(88219),u=n(75323),d=n(39118),p=n(75263),m=n(98811),g=n(46791),A=n(6230),h=n(96672),E=n(37568),f=n(23177),b=n(95766),C=n(1922),v=n(87029),k=n(63503),B=n(75457),y=n(82356),w=n(50523),_=n(27730),I=n(63411),j=n(75631),x=n(22124),S=n(45334);const __=i.__;function Q(){const{connections:e,hasConnections:t,hasEnabledConnections:n}=(0,E.Z)(),i=(0,h.Z)(),{isEnabled:Q}=(0,p.Z)(),{shouldShowNotice:N,NOTICES:P}=(0,u.Z)(),{isPublicizeEnabled:T,isPublicizeDisabledBySitePlan:R,connectionsAdminUrl:Z,needsUserConnection:L,userConnectionUrl:M}=(0,l.usePublicizeConfig)(),{numberOfSharesRemaining:D,useAdminUiV1:F}=(0,s.useSelect)((e=>{const t=e(f.h);return{numberOfSharesRemaining:t.numberOfSharesRemaining(),useAdminUiV1:t.useAdminUiV1()}}),[]),z=R?a.Disabled:o.Fragment,O=(0,s.useSelect)((e=>e(f.h).isAutoConversionEnabled()),[]),{attachedMedia:U,shouldUploadAttachedMedia:H}=(0,c.Z)(),V=(0,d.Z)(),q=U[0]?.id||V,{validationErrors:G,isConvertible:$}=(0,g.ZP)(e,(0,m.Z)(q)[0],{isSocialImageGeneratorEnabledForPost:Q,shouldUploadAttachedMedia:H}),W=O&&$,J=(0,o.useMemo)((()=>Object.keys(G)),[G]),Y=0!==D&&J.length>0,{refreshAutoConversionSettings:K}=(0,A.Z)();return W&&Y&&q&&N(P.autoConversion)&&K(),i(),React.createElement(z,null,t?React.createElement(React.Fragment,null,React.createElement(a.PanelRow,null,React.createElement(B.Z,null)),React.createElement(y.H,null),React.createElement(_.z,null),React.createElement(k.Z,null),React.createElement(x.x,null),W&&Y&&q&&React.createElement(v.w,null),Y&&(Object.values(G).includes(g.rs)?React.createElement(w.x,null):React.createElement(S.w,{connectionsCount:e.length,invalidConnectionIdsCount:J.length,shouldAutoConvert:W}))):null,React.createElement(a.PanelRow,null,L?React.createElement("p",null,__("You must connect your WordPress.com account to be able to add social media connections.","jetpack")," ",React.createElement("a",{href:M},__("Connect now","jetpack"))):t?null:React.createElement("p",null,React.createElement("span",{className:j.Z["no-connections-text"]},__("Sharing is disabled because there are no social media accounts connected.","jetpack")),F?React.createElement(b.A,{trigger:React.createElement(r.Z,{variant:"secondary",size:"small"},__("Connect an account","jetpack"))}):React.createElement(a.ExternalLink,{href:Z},__("Connect an account","jetpack")))),!R&&React.createElement(o.Fragment,null,T&&n&&React.createElement(I.X,null),React.createElement(C.F,null)))}},50523:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(6895),a=n(55609),s=n(65736),o=n(81050),i=n(62578);const __=s.__,l=()=>{const{isEnhancedPublishingEnabled:e}=(0,o.usePublicizeConfig)();return e?React.createElement(i.Z,{type:"warning"},__("To share to Instagram, add an image/video, or enable Social Image Generator.","jetpack"),React.createElement("br",null),React.createElement(a.ExternalLink,{href:(0,r.Z)("jetpack-social-share-to-instagram")},__("Learn more","jetpack"))):React.createElement(i.Z,{type:"warning"},__("You need a featured image to share to Instagram.","jetpack"),React.createElement("br",null),React.createElement(a.ExternalLink,{href:(0,r.Z)("jetpack-social-share-to-instagram")},__("Learn more","jetpack")))}},27730:(e,t,n)=>{"use strict";n.d(t,{z:()=>E});var r=n(88275),a=n(45106),s=n(69665),o=n(6895),i=n(13419),l=n(55609),c=n(9818),u=n(65736),d=n(34431),p=n(23177),m=n(32637),g=n(27941),A=n(75631),h=n(6785);const __=u.__,_x=u._x,E=()=>{const{showShareLimits:e,hasPaidFeatures:t}=(0,c.useSelect)((e=>{const t=e(p.h);return{showShareLimits:t.showShareLimits(),hasPaidFeatures:t.hasPaidFeatures()}}),[]),{noticeType:n,usedCount:u,scheduledCount:E,remainingCount:f}=(0,d.U)(),b=(0,h.L)();return(0,i.Wp)()||(0,i.Ug)()||!e&&t?null:React.createElement(l.PanelRow,null,React.createElement("div",{className:A.Z["share-count-info"]},React.createElement(r.ZP,null,e?React.createElement(React.Fragment,null,React.createElement("div",{className:A.Z["title-container"]},React.createElement(a.ZP,{variant:"body-extra-small",className:A.Z["auto-share-title"]},__("Auto-shares this cycle","jetpack")),React.createElement(s.Z,{inline:!1,shift:!0,iconSize:16,placement:"top-end"},React.createElement(a.ZP,{variant:"body-small"},__("As a free Jetpack Social user, you get 30 shares within every rolling 30-day window.","jetpack")))),React.createElement(g.p,null),React.createElement(m.r,{usedCount:u,scheduledCount:E,remainingCount:f,className:A.Z["bar-wrapper"],noticeType:n})):null,"default"!==n||t?null:React.createElement(l.Button,{key:"upgrade",variant:"link",onClick:b,href:(0,o.Z)("jetpack-social-basic-plan-block-editor",{site:(0,i.lQ)(),query:"redirect_to="+encodeURIComponent(window.location.href)})},_x("Unlock enhanced media sharing features.","Call to action to buy a new plan","jetpack")))))}},27941:(e,t,n)=>{"use strict";n.d(t,{p:()=>p});var r=n(6895),a=n(13419),s=n(55609),o=n(9818),i=n(65736),l=n(34431),c=n(23177),u=n(62578),d=n(6785);const _x=i._x,p=()=>{const e=(0,o.useSelect)((e=>e(c.h).showShareLimits()),[]),t=(0,d.L)(),{message:n}=(0,l.U)();return e&&n?React.createElement(u.Z,{type:"warning",actions:[React.createElement(s.Button,{key:"upgrade",variant:"primary",onClick:t,href:(0,r.Z)("jetpack-social-basic-plan-block-editor",{site:(0,a.lQ)(),query:"redirect_to="+encodeURIComponent(window.location.href)})},_x("Upgrade","Call to action to buy a new plan","jetpack"))]},n):null}},63411:(e,t,n)=>{"use strict";n.d(t,{X:()=>p});var r=n(65736),a=n(81050),s=n(88219),o=n(39118),i=n(75263),l=n(48751),c=n(29753),u=n(71961),d=n(53513);const __=r.__,p=()=>{const{message:e,updateMessage:t,maxLength:n}=(0,l.Z)(),{isEnabled:r}=(0,i.Z)(),{isEnhancedPublishingEnabled:p,isSocialImageGeneratorAvailable:m,isJetpackSocialNote:g}=(0,a.usePublicizeConfig)(),A=m&&r,{attachedMedia:h}=(0,s.Z)(),E=(0,o.Z)(),f=!(h[0]?.id||E)&&!r;return g&&p?React.createElement(d.Z,{disabled:f,isCustomMediaAvailable:!1}):React.createElement(React.Fragment,null,React.createElement(u.Z,{maxLength:n,onChange:t,message:e}),p&&React.createElement(c.Z,{disabled:A,socialPostDisabled:f,disabledNoticeMessage:A?__("It is not possible to add an image or video when Social Image Generator is enabled.","jetpack"):null}))}},22124:(e,t,n)=>{"use strict";n.d(t,{x:()=>u});var r=n(55609),a=n(69307),s=n(65736),o=n(81050),i=n(37568),l=n(62578),c=n(49285);const __=s.__,u=()=>{const{connections:e}=(0,i.Z)(),{connectionsAdminUrl:t}=(0,o.usePublicizeConfig)();return e.filter((e=>(0,c.A)(e,"unsupported"))).length>0&&React.createElement(l.Z,{type:"error"},(0,a.createInterpolateElement)(__("Twitter is not supported anymore. <moreInfo>Learn more here</moreInfo>.","jetpack"),{moreInfo:React.createElement(r.ExternalLink,{href:t})}))}},6785:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(9818),a=n(12238),s=n(69307);function o(){const{isEditedPostDirty:e}=(0,r.useSelect)(a.store,[]),{autosave:t}=(0,r.useDispatch)(a.store);return(0,s.useCallback)((async n=>{if(!(n.target instanceof HTMLAnchorElement))return;const r=n.target.getAttribute("target");e()&&!r&&(n.preventDefault(),await t(),window.location.href=n.target.href),r&&(n.preventDefault(),window.open(n.target.href,r,"noreferrer"))}),[t,e])}},28155:(e,t,n)=>{"use strict";n.d(t,{z:()=>g});var r=n(9818),a=n(69307),s=n(99196),o=n(81050),i=n(88219),l=n(39118),c=n(75263),u=n(98811),d=n(46791),p=n(37568),m=n(23177);const g=()=>{const{connections:e,enabledConnections:t}=(0,p.Z)(),{isPublicizeEnabled:n,isPublicizeDisabledBySitePlan:g}=(0,o.usePublicizeConfig)(),{isEnabled:A}=(0,c.Z)(),{showShareLimits:h,numberOfSharesRemaining:E}=(0,r.useSelect)((e=>({showShareLimits:e(m.h).showShareLimits(),numberOfSharesRemaining:e(m.h).numberOfSharesRemaining()})),[]),{attachedMedia:f,shouldUploadAttachedMedia:b}=(0,i.Z)(),C=(0,l.Z)(),v=f[0]?.id||C,{validationErrors:k,isConvertible:B}=(0,d.ZP)(e,(0,u.Z)(v)[0],{isSocialImageGeneratorEnabledForPost:A,shouldUploadAttachedMedia:b}),y=(0,r.useSelect)((e=>e(m.h).isAutoConversionEnabled()),[])&&B,w=h&&E<=t.length,_=(0,a.useCallback)((e=>{const{id:t,is_healthy:n,connection_id:r}=e,a=r||t,s=!1!==n,o=void 0!==k[a]&&!y,i=k[a]===d.rs;return s&&!o&&!i}),[y,k]),I=(0,a.useCallback)((e=>{const{enabled:t,toggleable:r}=e;return!n||!t&&r&&w||!_(e)}),[_,n,w]),j=(0,a.useCallback)((e=>!g&&_(e)),[_,g]);return(0,s.useMemo)((()=>({shouldBeDisabled:I,canBeTurnedOn:j})),[I,j])}},49285:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(e,t)=>!1===e.is_healthy&&t===(e.error_code??"broken")},45334:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(6895),a=n(55609),s=n(65736),o=n(62578);const __=s.__,_n=s._n,i=({connectionsCount:e,invalidConnectionIdsCount:t,shouldAutoConvert:n})=>n?null:React.createElement(o.Z,{type:"warning"},React.createElement("p",null,e===t?_n("The selected media cannot be shared to this platform.","The selected media cannot be shared to any of these platforms.",e,"jetpack"):_n("The selected media cannot be shared to one of these platforms.","The selected media cannot be shared to some of these platforms.",t,"jetpack")),React.createElement(a.ExternalLink,{href:(0,r.Z)("jetpack-social-media-support-information")},__("Troubleshooting tips","jetpack")))},9888:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>b});var r=n(88275),a=n(86989),s=n.n(a),o=n(55609),i=n(9818),l=n(12238),c=n(65736),u=n(65235),d=n.n(u),p=n(99196),m=n.n(p),g=n(75263),A=n(58487),h=n(90785);const __=c.__,_x=c._x,E="featured-image-still-loading",f=(e,t,n,r)=>{if("none"===e||"custom"===e&&!t||"featured"===(e??"featured")&&!n)return null;const a=r("custom"===e?t:n);return a?(e=>e?.media_details?.sizes?.large?.source_url||e?.source_url)(a):E};function b({shouldDebounce:e=!0,...t}){const[n,a]=(0,p.useState)(null),[c,u]=(0,p.useState)(!0),{customText:b,imageType:C,imageId:v,template:k,setToken:B}={...(0,g.Z)(),...t},{title:y,imageUrl:w}=(0,i.useSelect)((e=>{const t=e(l.store).getEditedPostAttribute("featured_media");return{title:e(l.store).getEditedPostAttribute("title"),imageUrl:f(C,v,t,e("core").getMedia)}})),_=(0,p.useMemo)((()=>b||y||" "),[b,y]),I=(0,p.useRef)(_),j=(0,p.useRef)(n);(0,p.useEffect)((()=>{j.current=n})),(0,p.useEffect)((()=>{const t=setTimeout((async()=>{if(u(!0),w===E)return;const e=await s()({path:"/jetpack/v4/social-image-generator/generate-preview-token",method:"POST",data:{text:_,image_url:w,template:k}});B?.(e);const t=(0,h.t)(e);t!==j.current?a(t):u(!1)}),_!==I.current&&e?1500:0);return()=>{clearTimeout(t),I.current=_}}),[_,k,w]);const x=(0,p.useCallback)((()=>{u(!1)}),[]);return m().createElement(r.ZP,null,m().createElement(o.BaseControl,{label:_x("Preview","Heading for the generated preview image","jetpack")},m().createElement("div",{className:A.Z.container},m().createElement("img",{className:d()({[A.Z.hidden]:c}),src:n,alt:__("Generated preview","jetpack"),onLoad:x}),c&&m().createElement(o.Spinner,{"data-testid":"spinner"}))))}},90785:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var r=n(6895);function a(e){return e?(0,r.Z)("sigenerate",{query:`t=${e}`}):""}},15805:(e,t,n)=>{"use strict";n.d(t,{Y:()=>m});var r=n(60068),a=n(90526),s=n(55609),o=n(9818),i=n(69307),l=n(65736),c=n(23177),u=n(66475),d=n(31182);const __=l.__,_x=l._x;function p({label:e,profile_picture:t}){return React.createElement("div",{className:d.Z["account-info"]},t?React.createElement("img",{className:d.Z["profile-pic"],src:t,alt:e}):null,React.createElement("span",null,e))}function m({keyringResult:e,onComplete:t,isAdmin:n}){const l=(0,u.i)(),{existingConnections:m,isCreatingConnection:g}=(0,o.useSelect)((e=>{const t=e(c.h);return{existingConnections:t.getConnections(),isCreatingConnection:t.isCreatingConnection()}}),[]),{createErrorNotice:A}=(0,r._)(),h=l.find((t=>t.ID===e.service)),E=(0,i.useCallback)((e=>m.some((t=>t.service_name===h?.ID&&t.external_id===e))),[m,h.ID]),f=(0,i.useMemo)((()=>{const t=[],n=[];if(!h)return{connected:t,not_connected:n};const r=[];if(h.external_users_only||r.push({label:e.external_display,value:e.external_ID,profile_picture:e.external_profile_picture}),h.multiple_external_user_ID_support&&e.additional_external_users?.length)for(const t of e.additional_external_users)r.push({label:t.external_name,value:t.external_ID,profile_picture:t.external_profile_picture});for(const e of r)E(e.value)?t.push(e):n.push(e);return{connected:t,not_connected:n}}),[E,e,h]),{createConnection:b}=(0,o.useDispatch)(c.h),C=(0,i.useCallback)((async n=>{n.preventDefault(),n.stopPropagation();const r=n.target,a=new FormData(r),s=a.get("external_user_ID");if(!s)return void A(__("Please select an account to connect.","jetpack"));const o={external_user_ID:h.multiple_external_user_ID_support?s:void 0,keyring_connection_ID:e.ID,shared:"1"===a.get("shared")||void 0};await b(o),t()}),[b,A,e.ID,t,h.multiple_external_user_ID_support]);return React.createElement("section",{className:d.Z.confirmation},f.not_connected.length?React.createElement("div",null,React.createElement("p",{className:d.Z["header-text"]},__("Select the account you'd like to connect. All your new blog posts will be automatically shared to this account. You'll be able to change this option in the editor sidebar when you're writing a post.","jetpack")),React.createElement("form",{className:d.Z.form,onSubmit:C,id:"connection-confirmation-form"},React.createElement("div",{className:d.Z["accounts-list"]},f.not_connected.map(((e,t)=>React.createElement("label",{key:e.value,className:d.Z["account-label"],"aria-required":!0},React.createElement("input",{type:"radio",name:"external_user_ID",value:e.value,defaultChecked:0===t,className:d.Z["account-input"],required:!0}),React.createElement(p,{label:e.label,profile_picture:e.profile_picture}))))),n?React.createElement(s.BaseControl,{id:"mark-connection-as-shared",help:`${__("If enabled, the connection will be available to all administrators, editors, and authors.","jetpack")} ${__("You can change this later.","jetpack")}`},React.createElement(s.__experimentalHStack,{justify:"flex-start",spacing:3},React.createElement("span",null,React.createElement("input",{type:"checkbox",id:"mark-connection-as-shared",name:"shared",value:"1"})),React.createElement(s.FlexBlock,{as:"label",htmlFor:"mark-connection-as-shared"},__("Mark the connection as shared","jetpack")))):null,React.createElement("input",{type:"hidden",name:"keyring_connection_ID",value:e.ID}))):React.createElement("p",{className:d.Z["header-text"]},f.connected.length?_x("No more accounts/pages found.","Message shown when there are no connections found to connect","jetpack"):__("No accounts/pages found.","jetpack")),f.connected.length?React.createElement("section",null,React.createElement("h3",null,__("Already connected","jetpack")),React.createElement("ul",null,f.connected.map(((e,t)=>React.createElement("li",{key:e.label+t},React.createElement(p,{label:e.label,profile_picture:e.profile_picture})))))):null,React.createElement("div",{className:d.Z["submit-wrap"]},React.createElement(a.Z,{variant:"secondary",onClick:t},__("Cancel","jetpack")),f.not_connected.length?React.createElement(a.Z,{form:"connection-confirmation-form",type:"submit",disabled:g,isLoading:g},g?_x("Connecting…","Connecting a social media account","jetpack"):__("Confirm","jetpack")):null))}},95766:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(32054),a=n(88275),s=n(55609),o=n(37798),i=n(9818),l=n(69307),c=n(65736),u=n(65235),d=n.n(u),p=n(23177),m=n(5803),g=n(15805),A=n(16845);const __=c.__,_x=c._x,h=({onCloseModal:e})=>{const{keyringResult:t}=(0,i.useSelect)((e=>{const{getKeyringResult:t}=e(p.h);return{keyringResult:t()}}),[]),{setKeyringResult:n}=(0,i.useDispatch)(p.h),[a]=(0,r.Z)("sm"),c=(0,l.useCallback)((()=>{n(null),e?.()}),[e,n]),u=Boolean(t?.ID),h=u?__("Connection confirmation","jetpack"):_x("Manage Jetpack Social connections","","jetpack"),E=(0,i.useSelect)((e=>e(o.store).canUser("update","settings")),[]);return React.createElement(s.Modal,{className:d()(A.Z.modal,{[A.Z.small]:a}),onRequestClose:c,title:h},u?React.createElement(g.Y,{keyringResult:t,onComplete:c,isAdmin:E}):React.createElement(m.v,null))};function E({trigger:e}){const[t,n]=(0,l.useState)(!1),{keyringResult:r}=(0,i.useSelect)((e=>({keyringResult:e(p.h).getKeyringResult()})),[]),s=(0,l.useCallback)((()=>{n(!1)}),[]),o=(0,l.useCallback)((()=>{n(!0)}),[]),c=t||r?.ID,u=(0,l.cloneElement)(e,{onClick:o});return React.createElement(a.ZP,{targetDom:document.body},u,c?React.createElement(h,{onCloseModal:s}):null)}},3176:(e,t,n)=>{"use strict";n.d(t,{u:()=>d});var r=n(88275),a=n(45106),s=n(69665),o=n(55609),i=n(65736),l=n(34607),c=n(37548),u=n(42911);const __=i.__;function d(e){return React.createElement(r.ZP,null,React.createElement("div",{className:u.Z.wrapper},React.createElement(o.Flex,{align:"start",justify:"start"},React.createElement(a.ZP,{variant:"body-extra-small",className:u.Z.title},__("Manual sharing","jetpack")),React.createElement(s.Z,{inline:!1,shift:!0,iconSize:16,placement:"top-end"},React.createElement(c.T,e))),React.createElement(l.n,{buttonStyle:"icon"})))}},37548:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(45106),a=n(6895),s=n(55609),o=n(65736);const __=o.__;function i({...e}){return React.createElement(r.ZP,e,__('Just tap the social network or "Copy to Clipboard" icon, and we\'ll format your content for sharing.',"jetpack")," ",React.createElement(s.ExternalLink,{href:(0,a.Z)("jetpack-social-manual-sharing-help")},__("Learn more","jetpack")))}},88649:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(90526),a=n(88275),s=n(52175),o=n(55609),i=n(69307),l=n(65736),c=n(61074),u=n(6163),d=n(65235),p=n.n(d),m=n(46791),g=n(1795),A=n(13858),h=n(69339);const __=l.__,E=e=>t=>{t.currentTarget.focus(),e()};function f({buttonLabel:e,subTitle:t,mediaId:n=null,mediaDetails:l={},onChange:d,wrapperClassName:f,allowedMediaTypes:b=null}){const{mediaData:{width:C,height:v,sourceUrl:k}={},metaData:{mime:B,length:y=null}={},previewData:{width:w,height:_,sourceUrl:I}={}}=l,j=!(k&&C&&v&&B),x=(0,i.useCallback)((()=>d(null)),[d]),S=(0,i.useCallback)((e=>{d(e)}),[d]),Q=(0,i.useCallback)((e=>{const t=(0,m.Wv)(B);return t&&!y?null:React.createElement("div",{className:p()(h.Z["preview-wrapper"],f)},React.createElement("button",{className:h.Z.remove,onClick:x},React.createElement(o.VisuallyHidden,null,__("Remove media","jetpack")),React.createElement(c.Z,{icon:u.Z})),React.createElement("button",{className:h.Z.preview,onClick:E(e),"data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},t?React.createElement(A.Z,{sourceUrl:k,mime:B,duration:y}):React.createElement(o.ResponsiveWrapper,{naturalWidth:w||C,naturalHeight:_||v,isInline:!0},React.createElement("img",{src:I||k,alt:"",className:h.Z["preview-image"]}))))}),[v,y,B,x,_,I,w,k,C,f]),N=(0,i.useCallback)((a=>React.createElement("div",{className:h.Z.container},n?React.createElement(React.Fragment,null,React.createElement("button",{className:h.Z["remove-loading"],onClick:x},React.createElement(o.VisuallyHidden,null,__("Remove media","jetpack")),React.createElement(c.Z,{icon:u.Z})),React.createElement(o.Spinner,{"data-testid":"spinner"})):React.createElement(React.Fragment,null,React.createElement(r.Z,{variant:"secondary",size:"small",className:h.Z.preview,onClick:E(a),"data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},e),t&&React.createElement("span",null,t)))),[e,n,x,t]),P=(0,i.useCallback)((({open:e})=>n&&!j?Q(e):N(e)),[n,j,Q,N]);return React.createElement(a.ZP,null,React.createElement(s.MediaUploadCheck,null,React.createElement(s.MediaUpload,{allowedTypes:b??g.uo,title:e,onSelect:S,render:P,value:n})))}},29753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(88275),a=n(6895),s=n(55609),o=n(69307),i=n(65736),l=n(99196),c=n.n(l),u=n(88219),d=n(98811),p=n(88649),m=n(53513),g=n(45811);const __=i.__,A=__("Choose Media","jetpack");function h({disabled:e=!1,disabledNoticeMessage:t="",CustomNotice:n=null,socialPostDisabled:i=!1}){const{attachedMedia:h,updateAttachedMedia:E}=(0,u.Z)(),[f]=(0,d.Z)(h[0]?.id),b=(0,o.useCallback)((e=>{if(e){const{id:t,url:n,mime:r}=e;E([{id:t,url:n,type:r}])}else E([])}),[E]),C=e?s.Disabled:l.Fragment,v=e?{className:g.Z.disabled,"data-testid":"disabled"}:{};return c().createElement(r.ZP,null,c().createElement(s.BaseControl,{label:__("Media","jetpack"),className:g.Z.wrapper},n||(t?c().createElement(s.Notice,{className:g.Z.notice,isDismissible:!1,status:"warning"},c().createElement("p",{"data-testid":"notice"},t)):c().createElement("p",{className:g.Z.subtitle},__("Choose a visual to accompany your post.","jetpack"))),c().createElement(C,v,c().createElement(p.Z,{buttonLabel:A,subTitle:__("Add an image or video","jetpack"),mediaId:h[0]?.id,mediaDetails:f,onChange:b}),c().createElement(s.ExternalLink,{href:(0,a.Z)("jetpack-social-media-support-information")},__("Learn photo and video best practices","jetpack")))),c().createElement(m.Z,{disabled:i}))}},71961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(55609),a=n(65736);const __=a.__,_n=a._n;function s({message:e="",onChange:t,disabled:n,maxLength:s}){const o=s-e.length;return React.createElement(r.TextareaControl,{value:e,label:__("Message","jetpack"),onChange:t,disabled:n,maxLength:s,placeholder:__("Write a message for your audience here.","jetpack"),rows:4,help:(0,a.sprintf)(/* translators: placeholder is a number. */ | |
| 11 | -_n("%d character remaining","%d characters remaining",o,"jetpack"),o)})}},62578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(55609),a=n(65736),s=n(61074),o=n(6163),i=n(65235),l=n.n(i),c=n(25162),u=n.n(c),d=n(82283);const __=a.__,p=({children:e,type:t="default",actions:n=[],onDismiss:a})=>{const i=l()(d.Z.notice,d.Z[`notice--${t}`]);return React.createElement("div",{className:i},React.createElement("div",{className:d.Z.content}," ",e," "),a&&React.createElement("button",{className:d.Z.dismiss,onClick:a},React.createElement(r.VisuallyHidden,null,__("Dismiss notice","jetpack")),React.createElement(s.Z,{icon:o.Z})),n&&n.length>0&&React.createElement("div",{className:d.Z.actions},n.map((e=>e))))};p.propTypes={children:u().node.isRequired,type:u().oneOf(["default","highlight","warning","error"]),actions:u().arrayOf(u().element),onDismiss:u().func};const m=p},8714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(55609),a=n(9818),s=n(12238),o=n(69307),i=n(65736),l=n(14085),c=n(86419),u=n(37568),d=n(49021),p=n(84703),m=n(3176),g=n(91474),A=n(23761);const __=i.__,h=({prePublish:e,children:t})=>{const{refresh:n,hasConnections:i,hasEnabledConnections:h}=(0,u.Z)(),E=(0,a.useSelect)((e=>e(s.store).isCurrentPostPublished()),[]),{isPublicizeEnabled:f,hidePublicizeFeature:b,togglePublicizeFeature:C}=(0,l.Z)();(0,c.M1)((function(){h&&n()}),[h,n]);const v=e?o.Fragment:r.PanelBody,k=e?{}:{title:__("Share this post","jetpack"),className:A.Z.panel};return React.createElement(v,k,t,!b&&React.createElement(o.Fragment,null,!E&&React.createElement(r.ToggleControl,{label:f?__("Share when publishing","jetpack"):__("Sharing is disabled","jetpack",0),onChange:C,checked:f&&i,disabled:!i}),React.createElement(d.Z,null),React.createElement(p.Z,null),React.createElement(g.o,null)),E&&React.createElement(m.u,null))}},91750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(88275),a=n(13419),s=n(9818),o=n(72067),i=n(12238),l=n(65736),c=n(37548),u=n(34607),d=n(45078);const __=l.__;function p(){const{isCurrentPostPublished:e}=(0,s.useSelect)((e=>e(i.store)),[]);return e()?React.createElement(o.PluginPostPublishPanel,{initialOpen:!0,title:__("Manual sharing","jetpack"),id:"publicize-manual-sharing",icon:React.createElement(a.Pm,null)},React.createElement(r.ZP,null,React.createElement(c.T,{className:d.Z.description,variant:"body-small"}),React.createElement(u.n,null))):null}},52403:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(6895),a=n(13419),s=n(86989),o=n.n(s),i=n(72067),l=n(69307),c=n(14085),u=n(86419),d=n(37568),p=n(19649);const m=()=>{const[e,t]=(0,l.useState)((0,a.Pb)()?.social?.reviewRequestDismissed??!0),[n,s]=(0,l.useState)(!1),{hasEnabledConnections:m}=(0,d.Z)(),{isPublicizeEnabled:g,isPostAlreadyShared:A}=(0,c.Z)();(0,u.e3)((()=>{s(!A&&g&&m)}),[A,m,g]);const h=(0,l.useCallback)((()=>{const e=(0,a.Pb)()?.social?.dismissReviewRequestPath??null;o()({path:e,method:"POST",data:{dismissed:!0}}).catch((e=>{throw e})),t(!0)}),[]);return e||!n?null:React.createElement(i.PluginPostPublishPanel,{id:"publicize-title"},React.createElement(p.Z,{href:(0,r.Z)("jetpack-social-plugin-reviews"),onClose:h}))}},77106:(e,t,n)=>{"use strict";n(9818),n(23177)},19649:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(88275),a=n(90526),s=n(13419),o=n(65736),i=n(99196),l=n(2097);const __=o.__,c=({href:e,onClose:t})=>{const{recordEvent:n}=(0,s.z$)({pageViewEventName:"social_plugin_review_prompt",pageViewNamespace:"jetpack",pageViewSuffix:"view"}),c=(0,i.useCallback)((()=>{n("jetpack_social_plugin_review_prompt_new_review_click")}),[n]),u=(0,i.useCallback)((()=>{n("jetpack_social_plugin_review_prompt_dismiss_click"),t()}),[n,t]);return React.createElement(r.ZP,null,React.createElement("div",{className:l.Z.prompt},React.createElement("h2",{className:l.Z.header},/* translators: %s is the celebration emoji */ /* translators: %s is the celebration emoji */ | |
| 12 | -(0,o.sprintf)(__("Presto! %s","jetpack"),String.fromCodePoint(127881))),React.createElement("p",null,__("Just like that, Jetpack Social has shared your post to your connected social accounts.","jetpack")),React.createElement("p",null,__("Please leave a review to let others know how easy getting your posts on social media can be!","jetpack")),React.createElement("div",{className:l.Z.buttons},React.createElement(a.Z,{onClick:c,isExternalLink:!0,href:e,className:l.Z.button},__("Leave a Review","jetpack")),React.createElement(a.Z,{onClick:u,variant:"link",className:l.Z.button},__("Dismiss","jetpack")))))}},26211:(e,t,n)=>{"use strict";n.d(t,{p:()=>p});var r=n(90526),a=n(9818),s=n(65736),o=n(65235),i=n.n(o),l=n(99196),c=n(23177),u=n(90934),d=n(58300);const __=s.__,_x=s._x;function p({service:e,isSmall:t,onSubmit:n,displayInputs:s,hasConnections:o,buttonLabel:p}){const{setKeyringResult:m}=(0,a.useDispatch)(c.h),g=(0,l.useCallback)((e=>m(e)),[m]),A=(0,d.N)({service:e,onConfirm:g}),h=(0,l.useCallback)((e=>{if(e.preventDefault(),e.stopPropagation(),n)return n();const t=new FormData(e.target);A(t)}),[n,A]);return React.createElement("form",{className:i()(u.Z["connect-form"],{[u.Z.small]:t}),onSubmit:h},s?React.createElement(React.Fragment,null,"mastodon"===e.ID?React.createElement("input",{required:!0,type:"text",name:"instance","aria-label":__("Mastodon username","jetpack"),placeholder:"@mastodon@mastodon.social"}):null):null,React.createElement(r.Z,{variant:o?"secondary":"primary",type:"submit",className:u.Z["connect-button"]},p||(o?_x("Connect more","","jetpack"):__("Connect","jetpack"))))}},86782:(e,t,n)=>{"use strict";n.d(t,{v:()=>d});var r=n(69665),a=n(45106),s=n(65736),o=n(62878),i=n(25893),l=n(20841),c=n(43876),u=n(90934);const __=s.__,d=({connection:e,service:t,isAdmin:n})=>{return React.createElement("div",{className:u.Z["service-connection"]},React.createElement("div",null,e.profile_picture?React.createElement("img",{className:u.Z["profile-pic"],src:e.profile_picture,alt:e.display_name}):React.createElement(t.icon,{iconSize:40})),React.createElement("div",{className:u.Z["connection-details"]},React.createElement(o.d,{connection:e}),"broken"===(s=e).status?React.createElement(i.Q,{connection:s,service:t}):n?React.createElement("div",{className:u.Z["mark-shared-wrap"]},React.createElement(c.l,{connection:s}),React.createElement(r.Z,{placement:"top",inline:!1,shift:!0},__("If enabled, the connection will be available to all administrators, editors, and authors.","jetpack"))):s.can_disconnect?null:React.createElement(a.ZP,{className:u.Z.description},__("This connection is added by a site administrator.","jetpack"))),React.createElement("div",{className:u.Z["connection-actions"]},React.createElement(l.c,{connection:e,isDestructive:!1,variant:"tertiary",buttonClassName:u.Z.disconnect})));var s}},51770:(e,t,n)=>{"use strict";n.d(t,{L:()=>p});var r=n(32054),a=n(55609),s=n(37798),o=n(9818),i=n(65235),l=n.n(i),c=n(23177),u=n(86782),d=n(90934);function p({service:e,serviceConnections:t}){const[n]=(0,r.Z)("sm"),{deletingConnections:i,updatingConnections:p}=(0,o.useSelect)((e=>{const{getDeletingConnections:t,getUpdatingConnections:n}=e(c.h);return{deletingConnections:t(),updatingConnections:n()}}),[]),m=(0,o.useSelect)((e=>e(s.store).canUser("update","settings")),[]);return t.length?React.createElement("ul",{className:d.Z["service-connection-list"]},t.map((t=>{const n=p.includes(t.connection_id)||i.includes(t.connection_id);return React.createElement("li",{key:t.connection_id},React.createElement(a.Disabled,{isDisabled:n},React.createElement(u.v,{connection:t,service:e,isAdmin:m})))}))):React.createElement("div",{className:l()(d.Z["example-wrapper"],{[d.Z.small]:n})},e.examples.map(((t,n)=>React.createElement("div",{key:e.ID+n,className:d.Z.example},React.createElement(t,null)))))}},87805:(e,t,n)=>{"use strict";n.d(t,{D:()=>g});var r=n(32054),a=n(90526),s=n(55609),o=n(69307),i=n(65736),l=n(61074),c=n(57489),u=n(42229),d=n(26211),p=n(51770),m=n(90934);const __=i.__;function g({service:e,serviceConnections:t}){const[n]=(0,r.Z)("sm"),[g,A]=(0,o.useReducer)((e=>!e),!1),h=g&&"mastodon"===e.ID;return React.createElement("div",{className:m.Z["service-item"]},React.createElement("div",{className:m.Z["service-item-info"]},React.createElement("div",null,React.createElement(e.icon,{iconSize:n?36:48})),React.createElement("div",{className:m.Z["service-basics"]},React.createElement("span",{className:m.Z.title},e.label),n||t.length?null:React.createElement("span",{className:m.Z.description},e.description),t?.length>0?React.createElement("span",{className:m.Z["active-connection"]},t.length>1?(0,i.sprintf)( | |
| 13 | -// translators: %d: Number of connections | |
| 14 | -__("%d connections","jetpack"),t.length):__("Connected","jetpack")):null),React.createElement("div",{className:m.Z.actions},h?null:React.createElement(d.p,{service:e,isSmall:n,onSubmit:e.needsCustomInputs?A:void 0,hasConnections:t.length>0}),React.createElement(a.Z,{size:"small",className:m.Z["learn-more"],variant:"tertiary",onClick:A,"aria-label":__("Learn more","jetpack")},React.createElement(l.Z,{className:m.Z.chevron,icon:g?c.Z:u.Z})))),React.createElement(s.Panel,{className:m.Z["service-panel"]},React.createElement(s.PanelBody,{opened:g,onToggle:A},React.createElement(p.L,{service:e,serviceConnections:t}),"mastodon"===e.ID?React.createElement("div",{className:m.Z["connect-form-wrapper"]},React.createElement(d.p,{service:e,displayInputs:!0,isSmall:!1,buttonLabel:__("Connect","jetpack")})):null)))}},5803:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var r=n(9818),a=n(23177),s=n(87805),o=n(90934),i=n(66475);function l(){const e=(0,i.i)(),t=(0,r.useSelect)((e=>e(a.h).getConnections().reduce(((e,t)=>(e[t.service_name]||(e[t.service_name]=[]),e[t.service_name].push(t),e)),{})),[]);return React.createElement("ul",{className:o.Z.services},e.map((e=>React.createElement("li",{key:e.ID,className:o.Z["service-list-item"]},React.createElement(s.D,{service:e,serviceConnections:t[e.ID]||[]})))))}},58300:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(60068),a=n(9818),s=n(69307),o=n(65736),i=n(23177),l=n(42032);const __=o.__,c=e=>/^@?\b([A-Z0-9_]+)@([A-Z0-9.-]+\.[A-Z]{2,})$/gi.test(e);function u({service:e,onConfirm:t}){const{createErrorNotice:n}=(0,r._)(),o=(0,a.useSelect)((e=>e(i.h).isMastodonAccountAlreadyConnected),[]);return(0,s.useCallback)((r=>{const a=new URL(e.connect_URL);switch(e.ID){case"mastodon":{const e=r.get("instance").toString().trim();if(!c(e))return void n(__("Invalid Mastodon username","jetpack"));if(o?.(e))return void n(__("This Mastodon account is already connected","jetpack"));a.searchParams.set("instance",r.get("instance"));break}}(0,l.requestExternalAccess)(a.toString(),t)}),[n,o,t,e.ID,e.connect_URL])}},66475:(e,t,n)=>{"use strict";n.d(t,{i:()=>h});var r=n(82674),a=n.n(r),s=n(3396),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(40644),d=n(93926),p=n(98611),m=n(44654),g=n(27182),A=n(23177);const __=c.__;function h(){const e=(0,i.useSelect)((e=>e(A.h).getServices().reduce(((e,t)=>({...e,[t.ID]:t})),{})),[]);return[{...e.facebook,icon:e=>React.createElement(s.av,a()({serviceName:"facebook"},e)),description:__("Share to your pages","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,l.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts on your Facebook page.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:u,alt:__("Add Facebook connection","jetpack")})]},{...e["instagram-business"],icon:e=>React.createElement(s.av,a()({serviceName:"instagram"},e)),description:__("Share to your Instagram Business account.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,__("Drive engagement and save time by automatically sharing images to Instagram when you publish blog posts.","jetpack"),React.createElement("div",{className:"instagram-business__requirements"},React.createElement("h4",null,__("Requirements for connecting Instagram:","jetpack")),React.createElement("ol",null,React.createElement("li",null,__("You must have an Instagram Business account.","jetpack")),React.createElement("li",null,__("Your Instagram Business account must be linked to a Facebook page.","jetpack")))),(0,l.createInterpolateElement)(__("<i>When you click “connect” you'll be asked to <strong>log into Facebook</strong>. If your Instagram Business account isn't listed, ensure it's linked to a Facebook page.</i>","jetpack"),{strong:React.createElement("strong",null),i:React.createElement("em",null)}),React.createElement("br",null),React.createElement("br",null),React.createElement(o.ExternalLink,{className:"instagram-business__help-link",href:"https://jetpack.com/redirect/?source=jetpack-social-instagram-business-help"},__("Learn how to convert & link your Instagram account.","jetpack"))),()=>React.createElement("img",{src:d,alt:__("Add Instagram photo","jetpack")})]},{...e.linkedin,icon:e=>React.createElement(s.av,a()({serviceName:"linkedin"},e)),description:__("Share with your LinkedIn community.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,l.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts with your LinkedIn connections.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:p,alt:__("Add LinkedIn connection","jetpack")})]},{...e.nextdoor,icon:e=>React.createElement(s.av,a()({serviceName:"nextdoor"},e)),description:__("Share on communities","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,l.createInterpolateElement)(__("<strong>Connect</strong> with friends, neighbors, and local businesses by automatically sharing your posts to Nextdoor.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:m,alt:__("Add Instagram photo","jetpack")})]},{...e.tumblr,icon:e=>React.createElement(s.av,a()({serviceName:"tumblr-alt"},e)),description:__("Share to your Tumblr blog.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,l.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts to your Tumblr blog.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:g,alt:__("Add Tumblr connection","jetpack")})]},{...e.mastodon,needsCustomInputs:!0,icon:e=>React.createElement(s.av,a()({serviceName:"mastodon"},e)),description:__("Share with your network.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,__("To share to Mastodon please enter your Mastodon username below, then click connect.","jetpack"))]}].filter((e=>Boolean(e.ID)))}},69709:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(9818),a=n(65736),s=n(14085),o=n(23177),i=n(95766),l=n(78619);const __=a.__;function c(){const{useAdminUiV1:e}=(0,r.useSelect)((e=>({useAdminUiV1:e(o.h).useAdminUiV1()})),[]);return e?React.createElement(i.A,{trigger:React.createElement("button",{className:l.Z["settings-link"],title:__("Manage connections","jetpack"),"aria-label":__("Manage connections","jetpack")},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:"0.375",y:"0.375",width:"27.25",height:"27.25",rx:"1.125",fill:"#F6F7F7"}),React.createElement("path",{d:"M19 13.3333H14.6667V9H13.3333V13.3333H9V14.6667H13.3333V19H14.6667V14.6667H19V13.3333Z",fill:"black"}),React.createElement("rect",{x:"0.375",y:"0.375",width:"27.25",height:"27.25",rx:"1.125",stroke:"#A7AAAD",strokeWidth:"0.75",strokeDasharray:"2 2"})))}):React.createElement(u,null)}const u=()=>{const{connectionsAdminUrl:e}=(0,s.Z)();return React.createElement("a",{className:l.Z["settings-link"],href:e,target:"_blank",rel:"noreferrer",title:__("Connect an account","jetpack"),"aria-label":__("Connect an account","jetpack")},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:"0.375",y:"0.375",width:"27.25",height:"27.25",rx:"1.125",fill:"#F6F7F7"}),React.createElement("path",{d:"M19 13.3333H14.6667V9H13.3333V13.3333H9V14.6667H13.3333V19H14.6667V14.6667H19V13.3333Z",fill:"black"}),React.createElement("rect",{x:"0.375",y:"0.375",width:"27.25",height:"27.25",rx:"1.125",stroke:"#A7AAAD",strokeWidth:"0.75",strokeDasharray:"2 2"})))}},2817:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(65736);const __=r.__,a=[{label:__("X","jetpack"),networkName:"x",url:"https://x.com/intent/tweet?text={{text}}&url={{url}}"},{label:__("WhatsApp","jetpack"),networkName:"whatsapp",url:"https://api.whatsapp.com/send?text={{text}}"},{label:__("Facebook","jetpack"),networkName:"facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"}]},22917:(e,t,n)=>{"use strict";n(34607)},34607:(e,t,n)=>{"use strict";n.d(t,{n:()=>A});var r=n(3396),a=n(90526),s=n(45106),o=n(14203),i=n(13419),l=n(69307),c=n(65736),u=n(65235),d=n.n(u),p=n(2817),m=n(67415),g=n(38730);const __=c.__;function A({buttonStyle:e="icon",buttonVariant:t}){const n=(0,g.S)(),{recordEvent:u}=(0,i.z$)(),A=(0,l.useCallback)((()=>{u("jetpack_social_share_button_clicked",{network:"clipboard"})}),[u]),h=(0,l.useCallback)((()=>n("{{text}}\n{{url}}",!1)),[n]),E=(0,l.useCallback)((function(e,t){return function(n){n.preventDefault(),u("jetpack_social_share_button_clicked",t),window.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600")}}),[u]);return React.createElement("div",{className:d()(m.Z["share-buttons"],{[m.Z.vertical]:e.includes("text")})},p.o.map((({label:o,networkName:i,url:l})=>{const u=n(l),d="icon"===e?React.createElement(r.av,{serviceName:i}):null,p=(0,c.sprintf)(/* translators: %s is the name of a social network, e.g. Twitter. */ | |
| 15 | -__("Share on %s","jetpack"),o);return React.createElement("div",{className:m.Z.container,key:i},React.createElement(a.Z,{icon:d,variant:t,"aria-label":p,href:u,target:"_blank",rel:"noopener noreferrer",onClick:E(u,{network:i}),className:"icon"===e?m.Z[i]:"has-text"},"icon"===e?null:React.createElement(React.Fragment,null,"icon-text"===e&&React.createElement(r.av,{className:m.Z[i],serviceName:i}),React.createElement(s.ZP,{className:m.Z.label,component:"span"},p))))})),React.createElement("div",{className:m.Z.container},React.createElement(o.Z,{buttonStyle:e,onCopy:A,textToCopy:h,className:"icon"===e?m.Z.clipboard:" has-text",variant:t},"icon"===e?null:React.createElement(s.ZP,{className:m.Z.label,component:"span"},__("Copy to clipboard","jetpack")))))}},38730:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(9818),a=n(69307),s=n(71806);function o(){const{shareMessage:e}=(0,s.R)(),{message:t,link:n}=(0,r.useSelect)((t=>{const n=t("core/editor").getEditedPostAttribute;return{link:n("link"),message:e||n("meta")?.jetpack_seo_html_title||n("title")}}),[e]);return(0,a.useCallback)(((e,r=!0)=>{let a=t,s=n;return e.includes("{{url}}")||(a=a+"\n\n"+s,s=""),r&&(a=encodeURIComponent(a),s=encodeURIComponent(s)),e.replace("{{text}}",a).replace("{{url}}",s)}),[n,t])}},32637:(e,t,n)=>{"use strict";n.d(t,{r:()=>d});var r=n(43521),a=n(69307),s=n(65736),o=n(65235),i=n.n(o),l=n(73640);const __=s.__,_x=s._x,c={error:"var(--jp-red-50)",warning:"var(--jp-yellow-20)",default:"var(--jp-green)"},u={error:"var(--jp-red-50)",warning:"var(--jp-yellow-20)",default:"var(--jp-green-5)"},d=({usedCount:e,scheduledCount:t,remainingCount:n,remainingLabel:s,className:o,noticeType:d="default",legendCaption:p})=>{const m=(0,a.useMemo)((()=>{const r=__("scheduled","jetpack"),a=__("used or scheduled","jetpack");return[("default"===d||0===t)&&{count:e,backgroundColor:c[d],label:__("used","jetpack")},t>0&&{count:"default"===d?t:t+e,backgroundColor:u[d],label:"default"===d?r:a},{count:n,backgroundColor:"var(--jp-gray-off)",label:s||_x("left","Referring to the quantity remaning, not the direction - left/right.","jetpack")}].filter(Boolean)}),[d,t,e,n,s]);return React.createElement("div",{className:i()(l.Z.wrapper,o)},React.createElement(r.Z,{totalCount:e+t+n,items:m,className:l.Z["bar-wrapper"],tableCaption:p,legendTitle:p,recordTypeLabel:__("Share type","jetpack"),recordCountLabel:__("Usage","jetpack")}))}},91474:(e,t,n)=>{"use strict";n.d(t,{o:()=>g});var r=n(55609),a=n(9818),s=n(12238),o=n(69307),i=n(65736),l=n(53961),c=n(14085),u=n(45579),d=n(37568);const __=i.__;function p(e=__("Unable to share the Post","jetpack")){const{createErrorNotice:t}=(0,a.dispatch)(l.store);t(e,{id:"publicize-post-share-message"})}function m(){const{hasEnabledConnections:e}=(0,d.Z)(),{isPublicizeEnabled:t}=(0,c.Z)(),{isFetching:n,isError:i,isSuccess:m,doPublicize:g}=(0,u.Z)(),A=(0,a.useSelect)((e=>e(s.store).isCurrentPostPublished()),[]);(0,o.useEffect)((()=>{if(!n)return i?p():void(m&&function(){const{createSuccessNotice:e}=(0,a.dispatch)(l.store);e(__("Post shared","jetpack"),{id:"publicize-post-share-message",type:"snackbar"})}())}),[n,i,m]);const h=!t||!e||!A||n,E=(0,o.useCallback)((()=>{if(!A)return p(__("You must publish your post before you can share it.","jetpack"));(0,a.dispatch)(l.store).removeNotice("publicize-post-share-message"),g()}),[g,A]);return React.createElement(r.Button,{variant:"secondary",onClick:E,disabled:h,isBusy:n},__("Share post","jetpack"))}function g(){const{isRePublicizeUpgradableViaUpsell:e}=(0,c.Z)();return(0,a.useSelect)((e=>e(s.store).isCurrentPostPublished()),[])?e?null:React.createElement(r.PanelRow,null,React.createElement(m,null)):null}},54005:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(55609),a=n(69307),s=n(65736),o=n(75263),i=n(9888),l=n(81469);const __=s.__,c=({prePublish:e=!1})=>{const t=e?a.Fragment:r.PanelBody,n=e?{}:{title:__("Social Image Generator","jetpack")},{isEnabled:s,setIsEnabled:c}=(0,o.Z)(),[u,d]=(0,a.useState)(!1),p=(0,a.useCallback)((()=>d(!0)),[]),m=(0,a.useCallback)((()=>d(!1)),[]);return React.createElement(t,n,u&&React.createElement(l.Z,{onClose:m}),React.createElement(r.ToggleControl,{label:__("Enable Social Image","jetpack"),help:s?"":__("Social Image is disabled for this post.","jetpack"),checked:s,onChange:c}),s&&React.createElement(React.Fragment,null,React.createElement("hr",null),React.createElement(i.ZP,null),React.createElement("hr",null),React.createElement(r.Button,{variant:"secondary",onClick:p,label:__("Open the Social Image Generator settings","jetpack")},__("Settings","jetpack"))))}},81469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(88275),a=n(55609),s=n(69307),o=n(65736),i=n(75263),l=n(98811),c=n(9888),u=n(88649),d=n(39356),p=n(40088);const __=o.__,m=["image/jpeg","image/png"],g=__("Choose Image","jetpack"),A=({onClose:e})=>{const{customText:t,imageType:n,imageId:o,template:A,updateSettings:h}=(0,i.Z)(),[E,f]=(0,s.useState)(o),[b,C]=(0,s.useState)(n||"featured"),[v,k]=(0,s.useState)(t),[B,y]=(0,s.useState)(A),[w]=(0,l.Z)(E),_=(0,s.useCallback)((()=>{h({template:B,image_type:b,custom_text:v||"",..."custom"===b&&{image_id:E}}),e()}),[h,B,b,E,v,e]),I=(0,s.useCallback)((e=>{f(e?.id)}),[f]);return React.createElement(r.ZP,{targetDom:document.body},React.createElement(a.Modal,{onRequestClose:e},React.createElement(c.ZP,{className:p.Z.preview,imageId:E,customText:v,imageType:b,template:B}),React.createElement(a.SelectControl,{label:__("Image Type","jetpack"),value:b||"featured",options:[{label:__("Featured Image","jetpack"),value:"featured"},{label:__("Custom Image","jetpack"),value:"custom"},{label:__("No Image","jetpack"),value:"none"}],onChange:C}),"custom"===b&&React.createElement(u.Z,{buttonLabel:g,subTitle:__("Add a custom image","jetpack"),mediaId:E,mediaDetails:w,onChange:I,allowedMediaTypes:m,wrapperClassName:p.Z.mediaPicker}),React.createElement(a.TextControl,{className:p.Z.customText,value:v||"",onChange:k,label:__("Custom Header","jetpack"),help:__("By default the post title is used for the image. You can use this field to set your own text.","jetpack")}),React.createElement(a.BaseControl,{label:__("Templates","jetpack"),className:p.Z.templateControl},React.createElement(d.Z,{value:B,onTemplateSelected:y})),React.createElement(a.Button,{onClick:e,variant:"tertiary"},__("Cancel","jetpack")),React.createElement(a.Button,{onClick:_,variant:"primary"},__("Save","jetpack"))))}},79631:(e,t,n)=>{"use strict";n(9818),n(69307),n(65736),n(99196),n(23177),n(8350)},8350:(e,t,n)=>{"use strict";n(55609),n(69307),n(65736),n(39356),n(15214)},39356:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(69307),a=n(65736),s=n(65235),o=n.n(s),i=n(47320),l=n(57227);const __=a.__,c=({value:e=null,onTemplateSelected:t=null})=>{const n=(0,r.useCallback)((e=>{const n=e.target.id;t?.(n)}),[t]);return React.createElement("div",{className:i.Z.templates},l.Z.map((t=>React.createElement("button",{onClick:n,id:t.name,key:t.name,className:o()(i.Z.template,{[i.Z["template--active"]]:t.name===e})},React.createElement("img",{src:t.image,alt:t.label}),React.createElement("span",{className:"screen-reader-text"},/* translators: %s is the name of the template */ /* translators: %s is the name of the template */ | |
| 16 | -(0,a.sprintf)(__("Pick the %s template","jetpack"),t.label))))))}},57227:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30253),a=n(91948),s=n(5353);const o=[{name:"highway",label:"Highway",image:n(27956)},{name:"dois",label:"Dois",image:r},{name:"edge",label:"Edge",image:a},{name:"fullscreen",label:"Fullscreen",image:s}]},76848:(e,t,n)=>{"use strict";n(9818),n(69307),n(99196),n(23177)},53513:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(88275),a=n(55609),s=n(69307),o=n(65736),i=n(88219),l=n(89696);const __=o.__,c=__("By default, the image and text appear on social media as a link preview. To optimize engagement, share as a social post.","jetpack");function u({disabled:e=!1,isCustomMediaAvailable:t=!0}){const{shouldUploadAttachedMedia:n,updateShouldUploadAttachedMedia:o}=(0,i.Z)(),u=t?__("You need a featured image or media attached to your post to be able to share as a social post.","jetpack"):__("You need a featured image for this post to be able to share as a social post.","jetpack",0),d=(0,s.useCallback)((e=>{o(e)}),[o]),p=e?a.Disabled:s.Fragment,m=e?{className:l.Z.disabled}:{};return React.createElement(r.ZP,null,React.createElement(p,m,React.createElement(a.CheckboxControl,{className:l.Z.checkbox,checked:n,onChange:d,label:__("Share as a social post","jetpack"),help:e?u:c})))}},63855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(13477),o=n(9818),i=n(48751),l=n(23177);const c=(0,o.withSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor");return{excerpt:t("excerpt"),content:t("content").split("\x3c!--more")[0]}}))((e=>{const{message:t}=(0,i.Z)(),{title:n,excerpt:r,content:c}=e,u=(0,o.useSelect)((e=>{const{displayName:t,profileImage:n}=e(l.Eg).getConnectionProfileDetails(l.uJ);return{displayName:t,avatarUrl:n}}));return React.createElement(s.S,a()({},e,{type:"article",user:u,customText:t||r||c||n}))}))},83704:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(82674),a=n.n(r),s=n(17915),o=n(9818),i=n(22629),l=n(99196),c=n.n(l);const u=function(e){const t=(0,o.useSelect)((e=>{const{getUnstableBase:t}=e("core"),n=t().name;return(0,i.decodeEntities)(n)}));return c().createElement(s.X,a()({},e,{siteTitle:t}))}},4124:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(4049),a=n(9818),s=n(99196),o=n.n(s),i=n(48751),l=n(23177);function c(e){const{title:t,image:n,media:s,description:c}=e,{username:u,profileImage:d}=(0,a.useSelect)((e=>e(l.Eg).getConnectionProfileDetails(l.M$))),{message:p}=(0,i.Z)(),m=p||t||c;return o().createElement(r.V,{image:n,media:s,name:u,profileImage:d,caption:m})}},27725:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var r=n(93453),a=n(9818),s=n(65736),o=n(99196),i=n.n(o),l=n(48751),c=n(23177);const __=s.__;function u(e){const{title:t,url:n,image:s,media:o,description:u}=e,{displayName:d,profileImage:p}=(0,a.useSelect)((e=>e(c.Eg).getConnectionProfileDetails(c.qk))),{message:m}=(0,l.Z)(),g=`${m||t||u} ${o.length?n:""}`.trim();return i().createElement(r.S,{jobTitle:__("Job Title (Company Name)","jetpack"),image:s,name:d,profileImage:p,title:t,description:g,url:n,media:o})}},28586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(82674),a=n.n(r),s=n(60312),o=n(9818),i=n(22629),l=n(71806),c=n(48751),u=n(23177);const d=e=>{const{message:t}=(0,c.Z)(),{content:n,siteName:r}=(0,o.useSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor"),{getUnstableBase:n}=e("core");return{content:t("content").split("\x3c!--more")[0],siteName:(0,i.decodeEntities)(n().name)}})),{shouldUploadAttachedMedia:d}=(0,l.R)(),p=(0,o.useSelect)((e=>{const{displayName:t,profileImage:n,username:r}=e(u.Eg).getConnectionProfileDetails(u.cs);return{displayName:t,avatarUrl:n,address:r}})),m=e.media?.[0],g=m?.type.startsWith("image/")?m.url:null;return React.createElement(s.I,a()({},e,{siteName:r,user:p,description:n,customText:t,customImage:g,isSocialPost:d}))}},8454:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(55609),a=n(65736),s=n(39517),o=n(41809),i=n(9279);const __=a.__,l=function({onClose:e,initialTabName:t}){const n=(0,o.P)(),{image:a,media:l,title:c,description:u,url:d}=(0,i.u)();return React.createElement(r.Modal,{onRequestClose:e,className:"jetpack-social-previews__modal",__experimentalHideHeader:!0},React.createElement(r.Button,{className:"jetpack-social-previews__modal--close-btn",onClick:e,icon:s.Z,label:__("Close","jetpack")}),React.createElement(r.TabPanel,{className:"jetpack-social-previews__modal-previews",tabs:n,initialTabName:t},(e=>React.createElement("div",null,React.createElement(e.preview,{title:c,description:u,url:d,image:a,media:l})))))}},18553:(e,t,n)=>{"use strict";n.d(t,{T:()=>c});var r=n(93122),a=n(9818),s=n(99196),o=n.n(s),i=n(48751),l=n(23177);function c(e){const{title:t,url:n,image:s,media:c,description:u}=e,{displayName:d,profileImage:p}=(0,a.useSelect)((e=>e(l.Eg).getConnectionProfileDetails(l.Cd))),{message:m}=(0,i.Z)(),g=`${m||t||u} ${c.length?n:""}`.trim();return o().createElement(r.m,{image:s,name:d,profileImage:p,title:t,description:g,url:n,media:c})}},74140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(55609),a=n(65736),s=n(41809);const __=a.__,_x=a._x,o=({openModal:e})=>{const t=(0,s.P)();return React.createElement("div",{className:"jetpack-social-previews__panel"},React.createElement("p",null,__("Preview what this will look like on social networks and Google search.","jetpack")),React.createElement("div",{className:"jetpack-gutenberg-social-icons"},t.map((e=>React.createElement(e.icon,{key:e.name,className:"jetpack-social-previews__icon"})))),React.createElement(r.Button,{variant:"secondary",onClick:e,label:__("Open Social Previews","jetpack")},_x("Preview","Button label that opens the social previews modal","jetpack")))}},94714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(1044),o=n(9818),i=n(48751),l=n(23177);const c=e=>{const{content:t,author:n}=(0,o.useSelect)((e=>{const{getUser:t}=e("core"),{getEditedPostAttribute:n}=e("core/editor"),r=n("author"),a=r&&t(r);return{content:n("content").split("\x3c!--more")[0],author:a?.name}})),{message:r}=(0,i.Z)(),c=(0,o.useSelect)((e=>{const{displayName:t,profileImage:r}=e(l.Eg).getConnectionProfileDetails(l.Bb);return{displayName:t||n,avatarUrl:r}}),[n]);return React.createElement(s.b,a()({},e,{user:c,description:t,customText:r}))}},24766:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(835),a=n(9818),s=n(99196),o=n.n(s),i=n(71806),l=n(23177);const c=function({title:e,description:t,image:n,url:s,media:c}){const{shareMessage:u}=(0,i.R)(),d=(0,a.useSelect)((r=>{const{displayName:a,profileImage:o,username:i}=r(l.Eg).getConnectionProfileDetails(l.wV);return[{name:a,profileImage:o,screenName:i,text:u+(c.length?` ${s}`:""),cardType:n?"summary_large_image":"summary",title:e,description:t,image:n,media:c,url:s}]}),[e,n,t,c,s,u]);return o().createElement(r.c,{tweets:d,hidePostPreview:!0})}},41809:(e,t,n)=>{"use strict";n.d(t,{P:()=>b});var r=n(82674),a=n.n(r),s=n(3396),o=n(65736),i=n(99196),l=n.n(i),c=n(23177),u=n(42032),d=n(63855),p=n(83704),m=n(4124),g=n(27725),A=n(28586),h=n(18553),E=n(94714),f=n(24766);const __=o.__;function b(){const e=(0,u.getSupportedAdditionalConnections)(),t=e.includes(c.M$),n=e.includes(c.cs),r=e.includes(c.Cd);return(0,i.useMemo)((()=>[{title:__("Google Search","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"google"},e)),name:"google",preview:p.Z},{title:__("X","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"x"},e)),name:"x",preview:f.Z},{title:__("Facebook","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"facebook"},e)),name:"facebook",preview:d.Z},t?{title:__("Instagram","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"instagram"},e)),name:"instagram",preview:m.m}:null,{title:__("LinkedIn","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"linkedin"},e)),name:"linkedin",preview:g.y},r?{title:__("Nextdoor","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"nextdoor"},e)),name:"nextdoor",preview:h.T}:null,{title:__("Tumblr","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"tumblr-alt"},e)),name:"tumblr",preview:E.Z},n?{title:__("Mastodon","jetpack"),icon:e=>l().createElement(s.av,a()({serviceName:"mastodon"},e)),name:"mastodon",preview:A.Z}:null].filter(Boolean)),[t,n,r])}},9279:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(9818),a=n(65736),s=n(71806),o=n(90785),i=n(25399);const __=a.__;function l(){const{attachedMedia:e,imageGeneratorSettings:t,shouldUploadAttachedMedia:n}=(0,s.R)();return(0,r.useSelect)((r=>{const{getMedia:a}=r("core"),{getEditedPostAttribute:s,getEditedPostContent:l}=r("core/editor"),c=s("featured_media");let u=c?(0,i.i)(a(c)):"";const d=t.enabled?(0,o.t)(t.token):"";if(d)u=d;else if(e?.[0]?.id){const[t]=e;!!t.id&&a(t.id)?.mime_type?.startsWith("image/")&&t.url&&(u=t.url)}if(!u){const e=(0,i.T)(l());e&&(u=e)}const p=[];if(n)if(d)p.push({type:"image/jpeg",url:d,alt:""});else{const t=e=>{const t=a(e);return t?{type:t.mime_type,url:(0,i.i)(t),alt:t.alt_text}:null};for(const{id:n}of e){const e=t(n);e&&p.push(e)}if(0===p.length&&c){const e=t(c);e&&p.push(e)}}return{title:s("meta")?.jetpack_seo_html_title||s("title"),description:s("meta")?.advanced_seo_description||s("excerpt")||s("content").split("\x3c!--more")[0]||__("Visit the post for more.","jetpack"),url:s("link"),image:u,media:p,initialTabName:null}}),[n,e,t])}},25399:(e,t,n)=>{"use strict";function r(e){return e?e.media_details?.sizes?.large?.source_url||e.source_url:null}function a(e){const t=(new DOMParser).parseFromString(e,"text/html"),n=Array.from(t.querySelectorAll("img")),r=n[0]?.src;return r??null}n.d(t,{T:()=>a,i:()=>r})},13858:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(69307),a=n(87728);const s=({sourceUrl:e,mime:t,duration:n})=>{const[s,o]=(0,r.useState)(!1),[i,l]=(0,r.useState)(0),c=(0,r.useRef)(null),u=(0,r.useRef)(null),d=(0,r.useRef)(null);(0,r.useEffect)((()=>{c.current?.load()}),[e]);const p=(0,r.useCallback)((()=>{c.current.pause(),c.current.currentTime=0,clearInterval(u.current),clearTimeout(d.current),l(0),o(!1)}),[]),m=(0,r.useCallback)((()=>{d.current=setTimeout((()=>{s||(c.current.play(),o(!0),u.current=setInterval((()=>{l((e=>e+1))}),1e3))}),500)}),[s]),g=()=>{const e=n-i,t=Math.floor(e/60),r=String(Math.floor(e%60)).padStart(2,"0");return React.createElement("div",{className:a.Z.progress},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"8",fill:"none"},React.createElement("path",{fill:"#fff",d:"M5.25 3.567a.5.5 0 0 1 0 .866L.75 7.031A.5.5 0 0 1 0 6.598V1.402A.5.5 0 0 1 .75.969l4.5 2.598Z"})),React.createElement("span",{className:a.Z.duration},`${t}:${r}`))};return React.createElement("div",{className:a.Z.wrapper,onMouseEnter:m,onMouseLeave:p},React.createElement("video",{ref:c,onEnded:p,muted:!0},React.createElement("source",{src:e,type:t})),React.createElement(g,null))}},88219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(71806);function a(){const{attachedMedia:e,shouldUploadAttachedMedia:t,updateJetpackSocialOptions:n}=(0,r.R)();return{attachedMedia:e,shouldUploadAttachedMedia:t,updateAttachedMedia:e=>n("attached_media",e),updateShouldUploadAttachedMedia:e=>n("should_upload_attached_media",e)}}},75323:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(13419),a=n(86989),s=n.n(a),o=n(69307);const i={instagram:"instagram",advancedUpgradeEditor:"advanced-upgrade-nudge-editor",advancedUpgradeAdmin:"advanced-upgrade-nudge-admin",autoConversion:"auto-conversion-editor-notice"},l=e=>-1===e?0:new Date(Date.now()+1e3*e).getTime();function c(){const[e,t]=(0,o.useState)((()=>(0,r.Pb)()?.social?.dismissedNotices??window?.jetpackSocialInitialState?.jetpackSettings?.dismissedNotices??{})),n=(0,o.useCallback)(((e,n=-1)=>{const r=l(n);t((t=>({...t,[e]:r}))),s()({path:"/wp/v2/settings",method:"POST",data:{jetpack_social_dismissed_notices:{[e]:r}}})}),[]),a=(0,o.useCallback)((t=>{const n=e[t];return!(0===n||n>Date.now())}),[e]);return(0,o.useMemo)((()=>({dismissedNotices:e,shouldShowNotice:a,dismissNotice:n,NOTICES:i})),[e,a,n])}},39118:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9818),a=n(12238);const s=()=>(0,r.useSelect)((e=>e(a.store).getEditedPostAttribute("featured_media")))},75263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9818),a=n(12238),s=n(69307),o=n(71806);const i=(e,t)=>({isEnabled:e?.enabled??!t,customText:e?.custom_text??null,imageType:e?.image_type??null,imageId:e?.image_id??null,template:e?.template??null,token:e?.token??null});function l(){const{imageGeneratorSettings:e,jetpackSocialOptions:t,updateJetpackSocialOptions:n}=(0,o.R)(),{isPostPublished:l}=(0,r.useSelect)((e=>({isPostPublished:e(a.store).isCurrentPostPublished()}))),c=(0,s.useCallback)(((t,r)=>{const a={...e,[t]:r};n("image_generator_settings",a)}),[e,n]),u=(0,s.useCallback)((t=>{const r={...e,...t};n("image_generator_settings",r)}),[e,n]);return{...i(t.image_generator_settings,l),setIsEnabled:e=>c("enabled",e),setToken:e=>c("token",e),updateSettings:u}}},98811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),a=n(69307);const s=async e=>{if(!e)return{};let t={mime:e.mime_type,fileSize:e.media_details.filesize,length:e.media_details?.length};"video/videopress"===e.mime_type&&(t=await(async e=>{if(!e?.media_details?.videopress?.original||!e?.media_details?.videopress?.duration)return{};const t=await fetch(e?.media_details?.videopress?.original,{method:"HEAD"}),n=t.headers.get("content-length"),r=t.headers.get("content-type");return n&&r?{mime:r,fileSize:n,length:Math.round(e.media_details.videopress.duration/1e3)}:{}})(e));const n=e?.media_details?.sizes??{};if(!n.full)return{mediaData:{width:e.media_details.width,height:e.media_details.height,sourceUrl:e.source_url},metaData:t};const r=n.medium||n.large,a={width:r.width,height:r.height,sourceUrl:r.source_url};return{mediaData:{width:n.full.width,height:n.full.height,sourceUrl:n.full.source_url},metaData:t,previewData:a}};function o(e=null){const[t,n]=(0,a.useState)([{}]),o=(0,r.useSelect)((t=>t("core").getMedia(e,{context:"view"})),[e]),i=(0,a.useCallback)((async()=>{try{const e=await s(o);n([e??{}])}catch{n([{}])}}),[o]);return(0,a.useEffect)((()=>{i()}),[i]),t}},46791:(e,t,n)=>{"use strict";n.d(t,{Wv:()=>l,ZP:()=>d,rs:()=>s});var r=n(69307),a=n(1795);const s="NO_MEDIA_ERROR",o="FILE_SIZE_ERROR",i="DIMENSION_ERROR";function l(e){return"video"===e.split("/")[0]}const c=e=>{if(!e?.mime||!e?.fileSize)return!1;const{mime:t,fileSize:n}=e;if(l(t))return!1;if(!a.bD.includes(t))return!1;return!((n?n/Math.pow(1e3,2):null)>=55)},u=(e,t,n,r)=>{const c=a.$8[n]??a.ay;if(!e||0===Object.keys(e).length)return c.requiresMedia?s:null;if(!c.requiresMedia&&!r)return null;const{mime:u,fileSize:d}=e;if(!u||!c.allowedMediaTypes.includes(u.toLowerCase()))return"FILE_TYPE_ERROR";if(!t?.width||!t?.height)return i;const p=d?d/Math.pow(1e3,2):null;return l(u)?((e,t,n,r,s)=>{const{minSize:l=0,maxSize:c=a.zc,minLength:u=0,maxLength:d=a.zc,maxWidth:p=a.zc,aspectRatio:m=a.ay.video.aspectRatio}=s;if(!e||e>c||e<l)return o;if(!t||t<u)return"VIDEO_LENGTH_TOO_SHORT_ERROR";if(t>d)return"VIDEO_LENGTH_TOO_LONG_ERROR";const g=n/r;return g<m.min||g>m.max||n>p?i:null})(p,e.length,t.width,t.height,c.video):((e,t,n,r)=>{const{maxSize:s=a.zc,minWidth:l=0,maxWidth:c=a.zc,aspectRatio:u=a.ay.image.aspectRatio}=r,d=t/n;return d<u.min||d>u.max||t>c||t<l?i:!e||e>s?o:null})(p,t.width,t.height,c.image)},d=(e,t,{isSocialImageGeneratorEnabledForPost:n,shouldUploadAttachedMedia:a})=>{const s=(0,r.useRef)({});return(0,r.useMemo)((()=>{const r=n?{}:e.reduce(((e,{connection_id:n,service_name:r})=>{const s=u(t.metaData,t.mediaData,r,a);return s&&(e[n]=s),e}),{});return JSON.stringify(r)!==JSON.stringify(s.current)&&(s.current=r),{validationErrors:s.current,isConvertible:c(t.metaData)}}),[n,e,t.metaData,t.mediaData,a])}},1795:(e,t,n)=>{"use strict";n.d(t,{$8:()=>A,ay:()=>g,bD:()=>h,uo:()=>E,zc:()=>m});const r="video/mp4",a="video/mov",s="video/videopress",o=["image/jpeg","image/jpg","image/png"],i=o.concat(["image/gif","image/bmp"]),l=["video/3g2","video/3gp","video/3gpp","video/asf","video/avi","video/dat","video/divx","video/dv","video/f4v","video/flv","video/gif","video/m2ts","video/m4v","video/mkv","video/mod","video/mov","video/mp4","video/mpe","video/mpeg","video/mpeg4","video/mpg","video/mts","video/nsv","video/ogm","video/ogv","video/qt","video/tod","video/ts","video/vob","video/wmv"],c=o.concat(["image/gif","image/heic","image/heif","image/webp","image/avif"]),u=["video/webm","video/quicktime","video/ogg"],d=o.concat(["image/gif","image/jpe","image/tif","image/tiff","image/webp"]),p=[a,"video/avi","video/mpg","video/mpeg","video/m4v"],m=1e5,g={requiresMedia:!1,allowedMediaTypes:o.concat([r,s,a]),image:{maxSize:4,minWidth:0,maxWidth:m,aspectRatio:{min:0,max:m}},video:{minLength:0,minSize:0,maxSize:m,maxLength:m,maxWidth:m,aspectRatio:{min:0,max:m}}},A={twitter:{allowedMediaTypes:o.concat([r,s]),image:{maxSize:5},video:{maxSize:512,maxLength:140}},facebook:{allowedMediaTypes:i.concat([s,...l]),image:{maxSize:8},video:{maxSize:1e4,maxLength:14400}},tumblr:{allowedMediaTypes:o.concat([r,a,s]),image:{maxSize:20},video:{maxSize:500,maxLength:600}},linkedin:{allowedMediaTypes:o.concat([r,s]),image:{maxSize:20},video:{minSize:.075,maxSize:200,maxLength:600,minLength:3}},"instagram-business":{requiresMedia:!0,allowedMediaTypes:["image/jpg","image/jpeg",r,a,s],image:{maxSize:8,minWidth:320,maxWidth:1440,aspectRatio:{min:.8,max:1.91}},video:{maxLength:90,minLength:3,maxSize:1e3,maxWidth:1920,aspectRatio:{min:.01,max:10}}},mastodon:{allowedMediaTypes:c.concat([...u,r,s]),image:{maxSize:10},video:{maxSize:40}},nextdoor:{allowedMediaTypes:d.concat([...p,r,s]),image:{maxSize:10},video:{maxSize:500}}},h=["image/png","image/jpeg","image/jpg","image/heic","image/heif","image/webp"],E=[...new Set([...o,...i,...c,...l,...u,...h])]},71806:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(9818),a=n(12238),s=n(69307),o=n(42032);function i(){const{editPost:e}=(0,r.useDispatch)(a.store),t=(0,r.useSelect)((e=>{const t=e(a.store).getEditedPostAttribute("meta")||{},n=t.jetpack_publicize_feature_enabled??!0,r=t.jetpack_social_options||{};return{isPublicizeEnabled:n,jetpackSocialOptions:r,attachedMedia:r.attached_media||[],imageGeneratorSettings:r.image_generator_settings??{enabled:!1},isPostAlreadyShared:t.jetpack_social_post_already_shared??!1,shareMessage:`${t.jetpack_publicize_message||""}`.substring(0,(0,o.getShareMessageMaxLength)()),shouldUploadAttachedMedia:r.should_upload_attached_media??!1}}),[]),n=(0,s.useCallback)(((t,n)=>{e({meta:{[t]:n}})}),[e]),i=(0,s.useCallback)((()=>{n("jetpack_publicize_feature_enabled",!t.isPublicizeEnabled)}),[t.isPublicizeEnabled,n]),l=(0,s.useCallback)(((e,r)=>{n("jetpack_social_options",{...t.jetpackSocialOptions,[e]:r})}),[t.jetpackSocialOptions,n]);return(0,s.useMemo)((()=>({...t,togglePublicizeFeature:i,updateJetpackSocialOptions:l,updateMeta:n})),[t,i,l,n])}},14085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(31294),a=n(13419),s=n(9818),o=n(12238),i=n(23177),l=n(71806);const c="republicize";function u(){const e=(0,a.Pb)()?.social?.sharesData??{},t=(0,a.Pb)()?.wpcomBlogId,n=e.is_share_limit_enabled,u=(0,a.OZ)(c)?.available||n,d=(0,s.useSelect)((e=>e(o.store).isCurrentPostPublished()),[]),p=(0,s.useSelect)((e=>e(o.store).getCurrentPostType()),[]),{isUserConnected:m}=(0,r.Z)(),g=(0,a.Pb)()?.social?.publicizeConnectionsUrl??"https://wordpress.com/marketing/connections/",{isPublicizeEnabled:A,togglePublicizeFeature:h,isPostAlreadyShared:E}=(0,l.R)(),f=(0,a.X1)(c)&&!u,b=d?u:A,C=d&&f,v=d&&!u,k=!!(0,a.Pb)()?.social?.hasPaidPlan,B=!!(0,a.Pb)()?.social?.isEnhancedPublishingEnabled,y=!!(0,a.Pb)()?.social?.isAutoConversionEnabled,w="jetpack-social-note"===p,_=!m&&!(0,a.Wp)(),I=(0,s.useSelect)((e=>e(i.h).userConnectionUrl()),[]);return{isPublicizeEnabledMeta:A,isPublicizeEnabled:b,togglePublicizeFeature:h,isPublicizeDisabledBySitePlan:C,isRePublicizeFeatureAvailable:u,isRePublicizeUpgradableViaUpsell:f,hidePublicizeFeature:v,isShareLimitEnabled:n,isPostAlreadyShared:E,numberOfSharesRemaining:e.shares_remaining,shouldShowAdvancedPlanNudge:e.show_advanced_plan_upgrade_nudge,hasPaidPlan:k,isEnhancedPublishingEnabled:B,isSocialImageGeneratorAvailable:!!(0,a.Pb)()?.social?.isSocialImageGeneratorAvailable&&!w,isSocialImageGeneratorEnabled:!!(0,a.Pb)()?.social?.isSocialImageGeneratorEnabled,connectionsAdminUrl:g+(t??(0,a.lQ)()),adminUrl:(0,a.Pb)()?.social?.adminUrl,isAutoConversionEnabled:y,jetpackSharingSettingsUrl:(0,a.Pb)()?.social?.jetpackSharingSettingsUrl,isJetpackSocialNote:w,needsUserConnection:_,userConnectionUrl:I}}},6230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9818),a=n(69307),s=n(22552),o=n(23177);function i(){const e=(0,s.Z)(),t=(0,a.useRef)(!1),n=(0,r.useDispatch)(o.Eg).refreshAutoConversionSettings;return{refreshAutoConversionSettings:()=>{e||(t.current=!0),e&&t.current&&(n(),t.current=!1)}}}},96672:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(94333),a=n(69307),s=n(22552),o=n(37568);function i(){const e=(0,a.useRef)(!1),t=(0,s.Z)(),{refresh:n}=(0,o.Z)(),i=(0,r.useDebounce)(n,2e3);return()=>{t||(e.current=!0,i.cancel()),t&&e.current&&(i(),e.current=!1)}}},86419:(e,t,n)=>{"use strict";n.d(t,{M1:()=>i,e3:()=>l});var r=n(94333),a=n(9818),s=n(12238),o=n(69307);function i(e,t){const n=(0,a.useSelect)((e=>e(s.store).isPublishingPost()),[]),i=(0,r.usePrevious)(n);(0,o.useEffect)((()=>{i&&!n&&e()}),[n,i,e,t])}function l(e,t){const n=(0,a.useSelect)((e=>e(s.store).isPublishingPost()),[]),i=(0,r.usePrevious)(n);(0,o.useEffect)((()=>{!i&&n&&e()}),[n,i,e,t])}},34431:(e,t,n)=>{"use strict";n.d(t,{U:()=>o});var r=n(9818),a=n(65736),s=n(23177);const __=a.__,_n=a._n;function o({scheduledCountAdjustment:e=0,usedCountAdjustment:t=0}={}){return(0,r.useSelect)((n=>{const r=n(s.h),o=r.getShareLimit(),i=r.getScheduledSharesCount()+e,l=r.getSharesUsedCount()+t,c=l+i,u=r.numberOfSharesRemaining(),d=function(e){const t=Number.isFinite(e)?(0,a.sprintf)( | |
| 17 | -// translators: %d: The number of shares to social media remaining | |
| 18 | -_n("You have %d auto-share remaining.","You have %d auto-shares remaining.",e,"jetpack"),e):"";return{default:"",exceeded:__("You have reached your auto-share limit. Scheduled posts will not be shared until shares become available.","jetpack"),full:__("You have reached your auto-share limit.","jetpack"),approaching:t}}(u);let p="default",m="none",g=d.default;return c>o?(p="error",m="exceeded",g=d.exceeded):c===o?(m="full",p="error",g=d.full):c>=.9*o?(m="approaching",p="error",g=d.approaching):c>=.8*o&&(m="approaching",p="warning",g=d.approaching),{status:m,noticeType:p,message:g,usedCount:l,scheduledCount:i,remainingCount:u}}),[e,t])}},45579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(13419),a=n(86989),s=n.n(a),o=n(9818),i=n(12238),l=n(69307),c=n(65736),u=n(37568),d=n(48751);const __=c.__;function p(e){const t=e?.code,n=e?.errors?.length;if(!t&&!n)return!1;let r="";return t&&(r=__("Unable to share the Post","jetpack")),n&&(r=__("Unable to share the Post","jetpack")),{message:r,result:e}}function m(e){const{message:t}=(0,d.Z)(),{skippedConnections:n}=(0,u.Z)(),a=(0,o.useSelect)((e=>e(i.store).getCurrentPostId()),[]);e=e||a;const[c,m]=(0,l.useState)({data:[],error:{}}),g=((0,r.Pb)()?.social?.resharePath??"/wpcom/v2/posts/{postId}/publicize").replace("{postId}",e),A=(0,l.useCallback)((function(){const r={isFetching:!1,isError:!1,isSuccess:!1,data:[],error:{},postId:e};if(!c.isFetching)return m({...r,isFetching:!0}),s()({path:g,method:"POST",data:{message:t,skipped_connections:n}}).then(((e={})=>{const t=p(e);if(t)return m((e=>({...e,isFetching:!1,isSuccess:!1,isError:!0,data:[],error:t})));m((t=>({...t,isFetching:!1,isSuccess:!0,isError:!1,data:e?.results,error:{}})))})).catch((e=>{m((t=>({...t,isFetching:!1,isSuccess:!1,isError:!0,data:[],error:p(e)})))})),function(){m(r)}}),[e,t,n,c.isFetching,g]);return{...c,doPublicize:A}}},37568:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9818),a=n(23177);function s(){const{refreshConnectionTestResults:e,toggleConnectionById:t}=(0,r.useDispatch)(a.h);return{...(0,r.useSelect)((e=>{const t=e(a.h),n=t.getConnections(),r=t.getEnabledConnections(),s=t.getDisabledConnections().map((e=>e.id));return{connections:n,hasConnections:n.length>0,hasEnabledConnections:r.length>0,skippedConnections:s,enabledConnections:r}}),[]),toggleById:t,refresh:e}}},48751:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(42032),a=n(71806);function s(){const{updateMeta:e,shareMessage:t}=(0,a.R)();return{message:t,maxLength:(0,r.getShareMessageMaxLength)(),updateMessage:function(t){e("jetpack_publicize_message",t)}}}},19890:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(9818),a=n(12238),s=n(23177),o=n(86419);function i(){const{mergeConnections:e}=(0,r.useDispatch)(s.h),{didPostSaveRequestSucceed:t,isCurrentPostPublished:n,getEditedPostAttribute:i}=(0,r.useSelect)((e=>e(a.store)),[]);(0,o.M1)((()=>{if(t()&&n()){const t=i("jetpack_publicize_connections");t?.length&&e(t)}}),[t,n,i])}},21052:(e,t,n)=>{"use strict";n.d(t,{Au:()=>l,Wh:()=>c,ZP:()=>u,hi:()=>i,wO:()=>o});var r=n(9818),a=n(23177),s=n(4957);const o="SET_AUTO_CONVERSION_SETTINGS";function i(){return c({isUpdating:!0})}function l(){return c({isUpdating:!1})}function c(e){return{type:o,options:e}}const u={updateAutoConversionSettings:function*(e){try{yield i(),yield c(e),yield(0,s.Fl)(e);const t=yield(0,s.wi)();return yield c(t.jetpack_social_autoconvert_images),!0}catch(e){const t=(0,r.select)(a.Eg).getAutoConversionSettings();return yield c(t),!1}finally{yield l()}},setAutoConversionSettings:c,refreshAutoConversionSettings:function*(){try{yield i();const e=yield(0,s.wi)();return yield c(e.jetpack_social_autoconvert_images),!0}catch(e){return!1}finally{yield l()}}}},23013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addConnection:()=>p,createConnection:()=>k,creatingConnection:()=>C,deleteConnection:()=>f,deleteConnectionById:()=>v,deletingConnection:()=>b,mergeConnections:()=>g,refreshConnectionTestResults:()=>A,setConnections:()=>u,setKeyringResult:()=>d,syncConnectionsToPostMeta:()=>h,toggleConnection:()=>m,toggleConnectionById:()=>E,updateConnection:()=>B,updateConnectionById:()=>w,updatingConnection:()=>y});var r=n(53961),a=n(86989),s=n.n(a),o=n(9818),i=n(12238),l=n(65736),c=n(74442);const __=l.__;function u(e){return{type:c.b1,connections:e}}function d(e){return{type:c.fI,keyringResult:e}}function p(e){return{type:c.es,connection:e}}function m(e){return{type:c.LH,connectionId:e}}function g(e){return function({dispatch:t,select:n}){const r=n.getConnections(),a=[],s={done:!1,enabled:Boolean(n.numberOfSharesRemaining()),toggleable:!0};for(const t of e){const e=r.find((e=>e.connection_id?e.connection_id===t.connection_id:e.id===t.id)),n={...s,...e,...t,shared:e?.shared,is_healthy:t.test_success};a.push(n)}t(u(a))}}function A(e=!1){return async function({dispatch:t,select:n}){try{const r=n.connectionRefreshPath()||"/wpcom/v2/publicize/connection-test-results";t(g(await s()({path:r}))),e&&t(h())}catch(e){}}}function h(){return function({registry:e,select:t}){const n=t.getConnections();return e.dispatch(i.store).editPost({jetpack_publicize_connections:n})}}function E(e,t=!0){return function({dispatch:n}){n(m(e)),t&&n(h())}}function f(e){return{type:c.dz,connectionId:e}}function b(e,t=!0){return{type:c.oI,connectionId:e,deleting:t}}function C(e=!0){return{type:c.F1,creating:e}}function v({connectionId:e,showSuccessNotice:t=!0}){return async function({registry:n,dispatch:a}){const{createErrorNotice:l,createSuccessNotice:c}=(0,o.dispatch)(r.store);try{const r=`/jetpack/v4/social/connections/${e}`;return a(b(e)),await s()({method:"DELETE",path:r}),a(f(e)),t&&c(__("Account disconnected successfully.","jetpack"),{type:"snackbar",isDismissible:!0}),n.select(i.store).getCurrentPostId()&&a(h()),!0}catch(e){let t=__("Error disconnecting account.","jetpack");"object"==typeof e&&"message"in e&&e.message&&(t=`${t} ${e.message}`),l(t,{type:"snackbar",isDismissible:!0})}finally{a(b(e,!1))}return!1}}function k(e){return async function({registry:t,dispatch:n}){const{createErrorNotice:a,createSuccessNotice:c}=(0,o.dispatch)(r.store);try{const r="/jetpack/v4/social/connections/";n(C());const a=await s()({method:"POST",path:r,data:e});a&&(n(p({...a,can_disconnect:!0,enabled:!0})),c((0,l.sprintf)(/* translators: %s is the name of the social media platform e.g. "Facebook" */ | |
| 19 | -__("%s account connected successfully.","jetpack"),a.label),{type:"snackbar",isDismissible:!0}),t.select(i.store).getCurrentPostId()&&n(h()))}catch(e){let t=__("Error connecting account.","jetpack");"object"==typeof e&&"message"in e&&e.message&&(t=`${t} ${e.message}`),a(t,{type:"snackbar",isDismissible:!0})}finally{n(C(!1))}}}function B(e,t){return{type:c.$Q,connectionId:e,data:t}}function y(e,t=!0){return{type:c.fV,connectionId:e,updating:t}}function w(e,t){return async function({dispatch:n,select:a}){const{createErrorNotice:i,createSuccessNotice:l}=(0,o.dispatch)(r.store),c=a.getConnectionById(e);try{const r=`/jetpack/v4/social/connections/${e}`;n(B(e,t)),n(y(e));await s()({method:"POST",path:r,data:t})&&l(__("Account updated successfully.","jetpack"),{type:"snackbar",isDismissible:!0})}catch(t){let r=__("Error updating account.","jetpack");"object"==typeof t&&"message"in t&&t.message&&(r=`${r} ${t.message}`),n(B(e,c)),i(r,{type:"snackbar",isDismissible:!0})}finally{n(y(e,!1))}}}},74442:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>c,F1:()=>l,LH:()=>s,b1:()=>r,dz:()=>o,es:()=>a,fI:()=>d,fV:()=>u,oI:()=>i});const r="SET_CONNECTIONS",a="ADD_CONNECTION",s="TOGGLE_CONNECTION",o="DELETE_CONNECTION",i="DELETING_CONNECTION",l="CREATING_CONNECTION",c="UPDATE_CONNECTION",u="UPDATING_CONNECTION",d="SET_KEYRING_RESULT"},54725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(21052),a=n(23013),s=n(371),o=n(72438),i=n(4462),l=n(64704);const c={...s.ZP,...i.ZP,...r.ZP,...o.Z,...a,...l.ZP}},371:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,dz:()=>o,ff:()=>i});var r=n(9818),a=n(23177),s=n(4957);const o="SET_JETPACK_SETTINGS";function i(e){return{type:o,options:e}}const l={updateJetpackSettings:function*(e){try{yield i({is_updating:!0}),yield i(e),yield(0,s.RF)(e);const t=yield(0,s.es)();return yield i(t),!0}catch(e){const t=(0,r.select)(a.Eg).getJetpackSettings();return yield i(t),!1}finally{yield i({is_updating:!1})}},setJetpackSettings:i}},72438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4957),a=n(21052),s=n(4462);const o={refreshJetpackSocialSettings:function*(){try{yield(0,a.hi)(),yield(0,s.ds)();const e=yield(0,r.mu)();return yield(0,a.Wh)(e.jetpack_social_autoconvert_images),yield(0,s.ch)(e.jetpack_social_image_generator_settings),!0}catch(e){return!1}finally{yield(0,a.Au)(),yield(0,s.Gr)()}}}},4462:(e,t,n)=>{"use strict";n.d(t,{Gr:()=>l,ZP:()=>u,ch:()=>c,ds:()=>i,kg:()=>o});var r=n(9818),a=n(23177),s=n(4957);const o="SET_SOCIAL_IMAGE_GENERATOR_SETTINGS";function i(){return c({isUpdating:!0})}function l(){return c({isUpdating:!1})}function c(e){return{type:o,options:e}}const u={updateSocialImageGeneratorSettings:function*(e){try{yield i(),yield c(e),yield(0,s.Ux)(e);const t=yield(0,s.oB)();return yield c(t.jetpack_social_image_generator_settings),!0}catch(e){const t=(0,r.select)(a.Eg).getSocialImageGeneratorSettings();return yield c(t),!1}finally{yield l()}},setSocialImageGeneratorSettings:c,refreshSocialImageGeneratorSettings:function*(){try{yield i();const e=yield(0,s.oB)();return yield c(e.jetpack_social_image_generator_settings),!0}catch(e){return!1}finally{yield l()}}}},64704:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>c});var r=n(9818),a=n(23177),s=n(4957),o=n(371);function i(){return(0,o.ff)({social_notes_is_updating:!0})}function l(){return(0,o.ff)({social_notes_is_updating:!1})}const c={updateSocialNotesSettings:function*(e){try{yield i(),yield(0,o.ff)(e),yield(0,s.RF)(e);const t=yield(0,s.es)();return yield(0,o.ff)(t),!0}catch(e){const t=(0,r.select)(a.Eg).getSocialNotesSettings();return yield(0,o.ff)(t),!1}finally{yield l()}},updateSocialNotesConfig:function*(e){const t=(0,r.select)(a.Eg).getSocialNotesConfig(),n={...t,...e};try{yield(0,o.ff)({social_notes_config:n}),yield(0,s.RF)({social_notes_config:e});const t=yield(0,s.es)();return yield(0,o.ff)(t),!0}catch(e){return yield(0,o.ff)({social_notes_config:t}),!1}},refreshSocialNotesSettings:function*(){try{yield i();const e=yield(0,s.es)();return yield(0,o.ff)(e),!0}catch(e){return!1}finally{yield l()}}}},4957:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>f,RF:()=>m,Ux:()=>A,ZP:()=>b,es:()=>p,mu:()=>E,oB:()=>g,wi:()=>h});var r=n(86989),a=n.n(r);const s="FETCH_JETPACK_SETTINGS",o="UPDATE_JETPACK_SETTINGS",i="FETCH_SOCIAL_IMAGE_GENERATOR_SETTINGS",l="UPDATE_SOCIAL_IMAGE_GENERATOR_SETTINGS",c="FETCH_AUTO_CONVERSION_SETTINGS",u="UPDATE_AUTO_CONVERSION_SETTINGS",d="FETCH_JETPACK_SOCIAL_SETTINGS",p=()=>({type:s}),m=e=>({type:o,settings:e}),g=()=>({type:i}),A=e=>({type:l,settings:e}),h=()=>({type:c}),E=()=>({type:d}),f=e=>({type:u,settings:e}),b={[s]:function(){return a()({path:"/jetpack/v4/social/settings"})},[o]:function(e){return a()({path:"/jetpack/v4/social/settings",method:"POST",data:e.settings})},[i]:function(){return a()({path:"/wp/v2/settings?_fields=jetpack_social_image_generator_settings"})},[l]:function(e){return a()({path:"/wp/v2/settings",method:"POST",data:{jetpack_social_image_generator_settings:e.settings}})},[c]:function(){return a()({path:"/wp/v2/settings?_fields=jetpack_social_autoconvert_images"})},[u]:function(e){return a()({path:"/wp/v2/settings",method:"POST",data:{jetpack_social_autoconvert_images:e.settings}})},[d]:function(){return a()({path:"/wp/v2/settings?_fields=jetpack_social_autoconvert_images,jetpack_social_image_generator_settings"})}}},23177:(e,t,n)=>{"use strict";n.d(t,{Bb:()=>h,Cd:()=>A,Eg:()=>c,M$:()=>p,cs:()=>g,h:()=>f,qk:()=>m,uJ:()=>d,wV:()=>E});var r=n(9818),a=n(54725),s=n(4957),o=n(45272),i=n(15781),l=n(22987);const c="jetpack-social-plugin",u={reducer:o.Z,actions:a.Z,selectors:l.Z,resolvers:i.ZP,controls:s.ZP,initialState:window?.jetpackSocialInitialState||window?.Initial_State?.socialInitialState||window?.Jetpack_Editor_Initial_State?.social||{}},d="facebook",p="instagram-business",m="linkedin",g="mastodon",A="nextdoor",h="tumblr",E="twitter",f=(0,r.createReduxStore)(c,u);(0,r.register)(f)},20750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(21052);const a=(e={},t)=>t.type===r.wO?{...e,...t.options}:e},71837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(74442);const a=(e={},t)=>{switch(t.type){case r.es:return{...e,connections:[...e.connections,t.connection]};case r.b1:return{...e,connections:t.connections};case r.dz:return{...e,connections:e.connections.filter((({connection_id:e})=>e!==t.connectionId))};case r.oI:{const n=new Set(e.deletingConnections);return t.deleting?n.add(t.connectionId):n.delete(t.connectionId),{...e,deletingConnections:[...n]}}case r.F1:return{...e,creatingConnection:t.creating};case r.$Q:return{...e,connections:e.connections.map((e=>e.connection_id===t.connectionId?{...e,...t.data}:e))};case r.fV:{const n=new Set(e.updatingConnections);return t.updating?n.add(t.connectionId):n.delete(t.connectionId),{...e,updatingConnections:[...n]}}case r.fI:return{...e,keyringResult:t.keyringResult};case r.LH:return{...e,connections:e.connections.map((e=>(e.connection_id?e.connection_id===t.connectionId:e.id===t.connectionId)?{...e,enabled:!e.enabled}:e))}}return e}},45272:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(9818),a=n(20750),s=n(71837),o=n(80697),i=n(35652),l=n(28696),c=n(54489);const u=(0,r.combineReducers)({sharesData:i.Z,siteData:l.Z,connectionData:s.Z,jetpackSettings:o.Z,socialImageGeneratorSettings:c.Z,autoConversionSettings:a.Z,hasPaidPlan:(e=!1)=>e,userConnectionUrl:(e="")=>e,useAdminUiV1:(e=!1)=>e,hasPaidFeatures:(e=!1)=>e,connectionRefreshPath:(e="")=>e})},80697:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(371);const a=(e={},t)=>t.type===r.dz?{...e,...t.options}:e},35652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(e={})=>e},28696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(e={})=>e},54489:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4462);const a=(e={},t)=>t.type===r.kg?{...e,...t.options}:e},15781:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>c});var r=n(12238),a=n(21052),s=n(23013),o=n(371),i=n(4462),l=n(4957);const c={getJetpackSettings:function*(){try{const e=yield(0,l.es)();if(e)return(0,o.ff)(e)}catch(e){console.log(e)}},getSocialImageGeneratorSettings:function*(){try{const e=yield(0,l.oB)();if(e)return(0,i.ch)(e.jetpack_social_image_generator_settings)}catch(e){console.log(e)}},getAutoConversionSettings:function*(){try{const e=yield(0,l.wi)();if(e)return(0,a.Wh)(e.jetpack_social_autoconvert_images)}catch(e){console.log(e)}},getConnections:function(){return function({dispatch:e,registry:t}){const n=t.select(r.store);if(!n.getCurrentPostId())return;const a=n.getEditedPostAttribute("jetpack_publicize_connections");e((0,s.setConnections)(a||[]))}}}},68113:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={getAutoConversionSettings:e=>e.autoConversionSettings,isAutoConversionAvailable:e=>e.autoConversionSettings.available,isAutoConversionEnabled:e=>e.autoConversionSettings.available&&e.autoConversionSettings.enabled,isAutoConversionSettingsUpdating:e=>e.autoConversionSettings.isUpdating}},43354:(e,t,n)=>{"use strict";function r(e){return e.connectionData?.connections??[]}function a(e,t){return r(e).find((e=>e.connection_id===t))}function s(e,t){return r(e).filter((({service_name:e})=>e===t))}function o(e){return e.connectionData?.adminUrl??null}function i(e){return r(e).length>0}function l(e){return r(e).filter((e=>!1===e.test_success))}function c(e){return r(e).filter((e=>"must_reauth"===e.test_success)).map((e=>e.service_name))}function u(e){return r(e).filter((e=>e.enabled))}function d(e){return r(e).filter((e=>!e.enabled))}function p(e,t,{forceDefaults:n=!1}={}){let a="",s="",o="";if(!n){const n=r(e).find((({service_name:e})=>t===e));if(n){const{display_name:e,profile_display_name:r,profile_picture:i}=n;a="twitter"===t?r:e,o="twitter"===t?e:n.username,s=i}}return{displayName:a,profileImage:s,username:o}}function m(e){return e.connectionData?.deletingConnections??[]}function g(e){return e.connectionData?.updatingConnections??[]}function A(e){return e.connectionData?.creatingConnection??!1}function h(e,t){return s(e,"mastodon").some((e=>e.external_display===t))}function E(e){return e.connectionData?.services??[]}function f(e){return e.connectionData?.keyringResult}n.r(t),n.d(t,{getConnectionById:()=>a,getConnectionProfileDetails:()=>p,getConnections:()=>r,getConnectionsAdminUrl:()=>o,getConnectionsByService:()=>s,getDeletingConnections:()=>m,getDisabledConnections:()=>d,getEnabledConnections:()=>u,getFailedConnections:()=>l,getKeyringResult:()=>f,getMustReauthConnections:()=>c,getServices:()=>E,getUpdatingConnections:()=>g,hasConnections:()=>i,isCreatingConnection:()=>A,isMastodonAccountAlreadyConnected:()=>h})},22987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(68113),a=n(43354),s=n(82836),o=n(31473),i=n(85675),l=n(45073);const c={...i.Z,...a,...s.Z,...o,...l.Z,...r.Z,userConnectionUrl:e=>e.userConnectionUrl,useAdminUiV1:e=>e.useAdminUiV1,hasPaidFeatures:e=>e.hasPaidFeatures,connectionRefreshPath:e=>e.connectionRefreshPath}},82836:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={getJetpackSettings:e=>e.jetpackSettings,isModuleEnabled:e=>e.jetpackSettings.publicize_active,showPricingPage:e=>e.jetpackSettings.show_pricing_page,isUpdatingJetpackSettings:e=>e.jetpackSettings.is_updating,hasPaidPlan:e=>!(e.jetpackSettings?.showNudge??1),isEnhancedPublishingEnabled:e=>e.jetpackSettings?.isEnhancedPublishingEnabled??!1,getDismissedNotices:e=>e.jetpackSettings?.dismissedNotices,isSocialNotesEnabled:e=>e.jetpackSettings?.social_notes_enabled,isSocialNotesSettingsUpdating:e=>e.jetpackSettings?.social_notes_is_updating,getSocialNotesConfig:e=>e.jetpackSettings?.social_notes_config??{}}},31473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getScheduledSharesCount:()=>l,getShareLimit:()=>o,getSharedPostsCount:()=>u,getSharesUsedCount:()=>i,getTotalSharesCount:()=>c,isShareLimitEnabled:()=>a,numberOfSharesRemaining:()=>p,shouldShowAdvancedPlanNudge:()=>d,showShareLimits:()=>s});var r=n(82836);function a(e){return e.sharesData?.is_share_limit_enabled??!1}function s(e){return!r.Z.hasPaidPlan(e)&&!e.hasPaidPlan&&a(e)}function o(e){return e.sharesData?.share_limit??30}function i(e){return e.sharesData?.publicized_count??0}function l(e){return e.sharesData?.to_be_publicized_count??0}function c(e){const t=i(e)+l(e);return Math.max(t,0)}function u(e){return e.sharesData?.shared_posts_count??0}function d(e){return e.sharesData?.show_advanced_plan_upgrade_nudge??!1}function p(e,t={}){if(!s(e))return 1/0;const{includeScheduled:n}={includeScheduled:!0,...t},r=i(e),a=o(e),c=n?l(e):0;return Math.max(a-r-c,0)}},85675:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={getAdminUrl:e=>e.siteData?.adminUrl??null,getAPIRootUrl:e=>e.siteData?.apiRoot??null,getAPINonce:e=>e.siteData?.apiNonce??null,getRegistrationNonce:e=>e.siteData?.registrationNonce??null,getSiteSuffix:e=>e.siteData?.siteSuffix??null,getBlogID:e=>e.siteData?.blogID??null,getPluginVersion:e=>e.siteData?.pluginVersion??null}},45073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={getSocialImageGeneratorSettings:e=>e.socialImageGeneratorSettings,isSocialImageGeneratorAvailable:e=>e.socialImageGeneratorSettings.available,isSocialImageGeneratorEnabled:e=>e.socialImageGeneratorSettings.enabled,isUpdatingSocialImageGeneratorSettings:e=>e.socialImageGeneratorSettings.isUpdating,getSocialImageGeneratorDefaultTemplate:e=>e.socialImageGeneratorSettings.template}},5463:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});const r=255;function a(){return r}},12677:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(13419);function a(){return(0,r.Pb)()?.social?.supportedAdditionalConnections||[]}},42032:(e,t,n)=>{"use strict";n.d(t,{getShareMessageMaxLength:()=>r.A,getSupportedAdditionalConnections:()=>a.h,requestExternalAccess:()=>s.Y});var r=n(5463),a=n(12677),s=n(28574),o=n(581);n.o(o,"useSyncPostDataToStore")&&n.d(t,{useSyncPostDataToStore:function(){return o.useSyncPostDataToStore}})},28574:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var r=n(7211);const a=(e,t)=>{const n=new r.Z;let a;n.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+n.getScreenCenterSpecs(780,700)),n.once("close",(()=>{t(a?.ID?a:{})})),n.on("message",(e=>{a=e?.data}))}},581:()=>{},13419:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>u.Z,FK:()=>c.FK,HD:()=>c.HD,M6:()=>s.M6,OZ:()=>o.Z,Pb:()=>r.Z,Pm:()=>m.Z,Qq:()=>c.Qq,Rl:()=>c.Rl,T:()=>l.Z,Ug:()=>s.Ug,Wp:()=>s.Wp,X1:()=>c.X1,_D:()=>c._D,aQ:()=>s.aQ,dM:()=>g.d,el:()=>p.Z,lQ:()=>a.Z,lt:()=>g.l,m3:()=>c.m3,o_:()=>i.Z,z$:()=>d.Z});var r=n(50148),a=n(35004),s=n(99505),o=n(48052),i=n(76714),l=n(80354),c=n(75404),u=n(68586),d=n(61053),p=n(11380),m=n(6342),g=n(96959);n(39058)},6342:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78868),a=n(99196),s=n.n(a);const o=()=>s().createElement(r.Z,{className:"jetpack-editor-panel-logo",height:16,logoColor:"#1E1E1E",showText:!1})},96959:(e,t,n)=>{"use strict";n.d(t,{d:()=>s,l:()=>o});var r=n(69307),a=n(12953);function s(e){const t={};let n="span",a=e.icon;const s=document.createElement("div");s.innerHTML=e.icon;const o=s.querySelector("svg");return o&&(n="svg",a=o.innerHTML,Array.from(o.attributes).forEach((({nodeName:e,nodeValue:n})=>t[e]=n))),(0,r.createElement)(n,{...t,dangerouslySetInnerHTML:{__html:a||""}})}function o(e){return{src:s(e),foreground:(0,a.Z)()}}},12953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99505);const a="#069e08";function s(){return(0,r.Ug)()||(0,r.Wp)()?null:a}},50148:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r="Jetpack_Editor_Initial_State";function a(){return"object"==typeof window?window?.[r]??null:null}},48052:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(50148);function a(e){const t=(0,r.Z)(),n=t?.available_blocks?.[e]?.available??!1,a=t?.available_blocks?.[e]?.unavailable_reason??"unknown";return{available:n,...!n&&{details:t?.available_blocks?.[e]?.details??[],unavailableReason:a}}}},35004:(e,t,n)=>{"use strict";function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}n.d(t,{Z:()=>r})},61053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(6975),a=n(31294),s=n(69307);const{tracks:o}=r.Z,{recordEvent:i}=o,l=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:l={}}={})=>{const[c,u]=(0,s.useState)(!1),{isUserConnected:d,isRegistered:p,userConnectionData:m={}}=(0,a.Z)(),{wpcomUser:{login:g,ID:A}={},blogId:h}=m.currentUser||{},E=(0,s.useCallback)((async(e,t={})=>{d&&A&&g&&i(e,t)}),[d,A,g]);return(0,s.useEffect)((()=>{d&&A&&g&&h&&r.Z.initialize(A,g,{blog_id:h})}),[h,A,g,d]),(0,s.useEffect)((()=>{const r=e?`${t}_${e}_${n}`:null;p&&r&&(c||(E(r,l),u(!0)))}),[c,t,e,n,p,l,E]),{recordEvent:E,tracks:o}}},11380:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),a=n(69307),s=n(39058);const o=e=>{const{isModuleActive:t,isChangingStatus:n,isLoadingModules:o}=(0,r.useSelect)((t=>{const n=t(s.p);return{isModuleActive:n.isModuleActive(e),isChangingStatus:n.isModuleUpdating(e),isLoadingModules:n.areModulesLoading(e)}}),[s.p]),{updateJetpackModuleStatus:i}=(0,r.useDispatch)(s.p),l=(0,a.useCallback)((t=>i({name:e,active:t})),[e,i]);return(0,a.useMemo)((()=>({isLoadingModules:o,isChangingStatus:n,isModuleActive:t,changeStatus:l})),[o,n,t,l])}},68586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(50148);function a(){return(0,r.Z)()?.jetpack?.is_current_user_connected??!1}},44166:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,rW:()=>d});var r=n(9818),a=n(99505),s=n(82162),o=n(39058);const i="SET_JETPACK_MODULES",l="SET_MODULE_UPDATING";function c(e){return d({isLoading:e})}function u(e,t){return{type:l,name:e,isUpdating:t}}function d(e){return{type:i,options:e}}const p={updateJetpackModuleStatus:function*(e){try{yield u(e.name,!0),yield(0,s.zL)(e);const t=yield(0,s.Bs)();return yield d({data:t}),!0}catch(e){const t=(0,r.select)(o.p).getJetpackModules();return yield d(t),!1}finally{yield u(e.name,!1)}},setJetpackModules:d,fetchModules:function*(){if((0,a.Wp)())return!0;try{yield c(!0);const e=yield(0,s.Bs)();return yield d({data:e}),!0}catch(e){const t=(0,r.select)(o.p).getJetpackModules();return yield d(t),!1}finally{yield c(!1)}}}},82162:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>i,ZP:()=>c,zL:()=>l});var r=n(86989),a=n.n(r);const s="FETCH_JETPACK_MODULES",o="UPDATE_JETPACK_MODULE_STATUS",i=()=>({type:s}),l=e=>({type:o,settings:e}),c={[s]:function(){return a()({path:"/jetpack/v4/module/all",method:"GET"})},[o]:function({settings:e}){return a()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},39058:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(9818),a=n(44166),s=n(82162),o=n(42469),i=n(55133),l=n(43524);const c="jetpack-modules",u=(0,r.createReduxStore)(c,{reducer:o.Z,actions:a.ZP,controls:s.ZP,resolvers:i.Z,selectors:l.Z});(0,r.register)(u);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,r.dispatch)(c).setJetpackModules({data:{...d}})},42469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r={isLoading:!1,isUpdating:{},data:{}},a=(e=r,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},55133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(44166),a=n(82162);const s={getJetpackModules:function*(){try{const e=yield(0,a.Bs)();if(e)return(0,r.rW)({data:e})}catch(e){console.error(e)}}}},43524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(99505);const a={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,r.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},75404:(e,t,n)=>{"use strict";n.d(t,{FK:()=>A,HD:()=>h,Qq:()=>u,Rl:()=>m,X1:()=>d,_D:()=>p,m3:()=>E});var r=n(65736),a=n(96483),s=n(92819),o=n(50148),i=n(48052),l=n(35004),c=n(99505);const __=r.__;function u({planSlug:e,plan:t,postId:n,postType:r}){const o=(0,s.startsWith)(e,"jetpack_")?e:(0,s.get)(t,["path_slug"]),i=(void 0===r?()=>{const e=new URLSearchParams(window.location.search);return(0,a.addQueryArgs)(window.location.protocol+`//${(0,l.Z)().replace("::","/")}/wp-admin/site-editor.php`,{postId:e.get("postId"),postType:e.get("postType"),plan_upgraded:1})}:()=>{const e=["page","post"].includes(r)?"":"edit";return(0,c.Wp)()?(0,a.addQueryArgs)("/"+(0,s.compact)([e,r,(0,l.Z)(),n]).join("/"),{plan_upgraded:1}):(0,a.addQueryArgs)(window.location.protocol+`//${(0,l.Z)().replace("::","/")}/wp-admin/post.php`,{action:"edit",post:n,plan_upgraded:1})})();return(0,c.Ug)()?(0,a.addQueryArgs)(`https://wordpress.com/plans/${(0,l.Z)()}`,{redirect_to:i,customerType:"business"}):o&&(0,a.addQueryArgs)(`https://wordpress.com/checkout/${(0,l.Z)()}/${o}`,{redirect_to:i})}function d(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{available:n,unavailableReason:r}=(0,i.Z)(t);return!n&&"missing_plan"===r}function p(e,t){return"missing_plan"===e&&t.required_plan}function m(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{details:n,unavailableReason:r}=(0,i.Z)(t);return p(r,n)}const g=[{name:"core/cover",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"video",description:__("Upgrade your plan to use video covers","jetpack")},{name:"core/audio",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"audio",description:__("Upgrade your plan to upload audio","jetpack")}];function A(){return(0,s.get)((0,o.Z)(),"jetpack.enable_upgrade_nudge",!1)}const h=e=>(0,s.map)(g,"name").includes(e),E=e=>(0,s.head)((0,s.filter)(g,(({name:t})=>t===e)))},76714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(98817),a=n(48052);function s(e,t){const{available:n,unavailableReason:s}=(0,a.Z)(e);return!!n&&(0,r.registerPlugin)(`jetpack-${e}`,t)}},99505:(e,t,n)=>{"use strict";n.d(t,{M6:()=>i,Ug:()=>o,Wp:()=>s,aQ:()=>l});var r=n(50148);function a(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function s(){return"simple"===a()}function o(){return"atomic"===a()}function i(){const e=(0,r.Z)();return e?.jetpack?.is_private_site??!1}function l(){const e=(0,r.Z)();return e?.jetpack?.is_coming_soon??!1}},80354:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(82674),a=n.n(r),s=n(94333);const o=e=>(0,s.createHigherOrderComponent)((t=>n=>React.createElement(t,a()({},n,{className:n.name===e?"has-warning is-interactive":n.className}))),"withHasWarningIsInteractiveClassNames")},56286:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>r.Y});var r=n(49614);n(9839)},9839:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=[{name:"amazon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M13.582 8.182c-1.648.185-3.802.308-5.344.984-1.781.769-3.03 2.337-3.03 4.644 0 2.953 1.86 4.429 4.253 4.429 2.02 0 3.125-.477 4.685-2.065.516.747.685 1.109 1.629 1.894a.59.59 0 0 0 .672-.066l.006.006c.567-.505 1.599-1.401 2.18-1.888.231-.188.19-.496.009-.754-.52-.718-1.072-1.303-1.072-2.634V8.305c0-1.876.133-3.599-1.249-4.891C15.23 2.369 13.422 2 12.04 2 9.336 2 6.318 3.01 5.686 6.351c-.068.355.191.542.423.594l2.754.298c.258-.013.445-.266.494-.523.236-1.151 1.2-1.706 2.284-1.706.584 0 1.249.215 1.595.738.398.584.346 1.384.346 2.061zm-.533 5.906c-.451.8-1.169 1.291-1.967 1.291-1.09 0-1.728-.83-1.728-2.061 0-2.42 2.171-2.86 4.227-2.86v.615c.001 1.108.027 2.031-.532 3.015m7.634 5.251C18.329 21.076 14.917 22 11.979 22c-4.118 0-7.826-1.522-10.632-4.057-.22-.199-.024-.471.241-.317 3.027 1.762 6.771 2.823 10.639 2.823 2.608 0 5.476-.541 8.115-1.66.397-.169.73.262.341.55m.653 1.704c-.194.163-.379.076-.293-.139.284-.71.92-2.298.619-2.684s-1.99-.183-2.749-.092c-.23.027-.266-.173-.059-.319 1.348-.946 3.555-.673 3.811-.356.26.32-.066 2.533-1.329 3.59"})))},{name:"behance",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M7.799 5.698c.589 0 1.12.051 1.606.156q.722.155 1.241.507.516.351.804.938c.188.387.281.871.281 1.443q0 .93-.421 1.551-.424.62-1.255 1.014 1.133.328 1.689 1.146.559.822.557 1.975 0 .935-.359 1.612a3.14 3.14 0 0 1-.973 1.114q-.613.432-1.399.637A6.1 6.1 0 0 1 7.963 18H2V5.698zm-.35 4.97q.721 0 1.192-.345.465-.344.463-1.119 0-.43-.152-.707a1.1 1.1 0 0 0-.416-.427 1.7 1.7 0 0 0-.596-.216 3.6 3.6 0 0 0-.697-.06H4.709v2.874zm.151 5.237q.401.001.759-.077c.243-.053.457-.137.637-.261.182-.12.332-.283.441-.491q.164-.31.163-.798-.002-.948-.533-1.357c-.356-.27-.83-.404-1.413-.404H4.709v3.388zm8.562-.041q.552.538 1.583.538.74 0 1.277-.374c.354-.248.571-.514.654-.79h2.155c-.347 1.072-.872 1.838-1.589 2.299-.708.463-1.572.693-2.58.693q-1.05 0-1.899-.337a4 4 0 0 1-1.439-.958 4.4 4.4 0 0 1-.904-1.484 5.4 5.4 0 0 1-.32-1.899q0-1 .329-1.863a4.4 4.4 0 0 1 .933-1.492q.607-.63 1.444-.994a4.6 4.6 0 0 1 1.857-.363q1.131-.001 1.98.44a3.94 3.94 0 0 1 1.389 1.181 4.8 4.8 0 0 1 .783 1.69q.24.947.171 1.983h-6.428c-.001.706.237 1.372.604 1.73m2.811-4.68c-.291-.321-.783-.496-1.384-.496q-.585 0-.973.2a2 2 0 0 0-.621.491 1.8 1.8 0 0 0-.328.628 2.7 2.7 0 0 0-.111.587h3.98c-.058-.625-.271-1.085-.563-1.41m-3.916-3.446h4.985V6.524h-4.985z"})))},{name:"blogger",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M14.722 14.019a.654.654 0 0 1-.654.654H9.977a.654.654 0 0 1 0-1.308h4.091c.361 0 .654.293.654.654m-4.741-3.321h2.038a.692.692 0 0 0 0-1.384H9.981a.692.692 0 0 0 0 1.384M21 5v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-3.456 6.39a.72.72 0 0 0-.72-.72h-.607l-.013.001a.72.72 0 0 1-.718-.668l-.001-.008a3.6 3.6 0 0 0-3.599-3.599H10.07a3.6 3.6 0 0 0-3.599 3.599v3.947a3.6 3.6 0 0 0 3.599 3.599h3.874a3.6 3.6 0 0 0 3.599-3.599z"})))},{name:"blogger-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.779 9.904h-.981l-.021.001a1.163 1.163 0 0 1-1.16-1.079l-.001-.013A5.813 5.813 0 0 0 11.803 3H8.871a5.813 5.813 0 0 0-5.813 5.813v6.375a5.813 5.813 0 0 0 5.813 5.813h6.257a5.814 5.814 0 0 0 5.813-5.813l.002-4.121a1.164 1.164 0 0 0-1.164-1.163M8.726 7.713h3.291a1.117 1.117 0 1 1 0 2.234H8.726a1.117 1.117 0 1 1 0-2.234m6.601 8.657H8.72a1.057 1.057 0 1 1 0-2.114h6.607a1.057 1.057 0 1 1 0 2.114"})))},{name:"bluesky",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.2 3.3c-.5-.2-1.4-.5-3.6 1C15.4 6 12.9 9.2 12 11c-.9-1.8-3.4-5-5.7-6.7-2.2-1.6-3-1.3-3.6-1S2 4.6 2 5.1s.3 4.7.5 5.4c.7 2.3 3.1 3.1 5.3 2.8-3.3.5-6.2 1.7-2.4 5.9 4.2 4.3 5.7-.9 6.5-3.6.8 2.7 1.7 7.7 6.4 3.6 3.6-3.6 1-5.4-2.3-5.9 2.2.2 4.6-.5 5.3-2.8.4-.7.7-4.8.7-5.4 0-.5-.1-1.5-.8-1.8"})))},{name:"codepen",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m22.016 8.84-.007-.037q-.006-.037-.015-.072-.007-.022-.013-.042l-.023-.062-.02-.042a.4.4 0 0 0-.03-.057l-.025-.038-.035-.052-.03-.037q-.021-.026-.043-.045-.015-.018-.035-.035a.4.4 0 0 0-.048-.04l-.037-.03-.015-.012-9.161-6.096a.86.86 0 0 0-.955 0L2.359 8.237l-.015.012-.038.028-.048.04a.638.638 0 0 0-.078.082q-.018.018-.03.037-.018.026-.035.052l-.025.038q-.016.031-.03.059l-.02.041a1 1 0 0 0-.034.106q-.01.034-.016.071-.003.02-.006.037a1 1 0 0 0-.009.114v6.093q0 .056.008.112l.007.038q.006.035.015.072a.2.2 0 0 0 .013.04q.01.032.022.063l.02.04a.4.4 0 0 0 .055.096l.035.052.03.037.042.045.035.035q.023.02.048.04l.038.03.013.01 9.163 6.095a.858.858 0 0 0 .959.004l9.163-6.095.015-.01q.02-.015.037-.03l.048-.04q.02-.017.035-.035.025-.024.043-.045l.03-.037.035-.052.025-.038a.4.4 0 0 0 .03-.058l.02-.04.023-.063c.003-.013.01-.027.013-.04q.009-.037.015-.072l.007-.037q.006-.062.007-.117V8.954a1 1 0 0 0-.008-.114m-9.154-4.376 6.751 4.49-3.016 2.013-3.735-2.492zm-1.724 0v4.009l-3.735 2.494-3.014-2.013zm-7.439 6.098L5.853 12l-2.155 1.438zm7.439 8.974-6.749-4.491 3.015-2.011 3.735 2.492zM12 14.035 8.953 12 12 9.966 15.047 12zm.862 5.501v-4.009l3.735-2.492 3.016 2.011zm7.441-6.098L18.147 12l2.156-1.438z"})))},{name:"dribbble",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10m8.434-8.631c-.292-.092-2.644-.794-5.32-.365 1.117 3.07 1.572 5.57 1.659 6.09a8.56 8.56 0 0 0 3.661-5.725m-5.098 6.507c-.127-.749-.623-3.361-1.822-6.477l-.056.019c-4.818 1.679-6.547 5.02-6.701 5.334A8.5 8.5 0 0 0 12 20.555a8.5 8.5 0 0 0 3.336-.679m-9.682-2.152c.193-.331 2.538-4.213 6.943-5.637q.167-.054.337-.102a29 29 0 0 0-.692-1.45c-4.266 1.277-8.405 1.223-8.778 1.216a8.497 8.497 0 0 0 2.19 5.973m-2.015-7.46c.382.005 3.901.02 7.897-1.041a55 55 0 0 0-3.167-4.94 8.57 8.57 0 0 0-4.73 5.981m6.359-6.555a46 46 0 0 1 3.187 5c3.037-1.138 4.323-2.867 4.477-3.085a8.51 8.51 0 0 0-7.664-1.915m8.614 2.903c-.18.243-1.612 2.078-4.77 3.367a27 27 0 0 1 .751 1.678c2.842-.357 5.666.215 5.948.275a8.5 8.5 0 0 0-1.929-5.32"})))},{name:"dropbox",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 6.134 6.069 9.797 2 6.54l5.883-3.843zm-10 6.92 5.883 3.843L12 13.459 6.069 9.797zm10 .405 4.116 3.439L22 13.054l-4.069-3.257zM22 6.54l-5.884-3.843L12 6.134l5.931 3.663zm-9.989 7.66-4.129 3.426-1.767-1.153v1.291l5.896 3.539 5.897-3.539v-1.291l-1.769 1.153z"})))},{name:"eventbrite",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18.041 3.931 5.959 3A2.96 2.96 0 0 0 3 5.959v12.083A2.96 2.96 0 0 0 5.959 21l12.083-.931C19.699 19.983 21 18.744 21 17.11V6.89c0-1.634-1.259-2.863-2.959-2.959M16.933 8.17c-.082.215-.192.432-.378.551-.188.122-.489.132-.799.132-1.521 0-3.062-.048-4.607-.048q-.23 1.061-.451 2.128c.932-.004 1.873.005 2.81.005.726 0 1.462-.069 1.586.525.04.189-.001.426-.052.615-.105.38-.258.676-.625.783-.185.054-.408.058-.646.058-1.145 0-2.345.017-3.493.02-.169.772-.328 1.553-.489 2.333 1.57-.005 3.067-.041 4.633-.058.627-.007 1.085.194 1.009.85a2.2 2.2 0 0 1-.211.725c-.102.208-.248.376-.488.452-.237.075-.541.064-.862.078-.304.014-.614.008-.924.016-.309.009-.619.022-.919.022-1.253 0-2.429.08-3.683.073-.603-.004-1.014-.249-1.124-.757-.059-.273-.018-.58.036-.841a3543 3543 0 0 1 1.629-7.763c.056-.265.114-.511.225-.714a1.24 1.24 0 0 1 .79-.62c.368-.099.883-.047 1.344-.047.305 0 .612.008.914.016.925.026 1.817.03 2.747.053.304.007.615.016.915.016.621 0 1.17.073 1.245.614.039.288-.051.567-.132.783"})))},{name:"facebook",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10"})))},{name:"fediverse",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 743 743"},React.createElement("g",null,React.createElement("path",{d:"M181.131 275.137a68.9 68.9 0 0 1-29.465 29.328l161.758 162.389 38.998-19.764zm213.363 214.187-38.998 19.764 81.963 82.283a68.9 68.9 0 0 1 29.471-29.332zM581.646 339.391l-91.576 46.41 6.752 43.189 103.616-52.513a68.9 68.9 0 0 1-18.792-37.086m-144.738 73.351L220.383 522.477a68.9 68.9 0 0 1 18.795 37.089L443.66 455.934zM367.275 142.438l-104.48 203.97 30.848 30.967 110.623-215.957a68.9 68.9 0 0 1-36.991-18.98M235.621 399.459l-52.922 103.314a68.9 68.9 0 0 1 36.987 18.979l46.781-91.328zM150.768 304.918a68.9 68.9 0 0 1-34.416 7.195 69 69 0 0 1-6.651-.695l30.903 197.662a68.9 68.9 0 0 1 34.416-7.195 69 69 0 0 1 6.646.695zM239.342 560.545c.707 4.589.949 9.239.72 13.877a68.9 68.9 0 0 1-7.267 27.18l197.629 31.712c-.708-4.59-.95-9.24-.723-13.878a68.9 68.9 0 0 1 7.27-27.178zM601.133 377.199l-91.219 178.082a68.9 68.9 0 0 1 36.994 18.983l91.217-178.08a68.9 68.9 0 0 1-36.992-18.985M476.723 125.33a68.9 68.9 0 0 1-29.471 29.332l141.266 141.811a68.9 68.9 0 0 1 29.468-29.332zM347.787 104.631l-178.576 90.498a68.9 68.9 0 0 1 18.793 37.086l178.574-90.502a68.9 68.9 0 0 1-18.791-37.082M446.926 154.826a68.9 68.9 0 0 1-34.983 7.483 69 69 0 0 1-6.029-.633l15.818 101.291 43.163 6.926zm-16 167.028 37.4 239.482a68.9 68.9 0 0 1 33.914-6.943q3.625.206 7.207.791L474.09 328.777zM188.131 232.975c.734 4.66.988 9.383.758 14.095a68.9 68.9 0 0 1-7.16 26.983l101.369 16.281 19.923-38.908zm173.736 27.9-19.926 38.912 239.514 38.467a69 69 0 0 1-.695-13.719 68.9 68.9 0 0 1 7.349-27.324z"}),React.createElement("path",{fillOpacity:".996",d:"M412.284 156.054c34.538 1.882 64.061-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.882-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943M646.144 390.82c34.538 1.881 64.062-24.593 65.943-59.131s-24.592-64.061-59.13-65.943-64.062 24.593-65.943 59.131 24.592 64.061 59.13 65.943M495.086 685.719c34.538 1.881 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M167.866 633.211c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M116.692 305.86c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.881-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943"})))},{name:"feed",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M2 8.667V12c5.515 0 10 4.485 10 10h3.333c0-7.363-5.97-13.333-13.333-13.333M2 2v3.333c9.19 0 16.667 7.477 16.667 16.667H22C22 10.955 13.045 2 2 2m2.5 15a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"})))},{name:"flickr",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5m11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5"})))},{name:"foursquare",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17.573 2H6.905C5.434 2 5 3.107 5 3.805v16.948c0 .785.422 1.077.66 1.172.238.097.892.177 1.285-.275 0 0 5.035-5.843 5.122-5.93.132-.132.132-.132.262-.132h3.26c1.368 0 1.588-.977 1.732-1.552.078-.318.692-3.428 1.225-6.122l.675-3.368C19.56 2.893 19.14 2 17.573 2m-1.078 5.22c-.053.252-.372.518-.665.518h-4.157c-.467 0-.802.318-.802.787v.508c0 .467.337.798.805.798h3.528c.331 0 .655.362.583.715s-.407 2.102-.448 2.295c-.04.193-.262.523-.655.523h-2.88c-.523 0-.683.068-1.033.503-.35.437-3.505 4.223-3.505 4.223-.032.035-.063.027-.063-.015V4.852c0-.298.26-.648.648-.648h8.562c.315 0 .61.297.528.683z"})))},{name:"ghost",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M10.203 20.997H3.005v-3.599h7.198zm10.792-3.599h-7.193v3.599h7.193zm.003-7.198H3v3.599h17.998zm-7.195-7.197H3.005v3.599h10.798zm7.197 0h-3.599v3.599H21z"})))},{name:"github",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.419 2.865 8.166 6.839 9.489.5.09.682-.218.682-.484 0-.236-.009-.866-.014-1.699-2.782.602-3.369-1.34-3.369-1.34-.455-1.157-1.11-1.465-1.11-1.465-.909-.62.069-.608.069-.608 1.004.071 1.532 1.03 1.532 1.03.891 1.529 2.341 1.089 2.91.833.091-.647.349-1.086.635-1.337-2.22-.251-4.555-1.111-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.103-.254-.447-1.27.097-2.646 0 0 .84-.269 2.75 1.025A9.6 9.6 0 0 1 12 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.748-1.025 2.748-1.025.546 1.376.202 2.394.1 2.646.64.699 1.026 1.591 1.026 2.682 0 3.841-2.337 4.687-4.565 4.935.359.307.679.917.679 1.852 0 1.335-.012 2.415-.012 2.741 0 .269.18.579.688.481A10 10 0 0 0 22 12c0-5.523-4.477-10-10-10"})))},{name:"google",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05z"})))},{name:"google-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.05 16c-3.312 0-6-2.688-6-6s2.688-6 6-6c1.62 0 2.976.594 4.014 1.566L14.26 9.222c-.432-.408-1.188-.888-2.31-.888-1.986 0-3.606 1.65-3.606 3.672s1.62 3.672 3.606 3.672c2.298 0 3.144-1.59 3.3-2.532h-3.306v-2.238h5.616c.084.378.15.732.15 1.23 0 3.426-2.298 5.862-5.76 5.862"})))},{name:"google-plus",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-1.919 14.05a4.051 4.051 0 0 1 0-8.1c1.094 0 2.009.401 2.709 1.057l-1.15 1.118a2.23 2.23 0 0 0-1.559-.599c-1.341 0-2.434 1.114-2.434 2.479s1.094 2.479 2.434 2.479c1.551 0 2.122-1.073 2.227-1.709h-2.232v-1.511h3.791c.057.255.101.494.101.83.001 2.312-1.55 3.956-3.887 3.956M19 12.75h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19z"})))},{name:"google-plus-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M8 11h6.61c.06.35.11.7.11 1.16 0 4-2.68 6.84-6.72 6.84-3.87 0-7-3.13-7-7s3.13-7 7-7c1.89 0 3.47.69 4.69 1.83l-1.9 1.83c-.52-.5-1.43-1.08-2.79-1.08-2.39 0-4.34 1.98-4.34 4.42S5.61 16.42 8 16.42c2.77 0 3.81-1.99 3.97-3.02H8zm15 0h-2V9h-2v2h-2v2h2v2h2v-2h2"})))},{name:"instagram",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 4.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.671.31.42.163.72.358 1.035.673s.51.615.673 1.035c.123.317.27.794.31 1.671.043.949.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671-.163.42-.358.72-.673 1.035s-.615.51-1.035.673c-.317.123-.794.27-1.671.31-.949.043-1.233.052-3.637.052s-2.688-.009-3.637-.052c-.877-.04-1.354-.187-1.671-.31a2.8 2.8 0 0 1-1.035-.673 2.8 2.8 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.671.163-.42.358-.72.673-1.035s.615-.51 1.035-.673c.317-.123.794-.27 1.671-.31.949-.043 1.234-.052 3.637-.052M12 3c-2.444 0-2.751.01-3.711.054-.958.044-1.612.196-2.184.418a4.4 4.4 0 0 0-1.594 1.039c-.5.5-.808 1.002-1.038 1.594-.223.572-.375 1.226-.419 2.184C3.01 9.249 3 9.556 3 12s.01 2.751.054 3.711c.044.958.196 1.612.418 2.185.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.267.054 3.711.054s2.751-.01 3.711-.054c.958-.044 1.612-.196 2.185-.418a4.4 4.4 0 0 0 1.594-1.038c.5-.5.808-1.002 1.038-1.594.222-.572.375-1.227.418-2.185.044-.96.054-1.267.054-3.711s-.01-2.751-.054-3.711c-.044-.958-.196-1.612-.418-2.185A4.4 4.4 0 0 0 19.49 4.51c-.5-.5-1.002-.808-1.594-1.038-.572-.222-1.227-.375-2.185-.418C14.751 3.01 14.444 3 12 3m0 4.378a4.622 4.622 0 1 0 0 9.244 4.622 4.622 0 0 0 0-9.244M12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6m4.804-8.884a1.08 1.08 0 1 0 .001 2.161 1.08 1.08 0 0 0-.001-2.161"})))},{name:"json-feed",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m8.522 17.424.027.027c1.076-1.076 1.854-.993 3.154.306l2.053 2.053c2.136 2.136 4.131 2.028 6.515-.356l.729-.728-1.548-1.548-.373.373c-1.349 1.349-2.293 1.366-3.585.075l-2.409-2.409c-1.242-1.242-2.475-1.366-3.659-.381l-.232-.232c1.01-1.225.911-2.368-.29-3.568l-2.16-2.162c-1.317-1.317-1.308-2.236.058-3.602l.372-.372-1.54-1.54-.728.729c-2.393 2.393-2.525 4.346-.439 6.433l1.78 1.78c1.3 1.3 1.383 2.095.315 3.163l.008.008a1.384 1.384 0 0 0 1.952 1.951"}),React.createElement("circle",{cx:"13.089",cy:"10.905",r:"1.383"}),React.createElement("circle",{cx:"16.349",cy:"7.644",r:"1.383"}),React.createElement("circle",{cx:"19.61",cy:"4.383",r:"1.383"})))},{name:"link",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17 13H7v-2h10zm1-6h-1c-1.631 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1a4 4 0 0 0 4-4v-2a4 4 0 0 0-4-4M2 11v2a4 4 0 0 0 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.631 7 7 7H6a4 4 0 0 0-4 4"})))},{name:"linkedin",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.7 3H4.3A1.3 1.3 0 0 0 3 4.3v15.4A1.3 1.3 0 0 0 4.3 21h15.4a1.3 1.3 0 0 0 1.3-1.3V4.3A1.3 1.3 0 0 0 19.7 3M8.339 18.338H5.667v-8.59h2.672zM7.004 8.574a1.548 1.548 0 1 1-.002-3.096 1.548 1.548 0 0 1 .002 3.096m11.335 9.764H15.67v-4.177c0-.996-.017-2.278-1.387-2.278-1.389 0-1.601 1.086-1.601 2.206v4.249h-2.667v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.779 3.203 4.092v4.711z"})))},{name:"mail",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4.236-8 4.882-8-4.882V6h16z"})))},{name:"mastodon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M11.973 2.352c-2.468.02-4.842.286-6.225.921 0 0-2.742 1.229-2.742 5.415 0 .958-.018 2.105.012 3.32.1 4.094.75 8.128 4.535 9.129 1.745.462 3.244.56 4.45.494 2.19-.122 3.417-.781 3.417-.781l-.072-1.588s-1.565.491-3.32.431c-1.74-.06-3.576-.188-3.858-2.324a4 4 0 0 1-.04-.598s1.709.416 3.874.516c1.324.06 2.563-.076 3.824-.226 2.418-.29 4.524-1.78 4.79-3.141.416-2.144.38-5.232.38-5.232 0-4.186-2.74-5.415-2.74-5.415-1.383-.635-3.76-.9-6.227-.921zM9.18 5.622c1.028 0 1.804.395 2.318 1.185l.502.84.5-.84c.514-.79 1.292-1.186 2.32-1.186.888 0 1.605.313 2.15.922q.795.915.794 2.469v5.068h-2.008V9.16c0-1.037-.438-1.562-1.31-1.562-.966 0-1.448.622-1.448 1.857v2.693h-1.996V9.455c0-1.235-.484-1.857-1.45-1.857-.872 0-1.308.525-1.308 1.562v4.92H6.236V9.012q-.001-1.554.793-2.469c.547-.609 1.263-.922 2.15-.922"})))},{name:"medium",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M3 3v18h18V3zm15 4.26-1 .93a.28.28 0 0 0-.11.27v6.8a.27.27 0 0 0 .11.27l.94.93v.2h-4.75v-.2l1-1c.09-.1.09-.12.09-.27V9.74l-2.71 6.9h-.37L8 9.74v4.62a.67.67 0 0 0 .17.54l1.27 1.54v.2H5.86v-.2l1.27-1.54a.64.64 0 0 0 .17-.54V9a.5.5 0 0 0-.16-.4L6 7.26v-.2h3.52L12.23 13l2.38-5.94H18z"})))},{name:"medium-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{fillRule:"nonzero",d:"M7.423 6c3.27 0 5.922 2.686 5.922 6s-2.651 6-5.922 6S1.5 15.313 1.5 12s2.652-6 5.923-6m9.458.351c1.635 0 2.961 2.53 2.961 5.65 0 3.118-1.325 5.648-2.96 5.648S13.92 15.119 13.92 12s1.325-5.649 2.96-5.649m4.577.589c.576 0 1.042 2.265 1.042 5.06s-.466 5.06-1.042 5.06c-.575 0-1.04-2.265-1.04-5.06s.465-5.06 1.04-5.06"})))},{name:"microblog",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.641 17.086c1.294-1.522 2.067-3.438 2.067-5.521 0-4.957-4.371-8.972-9.763-8.972s-9.763 4.015-9.763 8.972 4.371 8.972 9.763 8.972a10.5 10.5 0 0 0 3.486-.59.315.315 0 0 1 .356.112c.816 1.101 2.09 1.876 3.506 2.191a.194.194 0 0 0 .192-.309 3.82 3.82 0 0 1 .162-4.858zm-3.065-6.575-2.514 1.909.912 3.022a.286.286 0 0 1-.437.317l-2.592-1.802-2.592 1.802a.285.285 0 0 1-.436-.317l.912-3.022-2.515-1.909a.285.285 0 0 1 .167-.513l3.155-.066 1.038-2.981a.285.285 0 0 1 .539 0l1.038 2.981 3.155.066a.285.285 0 0 1 .17.513"})))},{name:"nextdoor",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeMiterlimit:"10",viewBox:"0 0 130 130"},React.createElement("g",null,React.createElement("path",{d:"M64.25 3.531c-31.144.337-57.596 24.22-60.469 55.907-3.064 33.799 21.857 63.685 55.657 66.75s63.685-21.857 66.75-55.657-21.857-63.686-55.657-66.75a62 62 0 0 0-6.281-.25m3.938 34.907C82.468 38.438 93.5 48.58 93.5 61.5v27c0 .685-.565 1.25-1.25 1.25H80.906a1.267 1.267 0 0 1-1.25-1.25V63.375c0-5.58-4.309-11.937-11.469-11.937-7.47 0-11.468 6.357-11.468 11.937V88.5c0 .685-.565 1.25-1.25 1.25H44.125c-.68 0-1.219-.57-1.219-1.25V64.156c0-.74-.529-1.364-1.25-1.531-13.13-2.93-15.115-10.285-15.375-21.125-.005-.332.142-.67.375-.906.233-.237.543-.375.875-.375l11.688.062c.66.01 1.187.529 1.218 1.188.13 4.44.438 9.406 4.438 9.406.83 0 1.443-1.179 1.813-1.719 4.41-6.48 12.28-10.718 21.5-10.718"})))},{name:"patreon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20 7.408c-.003-2.299-1.746-4.182-3.79-4.862-2.54-.844-5.888-.722-8.312.453-2.939 1.425-3.862 4.545-3.896 7.656-.028 2.559.22 9.297 3.92 9.345 2.75.036 3.159-3.603 4.43-5.356.906-1.247 2.071-1.599 3.506-1.963 2.465-.627 4.146-2.626 4.142-5.273"})))},{name:"pinterest",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.236 2.636 7.855 6.356 9.312-.087-.791-.166-2.005.035-2.869.182-.78 1.173-4.971 1.173-4.971s-.299-.599-.299-1.484c0-1.39.806-2.429 1.809-2.429.853 0 1.265.641 1.265 1.409 0 .858-.546 2.141-.828 3.329-.236.996.499 1.807 1.481 1.807 1.777 0 3.144-1.874 3.144-4.579 0-2.394-1.72-4.068-4.177-4.068-2.845 0-4.515 2.134-4.515 4.34 0 .859.331 1.781.744 2.282a.3.3 0 0 1 .069.287c-.077.316-.246.995-.279 1.134-.044.183-.145.222-.334.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.051 6.607-6.051 3.469 0 6.165 2.472 6.165 5.775 0 3.446-2.173 6.22-5.189 6.22-1.013 0-1.966-.526-2.292-1.148l-.623 2.377c-.226.869-.835 1.957-1.243 2.622.936.289 1.93.445 2.961.445 5.523 0 10-4.477 10-10S17.523 2 12 2"})))},{name:"pinterest-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.289 2C6.617 2 3.606 5.648 3.606 9.622c0 1.846 1.025 4.146 2.666 4.878.25.111.381.063.439-.169.044-.175.267-1.029.365-1.428a.37.37 0 0 0-.091-.362c-.54-.63-.975-1.791-.975-2.873 0-2.777 2.194-5.464 5.933-5.464 3.23 0 5.49 2.108 5.49 5.122 0 3.407-1.794 5.768-4.13 5.768-1.291 0-2.257-1.021-1.948-2.277.372-1.495 1.089-3.112 1.089-4.191 0-.967-.542-1.775-1.663-1.775-1.319 0-2.379 1.309-2.379 3.059 0 1.115.394 1.869.394 1.869s-1.302 5.279-1.54 6.261c-.405 1.666.053 4.368.094 4.604.021.126.167.169.25.063.129-.165 1.699-2.419 2.142-4.051.158-.59.817-2.995.817-2.995.43.784 1.681 1.446 3.013 1.446 3.963 0 6.822-3.494 6.822-7.833C20.394 5.112 16.849 2 12.289 2"})))},{name:"pocket",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.927 4.194A1.82 1.82 0 0 0 20.222 3H3.839a1.823 1.823 0 0 0-1.813 1.814v6.035l.069 1.2c.29 2.73 1.707 5.115 3.899 6.778l.119.089.025.018a9.9 9.9 0 0 0 3.91 1.727 10.06 10.06 0 0 0 4.049-.014.3.3 0 0 0 .064-.023 9.9 9.9 0 0 0 3.753-1.691l.025-.018q.06-.043.119-.089c2.192-1.664 3.609-4.049 3.898-6.778l.069-1.2V4.814a1.8 1.8 0 0 0-.098-.62m-4.235 6.287-4.704 4.512a1.37 1.37 0 0 1-1.898 0l-4.705-4.512a1.371 1.371 0 1 1 1.898-1.979l3.756 3.601 3.755-3.601a1.372 1.372 0 0 1 1.898 1.979"})))},{name:"polldaddy",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.487 2 2 6.487 2 12c0 5.514 4.487 10 10 10 5.514 0 10-4.486 10-10 0-5.513-4.486-10-10-10m.991 1.68c2.361.084 4.657 1.251 6.197 3.136.283.334.541.693.774 1.067a7.78 7.78 0 0 0-6.094-2.94 7.76 7.76 0 0 0-5.896 2.703q-.008.006-.016.014l-.152.159-.031.032a6.12 6.12 0 0 0-1.633 4.165 6.15 6.15 0 0 0 6.143 6.143c.57 0 1.123-.081 1.649-.227-1.849.839-4.131.747-5.926-.324-1.841-1.089-3.171-3.111-3.433-5.313A7.39 7.39 0 0 1 6.69 6.137C8.294 4.5 10.634 3.563 12.991 3.68m3.373 8.519c-.049-2.024-1.587-3.889-3.544-4.174-1.927-.343-3.917.857-4.451 2.661a3.67 3.67 0 0 0 .2 2.653c.39.8 1.067 1.451 1.894 1.759 1.664.654 3.63-.27 4.173-1.863.593-1.58-.396-3.423-1.94-3.776-1.52-.407-3.161.757-3.204 2.243a2.36 2.36 0 0 0 .753 1.879c.501.476 1.23.667 1.871.529a2.07 2.07 0 0 0 1.469-1.134 1.91 1.91 0 0 0-.087-1.767c-.297-.513-.859-.863-1.429-.881a1.7 1.7 0 0 0-1.437.679 1.53 1.53 0 0 0-.18 1.489q.006.016.016.03c.193.634.774 1.1 1.467 1.117a1.6 1.6 0 0 1-.97-.183c-.466-.244-.809-.747-.893-1.29a1.8 1.8 0 0 1 .499-1.539 2.02 2.02 0 0 1 1.58-.606c.593.04 1.159.35 1.517.859.364.496.51 1.156.383 1.773-.116.62-.529 1.174-1.093 1.514a2.52 2.52 0 0 1-1.914.286c-.65-.161-1.226-.606-1.584-1.206a2.83 2.83 0 0 1-.341-2.031c.143-.7.573-1.321 1.176-1.753 1.193-.883 3.056-.751 4.106.411 1.106 1.1 1.327 3.027.406 4.371-.877 1.376-2.74 2.086-4.374 1.594-1.639-.449-2.913-2.079-3.031-3.853-.07-.884.13-1.797.583-2.577.445-.777 1.155-1.432 1.972-1.862 1.64-.88 3.816-.743 5.349.424 1.251.924 2.083 2.42 2.236 4.009l.001.03c0 2.9-2.359 5.26-5.26 5.26a5.2 5.2 0 0 1-1.947-.376 5 5 0 0 0 2.613-.079 4.96 4.96 0 0 0 2.514-1.751c.618-.828.95-1.861.901-2.869M12 21.113c-5.024 0-9.111-4.087-9.111-9.113 0-4.789 3.713-8.723 8.411-9.081a7 7 0 0 0-.397.06c-2.644.453-5.017 2.106-6.32 4.409-1.309 2.301-1.391 5.19-.3 7.527 1.056 2.34 3.253 4.156 5.776 4.553 2.497.44 5.133-.483 6.787-2.301 1.719-1.797 2.269-4.529 1.486-6.796-.583-1.81-1.976-3.331-3.7-4.046 3.417.594 6.174 3.221 6.174 6.781 0 1.004-.241 2.02-.657 2.966-1.498 2.984-4.586 5.041-8.149 5.041"})))},{name:"print",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M9 16h6v2H9zm13 1h-3v3a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2V9a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2h1a2 2 0 0 1 2 2zM7 7h10V5H7zm10 7H7v6h10zm3-3.5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 20 10.5"})))},{name:"reddit",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22 11.816a2.28 2.28 0 0 0-2.277-2.277c-.593 0-1.122.24-1.526.614-1.481-.965-3.455-1.594-5.647-1.69l1.171-3.702 3.18.748a1.88 1.88 0 0 0 1.876 1.862 1.88 1.88 0 0 0 1.877-1.878 1.88 1.88 0 0 0-1.877-1.877c-.769 0-1.431.466-1.72 1.13l-3.508-.826a.386.386 0 0 0-.46.261l-1.35 4.268c-2.316.038-4.411.67-5.97 1.671a2.24 2.24 0 0 0-1.492-.581A2.28 2.28 0 0 0 2 11.816c0 .814.433 1.523 1.078 1.925a4 4 0 0 0-.061.672c0 3.292 4.011 5.97 8.941 5.97s8.941-2.678 8.941-5.97q-.002-.32-.053-.632A2.26 2.26 0 0 0 22 11.816m-3.224-7.422a1.1 1.1 0 1 1-.001 2.199 1.1 1.1 0 0 1 .001-2.199M2.777 11.816c0-.827.672-1.5 1.499-1.5.313 0 .598.103.838.269-.851.676-1.477 1.479-1.812 2.36a1.48 1.48 0 0 1-.525-1.129m9.182 7.79c-4.501 0-8.164-2.329-8.164-5.193S7.457 9.22 11.959 9.22s8.164 2.329 8.164 5.193-3.663 5.193-8.164 5.193m8.677-6.605c-.326-.89-.948-1.701-1.797-2.384.248-.186.55-.301.883-.301.827 0 1.5.673 1.5 1.5.001.483-.23.911-.586 1.185m-11.64 1.703c-.76 0-1.397-.616-1.397-1.376s.637-1.397 1.397-1.397 1.376.637 1.376 1.397-.616 1.376-1.376 1.376m7.405-1.376c0 .76-.616 1.376-1.376 1.376s-1.399-.616-1.399-1.376.639-1.397 1.399-1.397 1.376.637 1.376 1.397m-1.172 3.38a.39.39 0 0 1 0 .55c-.674.674-1.727 1.002-3.219 1.002l-.011-.002-.011.002c-1.492 0-2.544-.328-3.218-1.002a.389.389 0 1 1 .55-.55c.521.521 1.394.775 2.669.775l.011.002.011-.002c1.275 0 2.148-.253 2.669-.775a.387.387 0 0 1 .549 0"})))},{name:"share",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18 16c-.788 0-1.499.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118A3 3 0 0 0 15 19a3 3 0 1 0 3-3"})))},{name:"skype",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m10.113 2.699.1-.02q.05.025.098.051zM2.72 10.223l-.017.103q.025.048.051.095zm18.555 3.548q.009-.053.018-.106-.025-.047-.052-.095zm-7.712 7.428q.049.027.096.053l.105-.017zM22 16.386a5.55 5.55 0 0 1-1.637 3.953 5.55 5.55 0 0 1-3.953 1.637 5.6 5.6 0 0 1-2.75-.725l.105-.017-.202-.035q.049.027.096.053a9.5 9.5 0 0 1-1.654.147 9.4 9.4 0 0 1-3.676-.743 9.4 9.4 0 0 1-3.002-2.023 9.4 9.4 0 0 1-2.023-3.002 9.4 9.4 0 0 1-.743-3.676c0-.546.049-1.093.142-1.628q.025.048.051.095l-.034-.199-.017.103A5.6 5.6 0 0 1 2 7.615c0-1.493.582-2.898 1.637-3.953A5.56 5.56 0 0 1 7.59 2.024c.915 0 1.818.228 2.622.655l-.1.02.199.031q-.049-.026-.098-.051l.004-.001a9.5 9.5 0 0 1 1.788-.169 9.41 9.41 0 0 1 6.678 2.766 9.4 9.4 0 0 1 2.024 3.002 9.4 9.4 0 0 1 .743 3.676c0 .575-.054 1.15-.157 1.712q-.025-.047-.052-.095l.034.201q.009-.053.018-.106c.461.829.707 1.767.707 2.721m-5.183-2.248c0-1.331-.613-2.743-3.033-3.282l-2.209-.49c-.84-.192-1.807-.444-1.807-1.237s.679-1.348 1.903-1.348c2.468 0 2.243 1.696 3.468 1.696.645 0 1.209-.379 1.209-1.031 0-1.521-2.435-2.663-4.5-2.663-2.242 0-4.63.952-4.63 3.488 0 1.221.436 2.521 2.839 3.123l2.984.745c.903.223 1.129.731 1.129 1.189 0 .762-.758 1.507-2.129 1.507-2.679 0-2.307-2.062-3.743-2.062-.645 0-1.113.444-1.113 1.078 0 1.236 1.501 2.886 4.856 2.886 3.195 0 4.776-1.538 4.776-3.599"})))},{name:"sms",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17.696 4C20.069 4 22 5.973 22 8.398v4.357c0 2.04-1.368 3.783-3.261 4.266v4.427l-5.234-4.295h-7.2C3.93 17.153 2 15.18 2 12.755V8.398C2 5.973 3.931 4 6.304 4zM7.028 8.515c-.98 0-1.66.562-1.66 1.349-.009.497.322.91.985 1.178l.39.142c.242.097.305.171.305.297 0 .162-.131.251-.442.251s-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.315-.224-.741-.316-1.171-.316m10.302 0c-.98 0-1.66.562-1.66 1.349-.008.497.322.91.985 1.178l.39.142c.243.097.305.171.305.297 0 .162-.13.251-.442.251-.311 0-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.316-.224-.741-.316-1.171-.316m-3.733 0c-.297 0-.55.066-.78.202l-.144.098a2 2 0 0 0-.264.247l-.078.095-.027-.077c-.15-.34-.55-.565-1.033-.565l-.169.007a1.36 1.36 0 0 0-.896.42l-.08.09-.038-.363-.075-.067H8.994l-.075.079.024.634c.005.2.008.397.008.604v2.652l.075.075h1.178l.075-.075v-2.269q-.002-.168.042-.274c.083-.23.262-.392.496-.392.314 0 .483.267.483.753v2.182l.075.075h1.179l.075-.075v-2.277c0-.097.016-.213.043-.285.077-.224.26-.373.486-.373.33 0 .5.272.5.817v2.118l.074.075h1.179l.075-.075v-2.293c0-1.131-.537-1.763-1.39-1.763Z"})))},{name:"spotify",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424a.62.62 0 0 1-.857.207c-2.348-1.435-5.304-1.76-8.785-.964a.622.622 0 1 1-.277-1.215c3.809-.871 7.077-.496 9.713 1.115a.623.623 0 0 1 .206.857M17.81 13.7a.78.78 0 0 1-1.072.257c-2.687-1.652-6.785-2.131-9.965-1.166A.779.779 0 1 1 6.32 11.3c3.632-1.102 8.147-.568 11.234 1.328a.78.78 0 0 1 .256 1.072m.105-2.835c-3.223-1.914-8.54-2.09-11.618-1.156a.935.935 0 1 1-.542-1.79c3.532-1.072 9.404-.865 13.115 1.338a.936.936 0 1 1-.955 1.608"})))},{name:"squarespace",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20.87 9.271a3.86 3.86 0 0 0-5.458 0l-6.141 6.141a.964.964 0 1 0 1.365 1.364l6.14-6.14a1.929 1.929 0 1 1 2.729 2.729l-6.022 6.022a1.93 1.93 0 0 0 2.729 0l4.658-4.658a3.86 3.86 0 0 0 0-5.458m-2.047 2.047a.965.965 0 0 0-1.365 0l-6.14 6.14a1.93 1.93 0 0 1-2.729 0 .964.964 0 1 0-1.364 1.364 3.86 3.86 0 0 0 5.458 0l6.14-6.14a.966.966 0 0 0 0-1.364m-2.047-6.141a3.86 3.86 0 0 0-5.458 0l-6.14 6.14a.964.964 0 1 0 1.364 1.364l6.141-6.14a1.93 1.93 0 0 1 2.729 0 .965.965 0 1 0 1.364-1.364m-2.047 2.047a.964.964 0 0 0-1.364 0l-6.14 6.141a1.929 1.929 0 1 1-2.729-2.729l6.022-6.022a1.93 1.93 0 0 0-2.729 0L3.13 9.271a3.86 3.86 0 0 0 5.458 5.458l6.14-6.141a.963.963 0 0 0 .001-1.364"})))},{name:"stackexchange",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M4 11.606h16v3.272H4zM4 7.377h16v3.272H4zM17.514 3H6.55C5.147 3 4 4.169 4 5.614v.848h16v-.85C20 4.167 18.895 3 17.514 3M4 15.813v.85c0 1.445 1.147 2.614 2.55 2.614h6.799v3.463l3.357-3.463h.744c1.402 0 2.55-1.169 2.55-2.614v-.85z"})))},{name:"stackoverflow",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18.18 20.103V14.78h1.767v7.09H4v-7.09h1.767v5.323z"}),React.createElement("path",{d:"m7.717 14.275 8.673 1.813.367-1.744-8.673-1.813zm1.147-4.13 8.031 3.74.734-1.606-8.031-3.763zm2.226-3.946 6.815 5.667 1.124-1.354-6.815-5.667zM15.495 2l-1.423 1.055 5.277 7.113 1.423-1.055zM7.533 18.314h8.857v-1.767H7.533z"})))},{name:"stumbleupon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 4.294a4.47 4.47 0 0 0-4.471 4.471v6.353a1.059 1.059 0 1 1-2.118 0v-2.824H2v2.941a4.471 4.471 0 0 0 8.942 0v-6.47a1.059 1.059 0 1 1 2.118 0v1.294l1.412.647 2-.647V8.765A4.473 4.473 0 0 0 12 4.294m1.059 8.059v2.882a4.471 4.471 0 0 0 8.941 0v-2.824h-3.412v2.824a1.059 1.059 0 1 1-2.118 0v-2.882l-2 .647z"})))},{name:"telegram",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m3.08 14.757s-.25.625-.936.325l-2.541-1.949-1.63 1.486s-.127.096-.266.036c0 0-.12-.011-.27-.486s-.911-2.972-.911-2.972L6 12.349s-.387-.137-.425-.438c-.037-.3.437-.462.437-.462l10.03-3.934s.824-.362.824.238z"})))},{name:"threads",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 192"},React.createElement("g",null,React.createElement("path",{d:"M141.537 88.988a67 67 0 0 0-2.518-1.143c-1.482-27.307-16.403-42.94-41.457-43.1h-.34c-14.986 0-27.449 6.396-35.12 18.036l13.779 9.452c5.73-8.695 14.724-10.548 21.348-10.548h.229c8.249.053 14.474 2.452 18.503 7.129 2.932 3.405 4.893 8.111 5.864 14.05-7.314-1.243-15.224-1.626-23.68-1.14-23.82 1.371-39.134 15.264-38.105 34.568.522 9.792 5.4 18.216 13.735 23.719 7.047 4.652 16.124 6.927 25.557 6.412 12.458-.683 22.231-5.436 29.049-14.127 5.178-6.6 8.453-15.153 9.899-25.93 5.937 3.583 10.337 8.298 12.767 13.966 4.132 9.635 4.373 25.468-8.546 38.376-11.319 11.308-24.925 16.2-45.488 16.351-22.809-.169-40.06-7.484-51.275-21.742C35.236 139.966 29.808 120.682 29.605 96c.203-24.682 5.63-43.966 16.133-57.317C56.954 24.425 74.204 17.11 97.013 16.94c22.975.17 40.526 7.52 52.171 21.847 5.71 7.026 10.015 15.86 12.853 26.162l16.147-4.308c-3.44-12.68-8.853-23.606-16.219-32.668C147.036 9.607 125.202.195 97.07 0h-.113C68.882.194 47.292 9.642 32.788 28.08 19.882 44.485 13.224 67.315 13.001 95.932L13 96v.067c.224 28.617 6.882 51.447 19.788 67.854C47.292 182.358 68.882 191.806 96.957 192h.113c24.96-.173 42.554-6.708 57.048-21.189 18.963-18.945 18.392-42.692 12.142-57.27-4.484-10.454-13.033-18.945-24.723-24.553M98.44 129.507c-10.44.588-21.286-4.098-21.82-14.135-.397-7.442 5.296-15.746 22.461-16.735q2.948-.17 5.79-.169c6.235 0 12.068.606 17.371 1.765-1.978 24.702-13.58 28.713-23.802 29.274"})))},{name:"tiktok",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.22 2h3.42s-.19 4.394 4.75 4.702v3.396s-2.636.166-4.75-1.448l.037 7.012a6.338 6.338 0 1 1-6.34-6.339h.89v3.472a2.882 2.882 0 1 0 2.024 2.752z"})))},{name:"tiktok-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm7.531 3h2.053s-.114 2.635 2.85 2.82v2.04s-1.582.099-2.85-.87l.021 4.207a3.804 3.804 0 1 1-3.802-3.802h.533v2.082a1.73 1.73 0 0 0-1.922.648 1.727 1.727 0 0 0 1.947 2.646 1.73 1.73 0 0 0 1.19-1.642z"})))},{name:"tripadvisor",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.01 9.859c.236-1.002.985-2.003.985-2.003l-3.341-.002C16.779 6.643 14.502 6 11.979 6 9.363 6 7 6.659 5.135 7.877L2 7.88s.74.988.98 1.983a4.98 4.98 0 0 0-.977 2.961 5.01 5.01 0 0 0 5.009 5.003 5 5 0 0 0 3.904-1.875l1.065 1.592 1.076-1.606a4.96 4.96 0 0 0 1.838 1.448 4.98 4.98 0 0 0 3.831.151 5.01 5.01 0 0 0 2.963-6.431 5 5 0 0 0-.679-1.247m-13.998 6.96a4 4 0 0 1-3.998-3.995 4 4 0 0 1 3.998-3.997 4 4 0 0 1 3.996 3.997 4 4 0 0 1-3.996 3.995m4.987-4.36A5.007 5.007 0 0 0 7.11 7.821c1.434-.613 3.081-.947 4.867-.947 1.798 0 3.421.324 4.853.966a4.984 4.984 0 0 0-4.831 4.619m6.288 4.134a3.97 3.97 0 0 1-3.058-.122 3.96 3.96 0 0 1-2.075-2.245v-.001a3.97 3.97 0 0 1 .118-3.056 3.97 3.97 0 0 1 2.246-2.077 4.005 4.005 0 0 1 5.135 2.366 4.006 4.006 0 0 1-2.366 5.135"}),React.createElement("path",{d:"M6.949 10.307a2.477 2.477 0 0 0-2.475 2.472 2.48 2.48 0 0 0 2.475 2.474 2.474 2.474 0 0 0 0-4.946m0 4.094a1.626 1.626 0 0 1-1.624-1.623 1.621 1.621 0 1 1 1.624 1.623M16.981 10.307a2.477 2.477 0 0 0-2.474 2.472 2.48 2.48 0 0 0 2.474 2.474 2.476 2.476 0 0 0 2.472-2.474 2.475 2.475 0 0 0-2.472-2.472m0 4.094a1.625 1.625 0 0 1-1.622-1.623 1.622 1.622 0 1 1 1.622 1.623"}),React.createElement("path",{d:"M7.778 12.778a.832.832 0 1 1-1.664.002.832.832 0 0 1 1.664-.002M16.981 11.947a.832.832 0 1 0 .002 1.666.832.832 0 0 0-.002-1.666"})))},{name:"tumblr",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5.569 14.265c-2.446.042-3.372-1.742-3.372-2.998v-3.668H8.923v-1.45c1.703-.614 2.113-2.15 2.209-3.025.007-.06.054-.084.081-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.131 1.081 1.107.298-.008.697-.094.906-.194l.54 1.601c-.205.296-1.121.641-1.946.656"})))},{name:"tumblr-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M16.749 17.396c-.357.17-1.041.319-1.551.332-1.539.041-1.837-1.081-1.85-1.896V9.847h3.861v-2.91h-3.847V2.039h-2.817c-.046 0-.127.041-.138.144-.165 1.499-.867 4.13-3.783 5.181v2.484h1.945v6.282c0 2.151 1.587 5.206 5.775 5.135 1.413-.024 2.982-.616 3.329-1.126z"})))},{name:"twitch",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M16.499 8.089h-1.636v4.91h1.636zm-4.499 0h-1.637v4.91H12zM4.228 3.178 3 6.451v13.092h4.499V22h2.456l2.454-2.456h3.681L21 14.636V3.178zm15.136 10.638L16.5 16.681H12l-2.453 2.453V16.68H5.863V4.814h13.501z"})))},{name:"twitter",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-2.534 6.71q.007.148.007.298c0 3.045-2.318 6.556-6.556 6.556a6.5 6.5 0 0 1-3.532-1.035q.27.032.55.032a4.63 4.63 0 0 0 2.862-.986 2.31 2.31 0 0 1-2.152-1.6 2.3 2.3 0 0 0 1.04-.04 2.306 2.306 0 0 1-1.848-2.259v-.029c.311.173.666.276 1.044.288a2.303 2.303 0 0 1-.713-3.076 6.54 6.54 0 0 0 4.749 2.407 2.305 2.305 0 0 1 3.926-2.101 4.6 4.6 0 0 0 1.463-.559 2.3 2.3 0 0 1-1.013 1.275c.466-.056.91-.18 1.323-.363-.31.461-.7.867-1.15 1.192"})))},{name:"twitter-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22.23 5.924a8.2 8.2 0 0 1-2.357.646 4.12 4.12 0 0 0 1.804-2.27 8.2 8.2 0 0 1-2.606.996 4.103 4.103 0 0 0-6.991 3.742 11.65 11.65 0 0 1-8.457-4.287 4.1 4.1 0 0 0-.556 2.063 4.1 4.1 0 0 0 1.825 3.415 4.1 4.1 0 0 1-1.859-.513v.052a4.104 4.104 0 0 0 3.292 4.023 4.1 4.1 0 0 1-1.853.07 4.11 4.11 0 0 0 3.833 2.85 8.24 8.24 0 0 1-5.096 1.756 8 8 0 0 1-.979-.057 11.6 11.6 0 0 0 6.29 1.843c7.547 0 11.675-6.252 11.675-11.675q0-.267-.012-.531a8.3 8.3 0 0 0 2.047-2.123"})))},{name:"vimeo",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22.396 7.164q-.139 3.039-4.245 8.32Q13.907 21 10.97 21q-1.82 0-3.079-3.359l-1.68-6.159q-.934-3.36-2.005-3.36-.234.001-1.634.98l-.978-1.261q1.541-1.353 3.037-2.708 2.056-1.774 3.084-1.869 2.429-.234 2.99 3.321.607 3.836.841 4.769.7 3.181 1.542 3.181.653 0 1.963-2.065 1.307-2.063 1.401-3.142.187-1.781-1.401-1.782-.747.001-1.541.341 1.534-5.024 5.862-4.884 3.21.095 3.024 4.161"})))},{name:"whatsapp",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m2.048 22 1.406-5.136a9.9 9.9 0 0 1-1.323-4.955C2.133 6.446 6.579 2 12.042 2a9.85 9.85 0 0 1 7.011 2.906 9.85 9.85 0 0 1 2.9 7.011c-.002 5.464-4.448 9.91-9.91 9.91h-.004a9.9 9.9 0 0 1-4.736-1.206zm5.497-3.172.301.179a8.2 8.2 0 0 0 4.193 1.148h.003c4.54 0 8.235-3.695 8.237-8.237a8.2 8.2 0 0 0-2.41-5.828 8.18 8.18 0 0 0-5.824-2.416c-4.544 0-8.239 3.695-8.241 8.237a8.2 8.2 0 0 0 1.259 4.384l.196.312-.832 3.04zm9.49-4.554c-.062-.103-.227-.165-.475-.289s-1.465-.723-1.692-.806-.392-.124-.557.124-.64.806-.784.971-.289.186-.536.062-1.046-.385-1.991-1.229c-.736-.657-1.233-1.468-1.378-1.715s-.015-.382.109-.505c.111-.111.248-.289.371-.434.124-.145.165-.248.248-.413s.041-.31-.021-.434-.557-1.343-.763-1.839c-.202-.483-.407-.417-.559-.425-.144-.007-.31-.009-.475-.009a.9.9 0 0 0-.66.31c-.226.248-.866.847-.866 2.066s.887 2.396 1.011 2.562 1.746 2.666 4.23 3.739c.591.255 1.052.408 1.412.522.593.189 1.133.162 1.56.098.476-.071 1.465-.599 1.671-1.177.206-.58.206-1.075.145-1.179"})))},{name:"woocommerce",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 2H5C3.3 2 2 3.3 2 5v11c0 1.7 1.3 3 3 3h4l6 3-1-3h5c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3m-1.6 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7s-.3.4-.6.4-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6q.75 0 .9.9c.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2q.3.3.3.6c0 .3 0 .4-.1.5"})))},{name:"wordpress",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.158 12.786 9.46 20.625a9 9 0 0 0 5.526-.144 1 1 0 0 1-.065-.124zM3.009 12a8.99 8.99 0 0 0 5.067 8.092L3.788 8.341A8.95 8.95 0 0 0 3.009 12m15.06-.454c0-1.112-.399-1.881-.741-2.48-.456-.741-.883-1.368-.883-2.109 0-.826.627-1.596 1.51-1.596q.06.002.116.007A8.96 8.96 0 0 0 12 3.009a8.98 8.98 0 0 0-7.512 4.052c.211.007.41.011.579.011.94 0 2.396-.114 2.396-.114.484-.028.541.684.057.741 0 0-.487.057-1.029.085l3.274 9.739 1.968-5.901-1.401-3.838c-.484-.028-.943-.085-.943-.085-.485-.029-.428-.769.057-.741 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.485-.028.542.684.057.741 0 0-.488.057-1.029.085l3.249 9.665.897-2.996q.684-1.753.684-2.907m1.82-3.86q.06.428.06.924c0 .912-.171 1.938-.684 3.22l-2.746 7.94a8.98 8.98 0 0 0 4.47-7.771 8.9 8.9 0 0 0-1.1-4.313M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})))},{name:"x",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387z"})))},{name:"xanga",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M9 9h6v6H9zM3 9h6V3H3zm12 0h6V3h-6zm0 12h6v-6h-6zM3 21h6v-6H3z"})))},{name:"youtube",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.8 8.001s-.195-1.378-.795-1.985c-.76-.797-1.613-.801-2.004-.847-2.799-.202-6.997-.202-6.997-.202h-.009s-4.198 0-6.997.202c-.39.047-1.242.051-2.003.847-.6.607-.795 1.985-.795 1.985S2 9.62 2 11.238v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.761.797 1.76.771 2.205.855 1.6.153 6.8.201 6.8.201s4.203-.006 7.001-.209c.391-.047 1.243-.051 2.004-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517c0-1.618-.2-3.237-.2-3.237M9.935 14.594l-.001-5.62 5.404 2.82z"})))}]},49614:(e,t,n)=>{"use strict";n.d(t,{Y:()=>u});var r=n(82674),a=n.n(r),s=n(25162),o=n.n(s),i=n(99196),l=n.n(i),c=n(9839);class u extends i.PureComponent{static defaultProps={size:24};static propTypes={icon:o().string.isRequired,size:o().number,onClick:o().func,className:o().string};render(){const{size:e,onClick:t,icon:n,className:r,...s}=this.props,o=["social-logo","social-logo-"+n,r].filter(Boolean).join(" "),i=c.N.find((e=>e.name===n));if(!i)return l().createElement("svg",a()({height:e,width:e},s));return l().cloneElement(i.svg,{className:o,height:e,width:e,onClick:t,...s})}}},47798:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>v});var r=n(51806),a=n(42290),s=n(55609),o=n(65736),i=n(586),l=n(3639),c=n(92710),u=n(58532),d=n(59756),p=(n(99196),n(54765)),m=n(63634),g=n(72881),A=n(81612),h=n(27298);const __=o.__,E="simplify",f="make-longer",b="make-shorter",C={default:[{name:__("Correct spelling and grammar","jetpack"),key:"correct-spelling",aiSuggestion:m.Hd,icon:i.Z}],"core/paragraph":[{name:__("Simplify","jetpack"),key:E,aiSuggestion:m.hI,icon:l.Z},{name:__("Summarize","jetpack"),key:"summarize",aiSuggestion:m.Lq,icon:c.Z},{name:__("Expand","jetpack"),key:f,aiSuggestion:m.TV,icon:u.Z},{name:__("Make shorter","jetpack"),key:b,aiSuggestion:m.DR,icon:u.Z}],"core/list-item":[{name:__("Simplify","jetpack"),key:E,aiSuggestion:m.hI,icon:l.Z},{name:__("Expand","jetpack"),key:f,aiSuggestion:m.TV,icon:u.Z},{name:__("Make shorter","jetpack"),key:b,aiSuggestion:m.DR,icon:u.Z}],"core/list":p.jz.includes("core/list")?[{name:__("Simplify","jetpack"),key:E,aiSuggestion:m.hI,icon:l.Z},{name:__("Expand","jetpack"),key:f,aiSuggestion:m.TV,icon:u.Z},{name:__("Make shorter","jetpack"),key:b,aiSuggestion:m.DR,icon:u.Z}]:[{name:__("Turn list into a table","jetpack"),key:"turn-into-table",aiSuggestion:m.Gh,icon:d.Z,options:{userPrompt:"make a table from this list, do not enclose the response in a code block"}},{name:__("Write a post from this list","jetpack"),key:"write-post-from-list",aiSuggestion:m.Gh,icon:l.Z,options:{userPrompt:"Write a post based on the list items. Include a title as first order heading and try to use secondary headings for each entry"}}]};function v({blockType:e,disabled:t=!1,onAskAiAssistant:n,onRequestSuggestion:o}){const i=C[e]??[];return(0,r.createElement)(r.Fragment,null,t&&(0,r.createElement)(s.Notice,{status:"warning",isDismissible:!1,className:"jetpack-ai-assistant__info"},__("Add content to activate the tools below","jetpack")),(0,r.createElement)(s.MenuGroup,null,(0,r.createElement)(s.MenuItem,{icon:a.u_,iconPosition:"left",key:"key-ai-assistant",onClick:n,disabled:t},(0,r.createElement)("div",{className:"jetpack-ai-assistant__menu-item"},__("Ask AI Assistant","jetpack"))),[...C.default,...i].map((e=>(0,r.createElement)(s.MenuItem,{icon:e?.icon,iconPosition:"left",key:`key-${e.key}`,onClick:()=>{o(e.aiSuggestion,{...e.options??{}},e.name)},disabled:t},(0,r.createElement)("div",{className:"jetpack-ai-assistant__menu-item"},e.name)))),(0,r.createElement)(h.IP,{onChange:e=>{o(m.Lg,{tone:e},`${h.iQ}: ${(0,g.k)(e)}`)},disabled:t}),(0,r.createElement)(A.xK,{onChange:(e,t)=>{o(m.Nw,{language:e},`${A.aO}: ${t}`)},disabled:t})))}},54458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(51806),a=n(42290),s=n(13419),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(51128),d=n.n(u),p=(n(99196),n(49259)),m=n(854),g=n(6747),A=n(47798);const __=c.__,h=d()("jetpack-ai-assistant:dropdown");function E({onClose:e,blockType:t}){const[n,a]=(0,l.useState)(!1),{getSelectedBlockClientIds:o,getBlocksByClientId:c}=(0,i.useSelect)("core/block-editor"),{removeBlocks:u,replaceBlock:d}=(0,i.useDispatch)("core/block-editor");(0,l.useEffect)((()=>{const e=o(),t=c(e),n=(0,m.vL)(t),r=(0,m.t$)(n);return a(!r.length)}),[c,o]);const{tracks:E}=(0,s.z$)();return(0,r.createElement)(A.ZP,{blockType:t,onRequestSuggestion:(n,r={})=>{const a=o(),s=c(a),i=(0,m.vL)(s);e(),h("requestSuggestion",n,r),E.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:n,block_type:t});const[l]=s,[A,...f]=a,b={...l?.attributes||{},content:i},C=(0,g.b)(t,b),v={clientId:A,type:n,options:{...r,contentType:"generated",fromExtension:!0}};localStorage.setItem((0,p.$M)(C.clientId),JSON.stringify(v)),d(A,C),u(f)},onAskAiAssistant:()=>{const e=o(),n=c(e),r=(0,m.vL)(n),[a,...s]=e,[i]=n,l={...i?.attributes||{},content:r};d(a,(0,g.b)(t,l)),u(s),E.recordEvent("jetpack_ai_assistant_prompt_show",{block_type:t})},disabled:n})}function f({blockType:e,label:t=__("AI Assistant","jetpack")}){const{tracks:n}=(0,s.z$)();return(0,r.createElement)(o.Dropdown,{popoverProps:{variant:"toolbar"},renderToggle:({isOpen:e,onToggle:n})=>(0,r.createElement)(o.ToolbarButton,{className:"jetpack-ai-assistant__button",showTooltip:!0,onClick:n,"aria-haspopup":"true","aria-expanded":e,label:t,icon:a.u_}),onToggle:t=>{t&&n.recordEvent("jetpack_ai_assistant_extension_toolbar_menu_show",{block_type:e})},renderContent:({onClose:t})=>(0,r.createElement)(E,{onClose:t,blockType:e})})}},3180:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(26546),o=n(46867);const __=a.__,i=()=>{const e=`${window?.Jetpack_Editor_Initial_State?.adminUrl}admin.php?page=my-jetpack#/connection`,{autosaveAndRedirect:t,isRedirecting:n}=(0,o.Z)(e);return(0,r.createElement)(s.p,{buttonText:__("Reconnect Jetpack","jetpack"),checkoutUrl:e,className:"jetpack-ai-connect-banner",description:__("Your account is not connected to Jetpack at the moment.","jetpack"),goToCheckoutPage:e=>{t(e)},isRedirecting:n,visible:!0,align:null,title:null,context:null})}},87445:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(6895),s=n(55609),o=n(65736);const __=o.__;const i=function(){const e=(0,a.Z)("jetpack-ai-feedback");return(0,r.createElement)("div",{className:"jetpack-ai-feedback-control"},(0,r.createElement)(s.BaseControl,{label:__("Feedback","jetpack")},(0,r.createElement)("p",null,__("Your feedback is valuable in our commitment to refine and improve this feature.","jetpack")),(0,r.createElement)(s.ExternalLink,{href:e},__("Share your feedback","jetpack"))))}},81612:(e,t,n)=>{"use strict";n.d(t,{QA:()=>g,ZP:()=>h,aO:()=>p,xK:()=>E});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(61074),l=n(46936),c=n(43618);n(99196);const __=o.__,u=["en","es","fr","de","it","pt","ru","zh","ja","ar","hi","ko"],d=window?.Jetpack_Editor_Initial_State?.siteLocale||navigator?.language,p=__("Translate","jetpack"),m=d?.split("-")[0]||"en",g=(d?.split("-"),{en:{label:__("English","jetpack")},es:{label:__("Spanish","jetpack")},fr:{label:__("French","jetpack")},de:{label:__("German","jetpack")},it:{label:__("Italian","jetpack")},pt:{label:__("Portuguese","jetpack")},ru:{label:__("Russian","jetpack")},zh:{label:__("Chinese","jetpack")},ja:{label:__("Japanese","jetpack")},ar:{label:__("Arabic","jetpack")},hi:{label:__("Hindi","jetpack")},ko:{label:__("Korean","jetpack")}}),A=({value:e,onChange:t})=>{const n=[...u.filter((e=>e!==m))];return u.includes(m)&&n.unshift(m),(0,r.createElement)(s.MenuGroup,{label:__("Select language","jetpack")},n.map((n=>(0,r.createElement)(s.MenuItem,{key:`key-${n}`,onClick:()=>t(n+" ("+g[n].label+")",g[n].label),isSelected:e===n},g[n].label))))};function h({value:e=m,label:t=p,onChange:n,disabled:o=!1}){const{tracks:l}=(0,a.z$)();return o?(0,r.createElement)(s.Tooltip,{text:t},(0,r.createElement)(s.Button,{disabled:!0},(0,r.createElement)(i.Z,{icon:c.Z}))):(0,r.createElement)(s.ToolbarDropdownMenu,{icon:c.Z,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&l.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"i18n"})}},(()=>(0,r.createElement)(A,{value:e,onChange:n})))}function E({value:e=m,label:t=p,onChange:n,disabled:a=!1}){return(0,r.createElement)(s.DropdownMenu,{className:"ai-assistant__i18n-dropdown",icon:c.Z,label:t,toggleProps:{children:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"ai-assistant__i18n-dropdown__toggle-label"},t),(0,r.createElement)(i.Z,{icon:l.Z})),disabled:a}},(({onClose:t})=>(0,r.createElement)(A,{onChange:(...e)=>{n(...e),t()},value:e})))}},24404:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(77840);const __=o.__,l="make-longer",c="makeLonger",u="make-shorter",d="makeShorter",p="summarize",m="summarize",g=[{name:__("Summarize","jetpack"),key:p,aiSuggestion:m},{name:__("Make longer","jetpack"),key:l,aiSuggestion:c},{name:__("Make shorter","jetpack"),key:u,aiSuggestion:d}];function A({key:e,label:t=__("Improve","jetpack"),exclude:n=[],onChange:o,disabled:l=!1}){const{tracks:c}=(0,a.z$)();return l?(0,r.createElement)(s.Tooltip,{text:t},(0,r.createElement)(s.Button,{disabled:!0},(0,r.createElement)(s.Icon,{icon:i.Z}))):(0,r.createElement)(s.ToolbarDropdownMenu,{icon:i.Z,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&c.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"improve"})}},(()=>{const a=g.filter((e=>!n.includes(e.key)));return(0,r.createElement)(s.MenuGroup,{label:t},a.map((t=>(0,r.createElement)(s.MenuItem,{key:`key-${t.key}`,onClick:()=>o(t.aiSuggestion,{contentType:"generated"}),isSelected:e===t.key},t.name))))}))}},85642:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(77840),l=n(58532),c=n(586),u=n(3639),d=n(92710),p=n(32677);const __=o.__,m=[{label:__("Post about…","jetpack"),description:{original:"Write a post about ",translated:__("Write a post about ","jetpack")}},{label:__("Informative article on…","jetpack"),description:{original:"Craft an informative article explaining ",translated:__("Craft an informative article explaining ","jetpack")}},{label:__("Step-by-step tutorial on…","jetpack"),description:{original:"Write a step-by-step tutorial on ",translated:__("Write a step-by-step tutorial on ","jetpack")}},{label:__("Motivational post on…","jetpack"),description:{original:"Create a motivational post on ",translated:__("Create a motivational post on ","jetpack")}}],g=[{label:__("Say it differently…","jetpack"),description:{original:"Rewrite it in a way that ",translated:__("Rewrite it in a way that ","jetpack")}},{label:__("Add…","jetpack"),description:{original:"Add more details about ",translated:__("Add more details about ","jetpack")}},{label:__("Remove…","jetpack"),description:{original:"Remove unnecessary details about ",translated:__("Remove unnecessary details about ","jetpack")}}];function A({hasContentBefore:e,hasContent:t,hasPostTitle:n,contentIsLoaded:o,onPromptSelect:A,onSuggestionSelect:h}){const E=__("Write with AI…","jetpack"),{tracks:f}=(0,a.z$)();return(0,r.createElement)(s.ToolbarDropdownMenu,{className:"jetpack-ai-assistant__templates-control",icon:null,label:E,text:E,onToggle:e=>{e&&f.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"write-with-ai"})}},(({onClose:a})=>o?(0,r.createElement)(s.MenuGroup,{label:__("Write…","jetpack")},g.map(((e,t)=>(0,r.createElement)(s.MenuItem,{icon:i.Z,iconPosition:"left",key:`key-${t}`,onClick:()=>{a(),A(e.description)}},e.label)))):(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(s.MenuGroup,{label:__("Based on preceding content…","jetpack")},(0,r.createElement)(s.MenuItem,{icon:l.Z,iconPosition:"left",onClick:()=>h("continue")},__("Continue writing","jetpack")),(0,r.createElement)(s.MenuItem,{icon:c.Z,iconPosition:"left",onClick:()=>h("correctSpelling")},__("Correct spelling and grammar","jetpack")),(0,r.createElement)(s.MenuItem,{icon:u.Z,iconPosition:"left",onClick:()=>h("simplify")},__("Simplify","jetpack"))),t&&(0,r.createElement)(s.MenuGroup,{label:__("Based on entire content…","jetpack")},t&&(0,r.createElement)(s.MenuItem,{icon:d.Z,iconPosition:"left",onClick:()=>h("summarize")},__("Summarize","jetpack")),t&&(0,r.createElement)(s.MenuItem,{icon:p.Z,iconPosition:"left",onClick:()=>h("generateTitle")},__("Generate a post title","jetpack"))),(0,r.createElement)(s.MenuGroup,{label:__("Write…","jetpack")},n&&(0,r.createElement)(s.MenuItem,{icon:i.Z,iconPosition:"left",onClick:()=>h("titleSummary")},__("Summary based on title","jetpack")),m.map(((e,t)=>(0,r.createElement)(s.MenuItem,{icon:i.Z,iconPosition:"left",key:`key-${t}`,onClick:()=>{a(),A(e.description)}},e.label)))))))}},27298:(e,t,n)=>{"use strict";n.d(t,{IP:()=>g,Nj:()=>u,ZP:()=>A,bu:()=>p,iQ:()=>d});var r=n(51806),a=n(42290),s=n(13419),o=n(55609),i=n(65736),l=n(46936);n(99196);const __=i.__,c=["formal","informal","optimistic","humorous","serious","skeptical","empathetic","confident","passionate","provocative"],u="formal",d=__("Change tone","jetpack"),p={formal:{label:__("Formal","jetpack"),emoji:"🎩"},informal:{label:__("Informal","jetpack"),emoji:"😊"},optimistic:{label:__("Optimistic","jetpack"),emoji:"😃"},humorous:{label:__("Humorous","jetpack"),emoji:"😂"},serious:{label:__("Serious","jetpack"),emoji:"😐"},skeptical:{label:__("Skeptical","jetpack"),emoji:"🤨"},empathetic:{label:__("Empathetic","jetpack"),emoji:"💗"},confident:{label:__("Confident","jetpack"),emoji:"😎"},passionate:{label:__("Passionate","jetpack"),emoji:"❤️"},provocative:{label:__("Provocative","jetpack"),emoji:"🔥"}},m=({value:e,onChange:t})=>(0,r.createElement)(o.MenuGroup,{label:__("Select tone","jetpack")},c.map((n=>(0,r.createElement)(o.MenuItem,{key:`key-${n}`,onClick:()=>t(n),isSelected:e===n},`${p[n].emoji} ${p[n].label}`))));function g({label:e=d,value:t=u,onChange:n,disabled:s=!1}){return(0,r.createElement)(o.DropdownMenu,{icon:a.v_,label:e,className:"ai-assistant__tone-dropdown",popoverProps:{variant:"toolbar"},toggleProps:{children:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"ai-assistant__tone-dropdown__toggle-label"},e),(0,r.createElement)(o.Icon,{icon:l.Z})),disabled:s}},(({onClose:e})=>(0,r.createElement)(m,{value:t,onChange:t=>{n(t),e()}})))}function A({value:e=u,onChange:t,disabled:n=!1}){const{tracks:i}=(0,s.z$)();return n?(0,r.createElement)(o.Tooltip,{text:d},(0,r.createElement)(o.Button,{disabled:!0},(0,r.createElement)(o.Icon,{icon:a.v_}))):(0,r.createElement)(o.ToolbarDropdownMenu,{icon:a.v_,label:d,popoverProps:{variant:"toolbar"},disabled:n,onToggle:e=>{e&&i.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"tone"})}},(()=>(0,r.createElement)(m,{value:e,onChange:t})))}},4965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(52175),s=n(55609),o=n(65736),i=n(79201),l=n(48381),c=n(63634),u=n(81612),d=n(24404),p=n(85642),m=n(27298);const __=o.__,g=({contentIsLoaded:e,getSuggestionFromOpenAI:t,retryRequest:n,handleAcceptContent:o,handleTryAgain:g,showRetry:A,contentBefore:h,hasPostTitle:E,wholeContent:f,setUserPrompt:b,recordEvent:C,isGeneratingTitle:v})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,!A&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(p.ZP,{hasContentBefore:!!h?.length,hasContent:!!f?.length,hasPostTitle:E,contentIsLoaded:e,onPromptSelect:e=>{C("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"prompt-template",prompt:e.original}),b(e.translated)},onSuggestionSelect:e=>{C("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:e}),t(e)}})),(0,r.createElement)(a.BlockControls,{group:"block"},(0,r.createElement)(m.ZP,{value:"neutral",onChange:n=>{C("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:c.Lg}),t(c.Lg,{tone:n,contentType:e?"generated":null})},disabled:!e&&!f?.length}),(0,r.createElement)(u.ZP,{value:"en",onChange:n=>{C("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:c.Nw}),t(c.Nw,{language:n,contentType:e?"generated":null})},disabled:!e&&!f?.length}),(0,r.createElement)(d.ZP,{onChange:t,exclude:v?["summarize"]:[],disabled:!e}))),(A||g)&&(0,r.createElement)(s.ToolbarGroup,null,!A&&e&&g&&(0,r.createElement)(s.ToolbarButton,{onClick:g},__("Try Again","jetpack")),A&&e&&(0,r.createElement)(s.ToolbarButton,{icon:i.Z,onClick:o},__("Accept","jetpack")),A&&(0,r.createElement)(s.ToolbarButton,{icon:l.Z,onClick:n},__("Retry","jetpack")))))},5246:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51806),a=n(6895),s=n(13419),o=n(69307),i=n(65736),l=n(51128),c=n.n(l),u=n(26546),d=n(63206),p=n(18135),m=n(71449),g=n(78595);const __=i.__,A=c()("jetpack-ai-assistant:upgrade-prompt"),h=e=>{const{upgradeType:t}=(0,p.Z)();return"vip"===t?(({description:e=null,useLightNudge:t=!1})=>{const n=t?g.g:u.p,a=(0,o.createInterpolateElement)(__("You've reached the Jetpack AI rate limit. <strong>Please reach out to your VIP account team.</strong>","jetpack"),{strong:(0,r.createElement)("strong",null)});return(0,r.createElement)(n,{buttonText:null,checkoutUrl:null,className:"jetpack-ai-upgrade-banner",description:e||a,goToCheckoutPage:null,isRedirecting:null,visible:!0,align:null,title:null,context:null})})({description:e.description,useLightNudge:e?.useLightNudge}):(({placement:e=null,description:t=null,useLightNudge:n=!1})=>{const l=n?g.g:u.p,{checkoutUrl:c}=(0,d.Z)(),h=(0,m.d)(),{nextTier:E,tierPlansEnabled:f,currentTier:b,requestsCount:C}=(0,p.Z)(),{tracks:v}=(0,s.z$)(),k=(0,o.useCallback)((()=>{A("upgrade",e),v.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:b?.slug,requests_count:C,placement:e})}),[b,C,v,e]),B=(0,o.useCallback)((()=>{A("contact us",e),v.recordEvent("jetpack_ai_upgrade_contact_us",{placement:e})}),[v,e]);if(!h){const e=(0,o.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Reach out to the site administrator to upgrade and keep using Jetpack AI.</strong>","jetpack"),{strong:(0,r.createElement)("strong",null)});return(0,r.createElement)(l,{showButton:!1,className:"jetpack-ai-upgrade-banner",description:t||e,visible:!0,align:null,title:null,context:null})}if(f){if(!E){const e=(0,a.Z)("jetpack-ai-tiers-more-requests-contact"),n=__("You have reached the request limit for your current plan.","jetpack");return(0,r.createElement)(l,{buttonText:__("Contact Us","jetpack"),description:t||n,className:"jetpack-ai-upgrade-banner",checkoutUrl:e,visible:!0,align:null,title:null,context:null,goToCheckoutPage:B,target:"_blank"})}const e=(0,o.createInterpolateElement)((0,i.sprintf)(/* Translators: number of requests */ | |
| 20 | -__("You have reached the requests limit for your current plan. <strong>Upgrade now to increase your requests limit to %d.</strong>","jetpack"),E.limit),{strong:(0,r.createElement)("strong",null)});return(0,r.createElement)(l,{buttonText:(0,i.sprintf)(/* Translators: number of requests */ | |
| 21 | -__("Upgrade to %d requests","jetpack"),E.limit),checkoutUrl:c,className:"jetpack-ai-upgrade-banner",description:t||e,goToCheckoutPage:k,visible:!0,align:"center",title:null,context:null,target:"_blank"})}return(0,r.createElement)(l,{buttonText:"Upgrade",checkoutUrl:c,className:"jetpack-ai-upgrade-banner",description:(0,o.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Upgrade now to keep using it.</strong>","jetpack"),{strong:(0,r.createElement)("strong",null)}),goToCheckoutPage:k,visible:!0,align:null,title:null,context:null,target:"_blank"})})(e)}},78595:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,o=({title:e,description:t,buttonText:n=null,checkoutUrl:s=null,goToCheckoutPage:o=null,isRedirecting:i=!1,showButton:l=!0,target:c="_top"})=>{const u=__("Redirecting…","jetpack");return(0,r.createElement)("div",{className:"jetpack-upgrade-plan-banner-light"},(0,r.createElement)(a.Notice,{status:"warning",isDismissible:!1},(0,r.createElement)("p",null,e&&(0,r.createElement)("strong",null,e),t," ",l&&(0,r.createElement)(a.Button,{href:i?null:s,onClick:o,variant:"link",target:c},i?u:n))))}},45624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(51806),a=n(42290),s=n(13419),o=n(52175),i=n(4981),l=n(55609),c=n(94333),u=n(9818),d=n(69307),p=n(65736),m=n(65235),g=n.n(m),A=n(84102),h=n(80013),E=n(23795),f=n(3180),b=n(87445),C=n(4965),v=n(5246),k=n(49259),B=n(46448),y=n(63206),w=n(18135),_=n(71449);const __=p.__,I="post"===window?.Jetpack_Editor_Initial_State?.screenBase;function j({attributes:e,setAttributes:t,clientId:n,isSelected:p}){const[m,j]=(0,d.useState)(null),{tracks:x}=(0,s.z$)(),{getBlock:S}=(0,u.useSelect)("core/block-editor"),Q=(0,d.useRef)(null),N=(0,d.useRef)(null),{replaceBlocks:P,removeBlock:T}=(0,u.useDispatch)("core/block-editor"),{editPost:R}=(0,u.useDispatch)("core/editor"),{isOverLimit:Z,requireUpgrade:L,increaseRequestsCount:M,requestsCount:D,requestsLimit:F,currentTier:z,loading:O}=(0,w.Z)(),U=Math.max(F-D,0),{autosaveAndRedirect:H}=(0,y.Z)(),V=(0,E.U_)(z),q=()=>{setTimeout((()=>{Q.current?.focus?.()}),100)},G=()=>{setTimeout((()=>{N.current?.focus?.()}),100)},$=(0,c.useViewportMatch)("medium","<"),W=(0,d.useRef)(null),{getSuggestionFromOpenAI:J,stopSuggestion:Y,showRetry:K,contentBefore:X,postTitle:ee,retryRequest:te,wholeContent:ne,requestingState:re,error:ae}=(0,B.Z)({onSuggestionDone:(0,d.useCallback)((()=>{q(),M()}),[M]),onUnclearPrompt:(0,d.useCallback)((()=>{G(),M()}),[M]),onModeration:q,attributes:e,clientId:n,content:e.content,tracks:x,userPrompt:e.userPrompt,requireUpgrade:L,initialRequestingState:e.requestingState,contentRef:W,blockRef:N}),se="requesting"===re,oe=["requesting","suggesting"].includes(re),ie=(0,_.b)(),le=(0,k.$M)(n);(0,d.useEffect)((()=>{if(!le)return;const e=JSON.parse(localStorage.getItem(le));if(!e)return;const{type:t,options:n}=e;localStorage.removeItem(le),J(t,n)}),[le,J]),(0,d.useEffect)((()=>{ae&&j(!1)}),[ae]),(0,d.useEffect)((()=>{["init","done"].includes(re)&&t({requestingState:re})}),[re,t]);const ce=!!e.content,ue="generateTitle"===e.promptType,de=__("Accept","jetpack"),pe=__("Accept title","jetpack"),me=ue?pe:de,ge=async()=>{let t=[],r=(0,a.LB)({content:e.content||""});if(r?.split("\n").length>1&&r?.split("\n")?.[0]?.match(/^<h1>.*<\/h1>$/)&&!ee){const e=r.split("\n"),t=e.shift();r=e.join("\n"),R({title:t.replace(/<[^>]*>/g,"")})}t=(0,i.rawHandler)({HTML:r}),await P(n,t);const s=(e=>{let t=null;return e.forEach((e=>{const n=document.querySelector(`.wp-block[data-block="${e.clientId}"]`);if(!n)return;"true"===n.contentEditable&&(t=n);const r=n.querySelectorAll("[contenteditable=true]");t=r.length?r[r.length-1]:t})),t})(t);s&&(e=>{const t=window.getSelection();t.selectAllChildren(e),t.collapseToEnd(),e.focus()})(s)},Ae=()=>{ge(),x.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})},he=()=>{I?(R({title:e.content?e.content.trim():""}),T(n),x.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})):Ae()},Ee=()=>{Y(),q(),x.recordEvent("jetpack_ai_assistant_block_stop",{feature:"ai-assistant"})},fe=(0,o.useBlockProps)({ref:N,className:g()({"is-waiting-response":se})}),be=__("Ask Jetpack AI…","jetpack"),Ce=__("Write about… Make a table for…","jetpack"),ve=(0,r.createElement)(r.Fragment,null,Z&&p&&(0,r.createElement)(v.Z,{placement:"ai-assistant-block"}),!ie&&(0,r.createElement)(f.Z,null)),ke=(0,r.createElement)(r.Fragment,null,ae?.message&&!m&&"error_quota_exceeded"!==ae?.code&&(0,r.createElement)(l.Notice,{status:ae.status,isDismissible:!1,className:"jetpack-ai-assistant__error"},ae.message)),Be=(0,d.useCallback)((e=>{e.preventDefault(),x.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:z?.slug,requests_count:D,placement:"jetpack_ai_assistant_block"}),H(e)}),[x,z,D,H]);return(0,r.createElement)(l.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{esc:()=>{["requesting","suggesting"].includes(re)&&Ee()}}},(0,r.createElement)("div",fe,ce&&(0,r.createElement)("div",{ref:W,className:"jetpack-ai-assistant__content"},(0,r.createElement)(d.RawHTML,null,(0,a.LB)({content:e.content||""}))),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(l.PanelBody,{initialOpen:!0},(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(A.Z,{placement:h.I}))),(0,r.createElement)(l.PanelBody,{initialOpen:!0},(0,r.createElement)(l.PanelRow,null,(0,r.createElement)(b.Z,null)))),!oe&&ie&&!L&&(0,r.createElement)(C.Z,{isWaitingState:oe,contentIsLoaded:ce,getSuggestionFromOpenAI:J,retryRequest:te,handleAcceptContent:Ae,handleAcceptTitle:he,handleTryAgain:null,showRetry:K,contentBefore:X,hasPostTitle:!!ee?.length,wholeContent:ne,promptType:e.promptType,setUserPrompt:e=>{if(!Q?.current)return;Q.current.focus(),t({userPrompt:e})},recordEvent:x.recordEvent,isGeneratingTitle:ue}),(0,r.createElement)(a.MW,{ref:Q,disabled:L||!ie,value:e.userPrompt,placeholder:e?.content?be:Ce,onChange:e=>{j(!0),t({userPrompt:e})},onSend:()=>{((...e)=>{J(...e),G()})("userPrompt"),x.recordEvent("jetpack_ai_assistant_block_generate",{feature:"ai-assistant"})},onStop:Ee,onAccept:()=>{ue?he():Ae()},onDiscard:()=>{const r=e?.content===S(n).attributes?.content;t({content:e?.originalContent,promptType:void 0,messages:e?.originalMessages}),ge(),r?x.recordEvent("jetpack_ai_assistant_block_dismiss"):x.recordEvent("jetpack_ai_assistant_block_discard",{feature:"ai-assistant"})},state:re,isTransparent:L||!ie,showButtonLabels:!$,showAccept:"init"!==re&&ce&&!oe,acceptLabel:me,showGuideLine:ce,showRemove:e?.content?.length>0,banner:ve,error:ke,customFooter:U%5!=0&&1!==D||O||V!==E._5?null:(0,r.createElement)(a.xi,{requestsRemaining:U,onUpgradeClick:Be})})))}},27559:(e,t,n)=>{"use strict";var r=n(31985),a=n(23536),s=n(45624),o=n(6747);n(81765),n(54765),n(94662),n(21715);(0,r.S)(a,{edit:s.Z,save:()=>null,transforms:o.Z})},54765:(e,t,n)=>{"use strict";n.d(t,{J7:()=>g,Ri:()=>p,jz:()=>m,kI:()=>d,sr:()=>c});var r=n(4981),a=n(9818),s=n(92694),o=n(23536),i=n(71449),l=n(28788);const c=(0,l.$)("ai-assistant-support"),u=(0,l.$)("ai-assistant-extensions-support"),d=["core/paragraph","core/list","core/heading"];let p=[...d];const m=[];function g(){if(!(0,r.getBlockType)(o.name))return!1;if(!c)return!1;if(!(0,i.b)())return!1;const{errorCode:e}=(0,a.select)("wordpress-com/plans")?.getAiAssistantFeature?.()||{};if(e)return!1;const{getHiddenBlockTypes:t}=(0,a.select)("core/edit-post")||{};return!(t?.()||[]).includes(o.name)}["core/heading","core/paragraph","core/list-item","core/list"].forEach((e=>{m.push(e),p=p.filter((t=>t!==e))})),[].forEach((e=>{u&&(m.push(e),p=p.filter((t=>t!==e)))})),(0,s.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support",(function(e,t){return p.includes(t)&&g()?{...e,supports:{...e.supports,"jetpack/ai":{assistant:!0}}}:e}),100)},49259:(e,t,n)=>{"use strict";n.d(t,{$M:()=>i,ZP:()=>l});var r=n(51806),a=n(52175),s=n(94333),o=(n(99196),n(54458));function i(e){return`ai-assistant-block-${e}`}const l=(0,s.createHigherOrderComponent)((e=>t=>{const{name:n}=t;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(e,t),(0,r.createElement)(a.BlockControls,{group:"block"},(0,r.createElement)(o.Z,{blockType:n})))}),"withAIAssistant")},79191:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(51806),a=n(42290),s=n(13419),o=n(4981),i=n(55609),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(53961),m=n(65235),g=n.n(m),A=(n(99196),n(3180)),h=n(5246),E=n(18135),f=n(71449),b=n(63634),C=n(79817),v=n(44110);const __=d.__,k={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480};function B(e){if(!e?.length)return"";const t=(0,c.select)("core/block-editor").getBlock(e);if(!t)return"";const{innerBlocks:n}=t;return n?.length?n.reduce(((e,t)=>e+(0,o.serialize)(t)+"\n\n"),""):""}function y({clientId:e,className:t=""}){const n=(0,u.useRef)(null),o=(0,u.useRef)(null),{tracks:d}=(0,s.z$)(),m=(0,f.b)(),{inputValue:y,setInputValue:w,isVisible:_,assistantAnchor:I}=(0,u.useContext)(C.D),{dequeueAiAssistantFeatureAsyncRequest:j}=(0,c.useDispatch)("wordpress-com/plans"),x=()=>{setTimeout((()=>{o.current?.focus?.()}),100)},{requestSuggestion:S,requestingState:Q,stopSuggestion:N,requestingError:P}=(0,a.X_)({onDone:x}),{requireUpgrade:T}=(0,E.Z)(),R=P?.code===a.$L||T,Z="requesting"===Q||"suggesting"===Q,L="suggesting"===Q||"done"===Q,M=__("Ask Jetpack AI to create your form","jetpack"),D=__("Creating your form. Please wait a few moments.","jetpack"),{removeNotice:F}=(0,c.useDispatch)(p.store),z=(0,u.useCallback)((()=>{if(!y?.length)return;F(v.uu);const t=(0,b.KR)({request:y,content:B(e)});j(),S(t,{feature:"jetpack-form-ai-extension"}),d.recordEvent("jetpack_ai_assistant_block_generate",{feature:"jetpack-form-ai-extension"}),n?.current?.focus()}),[e,j,y,F,S,d]),O=(0,u.useCallback)((()=>{N(),x(),d.recordEvent("jetpack_ai_assistant_block_stop",{feature:"jetpack-form-ai-extension"})}),[N,d]),U=(0,l.useViewportMatch)("medium","<"),H=U&&I,V=(0,u.useRef)(null),q=(0,u.useRef)(U),[G,$]=(0,u.useState)(U);if((0,u.useEffect)((()=>{const e=n?.current;if(e)return V?.current||(V.current=new ResizeObserver((e=>{if(!_)return;if(H)return;const t=e[0].contentRect.width<k.mobile;t!==q.current&&(q.current=t,$(t))}))),V.current.observe(e),()=>{V?.current?.disconnect()}}),[H,_]),(0,u.useEffect)((()=>{_&&d.recordEvent("jetpack_ai_assistant_prompt_show",{block_type:"jetpack/contact-form"})}),[_,d]),(0,u.useEffect)((()=>{const e=setTimeout((()=>{_&&o?.current&&o.current.focus()}),300);return function(){clearTimeout(e)}}),[]),!_)return null;const W=(0,r.createElement)("div",{className:"jetpack-ai-assistant__bar-wrapper"},(0,r.createElement)(i.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{esc:()=>{["requesting","suggesting"].includes(Q)&&O()}}},(0,r.createElement)("div",{ref:n,className:g()("jetpack-ai-assistant__bar",{[t]:t,"is-fixed":H,"is-mobile-mode":G}),tabIndex:-1},R&&(0,r.createElement)(h.Z,{placement:"jetpack-form-block"}),!m&&(0,r.createElement)(A.Z,null),(0,r.createElement)(a.MW,{ref:o,disabled:R||!m,value:y,placeholder:Z?D:M,onChange:w,onSend:z,onStop:O,state:Q,isTransparent:R||!m,showButtonLabels:!G,showGuideLine:L}))));return H?(0,u.createPortal)(W,I):W}},81732:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(42290),s=n(55609),o=n(94333),i=n(69307),l=n(65736),c=n(79817),u=n(44110);const __=l.__,d="jetpack-ai-assistant-bar__slot";function p({jetpackFormClientId:e}){const{isVisible:t,toggle:n,setAnchor:l,assistantAnchor:p}=(0,i.useContext)(c.D),{requestingState:m}=(0,a.X_)(),g=(0,i.useRef)(null),A=(0,o.useViewportMatch)("medium","<");(0,i.useEffect)((()=>{if(!g.current)return;const e=g.current.closest(".block-editor-block-contextual-toolbar");if(!e)return;let t=e.parentElement?.querySelector(`.${d}`);if(t)return e.after(t),l(t);t=document.createElement("div"),t.setAttribute("role","toolbar"),t.setAttribute("aria-label",__("AI Assistant","jetpack")),t.setAttribute("aria-orientation","horizontal"),t.className=d;const n=e.offsetHeight;t.style.top=`${n}px`,e.after(t),l(t)}),[l]),(0,i.useEffect)((()=>{A||p?.remove()}),[A,p]);const h=(0,i.useCallback)((()=>{if(!e)return n();(0,u.Vl)(e,n)}),[e,n]),E="requesting"===m||"suggesting"===m;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{"mod+/":n}}),(0,r.createElement)(s.ToolbarButton,{ref:g,showTooltip:!0,onClick:h,"aria-haspopup":"true","aria-expanded":t,label:__("Ask AI Assistant","jetpack"),icon:a.u_,disabled:E}))}},59090:(e,t,n)=>{"use strict";n.d(t,{aE:()=>r,nB:()=>a});const r=window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-assistant-form-support"]?.available,a=["jetpack/field-name","jetpack/field-email","jetpack/field-text","jetpack/field-textarea","jetpack/field-checkbox","jetpack/field-date","jetpack/field-telephone","jetpack/field-url","jetpack/field-checkbox-multiple","jetpack/field-radio","jetpack/field-select","jetpack/field-consent","jetpack/button"]},94662:(e,t,n)=>{"use strict";n.d(t,{G:()=>h});var r=n(51806),a=n(42290),s=n(13419),o=n(52175),i=n(4981),l=n(94333),c=n(9818),u=n(69307),d=n(92694),p=(n(99196),n(79191)),m=n(81732),g=n(59090),A=n(44110);function h(e,{checkChildrenBlocks:t=!1,clientId:n}={clientId:""}){const r=(0,i.getBlockType)("jetpack/ai-assistant"),{isModuleActive:a}=(0,s.el)("contact-form");if(!a)return!1;if(!r)return!1;if("string"!=typeof e)return!1;if(!g.aE)return!1;if(!n?.length)return!1;if(t){if(!g.nB.includes(e))return!1}else if("jetpack/contact-form"!==e)return!1;const{getHiddenBlockTypes:o}=(0,c.select)("core/edit-post")||{};return!(o?.()||[]).includes(e)}const E=(0,l.createHigherOrderComponent)((e=>t=>{const n=h(t?.name,{clientId:t.clientId}),{increaseAiAssistantRequestsCount:s}=(0,c.useDispatch)("wordpress-com/plans"),{eventSource:i}=(0,a.X_)({onDone:(0,u.useCallback)((()=>{s()}),[s]),onError:(0,u.useCallback)((e=>{"error_network"!==e.code&&"error_quota_exceeded"!==e.code&&s()}),[s])}),l=(0,u.useCallback)((()=>{i&&i?.close()}),[i]);if((0,u.useEffect)((()=>()=>{"jetpack/contact-form"===t?.name&&l()}),[l,t?.name]),!n)return(0,r.createElement)(e,t);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(e,t),(0,r.createElement)(p.Z,{clientId:t.clientId}),(0,r.createElement)(o.BlockControls,{group:"block"},(0,r.createElement)(m.Z,null)))}),"jetpackFormEditWithAiComponents");(0,d.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support",(function(e,t){return"jetpack/contact-form"!==t?e:{...e,edit:(0,a.oN)((0,A.ZP)(E(e.edit)))}}),100);const f=(0,l.createHigherOrderComponent)((e=>t=>{const n=(0,c.useSelect)((e=>{const n=e("core/block-editor"),{getBlockParentsByBlockName:r}=n;return r(t.clientId,"jetpack/contact-form")?.[0]}),[t.clientId]);if(!h(t?.name,{checkChildrenBlocks:!0,clientId:n}))return(0,r.createElement)(e,t);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(e,t),(0,r.createElement)(o.BlockControls,{group:"parent"},(0,r.createElement)(m.Z,{jetpackFormClientId:n})))}),"jetpackFormChildrenEditWithAiComponents");(0,d.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support",(function(e,t){return g.nB.includes(t)?{...e,edit:f(e.edit)}:e}))},79817:(e,t,n)=>{"use strict";n.d(t,{D:()=>s,v:()=>o});var r=n(51806),a=n(69307);const s=(0,a.createContext)({}),o=({value:e,children:t})=>(0,r.createElement)(s.Provider,{value:e,children:t})},44110:(e,t,n)=>{"use strict";n.d(t,{Vl:()=>E,ZP:()=>f,uu:()=>h});var r=n(51806),a=n(42290),s=n(4981),o=n(55609),i=n(94333),l=n(9818),c=n(69307),u=n(65736),d=n(53961),p=n(94662),m=n(5863),g=n(56359),A=n(79817);const __=u.__,h="ai-assistant";function E(e,t){(0,l.dispatch)("core/block-editor").selectBlock(e),t?.()}const f=(0,i.createHigherOrderComponent)((e=>t=>{const{clientId:n,isSelected:i}=t,{replaceInnerBlocks:u}=(0,l.useDispatch)("core/block-editor"),f=(0,l.useSelect)((e=>e("core/editor")),[]),b=(0,l.useSelect)((e=>e("core/block-editor")),[]),C=f.getCurrentPostId(),v=b.getBlock(n),[k,B]=(0,c.useState)(""),y="jetpack/contact-form"===v?.name&&0===v?.innerBlocks?.length,[w,_]=(0,c.useState)(y),[I,j]=(0,c.useState)(!1),[x,S]=(0,c.useState)(null),Q=(0,c.useRef)([]),N=(0,c.useCallback)((()=>{_(!0)}),[]),P=(0,c.useCallback)((()=>{_(!1)}),[]),T=(0,c.useCallback)((()=>{_(!w)}),[w]),R=(0,c.useCallback)((e=>{S(e)}),[]),{createNotice:Z}=(0,l.useDispatch)(d.store),L=(0,c.useCallback)((({severity:e,message:t,code:n})=>{n!==a.$L&&Z(e,t,{isDismissible:!0,id:h})}),[Z]);(0,c.useEffect)((()=>{i||P()}),[i,P]);const M=(0,c.useMemo)((()=>({inputValue:k,setInputValue:B,isVisible:w,show:N,hide:P,toggle:T,isFixed:I,setAssistantFixed:j,assistantAnchor:x,setAnchor:R})),[k,w,N,P,T,I,x,R]),D=(0,c.useCallback)(((e,t=!1)=>{const r=e.replace(/<!-- (\/)*wp:jetpack\/(contact-)*form ({[^}]*} )*(\/)*-->/g,""),a=(0,g.J)(r),o=(0,s.parse)(a).filter((e=>e.isValid&&!["core/freeform","core/missing","core/html"].includes(e.name)));let i=!1;if(o.length<Q.current.length)o.push(Q.current[Q.current.length-1]);else if(o.length===Q.current.length&&o.length>0){const e=o[o.length-1],t=Q.current[o.length-1];i=!(0,m.c)(e,t)}if(o.length>0&&(o.length!==Q.current.length||i)&&(u(n,o),Q.current=o),t){const e=o.filter((e=>"jetpack/button"===e.name));if(Q.current=Q.current||[],e.length>1){let t=0;Q.current=Q.current.filter((n=>"jetpack/button"!==n.name||(t++,t===e.length))),u(n,Q.current)}else 0===e.length&&u(n,[...Q.current,(0,s.createBlock)("jetpack/button",{label:__("Submit","jetpack"),element:"button",text:__("Submit","jetpack"),borderRadius:8,lock:{remove:!0}})]);Q.current=[]}}),[n,u]);return(0,a.X_)({askQuestionOptions:{postId:C},onDone:e=>{D(e,!0),B("")},onSuggestion:D,onError:L}),(0,p.G)(t.name,{clientId:t.clientId})?(0,r.createElement)(A.v,{value:M},(0,r.createElement)(o.KeyboardShortcuts,{shortcuts:{"mod+/":()=>E(n,N)}},(0,r.createElement)(e,t))):(0,r.createElement)(e,t)}),"withUiHandlerDataProvider")},46448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(42290),a=n(9818),s=n(69307),o=n(51128),i=n.n(o),l=n(27298),c=n(63634),u=n(854),d=n(80609);const p=i()("jetpack-ai-assistant:error"),m=({attributes:e,clientId:t,content:n,tracks:o,userPrompt:i,onSuggestionDone:m,onUnclearPrompt:g,onModeration:A,requireUpgrade:h,initialRequestingState:E,contentRef:f,blockRef:b})=>{const[C,v]=(0,s.useState)(!1),[k,B]=(0,s.useState)(""),{updateBlockAttributes:y}=(0,a.useDispatch)("core/block-editor"),{dequeueAiAssistantFeatureAsyncRequest:w,setAiAssistantFeatureRequireUpgrade:_}=(0,a.useDispatch)("wordpress-com/plans"),{snapToBottom:I,enableAutoScroll:j,disableAutoScroll:x}=(0,d.Z)(b,f),S=(0,a.useSelect)((e=>e("core/editor").getEditedPostAttribute("title"))),Q=(0,a.useSelect)((e=>e("core/editor").getCurrentPostId())),N=(0,s.useRef)([]),P=(0,s.useRef)(),{request:T,stopSuggestion:R,handleErrorQuotaExceededError:Z,requestingState:L,error:M}=(0,r.pw)({onSuggestion:e=>{y(t,{content:e?.replaceAll(c._W,"")}),I()},onDone:e=>{const n=e.replaceAll(c._W,""),r={role:"assistant",content:n};N.current.push(P.current,r),N.current.length>20&&N.current.splice(0,N.current.length-20),y(t,{content:n,messages:N.current}),I(),x(),m?.()},onStop:()=>{I(),x(),m?.()},onError:e=>{switch(e?.code){case r.cv:v(!1);break;case r.q4:v(!1),A?.();break;case r.co:case r.$u:v(!0);break;case r.$L:v(!1),_(!0);break;case r.bC:g?.()}},onAllErrors:e=>{p(e)},initialRequestingState:E,askQuestionOptions:{postId:Q,feature:"ai-assistant",functions:{}}}),D=["requesting","suggesting"].includes(L),F=async(r,a={})=>{if(w(),h)return Z(),void v(!1);if(a={retryRequest:!1,tone:l.Nj,...a},D)return;v(!1);let s=k;if(o.recordEvent("jetpack_ai_chat_completion",{post_id:Q}),N.current=[...e.messages]??[],P.current={},a.retryRequest)P.current=s[s.length-1];else{const o=e?.isLayoutBuldingModeEnable?(0,u.WN)(t):(0,u.xN)();s=(0,c.Iq)({generatedContent:n,allPostContent:o,postContentAbove:(0,u.h7)(t),currentPostTitle:S,options:a,userPrompt:a?.userPrompt||i,type:r,isGeneratingTitle:"generateTitle"===e.promptType}),P.current=s.pop(),s=[...s,...N.current],s.push(P.current),B(s),"generateTitle"!==e.promptType&&y(t,{promptType:r})}try{j(),await T(s)}catch(e){p(e),v(!0),x()}};return{setShowRetry:v,showRetry:C,postTitle:S,contentBefore:(0,u.h7)(t),wholeContent:(0,u.xN)(),requestingState:L,error:M,getSuggestionFromOpenAI:F,stopSuggestion:R,retryRequest:()=>F("",{retryRequest:!0})}}},63206:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(6895),a=n(13419),s=n(46867),o=n(18135);const i=()=>{const e=new URLSearchParams(window.location.search),t=(0,a.lQ)();return(0,a.Wp)()&&e.has("post")?`https://wordpress.com/post/${t}/${e.get("post")}`:`https://wordpress.com/home/${t}`};function l(){const{nextTier:e,tierPlansEnabled:t}=(0,o.Z)(),n=i(),l=t?(0,r.Z)("jetpack-ai-yearly-tier-upgrade-nudge",{site:(0,a.lQ)(),path:`jetpack_ai_yearly:-q-${e?.limit}`,query:`redirect_to=${encodeURIComponent(n)}`}):(0,r.Z)("jetpack-ai-monthly-plan-ai-assistant-block-banner",{site:(0,a.lQ)()}),c=(0,a.Ug)()||(0,a.Wp)()?l:`${window?.Jetpack_Editor_Initial_State?.adminUrl}admin.php?redirect_to_referrer=1&page=my-jetpack#/add-jetpack-ai`,{autosaveAndRedirect:u,isRedirecting:d}=(0,s.Z)(c);return{checkoutUrl:c,autosaveAndRedirect:u,isRedirecting:d}}},18135:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9818),a=n(23795);function s(){const{data:e,loading:t,requestsLimit:n,requestsCount:s}=(0,r.useSelect)((e=>{const{getAiAssistantFeature:t,getIsRequestingAiAssistantFeature:n}=e("wordpress-com/plans"),r=t(),{currentTier:s,usagePeriod:o,requestsCount:i,requestsLimit:l}=r,c=(0,a.U_)(s),u=c===a.dt?o?.requestsCount:i,d=c===a._5?l:s?.limit;return{data:r,loading:n(),requestsCount:u,requestsLimit:d}}),[]),{fetchAiAssistantFeature:o,increaseAiAssistantRequestsCount:i,dequeueAiAssistantFeatureAsyncRequest:l}=(0,r.useDispatch)("wordpress-com/plans");return{...e,requestsCount:s,requestsLimit:n,loading:t,error:null,refresh:o,increaseRequestsCount:i,dequeueAsyncRequest:l}}},42890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6975),a=n(69307);const s=window?.Jetpack_Editor_Initial_State?.tracksUserData||null,o=parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId)||0,i=()=>((0,a.useEffect)((()=>{s&&r.Z.initialize(s?.userid,s?.username,o?{blog_id:o}:{})}),[]),r.Z)},80609:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(69307),a=n(51128);const s=n.n(a)()("jetpack-ai-assistant:use-auto-scroll"),o=(e,t,n=!1)=>{const a=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),l=(0,r.useRef)(!1),c=(0,r.useRef)(!1),u=(0,r.useRef)(!1),d=(0,r.useRef)({scrollPadding:"",scrollMargin:""}),p=(0,r.useCallback)((()=>{s("enabling ignore scroll"),l.current=!0}),[]),m=(0,r.useCallback)((()=>{i.current&&c.current&&!l.current&&p()}),[p]),g=(0,r.useCallback)((()=>{i.current=!0,l.current=!1,c.current=!1,u.current=!1,a.current?.addEventListener("scroll",m),s("enabling auto scroll")}),[m]),A=(0,r.useCallback)((()=>{i.current=!1,l.current=!1,c.current=!1,u.current=!1,a.current?.removeEventListener("scroll",m),o.current?.style&&(o.current.style.scrollPadding=d.current.scrollPadding,o.current.style.scrollMargin=d.current.scrollMargin),a.current=null,s("disabling auto scroll")}),[m]),h=(0,r.useCallback)((()=>{if(!i.current||l.current)return;const r=n?e?.current:t?.current?.firstElementChild?.lastElementChild;r&&!u.current&&(c.current=!0,u.current=!0,a?.current?.removeEventListener?.("scroll",m),r?.scrollIntoView({block:"end",inline:"end"}),setTimeout((()=>{u.current=!1,a?.current?.addEventListener?.("scroll",m)}),200))}),[e,t,n,m]),E=(0,r.useCallback)((e=>{if(null==e)return null;if("BODY"===e?.nodeName)return e;if(e?.ownerDocument!==document)return e.ownerDocument;const{overflow:t}=window.getComputedStyle(e);return t.split(" ").every((e=>"auto"===e||"scroll"===e))?e:e?.parentElement?E(e?.parentElement):e}),[]);return(0,r.useEffect)((()=>{const t=E(e?.current?.parentElement);!a.current&&t&&(a.current=t,o.current=t instanceof HTMLElement?t:t.documentElement,d.current={scrollPadding:o.current.style.scrollPadding,scrollMargin:o.current.style.scrollMargin},o.current.style.scrollPadding="80px",o.current.style.scrollMargin="10px")}),[e,E]),{snapToBottom:h,enableAutoScroll:g,disableAutoScroll:A}}},97477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(13419),a=n(9818),s=n(99196),o=n(54765),i=n(49259),l=n(854),c=n(6747);const u=()=>{const{replaceBlock:e,removeBlocks:t}=(0,a.useDispatch)("core/block-editor"),n=(0,a.useSelect)((e=>e("core/block-editor")),[]),{getSelectedBlockClientIds:u,getBlocksByClientId:d,getBlock:p,getBlockParents:m}=n,{tracks:g}=(0,r.z$)();return{canTransformToAIAssistant:(0,s.useCallback)((({clientId:e,blockName:t})=>{if(!p(e))return!1;if(!o.kI.includes(t))return!1;const n=m(e);if(0===n.length)return!0;const r=p(n[n.length-1]);return!["core/list","core/list-item"].includes(r.name)}),[p,m]),transformToAIAssistant:(0,s.useCallback)((({request:n}={})=>{const r=u(),a=d(r),s=(0,l.vL)(a),[o]=a,[p,...m]=r,A={...o?.attributes||{},content:s},h=(0,c.b)(o.name,A);if(n?.promptType){g.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:n.promptType,block_type:o.name});const e={clientId:p,type:n.promptType,options:{...n.options,contentType:"generated",fromExtension:!0}};localStorage.setItem((0,i.$M)(h.clientId),JSON.stringify(e))}else g.recordEvent("jetpack_ai_assistant_prompt_show",{block_type:o.name});e(p,h),t(m)}),[d,u,t,e,g]),getSelectedBlockClientIds:u}}},62378:(e,t,n)=>{"use strict";n.d(t,{gH:()=>o});var r=n(42290),a=n(4981),s=n(9818);class o{renderRules=[];firstUpdate=!0;behavior="dropdown";isChildBlock=!1;constructor(e,t=[],n="dropdown",r=!1){this.clientId=e,this.renderRules=t,this.behavior=n,this.isChildBlock=r}getBlock(){const{getBlock:e}=(0,s.select)("core/block-editor");return e(this.clientId)}getContent(){const e=this.getBlock();return t=(0,a.getBlockContent)(e),(0,r.g)({content:t});var t}renderContent(e){return function(e,t=[]){return(0,r.LB)({content:e,rules:t,extension:!0})}(e,this.renderRules)}onSuggestion(e){if(!e)return;const t=this.renderContent(e);this.replaceBlockContent(t)}onDone(e){this.firstUpdate=!0}replaceBlockContent(e){const[t]=(0,a.rawHandler)({HTML:e});if(!t)return;const{updateBlockAttributes:n,replaceInnerBlocks:r,__unstableMarkNextChangeAsNotPersistent:o}=(0,s.dispatch)("core/block-editor");this.firstUpdate?this.firstUpdate=!1:o(),n(this.clientId,t.attributes),o(),r(this.clientId,t.innerBlocks)}}},65598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(42290),s=n(13419),o=n(69307),i=n(65736),l=n(65235),c=n.n(l),u=(n(99196),n(63206)),d=n(18135);const __=i.__,p=c()("jetpack-ai-assistant-extension-ai-input","wp-block");function m({className:e,requestingState:t,requestingError:n,inputRef:i,wrapperRef:l,action:m,blockType:g,request:A,stopSuggestion:h,close:E,undo:f,tryAgain:b}){const[C,v]=(0,o.useState)(""),[k,B]=(0,o.useState)(__("Ask Jetpack AI to edit…","jetpack")),{checkoutUrl:y}=(0,u.Z)(),{tracks:w}=(0,s.z$)(),[_,I]=(0,o.useState)(0),[j,x]=(0,o.useState)(!1),{requireUpgrade:S,requestsCount:Q,requestsLimit:N,loading:P,nextTier:T,currentTier:R}=(0,d.Z)(),Z=(0,o.useMemo)((()=>S||["requesting","suggesting"].includes(t)),[S,t]),L=(0,o.useCallback)((()=>{w.recordEvent("jetpack_ai_assistant_extension_generate",{block_type:g}),A?.(C)}),[g,A,w,C]),M=(0,o.useCallback)((()=>{w.recordEvent("jetpack_ai_assistant_extension_stop",{block_type:g}),h?.()}),[g,h,w]);const D=(0,o.useCallback)((()=>{w.recordEvent("jetpack_ai_assistant_undo",{block_type:g}),f?.()}),[g,w,f]),F=(0,o.useCallback)((()=>{w.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:R?.slug,requests_count:Q,placement:"jetpack_ai_assistant_extension"})}),[R?.slug,Q,w]),z=(0,o.useCallback)((()=>{w.recordEvent("jetpack_ai_assistant_try_again",{block_type:g}),b?.()}),[g,w,b]);return(0,o.useEffect)((()=>{["init","done"].includes(t)&&v("")}),[t]),(0,o.useEffect)((()=>{B(m||__("Ask Jetpack AI to edit…","jetpack")),m&&v("")}),[m]),(0,o.useEffect)((()=>{x(!P&&!!T&&0===C.length)}),[P,T,C]),(0,o.useEffect)((()=>{const e=Math.max(N-Q,0);I(e)}),[N,Q]),(0,r.createElement)(a.C3,{className:c()(p,e),placeholder:k,disabled:Z,value:C,state:t,showGuideLine:!0,error:n,requestsRemaining:_,showUpgradeMessage:j,upgradeUrl:y,onChange:v,onSend:L,onStop:M,onClose:function(){E?.()},onUndo:D,onUpgrade:F,onTryAgain:z,wrapperRef:l,ref:i})}},27222:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(42290),s=n(13419),o=n(55609),i=n(69307),l=n(65736),c=n(47798),u=n(97477),d=n(57556);const __=l.__;function p({blockType:e,onClose:t,onAskAiAssistant:n,onRequestSuggestion:a}){const{canTransformToAIAssistant:s,transformToAIAssistant:o,getSelectedBlockClientIds:l}=(0,u.Z)(),d=(0,i.useCallback)((r=>{const i=l(),[c]=i;i.length<2||!s({clientId:c,blockName:e})?(r?a?.(r.promptType,r.options,r.humanText):n?.(),t?.()):o({request:r})}),[e,s,l,n,t,a,o]);return(0,r.createElement)(c.ZP,{blockType:e,onRequestSuggestion:(e,t,n)=>{d({promptType:e,options:t,humanText:n})},onAskAiAssistant:async()=>{d()},disabled:!1})}function m({behavior:e,blockType:t,label:n=__("AI Assistant","jetpack"),onAskAiAssistant:l,onRequestSuggestion:c}){const{tracks:u}=(0,s.z$)(),m=(0,i.useContext)(d.y),g=(0,i.useCallback)((e=>{e&&u.recordEvent("jetpack_ai_assistant_extension_toolbar_menu_show",{block_type:t})}),[t,u]),A=(0,i.useCallback)((()=>{u.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_prompt_show",{block_type:t}),l?.()}),[t,l,u]),h=(0,i.useCallback)(((e,n,r)=>{u.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:e,block_type:t}),c?.(e,n,r)}),[t,c,u]);return(0,r.createElement)(o.Dropdown,{popoverProps:{variant:"toolbar"},renderToggle:({isOpen:t,onToggle:s})=>(0,r.createElement)(o.ToolbarButton,{className:"jetpack-ai-assistant__button",showTooltip:!0,onClick:()=>{if("function"!=typeof e)switch(e){case"action":A();break;case"dropdown":s()}else e({onToggle:s,onAskAiAssistant:l,context:m})},"aria-haspopup":"true","aria-expanded":t,label:n,icon:a.u_}),onToggle:g,renderContent:({onClose:e})=>(0,r.createElement)(p,{onClose:e,blockType:t,onAskAiAssistant:A,onRequestSuggestion:h})})}},57556:(e,t,n)=>{"use strict";n.d(t,{W:()=>g,y:()=>m});var r=n(69307),a=n(51128),s=n.n(a),o=n(62378),i=n(47963),l=n(50084),c=n(81101),u=n(25073);const d=s()("jetpack-ai-assistant:extensions:get-block-handler"),p={"core/heading":i.s,"core/paragraph":u.Z,"core/list-item":c.n,"core/list":l.J},m=(0,r.createContext)({});function g(e,t){let n=p[e];n||(d(`No handler found for block type: ${e}. Using default handler.`),n=o.gH);const r=new n(t);return{onSuggestion:r.onSuggestion.bind(r),onDone:r.onDone.bind(r),getContent:r.getContent.bind(r),behavior:r.behavior,isChildBlock:r.isChildBlock}}},47963:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(62378);class a extends r.gH{constructor(e){super(e,[])}onSuggestion(e){const t=this.getBlock();if(e.startsWith("#")||(e=`${"#".repeat(t?.attributes?.level||1)} ${e}`),e.match(/^#*\s*$/))return;const n=this.renderContent(e);this.replaceBlockContent(n)}}},73283:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(4981),a=n(9818),s=n(54765);function o(e){if(!(0,r.getBlockType)("jetpack/ai-assistant"))return!1;if(!s.sr)return!1;if(!s.jz.includes(e))return!1;const{getHiddenBlockTypes:t}=(0,a.select)("core/edit-post")||{};return!(t?.()||[]).includes(e)}},81101:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(62378);class a extends r.gH{constructor(e){super(e,["listItem"]),this.isChildBlock=!0}}},50084:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(62378);class a extends r.gH{constructor(e){super(e,["list"])}}},25073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(42290),a=n(4981),s=n(62378);const o=new r.JP({fixes:["paragraph"]});class i extends s.gH{constructor(e){super(e,["paragraph"])}getContent(){const e=this.getBlock();return t=(0,a.getBlockContent)(e),o.render({content:t});var t}}},21715:(e,t,n)=>{"use strict";var r=n(51806),a=n(42290),s=n(52175),o=n(94333),i=n(9818),l=n(69307),c=n(92694),u=n(51128),d=n.n(u),p=(n(99196),n(18135)),m=n(80609),g=n(57832),A=n(65598),h=n(27222),E=n(57556),f=n(73283);const b=d()("jetpack-ai-assistant:extensions:with-ai-extension"),C={"core/heading":"heading","core/paragraph":"paragraph","core/list-item":"list-item","core/list":"list"},v={group:"block"},k=(0,o.createHigherOrderComponent)((e=>t=>{const{clientId:n,isSelected:o,name:c}=t,u=(0,l.useRef)(null),d=(0,l.useRef)(0),f=(0,l.useRef)(null),k=(0,l.useRef)(""),B=(0,l.useRef)(null),y=(0,l.useRef)(document),w=(0,l.useRef)([]),[_,I]=(0,l.useState)(""),j=(0,l.useRef)(null),[x,S]=(0,l.useState)(!1),{undo:Q}=(0,i.useDispatch)("core/editor"),{postId:N}=(0,i.useSelect)((e=>{const{getCurrentPostId:t}=e("core/editor");return{postId:t()}}),[]),{id:P,className:T}=(0,s.useBlockProps)(),{increaseRequestsCount:R,dequeueAsyncRequest:Z,requireUpgrade:L}=(0,p.Z)(),{snapToBottom:M,enableAutoScroll:D,disableAutoScroll:F}=(0,m.Z)({current:y?.current?.getElementById(P)},void 0,!0),z=(0,l.useCallback)((()=>{B.current?.focus()}),[]),{onSuggestion:O,onDone:U,getContent:H,behavior:V,isChildBlock:q}=(0,l.useMemo)((()=>(0,E.W)(c,n)),[c,n]),G=(0,l.useCallback)((()=>{S((e=>!e))}),[]),$=(0,l.useCallback)((({promptType:e,options:t})=>{const n=H(),r=C[c];return[...w.current,{role:"jetpack-ai",context:{type:(0,g.Sb)(e,r),content:n,request:t?.userPrompt,tone:t?.tone,language:t?.language,is_follow_up:w.current.length>0}}]}),[c,H]),W=(0,l.useCallback)((e=>{const t=e||y.current.getElementById(P);t&&u.current&&t.style.setProperty("padding-bottom",`calc(${d.current+16}px + ${k.current||"0px"} )`,"important")}),[P]),J=(0,l.useCallback)((e=>{O(e),W(),M()}),[O,W,M]),Y=(0,l.useCallback)((e=>{if(F(),U(e),R(),I(""),j.current?.message){const e={role:"assistant",content:H()};if(w.current.push(j.current.message,e),w.current.length>20){w.current.splice(0,w.current.length-20);const e=w.current.findIndex((e=>"jetpack-ai"===e.role));-1!==e&&(w.current=w.current.slice(e),w.current[0].context={...w.current[0].context,is_follow_up:!1})}}j.current=null,setTimeout((()=>{W(),z()}),100)}),[F,U,R,H,W,z]),K=(0,l.useCallback)((e=>{F(),I(""),b("Request error",e),e.code!==a.co&&e.code!==a.$L&&R()}),[F,R]),{request:X,stopSuggestion:ee,requestingState:te,error:ne,reset:re}=(0,a.pw)({onSuggestion:J,onDone:Y,onError:K,askQuestionOptions:{postId:N,feature:"ai-assistant"}}),ae=(0,l.useCallback)(((e,t,n)=>{if(S(!0),L)return;n&&I(n);const r=$({promptType:e,options:t});b("Request suggestion",e,t);const a=r[r.length-1];j.current={promptType:e,options:t,humanText:n,message:a},Z(),D(),X(r)}),[Z,D,$,X,L]),se=(0,l.useCallback)((e=>{const t={userPrompt:e};D(),ae("userPrompt",t)}),[D,ae]),oe=(0,l.useCallback)((()=>{F(),ee(),z()}),[F,ee,z]),ie=(0,l.useCallback)((()=>{j.current&&ae(j.current.promptType,j.current.options,j.current.humanText)}),[j,ae]),le=(0,l.useCallback)((()=>{S(!1),re(),I(""),j.current=null,w.current=[]}),[re]),ce=(0,l.useCallback)((async()=>{await Q(),le()}),[Q,le]);(0,l.useEffect)((()=>{o||le()}),[o,le]),(0,l.useEffect)((()=>{B.current&&(y.current=B.current.ownerDocument,z())}),[x,z]),(0,l.useEffect)((()=>{let e=y.current.getElementById(P);if(e)return x&&!f.current&&u.current?(k.current=e.style.paddingBottom,f.current=new ResizeObserver((([t])=>{if(e=y.current.getElementById(P),d.current=t.contentRect.height,e&&u.current&&d.current>0){W(e);const{marginBottom:t}=getComputedStyle(e),n=parseFloat(t);u.current.style.setProperty("margin-top",`-${d.current+n}px`,"important"),u.current.style.setProperty("margin-bottom",`${n+16}px`,"important")}})),f.current.observe(u.current)):f.current&&(e.style.paddingBottom=k.current,f.current.disconnect(),f.current=null,d.current=0),()=>{f.current&&f.current.disconnect()}}),[W,n,f,P,x]);const ue=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(e,t),x&&(0,r.createElement)(A.Z,{className:T,requestingState:te,requestingError:ne,wrapperRef:u,inputRef:B,action:_,blockType:c,request:se,stopSuggestion:oe,close:le,undo:ce,tryAgain:ie}),(0,r.createElement)(s.BlockControls,v,(0,r.createElement)(h.Z,{blockType:c,onAskAiAssistant:G,onRequestSuggestion:ae,behavior:V})));if(q)return ue;const de={value:{[c]:{handleAskAiAssistant:G,handleRequestSuggestion:ae}}};return(0,r.createElement)(E.y.Provider,de,ue)}),"blockEditWithAiComponents");(0,c.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support/with-ai-extension",(function(e,t){return(0,f.J)(t)?{...e,edit:k(e.edit)}:e}),100)},71449:(e,t,n)=>{"use strict";n.d(t,{b:()=>u,d:()=>d});var r=n(13419),a=n(51128),s=n.n(a);const o=window?.JP_CONNECTION_INITIAL_STATE,i=s()("jetpack-ai-assistant:connection");let l=!1;const c=e=>{l||(i(e),l=!0)};function u(){return(0,r.Wp)()?(c("Simple site connected ✅"),!0):(0,r.Ug)()?(c("Atomic site connected ✅"),!0):o?.connectionStatus?.isUserConnected?(c("Jetpack user is connected ✅"),!0):(c("User is not connected ❌"),!1)}function d(){if((0,r.Wp)())return!0;return!1==!(o?.userConnectionData?.currentUser?.permissions??{}).manage_options}},57832:(e,t,n)=>{"use strict";n.d(t,{Sb:()=>u,v_:()=>i,x1:()=>l});var r=n(63634);const a="title",s="content",o=null;function i(e){return{role:"jetpack-ai",context:{type:"ai-assistant-initial-prompt",for:u(e)}}}function l({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:a,options:s,type:o,userPrompt:i,isGeneratingTitle:l}){const u=[],d="generated"===s?.contentType;let p=null;switch(o){case r.qA:p=a;break;case r.sz:case r.hI:case r.Hd:p=n;break;case r.jf:p=t;break;case r.TV:case r.DR:p=e;break;case r.Lg:case r.Lq:case r.Nw:p=d?e:t;break;case r.Gh:p=e||t}const m=function(e,t){return!e&&t&&t.length>0?{role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:t}}:null}(o===r.Gh?!!e?.length:d,p);return m&&u.push(m),u.push({role:"jetpack-ai",context:c({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:a,options:s,type:o,userPrompt:i,isGeneratingTitle:l})}),u}function c({options:e,type:t,userPrompt:n,isGeneratingTitle:i}){const l=function(e,t,n){return e?a:!t||n?s:o}(i,"generated"===e?.contentType,e?.fromExtension||!1);return{type:u(t),...l?{subject:l}:{},...t===r.Lg&&e?.tone?{tone:e.tone}:{},...t===r.Nw&&e?.language?{language:e.language}:{},...t===r.Gh&&n?{request:n}:{}}}function u(e,t){const n={[r.qA]:"ai-assistant-summary-by-title",[r.sz]:"ai-assistant-continue-writing",[r.hI]:"ai-assistant-simplify",[r.Hd]:"ai-assistant-correct-spelling",[r.jf]:"ai-assistant-generate-title",[r.TV]:"ai-assistant-make-longer",[r.DR]:"ai-assistant-make-shorter",[r.Lg]:"ai-assistant-change-tone",[r.Lq]:"ai-assistant-summarize",[r.Nw]:"ai-assistant-change-language",[r.Gh]:"ai-assistant-user-prompt"};return t?`${n[e]}-${t}-extension`:n[e]}},63634:(e,t,n)=>{"use strict";n.d(t,{DR:()=>u,Gh:()=>g,Hd:()=>i,Iq:()=>E,KR:()=>h,Lg:()=>d,Lq:()=>p,Nw:()=>m,TV:()=>c,_W:()=>A,hI:()=>o,jf:()=>l,qA:()=>a,sz:()=>s});var r=n(57832);const a="titleSummary",s="continue",o="simplify",i="correctSpelling",l="generateTitle",c="makeLonger",u="makeShorter",d="changeTone",p="summarize",m="changeLanguage",g="userPrompt",A="````";function h({content:e,request:t}){if(!t)throw new Error("You must provide a custom prompt for the Jetpack Form Custom Prompt");return[{role:"jetpack-ai",context:{type:"form-ai-extension",content:e,request:t}}]}function E({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:a,options:s,type:o,userPrompt:i,isGeneratingTitle:l}){return[(0,r.v_)(o),...(0,r.x1)({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:a,options:s,type:o,userPrompt:i,isGeneratingTitle:l})]}},854:(e,t,n)=>{"use strict";n.d(t,{WN:()=>c,h7:()=>o,t$:()=>u,vL:()=>l,xN:()=>i});var r=n(42290),a=n(4981),s=n(9818);function o(e){if(!e)return"";const t=(0,s.select)("core/block-editor"),n=t.getBlockIndex(e),o=t.getBlocks().slice(0,n)??[];return o?.length?(0,r.g)({content:(0,a.serialize)(o)}):""}function i(){const e=(0,s.select)("core/block-editor").getBlocks();return e?.length?(0,r.g)({content:(0,a.serialize)(e)}):""}function l(e){return e.filter((e=>null!=e)).map((e=>(0,a.getBlockContent)(e))).join("\n\n")}function c(e){const t=(0,s.select)("core/block-editor").getBlock(e);return t?.innerBlocks?.length?l(t.innerBlocks):""}function u(e){if(!e?.replace(/\s+/,"").length)return"";const t=document.createElement("div");t.innerHTML=e;const{textContent:n,innerText:r}=t;return n&&!n.replace(/\s+/,"").length||r&&!r.replace(/\s+/,"").length?"":t.textContent||t.innerText||""}},72881:(e,t,n)=>{"use strict";function r(e){return e&&"string"==typeof e?e.charAt(0).toUpperCase()+e.slice(1):""}n.d(t,{k:()=>r})},5863:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});const r=e=>{delete e.clientId;for(const t of e.innerBlocks??[])r(t);return e},a=e=>r((e=>JSON.parse(JSON.stringify(e)))(e));function s(e,t){const n=a(e),r=a(t);return JSON.stringify(n)===JSON.stringify(r)}},56359:(e,t,n)=>{"use strict";function r(e){const t=document.createElement("div");return t.innerHTML=e,t.innerHTML}n.d(t,{J:()=>r})},28788:(e,t,n)=>{"use strict";function r(e){return!0===window?.Jetpack_Editor_Initial_State?.available_blocks?.[e]?.available}n.d(t,{$:()=>r})},81765:(e,t,n)=>{"use strict";var r=n(4981),a=n(92694),s=n(54765),o=n(49259);(0,a.addFilter)("blocks.registerBlockType","jetpack/handle-jetpack-ai-supports",(function(e){const t=(0,r.getBlockSupport)(e,"jetpack/ai");return t&&t?.assistant&&(0,s.J7)()?{...e,edit:(0,o.ZP)(e.edit)}:e}),100)},6747:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,b:()=>l});var r=n(42290),a=n(4981),s=n(23536),o=n(54765);const i=[];function l(e,t){const{content:n,...o}=t;let i=n;"core/heading"===e&&t?.level&&(i=i.replace(/<(\/?)h\d([^>]*)>/g,`<$1h${t.level}$2>`));const l=(0,r.g)({content:i}),c=[];return c.push({role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:l}}),(0,a.createBlock)(s.name,{...o,content:l,originalContent:l,messages:c,originalMessages:c})}for(const e of o.Ri)i.push({type:"block",blocks:[e],isMatch:()=>(0,o.J7)(),transform:(t,n)=>{const r=(0,a.getSaveContent)(e,t,n);return l(e,{...t,content:r})}});const c={from:i}},98825:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(26546),o=n(46867);const __=a.__,i=()=>{const e=`${window?.Jetpack_Editor_Initial_State?.adminUrl}admin.php?page=my-jetpack#/connection`,{autosaveAndRedirect:t,isRedirecting:n}=(0,o.Z)(e);if(window?.Jetpack_Editor_Initial_State?.jetpack?.is_current_user_connected)return null;return(0,r.createElement)(s.p,{buttonText:__("Reconnect Jetpack","jetpack"),checkoutUrl:e,className:"jetpack-ai-connect-banner",description:__("Your account is not connected to Jetpack at the moment.","jetpack"),goToCheckoutPage:e=>{t(e)},isRedirecting:n,visible:!0,align:null,title:null,context:null})}},56352:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(26546),o=n(46867);const __=a.__,i=()=>{let e=window?.Jetpack_Editor_Initial_State?.adminUrl||"";e=e.replace(/wp-admin\/\?frame-nonce=[a-z0-9]+/,"wp-admin/");const t=`${e}admin.php?page=jetpack-search`,{autosaveAndRedirect:n,isRedirecting:a}=(0,o.Z)(t);if(window?.Jetpack_AIChatBlock?.jetpackSettings?.instant_search_enabled)return null;return(0,r.createElement)(s.p,{buttonText:__("Enable Jetpack Search","jetpack"),checkoutUrl:t,className:"jetpack-ai-connect-banner",description:__("You need to enable Jetpack Search so that Jetpack AI can index your site.","jetpack"),goToCheckoutPage:e=>{n(e)},isRedirecting:a,visible:!0,align:null,title:null,context:null})}},53497:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,j:()=>a});var r=n(65736);const __=r.__,a=__("Ask","jetpack"),s=__("Ask a question about this site","jetpack")},23719:(e,t,n)=>{"use strict";n.d(t,{V:()=>c});var r=n(51806),a=n(52175),s=n(55609),o=n(37798),i=n(65736),l=n(53497);const __=i.__;function c({setAttributes:e,placeholder:t,showCopy:n,showFeedback:i,showSources:c}){const[u,d]=(0,o.useEntityProp)("root","site","jetpack_search_ai_prompt_override");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,r.createElement)(s.BaseControl,{label:__("Placeholder Text","jetpack"),className:"jetpack-ai-chat__ask-button-text"},(0,r.createElement)(s.TextControl,{placeholder:l.K,onChange:t=>e({placeholder:t}),value:t})))),(0,r.createElement)(a.InspectorAdvancedControls,null,(0,r.createElement)(s.BaseControl,{label:__("Additional instructions","jetpack"),help:__("Give Jetpack AI additional instructions for answer length, format, and tone.","jetpack")},(0,r.createElement)(s.TextareaControl,{value:u,onChange:d})),(0,r.createElement)(s.ToggleControl,{label:__("Show copy answer button.","jetpack"),help:__("Allow users to easily copy the answer.","jetpack"),checked:n,onChange:t=>e({showCopy:t})}),(0,r.createElement)(s.ToggleControl,{label:__("Show rating button.","jetpack"),help:__("Allow users to rate the answer and give feedback.","jetpack"),checked:i,onChange:t=>e({showFeedback:t})}),(0,r.createElement)(s.ToggleControl,{label:__("Show list of sources.","jetpack"),help:__("Show used sources at the bottom of the answer.","jetpack"),checked:c,onChange:t=>e({showSources:t})})))}},74021:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(42290),s=n(52175),o=n(55609),i=n(9818),l=n(98825),c=n(56352),u=n(53497),d=n(23719);function p({attributes:e,setAttributes:t,clientId:n}){const{askButtonLabel:p=u.j,placeholder:m=u.K,showCopy:g,showFeedback:A,showSources:h}=e,E=(0,s.useBlockProps)(),f=(0,i.useSelect)((e=>e("core/block-editor").isBlockSelected(n)),[n]);return(0,r.createElement)("div",E,(0,r.createElement)(l.Z,null),(0,r.createElement)(c.Z,null),(0,r.createElement)("div",{className:"jetpack-ai-chat-question-wrapper"},(0,r.createElement)(o.TextControl,{className:"jetpack-ai-chat-question-input",placeholder:m,disabled:!0}),(0,r.createElement)(s.RichText,{className:"wp-block-button__link jetpack-ai-chat-question-button",onChange:e=>t({askButtonLabel:e}),value:p,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})),f&&(0,r.createElement)(a.Eo,null),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(d.V,{askButtonLabel:p,placeholder:m,setAttributes:t,showCopy:g,showFeedback:A,showSources:h})))}},86116:(e,t,n)=>{"use strict";var r=n(31985),a=n(21540),s=n(74021),o=n(148);(0,r.S)(a,{edit:s.Z,save:o.Z})},148:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(53497);function o({attributes:e}){const t=a.useBlockProps.save({"data-ask-button-label":e.askButtonLabel||s.j});return(0,r.createElement)("div",t)}},77567:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=["A digital Illustration of the a purely mechanical television, 4k, detailed, fantasy vivid colors","3D render of a floating futuristic castle in a clear sky, digital art","Hedgehog smelling a flower | clear blue sky | intricate artwork by Beatrix Potter | cottagecore aesthetic | 8K | highly detailed | wide angle |","Hyper realistic photo of a high end futuristic single-level house where walls are made of windows, light coming through the window, mid century modern style, cinematic lighting","Pink ape Astronaut in space holding a claymate in a photorealistic style, digital art","Studio photography set of high detail irregular marble stones with gold lines stacked in impossible balance, perfect composition, cinematic light photo studio, beige color scheme, indirect lighting, 8k, elegant and luxury style","Ultrawide, highway, with golden ratio style, 4K , sides are prairies, light is Golden hour, sky with red Clouds, ultrarealistic, CinémaScope, ultra wide format, ratio 16/9, 1/1000 sec, maximum resolution, Sharp details","A photo of cat flying out to space as an astronaut, digital art","A hyper realistic rilakkuma enjoying an icecream in the snow","A lush tropical forest with a waterfall.","A majestic snowy mountain peak.","A beautiful sunset over a beach.","A serene lake surrounded by trees.","A picturesque countryside with rolling hills.","A colorful hot air balloon in the sky.","A peaceful Zen garden.","A grand castle on a hill.","A lively street market in a bustling city.","A delightful flower garden in full bloom.","A cozy cabin in the woods.","A vibrant coral reef teeming with sea life.","A classic European city with cobblestone streets.","A stunning waterfall cascading into a crystal clear pool.","A secluded cabin on the edge of a lake.","A beautiful desert landscape with sand dunes.","A majestic elephant in its natural habitat.","A charming countryside village with thatched roof cottages.","A dreamy castle floating on a cloud.","A whimsical tree house in a forest.","A vibrant city skyline at night.","A picturesque vineyard with rows of grapevines.","A peaceful Japanese garden with a koi pond.","A charming lighthouse on a rocky coastline.","A beautiful waterfall surrounded by greenery.","A dreamy castle with a moat and drawbridge.","A colorful hot air balloon festival.","A beautiful garden with a fountain and sculptures.","A picturesque countryside with a windmill.","A stunning mountain landscape with a rainbow."]},84295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(13419),s=n(86989),o=n.n(s),i=n(52175),l=n(4981),c=n(55609),u=n(9818),d=n(69307),p=n(65736),m=n(77567);const __=p.__;function g({attributes:e,setAttributes:t,clientId:n}){const[s,p]=(0,d.useState)(!1),[g,A]=(0,d.useState)([]),[h,E]=(0,d.useState)(null),[f,b]=(0,d.useState)(""),{replaceBlock:C}=(0,u.useDispatch)(i.store),[v,k]=(0,d.useState)(null),[B]=(0,d.useState)((y=m.K)[Math.floor(Math.random()*y.length)]);var y;const w=__("Retry","jetpack"),_=__("Submit","jetpack"),I=v?w:_,{tracks:j}=(0,a.z$)(),{mediaUpload:x}=(0,u.useSelect)((e=>{const{getSettings:t}=e(i.store);return{mediaUpload:t().mediaUpload}}),[]),S=(0,u.useSelect)((e=>e("core/editor").getCurrentPostId())),Q=({image:e,inModal:t=!1})=>(0,r.createElement)(c.Flex,{direction:"column"},t&&(0,r.createElement)(c.FlexItem,{style:{"text-align":"center"}},(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>N(e)},__("Use this image","jetpack"))),(0,r.createElement)(c.FlexBlock,null,(0,r.createElement)("img",{className:"wp-block-ai-image-image",src:e,alt:"",onClick:()=>E(e)})),!t&&(0,r.createElement)(c.FlexBlock,null,(0,r.createElement)(c.Flex,{direction:"column",style:{"align-items":"center"}},(0,r.createElement)(c.FlexItem,null,(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>N(e)},__("Use this image","jetpack")))))),N=async t=>{if(s)return;p(!0),k(null);const r=await fetch(t),a=await r.blob(),o=new File([a],"jetpack_ai_image.png",{type:"image/png"});x({filesList:[o],onFileChange:([t])=>{t.id&&C(n,(0,l.createBlock)("core/image",{url:t.url,caption:e.requestedPrompt,alt:e.requestedPrompt}))},allowedTypes:["image"],onError:e=>{console.error(e),p(!1)}}),j.recordEvent("jetpack_ai_dalle_generation_upload",{post_id:S})};return(0,r.createElement)("div",(0,i.useBlockProps)(),(0,r.createElement)(c.Placeholder,{label:__("AI Image","jetpack"),notices:v&&[(0,r.createElement)("div",null,v)]},!s&&0===g.length&&(0,r.createElement)(c.Flex,{expanded:!0},(0,r.createElement)(c.FlexBlock,null,(0,r.createElement)(c.TextareaControl,{label:__("What would you like to see?","jetpack"),placeholder:B,allowedFormats:[],onChange:b,rows:6}),(0,r.createElement)(c.Button,{variant:"primary",onClick:()=>{p(!1),A([]),k(null),function(e,t,n,r,a,s){n(!0),a(null),t({requestedPrompt:e}),o()({path:"/wpcom/v2/jetpack-ai/images/generations",method:"POST",data:{prompt:e,post_id:s}}).then((e=>{n(!1);const t=e.data.map((e=>"data:image/png;base64,"+e.b64_json));r(t)})).catch((e=>{e.message?a(e.message):a(__("Whoops, we have encountered an error. AI is like really, really hard and this is an experimental feature. Please try again later.","jetpack")),n(!1)}))}(""===f.trim()?B:f,t,p,A,k,S),j.recordEvent("jetpack_ai_dalle_generation",{post_id:S})}},I))),!s&&g.length>0&&(0,r.createElement)(c.Flex,{direction:"column",style:{width:"100%"}},(0,r.createElement)(c.FlexBlock,{style:{textAlign:"center",margin:"12px",fontStyle:"italic",width:"100%"}},e.requestedPrompt),(0,r.createElement)(c.FlexBlock,{style:{fontSize:"20px",lineHeight:"38px"}},__("Please choose your image","jetpack")),(0,r.createElement)(c.Flex,{direction:"row",wrap:!0},g.map((e=>(0,r.createElement)(Q,{image:e}))))),!s&&h&&(0,r.createElement)(c.Modal,{onRequestClose:()=>E(null)},(0,r.createElement)(Q,{image:h,inModal:!0})),e.content&&(0,r.createElement)("div",{className:"content"},e.content),s&&(0,r.createElement)(c.FlexBlock,{style:{padding:"10px",textAlign:"center"}},(0,r.createElement)(c.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}}))))}},6454:(e,t,n)=>{"use strict";var r=n(31985),a=n(41107),s=n(84295);(0,r.S)(a,{edit:s.Z,save:()=>""})},55410:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A});var r=n(51806),a=n(13419),s=n(86989),o=n.n(s),i=n(52175),l=n(55609),c=n(9818),u=n(69307),d=n(65736),p=n(59958);const __=d.__,m=(e="",t=[],n="",r="")=>{const a=t.filter((function(e){return e&&e.attributes&&e.attributes.content})).map((function(e){return e.attributes.content.replaceAll("<br/>","\n")})).join("\n").slice(-1024);if(!(e||a||n||r))return!1;let s="";return s=e?(0,d.sprintf)(/** translators: This will be the beginning of a prompt that will be sent to OpenAI based on the post title. */ | |
| 22 | -__("Please help me write a short piece of a blog post titled '%1$s'","jetpack"),e):__("Please help me write a short piece of a blog post","jetpack"),n&&( | |
| 23 | -/** translators: This will be the follow up of a prompt that will be sent to OpenAI based on comma-seperated category names. */ | |
| 24 | -s+=(0,d.sprintf)(__(", published in categories '%1$s'","jetpack"),n)),r&&( | |
| 25 | -/** translators: This will be the follow up of a prompt that will be sent to OpenAI based on comma-seperated category names. */ | |
| 26 | -s+=(0,d.sprintf)(__(" and tagged '%1$s'","jetpack"),r)),s+=__(". Please only output generated content ready for publishing.","jetpack"),a&&( | |
| 27 | -/** translators: This will be the end of a prompt that will be sent to OpenAI with the last MAXIMUM_NUMBER_OF_CHARACTERS_SENT_FROM_CONTENT characters of content.*/ | |
| 28 | -s+=(0,d.sprintf)(__(" Please continue from here:\n\n … %s","jetpack"),a)),s.trim()};function g({html:e,showAnimation:t,onAnimationDone:n}){const[a,s]=(0,u.useState)("");return(0,u.useEffect)((()=>{if(t){const t=e.split(" ");for(let e=1;e<t.length;e++){const n=t.slice(0,e).join(" ");setTimeout((()=>s(n)),50*e)}setTimeout((()=>{s(e),n()}),50*t.length)}else s(e)}),[]),(0,r.createElement)("div",{className:"content"},(0,r.createElement)(u.RawHTML,null,a))}function A({attributes:e,setAttributes:t,clientId:n}){const[s,d]=(0,u.useState)(!1),[A,h]=(0,u.useState)(!1),[E,f]=(0,u.useState)(!1),[b,C]=(0,u.useState)(!1),[v,k]=(0,u.useState)(!1),{tracks:B}=(0,a.z$)(),y=(0,c.useSelect)((e=>e("core/editor").getEditedPostAttribute("title")));let w=!1;const _=(0,c.useSelect)((e=>e("core/editor").getEditedPostAttribute("categories")))||[],I=(0,c.useSelect)((e=>_.map((t=>{const n=e("core").getEntityRecord("taxonomy","category",t);if(n)return n;w=!0})).filter(Boolean)),[_]),j=(0,c.useSelect)((e=>e("core/editor").getEditedPostAttribute("tags")),[])||[],x=(0,c.useSelect)((e=>j.map((t=>{const n=e("core").getEntityRecord("taxonomy","post_tag",t);if(n)return n;w=!0})).filter(Boolean)),[j]);(0,u.useEffect)((()=>{h(w)}),[w]);const S=(0,c.useSelect)((e=>e("core/editor").getCurrentPostId())),Q=I.filter((e=>1!==e.id)).map((({name:e})=>e)).join(", "),N=x.map((({name:e})=>e)).join(", "),P=(0,c.useSelect)((e=>{const t=e("core/block-editor"),r=t.getBlockIndex(n);return t.getBlocks().slice(0,r)??[]})),T=()=>{if(e.content||s)return;C(!1),k(!1),f(!1),d(!0);const n={content:m(y,P,Q,N)};B.recordEvent("jetpack_ai_chat_completion",{post_id:S}),o()({path:"/wpcom/v2/jetpack-ai/completions",method:"POST",data:n}).then((e=>{const n=e.trim().replaceAll("\n","<br/>");t({content:n}),d(!1)})).catch((e=>{e.message?k(e.message):k(__("Whoops, we have encountered an error. AI is like really, really hard and this is an experimental feature. Please try again later.","jetpack")),C(!0),d(!1)}))},R=s||A,Z=!!e.content,L=Z||R;return(0,c.useSelect)((()=>{if(!L){const e=m(y,P,Q,N);(()=>{const e=p.name;return P.filter((t=>t.name&&t.name===e&&!t.attributes.content)).length>0})()?k(/** translators: This will be an error message when multiple Open AI paragraph blocks are triggered on the same page. */ | |
| 29 | -__("Waiting for the previous AI paragraph block to finish","jetpack")):e?E?(k(/** translators: This is to retry to complete the text */ | |
| 30 | -__("Ready to retry","jetpack")),C(!0),f(!1)):E||b||T():(k(/** translators: First placeholder is a number of more characters we need */ | |
| 31 | -__("Please write a longer title or a few more words in the opening preceding the AI block. Our AI model needs some content.","jetpack")),f(!0))}}),[y,P,Q,N,L,E,b]),(0,r.createElement)("div",(0,i.useBlockProps)(),!s&&!A&&v&&(0,r.createElement)(l.Placeholder,{label:__("AI Paragraph","jetpack"),instructions:v},b&&(0,r.createElement)(l.Button,{variant:"primary",onClick:()=>T()},__("Retry","jetpack"))),Z&&(0,r.createElement)(g,{showAnimation:!e.animationDone,onAnimationDone:()=>{t({animationDone:!0})},html:e.content}),!e.content&&R&&(0,r.createElement)("div",{style:{padding:"10px",textAlign:"center"}},(0,r.createElement)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})))}},16042:(e,t,n)=>{"use strict";var r=n(51806),a=n(52175),s=n(4981),o=n(69307),i=n(31985),l=n(59958),c=n(55410);(0,i.S)(l,{edit:c.ZP,save:e=>{const t=a.useBlockProps.save();return(0,r.createElement)(o.RawHTML,t,e.attributes.content)},transforms:{to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,s.createBlock)("core/paragraph",{content:e})}]}})},80029:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__;function o({attributes:e,setAttributes:t}){const{statsData:n,statsOption:s}=e,o=[{value:"views",label:__("Views","jetpack")},{value:"visitors",label:__("Visitors","jetpack")}],i=[{value:"site",label:__("My whole site","jetpack")},{value:"post",label:__("This individual post","jetpack")}];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(a.RadioControl,{label:__("Views or visitors","jetpack"),selected:n,onChange:e=>t({statsData:e}),options:o,help:__("Views represent site visits, whereas visitors represent unique individuals.","jetpack")}),(0,r.createElement)(a.RadioControl,{label:__("Show stats data for","jetpack"),selected:s,onChange:e=>t({statsOption:e}),options:i,disabled:"visitors"===n,help:"visitors"===n?__("Visitor counts aren't available for individual posts.","jetpack"):null}),(0,r.createElement)("span",{className:"jetpack-blog-stats__delay-notice"},__("Stats are delayed for up to 5 minutes.","jetpack"))))}},61330:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(52947),s=n(13419),o=n(86989),i=n.n(o),l=n(52175),c=n(9818),u=n(69307),d=n(65736),p=n(80029),m=n(31023);const __=d.__,_n=d._n;const g=function({attributes:e,className:t,setAttributes:n}){const{isLoadingModules:o,isChangingStatus:d,isModuleActive:g,changeStatus:A}=(0,s.el)("stats"),{label:h,statsData:E,statsOption:f}=e,[b,C]=(0,u.useState)(null),[v,k]=(0,u.useState)(),[B,y]=(0,u.useState)(),w=(0,l.useBlockProps)(),_="post"===f?B:"views"===E?b:v,I=(0,c.useSelect)((e=>e("core/editor").getCurrentPostId()),[]);if((0,u.useEffect)((()=>{g&&i()({path:Number.isInteger(I)?`/wpcom/v2/blog-stats?post_id=${I}`:"/wpcom/v2/blog-stats"}).then((e=>{C(e["blog-views"]),k(e["blog-visitors"]),y(Number.isInteger(I)?e["post-views"]:"12345")}))}),[I,g]),(0,u.useEffect)((()=>{"visitors"===E&&n({statsOption:"site"})}),[E,n]),!g&&!o)return(0,r.createElement)(m.E,{className:t,changeStatus:A,isLoading:d});const j=/* Translators: Number of visitors */ | |
| 32 | -_n("visitor","visitors",parseInt(_),"jetpack",0),x=/* Translators: Number of views */ | |
| 33 | -_n("hit","hits",parseInt(_),"jetpack",0);return(0,r.createElement)("div",w,(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(p.V,{attributes:e,setAttributes:n})),(0,r.createElement)("div",{className:t},o||null===b?(0,r.createElement)("p",{className:"jetpack-blog-stats__loading"},__("Loading stats…","jetpack")):(0,r.createElement)("p",null,(0,r.createElement)("span",null,(0,a.Z)(_)," "),(0,r.createElement)(l.RichText,{tagName:"span",placeholder:"visitors"===E?j:x,value:h,allowedFormats:["core/bold","core/italic","core/link"],onChange:e=>n({label:e})}))))}},5889:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(73632),o=n(61330);(0,a.S)(s,{edit:o.Z,save:()=>null,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"blog-stats"===e,transform:({instance:e})=>{const t=e.raw.title?(0,r.createBlock)("core/heading",{content:e.raw.title,level:3}):null,n=(0,r.createBlock)("jetpack/blog-stats",{label:e.raw.hits});return t?[t,n]:n}}]}})},31023:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(73632);const __=o.__,l=({className:e,isLoading:t,changeStatus:n})=>{const o=(0,a.Ug)()?"https://wordpress.com/support/stats/":"https://jetpack.com/support/jetpack-stats/";return(0,r.createElement)("div",{className:e},(0,r.createElement)(s.Placeholder,{icon:(0,a.dM)(i),instructions:__("You'll need to activate the Stats module to use this block. Please note that hits are only counted while this module is active.","jetpack"),label:i.title},(0,r.createElement)(s.Button,{disabled:t,isBusy:t,onClick:()=>n(!0),variant:"secondary"},t?__("Activating Stats","jetpack"):__("Activate Stats","jetpack",0)),(0,r.createElement)("div",null,(0,r.createElement)(s.ExternalLink,{href:o},__("Learn more about the Stats module.","jetpack")))))}},14303:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(86989),s=n.n(a),o=n(52175),i=n(55609),l=n(9818),c=n(69307),u=n(65736),d=n(96483),p=n(65235),m=n.n(p),g=n(44266);const __=u.__,_x=u._x;const A=(0,i.withNotices)((function({attributes:e,noticeOperations:t,noticeUI:n,setAttributes:a}){const p=(0,c.useRef)(!1),{answersLink:A,answersLinkText:h,gravatars:E,promptFetched:f,promptId:b,promptLabel:C,promptText:v,showLabel:k,showResponses:B,tagsAdded:y,isBloganuary:w}=e,_=(0,o.useBlockProps)({className:"jetpack-blogging-prompt"});(0,g.n)(b,y,(e=>a({tagsAdded:e})));const I=(0,l.useSelect)((e=>{const{getEntityRecord:t,hasFinishedResolution:n}=e("core"),r=t("root","site")?.language||"en_US";return n("getEntityRecord",["root","site"])?r:null}),[]);(0,c.useEffect)((()=>{if(!I||p.current||f)return;const e=()=>{a({promptFetched:!1,promptId:null,tagsAdded:!1}),p.current=!1,t.removeAllNotices()};let n="/wpcom/v3/blogging-prompts";if(b)n+="/"+encodeURIComponent(b);else{const e=new Date;n+=`?after=--${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}&order=desc`}n=(0,d.addQueryArgs)(n,{_locale:I,force_year:(new Date)?.getFullYear()}),p.current=!0,s()({path:n}).then((e=>{const t=b?e:e[0];a({answersLink:t.answered_link,answersLinkText:t.answered_link_text,gravatars:t.answered_users_sample.map((({avatar:e})=>({url:e}))),promptFetched:!0,promptLabel:t.label,promptText:t.text,promptId:t.id,isBloganuary:!!t.bloganuary_id})})).catch((n=>{a({promptFetched:!0});const s="rest_post_invalid_id"===n.code&&b?(o=b,(0,r.createElement)(r.Fragment,null,(0,u.sprintf)(/* translators: %d is the prompt id. */ | |
| 34 | -__("Prompt with id %d not found.","jetpack"),o)," ",(0,r.createElement)(i.Button,{variant:"link",onClick:e},__("Reset prompt","jetpack")))):(t=>(0,r.createElement)(r.Fragment,null,(0,u.sprintf)(/* translators: %s is the error message. */ | |
| 35 | -__("Error while fetching prompt: %s","jetpack"),t)," ",(0,r.createElement)(i.Button,{variant:"link",onClick:e},__("Retry","jetpack"))))(n.message);var o;t.removeAllNotices(),t.createErrorNotice(s)}))}),[p,t,f,b,a,I]);const j=e=>{a({showLabel:e})},x=e=>{a({showResponses:e})},S=m()(["jetpack-blogging-prompt__label"],{"is-bloganuary-icon":w});return(0,r.createElement)("div",_,n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:_x("Settings","title of block settings sidebar section","jetpack")},(0,r.createElement)(i.ToggleControl,{label:__("Show prompt label","jetpack"),checked:k,onChange:j}),(0,r.createElement)(i.ToggleControl,{label:__("Show other responses","jetpack"),checked:B,onChange:x})))),f?(0,r.createElement)(r.Fragment,null,k&&(0,r.createElement)("div",{className:S},C),(0,r.createElement)("div",{className:"jetpack-blogging-prompt__text"},v),B&&b&&(0,r.createElement)("div",{className:"jetpack-blogging-prompt__answers"},E&&E.slice(0,3).map((({url:e})=>e&&(0,r.createElement)("img",{className:"jetpack-blogging-prompt__answers-gravatar",src:e,key:e}))),(0,r.createElement)("a",{className:"jetpack-blogging-prompt__answers-link",href:A,target:"_blank",rel:"external noreferrer noopener"},h))):(0,r.createElement)("div",{className:"jetpack-blogging-prompt__spinner"},(0,r.createElement)(i.Spinner,null)))}))},35681:(e,t,n)=>{"use strict";var r=n(4981),a=n(9818),s=n(65736),o=n(31985),i=n(46185),l=n(37391),c=n(14303),u=n(19597),d=n(65783),p=n(43807),m=n(2275);const __=s.__;(0,o.S)(l,{edit:c.Z,save:m.Z,example:{attributes:{answersLink:"https://wordpress.com/tag/dailyprompt",answersLinkText:__("View all responses","jetpack"),gravatars:[{url:u},{url:d},{url:p}],promptLabel:__("Daily writing prompt","jetpack"),promptText:__("What's your favorite place to visit?","jetpack"),promptFetched:!0,promptId:1234,showResponses:!0,showLabel:!0,tagsAdded:!0,isBloganuary:!1}}}),function(){const e=new URL(document.location.href);if(!e.pathname.endsWith("/wp-admin/post-new.php"))return;const t=e.searchParams.get("answer_prompt")??"0",n=parseInt(t);n&&async function(e){await(0,i.U)();const{insertBlocks:t}=(0,a.dispatch)("core/block-editor");t([(0,r.createBlock)(`jetpack/${name}`,{promptFetched:!1,promptId:e,tagsAdded:!0}),(0,r.createBlock)("core/paragraph")],0,void 0,!1)}(n)}()},2275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s);const i=function({attributes:e}){const{answersLink:t,answersLinkText:n,gravatars:s,promptId:i,promptLabel:l,promptText:c,showLabel:u,showResponses:d,isBloganuary:p}=e,m=a.useBlockProps.save({className:"jetpack-blogging-prompt"}),g=o()(["jetpack-blogging-prompt__label"],{"is-bloganuary-icon":p});return(0,r.createElement)("div",m,u&&(0,r.createElement)("div",{className:g},l),(0,r.createElement)("div",{className:"jetpack-blogging-prompt__text"},c),d&&i&&(0,r.createElement)("div",{className:"jetpack-blogging-prompt__answers"},s.map((({url:e})=>e&&(0,r.createElement)("img",{className:"jetpack-blogging-prompt__answers-gravatar","aria-hidden":"true",src:e,key:e}))),(0,r.createElement)("a",{className:"jetpack-blogging-prompt__answers-link",href:t,target:"_blank",rel:"external noreferrer noopener"},n)))}},44266:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r=n(86989),a=n.n(r),s=n(9818),o=n(69307),i=n(81975);function l(e){const t=(0,i.escapeHTML)(e);return a()({path:"/wp/v2/tags",method:"POST",data:{name:t}}).catch((t=>"term_exists"!==t.code?Promise.reject(t):Promise.resolve({id:t.data.term_id,name:e})))}function c(e,t,n){const{editPost:r}=(0,s.useDispatch)("core/editor"),a=(0,o.useRef)("not-started"),{postType:i,postsSupportTags:c,tags:u,tagIds:d,tagsHaveResolved:p}=(0,s.useSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor"),{getEntityRecords:n,getPostType:r,hasFinishedResolution:a}=e("core"),s=t("tags"),o={_fields:"id,name",context:"view",include:s?.join(","),per_page:-1};return{postType:t("type"),postsSupportTags:r("post")?.taxonomies.includes("post_tag"),tagIds:s||[],tags:s&&s.length?n("taxonomy","post_tag",o):[],tagsHaveResolved:!s||!s.length||a("getEntityRecords",["taxonomy","post_tag",o])}}),[]);(0,o.useEffect)((()=>{"post"===i&&c&&!t&&p&&e&&Array.isArray(u)&&("not-started"===a.current&&(u.some((e=>e.name&&"dailyprompt"===e.name))&&u.some((t=>t.name&&t.name===`dailyprompt-${e}`))?a.current="fulfilled":(a.current="pending",Promise.all([l("dailyprompt"),l(`dailyprompt-${e}`)]).then((e=>{const t=e.map((e=>e.id));r({tags:[...d,...t]}),a.current="fulfilled"})).catch((e=>{console.error(e),a.current="rejected"})))),"fulfilled"===a.current&&n(!0))}),[r,c,i,e,a,n,u,d,t,p])}},81030:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(52175),s=n(55609),o=n(65736);const __=o.__;const i=function({className:e,attributes:t,setAttributes:n}){const{icon:o,name:i,description:l}=t,c=(0,a.useBlockProps)({className:e});return(0,r.createElement)("div",c,(0,r.createElement)(a.MediaUpload,{multiple:!1,onSelect:e=>{n({icon:e.url})},render:({open:e})=>(0,r.createElement)(s.Button,{variant:"link",onClick:e,style:{padding:0}},(0,r.createElement)("figure",null,(0,r.createElement)("img",{class:"blogroll-item-image",onError:e=>{e.target.parentNode.classList.add("empty-site-icon")},src:o,alt:i})))}),(0,r.createElement)("div",null,(0,r.createElement)("a",null,(0,r.createElement)(a.RichText,{className:"jetpack-blogroll-item-title",value:i,tagName:"h3",allowedFormats:["core/bold","core/italic"],onChange:e=>{n({name:e})},placeholder:__("Enter site title","jetpack")})),(0,r.createElement)(a.RichText,{className:"jetpack-blogroll-item-description",value:l,onChange:e=>{n({description:e})},placeholder:__("Enter site description","jetpack")})))}},99180:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)(a.Path,{d:"M12 12.75H21V11.25H12V12.75Z"}),(0,r.createElement)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.3431 4.34315 9 6 9C7.65685 9 9 10.3431 9 12C9 13.6569 7.65685 15 6 15C4.34315 15 3 13.6569 3 12ZM3.77743 10.8857C4.08602 10.2714 4.64181 9.80266 5.31427 9.61008C5.15499 9.79493 5.01798 10.0132 4.90612 10.2532C4.81521 10.4483 4.73949 10.6605 4.68112 10.8857H3.77743ZM3.58718 11.4C3.53956 11.5922 3.51429 11.7931 3.51429 12C3.51429 12.2069 3.53956 12.4078 3.58718 12.6H4.58166C4.55616 12.4057 4.54286 12.205 4.54286 12C4.54286 11.7949 4.55616 11.5942 4.58166 11.4H3.58718ZM5.10094 11.4C5.0724 11.5917 5.05714 11.7926 5.05714 12C5.05714 12.2074 5.0724 12.4083 5.10094 12.6H6.89907C6.92761 12.4083 6.94286 12.2074 6.94286 12C6.94286 11.7926 6.92761 11.5917 6.89906 11.4H5.10094ZM7.41834 11.4C7.44384 11.5942 7.45714 11.7949 7.45714 12C7.45714 12.2051 7.44384 12.4058 7.41835 12.6H8.41282C8.46044 12.4078 8.48571 12.2069 8.48571 12C8.48571 11.7931 8.46044 11.5922 8.41282 11.4H7.41834ZM8.22257 10.8857H7.31888C7.26051 10.6605 7.18479 10.4483 7.09388 10.2532C6.98202 10.0132 6.845 9.79493 6.68571 9.61007C7.35817 9.80265 7.91398 10.2714 8.22257 10.8857ZM6.78494 10.8857H5.21506C5.25946 10.7382 5.31227 10.5992 5.37226 10.4705C5.5421 10.1061 5.76275 9.83732 5.99999 9.67974C6.23724 9.83732 6.45789 10.1061 6.62775 10.4705C6.68773 10.5992 6.74054 10.7382 6.78494 10.8857ZM3.77743 13.1143H4.68112C4.74269 13.3519 4.82356 13.5749 4.92121 13.7787C5.0301 14.0059 5.16199 14.2132 5.31431 14.3899C4.64184 14.1974 4.08603 13.7286 3.77743 13.1143ZM6.78495 13.1143H5.21506C5.26258 13.2722 5.31973 13.4203 5.38498 13.5564C5.5534 13.9078 5.76894 14.1668 6.00003 14.3203C6.23726 14.1627 6.45791 13.8939 6.62775 13.5295C6.68773 13.4008 6.74054 13.2618 6.78495 13.1143ZM7.09388 13.7468C7.18479 13.5517 7.26052 13.3395 7.31889 13.1143H8.22257C7.91398 13.7286 7.35819 14.1973 6.68574 14.3899C6.84501 14.2051 6.98203 13.9868 7.09388 13.7468Z",strokeWidth:"0.1"}))},81697:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>d,u2:()=>u});var r=n(51806),a=n(52175),s=n(65736),o=n(70355),i=n(39114),l=n(81030),c=n(99180);const __=s.__,u="blogroll-item",d={title:__("Blogroll Item","jetpack"),description:__("Blogroll Item","jetpack"),icon:{src:c.Z,foreground:(0,o.m)()},category:"grow",parent:["jetpack/blogroll"],keywords:[],supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0,inserter:!1},edit:l.Z,attributes:{id:{type:"string"},name:{type:"string"},icon:{type:"string",default:i},is_non_wpcom_site:{type:"boolean",default:!1},url:{type:"string"},description:{type:"string"}},save:()=>(0,r.createElement)(a.InnerBlocks.Content,null),example:{attributes:{}}}},75320:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(37798),s=n(65736);const __=s.__;function o({results:e,onSelect:t,searchInput:n,isLoading:o}){const[i]=(0,a.useEntityProp)("root","site","Blogroll Recommendations");if(o)return(0,r.createElement)("div",{className:"jetpack-blogroll__appender-results"},(0,r.createElement)("div",{role:"status"},__("Loading…","jetpack")));const l=!n?.trim();return(0,r.createElement)("div",{className:"jetpack-blogroll__appender-results"},l&&(0,r.createElement)("div",{"aria-autocomplete":"list",className:"jetpack-blogroll__appender-result-list-header-text"},__("Suggestions","jetpack")),0===e.length&&!l&&(0,r.createElement)("div",{role:"status",className:"jetpack-blogroll__appender-no-results-message"},(0,r.createElement)("span",{className:"jetpack-blogroll__appender-no-results-message-main-text"},__("No results","jetpack")),(0,r.createElement)("span",{className:"jetpack-blogroll__appender-no-results-message-secondary-text"},(0,s.sprintf)(/* translators: %s is search query. */ | |
| 36 | -__("No sites found for %s.","jetpack"),n))),e.length>0&&(0,r.createElement)("ul",{"aria-live":"polite"},e.map((e=>{const n=i.some((t=>t?.id===e?.blog_id));return(0,r.createElement)("li",{key:e.blog_id,className:"jetpack-blogroll__appender-result-container"},(0,r.createElement)("button",{className:"jetpack-blogroll__appender-result-title",disabled:n,onClick:()=>t(e)},(0,r.createElement)("div",{className:"jetpack-blogroll__appender-result-image"},e.site_icon&&(0,r.createElement)("img",{src:e.site_icon,alt:e.name,onError:e=>{e.target.parentNode.classList.add("empty-site-icon")}})),(0,r.createElement)("div",{className:"jetpack-blogroll__appender-result-text"},(0,r.createElement)("span",{className:"jetpack-blogroll__appender-result-title"},e.name),(0,r.createElement)("span",{className:"jetpack-blogroll__appender-result-description"},e.description))))}))))}},46902:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__;function o({value:e,onChange:t}){return(0,r.createElement)("div",{className:"jetpack-blogroll__appender-search"},(0,r.createElement)(a.TextControl,{__nextHasNoMarginBottom:!0,label:__("Search for sites to add","jetpack"),hideLabelFromVision:!0,placeholder:__("Search…","jetpack"),value:e,onChange:e=>t(e)}))}},53335:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(55609),s=n(9818),o=n(69307),i=n(65736),l=n(11908),c=n(1219),u=n(95686),d=n(75320),p=n(46902);const __=i.__;function m({isLoading:e,subscriptions:t,clientId:n}){const[i,m]=(0,o.useState)(!1),[g,A]=(0,o.useState)(),[h,E]=(0,o.useState)(""),{insertBlock:f}=(0,s.dispatch)("core/block-editor"),{siteDetails:b,isLoading:C}=(0,c.Z)({siteURL:h,subscriptions:t,enabled:h});return e?(0,r.createElement)(a.Spinner,{className:"jetpack-blogroll__appender-spinner"}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.Button,{className:"block-editor-button-blogroll-block-appender",ref:A,icon:l.Z,label:__("Add Blogroll Item","jetpack"),onClick:()=>{m((e=>!e))}}),i&&(0,r.createElement)(a.Popover,{anchor:g,className:"jetpack-blogroll__appender"},(0,r.createElement)(p.Z,{value:h,onChange:E}),(0,r.createElement)(d.Z,{results:b,onSelect:e=>{f((0,u.UW)(e),void 0,n),m(!1)},searchInput:h,isLoading:C})))}},11417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(51806),a=n(52175),s=n(4981),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(65235),d=n.n(u),p=n(53335),m=n(49105),g=n(56054),A=n(7973),h=n(95686);const __=c.__;const E=function({className:e,attributes:t,setAttributes:n,clientId:c}){const{show_avatar:u,show_description:E,open_links_new_window:f,ignore_user_blogs:b,load_placeholders:C}=t,{isLoading:v,recommendations:k,errorMessage:B}=(0,m.Z)(C),{isLoading:y,subscriptions:w,errorMessage:_}=(0,A.Z)({ignore_user_blogs:b});(0,g.k)({clientId:c});const{replaceInnerBlocks:I}=(0,i.dispatch)("core/block-editor");(0,l.useEffect)((()=>{if(C&&k.length){n({load_placeholders:!1});const e=[(0,s.createBlock)("core/heading",{content:__("Blogroll","jetpack"),level:3}),...k.map(h.v5)];I(c,e)}}),[k,C,n,c,I]);const j=(0,a.useBlockProps)({className:d()(e,{"hide-avatar":!u,"hide-description":!E})}),x=B||_;return(0,r.createElement)("div",j,(0,r.createElement)(a.InnerBlocks,{template:[["core/heading",{content:__("Blogroll","jetpack"),level:3}]],allowedBlocks:["jetpack/blogroll-item"],renderAppender:()=>!v&&(0,r.createElement)(p.Z,{isLoading:y,subscriptions:w,clientId:c})}),x&&(0,r.createElement)(o.Notice,{status:"error",isDismissible:!1},(0,r.createElement)("p",null,x)),C&&v&&(0,r.createElement)(o.FlexBlock,{style:{padding:"30px",textAlign:"center"}},(0,r.createElement)(o.Spinner,null)),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Show avatar","jetpack"),checked:!!u,onChange:()=>n({show_avatar:!u})}),(0,r.createElement)(o.ToggleControl,{label:__("Show description","jetpack"),checked:!!E,onChange:()=>n({show_description:!E})}),(0,r.createElement)(o.ToggleControl,{label:__("Open links in a new window","jetpack"),checked:!!f,onChange:()=>n({open_links_new_window:!f})}),(0,r.createElement)(o.ToggleControl,{label:__("Hide my own sites","jetpack"),checked:!!b,onChange:()=>n({ignore_user_blogs:!b})}))))}},30070:(e,t,n)=>{"use strict";var r=n(31985),a=n(28546),s=n(81697),o=n(11417),i=n(45243);(0,r.S)(a,{edit:o.Z,save:i.Z},[{name:s.u2,settings:s.Xd}])},45243:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s);const i=function({attributes:{show_avatar:e,show_description:t},className:n}){const s=a.useBlockProps.save({className:o()(n,{"hide-avatar":!e,"hide-description":!t})});return(0,r.createElement)("div",s,(0,r.createElement)(a.InnerBlocks.Content,null))}},53114:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(69307),a=n(95686);function s(e,t=!0){const[n,s]=(0,r.useState)(null),[o,i]=(0,r.useState)(null),[l,c]=(0,r.useState)(!1),u=function(e,t=100){const[n,a]=(0,r.useState)(e);return(0,r.useEffect)((()=>{const n=setTimeout((()=>{a(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}((0,a.jo)(e),500);return(0,r.useEffect)((()=>{if(c(Boolean(t&&u)),t&&u){const e=new AbortController;return fetch(`https://public-api.wordpress.com/rest/v1.1/sites/${encodeURIComponent(u)}?force=wpcom`,{cache:"force-cache",signal:e.signal}).then((e=>{if(200===e.status)return e.json();e.status})).then((e=>{s(e),c(!1)})).catch((e=>{"AbortError"!==e.name&&i(e)})),()=>e.abort()}}),[u,t]),{response:n,error:o,isLoading:l}}},1219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(53114),a=n(95686);function s({siteURL:e,subscriptions:t,enabled:n=!1}){const s=(0,a.jo)(e),{response:o,isLoading:i}=(0,r.W)(s,Boolean(n)),l=[...o?[{blog_id:o?.ID.toString(),description:o?.description,URL:o?.URL,site_icon:(0,a.ze)(o?.logo?.url),name:o?.name}]:[],...t].filter((t=>`${t.name}${t.URL}`.match(new RegExp(e,"i"))));return 0===l.length&&s&&l.unshift({blog_id:s,description:"",URL:s,site_icon:(0,a.ze)(null),name:s,is_non_wpcom_site:!0}),{isLoading:i,siteDetails:l}}},49105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(86989),a=n.n(r),s=n(69307),o=n(65736);const __=o.__;function i(e=!1){const[t,n]=(0,s.useState)(!1),[r,o]=(0,s.useState)(null),[i,l]=(0,s.useState)([]),c=(0,s.useRef)();return(0,s.useEffect)((()=>{e?(n(!0),o(null),c.current&&c.current.abort(),c.current="undefined"==typeof AbortController?void 0:new AbortController,a()({path:"/wpcom/v2/following/recommendations",global:!0,method:"GET",signal:c.current?.signal}).then((e=>{e.length||o(__("No subscriptions found. You need to follow some sites in order to see results.","jetpack")),l(e)})).catch((e=>{"AbortError"!==e.name&&(e.message?o(e.message):o(__("Whoops, we have encountered an error. Please try again later.","jetpack")))})).finally((()=>{c.current=null,n(!1)}))):n(!1)}),[e]),{isLoading:t,errorMessage:r,recommendations:i}}},56054:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(37798),a=n(9818),s=n(69307),o=n(95686);const i=({clientId:e})=>{const[t,n]=(0,s.useState)(!1),{insertBlocks:i}=(0,a.useDispatch)("core/block-editor"),[l,c]=(0,r.useEntityProp)("root","site","Blogroll Recommendations"),u=(0,a.useSelect)((t=>t("core/block-editor").getBlock(e).innerBlocks.filter((({name:e})=>"jetpack/blogroll-item"===e)).map((({attributes:e})=>e))),[e]);(0,s.useEffect)((()=>{if(!t&&l){const t=l.filter((e=>!u.some((t=>t.id===e.id))));if(t.length){const n=t.map(o.v5);i(n,void 0,e)}n(!0)}}),[e,l,u,t,i]),(0,s.useEffect)((()=>{void 0!==l&&c(u)}),[u])}},7973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(86989),a=n.n(r),s=n(69307),o=n(65736),i=n(96483),l=n(95686);const __=o.__;function c({ignore_user_blogs:e}){const[t,n]=(0,s.useState)(!1),[r,o]=(0,s.useState)(null),[c,u]=(0,s.useState)([]),d=(0,s.useRef)();return(0,s.useEffect)((()=>{n(!0),o(null),d.current&&d.current.abort(),d.current="undefined"==typeof AbortController?void 0:new AbortController,a()({path:(0,i.addQueryArgs)("/wpcom/v2/following/mine",{ignore_user_blogs:e}),global:!0,method:"GET",signal:d.current?.signal}).then((e=>{e.length||o(__("No subscriptions found. You need to follow some sites in order to see results.","jetpack")),e=e.map((e=>(e.site_icon=(0,l.ze)(e.site_icon),e))),u(e)})).catch((e=>{"AbortError"!==e.name&&(e.message?o(e.message):o(__("Whoops, we have encountered an error. Please try again later.","jetpack")))})).finally((()=>{d.current=null,n(!1)}))}),[e]),{isLoading:t,errorMessage:r,subscriptions:c}}},95686:(e,t,n)=>{"use strict";n.d(t,{UW:()=>o,jo:()=>i,v5:()=>s,ze:()=>l});var r=n(4981),a=n(39114);function s(e){let t;try{t=new URL(e?.url)?.host.replace(/^www\./,"")}catch(n){t=e?.URL}return(0,r.createBlock)("jetpack/blogroll-item",{...e,...!e.name&&{name:t}})}function o(e){const{blog_id:t,site_icon:n,URL:r,name:a,description:o,is_non_wpcom_site:i}=e;return s({id:t,icon:n,url:r,name:a,description:o,is_non_wpcom_site:i})}function i(e){if(!e)return null;const t=new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])?)\\.)+[a-z]{2,})","i");try{return new URL(e)?.host}catch(n){return e.match(t)?.[2]??null}}function l(e){return e||a}},50756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(65235),l=n.n(i),c=n(92819);const __=o.__,u="09:00",d="17:00";class p extends s.Component{renderInterval=(e,t)=>{const{day:n}=this.props,{opening:o,closing:i}=e;return(0,r.createElement)(s.Fragment,{key:t},(0,r.createElement)("div",{className:"business-hours__row"},(0,r.createElement)("div",{className:l()(n.name,"business-hours__day")},0===t&&this.renderDayToggle()),(0,r.createElement)("div",{className:l()(n.name,"business-hours__hours")},(0,r.createElement)(a.TextControl,{type:"time",label:__("Opening","jetpack"),value:o,className:"business-hours__open",placeholder:u,onChange:e=>{this.setHour(e,"opening",t)}}),(0,r.createElement)(a.TextControl,{type:"time",label:__("Closing","jetpack"),value:i,className:"business-hours__close",placeholder:d,onChange:e=>{this.setHour(e,"closing",t)}})),(0,r.createElement)("div",{className:"business-hours__remove"},n.hours.length>1&&(0,r.createElement)(a.Button,{isSmall:!0,variant:"link",icon:"trash",label:__("Remove Hours","jetpack"),onClick:()=>{this.removeInterval(t)}}))),t===n.hours.length-1&&(0,r.createElement)("div",{className:"business-hours__row business-hours-row__add"},(0,r.createElement)("div",{className:l()(n.name,"business-hours__day")}," "),(0,r.createElement)("div",{className:l()(n.name,"business-hours__hours")},(0,r.createElement)(a.Button,{variant:"link",label:__("Add Hours","jetpack"),onClick:this.addInterval},__("Add Hours","jetpack"))),(0,r.createElement)("div",{className:"business-hours__remove"}," ")))};setHour=(e,t,n)=>{const{day:r,attributes:a,setAttributes:s}=this.props,{days:o}=a;s({days:o.map((a=>a.name===r.name?{...a,hours:a.hours.map(((r,a)=>a===n?{...r,[t]:e}:r))}:a))})};toggleClosed=e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:a}=n;r({days:a.map((n=>{if(n.name===t.name){const t=e?[{opening:u,closing:d}]:[];return{...n,hours:t}}return n}))})};addInterval=()=>{const{day:e,attributes:t,setAttributes:n}=this.props,{days:r}=t;e.hours.push({opening:"",closing:""}),n({days:r.map((t=>t.name===e.name?{...t,hours:e.hours}:t))})};removeInterval=e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:a}=n;r({days:a.map((n=>t.name===n.name?{...n,hours:n.hours.filter(((t,n)=>e!==n))}:n))})};isClosed(){const{day:e}=this.props;return(0,c.isEmpty)(e.hours)}renderDayToggle(){const{day:e,localization:t}=this.props;return(0,r.createElement)(s.Fragment,null,(0,r.createElement)("span",{className:"business-hours__day-name"},t.days[e.name]),(0,r.createElement)(a.ToggleControl,{label:this.isClosed()?__("Closed","jetpack"):__("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed}))}renderClosed(){const{day:e}=this.props;return(0,r.createElement)("div",{className:"business-hours__row business-hours-row__closed"},(0,r.createElement)("div",{className:l()(e.name,"business-hours__day")},this.renderDayToggle()),(0,r.createElement)("div",{className:l()(e.name,"closed","business-hours__hours")}," "),(0,r.createElement)("div",{className:"business-hours__remove"}," "))}render(){const{day:e}=this.props;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}const m=p},80190:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(69307),s=n(65736),o=n(92819);const _x=s._x,i="undefined"!=typeof window&&window.navigator?.language||"en",l=Intl?.DateTimeFormat?new Intl.DateTimeFormat(i,{hour:"numeric",minute:"numeric",hour12:!0}):null;class c extends a.Component{formatTime(e){const[t,n]=e.split(":");if(!t||!n)return!1;const r=new Date;return r.setHours(t),r.setMinutes(n),l?l.format(r):e}renderInterval=(e,t)=>{const{day:n}=this.props,a=n.hours;return(0,r.createElement)("span",{key:t},(0,s.sprintf)("%1$s - %2$s",this.formatTime(e.opening),this.formatTime(e.closing)),a.length>1+t&&(0,r.createElement)("span",null,", "))};render(){const{day:e,localization:t}=this.props,n=e.hours.filter((e=>this.formatTime(e.opening)&&this.formatTime(e.closing)));return(0,r.createElement)("div",{className:"jetpack-business-hours__item"},(0,r.createElement)("dt",{className:e.name},t.days[e.name]),(0,r.createElement)("dd",null,(0,o.isEmpty)(n)?_x("Closed","business is closed on a full day","jetpack"):n.map(this.renderInterval),(0,r.createElement)("br",null)))}}const u=c},86162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(86989),l=n.n(i),c=n(52175),u=n(55609),d=n(69771),p=n(69307),m=n(65736),g=n(22023),A=n(50756),h=n(80190);const __=m.__,E=(0,o.dM)(g),f={days:{Sun:__("Sunday","jetpack"),Mon:__("Monday","jetpack"),Tue:__("Tuesday","jetpack"),Wed:__("Wednesday","jetpack"),Thu:__("Thursday","jetpack"),Fri:__("Friday","jetpack"),Sat:__("Saturday","jetpack")},startOfWeek:0},b=e=>{const{attributes:t,isSelected:n}=e,r=(0,c.useBlockProps)(),[o,i]=(0,p.useState)(f),[m,g]=(0,p.useState)(!1),{days:b}=t,{startOfWeek:C}=o,v=b.concat(b.slice(0,C)).slice(C);let k;if((0,p.useEffect)((()=>{l()({path:"/wpcom/v2/business-hours/localized-week"}).then((e=>{i(e),g(!0)}),(()=>{i(f),g(!0)}))}),[]),m)if(n)k=(0,s.createElement)("div",{className:"is-edit"},v.map(((t,n)=>(0,s.createElement)(A.Z,a()({key:n,day:t,localization:o},e)))));else{const e=(0,d.getSettings)(),{formats:{time:t}}=e;k=(0,s.createElement)("dl",{className:"jetpack-business-hours"},v.map(((e,n)=>(0,s.createElement)(h.Z,{key:n,day:e,localization:o,timeFormat:t}))))}else k=(0,s.createElement)(u.Placeholder,{icon:E,label:__("Loading business hours","jetpack")});return(0,s.createElement)("div",r,k)}},60866:(e,t,n)=>{"use strict";var r=n(51806),a=n(31985),s=n(22023),o=n(86162);(0,a.S)(s,{edit:e=>(0,r.createElement)(o.Z,e),save:()=>null})},98625:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(55609),a=n(92819);const s=(0,r.withFallbackStyles)(((e,t)=>{const{backgroundColor:n,textColor:r}=t,s=(0,a.get)(n,"color"),o=!(0,a.get)(r,"color")&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:s||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:r||!o?void 0:getComputedStyle(o).color}}))},70424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(24381);const a={element:{type:"string",enum:["a","button","input"]},saveInPostContent:{type:"boolean",default:!1},uniqueId:{type:"string"},passthroughAttributes:{type:"object"},text:{type:"string"},placeholder:{type:"string"},url:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string",validator:r.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:r.Z},gradient:{type:"string"},customGradient:{type:"string"},borderRadius:{type:"number"},width:{type:"string"}}},43043:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(90446);const __=o.__;function l({borderRadius:e="",setAttributes:t}){const n=(0,s.useCallback)((e=>t({borderRadius:e})),[t]);return(0,r.createElement)(a.PanelBody,{title:__("Border Settings","jetpack")},(0,r.createElement)(a.RangeControl,{allowReset:!0,initialPosition:i.pg,label:__("Border radius","jetpack"),max:i.Gp,min:i.G0,onChange:n,value:e}))}},36953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(65736);const __=s.__;function o({isGradientAvailable:e,backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:s,gradientValue:o,setBackgroundColor:i,setGradient:l,setTextColor:c,textColor:u}){const d=(0,r.createElement)(a.ContrastChecker,{backgroundColor:t.color,fallbackBackgroundColor:n,fallbackTextColor:s,isLargeText:!1,textColor:u.color});return e?(0,r.createElement)(a.__experimentalPanelColorGradientSettings,{settings:[{colorValue:u.color,label:__("Text Color","jetpack"),onColorChange:c},{colorValue:t.color,gradientValue:o,label:__("Background","jetpack"),onColorChange:i,onGradientChange:l}],title:__("Background & Text Color","jetpack")},d):(0,r.createElement)(a.PanelColorSettings,{colorSettings:[{value:u.color,onChange:c,label:__("Text Color","jetpack")},{value:t.color,onChange:i,label:__("Background","jetpack")}],title:__("Background & Text Color","jetpack")},d)}},90446:(e,t,n)=>{"use strict";n.d(t,{DA:()=>a,G0:()=>i,Gp:()=>o,pg:()=>s});var r=n(52175);const a=!!r.__experimentalUseGradient,s=5,o=50,i=0},29343:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(9818),s=n(30429),o=n(43043),i=n(36953);function l({attributes:e,backgroundColor:t,clientId:n,context:l,fallbackBackgroundColor:c,fallbackTextColor:u,setAttributes:d,setBackgroundColor:p,setTextColor:m,textColor:g,gradientValue:A,setGradient:h,isGradientAvailable:E}){const{align:f,borderRadius:b}=e,C="jetpack/parentBlockWidth"in l,v=C?l["jetpack/parentBlockWidth"]:e.width,k=(0,a.useSelect)((e=>{const{getBlock:t,getBlockRootClientId:r}=e("core/block-editor");return t(r(n))})),{updateBlockAttributes:B}=(0,a.useDispatch)("core/block-editor");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Z,{backgroundColor:t,fallbackBackgroundColor:c,fallbackTextColor:u,gradientValue:A,setBackgroundColor:p,setGradient:h,setTextColor:m,textColor:g,isGradientAvailable:E}),(0,r.createElement)(o.Z,{borderRadius:b,setAttributes:d}),(0,r.createElement)(s.G,{align:f,width:v,onChange:e=>{C?B(k.clientId,{width:e}):d({width:e})}}))}},5501:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(94333),l=n(65736),c=n(65235),u=n.n(c),d=n(81673),p=n(98625),m=n(90446),g=n(29343),A=n(16969);const __=l.__;const h=(0,i.compose)((0,o.withColors)({backgroundColor:"background-color"},{textColor:"color"}),p.Z)((function(e){const{attributes:t,backgroundColor:n,className:r,clientId:i,context:l,setAttributes:c,textColor:p}=e,{borderRadius:h,element:E,placeholder:f,text:b,width:C,fontSize:v}=t,k="jetpack/parentBlockWidth"in l;(0,A.Z)({attributes:t,clientId:i,setAttributes:c}),(0,d.Z)({attributes:t,disableEffects:k,setAttributes:c});const{gradientClass:B,gradientValue:y,setGradient:w}=m.DA?(0,o.__experimentalUseGradient)({gradientAttribute:"gradient",customGradientAttribute:"customGradient"}):{},_=u()("wp-block-button",r),I=u()("wp-block-button__link",{"has-background":n.color||y,[n.class]:!y&&n.class,"has-text-color":p.color,[p.class]:p.class,[B]:B,"no-border-radius":0===h,"has-custom-width":!!C,[`has-${v}-font-size`]:!!v,"has-custom-font-size":!!v}),j={...!n.color&&y?{background:y}:{backgroundColor:n.color},fontSize:t.style?.typography?.fontSize,color:p.color,borderRadius:h?h+"px":void 0,width:C};return(0,s.createElement)("div",{className:_},(0,s.createElement)(o.RichText,{allowedFormats:"input"===E?[]:void 0,className:I,disableLineBreaks:"input"===E,onChange:e=>c({text:e}),placeholder:f||__("Add text…","jetpack"),style:j,value:b,withoutInteractiveFormatting:!0}),(0,s.createElement)(o.InspectorControls,null,(0,s.createElement)(g.Z,a()({gradientValue:y,setGradient:w,isGradientAvailable:m.DA},e))))}))},48887:(e,t,n)=>{"use strict";var r=n(31985),a=n(77123);(0,r.Z)(a.u,a.X)},26361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);const s=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"}))},77123:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,u:()=>c});var r=n(65736),a=n(5820),s=n(70424),o=n(5501),i=n(26361),l=n(29586);const __=r.__,c="button",u={title:__("Button","jetpack"),icon:i.Z,category:(0,a.Z)("design","layout"),keywords:[],supports:{html:!1,inserter:!1,align:["left","center","right"],typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],attributes:s.Z,edit:o.Z,save:l.Z,usesContext:["jetpack/parentBlockWidth"]}},29586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s),i=n(90446);function l({attributes:e,blockName:t,uniqueId:n}){const{backgroundColor:s,borderRadius:l,className:c,customBackgroundColor:u,customGradient:d,customTextColor:p,gradient:m,saveInPostContent:g,text:A,textColor:h,url:E,width:f,fontSize:b}=e;if(!g)return null;const C=(0,a.getColorClassName)("background-color",s),v=i.DA?(0,a.__experimentalGetGradientClass)(m):void 0,k=(0,a.getColorClassName)("color",h),B=o()("wp-block-button","jetpack-submit-button",c,{[`wp-block-jetpack-${t}`]:t}),y=o()("wp-block-button__link",{"has-text-color":h||p,[k]:k,"has-background":s||m||u||d,[C]:C,[v]:v,"no-border-radius":0===l,"has-custom-width":!!f,[`has-${b}-font-size`]:!!b,"has-custom-font-size":!!b}),w={background:d||void 0,backgroundColor:C||d||m?void 0:u,fontSize:e.style?.typography?.fontSize,color:k?void 0:p,borderRadius:l?l+"px":void 0,width:f};return(0,r.createElement)("div",{className:B},(0,r.createElement)(a.RichText.Content,{className:y,"data-id-attr":n||"placeholder",href:E,id:n,rel:"noopener noreferrer",role:"button",style:w,tagName:"a",target:"_blank",value:A}))}},16969:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),a=n(69307),s=n(92819);function o({attributes:e,clientId:t,setAttributes:n}){const{passthroughAttributes:o}=e,{attributesToSync:i}=(0,r.useSelect)((n=>{const{getBlockAttributes:r,getBlockRootClientId:a}=n("core/block-editor"),i=r(a(t))||{},l=(0,s.mapValues)(o,(e=>i[e]));return{attributesToSync:(0,s.pickBy)(l,((t,n)=>t!==e[n]))}}));(0,a.useEffect)((()=>{(0,s.isEmpty)(i)||n(i)}),[i,n])}},39964:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r="https://calendly.com/wpcom/jetpack-block-example"},60153:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d});var r=n(51806),a=n(13419),s=n(52175),o=n(55609),i=n(65736),l=n(57538);const __=i.__,_x=i._x,c=({onEditClick:e})=>(0,r.createElement)(o.ToolbarGroup,null,(0,r.createElement)(o.ToolbarButton,{onClick:()=>e(!0)},__("Edit","jetpack"))),u=e=>{const{attributes:{hideEventTypeDetails:t,url:n},defaultClassName:s,embedCode:i,parseEmbedCode:l,setAttributes:c,setEmbedCode:u}=e;let d=null;return n&&(d=(0,a.Ug)()||(0,a.Wp)()?"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/#customize-the-calendly-block":"https://jetpack.com/support/jetpack-blocks/calendly-block/#customizing-a-calendly-block"),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PanelBody,{PanelBody:!0,title:__("Calendar settings","jetpack"),initialOpen:!1},(0,r.createElement)("form",{onSubmit:l,className:`${s}-embed-form-sidebar`},(0,r.createElement)("input",{type:"text",id:"embedCode",onChange:e=>u(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:i||"",className:"components-placeholder__input"}),(0,r.createElement)("div",null,(0,r.createElement)(o.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,r.createElement)(o.ToggleControl,{label:__("Hide event type details","jetpack"),checked:t,onChange:()=>c({hideEventTypeDetails:!t})})),d&&(0,r.createElement)(o.Notice,{className:`${s}-color-notice`,isDismissible:!1},(0,r.createElement)(o.ExternalLink,{href:d},__("Explore more customization options.","jetpack"))))},d=e=>{const{attributes:t,clientId:n,isEditingUrl:a,setAttributes:o,setIsEditingUrl:i}=e,{style:d,url:p}=t,m=[{value:"inline",label:__("Inline","jetpack")},{value:"link",label:__("Link","jetpack")}];return(0,r.createElement)(r.Fragment,null,p&&!a&&(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(c,{onEditClick:i})),p&&(0,r.createElement)(l.Z,{clientId:n,styleOptions:m,onSelectStyle:o,activeStyle:d,attributes:t,viewportWidth:500}),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(u,e)))}},83830:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(4981),s=n(65736),o=n(24381);const __=s.__,i={attributes:{backgroundColor:{type:"string",default:"ffffff",validator:o.Z},submitButtonText:{type:"string",default:__("Schedule time with me","jetpack")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},submitButtonClasses:{type:"string"},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:o.Z},textColor:{type:"string",default:"4D5055",validator:o.Z},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:e=>!e||e.startsWith("https://calendly.com/")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string",validator:o.Z},customTextButtonColor:{type:"string",validator:o.Z}},migrate:e=>{const{submitButtonText:t,submitButtonTextColor:n,submitButtonBackgroundColor:r,submitButtonClasses:s,backgroundButtonColor:o,textButtonColor:i,customBackgroundButtonColor:l,customTextButtonColor:c,...u}=e,d={text:(p=e).submitButtonText||__("Schedule time with me","jetpack"),textColor:p.submitButtonTextColor||p.textButtonColor,customTextColor:p.customTextButtonColor,backgroundColor:p.submitButtonBackgroundColor||p.backgroundButtonColor,customBackgroundColor:p.customBackgroundButtonColor,url:p.url};var p;return[u,[(0,a.createBlock)("jetpack/button",{element:"a",uniqueId:"calendly-widget-id",...d})]]},save:({attributes:{url:e}})=>(0,r.createElement)("a",{href:e},e)}},29415:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(52175),l=n(4981),c=n(55609),u=n(9818),d=n(69307),p=n(65736),m=n(65235),g=n.n(m),A=n(92819),h=n(4554),E=n(23621),f=n(23329),b=n(39964),C=n(60153),v=n(4867);const __=p.__,_x=p._x,k="jetpack/button",B={element:"a",text:__("Schedule time with me","jetpack"),uniqueId:"calendly-widget-id",url:b.l},y=(0,o.dM)(f);const w=(0,c.withNotices)((function(e){const{attributes:t,clientId:n,name:r,noticeOperations:o,noticeUI:p,setAttributes:m}=e,w=(0,l.getBlockDefaultClassName)(r),_=(0,h.S)(f.attributes,t);(0,A.isEqual)(_,t)||m(_);const{backgroundColor:I,hideEventTypeDetails:j,primaryColor:x,textColor:S,style:Q,url:N}=_,[P,T]=(0,d.useState)(N),[R,Z]=(0,d.useState)(!1),[L,M]=(0,d.useState)(!1),[D,F]=(0,d.useState)({}),z=(0,i.useBlockProps)(),O=()=>{o.removeAllNotices(),o.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack"))};(0,d.useEffect)((()=>{N&&b.l!==N&&"link"!==Q&&(0,E.Z)(N,M).catch((()=>{m({url:void 0}),O()}))}),[]);const U=e=>{if(!e)return void O();e.preventDefault();const t=(0,v.CC)(P);if(t){if(t.buttonAttributes&&"link"===t.style){const e=(0,u.select)("core/editor").getBlocksByClientId(n);e.length&&e[0].innerBlocks.forEach((e=>{(0,u.dispatch)("core/editor").updateBlockAttributes(e.clientId,t.buttonAttributes)})),F(t.buttonAttributes)}(0,E.Z)(t.url,M).then((()=>{const e=(0,h.S)(f.attributes,t);m(e),Z(!1),o.removeAllNotices()})).catch((()=>{m({url:void 0}),O()}))}else O()},H=(0,s.createElement)("div",{className:"wp-block-embed is-loading"},(0,s.createElement)(c.Spinner,null),(0,s.createElement)("p",null,__("Embedding…","jetpack"))),V=(0,s.createElement)(c.Placeholder,{label:__("Calendly","jetpack"),instructions:__("Enter your Calendly web address or embed code below.","jetpack"),icon:y,notices:p},(0,s.createElement)("form",{onSubmit:U},(0,s.createElement)("input",{type:"text",id:"embedCode",onChange:e=>T(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:P||"",className:"components-placeholder__input"}),(0,s.createElement)("div",null,(0,s.createElement)(c.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,s.createElement)("div",{className:`${w}-learn-more`},(0,s.createElement)(c.ExternalLink,{href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview"},__("Need help finding your embed code?","jetpack")))),q=(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:`${w}-overlay`}),(0,s.createElement)("iframe",{src:(()=>{const e=new URLSearchParams({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:j?1:0,background_color:I,primary_color:x,text_color:S});return`${N}?${e}`})(),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",title:"Calendly"})),G=(0,s.createElement)(i.InnerBlocks,{template:[[k,{...B,...D,passthroughAttributes:{url:"url"}}]],templateLock:"all"});return L?H:(0,s.createElement)("div",a()({},z,{className:g()(z.className,{[`calendly-style-${Q}`]:N&&!R})}),(0,s.createElement)(C.ZP,a()({},e,{defaultClassName:w,embedCode:P,isEditingUrl:R,parseEmbedCode:U,setEmbedCode:T,setIsEditingUrl:Z})),N&&!R?"inline"===Q?q:G:V)}))},52020:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(23329),o=n(83830),i=n(29415),l=n(15816),c=n(4867);(0,a.S)(s,{edit:i.Z,save:l.Z,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&c.mL.test(e.textContent),transform:e=>{const t=(0,c.CC)(e.textContent);return(0,r.createBlock)("jetpack/calendly",t)}}]},deprecated:[o.Z]})},15816:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},4867:(e,t,n)=>{"use strict";n.d(t,{CC:()=>a,mL:()=>r});const r=/(^|\/\/)(calendly\.com[^"']*)/i,a=e=>{if(!e)return;const t=(e=>{const t=e.match(r);if(t)return"https://"+t[2]})(e);if(!t)return;const n=(e=>{const t={},n=new URL(e);if(t.url=n.origin+n.pathname,!n.search)return t;const r=new URLSearchParams(n.search),a=r.get("background_color"),s=r.get("primary_color"),o=r.get("text_color"),i=/^[A-Za-z0-9]{6}$/;return r.get("hide_event_type_details")&&(t.hideEventTypeDetails=r.get("hide_event_type_details")),a&&a.match(i)&&(t.backgroundColor=a),s&&s.match(i)&&(t.primaryColor=s),o&&o.match(i)&&(t.textColor=o),t})(t),a=(e=>e.indexOf("data-url")>0?"inline":e.indexOf("initPopupWidget")>0||e.indexOf("initBadgeWidget")>0?"link":void 0)(e);if(a&&(n.style=a),"link"===a){n.buttonAttributes={};const t=(e=>{let t=e.match(/false;">([^<]+)<\//);return t?t[1]:(t=e.match(/text: '([^']*?)'/),t?t[1]:void 0)})(e);t&&(n.buttonAttributes.text=t);const r=(e=>{const t=e.match(/textColor: '([^']*?)'/);if(t)return t[1]})(e);r&&(n.buttonAttributes.textColor=void 0,n.buttonAttributes.customTextColor=r);const a=(e=>{const t=e.match(/color: '([^']*?)'/);if(t)return t[1]})(e);a&&(n.buttonAttributes.backgroundColor=void 0,n.buttonAttributes.customBackgroundColor=a)}return n}},36553:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(65235),c=n.n(l),u=n(35208);const __=i.__;class d extends o.Component{constructor(...e){super(...e),this.preventEnterKey=this.preventEnterKey.bind(this)}preventEnterKey(e){"Enter"!==e.key||e.preventDefault()}render(){const{attributes:{address:e,addressLine2:t,addressLine3:n,city:i,region:l,postal:d,country:p,linkToGoogleMaps:m},isSelected:g,setAttributes:A}=this.props,h=[e,t,n,i,l,d,p].some((e=>""!==e)),E=c()({"jetpack-address-block":!0,"is-selected":g}),f=(0,r.createElement)(s.ToggleControl,{label:__("Link address to Google Maps","jetpack"),checked:m,onChange:e=>A({linkToGoogleMaps:e})});return(0,r.createElement)("div",{className:E},!g&&h&&(0,u.Z)(this.props),(g||!h)&&(0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.PlainText,{value:e,placeholder:__("Street Address","jetpack"),"aria-label":__("Street Address","jetpack"),onChange:e=>A({address:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:t,placeholder:__("Address Line 2","jetpack"),"aria-label":__("Address Line 2","jetpack"),onChange:e=>A({addressLine2:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:n,placeholder:__("Address Line 3","jetpack"),"aria-label":__("Address Line 3","jetpack"),onChange:e=>A({addressLine3:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:i,placeholder:__("City","jetpack"),"aria-label":__("City","jetpack"),onChange:e=>A({city:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:l,placeholder:__("State/Province/Region","jetpack"),"aria-label":__("State/Province/Region","jetpack"),onChange:e=>A({region:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:d,placeholder:__("Postal/Zip Code","jetpack"),"aria-label":__("Postal/Zip Code","jetpack"),onChange:e=>A({postal:e}),onKeyDown:this.preventEnterKey}),(0,r.createElement)(a.PlainText,{value:p,placeholder:__("Country","jetpack"),"aria-label":__("Country","jetpack"),onChange:e=>A({country:e}),onKeyDown:this.preventEnterKey}),f))}}const p=d},11005:(e,t,n)=>{"use strict";n.d(t,{X:()=>d,u:()=>u});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(36598),l=n(36553),c=n(35208);const __=o.__,_x=o._x,u="address",d={title:__("Address","jetpack"),description:__("Lets you add a physical address with Schema markup.","jetpack"),keywords:[_x("location","block search term","jetpack"),_x("direction","block search term","jetpack"),_x("place","block search term","jetpack")],icon:(0,i.Z)((0,r.createElement)(s.Fragment,null,(0,r.createElement)(a.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),(0,r.createElement)(a.Circle,{cx:"12",cy:"9",r:"2.5"}))),category:"grow",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:l.Z,save:c.Z}},35208:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(69307),s=n(65736);const __=s.__,o=({attributes:{address:e,addressLine2:t,addressLine3:n,city:s,region:o,postal:i,country:l}})=>(0,r.createElement)(a.Fragment,null,e&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address1"},e),t&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address2"},t),n&&(0,r.createElement)("div",{className:"jetpack-address__address jetpack-address__address3"},n),s&&!(o||i)&&(0,r.createElement)("div",{className:"jetpack-address__city"},s),s&&(o||i)&&(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"jetpack-address__city"},s),", ",(0,r.createElement)("span",{className:"jetpack-address__region"},o)," ",(0,r.createElement)("span",{className:"jetpack-address__postal"},i)),!s&&(o||i)&&(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"jetpack-address__region"},o)," ",(0,r.createElement)("span",{className:"jetpack-address__postal"},i)),l&&(0,r.createElement)("div",{className:"jetpack-address__country"},l)),i=({attributes:{address:e,addressLine2:t,addressLine3:n,city:r,region:a,postal:s,country:o}})=>{let i=a?`+${a},`:"";i=s?`${i}+${s}`:i;return`https://www.google.com/maps/search/${e?`${e},`:""}${t?`${t},`:""}${n?`${n},`:""}${r?`+${r},`:""}${i}${o?`+${o}`:""}`.replace(" ","+")},l=e=>(({address:e,addressLine2:t,addressLine3:n,city:r,region:a,postal:s,country:o})=>[e,t,n,r,a,s,o].some((e=>""!==e)))(e.attributes)&&(0,r.createElement)("div",{className:e.className},e.attributes.linkToGoogleMaps&&(0,r.createElement)("a",{href:i(e),target:"_blank",rel:"noopener noreferrer",title:__("Open address in Google Maps","jetpack")},(0,r.createElement)(o,e)),!e.attributes.linkToGoogleMaps&&(0,r.createElement)(o,e))},83238:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i);const c=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],u=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]],d=e=>{const{isSelected:t}=e,n=(0,o.useBlockProps)();return(0,s.createElement)("div",a()({},n,{className:l()(n.className,{"jetpack-contact-info-block":!0,"is-selected":t})}),(0,s.createElement)(o.InnerBlocks,{allowedBlocks:c,templateLock:!1,template:u}))}},82566:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(11005),o=n(58891),i=n(83238),l=n(99804),c=n(52398),u=n(56162);(0,a.S)(o,{edit:i.Z,save:u.Z,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"widget_contact_info"===e,transform:({instance:e})=>{let t=[(0,r.createBlock)("core/heading",{content:e.raw.title}),(0,r.createBlock)("jetpack/email",{email:e.raw.email}),(0,r.createBlock)("jetpack/phone",{phone:e.raw.phone}),(0,r.createBlock)("jetpack/address",{address:e.raw.address})];return e.raw.hours&&(t=[...t,(0,r.createBlock)("core/paragraph",{content:e.raw.hours})]),e.raw.showmap&&e.raw.address&&(t=[...t,(0,r.createBlock)("jetpack/map",{address:e.raw.address})]),(0,r.createBlock)("jetpack/contact-info",{},t)}}]}},[{name:s.u,settings:s.X},{name:l.u,settings:l.X},{name:c.u,settings:c.X}])},31336:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(65736),a=n(66425),s=n(90458);const __=r.__,o=e=>{const{setAttributes:t}=e;return(0,a.Z)("email",e,__("Email","jetpack"),s.Z,(e=>t({email:e})))}},99804:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,u:()=>c});var r=n(51806),a=n(55609),s=n(65736),o=n(36598),i=n(31336),l=n(90458);const __=s.__,_x=s._x,c="email",u={title:__("Email Address","jetpack"),description:__("Lets you add an email address with an automatically generated click-to-email link.","jetpack"),keywords:["e-mail","email",_x("message","block search term","jetpack")],icon:(0,o.Z)((0,r.createElement)(a.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),category:"grow",attributes:{email:{type:"string",default:""}},edit:i.Z,save:l.Z,parent:["jetpack/contact-info"]}},90458:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307),s=n(92384);const o=({attributes:{email:e},className:t})=>e&&(0,r.createElement)("div",{className:t},e.split(/(\s+)/).map(((e,t)=>{const n=e.replace(/([.,/#!$%^&*;:{}=\-_`~()\][])+$/g,"");return e.indexOf("@")&&s.validate(n)?e===n?(0,r.createElement)("a",{href:`mailto:${e}`,key:t},e):(0,r.createElement)(a.Fragment,{key:t},(0,r.createElement)("a",{href:`mailto:${e}`,key:t},n),(0,r.createElement)(a.Fragment,null,e.slice(-(e.length-n.length)))):(0,r.createElement)(a.Fragment,{key:t},e)})))},70835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(65736),a=n(66425),s=n(21621);const __=r.__,o=e=>{const{setAttributes:t}=e;return(0,a.Z)("phone",e,__("Phone number","jetpack"),s.Z,(e=>t({phone:e})))}},52398:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,u:()=>c});var r=n(51806),a=n(55609),s=n(65736),o=n(36598),i=n(70835),l=n(21621);const __=s.__,_x=s._x,c="phone",u={title:__("Phone Number","jetpack"),description:__("Lets you add a phone number with an automatically generated click-to-call link.","jetpack"),keywords:[_x("mobile","block search term","jetpack"),_x("telephone","block search term","jetpack"),_x("cell","block search term","jetpack")],icon:(0,o.Z)((0,r.createElement)(a.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),category:"grow",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:i.Z,save:l.Z}},21621:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);const a=({attributes:{phone:e},className:t})=>e&&(0,r.createElement)("div",{className:t},function(e){const t=e.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);if(!t)return e;const n=e.indexOf(t[0]);let a=n?e.substring(n-1):e,s=n?e.substring(0,n):"",o=a.replace(/\D/g,"");return/[0-9/+/(]/.test(a[0])?(s=s.slice(0,-1),"+"===a[0]&&(o="+"+o)):a=a.substring(1),[s.trim()?(0,r.createElement)("span",{key:"phonePrefix",className:"phone-prefix"},s):null,(0,r.createElement)("a",{key:"phoneNumber",href:`tel:${o}`},a)]}(e))},56162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=()=>{const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},17599:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var r=n(65736);const __=r.__,a=(0,r.sprintf)( | |
| 13 | +__("Error: %1$s","jetpack"),i)}),t===d.Or?(0,h.jsx)(r.Button,{variant:"link",onClick:o,href:a,target:a?"_blank":null,children:(0,h.jsx)("span",{children:__("Upgrade now","jetpack")})}):(0,h.jsx)(r.Button,{variant:"link",onClick:n,children:(0,h.jsx)("span",{children:__("Try again","jetpack")})})]})}},14016(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(56427),o=n(27723),s=n(51489),a=n(6754),i=(n(1184),n(10790));const __=o.__,c=({requestingState:e,onClose:t,title:n})=>(0,i.jsxs)("div",{className:"ai-assistant-modal__header",children:[(0,i.jsxs)("div",{className:"ai-assistant-modal__title-wrapper",children:[(0,i.jsx)(a.A,{state:e}),(0,i.jsx)("h1",{className:"ai-assistant-modal__title",children:n})]}),(0,i.jsx)(r.Button,{icon:s.A,label:__("Close","jetpack"),onClick:t})]});function l({children:e,handleClose:t,hideHeader:n=!0,requestingState:o="init",title:s=__("AI Assistant","jetpack"),maxWidth:a=720}){return(0,i.jsx)(r.Modal,{__experimentalHideHeader:n,className:"ai-assistant-modal",shouldCloseOnClickOutside:!1,onRequestClose:t,children:(0,i.jsxs)("div",{className:"ai-assistant-modal__content",style:{maxWidth:a},children:[(0,i.jsx)(c,{requestingState:o,onClose:t,title:s}),e]})})}},57853(e,t,n){"use strict";n.d(t,{A:()=>b,Q:()=>f});var r=n(3924),o=n(85985),s=n(82201),a=n(56427),i=n(86087),c=n(27723),l=n(10067),u=n.n(l),d=n(42694),p=n(72448),h=n(71567),m=(n(92051),n(10790));const __=c.__,g=u()("jetpack-ai-client:upgrade-prompt"),f=({variant:e="error"})=>{const t=(()=>{const{usagePeriod:e}=(0,p.A)(),t=(e=>{const t=__("You've reached this month's request limit, per our <link><span>fair usage policy</span></link>.","jetpack");if(!e)return t; | |
| 14 | +// Translators: %s is the date when the requests will reset. | |
| 15 | +const n=__("Requests will reset on %s.","jetpack");return`${t} ${(0,c.sprintf)(n,e)}`})((e=>{if(!e?.nextStart)return null;const t=new Date(e.nextStart);return t.toLocaleString("default",{month:"long"})+" "+t.getDate()})(e));return(0,i.createInterpolateElement)(t,{link:(0,m.jsx)("a",{href:"https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy",target:"_blank",rel:"noreferrer"}),span:(0,m.jsx)("span",{})})})();return"muted"===e?(0,m.jsx)("span",{className:"jetpack-ai-fair-usage-notice-muted-variant",children:t}):"error"===e?(0,m.jsx)(a.Notice,{status:"error",isDismissible:!1,className:"jetpack-ai-fair-usage-notice",children:t}):null},b=e=>{const{upgradeType:t,currentTier:n}=(0,p.A)();return 1===n?.value?(0,m.jsx)(f,{}):"vip"===t?(({description:e=null,useLightNudge:t=!1})=>{const n=t?h.U:s.cb,r=(0,i.createInterpolateElement)(__("You've reached the Jetpack AI rate limit. <strong>Please reach out to your VIP account team.</strong>","jetpack"),{strong:(0,m.jsx)("strong",{})});return(0,m.jsx)(n,{buttonText:null,checkoutUrl:null,className:"jetpack-ai-upgrade-banner",description:e||r,goToCheckoutPage:null,isRedirecting:null,visible:!0,align:null,title:null,context:null})})({description:e.description,useLightNudge:e?.useLightNudge}):(({placement:e=null,description:t=null,useLightNudge:n=!1})=>{const a=n?h.U:s.cb,{checkoutUrl:l}=(0,d.A)(),u=(0,o.CP)(),{nextTier:f,tierPlansEnabled:b,currentTier:v,requestsCount:y}=(0,p.A)(),{tracks:k}=(0,o.st)(),w=(0,i.useCallback)(()=>{g("upgrade",e),k.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:v?.slug,requests_count:y,placement:e})},[v,y,k,e]),x=(0,i.useCallback)(()=>{g("contact us",e),k.recordEvent("jetpack_ai_upgrade_contact_us",{placement:e})},[k,e]);if(!u){const e=(0,i.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Reach out to the site administrator to upgrade and keep using Jetpack AI.</strong>","jetpack"),{strong:(0,m.jsx)("strong",{})});return(0,m.jsx)(a,{showButton:!1,className:"jetpack-ai-upgrade-banner",description:t||e,visible:!0,align:null,title:null,context:null})}if(b){if(!f){const e=(0,r.A)("jetpack-ai-tiers-more-requests-contact"),n=__("You have reached the request limit for your current plan.","jetpack");return(0,m.jsx)(a,{buttonText:__("Contact Us","jetpack"),description:t||n,className:"jetpack-ai-upgrade-banner",checkoutUrl:e,visible:!0,align:null,title:null,context:null,goToCheckoutPage:x,target:"_blank"})}const e=(0,i.createInterpolateElement)((0,c.sprintf)(/* Translators: %d: the number of requests allowed */ | |
| 16 | +__("You have reached the requests limit for your current plan. <strong>Upgrade now to increase your requests limit to %d.</strong>","jetpack"),f.limit),{strong:(0,m.jsx)("strong",{})});return(0,m.jsx)(a,{buttonText:(0,c.sprintf)(/* Translators: %d: the number of requests */ | |
| 17 | +__("Upgrade to %d requests","jetpack"),f.limit),checkoutUrl:l,className:"jetpack-ai-upgrade-banner",description:t||e,goToCheckoutPage:w,visible:!0,align:"center",title:null,context:null,target:"_blank"})}return(0,m.jsx)(a,{buttonText:__("Upgrade","jetpack"),checkoutUrl:l,className:"jetpack-ai-upgrade-banner",description:(0,i.createInterpolateElement)(__("Congratulations on exploring Jetpack AI and reaching the free requests limit! <strong>Upgrade now to keep using it.</strong>","jetpack"),{strong:(0,m.jsx)("strong",{})}),goToCheckoutPage:w,visible:!0,align:null,title:null,context:null,target:"_blank"})})(e)}},71567(e,t,n){"use strict";n.d(t,{U:()=>a});var r=n(56427),o=n(27723),s=(n(92051),n(10790));const __=o.__,a=({title:e,description:t,buttonText:n=null,checkoutUrl:o=null,goToCheckoutPage:a=null,isRedirecting:i=!1,showButton:c=!0,target:l="_top"})=>{const u=__("Redirecting…","jetpack");return(0,s.jsx)("div",{className:"jetpack-upgrade-plan-banner-light",children:(0,s.jsx)(r.Notice,{status:"error",isDismissible:!1,children:(0,s.jsxs)("p",{children:[e&&(0,s.jsx)("strong",{children:e}),t," ",c&&(0,s.jsx)(r.Button,{href:i?null:o,onClick:a,variant:"link",target:l,children:(0,s.jsx)("span",{children:i?u:n})})]})})})}},43984(e,t,n){"use strict";n.d(t,{A4:()=>c,DD:()=>w,DT:()=>N,Gm:()=>g,HM:()=>x,JR:()=>_,K2:()=>C,Rq:()=>T,UA:()=>m,UD:()=>j,br:()=>d,d5:()=>b,eJ:()=>h,fD:()=>p,fv:()=>v,im:()=>a,mI:()=>A,mT:()=>E,oZ:()=>s,pE:()=>f,s6:()=>P,sn:()=>i,so:()=>o,u0:()=>y,uQ:()=>k,vE:()=>u,wb:()=>B,yQ:()=>S,yy:()=>l});var r=n(27723);const __=r.__,o={en:{label:__("English","jetpack")},es:{label:__("Spanish","jetpack")},fr:{label:__("French","jetpack")},de:{label:__("German","jetpack")},it:{label:__("Italian","jetpack")},pt:{label:__("Portuguese","jetpack")},ru:{label:__("Russian","jetpack")},zh:{label:__("Chinese","jetpack")},ja:{label:__("Japanese","jetpack")},ar:{label:__("Arabic","jetpack")},hi:{label:__("Hindi","jetpack")},ko:{label:__("Korean","jetpack")}},s={formal:{label:__("Formal","jetpack"),emoji:"🎩"},informal:{label:__("Informal","jetpack"),emoji:"😊"},optimistic:{label:__("Optimistic","jetpack"),emoji:"😃"},humorous:{label:__("Humorous","jetpack"),emoji:"😂"},serious:{label:__("Serious","jetpack"),emoji:"😐"},skeptical:{label:__("Skeptical","jetpack"),emoji:"🤨"},empathetic:{label:__("Empathetic","jetpack"),emoji:"💗"},confident:{label:__("Confident","jetpack"),emoji:"😎"},passionate:{label:__("Passionate","jetpack"),emoji:"❤️"},provocative:{label:__("Provocative","jetpack"),emoji:"🔥"}},a="titleSummary",i="continue",c="simplify",l="correctSpelling",u="generateTitle",d="makeLonger",p="makeShorter",h="changeTone",m="summarize",g="changeLanguage",f="userPrompt",b="transformListToTable",v="writePostFromList",y=__("Translate","jetpack"),k=__("Change tone","jetpack"),w=__("Correct spelling and grammar","jetpack"),x=__("Simplify","jetpack"),_=__("Summarize","jetpack"),j=__("Make shorter","jetpack"),C=__("Expand","jetpack"),A=__("Turn list into a table","jetpack"),S=__("Write a post from this list","jetpack"),E=__("Generate a post title","jetpack"),T=__("Summary based on title","jetpack"),N=__("Continue writing","jetpack"),P="jetpack-sidebar",B="document-settings"},2166(e,t,n){"use strict";n.d(t,{R:()=>a});var r=n(51609),o=n(10790);const s=(0,r.createContext)({}),a=({value:e,children:t})=>(0,o.jsx)(s.Provider,{value:e,children:t})},13965(e,t,n){"use strict";n.d(t,{Rb:()=>r.R});var r=n(2166);n(59886),n(53471)},53471(e,t,n){"use strict";n(51609),n(78836),n(13965)},59886(e,t,n){"use strict";var r=n(29491),o=n(86087),s=n(46219),a=n(13965),i=n(10790);(0,r.createHigherOrderComponent)(e=>t=>{const{suggestion:n,error:r,requestingState:c,request:l,stopSuggestion:u,eventSource:d}=(0,s.Ay)(),p=(0,o.useMemo)(()=>({suggestion:n,requestingError:r,requestingState:c,eventSource:d,requestSuggestion:l,stopSuggestion:u}),[n,r,c,d,l,u]);return(0,i.jsx)(a.Rb,{value:p,children:(0,i.jsx)(e,{...t})})},"withAiDataProvider")},42694(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3924),o=n(97999),s=n(85985),a=n(72448);function i(){const{nextTier:e,tierPlansEnabled:t}=(0,a.A)(),n=(()=>{const e=new URLSearchParams(window.location.search),t=(0,s.GE)();return(0,o.isSimpleSite)()&&e.has("post")?`https://wordpress.com/post/${t}/${e.get("post")}`:`https://wordpress.com/home/${t}`})(),i=(0,r.A)("jetpack-ai-yearly-tier-upgrade-nudge",{site:(0,s.GE)(),path:t?`jetpack_ai_yearly:-q-${e?.limit}`:"jetpack_ai_yearly",query:`redirect_to=${encodeURIComponent(n)}`}),c=(0,r.A)("jetpack-ai-upgrade-url-for-jetpack-sites",{site:(0,s.GE)(),path:"jetpack_ai_yearly"}),l=(0,o.isWpcomPlatformSite)()?i:c,{autosaveAndRedirect:u,isRedirecting:d}=(0,s.ZR)(l);return{checkoutUrl:l,autosaveAndRedirect:u,isRedirecting:d}}},72448(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(85985),o=n(47143),s=n(86087);function a(){const e=(0,o.useSelect)(e=>e("wordpress-com/plans").getAiAssistantFeature(),[]),t=(0,o.useSelect)(e=>e("wordpress-com/plans").getIsRequestingAiAssistantFeature(),[]),{fetchAiAssistantFeature:n,increaseAiAssistantRequestsCount:a,dequeueAiAssistantFeatureAsyncRequest:i}=(0,o.useDispatch)("wordpress-com/plans");return(0,s.useMemo)(()=>{const o=(0,r.Bd)(e?.currentTier),s=e?.currentTier?.limit||e?.requestsLimit,c=o===r._X?e?.requestsCount:e?.usagePeriod?.requestsCount,l=o===r._X?e?.requestsLimit:s;return{...e,requestsCount:c,requestsLimit:l,loading:t,error:null,refresh:n,increaseRequestsCount:a,dequeueAsyncRequest:i}},[e,t,n,a,i])}},46219(e,t,n){"use strict";n.d(t,{Ay:()=>p,fC:()=>u});var r=n(86087),o=n(27723),s=n(10067),a=n.n(s),i=n(87286),c=n(78836);const __=o.__,l=a()("ai-client:use-ai-suggestions");function u(e){switch(e){case c.Or:return{code:c.Or,message:__("You have reached the limit of requests for this site.","jetpack"),severity:"info"};case c.L9:return{code:c.L9,message:__("Your request was unclear. Mind trying again?","jetpack"),severity:"info"};case c.AZ:return{code:c.AZ,message:__("Jetpack AI services are currently unavailable. Sorry for the inconvenience.","jetpack"),severity:"info"};case c.ud:return{code:c.ud,message:__("Our service provider OpenAI could not process your prompt due to a moderation system. Please try to rephrase it changing potentially problematic words and try again.","jetpack"),severity:"info"};case c.cT:return{code:c.cT,message:__("The content is too large to be processed all at once. Please try to shorten it or divide it into smaller parts.","jetpack"),severity:"info"};case c.mA:default:return{code:c.mA,message:__("It was not possible to process your request. Mind trying again?","jetpack"),severity:"info"}}}function d(e){return e.replace(/^<\|start_header_id\|>assistant<\|end_header_id\|>[\n]+/,"")}function p({prompt:e,autoRequest:t=!1,askQuestionOptions:n={},initialRequestingState:o="init",onSuggestion:s,onDone:a,onStop:p,onError:h,onAllErrors:m}={}){const[g,f]=(0,r.useState)(o),[b,v]=(0,r.useState)(""),[y,k]=(0,r.useState)(c.Np),w=(0,r.useRef)(c.Np),[x,_]=(0,r.useState)(),j=(0,r.useRef)(void 0),C=(0,r.useCallback)(e=>{l("handleSuggestion",e);const t=d(e?.detail);t?(v(t),s?.(t)):l("no partial suggestion")},[s]),A=(0,r.useCallback)(e=>{L();const t=d(e?.detail?.message??e?.detail);a?.(t,w.current),f("done")},[a]),S=(0,r.useCallback)(e=>{m?.(e?.detail)},[m]),E=(0,r.useCallback)(e=>{j?.current?.close(),f("error"),_(u(e)),h?.(u(e))},[h]),T=(0,r.useCallback)(()=>E(c.Or),[]),N=(0,r.useCallback)(()=>E(c.L9),[]),P=(0,r.useCallback)(()=>E(c.AZ),[]),B=(0,r.useCallback)(()=>E(c.ud),[]),I=(0,r.useCallback)(()=>E(c.mA),[]),M=(0,r.useCallback)(async(e,t={...n})=>{var r;if(_(void 0),f("requesting"),r=c.Np,k(r),w.current=r,j.current=await(0,i.A)(e,t),!j?.current)return void l("no event source");const o=j.current;f("suggesting"),o.addEventListener("suggestion",C),o.addEventListener(c.Or,T),o.addEventListener(c.L9,N),o.addEventListener(c.AZ,P),o.addEventListener(c.ud,B),o.addEventListener(c.mA,I),o.addEventListener(c.zn,S),o.addEventListener("done",A)},[A,T,N,P,B,I,C]),R=(0,r.useCallback)(()=>{f("init"),v(""),_(void 0)},[]),L=(0,r.useCallback)(()=>{if(!j?.current)return;const e=j?.current;e.close(),e.removeEventListener("suggestion",C),e.removeEventListener(c.Or,T),e.removeEventListener(c.L9,N),e.removeEventListener(c.AZ,P),e.removeEventListener(c.ud,B),e.removeEventListener(c.mA,I),e.removeEventListener("done",A)},[j,C,T,N,P,B,I,A]),D=(0,r.useCallback)(()=>{L(),p?.(),f("done")},[p]);return(0,r.useEffect)(()=>{if(e?.length)return t&&M(e,n),()=>{D()}},[t,e,M,D]),{suggestion:b,model:y,error:x,requestingState:g,request:M,stopSuggestion:D,reset:R,handleErrorQuotaExceededError:T,eventSource:j.current}}},7804(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(86087),o=n(27723),s=n(10067),a=n.n(s),i=n(57745);const __=o.__,c=a()("jetpack-ai-client:use-audio-transcription");function l({feature:e,onReady:t,onError:n}){const[o,s]=(0,r.useState)(""),[a,l]=(0,r.useState)(""),[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null);return{transcriptionResult:o,isTranscribingAudio:u,transcriptionError:a,transcribeAudio:(0,r.useCallback)(r=>{c("Transcribing audio"),s(""),l(""),d(!0);const o=new AbortController;p.current=o,(0,i.A)(r,e,o.signal).then(e=>{s(e),t?.(e)}).catch(e=>{o.signal.aborted||(l(e.message),n?.((e=>{if("string"==typeof e)return e;if("code"in e)switch(e.code){case"error_quota_exceeded":return __("You exceeded your current quota, please check your plan details.","jetpack");case"jetpack_ai_missing_audio_param":return __("The audio_file is required to perform a transcription.","jetpack");case"jetpack_ai_service_unavailable":return __("The Jetpack AI service is temporarily unavailable.","jetpack");case"file_size_not_supported":return __("The provided audio file is too big.","jetpack");case"file_type_not_supported":return __("The provided audio file type is not supported.","jetpack");case"jetpack_ai_error":return __("There was an error processing the transcription request.","jetpack");default:return e.message}return"message"in e?e.message:__("There was an error processing the transcription request.","jetpack")})(e)))}).finally(()=>d(!1))},[i.A,s,l,d]),cancelTranscription:(0,r.useCallback)(()=>{p.current?.abort(),s(""),l(""),d(!1)},[p,s,l,d])}}},66859(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(27723);const __=o.__,s=["audio/mpeg","audio/mp3","audio/ogg","audio/flac","audio/x-flac","audio/m4a","audio/x-m4a","audio/mp4","audio/wav","audio/wave","audio/x-wav","audio/webm"];function a(){const[e,t]=(0,r.useState)(!1);return{isValidatingAudio:e,validateAudio:(0,r.useCallback)((e,n,r)=>{if(t(!0),e?.size>25e6)return t(!1),r(__("The audio file is too large. The maximum file size is 25MB.","jetpack"));const o=e instanceof File;if(o&&!s.includes(e.type))return t(!1),r(__("The audio file type is not supported. Please use a supported audio file type.","jetpack"));const a=new AudioContext;e.arrayBuffer().then(s=>{a.decodeAudioData(s,function(s){const a=Math.ceil(s.duration);return a>1500?(t(!1),r(__("The audio file is too long. The maximum recording time is 25 minutes.","jetpack"))):(t(!1),n({duration:a,isFile:o,size:e?.size}))})})},[t])}}},66223(e,t,n){"use strict";n.d(t,{Hu:()=>o,Wp:()=>r});const r="auto",o="none"},62614(e,t,n){"use strict";n.d(t,{Ay:()=>u});var r=n(10067),o=n.n(r),s=n(31439),a=n(51391);const i=o()("ai-client:use-image-generator"),c=(e,t)=>{const n=4e3-t;return e.length>n?e.substring(0,n-6)+" [...]":e},l=async(e,t,n)=>{const r=((e,t)=>{if(t){const n=`I need a Stable Diffusion prompt to generate a featured image for a blog post based on this user-provided image description:\n\n${t.length>1e3?t.substring(0,1e3):t}\n\nThe image should be a photo. Make sure you highlight the main suject of the image description, and include brief details about the light and style of the image.\nInclude a request to use high resolution and produce a highly detailed image, with sharp focus.\nReturn just the prompt, without comments.\n\nFor additional context, this is the post content:\n\n`;return n+c(e,n.length)}return"I need a Stable Diffusion prompt to generate a featured image for a blog post with the following content.\nThe image should be a photo. Make sure you highlight the main suject of the content, and include brief details about the light and style of the image.\nInclude a request to use high resolution and produce a highly detailed image, with sharp focus.\nReturn just the prompt, without comments. The content is:\n\n"+c(e,412)})(e,t);return await(0,s.A)(r,{feature:n})},u=()=>{const e=async function(e){let t;try{t=(await(0,a.A)()).token}catch(e){return i("Error getting token: %o",e),Promise.reject(e)}try{const n="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-image",r={Authorization:`Bearer ${t}`,"Content-Type":"application/json"},o=await fetch(n,{method:"POST",headers:r,body:JSON.stringify(e)}).then(e=>e.json());return o?.data?.status&&o?.data?.status>200?(i("Error generating image: %o",o),Promise.reject(o)):o}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}};return{generateImage:async function({feature:t,postContent:n,responseFormat:r="url",userPrompt:o}){try{i("Generating image");const s=((e,t)=>{if(t){const n=`I need a cover image for a blog post based on this user prompt:\n\n${t.length>1e3?t.substring(0,1e3):t}\n\nBefore creating the image, identify the main topic of the user prompt and relate it to the post content.\nDo not represent the whole content in one image, keep it simple and just represent one single idea.\nDo not add details, detailed explanations or highlights from the content, just represent the main idea as if it was a photograph.\nDo not use collages or compositions with multiple elements or scenes. Stick to one single scene. Do not compose unrealistic scenes.\nIf the content describes facts, objects or concepts from the real world, represent them on a realistic style and do not make unreal compositions.\nIf the content is more abstract, use a more abstract style to represent the main idea.\nMake sure the light and the style are visually appealing.\nDo not add text to the image.\n\nFor additional context, this is the post content:\n\n`;return n+c(e,n.length)}const n="I need a cover image for a blog post.\nBefore creating the image, identify the main topic of the content and only represent it.\nDo not represent the whole content in one image, keep it simple and just represent one single idea.\nDo not add details, detailed explanations or highlights from the content, just represent the main idea as if it was a photograph.\nDo not use collages or compositions with multiple elements or scenes. Stick to one single scene. Do not compose unrealistic scenes.\nIf the content describes facts, objects or concepts from the real world, represent them on a realistic style and do not make unreal compositions.\nIf the content is more abstract, use a more abstract style to represent the main idea.\nMake sure the light and the style are visually appealing.\nDo not add text to the image.\n\nThis is the post content:\n\n";return n+c(e,838)})(n,o),a={prompt:s,response_format:r,feature:t,size:"1792x1024"};return await e(a)}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}},generateImageWithStableDiffusion:async function({feature:t,postContent:n,userPrompt:r}){try{i("Generating image with Stable Diffusion");const o={prompt:await l(n,r,t),feature:t,model:"stable-diffusion"};return await e(o)}catch(e){return i("Error generating image: %o",e),Promise.reject(e)}},generateImageWithParameters:e}}},96657(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087);const o="audio/mp4;codecs=mp4a",s="audio/webm";function a({onDone:e}={}){const t=(0,r.useRef)(null),[n,a]=(0,r.useState)("inactive"),i=(0,r.useRef)(!1),c=(0,r.useRef)(0),[l,u]=(0,r.useState)(0),d=(0,r.useRef)(null),[p,h]=(0,r.useState)(null),m=(0,r.useRef)([]).current,[g,f]=(0,r.useState)(null),b=(0,r.useRef)(null);function v(){return MediaRecorder.isTypeSupported(o)?new Blob(m,{type:"audio/mp4"}):new Blob(m,{type:s})}const y=(0,r.useCallback)(e=>{if(_(),!e)return t?.current?.start();e<100&&(e=100),c.current=Date.now(),t?.current?.start(e)},[]),k=(0,r.useCallback)(()=>{i.current=!0,t?.current?.pause(),u(e=>e+Date.now()-c.current)},[]),w=(0,r.useCallback)(()=>{i.current=!1,t?.current?.resume(),c.current=Date.now()},[]),x=(0,r.useCallback)(()=>{t?.current?.stop(),"recording"===n&&u(e=>e+Date.now()-c.current)},[]),_=(0,r.useCallback)(()=>{m.length=0,h(null),f(null),u(0),i.current=!1,c.current=0},[]),j=(0,r.useCallback)(()=>{t?.current&&(t.current.removeEventListener("start",S),t.current.removeEventListener("stop",E),t.current.removeEventListener("pause",T),t.current.removeEventListener("resume",N),t.current.removeEventListener("dataavailable",P),t.current=null)},[]),C=(0,r.useCallback)(()=>{if(a("inactive"),_(),j(),!navigator.mediaDevices?.getUserMedia)return;const e=new AudioContext;b.current=e.createAnalyser();navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{d.current=n;e.createMediaStreamSource(n).connect(b.current),MediaRecorder.isTypeSupported(o)?t.current=new MediaRecorder(n,{mimeType:o}):t.current=new MediaRecorder(n,{mimeType:s}),t.current.addEventListener("start",S),t.current.addEventListener("stop",E),t.current.addEventListener("pause",T),t.current.addEventListener("resume",N),t.current.addEventListener("dataavailable",P)}).catch(e=>{throw e})},[]),A=(0,r.useCallback)(e=>{x(),f("string"==typeof e?e:e.message),a("error")},[]);function S(){a("recording")}function E(){const t=v();e?.(t),m.length=0}function T(){a("paused")}function N(){a("recording")}function P(e){const{data:t}=e;t?.size&&(m.push(t),h(v()),i.current||u(e=>{const t=Date.now(),n=t-c.current;return c.current=t,e+n}))}return(0,r.useEffect)(()=>(C(),()=>{d.current&&d.current.getTracks().forEach(e=>e.stop()),j()}),[]),{state:n,blob:p,error:g,duration:l,analyser:b.current,onError:A,controls:{start:y,pause:k,resume:w,stop:x,reset:C}}}},71508(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(74997),o=n(47143),s=n(43656),a=n(86087),i=n(55166);const c=()=>{const{getBlocks:e,isEditedPostEmpty:t}=(0,o.useSelect)(e=>{const t=e("core/block-editor"),n=e(s.store);return{getBlocks:t.getBlocks,isEditedPostEmpty:n.isEditedPostEmpty}},[]),n=(0,a.useCallback)(()=>{const t=e();return 0===t.length?"":(0,r.serialize)(t)},[e]);return{getPostContent:(0,a.useCallback)(e=>{let t=n();return t?(e&&"function"==typeof e&&(t=e(t)),t?(0,i.rh)({content:t}):""):""},[e]),isEditedPostEmpty:t,getSerializedPostContent:n}}},62038(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(63162),o=n(47143),s=n(86087),a=n(10067);const i=n.n(a)()("jetpack-ai-client:save-to-media-library");function c(){const[e,t]=(0,s.useState)(!1),{getSettings:n}=(0,o.useSelect)(e=>e("core/block-editor"),[]);return{isLoading:e,saveToMediaLibrary:(e,o=null)=>{const s=n();return new Promise((n,a)=>{t(!0),i("Fetching image from URL"),fetch(e).then(e=>{i("Transforming response to blob"),e.blob().then(e=>{i("Uploading blob to media library");const c=[];o?c.push(new File([e],o)):c.push(e),s.mediaUpload({allowedTypes:["image"],filesList:c,onFileChange([e]){(0,r.isBlobURL)(e?.url)||(e&&(i("Image uploaded to media library",e),n({id:e.id,url:e.url,mime:e.mime})),t(!1))},onError(e){i("Error uploading image to media library:",e),a(e),t(!1)}})}).catch(e=>{i("Error transforming response to blob:",e?.message),a(e?.message),t(!1)})}).catch(e=>{i("Error fetching image from URL:",e?.message),a(e?.message),t(!1)})})}}}},93869(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(63162),o=n(47143),s=n(86087),a=n(10067);const i=n.n(a)()("ai-client:save-to-media-library");function c(){const[e,t]=(0,s.useState)(!1),{getSettings:n}=(0,o.useSelect)(e=>e("core/block-editor"),[]);return{isLoading:e,saveToMediaLibrary:(e,o)=>{const s=n();return new Promise((n,a)=>{t(!0),i("Fetching image from URL"),fetch(e).then(e=>{i("Transforming response to blob"),e.blob().then(e=>{i("Uploading blob to media library");const c=Array();o?c.push(new File([e],o)):c.push(e),s.mediaUpload({allowedTypes:["image"],filesList:c,onFileChange([e]){(0,r.isBlobURL)(e?.url)||(e&&(i("Image uploaded to media library",e),n(e)),t(!1))},onError(e){i("Error uploading image to media library:",e),a(e),t(!1)}})}).catch(e=>{i("Error transforming response to blob:",e?.message),a(e?.message),t(!1)})}).catch(e=>{i("Error fetching image from URL:",e?.message),a(e?.message),t(!1)})})}}}},97784(e,t,n){"use strict";n.d(t,{A:()=>l,u:()=>c});var r=n(86087),o=n(10067),s=n.n(o),a=n(46219);const i=s()("jetpack-ai-client:use-transcription-post-processing"),c="voice-to-content-simple-draft";function l({feature:e,onReady:t,onError:n,onUpdate:o}){const[s,c]=(0,r.useState)(""),[l,u]=(0,r.useState)(""),[d,p]=(0,r.useState)(!1),h=(0,r.useCallback)(e=>{c(e),o?.(e)},[c,o]),m=(0,r.useCallback)(e=>{c(e),o?.(e),t?.(e)},[c,o,t]),g=(0,r.useCallback)(e=>{u(e.message),n?.(e.message)},[u,n]),{request:f,stopSuggestion:b}=(0,a.Ay)({onSuggestion:h,onDone:m,onError:g});return{postProcessingResult:s,isProcessingTranscription:d,postProcessingError:l,processTranscription:(0,r.useCallback)((t,n)=>{i("Post-processing transcription"),c(""),u(""),p(!0);f([{role:"jetpack-ai",context:{type:t,content:n}}],{feature:e})},[c,u,p,f,e]),cancelTranscriptionProcessing:(0,r.useCallback)(()=>{b(),p(!1)},[b,p])}}},30151(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsxs)(r.SVG,{viewBox:"0 0 32 32",width:"32",height:"32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"ai-assistant-icon",children:[(0,o.jsx)(r.Path,{className:"spark-first",d:"M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z"}),(0,o.jsx)(r.Path,{className:"spark-second",d:"M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z"}),(0,o.jsx)(r.Path,{className:"spark-third",d:"M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z"})]})},42154(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsxs)(r.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.95833C6.66328 3.95833 3.95833 6.66327 3.95833 9.99999C3.95833 13.3367 6.66328 16.0417 10 16.0417C13.3367 16.0417 16.0417 13.3367 16.0417 9.99999C16.0417 6.66327 13.3367 3.95833 10 3.95833ZM2.70833 9.99999C2.70833 5.97292 5.97292 2.70833 10 2.70833C14.0271 2.70833 17.2917 5.97292 17.2917 9.99999C17.2917 14.0271 14.0271 17.2917 10 17.2917C5.97292 17.2917 2.70833 14.0271 2.70833 9.99999Z"}),(0,o.jsx)(r.Path,{d:"M10.8333 5.83333H9.16667V10.8333H10.8333V5.83333Z"}),(0,o.jsx)(r.Path,{d:"M10.8333 12.5H9.16667V14.1667H10.8333V12.5Z"})]})},91396(e,t,n){"use strict";n.d(t,{Qr:()=>a.A,Vo:()=>o.A,cj:()=>r.A,ni:()=>s.A});var r=n(30151),o=n(81353),s=(n(95007),n(96626),n(4416),n(25680)),a=n(67205)},81353(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsxs)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/SVG",children:[(0,o.jsx)(r.Path,{d:"M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z",fill:"#008710"}),(0,o.jsx)(r.Rect,{x:"10.5",y:"8.25",width:"3",height:"4.875",rx:"1.5",fill:"#008710"}),(0,o.jsx)(r.Path,{d:"M15 11.25C15 11.644 14.9224 12.0341 14.7716 12.3981C14.6209 12.762 14.3999 13.0927 14.1213 13.3713C13.8427 13.6499 13.512 13.8709 13.1481 14.0216C12.7841 14.1724 12.394 14.25 12 14.25C11.606 14.25 11.2159 14.1724 10.8519 14.0216C10.488 13.8709 10.1573 13.6499 9.87868 13.3713C9.6001 13.0927 9.37913 12.762 9.22836 12.3981C9.0776 12.0341 9 11.644 9 11.25",stroke:"#008710",strokeWidth:"1.125",strokeLinecap:"round"}),(0,o.jsx)(r.Path,{d:"M11.4375 15.75C11.4375 16.0607 11.6893 16.3125 12 16.3125C12.3107 16.3125 12.5625 16.0607 12.5625 15.75L11.4375 15.75ZM11.4375 14.25L11.4375 15.75L12.5625 15.75L12.5625 14.25L11.4375 14.25Z",fill:"#008710"})]})},95007(e,t,n){"use strict";n(56427),n(10790)},25680(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsxs)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/SVG",children:[(0,o.jsx)(r.Path,{d:"M12 4.75C11.0479 4.75 10.1052 4.93753 9.22554 5.30187C8.34593 5.66622 7.5467 6.20025 6.87348 6.87348C6.20025 7.5467 5.66622 8.34593 5.30187 9.22554C4.93753 10.1052 4.75 11.0479 4.75 12C4.75 12.9521 4.93753 13.8948 5.30187 14.7745C5.66622 15.6541 6.20025 16.4533 6.87348 17.1265C7.5467 17.7997 8.34593 18.3338 9.22554 18.6981C10.1052 19.0625 11.0479 19.25 12 19.25C13.9228 19.25 15.7669 18.4862 17.1265 17.1265C18.4862 15.7669 19.25 13.9228 19.25 12C19.25 10.0772 18.4862 8.23312 17.1265 6.87348C15.7669 5.51384 13.9228 4.75 12 4.75ZM3.25 12C3.25 9.67936 4.17187 7.45376 5.81282 5.81282C7.45376 4.17187 9.67936 3.25 12 3.25C14.3206 3.25 16.5462 4.17187 18.1872 5.81282C19.8281 7.45376 20.75 9.67936 20.75 12C20.75 14.3206 19.8281 16.5462 18.1872 18.1872C16.5462 19.8281 14.3206 20.75 12 20.75C9.67936 20.75 7.45376 19.8281 5.81282 18.1872C4.17187 16.5462 3.25 14.3206 3.25 12Z",fill:"#008710"}),(0,o.jsx)(r.Rect,{x:"12.75",y:"9",width:"2.25",height:"6",fill:"#008710"}),(0,o.jsx)(r.Rect,{x:"9",y:"9",width:"2.25",height:"6",fill:"#008710"})]})},96626(e,t,n){"use strict";n(56427),n(10790)},4416(e,t,n){"use strict";n(56427),n(10790)},67205(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsxs)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 10C12.5 11.3807 11.3807 12.5 10 12.5C8.61929 12.5 7.5 11.3807 7.5 10C7.5 8.61929 8.61929 7.5 10 7.5C11.3807 7.5 12.5 8.61929 12.5 10ZM14 10C14 12.2091 12.2091 14 10 14C7.79086 14 6 12.2091 6 10C6 7.79086 7.79086 6 10 6C12.2091 6 14 7.79086 14 10ZM16.75 21V19C16.75 17.4812 15.5188 16.25 14 16.25L6 16.25C4.48122 16.25 3.25 17.4812 3.25 19V21H4.75L4.75 19C4.75 18.3096 5.30964 17.75 6 17.75L14 17.75C14.6904 17.75 15.25 18.3096 15.25 19V21H16.75Z",fill:"currentColor"}),(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.976 16.3599C21.2507 14.5642 22.0001 12.3695 22.0001 9.99969C22.0001 7.63128 21.2515 5.43769 19.9782 3.64258L18.754 4.50967C19.8537 6.05996 20.5001 7.95434 20.5001 9.99969C20.5001 12.0464 19.8528 13.9419 18.7519 15.4928L19.976 16.3599ZM17.3357 14.4897C18.2357 13.222 18.7648 11.6727 18.7648 9.99969C18.7648 8.32808 18.2365 6.77984 17.3379 5.51279L16.1137 6.37988C16.8387 7.4021 17.2648 8.65114 17.2648 9.99969C17.2648 11.3496 16.8378 12.5998 16.1116 13.6226L17.3357 14.4897Z",fill:"currentColor"})]})},96865(e,t,n){"use strict";n.d(t,{A4:()=>f.A4,AK:()=>h.AK,AZ:()=>m.AZ,DD:()=>f.DD,DT:()=>f.DT,E0:()=>c.A,FC:()=>h.FC,Fs:()=>g.Fs,Gm:()=>f.Gm,HL:()=>h.HL,HM:()=>f.HM,Hb:()=>h.Hb,JR:()=>f.JR,K2:()=>f.K2,L9:()=>m.L9,MB:()=>g.MB,N0:()=>h.N0,ON:()=>o.A,OO:()=>g.OO,Or:()=>m.Or,QA:()=>h.QA,Qr:()=>p.Qr,R0:()=>r.A,RD:()=>h.RD,Rq:()=>f.Rq,Su:()=>g.Su,Tg:()=>b.T,UA:()=>f.UA,UD:()=>f.UD,Vo:()=>p.Vo,Yj:()=>h.Yj,Zo:()=>g.Zo,_E:()=>g.Hh,_G:()=>g._G,be:()=>i.A,br:()=>f.br,cT:()=>m.cT,cj:()=>p.cj,d5:()=>f.d5,dh:()=>d.A,eJ:()=>f.eJ,fD:()=>f.fD,im:()=>f.im,in:()=>g.in,m2:()=>h.m2,mA:()=>m.mA,mI:()=>f.mI,mT:()=>f.mT,ni:()=>p.ni,o2:()=>a.Ay,oZ:()=>f.oZ,pE:()=>f.pE,rh:()=>g.rh,rr:()=>u.A,sn:()=>f.sn,so:()=>f.so,u0:()=>f.u0,uH:()=>m.uH,uQ:()=>f.uQ,ud:()=>m.ud,vE:()=>f.vE,xA:()=>l.A,yM:()=>s.A,yQ:()=>f.yQ,yV:()=>h.yV,yy:()=>f.yy,z3:()=>h.z3});n(51391),n(53664),n(87286);var r=n(31439),o=(n(57745),n(42694)),s=n(72448),a=n(46219),i=n(96657),c=n(7804),l=n(97784),u=n(66859),d=(n(62614),n(71508)),p=n(91396),h=n(27802),m=(n(13965),n(78836)),g=n(72586),f=n(43984),b=n(23101)},51391(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(97999),o=n(10067),s=n.n(o),a=n(48931);const i=s()("jetpack-ai-client:jwt"),c="jetpack-ai-jwt";async function l({apiNonce:e,siteId:t,expirationTime:n}={}){e=e||window.JP_CONNECTION_INITIAL_STATE.apiNonce,t=t||window.JP_CONNECTION_INITIAL_STATE.siteSuffix,n=n||12e4;const o=localStorage.getItem(c);let s,l=null;if(o)try{l=JSON.parse(o)}catch(e){i("Error parsing token",e)}if(l&&l?.expire>Date.now())return i("Using cached token"),l;const u=(0,r.isSimpleSite)();s=u?await(0,a.A)({path:"/wpcom/v2/sites/"+t+"/jetpack-openai-query/jwt",method:"POST"}):await(0,a.A)({path:"/jetpack/v4/jetpack-ai-jwt?_cacheBuster="+Date.now(),credentials:"same-origin",headers:{"X-WP-Nonce":e},method:"POST"});const d={token:s.token,blogId:u?t:s.blog_id,expire:Date.now()+n};return i("Storing new token"),localStorage.setItem(c,JSON.stringify(d)),d}},20231(e,t,n){"use strict";n.d(t,{_:()=>o});var r=n(47143);const o=()=>{const e=(0,r.select)("core/block-editor").getBlocks(),t=[],n=e=>{t.push(e),e.innerBlocks?.length&&e.innerBlocks.forEach(n)};return e.forEach(n),t}},40464(e,t,n){"use strict";n.d(t,{Z:()=>r});const r=async e=>{try{const t=await fetch(e),n=await t.arrayBuffer();return`data:image/png;base64,${btoa(new Uint8Array(n).reduce((e,t)=>e+String.fromCharCode(t),""))}`}catch{return e}}},72586(e,t,n){"use strict";n.d(t,{Fs:()=>a.F,Hh:()=>r.Hh,MB:()=>o.M,OO:()=>r.OO,Su:()=>r.Su,Zo:()=>c.Z,_G:()=>i._,in:()=>s.i,rh:()=>r.rh});var r=n(55166),o=n(84861),s=n(61269),a=n(1811),i=n(20231),c=n(40464)},84861(e,t,n){"use strict";n.d(t,{M:()=>o});var r=n(43984);function o(e,t={}){const{language:n,tone:o}=t,s=n?.split(" (")[0];switch(e){case r.Gm:return`${r.u0}: ${r.so[s].label}`;case r.eJ:return`${r.uQ}: ${r.oZ[o].label}`;case r.yy:return r.DD;case r.A4:return r.HM;case r.UA:return r.JR;case r.br:return r.K2;case r.fD:return r.UD;case r.d5:return r.mI;case r.fv:return r.yQ;case r.vE:return r.mT;case r.im:return r.Rq;case r.sn:return r.DT;default:return null}}},68641(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(21147);const o={paragraph:e=>e.replaceAll("\n","<br />")},s={emDelimiter:"_",headingStyle:"atx"},a={strikethrough:{filter:["del","s"],replacement:function(e){return"~~"+e+"~~"}}};class i{turndownService;fixes;constructor({options:e={},rules:t={},keep:n=[],remove:o=[],fixes:i=[]}={}){this.fixes=i,this.turndownService=new r.A({...s,...e}),this.turndownService.keep(n),this.turndownService.remove(o);const c={...a,...t};for(const e in c)this.turndownService.addRule(e,c[e])}render({content:e}){const t=this.turndownService.turndown(e);return this.fixes.reduce((e,t)=>o[t](e),t)}}},55166(e,t,n){"use strict";n.d(t,{Hh:()=>i,OO:()=>r.A,Su:()=>o.S,rh:()=>c});var r=n(68641),o=n(31737);const s=new o.A,a=new r.A,i=({content:e,rules:t,extension:n})=>s.render({content:e,rules:t,extension:n}),c=({content:e})=>a.render({content:e})},31737(e,t,n){"use strict";n.d(t,{A:()=>c,S:()=>s});var r=n(97158);const o=e=>e.replaceAll("\x3c!-- wp:list-item --\x3e","").replaceAll("\x3c!-- /wp:list-item --\x3e","").replaceAll("\x3c!-- wp:list --\x3e","").replaceAll("\x3c!-- /wp:list --\x3e","").replaceAll("<li>","\x3c!-- wp:list-item --\x3e<li>").replaceAll("</li>","</li>\x3c!-- /wp:list-item --\x3e").replaceAll("<ol>",'\x3c!-- wp:list {"ordered":true} --\x3e<ol>').replaceAll("</ol>","</ol>\x3c!-- /wp:list --\x3e").replaceAll("<ul>","\x3c!-- wp:list --\x3e<ul>").replaceAll("</ul>","</ul>\x3c!-- /wp:list --\x3e"),s={list:(e,t=!1)=>{const n=e.replace(/<li>\s+<p>/g,"<li>").replace(/<\/p>\s+<\/li>/g,"</li>");return t?o(n):n},listItem:(e,t=!1)=>t?o(e.replace(/^<[ou]l>\s*/g,"").replace(/\s*<\/[ou]l>\s*$/g,"")):e,paragraph:(e,t=!1)=>t?e.split("<br />").map((e,t,n)=>(t<n.length-1&&(e=e.trimEnd()),t>0&&(e=e.trimStart()),e)).join("<br />"):e,table:(e,t=!1,{hasFixedLayout:n=!1})=>t?e.startsWith("\x3c!-- wp:table")?e:`\x3c!-- wp:table { "hasFixedLayout":${n?"true":"false"} } --\x3e${e}\x3c!-- /wp:table --\x3e`:e},a={breaks:!0},i=["list"];class c{markdownConverter;constructor(e=a){this.markdownConverter=new r.A(e)}render({content:e,rules:t=i,extension:n=!1}){const r=this.markdownConverter.render(e);return t.reduce((e,t)=>s[t](e,n),r)}}},61269(e,t,n){"use strict";n.d(t,{i:()=>s});var r=n(94715),o=n(47143);function s(e){if(!e)return;const{selectBlock:t}=(0,o.dispatch)(r.store),{enableComplementaryArea:n}=(0,o.dispatch)("core/interface");t(e),n("core/edit-post","edit-post/block")}},1811(e,t,n){"use strict";n.d(t,{F:()=>o});var r=n(47143);const o=async()=>{const{clearSelectedBlock:e}=(0,r.dispatch)("core/block-editor"),{enableComplementaryArea:t}=(0,r.dispatch)("core/interface");e(),await t("core/edit-post","jetpack-sidebar/jetpack");const n=document.querySelector(".jetpack-ai-assistant-panel"),o=n?.classList.contains("is-opened"),s=n?.querySelector("h2 button");o&&s?.click(),setTimeout(()=>{s?.click()},50)}},21902(e,t,n){"use strict";n.d(t,{A:()=>o});n(33829);var r=n(10790);const o=()=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon",children:[(0,r.jsx)("path",{d:"M6.99976 3.99994L7.84828 6.15141L9.99976 6.99994L7.84828 7.84847L6.99976 9.99994L6.15123 7.84847L3.99976 6.99994L6.15123 6.15141L6.99976 3.99994Z"}),(0,r.jsx)("path",{d:"M16 4L17.1314 6.86863L20 8L17.1314 9.13137L16 12L14.8686 9.13137L12 8L14.8686 6.86863L16 4Z"}),(0,r.jsx)("path",{d:"M11 10L12.4142 13.5858L16 15L12.4142 16.4142L11 20L9.58579 16.4142L6 15L9.58579 13.5858L11 10Z"})]});n.dn(o)},11574(e,t,n){"use strict";n.d(t,{A:()=>o});n(33829);var r=n(10790);const o=()=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9291 7.96836L10.7308 17.6492L6.2145 14.2911L7.10952 13.0873L10.4221 15.5504L16.7253 7.07333L17.9291 7.96836Z"})});n.dn(o)},70002(e,t,n){"use strict";n.d(t,{A:()=>o});n(33829);var r=n(10790);const o=()=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.2927 13.7485C18.5014 17.0423 15.5366 19.4901 12 19.4901C8.92508 19.4901 6.28236 17.6396 5.12469 14.9915L8.79556 12.8139L12.2508 14.0309C12.482 14.1123 12.7383 14.0756 12.9374 13.9327L15.8243 11.8601L15.9039 11.8992C16.1998 12.0451 16.6072 12.249 17.0533 12.4807C17.8331 12.8857 18.6946 13.3572 19.2927 13.7485ZM19.499 12.1129C18.9341 11.7788 18.3001 11.4379 17.7447 11.1495C17.287 10.9118 16.8698 10.7031 16.5672 10.5539C16.4158 10.4792 16.2928 10.4193 16.2074 10.378L16.1085 10.3303L16.0824 10.3177L16.0729 10.3132C15.8261 10.1954 15.5347 10.2214 15.3126 10.3809L12.3802 12.4861L8.9634 11.2827C8.75395 11.2089 8.52258 11.2318 8.3316 11.3451L4.65716 13.5248C4.55414 13.0294 4.5 12.5161 4.5 11.9901C4.5 7.84798 7.85786 4.49011 12 4.49011C16.1421 4.49011 19.5 7.84798 19.5 11.9901C19.5 12.0311 19.4997 12.072 19.499 12.1129ZM21 11.9901C21 16.9607 16.9706 20.9901 12 20.9901C7.02944 20.9901 3 16.9607 3 11.9901C3 7.01955 7.02944 2.99011 12 2.99011C16.9706 2.99011 21 7.01955 21 11.9901Z"})});n.dn(o)},97034(e,t,n){"use strict";n.d(t,{A:()=>o});n(33829);var r=n(10790);const o=()=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-ai-logo-generator-icon",children:[(0,r.jsx)("path",{d:"M7 6.49011L11 8.99011L7 11.4901V6.49011Z"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2.99011C3.89543 2.99011 3 3.88554 3 4.99011V18.9901C3 20.0947 3.89543 20.9901 5 20.9901H19C20.1046 20.9901 21 20.0947 21 18.9901V4.99011C21 3.88554 20.1046 2.99011 19 2.99011H5ZM19 4.49011H5C4.72386 4.49011 4.5 4.71397 4.5 4.99011V15.6973L8.12953 13.0508C8.38061 12.8677 8.71858 12.8584 8.97934 13.0274L11.906 14.9243L15.4772 11.4524C15.7683 11.1694 16.2317 11.1694 16.5228 11.4524L19.5 14.3469V4.99011C19.5 4.71397 19.2761 4.49011 19 4.49011ZM4.5 18.9901V17.5537L8.59643 14.5667L11.5921 16.5084C11.8857 16.6987 12.2719 16.6607 12.5228 16.4167L16 13.0361L19.4772 16.4167L19.5 16.3933V18.9901C19.5 19.2663 19.2761 19.4901 19 19.4901H5C4.72386 19.4901 4.5 19.2663 4.5 18.9901Z"})]});n.dn(o)},6019(e,t,n){"use strict";n.d(t,{Q:()=>a});var r=n(56427),o=n(78867),s=n(10790);const a=({variant:e="error"})=>{const t=(0,o.A)();return"muted"===e?(0,s.jsx)("span",{className:"jetpack-ai-fair-usage-notice-muted-variant",children:t}):"error"===e?(0,s.jsx)(r.Notice,{status:"error",isDismissible:!1,className:"jetpack-ai-fair-usage-notice",children:t}):null}},95933(e,t,n){"use strict";n.d(t,{x:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__,a=({onCancel:e,onRetry:t})=>{const n=__("We are sorry. There was an error loading your Jetpack AI plan data. Please, try again.","jetpack"),o=__("We are sorry. There was an error loading your Jetpack AI plan data. Please, reload the page and try again.","jetpack");return(0,s.jsxs)("div",{className:"jetpack-ai-logo-generator-modal__notice-message-wrapper",children:[(0,s.jsx)("div",{className:"jetpack-ai-logo-generator-modal__notice-message",children:(0,s.jsx)("span",{className:"jetpack-ai-logo-generator-modal__loading-message",children:t?n:o})}),(0,s.jsxs)("div",{className:"jetpack-ai-logo-generator-modal__notice-actions",children:[(0,s.jsx)(r.Button,{variant:"tertiary",onClick:e,children:__("Cancel","jetpack")}),t&&(0,s.jsx)(r.Button,{variant:"primary",onClick:t,children:__("Try again","jetpack")})]})]})}},76194(e,t,n){"use strict";n.d(t,{N:()=>a});var r=n(27723),o=n(42669),s=(n(55307),n(10790));const __=r.__,a=({state:e="loadingFeature"})=>{const t=__("Loading…","jetpack"),n=__("Analyzing your site to create the perfect logo…","jetpack"),r=__("Generating logo…","jetpack");return(0,s.jsxs)("div",{className:"jetpack-ai-logo-generator-modal__loading-wrapper",children:[(0,s.jsx)(o.$,{}),(0,s.jsxs)("span",{className:"jetpack-ai-logo-generator-modal__loading-message",children:["loadingFeature"===e&&t,"analyzing"===e&&n,"generating"===e&&r]})]})}},64537(e,t,n){"use strict";n.d(t,{T:()=>S});var r=n(85985),o=n(56427),s=n(47143),a=n(27723),i=n(13022),c=n(10067),l=n.n(c),u=n(51609),d=n(46381),p=n(61356),h=n(60674),m=n(88725),g=n(44461),f=n(19362),b=n(74423),v=n(95933),y=n(76194),k=n(32623),w=n(34706),x=n(11114),_=n(35421),j=n(48204),C=(n(68294),n(10790));const __=a.__,A=l()("jetpack-ai-calypso:generator-modal"),S=({isOpen:e,onClose:t,onApplyLogo:n,onReload:a=null,siteDetails:c,context:l,placement:S})=>{const{tracks:E}=(0,r.st)(),{recordEvent:T}=E,{setSiteDetails:N,fetchAiAssistantFeature:P,loadLogoHistory:B,setIsLoadingHistory:I}=(0,s.useDispatch)(b.E),{getIsRequestingAiAssistantFeature:M}=(0,s.select)(b.E),[R,L]=(0,u.useState)(null),[D,F]=(0,u.useState)(),O=(0,u.useRef)(!0),z=(0,u.useRef)(!1),[U,H]=(0,u.useState)(!1),[$,V]=(0,u.useState)(!1),{selectedLogo:q,getAiAssistantFeature:G,generateFirstPrompt:W,generateLogo:Z,setContext:J,tierPlansEnabled:K,site:Y,requireUpgrade:Q}=(0,m.A)(),{featureFetchError:X,setFeatureFetchError:ee,firstLogoPromptFetchError:te,clearErrors:ne}=(0,g.A)(),re=c?.ID,[oe,se]=(0,u.useState)(!1),{nextTierCheckoutURL:ae}=(0,h.Q)(),ie=G(),ce=(0,u.useCallback)(async()=>{try{L("analyzing"),T(p.vm,{context:l,tool:"first-prompt"});const e=await W();F(e),L("generating"),await Z({prompt:e,style:"none"}),L(null)}catch(e){A("Error generating first logo",e),L(null)}},[l,W,Z]),le=(0,u.useCallback)(async()=>{try{if(!re)throw new Error("Site ID is missing");if(!ie?.featuresControl?.["logo-generator"]?.enabled)throw ee("Failed to fetch feature data"),new Error("Failed to fetch feature data");const e=!(0,f.NP)(String(re)),t=ie?.costs?.["jetpack-ai-logo-generator"]?.logo??p._S,n=1,r=ie?.currentTier?.limit||0,o=ie?.currentTier?.value||0,s=ie?.usagePeriod?.requestsCount||0,a=!(K?1===o:o>0)&&!!ie?.nextTier&&!e&&(K?r-s<t+n:r<s);if(H(0===o),V(a),0===o||a)return void L(null);if(I(!0),await(0,f.Pv)(String(re)),B(re),e)return L(null),void I(!1);if(Q)return L(null),void I(!1);Y&&Y.name&&Y.description&&Y.name!==__("Site Title","jetpack")?ce():(L(null),I(!1))}catch(e){A("Error fetching feature",e),L(null),I(!1)}},[ie,ce,B,f.Pv,f.NP,re,Q,ee]),ue=(0,u.useCallback)(async()=>{J(l),T(p.iz,{context:l,placement:S}),le()},[J,l,S,le]),de=()=>{O.current=!0,t(),L(null),H(!1),V(!1),ne(),se(!1),I(!1),T(p.ub,{context:l,placement:S})},pe=(0,u.useCallback)(()=>{a&&(de(),z.current=!1,a())},[a,de]),he=e=>{se(!0),n?.(e)},me=()=>{T(p.$i,{context:l})};let ge;return(0,u.useEffect)(()=>{if(re&&N(c),!z.current){M()||(z.current=!0,P())}},[re,c,N,M]),(0,u.useEffect)(()=>{e&&O.current&&(O.current=!1,ue())},[e,ue]),ge=R?(0,C.jsx)(y.N,{state:R}):X||te?(0,C.jsx)(v.x,{onCancel:de,onRetry:a?pe:null}):U||$?(0,C.jsx)(_.R,{onCancel:de,upgradeURL:ae,reason:U?"feature":"requests"}):(0,C.jsxs)(C.Fragment,{children:[!oe&&(0,C.jsx)(x.X,{initialPrompt:D}),(0,C.jsx)(w.s,{logo:q,onApplyLogo:he,logoAccepted:oe,siteId:String(re)}),oe?(0,C.jsxs)("div",{className:"jetpack-ai-logo-generator__accept",children:[(0,C.jsx)(j.H,{}),(0,C.jsx)("div",{className:"jetpack-ai-logo-generator__accept-actions",children:(0,C.jsx)(o.Button,{variant:"primary",onClick:de,children:__("Close","jetpack")})})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(k.N,{}),(0,C.jsx)("div",{className:"jetpack-ai-logo-generator__footer",children:(0,C.jsx)(d.A,{onFeedbackClick:me})})]})]}),(0,C.jsx)(C.Fragment,{children:e&&(0,C.jsx)(o.Modal,{className:"jetpack-ai-logo-generator-modal",onRequestClose:de,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,title:__("Jetpack AI Logo Generator","jetpack"),children:(0,C.jsx)("div",{className:(0,i.A)("jetpack-ai-logo-generator-modal__body",{"notice-modal":U||$||X||te}),children:ge})})})}},32623(e,t,n){"use strict";n.d(t,{N:()=>u});var r=n(85985),o=n(56427),s=n(13022),a=n(26076),i=n(61356),c=n(88725),l=(n(29900),n(10790));const u=()=>{const{tracks:e}=(0,r.st)(),{recordEvent:t}=e,{logos:n,selectedLogo:u,setSelectedLogoIndex:d,context:p,isLoadingHistory:h}=(0,c.A)(),m=e=>{const t=new URL(e);return t.searchParams.has("resize")||t.searchParams.append("resize","48,48"),t.toString()};return(0,l.jsxs)("div",{className:"jetpack-ai-logo-generator__carousel",children:[!n.length&&h&&(0,l.jsx)(o.Button,{disabled:!0,className:(0,s.A)("jetpack-ai-logo-generator__carousel-logo"),children:(0,l.jsx)("img",{height:"48",width:"48",src:a,alt:"loading"})}),!n.length&&!h&&(0,l.jsx)("div",{children:" "}),n.map((e,r)=>(0,l.jsx)(o.Button,{className:(0,s.A)("jetpack-ai-logo-generator__carousel-logo",{"is-selected":e.url===u.url}),onClick:()=>(e=>{t(i.Nt,{context:p,logos_count:n.length,selected_logo:e+1}),d(e)})(r),children:(0,l.jsx)("img",{src:m(e.url),alt:e.description})},e.url))]})}},42669(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(13022),o=n(26076),s=n(10790);const a=({className:e=null})=>(0,s.jsx)("img",{src:o,alt:"Loading",className:(0,r.A)("jetpack-ai-logo-generator-modal__loader",e)})},34706(e,t,n){"use strict";n.d(t,{s:()=>T});var r=n(85985),o=n(56427),s=n(47143),a=n(27723),i=n(10067),c=n.n(i),l=n(11497),u=n(11574),d=n(70002),p=n(97034),h=n(61356),m=n(88725),g=n(44461),f=n(19362),b=n(74423),v=n(42669),y=(n(8243),n(10790));const __=a.__,_x=a._x,k=c()("jetpack-ai-calypso:logo-presenter"),w=({siteId:e})=>{const{tracks:t}=(0,r.st)(),{recordEvent:n}=t,{saveLogo:a,selectedLogo:i,isSavingLogoToLibrary:c,logos:l,selectedLogoIndex:d,context:g}=(0,m.A)(),v=!!i?.mediaId,{loadLogoHistory:w}=(0,s.useDispatch)(b.E),x=_x("Saving…","Logo save button","jetpack"),_=__("Saved","jetpack");return c||v?(0,y.jsxs)(o.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",children:[(0,y.jsx)(o.Icon,{icon:c?(0,y.jsx)(p.A,{}):(0,y.jsx)(u.A,{})}),(0,y.jsx)("span",{className:"action-text",children:c?x:_})]}):(0,y.jsxs)(o.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",onClick:async()=>{if(!v&&!c){n(h.h4,{context:g,logos_count:l.length,selected_logo:d?d+1:0});try{const t=await a(i);(0,f.H)({siteId:e,url:i.url,newUrl:t.mediaURL,mediaId:t.mediaId}),w(e)}catch(e){k("Error saving logo",e)}}},children:[(0,y.jsx)(o.Icon,{icon:(0,y.jsx)(p.A,{})}),(0,y.jsx)("span",{className:"action-text",children:__("Save in Library","jetpack")})]})},x=({onApplyLogo:e})=>{const{tracks:t}=(0,r.st)(),{recordEvent:n}=t,{isSavingLogoToLibrary:s,selectedLogo:a,logos:i,selectedLogoIndex:c,context:l}=(0,m.A)();return(0,y.jsxs)(o.Button,{className:"jetpack-ai-logo-generator-modal-presenter__action",onClick:async()=>{s||(n(h.Zb,{context:l,logos_count:i.length,selected_logo:null!=c?c+1:0}),e?.(a?.mediaId))},disabled:s||!a?.mediaId,variant:"secondary",children:[(0,y.jsx)(o.Icon,{icon:(0,y.jsx)(d.A,{})}),(0,y.jsx)("span",{className:"action-text",children:__("Use on block","jetpack")})]})},_=()=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.$,{className:"jetpack-ai-logo-generator-modal-presenter__logo"}),(0,y.jsx)("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text",children:__("Generating new logo…","jetpack")})]}),j=()=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.$,{className:"jetpack-ai-logo-generator-modal-presenter__logo"}),(0,y.jsx)("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text",children:__("Fetching previous logos…","jetpack")})]}),C=()=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{width:0,height:"229px"}}),(0,y.jsx)("span",{className:"jetpack-ai-logo-generator-modal-presenter__loading-text",children:__("Once you generate a logo, it will show up here","jetpack")})]}),A=({disabled:e,ratedItem:t,onRate:n})=>{const{logos:r,selectedLogo:o}=(0,m.A)(),s=r.filter(e=>e.rating).reduce((e,t)=>(e[t.url]=t.rating,e),{});return(0,y.jsx)(l.A,{disabled:e,ratedItem:t,feature:"logo-generator",savedRatings:s,options:{mediaLibraryId:o.mediaId,prompt:o.description},onRate:n})},S=({siteId:e,logo:t,onApplyLogo:n})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{src:t.url,alt:t.description,className:"jetpack-ai-logo-generator-modal-presenter__logo"}),(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator-modal-presenter__action-wrapper",children:[(0,y.jsx)("span",{className:"jetpack-ai-logo-generator-modal-presenter__description",children:t.description}),(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator-modal-presenter__actions",children:[(0,y.jsx)(w,{siteId:e}),(0,y.jsx)(x,{onApplyLogo:n}),(0,y.jsx)(A,{ratedItem:t.url,disabled:!1,onRate:n=>{(0,f.H)({siteId:e,url:t.url,newUrl:t.url,mediaId:t.mediaId,rating:n})}})]})]})]}),E=({logo:e})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{src:e.url,alt:e.description,className:"jetpack-ai-logo-generator-modal-presenter__logo"}),(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator-modal-presenter__success-wrapper",children:[(0,y.jsx)(o.Icon,{icon:(0,y.jsx)(u.A,{})}),(0,y.jsx)("span",{children:__("Your new logo was set to the block!","jetpack")})]})]}),T=({logo:e=null,loading:t=!1,onApplyLogo:n,logoAccepted:r=!1,siteId:o})=>{const{isRequestingImage:s}=(0,m.A)(),{saveToLibraryError:a,logoUpdateError:i}=(0,g.A)();let c;return e||s?e?c=t||s?(0,y.jsx)(_,{}):r?(0,y.jsx)(E,{logo:e}):(0,y.jsx)(S,{siteId:String(o),logo:e,onApplyLogo:n}):(k("No logo provided, history still loading or logo being generated"),c=(0,y.jsx)(j,{})):c=(0,y.jsx)(C,{}),(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator-modal-presenter__wrapper",children:[(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator-modal-presenter",children:[(0,y.jsx)("div",{className:"jetpack-ai-logo-generator-modal-presenter__content",children:c}),!r&&(0,y.jsx)("div",{className:"jetpack-ai-logo-generator-modal-presenter__rectangle"})]}),a&&(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error saving the logo to your library. Please try again.","jetpack")}),i&&(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error applying the logo to your site. Please try again.","jetpack")})]})}},11114(e,t,n){"use strict";n.d(t,{K:()=>w,X:()=>x});var r=n(85985),o=n(56427),s=n(27723),a=n(13109),i=n(28847),c=n(10067),l=n.n(c),u=n(51609),d=n(66223),p=n(21902),h=n(61356),m=n(60674),g=n(88725),f=n(44461),b=n(6019),v=n(64024),y=(n(76391),n(10790));const __=s.__,k=l()("jetpack-ai-calypso:prompt-box"),w=({prompt:e="",setPrompt:t=()=>{},disabled:n=!1,actionDisabled:r=!1,generateHandler:s=()=>{},placeholder:a="",buttonLabel:i=""})=>{const c=(0,u.useRef)(null);(0,u.useEffect)(()=>{c.current&&c.current.textContent!==e&&(c.current.textContent=e)},[e]);return(0,y.jsxs)("div",{className:"jetpack-ai-image-generator__prompt-query",children:[(0,y.jsx)("div",{role:"textbox",tabIndex:0,ref:c,contentEditable:!n,suppressContentEditableWarning:!0,className:"prompt-query__input",onInput:e=>{t(e.target.textContent||"")},onPaste:e=>{e.preventDefault();const n=e.currentTarget.ownerDocument.getSelection();if(!n||!n.rangeCount)return;const r=e.clipboardData.getData("text/plain");n.deleteFromDocument();n.getRangeAt(0).insertNode(document.createTextNode(r)),n.collapseToEnd(),t(c.current?.textContent||"")},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),s()),e.stopPropagation()},onKeyUp:()=>{""===c.current?.textContent&&(c.current.innerHTML="")},"data-placeholder":a}),(0,y.jsx)(o.Button,{variant:"primary",className:"jetpack-ai-image-generator__prompt-submit",onClick:s,disabled:r,children:i||__("Generate","jetpack")})]})},x=({initialPrompt:e=""})=>{const{tracks:t}=(0,r.st)(),{recordEvent:n}=t,[c,l]=(0,u.useState)(e),[x,_]=(0,u.useState)(0),{enhancePromptFetchError:j,logoFetchError:C}=(0,f.A)(),{nextTierCheckoutURL:A,hasNextTier:S}=(0,m.Q)(),E=c?.length>=h.N3,[T,N]=(0,u.useState)(!1),[P,B]=(0,u.useState)(null),[I,M]=(0,u.useState)([]),{generateLogo:R,enhancePrompt:L,setIsEnhancingPrompt:D,isBusy:F,isEnhancingPrompt:O,site:z,getAiAssistantFeature:U,requireUpgrade:H,context:$,tierPlansEnabled:V,imageStyles:q,guessStyle:G}=(0,g.A)(),W=__("Enhancing…","jetpack"),Z=__("Enhance prompt","jetpack"),J=O?W:Z,K=(0,u.useRef)(null),Y=(0,u.useCallback)(async()=>{k("Enhancing prompt",c),D(!0),n(h.vm,{context:$,tool:"enhance-prompt"});try{const e=await L({prompt:c});l(e),D(!1)}catch(e){k("Error enhancing prompt",e),D(!1)}},[$,L,c,D]),Q=U(String(z?.id||"")),X=Q?.currentTier?.value||0,ee=Q?.usagePeriod?.requestsCount||0,te=1===X;(0,u.useEffect)(()=>{_(X-ee<=0?0:X-ee)},[X,ee]),(0,u.useEffect)(()=>{K.current&&K.current.textContent!==c&&(K.current.textContent=c)},[c]),(0,u.useEffect)(()=>{q&&q.length>0?(M([q.find(({value:e})=>e===d.Hu),q.find(({value:e})=>e===d.Wp),...q.filter(({value:e})=>![d.Hu,d.Wp].includes(e))].filter(e=>e)),N(!0),B(d.Hu)):(M([]),N(!1),B(null))},[q]);const ne=(0,u.useCallback)(async()=>{if(k($),P===d.Wp){D(!0),n(h.Tk,{context:$,tool:"image"});const e=await G(c)||d.Hu;B(e),n(h.vm,{context:$,tool:"image",style:e}),D(!1),R({prompt:c,style:e})}else n(h.vm,{context:$,tool:"image",style:P}),R({prompt:c,style:P})},[$,R,c,P]),re=(0,u.useCallback)(e=>{k("change style",e),B(e),n(h.UO,{context:$,style:e})},[$,B,n]);return(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt",children:[(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-header",children:[(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-label",children:__("Describe your site:","jetpack")}),(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-actions",children:(0,y.jsxs)(o.Button,{variant:"link",disabled:F||H||!E,onClick:Y,children:[(0,y.jsx)(p.A,{}),J]})}),T&&(0,y.jsx)(o.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:P,options:I,onChange:re,disabled:F||H})]}),(0,y.jsx)(w,{prompt:c,setPrompt:l,generateHandler:ne,disabled:F||H,actionDisabled:F||H||!E,placeholder:__("Describe your site or simply ask for a logo specifying some details about it","jetpack")}),(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-footer",children:[!te&&!H&&(0,y.jsxs)("div",{className:"jetpack-ai-logo-generator__prompt-requests",children:[(0,y.jsx)("div",{children:(0,s.sprintf)( | |
| 18 | +// translators: %d is the number of requests | |
| 19 | +__("%d requests remaining.","jetpack"),x)}),S&&(0,y.jsxs)(y.Fragment,{children:[" ",(0,y.jsx)(o.Button,{variant:"link",href:A,target:"_blank",onClick:()=>{n(h.AN,{context:$,placement:h.Cn})},children:(0,y.jsx)("span",{children:__("Upgrade","jetpack")})})]})," ",(0,y.jsx)(o.Tooltip,{text:__("Logo generation costs 10 requests; prompt enhancement costs 1 request each","jetpack"),placement:"bottom",children:(0,y.jsx)(a.A,{className:"prompt-footer__icon",icon:i.A})})]}),H&&V&&(0,y.jsx)(v.G,{}),H&&!V&&(0,y.jsx)(b.Q,{}),j&&(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error enhancing prompt. Please try again.","jetpack")}),C&&(0,y.jsx)("div",{className:"jetpack-ai-logo-generator__prompt-error",children:__("Error generating logo. Please try again.","jetpack")})]})]})}},64024(e,t,n){"use strict";n.d(t,{G:()=>h});var r=n(85985),o=n(56427),s=n(86087),a=n(27723),i=n(13109),c=n(84699),l=n(61356),u=n(60674),d=n(88725),p=(n(94089),n(10790));const __=a.__,h=()=>{const{tracks:e}=(0,r.st)(),{recordEvent:t}=e,n=__("Upgrade","jetpack"),a=(0,s.createInterpolateElement)(__("Not enough requests left to generate a logo. <strong>Upgrade now to increase it.</strong>","jetpack"),{strong:(0,p.jsx)("strong",{})}),{nextTierCheckoutURL:h}=(0,u.Q)(),{context:m}=(0,d.A)();return(0,p.jsx)("div",{className:"jetpack-upgrade-plan-banner",children:(0,p.jsxs)("div",{className:"jetpack-upgrade-plan-banner__wrapper",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(i.A,{className:"jetpack-upgrade-plan-banner__icon",icon:c.A}),(0,p.jsx)("span",{className:"jetpack-upgrade-plan-banner__banner-description",children:a})]}),(0,p.jsx)(o.Button,{href:h,target:"_blank",className:"is-primary",onClick:()=>{t(l.AN,{context:m,placement:l.tF})},children:(0,p.jsx)("span",{children:n})})]})})}},35421(e,t,n){"use strict";n.d(t,{R:()=>u});var r=n(3924),o=n(85985),s=n(56427),a=n(27723),i=n(61356),c=n(88725),l=n(10790);const __=a.__,u=({onCancel:e,upgradeURL:t,reason:n})=>{const{tracks:a}=(0,o.st)(),{recordEvent:u}=a,d=__("Upgrade your Jetpack AI for access to logo generation. This upgrade will also increase the amount of monthly requests you can use in for all AI-powered features.","jetpack"),p=__("Not enough requests left to generate a logo. Upgrade your Jetpack AI to increase the amount of requests you can use in all AI-powered features.","jetpack"),h=(0,r.A)("ai-logo-generator-fair-usage-policy",{anchor:"usage-limitations-and-upgrades"}),{context:m}=(0,c.A)();return(0,l.jsxs)("div",{className:"jetpack-ai-logo-generator-modal__notice-message-wrapper",children:[(0,l.jsxs)("div",{className:"jetpack-ai-logo-generator-modal__notice-message",children:[(0,l.jsx)("span",{className:"jetpack-ai-logo-generator-modal__loading-message",children:"feature"===n?d:p})," ",(0,l.jsx)(s.Button,{variant:"link",href:h,target:"_blank",children:(0,l.jsx)("span",{children:__("Learn more about Jetpack AI.","jetpack")})})]}),(0,l.jsxs)("div",{className:"jetpack-ai-logo-generator-modal__notice-actions",children:[(0,l.jsx)(s.Button,{variant:"tertiary",onClick:e,children:(0,l.jsx)("span",{children:__("Cancel","jetpack")})}),(0,l.jsx)(s.Button,{variant:"primary",href:t,target:"_blank",onClick:()=>{u(i.AN,{context:m,placement:i.Tz}),e()},children:(0,l.jsx)("span",{children:__("Upgrade","jetpack")})})]})]})}},48204(e,t,n){"use strict";n.d(t,{H:()=>l});var r=n(56427),o=n(27723),s=n(1866),a=n(13022),i=n(36791),c=(n(39769),n(10790));const __=o.__,l=({className:e=null,onVisitBlankTarget:t})=>(0,c.jsxs)("div",{className:(0,a.A)("jetpack-ai-logo-generator-modal-visit-site-banner",e),children:[(0,c.jsx)("div",{className:"jetpack-ai-logo-generator-modal-visit-site-banner__jetpack-logo",children:(0,c.jsx)("img",{src:i,alt:"Jetpack"})}),(0,c.jsxs)("div",{className:"jetpack-ai-logo-generator-modal-visit-site-banner__content",children:[(0,c.jsx)("strong",{children:__("Do you want to know all the amazing things you can do with Jetpack AI?","jetpack")}),(0,c.jsx)("span",{children:__("Generate and tweak content, create forms, get feedback and much more.","jetpack")}),(0,c.jsx)("div",{children:(0,c.jsxs)(r.Button,{variant:"link",href:"https://jetpack.com/redirect/?source=logo_generator_learn_more_about_jetpack_ai",target:"_blank",onClick:t||null,children:[(0,c.jsx)("span",{children:__("Learn more about Jetpack AI","jetpack")}),(0,c.jsx)(r.Icon,{icon:s.A,size:20})]})})]})]})},61356(e,t,n){"use strict";n.d(t,{$i:()=>l,AN:()=>u,Cn:()=>h,N3:()=>f,Nt:()=>c,Tk:()=>p,Tz:()=>m,UO:()=>d,Zb:()=>i,_S:()=>b,h4:()=>a,iz:()=>r,tF:()=>g,ub:()=>o,vm:()=>s});const r="jetpack_ai_logo_generator_modal_open",o="jetpack_ai_logo_generator_modal_close",s="jetpack_ai_logo_generator_generate",a="jetpack_ai_logo_generator_save",i="jetpack_ai_logo_generator_use",c="jetpack_ai_logo_generator_navigate",l="jetpack_ai_logo_generator_feedback",u="jetpack_ai_upgrade_button",d="jetpack_ai_logo_generator_switch_style",p="jetpack_ai_logo_generator_guess_style",h="input_footer",m="free_user_screen",g="upgrade_prompt",f=3,b=10},60674(e,t,n){"use strict";n.d(t,{Q:()=>i});var r=n(97999),o=n(85985),s=n(47143),a=n(74423);const i=()=>{const{nextTier:e,tierPlansEnabled:t}=(0,s.useSelect)(e=>{const t=e(a.E);return{nextTier:t.getAiAssistantFeature().nextTier,tierPlansEnabled:t.getAiAssistantFeature().tierPlansEnabled}},[]),n=!(0,r.isWpcomPlatformSite)(),i=n?"jetpack-ai-upgrade-url-for-jetpack-sites":"jetpack-ai-yearly-tier-upgrade-nudge",c=(0,o.GE)(),l=`https://wordpress.com/home/${c}`,u=new URL("https://jetpack.com/redirect/");u.searchParams.set("source",i),u.searchParams.set("site",c),u.searchParams.set("path",t?`jetpack_ai_yearly:-q-${e?.limit}`:"jetpack_ai_yearly"),n||u.searchParams.set("query",`redirect_to=${encodeURIComponent(l)}`);return{nextTierCheckoutURL:u.toString(),hasNextTier:!!e}}},78867(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(3924),o=n(47143),s=n(86087),a=n(27723),i=n(74423),c=n(10790);const __=a.__,l=()=>{const{usagePeriod:e}=(0,o.useSelect)(e=>({usagePeriod:e(i.E).getAiAssistantFeature().nextTier}),[]),t=(e=>{const t=__("You've reached this month's request limit, per our <link><span>fair usage policy</span></link>.","jetpack");if(!e)return t; | |
| 20 | +// Translators: %s is the date when the requests will reset. | |
| 21 | +const n=__("Requests will reset on %s.","jetpack");return`${t} ${(0,a.sprintf)(n,e)}`})((e=>{if(!e?.nextStart)return null;const t=new Date(e.nextStart);return t.toLocaleString("default",{month:"long"})+" "+t.getDate()})(e)),n=(0,r.A)("ai-logo-generator-fair-usage-policy",{anchor:"jetpack-ai-usage-limit"});return(0,s.createInterpolateElement)(t,{link:(0,c.jsx)("a",{href:n,target:"_blank",rel:"noreferrer"}),span:(0,c.jsx)("span",{})})}},88725(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(47143),o=n(10067),s=n.n(o),a=n(51609),i=n(31439),c=n(62614),l=n(93869),u=n(51391),d=n(19362),p=n(28229),h=n(74423),m=n(44461);const g=s()("jetpack-ai-calypso:use-logo-generator"),f=()=>{const{setSelectedLogoIndex:e,setIsSavingLogoToLibrary:t,setIsApplyingLogo:n,setIsRequestingImage:o,setIsEnhancingPrompt:s,increaseAiAssistantRequestsCount:f,addLogoToHistory:b,setContext:v,setIsLoadingHistory:y}=(0,r.useDispatch)(h.E),{logos:k,selectedLogoIndex:w,selectedLogo:x,siteDetails:_,isSavingLogoToLibrary:j,isApplyingLogo:C,isEnhancingPrompt:A,isBusy:S,isRequestingImage:E,getAiAssistantFeature:T,requireUpgrade:N,context:P,tierPlansEnabled:B,isLoadingHistory:I}=(0,r.useSelect)(e=>{const t=e(h.E);return{logos:t.getLogos(),selectedLogoIndex:t.getSelectedLogoIndex(),selectedLogo:t.getSelectedLogo(),siteDetails:t.getSiteDetails(),isSavingLogoToLibrary:t.getIsSavingLogoToLibrary(),isApplyingLogo:t.getIsApplyingLogo(),isRequestingImage:t.getIsRequestingImage(),isEnhancingPrompt:t.getIsEnhancingPrompt(),isBusy:t.getIsBusy(),getAiAssistantFeature:t.getAiAssistantFeature,requireUpgrade:t.getRequireUpgrade(),context:t.getContext(),tierPlansEnabled:t.getTierPlansEnabled(),isLoadingHistory:t.getIsLoadingHistory()}},[]),{setFirstLogoPromptFetchError:M,setEnhancePromptFetchError:R,setLogoFetchError:L,setSaveToLibraryError:D,setLogoUpdateError:F}=(0,m.A)(),{generateImageWithParameters:O}=(0,c.Ay)(),{saveToMediaLibrary:z}=(0,l.A)(),{ID:U=null,name:H=null,description:$=null}=_||{},V=U?String(U):null,q=T(V),G=q?.costs?.["jetpack-ai-logo-generator"]?.logo,W=q?.featuresControl?.["logo-generator"],Z=W?.styles||[],J=(0,a.useCallback)(async function(){M(null),f();try{const e=await(0,u.A)();if(!e||!e.token)throw new Error("No token provided");g("Generating first prompt for site");const t={question:`Generate a simple and short prompt asking for a logo based on the site's name and description, keeping the same language.\nExample for a site named "The minimalist fashion blog", described as "Daily inspiration for all things fashion": A logo for a minimalist fashion site focused on daily sartorial inspiration with a clean and modern aesthetic that is sleek and sophisticated.\nAnother example, now for a site called "El observatorio de aves", described as "Un sitio dedicado a nuestros compañeros y compañeras entusiastas de la observación de aves.": Un logo para un sitio web dedicado a la observación de aves, capturando la esencia de la naturaleza y la pasión por la avifauna en un diseño elegante y representativo, reflejando una estética natural y apasionada por la vida silvestre.\n\nSite name: ${H}\nSite description: ${$}`,feature:"jetpack-ai-logo-generator",stream:!1},n="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query",r={Authorization:`Bearer ${e.token}`,"Content-Type":"application/json"},o=await fetch(n,{method:"POST",headers:r,body:JSON.stringify(t)}).then(e=>e.json());return o?.choices?.[0]?.message?.content}catch(e){throw f(-1),M(e),e}},[M,f,H,$]),K=(0,a.useCallback)(async function(e){if(L(null),!Z||!Z.length)return null;const t=[{role:"jetpack-ai",context:{type:"ai-assistant-guess-logo-style",request:e,name:H,description:$}}];try{const e=await(0,i.A)(t,{feature:"jetpack-ai-logo-generator"});if(!e)return null;const n=Z.find(({value:t})=>t===e);return n?n.value:null}catch(e){g("Error guessing style",e),Promise.reject(e)}},[Z,H,$]),Y=(0,a.useCallback)(async function({prompt:e,style:t=null}){L(null);try{const n=await(0,u.A)();if(!n||!n.token)throw new Error("No token provided");if("auto"===t)throw new Error("Auto style is not supported");g("Generating image with prompt",e);const r={prompt:`I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS:\nCreate a single text-free iconic vector logo that symbolically represents the user request, using abstract or symbolic imagery.\nThe design should be modern, with either a vivid color scheme full of gradients or a color scheme that's monochromatic. Use any of those styles based on the user request mood.\nEnsure the logo is set against a clean solid background.\nEnsure the logo works in small sizes.\nThe imagery in the logo should subtly hint at the mood of the user request but DO NOT use any text, letters, or the name of the site on the imagery.\nThe image should contain a single icon, without variations, color palettes or different versions.\n\nUser request:${e}`,messages:t?[{role:"jetpack-ai",context:{type:"ai-assistant-generate-logo",request:e,name:H,description:$,style:t}}]:[],feature:"jetpack-ai-logo-generator",response_format:"b64_json",style:t||""};return await O(r)}catch(e){throw L(e),e}},[H,$]),Q=(0,a.useCallback)(async e=>{D(null);try{if(g("Saving logo for site"),e.mediaId)return{mediaId:e.mediaId,mediaURL:e.url};const n={mediaId:0,mediaURL:""};t(!0);const{id:r,url:o}=await z(e.url,"site-logo.png");return n.mediaId=parseInt(r),n.mediaURL=o,n}catch(e){throw D(e),e}finally{t(!1)}},[t,D]),X=(0,a.useCallback)(async()=>{F(null);try{if(!V||!x)throw new Error("Missing siteId or logo");g("Applying logo for site",V),n(!0);const{mediaId:e}=x;if(!e)throw new Error("Missing mediaId");await(0,p.Z)({siteId:V,imageId:String(e)})}catch(e){throw F(e),e}finally{n(!1)}},[x,n,F,V]),ee=(0,a.useCallback)(e=>{b(e),(0,d.hm)({...e,siteId:String(V)})},[V,b,d.hm]),te=(0,a.useCallback)(async function({prompt:e,style:t}){g("Generating logo for site"),o(!0);try{if(!G)throw new Error("Missing cost information");let n;f(G);try{if(n=await Y({prompt:e,style:t}),!n||!n.data.length)throw new Error("No image returned")}catch(e){throw f(-G),e}const r=n.data[0].revised_prompt||null,o={url:"data:image/png;base64,"+n.data[0].b64_json,description:e,revisedPrompt:r};try{const t=await Q(o);ee({url:t.mediaURL,description:e,mediaId:t.mediaId,revisedPrompt:r})}catch(e){throw ee(o),e}}finally{o(!1)}},[G,f,Q,ee,Y]);return{logos:k,selectedLogoIndex:w,selectedLogo:x,setSelectedLogoIndex:e,site:{id:V,name:H,description:$},generateFirstPrompt:J,saveLogo:Q,applyLogo:X,generateImage:Y,enhancePrompt:async function({prompt:e}){R(null),f();try{const t=await(0,u.A)();if(!t||!t.token)throw new Error("No token provided");g("Enhancing prompt",e);const n={messages:[{role:"system",content:"Enhance the prompt you receive.\nThe prompt is meant for generating a logo. Return the same prompt enhanced, and make each enhancement wrapped in brackets.\nDo not add any mention to text, letters, typography or the name of the site in the prompt.\nFor example: user's prompt: A logo for an ice cream shop. Returned prompt: A logo for an ice cream shop [that is pink] [and vibrant]."},{role:"user",content:e}],feature:"jetpack-ai-logo-generator",stream:!1},r="https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query",o={Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"},s=await fetch(r,{method:"POST",headers:o,body:JSON.stringify(n)}).then(e=>e.json());return s?.choices?.[0]?.message?.content}catch(e){throw f(-1),R(e),e}},storeLogo:ee,generateLogo:te,setIsEnhancingPrompt:s,setIsRequestingImage:o,setIsSavingLogoToLibrary:t,setIsApplyingLogo:n,setContext:v,isEnhancingPrompt:A,isRequestingImage:E,isSavingLogoToLibrary:j,isApplyingLogo:C,isBusy:S,getAiAssistantFeature:T,requireUpgrade:N,context:P,tierPlansEnabled:B,isLoadingHistory:I,setIsLoadingHistory:y,imageStyles:Z,guessStyle:K}}},44461(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(47143),o=n(74423);const s=()=>{const{setFeatureFetchError:e,setFirstLogoPromptFetchError:t,setEnhancePromptFetchError:n,setLogoFetchError:s,setSaveToLibraryError:a,setLogoUpdateError:i}=(0,r.useDispatch)(o.E),{featureFetchError:c,firstLogoPromptFetchError:l,enhancePromptFetchError:u,logoFetchError:d,saveToLibraryError:p,logoUpdateError:h}=(0,r.useSelect)(e=>{const t=e(o.E);return{featureFetchError:t.getFeatureFetchError(),firstLogoPromptFetchError:t.getFirstLogoPromptFetchError(),enhancePromptFetchError:t.getEnhancePromptFetchError(),logoFetchError:t.getLogoFetchError(),saveToLibraryError:t.getSaveToLibraryError(),logoUpdateError:t.getLogoUpdateError()}},[]);return{setFeatureFetchError:e,setFirstLogoPromptFetchError:t,setEnhancePromptFetchError:n,setLogoFetchError:s,setSaveToLibraryError:a,setLogoUpdateError:i,clearErrors:()=>{e(null),t(null),n(null),s(null),a(null),i(null)},featureFetchError:c,firstLogoPromptFetchError:l,enhancePromptFetchError:u,logoFetchError:d,saveToLibraryError:p,logoUpdateError:h}}},23101(e,t,n){"use strict";n.d(t,{K:()=>o.K,T:()=>r.T});var r=n(64537),o=n(11114)},19362(e,t,n){"use strict";n.d(t,{$t:()=>a,H:()=>s,NP:()=>i,Pv:()=>c,hm:()=>o});var r=n(13858);function o({siteId:e,url:t,description:n,mediaId:r,revisedPrompt:o}){const s=a(e),i={url:t,description:n,mediaId:r,revisedPrompt:o};return s.push(i),localStorage.setItem(`logo-history-${e}`,JSON.stringify(s.slice(-10))),i}function s({siteId:e,url:t,newUrl:n,mediaId:r,rating:o}){const s=a(e),i=s.findIndex(e=>e.url===t);return i>-1&&(s[i].url=n,s[i].mediaId=r,s[i].rating=o),localStorage.setItem(`logo-history-${e}`,JSON.stringify(s.slice(-10))),s[i]}function a(e){const t=localStorage.getItem(`logo-history-${e}`);let n=t?JSON.parse(t):[];return Array.isArray(n)||(n=[]),n=n.slice(-10),n=n.filter(e=>"object"==typeof e&&"string"==typeof e.url&&"string"==typeof e.description).map(e=>({url:e.url,description:e.description,mediaId:e.mediaId,rating:e.rating})),n}function i(e){return 0===a(e).length}async function c(e){const t=a(e).filter(({mediaId:e})=>void 0!==e).map(({mediaId:t})=>new Promise((n,o)=>{(0,r.T)({siteId:e,mediaId:t}).then(e=>n({mediaId:t,exists:e})).catch(e=>o(e))}));try{(await Promise.all(t)).filter(({exists:e})=>!e).forEach(({mediaId:t})=>function({siteId:e,mediaId:t}){const n=a(e),r=n.findIndex(e=>e.mediaId===t);-1!==r&&(n.splice(r,1),localStorage.setItem(`logo-history-${e}`,JSON.stringify(n)))}({siteId:e,mediaId:t}))}catch{}}},13858(e,t,n){"use strict";n.d(t,{T:()=>o});var r=n(48931);async function o({mediaId:e}){const t=Number(e);if(Number.isNaN(t))return!1;try{return await(0,r.A)({path:`/wp/v2/media/${Number(e)}`,method:"GET"}),!0}catch(e){const t=e?.data?.status;if(404===t)return!1;throw e}}},28229(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(22746);async function o({siteId:e,imageId:t}){const n={site_logo:t,site_icon:t};return(0,r.A)({path:`/sites/${String(e)}/settings`,apiVersion:"v2",apiNamespace:"wp/v2",body:n,query:"source=jetpack-ai",method:"POST"})}},22746(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(48931);let o=0;async function s(e){if(o+=1,o>5)throw o-=1,new Error("Too many requests");return(0,r.A)(e).finally(()=>{o-=1})}},9624(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(19362),o=n(22746),s=n(9938);const a={storeAiAssistantFeature:e=>({type:s.UU,feature:e}),fetchAiAssistantFeature:()=>async({dispatch:e})=>{e({type:s.ql});try{const t=await(0,o.A)({path:"/wpcom/v2/jetpack-ai/ai-assistant-feature",query:"force=wpcom"});if(t.data)throw new Error("Failed to fetch");e(a.storeAiAssistantFeature(function(e){return{hasFeature:!!e["has-feature"],isOverLimit:!!e["is-over-limit"],requestsCount:e["requests-count"],requestsLimit:e["requests-limit"],requireUpgrade:!!e["site-require-upgrade"],errorMessage:e["error-message"],errorCode:e["error-code"],upgradeType:e["upgrade-type"],usagePeriod:{currentStart:e["usage-period"]?.["current-start"],nextStart:e["usage-period"]?.["next-start"],requestsCount:e["usage-period"]?.["requests-count"]||0},currentTier:e["current-tier"],nextTier:e["next-tier"],tierPlansEnabled:!!e["tier-plans-enabled"],costs:e.costs,featuresControl:e["features-control"]}}(t)))}catch(t){e({type:s.Rx,error:t})}},increaseAiAssistantRequestsCount:(e=1)=>({dispatch:t})=>{t({type:s.Lg,count:e})},setAiAssistantFeatureRequireUpgrade:(e=!0)=>({type:s.Kt,requireUpgrade:e}),setTierPlansEnabled:(e=!0)=>({type:s.c1,tierPlansEnabled:e}),setSiteDetails:e=>({type:s.Bz,siteDetails:e}),setSelectedLogoIndex:e=>({type:s.BG,selectedLogoIndex:e}),addLogoToHistory:e=>({type:s.sG,logo:e}),setIsSavingLogoToLibrary:e=>({type:s.E6,isSavingLogoToLibrary:e}),setIsApplyingLogo:e=>({type:s.Ep,isApplyingLogo:e}),updateSelectedLogo:(e,t)=>({type:s.r_,mediaId:e,url:t}),setIsRequestingImage:e=>({type:s.vk,isRequestingImage:e}),setIsEnhancingPrompt:e=>({type:s.O5,isEnhancingPrompt:e}),loadLogoHistory(e){const t=(0,r.$t)(e);return{type:s.ZI,history:t}},setFeatureFetchError:e=>({type:s.Rx,error:e}),setFirstLogoPromptFetchError:e=>({type:s.MQ,error:e}),setEnhancePromptFetchError:e=>({type:s.gG,error:e}),setLogoFetchError:e=>({type:s.q_,error:e}),setSaveToLibraryError:e=>({type:s.x0,error:e}),setLogoUpdateError:e=>({type:s.FN,error:e}),setContext:e=>({type:s.kZ,context:e}),setIsLoadingHistory:e=>({type:s.hY,isLoadingHistory:e})},i=a},9938(e,t,n){"use strict";n.d(t,{BG:()=>h,Bz:()=>c,E6:()=>g,Ep:()=>f,FN:()=>S,GB:()=>l,Kt:()=>a,Lg:()=>s,MQ:()=>_,O5:()=>y,Rx:()=>x,UU:()=>r,ZI:()=>k,c1:()=>i,gG:()=>j,hY:()=>w,kZ:()=>p,mx:()=>d,nb:()=>u,q_:()=>C,ql:()=>o,r_:()=>b,sG:()=>m,vk:()=>v,x0:()=>A});const r="STORE_AI_ASSISTANT_FEATURE",o="REQUEST_AI_ASSISTANT_FEATURE",s="INCREASE_AI_ASSISTANT_REQUESTS_COUNT",a="SET_AI_ASSISTANT_FEATURE_REQUIRE_UPGRADE",i="SET_TIER_PLANS_ENABLED",c="SET_SITE_DETAILS",l=20,u=3e3,d=3,p="SET_CONTEXT",h="SET_SELECTED_LOGO_INDEX",m="ADD_LOGO_TO_HISTORY",g="SET_IS_SAVING_LOGO_TO_LIBRARY",f="SET_IS_APPLYING_LOGO",b="SAVE_SELECTED_LOGO",v="SET_IS_REQUESTING_IMAGE",y="SET_IS_ENHANCING_PROMPT",k="SET_SITE_HISTORY",w="SET_IS_LOADING_HISTORY",x="SET_FEATURE_FETCH_ERROR",_="SET_FIRST_LOGO_PROMPT_FETCH_ERROR",j="SET_ENHANCE_PROMPT_FETCH_ERROR",C="SET_LOGO_FETCH_ERROR",A="SET_SAVE_TO_LIBRARY_ERROR",S="SET_LOGO_UPDATE_ERROR"},74423(e,t,n){"use strict";n.d(t,{E:()=>i});var r=n(47143),o=n(9624),s=n(23695),a=n(80037);const i="jetpack-ai/logo-generator",c=(0,r.createReduxStore)(i,{__experimentalUseThunks:!0,actions:o.A,reducer:s.A,selectors:a.A});(0,r.register)(c)},94891(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(9938);const o={siteDetails:{},features:{aiAssistantFeature:{hasFeature:!0,isOverLimit:!1,requestsCount:0,requestsLimit:r.GB,requireUpgrade:!1,errorMessage:"",errorCode:"",upgradeType:"default",currentTier:{slug:"ai-assistant-tier-free",value:0,limit:20},usagePeriod:{currentStart:"",nextStart:"",requestsCount:0},nextTier:null,tierPlansEnabled:!1,_meta:{isRequesting:!1,asyncRequestCountdown:r.mx,asyncRequestTimerId:0,isRequestingImage:!1},featuresControl:{"logo-generator":{enabled:!1,styles:[]}}}},history:[],selectedLogoIndex:0}},23695(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(61356),o=n(9938),s=n(94891);function a(e=s.A,t){switch(t.type){case o.ql:return{...e,_meta:{...e._meta??{},featureFetchError:null},features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,_meta:{...e?.features?.aiAssistantFeature?._meta,isRequesting:!0,asyncRequestCountdown:o.mx,asyncRequestTimerId:0}}}};case o.UU:{const n={"jetpack-ai-logo-generator":{logo:r._S}};return{...e,features:{...e.features,aiAssistantFeature:{costs:n,...t.feature,requireUpgrade:t.feature?.requireUpgrade||0===t.feature?.currentTier?.value,_meta:{...e?.features?.aiAssistantFeature?._meta,isRequesting:!1}}}}}case o.Lg:{const n=e?.features?.aiAssistantFeature?.usagePeriod||{requestsCount:0},r=(e?.features?.aiAssistantFeature?.requestsCount||0)+(t.count??1);n.requestsCount+=t.count??1;const s=e?.features?.aiAssistantFeature?.currentTier?.value,a=void 0===s&&!e?.features?.aiAssistantFeature?.hasFeature||0===s,i=void 0===s&&e?.features?.aiAssistantFeature?.hasFeature||1===s;let c=e?.features?.aiAssistantFeature?.currentTier?.limit||o.GB;i?c=o.nb:a&&(c=e?.features?.aiAssistantFeature?.requestsLimit);const l=(i||a?r:e?.features?.aiAssistantFeature?.usagePeriod?.requestsCount||0)>=c,u=a||l&&null!==e?.features?.aiAssistantFeature?.nextTier;return{...e,features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,isOverLimit:l,requestsCount:r,requireUpgrade:u,usagePeriod:{...n}}}}}case o.Kt:return{...e,features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,requireUpgrade:t.requireUpgrade,...t.requireUpgrade?{isOverLimit:!0}:{}}}};case o.c1:return{...e,features:{...e.features,aiAssistantFeature:{...e.features.aiAssistantFeature,tierPlansEnabled:t.tierPlansEnabled}}};case o.Bz:return{...e,siteDetails:t.siteDetails};case o.BG:return{...e,selectedLogoIndex:t.selectedLogoIndex};case o.sG:{const n=[...e.history,t.logo];return{...e,history:n,selectedLogoIndex:n.length-1}}case o.E6:return{...e,_meta:{...e._meta??{},isSavingLogoToLibrary:t.isSavingLogoToLibrary}};case o.Ep:return{...e,_meta:{...e._meta??{},isApplyingLogo:t.isApplyingLogo}};case o.r_:{const n=e.history?.[e.selectedLogoIndex];return{...e,history:[...e.history.slice(0,e.selectedLogoIndex),{...n,mediaId:t.mediaId,url:t.url},...e.history.slice(e.selectedLogoIndex+1)]}}case o.vk:return{...e,_meta:{...e._meta??{},isRequestingImage:t.isRequestingImage}};case o.O5:return{...e,_meta:{...e._meta??{},isEnhancingPrompt:t.isEnhancingPrompt}};case o.ZI:return{...e,history:t.history,selectedLogoIndex:t.history?.length?t.history.length-1:0};case o.Rx:return{...e,features:{...e.features,aiAssistantFeature:{...e?.features?.aiAssistantFeature,_meta:{...e?.features?.aiAssistantFeature?._meta,isRequesting:!1}}},_meta:{...e._meta??{},featureFetchError:t.error}};case o.MQ:return{...e,_meta:{...e._meta??{},firstLogoPromptFetchError:t.error}};case o.gG:return{...e,_meta:{...e._meta??{},enhancePromptFetchError:t.error}};case o.q_:return{...e,_meta:{...e._meta??{},logoFetchError:t.error}};case o.x0:return{...e,_meta:{...e._meta??{},saveToLibraryError:t.error}};case o.FN:return{...e,_meta:{...e._meta??{},logoUpdateError:t.error}};case o.kZ:return{...e,_meta:{...e._meta??{},context:t.context}};case o.hY:return{...e,_meta:{...e._meta??{},isLoadingHistory:t.isLoadingHistory}}}return e}},80037(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(61356);const o={getAiAssistantFeature(e){const t={...e.features.aiAssistantFeature};return delete t._meta,t},getSiteDetails:e=>e.siteDetails,getIsRequestingAiAssistantFeature:e=>e.features.aiAssistantFeature?._meta?.isRequesting??!1,getLogos:e=>e.history??[],getSelectedLogoIndex:e=>e.selectedLogoIndex??null,getSelectedLogo:e=>e.history?.[e.selectedLogoIndex]??null,getIsSavingLogoToLibrary:e=>e._meta?.isSavingLogoToLibrary??!1,getIsApplyingLogo:e=>e._meta?.isApplyingLogo??!1,getIsEnhancingPrompt:e=>e._meta?.isEnhancingPrompt??!1,getIsRequestingImage:e=>e._meta?.isRequestingImage??!1,getIsBusy:e=>o.getIsApplyingLogo(e)||o.getIsSavingLogoToLibrary(e)||o.getIsRequestingImage(e)||o.getIsEnhancingPrompt(e),getRequireUpgrade(e){const t=e.features.aiAssistantFeature;if(!t?.tierPlansEnabled)return t?.requireUpgrade;const n=t?.costs?.["jetpack-ai-logo-generator"]?.logo??r._S,o=t?.currentTier?.value||0,s=t?.usagePeriod?.requestsCount||0,a=1===o,i=!t?.nextTier;return e.features.aiAssistantFeature?.requireUpgrade||!a&&!i&&o-s<n},getFeatureFetchError:e=>e._meta?.featureFetchError??null,getFirstLogoPromptFetchError:e=>e._meta?.firstLogoPromptFetchError??null,getEnhancePromptFetchError:e=>e._meta?.enhancePromptFetchError??null,getLogoFetchError:e=>e._meta?.logoFetchError??null,getSaveToLibraryError:e=>e._meta?.saveToLibraryError??null,getLogoUpdateError:e=>e._meta?.logoUpdateError??null,getContext:e=>e._meta?.context??"",getTierPlansEnabled:e=>e.features.aiAssistantFeature?.tierPlansEnabled??!1,getIsLoadingHistory:e=>e._meta?.isLoadingHistory??!1},s=o},53664(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(7675),o=n(10067),s=n.n(o),a=n(46219),i=n(51391),c=n(78836);const l=s()("jetpack-ai-client:suggestions-event-source");class u extends EventTarget{fullMessage;fullFunctionCall;isPromptClear;controller;errorUnclearPromptTriggered;constructor(e){super(),this.fullMessage="",this.fullFunctionCall={name:"",arguments:""},this.isPromptClear=!1,this.controller=new AbortController,this.initEventSource(e)}async initEventSource({url:e,question:t,token:n,options:o={}}){if(!n)try{l("Token was not provided, requesting one..."),n=(await(0,i.A)()).token}catch(e){return void this.processErrorEvent(e)}const s={};if(Number.isInteger(parseInt(o.postId))&&(s.post_id=+o.postId),!e){const t=new URL("https://public-api.wordpress.com/wpcom/v2/jetpack-ai-query");o?.fromCache&&t.searchParams.append("stream_cache","true"),e=t.toString(),l("URL not provided, using default: %o",e)}Array.isArray(t)?s.messages=t:s.question=t,o?.feature?.length&&(l("Feature: %o",o.feature),s.feature=o.feature),o?.functions?.length&&(l("Functions: %o",o.functions),s.functions=o.functions),o?.model?.length&&(l("Model: %o",o.model),s.model=o.model),o?.languageCode?.length&&(l("Language: %o",o.languageCode),s.language_code=o.languageCode),this.errorUnclearPromptTriggered=!1,await(0,r.y)(e,{openWhenHidden:!0,method:"POST",headers:{"Content-type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify(s),onclose:()=>{l("Stream closed")},onerror:e=>{throw this.processErrorEvent(e),e},onmessage:e=>{this.processEvent(e)},onopen:async e=>{if(e.ok)return;let t;throw e.status>=400&&e.status<=500&&![413,422,429].includes(e.status)&&(l("Connection error: %o",e),t=c.mA,this.dispatchEvent(new CustomEvent(c.mA,{detail:e}))),503===e.status&&(t=c.AZ,this.dispatchEvent(new CustomEvent(c.AZ))),413===e.status&&(t=c.cT,this.dispatchEvent(new CustomEvent(c.cT))),422===e.status&&(t=c.ud,this.dispatchEvent(new CustomEvent(c.ud))),429===e.status&&(t=c.Or,this.dispatchEvent(new CustomEvent(c.Or))),this.dispatchEvent(new CustomEvent(c.zn,{detail:(0,a.fC)(t)})),new Error},signal:this.controller.signal})}checkForUnclearPrompt(){if(this.isPromptClear)return;const e=this.fullMessage.replace(/__|(\*\*)/g,"");if(e.startsWith("JETPACK_AI_ERROR")){if(this.errorUnclearPromptTriggered)return;this.errorUnclearPromptTriggered=!0,this.dispatchEvent(new CustomEvent(c.L9)),l("Unclear error prompt dispatched"),this.dispatchEvent(new CustomEvent(c.zn,{detail:(0,a.fC)(c.L9)}))}else"JETPACK_AI_ERROR".startsWith(e)?l(this.fullMessage):this.isPromptClear=!0}close(){this.controller.abort()}processEvent(e){if("[DONE]"===e.data){if(this.errorUnclearPromptTriggered)return;if(this.fullMessage.length)return this.dispatchEvent(new CustomEvent("done",{detail:this.fullMessage})),void l("Done: %o",this.fullMessage);if(this.fullFunctionCall.name.length)return this.dispatchEvent(new CustomEvent("function_done",{detail:this.fullFunctionCall})),void l("Done: %o",this.fullFunctionCall)}let t;try{t=JSON.parse(e.data)}catch(t){return void l("Error parsing JSON",e,t)}const{delta:n}=t?.choices?.[0]??{delta:{content:null,function_call:null}},r=n.content,o=n.function_call;r&&(this.fullMessage+=r,this.checkForUnclearPrompt(),this.isPromptClear&&(this.dispatchEvent(new CustomEvent("chunk",{detail:r})),l("suggestion: %o",this.fullMessage),this.dispatchEvent(new CustomEvent("suggestion",{detail:this.fullMessage})))),o&&(null!=o.name&&(this.fullFunctionCall.name+=o.name),null!=o.arguments&&(this.fullFunctionCall.arguments+=o.arguments),this.dispatchEvent(new CustomEvent("functionCallChunk",{detail:this.fullFunctionCall})))}processErrorEvent(e){l("onerror: %o",e),this.dispatchEvent(new CustomEvent(c.mA,{detail:e})),this.dispatchEvent(new CustomEvent(c.zn,{detail:(0,a.fC)(c.mA)}))}}},78836(e,t,n){"use strict";n.d(t,{AZ:()=>o,L9:()=>l,Np:()=>d,Or:()=>s,cT:()=>i,mA:()=>c,uH:()=>r.u,ud:()=>a,zn:()=>u});var r=n(97784);const o="error_service_unavailable",s="error_quota_exceeded",a="error_moderation",i="error_context_too_large",c="error_network",l="error_unclear_prompt",u="error_response",d="default"},90372(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(10067);const o=n.n(r)()("dops:analytics");let s,a;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const i={initialize:function(e,t,n){i.setUser(e,t),i.setSuperProps(n),i.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){a={ID:e,username:t}},setSuperProps:function(e){s=e},assignSuperProps:function(e){s=Object.assign(s||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return n}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){i.tracks.recordPageView(e),i.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,o,s,a){i.ga.recordPurchase(e,t,n,r,o,s,a)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(!t.blog_id&&"object"==typeof window.jpTracksContext&&window.jpTracksContext.blog_id&&(t.blog_id=window.jpTracksContext.blog_id),s&&(o("- Super Props: %o",s),t=Object.assign(t,s)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};i.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){i.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){o("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};i.ga.initialized||(a&&(e={userId:"u-"+a.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),i.ga.initialized=!0)},recordPageView:function(e,t){i.ga.initialize(),o("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){i.ga.initialize();let s="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(s+=" [Option Label: "+n+"]"),void 0!==r&&(s+=" [Option Value: "+r+"]"),o(s),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,o,s,a){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:a}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:o,quantity:s}),window.ga("ecommerce:send")}},identifyUser:function(){a&&window._tkq.push(["identifyUser",a.ID,a.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=i},5932(e,t,n){"use strict";n.d(t,{Ay:()=>d});var r=n(56439),o=n(93832);function s(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const a=s("JsonParseError"),i=s("JsonParseAfterRedirectError"),c=s("Api404Error"),l=s("Api404AfterRedirectError"),u=s("FetchNetworkError");const d=new function(e,t){let n=e,s=e,a={"X-WP-Nonce":t},i={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const u={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){s=e},setApiNonce(e){a={"X-WP-Nonce":e},i={credentials:"same-origin",headers:a},c={method:"post",credentials:"same-origin",headers:Object.assign({},a,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,o)=>{const s={};return(0,r.jetpackConfigHas)("consumer_slug")&&(s.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(s.redirect_uri=t),o&&(s.from=o),m(`${n}jetpack/v4/connection/register`,c,{body:JSON.stringify(s)}).then(p).then(h)},fetchAuthorizationUrl:e=>d((0,o.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),i).then(p).then(h),fetchSiteConnectionData:()=>d(`${n}jetpack/v4/connection/data`,i).then(h),fetchSiteConnectionStatus:()=>d(`${n}jetpack/v4/connection`,i).then(h),fetchSiteConnectionTest:()=>d(`${n}jetpack/v4/connection/test`,i).then(p).then(h),fetchUserConnectionData:()=>d(`${n}jetpack/v4/connection/data`,i).then(h),fetchUserTrackingSettings:()=>d(`${n}jetpack/v4/tracking/settings`,i).then(p).then(h),updateUserTrackingSettings:e=>m(`${n}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),disconnectSite:()=>m(`${n}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(p).then(h),fetchConnectUrl:()=>d(`${n}jetpack/v4/connection/url`,i).then(p).then(h),unlinkUser:(e=!1,t={})=>{const r={linked:!1,force:!!e};return t.disconnectAllUsers&&(r["disconnect-all-users"]=!0),m(`${n}jetpack/v4/connection/user`,c,{body:JSON.stringify(r)}).then(p).then(h)},reconnect:()=>m(`${n}jetpack/v4/connection/reconnect`,c).then(p).then(h),fetchConnectedPlugins:()=>d(`${n}jetpack/v4/connection/plugins`,i).then(p).then(h),setHasSeenWCConnectionModal:()=>m(`${n}jetpack/v4/seen-wc-connection-modal`,c).then(p).then(h),fetchModules:()=>d(`${n}jetpack/v4/module/all`,i).then(p).then(h),fetchModule:e=>d(`${n}jetpack/v4/module/${e}`,i).then(p).then(h),activateModule:e=>m(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(p).then(h),deactivateModule:e=>m(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>m(`${n}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(p).then(h),updateSettings:e=>m(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),getProtectCount:()=>d(`${n}jetpack/v4/module/protect/data`,i).then(p).then(h),resetOptions:e=>m(`${n}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(p).then(h),activateVaultPress:()=>m(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(h),getVaultPressData:()=>d(`${n}jetpack/v4/module/vaultpress/data`,i).then(p).then(h),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),m(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify(r)}).then(p).then(h)},activateAkismet:()=>m(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(h),getAkismetData:()=>d(`${n}jetpack/v4/module/akismet/data`,i).then(p).then(h),checkAkismetKey:()=>d(`${n}jetpack/v4/module/akismet/key/check`,i).then(p).then(h),checkAkismetKeyTyped:e=>m(`${n}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(p).then(h),getFeatureTypeStatus:e=>d(`${n}jetpack/v4/feature/${e}`,i).then(p).then(h),fetchStatsData:e=>d(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),i).then(p).then(h).then(f),getPluginUpdates:()=>d(`${n}jetpack/v4/updates/plugins`,i).then(p).then(h),getPlans:()=>d(`${n}jetpack/v4/plans`,i).then(p).then(h),fetchSettings:()=>d(`${n}jetpack/v4/settings`,i).then(p).then(h),updateSetting:e=>m(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),fetchSiteData:()=>d(`${n}jetpack/v4/site`,i).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>d(`${n}jetpack/v4/site/features`,i).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteProducts:()=>d(`${n}jetpack/v4/site/products`,i).then(p).then(h),fetchSitePurchases:()=>d(`${n}jetpack/v4/site/purchases`,i).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>d(`${n}jetpack/v4/site/benefits`,i).then(p).then(h).then(e=>JSON.parse(e.data)),fetchSiteDiscount:()=>d(`${n}jetpack/v4/site/discount`,i).then(p).then(h).then(e=>e.data),fetchSetupQuestionnaire:()=>d(`${n}jetpack/v4/setup/questionnaire`,i).then(p).then(h),fetchRecommendationsData:()=>d(`${n}jetpack/v4/recommendations/data`,i).then(p).then(h),fetchRecommendationsProductSuggestions:()=>d(`${n}jetpack/v4/recommendations/product-suggestions`,i).then(p).then(h),fetchRecommendationsUpsell:()=>d(`${n}jetpack/v4/recommendations/upsell`,i).then(p).then(h),fetchRecommendationsConditional:()=>d(`${n}jetpack/v4/recommendations/conditional`,i).then(p).then(h),saveRecommendationsData:e=>m(`${n}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>d(`${n}jetpack/v4/products`,i).then(p).then(h),fetchRewindStatus:()=>d(`${n}jetpack/v4/rewind`,i).then(p).then(h).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>d(`${n}jetpack/v4/scan`,i).then(p).then(h).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>m(`${n}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(p).then(h),fetchPluginsData:()=>d(`${n}jetpack/v4/plugins`,i).then(p).then(h),fetchIntroOffers:()=>d(`${n}jetpack/v4/intro-offers`,i).then(p).then(h),fetchVerifySiteGoogleStatus:e=>d(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,i).then(p).then(h),verifySiteGoogle:e=>m(`${n}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(p).then(h),submitSurvey:e=>m(`${n}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(p).then(h),saveSetupQuestionnaire:e=>m(`${n}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(p).then(h),updateLicensingError:e=>m(`${n}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(p).then(h),updateLicenseKey:e=>m(`${n}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(p).then(h),getUserLicensesCounts:()=>d(`${n}jetpack/v4/licensing/user/counts`,i).then(p).then(h),getUserLicenses:()=>d(`${n}jetpack/v4/licensing/user/licenses`,i).then(p).then(h),updateLicensingActivationNoticeDismiss:e=>m(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(p).then(h),updateRecommendationsStep:e=>m(`${n}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>m(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(p),startIDCFresh:e=>m(`${n}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(p).then(h),migrateIDC:()=>m(`${n}jetpack/v4/identity-crisis/migrate`,c).then(p),attachLicenses:e=>m(`${n}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(p).then(h),fetchSearchPlanInfo:()=>d(`${s}jetpack/v4/search/plan`,i).then(p).then(h),fetchSearchSettings:()=>d(`${s}jetpack/v4/search/settings`,i).then(p).then(h),updateSearchSettings:e=>m(`${s}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(p).then(h),fetchSearchStats:()=>d(`${s}jetpack/v4/search/stats`,i).then(p).then(h),fetchWafSettings:()=>d(`${n}jetpack/v4/waf`,i).then(p).then(h),updateWafSettings:e=>m(`${n}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(p).then(h),fetchWordAdsSettings:()=>d(`${n}jetpack/v4/wordads/settings`,i).then(p).then(h),updateWordAdsSettings:e=>m(`${n}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>d(`${s}jetpack/v4/search/pricing`,i).then(p).then(h),fetchMigrationStatus:()=>d(`${n}jetpack/v4/migration/status`,i).then(p).then(h),fetchBackupUndoEvent:()=>d(`${n}jetpack/v4/site/backup/undo-event`,i).then(p).then(h),fetchBackupPreflightStatus:()=>d(`${n}jetpack/v4/site/backup/preflight`,i).then(p).then(h)};function d(e,t){return fetch(l(e),t)}function m(e,t,n){return fetch(e,Object.assign({},t,n)).catch(g)}function f(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,u)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise(()=>{throw e.redirected?new l(e.redirected):new c}):e.json().catch(e=>m(e)).then(t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n})}function h(e){return e.json().catch(t=>m(t,e.redirected,e.url))}function m(e,t,n){throw t?new i(n):new a}function g(){throw new u}},51112(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(56427),o=n(27723),s=n(35490),a=n(79485),i=n(13022),c=n(51609),l=n(77934),u=n(10790);const __=o.__,d=(0,c.forwardRef)((e,t)=>{const{children:n,variant:o="primary",size:c="normal",weight:d="bold",icon:p,iconSize:h,disabled:m,isDestructive:g,isLoading:f,isExternalLink:b,className:v,text:y,fullWidth:k,...w}=e,x=(0,i.A)(l.A.button,v,{[l.A.normal]:"normal"===c,[l.A.small]:"small"===c,[l.A.icon]:Boolean(p),[l.A.loading]:f,[l.A.regular]:"regular"===d,[l.A["full-width"]]:k,[l.A["is-icon-button"]]:Boolean(p)&&!n}),_="normal"===c?20:16,j=b&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.A,{size:_,icon:a.A,className:l.A["external-icon"]}),(0,u.jsx)(r.VisuallyHidden,{as:"span",children:/* translators: accessibility text */ | |
| 22 | +__("(opens in a new tab)","jetpack")})]}),C=b?"_blank":void 0,A=n?.[0]&&null!==n[0]&&"components-tooltip"!==n?.[0]?.props?.className,S={ref:t,target:C,variant:o,className:(0,i.A)(x,{"has-text":!!p&&A}),icon:b?void 0:p,iconSize:h,disabled:m,"aria-disabled":m,isDestructive:g,text:y,...w};return(0,u.jsxs)(r.Button,{...S,children:[f&&(0,u.jsx)(r.Spinner,{}),(0,u.jsx)("span",{children:n}),j]})});d.displayName="Button";const p=d},69222(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(29491),o=n(86087),s=n(27723),a=n(51112),i=n(78478),c=n(10790);const __=s.__,l=({buttonStyle:e="icon",textToCopy:t,onCopy:n,...s})=>{const[l,u]=(0,o.useState)(!1),d=(0,o.useRef)(),p=(0,r.useCopyToClipboard)(t,()=>{d.current&&clearTimeout(d.current),u(!0),n?.(),d.current=setTimeout(()=>{u(!1),d.current=void 0},3e3)});(0,o.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);let h=null,m=null;"text"!==e&&(h=l?(0,c.jsx)(i.Nr,{}):(0,c.jsx)(i.ui,{}));const g=__("Copy to clipboard","jetpack");return"icon"!==e&&(m=l?__("Copied!","jetpack"):g),(0,c.jsx)(a.A,{"aria-label":g,icon:h,children:m,ref:p,...s})}},78478(e,t,n){"use strict";n.d(t,{Nr:()=>c,ui:()=>l});var r=n(56427),o=n(13022),s=(n(84705),n(39169),n(67400)),a=n(10790);const i=({className:e,size:t=24,viewBox:n="0 0 24 24",opacity:i=1,color:c="#2C3338",children:l})=>{const u={className:(0,o.A)(s.A.iconWrapper,e),width:t,height:t,viewBox:n,opacity:i,fill:void 0};return c&&(u.fill=c),(0,a.jsx)(r.SVG,{...u,fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(r.G,{opacity:i,children:l})})},c=({size:e,className:t=s.A["checkmark-icon"],color:n})=>(0,a.jsx)(i,{className:t,size:e,color:n,children:(0,a.jsx)(r.Path,{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})}),l=({size:e,className:t=s.A["clipboard-icon"],color:n})=>(0,a.jsx)(i,{className:t,size:e,color:n,children:(0,a.jsx)(r.Path,{d:"M5.625 5.5H15.375C15.444 5.5 15.5 5.55596 15.5 5.625V15.375C15.5 15.444 15.444 15.5 15.375 15.5H5.625C5.55596 15.5 5.5 15.444 5.5 15.375V5.625C5.5 5.55596 5.55596 5.5 5.625 5.5ZM4 5.625C4 4.72754 4.72754 4 5.625 4H15.375C16.2725 4 17 4.72754 17 5.625V10V15.375C17 16.2725 16.2725 17 15.375 17C15.375 17 6.52246 17 5.625 17C4.72754 17 4 16.2725 4 15.375V5.625ZM18.5 17.2812V8.28125H20V17.2812C20 18.7995 18.7704 20 17.2511 20H6.25V18.5H17.2511C17.9409 18.5 18.5 17.9721 18.5 17.2812Z"})})},67142(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(13022),s=n(10790);const __=r.__,a=({logoColor:e="#069e08",showText:t=!0,className:n,height:r=32,title:a,...i})=>{const c=t?"0 0 118 32":"0 0 32 32",l=a??__("Jetpack Logo","jetpack");return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,o.A)("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title",height:r,...i,role:"img",children:[(0,s.jsx)("title",{id:"jetpack-logo-title",children:l}),(0,s.jsx)("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),(0,s.jsx)("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),(0,s.jsx)("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),(0,s.jsx)("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),(0,s.jsx)("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),(0,s.jsx)("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),(0,s.jsx)("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})]})]})}},11876(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(13022),o=n(87682),s=n(10790);const a=({children:e=null,width:t=null,height:n=null,className:a=""})=>(0,s.jsx)("div",{className:(0,r.A)(o.A.placeholder,a),style:{width:t,height:n},children:e})},36281(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(86221),o=n(10790);const s=({value:e="https://jetpack.com",size:t=248,bgColor:n,fgColor:s,level:a,includeMargin:i,imageSettings:c,renderAs:l="canvas"})=>{const u={value:e,size:t,bgColor:n,fgColor:s,level:a,includeMargin:i,imageSettings:c};return"svg"===l?(0,o.jsx)(r.h,{...u}):(0,o.jsx)(r.X,{...u})}},50723(e,t,n){"use strict";n.d(t,{Ay:()=>p});var r=n(51609),o=n(8706),s=n(10790);const a={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},i={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},u={},d=(e,t,n)=>{const r={...a,...i,...c,...l};for(const t in r)e.style.setProperty(t,r[t]);n&&e.classList.add(o.A.global),t&&(u[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:n,withGlobalStyles:o=!0})=>{const a=(0,r.useRef)(),i=u?.[n]?.provided;return(0,r.useLayoutEffect)(()=>{if(!i)return t?d(t,n,o):void(a?.current&&d(a.current,n,o))},[t,a,i,n,o]),t?(0,s.jsx)(s.Fragment,{children:e}):(0,s.jsx)("div",{ref:a,children:e})}},3924(e,t,n){"use strict";function r(e,t={}){const n={};let r;if("undefined"!=typeof window&&(r=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);return"https://jetpack.com/redirect/?"+Object.keys(n).map(e=>e+"="+n[e]).join("&")}n.d(t,{A:()=>r})},56439(e,t,n){let r={};try{r=n(74277)}catch{globalThis.jetpackConfig?r=globalThis.jetpackConfig:(console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0})}const o=e=>Object.hasOwn(r,e);e.exports={jetpackConfigHas:o,jetpackConfigGet:e=>{if(!o(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},14882(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(5932),o=n(97999),s=n(47143),a=n(51609),i=n(34293);const c={},l={},u=window?.JP_CONNECTION_INITIAL_STATE||(0,o.getScriptData)()?.connection||{};function d({registrationNonce:e=u.registrationNonce,apiRoot:t=u.apiRoot,apiNonce:n=u.apiNonce,redirectUri:o,autoTrigger:d,from:p,skipUserConnection:h,skipPricingPage:m}={}){const{registerSite:g,connectUser:f,refreshConnectedPlugins:b}=(0,s.useDispatch)(i.a),v=(0,s.useSelect)(e=>e(i.a).getRegistrationError(),[]),{siteIsRegistering:y,userIsConnecting:k,userConnectionData:w,connectedPlugins:x,connectionOwner:_,connectionErrors:j,connectionHealthErrors:C,isRegistered:A,isUserConnected:S,hasConnectedOwner:E,isOfflineMode:T}=(0,s.useSelect)(e=>{const t=e(i.a).getConnectionStatus(),n=e(i.a).getConnectionOwner?.();return{siteIsRegistering:e(i.a).getSiteIsRegistering(),userIsConnecting:e(i.a).getUserIsConnecting(),userConnectionData:e(i.a).getUserConnectionData()||c,connectedPlugins:e(i.a).getConnectedPlugins(),connectionOwner:(r=n,r&&"object"==typeof r&&"id"in r&&"number"==typeof r.id&&"displayName"in r&&"string"==typeof r.displayName?n:null),connectionErrors:e(i.a).getConnectionErrors(),connectionHealthErrors:e(i.a).getConnectionHealthErrors?.()??l,isOfflineMode:e(i.a).getIsOfflineMode(),isRegistered:t.isRegistered??!1,isUserConnected:t.isUserConnected??!1,hasConnectedOwner:t.hasConnectedOwner??!1};var r},[]),N=()=>h?o?(window.location.href=o,Promise.resolve(o)):Promise.resolve():f({from:p,redirectUri:o,skipPricingPage:m}),P=t=>(t&&t.preventDefault(),A?N():g({registrationNonce:e,redirectUri:o,from:p}).then(()=>N()));return(0,a.useEffect)(()=>{r.Ay.setApiRoot(t),r.Ay.setApiNonce(n)},[t,n]),(0,a.useEffect)(()=>{!d||y||k||P()},[]),{handleRegisterSite:P,handleConnectUser:N,refreshConnectedPlugins:b,isRegistered:A,isUserConnected:S,siteIsRegistering:y,userIsConnecting:k,registrationError:v,userConnectionData:w,connectionOwner:_,hasConnectedOwner:E,connectedPlugins:x,connectionErrors:j,connectionHealthErrors:C,isOfflineMode:T}}},14750(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(27723);const __=r.__;function o(e){if(!e||"string"!=typeof e)return{};const t=e.indexOf(" :");if(-1===t)return{};const n=e.slice(0,t).trim(),r=e.slice(t+2).trim(),o={};return r&&(o.action_url=r),n&&(o.action_label=n),o}function s(e){const t={};for(const n of function(e){if(!e||"object"!=typeof e)return[];const t=e;return t.code?[{code:t.code,message:t.message??"",data:t.data||{}},...(Array.isArray(t.additional_errors)?t.additional_errors:[]).map(e=>({code:e.code??"",message:e.message??"",data:e.data||{}}))]:[]}(e))n.code.startsWith("failed_")&&(t[n.code]={0:{error_code:n.code,error_message:n.message||__("A connection check failed.","jetpack"),error_type:"connection_health",error_data:o(n.data.resolution)}});return t}},33935(e,t,n){"use strict";n.d(t,{A1:()=>d,Ay:()=>S,DO:()=>u,Ij:()=>l,Kl:()=>f,LW:()=>p,MU:()=>v,XY:()=>h,ZO:()=>c,dz:()=>m,gH:()=>g,j4:()=>b,v_:()=>i});var r=n(5932),o=n(1455),s=n.n(o),a=n(14750);const i="SET_CONNECTION_STATUS",c="SET_CONNECTION_STATUS_IS_FETCHING",l="SET_SITE_IS_REGISTERING",u="SET_USER_IS_CONNECTING",d="SET_REGISTRATION_ERROR",p="CLEAR_REGISTRATION_ERROR",h="SET_AUTHORIZATION_URL",m="DISCONNECT_USER_SUCCESS",g="SET_CONNECTED_PLUGINS",f="SET_CONNECTION_ERRORS",b="SET_CONNECTION_HEALTH_ERRORS",v="SET_IS_OFFLINE_MODE",y=e=>({type:i,connectionStatus:e}),k=e=>({type:l,isRegistering:e}),w=e=>({type:u,isConnecting:e}),x=e=>({type:d,registrationError:e}),_=()=>({type:p}),j=e=>({type:h,authorizationUrl:e}),C=e=>({type:g,connectedPlugins:e}),A=e=>({type:b,connectionHealthErrors:e});const S={setConnectionStatus:y,setConnectionStatusIsFetching:e=>({type:c,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:k,setUserIsConnecting:w,setRegistrationError:x,clearRegistrationError:_,setAuthorizationUrl:j,registerSite:function*({registrationNonce:e,redirectUri:t,from:n=""}){yield _(),yield k(!0);try{const r=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:n};return yield y({isRegistered:!0}),yield j(r.authorizeUrl),yield k(!1),Promise.resolve(r)}catch(e){return yield x(e),yield k(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:n,skipPricingPage:r}={}){yield w(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n,skipPricingPage:r}},disconnectUserSuccess:()=>({type:m}),setConnectedPlugins:C,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise(t=>r.Ay.fetchConnectedPlugins().then(n=>{e(C(n)),t(n)})),setConnectionErrors:e=>({type:f,connectionErrors:e}),setConnectionHealthErrors:A,runConnectionHealthCheck:()=>async({dispatch:e})=>{try{return await s()({path:"/jetpack/v4/connection/test"}),e(A({})),{}}catch(t){const n=(0,a.A)(t);return e(A(n)),n}},setIsOfflineMode:e=>({type:v,isOfflineMode:e})}},27938(e,t,n){"use strict";function r(e){return window.location.assign(e)}n.d(t,{d:()=>r})},22494(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(5932),o=n(47143),s=n(27938),a=n(32279);const i={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>r.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({redirectUri:e,from:t})=>r.Ay.registerSite(null,e,t),CONNECT_USER:(0,o.createRegistryControl)(({resolveSelect:e})=>({from:t,redirectFunc:n,redirectUri:r,skipPricingPage:o}={})=>new Promise((i,c)=>{e(a.A).getAuthorizationUrl(r).then(e=>{const r=n||(e=>(0,s.d)(e)),a=new URL(e);o&&a.searchParams.set("skip_pricing","true"),t&&a.searchParams.set("from",encodeURIComponent(t));const c=a.toString();r(c),i(c)}).catch(e=>{c(e)})}))}},5051(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(47143),o=n(33935);const s=(0,r.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case o.v_:return{...e,...t.connectionStatus};case o.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===o.ZO?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===o.Ij?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===o.DO?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case o.LW:return!1;case o.A1:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===o.XY?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===o.gH?t.connectedPlugins:e,connectionOwner:(e=null,t)=>(t.type,e),connectionErrors:(e={},t)=>t.type===o.Kl?t.connectionErrors:e,connectionHealthErrors:(e={},t)=>t.type===o.j4?t.connectionHealthErrors:e,isOfflineMode:(e=!1,t)=>t.type===o.MU?t.isConnecting:e})},58019(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(47143),o=n(33935),s=n(32279);const a={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const n=Boolean(e.authorizationUrl),o=(0,r.select)(s.A).hasFinishedResolution("getAuthorizationUrl",t);return n&&!o&&(0,r.dispatch)(s.A).finishResolution("getAuthorizationUrl",t),n},*fulfill(e){const t=yield o.Ay.fetchAuthorizationUrl(e);yield o.Ay.setAuthorizationUrl(t.authorizeUrl)}}}}},52676(e,t,n){"use strict";n.d(t,{A:()=>r});const r={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionOwner:e=>e.connectionOwner||null,getConnectionErrors:e=>e.connectionErrors||[],getConnectionHealthErrors:e=>e.connectionHealthErrors||{},getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},18734(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(47143);class o{static store=null;static mayBeInit(e,t){null===o.store&&(o.store=(0,r.createReduxStore)(e,t),(0,r.register)(o.store))}}const s=o},32279(e,t,n){"use strict";n.d(t,{A:()=>r});const r="jetpack-connection"},34293(e,t,n){"use strict";n.d(t,{a:()=>u.A});var r=n(97999),o=n(33935),s=n(22494),a=n(5051),i=n(58019),c=n(52676),l=n(18734),u=n(32279);const d=window.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection;d||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.A.mayBeInit(u.A,{__experimentalUseThunks:!0,reducer:a.A,actions:o.Ay,selectors:c.A,resolvers:i.A,controls:s.A,initialState:d||{}})},63673(e,t,n){"use strict";n.d(t,{$:()=>o,M:()=>r});n(38443);const r="en",o="USD"},11452(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(63673),o=n(49980),s=n(91167);const a=function(){let e,t,n;const a=()=>{const t="undefined"!=typeof window?window.wp?.date?.getSettings?.()?.l10n?.locale:void 0,n="undefined"!=typeof window?window?.navigator?.language:void 0;return(e??(t||n)??r.M).split("_")[0]};return{setLocale:t=>{e=t},setGeoLocation:e=>{t=e},setCurrencyOverrides:e=>{n=e},formatNumber:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:r={}}={})=>{try{return(0,s.j)({browserSafeLocale:a(),decimals:t,forceLatin:n,numberFormatOptions:r}).format(e)}catch{return String(e)}},formatNumberCompact:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:r={}}={})=>{try{return(0,s.c)({browserSafeLocale:a(),decimals:t,forceLatin:n,numberFormatOptions:r}).format(e)}catch{return String(e)}},formatCurrency:(e,r,{stripZeros:s=!1,isSmallestUnit:i=!1,signForPositive:c=!1,forceLatin:l=!0}={})=>(0,o.u)({number:e,currency:r,browserSafeLocale:a(),stripZeros:s,isSmallestUnit:i,signForPositive:c,geoLocation:t,forceLatin:l,currencyOverrides:n}),getCurrencyObject:(e,r,{stripZeros:s=!1,isSmallestUnit:i=!1,signForPositive:c=!1,forceLatin:l=!0}={})=>(0,o.v)({number:e,currency:r,browserSafeLocale:a(),stripZeros:s,isSmallestUnit:i,signForPositive:c,geoLocation:t,forceLatin:l,currencyOverrides:n})}}},3328(e,t,n){"use strict";n.d(t,{J:()=>c});var r=n(10067),o=n.n(r),s=n(63673);const a=o()("number-formatters:get-cached-formatter"),i=new Map;function c({locale:e,fallbackLocale:t=s.M,options:n,retries:r=1}){const o=JSON.stringify([e,n]);try{return i.get(o)??i.set(o,new Intl.NumberFormat(e,n)).get(o)}catch(o){if(a(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),r)return c({locale:t,options:n,retries:r-1});throw o}}},54268(e,t,n){"use strict";n.d(t,{ZV:()=>i,qe:()=>c,vv:()=>l});const r=(0,n(11452).A)(),{setLocale:o,setGeoLocation:s,setCurrencyOverrides:a,formatNumber:i,formatNumberCompact:c,formatCurrency:l,getCurrencyObject:u}=r},76673(e,t,n){"use strict";n.d(t,{a:()=>r});const r={AED:{symbol:"د.إ."},AFN:{symbol:"؋"},ALL:{symbol:"Lek"},AMD:{symbol:"֏"},ANG:{symbol:"ƒ"},AOA:{symbol:"Kz"},ARS:{symbol:"$"},AUD:{symbol:"A$"},AWG:{symbol:"ƒ"},AZN:{symbol:"₼"},BAM:{symbol:"КМ"},BBD:{symbol:"Bds$"},BDT:{symbol:"৳"},BGN:{symbol:"лв."},BHD:{symbol:"د.ب."},BIF:{symbol:"FBu"},BMD:{symbol:"$"},BND:{symbol:"$"},BOB:{symbol:"Bs"},BRL:{symbol:"R$"},BSD:{symbol:"$"},BTC:{symbol:"Ƀ"},BTN:{symbol:"Nu."},BWP:{symbol:"P"},BYR:{symbol:"р."},BZD:{symbol:"BZ$"},CAD:{symbol:"C$"},CDF:{symbol:"FC"},CHF:{symbol:"CHF"},CLP:{symbol:"$"},CNY:{symbol:"¥"},COP:{symbol:"$"},CRC:{symbol:"₡"},CUC:{symbol:"CUC"},CUP:{symbol:"$MN"},CVE:{symbol:"$"},CZK:{symbol:"Kč"},DJF:{symbol:"Fdj"},DKK:{symbol:"kr."},DOP:{symbol:"RD$"},DZD:{symbol:"د.ج."},EGP:{symbol:"ج.م."},ERN:{symbol:"Nfk"},ETB:{symbol:"ETB"},EUR:{symbol:"€"},FJD:{symbol:"FJ$"},FKP:{symbol:"£"},GBP:{symbol:"£"},GEL:{symbol:"Lari"},GHS:{symbol:"₵"},GIP:{symbol:"£"},GMD:{symbol:"D"},GNF:{symbol:"FG"},GTQ:{symbol:"Q"},GYD:{symbol:"G$"},HKD:{symbol:"HK$"},HNL:{symbol:"L."},HRK:{symbol:"kn"},HTG:{symbol:"G"},HUF:{symbol:"Ft"},IDR:{symbol:"Rp"},ILS:{symbol:"₪"},INR:{symbol:"₹"},IQD:{symbol:"د.ع."},IRR:{symbol:"﷼"},ISK:{symbol:"kr."},JMD:{symbol:"J$"},JOD:{symbol:"د.ا."},JPY:{symbol:"¥"},KES:{symbol:"S"},KGS:{symbol:"сом"},KHR:{symbol:"៛"},KMF:{symbol:"CF"},KPW:{symbol:"₩"},KRW:{symbol:"₩"},KWD:{symbol:"د.ك."},KYD:{symbol:"$"},KZT:{symbol:"₸"},LAK:{symbol:"₭"},LBP:{symbol:"ل.ل."},LKR:{symbol:"₨"},LRD:{symbol:"L$"},LSL:{symbol:"M"},LYD:{symbol:"د.ل."},MAD:{symbol:"د.م."},MDL:{symbol:"lei"},MGA:{symbol:"Ar"},MKD:{symbol:"ден."},MMK:{symbol:"K"},MNT:{symbol:"₮"},MOP:{symbol:"MOP$"},MRO:{symbol:"UM"},MTL:{symbol:"₤"},MUR:{symbol:"₨"},MVR:{symbol:"MVR"},MWK:{symbol:"MK"},MXN:{symbol:"MX$"},MYR:{symbol:"RM"},MZN:{symbol:"MT"},NAD:{symbol:"N$"},NGN:{symbol:"₦"},NIO:{symbol:"C$"},NOK:{symbol:"kr"},NPR:{symbol:"₨"},NZD:{symbol:"NZ$"},OMR:{symbol:"﷼"},PAB:{symbol:"B/."},PEN:{symbol:"S/."},PGK:{symbol:"K"},PHP:{symbol:"₱"},PKR:{symbol:"₨"},PLN:{symbol:"zł"},PYG:{symbol:"₲"},QAR:{symbol:"﷼"},RON:{symbol:"lei"},RSD:{symbol:"Дин."},RUB:{symbol:"₽"},RWF:{symbol:"RWF"},SAR:{symbol:"﷼"},SBD:{symbol:"S$"},SCR:{symbol:"₨"},SDD:{symbol:"LSd"},SDG:{symbol:"£"},SEK:{symbol:"kr"},SGD:{symbol:"S$"},SHP:{symbol:"£"},SLL:{symbol:"Le"},SOS:{symbol:"S"},SRD:{symbol:"$"},STD:{symbol:"Db"},SVC:{symbol:"₡"},SYP:{symbol:"£"},SZL:{symbol:"E"},THB:{symbol:"฿"},TJS:{symbol:"TJS"},TMT:{symbol:"m"},TND:{symbol:"د.ت."},TOP:{symbol:"T$"},TRY:{symbol:"TL"},TTD:{symbol:"TT$"},TVD:{symbol:"$T"},TWD:{symbol:"NT$"},TZS:{symbol:"TSh"},UAH:{symbol:"₴"},UGX:{symbol:"USh"},USD:{},UYU:{symbol:"$U"},UZS:{symbol:"сўм"},VEB:{symbol:"Bs."},VEF:{symbol:"Bs. F."},VND:{symbol:"₫"},VUV:{symbol:"VT"},WST:{symbol:"WS$"},XAF:{symbol:"F"},XCD:{symbol:"$"},XOF:{symbol:"F"},XPF:{symbol:"F"},YER:{symbol:"﷼"},ZAR:{symbol:"R"},ZMW:{symbol:"ZK"},WON:{symbol:"₩"}}},49980(e,t,n){"use strict";n.d(t,{u:()=>f,v:()=>b});var r=n(10067),o=n.n(r),s=n(63673),a=n(3328),i=n(76673);const c=o()("number-formatters:number-format-currency");function l(e,t,n){if("USD"===e&&t&&""!==t&&"US"!==t)return{symbol:"US$",...n?.USD};const r=i.a[e],o=n?.[e];return r||o?{...r,...o}:void 0}function u(e,t,n){return l(e,t,n)?e:(c(`getValidCurrency was called with a non-existent currency "${e}"; falling back to ${s.$}`),s.$)}function d({number:e,currency:t,browserSafeLocale:n,forceLatin:r=!0,stripZeros:o,signForPositive:s}){const i=`${n}${r?"-u-nu-latn":""}`,c={style:"currency",currency:t,...o&&Number.isInteger(e)&&{maximumFractionDigits:0,minimumFractionDigits:0},...s&&{signDisplay:"exceptZero"}};return(0,a.J)({locale:i,options:c})}const p={IDR:2,HUF:2};function h(e,t,n){return d({number:0,currency:t,browserSafeLocale:e,forceLatin:n}).resolvedOptions().maximumFractionDigits}function m(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function g(e,t,n,r,o){if(isNaN(e))return c("formatCurrency was called with NaN"),0;if(r){Number.isInteger(e)||c("formatCurrency was called with isSmallestUnit and a float which will be rounded",e);const r=10**function(e,t,n){const r=n?.[e]?.decimal;return"number"==typeof r?r:p[e]??t}(n,t,o);return m(Math.round(e)/r,t)}return m(e,t)}const f=({number:e,browserSafeLocale:t,currency:n,stripZeros:r,isSmallestUnit:o,signForPositive:s,geoLocation:a,forceLatin:i,currencyOverrides:c})=>{const p=u(n,a,c),m=l(p,a,c),f=h(t,p,i);if(o&&void 0===f)throw new Error(`Could not determine currency precision for ${p} in ${t}`);const b=g(e,f??0,p,o,c);return d({number:b,currency:p,browserSafeLocale:t,forceLatin:i,stripZeros:r,signForPositive:s}).formatToParts(b).reduce((e,t)=>"currency"===t.type&&m?.symbol?e+m.symbol:e+t.value,"")},b=({number:e,browserSafeLocale:t,currency:n,stripZeros:r,isSmallestUnit:o,signForPositive:s,geoLocation:a,forceLatin:i,currencyOverrides:c})=>{const p=u(n,a,c),m=l(p,a,c),f=g(e,h(t,p,i)??0,p,o,c),b=d({number:f,currency:p,browserSafeLocale:t,forceLatin:i,stripZeros:r,signForPositive:s}).formatToParts(f);let v="",y="$",k="before",w=!1,x=!1,_="",j="";b.forEach(e=>{switch(e.type){case"currency":return y=m?.symbol??e.value,void(w&&(k="after"));case"group":case"integer":return _+=e.value,void(w=!0);case"decimal":case"fraction":return j+=e.value,w=!0,void(x=!0);case"minusSign":return void(v="-");case"plusSign":v="+"}});const C=!Number.isInteger(f)&&x;return{sign:v,symbol:y,symbolPosition:k,integer:_,fraction:j,hasNonZeroFraction:C,floatValue:f}}},91167(e,t,n){"use strict";n.d(t,{c:()=>s,j:()=>o});var r=n(3328);const o=({browserSafeLocale:e,decimals:t=0,forceLatin:n=!0,numberFormatOptions:o={}})=>{const s=`${e}${n?"-u-nu-latn":""}`,a={minimumFractionDigits:t,maximumFractionDigits:t,...o};return(0,r.J)({locale:s,options:a})},s=({numberFormatOptions:e={},...t})=>o({...t,numberFormatOptions:{notation:"compact",maximumFractionDigits:1,...e}})},85985(e,t,n){"use strict";n.d(t,{$i:()=>r.A,BT:()=>c.A,Bd:()=>h.Bd,CP:()=>v.C,Cq:()=>g.C,Dk:()=>l.Dk,FB:()=>a.A,GE:()=>o.A,GT:()=>l.GT,M_:()=>f.store,Mm:()=>b.A,Ti:()=>h.Ti,W4:()=>l.W4,ZR:()=>p.A,_6:()=>y.A,_X:()=>h._X,aq:()=>l.aq,ds:()=>h.ds,gB:()=>u.A,lk:()=>s.l,pP:()=>s.p,q7:()=>m.A,sH:()=>l.sH,sh:()=>g.s,st:()=>d.A,tu:()=>l.tu,vp:()=>i.A,xI:()=>v.x});var r=n(34972),o=n(54815),s=(n(41409),n(62634)),a=n(8573),i=n(82034),c=n(65595),l=n(53265),u=n(49354),d=n(73489),p=n(89581),h=n(20710),m=(n(58406),n(76923)),g=n(30335),f=n(87687),b=n(44360),v=n(9061),y=n(25929);n(5765)},5765(e,t,n){"use strict";n(98490)},82201(e,t,n){"use strict";n.d(t,{cb:()=>o.c,jt:()=>r.A,k4:()=>s.k});var r=n(15877),o=n(30984),s=n(82308)},15877(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(67142),o=n(97999),s=n(27723),a=(n(48297),n(10790));const __=s.__,i=()=>{const e=(0,o.getScriptData)()?.jetpack?.flags?.showJetpackBranding;return void 0===e||e?(0,a.jsx)(r.A,{className:"jetpack-editor-panel-logo",height:16,logoColor:"#1E1E1E",showText:!1,title:__("This feature is powered by Jetpack","jetpack")}):null}},30984(e,t,n){"use strict";n.d(t,{c:()=>i});var r=n(56427),o=n(27723),s=n(13022),a=(n(75070),n(10790));const __=o.__,i=({className:e,description:t,align:n=null,title:o=null,buttonText:i=null,visible:c=!0,context:l=null,checkoutUrl:u=null,goToCheckoutPage:d=null,isRedirecting:p=!1,showButton:h=!0,target:m="_top"})=>{const g=(0,s.A)(e,"jetpack-upgrade-plan-banner",{"jetpack-nudge-canvas":"editor-canvas"===l,"block-editor-block-list__block":"editor-canvas"===l,"jetpack-upgrade-plan__hidden":!c}),f=__("Redirecting…","jetpack");return(0,a.jsx)("div",{className:g,"data-align":n,children:(0,a.jsxs)("div",{className:"jetpack-upgrade-plan-banner__wrapper",children:[o&&(0,a.jsx)("strong",{className:(0,s.A)("banner-title",{[`${e}__title`]:e}),children:o}),t&&(0,a.jsx)("span",{className:(0,s.A)("banner-description",{[`${e}__description`]:e}),children:t}),h&&(0,a.jsx)(r.Button,{href:p?null:u,onClick:d,target:m,className:(0,s.A)("is-primary",{"jetpack-upgrade-plan__hidden":!u}),isBusy:p,children:(0,a.jsx)("span",{children:p?f:i})})]})})}},82308(e,t,n){"use strict";n.d(t,{k:()=>i});var r=n(47143),o=n(79654),s=n(51609),a=n(10790);const i=(0,s.forwardRef)(({supportLink:e,supportPostId:t,children:n,onClick:s,style:i},c)=>{const l=(0,r.useDispatch)("automattic/help-center"),u=l?.setShowSupportDoc;return u?(0,a.jsx)("a",{href:e,onClick:n=>{n.preventDefault(),s?.(),u(e,t)},style:i,ref:c,children:n}):(0,a.jsx)(o.N,{openInNewTab:!0,href:e,onClick:s,style:i,ref:c,children:n})})},30335(e,t,n){"use strict";n.d(t,{C:()=>s,s:()=>o});var r=n(86087);function o(e){const t={};let n="span",o=e.icon;const s=document.createElement("div");s.innerHTML=e.icon;const a=s.querySelector("svg");return a&&(n="svg",o=a.innerHTML,Array.from(a.attributes).forEach(({nodeName:e,nodeValue:n})=>t[e]=n)),(0,r.createElement)(n,{...t,dangerouslySetInnerHTML:{__html:o||""}})}function s(e){return{src:o(e)}}},34972(e,t,n){"use strict";n.d(t,{A:()=>r});function r(){return"object"==typeof window?window?.Jetpack_Editor_Initial_State??null:null}},8573(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(34972);function o(e){const t=(0,r.A)(),n=t?.available_blocks?.[e]?.available??!1,o=t?.available_blocks?.[e]?.unavailable_reason??"unknown";return{available:n,...!n&&{details:t?.available_blocks?.[e]?.details??{},unavailableReason:o}}}},54815(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(97999);function o(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:(0,r.getScriptData)()?.site?.suffix??null}},73489(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(90372),o=n(14882),s=n(86087);const{tracks:a}=r.A,{recordEvent:i}=a,c=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:n="page_view",pageViewEventProperties:c={}}={})=>{const[l,u]=(0,s.useState)(!1),{isUserConnected:d,isRegistered:p,userConnectionData:h={}}=(0,o.A)(),{wpcomUser:{login:m,ID:g}={},blogId:f}=h.currentUser||{},b=(0,s.useCallback)(async(e,t={})=>{d&&g&&m&&i(e,t)},[d,g,m]);return(0,s.useEffect)(()=>{d&&g&&m&&f&&r.A.initialize(g,m,{blog_id:f})},[f,g,m,d]),(0,s.useEffect)(()=>{const r=e?`${t}_${e}_${n}`:null;p&&r&&(l||(b(r,c),u(!0)))},[l,t,e,n,p,c,b]),{recordEvent:b,tracks:a}}},89581(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(47143),o=n(86087);const s=()=>{};function a(e=null,t=s){const[n,a]=(0,o.useState)(!1),{isAutosaveablePost:i,isDirtyPost:c,currentPost:l}=(0,r.useSelect)(e=>{const t=e("core/editor");return{isAutosaveablePost:t.isEditedPostAutosaveable(),isDirtyPost:t.isEditedPostDirty(),currentPost:t.getCurrentPost()}},[]),u=Object.keys(l).length>0,d=(0,r.useSelect)(e=>!!window.wp?.customize||!!e("core/edit-widgets")),p=(0,r.dispatch)("core/editor").savePost,h=(0,r.useSelect)(e=>e("core").__experimentalGetDirtyEntityRecords()),m=async e=>{e?.preventDefault(),u?c&&i&&await p(e):await(async()=>{for(let e=0;e<h.length;e++)await(0,r.dispatch)("core").saveEditedEntityRecord(h[e].kind,h[e].name,h[e].key)})()};return{autosave:m,autosaveAndRedirect:async r=>{r?.preventDefault(),n||(a(!0),m(r).then(()=>{e&&function(e,t,n=!1){t&&t(e),n?window.open(e,"_blank"):window.top.location.href=e}(e,t,d)}))},isRedirecting:n}}},76923(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(87687),o=n(47143),s=n(86087);const a=e=>{const{isModuleActive:t,isChangingStatus:n,isLoadingModules:a}=(0,o.useSelect)(t=>{const n=t(r.store);return{isModuleActive:n.isModuleActive(e),isChangingStatus:n.isModuleUpdating(e),isLoadingModules:n.areModulesLoading(e)}},[e]),{updateJetpackModuleStatus:i}=(0,o.useDispatch)(r.store),c=(0,s.useCallback)(t=>i({name:e,active:t}),[e,i]);return(0,s.useMemo)(()=>({isLoadingModules:a,isChangingStatus:n,isModuleActive:t,changeStatus:c}),[a,n,t,c])}},20710(e,t,n){"use strict";n.d(t,{Bd:()=>a,Ti:()=>s,_X:()=>r,ds:()=>o});const r="free",o="tiered",s="unlimited",a=e=>e?0===e?.value?r:1===e?.value?s:o:null},58406(e,t,n){"use strict";n(86087)},25929(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(47143),o=n(52619),s=n(53265),a=n(89581);const i=()=>{},c="a8c.wpcom-block-editor.openCheckoutModal";function l(e,t=i){const{checkoutUrl:n,planData:l}=(0,r.useSelect)(t=>{const n=t("core/editor"),r=t("wordpress-com/plans"),{id:o,type:a}=n.getCurrentPost(),i=r&&r.getPlan(e);return{checkoutUrl:(0,s.Q4)({plan:i,planSlug:e,postId:o,postType:a}),planData:i}},[e]),{autosave:u,autosaveAndRedirect:d,isRedirecting:p}=(0,a.A)(n,t);return[n,async e=>{if(e.preventDefault(),(0,o.hasAction)(c))return e.preventDefault(),u(e),void(0,o.doAction)(c,{products:[l]});d(e)},p,l]}},35750(e,t,n){"use strict";n.d(t,{KZ:()=>h,M4:()=>u,QB:()=>d,T3:()=>l,ik:()=>g,k7:()=>p,oW:()=>f,ud:()=>m,ux:()=>c});var r=n(38377),o=n(56427),s=n(13022),a=(n(39169),n(47621),n(10790));const i=r.T["Jetpack Green 40"],c=({size:e=24,border:t=0,className:n="",color:r=i})=>{const c=t?-t/e*32:0;return(0,a.jsxs)(o.SVG,{className:(0,s.A)("jetpack-logo",n),width:e,height:e,viewBox:`${c} ${c} ${32-2*c} ${32-2*c}`,children:[(0,a.jsx)(o.Path,{className:"jetpack-logo__icon-circle",fill:r,stroke:t?"#fff":"transparent",strokeWidth:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),(0,a.jsx)(o.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`15,19 ${7-.5*c},19 15,${3-c}`}),(0,a.jsx)(o.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`17,${29+c} 17,13 ${25+.5*c},13`})]})},l={src:(0,a.jsx)(o.SVG,{viewBox:"0 0 100 100",children:(0,a.jsx)(o.Path,{d:"M100,44H72.4l23.9-13.8l-6-10.4L66.4,33.6L80.2,9.7l-10.4-6L56,27.59V0H44v27.6L30.2,3.7l-10.4,6l13.8,23.9 L9.7,19.8l-6,10.4L27.6,44H0V56h27.6L3.7,69.8l6,10.4l23.9-13.8L19.8,90.3l10.4,6L44,72.4V100H56V72.41l13.8,23.9l10.4-6L66.4,66.4 l23.9,13.8l6-10.4L72.4,56H100V44z M50,65.23c-8.41,0-15.23-6.82-15.23-15.23c0-8.41,6.82-15.23,15.23-15.23S65.23,41.59,65.23,50 C65.23,58.41,58.41,65.23,50,65.23z"})})},u={src:(0,a.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20.7 17",xmlSpace:"preserve",children:(0,a.jsx)(o.Path,{d:"m20.7 12.9-.9-11c0-.5-.2-.9-.5-1.3-.3-.3-.8-.5-1.3-.5L1.9 0h-.1c-.2 0-.5 0-.7.1C.9.2.7.4.5.5.4.7.2.9.1 1.1c-.1.2-.1.5-.1.7v.1l.9 13.4c0 .5.2.9.5 1.3.3.2.8.4 1.3.4H3l16.1-2c.4 0 .9-.3 1.1-.6.3-.3.5-.8.5-1.2v-.3zm-3.1.8L4.2 15.3H4c-.4 0-.8-.1-1-.4-.3-.3-.4-.6-.5-1L1.7 3.2v-.1c0-.4.2-.8.5-1 .3-.3.7-.4 1-.4h.1l13.5.1c.4 0 .8.1 1 .4.3.3.4.6.5 1L19 12v.3c0 .4-.2.7-.4 1-.3.2-.6.4-1 .4z"})})},d={src:(0,a.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 43",xmlSpace:"preserve",children:(0,a.jsx)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 31.908c0 1.376.893 2.268 2.27 2.268h6.63c3.956 0 7.192-1.337 9.392-3.68H12v1.412zM20.901 9H14.27C12.893 9 12 9.893 12 11.269v1.411h18.294C28.093 10.338 24.857 9 20.9 9zm5.787 16.176c0 1.113.726 1.835 1.845 1.835h3.973c.45-1.117.753-2.345.894-3.671h-4.867c-1.119 0-1.845.722-1.845 1.836zm-5.507-7.166c0 1.113.725 1.836 1.844 1.836H33.4a13.644 13.644 0 0 0-.894-3.672h-9.481c-1.119 0-1.844.723-1.844 1.836zm1.843 7.166c0-1.114-.726-1.836-1.845-1.836H12v3.671h9.18c1.118 0 1.843-.722 1.843-1.835zm-5.508-7.166c0-1.113-.726-1.836-1.844-1.836H12v3.672h3.672c1.118 0 1.844-.723 1.844-1.836zm41.151 3.199"})})},p=(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,a.jsx)(o.Path,{d:"M7 2v11h3v9l7-12h-4l4-8z",fill:"currentColor"})]}),h=(0,a.jsx)(o.SVG,{width:"29",height:"21",viewBox:"0 0 29 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79037 0.59375C4.0363 0.59375 5.13102 1.41658 5.47215 2.60947L8.8452 14.4044C8.8486 14.4164 8.85411 14.4273 8.86124 14.4368L12.8572 0.59375H15.0927H21.2721C25.6033 0.59375 28.5066 3.39892 28.5066 7.64565C28.5066 11.9411 25.5272 14.6196 21.0818 14.6196H18.1499H14.3719L13.6379 16.8813C12.9796 18.9095 11.0827 20.2839 8.94152 20.2839C6.80035 20.2839 4.90341 18.9095 4.24517 16.8813L0.137069 4.22276C-0.444671 2.43022 0.898038 0.59375 2.79037 0.59375ZM15.7374 10.4119H20.0156C21.8718 10.4119 22.9856 9.35018 22.9856 7.64565C22.9856 5.93137 21.8718 4.91839 20.0156 4.91839H17.5202L15.7374 10.4119Z",fill:"#000000"})}),m=(0,a.jsx)(o.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(o.Path,{d:"M4.75725 2.075C4.60279 1.97745 4.41041 1.97489 4.25365 2.06832C4.09689 2.16174 4 2.3367 4 2.52632V21.4737C4 21.6633 4.09689 21.8383 4.25365 21.9317C4.41041 22.0251 4.60279 22.0226 4.75725 21.925L19.7573 12.4513C19.9079 12.3562 20 12.1849 20 12C20 11.8151 19.9079 11.6438 19.7573 11.5487L4.75725 2.075Z",fill:"white"})}),g=(0,a.jsx)(o.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(o.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"})}),f=(0,a.jsx)(o.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(o.G,{children:(0,a.jsx)(o.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"})})})},49354(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(34972);function o(){return!(!(0,r.A)()?.jetpack?.is_current_user_connected&&!window?.JP_CONNECTION_INITIAL_STATE?.connectionStatus?.isUserConnected)}},44360(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(34972);function o(){return!0===(0,r.A)()?.jetpack?.is_my_jetpack_available}},9520(e,t,n){"use strict";n.d(t,{C:()=>d,x:()=>u});var r=n(97999),o=n(10067),s=n.n(o);const a=window?.JP_CONNECTION_INITIAL_STATE,i=s()("shared-extension-utils:connection");let c=!1;const l=e=>{c||(i(e),c=!0)};function u(){return(0,r.isSimpleSite)()?(l("Simple site connected ✅"),!0):(0,r.isWoASite)()?(l("Atomic site connected ✅"),!0):a?.connectionStatus?.isUserConnected?(l("Jetpack user is connected ✅"),!0):(l("User is not connected ❌"),!1)}function d(){if((0,r.isSimpleSite)())return!0;return!1==!(a?.userConnectionData?.currentUser?.permissions??{}).manage_options}},9061(e,t,n){"use strict";n.d(t,{C:()=>r.C,x:()=>r.x});var r=n(9520)},53265(e,t,n){"use strict";n.d(t,{Dk:()=>m,GT:()=>f,Q4:()=>l,W4:()=>u,aq:()=>d,sH:()=>g,tu:()=>p});var r=n(97999),o=n(27723),s=n(93832),a=n(34972),i=n(8573),c=n(54815);const __=o.__;function l({planSlug:e,plan:t,postId:n,postType:o}){const a=e.startsWith("jetpack_")?e:t?.path_slug,i=(void 0===o?()=>{const e=new URLSearchParams(window.location.search);return(0,s.addQueryArgs)(window.location.protocol+`//${(0,c.A)().replace("::","/")}/wp-admin/site-editor.php`,{postId:e.get("postId"),postType:e.get("postType"),plan_upgraded:1})}:()=>{const e=["page","post"].includes(o)?"":"edit";return(0,r.isSimpleSite)()?(0,s.addQueryArgs)("/"+[e,o,(0,c.A)(),n].filter(Boolean).join("/"),{plan_upgraded:1}):(0,s.addQueryArgs)(window.location.protocol+`//${(0,c.A)().replace("::","/")}/wp-admin/post.php`,{action:"edit",post:n,plan_upgraded:1})})();return(0,r.isWoASite)()?(0,s.addQueryArgs)(`https://wordpress.com/plans/${(0,c.A)()}`,{redirect_to:i,customerType:"business"}):a&&(0,s.addQueryArgs)(`https://wordpress.com/checkout/${(0,c.A)()}/${a}`,{redirect_to:i})}function u(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{available:n,unavailableReason:r}=(0,i.A)(t);return!n&&"missing_plan"===r}function d(e,t){return"missing_plan"===e&&t.required_plan}function p(e){if(!e)return!1;const t=/^jetpack\//.test(e)?e.substr(8,e.length):e,{details:n,unavailableReason:r}=(0,i.A)(t);return d(r,n)}const h=[{name:"core/cover",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"video",description:__("Upgrade your plan to use video covers","jetpack")},{name:"core/audio",mediaPlaceholder:!0,mediaReplaceFlow:!0,fileType:"audio",description:__("Upgrade your plan to upload audio","jetpack")}];function m(){return(0,a.A)()?.jetpack?.enable_upgrade_nudge??!1}const g=e=>h.some(t=>t.name===e),f=e=>h.filter(({name:t})=>t===e)[0]},82034(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(92279),o=n(8573);function s(e,t){const{available:n,unavailableReason:s}=(0,o.A)(e);return!!n&&(0,r.registerPlugin)(`jetpack-${e}`,t)}},41409(e,t,n){"use strict";n(97999)},62634(e,t,n){"use strict";n.d(t,{l:()=>s,p:()=>o});var r=n(34972);function o(){const e=(0,r.A)();return e?.jetpack?.is_private_site??!1}function s(){const e=(0,r.A)();return e?.jetpack?.is_coming_soon??!1}},65595(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(29491),o=(n(13371),n(10790));const s=e=>(0,r.createHigherOrderComponent)(t=>n=>(0,o.jsx)(t,{...n,className:n.name===e?"has-warning is-interactive":n.className}),"withHasWarningIsInteractiveClassNames");n.dn(s)},84705(e,t,n){"use strict";n.d(t,{d6:()=>r.d});var r=n(58992);n(91135)},91135(e,t,n){"use strict";n.d(t,{$:()=>o});var r=n(10790);const o=[{name:"amazon",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M13.582 8.182c-1.648.185-3.802.308-5.344.984-1.781.769-3.03 2.337-3.03 4.644 0 2.953 1.86 4.429 4.253 4.429 2.02 0 3.125-.477 4.685-2.065.516.747.685 1.109 1.629 1.894a.59.59 0 0 0 .672-.066l.006.006c.567-.505 1.599-1.401 2.18-1.888.231-.188.19-.496.009-.754-.52-.718-1.072-1.303-1.072-2.634V8.305c0-1.876.133-3.599-1.249-4.891C15.23 2.369 13.422 2 12.04 2 9.336 2 6.318 3.01 5.686 6.351c-.068.355.191.542.423.594l2.754.298c.258-.013.445-.266.494-.523.236-1.151 1.2-1.706 2.284-1.706.584 0 1.249.215 1.595.738.398.584.346 1.384.346 2.061zm-.533 5.906c-.451.8-1.169 1.291-1.967 1.291-1.09 0-1.728-.83-1.728-2.061 0-2.42 2.171-2.86 4.227-2.86v.615c.001 1.108.027 2.031-.532 3.015m7.634 5.251C18.329 21.076 14.917 22 11.979 22c-4.118 0-7.826-1.522-10.632-4.057-.22-.199-.024-.471.241-.317 3.027 1.762 6.771 2.823 10.639 2.823 2.608 0 5.476-.541 8.115-1.66.397-.169.73.262.341.55m.653 1.704c-.194.163-.379.076-.293-.139.284-.71.92-2.298.619-2.684s-1.99-.183-2.749-.092c-.23.027-.266-.173-.059-.319 1.348-.946 3.555-.673 3.811-.356.26.32-.066 2.533-1.329 3.59"})})})},{name:"apple-podcasts",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M20.999 7.986a26 26 0 0 0-.008-.543 8 8 0 0 0-.104-1.182 4 4 0 0 0-.37-1.125 3.8 3.8 0 0 0-1.653-1.652c-.36-.183-.728-.3-1.124-.37a8 8 0 0 0-1.182-.104 25 25 0 0 0-.544-.008q-.322-.003-.645-.002H8.631l-.645.001q-.271.002-.543.008c-.395.011-.793.034-1.183.104a4 4 0 0 0-1.124.37 3.78 3.78 0 0 0-1.652 1.653c-.183.36-.3.728-.37 1.125-.07.39-.094.787-.105 1.181a25 25 0 0 0-.008.544L3 8.63v6.739l.001.645q.002.27.008.543c.011.394.034.792.104 1.182.071.396.188.764.37 1.124a3.78 3.78 0 0 0 1.653 1.652c.36.183.728.3 1.124.37.39.07.788.094 1.183.105q.27.006.543.008L8.63 21h6.739l.645-.001q.27-.001.543-.008a8 8 0 0 0 1.182-.104 4 4 0 0 0 1.124-.37 3.8 3.8 0 0 0 1.652-1.653c.184-.36.3-.728.371-1.124.07-.39.093-.788.104-1.182q.007-.271.008-.543l.001-.646V8.631zm-7.62 6.943a29 29 0 0 1-.231 1.861c-.076.488-.137.75-.193.939-.091.305-.43.572-.96.572-.531 0-.87-.267-.961-.572a7 7 0 0 1-.194-.939 29 29 0 0 1-.23-1.861c-.045-.53-.069-.86-.027-1.245a.76.76 0 0 1 .219-.473c.247-.261.68-.428 1.192-.428s.946.167 1.193.428a.76.76 0 0 1 .219.473c.041.385.018.716-.027 1.245m-3.53-1.279a.24.24 0 0 1 .076.188c-.012.215-.008.425.006.661a.076.076 0 0 1-.118.068 3.87 3.87 0 0 1-1.695-3.253 3.89 3.89 0 0 1 3.723-3.822 3.874 3.874 0 0 1 2.335 7.075.076.076 0 0 1-.118-.068c.014-.236.019-.446.007-.66a.24.24 0 0 1 .075-.189c.61-.572.991-1.385.991-2.285a3.14 3.14 0 0 0-3.26-3.133 3.145 3.145 0 0 0-3.012 3.049c-.025.933.361 1.779.99 2.369m3.492-2.758a1.347 1.347 0 1 1-2.693 0 1.347 1.347 0 0 1 2.693 0m.569 5.932a.077.077 0 0 1-.103-.084q.045-.298.084-.593a.2.2 0 0 1 .117-.156 5.05 5.05 0 0 0 3.033-4.626 5.05 5.05 0 0 0-5.088-5.046c-2.741.022-4.979 2.256-5.005 4.996A5.05 5.05 0 0 0 9.98 15.99a.2.2 0 0 1 .118.157q.039.295.083.593a.077.077 0 0 1-.102.084 5.795 5.795 0 0 1-3.872-5.533c.04-3.149 2.62-5.703 5.77-5.712a5.793 5.793 0 0 1 5.805 5.786c0 2.519-1.62 4.667-3.872 5.459"})})})},{name:"behance",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M7.799 5.698c.589 0 1.12.051 1.606.156q.722.155 1.241.507.516.351.804.938c.188.387.281.871.281 1.443q0 .93-.421 1.551-.424.62-1.255 1.014 1.133.328 1.689 1.146.559.822.557 1.975 0 .935-.359 1.612a3.14 3.14 0 0 1-.973 1.114q-.613.432-1.399.637A6.1 6.1 0 0 1 7.963 18H2V5.698zm-.35 4.97q.721 0 1.192-.345.465-.344.463-1.119 0-.43-.152-.707a1.1 1.1 0 0 0-.416-.427 1.7 1.7 0 0 0-.596-.216 3.6 3.6 0 0 0-.697-.06H4.709v2.874zm.151 5.237q.401.001.759-.077c.243-.053.457-.137.637-.261.182-.12.332-.283.441-.491q.164-.31.163-.798-.002-.948-.533-1.357c-.356-.27-.83-.404-1.413-.404H4.709v3.388zm8.562-.041q.552.538 1.583.538.74 0 1.277-.374c.354-.248.571-.514.654-.79h2.155c-.347 1.072-.872 1.838-1.589 2.299-.708.463-1.572.693-2.58.693q-1.05 0-1.899-.337a4 4 0 0 1-1.439-.958 4.4 4.4 0 0 1-.904-1.484 5.4 5.4 0 0 1-.32-1.899q0-1 .329-1.863a4.4 4.4 0 0 1 .933-1.492q.607-.63 1.444-.994a4.6 4.6 0 0 1 1.857-.363q1.131-.001 1.98.44a3.94 3.94 0 0 1 1.389 1.181 4.8 4.8 0 0 1 .783 1.69q.24.947.171 1.983h-6.428c-.001.706.237 1.372.604 1.73m2.811-4.68c-.291-.321-.783-.496-1.384-.496q-.585 0-.973.2a2 2 0 0 0-.621.491 1.8 1.8 0 0 0-.328.628 2.7 2.7 0 0 0-.111.587h3.98c-.058-.625-.271-1.085-.563-1.41m-3.916-3.446h4.985V6.524h-4.985z"})})})},{name:"blogger-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M19.779 9.904h-.981l-.021.001a1.163 1.163 0 0 1-1.16-1.079l-.001-.013A5.813 5.813 0 0 0 11.803 3H8.871a5.813 5.813 0 0 0-5.813 5.813v6.375a5.813 5.813 0 0 0 5.813 5.813h6.257a5.814 5.814 0 0 0 5.813-5.813l.002-4.121a1.164 1.164 0 0 0-1.164-1.163M8.726 7.713h3.291a1.117 1.117 0 1 1 0 2.234H8.726a1.117 1.117 0 1 1 0-2.234m6.601 8.657H8.72a1.057 1.057 0 1 1 0-2.114h6.607a1.057 1.057 0 1 1 0 2.114"})})})},{name:"blogger",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M14.722 14.019a.654.654 0 0 1-.654.654H9.977a.654.654 0 0 1 0-1.308h4.091c.361 0 .654.293.654.654m-4.741-3.321h2.038a.692.692 0 0 0 0-1.384H9.981a.692.692 0 0 0 0 1.384M21 5v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-3.456 6.39a.72.72 0 0 0-.72-.72h-.607l-.013.001a.72.72 0 0 1-.718-.668l-.001-.008a3.6 3.6 0 0 0-3.599-3.599H10.07a3.6 3.6 0 0 0-3.599 3.599v3.947a3.6 3.6 0 0 0 3.599 3.599h3.874a3.6 3.6 0 0 0 3.599-3.599z"})})})},{name:"bluesky",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M21.2 3.3c-.5-.2-1.4-.5-3.6 1C15.4 6 12.9 9.2 12 11c-.9-1.8-3.4-5-5.7-6.7-2.2-1.6-3-1.3-3.6-1S2 4.6 2 5.1s.3 4.7.5 5.4c.7 2.3 3.1 3.1 5.3 2.8-3.3.5-6.2 1.7-2.4 5.9 4.2 4.3 5.7-.9 6.5-3.6.8 2.7 1.7 7.7 6.4 3.6 3.6-3.6 1-5.4-2.3-5.9 2.2.2 4.6-.5 5.3-2.8.4-.7.7-4.8.7-5.4 0-.5-.1-1.5-.8-1.8"})})})},{name:"codepen",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"m22.016 8.84-.007-.037q-.006-.037-.015-.072-.007-.022-.013-.042l-.023-.062-.02-.042a.4.4 0 0 0-.03-.057l-.025-.038-.035-.052-.03-.037q-.021-.026-.043-.045-.015-.018-.035-.035a.4.4 0 0 0-.048-.04l-.037-.03-.015-.012-9.161-6.096a.86.86 0 0 0-.955 0L2.359 8.237l-.015.012-.038.028-.048.04a.638.638 0 0 0-.078.082q-.018.018-.03.037-.018.026-.035.052l-.025.038q-.016.031-.03.059l-.02.041a1 1 0 0 0-.034.106q-.01.034-.016.071-.003.02-.006.037a1 1 0 0 0-.009.114v6.093q0 .056.008.112l.007.038q.006.035.015.072a.2.2 0 0 0 .013.04q.01.032.022.063l.02.04a.4.4 0 0 0 .055.096l.035.052.03.037.042.045.035.035q.023.02.048.04l.038.03.013.01 9.163 6.095a.858.858 0 0 0 .959.004l9.163-6.095.015-.01q.02-.015.037-.03l.048-.04q.02-.017.035-.035.025-.024.043-.045l.03-.037.035-.052.025-.038a.4.4 0 0 0 .03-.058l.02-.04.023-.063c.003-.013.01-.027.013-.04q.009-.037.015-.072l.007-.037q.006-.062.007-.117V8.954a1 1 0 0 0-.008-.114m-9.154-4.376 6.751 4.49-3.016 2.013-3.735-2.492zm-1.724 0v4.009l-3.735 2.494-3.014-2.013zm-7.439 6.098L5.853 12l-2.155 1.438zm7.439 8.974-6.749-4.491 3.015-2.011 3.735 2.492zM12 14.035 8.953 12 12 9.966 15.047 12zm.862 5.501v-4.009l3.735-2.492 3.016 2.011zm7.441-6.098L18.147 12l2.156-1.438z"})})})},{name:"deezer",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M20.129 3.662c.222-1.287.548-2.096.909-2.098h.001c.673.002 1.219 2.809 1.219 6.274s-.546 6.274-1.22 6.274c-.276 0-.531-.477-.736-1.276-.324 2.926-.997 4.937-1.776 4.937-.603 0-1.144-1.208-1.507-3.114-.248 3.624-.872 6.195-1.602 6.195-.458 0-.875-1.019-1.184-2.678C13.861 21.6 13.003 24 12.002 24s-1.861-2.399-2.231-5.824c-.307 1.659-.724 2.678-1.184 2.678-.73 0-1.352-2.571-1.602-6.195-.363 1.905-.903 3.114-1.507 3.114-.778 0-1.452-2.011-1.776-4.937-.204.802-.46 1.276-.736 1.276-.674 0-1.22-2.809-1.22-6.274s.546-6.274 1.22-6.274c.362 0 .685.812.91 2.098.357-2.22.94-3.662 1.6-3.662.784 0 1.463 2.04 1.784 5.002.314-2.156.791-3.53 1.325-3.53.749 0 1.385 2.703 1.621 6.474.443-1.933 1.085-3.146 1.795-3.146s1.352 1.214 1.795 3.146c.237-3.771.872-6.474 1.621-6.474.533 0 1.009 1.374 1.325 3.53.321-2.962 1-5.002 1.784-5.002.658 0 1.244 1.443 1.603 3.662M0 7.221c0-1.549.31-2.805.692-2.805s.692 1.256.692 2.805-.31 2.805-.692 2.805S0 8.77 0 7.221m22.616 0c0-1.549.31-2.805.692-2.805S24 5.672 24 7.221s-.31 2.805-.692 2.805-.692-1.256-.692-2.805"})})})},{name:"discord",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M20.33 4.523A20 20 0 0 0 15.379 3a14 14 0 0 0-.634 1.289 18.4 18.4 0 0 0-5.495 0A14 14 0 0 0 8.615 3 20 20 0 0 0 3.66 4.527C.527 9.163-.323 13.684.102 18.141a20 20 0 0 0 6.073 3.049 14.7 14.7 0 0 0 1.301-2.097 13 13 0 0 1-2.048-.978q.258-.189.502-.378a14.27 14.27 0 0 0 12.142 0q.247.202.502.378a13 13 0 0 1-2.052.98 14.5 14.5 0 0 0 1.301 2.095 19.9 19.9 0 0 0 6.076-3.047c.498-5.168-.851-9.648-3.568-13.62M8.013 15.4c-1.183 0-2.161-1.074-2.161-2.395S6.796 10.6 8.01 10.6s2.183 1.083 2.163 2.405S9.22 15.4 8.013 15.4m7.974 0c-1.186 0-2.16-1.074-2.16-2.395s.944-2.405 2.16-2.405 2.178 1.083 2.157 2.405-.951 2.395-2.158 2.395"})})})},{name:"dribbble",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10m8.434-8.631c-.292-.092-2.644-.794-5.32-.365 1.117 3.07 1.572 5.57 1.659 6.09a8.56 8.56 0 0 0 3.661-5.725m-5.098 6.507c-.127-.749-.623-3.361-1.822-6.477l-.056.019c-4.818 1.679-6.547 5.02-6.701 5.334A8.5 8.5 0 0 0 12 20.555a8.5 8.5 0 0 0 3.336-.679m-9.682-2.152c.193-.331 2.538-4.213 6.943-5.637q.167-.054.337-.102a29 29 0 0 0-.692-1.45c-4.266 1.277-8.405 1.223-8.778 1.216a8.497 8.497 0 0 0 2.19 5.973m-2.015-7.46c.382.005 3.901.02 7.897-1.041a55 55 0 0 0-3.167-4.94 8.57 8.57 0 0 0-4.73 5.981m6.359-6.555a46 46 0 0 1 3.187 5c3.037-1.138 4.323-2.867 4.477-3.085a8.51 8.51 0 0 0-7.664-1.915m8.614 2.903c-.18.243-1.612 2.078-4.77 3.367a27 27 0 0 1 .751 1.678c2.842-.357 5.666.215 5.948.275a8.5 8.5 0 0 0-1.929-5.32"})})})},{name:"dropbox",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 6.134 6.069 9.797 2 6.54l5.883-3.843zm-10 6.92 5.883 3.843L12 13.459 6.069 9.797zm10 .405 4.116 3.439L22 13.054l-4.069-3.257zM22 6.54l-5.884-3.843L12 6.134l5.931 3.663zm-9.989 7.66-4.129 3.426-1.767-1.153v1.291l5.896 3.539 5.897-3.539v-1.291l-1.769 1.153z"})})})},{name:"eventbrite",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M18.041 3.931 5.959 3A2.96 2.96 0 0 0 3 5.959v12.083A2.96 2.96 0 0 0 5.959 21l12.083-.931C19.699 19.983 21 18.744 21 17.11V6.89c0-1.634-1.259-2.863-2.959-2.959M16.933 8.17c-.082.215-.192.432-.378.551-.188.122-.489.132-.799.132-1.521 0-3.062-.048-4.607-.048q-.23 1.061-.451 2.128c.932-.004 1.873.005 2.81.005.726 0 1.462-.069 1.586.525.04.189-.001.426-.052.615-.105.38-.258.676-.625.783-.185.054-.408.058-.646.058-1.145 0-2.345.017-3.493.02-.169.772-.328 1.553-.489 2.333 1.57-.005 3.067-.041 4.633-.058.627-.007 1.085.194 1.009.85a2.2 2.2 0 0 1-.211.725c-.102.208-.248.376-.488.452-.237.075-.541.064-.862.078-.304.014-.614.008-.924.016-.309.009-.619.022-.919.022-1.253 0-2.429.08-3.683.073-.603-.004-1.014-.249-1.124-.757-.059-.273-.018-.58.036-.841a3543 3543 0 0 1 1.629-7.763c.056-.265.114-.511.225-.714a1.24 1.24 0 0 1 .79-.62c.368-.099.883-.047 1.344-.047.305 0 .612.008.914.016.925.026 1.817.03 2.747.053.304.007.615.016.915.016.621 0 1.17.073 1.245.614.039.288-.051.567-.132.783"})})})},{name:"facebook",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10"})})})},{name:"fediverse",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 743 743",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M181.131 275.137a68.9 68.9 0 0 1-29.465 29.328l161.758 162.389 38.998-19.764zm213.363 214.187-38.998 19.764 81.963 82.283a68.9 68.9 0 0 1 29.471-29.332zM581.646 339.391l-91.576 46.41 6.752 43.189 103.616-52.513a68.9 68.9 0 0 1-18.792-37.086m-144.738 73.351L220.383 522.477a68.9 68.9 0 0 1 18.795 37.089L443.66 455.934zM367.275 142.438l-104.48 203.97 30.848 30.967 110.623-215.957a68.9 68.9 0 0 1-36.991-18.98M235.621 399.459l-52.922 103.314a68.9 68.9 0 0 1 36.987 18.979l46.781-91.328zM150.768 304.918a68.9 68.9 0 0 1-34.416 7.195 69 69 0 0 1-6.651-.695l30.903 197.662a68.9 68.9 0 0 1 34.416-7.195 69 69 0 0 1 6.646.695zM239.342 560.545c.707 4.589.949 9.239.72 13.877a68.9 68.9 0 0 1-7.267 27.18l197.629 31.712c-.708-4.59-.95-9.24-.723-13.878a68.9 68.9 0 0 1 7.27-27.178zM601.133 377.199l-91.219 178.082a68.9 68.9 0 0 1 36.994 18.983l91.217-178.08a68.9 68.9 0 0 1-36.992-18.985M476.723 125.33a68.9 68.9 0 0 1-29.471 29.332l141.266 141.811a68.9 68.9 0 0 1 29.468-29.332zM347.787 104.631l-178.576 90.498a68.9 68.9 0 0 1 18.793 37.086l178.574-90.502a68.9 68.9 0 0 1-18.791-37.082M446.926 154.826a68.9 68.9 0 0 1-34.983 7.483 69 69 0 0 1-6.029-.633l15.818 101.291 43.163 6.926zm-16 167.028 37.4 239.482a68.9 68.9 0 0 1 33.914-6.943q3.625.206 7.207.791L474.09 328.777zM188.131 232.975c.734 4.66.988 9.383.758 14.095a68.9 68.9 0 0 1-7.16 26.983l101.369 16.281 19.923-38.908zm173.736 27.9-19.926 38.912 239.514 38.467a69 69 0 0 1-.695-13.719 68.9 68.9 0 0 1 7.349-27.324z"}),(0,r.jsx)("path",{fillOpacity:".996",d:"M412.284 156.054c34.538 1.882 64.061-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.882-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943M646.144 390.82c34.538 1.881 64.062-24.593 65.943-59.131s-24.592-64.061-59.13-65.943-64.062 24.593-65.943 59.131 24.592 64.061 59.13 65.943M495.086 685.719c34.538 1.881 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M167.866 633.211c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M116.692 305.86c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.881-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943"})]})})},{name:"feed",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M2 8.667V12c5.515 0 10 4.485 10 10h3.333c0-7.363-5.97-13.333-13.333-13.333M2 2v3.333c9.19 0 16.667 7.477 16.667 16.667H22C22 10.955 13.045 2 2 2m2.5 15a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"})})})},{name:"flickr",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5m11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5"})})})},{name:"foursquare",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M17.573 2H6.905C5.434 2 5 3.107 5 3.805v16.948c0 .785.422 1.077.66 1.172.238.097.892.177 1.285-.275 0 0 5.035-5.843 5.122-5.93.132-.132.132-.132.262-.132h3.26c1.368 0 1.588-.977 1.732-1.552.078-.318.692-3.428 1.225-6.122l.675-3.368C19.56 2.893 19.14 2 17.573 2m-1.078 5.22c-.053.252-.372.518-.665.518h-4.157c-.467 0-.802.318-.802.787v.508c0 .467.337.798.805.798h3.528c.331 0 .655.362.583.715s-.407 2.102-.448 2.295c-.04.193-.262.523-.655.523h-2.88c-.523 0-.683.068-1.033.503-.35.437-3.505 4.223-3.505 4.223-.032.035-.063.027-.063-.015V4.852c0-.298.26-.648.648-.648h8.562c.315 0 .61.297.528.683z"})})})},{name:"ghost",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M10.203 20.997H3.005v-3.599h7.198zm10.792-3.599h-7.193v3.599h7.193zm.003-7.198H3v3.599h17.998zm-7.195-7.197H3.005v3.599h10.798zm7.197 0h-3.599v3.599H21z"})})})},{name:"git",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M23.519 10.947 13.053.482a1.543 1.543 0 0 0-2.183 0L8.696 2.656l2.756 2.756a1.83 1.83 0 0 1 1.886.439 1.84 1.84 0 0 1 .436 1.898l2.656 2.657a1.83 1.83 0 0 1 1.899.436 1.837 1.837 0 0 1 0 2.597 1.84 1.84 0 0 1-2.599 0 1.84 1.84 0 0 1-.4-1.998l-2.478-2.477v6.521a1.837 1.837 0 0 1 .485 2.945 1.837 1.837 0 0 1-2.597 0 1.837 1.837 0 0 1 0-2.598 1.8 1.8 0 0 1 .602-.401V8.85a1.8 1.8 0 0 1-.602-.4 1.84 1.84 0 0 1-.395-2.009L7.628 3.723.452 10.898a1.544 1.544 0 0 0 0 2.184l10.467 10.467a1.544 1.544 0 0 0 2.183 0l10.417-10.418a1.546 1.546 0 0 0 0-2.184"})})})},{name:"github",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.419 2.865 8.166 6.839 9.489.5.09.682-.218.682-.484 0-.236-.009-.866-.014-1.699-2.782.602-3.369-1.34-3.369-1.34-.455-1.157-1.11-1.465-1.11-1.465-.909-.62.069-.608.069-.608 1.004.071 1.532 1.03 1.532 1.03.891 1.529 2.341 1.089 2.91.833.091-.647.349-1.086.635-1.337-2.22-.251-4.555-1.111-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.103-.254-.447-1.27.097-2.646 0 0 .84-.269 2.75 1.025A9.6 9.6 0 0 1 12 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.748-1.025 2.748-1.025.546 1.376.202 2.394.1 2.646.64.699 1.026 1.591 1.026 2.682 0 3.841-2.337 4.687-4.565 4.935.359.307.679.917.679 1.852 0 1.335-.012 2.415-.012 2.741 0 .269.18.579.688.481A10 10 0 0 0 22 12c0-5.523-4.477-10-10-10"})})})},{name:"google-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.05 16c-3.312 0-6-2.688-6-6s2.688-6 6-6c1.62 0 2.976.594 4.014 1.566L14.26 9.222c-.432-.408-1.188-.888-2.31-.888-1.986 0-3.606 1.65-3.606 3.672s1.62 3.672 3.606 3.672c2.298 0 3.144-1.59 3.3-2.532h-3.306v-2.238h5.616c.084.378.15.732.15 1.23 0 3.426-2.298 5.862-5.76 5.862"})})})},{name:"google-plus-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M8 11h6.61c.06.35.11.7.11 1.16 0 4-2.68 6.84-6.72 6.84-3.87 0-7-3.13-7-7s3.13-7 7-7c1.89 0 3.47.69 4.69 1.83l-1.9 1.83c-.52-.5-1.43-1.08-2.79-1.08-2.39 0-4.34 1.98-4.34 4.42S5.61 16.42 8 16.42c2.77 0 3.81-1.99 3.97-3.02H8zm15 0h-2V9h-2v2h-2v2h2v2h2v-2h2"})})})},{name:"google-plus",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-1.919 14.05a4.051 4.051 0 0 1 0-8.1c1.094 0 2.009.401 2.709 1.057l-1.15 1.118a2.23 2.23 0 0 0-1.559-.599c-1.341 0-2.434 1.114-2.434 2.479s1.094 2.479 2.434 2.479c1.551 0 2.122-1.073 2.227-1.709h-2.232v-1.511h3.791c.057.255.101.494.101.83.001 2.312-1.55 3.956-3.887 3.956M19 12.75h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19z"})})})},{name:"google",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05z"})})})},{name:"instagram",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 4.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.671.31.42.163.72.358 1.035.673s.51.615.673 1.035c.123.317.27.794.31 1.671.043.949.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671-.163.42-.358.72-.673 1.035s-.615.51-1.035.673c-.317.123-.794.27-1.671.31-.949.043-1.233.052-3.637.052s-2.688-.009-3.637-.052c-.877-.04-1.354-.187-1.671-.31a2.8 2.8 0 0 1-1.035-.673 2.8 2.8 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.671.163-.42.358-.72.673-1.035s.615-.51 1.035-.673c.317-.123.794-.27 1.671-.31.949-.043 1.234-.052 3.637-.052M12 3c-2.444 0-2.751.01-3.711.054-.958.044-1.612.196-2.184.418a4.4 4.4 0 0 0-1.594 1.039c-.5.5-.808 1.002-1.038 1.594-.223.572-.375 1.226-.419 2.184C3.01 9.249 3 9.556 3 12s.01 2.751.054 3.711c.044.958.196 1.612.418 2.185.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.267.054 3.711.054s2.751-.01 3.711-.054c.958-.044 1.612-.196 2.185-.418a4.4 4.4 0 0 0 1.594-1.038c.5-.5.808-1.002 1.038-1.594.222-.572.375-1.227.418-2.185.044-.96.054-1.267.054-3.711s-.01-2.751-.054-3.711c-.044-.958-.196-1.612-.418-2.185A4.4 4.4 0 0 0 19.49 4.51c-.5-.5-1.002-.808-1.594-1.038-.572-.222-1.227-.375-2.185-.418C14.751 3.01 14.444 3 12 3m0 4.378a4.622 4.622 0 1 0 0 9.244 4.622 4.622 0 0 0 0-9.244M12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6m4.804-8.884a1.08 1.08 0 1 0 .001 2.161 1.08 1.08 0 0 0-.001-2.161"})})})},{name:"json-feed",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"m8.522 17.424.027.027c1.076-1.076 1.854-.993 3.154.306l2.053 2.053c2.136 2.136 4.131 2.028 6.515-.356l.729-.728-1.548-1.548-.373.373c-1.349 1.349-2.293 1.366-3.585.075l-2.409-2.409c-1.242-1.242-2.475-1.366-3.659-.381l-.232-.232c1.01-1.225.911-2.368-.29-3.568l-2.16-2.162c-1.317-1.317-1.308-2.236.058-3.602l.372-.372-1.54-1.54-.728.729c-2.393 2.393-2.525 4.346-.439 6.433l1.78 1.78c1.3 1.3 1.383 2.095.315 3.163l.008.008a1.384 1.384 0 0 0 1.952 1.951"}),(0,r.jsx)("circle",{cx:"13.089",cy:"10.905",r:"1.383"}),(0,r.jsx)("circle",{cx:"16.349",cy:"7.644",r:"1.383"}),(0,r.jsx)("circle",{cx:"19.61",cy:"4.383",r:"1.383"})]})})},{name:"line",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M14.255 9.572v3.333c0 .084-.066.15-.15.15h-.534a.16.16 0 0 1-.122-.061l-1.528-2.063v1.978c0 .084-.066.15-.15.15h-.534a.15.15 0 0 1-.15-.15V9.576c0-.084.066-.15.15-.15h.529a.14.14 0 0 1 .122.066l1.528 2.063V9.577c0-.084.066-.15.15-.15h.534a.15.15 0 0 1 .155.145m-3.844-.15h-.534a.15.15 0 0 0-.15.15v3.333c0 .084.066.15.15.15h.534c.084 0 .15-.066.15-.15V9.572c0-.08-.066-.15-.15-.15m-1.289 2.794H7.664V9.572a.15.15 0 0 0-.15-.15H6.98a.15.15 0 0 0-.15.15v3.333q0 .062.042.103a.16.16 0 0 0 .103.042h2.142c.084 0 .15-.066.15-.15v-.534a.15.15 0 0 0-.145-.15m7.945-2.794h-2.142c-.08 0-.15.066-.15.15v3.333c0 .08.066.15.15.15h2.142c.084 0 .15-.066.15-.15v-.534a.15.15 0 0 0-.15-.15h-1.458v-.563h1.458c.084 0 .15-.066.15-.15v-.539a.15.15 0 0 0-.15-.15h-1.458v-.563h1.458c.084 0 .15-.066.15-.15v-.534c-.005-.08-.07-.15-.15-.15M22.5 5.33v13.373c-.005 2.1-1.725 3.802-3.83 3.797H5.297c-2.1-.005-3.802-1.73-3.797-3.83V5.297c.005-2.1 1.73-3.802 3.83-3.797h13.373c2.1.005 3.802 1.725 3.797 3.83m-2.888 5.747c0-3.422-3.431-6.206-7.645-6.206s-7.645 2.784-7.645 6.206c0 3.066 2.719 5.634 6.394 6.122.895.192.792.52.591 1.725-.033.192-.155.755.661.413s4.402-2.592 6.009-4.439c1.106-1.219 1.636-2.452 1.636-3.82"})})})},{name:"link",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M17 13H7v-2h10zm1-6h-1c-1.631 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1a4 4 0 0 0 4-4v-2a4 4 0 0 0-4-4M2 11v2a4 4 0 0 0 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.631 7 7 7H6a4 4 0 0 0-4 4"})})})},{name:"linkedin",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M19.7 3H4.3A1.3 1.3 0 0 0 3 4.3v15.4A1.3 1.3 0 0 0 4.3 21h15.4a1.3 1.3 0 0 0 1.3-1.3V4.3A1.3 1.3 0 0 0 19.7 3M8.339 18.338H5.667v-8.59h2.672zM7.004 8.574a1.548 1.548 0 1 1-.002-3.096 1.548 1.548 0 0 1 .002 3.096m11.335 9.764H15.67v-4.177c0-.996-.017-2.278-1.387-2.278-1.389 0-1.601 1.086-1.601 2.206v4.249h-2.667v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.779 3.203 4.092v4.711z"})})})},{name:"mail",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4.236-8 4.882-8-4.882V6h16z"})})})},{name:"mastodon",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M11.973 2.352c-2.468.02-4.842.286-6.225.921 0 0-2.742 1.229-2.742 5.415 0 .958-.018 2.105.012 3.32.1 4.094.75 8.128 4.535 9.129 1.745.462 3.244.56 4.45.494 2.19-.122 3.417-.781 3.417-.781l-.072-1.588s-1.565.491-3.32.431c-1.74-.06-3.576-.188-3.858-2.324a4 4 0 0 1-.04-.598s1.709.416 3.874.516c1.324.06 2.563-.076 3.824-.226 2.418-.29 4.524-1.78 4.79-3.141.416-2.144.38-5.232.38-5.232 0-4.186-2.74-5.415-2.74-5.415-1.383-.635-3.76-.9-6.227-.921zM9.18 5.622c1.028 0 1.804.395 2.318 1.185l.502.84.5-.84c.514-.79 1.292-1.186 2.32-1.186.888 0 1.605.313 2.15.922q.795.915.794 2.469v5.068h-2.008V9.16c0-1.037-.438-1.562-1.31-1.562-.966 0-1.448.622-1.448 1.857v2.693h-1.996V9.455c0-1.235-.484-1.857-1.45-1.857-.872 0-1.308.525-1.308 1.562v4.92H6.236V9.012q-.001-1.554.793-2.469c.547-.609 1.263-.922 2.15-.922"})})})},{name:"medium-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{fillRule:"nonzero",d:"M7.423 6c3.27 0 5.922 2.686 5.922 6s-2.651 6-5.922 6S1.5 15.313 1.5 12s2.652-6 5.923-6m9.458.351c1.635 0 2.961 2.53 2.961 5.65 0 3.118-1.325 5.648-2.96 5.648S13.92 15.119 13.92 12s1.325-5.649 2.96-5.649m4.577.589c.576 0 1.042 2.265 1.042 5.06s-.466 5.06-1.042 5.06c-.575 0-1.04-2.265-1.04-5.06s.465-5.06 1.04-5.06"})})})},{name:"medium",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M3 3v18h18V3zm15 4.26-1 .93a.28.28 0 0 0-.11.27v6.8a.27.27 0 0 0 .11.27l.94.93v.2h-4.75v-.2l1-1c.09-.1.09-.12.09-.27V9.74l-2.71 6.9h-.37L8 9.74v4.62a.67.67 0 0 0 .17.54l1.27 1.54v.2H5.86v-.2l1.27-1.54a.64.64 0 0 0 .17-.54V9a.5.5 0 0 0-.16-.4L6 7.26v-.2h3.52L12.23 13l2.38-5.94H18z"})})})},{name:"messenger",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12.026.375C5.462.375.375 5.172.375 11.652c0 3.389 1.393 6.318 3.66 8.341.391.352.311.556.377 2.73a.934.934 0 0 0 1.307.823c2.48-1.092 2.512-1.178 2.933-1.064 7.185 1.977 14.973-2.621 14.973-10.83 0-6.48-5.035-11.277-11.599-11.277m6.996 8.678L15.6 14.47a1.75 1.75 0 0 1-2.527.465l-2.723-2.038a.7.7 0 0 0-.844 0l-3.674 2.786c-.49.372-1.133-.216-.802-.735l3.422-5.417a1.75 1.75 0 0 1 2.527-.465l2.722 2.037a.7.7 0 0 0 .844 0L18.22 8.32c.489-.374 1.132.213.801.732"})})})},{name:"microblog",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M19.641 17.086c1.294-1.522 2.067-3.438 2.067-5.521 0-4.957-4.371-8.972-9.763-8.972s-9.763 4.015-9.763 8.972 4.371 8.972 9.763 8.972a10.5 10.5 0 0 0 3.486-.59.315.315 0 0 1 .356.112c.816 1.101 2.09 1.876 3.506 2.191a.194.194 0 0 0 .192-.309 3.82 3.82 0 0 1 .162-4.858zm-3.065-6.575-2.514 1.909.912 3.022a.286.286 0 0 1-.437.317l-2.592-1.802-2.592 1.802a.285.285 0 0 1-.436-.317l.912-3.022-2.515-1.909a.285.285 0 0 1 .167-.513l3.155-.066 1.038-2.981a.285.285 0 0 1 .539 0l1.038 2.981 3.155.066a.285.285 0 0 1 .17.513"})})})},{name:"nextdoor",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",strokeMiterlimit:"10",viewBox:"0 0 130 130",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M64.25 3.531c-31.144.337-57.596 24.22-60.469 55.907-3.064 33.799 21.857 63.685 55.657 66.75s63.685-21.857 66.75-55.657-21.857-63.686-55.657-66.75a62 62 0 0 0-6.281-.25m3.938 34.907C82.468 38.438 93.5 48.58 93.5 61.5v27c0 .685-.565 1.25-1.25 1.25H80.906a1.267 1.267 0 0 1-1.25-1.25V63.375c0-5.58-4.309-11.937-11.469-11.937-7.47 0-11.468 6.357-11.468 11.937V88.5c0 .685-.565 1.25-1.25 1.25H44.125c-.68 0-1.219-.57-1.219-1.25V64.156c0-.74-.529-1.364-1.25-1.531-13.13-2.93-15.115-10.285-15.375-21.125-.005-.332.142-.67.375-.906.233-.237.543-.375.875-.375l11.688.062c.66.01 1.187.529 1.218 1.188.13 4.44.438 9.406 4.438 9.406.83 0 1.443-1.179 1.813-1.719 4.41-6.48 12.28-10.718 21.5-10.718"})})})},{name:"patreon",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M20 7.408c-.003-2.299-1.746-4.182-3.79-4.862-2.54-.844-5.888-.722-8.312.453-2.939 1.425-3.862 4.545-3.896 7.656-.028 2.559.22 9.297 3.92 9.345 2.75.036 3.159-3.603 4.43-5.356.906-1.247 2.071-1.599 3.506-1.963 2.465-.627 4.146-2.626 4.142-5.273"})})})},{name:"pinterest-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12.289 2C6.617 2 3.606 5.648 3.606 9.622c0 1.846 1.025 4.146 2.666 4.878.25.111.381.063.439-.169.044-.175.267-1.029.365-1.428a.37.37 0 0 0-.091-.362c-.54-.63-.975-1.791-.975-2.873 0-2.777 2.194-5.464 5.933-5.464 3.23 0 5.49 2.108 5.49 5.122 0 3.407-1.794 5.768-4.13 5.768-1.291 0-2.257-1.021-1.948-2.277.372-1.495 1.089-3.112 1.089-4.191 0-.967-.542-1.775-1.663-1.775-1.319 0-2.379 1.309-2.379 3.059 0 1.115.394 1.869.394 1.869s-1.302 5.279-1.54 6.261c-.405 1.666.053 4.368.094 4.604.021.126.167.169.25.063.129-.165 1.699-2.419 2.142-4.051.158-.59.817-2.995.817-2.995.43.784 1.681 1.446 3.013 1.446 3.963 0 6.822-3.494 6.822-7.833C20.394 5.112 16.849 2 12.289 2"})})})},{name:"pinterest",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.236 2.636 7.855 6.356 9.312-.087-.791-.166-2.005.035-2.869.182-.78 1.173-4.971 1.173-4.971s-.299-.599-.299-1.484c0-1.39.806-2.429 1.809-2.429.853 0 1.265.641 1.265 1.409 0 .858-.546 2.141-.828 3.329-.236.996.499 1.807 1.481 1.807 1.777 0 3.144-1.874 3.144-4.579 0-2.394-1.72-4.068-4.177-4.068-2.845 0-4.515 2.134-4.515 4.34 0 .859.331 1.781.744 2.282a.3.3 0 0 1 .069.287c-.077.316-.246.995-.279 1.134-.044.183-.145.222-.334.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.051 6.607-6.051 3.469 0 6.165 2.472 6.165 5.775 0 3.446-2.173 6.22-5.189 6.22-1.013 0-1.966-.526-2.292-1.148l-.623 2.377c-.226.869-.835 1.957-1.243 2.622.936.289 1.93.445 2.961.445 5.523 0 10-4.477 10-10S17.523 2 12 2"})})})},{name:"pocket-casts",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2.223a7.777 7.777 0 1 0 0 15.555v-1.945A5.833 5.833 0 1 1 17.833 12h1.944A7.777 7.777 0 0 0 12 4.223m0 3.11a4.667 4.667 0 0 0 0 9.334V14.97A2.97 2.97 0 1 1 14.97 12h1.697A4.667 4.667 0 0 0 12 7.333"})})})},{name:"polldaddy",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.487 2 2 6.487 2 12c0 5.514 4.487 10 10 10 5.514 0 10-4.486 10-10 0-5.513-4.486-10-10-10m.991 1.68c2.361.084 4.657 1.251 6.197 3.136.283.334.541.693.774 1.067a7.78 7.78 0 0 0-6.094-2.94 7.76 7.76 0 0 0-5.896 2.703q-.008.006-.016.014l-.152.159-.031.032a6.12 6.12 0 0 0-1.633 4.165 6.15 6.15 0 0 0 6.143 6.143c.57 0 1.123-.081 1.649-.227-1.849.839-4.131.747-5.926-.324-1.841-1.089-3.171-3.111-3.433-5.313A7.39 7.39 0 0 1 6.69 6.137C8.294 4.5 10.634 3.563 12.991 3.68m3.373 8.519c-.049-2.024-1.587-3.889-3.544-4.174-1.927-.343-3.917.857-4.451 2.661a3.67 3.67 0 0 0 .2 2.653c.39.8 1.067 1.451 1.894 1.759 1.664.654 3.63-.27 4.173-1.863.593-1.58-.396-3.423-1.94-3.776-1.52-.407-3.161.757-3.204 2.243a2.36 2.36 0 0 0 .753 1.879c.501.476 1.23.667 1.871.529a2.07 2.07 0 0 0 1.469-1.134 1.91 1.91 0 0 0-.087-1.767c-.297-.513-.859-.863-1.429-.881a1.7 1.7 0 0 0-1.437.679 1.53 1.53 0 0 0-.18 1.489q.006.016.016.03c.193.634.774 1.1 1.467 1.117a1.6 1.6 0 0 1-.97-.183c-.466-.244-.809-.747-.893-1.29a1.8 1.8 0 0 1 .499-1.539 2.02 2.02 0 0 1 1.58-.606c.593.04 1.159.35 1.517.859.364.496.51 1.156.383 1.773-.116.62-.529 1.174-1.093 1.514a2.52 2.52 0 0 1-1.914.286c-.65-.161-1.226-.606-1.584-1.206a2.83 2.83 0 0 1-.341-2.031c.143-.7.573-1.321 1.176-1.753 1.193-.883 3.056-.751 4.106.411 1.106 1.1 1.327 3.027.406 4.371-.877 1.376-2.74 2.086-4.374 1.594-1.639-.449-2.913-2.079-3.031-3.853-.07-.884.13-1.797.583-2.577.445-.777 1.155-1.432 1.972-1.862 1.64-.88 3.816-.743 5.349.424 1.251.924 2.083 2.42 2.236 4.009l.001.03c0 2.9-2.359 5.26-5.26 5.26a5.2 5.2 0 0 1-1.947-.376 5 5 0 0 0 2.613-.079 4.96 4.96 0 0 0 2.514-1.751c.618-.828.95-1.861.901-2.869M12 21.113c-5.024 0-9.111-4.087-9.111-9.113 0-4.789 3.713-8.723 8.411-9.081a7 7 0 0 0-.397.06c-2.644.453-5.017 2.106-6.32 4.409-1.309 2.301-1.391 5.19-.3 7.527 1.056 2.34 3.253 4.156 5.776 4.553 2.497.44 5.133-.483 6.787-2.301 1.719-1.797 2.269-4.529 1.486-6.796-.583-1.81-1.976-3.331-3.7-4.046 3.417.594 6.174 3.221 6.174 6.781 0 1.004-.241 2.02-.657 2.966-1.498 2.984-4.586 5.041-8.149 5.041"})})})},{name:"print",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M9 16h6v2H9zm13 1h-3v3a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2V9a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2h1a2 2 0 0 1 2 2zM7 7h10V5H7zm10 7H7v6h10zm3-3.5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 20 10.5"})})})},{name:"quora",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M47.736 16.521c-.41-.81-.898-1.631-1.846-1.631a1 1 0 0 0-.527.107l-.322-.644a2.93 2.93 0 0 1 1.836-.595c1.26 0 1.914.605 2.431 1.397a6.8 6.8 0 0 0 .449-2.675c0-2.773-.869-4.199-2.929-4.199-1.992 0-2.851 1.465-2.851 4.199s.859 4.17 2.851 4.17a4 4 0 0 0 .869-.107zm.498.966a6 6 0 0 1-1.367.185 5.27 5.27 0 0 1-5.263-5.204c0-3.114 2.558-5.233 5.263-5.233s5.282 2.109 5.282 5.233a5.08 5.08 0 0 1-1.992 4.072c.381.566.781.956 1.319.956.595 0 .839-.459.878-.82h.781c.049.488-.195 2.48-2.373 2.48-1.319 0-2.012-.761-2.529-1.66zm5.624-2.646v-3.563c0-.371-.146-.586-.615-.586h-.498v-.956h3.251v5.048c0 .849.459 1.231 1.161 1.231a1.56 1.56 0 0 0 1.465-.839V11.28c0-.371-.146-.586-.615-.586h-.527v-.957h3.28v5.302c0 .527.195.732.8.732h.107v.976l-2.929.468V16.21h-.057a3.12 3.12 0 0 1-2.509 1.152c-1.28 0-2.304-.644-2.304-2.558zm12.059 1.611c1.152 0 1.592-1.005 1.611-3.027.02-1.982-.459-2.929-1.611-2.929-1.005 0-1.641.956-1.641 2.929 0 2.021.625 3.027 1.641 3.027m0 .956a3.906 3.906 0 0 1-3.974-3.974c0-2.334 1.836-3.886 3.974-3.886 2.226 0 4.004 1.582 4.004 3.886a3.867 3.867 0 0 1-4.004 3.974m4.072-.146v-.956h.312c.781 0 .859-.224.859-.908v-4.121c0-.371-.215-.586-.732-.586h-.42v-.955h2.968l.146 1.553h.108c.371-1.113 1.221-1.699 2.051-1.699.693 0 1.221.39 1.221 1.181 0 .547-.264 1.093-1.005 1.093-.664 0-.8-.449-1.358-.449-.488 0-.869.468-.869 1.152v2.783c0 .673.166.908.937.908h.439v.956h-4.658zm9.901-1.093c.956 0 1.338-.898 1.338-1.797v-1.211c-.732.722-2.304.742-2.304 2.021 0 .625.371.986.966.986m1.387 0c-.39.752-1.191 1.26-2.314 1.26-1.309 0-2.148-.732-2.148-1.914 0-2.451 3.417-1.797 4.423-3.427v-.185c0-1.25-.488-1.445-1.035-1.445-1.524 0-.83 1.631-2.226 1.631-.673 0-.937-.371-.937-.859 0-.927 1.093-1.67 3.173-1.67 1.963 0 3.163.537 3.163 2.49v3.114q-.02.742.595.742a1 1 0 0 0 .449-.127l.254.615c-.205.312-.752.869-1.836.869-.908 0-1.465-.42-1.543-1.113h-.01zm-68.554 2.558c-.83-1.641-1.807-3.3-3.711-3.3a2.9 2.9 0 0 0-1.093.215l-.644-1.299a5.66 5.66 0 0 1 3.662-1.211c2.548 0 3.857 1.231 4.892 2.792q.917-2.012.908-5.38c0-5.585-1.748-8.417-5.829-8.417-4.033 0-5.76 2.87-5.76 8.417s1.738 8.397 5.76 8.397a5.9 5.9 0 0 0 1.748-.224zm.996 1.953a9.8 9.8 0 0 1-2.744.371C5.614 21.041.371 16.764.371 10.545.371 4.277 5.614 0 10.965 0c5.448 0 10.642 4.248 10.642 10.545a10.25 10.25 0 0 1-4.013 8.201c.732 1.152 1.563 1.914 2.665 1.914 1.201 0 1.689-.927 1.768-1.66h1.572c.088.966-.4 4.999-4.775 4.999-2.646 0-4.052-1.543-5.106-3.339z"})})})},{name:"reddit",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10H3.448a.6.6 0 0 1-.424-1.024L4.93 19.07A9.97 9.97 0 0 1 2 12C2 6.477 6.477 2 12 2m3.656 2.666c-.804 0-1.475.57-1.632 1.33a2.69 2.69 0 0 0-2.4 2.672v.008c-1.466.062-2.804.479-3.866 1.137a2.335 2.335 0 1 0-2.418 3.963c.077 2.711 3.031 4.892 6.665 4.892s6.59-2.183 6.664-4.896a2.336 2.336 0 0 0-1.001-4.445c-.535 0-1.028.18-1.422.484-1.072-.664-2.425-1.08-3.905-1.136v-.007c0-.992.737-1.815 1.693-1.95l.038.134a1.668 1.668 0 0 0 3.25-.52c0-.92-.746-1.666-1.666-1.666M12.005 14.99c.811 0 1.588.04 2.307.112.123.013.201.14.154.254a2.667 2.667 0 0 1-4.922 0 .185.185 0 0 1 .152-.254 23 23 0 0 1 2.309-.112m-3.086-3.344c.654 0 1.154.687 1.115 1.534-.039.846-.527 1.155-1.181 1.155-.655 0-1.228-.345-1.189-1.191.04-.847.601-1.497 1.255-1.498m6.172 0c.654 0 1.216.65 1.255 1.498.039.846-.535 1.191-1.189 1.191-.653 0-1.142-.308-1.181-1.155s.46-1.533 1.115-1.533"})})})},{name:"share",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M18 16c-.788 0-1.499.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118A3 3 0 0 0 15 19a3 3 0 1 0 3-3"})})})},{name:"sms",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M17.696 4C20.069 4 22 5.973 22 8.398v4.357c0 2.04-1.368 3.783-3.261 4.266v4.427l-5.234-4.295h-7.2C3.93 17.153 2 15.18 2 12.755V8.398C2 5.973 3.931 4 6.304 4zM7.028 8.515c-.98 0-1.66.562-1.66 1.349-.009.497.322.91.985 1.178l.39.142c.242.097.305.171.305.297 0 .162-.131.251-.442.251s-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.315-.224-.741-.316-1.171-.316m10.302 0c-.98 0-1.66.562-1.66 1.349-.008.497.322.91.985 1.178l.39.142c.243.097.305.171.305.297 0 .162-.13.251-.442.251-.311 0-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.316-.224-.741-.316-1.171-.316m-3.733 0c-.297 0-.55.066-.78.202l-.144.098a2 2 0 0 0-.264.247l-.078.095-.027-.077c-.15-.34-.55-.565-1.033-.565l-.169.007a1.36 1.36 0 0 0-.896.42l-.08.09-.038-.363-.075-.067H8.994l-.075.079.024.634c.005.2.008.397.008.604v2.652l.075.075h1.178l.075-.075v-2.269q-.002-.168.042-.274c.083-.23.262-.392.496-.392.314 0 .483.267.483.753v2.182l.075.075h1.179l.075-.075v-2.277c0-.097.016-.213.043-.285.077-.224.26-.373.486-.373.33 0 .5.272.5.817v2.118l.074.075h1.179l.075-.075v-2.293c0-1.131-.537-1.763-1.39-1.763Z"})})})},{name:"snapchat",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M11.989 1.728c3.221.001 5.904 2.683 5.908 5.912q.002 1.133.067 2.094a.737.737 0 0 0 .902.669l1.009-.237a.6.6 0 0 1 .129-.015c.256 0 .492.175.55.434a.74.74 0 0 1-.479.861l-1.532.618a.823.823 0 0 0-.485.98c1.229 4.543 4.661 4.071 4.661 4.662 0 .743-2.587.848-2.821 1.082s-.01 1.368-.532 1.588a1.1 1.1 0 0 1-.409.056c-.393 0-.95-.077-1.536-.077-.509 0-1.04.058-1.507.273-1.239.572-2.433 1.641-3.914 1.641S9.325 21.2 8.086 20.628c-.467-.216-.998-.273-1.507-.273-.586 0-1.143.077-1.536.077-.17 0-.31-.014-.409-.056-.522-.22-.299-1.354-.532-1.588s-2.821-.337-2.821-1.08c0-.592 3.432-.119 4.661-4.662a.824.824 0 0 0-.486-.98l-1.532-.618a.74.74 0 0 1-.479-.861.56.56 0 0 1 .679-.419l1.009.237q.086.02.169.02a.737.737 0 0 0 .733-.689q.065-.961.067-2.094c.004-3.229 2.666-5.91 5.887-5.912m0-1.281c-.961 0-1.898.194-2.784.574A7.2 7.2 0 0 0 6.93 2.572a7.2 7.2 0 0 0-1.539 2.282A7.1 7.1 0 0 0 4.82 7.64a33 33 0 0 1-.029 1.369l-.375-.088a2 2 0 0 0-.421-.049 1.86 1.86 0 0 0-1.135.389 1.84 1.84 0 0 0-.666 1.049 2.024 2.024 0 0 0 1.271 2.335l1.124.454c-.744 2.285-2.117 2.723-3.041 3.018a5 5 0 0 0-.659.246C.087 16.76 0 17.436 0 17.708c0 .521.247.996.694 1.339.223.17.499.311.844.43.47.162 1.016.265 1.459.347.021.164.053.341.106.518.22.738.684 1.069 1.034 1.217.332.14.676.156.905.156.224 0 .462-.018.713-.036.269-.02.548-.041.823-.041.426 0 .743.051.97.155.311.144.64.337.989.542.972.571 2.073 1.217 3.462 1.217s2.49-.647 3.462-1.217c.349-.205.679-.399.989-.542.226-.105.544-.155.97-.155.275 0 .554.021.823.041.251.019.488.036.713.036.229 0 .573-.016.905-.156.35-.147.814-.478 1.034-1.217.053-.178.084-.354.106-.518.443-.082.989-.185 1.459-.347.345-.119.621-.259.844-.43.448-.342.694-.818.694-1.339 0-.272-.087-.948-.891-1.347a5 5 0 0 0-.659-.246c-.924-.295-2.297-.733-3.041-3.018l1.124-.454a2.025 2.025 0 0 0 1.271-2.335 1.83 1.83 0 0 0-.666-1.049 1.86 1.86 0 0 0-1.556-.34l-.375.088a33 33 0 0 1-.029-1.369 7.1 7.1 0 0 0-.575-2.789c-.365-.853-.886-1.62-1.547-2.282s-1.428-1.182-2.28-1.547a7.1 7.1 0 0 0-2.786-.574"})})})},{name:"soundcloud",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M23.587 13.923a3.303 3.303 0 0 1-3.344 3.117h-8.037a.674.674 0 0 1-.667-.67V7.717a.74.74 0 0 1 .444-.705s.739-.512 2.296-.512a5.27 5.27 0 0 1 2.702.742 5.35 5.35 0 0 1 2.516 3.485 3.1 3.1 0 0 1 .852-.116 3.217 3.217 0 0 1 3.237 3.312m-13.05-5.659c.242 2.935.419 5.612 0 8.538a.261.261 0 0 1-.519 0c-.39-2.901-.221-5.628 0-8.538a.26.26 0 0 1 .398-.25.26.26 0 0 1 .12.25zm-1.627 8.541a.273.273 0 0 1-.541 0 32.7 32.7 0 0 1 0-7.533.274.274 0 0 1 .544 0 29.4 29.4 0 0 1-.003 7.533m-1.63-7.788c.264 2.69.384 5.099-.003 7.782a.262.262 0 0 1-.522 0c-.374-2.649-.249-5.127 0-7.782a.264.264 0 0 1 .525 0m-1.631 7.792a.268.268 0 0 1-.532 0 27.6 27.6 0 0 1 0-7.034.27.27 0 1 1 .541 0 25.8 25.8 0 0 1-.01 7.034zm-1.63-5.276c.412 1.824.227 3.435-.015 5.294a.255.255 0 0 1-.504 0c-.22-1.834-.402-3.482-.015-5.295a.268.268 0 0 1 .535 0m-1.626-.277c.378 1.869.254 3.451-.01 5.325-.031.277-.506.28-.531 0-.239-1.846-.352-3.476-.01-5.325a.277.277 0 0 1 .551 0m-1.643.907c.396 1.239.261 2.246-.016 3.517a.258.258 0 0 1-.514 0c-.239-1.246-.336-2.274-.021-3.517a.276.276 0 0 1 .55 0z"})})})},{name:"spotify",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424a.62.62 0 0 1-.857.207c-2.348-1.435-5.304-1.76-8.785-.964a.622.622 0 1 1-.277-1.215c3.809-.871 7.077-.496 9.713 1.115a.623.623 0 0 1 .206.857M17.81 13.7a.78.78 0 0 1-1.072.257c-2.687-1.652-6.785-2.131-9.965-1.166A.779.779 0 1 1 6.32 11.3c3.632-1.102 8.147-.568 11.234 1.328a.78.78 0 0 1 .256 1.072m.105-2.835c-3.223-1.914-8.54-2.09-11.618-1.156a.935.935 0 1 1-.542-1.79c3.532-1.072 9.404-.865 13.115 1.338a.936.936 0 1 1-.955 1.608"})})})},{name:"squarespace",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M20.87 9.271a3.86 3.86 0 0 0-5.458 0l-6.141 6.141a.964.964 0 1 0 1.365 1.364l6.14-6.14a1.929 1.929 0 1 1 2.729 2.729l-6.022 6.022a1.93 1.93 0 0 0 2.729 0l4.658-4.658a3.86 3.86 0 0 0 0-5.458m-2.047 2.047a.965.965 0 0 0-1.365 0l-6.14 6.14a1.93 1.93 0 0 1-2.729 0 .964.964 0 1 0-1.364 1.364 3.86 3.86 0 0 0 5.458 0l6.14-6.14a.966.966 0 0 0 0-1.364m-2.047-6.141a3.86 3.86 0 0 0-5.458 0l-6.14 6.14a.964.964 0 1 0 1.364 1.364l6.141-6.14a1.93 1.93 0 0 1 2.729 0 .965.965 0 1 0 1.364-1.364m-2.047 2.047a.964.964 0 0 0-1.364 0l-6.14 6.141a1.929 1.929 0 1 1-2.729-2.729l6.022-6.022a1.93 1.93 0 0 0-2.729 0L3.13 9.271a3.86 3.86 0 0 0 5.458 5.458l6.14-6.141a.963.963 0 0 0 .001-1.364"})})})},{name:"stackexchange",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M4 11.606h16v3.272H4zM4 7.377h16v3.272H4zM17.514 3H6.55C5.147 3 4 4.169 4 5.614v.848h16v-.85C20 4.167 18.895 3 17.514 3M4 15.813v.85c0 1.445 1.147 2.614 2.55 2.614h6.799v3.463l3.357-3.463h.744c1.402 0 2.55-1.169 2.55-2.614v-.85z"})})})},{name:"stackoverflow",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M18.18 20.103V14.78h1.767v7.09H4v-7.09h1.767v5.323z"}),(0,r.jsx)("path",{d:"m7.717 14.275 8.673 1.813.367-1.744-8.673-1.813zm1.147-4.13 8.031 3.74.734-1.606-8.031-3.763zm2.226-3.946 6.815 5.667 1.124-1.354-6.815-5.667zM15.495 2l-1.423 1.055 5.277 7.113 1.423-1.055zM7.533 18.314h8.857v-1.767H7.533z"})]})})},{name:"stumbleupon",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 4.294a4.47 4.47 0 0 0-4.471 4.471v6.353a1.059 1.059 0 1 1-2.118 0v-2.824H2v2.941a4.471 4.471 0 0 0 8.942 0v-6.47a1.059 1.059 0 1 1 2.118 0v1.294l1.412.647 2-.647V8.765A4.473 4.473 0 0 0 12 4.294m1.059 8.059v2.882a4.471 4.471 0 0 0 8.941 0v-2.824h-3.412v2.824a1.059 1.059 0 1 1-2.118 0v-2.882l-2 .647z"})})})},{name:"substack",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M19.904 9.182H4.095V7.054h15.81v2.127M4.095 11.109V21L12 16.583 19.905 21v-9.891zM19.905 3H4.095v2.127h15.81z"})})})},{name:"telegram",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m3.08 14.757s-.25.625-.936.325l-2.541-1.949-1.63 1.486s-.127.096-.266.036c0 0-.12-.011-.27-.486s-.911-2.972-.911-2.972L6 12.349s-.387-.137-.425-.438c-.037-.3.437-.462.437-.462l10.03-3.934s.824-.362.824.238z"})})})},{name:"threads",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 192",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M141.537 88.988a67 67 0 0 0-2.518-1.143c-1.482-27.307-16.403-42.94-41.457-43.1h-.34c-14.986 0-27.449 6.396-35.12 18.036l13.779 9.452c5.73-8.695 14.724-10.548 21.348-10.548h.229c8.249.053 14.474 2.452 18.503 7.129 2.932 3.405 4.893 8.111 5.864 14.05-7.314-1.243-15.224-1.626-23.68-1.14-23.82 1.371-39.134 15.264-38.105 34.568.522 9.792 5.4 18.216 13.735 23.719 7.047 4.652 16.124 6.927 25.557 6.412 12.458-.683 22.231-5.436 29.049-14.127 5.178-6.6 8.453-15.153 9.899-25.93 5.937 3.583 10.337 8.298 12.767 13.966 4.132 9.635 4.373 25.468-8.546 38.376-11.319 11.308-24.925 16.2-45.488 16.351-22.809-.169-40.06-7.484-51.275-21.742C35.236 139.966 29.808 120.682 29.605 96c.203-24.682 5.63-43.966 16.133-57.317C56.954 24.425 74.204 17.11 97.013 16.94c22.975.17 40.526 7.52 52.171 21.847 5.71 7.026 10.015 15.86 12.853 26.162l16.147-4.308c-3.44-12.68-8.853-23.606-16.219-32.668C147.036 9.607 125.202.195 97.07 0h-.113C68.882.194 47.292 9.642 32.788 28.08 19.882 44.485 13.224 67.315 13.001 95.932L13 96v.067c.224 28.617 6.882 51.447 19.788 67.854C47.292 182.358 68.882 191.806 96.957 192h.113c24.96-.173 42.554-6.708 57.048-21.189 18.963-18.945 18.392-42.692 12.142-57.27-4.484-10.454-13.033-18.945-24.723-24.553M98.44 129.507c-10.44.588-21.286-4.098-21.82-14.135-.397-7.442 5.296-15.746 22.461-16.735q2.948-.17 5.79-.169c6.235 0 12.068.606 17.371 1.765-1.978 24.702-13.58 28.713-23.802 29.274"})})})},{name:"tiktok-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm7.531 3h2.053s-.114 2.635 2.85 2.82v2.04s-1.582.099-2.85-.87l.021 4.207a3.804 3.804 0 1 1-3.802-3.802h.533v2.082a1.73 1.73 0 0 0-1.922.648 1.727 1.727 0 0 0 1.947 2.646 1.73 1.73 0 0 0 1.19-1.642z"})})})},{name:"tiktok",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12.22 2h3.42s-.19 4.394 4.75 4.702v3.396s-2.636.166-4.75-1.448l.037 7.012a6.338 6.338 0 1 1-6.34-6.339h.89v3.472a2.882 2.882 0 1 0 2.024 2.752z"})})})},{name:"tripadvisor",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M21.01 9.859c.236-1.002.985-2.003.985-2.003l-3.341-.002C16.779 6.643 14.502 6 11.979 6 9.363 6 7 6.659 5.135 7.877L2 7.88s.74.988.98 1.983a4.98 4.98 0 0 0-.977 2.961 5.01 5.01 0 0 0 5.009 5.003 5 5 0 0 0 3.904-1.875l1.065 1.592 1.076-1.606a4.96 4.96 0 0 0 1.838 1.448 4.98 4.98 0 0 0 3.831.151 5.01 5.01 0 0 0 2.963-6.431 5 5 0 0 0-.679-1.247m-13.998 6.96a4 4 0 0 1-3.998-3.995 4 4 0 0 1 3.998-3.997 4 4 0 0 1 3.996 3.997 4 4 0 0 1-3.996 3.995m4.987-4.36A5.007 5.007 0 0 0 7.11 7.821c1.434-.613 3.081-.947 4.867-.947 1.798 0 3.421.324 4.853.966a4.984 4.984 0 0 0-4.831 4.619m6.288 4.134a3.97 3.97 0 0 1-3.058-.122 3.96 3.96 0 0 1-2.075-2.245v-.001a3.97 3.97 0 0 1 .118-3.056 3.97 3.97 0 0 1 2.246-2.077 4.005 4.005 0 0 1 5.135 2.366 4.006 4.006 0 0 1-2.366 5.135"}),(0,r.jsx)("path",{d:"M6.949 10.307a2.477 2.477 0 0 0-2.475 2.472 2.48 2.48 0 0 0 2.475 2.474 2.474 2.474 0 0 0 0-4.946m0 4.094a1.626 1.626 0 0 1-1.624-1.623 1.621 1.621 0 1 1 1.624 1.623M16.981 10.307a2.477 2.477 0 0 0-2.474 2.472 2.48 2.48 0 0 0 2.474 2.474 2.476 2.476 0 0 0 2.472-2.474 2.475 2.475 0 0 0-2.472-2.472m0 4.094a1.625 1.625 0 0 1-1.622-1.623 1.622 1.622 0 1 1 1.622 1.623"}),(0,r.jsx)("path",{d:"M7.778 12.778a.832.832 0 1 1-1.664.002.832.832 0 0 1 1.664-.002M16.981 11.947a.832.832 0 1 0 .002 1.666.832.832 0 0 0-.002-1.666"})]})})},{name:"tumblr-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M16.749 17.396c-.357.17-1.041.319-1.551.332-1.539.041-1.837-1.081-1.85-1.896V9.847h3.861v-2.91h-3.847V2.039h-2.817c-.046 0-.127.041-.138.144-.165 1.499-.867 4.13-3.783 5.181v2.484h1.945v6.282c0 2.151 1.587 5.206 5.775 5.135 1.413-.024 2.982-.616 3.329-1.126z"})})})},{name:"tumblr",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5.569 14.265c-2.446.042-3.372-1.742-3.372-2.998v-3.668H8.923v-1.45c1.703-.614 2.113-2.15 2.209-3.025.007-.06.054-.084.081-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.131 1.081 1.107.298-.008.697-.094.906-.194l.54 1.601c-.205.296-1.121.641-1.946.656"})})})},{name:"twitch",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M16.499 8.089h-1.636v4.91h1.636zm-4.499 0h-1.637v4.91H12zM4.228 3.178 3 6.451v13.092h4.499V22h2.456l2.454-2.456h3.681L21 14.636V3.178zm15.136 10.638L16.5 16.681H12l-2.453 2.453V16.68H5.863V4.814h13.501z"})})})},{name:"twitter-alt",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M22.23 5.924a8.2 8.2 0 0 1-2.357.646 4.12 4.12 0 0 0 1.804-2.27 8.2 8.2 0 0 1-2.606.996 4.103 4.103 0 0 0-6.991 3.742 11.65 11.65 0 0 1-8.457-4.287 4.1 4.1 0 0 0-.556 2.063 4.1 4.1 0 0 0 1.825 3.415 4.1 4.1 0 0 1-1.859-.513v.052a4.104 4.104 0 0 0 3.292 4.023 4.1 4.1 0 0 1-1.853.07 4.11 4.11 0 0 0 3.833 2.85 8.24 8.24 0 0 1-5.096 1.756 8 8 0 0 1-.979-.057 11.6 11.6 0 0 0 6.29 1.843c7.547 0 11.675-6.252 11.675-11.675q0-.267-.012-.531a8.3 8.3 0 0 0 2.047-2.123"})})})},{name:"twitter",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-2.534 6.71q.007.148.007.298c0 3.045-2.318 6.556-6.556 6.556a6.5 6.5 0 0 1-3.532-1.035q.27.032.55.032a4.63 4.63 0 0 0 2.862-.986 2.31 2.31 0 0 1-2.152-1.6 2.3 2.3 0 0 0 1.04-.04 2.306 2.306 0 0 1-1.848-2.259v-.029c.311.173.666.276 1.044.288a2.303 2.303 0 0 1-.713-3.076 6.54 6.54 0 0 0 4.749 2.407 2.305 2.305 0 0 1 3.926-2.101 4.6 4.6 0 0 0 1.463-.559 2.3 2.3 0 0 1-1.013 1.275c.466-.056.91-.18 1.323-.363-.31.461-.7.867-1.15 1.192"})})})},{name:"untappd",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"m11 13.299-5.824 8.133c-.298.416-.8.635-1.308.572-.578-.072-1.374-.289-2.195-.879S.392 19.849.139 19.323a1.4 1.4 0 0 1 .122-1.425l5.824-8.133a3.1 3.1 0 0 1 1.062-.927l1.146-.604c.23-.121.436-.283.608-.478.556-.631 2.049-2.284 4.696-4.957l.046-.212a.13.13 0 0 1 .096-.1l.146-.037a.135.135 0 0 0 .101-.141l-.015-.18a.13.13 0 0 1 .125-.142c.176-.005.518.046 1.001.393s.64.656.692.824a.13.13 0 0 1-.095.164l-.175.044a.13.13 0 0 0-.101.141l.012.15a.13.13 0 0 1-.063.123l-.186.112c-1.679 3.369-2.764 5.316-3.183 6.046a2.2 2.2 0 0 0-.257.73l-.205 1.281A3.1 3.1 0 0 1 11 13.3zm12.739 4.598-5.824-8.133a3.1 3.1 0 0 0-1.062-.927l-1.146-.605a2.1 2.1 0 0 1-.608-.478 51 51 0 0 0-.587-.654.09.09 0 0 0-.142.018 97 97 0 0 1-1.745 3.223 1.4 1.4 0 0 0-.171.485 3.5 3.5 0 0 0 0 1.103l.01.064c.075.471.259.918.536 1.305l5.824 8.133c.296.413.79.635 1.294.574a4.76 4.76 0 0 0 2.209-.881 4.76 4.76 0 0 0 1.533-1.802 1.4 1.4 0 0 0-.122-1.425zM8.306 3.366l.175.044a.134.134 0 0 1 .101.141l-.012.15a.13.13 0 0 0 .063.123l.186.112q.465.933.869 1.721c.026.051.091.06.129.019q.655-.703 1.585-1.668a.137.137 0 0 0 .003-.19c-.315-.322-.645-.659-1.002-1.02l-.046-.212a.13.13 0 0 0-.096-.099l-.146-.037a.135.135 0 0 1-.101-.141l.015-.18a.13.13 0 0 0-.123-.142c-.175-.005-.518.045-1.002.393-.483.347-.64.656-.692.824a.13.13 0 0 0 .095.164z"})})})},{name:"vimeo",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M22.396 7.164q-.139 3.039-4.245 8.32Q13.907 21 10.97 21q-1.82 0-3.079-3.359l-1.68-6.159q-.934-3.36-2.005-3.36-.234.001-1.634.98l-.978-1.261q1.541-1.353 3.037-2.708 2.056-1.774 3.084-1.869 2.429-.234 2.99 3.321.607 3.836.841 4.769.7 3.181 1.542 3.181.653 0 1.963-2.065 1.307-2.063 1.401-3.142.187-1.781-1.401-1.782-.747.001-1.541.341 1.534-5.024 5.862-4.884 3.21.095 3.024 4.161"})})})},{name:"vk",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M1.687 1.687C0 3.374 0 6.09 0 11.52v.96c0 5.431 0 8.146 1.687 9.833S6.09 24 11.52 24h.96c5.431 0 8.146 0 9.833-1.687S24 17.91 24 12.48v-.96c0-5.431 0-8.146-1.687-9.833S17.91 0 12.48 0h-.96C6.09 0 3.374 0 1.687 1.687M4.05 7.3c.13 6.24 3.25 9.99 8.72 9.99h.31v-3.57c2.01.2 3.53 1.67 4.14 3.57h2.84c-.78-2.84-2.83-4.41-4.11-5.01 1.28-.74 3.08-2.54 3.51-4.98h-2.58c-.56 1.98-2.22 3.78-3.8 3.95V7.3H10.5v6.92c-1.6-.4-3.62-2.34-3.71-6.92z"})})})},{name:"whatsapp",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"m2.048 22 1.406-5.136a9.9 9.9 0 0 1-1.323-4.955C2.133 6.446 6.579 2 12.042 2a9.85 9.85 0 0 1 7.011 2.906 9.85 9.85 0 0 1 2.9 7.011c-.002 5.464-4.448 9.91-9.91 9.91h-.004a9.9 9.9 0 0 1-4.736-1.206zm5.497-3.172.301.179a8.2 8.2 0 0 0 4.193 1.148h.003c4.54 0 8.235-3.695 8.237-8.237a8.2 8.2 0 0 0-2.41-5.828 8.18 8.18 0 0 0-5.824-2.416c-4.544 0-8.239 3.695-8.241 8.237a8.2 8.2 0 0 0 1.259 4.384l.196.312-.832 3.04zm9.49-4.554c-.062-.103-.227-.165-.475-.289s-1.465-.723-1.692-.806-.392-.124-.557.124-.64.806-.784.971-.289.186-.536.062-1.046-.385-1.991-1.229c-.736-.657-1.233-1.468-1.378-1.715s-.015-.382.109-.505c.111-.111.248-.289.371-.434.124-.145.165-.248.248-.413s.041-.31-.021-.434-.557-1.343-.763-1.839c-.202-.483-.407-.417-.559-.425-.144-.007-.31-.009-.475-.009a.9.9 0 0 0-.66.31c-.226.248-.866.847-.866 2.066s.887 2.396 1.011 2.562 1.746 2.666 4.23 3.739c.591.255 1.052.408 1.412.522.593.189 1.133.162 1.56.098.476-.071 1.465-.599 1.671-1.177.206-.58.206-1.075.145-1.179"})})})},{name:"woocommerce",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2M5.963 8.482c-.78 0-1.176.363-1.176 1.034 0 .67.418 1.055 1.176 1.055h.847v4.012c0 1.132.759 1.803 1.869 1.803.89 0 1.605-.44 2.143-1.45l1.199-2.244v1.903c0 1.12.725 1.79 1.846 1.79.88 0 1.528-.384 2.154-1.45l2.76-4.66c.604-1.023.175-1.792-1.154-1.793-.715 0-1.177.232-1.595 1.012l-1.901 3.572V9.89c0-.946-.451-1.407-1.286-1.408-.66 0-1.187.286-1.594 1.078l-1.792 3.506V9.923c0-1.011-.418-1.44-1.429-1.44z"})})})},{name:"wordpress",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M12.158 12.786 9.46 20.625a9 9 0 0 0 5.526-.144 1 1 0 0 1-.065-.124zM3.009 12a8.99 8.99 0 0 0 5.067 8.092L3.788 8.341A8.95 8.95 0 0 0 3.009 12m15.06-.454c0-1.112-.399-1.881-.741-2.48-.456-.741-.883-1.368-.883-2.109 0-.826.627-1.596 1.51-1.596q.06.002.116.007A8.96 8.96 0 0 0 12 3.009a8.98 8.98 0 0 0-7.512 4.052c.211.007.41.011.579.011.94 0 2.396-.114 2.396-.114.484-.028.541.684.057.741 0 0-.487.057-1.029.085l3.274 9.739 1.968-5.901-1.401-3.838c-.484-.028-.943-.085-.943-.085-.485-.029-.428-.769.057-.741 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.485-.028.542.684.057.741 0 0-.488.057-1.029.085l3.249 9.665.897-2.996q.684-1.753.684-2.907m1.82-3.86q.06.428.06.924c0 .912-.171 1.938-.684 3.22l-2.746 7.94a8.98 8.98 0 0 0 4.47-7.771 8.9 8.9 0 0 0-1.1-4.313M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})})})},{name:"x",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387z"})})})},{name:"xanga",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M9 9h6v6H9zM3 9h6V3H3zm12 0h6V3h-6zm0 12h6v-6h-6zM3 21h6v-6H3z"})})})},{name:"youtube",svg:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M21.8 8.001s-.195-1.378-.795-1.985c-.76-.797-1.613-.801-2.004-.847-2.799-.202-6.997-.202-6.997-.202h-.009s-4.198 0-6.997.202c-.39.047-1.242.051-2.003.847-.6.607-.795 1.985-.795 1.985S2 9.62 2 11.238v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.761.797 1.76.771 2.205.855 1.6.153 6.8.201 6.8.201s4.203-.006 7.001-.209c.391-.047 1.243-.051 2.004-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517c0-1.618-.2-3.237-.2-3.237M9.935 14.594l-.001-5.62 5.404 2.82z"})})})}]},58992(e,t,n){"use strict";n.d(t,{d:()=>c});var r=n(28120),o=n.n(r),s=n(51609),a=n(91135),i=n(10790);class c extends s.PureComponent{static defaultProps={size:24};static propTypes={icon:o().string.isRequired,size:o().number,onClick:o().func,className:o().string};render(){const{size:e,onClick:t,icon:n,className:r,...o}=this.props,c=["social-logo","social-logo-"+n,r].filter(Boolean).join(" "),l=a.$.find(e=>e.name===n);if(!l)return(0,i.jsx)("svg",{height:e,width:e,...o});return(0,s.cloneElement)(l.svg,{className:c,height:e,width:e,onClick:t,...o})}}},50513(e,t,n){"use strict";n.d(t,{_:()=>a});var r=n(51609),o=n(10790);function s(e){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 340 340",width:"36",height:"36","aria-hidden":"true",...e,children:(0,o.jsx)("path",{fill:"#DDD",d:"m169,.5a169,169 0 1,0 2,0zm0,86a76,76 0 1 1-2,0zM57,287q27-35 67-35h92q40,0 67,35a164,164 0 0,1-226,0"})})}function a({src:e,alt:t="",className:n,fallback:a=(0,o.jsx)(s,{className:n})}){const[i,c]=(0,r.useState)(""),l=(0,r.useCallback)(e=>{c(e.target.src)},[]);return!!e&&i!==e?(0,o.jsx)("img",{src:e,alt:t,onError:l,className:n}):a}},59002(e,t,n){"use strict";n.d(t,{S6:()=>o,_t:()=>s,dN:()=>a});var r=n(76223);const o=e=>(0,r.RA)((0,r.f5)(200),(0,r.ZT)(200))((0,r.$J)(e))||"",s=(e,t={})=>{const{offset:n=0,reserveUrlSpace:o=!0,hyperlinks:s}=t;return(0,r.x5)(e,{platform:"bluesky",maxChars:300-(o?40:0)-n,hyperlinks:s})},a=e=>(0,r.RA)((0,r.f5)(40),(0,r.ZT)(40))((0,r.$J)(e))||""},89014(e,t,n){"use strict";n.d(t,{c:()=>s});var r=n(51016),o=n(10790);const s=e=>(0,o.jsx)(r.O,{...e,user:void 0,media:void 0,customText:""})},51016(e,t,n){"use strict";n.d(t,{O:()=>u});var r=n(13022),o=n(21458),s=n(41817),a=n(26815),i=n(246),c=n(10519),l=(n(77212),n(10790));const u=e=>{const{user:t,media:n}=e;return(0,l.jsxs)("div",{className:"bluesky-preview__post",children:[(0,l.jsx)(c.Q,{user:t}),(0,l.jsxs)("div",{children:[(0,l.jsx)(i.A,{user:t}),(0,l.jsx)(s.A,{...e,children:n?.length?(0,l.jsx)("div",{className:(0,r.A)("bluesky-preview__media",{"as-grid":n.length>1}),children:n.map((e,t)=>(0,l.jsx)("div",{className:"bluesky-preview__media-item",children:e.type.startsWith("video/")?(0,l.jsx)("video",{controls:!0,children:(0,l.jsx)("source",{src:e.url,type:e.type})}):(0,l.jsx)("img",{alt:e.alt||"",src:e.url})},`bluesky-preview__media-item-${t}`))}):null}),n?.length?null:(0,l.jsx)(a.A,{...e}),(0,l.jsx)(o.A,{})]})]})}},21458(e,t,n){"use strict";n.d(t,{A:()=>o});n(48543);var r=n(10790);const o=()=>(0,r.jsxs)("div",{className:"bluesky-preview__post-actions",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("svg",{fill:"none",width:"18",viewBox:"0 0 24 24",height:"18",style:{color:"rgb(111, 134, 159)"},"aria-hidden":"true",children:(0,r.jsx)("path",{fill:"hsl(211, 20%, 53%)",fillRule:"evenodd",clipRule:"evenodd",d:"M2.002 6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H12.28l-4.762 2.858A1 1 0 0 1 6.002 21v-2h-1a3 3 0 0 1-3-3V6Zm3-1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 1 1 1v1.234l3.486-2.092a1 1 0 0 1 .514-.142h7a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-14Z"})}),(0,r.jsx)("span",{children:0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("svg",{fill:"none",width:"18",viewBox:"0 0 24 24",height:"18",style:{color:"rgb(111, 134, 159)"},"aria-hidden":"true",children:(0,r.jsx)("path",{fill:"hsl(211, 20%, 53%)",fillRule:"evenodd",clipRule:"evenodd",d:"M17.957 2.293a1 1 0 1 0-1.414 1.414L17.836 5H6a3 3 0 0 0-3 3v3a1 1 0 1 0 2 0V8a1 1 0 0 1 1-1h11.836l-1.293 1.293a1 1 0 0 0 1.414 1.414l2.47-2.47a1.75 1.75 0 0 0 0-2.474l-2.47-2.47ZM20 12a1 1 0 0 1 1 1v3a3 3 0 0 1-3 3H6.164l1.293 1.293a1 1 0 1 1-1.414 1.414l-2.47-2.47a1.75 1.75 0 0 1 0-2.474l2.47-2.47a1 1 0 0 1 1.414 1.414L6.164 17H18a1 1 0 0 0 1-1v-3a1 1 0 0 1 1-1Z"})}),(0,r.jsx)("span",{children:0})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("svg",{fill:"none",width:"18",viewBox:"0 0 24 24",height:"18",style:{color:"rgb(111, 134, 159)"},"aria-hidden":"true",children:(0,r.jsx)("path",{fill:"hsl(211, 20%, 53%)",fillRule:"evenodd",clipRule:"evenodd",d:"M16.734 5.091c-1.238-.276-2.708.047-4.022 1.38a1 1 0 0 1-1.424 0C9.974 5.137 8.504 4.814 7.266 5.09c-1.263.282-2.379 1.206-2.92 2.556C3.33 10.18 4.252 14.84 12 19.348c7.747-4.508 8.67-9.168 7.654-11.7-.541-1.351-1.657-2.275-2.92-2.557Zm4.777 1.812c1.604 4-.494 9.69-9.022 14.47a1 1 0 0 1-.978 0C2.983 16.592.885 10.902 2.49 6.902c.779-1.942 2.414-3.334 4.342-3.764 1.697-.378 3.552.003 5.169 1.286 1.617-1.283 3.472-1.664 5.17-1.286 1.927.43 3.562 1.822 4.34 3.764Z"})}),(0,r.jsx)("span",{children:0})]}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",width:"20",height:"20","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"hsl(211, 20%, 53%)",fillRule:"evenodd",clipRule:"evenodd",d:"M2 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm16 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm-6-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"})})})]})},41817(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(59002),o=(n(5332),n(10790));const s=({customText:e,url:t,children:n,appendUrl:s,hyperlinks:a})=>{const i=s&&!!t&&!e?.includes(t);return(0,o.jsxs)("div",{className:"bluesky-preview__body",children:[e?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,r._t)(e,{reserveUrlSpace:i,hyperlinks:a})}),i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("br",{}),(0,o.jsx)("a",{href:t,target:"_blank",rel:"noreferrer noopener",children:(0,r.dN)(t.replace(/^https?:\/\//,""))})]}):null]}):null,n]})}},26815(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(76223),o=n(2909),s=n(59002),a=(n(64106),n(10790));const i=({title:e,description:t,url:n,image:i,imageFocalPoint:c})=>(0,a.jsxs)("div",{className:"bluesky-preview__card",children:[i?(0,a.jsx)("div",{className:"bluesky-preview__card-image",children:(0,a.jsx)(o.Q,{src:i,alt:"",focalPoint:c})}):null,(0,a.jsxs)("div",{className:"bluesky-preview__card-text",children:[(0,a.jsx)("div",{className:"bluesky-preview__card-site",children:(0,r.GA)(n)}),(0,a.jsx)("div",{className:"bluesky-preview__card-title",children:(0,s.S6)(e)||(0,r.X2)(t)}),(0,a.jsx)("div",{className:"bluesky-preview__card-description",children:(0,r.$J)(t)})]})]})},246(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(27723),o=(n(57675),n(10790));const __=r.__,_x=r._x,s=({user:e})=>{const{displayName:t,address:n}=e||{};let r=n||"username.bsky.social";return r.startsWith("@")||(r="@"+r),(0,o.jsxs)("div",{className:"bluesky-preview__post-header",children:[(0,o.jsxs)("div",{className:"bluesky-preview__post-header-user",children:[(0,o.jsx)("span",{className:"bluesky-preview__post-header--displayname",children:t||__("Account name","jetpack")}),(0,o.jsx)("span",{className:"bluesky-preview__post-header--username",children:r})]}),(0,o.jsx)("div",{className:"bluesky-preview__post-header--separator",children:"·"}),(0,o.jsx)("div",{className:"bluesky-preview__post-header--date",children:_x("1h",'refers to the time since the post was published, e.g. "1h"',"jetpack")})]})}},10519(e,t,n){"use strict";n.d(t,{Q:()=>s});var r=n(50513),o=(n(3458),n(10790));const s=({user:e})=>{const{avatarUrl:t}=e||{};return(0,o.jsx)("div",{className:"bluesky-preview__post-sidebar",children:(0,o.jsx)("div",{className:"bluesky-preview__post-sidebar-user",children:(0,o.jsx)(r._,{className:"bluesky-preview__post-avatar",src:t})})})}},33853(e,t,n){"use strict";n.d(t,{Kq:()=>r,_I:()=>o,q8:()=>s});const r="article",o="landscape",s="portrait"},30759(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(76223),o=n(28469),s=n(68457),a=n(10790);const i=({text:e,url:t,forceUrlDisplay:n})=>{let i;return((0,r.ti)(e,"a")||n&&!!t&&!e.includes(t))&&(i=(0,a.jsx)("a",{className:"facebook-preview__custom-text-post-url",href:t,rel:"nofollow noopener noreferrer",target:"_blank",children:t})),(0,a.jsxs)("p",{className:"facebook-preview__custom-text",children:[(0,a.jsx)("span",{children:(0,a.jsx)(o.MW,{text:e,children:e=>(0,r.x5)(e,{platform:"facebook",maxChars:s.zl})})}),i]})}},68457(e,t,n){"use strict";n.d(t,{B2:()=>a,t2:()=>s,zl:()=>o});var r=n(76223);const o=63206,s=e=>(0,r.RA)((0,r.f5)(110),(0,r.ZT)(110))((0,r.$J)(e))||"",a=e=>(0,r.RA)((0,r.f5)(200),(0,r.ZT)(200))((0,r.$J)(e))||""},87446(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(51609),s=n(33853);const __=r.__,a=({mode:e})=>{const[t,n]=(0,o.useState)(e),[r,a]=(0,o.useState)(!0),i=(0,o.useCallback)(({target:e})=>{if(!t){const t=e;n(t.naturalWidth>t.naturalHeight?s._I:s.q8)}a(!1)},[t]),c=(0,o.useCallback)(()=>a(!1),[]);return[t,r,{alt:__("Facebook Preview Thumbnail","jetpack"),onLoad:i,onError:c}]}},66901(e,t,n){"use strict";n.d(t,{l:()=>m});var r=n(27723),o=n(33853),s=n(76223),a=n(2909),i=n(30759),c=n(68457),l=n(87446),u=n(44381),d=n(24795),p=n(98714),h=(n(85708),n(10790));const __=r.__,m=({url:e,title:t,description:n,image:r,imageFocalPoint:m,user:g,customText:f,type:b,imageMode:v,compactDescription:y})=>{const[k,w,x]=(0,l.A)({mode:v}),_=b===o.Kq,j="is-"+(_&&!r||k===o.q8?"portrait":"landscape");return(0,h.jsxs)("div",{className:"facebook-preview__post",children:[(0,h.jsx)(d.A,{user:g}),(0,h.jsxs)("div",{className:"facebook-preview__content",children:[f&&(0,h.jsx)(i.A,{text:f,url:e}),(0,h.jsxs)("div",{className:`facebook-preview__body ${j} ${r&&w?"is-loading":""}`,children:[(r||_)&&(0,h.jsx)("div",{className:`facebook-preview__image ${r?"":"is-empty"} ${j}`,children:r&&(0,h.jsx)(a.Q,{src:r,focalPoint:m,...x})}),(0,h.jsx)("div",{className:"facebook-preview__text",children:(0,h.jsxs)("div",{className:"facebook-preview__text-wrapper",children:[(0,h.jsx)("div",{className:"facebook-preview__url",children:(0,s.GA)(e)}),(0,h.jsx)("div",{className:"facebook-preview__title",children:(0,c.t2)(t)||(0,s.GA)(e)}),(0,h.jsxs)("div",{className:"facebook-preview__description "+(y?"is-compact":""),children:[n&&(0,c.B2)(n),_&&!n&& | |
| 23 | +// translators: Default description for a Facebook post | |
| 24 | +__("Visit the post for more.","jetpack")]}),(0,h.jsx)("div",{className:"facebook-preview__info",children:(0,h.jsx)(p.A,{name:"info"})})]})})]})]}),(0,h.jsx)(u.A,{})]})}},44381(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(98714),s=(n(12948),n(10790));const __=r.__,a=()=>(0,s.jsx)("ul",{className:"facebook-preview__post-actions",children:[{icon:"like", | |
| 25 | +// translators: Facebook "Like" action | |
| 26 | +label:__("Like","jetpack")},{icon:"comment", | |
| 27 | +// translators: Facebook "Comment" action | |
| 28 | +label:__("Comment","jetpack")},{icon:"share", | |
| 29 | +// translators: Facebook "Share" action | |
| 30 | +label:__("Share","jetpack")}].map(({icon:e,label:t})=>(0,s.jsxs)("li",{children:[(0,s.jsx)(o.A,{name:e}),(0,s.jsx)("span",{children:t})]},e))})},24795(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(27723),o=n(50513),s=n(98714),a=(n(97498),n(10790));const __=r.__,_x=r._x,i=({user:e,timeElapsed:t,hideOptions:n})=>(0,a.jsxs)("div",{className:"facebook-preview__post-header",children:[(0,a.jsxs)("div",{className:"facebook-preview__post-header-content",children:[(0,a.jsx)(o._,{className:"facebook-preview__post-header-avatar",src:e?.avatarUrl}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"facebook-preview__post-header-name",children:e?.displayName|| | |
| 31 | +// translators: name of a fictional Facebook User | |
| 32 | +__("Anonymous User","jetpack")}),(0,a.jsxs)("div",{className:"facebook-preview__post-header-share",children:[(0,a.jsx)("span",{className:"facebook-preview__post-header-time",children:t?__( | |
| 33 | +// translators: short version of `1 hour` | |
| 34 | +"1h","jetpack"):_x( | |
| 35 | +// translators: temporal indication of when a post was published | |
| 36 | +"Just now","","jetpack")}),(0,a.jsx)("span",{className:"facebook-preview__post-header-dot","aria-hidden":"true",children:"·"}),(0,a.jsx)(s.A,{name:"public"})]})]})]}),!n&&(0,a.jsx)("div",{className:"facebook-preview__post-header-more"})]})},98714(e,t,n){"use strict";n.d(t,{A:()=>o});n(18703);var r=n(10790);const o=({name:e})=>(0,r.jsx)("i",{className:`facebook-preview__post-icon facebook-preview__post-icon-${e}`})},54560(e,t,n){"use strict";n.d(t,{m:()=>u});var r=n(76223),o=n(92917),s=(n(97880),n(10790));const a=160,i=e=>{const t=e.startsWith("https://")?"https://":"http://",n=t+e.replace(t,"").split("/").join(" › ");return(0,r.RA)((0,r.f5)(68),(0,r.ZT)(68))(n)},c=(0,r.RA)((0,r.f5)(63),(0,r.y5)(23,73),(0,r.ZT)(63)),l=(0,r.RA)((0,r.f5)(a),(0,r.y5)(80,170),(0,r.ZT)(a)),u=({description:e="",siteIcon:t,siteTitle:n,title:a="",url:u=""})=>{const d=(0,r.GA)(u);return(0,s.jsx)("div",{className:"search-preview",children:(0,s.jsxs)("div",{className:"search-preview__display",children:[(0,s.jsxs)("div",{className:"search-preview__header",children:[(0,s.jsxs)("div",{className:"search-preview__branding",children:[(0,s.jsx)(o.F,{className:"search-preview__icon",src:t}),(0,s.jsxs)("div",{className:"search-preview__site",children:[(0,s.jsx)("div",{className:"search-preview__site--title",children:n||d}),(0,s.jsx)("div",{className:"search-preview__url",children:i(u)})]})]}),(0,s.jsx)("div",{className:"search-preview__menu",children:(0,s.jsx)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})})})]}),(0,s.jsx)("div",{className:"search-preview__title",children:c(a)}),(0,s.jsx)("div",{className:"search-preview__description",children:l((0,r.$J)(e))})]})})}},76223(e,t,n){"use strict";n.d(t,{$J:()=>p,GA:()=>a,RA:()=>d,TR:()=>b,X2:()=>h,ZT:()=>u,f5:()=>c,hV:()=>f,ti:()=>m,vI:()=>g,x5:()=>y,y5:()=>l});var r=n(86087),o=n(27723),s=n(10790);const a=e=>{const t=e.replace(/^[^/]+:\/\//,""),n=t.indexOf("/");return-1===n?t:t.substring(0,n)},i=e=>Array.from(e).length,c=e=>t=>i(t)<=e&&t,l=(e,t)=>n=>{const r=n.slice(0,t),o=r.lastIndexOf(" ");return o>e&&o<t&&r.slice(0,o).concat("…")},u=e=>t=>{return(n=t,r=0,o=e,Array.from(n).slice(r,o).join("")).concat("…");var n,r,o},d=(...e)=>t=>e.find(e=>!1!==e(t))?.(t),p=(e,t=[])=>{const n=new RegExp(`(<([^${t.join("")}>]+)>)`,"gi");return e?e.replace(n,""):""},h=e=>p(e).substring(0,50),m=(e,t)=>new RegExp(`<${t}[^>]*>`,"gi").test(e),g=(new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short"}).format,new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"2-digit",year:"numeric"}).format),f=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format,b=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format;const v={twitter:"https://twitter.com/hashtag/%1$s",facebook:"https://www.facebook.com/hashtag/%1$s",linkedin:"https://www.linkedin.com/feed/hashtag/?keywords=%1$s",instagram:"https://www.instagram.com/explore/tags/%1$s",mastodon:"https://%2$s/tags/%1$s",nextdoor:"https://nextdoor.com/hashtag/%1$s",threads:"https://www.threads.net/search?q=%1$s&serp_type=tags",tumblr:"https://www.tumblr.com/tagged/%1$s",bluesky:"https://bsky.app/hashtag/%1$s"};function y(e,t){const{platform:n,maxChars:a,maxLines:c,hyperlinkHashtags:l=!0,hyperlinkUrls:d="instagram"!==n,hyperlinks:h}=t;let m=p(e);if(m=m.replaceAll(/(?:\s*[\n\r]){2,}/g,"\n\n"),a&&i(m)>a&&(m=u(a)(m)),c){const e=m.split("\n");e.length>c&&(m=e.slice(0,c).join("\n"))}const g={},f=[],b=(e,t)=>f.some(n=>e<n.end&&n.start<t);if(d){[...m.matchAll(/https?:\/\/\S+/g)].forEach((e,t)=>{const n=e[0],r=e.index??0;g[`Link${t}`]=(0,s.jsx)("a",{href:n,rel:"noopener noreferrer",target:"_blank",children:n}),f.push({start:r,end:r+n.length,value:`<Link${t} />`})})}if(l&&v[n]){const e=[...m.matchAll(/(^|\s)#(\w+)/g)],r=v[n];e.forEach((e,n)=>{const[,a,i]=e,c=(e.index??0)+a.length,l=c+i.length+1;if(b(c,l))return;const u=(0,o.sprintf)(r,i,t.hashtagDomain);g[`Hashtag${n}`]=(0,s.jsx)("a",{href:u,rel:"noopener noreferrer",target:"_blank",children:`#${i}`}),f.push({start:c,end:l,value:`<Hashtag${n} />`})})}h?.length&&h.forEach(({text:e,href:t,occurrence:n=0},r)=>{if(!e)return;const o=((e,t,n)=>{let r=e.indexOf(t);for(;-1!==r&&n>0;)n--,r=e.indexOf(t,r+1);return r})(m,e,n);if(-1===o)return;const a=o+e.length;if(b(o,a))return;const i=`Hyperlink${r}`;g[i]=(0,s.jsx)("a",{href:t,rel:"noopener noreferrer",target:"_blank"}),f.push({start:o,end:a,value:`<${i}>${e}</${i}>`})}),f.sort((e,t)=>t.start-e.start);for(const{start:e,end:t,value:n}of f)m=m.slice(0,e)+n+m.slice(t);return m=m.replace(/\n/g,"<br />"),g.br=(0,s.jsx)("br",{}),(0,r.createInterpolateElement)(m,g)}},83476(e,t,n){"use strict";n.d(t,{f:()=>o});var r=n(10790);function o(e){return(0,r.jsx)("svg",{focusable:"false","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})})}},13755(e,t,n){"use strict";n.d(t,{v:()=>r});const r=3e3},77123(e,t,n){"use strict";n.d(t,{X:()=>a});var r=n(76223),o=n(1798),s=n(10790);function a(e){return(0,s.jsx)(o.$,{name:"",profileImage:"",...e,description:"",media:void 0,title:e.title||(0,r.X2)(e.description)})}},1798(e,t,n){"use strict";n.d(t,{$:()=>u});var r=n(27723),o=n(50513),s=n(76223),a=n(28469),i=n(2909),c=n(13755),l=(n(66298),n(10790));const __=r.__;function u({articleReadTime:e=5,image:t,imageFocalPoint:n,jobTitle:u,name:d,profileImage:p,description:h,media:m,title:g,url:f}){const b=!!m?.length;return(0,l.jsx)("div",{className:"linkedin-preview__wrapper",children:(0,l.jsxs)("section",{className:"linkedin-preview__container "+(b?"has-media":""),children:[(0,l.jsxs)("div",{className:"linkedin-preview__header",children:[(0,l.jsx)("div",{className:"linkedin-preview__header--avatar",children:(0,l.jsx)(o._,{src:p})}),(0,l.jsxs)("div",{className:"linkedin-preview__header--profile",children:[(0,l.jsxs)("div",{className:"linkedin-preview__header--profile-info",children:[(0,l.jsx)("div",{className:"linkedin-preview__header--profile-name",children:d||__("Account Name","jetpack")}),(0,l.jsx)("span",{children:"•"}),(0,l.jsx)("div",{className:"linkedin-preview__header--profile-actor",children: | |
| 37 | +// translators: refers to the actor level of the post being shared, e.g. "1st", "2nd", "3rd", etc. | |
| 38 | +__("1st","jetpack")})]}),u?(0,l.jsx)("div",{className:"linkedin-preview__header--profile-title",children:u}):null,(0,l.jsxs)("div",{className:"linkedin-preview__header--profile-meta",children:[(0,l.jsx)("span",{children: | |
| 39 | +// translators: refers to the time since the post was published, e.g. "1h" | |
| 40 | +__("1h","jetpack")}),(0,l.jsx)("span",{children:"•"}),(0,l.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",focusable:"false",children:(0,l.jsx)("path",{d:"M8 1a7 7 0 107 7 7 7 0 00-7-7zM3 8a5 5 0 011-3l.55.55A1.5 1.5 0 015 6.62v1.07a.75.75 0 00.22.53l.56.56a.75.75 0 00.53.22H7v.69a.75.75 0 00.22.53l.56.56a.75.75 0 01.22.53V13a5 5 0 01-5-5zm6.24 4.83l2-2.46a.75.75 0 00.09-.8l-.58-1.16A.76.76 0 0010 8H7v-.19a.51.51 0 01.28-.45l.38-.19a.74.74 0 01.68 0L9 7.5l.38-.7a1 1 0 00.12-.48v-.85a.78.78 0 01.21-.53l1.07-1.09a5 5 0 01-1.54 9z"})})]})]})]}),(0,l.jsxs)("div",{className:"linkedin-preview__content",children:[h?(0,l.jsxs)("div",{className:"linkedin-preview__caption",children:[(0,l.jsx)("span",{children:(0,l.jsx)(a.MW,{text:h,children:e=>(0,s.x5)(e,{platform:"linkedin",maxChars:c.v})})}),b&&f&&!h.includes(f)&&(0,l.jsxs)(l.Fragment,{children:[" - ",(0,l.jsx)("a",{href:f,rel:"nofollow noopener noreferrer",target:"_blank",children:f})]})]}):null,b?(0,l.jsx)("div",{className:"linkedin-preview__media",children:m.map((e,t)=>(0,l.jsx)("div",{className:"linkedin-preview__media-item",children:e.type.startsWith("video/")?(0,l.jsx)("video",{controls:!0,children:(0,l.jsx)("source",{src:e.url,type:e.type})}):(0,l.jsx)("img",{alt:e.alt||"",src:e.url})},`linkedin-preview__media-item-${t}`))}):(0,l.jsxs)("article",{children:[t?(0,l.jsx)(i.Q,{className:"linkedin-preview__image",src:t,alt:"",focalPoint:n}):null,f?(0,l.jsxs)("div",{className:"linkedin-preview__description",children:[(0,l.jsx)("h2",{className:"linkedin-preview__description--title",children:g||(0,s.X2)(h)}),(0,l.jsxs)("div",{className:"linkedin-preview__description--meta",children:[(0,l.jsx)("span",{className:"linkedin-preview__description--url",children:(0,s.GA)(f)}),(0,l.jsx)("span",{children:"•"}),(0,l.jsx)("span",{children:(0,r.sprintf)( | |
| 41 | +// translators: %d is the number of minutes it takes to read the article | |
| 42 | +__("%d min read","jetpack"),e)})]})]}):null]})]})]})})}},17562(e,t,n){"use strict";n.d(t,{w:()=>r});const r="mastodon.social"},50710(e,t,n){"use strict";n.d(t,{gD:()=>o});var r=n(76223);const o=e=>(0,r.RA)((0,r.f5)(200),(0,r.ZT)(200))((0,r.$J)(e))||""},5874(e,t,n){"use strict";n.d(t,{i:()=>i});var r=n(74822),o=n(23163),s=n(39490),a=(n(75312),n(10790));const i=e=>{const{user:t}=e;return(0,a.jsxs)("div",{className:"mastodon-preview__post",children:[(0,a.jsx)(s.A,{user:t}),(0,a.jsx)(o.A,{...e,customImage:""}),(0,a.jsx)(r.A,{})]})}},74822(e,t,n){"use strict";n.d(t,{A:()=>o});n(16307);var r=n(10790);const o=()=>(0,r.jsxs)("div",{className:"mastodon-preview__post-actions",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M760-200v-160q0-50-35-85t-85-35H273l144 144-57 56-240-240 240-240 57 56-144 144h367q83 0 141.5 58.5T840-360v160h-80Z"})})," ",(0,r.jsx)("span",{children:0})]}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M280-80 120-240l160-160 56 58-62 62h406v-160h80v240H274l62 62-56 58Zm-80-440v-240h486l-62-62 56-58 160 160-160 160-56-58 62-62H280v160h-80Z"})})}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z"})})}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M200-120v-640q0-33 23.5-56.5T280-840h400q33 0 56.5 23.5T760-760v640L480-240 200-120Zm80-122 200-86 200 86v-518H280v518Zm0-518h400-400Z"})})}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M240-400q-33 0-56.5-23.5T160-480q0-33 23.5-56.5T240-560q33 0 56.5 23.5T320-480q0 33-23.5 56.5T240-400Zm240 0q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm240 0q-33 0-56.5-23.5T640-480q0-33 23.5-56.5T720-560q33 0 56.5 23.5T800-480q0 33-23.5 56.5T720-400Z"})})})]})},23163(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(27723),o=n(13022),s=n(76223),a=n(2909),i=n(50710),c=(n(84422),n(10790));const __=r.__,l=({siteName:e,title:t,description:n,url:r,image:l,customImage:u,imageFocalPoint:d})=>(0,c.jsxs)("div",{className:(0,o.A)("mastodon-preview__card",{"has-image":l}),children:[(0,c.jsx)("div",{className:"mastodon-preview__card-img",children:l||u?(0,c.jsx)(a.Q,{src:l||u,alt:__("Mastodon preview thumbnail","jetpack"),focalPoint:d}):(0,c.jsx)("div",{className:"mastodon-preview__card-img--fallback",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520h200L520-800v200Z"})})})}),(0,c.jsxs)("div",{className:"mastodon-preview__card-text",children:[(0,c.jsx)("span",{className:"mastodon-preview__card-site",children:e||(0,s.GA)(r)}),(0,c.jsx)("span",{className:"mastodon-preview__card-title",children:(0,i.gD)(t)||(0,s.X2)(n)}),(0,c.jsx)("span",{className:"mastodon-preview__card-description",children:(0,s.$J)(n)})]})]})},39490(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(27723),o=n(50513),s=n(76223),a=n(17562),i=n(12625),c=(n(48279),n(10790));const __=r.__,l=({user:e})=>{const{displayName:t,address:n,avatarUrl:r}=e||{};return(0,c.jsxs)("div",{className:"mastodon-preview__post-header",children:[(0,c.jsxs)("div",{className:"mastodon-preview__post-header-user",children:[(0,c.jsx)(o._,{className:"mastodon-preview__post-avatar",src:r}),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"mastodon-preview__post-header-displayname",children:t|| | |
| 43 | +// translators: username of a fictional Mastodon User | |
| 44 | +__("anonymous-user","jetpack")}),(0,c.jsx)("div",{className:"mastodon-preview__post-header-username",children:n?.replace(`@${a.w}`,"")||"@username"})]})]}),(0,c.jsxs)("div",{className:"mastodon-preview__post-header-audience",children:[(0,c.jsx)(i.f,{}),(0,s.TR)(new Date)]})]})}},12625(e,t,n){"use strict";n.d(t,{f:()=>o});var r=n(10790);function o(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"15",viewBox:"0 -960 960 960",width:"15",role:"img",children:(0,r.jsx)("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-40-82v-78q-33 0-56.5-23.5T360-320v-40L168-552q-3 18-5.5 36t-2.5 36q0 121 79.5 212T440-162Zm276-102q20-22 36-47.5t26.5-53q10.5-27.5 16-56.5t5.5-59q0-98-54.5-179T600-776v16q0 33-23.5 56.5T520-680h-80v80q0 17-11.5 28.5T400-560h-80v80h240q17 0 28.5 11.5T600-440v120h40q26 0 47 15.5t29 40.5Z"})})}},28469(e,t,n){"use strict";n.d(t,{MW:()=>c});var r=n(56427),o=n(27723),s=n(51609),a=n(76223),i=(n(3223),n(10790));const __=o.__;function c(e){const{text:t,children:n}=e,[o,c]=(0,s.useReducer)(e=>!e,!1),l=(0,a.$J)(t);if(function(e){return Array.from(e).length}(l)<=400)return(0,i.jsx)(i.Fragment,{children:n(t)});if(o)return(0,i.jsxs)(i.Fragment,{children:[n(t)," ",(0,i.jsx)(r.Button,{variant:"link",className:"social-previews__expand-toggle",onClick:c,children:__("See less","jetpack")})]});const u=function(e,t){const n=Array.from(e);if(n.length<=t)return e;const r=n.slice(0,t).join(""),o=r.lastIndexOf(" "),s=o>t-80?o:r.length;return r.slice(0,s)}(l,400);return(0,i.jsxs)(i.Fragment,{children:[n(u),"… ",(0,i.jsx)(r.Button,{variant:"link",className:"social-previews__expand-toggle",onClick:c,children:__("See more","jetpack")})]})}},2909(e,t,n){"use strict";n.d(t,{Q:()=>a});var r=n(51609),o=n(10790);const s=(e,t)=>{return t>=1?e:(n=(e-t/2)/(1-t),Math.min(Math.max(n,0),1));var n},a=({focalPoint:e,style:t,onLoad:n,...a})=>{const i=(0,r.useRef)(null),[c,l]=(0,r.useState)(null),u=(0,r.useCallback)(()=>{const e=i.current;if(!e)return;const{naturalWidth:t,naturalHeight:n,clientWidth:r,clientHeight:o}=e;t&&n&&r&&o&&l({image:t/n,box:r/o})},[]);(0,r.useEffect)(()=>{u();const e=i.current;if(!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(u);return t.observe(e),()=>t.disconnect()},[u]);const d=(0,r.useCallback)(e=>{u(),n?.(e)},[u,n]),p=e&&c?((e,t,n)=>t<n?{x:e.x,y:s(e.y,t/n)}:t>n?{x:s(e.x,n/t),y:e.y}:e)(e,c.image,c.box):e,h=p?{objectPosition:`${100*p.x}% ${100*p.y}%`}:void 0;return(0,o.jsx)("img",{...a,ref:i,onLoad:d,style:h||t?{...t,...h}:void 0})}},92917(e,t,n){"use strict";n.d(t,{F:()=>i});var r=n(51609),o=n(83476),s=n(10790);function a({className:e}){return(0,s.jsx)("span",{className:e,"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"#e8eaed",color:"#5f6368",borderRadius:"50%"},children:(0,s.jsx)(o.f,{style:{width:"60%",height:"60%"}})})}function i({src:e,alt:t="",className:n,fallback:o=(0,s.jsx)(a,{className:n})}){const[i,c]=(0,r.useState)(""),l=(0,r.useCallback)(e=>{c(e.target.src)},[]);return e&&i!==e?(0,s.jsx)("img",{src:e,alt:t,onError:l,className:n}):o}},1795(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(13022),o=n(76223),s=n(2909),a=n(56678),i=n(10790);const c=({image:e,imageFocalPoint:t,title:n,url:c})=>{const l=(0,r.A)({"threads-preview__card-has-image":!!e});return(0,i.jsx)("div",{className:"threads-preview__card",children:(0,i.jsxs)("div",{className:l,children:[e&&(0,i.jsx)(s.Q,{className:"threads-preview__card-image",src:e,alt:"",focalPoint:t}),(0,i.jsxs)("div",{className:"threads-preview__card-body",children:[(0,i.jsx)("div",{className:"threads-preview__card-url",children:(0,o.GA)(c||"")}),(0,i.jsx)("div",{className:"threads-preview__card-title",children:(0,a.c)(n)})]})]})})}},27068(e,t,n){"use strict";n.d(t,{w:()=>o});var r=n(10790);const o=()=>(0,r.jsxs)("div",{className:"threads-preview__footer",children:[(0,r.jsx)("span",{className:"threads-preview__icon--like",children:(0,r.jsx)("svg",{role:"img",viewBox:"0 0 18 18",children:(0,r.jsx)("path",{d:"M1.34375 7.53125L1.34375 7.54043C1.34374 8.04211 1.34372 8.76295 1.6611 9.65585C1.9795 10.5516 2.60026 11.5779 3.77681 12.7544C5.59273 14.5704 7.58105 16.0215 8.33387 16.5497C8.73525 16.8313 9.26573 16.8313 9.66705 16.5496C10.4197 16.0213 12.4074 14.5703 14.2232 12.7544C15.3997 11.5779 16.0205 10.5516 16.3389 9.65585C16.6563 8.76296 16.6563 8.04211 16.6562 7.54043V7.53125C16.6562 5.23466 15.0849 3.25 12.6562 3.25C11.5214 3.25 10.6433 3.78244 9.99228 4.45476C9.59009 4.87012 9.26356 5.3491 9 5.81533C8.73645 5.3491 8.40991 4.87012 8.00772 4.45476C7.35672 3.78244 6.47861 3.25 5.34375 3.25C2.9151 3.25 1.34375 5.23466 1.34375 7.53125Z",strokeWidth:"1.25"})})}),(0,r.jsx)("span",{className:"threads-preview__icon--reply",children:(0,r.jsx)("svg",{role:"img",viewBox:"0 0 18 18",children:(0,r.jsx)("path",{d:"M15.376 13.2177L16.2861 16.7955L12.7106 15.8848C12.6781 15.8848 12.6131 15.8848 12.5806 15.8848C11.3779 16.5678 9.94767 16.8931 8.41995 16.7955C4.94194 16.5353 2.08152 13.7381 1.72397 10.2578C1.2689 5.63919 5.13697 1.76863 9.75264 2.22399C13.2307 2.58177 16.0261 5.41151 16.2861 8.92429C16.4161 10.453 16.0586 11.8841 15.376 13.0876C15.376 13.1526 15.376 13.1852 15.376 13.2177Z",strokeLinejoin:"round",strokeWidth:"1.25"})})}),(0,r.jsx)("span",{className:"threads-preview__icon--repost",children:(0,r.jsxs)("svg",{role:"img",viewBox:"0 0 18 18",children:[(0,r.jsx)("path",{d:"M6.41256 1.23531C6.6349 0.971277 7.02918 0.937481 7.29321 1.15982L9.96509 3.40982C10.1022 3.52528 10.1831 3.69404 10.1873 3.87324C10.1915 4.05243 10.1186 4.2248 9.98706 4.34656L7.31518 6.81971C7.06186 7.05419 6.66643 7.03892 6.43196 6.7856C6.19748 6.53228 6.21275 6.13685 6.46607 5.90237L7.9672 4.51289H5.20312C3.68434 4.51289 2.45312 5.74411 2.45312 7.26289V9.51289V11.7629C2.45312 13.2817 3.68434 14.5129 5.20312 14.5129C5.5483 14.5129 5.82812 14.7927 5.82812 15.1379C5.82812 15.4831 5.5483 15.7629 5.20312 15.7629C2.99399 15.7629 1.20312 13.972 1.20312 11.7629V9.51289V7.26289C1.20312 5.05375 2.99399 3.26289 5.20312 3.26289H7.85002L6.48804 2.11596C6.22401 1.89362 6.19021 1.49934 6.41256 1.23531Z"}),(0,r.jsx)("path",{d:"M11.5874 17.7904C11.3651 18.0545 10.9708 18.0883 10.7068 17.8659L8.03491 15.6159C7.89781 15.5005 7.81687 15.3317 7.81267 15.1525C7.80847 14.9733 7.8814 14.801 8.01294 14.6792L10.6848 12.206C10.9381 11.9716 11.3336 11.9868 11.568 12.2402C11.8025 12.4935 11.7872 12.8889 11.5339 13.1234L10.0328 14.5129H12.7969C14.3157 14.5129 15.5469 13.2816 15.5469 11.7629V9.51286V7.26286C15.5469 5.74408 14.3157 4.51286 12.7969 4.51286C12.4517 4.51286 12.1719 4.23304 12.1719 3.88786C12.1719 3.54269 12.4517 3.26286 12.7969 3.26286C15.006 3.26286 16.7969 5.05373 16.7969 7.26286V9.51286V11.7629C16.7969 13.972 15.006 15.7629 12.7969 15.7629H10.15L11.512 16.9098C11.776 17.1321 11.8098 17.5264 11.5874 17.7904Z"})]})}),(0,r.jsx)("span",{className:"threads-preview__icon--share",children:(0,r.jsxs)("svg",{role:"img",viewBox:"0 0 18 18",children:[(0,r.jsx)("path",{d:"M15.6097 4.09082L6.65039 9.11104",strokeLinejoin:"round",strokeWidth:"1.25"}),(0,r.jsx)("path",{d:"M7.79128 14.439C8.00463 15.3275 8.11131 15.7718 8.33426 15.932C8.52764 16.071 8.77617 16.1081 9.00173 16.0318C9.26179 15.9438 9.49373 15.5501 9.95761 14.7628L15.5444 5.2809C15.8883 4.69727 16.0603 4.40546 16.0365 4.16566C16.0159 3.95653 15.9071 3.76612 15.7374 3.64215C15.5428 3.5 15.2041 3.5 14.5267 3.5H3.71404C2.81451 3.5 2.36474 3.5 2.15744 3.67754C1.97758 3.83158 1.88253 4.06254 1.90186 4.29856C1.92415 4.57059 2.24363 4.88716 2.88259 5.52032L6.11593 8.7243C6.26394 8.87097 6.33795 8.94431 6.39784 9.02755C6.451 9.10144 6.4958 9.18101 6.53142 9.26479C6.57153 9.35916 6.59586 9.46047 6.64451 9.66309L7.79128 14.439Z",strokeLinejoin:"round",strokeWidth:"1.25"})]})})]})},18350(e,t,n){"use strict";n.d(t,{Y:()=>a});var r=n(27723),o=n(76223),s=n(10790);const __=r.__,a=({name:e,date:t})=>{const n=t||new Date;return(0,s.jsxs)("div",{className:"threads-preview__header",children:[(0,s.jsx)("span",{className:"threads-preview__name",children:e||__("Account Name","jetpack")}),(0,s.jsx)("time",{className:"threads-preview__date",dateTime:n.toISOString(),children:(0,o.vI)(n)})]})}},56678(e,t,n){"use strict";n.d(t,{_:()=>o,c:()=>s});var r=n(76223);const o=500,s=e=>(0,r.RA)((0,r.f5)(120),(0,r.ZT)(120))((0,r.$J)(e))||""},8450(e,t,n){"use strict";n.d(t,{G:()=>a});var r=n(27723),o=n(59028),s=n(10790);const __=r.__,a=e=>e.image?(0,s.jsx)(o.s,{...e,caption:"",media:void 0}):(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("Threads link preview requires an image to be set for the post. Please add an image to see the preview.","jetpack")})},97241(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(13022),o=n(51609),s=n(10790);const a=({media:e})=>{const t=e.filter(e=>e.type.startsWith("image/")||e.type.startsWith("video/")).filter((e,t,n)=>0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type)).slice(0,4);if(0===t.length)return null;const n=t[0].type.startsWith("video/"),a=(0,r.A)(["threads-preview__media","threads-preview__media-children-"+t.length]);return(0,s.jsx)("div",{className:a,children:t.map((e,t)=>(0,s.jsx)(o.Fragment,{children:n?(0,s.jsx)("video",{controls:!0,children:(0,s.jsx)("source",{src:e.url,type:e.type})}):(0,s.jsx)("img",{alt:e.alt||"",src:e.url})},`threads-preview__media-item-${t}`))})}},59028(e,t,n){"use strict";n.d(t,{s:()=>p});var r=n(76223),o=n(28469),s=n(1795),a=n(27068),i=n(18350),c=n(56678),l=n(97241),u=n(34413),d=(n(82379),n(10790));const p=({caption:e,date:t,image:n,imageFocalPoint:p,media:h,name:m,profileImage:g,showThreadConnector:f,title:b,url:v})=>{const y=!!h?.length,k=v&&n&&!y;return(0,d.jsx)("div",{className:"threads-preview__wrapper",children:(0,d.jsxs)("div",{className:"threads-preview__container",children:[(0,d.jsx)(u.B,{profileImage:g,showThreadConnector:f}),(0,d.jsxs)("div",{className:"threads-preview__main",children:[(0,d.jsx)(i.Y,{name:m,date:t}),(0,d.jsxs)("div",{className:"threads-preview__content",children:[e?(0,d.jsx)("div",{className:"threads-preview__text",children:(0,d.jsx)(o.MW,{text:e,children:e=>(0,r.x5)(e,{platform:"threads",maxChars:c._})})}):null,y?(0,d.jsx)(l.$,{media:h}):null,k?(0,d.jsx)(s.Z,{image:n,imageFocalPoint:p,title:b||"",url:v}):null]}),(0,d.jsx)(a.w,{})]})]})})}},34413(e,t,n){"use strict";n.d(t,{B:()=>a});var r=n(27723),o=n(50513),s=n(10790);const __=r.__,a=({profileImage:e,showThreadConnector:t})=>(0,s.jsxs)("div",{className:"threads-preview__sidebar",children:[(0,s.jsx)("div",{className:"threads-preview__profile-image",children:(0,s.jsx)(o._,{alt:__("Threads profile image","jetpack"),src:e})}),t&&(0,s.jsx)("div",{className:"threads-preview__connector"})]})},42475(e,t,n){"use strict";n.d(t,{ZH:()=>s,fO:()=>a});var r=n(76223);const o=4096,s=e=>(0,r.RA)((0,r.f5)(1e3),(0,r.ZT)(1e3))((0,r.$J)(e))||"",a=e=>{let t=e,n=t.indexOf("\x3c!--");for(;-1!==n;){const e=t.indexOf("--\x3e",n);if(-1===e){t=t.substring(0,n);break}t=t.substring(0,n)+t.substring(e+3),n=t.indexOf("\x3c!--")}return t=t.replace(/<\/p>/g,"</p>\n\n"),(0,r.RA)((0,r.f5)(o),(0,r.ZT)(o))((0,r.$J)(t))||""}},86587(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(27723),o=n(76223),s=n(2909),a=n(42475),i=n(21523),c=n(70793),l=(n(95071),n(10790));const __=r.__,u=({title:e,description:t,image:n,user:r,url:u,imageFocalPoint:d})=>{const p=r?.avatarUrl;return(0,l.jsxs)("div",{className:"tumblr-preview__post",children:[p&&(0,l.jsx)("img",{className:"tumblr-preview__avatar",src:p,alt:""}),(0,l.jsxs)("div",{className:"tumblr-preview__card",children:[(0,l.jsx)(c.A,{user:r}),(0,l.jsxs)("div",{className:"tumblr-preview__window",children:[n&&(0,l.jsxs)("div",{className:"tumblr-preview__window-top",children:[(0,l.jsx)("div",{className:"tumblr-preview__overlay",children:(0,l.jsx)("div",{className:"tumblr-preview__title",children:(0,a.ZH)(e)})}),(0,l.jsx)(s.Q,{className:"tumblr-preview__image",src:n,alt:__("Tumblr preview thumbnail","jetpack"),focalPoint:d})]}),(0,l.jsxs)("div",{className:"tumblr-preview__window-bottom "+(n?"":"is-full"),children:[!n&&(0,l.jsx)("div",{className:"tumblr-preview__title",children:(0,a.ZH)(e)}),t&&n&&(0,l.jsx)("div",{className:"tumblr-preview__description",children:(0,a.fO)(t)}),u&&(0,l.jsx)("div",{className:"tumblr-preview__site-name",children:(0,o.GA)(u)})]})]}),(0,l.jsx)(i.A,{})]})]})}},21523(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(17712),s=(n(56850),n(10790));const __=r.__,a=()=>(0,s.jsxs)("div",{className:"tumblr-preview__post-actions",children:[(0,s.jsxs)("div",{className:"tumblr-preview__post-manage-actions",children:[(0,s.jsxs)("div",{className:"tumblr-preview__post-actions-blaze",children:[(0,s.jsx)(o.A,{name:"blaze"})," Blaze"]}),(0,s.jsx)("ul",{children:[{icon:"delete", | |
| 45 | +// translators: "Delete" action on a Tumblr post | |
| 46 | +label:__("Delete","jetpack")},{icon:"edit", | |
| 47 | +// translators: "Edit" action on a Tumblr post | |
| 48 | +label:__("Edit","jetpack")}].map(({icon:e,label:t})=>(0,s.jsx)("li",{"aria-label":t,children:(0,s.jsx)(o.A,{name:e})},e))})]}),(0,s.jsxs)("div",{className:"tumblr-preview__post-social-actions",children:[(0,s.jsx)("div",{children: | |
| 49 | +// translators: count of notes on a Tumblr post | |
| 50 | +__("0 notes","jetpack")}),(0,s.jsx)("ul",{children:[{icon:"share", | |
| 51 | +// translators: "Share" action on a Tumblr post | |
| 52 | +label:__("Share","jetpack")},{icon:"reply", | |
| 53 | +// translators: "Reply" action on a Tumblr post | |
| 54 | +label:__("Reply","jetpack")},{icon:"reblog", | |
| 55 | +// translators: "Reblog" action on a Tumblr post | |
| 56 | +label:__("Reblog","jetpack")},{icon:"like", | |
| 57 | +// translators: "Like" action on a Tumblr post | |
| 58 | +label:__("Like","jetpack")}].map(({icon:e,label:t})=>(0,s.jsx)("li",{"aria-label":t,children:(0,s.jsx)(o.A,{name:e})},e))})]})]})},70793(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(17712),s=(n(15264),n(10790));const __=r.__,a=({user:e})=>(0,s.jsxs)("div",{className:"tumblr-preview__post-header",children:[(0,s.jsx)("div",{className:"tumblr-preview__post-header-username",children:e?.displayName|| | |
| 59 | +// translators: username of a fictional Tumblr User | |
| 60 | +__("anonymous-user","jetpack")}),(0,s.jsx)(o.A,{name:"ellipsis"})]})},17712(e,t,n){"use strict";n.d(t,{A:()=>o});n(67429);var r=n(10790);const o=({name:e})=>{let t;switch(e){case"blaze":t=(0,r.jsx)("svg",{viewBox:"0 0 25 22",children:(0,r.jsx)("path",{d:"m7.5059-0.24414c-0.79843 0.057223-1.2169 0.88587-1.1635 1.6128-0.2266 2.0449-1.4898 3.8696-3.1975 4.9778-3.0182 2.414-4.2201 6.8066-2.8033 10.411 0.92417 2.4679 2.9589 4.5674 5.4768 5.3928 0.95914 0.16102 1.7233-0.94358 1.3074-1.8059-0.11578-0.51062-0.17482-0.96516-0.17845-1.487 1.0413 1.5607 2.5484 2.8986 4.341 3.4975 1.0396-0.0154 1.98-0.64458 2.8516-1.1608 3.3821-2.1786 4.9604-6.7097 3.6597-10.518-0.49144-1.4599-1.2948-2.8935-2.5028-3.8698-0.7512-0.45498-1.661 0.09677-1.9202 0.86038-0.12274 0.16822-0.70352 1.1955-0.6191 0.61976 0.25488-3.4397-1.6789-7.0066-4.8123-8.4958-0.14322-0.037843-0.292-0.049464-0.43945-0.035156zm1.0586 3.5605c1.8947 2.0016 2.2326 5.1984 0.89062 7.5879-0.38498 0.96148 0.71762 2.0063 1.6567 1.5681 1.4159-0.4624 2.6998-1.3259 3.6577-2.4665 1.6442 2.5888 1.1465 6.2819-1.0629 8.3379-0.62378 0.60782-1.3666 1.0945-2.1754 1.4179-1.9543-0.989-3.3534-3.0966-3.5625-5.3125-0.25636-1.0253-1.81-1.2013-2.2852-0.25781-0.75058 1.3054-1.1846 2.7948-1.2305 4.3008-2.2396-1.9852-2.8468-5.4435-1.4609-8.0527 0.58926-1.239 1.651-2.13 2.724-2.9329 1.2958-1.1271 2.2791-2.62 2.7682-4.2683l0.071578 0.069832z"})});break;case"delete":t=(0,r.jsxs)("svg",{viewBox:"0 0 14 17",children:[(0,r.jsx)("path",{d:"M12 5v9c.1.7-.3 1-1 1H3c-.5 0-.9-.3-1-1V5c0-.6-.4-1-1-1-.5 0-1 .4-1 1v9.5C0 16.1 1.4 17 3 17h8c1.8 0 3-.8 3-2.5V5c0-.6-.5-1-1-1-.6 0-1 .5-1 1z"}),(0,r.jsx)("path",{d:"M4 12s0 1 1 1 1-1 1-1V5c0-.5-.4-1-1-1-.5 0-1 .5-1 1v7zm4 0s0 1 1 1 1-1 1-1V5c0-.5-.4-1-1-1-.5 0-1 .5-1 1v7zm5-10c.5 0 1-.4 1-1 0-.5-.4-.9-1-1H1C.5.1 0 .5 0 1c0 .6.6 1 1.1 1H13z"})]});break;case"edit":t=(0,r.jsx)("svg",{viewBox:"0 0 17.6 17.6",children:(0,r.jsx)("path",{d:"M5.3 13.8l-2.1.7.7-2.1L10.3 6l1.4 1.4-6.4 6.4zm6.4-9.3l-1.4-1.4-1.4 1.4-6.7 6.7-.2.5-2 5.9 3.8-1.3 2.1-.7.4-.1.3-.3 7.8-7.8c.1 0-2.7-2.9-2.7-2.9zm5.6-1.4L14.5.3c-.4-.4-1-.4-1.4 0l-1.4 1.4L15.9 6l1.4-1.4c.4-.5.4-1.1 0-1.5"})});break;case"share":t=(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12.6173 1.07612C12.991 0.921338 13.4211 1.00689 13.7071 1.29289L22.7071 10.2929C23.0832 10.669 23.0991 11.2736 22.7433 11.669L13.7433 21.669C13.4663 21.9767 13.0283 22.082 12.6417 21.9336C12.2552 21.7853 12 21.414 12 21V16H11.5C7.31775 16 3.92896 18.2486 2.95256 21.3044C2.80256 21.7738 2.33292 22.064 1.84598 21.9881C1.35904 21.9122 1 21.4928 1 21V18.5C1 12.3162 5.88069 7.27245 12 7.01067V2C12 1.59554 12.2436 1.2309 12.6173 1.07612ZM14 4.41421V8C14 8.55228 13.5523 9 13 9H12.5C7.64534 9 3.64117 12.6414 3.06988 17.3419C5.09636 15.2366 8.18218 14 11.5 14H13C13.5523 14 14 14.4477 14 15V18.394L20.622 11.0362L14 4.41421Z"})});break;case"reply":t=(0,r.jsx)("svg",{viewBox:"0 0 17 17",children:(0,r.jsx)("path",{d:"M8.7 0C4.1 0 .4 3.7.4 8.3c0 1.2.2 2.3.7 3.4-.2.6-.4 1.5-.7 2.5L0 15.8c-.2.7.5 1.4 1.2 1.2l1.6-.4 2.4-.7c1.1.5 2.2.7 3.4.7 4.6 0 8.3-3.7 8.3-8.3C17 3.7 13.3 0 8.7 0zM15 8.3c0 3.5-2.8 6.3-6.4 6.3-1.2 0-2.3-.3-3.2-.9l-3.2.9.9-3.2c-.5-.9-.9-2-.9-3.2.1-3.4 3-6.2 6.5-6.2S15 4.8 15 8.3z"})});break;case"reblog":t=(0,r.jsx)("svg",{viewBox:"0 0 17 18.1",children:(0,r.jsx)("path",{d:"M12.8.2c-.4-.4-.8-.2-.8.4v2H2c-2 0-2 2-2 2v5s0 1 1 1 1-1 1-1v-4c0-1 .5-1 1-1h9v2c0 .6.3.7.8.4L17 3.6 12.8.2zM4.2 17.9c.5.4.8.2.8-.3v-2h10c2 0 2-2 2-2v-5s0-1-1-1-1 1-1 1v4c0 1-.5 1-1 1H5v-2c0-.6-.3-.7-.8-.4L0 14.6l4.2 3.3z"})});break;case"like":t=(0,r.jsx)("svg",{viewBox:"0 0 20 18",children:(0,r.jsx)("path",{d:"M14.658 0c-1.625 0-3.21.767-4.463 2.156-.06.064-.127.138-.197.225-.074-.085-.137-.159-.196-.225C8.547.766 6.966 0 5.35 0 4.215 0 3.114.387 2.162 1.117c-2.773 2.13-2.611 5.89-1.017 8.5 2.158 3.535 6.556 7.18 7.416 7.875A2.3 2.3 0 0 0 9.998 18c.519 0 1.028-.18 1.436-.508.859-.695 5.257-4.34 7.416-7.875 1.595-2.616 1.765-6.376-1-8.5C16.895.387 15.792 0 14.657 0h.001zm0 2.124c.645 0 1.298.208 1.916.683 1.903 1.461 1.457 4.099.484 5.695-1.973 3.23-6.16 6.7-6.94 7.331a.191.191 0 0 1-.241 0c-.779-.631-4.966-4.101-6.94-7.332-.972-1.595-1.4-4.233.5-5.694.619-.475 1.27-.683 1.911-.683 1.064 0 2.095.574 2.898 1.461.495.549 1.658 2.082 1.753 2.203.095-.12 1.259-1.654 1.752-2.203.8-.887 1.842-1.461 2.908-1.461h-.001z"})});break;case"ellipsis":t=(0,r.jsx)("svg",{viewBox:"0 0 17.5 3.9",children:(0,r.jsx)("path",{d:"M17.5 1.9c0 1.1-.9 1.9-1.9 1.9-1.1 0-1.9-.9-1.9-1.9S14.5 0 15.6 0c1 0 1.9.9 1.9 1.9m-6.8 0c0 1.1-.9 1.9-1.9 1.9-1.1.1-2-.8-2-1.9 0-1 .9-1.9 2-1.9s1.9.9 1.9 1.9m-6.8 0c0 1.1-.9 2-2 2-1 0-1.9-.9-1.9-2S.9 0 1.9 0c1.1 0 2 .9 2 1.9"})})}return(0,r.jsx)("span",{className:`tumblr-preview__post-icon tumblr-preview__post-icon-${e}`,children:t})}},58513(e,t,n){"use strict";n.d(t,{Z:()=>c});var r=n(13022),o=n(76223),s=n(2909),a=n(10790);const i=(0,o.RA)((0,o.f5)(280),(0,o.ZT)(280)),c=({description:e,image:t,imageFocalPoint:n,title:c,cardType:l,url:u})=>{const d=(0,r.A)(`twitter-preview__card-${l}`,{"twitter-preview__card-has-image":!!t});return(0,a.jsx)("div",{className:"twitter-preview__card",children:(0,a.jsxs)("div",{className:d,children:[t&&(0,a.jsx)(s.Q,{className:"twitter-preview__card-image",src:t,alt:"",focalPoint:n}),(0,a.jsxs)("div",{className:"twitter-preview__card-body",children:[(0,a.jsx)("div",{className:"twitter-preview__card-url",children:(0,o.GA)(u||"")}),(0,a.jsx)("div",{className:"twitter-preview__card-title",children:c}),(0,a.jsx)("div",{className:"twitter-preview__card-description",children:i((0,o.$J)(e))})]})]})})}},32250(e,t,n){"use strict";n.d(t,{w:()=>o});var r=n(10790);const o=()=>(0,r.jsxs)("div",{className:"twitter-preview__footer",children:[(0,r.jsx)("span",{className:"twitter-preview__icon-replies",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01zm8.005-6c-3.317 0-6.005 2.69-6.005 6 0 3.37 2.77 6.08 6.138 6.01l.351-.01h1.761v2.3l5.087-2.81c1.951-1.08 3.163-3.13 3.163-5.36 0-3.39-2.744-6.13-6.129-6.13H9.756z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-retweets",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M4.5 3.88l4.432 4.14-1.364 1.46L5.5 7.55V16c0 1.1.896 2 2 2H13v2H7.5c-2.209 0-4-1.79-4-4V7.55L1.432 9.48.068 8.02 4.5 3.88zM16.5 6H11V4h5.5c2.209 0 4 1.79 4 4v8.45l2.068-1.93 1.364 1.46-4.432 4.14-4.432-4.14 1.364-1.46 2.068 1.93V8c0-1.1-.896-2-2-2z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-likes",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M16.697 5.5c-1.222-.06-2.679.51-3.89 2.16l-.805 1.09-.806-1.09C9.984 6.01 8.526 5.44 7.304 5.5c-1.243.07-2.349.78-2.91 1.91-.552 1.12-.633 2.78.479 4.82 1.074 1.97 3.257 4.27 7.129 6.61 3.87-2.34 6.052-4.64 7.126-6.61 1.111-2.04 1.03-3.7.477-4.82-.561-1.13-1.666-1.84-2.908-1.91zm4.187 7.69c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-analytics",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M8.75 21V3h2v18h-2zM18 21V8.5h2V21h-2zM4 21l.004-10h2L6 21H4zm9.248 0v-7h2v7h-2z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-share",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 2.59l5.7 5.7-1.41 1.42L13 6.41V16h-2V6.41l-3.3 3.3-1.41-1.42L12 2.59zM21 15l-.02 3.51c0 1.38-1.12 2.49-2.5 2.49H5.5C4.11 21 3 19.88 3 18.5V15h2v3.5c0 .28.22.5.5.5h12.98c.28 0 .5-.22.5-.5L19 15h2z"})})})]})},55664(e,t,n){"use strict";n.d(t,{Y:()=>a});var r=n(27723),o=n(76223),s=n(10790);const __=r.__,a=({name:e,screenName:t,date:n})=>(0,s.jsxs)("div",{className:"twitter-preview__header",children:[(0,s.jsx)("span",{className:"twitter-preview__name",children:e||__("Account Name","jetpack")}),(0,s.jsx)("span",{className:"twitter-preview__screen-name",children:t||"@account"}),(0,s.jsx)("span",{children:"·"}),(0,s.jsx)("span",{className:"twitter-preview__date",children:(0,o.hV)(n||Date.now())})]})},34900(e,t,n){"use strict";n.d(t,{E:()=>s});var r=n(18470),o=n(10790);const s=e=>(0,o.jsx)(r.O,{...e,text:"",media:void 0})},55971(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(13022),o=n(51609),s=n(10790);const a=({media:e})=>{const t=e.filter(e=>e.type.startsWith("image/")||e.type.startsWith("video/")).filter((e,t,n)=>0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type)).slice(0,4);if(0===t.length)return null;const n=t[0].type.startsWith("video/"),a=(0,r.A)(["twitter-preview__media","twitter-preview__media-children-"+t.length]);return(0,s.jsx)("div",{className:a,children:t.map((e,t)=>(0,s.jsx)(o.Fragment,{children:n?(0,s.jsx)("video",{controls:!0,children:(0,s.jsx)("source",{src:e.url,type:e.type})}):(0,s.jsx)("img",{alt:e.alt||"",src:e.url})},`twitter-preview__media-item-${t}`))})}},18470(e,t,n){"use strict";n.d(t,{O:()=>d});var r=n(58513),o=n(32250),s=n(55664),a=n(55971),i=n(68535),c=n(17915),l=n(11974),u=(n(19073),n(10790));const d=({date:e,description:t,image:n,imageFocalPoint:d,media:p,name:h,profileImage:m,screenName:g,showThreadConnector:f,text:b,title:v,tweetUrl:y,cardType:k,url:w})=>{const x=!!p?.length;return(0,u.jsx)("div",{className:"twitter-preview__wrapper",children:(0,u.jsxs)("div",{className:"twitter-preview__container",children:[(0,u.jsx)(c.B,{profileImage:m,showThreadConnector:f}),(0,u.jsxs)("div",{className:"twitter-preview__main",children:[(0,u.jsx)(s.Y,{name:h,screenName:g,date:e}),(0,u.jsxs)("div",{className:"twitter-preview__content",children:[b?(0,u.jsx)(l.E,{text:b}):null,x?(0,u.jsx)(a.$,{media:p}):null,y?(0,u.jsx)(i.g,{tweetUrl:y}):null,!x&&w&&(0,u.jsx)(r.Z,{description:t||"",image:n,imageFocalPoint:d,title:v||"",cardType:k||"",url:w})]}),(0,u.jsx)(o.w,{})]})]})})}},68535(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(56427),o=n(10790);const s=({tweetUrl:e})=>e?(0,o.jsxs)("div",{className:"twitter-preview__quote-tweet",children:[(0,o.jsx)(r.SandBox,{html:`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${e}"></a></blockquote>`,scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet"}),(0,o.jsx)("div",{className:"twitter-preview__quote-tweet-overlay"})]}):null},17915(e,t,n){"use strict";n.d(t,{B:()=>s});var r=n(50513),o=n(10790);const s=({profileImage:e,showThreadConnector:t})=>(0,o.jsxs)("div",{className:"twitter-preview__sidebar",children:[(0,o.jsx)("div",{className:"twitter-preview__profile-image",children:(0,o.jsx)(r._,{src:e})}),t&&(0,o.jsx)("div",{className:"twitter-preview__connector"})]})},11974(e,t,n){"use strict";n.d(t,{E:()=>s});var r=n(76223),o=n(10790);const s=({text:e})=>e?(0,o.jsx)("div",{className:"twitter-preview__text",children:(0,r.x5)(e,{platform:"twitter"})}):null},70499(e,t,n){"use strict";n.d(t,{m2:()=>r.m});n(60361);var r=n(69490);n(54914)},69490(e,t,n){"use strict";n.d(t,{m:()=>p});var r=n(56427),o=n(27723),s=n(13022),a=n(51609),i=n(48984),c=n(78202),l=n(60361),u=n(10790);const __=o.__;function d({previewData:e,initialTabName:t,title:n,className:o,...a}){const d=(0,i.q)();return(0,u.jsx)(r.Modal,{title:n||__("Previews","jetpack"),size:"fill",className:(0,s.A)(c.A["link-preview-modal"],o),...a,children:(0,u.jsx)(l.T,{initialTabName:t,...d,...e})})}function p({triggerButtonProps:e,...t}){const[n,o]=(0,a.useReducer)(e=>!e,!1);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.Button,{variant:"secondary",size:"compact",...e,onClick:o,children:e?.children||__("View previews","jetpack")}),n&&(0,u.jsx)(d,{...t,onRequestClose:o})]})}},60361(e,t,n){"use strict";n.d(t,{T:()=>i});var r=n(56427),o=n(78202),s=n(54914),a=n(10790);function i({initialTabName:e,...t}){const n=(0,s.g)();return(0,a.jsx)(r.TabPanel,{tabs:n,initialTabName:e,className:o.A["link-preview-tabs"],children:e=>(0,a.jsx)("div",{className:o.A["link-preview-tab"],children:(0,a.jsx)(e.preview,{...t})})})}},54914(e,t,n){"use strict";n.d(t,{g:()=>g});var r=n(54560),o=n(34900),s=n(8450),a=n(77123),i=n(86587),c=n(5874),l=n(89014),u=n(66901),d=n(27723),p=n(51609),h=n(84705),m=n(10790);const __=d.__,_x=d._x;function g(){return(0,p.useMemo)(()=>[{title:__("Google Search","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"google"}),name:"google",preview:r.m},{title:__("X","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"x"}),name:"x",preview:o.E},{title:__("Facebook","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"facebook"}),name:"facebook",preview:u.l},{title:_x("Threads","The name of the social media network - threads.net","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"threads"}),name:"threads",preview:s.G},{title:__("LinkedIn","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"linkedin"}),name:"linkedin",preview:e=>(0,m.jsx)(a.X,{jobTitle:__("Job Title (Company Name)","jetpack"),...e})},{title:__("Tumblr","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"tumblr"}),name:"tumblr",preview:i.Z},{title:__("Mastodon","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"mastodon"}),name:"mastodon",preview:c.i},{title:__("Bluesky","jetpack"),icon:(0,m.jsx)(h.d6,{icon:"bluesky"}),name:"bluesky",preview:l.c}],[])}},48984(e,t,n){"use strict";n.d(t,{q:()=>h});var r=n(3582),o=n(47143),s=n(43656),a=n(18537),i=n(27723),c=n(51609),l=n(84282),u=n(50949),d=n(99200),p=n(92421);const __=i.__;function h(){const e=(0,o.useSelect)(e=>{const{getEditedPostAttribute:t}=e(s.store);return(t("meta")?.advanced_seo_description||t("excerpt")||t("content").split("\x3c!--more")[0]||__("Visit the post for more.","jetpack")||"").trim()},[]),{image:t,persistedFocalPoint:n,featuredImageId:i,isFeaturedImage:h}=(0,o.useSelect)(e=>{const t=e(s.store).getEditedPostAttribute("meta"),{getEntityRecord:n}=e(r.store),o=e(s.store).getEditedPostAttribute("featured_media"),a=o?n("postType","attachment",o):void 0;let i=o?(0,p.l)(a??null):"",c=!!i;const d=(0,u.Z)(a),h=t.jetpack_social_options?.image_generator_settings?.enabled?(0,l.S1)(t.jetpack_social_options.image_generator_settings.token):"";if(h&&(i=h,c=!1),!i){const t=(0,p.t)(e(s.store).getEditedPostContent());t&&(i=t,c=!1)}return{image:i,persistedFocalPoint:d,featuredImageId:o,isFeaturedImage:c}},[]),m=(0,d.XM)(i),g=h?m??n:void 0,{siteTitle:f,siteIcon:b}=(0,o.useSelect)(e=>{const{getUnstableBase:t}=e(r.store),n=t(void 0);return{siteTitle:n?.name||"",siteIcon:n?.site_icon_url||""}},[]),v=(0,o.useSelect)(e=>{const{getEditedPostAttribute:t}=e(s.store);return(t("meta")?.jetpack_seo_html_title||t("title")||"").trim()},[]),y=(0,o.useSelect)(e=>e(s.store).getEditedPostAttribute("link"),[]);return(0,c.useMemo)(()=>({description:(0,a.decodeEntities)(e),image:t,imageFocalPoint:g,siteIcon:b,siteTitle:(0,a.decodeEntities)(f),title:(0,a.decodeEntities)(v),url:y}),[e,t,g,b,f,v,y])}},92421(e,t,n){"use strict";function r(e){return e?e.media_details?.sizes?.large?.source_url||e.source_url:""}function o(e){const t=(new DOMParser).parseFromString(e,"text/html"),n=Array.from(t.querySelectorAll("img")),r=n[0]?.src;return r??null}n.d(t,{l:()=>r,t:()=>o})},84282(e,t,n){"use strict";n.d(t,{S1:()=>o});var r=n(3924);function o(e){return e?(0,r.A)("sigenerate",{query:`t=${e}`}):""}},99200(e,t,n){"use strict";n.d(t,{XM:()=>i});var r=n(51609);const o=new Map,s=new Set;function a(e){return s.add(e),()=>{s.delete(e)}}function i(e){const t=()=>function(e){return e?o.get(e):void 0}(e);return(0,r.useSyncExternalStore)(a,t,t)}},50949(e,t,n){"use strict";n.d(t,{Z:()=>r});function r(e){const t=e?.meta,n=t?._jetpack_social_image_focal_point;return(e=>{if(!e||"object"!=typeof e||Array.isArray(e))return!1;const t=e;return"number"==typeof t.x&&Number.isFinite(t.x)&&t.x>=0&&t.x<=1&&"number"==typeof t.y&&Number.isFinite(t.y)&&t.y>=0&&t.y<=1})(n)?n:void 0}},75200(e,t,n){"use strict";n.d(t,{L:()=>d,i:()=>g});var r=n(97999),o=n(92349),s=n(95950),a=n(83807),i=n(52229);const c=["traffic","insights","subscribers","store"],l={traffic:"post-traffic","email-opens":"email-opens","email-clicks":"email-clicks"};function u(){const e=(0,r.getScriptData)()?.analytics;return e?.enabled?e:void 0}function d(){return void 0!==u()}function p(e,t,n){const r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!r)return;const[,c,l,u]=r;try{const e=new o.q(Number(c),Number(l)-1,Number(u),n),r="start"===t?(0,i.o)(e):(0,s.D)(e);return(0,a.GP)(r,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx",{in:(0,o.tz)(n)})}catch{return}}function h(e,t){const n=p(e.from,"start",t),r=p(e.to,"end",t);return n&&r?{from:n,to:r}:{}}function m(e){const t="dashboard"===e.view?e.section&&c.includes(e.section)&&e.section:e.section&&l[e.section];return t?{section:t}:{}}function g(e){const t=u();if(!t||!t.can_view)return null;const n="dashboard"===e.view?"/":e.id>0&&`/post/${e.id}`;if(!n)return null;const o=new URLSearchParams({...m(e),...e.range?h(e.range,t.timezone):{}}).toString(),s=new URLSearchParams({page:t.page_slug,p:o?`${n}?${o}`:n});return(0,r.getAdminUrl)(`admin.php?${s}`)}},52068(e,t,n){"use strict";n.d(t,{Ay:()=>x});var r=n(96865),o=n(56427),s=n(47143),a=n(27723),i=n(55565),c=n(73493),l=n(93761),u=n(90437),d=n(80224),p=n(27571),h=n(48499),m=n(2162),g=n(62402),f=(n(37209),n(10790));const __=a.__,b="correct-spelling",v="simplify",y="make-longer",k="make-shorter",w={default:[{name:r.DD,key:b,aiSuggestion:r.yy,icon:d.A}],"core/paragraph":[{name:r.HM,key:v,aiSuggestion:r.A4,icon:u.A},{name:r.JR,key:"summarize",aiSuggestion:r.UA,icon:l.A},{name:r.K2,key:y,aiSuggestion:r.br,icon:c.A},{name:r.UD,key:k,aiSuggestion:r.fD,icon:c.A}],"core/list-item":[{name:r.HM,key:v,aiSuggestion:r.A4,icon:u.A},{name:r.K2,key:y,aiSuggestion:r.br,icon:c.A},{name:r.UD,key:k,aiSuggestion:r.fD,icon:c.A}],"core/list":p.L.includes("core/list")?[{name:r.HM,key:v,aiSuggestion:r.A4,icon:u.A},{name:r.K2,key:y,aiSuggestion:r.br,icon:c.A},{name:r.UD,key:k,aiSuggestion:r.fD,icon:c.A},{name:r.mI,key:"turn-list-into-table",aiSuggestion:r.d5,icon:i.A,options:{alwaysTransformToAIAssistant:!0,rootParentOnly:!0}}]:[{name:r.yQ,key:"write-post-from-list",aiSuggestion:r.pE,icon:u.A,options:{userPrompt:"Write a post based on the list items. Include a title as first order heading and try to use secondary headings for each entry"}}]};function x({blockType:e,clientId:t,disabled:n=!1,onAskAiAssistant:a,onRequestSuggestion:i}){const c=(0,h.C)("ai-correct-spelling"),l=w[e]??[],{getBlockParents:u}=(0,s.select)("core/block-editor"),d=u(t);return(0,f.jsxs)(f.Fragment,{children:[n&&(0,f.jsx)(o.Notice,{status:"warning",isDismissible:!1,className:"jetpack-ai-assistant__info",children:__("Add content to activate the tools below","jetpack")}),(0,f.jsxs)(o.MenuGroup,{children:[(0,f.jsx)(o.MenuItem,{icon:r.cj,iconPosition:"left",onClick:a,disabled:n,children:(0,f.jsx)("div",{className:"jetpack-ai-assistant__menu-item",children:__("Ask AI Assistant","jetpack")})},"key-ai-assistant"),[...w.default,...l].filter(e=>!(e.options?.rootParentOnly&&d.length>0||e.key===b&&!c)).map(e=>(0,f.jsx)(o.MenuItem,{icon:e?.icon,iconPosition:"left",onClick:()=>{i(e.aiSuggestion,{...e.options??{}})},disabled:n,children:(0,f.jsx)("div",{className:"jetpack-ai-assistant__menu-item",children:e.name})},`key-${e.key}`)),(0,f.jsx)(g.hN,{onChange:e=>{i(r.eJ,{tone:e})},disabled:n}),(0,f.jsx)(m.HU,{onChange:e=>{i(r.Gm,{language:e})},disabled:n})]})]})}},32249(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(3924),o=n(56427),s=n(27723),a=n(57273),i=(n(49663),n(10790));const __=s.__;const c=function(){const e=(0,r.A)("jetpack-ai-feedback");return(0,i.jsx)("div",{className:"jetpack-ai-feedback-control",children:(0,i.jsxs)(o.BaseControl,{children:[(0,i.jsx)(o.BaseControl.VisualLabel,{children:__("Feedback","jetpack")}),(0,i.jsx)("p",{children:__("Your feedback is valuable in our commitment to refine and improve this feature.","jetpack")}),(0,i.jsx)(a.N,{openInNewTab:!0,href:e,children:__("Share your feedback","jetpack")})]})})}},2162(e,t,n){"use strict";n.d(t,{Ay:()=>g,HU:()=>f});var r=n(96865),o=n(85985),s=n(56427),a=n(27723),i=n(13109),c=n(48329),l=n(41490),u=(n(97850),n(10790));const __=a.__,d=["en","es","fr","de","it","pt","ru","zh","ja","ar","hi","ko"],p=window?.Jetpack_Editor_Initial_State?.siteLocale||navigator?.language,h=p?.split("-")[0]||"en",m=(p?.split("-"),({value:e,onChange:t})=>{const n=[...d.filter(e=>e!==h)];return d.includes(h)&&n.unshift(h),(0,u.jsx)(s.MenuGroup,{label:__("Select language","jetpack"),children:n.map(n=>(0,u.jsx)(s.MenuItem,{onClick:()=>t(n+" ("+r.so[n].label+")"),isSelected:e===n,children:r.so[n].label},`key-${n}`))})});function g({value:e=h,label:t=r.u0,onChange:n,disabled:a=!1}){const{tracks:c}=(0,o.st)();return a?(0,u.jsx)(s.Tooltip,{text:t,children:(0,u.jsx)(s.Button,{disabled:!0,children:(0,u.jsx)(i.A,{icon:l.A})})}):(0,u.jsx)(s.ToolbarDropdownMenu,{icon:l.A,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&c.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"i18n"})},children:()=>(0,u.jsx)(m,{value:e,onChange:n})})}function f({value:e=h,label:t=r.u0,onChange:n,disabled:o=!1}){return(0,u.jsx)(s.DropdownMenu,{className:"ai-assistant__i18n-dropdown",icon:l.A,label:t,toggleProps:{children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"ai-assistant__i18n-dropdown__toggle-label",children:t}),(0,u.jsx)(i.A,{icon:c.A})]}),disabled:o},children:({onClose:t})=>(0,u.jsx)(m,{onChange:(...e)=>{n(...e),t()},value:e})})}},99050(e,t,n){"use strict";n.d(t,{Ay:()=>u});var r=n(96865),o=n(85985),s=n(56427),a=n(27723),i=n(33196),c=n(10790);const __=a.__,l=[{name:__("Summarize","jetpack"),key:"summarize",aiSuggestion:r.UA},{name:__("Make longer","jetpack"),key:"make-longer",aiSuggestion:r.br},{name:__("Make shorter","jetpack"),key:"make-shorter",aiSuggestion:r.fD}];function u({key:e,label:t=__("Improve","jetpack"),exclude:n=[],onChange:r,disabled:a=!1}){const{tracks:u}=(0,o.st)();return a?(0,c.jsx)(s.Tooltip,{text:t,children:(0,c.jsx)(s.Button,{disabled:!0,children:(0,c.jsx)(s.Icon,{icon:i.A})})}):(0,c.jsx)(s.ToolbarDropdownMenu,{icon:i.A,label:t,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&u.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"improve"})},children:()=>{const o=l.filter(e=>!n.includes(e.key));return(0,c.jsx)(s.MenuGroup,{label:t,children:o.map(t=>(0,c.jsx)(s.MenuItem,{onClick:()=>r(t.aiSuggestion,{contentType:"generated"}),isSelected:e===t.key,children:t.name},`key-${t.key}`))})}})}},33468(e,t,n){"use strict";n.d(t,{Ay:()=>b});var r=n(96865),o=n(85985),s=n(56427),a=n(27723),i=n(33196),c=n(73493),l=n(93761),u=n(90437),d=n(80224),p=n(55507),h=n(48499),m=n(10790);const __=a.__,g=[{label:__("Post about…","jetpack"),description:{original:"Write a post about ",translated:__("Write a post about","jetpack")+" "}},{label:__("Informative article on…","jetpack"),description:{original:"Craft an informative article explaining ",translated:__("Craft an informative article explaining","jetpack")+" "}},{label:__("Step-by-step tutorial on…","jetpack"),description:{original:"Write a step-by-step tutorial on ",translated:__("Write a step-by-step tutorial on","jetpack")+" "}},{label:__("Motivational post on…","jetpack"),description:{original:"Create a motivational post on ",translated:__("Create a motivational post on","jetpack")+" "}}],f=[{label:__("Say it differently…","jetpack"),description:{original:"Rewrite it in a way that ",translated:__("Rewrite it in a way that","jetpack")+" "}},{label:__("Add…","jetpack"),description:{original:"Add more details about ",translated:__("Add more details about","jetpack")+" "}},{label:__("Remove…","jetpack"),description:{original:"Remove unnecessary details about ",translated:__("Remove unnecessary details about","jetpack")+" "}}];function b({hasContentBefore:e,hasContent:t,hasPostTitle:n,contentIsLoaded:a,onPromptSelect:b,onSuggestionSelect:v}){const y=__("Write with AI…","jetpack"),k=(0,h.C)("ai-correct-spelling"),{tracks:w}=(0,o.st)();return(0,m.jsx)(s.ToolbarDropdownMenu,{className:"jetpack-ai-assistant__templates-control",icon:null,label:y,text:y,onToggle:e=>{e&&w.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"write-with-ai"})},children:({onClose:o})=>a?(0,m.jsx)(s.MenuGroup,{label:__("Write…","jetpack"),children:f.map((e,t)=>(0,m.jsx)(s.MenuItem,{icon:i.A,iconPosition:"left",onClick:()=>{o(),b(e.description)},children:e.label},`key-${t}`))}):(0,m.jsxs)(m.Fragment,{children:[e&&(0,m.jsxs)(s.MenuGroup,{label:__("Based on preceding content…","jetpack"),children:[(0,m.jsx)(s.MenuItem,{icon:c.A,iconPosition:"left",onClick:()=>v(r.sn),children:r.DT}),k&&(0,m.jsx)(s.MenuItem,{icon:d.A,iconPosition:"left",onClick:()=>v(r.yy),children:r.DD}),(0,m.jsx)(s.MenuItem,{icon:u.A,iconPosition:"left",onClick:()=>v(r.A4),children:r.HM})]}),t&&(0,m.jsxs)(s.MenuGroup,{label:__("Based on entire content…","jetpack"),children:[t&&(0,m.jsx)(s.MenuItem,{icon:l.A,iconPosition:"left",onClick:()=>v(r.UA),children:r.JR}),t&&(0,m.jsx)(s.MenuItem,{icon:p.A,iconPosition:"left",onClick:()=>v(r.vE),children:r.mT})]}),(0,m.jsxs)(s.MenuGroup,{label:__("Write…","jetpack"),children:[n&&(0,m.jsx)(s.MenuItem,{icon:i.A,iconPosition:"left",onClick:()=>v(r.im),children:r.Rq}),g.map((e,t)=>(0,m.jsx)(s.MenuItem,{icon:i.A,iconPosition:"left",onClick:()=>{o(),b(e.description)},children:e.label},`key-${t}`))]})]})})}},62402(e,t,n){"use strict";n.d(t,{Ay:()=>h,US:()=>u,hN:()=>p});var r=n(96865),o=n(85985),s=n(56427),a=n(27723),i=n(48329),c=(n(78518),n(10790));const __=a.__,l=["formal","informal","optimistic","humorous","serious","skeptical","empathetic","confident","passionate","provocative"],u="formal",d=({value:e,onChange:t})=>(0,c.jsx)(s.MenuGroup,{label:__("Select tone","jetpack"),children:l.map(n=>(0,c.jsx)(s.MenuItem,{onClick:()=>t(n),isSelected:e===n,children:`${r.oZ[n].emoji} ${r.oZ[n].label}`},`key-${n}`))});function p({label:e=r.uQ,value:t=u,onChange:n,disabled:o=!1}){return(0,c.jsx)(s.DropdownMenu,{icon:r.Qr,label:e,className:"ai-assistant__tone-dropdown",popoverProps:{variant:"toolbar"},toggleProps:{children:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"ai-assistant__tone-dropdown__toggle-label",children:e}),(0,c.jsx)(s.Icon,{icon:i.A})]}),disabled:o},children:({onClose:e})=>(0,c.jsx)(d,{value:t,onChange:t=>{n(t),e()}})})}function h({value:e=u,onChange:t,disabled:n=!1}){const{tracks:a}=(0,o.st)();return n?(0,c.jsx)(s.Tooltip,{text:r.uQ,children:(0,c.jsx)(s.Button,{disabled:!0,children:(0,c.jsx)(s.Icon,{icon:r.Qr})})}):(0,c.jsx)(s.ToolbarDropdownMenu,{icon:r.Qr,label:r.uQ,popoverProps:{variant:"toolbar"},onToggle:e=>{e&&a.recordEvent("jetpack_ai_assistant_block_toolbar_menu_show",{tool:"tone"})},children:()=>(0,c.jsx)(d,{value:e,onChange:t})})}},35182(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(96865),o=n(94715),s=n(56427),a=n(27723),i=n(88901),c=n(60484),l=n(2162),u=n(99050),d=n(33468),p=n(62402),h=n(10790);const __=a.__,m=({contentIsLoaded:e,getSuggestionFromOpenAI:t,retryRequest:n,handleAcceptContent:a,handleTryAgain:m,showRetry:g,contentBefore:f,hasPostTitle:b,wholeContent:v,setUserPrompt:y,recordEvent:k,isGeneratingTitle:w})=>(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)(o.BlockControls,{children:[!g&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.ToolbarGroup,{children:(0,h.jsx)(d.Ay,{hasContentBefore:!!f?.length,hasContent:!!v?.length,hasPostTitle:b,contentIsLoaded:e,onPromptSelect:e=>{k("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"prompt-template",prompt:e.original}),y(e.translated)},onSuggestionSelect:e=>{k("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:e}),t(e)}})}),(0,h.jsxs)(o.BlockControls,{group:"block",children:[(0,h.jsx)(p.Ay,{value:"neutral",onChange:n=>{k("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:r.eJ}),t(r.eJ,{tone:n,contentType:e?"generated":null})},disabled:!e&&!v?.length}),(0,h.jsx)(l.Ay,{value:"en",onChange:n=>{k("jetpack_editor_ai_assistant_block_toolbar_button_click",{type:"suggestion",suggestion:r.Gm}),t(r.Gm,{language:n,contentType:e?"generated":null})},disabled:!e&&!v?.length}),(0,h.jsx)(u.Ay,{onChange:t,exclude:w?["summarize"]:[],disabled:!e})]})]}),(g||m)&&(0,h.jsxs)(s.ToolbarGroup,{children:[!g&&e&&m&&(0,h.jsx)(s.ToolbarButton,{onClick:m,children:__("Try Again","jetpack")}),g&&e&&(0,h.jsx)(s.ToolbarButton,{icon:i.A,onClick:a,children:__("Accept","jetpack")}),g&&(0,h.jsx)(s.ToolbarButton,{icon:c.A,onClick:n,children:__("Retry","jetpack")})]})]})})},19422(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(96865),o=n(85985),s=n(94715),a=n(74997),i=n(56427),c=n(29491),l=n(47143),u=n(86087),d=n(27723),p=n(57273),h=n(13022),m=n(27970),g=n(56199),f=n(2274),b=n(32249),v=n(35182),y=n(4393),k=n(44732),w=n(76695),x=(n(84368),n(10790));const __=d.__,_="post"===window?.Jetpack_Editor_Initial_State?.screenBase;function j({attributes:e,setAttributes:t,clientId:n,isSelected:d}){const[j,C]=(0,u.useState)(null),{tracks:A}=(0,o.st)(),{getBlock:S}=(0,l.useSelect)("core/block-editor"),E=(0,u.useRef)(null),T=(0,u.useRef)(null),{replaceBlocks:N,removeBlock:P}=(0,l.useDispatch)("core/block-editor"),{editPost:B}=(0,l.useDispatch)("core/editor"),[I,M]=(0,u.useState)((0,r.MB)(e.preTransformAction)),{isOverLimit:R,requireUpgrade:L,increaseRequestsCount:D,requestsCount:F,requestsLimit:O,currentTier:z,loading:U,tierPlansEnabled:H}=(0,r.yM)(),$=Math.max(O-F,0),{autosaveAndRedirect:V}=(0,r.ON)(),q=(0,o.Bd)(z),G=()=>{setTimeout(()=>{E.current?.focus?.()},100)},W=()=>{setTimeout(()=>{T.current?.focus?.()},100)},Z=(0,c.useViewportMatch)("medium","<"),J=(0,u.useRef)(null),{getSuggestionFromOpenAI:K,stopSuggestion:Y,showRetry:Q,contentBefore:X,postTitle:ee,retryRequest:te,wholeContent:ne,requestingState:re,error:oe}=(0,y.A)({onSuggestionDone:(0,u.useCallback)(()=>{G(),D()},[D]),onUnclearPrompt:(0,u.useCallback)(()=>{W(),D()},[D]),onModeration:G,attributes:e,clientId:n,content:e.content,tracks:A,userPrompt:e.userPrompt,requireUpgrade:L,initialRequestingState:e.requestingState,contentRef:J,blockRef:T}),se="requesting"===re,ae=["requesting","suggesting"].includes(re),ie=(0,o.xI)(),{productPageUrl:ce}=(0,k.A)(),le=(0,w.y)(n);(0,u.useEffect)(()=>{if(!le)return;const e=JSON.parse(localStorage.getItem(le));if(!e)return;const{type:t,options:n}=e;localStorage.removeItem(le),K(t,n)},[le,K]),(0,u.useEffect)(()=>{oe&&C(!1)},[oe]),(0,u.useEffect)(()=>{["init","done"].includes(re)&&t({requestingState:re})},[re,t]);const ue=!!e.content,de=e.promptType===r.vE,pe=__("Accept","jetpack"),he=__("Accept title","jetpack"),me=de?he:pe,ge=async()=>{let t=(0,r._E)({content:e.content||""});if(t?.split("\n").length>1&&t?.split("\n")?.[0]?.match(/^<h1>.*<\/h1>$/)&&!ee){const e=t.split("\n"),n=e.shift();t=e.join("\n"),B({title:n.replace(/<[^>]*>/g,"")})}const o=(0,a.rawHandler)({HTML:t});await N(n,o);const s=(e=>{let t=null;return e.forEach(e=>{const n=document.querySelector(`.wp-block[data-block="${e.clientId}"]`);if(!n)return;"true"===n.contentEditable&&(t=n);const r=n.querySelectorAll("[contenteditable=true]");t=r.length?r[r.length-1]:t}),t})(o);s&&(e=>{const t=e.ownerDocument.getSelection();t.selectAllChildren(e),t.collapseToEnd(),e.focus()})(s)},fe=()=>{ge(),A.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})},be=()=>{_?(B({title:e.content?e.content.trim():""}),P(n),A.recordEvent("jetpack_ai_assistant_block_accept",{feature:"ai-assistant"})):fe()},ve=()=>{Y(),G(),A.recordEvent("jetpack_ai_assistant_block_stop",{feature:"ai-assistant"})},ye=(0,s.useBlockProps)({ref:T,className:(0,h.A)({"is-waiting-response":se})}),ke=__("Ask Jetpack AI…","jetpack"),we=__("Write about… Make a table for…","jetpack"),xe=(0,x.jsxs)(x.Fragment,{children:[R&&d&&(0,x.jsx)(r.Hb,{placement:"ai-assistant-block"}),!ie&&(0,x.jsx)(f.A,{block:"AI Assistant"})]}),_e=(0,x.jsx)(x.Fragment,{children:oe?.message&&!j&&"error_quota_exceeded"!==oe?.code&&(0,x.jsx)(i.Notice,{status:oe.status,isDismissible:!1,className:"jetpack-ai-assistant__error",children:oe.message})}),je=R&&q===o.Ti?(0,x.jsx)(r.QA,{variant:"muted"}):null,Ce=(0,u.useCallback)(e=>{e.preventDefault(),A.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:z?.slug,requests_count:F,placement:"jetpack_ai_assistant_block"}),V(e)},[A,z,F,V]);return(0,x.jsx)(i.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{esc:()=>{["requesting","suggesting"].includes(re)&&ve()}},children:(0,x.jsxs)("div",{...ye,children:[ue&&(0,x.jsx)("div",{ref:J,className:"jetpack-ai-assistant__content",children:(0,x.jsx)(u.RawHTML,{children:(0,r._E)({content:e.content||""})})}),(0,x.jsxs)(s.InspectorControls,{children:[je&&(0,x.jsxs)("div",{className:"block-editor-block-card",style:{paddingTop:0},children:[(0,x.jsx)("span",{className:"block-editor-block-icon"}),je]}),(0,x.jsxs)("div",{className:"block-editor-block-card",style:{paddingTop:0},children:[(0,x.jsx)("span",{className:"block-editor-block-icon"}),(0,x.jsx)(p.N,{openInNewTab:!0,href:ce,children:__("Discover all features","jetpack")})]}),(q===o._X||H&&q!==o.Ti)&&(0,x.jsx)(i.PanelBody,{initialOpen:!0,children:(0,x.jsx)(i.PanelRow,{children:(0,x.jsx)(m.A,{placement:g.k})})}),(0,x.jsx)(i.PanelBody,{initialOpen:!0,children:(0,x.jsx)(i.PanelRow,{children:(0,x.jsx)(b.A,{})})})]}),!ae&&ie&&!L&&(0,x.jsx)(v.A,{isWaitingState:ae,contentIsLoaded:ue,getSuggestionFromOpenAI:(e,t)=>{const n=(0,r.MB)(e,t);M(n),K(e,t)},retryRequest:te,handleAcceptContent:fe,handleAcceptTitle:be,handleTryAgain:null,showRetry:Q,contentBefore:X,hasPostTitle:!!ee?.length,wholeContent:ne,promptType:e.promptType,setUserPrompt:e=>{if(!E?.current)return;E.current.focus(),t({userPrompt:e})},recordEvent:A.recordEvent,isGeneratingTitle:de}),(0,x.jsx)(r.N0,{ref:E,disabled:L||!ie,value:e.userPrompt,placeholder:e?.content?ke:we,onChange:e=>{C(!0),t({userPrompt:e})},onSend:()=>{M(e.userPrompt),((...e)=>{K(...e),W()})("userPrompt"),A.recordEvent("jetpack_ai_assistant_block_generate",{feature:"ai-assistant"})},onStop:ve,onAccept:()=>{de?be():fe()},onDiscard:()=>{const r=e?.content===S(n).attributes?.content;t({content:e?.originalContent,promptType:void 0,messages:e?.originalMessages}),ge(),r?A.recordEvent("jetpack_ai_assistant_block_dismiss"):A.recordEvent("jetpack_ai_assistant_block_discard",{feature:"ai-assistant"})},state:re,isTransparent:L||!ie,showButtonLabels:!Z,showAccept:"init"!==re&&ue&&!ae,acceptLabel:me,showGuideLine:ue,showRemove:e?.content?.length>0,banner:xe,error:_e,customFooter:$%5!=0&&1!==F||U||q!==o._X?null:(0,x.jsx)(r.AK,{requestsRemaining:$,onUpgradeClick:Ce}),lastAction:I})]})})}},61351(e,t,n){"use strict";var r=n(94375),o=n(54681),s=n(19422),a=n(13802);n(84368),n(50797),n(78118);(0,r.M)(o,{edit:s.A,save:()=>null,transforms:a.Ay})},31124(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96865),o=n(56427),s=n(27723),a=n(10790);const __=s.__;function i({label:e=__("AI Assistant","jetpack"),behavior:t,onAction:n,onDropdownToggle:s,renderContent:i,behaviorContext:c,disabled:l}){return(0,a.jsx)(o.Dropdown,{popoverProps:{variant:"toolbar"},renderToggle:({isOpen:s,onToggle:i})=>(0,a.jsx)(o.ToolbarButton,{className:"jetpack-ai-assistant__button",showTooltip:!0,onClick:()=>{if("function"!=typeof t)switch(t){case"action":n?.();break;case"dropdown":i()}else t({context:c})},"aria-haspopup":"true","aria-expanded":s,label:e,icon:r.cj,disabled:l}),onToggle:s,renderContent:i})}},9731(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(96865),o=n(85985),s=n(56427),a=n(86087),i=n(27723),c=n(83147),l=n(28755),u=n(10067),d=n.n(u),p=n(31124),h=n(89872),m=(n(85808),n(10790));const __=i.__,g=d()("jetpack-ai:image-extension-toolbar-dropdown"),f=(0,a.forwardRef)(({onClose:e,onRequestAltText:t,onRequestCaption:n,loadingAltText:o,loadingCaption:i},u)=>{const{requireUpgrade:d}=(0,r.yM)(),p=(0,a.useCallback)(async r=>{try{r===h.X?await(t?.()):await(n?.()),e?.()}catch(e){g("Error generating %s",r,e)}},[t,n,e]);return(0,m.jsx)("div",{className:"jetpack-ai-assistant-image-toolbar-dropdown-wrapper",tabIndex:-1,ref:u,children:(0,m.jsxs)(s.MenuGroup,{children:[(0,m.jsx)(s.MenuItem,{icon:o?(0,m.jsx)(s.Spinner,{}):l.A,iconPosition:"left",onClick:()=>{p(h.X)},disabled:!!o||d,children:__("Generate alt text","jetpack")},"key-ai-assistant-alt-text"),(0,m.jsx)(s.MenuItem,{icon:i?(0,m.jsx)(s.Spinner,{}):c.A,iconPosition:"left",onClick:()=>{p(h.Q)},disabled:!!i||d,children:__("Generate caption","jetpack")},"key-ai-assistant-caption")]})})});function b({label:e=__("AI Assistant","jetpack"),onRequestAltText:t,onRequestCaption:n,loadingAltText:s=!1,loadingCaption:i=!1,disabled:c=!1,wrapperRef:l}){const{requireUpgrade:u}=(0,r.yM)(),{tracks:d}=(0,o.st)(),h=(0,a.useCallback)(e=>{e&&(d.recordEvent("jetpack_ai_assistant_extension_toolbar_menu_show",{block_type:"core/image"}),u&&(0,r.Fs)())},[u,d]),g=(0,a.useCallback)(()=>(d.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:"alt-text",block_type:"core/image"}),t?.()),[t,d]),b=(0,a.useCallback)(()=>(d.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:"caption",block_type:"core/image"}),n?.()),[n,d]);return(0,m.jsx)(p.A,{label:e,behavior:"dropdown",onDropdownToggle:h,disabled:c,renderContent:({onClose:e})=>(0,m.jsx)(f,{ref:l,onClose:e,onRequestAltText:g,onRequestCaption:b,loadingAltText:s,loadingCaption:i})})}},78118(e,t,n){"use strict";var r=n(96865),o=n(94715),s=n(29491),a=n(47143),i=n(43656),c=n(86087),l=n(52619),u=n(10067),d=n.n(u),p=n(16204),h=n(35317),m=n(48499),g=n(10821),f=n(4647),b=n(89872),v=n(9731),y=n(10790);const k=d()("jetpack-ai:image-extension"),w=(0,m.C)("ai-assistant-image-extension"),x={group:"block"};const _=(0,s.createHigherOrderComponent)(e=>{function t(t){const{increaseRequestsCount:n,dequeueAsyncRequest:s,requireUpgrade:l}=(0,r.yM)(),{getCurrentPostId:u,isImageBusy:d}=(0,a.useSelect)(e=>{const{getCurrentPostId:n}=e(i.store);return{getCurrentPostId:n,isImageBusy:e(p.M)?.isImageBusy(t.clientId)??!1}},[t.clientId]),{getPostContent:h}=(0,r.dh)(),[m,w]=(0,c.useState)(d),[_,j]=(0,c.useState)(!1),{updateBlockAttributes:C}=(0,a.useDispatch)(i.store),{createNotice:A}=(0,a.useDispatch)("core/notices"),S=(0,c.useRef)(null),E=!!t.attributes.url,T=m||_;(0,c.useEffect)(()=>{w(d)},[d]);const N=(e,t)=>{e===b.X?w(t):e===b.Q&&j(t)},P=(0,c.useCallback)(e=>{S.current&&(S.current.setAttribute("tabindex","0"),S.current.focus()),N(e,!0)},[]),B=(0,c.useCallback)(e=>{A("error",e,{isDismissible:!0})},[A]);(0,c.useEffect)(()=>{T||S.current&&S.current.setAttribute("tabindex","-1")},[T]);const I=(0,c.useCallback)(async(e,o=!1)=>{if(!l){P(e);try{const a={};e===b.X&&(0,r.in)(t.clientId),e===b.Q&&(a.positions=[t.clientId]),s();const i=await(0,r.R0)([{role:"jetpack-ai",context:{type:e,content:h(f.P),...a,images:[{url:o?await(0,r.Zo)(t.attributes.url):t.attributes.url}]}}],{postId:u(),feature:"jetpack-ai-image-extension"});n();const c=JSON.parse(i?.replace?.(/^```json\s*/,"")?.replace(/```$/,""));if(e===b.X){const e=c.texts?.[0];C(t.clientId,{alt:e})}else if(e===b.Q){const e=c.captions?.[0];C(t.clientId,{caption:e})}N(e,!1)}catch(t){if(t?.message.includes("The image URL is invalid")&&!o)return k("Retrying with base64 image"),I(e,!0);k(`Error generating ${e}`,t),t?.message&&B(`Image ${e===b.X?"alt text":"caption"} generation failed: ${t.message}`),N(e,!1)}}},[s,u,h,n,t.attributes.url,t.clientId,l,B,P,C]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(e,{...t}),!g.TL&&(0,y.jsx)(o.BlockControls,{...x,children:(0,y.jsx)(v.A,{onRequestAltText:()=>I(b.X),onRequestCaption:()=>I(b.Q),loadingAltText:m,loadingCaption:_,disabled:!E,wrapperRef:S})})]})}return n=>(0,h.A)(n.name)?(0,y.jsx)(t,{...n}):(0,y.jsx)(e,{...n})},"blockEditWithAiComponents");(0,l.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support/with-ai-image-extension",function(e,t){var n;return(n=t,!!(0,g.Bi)()&&!!w&&"core/image"===n)?{...e,edit:_(e.edit),supports:{...e.supports,"jetpack/ai":{assistant:!0}}}:e},100)},10821(e,t,n){"use strict";n.d(t,{Bi:()=>l,TL:()=>c});var r=n(85985),o=n(74997),s=n(47143),a=n(48499);const i=(0,a.C)("ai-assistant-support"),c=(0,a.C)("ai-sidebar-toolbar-button");function l(){if(!(0,o.getBlockType)("jetpack/ai-assistant"))return!1;if(!i)return!1;if(!(0,r.xI)())return!1;return!((0,s.select)("core/edit-post")?.getHiddenBlockTypes?.()??[]).includes("jetpack/ai-assistant")}},4647(e,t,n){"use strict";n.d(t,{P:()=>o});var r=n(96865);const o=e=>{const t=(0,r._G)().filter(e=>"core/image"===e.name);let n=0;return e=(e=e.replace(/<figcaption[^>]*>.*?<\/figcaption>/g,"")).replace(/<!-- wp:image[^>]*>.*?<img[^>]*>.*?<!-- \/wp:image -->/gs,()=>{const e=t[n];return n++,e?`<img src="${e.clientId}">`:""})}},52998(e,t,n){"use strict";n.d(t,{mt:()=>a});var r=n(96865),o=n(74997),s=n(47143);class a{clientId;renderRules=[];firstUpdate=!0;behavior="dropdown";isChildBlock=!1;feature="ai-assistant";adjustPosition=!0;startOpen=!1;hideOnBlockFocus=!0;supports={};constructor(e,t=[]){this.clientId=e,this.renderRules=t}getBlock(){const{getBlock:e}=(0,s.select)("core/block-editor");return e(this.clientId)}getContent(){const e=this.getBlock();return t=(0,o.getBlockContent)(e),(0,r.rh)({content:t});var t}renderContent(e){return function(e,t=[]){return(0,r._E)({content:e,rules:t,extension:!0})}(e,this.renderRules)}onSuggestion(e){if(!e)return;const t=this.renderContent(e);this.replaceBlockContent(t)}onDone(e){this.firstUpdate=!0}replaceBlockContent(e){const[t]=(0,o.rawHandler)({HTML:e});if(!t)return;const{updateBlockAttributes:n,replaceInnerBlocks:r,__unstableMarkNextChangeAsNotPersistent:a}=(0,s.dispatch)("core/block-editor");this.firstUpdate?this.firstUpdate=!1:a(),n(this.clientId,t.attributes),a(),r(this.clientId,t.innerBlocks)}getExtensionInputPlaceholder(){return null}}},96306(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(96865),o=n(85985),s=n(86087),a=n(27723),i=n(13022),c=(n(49882),n(10790));const __=a.__,l=(0,i.A)("jetpack-ai-assistant-extension-ai-input","wp-block");function u({customPlaceholder:e,className:t,requestingState:n,requestingError:a,inputRef:u,wrapperRef:d,action:p,blockType:h,feature:m,request:g,stopSuggestion:f,close:b,undo:v,tryAgain:y,lastAction:k}){const w=e||__("Ask Jetpack AI to edit…","jetpack"),[x,_]=(0,s.useState)(""),[j,C]=(0,s.useState)(w),{checkoutUrl:A}=(0,r.ON)(),{tracks:S}=(0,o.st)(),[E,T]=(0,s.useState)(0),[N,P]=(0,s.useState)(!1),{requireUpgrade:B,requestsCount:I,requestsLimit:M,loading:R,nextTier:L,currentTier:D}=(0,r.yM)(),F=(0,s.useMemo)(()=>B||["requesting","suggesting"].includes(n),[B,n]),O=(0,s.useMemo)(()=>B&&1===D?.value,[B,D]),z=(0,s.useCallback)(()=>{S.recordEvent("jetpack_ai_assistant_extension_generate",{block_type:h,feature:m}),g?.(x)},[h,m,g,S,x]),U=(0,s.useCallback)(()=>{S.recordEvent("jetpack_ai_assistant_extension_stop",{block_type:h}),C(w),f?.()},[h,w,f,S]);const H=(0,s.useCallback)(()=>{S.recordEvent("jetpack_ai_assistant_undo",{block_type:h,prompt:k||null}),v?.()},[h,k,S,v]),$=(0,s.useCallback)(()=>{S.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:D?.slug,requests_count:I,placement:"jetpack_ai_assistant_extension"})},[D?.slug,I,S]),V=(0,s.useCallback)(()=>{S.recordEvent("jetpack_ai_assistant_try_again",{block_type:h}),y?.()},[h,S,y]);return(0,s.useEffect)(()=>{["init","done"].includes(n)&&_("")},[n]),(0,s.useEffect)(()=>{C(p||w),p&&_("")},[p,w]),(0,s.useEffect)(()=>{P(!R&&!!L&&0===x.length)},[R,L,x]),(0,s.useEffect)(()=>{const e=Math.max(M-I,0);T(e)},[M,I]),(0,c.jsx)(r.FC,{className:(0,i.A)(l,t),placeholder:j,disabled:F,value:x,state:n,showGuideLine:!0,error:a,requestsRemaining:E,showUpgradeMessage:N,showFairUsageMessage:O,upgradeUrl:A,onChange:_,onSend:z,onStop:U,onClose:function(){b?.()},onUndo:H,onUpgrade:$,onTryAgain:V,wrapperRef:d,ref:u,lastAction:k,blockType:h})}},37931(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(85985),o=n(86087),s=n(27723),a=n(52068),i=n(76695),c=n(31124),l=n(21785),u=n(10790);const __=s.__;function d({blockType:e,onClose:t,onAskAiAssistant:n,onRequestSuggestion:r}){const{canTransformToAIAssistant:s,transformToAIAssistant:c,getSelectedBlockClientIds:l}=(0,i.A)(),d=(0,o.useCallback)(o=>{const a=l(),[i]=a,u=o?.options?.alwaysTransformToAIAssistant||!1;!(a.length<2)&&s({clientId:i,blockName:e})||u?c({request:o}):(o?r?.(o.promptType,o.options):n?.(),t?.())},[e,s,l,n,t,r,c]),[p]=l();return(0,u.jsx)(a.Ay,{blockType:e,clientId:p,onRequestSuggestion:(e,t)=>{d({promptType:e,options:t})},onAskAiAssistant:async()=>{d()},disabled:!1})}function p({behavior:e,blockType:t,label:n=__("AI Assistant","jetpack"),onAskAiAssistant:s,onRequestSuggestion:a}){const{tracks:i}=(0,r.st)(),p=(0,o.useContext)(l.B),h=(0,o.useCallback)(e=>{e&&i.recordEvent("jetpack_ai_assistant_extension_toolbar_menu_show",{block_type:t})},[t,i]),m=(0,o.useCallback)(()=>{i.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_prompt_show",{block_type:t}),s?.()},[t,s,i]),g=(0,o.useCallback)((e,n)=>{i.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:e,block_type:t}),a?.(e,n)},[t,a,i]);return(0,u.jsx)(c.A,{label:n,behavior:e,onAction:m,onDropdownToggle:h,renderContent:({onClose:e})=>(0,u.jsx)(d,{blockType:t,onClose:e,onAskAiAssistant:m,onRequestSuggestion:g}),behaviorContext:p})}},27571(e,t,n){"use strict";n.d(t,{L:()=>o,l:()=>r});const r=["jetpack/field-name","jetpack/field-number","jetpack/field-email","jetpack/field-text","jetpack/field-textarea","jetpack/field-time","jetpack/field-checkbox","jetpack/field-date","jetpack/field-telephone","jetpack/field-url","jetpack/field-checkbox-multiple","jetpack/field-radio","jetpack/field-select","jetpack/field-consent","jetpack/button"],o=["core/heading","core/paragraph","core/list-item","core/list","jetpack/contact-form",...r]},21785(e,t,n){"use strict";n.d(t,{B:()=>g,Q:()=>f});var r=n(86087),o=n(10067),s=n.n(o),a=n(52998),i=n(27571),c=n(50161),l=n(22352),u=n(53269),d=n(94987),p=n(125);const h=s()("jetpack-ai-assistant:extensions:get-block-handler"),m={"core/heading":c.T,"core/paragraph":p.d,"core/list-item":d.g,"core/list":u.b,"jetpack/contact-form":l.p,...i.l.reduce((e,t)=>({...e,[t]:l.g}),{})},g=(0,r.createContext)({});function f(e,t){let n=m[e];n||(h(`No handler found for block type: ${e}. Using default handler.`),n=a.mt);const r=new n(t);return{onSuggestion:r.onSuggestion.bind(r),onDone:r.onDone.bind(r),getContent:r.getContent.bind(r),getExtensionInputPlaceholder:r.getExtensionInputPlaceholder.bind(r),behavior:r.behavior,isChildBlock:r.isChildBlock,feature:r.feature,adjustPosition:r.adjustPosition,startOpen:r.startOpen,hideOnBlockFocus:r.hideOnBlockFocus,supports:r.supports}}},50161(e,t,n){"use strict";n.d(t,{T:()=>o});var r=n(52998);class o extends r.mt{constructor(e){super(e,[])}onSuggestion(e){const t=this.getBlock();if(e.startsWith("#")||(e=`${"#".repeat(t?.attributes?.level||1)} ${e}`),e.match(/^#*\s*$/))return;const n=this.renderContent(e);this.replaceBlockContent(n)}}},8663(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(47143),o=n(52998);class s extends o.mt{jetpackFormBlockName="jetpack/contact-form";constructor(e){super(e,[]),this.behavior=this.handleBehavior,this.isChildBlock=!0,this.hideOnBlockFocus=!1}handleBehavior=({context:e})=>{const t=(0,r.dispatch)("core/block-editor"),{getBlockParentsByBlockName:n}=(0,r.select)("core/block-editor"),o=n(this.clientId,this.jetpackFormBlockName)?.[0];t.selectBlock(o),e?.[this.jetpackFormBlockName]?.handleAskAiAssistant?.()}}},22352(e,t,n){"use strict";n.d(t,{g:()=>l.g,p:()=>u});var r=n(74997),o=n(47143),s=n(27723),a=n(62514),i=n(96568),c=n(52998),l=n(8663);const __=s.__;class u extends c.mt{currentListOfValidBlocks=[];originalVariationName=null;constructor(e){super(e,[]),this.behavior="action",this.feature="jetpack-form-ai-extension",this.startOpen=!0,this.hideOnBlockFocus=!1,this.adjustPosition=!1,this.supports={file_upload_field:1}}setContent(e,t=!1){const{replaceInnerBlocks:n,updateBlockAttributes:s}=(0,o.dispatch)("core/block-editor"),c=(0,r.parse)(e).find(e=>"jetpack/contact-form"===e.name);c&&c.attributes?.variationName&&(this.originalVariationName=c.attributes.variationName);const l=e.replace(/<!-- (\/)*wp:jetpack\/(contact-)*form ({[^}]*} )*(\/)*-->/g,""),u=(0,i.d)(l),d=(0,r.parse)(u).filter(e=>e.isValid&&!["core/freeform","core/missing","core/html"].includes(e.name));let p=!1;if(d.length<this.currentListOfValidBlocks.length)d.push(this.currentListOfValidBlocks[this.currentListOfValidBlocks.length-1]);else if(d.length===this.currentListOfValidBlocks.length&&d.length>0){const e=d[d.length-1],t=this.currentListOfValidBlocks[d.length-1];p=!(0,a.w)(e,t)}if(d.length>0&&(d.length!==this.currentListOfValidBlocks.length||p)&&(n(this.clientId,d),this.currentListOfValidBlocks=d),t){if(this.originalVariationName){const e=this.getBlock();e&&e.attributes.variationName!==this.originalVariationName&&s(this.clientId,{variationName:this.originalVariationName})}const e=e=>"jetpack/button"===e.name||"core/button"===e.name&&"button"===e.attributes?.tagName,t=d.filter(e),o=d.some(e=>"jetpack/form-step-navigation"===e.name);if(this.currentListOfValidBlocks=this.currentListOfValidBlocks||[],t.length>1){let r=0;this.currentListOfValidBlocks=this.currentListOfValidBlocks.filter(n=>!e(n)||(r++,r===t.length)),n(this.clientId,this.currentListOfValidBlocks)}else 0!==t.length||o||n(this.clientId,[...this.currentListOfValidBlocks,(0,r.createBlock)("core/button",{tagName:"button",type:"submit",text:__("Submit","jetpack"),lock:{remove:!0}})]);this.currentListOfValidBlocks=[]}}getExtensionInputPlaceholder(){if(!this.getContent()){const e=[__("Example: a contact form with name, email, and message fields","jetpack"),__("Example: a pizza ordering form with name, address, phone number and toppings","jetpack"),__("Example: a survey form with multiple choice questions","jetpack")];return e[Math.floor(Math.random()*e.length)]}const e=[__("Example: remove email field","jetpack"),__("Example: make email optional","jetpack"),__("Example: add message field and make it required","jetpack")];return e[Math.floor(Math.random()*e.length)]}getContent(){const e=this.getBlock();if(!e)return"";const{innerBlocks:t}=e;return t?.length?t.reduce((e,t)=>e+(0,r.serialize)(t)+"\n\n",""):""}onSuggestion(e){this.setContent(e)}onDone(e){this.setContent(e,!0)}}},71295(e,t,n){"use strict";n.d(t,{j:()=>s});var r=n(10821),o=n(27571);function s(e){return!!(0,r.Bi)()&&!!o.L.includes(e)}},94987(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(52998);class o extends r.mt{constructor(e){super(e,["listItem"]),this.isChildBlock=!0}}},53269(e,t,n){"use strict";n.d(t,{b:()=>o});var r=n(52998);class o extends r.mt{constructor(e){super(e,["list"])}}},125(e,t,n){"use strict";n.d(t,{d:()=>i});var r=n(96865),o=n(74997),s=n(52998);const a=new r.OO({fixes:["paragraph"]});class i extends s.mt{constructor(e){super(e,["paragraph"])}getContent(){const e=this.getBlock();return t=(0,o.getBlockContent)(e),a.render({content:t});var t}}},50797(e,t,n){"use strict";var r=n(96865),o=n(85985),s=n(94715),a=n(29491),i=n(47143),c=n(86087),l=n(52619),u=n(13022),d=n(10067),p=n.n(d),h=n(32735),m=n(35317),g=n(4e4),f=n(10821),b=n(96306),v=n(37931),y=n(21785),k=n(71295),w=n(10790);const x=p()("jetpack-ai-assistant:extensions:with-ai-extension"),_={"core/heading":"heading","core/paragraph":"paragraph","core/list-item":"list-item","core/list":"list","jetpack/contact-form":"form-ai"},j={group:"block"},C=(0,a.createHigherOrderComponent)(e=>{function t(t){const{clientId:n,isSelected:a,name:d,isSelectionEnabled:p}=t,m=(0,c.useRef)(null),k=(0,c.useRef)(0),C=(0,c.useRef)(null),A=(0,c.useRef)(""),S=(0,c.useRef)(null),E=(0,c.useRef)(document),T=(0,c.useRef)([]),[N,P]=(0,c.useState)(""),[B,I]=(0,c.useState)(null),M=(0,c.useRef)(null),R=(0,c.useRef)(null),L=(0,c.useRef)(null),D=(0,c.useRef)(null),{undo:F}=(0,i.useDispatch)("core/editor"),{postId:O}=(0,i.useSelect)(e=>{const{getCurrentPostId:t}=e("core/editor");return{postId:t()}},[]),{id:z,className:U}=(0,s.useBlockProps)({className:(0,u.A)({[d?.replace?.("/","-")]:!0})}),H=(0,i.useRegistry)(),{increaseRequestsCount:$,dequeueAsyncRequest:V,requireUpgrade:q}=(0,r.yM)(),{snapToBottom:G,enableAutoScroll:W,disableAutoScroll:Z}=(0,h.A)({current:E?.current?.getElementById(z)},void 0,!0),J=(0,c.useCallback)(()=>{S.current?.focus()},[]),{tracks:K}=(0,o.st)(),{onSuggestion:Y,onDone:Q,getContent:X,getExtensionInputPlaceholder:ee,behavior:te,isChildBlock:ne,feature:re,adjustPosition:oe,startOpen:se,hideOnBlockFocus:ae,supports:ie}=(0,c.useMemo)(()=>(0,y.Q)(d,n),[d,n]),ce=ee(),[le,ue]=(0,c.useState)(se),de=(0,c.useCallback)(()=>{ue(e=>!e)},[]),pe=(0,c.useCallback)(({promptType:e,options:t})=>{const n=X(),r=_[d];return[...T.current,{role:"jetpack-ai",context:{type:(0,g.p$)(e,r),content:n,request:t?.userPrompt,tone:t?.tone,language:t?.language,is_follow_up:T.current.length>0,supports:ie}}]},[d,X,ie]),he=(0,c.useCallback)(e=>{const t=e||E.current.getElementById(z);t&&m.current&&t.style.setProperty("padding-bottom",`calc(${k.current+16}px + ${A.current||"0px"} )`,"important")},[z]),me=(0,c.useCallback)(e=>{Y(e),oe&&he(),G()},[Y,oe,G,he]),ge=(0,c.useCallback)((e,t)=>{if(Z(),Q(e),$(),P(""),K.recordEvent("jetpack_ai_assistant_toolbar_extension_generate",{prompt_type:M.current,model:t,generation_time:null!==D.current?window?.performance?.now?.()-D.current:null}),R.current?.message){const e={role:"assistant",content:X()};if(T.current.push(R.current.message,e),T.current.length>20){T.current.splice(0,T.current.length-20);const e=T.current.findIndex(e=>"jetpack-ai"===e.role);-1!==e&&(T.current=T.current.slice(e),T.current[0].context={...T.current[0].context,is_follow_up:!1})}}R.current=null,setTimeout(()=>{oe&&he(),J()},100),(0,l.doAction)("jetpack_ai_assistant_generation_complete",n,d)},[Z,Q,$,X,oe,J,he,K,M,n,d]),fe=(0,c.useCallback)(e=>{Z(),P(""),x("Request error",e),e.code!==r.mA&&e.code!==r.Or&&$()},[Z,$]),{request:be,stopSuggestion:ve,requestingState:ye,model:ke,error:we,reset:xe}=(0,r.o2)({onSuggestion:me,onDone:ge,onError:fe,askQuestionOptions:{postId:O,feature:re}});(0,c.useEffect)(()=>{L.current=ye},[ye]);const _e=(0,c.useCallback)((e,t)=>{if(ue(!0),q)return;M.current=e;const n=(0,r.MB)(e,t);n&&(P(n),I(n));const o=pe({promptType:e,options:t});x("Request suggestion",e,t);const s=o[o.length-1];R.current={promptType:e,options:t,humanText:n,message:s},V(),W(),D.current=window?.performance?.now?.()||null,be(o)},[V,W,pe,be,q]),je=(0,c.useCallback)(e=>{const t={userPrompt:e};I(e),W(),_e("userPrompt",t)},[W,_e]),Ce=(0,c.useCallback)(()=>{Z(),ve(),J()},[Z,ve,J]),Ae=(0,c.useCallback)(()=>{R.current&&_e(R.current.promptType,R.current.options)},[R,_e]),Se=(0,c.useCallback)(()=>{ue(!1),xe(),P(""),R.current=null,T.current=[]},[xe]),Ee=(0,c.useCallback)(async()=>{K.recordEvent("jetpack_ai_assistant_toolbar_extension_undo",{prompt_type:M.current,model:ke}),await F(),Se()},[F,Se,K,ke,M]);(0,c.useEffect)(()=>{a||Se()},[a,Se]),(0,c.useEffect)(()=>{S.current&&p&&(E.current=S.current.ownerDocument,J())},[le,J,p]),(0,c.useEffect)(()=>{const e=m.current;if(oe||!e||!a)return;const t=H.select(s.store),{wasBlockJustInserted:r}=t;if(!r(n)||0===t.getBlockCount(n))return;const o=e.ownerDocument.getElementById(z),i=e.ownerDocument.defaultView;if(!o||!i)return;const c=e.getBoundingClientRect();if(o.getBoundingClientRect().bottom<=c.top)return;const l=()=>{const{bottom:t}=i.getComputedStyle(e),n=e.style.position,r=e.style.scrollMarginBottom;e.style.position="static",e.style.scrollMarginBottom=t,e.scrollIntoView({block:"end"}),e.style.position=n,e.style.scrollMarginBottom=r};l(),i.requestAnimationFrame(l)},[]),(0,c.useEffect)(()=>{let e=E.current.getElementById(z);if(e&&oe)return le&&!C.current&&m.current?(A.current=e.style.paddingBottom,C.current=new ResizeObserver(([t])=>{if(e=E.current.getElementById(z),k.current=t.contentRect.height,e&&m.current&&k.current>0){he(e);const{marginBottom:t}=getComputedStyle(e),n=parseFloat(t);m.current.style.setProperty("margin-top",`-${k.current+n}px`,"important"),m.current.style.setProperty("margin-bottom",`${n+16}px`,"important")}}),C.current.observe(m.current)):C.current&&(e.style.paddingBottom=A.current,C.current.disconnect(),C.current=null,k.current=0),()=>{C.current&&C.current.disconnect()}},[he,oe,n,C,z,le]),(0,c.useEffect)(()=>{if(ae&&le){const e=E.current.getElementById(z),t=()=>{["requesting","suggesting"].includes(L.current)||(ue(!1),e?.removeEventListener("focusin",t))};return e?.addEventListener("focusin",t),()=>{e?.removeEventListener("focusin",t)}}},[ae,le,z]);const Te=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(e,{...t}),le&&(0,w.jsx)(b.A,{customPlaceholder:ce||null,className:U,requestingState:ye,requestingError:we,wrapperRef:m,inputRef:S,action:N,blockType:d,feature:re,request:je,stopSuggestion:Ce,close:Se,undo:Ee,tryAgain:Ae,lastAction:B}),!f.TL&&(0,w.jsx)(s.BlockControls,{...j,children:(0,w.jsx)(v.A,{blockType:d,onAskAiAssistant:de,onRequestSuggestion:_e,behavior:te})})]});if(ne)return Te;const Ne={value:{[d]:{handleAskAiAssistant:de,handleRequestSuggestion:_e}}};return(0,w.jsx)(y.B.Provider,{...Ne,children:Te})}return n=>{const r=(0,m.A)(n.name);return n.clientId&&n.attributes&&r?(0,w.jsx)(t,{...n}):(0,w.jsx)(e,{...n})}},"blockEditWithAiComponents");(0,l.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support/with-ai-text-extension",function(e,t){return(0,k.j)(t)?{...e,edit:C(e.edit),supports:{...e.supports,"jetpack/ai":{assistant:!0}}}:e},100)},89872(e,t,n){"use strict";n.d(t,{Q:()=>o,X:()=>r});const r="images-alt-text",o="images-caption"},4393(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(96865),o=n(47143),s=n(86087),a=n(10067),i=n.n(a),c=n(62402),l=n(64425),u=n(16597),d=n(32735);const p=i()("jetpack-ai-assistant:error"),h=({attributes:e,clientId:t,content:n,tracks:a,userPrompt:i,onSuggestionDone:h,onUnclearPrompt:m,onModeration:g,requireUpgrade:f,initialRequestingState:b,contentRef:v,blockRef:y})=>{const[k,w]=(0,s.useState)(!1),[x,_]=(0,s.useState)(""),{updateBlockAttributes:j}=(0,o.useDispatch)("core/block-editor"),{dequeueAiAssistantFeatureAsyncRequest:C,setAiAssistantFeatureRequireUpgrade:A}=(0,o.useDispatch)("wordpress-com/plans"),{snapToBottom:S,enableAutoScroll:E,disableAutoScroll:T}=(0,d.A)(y,v),N=(0,o.useSelect)(e=>e("core/editor").getEditedPostAttribute("title")),P=(0,o.useSelect)(e=>e("core/editor").getCurrentPostId()),B=(0,s.useRef)([]),I=(0,s.useRef)(void 0),{request:M,stopSuggestion:R,handleErrorQuotaExceededError:L,requestingState:D,error:F}=(0,r.o2)({onSuggestion:e=>{j(t,{content:e?.replaceAll(l.uV,"")}),S()},onDone:e=>{const n=e.replaceAll(l.uV,""),r={role:"assistant",content:n};B.current.push(I.current,r),B.current.length>20&&B.current.splice(0,B.current.length-20),j(t,{content:n,messages:B.current}),S(),T(),h?.()},onStop:()=>{S(),T(),h?.()},onError:e=>{switch(e?.code){case r.cT:w(!1);break;case r.ud:w(!1),g?.();break;case r.mA:case r.AZ:w(!0);break;case r.Or:w(!1),A(!0);break;case r.L9:m?.()}},onAllErrors:e=>{p(e)},initialRequestingState:b,askQuestionOptions:{postId:P,feature:"ai-assistant",functions:{}}}),O=["requesting","suggesting"].includes(D),z=async(o,s={})=>{if(C(),f)return L(),void w(!1);if(s={retryRequest:!1,tone:c.US,...s},O)return;w(!1);let d=x;if(a.recordEvent("jetpack_ai_chat_completion",{post_id:P}),B.current=[...e.messages],I.current={},s.retryRequest)I.current=d[d.length-1];else{const a=e?.isLayoutBuldingModeEnable?(0,u.rJ)(t):(0,u.aB)();d=(0,l.jf)({generatedContent:n,allPostContent:a,postContentAbove:(0,u.b$)(t),currentPostTitle:N,options:s,userPrompt:s?.userPrompt||i,type:o,isGeneratingTitle:e.promptType===r.vE}),I.current=d.pop(),d=[...d,...B.current],d.push(I.current),_(d),e.promptType!==r.vE&&j(t,{promptType:o})}try{E(),await M(d)}catch(e){p(e),w(!0),T()}};return{setShowRetry:w,showRetry:k,postTitle:N,contentBefore:(0,u.b$)(t),wholeContent:(0,u.aB)(),requestingState:D,error:F,getSuggestionFromOpenAI:z,stopSuggestion:R,retryRequest:()=>z("",{retryRequest:!0})}}},44732(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(3924),o=n(97999),s=n(85985);function a(){const e=(0,s.Mm)()&&!(0,o.isSimpleSite)(),t=e?(0,o.getMyJetpackUrl)("#/jetpack-ai"):(0,r.A)("org-ai"),{autosaveAndRedirect:n,isRedirecting:a}=(0,s.ZR)(t);return{productPageUrl:t,autosaveAndRedirect:n,isRedirecting:a,isMyJetpackAvailable:e}}},75956(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(90372),o=n(86087);const s=window?.Jetpack_Editor_Initial_State?.tracksUserData||null,a=parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId)||0,i=()=>((0,o.useEffect)(()=>{s&&r.A.initialize(s?.userid,s?.username,a?{blog_id:a}:{})},[]),r.A)},32735(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(10067);const s=n.n(o)()("jetpack-ai-assistant:use-auto-scroll"),a=(e,t,n=!1)=>{const o=(0,r.useRef)(null),a=(0,r.useRef)(null),i=(0,r.useRef)(!1),c=(0,r.useRef)(!1),l=(0,r.useRef)(!1),u=(0,r.useRef)(!1),d=(0,r.useRef)({scrollPadding:"",scrollMargin:""}),p=(0,r.useCallback)(()=>{s("enabling ignore scroll"),c.current=!0},[]),h=(0,r.useCallback)(()=>{i.current&&l.current&&!c.current&&p()},[p]),m=(0,r.useCallback)(()=>{i.current=!0,c.current=!1,l.current=!1,u.current=!1,o.current?.addEventListener("scroll",h),s("enabling auto scroll")},[h]),g=(0,r.useCallback)(()=>{i.current=!1,c.current=!1,l.current=!1,u.current=!1,o.current?.removeEventListener("scroll",h),a.current?.style&&(a.current.style.scrollPadding=d.current.scrollPadding,a.current.style.scrollMargin=d.current.scrollMargin),o.current=null,s("disabling auto scroll")},[h]),f=(0,r.useCallback)(()=>{if(!i.current||c.current)return;const r=n?e?.current:t?.current?.firstElementChild?.lastElementChild;r&&!u.current&&(l.current=!0,u.current=!0,o?.current?.removeEventListener?.("scroll",h),r?.scrollIntoView({block:"end",inline:"end"}),setTimeout(()=>{u.current=!1,o?.current?.addEventListener?.("scroll",h)},200))},[e,t,n,h]),b=(0,r.useCallback)(e=>{if(null==e)return null;if("BODY"===e?.nodeName)return e;if(e?.ownerDocument!==document)return e.ownerDocument;const{overflow:t}=window.getComputedStyle(e);return t.split(" ").every(e=>"auto"===e||"scroll"===e)?e:e?.parentElement?b(e?.parentElement):e},[]);return(0,r.useEffect)(()=>{const t=b(e?.current?.parentElement);!o.current&&t&&(o.current=t,a.current=t instanceof HTMLElement?t:t.documentElement,d.current={scrollPadding:a.current.style.scrollPadding,scrollMargin:a.current.style.scrollMargin},i.current&&(a.current.style.scrollPadding="80px",a.current.style.scrollMargin="10px"))},[e,b]),{snapToBottom:f,enableAutoScroll:m,disableAutoScroll:g}}},35317(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(85985);const o={"jetpack/contact-form":"contact-form"};function s(e){const t=o[e],{isModuleActive:n}=(0,r.q7)(t);return!t||n}},76695(e,t,n){"use strict";n.d(t,{A:()=>l,y:()=>c});var r=n(85985),o=n(47143),s=n(51609),a=n(16597),i=n(13802);function c(e){return`ai-assistant-block-${e}`}const l=()=>{const{replaceBlock:e,removeBlocks:t}=(0,o.useDispatch)("core/block-editor"),n=(0,o.useSelect)(e=>e("core/block-editor"),[]),{getSelectedBlockClientIds:l,getBlocksByClientId:u,getBlock:d,getBlockParents:p}=n,{tracks:h}=(0,r.st)();return{canTransformToAIAssistant:(0,s.useCallback)(({clientId:e,blockName:t})=>{if(!d(e))return!1;if(!i.y7.includes(t))return!1;const n=p(e);if(0===n.length)return!0;const r=d(n[n.length-1]);return!["core/list","core/list-item"].includes(r.name)},[d,p]),transformToAIAssistant:(0,s.useCallback)(({request:n}={})=>{const r=l(),o=u(r),s=(0,a.Sb)(o),[d]=o,[p,...m]=r,g={...d?.attributes||{},content:s,preTransformAction:n?.promptType},f=(0,i.rr)(d.name,g);if(n?.promptType){h.recordEvent("jetpack_editor_ai_assistant_extension_toolbar_button_click",{suggestion:n.promptType,block_type:d.name});const e={clientId:p,type:n.promptType,options:{...n.options,contentType:"generated",fromExtension:!0}};localStorage.setItem(c(f.clientId),JSON.stringify(e))}else h.recordEvent("jetpack_ai_assistant_prompt_show",{block_type:d.name});e(p,f),t(m)},[u,l,t,e,h]),getSelectedBlockClientIds:l}}},4e4(e,t,n){"use strict";n.d(t,{J1:()=>o,K6:()=>s,p$:()=>i});var r=n(96865);function o(e){return{role:"jetpack-ai",context:{type:"ai-assistant-initial-prompt",for:i(e)}}}function s({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:o,options:s,type:i,userPrompt:c,isGeneratingTitle:l}){const u=[],d="generated"===s?.contentType;let p=null;switch(i){case r.im:p=o;break;case r.sn:case r.A4:case r.yy:p=n;break;case r.vE:p=t;break;case r.br:case r.fD:p=e;break;case r.eJ:case r.UA:case r.Gm:p=d?e:t;break;case r.d5:p=n;break;case r.pE:p=e||t}const h=function(e,t){return!e&&t&&t.length>0?{role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:t}}:null}(i===r.pE?!!e?.length:d,p);return h&&u.push(h),u.push({role:"jetpack-ai",context:a({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:o,options:s,type:i,userPrompt:c,isGeneratingTitle:l})}),u}function a({options:e,type:t,userPrompt:n,isGeneratingTitle:o}){const s=function(e,t,n){return e?"title":!t||n?"content":null}(o,"generated"===e?.contentType,e?.fromExtension||!1);return{type:i(t),...s?{subject:s}:{},...t===r.eJ&&e?.tone?{tone:e.tone}:{},...t===r.Gm&&e?.language?{language:e.language}:{},...t===r.pE&&n?{request:n}:{}}}function i(e,t){const n={[r.im]:"ai-assistant-summary-by-title",[r.sn]:"ai-assistant-continue-writing",[r.A4]:"ai-assistant-simplify",[r.yy]:"ai-assistant-correct-spelling",[r.vE]:"ai-assistant-generate-title",[r.br]:"ai-assistant-make-longer",[r.fD]:"ai-assistant-make-shorter",[r.eJ]:"ai-assistant-change-tone",[r.UA]:"ai-assistant-summarize",[r.Gm]:"ai-assistant-change-language",[r.pE]:"ai-assistant-user-prompt",[r.d5]:"ai-assistant-transform-list-to-table"};return"form-ai"===t?"form-ai-extension":t?`${n[e]}-${t}-extension`:n[e]}},64425(e,t,n){"use strict";n.d(t,{jf:()=>s,uV:()=>o});n(96865);var r=n(4e4);const o="````";function s({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:o,options:s,type:a,userPrompt:i,isGeneratingTitle:c}){return[(0,r.J1)(a),...(0,r.K6)({generatedContent:e,allPostContent:t,postContentAbove:n,currentPostTitle:o,options:s,type:a,userPrompt:i,isGeneratingTitle:c})]}},16597(e,t,n){"use strict";n.d(t,{Sb:()=>c,aB:()=>i,b$:()=>a,rJ:()=>l});var r=n(96865),o=n(74997),s=n(47143);function a(e){if(!e)return"";const t=(0,s.select)("core/block-editor"),n=t.getBlockIndex(e),a=t.getBlocks().slice(0,n)??[];return a?.length?(0,r.rh)({content:(0,o.serialize)(a)}):""}function i(){const e=(0,s.select)("core/block-editor").getBlocks();return e?.length?(0,r.rh)({content:(0,o.serialize)(e)}):""}function c(e){return e.filter(e=>null!=e).map(e=>(0,o.getBlockContent)(e)).join("\n\n")}function l(e){const t=(0,s.select)("core/block-editor").getBlock(e);return t?.innerBlocks?.length?c(t.innerBlocks):""}},62514(e,t,n){"use strict";n.d(t,{w:()=>s});const r=e=>{delete e.clientId;for(const t of e.innerBlocks??[])r(t);return e},o=e=>r((e=>JSON.parse(JSON.stringify(e)))(e));function s(e,t){const n=o(e),r=o(t);return JSON.stringify(n)===JSON.stringify(r)}},96568(e,t,n){"use strict";function r(e){const t=document.createElement("div");return t.innerHTML=e,t.innerHTML}n.d(t,{d:()=>r})},48499(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(85985);function o(e){return!0===(0,r.FB)(e).available}},13802(e,t,n){"use strict";n.d(t,{Ay:()=>l,rr:()=>c,y7:()=>a});var r=n(96865),o=n(74997),s=n(54681);const a=["core/heading","core/paragraph","core/list"],i=[];function c(e,t){const{content:n,...a}=t;let i=n;"core/heading"===e&&t?.level&&(i=i.replace(/<(\/?)h\d([^>]*)>/g,`<$1h${t.level}$2>`));const c=(0,r.rh)({content:i}),l=[];return l.push({role:"jetpack-ai",context:{type:"ai-assistant-relevant-content",content:c}}),(0,o.createBlock)(s.name,{...a,content:c,originalContent:c,messages:l,originalMessages:l})}for(const e of a)i.push({type:"block",blocks:[e],isMatch:()=>a.includes(e),transform:(t,n)=>{const r=(0,o.getSaveContent)(e,t,n);return c(e,{...t,content:r})}});const l={from:i}},82448(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(85985),o=n(82201),s=n(27723),a=n(10790);const __=s.__,i=()=>{let e=window?.Jetpack_Editor_Initial_State?.adminUrl||"";e=e.replace(/wp-admin\/\?frame-nonce=[a-z0-9]+/,"wp-admin/");const t=`${e}admin.php?page=jetpack-search`,{autosaveAndRedirect:n,isRedirecting:s}=(0,r.ZR)(t),i=window?.Jetpack_AIChatBlock?.jetpackSettings;if(i?.module_active??i?.instant_search_enabled)return null;return(0,a.jsx)(o.cb,{buttonText:__("Enable Jetpack Search","jetpack"),checkoutUrl:t,className:"jetpack-ai-connect-banner",description:__("You need to enable Jetpack Search so that Jetpack AI can index your site.","jetpack"),goToCheckoutPage:e=>{n(e)},isRedirecting:s,visible:!0,align:null,title:null,context:null})}},50443(e,t,n){"use strict";n.d(t,{G:()=>s,W:()=>o});var r=n(27723);const __=r.__,o=__("Ask","jetpack"),s=__("Ask a question about this site","jetpack")},73546(e,t,n){"use strict";n.d(t,{z:()=>l});var r=n(94715),o=n(56427),s=n(3582),a=n(27723),i=n(50443),c=n(10790);const __=a.__;function l({setAttributes:e,placeholder:t,showCopy:n,showFeedback:a,showSources:l}){const[u,d]=(0,s.useEntityProp)("root","site","jetpack_search_ai_prompt_override");return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.InspectorControls,{children:(0,c.jsx)(o.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1,children:(0,c.jsx)(o.TextControl,{label:__("Placeholder Text","jetpack"),className:"jetpack-ai-chat__ask-button-text",placeholder:i.G,onChange:t=>e({placeholder:t}),value:t,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})}),(0,c.jsxs)(r.InspectorAdvancedControls,{children:[(0,c.jsx)(o.TextareaControl,{label:__("Additional instructions","jetpack"),help:__("Give Jetpack AI additional instructions for answer length, format, and tone.","jetpack"),value:u,onChange:d,__nextHasNoMarginBottom:!0}),(0,c.jsx)(o.ToggleControl,{label:__("Show copy answer button.","jetpack"),help:__("Allow users to easily copy the answer.","jetpack"),checked:n,onChange:t=>e({showCopy:t}),__nextHasNoMarginBottom:!0}),(0,c.jsx)(o.ToggleControl,{label:__("Show rating button.","jetpack"),help:__("Allow users to rate the answer and give feedback.","jetpack"),checked:a,onChange:t=>e({showFeedback:t}),__nextHasNoMarginBottom:!0}),(0,c.jsx)(o.ToggleControl,{label:__("Show list of sources.","jetpack"),help:__("Show used sources at the bottom of the answer.","jetpack"),checked:l,onChange:t=>e({showSources:t}),__nextHasNoMarginBottom:!0})]})]})}},97532(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(96865),o=n(94715),s=n(56427),a=n(47143),i=n(27723),c=(n(68594),n(2274)),l=n(26247),u=n(82448),d=n(50443),p=n(73546),h=n(10790);const __=i.__;function m({attributes:e,setAttributes:t,clientId:n}){const{askButtonLabel:i=d.W,placeholder:m=d.G,showCopy:g,showFeedback:f,showSources:b}=e,v=(0,o.useBlockProps)(),y=(0,a.useSelect)(e=>e("core/block-editor").isBlockSelected(n),[n]),k=(0,l.A)(),w=window?.Jetpack_AIChatBlock?.jetpackSettings?.supports_paid_search;return k&&!1===w?(0,h.jsx)("div",{...v,children:(0,h.jsx)(s.Placeholder,{label:__("Jetpack AI Search","jetpack"),instructions:__("AI-generated answers are part of the paid Jetpack Search plan. Upgrade to let visitors ask questions about your site.","jetpack"),children:(0,h.jsx)(s.Button,{variant:"primary",href:"https://jetpack.com/upgrade/search/?utm_source=ai-chat-block",target:"_blank",rel:"noopener noreferrer",children:__("Upgrade Jetpack Search","jetpack")})})}):(0,h.jsxs)("div",{...v,children:[!k&&(0,h.jsx)(c.A,{block:"Jetpack AI Search"}),(0,h.jsx)(u.A,{}),(0,h.jsxs)("div",{className:"jetpack-ai-chat-question-wrapper",children:[(0,h.jsx)(s.TextControl,{className:"jetpack-ai-chat-question-input",placeholder:m,disabled:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,h.jsx)(o.RichText,{className:"wp-block-button__link jetpack-ai-chat-question-button",onChange:e=>t({askButtonLabel:e}),value:i,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})]}),y&&(0,h.jsx)(r.Yj,{}),(0,h.jsx)(o.InspectorControls,{children:(0,h.jsx)(p.z,{askButtonLabel:i,placeholder:m,setAttributes:t,showCopy:g,showFeedback:f,showSources:b})})]})}},8393(e,t,n){"use strict";var r=n(94375),o=n(1629),s=n(97532),a=n(69115);n(68594),n(53061);(0,r.M)(o,{edit:s.A,save:a.A})},69115(e,t,n){"use strict";n.d(t,{A:()=>a}),n.dn(a);var r=n(94715),o=n(50443),s=n(10790);function a({attributes:e}){const t=r.useBlockProps.save({"data-ask-button-label":e.askButtonLabel||o.W});return(0,s.jsx)("div",{...t})}},29777(e,t,n){"use strict";n.d(t,{z:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__;function a({attributes:e,setAttributes:t}){const{statsData:n,statsOption:o}=e,a=[{value:"views",label:__("Views","jetpack")},{value:"visitors",label:__("Visitors","jetpack")}],i=[{value:"site",label:__("My whole site","jetpack")},{value:"post",label:__("This individual post","jetpack")}];return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(r.PanelBody,{title:__("Settings","jetpack"),children:[(0,s.jsx)(r.RadioControl,{label:__("Views or visitors","jetpack"),selected:n,onChange:e=>t({statsData:e}),options:a,help:__("Views represent site visits, whereas visitors represent unique individuals.","jetpack")}),(0,s.jsx)(r.RadioControl,{label:__("Show stats data for","jetpack"),selected:o,onChange:e=>t({statsOption:e}),options:i,disabled:"visitors"===n,help:"visitors"===n?__("Visitor counts aren't available for individual posts.","jetpack"):null}),(0,s.jsx)("span",{className:"jetpack-blog-stats__delay-notice",children:__("Stats are delayed for up to 5 minutes.","jetpack")})]})})}},33955(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(85985),o=n(54268),s=n(1455),a=n.n(s),i=n(94715),c=n(47143),l=n(86087),u=n(27723),d=n(29777),p=n(26584),h=n(10790);const __=u.__,_n=u._n;const m=function({attributes:e,className:t,setAttributes:n}){const{isLoadingModules:s,isChangingStatus:u,isModuleActive:m,changeStatus:g}=(0,r.q7)("stats"),{label:f,statsData:b,statsOption:v}=e,[y,k]=(0,l.useState)(null),[w,x]=(0,l.useState)(),[_,j]=(0,l.useState)(),C=(0,i.useBlockProps)(),A="post"===v?_:"views"===b?y:w,S=(0,c.useSelect)(e=>e("core/editor").getCurrentPostId(),[]);if((0,l.useEffect)(()=>{m&&a()({path:Number.isInteger(S)?`/wpcom/v2/blog-stats?post_id=${S}`:"/wpcom/v2/blog-stats"}).then(e=>{k(e["blog-views"]),x(e["blog-visitors"]),j(Number.isInteger(S)?e["post-views"]:"12345")})},[S,m]),(0,l.useEffect)(()=>{"visitors"===b&&n({statsOption:"site"})},[b,n]),!m&&!s)return(0,h.jsx)(p.k,{className:t,changeStatus:g,isLoading:u});const E=/* Translators: Number of visitors */ | |
| 61 | +_n("visitor","visitors",parseInt(A),"jetpack",0),T=/* Translators: Number of views */ | |
| 62 | +_n("hit","hits",parseInt(A),"jetpack",0);return(0,h.jsxs)("div",{...C,children:[(0,h.jsx)(i.InspectorControls,{children:(0,h.jsx)(d.z,{attributes:e,setAttributes:n})}),(0,h.jsx)("div",{className:t,children:s||null===y?(0,h.jsx)("p",{className:"jetpack-blog-stats__loading",children:__("Loading stats…","jetpack")}):(0,h.jsxs)("p",{children:[(0,h.jsxs)("span",{children:[(0,o.ZV)(A)," "]}),(0,h.jsx)(i.RichText,{tagName:"span",placeholder:"visitors"===b?E:T,value:f,allowedFormats:["core/bold","core/italic","core/link"],onChange:e=>n({label:e})})]})})]})}},95184(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(35116),a=n(33955);n(5955);(0,o.M)(s,{edit:a.A,save:()=>null,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"blog-stats"===e,transform:({instance:e})=>{const t=e.raw.title?(0,r.createBlock)("core/heading",{content:e.raw.title,level:3}):null,n=(0,r.createBlock)("jetpack/blog-stats",{label:e.raw.hits});return t?[t,n]:n}}]}})},26584(e,t,n){"use strict";n.d(t,{k:()=>u});var r=n(97999),o=n(85985),s=n(56427),a=n(27723),i=n(57273),c=n(35116),l=n(10790);const __=a.__,u=({className:e,isLoading:t,changeStatus:n})=>{const a=(0,r.isWoASite)()?"https://wordpress.com/support/stats/":"https://jetpack.com/support/jetpack-stats/";return(0,l.jsx)("div",{className:e,children:(0,l.jsxs)(s.Placeholder,{icon:(0,o.sh)(c),instructions:__("You'll need to activate the Stats module to use this block. Please note that hits are only counted while this module is active.","jetpack"),label:c.title,children:[(0,l.jsx)(s.Button,{disabled:t,isBusy:t,onClick:()=>n(!0),variant:"secondary",children:t?__("Activating Stats","jetpack"):__("Activate Stats","jetpack",0)}),(0,l.jsx)("div",{children:(0,l.jsx)(i.N,{openInNewTab:!0,href:a,children:__("Learn more about the Stats module.","jetpack")})})]})})}},29091(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(1455),o=n.n(r),s=n(94715),a=n(56427),i=n(47143),c=n(86087),l=n(27723),u=n(93832),d=n(13022),p=(n(23227),n(54919)),h=n(9075),m=n(10790);const __=l.__,_x=l._x;const g=(0,a.withNotices)(function({attributes:e,noticeOperations:t,noticeUI:n,setAttributes:r}){const g=(0,c.useRef)(!1),{answersLink:f,answersLinkText:b,gravatars:v,promptFetched:y,promptId:k,promptLabel:w,promptText:x,showLabel:_,showResponses:j,tagsAdded:C,isBloganuary:A}=e,S=(0,s.useBlockProps)({className:"jetpack-blogging-prompt"});(0,h.J)(k,C,e=>r({tagsAdded:e}));const E=(0,i.useSelect)(e=>{const{getEntityRecord:t,hasFinishedResolution:n}=e("core"),r=t("root","site")?.language||"en_US";return n("getEntityRecord",["root","site"])?r:null},[]);(0,c.useEffect)(()=>{if(!E||g.current||y)return;const e=()=>{r({promptFetched:!1,promptId:null,tagsAdded:!1}),g.current=!1,t.removeAllNotices()};let n="/wpcom/v3/blogging-prompts";if(k)n+="/"+encodeURIComponent(k);else{const e=new Date;n+=`?after=--${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}&order=desc`}n=(0,u.addQueryArgs)(n,{_locale:E,force_year:(new Date)?.getFullYear()}),g.current=!0,o()({path:n}).then(e=>{const t=k?e:e[0],n=(0,p.i)(E);r({answersLink:t.answered_link+`?locale=${n}`,answersLinkText:t.answered_link_text,gravatars:t.answered_users_sample.map(({avatar:e})=>({url:e})),promptFetched:!0,promptLabel:t.label,promptText:t.text,promptId:t.id,isBloganuary:!!t.bloganuary_id})}).catch(n=>{r({promptFetched:!0});const o="rest_post_invalid_id"===n.code&&k?(s=k,(0,m.jsxs)(m.Fragment,{children:[(0,l.sprintf)(/* translators: %d is the prompt id. */ | |
| 63 | +__("Prompt with id %d not found.","jetpack"),s)," ",(0,m.jsx)(a.Button,{variant:"link",onClick:e,children:__("Reset prompt","jetpack")})]})):(t=>(0,m.jsxs)(m.Fragment,{children:[(0,l.sprintf)(/* translators: %s is the error message. */ | |
| 64 | +__("Error while fetching prompt: %s","jetpack"),t)," ",(0,m.jsx)(a.Button,{variant:"link",onClick:e,children:__("Retry","jetpack")})]}))(n.message);var s;t.removeAllNotices(),t.createErrorNotice(o)})},[g,t,y,k,r,E]);const T=e=>{r({showLabel:e})},N=e=>{r({showResponses:e})},P=(0,d.A)(["jetpack-blogging-prompt__label"],{"is-bloganuary-icon":A});return(0,m.jsxs)("div",{...S,children:[n,(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(s.InspectorControls,{children:(0,m.jsxs)(a.PanelBody,{title:_x("Settings","title of block settings sidebar section","jetpack"),children:[(0,m.jsx)(a.ToggleControl,{label:__("Show prompt label","jetpack"),checked:_,onChange:T,__nextHasNoMarginBottom:!0}),(0,m.jsx)(a.ToggleControl,{label:__("Show other responses","jetpack"),checked:j,onChange:N,__nextHasNoMarginBottom:!0})]})})}),y?(0,m.jsxs)(m.Fragment,{children:[_&&(0,m.jsx)("div",{className:P,children:w}),(0,m.jsx)("div",{className:"jetpack-blogging-prompt__text",children:x}),j&&k&&(0,m.jsxs)("div",{className:"jetpack-blogging-prompt__answers",children:[v&&v.slice(0,3).map(({url:e})=>e&&(0,m.jsx)("img",{className:"jetpack-blogging-prompt__answers-gravatar",src:e},e)),(0,m.jsx)("a",{className:"jetpack-blogging-prompt__answers-link",href:f,target:"_blank",rel:"external noreferrer noopener",children:b})]})]}):(0,m.jsx)("div",{className:"jetpack-blogging-prompt__spinner",children:(0,m.jsx)(a.Spinner,{})})]})})},87888(e,t,n){"use strict";var r=n(74997),o=n(47143),s=n(27723),a=n(94375),i=n(30552),c=n(32442),l=n(29091),u=n(63757),d=n(94530),p=n(86239),h=n(95444);n(23227),n(75279);const __=s.__,m=new URL(document.location.href),g=m.pathname.endsWith("/wp-admin/post-new.php"),f=g?m.searchParams.get("answer_prompt")??"0":"0",b=parseInt(f),v={edit:l.A,save:h.A,example:{attributes:{answersLink:"https://wordpress.com/tag/dailyprompt",answersLinkText:__("View responses","jetpack"),gravatars:[{url:u},{url:d},{url:p}],promptLabel:__("Daily writing prompt","jetpack"),promptText:__("What's your favorite place to visit?","jetpack"),promptFetched:!0,promptId:1234,showResponses:!0,showLabel:!0,tagsAdded:!0,isBloganuary:!1}}};b||(0,a.M)(c,v);async function y(e){await(0,i.O)();(0,r.getBlockType)("jetpack/blogging-prompt")||await new Promise(e=>{(0,a.M)(c,v),setTimeout(e,0)});const{insertBlocks:t}=(0,o.dispatch)("core/block-editor");t([(0,r.createBlock)("jetpack/blogging-prompt",{promptFetched:!1,promptId:e,tagsAdded:!0}),(0,r.createBlock)("core/paragraph")],0,void 0,!1)}g&&b&&y(b)},95444(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);const a=function({attributes:e}){const{answersLink:t,answersLinkText:n,gravatars:a,promptId:i,promptLabel:c,promptText:l,showLabel:u,showResponses:d,isBloganuary:p}=e,h=r.useBlockProps.save({className:"jetpack-blogging-prompt"}),m=(0,o.A)(["jetpack-blogging-prompt__label"],{"is-bloganuary-icon":p});return(0,s.jsxs)("div",{...h,children:[u&&(0,s.jsx)("div",{className:m,children:c}),(0,s.jsx)("div",{className:"jetpack-blogging-prompt__text",children:l}),d&&i&&(0,s.jsxs)("div",{className:"jetpack-blogging-prompt__answers",children:[a.map(({url:e})=>e&&(0,s.jsx)("img",{className:"jetpack-blogging-prompt__answers-gravatar","aria-hidden":"true",src:e},e)),(0,s.jsx)("a",{className:"jetpack-blogging-prompt__answers-link",href:t,target:"_blank",rel:"external noreferrer noopener",children:n})]})]})}},9075(e,t,n){"use strict";n.d(t,{J:()=>l});var r=n(1455),o=n.n(r),s=n(47143),a=n(86087),i=n(89877);function c(e){const t=(0,i.escapeHTML)(e);return o()({path:"/wp/v2/tags",method:"POST",data:{name:t}}).catch(t=>"term_exists"!==t.code?Promise.reject(t):Promise.resolve({id:t.data.term_id,name:e}))}function l(e,t,n){const{editPost:r}=(0,s.useDispatch)("core/editor"),o=(0,a.useRef)("not-started"),{getEditedPostAttribute:i}=(0,s.useSelect)(e=>e("core/editor"),[]),l=(0,s.useSelect)(e=>e("core/editor").getEditedPostAttribute("type"),[]),u=(0,s.useSelect)(e=>e("core/editor").getEditedPostAttribute("tags")||[],[]),d=(0,s.useSelect)(e=>e("core").getPostType("post")?.taxonomies?.includes("post_tag"),[]),p=(0,a.useMemo)(()=>0===u.length?null:{_fields:"id,name",context:"view",include:u.join(","),per_page:-1},[u]),h=(0,s.useSelect)(e=>0===u.length?[]:e("core").getEntityRecords("taxonomy","post_tag",p)||[],[p,u.length]),m=(0,s.useSelect)(e=>0===u.length||e("core").hasFinishedResolution("getEntityRecords",["taxonomy","post_tag",p]),[p,u.length]);(0,a.useEffect)(()=>{"post"===l&&d&&!t&&m&&e&&Array.isArray(h)&&("not-started"===o.current&&(h.some(e=>e.name&&"dailyprompt"===e.name)&&h.some(t=>t.name&&t.name===`dailyprompt-${e}`)?o.current="fulfilled":(o.current="pending",Promise.all([c("dailyprompt"),c(`dailyprompt-${e}`)]).then(e=>{const t=e.map(e=>e.id),n=i("tags")||[];r({tags:[...n,...t]}),o.current="fulfilled"}).catch(e=>{console.error(e),o.current="rejected"}))),"fulfilled"===o.current&&n(!0))},[r,d,l,e,o,n,h,u,t,m,i])}},59914(e,t,n){"use strict";n.d(t,{A:()=>r});const r=[n(46186)]},67805(e,t,n){"use strict";n.d(t,{A:()=>r});const r={id:{type:"string"},name:{type:"string"},icon:{type:"string",default:n(84954)},is_non_wpcom_site:{type:"boolean",default:!1},url:{type:"string"},description:{type:"string"}}},46186(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>s.A,save:()=>i,supports:()=>a.A});var r=n(94715),o=n(10790),s=n(67805),a=n(13896);const i=()=>(0,o.jsx)(r.InnerBlocks.Content,{})},13896(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0,inserter:!1}},74216(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(56427),s=(n(7738),n(27723)),a=n(10790);const __=s.__;const i=function({className:e,attributes:t,setAttributes:n}){const{icon:s,name:i,description:c}=t,l=(0,r.useBlockProps)({className:e});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("hr",{className:"wp-block-separator jetpack-blogroll-item-divider"}),(0,a.jsxs)("div",{...l,children:[(0,a.jsx)(r.MediaUpload,{multiple:!1,onSelect:e=>{n({icon:e.url})},render:({open:e})=>(0,a.jsx)(o.Button,{variant:"link",onClick:e,style:{padding:0},children:(0,a.jsx)("figure",{children:(0,a.jsx)("img",{className:"blogroll-item-image",onError:e=>{e.target.parentNode.classList.add("empty-site-icon")},src:s,alt:i})})})}),(0,a.jsxs)("div",{className:"jetpack-blogroll-item-content",children:[(0,a.jsx)("a",{children:(0,a.jsx)(r.RichText,{className:"jetpack-blogroll-item-title",value:i,tagName:"p",allowedFormats:["core/italic"],onChange:e=>{n({name:e})},placeholder:__("Enter site title","jetpack")})}),(0,a.jsx)(r.RichText,{className:"jetpack-blogroll-item-description",value:c,onChange:e=>{n({description:e})},placeholder:__("Enter site description","jetpack")})]})]})]})}},12256(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,o.jsx)(r.Path,{d:"M12 12.75H21V11.25H12V12.75Z"}),(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12C3 10.3431 4.34315 9 6 9C7.65685 9 9 10.3431 9 12C9 13.6569 7.65685 15 6 15C4.34315 15 3 13.6569 3 12ZM3.77743 10.8857C4.08602 10.2714 4.64181 9.80266 5.31427 9.61008C5.15499 9.79493 5.01798 10.0132 4.90612 10.2532C4.81521 10.4483 4.73949 10.6605 4.68112 10.8857H3.77743ZM3.58718 11.4C3.53956 11.5922 3.51429 11.7931 3.51429 12C3.51429 12.2069 3.53956 12.4078 3.58718 12.6H4.58166C4.55616 12.4057 4.54286 12.205 4.54286 12C4.54286 11.7949 4.55616 11.5942 4.58166 11.4H3.58718ZM5.10094 11.4C5.0724 11.5917 5.05714 11.7926 5.05714 12C5.05714 12.2074 5.0724 12.4083 5.10094 12.6H6.89907C6.92761 12.4083 6.94286 12.2074 6.94286 12C6.94286 11.7926 6.92761 11.5917 6.89906 11.4H5.10094ZM7.41834 11.4C7.44384 11.5942 7.45714 11.7949 7.45714 12C7.45714 12.2051 7.44384 12.4058 7.41835 12.6H8.41282C8.46044 12.4078 8.48571 12.2069 8.48571 12C8.48571 11.7931 8.46044 11.5922 8.41282 11.4H7.41834ZM8.22257 10.8857H7.31888C7.26051 10.6605 7.18479 10.4483 7.09388 10.2532C6.98202 10.0132 6.845 9.79493 6.68571 9.61007C7.35817 9.80265 7.91398 10.2714 8.22257 10.8857ZM6.78494 10.8857H5.21506C5.25946 10.7382 5.31227 10.5992 5.37226 10.4705C5.5421 10.1061 5.76275 9.83732 5.99999 9.67974C6.23724 9.83732 6.45789 10.1061 6.62775 10.4705C6.68773 10.5992 6.74054 10.7382 6.78494 10.8857ZM3.77743 13.1143H4.68112C4.74269 13.3519 4.82356 13.5749 4.92121 13.7787C5.0301 14.0059 5.16199 14.2132 5.31431 14.3899C4.64184 14.1974 4.08603 13.7286 3.77743 13.1143ZM6.78495 13.1143H5.21506C5.26258 13.2722 5.31973 13.4203 5.38498 13.5564C5.5534 13.9078 5.76894 14.1668 6.00003 14.3203C6.23726 14.1627 6.45791 13.8939 6.62775 13.5295C6.68773 13.4008 6.74054 13.2618 6.78495 13.1143ZM7.09388 13.7468C7.18479 13.5517 7.26052 13.3395 7.31889 13.1143H8.22257C7.91398 13.7286 7.35819 14.1973 6.68574 14.3899C6.84501 14.2051 6.98203 13.9868 7.09388 13.7468Z",strokeWidth:"0.1"})]})},74618(e,t,n){"use strict";n.d(t,{UU:()=>u,W0:()=>d});var r=n(94715),o=n(27723),s=n(84954),a=n(59914),i=n(74216),c=n(12256),l=(n(7738),n(10790));const __=o.__,u="blogroll-item",d={apiVersion:3,title:__("Blogroll Item","jetpack"),description:__("Blogroll Item","jetpack"),icon:{src:c.A},category:"grow",parent:["jetpack/blogroll"],keywords:[],supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0,inserter:!1},edit:i.A,attributes:{id:{type:"string"},name:{type:"string"},icon:{type:"string",default:s},is_non_wpcom_site:{type:"boolean",default:!1},url:{type:"string"},description:{type:"string"}},save:()=>{const e=r.useBlockProps.save();return(0,l.jsx)("div",{...e,children:(0,l.jsx)(r.InnerBlocks.Content,{})})},example:{attributes:{}},deprecated:a.A}},25904(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(3582),o=n(27723),s=(n(3010),n(10790));const __=o.__;function a({results:e,onSelect:t,searchInput:n,isLoading:a}){const[i]=(0,r.useEntityProp)("root","site","Blogroll Recommendations");if(a)return(0,s.jsx)("div",{className:"jetpack-blogroll__appender-results",children:(0,s.jsx)("div",{role:"status",children:__("Loading…","jetpack")})});const c=!n?.trim();return(0,s.jsxs)("div",{className:"jetpack-blogroll__appender-results",children:[c&&(0,s.jsx)("div",{"aria-autocomplete":"list",className:"jetpack-blogroll__appender-result-list-header-text",children:__("Suggestions","jetpack")}),0===e.length&&!c&&(0,s.jsxs)("div",{role:"status",className:"jetpack-blogroll__appender-no-results-message",children:[(0,s.jsx)("span",{className:"jetpack-blogroll__appender-no-results-message-main-text",children:__("No results","jetpack")}),(0,s.jsx)("span",{className:"jetpack-blogroll__appender-no-results-message-secondary-text",children:(0,o.sprintf)(/* translators: %s is search query. */ | |
| 65 | +__("No sites found for %s.","jetpack"),n)})]}),e.length>0&&(0,s.jsx)("ul",{"aria-live":"polite",children:e.map((e,n)=>{const r=i?.some?.(t=>t?.id===e?.blog_id)||!1;return(0,s.jsx)("li",{className:"jetpack-blogroll__appender-result-container",children:(0,s.jsxs)("button",{className:"jetpack-blogroll__appender-result-title",disabled:r,onClick:()=>t(e),children:[(0,s.jsx)("div",{className:"jetpack-blogroll__appender-result-image",children:e.site_icon&&(0,s.jsx)("img",{src:e.site_icon,alt:e.name,onError:e=>{e.target.parentNode.classList.add("empty-site-icon")}})}),(0,s.jsxs)("div",{className:"jetpack-blogroll__appender-result-text",children:[(0,s.jsx)("span",{className:"jetpack-blogroll__appender-result-title",children:e.name}),(0,s.jsx)("span",{className:"jetpack-blogroll__appender-result-description",children:e.description})]})]})},`${e.blog_id}-${n}`)})})]})}},10962(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(27723),s=(n(6988),n(10790));const __=o.__;function a({value:e,onChange:t}){return(0,s.jsx)("div",{className:"jetpack-blogroll__appender-search",children:(0,s.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Search for sites to add","jetpack"),hideLabelFromVision:!0,placeholder:__("Search…","jetpack"),value:e,onChange:e=>t(e)})})}},30413(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(56427),o=n(47143),s=n(86087),a=n(27723),i=n(60167),c=n(92507),l=n(85101),u=n(25904),d=n(10962),p=(n(22597),n(10790));const __=a.__;function h({isLoading:e,subscriptions:t,clientId:n}){const[a,h]=(0,s.useState)(!1),[m,g]=(0,s.useState)(),[f,b]=(0,s.useState)(""),{insertBlock:v}=(0,o.dispatch)("core/block-editor"),{siteDetails:y,isLoading:k}=(0,c.A)({siteURL:f,subscriptions:t,enabled:f});return e?(0,p.jsx)(r.Spinner,{className:"jetpack-blogroll__appender-spinner"}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r.Button,{className:"block-editor-button-blogroll-block-appender",ref:g,icon:i.A,label:__("Add Blogroll Item","jetpack"),onClick:()=>{h(e=>!e)}}),a&&(0,p.jsxs)(r.Popover,{anchor:m,className:"jetpack-blogroll__appender",children:[(0,p.jsx)(d.A,{value:f,onChange:b}),(0,p.jsx)(u.A,{results:y,onSelect:e=>{v((0,l.FN)(e),void 0,n),h(!1)},searchInput:f,isLoading:k})]})]})}},93538(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(94715),o=n(74997),s=n(56427),a=n(47143),i=n(86087),c=n(27723),l=n(13022),u=n(2274),d=n(26247),p=n(30413),h=n(32130),m=n(46542),g=n(25688),f=n(85101),b=(n(8400),n(10790));const __=c.__;const v=function({className:e,attributes:t,setAttributes:n,clientId:c}){const{show_avatar:v,show_description:y,open_links_new_window:k,ignore_user_blogs:w,load_placeholders:x}=t,_=(0,d.A)(),{isLoading:j,recommendations:C,errorMessage:A}=(0,h.A)(x),{isLoading:S,subscriptions:E,errorMessage:T}=(0,g.A)({ignore_user_blogs:w});(0,m.b)({clientId:c});const{replaceInnerBlocks:N}=(0,a.dispatch)("core/block-editor");(0,i.useEffect)(()=>{if(x&&C.length){n({load_placeholders:!1});const e=[(0,o.createBlock)("core/heading",{content:__("Blogroll","jetpack"),level:3}),...C.map(f.dy)];N(c,e)}},[C,x,n,c,N]);const P=(0,r.useBlockProps)({className:(0,l.A)(e,{"hide-avatar":!v,"hide-description":!y})});if(!_)return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(u.A,{block:"Blogroll",explanation:__("Connect your WordPress.com account to use the Blogroll block.","jetpack")})});const B=A||T;return(0,b.jsxs)("div",{...P,children:[(0,b.jsx)(r.InnerBlocks,{template:[["core/heading",{content:__("Blogroll","jetpack"),level:3}]],allowedBlocks:["jetpack/blogroll-item"],renderAppender:()=>!j&&(0,b.jsx)(p.A,{isLoading:S,subscriptions:E,clientId:c})}),B&&(0,b.jsx)(s.Notice,{status:"error",isDismissible:!1,children:(0,b.jsx)("p",{children:B})}),x&&j&&(0,b.jsx)(s.FlexBlock,{style:{padding:"30px",textAlign:"center"},children:(0,b.jsx)(s.Spinner,{})}),(0,b.jsx)(r.InspectorControls,{children:(0,b.jsxs)(s.PanelBody,{title:__("Settings","jetpack"),children:[(0,b.jsx)(s.ToggleControl,{label:__("Show avatar","jetpack"),checked:!!v,onChange:()=>n({show_avatar:!v}),__nextHasNoMarginBottom:!0}),(0,b.jsx)(s.ToggleControl,{label:__("Show description","jetpack"),checked:!!y,onChange:()=>n({show_description:!y}),__nextHasNoMarginBottom:!0}),(0,b.jsx)(s.ToggleControl,{label:__("Open links in a new window","jetpack"),checked:!!k,onChange:()=>n({open_links_new_window:!k}),__nextHasNoMarginBottom:!0}),(0,b.jsx)(s.ToggleControl,{label:__("Hide my own sites","jetpack"),checked:!!w,onChange:()=>n({ignore_user_blogs:!w}),__nextHasNoMarginBottom:!0})]})})]})}},22475(e,t,n){"use strict";var r=n(94375),o=n(52829),s=n(74618),a=n(93538),i=n(84169);n(8400);(0,r.M)(o,{edit:a.A,save:i.A},[{name:s.UU,settings:s.W0}])},84169(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);const a=function({attributes:{show_avatar:e,show_description:t},className:n}){const a=r.useBlockProps.save({className:(0,o.A)(n,{"hide-avatar":!e,"hide-description":!t})});return(0,s.jsx)("div",{...a,children:(0,s.jsx)(r.InnerBlocks.Content,{})})}},13818(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(86087),o=n(85101);function s(e,t=!0){const[n,s]=(0,r.useState)(null),[a,i]=(0,r.useState)(null),[c,l]=(0,r.useState)(!1),u=function(e,t=100){const[n,o]=(0,r.useState)(e);return(0,r.useEffect)(()=>{const n=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}((0,o.l$)(e),500);return(0,r.useEffect)(()=>{if(l(Boolean(t&&u)),t&&u){const e=new AbortController;return fetch(`https://public-api.wordpress.com/rest/v1.1/sites/${encodeURIComponent(u)}?force=wpcom`,{cache:"force-cache",signal:e.signal}).then(e=>{if(200===e.status)return e.json();e.status}).then(e=>{s(e),l(!1)}).catch(e=>{"AbortError"!==e.name&&i(e)}),()=>e.abort()}},[u,t]),{response:n,error:a,isLoading:c}}},92507(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13818),o=n(85101);function s({siteURL:e,subscriptions:t,enabled:n=!1}){const s=(0,o.l$)(e),{response:a,isLoading:i}=(0,r.Z)(s,Boolean(n)),c=[...a?[{blog_id:a?.ID.toString(),description:a?.description,URL:a?.URL,site_icon:(0,o.ZE)(a?.logo?.url),name:a?.name}]:[],...t].filter(t=>`${t.name}${t.URL}`.match(new RegExp(e,"i")));return 0===c.length&&s&&c.unshift({blog_id:s,description:"",URL:s,site_icon:(0,o.ZE)(null),name:s,is_non_wpcom_site:!0}),{isLoading:i,siteDetails:c}}},32130(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(1455),o=n.n(r),s=n(86087),a=n(27723);const __=a.__;function i(e=!1){const[t,n]=(0,s.useState)(!1),[r,a]=(0,s.useState)(null),[i,c]=(0,s.useState)([]),l=(0,s.useRef)(void 0);return(0,s.useEffect)(()=>{e?(n(!0),a(null),l.current&&l.current.abort(),l.current="undefined"==typeof AbortController?void 0:new AbortController,o()({path:"/wpcom/v2/following/recommendations",global:!0,method:"GET",signal:l.current?.signal}).then(e=>{e.length||a(__("No subscriptions found. You need to follow some sites in order to see results.","jetpack")),c(e)}).catch(e=>{"AbortError"!==e.name&&(e.message?a(e.message):a(__("Whoops, we have encountered an error. Please try again later.","jetpack")))}).finally(()=>{l.current=null,n(!1)})):n(!1)},[e]),{isLoading:t,errorMessage:r,recommendations:i}}},46542(e,t,n){"use strict";n.d(t,{b:()=>i});var r=n(3582),o=n(47143),s=n(86087),a=n(85101);const i=({clientId:e})=>{const[t,n]=(0,s.useState)(!1),{insertBlocks:i}=(0,o.useDispatch)("core/block-editor"),[c,l]=(0,r.useEntityProp)("root","site","Blogroll Recommendations"),u=(0,o.useSelect)(t=>t("core/block-editor").getBlock(e).innerBlocks.filter(({name:e})=>"jetpack/blogroll-item"===e).map(({attributes:e})=>e),[e]);(0,s.useEffect)(()=>{if(!t&&c){const t=c.filter(e=>!u.some(t=>t.id===e.id));if(t.length){const n=t.map(a.dy);i(n,void 0,e)}n(!0)}},[e,c,u,t,i]),(0,s.useEffect)(()=>{void 0!==c&&l(u)},[u])}},25688(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(1455),o=n.n(r),s=n(86087),a=n(27723),i=n(93832),c=n(85101);const __=a.__;function l({ignore_user_blogs:e}){const[t,n]=(0,s.useState)(!1),[r,a]=(0,s.useState)(null),[l,u]=(0,s.useState)([]),d=(0,s.useRef)(void 0);return(0,s.useEffect)(()=>{n(!0),a(null),d.current&&d.current.abort(),d.current="undefined"==typeof AbortController?void 0:new AbortController,o()({path:(0,i.addQueryArgs)("/wpcom/v2/following/mine",{ignore_user_blogs:e}),global:!0,method:"GET",signal:d.current?.signal}).then(e=>{e.length||a(__("No subscriptions found. You need to follow some sites in order to see results.","jetpack")),e=e.map(e=>(e.site_icon=(0,c.ZE)(e.site_icon),e)),u(e)}).catch(e=>{"AbortError"!==e.name&&(e.message?a(e.message):a(__("Whoops, we have encountered an error. Please try again later.","jetpack")))}).finally(()=>{d.current=null,n(!1)})},[e]),{isLoading:t,errorMessage:r,subscriptions:l}}},85101(e,t,n){"use strict";n.d(t,{FN:()=>a,ZE:()=>c,dy:()=>s,l$:()=>i});var r=n(74997),o=n(84954);function s(e){let t;try{t=new URL(e?.url)?.host.replace(/^www\./,"")}catch{t=e?.URL}return(0,r.createBlock)("jetpack/blogroll-item",{...e,...!e.name&&{name:t}})}function a(e){const{blog_id:t,site_icon:n,URL:r,name:o,description:a,is_non_wpcom_site:i}=e;return s({id:t,icon:n,url:r,name:o,description:a,is_non_wpcom_site:i})}function i(e){if(!e)return null;const t=new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])?)\\.)+[a-z]{2,})","i");try{return new URL(e)?.host}catch{return e.match(t)?.[2]??null}}function c(e){return e||o}},98765(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(56427),o=n(86087),s=n(27723),a=n(13022),i=n(66087),c=n(10790);const __=s.__,l="09:00",u="17:00";class d extends o.Component{renderInterval=(e,t)=>{const{day:n}=this.props,{opening:s,closing:i}=e;return(0,c.jsxs)(o.Fragment,{children:[(0,c.jsxs)("div",{className:"business-hours__row",children:[(0,c.jsx)("div",{className:(0,a.A)(n.name,"business-hours__day"),children:0===t&&this.renderDayToggle()}),(0,c.jsxs)("div",{className:(0,a.A)(n.name,"business-hours__hours"),children:[(0,c.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"time",label:__("Opening","jetpack"),value:s,className:"business-hours__open",placeholder:l,onChange:e=>{this.setHour(e,"opening",t)}}),(0,c.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"time",label:__("Closing","jetpack"),value:i,className:"business-hours__close",placeholder:u,onChange:e=>{this.setHour(e,"closing",t)}})]}),(0,c.jsx)("div",{className:"business-hours__remove",children:n.hours.length>1&&(0,c.jsx)(r.Button,{isSmall:!0,variant:"link",icon:"trash",label:__("Remove Hours","jetpack"),onClick:()=>{this.removeInterval(t)}})})]}),t===n.hours.length-1&&(0,c.jsxs)("div",{className:"business-hours__row business-hours-row__add",children:[(0,c.jsx)("div",{className:(0,a.A)(n.name,"business-hours__day"),children:" "}),(0,c.jsx)("div",{className:(0,a.A)(n.name,"business-hours__hours"),children:(0,c.jsx)(r.Button,{variant:"link",label:__("Add Hours","jetpack"),onClick:this.addInterval,children:__("Add Hours","jetpack")})}),(0,c.jsx)("div",{className:"business-hours__remove",children:" "})]})]},t)};setHour=(e,t,n)=>{const{day:r,attributes:o,setAttributes:s}=this.props,{days:a}=o;s({days:a.map(o=>o.name===r.name?{...o,hours:o.hours.map((r,o)=>o===n?{...r,[t]:e}:r)}:o)})};toggleClosed=e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:o}=n;r({days:o.map(n=>{if(n.name===t.name){const t=e?[{opening:l,closing:u}]:[];return{...n,hours:t}}return n})})};addInterval=()=>{const{day:e,attributes:t,setAttributes:n}=this.props,{days:r}=t;e.hours.push({opening:"",closing:""}),n({days:r.map(t=>t.name===e.name?{...t,hours:e.hours}:t)})};removeInterval=e=>{const{day:t,attributes:n,setAttributes:r}=this.props,{days:o}=n;r({days:o.map(n=>t.name===n.name?{...n,hours:n.hours.filter((t,n)=>e!==n)}:n)})};isClosed(){const{day:e}=this.props;return(0,i.isEmpty)(e.hours)}renderDayToggle(){const{day:e,localization:t}=this.props;return(0,c.jsxs)(o.Fragment,{children:[(0,c.jsx)("span",{className:"business-hours__day-name",children:t.days[e.name]}),(0,c.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:this.isClosed()?__("Closed","jetpack"):__("Open","jetpack"),checked:!this.isClosed(),onChange:this.toggleClosed})]})}renderClosed(){const{day:e}=this.props;return(0,c.jsxs)("div",{className:"business-hours__row business-hours-row__closed",children:[(0,c.jsx)("div",{className:(0,a.A)(e.name,"business-hours__day"),children:this.renderDayToggle()}),(0,c.jsx)("div",{className:(0,a.A)(e.name,"closed","business-hours__hours"),children:" "}),(0,c.jsx)("div",{className:"business-hours__remove",children:" "})]})}render(){const{day:e}=this.props;return this.isClosed()?this.renderClosed():e.hours.map(this.renderInterval)}}const p=d},32557(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(86087),o=n(27723),s=n(66087),a=n(10790);const _x=o._x,i="undefined"!=typeof window&&window.navigator?.language||"en",c=Intl?.DateTimeFormat?new Intl.DateTimeFormat(i,{hour:"numeric",minute:"numeric",hour12:!0}):null;class l extends r.Component{formatTime(e){const[t,n]=e.split(":");if(!t||!n)return!1;const r=new Date;return r.setHours(t),r.setMinutes(n),c?c.format(r):e}renderInterval=(e,t)=>{const{day:n}=this.props,r=n.hours;return(0,a.jsxs)("span",{children:[(0,o.sprintf)("%1$s - %2$s",this.formatTime(e.opening),this.formatTime(e.closing)),r.length>1+t&&(0,a.jsx)("span",{children:", "})]},t)};render(){const{day:e,localization:t}=this.props,n=e.hours.filter(e=>this.formatTime(e.opening)&&this.formatTime(e.closing));return(0,a.jsxs)("div",{className:"jetpack-business-hours__item",children:[(0,a.jsx)("dt",{className:e.name,children:t.days[e.name]}),(0,a.jsxs)("dd",{children:[(0,s.isEmpty)(n)?_x("Closed","business is closed on a full day","jetpack"):n.map(this.renderInterval),(0,a.jsx)("br",{})]})]})}}const u=l},52097(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(85985),o=n(1455),s=n.n(o),a=n(94715),i=n(56427),c=n(38443),l=n(86087),u=n(27723),d=n(9050),p=n(98765),h=n(32557),m=n(10790);const __=u.__,g=(0,r.sh)(d),f={days:{Sun:__("Sunday","jetpack"),Mon:__("Monday","jetpack"),Tue:__("Tuesday","jetpack"),Wed:__("Wednesday","jetpack"),Thu:__("Thursday","jetpack"),Fri:__("Friday","jetpack"),Sat:__("Saturday","jetpack")},startOfWeek:0},b=e=>{const{attributes:t,isSelected:n}=e,r=(0,a.useBlockProps)(),[o,u]=(0,l.useState)(f),[d,b]=(0,l.useState)(!1),{days:v}=t,{startOfWeek:y}=o,k=v.concat(v.slice(0,y)).slice(y);let w;if((0,l.useEffect)(()=>{s()({path:"/wpcom/v2/business-hours/localized-week"}).then(e=>{u(e),b(!0)},()=>{u(f),b(!0)})},[]),d)if(n)w=(0,m.jsx)("div",{className:"is-edit",children:k.map((t,n)=>(0,m.jsx)(p.A,{day:t,localization:o,...e},n))});else{const e=(0,c.getSettings)(),{formats:{time:t}}=e;w=(0,m.jsx)("dl",{className:"jetpack-business-hours",children:k.map((e,n)=>(0,m.jsx)(h.A,{day:e,localization:o,timeFormat:t},n))})}else w=(0,m.jsx)(i.Placeholder,{icon:g,label:__("Loading business hours","jetpack")});return(0,m.jsx)("div",{...r,children:w})}},14990(e,t,n){"use strict";var r=n(94375),o=n(9050),s=n(52097),a=(n(18681),n(82805),n(10790));(0,r.M)(o,{edit:e=>(0,a.jsx)(s.A,{...e}),save:()=>null})},28310(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(98329);const o={element:{type:"string",enum:["a","button","input"]},saveInPostContent:{type:"boolean",default:!1},uniqueId:{type:"string"},passthroughAttributes:{type:"object"},text:{type:"string",role:"content"},placeholder:{type:"string",role:"content"},url:{type:"string",role:"content"},textColor:{type:"string"},customTextColor:{type:"string",validator:r.A},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:r.A},gradient:{type:"string"},customGradient:{type:"string"},borderRadius:{type:"number"},width:{type:"string"},customVariant:{type:"string"},metaName:{type:"string"}}},41695(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),o=n(86087),s=n(27723),a=n(8746),i=n(10790);const __=s.__;function c({borderRadius:e="",setAttributes:t}){const n=(0,o.useCallback)(e=>t({borderRadius:e}),[t]);return(0,i.jsx)(r.PanelBody,{title:__("Border Settings","jetpack"),children:(0,i.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,allowReset:!0,initialPosition:a.hc,label:__("Border radius","jetpack"),max:a.Bs,min:a.rG,onChange:n,value:e})})}},42929(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(27723),s=n(10790);const __=o.__;function a({isGradientAvailable:e,backgroundColor:t,fallbackBackgroundColor:n,fallbackTextColor:o,gradientValue:a,setBackgroundColor:i,setGradient:c,setTextColor:l,textColor:u}){const d=(0,s.jsx)(r.ContrastChecker,{backgroundColor:t.color,fallbackBackgroundColor:n,fallbackTextColor:o,isLargeText:!1,textColor:u.color});return e?(0,s.jsx)(r.__experimentalPanelColorGradientSettings,{settings:[{colorValue:u.color,label:__("Text Color","jetpack"),onColorChange:l},{colorValue:t.color,gradientValue:a,label:__("Background","jetpack"),onColorChange:i,onGradientChange:c}],title:__("Background & Text Color","jetpack"),children:d}):(0,s.jsx)(r.PanelColorSettings,{colorSettings:[{value:u.color,onChange:l,label:__("Text Color","jetpack")},{value:t.color,onChange:i,label:__("Background","jetpack")}],title:__("Background & Text Color","jetpack"),children:d})}},8746(e,t,n){"use strict";n.d(t,{Bs:()=>a,Uc:()=>o,hc:()=>s,rG:()=>i});var r=n(94715);const o=!!r.__experimentalUseGradient,s=5,a=50,i=0},57667(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(47143),o=n(68210),s=n(41695),a=n(42929),i=n(10790);function c({attributes:e,backgroundColor:t,clientId:n,context:c,fallbackBackgroundColor:l,fallbackTextColor:u,setAttributes:d,setBackgroundColor:p,setTextColor:h,textColor:m,gradientValue:g,setGradient:f,isGradientAvailable:b}){const{align:v,borderRadius:y}=e,k="jetpack/parentBlockWidth"in c,w=k?c["jetpack/parentBlockWidth"]:e.width,x=(0,r.useSelect)(e=>{const{getBlock:t,getBlockRootClientId:r}=e("core/block-editor");return t(r(n))}),{updateBlockAttributes:_}=(0,r.useDispatch)("core/block-editor");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.A,{backgroundColor:t,fallbackBackgroundColor:l,fallbackTextColor:u,gradientValue:g,setBackgroundColor:p,setGradient:f,setTextColor:h,textColor:m,isGradientAvailable:b}),(0,i.jsx)(s.A,{borderRadius:y,setAttributes:d}),(0,i.jsx)(o.D,{align:v,width:w,onChange:e=>{k?_(x.clientId,{width:e}):d({width:e})}})]})}},49061(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(94715),o=n(29491),s=n(47143),a=n(86087),i=n(27723),c=n(13022),l=n(8746),u=n(57667),d=n(7528),p=n(81177),h=(n(28769),n(10790));const __=i.__;const m=(0,o.compose)((0,r.withColors)({backgroundColor:"background-color"},{textColor:"color"}))(function(e){const{attributes:t,backgroundColor:n,className:o,clientId:i,setAttributes:m,textColor:g}=e,{borderRadius:f,element:b,placeholder:v,text:y,width:k,fontSize:w,customVariant:x,metaName:_}=t;(0,p.A)({attributes:t,clientId:i,setAttributes:m});const{metadata:j}=(0,s.useSelect)(e=>{const{getBlockAttributes:t}=e(r.store);return{metadata:t(i)?.metadata}},[i]),{updateBlockAttributes:C,__unstableMarkNextChangeAsNotPersistent:A}=(0,s.useDispatch)("core/block-editor"),{gradientClass:S,gradientValue:E,setGradient:T}=l.Uc?(0,r.__experimentalUseGradient)({gradientAttribute:"gradient",customGradientAttribute:"customGradient"}):{},N=(0,r.useBlockProps)({className:(0,c.A)("wp-block-button",o),style:{width:k}}),[P,B]=(0,d.A)(),I=(0,r.__experimentalUseBorderProps)(t),M=(0,c.A)("wp-block-button__link",I.className,{"has-background":n.color||E,[n.class]:!E&&n.class,"has-text-color":g.color,[g.class]:g.class,[S]:S,"no-border-radius":0===f,[`has-${w}-font-size`]:!!w,"has-custom-font-size":!!w,[`is-${x}`]:!!x});(0,a.useEffect)(()=>{i&&_&&j?.name!==_&&(A(),C(i,{metadata:{...j,name:_}}))},[_,j,C,i,A]);const R={...!n.color&&E?{background:E}:{backgroundColor:n.color},fontSize:t.style?.typography?.fontSize,color:g.color,borderRadius:f?f+"px":void 0,...I.style};return(0,h.jsxs)("div",{...N,children:[(0,h.jsx)(r.RichText,{allowedFormats:"input"===b?[]:void 0,className:M,disableLineBreaks:"input"===b,onChange:e=>m({text:e}),placeholder:v||__("Add text…","jetpack"),ref:B,style:R,value:y,withoutInteractiveFormatting:!0}),(0,h.jsx)(r.InspectorControls,{children:(0,h.jsx)(u.A,{gradientValue:E,setGradient:T,isGradientAvailable:l.Uc,...P,...e})})]})})},45878(e,t,n){"use strict";var r=n(94375),o=n(5383);(0,r.A)(o.U,o.W)},61138(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})})},5383(e,t,n){"use strict";n.d(t,{U:()=>l,W:()=>u});var r=n(27723),o=n(97969),s=n(28310),a=n(49061),i=n(61138),c=n(62270);const __=r.__,l="button",u={apiVersion:3,title:__("Button","jetpack"),icon:i.A,category:(0,o.A)("design","layout"),keywords:[],supports:{html:!1,inserter:!1,align:["left","center","right"],typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}}},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],selectors:{border:".wp-block-jetpack-button .wp-block-button__link"},attributes:s.A,edit:a.A,save:c.A,usesContext:["jetpack/parentBlockWidth"]}},62270(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(13022),s=n(8746),a=n(10790);function i({attributes:e,blockName:t,uniqueId:n}){const{backgroundColor:i,borderRadius:c,className:l,customBackgroundColor:u,customGradient:d,customTextColor:p,gradient:h,saveInPostContent:m,text:g,textColor:f,url:b,width:v,fontSize:y}=e;if(!m)return null;const k=r.useBlockProps.save(),w=(0,r.__experimentalGetBorderClassesAndStyles)(e),x=(0,r.getColorClassName)("background-color",i),_=s.Uc?(0,r.__experimentalGetGradientClass)(h):void 0,j=(0,r.getColorClassName)("color",f),C=(0,o.A)("wp-block-button","jetpack-submit-button",l,k?.className,w.className,{[`wp-block-jetpack-${t}`]:t}),A=(0,o.A)("wp-block-button__link",{"has-text-color":f||p,[j]:j,"has-background":i||h||u||d,[x]:x,[_]:_,"no-border-radius":0===c,"has-custom-width":!!v,[`has-${y}-font-size`]:!!y,"has-custom-font-size":!!y}),S={background:d||void 0,backgroundColor:x||d||h?void 0:u,fontSize:e.style?.typography?.fontSize,color:j?void 0:p,borderRadius:c?c+"px":void 0,width:v,...w.style};return(0,a.jsx)("div",{...k,className:C,children:(0,a.jsx)(r.RichText.Content,{className:A,"data-id-attr":n||"placeholder",href:b,id:n,rel:"noopener noreferrer",role:"button",style:S,tagName:"a",target:"_blank",value:g})})}},7528(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(29491),o=n(86087);function s(){const[e,t]=(0,o.useState)(),n=(0,r.useRefEffect)(n=>{const r=()=>{const r=getComputedStyle(n),o=r.backgroundColor,s=r.color;o===e?.fallbackBackgroundColor&&s===e?.fallbackTextColor||t({fallbackBackgroundColor:o,fallbackTextColor:s})},o=new MutationObserver(r);return o.observe(n,{attributeFilter:["style","class"]}),r(),()=>{o.disconnect()}},[]);return[e,n]}},81177(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(47143),o=n(86087),s=n(66087);function a({attributes:e,clientId:t,setAttributes:n}){const{passthroughAttributes:a}=e,i=(0,r.useSelect)(n=>{const r=n("core/block-editor"),o=r.getBlockRootClientId(t),s=r.getBlockAttributes(o)||{};if(!o||!a)return{};let i=!1;const c={};return Object.entries(a).forEach(([t,n])=>{const r=s[n];r!==e[t]&&(i=!0,c[t]=r)}),i?c:{}},[t,a,e]);(0,o.useEffect)(()=>{(0,s.isEmpty)(i)||n(i)},[i,n])}},95816(e,t,n){"use strict";n.d(t,{a:()=>r});const r="https://calendly.com/wpcom/jetpack-block-example"},10137(e,t,n){"use strict";n.d(t,{Ay:()=>p});var r=n(97999),o=n(94715),s=n(56427),a=n(27723),i=n(57273),c=n(24971),l=n(10790);const __=a.__,_x=a._x,u=({onEditClick:e})=>(0,l.jsx)(s.ToolbarGroup,{children:(0,l.jsx)(s.ToolbarButton,{onClick:()=>e(!0),children:__("Edit","jetpack")})}),d=e=>{const{attributes:{hideEventTypeDetails:t,url:n},defaultClassName:o,embedCode:a,parseEmbedCode:c,setAttributes:u,setEmbedCode:d}=e;let p=null;return n&&(p=(0,r.isWpcomPlatformSite)()?"https://wordpress.com/support/wordpress-editor/blocks/calendly-block/#customize-the-calendly-block":"https://jetpack.com/support/jetpack-blocks/calendly-block/#customizing-a-calendly-block"),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.PanelBody,{PanelBody:!0,title:__("Calendar settings","jetpack"),initialOpen:!1,children:[(0,l.jsxs)("form",{onSubmit:c,className:`${o}-embed-form-sidebar`,children:[(0,l.jsx)("input",{type:"text",id:"embedCode",onChange:e=>d(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:a||"",className:"components-placeholder__input"}),(0,l.jsx)("div",{children:(0,l.jsx)(s.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})})]}),(0,l.jsx)(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Hide event type details","jetpack"),checked:t,onChange:()=>u({hideEventTypeDetails:!t})})]}),p&&(0,l.jsx)(s.Notice,{className:`${o}-color-notice`,isDismissible:!1,children:(0,l.jsx)(i.N,{openInNewTab:!0,href:p,children:__("Explore more customization options.","jetpack")})})]})},p=e=>{const{attributes:t,clientId:n,isEditingUrl:r,setAttributes:s,setIsEditingUrl:a}=e,{style:i,url:p}=t,h=[{value:"inline",label:__("Inline","jetpack")},{value:"link",label:__("Link","jetpack")}];return(0,l.jsxs)(l.Fragment,{children:[p&&!r&&(0,l.jsx)(o.BlockControls,{children:(0,l.jsx)(u,{onEditClick:a})}),p&&(0,l.jsx)(c.A,{clientId:n,styleOptions:h,onSelectStyle:s,activeStyle:i,attributes:t,viewportWidth:500}),(0,l.jsx)(o.InspectorControls,{children:(0,l.jsx)(d,{...e})})]})}},88471(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(74997),o=n(27723),s=n(98329),a=n(10790);const __=o.__,i={attributes:{backgroundColor:{type:"string",default:"ffffff",validator:s.A},submitButtonText:{type:"string",default:__("Schedule time with me","jetpack")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},submitButtonClasses:{type:"string"},hideEventTypeDetails:{type:"boolean",default:!1},primaryColor:{type:"string",default:"00A2FF",validator:s.A},textColor:{type:"string",default:"4D5055",validator:s.A},style:{type:"string",default:"inline",validValues:["inline","link"]},url:{type:"string",validator:e=>!e||e.startsWith("https://calendly.com/")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string",validator:s.A},customTextButtonColor:{type:"string",validator:s.A}},migrate:e=>{const{submitButtonText:t,submitButtonTextColor:n,submitButtonBackgroundColor:o,submitButtonClasses:s,backgroundButtonColor:a,textButtonColor:i,customBackgroundButtonColor:c,customTextButtonColor:l,...u}=e,d={text:(p=e).submitButtonText||__("Schedule time with me","jetpack"),textColor:p.submitButtonTextColor||p.textButtonColor,customTextColor:p.customTextButtonColor,backgroundColor:p.submitButtonBackgroundColor||p.backgroundButtonColor,customBackgroundColor:p.customBackgroundButtonColor,url:p.url};var p;return[u,[(0,r.createBlock)("jetpack/button",{element:"a",uniqueId:"calendly-widget-id",...d})]]},save:({attributes:{url:e}})=>(0,a.jsx)("a",{href:e,children:e})}},9659(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(85985),o=n(94715),s=n(74997),a=n(56427),i=n(47143),c=n(86087),l=n(27723),u=n(57273),d=n(13022),p=n(66087),h=n(78218),m=n(56145),g=n(13248),f=n(95816),b=n(10137),v=n(38028),y=(n(78215),n(61095),n(10790));const __=l.__,_x=l._x,k="jetpack/button",w={element:"a",text:__("Schedule time with me","jetpack"),uniqueId:"calendly-widget-id",url:f.a},x=(0,r.sh)(g);const _=(0,a.withNotices)(function(e){const{attributes:t,clientId:n,name:r,noticeOperations:l,noticeUI:_,setAttributes:j}=e,C=(0,s.getBlockDefaultClassName)(r),A=(0,h.y)(g.attributes,t);(0,p.isEqual)(A,t)||j(A);const{backgroundColor:S,hideEventTypeDetails:E,primaryColor:T,textColor:N,style:P,url:B}=A,[I,M]=(0,c.useState)(B),[R,L]=(0,c.useState)(!1),[D,F]=(0,c.useState)(!1),[O,z]=(0,c.useState)({}),U=(0,o.useBlockProps)(),H=()=>{l.removeAllNotices(),l.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or code.","jetpack"))};(0,c.useEffect)(()=>{B&&f.a!==B&&"link"!==P&&(0,m.A)(B,F).catch(()=>{j({url:void 0}),H()})},[]);const $=e=>{if(!e)return void H();e.preventDefault();const t=(0,v.a9)(I);if(t){if(t.buttonAttributes&&"link"===t.style){const e=(0,i.select)("core/editor").getBlocksByClientId(n);e.length&&e[0].innerBlocks.forEach(e=>{(0,i.dispatch)("core/editor").updateBlockAttributes(e.clientId,t.buttonAttributes)}),z(t.buttonAttributes)}(0,m.A)(t.url,F).then(()=>{const e=(0,h.y)(g.attributes,t);j(e),L(!1),l.removeAllNotices()}).catch(()=>{j({url:void 0}),H()})}else H()},V=(0,y.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,y.jsx)(a.Spinner,{}),(0,y.jsx)("p",{children:__("Embedding…","jetpack")})]}),q=(0,y.jsxs)(a.Placeholder,{label:__("Calendly","jetpack"),instructions:__("Enter your Calendly web address or embed code below.","jetpack"),icon:x,notices:_,children:[(0,y.jsxs)("form",{onSubmit:$,children:[(0,y.jsx)("input",{type:"text",id:"embedCode",onChange:e=>M(e.target.value),placeholder:__("Calendly web address or embed code…","jetpack"),value:I||"",className:"components-placeholder__input"}),(0,y.jsx)("div",{children:(0,y.jsx)(a.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})})]}),(0,y.jsx)("div",{className:`${C}-learn-more`,children:(0,y.jsx)(u.N,{openInNewTab:!0,href:"https://help.calendly.com/hc/en-us/articles/223147027-Embed-options-overview",children:__("Need help finding your embed code?","jetpack")})})]}),G=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:`${C}-overlay`}),(0,y.jsx)("iframe",{src:(()=>{const e=new URLSearchParams({embed_domain:"wordpress.com",embed_type:"Inline",hide_event_type_details:E?1:0,background_color:S,primary_color:T,text_color:N});return`${B}?${e}`})(),width:"100%",height:"100%",frameBorder:"0","data-origwidth":"100%","data-origheight":"100%",title:"Calendly"})]}),W=(0,y.jsx)(o.InnerBlocks,{template:[[k,{...w,...O,passthroughAttributes:{url:"url"}}]],templateLock:"all"});return D?V:(0,y.jsxs)("div",{...U,className:(0,d.A)(U.className,{[`calendly-style-${P}`]:B&&!R}),children:[(0,y.jsx)(b.Ay,{...e,defaultClassName:C,embedCode:I,isEditingUrl:R,parseEmbedCode:$,setEmbedCode:M,setIsEditingUrl:L}),B&&!R?(Z=P,"inline"===Z?G:W):q]});var Z})},60312(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(13248),a=n(88471),i=n(9659),c=n(34844),l=n(38028);n(78215);(0,o.M)(s,{edit:i.A,save:c.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&l.QL.test(e.textContent),transform:e=>{const t=(0,l.a9)(e.textContent);return(0,r.createBlock)("jetpack/calendly",t)}}]},deprecated:[a.A]})},34844(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},38028(e,t,n){"use strict";n.d(t,{QL:()=>r,a9:()=>o});const r=/(^|\/\/)(calendly\.com[^"']*)/i,o=e=>{if(!e)return;const t=(e=>{const t=e.match(r);if(t)return"https://"+t[2]})(e);if(!t)return;const n=(e=>{const t={},n=new URL(e);if(t.url=n.origin+n.pathname,!n.search)return t;const r=new URLSearchParams(n.search),o=r.get("background_color"),s=r.get("primary_color"),a=r.get("text_color"),i=/^[A-Za-z0-9]{6}$/;return r.get("hide_event_type_details")&&(t.hideEventTypeDetails=r.get("hide_event_type_details")),o&&o.match(i)&&(t.backgroundColor=o),s&&s.match(i)&&(t.primaryColor=s),a&&a.match(i)&&(t.textColor=a),t})(t),o=(e=>e.indexOf("data-url")>0?"inline":e.indexOf("initPopupWidget")>0||e.indexOf("initBadgeWidget")>0?"link":void 0)(e);if(o&&(n.style=o),"link"===o){n.buttonAttributes={};const t=(e=>{let t=e.match(/false;">([^<]+)<\//);return t?t[1]:(t=e.match(/text: '([^']*?)'/),t?t[1]:void 0)})(e);t&&(n.buttonAttributes.text=t);const r=(e=>{const t=e.match(/textColor: '([^']*?)'/);if(t)return t[1]})(e);r&&(n.buttonAttributes.textColor=void 0,n.buttonAttributes.customTextColor=r);const o=(e=>{const t=e.match(/color: '([^']*?)'/);if(t)return t[1]})(e);o&&(n.buttonAttributes.backgroundColor=void 0,n.buttonAttributes.customBackgroundColor=o)}return n}},98169(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(13022),c=n(58842),l=n(10790);const __=a.__,u=e=>{const{attributes:{address:t,addressLine2:n,addressLine3:a,city:u,region:d,postal:p,country:h,linkToGoogleMaps:m},isSelected:g,setAttributes:f}=e,b=[t,n,a,u,d,p,h].some(e=>""!==e),v=(0,i.A)({"jetpack-address-block":!0,"is-selected":g}),y=(0,s.useCallback)(e=>{"Enter"===e.key&&e.preventDefault()},[]),k=(0,r.useBlockProps)({className:v}),w=(0,l.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Link address to Google Maps","jetpack"),checked:m,onChange:e=>f({linkToGoogleMaps:e})});return(0,l.jsxs)("div",{...k,children:[!g&&b&&(0,c.A)(e),(g||!b)&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)(r.PlainText,{value:t,placeholder:__("Street Address","jetpack"),"aria-label":__("Street Address","jetpack"),onChange:e=>f({address:e}),onKeyDown:y}),(0,l.jsx)(r.PlainText,{value:n,placeholder:__("Address Line 2","jetpack"),"aria-label":__("Address Line 2","jetpack"),onChange:e=>f({addressLine2:e}),onKeyDown:y}),(0,l.jsx)(r.PlainText,{value:a,placeholder:__("Address Line 3","jetpack"),"aria-label":__("Address Line 3","jetpack"),onChange:e=>f({addressLine3:e}),onKeyDown:y}),(0,l.jsx)(r.PlainText,{value:u,placeholder:__("City","jetpack"),"aria-label":__("City","jetpack"),onChange:e=>f({city:e}),onKeyDown:y}),(0,l.jsx)(r.PlainText,{value:d,placeholder:__("State/Province/Region","jetpack"),"aria-label":__("State/Province/Region","jetpack"),onChange:e=>f({region:e}),onKeyDown:y}),(0,l.jsx)(r.PlainText,{value:p,placeholder:__("Postal/Zip Code","jetpack"),"aria-label":__("Postal/Zip Code","jetpack"),onChange:e=>f({postal:e}),onKeyDown:y}),(0,l.jsx)(r.PlainText,{value:h,placeholder:__("Country","jetpack"),"aria-label":__("Country","jetpack"),onChange:e=>f({country:e}),onKeyDown:y}),w]})]})}},36569(e,t,n){"use strict";n.d(t,{U:()=>c,W:()=>l});var r=n(27723),o=n(5573),s=n(98169),a=n(58842),i=n(10790);const __=r.__,_x=r._x,c="address",l={apiVersion:3,title:__("Address","jetpack"),description:__("Lets you add a physical address with Schema markup.","jetpack"),keywords:[_x("location","block search term","jetpack"),_x("direction","block search term","jetpack"),_x("place","block search term","jetpack")],icon:(0,i.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.jsx)(o.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),(0,i.jsx)(o.Circle,{cx:"12",cy:"9",r:"2.5"})]}),category:"grow",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:s.A,save:a.A}},58842(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(86087),s=n(27723),a=n(10790);const __=s.__,i=({attributes:{address:e,addressLine2:t,addressLine3:n,city:r,region:s,postal:i,country:c}})=>(0,a.jsxs)(o.Fragment,{children:[e&&(0,a.jsx)("div",{className:"jetpack-address__address jetpack-address__address1",children:e}),t&&(0,a.jsx)("div",{className:"jetpack-address__address jetpack-address__address2",children:t}),n&&(0,a.jsx)("div",{className:"jetpack-address__address jetpack-address__address3",children:n}),r&&!(s||i)&&(0,a.jsx)("div",{className:"jetpack-address__city",children:r}),r&&(s||i)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"jetpack-address__city",children:r}),", ",(0,a.jsx)("span",{className:"jetpack-address__region",children:s})," ",(0,a.jsx)("span",{className:"jetpack-address__postal",children:i})]}),!r&&(s||i)&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"jetpack-address__region",children:s})," ",(0,a.jsx)("span",{className:"jetpack-address__postal",children:i})]}),c&&(0,a.jsx)("div",{className:"jetpack-address__country",children:c})]}),c=({attributes:{address:e,addressLine2:t,addressLine3:n,city:r,region:o,postal:s,country:a}})=>{let i=o?`+${o},`:"";i=s?`${i}+${s}`:i;return`https://www.google.com/maps/search/${e?`${e},`:""}${t?`${t},`:""}${n?`${n},`:""}${r?`+${r},`:""}${i}${a?`+${a}`:""}`.replace(" ","+")},l=e=>{if(!(({address:e,addressLine2:t,addressLine3:n,city:r,region:o,postal:s,country:a})=>[e,t,n,r,o,s,a].some(e=>""!==e))(e.attributes))return null;const t=r.useBlockProps.save();return(0,a.jsxs)("div",{...t,children:[e.attributes.linkToGoogleMaps&&(0,a.jsx)("a",{href:c(e),target:"_blank",rel:"noopener noreferrer",title:__("Open address in Google Maps","jetpack"),children:(0,a.jsx)(i,{...e})}),!e.attributes.linkToGoogleMaps&&(0,a.jsx)(i,{...e})]})}},74842(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(13022),s=n(10790);const a=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","jetpack/business-hours","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],i=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]],c=e=>{const{className:t,isSelected:n}=e,c=(0,r.useBlockProps)({className:(0,o.A)(t,{"jetpack-contact-info-block":!0,"is-selected":n})});return(0,s.jsx)("div",{...c,children:(0,s.jsx)(r.InnerBlocks,{allowedBlocks:a,templateLock:!1,template:i})})}},25907(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(36569),a=n(75173),i=n(74842),c=n(69933),l=n(77909),u=n(47377);n(75360),n(25378);(0,o.M)(a,{edit:i.A,save:u.A,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"widget_contact_info"===e,transform:({instance:e})=>{let t=[(0,r.createBlock)("core/heading",{content:e.raw.title}),(0,r.createBlock)("jetpack/email",{email:e.raw.email}),(0,r.createBlock)("jetpack/phone",{phone:e.raw.phone}),(0,r.createBlock)("jetpack/address",{address:e.raw.address})];return e.raw.hours&&(t=[...t,(0,r.createBlock)("core/paragraph",{content:e.raw.hours})]),e.raw.showmap&&e.raw.address&&(t=[...t,(0,r.createBlock)("jetpack/map",{address:e.raw.address})]),(0,r.createBlock)("jetpack/contact-info",{},t)}}]}},[{name:s.U,settings:s.W},{name:c.U,settings:c.W},{name:l.U,settings:l.W}])},43167(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(27723),s=n(45838),a=n(19038);const __=o.__,i=e=>{const t=(0,r.useBlockProps)(),{setAttributes:n}=e;return(0,s.A)("email",e,__("Email","jetpack"),a.A,e=>n({email:e}),t)}},69933(e,t,n){"use strict";n.d(t,{U:()=>c,W:()=>l});var r=n(27723),o=n(5573),s=n(43167),a=n(19038),i=n(10790);const __=r.__,_x=r._x,c="email",l={apiVersion:3,title:__("Email Address","jetpack"),description:__("Lets you add an email address with an automatically generated click-to-email link.","jetpack"),keywords:["e-mail","email",_x("message","block search term","jetpack")],icon:(0,i.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(o.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})}),category:"grow",attributes:{email:{type:"string",default:""}},edit:s.A,save:a.A,parent:["jetpack/contact-info"]}},19038(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(86087),s=n(39904),a=n(10790);const i=({attributes:{email:e}})=>{if(!e)return null;const t=r.useBlockProps.save();return(0,a.jsx)("div",{...t,children:(n=e,n.split(/(\s+)/).map((e,t)=>{const n=e.replace(/([.,/#!$%^&*;:{}=\-_`~()\][])+$/g,"");return e.indexOf("@")&&(0,s.t)(n)?e===n?(0,a.jsx)("a",{href:`mailto:${e}`,children:e},t):(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)("a",{href:`mailto:${e}`,children:n},t),(0,a.jsx)(o.Fragment,{children:e.slice(-(e.length-n.length))})]},t):(0,a.jsx)(o.Fragment,{children:e},t)}))});var n}},42711(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(27723),s=n(45838),a=n(5926);const __=o.__,i=e=>{const t=(0,r.useBlockProps)(),{setAttributes:n}=e;return(0,s.A)("phone",e,__("Phone number","jetpack"),a.A,e=>n({phone:e}),t)}},77909(e,t,n){"use strict";n.d(t,{U:()=>c,W:()=>l});var r=n(27723),o=n(5573),s=n(42711),a=n(5926),i=n(10790);const __=r.__,_x=r._x,c="phone",l={apiVersion:3,title:__("Phone Number","jetpack"),description:__("Lets you add a phone number with an automatically generated click-to-call link.","jetpack"),keywords:[_x("mobile","block search term","jetpack"),_x("telephone","block search term","jetpack"),_x("cell","block search term","jetpack")],icon:(0,i.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(o.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})}),category:"grow",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:s.A,save:a.A}},5926(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(10790);function s(e){const t=e.match(/\d+\.\d+|\d+\b|\d+(?=\w)/g);if(!t)return e;const n=e.indexOf(t[0]);let r=n?e.substring(n-1):e,s=n?e.substring(0,n):"",a=r.replace(/\D/g,"");/[0-9/+/(]/.test(r[0])?(s=s.slice(0,-1),"+"===r[0]&&(a="+"+a)):r=r.substring(1);return[s.trim()?(0,o.jsx)("span",{className:"phone-prefix",children:s},"phonePrefix"):null,(0,o.jsx)("a",{href:`tel:${a}`,children:r},"phoneNumber")]}const a=({attributes:{phone:e}})=>{if(!e)return null;const t=r.useBlockProps.save();return(0,o.jsx)("div",{...t,children:s(e)})}},47377(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=()=>{const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})};n.dn(s)},68071(e,t,n){"use strict";n.d(t,{a:()=>o});var r=n(27723);const __=r.__,o=(0,r.sprintf)( | |
| 37 | 66 | // translators: %s is a link to the cookie policy. |
| 38 | -__("Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: %s.","jetpack"),`<a href="https://automattic.com/cookies/">${__("Cookie Policy","jetpack")}</a>`)},20598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(55609),l=n(65736),c=n(17599),u=n(89626);const __=l.__;const d=function({clientId:e,attributes:t,setAttributes:n}){const{consentExpiryDays:r,align:d,text:p=c.b}=t;(0,u.N)(e);const m=(0,o.useBlockProps)({className:`wp-block-jetpack-cookie-consent align${d}`});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(o.InspectorControls,null,(0,s.createElement)(i.PanelBody,{title:__("Block Settings","jetpack")},(0,s.createElement)(i.SelectControl,{label:__("Alignment","jetpack"),value:d,options:[{label:(0,l.isRTL)()?__("Right","jetpack"):__("Left","jetpack"),value:"left"},{label:__("Full","jetpack"),value:"full"},{label:__("Wide","jetpack"),value:"wide"},{label:(0,l.isRTL)()?__("Left","jetpack"):__("Right","jetpack"),value:"right"}],onChange:e=>function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}(e)}),(0,s.createElement)(i.TextControl,{label:__("Consent Expiry Time (in days)","jetpack"),value:r,type:"number",min:"1",max:"365",onChange:e=>n({consentExpiryDays:parseInt(e)})}),(0,s.createElement)("p",null,__("Note: The block position in the editor is not indicative of the position on the front end. The block will always be positioned at the bottom of the page.","jetpack")))),(0,s.createElement)("div",a()({},m,{style:m.style}),(0,s.createElement)(o.RichText,{tagName:"p",value:p,onChange:e=>n({text:e})}),(0,s.createElement)(o.InnerBlocks,{allowedBlocks:["core/button"],template:[["core/button",{text:__("Accept","jetpack")}]],templateLock:"all"})))}},54271:(e,t,n)=>{"use strict";var r=n(31985),a=n(90853),s=n(20598),o=n(92097);(0,r.S)(a,{edit:s.Z,save:o.Z})},92097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(17599);function l({attributes:e}){const t=o.useBlockProps.save(),{text:n=i.b,consentExpiryDays:r}=e;return(0,s.createElement)("div",a()({},t,{style:t.style,role:"dialog","aria-modal":"true"}),(0,s.createElement)(o.RichText.Content,{tagName:"p",value:n}),(0,s.createElement)(o.InnerBlocks.Content,null),(0,s.createElement)("span",null,r))}},89626:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(4981),a=n(94333),s=n(37798),o=n(9818),i=n(69307);function l(e){const t=(0,o.useSelect)((e=>{const{isSavingPost:t,isSavingNonPostEntityChanges:n}=e("core/editor");return t()||n()}),[]),n=!(!(0,a.usePrevious)(t)||t),[,l]=(0,s.useEntityProp)("root","site","cookie_consent_template"),{saveEditedEntityRecord:c}=(0,o.useDispatch)(s.store),[u,d]=(0,i.useState)(!1),p=(0,o.useSelect)((e=>{const{getBlock:t}=e("core/block-editor");return t})),m=(0,i.useCallback)((e=>{d(!0),l(e),c("root","site",void 0,{cookie_consent_template:e}).finally((()=>{d(!1)}))}),[d,l,c]);(0,i.useEffect)((()=>()=>{p(e)||m(null)}),[]),(0,i.useEffect)((()=>{n&&!u&&m((0,r.serialize)([p(e)]))}),[n,u,m,p,e])}},10764:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(25607),s=n(43317),o=n(52175),i=n(69307),l=n(65235),c=n.n(l),u=n(79162);const d=({className:e=null,currency:t=null,defaultValue:n=null,disabled:l=!1,label:d="",onChange:p=null,value:m=""})=>{const[g,A]=(0,i.useState)((0,a.ZP)(m,t,{symbol:""})),[h,E]=(0,i.useState)(!1),[f,b]=(0,i.useState)(!1),C=(0,i.useRef)(null),v=(0,i.useCallback)((e=>{if(A(e),!p)return;const n=(0,u.Vm)(e,t);n&&n>=(0,u.hj)(t)?(p(n),b(!1)):b(!0)}),[t,p]),k=()=>{C.current&&(C.current.focus(),E(!0))};return(0,i.useEffect)((()=>{if(!C.current)return;const e=C.current,r=()=>{E(!1),g||v((0,a.ZP)(n,t,{symbol:""}))};return e.addEventListener("blur",r),()=>{e.removeEventListener("blur",r)}}),[t,n,g,C,v]),(0,i.useEffect)((()=>{h||f||A((0,a.ZP)(m,t,{symbol:""}))}),[t,h,f,v,m]),(0,i.useEffect)((()=>{v((0,a.ZP)(m,t,{symbol:""}))}),[m]),(0,r.createElement)("div",{className:c()("donations__amount",e,{"has-focus":h,"has-error":f}),role:"button",tabIndex:0,onClick:k,onKeyDown:k},s.M[t].symbol,l?(0,r.createElement)("div",{className:"donations__amount-value"},(0,a.ZP)(m||n,t,{symbol:""})):(0,r.createElement)(o.RichText,{allowedFormats:[],"aria-label":d,onChange:e=>v(e),placeholder:(0,a.ZP)(n,t,{symbol:""}),ref:C,value:g,withoutInteractiveFormatting:!0}))}},82275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(43317),s=n(13419),o=n(52175),i=n(55609),l=n(65736),c=n(39630),u=n(79162);const __=l.__,d=e=>{const{attributes:t,setAttributes:n}=e,{currency:l,oneTimeDonation:d,monthlyDonation:p,annualDonation:m,showCustomAmount:g}=t,A=(e,r)=>{const a={"1 month":"monthlyDonation","1 year":"annualDonation"}[e],s=t[a];n({[a]:{...s,show:r}})};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(i.ToolbarGroup,null,(0,r.createElement)(i.ToolbarItem,null,(()=>(0,r.createElement)(i.Dropdown,{contentClassName:"jetpack-donations__currency-popover",renderToggle:({onToggle:e,isOpen:t})=>(0,r.createElement)(i.Button,{className:"jetpack-donations__currency-toggle",icon:(0,r.createElement)(r.Fragment,null,l+" - "+a.M[l].symbol,(0,r.createElement)(i.Dashicon,{icon:"arrow-down"})),label:__("Change currency","jetpack"),onClick:e,onKeyDown:n=>{t||n.keyCode!==c.DOWN||(n.preventDefault(),n.stopPropagation(),e())}}),renderContent:({onClose:e})=>(0,r.createElement)(i.MenuGroup,null,Object.keys(u.ck).map((t=>(0,r.createElement)(i.MenuItem,{isSelected:t===l,icon:t===l?"yes":"",onClick:()=>{(e=>{const t=(0,u.li)(e);n({currency:e,oneTimeDonation:{...d,amounts:t},monthlyDonation:{...p,amounts:t},annualDonation:{...m,amounts:t}})})(t),e()},key:`jetpack-donations-currency-${t}`},t+" - "+a.M[t].symbol))))}))))),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(i.ToggleControl,{checked:p.show,onChange:e=>A("1 month",e),label:__("Show monthly donations","jetpack")}),(0,r.createElement)(i.ToggleControl,{checked:m.show,onChange:e=>A("1 year",e),label:__("Show annual donations","jetpack")}),(0,r.createElement)(i.ToggleControl,{checked:g,onChange:e=>n({showCustomAmount:e}),label:__("Show custom amount option","jetpack")}),(0,r.createElement)(i.ExternalLink,{href:`https://wordpress.com/earn/payments/${(0,s.lQ)()}`},__("View donation earnings","jetpack")))))}},853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(25607),s=n(43317),o=n(52175),i=n(65736),l=n(79162);const __=i.__,c={attributes:{currency:{type:"string",default:"USD"},oneTimeDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a one-time donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate","jetpack")}},monthlyDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a monthly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate monthly","jetpack")}},annualDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a yearly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate yearly","jetpack")}},showCustomAmount:{type:"boolean",default:!0},chooseAmountText:{type:"string",default:__("Choose an amount","jetpack")},customAmountText:{type:"string",default:__("Or enter a custom amount","jetpack")}},supports:{html:!1},save:({attributes:e})=>{const{currency:t,oneTimeDonation:n,monthlyDonation:i,annualDonation:c,showCustomAmount:u,chooseAmountText:d,customAmountText:p}=e;if(!n||!n.show||-1===n.planId)return null;const m={"one-time":{title:__("One-Time","jetpack")},...i.show&&{"1 month":{title:__("Monthly","jetpack")}},...c.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"donations__container"},Object.keys(m).length>1&&(0,r.createElement)("div",{className:"donations__nav"},Object.entries(m).map((([e,{title:t}])=>(0,r.createElement)("div",{role:"button",tabIndex:0,className:"donations__nav-item",key:`jetpack-donations-nav-item-${e} `,"data-interval":e},t)))),(0,r.createElement)("div",{className:"donations__content"},(0,r.createElement)("div",{className:"donations__tab"},(0,r.createElement)(o.RichText.Content,{tagName:"h4",className:"donations__one-time-item",value:n.heading}),i.show&&(0,r.createElement)(o.RichText.Content,{tagName:"h4",className:"donations__monthly-item",value:i.heading}),c.show&&(0,r.createElement)(o.RichText.Content,{tagName:"h4",className:"donations__annual-item",value:c.heading}),(0,r.createElement)(o.RichText.Content,{tagName:"p",value:d}),(0,r.createElement)("div",{className:"donations__amounts donations__one-time-item"},n.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,t))))),i.show&&(0,r.createElement)("div",{className:"donations__amounts donations__monthly-item"},i.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,t))))),c.show&&(0,r.createElement)("div",{className:"donations__amounts donations__annual-item"},c.amounts.map((e=>(0,r.createElement)("div",{className:"donations__amount","data-amount":e},(0,a.ZP)(e,t))))),u&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.RichText.Content,{tagName:"p",value:p}),(0,r.createElement)("div",{className:"donations__amount donations__custom-amount"},s.M[t].symbol,(0,r.createElement)("div",{className:"donations__amount-value","data-currency":t,"data-empty-text":(0,a.ZP)(100*(0,l.hj)(t),t,{symbol:""})}))),(0,r.createElement)("div",{className:"donations__separator"},"——"),(0,r.createElement)(o.RichText.Content,{tagName:"p",className:"donations__one-time-item",value:n.extraText}),i.show&&(0,r.createElement)(o.RichText.Content,{tagName:"p",className:"donations__monthly-item",value:i.extraText}),c.show&&(0,r.createElement)(o.RichText.Content,{tagName:"p",className:"donations__annual-item",value:c.extraText}),(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__one-time-item"},(0,r.createElement)(o.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__one-time-item",value:n.buttonText})),i.show&&(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__monthly-item"},(0,r.createElement)(o.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__monthly-item",value:i.buttonText})),c.show&&(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper donations__annual-item"},(0,r.createElement)(o.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__annual-item",value:c.buttonText}))))))}}},86245:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(82674),a=n.n(r),s=n(51806),o=n(45033),i=n(52175),l=n(9818),c=n(69307),u=n(65736),d=n(16367),p=n(79162),m=n(74251),g=n(7652),A=n(23267),h=n(21789),E=n(85731),f=n(24177),b=n(72833);const __=u.__,C=e=>{const{attributes:t,setAttributes:n}=e,{currency:r}=t,u=(0,i.useBlockProps)(),[C,v]=(0,c.useState)(""),[k,B]=(0,c.useState)([]),{lockPostSaving:y,unlockPostSaving:w}=(0,l.useDispatch)("core/editor"),_=(0,l.useSelect)((e=>e("core/editor").getCurrentPost()),[]),I=(0,l.useSelect)((e=>e(g.h).getConnectUrl()),""),{setConnectUrl:j,setConnectedAccountDefaultCurrency:x}=(0,l.useDispatch)(A.G4);(0,c.useEffect)((()=>{n({fallbackLinkUrl:_.link})}),[_.link,n]);const S=(0,l.useSelect)((e=>e(A.G4).getConnectedAccountDefaultCurrency()));(0,c.useEffect)((()=>{if(!r&&S){const e=S.toUpperCase(),t=!!p.ck[e];n(t?{currency:e}:{currency:"USD"})}}),[r,S,n]);const Q=e=>{v(e)};let N;return(0,c.useEffect)((()=>{y("donations");const e=e=>e.reduce(((e,{id:t,currency:n,type:a,interval:s})=>(n===r&&"donation"===a&&(e[s]=t),e)),{});(0,E.Z)("donation").then((t=>{if(!t&&"object"!=typeof t||t.errors)return w("donations"),void v(__("Could not load data from WordPress.com.","jetpack"));j((0,m.Z)(_.id,t.connect_url)),x(t?.connected_account_default_currency?.toUpperCase());const n=e(t.products);return(e=>{const t=Object.keys(e);return t.includes("one-time")&&t.includes("1 month")&&t.includes("1 year")})(n)?(B(n),void w("donations")):t.connect_url?(B({"one-time":-1,"1 month":-1,"1 year":-1}),void w("donations")):void(r&&(0,h.Z)(r).then((t=>{B(e(t)),w("donations")}),Q))}),Q)}),[y,r,_.id,j,x,w]),N=C?(0,s.createElement)(f.Z,{error:C}):I?(0,s.createElement)(d.U,{blockName:"donations"}):r?(0,s.createElement)(b.Z,a()({},e,{products:k})):(0,s.createElement)(o.Z,{color:"black"}),(0,s.createElement)("div",u,N)}},67140:(e,t,n)=>{"use strict";var r=n(31985),a=n(98826),s=n(853),o=n(86245),i=n(75314);(0,r.S)(a,{edit:o.Z,save:i.Z,deprecated:[s.Z]})},21789:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(86989),a=n.n(r);const s=async e=>{try{return await a()({path:"/wpcom/v2/memberships/products",method:"POST",data:{type:"donation",currency:e,is_editable:!1}})}catch(e){return Promise.reject(e.message)}}},85731:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(86989),a=n.n(r),s=n(96483);const o=async(e=null)=>{const t=new URLSearchParams(window.location.search),n=(0,s.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===t.get("origin")?"gutenberg-wpcom":"gutenberg",...e&&{type:e},is_editable:!1});try{return await a()({path:n,method:"GET"})}catch(e){return Promise.reject(e.message)}}},24177:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,o=({error:e})=>(0,r.createElement)(a.Placeholder,{icon:"lock",label:__("Donations","jetpack"),instructions:e})},75314:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175);const s=(0,n(34943).X)(),o=({attributes:e})=>{const t=a.useBlockProps.save(),{fallbackLinkUrl:n,oneTimeDonation:o,monthlyDonation:i,annualDonation:l}=e;return o&&o.show&&o.planId&&-1!==o.planId?(0,r.createElement)("div",t,(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:s.oneTimeDonation?.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:o.extraText??s.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:n,rel:"noopener noreferrer noamphtml",target:"_blank",value:s.oneTimeDonation?.buttonText}),i.show&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:s.monthlyDonation?.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:i.extraText??s.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:n,rel:"noopener noreferrer noamphtml",target:"_blank",value:s.monthlyDonation?.buttonText})),l.show&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText.Content,{tagName:"h4",value:s.annualDonation?.heading}),(0,r.createElement)(a.RichText.Content,{tagName:"p",value:l.extraText??s.extraText}),(0,r.createElement)(a.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:n,rel:"noopener noreferrer noamphtml",target:"_blank",value:s.annualDonation?.buttonText}))):null}},91757:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(9818),o=n(65736),i=n(79162),l=n(10764),c=n(34943);const __=o.__,u=(0,c.X)(),d=({activeTab:e,attributes:t,setAttributes:n})=>{const{currency:c,oneTimeDonation:d,monthlyDonation:p,annualDonation:m,showCustomAmount:g,chooseAmountText:A=u.chooseAmountText,customAmountText:h=u.customAmountText}=t,E={"one-time":"oneTimeDonation","1 month":"monthlyDonation","1 year":"annualDonation"}[e],f=e=>t[E][e],b=(e,r)=>{const a=t[E];n({[E]:{...a,[e]:r}})},C=(0,i.li)(c),v=f("amounts"),k=(0,s.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]).map((e=>e.name)).filter((e=>"core/link"!==e));return(0,r.createElement)("div",{className:"donations__tab"},(0,r.createElement)(a.RichText,{tagName:"h4",placeholder:__("Write a message…","jetpack"),value:f("heading")||u[E]?.heading,onChange:e=>b("heading",e)}),(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:A,onChange:e=>n({chooseAmountText:e})}),(0,r.createElement)("div",{className:"donations__amounts"},v.map(((e,t)=>(0,r.createElement)(l.Z,{currency:c,defaultValue:C[t],label:(0,o.sprintf)( | |
| 67 | +__("Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: %s.","jetpack"),`<a href="https://automattic.com/cookies/">${__("Cookie Policy","jetpack")}</a>`)},70024(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(56427),s=n(27723),a=(n(57378),n(68071)),i=n(34839),c=n(10790);const __=s.__;const l=function({clientId:e,attributes:t,setAttributes:n}){const{consentExpiryDays:l,align:u,text:d=a.a}=t;(0,i.w)(e);const p=(0,r.useBlockProps)({className:`wp-block-jetpack-cookie-consent align${u}`});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.InspectorControls,{children:(0,c.jsxs)(o.PanelBody,{title:__("Block Settings","jetpack"),children:[(0,c.jsx)(o.SelectControl,{label:__("Alignment","jetpack"),value:u,options:[{label:(0,s.isRTL)()?__("Right","jetpack"):__("Left","jetpack"),value:"left"},{label:__("Full","jetpack"),value:"full"},{label:__("Wide","jetpack"),value:"wide"},{label:(0,s.isRTL)()?__("Left","jetpack"):__("Right","jetpack"),value:"right"}],onChange:e=>function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}(e),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,c.jsx)(o.TextControl,{label:__("Consent Expiry Time (in days)","jetpack"),value:l,type:"number",min:"1",max:"365",onChange:e=>n({consentExpiryDays:parseInt(e)}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,c.jsx)("p",{children:__("Note: The block position in the editor is not indicative of the position on the front end. The block will always be positioned at the bottom of the page.","jetpack")})]})}),(0,c.jsxs)("div",{...p,style:p.style,children:[(0,c.jsx)(r.RichText,{tagName:"p",value:d,onChange:e=>n({text:e})}),(0,c.jsx)(r.InnerBlocks,{allowedBlocks:["core/button"],template:[["core/button",{text:__("Accept","jetpack")}]],templateLock:"all"})]})]})}},78165(e,t,n){"use strict";var r=n(94375),o=n(74095),s=n(70024),a=n(54175);n(57378);(0,r.M)(o,{edit:s.A,save:a.A})},54175(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(68071),s=n(10790);function a({attributes:e}){const t=r.useBlockProps.save(),{text:n=o.a,consentExpiryDays:a}=e;return(0,s.jsxs)("div",{...t,style:t.style,role:"dialog","aria-modal":"true",children:[(0,s.jsx)(r.RichText.Content,{tagName:"p",value:n}),(0,s.jsx)(r.InnerBlocks.Content,{}),(0,s.jsx)("span",{children:a})]})}},34839(e,t,n){"use strict";n.d(t,{w:()=>c});var r=n(74997),o=n(29491),s=n(3582),a=n(47143),i=n(86087);function c(e){const t=(0,a.useSelect)(e=>{const{isSavingPost:t,isSavingNonPostEntityChanges:n}=e("core/editor");return t()||n()},[]),n=!(!(0,o.usePrevious)(t)||t),[,c]=(0,s.useEntityProp)("root","site","cookie_consent_template"),{saveEditedEntityRecord:l}=(0,a.useDispatch)(s.store),[u,d]=(0,i.useState)(!1),p=(0,a.useSelect)(e=>{const{getBlock:t}=e("core/block-editor");return t}),h=(0,i.useCallback)(e=>{d(!0),c(e),l("root","site",void 0,{cookie_consent_template:e}).finally(()=>{d(!1)})},[d,c,l]);(0,i.useEffect)(()=>()=>{p(e)||h(null)},[]),(0,i.useEffect)(()=>{n&&!u&&h((0,r.serialize)([p(e)]))},[n,u,h,p,e])}},91376(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(4567),o=n(26356),s=n(94715),a=n(86087),i=n(13022),c=n(72730),l=n(10790);const u=({className:e=null,currency:t=null,defaultValue:n=null,disabled:u=!1,label:d="",onChange:p=null,value:h=""})=>{const[m,g]=(0,a.useState)((0,r.Ay)(h,t,{symbol:""})),[f,b]=(0,a.useState)(!1),[v,y]=(0,a.useState)(!1),k=(0,a.useRef)(null),w=(0,a.useCallback)((e,n)=>{g(r=>{if(e!==r){const r=(0,c.C_)(e,t);r&&r>=(0,c.dv)(t)?(y(!1),n&&p?.(r)):y(!0)}return e})},[t,p]),x=()=>{k.current&&(k.current.focus(),b(!0))};return(0,a.useEffect)(()=>{if(!k.current)return;const e=k.current,o=()=>{b(!1),m||w((0,r.Ay)(n,t,{symbol:""}))};return e.addEventListener("blur",o),()=>{e.removeEventListener("blur",o)}},[t,n,m,k,w]),(0,a.useEffect)(()=>{f||v||g((0,r.Ay)(h,t,{symbol:""}))},[t,f,v,h]),(0,a.useEffect)(()=>{w((0,r.Ay)(h,t,{symbol:""}))},[t,h]),(0,l.jsxs)("div",{className:(0,i.A)("donations__amount",e,{"has-focus":f,"has-error":v}),role:"button",tabIndex:0,onClick:x,onKeyDown:x,children:[o.y[t].symbol,u?(0,l.jsx)("div",{className:"donations__amount-value",children:(0,r.Ay)(h||n,t,{symbol:""})}):(0,l.jsx)(s.RichText,{allowedFormats:[],"aria-label":d,onChange:e=>w(e,!0),placeholder:(0,r.Ay)(n,t,{symbol:""}),ref:k,value:m,withoutInteractiveFormatting:!0})]})}},22883(e,t,n){"use strict";n.d(t,{A:()=>a});const r=["left","center","right","full"],o=(e,t="border")=>{if(!e||"object"!=typeof e)return[];const n=[],r=["top","right","bottom","left"];return r.some(t=>e[t])?r.forEach(r=>{const o=e[r];o&&(o.color&&n.push(`${t}-${r}-color:${o.color}`),o.style&&n.push(`${t}-${r}-style:${o.style}`),o.width&&n.push(`${t}-${r}-width:${o.width}`))}):(e.color&&n.push(`${t}-color:${e.color}`),e.style&&n.push(`${t}-style:${e.style}`),e.width&&n.push(`${t}-width:${e.width}`)),n},s=e=>{if(!e)return[];if("string"==typeof e)return[`border-radius:${e}`];if("object"==typeof e){const t={topLeft:"border-top-left-radius",topRight:"border-top-right-radius",bottomRight:"border-bottom-right-radius",bottomLeft:"border-bottom-left-radius"};return Object.entries(t).filter(([t])=>e[t]).map(([t,n])=>`${n}:${e[t]}`)}return[]},a=(e,t)=>{const{activeTabBackgroundColor:n,activeTabTextColor:a,inactiveTabBackgroundColor:i,inactiveTabTextColor:c,selectedAmountBackgroundColor:l,selectedAmountTextColor:u,selectedAmountOutlineColor:d,tabBorderColor:p,tabFontSize:h,tabPadding:m,amountFontSize:g,amountBorder:f,amountBorderRadius:b,buttonFontSize:v,buttonPadding:y,buttonAlignment:k,buttonBorderRadius:w,contentAlignment:x,blockBorder:_,blockBorderRadius:j,displayMode:C}=e,A=[];if(["left","center","right"].includes(x)){A.push(`${t} .donations__content{text-align:${x}}`);const e={left:"flex-start",center:"center",right:"flex-end"};A.push(`${t} .donations__amounts{justify-content:${e[x]}}`)}if(p&&A.push(`${t} .donations__nav,${t} .donations__nav-item,${t} .donations__nav-item.is-active{border-color:${p}}`),w){const e=s(w);e.length&&A.push(`${t} .donations__donate-button{${e.join(";")}}`)}const S=[];g&&S.push(`font-size:${g}`),S.push(...o(f)),S.push(...s(b)),S.length&&A.push(`${t} .donations__amount{${S.join(";")}}`);const E=[];h&&E.push(`font-size:${h}`),m&&["top","right","bottom","left"].forEach(e=>{m[e]&&E.push(`padding-${e}:${m[e]}`)}),E.length&&A.push(`${t} .donations__nav-item{${E.join(";")}}`);const T=[];n&&T.push(`background:${n}`),a&&T.push(`color:${a}`),T.length&&A.push(`${t} .donations__nav-item.is-active{${T.join(";")}}`);const N=[];i&&N.push(`background:${i}`),c&&N.push(`color:${c}`),N.length&&A.push(`${t} .donations__nav-item:not(.is-active){${N.join(";")}}`);const P=[];l&&P.push(`background-color:${l}`),u&&P.push(`color:${u}`),d&&P.push(`box-shadow:0 0 0 1px #fff,0 0 0 3px ${d}`),P.length&&A.push(`${t} .donations__amount.is-selected{${P.join(";")}}`);const B=[];if(v&&B.push(`font-size:${v}`),y&&["top","right","bottom","left"].forEach(e=>{y[e]&&B.push(`padding-${e}:${y[e]}`)}),B.length&&A.push(`${t} .donations__donate-button{${B.join(";")}}`),r.includes(k)&&("full"===k?A.push(`${t} .donations__donate-button-wrapper{display:block;width:100%}${t} .donations__donate-button{display:block;width:100%;box-sizing:border-box;text-align:center}`):A.push(`${t} .donations__donate-button-wrapper{text-align:${k}}`)),"modal"!==C){const e=[...o(_),...s(j)];e.length&&A.push(`.wp-block-jetpack-donations${t}{${e.join(";")}}`)}return"modal"===C&&["left","center","right"].includes(x)&&A.push(`${t}{text-align:${x}}`),A.join("")}},54806(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(4567),o=n(26356),s=n(85985),a=n(94715),i=n(56427),c=n(47143),l=n(86087),u=n(27723),d=n(48558),p=n(72730),h=n(16521),m=n(62060),g=n(75703),f=n(10790);const __=u.__,b={"one-time":"oneTimeDonation","1 month":"monthlyDonation","1 year":"annualDonation"},v=e=>{const{attributes:t,setAttributes:n,clientId:v}=e,{tracks:y}=(0,s.st)(),k=(0,l.useRef)({}),w=!(0,c.useSelect)(e=>e(h.M).getConnectUrl()||"",[]),x=(0,l.useCallback)((e,t)=>{y.recordEvent("jetpack_donations_setting_changed",{feature:"donations",surface:"block_editor",setting_name:e,setting_value:t,stripe_connected:w})},[y,w]),_=(0,l.useCallback)((e,t)=>{k.current[e]&&clearTimeout(k.current[e]),k.current[e]=setTimeout(()=>{x(e,t),delete k.current[e]},800)},[x]),{currency:j,oneTimeDonation:C,monthlyDonation:A,annualDonation:S,showCustomAmount:E,contentAlignment:T,defaultInterval:N,customAmountPlaceholder:P,minimumAmount:B,maximumAmount:I,displayMode:M,triggerButtonText:R,triggerIcon:L,triggerSticky:D,blockBorder:F,blockBorderRadius:O}=t,z=(0,p.dv)(j),U=P??100*z,H=!1!==C.show,$=!!A.show,V=!!S.show,q=(H?1:0)+($?1:0)+(V?1:0),G=__("At least one frequency must be enabled.","jetpack"),W=(0,g.fq)(H,$,V)??"one-time",Z="one-time"===N&&H||"1 month"===N&&$||"1 year"===N&&V?N:W,J={"one-time":"show_one_time","1 month":"show_monthly","1 year":"show_yearly"},K=(e,r)=>{const o=b[e],s=t[o],a={[o]:{...s,show:r}};if(!r&&Z===e){const t={oneTime:"one-time"!==e&&H,monthly:"1 month"!==e&&$,annual:"1 year"!==e&&V},n=(0,g.fq)(t.oneTime,t.monthly,t.annual);n&&(a.defaultInterval=n)}n(a),x(J[e],r)},Y={"one-time":__("One-Time","jetpack"),"1 month":__("Monthly","jetpack"),"1 year":__("Yearly","jetpack")},Q=[...H?[{value:"one-time",label:Y["one-time"]}]:[],...$?[{value:"1 month",label:Y["1 month"]}]:[],...V?[{value:"1 year",label:Y["1 year"]}]:[]],X=e=>[{value:"",label:__("None","jetpack")},...(e||[]).map((e,t)=>({value:String(t),label:(0,r.Ay)(e,j)}))],ee=e=>void 0!==e.defaultAmountIndex?String(e.defaultAmountIndex):"",te={"one-time":"default_amount_one_time","1 month":"default_amount_monthly","1 year":"default_amount_yearly"},ne=e=>r=>{const o=""===r?void 0:parseInt(r,10);((e,r,o)=>{const s=b[e];n({[s]:{...t[s],[r]:o}})})(e,"defaultAmountIndex",o),x(te[e],o??null)},re=(0,l.useCallback)(e=>n({contentAlignment:e||""}),[n]);let oe;void 0!==B&&void 0!==I&&I<B?oe=__("Maximum must be greater than the minimum amount.","jetpack"):void 0!==I&&I<z&&(oe=(0,u.sprintf)(/* translators: %s: minimum donation amount formatted with currency symbol */ | |
| 68 | +__("Maximum must be at least %s, the minimum amount Stripe can process.","jetpack"),(0,r.Ay)(z,j)));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(a.BlockControls,{children:[(0,f.jsx)(a.AlignmentControl,{value:T,onChange:re}),(0,f.jsx)(i.ToolbarGroup,{children:(0,f.jsx)(i.ToolbarItem,{children:()=>(0,f.jsx)(i.Dropdown,{contentClassName:"jetpack-donations__currency-popover",renderToggle:({onToggle:e,isOpen:t})=>(0,f.jsx)(i.ToolbarButton,{className:"jetpack-donations__currency-toggle",icon:(0,f.jsxs)(f.Fragment,{children:[j+" - "+o.y[j].symbol,(0,f.jsx)(i.Dashicon,{icon:"arrow-down"})]}),label:__("Change currency","jetpack"),onClick:e,onKeyDown:n=>{t||n.keyCode!==d.DOWN||(n.preventDefault(),n.stopPropagation(),e())}}),renderContent:({onClose:e})=>(0,f.jsx)(i.MenuGroup,{children:Object.keys(p.VK).map(t=>(0,f.jsx)(i.MenuItem,{isSelected:t===j,icon:t===j?"yes":"",onClick:()=>{(e=>{const t=(0,p.Xj)(e);n({currency:e,oneTimeDonation:{...C,amounts:t},monthlyDonation:{...A,amounts:t},annualDonation:{...S,amounts:t},customAmountPlaceholder:void 0}),x("currency",e)})(t),e()},children:t+" - "+o.y[t].symbol},`jetpack-donations-currency-${t}`))})})})})]}),(0,f.jsxs)(a.InspectorControls,{children:[(0,f.jsxs)(i.PanelBody,{title:__("Display","jetpack"),children:[(0,f.jsxs)(i.__experimentalToggleGroupControl,{label:__("Display mode","jetpack"),value:M,onChange:e=>n({displayMode:e}),isBlock:!0,__nextHasNoMarginBottom:!0,children:[(0,f.jsx)(i.__experimentalToggleGroupControlOption,{value:"inline",label:__("In-page","jetpack")}),(0,f.jsx)(i.__experimentalToggleGroupControlOption,{value:"modal",label:__("Pop-up","jetpack")})]}),"modal"===M&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i.ToggleControl,{label:__("Sticky","jetpack"),help:__("Fix the button to the bottom right corner of the page.","jetpack"),checked:!!D,onChange:e=>n({triggerSticky:e}),style:{marginTop:16},__nextHasNoMarginBottom:!0}),(0,f.jsx)(i.TextControl,{label:__("Button text","jetpack"),value:R??"",placeholder:__("Donate","jetpack"),onChange:e=>n({triggerButtonText:e||void 0}),__nextHasNoMarginBottom:!0}),(0,f.jsx)(i.ToggleControl,{label:__("Show icon","jetpack"),checked:"none"!==L,onChange:e=>n({triggerIcon:e?"heart":"none"}),style:{marginTop:16},__nextHasNoMarginBottom:!0}),"none"!==L&&(0,f.jsx)("div",{className:"jetpack-donations__icon-picker",children:m.Sh.map(({key:e,label:t,icon:r})=>(0,f.jsx)(i.Tooltip,{text:t,children:(0,f.jsx)(i.Button,{className:"jetpack-donations__icon-option",onClick:()=>n({triggerIcon:e}),"aria-label":t,isPressed:L===e,children:(0,f.jsx)(i.Icon,{icon:r,size:20})})},e))})]})]}),(0,f.jsxs)(i.PanelBody,{title:__("Settings","jetpack"),children:[(0,f.jsx)(i.ToggleControl,{checked:H,onChange:e=>K("one-time",e),disabled:H&&1===q,help:H&&1===q?G:void 0,label:__("Show one-time donations","jetpack"),__nextHasNoMarginBottom:!0}),(0,f.jsx)(i.ToggleControl,{checked:$,onChange:e=>K("1 month",e),disabled:$&&1===q,help:$&&1===q?G:void 0,label:__("Show monthly donations","jetpack"),__nextHasNoMarginBottom:!0}),(0,f.jsx)(i.ToggleControl,{checked:V,onChange:e=>K("1 year",e),disabled:V&&1===q,help:V&&1===q?G:void 0,label:__("Show annual donations","jetpack"),__nextHasNoMarginBottom:!0}),(0,f.jsx)(i.ToggleControl,{checked:E,onChange:e=>{n({showCustomAmount:e}),x("show_custom_amount",e)},label:__("Show custom amount option","jetpack"),__nextHasNoMarginBottom:!0}),(0,f.jsx)("h3",{className:"jp-donations-defaults-heading",style:{margin:"24px 0 8px",fontSize:13,fontWeight:600,textTransform:"none"},children:__("Defaults","jetpack")}),(0,f.jsx)(i.SelectControl,{label:__("Frequency","jetpack"),value:Z,options:Q,onChange:e=>{n({defaultInterval:e}),x("default_frequency",e)},__nextHasNoMarginBottom:!0}),(0,f.jsx)("h4",{className:"jp-donations-defaults-subheading",style:{margin:"16px 0 8px",fontSize:11,fontWeight:500,textTransform:"uppercase"},children:__("Amounts","jetpack")}),H&&(0,f.jsxs)(i.Flex,{justify:"space-between",align:"center",style:{marginBottom:8},children:[(0,f.jsx)(i.FlexItem,{style:{minWidth:80},children:__("One-Time","jetpack")}),(0,f.jsx)(i.FlexBlock,{children:(0,f.jsx)(i.SelectControl,{hideLabelFromVision:!0,label:__("Default amount for One-Time","jetpack"),value:ee(C),options:X(C.amounts),onChange:ne("one-time"),__nextHasNoMarginBottom:!0})})]}),$&&(0,f.jsxs)(i.Flex,{justify:"space-between",align:"center",style:{marginBottom:8},children:[(0,f.jsx)(i.FlexItem,{style:{minWidth:80},children:__("Monthly","jetpack")}),(0,f.jsx)(i.FlexBlock,{children:(0,f.jsx)(i.SelectControl,{hideLabelFromVision:!0,label:__("Default amount for Monthly","jetpack"),value:ee(A),options:X(A.amounts),onChange:ne("1 month"),__nextHasNoMarginBottom:!0})})]}),V&&(0,f.jsxs)(i.Flex,{justify:"space-between",align:"center",style:{marginBottom:8},children:[(0,f.jsx)(i.FlexItem,{style:{minWidth:80},children:__("Annual","jetpack")}),(0,f.jsx)(i.FlexBlock,{children:(0,f.jsx)(i.SelectControl,{hideLabelFromVision:!0,label:__("Default amount for Annual","jetpack"),value:ee(S),options:X(S.amounts),onChange:ne("1 year"),__nextHasNoMarginBottom:!0})})]}),E&&(0,f.jsxs)(i.Flex,{justify:"space-between",align:"center",style:{marginBottom:8},children:[(0,f.jsx)(i.FlexItem,{style:{minWidth:80},children:__("Custom","jetpack")}),(0,f.jsx)(i.FlexBlock,{children:(0,f.jsx)(i.TextControl,{type:"number",hideLabelFromVision:!0,label:__("Suggested custom amount","jetpack"),value:U,onChange:e=>{const t=""===e||void 0===e?void 0:Number(e);n({customAmountPlaceholder:t}),_("custom_amount_placeholder",t??null)},min:(0,p.dv)(j),step:.01,__nextHasNoMarginBottom:!0})})]}),(0,f.jsx)("p",{style:{marginTop:24},children:(0,f.jsx)(i.ExternalLink,{href:`https://wordpress.com/earn/${(0,s.GE)()}`,children:__("View donation earnings","jetpack")})})]}),(0,f.jsxs)(i.PanelBody,{title:__("Security","jetpack"),initialOpen:!1,children:[(0,f.jsx)("p",{style:{marginTop:0,marginBottom:16,fontSize:13},children:__("Setting minimum and maximum donation amounts can help prevent fraudulent transactions.","jetpack")}),(0,f.jsx)(i.TextControl,{type:"number",label:__("Minimum amount","jetpack"),value:B??"",onChange:e=>{const t=""===e?void 0:Number(e);n({minimumAmount:t}),_("minimum_amount",t??null)},min:z,step:.01,__nextHasNoMarginBottom:!0}),(0,f.jsx)(i.TextControl,{type:"number",label:__("Maximum amount","jetpack"),value:I??"",onChange:e=>{const t=""===e?void 0:Number(e);n({maximumAmount:t}),_("maximum_amount",t??null)},min:B??z,step:.01,help:oe,__nextHasNoMarginBottom:!0})]})]}),"modal"!==M&&(0,f.jsx)(a.InspectorControls,{group:"border",children:(0,f.jsxs)(i.__experimentalToolsPanel,{label:__("Border","jetpack"),resetAll:()=>n({blockBorder:void 0,blockBorderRadius:void 0}),panelId:v,children:[(0,f.jsx)(i.__experimentalToolsPanelItem,{label:__("Border","jetpack"),hasValue:()=>!!F,onDeselect:()=>n({blockBorder:void 0}),isShownByDefault:!0,panelId:v,children:(0,f.jsx)(i.BorderBoxControl,{label:__("Border","jetpack"),value:F,onChange:e=>n({blockBorder:e}),enableAlpha:!0,enableStyle:!0,__next40pxDefaultSize:!0})}),(0,f.jsx)(i.__experimentalToolsPanelItem,{label:__("Radius","jetpack"),hasValue:()=>!!O,onDeselect:()=>n({blockBorderRadius:void 0}),isShownByDefault:!0,panelId:v,children:(0,f.jsx)(a.__experimentalBorderRadiusControl,{values:O,onChange:e=>n({blockBorderRadius:e})})})]})})]})}},77994(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(4567),o=n(26356),s=n(94715),a=n(27723),i=n(72730),c=n(10790);const __=a.__,l={attributes:{currency:{type:"string",default:"USD"},oneTimeDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a one-time donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate","jetpack")}},monthlyDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a monthly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate monthly","jetpack")}},annualDonation:{type:"object",default:{show:!0,planId:null,amounts:[5,15,100],heading:__("Make a yearly donation","jetpack"),extraText:__("Your contribution is appreciated.","jetpack"),buttonText:__("Donate yearly","jetpack")}},showCustomAmount:{type:"boolean",default:!0},chooseAmountText:{type:"string",default:__("Choose an amount","jetpack")},customAmountText:{type:"string",default:__("Or enter a custom amount","jetpack")}},supports:{html:!1},save:({attributes:e})=>{const{currency:t,oneTimeDonation:n,monthlyDonation:a,annualDonation:l,showCustomAmount:u,chooseAmountText:d,customAmountText:p}=e;if(!n||!n.show||-1===n.planId)return null;const h={"one-time":{title:__("One-Time","jetpack")},...a.show&&{"1 month":{title:__("Monthly","jetpack")}},...l.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,c.jsx)("div",{children:(0,c.jsxs)("div",{className:"donations__container",children:[Object.keys(h).length>1&&(0,c.jsx)("div",{className:"donations__nav",children:Object.entries(h).map(([e,{title:t}])=>(0,c.jsx)("div",{role:"button",tabIndex:0,className:"donations__nav-item","data-interval":e,children:t},`jetpack-donations-nav-item-${e} `))}),(0,c.jsx)("div",{className:"donations__content",children:(0,c.jsxs)("div",{className:"donations__tab",children:[(0,c.jsx)(s.RichText.Content,{tagName:"h4",className:"donations__one-time-item",value:n.heading}),a.show&&(0,c.jsx)(s.RichText.Content,{tagName:"h4",className:"donations__monthly-item",value:a.heading}),l.show&&(0,c.jsx)(s.RichText.Content,{tagName:"h4",className:"donations__annual-item",value:l.heading}),(0,c.jsx)(s.RichText.Content,{tagName:"p",value:d}),(0,c.jsx)("div",{className:"donations__amounts donations__one-time-item",children:n.amounts.map(e=>(0,c.jsx)("div",{className:"donations__amount","data-amount":e,children:(0,r.Ay)(e,t)},e))}),a.show&&(0,c.jsx)("div",{className:"donations__amounts donations__monthly-item",children:a.amounts.map(e=>(0,c.jsx)("div",{className:"donations__amount","data-amount":e,children:(0,r.Ay)(e,t)},e))}),l.show&&(0,c.jsx)("div",{className:"donations__amounts donations__annual-item",children:l.amounts.map(e=>(0,c.jsx)("div",{className:"donations__amount","data-amount":e,children:(0,r.Ay)(e,t)},e))}),u&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.RichText.Content,{tagName:"p",value:p}),(0,c.jsxs)("div",{className:"donations__amount donations__custom-amount",children:[o.y[t].symbol,(0,c.jsx)("div",{className:"donations__amount-value","data-currency":t,"data-empty-text":(0,r.Ay)(100*(0,i.dv)(t),t,{symbol:""})})]})]}),(0,c.jsx)("div",{className:"donations__separator",children:"——"}),(0,c.jsx)(s.RichText.Content,{tagName:"p",className:"donations__one-time-item",value:n.extraText}),a.show&&(0,c.jsx)(s.RichText.Content,{tagName:"p",className:"donations__monthly-item",value:a.extraText}),l.show&&(0,c.jsx)(s.RichText.Content,{tagName:"p",className:"donations__annual-item",value:l.extraText}),(0,c.jsx)("div",{className:"wp-block-button donations__donate-button-wrapper donations__one-time-item",children:(0,c.jsx)(s.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__one-time-item",value:n.buttonText})}),a.show&&(0,c.jsx)("div",{className:"wp-block-button donations__donate-button-wrapper donations__monthly-item",children:(0,c.jsx)(s.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__monthly-item",value:a.buttonText})}),l.show&&(0,c.jsx)("div",{className:"wp-block-button donations__donate-button-wrapper donations__annual-item",children:(0,c.jsx)(s.RichText.Content,{tagName:"a",className:"wp-block-button__link donations__donate-button donations__annual-item",value:l.buttonText})})]})})]})})}}},97448(e,t,n){"use strict";n.d(t,{A:()=>T});var r=n(85985),o=n(94715),s=n(56427),a=n(29491),i=n(47143),c=n(86087),l=n(27723),u=n(2274),d=n(53796),p=n(72730),h=n(27574),m=n(26247),g=n(16521),f=n(3696),b=n(22883),v=n(54806),y=n(70975),k=n(93033),w=n(82920),x=n(62060),_=(n(16279),n(79551)),j=n(26334),C=n(52244),A=n(10790);const __=l.__,S=new Set,E=e=>{const{attributes:t,setAttributes:n,clientId:l}=e,{currency:T,tabsAppearance:N,className:P,displayMode:B,triggerButtonText:I,triggerIcon:M,triggerSticky:R}=t,{tracks:L}=(0,r.st)();(0,c.useEffect)(()=>{if("string"==typeof P&&P.split(" ").includes("is-style-buttons")){const e=P.split(" ").filter(e=>"is-style-buttons"!==e).join(" ").trim();n({tabsAppearance:"buttons",className:e||void 0})}},[P,n]);const D=(0,a.useInstanceId)(E,"jp-donations"),F=(0,b.A)(t,`.${D}`),O=[D,"buttons"===N&&"is-style-buttons","modal"===B&&"is-display-modal","modal"===B&&R&&"is-sticky"].filter(Boolean).join(" "),z=(0,o.useBlockProps)({className:O}),[U,H]=(0,c.useState)(""),[$,V]=(0,c.useState)([]),[q,G]=(0,c.useState)(!1),W=(0,m.A)(),Z=(0,i.useSelect)(e=>e(o.store).getSettings().isPreviewMode,[]),{lockPostSaving:J,unlockPostSaving:K}=(0,i.useDispatch)("core/editor"),{getEntityRecord:Y,getCurrentUser:Q}=(0,i.useSelect)("core"),{editEntityRecord:X,saveEditedEntityRecord:ee}=(0,i.useDispatch)("core"),te=(0,i.useSelect)(e=>e("core/editor").getCurrentPost(),[]),ne=(0,i.useSelect)(e=>e("core/editor").isPostSavingLocked(),[]),re=(0,i.useSelect)(e=>e(g.M).getConnectUrl()||"",[]),{setConnectUrl:oe,setConnectedAccountDefaultCurrency:se}=(0,i.useDispatch)(f.EF),ae=(0,i.useSelect)(e=>e(f.EF).getConnectedAccountDefaultCurrency());(0,c.useEffect)(()=>{if(Z||!l||S.has(l))return;W&&!re&&!ae||(S.add(l),L.recordEvent("jetpack_donations_block_loaded",{feature:"donations",surface:"block_editor",is_user_connected:!!W,stripe_connected:W?!re:null}))},[l,W,re,ae,L,Z]),(0,c.useEffect)(()=>{if(!T&&ae&&!ne){const e=ae.toUpperCase(),t=!!p.VK[e];n(t?{currency:e}:{currency:"USD"})}},[T,ae,ne,n]);const ie=e=>{H(e)},ce=Q();(0,c.useEffect)(()=>{ce?.id&&Y("root","user",ce.id)},[ce?.id,Y]);const le=ce?.meta?.jetpack_donation_warning_dismissed||!1;(0,c.useEffect)(()=>{Z||ce?.id&&!1===le&&G(!0)},[ce,le,Z]),(0,c.useEffect)(()=>{if(Z)return;J("donations");const e=e=>e.reduce((e,{id:t,currency:n,type:r,interval:o})=>(n===T&&"donation"===r&&(e[o]=t),e),{});(0,k.A)("donation").then(t=>{if(!t&&"object"!=typeof t||t.errors)return K("donations"),void H(__("Could not load data from WordPress.com.","jetpack"));oe((0,h.A)(te.id,t.connect_url)),se(t?.connected_account_default_currency?.toUpperCase());const n=e(t.products);return(e=>{const t=Object.keys(e);return t.includes("one-time")&&t.includes("1 month")&&t.includes("1 year")})(n)?(V(n),void K("donations")):t.connect_url?(V({"one-time":-1,"1 month":-1,"1 year":-1}),void K("donations")):(T&&(0,y.A)(T).then(t=>{V(e(t)),K("donations")},ie),void K("donations"))},ie)},[J,T,te.id,oe,se,K,Z]);const ue=Z?{"one-time":-1,"1 month":-1,"1 year":-1}:$,de=Z&&!T?{...e,attributes:{...t,currency:"USD"}}:e;let pe;if(Z||W)if(!Z&&U)pe=(0,A.jsx)(_.A,{error:U});else if(!Z&&re)pe=(0,A.jsx)(d.V,{blockName:"donations"});else if(Z||T)if("modal"===B){const t=x.Sh.find(({key:e})=>e===M),n=I||__("Donate","jetpack");pe=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(v.A,{...e}),(0,A.jsxs)("button",{className:"donations__trigger-button wp-block-button__link",tabIndex:-1,"aria-hidden":"true",children:[t&&"none"!==M&&(0,A.jsx)(s.Icon,{className:"donations__trigger-icon",icon:t.icon,size:20}),n]})]})}else pe=(0,A.jsx)(C.A,{...de,products:ue});else pe=(0,A.jsx)(s.Spinner,{});else pe=(0,A.jsx)(u.A,{block:"Donations Form",explanation:__("Connect your WordPress.com account to enable donations.","jetpack")});const he=(0,c.useCallback)(async()=>{if(G(!1),ce?.id)try{await X("root","user",ce.id,{meta:{jetpack_donation_warning_dismissed:!0}}),await ee("root","user",ce.id)}catch(e){console.error("Failed to update user meta:",e)}else console.error("Cannot update user meta: User not loaded")},[ce,X,ee]);return(0,A.jsxs)("div",{...z,children:[(0,A.jsx)(j.A,{attributes:t,setAttributes:n}),F&&(0,A.jsx)("style",{children:F}),pe,q&&(0,A.jsx)(w.A,{onClose:he})]})},T=E},46197(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(87325),a=n(77994),i=n(97448),c=n(75743),l=n(30746);n(45318);(0,o.M)(s,{edit:i.A,save:c.A,deprecated:[a.A]}),(0,r.registerBlockVariation)("jetpack/donations",l.Ay)},70975(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(1455),o=n.n(r);const s=async e=>{try{return await o()({path:"/wpcom/v2/memberships/products",method:"POST",data:{type:"donation",currency:e,is_editable:!1}})}catch(e){return Promise.reject(e.message)}}},93033(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(1455),o=n.n(r),s=n(93832);const a=async(e=null)=>{const t=new URLSearchParams(window.location.search),n=(0,s.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===t.get("origin")?"gutenberg-wpcom":"gutenberg",...e&&{type:e},is_editable:!1});try{return await o()({path:n,method:"GET"})}catch(e){return Promise.reject(e.message)}}},82920(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(3924),o=n(97999),s=n(56427),a=n(86087),i=n(27723),c=n(57273),l=n(10790);const __=i.__,u=({onClose:e})=>{const t=(0,o.isWpcomPlatformSite)()?"wpcom-support-donation-block":"jetpack-support-donation-block";return(0,l.jsx)(s.Modal,{className:"jetpack-donations-first-time-modal",onRequestClose:e,title:__("Accept Donations with Stripe","jetpack"),children:(0,l.jsxs)("div",{className:"jetpack-donations-first-time-modal__content",children:[(0,l.jsx)("p",{children:(0,a.createInterpolateElement)(__("To accept donations on your site, you'll need to connect your Stripe account. Here's what you need to do: <docLink>Learn more about donations</docLink>.","jetpack"),{docLink:(0,l.jsx)(c.N,{openInNewTab:!0,href:(0,r.A)(t)})})}),(0,l.jsxs)("ol",{children:[(0,l.jsx)("li",{children:__("Connect your Stripe account to your WordPress.com account","jetpack")}),(0,l.jsx)("li",{children:__("Set up your business information in Stripe","jetpack")}),(0,l.jsx)("li",{children:__("Configure your payment settings and supported currencies","jetpack")})]}),(0,l.jsx)("p",{children:__("Once connected, you can customize your donation form and start accepting payments.","jetpack")}),(0,l.jsx)("p",{children:(0,a.createInterpolateElement)(__("Please note that accepting donations has additional requirements from Stripe. Learn more about <requirementsLink>requirements for accepting donations</requirementsLink>.","jetpack"),{requirementsLink:(0,l.jsx)(c.N,{openInNewTab:!0,href:(0,r.A)("jetpack-support-donation-block-stripe-reqs")})})}),(0,l.jsx)("div",{className:"jetpack-donations-first-time-modal__actions",children:(0,l.jsx)(s.Button,{variant:"primary",onClick:e,children:__("Got it","jetpack")})})]})})}},62060(e,t,n){"use strict";n.d(t,{$f:()=>l,Sh:()=>u});var r=n(27723),o=n(42005),s=n(5573),a=n(10790);const __=r.__,i=(0,a.jsx)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(s.Path,{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})}),c=(0,a.jsx)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(s.Path,{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5 14.67 11 15.5 11zm-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11zm3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5z"})}),l=(0,a.jsx)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 5h11v3.25h1a2 2 0 010 4H17.5v1.25a3 3 0 01-3 3H9.5a3 3 0 01-3-3V5zm1.5 1.5v7.25a1.5 1.5 0 001.5 1.5h5a1.5 1.5 0 001.5-1.5V6.5h-8zm10 2.5H17.5v2h.5a1 1 0 000-2zM5 20h14V18.5H5z"})}),u=[{key:"heart",label:__("Heart","jetpack"),icon:i},{key:"gift",label:__("Gift","jetpack"),icon:o.A},{key:"smiley",label:__("Smiley","jetpack"),icon:c},{key:"coffee",label:__("Cup","jetpack"),icon:l}]},79551(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__,a=({error:e})=>(0,s.jsx)(r.Placeholder,{icon:"lock",label:__("Donations","jetpack"),instructions:e})},75743(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(75703),s=n(10790);const a=(0,o.OI)(),i=({attributes:e})=>{const{fallbackLinkUrl:t,oneTimeDonation:n,monthlyDonation:o,annualDonation:i}=e;if(!n||!n.show||!n.planId||-1===n.planId)return null;const c=r.useBlockProps.save();return(0,s.jsxs)("div",{...c,children:[(0,s.jsx)(r.RichText.Content,{tagName:"h4",value:a.oneTimeDonation?.heading}),(0,s.jsx)(r.RichText.Content,{tagName:"p",value:n.extraText??a.extraText}),(0,s.jsx)(r.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:a.oneTimeDonation?.buttonText}),o.show&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("hr",{className:"donations__separator"}),(0,s.jsx)(r.RichText.Content,{tagName:"h4",value:a.monthlyDonation?.heading}),(0,s.jsx)(r.RichText.Content,{tagName:"p",value:o.extraText??a.extraText}),(0,s.jsx)(r.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:a.monthlyDonation?.buttonText})]}),i.show&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("hr",{className:"donations__separator"}),(0,s.jsx)(r.RichText.Content,{tagName:"h4",value:a.annualDonation?.heading}),(0,s.jsx)(r.RichText.Content,{tagName:"p",value:i.extraText??a.extraText}),(0,s.jsx)(r.RichText.Content,{tagName:"a",className:"jetpack-donations-fallback-link",href:t,rel:"noopener noreferrer noamphtml",target:"_blank",value:a.annualDonation?.buttonText})]})]})}},26334(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(10790);const __=a.__,c={placement:"left-start",offset:36},l=({label:e,settings:t})=>{const n=(0,s.useCallback)(()=>t.some(e=>!!e.value),[t]),a=(0,s.useCallback)(()=>t.forEach(e=>e.onChange()),[t]),l=(0,s.useCallback)(({isOpen:n,onToggle:r})=>(0,i.jsx)(o.Button,{onClick:r,"aria-expanded":n,"aria-label":e,__next40pxDefaultSize:!0,children:(0,i.jsxs)(o.__experimentalHStack,{justify:"flex-start",children:[(0,i.jsx)(o.__experimentalZStack,{isLayered:!1,offset:-8,children:t.map((e,t)=>(0,i.jsx)(o.Flex,{expanded:!1,children:(0,i.jsx)(o.ColorIndicator,{colorValue:e.value})},t))}),(0,i.jsx)(o.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",children:e})]})}),[e,t]),u=(0,s.useCallback)(()=>{if(1===t.length)return(0,i.jsx)(o.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,i.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,i.jsx)(r.__experimentalColorGradientControl,{label:t[0].label,colorValue:t[0].value,onColorChange:t[0].onChange})})});const e=t.map(e=>({name:e.label.toLowerCase().replace(/\s+/g,"-"),title:e.label}));return(0,i.jsx)(o.__experimentalDropdownContentWrapper,{paddingSize:"none",children:(0,i.jsx)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content",children:(0,i.jsx)(o.TabPanel,{tabs:e,children:e=>{const n=t.find(t=>t.label.toLowerCase().replace(/\s+/g,"-")===e.name);return(0,i.jsx)(r.__experimentalColorGradientControl,{label:n.label,colorValue:n.value,onColorChange:n.onChange,showTitle:!1})}})})})},[t]);return(0,i.jsx)(o.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",label:e,hasValue:n,onDeselect:a,isShownByDefault:!0,children:(0,i.jsx)(o.Dropdown,{popoverProps:c,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:l,renderContent:u})})},u=({attributes:e,setAttributes:t})=>{const{activeTabBackgroundColor:n,activeTabTextColor:a,inactiveTabBackgroundColor:c,inactiveTabTextColor:u,selectedAmountBackgroundColor:d,selectedAmountTextColor:p,selectedAmountOutlineColor:h,tabsAppearance:m,tabBorderColor:g,tabFontSize:f,tabPadding:b,buttonFontSize:v,buttonPadding:y,buttonAlignment:k,buttonBorderRadius:w,amountFontSize:x,amountBorder:_,amountBorderRadius:j}=e,C=(0,s.useMemo)(()=>{const e=e=>n=>t({[e]:n});return{tabsAppearance:e("tabsAppearance"),activeTabBackgroundColor:e("activeTabBackgroundColor"),activeTabTextColor:e("activeTabTextColor"),inactiveTabBackgroundColor:e("inactiveTabBackgroundColor"),inactiveTabTextColor:e("inactiveTabTextColor"),tabBorderColor:e("tabBorderColor"),tabFontSize:e("tabFontSize"),tabPadding:e("tabPadding"),selectedAmountBackgroundColor:e("selectedAmountBackgroundColor"),selectedAmountTextColor:e("selectedAmountTextColor"),selectedAmountOutlineColor:e("selectedAmountOutlineColor"),amountFontSize:e("amountFontSize"),amountBorder:e("amountBorder"),amountBorderRadius:e("amountBorderRadius"),buttonFontSize:e("buttonFontSize"),buttonPadding:e("buttonPadding"),buttonAlignment:e=>t({buttonAlignment:e||""}),buttonBorderRadius:e("buttonBorderRadius")}},[t]),A=(0,s.useMemo)(()=>[{label:__("Text","jetpack"),value:a,onChange:C.activeTabTextColor},{label:__("Background","jetpack"),value:n,onChange:C.activeTabBackgroundColor}],[n,a,C]),S=(0,s.useMemo)(()=>[{label:__("Text","jetpack"),value:u,onChange:C.inactiveTabTextColor},{label:__("Background","jetpack"),value:c,onChange:C.inactiveTabBackgroundColor}],[c,u,C]),E=(0,s.useMemo)(()=>[{label:__("Tab border","jetpack"),value:g,onChange:C.tabBorderColor}],[g,C]),T=(0,s.useMemo)(()=>[{label:__("Text","jetpack"),value:p,onChange:C.selectedAmountTextColor},{label:__("Background","jetpack"),value:d,onChange:C.selectedAmountBackgroundColor},{label:__("Outline","jetpack"),value:h,onChange:C.selectedAmountOutlineColor}],[d,p,h,C]),N=(0,s.useCallback)(()=>{},[]),P=(0,s.useCallback)(()=>{C.tabsAppearance("tabs"),C.activeTabBackgroundColor(),C.activeTabTextColor(),C.inactiveTabBackgroundColor(),C.inactiveTabTextColor(),C.tabBorderColor(),C.tabFontSize(),C.tabPadding()},[C]),B=(0,s.useCallback)(()=>{C.selectedAmountBackgroundColor(),C.selectedAmountTextColor(),C.selectedAmountOutlineColor(),C.amountFontSize(),C.amountBorder(),C.amountBorderRadius()},[C]),I=(0,s.useCallback)(()=>{C.buttonFontSize(),C.buttonPadding(),C.buttonBorderRadius(),C.buttonAlignment("")},[C]),M=(0,s.useMemo)(()=>({tabsAppearance:()=>"buttons"===m,tabFontSize:()=>!!f,tabPadding:()=>!!b,amountFontSize:()=>!!x,amountBorder:()=>!!_,amountBorderRadius:()=>!!j,buttonFontSize:()=>!!v,buttonPadding:()=>!!y,buttonAlignment:()=>!!k,buttonBorderRadius:()=>!!w}),[m,f,b,x,_,j,v,y,k,w]),R=(0,s.useMemo)(()=>({tabsAppearance:()=>C.tabsAppearance("tabs"),buttonAlignment:()=>C.buttonAlignment("")}),[C]);return(0,i.jsxs)(r.InspectorControls,{group:"styles",children:[(0,i.jsxs)(o.PanelBody,{title:__("Tabs","jetpack"),initialOpen:!1,className:"jp-donations-style-panel",children:[(0,i.jsx)(o.__experimentalToolsPanel,{label:__("Tab appearance","jetpack"),resetAll:N,headingLevel:3,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Appearance","jetpack"),hasValue:M.tabsAppearance,onDeselect:R.tabsAppearance,isShownByDefault:!0,children:(0,i.jsxs)(o.__experimentalToggleGroupControl,{label:__("Appearance","jetpack"),value:m||"tabs",onChange:C.tabsAppearance,isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[(0,i.jsx)(o.__experimentalToggleGroupControlOption,{value:"tabs",label:__("Tabs","jetpack")}),(0,i.jsx)(o.__experimentalToggleGroupControlOption,{value:"buttons",label:__("Buttons","jetpack")})]})})}),(0,i.jsx)(o.__experimentalToolsPanel,{className:"color-block-support-panel",label:__("Colors","jetpack"),resetAll:N,hasInnerWrapper:!0,headingLevel:3,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:(0,i.jsxs)("div",{className:"color-block-support-panel__inner-wrapper",children:[(0,i.jsx)(l,{label:__("Active Tab","jetpack"),settings:A}),(0,i.jsx)(l,{label:__("Inactive Tab","jetpack"),settings:S}),(0,i.jsx)(l,{label:__("Tab Border","jetpack"),settings:E})]})}),(0,i.jsx)(r.ContrastChecker,{backgroundColor:n,textColor:a}),(0,i.jsx)(r.ContrastChecker,{backgroundColor:c,textColor:u}),(0,i.jsxs)(o.__experimentalToolsPanel,{label:__("Tab dimensions","jetpack"),resetAll:N,headingLevel:3,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Font size","jetpack"),hasValue:M.tabFontSize,onDeselect:C.tabFontSize,isShownByDefault:!0,children:(0,i.jsx)(r.FontSizePicker,{value:f,onChange:C.tabFontSize,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Padding","jetpack"),hasValue:M.tabPadding,onDeselect:C.tabPadding,isShownByDefault:!0,children:(0,i.jsx)(o.BoxControl,{label:__("Padding","jetpack"),values:b,onChange:C.tabPadding,allowReset:!1,__next40pxDefaultSize:!0})})]}),(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.Button,{variant:"secondary",onClick:P,children:__("Reset","jetpack")})})]}),(0,i.jsxs)(o.PanelBody,{title:__("Amounts","jetpack"),initialOpen:!1,className:"jp-donations-style-panel",children:[(0,i.jsx)(o.__experimentalToolsPanel,{className:"color-block-support-panel",label:__("Colors","jetpack"),resetAll:N,hasInnerWrapper:!0,headingLevel:3,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:(0,i.jsx)("div",{className:"color-block-support-panel__inner-wrapper",children:(0,i.jsx)(l,{label:__("Selected Amount","jetpack"),settings:T})})}),(0,i.jsx)(r.ContrastChecker,{backgroundColor:d,textColor:p}),(0,i.jsxs)(o.__experimentalToolsPanel,{label:__("Amount settings","jetpack"),resetAll:N,headingLevel:3,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Font size","jetpack"),hasValue:M.amountFontSize,onDeselect:C.amountFontSize,isShownByDefault:!0,children:(0,i.jsx)(r.FontSizePicker,{value:x,onChange:C.amountFontSize,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Border","jetpack"),hasValue:M.amountBorder,onDeselect:C.amountBorder,isShownByDefault:!0,children:(0,i.jsx)(o.BorderBoxControl,{label:__("Border","jetpack"),value:_,onChange:C.amountBorder,enableAlpha:!0,enableStyle:!0,__next40pxDefaultSize:!0})}),(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Border radius","jetpack"),hasValue:M.amountBorderRadius,onDeselect:C.amountBorderRadius,isShownByDefault:!0,children:(0,i.jsx)(r.__experimentalBorderRadiusControl,{values:j,onChange:C.amountBorderRadius})})]}),(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.Button,{variant:"secondary",onClick:B,children:__("Reset","jetpack")})})]}),(0,i.jsxs)(o.PanelBody,{title:__("Donate button","jetpack"),initialOpen:!1,className:"jp-donations-style-panel",children:[(0,i.jsxs)(o.__experimentalToolsPanel,{label:__("Button settings","jetpack"),resetAll:N,headingLevel:3,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last",children:[(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Font size","jetpack"),hasValue:M.buttonFontSize,onDeselect:C.buttonFontSize,isShownByDefault:!0,children:(0,i.jsx)(r.FontSizePicker,{value:v,onChange:C.buttonFontSize,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Padding","jetpack"),hasValue:M.buttonPadding,onDeselect:C.buttonPadding,isShownByDefault:!0,children:(0,i.jsx)(o.BoxControl,{label:__("Padding","jetpack"),values:y,onChange:C.buttonPadding,allowReset:!1,__next40pxDefaultSize:!0})}),(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Radius","jetpack"),hasValue:M.buttonBorderRadius,onDeselect:C.buttonBorderRadius,isShownByDefault:!0,children:(0,i.jsx)(r.__experimentalBorderRadiusControl,{values:w,onChange:C.buttonBorderRadius})}),(0,i.jsx)(o.__experimentalToolsPanelItem,{label:__("Alignment","jetpack"),hasValue:M.buttonAlignment,onDeselect:R.buttonAlignment,isShownByDefault:!0,children:(0,i.jsxs)(o.__experimentalToggleGroupControl,{label:__("Alignment","jetpack"),value:k||"",onChange:C.buttonAlignment,isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[(0,i.jsx)(o.__experimentalToggleGroupControlOption,{value:"left",label:__("Left","jetpack")}),(0,i.jsx)(o.__experimentalToggleGroupControlOption,{value:"center",label:__("Center","jetpack")}),(0,i.jsx)(o.__experimentalToggleGroupControlOption,{value:"right",label:__("Right","jetpack")}),(0,i.jsx)(o.__experimentalToggleGroupControlOption,{value:"full",label:__("Full width","jetpack")})]})})]}),(0,i.jsx)(o.PanelRow,{children:(0,i.jsx)(o.Button,{variant:"secondary",onClick:I,children:__("Reset","jetpack")})})]})]})}},32299(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(94715),o=n(47143),s=n(27723),a=n(72730),i=n(91376),c=n(75703),l=n(10790);const __=s.__,u=(0,c.OI)(),d=({activeTab:e,attributes:t,setAttributes:n})=>{const{currency:c,oneTimeDonation:d,monthlyDonation:p,annualDonation:h,showCustomAmount:m,customAmountPlaceholder:g,chooseAmountText:f=u.chooseAmountText,customAmountText:b=u.customAmountText}=t,v={"one-time":"oneTimeDonation","1 month":"monthlyDonation","1 year":"annualDonation"}[e],y=e=>t[v][e],k=(e,r)=>{const o=t[v];n({[v]:{...o,[e]:r}})},w=(0,a.Xj)(c),x=y("amounts"),_=(0,o.useSelect)(e=>e("core/rich-text").getFormatTypes(),[]).map(e=>e.name).filter(e=>"core/link"!==e);return(0,l.jsxs)("div",{className:"donations__tab",children:[(0,l.jsx)(r.RichText,{tagName:"h4",placeholder:__("Write a message…","jetpack"),value:y("heading")??u[v]?.heading,onChange:e=>k("heading",e)}),(0,l.jsx)(r.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:f,onChange:e=>n({chooseAmountText:e})}),(0,l.jsx)("div",{className:"donations__amounts",children:x.map((e,t)=>(0,l.jsx)(i.A,{currency:c,defaultValue:w[t],label:(0,s.sprintf)( | |
| 39 | 69 | // translators: %d: Tier level e.g: "1", "2", "3" |
| 40 | -__("Tier %d","jetpack"),t+1),key:`jetpack-donations-amount-${t}`,onChange:e=>((e,t)=>{const n=[...v];n[t]=e,b("amounts",n)})(e,t),value:e})))),g&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:h,onChange:e=>n({customAmountText:e})}),(0,r.createElement)(l.Z,{currency:c,label:__("Custom amount","jetpack"),defaultValue:100*(0,i.hj)(c),className:"donations__custom-amount",disabled:!0})),(0,r.createElement)("hr",{className:"donations__separator"}),(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:f("extraText")??u.extraText,onChange:e=>b("extraText",e)}),(0,r.createElement)("div",{className:"wp-block-button donations__donate-button-wrapper"},(0,r.createElement)(a.RichText,{className:"wp-block-button__link donations__donate-button",placeholder:__("Write a message…","jetpack"),value:f("buttonText")||u[E]?.buttonText,onChange:e=>{return t=e,void n({oneTimeDonation:{...d,buttonText:t},monthlyDonation:{...p,buttonText:t},annualDonation:{...m,buttonText:t}});var t},allowedFormats:k})))}},72833:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(69307),s=n(65736),o=n(65235),i=n.n(o),l=n(82275),c=n(91757);const __=s.__,u=e=>{const{attributes:t,products:n,setAttributes:s}=e,{oneTimeDonation:o,monthlyDonation:u,annualDonation:d}=t,[p,m]=(0,a.useState)("one-time"),g=(0,a.useCallback)((e=>p===e),[p]),A={"one-time":{title:__("One-Time","jetpack")},...u.show&&{"1 month":{title:__("Monthly","jetpack")}},...d.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,a.useEffect)((()=>{o.planId===n["one-time"]&&u.planId===n["1 month"]&&d.planId===n["1 year"]||s({...n["one-time"]&&{oneTimeDonation:{...o,planId:n["one-time"]}},...n["1 month"]&&{monthlyDonation:{...u,planId:n["1 month"]}},...n["1 year"]&&{annualDonation:{...d,planId:n["1 year"]}}})}),[o,u,d,s,n]),(0,a.useEffect)((()=>{!u.show&&g("1 month")&&m("one-time"),!d.show&&g("1 year")&&m("one-time")}),[u,d,m,g]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"donations__container"},Object.keys(A).length>1&&(0,r.createElement)("div",{className:"donations__nav"},Object.entries(A).map((([e,{title:t}])=>(0,r.createElement)("div",{role:"button",tabIndex:0,className:i()("donations__nav-item",{"is-active":g(e)}),onClick:()=>m(e),onKeyDown:()=>m(e),key:`jetpack-donations-nav-item-${e} `},t)))),(0,r.createElement)("div",{className:"donations__content"},(0,r.createElement)(c.Z,{activeTab:p,attributes:t,setAttributes:s}))),(0,r.createElement)(l.Z,e))}},34943:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof window)return{};const e=window.Jetpack_DonationsBlock?.defaultTexts;return"object"!=typeof e?{}:e}n.d(t,{X:()=>r})},92868:(e,t,n)=>{"use strict";n.d(t,{IJ:()=>a,Q7:()=>s,Wh:()=>r});const r=/^\s*https?:\/\/(?:www\.)?(?:eventbrite\.[a-z.]+)\/e\/[^/]*?(\d+)\/?(?:\?[^/]*)?\s*$/i,a=/^\s*https?:\/\/(?:.+\.)?(?:eventbrite\.[a-z.]+)\/?(?:\?[^/]*)?\s*$/i,s="https://www.eventbrite.com/e/test-event-tickets-123456789"},6949:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,J:()=>c});var r=n(51806),a=n(55609),s=n(65736),o=n(57538),i=n(8964);const __=s.__,_x=s._x,l=[{value:"inline",label:__("In-page Embed","jetpack"),preview:(0,r.createElement)("div",{className:"block-editor-block-preview__container"},(0,r.createElement)("img",{src:i,alt:__("In page Eventbrite checkout example","jetpack")}))},{value:"modal",label:__("Button & Modal","jetpack")}],c=({setEditingUrl:e})=>(0,r.createElement)(a.ToolbarGroup,null,(0,r.createElement)(a.ToolbarButton,{className:"components-toolbar__control",label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>e(!0)})),u=({attributes:e,clientId:t,setAttributes:n})=>(0,r.createElement)(o.Z,{title:_x("Embed Type","option for how the embed displays on a page, e.g. inline or as a modal","jetpack"),clientId:t,styleOptions:l,onSelectStyle:n,activeStyle:e.style,attributes:e,viewportWidth:130})},1344:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=[n(24717).Z]},24717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(4981),o=n(65736),i=n(65235),l=n.n(i),c=n(92819);const _x=o._x,u=["text","backgroundColor","textColor","customBackgroundColor","customTextColor","borderRadius"];const d={attributes:{url:{type:"string",validator:e=>!e||e.startsWith("http")},eventId:{type:"number"},useModal:{type:"boolean"},style:{type:"string"},text:{type:"string",default:_x("Register","verb: e.g. register for an event.","jetpack")},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"}},migrate:e=>{const{className:t,style:n}=e;let r=n;r||(r=e.useModal?"modal":"inline");const a={...(0,c.omit)(e,["useModal",...u]),className:t&&t.replace("is-style-outline",""),style:r},o=(0,c.pick)(e,u);return[a,[(0,s.createBlock)("jetpack/button",{element:"a",text:o.text||_x("Register","verb: e.g. register for an event.","jetpack"),...o,uniqueId:"eventbrite-widget-id",className:t&&-1!==t.indexOf("is-style-outline")?"is-style-outline":""})]]},save:function({attributes:e}){const{eventId:t,useModal:n,url:s,style:o}=e;if(t)return n||"modal"===o?function(e){const{backgroundColor:t,borderRadius:n,customBackgroundColor:s,customTextColor:o,eventId:i,text:c,textColor:u,url:d}=e,p=(0,a.getColorClassName)("color",u),m=(0,a.getColorClassName)("background-color",t),g=l()("wp-block-button__link",{"has-text-color":u||o,[p]:p,"has-background":t||s,[m]:m,"no-border-radius":0===n}),A={backgroundColor:m?void 0:s,color:p?void 0:o,borderRadius:n?n+"px":void 0};return(0,r.createElement)("div",{className:"wp-block-button"},(0,r.createElement)(a.RichText.Content,{className:g,href:d,id:`eventbrite-widget-${i}`,rel:"noopener noreferrer",role:"button",style:A,tagName:"a",target:"_blank",value:c}))}(e):s&&(0,r.createElement)("a",{className:"eventbrite__direct-link",href:s},s)},isEligible:(e,t)=>("modal"===e.style||e.useModal)&&((0,c.isEmpty)(t)||(0,c.some)((0,c.pick)(e,u),Boolean))}},16078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(55609),l=n(69307),c=n(65736),u=n(4554),d=n(23621),p=n(33711),m=n(92868),g=n(6949),A=n(32983),h=n(26820),E=n(80497),f=n(77825);const __=c.__,_x=c._x,b={name:"jetpack/button",attributes:{element:"a",text:_x("Register","verb: e.g. register for an event.","jetpack"),uniqueId:"eventbrite-widget-id"}},C=(0,i.withNotices)((e=>{const{attributes:t,noticeOperations:n,onReplace:r,setAttributes:c}=e,{url:C,style:v}=t,k=(0,o.useBlockProps)(),[B,y]=(0,l.useState)(!1),[w,_]=(0,l.useState)(t.url||""),[I,j]=(0,l.useState)(!1),x=!I&&C&&!m.Wh.test(C),S=(0,l.useCallback)((()=>{n.removeAllNotices(),n.createErrorNotice((0,s.createElement)(s.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,s.createElement)(i.Button,{variant:"link",onClick:()=>(0,f.N3)(w,r)},_x("Convert block to link","button label","jetpack"))))}),[n,r,w]),Q=(0,l.useCallback)((e=>{if(!e||m.Q7===e||"modal"===v)return;const t=(0,f.Ve)(e);if(t){const r={eventId:t,url:e};(0,d.Z)(r.url,j).then((e=>{const t=(0,u.S)(p.attributes,{...r,url:e});c(t),_(e),n.removeAllNotices()})).catch((()=>{c({eventId:void 0,url:void 0}),S()}))}else S()}),[v,n,S,c,_,j]);let N;return(0,l.useEffect)((()=>{Q(C)}),[C,Q]),N=I?(0,s.createElement)(h.Z,null):B||!C||x?(0,s.createElement)(A.Z,a()({},e,{editedUrl:w,onChange:e=>_(e.target.value),onSubmit:e=>{e&&e.preventDefault(),Q((0,f.qq)(w)),y(!1)}})):(0,s.createElement)(s.Fragment,null,(0,s.createElement)(g.A,e),(0,s.createElement)(o.BlockControls,null,(0,s.createElement)(g.J,{setEditingUrl:y})),"modal"===v?(0,s.createElement)(o.InnerBlocks,{template:[[b.name,b.attributes]],templateLock:"all"}):(0,s.createElement)(E.Z,e)),(0,s.createElement)("div",k,N)}))},83772:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(33711),o=n(92868),i=n(1344),l=n(16078),c=n(86435);(0,a.S)(s,{edit:l.Z,save:c.Z,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&(o.Wh.test(e.textContent)||o.IJ.test(e.textContent)),transform:e=>(0,r.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}]},deprecated:i.Z})},32983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(33711);n(77825);const __=o.__,_x=o._x,l=(0,a.dM)(i),c=({className:e,noticeUI:t,editedUrl:n,onChange:o,onSubmit:i})=>{const c=(0,a.Wp)()||(0,a.Ug)()?"http://support.wordpress.com/wordpress-editor/blocks/eventbrite-block/":"https://jetpack.com/support/jetpack-blocks/eventbrite-block/";return(0,r.createElement)("div",{className:e},(0,r.createElement)(s.Placeholder,{label:__("Eventbrite Checkout","jetpack"),instructions:__("Paste a link to an Eventbrite event to embed ticket checkout.","jetpack"),icon:l,notices:t},(0,r.createElement)("form",{onSubmit:i},(0,r.createElement)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":__("Eventbrite URL","jetpack"),placeholder:__("Enter an event URL to embed here…","jetpack"),onChange:o}),(0,r.createElement)(s.Button,{variant:"secondary",type:"submit"},_x("Embed","submit button label","jetpack"))),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(s.ExternalLink,{href:c},__("Learn more about Eventbrite embeds","jetpack")))))}},26820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,o=()=>(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("p",null,__("Embedding…","jetpack")))},80497:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);const s=({className:e,attributes:t})=>{const{eventId:n}=t;if(!n)return;const s=`eventbrite-widget-${n}`,o=`\n\t\t\t<script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"><\/script>\n\t\t\t<style>\n\t\t\t\t/* Prevent scrollbar on the embed preview */\n\t\t\t\tbody {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\t\t/* Eventbrite embeds have a CSS height transition on loading, which causes <Sandbox>\n\t\t\t\tto not recognise the resizing. We need to disable that transition. */\n\t\t\t\t* {\n\t\t\t\t\ttransition: none !important;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<script>\n\t\t\t\twindow.EBWidgets.createWidget({\n\t\t\t\t\twidgetType: 'checkout',\n\t\t\t\t\teventId: ${n},\n\t\t\t\t\tiframeContainerId: '${s}',\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t\t<div id="${s}"></div>\n\t\t`;return(0,r.createElement)("div",{className:e},(0,r.createElement)(a.SandBox,{html:o}),(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay"}))}},86435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s({attributes:e}){const t=a.useBlockProps.save(),{eventId:n,style:s,url:o}=e;if(!n)return;let i;return"modal"===s?i=(0,r.createElement)(a.InnerBlocks.Content,null):o&&(i=(0,r.createElement)("a",{className:"eventbrite__direct-link",href:o},o)),(0,r.createElement)("div",t,i)}},77825:(e,t,n)=>{"use strict";n.d(t,{N3:()=>o,Ve:()=>i,qq:()=>l});var r=n(51806),a=n(4981),s=n(69307);function o(e,t){const n=(0,r.createElement)("a",{href:e},e);t((0,a.createBlock)("core/paragraph",{content:(0,s.renderToString)(n)}))}function i(e){if(!e)return null;const t=e.match(/(\d+)\/?(?:\?[^\/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}function l(e=""){return e&&"string"==typeof e?e.trim():null}},12084:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(55609),s=n(69307),o=n(65736);const __=o.__;const i=(0,s.forwardRef)((function({onSubmit:e,onChange:t,value:n=""},s){return(0,r.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:e},(0,r.createElement)("input",{type:"text",className:"wp-block-jetpack-gif_input components-placeholder__input",placeholder:__("Enter search terms, e.g. cat…","jetpack"),value:n,onChange:t,ref:s,"aria-labelledby":"wp-block-jetpack-gif_search-button"}),(0,r.createElement)(a.Button,{id:"wp-block-jetpack-gif_search-button",variant:"secondary",type:"submit"},__("Search","jetpack")))}))},72844:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});const r="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW"},57852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(55609);function o(){return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.PanelBody,{className:"components-panel__body-gif-branding"},(0,r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},(0,r.createElement)(s.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),(0,r.createElement)(s.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"}))))}},61266:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(52175),l=n(55609),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(13625),g=n(12084),A=n(57852),h=n(27147),E=n(80163);const __=u.__,f=(0,o.dM)(m);const b=function({attributes:e,setAttributes:t,isSelected:n}){const{align:r,caption:o,giphyUrl:u,searchText:d,paddingTop:b}=e,[C,v]=(0,c.useState)(!1),k=(0,c.createRef)(),{isFetching:B,giphyData:y,fetchGiphyData:w}=(0,h.Z)(),_=(0,i.useBlockProps)(),I=()=>{k.current.focus(),v(!1)};(0,c.useEffect)((()=>{y&&y[0]&&t((0,E.ix)(y[0]))}),[y,t]);const j=async t=>{if(t.preventDefault(),!e.searchText||B)return;const n=await(0,E.Gr)(e.searchText);n&&w(n)},x=e=>t({searchText:e.target.value});return(0,s.createElement)("div",a()({},_,{className:p()(_.className,`align${r}`)}),(0,s.createElement)(A.Z,null),u?(0,s.createElement)("figure",null,n&&(0,s.createElement)(g.Z,{onSubmit:j,onChange:x,value:d,ref:k}),n&&y&&y.length>1&&(0,s.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},y.map((e=>{const n={backgroundImage:`url(${e.images.downsized_still.url})`};return(0,s.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:e.id,onClick:n=>{n.preventDefault(),(e=>{t((0,E.ix)(e))})(e)},style:n})}))),(0,s.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:{paddingTop:b}},(0,s.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:I,onKeyDown:I,role:"button",tabIndex:"0"}),(0,s.createElement)("iframe",{src:u,title:d})),(!i.RichText.isEmpty(o)||n)&&!!u&&(0,s.createElement)(i.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:C,onFocus:()=>v(!1),onChange:e=>t({caption:e}),placeholder:__("Write caption…","jetpack"),tagName:"figcaption",value:o})):(0,s.createElement)(l.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:f,label:m.title,instructions:__("Search for a term or paste a Giphy URL","jetpack")},(0,s.createElement)(g.Z,{onSubmit:j,onChange:x,value:d,ref:k})))}},63139:(e,t,n)=>{"use strict";var r=n(31985),a=n(13625),s=n(61266);(0,r.S)(a,{edit:s.Z,save:()=>null})},27147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(69307);const a=(e=[])=>{const[t,n]=(0,r.useState)(!1),[a,s]=(0,r.useState)(e),[o,i]=(0,r.useState)("");return(0,r.useEffect)((()=>{if(!o)return;(async()=>{n(!0);const e=await fetch(o).then((e=>!!e.ok&&e)).catch((()=>!1));if(e){const t=await e.json(),n=void 0!==t.data.images?[t.data]:t.data;n[0].images&&s(n)}n(!1)})()}),[o]),{isFetching:t,giphyData:a,fetchGiphyData:i}}},80163:(e,t,n)=>{"use strict";n.d(t,{Gr:()=>l,ix:()=>d});var r=n(23621),a=n(72844);const s=e=>`https://api.giphy.com/v1/gifs/search?q=${encodeURIComponent(e)}&api_key=${encodeURIComponent(a.U)}&limit=10`,o=e=>`https://api.giphy.com/v1/gifs/${encodeURIComponent(e)}?api_key=${encodeURIComponent(a.U)}`,i=(e="",t)=>{const n=e.split(t);return n[n.length-1]},l=(e="")=>new Promise((t=>{let n=null;if((e=e.trim()).match(/^https:\/\/gph\.is\/(?:[a-zA-Z0-9]+\/)?[a-zA-Z0-9]+$/i))(0,r.Z)(e).then((r=>{r.startsWith("https://giphy.com/gifs/")?(n=i(r,"-"),t(o(n))):t(s(e))}));else{const r=/^https?:\/\/(media\.|i\.)?giphy\.com\/(embed|gifs|media)?\/?([-\w]*)(\/giphy)?(\.gif)?$/,a=e.match(r);a&&a[3]&&(n=i(a[3],"-")),n&&t(o(n)),t(s(e))}})),c=e=>`${Math.floor(e.images.original.height/e.images.original.width*100)}%`,u=e=>e?.embed_url,d=e=>({giphyUrl:u(e),paddingTop:c(e)})},28434:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,O:()=>c});var r=n(51806),a=n(55609),s=n(65736),o=n(86668);const __=s.__,i=({attributes:e,setAttributes:t})=>{const{showCover:n,showAuthor:s,showTitle:o,showRating:i,showReview:l,showTags:c}=e;return(0,r.createElement)(a.PanelBody,{PanelBody:!0,title:__("Display Settings","jetpack"),initialOpen:!0},(0,r.createElement)(a.ToggleControl,{label:__("Show cover","jetpack"),checked:n,onChange:()=>t({showCover:!n})}),(0,r.createElement)(a.ToggleControl,{label:__("Show author","jetpack"),checked:s,onChange:()=>t({showAuthor:!s})}),(0,r.createElement)(a.ToggleControl,{label:__("Show title","jetpack"),checked:o,onChange:()=>t({showTitle:!o})}),(0,r.createElement)(a.ToggleControl,{label:__("Show rating","jetpack"),checked:i,onChange:()=>t({showRating:!i})}),(0,r.createElement)(a.ToggleControl,{label:__("Show review","jetpack"),checked:l,onChange:()=>t({showReview:!l})}),(0,r.createElement)(a.ToggleControl,{label:__("Show tags","jetpack"),checked:c,onChange:()=>t({showTags:!c})}))};function l({attributes:e,setAttributes:t}){const{style:n,shelfOption:s,bookNumber:l,orderOption:c,customTitle:u,sortOption:d}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{PanelBody:!0,title:__("Block Settings","jetpack"),initialOpen:!0},(0,r.createElement)(a.SelectControl,{label:__("Shelf","jetpack"),value:s,onChange:e=>t({shelfOption:e}),options:o.xI}),(0,r.createElement)(a.TextControl,{label:__("Title","jetpack"),value:u||o.Gu,onChange:e=>t({customTitle:e})}),(0,r.createElement)(a.SelectControl,{label:__("Sort by","jetpack"),value:d,onChange:e=>t({sortOption:e}),options:o.Dg}),(0,r.createElement)(a.SelectControl,{label:__("Order","jetpack"),value:c,onChange:e=>t({orderOption:e}),options:o.hG}),(0,r.createElement)(a.TextControl,{label:__("Number of books","jetpack"),type:"number",inputMode:"numeric",min:"1",max:"grid"===n?200:100,value:l||5,onChange:e=>t({bookNumber:e})})),"default"===n&&i({attributes:e,setAttributes:t}))}function c({attributes:e,setAttributes:t}){const{style:n}=e,s=[{icon:"list-view",title:__("Default view","jetpack"),onClick:()=>t({style:"default"}),isActive:"default"===n},{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({style:"grid"}),isActive:"grid"===n}];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.ToolbarButton,{label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>t({goodreadsId:""})}),(0,r.createElement)(a.ToolbarGroup,{controls:s}))}},76032:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(13419),s=n(52175),o=n(55609),i=n(69307),l=n(65736),c=n(36290),u=n(28434),d=n(10078),p=n(86668);const __=l.__,_x=l._x,m=(0,o.withNotices)((e=>{const{attributes:t,className:n,noticeOperations:l,noticeUI:m,setAttributes:g}=e,[A,h]=(0,i.useState)(""),[E,f]=(0,i.useState)(""),[b,C]=(0,i.useState)(!1),v=(0,i.useRef)(null),k=(0,s.useBlockProps)(),{isFetchingData:B,goodreadsUserId:y,isError:w}=(0,d.Z)(E);(0,i.useEffect)((()=>{B&&C(!0),B||(C(!1),w&&(g({widgetId:void 0,goodreadsId:void 0,link:void 0}),_()),t.goodreadsId&&I(),y&&!w&&(g({goodreadsId:y}),I()))}),[y,B,b,w,g]),(0,i.useEffect)((()=>{v.current&&t.goodreadsId&&t.widgetId===v.current.attributes.widgetId&&I(),v.current=e}),[e,t.goodreadsId,t.widgetId]);const _=()=>{l.removeAllNotices(),l.createErrorNotice((0,r.createElement)(r.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")))},I=()=>{const e="grid"===t.style?"gr_grid_widget_":"gr_custom_widget_";g({widgetId:Math.floor(9999999*Math.random()),link:(0,p.FA)({attributes:t}),id:e+t.widgetId})},j=e=>{e&&e.preventDefault(),f(A),C(!0)};let x;return x=b?(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(o.Spinner,null),(0,r.createElement)("p",null,__("Embedding…","jetpack"))):t.goodreadsId?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(u.D,{attributes:t,setAttributes:g})),(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(u.O,{attributes:t,setAttributes:g})),(()=>{const{link:e,id:a}=t,s=`\n\t\t<style> [class^=gr_custom_container_] { border: 1px solid gray; border-radius: 10px; margin: auto; padding: 0 5px 10px 5px; background-color: #fff; color: #000; width: 300px; } [class^=gr_custom_header_] { border-bottom: 1px solid gray; width: 100%; padding: 10px 0; margin: auto; text-align: center; font-size: 120%; } [class^=gr_custom_each_container_] { width: 100%; clear: both; margin: auto; overflow: auto; padding-bottom: 4px; border-bottom: 1px solid #aaa; } [class^=gr_custom_each_container_] { width: 100%; clear: both; margin-bottom: 10px; overflow: auto; padding-bottom: 4px; border-bottom: 1px solid #aaa; } [class^=gr_custom_book_container_] { overflow: hidden; height: 60px; float: left; margin-right: 6px; width: 39px; } [class^=gr_custom_author_] { font-size: 10px; } [class^=gr_custom_tags_] { font-size: 10px; color: gray; } [class^=gr_custom_rating_] { float: right; } [class^=gr_grid_book_container] { float: left; width: 98px; height: 160px; padding: 0px 0px; overflow: hidden; } [class^=gr_grid_book_container] img { height: 100%; width: 100%; } a { text-decoration: none; } a:hover { text-decoration: underline; } img { max-width: 100%; }</style>\n\t\t<script src="${e}"><\/script>\n \t<div id="${a}"></div>\n \t`;return(0,r.createElement)("div",{className:n},(0,r.createElement)(o.SandBox,{title:"Goodreads",html:s}),(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay"}))})()):(0,r.createElement)("div",{className:n},(0,r.createElement)(o.Placeholder,{label:__("Goodreads","jetpack"),instructions:__("Paste a link to a Goodreads profile.","jetpack"),icon:(0,a.dM)(c),notices:m},(0,r.createElement)("form",{onSubmit:j},(0,r.createElement)("input",{type:"url",value:A,className:"components-placeholder__input","aria-label":__("Goodreads profile URL","jetpack"),placeholder:__("Enter a Goodreads profile URL to embed here…","jetpack"),onChange:e=>h(e.target.value)}),(0,r.createElement)(o.Button,{variant:"secondary",type:"submit"},_x("Embed","submit button label","jetpack"))))),(0,r.createElement)("div",k,x)}))},98298:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(36290),o=n(76032),i=n(88365);(0,a.S)(s,{edit:o.Z,save:i.Z,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"wpcom-goodreads"===e,transform:({instance:e})=>(0,r.createBlock)("jetpack/goodreads",{customTitle:e.raw.title,goodreadsId:parseInt(e.raw.user_id),shelfOption:e.raw.shelf,showRating:!1,widgetId:Math.floor(9999999*Math.random())})}]}})},10078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(86989),a=n.n(r),s=n(69307),o=n(23621);function i(e){const[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[l,c]=(0,s.useState)(!1),[u,d]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{c(!1),d(!1),e.length&&!/^(https?:\/\/)?(www\.)?goodreads\.com\/.*/.test(e)&&c(!0);const t=/\/(user|author)\/show\/(\d+)/,r=!!e.match(t)&&parseInt(e.match(t)[2]);e.length&&!r&&c(!0),!l&&e.length&&(i(!0),(async t=>{if(/\/author\//.test(e)){const e=`/wpcom/v2/goodreads/user-id?id=${t}`;await a()({path:e,method:"GET"}).then((e=>{n(e)})).catch((()=>{d(!0)})).finally((()=>{i(!1)}))}else(0,o.Z)(e).then((e=>{e.endsWith("/author")&&d(!0),n(t)})).catch((()=>{d(!0)})).finally((()=>{i(!1)}))})(r))}),[e,l]),{isFetchingData:r,goodreadsUserId:t,isError:l||u}}},88365:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},86668:(e,t,n)=>{"use strict";n.d(t,{Dg:()=>o,FA:()=>l,Gu:()=>a,hG:()=>i,xI:()=>s});var r=n(65736);const __=r.__,_x=r._x,a=__("My Bookshelf","jetpack"),s=[{label:_x("Read","perfect participle - eg. I read a book yesterday.","jetpack"),value:"read"},{label:__("Currently reading","jetpack"),value:"currently-reading"},{label:_x("To read","future participle - eg. I have this to read tomorrow.","jetpack"),value:"to-read"}],o=[{label:"ASIN",value:"asin"},{label:_x("Author","noun","jetpack"),value:"author"},{label:__("Average rating","jetpack"),value:"avg_rating"},{label:_x("Comments","noun","jetpack"),value:"comments"},{label:_x("Cover","noun - ie. book cover","jetpack"),value:"cover"},{label:__("Date added","jetpack"),value:"date_added"},{label:__("Date published","jetpack"),value:"date_pub"},{label:__("Date read","jetpack"),value:"date_read"},{label:__("Date started","jetpack"),value:"date_started"},{label:__("Dated updated","jetpack"),value:"date_updated"},{label:_x("Format","noun","jetpack"),value:"format"},{label:"ISBN",value:"isbn"},{label:"ISBN-13",value:"isbn13"},{label:_x("Notes","noun","jetpack"),value:"notes"},{label:__("Number of pages","jetpack"),value:"num_pages"},{label:__("Number of ratings","jetpack"),value:"num_ratings"},{label:_x("Owned","possessive - eg. I owned this book for a year","jetpack"),value:"owned"},{label:_x("Position","noun","jetpack"),value:"position"},{label:__("Random","jetpack","jetpack"),value:"random"},{label:_x("Rating","noun","jetpack"),value:"rating"},{label:__("Read count","jetpack"),value:"read_count"},{label:_x("Review","noun","jetpack"),value:"review"},{label:_x("Shelves","noun","jetpack"),value:"shelves"},{label:_x("Title","noun","jetpack"),value:"title"},{label:_x("Votes","noun","jetpack"),value:"votes"},{label:__("Year published","jetpack"),value:"year_pub"}],i=[{label:__("Ascending","jetpack"),value:"a"},{label:__("Descending","jetpack"),value:"d"}];function l({attributes:e}){const{bookNumber:t,customTitle:n=a,goodreadsId:r,orderOption:s,shelfOption:o,showAuthor:i,showCover:l,showRating:c,showReview:u,showTags:d,showTitle:p,sortOption:m,style:g,widgetId:A}=e;if(!r)return;let h=`https://www.goodreads.com/review/custom_widget/${r}.${n}?num_books=${t}&order=${s}&shelf=${o}&show_author=${i?1:0}&show_cover=${l?1:0}&show_rating=${c?1:0}&show_review=${u?1:0}&show_tags=${d?1:0}&show_title=${p?1:0}&sort=${m}&widget_id=${A}`;return"grid"===g&&(h=`https://www.goodreads.com/review/grid_widget/${r}.${n}?cover_size=medium&num_books=${t}&order=${s}&shelf=${o}&sort=${m}&widget_id=${A}`),h}},4966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,_x=s._x,o=e=>{const{className:t,embedValue:n,onChange:s,onSubmit:o}=e;return(0,r.createElement)(a.PanelBody,{title:__("Calendar settings","jetpack"),initialOpen:!1},(0,r.createElement)("form",{onSubmit:o,className:t},(0,r.createElement)("textarea",{type:"text",value:n,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:s}),(0,r.createElement)(a.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack"))))}},81907:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51806),a=n(13419),s=n(52175),o=n(4981),i=n(55609),l=n(94333),c=n(69307),u=n(65736),d=n(90162),p=n(5416),m=n(4966),g=n(4525);const __=u.__,_x=u._x,A=(0,a.dM)(p);const h=(0,l.compose)(i.withNotices,(0,d.withViewportMatch)({isMobile:"< small"}))((function(e){const{attributes:{url:t,height:n},isMobile:l,isSelected:u,name:d,noticeOperations:p,noticeUI:h,setAttributes:E}=e,f=(0,s.useBlockProps)(),[b,C]=(0,c.useState)(t||""),[v,k]=(0,c.useState)(!1),[B,y]=(0,c.useState)(!1);(0,c.useEffect)((()=>{!u&&B&&y(!1)}),[u,B]);const w=()=>{y(!0)},_=e=>{e&&e.preventDefault();const t=(0,g.L7)(b.trim());if(!g.Wh.test(t.url))return p.removeAllNotices(),void p.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or Embed Code. Please note, you need to use the 'Public URL' or 'Embed Code', the 'Shareable Link' will not work.","jetpack"));E(t),k(!1),p.removeAllNotices()},I=(0,o.getBlockDefaultClassName)(d),j=`<iframe src="${t}" style="border:0" scrolling="no" frameborder="0" height="${l?"300":n}"></iframe>`,x=(0,r.createElement)(i.ExternalLink,{href:"https://en.support.wordpress.com/google-calendar/"},__("Enable Permissions for the calendar you want to share","jetpack")),S=(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(m.Z,{className:`${I}-embed-form-sidebar`,embedValue:b,onChange:e=>C(e.target.value),onSubmit:_}));let Q;if(v||!t){const e=(0,a.Wp)()||(0,a.Ug)()?"https://en.support.wordpress.com/wordpress-editor/blocks/google-calendar/":"https://jetpack.com/support/jetpack-blocks/google-calendar/";Q=(0,r.createElement)(r.Fragment,null,S,(0,r.createElement)(i.Placeholder,{label:__("Google Calendar","jetpack"),icon:A,notices:h},(0,r.createElement)("ol",{className:`${I}-placeholder-instructions`},(0,r.createElement)("li",null,x),(0,r.createElement)("li",null,__("Paste the embed code you copied from your Google Calendar below","jetpack"))),(N=`${I}-embed-form-editor`,(0,r.createElement)("form",{onSubmit:_,className:N},(0,r.createElement)("textarea",{type:"text",value:b,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:e=>C(e.target.value)}),(0,r.createElement)(i.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))),(0,r.createElement)("div",{className:`${I}-placeholder-links`},(0,r.createElement)(i.ExternalLink,{href:e},__("Learn more","jetpack")))))}else Q=(0,r.createElement)(r.Fragment,null,S,(0,r.createElement)("div",null,(0,r.createElement)(i.SandBox,{html:j,onFocus:w}),!B&&(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:w})));var N;return(0,r.createElement)("div",f,Q)}))},58710:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(5416),o=n(81907),i=n(77724),l=n(4525);(0,a.S)(s,{edit:o.Z,save:i.Z,transforms:{from:[{type:"shortcode",tag:"googleapps",isMatch:function(e){return"calendar"===e.named.domain},attributes:{url:{type:"string",shortcode:({named:{domain:e,dir:t,query:n}})=>`https://${e}.google.com/${t}?${n}`}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&l.Wh.test(e.textContent),transform:e=>(0,r.createBlock)("jetpack/google-calendar",{url:e.textContent.trim()})},{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&l.E6.test(e.innerHTML),transform:e=>{const{url:t,height:n}=(0,l.jj)(e.innerHTML.trim());return(0,r.createBlock)("jetpack/google-calendar",{url:t,height:n})}}]}})},77724:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175);const i=({attributes:{url:e}})=>{const t=o.useBlockProps.save();return(0,s.createElement)("a",a()({},t,{href:e}),e)}},4525:(e,t,n)=>{"use strict";n.d(t,{E6:()=>s,L7:()=>u,Wh:()=>a,jj:()=>c});const r="s*https?://calendar.google.com/calendar",a=new RegExp(`^${r}`,"i"),s=new RegExp(`<iframe((?:\\s+\\w+=(['"]).*?\\2)*)\\s+src=(["'])(${r}.*?)\\3((?:\\s+\\w+=(['"]).*?\\6)*)`,"i"),o=new RegExp(`${r}\\?cid=([-A-Za-z0-9+/]+={0,3})`,"i"),i=/\s+(\w+)=(["'])(.*?)\2/gi;function l(e){const t=o.exec(e);if(t)return"https://calendar.google.com/calendar/embed?src="+encodeURIComponent(atob(t[1]))}function c(e){const t=s.exec(e);if(!t)return;const n={};return t.forEach(((e,t)=>{if(0===t)return;if(a.test(e))return void(n.url=e);let r;for(;null!==(r=i.exec(e));)n[r[1]]=r[3]})),{url:n.url,width:n.width,height:n.height}}function u(e){return s.test(e)?c(e):o.test(e)?{url:l(e)}:{url:e}}},79648:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(55609),l=n(69307),c=n(65736),u=n(30055),d=n(96276);const __=c.__,_x=c._x,p=d.Z?.find((e=>"jetpack/google-docs"===e.name)),m=d.Z?.find((e=>"jetpack/google-sheets"===e.name)),g=d.Z?.find((e=>"jetpack/google-slides"===e.name)),A={type:"document",title:p?.title,icon:p.icon,patterns:[/^(http|https):\/\/(docs\.google.com)\/document\/d\/([A-Za-z0-9_-]+).*?$/i]},h={type:"spreadsheets",title:m?.title,icon:m.icon,patterns:[/^(http|https):\/\/(docs\.google.com)\/spreadsheets\/d\/([A-Za-z0-9_-]+).*?$/i]},E={type:"presentation",title:g?.title,icon:g.icon,patterns:[/^(http|https):\/\/(docs\.google.com)\/presentation\/d\/([A-Za-z0-9_-]+).*?$/i]},f=e=>{const{attributes:{aspectRatio:t},attributes:{variation:n},attributes:{url:r},setAttributes:c}=e;let d="",p="",m=[],g="";switch((0,l.useEffect)((()=>{n||c({variation:(()=>{switch(r.match(/^(http|https):\/\/(docs\.google\.com)\/(.*)\/d\//)[3]){case"document":return"google-docs";case"spreadsheets":return"google-sheets";case"presentation":return"google-slides"}return""})()})}),[n,r,c]),n.replace("jetpack/","")){case"google-docs":d=A.icon,p=A.title,m=A.patterns,g=A.type;break;case"google-sheets":d=h.icon,p=h.title,m=h.patterns,g=h.type;break;case"google-slides":d=E.icon,p=E.title,m=E.patterns,g=E.type}const f=[ | |
| 70 | +__("Tier %d","jetpack"),t+1),onChange:e=>((e,t)=>{const n=[...x];n[t]=e,k("amounts",n)})(e,t),value:e},`jetpack-donations-amount-${t}`))}),m&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:b,onChange:e=>n({customAmountText:e})}),(0,l.jsx)(i.A,{currency:c,label:__("Custom amount","jetpack"),defaultValue:g??100*(0,a.dv)(c),className:"donations__custom-amount",disabled:!0})]}),(0,l.jsx)("hr",{className:"donations__separator"}),(0,l.jsx)(r.RichText,{tagName:"p",placeholder:__("Write a message…","jetpack"),value:y("extraText")??u.extraText,onChange:e=>k("extraText",e)}),(0,l.jsx)("div",{className:"wp-block-button donations__donate-button-wrapper",children:(0,l.jsx)(r.RichText,{className:"wp-block-button__link wp-element-button donations__donate-button",placeholder:__("Write a message…","jetpack"),value:y("buttonText")??u[v]?.buttonText,onChange:e=>{return t=e,void n({oneTimeDonation:{...d,buttonText:t},monthlyDonation:{...p,buttonText:t},annualDonation:{...h,buttonText:t}});var t},allowedFormats:_})})]})}},52244(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(86087),o=n(27723),s=n(13022),a=n(54806),i=n(32299),c=n(75703),l=n(10790);const __=o.__,u=e=>{const{attributes:t,products:n,setAttributes:o}=e,{oneTimeDonation:u,monthlyDonation:d,annualDonation:p,defaultInterval:h}=t,m=!1!==u.show,g=(0,c.fq)(m,d.show,p.show)??"one-time",f="one-time"===h&&m||"1 month"===h&&d.show||"1 year"===h&&p.show?h:g,[b,v]=(0,r.useState)(f),y=(0,r.useCallback)(e=>b===e,[b]),k={...m&&{"one-time":{title:__("One-Time","jetpack")}},...d.show&&{"1 month":{title:__("Monthly","jetpack")}},...p.show&&{"1 year":{title:__("Yearly","jetpack")}}};return(0,r.useEffect)(()=>{u.planId===n["one-time"]&&d.planId===n["1 month"]&&p.planId===n["1 year"]||o({...n["one-time"]&&{oneTimeDonation:{...u,planId:n["one-time"]}},...n["1 month"]&&{monthlyDonation:{...d,planId:n["1 month"]}},...n["1 year"]&&{annualDonation:{...p,planId:n["1 year"]}}})},[u,d,p,o,n]),(0,r.useEffect)(()=>{const e=(0,c.fq)(m,d.show,p.show);null!==e&&(!m&&y("one-time")&&v(e),!d.show&&y("1 month")&&v(e),!p.show&&y("1 year")&&v(e))},[m,d,p,v,y]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"donations__container",children:[Object.keys(k).length>1&&(0,l.jsx)("div",{className:"donations__nav",children:Object.entries(k).map(([e,{title:t}])=>(0,l.jsx)("div",{role:"button",tabIndex:0,className:(0,s.A)("donations__nav-item",{"is-active":y(e)}),onClick:()=>v(e),onKeyDown:()=>v(e),children:t},`jetpack-donations-nav-item-${e} `))}),(0,l.jsx)("div",{className:"donations__content",children:(0,l.jsx)(i.A,{activeTab:b,attributes:t,setAttributes:o})})]}),(0,l.jsx)(a.A,{...e})]})}},30746(e,t,n){"use strict";n.d(t,{Ay:()=>i});var r=n(27723),o=n(62060);const __=r.__,s="tips",a={variationName:s,displayMode:"modal",triggerSticky:!1,triggerButtonText:"Buy me a coffee",triggerIcon:"coffee",contentAlignment:"center",buttonAlignment:"full",tabsAppearance:"buttons",showCustomAmount:!1,chooseAmountText:"",annualDonation:{show:!1,planId:null,amounts:[3,5,8]},oneTimeDonation:{show:!0,planId:null,amounts:[3,5,8],defaultAmountIndex:0,heading:"",buttonText:"Buy coffee",extraText:"Thanks for your generosity!"},monthlyDonation:{show:!0,planId:null,amounts:[3,5,8],defaultAmountIndex:0,heading:"",buttonText:"Buy coffee",extraText:"Thanks for your generosity!"}},i={name:s,title:__("Tips","jetpack"),description:__("Get financial support from friends and followers.","jetpack"),icon:o.$f,isDefault:!1,attributes:a,scope:["inserter"],isActive:e=>e.variationName===s,keywords:[__("tips","jetpack"),__("coffee","jetpack"),__("support","jetpack"),__("buy me a coffee","jetpack")]}},75703(e,t,n){"use strict";function r(e,t,n){return e?"one-time":t?"1 month":n?"1 year":null}function o(){if("undefined"==typeof window)return{};const e=window.Jetpack_DonationsBlock?.defaultTexts;return"object"!=typeof e?{}:e}n.d(t,{OI:()=>o,fq:()=>r})},36850(e,t,n){"use strict";n.d(t,{GY:()=>o,_t:()=>r,gQ:()=>s});const r=/^\s*https?:\/\/(?:www\.)?(?:eventbrite\.[a-z.]+)\/e\/[^/]*?(\d+)\/?(?:\?[^/]*)?\s*$/i,o=/^\s*https?:\/\/(?:.+\.)?(?:eventbrite\.[a-z.]+)\/?(?:\?[^/]*)?\s*$/i,s="https://www.eventbrite.com/e/test-event-tickets-123456789"},79979(e,t,n){"use strict";n.d(t,{o:()=>l,s:()=>u});var r=n(56427),o=n(27723),s=n(24971),a=n(72660),i=n(10790);const __=o.__,_x=o._x,c=[{value:"inline",label:__("In-page Embed","jetpack"),preview:(0,i.jsx)("div",{className:"block-editor-block-preview__container",children:(0,i.jsx)("img",{src:a,alt:__("In page Eventbrite checkout example","jetpack")})})},{value:"modal",label:__("Button & Modal","jetpack")}],l=({setEditingUrl:e})=>(0,i.jsx)(r.ToolbarGroup,{children:(0,i.jsx)(r.ToolbarButton,{className:"components-toolbar__control",label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>e(!0)})}),u=({attributes:e,clientId:t,setAttributes:n})=>(0,i.jsx)(s.A,{title:_x("Embed Type","option for how the embed displays on a page, e.g. inline or as a modal","jetpack"),clientId:t,styleOptions:c,onSelectStyle:n,activeStyle:e.style,attributes:e,viewportWidth:130})},77629(e,t,n){"use strict";n.d(t,{A:()=>r});const r=[n(84109).A]},84109(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(74997),s=n(27723),a=n(13022),i=n(66087),c=n(10790);const _x=s._x,l=["text","backgroundColor","textColor","customBackgroundColor","customTextColor","borderRadius"];const u={attributes:{url:{type:"string",validator:e=>!e||e.startsWith("http")},eventId:{type:"number"},useModal:{type:"boolean"},style:{type:"string"},text:{type:"string",default:_x("Register","verb: e.g. register for an event.","jetpack")},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},borderRadius:{type:"number"}},migrate:e=>{const{className:t,style:n}=e;let r=n;r||(r=e.useModal?"modal":"inline");const s={...Object.fromEntries(Object.entries(e).filter(([e])=>"useModal"!==e&&!l.includes(e))),className:t&&t.replace("is-style-outline",""),style:r},a=(0,i.pick)(e,l);return[s,[(0,o.createBlock)("jetpack/button",{element:"a",text:a.text||_x("Register","verb: e.g. register for an event.","jetpack"),...a,uniqueId:"eventbrite-widget-id",className:t&&-1!==t.indexOf("is-style-outline")?"is-style-outline":""})]]},save:function({attributes:e}){const{eventId:t,useModal:n,url:o,style:s}=e;if(t)return n||"modal"===s?function(e){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:s,eventId:i,text:l,textColor:u,url:d}=e,p=(0,r.getColorClassName)("color",u),h=(0,r.getColorClassName)("background-color",t),m=(0,a.A)("wp-block-button__link",{"has-text-color":u||s,[p]:p,"has-background":t||o,[h]:h,"no-border-radius":0===n}),g={backgroundColor:h?void 0:o,color:p?void 0:s,borderRadius:n?n+"px":void 0};return(0,c.jsx)("div",{className:"wp-block-button",children:(0,c.jsx)(r.RichText.Content,{className:m,href:d,id:`eventbrite-widget-${i}`,rel:"noopener noreferrer",role:"button",style:g,tagName:"a",target:"_blank",value:l})})}(e):o&&(0,c.jsx)("a",{className:"eventbrite__direct-link",href:o,children:o})},isEligible:(e,t)=>("modal"===e.style||e.useModal)&&((0,i.isEmpty)(t)||Object.entries(e).some(([e,t])=>t&&l.includes(e)))}},90397(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(78218),c=n(56145),l=n(82306),u=n(36850),d=n(79979),p=n(51228),h=n(54492),m=n(87965),g=n(17158),f=(n(59357),n(10790));const __=a.__,_x=a._x,b={name:"jetpack/button",attributes:{element:"a",text:_x("Register","verb: e.g. register for an event.","jetpack"),uniqueId:"eventbrite-widget-id"}},v=(0,o.withNotices)(e=>{const{attributes:t,noticeOperations:n,onReplace:a,setAttributes:v}=e,{url:y,style:k}=t,w=(0,r.useBlockProps)(),[x,_]=(0,s.useState)(!1),[j,C]=(0,s.useState)(t.url||""),[A,S]=(0,s.useState)(!1),E=!A&&y&&!u._t.test(y),T=(0,s.useCallback)(()=>{n.removeAllNotices(),n.createErrorNotice((0,f.jsxs)(f.Fragment,{children:[__("Sorry, this content could not be embedded.","jetpack")," ",(0,f.jsx)(o.Button,{variant:"link",onClick:()=>(0,g.pG)(j,a),children:_x("Convert block to link","button label","jetpack")})]}))},[n,a,j]),N=(0,s.useCallback)(e=>{if(!e||u.gQ===e||"modal"===k)return;const t=(0,g.HE)(e);if(t){const r={eventId:t,url:e};(0,c.A)(r.url,S).then(e=>{const t=(0,i.y)(l.attributes,{...r,url:e});v(t),C(e),n.removeAllNotices()}).catch(()=>{v({eventId:void 0,url:void 0}),T()})}else T()},[k,n,T,v,C,S]);let P;return(0,s.useEffect)(()=>{N(y)},[y,N]),P=A?(0,f.jsx)(h.A,{}):x||!y||E?(0,f.jsx)(p.A,{...e,editedUrl:j,onChange:e=>C(e.target.value),onSubmit:e=>{e&&e.preventDefault(),N((0,g.pJ)(j)),_(!1)}}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.s,{...e}),(0,f.jsx)(r.BlockControls,{children:(0,f.jsx)(d.o,{setEditingUrl:_})}),"modal"===k?(0,f.jsx)(r.InnerBlocks,{template:[[b.name,b.attributes]],templateLock:"all"}):(0,f.jsx)(m.A,{...e})]}),(0,f.jsx)("div",{...w,children:P})})},34590(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(82306),a=n(36850),i=n(77629),c=n(90397),l=n(41958);(0,o.M)(s,{edit:c.A,save:l.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&(a._t.test(e.textContent)||a.GY.test(e.textContent)),transform:e=>(0,r.createBlock)("jetpack/eventbrite",{url:e.textContent.trim()})}]},deprecated:i.A})},51228(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(97999),o=n(85985),s=n(56427),a=n(27723),i=n(57273),c=n(82306),l=(n(17158),n(10790));const __=a.__,_x=a._x,u=(0,o.sh)(c),d=({className:e,noticeUI:t,editedUrl:n,onChange:o,onSubmit:a})=>{const c=(0,r.isWpcomPlatformSite)()?"http://support.wordpress.com/wordpress-editor/blocks/eventbrite-block/":"https://jetpack.com/support/jetpack-blocks/eventbrite-block/";return(0,l.jsx)("div",{className:e,children:(0,l.jsxs)(s.Placeholder,{label:__("Eventbrite Checkout","jetpack"),instructions:__("Paste a link to an Eventbrite event to embed ticket checkout.","jetpack"),icon:u,notices:t,children:[(0,l.jsxs)("form",{onSubmit:a,children:[(0,l.jsx)("input",{type:"url",value:n,className:"components-placeholder__input","aria-label":__("Eventbrite URL","jetpack"),placeholder:__("Enter an event URL to embed here…","jetpack"),onChange:o}),(0,l.jsx)(s.Button,{variant:"secondary",type:"submit",children:_x("Embed","submit button label","jetpack")})]}),(0,l.jsx)("div",{className:"components-placeholder__learn-more",children:(0,l.jsx)(i.N,{openInNewTab:!0,href:c,children:__("Learn more about Eventbrite embeds","jetpack")})})]})})}},54492(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__,a=()=>(0,s.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,s.jsx)(r.Spinner,{}),(0,s.jsx)("p",{children:__("Embedding…","jetpack")})]})},87965(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=({className:e,attributes:t})=>{const{eventId:n}=t;if(!n)return;const s=`eventbrite-widget-${n}`,a=`\n\t\t\t<script src="https://www.eventbrite.com/static/widgets/eb_widgets.js"><\/script>\n\t\t\t<style>\n\t\t\t\t/* Prevent scrollbar on the embed preview */\n\t\t\t\tbody {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\t\t/* Eventbrite embeds have a CSS height transition on loading, which causes <Sandbox>\n\t\t\t\tto not recognise the resizing. We need to disable that transition. */\n\t\t\t\t* {\n\t\t\t\t\ttransition: none !important;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<script>\n\t\t\t\twindow.EBWidgets.createWidget({\n\t\t\t\t\twidgetType: 'checkout',\n\t\t\t\t\teventId: ${n},\n\t\t\t\t\tiframeContainerId: '${s}',\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t\t<div id="${s}"></div>\n\t\t`;return(0,o.jsxs)("div",{className:e,children:[(0,o.jsx)(r.SandBox,{html:a}),(0,o.jsx)("div",{className:"block-library-embed__interactive-overlay"})]})}},41958(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s({attributes:e}){const{eventId:t,style:n,url:s}=e;if(!t)return;let a;"modal"===n?a=(0,o.jsx)(r.InnerBlocks.Content,{}):s&&(a=(0,o.jsx)("a",{className:"eventbrite__direct-link",href:s,children:s}));const i=r.useBlockProps.save();return(0,o.jsx)("div",{...i,children:a})}},17158(e,t,n){"use strict";n.d(t,{HE:()=>i,pG:()=>a,pJ:()=>c});var r=n(74997),o=n(86087),s=n(10790);function a(e,t){const n=(0,s.jsx)("a",{href:e,children:e});t((0,r.createBlock)("core/paragraph",{content:(0,o.renderToString)(n)}))}function i(e){if(!e)return null;const t=e.match(/(\d+)\/?(?:\?[^/]*)?\s*$/);return t&&t[1]?parseInt(t[1],10):null}function c(e=""){return e&&"string"==typeof e?e.trim():null}},10167(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56427),o=n(86087),s=n(27723),a=n(10790);const __=s.__;const i=(0,o.forwardRef)(function({onSubmit:e,onChange:t,value:n=""},o){return(0,a.jsxs)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:e,children:[(0,a.jsx)("input",{type:"text",className:"wp-block-jetpack-gif_input components-placeholder__input",placeholder:__("Enter search terms, e.g. cat…","jetpack"),value:n,onChange:t,ref:o,"aria-labelledby":"wp-block-jetpack-gif_search-button"}),(0,a.jsx)(r.Button,{id:"wp-block-jetpack-gif_search-button",variant:"secondary",type:"submit",children:__("Search","jetpack")})]})})},83690(e,t,n){"use strict";n.d(t,{T:()=>r});const r="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW"},89635(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(56427),s=n(10790);function a(){return(0,s.jsx)(r.InspectorControls,{children:(0,s.jsx)(o.PanelBody,{className:"components-panel__body-gif-branding",children:(0,s.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22",children:[(0,s.jsx)(o.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),(0,s.jsx)(o.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"})]})})})}},41221(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(85985),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(13022),l=n(5564),u=n(10167),d=n(89635),p=n(65465),h=n(38770),m=n(10790);const __=i.__,g=(0,r.sh)(l);const f=function({attributes:e,setAttributes:t,isSelected:n}){const{align:r,caption:i,giphyUrl:f,searchText:b,paddingTop:v}=e,[y,k]=(0,a.useState)(!1),w=(0,a.createRef)(),{isFetching:x,giphyData:_,fetchGiphyData:j}=(0,p.A)(),C=(0,o.useBlockProps)(),A=()=>{w.current.focus(),k(!1)};(0,a.useEffect)(()=>{!f&&_&&_[0]&&t((0,h.Er)(_[0]))},[f,_,t]);const S=async t=>{if(t.preventDefault(),!e.searchText||x)return;const n=await(0,h.ID)(e.searchText);n&&j(n)},E=e=>t({searchText:e.target.value});return(0,m.jsxs)("div",{...C,className:(0,c.A)(C.className,`align${r}`),children:[(0,m.jsx)(d.A,{}),f?(0,m.jsxs)("figure",{children:[n&&(0,m.jsx)(u.A,{onSubmit:S,onChange:E,value:b,ref:w}),n&&_&&_.length>1&&(0,m.jsx)("div",{className:"wp-block-jetpack-gif_thumbnails-container",children:_.map(e=>{const n={backgroundImage:`url(${e.images.downsized_still.url})`};return(0,m.jsx)("button",{className:"wp-block-jetpack-gif_thumbnail-container",onClick:n=>{n.preventDefault(),(e=>{t((0,h.Er)(e))})(e)},style:n},e.id)})}),(0,m.jsxs)("div",{className:"wp-block-jetpack-gif-wrapper",style:{paddingTop:v},children:[(0,m.jsx)("div",{className:"wp-block-jetpack-gif_cover",onClick:A,onKeyDown:A,role:"button",tabIndex:"0"}),(0,m.jsx)("iframe",{src:f,title:b})]}),(!o.RichText.isEmpty(i)||n)&&!!f&&(0,m.jsx)(o.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:y,onFocus:()=>k(!1),onChange:e=>t({caption:e}),placeholder:__("Write caption…","jetpack"),tagName:"figcaption",value:i})]}):(0,m.jsx)(s.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:g,label:l.title,instructions:__("Search for a term or paste a Giphy URL","jetpack"),children:(0,m.jsx)(u.A,{onSubmit:S,onChange:E,value:b,ref:w})})]})}},55734(e,t,n){"use strict";var r=n(94375),o=n(5564),s=n(41221);n(27453),n(88561);(0,r.M)(o,{edit:s.A,save:()=>null})},65465(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087);const o=(e=[])=>{const[t,n]=(0,r.useState)(!1),[o,s]=(0,r.useState)(e),[a,i]=(0,r.useState)("");return(0,r.useEffect)(()=>{if(!a)return;(async()=>{n(!0);const e=await fetch(a).then(e=>!!e.ok&&e).catch(()=>!1);if(e){const t=await e.json(),n=void 0!==t.data.images?[t.data]:t.data;n[0].images&&s(n)}n(!1)})()},[a]),{isFetching:t,giphyData:o,fetchGiphyData:i}}},38770(e,t,n){"use strict";n.d(t,{Er:()=>d,ID:()=>c});var r=n(56145),o=n(83690);const s=e=>`https://api.giphy.com/v1/gifs/search?q=${encodeURIComponent(e)}&api_key=${encodeURIComponent(o.T)}&limit=10`,a=e=>`https://api.giphy.com/v1/gifs/${encodeURIComponent(e)}?api_key=${encodeURIComponent(o.T)}`,i=(e="",t)=>{const n=e.split(t);return n[n.length-1]},c=(e="")=>new Promise(t=>{let n=null;if((e=e.trim()).match(/^https:\/\/gph\.is\/(?:[a-zA-Z0-9]+\/)?[a-zA-Z0-9]+$/i))(0,r.A)(e).then(r=>{r.startsWith("https://giphy.com/gifs/")?(n=i(r,"-"),t(a(n))):t(s(e))}).catch(()=>t(s(e)));else{const r=/^https?:\/\/(media\.|i\.)?giphy\.com\/(embed|gifs|media)?\/?([-\w]*)(\/giphy)?(\.gif)?$/,o=e.match(r);o&&o[3]&&(n=i(o[3],"-")),n&&t(a(n)),t(s(e))}}),l=e=>`${Math.floor(e.images.original.height/e.images.original.width*100)}%`,u=e=>e?.embed_url,d=e=>({giphyUrl:u(e),paddingTop:l(e)})},31987(e,t,n){"use strict";n.d(t,{e:()=>c,u:()=>l});var r=n(56427),o=n(27723),s=n(30178),a=n(10790);const __=o.__,i=({attributes:e,setAttributes:t})=>{const{showCover:n,showAuthor:o,showTitle:s,showRating:i,showReview:c,showTags:l}=e;return(0,a.jsxs)(r.PanelBody,{PanelBody:!0,title:__("Display Settings","jetpack"),initialOpen:!0,children:[(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show cover","jetpack"),checked:n,onChange:()=>t({showCover:!n})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show author","jetpack"),checked:o,onChange:()=>t({showAuthor:!o})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show title","jetpack"),checked:s,onChange:()=>t({showTitle:!s})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show rating","jetpack"),checked:i,onChange:()=>t({showRating:!i})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show review","jetpack"),checked:c,onChange:()=>t({showReview:!c})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show tags","jetpack"),checked:l,onChange:()=>t({showTags:!l})})]})};function c({attributes:e,setAttributes:t}){const{style:n,shelfOption:o,bookNumber:c,orderOption:l,customTitle:u,sortOption:d}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.PanelBody,{PanelBody:!0,title:__("Block Settings","jetpack"),initialOpen:!0,children:[(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Shelf","jetpack"),value:o,onChange:e=>t({shelfOption:e}),options:s.TG}),(0,a.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Title","jetpack"),value:u||s.wK,onChange:e=>t({customTitle:e})}),(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Sort by","jetpack"),value:d,onChange:e=>t({sortOption:e}),options:s.dV}),(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Order","jetpack"),value:l,onChange:e=>t({orderOption:e}),options:s.ne}),(0,a.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Number of books","jetpack"),type:"number",inputMode:"numeric",min:"1",max:"grid"===n?200:100,value:c||5,onChange:e=>t({bookNumber:e})})]}),"default"===n&&i({attributes:e,setAttributes:t})]})}function l({attributes:e,setAttributes:t}){const{style:n}=e,o=[{icon:"list-view",title:__("Default view","jetpack"),onClick:()=>t({style:"default"}),isActive:"default"===n},{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({style:"grid"}),isActive:"grid"===n}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.ToolbarButton,{label:__("Edit URL","jetpack"),icon:"edit",onClick:()=>t({goodreadsId:""})}),(0,a.jsx)(r.ToolbarGroup,{controls:o})]})}},21973(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(85985),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(24360),l=n(31987),u=n(21342),d=n(30178),p=n(10790);const __=i.__,_x=i._x,h=(0,s.withNotices)(e=>{const{attributes:t,className:n,noticeOperations:i,noticeUI:h,setAttributes:m}=e,[g,f]=(0,a.useState)(""),[b,v]=(0,a.useState)(""),[y,k]=(0,a.useState)(!1),w=(0,o.useBlockProps)(),{isFetchingData:x,goodreadsUserId:_,isError:j}=(0,u.A)(b),{goodreadsId:C,widgetId:A,link:S,style:E}=t,T=(0,a.useRef)(!1);(0,a.useEffect)(()=>{x&&k(!0),x||(k(!1),j&&(m({widgetId:void 0,goodreadsId:void 0,link:void 0}),N()),_&&!j&&m({goodreadsId:_}))},[_,x,y,j,m]),(0,a.useEffect)(()=>{if(!C)return;if(!T.current&&A&&S)return void(T.current=!0);T.current=!0;const e=Math.floor(9999999*Math.random());m({widgetId:e,id:("grid"===E?"gr_grid_widget_":"gr_custom_widget_")+e,link:(0,d._9)({attributes:{...t,widgetId:e}})})},[C,E,t.shelfOption,t.bookNumber,t.orderOption,t.customTitle,t.sortOption,t.showAuthor,t.showCover,t.showRating,t.showReview,t.showTags,t.showTitle,m]);const N=()=>{i.removeAllNotices(),i.createErrorNotice((0,p.jsx)(p.Fragment,{children:__("Sorry, this content could not be embedded.","jetpack")}))},P=e=>{e&&e.preventDefault(),v(g),k(!0)},B=()=>{const{id:e}=t,r=`\n\t\t<style> [class^=gr_custom_container_] { border: 1px solid gray; border-radius: 10px; margin: auto; padding: 0 5px 10px 5px; background-color: #fff; color: #000; width: 300px; } [class^=gr_custom_header_] { border-bottom: 1px solid gray; width: 100%; padding: 10px 0; margin: auto; text-align: center; font-size: 120%; } [class^=gr_custom_each_container_] { width: 100%; clear: both; margin: auto; overflow: auto; padding-bottom: 4px; border-bottom: 1px solid #aaa; } [class^=gr_custom_each_container_] { width: 100%; clear: both; margin-bottom: 10px; overflow: auto; padding-bottom: 4px; border-bottom: 1px solid #aaa; } [class^=gr_custom_book_container_] { overflow: hidden; height: 60px; float: left; margin-right: 6px; width: 39px; } [class^=gr_custom_author_] { font-size: 10px; } [class^=gr_custom_tags_] { font-size: 10px; color: gray; } [class^=gr_custom_rating_] { float: right; } [class^=gr_grid_book_container] { float: left; width: 98px; height: 160px; padding: 0 0; overflow: hidden; } [class^=gr_grid_book_container] img { height: 100%; width: 100%; } a { text-decoration: none; } a:hover { text-decoration: underline; } img { max-width: 100%; }</style>\n\t\t<script src="${S}"><\/script>\n \t<div id="${e}"></div>\n \t`;return(0,p.jsxs)("div",{className:n,children:[(0,p.jsx)(s.SandBox,{title:"Goodreads",html:r}),(0,p.jsx)("div",{className:"block-library-embed__interactive-overlay"})]})};let I;return I=y?(0,p.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,p.jsx)(s.Spinner,{}),(0,p.jsx)("p",{children:__("Embedding…","jetpack")})]}):t.goodreadsId?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(o.InspectorControls,{children:(0,p.jsx)(l.e,{attributes:t,setAttributes:m})}),(0,p.jsx)(o.BlockControls,{children:(0,p.jsx)(l.u,{attributes:t,setAttributes:m})}),B()]}):(0,p.jsx)("div",{className:n,children:(0,p.jsx)(s.Placeholder,{label:__("Goodreads","jetpack"),instructions:__("Paste a link to a Goodreads profile.","jetpack"),icon:(0,r.sh)(c),notices:h,children:(0,p.jsxs)("form",{onSubmit:P,children:[(0,p.jsx)("input",{type:"url",value:g,className:"components-placeholder__input","aria-label":__("Goodreads profile URL","jetpack"),placeholder:__("Enter a Goodreads profile URL to embed here…","jetpack"),onChange:e=>f(e.target.value)}),(0,p.jsx)(s.Button,{variant:"secondary",type:"submit",children:_x("Embed","submit button label","jetpack")})]})})}),(0,p.jsx)("div",{...w,children:I})})},80838(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(24360),a=n(21973),i=n(59982);(0,o.M)(s,{edit:a.A,save:i.A,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"wpcom-goodreads"===e,transform:({instance:e})=>(0,r.createBlock)("jetpack/goodreads",{customTitle:e.raw.title,goodreadsId:parseInt(e.raw.user_id),shelfOption:e.raw.shelf,showRating:!1,widgetId:Math.floor(9999999*Math.random())})}]}})},21342(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(1455),o=n.n(r),s=n(86087),a=n(56145);function i(e){const[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[c,l]=(0,s.useState)(!1),[u,d]=(0,s.useState)(!1),p=e=>{const t=e.match(/\/(user|author)\/show\/(\d+)/);return!!t&&parseInt(t[2])};return(0,s.useEffect)(()=>{l(!1),d(!1),e.length&&!/^(https?:\/\/)?(www\.)?goodreads\.com\/.*/.test(e)&&l(!0);const t=p(e);!c&&e.length&&(i(!0),t?(async t=>{if(/\/author\//.test(e)){const e=`/wpcom/v2/goodreads/user-id?id=${t}`;await o()({path:e,method:"GET"}).then(e=>{n(e)}).catch(()=>{d(!0)}).finally(()=>{i(!1)})}else(0,a.A)(e).then(e=>{e.endsWith("/author")&&d(!0),n(t)}).catch(()=>{d(!0)}).finally(()=>{i(!1)})})(t):(async e=>{(0,a.A)(e).then(e=>{const t=p(e);t?n(t):d(!0)}).catch(()=>{d(!0)}).finally(()=>{i(!1)})})(e))},[e,c]),{isFetchingData:r,goodreadsUserId:t,isError:c||u}}},59982(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},30178(e,t,n){"use strict";n.d(t,{TG:()=>s,_9:()=>c,dV:()=>a,ne:()=>i,wK:()=>o});var r=n(27723);const __=r.__,_x=r._x,o=__("My Bookshelf","jetpack"),s=[{label:_x("Read","perfect participle - eg. I read a book yesterday.","jetpack"),value:"read"},{label:__("Currently reading","jetpack"),value:"currently-reading"},{label:_x("To read","future participle - eg. I have this to read tomorrow.","jetpack"),value:"to-read"}],a=[{label:"ASIN",value:"asin"},{label:_x("Author","noun","jetpack"),value:"author"},{label:__("Average rating","jetpack"),value:"avg_rating"},{label:_x("Comments","noun","jetpack"),value:"comments"},{label:_x("Cover","noun - ie. book cover","jetpack"),value:"cover"},{label:__("Date added","jetpack"),value:"date_added"},{label:__("Date published","jetpack"),value:"date_pub"},{label:__("Date read","jetpack"),value:"date_read"},{label:__("Date started","jetpack"),value:"date_started"},{label:__("Dated updated","jetpack"),value:"date_updated"},{label:_x("Format","noun","jetpack"),value:"format"},{label:"ISBN",value:"isbn"},{label:"ISBN-13",value:"isbn13"},{label:_x("Notes","noun","jetpack"),value:"notes"},{label:__("Number of pages","jetpack"),value:"num_pages"},{label:__("Number of ratings","jetpack"),value:"num_ratings"},{label:_x("Owned","possessive - eg. I owned this book for a year","jetpack"),value:"owned"},{label:_x("Position","noun","jetpack"),value:"position"},{label:__("Random","jetpack","jetpack"),value:"random"},{label:_x("Rating","noun","jetpack"),value:"rating"},{label:__("Read count","jetpack"),value:"read_count"},{label:_x("Review","noun","jetpack"),value:"review"},{label:_x("Shelves","noun","jetpack"),value:"shelves"},{label:_x("Title","noun","jetpack"),value:"title"},{label:_x("Votes","noun","jetpack"),value:"votes"},{label:__("Year published","jetpack"),value:"year_pub"}],i=[{label:__("Ascending","jetpack"),value:"a"},{label:__("Descending","jetpack"),value:"d"}];function c({attributes:e}){const{bookNumber:t,customTitle:n=o,goodreadsId:r,orderOption:s,shelfOption:a,showAuthor:i,showCover:c,showRating:l,showReview:u,showTags:d,showTitle:p,sortOption:h,style:m,widgetId:g}=e;if(!r)return;const f=(n||o).split("/").map(e=>encodeURIComponent(e)).join("/");let b=`https://www.goodreads.com/review/custom_widget/${r}.${f}?num_books=${t}&order=${s}&shelf=${a}&show_author=${i?1:0}&show_cover=${c?1:0}&show_rating=${l?1:0}&show_review=${u?1:0}&show_tags=${d?1:0}&show_title=${p?1:0}&sort=${h}&widget_id=${g}`;return"grid"===m&&(b=`https://www.goodreads.com/review/grid_widget/${r}.${f}?cover_size=medium&num_books=${t}&order=${s}&shelf=${a}&sort=${h}&widget_id=${g}`),b}},55777(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__,_x=o._x,a=e=>{const{className:t,embedValue:n,onChange:o,onSubmit:a}=e;return(0,s.jsx)(r.PanelBody,{title:__("Calendar settings","jetpack"),initialOpen:!1,children:(0,s.jsxs)("form",{onSubmit:a,className:t,children:[(0,s.jsx)("textarea",{type:"text",value:n,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:o}),(0,s.jsx)(r.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})]})})}},50259(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(97999),o=n(85985),s=n(94715),a=n(74997),i=n(56427),c=n(29491),l=n(86087),u=n(27723),d=n(57273),p=n(26873),h=n(76862),m=n(55777),g=n(23972),f=n(10790);const __=u.__,_x=u._x,b=(0,o.sh)(h);const v=(0,c.compose)(i.withNotices,(0,p.withViewportMatch)({isMobile:"< small"}))(function(e){const{attributes:{url:t,height:n},isMobile:o,isSelected:c,name:u,noticeOperations:p,noticeUI:h,setAttributes:v}=e,y=(0,s.useBlockProps)(),[k,w]=(0,l.useState)(t||""),[x,_]=(0,l.useState)(!1),[j,C]=(0,l.useState)(!1);(0,l.useEffect)(()=>{!c&&j&&C(!1)},[c,j]);const A=()=>{C(!0)},S=e=>{e&&e.preventDefault();const t=(0,g.tW)(k.trim());if(!g._t.test(t.url))return p.removeAllNotices(),void p.createErrorNotice(__("Your calendar couldn't be embedded. Please double check your URL or Embed Code. Please note, you need to use the 'Public URL' or 'Embed Code', the 'Shareable Link' will not work.","jetpack"));v(t),_(!1),p.removeAllNotices()},E=(0,a.getBlockDefaultClassName)(u),T=`<iframe src="${t}" style="border:0" scrolling="no" frameborder="0" height="${o?"300":n}"></iframe>`,N=(0,f.jsx)(d.N,{openInNewTab:!0,href:"https://en.support.wordpress.com/google-calendar/",children:__("Enable Permissions for the calendar you want to share","jetpack")}),P=(0,f.jsx)(s.InspectorControls,{children:(0,f.jsx)(m.A,{className:`${E}-embed-form-sidebar`,embedValue:k,onChange:e=>w(e.target.value),onSubmit:S})});let B;if(x||!t){const e=(0,r.isWpcomPlatformSite)()?"https://en.support.wordpress.com/wordpress-editor/blocks/google-calendar/":"https://jetpack.com/support/jetpack-blocks/google-calendar/";B=(0,f.jsxs)(f.Fragment,{children:[P,(0,f.jsxs)(i.Placeholder,{label:__("Google Calendar","jetpack"),icon:b,notices:h,children:[(0,f.jsxs)("ol",{className:`${E}-placeholder-instructions`,children:[(0,f.jsx)("li",{children:N}),(0,f.jsx)("li",{children:__("Paste the embed code you copied from your Google Calendar below","jetpack")})]}),(I=`${E}-embed-form-editor`,(0,f.jsxs)("form",{onSubmit:S,className:I,children:[(0,f.jsx)("textarea",{type:"text",value:k,className:"components-placeholder__input","aria-label":__("Google Calendar URL or iframe","jetpack"),placeholder:__("Enter URL or iframe to embed here…","jetpack"),onChange:e=>w(e.target.value)}),(0,f.jsx)(i.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})]})),(0,f.jsx)("div",{className:`${E}-placeholder-links`,children:(0,f.jsx)(d.N,{openInNewTab:!0,href:e,children:__("Learn more","jetpack")})})]})]})}else B=(0,f.jsxs)(f.Fragment,{children:[P,(0,f.jsxs)("div",{children:[(0,f.jsx)(i.SandBox,{html:T,onFocus:A}),!j&&(0,f.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:A})]})]});var I;return(0,f.jsx)("div",{...y,children:B})})},29280(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(76862),a=n(50259),i=n(41700),c=n(23972);n(14647);(0,o.M)(s,{edit:a.A,save:i.A,transforms:{from:[{type:"shortcode",tag:"googleapps",isMatch:function(e){return"calendar"===e.named.domain},attributes:{url:{type:"string",shortcode:({named:{domain:e,dir:t,query:n}})=>`https://${e}.google.com/${t}?${n}`}}},{type:"raw",isMatch:e=>"P"===e.nodeName&&c._t.test(e.textContent),transform:e=>(0,r.createBlock)("jetpack/google-calendar",{url:e.textContent.trim()})},{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&c.fF.test(e.innerHTML),transform:e=>{const{url:t,height:n}=(0,c.HW)(e.innerHTML.trim());return(0,r.createBlock)("jetpack/google-calendar",{url:t,height:n})}}]}})},41700(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=({attributes:{url:e}})=>{const t=r.useBlockProps.save();return(0,o.jsx)("a",{...t,href:e,children:e})};n.dn(s)},23972(e,t,n){"use strict";n.d(t,{HW:()=>l,_t:()=>o,fF:()=>s,tW:()=>u});const r="https?://calendar\\.google\\.com/calendar",o=new RegExp(`^${r}`,"i"),s=new RegExp(`<iframe((?:\\s+\\w+=(['"]).*?\\2)*)\\s+src=(["'])(${r}.*?)\\3((?:\\s+\\w+=(['"]).*?\\6)*)`,"i"),a=new RegExp(`${r}\\?cid=([-A-Za-z0-9+/]+={0,3})`,"i"),i=/\s+(\w+)=(["'])(.*?)\2/gi;function c(e){const t=a.exec(e);if(t)return"https://calendar.google.com/calendar/embed?src="+encodeURIComponent(atob(t[1]))}function l(e){const t=s.exec(e);if(!t)return;const n={};return t.forEach((e,t)=>{if(0===t)return;if(o.test(e))return void(n.url=e);let r;for(;null!==(r=i.exec(e));)n[r[1]]=r[3]}),{url:n.url,width:n.width,height:n.height}}function u(e){return s.test(e)?l(e):a.test(e)?{url:c(e)}:{url:e}}},21466(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(2743),c=n(60288),l=n(10790);const __=a.__,_x=a._x,u=c.A?.find(e=>"jetpack/google-docs"===e.name),d=c.A?.find(e=>"jetpack/google-sheets"===e.name),p=c.A?.find(e=>"jetpack/google-slides"===e.name),h={type:"document",title:u?.title,icon:u.icon,patterns:[/^(http|https):\/\/(docs\.google.com)\/document\/d\/([A-Za-z0-9_-]+).*?$/i]},m={type:"spreadsheets",title:d?.title,icon:d.icon,patterns:[/^(http|https):\/\/(docs\.google.com)\/spreadsheets\/d\/([A-Za-z0-9_-]+).*?$/i]},g={type:"presentation",title:p?.title,icon:p.icon,patterns:[/^(http|https):\/\/(docs\.google.com)\/presentation\/d\/([A-Za-z0-9_-]+).*?$/i]},f=e=>{const{attributes:{aspectRatio:t},attributes:{variation:n},attributes:{url:a},setAttributes:c}=e;let u="",d="",p=[],f="";switch((0,s.useEffect)(()=>{n||c({variation:(()=>{switch(a.match(/^(http|https):\/\/(docs\.google\.com)\/(.*)\/d\//)[3]){case"document":return"google-docs";case"spreadsheets":return"google-sheets";case"presentation":return"google-slides"}return""})()})},[n,a,c]),n.replace("jetpack/","")){case"google-docs":u=h.icon,d=h.title,p=h.patterns,f=h.type;break;case"google-sheets":u=m.icon,d=m.title,p=m.patterns,f=m.type;break;case"google-slides":u=g.icon,d=g.title,p=g.patterns,f=g.type}const b=[ | |
| 41 | 71 | // translators: default aspect ratio for the embedded Google document. |
| 42 | 72 | {label:__("Default","jetpack"),value:""}, |
| 43 | 73 | // translators: aspect ratio for the embedded Google document. |
| 44 | 74 | {label:__("100% - Show the whole document","jetpack"),value:"ar-100"}, |
| 45 | 75 | // translators: aspect ratio for the embedded Google document. |
| 46 | -{label:__("50% - Show half of the document","jetpack"),value:"ar-50"}];return(0,s.createElement)(l.Fragment,null,(0,s.createElement)(l.Fragment,null,(0,s.createElement)(u.Z,a()({icon:d.src,instructions:[__("Copy and paste your document link below.","jetpack"),__("If your document is private, only readers logged into a Google account with shared access to the document may view it.","jetpack")].join(" "),label:p,patterns:m,placeholder:_x("Enter the link here…","Embed block placeholder","jetpack"),mapUrl:()=>{if([]===m[0]||""===g)return r;const e=r.match(m[0]);return null===e||void 0===e[1]||void 0===e[2]||void 0===e[3]?r:`${e[1]}://${e[2]}/${g}/d/${e[3]}/preview`},mismatchErrorMessage:__("The document couldn’t be embedded. To embed a document, use the link in your browser address bar when editing the document.","jetpack"),checkGoogleDocVisibility:!0},e))),(0,s.createElement)(l.Fragment,null,(0,s.createElement)(o.InspectorControls,null,(0,s.createElement)(i.PanelBody,null,(0,s.createElement)("p",null,__("Select a different aspect-ratio to show more (or less) of your embedded document.","jetpack")),(0,s.createElement)(i.SelectControl,{label:__("Aspect Ratio","jetpack"),value:t,options:f,onChange:e=>c({aspectRatio:e})})))))}},25070:(e,t,n)=>{"use strict";var r=n(31985),a=n(1597),s=n(79648),o=n(49552),i=n(366),l=n(96276);(0,r.S)(a,{edit:s.Z,save:o.Z,transforms:(0,i.Z)(a.name),variations:l.Z})},37760:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(65736),o=n(65235),i=n.n(o);const _x=s._x,l=({className:e,icon:t,instructions:n,label:s,notices:o,url:l,onSubmit:c,placeholder:u,updateUrl:d})=>(0,r.createElement)("div",{className:i()("wp-block-jetpack-google-docs-embed-editmode",e)},(0,r.createElement)(a.Placeholder,{icon:t,label:s,instructions:n,notices:o},(0,r.createElement)("form",{onSubmit:c},(0,r.createElement)("input",{type:"url",value:l||"",className:"components-placeholder__input",placeholder:u,onChange:e=>d(e.target.value)}),(0,r.createElement)(a.Button,{variant:"primary",type:"submit"},_x("Embed","button label","jetpack")))))},30055:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51806),a=n(86989),s=n.n(a),o=n(52175),i=n(4981),l=n(55609),c=n(94333),u=n(69307),d=n(65736),p=n(71063),m=n(37760),g=n(18100);const __=d.__,_x=d._x,A=({children:e,mapUrl:t,url:n,className:a,interactive:o,toggleInteractive:i,noticeUI:l=null,noticeOperations:c={},checkGoogleDocVisibility:d=!1})=>{if((0,u.useEffect)((()=>{d&&s()({path:`/wpcom/v2/checkGoogleDocVisibility?url=${n}`}).catch((()=>{c.removeAllNotices(),c.createNotice({status:"warning",content:__("This document is private. Only readers logged into a Google account that the document is shared with can view it.","jetpack")})}))}),[n,d,c]),e)return e;let p=!1;return l&&(p=!0),(0,r.createElement)(r.Fragment,null,l,(0,r.createElement)(g.Z,{url:t(n),className:a,interactive:o,toggleInteractive:i,isPrivateURL:p}))},h=(0,c.compose)(l.withNotices)((e=>{const{attributes:t,className:n,isSelected:a,setAttributes:s,icon:c="superhero-alt",instructions:g=__("Paste a link to the content you want to display.","jetpack"),forceEditing:h=!1,mismatchErrorMessage:E=__("It does not look like an embeddable URL.","jetpack"),label:f,mapUrl:b=(e=>e),noticeOperations:C,noticeUI:v,patterns:k,placeholder:B=__("Enter URL to embed here…","jetpack"),children:y,onSubmitUrl:w=(()=>{}),checkGoogleDocVisibility:_=!1}=e,{url:I}=t,[j,x]=(0,u.useState)(!1),[S,Q]=(0,u.useState)(!1),[N,P]=(0,u.useState)(I);h&&!j&&x(!0);(0,u.useEffect)((()=>{!a&&S&&Q(!1)}),[a]);const T=(0,u.useRef)(null),R=(0,o.useBlockProps)({className:"wp-block-jetpack-google-docs-embed",ref:T}),{title:Z}=(0,i.getBlockType)(e.name),L=(0,d.sprintf)(/* translators: %s is replaced with the name of the embed provider */ | |
| 47 | -_x("%s URL","placeholder label","jetpack"),Z);return(0,r.createElement)("div",R,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(l.ToolbarGroup,null,!j&&(0,r.createElement)(l.ToolbarButton,{icon:p.Z,label:__("Edit URL","jetpack"),isActive:j,onClick:()=>{C.removeAllNotices(),x(!j)}}))),j||!I?(0,r.createElement)(m.Z,{className:n,icon:c,instructions:g,label:f||L,url:N,notices:v,placeholder:B,onSubmit:e=>{if(e&&e.preventDefault(),!k[0].test(N))return C.removeAllNotices(),void C.createErrorNotice(E);C.removeAllNotices(),x(!1),s({url:N}),w(N)},updateUrl:P}):(0,r.createElement)(A,{children:y,mapUrl:b,url:N,className:n,interactive:S,toggleInteractive:Q,noticeUI:v,noticeOperations:C,checkGoogleDocVisibility:_}))}))},18100:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,o=e=>{const{allowFullScreen:t=!0,isPrivateURL:n=!1,interactive:s,toggleInteractive:o,title:i=__("Embed URL","jetpack"),url:l}=e;return(0,r.createElement)("figure",null,n?(0,r.createElement)("div",{className:"wp-block-jetpack-google-docs-embed__wrapper wp-block-jetpack-google-docs-embed__wrapper--error"},(0,r.createElement)("p",{className:"wp-block-jetpack-google-docs-embed__error-msg"},__("This Google Document is private.","jetpack"),(0,r.createElement)("br",null),(0,r.createElement)("br",null),(0,r.createElement)(a.ExternalLink,{href:l},__("Click here to open this document.","jetpack")))):(0,r.createElement)("div",{className:"wp-block-jetpack-google-docs-embed__wrapper"},(0,r.createElement)("iframe",{src:l,allowFullScreen:t,title:i,height:"450"})),!s&&(0,r.createElement)("div",{className:"wp-block-jetpack-google-docs-embed__interactive-overlay",onMouseUp:()=>o(!0)}))}},49552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);const a=e=>{const{attributes:t}=e;return(0,r.createElement)("figure",null,(0,r.createElement)("div",{className:"embed__wrapper"},`\n${t.url}\n`))}},366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(4981),s=n(69307);const o=e=>{const t=[/^(http|https):\/\/(docs\.google.com)\/(spreadsheets|document|presentation)\/d\/([A-Za-z0-9_-]+).*?$/i];return{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&t[0].test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:t=>(0,a.createBlock)(e,{url:t.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],transform:({url:e})=>{const t=(0,r.createElement)("a",{href:e},e);return(0,a.createBlock)("core/paragraph",{content:(0,s.renderToString)(t)})}}]}}},96276:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(13419),a=n(65736);const __=a.__,s=[{name:"jetpack/google-docs",isDefault:!0,title:__("Google Docs","jetpack"),description:__("Embed a Google Document.","jetpack"),icon:"<svg viewBox='0 0 64 88' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z' /><path fill='#FDFFFF' d='M42,0l22,22H42V0z' /><path fill='#FDFFFF' d='M50,39H14v-5h36V39z M50,46H14v5h36V46z M40,58H14v5h26V58z' /></svg>",keywords:[__("document","jetpack"),__("gsuite","jetpack"),__("doc","jetpack")],attributes:{variation:"jetpack/google-docs"},isActive:["variation"]},{name:"jetpack/google-sheets",isDefault:!0,title:__("Google Sheets","jetpack"),description:__("Embed a Google Sheet.","jetpack"),icon:"<svg viewBox='0 0 64 88' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z' /><path fill='#FDFFFF' d='M42,0l22,22H42V0z' /><path fill='#FDFFFF' d='M12,34.5v28h40v-28H12z M17,39.5h12.5V46H17V39.5z M17,51h12.5v6.5H17V51z M47,57.5H34.5V51H47V57.5z M47,46 H34.5v-6.5H47V46z' /></svg>",keywords:[__("sheet","jetpack"),__("spreadsheet","jetpack")],attributes:{variation:"jetpack/google-sheets"},isActive:["variation"]},{name:"jetpack/google-slides",isDefault:!0,title:__("Google Slides","jetpack"),description:__("Embed a Google Slides presentation.","jetpack"),icon:"<svg viewBox='0 0 64 88' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z' /><path fill='#FDFFFF' d='M42,0l22,22H42V0z' /><path fill='#FDFFFF' d='M12,34.5v28h40v-28H12z M47,57.5H17v-18h30V57.5z' /></svg>",keywords:[__("slide","jetpack"),__("presentation","jetpack"),__("deck","jetpack")],attributes:{variation:"jetpack/google-slides"},isActive:["variation"]}].map((e=>({...e,icon:(0,r.lt)(e)})))},76579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__;function o({attributes:e,setAttributes:t}){const{orientation:n}=e;return(0,r.createElement)(a.PanelBody,{title:__("Orientation","jetpack")},(0,r.createElement)(a.RadioControl,{selected:n||"horizontal",options:[{label:__("Side by side","jetpack"),value:"horizontal"},{label:__("Above and below","jetpack"),value:"vertical"}],onChange:e=>t({orientation:e})}))}},63157:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(55609),l=n(94333),c=n(69307),u=n(65736),d=n(13369),p=n(76579),m=n(86504),g=n(37879);n(8503);const __=u.__,A=({attributes:e,clientId:t,isSelected:n,setAttributes:r})=>{const{align:u,imageBefore:A,imageAfter:h,caption:E,orientation:f}=e;let b=null,C=null;const v=(0,o.useBlockProps)(),k=(0,c.useRef)();l.useResizeObserver&&([b,C]=(0,l.useResizeObserver)(),(0,g.Z)((e=>{e>0&&"undefined"!=typeof juxtapose&&juxtapose.sliders&&juxtapose.sliders.forEach((n=>{n.wrapper.parentElement.id===t&&n.optimizeWrapper(e)}))}),200,C.width));const B=A&&A.url&&h&&h.url?"image-compare__comparison juxtapose":"image-compare__placeholder";return(0,c.useLayoutEffect)((()=>{A.url&&h.url&&"undefined"!=typeof juxtapose&&juxtapose.makeSlider(k?.current)}),[u,A,h,f]),(0,s.createElement)("figure",a()({},v,{id:t}),b,(0,s.createElement)(o.InspectorControls,{key:"controls"},(0,s.createElement)(p.Z,{attributes:e,setAttributes:r})),(0,s.createElement)("div",{ref:k,className:B,"data-mode":f||"horizontal"},(0,s.createElement)(i.Placeholder,{label:null},(0,s.createElement)("div",{className:"image-compare__image-before"},(0,s.createElement)(m.Z,{image:{id:A.id,url:A.url,alt:A.alt},placeHolderLabel:__("Image before","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){const{src:t}=(0,d.z)(e),{alt:n,id:a,media_details:s}=e,o=s?.width??e.width,i=s?.height??e.height;r({imageBefore:{id:a,url:t||e.url,alt:n,width:o,height:i}})}}})),(0,s.createElement)("div",{className:"image-compare__image-after"},(0,s.createElement)(m.Z,{image:{id:h.id,url:h.url,alt:h.alt},placeHolderLabel:__("Image after","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){const{src:t}=(0,d.z)(e),{alt:n,id:a,media_details:s}=e,o=s?.width??e.width,i=s?.height??e.height;r({imageAfter:{id:a,url:t||e.url,alt:n,width:o,height:i}})}}})))),(!o.RichText.isEmpty(E)||n&&A.url&&h.url)&&(0,s.createElement)(o.RichText,{tagName:"figcaption",placeholder:__("Write caption","jetpack"),value:E,onChange:e=>r({caption:e}),inlineToolbar:!0}))}},93052:(e,t,n)=>{"use strict";var r=n(65736),a=n(31985),s=n(43781),o=n(63157),i=n(90767),l=n(58632),c=n(25250);const __=r.__;(0,a.S)(s,{edit:o.Z,save:c.Z,example:{attributes:{imageBefore:{id:1,url:l,alt:__("Before","jetpack")},imageAfter:{id:2,url:i,alt:__("After","jetpack")},caption:__("Example image","jetpack")}}})},86504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(55609),o=n(94333),i=n(69307);const l=(0,o.compose)([s.withNotices])((e=>{const{image:t,noticeOperations:n,noticeUI:s,onChange:o,placeHolderLabel:l}=e,c=(0,r.createElement)("img",{id:t.id,src:t.url,alt:t.alt}),u=(0,r.createElement)(i.Fragment,null,(0,r.createElement)(a.MediaPlaceholder,{labels:{title:l},accept:"image/*",allowedTypes:["image"],onSelect:o,onError:e=>n.createErrorNotice(e),notices:s}));return t&&t.url?c:u}))},25250:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({attributes:e})=>{const t=a.useBlockProps.save(),{imageBefore:n,imageAfter:s,caption:o,orientation:i}=e;return(0,r.createElement)("figure",t,(0,r.createElement)("div",{className:"juxtapose","data-mode":i||"horizontal"},(0,r.createElement)("img",{id:n.id,src:n.url,alt:n.alt,width:n.width,height:n.height,className:"image-compare__image-before"}),(0,r.createElement)("img",{id:s.id,src:s.url,alt:s.alt,width:s.width,height:s.height,className:"image-compare__image-after"})),!a.RichText.isEmpty(o)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:o}))}},37879:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(69307);const a=(e,t,n)=>{(0,r.useEffect)((()=>{const r=setTimeout((()=>e(n)),t);return()=>clearTimeout(r)}),[n])}},8503:(e,t,n)=>{"use strict";var r=n(47701);n.n(r)()((function(){const e={sliders:[],OPTIMIZATION_ACCEPTED:1,OPTIMIZATION_WAS_CONSTRAINED:2};function t(e,t){const n=this;this.image=new Image,this.loaded=!1,this.image.onload=function(){n.loaded=!0,t._onLoaded()},this.image.src=e.src,this.image.alt=e.alt||"",this.label=e.label||!1}function n(e,t){e&&e.classList.add(t)}function r(e,t){e&&e.classList.remove(t)}function a(e){return{width:parseInt(window.getComputedStyle(e).width,10),height:parseInt(window.getComputedStyle(e).height,10)}}function s(e,t){let n;if("string"==typeof t||"number"==typeof t)n=parseInt(t,10);else{const r=e.getBoundingClientRect(),a={top:r.top+document.body.scrollTop+document.documentElement.scrollTop,left:r.left+document.body.scrollLeft+document.documentElement.scrollLeft},s=e.offsetWidth;n=(function(e){let t;return t=e.pageX?e.pageX:e.touches?e.touches[0].pageX:e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,t}(t)-a.left)/s*100}return n}function o(e,t,n){let r;if("string"==typeof t||"number"==typeof t)r=parseInt(t,10);else{const a=e.getBoundingClientRect(),s={top:a.top+n.body.scrollTop+n.documentElement.scrollTop,left:a.left+n.body.scrollLeft+n.documentElement.scrollLeft},o=e.offsetHeight;r=(function(e){let t;return t=e.pageY?e.pageY:e.touches?e.touches[0].pageY:e.clientY+document.body.scrollTop+document.documentElement.scrollTop,t}(t)-s.top)/o*100}return r}const i={animate:!0,showLabels:!0,makeResponsive:!0};function l(e,n,r){let a;for(a in this.element=e,this.options={animate:!0,showLabels:!0,makeResponsive:!0,startingPosition:"50%",mode:"horizontal",callback:null},this.options)a in r&&(this.options[a]=a in i?"string"!=typeof(s=r[a])?Boolean(s):!("false"===s||""===s):r[a]);var s;2===n.length&&(this.imgBefore=new t(n[0],this),this.imgAfter=new t(n[1],this))}l.prototype={updateSlider:function(e,t){let a;a="vertical"===this.options.mode?o(this.slider,e,this.sliderParentDocument):s(this.slider,e),a=a.toFixed(2)+"%";const i=parseFloat(a),l=100-i+"%";i>0&&i<100&&(r(this.handle,"transition"),r(this.rightImage,"transition"),r(this.leftImage,"transition"),this.options.animate&&t&&(n(this.handle,"transition"),n(this.leftImage,"transition"),n(this.rightImage,"transition")),"vertical"===this.options.mode?(this.handle.style.top=a,this.leftImage.style.height=a,this.rightImage.style.height=l):(this.handle.style.left=a,this.leftImage.style.width=a,this.rightImage.style.width=l),this.sliderPosition=a)},getPosition:function(){return this.sliderPosition},displayLabel:function(e,t){const n=document.createElement("div");n.className="jx-label",n.setAttribute("tabindex",0),function(e,t){document.body.textContent?e.textContent=t:e.innerText=t}(n,t),e.appendChild(n)},setStartingPosition:function(e){this.options.startingPosition=e},calculateDims:function(e,t){const n=(r=this.imgBefore.image,{width:r.naturalWidth,height:r.naturalHeight,aspect:function(){return this.width/this.height}}).aspect();var r;return e?t=e/n:t&&(e=t*n),{width:e,height:t,ratio:n}},responsivizeIframe:function(e){return e.height<window.innerHeight?e.ratio>=1&&(this.wrapper.style.paddingTop=parseInt((window.innerHeight-e.height)/2)+"px"):e.height>window.innerHeight&&(e=this.calculateDims(0,window.innerHeight),this.wrapper.style.paddingLeft=parseInt((window.innerWidth-e.width)/2)+"px"),e},setWrapperDimensions:function(){const e=a(this.wrapper.parentNode).width,t=a(this.wrapper.parentNode).height;let n=this.calculateDims(e,t);window.location===window.parent.location||this.options.makeResponsive||(n=this.responsivizeIframe(n)),this.wrapper.style.height=parseInt(n.height)+"px",this.wrapper.style.width=parseInt(n.width)+"px"},optimizeWrapper:function(t){let n=e.OPTIMIZATION_ACCEPTED;return this.imgBefore.image.naturalWidth>=t&&this.imgAfter.image.naturalWidth>=t?(this.wrapper.style.width=t+"px",n=e.OPTIMIZATION_WAS_CONSTRAINED):this.imgAfter.image.naturalWidth<t?this.wrapper.style.width=this.imgAfter.image.naturalWidth+"px":this.wrapper.style.width=this.imgBefore.image.naturalWidth+"px",this.setWrapperDimensions(),n},_onLoaded:function(){if(this.imgBefore&&!0===this.imgBefore.loaded&&this.imgAfter&&!0===this.imgAfter.loaded){if(this.wrapper=this.element,!this.wrapper||this.wrapper.querySelector(".jx-slider"))return;n(this.wrapper,"juxtapose"),this.wrapper.style.width=this.imgBefore.image.naturalWidth,this.setWrapperDimensions(),this.slider=document.createElement("div"),this.slider.className="jx-slider",this.wrapper.appendChild(this.slider),this.sliderParentDocument=this.wrapper.ownerDocument,"horizontal"!==this.options.mode&&n(this.slider,this.options.mode),this.handle=document.createElement("div"),this.handle.className="jx-handle",this.rightImage=document.createElement("div"),this.rightImage.className="jx-image jx-right",this.rightImage.appendChild(this.imgAfter.image),this.leftImage=document.createElement("div"),this.leftImage.className="jx-image jx-left",this.leftImage.appendChild(this.imgBefore.image),this.slider.appendChild(this.handle),this.slider.appendChild(this.leftImage),this.slider.appendChild(this.rightImage),this.leftArrow=document.createElement("div"),this.rightArrow=document.createElement("div"),this.control=document.createElement("div"),this.controller=document.createElement("div"),this.leftArrow.className="jx-arrow jx-left",this.rightArrow.className="jx-arrow jx-right",this.control.className="jx-control",this.controller.className="jx-controller",this.controller.setAttribute("tabindex",0),this.controller.setAttribute("role","slider"),this.controller.setAttribute("aria-valuenow",50),this.controller.setAttribute("aria-valuemin",0),this.controller.setAttribute("aria-valuemax",100),this.controller.setAttribute("aria-label",window.imageCompareHandle?.msg||"Slide to compare images"),this.handle.appendChild(this.leftArrow),this.handle.appendChild(this.control),this.handle.appendChild(this.rightArrow),this.control.appendChild(this.controller),this._init()}},_init:function(){this.updateSlider(this.options.startingPosition,!1),!0===this.options.showLabels&&(this.imgBefore.label&&this.displayLabel(this.leftImage,this.imgBefore.label),this.imgAfter.label&&this.displayLabel(this.rightImage,this.imgAfter.label));const t=this;window.addEventListener("resize",(function(){t.setWrapperDimensions()})),this.slider.addEventListener("mousedown",(function(e){e.preventDefault(),t.updateSlider(e,!0);let n=!0;this.addEventListener("mousemove",(function(e){e.preventDefault(),n&&t.updateSlider(e,!1)})),this.addEventListener("mouseup",(function(e){e.preventDefault(),e.stopPropagation(),n=!1}))})),this.slider.addEventListener("touchstart",(function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!0),this.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!1)}))})),this.handle.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;let r=parseFloat(this.style.left);if(37===n){r-=1;const e=parseFloat(this.style.left)-1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}if(39===n){r+=1;const e=parseFloat(this.style.left)+1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}})),this.leftImage.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("90%",!0),t.controller.setAttribute("aria-valuenow",91))})),this.rightImage.addEventListener("keydown",(function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("10%",!0),t.controller.setAttribute("aria-valuenow",10))})),e.sliders.push(this),this.options.callback&&"function"==typeof this.options.callback&&this.options.callback(this)}},e.makeSlider=function(t,r){void 0===r&&(r=e.sliders.length);const a=t,s=a.querySelectorAll("img");if(s.length<2)return;const o={};a.getAttribute("data-animate")&&(o.animate=a.getAttribute("data-animate")),a.getAttribute("data-showlabels")&&(o.showLabels=a.getAttribute("data-showlabels")),a.getAttribute("data-startingposition")&&(o.startingPosition=a.getAttribute("data-startingposition")),a.getAttribute("data-mode")&&(o.mode=a.getAttribute("data-mode")),a.getAttribute("data-makeresponsive")&&(o.mode=a.getAttribute("data-makeresponsive"));return n(t,"juxtapose-"+r),a.innerHTML?a.innerHTML="":a.innerText="",new e.JXSlider(t,[{src:s[0].src,label:s[0].getAttribute("data-label"),alt:s[0].alt},{src:s[1].src,label:s[1].getAttribute("data-label"),alt:s[1].alt}],o)},e.scanPage=function(){const t=document.querySelectorAll(".juxtapose");for(let n=0;n<t.length;n++)e.makeSlider(t[n],n)},e.JXSlider=l,window.juxtapose=e,e.scanPage()}))},696:(e,t,n)=>{"use strict";n.d(t,{D:()=>a,u:()=>r});const r=30,a="jetpack-new-instagram-connection"},64129:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(55609),s=n(65736),o=n(696);const __=s.__,_n=s._n;function i({accountImageTotal:e,attributes:t,currentUserConnected:n,disconnectFromService:i,shouldRenderSidebarNotice:l,setAttributes:c}){const{accessToken:u,columns:d,count:p,instagramUser:m,isStackedOnMobile:g,spacing:A}=t;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Account Settings","jetpack")},(0,r.createElement)(a.PanelRow,null,(0,r.createElement)("span",null,__("Account","jetpack")),(0,r.createElement)(a.ExternalLink,{href:`https://www.instagram.com/${m}/`},"@",m)),n&&(0,r.createElement)(a.PanelRow,null,(0,r.createElement)(a.Button,{isDestructive:!0,variant:"link",onClick:()=>i(u)},__("Disconnect your account","jetpack")))),(0,r.createElement)(a.PanelBody,{title:__("Display Settings","jetpack")},l?(()=>{const t=e?(0,s.sprintf)(/* translators: placeholder is a number. */ | |
| 48 | -_n("There is currently only %s post in your Instagram account.","There are currently only %s posts in your Instagram account.",e,"jetpack"),e):__("There are currently no posts in your Instagram account.","jetpack");return(0,r.createElement)("div",{className:"wp-block-jetpack-instagram-gallery__count-notice"},(0,r.createElement)(a.Notice,{isDismissible:!1,status:"info"},t))})():null,(0,r.createElement)(a.RangeControl,{label:__("Number of Posts","jetpack"),value:p,onChange:e=>c({count:e}),min:1,max:o.u}),(0,r.createElement)(a.RangeControl,{label:__("Number of Columns","jetpack"),value:d,onChange:e=>c({columns:e}),min:1,max:6}),(0,r.createElement)(a.RangeControl,{label:__("Image Spacing (px)","jetpack"),value:A,onChange:e=>c({spacing:e}),min:0,max:50}),(0,r.createElement)(a.ToggleControl,{label:__("Stack on mobile","jetpack"),checked:g,onChange:()=>c({isStackedOnMobile:!g})})))}},36420:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(52175),l=n(55609),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(92819),g=n(4554),A=n(96946),h=n(696),E=n(64129),f=n(44961),b=n(79236),C=n(2681),v=n(75412);const __=u.__,k=(0,l.withNotices)((e=>{const t=(0,i.useBlockProps)(),{attributes:n,isSelected:r,noticeOperations:u,noticeUI:d,setAttributes:k}=e,{accessToken:B,align:y,columns:w,count:_,isStackedOnMobile:I,spacing:j}=n;(0,c.useEffect)((()=>{const e=(0,g.S)(A.attributes,n);(0,m.isEqual)(e,n)||k(e)}),[n,k]);const[x,S]=(0,c.useState)(B),{isRequestingWpcomConnectUrl:Q,wpcomConnectUrl:N}=(0,C.Z)(),{images:P,isLoadingGallery:T,setImages:R}=(0,v.Z)({accessToken:B,noticeOperations:u,setAttributes:k,setSelectedAccount:S}),{connectToService:Z,disconnectFromService:L,isConnecting:M,isRequestingUserConnections:D,userConnections:F}=(0,b.Z)({accessToken:B,noticeOperations:u,selectedAccount:x,setAttributes:k,setImages:R,setSelectedAccount:S}),z=(0,o.Dp)(),O=_>P.length?P.length:_,U=!T&&(!B||(0,m.isEmpty)(P)),H=!U,V=B&&T&&(0,m.isEmpty)(P),q=!U&&!V,G=p()(t.className,{[`align${y}`]:y}),$=p()("wp-block-jetpack-instagram-gallery__grid",`wp-block-jetpack-instagram-gallery__grid-columns-${w}`,{"is-stacked-on-mobile":I}),W={gridGap:j,"--latest-instagram-posts-spacing":j?`${j}px`:void 0},J={padding:j},Y=()=>{x&&h.D!==x?k({accessToken:x,instagramUser:(0,m.find)(F,{token:x}).username}):Z()};return(0,s.createElement)("div",a()({},t,{className:G}),U&&(0,s.createElement)(l.Placeholder,{icon:"instagram",instructions:z?D||F.length?void 0:__("Connect to Instagram to start sharing your images.","jetpack"):__("First, you'll need to connect your WordPress.com account.","jetpack"),label:__("Latest Instagram Posts","jetpack"),notices:d},z?(()=>{const e=F.length>0,t=[...(0,m.map)(F,(e=>({label:`@${e.username}`,value:e.token}))),{label:__("Add a new account","jetpack"),value:h.D}],n=M||D||e&&!x;return(0,s.createElement)("div",null,e&&(0,s.createElement)(l.RadioControl,{label:__("Select your Instagram account:","jetpack"),onChange:e=>S(e),options:t,selected:x}),h.D===x&&(0,s.createElement)("p",{className:"wp-block-jetpack-instagram-gallery__new-account-instructions"},__("If you are currently logged in to Instagram on this device, you might need to log out of it first.","jetpack")),(0,s.createElement)(l.Button,{disabled:n,variant:"primary",onClick:Y},M&&__("Connecting…","jetpack"),D&&__("Loading your connections…","jetpack"),!M&&!D&&__("Connect to Instagram","jetpack")))})():(0,s.createElement)(l.Button,{disabled:Q||!N,href:N,variant:"secondary"},__("Connect to WordPress.com","jetpack"))),V&&(0,s.createElement)("div",{className:"wp-block-embed is-loading"},(0,s.createElement)(l.Spinner,null),(0,s.createElement)("p",null,__("Embedding…","jetpack"))),q&&(0,s.createElement)("div",{className:$,style:W},(0,m.times)(r?_:O,(e=>(0,s.createElement)("span",{className:p()("wp-block-jetpack-instagram-gallery__grid-post"),key:e,style:J},(e=>{if(P[e]){const t=P[e];return(0,s.createElement)(f.Z,{alt:t.title||t.url,src:t.url,attributes:n,spacing:j})}return(0,s.createElement)("img",{alt:__("Latest Instagram Posts placeholder","jetpack"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNMyc2tBwAEOgG/c94mJwAAAABJRU5ErkJggg=="})})(e))))),H&&(0,s.createElement)(i.InspectorControls,null,(0,s.createElement)(E.Z,{accountImageTotal:P.length,attributes:n,currentUserConnected:z,disconnectFromService:L,shouldRenderSidebarNotice:H&&!V&&P.length<_,setAttributes:k})))}))},34575:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(96946),o=n(36420),i=n(30408);(0,a.S)(s,{edit:o.Z,save:i.Z,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"wpcom_instagram_widget"===e,transform:({instance:e})=>(0,r.createBlock)("jetpack/instagram-gallery",{columns:e.raw.columns,count:e.raw.count,accessToken:e.raw.token_id})}]}})},44961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(69307),s=n(65235),o=n.n(s);function i({src:e,alt:t,spacing:n}){const[s,i]=(0,a.useState)(!1),[l,c]=(0,a.useState)("auto"),u=(0,a.useRef)(),d=()=>{i(!0),c("auto")};(0,a.useEffect)((()=>{const t=e;if(t){const e=new window.Image;e.src=t,e.onload=d}u.current&&c(u.current.parentNode.getBoundingClientRect().width)}),[e]);const p=-1*n,m=o()("wp-block-jetpack-instagram-gallery__placeholder",{"is-loaded":s}),g=s?{margin:p}:{margin:p,height:l},A=o()({"is-loaded":s});return(0,r.createElement)("span",{style:g,className:m},(0,r.createElement)("img",{alt:t,className:A,ref:u,src:e}))}},30408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({attributes:{instagramUser:e}})=>{const t=a.useBlockProps.save();return e&&(0,r.createElement)("div",t,(0,r.createElement)("a",{href:`https://www.instagram.com/${e}/`,rel:"noopener noreferrer",target:"_blank"},`https://www.instagram.com/${e}/`))}},79236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(13419),a=n(7211),s=n(86989),o=n.n(s),i=n(69307),l=n(65736),c=n(92819),u=n(696);const __=l.__;function d({accessToken:e,noticeOperations:t,selectedAccount:n,setAttributes:s,setImages:l,setSelectedAccount:d}){const[p,m]=(0,i.useState)(!1),[g,A]=(0,i.useState)(!1),[h,E]=(0,i.useState)([]),f=(0,r.Dp)();(0,i.useEffect)((()=>{!e&&f&&(A(!0),o()({path:"/wpcom/v2/instagram-gallery/connections"}).then((e=>{A(!1),E(e)})).catch((()=>{A(!1),E([])})))}),[e,f]),(0,i.useEffect)((()=>{u.D===n||(0,c.find)(h,{token:n})||d(void 0)}),[n,d,h]);return{connectToService:()=>{t.removeAllNotices(),m(!0),o()({path:"/wpcom/v2/instagram-gallery/connect-url"}).then((e=>{const t=new a.Z;t.open(e,"connect-to-instagram-popup","toolbar=0,location=0,menubar=0,"+t.getScreenCenterSpecs(700,700)),t.on("message",(({keyring_id:e})=>{if(m(!1),e){const t=e.toString();s({accessToken:t}),d(t)}})),t.on("close",(e=>{"connect-to-instagram-popup"===e&&m(!1)}))})).catch((()=>{t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),m(!1)}))},disconnectFromService:()=>{t.removeAllNotices(),s({accessToken:void 0,instagramUser:void 0}),l([])},isConnecting:p,isRequestingUserConnections:g,userConnections:h}}},2681:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(13419),a=n(86989),s=n.n(a),o=n(9818),i=n(69307),l=n(96483);function c(){const{isAutoDraft:e}=(0,o.useSelect)((e=>{const{status:t}=e("core/editor").getCurrentPost();return{isAutoDraft:"auto-draft"===t}})),{savePost:t}=(0,o.useDispatch)("core/editor"),[n,a]=(0,i.useState)(),[c,u]=(0,i.useState)(!1),d=(0,r.Dp)();return(0,i.useEffect)((()=>{d||n||c||(e?t():(u(!0),s()({path:(0,l.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((e=>{a(e),u(!1)}))))}),[d,e,c,t,n]),{isRequestingWpcomConnectUrl:c,wpcomConnectUrl:n}}},75412:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(86989),a=n.n(r),s=n(69307),o=n(65736),i=n(96483),l=n(92819),c=n(696);const __=o.__;function u({accessToken:e,noticeOperations:t,setAttributes:n,setSelectedAccount:r}){const[o,u]=(0,s.useState)([]),[d,p]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{e&&(t.removeAllNotices(),p(!0),a()({path:(0,i.addQueryArgs)("/wpcom/v2/instagram-gallery/gallery",{access_token:e,count:c.u})}).then((({external_name:e,images:a})=>{if(p(!1),!a||!(0,l.isArray)(a))return t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),u([]),n({accessToken:void 0,instagramUser:void 0}),void r(void 0);(0,l.isEmpty)(a)&&t.createErrorNotice(__("No images were found in your Instagram account.","jetpack")),n({instagramUser:e}),u(a)})).catch((()=>{p(!1),u([]),n({accessToken:void 0,instagramUser:void 0}),r(void 0)})))}),[e,n,r]),{images:o,isLoadingGallery:d,setImages:u}}},96172:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(13419),s=n(52175),o=n(55609),i=n(69307),l=n(65736),c=n(19597),u=n(65783),d=n(43807);const __=l.__;const p=function({attributes:e,setAttributes:t}){const n=(0,s.useBlockProps)(),p=e?.showReblogButton||!1,m=!(0,a.Ug)()&&!(0,a.Wp)(),g=[c,u,d],A=e=>e.preventDefault();return(0,r.createElement)("div",n,(0,r.createElement)(s.InspectorControls,{key:"like-inspector"},m&&(0,r.createElement)("div",{className:"wp-block-jetpack-like__learn-more"},(0,r.createElement)(o.ExternalLink,{href:"https://jetpack.com/support/likes/"},__("Learn more","jetpack"))),(0,a.Wp)()&&(0,r.createElement)(o.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(o.ToggleControl,{label:__("Show reblog button","jetpack"),checked:p,onChange:e=>{(e=>{t({showReblogButton:e})})(e)}}))),(0,r.createElement)("div",{className:"wpl-likebox wpl-new-layout"},(0,a.Wp)()&&p&&(0,r.createElement)("div",{className:"wpl-button reblog"},(0,r.createElement)("a",{href:"#",title:__("Reblog this post on your main site.","jetpack"),className:"reblog sd-button",rel:"nofollow"},(0,r.createElement)("span",null,__("Reblog","jetpack")))),(0,r.createElement)("div",{className:"wpl-button like"},(0,r.createElement)("a",{href:"#",className:"sd-button like",rel:"nofollow",onClick:A},(0,r.createElement)("span",null,__("Like","jetpack")))),(0,r.createElement)("ul",{className:"wpl-avatars"},g.map(((e,t)=>(0,r.createElement)("li",{key:`liker-${t}`,className:"wp-liker-me"},(0,r.createElement)("a",{className:"wpl-liker",href:"#",rel:"nofollow",onClick:A},(0,r.createElement)("img",{src:e,className:"avatar avatar-30",width:30,height:30,alt:""})))))),(0,r.createElement)("div",{className:"wpl-count"},(0,r.createElement)("span",{className:"wpl-count-text"},(0,r.createElement)("a",{href:"#",onClick:A},(0,i.createInterpolateElement)((0,l.sprintf)( | |
| 49 | -// translators: %$1s: Number of likes | |
| 50 | -__("<span>%1$d</span> likes","jetpack"),g.length),{span:(0,r.createElement)("span",{className:"wpl-count-number"})}))))))}},86168:(e,t,n)=>{"use strict";var r=n(31985),a=n(57585),s=n(96172);(0,r.S)(a,{edit:s.Z,save:()=>null})},64580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(55609),o=n(65736),i=n(65235),l=n.n(i),c=n(64968);const __=o.__,u={name:"jetpack/button",attributes:{element:"button",text:__("Join my Mailchimp audience","jetpack"),uniqueId:"mailchimp-widget-id"}},d=({attributes:e,setAttributes:t,audition:n})=>{const{emailPlaceholder:o=c.mI,consentText:i=c._8,processingLabel:d=c.tl,successLabel:p=c.Tl,errorLabel:m=c.L7}=e,g={[c.N3]:d,[c.sf]:p,[c.Cw]:m}[n];return(0,r.createElement)("div",{className:l()({[`${c.A6}_notication-audition`]:n})},(0,r.createElement)(s.TextControl,{"aria-label":o,className:`${c.A6}_text-input`,disabled:!0,onChange:()=>!1,placeholder:o,title:__("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),(0,r.createElement)(a.InnerBlocks,{template:[[u.name,u.attributes]],templateLock:"all"}),(0,r.createElement)(a.RichText,{tagName:"p",placeholder:__("Write consent text","jetpack"),value:i,onChange:e=>t({consentText:e}),inlineToolbar:!0}),n&&(0,r.createElement)("div",{className:`${c.A6}_notification ${c.A6}_${n}`,role:n===c.Cw?"alert":"status"},g))}},64968:(e,t,n)=>{"use strict";n.d(t,{A6:()=>i,Cw:()=>o,L7:()=>A,N3:()=>a,P:()=>u,Tl:()=>g,_8:()=>p,cH:()=>c,lp:()=>l,mI:()=>d,sf:()=>s,tl:()=>m});var r=n(65736);const __=r.__,a="processing",s="success",o="error",i="wp-block-jetpack-mailchimp",l=0,c=1,u=2,d=__("Enter your email","jetpack"),p=__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack"),m=__("Processing…","jetpack"),g=__("Success! You're on the list.","jetpack"),A=__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},84038:(e,t,n)=>{"use strict";n.d(t,{T:()=>d});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(64968),c=n(24535);const __=i.__,u=({auditionNotification:e,clearAudition:t,setAttributes:n,emailPlaceholder:a=l.mI,processingLabel:o=l.tl,successLabel:i=l.Tl,errorLabel:u=l.L7,interests:d,signupFieldTag:p,signupFieldValue:m,connectURL:g})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.PanelBody,{title:__("Text Elements","jetpack")},(0,r.createElement)(s.TextControl,{label:__("Email Placeholder","jetpack"),value:a,onChange:e=>{n({emailPlaceholder:e}),t()}})),(0,r.createElement)(s.PanelBody,{title:__("Notifications","jetpack")},(0,r.createElement)(s.TextControl,{label:__("Processing text","jetpack"),value:o,onChange:t=>{n({processingLabel:t}),e(l.N3)}}),(0,r.createElement)(s.TextControl,{label:__("Success text","jetpack"),value:i,onChange:t=>{n({successLabel:t}),e(l.sf)}}),(0,r.createElement)(s.TextControl,{label:__("Error text","jetpack"),value:u,onChange:t=>{n({errorLabel:t}),e(l.Cw)}})),(0,r.createElement)(s.PanelBody,{title:__("Mailchimp Groups","jetpack")},(0,r.createElement)(c.Z,{interests:d,onChange:(e,t)=>{const r=[...new Set([...d,e])].filter((n=>!(n===e&&!t)&&n));n({interests:r})}}),(0,r.createElement)(s.ExternalLink,{href:"https://mailchimp.com/help/send-groups-audience/"},__("Learn about groups","jetpack"))),(0,r.createElement)(s.PanelBody,{title:__("Signup Location Tracking","jetpack")},(0,r.createElement)(s.TextControl,{label:__("Signup Field Tag","jetpack"),placeholder:__("SIGNUP","jetpack"),value:p,onChange:e=>n({signupFieldTag:e})}),(0,r.createElement)(s.TextControl,{label:__("Signup Field Value","jetpack"),placeholder:__("website","jetpack"),value:m,onChange:e=>n({signupFieldValue:e})}),(0,r.createElement)(s.ExternalLink,{href:"https://mailchimp.com/help/determine-webpage-signup-location/"},__("Learn about signup location tracking","jetpack"))),(0,r.createElement)(s.PanelBody,{title:__("Mailchimp Connection","jetpack")},(0,r.createElement)(s.ExternalLink,{href:g},__("Manage Connection","jetpack")))),d=({connectURL:e,attributes:t,setAttributes:n,setAudition:s})=>{const{emailPlaceholder:i=l.mI,processingLabel:c=l.tl,successLabel:d=l.Tl,errorLabel:p=l.L7,interests:m,signupFieldTag:g,signupFieldValue:A}=t,h=(0,o.useRef)(null),E=()=>s(null);return(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(u,{auditionNotification:e=>{s(e),h.current&&clearTimeout(h.current),h.current=setTimeout(E,3e3)},clearAudition:E,emailPlaceholder:i,processingLabel:c,successLabel:d,errorLabel:p,interests:m,setAttributes:n,signupFieldTag:g,signupFieldValue:A,connectURL:e}))}},748:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4981),a=n(65736),s=n(92819);const __=a.__,o=["submitButtonText","backgroundButtonColor","textButtonColor","submitButtonClasses","customBackgroundButtonColor","customTextButtonColor"],i={attributes:{emailPlaceholder:{type:"string",default:__("Enter your email","jetpack")},submitButtonText:{type:"string",default:__("Join my email list","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},submitButtonClasses:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:__("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:__("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},migrate:e=>{const t=(0,s.omit)(e,o),n={text:(a=e).submitButtonText||__("Join my email list","jetpack"),textColor:a.textButtonColor,customTextColor:a.customTextButtonColor,backgroundColor:a.backgroundButtonColor,customBackgroundColor:a.customBackgroundButtonColor};var a;return[t,[(0,r.createBlock)("jetpack/button",{element:"button",uniqueId:"mailchimp-widget-id",...n})]]},isEligible:(e,t)=>(0,s.isEmpty)(t)||(0,s.some)((0,s.pick)(e,o),Boolean),save:()=>null}},43818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(51806),a=n(13419),s=n(86989),o=n.n(s),i=n(52175),l=n(55609),c=n(69307),u=n(96483),d=n(88322),p=n(64580),m=n(64968),g=n(84038),A=n(21970),h=n(947);const E=(0,a.dM)(d),f=(0,l.withNotices)((({attributes:e,setAttributes:t,notices:n,noticeUI:s,noticeOperations:l})=>{const d=(0,i.useBlockProps)(),[f,b]=(0,c.useState)(null),[C,v]=(0,c.useState)(m.lp),[k,B]=(0,c.useState)(null),[y,w]=(0,c.useState)(null),_=(0,c.useCallback)((()=>{const e=(0,a.Dp)();e?o()({path:"/wpcom/v2/mailchimp",method:"GET"}).then((({connect_url:t,code:n})=>{B(t),v("connected"===n?m.cH:m.P),w(e)}),(({message:t})=>{B(null),v(m.P),w(e),l.removeAllNotices(),l.createErrorNotice(t)})):o()({path:(0,u.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then((t=>{B(t),v(m.P),w(e)}))}),[B,v,w,l]);let I;return(0,c.useEffect)((()=>{_()}),[_]),e.preview?I=(0,r.createElement)(p.Z,{attributes:e,setAttributes:t,audition:f}):C===m.lp?I=(0,r.createElement)(A.Z,{icon:E,notices:n}):C===m.P?I=y?(0,r.createElement)(h.j,{icon:E,notices:n,connectURL:k,apiCall:_}):(0,r.createElement)(h.D,{icon:E,notices:n,connectURL:k}):C===m.cH&&(I=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g.T,{connectURL:k,attributes:e,setAttributes:t,setAudition:b}),(0,r.createElement)(p.Z,{attributes:e,setAttributes:t,audition:f}))),(0,r.createElement)("div",d,s,I)}))},61204:(e,t,n)=>{"use strict";var r=n(31985),a=n(88322),s=n(748),o=n(43818),i=n(31745),l=n(84197);(0,r.S)(a,{edit:o.Z,save:i.Z,deprecated:[s.Z],transforms:l.Z})},21970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(55609),s=n(65736),o=n(64968);const __=s.__,i=({icon:e,notices:t})=>(0,r.createElement)(a.Placeholder,{icon:e,notices:t,className:o.A6,label:__("Mailchimp","jetpack")},(0,r.createElement)("div",{className:"align-center"},(0,r.createElement)(a.Spinner,null)))},24535:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(86989),s=n.n(a),o=n(55609),i=n(69307);class l extends i.Component{state={interest_categories:[]};componentDidMount(){this.retrieveGroups()}retrieveGroups=()=>{s()({method:"GET",path:"/wpcom/v2/mailchimp/groups"}).then((e=>{const{interest_categories:t}=e;this.setState({interest_categories:t})}))};render=()=>{const{interest_categories:e}=this.state,{interests:t,onChange:n}=this.props;return(0,r.createElement)(i.Fragment,null,e&&(e||[]).map((e=>e.interests.map((e=>(0,r.createElement)(o.CheckboxControl,{label:e.name,value:e.id,checked:t.includes(e.id),onChange:t=>n(e.id,t),key:e.id}))))))}}const c=l;l.defaultProps={interests:[],onChange:()=>null}},947:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,j:()=>i});var r=n(51806),a=n(55609),s=n(65736),o=n(64968);const __=s.__,i=({icon:e,notices:t,connectURL:n,apiCall:s})=>(0,r.createElement)(a.Placeholder,{className:o.A6,icon:e,label:__("Mailchimp","jetpack"),notices:t,instructions:__("You need to connect your Mailchimp account and choose an audience in order to start collecting Email subscribers.","jetpack")},(0,r.createElement)(a.Button,{variant:"secondary",href:n,target:"_blank"},__("Set up Mailchimp form","jetpack")),(0,r.createElement)("div",{className:`${o.A6}-recheck`},(0,r.createElement)(a.Button,{variant:"link",onClick:s},__("Re-check Connection","jetpack")))),l=({icon:e,notices:t,connectURL:n})=>(0,r.createElement)(a.Placeholder,{className:o.A6,icon:e,label:__("Mailchimp","jetpack"),notices:t,instructions:__("First, you'll need to connect your WordPress.com account.","jetpack")},(0,r.createElement)(a.Button,{variant:"secondary",href:n},__("Connect to WordPress.com","jetpack")))},31745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=()=>{const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},84197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4981);const a={to:[{type:"block",blocks:["jetpack/subscriptions"],transform:()=>(0,r.createBlock)("jetpack/subscriptions")}]}},2944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(31852);const __=o.__;class l extends s.Component{render(){const{onClose:e,onAddPoint:t,onError:n,apiKey:s,mapProvider:o}=this.props;return(0,r.createElement)(a.Button,{className:"component__add-point"},__("Add marker","jetpack"),(0,r.createElement)(a.Popover,{className:"component__add-point__popover",position:"bottom center"},(0,r.createElement)(a.Button,{className:"component__add-point__close",onClick:e},(0,r.createElement)(a.Dashicon,{icon:"no"})),(0,r.createElement)(i.Z,{onAddPoint:t,label:__("Add a location","jetpack"),apiKey:s,onError:n,mapProvider:o})))}}l.defaultProps={onAddPoint:()=>{},onClose:()=>{},onError:()=>{},mapProvider:"mapbox"};const c=l},75890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(69307),i=n(21035),l=n(99128);const c=(0,o.forwardRef)(((e,t)=>{if("mapkit"===e.mapProvider){const n={...e,ref:null};return(0,s.createElement)(l.Z,a()({},n,{ref:t}))}return(0,s.createElement)(i.Z,a()({},e,{ref:t}))}))},75385:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(61323),s=n(82891);const o=e=>"mapkit"===e.mapProvider?(0,r.createElement)(s.Z,e):(0,r.createElement)(a.Z,e)},61323:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(69307),a=n(84634);class s extends r.Component{componentDidMount(){const{mapboxgl:e}=this.props;this.el=document.createElement("DIV"),this.infowindow=(0,a.xt)(e),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}componentDidUpdate(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}render(){return this.el?(0,r.createPortal)(this.props.children,this.el):null}closeClick=()=>{this.props.unsetActiveMarker()};openWindow(){const{map:e,activeMarker:t}=this.props;this.infowindow.setLngLat(t.getPoint()).addTo(e)}closeWindow(){this.infowindow.remove()}}s.defaultProps={unsetActiveMarker:()=>{},activeMarker:null,map:null,mapboxgl:null};const o=s},82891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(72672);const __=o.__,l=()=>{const{activeMarker:e,setActiveMarker:t,calloutReference:n,admin:o,points:l,setPoints:c}=(0,i.qw)(),[u,d]=(0,s.useState)(l),[p,m]=(0,s.useState)(!1),{title:g,caption:A}=u.find((t=>t.id===e?.id))||{},h=t=>{const n=l.map((n=>n.id===e.id?{...n,...t}:n));d(n),m(!0)};return(0,s.useEffect)((()=>{!e&&p&&c(u)}),[e,p,u,c]),(0,s.useEffect)((()=>{d(l),m(!1)}),[l]),e&&n?(0,s.createPortal)((0,r.createElement)(s.Fragment,null,o&&(0,r.createElement)(s.Fragment,null,(0,r.createElement)(a.TextControl,{label:__("Marker Title","jetpack"),value:g,onChange:e=>h({title:e})}),(0,r.createElement)(a.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:A,rows:"2",tag:"textarea",onChange:e=>h({caption:e})}),(0,r.createElement)(a.Button,{onClick:()=>{const n=l.filter((t=>t.id!==e.id));d(n),m(!0),t(null)},className:"wp-block-jetpack-map__delete-btn"},(0,r.createElement)(a.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack"))),!o&&(0,r.createElement)(s.Fragment,null,(0,r.createElement)("h3",null,g),(0,r.createElement)("p",null,A))),n):null}},32333:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(69307),a=n(85007),s=n(84634);class o extends r.Component{componentDidMount(){this.renderMarker()}componentWillUnmount(){this.marker&&this.marker.remove()}componentDidUpdate(){this.renderMarker()}handleClick=()=>{const{onClick:e}=this.props;e(this)};getPoint=()=>{const{point:e}=this.props;return[e.coordinates.longitude,e.coordinates.latitude]};renderMarker(){const{map:e,point:t,mapboxgl:n,markerColor:r,mapRef:o}=this.props,{handleClick:i}=this,l=[t.coordinates.longitude,t.coordinates.latitude],{currentDoc:c}=(0,a.bL)(o.current),u=this.marker?this.marker.getElement():c.createElement("div");this.marker?this.marker.setLngLat(l):(u.className="wp-block-jetpack-map-marker",this.marker=new n.Marker(u).setLngLat(l).setOffset([0,-19]).addTo(e),this.marker.getElement().addEventListener("click",i)),(0,s.zb)(u,r)}render(){return null}}o.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:()=>{}};const i=o},21035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(92819),l=n(85007),c=n(45388),u=n(90055),d=n(84634),p=n(51321),m=n(75385),g=n(32333);const __=o.__;class A extends s.Component{constructor(){super(...arguments),this.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},this.mapRef=(0,s.createRef)(),this.debouncedSizeMap=(0,i.debounce)(this.sizeMap,250)}render(){const{points:e,admin:t,children:n,markerColor:o}=this.props,{map:l,activeMarker:c,mapboxgl:u}=this.state,{onMarkerClick:d,deleteActiveMarker:p,updateActiveMarker:A}=this,h=(0,i.get)(c,"props.point")||{},{title:E,caption:f}=h,b=s.Children.map(n,(e=>{if("AddPoint"===(0,i.get)(e,"props.tagName"))return e})),C=l&&u&&e.map(((e,t)=>(0,r.createElement)(g.Z,{mapRef:this.mapRef,key:t,point:e,index:t,map:l,mapboxgl:u,markerColor:o,onClick:d}))),v=u&&(0,r.createElement)(m.Z,{activeMarker:c,map:l,mapboxgl:u,unsetActiveMarker:()=>this.setState({activeMarker:null})},c&&t&&(0,r.createElement)(s.Fragment,null,(0,r.createElement)(a.TextControl,{label:__("Marker Title","jetpack"),value:E,onChange:e=>A({title:e})}),(0,r.createElement)(a.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:f,rows:"2",tag:"textarea",onChange:e=>A({caption:e})}),(0,r.createElement)(a.Button,{onClick:p,className:"wp-block-jetpack-map__delete-btn"},(0,r.createElement)(a.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack"))),c&&!t&&(0,r.createElement)(s.Fragment,null,(0,r.createElement)("h3",null,E),(0,r.createElement)("p",null,f)));return(0,r.createElement)(s.Fragment,null,(0,r.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},C),v,b)}componentDidMount(){const{apiKey:e}=this.props;e&&this.loadMapLibraries()}componentWillUnmount(){this.debouncedSizeMap.cancel(),window.removeEventListener("resize",this.debouncedSizeMap)}componentDidUpdate(e){const{admin:t,apiKey:n,children:r,points:a,mapStyle:s,mapDetails:o,scrollToZoom:i,showFullscreenButton:l}=this.props,{map:c,fullscreenControl:u}=this.state;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),a!==e.points&&this.setBoundsByMarkers(),a.length!==e.points.length&&this.clearCurrentMarker(),s===e.mapStyle&&o===e.mapDetails||c.setStyle(this.getMapStyle()),i!==e.scrollToZoom&&(i?c.scrollZoom.enable():c.scrollZoom.disable()),l!==e.showFullscreenButton&&(l?(c.addControl(u),t&&u._fullscreenButton&&(u._fullscreenButton.disabled=!0)):c.removeControl(u))}onMarkerClick=e=>{const{onMarkerClick:t}=this.props;this.setState({activeMarker:e}),t()};onMapClick=()=>{this.setState({activeMarker:null})};clearCurrentMarker=()=>{this.setState({activeMarker:null})};updateActiveMarker=e=>{const{points:t}=this.props,{activeMarker:n}=this.state,{index:r}=n.props,a=t.slice(0);(0,i.assign)(a[r],e),this.props.onSetPoints(a)};deleteActiveMarker=()=>{const{points:e}=this.props,{activeMarker:t}=this.state,{index:n}=t.props,r=e.slice(0);r.splice(n,1),this.props.onSetPoints(r),this.setState({activeMarker:null})};sizeMap=()=>{const{mapHeight:e}=this.props,{map:t}=this.state,n=this.mapRef.current;(0,p.Z)(n,e),t.resize(),this.setBoundsByMarkers()};updateZoom=()=>{const{zoom:e}=this.props,{map:t}=this.state;t.setZoom(e)};setBoundsByMarkers=()=>{const{admin:e,onSetMapCenter:t,onSetZoom:n,points:r,zoom:a}=this.props,{map:s,activeMarker:o,mapboxgl:i,zoomControl:l,boundsSetProgrammatically:c}=this.state;if(!s)return;if(r.length&&e?s.dragPan.disable():s.dragPan.enable(),!r.length)return;if(o)return;const u=(0,d.YB)(i,r);if(t(u.getCenter()),r.length>1){(0,d.k)(s,u),this.setState({boundsSetProgrammatically:!0});try{s.removeControl(l)}catch(e){}}else{if(s.setCenter(u.getCenter()),c){const e=12;s.setZoom(e),n(e)}else s.setZoom(parseInt(a,10));s.addControl(l),this.setState({boundsSetProgrammatically:!1})}};getMapStyle(){const{mapStyle:e,mapDetails:t}=this.props;return(0,u.h)(e,t)}getMapType(){const{mapStyle:e}=this.props;switch(e){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";default:return"ROADMAP"}}scriptsLoaded=()=>{const{mapCenter:e,points:t}=this.props;this.setState({loaded:!0}),t.length,this.initMap(e)};loadMapLibraries(){const{apiKey:e}=this.props,{currentWindow:t}=(0,l.bL)(this.mapRef.current),n={"mapbox-gl-js":()=>{(0,l.Dz)(t,"mapboxgl").then((t=>{t.accessToken=e,this.setState({mapboxgl:t},this.scriptsLoaded)}))}};(0,l.Pp)(c,n,this.mapRef.current)}initMap(e){const{mapboxgl:t}=this.state,{zoom:n,onMapLoaded:r,onError:a,scrollToZoom:s,showFullscreenButton:o,admin:i}=this.props;let l=null;try{l=new t.Map({container:this.mapRef.current,style:this.getMapStyle(),center:(0,d.b2)(e),zoom:parseInt(n,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(e){return void a("mapbox_error",e.message)}s||l.scrollZoom.disable();const c=new t.FullscreenControl;l.on("error",(e=>{a("mapbox_error",e.error.message)}));const u=new t.NavigationControl({showCompass:!1,showZoom:!0});l.on("zoomend",(()=>{this.props.onSetZoom(l.getZoom())})),l.on("moveend",(()=>{const{onSetMapCenter:e,points:t}=this.props;t.length<1&&e(l.getCenter())})),l.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:l,zoomControl:u,fullscreenControl:c},(()=>{this.debouncedSizeMap(),l.addControl(u),o&&(l.addControl(c),i&&c._fullscreenButton&&(c._fullscreenButton.disabled=!0)),this.mapRef.current.addEventListener("alignmentChanged",this.debouncedSizeMap),l.resize(),r(),this.setState({loaded:!0}),window.addEventListener("resize",this.debouncedSizeMap)}))}}A.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:()=>{},onSetMapCenter:()=>{},onMapLoaded:()=>{},onMarkerClick:()=>{},onError:()=>{},markerColor:"red",apiKey:null,mapCenter:{},address:null};const h=A},99128:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(69307),s=n(92819),o=n(32037),i=n(72672),l=n(96442),c=n(75385);const u=(0,a.forwardRef)(((e,t)=>{const{admin:n,points:l,onError:u,onSetPoints:p}=e,{loaded:m,error:g,mapkit:A,currentDoc:h,currentWindow:E}=(0,i.eV)(t),{map:f}=(0,i.$M)(A,m,t),b=a.Children.map(e.children,(e=>{if("AddPoint"===(0,s.get)(e,"props.tagName"))return e}));return(0,a.useEffect)((()=>{g&&u("mapkit_error",g)}),[g,u]),(0,r.createElement)(o.c,{value:{mapkit:A,map:f,loaded:m,currentDoc:h,currentWindow:E,admin:n,points:l,setPoints:p}},m&&A&&f?(0,r.createElement)(d,e):null,(0,r.createElement)("div",{style:{height:e.mapHeight?`${e.mapHeight}px`:"400px"},className:"wp-block-jetpack-map__gm-container",ref:t}),b,(0,r.createElement)(c.Z,{mapProvider:"mapkit"}))})),d=(0,a.memo)((({address:e,mapCenter:t,mapStyle:n,zoom:r,onSetMapCenter:s,onSetZoom:o,onSetPoints:c,points:u,markerColor:d,onMarkerClick:p,onMapLoaded:m})=>{const{map:g,mapkit:A,setActiveMarker:h,setPreviousCenter:E,setCalloutReference:f,currentDoc:b}=(0,i.qw)(),C=(0,a.useRef)(p),v=(0,a.useRef)(c),k=(0,a.useCallback)((e=>{h(e),E(g.center),C.current&&C.current(e),g.setCenterAnimated(new A.Coordinate(e.coordinates.latitude,e.coordinates.longitude))}),[g,A,h,E,C]);return(0,i.LO)(t,s),(0,i.Xj)(n),(0,i.zZ)(r,o),(0,i.J2)(u,d,(0,l.eR)(b,f),k),(0,i.jo)(m),(0,i.mk)((e=>{h(null),e&&g.setCenterAnimated(e)})),(0,i.wd)(e,v),null}));u.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:()=>{},onSetMapCenter:()=>{},onMapLoaded:()=>{},onMarkerClick:()=>{},onError:()=>{},markerColor:"red",mapCenter:{},address:null};const p=u},53036:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(55609),o=n(65736),i=n(57897);const __=o.__,l=(0,r.createElement)(s.SVG,{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.G,{id:"Page-1",fill:"none",fillRule:"evenodd"},(0,r.createElement)(s.G,{id:"outline-add_location-24px",transform:"translate(-5 -2)"},(0,r.createElement)(s.Polygon,{id:"Shape",points:"0 0 24 0 24 24 0 24"}),(0,r.createElement)(s.Path,{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})))),c=({attributes:e,setAttributes:t,apiKey:n,apiKeySource:o,apiKeyControl:c,onKeyChange:u,context:d,mapRef:p,instanceId:m,minHeight:g,removeAPIKey:A,updateAPIKey:h,setPointVisibility:E,mapProvider:f})=>{const b=e=>{t({align:e}),p.current?.sizeMap&&setTimeout(p.current.sizeMap,0)};return"toolbar"===d?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockAlignmentToolbar,{value:e.align,onChange:b,controls:["center","wide","full"]}),(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarButton,{icon:l,label:__("Add a marker","jetpack"),onClick:E}))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelColorSettings,{title:__("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:e.markerColor,onChange:e=>t({markerColor:e}),label:__("Marker Color","jetpack")}]}),(0,r.createElement)(s.PanelBody,{title:__("Map Settings","jetpack")},(0,r.createElement)(s.BaseControl,{label:__("Height in pixels","jetpack"),id:`block-jetpack-map-height-input-${m}`},(0,r.createElement)("input",{type:"number",id:`block-jetpack-map-height-input-${m}`,className:"wp-block-jetpack-map__height_input",onChange:e=>{t({mapHeight:e.target.value}),e.target!==document.activeElement&&p.current&&setTimeout(p.current.sizeMap,0)},onBlur:n=>{const{mapHeight:r}=e;let a=parseInt(n.target.value,10);if(isNaN(a))a=null;else if(null==r){const e=p?.current?.mapRef??p;a=e?.current.offsetHeight}else a<g&&(a=g);t({mapHeight:a}),p.current.sizeMap&&setTimeout(p.current.sizeMap,0)},value:e.mapHeight||"",min:g,step:"10"})),(0,r.createElement)(s.RangeControl,{label:__("Zoom level","jetpack"),help:e.points.length>1&&__("The default zoom level cannot be changed when there are two or more markers on the map.","jetpack"),disabled:e.points.length>1,value:Math.round(e.zoom),onChange:e=>{t({zoom:e}),p.current&&p.current.updateZoom&&setTimeout(p.current.updateZoom,0)},min:0,max:22}),"mapbox"===f?(0,r.createElement)(s.ToggleControl,{label:__("Show street names","jetpack"),checked:e.mapDetails,onChange:e=>t({mapDetails:e})}):null,(0,r.createElement)(s.ToggleControl,{label:__("Scroll to zoom","jetpack"),help:__("Allow the map to capture scrolling, and zoom in or out.","jetpack"),checked:e.scrollToZoom,onChange:e=>t({scrollToZoom:e})}),"mapbox"===f?(0,r.createElement)(s.ToggleControl,{label:__("Show Fullscreen Button","jetpack"),help:__("Allow your visitors to display the map in fullscreen.","jetpack"),checked:e.showFullscreenButton,onChange:e=>t({showFullscreenButton:e})}):null),e.points.length?(0,r.createElement)(s.PanelBody,{title:__("Markers","jetpack"),initialOpen:!1},(0,r.createElement)(i.Z,{points:e.points,onChange:e=>{t({points:e})}})):null,"mapbox"===f?(0,r.createElement)(s.PanelBody,{title:__("Mapbox Access Token","jetpack"),initialOpen:!1},(0,r.createElement)(s.TextControl,{help:"wpcom"===o&&(0,r.createElement)(r.Fragment,null,__("You can optionally enter your own access token.","jetpack")," ",(0,r.createElement)(s.ExternalLink,{href:"https://account.mapbox.com/access-tokens/"},__("Find it on Mapbox","jetpack"))),label:__("Mapbox Access Token","jetpack"),value:c,onChange:u}),(0,r.createElement)(s.ButtonGroup,null,(0,r.createElement)(s.Button,{type:"button",onClick:h,disabled:!c||c===n},__("Update Token","jetpack")),(0,r.createElement)(s.Button,{type:"button",onClick:A,disabled:"wpcom"===o,variant:"secondary"},__("Remove Token","jetpack")))):null)}},55109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,showFullscreenButton:!0,className:t}},save:n(85888).Z}},85888:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307);class s extends a.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:a,points:s,zoom:o,mapCenter:i,markerColor:l,scrollToZoom:c,mapHeight:u}=e,d=s.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,s="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:s},e.title))})),p=t?`align${t}`:null;return(0,r.createElement)("div",{className:p,"data-map-style":n,"data-map-details":a,"data-points":JSON.stringify(s),"data-zoom":o,"data-map-center":JSON.stringify(i),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null},s.length>0&&(0,r.createElement)("ul",null,d))}}const o=s},45051:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},preview:{type:"boolean",default:!1},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"},showFullscreenButton:{type:"boolean",default:!0}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,className:t}},save:n(95382).Z}},95382:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307);class s extends a.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:a,points:s,zoom:o,mapCenter:i,markerColor:l,scrollToZoom:c,mapHeight:u,showFullscreenButton:d}=e,p=s.map(((e,t)=>{const{longitude:n,latitude:a}=e.coordinates,s="https://www.google.com/maps/search/?api=1&query="+a+","+n;return(0,r.createElement)("li",{key:t},(0,r.createElement)("a",{href:s},e.title))})),m=t?`align${t}`:null;return(0,r.createElement)("div",{className:m,"data-map-style":n,"data-map-details":a,"data-points":JSON.stringify(s),"data-zoom":o,"data-map-center":JSON.stringify(i),"data-marker-color":l,"data-scroll-to-zoom":c||null,"data-map-height":u||null,"data-show-fullscreen-button":d||null},s.length>0&&(0,r.createElement)("ul",null,p))}}const o=s},740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(51806),a=n(13419),s=n(86989),o=n.n(s),i=n(52175),l=n(55609),c=n(94333),u=n(9818),d=n(69307),p=n(65736),m=n(81518),g=n(2944),A=n(32334),h=n(75890),E=n(53036),f=n(1555),b=n(96406),C=n(53289),v=n(32566);const __=p.__,k=(0,a.dM)(A),B={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},y=(0,c.compose)([l.withNotices,(0,u.withDispatch)((e=>{const{toggleSelection:t}=e("core/block-editor");return{onResizeStart:()=>t(!1),onResizeStop:()=>t(!0)}}))])((({setAttributes:e,attributes:t,noticeUI:n,notices:a,isSelected:s,instanceId:c,onResizeStart:u,onResizeStop:p,noticeOperations:A})=>{const{address:y,mapDetails:w,points:_,zoom:I,mapCenter:j,markerColor:x,preview:S,mapHeight:Q,showFullscreenButton:N}=t,[P,T]=(0,d.useState)(!1),[R,Z]=(0,d.useState)(0),[L,M]=(0,d.useState)(null),[D,F]=(0,d.useState)(null),[z,O]=(0,d.useState)(null),[U,H]=(0,d.useState)(null),V=(0,d.useRef)(null),q=(0,i.useBlockProps)(),{className:G}=q,$=(0,m.t)(C.Z,G),W=(0,v.Z)({mapStyle:$}),J=()=>{y&&L&&"mapkit"!==W&&(0,f.P)(y,L).then((t=>{if(t.features?.length){const n=t.features[0],r=[{title:n.text,placeTitle:n.text,caption:n.place_name,id:n.id,coordinates:{latitude:n.center[1],longitude:n.center[0]}}];e({points:r})}else te(null,__("Could not find the coordinates of the provided address. Displaying default location. Feel free to add the location manually.","jetpack"))})).catch((e=>te(null,e.message)))},Y=(e=null,t="GET")=>new Promise(((n,r)=>{const a="/wpcom/v2/service-api-keys/mapbox",s=e?{path:a,method:t,data:{service_api_key:e}}:{path:a,method:t};H(!0),o()(s).then((({service_api_key:e,service_api_key_source:t})=>{A.removeAllNotices(),Z(e?2:1),M(e),F("wpcom"===t?"":e),O(t),H(!1),n()}),(({message:e})=>{te(null,e),Z(1),H(!1),r()}))})),K=t=>{const n=_.slice(0);let r=!1;_.map((e=>{e.id===t.id&&(r=!0)})),r||(n.push(t),e({points:n}),T(!1))},X=()=>{A.removeAllNotices(),D&&Y(D,"POST")},ee=()=>Y(null,"DELETE"),te=(e,t)=>{A.removeAllNotices(),A.createErrorNotice(t)},ne=(t,n,r,a)=>{p();const s=V?.current?.mapRef??V;if(s){const t=parseInt(s.current.offsetHeight+a.height,10);e({mapHeight:t}),s.current.sizeMap&&setTimeout(s.current.sizeMap,0)}};let re;if((0,d.useEffect)((()=>{"mapbox"===W?Y().then(J):Z(2)}),[]),(0,d.useEffect)(J,[y]),(0,d.useEffect)((()=>{G&&!L&&(Z(0),Y())}),[G]),S){const e=C.Z.find((e=>e.name===$));re=(0,r.createElement)("div",null,(0,r.createElement)("img",{alt:__("Map Preview","jetpack"),src:e?e.preview:b}))}else if(0===R)re=(0,r.createElement)(l.Placeholder,{icon:k},(0,r.createElement)(l.Spinner,null));else if(1===R)re=(0,r.createElement)(l.Placeholder,{icon:k,label:__("Map","jetpack"),notices:a},(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"components-placeholder__instructions"},__("To use the map block, you need an Access Token.","jetpack"),(0,r.createElement)("br",null),(0,r.createElement)(l.ExternalLink,{href:"https://www.mapbox.com"},__("Create an account or log in to Mapbox.","jetpack")),(0,r.createElement)("br",null),__("Locate and copy the default access token. Then, paste it into the field below.","jetpack")),(0,r.createElement)("form",null,(0,r.createElement)("input",{type:"text",className:"components-placeholder__input",disabled:U,placeholder:__("Paste Token Here","jetpack"),value:D,onChange:e=>F(e.target.value)}),(0,r.createElement)(l.Button,{variant:"secondary",disabled:U||!D||D.length<1,onClick:X},__("Set Token","jetpack")))));else if(2===R){const n=e=>F(e),a=s&&_.length<=1;re=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.BlockControls,null,(0,r.createElement)(E.Z,{attributes:t,setAttributes:e,apiKey:L,apiKeySource:z,apiKeyControl:D,onKeyChange:n,setPointVisibility:()=>T(!0),context:"toolbar",mapRef:V,mapProvider:W})),(0,r.createElement)(i.InspectorControls,null,(0,r.createElement)(E.Z,{attributes:t,setAttributes:e,apiKey:L,apiKeySource:z,apiKeyControl:D,onKeyChange:n,mapRef:V,instanceId:c,minHeight:400,removeAPIKey:ee,updateAPIKey:X,mapProvider:W})),(0,r.createElement)(l.ResizableBox,{size:{height:Q||"auto",width:"100%"},grid:[10,10],showHandle:s,minHeight:400,enable:B,onResizeStart:u,onResizeStop:ne},(0,r.createElement)("div",{className:"wp-block-jetpack-map__map_wrapper"},(0,r.createElement)(h.Z,{ref:V,address:y,scrollToZoom:a,showFullscreenButton:N,mapStyle:$||"default",mapDetails:w,mapHeight:Q,points:_,zoom:I,mapCenter:j,markerColor:x,onSetZoom:t=>{e({zoom:t})},admin:!0,apiKey:L,onSetPoints:t=>e({points:t}),onSetMapCenter:t=>e({mapCenter:t}),onMapLoaded:()=>T(!_.length),onMarkerClick:()=>T(!1),onError:te,mapProvider:W},s&&P&&(0,r.createElement)(g.Z,{onAddPoint:K,onClose:()=>T(!1),apiKey:L,onError:te,tagName:"AddPoint",mapProvider:W})))))}return(0,r.createElement)("div",q,n,re)}))},22055:(e,t,n)=>{"use strict";var r=n(31985),a=n(32334),s=n(55109),o=n(45051),i=n(740),l=n(19496),c=n(53289);(0,r.S)(a,{edit:i.Z,save:l.Z,styles:c.Z,deprecated:[o.Z,s.Z]})},1555:(e,t,n)=>{"use strict";function r(e,t){return fetch(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(e)}.json?access_token=${encodeURIComponent(t)}`).then((e=>e.json()))}n.d(t,{P:()=>r})},31852:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(3142),s=n(3156);const o=e=>{const t="mapbox"===e.mapProvider?a.Z:s.Z;return(0,r.createElement)(t,e)}},3142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(96881);const l=(0,o.__)("Add a marker…","jetpack");class c extends s.Component{constructor(){super(...arguments),this.textRef=(0,s.createRef)(),this.containerRef=(0,s.createRef)(),this.state={isEmpty:!0},this.autocompleter={name:"placeSearch",options:this.search,isDebounced:!0,getOptionLabel:e=>(0,r.createElement)("span",null,e.place_name),getOptionKeywords:e=>[e.place_name],getOptionCompletion:this.getOptionCompletion}}componentDidMount(){setTimeout((()=>{this.containerRef.current.querySelector("input").focus()}),50)}getOptionCompletion=e=>{const{value:t}=e,n={placeTitle:t.text,title:t.text,caption:t.place_name,id:t.id,coordinates:{longitude:t.geometry.coordinates[0],latitude:t.geometry.coordinates[1]}};return this.props.onAddPoint(n),t.text};search=e=>{const{apiKey:t,onError:n}=this.props,r="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(e)+".json?access_token="+t;return new Promise((function(e,t){const a=new XMLHttpRequest;a.open("GET",r),a.onload=function(){if(200===a.status){const t=JSON.parse(a.responseText);e(t.features)}else{const e=JSON.parse(a.responseText);n(e.statusText,e.responseJSON.message),t(new Error("Mapbox Places Error"))}},a.send()}))};onReset=()=>{this.textRef.current.value=null};render(){const{label:e}=this.props;return(0,r.createElement)("div",{ref:this.containerRef},(0,r.createElement)(a.BaseControl,{label:e,className:"components-location-search"},(0,r.createElement)(i.Z,{completer:this.autocompleter,onReset:this.onReset},(({isExpanded:e,listBoxId:t,activeId:n,onChange:s,onKeyDown:o})=>(0,r.createElement)(a.TextControl,{placeholder:l,ref:this.textRef,onChange:s,"aria-expanded":e,"aria-owns":t,"aria-activedescendant":n,onKeyDown:o})))))}}c.defaultProps={onError:()=>{}};const u=c},3156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(96881),l=n(72672);const c=(0,o.__)("Add a marker…","jetpack"),u=({label:e,onAddPoint:t})=>{const n=(0,s.useRef)(),o=(0,s.useRef)(),{mapkit:u}=(0,l.qw)(),d=new u.Search({includePointsOfInterest:!1}),p={name:"placeSearch",options:async e=>new Promise((function(t,n){d.autocomplete(e,((e,r)=>{if(e)return void n(e);const a=(r?.results.filter((e=>e.coordinate))??[]).map((e=>({...e,placeName:e.displayLines?.join(", "),original:e})));t(a)}))})),isDebounced:!0,getOptionLabel:e=>(0,r.createElement)("span",null,e.placeName),getOptionKeywords:e=>[e.placeName],getOptionCompletion:e=>{const{value:n}=e,r={placeTitle:n.placeName,title:n.placeName,caption:n.placeName,coordinates:{longitude:n.coordinate.longitude,latitude:n.coordinate.latitude},id:`${n.placeName} ${Number(n.coordinate.latitude).toFixed(2)} ${Number(n.coordinate.longitude).toFixed(2)}`};return d.search(n.original,((e,n)=>{if(!e){const{places:e}=n;if(e.length>0){const t=e[0];r.coordinates={longitude:t.coordinate.longitude,latitude:t.coordinate.latitude}}}t(r)})),n.placeName}};return(0,s.useEffect)((()=>{setTimeout((()=>{n.current.querySelector("input").focus()}),50)}),[]),(0,r.createElement)("div",{ref:n},(0,r.createElement)(a.BaseControl,{label:e,className:"components-location-search"},(0,r.createElement)(i.Z,{completer:p,onReset:()=>{o.current.value=""}},(({isExpanded:e,listBoxId:t,activeId:n,onChange:s,onKeyDown:i})=>(0,r.createElement)(a.TextControl,{placeholder:c,ref:o,onChange:s,"aria-expanded":e,"aria-owns":t,"aria-activedescendant":n,onKeyDown:i})))))}},57897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(55609),s=n(69307);class o extends s.Component{constructor(){super(...arguments),this.state={selectedCell:null}}onDeletePoint=e=>{const t=parseInt(e.target.getAttribute("data-id")),{points:n,onChange:r}=this.props,a=n.slice(0);a.splice(t,1),r(a)};setMarkerField(e,t,n){const{points:r,onChange:a}=this.props,s=r.slice(0);s[n][e]=t,a(s)}render(){const{points:e}=this.props,t=e.map(((e,t)=>(0,r.createElement)(a.PanelBody,{title:e.placeTitle,key:e.id,initialOpen:!1},(0,r.createElement)(a.TextControl,{label:"Marker Title",value:e.title,onChange:e=>this.setMarkerField("title",e,t)}),(0,r.createElement)(a.TextareaControl,{label:"Marker Caption",value:e.caption,rows:"3",onChange:e=>this.setMarkerField("caption",e,t)}),(0,r.createElement)(a.Button,{"data-id":t,onClick:this.onDeletePoint,className:"component__locations__delete-btn"},(0,r.createElement)(a.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))));return(0,r.createElement)("div",{className:"component__locations"},(0,r.createElement)(a.Panel,{className:"component__locations__panel"},t))}}o.defaultProps={points:Object.freeze([]),onChange:()=>{}};const i=o},96881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(55609),s=n(94333),o=n(69307),i=n(65736),l=n(39630),c=n(65235),u=n.n(c),d=n(92819);const __=i.__,_n=i._n;function p(e=[],t=10){const n=[];for(let r=0;r<e.length;r++){const a=e[r];let{keywords:s=[]}=a;if("string"==typeof a.label&&(s=[...s,a.label]),n.push(a),n.length===t)break}return n}class m extends o.Component{static getInitialState(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}constructor(){super(...arguments),this.debouncedLoadOptions=(0,d.debounce)(this.loadOptions,250),this.state=this.constructor.getInitialState()}componentWillUnmount(){this.debouncedLoadOptions.cancel()}select=e=>{const{completer:t}=this.props;(t.getOptionCompletion||{})(e),this.reset()};reset=()=>{this.setState(this.constructor.getInitialState())};handleFocusOutside(){this.reset()}loadOptions(e,t){const{options:n}=e,r=this.activePromise=Promise.resolve("function"==typeof n?n(t):n).then((t=>{if(r!==this.activePromise)return;const n=t.map(((t,n)=>({key:`${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}))),a=p(n),s=a.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({options:n,filteredOptions:a,selectedIndex:s,isOpen:a.length>0}),this.announce(a)}))}onChange=e=>{const{completer:t}=this.props,{options:n}=this.state;if(!e)return void this.reset();t&&(t.isDebounced?this.debouncedLoadOptions(t,e):this.loadOptions(t,e));const r=t?p(n):[];t&&this.setState({selectedIndex:0,filteredOptions:r,query:e})};onKeyDown=e=>{const{isOpen:t,selectedIndex:n,filteredOptions:r}=this.state;if(!t)return;let a;switch(e.keyCode){case l.UP:a=(0===n?r.length:n)-1,this.setState({selectedIndex:a});break;case l.DOWN:a=(n+1)%r.length,this.setState({selectedIndex:a});break;case l.ENTER:this.select(r[n]);break;case l.LEFT:case l.RIGHT:case l.ESCAPE:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()};announce(e){const{debouncedSpeak:t}=this.props;t&&(e.length?t((0,i.sprintf)(/* translators: placeholder is a number. */ | |
| 51 | -_n("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(__("No results.","jetpack"),"assertive"))}render(){const{onChange:e,onKeyDown:t}=this,{children:n,instanceId:s,completer:o}=this.props,{selectedIndex:i,filteredOptions:l}=this.state,{key:c=""}=l[i]||{},{className:p}=o,m=l.length>0,g=m?`components-autocomplete-listbox-${s}`:null,A=m?`components-autocomplete-item-${s}-${c}`:null;return(0,r.createElement)("div",{className:"components-autocomplete"},n({isExpanded:m,listBoxId:g,activeId:A,onChange:e,onKeyDown:t}),m&&(0,r.createElement)(a.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},(0,r.createElement)("div",{id:g,role:"listbox",className:"components-autocomplete__results"},(0,d.map)(l,((e,t)=>(0,r.createElement)(a.Button,{key:e.key,id:`components-autocomplete-item-${s}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:u()("components-autocomplete__result",p,{"is-selected":t===i}),onClick:()=>this.select(e)},e.label))))))}}const g=(0,s.compose)([a.withSpokenMessages,s.withInstanceId,a.withFocusOutside])(m)},90055:(e,t,n)=>{"use strict";function r(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}n.d(t,{h:()=>r})},84634:(e,t,n)=>{"use strict";n.d(t,{YB:()=>a,b2:()=>r,k:()=>s,xt:()=>i,zb:()=>o});const r=e=>e.hasOwnProperty("lat")&&e.hasOwnProperty("lng")?e:{lat:e.latitude||0,lng:e.longitude||0};function a(e,t){const n=new e.LngLatBounds;return t.forEach((e=>{n.extend([e.coordinates.longitude,e.coordinates.latitude])})),n}function s(e,t){e.fitBounds(t,{padding:{top:80,bottom:80,left:40,right:40}})}function o(e,t){e.innerHTML=`\n\t\t<?xml version="1.0" encoding="UTF-8"?>\n\t\t<svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t\t<g fill-rule="evenodd">\n\t\t\t\t<path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="${t}"/>\n\t\t\t</g>\n\t\t</svg>\n\t`}function i(e){return new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}})}},96442:(e,t,n)=>{"use strict";n.d(t,{E0:()=>d,E_:()=>i,F7:()=>l,eR:()=>c,ot:()=>o,rZ:()=>u});var r=n(85007);const a=6371e3;function s(e){return Math.abs(a*Math.cos(e*Math.PI/180)*2*Math.PI/256)}function o(e,t){return 512/Math.pow(2,e)*.5*s(t)}function i(e,t){const n=e/s(t);return Math.log2(512/(n/.5))}function l(e,t){if(0===t.length)return null;const n=new e.Coordinate(-90,180),r=new e.Coordinate(90,-180);t.forEach((e=>{n.latitude=Math.max(n.latitude,e.coordinates.latitude),n.longitude=Math.min(n.longitude,e.coordinates.longitude),r.latitude=Math.min(r.latitude,e.coordinates.latitude),r.longitude=Math.max(r.longitude,e.coordinates.longitude)}));const a=new e.Coordinate(n.latitude-.5*(n.latitude-r.latitude),n.longitude+.5*(r.longitude-n.longitude)),s=new e.CoordinateSpan(1.3*Math.abs(n.latitude-r.latitude),1.3*Math.abs(r.longitude-n.longitude));return new e.CoordinateRegion(a,s)}function c(e,t){return()=>{const n=e.createElement("div");return n.classList.add("mapkit-popup-content"),t(n),n}}function u(e,t){return new Promise((n=>{if(t.mapkitScriptIsLoading)(0,r.Dz)(t,"mapkit").then((e=>{n(e)}));else{t.mapkitScriptIsLoading=!0;const a=e.createElement("script");a.addEventListener("load",(async()=>{const e=await(0,r.Dz)(t,"mapkit");t.mapkitScriptIsLoading=!1,n(e)}),{once:!0}),a.src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js",a.crossOrigin="anonymous",e.head.appendChild(a)}}))}function d(e,t,n){return new Promise(((t,r)=>{n.mapkitIsInitialized?t():n.mapkitIsInitializing?function(e){return new Promise(((t,n)=>{const r=()=>{void 0===e.mapkitIsInitializing?n():!1===e.mapkitIsInitializing?t():e.requestAnimationFrame(r)};r()}))}(n).then((()=>{t()})):(n.mapkitIsInitializing=!0,n.mapkitIsInitialized=!1,e.init({authorizationCallback:async e=>{try{const a=await fetch("https://public-api.wordpress.com/wpcom/v2/mapkit");if(200===a.status){e((await a.json()).wpcom_mapkit_access_token)}else r();n.mapkitIsInitializing=!1,n.mapkitIsInitialized=!0,t()}catch(e){r()}}}))}))}},32037:(e,t,n)=>{"use strict";n.d(t,{L:()=>s,c:()=>o});var r=n(51806),a=n(69307);const s=(0,a.createContext)({map:null,mapkit:null,loaded:!1,activeMarker:null,calloutReference:null,currentDoc:null,currentWindow:null,admin:!1,setPoints:()=>{},points:[],previousCenter:null}),o=({value:e,children:t})=>{const[n,o]=(0,a.useState)(null),[i,l]=(0,a.useState)(null),[c,u]=(0,a.useState)(null);return(0,r.createElement)(s.Provider,{value:{...e,activeMarker:n,setActiveMarker:o,calloutReference:i,setCalloutReference:l,previousCenter:c,setPreviousCenter:u}},t)}},72672:(e,t,n)=>{"use strict";n.d(t,{$M:()=>m,J2:()=>E,LO:()=>g,Xj:()=>A,eV:()=>p,jo:()=>f,mk:()=>b,qw:()=>d,wd:()=>C,zZ:()=>h});var r=n(80428),a=n(9818),s=n(69307),o=n(65736),i=n(92819),l=n(85007),c=n(96442),u=n(32037);const __=o.__,d=()=>(0,s.useContext)(u.L),p=e=>{const[t,n]=(0,s.useState)(!1),[o,i]=(0,s.useState)(!1),[u,d]=(0,s.useState)(null),[p,m]=(0,s.useState)(null),[g,A]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const t=(0,a.select)(r.t).getBlogId(),{currentDoc:s,currentWindow:o}=(0,l.bL)(e.current);if(e.current){m(o),A(s);const e=__("Failed to retrieve a Mapkit API token. Please try refreshing.","jetpack");o.mapkit?(d(o.mapkit),(0,c.E0)(o.mapkit,t,o).then((()=>{n(!0)}),(()=>{i(e)}))):(0,c.rZ)(s,o).then((r=>{d(r),(0,c.E0)(r,t,o).then((()=>{n(!0)}),(()=>{i(e)}))}))}}),[e]),{loaded:t,error:o,mapkit:u,currentDoc:g,currentWindow:p}},m=(e,t,n)=>{const[r,a]=(0,s.useState)(null);return(0,s.useEffect)((()=>{e&&t&&a(new e.Map(n.current,{showsMapTypeControl:!1}))}),[e,t,n]),{map:r}},g=(e,t)=>{const{mapkit:n,map:r}=d(),a=(0,s.useRef)(e),o=(0,s.useRef)(t);(0,s.useEffect)((()=>{if(!n||!r||!a.current)return;const e=a.current?.lat??a.current?.latitude,t=a.current?.lng??a.current?.longitude;"number"==typeof e&&"number"==typeof t&&(r.center=new n.Coordinate(e,t))}),[n,r,a]),(0,s.useEffect)((()=>{if(!n||!r)return;const e=()=>{if(r.center){const{latitude:e,longitude:t}=r.center;o.current({lat:e,lng:t})}};return r.addEventListener("region-change-end",(0,i.debounce)(e,1e3)),()=>{r.removeEventListener("region-change-end",e)}}),[n,r,o])},A=e=>{const{mapkit:t,map:n}=d();(0,s.useEffect)((()=>{t&&n&&(n.mapType=(()=>{switch(e){case"satellite":return t.Map.MapTypes.Satellite;case"black_and_white":return t.Map.MapTypes.MutedStandard;case"hybrid":return t.Map.MapTypes.Hybrid;default:return t.Map.MapTypes.Standard}})())}),[t,n,e])},h=(e,t)=>{const{mapkit:n,map:r,points:a}=d();(0,s.useEffect)((()=>{if(n&&r)if(a&&a.length<=1){const t=(0,c.ot)(13,r.center.latitude);if(e){const t=(0,c.ot)(e,r.center.latitude);t!==r.cameraDistance&&(r.cameraDistance=t)}else t!==r.cameraDistance&&(r.cameraDistance=t);r.isZoomEnabled=!0,r.isScrollEnabled=!0}else r.region=(0,c.F7)(n,a),r.isZoomEnabled=!1,r.isScrollEnabled=!1}),[n,r,e,a]),(0,s.useEffect)((()=>{const e=()=>{t((0,c.E_)(r.cameraDistance,r.center.latitude))};return r.addEventListener("zoom-end",e),()=>{r.removeEventListener("zoom-end",e)}}),[n,r,t])},E=(e,t,n=null,r=null)=>{const{mapkit:a,map:o,loaded:i}=d(),l=(0,s.useRef)(n),c=(0,s.useRef)(r);(0,s.useEffect)((()=>{if(i){o.annotations.filter((t=>!e.find((e=>e.id===t.data.id)))).forEach((e=>o.removeAnnotation(e)));const n=e.map((e=>{const n=o.annotations.find((t=>t.data.id===e.id));if(n)return n.title=e.title,n.color=t,n;const r=new a.MarkerAnnotation(new a.Coordinate(e.coordinates.latitude,e.coordinates.longitude),{color:t,data:{id:e.id}});return r.calloutEnabled=!0,r.title=e.title,l.current&&(r.callout={calloutElementForAnnotation:l.current}),c.current&&r.addEventListener("select",(()=>c.current(e,o))),r}));o.annotations.length!==n.length&&o.showItems(n)}}),[e,i,o,a,t,l,c])},f=e=>{const{map:t,loaded:n}=d(),r=(0,s.useRef)(e);(0,s.useEffect)((()=>{n&&r.current(t)}),[n,t,r])},b=e=>{const{map:t,previousCenter:n,loaded:r}=d(),a=(0,s.useRef)(e);(0,s.useEffect)((()=>{r&&t.addEventListener("single-tap",(()=>{a.current(n)}))}),[r,t,n,a])},C=(e,t)=>{const{mapkit:n,map:r}=d();(0,s.useEffect)((()=>{if(n&&r&&e?.length){(new n.Geocoder).lookup(e,((e,n)=>{if(n?.results?.length){const e=n.results[0],r=e.formattedAddress,a={placeTitle:r,title:r,caption:r,coordinates:{longitude:e.coordinate.longitude,latitude:e.coordinate.latitude},id:`${r} ${Number(e.coordinate.latitude).toFixed(2)} ${Number(e.coordinate.longitude).toFixed(2)}`};t.current([a])}}))}}),[n,r,e,t])}},19496:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i),c=n(81518),u=n(53289);const d=({attributes:e})=>{const{align:t,mapDetails:n,points:r,zoom:i,mapCenter:d,markerColor:p,scrollToZoom:m,mapHeight:g,showFullscreenButton:A}=e,h=o.useBlockProps.save(),{className:E}=h,f=(0,c.t)(u.Z,E),b=r.map(((e,t)=>{const{longitude:n,latitude:r}=e.coordinates,a="https://www.google.com/maps/search/?api=1&query="+r+","+n;return(0,s.createElement)("li",{key:t},(0,s.createElement)("a",{href:a},e.title))}));return(0,s.createElement)("div",a()({},h,{className:l()(E,t?`align${t}`:null),"data-map-style":f,"data-map-details":n,"data-points":JSON.stringify(r),"data-zoom":i,"data-map-center":JSON.stringify(d),"data-marker-color":p,"data-scroll-to-zoom":m||null,"data-map-height":g||null,"data-show-fullscreen-button":A||null}),r.length>0&&(0,s.createElement)("ul",null,b))}},53289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(65736),a=n(80469),s=n(7247),o=n(13925),i=n(24873),l=n(25685),c=n(81667),u=n(15387),d=n(32566);const __=r.__,p=(0,d.Z)(),m=[{name:"default",label:__("Basic","jetpack"),preview:"mapkit"===p?i:o,isDefault:!0},{name:"black_and_white",label:"mapkit"===p?__("Muted","jetpack",0):__("Black & White","jetpack"),preview:"mapkit"===p?s:a},{name:"satellite",label:__("Satellite","jetpack"),preview:"mapkit"===p?c:l},{name:"terrain",label:__("Terrain","jetpack"),preview:u}]},32566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{if(e?.mapStyle&&["terrain"].includes(e.mapStyle))return"mapbox";const t=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()}("map_provider");return t||(window&&"string"==typeof window.Jetpack_Maps?.provider&&["mapbox","mapkit"].includes(window.Jetpack_Maps?.provider)?window.Jetpack_Maps?.provider:"mapbox")}},51321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(e,t=null)=>{if(t)e.style.height=t+"px";else{const t=e.offsetWidth,n=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,r=Math.min(t*(3/4),n);e.style.height=r+"px"}}},42689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(65235),s=n.n(a);const o=({className:e,label:t,isPressed:n,onClick:a})=>{const o=s()(e,"components-button components-tab-button",{"is-pressed":n});return(0,r.createElement)("button",{className:o,onClick:a},(0,r.createElement)("span",null,t))}},461:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(52175),s=n(94333),o=n(9818),i=n(69307),l=n(65736),c=n(42689),u=n(69283);const __=l.__,d="editor",p="preview",m=(0,s.compose)([(0,o.withSelect)((e=>({currentBlockId:e("core/block-editor").getSelectedBlockClientId()}))),(0,o.withDispatch)(((e,{currentBlockId:t})=>({removeBlock:()=>e("core/block-editor").removeBlocks(t)})))])((({attributes:e,setAttributes:t,isSelected:n,removeBlock:s})=>{const{source:o}=e,l=!o||""===o.trim(),m=(0,a.useBlockProps)(),{className:g}=m,[A,h]=(0,i.useState)(d),E=(0,i.useRef)(null),f=e=>t({source:e}),b=e=>{8===e.keyCode&&""===o&&(s(),e.preventDefault())};let C;return(0,i.useEffect)((()=>{n?A===d&&E?.current.focus():A===p&&h(d)}),[n,A,h]),C=!n&&l?(0,r.createElement)("p",{className:`${g}__placeholder`},__("Write your _Markdown_ **here**…","jetpack")):(0,r.createElement)("div",{className:g},(0,r.createElement)(a.BlockControls,null,(0,r.createElement)("div",{className:"components-toolbar"},(0,r.createElement)(c.Z,{className:g,label:__("Markdown","jetpack"),isPressed:A===d,onClick:()=>h(d)}),(0,r.createElement)(c.Z,{className:g,label:__("Preview","jetpack"),isPressed:A===p,onClick:()=>h(p)}))),A!==p&&n?(0,r.createElement)(a.PlainText,{className:`${g}__editor`,onChange:f,onKeyDown:b,"aria-label":__("Markdown","jetpack"),ref:E,value:o}):(0,r.createElement)(u.Z,{className:`${g}__preview`,source:o})),(0,r.createElement)("div",m,C)}))},49702:(e,t,n)=>{"use strict";var r=n(31985),a=n(41549),s=n(461),o=n(2683);(0,r.S)(a,{edit:s.Z,save:o.Z})},69283:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(52175),s=n(69307),o=n(65736),i=n(95601),l=n(82339),c=n.n(l);const __=o.__,u=new i.Z({typographer:!0}).use(c()),d=e=>{if("A"===e.target.nodeName){window.confirm(__("Are you sure you wish to leave this page?","jetpack"))||e.preventDefault()}},p=(e={})=>{const t=(0,a.__experimentalGetSpacingClassesAndStyles)?.(e);return t?.style?t.style:{}},m=({className:e,source:t="",attributes:n})=>(0,r.createElement)(s.RawHTML,{className:e,onClick:d,style:p(n)},t.length?u.render(t):"")},2683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(69283);const l=({attributes:e})=>{const t=o.useBlockProps.save();return(0,s.createElement)(i.Z,a()({},t,{source:e.source,attributes:e}))}},80196:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(55609),o=n(65736);const __=o.__,_x=o._x,i=e=>{const{defaultClassName:t,nextdoorShareUrl:n,onFormSubmit:a,setNextdoorShareUrl:o}=e;return(0,r.createElement)(s.PanelBody,{title:__("Embed URL","jetpack"),initialOpen:!0},(0,r.createElement)("form",{onSubmit:a,className:`${t}-embed-form-sidebar`},(0,r.createElement)("input",{type:"text",id:"nextdoorShareUrl",onChange:e=>o(e.target.value),placeholder:__("Nextdoor post URL","jetpack"),value:n||"",className:"components-placeholder__input"}),(0,r.createElement)("div",null,(0,r.createElement)(s.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))))},l=e=>(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(i,e))},26944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(51806),a=n(13419),s=n(52175),o=n(4981),i=n(55609),l=n(69307),c=n(65736),u=n(92819),d=n(4554),p=n(66936),m=n(80196),g=n(32771);const __=c.__,_x=c._x,A=(0,a.dM)(p);const h=({defaultClassName:e,iframeUrl:t,clientId:n})=>{const a=`\n\t\t<script>\n\t\t\twindow.addEventListener( 'message', function ( event ) {\n\t\t\t\tif ( ! event.origin.startsWith( 'https://nextdoor' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tvar iframe = document.getElementById( 'nextdoor-embed-${n}' );\n\t\t\t\tif ( event.source !== iframe.contentWindow ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tiframe.setAttribute( 'height', event.data.height );\n\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\t\t\t\twindow.parent.postMessage( { action: 'resize', width: clientBoundingRect.width, height: clientBoundingRect.height }, '*' );\n\t\t\t} );\n\t\t<\/script>\n\t\t<iframe id="nextdoor-embed-${n}" width="100%" height="200" frameBorder="0" src="${t}" title="${__("Nextdoor","jetpack")}" />\n\t\t`;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:`${e}-overlay`}),(0,r.createElement)(i.SandBox,{html:a}))},E=(0,i.withNotices)((function({attributes:e,clientId:t,name:n,noticeOperations:a,noticeUI:c,setAttributes:E}){const f=(0,s.useBlockProps)(),b=(0,o.getBlockDefaultClassName)(n),C=(0,d.S)(p.attributes,e);(0,u.isEqual)(C,e)||E(C);const{url:v}=C,[k,B]=(0,l.useState)(v?(0,g.en)(v):null),[y,w]=(0,l.useState)(k),_=()=>{a.removeAllNotices(),a.createErrorNotice(__("Your Nextdoor post couldn't be embedded. Please double check the URL or code.","jetpack"))},I=e=>{if(!e)return B(null),void _();if(e.preventDefault(),!y)return B(null),void _();const t=(0,g.en)(y);if(!t)return B(null),void _();B(t),E({url:t})},j=(0,r.createElement)(i.Placeholder,{label:__("Nextdoor","jetpack"),instructions:__("Enter the URL of your Nextdoor post to share below.","jetpack"),icon:A,notices:c},(0,r.createElement)("form",{onSubmit:I},(0,r.createElement)("input",{type:"text",id:"nextdoorShareUrl",onChange:e=>w(e.target.value),placeholder:__("Nextdoor post URL","jetpack"),value:y||"",className:"components-placeholder__input"}),(0,r.createElement)("div",null,(0,r.createElement)(i.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))));return(0,r.createElement)("div",f,(0,r.createElement)(m.Z,{defaultClassName:b,nextdoorShareUrl:y,onFormSubmit:I,setNextdoorShareUrl:w}),k?(0,r.createElement)(h,{defaultClassName:b,iframeUrl:k,clientId:t}):j)}))},26693:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(66936),o=n(26944),i=n(72402),l=n(32771);(0,a.S)(s,{edit:o.Z,save:i.Z,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&l.mL.test(e.textContent),transform:e=>{const t=(0,l.en)(e.textContent);return(0,r.createBlock)("jetpack/nextdoor",{url:t})}}]}})},72402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},32771:(e,t,n)=>{"use strict";n.d(t,{en:()=>o,mL:()=>r});const r=/(^|\/\/|www\.)(nextdoor\.[^"']*)/i,a=/([^/]+$)/,s=e=>{let t="";t=0===e.indexOf("https")?new URL(e):new URL("https:"+e);const n=t.pathname.match(a);if(n)return t.origin+"/embed/"+n[1]},o=e=>{if(!e||!e.match(r))return;const t=s(e);return t||void 0}},80452:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);const a={attributes:n(46385).attributes,supports:{align:!0,html:!1},save:({attributes:{rid:e}})=>(0,r.createElement)(r.Fragment,null,e.map((e=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}},70398:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);const a={attributes:n(46385).attributes,migrate:e=>{const{style:t,className:n}=e,r="standard"===t?"":`is-style-${t}`;return{...e,className:n?`${n} ${r}`:r}},isEligible:({style:e,className:t})=>!(!e||"standard"===e)&&(!t||-1===t.indexOf("is-style-")),save:({attributes:{rid:e}})=>(0,r.createElement)("div",null,e.map((e=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`},`https://www.opentable.com/restref/client/?rid=${e}`))))}},76851:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(51806),a=n(13419),s=n(52175),o=n(4981),i=n(55609),l=n(69307),c=n(65736),u=n(65235),d=n.n(u),p=n(92819),m=n(81518),g=n(4554),A=n(46385),h=n(47144),E=n(57087),f=n(14680),b=n(41007),C=n(48769);const __=c.__,v=(0,a.dM)(A);const k=(0,i.withNotices)((function({attributes:e,clientId:t,isSelected:n,name:u,noticeOperations:k,noticeUI:B,setAttributes:y}){const w=(0,s.useBlockProps)(),_=(0,o.getBlockDefaultClassName)(u),I=(0,g.S)(A.attributes,e);(0,p.isEqual)(I,e)||y(I);const{align:j,rid:x,iframe:S,domain:Q,lang:N,newtab:P,negativeMargin:T}=e,R=(0,p.isEmpty)(x),Z=(0,m.t)((0,f.Eo)(),e.className),L=(0,m.t)((0,f.Eo)(x),e.className),M=(0,b.Z)(L),D=(0,p.isEqual)(x,["1"]);(0,l.useEffect)((()=>{if(k.removeAllNotices(),!R&&!D&&"wide"===L&&"wide"!==j&&"full"!==j){const e=(0,r.createElement)(r.Fragment,null,__('With the OpenTable block you may encounter display issues if you use its "wide" style with anything other than "wide" or "full" alignment. The wide display style may also not work well on smaller screens.',"jetpack"));k.createNotice({status:"warning",content:e})}}),[D,j,R,x,L]),(0,l.useEffect)((()=>{"button"===Z&&Array.isArray(x)&&x?.length>1&&y({className:"",style:""})}),[x,Z,y]),(0,l.useEffect)((()=>{n&&(Array.isArray(x)&&x?.length>1?(0,o.unregisterBlockStyle)("jetpack/opentable",["button"]):(0,o.registerBlockStyle)("jetpack/opentable",f.jn))}),[n,x]),(0,l.useEffect)((()=>{"wide"===M&&"wide"===j&&y({align:""}),"wide"===L&&M&&L!==M&&y({align:"wide"}),y({style:L})}),[L]);const F=(0,f.fL)(x),z=e=>x?.length>1?["multi","button"!==e?e:"standard"]:["button"===e?"button":"standard","button"===e?"standard":e],O=e=>{Array.isArray(e)?y({rid:e,style:e.length>1&&"button"===L?"standard":L}):(e=>{const t=(0,C.CC)(e);t||(k.removeAllNotices(),k.createErrorNotice((0,r.createElement)(r.Fragment,null,(0,r.createElement)("strong",null,__("We ran into an issue","jetpack")),(0,r.createElement)("br",null),__("Please ensure this embed matches the one from your OpenTable account","jetpack"))));const n=(0,g.S)(A.attributes,t);y(n),k.removeAllNotices()})(e)},U=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.InspectorAdvancedControls,null,(0,r.createElement)(i.ToggleControl,{label:__("Load the widget in an iFrame (Recommended)","jetpack"),checked:S,onChange:()=>y({iframe:!S}),className:"is-opentable"}),"button"===L&&(0,r.createElement)(i.ToggleControl,{label:__("Remove button margin","jetpack"),checked:T,onChange:()=>y({negativeMargin:!T})})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(E.Z,{rids:x,onChange:O}),(0,r.createElement)(i.SelectControl,{label:__("Language","jetpack"),value:N,onChange:e=>y({lang:e}),options:h.V}),(0,r.createElement)(i.ToggleControl,{label:__("Open in a new window","jetpack"),checked:P,onChange:()=>y({newtab:!P})})))),H=(0,a.Wp)()||(0,a.Ug)()?"https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/":"https://jetpack.com/support/jetpack-blocks/opentable-block/",V=(0,r.createElement)(i.Placeholder,{label:__("OpenTable Reservation","jetpack"),icon:v,instructions:__("Enter your restaurant name, or paste an OpenTable Reservation Widget embed code.","jetpack"),notices:B},(0,r.createElement)(E.Z,{rids:x,onSubmit:O}),(0,r.createElement)("div",{className:`${_}-placeholder-links`},(0,r.createElement)(i.ExternalLink,{href:"https://restaurant.opentable.com/get-started/"},__("Sign up for OpenTable","jetpack")),(0,r.createElement)(i.ExternalLink,{href:H},__("Learn more","jetpack")))),q=d()({[`is-style-${L}`]:!R&&F.includes(L),"is-placeholder":R,"is-multi":"multi"===z(L)[0],[`align${j}`]:j,"has-no-margin":T});return(0,r.createElement)("div",w,B,(0,r.createElement)("div",{className:q},!R&&U,R?V:(e=>{const[n,a]=z(e||L);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:`${_}-overlay`}),(0,r.createElement)("iframe",{title:(0,c.sprintf)(/* translators: Placeholder is a unique ID. */ | |
| 52 | -__("Open Table Preview %s","jetpack"),t),scrolling:"no",src:`https://www.opentable.com/widget/reservation/canvas?rid=${(0,p.join)(x,"%2C")}&type=${n}&theme=${a}&overlay=false&domain=${Q}&lang=${N&&h.v.includes(N)?N:"en-US"}&newtab=${P}&disablega=true`}))})()))}))},92482:(e,t,n)=>{"use strict";var r=n(51806),a=n(52175),s=n(4981),o=n(31985),i=n(46385),l=n(80452),c=n(70398),u=n(76851),d=n(14680),p=n(48769);(0,o.S)(i,{edit:u.Z,save:({attributes:{rid:e}})=>{const t=a.useBlockProps.save();return(0,r.createElement)("div",t,e?.map(((e,t)=>(0,r.createElement)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,key:`${e}-${t}`},`https://www.opentable.com/restref/client/?rid=${e}`))))},attributes:i.attributes,styles:(0,d.Eo)(),transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&0===e.textContent.indexOf("http")&&(p.pU.test(e.textContent)||p.tC.test(e.textContent)),transform:e=>{const t=(0,p.CC)(e.textContent);return(0,s.createBlock)("jetpack/opentable",t)}}]},deprecated:[l.Z,c.Z]})},47144:(e,t,n)=>{"use strict";n.d(t,{V:()=>r,v:()=>a});const r=[{value:"en-US",label:"English"},{value:"fr-CA",label:"Français"},{value:"de-DE",label:"Deutsch"},{value:"es-MX",label:"Español"},{value:"ja-JP",label:"日本語"},{value:"nl-NL",label:"Nederlands"},{value:"it-IT",label:"Italiano"}],a=r.map((e=>e.value))},57087:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(82674),a=n.n(r),s=n(51806),o=n(55609),i=n(69307),l=n(65736),c=n(92819),u=n(25392);const __=l.__,_n=l._n,d=20;function p(e){const[t,n]=(0,i.useState)(""),r=(0,u.Z)(t,d),[l,p]=(0,i.useState)(e.rids||[]),m=/^(\d+)$|\(\#(\d+)\)$/,g=r.filter((e=>l.indexOf(e.rid.toString())<0)).map((e=>e.name+` (#${e.rid})`)),A=(0,s.createElement)(o.FormTokenField,a()({value:l,suggestions:g,saveTransform:e=>u.$.test(e)?"":e.trim(),onInputChange:n,maxSuggestions:d,label:_n("Restaurant","Restaurants",l.length,"jetpack")},e,{onChange:t=>{const n=t.map((e=>{const t=m.exec(e);return t[1]||t[2]}));p(n),e.onChange&&e.onChange(n)}}));return(0,s.createElement)("div",{className:"wp-block-jetpack-opentable-restaurant-picker"},e.onSubmit?(0,s.createElement)("form",{onSubmit:n=>{n.preventDefault(),e.onSubmit((0,c.isEmpty)(l)?t:l)}},A,(0,s.createElement)(o.Button,{variant:"secondary",type:"submit"},__("Embed","jetpack"))):A)}},14680:(e,t,n)=>{"use strict";n.d(t,{Eo:()=>o,fL:()=>i,jn:()=>s});var r=n(65736),a=n(92819);const __=r.__,s={name:"button",label:__("Button (210 x 113 pixels)","jetpack")},o=e=>(0,a.compact)([{name:"standard",label:__("Standard (224 x 301 pixels)","jetpack"),isDefault:!0},{name:"tall",label:__("Tall (288 x 490 pixels)","jetpack")},{name:"wide",label:__("Wide (840 x 150 pixels)","jetpack")},(!e||1===e.length)&&s]),i=e=>o(e).map((e=>e.name))},41007:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(69307);function a(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}},25392:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,Z:()=>o});var r=n(69307),a=n(92819);const s=/^\s*(http[s]?:\/\/|\<script)/;function o(e,t){const[n,o]=(0,r.useState)([]),i=(0,r.useCallback)((0,a.throttle)(((e="")=>{fetch("https://www.opentable.com/widget/reservation/restaurant-search?pageSize="+t+"&query="+encodeURIComponent(e)).then((e=>e.json())).then((e=>o((0,a.unionBy)(n,e.items,"rid"))))}),500),[n]);return(0,r.useEffect)((()=>{(0,a.isEmpty)(e)||s.test(e)||i(e)}),[e]),n}},48769:(e,t,n)=>{"use strict";n.d(t,{CC:()=>o,pU:()=>s,tC:()=>a});const r=/<\s*script[^>]*src\s*=\s*["']?([^"']*)/i,a=/restref=([0-9]+)&/,s=/rid=([0-9]+)&/,o=e=>{if(e)return(e=>{if(!e)return;let t="";if(t=0===e.indexOf("http")?new URL(e):new URL("http:"+e),!t.host||-1===t.host.indexOf("opentable")||!t.search)return;const n=new URLSearchParams(t.search);let r=n.get("theme");"button"===n.get("type")&&(r=n.get("type"));let a=n.getAll("rid");if(a&&0!==a.length||(a=n.getAll("restref")),!a||0===a.length)return;const s={};a&&(s.rid=a);const o=n.get("domain");o&&(s.domain=o);const i=n.get("iframe");i&&(s.iframe=i);const l=n.get("lang");l&&(s.lang=l);const c=n.get("newtab");return c&&(s.newtab=c),r&&(s.style=r),s})((e=>{const t=e.match(r);return t&&t[1]?t[1]:a.test(e)||s.test(e)?e:void 0})(e))}},14119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(52175),s=n(9818),o=n(69307),i=n(92694),l=n(65235),c=n.n(l),u=n(2327),d=n(16367),p=n(7652);const m=["jetpack/recurring-payments"];const g=function({clientId:e,attributes:t}){const{layout:n,fontSize:l}=t,{connectUrl:g,isApiConnected:A}=(0,s.useSelect)((e=>{const{getConnectUrl:t,isApiStateConnected:n}=e(p.h);return{connectUrl:t(),isApiConnected:n()}})),h=(0,s.useSelect)((t=>t("core/block-editor").getBlock(e).innerBlocks.filter((e=>"jetpack/recurring-payments"===e.name))),[e]);(0,o.useEffect)((()=>{(0,i.addFilter)("jetpack.recurringPayments.editorSettings","jetpack/payment-buttons-hide-nudges-from-inner-blocks",((e,t)=>h.some((e=>e.clientId===t))?{...e,showStripeNudge:!1,showUpgradeNudge:!1}:e))}),[h]);const E=!A&&!!g,f=(0,a.useBlockProps)({className:c()({"has-custom-font-size":!!l||t?.style?.typography?.fontSize})}),b=(0,a.useInnerBlocksProps)(f,{allowedBlocks:m,orientation:"horizontal",template:[["jetpack/recurring-payments"]],templateInsertUpdatesSelection:!0,layout:n});return delete b.id,delete b["data-block"],(0,r.createElement)("div",f,E&&(0,r.createElement)(a.BlockControls,{group:"block"},(0,r.createElement)(u.Z,{blockName:"jetpack/payment-buttons",connectUrl:g})),E&&(0,r.createElement)(d.U,{blockName:"payment-buttons"}),(0,r.createElement)("div",b))}},27780:(e,t,n)=>{"use strict";var r=n(31985),a=n(91731),s=n(14119),o=n(60357);(0,r.S)(a,{edit:s.Z,save:o.Z})},60357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s);function i({attributes:e}){const t=o()({"has-custom-font-size":!!e?.fontSize||e?.style?.typography?.fontSize}),n=a.useBlockProps.save({className:t}),s=a.useInnerBlocksProps.save(n);return(0,r.createElement)("div",s)}},48620:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);function s({variations:e,onSelect:t,label:n}){return(0,r.createElement)("ul",{"aria-label":n,className:"wp-block-jetpack-payments-intro__variation-picker"},e.map((e=>(0,r.createElement)("li",{key:e.name},(0,r.createElement)(a.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>t(e),className:"wp-block-jetpack-payments-intro__variation-picker__variation",label:e.description||e.title}),(0,r.createElement)("span",{className:"wp-block-jetpack-payments-intro__variation-picker__variation-label",role:"presentation"},e.title)))))}},15102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=[n(20075)]},66419:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={}},20075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>s.Z,save:()=>i,supports:()=>o.Z});var r=n(51806),a=n(52175),s=n(66419),o=n(87133);const i=()=>(0,r.createElement)(a.InnerBlocks.Content,null)},87133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={alignWide:!1,className:!0,customClassName:!1,html:!1,reusable:!1}},50215:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(52175),s=n(4981),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(92819),d=n(48620),p=n(31654),m=n(76039);const __=c.__;function g({name:e,clientId:t}){const n=e=>e.categories?.includes("shop"),c=(0,a.useBlockProps)(),{blockType:g,hasInnerBlocks:A,hasPatterns:h,settings:E}=(0,i.useSelect)((r=>{const{getBlocks:o,__experimentalGetAllowedPatterns:i,getSettings:l}=r(a.store);return{settings:l(),blockType:(0,s.getBlockType)(e),hasInnerBlocks:o(t)?.length>0,hasPatterns:i?.().filter(n).length>0}})),{replaceBlock:f,selectBlock:b,updateSettings:C}=(0,i.useDispatch)(a.store),v=(0,l.useCallback)((e=>{!0===E?.allowedBlockTypes||E?.allowedBlockTypes?.includes(e)||C({...E,allowedBlockTypes:[...E.allowedBlockTypes,e]})}),[E,C]),k=e=>{const n=e.name;v(n),f(t,(0,s.createBlock)(n)),b(t)},B=m.Z.filter((e=>(0,s.getBlockType)(e.name)));(0,l.useEffect)((()=>{A||s.registerBlockVariation||k(B[0])}));const y=B.length&&s.registerBlockVariation;let w,_=__("Please select which kind of payment you'd like to add.","jetpack");return h&&(_=__("Start by choosing one of our suggested layout patterns.","jetpack")),w=!A&&y?(0,r.createElement)(o.Placeholder,{icon:(0,u.get)(g,["icon","src"]),label:(0,u.get)(g,["title"]),instructions:_},h&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,{onBlockPatternSelect:e=>f(t,e.map(s.cloneBlock)),patternFilter:n}),(0,r.createElement)("p",null,__("Or use one of our blocks to create your own.","jetpack"))),(0,r.createElement)(d.Z,{label:__("Payment Block list","jetpack"),variations:B,onSelect:(e=B[0])=>{k(e)}})):(0,r.createElement)(a.InnerBlocks,null),(0,r.createElement)("div",c,w)}},5477:(e,t,n)=>{"use strict";var r=n(51806),a=n(52175),s=n(31985),o=n(98826),i=n(20134),l=n(24854),c=n(41424),u=n(15102),d=n(50215);(0,s.S)(c,{edit:d.Z,save:()=>{const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))},keywords:[...new Set([...c.keywords,o.title,...o.keywords,l.title,...l.keywords,i.title,...i.keywords])],deprecated:u.Z})},31654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736);const __=i.__;function l({onBlockPatternSelect:e,patternFilter:t}){const[n,i]=(0,o.useState)(!1);return a.__experimentalBlockPatternSetup?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.Button,{variant:"primary",onClick:()=>i(!0),className:"wp-payments-intro-pattern-picker__opener"},__("Choose a pattern","jetpack")),n&&(0,r.createElement)(s.Modal,{className:"wp-block-jetpack-payments-intro__pattern-picker__selection-modal",title:__("Choose a pattern","jetpack"),closeLabel:__("Cancel","jetpack"),onRequestClose:()=>i(!1)},(0,r.createElement)(a.__experimentalBlockPatternSetup,{onBlockPatternSelect:e,filterPatternsFn:t}))):null}},76039:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(13419),a=n(98826),s=n(91731),o=n(20134);const i=[[a.name,a],[s.name,s],[o.name,o]].map((([e,t])=>{const n=t.icon.src??t.icon;return{name:e.includes("/")?e:"jetpack/"+e,title:t.title,description:t.description,icon:"string"==typeof n&&n.toLowerCase().startsWith("<svg")?(0,r.dM)(t):n}}))},2415:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(51806),a=n(13419),s=n(52175),o=n(55609),i=n(9818),l=n(12238),c=n(69307),u=n(65736),d=n(61074),p=n(79404),m=n(24955),g=n(79201),A=n(17746),h=n(40083),E=n(19617),f=n(52143);const __=u.__;const b=function({className:e}){const t=(0,s.useBlockProps)(),n=(0,i.useSelect)((e=>e(l.store).getCurrentPostType()),[]),u=(0,E._)(n),{stripeConnectUrl:b,hasTierPlans:C}=(0,i.useSelect)((e=>{const{getNewsletterTierProducts:t,getConnectUrl:n}=e("jetpack/membership-products");return{stripeConnectUrl:n(),hasTierPlans:0!==t()?.length}})),[v,k]=(0,c.useState)(!1),B=(0,f.Nv)();function y(e){h.So.paid_subscribers.key!==e||!b&&C?B(e):k(!0)}(0,c.useEffect)((()=>{u&&u!==h.So.everybody.key||B(h.So.subscribers.key)}),[u,B]);const w=e=>e===h.So.paid_subscribers.key?h.So.paid_subscribers.label:h.So.subscribers.label,_=(e=>{switch(e){case h.So.subscribers.key:return __("Subscriber-only content below","jetpack");case h.So.paid_subscribers.key:return __("Paid content below this line","jetpack");default:return __("Paywall","jetpack")}})(u),I={width:`${_.length+1.2}em`,userSelect:"none"};let j=u??h.So.subscribers.key;return j===h.So.everybody.key&&(j=h.So.subscribers.key),(0,r.createElement)("div",t,(0,r.createElement)("div",{className:e},(0,r.createElement)("span",{style:I},_,(0,r.createElement)(d.Z,{icon:p.Z,size:16}))),(0,r.createElement)(s.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block"},(0,r.createElement)(o.ToolbarDropdownMenu,{className:"product-management-control-toolbar__dropdown-button",icon:m.Z,text:w(u)},(({onClose:e})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.MenuGroup,null,(0,r.createElement)(o.MenuItem,{onClick:()=>{y(h.So.subscribers.key),e()},isSelected:u===h.So.subscribers.key,icon:u===h.So.subscribers.key&&g.Z,iconPosition:"right"},w(h.So.subscribers.key)),(0,r.createElement)(o.MenuItem,{onClick:()=>{y(h.So.paid_subscribers.key),e()},isSelected:u===h.So.paid_subscribers.key,icon:u===h.So.paid_subscribers.key&&g.Z,iconPosition:"right"},w(h.So.paid_subscribers.key))))))),(0,r.createElement)(A.Z,{closeDialog:()=>k(!1),showDialog:v}),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(o.PanelBody,{className:"jetpack-subscribe-newsletters-panel",title:__("Content access","jetpack"),icon:(0,r.createElement)(a.Pm,null),initialOpen:!0},(0,r.createElement)(f.fH,{isEditorPanel:!0,accessLevel:j,stripeConnectUrl:b,hasTierPlans:C,postHasPaywallBlock:!0}))))}},83759:(e,t,n)=>{"use strict";var r=n(4981),a=n(9818),s=n(12238),o=n(31985),i=n(66408),l=n(2415),c=n(68900);const u=(0,a.subscribe)((()=>{const e=(0,a.select)(s.store).getCurrentPostType();null!==e&&(u(),e&&"post"!==e&&void 0!==(0,r.getBlockType)(i.name)&&(0,r.unregisterBlockType)(i.name))}));(0,o.S)(i,{edit:l.Z,save:()=>null,transforms:c.Z})},68900:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(4981),a=n(66408);const s={from:[{type:"block",blocks:["core/more","core/nextpage"],transform:()=>(0,r.createBlock)(a.name)}],to:[{type:"block",blocks:["core/more"],transform:()=>(0,r.createBlock)("core/more")},{type:"block",blocks:["core/nextpage"],transform:()=>(0,r.createBlock)("core/nextpage")}]}},15774:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(55388);const __=o.__,_x=o._x,l=(0,a.dM)(i);function c({className:e,onSubmit:t,noticeUI:n,url:a,setUrl:o}){return(0,r.createElement)("div",{className:e},(0,r.createElement)(s.Placeholder,{label:__("Pinterest","jetpack"),icon:l,notices:n},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault(),t()}},(0,r.createElement)("input",{type:"url",value:a,className:"components-placeholder__input","aria-label":__("Pinterest URL","jetpack"),placeholder:__("Enter URL to embed here…","jetpack"),onChange:e=>o(e.target.value)}),(0,r.createElement)(s.Button,{variant:"secondary",type:"submit"},_x("Embed","button label","jetpack")))))}},89488:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(4981),s=n(55609),o=n(69307),i=n(65736);const __=i.__,_x=i._x;function l({fallbackUrl:e,onClick:t}){return(0,r.createElement)(r.Fragment,null,__("Sorry, this content could not be embedded.","jetpack")," ",(0,r.createElement)(s.Button,{variant:"link",onClick:()=>{const n=(0,r.createElement)("a",{href:e},e);t((0,a.createBlock)("core/paragraph",{content:(0,o.renderToString)(n)}))}},_x("Convert block to link","button label","jetpack")))}},13647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__;function o(){return(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("p",null,__("Embedding…","jetpack")))}},85777:(e,t,n)=>{"use strict";n.d(t,{W:()=>a,a:()=>r});const r="https://pinterest.com/anapinskywalker/",a=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i},15479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(34098);const s={attributes:{url:{type:"string"}},supports:{align:!1,html:!1},save:({attributes:e,className:t})=>{const{url:n}=e;return(0,a.t)(n)?(0,r.createElement)("div",{className:t},(0,r.createElement)("a",{"data-pin-do":(0,a.t)(n),href:n})):null}}},43529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(15774),l=n(89488),c=n(13647),u=n(18867),d=n(34098);const p=(0,s.withNotices)((function({attributes:e,isSelected:t,noticeOperations:n,noticeUI:p,setAttributes:m,onReplace:g}){const{url:A}=e,h=(0,a.useBlockProps)(),{isFetching:E,pinterestUrl:f,testUrl:b,hasTestUrlError:C}=(0,u.Z)(),[v,k]=(0,o.useState)(!1),[B,y]=(0,o.useState)(""),[w,_]=(0,o.useState)(!1),I=(0,o.useCallback)((()=>(0,r.createElement)(l.Z,{fallbackUrl:B,onClick:g})),[C]),j=()=>{E||(b(B),_(!1))},x=()=>{k(!0)};if((0,o.useEffect)((()=>{A&&b(A)}),[]),(0,o.useEffect)((()=>{!t&&v&&k(!1)}),[t,v]),(0,o.useEffect)((()=>{m({url:f}),n.removeAllNotices(),f&&y(f),C&&n.createErrorNotice(I())}),[f,C,m,I]),E)return(0,r.createElement)(c.Z,null);const S=(0,d.t)(A);let Q;if(w||!A||A&&!S)Q=(0,r.createElement)(i.Z,{onSubmit:j,noticeUI:p,url:B,setUrl:y});else{const e=`<a data-pin-do='${S}' href='${A}'></a>`;Q=(0,r.createElement)("div",h,(0,r.createElement)("div",null,(0,r.createElement)(s.SandBox,{html:e,scripts:["https://assets.pinterest.com/js/pinit.js"],onFocus:x}),!v&&(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:x})))}return(0,r.createElement)("div",h,Q)}))},7414:(e,t,n)=>{"use strict";var r=n(31985),a=n(55388),s=n(15479),o=n(43529),i=n(54709);(0,r.S)(a,{edit:o.Z,save:i.Z,deprecated:[s.Z]})},18867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(69307),a=n(23621),s=n(85777);const o=(e="")=>{const[t,n]=(0,r.useState)(!1),[o,i]=(0,r.useState)(e),[l,c]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{o&&o!==s.a&&(n(!0),(0,a.Z)(o).then((e=>{n(!1),i(e),c(!1)})).catch((()=>{n(!1),i(o||void 0),c(!0)})))}),[o]),{isFetching:t,pinterestUrl:o,hasTestUrlError:l,testUrl:i}}},54709:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175);function i({attributes:e}){const t=o.useBlockProps.save(),{url:n}=e;return(0,s.createElement)("a",a()({},t,{href:n}),n)}},34098:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(96483),a=n(85777);function s(e){if(!a.W.test(e))return"";const t=(0,r.getPath)(e);return t?t.startsWith("pin/")?"embedPin":t.match(/^([^/]+)\/?$/)?"embedUser":t.match(/^([^/]+)\/([^/]+)\/?$/)?"embedBoard":"":""}},98075:(e,t,n)=>{"use strict";n.d(t,{G:()=>i,q:()=>l});var r=n(86989),a=n.n(r),s=n(96483),o=n(63226);const i=async()=>await a()({path:"/wpcom/v2/podcast-player/track-quantity"}),l=async({url:e,guids:t=[],fetchEpisodeOptions:n=!1})=>{let r,i,l;try{r=await a()({path:(0,s.addQueryArgs)("/wpcom/v2/podcast-player",{url:e,guids:t,"episode-options":n})})}catch(e){i=e}if(r)return{type:o.u,data:r};try{l=await a()({path:(0,s.addQueryArgs)("/oembed/1.0/proxy",{url:e})})}catch(e){}const c='<a href="'+e+'">'+e+"</a>";if(l&&l.html!==c)return{type:o.b};throw i}},77715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(69307),s=n(65235),o=n.n(s),i=n(29431);const l=(0,a.memo)((({playerId:e,title:t,cover:n,link:a,track:s,children:o,showEpisodeTitle:i,showCoverArt:l,showEpisodeDescription:u,colors:d})=>l||i||u?(0,r.createElement)("div",{className:"jetpack-podcast-player__header"},(0,r.createElement)("div",{className:"jetpack-podcast-player__current-track-info"},l&&n&&(0,r.createElement)("div",{className:"jetpack-podcast-player__cover"},(0,r.createElement)("img",{className:"jetpack-podcast-player__cover-image",src:n,alt:""})),i&&!!(t||s&&s.title)&&(0,r.createElement)(c,{playerId:e,title:t,link:a,track:s,colors:d})),!!(u&&s&&s.description)&&(0,r.createElement)("p",{id:`${e}__track-description`,className:"jetpack-podcast-player__track-description"},s.description),o):o)),c=(0,a.memo)((({playerId:e,title:t,link:n,track:a,colors:s={primary:{name:null,custom:null,classes:""}}})=>(0,r.createElement)("h2",{id:`${e}__title`,className:"jetpack-podcast-player__title"},!(!a||!a.title)&&(0,r.createElement)("span",{className:o()("jetpack-podcast-player__current-track-title",s.primary.classes),style:{color:s.primary.custom}},a.title,(0,r.createElement)("a",{className:"jetpack-podcast-player__track-title-link",href:a.link||a.src,target:"_blank",rel:"noopener noreferrer nofollow"},i.Z)),!!(a&&a.title&&t)&&(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"}," - "),!!t&&(0,r.createElement)(u,{title:t,link:n,colors:s})))),u=(0,a.memo)((({title:e,link:t})=>(0,r.createElement)("span",{className:"jetpack-podcast-player__podcast-title"},t?(0,r.createElement)("a",{className:"jetpack-podcast-player__link",href:t,target:"_blank",rel:"noopener noreferrer nofollow"},e):{title:e}))),d=l},39122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(69307),s=n(97115),o=n(72862);const i=(0,a.memo)((({playerId:e,tracks:t,selectTrack:n,currentTrack:a,playerState:i,colors:l})=>(0,r.createElement)("ol",{className:"jetpack-podcast-player__tracks","aria-labelledby":`jetpack-podcast-player__tracklist-title--${e}`,"aria-describedby":`jetpack-podcast-player__tracklist-description--${e}`},t.map(((e,t)=>{const c=a===t;return(0,r.createElement)(o.Z,{key:e.id,index:t,track:e,selectTrack:n,isActive:c,isPlaying:c&&i===s.Wp,isError:c&&i===s.Vy,colors:l})})))))},71600:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(51806),a=n(25158),s=n(94333),o=n(9818),i=n(69307),l=n(65736),c=n(65235),u=n.n(c),d=n(72752),p=n(97115),m=n(66085),g=n(77715),A=n(39122),h=n(71540);const __=l.__;class E extends i.Component{state={currentTrack:0,hasUserInteraction:!1};recordUserInteraction=()=>{this.state.hasUserInteraction||this.setState({hasUserInteraction:!0})};selectTrack=e=>{const{currentTrack:t}=this.state;if(t===e)return this.recordUserInteraction(),void this.props.toggleMediaSource(this.props.playerId);-1!==t&&this.props.pauseMediaSource(this.props.playerId),this.loadAndPlay(e)};loadTrack=e=>{const t=this.getTrack(e);if(!t)return!1;this.state.currentTrack!==e&&this.setState({currentTrack:e});const{title:n,link:r,description:s}=t;return this.props.updateMediaSourceData(this.props.playerId,{title:n,link:r}),(0,a.speak)(/* translators: %s is the track title. It describes the current state of the track as "Loading: [track title]". */ | |
| 53 | -`${(0,l.sprintf)(__("Loading: %s","jetpack"),n)} ${s}`,"assertive"),!0};loadAndPlay=e=>{this.recordUserInteraction(),this.loadTrack(e)&&this.props.playMediaSource(this.props.playerId)};getTrack=e=>this.props.tracks[e];handleError=e=>{if(!this.state.hasUserInteraction){const t=window.navigator.userAgent.match(/Trident\/7\./)?"IE11: Playing sounds in webpages setting is not checked":e;this.setState((()=>{throw new Error(t)}))}this.props.errorMediaSource(this.props.playerId),(0,a.speak)(`${__("Error: Episode unavailable - Open in a new tab","jetpack")}`,"assertive")};handlePlay=()=>{this.props.playMediaSource(this.props.playerId),this.setState({hasUserInteraction:!0})};handlePause=()=>{this.props.pauseMediaSource(this.props.playerId),this.props.playerState!==p.Vy&&this.props.pauseMediaSource(this.props.playerId)};handleTimeChange=e=>{this.props.setMediaSourceCurrentTime(this.props.playerId,e)};handleJump=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime-5)};handleSkip=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime+30)};updateMediaData=e=>{this.props.updateMediaSourceData(this.props.playerId,{duration:e.target?.duration,domId:e.target?.id})};registerPlayer(){const e=this.getTrack(this.state.currentTrack)||{},{playerId:t}=this.props;this.props.registerMediaSource(t,{title:e.title,link:e.link,state:p._5}),this.props.setDefaultMediaSource(t)}componentDidMount(){this.props.playerId&&this.registerPlayer()}componentWillUnmount(){this.props.playerId&&this.props.unregisterMediaSource(this.props.playerId)}componentDidUpdate(e){const t=e=>e?.length?e.map((e=>e.guid)):[],n=t(this.props.tracks),r=new Set(t(e.tracks));n.length===r.size&&n.every((e=>r.has(e)))||this.loadTrack(0)}static getDerivedStateFromProps(e,t){return e.tracks.length<=t.currentTrack?{...t,currentTrack:0}:null}render(){const{playerId:e,title:t,link:n,cover:a,tracks:s,attributes:o,currentTime:i,playerState:c}=this.props,{itemsToShow:p,primaryColor:h,customPrimaryColor:E,hexPrimaryColor:f,secondaryColor:b,customSecondaryColor:C,hexSecondaryColor:v,backgroundColor:k,customBackgroundColor:B,hexBackgroundColor:y,showCoverArt:w,showEpisodeTitle:_,showEpisodeDescription:I}=o,{currentTrack:j}=this.state,x=s.slice(0,p),S=this.getTrack(j),Q=(0,m.Aq)({primaryColor:h,customPrimaryColor:E,secondaryColor:b,customSecondaryColor:C,backgroundColor:k,customBackgroundColor:B}),N={color:C,backgroundColor:B,"--jetpack-podcast-player-primary":f,"--jetpack-podcast-player-secondary":v,"--jetpack-podcast-player-background":y},P=u()("jetpack-podcast-player",c,Q.secondary.classes,Q.background.classes);return(0,r.createElement)("section",{className:P,style:N,"aria-labelledby":t||S&&S.title?`${e}__title`:void 0,"aria-describedby":S&&S.description?`${e}__track-description`:void 0,"data-jetpack-iframe-ignore":!0},(0,r.createElement)(g.Z,{playerId:e,title:t,link:n,cover:a,track:this.getTrack(j),showCoverArt:w,showEpisodeTitle:_,showEpisodeDescription:I,colors:Q},(0,r.createElement)(d.Z,{onJumpBack:this.handleJump,onSkipForward:this.handleSkip,trackSource:this.getTrack(j).src,onPlay:this.handlePlay,onPause:this.handlePause,onError:this.handleError,playStatus:c,currentTime:i,onTimeChange:this.handleTimeChange,onMetadataLoaded:this.updateMediaData})),x.length>1&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("h4",{id:`jetpack-podcast-player__tracklist-title--${e}`,className:"jetpack-podcast-player--visually-hidden"},(0,l.sprintf)( | |
| 76 | +{label:__("50% - Show half of the document","jetpack"),value:"ar-50"}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(i.A,{icon:u.src,instructions:[__("Copy and paste your document link below.","jetpack"),__("If your document is private, only readers logged into a Google account with shared access to the document may view it.","jetpack")].join(" "),label:d,patterns:p,placeholder:_x("Enter the link here…","Embed block placeholder","jetpack"),mapUrl:()=>{if(0===p.length||""===f)return a;const e=a.match(p[0]);return null===e||void 0===e[1]||void 0===e[2]||void 0===e[3]?a:`${e[1]}://${e[2]}/${f}/d/${e[3]}/preview`},mismatchErrorMessage:__("The document couldn’t be embedded. To embed a document, use the link in your browser address bar when editing the document.","jetpack"),checkGoogleDocVisibility:!0,...e})}),(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{children:[(0,l.jsx)("p",{children:__("Select a different aspect-ratio to show more (or less) of your embedded document.","jetpack")}),(0,l.jsx)(o.SelectControl,{label:__("Aspect Ratio","jetpack"),value:t,options:b,onChange:e=>c({aspectRatio:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})})})]})}},85779(e,t,n){"use strict";var r=n(94375),o=n(94575),s=n(21466),a=n(99889),i=n(36417),c=n(60288);n(31624);(0,r.M)(o,{edit:s.A,save:a.A,transforms:(0,i.A)(o.name),variations:c.A})},4991(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56427),o=n(27723),s=n(13022),a=n(10790);const _x=o._x,i=({className:e,icon:t,instructions:n,label:o,notices:i,url:c,onSubmit:l,placeholder:u,updateUrl:d})=>(0,a.jsx)("div",{className:(0,s.A)("wp-block-jetpack-google-docs-embed-editmode",e),children:(0,a.jsx)(r.Placeholder,{icon:t,label:o,instructions:n,notices:i,children:(0,a.jsxs)("form",{onSubmit:l,children:[(0,a.jsx)("input",{type:"url",value:c||"",className:"components-placeholder__input",placeholder:u,onChange:e=>d(e.target.value)}),(0,a.jsx)(r.Button,{variant:"primary",type:"submit",children:_x("Embed","button label","jetpack")})]})})})},2743(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(1455),o=n.n(r),s=n(94715),a=n(74997),i=n(56427),c=n(29491),l=n(86087),u=n(27723),d=n(33196),p=n(4991),h=n(61816),m=n(10790);const __=u.__,_x=u._x,g=({children:e,mapUrl:t,url:n,className:r,interactive:s,toggleInteractive:a,noticeUI:i=null,noticeOperations:c={},checkGoogleDocVisibility:u=!1})=>{if((0,l.useEffect)(()=>{u&&o()({path:`/wpcom/v2/checkGoogleDocVisibility?url=${n}`}).catch(()=>{c.removeAllNotices(),c.createNotice({status:"warning",content:__("This document is private. Only readers logged into a Google account that the document is shared with can view it.","jetpack")})})},[n,u,c]),e)return e;let d=!1;return i&&(d=!0),(0,m.jsxs)(m.Fragment,{children:[i,(0,m.jsx)(h.A,{url:t(n),className:r,interactive:s,toggleInteractive:a,isPrivateURL:d})]})},f=(0,c.compose)(i.withNotices)(e=>{const{attributes:t,className:n,isSelected:r,setAttributes:o,icon:c="superhero-alt",instructions:h=__("Paste a link to the content you want to display.","jetpack"),forceEditing:f=!1,mismatchErrorMessage:b=__("It does not look like an embeddable URL.","jetpack"),label:v,mapUrl:y=e=>e,noticeOperations:k,noticeUI:w,patterns:x,placeholder:_=__("Enter URL to embed here…","jetpack"),children:j,onSubmitUrl:C=()=>{},checkGoogleDocVisibility:A=!1}=e,{url:S}=t,[E,T]=(0,l.useState)(!1),[N,P]=(0,l.useState)(!1),[B,I]=(0,l.useState)(S);f&&!E&&T(!0);(0,l.useEffect)(()=>{!r&&N&&P(!1)},[r]);const M=(0,l.useRef)(null),R=(0,s.useBlockProps)({className:"wp-block-jetpack-google-docs-embed",ref:M}),{title:L}=(0,a.getBlockType)(e.name),D=(0,u.sprintf)(/* translators: %s is replaced with the name of the embed provider */ | |
| 77 | +_x("%s URL","placeholder label","jetpack"),L);return(0,m.jsxs)("div",{...R,children:[(0,m.jsx)(s.BlockControls,{children:(0,m.jsx)(i.ToolbarGroup,{children:!E&&(0,m.jsx)(i.ToolbarButton,{icon:d.A,label:__("Edit URL","jetpack"),isActive:E,onClick:()=>{k.removeAllNotices(),T(!E)}})})}),E||!S?(0,m.jsx)(p.A,{className:n,icon:c,instructions:h,label:v||D,url:B,notices:w,placeholder:_,onSubmit:e=>{if(e&&e.preventDefault(),!x[0].test(B))return k.removeAllNotices(),void k.createErrorNotice(b);k.removeAllNotices(),T(!1),o({url:B}),C(B)},updateUrl:I}):(0,m.jsx)(g,{children:j,mapUrl:y,url:B,className:n,interactive:N,toggleInteractive:P,noticeUI:w,noticeOperations:k,checkGoogleDocVisibility:A})]})})},61816(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(57273),s=n(10790);const __=r.__,a=e=>{const{allowFullScreen:t=!0,isPrivateURL:n=!1,interactive:r,toggleInteractive:a,title:i=__("Embed URL","jetpack"),url:c}=e;return(0,s.jsxs)("figure",{children:[n?(0,s.jsx)("div",{className:"wp-block-jetpack-google-docs-embed__wrapper wp-block-jetpack-google-docs-embed__wrapper--error",children:(0,s.jsxs)("p",{className:"wp-block-jetpack-google-docs-embed__error-msg",children:[__("This Google Document is private.","jetpack"),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)(o.N,{openInNewTab:!0,href:c,children:__("Click here to open this document.","jetpack")})]})}):(0,s.jsx)("div",{className:"wp-block-jetpack-google-docs-embed__wrapper",children:(0,s.jsx)("iframe",{src:c,allowFullScreen:t,title:i,height:"450"})}),!r&&(0,s.jsx)("div",{className:"wp-block-jetpack-google-docs-embed__interactive-overlay",onMouseUp:()=>a(!0)})]})}},99889(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);const o=e=>{const{attributes:t}=e;return(0,r.jsx)("figure",{children:(0,r.jsx)("div",{className:"embed__wrapper",children:`\n${t.url}\n`})})}},36417(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(74997),o=n(86087),s=n(10790);const a=e=>{const t=[/^(http|https):\/\/(docs\.google.com)\/(spreadsheets|document|presentation)\/d\/([A-Za-z0-9_-]+).*?$/i];return{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&t[0].test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:t=>(0,r.createBlock)(e,{url:t.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],transform:({url:e})=>{const t=(0,s.jsx)("a",{href:e,children:e});return(0,r.createBlock)("core/paragraph",{content:(0,o.renderToString)(t)})}}]}}},60288(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(85985),o=n(27723);const __=o.__,s=[{name:"jetpack/google-docs",isDefault:!0,title:__("Google Docs","jetpack"),description:__("Embed a Google Document.","jetpack"),icon:"<svg viewBox='0 0 64 88' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z' /><path fill='#FDFFFF' d='M42,0l22,22H42V0z' /><path fill='#FDFFFF' d='M50,39H14v-5h36V39z M50,46H14v5h36V46z M40,58H14v5h26V58z' /></svg>",keywords:[__("document","jetpack"),__("gsuite","jetpack"),__("doc","jetpack")],attributes:{variation:"jetpack/google-docs"},isActive:["variation"]},{name:"jetpack/google-sheets",isDefault:!0,title:__("Google Sheets","jetpack"),description:__("Embed a Google Sheet.","jetpack"),icon:"<svg viewBox='0 0 64 88' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z' /><path fill='#FDFFFF' d='M42,0l22,22H42V0z' /><path fill='#FDFFFF' d='M12,34.5v28h40v-28H12z M17,39.5h12.5V46H17V39.5z M17,51h12.5v6.5H17V51z M47,57.5H34.5V51H47V57.5z M47,46 H34.5v-6.5H47V46z' /></svg>",keywords:[__("sheet","jetpack"),__("spreadsheet","jetpack")],attributes:{variation:"jetpack/google-sheets"},isActive:["variation"]},{name:"jetpack/google-slides",isDefault:!0,title:__("Google Slides","jetpack"),description:__("Embed a Google Slides presentation.","jetpack"),icon:"<svg viewBox='0 0 64 88' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z' /><path fill='#FDFFFF' d='M42,0l22,22H42V0z' /><path fill='#FDFFFF' d='M12,34.5v28h40v-28H12z M47,57.5H17v-18h30V57.5z' /></svg>",keywords:[__("slide","jetpack"),__("presentation","jetpack"),__("deck","jetpack")],attributes:{variation:"jetpack/google-slides"},isActive:["variation"]}].map(e=>({...e,icon:(0,r.Cq)(e)}))},11050(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__;function a({attributes:e,setAttributes:t}){const{orientation:n}=e;return(0,s.jsx)(r.PanelBody,{title:__("Orientation","jetpack"),children:(0,s.jsx)(r.RadioControl,{selected:n||"horizontal",options:[{label:__("Side by side","jetpack"),value:"horizontal"},{label:__("Above and below","jetpack"),value:"vertical"}],onChange:e=>t({orientation:e})})})}},6012(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(94715),o=n(56427),s=n(29491),a=n(86087),i=n(27723),c=n(90256),l=n(11050),u=n(33569),d=n(1149),p=(n(56262),n(91505),n(10790));const __=i.__,h=({attributes:e,clientId:t,isSelected:n,setAttributes:i})=>{const{align:h,imageBefore:m,imageAfter:g,caption:f,orientation:b}=e,v=(0,r.useBlockProps)(),y=(0,a.useRef)(void 0),[k,w]=(0,a.useState)(0),x=(0,s.useResizeObserver)(e=>{const t=e[0]?.contentRect.width;t&&w(t)},{box:"border-box"});(0,d.A)(e=>{e>0&&"undefined"!=typeof juxtapose&&juxtapose.sliders&&juxtapose.sliders.forEach(n=>{n.wrapper.id===t&&n.optimizeWrapper(e)})},200,k);const _=m&&m.url&&g&&g.url?"image-compare__comparison juxtapose":"image-compare__placeholder";return(0,a.useLayoutEffect)(()=>{m.url&&g.url&&"undefined"!=typeof juxtapose&&y.current&&(x(y.current),juxtapose.makeSlider(y?.current))},[h,m,g,b,x]),(0,p.jsxs)("figure",{...v,children:[(0,p.jsx)(r.InspectorControls,{children:(0,p.jsx)(l.A,{attributes:e,setAttributes:i})},"controls"),(0,p.jsx)("div",{ref:y,id:t,className:_,"data-mode":b||"horizontal",children:(0,p.jsxs)(o.Placeholder,{label:null,children:[(0,p.jsx)("div",{className:"image-compare__image-before",children:(0,p.jsx)(u.A,{image:{id:m.id,url:m.url,alt:m.alt},placeHolderLabel:__("Image before","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){const{src:t}=(0,c.AW)(e),{alt:n,id:r,media_details:o}=e,s=o?.width??e.width,a=o?.height??e.height;i({imageBefore:{id:r,url:t||e.url,alt:n,width:s,height:a}})}}})}),(0,p.jsx)("div",{className:"image-compare__image-after",children:(0,p.jsx)(u.A,{image:{id:g.id,url:g.url,alt:g.alt},placeHolderLabel:__("Image after","jetpack"),onChange:e=>{if("image"===e.media_type||"image"===e.type){const{src:t}=(0,c.AW)(e),{alt:n,id:r,media_details:o}=e,s=o?.width??e.width,a=o?.height??e.height;i({imageAfter:{id:r,url:t||e.url,alt:n,width:s,height:a}})}}})})]})}),(!r.RichText.isEmpty(f)||n&&m.url&&g.url)&&(0,p.jsx)(r.RichText,{tagName:"figcaption",placeholder:__("Write caption","jetpack"),value:f,onChange:e=>i({caption:e}),inlineToolbar:!0})]})}},33129(e,t,n){"use strict";var r=n(27723),o=n(94375),s=n(88285),a=n(6012),i=n(94739),c=n(93220),l=n(35067);const __=r.__;(0,o.M)(s,{edit:a.A,save:l.A,example:{attributes:{imageBefore:{id:1,url:c,alt:__("Before","jetpack")},imageAfter:{id:2,url:i,alt:__("After","jetpack")},caption:__("Example image","jetpack")}}})},33569(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(56427),s=n(29491),a=n(86087),i=n(10790);const c=(0,s.compose)([o.withNotices])(e=>{const{image:t,noticeOperations:n,noticeUI:o,onChange:s,placeHolderLabel:c}=e,l=(0,i.jsx)("img",{id:t.id,src:t.url,alt:t.alt}),u=(0,i.jsx)(a.Fragment,{children:(0,i.jsx)(r.MediaPlaceholder,{labels:{title:c},accept:"image/*",allowedTypes:["image"],onSelect:s,onError:e=>n.createErrorNotice(e),notices:o})});return t&&t.url?l:u})},35067(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=({attributes:e})=>{const t=r.useBlockProps.save(),{imageBefore:n,imageAfter:s,caption:a,orientation:i}=e;return(0,o.jsxs)("figure",{...t,children:[(0,o.jsxs)("div",{className:"juxtapose","data-mode":i||"horizontal",children:[(0,o.jsx)("img",{id:n.id,src:n.url,alt:n.alt,width:n.width,height:n.height,className:"image-compare__image-before"}),(0,o.jsx)("img",{id:s.id,src:s.url,alt:s.alt,width:s.width,height:s.height,className:"image-compare__image-after"})]}),!r.RichText.isEmpty(a)&&(0,o.jsx)(r.RichText.Content,{tagName:"figcaption",value:a})]})}},1149(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087);const o=(e,t,n)=>{(0,r.useEffect)(()=>{const r=setTimeout(()=>e(n),t);return()=>clearTimeout(r)},[n,e,t])}},91505(e,t,n){"use strict";var r=n(98490),o=n.n(r);n(65742);o()(function(){const e={sliders:[],OPTIMIZATION_ACCEPTED:1,OPTIMIZATION_WAS_CONSTRAINED:2};function t(e,t){const n=this;this.image=new Image,this.loaded=!1,this.image.onload=function(){n.loaded=!0,t._onLoaded()},this.image.src=e.src,this.image.alt=e.alt||"",this.label=e.label||!1}function n(e,t){e&&e.classList.add(t)}function r(e,t){e&&e.classList.remove(t)}function o(e){return{width:parseInt(window.getComputedStyle(e).width,10),height:parseInt(window.getComputedStyle(e).height,10)}}function s(e,t){let n;if("string"==typeof t||"number"==typeof t)n=parseInt(t,10);else{const r=e.getBoundingClientRect(),o={top:r.top+document.body.scrollTop+document.documentElement.scrollTop,left:r.left+document.body.scrollLeft+document.documentElement.scrollLeft},s=e.offsetWidth;n=(function(e){let t;return t=e.pageX?e.pageX:e.touches?e.touches[0].pageX:e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,t}(t)-o.left)/s*100}return n}function a(e,t,n){let r;if("string"==typeof t||"number"==typeof t)r=parseInt(t,10);else{const o=e.getBoundingClientRect(),s={top:o.top+n.body.scrollTop+n.documentElement.scrollTop,left:o.left+n.body.scrollLeft+n.documentElement.scrollLeft},a=e.offsetHeight;r=(function(e){let t;return t=e.pageY?e.pageY:e.touches?e.touches[0].pageY:e.clientY+document.body.scrollTop+document.documentElement.scrollTop,t}(t)-s.top)/a*100}return r}const i={animate:!0,showLabels:!0,makeResponsive:!0};function c(e){return"string"!=typeof e?Boolean(e):!("false"===e||""===e)}function l(e,n,r){let o;for(o in this.element=e,this.options={animate:!0,showLabels:!0,makeResponsive:!0,startingPosition:"50%",mode:"horizontal",callback:null},this.options)o in r&&(this.options[o]=o in i?c(r[o]):r[o]);2===n.length&&(this.imgBefore=new t(n[0],this),this.imgAfter=new t(n[1],this))}l.prototype={updateSlider:function(e,t){let o;o="vertical"===this.options.mode?a(this.slider,e,this.sliderParentDocument):s(this.slider,e),o=o.toFixed(2)+"%";const i=parseFloat(o),c=100-i+"%";i>0&&i<100&&(r(this.handle,"transition"),r(this.rightImage,"transition"),r(this.leftImage,"transition"),this.options.animate&&t&&(n(this.handle,"transition"),n(this.leftImage,"transition"),n(this.rightImage,"transition")),"vertical"===this.options.mode?(this.handle.style.top=o,this.leftImage.style.height=o,this.rightImage.style.height=c):(this.handle.style.left=o,this.leftImage.style.width=o,this.rightImage.style.width=c),this.sliderPosition=o)},getPosition:function(){return this.sliderPosition},displayLabel:function(e,t){const n=document.createElement("div");n.className="jx-label",n.setAttribute("tabindex",0),function(e,t){document.body.textContent?e.textContent=t:e.innerText=t}(n,t),e.appendChild(n)},setStartingPosition:function(e){this.options.startingPosition=e},calculateDims:function(e,t){const n=(r=this.imgBefore.image,{width:r.naturalWidth,height:r.naturalHeight,aspect:function(){return this.width/this.height}}).aspect();var r;return e?t=e/n:t&&(e=t*n),{width:e,height:t,ratio:n}},responsivizeIframe:function(e){return e.height<window.innerHeight?e.ratio>=1&&(this.wrapper.style.paddingTop=parseInt((window.innerHeight-e.height)/2)+"px"):e.height>window.innerHeight&&(e=this.calculateDims(0,window.innerHeight),this.wrapper.style.paddingLeft=parseInt((window.innerWidth-e.width)/2)+"px"),e},setWrapperDimensions:function(){const e=o(this.wrapper.parentNode).width,t=o(this.wrapper.parentNode).height;let n=this.calculateDims(e,t);window.location===window.parent.location||this.options.makeResponsive||(n=this.responsivizeIframe(n)),this.wrapper.style.height=parseInt(n.height)+"px",this.wrapper.style.width=parseInt(n.width)+"px"},optimizeWrapper:function(t){let n=e.OPTIMIZATION_ACCEPTED;return this.imgBefore.image.naturalWidth>=t&&this.imgAfter.image.naturalWidth>=t?(this.wrapper.style.width=t+"px",n=e.OPTIMIZATION_WAS_CONSTRAINED):this.imgAfter.image.naturalWidth<t?this.wrapper.style.width=this.imgAfter.image.naturalWidth+"px":this.wrapper.style.width=this.imgBefore.image.naturalWidth+"px",this.setWrapperDimensions(),n},_onLoaded:function(){if(this.imgBefore&&!0===this.imgBefore.loaded&&this.imgAfter&&!0===this.imgAfter.loaded){if(this.wrapper=this.element,!this.wrapper||this.wrapper.querySelector(".jx-slider"))return;n(this.wrapper,"juxtapose"),this.wrapper.style.width=this.imgBefore.image.naturalWidth,this.setWrapperDimensions(),this.slider=document.createElement("div"),this.slider.className="jx-slider",this.wrapper.appendChild(this.slider),this.sliderParentDocument=this.wrapper.ownerDocument,"horizontal"!==this.options.mode&&n(this.slider,this.options.mode),this.handle=document.createElement("div"),this.handle.className="jx-handle",this.rightImage=document.createElement("div"),this.rightImage.className="jx-image jx-right",this.rightImage.appendChild(this.imgAfter.image),this.leftImage=document.createElement("div"),this.leftImage.className="jx-image jx-left",this.leftImage.appendChild(this.imgBefore.image),this.slider.appendChild(this.handle),this.slider.appendChild(this.leftImage),this.slider.appendChild(this.rightImage),this.leftArrow=document.createElement("div"),this.rightArrow=document.createElement("div"),this.control=document.createElement("div"),this.controller=document.createElement("div"),this.leftArrow.className="jx-arrow jx-left",this.rightArrow.className="jx-arrow jx-right",this.control.className="jx-control",this.controller.className="jx-controller",this.controller.setAttribute("tabindex",0),this.controller.setAttribute("role","slider"),this.controller.setAttribute("aria-valuenow",50),this.controller.setAttribute("aria-valuemin",0),this.controller.setAttribute("aria-valuemax",100),this.controller.setAttribute("aria-label",window.imageCompareHandle?.msg||"Slide to compare images"),this.handle.appendChild(this.leftArrow),this.handle.appendChild(this.control),this.handle.appendChild(this.rightArrow),this.control.appendChild(this.controller),this._init()}},_init:function(){this.updateSlider(this.options.startingPosition,!1),!0===this.options.showLabels&&(this.imgBefore.label&&this.displayLabel(this.leftImage,this.imgBefore.label),this.imgAfter.label&&this.displayLabel(this.rightImage,this.imgAfter.label));const t=this;window.addEventListener("resize",function(){t.setWrapperDimensions()}),this.slider.addEventListener("mousedown",function(e){e.preventDefault(),t.updateSlider(e,!0);let n=!0;this.addEventListener("mousemove",function(e){e.preventDefault(),n&&t.updateSlider(e,!1)}),this.addEventListener("mouseup",function(e){e.preventDefault(),e.stopPropagation(),n=!1})}),this.slider.addEventListener("touchstart",function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!0),this.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation(),t.updateSlider(e,!1)})}),this.handle.addEventListener("keydown",function(e){const n=e.which||e.keyCode;let r=parseFloat(this.style.left);if(37===n){r-=1;const e=parseFloat(this.style.left)-1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}if(39===n){r+=1;const e=parseFloat(this.style.left)+1;t.updateSlider(e,!1),t.controller.setAttribute("aria-valuenow",r)}}),this.leftImage.addEventListener("keydown",function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("90%",!0),t.controller.setAttribute("aria-valuenow",91))}),this.rightImage.addEventListener("keydown",function(e){const n=e.which||e.keyCode;13!==n&&32!==n||(t.updateSlider("10%",!0),t.controller.setAttribute("aria-valuenow",10))}),e.sliders.push(this),this.options.callback&&"function"==typeof this.options.callback&&this.options.callback(this)}},e.makeSlider=function(t,r){void 0===r&&(r=e.sliders.length);const o=t,s=o.querySelectorAll("img");if(s.length<2)return;const a={};o.getAttribute("data-animate")&&(a.animate=o.getAttribute("data-animate")),o.getAttribute("data-showlabels")&&(a.showLabels=o.getAttribute("data-showlabels")),o.getAttribute("data-startingposition")&&(a.startingPosition=o.getAttribute("data-startingposition")),o.getAttribute("data-mode")&&(a.mode=o.getAttribute("data-mode")),o.getAttribute("data-makeresponsive")&&(a.mode=o.getAttribute("data-makeresponsive"));return n(t,"juxtapose-"+r),o.innerHTML?o.innerHTML="":o.innerText="",new e.JXSlider(t,[{src:s[0].src,label:s[0].getAttribute("data-label"),alt:s[0].alt},{src:s[1].src,label:s[1].getAttribute("data-label"),alt:s[1].alt}],a)},e.scanPage=function(){const t=document.querySelectorAll(".juxtapose");for(let n=0;n<t.length;n++)e.makeSlider(t[n],n)},e.JXSlider=l,window.juxtapose=e,e.scanPage()})},80427(e,t,n){"use strict";n.d(t,{B:()=>o,V:()=>r});const r=30,o="jetpack-new-instagram-connection"},64874(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),o=n(27723),s=n(57273),a=n(80427),i=n(10790);const __=o.__,_n=o._n;function c({accountImageTotal:e,attributes:t,currentUserConnected:n,disconnectFromService:c,shouldRenderSidebarNotice:l,setAttributes:u}){const{accessToken:d,columns:p,count:h,instagramUser:m,isStackedOnMobile:g,spacing:f}=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.PanelBody,{title:__("Account Settings","jetpack"),children:[(0,i.jsxs)(r.PanelRow,{children:[(0,i.jsx)("span",{children:__("Account","jetpack")}),(0,i.jsxs)(s.N,{openInNewTab:!0,href:`https://www.instagram.com/${m}/`,children:["@",m]})]}),n&&(0,i.jsx)(r.PanelRow,{children:(0,i.jsx)(r.Button,{isDestructive:!0,variant:"link",onClick:()=>c(d),children:__("Disconnect your account","jetpack")})})]}),(0,i.jsxs)(r.PanelBody,{title:__("Display Settings","jetpack"),children:[l?(()=>{const t=e?(0,o.sprintf)(/* translators: %s: the number of posts. */ | |
| 78 | +_n("There is currently only %s post in your Instagram account.","There are currently only %s posts in your Instagram account.",e,"jetpack"),e):__("There are currently no posts in your Instagram account.","jetpack");return(0,i.jsx)("div",{className:"wp-block-jetpack-instagram-gallery__count-notice",children:(0,i.jsx)(r.Notice,{isDismissible:!1,status:"info",children:t})})})():null,(0,i.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Number of Posts","jetpack"),value:h,onChange:e=>u({count:e}),min:1,max:a.V}),(0,i.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Number of Columns","jetpack"),value:p,onChange:e=>u({columns:e}),min:1,max:6}),(0,i.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Image Spacing (px)","jetpack"),value:f,onChange:e=>u({spacing:e}),min:0,max:50}),(0,i.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Stack on mobile","jetpack"),checked:g,onChange:()=>u({isStackedOnMobile:!g})})]})]})}},17084(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(85985),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(13022),l=n(66087),u=n(78218),d=n(89525),p=n(80427),h=n(64874),m=n(37765),g=n(49783),f=n(53495),b=n(80619),v=(n(93726),n(10790));const __=i.__,y=(0,s.withNotices)(e=>{const t=(0,o.useBlockProps)(),{attributes:n,isSelected:i,noticeOperations:y,noticeUI:k,setAttributes:w}=e,{accessToken:x,align:_,columns:j,count:C,isStackedOnMobile:A,spacing:S}=n;(0,a.useEffect)(()=>{const e=(0,u.y)(d.attributes,n);(0,l.isEqual)(e,n)||w(e)},[n,w]);const[E,T]=(0,a.useState)(x),{isRequestingWpcomConnectUrl:N,wpcomConnectUrl:P}=(0,f.A)(),{images:B,isLoadingGallery:I,setImages:M}=(0,b.A)({accessToken:x,noticeOperations:y,setAttributes:w,setSelectedAccount:T}),{connectToService:R,disconnectFromService:L,isConnecting:D,isRequestingUserConnections:F,userConnections:O}=(0,g.A)({accessToken:x,noticeOperations:y,selectedAccount:E,setAttributes:w,setImages:M,setSelectedAccount:T}),z=(0,r.gB)(),U=C>B.length?B.length:C,H=!I&&(!x||(0,l.isEmpty)(B)),$=!H,V=x&&I&&(0,l.isEmpty)(B),q=!H&&!V,G=(0,c.A)(t.className,{[`align${_}`]:_}),W=(0,c.A)("wp-block-jetpack-instagram-gallery__grid",`wp-block-jetpack-instagram-gallery__grid-columns-${j}`,{"is-stacked-on-mobile":A}),Z={gridGap:S,"--latest-instagram-posts-spacing":S?`${S}px`:void 0},J={padding:S},K=e=>{if(B[e]){const t=B[e];return(0,v.jsx)(m.A,{alt:t.title||t.url,src:t.url,attributes:n,spacing:S})}return(0,v.jsx)("img",{alt:__("Latest Instagram Posts placeholder","jetpack"),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNMyc2tBwAEOgG/c94mJwAAAABJRU5ErkJggg=="})},Y=()=>{E&&p.B!==E?w({accessToken:E,instagramUser:O.find(e=>e.token===E).username}):R()};return(0,v.jsxs)("div",{...t,className:G,children:[H&&(0,v.jsx)(s.Placeholder,{icon:"instagram",instructions:z?F||O.length?void 0:__("Connect to Instagram to start sharing your images.","jetpack"):__("First, you'll need to connect your WordPress.com account.","jetpack"),label:__("Latest Instagram Posts","jetpack"),notices:k,children:z?(()=>{const e=O.length>0,t=[...O.map(e=>({label:`@${e.username}`,value:e.token})),{label:__("Add a new account","jetpack"),value:p.B}],n=D||F||e&&!E;return(0,v.jsxs)("div",{children:[e&&(0,v.jsx)(s.RadioControl,{label:__("Select your Instagram account:","jetpack"),onChange:e=>T(e),options:t,selected:E}),p.B===E&&(0,v.jsx)("p",{className:"wp-block-jetpack-instagram-gallery__new-account-instructions",children:__("If you are currently logged in to Instagram on this device, you might need to log out of it first.","jetpack")}),(0,v.jsxs)(s.Button,{disabled:n,variant:"primary",onClick:Y,children:[D&&__("Connecting…","jetpack"),F&&__("Loading your connections…","jetpack"),!D&&!F&&__("Connect to Instagram","jetpack")]})]})})():(0,v.jsx)(s.Button,{disabled:N||!P,href:P,variant:"secondary",children:__("Connect to WordPress.com","jetpack")})}),V&&(0,v.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,v.jsx)(s.Spinner,{}),(0,v.jsx)("p",{children:__("Embedding…","jetpack")})]}),q&&(0,v.jsx)("div",{className:W,style:Z,children:Array.from(Array(i?C:U),(e,t)=>(0,v.jsx)("span",{className:(0,c.A)("wp-block-jetpack-instagram-gallery__grid-post"),style:J,children:K(t)},t))}),$&&(0,v.jsx)(o.InspectorControls,{children:(0,v.jsx)(h.A,{accountImageTotal:B.length,attributes:n,currentUserConnected:z,disconnectFromService:L,shouldRenderSidebarNotice:$&&!V&&B.length<C,setAttributes:w})})]})})},92585(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(89525),a=n(17084),i=n(90235);(0,o.M)(s,{edit:a.A,save:i.A,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"wpcom_instagram_widget"===e,transform:({instance:e})=>(0,r.createBlock)("jetpack/instagram-gallery",{columns:e.raw.columns,count:e.raw.count,accessToken:e.raw.token_id})}]}})},37765(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(13022),s=n(10790);function a({src:e,alt:t,spacing:n}){const[a,i]=(0,r.useState)(!1),[c,l]=(0,r.useState)("auto"),u=(0,r.useRef)(void 0),d=()=>{i(!0),l("auto")};(0,r.useEffect)(()=>{const t=e;if(t){const e=new window.Image;e.src=t,e.onload=d}u.current&&l(u.current.parentNode.getBoundingClientRect().width)},[e]);const p=-1*n,h=(0,o.A)("wp-block-jetpack-instagram-gallery__placeholder",{"is-loaded":a}),m=a?{margin:p}:{margin:p,height:c},g=(0,o.A)({"is-loaded":a});return(0,s.jsx)("span",{style:m,className:h,children:(0,s.jsx)("img",{alt:t,className:g,ref:u,src:e})})}},90235(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=({attributes:{instagramUser:e}})=>{const t=r.useBlockProps.save();return e&&(0,o.jsx)("div",{...t,children:(0,o.jsx)("a",{href:`https://www.instagram.com/${e}/`,rel:"noopener noreferrer",target:"_blank",children:`https://www.instagram.com/${e}/`})})};n.dn(s)},49783(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(85985),o=n(51119),s=n(1455),a=n.n(s),i=n(86087),c=n(27723),l=n(80427);const __=c.__;function u({accessToken:e,noticeOperations:t,selectedAccount:n,setAttributes:s,setImages:c,setSelectedAccount:u}){const[d,p]=(0,i.useState)(!1),[h,m]=(0,i.useState)(!1),[g,f]=(0,i.useState)([]),b=(0,r.gB)();(0,i.useEffect)(()=>{!e&&b&&(m(!0),a()({path:"/wpcom/v2/instagram-gallery/connections"}).then(e=>{m(!1),f(e)}).catch(()=>{m(!1),f([])}))},[e,b]),(0,i.useEffect)(()=>{l.B===n||g.find(e=>e.token===n)||u(void 0)},[n,u,g]);return{connectToService:()=>{t.removeAllNotices(),p(!0),a()({path:"/wpcom/v2/instagram-gallery/connect-url"}).then(e=>{const t=new o.A;t.open(e,"connect-to-instagram-popup","toolbar=0,location=0,menubar=0,"+t.getScreenCenterSpecs(700,700)),t.on("message",({keyring_id:e})=>{if(p(!1),e){const t=e.toString();s({accessToken:t}),u(t)}}),t.on("close",e=>{"connect-to-instagram-popup"===e&&p(!1)})}).catch(()=>{t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),p(!1)})},disconnectFromService:()=>{t.removeAllNotices(),s({accessToken:void 0,instagramUser:void 0}),c([])},isConnecting:d,isRequestingUserConnections:h,userConnections:g}}},53495(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(85985),o=n(1455),s=n.n(o),a=n(47143),i=n(86087),c=n(93832);function l(){const{isAutoDraft:e}=(0,a.useSelect)(e=>{const{status:t}=e("core/editor").getCurrentPost();return{isAutoDraft:"auto-draft"===t}}),{savePost:t}=(0,a.useDispatch)("core/editor"),[n,o]=(0,i.useState)(),[l,u]=(0,i.useState)(!1),d=(0,r.gB)();return(0,i.useEffect)(()=>{d||n||l||(e?t():(u(!0),s()({path:(0,c.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then(e=>{o(e),u(!1)})))},[d,e,l,t,n]),{isRequestingWpcomConnectUrl:l,wpcomConnectUrl:n}}},80619(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(1455),o=n.n(r),s=n(86087),a=n(27723),i=n(93832),c=n(66087),l=n(80427);const __=a.__;function u({accessToken:e,noticeOperations:t,setAttributes:n,setSelectedAccount:r}){const[a,u]=(0,s.useState)([]),[d,p]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{e&&(t.removeAllNotices(),p(!0),o()({path:(0,i.addQueryArgs)("/wpcom/v2/instagram-gallery/gallery",{access_token:e,count:l.V})}).then(({external_name:e,images:o})=>{if(p(!1),!o||!Array.isArray(o))return t.createErrorNotice(__("An error occurred. Please try again later.","jetpack")),u([]),n({accessToken:void 0,instagramUser:void 0}),void r(void 0);(0,c.isEmpty)(o)&&t.createErrorNotice(__("No images were found in your Instagram account.","jetpack")),n({instagramUser:e}),u(o)}).catch(()=>{p(!1),u([]),n({accessToken:void 0,instagramUser:void 0}),r(void 0)}))},[e,n,r]),{images:a,isLoadingGallery:d,setImages:u}}},62734(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(97999),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(57273),l=n(78218),u=n(63757),d=n(94530),p=n(86239),h=n(71969),m=(n(82412),n(10790));const __=i.__;const g=function({attributes:e,setAttributes:t}){const n=(0,o.useBlockProps)(),g=(0,l.y)(h.attributes,e),{showReblogButton:f,showAvatars:b}=g,v=!(0,r.isWpcomPlatformSite)(),y=[u,d,p],k=e=>e.preventDefault();return(0,m.jsxs)("div",{...n,children:[(0,m.jsxs)(o.InspectorControls,{children:[v&&(0,m.jsx)("div",{className:"wp-block-jetpack-like__learn-more",children:(0,m.jsx)(c.N,{openInNewTab:!0,href:"https://jetpack.com/support/likes/",children:__("Learn more","jetpack")})}),(0,m.jsxs)(s.PanelBody,{title:__("Settings","jetpack"),children:[(0,r.isSimpleSite)()&&(0,m.jsx)(s.ToggleControl,{label:__("Show reblog button","jetpack"),checked:f,onChange:()=>t({showReblogButton:!f}),__nextHasNoMarginBottom:!0}),(0,m.jsx)(s.ToggleControl,{label:__("Show avatars","jetpack"),checked:b,onChange:()=>t({showAvatars:!b}),__nextHasNoMarginBottom:!0})]})]},"like-inspector"),(0,m.jsxs)("div",{className:"wpl-likebox",children:[(0,r.isSimpleSite)()&&f&&(0,m.jsx)("div",{className:"wpl-button reblog",children:(0,m.jsx)("a",{href:"#",title:__("Reblog this post on your main site.","jetpack"),className:"reblog sd-button",rel:"nofollow",children:(0,m.jsx)("span",{children:__("Reblog","jetpack")})})}),(0,m.jsx)("div",{className:"wpl-button like",children:(0,m.jsx)("a",{href:"#",className:"sd-button like",rel:"nofollow",onClick:k,children:(0,m.jsx)("span",{children:__("Like","jetpack")})})}),b&&(0,m.jsx)("ul",{className:"wpl-avatars",children:y.map((e,t)=>(0,m.jsx)("li",{className:"wp-liker-me",children:(0,m.jsx)("a",{className:"wpl-liker",href:"#",rel:"nofollow",onClick:k,children:(0,m.jsx)("img",{src:e,className:"avatar avatar-30",width:30,height:30,alt:""})})},`liker-${t}`))}),(0,m.jsx)("div",{className:"wpl-count",children:(0,m.jsx)("span",{className:"wpl-count-text",children:(0,m.jsx)("a",{href:"#",onClick:k,children:(0,a.createInterpolateElement)((0,i.sprintf)( | |
| 79 | +// translators: %1$d: Number of likes | |
| 80 | +__("<span>%1$d</span> likes","jetpack"),y.length),{span:(0,m.jsx)("span",{className:"wpl-count-number"})})})})})]})]})}},67511(e,t,n){"use strict";var r=n(94375),o=n(71969),s=n(62734);n(82412);(0,r.M)(o,{edit:s.A,save:()=>null})},14737(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(56427),s=n(27723),a=n(13022),i=n(54790),c=n(10790);const __=s.__,l={name:"jetpack/button",attributes:{element:"button",text:__("Join my Mailchimp audience","jetpack"),uniqueId:"mailchimp-widget-id"}},u=({attributes:e,setAttributes:t,audition:n})=>{const{emailPlaceholder:s=i.Bd,consentText:u=i.Do,processingLabel:d=i.HD,successLabel:p=i.XO,errorLabel:h=i.Ys}=e,m={[i.k1]:d,[i.EM]:p,[i.Dc]:h}[n];return(0,c.jsxs)("div",{className:(0,a.A)({[`${i.j7}_notication-audition`]:n}),children:[(0,c.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,"aria-label":s,className:`${i.j7}_text-input`,disabled:!0,onChange:()=>!1,placeholder:s,title:__("You can edit the email placeholder in the sidebar.","jetpack"),type:"email"}),(0,c.jsx)(r.InnerBlocks,{template:[[l.name,l.attributes]],templateLock:"all"}),(0,c.jsx)(r.RichText,{tagName:"p",placeholder:__("Write consent text","jetpack"),value:u,onChange:e=>t({consentText:e}),inlineToolbar:!0}),n&&(0,c.jsx)("div",{className:`${i.j7}_notification ${i.j7}_${n}`,role:n===i.Dc?"alert":"status",children:m})]})}},54790(e,t,n){"use strict";n.d(t,{Bd:()=>d,Dc:()=>a,Do:()=>p,EM:()=>s,HD:()=>h,JA:()=>l,XO:()=>m,Ys:()=>g,an:()=>c,gI:()=>u,j7:()=>i,k1:()=>o});var r=n(27723);const __=r.__,o="processing",s="success",a="error",i="wp-block-jetpack-mailchimp",c=0,l=1,u=2,d=__("Enter your email","jetpack"),p=__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack"),h=__("Processing…","jetpack"),m=__("Success! You're on the list.","jetpack"),g=__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},99983(e,t,n){"use strict";n.d(t,{o:()=>p});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(57273),c=n(54790),l=n(22258),u=n(10790);const __=a.__,d=({auditionNotification:e,clearAudition:t,setAttributes:n,emailPlaceholder:r=c.Bd,processingLabel:s=c.HD,successLabel:a=c.XO,errorLabel:d=c.Ys,interests:p,signupFieldTag:h,signupFieldValue:m,connectURL:g})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.PanelBody,{title:__("Text Elements","jetpack"),children:(0,u.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Email Placeholder","jetpack"),value:r,onChange:e=>{n({emailPlaceholder:e}),t()}})}),(0,u.jsxs)(o.PanelBody,{title:__("Notifications","jetpack"),children:[(0,u.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Processing text","jetpack"),value:s,onChange:t=>{n({processingLabel:t}),e(c.k1)}}),(0,u.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Success text","jetpack"),value:a,onChange:t=>{n({successLabel:t}),e(c.EM)}}),(0,u.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Error text","jetpack"),value:d,onChange:t=>{n({errorLabel:t}),e(c.Dc)}})]}),(0,u.jsxs)(o.PanelBody,{title:__("Mailchimp Groups","jetpack"),children:[(0,u.jsx)(l.A,{interests:p,onChange:(e,t)=>{const r=[...new Set([...p,e])].filter(n=>!(n===e&&!t)&&n);n({interests:r})}}),(0,u.jsx)(i.N,{openInNewTab:!0,href:"https://mailchimp.com/help/send-groups-audience/",children:__("Learn about groups","jetpack")})]}),(0,u.jsxs)(o.PanelBody,{title:__("Signup Location Tracking","jetpack"),children:[(0,u.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Signup Field Tag","jetpack"),placeholder:__("SIGNUP","jetpack"),value:h,onChange:e=>n({signupFieldTag:e})}),(0,u.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Signup Field Value","jetpack"),placeholder:__("website","jetpack"),value:m,onChange:e=>n({signupFieldValue:e})}),(0,u.jsx)(i.N,{openInNewTab:!0,href:"https://mailchimp.com/help/determine-webpage-signup-location/",children:__("Learn about signup location tracking","jetpack")})]}),(0,u.jsx)(o.PanelBody,{title:__("Mailchimp Connection","jetpack"),children:(0,u.jsx)(i.N,{openInNewTab:!0,href:g,children:__("Manage Connection","jetpack")})})]}),p=({connectURL:e,attributes:t,setAttributes:n,setAudition:o})=>{const{emailPlaceholder:a=c.Bd,processingLabel:i=c.HD,successLabel:l=c.XO,errorLabel:p=c.Ys,interests:h,signupFieldTag:m,signupFieldValue:g}=t,f=(0,s.useRef)(null),b=()=>o(null);return(0,u.jsx)(r.InspectorControls,{children:(0,u.jsx)(d,{auditionNotification:e=>{o(e),f.current&&clearTimeout(f.current),f.current=setTimeout(b,3e3)},clearAudition:b,emailPlaceholder:a,processingLabel:i,successLabel:l,errorLabel:p,interests:h,setAttributes:n,signupFieldTag:m,signupFieldValue:g,connectURL:e})})}},31491(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(74997),o=n(27723),s=n(66087);const __=o.__,a=["submitButtonText","backgroundButtonColor","textButtonColor","submitButtonClasses","customBackgroundButtonColor","customTextButtonColor"],i={attributes:{emailPlaceholder:{type:"string",default:__("Enter your email","jetpack")},submitButtonText:{type:"string",default:__("Join my email list","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},submitButtonClasses:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},consentText:{type:"string",default:__("By clicking submit, you agree to share your email address with the site owner and Mailchimp to receive marketing, updates, and other emails from the site owner. Use the unsubscribe link in those emails to opt out at any time.","jetpack")},interests:{type:"array",default:[]},processingLabel:{type:"string",default:__("Processing…","jetpack")},signupFieldTag:{type:"string"},signupFieldValue:{type:"string"},successLabel:{type:"string",default:__("Success! You're on the list.","jetpack")},errorLabel:{type:"string",default:__("Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.","jetpack")},preview:{type:"boolean",default:!1}},migrate:e=>{const t=Object.fromEntries(Object.entries(e).filter(([e])=>!a.includes(e))),n={text:(o=e).submitButtonText||__("Join my email list","jetpack"),textColor:o.textButtonColor,customTextColor:o.customTextButtonColor,backgroundColor:o.backgroundButtonColor,customBackgroundColor:o.customBackgroundButtonColor};var o;return[t,[(0,r.createBlock)("jetpack/button",{element:"button",uniqueId:"mailchimp-widget-id",...n})]]},isEligible:(e,t)=>(0,s.isEmpty)(t)||Object.entries(e).some(([e,t])=>t&&a.includes(e)),save:()=>null}},321(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(85985),o=n(1455),s=n.n(o),a=n(94715),i=n(56427),c=n(86087),l=n(93832),u=n(37120),d=n(14737),p=n(54790),h=n(99983),m=n(61800),g=n(17527),f=n(10790);const b=(0,r.sh)(u),v=(0,i.withNotices)(({attributes:e,setAttributes:t,notices:n,noticeUI:o,noticeOperations:i})=>{const u=(0,a.useBlockProps)(),[v,y]=(0,c.useState)(null),[k,w]=(0,c.useState)(p.an),[x,_]=(0,c.useState)(null),[j,C]=(0,c.useState)(null),A=(0,c.useCallback)(()=>{const e=(0,r.gB)();e?s()({path:"/wpcom/v2/mailchimp",method:"GET"}).then(({connect_url:t,code:n})=>{_(t),w("connected"===n?p.JA:p.gI),C(e)},({message:t})=>{_(null),w(p.gI),C(e),i.removeAllNotices(),i.createErrorNotice(t)}):s()({path:(0,l.addQueryArgs)("/jetpack/v4/connection/url",{from:"jetpack-block-editor",redirect:window.location.href})}).then(t=>{_(t),w(p.gI),C(e)})},[_,w,C,i]);let S;return(0,c.useEffect)(()=>{A()},[A]),e.preview?S=(0,f.jsx)(d.A,{attributes:e,setAttributes:t,audition:v}):k===p.an?S=(0,f.jsx)(m.A,{icon:b,notices:n}):k===p.gI?S=j?(0,f.jsx)(g.W,{icon:b,notices:n,connectURL:x,apiCall:A}):(0,f.jsx)(g.V,{icon:b,notices:n,connectURL:x}):k===p.JA&&(S=(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(h.o,{connectURL:x,attributes:e,setAttributes:t,setAudition:y}),(0,f.jsx)(d.A,{attributes:e,setAttributes:t,audition:v})]})),(0,f.jsxs)("div",{...u,children:[o,S]})})},97618(e,t,n){"use strict";var r=n(94375),o=n(37120),s=n(31491),a=n(321),i=n(55378),c=n(47638);n(31369);(0,r.M)(o,{edit:a.A,save:i.A,deprecated:[s.A],transforms:c.A})},61800(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56427),o=n(27723),s=n(54790),a=n(10790);const __=o.__,i=({icon:e,notices:t})=>(0,a.jsx)(r.Placeholder,{icon:e,notices:t,className:s.j7,label:__("Mailchimp","jetpack"),children:(0,a.jsx)("div",{className:"align-center",children:(0,a.jsx)(r.Spinner,{})})})},22258(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(1455),o=n.n(r),s=n(56427),a=n(86087),i=n(10790);class c extends a.Component{state={interest_categories:[]};componentDidMount(){this.retrieveGroups()}retrieveGroups=()=>{o()({method:"GET",path:"/wpcom/v2/mailchimp/groups"}).then(e=>{const{interest_categories:t}=e;this.setState({interest_categories:t})})};render=()=>{const{interest_categories:e}=this.state,{interests:t,onChange:n}=this.props;return(0,i.jsx)(a.Fragment,{children:e&&(e||[]).map(e=>e.interests.map(e=>(0,i.jsx)(s.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.name,value:e.id,checked:t.includes(e.id),onChange:t=>n(e.id,t)},e.id)))})}}const l=c;c.defaultProps={interests:[],onChange:()=>null}},17527(e,t,n){"use strict";n.d(t,{V:()=>c,W:()=>i});var r=n(56427),o=n(27723),s=n(54790),a=n(10790);const __=o.__,i=({icon:e,notices:t,connectURL:n,apiCall:o})=>(0,a.jsxs)(r.Placeholder,{className:s.j7,icon:e,label:__("Mailchimp","jetpack"),notices:t,instructions:__("You need to connect your Mailchimp account and choose an audience in order to start collecting Email subscribers.","jetpack"),children:[(0,a.jsx)(r.Button,{variant:"secondary",href:n,target:"_blank",children:(0,a.jsx)("span",{children:__("Set up Mailchimp form","jetpack")})}),(0,a.jsx)("div",{className:`${s.j7}-recheck`,children:(0,a.jsx)(r.Button,{variant:"link",onClick:o,children:(0,a.jsx)("span",{children:__("Re-check Connection","jetpack")})})})]}),c=({icon:e,notices:t,connectURL:n})=>(0,a.jsx)(r.Placeholder,{className:s.j7,icon:e,label:__("Mailchimp","jetpack"),notices:t,instructions:__("First, you'll need to connect your WordPress.com account.","jetpack"),children:(0,a.jsx)(r.Button,{variant:"secondary",href:n,children:__("Connect to WordPress.com","jetpack")})})},55378(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=()=>{const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})};n.dn(s)},47638(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74997);const o={to:[{type:"block",blocks:["jetpack/subscriptions"],transform:()=>(0,r.createBlock)("jetpack/subscriptions")}]}},4408(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(56427),o=n(86087),s=n(27723),a=n(2202),i=(n(30938),n(10790));const __=s.__;class c extends o.Component{render(){const{onClose:e,onAddPoint:t,onError:n,apiKey:o,mapProvider:s}=this.props;return(0,i.jsxs)(r.Button,{className:"component__add-point",children:[__("Add marker","jetpack"),(0,i.jsxs)(r.Popover,{className:"component__add-point__popover",position:"bottom center",children:[(0,i.jsx)(r.Button,{className:"component__add-point__close",onClick:e,children:(0,i.jsx)(r.Dashicon,{icon:"no"})}),(0,i.jsx)(a.A,{onAddPoint:t,label:__("Add a location","jetpack"),apiKey:o,onError:n,mapProvider:s})]})]})}}c.defaultProps={onAddPoint:()=>{},onClose:()=>{},onError:()=>{},mapProvider:"mapbox"};const l=c},67613(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(86087),o=n(15244),s=n(40347),a=n(10790);const i=(0,r.forwardRef)((e,t)=>{if("mapkit"===e.mapProvider){const n={...e,ref:null};return(0,a.jsx)(s.A,{...n,ref:t})}return(0,a.jsx)(o.A,{...e,ref:t})})},35977(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(9216),o=n(90135),s=n(10790);const a=e=>"mapkit"===e.mapProvider?(0,s.jsx)(o.A,{...e}):(0,s.jsx)(r.A,{...e})},9216(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(16815);class s extends r.Component{componentDidMount(){const{mapboxgl:e}=this.props;this.el=document.createElement("DIV"),this.infowindow=(0,o.BY)(e),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}componentDidUpdate(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}render(){return this.el?(0,r.createPortal)(this.props.children,this.el):null}closeClick=()=>{this.props.unsetActiveMarker()};openWindow(){const{map:e,activeMarker:t}=this.props;this.infowindow.setLngLat(t.getPoint()).addTo(e)}closeWindow(){this.infowindow.remove()}}s.defaultProps={unsetActiveMarker:()=>{},activeMarker:null,map:null,mapboxgl:null};const a=s},90135(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),o=n(86087),s=n(27723),a=n(5389),i=n(10790);const __=s.__,c=()=>{const{activeMarker:e,setActiveMarker:t,calloutReference:n,admin:s,points:c,setPoints:l}=(0,a.ST)(),[u,d]=(0,o.useState)(c),[p,h]=(0,o.useState)(!1),{title:m,caption:g}=u.find(t=>t.id===e?.id)||{},f=t=>{const n=c.map(n=>n.id===e.id?{...n,...t}:n);d(n),h(!0)};return(0,o.useEffect)(()=>{!e&&p&&l(u)},[e,p,u,l]),(0,o.useEffect)(()=>{d(c),h(!1)},[c]),e&&n?(0,o.createPortal)((0,i.jsxs)(o.Fragment,{children:[s&&(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)(r.TextControl,{label:__("Marker Title","jetpack"),value:m,onChange:e=>f({title:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,i.jsx)(r.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:g,rows:"2",tag:"textarea",onChange:e=>f({caption:e}),__nextHasNoMarginBottom:!0}),(0,i.jsxs)(r.Button,{onClick:()=>{const n=c.filter(t=>t.id!==e.id);d(n),h(!0),t(null)},className:"wp-block-jetpack-map__delete-btn",children:[(0,i.jsx)(r.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack")]})]}),!s&&(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("h3",{children:m}),(0,i.jsx)("p",{children:g})]})]}),n):null}},56099(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(86087),o=n(34377),s=n(16815);n(50221);class a extends r.Component{componentDidMount(){this.renderMarker()}componentWillUnmount(){this.marker&&(this.marker.remove(),this.marker=null)}componentDidUpdate(){this.renderMarker()}handleClick=()=>{const{onClick:e}=this.props;e(this)};getPoint=()=>{const{point:e}=this.props;return[e.coordinates.longitude,e.coordinates.latitude]};renderMarker(){const{map:e,point:t,mapboxgl:n,markerColor:r,mapRef:a}=this.props,{handleClick:i}=this,c=[t.coordinates.longitude,t.coordinates.latitude],{currentDoc:l}=(0,o.sG)(a.current),u=this.marker?this.marker.getElement():l.createElement("div");this.marker?this.marker.setLngLat(c):(u.className="wp-block-jetpack-map-marker",this.marker=new n.Marker(u).setLngLat(c).setOffset([0,-19]).addTo(e),this.marker.getElement().addEventListener("click",i)),(0,s.iU)(u,r)}render(){return null}}a.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:()=>{}};const i=a},15244(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(56427),o=n(86087),s=n(27723),a=n(66087),i=n(34377),c=n(55740),l=n(82063),u=n(16815),d=n(91844),p=n(35977),h=n(56099),m=n(10790);const __=s.__;class g extends o.Component{constructor(){super(...arguments),this.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},this.mapRef=(0,o.createRef)(),this.debouncedSizeMap=(0,a.debounce)(this.sizeMap,250)}render(){const{points:e,admin:t,children:n,markerColor:s}=this.props,{map:a,activeMarker:i,mapboxgl:c}=this.state,{onMarkerClick:l,deleteActiveMarker:u,updateActiveMarker:d}=this,g=i?.props?.point||{},{title:f,caption:b}=g,v=o.Children.map(n,e=>{const t=e?.props?.tagName;if("AddPoint"===t)return e}),y=a&&c&&e.map((e,t)=>(0,m.jsx)(h.A,{mapRef:this.mapRef,point:e,index:t,map:a,mapboxgl:c,markerColor:s,onClick:l},t)),k=c&&(0,m.jsxs)(p.A,{activeMarker:i,map:a,mapboxgl:c,unsetActiveMarker:()=>this.setState({activeMarker:null}),children:[i&&t&&(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)(r.TextControl,{label:__("Marker Title","jetpack"),value:f,onChange:e=>d({title:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,m.jsx)(r.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:__("Marker Caption","jetpack"),value:b,rows:"2",tag:"textarea",onChange:e=>d({caption:e}),__nextHasNoMarginBottom:!0}),(0,m.jsxs)(r.Button,{onClick:u,className:"wp-block-jetpack-map__delete-btn",children:[(0,m.jsx)(r.Dashicon,{icon:"trash",size:"15"})," ",__("Delete Marker","jetpack")]})]}),i&&!t&&(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)("h3",{children:f}),(0,m.jsx)("p",{children:b})]})]});return(0,m.jsxs)(o.Fragment,{children:[(0,m.jsx)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef,children:y}),k,v]})}componentDidMount(){const{apiKey:e}=this.props;e&&this.loadMapLibraries()}componentWillUnmount(){this.debouncedSizeMap.cancel(),window.removeEventListener("resize",this.debouncedSizeMap)}componentDidUpdate(e){const{admin:t,apiKey:n,children:r,points:o,mapStyle:s,mapDetails:a,scrollToZoom:i,showFullscreenButton:c}=this.props,{map:l,fullscreenControl:u}=this.state;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),o!==e.points&&this.setBoundsByMarkers(),o.length!==e.points.length&&this.clearCurrentMarker(),s===e.mapStyle&&a===e.mapDetails||l.setStyle(this.getMapStyle()),i!==e.scrollToZoom&&(i?l.scrollZoom.enable():l.scrollZoom.disable()),c!==e.showFullscreenButton&&(c?(l.addControl(u),t&&u._fullscreenButton&&(u._fullscreenButton.disabled=!0)):l.removeControl(u))}onMarkerClick=e=>{const{onMarkerClick:t}=this.props;this.setState({activeMarker:e}),t()};onMapClick=()=>{this.setState({activeMarker:null})};clearCurrentMarker=()=>{this.setState({activeMarker:null})};updateActiveMarker=e=>{const{points:t}=this.props,{activeMarker:n}=this.state,{index:r}=n.props,o=t.slice(0);Object.assign(o[r],e),this.props.onSetPoints(o)};deleteActiveMarker=()=>{const{points:e}=this.props,{activeMarker:t}=this.state,{index:n}=t.props,r=e.slice(0);r.splice(n,1),this.props.onSetPoints(r),this.setState({activeMarker:null})};sizeMap=()=>{const{mapHeight:e}=this.props,{map:t}=this.state,n=this.mapRef.current;(0,d.A)(n,e),t.resize(),this.setBoundsByMarkers()};updateZoom=()=>{const{zoom:e}=this.props,{map:t}=this.state;t.setZoom(e)};setBoundsByMarkers=()=>{const{admin:e,onSetMapCenter:t,onSetZoom:n,points:r,zoom:o}=this.props,{map:s,activeMarker:a,mapboxgl:i,zoomControl:c,boundsSetProgrammatically:l}=this.state;if(!s)return;if(r.length&&e?s.dragPan.disable():s.dragPan.enable(),!r.length)return;if(a)return;const d=(0,u.ES)(i,r);if(t(d.getCenter()),r.length>1){(0,u._t)(s,d),this.setState({boundsSetProgrammatically:!0});try{s.removeControl(c)}catch{}}else{if(s.setCenter(d.getCenter()),l){const e=12;s.setZoom(e),n(e)}else s.setZoom(parseInt(o,10));s.addControl(c),this.setState({boundsSetProgrammatically:!1})}};getMapStyle(){const{mapStyle:e,mapDetails:t}=this.props;return(0,l.o)(e,t)}getMapType(){const{mapStyle:e}=this.props;switch(e){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";default:return"ROADMAP"}}scriptsLoaded=()=>{const{mapCenter:e,points:t}=this.props;this.setState({loaded:!0}),t.length,this.initMap(e)};loadMapLibraries(){const{apiKey:e}=this.props,{currentWindow:t}=(0,i.sG)(this.mapRef.current),n={"mapbox-gl-js":()=>{(0,i.Cu)(t,"mapboxgl").then(t=>{t.accessToken=e,this.setState({mapboxgl:t},this.scriptsLoaded)})}};(0,i.a$)(c,n,this.mapRef.current)}initMap(e){const{mapboxgl:t}=this.state,{zoom:n,onMapLoaded:r,onError:o,scrollToZoom:s,showFullscreenButton:a,admin:i}=this.props;let c=null;try{c=new t.Map({container:this.mapRef.current,style:this.getMapStyle(),center:(0,u.jF)(e),zoom:parseInt(n,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(e){return void o("mapbox_error",e.message)}s||c.scrollZoom.disable();const l=new t.FullscreenControl;c.on("error",e=>{o("mapbox_error",e.error.message)});const d=new t.NavigationControl({showCompass:!1,showZoom:!0});c.on("zoomend",()=>{this.props.onSetZoom(c.getZoom())}),c.on("moveend",()=>{const{onSetMapCenter:e,points:t}=this.props;t.length<1&&e(c.getCenter())}),c.getCanvas().addEventListener("click",this.onMapClick),this.setState(({map:e})=>{try{e?.remove()}catch{}return{map:c,zoomControl:d,fullscreenControl:l}},()=>{this.debouncedSizeMap(),c.addControl(d),a&&(c.addControl(l),i&&l._fullscreenButton&&(l._fullscreenButton.disabled=!0)),this.mapRef.current.addEventListener("alignmentChanged",this.debouncedSizeMap),c.resize(),r(),this.setState({loaded:!0}),window.addEventListener("resize",this.debouncedSizeMap)})}}g.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:()=>{},onSetMapCenter:()=>{},onMapLoaded:()=>{},onMarkerClick:()=>{},onError:()=>{},markerColor:"red",apiKey:null,mapCenter:{},address:null};const f=g},40347(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(86087),o=n(39698),s=n(5389),a=n(42470),i=n(35977),c=n(10790);const l=(0,r.forwardRef)(({admin:e,points:t=[],mapStyle:n="default",zoom:a=13,onSetZoom:l=()=>{},onSetMapCenter:d=()=>{},onMapLoaded:p=()=>{},onMarkerClick:h=()=>{},onError:m=()=>{},markerColor:g="red",mapCenter:f={},mapHeight:b=400,address:v=null,onSetPoints:y,children:k},w)=>{const{loaded:x,error:_,mapkit:j,currentDoc:C,currentWindow:A}=(0,s.PC)(w),{map:S}=(0,s.I3)(j,x,w),E=r.Children.map(k,e=>{const t=e?.props?.tagName;if("AddPoint"===t)return e}),[T,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>{_&&m("mapkit_error",_)},[_,m]);return(0,r.useEffect)(()=>{const e=e=>{w.current.contains(e.target)||N(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[w]),(0,c.jsxs)(o.u,{value:{mapkit:j,map:S,loaded:x,currentDoc:C,currentWindow:A,admin:e,points:t,setPoints:y},children:[x&&j&&S?(0,c.jsx)(u,{address:v,mapCenter:f,mapStyle:n,zoom:a,onSetMapCenter:d,onSetZoom:l,onSetPoints:y,points:t,markerColor:g,onMarkerClick:h,onMapLoaded:p}):null,(0,c.jsxs)("div",{style:{height:b?`${b}px`:"400px",position:"relative"},className:"wp-block-jetpack-map__mapkit-wrapper",ref:w,onClick:()=>{N(!0)},children:[!T&&(0,c.jsx)("div",{className:"wp-block-jetpack-map__select-overlay"}),(0,c.jsx)("div",{className:"wp-block-jetpack-map__gm-container",style:{height:`${b}px`,position:"absolute",pointerEvents:T?"auto":"none"}})]}),E,(0,c.jsx)(i.A,{mapProvider:"mapkit"})]})}),u=(0,r.memo)(({address:e=null,mapCenter:t={},mapStyle:n="default",zoom:o=13,onSetMapCenter:i=()=>{},onSetZoom:c=()=>{},onSetPoints:l=()=>{},points:u=[],markerColor:d="red",onMarkerClick:p=()=>{},onMapLoaded:h=()=>{}})=>{const{map:m,mapkit:g,setActiveMarker:f,setPreviousCenter:b,setCalloutReference:v,currentDoc:y}=(0,s.ST)(),k=(0,r.useRef)(p),w=(0,r.useRef)(l),x=(0,r.useCallback)(e=>{f(e),b(m.center),k.current&&k.current(e),m.setCenterAnimated(new g.Coordinate(e.coordinates.latitude,e.coordinates.longitude))},[m,g,f,b,k]);return(0,s.FN)(t,i),(0,s.y7)(n),(0,s.LR)(o,c),(0,s.$H)(u,d,(0,a.K5)(y,v),x),(0,s.bY)(h),(0,s.wB)(e=>{f(null),e&&m.setCenterAnimated(e)}),(0,s.mA)(e,w),null}),d=l},5171(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(56427),s=n(27723),a=n(57273),i=n(20104),c=n(10790);const __=s.__,l=(0,c.jsx)(o.SVG,{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(o.G,{id:"Page-1",fill:"none",fillRule:"evenodd",children:(0,c.jsxs)(o.G,{id:"outline-add_location-24px",transform:"translate(-5 -2)",children:[(0,c.jsx)(o.Polygon,{id:"Shape",points:"0 0 24 0 24 24 0 24"}),(0,c.jsx)(o.Path,{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"})]})})}),u=({attributes:e,setAttributes:t,apiKey:n,apiKeySource:s,apiKeyControl:u,onKeyChange:d,context:p,mapRef:h,minHeight:m,removeAPIKey:g,updateAPIKey:f,setPointVisibility:b,mapProvider:v})=>"toolbar"===p?(0,c.jsx)(o.ToolbarGroup,{children:(0,c.jsx)(o.ToolbarButton,{icon:l,label:__("Add a marker","jetpack"),onClick:b})}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.PanelColorSettings,{title:__("Colors","jetpack"),initialOpen:!0,colorSettings:[{value:e.markerColor,onChange:e=>t({markerColor:e}),label:__("Marker","jetpack")}]}),(0,c.jsxs)(o.PanelBody,{title:__("Settings","jetpack"),children:[(0,c.jsx)(o.__experimentalNumberControl,{label:__("Height in pixels","jetpack"),value:e.mapHeight||"",min:m,onChange:e=>{t({mapHeight:e})},size:"__unstable-large",step:10}),(0,c.jsx)(o.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Zoom level","jetpack"),help:e.points.length>1&&__("The default zoom level cannot be changed when there are two or more markers on the map.","jetpack"),disabled:e.points.length>1,value:Math.round(e.zoom),onChange:e=>{t({zoom:e}),h.current&&h.current.updateZoom&&setTimeout(h.current.updateZoom,0)},min:0,max:22}),"mapbox"===v?(0,c.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show labels","jetpack"),checked:e.mapDetails,onChange:e=>t({mapDetails:e})}):null,(0,c.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Scroll to zoom","jetpack"),help:__("Allow the map to capture scrolling, and zoom in or out.","jetpack"),checked:e.scrollToZoom,onChange:e=>t({scrollToZoom:e})}),"mapbox"===v?(0,c.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show Fullscreen Button","jetpack"),help:__("Allow your visitors to display the map in fullscreen.","jetpack"),checked:e.showFullscreenButton,onChange:e=>t({showFullscreenButton:e})}):null]}),e.points.length?(0,c.jsx)(o.PanelBody,{title:__("Markers","jetpack"),initialOpen:!1,children:(0,c.jsx)(i.A,{points:e.points,onChange:e=>{t({points:e})}})}):null,"mapbox"===v?(0,c.jsxs)(o.PanelBody,{title:__("Mapbox Access Token","jetpack"),initialOpen:!1,children:[(0,c.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,help:"wpcom"===s&&(0,c.jsxs)(c.Fragment,{children:[__("You can optionally enter your own access token.","jetpack")," ",(0,c.jsx)(a.N,{openInNewTab:!0,href:"https://account.mapbox.com/access-tokens/",children:__("Find it on Mapbox","jetpack")})]}),label:__("Mapbox Access Token","jetpack"),value:u,onChange:d}),(0,c.jsx)("div",{className:"jetpack-map-token-settings",children:(0,c.jsxs)(o.__experimentalToggleGroupControl,{isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[(0,c.jsx)(o.__experimentalToggleGroupControlOption,{className:"components-button jetpack-update-token-button",label:__("Update Token","jetpack"),value:"update",onClick:f,disabled:!u||u===n}),(0,c.jsx)(o.__experimentalToggleGroupControlOption,{className:"components-button is-secondary",label:__("Remove Token","jetpack"),value:"remove",onClick:g,disabled:"wpcom"===s})]})})]}):null]});n.dn(u)},1807(e,t,n){"use strict";n.d(t,{A:()=>r});const r={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,showFullscreenButton:!0,className:t}},save:n(37670).A}},37670(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(10790);class s extends r.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:r,points:s,zoom:a,mapCenter:i,markerColor:c,scrollToZoom:l,mapHeight:u}=e,d=s.map((e,t)=>{const{longitude:n,latitude:r}=e.coordinates,s="https://www.google.com/maps/search/?api=1&query="+r+","+n;return(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:s,children:e.title})},t)}),p=t?`align${t}`:null;return(0,o.jsx)("div",{className:p,"data-map-style":n,"data-map-details":r,"data-points":JSON.stringify(s),"data-zoom":a,"data-map-center":JSON.stringify(i),"data-marker-color":c,"data-scroll-to-zoom":l||null,"data-map-height":u||null,children:s.length>0&&(0,o.jsx)("ul",{children:d})})}}const a=s},43402(e,t,n){"use strict";n.d(t,{A:()=>r});const r={attributes:{align:{type:"string"},points:{type:"array",default:[]},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},mapStyle:{type:"string",default:"default"},markerColor:{type:"string",default:"red"},scrollToZoom:{type:"boolean",default:!1},mapHeight:{type:"integer"},showFullscreenButton:{type:"boolean",default:!0}},migrate:e=>{const t=((e.className||"").replace(/is-style-[^ ]+/,"")+` is-style-${e.mapStyle}`).replace(/\s+/g," ").trim(),{mapStyle:n,...r}=e;return{...r,className:t}},save:n(47083).A}},47083(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(10790);class s extends r.Component{render(){const{attributes:e}=this.props,{align:t,mapStyle:n,mapDetails:r,points:s,zoom:a,mapCenter:i,markerColor:c,scrollToZoom:l,mapHeight:u,showFullscreenButton:d}=e,p=s.map((e,t)=>{const{longitude:n,latitude:r}=e.coordinates,s="https://www.google.com/maps/search/?api=1&query="+r+","+n;return(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:s,children:e.title})},t)}),h=t?`align${t}`:null;return(0,o.jsx)("div",{className:h,"data-map-style":n,"data-map-details":r,"data-points":JSON.stringify(s),"data-zoom":a,"data-map-center":JSON.stringify(i),"data-marker-color":c,"data-scroll-to-zoom":l||null,"data-map-height":u||null,"data-show-fullscreen-button":d||null,children:s.length>0&&(0,o.jsx)("ul",{children:p})})}}const a=s},34549(e,t,n){"use strict";n.d(t,{A:()=>C});var r=n(85985),o=n(1455),s=n.n(o),a=n(94715),i=n(56427),c=n(29491),l=n(47143),u=n(86087),d=n(27723),p=n(57273),h=n(90907),m=n(4408),g=n(6852),f=n(67613),b=n(5171),v=n(2905),y=n(25836),k=n(62393),w=n(44950),x=n(10790);const __=d.__,_=(0,r.sh)(g),j={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},C=(0,c.compose)(i.withNotices)(({setAttributes:e,attributes:t,noticeUI:n,notices:r,isSelected:o,noticeOperations:c})=>{const{address:d,align:g,mapDetails:C,points:A,zoom:S,mapCenter:E,markerColor:T,mapHeight:N,showFullscreenButton:P}=t,{toggleSelection:B}=(0,l.useDispatch)("core/block-editor"),{isPreviewMode:I}=(0,l.useSelect)(e=>{const{getSettings:t}=e(a.store);return{isPreviewMode:t().isPreviewMode}},[]),[M,R]=(0,u.useState)(!1),[L,D]=(0,u.useState)(0),[F,O]=(0,u.useState)(null),[z,U]=(0,u.useState)(null),[H,$]=(0,u.useState)(null),[V,q]=(0,u.useState)(null),G=(0,u.useRef)(null),W=(0,a.useBlockProps)(),{className:Z}=W,J=(0,h.D)(k.A,Z),K=(0,w.A)({mapStyle:J}),Y=()=>{d&&F&&"mapkit"!==K&&(0,v.I)(d,F).then(t=>{if(t.features?.length){const n=t.features[0],r=[{title:n.text,placeTitle:n.text,caption:n.place_name,id:n.id,coordinates:{latitude:n.center[1],longitude:n.center[0]}}];e({points:r})}else ne(null,__("Could not find the coordinates of the provided address. Displaying default location. Feel free to add the location manually.","jetpack"))}).catch(e=>ne(null,e.message))},Q=(e=null,t="GET")=>new Promise((n,r)=>{const o="/wpcom/v2/service-api-keys/mapbox",a=e?{path:o,method:t,data:{service_api_key:e}}:{path:o,method:t};q(!0),s()(a).then(({service_api_key:e,service_api_key_source:t})=>{c.removeAllNotices(),D(e?2:1),O(e),U("wpcom"===t?"":e),$(t),q(!1),n()},({message:e})=>{ne(null,e),D(1),q(!1),r()})}),X=t=>{if(A.some(e=>e.id===t.id))return;const n=A.slice(0);n.push(t),e({points:n}),R(!1)},ee=()=>{c.removeAllNotices(),z&&Q(z,"POST")},te=()=>Q(null,"DELETE"),ne=(e,t)=>{c.removeAllNotices(),c.createErrorNotice(t)},re=(t,n,r,o)=>{B(!0);const s=G?.current?.mapRef??G;if(s){const t=parseInt(s.current.offsetHeight+o.height,10);e({mapHeight:t}),s.current.sizeMap&&setTimeout(s.current.sizeMap,0)}};let oe;if((0,u.useEffect)(()=>{"mapbox"===K?Q().then(Y):D(2)},[]),(0,u.useEffect)(()=>{if(!G.current?.sizeMap)return;const e=setTimeout(G.current.sizeMap,0);return()=>clearTimeout(e)},[g]),(0,u.useEffect)(Y,[d]),(0,u.useEffect)(()=>{Z&&!F&&(D(0),Q())},[Z]),I){const e=k.A.find(e=>e.name===J);oe=(0,x.jsx)("div",{children:(0,x.jsx)("img",{alt:__("Map Preview","jetpack"),src:e?e.preview:y,style:{width:"100%",height:N||"400px",objectFit:"cover"}})})}else if(0===L)oe=(0,x.jsx)(i.Placeholder,{icon:_,children:(0,x.jsx)(i.Spinner,{})});else if(1===L)oe=(0,x.jsx)(i.Placeholder,{icon:_,label:__("Map","jetpack"),notices:r,children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("p",{className:"components-placeholder__instructions",children:[__("To use the map block, you need an Access Token.","jetpack"),(0,x.jsx)("br",{}),(0,x.jsx)(p.N,{openInNewTab:!0,href:"https://www.mapbox.com",children:__("Create an account or log in to Mapbox.","jetpack")}),(0,x.jsx)("br",{}),__("Locate and copy the default access token. Then, paste it into the field below.","jetpack")]}),(0,x.jsxs)("form",{children:[(0,x.jsx)("input",{type:"text",className:"components-placeholder__input",disabled:V,placeholder:__("Paste Token Here","jetpack"),value:z,onChange:e=>U(e.target.value)}),(0,x.jsx)(i.Button,{variant:"secondary",disabled:V||!z||z.length<1,onClick:ee,children:__("Set Token","jetpack")})]})]})});else if(2===L){const n=e=>U(e),r=o&&A.length<=1;oe=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.BlockControls,{children:(0,x.jsx)(b.A,{attributes:t,setAttributes:e,apiKey:F,apiKeySource:H,apiKeyControl:z,onKeyChange:n,setPointVisibility:()=>R(!0),context:"toolbar",mapProvider:K})}),(0,x.jsx)(a.InspectorControls,{children:(0,x.jsx)(b.A,{attributes:t,setAttributes:e,apiKey:F,apiKeySource:H,apiKeyControl:z,onKeyChange:n,mapRef:G,minHeight:400,removeAPIKey:te,updateAPIKey:ee,mapProvider:K})}),(0,x.jsx)(i.ResizableBox,{size:{height:N||"auto",width:"100%"},grid:[10,10],showHandle:o,minHeight:400,enable:j,onResizeStart:()=>B(!1),onResizeStop:re,children:(0,x.jsx)("div",{className:"wp-block-jetpack-map__map_wrapper",children:(0,x.jsx)(f.A,{ref:G,address:d,scrollToZoom:r,showFullscreenButton:P,mapStyle:J||"default",mapDetails:C,mapHeight:N,points:A,zoom:S,mapCenter:E,markerColor:T,onSetZoom:t=>{e({zoom:t})},admin:!0,apiKey:F,onSetPoints:t=>e({points:t}),onSetMapCenter:t=>e({mapCenter:t}),onMapLoaded:()=>R(!A.length),onMarkerClick:()=>R(!1),onError:ne,mapProvider:K,children:o&&M&&(0,x.jsx)(m.A,{onAddPoint:X,onClose:()=>R(!1),apiKey:F,onError:ne,tagName:"AddPoint",mapProvider:K})})})})]})}return(0,x.jsxs)("div",{...W,children:[n,oe]})})},12742(e,t,n){"use strict";var r=n(94375),o=n(6852),s=n(1807),a=n(43402),i=n(34549),c=n(20974),l=n(62393);n(64525),n(2753);(0,r.M)(o,{edit:i.A,save:c.A,styles:l.A,deprecated:[a.A,s.A]})},2905(e,t,n){"use strict";function r(e,t){return fetch(`https://api.mapbox.com/geocoding/v5/mapbox.places/${encodeURIComponent(e)}.json?access_token=${encodeURIComponent(t)}`).then(e=>e.json())}n.d(t,{I:()=>r})},2202(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(64597),o=n(3094),s=n(10790);const a=e=>{const t="mapbox"===e.mapProvider?r.A:o.A;return(0,s.jsx)(t,{...e})}},64597(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(56427),o=n(86087),s=n(27723),a=n(97602),i=n(10790);const c=(0,s.__)("Add a marker…","jetpack");class l extends o.Component{constructor(){super(...arguments),this.textRef=(0,o.createRef)(),this.containerRef=(0,o.createRef)(),this.state={isEmpty:!0},this.autocompleter={name:"placeSearch",options:this.search,isDebounced:!0,getOptionLabel:e=>(0,i.jsx)("span",{children:e.place_name}),getOptionKeywords:e=>[e.place_name],getOptionCompletion:this.getOptionCompletion}}componentDidMount(){setTimeout(()=>{this.containerRef.current.querySelector("input").focus()},50)}getOptionCompletion=e=>{const{value:t}=e,n={placeTitle:t.text,title:t.text,caption:t.place_name,id:t.id,coordinates:{longitude:t.geometry.coordinates[0],latitude:t.geometry.coordinates[1]}};return this.props.onAddPoint(n),t.text};search=e=>{const{apiKey:t,onError:n}=this.props,r="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(e)+".json?access_token="+t;return new Promise(function(e,t){const o=new XMLHttpRequest;o.open("GET",r),o.onload=function(){if(200===o.status){const t=JSON.parse(o.responseText);e(t.features)}else{const e=JSON.parse(o.responseText);n(e.statusText,e.responseJSON.message),t(new Error("Mapbox Places Error"))}},o.send()})};onReset=()=>{this.textRef.current.value=null};render(){const{label:e}=this.props;return(0,i.jsx)("div",{ref:this.containerRef,children:(0,i.jsx)("div",{className:"components-location-search",children:(0,i.jsx)(a.A,{completer:this.autocompleter,onReset:this.onReset,children:({isExpanded:t,listBoxId:n,activeId:o,onChange:s,onKeyDown:a})=>(0,i.jsx)(r.TextControl,{label:e,placeholder:c,ref:this.textRef,onChange:s,"aria-expanded":t,"aria-owns":n,"aria-activedescendant":o,onKeyDown:a,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})})})}}l.defaultProps={onError:()=>{}};const u=l},3094(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(56427),o=n(86087),s=n(27723),a=n(97602),i=n(5389),c=n(10790);const l=(0,s.__)("Add a marker…","jetpack"),u=({label:e,onAddPoint:t})=>{const n=(0,o.useRef)(void 0),s=(0,o.useRef)(void 0),{mapkit:u}=(0,i.ST)(),d=new u.Search({includePointsOfInterest:!1}),p={name:"placeSearch",options:async e=>new Promise(function(t,n){d.autocomplete(e,(e,r)=>{if(e)return void n(e);const o=(r?.results.filter(e=>e.coordinate)??[]).map(e=>({...e,placeName:e.displayLines?.join(", "),original:e}));t(o)})}),isDebounced:!0,getOptionLabel:e=>(0,c.jsx)("span",{children:e.placeName}),getOptionKeywords:e=>[e.placeName],getOptionCompletion:e=>{const{value:n}=e,r={placeTitle:n.placeName,title:n.placeName,caption:n.placeName,coordinates:{longitude:n.coordinate.longitude,latitude:n.coordinate.latitude},id:`${n.placeName} ${Number(n.coordinate.latitude).toFixed(2)} ${Number(n.coordinate.longitude).toFixed(2)}`};return d.search(n.original,(e,n)=>{if(!e){const{places:e}=n;if(e.length>0){const t=e[0];r.coordinates={longitude:t.coordinate.longitude,latitude:t.coordinate.latitude}}}t(r)}),n.placeName}};return(0,o.useEffect)(()=>{setTimeout(()=>{n.current.querySelector("input").focus()},50)},[]),(0,c.jsx)("div",{ref:n,children:(0,c.jsx)("div",{className:"components-location-search",children:(0,c.jsx)(a.A,{completer:p,onReset:()=>{s.current.value=""},children:({isExpanded:t,listBoxId:n,activeId:o,onChange:a,onKeyDown:i})=>(0,c.jsx)(r.TextControl,{label:e,placeholder:l,ref:s,onChange:a,"aria-expanded":t,"aria-owns":n,"aria-activedescendant":o,onKeyDown:i,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})})})}},20104(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56427),o=n(86087),s=(n(52918),n(10790));class a extends o.Component{constructor(){super(...arguments),this.state={selectedCell:null}}onDeletePoint=e=>{const t=parseInt(e.target.getAttribute("data-id")),{points:n,onChange:r}=this.props,o=n.slice(0);o.splice(t,1),r(o)};setMarkerField(e,t,n){const{points:r,onChange:o}=this.props,s=r.slice(0);s[n][e]=t,o(s)}render(){const{points:e}=this.props,t=e.map((e,t)=>(0,s.jsxs)(r.PanelBody,{title:e.placeTitle,initialOpen:!1,children:[(0,s.jsx)(r.TextControl,{label:"Marker Title",value:e.title,onChange:e=>this.setMarkerField("title",e,t),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,s.jsx)(r.TextareaControl,{label:"Marker Caption",value:e.caption,rows:"3",onChange:e=>this.setMarkerField("caption",e,t),__nextHasNoMarginBottom:!0}),(0,s.jsxs)(r.Button,{"data-id":t,onClick:this.onDeletePoint,className:"component__locations__delete-btn",children:[(0,s.jsx)(r.Dashicon,{icon:"trash",size:"15"})," Delete Marker"]})]},e.id));return(0,s.jsx)("div",{className:"component__locations",children:(0,s.jsx)(r.Panel,{className:"component__locations__panel",children:t})})}}a.defaultProps={points:Object.freeze([]),onChange:()=>{}};const i=a},97602(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(56427),o=n(29491),s=n(86087),a=n(27723),i=n(48558),c=n(13022),l=n(66087),u=n(10790);const __=a.__,_n=a._n;function d(e=[],t=10){const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(n.push(o),n.length===t)break}return n}class p extends s.Component{static getInitialState(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}constructor(){super(...arguments),this.debouncedLoadOptions=(0,l.debounce)(this.loadOptions,250),this.state=this.constructor.getInitialState()}componentWillUnmount(){this.debouncedLoadOptions.cancel()}select=e=>{const{completer:t}=this.props;(t.getOptionCompletion||{})(e),this.reset()};reset=()=>{this.setState(this.constructor.getInitialState())};handleFocusOutside(){this.reset()}loadOptions(e,t){const{options:n}=e,r=this.activePromise=Promise.resolve("function"==typeof n?n(t):n).then(t=>{if(r!==this.activePromise)return;const n=t.map((t,n)=>({key:`${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]})),o=d(n),s=o.length===this.state.filteredOptions.length?this.state.selectedIndex:0;this.setState({options:n,filteredOptions:o,selectedIndex:s,isOpen:o.length>0}),this.announce(o)})}onChange=e=>{const{completer:t}=this.props,{options:n}=this.state;if(!e)return void this.reset();t&&(t.isDebounced?this.debouncedLoadOptions(t,e):this.loadOptions(t,e));const r=t?d(n):[];t&&this.setState({selectedIndex:0,filteredOptions:r,query:e})};onKeyDown=e=>{const{isOpen:t,selectedIndex:n,filteredOptions:r}=this.state;if(!t)return;let o;switch(e.keyCode){case i.UP:o=(0===n?r.length:n)-1,this.setState({selectedIndex:o});break;case i.DOWN:o=(n+1)%r.length,this.setState({selectedIndex:o});break;case i.ENTER:this.select(r[n]);break;case i.LEFT:case i.RIGHT:case i.ESCAPE:return void this.reset();default:return}e.preventDefault(),e.stopPropagation()};announce(e){const{debouncedSpeak:t}=this.props;t&&(e.length?t((0,a.sprintf)(/* translators: %d: the number of results. */ | |
| 81 | +_n("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack","jetpack"),e.length),"assertive"):t(__("No results.","jetpack"),"assertive"))}render(){const{onChange:e,onKeyDown:t}=this,{children:n,instanceId:o,completer:s}=this.props,{selectedIndex:a,filteredOptions:i}=this.state,{key:l=""}=i[a]||{},{className:d}=s,p=i.length>0,h=p?`components-autocomplete-listbox-${o}`:null,m=p?`components-autocomplete-item-${o}-${l}`:null;return(0,u.jsxs)("div",{className:"components-autocomplete",children:[n({isExpanded:p,listBoxId:h,activeId:m,onChange:e,onKeyDown:t}),p&&(0,u.jsx)(r.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0,children:(0,u.jsx)("div",{id:h,role:"listbox",className:"components-autocomplete__results",children:i.map((e,t)=>(0,u.jsx)(r.Button,{id:`components-autocomplete-item-${o}-${e.key}`,role:"option","aria-selected":t===a,disabled:e.isDisabled,className:(0,c.A)("components-autocomplete__result",d,{"is-selected":t===a}),onClick:()=>this.select(e),children:e.label},e.key))})})]})}}const h=(0,o.compose)([r.withSpokenMessages,o.withInstanceId,r.withFocusOutside])(p)},82063(e,t,n){"use strict";function r(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}n.d(t,{o:()=>r})},16815(e,t,n){"use strict";n.d(t,{BY:()=>i,ES:()=>o,_t:()=>s,iU:()=>a,jF:()=>r});const r=e=>Object.hasOwn(e,"lat")&&Object.hasOwn(e,"lng")?e:{lat:e.latitude||0,lng:e.longitude||0};function o(e,t){const n=new e.LngLatBounds;return t.forEach(e=>{n.extend([e.coordinates.longitude,e.coordinates.latitude])}),n}function s(e,t){e.fitBounds(t,{padding:{top:80,bottom:80,left:40,right:40}})}function a(e,t){e.innerHTML=`\n\t\t<?xml version="1.0" encoding="UTF-8"?>\n\t\t<svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n\t\t\t<g fill-rule="evenodd">\n\t\t\t\t<path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="${t}"/>\n\t\t\t</g>\n\t\t</svg>\n\t`}function i(e){return new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}})}},42470(e,t,n){"use strict";n.d(t,{IR:()=>u,K5:()=>c,Sm:()=>a,Yc:()=>l,c6:()=>s,nQ:()=>i});var r=n(34377);function o(e){return Math.abs(6371e3*Math.cos(e*Math.PI/180)*2*Math.PI/256)}function s(e,t){return 512/Math.pow(2,e)*.5*o(t)}function a(e,t){const n=e/o(t);return Math.log2(512/(n/.5))}function i(e,t){if(0===t.length)return null;const n=new e.Coordinate(-90,180),r=new e.Coordinate(90,-180);t.forEach(e=>{n.latitude=Math.max(n.latitude,e.coordinates.latitude),n.longitude=Math.min(n.longitude,e.coordinates.longitude),r.latitude=Math.min(r.latitude,e.coordinates.latitude),r.longitude=Math.max(r.longitude,e.coordinates.longitude)});const o=new e.Coordinate(n.latitude-.5*(n.latitude-r.latitude),n.longitude+.5*(r.longitude-n.longitude)),s=new e.CoordinateSpan(1.3*Math.abs(n.latitude-r.latitude),1.3*Math.abs(r.longitude-n.longitude));return new e.CoordinateRegion(o,s)}function c(e,t){return()=>{const n=e.createElement("div");return n.classList.add("mapkit-popup-content"),t(n),n}}function l(e,t){return new Promise(n=>{if(t.mapkitScriptIsLoading)(0,r.Cu)(t,"mapkit").then(e=>{n(e)});else{t.mapkitScriptIsLoading=!0;const o=e.createElement("script");o.addEventListener("load",async()=>{const e=await(0,r.Cu)(t,"mapkit");t.mapkitScriptIsLoading=!1,n(e)},{once:!0}),o.src="https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js",o.crossOrigin="anonymous",e.head.appendChild(o)}})}function u(e,t,n){return new Promise((t,r)=>{n.mapkitIsInitialized?t():n.mapkitIsInitializing?function(e){return new Promise((t,n)=>{const r=()=>{void 0===e.mapkitIsInitializing?n():!1===e.mapkitIsInitializing?t():e.requestAnimationFrame(r)};r()})}(n).then(()=>{t()}):(n.mapkitIsInitializing=!0,n.mapkitIsInitialized=!1,e.init({authorizationCallback:async e=>{try{const o=await fetch("https://public-api.wordpress.com/wpcom/v2/mapkit");if(200===o.status){e((await o.json()).wpcom_mapkit_access_token)}else r();n.mapkitIsInitializing=!1,n.mapkitIsInitialized=!0,t()}catch{r()}}}))})}},39698(e,t,n){"use strict";n.d(t,{C:()=>s,u:()=>a});var r=n(86087),o=n(10790);const s=(0,r.createContext)({map:null,mapkit:null,loaded:!1,activeMarker:null,calloutReference:null,currentDoc:null,currentWindow:null,admin:!1,setPoints:()=>{},points:[],previousCenter:null}),a=({value:e,children:t})=>{const[n,a]=(0,r.useState)(null),[i,c]=(0,r.useState)(null),[l,u]=(0,r.useState)(null);return(0,o.jsx)(s.Provider,{value:{...e,activeMarker:n,setActiveMarker:a,calloutReference:i,setCalloutReference:c,previousCenter:l,setPreviousCenter:u},children:t})}},5389(e,t,n){"use strict";n.d(t,{$H:()=>b,FN:()=>m,I3:()=>h,LR:()=>f,PC:()=>p,ST:()=>d,bY:()=>v,mA:()=>k,wB:()=>y,y7:()=>g});var r=n(39384),o=n(47143),s=n(86087),a=n(27723),i=n(66087),c=n(34377),l=n(42470),u=n(39698);const __=a.__,d=()=>(0,s.useContext)(u.C),p=e=>{const[t,n]=(0,s.useState)(!1),[a,i]=(0,s.useState)(!1),[u,d]=(0,s.useState)(null),[p,h]=(0,s.useState)(null),[m,g]=(0,s.useState)(null);return(0,s.useEffect)(()=>{const t=(0,o.select)(r.CONNECTION_STORE_ID).getBlogId(),{currentDoc:s,currentWindow:a}=(0,c.sG)(e.current);if(e.current){h(a),g(s);const e=__("Failed to retrieve a Mapkit API token. Please try refreshing.","jetpack");a.mapkit?(d(a.mapkit),(0,l.IR)(a.mapkit,t,a).then(()=>{n(!0)},()=>{i(e)})):(0,l.Yc)(s,a).then(r=>{d(r),(0,l.IR)(r,t,a).then(()=>{n(!0)},()=>{i(e)})})}},[e]),{loaded:t,error:a,mapkit:u,currentDoc:m,currentWindow:p}},h=(e,t,n)=>{const[r,o]=(0,s.useState)(null);return(0,s.useEffect)(()=>{e&&t&&o(new e.Map(n.current,{showsMapTypeControl:!1}))},[e,t,n]),{map:r}},m=(e,t)=>{const{mapkit:n,map:r}=d(),o=(0,s.useRef)(e),a=(0,s.useRef)(t);(0,s.useEffect)(()=>{if(!n||!r||!o.current)return;const e=o.current?.lat??o.current?.latitude,t=o.current?.lng??o.current?.longitude;"number"==typeof e&&"number"==typeof t&&(r.center=new n.Coordinate(e,t))},[n,r,o]),(0,s.useEffect)(()=>{if(!n||!r)return;const e=()=>{if(r.center){const{latitude:e,longitude:t}=r.center;a.current({lat:e,lng:t})}};return r.addEventListener("region-change-end",(0,i.debounce)(e,1e3)),()=>{r.removeEventListener("region-change-end",e)}},[n,r,a])},g=e=>{const{mapkit:t,map:n}=d();(0,s.useEffect)(()=>{t&&n&&(n.mapType=(()=>{switch(e){case"satellite":return t.Map.MapTypes.Satellite;case"black_and_white":return t.Map.MapTypes.MutedStandard;case"hybrid":return t.Map.MapTypes.Hybrid;default:return t.Map.MapTypes.Standard}})())},[t,n,e])},f=(e,t)=>{const{mapkit:n,map:r,points:o}=d();(0,s.useEffect)(()=>{if(n&&r)if(o&&o.length<=1){const t=(0,l.c6)(13,r.center.latitude);if(e){const t=(0,l.c6)(e,r.center.latitude);t!==r.cameraDistance&&(r.cameraDistance=t)}else t!==r.cameraDistance&&(r.cameraDistance=t);r.isZoomEnabled=!0,r.isScrollEnabled=!0}else r.region=(0,l.nQ)(n,o),r.isZoomEnabled=!1,r.isScrollEnabled=!1},[n,r,e,o]),(0,s.useEffect)(()=>{const e=()=>{t((0,l.Sm)(r.cameraDistance,r.center.latitude))};return r.addEventListener("zoom-end",e),()=>{r.removeEventListener("zoom-end",e)}},[n,r,t])},b=(e,t,n=null,r=null)=>{const{mapkit:o,map:a,loaded:i,currentWindow:c}=d(),l=(0,s.useRef)(n),u=(0,s.useRef)(r);(0,s.useEffect)(()=>{if(i){a.annotations.filter(t=>!e.find(e=>e.id===t.data.id)).forEach(e=>a.removeAnnotation(e));const n=e.map(e=>{const n=a.annotations.find(t=>t.data.id===e.id);if(n)return n.title=e.title,n.color=t,n;const r=new o.MarkerAnnotation(new o.Coordinate(e.coordinates.latitude,e.coordinates.longitude),{color:t,data:{id:e.id}});return r.calloutEnabled=!0,r.title=e.title,l.current&&(r.callout={calloutElementForAnnotation:l.current}),u.current&&r.addEventListener("select",()=>u.current(e,a)),r});a.annotations.length!==n.length&&a.showItems(new c.Array(...n))}},[e,i,a,o,t,l,u,c])},v=e=>{const{map:t,loaded:n}=d(),r=(0,s.useRef)(e);(0,s.useEffect)(()=>{n&&r.current(t)},[n,t,r])},y=e=>{const{map:t,previousCenter:n,loaded:r}=d(),o=(0,s.useRef)(e);(0,s.useEffect)(()=>{r&&t.addEventListener("single-tap",()=>{o.current(n)})},[r,t,n,o])},k=(e,t)=>{const{mapkit:n,map:r}=d();(0,s.useEffect)(()=>{if(n&&r&&e?.length){(new n.Geocoder).lookup(e,(e,n)=>{if(n?.results?.length){const e=n.results[0],r=e.formattedAddress,o={placeTitle:r,title:r,caption:r,coordinates:{longitude:e.coordinate.longitude,latitude:e.coordinate.latitude},id:`${r} ${Number(e.coordinate.latitude).toFixed(2)} ${Number(e.coordinate.longitude).toFixed(2)}`};t.current([o])}})}},[n,r,e,t])}},20974(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(13022),s=n(90907),a=n(62393),i=n(10790);const c=({attributes:e})=>{const{align:t,mapDetails:n,points:c,zoom:l,mapCenter:u,markerColor:d,scrollToZoom:p,mapHeight:h,showFullscreenButton:m}=e,g=r.useBlockProps.save(),{className:f}=g,b=(0,s.D)(a.A,f),v=c.map((e,t)=>{const{longitude:n,latitude:r}=e.coordinates,o="https://www.google.com/maps/search/?api=1&query="+r+","+n;return(0,i.jsx)("li",{children:(0,i.jsx)("a",{href:o,children:e.title})},t)});return(0,i.jsx)("div",{...g,className:(0,o.A)(f,t?`align${t}`:null),"data-map-style":b,"data-map-details":n,"data-points":JSON.stringify(c),"data-zoom":l,"data-map-center":JSON.stringify(u),"data-marker-color":d,"data-scroll-to-zoom":p||null,"data-map-height":h||null,"data-show-fullscreen-button":m||null,children:c.length>0&&(0,i.jsx)("ul",{children:v})})}},62393(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(27723),o=n(93797),s=n(49364),a=n(77971),i=n(98430),c=n(27415),l=n(72386),u=n(92747),d=n(44950);const __=r.__,p=(0,d.A)(),h=[{name:"default",label:__("Basic","jetpack"),preview:"mapkit"===p?i:a,isDefault:!0},{name:"black_and_white",label:"mapkit"===p?__("Muted","jetpack",0):__("Black & White","jetpack"),preview:"mapkit"===p?s:o},{name:"satellite",label:__("Satellite","jetpack"),preview:"mapkit"===p?l:c},{name:"terrain",label:__("Terrain","jetpack"),preview:u}]},44950(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{if(e?.mapStyle&&["terrain"].includes(e.mapStyle))return"mapbox";const t=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()}("map_provider");return t||(window&&"string"==typeof window.Jetpack_Maps?.provider&&["mapbox","mapkit"].includes(window.Jetpack_Maps?.provider)?window.Jetpack_Maps?.provider:"mapbox")}},91844(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(e,t=null)=>{if(t)e.style.height=t+"px";else{const t=e.offsetWidth,n=window.location.search.indexOf("map-block-counter")>-1?window.innerHeight:.8*window.innerHeight,r=Math.min(t*(3/4),n);e.style.height=r+"px"}}},80178(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);const s=({className:e,label:t,isPressed:n,onClick:s})=>{const a=(0,r.A)(e,"components-button components-tab-button",{"is-pressed":n});return(0,o.jsx)("button",{className:a,onClick:s,children:(0,o.jsx)("span",{children:t})})}},30068(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(94715),o=n(29491),s=n(47143),a=n(86087),i=n(27723),c=n(80178),l=n(51497),u=n(10790);const __=i.__,d="editor",p="preview",h=(0,o.compose)([(0,s.withSelect)(e=>({currentBlockId:e("core/block-editor").getSelectedBlockClientId()})),(0,s.withDispatch)((e,{currentBlockId:t})=>({removeBlock:()=>e("core/block-editor").removeBlocks(t)}))])(({attributes:e,setAttributes:t,isSelected:n,removeBlock:o})=>{const{source:s}=e,i=!s||""===s.trim(),h=(0,r.useBlockProps)(),{className:m}=h,[g,f]=(0,a.useState)(d),b=(0,a.useRef)(null),v=e=>t({source:e}),y=e=>{8===e.keyCode&&""===s&&(o(),e.preventDefault())};let k;return(0,a.useEffect)(()=>{n?g===d&&b?.current.focus():g===p&&f(d)},[n,g,f]),k=!n&&i?(0,u.jsx)("p",{className:`${m}__placeholder`,children:__("Write your _Markdown_ **here**…","jetpack")}):(0,u.jsxs)("div",{className:m,children:[(0,u.jsx)(r.BlockControls,{children:(0,u.jsxs)("div",{className:"components-toolbar",children:[(0,u.jsx)(c.A,{className:m,label:__("Markdown","jetpack"),isPressed:g===d,onClick:()=>f(d)}),(0,u.jsx)(c.A,{className:m,label:__("Preview","jetpack"),isPressed:g===p,onClick:()=>f(p)})]})}),g!==p&&n?(0,u.jsx)(r.PlainText,{className:`${m}__editor`,onChange:v,onKeyDown:y,"aria-label":__("Markdown","jetpack"),ref:b,value:s}):(0,u.jsx)(l.A,{className:`${m}__preview`,source:s})]}),(0,u.jsx)("div",{...h,children:k})})},57809(e,t,n){"use strict";var r=n(94375),o=n(73431),s=n(30068),a=n(19235);n(1982);(0,r.M)(o,{edit:s.A,save:a.A})},51497(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(94715),o=n(86087),s=n(27723),a=n(97158),i=n(20305),c=n.n(i),l=n(10790);const __=s.__,u=new a.A({typographer:!0}).use(c()),d=e=>{if("A"===e.target.nodeName){window.confirm(__("Are you sure you wish to leave this page?","jetpack"))||e.preventDefault()}},p=(e={})=>{const t=(0,r.__experimentalGetSpacingClassesAndStyles)?.(e);return t?.style?t.style:{}},h=({className:e,source:t="",attributes:n})=>(0,l.jsx)(o.RawHTML,{className:e,onClick:d,style:p(n),children:t.length?u.render(t):""});n.dn(h)},19235(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(51497),s=n(10790);const a=({attributes:e})=>{const t=r.useBlockProps.save();return(0,s.jsx)(o.A,{...t,source:e.source,attributes:e})};n.dn(a)},18658(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(56427),s=n(27723),a=n(10790);const __=s.__,_x=s._x,i=e=>{const{defaultClassName:t,nextdoorShareUrl:n,onFormSubmit:r,setNextdoorShareUrl:s}=e;return(0,a.jsx)(o.PanelBody,{title:__("Embed URL","jetpack"),initialOpen:!0,children:(0,a.jsxs)("form",{onSubmit:r,className:`${t}-embed-form-sidebar`,children:[(0,a.jsx)("input",{type:"text",id:"nextdoorShareUrl",onChange:e=>s(e.target.value),placeholder:__("Nextdoor post URL","jetpack"),value:n||"",className:"components-placeholder__input"}),(0,a.jsx)("div",{children:(0,a.jsx)(o.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})})]})})},c=e=>(0,a.jsx)(r.InspectorControls,{children:(0,a.jsx)(i,{...e})})},57796(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(85985),o=n(94715),s=n(74997),a=n(56427),i=n(86087),c=n(27723),l=(n(92610),n(66087)),u=n(78218),d=n(17195),p=n(18658),h=n(52755),m=n(10790);const __=c.__,_x=c._x,g=(0,r.sh)(d);const f=({defaultClassName:e,iframeUrl:t,clientId:n})=>{const r=`\n\t\t<script>\n\t\t\twindow.addEventListener( 'message', function ( event ) {\n\t\t\t\tif ( ! event.origin.startsWith( 'https://nextdoor' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tvar iframe = document.getElementById( 'nextdoor-embed-${n}' );\n\t\t\t\tif ( event.source !== iframe.contentWindow ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tiframe.setAttribute( 'height', event.data.height );\n\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\t\t\t\twindow.parent.postMessage( { action: 'resize', width: clientBoundingRect.width, height: clientBoundingRect.height }, '*' );\n\t\t\t} );\n\t\t<\/script>\n\t\t<iframe id="nextdoor-embed-${n}" width="100%" height="200" frameBorder="0" src="${t}" title="${__("Nextdoor","jetpack")}" />\n\t\t`;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:`${e}-overlay`}),(0,m.jsx)(a.SandBox,{html:r})]})},b=(0,a.withNotices)(function({attributes:e,clientId:t,name:n,noticeOperations:r,noticeUI:c,setAttributes:b}){const v=(0,o.useBlockProps)(),y=(0,s.getBlockDefaultClassName)(n),k=(0,u.y)(d.attributes,e);(0,l.isEqual)(k,e)||b(k);const{url:w}=k,[x,_]=(0,i.useState)(w?(0,h.Dl)(w):null),[j,C]=(0,i.useState)(x),A=()=>{r.removeAllNotices(),r.createErrorNotice(__("Your Nextdoor post couldn't be embedded. Please double check the URL or code.","jetpack"))},S=e=>{if(!e)return _(null),void A();if(e.preventDefault(),!j)return _(null),void A();const t=(0,h.Dl)(j);if(!t)return _(null),void A();_(t),b({url:t})},E=(0,m.jsx)(a.Placeholder,{label:__("Nextdoor","jetpack"),instructions:__("Enter the URL of your Nextdoor post to share below.","jetpack"),icon:g,notices:c,children:(0,m.jsxs)("form",{onSubmit:S,children:[(0,m.jsx)("input",{type:"text",id:"nextdoorShareUrl",onChange:e=>C(e.target.value),placeholder:__("Nextdoor post URL","jetpack"),value:j||"",className:"components-placeholder__input"}),(0,m.jsx)("div",{children:(0,m.jsx)(a.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})})]})});return(0,m.jsxs)("div",{...v,children:[(0,m.jsx)(p.A,{defaultClassName:y,nextdoorShareUrl:j,onFormSubmit:S,setNextdoorShareUrl:C}),x?(0,m.jsx)(f,{defaultClassName:y,iframeUrl:x,clientId:t}):E]})})},3361(e,t,n){"use strict";n(92610);var r=n(74997),o=n(94375),s=n(17195),a=n(57796),i=n(95571),c=n(52755);(0,o.M)(s,{edit:a.A,save:i.A,transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&c.QL.test(e.textContent),transform:e=>{const t=(0,c.Dl)(e.textContent);return(0,r.createBlock)("jetpack/nextdoor",{url:t})}}]}})},95571(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},52755(e,t,n){"use strict";n.d(t,{Dl:()=>a,QL:()=>r});const r=/(^|\/\/|www\.)(nextdoor\.[^"']*)/i,o=/([^/]+$)/,s=e=>{let t;t=0===e.indexOf("https")?new URL(e):new URL("https:"+e);const n=t.pathname.match(o);if(n)return t.origin+"/embed/"+n[1]},a=e=>{if(!e||!e.match(r))return;const t=s(e);return t||void 0}},39103(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(79018),o=n(10790);const s={attributes:r.attributes,supports:{align:!0,html:!1},save:({attributes:{rid:e}})=>(0,o.jsx)(o.Fragment,{children:e.map(e=>(0,o.jsx)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,children:`https://www.opentable.com/restref/client/?rid=${e}`},e))})}},50260(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(79018),o=n(10790);const s={attributes:r.attributes,migrate:e=>{const{style:t,className:n}=e,r="standard"===t?"":`is-style-${t}`;return{...e,className:n?`${n} ${r}`:r}},isEligible:({style:e,className:t})=>!(!e||"standard"===e)&&(!t||-1===t.indexOf("is-style-")),save:({attributes:{rid:e}})=>(0,o.jsx)("div",{children:e.map(e=>(0,o.jsx)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,children:`https://www.opentable.com/restref/client/?rid=${e}`},e))})}},64627(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(97999),o=n(85985),s=n(94715),a=n(74997),i=n(56427),c=n(86087),l=n(27723),u=n(57273),d=n(13022),p=n(66087),h=n(90907),m=n(78218),g=n(79018),f=n(82101),b=n(74739),v=n(50387),y=n(59038),k=n(84260),w=(n(79935),n(10790));const __=l.__,x=(0,o.sh)(g);const _=(0,i.withNotices)(function({attributes:e,clientId:t,isSelected:n,name:o,noticeOperations:_,noticeUI:j,setAttributes:C}){const A=(0,s.useBlockProps)(),S=(0,a.getBlockDefaultClassName)(o),E=(0,m.y)(g.attributes,e);(0,p.isEqual)(E,e)||C(E);const{align:T,rid:N,iframe:P,domain:B,lang:I,newtab:M,negativeMargin:R}=e,L=(0,p.isEmpty)(N),D=(0,h.D)((0,v.Iy)(),e.className),F=(0,h.D)((0,v.Iy)(N),e.className),O=(0,y.A)(F),z=(0,p.isEqual)(N,["1"]);(0,c.useEffect)(()=>{if(_.removeAllNotices(),!L&&!z&&"wide"===F&&"wide"!==T&&"full"!==T){const e=(0,w.jsx)(w.Fragment,{children:__('With the OpenTable block you may encounter display issues if you use its "wide" style with anything other than "wide" or "full" alignment. The wide display style may also not work well on smaller screens.',"jetpack")});_.createNotice({status:"warning",content:e})}},[z,T,L,N,F]),(0,c.useEffect)(()=>{"button"===D&&Array.isArray(N)&&N?.length>1&&C({className:"",style:""})},[N,D,C]),(0,c.useEffect)(()=>{n&&(Array.isArray(N)&&N?.length>1?(0,a.unregisterBlockStyle)("jetpack/opentable",["button"]):(0,a.registerBlockStyle)("jetpack/opentable",v.i9))},[n,N]),(0,c.useEffect)(()=>{"wide"===O&&"wide"===T&&C({align:""}),"wide"===F&&O&&F!==O&&C({align:"wide"}),C({style:F})},[T,F,O,C]);const U=(0,v.K5)(N),H=e=>N?.length>1?["multi","button"!==e?e:"standard"]:["button"===e?"button":"standard","button"===e?"standard":e],$=e=>{Array.isArray(e)?C({rid:e,style:e.length>1&&"button"===F?"standard":F}):(e=>{const t=(0,k.a9)(e);t||(_.removeAllNotices(),_.createErrorNotice((0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("strong",{children:__("We ran into an issue","jetpack")}),(0,w.jsx)("br",{}),__("Please ensure this embed matches the one from your OpenTable account","jetpack")]})));const n=(0,m.y)(g.attributes,t);C(n),_.removeAllNotices()})(e)},V=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(s.InspectorAdvancedControls,{children:[(0,w.jsx)(i.ToggleControl,{label:__("Load the widget in an iFrame (Recommended)","jetpack"),checked:P,onChange:()=>C({iframe:!P}),className:"is-opentable",__nextHasNoMarginBottom:!0}),"button"===F&&(0,w.jsx)(i.ToggleControl,{label:__("Remove button margin","jetpack"),checked:R,onChange:()=>C({negativeMargin:!R}),__nextHasNoMarginBottom:!0})]}),(0,w.jsx)(s.InspectorControls,{children:(0,w.jsxs)(i.PanelBody,{title:__("Settings","jetpack"),children:[(0,w.jsx)(b.A,{rids:N,onChange:$}),(0,w.jsx)(i.SelectControl,{label:__("Language","jetpack"),value:I,onChange:e=>C({lang:e}),options:f.P,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,w.jsx)(i.ToggleControl,{label:__("Open in a new window","jetpack"),checked:M,onChange:()=>C({newtab:!M}),__nextHasNoMarginBottom:!0})]})})]}),q=(0,r.isWpcomPlatformSite)()?"https://en.support.wordpress.com/wordpress-editor/blocks/opentable-block/":"https://jetpack.com/support/jetpack-blocks/opentable-block/",G=(0,w.jsxs)(i.Placeholder,{label:__("OpenTable Reservation","jetpack"),icon:x,instructions:__("Enter your restaurants IDs, separated by comma, or paste an OpenTable Reservation Widget embed code.","jetpack"),notices:j,children:[(0,w.jsx)(b.A,{rids:N,onSubmit:$}),(0,w.jsxs)("div",{className:`${S}-placeholder-links`,children:[(0,w.jsx)(u.N,{openInNewTab:!0,href:"https://restaurant.opentable.com/get-started/",children:__("Sign up for OpenTable","jetpack")}),(0,w.jsx)(u.N,{openInNewTab:!0,href:q,children:__("Learn more","jetpack")})]})]}),W=(0,d.A)({[`is-style-${F}`]:!L&&U.includes(F),"is-placeholder":L,"is-multi":"multi"===H(F)[0],[`align${T}`]:T,"has-no-margin":R});return(0,w.jsxs)("div",{...A,children:[j,(0,w.jsxs)("div",{className:W,children:[!L&&V,L?G:(e=>{const[n,r]=H(e||F);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:`${S}-overlay`}),(0,w.jsx)("iframe",{title:(0,l.sprintf)(/* translators: %s: a unique ID. */ | |
| 82 | +__("Open Table Preview %s","jetpack"),t),scrolling:"no",src:`https://www.opentable.com/widget/reservation/canvas?rid=${Array.isArray(N)?N.join("%2C"):""}&type=${n}&theme=${r}&overlay=false&domain=${B}&lang=${I&&f.L.includes(I)?I:"en-US"}&newtab=${M}&disablega=true`})]})})()]})]})})},71992(e,t,n){"use strict";var r=n(94715),o=n(74997),s=n(94375),a=n(79018),i=n(39103),c=n(50260),l=n(64627),u=n(50387),d=n(84260),p=(n(79935),n(45199),n(10790));(0,s.M)(a,{edit:l.A,save:({attributes:{rid:e}})=>{const t=r.useBlockProps.save();return(0,p.jsx)("div",{...t,children:e?.map((e,t)=>(0,p.jsx)("a",{href:`https://www.opentable.com/restref/client/?rid=${e}`,children:`https://www.opentable.com/restref/client/?rid=${e}`},`${e}-${t}`))})},attributes:a.attributes,styles:(0,u.Iy)(),transforms:{from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&0===e.textContent.indexOf("http")&&(d.XA.test(e.textContent)||d.JJ.test(e.textContent)),transform:e=>{const t=(0,d.a9)(e.textContent);return(0,o.createBlock)("jetpack/opentable",t)}}]},deprecated:[i.A,c.A]})},82101(e,t,n){"use strict";n.d(t,{L:()=>o,P:()=>r});const r=[{value:"en-US",label:"English"},{value:"fr-CA",label:"Français"},{value:"de-DE",label:"Deutsch"},{value:"es-MX",label:"Español"},{value:"ja-JP",label:"日本語"},{value:"nl-NL",label:"Nederlands"},{value:"it-IT",label:"Italiano"}],o=r.map(e=>e.value)},74739(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(56427),o=n(86087),s=n(27723),a=n(66087),i=n(10790);const __=s.__,_n=s._n,c=/^\s*(http[s]?:\/\/|<script)/;function l(e){const[t,n]=(0,o.useState)(""),[s,l]=(0,o.useState)(e.rids||[]),u=/^(\d+)$|\(#(\d+)\)$/,d=(0,i.jsx)(r.FormTokenField,{value:s,saveTransform:e=>c.test(e)?"":e.trim(),onInputChange:n,label:_n("Restaurant ID","Restaurant IDs",s.length,"jetpack"),...e,onChange:t=>{const n=t.map(e=>{const t=u.exec(e);if(t){return t[1]||t[2]}return e});l(n),e.onChange&&e.onChange(n)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0});return(0,i.jsx)("div",{className:"wp-block-jetpack-opentable-restaurant-picker",children:e.onSubmit?(0,i.jsxs)("form",{onSubmit:n=>{n.preventDefault(),e.onSubmit((0,a.isEmpty)(s)?t:s)},children:[d,(0,i.jsx)(r.Button,{variant:"secondary",type:"submit",children:__("Embed","jetpack")})]}):d})}},50387(e,t,n){"use strict";n.d(t,{Iy:()=>s,K5:()=>a,i9:()=>o});var r=n(27723);const __=r.__,o={name:"button",label:__("Button (210 x 113 pixels)","jetpack")},s=e=>[{name:"standard",label:__("Standard (224 x 301 pixels)","jetpack"),isDefault:!0},{name:"tall",label:__("Tall (288 x 490 pixels)","jetpack")},{name:"wide",label:__("Wide (840 x 150 pixels)","jetpack")},(!e||1===e.length)&&o].filter(Boolean),a=e=>s(e).map(e=>e.name)},59038(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087);function o(e){const t=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}},84260(e,t,n){"use strict";n.d(t,{JJ:()=>o,XA:()=>s,a9:()=>a});const r=/<\s*script[^>]*src\s*=\s*["']?([^"']*)/i,o=/restref=([0-9]+)&/,s=/rid=([0-9]+)&/,a=e=>{if(e)return(e=>{if(!e)return;let t;if(t=0===e.indexOf("http")?new URL(e):new URL("http:"+e),!t.host||-1===t.host.indexOf("opentable")||!t.search)return;const n=new URLSearchParams(t.search);let r=n.get("theme");"button"===n.get("type")&&(r=n.get("type"));let o=n.getAll("rid");if(o&&0!==o.length||(o=n.getAll("restref")),!o||0===o.length)return;const s={};o&&(s.rid=o);const a=n.get("domain");a&&(s.domain=a);const i=n.get("iframe");i&&(s.iframe=i);const c=n.get("lang");c&&(s.lang=c);const l=n.get("newtab");return l&&(s.newtab=l),r&&(s.style=r),s})((e=>{const t=e.match(r);return t&&t[1]?t[1]:o.test(e)||s.test(e)?e:void 0})(e))}},92809(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(94715),o=n(47143),s=n(86087),a=n(52619),i=n(27723),c=n(13022),l=n(2274),u=n(57810),d=n(53796),p=n(26247),h=n(16521),m=n(10790);const __=i.__,g=["jetpack/recurring-payments"];const f=function({clientId:e,attributes:t}){const{layout:n,fontSize:i}=t,{connectUrl:f,isApiConnected:b}=(0,o.useSelect)(e=>{const{getConnectUrl:t,isApiStateConnected:n}=e(h.M);return{connectUrl:t(),isApiConnected:n()}}),v=(0,p.A)(),y=(0,o.useSelect)(t=>t("core/block-editor").getBlock(e).innerBlocks.filter(e=>"jetpack/recurring-payments"===e.name),[e]);(0,s.useEffect)(()=>{(0,a.addFilter)("jetpack.recurringPayments.editorSettings","jetpack/payment-buttons-hide-nudges-from-inner-blocks",(e,t)=>y.some(e=>e.clientId===t)?{...e,showStripeNudge:!1,showUpgradeNudge:!1}:e)},[y]);const k=!b&&!!f,w=(0,r.useBlockProps)({className:(0,c.A)({"has-custom-font-size":!!i||t?.style?.typography?.fontSize})}),x=(0,r.useInnerBlocksProps)(w,{allowedBlocks:g,orientation:"horizontal",template:[["jetpack/recurring-payments"]],templateInsertUpdatesSelection:!0,layout:n});return delete x.id,delete x["data-block"],v?(0,m.jsxs)("div",{...w,children:[k&&(0,m.jsx)(r.BlockControls,{group:"block",children:(0,m.jsx)(u.A,{blockName:"jetpack/payment-buttons",connectUrl:f})}),k&&(0,m.jsx)(d.V,{blockName:"payment-buttons"}),(0,m.jsx)("div",{...x})]}):(0,m.jsx)("div",{...w,children:(0,m.jsx)(l.A,{block:"Payment Buttons",explanation:__("Connect your WordPress.com account to enable payment buttons on your site.","jetpack")})})}},54154(e,t,n){"use strict";var r=n(94375),o=n(97472),s=n(92809),a=n(458);n(64521);(0,r.M)(o,{edit:s.A,save:a.A})},458(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);function a({attributes:e}){const t=(0,o.A)({"has-custom-font-size":!!e?.fontSize||e?.style?.typography?.fontSize}),n=r.useBlockProps.save({className:t}),a=r.useInnerBlocksProps.save(n);return(0,s.jsx)("div",{...a})}},87339(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(10790);const s="undefined"!=typeof window?window.wp?.blocks?.getBlockType:null;function a({variations:e,onSelect:t,label:n}){return(0,o.jsx)("ul",{"aria-label":n,className:"wp-block-jetpack-payments-intro__variation-picker",children:e.map(e=>(0,o.jsxs)("li",{children:[(0,o.jsx)(r.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>t(e),className:"wp-block-jetpack-payments-intro__variation-picker__variation",label:e.description||e.title}),(0,o.jsx)("span",{className:"wp-block-jetpack-payments-intro__variation-picker__variation-label",role:"presentation",children:e.displayTitle||s?.(e.name)?.title||e.title})]},e.name))})}},44809(e,t,n){"use strict";n.d(t,{A:()=>r});const r=[n(64681)]},71938(e,t,n){"use strict";n.d(t,{A:()=>r});const r={}},64681(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>s.A,save:()=>i,supports:()=>a.A});var r=n(94715),o=n(10790),s=n(71938),a=n(62755);const i=()=>(0,o.jsx)(r.InnerBlocks.Content,{})},62755(e,t,n){"use strict";n.d(t,{A:()=>r});const r={alignWide:!1,className:!0,customClassName:!1,html:!1,reusable:!1}},10377(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(94715),o=n(74997),s=n(56427),a=n(47143),i=n(86087),c=n(27723),l=n(2274),u=n(26247),d=n(87339),p=n(26692),h=n(69661),m=n(10790);const __=c.__;function g({name:e,clientId:t}){const n=e=>e.categories?.includes("shop"),c=(0,r.useBlockProps)(),{blockType:g,hasInnerBlocks:f,hasPatterns:b,settings:v}=(0,a.useSelect)(s=>{const{getBlocks:a,__experimentalGetAllowedPatterns:i,getSettings:c}=s(r.store);return{settings:c(),blockType:(0,o.getBlockType)(e),hasInnerBlocks:a(t)?.length>0,hasPatterns:i?.().filter(n).length>0}}),y=(0,u.A)(),{replaceBlock:k,selectBlock:w,updateSettings:x}=(0,a.useDispatch)(r.store),_=(0,i.useCallback)(e=>{!0===v?.allowedBlockTypes||v?.allowedBlockTypes?.includes(e)||x({...v,allowedBlockTypes:[...v.allowedBlockTypes,e]})},[v,x]),j=e=>{const n=e.name;_(n),k(t,(0,o.createBlock)(n,e.attributes??{})),w(t)},C=h.A.filter(e=>(0,o.getBlockType)(e.name));(0,i.useEffect)(()=>{f||o.registerBlockVariation||j(C[0])});const A=C.length&&o.registerBlockVariation;let S,E=__("Please select which kind of payment you'd like to add.","jetpack");return b&&(E=__("Start by choosing one of our suggested layout patterns.","jetpack")),S=y?!f&&A?(0,m.jsxs)(s.Placeholder,{icon:g?.icon?.src,label:g?.title,instructions:E,children:[b&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(p.A,{onBlockPatternSelect:e=>k(t,e.map(o.cloneBlock)),patternFilter:n}),(0,m.jsx)("p",{children:__("Or use one of our blocks to create your own.","jetpack")})]}),(0,m.jsx)(d.A,{label:__("Payment Block list","jetpack"),variations:C,onSelect:(e=C[0])=>{j(e)}})]}):(0,m.jsx)(r.InnerBlocks,{}):(0,m.jsx)(l.A,{block:"Payments",explanation:__("Connect your WordPress.com account to start using payments blocks.","jetpack")}),(0,m.jsx)("div",{...c,children:S})}},36838(e,t,n){"use strict";var r=n(94715),o=n(94375),s=n(87325),a=n(58087),i=n(77675),c=n(80830),l=n(44809),u=n(10377),d=(n(98373),n(10790));(0,o.M)(c,{edit:u.A,save:()=>{const e=r.useBlockProps.save();return(0,d.jsx)("div",{...e,children:(0,d.jsx)(r.InnerBlocks.Content,{})})},keywords:[...new Set([...c.keywords,s.title,...s.keywords,i.title,...i.keywords,a.title,...a.keywords])],deprecated:l.A})},26692(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(10790);const __=a.__;function c({onBlockPatternSelect:e,patternFilter:t}){const[n,a]=(0,s.useState)(!1);return r.__experimentalBlockPatternSetup?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Button,{variant:"primary",onClick:()=>a(!0),className:"wp-payments-intro-pattern-picker__opener",children:__("Choose a pattern","jetpack")}),n&&(0,i.jsx)(o.Modal,{className:"wp-block-jetpack-payments-intro__pattern-picker__selection-modal",title:__("Choose a pattern","jetpack"),closeLabel:__("Cancel","jetpack"),onRequestClose:()=>a(!1),children:(0,i.jsx)(r.__experimentalBlockPatternSetup,{onBlockPatternSelect:e,filterPatternsFn:t})})]}):null}},69661(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(85985),o=n(87325),s=n(30746),a=n(97472),i=n(58087);const c=[...[[o.name,o],[a.name,a],[i.name,i]].map(([e,t])=>{const n=t.icon.src??t.icon;return{name:e.includes("/")?e:"jetpack/"+e,title:t.title,description:t.description,icon:"string"==typeof n&&n.toLowerCase().startsWith("<svg")?(0,r.sh)(t):n}}),{name:"jetpack/donations",displayTitle:s.Ay.title,description:s.Ay.description,icon:s.Ay.icon,attributes:s.Ay.attributes}]},32129(e,t,n){"use strict";n.d(t,{A:()=>w});n(90705);var r=n(82201),o=n(94715),s=n(56427),a=n(47143),i=n(43656),c=n(86087),l=n(27723),u=n(13109),d=n(62107),p=n(88901),h=n(92634),m=n(2274),g=n(49452),f=n(37906),b=n(42167),v=n(91158),y=n(26247),k=n(10790);const __=l.__;const w=function({clientId:e}){const t=(0,o.useBlockProps)(),n=(0,a.useSelect)(e=>e(i.store).getCurrentPostType(),[]),l=(0,b.I)(n),w=(0,y.A)(),x=(0,v.iF)(),{getBlock:_}=(0,a.useSelect)(o.store),j=(0,c.useRef)(x);j.current=x,(0,c.useEffect)(()=>()=>{_(e)||j.current(f.P2.everybody.key)},[e,_]);const{stripeConnectUrl:C,hasTierPlans:A}=(0,a.useSelect)(e=>{const{getNewsletterTierProducts:t,getConnectUrl:n}=e("jetpack/membership-products");return{stripeConnectUrl:n(),hasTierPlans:0!==t()?.length}}),[S,E]=(0,c.useState)(!1);function T(e){f.P2.paid_subscribers.key!==e||!C&&A?x(e):E(!0)}if((0,c.useEffect)(()=>{l===f.P2.everybody.key&&x(f.P2.subscribers.key)},[l,x]),!w)return(0,k.jsx)("div",{...t,children:(0,k.jsx)(m.A,{block:"Paywall",explanation:__("Connect your WordPress.com account to enable a paywall for your site.","jetpack")})});const N=e=>e===f.P2.paid_subscribers.key?f.P2.paid_subscribers.label:f.P2.subscribers.label,P=(e=>{switch(e){case f.P2.subscribers.key:return __("Subscriber-only content below","jetpack");case f.P2.paid_subscribers.key:return __("Paid content below this line","jetpack");default:return __("Paywall","jetpack")}})(l);let B=l??f.P2.subscribers.key;return B===f.P2.everybody.key&&(B=f.P2.subscribers.key),(0,k.jsxs)("div",{...t,children:[(0,k.jsx)("div",{className:"wp-block-jetpack-paywall-block",children:(0,k.jsxs)("span",{children:[P,(0,k.jsx)(u.A,{icon:d.A,size:16})]})}),(0,k.jsx)(o.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block",children:(0,k.jsx)(s.ToolbarDropdownMenu,{className:"product-management-control-toolbar__dropdown-button",icon:h.A,text:N(l),children:({onClose:e})=>(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(s.MenuGroup,{children:[(0,k.jsx)(s.MenuItem,{onClick:()=>{T(f.P2.subscribers.key),e()},isSelected:l===f.P2.subscribers.key,icon:l===f.P2.subscribers.key&&p.A,iconPosition:"right",children:N(f.P2.subscribers.key)}),(0,k.jsx)(s.MenuItem,{onClick:()=>{T(f.P2.paid_subscribers.key),e()},isSelected:l===f.P2.paid_subscribers.key,icon:l===f.P2.paid_subscribers.key&&p.A,iconPosition:"right",children:N(f.P2.paid_subscribers.key)})]})})})}),(0,k.jsx)(g.A,{closeDialog:()=>E(!1),showDialog:S}),(0,k.jsx)(o.InspectorControls,{children:(0,k.jsx)(s.PanelBody,{className:"jetpack-subscribe-newsletters-panel",title:__("Content access","jetpack"),icon:(0,k.jsx)(r.jt,{}),initialOpen:!0,children:(0,k.jsx)(v.EX,{accessLevel:B,stripeConnectUrl:C,hasTierPlans:A,postHasPaywallBlock:!0,explainPaywallConstraint:!1})})})]})}},19954(e,t,n){"use strict";var r=n(74997),o=n(47143),s=n(43656),a=n(94375),i=n(64524),c=n(32129),l=n(89110);n(90705);const u=(0,o.subscribe)(()=>{const e=(0,o.select)(s.store).getCurrentPostType();null!==e&&(u(),e&&"post"!==e&&void 0!==(0,r.getBlockType)(i.name)&&(0,r.unregisterBlockType)(i.name))});(0,a.M)(i,{edit:c.A,save:()=>null,transforms:l.A})},89110(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(74997),o=n(64524);const s={from:[{type:"block",blocks:["core/more","core/nextpage"],transform:()=>(0,r.createBlock)(o.name)}],to:[{type:"block",blocks:["core/more"],transform:()=>(0,r.createBlock)("core/more")},{type:"block",blocks:["core/nextpage"],transform:()=>(0,r.createBlock)("core/nextpage")}]}},59767(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(85985),o=n(56427),s=n(27723),a=n(73800),i=n(10790);const __=s.__,_x=s._x,c=(0,r.sh)(a);function l({className:e,onSubmit:t,noticeUI:n,url:r,setUrl:s}){return(0,i.jsx)("div",{className:e,children:(0,i.jsx)(o.Placeholder,{label:__("Pinterest","jetpack"),icon:c,notices:n,children:(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),t()},children:[(0,i.jsx)("input",{type:"url",value:r,className:"components-placeholder__input","aria-label":__("Pinterest URL","jetpack"),placeholder:__("Enter URL to embed here…","jetpack"),onChange:e=>s(e.target.value)}),(0,i.jsx)(o.Button,{variant:"secondary",type:"submit",children:_x("Embed","button label","jetpack")})]})})})}},62769(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(74997),o=n(56427),s=n(86087),a=n(27723),i=n(10790);const __=a.__,_x=a._x;function c({fallbackUrl:e,onClick:t}){return(0,i.jsxs)(i.Fragment,{children:[__("Sorry, this content could not be embedded.","jetpack")," ",(0,i.jsx)(o.Button,{variant:"link",onClick:()=>{const n=(0,i.jsx)("a",{href:e,children:e});t((0,r.createBlock)("core/paragraph",{content:(0,s.renderToString)(n)}))},children:_x("Convert block to link","button label","jetpack")})]})}},83646(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__;function a(){return(0,s.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,s.jsx)(r.Spinner,{}),(0,s.jsx)("p",{children:__("Embedding…","jetpack")})]})}},76910(e,t,n){"use strict";n.d(t,{_:()=>o,e:()=>r});const r="https://pinterest.com/anapinskywalker/",o=/^\s*https?:\/\/(?:www\.)?(?:[a-z]{2}\.)?(?:pinterest\.[a-z.]+|pin\.it)\/([^/]+)(\/[^/]+)?/i},62713(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(57462),o=n(10790);const s={attributes:{url:{type:"string"}},supports:{align:!1,html:!1},save:({attributes:e,className:t})=>{const{url:n}=e;return(0,r.C)(n)?(0,o.jsx)("div",{className:t,children:(0,o.jsx)("a",{"data-pin-do":(0,r.C)(n),href:n})}):null}}},32089(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(94715),o=n(56427),s=n(86087),a=n(59767),i=n(62769),c=n(83646),l=n(67627),u=n(57462),d=n(10790);const p=(0,o.withNotices)(function({attributes:e,isSelected:t,noticeOperations:n,noticeUI:p,setAttributes:h,onReplace:m}){const{url:g}=e,f=(0,r.useBlockProps)(),{isFetching:b,pinterestUrl:v,testUrl:y,hasTestUrlError:k}=(0,l.A)(),[w,x]=(0,s.useState)(!1),[_,j]=(0,s.useState)(""),[C,A]=(0,s.useState)(!1),S=(0,s.useCallback)(()=>(0,d.jsx)(i.A,{fallbackUrl:_,onClick:m}),[k]),E=()=>{b||(y(_),A(!1))},T=()=>{x(!0)};if((0,s.useEffect)(()=>{g&&y(g)},[]),(0,s.useEffect)(()=>{!t&&w&&x(!1)},[t,w]),(0,s.useEffect)(()=>{h({url:v}),n.removeAllNotices(),v&&j(v),k&&n.createErrorNotice(S())},[v,k,h,S]),b)return(0,d.jsx)(c.A,{});const N=(0,u.C)(g);let P;if(C||!g||g&&!N)P=(0,d.jsx)(a.A,{onSubmit:E,noticeUI:p,url:_,setUrl:j});else{const e=`<a data-pin-do='${N}' href='${g}'></a>`;P=(0,d.jsx)("div",{...f,children:(0,d.jsxs)("div",{children:[(0,d.jsx)(o.SandBox,{html:e,scripts:["https://assets.pinterest.com/js/pinit.js"],onFocus:T}),!w&&(0,d.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:T})]})})}return(0,d.jsx)("div",{...f,children:P})})},46010(e,t,n){"use strict";var r=n(94375),o=n(73800),s=n(62713),a=n(32089),i=n(9114);(0,r.M)(o,{edit:a.A,save:i.A,deprecated:[s.A]})},67627(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(56145),s=n(76910);const a=(e="")=>{const[t,n]=(0,r.useState)(!1),[a,i]=(0,r.useState)(e),[c,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{a&&a!==s.e&&(n(!0),(0,o.A)(a).then(e=>{n(!1),i(e),l(!1)}).catch(()=>{n(!1),i(a||void 0),l(!0)}))},[a]),{isFetching:t,pinterestUrl:a,hasTestUrlError:c,testUrl:i}}},9114(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s({attributes:e}){const t=r.useBlockProps.save(),{url:n}=e;return(0,o.jsx)("a",{...t,href:n,children:n})}},57462(e,t,n){"use strict";n.d(t,{C:()=>s});var r=n(93832),o=n(76910);function s(e){if(!o._.test(e))return"";const t=(0,r.getPath)(e);return t?t.startsWith("pin/")?"embedPin":t.match(/^([^/]+)\/?$/)?"embedUser":t.match(/^([^/]+)\/([^/]+)\/?$/)?"embedBoard":"":""}},50961(e,t,n){"use strict";n.d(t,{N:()=>i,T:()=>c});var r=n(1455),o=n.n(r),s=n(93832),a=n(38288);const i=async()=>await o()({path:"/wpcom/v2/podcast-player/track-quantity"}),c=async({url:e,guids:t=[],fetchEpisodeOptions:n=!1})=>{let r,i,c;try{r=await o()({path:(0,s.addQueryArgs)("/wpcom/v2/podcast-player",{url:e,guids:t,"episode-options":n})})}catch(e){i=e}if(r)return{type:a.g,data:r};try{c=await o()({path:(0,s.addQueryArgs)("/oembed/1.0/proxy",{url:e})})}catch{}const l='<a href="'+e+'">'+e+"</a>";if(c&&c.html!==l)return{type:a.Q};throw i}},73959(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(86087),o=n(13022),s=n(77722),a=n(10790);const i=(0,r.memo)(({playerId:e,title:t,cover:n,link:r,track:o,children:s,showEpisodeTitle:i,showCoverArt:l,showEpisodeDescription:u,colors:d})=>l||i||u?(0,a.jsxs)("div",{className:"jetpack-podcast-player__header",children:[(0,a.jsxs)("div",{className:"jetpack-podcast-player__current-track-info",children:[l&&n&&(0,a.jsx)("div",{className:"jetpack-podcast-player__cover",children:(0,a.jsx)("img",{className:"jetpack-podcast-player__cover-image",src:n,alt:""})}),i&&!!(t||o&&o.title)&&(0,a.jsx)(c,{playerId:e,title:t,link:r,track:o,colors:d})]}),!!(u&&o&&o.description)&&(0,a.jsx)("p",{id:`${e}__track-description`,className:"jetpack-podcast-player__track-description",children:o.description}),s]}):s),c=(0,r.memo)(({playerId:e,title:t,link:n,track:r,colors:i={primary:{name:null,custom:null,classes:""}}})=>(0,a.jsxs)("h2",{id:`${e}__title`,className:"jetpack-podcast-player__title",children:[!(!r||!r.title)&&(0,a.jsxs)("span",{className:(0,o.A)("jetpack-podcast-player__current-track-title",i.primary.classes),style:{color:i.primary.custom},children:[r.title,(0,a.jsx)("a",{className:"jetpack-podcast-player__track-title-link",href:r.link||r.src,target:"_blank",rel:"noopener noreferrer nofollow",children:s.A})]}),!!(r&&r.title&&t)&&(0,a.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:" - "}),!!t&&(0,a.jsx)(l,{title:t,link:n,colors:i})]})),l=(0,r.memo)(({title:e,link:t})=>(0,a.jsx)("span",{className:"jetpack-podcast-player__podcast-title",children:t?(0,a.jsx)("a",{className:"jetpack-podcast-player__link",href:t,target:"_blank",rel:"noopener noreferrer nofollow",children:e}):{title:e}})),u=i},5028(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(86087),o=n(23117),s=n(15663),a=n(10790);const i=(0,r.memo)(({playerId:e,tracks:t,selectTrack:n,currentTrack:r,playerState:i,colors:c})=>(0,a.jsx)("ol",{className:"jetpack-podcast-player__tracks","aria-labelledby":`jetpack-podcast-player__tracklist-title--${e}`,"aria-describedby":`jetpack-podcast-player__tracklist-description--${e}`,children:t.map((e,t)=>{const l=r===t;return(0,a.jsx)(s.A,{index:t,track:e,selectTrack:n,isActive:l,isPlaying:l&&i===o.v8,isError:l&&i===o.pF,colors:c},e.id)})}))},81894(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(20195),o=n(29491),s=n(47143),a=n(86087),i=n(27723),c=n(13022),l=n(72445),u=n(23117),d=n(19812),p=n(73959),h=n(5028),m=n(19634),g=n(10790);const __=i.__;class f extends a.Component{state={currentTrack:0,hasUserInteraction:!1};recordUserInteraction=()=>{this.state.hasUserInteraction||this.setState({hasUserInteraction:!0})};selectTrack=e=>{const{currentTrack:t}=this.state;if(t===e)return this.recordUserInteraction(),void this.props.toggleMediaSource(this.props.playerId);-1!==t&&this.props.pauseMediaSource(this.props.playerId),this.loadAndPlay(e)};loadTrack=e=>{const t=this.getTrack(e);if(!t)return!1;this.state.currentTrack!==e&&this.setState({currentTrack:e});const{title:n,link:o,description:s}=t;return this.props.updateMediaSourceData(this.props.playerId,{title:n,link:o}),(0,r.speak)(/* translators: %s is the track title. It describes the current state of the track as "Loading: [track title]". */ | |
| 83 | +`${(0,i.sprintf)(__("Loading: %s","jetpack"),n)} ${s}`,"assertive"),!0};loadAndPlay=e=>{this.recordUserInteraction(),this.loadTrack(e)&&this.props.playMediaSource(this.props.playerId)};getTrack=e=>this.props.tracks[e];handleError=e=>{if(!this.state.hasUserInteraction){const t=window.navigator.userAgent.match(/Trident\/7\./)?"IE11: Playing sounds in webpages setting is not checked":e;this.setState(()=>{throw new Error(t)})}this.props.errorMediaSource(this.props.playerId),(0,r.speak)(`${__("Error: Episode unavailable - Open in a new tab","jetpack")}`,"assertive")};handlePlay=()=>{this.props.playMediaSource(this.props.playerId),this.setState({hasUserInteraction:!0})};handlePause=()=>{this.props.pauseMediaSource(this.props.playerId),this.props.playerState!==u.pF&&this.props.pauseMediaSource(this.props.playerId)};handleTimeChange=e=>{this.props.setMediaSourceCurrentTime(this.props.playerId,e)};handleJump=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime-5)};handleSkip=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime+30)};updateMediaData=e=>{this.props.updateMediaSourceData(this.props.playerId,{duration:e.target?.duration,domId:e.target?.id})};registerPlayer(){const e=this.getTrack(this.state.currentTrack)||{},{playerId:t}=this.props;this.props.registerMediaSource(t,{title:e.title,link:e.link,state:u.vh}),this.props.setDefaultMediaSource(t)}componentDidMount(){this.props.playerId&&this.registerPlayer()}componentWillUnmount(){this.props.playerId&&this.props.unregisterMediaSource(this.props.playerId)}componentDidUpdate(e){const t=e=>e?.length?e.map(e=>e.guid):[],n=t(this.props.tracks),r=new Set(t(e.tracks));n.length===r.size&&n.every(e=>r.has(e))||this.loadTrack(0)}static getDerivedStateFromProps(e,t){return e.tracks.length<=t.currentTrack?{...t,currentTrack:0}:null}render(){const{playerId:e,title:t,link:n,cover:r,tracks:o,attributes:s,currentTime:a,playerState:u}=this.props,{itemsToShow:m,primaryColor:f,customPrimaryColor:b,hexPrimaryColor:v,secondaryColor:y,customSecondaryColor:k,hexSecondaryColor:w,backgroundColor:x,customBackgroundColor:_,hexBackgroundColor:j,showCoverArt:C,showEpisodeTitle:A,showEpisodeDescription:S}=s,{currentTrack:E}=this.state,T=o.slice(0,m),N=this.getTrack(E),P=(0,d.GU)({primaryColor:f,customPrimaryColor:b,secondaryColor:y,customSecondaryColor:k,backgroundColor:x,customBackgroundColor:_}),B={color:k,backgroundColor:_,"--jetpack-podcast-player-primary":v,"--jetpack-podcast-player-secondary":w,"--jetpack-podcast-player-background":j},I=(0,c.A)("jetpack-podcast-player",u,P.secondary.classes,P.background.classes);return(0,g.jsxs)("section",{className:I,style:B,"aria-labelledby":t||N&&N.title?`${e}__title`:void 0,"aria-describedby":N&&N.description?`${e}__track-description`:void 0,"data-jetpack-iframe-ignore":!0,children:[(0,g.jsx)(p.A,{playerId:e,title:t,link:n,cover:r,track:this.getTrack(E),showCoverArt:C,showEpisodeTitle:A,showEpisodeDescription:S,colors:P,children:(0,g.jsx)(l.A,{onJumpBack:this.handleJump,onSkipForward:this.handleSkip,trackSource:this.getTrack(E).src,onPlay:this.handlePlay,onPause:this.handlePause,onError:this.handleError,playStatus:u,currentTime:a,onTimeChange:this.handleTimeChange,onMetadataLoaded:this.updateMediaData,preload:"none"})}),T.length>1&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h4",{id:`jetpack-podcast-player__tracklist-title--${e}`,className:"jetpack-podcast-player--visually-hidden",children:(0,i.sprintf)( | |
| 54 | 84 | // translators: %s is the track title. |
| 55 | -__("Playlist: %s","jetpack"),t)),(0,r.createElement)("p",{id:`jetpack-podcast-player__tracklist-description--${e}`,className:"jetpack-podcast-player--visually-hidden"},__("Select an episode to play it in the audio player.","jetpack")),(0,r.createElement)(A.Z,{playerId:e,playerState:c,currentTrack:j,tracks:x,selectTrack:this.selectTrack,colors:Q})))}}E.defaultProps={title:"",cover:"",link:"",attributes:{url:null,itemsToShow:5,showCoverArt:!0,showEpisodeTitle:!0,showEpisodeDescription:!0},tracks:[]};const f=(0,s.compose)([h.Z,(0,o.withSelect)(((e,t)=>{const{playerId:n}=t,{getMediaSourceCurrentTime:r,getMediaPlayerState:a}=e(p.tT);return{currentTime:r(n),playerState:a(n)}})),(0,o.withDispatch)((e=>{const{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:a,playMediaSource:s,pauseMediaSource:o,toggleMediaSource:i,errorMediaSource:l,setMediaSourceCurrentTime:c}=e(p.tT);return{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:a,playMediaSource:s,pauseMediaSource:o,toggleMediaSource:i,errorMediaSource:l,setMediaSourceCurrentTime:c}}))])(E)},46843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307),s=n(65736);const __=s.__,o=(0,a.memo)((({link:e,title:t,colors:n})=>(0,r.createElement)("div",{className:"jetpack-podcast-player__track-error"},__("Episode unavailable. ","jetpack"),e&&(0,r.createElement)("span",{className:n.secondary.classes,style:{color:n.secondary.custom}},(0,r.createElement)("a",{className:"jetpack-podcast-player__link",href:e,rel:"noopener noreferrer nofollow",target:"_blank"},(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"},`${(0,s.sprintf)(/* translators: %s is the title of the track. This text is visually hidden from the screen, but available to screen readers. */ | |
| 56 | -__("%s:","jetpack"),t)} `),__("Open in a new tab","jetpack"))))))},96817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(69307),s=n(65736),o=n(69650);const __=s.__,i=(0,a.memo)((({isPlaying:e,isError:t,className:n})=>{let a,s;t?(s="error", | |
| 85 | +__("Playlist: %s","jetpack"),t)}),(0,g.jsx)("p",{id:`jetpack-podcast-player__tracklist-description--${e}`,className:"jetpack-podcast-player--visually-hidden",children:__("Select an episode to play it in the audio player.","jetpack")}),(0,g.jsx)(h.A,{playerId:e,playerState:u,currentTrack:E,tracks:T,selectTrack:this.selectTrack,colors:P})]})]})}}f.defaultProps={title:"",cover:"",link:"",attributes:{url:null,itemsToShow:5,showCoverArt:!0,showEpisodeTitle:!0,showEpisodeDescription:!0},tracks:[]};const b=(0,o.compose)([m.A,(0,s.withSelect)((e,t)=>{const{playerId:n}=t,{getMediaSourceCurrentTime:r,getMediaPlayerState:o}=e(u.ax);return{currentTime:r(n),playerState:o(n)}}),(0,s.withDispatch)(e=>{const{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:o,playMediaSource:s,pauseMediaSource:a,toggleMediaSource:i,errorMediaSource:c,setMediaSourceCurrentTime:l}=e(u.ax);return{registerMediaSource:t,updateMediaSourceData:n,unregisterMediaSource:r,setDefaultMediaSource:o,playMediaSource:s,pauseMediaSource:a,toggleMediaSource:i,errorMediaSource:c,setMediaSourceCurrentTime:l}})])(f)},18142(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(27723),s=n(10790);const __=o.__,a=(0,r.memo)(({link:e,title:t,colors:n})=>(0,s.jsxs)("div",{className:"jetpack-podcast-player__track-error",children:[__("Episode unavailable.","jetpack")," ",e&&(0,s.jsx)("span",{className:n.secondary.classes,style:{color:n.secondary.custom},children:(0,s.jsxs)("a",{className:"jetpack-podcast-player__link",href:e,rel:"noopener noreferrer nofollow",target:"_blank",children:[(0,s.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:`${(0,o.sprintf)(/* translators: %s is the title of the track. This text is visually hidden from the screen, but available to screen readers. */ | |
| 86 | +__("%s:","jetpack"),t)} `}),__("Open in a new tab","jetpack")]})})]}))},98485(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(86087),o=n(27723),s=n(16124),a=n(10790);const __=o.__,i=(0,r.memo)(({isPlaying:e,isError:t,className:n})=>{let r,o;t?(o="error", | |
| 57 | 87 | /* translators: This is text to describe the current state. This will go |
| 58 | 88 | before the track title, such as "Error: [The title of the track]". */ |
| 59 | -a=__("Error:","jetpack")):e&&(s="playing", | |
| 89 | +r=__("Error:","jetpack")):e&&(o="playing", | |
| 60 | 90 | /* translators: Text to describe the current state. This will go before the |
| 61 | 91 | track title, such as "Playing: [The title of the track]". */ |
| 62 | -a=__("Playing:","jetpack"));const i=o[s];return i?(0,r.createElement)("span",{className:`${n} ${n}--${s}`},(0,r.createElement)("span",{className:"jetpack-podcast-player--visually-hidden"},`${a} `),i):(0,r.createElement)("span",{className:n})}))},72862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(69307),s=n(65736),o=n(65235),i=n.n(o),l=n(66085),c=n(46843),u=n(96817);const __=s.__,d=(0,a.memo)((({track:e,isActive:t,isPlaying:n,isError:a,selectTrack:s,index:o,colors:d={primary:{},secondary:{}}})=>{const p=(0,l.Gd)("color",d.primary.name),m=(0,l.Gd)("color",d.secondary.name),g=i()("jetpack-podcast-player__track",{"is-active":t,"has-primary":t&&(d.primary.name||d.primary.custom),[p]:t&&!!p,"has-secondary":!t&&(d.secondary.name||d.secondary.custom),[m]:!t&&!!m}),A={};t&&d.primary.custom&&!p?A.color=d.primary.custom:t||!d.secondary.custom||m||(A.color=d.secondary.custom);const | |
| 92 | +r=__("Playing:","jetpack"));const i=s[o];return i?(0,a.jsxs)("span",{className:`${n} ${n}--${o}`,children:[(0,a.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:`${r} `}),i]}):(0,a.jsx)("span",{className:n})})},15663(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(86087),o=n(27723),s=n(13022),a=n(19812),i=n(18142),c=n(98485),l=n(10790);const __=o.__,u=(0,r.memo)(({track:e,isActive:t,isPlaying:n,isError:r,selectTrack:o,index:u,colors:d={primary:{},secondary:{}}})=>{const p=(0,a.tQ)("color",d.primary.name),h=(0,a.tQ)("color",d.secondary.name),m=(0,s.A)("jetpack-podcast-player__track",{"is-active":t,"has-primary":t&&(d.primary.name||d.primary.custom),[p]:t&&!!p,"has-secondary":!t&&(d.secondary.name||d.secondary.custom),[h]:!t&&!!h}),g={};t&&d.primary.custom&&!p?g.color=d.primary.custom:t||!d.secondary.custom||h||(g.color=d.secondary.custom);const | |
| 63 | 93 | /* translators: This needs to be a single word with no spaces. It describes |
| 64 | 94 | the current item in the group. A screen reader will announce it as "[title], |
| 65 | 95 | current track". */ |
| 66 | -h=t?__("track","jetpack"):void 0;return(0,r.createElement)("li",{className:g,style:Object.keys(A).length?A:null},(0,r.createElement)("a",{className:"jetpack-podcast-player__link jetpack-podcast-player__track-link",href:e.link||e.src,role:"button","aria-current":h,onClick:e=>{e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),s(o))},onKeyDown:e=>{" "===event.key&&(e.preventDefault(),s(o))}},(0,r.createElement)(u.Z,{className:"jetpack-podcast-player__track-status-icon",isPlaying:n,isError:a}),(0,r.createElement)("span",{className:"jetpack-podcast-player__track-title"},e.title),e.duration&&(0,r.createElement)("time",{className:"jetpack-podcast-player__track-duration",dateTime:e.duration},e.duration)),t&&a&&(0,r.createElement)(c.Z,{link:e.link,title:e.title,colors:d}))}))},71540:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307),s=n(65736);const __=s.__;function o(e){class t extends a.Component{state={didError:!1,isIE11AudioIssue:!1};componentDidCatch=(e,t)=>{this.props.onError(e,t)};static getDerivedStateFromError=e=>({didError:!0,isIE11AudioIssue:!!e.message.match(/IE11/)});render(){const{didError:t,isIE11AudioIssue:n}=this.state;return t?(0,r.createElement)("section",{className:"jetpack-podcast-player"},(0,r.createElement)("p",{className:"jetpack-podcast-player__error"},n?__('The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser’s "Internet options" settings. In the "Advanced" tab you will have to check the box next to "Play sounds in webpages" in the "Multimedia" section. Once you have confirmed that the box is checked, please press "Apply" and then reload this page.',"jetpack"):__("An unexpected error occured within the Podcast Player. Reloading this page might fix the problem.","jetpack",0))):(0,r.createElement)(e,this.props)}}return t.defaultProps={onError:()=>{}},t}},63226:(e,t,n)=>{"use strict";n.d(t,{b:()=>a,u:()=>r});const r="podcast-feed",a="embed-block"},16542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(96483),a=n(24381);const s={attributes:{url:{type:"string",validator:r.isUrl},itemsToShow:{type:"integer",default:5},showCoverArt:{type:"boolean",default:!0},showEpisodeDescription:{type:"boolean",default:!0},primaryColor:{type:"string"},customPrimaryColor:{type:"string",validator:a.Z},hexPrimaryColor:{type:"string",validator:a.Z},secondaryColor:{type:"string"},customSecondaryColor:{type:"string",validator:a.Z},hexSecondaryColor:{type:"string",validator:a.Z},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:a.Z},hexBackgroundColor:{type:"string",validator:a.Z},exampleFeedData:{type:"object"}},supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},save:()=>null}},99800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(51806),a=n(13419),s=n(52175),o=n(4981),i=n(55609),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(96483),m=n(51128),g=n.n(m),A=n(92819),h=n(43718),E=n(85007),f=n(4554),b=n(98075),C=n(33665),v=n(71600),k=n(63226),B=n(13331),y=n(93610),w=n(66085);const __=d.__,_=g()("jetpack:podcast-player:edit"),I=(0,a.Wp)()||(0,a.Ug)()?"http://en.support.wordpress.com/wordpress-editor/blocks/podcast-player-block/":"https://jetpack.com/support/jetpack-blocks/podcast-player-block/",j=(0,l.compose)([(0,c.withDispatch)(((e,{clientId:t,attributes:n})=>({replaceWithEmbedBlock(){e("core/block-editor").replaceBlock(t,(0,o.createBlock)("core/embed",{url:n.url}))}}))),(0,s.withColors)("backgroundColor",{primaryColor:"color"},{secondaryColor:"color"}),i.withNotices,l.withInstanceId,h.K])((({instanceId:e,attributes:t,setAttributes:n,noticeOperations:{createErrorNotice:a,removeAllNotices:o},noticeUI:l,primaryColor:c,setPrimaryColor:d,secondaryColor:m,setSecondaryColor:g,fallbackTextColor:h,backgroundColor:j,setBackgroundColor:x,fallbackBackgroundColor:S,isSelected:Q,replaceWithEmbedBlock:N})=>{const P=(0,f.S)(C.attributes,t),{url:T,selectedEpisodes:R,itemsToShow:Z,showCoverArt:L,showEpisodeTitle:M,showEpisodeDescription:D,exampleFeedData:F}=P,z=`jetpack-podcast-player-block-${e}`,O=(0,s.useBlockProps)(),[U,H]=(0,u.useState)(!1),[V,q]=(0,u.useState)(10),G=(0,u.useRef)(),[{selectedGuid:$,checkUrl:W,...J},Y]=(0,u.useReducer)(y.J,{editedUrl:T||"",isEditing:!T&&!F,isLoading:!1,feedData:F||{},isInteractive:!1,selectedGuid:R?.[0]?.guid,checkUrl:T||""}),K=(0,u.useMemo)((()=>(0,A.debounce)((e=>{Y({type:y.N.START_FETCH}),G.current?.cancel(),G.current=(0,w.W4)((0,b.q)({...e,fetchEpisodeOptions:!0})),G.current.promise.then((t=>{if(o(),t?.isCanceled)_("Block was unmounted during fetch",t);else switch(t?.type){case k.u:return n({url:e.url,selectedEpisodes:e.guids.map((e=>({guid:e})))}),Y({type:y.N.FEED_RECEIVED,payload:t.data});case k.b:return N()}}),(e=>{e?.isCanceled?_("Block was unmounted during fetch",e):(_("feed error",e),o(),a(e.message||__("Your podcast couldn't be embedded. Please double check your URL.","jetpack")),Y({type:y.N.START_EDITING}))}))}),300)),[N,n,a,o]);(0,u.useEffect)((()=>()=>{G?.current?.cancel?.()}),[]);const X=(0,u.useCallback)((e=>{null===e||U||((0,E.DT)(["link#mediaelement-css","link#wp-mediaelement-css"],e),H(!0))}),[U]);(0,u.useEffect)((()=>{if(""!==W)return K({url:W,guids:$?[$]:[]}),()=>G?.current?.cancel?.()}),[K,W,$]),(0,u.useEffect)((()=>{(0,b.G)().then((e=>{q(e)}))}),[]),(0,u.useEffect)((()=>{$&&1!==Z&&n({itemsToShow:1})}),[$,Z,n]),(0,u.useEffect)((()=>{!Q&&J.isInteractive&&Y({type:y.N.PREVENT_INTERACTIONS})}),[Q,J.isInteractive]);const ee=e=>{if(e.preventDefault(),""===J.editedUrl)return;const t=(0,p.prependHTTP)(J.editedUrl);(0,p.isURL)(t)?(t===W?(Y({type:y.N.CLEAR_FEED}),K({url:W,guids:R[0]?.guid?[R[0].guid]:[]})):Y({type:y.N.CHECK_URL,payload:t}),Y({type:y.N.FINISH_EDITING,payload:t})):a(__("Your podcast couldn't be embedded. Please double check your URL.","jetpack"))};let te;if(J.isEditing)te=(0,r.createElement)(i.Placeholder,{icon:B.E,label:__("Podcast Player","jetpack"),instructions:__("Enter your podcast RSS feed URL.","jetpack"),className:"jetpack-podcast-player__placeholder"},(0,r.createElement)("form",{onSubmit:ee},l,(0,r.createElement)(i.TextControl,{type:"text",inputMode:"url",placeholder:__("Enter URL here…","jetpack"),value:J.editedUrl,className:"components-placeholder__input",onChange:e=>Y({type:y.N.EDIT_URL,payload:e})}),(0,r.createElement)(i.Button,{variant:"primary",type:"submit"},__("Embed","jetpack"))),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(i.ExternalLink,{href:I},__("Learn more about embeds","jetpack"))));else if(J.feedData.tracks?.length){const e=(e,t)=>r=>{n({[e]:r}),t(r)};te=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(i.ToolbarGroup,null,(0,r.createElement)(i.ToolbarButton,{"aria-label":__("Edit Podcast Feed URL","jetpack"),onClick:()=>Y({type:y.N.START_EDITING})},__("Replace","jetpack")))),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(i.PanelBody,{title:__("Podcast settings","jetpack")},(i.ComboboxControl||0===R.length)&&(0,r.createElement)(i.RangeControl,{label:__("Number of items","jetpack"),value:Z,onChange:e=>n({itemsToShow:$?1:e}),min:1,max:V,required:!0,disabled:!!$}),i.ComboboxControl&&(0,r.createElement)(i.ComboboxControl,{className:"jetpack-podcast-player__episode-selector",value:$,onChange:e=>Y({type:y.N.SELECT_EPISODE,payload:e}),options:J.feedData.options||[],label:__("Episode","jetpack"),onFilterValueChange:A.noop}),(0,r.createElement)(i.ToggleControl,{label:__("Show Cover Art","jetpack"),checked:L,onChange:e=>n({showCoverArt:e})}),(0,r.createElement)(i.ToggleControl,{label:__("Show Episode Title","jetpack"),checked:M,onChange:e=>n({showEpisodeTitle:e})}),(0,r.createElement)(i.ToggleControl,{label:__("Show Episode Description","jetpack"),checked:D,onChange:e=>n({showEpisodeDescription:e})})),(0,r.createElement)(s.PanelColorSettings,{title:__("Color Settings","jetpack"),colorSettings:[{value:c.color,onChange:e("hexPrimaryColor",d),label:__("Primary Color","jetpack")},{value:m.color,onChange:e("hexSecondaryColor",g),label:__("Secondary Color","jetpack")},{value:j.color,onChange:e("hexBackgroundColor",x),label:__("Background Color","jetpack")}]},(0,r.createElement)(s.ContrastChecker,{isLargeText:!1,textColor:m.color,backgroundColor:j.color,fallbackBackgroundColor:S,fallbackTextColor:h}))),(0,r.createElement)("div",{id:z,ref:X},(0,r.createElement)(v.Z,{playerId:z,attributes:P,tracks:J.feedData.tracks,cover:J.feedData.cover,title:J.feedData.title,link:J.feedData.link}),!J.isInteractive&&!J.isLoading&&(0,r.createElement)("div",{className:"jetpack-podcast-player__interactive-overlay",onMouseUp:()=>Y({type:y.N.MAKE_INTERACTIVE})}),J.isLoading&&(0,r.createElement)("div",{className:"jetpack-podcast-player__loading-overlay"},(0,r.createElement)(i.Spinner,null))))}else te=(0,r.createElement)(i.Placeholder,{icon:B.E,label:__("Podcast Player","jetpack"),instructions:__("Loading podcast feed…","jetpack")},(0,r.createElement)(i.Spinner,null));return(0,r.createElement)("div",O,te)}))},28345:(e,t,n)=>{"use strict";var r=n(31985),a=n(33665),s=n(16542),o=n(99800),i=n(10591);(0,r.S)(a,{edit:o.Z,save:i.Z,deprecated:[s.Z]})},13331:(e,t,n)=>{"use strict";n.d(t,{E:()=>r.Z});var r=n(26152)},29431:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(70444);const s=(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}))},26152:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(70444);const s=(0,r.createElement)(a.SVG,{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.G,null,(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"}),(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"}),(0,r.createElement)(a.Rect,{fill:"none",height:"24",width:"24"})),(0,r.createElement)(a.G,null,(0,r.createElement)(a.G,null),(0,r.createElement)(a.G,null,(0,r.createElement)(a.G,{transform:"matrix(1 0 0 1 144 120)"},(0,r.createElement)(a.Path,{d:"M-122-114h-5v8.18c-0.31-0.11-0.65-0.18-1-0.18c-1.66,0-3,1.34-3,3s1.34,3,3,3s3-1.34,3-3v-9h3V-114 L-122-114z M-129-114h-12v2h12V-114L-129-114z M-129-110h-12v2h12V-110L-129-110z M-133-106h-8v2h8V-106L-133-106z M-129-103 c0-0.55,0.45-1,1-1c0.55,0,1,0.45,1,1s-0.45,1-1,1C-128.55-102-129-102.45-129-103z"})))))},69650:(e,t,n)=>{"use strict";n.r(t),n.d(t,{error:()=>i,playing:()=>o});var r=n(51806),a=n(70444);const s={height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},o=(0,r.createElement)(a.SVG,s,(0,r.createElement)(a.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)(a.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"})),i=(0,r.createElement)(a.SVG,s,(0,r.createElement)(a.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,r.createElement)(a.Path,{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}))},10591:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i);function c({attributes:e}){const t=o.useBlockProps.save(),{url:n}=e;if(n&&""!==n)return(0,s.createElement)("a",a()({},t,{className:l()(t.className,"jetpack-podcast-player__direct-link"),href:n}),n)}},93610:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,N:()=>r});const r={EDIT_URL:"EDIT_URL",FINISH_EDITING:"FINISH_EDITING",START_EDITING:"START_EDITING",SELECT_EPISODE:"SELECT_EPISODE",FEED_RECEIVED:"FEED_RECEIVED",CLEAR_FEED:"CLEAR_FEED",MAKE_INTERACTIVE:"MAKE_INTERACTIVE",PREVENT_INTERACTIONS:"PREVENT_INTERACTIONS",START_FETCH:"START_FETCH",CHECK_URL:"CHECK_URL"},a=(e,t)=>{switch(t.type){case r.EDIT_URL:return{...e,editedUrl:t.payload};case r.START_EDITING:return{...e,isEditing:!0,isLoading:!1};case r.FINISH_EDITING:return{...e,editedUrl:t.payload,isEditing:!1};case r.FEED_RECEIVED:return{...e,isLoading:!1,feedData:t.payload};case r.CLEAR_FEED:return{...e,feedData:{}};case r.MAKE_INTERACTIVE:return{...e,isInteractive:!0};case r.PREVENT_INTERACTIONS:return{...e,isInteractive:!1};case r.START_FETCH:return{...e,isLoading:!0};case r.SELECT_EPISODE:return{...e,selectedGuid:t.payload};case r.CHECK_URL:return{...e,selectedGuid:null,feedData:{},checkUrl:t.payload};default:return{...e}}}},66085:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>l,Gd:()=>o,W4:()=>i});var r=n(65235),a=n.n(r),s=n(92819);function o(e,t){if(e&&t)return`has-${t}-${e}`}function i(e){let t=!1;return{promise:new Promise(((n,r)=>{e.then((e=>t?r({isCanceled:!0}):n(e)),(e=>r(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}}const l=(0,s.memoize)((({primaryColor:e,customPrimaryColor:t,secondaryColor:n,customSecondaryColor:r,backgroundColor:s,customBackgroundColor:i})=>{const l=o("color",e),c=o("color",n),u=o("background-color",s);return{primary:{name:e,custom:t,classes:a()({"has-primary":l||t,[l]:l})},secondary:{name:n,custom:r,classes:a()({"has-secondary":c||r,[c]:c})},background:{name:s,custom:i,classes:a()({"has-background":u||i,[u]:u})}}}),(e=>Object.values(e).join()))},51054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){return(0,r.createElement)("div",{className:"premium-content-wrapper"},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["premium-content/subscriber-view","premium-content/logged-out-view"],templateLock:"all",template:[["premium-content/subscriber-view"],["premium-content/logged-out-view"]],__experimentalCaptureToolbars:!0,templateInsertUpdatesSelection:!1}))}},59948:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307);const s={selectedTab:{id:"",className:"",label:(0,r.createElement)(r.Fragment,null)}},o=(0,a.createContext)(s)},34601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);const s=(0,r.createElement)(a.SVG,{viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M12.7439 14.4271L8.64053 13.165L8.51431 13.8718L8.09208 20.7415C8.06165 21.2365 8.61087 21.5526 9.02363 21.2776L12.7439 18.799L16.7475 21.304C17.1687 21.5676 17.7094 21.2343 17.6631 20.7396L17.0212 13.8718L17.0212 13.165L12.7439 14.4271Z"}),(0,r.createElement)(a.Circle,{cx:"12.7439",cy:"8.69796",r:"5.94466",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,r.createElement)(a.Path,{d:"M9.71023 8.12461L11.9543 10.3687L15.7776 6.54533",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}))},86614:(e,t,n)=>{"use strict";n.d(t,{H2:()=>i,Wp:()=>o,ch:()=>l});var r=n(4981),a=n(9818),s=n(20134);const o=e=>0===e.name.indexOf("premium-content/")||e.innerBlocks.some(o),i=e=>{const{getBlocksByClientId:t,getBlockParents:n}=(0,a.select)("core/block-editor");return!!t(n(e.clientId)).find((e=>0===e.name.indexOf("premium-content/")))};function l(){return(0,a.useSelect)((e=>e(r.store).getBlockTypes()),[]).reduce(((e,t)=>(t.name!==s.name&&e.push(t.name),e)),[])}},83196:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(9818),s=n(72067),o=n(65736),i=n(20134),l=n(16912);const __=o.__;function c(){const e=(0,a.select)("core/block-editor").getSelectedBlock();(0,a.dispatch)("core/block-editor").replaceBlock(e.clientId,(0,l.e)(e.innerBlocks))}const u=()=>(0,r.createElement)(s.PluginBlockSettingsMenuItem,{allowedBlocks:[i.name],label:__("Remove block and keep content","jetpack"),onClick:c})},16912:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(4981);const a=e=>{const t=e.find((e=>"premium-content/subscriber-view"===e.name));return 1===t.innerBlocks.length&&"core/group"===t.innerBlocks[0].name?t.innerBlocks[0]:(0,r.createBlock)("core/group",{},t.innerBlocks)}},63613:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(55609);function o(e){const{options:t,selectedOption:n,selectAction:o,contractViewport:i,label:l}=e,c=e=>e.id===n.id;return i?(0,r.createElement)(a.BlockControls,{group:"block"},(0,r.createElement)(s.ToolbarDropdownMenu,{label:l,icon:"arrow-down",text:n.label},(({onClose:e})=>(0,r.createElement)(s.MenuGroup,null,t.map((t=>{const n=c(t);return(0,r.createElement)(s.MenuItem,{isSelected:n,icon:n?"yes":void 0,onClick:()=>{o(t),e()},key:`jetpack-premium-content-tab-${t.id}`},t.label)})))))):(0,r.createElement)(a.BlockControls,{group:"other"},t.map((e=>{const t=c(e);return(0,r.createElement)(s.ToolbarButton,{onClick:()=>{o(e)},className:"components-tab-button","aria-pressed":t,key:`jetpack-premium-content-tab-${e.id}`},(0,r.createElement)("span",null,e.label))})))}},72738:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(94333),o=n(9818),i=n(69307),l=n(92694),c=n(65736);const __=c.__,u=["core/button","jetpack/recurring-payments","premium-content/login-button"];const d=(0,s.compose)([(0,o.withSelect)(((e,t)=>({subscribeButton:e("core/block-editor").getBlock(t.clientId).innerBlocks.find((e=>"jetpack/recurring-payments"===e.name))}))),(0,o.withDispatch)(((e,t)=>({setSubscribeButtonPlan(n){e("core/block-editor").updateBlockAttributes(t.subscribeButton.clientId,{planIds:n})}})))])((function({context:e,subscribeButton:t,setSubscribeButtonPlan:n}){const s=(0,i.useMemo)((()=>e["premium-content/planIds"]||[]),[e]),o=!!e&&e["premium-content/isPreview"],c=[["core/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack")}],["premium-content/login-button"]],d=[["jetpack/recurring-payments",{planIds:s},[["jetpack/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack"),passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]]],["premium-content/login-button"]];(0,i.useEffect)((()=>{if(!s||0===s.length||!t)return;const e=t.attributes.planIds||[];e.length===s.length&&e.every((e=>s.includes(e)))||n(s)}),[s,t,n]),(0,i.useEffect)((()=>{t&&(0,l.addFilter)("jetpack.recurringPayments.editorSettings","jetpack/premium-content-hide-recurring-payments-controls",((e,n)=>n===t.clientId?{...e,showProductManagementControls:!1}:e))}),[t]);const p=(0,a.useBlockProps)({className:"wp-block-buttons"});return(0,r.createElement)("div",p,(0,r.createElement)(a.InnerBlocks,{allowedBlocks:u,template:o?c:d,templateInsertUpdatesSelection:!1,layout:{type:"default",alignments:[]},__experimentalMoverDirection:"horizontal"}))}))},737:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,u:()=>c});var r=n(51806),a=n(52175),s=n(65736),o=n(58829),i=n(72738),l=n(60439);const __=s.__,c="premium-content/buttons",u={apiVersion:3,title:__("Premium Content buttons","jetpack"),description:__("Prompt Premium Content visitors to take action with a group of button-style links.","jetpack"),category:"grow",icon:o.Z,supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},keywords:[__("link","jetpack")],edit:i.Z,save:l.Z,usesContext:["premium-content/planIds","premium-content/isPreview"],deprecated:[{attributes:{},supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-buttons"},(0,r.createElement)(a.InnerBlocks.Content,null))}]}},60439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){const e=a.useBlockProps.save({className:"wp-block-buttons"});return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},23842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={isEligible:(e,t)=>{if("premium-content/logged-out-view"===t?.[0]?.name)return!0},migrate:(e,t)=>[e,[t[1],t[0]]],save:n(96882).Z}},33141:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={attributes:{newPlanName:{type:"string",default:"Monthly Subscription"},newPlanCurrency:{type:"string",default:"USD"},newPlanPrice:{type:"number",default:5},newPlanInterval:{type:"string",default:"1 month"},selectedPlanId:{type:"number",default:0},isPreview:{type:"boolean",default:!1},isPremiumContentChild:{type:"boolean",default:!0}},isEligible:e=>"selectedPlanId"in e,migrate:e=>{const{selectedPlanId:t,...n}=e;return{...n,selectedPlanIds:t?[t]:[]}},save:n(96882).Z}},12215:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(55609),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(60386),m=n(14436),g=n(16367),A=n(7652),h=n(51054),E=n(59948),f=n(63613);const __=d.__,b=[{id:"premium",label:(0,s.createElement)("span",null,__("Subscriber View","jetpack")),className:"wp-premium-content-subscriber-view"},{id:"wall",label:(0,s.createElement)("span",null,__("Guest View","jetpack")),className:"wp-premium-content-logged-out-view"}],C=0,v=1,k="premium-content";function B({clientId:e,isSelected:t,attributes:n,setAttributes:r}){const{isPreview:a,selectedPlanIds:d}=n,[B,y]=(0,u.useState)(b[v]),w=(0,o.useBlockProps)(),{isApiLoading:_,selectedBlock:I}=(0,c.useSelect)((e=>({selectedBlock:e(o.store).getSelectedBlock(),isApiLoading:e(A.h).isApiStateLoading()})));(0,u.useEffect)((()=>{if(t)return;if(!I)return;const n=(0,c.select)(o.store);n.getBlockParents(I.clientId).includes(e)&&("premium-content/logged-out-view"===I.name||n.getBlockParentsByBlockName(I.clientId,"premium-content/logged-out-view").length?y(b[v]):y(b[C]))}),[e,t,I]);const j=(0,l.useViewportMatch)("medium","<");return(0,s.createElement)("div",w,!a&&(0,s.createElement)(s.Fragment,null,_&&(0,s.createElement)(i.Placeholder,{icon:"lock",label:__("Paid Content","jetpack"),instructions:__("Loading data…","jetpack")},(0,s.createElement)(i.Spinner,null)),(0,s.createElement)(p.Z,{blockName:k,clientId:e,productType:m.DM,selectedProductIds:d,setSelectedProductIds:e=>r({selectedPlanIds:e})}),(0,s.createElement)(f.Z,{options:b,selectedOption:B,selectAction:y,contractViewport:j,label:__("Change view","jetpack")})),!_&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(g.U,{blockName:k}),(0,s.createElement)(E.Z.Provider,{value:{selectedTab:B}},(0,s.createElement)(h.Z,null))))}function y(e){return(0,s.createElement)(i.Disabled.Consumer,null,(t=>(0,s.createElement)(B,a()({},e,{attributes:{...e.attributes,isPreview:t||e.attributes?.isPreview}}))))}},85053:(e,t,n)=>{"use strict";var r=n(4981),a=n(98817),s=n(31985),o=n(86614),i=n(83196),l=n(16912),c=n(20134),u=n(737),d=n(23842),p=n(33141),m=n(12215),g=n(9160),A=n(88430),h=n(96882),E=n(52149);const f=["core/nextpage","core/spacer","core/separator","core/more","core/loginout","core/post-navigation-link"],b=e=>{if(e.some(o.Wp))return!1;if((0,o.H2)(e[0]))return!1;return!e.every((e=>f.includes(e.name)))};(0,s.S)(c,{edit:m.Z,save:h.Z,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:(e,t)=>!e.some((e=>e.isPremiumContentChild))&&(void 0===t||b(t)),__experimentalConvert(e){if(!b(e))return;const t=e.map((e=>(0,r.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,r.createBlock)("premium-content/container",{},[(0,r.createBlock)("premium-content/subscriber-view",{},t),(0,r.createBlock)("premium-content/logged-out-view")])}}],to:[{type:"block",blocks:["core/group"],transform:(e,t)=>(0,l.e)(t)}]},deprecated:[p.Z,d.Z]},[{name:g.u,settings:g.X},{name:E.u,settings:E.X},{name:u.u,settings:u.X},{name:A.u,settings:A.X}],!1),(0,a.registerPlugin)("block-settings-remove-block-keep-content",{render:i.Z})},98143:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2582),a=n(52439);const s=[r.Z,a.Z]},2582:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(4981);const o={attributes:{subscribeButtonText:{type:"string",default:"Subscribe"},loginButtonText:{type:"string",default:"Log In"},buttonClasses:{type:"string",default:""},backgroundButtonColor:{type:"string",default:""},textButtonColor:{type:"string",default:""},customBackgroundButtonColor:{type:"string",default:""},customTextButtonColor:{type:"string",default:""}},isEligible:({buttonClasses:e})=>!!e,migrate:(e,t)=>{if(Array.isArray(t))for(let n=0;n<t.length;n++)if(t[n].name&&"premium-content/buttons"===t[n].name)return[e,[...t]];const n=(0,s.createBlock)("premium-content/buttons",{},[(0,s.createBlock)("jetpack/recurring-payments",{submitButtonText:e.subscribeButtonText,backgroundButtonColor:e.backgroundButtonColor,textButtonColor:e.textButtonColor,customBackgroundButtonColor:e.customBackgroundButtonColor,customTextButtonColor:e.customTextButtonColor}),(0,s.createBlock)("premium-content/login-button",{text:e.loginButtonText,backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,style:{color:{background:e.customBackgroundButtonColor,text:e.customTextButtonColor}}})]);return[e,[...t,n]]},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view"},(0,r.createElement)(a.InnerBlocks.Content,null))}},52439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);const a={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view"})}},36694:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(65736),o=n(59948),i=n(86614);const __=s.__;function l(){const e=(0,i.ch)();return(0,r.createElement)(o.Z.Consumer,null,(({selectedTab:t})=>(0,r.createElement)("div",{hidden:"premium"===t.id,className:t.className},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:e,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscribe to get access","jetpack"),level:3}],["core/paragraph",{content:__("Read more of this content when you subscribe today.","jetpack")}],["premium-content/buttons"]]}))))}},9160:(e,t,n)=>{"use strict";n.d(t,{X:()=>p,u:()=>d});var r=n(94333),a=n(9818),s=n(65736),o=n(72629),i=n(34601),l=n(98143),c=n(36694),u=n(96588);const __=s.__,d="premium-content/logged-out-view",p={title:__("Guest View","jetpack"),description:__("The container for all content shown to site visitors who are not subscribers.","jetpack"),icon:i.Z,category:"grow",parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:c.Z,save:u.Z,deprecated:l.Z},m=(0,a.subscribe)((()=>{const e=(0,a.select)("core/rich-text").getFormatType("core/link");if(!e)return;m(),(0,o.unregisterFormatType)("core/link");const t=(0,r.compose)((0,a.withSelect)((e=>({selectedBlock:e("core/block-editor").getSelectedBlock()}))),(0,r.ifCondition)((e=>e.selectedBlock&&e.selectedBlock.name!==d)))(e.edit);(0,o.registerFormatType)("core/link",{...e,edit:t})}))},96588:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){return(0,r.createElement)("div",{className:"wp-block-premium-content-logged-out-view entry-content"},(0,r.createElement)(a.InnerBlocks.Content,null))}},34154:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65736);const a={text:{type:"string",source:"html",selector:"a",default:(0,r.__)("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}},98810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(92819),s=n(65736),o=n(69307),i=n(9818),l=n(52175);const __=s.__,c="web"===o.Platform.OS;const u=e=>{if(!(0,a.isObject)(e))return e;const t=(0,a.pickBy)((0,a.mapValues)(e,u),a.identity);return(0,a.isEqual)(t,{})?void 0:t};function d({settings:e,clientId:t,enableContrastChecking:n=!0}){const{getComputedStyle:a,Node:s}=window,[i,u]=(0,o.useState)(),[d,p]=(0,o.useState)(),m=c?__("Color settings","jetpack"):__("Color Settings","jetpack",0);return(0,o.useEffect)((()=>{if(c&&!n)return;const e=function(e){return document.getElementById("block-"+e)}(t);if(!e)return;p(a(e).color);let r=e,o=a(r).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&r.parentNode&&r.parentNode.nodeType===s.ELEMENT_NODE;)r=r.parentNode,o=a(r).backgroundColor;u(o)})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(l.__experimentalPanelColorGradientSettings,{title:m,initialOpen:!1,settings:e},c&&n&&(0,r.createElement)(l.ContrastChecker,{backgroundColor:i,textColor:d})))}const p=function(e){const{attributes:t}=e,{colors:n,gradients:a}=(0,i.useSelect)((e=>e("core/block-editor").getSettings()),[]),s=(0,o.useRef)(t);(0,o.useEffect)((()=>{s.current=t}),[t]);const{style:c,textColor:p,backgroundColor:m,gradient:g}=t;let A;A=g?(0,l.getGradientValueBySlug)(a,g):c?.color?.gradient;const h=t=>r=>{const a=(0,l.getColorObjectByColorValue)(n,r),o=t+"Color",i={...s.current.style,color:{...s.current?.style?.color,[t]:a?.slug?void 0:r}},c=a?.slug?a.slug:void 0,d={style:u(i),[o]:c};e.setAttributes(d),s.current={...s.current,...d}};return(0,r.createElement)(d,{enableContrastChecking:!g&&!c?.color?.gradient,clientId:e.clientId,settings:[{label:__("Text Color","jetpack"),onColorChange:h("text"),colorValue:(0,l.getColorObjectByAttributeValues)(n,p,c?.color?.text).color},{label:__("Background Color","jetpack"),onColorChange:h("background"),colorValue:(0,l.getColorObjectByAttributeValues)(n,m,c?.color?.background).color,gradientValue:A,onGradientChange:t=>{const n=(0,l.getGradientSlugByValue)(a,t);let r;if(n){const e={...s.current?.style,color:{...s.current?.style?.color,gradient:void 0}};r={style:u(e),gradient:n}}else{const e={...s.current?.style,color:{...s.current?.style?.color,gradient:t}};r={style:u(e),gradient:void 0}}e.setAttributes(r),s.current={...s.current,...r}}}]})}},53201:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(65235),a=n.n(r),s=n(52175);function o(e){const{backgroundColor:t,textColor:n,gradient:r,style:o}=e,i=(0,s.getColorClassName)("background-color",t),l=(0,s.__experimentalGetGradientClass)(r),c=(0,s.getColorClassName)("color",n),u=a()(c,l,{[i]:!o?.color?.gradient&&!!i,"has-text-color":n||o?.color?.text,"has-background":t||o?.color?.background||r||o?.color?.gradient});return{className:u||void 0,style:o?.color?.background||o?.color?.text||o?.color?.gradient?{background:o?.color?.gradient?o.color.gradient:void 0,backgroundColor:o?.color?.background?o.color.background:void 0,color:o?.color?.text?o.color.text:void 0}:{}}}},74634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(65736),o=n(65235),i=n.n(o),l=n(53201);const c={attributes:{text:{type:"string",source:"html",selector:"a",default:(0,s.__)("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},save:({attributes:e})=>{const{borderRadius:t,text:n}=e,s=(0,l.Z)(e),o=i()("wp-block-button__link",s.className,{"no-border-radius":0===t}),c={borderRadius:t?t+"px":void 0,...s.style};return(0,r.createElement)("div",{className:"wp-block-button"},(0,r.createElement)(a.RichText.Content,{tagName:"a",className:o,style:c,value:n}))}}},53163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(65235),c=n.n(l),u=n(98810),d=n(53201);const __=i.__,p=0,m=50,g=5;function A({borderRadius:e="",setAttributes:t}){const n=(0,o.useCallback)((e=>{t({borderRadius:e})}),[t]);return(0,r.createElement)(s.PanelBody,{title:__("Border settings","jetpack")},(0,r.createElement)(s.RangeControl,{value:e,label:__("Border radius","jetpack"),min:p,max:m,initialPosition:g,allowReset:!0,onChange:n}))}const h=function(e){const{attributes:t,setAttributes:n,className:s}=e,{borderRadius:o,text:i}=t,l=(0,d.Z)(t),p=(0,a.useBlockProps)({className:"wp-block-button"});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",p,(0,r.createElement)(a.RichText,{placeholder:__("Add text…","jetpack"),value:i,onChange:e=>n({text:e}),withoutInteractiveFormatting:!0,className:c()(s,"wp-block-button__link",l.className,{"no-border-radius":0===o}),style:{borderRadius:o?o+"px":void 0,...l.style}})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(u.Z,e),(0,r.createElement)(A,{borderRadius:o,setAttributes:n})))}},88430:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,u:()=>c});var r=n(65736),a=n(58829),s=n(34154),o=n(74634),i=n(53163),l=n(91430);const __=r.__,c="premium-content/login-button",u={title:__("Premium Content login button","jetpack"),description:__("Prompt subscriber visitors to log in with a button-style link (only visible for logged out users).","jetpack"),category:"grow",attributes:s.Z,icon:a.Z,keywords:[__("link","jetpack")],supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],edit:i.Z,save:l.Z,deprecated:[o.Z]}},91430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s),i=n(53201);function l({attributes:e}){const{borderRadius:t,text:n,align:s}=e,l=(0,i.Z)(e),c=o()("wp-block-button","wp-block-premium-content-login-button",{alignleft:"left"===s},{aligncenter:"center"===s},{alignright:"right"===s}),u=o()("wp-block-button__link",l.className,{"no-border-radius":0===t}),d={borderRadius:t?t+"px":void 0,...l.style},p=a.useBlockProps.save({className:c});return(0,r.createElement)("div",p,(0,r.createElement)(a.RichText.Content,{tagName:"a",className:u,style:d,value:n}))}},96882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i);function c(){const e=o.useBlockProps.save();return(0,s.createElement)("div",a()({},e,{className:l()(e.className,"wp-block-premium-content-container")}),(0,s.createElement)(o.InnerBlocks.Content,null))}},67416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=[n(19178).Z]},19178:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);const a={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.createElement)("div",{className:"wp-block-premium-content-subscriber-view"})}},34166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(52175),s=n(94333),o=n(9818),i=n(65736),l=n(59948),c=n(86614);const __=i.__;const u=(0,s.compose)([(0,o.withSelect)(((e,t)=>({hasInnerBlocks:!!e("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.length})))])((function({hasInnerBlocks:e}){const t=(0,c.ch)();return(0,r.createElement)(l.Z.Consumer,null,(({selectedTab:n})=>(0,r.createElement)("div",{hidden:"wall"===n.id,className:n.className},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:t,renderAppender:!e&&a.InnerBlocks.ButtonBlockAppender,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscriber Content","jetpack"),level:3}],["core/paragraph",{content:__("Add content here that will only be visible to your subscribers.","jetpack")}]]}))))}))},52149:(e,t,n)=>{"use strict";n.d(t,{X:()=>c,u:()=>l});var r=n(65736),a=n(34601),s=n(67416),o=n(34166),i=n(31356);const __=r.__,l="premium-content/subscriber-view",c={title:__("Subscriber View","jetpack"),description:__("The container for all content shown to subscribers.","jetpack"),icon:a.Z,category:"grow",attributes:{},edit:o.Z,save:i.Z,parent:["premium-content/container"],supports:{inserter:!1,html:!1},deprecated:s.Z}},31356:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){return(0,r.createElement)("div",{className:"wp-block-premium-content-subscriber-view entry-content"},(0,r.createElement)(a.InnerBlocks.Content,null))}},10799:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(55609),o=n(65736),i=n(92819);const __=o.__,l=({id:e,setRating:t,children:n})=>{return(0,r.createElement)("span",{className:"jetpack-ratings-button",tabIndex:0,role:"button",onKeyDown:(a=e,({code:e})=>"Enter"===e?t(a):null),onClick:(e=>()=>t(e))(e)},n);var a},c=e=>function({setAttributes:t,attributes:{align:n,color:o,rating:c,maxRating:u}}){const d=(0,a.useBlockProps)(),p=e=>{e===c?Math.ceil(c)===c&&(e-=.5):.5===c&&1===e&&(e=0),t({rating:e})};return(0,r.createElement)("div",d,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(a.AlignmentToolbar,{value:n,onChange:e=>t({align:e})})),(0,r.createElement)("div",{style:{textAlign:n}},(0,i.range)(1,u+1).map((t=>(0,r.createElement)(l,{key:t,id:t,setRating:p},(0,r.createElement)("span",null,(0,r.createElement)(e,{className:c>=t-.5?null:"is-rating-unfilled",color:o})),(0,r.createElement)("span",null,(0,r.createElement)(e,{className:c>=t?null:"is-rating-unfilled",color:o})))))),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(s.RangeControl,{label:__("Highest rating","jetpack"),value:u,onChange:e=>t({maxRating:e}),min:2,max:10}),(0,r.createElement)(a.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!0,colorSettings:[{value:o,onChange:e=>t({color:e}),label:__("Color","jetpack")}]}))))}},36836:(e,t,n)=>{"use strict";var r=n(31985),a=n(98477),s=n(10799),o=n(5056),i=n(78403);(0,r.S)(a,{edit:(0,s.Z)(o.r),save:(0,i.Z)("★")})},5056:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(51806),a=n(55609);const s=e=>{const t=(e=>e&&e.color?e.color:"currentColor")(e),n=(e=>e&&e.className?e.className:"")(e);return(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",color:t},(0,r.createElement)(a.Path,{className:n,fill:t,stroke:t,d:"M12,17.3l6.2,3.7l-1.6-7L22,9.2l-7.2-0.6L12,2L9.2,8.6L2,9.2L7.5,14l-1.6,7L12,17.3z"}))}},78403:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(92819);const l=e=>function({attributes:{align:t,rating:n,color:r}}){const l=o.useBlockProps.save();return(0,s.createElement)("figure",a()({},l,{style:{textAlign:t}}),(0,i.range)(1,n+1).map((t=>(0,s.createElement)("span",{key:t,style:{color:r}},e))))}},38275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65736);const __=r.__,a={prepTime:{type:"string",default:"15m"},prepTimeUnit:{type:"string",default:"m"},prepTimeLabel:{type:"string", | |
| 96 | +f=t?__("track","jetpack"):void 0;return(0,l.jsxs)("li",{className:m,style:Object.keys(g).length?g:null,children:[(0,l.jsxs)("a",{className:"jetpack-podcast-player__link jetpack-podcast-player__track-link",href:e.link||e.src,role:"button","aria-current":f,onClick:e=>{e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),o(u))},onKeyDown:e=>{" "===event.key&&(e.preventDefault(),o(u))},children:[(0,l.jsx)(c.A,{className:"jetpack-podcast-player__track-status-icon",isPlaying:n,isError:r}),(0,l.jsx)("span",{className:"jetpack-podcast-player__track-title",children:e.title}),e.duration&&(0,l.jsx)("time",{className:"jetpack-podcast-player__track-duration",dateTime:e.duration,children:e.duration})]}),t&&r&&(0,l.jsx)(i.A,{link:e.link,title:e.title,colors:d})]})})},19634(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(27723),s=n(10790);const __=o.__;function a(e){class t extends r.Component{state={didError:!1,isIE11AudioIssue:!1};componentDidCatch=(e,t)=>{this.props.onError(e,t)};static getDerivedStateFromError=e=>({didError:!0,isIE11AudioIssue:!!e.message.match(/IE11/)});render(){const{didError:t,isIE11AudioIssue:n}=this.state;return t?(0,s.jsx)("section",{className:"jetpack-podcast-player",children:(0,s.jsx)("p",{className:"jetpack-podcast-player__error",children:n?__('The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser’s "Internet options" settings. In the "Advanced" tab you will have to check the box next to "Play sounds in webpages" in the "Multimedia" section. Once you have confirmed that the box is checked, please press "Apply" and then reload this page.',"jetpack"):__("An unexpected error occurred within the Podcast Player. Reloading this page might fix the problem.","jetpack",0)})}):(0,s.jsx)(e,{...this.props})}}return t.defaultProps={onError:()=>{}},t}},38288(e,t,n){"use strict";n.d(t,{Q:()=>o,g:()=>r});const r="podcast-feed",o="embed-block"},18029(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(98329);const o={attributes:{url:{type:"string"},itemsToShow:{type:"integer",default:5},showCoverArt:{type:"boolean",default:!0},showEpisodeDescription:{type:"boolean",default:!0},primaryColor:{type:"string"},customPrimaryColor:{type:"string",validator:r.A},hexPrimaryColor:{type:"string",validator:r.A},secondaryColor:{type:"string"},customSecondaryColor:{type:"string",validator:r.A},hexSecondaryColor:{type:"string",validator:r.A},backgroundColor:{type:"string"},customBackgroundColor:{type:"string",validator:r.A},hexBackgroundColor:{type:"string",validator:r.A},exampleFeedData:{type:"object"}},supports:{align:!1,alignWide:!0,anchor:!1,customClassName:!0,className:!0,html:!1,multiple:!0,reusable:!0},save:()=>null}},32307(e,t,n){"use strict";n.d(t,{A:()=>N});var r=n(97999),o=n(94715),s=n(74997),a=n(56427),i=n(29491),c=n(47143),l=n(86087),u=n(27723),d=n(57273),p=n(93832),h=n(10067),m=n.n(h),g=n(66087),f=n(49487),b=n(34377),v=n(78218),y=n(50961),k=n(1624),w=n(81894),x=n(38288),_=n(90388),j=n(90764),C=n(19812),A=(n(31839),n(10790));const __=u.__,S=m()("jetpack:podcast-player:edit"),E=()=>{},T=(0,r.isWpcomPlatformSite)()?"http://en.support.wordpress.com/wordpress-editor/blocks/podcast-player-block/":"https://jetpack.com/support/jetpack-blocks/podcast-player-block/",N=(0,i.compose)([(0,c.withDispatch)((e,{clientId:t,attributes:n})=>({replaceWithEmbedBlock(){e("core/block-editor").replaceBlock(t,(0,s.createBlock)("core/embed",{url:n.url}))}})),(0,o.withColors)("backgroundColor",{primaryColor:"color"},{secondaryColor:"color"}),a.withNotices,i.withInstanceId,f.T])(({instanceId:e,attributes:t,setAttributes:n,noticeOperations:{createErrorNotice:r,removeAllNotices:s},noticeUI:i,primaryColor:c,setPrimaryColor:u,secondaryColor:h,setSecondaryColor:m,fallbackTextColor:f,backgroundColor:N,setBackgroundColor:P,fallbackBackgroundColor:B,isSelected:I,replaceWithEmbedBlock:M})=>{const R=(0,v.y)(k.attributes,t),{url:L,selectedEpisodes:D,itemsToShow:F,showCoverArt:O,showEpisodeTitle:z,showEpisodeDescription:U,exampleFeedData:H}=R,$=`jetpack-podcast-player-block-${e}`,V=(0,o.useBlockProps)(),[q,G]=(0,l.useState)(!1),[W,Z]=(0,l.useState)(10),J=(0,l.useRef)(void 0),[{selectedGuid:K,checkUrl:Y,...Q},X]=(0,l.useReducer)(j.I,{editedUrl:L||"",isEditing:!L&&!H,isLoading:!1,feedData:H||{},isInteractive:!1,selectedGuid:D?.[0]?.guid,checkUrl:L||""}),ee=(0,l.useMemo)(()=>(0,g.debounce)(e=>{X({type:j.o.START_FETCH}),J.current?.cancel(),J.current=(0,C.lb)((0,y.T)({...e,fetchEpisodeOptions:!0})),J.current.promise.then(t=>{if(s(),t?.isCanceled)S("Block was unmounted during fetch",t);else switch(t?.type){case x.g:return n({url:e.url,selectedEpisodes:e.guids.map(e=>({guid:e}))}),X({type:j.o.FEED_RECEIVED,payload:t.data});case x.Q:return M()}},e=>{e?.isCanceled?S("Block was unmounted during fetch",e):(S("feed error",e),s(),r(e.message||__("Your podcast couldn't be embedded. Please double check your URL.","jetpack")),X({type:j.o.START_EDITING}))})},300),[M,n,r,s]);(0,l.useEffect)(()=>()=>{J?.current?.cancel?.()},[]);const te=(0,l.useCallback)(e=>{null===e||q||((0,b.ry)(["link#mediaelement-css","link#wp-mediaelement-css"],e),G(!0))},[q]);(0,l.useEffect)(()=>{if(""!==Y)return ee({url:Y,guids:K?[K]:[]}),()=>J?.current?.cancel?.()},[ee,Y,K]),(0,l.useEffect)(()=>{(0,y.N)().then(e=>{Z(e)})},[]),(0,l.useEffect)(()=>{K&&1!==F&&n({itemsToShow:1})},[K,F,n]),(0,l.useEffect)(()=>{!I&&Q.isInteractive&&X({type:j.o.PREVENT_INTERACTIONS})},[I,Q.isInteractive]);const ne=e=>{if(e.preventDefault(),""===Q.editedUrl)return;const t=(0,p.prependHTTP)(Q.editedUrl);(0,p.isURL)(t)?(t===Y?(X({type:j.o.CLEAR_FEED}),ee({url:Y,guids:D[0]?.guid?[D[0].guid]:[]})):X({type:j.o.CHECK_URL,payload:t}),X({type:j.o.FINISH_EDITING,payload:t})):r(__("Your podcast couldn't be embedded. Please double check your URL.","jetpack"))};let re;if(Q.isEditing)re=(0,A.jsxs)(a.Placeholder,{icon:_.p,label:__("Podcast Player","jetpack"),instructions:__("Enter your podcast RSS feed URL.","jetpack"),className:"jetpack-podcast-player__placeholder",children:[(0,A.jsxs)("form",{onSubmit:ne,children:[i,(0,A.jsx)(a.TextControl,{type:"text",inputMode:"url",placeholder:__("Enter URL here…","jetpack"),value:Q.editedUrl,className:"components-placeholder__input",onChange:e=>X({type:j.o.EDIT_URL,payload:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,A.jsx)(a.Button,{variant:"primary",type:"submit",children:__("Embed","jetpack")})]}),(0,A.jsx)("div",{className:"components-placeholder__learn-more",children:(0,A.jsx)(d.N,{openInNewTab:!0,href:T,children:__("Learn more about embeds","jetpack")})})]});else if(Q.feedData.tracks?.length){const e=(e,t)=>r=>{n({[e]:r}),t(r)};re=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(o.BlockControls,{children:(0,A.jsx)(a.ToolbarGroup,{children:(0,A.jsx)(a.ToolbarButton,{"aria-label":__("Edit Podcast Feed URL","jetpack"),onClick:()=>X({type:j.o.START_EDITING}),children:__("Replace","jetpack")})})}),(0,A.jsxs)(o.InspectorControls,{children:[(0,A.jsxs)(a.PanelBody,{title:__("Podcast settings","jetpack"),children:[(a.ComboboxControl||0===D.length)&&(0,A.jsx)(a.RangeControl,{label:__("Number of items","jetpack"),value:F,onChange:e=>n({itemsToShow:K?1:e}),min:1,max:W,required:!0,disabled:!!K,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),a.ComboboxControl&&(0,A.jsx)(a.ComboboxControl,{className:"jetpack-podcast-player__episode-selector",value:K,onChange:e=>X({type:j.o.SELECT_EPISODE,payload:e}),options:Q.feedData.options||[],label:__("Episode","jetpack"),onFilterValueChange:E,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,A.jsx)(a.ToggleControl,{label:__("Show Cover Art","jetpack"),checked:O,onChange:e=>n({showCoverArt:e}),__nextHasNoMarginBottom:!0}),(0,A.jsx)(a.ToggleControl,{label:__("Show Episode Title","jetpack"),checked:z,onChange:e=>n({showEpisodeTitle:e}),__nextHasNoMarginBottom:!0}),(0,A.jsx)(a.ToggleControl,{label:__("Show Episode Description","jetpack"),checked:U,onChange:e=>n({showEpisodeDescription:e}),__nextHasNoMarginBottom:!0})]}),(0,A.jsx)(o.PanelColorSettings,{title:__("Color Settings","jetpack"),colorSettings:[{value:c.color,onChange:e("hexPrimaryColor",u),label:__("Primary Color","jetpack")},{value:h.color,onChange:e("hexSecondaryColor",m),label:__("Secondary Color","jetpack")},{value:N.color,onChange:e("hexBackgroundColor",P),label:__("Background Color","jetpack")}],children:(0,A.jsx)(o.ContrastChecker,{isLargeText:!1,textColor:h.color,backgroundColor:N.color,fallbackBackgroundColor:B,fallbackTextColor:f})})]}),(0,A.jsxs)("div",{id:$,ref:te,children:[(0,A.jsx)(w.A,{playerId:$,attributes:R,tracks:Q.feedData.tracks,cover:Q.feedData.cover,title:Q.feedData.title,link:Q.feedData.link}),!Q.isInteractive&&!Q.isLoading&&(0,A.jsx)("div",{className:"jetpack-podcast-player__interactive-overlay",onMouseUp:()=>X({type:j.o.MAKE_INTERACTIVE})}),Q.isLoading&&(0,A.jsx)("div",{className:"jetpack-podcast-player__loading-overlay",children:(0,A.jsx)(a.Spinner,{})})]})]})}else re=(0,A.jsx)(a.Placeholder,{icon:_.p,label:__("Podcast Player","jetpack"),instructions:__("Loading podcast feed…","jetpack"),children:(0,A.jsx)(a.Spinner,{})});return(0,A.jsx)("div",{...V,children:re})})},80800(e,t,n){"use strict";var r=n(94375),o=n(1624),s=n(18029),a=n(32307),i=n(86532);n(37795),n(31839);(0,r.M)(o,{edit:a.A,save:i.A,deprecated:[s.A]})},90388(e,t,n){"use strict";n.d(t,{p:()=>r.A});var r=n(7300)},77722(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790);const s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})})},7300(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790);const s=(0,o.jsxs)(r.SVG,{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsxs)(r.G,{children:[(0,o.jsx)(r.Rect,{fill:"none",height:"24",width:"24"}),(0,o.jsx)(r.Rect,{fill:"none",height:"24",width:"24"}),(0,o.jsx)(r.Rect,{fill:"none",height:"24",width:"24"})]}),(0,o.jsxs)(r.G,{children:[(0,o.jsx)(r.G,{}),(0,o.jsx)(r.G,{children:(0,o.jsx)(r.G,{transform:"matrix(1 0 0 1 144 120)",children:(0,o.jsx)(r.Path,{d:"M-122-114h-5v8.18c-0.31-0.11-0.65-0.18-1-0.18c-1.66,0-3,1.34-3,3s1.34,3,3,3s3-1.34,3-3v-9h3V-114 L-122-114z M-129-114h-12v2h12V-114L-129-114z M-129-110h-12v2h12V-110L-129-110z M-133-106h-8v2h8V-106L-133-106z M-129-103 c0-0.55,0.45-1,1-1c0.55,0,1,0.45,1,1s-0.45,1-1,1C-128.55-102-129-102.45-129-103z"})})})]})]})},16124(e,t,n){"use strict";n.r(t),n.d(t,{error:()=>i,playing:()=>a});var r=n(5573),o=n(10790);const s={height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},a=(0,o.jsxs)(r.SVG,{...s,children:[(0,o.jsx)(r.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,o.jsx)(r.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"})]}),i=(0,o.jsxs)(r.SVG,{...s,children:[(0,o.jsx)(r.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,o.jsx)(r.Path,{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})]})},86532(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);function a({attributes:e}){const{url:t}=e;if(!t||""===t)return;const n=r.useBlockProps.save();return(0,s.jsx)("a",{...n,className:(0,o.A)(n.className,"jetpack-podcast-player__direct-link"),href:t,children:t})}},90764(e,t,n){"use strict";n.d(t,{I:()=>o,o:()=>r});const r={EDIT_URL:"EDIT_URL",FINISH_EDITING:"FINISH_EDITING",START_EDITING:"START_EDITING",SELECT_EPISODE:"SELECT_EPISODE",FEED_RECEIVED:"FEED_RECEIVED",CLEAR_FEED:"CLEAR_FEED",MAKE_INTERACTIVE:"MAKE_INTERACTIVE",PREVENT_INTERACTIONS:"PREVENT_INTERACTIONS",START_FETCH:"START_FETCH",CHECK_URL:"CHECK_URL"},o=(e,t)=>{switch(t.type){case r.EDIT_URL:return{...e,editedUrl:t.payload};case r.START_EDITING:return{...e,isEditing:!0,isLoading:!1};case r.FINISH_EDITING:return{...e,editedUrl:t.payload,isEditing:!1};case r.FEED_RECEIVED:return{...e,isLoading:!1,feedData:t.payload};case r.CLEAR_FEED:return{...e,feedData:{}};case r.MAKE_INTERACTIVE:return{...e,isInteractive:!0};case r.PREVENT_INTERACTIONS:return{...e,isInteractive:!1};case r.START_FETCH:return{...e,isLoading:!0};case r.SELECT_EPISODE:return{...e,selectedGuid:t.payload};case r.CHECK_URL:return{...e,selectedGuid:null,feedData:{},checkUrl:t.payload};default:return{...e}}}},19812(e,t,n){"use strict";n.d(t,{GU:()=>i,lb:()=>s,tQ:()=>o});var r=n(13022);function o(e,t){if(e&&t)return`has-${t}-${e}`}function s(e){let t=!1;return{promise:new Promise((n,r)=>{e.then(e=>t?r({isCanceled:!0}):n(e),e=>r(t?{isCanceled:!0}:e))}),cancel(){t=!0}}}const a={},i=e=>{const t=Object.values(e).join();return a[t]??=(({primaryColor:e,customPrimaryColor:t,secondaryColor:n,customSecondaryColor:s,backgroundColor:a,customBackgroundColor:i})=>{const c=o("color",e),l=o("color",n),u=o("background-color",a);return{primary:{name:e,custom:t,classes:(0,r.A)({"has-primary":c||t,[c]:c})},secondary:{name:n,custom:s,classes:(0,r.A)({"has-secondary":l||s,[l]:l})},background:{name:a,custom:i,classes:(0,r.A)({"has-background":u||i,[u]:u})}}})(e)}},6310(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){return(0,o.jsx)("div",{className:"premium-content-wrapper",children:(0,o.jsx)(r.InnerBlocks,{allowedBlocks:["premium-content/subscriber-view","premium-content/logged-out-view"],templateLock:"all",template:[["premium-content/subscriber-view"],["premium-content/logged-out-view"]],__experimentalCaptureToolbars:!0,templateInsertUpdatesSelection:!1})})}},77235(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(10790);const s={selectedTab:{id:"",className:"",label:(0,o.jsx)(o.Fragment,{})}},a=(0,r.createContext)(s)},26283(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=(0,o.jsxs)(r.SVG,{viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)(r.Path,{d:"M12.7439 14.4271L8.64053 13.165L8.51431 13.8718L8.09208 20.7415C8.06165 21.2365 8.61087 21.5526 9.02363 21.2776L12.7439 18.799L16.7475 21.304C17.1687 21.5676 17.7094 21.2343 17.6631 20.7396L17.0212 13.8718L17.0212 13.165L12.7439 14.4271Z"}),(0,o.jsx)(r.Circle,{cx:"12.7439",cy:"8.69796",r:"5.94466",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,o.jsx)(r.Path,{d:"M9.71023 8.12461L11.9543 10.3687L15.7776 6.54533",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})]})},57527(e,t,n){"use strict";n.d(t,{HF:()=>a,ct:()=>i,uw:()=>c});var r=n(74997),o=n(47143),s=n(58087);const a=e=>0===e.name.indexOf("premium-content/")||e.innerBlocks.some(a),i=e=>{const{getBlocksByClientId:t,getBlockParents:n}=(0,o.select)("core/block-editor");return!!t(n(e.clientId)).find(e=>0===e.name.indexOf("premium-content/"))};function c(){return(0,o.useSelect)(e=>e(r.store).getBlockTypes(),[]).reduce((e,t)=>(t.name!==s.name&&e.push(t.name),e),[])}},16744(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(47143),o=n(43656),s=n(27723),a=n(58087),i=n(67834),c=n(10790);const __=s.__;function l(){const e=(0,r.select)("core/block-editor").getSelectedBlock();(0,r.dispatch)("core/block-editor").replaceBlock(e.clientId,(0,i.o)(e.innerBlocks))}const u=()=>(0,c.jsx)(o.PluginBlockSettingsMenuItem,{allowedBlocks:[a.name],label:__("Remove block and keep content","jetpack"),onClick:l});n.dn(u)},67834(e,t,n){"use strict";n.d(t,{o:()=>o});var r=n(74997);const o=e=>{const t=e.find(e=>"premium-content/subscriber-view"===e.name);return 1===t.innerBlocks.length&&"core/group"===t.innerBlocks[0].name?t.innerBlocks[0]:(0,r.createBlock)("core/group",{},t.innerBlocks)}},95369(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(56427),s=n(10790);function a(e){const{options:t,selectedOption:n,selectAction:a,contractViewport:i,label:c}=e,l=e=>e.id===n.id;return i?(0,s.jsx)(r.BlockControls,{group:"block",children:(0,s.jsx)(o.ToolbarDropdownMenu,{label:c,icon:"arrow-down",text:n.label,children:({onClose:e})=>(0,s.jsx)(o.MenuGroup,{children:t.map(t=>{const n=l(t);return(0,s.jsx)(o.MenuItem,{isSelected:n,icon:n?"yes":void 0,onClick:()=>{a(t),e()},children:t.label},`jetpack-premium-content-tab-${t.id}`)})})})}):(0,s.jsx)(r.BlockControls,{group:"other",children:t.map(e=>{const t=l(e);return(0,s.jsx)(o.ToolbarButton,{onClick:()=>{a(e)},className:"components-tab-button","aria-pressed":t,children:(0,s.jsx)("span",{children:e.label})},`jetpack-premium-content-tab-${e.id}`)})})}},59280(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(94715),o=n(29491),s=n(47143),a=n(86087),i=n(52619),c=n(27723),l=n(10790);const __=c.__,u=["core/button","jetpack/recurring-payments","premium-content/login-button"];const d=(0,o.compose)([(0,s.withSelect)((e,t)=>({subscribeButton:e("core/block-editor").getBlock(t.clientId).innerBlocks.find(e=>"jetpack/recurring-payments"===e.name)})),(0,s.withDispatch)((e,t)=>({setSubscribeButtonPlan(n){e("core/block-editor").updateBlockAttributes(t.subscribeButton.clientId,{planIds:n})}}))])(function({context:e,subscribeButton:t,setSubscribeButtonPlan:n}){const o=(0,a.useMemo)(()=>e["premium-content/planIds"]||[],[e]),s=!!e&&e["premium-content/isPreview"],c=[["core/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack")}],["premium-content/login-button"]],d=[["jetpack/recurring-payments",{planIds:o},[["jetpack/button",{element:"a",uniqueId:"recurring-payments-id",text:__("Subscribe","jetpack"),passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]]],["premium-content/login-button"]];(0,a.useEffect)(()=>{if(!o||0===o.length||!t)return;const e=t.attributes.planIds||[];e.length===o.length&&e.every(e=>o.includes(e))||n(o)},[o,t,n]),(0,a.useEffect)(()=>{t&&(0,i.addFilter)("jetpack.recurringPayments.editorSettings","jetpack/premium-content-hide-recurring-payments-controls",(e,n)=>n===t.clientId?{...e,showProductManagementControls:!1}:e)},[t]);const p=(0,r.useBlockProps)({className:"wp-block-buttons"});return(0,l.jsx)("div",{...p,children:(0,l.jsx)(r.InnerBlocks,{allowedBlocks:u,template:s?c:d,templateInsertUpdatesSelection:!1,layout:{type:"default",alignments:[]},__experimentalMoverDirection:"horizontal"})})})},75058(e,t,n){"use strict";n.d(t,{U:()=>l,W:()=>u});var r=n(94715),o=n(27723),s=n(11083),a=n(59280),i=n(53719),c=n(10790);const __=o.__,l="premium-content/buttons",u={apiVersion:3,title:__("Premium Content buttons","jetpack"),description:__("Prompt Premium Content visitors to take action with a group of button-style links.","jetpack"),category:"grow",icon:s.A,supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},keywords:[__("link","jetpack")],edit:a.A,save:i.A,usesContext:["premium-content/planIds","premium-content/isPreview"],deprecated:[{attributes:{},supports:{align:!0,alignWide:!1,lightBlockWrapper:!0,inserter:!1},save:()=>(0,c.jsx)("div",{className:"wp-block-buttons",children:(0,c.jsx)(r.InnerBlocks.Content,{})})}]}},53719(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){const e=r.useBlockProps.save({className:"wp-block-buttons"});return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},72064(e,t,n){"use strict";n.d(t,{A:()=>r});const r={isEligible:(e,t)=>{if("premium-content/logged-out-view"===t?.[0]?.name)return!0},migrate:(e,t)=>[e,[t[1],t[0]]],save:n(17353).A}},81305(e,t,n){"use strict";n.d(t,{A:()=>r});const r={attributes:{newPlanName:{type:"string",default:"Monthly Subscription"},newPlanCurrency:{type:"string",default:"USD"},newPlanPrice:{type:"number",default:5},newPlanInterval:{type:"string",default:"1 month"},selectedPlanId:{type:"number",default:0},isPreview:{type:"boolean",default:!1},isPremiumContentChild:{type:"boolean",default:!0}},isEligible:e=>"selectedPlanId"in e,migrate:e=>{const{selectedPlanId:t,...n}=e;return{...n,selectedPlanIds:t?[t]:[]}},save:n(17353).A}},68962(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(94715),o=n(56427),s=n(29491),a=n(47143),i=n(86087),c=n(27723),l=n(2274),u=n(85033),d=n(29726),p=n(53796),h=n(26247),m=n(16521),g=n(6310),f=n(77235),b=(n(78724),n(95369)),v=n(10790);const __=c.__,y=[{id:"premium",label:(0,v.jsx)("span",{children:__("Subscriber View","jetpack")}),className:"wp-premium-content-subscriber-view"},{id:"wall",label:(0,v.jsx)("span",{children:__("Guest View","jetpack")}),className:"wp-premium-content-logged-out-view"}],k="premium-content";function w({clientId:e,isSelected:t,attributes:n,setAttributes:c}){const{isPreview:w,selectedPlanIds:x}=n,[_,j]=(0,i.useState)(y[1]),C=(0,r.useBlockProps)(),A=(0,h.A)(),{isApiLoading:S,selectedBlock:E}=(0,a.useSelect)(e=>({selectedBlock:e(r.store).getSelectedBlock(),isApiLoading:e(m.M).isApiStateLoading()}));(0,i.useEffect)(()=>{if(t)return;if(!E)return;const n=(0,a.select)(r.store);n.getBlockParents(E.clientId).includes(e)&&("premium-content/logged-out-view"===E.name||n.getBlockParentsByBlockName(E.clientId,"premium-content/logged-out-view").length?j(y[1]):j(y[0]))},[e,t,E]);const T=(0,s.useViewportMatch)("medium","<");return A?(0,v.jsxs)("div",{...C,children:[!w&&(0,v.jsxs)(v.Fragment,{children:[S&&(0,v.jsx)(o.Placeholder,{icon:"lock",label:__("Paid Content","jetpack"),instructions:__("Loading data…","jetpack"),children:(0,v.jsx)(o.Spinner,{})}),(0,v.jsx)(u.A,{blockName:k,clientId:e,productType:d.h5,selectedProductIds:x,setSelectedProductIds:e=>c({selectedPlanIds:e})}),(0,v.jsx)(b.A,{options:y,selectedOption:_,selectAction:j,contractViewport:T,label:__("Change view","jetpack")})]}),!S&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(p.V,{blockName:k}),(0,v.jsx)(f.A.Provider,{value:{selectedTab:_},children:(0,v.jsx)(g.A,{})})]})]}):(0,v.jsx)("div",{...C,children:(0,v.jsx)(l.A,{block:"Paid Content",explanation:__("Connect your WordPress.com account to enable paid content.","jetpack")})})}function x(e){return(0,v.jsx)(o.Disabled.Consumer,{children:t=>(0,v.jsx)(w,{...e,attributes:{...e.attributes,isPreview:t||e.attributes?.isPreview}})})}},80587(e,t,n){"use strict";var r=n(74997),o=n(92279),s=n(94375),a=n(57527),i=n(16744),c=n(67834),l=n(58087),u=n(75058),d=n(72064),p=n(81305),h=n(68962),m=n(94744),g=n(73269),f=n(17353),b=n(22227);const v=e=>!!e&&(!(1===e.length&&!["core/group","core/columns"].includes(e[0].name))&&(!e.some(a.HF)&&!(0,a.ct)(e[0])));(0,s.M)(l,{edit:h.A,save:f.A,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:(e,t)=>!e.some(e=>e.isPremiumContentChild)&&v(t),__experimentalConvert(e){if(!v(e))return;const t=e.map(e=>(0,r.createBlock)(e.name,e.attributes,e.innerBlocks));return(0,r.createBlock)("premium-content/container",{},[(0,r.createBlock)("premium-content/subscriber-view",{},t),(0,r.createBlock)("premium-content/logged-out-view")])}}],to:[{type:"block",blocks:["core/group"],transform:(e,t)=>(0,c.o)(t)}]},deprecated:[p.A,d.A]},[{name:m.U,settings:m.W},{name:b.U,settings:b.W},{name:u.U,settings:u.W},{name:g.U,settings:g.W}],!1),(0,o.registerPlugin)("block-settings-remove-block-keep-content",{render:i.A})},94188(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(57276),o=n(1831);const s=[r.A,o.A]},57276(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(74997),s=n(10790);const a={attributes:{subscribeButtonText:{type:"string",default:"Subscribe"},loginButtonText:{type:"string",default:"Log In"},buttonClasses:{type:"string",default:""},backgroundButtonColor:{type:"string",default:""},textButtonColor:{type:"string",default:""},customBackgroundButtonColor:{type:"string",default:""},customTextButtonColor:{type:"string",default:""}},isEligible:({buttonClasses:e})=>!!e,migrate:(e,t)=>{if(Array.isArray(t))for(let n=0;n<t.length;n++)if(t[n].name&&"premium-content/buttons"===t[n].name)return[e,[...t]];const n=(0,o.createBlock)("premium-content/buttons",{},[(0,o.createBlock)("jetpack/recurring-payments",{submitButtonText:e.subscribeButtonText,backgroundButtonColor:e.backgroundButtonColor,textButtonColor:e.textButtonColor,customBackgroundButtonColor:e.customBackgroundButtonColor,customTextButtonColor:e.customTextButtonColor}),(0,o.createBlock)("premium-content/login-button",{text:e.loginButtonText,backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,style:{color:{background:e.customBackgroundButtonColor,text:e.customTextButtonColor}}})]);return[e,[...t,n]]},save:()=>(0,s.jsx)("div",{className:"wp-block-premium-content-logged-out-view",children:(0,s.jsx)(r.InnerBlocks.Content,{})})}},1831(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);const o={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.jsx)("div",{className:"wp-block-premium-content-logged-out-view"})}},3046(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(27723),s=n(77235),a=n(57527),i=n(10790);const __=o.__;function c(){const e=(0,a.uw)();return(0,i.jsx)(s.A.Consumer,{children:({selectedTab:t})=>(0,i.jsx)("div",{hidden:"premium"===t.id,className:t.className,children:(0,i.jsx)(r.InnerBlocks,{allowedBlocks:e,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscribe to get access","jetpack"),level:3}],["core/paragraph",{content:__("Read more of this content when you subscribe today.","jetpack")}],["premium-content/buttons"]]})})})}},94744(e,t,n){"use strict";n.d(t,{U:()=>d,W:()=>p});var r=n(29491),o=n(47143),s=n(27723),a=n(50876),i=n(26283),c=n(94188),l=n(3046),u=n(31845);const __=s.__,d="premium-content/logged-out-view",p={apiVersion:3,title:__("Guest View","jetpack"),description:__("The container for all content shown to site visitors who are not subscribers.","jetpack"),icon:i.A,category:"grow",parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:l.A,save:u.A,deprecated:c.A},h=(0,o.subscribe)(()=>{const e=(0,o.select)("core/rich-text").getFormatType("core/link");if(!e)return;h(),(0,a.unregisterFormatType)("core/link");const t=(0,r.compose)((0,o.withSelect)(e=>({selectedBlock:e("core/block-editor").getSelectedBlock()})),(0,r.ifCondition)(e=>e.selectedBlock&&e.selectedBlock.name!==d))(e.edit);(0,a.registerFormatType)("core/link",{...e,edit:t})})},31845(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){const e=r.useBlockProps.save({className:"wp-block-premium-content-logged-out-view entry-content"});return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},91688(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723);const o={text:{type:"string",source:"html",selector:"a",default:(0,r.__)("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}}},48365(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(66087),o=n(27723),s=n(86087),a=n(47143),i=n(94715),c=n(10790);const __=o.__,l="web"===s.Platform.OS;const u=e=>{if(!(0,r.isObject)(e))return e;const t=(0,r.pickBy)((0,r.mapValues)(e,u),r.identity);return(0,r.isEqual)(t,{})?void 0:t};function d({settings:e,clientId:t,enableContrastChecking:n=!0}){const{getComputedStyle:r,Node:o}=window,[a,u]=(0,s.useState)(),[d,p]=(0,s.useState)(),h=l?__("Color settings","jetpack"):__("Color Settings","jetpack",0);return(0,s.useEffect)(()=>{if(l&&!n)return;const e=function(e){return document.getElementById("block-"+e)}(t);if(!e)return;p(r(e).color);let s=e,a=r(s).backgroundColor;for(;"rgba(0, 0, 0, 0)"===a&&s.parentNode&&s.parentNode.nodeType===o.ELEMENT_NODE;)s=s.parentNode,a=r(s).backgroundColor;u(a)}),(0,c.jsx)(i.InspectorControls,{children:(0,c.jsx)(i.__experimentalPanelColorGradientSettings,{title:h,initialOpen:!1,settings:e,children:l&&n&&(0,c.jsx)(i.ContrastChecker,{backgroundColor:a,textColor:d})})})}const p=function(e){const{attributes:t}=e,{colors:n,gradients:r}=(0,a.useSelect)(e=>e("core/block-editor").getSettings(),[]),o=(0,s.useRef)(t);(0,s.useEffect)(()=>{o.current=t},[t]);const{style:l,textColor:p,backgroundColor:h,gradient:m}=t;let g;g=m?(0,i.getGradientValueBySlug)(r,m):l?.color?.gradient;const f=t=>r=>{const s=(0,i.getColorObjectByColorValue)(n,r),a=t+"Color",c={...o.current.style,color:{...o.current?.style?.color,[t]:s?.slug?void 0:r}},l=s?.slug?s.slug:void 0,d={style:u(c),[a]:l};e.setAttributes(d),o.current={...o.current,...d}};return(0,c.jsx)(d,{enableContrastChecking:!m&&!l?.color?.gradient,clientId:e.clientId,settings:[{label:__("Text Color","jetpack"),onColorChange:f("text"),colorValue:(0,i.getColorObjectByAttributeValues)(n,p,l?.color?.text).color},{label:__("Background Color","jetpack"),onColorChange:f("background"),colorValue:(0,i.getColorObjectByAttributeValues)(n,h,l?.color?.background).color,gradientValue:g,onGradientChange:t=>{const n=(0,i.getGradientSlugByValue)(r,t);let s;if(n){const e={...o.current?.style,color:{...o.current?.style?.color,gradient:void 0}};s={style:u(e),gradient:n}}else{const e={...o.current?.style,color:{...o.current?.style?.color,gradient:t}};s={style:u(e),gradient:void 0}}e.setAttributes(s),o.current={...o.current,...s}}}]})}},40861(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(94715);function s(e){const{backgroundColor:t,textColor:n,gradient:s,style:a}=e,i=(0,o.getColorClassName)("background-color",t),c=(0,o.__experimentalGetGradientClass)(s),l=(0,o.getColorClassName)("color",n),u=(0,r.A)(l,c,{[i]:!a?.color?.gradient&&!!i,"has-text-color":n||a?.color?.text,"has-background":t||a?.color?.background||s||a?.color?.gradient});return{className:u||void 0,style:a?.color?.background||a?.color?.text||a?.color?.gradient?{background:a?.color?.gradient?a.color.gradient:void 0,backgroundColor:a?.color?.background?a.color.background:void 0,color:a?.color?.text?a.color.text:void 0}:{}}}},53755(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(27723),s=n(13022),a=n(40861),i=n(10790);const c={attributes:{text:{type:"string",source:"html",selector:"a",default:(0,o.__)("Log in","jetpack")},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},save:({attributes:e})=>{const{borderRadius:t,text:n}=e,o=(0,a.A)(e),c=(0,s.A)("wp-block-button__link",o.className,{"no-border-radius":0===t}),l={borderRadius:t?t+"px":void 0,...o.style};return(0,i.jsx)("div",{className:"wp-block-button",children:(0,i.jsx)(r.RichText.Content,{tagName:"a",className:c,style:l,value:n})})}}},41423(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(13022),c=n(48365),l=n(40861),u=n(10790);const __=a.__;function d({borderRadius:e="",setAttributes:t}){const n=(0,s.useCallback)(e=>{t({borderRadius:e})},[t]);return(0,u.jsx)(o.PanelBody,{title:__("Border settings","jetpack"),children:(0,u.jsx)(o.RangeControl,{value:e,label:__("Border radius","jetpack"),min:0,max:50,initialPosition:5,allowReset:!0,onChange:n,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})}const p=function(e){const{attributes:t,setAttributes:n,className:o}=e,{borderRadius:s,text:a}=t,p=(0,l.A)(t),h=(0,r.useBlockProps)({className:"wp-block-button"});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{...h,children:(0,u.jsx)(r.RichText,{placeholder:__("Add text…","jetpack"),value:a,onChange:e=>n({text:e}),withoutInteractiveFormatting:!0,className:(0,i.A)(o,"wp-block-button__link",p.className,{"no-border-radius":0===s}),style:{borderRadius:s?s+"px":void 0,...p.style}})}),(0,u.jsxs)(r.InspectorControls,{children:[(0,u.jsx)(c.A,{...e}),(0,u.jsx)(d,{borderRadius:s,setAttributes:n})]})]})}},73269(e,t,n){"use strict";n.d(t,{U:()=>l,W:()=>u});var r=n(27723),o=n(11083),s=n(91688),a=n(53755),i=n(41423),c=n(51736);const __=r.__,l="premium-content/login-button",u={apiVersion:3,title:__("Premium Content login button","jetpack"),description:__("Prompt subscriber visitors to log in with a button-style link (only visible for logged out users).","jetpack"),category:"grow",attributes:s.A,icon:o.A,keywords:[__("link","jetpack")],supports:{align:!0,alignWide:!1,html:!1,lightBlockWrapper:!0,inserter:!1},styles:[{name:"fill",label:__("Fill","jetpack"),isDefault:!0},{name:"outline",label:__("Outline","jetpack")}],edit:i.A,save:c.A,deprecated:[a.A]}},51736(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(13022),s=n(40861),a=n(10790);function i({attributes:e}){const{borderRadius:t,text:n,align:i}=e,c=(0,s.A)(e),l=(0,o.A)("wp-block-button","wp-block-premium-content-login-button",{alignleft:"left"===i},{aligncenter:"center"===i},{alignright:"right"===i}),u=(0,o.A)("wp-block-button__link",c.className,{"no-border-radius":0===t}),d={borderRadius:t?t+"px":void 0,...c.style},p=r.useBlockProps.save({className:l});return(0,a.jsx)("div",{...p,children:(0,a.jsx)(r.RichText.Content,{tagName:"a",className:u,style:d,value:n})})}},17353(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);function a(){const e=r.useBlockProps.save();return(0,s.jsx)("div",{...e,className:(0,o.A)(e.className,"wp-block-premium-content-container"),children:(0,s.jsx)(r.InnerBlocks.Content,{})})}},36257(e,t,n){"use strict";n.d(t,{A:()=>r});const r=[n(15073).A]},15073(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);const o={attributes:{},supports:{inserter:!1,html:!1},save:()=>(0,r.jsx)("div",{className:"wp-block-premium-content-subscriber-view"})}},3537(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(29491),s=n(47143),a=n(27723),i=n(77235),c=n(57527),l=n(10790);const __=a.__;const u=(0,o.compose)([(0,s.withSelect)((e,t)=>({hasInnerBlocks:!!e("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.length}))])(function({hasInnerBlocks:e}){const t=(0,c.uw)();return(0,l.jsx)(i.A.Consumer,{children:({selectedTab:n})=>(0,l.jsx)("div",{hidden:"wall"===n.id,className:n.className,children:(0,l.jsx)(r.InnerBlocks,{allowedBlocks:t,renderAppender:!e&&r.InnerBlocks.ButtonBlockAppender,templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{content:__("Subscriber Content","jetpack"),level:3}],["core/paragraph",{content:__("Add content here that will only be visible to your subscribers.","jetpack")}]]})})})})},22227(e,t,n){"use strict";n.d(t,{U:()=>c,W:()=>l});var r=n(27723),o=n(26283),s=n(36257),a=n(3537),i=n(80194);const __=r.__,c="premium-content/subscriber-view",l={apiVersion:3,title:__("Subscriber View","jetpack"),description:__("The container for all content shown to subscribers.","jetpack"),icon:o.A,category:"grow",attributes:{},edit:a.A,save:i.A,parent:["premium-content/container"],supports:{inserter:!1,html:!1},deprecated:s.A}},80194(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){const e=r.useBlockProps.save({className:"wp-block-premium-content-subscriber-view entry-content"});return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},32155(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(56427),s=n(27723),a=n(10790);const __=s.__,i=({id:e,setRating:t,children:n})=>{return(0,a.jsx)("span",{className:"jetpack-ratings-button",tabIndex:0,role:"button",onKeyDown:(r=e,({code:e})=>"Enter"===e?t(r):null),onClick:(e=>()=>t(e))(e),children:n});var r},c=e=>function({setAttributes:t,attributes:{align:n,color:s,rating:c,maxRating:l}}){const u=(0,r.useBlockProps)(),d=e=>{e===c?Math.ceil(c)===c&&(e-=.5):.5===c&&1===e&&(e=0),t({rating:e})};return(0,a.jsxs)("div",{...u,children:[(0,a.jsx)(r.BlockControls,{children:(0,a.jsx)(r.AlignmentToolbar,{value:n,onChange:e=>t({align:e})})}),(0,a.jsx)("div",{style:{textAlign:n},children:Array.from(Array(Math.ceil(l)),(e,t)=>t+1).map(t=>(0,a.jsxs)(i,{id:t,setRating:d,children:[(0,a.jsx)("span",{children:(0,a.jsx)(e,{className:c>=t-.5?null:"is-rating-unfilled",color:s})}),(0,a.jsx)("span",{children:(0,a.jsx)(e,{className:c>=t?null:"is-rating-unfilled",color:s})})]},t))}),(0,a.jsxs)(r.InspectorControls,{children:[(0,a.jsx)(o.PanelBody,{title:__("Settings","jetpack"),children:(0,a.jsx)(o.RangeControl,{label:__("Highest rating","jetpack"),value:l,onChange:e=>t({maxRating:e}),min:2,max:10,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,a.jsx)(r.PanelColorSettings,{title:__("Color","jetpack"),initialOpen:!0,colorSettings:[{value:s,onChange:e=>t({color:e}),label:__("Color","jetpack")}]})]})]})};n.dn(c)},8171(e,t,n){"use strict";var r=n(94375),o=n(8206),s=n(32155),a=n(7420),i=n(91548);n(73163),n(89399);(0,r.M)(o,{edit:(0,s.A)(a.G),save:(0,i.A)("★")})},7420(e,t,n){"use strict";n.d(t,{G:()=>s});var r=n(56427),o=n(10790);const s=e=>{const t=(e=>e&&e.color?e.color:"currentColor")(e),n=(e=>e&&e.className?e.className:"")(e);return(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",color:t,children:(0,o.jsx)(r.Path,{className:n,fill:t,stroke:t,d:"M12,17.3l6.2,3.7l-1.6-7L22,9.2l-7.2-0.6L12,2L9.2,8.6L2,9.2L7.5,14l-1.6,7L12,17.3z"})})}},91548(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=e=>function({attributes:{align:t,rating:n,color:s}}){const a=r.useBlockProps.save();return(0,o.jsx)("figure",{...a,style:{textAlign:t},children:Array.from(Array(Math.ceil(n)),(e,t)=>t+1).map(t=>(0,o.jsx)("span",{style:{color:s},children:e},t))})};n.dn(s)},80375(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723);const __=r.__,o={prepTime:{type:"string",default:"15m"},prepTimeUnit:{type:"string",default:"m"},prepTimeLabel:{type:"string", | |
| 67 | 97 | // translators: Prep Time label for a recipe block. |
| 68 | 98 | default:__("Prep Time","jetpack")},cookTime:{type:"string",default:"30m"},cookTimeUnit:{type:"string",default:"m"},cookTimeLabel:{type:"string", |
| 69 | 99 | // translators: Cook Time label for a recipe block. |
| 70 | 100 | default:__("Cook Time","jetpack")},servings:{type:"number",default:4},servingsLabel:{type:"string", |
| 71 | 101 | // translators: Servings label for a recipe block. |
| 72 | -default:__("Servings","jetpack")}}},900:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(52175),s=n(55609);const o=[{value:"m",label:"min"},{value:"h",label:"hours"}];const i=function({className:e,attributes:t,setAttributes:n}){const{prepTime:i,prepTimeLabel:l,cookTime:c,cookTimeLabel:u,servings:d,servingsLabel:p}=t;return(0,r.createElement)("div",{className:e},(0,r.createElement)("div",{className:"wp-container wp-recipe-block-details"},(0,r.createElement)("div",{className:"group"},(0,r.createElement)(s.TextControl,{value:l,onChange:e=>n({prepTimeLabel:e})}),(0,r.createElement)(s.__experimentalUnitControl,{onChange:e=>n({prepTime:e}),onUnitChange:e=>n({prepTimeUnit:e}),isUnitSelectTabbable:!0,value:i,units:o})),(0,r.createElement)("div",{className:"group"},(0,r.createElement)(s.TextControl,{value:u,onChange:e=>n({cookTimeLabel:e})}),(0,r.createElement)(s.__experimentalUnitControl,{onChange:e=>n({cookTime:e}),onUnitChange:e=>{n({cookTimeUnit:e})},isUnitSelectTabbable:!0,value:c,units:o})),(0,r.createElement)("div",{className:"group"},(0,r.createElement)(s.TextControl,{value:p,onChange:e=>n({servingsLabel:e})}),(0,r.createElement)(s.TextControl,{type:"number",value:d,onChange:e=>n({servings:parseInt(e)})})),(0,r.createElement)("div",{className:"group"},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["jetpack/button"],template:[["jetpack/button",{text:"Print Recipe"}]]}))))}},37181:(e,t,n)=>{"use strict";n.d(t,{X:()=>p,u:()=>d});var r=n(51806),a=n(13419),s=n(69307),o=n(65736),i=n(61281),l=n(38275),c=n(900),u=n(15617);const __=o.__,d="recipe-details",p={title:__("Recipe Details","jetpack"),description:(0,r.createElement)(s.Fragment,null,(0,r.createElement)("p",null,__("Recipe Details","jetpack"))),keywords:[],supports:{align:["left","right","center"]},icon:(0,a.lt)(i),category:"widgets",attributes:l.Z,edit:c.Z,save:u.Z,parent:["jetpack/recipe"]}},15617:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({attributes:e,className:t})=>{const{prepTime:n,prepTimeLabel:s,cookTime:o,cookTimeLabel:i,servings:l,servingsLabel:c}=e;return(0,r.createElement)("div",{className:t},(0,r.createElement)("div",{className:"wp-block-jetpack-recipe-details__detail"},(0,r.createElement)("p",null,s),(0,r.createElement)("p",{itemprop:"prepTime",content:`PT${n.toUpperCase()}`},n)),(0,r.createElement)("div",{className:"wp-block-jetpack-recipe-details__detail"},(0,r.createElement)("p",null,i),(0,r.createElement)("p",{itemprop:"cookTime",content:`PT${o.toUpperCase()}`},o)),(0,r.createElement)("div",{className:"wp-block-jetpack-recipe-details__detail"},(0,r.createElement)("p",null,c),(0,r.createElement)("p",{itemprop:"recipeYield"},l)),(0,r.createElement)("div",{className:"wp-block-jetpack-recipe-details__detail wp-block-jetpack-recipe-details__detail--print"},(0,r.createElement)(a.InnerBlocks.Content,null)))}},37470:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(65736);const __=s.__;const o=function({className:e}){const t=[["jetpack/recipe-hero"],["core/heading",{level:2,placeholder:__("Recipe Title","jetpack"),className:"wp-block-jetpack-recipe-title"}],["core/separator",{color:"--wp--custom--color--foreground",className:"is-style-wide",style:"wide"}],["core/paragraph",{placeholder:__("Recipe Description","jetpack"),className:"wp-block-jetpack-recipe-description"}],["jetpack/recipe-details",{}],["core/columns",{},[["core/column",{width:"33.33%"},[["core/heading",{level:3, | |
| 102 | +default:__("Servings","jetpack")}}},66826(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(56427),s=(n(38940),n(10790));const a=[{value:"m",label:"min"},{value:"h",label:"hours"}];const i=function({className:e,attributes:t,setAttributes:n}){const{prepTime:i,prepTimeLabel:c,cookTime:l,cookTimeLabel:u,servings:d,servingsLabel:p}=t,h=(0,r.useBlockProps)({className:e});return(0,s.jsx)("div",{...h,children:(0,s.jsxs)("div",{className:"wp-container wp-recipe-block-details",children:[(0,s.jsxs)("div",{className:"group",children:[(0,s.jsx)(o.TextControl,{value:c,onChange:e=>n({prepTimeLabel:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,s.jsx)(o.__experimentalUnitControl,{onChange:e=>n({prepTime:e}),onUnitChange:e=>n({prepTimeUnit:e}),isUnitSelectTabbable:!0,value:i,units:a,__next40pxDefaultSize:!0})]}),(0,s.jsxs)("div",{className:"group",children:[(0,s.jsx)(o.TextControl,{value:u,onChange:e=>n({cookTimeLabel:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,s.jsx)(o.__experimentalUnitControl,{onChange:e=>n({cookTime:e}),onUnitChange:e=>{n({cookTimeUnit:e})},isUnitSelectTabbable:!0,value:l,units:a,__next40pxDefaultSize:!0})]}),(0,s.jsxs)("div",{className:"group",children:[(0,s.jsx)(o.TextControl,{value:p,onChange:e=>n({servingsLabel:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,s.jsx)(o.TextControl,{type:"number",value:d,onChange:e=>n({servings:parseInt(e)}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]}),(0,s.jsx)("div",{className:"group",children:(0,s.jsx)(r.InnerBlocks,{allowedBlocks:["jetpack/button"],template:[["jetpack/button",{text:"Print Recipe"}]]})})]})})}},67868(e,t,n){"use strict";n.d(t,{U:()=>l,W:()=>u});var r=n(85985),o=n(27723),s=n(85660),a=n(80375),i=n(66826),c=n(66977);n(38940);const __=o.__,l="recipe-details",u={apiVersion:3,title:__("Recipe Details","jetpack"),description:__("Recipe Details","jetpack"),keywords:[],supports:{align:["left","right","center"]},icon:(0,r.Cq)(s),category:"widgets",attributes:a.A,edit:i.A,save:c.A,parent:["jetpack/recipe"]}},66977(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=({attributes:e})=>{const{prepTime:t,prepTimeLabel:n,cookTime:s,cookTimeLabel:a,servings:i,servingsLabel:c}=e,l=r.useBlockProps.save();return(0,o.jsxs)("div",{...l,children:[(0,o.jsxs)("div",{className:"wp-block-jetpack-recipe-details__detail",children:[(0,o.jsx)("p",{children:n}),(0,o.jsx)("p",{itemProp:"prepTime",content:`PT${t.toUpperCase()}`,children:t})]}),(0,o.jsxs)("div",{className:"wp-block-jetpack-recipe-details__detail",children:[(0,o.jsx)("p",{children:a}),(0,o.jsx)("p",{itemProp:"cookTime",content:`PT${s.toUpperCase()}`,children:s})]}),(0,o.jsxs)("div",{className:"wp-block-jetpack-recipe-details__detail",children:[(0,o.jsx)("p",{children:c}),(0,o.jsx)("p",{itemProp:"recipeYield",children:i})]}),(0,o.jsx)("div",{className:"wp-block-jetpack-recipe-details__detail wp-block-jetpack-recipe-details__detail--print",children:(0,o.jsx)(r.InnerBlocks.Content,{})})]})}},48079(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(27723),s=n(10790);const __=o.__;const a=function({className:e}){const t=[["jetpack/recipe-hero"],["core/heading",{level:2,placeholder:__("Recipe Title","jetpack"),className:"wp-block-jetpack-recipe-title"}],["core/separator",{color:"--wp--custom--color--foreground",className:"is-style-wide",style:"wide"}],["core/paragraph",{placeholder:__("Recipe Description","jetpack"),className:"wp-block-jetpack-recipe-description"}],["jetpack/recipe-details",{}],["core/columns",{},[["core/column",{width:"33.33%"},[["core/heading",{level:3, | |
| 73 | 103 | // translators: Ingredients heading for a recipe block. |
| 74 | 104 | content:__("Ingredients","jetpack")}],["jetpack/recipe-ingredients-list"]]],["core/column",{width:"66.66%"},[["core/heading",{level:3, |
| 75 | 105 | // translators: Instructions heading for a recipe block. |
| 76 | -content:__("Instructions","jetpack")}],["jetpack/recipe-steps"]]]]]];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",(0,a.useBlockProps)({className:e}),(0,r.createElement)(a.InnerBlocks,{template:t})))}},60405:(e,t,n)=>{"use strict";var r=n(31985),a=n(61281),s=n(37181),o=n(37470),i=n(82479),l=n(79300),c=n(35156),u=n(37868),d=n(43262),p=n(91372);(0,r.S)(a,{edit:o.Z,save:u.Z},[{name:s.u,settings:s.X},{name:i.u2,settings:i.Xd},{name:c.u2,settings:c.Xd},{name:l.u2,settings:l.Xd},{name:p.u2,settings:p.Xd},{name:d.u2,settings:d.Xd}])},22401:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=function({className:e,hasInnerBlocks:t}){return(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["core/image","jetpack/slideshow","core/cover"],renderAppender:!t&&a.InnerBlocks.ButtonBlockAppender}))}},82479:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>d,u2:()=>u});var r=n(51806),a=n(13419),s=n(69307),o=n(65736),i=n(61281),l=n(22401),c=n(19293);const __=o.__,u="recipe-hero",d={title:__("Recipe Hero","jetpack"),description:(0,r.createElement)(s.Fragment,null,(0,r.createElement)("p",null,__("Image area for the recipe.","jetpack"))),keywords:[],icon:(0,a.lt)(i),category:"widgets",edit:l.Z,save:c.Z,parent:["jetpack/recipe"]}},19293:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({className:e})=>(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks.Content,null))},97355:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ingredient:{type:"string",selector:".ingredientText"}}},5211:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=function({className:e,attributes:t,setAttributes:n}){const{ingredient:s}=t;return(0,r.createElement)("div",{className:e},(0,r.createElement)(a.RichText,{tagName:"p",className:"ingredientText",value:s,onChange:e=>n({ingredient:e})}))}},79300:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>p,u2:()=>d});var r=n(51806),a=n(13419),s=n(69307),o=n(65736),i=n(61281),l=n(97355),c=n(5211),u=n(96028);const __=o.__,d="recipe-ingredient-item",p={title:__("Recipe Ingredient Item","jetpack"),description:(0,r.createElement)(s.Fragment,null,(0,r.createElement)("p",null,__("A single ingredient associated with a recipe.","jetpack"))),keywords:[],icon:(0,a.lt)(i),category:"widgets",attributes:l.Z,edit:c.Z,save:u.Z,parent:["jetpack/recipe"]}},96028:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({className:e,attributes:t})=>{const{ingredient:n}=t;return(0,r.createElement)("div",{className:e},(0,r.createElement)(a.RichText.Content,{tagName:"p",itemprop:"recipeIngredient",value:n}))}},10828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ingredients:{type:"string[]"}}},46067:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=function({className:e}){return(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["jetpack/recipe-ingredient-item"],renderAppender:a.InnerBlocks.ButtonBlockAppender}))}},35156:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>p,u2:()=>d});var r=n(51806),a=n(13419),s=n(69307),o=n(65736),i=n(61281),l=n(10828),c=n(46067),u=n(94721);const __=o.__,d="recipe-ingredients-list",p={title:__("Recipe Ingredients List","jetpack"),description:(0,r.createElement)(s.Fragment,null,(0,r.createElement)("p",null,__("Recipe ingredient list","jetpack"))),icon:(0,a.lt)(i),category:"widgets",keywords:[],attributes:l.Z,edit:c.Z,save:u.Z,parent:["jetpack/recipe"]}},94721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({className:e})=>(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks.Content,null))},37868:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({className:e})=>(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks.Content,null))},89090:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=function({className:e}){return(0,r.createElement)("li",null,(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["core/image","core/heading","core/paragraph","core/list","core/button"]})))}},43262:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>d,u2:()=>u});var r=n(51806),a=n(13419),s=n(69307),o=n(65736),i=n(61281),l=n(89090),c=n(70094);const __=o.__,u="recipe-step",d={title:__("Recipe Step","jetpack"),description:(0,r.createElement)(s.Fragment,null,(0,r.createElement)("p",null,__("A single recipe step.","jetpack"))),keywords:[],icon:(0,a.lt)(i),category:"widgets",edit:l.Z,save:c.Z,parent:["jetpack/recipe"]}},70094:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=()=>(0,r.createElement)("li",{itemprop:"step",itemscope:!0,itemtype:"https://schema.org/HowToStep"},(0,r.createElement)(a.InnerBlocks.Content,null))},41979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(24381);const a={stepHighlightColor:{type:"string",validator:r.Z},stepTextColor:{type:"string",validator:r.Z}}},17402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(65736);const __=s.__;const o=function({className:e,attributes:t,setAttributes:n}){const{stepHighlightColor:s,stepTextColor:o}=t;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(a.PanelColorSettings,{title:__("Color Settings","jetpack"),colorSettings:[{value:s,onChange:e=>n({stepHighlightColor:e}),label:__("Step Highlight Color","jetpack")},{value:o,onChange:e=>n({stepTextColor:e}),label:__("Step Text Color","jetpack")}]},(0,r.createElement)(a.ContrastChecker,{isLargeText:!1,textColor:o,backgroundColor:s}))),(0,r.createElement)("ol",{className:e},(0,r.createElement)(a.InnerBlocks,{allowedBlocks:["jetpack/recipe-step"],renderAppender:a.InnerBlocks.ButtonBlockAppender})))}},91372:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>p,u2:()=>d});var r=n(51806),a=n(13419),s=n(69307),o=n(65736),i=n(61281),l=n(41979),c=n(17402),u=n(84749);const __=o.__,d="recipe-steps",p={title:__("Recipe Steps","jetpack"),description:(0,r.createElement)(s.Fragment,null,(0,r.createElement)("p",null,__("Step by step instructions for the recipe.","jetpack"))),keywords:[],icon:(0,a.lt)(i),category:"widgets",attributes:l.Z,edit:c.Z,save:u.Z,parent:["jetpack/recipe"]}},84749:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=({attributes:e})=>{const{stepHighlightColor:t,stepTextColor:n}=e,s={"--step-highlight-color":t,"--step-text-color":n};return(0,r.createElement)("ol",{style:s,itemscope:"",itemprop:"recipeInstructions",itemtype:"https://schema.org/HowTo"},(0,r.createElement)(a.InnerBlocks.Content,null))}},7463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4981),a=n(92819);const s=["submitButtonText","submitButtonClasses","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor"],o={attributes:{planId:{type:"integer"},submitButtonText:{type:"string"},submitButtonClasses:{type:"string"},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},align:{type:"string"}},migrate:e=>{const t=(0,a.omit)(e,s),n={text:(o=e).submitButtonText,textColor:o.textButtonColor,customTextColor:o.customTextButtonColor,backgroundColor:o.backgroundButtonColor,customBackgroundColor:o.customBackgroundButtonColor};var o;return[t,[(0,r.createBlock)("jetpack/button",{element:"a",uniqueId:"recurring-payments-id",...n})]]},isEligible:(e,t)=>(0,a.isEmpty)(t)||(0,a.some)((0,a.pick)(e,s),Boolean),save:()=>null}},25370:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s={attributes:{planId:{type:"integer"},align:{type:"string"},url:{type:"string",default:"#"},uniqueId:{type:"string",default:"id"},width:{type:"string"}},supports:{html:!1,__experimentalExposeControlsToChildren:!0},save:({attributes:{width:e}})=>{const t={width:e};e?.includes("%")&&(t.width=`calc( ${e} - var( --jetpack-payment-buttons-gap, 0 ) * ${(100-e.replace("%",""))/100} )`);const n=a.useInnerBlocksProps.save({...a.useBlockProps.save(),style:t});return(0,r.createElement)("div",n)}}},3821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51806),a=n(52175),s=n(9818),o=n(12238),i=n(69307),l=n(92694),c=n(60386),u=n(16367),d=n(99307),p=n(81673),m=n(30429),g=n(51527);const A="recurring-payments";function h({attributes:e,clientId:t,setAttributes:n}){const{align:h,planId:E,planIds:f,width:b}=e,C=(0,i.useMemo)((()=>f||(E?[E]:[])),[E,f]),v=(0,d.j3)(),k=(0,s.useSelect)((e=>e(o.store)?.getCurrentPost()?.link),[]),B=(0,i.useCallback)((e=>{if(!Array.isArray(e)||0===e.length)return;const t=e.map((e=>parseInt(e,10))).filter((e=>!isNaN(e)));if(Array.isArray(C)&&t.length===C.length&&t.every((e=>C.includes(e))))return;const r=t.join("+");n({planId:null,planIds:t,url:(e=>{if(d.yn!==v||!k)return"#";const t=new URL(k);return t.searchParams.set("recurring_payments",e),t.toString()})(r),uniqueId:`recurring-payments-${r}`})}),[v,C,k,n]);(0,i.useEffect)((()=>{B(C)}),[C,B]);const{showProductManagementControls:y,showStripeNudge:w}=(0,l.applyFilters)("jetpack.recurringPayments.editorSettings",{showProductManagementControls:!0,showStripeNudge:!0},t);(0,p.Z)({attributes:e,setAttributes:n});const _=(0,a.useBlockProps)({style:(0,g.r)({width:b})}),I=(0,a.useInnerBlocksProps)({},{template:[["jetpack/button",{element:"a",passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]],templateLock:"all",templateInsertUpdatesSelection:!0});return(0,r.createElement)("div",_,y&&(0,r.createElement)(c.Z,{blockName:A,clientId:t,selectedProductIds:C,setSelectedProductIds:B}),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(m.G,{align:h,width:b,onChange:e=>n({width:e})})),w&&(0,r.createElement)(u.U,{blockName:A}),(0,r.createElement)("div",I))}},94315:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(24854),o=n(7463),i=n(25370),l=n(3821),c=n(53453);(0,a.S)(s,{...s,edit:l.Z,save:c.Z,deprecated:[i.Z,o.Z],transforms:{from:[{type:"block",blocks:["core/buttons"],isMatch:(e,t)=>void 0!==t&&1===t.innerBlocks.length&&"core/button"===t.innerBlocks[0].name,transform:(e,t)=>{const n=t[0],a={element:"a",text:n.attributes.text??"",className:n.attributes.className??""},s=n.attributes.width;s&&(a.width=s.toString()+"%");const o=n.attributes.style?.border?.radius;o&&(a.borderRadius=parseInt(o.substring(0,o.length-2)));const i=(0,r.createBlock)("jetpack/button",a,[]);return(0,r.createBlock)("jetpack/"+name,{},[i])}}]}})},53453:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(51527);function o({attributes:{width:e}}){const t=a.useInnerBlocksProps.save({...a.useBlockProps.save(),style:(0,s.r)({width:e})});return(0,r.createElement)("div",t)}},51527:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});const r=({width:e})=>{const t={width:e};return e?.includes("%")&&(t.width=`calc(${e} - var(--jetpack-payment-buttons-gap, 0) * ${(100-e.replace("%",""))/100})`),t}},53296:(e,t,n)=>{"use strict";n.d(t,{AP:()=>l,Hj:()=>i});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,o=6;function i({attributes:e,setAttributes:t}){const{displayAuthor:n,displayContext:s,displayDate:i,displayThumbnails:l,postsToShow:c}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Layout settings","jetpack")},(0,r.createElement)(a.RangeControl,{label:__("Number of posts","jetpack"),value:c,onChange:e=>t({postsToShow:Math.min(e,o)}),min:1,max:o})),(0,r.createElement)(a.PanelBody,{title:__("Metadata settings","jetpack")},(0,r.createElement)(a.ToggleControl,{label:__("Display date","jetpack"),checked:i,onChange:e=>t({displayDate:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display author","jetpack"),checked:n,onChange:e=>t({displayAuthor:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display context (category or tag)","jetpack"),checked:s,onChange:e=>t({displayContext:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display thumbnail","jetpack"),checked:l,onChange:e=>t({displayThumbnails:e})})))}function l({attributes:e,setAttributes:t}){const{postLayout:n}=e,s=[{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===n},{icon:"list-view",title:__("List view","jetpack"),onClick:()=>t({postLayout:"list"}),isActive:"list"===n}];return(0,r.createElement)(a.ToolbarGroup,{controls:s})}},37710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=[n(68503)]},44423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={postLayout:{type:"string",default:"grid"},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!0},displayHeadline:{type:"boolean",default:!1},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},headline:{type:"string",default:""},postsToShow:{type:"number",default:3}}},68503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>a.Z,migrate:()=>o,save:()=>i,supports:()=>s.Z});var r=n(4981),a=n(44423),s=n(20422);const o=(e,t)=>[e,e.headline?[(0,r.createBlock)("core/heading",{content:e.headline,level:3}),...t]:t],i=()=>null},20422:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={html:!1,multiple:!1,reusable:!1,color:{gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{__experimentalFontFamily:!0,fontSize:!0,lineHeight:!0},align:["wide","full"]}},86434:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(51806),a=n(13419),s=n(52175),o=n(55609),i=n(94333),l=n(9818),c=n(12238),u=n(65736),d=n(8649),p=n(25411),m=n(53296),g=n(61871),A=n(54797),h=n(17778);const __=u.__,E=p.name.replace("jetpack/","");function f(e){return(0,r.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,r.createElement)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link"},e.isInSiteEditor?__("Preview unavailable in site editor.","jetpack"):__("Preview unavailable: you haven't published enough posts with similar content.","jetpack")),e.displayThumbnails&&(0,r.createElement)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":__("Placeholder image","jetpack")},(0,r.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200"},(0,r.createElement)("title",null,__("Grey square","jetpack")),(0,r.createElement)(o.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96",fillOpacity:".1"})),(0,r.createElement)(o.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("title",null,__("Icon for image","jetpack")),(0,r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(o.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))),e.displayDate&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},__("August 3, 2018","jetpack")),e.displayAuthor&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-author has-small-font-size"},__("by John Doe","jetpack")),e.displayContext&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},__("In “Uncategorized”","jetpack")))}function b(e){const t=e.post?.block_context?.text||"",n=e.post?.block_context?.link||"",a=""!==t,s=""!==n;return(0,r.createElement)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading"},(0,r.createElement)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank"},e.post.title),e.displayThumbnails&&e.post.img&&e.post.img.src&&(0,r.createElement)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url,target:"_blank",rel:"nofollow noopener noreferrer"},(0,r.createElement)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title})),e.displayDate&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-date has-small-font-size"},e.post.date),e.displayAuthor&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-author has-small-font-size"},e.post.author),e.displayContext&&a&&(0,r.createElement)("div",{className:"jp-related-posts-i2__post-context has-small-font-size"},s&&(0,r.createElement)("a",{href:n},t),!1===s&&t))}function C(e){const t="jp-related-posts-i2__row";let n=0;const a=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:n=2;break;default:n=3}return(0,r.createElement)("div",null,(0,r.createElement)("div",{className:t,"data-post-count":e.posts.slice(0,n).length},e.posts.slice(0,n)),a&&(0,r.createElement)("div",{className:t,"data-post-count":e.posts.slice(n).length},e.posts.slice(n)))}function v({attributes:e,setAttributes:t}){const{displayAuthor:n,displayContext:o,displayDate:u,displayThumbnails:p,postLayout:k,postsToShow:B}=e,y=(0,s.useBlockProps)(),{isLoadingModules:w,isChangingStatus:_,isModuleActive:I,changeStatus:j}=(0,a.el)(E),{isEnabled:x,enable:S,isFetchingStatus:Q,isUpdatingStatus:N}=(0,A._)(),P=_||N,{posts:T,isLoading:R}=(0,g.r)(x),{isInSiteEditor:Z}=(0,l.useSelect)((e=>{const t=e(c.store).getCurrentPost();return{isInSiteEditor:!t||0===Object.keys(t).length}})),{instanceId:L}=(0,i.useInstanceId)(v);let M;if(w||Q||R)M=(0,r.createElement)(d.d,null);else if(I&&x){const a="jp-relatedposts-i2",i=[];for(let e=0;e<B;e++)T[e]?i.push((0,r.createElement)(b,{id:`related-posts-${L}-post-${e}`,key:a+"-"+e,post:T[e],displayThumbnails:p,displayDate:u,displayContext:o,displayAuthor:n})):i.push((0,r.createElement)(f,{id:`related-posts-${L}-post-${e}`,key:"related-post-placeholder-"+e,displayThumbnails:p,displayDate:u,displayContext:o,isInSiteEditor:Z,displayAuthor:n}));M=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(m.Hj,{attributes:e,setAttributes:t})),(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(m.AP,{attributes:e,setAttributes:t})),(0,r.createElement)("div",{id:`related-posts-${L}`},(0,r.createElement)(s.InnerBlocks,{allowedBlocks:["core/heading"],template:[["core/heading",{placeholder:__("Add a headline","jetpack")}]]}),(0,r.createElement)("div",{className:a,"data-layout":k},(0,r.createElement)(C,{posts:i}))))}else M=(0,r.createElement)(h.v,{changeStatus:j,isLoading:P,enable:S});return(0,r.createElement)("div",y,M)}},89517:(e,t,n)=>{"use strict";var r=n(51806),a=n(52175),s=n(31985),o=n(25411),i=n(37710),l=n(86434);(0,s.S)(o,{edit:l.Z,save:()=>{const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},deprecated:i.Z})},61871:(e,t,n)=>{"use strict";n.d(t,{r:()=>c});var r=n(86989),a=n.n(r),s=n(94333),o=n(9818),i=n(12238),l=n(69307);const c=e=>{const t=(0,s.usePrevious)(e),[n,r]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),{currentPostId:d,currentPostRelatedPosts:p}=(0,o.useSelect)((e=>{const t=e(i.store).getCurrentPost();return{currentPostId:t.id,currentPostRelatedPosts:t?.["jetpack-related-posts"]??[]}})),m=0===p.length&&!t&&e;return(0,l.useEffect)((()=>{m&&(r(!0),async function(e){try{return await a()({path:`/wpcom/v2/related-posts/${e}`})}catch(e){return[]}}(d).then((e=>{u(e)})).catch((()=>{})).then((()=>{r(!1)})))}),[m,d]),(0,l.useMemo)((()=>({posts:c??p,isLoading:n})),[n,c,p])}},54797:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(86989),a=n.n(r),s=n(69307);const o=()=>{const[e,t]=(0,s.useState)(!1),[n,r]=(0,s.useState)(!1),[o,i]=(0,s.useState)(!1);(0,s.useEffect)((()=>{t(!0),async function(){try{const e=await a()({path:"/wpcom/v2/related-posts"});return e?.enabled??!1}catch(e){return!1}}().then((e=>{i(e),t(!1)})).catch((()=>{t(!1)}))}),[]);const l=(0,s.useCallback)((()=>{r(!0),async function(){try{return await a()({path:"/wpcom/v2/related-posts/enable",method:"POST"})}catch(e){return!1}}().then((e=>{i(e),r(!1)})).catch((()=>{r(!1)}))}),[]);return(0,s.useMemo)((()=>({isEnabled:o,enable:l,isFetchingStatus:e,isUpdatingStatus:n})),[o,l,e,n])}},17778:(e,t,n)=>{"use strict";n.d(t,{v:()=>d});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(69307),l=n(65736),c=n(25411);const __=l.__,u=(0,s.dM)(c),d=({className:e,changeStatus:t,isLoading:n,enable:l})=>{const{tracks:d}=(0,s.z$)();(0,i.useEffect)((()=>{d.recordEvent("jetpack_editor_related_posts_placeholder_view")}),[d]);const p=(0,s.Wp)()||(0,s.Ug)()?"https://wordpress.com/support/related-posts/":(0,a.Z)("jetpack-support-related-posts");return(0,r.createElement)("div",{className:e},(0,r.createElement)(o.Placeholder,{icon:u,instructions:__("You'll need to activate the Related Posts feature to use this block.","jetpack"),label:c.title},(0,r.createElement)(o.Button,{disabled:n,isBusy:n,onClick:()=>{let e=!1;return d.recordEvent("jetpack_editor_related_posts_enable"),(0,s.Wp)()||(e=t(!0)),e=l(),e},variant:"secondary"},n?__("Activating Related Posts","jetpack"):__("Activate Related Posts","jetpack",0)),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(o.ExternalLink,{href:p},__("Learn more about the Related Posts feature.","jetpack")))))}},4498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(52175),l=n(55609),c=n(9818),u=n(69307),d=n(65736),p=n(65235),m=n.n(p),g=n(18962),A=n(51100);const __=d.__,_n=d._n,h=[{value:A.FV,label:__("Show after threshold","jetpack")},{value:A.Am,label:__("Show before threshold","jetpack")}],E=(0,o.dM)(g),f=(0,c.withSelect)(((e,t)=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=e("core/block-editor");return{isSelected:n(t.clientId)||r(t.clientId)}}))((({isSelected:e,attributes:t,setAttributes:n})=>{const{criteria:r,threshold:o}=t,c=(0,i.useBlockProps)(),[p,g]=(0,u.useState)(!0);return(0,s.createElement)("div",a()({},c,{className:m()(c.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!e})}),(0,s.createElement)(l.Placeholder,{icon:E,label:__("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder"},(0,s.createElement)(l.TextControl,{className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:o,help:p?"":__("Please enter a valid number.","jetpack"),label:__("Visit count threshold","jetpack"),min:"1",onChange:e=>{/^\d+$/.test(e)&&+e>0?(n({threshold:+e}),g(!0)):g(!1)},pattern:"[0-9]",type:"number"}),(0,s.createElement)(l.RadioControl,{label:__("Visibility","jetpack"),selected:r,options:h,onChange:e=>n({criteria:e})})),(0,s.createElement)(l.Notice,{status:"info",isDismissible:!1},r===A.FV?1===o?__("This block will only appear to people who have visited this page more than once.","jetpack"):(0,d.sprintf)(/* translators: placeholder is a number. */ | |
| 77 | -_n("This block will only appear to people who have visited this page more than %d time.","This block will only appear to people who have visited this page more than %d times.",+o,"jetpack"),o):1===o?__("This block will only appear to people who are visiting this page for the first time.","jetpack"):(0,d.sprintf)(/* translators: placeholder is a number. */ | |
| 78 | -_n("This block will only appear to people who are visiting this page for %d time.","This block will only appear to people who have visited this page at most %d times.",+o,"jetpack"),o)),(0,s.createElement)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container"},(0,s.createElement)(i.InnerBlocks,null)))}))},48516:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=()=>{const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container"},(0,r.createElement)(a.InnerBlocks.Content,null)))}},51100:(e,t,n)=>{"use strict";n.d(t,{Am:()=>a,FV:()=>r,Kv:()=>s});const r="after-visits",a="before-visits",s=3},35983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(51100);const o={attributes:{criteria:{type:"string",default:s.FV},threshold:{type:"number",default:s.Kv}},supports:{html:!1},save:({className:e})=>(0,r.createElement)("div",{className:e},(0,r.createElement)(a.InnerBlocks.Content,null))}},50323:(e,t,n)=>{"use strict";var r=n(31985),a=n(18962),s=n(4498),o=n(48516),i=n(35983);(0,r.S)(a,{edit:s.Z,save:o.Z,deprecated:[i.Z]})},26208:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s(){const e=(0,a.useBlockProps)();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks,{template:[["jetpack/whatsapp-button",{}]],allowedBlocks:["jetpack/whatsapp-button"]}))}},23346:(e,t,n)=>{"use strict";var r=n(31985),a=n(91402),s=n(26208),o=n(26169),i=n(1645),l=n(71290);(0,r.S)(a,{edit:s.Z,save:o.Z,variations:i.Z},[{name:l.u2,settings:l.Xd}])},26169:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=()=>{const e=a.useBlockProps.save();return(0,r.createElement)("div",e,(0,r.createElement)(a.InnerBlocks.Content,null))}},46482:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});const r=[{code:"US",label:"🇺🇸 +1",value:"1US"},{code:"CA",label:"🇨🇦 +1",value:"1CA"},{code:"BS",label:"🇧🇸 +1242",value:"1242BS"},{code:"BB",label:"🇧🇧 +1246",value:"1246BB"},{code:"AI",label:"🇦🇮 +1264",value:"1264AI"},{code:"AG",label:"🇦🇬 +1268",value:"1268AG"},{code:"VG",label:"🇻🇬 +1284",value:"1284VG"},{code:"VI",label:"🇻🇮 +1340",value:"1340VI"},{code:"BM",label:"🇧🇲 +1441",value:"1441BM"},{code:"GD",label:"🇬🇩 +1473",value:"1473GD"},{code:"TC",label:"🇹🇨 +1649",value:"1649TC"},{code:"MS",label:"🇲🇸 +1664",value:"1664MS"},{code:"MP",label:"🇲🇵 +1670",value:"1670MP"},{code:"GU",label:"🇬🇺 +1671",value:"1671GU"},{code:"AS",label:"🇦🇸 +1684",value:"1684AS"},{code:"LC",label:"🇱🇨 +1758",value:"1758LC"},{code:"DM",label:"🇩🇲 +1767",value:"1767DM"},{code:"VC",label:"🇻🇨 +1784",value:"1784VC"},{code:"DO",label:"🇩🇴 +1849",value:"1849DO"},{code:"TT",label:"🇹🇹 +1868",value:"1868TT"},{code:"KN",label:"🇰🇳 +1869",value:"1869KN"},{code:"JM",label:"🇯🇲 +1876",value:"1876JM"},{code:"PR",label:"🇵🇷 +1939",value:"1939PR"},{code:"EG",label:"🇪🇬 +20",value:"20EG"},{code:"MA",label:"🇲🇦 +212",value:"212MA"},{code:"DZ",label:"🇩🇿 +213",value:"213DZ"},{code:"TN",label:"🇹🇳 +216",value:"216TN"},{code:"LY",label:"🇱🇾 +218",value:"218LY"},{code:"GM",label:"🇬🇲 +220",value:"220GM"},{code:"SN",label:"🇸🇳 +221",value:"221SN"},{code:"MR",label:"🇲🇷 +222",value:"222MR"},{code:"ML",label:"🇲🇱 +223",value:"223ML"},{code:"GN",label:"🇬🇳 +224",value:"224GN"},{code:"CI",label:"🇨🇮 +225",value:"225CI"},{code:"BF",label:"🇧🇫 +226",value:"226BF"},{code:"NE",label:"🇳🇪 +227",value:"227NE"},{code:"TG",label:"🇹🇬 +228",value:"228TG"},{code:"BJ",label:"🇧🇯 +229",value:"229BJ"},{code:"MU",label:"🇲🇺 +230",value:"230MU"},{code:"LR",label:"🇱🇷 +231",value:"231LR"},{code:"SL",label:"🇸🇱 +232",value:"232SL"},{code:"GH",label:"🇬🇭 +233",value:"233GH"},{code:"NG",label:"🇳🇬 +234",value:"234NG"},{code:"TD",label:"🇹🇩 +235",value:"235TD"},{code:"CF",label:"🇨🇫 +236",value:"236CF"},{code:"CM",label:"🇨🇲 +237",value:"237CM"},{code:"CV",label:"🇨🇻 +238",value:"238CV"},{code:"ST",label:"🇸🇹 +239",value:"239ST"},{code:"GQ",label:"🇬🇶 +240",value:"240GQ"},{code:"GA",label:"🇬🇦 +241",value:"241GA"},{code:"CG",label:"🇨🇬 +242",value:"242CG"},{code:"CD",label:"🇨🇩 +243",value:"243CD"},{code:"AO",label:"🇦🇴 +244",value:"244AO"},{code:"GW",label:"🇬🇼 +245",value:"245GW"},{code:"IO",label:"🇮🇴 +246",value:"246IO"},{code:"SC",label:"🇸🇨 +248",value:"248SC"},{code:"SD",label:"🇸🇩 +249",value:"249SD"},{code:"RW",label:"🇷🇼 +250",value:"250RW"},{code:"ET",label:"🇪🇹 +251",value:"251ET"},{code:"SO",label:"🇸🇴 +252",value:"252SO"},{code:"DJ",label:"🇩🇯 +253",value:"253DJ"},{code:"KE",label:"🇰🇪 +254",value:"254KE"},{code:"TZ",label:"🇹🇿 +255",value:"255TZ"},{code:"UG",label:"🇺🇬 +256",value:"256UG"},{code:"BI",label:"🇧🇮 +257",value:"257BI"},{code:"MZ",label:"🇲🇿 +258",value:"258MZ"},{code:"ZM",label:"🇿🇲 +260",value:"260ZM"},{code:"MG",label:"🇲🇬 +261",value:"261MG"},{code:"YT",label:"🇾🇹 +262",value:"262YT"},{code:"RE",label:"🇷🇪 +262",value:"262RE"},{code:"ZW",label:"🇿🇼 +263",value:"263ZW"},{code:"NA",label:"🇳🇦 +264",value:"264NA"},{code:"MW",label:"🇲🇼 +265",value:"265MW"},{code:"LS",label:"🇱🇸 +266",value:"266LS"},{code:"BW",label:"🇧🇼 +267",value:"267BW"},{code:"SZ",label:"🇸🇿 +268",value:"268SZ"},{code:"KM",label:"🇰🇲 +269",value:"269KM"},{code:"ZA",label:"🇿🇦 +27",value:"27ZA"},{code:"SH",label:"🇸🇭 +290",value:"290SH"},{code:"ER",label:"🇪🇷 +291",value:"291ER"},{code:"AW",label:"🇦🇼 +297",value:"297AW"},{code:"FO",label:"🇫🇴 +298",value:"298FO"},{code:"GL",label:"🇬🇱 +299",value:"299GL"},{code:"GR",label:"🇬🇷 +30",value:"30GR"},{code:"NL",label:"🇳🇱 +31",value:"31NL"},{code:"BE",label:"🇧🇪 +32",value:"32BE"},{code:"FR",label:"🇫🇷 +33",value:"33FR"},{code:"ES",label:"🇪🇸 +34",value:"34ES"},{code:"KY",label:"🇰🇾 +345",value:"345KY"},{code:"GI",label:"🇬🇮 +350",value:"350GI"},{code:"PT",label:"🇵🇹 +351",value:"351PT"},{code:"LU",label:"🇱🇺 +352",value:"352LU"},{code:"IE",label:"🇮🇪 +353",value:"353IE"},{code:"IS",label:"🇮🇸 +354",value:"354IS"},{code:"AL",label:"🇦🇱 +355",value:"355AL"},{code:"MT",label:"🇲🇹 +356",value:"356MT"},{code:"CY",label:"🇨🇾 +357",value:"357CY"},{code:"FI",label:"🇫🇮 +358",value:"358FI"},{code:"BG",label:"🇧🇬 +359",value:"359BG"},{code:"HU",label:"🇭🇺 +36",value:"36HU"},{code:"LT",label:"🇱🇹 +370",value:"370LT"},{code:"LV",label:"🇱🇻 +371",value:"371LV"},{code:"EE",label:"🇪🇪 +372",value:"372EE"},{code:"MD",label:"🇲🇩 +373",value:"373MD"},{code:"AM",label:"🇦🇲 +374",value:"374AM"},{code:"BY",label:"🇧🇾 +375",value:"375BY"},{code:"AD",label:"🇦🇩 +376",value:"376AD"},{code:"MC",label:"🇲🇨 +377",value:"377MC"},{code:"SM",label:"🇸🇲 +378",value:"378SM"},{code:"VA",label:"🇻🇦 +379",value:"379VA"},{code:"UA",label:"🇺🇦 +380",value:"380UA"},{code:"RS",label:"🇷🇸 +381",value:"381RS"},{code:"ME",label:"🇲🇪 +382",value:"382ME"},{code:"XK",label:"🇽🇰 +383",value:"383XK"},{code:"HR",label:"🇭🇷 +385",value:"385HR"},{code:"SI",label:"🇸🇮 +386",value:"386SI"},{code:"BA",label:"🇧🇦 +387",value:"387BA"},{code:"MK",label:"🇲🇰 +389",value:"389MK"},{code:"IT",label:"🇮🇹 +39",value:"39IT"},{code:"RO",label:"🇷🇴 +40",value:"40RO"},{code:"CH",label:"🇨🇭 +41",value:"41CH"},{code:"CZ",label:"🇨🇿 +420",value:"420CZ"},{code:"SK",label:"🇸🇰 +421",value:"421SK"},{code:"LI",label:"🇱🇮 +423",value:"423LI"},{code:"AT",label:"🇦🇹 +43",value:"43AT"},{code:"IM",label:"🇮🇲 +44",value:"44IM"},{code:"GG",label:"🇬🇬 +44",value:"44GG"},{code:"JE",label:"🇯🇪 +44",value:"44JE"},{code:"GB",label:"🇬🇧 +44",value:"44GB"},{code:"DK",label:"🇩🇰 +45",value:"45DK"},{code:"SE",label:"🇸🇪 +46",value:"46SE"},{code:"NO",label:"🇳🇴 +47",value:"47NO"},{code:"SJ",label:"🇸🇯 +47",value:"47SJ"},{code:"PL",label:"🇵🇱 +48",value:"48PL"},{code:"DE",label:"🇩🇪 +49",value:"49DE"},{code:"FK",label:"🇫🇰 +500",value:"500FK"},{code:"GS",label:"🇬🇸 +500",value:"500GS"},{code:"BZ",label:"🇧🇿 +501",value:"501BZ"},{code:"GT",label:"🇬🇹 +502",value:"502GT"},{code:"SV",label:"🇸🇻 +503",value:"503SV"},{code:"HN",label:"🇭🇳 +504",value:"504HN"},{code:"NI",label:"🇳🇮 +505",value:"505NI"},{code:"CR",label:"🇨🇷 +506",value:"506CR"},{code:"PA",label:"🇵🇦 +507",value:"507PA"},{code:"PM",label:"🇵🇲 +508",value:"508PM"},{code:"HT",label:"🇭🇹 +509",value:"509HT"},{code:"PE",label:"🇵🇪 +51",value:"51PE"},{code:"MX",label:"🇲🇽 +52",value:"52MX"},{code:"CU",label:"🇨🇺 +53",value:"53CU"},{code:"AR",label:"🇦🇷 +54",value:"54AR"},{code:"BR",label:"🇧🇷 +55",value:"55BR"},{code:"CL",label:"🇨🇱 +56",value:"56CL"},{code:"CO",label:"🇨🇴 +57",value:"57CO"},{code:"VE",label:"🇻🇪 +58",value:"58VE"},{code:"BL",label:"🇧🇱 +590",value:"590BL"},{code:"MF",label:"🇲🇫 +590",value:"590MF"},{code:"GP",label:"🇬🇵 +590",value:"590GP"},{code:"BO",label:"🇧🇴 +591",value:"591BO"},{code:"GY",label:"🇬🇾 +592",value:"592GY"},{code:"EC",label:"🇪🇨 +593",value:"593EC"},{code:"GF",label:"🇬🇫 +594",value:"594GF"},{code:"PY",label:"🇵🇾 +595",value:"595PY"},{code:"MQ",label:"🇲🇶 +596",value:"596MQ"},{code:"SR",label:"🇸🇷 +597",value:"597SR"},{code:"UY",label:"🇺🇾 +598",value:"598UY"},{code:"MY",label:"🇲🇾 +60",value:"60MY"},{code:"CC",label:"🇨🇨 +61",value:"61CC"},{code:"AU",label:"🇦🇺 +61",value:"61AU"},{code:"CX",label:"🇨🇽 +61",value:"61CX"},{code:"ID",label:"🇮🇩 +62",value:"62ID"},{code:"PH",label:"🇵🇭 +63",value:"63PH"},{code:"NZ",label:"🇳🇿 +64",value:"64NZ"},{code:"SG",label:"🇸🇬 +65",value:"65SG"},{code:"TH",label:"🇹🇭 +66",value:"66TH"},{code:"TL",label:"🇹🇱 +670",value:"670TL"},{code:"NF",label:"🇳🇫 +672",value:"672NF"},{code:"BN",label:"🇧🇳 +673",value:"673BN"},{code:"NR",label:"🇳🇷 +674",value:"674NR"},{code:"PG",label:"🇵🇬 +675",value:"675PG"},{code:"TO",label:"🇹🇴 +676",value:"676TO"},{code:"SB",label:"🇸🇧 +677",value:"677SB"},{code:"VU",label:"🇻🇺 +678",value:"678VU"},{code:"FJ",label:"🇫🇯 +679",value:"679FJ"},{code:"PW",label:"🇵🇼 +680",value:"680PW"},{code:"WF",label:"🇼🇫 +681",value:"681WF"},{code:"CK",label:"🇨🇰 +682",value:"682CK"},{code:"NU",label:"🇳🇺 +683",value:"683NU"},{code:"WS",label:"🇼🇸 +685",value:"685WS"},{code:"KI",label:"🇰🇮 +686",value:"686KI"},{code:"NC",label:"🇳🇨 +687",value:"687NC"},{code:"TV",label:"🇹🇻 +688",value:"688TV"},{code:"PF",label:"🇵🇫 +689",value:"689PF"},{code:"TK",label:"🇹🇰 +690",value:"690TK"},{code:"FM",label:"🇫🇲 +691",value:"691FM"},{code:"MH",label:"🇲🇭 +692",value:"692MH"},{code:"RU",label:"🇷🇺 +7",value:"7RU"},{code:"KZ",label:"🇰🇿 +77",value:"77KZ"},{code:"JP",label:"🇯🇵 +81",value:"81JP"},{code:"KR",label:"🇰🇷 +82",value:"82KR"},{code:"VN",label:"🇻🇳 +84",value:"84VN"},{code:"KP",label:"🇰🇵 +850",value:"850KP"},{code:"HK",label:"🇭🇰 +852",value:"852HK"},{code:"MO",label:"🇲🇴 +853",value:"853MO"},{code:"KH",label:"🇰🇭 +855",value:"855KH"},{code:"LA",label:"🇱🇦 +856",value:"856LA"},{code:"CN",label:"🇨🇳 +86",value:"86CN"},{code:"PN",label:"🇵🇳 +872",value:"872PN"},{code:"BD",label:"🇧🇩 +880",value:"880BD"},{code:"TW",label:"🇹🇼 +886",value:"886TW"},{code:"TR",label:"🇹🇷 +90",value:"90TR"},{code:"IN",label:"🇮🇳 +91",value:"91IN"},{code:"PK",label:"🇵🇰 +92",value:"92PK"},{code:"AF",label:"🇦🇫 +93",value:"93AF"},{code:"LK",label:"🇱🇰 +94",value:"94LK"},{code:"MM",label:"🇲🇲 +95",value:"95MM"},{code:"MV",label:"🇲🇻 +960",value:"960MV"},{code:"LB",label:"🇱🇧 +961",value:"961LB"},{code:"JO",label:"🇯🇴 +962",value:"962JO"},{code:"SY",label:"🇸🇾 +963",value:"963SY"},{code:"IQ",label:"🇮🇶 +964",value:"964IQ"},{code:"KW",label:"🇰🇼 +965",value:"965KW"},{code:"SA",label:"🇸🇦 +966",value:"966SA"},{code:"YE",label:"🇾🇪 +967",value:"967YE"},{code:"OM",label:"🇴🇲 +968",value:"968OM"},{code:"PS",label:"🇵🇸 +970",value:"970PS"},{code:"AE",label:"🇦🇪 +971",value:"971AE"},{code:"IL",label:"🇮🇱 +972",value:"972IL"},{code:"BH",label:"🇧🇭 +973",value:"973BH"},{code:"QA",label:"🇶🇦 +974",value:"974QA"},{code:"BT",label:"🇧🇹 +975",value:"975BT"},{code:"MN",label:"🇲🇳 +976",value:"976MN"},{code:"NP",label:"🇳🇵 +977",value:"977NP"},{code:"IR",label:"🇮🇷 +98",value:"98IR"},{code:"TJ",label:"🇹🇯 +992",value:"992TJ"},{code:"TM",label:"🇹🇲 +993",value:"993TM"},{code:"AZ",label:"🇦🇿 +994",value:"994AZ"},{code:"GE",label:"🇬🇪 +995",value:"995GE"},{code:"KG",label:"🇰🇬 +996",value:"996KG"},{code:"UZ",label:"🇺🇿 +998",value:"998UZ"}]},1645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(65736),a=n(42770),s=n(57954);const __=r.__,o=[{isDefault:!0,name:"whatsapp-button",title:__("WhatsApp Button","jetpack"),description:__("Let your visitors send you messages on WhatsApp with the tap of a button.","jetpack"),icon:(0,a.p)("send-a-message",s.Z),innerBlocks:[["jetpack/whatsapp-button",{}]]}]},88377:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65736);const __=r.__,a={countryCode:{type:"string"},phoneNumber:{type:"string"},firstMessage:{type:"string",default:__("Hi, I got your WhatsApp information from your website.","jetpack")},buttonText:{type:"string",source:"html",selector:"a.whatsapp-block__button",default:__("Chat on WhatsApp","jetpack")},backgroundColor:{type:"string",default:"#25D366"},colorClass:{type:"string",default:"dark"},openInNewTab:{type:"boolean",default:!1}}},35513:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(39630),c=n(59809),u=n(36598),d=n(46482);const __=i.__,_x=i._x,p="#25D366",m="#465B64",g="#F4F4F4";function A({attributes:e,setAttributes:t,context:n}){const{countryCode:i,phoneNumber:A,firstMessage:h,openInNewTab:E,backgroundColor:f}=e,[b,C]=(0,o.useState)(!0),v=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.BaseControl,{label:__("Phone Number","jetpack"),help:__("Enter the phone number you use for WhatsApp and would like to be contacted on.","jetpack"),className:"jetpack-whatsapp-button__phonenumber"},(0,r.createElement)(s.SelectControl,{label:__("Country code","jetpack"),value:i,onChange:e=>t({countryCode:e}),options:d.n,hideLabelFromVision:!0}),(0,r.createElement)(s.TextControl,{placeholder:__("Your phone number…","jetpack"),onChange:e=>{t({phoneNumber:e}),0===e.length&&C(!0),e.length>2&&C((e=>{const t=RegExp(/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,"g");return!(void 0===e||e.length<1)&&t.test(i.replace(/\D/g,"")+e)})(e))},value:A}),!b&&(0,r.createElement)(c.Z,{isError:!0,className:"jetpack-whatsapp-error"},__("Please enter a valid phone number.","jetpack"))),"inspector"===n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.TextareaControl,{label:__("Default First Message","jetpack"),help:__("The default first message that will be sent by visitors when using this button.","jetpack"),value:h,onChange:e=>t({firstMessage:e})}),(0,r.createElement)(s.ToggleControl,{label:__("Open in new tab","jetpack"),checked:E,onChange:e=>t({openInNewTab:e}),help:__("When the button is tapped, should a new tab be opened if the visitor does not have WhatsApp installed?","jetpack")})));return"toolbar"===n?(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.Dropdown,{placement:"bottom-start",className:"jetpack-whatsapp-button-settings-selector",contentClassName:"jetpack-whatsapp-button__popover",renderToggle:({isOpen:e,onToggle:t})=>((e,t)=>(0,r.createElement)(s.Button,{className:"components-toolbar__control jetpack-contact-form__toggle",label:__("WhatsApp Button Settings","jetpack"),onClick:t,onKeyDown:n=>{e||n.keyCode!==l.DOWN||(n.preventDefault(),n.stopPropagation(),t())},icon:(0,u.Z)((0,r.createElement)(s.Path,{d:"M10.82 12.49c.02-.16.04-.32.04-.49 0-.17-.02-.33-.04-.49l1.08-.82c.1-.07.12-.21.06-.32l-1.03-1.73c-.06-.11-.2-.15-.31-.11l-1.28.5c-.27-.2-.56-.36-.87-.49l-.2-1.33c0-.12-.11-.21-.24-.21H5.98c-.13 0-.24.09-.26.21l-.2 1.32c-.31.12-.6.3-.87.49l-1.28-.5c-.12-.05-.25 0-.31.11l-1.03 1.73c-.06.12-.03.25.07.33l1.08.82c-.02.16-.03.33-.03.49 0 .17.02.33.04.49l-1.09.83c-.1.07-.12.21-.06.32l1.03 1.73c.06.11.2.15.31.11l1.28-.5c.27.2.56.36.87.49l.2 1.32c.01.12.12.21.25.21h2.06c.13 0 .24-.09.25-.21l.2-1.32c.31-.12.6-.3.87-.49l1.28.5c.12.05.25 0 .31-.11l1.03-1.73c.06-.11.04-.24-.06-.32l-1.1-.83zM7 13.75c-.99 0-1.8-.78-1.8-1.75s.81-1.75 1.8-1.75 1.8.78 1.8 1.75S8 13.75 7 13.75zM18 1.01L8 1c-1.1 0-2 .9-2 2v3h2V5h10v14H8v-1H6v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99z"}))}))(e,t),renderContent:v})):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.PanelBody,{title:__("WhatsApp Button Settings","jetpack"),initialOpen:!0},v()),(0,r.createElement)(a.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!1,colorSettings:[{value:f,onChange:e=>(e=>{if(t({backgroundColor:e}),void 0===e||e===p||e===m)return t({colorClass:"dark"});t({colorClass:"light"})})(e),label:__("Background Color","jetpack"),disableCustomColors:!0,colors:[{name:_x("WhatsApp Green","background color name","jetpack"),slug:"whatsapp-green",color:p},{name:_x("WhatsApp Dark","background color name","jetpack"),slug:"whatsapp-dark",color:m},{name:_x("WhatsApp Light","background color name","jetpack"),slug:"whatsapp-light",color:g},{name:_x("White","background color name","jetpack"),slug:"whatsapp-white",color:"#FFFFFF"}]}]}))}},33314:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s),i=n(88377),l=n(71290);const c={attributes:i.Z,supports:{html:!1,reusable:!1},save:function({attributes:e,className:t}){const{countryCode:n,phoneNumber:s,firstMessage:i,colorClass:c,buttonText:u,backgroundColor:d,openInNewTab:p}=e,m=p?"_blank":"_self",g=n&&s?n.replace(/\D+/g,"")+s.replace(/\D+/g,""):"",A=o()(t,c?"is-color-"+c:void 0,u.length?void 0:"has-no-text");return(0,r.createElement)("div",{className:A},(0,r.createElement)("a",{className:"whatsapp-block__button",href:(()=>{let e=l.pf+g;return""!==i&&(e+="&text="+encodeURIComponent(i)),e})(),style:{backgroundColor:d},target:m,rel:"noopener noreferrer"},(0,r.createElement)(a.RichText.Content,{value:u})))}}},49150:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(9818),o=n(69307),i=n(65235),l=n.n(i),c=n(46482),u=n(35513);function d({attributes:e,setAttributes:t,className:n,clientId:i}){const{countryCode:d,buttonText:p,colorClass:m,backgroundColor:g}=e,{selectBlock:A}=(0,s.useDispatch)("core/block-editor"),h=(0,o.useCallback)((async()=>{t({countryCode:"1"});const e=await fetch("https://public-api.wordpress.com/geo/").then((e=>!!e.ok&&e)).catch((()=>!1));if(e){const n=await e.json();c.n.forEach((e=>{e.code===n.country_short&&t({countryCode:e.value})}))}}),[t]);(0,o.useEffect)((()=>{void 0===d&&(h(),A(i))}),[i,d,h,A]);return(0,r.createElement)("div",{className:l()(n,m?"is-color-"+m:void 0)},(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(u.Z,{context:"toolbar",setAttributes:t,attributes:e})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(u.Z,{context:"inspector",setAttributes:t,attributes:e})),(0,r.createElement)(a.RichText,{placeholder:p.default,value:p,onChange:e=>t({buttonText:e}),withoutInteractiveFormatting:!0,allowedFormats:[],className:"whatsapp-block__button",tagName:"a",preserveWhiteSpace:!1,style:{backgroundColor:g,color:"dark"===m?"#fff":"#465B64"}}))}},57954:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(55609),s=n(70355);const o=(0,r.createElement)(a.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,r.createElement)(a.Path,{fill:(0,s.m)(),d:"M24,11.6909333 C24,18.1477333 18.7256,23.3818667 12.2181333,23.3818667 C10.1522667,23.3818667 8.21146667,22.8538667 6.52293333,21.9272 L0,24 L2.12666667,17.7274667 C1.05386667,15.9658667 0.436,13.8997333 0.436,11.6909333 C0.436,5.23413333 5.71093333,0 12.2181333,0 C18.7261333,0 24,5.23413333 24,11.6909333 Z M12.2181333,1.86186667 C6.75573333,1.86186667 2.31253333,6.2712 2.31253333,11.6909333 C2.31253333,13.8416 3.0136,15.8333333 4.19946667,17.4536 L2.96186667,21.104 L6.76853333,19.8941333 C8.33253333,20.9210667 10.2061333,21.52 12.2184,21.52 C17.68,21.52 22.124,17.1112 22.124,11.6914667 C22.124,6.27173333 17.6802667,1.86186667 12.2181333,1.86186667 Z M18.1677333,14.3834667 C18.0949333,14.2642667 17.9026667,14.1922667 17.6141333,14.0490667 C17.3250667,13.9058667 15.9048,13.2122667 15.6408,13.1170667 C15.376,13.0216 15.1829333,12.9736 14.9906667,13.2602667 C14.7984,13.5472 14.2448,14.1922667 14.076,14.3834667 C13.9074667,14.5752 13.7392,14.5992 13.4501333,14.4557333 C13.1616,14.3125333 12.2312,14.0096 11.128,13.0336 C10.2696,12.2741333 9.68986667,11.3365333 9.52133333,11.0493333 C9.35306667,10.7626667 9.50373333,10.6077333 9.648,10.4650667 C9.77813333,10.3365333 9.93706667,10.1304 10.0813333,9.9632 C10.2261333,9.79573333 10.2741333,9.67653333 10.3698667,9.48506667 C10.4666667,9.29386667 10.4184,9.12666667 10.3458667,8.98293333 C10.2738667,8.83973333 9.69573333,7.4296 9.4552,6.85573333 C9.21466667,6.2824 8.9744,6.37786667 8.8056,6.37786667 C8.63733333,6.37786667 8.44453333,6.35386667 8.252,6.35386667 C8.05946667,6.35386667 7.7464,6.4256 7.4816,6.71226667 C7.21706667,6.9992 6.4712,7.69253333 6.4712,9.1024 C6.4712,10.5125333 7.5056,11.8749333 7.6504,12.0658667 C7.79466667,12.2568 9.64773333,15.2445333 12.5837333,16.392 C15.52,17.5389333 15.52,17.1562667 16.0496,17.1082667 C16.5786667,17.0605333 17.7578667,16.4152 17.9994667,15.7464 C18.2394667,15.0765333 18.2394667,14.5029333 18.1677333,14.3834667 Z"}))},71290:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>m,pf:()=>p,u2:()=>u});var r=n(65736),a=n(70355),s=n(88377),o=n(33314),i=n(49150),l=n(57954),c=n(89014);const __=r.__,_x=r._x,u="whatsapp-button",d=__("WhatsApp Button","jetpack"),p="https://api.whatsapp.com/send?phone=",m=(__("Chat on WhatsApp","jetpack"),__("Hi, I got your WhatsApp information from your website.","jetpack"),{title:d,description:__("Let your visitors send you a message on WhatsApp with the tap of a button.","jetpack"),icon:{src:l.Z,foreground:(0,a.m)()},category:"grow",parent:["jetpack/send-a-message"],keywords:[_x("whatsapp","keyword","jetpack"),_x("messenger","keyword","jetpack"),_x("contact","keyword","jetpack"),_x("support","keyword","jetpack")],supports:{html:!1,reusable:!1,align:["left","center","right"]},attributes:s.Z,edit:i.Z,save:c.Z,example:{attributes:{countryCode:"1",phoneNumber:"555-123-4567"}},deprecated:[o.Z]})},89014:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s),i=n(71290);function l({attributes:e,className:t}){const{countryCode:n,phoneNumber:s,firstMessage:l,buttonText:c,backgroundColor:u,colorClass:d,openInNewTab:p}=e,m=n&&s?n.replace(/\D+/g,"")+s.replace(/\D+/g,""):"",g=o()(t,d?"is-color-"+d:void 0,c.length?void 0:"has-no-text"),A=p?"_blank":"_self";return(0,r.createElement)("div",{className:g},(0,r.createElement)("a",{className:"whatsapp-block__button",href:(()=>{let e=i.pf+m;return""!==l&&(e+="&text="+encodeURIComponent(l)),e})(),style:{backgroundColor:u,color:"dark"===d?"#fff":"#465B64"},target:A,rel:"noopener noreferrer"},(0,r.createElement)(a.RichText.Content,{value:c})))}},36637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(52175),s=n(55609),o=n(65235),i=n.n(o),l=n(56286),c=n(12219);const u=({attributes:e,context:t})=>{const{service:n,label:o}=e,{styleType:u,iconColorValue:d,iconBackgroundColorValue:p}=t,m=(0,c.i)(n),g=o??m,A=i()("jetpack-sharing-button__button","style-"+u,"share-"+n),h=(0,a.useBlockProps)({className:"jetpack-sharing-button__list-item"}),E={color:d,backgroundColor:p};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",h,(0,r.createElement)(s.Button,{className:A,style:E},(0,r.createElement)(l.ZP,{icon:n,size:24}),(0,r.createElement)("span",{className:"jetpack-sharing-button__service-label"},g))))}},71471:(e,t,n)=>{"use strict";var r=n(31985),a=n(42142),s=n(36637),o=n(676);(0,r.S)(a,{edit:s.Z,variations:o.Z})},12219:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(65736),a=n(676);const __=r.__,s=e=>{const t=a.Z.find((t=>t.name===e));return t?t.title:__("Sharing Button","jetpack")}},676:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(56286);const __=a.__,o=[{name:"bluesky",attributes:{service:"bluesky",label:"Bluesky"},title:"Bluesky",icon:(0,r.createElement)(s.ZP,{icon:"bluesky",size:24})},{name:"print",attributes:{service:"print", | |
| 106 | +content:__("Instructions","jetpack")}],["jetpack/recipe-steps"]]]]]];return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{...(0,r.useBlockProps)({className:e}),children:(0,s.jsx)(r.InnerBlocks,{template:t})})})}},16636(e,t,n){"use strict";var r=n(94375),o=n(85660),s=n(67868),a=n(48079),i=n(35970),c=n(64947),l=n(665),u=n(80568),d=n(54348),p=n(95413);(0,r.M)(o,{edit:a.A,save:u.A},[{name:s.U,settings:s.W},{name:i.UU,settings:i.W0},{name:l.UU,settings:l.W0},{name:c.UU,settings:c.W0},{name:p.UU,settings:p.W0},{name:d.UU,settings:d.W0}])},38676(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=function({className:e,hasInnerBlocks:t}){const n=(0,r.useBlockProps)({className:e});return(0,o.jsx)("div",{...n,children:(0,o.jsx)(r.InnerBlocks,{allowedBlocks:["core/image","jetpack/slideshow","core/cover"],renderAppender:!t&&r.InnerBlocks.ButtonBlockAppender})})}},35970(e,t,n){"use strict";n.d(t,{UU:()=>c,W0:()=>l});var r=n(85985),o=n(27723),s=n(85660),a=n(38676),i=n(92547);const __=o.__,c="recipe-hero",l={apiVersion:3,title:__("Recipe Hero","jetpack"),description:__("Image area for the recipe.","jetpack"),keywords:[],icon:(0,r.Cq)(s),category:"widgets",edit:a.A,save:i.A,parent:["jetpack/recipe"]}},92547(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=()=>{const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},70922(e,t,n){"use strict";n.d(t,{A:()=>r});const r={ingredient:{type:"string",selector:".ingredientText"}}},29905(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=function({className:e,attributes:t,setAttributes:n}){const{ingredient:s}=t,a=(0,r.useBlockProps)({className:e});return(0,o.jsx)("div",{...a,children:(0,o.jsx)(r.RichText,{tagName:"p",className:"ingredientText",value:s,onChange:e=>n({ingredient:e})})})}},64947(e,t,n){"use strict";n.d(t,{UU:()=>l,W0:()=>u});var r=n(85985),o=n(27723),s=n(85660),a=n(70922),i=n(29905),c=n(22914);const __=o.__,l="recipe-ingredient-item",u={apiVersion:3,title:__("Recipe Ingredient Item","jetpack"),description:__("A single ingredient associated with a recipe.","jetpack"),keywords:[],icon:(0,r.Cq)(s),category:"widgets",attributes:a.A,edit:i.A,save:c.A,parent:["jetpack/recipe"]}},22914(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=({attributes:e})=>{const{ingredient:t}=e,n=r.useBlockProps.save();return(0,o.jsx)("div",{...n,children:(0,o.jsx)(r.RichText.Content,{tagName:"p",itemprop:"recipeIngredient",value:t})})}},75636(e,t,n){"use strict";n.d(t,{A:()=>r});const r={ingredients:{type:"string[]"}}},46723(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=(n(70431),n(10790));const s=function({className:e}){const t=(0,r.useBlockProps)({className:e});return(0,o.jsx)("div",{...t,children:(0,o.jsx)(r.InnerBlocks,{allowedBlocks:["jetpack/recipe-ingredient-item"],renderAppender:r.InnerBlocks.ButtonBlockAppender})})}},665(e,t,n){"use strict";n.d(t,{UU:()=>l,W0:()=>u});var r=n(85985),o=n(27723),s=n(85660),a=n(75636),i=n(46723),c=n(90132);n(70431);const __=o.__,l="recipe-ingredients-list",u={apiVersion:3,title:__("Recipe Ingredients List","jetpack"),description:__("Recipe ingredient list","jetpack"),icon:(0,r.Cq)(s),category:"widgets",keywords:[],attributes:a.A,edit:i.A,save:c.A,parent:["jetpack/recipe"]}},90132(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=()=>{const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},80568(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=({className:e})=>(0,o.jsx)("div",{className:e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})},84698(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=function({className:e}){const t=(0,r.useBlockProps)({className:e});return(0,o.jsx)("li",{children:(0,o.jsx)("div",{...t,children:(0,o.jsx)(r.InnerBlocks,{allowedBlocks:["core/image","core/heading","core/paragraph","core/list","core/button"]})})})}},54348(e,t,n){"use strict";n.d(t,{UU:()=>c,W0:()=>l});var r=n(85985),o=n(27723),s=n(85660),a=n(84698),i=n(72945);const __=o.__,c="recipe-step",l={apiVersion:3,title:__("Recipe Step","jetpack"),description:__("A single recipe step.","jetpack"),keywords:[],icon:(0,r.Cq)(s),category:"widgets",edit:a.A,save:i.A,parent:["jetpack/recipe"]}},72945(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=()=>{const e=r.useBlockProps.save();return(0,o.jsx)("li",{itemProp:"step",itemScope:!0,itemType:"https://schema.org/HowToStep",...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},75464(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(98329);const o={stepHighlightColor:{type:"string",validator:r.A},stepTextColor:{type:"string",validator:r.A}}},239(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(27723),s=(n(10559),n(10790));const __=o.__;const a=function({className:e,attributes:t,setAttributes:n}){const{stepHighlightColor:o,stepTextColor:a}=t,i=(0,r.useBlockProps)({className:e});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.InspectorControls,{children:(0,s.jsx)(r.PanelColorSettings,{title:__("Color Settings","jetpack"),colorSettings:[{value:o,onChange:e=>n({stepHighlightColor:e}),label:__("Step Highlight Color","jetpack")},{value:a,onChange:e=>n({stepTextColor:e}),label:__("Step Text Color","jetpack")}],children:(0,s.jsx)(r.ContrastChecker,{isLargeText:!1,textColor:a,backgroundColor:o})})}),(0,s.jsx)("ol",{...i,children:(0,s.jsx)(r.InnerBlocks,{allowedBlocks:["jetpack/recipe-step"],renderAppender:r.InnerBlocks.ButtonBlockAppender})})]})}},95413(e,t,n){"use strict";n.d(t,{UU:()=>l,W0:()=>u});var r=n(85985),o=n(27723),s=n(85660),a=n(75464),i=n(239),c=n(88728);n(10559);const __=o.__,l="recipe-steps",u={apiVersion:3,title:__("Recipe Steps","jetpack"),description:__("Step by step instructions for the recipe.","jetpack"),keywords:[],icon:(0,r.Cq)(s),category:"widgets",attributes:a.A,edit:i.A,save:c.A,parent:["jetpack/recipe"]}},88728(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=({attributes:e})=>{const{stepHighlightColor:t,stepTextColor:n}=e,s=r.useBlockProps.save(),a={"--step-highlight-color":t,"--step-text-color":n};return(0,o.jsx)("ol",{style:a,itemScope:"",itemProp:"recipeInstructions",itemType:"https://schema.org/HowTo",...s,children:(0,o.jsx)(r.InnerBlocks.Content,{})})}},87938(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(74997),o=n(66087);const s=["submitButtonText","submitButtonClasses","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor"],a={attributes:{planId:{type:"integer"},submitButtonText:{type:"string"},submitButtonClasses:{type:"string"},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},align:{type:"string"}},migrate:e=>{const t=Object.fromEntries(Object.entries(e).filter(([e])=>!s.includes(e))),n={text:(o=e).submitButtonText,textColor:o.textButtonColor,customTextColor:o.customTextButtonColor,backgroundColor:o.backgroundButtonColor,customBackgroundColor:o.customBackgroundButtonColor};var o;return[t,[(0,r.createBlock)("jetpack/button",{element:"a",uniqueId:"recurring-payments-id",...n})]]},isEligible:(e,t)=>(0,o.isEmpty)(t)||Object.entries(e).some(([e,t])=>t&&s.includes(e)),save:()=>null}},41069(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s={attributes:{planId:{type:"integer"},align:{type:"string"},url:{type:"string",default:"#"},uniqueId:{type:"string",default:"id"},width:{type:"string"}},supports:{html:!1,__experimentalExposeControlsToChildren:!0},save:({attributes:{width:e}})=>{const t={width:e};e?.includes("%")&&(t.width=`calc( ${e} - var( --jetpack-payment-buttons-gap, 0 ) * ${(100-e.replace("%",""))/100} )`);const n=r.useInnerBlocksProps.save({...r.useBlockProps.save(),style:t});return(0,o.jsx)("div",{...n})}}},94844(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(94715),o=n(47143),s=n(43656),a=n(86087),i=n(52619),c=n(85033),l=n(53796),u=n(59340),d=n(89303),p=n(68210),h=n(5380),m=n(10790);const g="recurring-payments";function f({attributes:e,clientId:t,setAttributes:n}){const{align:f,planId:b,planIds:v,width:y}=e,k=(0,a.useMemo)(()=>v||(b?[b]:[]),[b,v]),w=(0,u.AU)(),x=(0,o.useSelect)(e=>e(s.store)?.getCurrentPost()?.link,[]),_=(0,a.useCallback)(e=>{if(!Array.isArray(e)||0===e.length)return;const t=e.map(e=>parseInt(e,10)).filter(e=>!isNaN(e));if(Array.isArray(k)&&t.length===k.length&&t.every(e=>k.includes(e)))return;const r=t.join("+");n({planId:null,planIds:t,url:(e=>{if(u.vf!==w||!x)return"#";const t=new URL(x);return t.searchParams.set("recurring_payments",e),t.toString()})(r),uniqueId:`recurring-payments-${r}`})},[w,k,x,n]);(0,a.useEffect)(()=>{_(k)},[k,_]);const{showProductManagementControls:j,showStripeNudge:C}=(0,i.applyFilters)("jetpack.recurringPayments.editorSettings",{showProductManagementControls:!0,showStripeNudge:!0},t);(0,d.A)({attributes:e,setAttributes:n});const A=(0,r.useBlockProps)({style:(0,h.a)({width:y})}),S=(0,r.useInnerBlocksProps)({},{template:[["jetpack/button",{element:"a",passthroughAttributes:{uniqueId:"uniqueId",url:"url"}}]],templateLock:"all",templateInsertUpdatesSelection:!0});return(0,m.jsxs)("div",{...A,children:[j&&(0,m.jsx)(c.A,{blockName:g,clientId:t,selectedProductIds:k,setSelectedProductIds:_}),(0,m.jsx)(r.InspectorControls,{children:(0,m.jsx)(p.D,{align:f,width:y,onChange:e=>n({width:e})})}),C&&(0,m.jsx)(l.V,{blockName:g}),(0,m.jsx)("div",{...S})]})}},75849(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(77675),a=n(87938),i=n(41069),c=n(94844),l=n(23899);n(27394);(0,o.M)(s,{...s,edit:c.A,save:l.A,deprecated:[i.A,a.A],transforms:{from:[{type:"block",blocks:["core/buttons"],isMatch:(e,t)=>void 0!==t&&1===t.innerBlocks.length&&"core/button"===t.innerBlocks[0].name,transform:(e,t)=>{const n=t[0],o={element:"a",text:n.attributes.text??"",className:n.attributes.className??""},s=n.attributes.width;s&&(o.width=s.toString()+"%");const a=n.attributes.style?.border?.radius;a&&(o.borderRadius=parseInt(a.substring(0,a.length-2)));const i=(0,r.createBlock)("jetpack/button",o,[]);return(0,r.createBlock)("jetpack/"+name,{},[i])}}]}})},23899(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(5380),s=n(10790);function a({attributes:{width:e}}){const t=r.useInnerBlocksProps.save({...r.useBlockProps.save(),style:(0,o.a)({width:e})});return(0,s.jsx)("div",{...t})}},5380(e,t,n){"use strict";n.d(t,{a:()=>r});const r=({width:e})=>{const t={width:e};return e?.includes("%")&&(t.width=`calc(${e} - var(--jetpack-payment-buttons-gap, 0) * ${(100-e.replace("%",""))/100})`),t}},25324(e,t,n){"use strict";n.d(t,{WB:()=>i,_f:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__;function a({attributes:e,setAttributes:t}){const{displayAuthor:n,displayContext:o,displayDate:a,displayThumbnails:i,postsToShow:c}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.PanelBody,{title:__("Layout settings","jetpack"),children:(0,s.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Number of posts","jetpack"),value:c,onChange:e=>t({postsToShow:Math.min(e,6)}),min:1,max:6})}),(0,s.jsxs)(r.PanelBody,{title:__("Metadata settings","jetpack"),children:[(0,s.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display date","jetpack"),checked:a,onChange:e=>t({displayDate:e})}),(0,s.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display author","jetpack"),checked:n,onChange:e=>t({displayAuthor:e})}),(0,s.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display context (category or tag)","jetpack"),checked:o,onChange:e=>t({displayContext:e})}),(0,s.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display thumbnail","jetpack"),checked:i,onChange:e=>t({displayThumbnails:e})})]})]})}function i({attributes:e,setAttributes:t}){const{postLayout:n}=e,o=[{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({postLayout:"grid"}),isActive:"grid"===n},{icon:"list-view",title:__("List view","jetpack"),onClick:()=>t({postLayout:"list"}),isActive:"list"===n}];return(0,s.jsx)(r.ToolbarGroup,{controls:o})}},49108(e,t,n){"use strict";n.d(t,{A:()=>r});const r=[n(82228)]},50783(e,t,n){"use strict";n.d(t,{A:()=>r});const r={postLayout:{type:"string",default:"grid"},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!0},displayHeadline:{type:"boolean",default:!1},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},headline:{type:"string",default:""},postsToShow:{type:"number",default:3}}},82228(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>o.A,migrate:()=>a,save:()=>i,supports:()=>s.A});var r=n(74997),o=n(50783),s=n(90526);const a=(e,t)=>[e,e.headline?[(0,r.createBlock)("core/heading",{content:e.headline,level:3}),...t]:t],i=()=>null},90526(e,t,n){"use strict";n.d(t,{A:()=>r});const r={html:!1,multiple:!1,reusable:!1,color:{gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{__experimentalFontFamily:!0,fontSize:!0,lineHeight:!0},align:["wide","full"]}},7582(e,t,n){"use strict";n.d(t,{A:()=>k});var r=n(85985),o=n(94715),s=n(56427),a=n(29491),i=n(27723),c=n(10798),l=n(59340),u=n(88795),d=n(25324),p=n(80108),h=n(21144),m=n(18017),g=(n(63036),n(10790));const __=i.__,f=u.name.replace("jetpack/","");function b(e){return(0,g.jsxs)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading",children:[(0,g.jsx)("strong",{id:e.id+"-heading",className:"jp-related-posts-i2__post-link",children:e.isInSiteEditor?__("Preview unavailable in site editor. The post title will appear normally on your site.","jetpack"):__("Preview unavailable: you haven't published enough posts with similar content.","jetpack")}),e.displayThumbnails&&(0,g.jsxs)("figure",{className:"jp-related-posts-i2__post-image-placeholder","aria-label":__("Placeholder image","jetpack"),children:[(0,g.jsxs)(s.SVG,{className:"jp-related-posts-i2__post-image-placeholder-square",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 350 200",children:[(0,g.jsx)("title",{children:__("Grey square","jetpack")}),(0,g.jsx)(s.Path,{d:"M0 0h350v200H0z",fill:"#8B8B96",fillOpacity:".1"})]}),(0,g.jsxs)(s.SVG,{className:"jp-related-posts-i2__post-image-placeholder-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,g.jsx)("title",{children:__("Icon for image","jetpack")}),(0,g.jsx)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,g.jsx)(s.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"})]})]}),e.displayDate&&(0,g.jsx)("div",{className:"jp-related-posts-i2__post-date has-small-font-size",children:__("August 3, 2025","jetpack")}),e.displayAuthor&&(0,g.jsx)("div",{className:"jp-related-posts-i2__post-author has-small-font-size",children:__("by John Doe","jetpack")}),e.displayContext&&(0,g.jsx)("div",{className:"jp-related-posts-i2__post-context has-small-font-size",children:__("In “Uncategorized”","jetpack")})]})}function v(e){const t=e.post?.block_context?.text||"",n=e.post?.block_context?.link||"",r=""!==t,o=""!==n;return(0,g.jsxs)("div",{className:"jp-related-posts-i2__post",id:e.id,"aria-labelledby":e.id+"-heading",children:[(0,g.jsx)("a",{className:"jp-related-posts-i2__post-link",id:e.id+"-heading",href:e.post.url,rel:"nofollow noopener noreferrer",target:"_blank",children:e.post.title}),e.displayThumbnails&&e.post.img&&e.post.img.src&&(0,g.jsx)("a",{className:"jp-related-posts-i2__post-img-link",href:e.post.url,target:"_blank",rel:"nofollow noopener noreferrer",children:(0,g.jsx)("img",{className:"jp-related-posts-i2__post-img",src:e.post.img.src,alt:e.post.title})}),e.displayDate&&(0,g.jsx)("div",{className:"jp-related-posts-i2__post-date has-small-font-size",children:e.post.date}),e.displayAuthor&&(0,g.jsx)("div",{className:"jp-related-posts-i2__post-author has-small-font-size",children:e.post.author}),e.displayContext&&r&&(0,g.jsxs)("div",{className:"jp-related-posts-i2__post-context has-small-font-size",children:[o&&(0,g.jsx)("a",{href:n,children:t}),!1===o&&t]})]})}function y(e){const t="jp-related-posts-i2__row";let n;const r=e.posts.length>3;switch(e.posts.length){case 2:case 4:case 5:n=2;break;default:n=3}return(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:t,"data-post-count":e.posts.slice(0,n).length,children:e.posts.slice(0,n)}),r&&(0,g.jsx)("div",{className:t,"data-post-count":e.posts.slice(n).length,children:e.posts.slice(n)})]})}function k({attributes:e,setAttributes:t}){const{displayAuthor:n,displayContext:s,displayDate:i,displayThumbnails:u,postLayout:w,postsToShow:x}=e,_=(0,o.useBlockProps)(),{isLoadingModules:j,isChangingStatus:C,isModuleActive:A,changeStatus:S}=(0,r.q7)(f),{isEnabled:E,enable:T,isFetchingStatus:N,isUpdatingStatus:P}=(0,h.M)(),B=C||P,{posts:I,isLoading:M}=(0,p.Y)(E),R=l.O3===(0,l.AU)(),{instanceId:L}=(0,a.useInstanceId)(k);let D;if(j||N||M)D=(0,g.jsx)(c.G,{});else if(A&&E){const r="jp-relatedposts-i2",a=[];for(let e=0;e<x;e++)I[e]?a.push((0,g.jsx)(v,{id:`related-posts-${L}-post-${e}`,post:I[e],displayThumbnails:u,displayDate:i,displayContext:s,displayAuthor:n},r+"-"+e)):a.push((0,g.jsx)(b,{id:`related-posts-${L}-post-${e}`,displayThumbnails:u,displayDate:i,displayContext:s,isInSiteEditor:R,displayAuthor:n},"related-post-placeholder-"+e));D=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(o.InspectorControls,{children:(0,g.jsx)(d._f,{attributes:e,setAttributes:t})}),(0,g.jsx)(o.BlockControls,{children:(0,g.jsx)(d.WB,{attributes:e,setAttributes:t})}),(0,g.jsxs)("div",{id:`related-posts-${L}`,children:[(0,g.jsx)(o.InnerBlocks,{allowedBlocks:["core/heading"],template:[["core/heading",{placeholder:__("Add a headline","jetpack")}]]}),(0,g.jsx)("div",{className:r,"data-layout":w,children:(0,g.jsx)(y,{posts:a})})]})]})}else D=(0,g.jsx)(m.L,{changeStatus:S,isLoading:B,enable:T});return(0,g.jsx)("div",{..._,children:D})}},97453(e,t,n){"use strict";var r=n(94715),o=n(94375),s=n(88795),a=n(49108),i=n(7582),c=(n(88894),n(10790));(0,o.M)(s,{edit:i.A,save:()=>{const e=r.useBlockProps.save();return(0,c.jsx)("div",{...e,children:(0,c.jsx)(r.InnerBlocks.Content,{})})},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},deprecated:a.A})},80108(e,t,n){"use strict";n.d(t,{Y:()=>l});var r=n(1455),o=n.n(r),s=n(29491),a=n(47143),i=n(43656),c=n(86087);const l=e=>{const t=(0,s.usePrevious)(e),[n,r]=(0,c.useState)(!1),[l,u]=(0,c.useState)(null),{currentPostId:d,currentPostRelatedPosts:p}=(0,a.useSelect)(e=>{const t=e(i.store).getCurrentPost();return{currentPostId:t.id,currentPostRelatedPosts:t?.["jetpack-related-posts"]??[]}}),h=0===p.length&&!t&&e;return(0,c.useEffect)(()=>{h&&(r(!0),async function(e){try{return await o()({path:`/wpcom/v2/related-posts/${e}`})}catch{return[]}}(d).then(e=>{u(e)}).catch(()=>{}).then(()=>{r(!1)}))},[h,d]),(0,c.useMemo)(()=>({posts:l??p,isLoading:n}),[n,l,p])}},21144(e,t,n){"use strict";n.d(t,{M:()=>a});var r=n(1455),o=n.n(r),s=n(86087);const a=()=>{const[e,t]=(0,s.useState)(!1),[n,r]=(0,s.useState)(!1),[a,i]=(0,s.useState)(!1);(0,s.useEffect)(()=>{t(!0),async function(){try{const e=await o()({path:"/wpcom/v2/related-posts"});return e?.enabled??!1}catch{return!1}}().then(e=>{i(e),t(!1)}).catch(()=>{t(!1)})},[]);const c=(0,s.useCallback)(()=>{r(!0),async function(){try{return await o()({path:"/wpcom/v2/related-posts/enable",method:"POST"})}catch{return!1}}().then(e=>{i(e),r(!1)}).catch(()=>{r(!1)})},[]);return(0,s.useMemo)(()=>({isEnabled:a,enable:c,isFetchingStatus:e,isUpdatingStatus:n}),[a,c,e,n])}},18017(e,t,n){"use strict";n.d(t,{L:()=>h});var r=n(3924),o=n(97999),s=n(85985),a=n(56427),i=n(86087),c=n(27723),l=n(57273),u=n(88795),d=n(10790);const __=c.__,p=(0,s.sh)(u),h=({className:e,changeStatus:t,isLoading:n,enable:c})=>{const{tracks:h}=(0,s.st)();(0,i.useEffect)(()=>{h.recordEvent("jetpack_editor_related_posts_placeholder_view")},[h]);const m=(0,o.isWpcomPlatformSite)()?"https://wordpress.com/support/related-posts/":(0,r.A)("jetpack-support-related-posts");return(0,d.jsx)("div",{className:e,children:(0,d.jsxs)(a.Placeholder,{icon:p,instructions:__("You'll need to activate the Related Posts feature to use this block.","jetpack"),label:u.title,children:[(0,d.jsx)(a.Button,{disabled:n,isBusy:n,onClick:()=>(h.recordEvent("jetpack_editor_related_posts_enable"),(0,o.isSimpleSite)()||t(!0),c()),variant:"secondary",children:n?__("Activating Related Posts","jetpack"):__("Activate Related Posts","jetpack",0)}),(0,d.jsx)("div",{className:"components-placeholder__learn-more",children:(0,d.jsx)(l.N,{openInNewTab:!0,href:m,children:__("Learn more about the Related Posts feature.","jetpack")})})]})})}},64806(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(85985),o=n(94715),s=n(56427),a=n(47143),i=n(86087),c=n(27723),l=n(13022),u=n(20242),d=n(84730),p=n(10790);const __=c.__,_n=c._n,h=[{value:d.DF,label:__("Show after threshold","jetpack")},{value:d.et,label:__("Show before threshold","jetpack")}],m=(0,r.sh)(u),g=(0,a.withSelect)((e,t)=>{const{isBlockSelected:n,hasSelectedInnerBlock:r}=e("core/block-editor");return{isSelected:n(t.clientId)||r(t.clientId)}})(({isSelected:e,attributes:t,setAttributes:n})=>{const{criteria:r,threshold:a}=t,u=(0,o.useBlockProps)(),[g,f]=(0,i.useState)(!0);return(0,p.jsxs)("div",{...u,className:(0,l.A)(u.className,{"wp-block-jetpack-repeat-visitor--is-unselected":!e}),children:[(0,p.jsxs)(s.Placeholder,{icon:m,label:__("Repeat Visitor","jetpack"),className:"wp-block-jetpack-repeat-visitor-placeholder",children:[(0,p.jsx)(s.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"wp-block-jetpack-repeat-visitor-threshold",defaultValue:a,help:g?"":__("Please enter a valid number.","jetpack"),label:__("Visit count threshold","jetpack"),min:"1",onChange:e=>{/^\d+$/.test(e)&&+e>0?(n({threshold:+e}),f(!0)):f(!1)},pattern:"[0-9]",type:"number"}),(0,p.jsx)(s.RadioControl,{label:__("Visibility","jetpack"),selected:r,options:h,onChange:e=>n({criteria:e})})]}),(0,p.jsx)(s.Notice,{status:"info",isDismissible:!1,children:r===d.DF?1===a?__("This block will only appear to people who have visited this page more than once.","jetpack"):(0,c.sprintf)(/* translators: %d: the number of people. */ | |
| 107 | +_n("This block will only appear to people who have visited this page more than %d time.","This block will only appear to people who have visited this page more than %d times.",+a,"jetpack"),a):1===a?__("This block will only appear to people who are visiting this page for the first time.","jetpack"):(0,c.sprintf)(/* translators: %d: the number of people. */ | |
| 108 | +_n("This block will only appear to people who are visiting this page for %d time.","This block will only appear to people who have visited this page at most %d times.",+a,"jetpack"),a)}),(0,p.jsx)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container",children:(0,p.jsx)(o.InnerBlocks,{})})]})})},11525(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=()=>{const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)("div",{className:"wp-block-jetpack-repeat-visitor__inner-container",children:(0,o.jsx)(r.InnerBlocks.Content,{})})})};n.dn(s)},84730(e,t,n){"use strict";n.d(t,{DF:()=>r,aV:()=>s,et:()=>o});const r="after-visits",o="before-visits",s=3},14930(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(84730),s=n(10790);const a={attributes:{criteria:{type:"string",default:o.DF},threshold:{type:"number",default:o.aV}},supports:{html:!1},save:({className:e})=>(0,s.jsx)("div",{className:e,children:(0,s.jsx)(r.InnerBlocks.Content,{})})}},79238(e,t,n){"use strict";var r=n(94375),o=n(20242),s=n(64806),a=n(11525),i=n(14930);n(75646);(0,r.M)(o,{edit:s.A,save:a.A,deprecated:[i.A]})},75611(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s(){const e=(0,r.useBlockProps)();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks,{template:[["jetpack/whatsapp-button",{}]],allowedBlocks:["jetpack/whatsapp-button"]})})}},38136(e,t,n){"use strict";var r=n(94375),o=n(58180),s=n(75611),a=n(89596),i=n(92335),c=n(7651);(0,r.M)(o,{edit:s.A,save:a.A,variations:i.A},[{name:c.UU,settings:c.W0}])},89596(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);const s=()=>{const e=r.useBlockProps.save();return(0,o.jsx)("div",{...e,children:(0,o.jsx)(r.InnerBlocks.Content,{})})};n.dn(s)},57699(e,t,n){"use strict";n.d(t,{N:()=>r});const r=[{code:"US",label:"🇺🇸 +1",value:"1US"},{code:"CA",label:"🇨🇦 +1",value:"1CA"},{code:"BS",label:"🇧🇸 +1242",value:"1242BS"},{code:"BB",label:"🇧🇧 +1246",value:"1246BB"},{code:"AI",label:"🇦🇮 +1264",value:"1264AI"},{code:"AG",label:"🇦🇬 +1268",value:"1268AG"},{code:"VG",label:"🇻🇬 +1284",value:"1284VG"},{code:"VI",label:"🇻🇮 +1340",value:"1340VI"},{code:"BM",label:"🇧🇲 +1441",value:"1441BM"},{code:"GD",label:"🇬🇩 +1473",value:"1473GD"},{code:"TC",label:"🇹🇨 +1649",value:"1649TC"},{code:"MS",label:"🇲🇸 +1664",value:"1664MS"},{code:"MP",label:"🇲🇵 +1670",value:"1670MP"},{code:"GU",label:"🇬🇺 +1671",value:"1671GU"},{code:"AS",label:"🇦🇸 +1684",value:"1684AS"},{code:"LC",label:"🇱🇨 +1758",value:"1758LC"},{code:"DM",label:"🇩🇲 +1767",value:"1767DM"},{code:"VC",label:"🇻🇨 +1784",value:"1784VC"},{code:"DO",label:"🇩🇴 +1849",value:"1849DO"},{code:"TT",label:"🇹🇹 +1868",value:"1868TT"},{code:"KN",label:"🇰🇳 +1869",value:"1869KN"},{code:"JM",label:"🇯🇲 +1876",value:"1876JM"},{code:"PR",label:"🇵🇷 +1939",value:"1939PR"},{code:"EG",label:"🇪🇬 +20",value:"20EG"},{code:"MA",label:"🇲🇦 +212",value:"212MA"},{code:"DZ",label:"🇩🇿 +213",value:"213DZ"},{code:"TN",label:"🇹🇳 +216",value:"216TN"},{code:"LY",label:"🇱🇾 +218",value:"218LY"},{code:"GM",label:"🇬🇲 +220",value:"220GM"},{code:"SN",label:"🇸🇳 +221",value:"221SN"},{code:"MR",label:"🇲🇷 +222",value:"222MR"},{code:"ML",label:"🇲🇱 +223",value:"223ML"},{code:"GN",label:"🇬🇳 +224",value:"224GN"},{code:"CI",label:"🇨🇮 +225",value:"225CI"},{code:"BF",label:"🇧🇫 +226",value:"226BF"},{code:"NE",label:"🇳🇪 +227",value:"227NE"},{code:"TG",label:"🇹🇬 +228",value:"228TG"},{code:"BJ",label:"🇧🇯 +229",value:"229BJ"},{code:"MU",label:"🇲🇺 +230",value:"230MU"},{code:"LR",label:"🇱🇷 +231",value:"231LR"},{code:"SL",label:"🇸🇱 +232",value:"232SL"},{code:"GH",label:"🇬🇭 +233",value:"233GH"},{code:"NG",label:"🇳🇬 +234",value:"234NG"},{code:"TD",label:"🇹🇩 +235",value:"235TD"},{code:"CF",label:"🇨🇫 +236",value:"236CF"},{code:"CM",label:"🇨🇲 +237",value:"237CM"},{code:"CV",label:"🇨🇻 +238",value:"238CV"},{code:"ST",label:"🇸🇹 +239",value:"239ST"},{code:"GQ",label:"🇬🇶 +240",value:"240GQ"},{code:"GA",label:"🇬🇦 +241",value:"241GA"},{code:"CG",label:"🇨🇬 +242",value:"242CG"},{code:"CD",label:"🇨🇩 +243",value:"243CD"},{code:"AO",label:"🇦🇴 +244",value:"244AO"},{code:"GW",label:"🇬🇼 +245",value:"245GW"},{code:"IO",label:"🇮🇴 +246",value:"246IO"},{code:"SC",label:"🇸🇨 +248",value:"248SC"},{code:"SD",label:"🇸🇩 +249",value:"249SD"},{code:"RW",label:"🇷🇼 +250",value:"250RW"},{code:"ET",label:"🇪🇹 +251",value:"251ET"},{code:"SO",label:"🇸🇴 +252",value:"252SO"},{code:"DJ",label:"🇩🇯 +253",value:"253DJ"},{code:"KE",label:"🇰🇪 +254",value:"254KE"},{code:"TZ",label:"🇹🇿 +255",value:"255TZ"},{code:"UG",label:"🇺🇬 +256",value:"256UG"},{code:"BI",label:"🇧🇮 +257",value:"257BI"},{code:"MZ",label:"🇲🇿 +258",value:"258MZ"},{code:"ZM",label:"🇿🇲 +260",value:"260ZM"},{code:"MG",label:"🇲🇬 +261",value:"261MG"},{code:"YT",label:"🇾🇹 +262",value:"262YT"},{code:"RE",label:"🇷🇪 +262",value:"262RE"},{code:"ZW",label:"🇿🇼 +263",value:"263ZW"},{code:"NA",label:"🇳🇦 +264",value:"264NA"},{code:"MW",label:"🇲🇼 +265",value:"265MW"},{code:"LS",label:"🇱🇸 +266",value:"266LS"},{code:"BW",label:"🇧🇼 +267",value:"267BW"},{code:"SZ",label:"🇸🇿 +268",value:"268SZ"},{code:"KM",label:"🇰🇲 +269",value:"269KM"},{code:"ZA",label:"🇿🇦 +27",value:"27ZA"},{code:"SH",label:"🇸🇭 +290",value:"290SH"},{code:"ER",label:"🇪🇷 +291",value:"291ER"},{code:"AW",label:"🇦🇼 +297",value:"297AW"},{code:"FO",label:"🇫🇴 +298",value:"298FO"},{code:"GL",label:"🇬🇱 +299",value:"299GL"},{code:"GR",label:"🇬🇷 +30",value:"30GR"},{code:"NL",label:"🇳🇱 +31",value:"31NL"},{code:"BE",label:"🇧🇪 +32",value:"32BE"},{code:"FR",label:"🇫🇷 +33",value:"33FR"},{code:"ES",label:"🇪🇸 +34",value:"34ES"},{code:"KY",label:"🇰🇾 +345",value:"345KY"},{code:"GI",label:"🇬🇮 +350",value:"350GI"},{code:"PT",label:"🇵🇹 +351",value:"351PT"},{code:"LU",label:"🇱🇺 +352",value:"352LU"},{code:"IE",label:"🇮🇪 +353",value:"353IE"},{code:"IS",label:"🇮🇸 +354",value:"354IS"},{code:"AL",label:"🇦🇱 +355",value:"355AL"},{code:"MT",label:"🇲🇹 +356",value:"356MT"},{code:"CY",label:"🇨🇾 +357",value:"357CY"},{code:"FI",label:"🇫🇮 +358",value:"358FI"},{code:"BG",label:"🇧🇬 +359",value:"359BG"},{code:"HU",label:"🇭🇺 +36",value:"36HU"},{code:"LT",label:"🇱🇹 +370",value:"370LT"},{code:"LV",label:"🇱🇻 +371",value:"371LV"},{code:"EE",label:"🇪🇪 +372",value:"372EE"},{code:"MD",label:"🇲🇩 +373",value:"373MD"},{code:"AM",label:"🇦🇲 +374",value:"374AM"},{code:"BY",label:"🇧🇾 +375",value:"375BY"},{code:"AD",label:"🇦🇩 +376",value:"376AD"},{code:"MC",label:"🇲🇨 +377",value:"377MC"},{code:"SM",label:"🇸🇲 +378",value:"378SM"},{code:"VA",label:"🇻🇦 +379",value:"379VA"},{code:"UA",label:"🇺🇦 +380",value:"380UA"},{code:"RS",label:"🇷🇸 +381",value:"381RS"},{code:"ME",label:"🇲🇪 +382",value:"382ME"},{code:"XK",label:"🇽🇰 +383",value:"383XK"},{code:"HR",label:"🇭🇷 +385",value:"385HR"},{code:"SI",label:"🇸🇮 +386",value:"386SI"},{code:"BA",label:"🇧🇦 +387",value:"387BA"},{code:"MK",label:"🇲🇰 +389",value:"389MK"},{code:"IT",label:"🇮🇹 +39",value:"39IT"},{code:"RO",label:"🇷🇴 +40",value:"40RO"},{code:"CH",label:"🇨🇭 +41",value:"41CH"},{code:"CZ",label:"🇨🇿 +420",value:"420CZ"},{code:"SK",label:"🇸🇰 +421",value:"421SK"},{code:"LI",label:"🇱🇮 +423",value:"423LI"},{code:"AT",label:"🇦🇹 +43",value:"43AT"},{code:"IM",label:"🇮🇲 +44",value:"44IM"},{code:"GG",label:"🇬🇬 +44",value:"44GG"},{code:"JE",label:"🇯🇪 +44",value:"44JE"},{code:"GB",label:"🇬🇧 +44",value:"44GB"},{code:"DK",label:"🇩🇰 +45",value:"45DK"},{code:"SE",label:"🇸🇪 +46",value:"46SE"},{code:"NO",label:"🇳🇴 +47",value:"47NO"},{code:"SJ",label:"🇸🇯 +47",value:"47SJ"},{code:"PL",label:"🇵🇱 +48",value:"48PL"},{code:"DE",label:"🇩🇪 +49",value:"49DE"},{code:"FK",label:"🇫🇰 +500",value:"500FK"},{code:"GS",label:"🇬🇸 +500",value:"500GS"},{code:"BZ",label:"🇧🇿 +501",value:"501BZ"},{code:"GT",label:"🇬🇹 +502",value:"502GT"},{code:"SV",label:"🇸🇻 +503",value:"503SV"},{code:"HN",label:"🇭🇳 +504",value:"504HN"},{code:"NI",label:"🇳🇮 +505",value:"505NI"},{code:"CR",label:"🇨🇷 +506",value:"506CR"},{code:"PA",label:"🇵🇦 +507",value:"507PA"},{code:"PM",label:"🇵🇲 +508",value:"508PM"},{code:"HT",label:"🇭🇹 +509",value:"509HT"},{code:"PE",label:"🇵🇪 +51",value:"51PE"},{code:"MX",label:"🇲🇽 +52",value:"52MX"},{code:"CU",label:"🇨🇺 +53",value:"53CU"},{code:"AR",label:"🇦🇷 +54",value:"54AR"},{code:"BR",label:"🇧🇷 +55",value:"55BR"},{code:"CL",label:"🇨🇱 +56",value:"56CL"},{code:"CO",label:"🇨🇴 +57",value:"57CO"},{code:"VE",label:"🇻🇪 +58",value:"58VE"},{code:"BL",label:"🇧🇱 +590",value:"590BL"},{code:"MF",label:"🇲🇫 +590",value:"590MF"},{code:"GP",label:"🇬🇵 +590",value:"590GP"},{code:"BO",label:"🇧🇴 +591",value:"591BO"},{code:"GY",label:"🇬🇾 +592",value:"592GY"},{code:"EC",label:"🇪🇨 +593",value:"593EC"},{code:"GF",label:"🇬🇫 +594",value:"594GF"},{code:"PY",label:"🇵🇾 +595",value:"595PY"},{code:"MQ",label:"🇲🇶 +596",value:"596MQ"},{code:"SR",label:"🇸🇷 +597",value:"597SR"},{code:"UY",label:"🇺🇾 +598",value:"598UY"},{code:"MY",label:"🇲🇾 +60",value:"60MY"},{code:"CC",label:"🇨🇨 +61",value:"61CC"},{code:"AU",label:"🇦🇺 +61",value:"61AU"},{code:"CX",label:"🇨🇽 +61",value:"61CX"},{code:"ID",label:"🇮🇩 +62",value:"62ID"},{code:"PH",label:"🇵🇭 +63",value:"63PH"},{code:"NZ",label:"🇳🇿 +64",value:"64NZ"},{code:"SG",label:"🇸🇬 +65",value:"65SG"},{code:"TH",label:"🇹🇭 +66",value:"66TH"},{code:"TL",label:"🇹🇱 +670",value:"670TL"},{code:"NF",label:"🇳🇫 +672",value:"672NF"},{code:"BN",label:"🇧🇳 +673",value:"673BN"},{code:"NR",label:"🇳🇷 +674",value:"674NR"},{code:"PG",label:"🇵🇬 +675",value:"675PG"},{code:"TO",label:"🇹🇴 +676",value:"676TO"},{code:"SB",label:"🇸🇧 +677",value:"677SB"},{code:"VU",label:"🇻🇺 +678",value:"678VU"},{code:"FJ",label:"🇫🇯 +679",value:"679FJ"},{code:"PW",label:"🇵🇼 +680",value:"680PW"},{code:"WF",label:"🇼🇫 +681",value:"681WF"},{code:"CK",label:"🇨🇰 +682",value:"682CK"},{code:"NU",label:"🇳🇺 +683",value:"683NU"},{code:"WS",label:"🇼🇸 +685",value:"685WS"},{code:"KI",label:"🇰🇮 +686",value:"686KI"},{code:"NC",label:"🇳🇨 +687",value:"687NC"},{code:"TV",label:"🇹🇻 +688",value:"688TV"},{code:"PF",label:"🇵🇫 +689",value:"689PF"},{code:"TK",label:"🇹🇰 +690",value:"690TK"},{code:"FM",label:"🇫🇲 +691",value:"691FM"},{code:"MH",label:"🇲🇭 +692",value:"692MH"},{code:"RU",label:"🇷🇺 +7",value:"7RU"},{code:"KZ",label:"🇰🇿 +77",value:"77KZ"},{code:"JP",label:"🇯🇵 +81",value:"81JP"},{code:"KR",label:"🇰🇷 +82",value:"82KR"},{code:"VN",label:"🇻🇳 +84",value:"84VN"},{code:"KP",label:"🇰🇵 +850",value:"850KP"},{code:"HK",label:"🇭🇰 +852",value:"852HK"},{code:"MO",label:"🇲🇴 +853",value:"853MO"},{code:"KH",label:"🇰🇭 +855",value:"855KH"},{code:"LA",label:"🇱🇦 +856",value:"856LA"},{code:"CN",label:"🇨🇳 +86",value:"86CN"},{code:"PN",label:"🇵🇳 +872",value:"872PN"},{code:"BD",label:"🇧🇩 +880",value:"880BD"},{code:"TW",label:"🇹🇼 +886",value:"886TW"},{code:"TR",label:"🇹🇷 +90",value:"90TR"},{code:"IN",label:"🇮🇳 +91",value:"91IN"},{code:"PK",label:"🇵🇰 +92",value:"92PK"},{code:"AF",label:"🇦🇫 +93",value:"93AF"},{code:"LK",label:"🇱🇰 +94",value:"94LK"},{code:"MM",label:"🇲🇲 +95",value:"95MM"},{code:"MV",label:"🇲🇻 +960",value:"960MV"},{code:"LB",label:"🇱🇧 +961",value:"961LB"},{code:"JO",label:"🇯🇴 +962",value:"962JO"},{code:"SY",label:"🇸🇾 +963",value:"963SY"},{code:"IQ",label:"🇮🇶 +964",value:"964IQ"},{code:"KW",label:"🇰🇼 +965",value:"965KW"},{code:"SA",label:"🇸🇦 +966",value:"966SA"},{code:"YE",label:"🇾🇪 +967",value:"967YE"},{code:"OM",label:"🇴🇲 +968",value:"968OM"},{code:"PS",label:"🇵🇸 +970",value:"970PS"},{code:"AE",label:"🇦🇪 +971",value:"971AE"},{code:"IL",label:"🇮🇱 +972",value:"972IL"},{code:"BH",label:"🇧🇭 +973",value:"973BH"},{code:"QA",label:"🇶🇦 +974",value:"974QA"},{code:"BT",label:"🇧🇹 +975",value:"975BT"},{code:"MN",label:"🇲🇳 +976",value:"976MN"},{code:"NP",label:"🇳🇵 +977",value:"977NP"},{code:"IR",label:"🇮🇷 +98",value:"98IR"},{code:"TJ",label:"🇹🇯 +992",value:"992TJ"},{code:"TM",label:"🇹🇲 +993",value:"993TM"},{code:"AZ",label:"🇦🇿 +994",value:"994AZ"},{code:"GE",label:"🇬🇪 +995",value:"995GE"},{code:"KG",label:"🇰🇬 +996",value:"996KG"},{code:"UZ",label:"🇺🇿 +998",value:"998UZ"}]},92335(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(4643),s=n(49446);const __=r.__,a=[{isDefault:!0,name:"whatsapp-button",title:__("WhatsApp Button","jetpack"),description:__("Let your visitors send you messages on WhatsApp with the tap of a button.","jetpack"),icon:(0,o.K)("send-a-message",s.A),innerBlocks:[["jetpack/whatsapp-button",{}]]}]},43450(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723);const __=r.__,o={countryCode:{type:"string"},phoneNumber:{type:"string"},firstMessage:{type:"string",default:__("Hi, I got your WhatsApp information from your website.","jetpack")},buttonText:{type:"string",source:"html",selector:"a.whatsapp-block__button",default:__("Chat on WhatsApp","jetpack")},backgroundColor:{type:"string",default:"#25D366"},colorClass:{type:"string",default:"dark"},openInNewTab:{type:"boolean",default:!1}}},89263(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(48558),c=n(5573),l=n(84112),u=n(57699),d=n(10790);const __=a.__,_x=a._x,p="#25D366",h="#465B64";function m({attributes:e,setAttributes:t,context:n}){const{countryCode:a,phoneNumber:m,firstMessage:g,openInNewTab:f,backgroundColor:b}=e,[v,y]=(0,s.useState)(!0),k=()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(o.BaseControl,{__nextHasNoMarginBottom:!0,help:__("Enter the phone number you use for WhatsApp and would like to be contacted on.","jetpack"),className:"jetpack-whatsapp-button__phonenumber",children:[(0,d.jsx)(o.BaseControl.VisualLabel,{children:__("Phone Number","jetpack")}),(0,d.jsx)(o.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Country code","jetpack"),value:a,onChange:e=>t({countryCode:e}),options:u.N,hideLabelFromVision:!0}),(0,d.jsx)(o.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,placeholder:__("Your phone number…","jetpack"),onChange:e=>{t({phoneNumber:e}),0===e.length&&y(!0),e.length>2&&y((e=>!(void 0===e||e.length<1)&&RegExp(/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,"g").test(a.replace(/\D/g,"")+e))(e))},value:m}),!v&&(0,d.jsx)(l.A,{isError:!0,className:"jetpack-whatsapp-error",children:__("Please enter a valid phone number.","jetpack")})]}),"inspector"===n&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.TextareaControl,{__nextHasNoMarginBottom:!0,label:__("Default First Message","jetpack"),help:__("The default first message that will be sent by visitors when using this button.","jetpack"),value:g,onChange:e=>t({firstMessage:e})}),(0,d.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Open in new tab","jetpack"),checked:f,onChange:e=>t({openInNewTab:e}),help:__("When the button is tapped, should a new tab be opened if the visitor does not have WhatsApp installed?","jetpack")})]})]});return"toolbar"===n?(0,d.jsx)(o.ToolbarGroup,{children:(0,d.jsx)(o.Dropdown,{placement:"bottom-start",className:"jetpack-whatsapp-button-settings-selector",contentClassName:"jetpack-whatsapp-button__popover",renderToggle:({isOpen:e,onToggle:t})=>((e,t)=>(0,d.jsx)(o.Button,{className:"components-toolbar__control jetpack-contact-form__toggle",label:__("WhatsApp Button Settings","jetpack"),onClick:t,onKeyDown:n=>{e||n.keyCode!==i.DOWN||(n.preventDefault(),n.stopPropagation(),t())},icon:(0,d.jsx)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(c.Path,{d:"M10.82 12.49c.02-.16.04-.32.04-.49 0-.17-.02-.33-.04-.49l1.08-.82c.1-.07.12-.21.06-.32l-1.03-1.73c-.06-.11-.2-.15-.31-.11l-1.28.5c-.27-.2-.56-.36-.87-.49l-.2-1.33c0-.12-.11-.21-.24-.21H5.98c-.13 0-.24.09-.26.21l-.2 1.32c-.31.12-.6.3-.87.49l-1.28-.5c-.12-.05-.25 0-.31.11l-1.03 1.73c-.06.12-.03.25.07.33l1.08.82c-.02.16-.03.33-.03.49 0 .17.02.33.04.49l-1.09.83c-.1.07-.12.21-.06.32l1.03 1.73c.06.11.2.15.31.11l1.28-.5c.27.2.56.36.87.49l.2 1.32c.01.12.12.21.25.21h2.06c.13 0 .24-.09.25-.21l.2-1.32c.31-.12.6-.3.87-.49l1.28.5c.12.05.25 0 .31-.11l1.03-1.73c.06-.11.04-.24-.06-.32l-1.1-.83zM7 13.75c-.99 0-1.8-.78-1.8-1.75s.81-1.75 1.8-1.75 1.8.78 1.8 1.75S8 13.75 7 13.75zM18 1.01L8 1c-1.1 0-2 .9-2 2v3h2V5h10v14H8v-1H6v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99z"})})}))(e,t),renderContent:k})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.PanelBody,{title:__("WhatsApp Button Settings","jetpack"),initialOpen:!0,children:k()}),(0,d.jsx)(r.PanelColorSettings,{title:__("Color Settings","jetpack"),initialOpen:!1,colorSettings:[{value:b,onChange:e=>(e=>{if(t({backgroundColor:e}),void 0===e||e===p||e===h)return t({colorClass:"dark"});t({colorClass:"light"})})(e),label:__("Background Color","jetpack"),disableCustomColors:!0,colors:[{name:_x("WhatsApp Green","background color name","jetpack"),slug:"whatsapp-green",color:p},{name:_x("WhatsApp Dark","background color name","jetpack"),slug:"whatsapp-dark",color:h},{name:_x("WhatsApp Light","background color name","jetpack"),slug:"whatsapp-light",color:"#F4F4F4"},{name:_x("White","background color name","jetpack"),slug:"whatsapp-white",color:"#FFFFFF"}]}]})]})}},73649(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(13022),s=n(43450),a=n(7651),i=n(10790);const c={attributes:s.A,supports:{html:!1,reusable:!1},save:function({attributes:e,className:t}){const{countryCode:n,phoneNumber:s,firstMessage:c,colorClass:l,buttonText:u,backgroundColor:d,openInNewTab:p}=e,h=p?"_blank":"_self",m=n&&s?n.replace(/\D+/g,"")+s.replace(/\D+/g,""):"",g=(0,o.A)(t,l?"is-color-"+l:void 0,u.length?void 0:"has-no-text");return(0,i.jsx)("div",{className:g,children:(0,i.jsx)("a",{className:"whatsapp-block__button",href:(()=>{let e=a.gp+m;return""!==c&&(e+="&text="+encodeURIComponent(c)),e})(),style:{backgroundColor:d},target:h,rel:"noopener noreferrer",children:(0,i.jsx)(r.RichText.Content,{value:u})})})}}},63457(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(47143),s=n(86087),a=n(13022),i=n(57699),c=n(89263),l=(n(99323),n(10790));function u({attributes:e,setAttributes:t,className:n,clientId:u}){const{countryCode:d,buttonText:p,colorClass:h,backgroundColor:m}=e,g=(0,r.useBlockProps)({className:(0,a.A)(n,h&&`is-color-${h}`)}),{selectBlock:f}=(0,o.useDispatch)("core/block-editor"),b=(0,s.useCallback)(async()=>{t({countryCode:"1"});const e=await fetch("https://public-api.wordpress.com/geo/").then(e=>!!e.ok&&e).catch(()=>!1);if(e){const n=await e.json();i.N.forEach(e=>{e.code===n.country_short&&t({countryCode:e.value})})}},[t]);return(0,s.useEffect)(()=>{void 0===d&&(b(),f(u))},[u,d,b,f]),(0,l.jsxs)("div",{...g,children:[(0,l.jsx)(r.BlockControls,{children:(0,l.jsx)(c.A,{context:"toolbar",setAttributes:t,attributes:e})}),(0,l.jsx)(r.InspectorControls,{children:(0,l.jsx)(c.A,{context:"inspector",setAttributes:t,attributes:e})}),(0,l.jsx)(r.RichText,{placeholder:p.default,value:p,onChange:e=>t({buttonText:e}),withoutInteractiveFormatting:!0,allowedFormats:[],className:"whatsapp-block__button",tagName:"a",preserveWhiteSpace:!1,style:{backgroundColor:m,color:"dark"===h?"#fff":"#465B64"}})]})}},49446(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790);const s=(0,o.jsx)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,o.jsx)(r.G,{transform:"translate(4 4) scale(0.6667)",children:(0,o.jsx)(r.Path,{d:"M24,11.6909333 C24,18.1477333 18.7256,23.3818667 12.2181333,23.3818667 C10.1522667,23.3818667 8.21146667,22.8538667 6.52293333,21.9272 L0,24 L2.12666667,17.7274667 C1.05386667,15.9658667 0.436,13.8997333 0.436,11.6909333 C0.436,5.23413333 5.71093333,0 12.2181333,0 C18.7261333,0 24,5.23413333 24,11.6909333 Z M12.2181333,1.86186667 C6.75573333,1.86186667 2.31253333,6.2712 2.31253333,11.6909333 C2.31253333,13.8416 3.0136,15.8333333 4.19946667,17.4536 L2.96186667,21.104 L6.76853333,19.8941333 C8.33253333,20.9210667 10.2061333,21.52 12.2184,21.52 C17.68,21.52 22.124,17.1112 22.124,11.6914667 C22.124,6.27173333 17.6802667,1.86186667 12.2181333,1.86186667 Z M18.1677333,14.3834667 C18.0949333,14.2642667 17.9026667,14.1922667 17.6141333,14.0490667 C17.3250667,13.9058667 15.9048,13.2122667 15.6408,13.1170667 C15.376,13.0216 15.1829333,12.9736 14.9906667,13.2602667 C14.7984,13.5472 14.2448,14.1922667 14.076,14.3834667 C13.9074667,14.5752 13.7392,14.5992 13.4501333,14.4557333 C13.1616,14.3125333 12.2312,14.0096 11.128,13.0336 C10.2696,12.2741333 9.68986667,11.3365333 9.52133333,11.0493333 C9.35306667,10.7626667 9.50373333,10.6077333 9.648,10.4650667 C9.77813333,10.3365333 9.93706667,10.1304 10.0813333,9.9632 C10.2261333,9.79573333 10.2741333,9.67653333 10.3698667,9.48506667 C10.4666667,9.29386667 10.4184,9.12666667 10.3458667,8.98293333 C10.2738667,8.83973333 9.69573333,7.4296 9.4552,6.85573333 C9.21466667,6.2824 8.9744,6.37786667 8.8056,6.37786667 C8.63733333,6.37786667 8.44453333,6.35386667 8.252,6.35386667 C8.05946667,6.35386667 7.7464,6.4256 7.4816,6.71226667 C7.21706667,6.9992 6.4712,7.69253333 6.4712,9.1024 C6.4712,10.5125333 7.5056,11.8749333 7.6504,12.0658667 C7.79466667,12.2568 9.64773333,15.2445333 12.5837333,16.392 C15.52,17.5389333 15.52,17.1562667 16.0496,17.1082667 C16.5786667,17.0605333 17.7578667,16.4152 17.9994667,15.7464 C18.2394667,15.0765333 18.2394667,14.5029333 18.1677333,14.3834667 Z"})})})},7651(e,t,n){"use strict";n.d(t,{UU:()=>l,W0:()=>p,gp:()=>d});var r=n(27723),o=n(43450),s=n(73649),a=n(63457),i=n(49446),c=n(11186);n(67229);const __=r.__,_x=r._x,l="whatsapp-button",u=__("WhatsApp Button","jetpack"),d="https://api.whatsapp.com/send?phone=",p=(__("Chat on WhatsApp","jetpack"),__("Hi, I got your WhatsApp information from your website.","jetpack"),{apiVersion:3,title:u,description:__("Let your visitors send you a message on WhatsApp with the tap of a button.","jetpack"),icon:{src:i.A},category:"grow",parent:["jetpack/send-a-message"],keywords:[_x("whatsapp","keyword","jetpack"),_x("messenger","keyword","jetpack"),_x("contact","keyword","jetpack"),_x("support","keyword","jetpack")],supports:{html:!1,reusable:!1,align:["left","center","right"]},attributes:o.A,edit:a.A,save:c.A,example:{attributes:{countryCode:"1",phoneNumber:"555-123-4567"}},deprecated:[s.A]})},11186(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(13022),s=n(7651),a=n(10790);function i({attributes:e}){const{countryCode:t,phoneNumber:n,firstMessage:i,buttonText:c,backgroundColor:l,colorClass:u,openInNewTab:d}=e,p=r.useBlockProps.save(),h=t&&n?t.replace(/\D+/g,"")+n.replace(/\D+/g,""):"",m=(0,o.A)(p?.className,u?"is-color-"+u:void 0,c.length?void 0:"has-no-text"),g=d?"_blank":"_self";return(0,a.jsx)("div",{...p,className:m,children:(0,a.jsx)("a",{className:"whatsapp-block__button",href:(()=>{let e=s.gp+h;return""!==i&&(e+="&text="+encodeURIComponent(i)),e})(),style:{backgroundColor:l,color:"dark"===u?"#fff":"#465B64"},target:g,rel:"noopener noreferrer",children:(0,a.jsx)(r.RichText.Content,{value:c})})})}},87370(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(56427),s=n(13022),a=n(84705),i=n(55061),c=(n(57458),n(10790));const l=({attributes:e,context:t})=>{const{service:n,label:l}=e,{styleType:u,iconColorValue:d,iconBackgroundColorValue:p}=t,h=(0,i.s)(n),m=l??h,g=(0,s.A)("jetpack-sharing-button__button","style-"+u,"share-"+n),f=(0,r.useBlockProps)({className:"jetpack-sharing-button__list-item"}),b={color:d,backgroundColor:p};return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("li",{...f,children:(0,c.jsxs)(o.Button,{className:g,style:b,children:[(0,c.jsx)(a.d6,{icon:n,size:24}),(0,c.jsx)("span",{className:"jetpack-sharing-button__service-label",children:m})]})})})}},39843(e,t,n){"use strict";var r=n(94375),o=n(50233),s=n(87370),a=n(84264);(0,r.M)(o,{edit:s.A,variations:a.A})},55061(e,t,n){"use strict";n.d(t,{s:()=>s});var r=n(27723),o=n(84264);const __=r.__,s=e=>{const t=o.A.find(t=>t.name===e);return t?t.title:__("Sharing Button","jetpack")}},84264(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(27723),o=n(84705),s=n(10790);const __=r.__,a=[{name:"bluesky",attributes:{service:"bluesky",label:"Bluesky"},title:"Bluesky",icon:(0,s.jsx)(o.d6,{icon:"bluesky",size:24})},{name:"print",attributes:{service:"print", | |
| 79 | 109 | // translators: option to print the content - a verb. |
| 80 | 110 | label:__("Print","jetpack")}, |
| 81 | 111 | // translators: option to print the content - a verb labelling a button. |
| 82 | -title:__("Print","jetpack"),icon:(0,r.createElement)(s.ZP,{icon:"print",size:24})},{name:"facebook",attributes:{service:"facebook",label:"Facebook"},title:"Facebook",icon:(0,r.createElement)(s.ZP,{icon:"facebook",size:24})},{name:"linkedin",attributes:{service:"linkedin",label:"LinkedIn"},title:"LinkedIn",isDefault:!0,icon:(0,r.createElement)(s.ZP,{icon:"linkedin",size:24})},{name:"mail",attributes:{service:"mail", | |
| 112 | +title:__("Print","jetpack"),icon:(0,s.jsx)(o.d6,{icon:"print",size:24})},{name:"facebook",attributes:{service:"facebook",label:"Facebook"},title:"Facebook",icon:(0,s.jsx)(o.d6,{icon:"facebook",size:24})},{name:"linkedin",attributes:{service:"linkedin",label:"LinkedIn"},title:"LinkedIn",isDefault:!0,icon:(0,s.jsx)(o.d6,{icon:"linkedin",size:24})},{name:"mail",attributes:{service:"mail", | |
| 83 | 113 | // translators: option to share the content by email - a verb. |
| 84 | 114 | label:__("Mail","jetpack")}, |
| 85 | 115 | // translators: option to share the content by email - a verb labelling a button. |
| 86 | -title:__("Mail","jetpack"),keywords:["email","e-mail"],icon:(0,r.createElement)(s.ZP,{icon:"mail",size:24})},{name:"mastodon",attributes:{service:"mastodon",label:"Mastodon"},title:"Mastodon",icon:(0,r.createElement)(s.ZP,{icon:"mastodon",size:24})},{name:"pinterest",attributes:{service:"pinterest",label:"Pinterest"},title:"Pinterest",icon:(0,r.createElement)(s.ZP,{icon:"pinterest",size:24})},{name:"pocket",attributes:{service:"pocket",label:"Pocket"},title:"Pocket",icon:(0,r.createElement)(s.ZP,{icon:"pocket",size:24})},{name:"reddit",attributes:{service:"reddit",label:"Reddit"},title:"Reddit",icon:(0,r.createElement)(s.ZP,{icon:"reddit",size:24})},{name:"telegram",attributes:{service:"telegram",label:"Telegram"},title:"Telegram",icon:(0,r.createElement)(s.ZP,{icon:"telegram",size:24})},{name:"threads",attributes:{service:"threads",label:"Threads"},title:"Threads",icon:(0,r.createElement)(s.ZP,{icon:"threads",size:24})},{name:"tumblr",attributes:{service:"tumblr",label:"Tumblr"},title:"Tumblr",icon:(0,r.createElement)(s.ZP,{icon:"tumblr",size:24})},{name:"whatsapp",attributes:{service:"whatsapp",label:"WhatsApp"},title:"WhatsApp",icon:(0,r.createElement)(s.ZP,{icon:"whatsapp",size:24})},{name:"x",attributes:{service:"x",label:"X"},keywords:["twitter","x"],title:"X",icon:(0,r.createElement)(s.ZP,{icon:"x",size:24})},{name:"twitter",attributes:{service:"twitter",label:"Twitter"},keywords:["twitter"],title:"Twitter",icon:(0,r.createElement)(s.ZP,{icon:"twitter",size:24})},{name:"nextdoor",attributes:{service:"nextdoor",label:"Nextdoor"},title:"Nextdoor",icon:(0,r.createElement)(s.ZP,{icon:"nextdoor",size:24})},{name:"native-share",attributes:{service:"share", | |
| 116 | +title:__("Mail","jetpack"),keywords:["email","e-mail"],icon:(0,s.jsx)(o.d6,{icon:"mail",size:24})},{name:"mastodon",attributes:{service:"mastodon",label:"Mastodon"},title:"Mastodon",icon:(0,s.jsx)(o.d6,{icon:"mastodon",size:24})},{name:"pinterest",attributes:{service:"pinterest",label:"Pinterest"},title:"Pinterest",icon:(0,s.jsx)(o.d6,{icon:"pinterest",size:24})},{name:"reddit",attributes:{service:"reddit",label:"Reddit"},title:"Reddit",icon:(0,s.jsx)(o.d6,{icon:"reddit",size:24})},{name:"telegram",attributes:{service:"telegram",label:"Telegram"},title:"Telegram",icon:(0,s.jsx)(o.d6,{icon:"telegram",size:24})},{name:"threads",attributes:{service:"threads",label:"Threads"},title:"Threads",icon:(0,s.jsx)(o.d6,{icon:"threads",size:24})},{name:"tumblr",attributes:{service:"tumblr",label:"Tumblr"},title:"Tumblr",icon:(0,s.jsx)(o.d6,{icon:"tumblr",size:24})},{name:"whatsapp",attributes:{service:"whatsapp",label:"WhatsApp"},title:"WhatsApp",icon:(0,s.jsx)(o.d6,{icon:"whatsapp",size:24})},{name:"x",attributes:{service:"x",label:"X"},keywords:["twitter","x"],title:"X",icon:(0,s.jsx)(o.d6,{icon:"x",size:24})},{name:"nextdoor",attributes:{service:"nextdoor",label:"Nextdoor"},title:"Nextdoor",icon:(0,s.jsx)(o.d6,{icon:"nextdoor",size:24})},{name:"native-share",attributes:{service:"share", | |
| 87 | 117 | // translators: option to share the content - a verb. |
| 88 | 118 | label:__("Share","jetpack")}, |
| 89 | 119 | // translators: option to share the content - a verb labelling a button. |
| 90 | -title:__("Native Share","jetpack"),icon:(0,r.createElement)(s.ZP,{icon:"share",size:24}),description:__("Share with native tools on users device or copy to clipboard otherwise","jetpack")}];o.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));const i=o},4280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(55609),o=n(65736),i=n(79201);const __=o.__,l=[{name:__("Small","jetpack"),value:"has-small-icon-size"},{name:__("Normal","jetpack"),value:"has-normal-icon-size"},{name:__("Large","jetpack"),value:"has-large-icon-size"},{name:__("Huge","jetpack"),value:"has-huge-icon-size"}],c=e=>{const{attributes:t,setAttributes:n}=e,{size:o}=t,c=e=>o===e||!o&&"has-normal-icon-size"===e;return(0,r.createElement)(a.BlockControls,{group:"other"},(0,r.createElement)(s.ToolbarDropdownMenu,{label:__("Size","jetpack"),text:__("Size","jetpack"),icon:null,popoverProps:{position:"bottom right"}},(()=>(0,r.createElement)(s.MenuGroup,null,l.map((({name:e,value:t})=>(0,r.createElement)(s.MenuItem,{icon:c(t)&&i.Z,isSelected:c(t),key:t,role:"menuitemradio",onClick:()=>{n({size:t})}},e)))))))}},36155:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(55609),l=n(65736);const __=l.__,c=(0,o.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((e=>{const{clientId:t,attributes:n,iconBackgroundColor:r,iconColor:l,setAttributes:c,setIconBackgroundColor:u,setIconColor:d}=e,{iconBackgroundColorValue:p,iconColorValue:m}=n,{styleType:g}=n,A=(0,o.__experimentalUseMultipleOriginColorsAndGradients)(),h=[{value:l.color||m,onChange:e=>{d(e),c({iconColorValue:e})},label:__("Icon color","jetpack"),resetAllFilter:()=>{d(void 0),c({iconColorValue:void 0})}},{value:r.color||p,gradients:"",onChange:e=>{u(e),c({iconBackgroundColorValue:e})},onGradientChange:()=>{},label:__("Icon background","jetpack"),resetAllFilter:()=>{u(void 0),c({iconBackgroundColorValue:void 0})}}];return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(o.InspectorControls,null,(0,s.createElement)(i.PanelBody,{title:__("Settings","jetpack")},(0,s.createElement)(i.MenuItemsChoice,{choices:[/* translators: Sharing: Sharing button option label. */ | |
| 120 | +title:__("Native Share","jetpack"),icon:(0,s.jsx)(o.d6,{icon:"share",size:24}),description:__("Share the post using your phone’s built-in sharing menu, or copy the link to the clipboard on desktop.","jetpack")}];a.forEach(e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)});const i=a},33822(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(56427),s=n(27723),a=n(88901),i=n(10790);const __=s.__,c=[{name:__("Small","jetpack"),value:"has-small-icon-size"},{name:__("Normal","jetpack"),value:"has-normal-icon-size"},{name:__("Large","jetpack"),value:"has-large-icon-size"},{name:__("Huge","jetpack"),value:"has-huge-icon-size"}],l=e=>{const{attributes:t,setAttributes:n}=e,{size:s}=t,l=e=>s===e||!s&&"has-normal-icon-size"===e;return(0,i.jsx)(r.BlockControls,{group:"other",children:(0,i.jsx)(o.ToolbarDropdownMenu,{label:__("Size","jetpack"),text:__("Size","jetpack"),icon:null,popoverProps:{position:"bottom right"},children:()=>(0,i.jsx)(o.MenuGroup,{children:c.map(({name:e,value:t})=>(0,i.jsx)(o.MenuItem,{icon:l(t)&&a.A,isSelected:l(t),role:"menuitemradio",onClick:()=>{n({size:t})},children:e},t))})})})}},61726(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(56427),s=n(27723),a=n(10790);const __=s.__,i=(0,r.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})(e=>{const{clientId:t,attributes:n,iconBackgroundColor:s,iconColor:i,setAttributes:c,setIconBackgroundColor:l,setIconColor:u}=e,{iconBackgroundColorValue:d,iconColorValue:p}=n,{styleType:h}=n,m=(0,r.__experimentalUseMultipleOriginColorsAndGradients)(),g=[{value:i.color||p,onChange:e=>{u(e),c({iconColorValue:e})},label:__("Icon color","jetpack"),resetAllFilter:()=>{u(void 0),c({iconColorValue:void 0})}},{value:s.color||d,gradients:"",onChange:e=>{l(e),c({iconBackgroundColorValue:e})},onGradientChange:()=>{},label:__("Icon background","jetpack"),resetAllFilter:()=>{l(void 0),c({iconBackgroundColorValue:void 0})}}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.InspectorControls,{children:(0,a.jsx)(o.PanelBody,{title:__("Settings","jetpack"),children:(0,a.jsx)(o.MenuItemsChoice,{choices:[/* translators: Sharing: Sharing button option label. */ | |
| 91 | 121 | {value:"icon-text",label:__("Icon & Text","jetpack")},/* translators: Sharing: Sharing button option label. */ |
| 92 | 122 | {value:"icon",label:__("Icon Only","jetpack")},/* translators: Sharing: Sharing button option label. */ |
| 93 | -{value:"text",label:__("Text Only","jetpack")}],value:g,onSelect:e=>c({styleType:e})}))),(0,s.createElement)(o.InspectorControls,{group:"color"},h.map((({onChange:e,label:n,value:r,resetAllFilter:i})=>(0,s.createElement)(o.__experimentalColorGradientSettingsDropdown,a()({key:`social-links-color-${n}`,__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:r,label:n,onColorChange:e,isShownByDefault:!0,resetAllFilter:i,enableAlpha:!0,clearable:!0}],panelId:t,gradients:""},A)))),(0,s.createElement)(o.ContrastChecker,{textColor:m,backgroundColor:p,isLargeText:!1})))}))},15377:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(65736),o=n(65235),i=n.n(o),l=n(4280),c=n(36155);const __=s.__,u=["jetpack/sharing-button"];const d=function(e){const{attributes:t}=e,{size:n}=t,s=(0,r.createElement)("li",null,__("Click plus to add a Sharing Button","jetpack")),o=i()(n,"jetpack-sharing-buttons__services-list"),d=(0,a.useBlockProps)({className:o}),p=(0,a.useInnerBlocksProps)(d,{allowedBlocks:u,placeholder:s,templateLock:!1,orientation:t.layout?.orientation??"horizontal",sharingEventsAdded:!0,__experimentalAppenderTagName:"li"});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.Z,e),(0,r.createElement)(c.Z,e),(0,r.createElement)("ul",p))}},62691:(e,t,n)=>{"use strict";var r=n(31985),a=n(57352),s=n(15377),o=n(29285);(0,r.S)(a,{edit:s.Z,save:o.Z})},29285:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i);function c({attributes:e}){const{size:t}=e,n=l()(t,"jetpack-sharing-buttons__services-list"),r=o.useBlockProps.save({className:n}),i=o.useInnerBlocksProps.save(r);return(0,s.createElement)("ul",a()({},i,{id:"jetpack-sharing-serivces-list"}))}},14406:(e,t,n)=>{"use strict";var r=n(13419),a=n(44487);(0,r.o_)(a.u,a.X)},44487:(e,t,n)=>{"use strict";n.d(t,{X:()=>p,u:()=>d});var r=n(51806),a=n(55609),s=n(9818),o=n(69307),i=n(65736),l=n(92819),c=n(26788),u=n(34613);const __=i.__,d="shortlinks",p={render:()=>(0,r.createElement)(g,null)};class m extends o.Component{render(){const{shortlink:e}=this.props;return e?(0,r.createElement)(u.Z,null,(0,r.createElement)(a.PanelBody,{title:__("Shortlink","jetpack"),className:"jetpack-shortlinks__panel",initialOpen:!1},(0,r.createElement)(c.Z,{link:e}))):null}}const g=(0,s.withSelect)((e=>{const t=e("core/editor").getCurrentPost();return{shortlink:(0,l.get)(t,"jetpack_shortlink","")}}))(m)},36825:(e,t,n)=>{"use strict";n.d(t,{LC:()=>r,Rh:()=>s,a7:()=>a});const r="jp_pay_product",a="USD",s=[a,"EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"]},65093:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__;function o({setAttributes:e,postLinkText:t}){return(0,r.createElement)(a.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,r.createElement)(a.BaseControl,{label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text"},(0,r.createElement)(a.TextControl,{placeholder:__("Click here to purchase","jetpack"),onChange:t=>e({postLinkText:t}),value:t})))}},66763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(69307);const s={attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},supports:{className:!1,customClassName:!1,html:!1,reusable:!1},save:({attributes:e})=>{const{productId:t}=e;return t?(0,r.createElement)(a.RawHTML,null,`[simple-payment id="${t}"]`):null}}},21559:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(51806),a=n(43317),s=n(52175),o=n(55609),i=n(94333),l=n(9818),c=n(69307),u=n(65736),d=n(65235),p=n.n(d),m=n(92384),g=n(92819),A=n(59809),h=n(36825),E=n(39416),f=n(72802),b=n(96059);const __=u.__,_n=u._n;class C extends c.Component{state={fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1};shouldInjectPaymentAttributes=!!this.props.attributes.productId;componentDidMount(){this.injectPaymentAttributes();const{attributes:e,hasPublishAction:t,postLinkUrl:n,setAttributes:r}=this.props,{productId:a}=e;!a&&t&&this.saveProduct();const s=n&&n!==this.props.attributes.postLinkUrl,o=!this.props.attributes.postLinkText;(s||o)&&r({...s&&{postLinkUrl:n},...o&&{postLinkText:__("Click here to purchase.","jetpack")}})}componentDidUpdate(e){const{hasPublishAction:t,isSelected:n,postLinkUrl:r,setAttributes:a}=this.props;(0,g.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&t&&this.validateAttributes()?this.saveProduct():e.isSelected&&!n&&this.validateAttributes();const s=r&&r!==this.props.attributes.postLinkUrl,o=!this.props.attributes.postLinkText;(s||o)&&a({...s&&{postLinkUrl:r},...o&&{postLinkText:__("Click here to purchase.","jetpack")}})}injectPaymentAttributes(){const{simplePayment:e,featuredMedia:t}=this.props;if(!this.shouldInjectPaymentAttributes||(0,g.isEmpty)(e))return;const{attributes:n,setAttributes:r}=this.props,{content:a,currency:s,email:o,featuredMediaId:i,featuredMediaUrl:l,featuredMediaTitle:c,multiple:u,price:d,title:p}=n;r({content:(0,g.get)(e,["content","raw"],a),currency:(0,g.get)(e,["meta","spay_currency"],s),email:(0,g.get)(e,["meta","spay_email"],o),featuredMediaId:(0,g.get)(e,["featured_media"],i),featuredMediaUrl:(0,g.get)(t,"url",l),featuredMediaTitle:(0,g.get)(t,"title",c),multiple:Boolean((0,g.get)(e,["meta","spay_multiple"],Boolean(u))),price:(0,g.get)(e,["meta","spay_price"],d||void 0),title:(0,g.get)(e,["title","raw"],p)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes}toApi(){const{attributes:e}=this.props,{content:t,currency:n,email:r,featuredMediaId:a,multiple:s,price:o,productId:i,title:l}=e;return{id:i,content:t,featured_media:a,meta:{spay_currency:n,spay_email:r,spay_multiple:s,spay_price:o},status:i?"publish":"draft",title:l}}saveProduct(){if(this.state.isSavingProduct)return;const{attributes:e,setAttributes:t}=this.props,{email:n}=e,{saveEntityRecord:r}=(0,l.dispatch)("core");this.setState({isSavingProduct:!0},(()=>{r("postType",h.LC,this.toApi()).then((e=>(e&&t({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;this.setState({fieldEmailError:"spay_email"===t?(0,u.sprintf)(/* translators: placeholder is an email address. */ | |
| 94 | -__("%s is not a valid email address.","jetpack"),n):null,fieldPriceError:"spay_price"===t?__("Invalid price.","jetpack"):null})})).finally((()=>{this.setState({isSavingProduct:!1})}))}))}validateAttributes=()=>{const e=this.validatePrice(),t=this.validateTitle(),n=this.validateEmail(),r=this.validateCurrency();return e&&t&&n&&r};validateCurrency=()=>{const{currency:e}=this.props.attributes;return h.Rh.includes(e)};validatePrice=()=>{const{currency:e,price:t}=this.props.attributes,{precision:n}=(0,a.X)(e);return t&&0!==parseFloat(t)?Number.isNaN(parseFloat(t))?(this.setState({fieldPriceError:__("Invalid price","jetpack")}),!1):parseFloat(t)<0?(this.setState({fieldPriceError:__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")}),!1):(0,b.N3)(t)>n?0===n?(this.setState({fieldPriceError:__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")}),!1):(this.setState({fieldPriceError:(0,u.sprintf)(/* translators: Placeholder is a number of decimals in a number. */ | |
| 95 | -_n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",n,"jetpack"),n)}),!1):(this.state.fieldPriceError&&this.setState({fieldPriceError:null}),!0):(this.setState({fieldPriceError:__("If you’re selling something, you need a price tag. Add yours here.","jetpack")}),!1)};validateEmail=()=>{const{email:e}=this.props.attributes;return e?m.validate(e)?(this.state.fieldEmailError&&this.setState({fieldEmailError:null}),!0):(this.setState({fieldEmailError:(0,u.sprintf)(/* translators: placeholder is an email address. */ | |
| 96 | -__("%s is not a valid email address.","jetpack"),e)}),!1):(this.setState({fieldEmailError:__("We want to make sure payments reach you, so please add an email address.","jetpack")}),!1)};validateTitle=()=>{const{title:e}=this.props.attributes;return e?(this.state.fieldTitleError&&this.setState({fieldTitleError:null}),!0):(this.setState({fieldTitleError:__("Please add a brief title so that people know what they’re paying for.","jetpack")}),!1)};handleEmailChange=e=>{this.props.setAttributes({email:e}),this.setState({fieldEmailError:null})};handleContentChange=e=>{this.props.setAttributes({content:e})};handlePriceChange=e=>{e=parseFloat(e),isNaN(e)?this.props.setAttributes({price:void 0}):this.props.setAttributes({price:e}),this.setState({fieldPriceError:null})};handleCurrencyChange=e=>{this.props.setAttributes({currency:e})};handleMultipleChange=e=>{this.props.setAttributes({multiple:!!e})};handleTitleChange=e=>{this.props.setAttributes({title:e}),this.setState({fieldTitleError:null})};getCurrencyList=h.Rh.map((e=>{const{symbol:t}=(0,a.X)(e);return{value:e,label:t===e?e:`${e} ${(0,g.trimEnd)(t,".")}`}}));renderSettings=()=>(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1},(0,r.createElement)(o.BaseControl,{label:__("Purchase link text","jetpack"),help:__("Enter the text you want to display on a purchase link used as fallback when the PayPal button cannot be used (e.g. emails, AMP, etc.)","jetpack"),className:"jetpack-simple-payments__purchase-link-text"},(0,r.createElement)(o.TextControl,{placeholder:__("Click here to purchase","jetpack"),onChange:e=>this.props.setAttributes({postLinkText:e}),value:this.props.attributes.postLinkText}))));render(){const{fieldEmailError:e,fieldPriceError:t,fieldTitleError:n}=this.state,{attributes:a,instanceId:s,isSelected:i,setAttributes:l,simplePayment:c}=this.props,{content:u,currency:d,email:m,featuredMediaId:h,featuredMediaUrl:C,featuredMediaTitle:v,multiple:k,price:B,productId:y,title:w}=a,_=y&&(0,g.isEmpty)(c);if(!i&&_)return(0,r.createElement)("div",{className:"simple-payments__loading"},(0,r.createElement)(f.Z,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!i&&m&&B&&w&&!e&&!t&&!n)return(0,r.createElement)(f.Z,{"aria-busy":"false",content:u,featuredMediaUrl:C,featuredMediaTitle:v,formattedPrice:(0,b.w)(B,d),multiple:k,title:w});const I=_?o.Disabled:"div";return(0,r.createElement)(I,{className:"wp-block-jetpack-simple-payments"},this.renderSettings(),(0,r.createElement)(E.Z,{featuredMediaId:h,featuredMediaUrl:C,featuredMediaTitle:v,setAttributes:l}),(0,r.createElement)("div",null,(0,r.createElement)(o.TextControl,{"aria-describedby":`${s}-title-error`,className:p()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":n}),label:__("Item name","jetpack"),onChange:this.handleTitleChange,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:w}),(0,r.createElement)(A.Z,{id:`${s}-title-error`,isError:!0},n),(0,r.createElement)(o.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:this.handleContentChange,placeholder:__("Describe your item in a few words","jetpack"),value:u}),(0,r.createElement)("div",{className:"simple-payments__price-container"},(0,r.createElement)(o.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:d}),(0,r.createElement)(o.TextControl,{"aria-describedby":`${s}-price-error`,className:p()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":t}),label:__("Price","jetpack"),onChange:this.handlePriceChange,placeholder:(0,b.w)(0,d,!1),required:!0,step:"1",type:"number",value:B||""}),(0,r.createElement)(A.Z,{id:`${s}-price-error`,isError:!0},t)),(0,r.createElement)("div",{className:"simple-payments__field-multiple"},(0,r.createElement)(o.ToggleControl,{checked:Boolean(k),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:this.handleMultipleChange})),(0,r.createElement)(o.TextControl,{"aria-describedby":`${s}-email-${e?"error":"help"}`,className:p()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":e}),label:__("Email","jetpack"),onChange:this.handleEmailChange,placeholder:__("Email","jetpack"),required:!0,type:"text",value:m}),(0,r.createElement)(A.Z,{id:`${s}-email-error`,isError:!0},e),(0,r.createElement)(A.Z,{id:`${s}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,r.createElement)(o.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}}const v=(0,l.withSelect)(((e,t)=>{const{getEntityRecord:n,getMedia:r}=e("core"),{isSavingPost:a,getCurrentPost:s}=e("core/editor"),{productId:o,featuredMediaId:i}=t.attributes,l=o?(0,g.pick)(n("postType",h.LC,o),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,c=s();return{hasPublishAction:!!(0,g.get)(c,["_links","wp:action-publish"]),isSaving:!!a(),simplePayment:l,featuredMedia:i?r(i):null,postLinkUrl:c.link}})),k=(0,i.compose)(v,i.withInstanceId)(C)},24097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(13419),s=n(55609),o=n(69307),i=n(65736),l=n(70355),c=n(36825),u=n(21559),d=n(83080);const __=i.__,_x=i._x,p=(0,r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(s.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),m=(0,a.Wp)()||(0,a.Ug)()?"https://wordpress.com/support/pay-with-paypal/":"https://jetpack.com/support/jetpack-blocks/pay-with-paypal/",g={title:__("Pay with PayPal","jetpack"),description:(0,r.createElement)(o.Fragment,null,(0,r.createElement)("p",null,__("Lets you add credit and debit card payment buttons with minimal setup.","jetpack")),(0,r.createElement)("p",null,__("Good for collecting donations or payments for products and services.","jetpack")),(0,r.createElement)(s.ExternalLink,{href:m},__("Support reference","jetpack"))),icon:{src:p,foreground:(0,l.m)()},category:"monetize",keywords:[_x("buy","block search term","jetpack"),_x("commerce","block search term","jetpack"),_x("products","block search term","jetpack"),_x("purchase","block search term","jetpack"),_x("sell","block search term","jetpack"),_x("shop","block search term","jetpack"),_x("simple","block search term","jetpack"),_x("payments","block search term","jetpack"),"PayPal"],attributes:{currency:{type:"string",default:c.a7},content:{type:"string",source:"html",selector:".jetpack-simple-payments-description p",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"src",default:null},featuredMediaTitle:{type:"string",source:"attribute",selector:".jetpack-simple-payments-image img",attribute:"alt",default:null},multiple:{type:"boolean",default:!1},postLinkUrl:{type:"string",source:"attribute",selector:".jetpack-simple-payments-purchase",attribute:"href"},postLinkText:{type:"string",source:"html",selector:".jetpack-simple-payments-purchase",default:__("Click here to purchase.","jetpack")},price:{type:"number"},productId:{type:"number"},title:{type:"string",source:"html",selector:".jetpack-simple-payments-title p",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:({named:{id:e}})=>{if(!e)return;const t=parseInt(e,10);return t||void 0}}}}]},edit:u.Z,save:d.Z,supports:{className:!1,customClassName:!1,html:!1,reusable:!1}}},83080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(96059);function s({attributes:e}){const{content:t,currency:n,featuredMediaUrl:s,featuredMediaTitle:o,postLinkUrl:i,postLinkText:l,price:c,productId:u,title:d}=e;return u?(0,r.createElement)("div",{className:`jetpack-simple-payments-wrapper jetpack-simple-payments-${u}`},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},s&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("div",{className:"jetpack-simple-payments-image"},(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:s,alt:o})))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,d)),(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,t)),(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,(0,a.w)(c,n))),(0,r.createElement)("a",{className:"jetpack-simple-payments-purchase",href:i,target:"_blank",rel:"noopener noreferrer"},l)))):null}},36239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>B});var r=n(51806),a=n(43317),s=n(52175),o=n(55609),i=n(94333),l=n(9818),c=n(69307),u=n(65736),d=n(6551),p=n(65235),m=n.n(p),g=n(92384),A=n(92819),h=n(59809),E=n(36825),f=n(65093),b=n(39416),C=n(72802),v=n(96059);const __=u.__,_n=u._n,k=(0,l.withSelect)(((e,t)=>{const{getEntityRecord:n,getMedia:r}=e("core"),{getCurrentPost:a}=e("core/editor"),{__experimentalGetDirtyEntityRecords:s,isSavingEntityRecord:o}=e("core"),i=s,{productId:l,featuredMediaId:c}=t.attributes,u=l?(0,A.pick)(n("postType",E.LC,l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0,d=a();return{block:e("core/block-editor").getBlock(t.clientId),hasPublishAction:!!(0,A.get)(d,["_links","wp:action-publish"]),isSaving:i().some((e=>o(e.kind,e.name,e.key))),simplePayment:u,featuredMedia:c?r(c):null,postLinkUrl:d?.guid?.raw,isPostEditor:Object.keys(a()).length>0}})),B=(0,i.compose)(k,i.withInstanceId)((({attributes:e,instanceId:t,isSelected:n,setAttributes:i,simplePayment:p,featuredMedia:k,hasPublishAction:B,postLinkUrl:y,isPostEditor:w,block:_,isSaving:I})=>{const{content:j,currency:x,email:S,featuredMediaId:Q,featuredMediaUrl:N,featuredMediaTitle:P,multiple:T,price:R,productId:Z,title:L}=e,M=Z&&(0,A.isEmpty)(p),D=(0,s.useBlockProps)(),[F,z]=(0,c.useState)(null),[O,U]=(0,c.useState)(null),[H,V]=(0,c.useState)(null),[q,G]=(0,c.useState)(!1),$=(0,c.useRef)(!!Z),W=()=>{if(q)return;const{saveEntityRecord:e}=(0,l.dispatch)("core");G(!0),e("postType",E.LC,{id:Z,content:j,featured_media:Q,meta:{spay_currency:x,spay_email:S,spay_multiple:T,spay_price:R},status:Z?"publish":"draft",title:L}).then((e=>(e&&i({productId:e.id}),e))).catch((e=>{if(!e||!e.data)return;const{data:{key:t}}=e;z("spay_email"===t?(0,u.sprintf)(/* translators: Placeholder is an email address. */ | |
| 97 | -__("%s is not a valid email address.","jetpack"),S):null),U("spay_price"===t?__("Invalid price.","jetpack"):null)})).finally((()=>{G(!1)}))},J=()=>{const e=K(),t=ee(),n=X(),r=Y();return e&&t&&n&&r},Y=()=>E.Rh.includes(x),K=()=>{const{precision:e}=(0,a.X)(x);return R&&0!==parseFloat(R)?Number.isNaN(parseFloat(R))?(U(__("Invalid price","jetpack")),!1):parseFloat(R)<0?(U(__("Your price is negative — enter a positive number so people can pay the right amount.","jetpack")),!1):(0,v.N3)(R)>e?0===e?(U(__("We know every penny counts, but prices in this currency can’t contain decimal values.","jetpack")),!1):(U((0,u.sprintf)(/* translators: Placeholder is a number of decimals in a number. */ | |
| 98 | -_n("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",e,"jetpack"),e)),!1):(O&&U(null),!0):(U(__("If you’re selling something, you need a price tag. Add yours here.","jetpack")),!1)},X=()=>S?g.validate(S)?(F&&z(null),!0):(z((0,u.sprintf)(/* translators: Placeholder is an email address. */ | |
| 99 | -__("%s is not a valid email address.","jetpack"),S)),!1):(z(__("We want to make sure payments reach you, so please add an email address.","jetpack")),!1),ee=()=>L?(H&&V(null),!0):(V(__("Please add a brief title so that people know what they’re paying for.","jetpack")),!1),te=e=>{i({email:e}),z(null)},ne=e=>{i({content:e})},re=e=>{const t=parseFloat(e);isNaN(t)?i({price:void 0}):i({price:t}),U(null)},ae=e=>{i({currency:e})},se=e=>{i({multiple:!!e})},oe=e=>{i({title:e}),V(null)},ie=E.Rh.map((e=>{const{symbol:t}=(0,a.X)(e);return{value:e,label:t===e?e:`${e} ${(0,A.trimEnd)(t,".")}`}}));let le;if((0,c.useEffect)((()=>{(!Z&&B||!w)&&W(),window.wp?.customize?.bind("change",(e=>{let t;const n=e.id.match(/^widget_(.+)(?:\[(\d+)\])$/);if(n){t=`${n[1]}-${parseInt(n[2],10)}`}else t=e.id;t===(0,d.getWidgetIdFromBlock)(_)&&J()&&W()}))}),[]),(0,c.useEffect)((()=>{p&&$.current&&!(0,A.isEmpty)(p)&&(i({content:(0,A.get)(p,["content","raw"],j),currency:(0,A.get)(p,["meta","spay_currency"],x),email:(0,A.get)(p,["meta","spay_email"],S),featuredMediaId:(0,A.get)(p,["featured_media"],Q),featuredMediaUrl:(0,A.get)(k,"url",N),featuredMediaTitle:(0,A.get)(k,"title",P),multiple:Boolean((0,A.get)(p,["meta","spay_multiple"],Boolean(T))),price:(0,A.get)(p,["meta","spay_price"],R||void 0),title:(0,A.get)(p,["title","raw"],L)}),$.current=!1)}),[p]),(0,c.useEffect)((()=>{I&&(B||!w)&&J()?W():n||J()}),[I,n]),(0,c.useEffect)((()=>{const t=y&&y!==e.postLinkUrl,n=!e.postLinkText;(t||n)&&i({...t&&{postLinkUrl:y},...n&&{postLinkText:__("Click here to purchase.","jetpack")}})}),[y,e]),!n&&M)le=(0,r.createElement)("div",{className:"simple-payments__loading"},(0,r.createElement)(C.Z,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));else if(n||!S||!R||!L||F||O||H){const n=M?o.Disabled:"div";le=(0,r.createElement)(n,{className:"simple-payments__wrapper"},(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(f.G,{postLinkText:e.postLinkText,setAttributes:i})),(0,r.createElement)(b.Z,{featuredMediaId:Q,featuredMediaUrl:N,featuredMediaTitle:P,setAttributes:i}),(0,r.createElement)("div",null,(0,r.createElement)(o.TextControl,{"aria-describedby":`${t}-title-error`,className:m()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":H}),label:__("Item name","jetpack"),onChange:oe,placeholder:__("Item name","jetpack"),required:!0,type:"text",value:L}),(0,r.createElement)(h.Z,{id:`${t}-title-error`,isError:!0},H),(0,r.createElement)(o.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:__("Describe your item in a few words","jetpack"),onChange:ne,placeholder:__("Describe your item in a few words","jetpack"),"aria-label":__("Describe your item in a few words","jetpack"),value:j}),(0,r.createElement)("div",{className:"simple-payments__price-container"},(0,r.createElement)(o.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:__("Currency","jetpack"),onChange:ae,options:ie,value:x}),(0,r.createElement)(o.TextControl,{"aria-describedby":`${t}-price-error`,className:m()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":O}),label:__("Price","jetpack"),onChange:re,placeholder:(0,v.T4)(0,x,!1),required:!0,step:"1",type:"number",value:R||""}),(0,r.createElement)(h.Z,{id:`${t}-price-error`,isError:!0},O)),(0,r.createElement)("div",{className:"simple-payments__field-multiple"},(0,r.createElement)(o.ToggleControl,{checked:Boolean(T),label:__("Allow people to buy more than one item at a time","jetpack"),onChange:se})),(0,r.createElement)(o.TextControl,{"aria-describedby":`${t}-email-${F?"error":"help"}`,className:m()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":F}),label:__("Email","jetpack"),onChange:te,placeholder:__("Email","jetpack"),required:!0,type:"text",value:S}),(0,r.createElement)(h.Z,{id:`${t}-email-error`,isError:!0},F),(0,r.createElement)(h.Z,{id:`${t}-email-help`},__("Enter the email address associated with your PayPal account. Don’t have an account?","jetpack")+" ",(0,r.createElement)(o.ExternalLink,{href:"https://www.paypal.com/"},__("Create one on PayPal","jetpack")))))}else le=(0,r.createElement)(C.Z,{"aria-busy":"false",content:j,featuredMediaUrl:N,featuredMediaTitle:P,formattedPrice:(0,v.T4)(R,x),multiple:T,title:L});return(0,r.createElement)("div",D,le)}))},36227:(e,t,n)=>{"use strict";var r=n(31985),a=n(70955),s=n(66763),o=n(24097),i=n(36239),l=n(16376);(0,r.S)(a,{edit:i.Z,save:l.Z,transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:({named:{id:e}})=>{if(!e)return;const t=parseInt(e,10);return t||void 0}}}}]},deprecated:[s.Z,o.Z]})},39416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(92819),c=n(94545);const __=i.__,u=e=>t=>e({featuredMediaId:(0,l.get)(t,"id",0),featuredMediaUrl:(0,l.get)(t,"url",null),featuredMediaTitle:(0,l.get)(t,"title",null)}),d=({featuredMediaId:e,featuredMediaUrl:t,featuredMediaTitle:n,setAttributes:i})=>e?(0,r.createElement)("div",null,(0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{onSelect:u(i),allowedTypes:["image"],value:e,render:({open:e})=>(0,r.createElement)(c.Z,{label:__("Edit Image","jetpack"),onClick:e})}))),(0,r.createElement)(s.ToolbarButton,{icon:"trash",title:__("Remove Image","jetpack"),onClick:()=>i({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}))),(0,r.createElement)("figure",null,(0,r.createElement)("img",{src:t,alt:n})))):(0,r.createElement)(a.MediaPlaceholder,{icon:(0,r.createElement)(a.BlockIcon,{icon:"format-image"}),labels:{title:__("Product Image","jetpack")},accept:"image/*",allowedTypes:["image"],onSelect:u(i)})},72802:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(23879),o=n(22323);const __=a.__,i=({title:e="",content:t="",formattedPrice:n="",multiple:a=!1,featuredMediaUrl:i=null,featuredMediaTitle:l=null})=>(0,r.createElement)("div",{className:"jetpack-simple-payments-wrapper"},(0,r.createElement)("div",{className:"jetpack-simple-payments-product"},i&&(0,r.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,r.createElement)("figure",{className:"jetpack-simple-payments-image"},(0,r.createElement)("img",{src:i,alt:l}))),(0,r.createElement)("div",{className:"jetpack-simple-payments-details"},e&&(0,r.createElement)("div",{className:"jetpack-simple-payments-title"},(0,r.createElement)("p",null,e)),t&&(0,r.createElement)("div",{className:"jetpack-simple-payments-description"},(0,r.createElement)("p",null,t)),n&&(0,r.createElement)("div",{className:"jetpack-simple-payments-price"},(0,r.createElement)("p",null,n)),(0,r.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},a&&(0,r.createElement)("div",{className:"jetpack-simple-payments-items"},(0,r.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),(0,r.createElement)("div",{className:"jetpack-simple-payments-button"},(0,r.createElement)("img",{alt:__("Pay with PayPal","jetpack"),src:o,srcSet:`${s} 2x`}))))))},16376:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i),c=n(96059);function u({attributes:e}){const t=o.useBlockProps.save(),{content:n,currency:r,featuredMediaUrl:i,featuredMediaTitle:u,postLinkUrl:d,postLinkText:p,price:m,productId:g,title:A}=e;return g?(0,s.createElement)("div",a()({},t,{className:l()(t.className,`jetpack-simple-payments-wrapper jetpack-simple-payments-${g}`)}),(0,s.createElement)("div",{className:"jetpack-simple-payments-product"},i&&(0,s.createElement)("div",{className:"jetpack-simple-payments-product-image"},(0,s.createElement)("div",{className:"jetpack-simple-payments-image"},(0,s.createElement)("figure",null,(0,s.createElement)("img",{src:i,alt:u})))),(0,s.createElement)("div",{className:"jetpack-simple-payments-details"},(0,s.createElement)("div",{className:"jetpack-simple-payments-title"},(0,s.createElement)("p",null,A)),(0,s.createElement)("div",{className:"jetpack-simple-payments-description"},(0,s.createElement)("p",null,n)),(0,s.createElement)("div",{className:"jetpack-simple-payments-price"},(0,s.createElement)("p",null,(0,c.T4)(m,r))),(0,s.createElement)("a",{className:"jetpack-simple-payments-purchase",href:d,target:"_blank",rel:"noopener noreferrer"},p)))):null}},96059:(e,t,n)=>{"use strict";n.d(t,{N3:()=>s,T4:()=>l,w:()=>i});var r=n(43317),a=n(92819);n(36825);const s=e=>{const t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},o=(e="en-US")=>{const t=window?.window?.navigator;return t?.languages?.length?t.languages[0]:t?.userLanguage??t?.language??t?.browserLanguage??e},i=(e=0,t,n=!0)=>{const{precision:s,symbol:o}=(0,r.X)(t),i=e.toFixed(s);return n?`${i} ${(0,a.trimEnd)(o,".")}`:i},l=(e=0,t,n=!0)=>{if(!window.Intl||"function"!=typeof Intl.NumberFormat)return i(e,t,n);const r=[window?.Jetpack_Editor_Initial_State?.siteLocale??"en-US",o(),"en-US"];let a,s={};for(a of(n&&(s={style:"currency",currency:t}),r))try{return Intl.NumberFormat(a,s).format(e)}catch{continue}return i(e,t,n)}},20288:(e,t,n)=>{"use strict";n.d(t,{G:()=>c,J:()=>u});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(92819);const __=i.__,_x=i._x;function c({attributes:{autoplay:e,delay:t,effect:n,images:a,sizeSlug:i},imageSizeOptions:c,onChangeImageSize:u,setAttributes:d}){const p="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,m=[{label:_x("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:_x("Fade","Slideshow transition effect","jetpack"),value:"fade"}];return(0,r.createElement)(o.Fragment,null,(0,r.createElement)(s.PanelBody,{title:__("Autoplay","jetpack")},(0,r.createElement)(s.ToggleControl,{label:__("Autoplay","jetpack"),help:__("Autoplay between slides","jetpack"),checked:e,onChange:e=>{d({autoplay:e})}}),e&&(0,r.createElement)(s.RangeControl,{label:__("Delay between transitions (in seconds)","jetpack"),value:t,onChange:e=>{d({delay:e})},min:1,max:5}),e&&p&&(0,r.createElement)("span",null,__("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack"))),(0,r.createElement)(s.PanelBody,{title:__("Effects","jetpack")},(0,r.createElement)(s.SelectControl,{label:__("Transition","jetpack"),value:n,onChange:e=>{d({effect:e})},options:m})),!(0,l.isEmpty)(a)&&!(0,l.isEmpty)(c)&&(0,r.createElement)(s.PanelBody,{title:__("Image Settings","jetpack")},(0,r.createElement)(s.SelectControl,{label:__("Size","jetpack"),value:i,options:c,onChange:e=>u(e)})))}function u({allowedMediaTypes:e,attributes:{images:t},onSelectImages:n}){return(0,r.createElement)(o.Fragment,null,!!t.length&&(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{onSelect:n,allowedTypes:e,multiple:!0,gallery:!0,value:t.map((e=>e.id)),render:({open:e})=>(0,r.createElement)(s.Button,{label:__("Edit Slideshow","jetpack"),onClick:e},__("Edit","jetpack"))})))))}},30847:(e,t,n)=>{"use strict";async function r(e=".swiper-container",t={},r={}){const a={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(r||{}).map((([e,t])=>[e,function(){t(this)}])))},[{default:s}]=await Promise.all([Promise.all([n.e(958),n.e(390)]).then(n.t.bind(n,59101,23)),Promise.all([n.e(958),n.e(390)]).then(n.bind(n,89701))]);return new s(e,{...a,...t})}n.d(t,{Z:()=>r})},51740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(38161);const a=[n(34912),r]},60264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}}},23433:(e,t,n)=>{"use strict";async function r(e=".swiper-container",t={},r={}){const a={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(r||{}).map((([e,t])=>[e,function(){t(this)}])))},[{default:s}]=await Promise.all([Promise.all([n.e(958),n.e(390)]).then(n.t.bind(n,59101,23)),Promise.all([n.e(958),n.e(390)]).then(n.bind(n,89701))]);return new s(e,{...a,...t})}n.d(t,{Z:()=>r})},38161:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>s.Z,save:()=>i,supports:()=>o.Z});var r=n(51806),a=n(93467),s=n(60264),o=n(34718);const i=({attributes:{align:e,autoplay:t,delay:n,effect:s,images:o},className:i})=>(0,r.createElement)(a.Z,{align:e,autoplay:t,className:i,delay:n,effect:s,images:o})},89988:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(65736);const __=r.__;function a(e,t,n){let a="";if(n<=5)for(let e=1;e<=n;e++){a+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,r.sprintf)(/* translators: placeholder is the the video number to navigate to */ | |
| 100 | -__("Go to slide %s","jetpack"),e)+'"></button>'}else a+=`<div class="swiper-pagination-simple">${t} / ${n}</div>`;return a}},93467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(51806),a=n(11313),s=n(52175),o=n(55609),i=n(69307),l=n(65736),c=n(65235),u=n.n(c),d=n(92819),p=n(6209),m=n(23433),g=n(89988),A=n(86158);const __=l.__;class h extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:a,images:s,onError:o}=this.props;if(t===e.align&&(0,d.isEqual)(s,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||n!==e.autoplay||r!==e.delay||s!==e.images){let t;t=this.swiperIndex?s.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{o(__("The Swiper library could not be loaded.","jetpack"))}))}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new p.Z((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,A.$m)(e),e.update()}))})),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:n,effect:i,images:l}=this.props;return(0,r.createElement)("div",{className:t,"data-autoplay":e||null,"data-delay":e?n:null,"data-effect":i},(0,r.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,r.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},l.map((({alt:e,caption:t,id:n,url:i})=>(0,r.createElement)("li",{className:u()("wp-block-jetpack-slideshow_slide","swiper-slide",(0,a.isBlobURL)(i)&&"is-transient"),key:n||i},(0,r.createElement)("figure",null,(0,r.createElement)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,src:i}),(0,a.isBlobURL)(i)&&(0,r.createElement)(o.Spinner,null),t&&(0,r.createElement)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})))))),(0,r.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,r.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,r.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,r.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,m.Z)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:g.D}},{init:A.UA,imagesReady:A.$m,paginationRender:A.Wj,transitionEnd:A.HV})}const E=h},34718:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={html:!1,align:["center","wide","full"]}},86158:(e,t,n)=>{"use strict";n.d(t,{$m:()=>c,HV:()=>u,UA:()=>l,Wj:()=>d});var r=n(81975);const a=16/9,s=.8,o=600,i="wp-block-jetpack-slideshow_autoplay-paused";function l(e){c(e),u(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,a),1),i="undefined"!=typeof window?window.innerHeight*s:o,l=Math.min(e.width/r,i),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach(((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(a.alt))}(e)}function d(e){(e.pagination.bullets||[]).forEach((t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},96876:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}}},24780:(e,t,n)=>{"use strict";async function r(e=".swiper-container",t={},r={}){const a={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(r||{}).map((([e,t])=>[e,function(){t(this)}])))},[{default:s}]=await Promise.all([Promise.all([n.e(958),n.e(390)]).then(n.t.bind(n,59101,23)),Promise.all([n.e(958),n.e(390)]).then(n.bind(n,89701))]);return new s(e,{...a,...t})}n.d(t,{Z:()=>r})},34912:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>o.Z,save:()=>l,supports:()=>i.Z});var r=n(51806),a=n(52175),s=n(8409),o=n(96876),i=n(47053);const l=({attributes:{align:e,autoplay:t,delay:n,effect:o,images:i}})=>{const l=a.useBlockProps.save();return(0,r.createElement)("div",l,(0,r.createElement)(s.Z,{align:e,autoplay:t,delay:n,effect:o,images:i}))}},84172:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(65736);const __=r.__;function a(e,t,n){let a="";if(n<=5)for(let e=1;e<=n;e++){a+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,r.sprintf)(/* translators: placeholder is the the video number to navigate to */ | |
| 101 | -__("Go to slide %s","jetpack"),e)+'"></button>'}else a+=`<div class="swiper-pagination-simple">${t} / ${n}</div>`;return a}},8409:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(51806),a=n(11313),s=n(52175),o=n(55609),i=n(69307),l=n(65736),c=n(65235),u=n.n(c),d=n(92819),p=n(6209),m=n(24780),g=n(84172),A=n(87678);const __=l.__;class h extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:a,images:s,onError:o}=this.props;if(t===e.align&&(0,d.isEqual)(s,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||n!==e.autoplay||r!==e.delay||s!==e.images){let t;t=this.swiperIndex?s.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{o(__("The Swiper library could not be loaded.","jetpack"))}))}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new p.Z((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,A.$m)(e),e.update()}))})),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,delay:t,effect:n,images:i}=this.props;return(0,r.createElement)("div",{"data-autoplay":e||null,"data-delay":e?t:null,"data-effect":n},(0,r.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,r.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},i.map((({alt:e,caption:t,id:n,url:i})=>(0,r.createElement)("li",{className:u()("wp-block-jetpack-slideshow_slide","swiper-slide",(0,a.isBlobURL)(i)&&"is-transient"),key:n||i},(0,r.createElement)("figure",null,(0,r.createElement)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,src:i}),(0,a.isBlobURL)(i)&&(0,r.createElement)(o.Spinner,null),t&&(0,r.createElement)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})))))),(0,r.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,r.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,r.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,r.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,m.Z)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:g.D}},{init:A.UA,imagesReady:A.$m,paginationRender:A.Wj,transitionEnd:A.HV})}const E=h},47053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={html:!1,align:["center","wide","full"]}},87678:(e,t,n)=>{"use strict";n.d(t,{$m:()=>c,HV:()=>u,UA:()=>l,Wj:()=>d});var r=n(81975);const a=16/9,s=.8,o=600,i="wp-block-jetpack-slideshow_autoplay-paused";function l(e){c(e),u(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,a),1),i="undefined"!=typeof window?window.innerHeight*s:o,l=Math.min(e.width/r,i),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach(((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(a.alt))}(e)}function d(e){(e.pagination.bullets||[]).forEach((t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},21233:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>b});var r=n(51806),a=n(13419),s=n(11313),o=n(52175),i=n(55609),l=n(94333),c=n(9818),u=n(12238),d=n(69307),p=n(65736),m=n(92819),g=n(26523),A=n(20288),h=n(19486);const __=p.__,E=["image"],f=(e,t)=>{const n=(0,m.pick)(e,["alt","id","link","caption"]);return n.url=(0,m.get)(e,["sizes",t,"url"])||(0,m.get)(e,["media_details","sizes",t,"source_url"])||e.url,n},b=(0,l.compose)((0,c.withSelect)(((e,t)=>({imageSizes:e("core/editor").getEditorSettings().imageSizes,resizedImages:t.attributes.ids.reduce(((t,n)=>{const r=e("core").getMedia(n);return[...t,{id:n,sizes:(0,m.get)(r,["media_details","sizes"])}]}),[])}))),(0,c.withDispatch)((e=>{const{lockPostSaving:t,unlockPostSaving:n}=e("core/editor");return{lockPostSaving:t,unlockPostSaving:n}})),i.withNotices)((({attributes:e,setAttributes:t,className:n,isSelected:l,noticeOperations:c,noticeUI:p,lockPostSaving:b,unlockPostSaving:C,imageSizes:v,resizedImages:k})=>{const{align:B,autoplay:y,delay:w,effect:_,images:I,sizeSlug:j,ids:x}=e,S=(0,o.useBlockProps)({className:n}),Q=e=>{t({images:e,ids:e.map((({id:e})=>parseInt(e,10)))})},N=e=>Q(e.map((e=>f(e,j)))),P=e=>{const t="slideshowBlockLock";b(t),(0,u.mediaUpload)({allowedTypes:E,filesList:e,onFileChange:e=>{const n=e.map((e=>f(e,j)));Q([...I||[],...n]),n.every((e=>(0,s.isBlobURL)(e.url)))||C(t)},onError:c.createErrorNotice})},T=e=>P(e.target.files);let R;return(0,d.useEffect)((()=>{j||t({sizeSlug:x.length?"full":"large"})}),[]),R=0===I.length?(0,r.createElement)(o.MediaPlaceholder,{icon:(0,a.dM)(g),labels:{title:__("Slideshow","jetpack"),instructions:__("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:N,accept:"image/*",allowedTypes:E,multiple:!0,notices:p,onError:c.createErrorNotice}):(0,r.createElement)(r.Fragment,null,p,(0,r.createElement)(h.Z,{align:B,autoplay:y,delay:w,effect:_,images:I,onError:c.createErrorNotice}),(0,r.createElement)(i.DropZone,{onFilesDrop:P}),l&&(0,r.createElement)("div",{className:"wp-block-jetpack-slideshow__add-item"},(0,r.createElement)(i.FormFileUpload,{multiple:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:T,accept:"image/*",icon:"insert"},__("Upload an image","jetpack")))),(0,r.createElement)("div",S,(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(A.G,{attributes:e,imageSizeOptions:(0,m.map)(v,(({name:e,slug:t})=>({value:t,label:e}))),onChangeImageSize:e=>{const n=I.map((t=>{const n=k.find((({id:e})=>parseInt(e,10)===parseInt(t.id,10))),r=(0,m.get)(n,["sizes",e,"source_url"]);return{...t,...r&&{url:r}}}));Q(n),t({sizeSlug:e})},setAttributes:t})),(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(A.J,{allowedMediaTypes:E,attributes:e,onSelectImages:N})),R)}))},17013:(e,t,n)=>{"use strict";var r=n(31985),a=n(26523),s=n(51740),o=n(21233),i=n(67240),l=n(65784),c=n(6425),u=n(85983),d=n(81504);(0,r.S)(a,{edit:o.ZP,save:i.Z,transforms:d.Z,example:{attributes:{align:"center",autoplay:!0,ids:[22,23],images:[{alt:"",caption:"",id:22,url:l},{alt:"",caption:"",id:23,url:c},{alt:"",caption:"",id:23,url:u}],effect:"slide"}},deprecated:s.Z})},85575:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(65736);const __=r.__;function a(e,t,n){let a="";if(n<=5)for(let e=1;e<=n;e++){a+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,r.sprintf)(/* translators: placeholder is the the video number to navigate to */ | |
| 102 | -__("Go to slide %s","jetpack"),e)+'"></button>'}else a+=`<div class="swiper-pagination-simple">${t} / ${n}</div>`;return a}},67240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(19486);const o=({attributes:{align:e,autoplay:t,delay:n,effect:o,images:i},className:l})=>{const c=a.useBlockProps.save({className:l});return(0,r.createElement)(s.Z,{align:e,autoplay:t,className:c.className,delay:n,effect:o,images:i})}},19486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(51806),a=n(11313),s=n(52175),o=n(55609),i=n(69307),l=n(65736),c=n(65235),u=n.n(c),d=n(92819),p=n(6209),m=n(30847),g=n(85575),A=n(17766);const __=l.__;class h extends i.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,i.createRef)(),this.btnNextRef=(0,i.createRef)(),this.btnPrevRef=(0,i.createRef)(),this.paginationRef=(0,i.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{e(__("The Swiper library could not be loaded.","jetpack"))}))}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:a,images:s,onError:o}=this.props;if(t===e.align&&(0,d.isEqual)(s,e.images)||this.swiperInstance&&this.swiperInstance.update(),a!==e.effect||n!==e.autoplay||r!==e.delay||s!==e.images){let t;t=this.swiperIndex?s.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then((e=>{this.swiperInstance=e,this.initializeResizeObserver(e)})).catch((()=>{o(__("The Swiper library could not be loaded.","jetpack"))}))}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new p.Z((()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame((()=>{(0,A.$m)(e),e.update()}))})),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:n,effect:i,images:l}=this.props;return(0,r.createElement)("div",{className:t,"data-autoplay":e||null,"data-delay":e?n:null,"data-effect":i},(0,r.createElement)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef},(0,r.createElement)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper"},l.map((({alt:e,caption:t,id:n,url:i})=>(0,r.createElement)("li",{className:u()("wp-block-jetpack-slideshow_slide","swiper-slide",(0,a.isBlobURL)(i)&&"is-transient"),key:n||i},(0,r.createElement)("figure",null,(0,r.createElement)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,src:i}),(0,a.isBlobURL)(i)&&(0,r.createElement)(o.Spinner,null),t&&(0,r.createElement)(s.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})))))),(0,r.createElement)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,r.createElement)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,r.createElement)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,r.createElement)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})))}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,m.Z)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:g.D}},{init:A.UA,imagesReady:A.$m,paginationRender:A.Wj,transitionEnd:A.HV})}const E=h},17766:(e,t,n)=>{"use strict";n.d(t,{$m:()=>c,HV:()=>u,UA:()=>l,Wj:()=>d});var r=n(81975);const a=16/9,s=.8,o=600,i="wp-block-jetpack-slideshow_autoplay-paused";function l(e){c(e),u(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(i)?(e.el.classList.remove(i),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(i),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function c(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,a),1),i="undefined"!=typeof window?window.innerHeight*s:o,l=Math.min(e.width/r,i),c=`${Math.floor(l)}px`,u=`${Math.floor(l/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=u,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=u}function u(e){(e.slides||[]).forEach(((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],a=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(a.alt))}(e)}function d(e){(e.pagination.bullets||[]).forEach((t=>{t.addEventListener("click",(()=>{const t=e.slides[e.realIndex];setTimeout((()=>{t.focus()}),500)}))}))}},81504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4981),a=n(92819);function s(e){return(0,a.filter)(e,(({id:e,url:t})=>e&&t))}const o={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>s(e).length>0,transform:e=>{const t=s(e);return(0,r.createBlock)("jetpack/slideshow",{images:t.map((({alt:e,caption:t,id:n,url:r})=>({alt:e,caption:t,id:n,url:r}))),ids:t.map((({id:e})=>e))})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:({images:e})=>{const t=s(e);return t.length>0?(0,r.createBlock)("jetpack/slideshow",{images:t.map((({alt:e,caption:t,id:n,url:r})=>({alt:e,caption:t,id:n,url:r}))),ids:t.map((({id:e})=>e))}):(0,r.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t})=>(0,r.createBlock)("core/gallery",{images:e,ids:t})},{type:"block",blocks:["core/image"],transform:({images:e})=>e.length>0?e.map((({id:e,url:t,alt:n,caption:a})=>(0,r.createBlock)("core/image",{id:e,url:t,alt:n,caption:a}))):(0,r.createBlock)("core/image")}]}},65492:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(94545);const __=i.__,c=({allowedMediaTypes:e,attributes:{mediaFiles:t},onSelectMedia:n})=>(0,r.createElement)(o.Fragment,null,(0,r.createElement)(a.BlockControls,null,!!t.length&&(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{title:__("Edit Story","jetpack"),onSelect:n,allowedTypes:e,addToGallery:!0,multiple:"add",value:t.map((e=>e.id)),render:({open:e})=>(0,r.createElement)(l.Z,{label:__("Edit Story","jetpack"),onClick:e})}))))))},19693:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(11313),l=n(52175),c=n(55609),u=n(9818),d=n(65736),p=n(65235),m=n.n(p),g=n(92819),A=n(53238),h=n(65492),E=n(73022);const __=d.__,f=["image","video"],b=(0,o.dM)(A),C=e=>{const t=(0,g.pick)(e,["alt","title","id","link","type","mime","caption","width","height"]);return t.url=(0,g.get)(e,["media_details","original","url"])||(0,g.get)(e,["media_details","videopress","original"])||(0,g.get)(e,["media_details","sizes","large","source_url"])||(0,g.get)(e,["sizes","large","url"])||e.url,t.type=e.media_type||e.type,t.mime=e.mime_type||e.mime,t.title=t.title?.rendered||t.title,t.width=t.width||e.media_details?.width,t.height=t.height||e.media_details?.height,t},v=(0,c.withNotices)((function({attributes:e,isSelected:t,noticeOperations:n,noticeUI:r,setAttributes:o}){const{mediaFiles:c}=e,{lockPostSaving:d,unlockPostSaving:p}=(0,u.useDispatch)("core/editor"),g=(0,l.useBlockProps)(),A="storyBlockLock",v=e=>{const t=e.map((e=>{if(!isNaN(e)){return c.find((t=>t.id===e))||{id:e}}return e})).map(C),n=t.filter((e=>!(0,i.isBlobURL)(e.url)));t.length!==n.length?d(A):p(A),o({mediaFiles:t})},k=(0,s.createElement)(h.Z,{allowedMediaTypes:f,attributes:e,onSelectMedia:v}),B=!!c.length,y=(0,s.createElement)(l.MediaPlaceholder,{addToGallery:B,isAppender:B,className:g.className,disableMediaButtons:B&&!t,icon:!B&&b,labels:{title:!B&&__("Story","jetpack"),instructions:!B&&__("Drag images and videos, upload new ones, or select files from your library.","jetpack")},onSelect:v,accept:f.map((e=>e+"/*")).join(","),allowedTypes:f,multiple:"add",value:c,notices:B?void 0:r,onError:n.createErrorNotice});let w;return w=B?(0,s.createElement)(s.Fragment,null,k,r,(0,s.createElement)(E.Z,{slides:c,disabled:!t,showSlideCount:t,shadowDOM:{enabled:!1},playInFullscreen:!1,tapToPlayPause:!1,playOnNextSlide:!1}),t&&y):(0,s.createElement)(s.Fragment,null,k,y),(0,s.createElement)("div",a()({},g,{className:m()("wp-block-jetpack-story","wp-story",g.className)}),w)}))},88067:(e,t,n)=>{"use strict";var r=n(31985),a=n(53238),s=n(19693),o=n(29143);const i={mediaFiles:[{alt:"",caption:"",mime:"image/jpg",type:"image",id:22,url:n(15915)}]};(0,r.S)(a,{edit:s.Z,save:o.Z,example:{attributes:i}})},19395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(70444);function s({currentMedia:e}){const t=e&&"image"===e.type?e.url:null;return(0,r.createElement)("div",{className:"wp-story-background"},(0,r.createElement)("div",{className:"wp-story-background-image",style:{backgroundImage:t?`url("${t}")`:"none"}}),(0,r.createElement)("div",{className:"wp-story-background-blur"}),(0,r.createElement)(a.SVG,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0"},(0,r.createElement)("filter",{id:"gaussian-blur-18"},(0,r.createElement)("feGaussianBlur",{stdDeviation:"18"}))))}},94754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(65235),o=n.n(s);const __=a.__;function i({isEllipsis:e,disabled:t,index:n,isSelected:s,progress:i,onClick:l}){const c=t||e;let u=null;return e||(u=s?(0,a.sprintf)(/* translators: %d: Slide number. */ | |
| 103 | -__("Slide %d, currently selected","jetpack"),n+1):(0,a.sprintf)(/* translators: %d: Slide number. */ | |
| 104 | -__("Go to slide %d","jetpack"),n+1)),(0,r.createElement)("button",{role:c?"presentation":"tab",key:n,className:o()("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":e}),"aria-label":u,"aria-disabled":c||s,onClick:c||s?void 0:l,disabled:c},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar"},(0,r.createElement)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:`${i}%`}})))}},44689:(e,t,n)=>{"use strict";n.d(t,{b:()=>l,r:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(65235),i=n.n(o);const l=({className:e,size:t,label:n,isPressed:r,...o})=>(0,s.createElement)("button",a()({type:"button","aria-label":n,"aria-pressed":r,className:i()("jetpack-mdc-icon-button","circle-icon","outlined","bordered",e),style:{width:`${t}px`,height:`${t}px`}},o)),c=({className:e,size:t=24,label:n,isPressed:r,...o})=>(0,s.createElement)("button",a()({type:"button","aria-label":n,"aria-pressed":r,className:i()("jetpack-mdc-icon-button",e),style:{width:`${t}px`,height:`${t}px`}},o))},51543:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);const a=()=>(0,r.createElement)("div",{className:"wp-story-loading-spinner"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__outer"},(0,r.createElement)("div",{className:"wp-story-loading-spinner__inner"})))},85584:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(44689),o=n(89620);const _x=a._x;function i({playing:e,muted:t,onPlayPressed:n,onMutePressed:a,showMute:i}){return(0,r.createElement)("div",{className:"wp-story-controls"},(0,r.createElement)(s.r,{isPressed:e,label:e?_x("pause","Button tooltip text","jetpack"):_x("play","Button tooltip text","jetpack",0),onClick:n},e?(0,r.createElement)(o.fp,null):(0,r.createElement)(o.o1,null)),i&&(0,r.createElement)(s.r,{isPressed:t,label:t?_x("unmute","Button tooltip text","jetpack"):_x("mute","Button tooltip text","jetpack",0),onClick:a},t?(0,r.createElement)(o.xb,null):(0,r.createElement)(o.MC,null)))}},14904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(65736),s=n(44689),o=n(89620);const __=a.__;function i({fullscreen:e,onExitFullscreen:t,siteIconUrl:n,storyTitle:a}){return e?(0,r.createElement)("div",{className:"wp-story-meta"},(0,r.createElement)("div",{className:"wp-story-icon"},(0,r.createElement)("img",{alt:__("Site icon","jetpack"),src:n,width:"40",height:"40"})),(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"wp-story-title"},a)),(0,r.createElement)(s.r,{className:"wp-story-exit-fullscreen",label:__("Exit Fullscreen","jetpack"),onClick:t},(0,r.createElement)(o.Tw,null))):null}},89620:(e,t,n)=>{"use strict";n.d(t,{JM:()=>p,MC:()=>u,Tw:()=>c,Vq:()=>m,fp:()=>l,o1:()=>i,xb:()=>d});var r=n(51806),a=n(70444),s=n(36598);const o=({children:e,size:t})=>(0,s.Z)(e,t,t),i=({size:e})=>(0,r.createElement)(o,{size:e},(0,r.createElement)(a.Path,{d:"M8 5v14l11-7z"})),l=({size:e})=>(0,r.createElement)(o,{size:e},(0,r.createElement)(a.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})),c=({size:e})=>(0,r.createElement)(o,{size:e},(0,r.createElement)(a.Path,{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),u=({size:e})=>(0,r.createElement)(o,{size:e},(0,r.createElement)(a.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"})),d=({size:e})=>(0,r.createElement)(o,{size:e},(0,r.createElement)(a.Path,{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})),p=({size:e})=>(0,r.createElement)(o,{size:e},(0,r.createElement)(a.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),m=({size:e})=>(0,r.createElement)(o,{size:e},(0,r.createElement)(a.Path,{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}))},69835:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>i.Z,WB:()=>l.Z,ZX:()=>a.Z,aV:()=>o.Z,gT:()=>r.Z,h4:()=>s.Z,pU:()=>c.pU});var r=n(94754),a=n(85584),s=n(14904),o=n(74629),i=n(19395),l=n(51543),c=n(41126);n(44689)},41126:(e,t,n)=>{"use strict";n.d(t,{pU:()=>u});var r=n(82674),a=n.n(r),s=n(51806),o=n(65235),i=n.n(o);const l=({title:e,alt:t,className:n,id:r,mediaRef:a,mime:o,sizes:l,srcset:c,url:u})=>(0,s.createElement)("img",{ref:a,"data-id":r,"data-mime":o,title:e,alt:t,src:u,className:i()("wp-story-image",`wp-image-${r}`,n),srcSet:c,sizes:l}),c=({title:e,className:t,id:n,mediaRef:r,mime:a,url:o,poster:l})=>(0,s.createElement)("video",{className:i()("wp-story-video","intrinsic-ignore",`wp-video-${n}`,t),ref:r,"data-id":n,title:e,type:a,src:o,poster:l,tabIndex:-1,preload:"auto",playsInline:!0}),u=({targetAspectRatio:e,cropUpTo:t,type:n,width:r,height:o,...i})=>{let u=null;if(r&&o){const n=r/o;if(n>=e){n>e/(1-t)||(u="wp-story-crop-wide")}else{n<e*(1-t)||(u="wp-story-crop-narrow")}}const d="video"===n||(i.mime||"").startsWith("video/");return(0,s.createElement)("figure",null,d?(0,s.createElement)(c,a()({},i,{className:u})):(0,s.createElement)(l,a()({},i,{className:u})))}},74629:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(69307),s=n(65736),o=n(99891),i=n(44689),l=n(89620);const __=s.__;function c({ended:e,hasPrevious:t,onNextSlide:n,onPreviousSlide:c,icon:u,slideCount:d,showSlideCount:p}){const m=(0,a.useCallback)((t=>{e||(t.stopPropagation(),c())}),[c,e]),g=(0,a.useCallback)((t=>{e||(t.stopPropagation(),n())}),[n,e]);return(0,r.createElement)("div",{className:"wp-story-overlay"},p&&(0,r.createElement)("div",{className:"wp-story-embed-icon"},u,(0,r.createElement)("span",null,d)),!p&&(0,r.createElement)("div",{className:"wp-story-embed-icon-expand"},(0,r.createElement)(o.Z,{role:"img"})),t&&(0,r.createElement)("div",{className:"wp-story-prev-slide",onClick:m},(0,r.createElement)(i.b,{size:44,label:__("Previous Slide","jetpack"),className:"outlined-w"},(0,s.isRTL)()?(0,r.createElement)(l.Vq,{size:24}):(0,r.createElement)(l.JM,{size:24}))),(0,r.createElement)("div",{className:"wp-story-next-slide",onClick:g},(0,r.createElement)(i.b,{size:44,label:__("Next Slide","jetpack"),className:"outlined-w"},(0,s.isRTL)()?(0,r.createElement)(l.JM,{size:24}):(0,r.createElement)(l.Vq,{size:24}))))}},93340:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(69307),s=n(65235),o=n.n(s),i=n(47591),l=n(74240),c=n(7449);const u=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);function d({className:e,fullscreenClassName:t,bodyFullscreenClassName:n,fullscreen:s,shadowDOM:d,onKeyDown:p,onExitFullscreen:m,playerQuerySelector:g,children:A}){const h=(0,a.useRef)(),E=(0,a.useRef)(),[f,b]=(0,a.useState)(null),C=u&&i.am(),v=s&&!C,k=s&&C;return(0,a.useLayoutEffect)((()=>{if(C)s?h.current&&i.uP(h.current,m):i.bG()&&i.JF();else if(s){if(b([document.documentElement.scrollLeft,document.documentElement.scrollTop]),document.body.classList.add(n),document.getElementsByTagName("html")[0].classList.add(n),E.current){const e=E.current.querySelector(g);e&&e.focus()}}else if(document.body.classList.remove(n),document.getElementsByTagName("html")[0].classList.remove(n),f){window.scrollTo(...f);const e=h.current.querySelector(g);e&&e.focus()}}),[s]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.Z,d,(0,r.createElement)("div",{ref:h,className:o()(e,{[t]:k}),onKeyDown:p},!v&&A)),(0,r.createElement)(c.Z,{className:o()(e,{[t]:v}),isOpened:v,onRequestClose:m,shadowDOM:d,onKeyDown:v&&p,focusOnMount:!1,modalRef:E},v&&A))}},73022:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(9818),s=n(69307),o=n(39630),i=n(93340),l=n(75096);n(31179);function c({id:e,slides:t,metadata:n,disabled:c,...u}){const d=(0,s.useMemo)((()=>e||Math.random().toString(36)),[e]),{init:p,setEnded:m,setPlaying:g,setFullscreen:A,showSlide:h}=(0,a.useDispatch)("jetpack/story/player"),{playing:E,currentSlideIndex:f,fullscreen:b,isReady:C,playerSettings:v}=(0,a.useSelect)((e=>{const{getCurrentSlideIndex:t,getSettings:n,isFullscreen:r,isPlayerReady:a,isPlaying:s}=e("jetpack/story/player");return a(d)?{playing:s(d),currentSlideIndex:t(d),isReady:!0,fullscreen:r(d),playerSettings:n(d)}:{isReady:!1}}),[d]);(0,s.useEffect)((()=>{C||p(d,{slideCount:t.length,...u})}),[C,d]);const k=(0,s.useCallback)((e=>{switch(e.keyCode){case o.ENTER:if(b)break;case o.SPACE:g(d,!E);break;case o.LEFT:f>0&&h(d,f-1);break;case o.RIGHT:f<t.length-1?h(d,f+1):m(d)}}),[d,f,b,E]),B=(0,s.useCallback)((()=>{A(d,!1)}),[d]);return C?(0,r.createElement)(i.Z,{shadowDOM:v.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:b,onExitFullscreen:B,onKeyDown:k},(0,r.createElement)(l.Z,{id:d,slides:t,metadata:n,disabled:c})):null}},47591:(e,t,n)=>{"use strict";n.d(t,{JF:()=>o,am:()=>r,bG:()=>a,uP:()=>s});const r=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,a=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,s=(e,t)=>{if((e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen).call(e),t){const e=()=>{document.fullscreenElement||(document.removeEventListener("fullscreenchange",e),t())};document.addEventListener("fullscreenchange",e)}},o=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},74240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307);const s=window&&window.Element&&window.Element.prototype.hasOwnProperty("attachShadow");function o({enabled:e,delegatesFocus:t=!1,mode:n="open",globalStyleElements:o=[],adoptedStyleSheets:l=null,mountOnElement:c=null,children:u}){const[d,p]=(0,a.useState)(null),m=c||d,[g,A]=(0,a.useState)(null),h="string"==typeof o?[...document.querySelectorAll(o)]:o,E=s&&e&&h.length>0,f=(0,a.useCallback)((e=>{null!==e&&p(e.parentNode)}),[]);if((0,a.useEffect)((()=>{if(!m)return;if(m.shadowRoot)return void A(m.shadowRoot);const e=m.attachShadow({delegatesFocus:t,mode:n});l&&(e.adoptedStyleSheets=l),A(e)}),[m]),E&&!g)return c?null:(0,r.createElement)("span",{ref:f});const b=(0,r.createElement)(r.Fragment,null,E&&(0,r.createElement)(i,{globalStyleElements:h}),u);return E?(0,a.createPortal)(b,g):b}function i({globalStyleElements:e}){return(0,r.createElement)(r.Fragment,null,e.map((({id:e,tagName:t,attributes:n,innerHTML:a},s)=>"LINK"===t?(0,r.createElement)("link",{key:e||s,id:e,rel:n.rel.value,href:n.href.value}):"STYLE"===t?(0,r.createElement)("style",{key:e||s,id:e},a):void 0)))}},64930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(69307);const a=e=>{const t=(0,r.useRef)(),n=(0,r.useRef)(),a=(0,r.useRef)(e),s=(0,r.useCallback)((e=>{e.touches&&1===e.touches.length&&e.preventDefault()}),[]);return(0,r.useEffect)((()=>{a.current=e}),[e]),{onTouchStart:(0,r.useCallback)((e=>{e.target&&(e.target.addEventListener("touchend",s,{passive:!1}),n.current=e.target),t.current=setTimeout((()=>{a.current&&a.current(!0),t.current=null}),200)}),[]),onTouchEnd:(0,r.useCallback)((e=>{t.current?clearTimeout(t.current):(a.current&&a.current(!1),e.stopPropagation()),n.current&&n.current.removeEventListener("touchend",s)}),[])}}},3065:(e,t,n)=>{"use strict";async function r(e){const t=e.tagName.toLowerCase();if("img"===t){if(e.complete)return;await new Promise((t=>{e.addEventListener("load",t,{once:!0})}))}else if("video"===t||"audio"===t){if(e.HAVE_ENOUGH_DATA===e.readyState)return;await new Promise((t=>{e.addEventListener("canplaythrough",t,{once:!0}),e.addEventListener("load",t,{once:!0}),e.HAVE_NOTHING===e.readyState&&e.networkState!==e.NETWORK_LOADING&&e.load()}))}}n.d(t,{Z:()=>r})},89082:(e,t,n)=>{"use strict";n.d(t,{BM:()=>i,i1:()=>l});var r=n(92819);const a=new Set(["alert","status","log","marquee","timer"]);let s=[],o=!1;function i(e){if(o)return;const t=document.body.children;(0,r.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||a.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),s.push(t))})),o=!0}function l(){o&&((0,r.forEach)(s,(e=>{e.removeAttribute("aria-hidden")})),s=[],o=!1)}},43520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(94333),s=n(39630);function o({overlayClassName:e,children:t,className:n,focusOnMount:o,shouldCloseOnEsc:i=!0,onRequestClose:l,onKeyDown:c,modalRef:u}){const d=(0,a.useFocusOnMount)(o),p=(0,a.useConstrainedTabbing)(),m=(0,a.useFocusReturn)();return(0,r.createElement)("div",{className:e,onKeyDown:function(e){i&&e.keyCode===s.ESCAPE&&(e.stopPropagation(),l&&l(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===s.SPACE||c&&c(e)}},(0,r.createElement)("div",{className:n,ref:(0,a.useMergeRefs)([p,m,d,u])},t))}},7449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(82674),a=n.n(r),s=n(51806),o=n(94333),i=n(69307),l=n(74240),c=n(89082),u=n(43520);let d,p=0;const m=()=>{};class g extends i.Component{constructor(e){super(e),this.prepareDOM()}componentDidMount(){p++,1===p&&this.openFirstModal()}componentWillUnmount(){p--,0===p&&this.closeLastModal(),this.cleanDOM()}prepareDOM(){d||(d=document.createElement("div"),document.body.appendChild(d)),this.node=document.createElement("div"),d.appendChild(this.node),this.node.ontouchstart=m,this.node.ontouchend=m}cleanDOM(){d.removeChild(this.node)}openFirstModal(){c.BM(d)}closeLastModal(){c.i1()}render(){const{children:e,isOpened:t,shadowDOM:n,...r}=this.props;return(0,s.createElement)(l.Z,a()({},n,{mountOnElement:this.node}),t&&(0,s.createElement)(u.Z,r,e))}}g.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0};const A=(0,o.withInstanceId)(g)},75096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(11313),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(65235),m=n.n(p),g=n(92819),A=n(53238),h=n(69835),E=n(64930),f=n(68440),b=n(63408);const __=d.__,C=(0,o.dM)(A);function v({id:e,slides:t,metadata:n,disabled:r}){const{setFullscreen:o,setEnded:d,setPlaying:p,setMuted:A,showSlide:v}=(0,c.useDispatch)("jetpack/story/player"),{playing:k,muted:B,currentSlideIndex:y,currentSlideEnded:w,ended:_,fullscreen:I,settings:j}=(0,c.useSelect)((t=>{const{getCurrentSlideIndex:n,getSettings:r,hasCurrentSlideEnded:a,hasEnded:s,isFullscreen:o,isMuted:i,isPlaying:l}=t("jetpack/story/player");return{playing:l(e),muted:i(e),currentSlideIndex:n(e),currentSlideEnded:a(e),ended:s(e),fullscreen:o(e),settings:r(e)}}),[e]),x=(0,u.useRef)(),[S,Q]=(0,u.useState)(null),[N,{width:P,height:T}]=(0,l.useResizeObserver)(),[R,Z]=(0,u.useState)(j.defaultAspectRatio),L=(0,g.some)(t,(e=>(0,i.isBlobURL)(e.url))),M=t=>{v(e,t)},D=(0,u.useCallback)((()=>{r||I||j.playInFullscreen&&!k&&p(e,!0)}),[k,r,I]),{onTouchStart:F,onTouchEnd:z}=(0,E.Z)((t=>{p(e,!t)}),[]),O=(0,u.useCallback)((()=>{y>0&&M(y-1)}),[y]),U=(0,u.useCallback)((()=>{y<t.length-1?M(y+1):d(e)}),[y,t]),H=(0,u.useCallback)((()=>{o(e,!1)}),[]);let V,q;return(0,u.useEffect)((()=>{r&&k&&p(e,!1)}),[r,k]),(0,u.useEffect)((()=>{k&&w&&U()}),[k,w]),(0,u.useLayoutEffect)((()=>{if(!x.current)return;let e=Math.round(j.defaultAspectRatio*x.current.offsetHeight);I&&(e=Math.abs(1-e/P)<j.cropUpTo?P:e),Q(e)}),[P,T,I]),(0,u.useLayoutEffect)((()=>{S&&x.current&&x.current.offsetHeight>0&&Z(S/x.current.offsetHeight)}),[S]),V=I?[__("You are currently playing a story.","jetpack"),k?__("Press space to pause.","jetpack"):__("Press space to play.","jetpack",0),__("Press escape to exit.","jetpack")].join(" "):__("Play story","jetpack"),q=r?"presentation":I?"dialog":"button",(0,s.createElement)("div",{className:"wp-story-display-contents"},N,(0,s.createElement)("div",{role:q,"aria-label":V,tabIndex:I?-1:0,className:m()("wp-story-container",{"wp-story-with-controls":!r&&!I&&!j.playInFullscreen,"wp-story-fullscreen":I,"wp-story-ended":_,"wp-story-disabled":r,"wp-story-clickable":!r&&!I}),style:{maxWidth:`${S}px`},onClick:D,onTouchStart:F,onTouchEnd:z},(0,s.createElement)(h.h4,a()({},n,{fullscreen:I,onExitFullscreen:H})),(0,s.createElement)("div",{ref:x,className:"wp-story-wrapper"},t.map(((t,n)=>(0,s.createElement)(b.Z,{playerId:e,key:n,media:t,index:n,playing:!r&&k,uploading:L,settings:j,targetAspectRatio:R})))),(0,s.createElement)(h.aV,{icon:C,slideCount:t.length,showSlideCount:j.showSlideCount,ended:_,hasPrevious:y>0,onPreviousSlide:O,onNextSlide:U}),j.showProgressBar&&(0,s.createElement)(f.ZP,{playerId:e,slides:t,disabled:!I,onSlideSeek:M,maxBullets:I?j.maxBulletsFullscreen:j.maxBullets}),(0,s.createElement)(h.ZX,{playing:k,muted:B,onPlayPressed:()=>p(e,!k),onMutePressed:()=>A(e,!B),showMute:(e=>{const n=e<t.length?t[e]:null;return!!n&&("video"===n.type||(n.mime||"").startsWith("video/"))})(y)})),I&&(0,s.createElement)(h.Aq,{currentMedia:j.blurredBackground&&t.length>y&&t[y]}))}},68440:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(51806),a=n(9818),s=n(92819),o=n(69835);const i=({key:e,playerId:t,index:n,disabled:s,isSelected:i,onClick:l})=>{const c=(0,a.useSelect)((e=>e("jetpack/story/player").getCurrentSlideProgressPercentage(t)),[]);return(0,r.createElement)(o.gT,{key:e,index:n,progress:c,disabled:s,isSelected:i,onClick:l})},l=({playerId:e,slides:t,disabled:n,onSlideSeek:l,maxBullets:c})=>{const{currentSlideIndex:u}=(0,a.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e)})),[]),d=Math.min(t.length,c),p=Math.floor(d/2);let m,g=0,A=t.length-1;return t.length<=c||u<p?(m=u,A=d-1):u>=t.length-p?(m=u-t.length+d,g=t.length-d):(m=p,g=u-p,A=u+p),(0,r.createElement)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist"},g>0&&(0,r.createElement)(o.gT,{key:"bullet-0",index:g-1,progress:100,isEllipsis:!0}),(0,s.range)(1,d+1).map(((t,a)=>{const s=a+g;let c=null;if(s<u)c=100;else{if(!(s>u))return(0,r.createElement)(i,{playerId:e,key:`bullet-${a}`,index:s,disabled:n,isSelected:m===a,onClick:()=>l(s)});c=0}return(0,r.createElement)(o.gT,{key:`bullet-${a}`,index:s,progress:c,disabled:n,isSelected:m===a,onClick:()=>l(s)})})),A<t.length-1&&(0,r.createElement)(o.gT,{key:`bullet-${d+1}`,index:A+1,progress:0,isEllipsis:!0}))}},63408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(82674),a=n.n(r),s=n(51806),o=n(9818),i=n(69307),l=n(65235),c=n.n(l),u=n(69835),d=n(3065);const p=({playerId:e,media:t,index:n,playing:r,uploading:l,settings:p,targetAspectRatio:m})=>{const{currentSlideIndex:g,buffering:A}=(0,o.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e),buffering:t("jetpack/story/player").isBuffering(e)})),[]),{slideReady:h}=(0,o.useDispatch)("jetpack/story/player"),E=n===g,f=(0,i.useRef)(null),[b,C]=(0,i.useState)(!1),[v,k]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{if(E&&!v){const t=f.current&&f.current.src&&"video"===f.current.tagName.toLowerCase()?f.current:null;h(e,f.current,t?t.duration:p.imageTime)}}),[E,v]),(0,i.useEffect)((()=>{n<=g+(r?1:0)&&C(!0)}),[r,g]),(0,i.useLayoutEffect)((()=>{f.current&&(0,d.Z)(f.current).then((()=>{k(!1)}))}),[b,l]),(0,s.createElement)(s.Fragment,null,E&&(v||l||A)&&(0,s.createElement)("div",{className:c()("wp-story-slide","is-loading",{transparent:r&&A,"semi-transparent":l||!r&&A})},(0,s.createElement)(u.WB,null)),(0,s.createElement)("div",{role:"figure",className:"wp-story-slide",style:{display:E&&!v?"block":"none"},tabIndex:E?0:-1},b&&(0,s.createElement)(u.pU,a()({},t,{targetAspectRatio:m,cropUpTo:p.cropUpTo,index:n,mediaRef:f}))))}},29154:(e,t,n)=>{"use strict";function r(e,t){return{type:"SET_MUTED",value:t,playerId:e}}function a(e,t){return{type:"SET_PLAYING",value:t,playerId:e}}function s(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function o(e,t,n){return{type:"SLIDE_READY",mediaElement:t,duration:n,playerId:e}}function i(e,t){return{type:"SET_CURRENT_SLIDE_PROGRESS",value:t,playerId:e}}function l(e){return{type:"RESET_CURRENT_SLIDE_PROGRESS",playerId:e}}function c(e){return{type:"SET_CURRENT_SLIDE_ENDED",playerId:e}}function u(e,t){return{type:"SET_FULLSCREEN",playerId:e,fullscreen:t}}function d(e){return{type:"ENDED",playerId:e}}function p(e,t={}){return{type:"INIT",playerId:e,settings:t}}function m(e,t){return{type:"SET_BUFFERING",value:t,playerId:e}}n.r(t),n.d(t,{init:()=>p,resetCurrentSlideProgress:()=>l,setBuffering:()=>m,setCurrentSlideEnded:()=>c,setCurrentSlideProgress:()=>i,setEnded:()=>d,setFullscreen:()=>u,setMuted:()=>r,setPlaying:()=>a,showSlide:()=>s,slideReady:()=>o})},17380:(e,t,n)=>{"use strict";n.d(t,{H2:()=>s,Qz:()=>a,XO:()=>r});const r={currentTime:0,duration:null,timeout:null,lastUpdate:null},a={progress:r,index:0,mediaElement:null,duration:null,ended:!1,ready:!1},s={slideCount:0,currentSlide:a,previousSlide:null,muted:!1,playing:!1,ended:!1,buffering:!1,fullscreen:!1,settings:{imageTime:5,startMuted:!1,playInFullscreen:!0,playOnNextSlide:!0,playOnLoad:!1,exitFullscreenOnEnd:!0,loadInFullscreen:!1,blurredBackground:!0,showSlideCount:!1,showProgressBar:!0,shadowDOM:{enabled:!0,mode:"open",globalStyleElements:'#jetpack-block-story-css, link[href*="jetpack/_inc/blocks/story/view.css"]'},defaultAspectRatio:.5625,cropUpTo:.2,volume:.8,maxBullets:7,maxBulletsFullscreen:14}}},78733:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(29154),a=n(20876);const s=e=>e&&e.src&&"video"===e.tagName.toLowerCase();function o(e,t){const{getState:n}=t,r=e.playerId,o=(0,a.isMuted)(n(),r),i=(0,a.isPlaying)(n(),r),l=(0,a.getCurrentMediaElement)(n(),r),c=(0,a.getPreviousSlideMediaElement)(n(),r),u=(0,a.getSettings)(n(),r);s(c)&&(c.currentTime=0,c.onwaiting=null,c.onplaying=null,c.pause()),s(l)&&(o!==l.muted&&(l.muted=o,o||(l.volume=u.volume)),i?l.play():l.pause())}function i(e,t){const{getState:n,dispatch:o}=t,l=e.playerId,c=(0,a.isCurrentSlideReady)(n(),l),u=(0,a.isPlaying)(n(),l),d=(0,a.getCurrentSlideProgress)(n(),l);if(clearTimeout(d.timeout),!u||!c)return void(d.lastUpdate&&o((0,r.setCurrentSlideProgress)(l,{...d,lastUpdate:null})));const p=(0,a.getCurrentMediaElement)(n(),l),m=(0,a.getCurrentMediaDuration)(n(),l),g=d.lastUpdate?Date.now()-d.lastUpdate:100,A=s(p)?p.currentTime:d.currentTime+g/1e3;if(A>=m){o((0,r.setCurrentSlideEnded)(l));const e=(0,a.getSlideCount)(n(),l);(0,a.getCurrentSlideIndex)(n(),l)===e-1&&o((0,r.setEnded)(l))}else o((0,r.setCurrentSlideProgress)(l,{timeout:setTimeout((()=>i(e,t)),100),lastUpdate:Date.now(),duration:m,currentTime:A}))}const l={SET_PLAYING:[i,o],SLIDE_READY:[function(e,t){const{getState:n,dispatch:o}=t,i=e.playerId,l=(0,a.getCurrentMediaElement)(n(),i);if(!s(l))return;const c=(0,a.getCurrentSlideProgress)(n(),i);0===l.currentTime&&c.currentTime>0&&(l.currentTime=c.currentTime),l.onwaiting=()=>o((0,r.setBuffering)(i,!0)),l.onplaying=()=>o((0,r.setBuffering)(i,!1))},i,o],SET_MUTED:o,SHOW_SLIDE:o}},31179:(e,t,n)=>{"use strict";var r=n(9818),a=n(29154),s=n(74787),o=n(13498),i=n(20876);const l=(0,r.registerStore)("jetpack/story/player",{actions:a,reducer:o.Z,selectors:i});(0,s.Z)(l)},74787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(92819),a=n(24274),s=n.n(a),o=n(78733);function i(e){const t=[s()(o.Z)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a=[];const i={getState:e.getState,dispatch:(...e)=>n(...e)};return a=t.map((e=>e(i))),n=(0,r.flowRight)(...a)(e.dispatch),e.dispatch=n,e}},13498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(92819),a=n(17380);function s(e=a.H2,t){switch(t.type){case"SHOW_SLIDE":{const n=e.currentSlide===t.index+1;return{...e,currentSlide:{...a.Qz,index:t.index},previousSlide:e.currentSlide,playing:n?e.settings.playOnNextSlide:e.playing}}case"SLIDE_READY":return{...e,buffering:!1,currentSlide:{...e.currentSlide,mediaElement:t.mediaElement,duration:t.duration,ready:!0},previousSlide:null};case"SET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:t.value}};case"SET_CURRENT_SLIDE_ENDED":return{...e,currentSlide:{...e.currentSlide,ended:!0}};case"RESET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:{...a.XO}}};case"SET_MUTED":return{...e,muted:t.value};case"SET_PLAYING":{const n=t.value&&e.ended;return{...e,playing:t.value,buffering:!!t.value&&e.buffering,fullscreen:!e.playing&&t.value?e.settings.playInFullscreen:e.fullscreen,ended:!n&&e.ended,currentSlide:n?{...a.Qz,index:0}:e.currentSlide,previousSlide:n?null:e.previousSlide}}case"SET_BUFFERING":return{...e,buffering:t.value};case"SET_FULLSCREEN":return{...e,fullscreen:t.fullscreen,playing:!(e.fullscreen&&!t.fullscreen&&e.settings.playInFullscreen)&&e.playing};case"INIT":{const n=(0,r.merge)({},e.settings,t.settings);return{...e,settings:n,playing:n.playOnLoad,fullscreen:n.loadInFullscreen}}case"ENDED":return{...e,currentSlide:{...a.Qz,index:e.settings.slideCount-1,progress:{...a.XO,currentTime:100,duration:100}},ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd}}return e}function o(e={},t){return t.playerId?{...e,[t.playerId]:s(e[t.playerId],t)}:e}},20876:(e,t,n)=>{"use strict";function r(e,t){return!!e[t]}function a(e,t){return e[t].currentSlide.index}function s(e,t){return e[t].currentSlide.progress}function o(e,t){const n=e[t].currentSlide.progress.currentTime,r=e[t].currentSlide.progress.duration,a=Math.round(100*n/r);return a>=100?100:a}function i(e,t){return e[t].playing}function l(e,t){return e[t].muted}function c(e,t){return e[t].buffering}function u(e,t){return e[t].currentSlide.mediaElement}function d(e,t){return e[t].currentSlide.duration}function p(e,t){return e[t].currentSlide.ended}function m(e,t){return e[t].currentSlide.ready}function g(e,t){return e[t].previousSlide?.mediaElement}function A(e,t){return e[t].fullscreen}function h(e,t){return e[t].ended}function E(e,t){return e[t].settings}function f(e,t){return e[t].settings.slideCount}n.r(t),n.d(t,{getCurrentMediaDuration:()=>d,getCurrentMediaElement:()=>u,getCurrentSlideIndex:()=>a,getCurrentSlideProgress:()=>s,getCurrentSlideProgressPercentage:()=>o,getPreviousSlideMediaElement:()=>g,getSettings:()=>E,getSlideCount:()=>f,hasCurrentSlideEnded:()=>p,hasEnded:()=>h,isBuffering:()=>c,isCurrentSlideReady:()=>m,isFullscreen:()=>A,isMuted:()=>l,isPlayerReady:()=>r,isPlaying:()=>i})},29143:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i);const c=()=>{const e=o.useBlockProps.save();return(0,s.createElement)("div",a()({},e,{className:l()("wp-story",e.className)}))}},18923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(52175),s=n(55609),o=n(94333),i=n(65736),l=n(4554),c=n(3908);const __=i.__;const u=function({attributes:e,setAttributes:t}){const n=(0,o.useInstanceId)(s.TextControl,"inspector-text-control"),i=(0,o.useInstanceId)(s.TextControl,"inspector-text-control"),u=(0,o.useInstanceId)(s.TextControl,"inspector-text-control"),d=(0,a.useBlockProps)(),p=(0,l.S)(c.attributes,e),{redirectToCurrent:m,logInLabel:g,logOutLabel:A,showManageSubscriptionsLink:h,manageSubscriptionsLabel:E}=p;return(0,r.createElement)("div",d,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Settings","jetpack")},(0,r.createElement)(s.ToggleControl,{label:__("Redirect to current URL","jetpack"),checked:m,onChange:()=>t({redirectToCurrent:!m})}),(0,r.createElement)(s.BaseControl,{label:__("Log in label","jetpack"),id:n},(0,r.createElement)(s.TextControl,{placeholder:__("Log in","jetpack"),onChange:e=>t({logInLabel:e}),value:g,id:n})),(0,r.createElement)(s.BaseControl,{label:__("Log out label","jetpack"),id:i},(0,r.createElement)(s.TextControl,{placeholder:__("Log out","jetpack"),onChange:e=>t({logOutLabel:e}),value:A,id:i})),(0,r.createElement)(s.ToggleControl,{label:__('Show "Manage subscription" link',"jetpack"),checked:h,onChange:()=>t({showManageSubscriptionsLink:!h})}),h&&(0,r.createElement)(s.BaseControl,{label:__("Manage subscription label","jetpack"),id:u},(0,r.createElement)(s.TextControl,{placeholder:__("Manage subscription","jetpack"),onChange:e=>t({manageSubscriptionsLabel:e}),value:E,id:u})))),(0,r.createElement)("a",{href:"#logout-pseudo-link"},A||__("Log out","jetpack")))}},9395:(e,t,n)=>{"use strict";var r=n(4981),a=n(92694),s=n(31985),o=n(3908),i=n(18923);(0,s.S)(o,{edit:i.Z,transforms:{from:[{type:"block",blocks:["core/loginout"],transform:({fontSize:e,redirectToCurrent:t})=>(0,r.createBlock)("jetpack/subscriber-login",{fontSize:e,redirectToCurrent:t})}],to:[{type:"block",blocks:["core/loginout"],transform:({fontSize:e,redirectToCurrent:t})=>(0,r.createBlock)("core/loginout",{fontSize:e,redirectToCurrent:t})}]}}),(0,a.addFilter)("blocks.registerBlockType","jetpack-subscriber-login-nav-item",((e,t)=>"core/navigation"===t?{...e,allowedBlocks:[...e.allowedBlocks??[],"jetpack/subscriber-login"]}:e))},58841:(e,t,n)=>{"use strict";n.d(t,{FP:()=>A,G0:()=>a,Gp:()=>s,HE:()=>p,K3:()=>l,Ks:()=>f,S9:()=>o,Tr:()=>m,VF:()=>i,XJ:()=>c,bK:()=>d,n4:()=>E,pC:()=>g,r9:()=>b,tm:()=>h,xV:()=>u});var r=n(65736);const __=r.__,a=0,s=50,o=0,i=0,l=15,c=1,u=5,d=50,p=15,m=0,g=50,A=10,h="16px",E=__("Type your email…","jetpack"),f=__("Subscribe","jetpack"),b=__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm' to start subscribing.","jetpack")},57532:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(52947),s=n(81050),o=n(13419),i=n(52175),l=n(55609),c=n(69307),u=n(65736),d=n(34904),p=n(30429),m=n(58841);const __=u.__,_n=u._n;function g({buttonBackgroundColor:e,borderColor:t,buttonGradient:n,borderRadius:g,borderWeight:A,buttonOnNewLine:h,emailFieldBackgroundColor:E,fallbackButtonBackgroundColor:f,fallbackTextColor:b,fontSize:C,includeSocialFollowers:v,isGradientAvailable:k,padding:B,setAttributes:y,setBorderColor:w,setButtonBackgroundColor:_,setTextColor:I,showSubscribersTotal:j,spacing:x,subscriberCount:S,textColor:Q,buttonWidth:N,subscribePlaceholder:P=m.n4,submitButtonText:T=m.Ks,successMessage:R=m.r9}){const{isPublicizeEnabled:Z}=(0,s.usePublicizeConfig)();return(0,r.createElement)(r.Fragment,null,S>0&&(0,r.createElement)(d.Z,null,(0,c.createInterpolateElement)((0,u.sprintf)(/* translators: %s is the number of subscribers. The \xA0 non-breaking space is to make sure the last two words are on the same line. */ | |
| 105 | -_n("<span>%s reader</span> is subscribed.","<span>%s readers</span> are subscribed.",S,"jetpack"),(0,a.Z)(S,{notation:"compact",maximumFractionDigits:1})),{span:(0,r.createElement)("span",{style:{fontWeight:"bold"}})})),k&&(0,r.createElement)(i.__experimentalPanelColorGradientSettings,{title:__("Color","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",settings:[{colorValue:e.color,onColorChange:_,gradientValue:n.gradientValue,onGradientChange:n.setGradient,label:__("Button Background","jetpack")},{colorValue:Q.color,onColorChange:I,label:__("Button Text","jetpack")},{colorValue:t.color,onColorChange:w,label:__("Border","jetpack")}],initialOpen:!0},(0,r.createElement)(i.ContrastChecker,{fontSize:C.size,textColor:Q.color,backgroundColor:E.color,fallbackButtonBackgroundColor:f,fallbackTextColor:b})),!k&&(0,r.createElement)(i.PanelColorSettings,{title:__("Background Colors","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",colorSettings:[{value:e.color,onChange:_,label:__("Button Background Color","jetpack")},{value:Q.color,onChange:I,label:__("Button Text Color","jetpack")},{value:t.color,onColorChange:w,label:__("Border Color","jetpack")}],initialOpen:!1},(0,r.createElement)(i.ContrastChecker,{fontSize:C.size,textColor:Q.color,backgroundColor:E.color,fallbackButtonBackgroundColor:f,fallbackTextColor:b})),(0,r.createElement)(l.PanelBody,{title:__("Typography","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__textpanel"},(0,r.createElement)(i.FontSizePicker,{withSlider:!0,value:C.size,onChange:e=>{const t=e||m.tm;y({fontSize:t,customFontSize:t})},__nextHasNoMarginBottom:!0})),(0,r.createElement)(l.PanelBody,{title:__("Border","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__borderpanel"},(0,r.createElement)(l.RangeControl,{value:g,label:__("Border Radius","jetpack"),min:m.G0,max:m.Gp,initialPosition:m.S9,allowReset:!0,onChange:e=>y({borderRadius:e})}),(0,r.createElement)(l.RangeControl,{value:A,label:__("Border Weight","jetpack"),min:m.VF,max:m.K3,initialPosition:m.XJ,allowReset:!0,onChange:e=>y({borderWeight:e})})),(0,r.createElement)(l.PanelBody,{title:__("Spacing","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__spacingpanel"},(0,r.createElement)(l.RangeControl,{value:B,label:__("Space Inside","jetpack"),min:m.xV,max:m.bK,initialPosition:m.HE,allowReset:!0,onChange:e=>y({padding:e})}),(0,r.createElement)(l.RangeControl,{value:x,label:__("Space Between","jetpack"),min:m.Tr,max:m.pC,initialPosition:m.FP,allowReset:!0,onChange:e=>y({spacing:e})}),(0,r.createElement)(p.g,{width:N,onChange:e=>y({buttonWidth:e})})),(0,r.createElement)(l.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__displaypanel"},(0,r.createElement)(l.ToggleControl,{label:__("Show subscriber count","jetpack"),checked:j,onChange:()=>{y({showSubscribersTotal:!j,includeSocialFollowers:void 0!==v&&v})},help:()=>{if(!S||S<1)return __("This will remain hidden until there is at least one subscriber.","jetpack")}}),Z&&(0,r.createElement)(l.ToggleControl,{disabled:!j,label:__("Include social followers in count","jetpack"),checked:void 0===v||v,onChange:()=>{y({includeSocialFollowers:void 0!==v&&!v})}}),(0,r.createElement)(l.ToggleControl,{label:__("Place button on new line","jetpack"),checked:h,onChange:()=>{y({buttonOnNewLine:!h})}}),(0,r.createElement)(l.TextareaControl,{value:P,label:__("Input placeholder text","jetpack"),help:__("Edit the placeholder text of the email address input.","jetpack"),onChange:e=>y({subscribePlaceholder:e})}),(0,r.createElement)(l.TextareaControl,{value:T,label:__("Submit button label","jetpack"),help:__("Edit the label of the button a user clicks to subscribe.","jetpack"),onChange:e=>y({submitButtonText:e})}),!(0,o.Wp)()&&(0,r.createElement)(l.TextareaControl,{value:R,label:__("Success message","jetpack"),help:__("Edit the message displayed when a user subscribes.","jetpack"),onChange:e=>y({successMessage:e})})))}},2916:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(75623),a=n(45097),s=n(20121),o=n(76609),i=n(11689),l=n(79024),c=n(68600);const u=[n(39583).Z,c.Z,l.Z,i.Z,o.Z,s.Z,a.Z,r.Z]},75623:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(69307),s=n(65736),o=n(92819);const i={attributes:{subscribeButton:{type:"string",default:(0,s.__)("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:e=>({submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal}),isEligible:e=>!(!e.hasOwnProperty("subscribeButton")||!(0,o.isEmpty)(e.subscribeButton)),save:function({attributes:e}){return(0,r.createElement)(a.RawHTML,null,`[jetpack_subscription_form show_subscribers_total="${e.showSubscribersTotal}" show_only_email_and_button="true"]`)}}},45097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(65736),a=n(65534);const __=r.__,s={attributes:{subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},migrate:e=>({subscribePlaceholder:e.subscribePlaceholder,showSubscribersTotal:e.showSubscribersTotal,buttonOnNewLine:!0,submitButtonText:e.submitButtonText,buttonBackgroundColor:e.backgroundButtonColor?e.backgroundButtonColor:"primary",customButtonBackgroundColor:e.customBackgroundButtonColor,textColor:e.textButtonColor?e.textButtonColor:"background",customTextColor:e.customTextButtonColor}),save:a.Z}},65534:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(69307);function s({attributes:e}){const{showSubscribersTotal:t,submitButtonClasses:n,customBackgroundButtonColor:s,customTextButtonColor:o,submitButtonText:i}=e;return(0,r.createElement)(a.RawHTML,null,`[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="${s}" custom_text_button_color="${o}" submit_button_text="${i}" submit_button_classes="${n}" show_subscribers_total="${t}" ]`)}},20084:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65736);const __=r.__,a={subscribePlaceholder:{type:"string",default:__("Enter your email address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Sign Up","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"number"},customFontSize:{type:"number"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},60293:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g});var r=n(51806),a=n(52175),s=n(69307),o=n(65235),i=n.n(o),l=n(20084);const c=0,u=1,d=15,p=10,m=16;function g(e,t,n=null){const{subscribePlaceholder:o,showSubscribersTotal:g,buttonOnNewLine:A,submitButtonText:h,emailFieldBackgroundColor:E,customEmailFieldBackgroundColor:f,emailFieldGradient:b,customEmailFieldGradient:C,buttonBackgroundColor:v,customButtonBackgroundColor:k,buttonGradient:B,customButtonGradient:y,textColor:w,customTextColor:_,fontSize:I,customFontSize:j,borderRadius:x,borderWeight:S,borderColor:Q,customBorderColor:N,padding:P,spacing:T}=t,R=!!a.__experimentalGetGradientClass,Z=(0,a.getColorClassName)("color",w),L=(0,a.getFontSizeClass)(I),M=(0,a.getColorClassName)("border-color",Q),D=(0,a.getColorClassName)("background-color",v),F=R?(0,a.__experimentalGetGradientClass)(B):void 0,z=(0,a.getColorClassName)("background-color",E),O=R?(0,a.__experimentalGetGradientClass)(b):void 0,U=i()(0===x?"no-border-radius":void 0,L,M),H=i()(U,w?"has-text-color":void 0,Z,v||B?"has-background":void 0,D,F),V=i()(U,z,O),q=!z&&C?C:f,G=!D&&y?y:k;let $=o,W=h;return"check-text-defaults"===n&&($=o===l.Z.subscribePlaceholder.default?"Enter your email address":o,W=h===l.Z.submitButtonText.default?"Sign Up":h),(0,r.createElement)("div",{className:i()(e,"wp-block-jetpack-subscriptions__supports-newline",A?"wp-block-jetpack-subscriptions__use-newline":void 0,g?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(s.RawHTML,null,`\n\t\t\t[jetpack_subscription_form\n\t\t\t\tsubscribe_placeholder="${$}"\n\t\t\t\tshow_subscribers_total="${g}"\n\t\t\t\tbutton_on_newline="${A}"\n\t\t\t\tsubmit_button_text="${W}"\n\t\t\t\tcustom_background_emailfield_color="${q}"\n\t\t\t\tcustom_background_button_color="${G}"\n\t\t\t\tcustom_text_button_color="${_}"\n\t\t\t\tcustom_font_size="${j||m}"\n\t\t\t\tcustom_border_radius="${x||c}"\n\t\t\t\tcustom_border_weight="${S||u}"\n\t\t\t\tcustom_border_color="${N}"\n\t\t\t\tcustom_padding="${P||d}"\n\t\t\t\tcustom_spacing="${T||p}"\n\t\t\t\tsubmit_button_classes="${H}"\n\t\t\t\temail_field_classes="${V}"\n\t\t\t\tshow_only_email_and_button="true"\n\t\t\t]`))}},20121:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(20084),a=n(60293);const s={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:({className:e,attributes:t})=>(0,a.ZP)(e,t)}},76609:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(20084),a=n(60293);const s={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:({className:e,attributes:t})=>(0,a.ZP)(e,t,"check-text-defaults")}},11689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(20084),a=n(92167);const s={attributes:r.Z,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:a.ZP}},92167:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A});var r=n(51806),a=n(52175),s=n(69307),o=n(65235),i=n.n(o),l=n(92819),c=n(20084);const u=0,d=1,p=15,m=10,g=16;function A({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:o,buttonOnNewLine:A,submitButtonText:h,emailFieldBackgroundColor:E,customEmailFieldBackgroundColor:f,emailFieldGradient:b,customEmailFieldGradient:C,buttonBackgroundColor:v,customButtonBackgroundColor:k,buttonGradient:B,customButtonGradient:y,textColor:w,customTextColor:_,fontSize:I,customFontSize:j,borderRadius:x,borderWeight:S,borderColor:Q,customBorderColor:N,padding:P,spacing:T}=t,R=!!a.__experimentalGetGradientClass,Z=(0,a.getColorClassName)("color",w),L=(0,a.getFontSizeClass)(I),M=(0,a.getColorClassName)("border-color",Q),D=(0,a.getColorClassName)("background-color",v),F=R?(0,a.__experimentalGetGradientClass)(B):void 0,z=(0,a.getColorClassName)("background-color",E),O=R?(0,a.__experimentalGetGradientClass)(b):void 0,U=i()(0===x?"no-border-radius":void 0,L,M),H=i()(U,w?"has-text-color":void 0,Z,v||B?"has-background":void 0,D,F),V=i()(U,z,O),q=!z&&C?C:f,G=!D&&y?y:k,$={subscribe_placeholder:n!==c.Z.subscribePlaceholder.default?n:void 0,show_subscribers_total:o,button_on_newline:A,submit_button_text:h!==c.Z.submitButtonText.default?h:void 0,custom_background_emailfield_color:q,custom_background_button_color:G,custom_text_button_color:_,custom_font_size:j||g,custom_border_radius:x||u,custom_border_weight:S||d,custom_border_color:N,custom_padding:P||p,custom_spacing:T||m,submit_button_classes:H,email_field_classes:V,show_only_email_and_button:!0},W=(0,l.reduce)($,((e,t,n)=>void 0===t?e:e+` ${n}="${t}"`),"");return(0,r.createElement)("div",{className:i()(e,"wp-block-jetpack-subscriptions__supports-newline",A?"wp-block-jetpack-subscriptions__use-newline":void 0,o?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(s.RawHTML,null,`[jetpack_subscription_form${W}]`))}},29053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65736);const __=r.__,a={subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},79024:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(29053),a=n(62788);const s={attributes:r.Z,save:a.Z}},62788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(52175),s=n(69307),o=n(65235),i=n.n(o),l=n(92819),c=n(29053);const u=0,d=1,p=15,m=10,g="16px";function A({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:o,buttonOnNewLine:A,submitButtonText:h,emailFieldBackgroundColor:E,customEmailFieldBackgroundColor:f,emailFieldGradient:b,customEmailFieldGradient:C,buttonBackgroundColor:v,customButtonBackgroundColor:k,buttonGradient:B,customButtonGradient:y,textColor:w,customTextColor:_,fontSize:I,customFontSize:j,borderRadius:x,borderWeight:S,borderColor:Q,customBorderColor:N,padding:P,spacing:T,buttonWidth:R}=t,Z=!!a.__experimentalGetGradientClass,L=(0,a.getColorClassName)("color",w),M=(0,a.getFontSizeClass)(I),D=(0,a.getColorClassName)("border-color",Q),F=(0,a.getColorClassName)("background-color",v),z=Z?(0,a.__experimentalGetGradientClass)(B):void 0,O=(0,a.getColorClassName)("background-color",E),U=Z?(0,a.__experimentalGetGradientClass)(b):void 0,H=i()(0===x?"no-border-radius":void 0,M,D),V=i()(H,w?"has-text-color":void 0,L,v||B?"has-background":void 0,F,z),q=i()(H,O,U),G=!O&&C?C:f,$=!F&&y?y:k,W=R||void 0,J={subscribe_placeholder:n!==c.Z.subscribePlaceholder.default?n:void 0,show_subscribers_total:o,button_on_newline:A,submit_button_text:h!==c.Z.submitButtonText.default?h:void 0,custom_background_emailfield_color:G,custom_background_button_color:$,custom_text_button_color:_,custom_font_size:j||g,custom_border_radius:x||u,custom_border_weight:S||d,custom_border_color:N,custom_button_width:W,custom_padding:P||p,custom_spacing:T||m,submit_button_classes:V,email_field_classes:q,show_only_email_and_button:!0},Y=(0,l.reduce)(J,((e,t,n)=>void 0===t?e:e+` ${n}="${t}"`),"");return(0,r.createElement)("div",{className:i()(e,"wp-block-jetpack-subscriptions__supports-newline",A?"wp-block-jetpack-subscriptions__use-newline":void 0,o?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(s.RawHTML,null,`[jetpack_subscription_form${Y}]`))}},11109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65736);const __=r.__,a={subscribePlaceholder:{type:"string",default:__("Type your email…","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"},successMessage:{type:"string",default:__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.","jetpack")}}},68600:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(11109),a=n(28135);const s={attributes:r.Z,save:a.ZP}},28135:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>h});var r=n(51806),a=n(52175),s=n(69307),o=n(65235),i=n.n(o),l=n(92819),c=n(11109);const u=0,d=1,p=15,m=10,g="16px",A=e=>e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\[/g,"[").replace(/\]/g,"]").replace(/\u00a0/g," ").replace(/\u200b/g,"​");function h({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:o,buttonOnNewLine:h,submitButtonText:E,emailFieldBackgroundColor:f,customEmailFieldBackgroundColor:b,emailFieldGradient:C,customEmailFieldGradient:v,buttonBackgroundColor:k,customButtonBackgroundColor:B,buttonGradient:y,customButtonGradient:w,textColor:_,customTextColor:I,fontSize:j,customFontSize:x,borderRadius:S,borderWeight:Q,borderColor:N,customBorderColor:P,padding:T,spacing:R,buttonWidth:Z,successMessage:L}=t,M=!!a.__experimentalGetGradientClass,D=(0,a.getColorClassName)("color",_),F=(0,a.getFontSizeClass)(j),z=(0,a.getColorClassName)("border-color",N),O=(0,a.getColorClassName)("background-color",k),U=M?(0,a.__experimentalGetGradientClass)(y):void 0,H=(0,a.getColorClassName)("background-color",f),V=M?(0,a.__experimentalGetGradientClass)(C):void 0,q=i()(0===S?"no-border-radius":void 0,F,z),G=i()(q,_?"has-text-color":void 0,D,k||y?"has-background":void 0,O,U),$=i()(q,H,V),W=!H&&v?v:b,J=!O&&w?w:B,Y=Z||void 0,K={subscribe_placeholder:n!==c.Z.subscribePlaceholder.default?n:void 0,show_subscribers_total:o,button_on_newline:h,submit_button_text:E!==c.Z.submitButtonText.default?E:void 0,custom_background_emailfield_color:W,custom_background_button_color:J,custom_text_button_color:I,custom_font_size:x||g,custom_border_radius:S||u,custom_border_weight:Q||d,custom_border_color:P,custom_button_width:Y,custom_padding:T||p,custom_spacing:R||m,submit_button_classes:G,email_field_classes:$,show_only_email_and_button:!0,success_message:L},X=(0,l.reduce)(K,((e,t,n)=>void 0===t?e:e+` ${n}="${A(t.toString())}"`),"");return(0,r.createElement)("div",{className:i()(e,"wp-block-jetpack-subscriptions__supports-newline",h?"wp-block-jetpack-subscriptions__use-newline":void 0,o?"wp-block-jetpack-subscriptions__show-subs":void 0)},(0,r.createElement)(s.RawHTML,null,`[jetpack_subscription_form${X}]`))}},84744:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(65736);const __=r.__,a={subscribePlaceholder:{type:"string",default:__("Type your email…","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"},successMessage:{type:"string",default:__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.","jetpack")}}},39583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(84744),a=n(24366);const s={attributes:r.Z,migrate:e=>({includeSocialFollowers:!0,...e}),save:a.Z}},24366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(65235),s=n.n(a);function o({className:e,attributes:t}){const{showSubscribersTotal:n,buttonOnNewLine:a}=t;return(0,r.createElement)("div",{className:s()(e,"wp-block-jetpack-subscriptions__supports-newline",a?"wp-block-jetpack-subscriptions__use-newline":void 0,n?"wp-block-jetpack-subscriptions__show-subs":void 0)})}},99343:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(82674),a=n.n(r),s=n(51806),o=n(52947),i=n(88275),l=n(13419),c=n(52175),u=n(55609),d=n(94333),p=n(9818),m=n(69307),g=n(65736),A=n(65235),h=n.n(A),E=n(92819),f=n(81518),b=n(4554),C=n(19617),v=n(88966),k=n(7652),B=n(56071),y=n(58841),w=n(57532),_=n(68269),I=n(22750);const _n=g._n,{getComputedStyle:j}=window,x=!!c.__experimentalUseGradient,S=B.name.replace("jetpack/",""),Q=(0,u.withFallbackStyles)(((e,t)=>{const{buttonBackgroundColor:n,textColor:r}=t,a=n&&n.color,s=r&&r.color,o=e.querySelector(".wp-block-jetpack-subscriptions__button");return{fallbackButtonBackgroundColor:a||!e?void 0:o&&j(o).backgroundColor,fallbackTextColor:s||!e?void 0:o&&j(o).color}}));const N=(0,d.compose)([(0,p.withSelect)((e=>{const t=e("jetpack/membership-products")?.getNewsletterTierProducts();return{hasTierPlans:0!==t?.length}})),(0,c.withColors)({emailFieldBackgroundColor:"backgroundColor"},{buttonBackgroundColor:"backgroundColor"},{textColor:"color"},"borderColor"),(0,c.withFontSizes)("fontSize"),Q,e=>t=>(0,s.createElement)(i.ZP,null,(0,s.createElement)(e,t))])((function(e){const{attributes:t,setAttributes:n,emailFieldBackgroundColor:r,buttonBackgroundColor:i,setButtonBackgroundColor:A,fallbackButtonBackgroundColor:j,textColor:Q,fallbackTextColor:N,setTextColor:P,borderColor:T,setBorderColor:R,fontSize:Z,hasTierPlans:L}=e,M=(0,c.useBlockProps)(),{isLoadingModules:D,isChangingStatus:F,isModuleActive:z,changeStatus:O}=(0,l.el)(S),U=(0,b.S)(B.attributes,t);(0,E.isEqual)(U,t)||n(U);const{borderRadius:H,borderWeight:V,buttonWidth:q,className:G,includeSocialFollowers:$,padding:W,spacing:J,submitButtonText:Y=y.Ks,subscribePlaceholder:K=y.n4,showSubscribersTotal:X,buttonOnNewLine:ee,successMessage:te=y.r9}=U,ne=(0,f.t)(B.styles,G),{subscriberCount:re,subscriberCountString:ae}=(0,p.useSelect)((e=>{if(!z)return{subscriberCounts:0,subscriberCountString:""};const{emailSubscribers:t,socialFollowers:n}=e(k.h).getSubscriberCounts();let r=t;return $&&(r+=n),{subscriberCount:r,subscriberCountString:(0,g.sprintf)(/* translators: Placeholder is a number of subscribers. */ | |
| 106 | -_n("Join %s other subscriber","Join %s other subscribers",r,"jetpack"),(0,o.Z)(r,{notation:"compact",maximumFractionDigits:1}))}})),se=x?(0,c.__experimentalUseGradient)({gradientAttribute:"emailFieldGradient",customGradientAttribute:"customEmailFieldGradient"}):{},oe=x?(0,c.__experimentalUseGradient)({gradientAttribute:"buttonGradient",customGradientAttribute:"customButtonGradient"}):{},ie={"no-border-radius":0===H,[Z.class]:Z.class,"has-text-color":Q.color,[Q.class]:Q.class},le={...ie,"has-background":r.color||se.gradientValue,[r.class]:!se.gradientValue&&r.class,[se.gradientClass]:se.gradientClass},ce={...ie,"has-background":i.color||oe.gradientValue,[i.class]:!oe.gradientValue&&i.class,[oe.gradientClass]:oe.gradientClass},ue=e=>e||y.FP,de={color:Q.color,borderColor:T.color,borderRadius:H?H+"px":y.S9+"px",borderWidth:V?V+"px":y.XJ+"px",fontSize:Z.size?Z.size:y.tm,padding:(e=>{const t=e||y.HE;return t+"px "+Math.round(1.5*t)+"px "+t+"px "+Math.round(1.5*t)+"px"})(W)},pe={"--subscribe-block-border-radius":H?H+"px":y.S9+"px"},me={...de,...!r.color&&se.gradientValue?{background:se.gradientValue}:{backgroundColor:r.color}},ge={...de,...!i.color&&oe.gradientValue?{background:oe.gradientValue}:{backgroundColor:i.color},width:q};"button"!==ne&&(ee?ge.marginTop=ue(J)+"px":ge.marginLeft=ue(J)+"px");const Ae=(0,d.usePrevious)(i);let he;return(0,m.useEffect)((()=>{z&&Ae?.color===T?.color&&T?.color!==i?.color&&R(i.color)}),[i,Ae,T,R,z]),he=D?(0,s.createElement)(I.Z,null):z?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.InspectorControls,null,(0,s.createElement)(w.Z,{buttonBackgroundColor:i,borderColor:T,buttonGradient:oe,borderRadius:H,borderWeight:V,buttonOnNewLine:ee,emailFieldBackgroundColor:r,fallbackButtonBackgroundColor:j,fallbackTextColor:N,fontSize:Z,includeSocialFollowers:$,isGradientAvailable:x,padding:W,setAttributes:n,setBorderColor:R,setButtonBackgroundColor:A,setTextColor:P,showSubscribersTotal:X,spacing:J,subscriberCount:re,textColor:Q,buttonWidth:q,subscribePlaceholder:K,submitButtonText:Y,successMessage:te})),(0,C.M)()&&(0,s.createElement)(c.BlockControls,null,(0,s.createElement)(u.Toolbar,null,(0,s.createElement)(v.ZP,{context:"toolbar",hasTierPlans:L}))),(0,s.createElement)("div",{style:pe},(0,s.createElement)("div",{className:"wp-block-jetpack-subscriptions__container is-not-subscriber"},(0,s.createElement)("div",{className:"wp-block-jetpack-subscriptions__form",role:"form"},(0,s.createElement)("div",{className:"wp-block-jetpack-subscriptions__form-elements"},"button"!==ne&&(0,s.createElement)(u.TextControl,{placeholder:K,disabled:!0,className:h()(le,"wp-block-jetpack-subscriptions__textfield"),style:me}),(0,s.createElement)(c.RichText,{className:h()(ce,"wp-block-jetpack-subscriptions__button","wp-block-button__link"),onChange:e=>n({submitButtonText:e}),style:ge,value:Y,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})))),X&&(0,s.createElement)("div",{className:"wp-block-jetpack-subscriptions__subscount"},ae))):(0,s.createElement)(_.f,{changeStatus:O,isModuleActive:z,isLoading:F}),(0,s.createElement)("div",a()({},M,{className:h()(M.className,"wp-block-jetpack-subscriptions__container","wp-block-jetpack-subscriptions__supports-newline",ee?"wp-block-jetpack-subscriptions__use-newline":void 0,X?"wp-block-jetpack-subscriptions__show-subs":void 0)}),he)}))},57780:(e,t,n)=>{"use strict";var r=n(51806),a=n(13419),s=n(4981),o=n(92694),i=n(31985),l=n(56071),c=n(2916),u=n(99343),d=n(79914);const p=l.name.replace("jetpack/","");(0,i.S)(l,{edit:u.Z,transforms:{from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"blog_subscription"===e,transform:({instance:e})=>(0,s.createBlock)("jetpack/subscriptions",{showSubscribersTotal:e.raw.show_subscribers_total,submitButtonText:e.raw.subscribe_button,subscribePlaceholder:e.raw.subscribe_placeholder,successMessage:e.raw.success_message})},{type:"block",isMultiBlock:!1,blocks:["core/buttons"],transform:(e,t)=>{if(!t?.length)return(0,s.createBlock)("jetpack/subscriptions");const n=[];return t.forEach((e=>{const t=e?.attributes?.text;n.push((0,s.createBlock)("jetpack/subscriptions",{...t?{submitButtonText:t}:{}}))})),n}}]},deprecated:c.Z}),(0,a.o_)(p,{render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.Z,null))}),(0,o.addFilter)("blocks.registerBlockType","jetpack-subscriptions-nav-item",((e,t)=>"core/navigation"===t?{...e,allowedBlocks:[...e.allowedBlocks??[],"jetpack/subscriptions"]}:e))},18005:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(32054),s=n(13419),o=n(86989),i=n.n(o),l=n(55609),c=n(9818),u=n(12238),d=n(69307),p=n(65736),m=n(79201),g=n(92770);const __=p.__;function A({isModalOpen:e,closeModal:t}){const[n,o]=(0,d.useState)(!1),[p,A]=(0,d.useState)(!1),[h,E]=(0,d.useState)(!1),f=(0,c.useSelect)((e=>e("core/editor").getCurrentPostId())),{__unstableSaveForPreview:b}=(0,c.useDispatch)(u.store),[C]=(0,a.Z)("sm"),{tracks:v}=(0,s.z$)();return(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(l.Modal,{className:"jetpack-email-preview",onRequestClose:()=>{t(),o(!1)}},(0,r.createElement)(l.__experimentalHStack,{alignment:"topLeft"},(0,r.createElement)(l.__experimentalVStack,{className:"jetpack-email-preview__main",alignment:"topLeft"},(0,r.createElement)("h1",{className:"jetpack-email-preview__title"},__("Send a test email","jetpack")),h&&(0,r.createElement)(l.__experimentalHStack,{className:"jetpack-email-preview__email-sent"},h),n?(0,r.createElement)(l.__experimentalHStack,{className:"jetpack-email-preview__email-sent"},(0,r.createElement)(l.Icon,{className:"jetpack-email-preview__check",icon:m.Z,size:28}),(0,r.createElement)("div",{className:"jetpack-email-preview__sent_text"},__("Email sent successfully","jetpack"))):(0,r.createElement)(l.__experimentalHStack,null,(0,r.createElement)(l.TextControl,{className:"jetpack-email-preview__email",value:window?.Jetpack_Editor_Initial_State?.tracksUserData?.email,disabled:!0}),(0,r.createElement)(l.Button,{className:"jetpack-email-preview__button",variant:"primary",onClick:async()=>{v.recordEvent("jetpack_send_email_preview",{post_id:f}),A(!0),"function"==typeof b&&await b(),i()({path:"/wpcom/v2/send-email-preview/",method:"POST",data:{id:f}}).then((()=>{A(!1),o(!0)})).catch((e=>{A(!1),e.message?E(e.message):E(__("Whoops, we have encountered an error. Please try again later.","jetpack"))}))},isBusy:p},__("Send","jetpack")))),!C&&(0,r.createElement)("img",{className:"jetpack-email-preview__img",src:g,alt:""}))))}},79914:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(9818),l=n(72067),c=n(12238),u=n(69307),d=n(65736),p=n(61074),m=n(15381),g=n(40083),A=n(19617),h=n(52143),E=n(56080),f=n(88966),b=n(7652),C=n(56071),v=n(18005);const __=d.__,k=C.name.replace("jetpack/",""),B=({children:e})=>(0,r.createElement)(o.Flex,{align:"center",gap:4,direction:"column",style:{alignItems:"center"}},(0,r.createElement)(o.FlexItem,null,__("In order to send posts to your subscribers, activate the Subscriptions feature.","jetpack")),(0,r.createElement)(o.FlexItem,null,e),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(o.ExternalLink,{href:"https://jetpack.com/support/subscriptions/"},__("Learn more about Subscriptions","jetpack"))));function y({accessLevel:e}){return(0,r.createElement)(l.PluginDocumentSettingPanel,{className:"jetpack-subscribe-newsletter-panel",title:__("Access","jetpack"),icon:(0,r.createElement)(s.Pm,null),name:"jetpack-subscribe-newsletters-editor-panel"},(0,r.createElement)(h.al,{accessLevel:e}))}const w=()=>(0,r.createElement)(o.Notice,{status:"info",isDismissible:!1,className:"edit-post-post-visibility__notice"},__("You will be able to send newsletters once the site is published","jetpack")),_=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.PluginDocumentSettingPanel,{className:"jetpack-subscribe-newsletters-panel",title:__("Access","jetpack"),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(w,null)),(0,r.createElement)(l.PluginPrePublishPanel,{className:"jetpack-subscribe-newsletters-panel",title:__("Newsletter","jetpack"),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(w,null)),(0,r.createElement)(l.PluginPostPublishPanel,{className:"jetpack-subscribe-newsletters-panel",title:__("Newsletter","jetpack"),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(w,null)));function I({accessLevel:e,isModuleActive:t,showPreviewModal:n}){const{tracks:a}=(0,s.z$)(),{changeStatus:u,isLoadingModules:d,isChangingStatus:p}=(0,s.el)(k),m=()=>(a.recordEvent("jetpack_editor_subscriptions_enable"),u(!0)),A=(0,i.useSelect)((e=>{const n=e(c.store).getEditedPostAttribute("meta");return!t&&!d&&!n?.jetpack_post_was_ever_published})),b=(0,i.useSelect)((e=>e(c.store).getEditedPostVisibility())),C=(0,f.hc)(b,e);return!t&&A?(0,r.createElement)(l.PluginPrePublishPanel,{initialOpen:!0,name:"jetpack-subscribe-newsletters-panel",title:__("Newsletter","jetpack"),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(B,null,(0,r.createElement)(o.Button,{variant:"secondary",isBusy:p,disabled:t||p,onClick:m},p?__("Activating Subscriptions","jetpack"):__("Activate Subscriptions","jetpack",0)))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.PluginPrePublishPanel,{initialOpen:!0,name:"jetpack-subscribe-access-panel",className:"jetpack-subscribe-newsletters-panel",title:(0,r.createElement)(r.Fragment,null,__("Access:","jetpack"),e&&(0,r.createElement)("span",{className:"jetpack-subscribe-post-publish-panel__heading"},g.So[e].panelHeading)),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(h.al,{accessLevel:e})),(0,r.createElement)(l.PluginPrePublishPanel,{initialOpen:!0,name:"jetpack-subscribe-newsletters-panel",title:__("Newsletter","jetpack"),icon:(0,r.createElement)(s.Pm,null)},t&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.sF,null),C?(0,r.createElement)(f.$P,null):(0,r.createElement)(E.Z,{prePublish:!0,accessLevel:e}),(0,r.createElement)(o.Button,{variant:"link",onClick:n},__("Send test email","jetpack")))))}function j({accessLevel:e}){const{isStripeConnected:t}=(0,i.useSelect)((e=>{const{getConnectUrl:t}=e(b.h);return{isStripeConnected:null===t()}}));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.PluginPostPublishPanel,{title:__("Newsletter","jetpack"),className:"jetpack-subscribe-newsletters-panel jetpack-subscribe-post-publish-panel",icon:(0,r.createElement)(s.Pm,null),name:"jetpack-subscribe-newsletters-postpublish-panel"},(0,r.createElement)(E.Z,{accessLevel:e})),!t&&(0,r.createElement)(l.PluginPostPublishPanel,{className:"jetpack-subscribe-newsletters-panel paid-newsletters-post-publish-panel",title:__("Set up a paid newsletter","jetpack"),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(o.PanelRow,null,(0,r.createElement)("p",null,__("Allow your subscribers to support your work. Connect a Stripe account to get started.","jetpack"))),(0,r.createElement)("div",{role:"link",className:"post-publish-panel__postpublish-buttons"},(0,r.createElement)(o.Button,{target:"_blank",variant:"secondary",href:(0,a.Z)("wpcom-earn",{site:(0,s.lQ)()})},__("Turn on paid newsletters","jetpack"),(0,r.createElement)(p.Z,{icon:m.Z,className:"paid-newsletters-post-publish-panel__external_icon"})))))}function x(){const{isModuleActive:e}=(0,s.el)(k),t=(0,i.useSelect)((e=>e(c.store).getCurrentPostType()),[]),[n,a]=(0,u.useState)(!1),{tracks:o}=(0,s.z$)(),l=(0,A._)(t);return"post"!==t?null:(0,A.M)()?(0,s.M6)()||(0,s.aQ)()?(0,r.createElement)(_,null):(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(y,{accessLevel:l}),(0,r.createElement)(I,{accessLevel:l,isModuleActive:e,showPreviewModal:()=>{o.recordEvent("jetpack_send_email_preview_prepublish_preview_button"),a(!0)}}),e&&(0,r.createElement)(j,{accessLevel:l}),(0,r.createElement)(v.Z,{isModalOpen:n,closeModal:()=>a(!1)})):null}},68269:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var r=n(51806),a=n(13419),s=n(55609),o=n(69307),i=n(65736),l=n(56071);const __=i.__,c=(0,a.dM)(l),u=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:i}=(0,a.z$)();return(0,o.useEffect)((()=>{i.recordEvent("jetpack_editor_subscriptions_placeholder_view")}),[i]),(0,r.createElement)(s.Placeholder,{icon:c,instructions:__("You'll need to activate the Subscriptions feature to use the Subcribe block.","jetpack"),label:l.title},(0,r.createElement)(s.Button,{disabled:n||t,isBusy:t,onClick:()=>(i.recordEvent("jetpack_editor_subscriptions_enable"),e(!0)),variant:"secondary"},t?__("Activating Subscriptions","jetpack"):__("Activate Subscriptions","jetpack",0)),(0,r.createElement)("div",{className:"membership-button__disclaimer"},(0,r.createElement)(s.ExternalLink,{href:"https://jetpack.com/support/subscriptions/"},__("Learn more about the Subscriptions feature.","jetpack"))))}},22750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(22636),s=n(55609);const o=function(){return(0,r.createElement)(s.Placeholder,null,(0,r.createElement)(s.Flex,{gap:2,direction:"column",style:{width:"100%"}},(0,r.createElement)(s.Flex,{gap:4},(0,r.createElement)(s.FlexItem,null,(0,r.createElement)(a.Z,{width:30,height:30})),(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{width:"90%",height:30}))),(0,r.createElement)(s.Flex,{style:{marginTop:12}},(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{height:30,width:"60%"}))),(0,r.createElement)(s.Flex,{style:{marginTop:12}},(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{width:150,height:50}))),(0,r.createElement)(s.Flex,{style:{marginTop:18}},(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{width:"90%",height:16})))))}},3740:(e,t,n)=>{"use strict";n.d(t,{GP:()=>i,P0:()=>c,RA:()=>r,Z5:()=>o,hI:()=>s,q3:()=>a,xJ:()=>l});const r=["image"],a=4,s=20,o=20,i=2e3,l="circle",c=[{isDefault:!0,name:"rectangular"},{name:l},{name:"square"},{name:"columns"}]},10567:(e,t,n)=>{"use strict";n.d(t,{J:()=>m,o:()=>g});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(94545),c=n(3740),u=n(38897),d=n(45488);const __=i.__,p=[{value:"attachment",label:__("Attachment Page","jetpack")},{value:"media",label:__("Media File","jetpack")},{value:"none",label:__("None","jetpack")}],m=({images:e,onSelectImages:t,imageFilter:n,onFilterChange:i})=>(0,r.createElement)(a.BlockControls,null,!!e.length&&(0,r.createElement)(o.Fragment,null,(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.ToolbarItem,null,(()=>(0,r.createElement)(a.MediaUpload,{onSelect:t,allowedTypes:c.RA,multiple:!0,gallery:!0,value:e.map((e=>e.id)),render:({open:e})=>(0,r.createElement)(l.Z,{label:__("Edit Gallery","jetpack"),onClick:e})})))),(0,r.createElement)(u.Z,{value:n,onChange:i}))),g=({layoutStyle:e,images:t,columns:n,onColumnsChange:o,roundedCorners:i,onRoundedCornersChange:l,linkTo:u,onLinkToChange:m})=>(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:__("Tiled Gallery settings","jetpack")},(0,d.Q)(e)&&t.length>1&&(0,r.createElement)(s.RangeControl,{label:__("Columns","jetpack"),value:n,onChange:o,min:1,max:Math.min(c.hI,t.length)}),e!==c.xJ&&(0,r.createElement)(s.RangeControl,{label:__("Rounded corners","jetpack"),value:i,onChange:l,min:0,max:c.Z5}),(0,r.createElement)(s.SelectControl,{label:__("Link To","jetpack"),value:u,onChange:m,options:p})))},73463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(76476),a=n(43125),s=n(67525),o=n(99504);const i=[n(20618),o,s,a,r]},1377:(e,t,n)=>{"use strict";n.d(t,{EU:()=>o,GP:()=>s,P0:()=>i,hI:()=>a,q3:()=>r});const r=4,a=20,s=2e3,o="rectangular",i=[{isDefault:!0,name:o},{name:"circle"},{name:"square"},{name:"columns"}]},56005:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(11313);function s(e){const{"aria-label":t,alt:n,height:s,id:o,link:i,linkTo:l,origUrl:c,url:u,width:d}=e;if((0,a.isBlobURL)(c))return null;let p;switch(l){case"media":p=u;break;case"attachment":p=i}const m=(0,r.createElement)("img",{alt:n,"aria-label":t,"data-height":s,"data-id":o,"data-link":i,"data-url":c,"data-width":d,src:u});return(0,r.createElement)("figure",{className:"tiled-gallery__item"},p?(0,r.createElement)("a",{href:p},m):m)}},76476:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>a,save:()=>r.Z,support:()=>s});var r=n(91507);const a={align:{default:"center",type:"string"},className:{default:`is-style-${n(1377).EU}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},s={align:["center","wide","full"],customClassName:!1,html:!1}},52235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e}){return(0,r.createElement)("div",{className:"tiled-gallery__col"},e)}},89754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},15645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(11313),s=n(69307),o=n(65736),i=n(69424),l=n(1377),c=n(56005),u=n(30791),d=n(79313);const __=o.__;class p extends s.Component{photonize({height:e,width:t,url:n}){if(!n)return;if((0,a.isBlobURL)(n)||/^https?:\/\/localhost/.test(n))return n;const r=n.split("?",1)[0],s=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)?g:i.Z,{layoutStyle:o}=this.props;if(m(o)&&t&&e){const n=Math.min(l.GP,t,e);return s(r,{resize:`${n},${n}`})}return s(r)}renderImage(e,t){const{images:n,linkTo:a,selectedImage:s}=this.props,i=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 107 | -__("image %1$d of %2$d in gallery","jetpack"),t+1,n.length);return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":i,height:e.height,id:e.id,origUrl:e.url,isSelected:s===t,key:t,link:e.link,linkTo:a,url:this.photonize(e),width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:s,layoutStyle:o}=this.props,i=m(o)?d.Z:u.Z,l=this.props.images.map(this.renderImage,this);return(0,r.createElement)("div",{className:n},(0,r.createElement)(i,{align:e,columns:a,images:s,layoutStyle:o,renderedImages:l}),t)}}function m(e){return["circle","square"].includes(e)}function g(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},30791:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(69307),s=n(6209),o=n(52235),i=n(89754),l=n(36472),c=n(6817),u=n(6648);class d extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t;(0,u.W)(n).forEach((t=>(0,u.i)(t,e)))}}))};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new s.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}render(){const{align:e,columns:t,images:n,layoutStyle:a,renderedImages:s}=this.props,u=(0,c.h9)(n),d="columns"===a?(0,c.sv)(u,t):(0,c.T9)(u,{isWide:["full","wide"].includes(e)});let p=0;return(0,r.createElement)(i.Z,{galleryRef:this.gallery},d.map(((e,t)=>(0,r.createElement)(l.Z,{key:t},e.map(((e,t)=>{const n=s.slice(p,p+e);return p+=e,(0,r.createElement)(o.Z,{key:t},n)}))))))}}},6817:(e,t,n)=>{"use strict";n.d(t,{T9:()=>w,h9:()=>a,sv:()=>o});var r=n(92819);function a(e){return(0,r.map)(e,s)}function s({height:e,width:t}){return e&&t?t/e:1}function o(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let s=e,o=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,(t=>{const r=o<=(e+1)*n;return r&&(o+=t),r})).length;a.push(t),s=(0,r.drop)(s,t)}return a.push(s.length),[a]}const i=_([2,1,2],5),l=I([j,j,x,j,j]),c=I([j,j,j,x,j,j,j]),u=_([3,1,3],5),d=I([x,j,j,x]),p=_([1,2,1],5),m=I([x,j,j,j]),g=_([1,3],3),A=I([j,j,j,x]),h=_([3,1],3),E=I([Q(1.6),(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2))]),f=_([1,2],3),b=_([1,1,1,1,1],1),C=_([1,1,1,1],1),v=_([1,1,1],3),k=I([(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2)),Q(1.6)]),B=_([2,1],3),y=I([function(e){return e>=2}]);function w(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let s;s=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&g(e)?[1,3]:A(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&b(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return C(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&v(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:k(a)&&B(e)?[2,1]:y(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const o=e.concat([s]),w=(0,r.sum)(s),_=a.slice(w);return n(o,_)};return n([],e)}function _(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function I(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function j(e){return e>=1&&e<2}function x(e){return e<1}function S(e){return t=>t>=e}function Q(e){return t=>t<e}},6648:(e,t,n)=>{"use strict";n.d(t,{W:()=>o,i:()=>s});var r=n(1377);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function s(e,t){!function(e,[t,n],s){const o=1/t*(s-r.q3*(e.childElementCount-1)-n);!function(e,{rawHeight:t,rowWidth:n}){const s=i(e),o=s.map((e=>(t-r.q3*(e.childElementCount-1))*c(e)[0])),d=a(o,n);s.forEach(((e,n)=>{const s=o[n],i=d[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const s=l(e).map((e=>r/u(e))),o=a(s,t);Array.from(e.children).forEach(((e,t)=>{const r=o[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)}))}(e,{colHeight:t-r.q3*(e.childElementCount-1),width:i,rawWidth:s})}))}(e,{rawHeight:o,rowWidth:s-r.q3*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(c).reduce((([e,t],[n,r])=>[e+n,t+r]),[0,0]);return t}(e),t)}function o(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},36472:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(65235),s=n.n(a);function o({children:e,className:t}){return(0,r.createElement)("div",{className:s()("tiled-gallery__row",t)},e)}},79313:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(92819),s=n(1377),o=n(52235),i=n(89754),l=n(36472);function c({columns:e,renderedImages:t}){const n=Math.min(s.hI,e),c=t.length%n;return(0,r.createElement)(i.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(o.Z,{key:t},e)))))))}},91507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(81518),s=n(1377),o=n(15645);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{images:t}=e;if(!t.length)return null;const{align:n,className:l,columns:c=i(e),linkTo:u}=e;return(0,r.createElement)(o.Z,{align:n,className:l,columns:c,images:t,layoutStyle:(0,a.t)(s.P0,l),linkTo:u})}},86738:(e,t,n)=>{"use strict";n.d(t,{EU:()=>i,GP:()=>s,P0:()=>l,Z5:()=>a,hI:()=>r,xJ:()=>o});const r=20,a=20,s=2e3,o="circle",i="rectangular",l=[{isDefault:!0,name:i},{name:o},{name:"square"},{name:"columns"}]},64931:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(11313),s=n(65235),o=n.n(s);function i(e){const{alt:t,imageFilter:n,height:s,id:i,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=d;break;case"attachment":m=l}const g=(0,r.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":p,src:d});return(0,r.createElement)("figure",{className:o()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},g):g)}},43125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>s,save:()=>a.Z,supports:()=>o});var r=n(86738),a=n(68405);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},o={align:["center","wide","full"],customClassName:!1,html:!1}},85407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e}){return(0,r.createElement)("div",{className:"tiled-gallery__col"},e)}},40195:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},73208:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(69307),s=n(65736),o=n(65235),i=n.n(o),l=n(86738),c=n(64931),u=n(67091),d=n(84420),p=n(87178);const __=s.__;class m extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:o,linkTo:i,layoutStyle:l,selectedImage:d}=this.props,p=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 108 | -__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:m,srcSet:g}=(0,u.z)(e,{layoutStyle:l});return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":p,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:d===t,key:t,link:e.link,linkTo:i,origUrl:e.url,showMovers:o.length>1,srcSet:g,url:m,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:s,layoutStyle:o,roundedCorners:c}=this.props,m=(0,u.v)(o)?p.Z:d.Z,g=this.props.images.map(this.renderImage,this),A=o!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{className:i()(n,{[`has-rounded-corners-${A}`]:A>0})},(0,r.createElement)(m,{align:e,columns:a,images:s,layoutStyle:o,renderedImages:g}),t)}}},84420:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(69307),s=n(85407),o=n(40195),i=n(56243),l=n(12126);class c extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:n,layoutStyle:a,renderedImages:c}=this.props,u=(0,l.h9)(n),d="columns"===a?(0,l.sv)(u,t):(0,l.T9)(u,{isWide:["full","wide"].includes(e)});let p=0;return(0,r.createElement)(o.Z,{galleryRef:this.gallery},d.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e.map(((e,t)=>{const n=c.slice(p,p+e);return p+=e,(0,r.createElement)(s.Z,{key:t},n)}))))))}}},12126:(e,t,n)=>{"use strict";n.d(t,{T9:()=>w,h9:()=>a,sv:()=>o});var r=n(92819);function a(e){return(0,r.map)(e,s)}function s({height:e,width:t}){return e&&t?t/e:1}function o(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let s=e,o=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,(t=>{const r=o<=(e+1)*n;return r&&(o+=t),r})).length;a.push(t),s=(0,r.drop)(s,t)}return a.push(s.length),[a]}const i=_([2,1,2],5),l=I([j,j,x,j,j]),c=I([j,j,j,x,j,j,j]),u=_([3,1,3],5),d=I([x,j,j,x]),p=_([1,2,1],5),m=I([x,j,j,j]),g=_([1,3],3),A=I([j,j,j,x]),h=_([3,1],3),E=I([Q(1.6),(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2))]),f=_([1,2],3),b=_([1,1,1,1,1],1),C=_([1,1,1,1],1),v=_([1,1,1],3),k=I([(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2)),Q(1.6)]),B=_([2,1],3),y=I([function(e){return e>=2}]);function w(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let s;s=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&g(e)?[1,3]:A(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&b(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return C(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&v(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:k(a)&&B(e)?[2,1]:y(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const o=e.concat([s]),w=(0,r.sum)(s),_=a.slice(w);return n(o,_)};return n([],e)}function _(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function I(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function j(e){return e>=1&&e<2}function x(e){return e<1}function S(e){return t=>t>=e}function Q(e){return t=>t<e}},56243:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(65235),s=n.n(a);function o({children:e,className:t}){return(0,r.createElement)("div",{className:s()("tiled-gallery__row",t)},e)}},87178:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(92819),s=n(86738),o=n(85407),i=n(40195),l=n(56243);function c({columns:e,renderedImages:t}){const n=Math.min(s.hI,e),c=t.length%n;return(0,r.createElement)(i.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(o.Z,{key:t},e)))))))}},68405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(81518),s=n(86738),o=n(73208);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:l,className:c,columns:u=i(e),linkTo:d,roundedCorners:p}=e;return(0,r.createElement)(o.Z,{align:l,className:c,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,a.t)(s.P0,c),linkTo:d,roundedCorners:p})}},67091:(e,t,n)=>{"use strict";n.d(t,{v:()=>i,z:()=>l});var r=n(11313),a=n(92819),s=n(69424),o=n(86738);function i(e){return["circle","square"].includes(e)}function l(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,r.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:l,width:u}=e,{layoutStyle:d}=t,p=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?c:s.Z;let m;if(i(d)&&u&&l){const e=Math.min(o.GP,u,l);m=p(n,{resize:`${e},${e}`})}else m=p(n);let g;if(i(d)){const e=Math.min(600,u,l),t=Math.min(o.GP,u,l);g=(0,a.range)(e,t,300).map((e=>{const t=p(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,u),t=Math.min(o.GP,u);g=(0,a.range)(e,t,300).map((e=>{const t=p(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:m},g&&{srcSet:g})}function c(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},13993:(e,t,n)=>{"use strict";n.d(t,{EU:()=>i,GP:()=>s,P0:()=>l,Z5:()=>a,hI:()=>r,xJ:()=>o});const r=20,a=20,s=2e3,o="circle",i="rectangular",l=[{isDefault:!0,name:i},{name:o},{name:"square"},{name:"columns"}]},21959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(11313),s=n(65235),o=n.n(s);function i(e){const{alt:t,imageFilter:n,height:s,id:i,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=d;break;case"attachment":m=l}const g=(0,r.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":p,src:d});return(0,r.createElement)("figure",{className:o()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},g):g)}},67525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>s,migrate:()=>i,save:()=>a.Z,supports:()=>o});var r=n(13993),a=n(5826);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},o={align:["center","wide","full"],customClassName:!1,html:!1},i=e=>{const t=Math.pow(10,5);return{...e,columnWidths:e.columnWidths.map((e=>e.map((e=>Math.round(e*t)/t))))}}},17410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,width:t}){const n=Math.pow(10,12),a=Math.round(t*n)/n,s=t?{flexBasis:`${a}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:s},e)}},46349:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},178:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(69307),s=n(65736),o=n(65235),i=n.n(o),l=n(13993),c=n(21959),u=n(11197),d=n(47510),p=n(65662);const __=s.__;class m extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:o,isSave:i,linkTo:l,layoutStyle:d,onMoveBackward:p,onMoveForward:m,onRemoveImage:g,onSelectImage:A,selectedImage:h,setImageAttributes:E}=this.props,f=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 109 | -__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:b,srcSet:C}=(0,u.z)(e,{layoutStyle:d});return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":f,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:h===t,key:t,link:e.link,linkTo:l,onMoveBackward:i?void 0:p(t),onMoveForward:i?void 0:m(t),onRemove:i?void 0:g(t),onSelect:i?void 0:A(t),origUrl:e.url,setAttributes:i?void 0:E(t),showMovers:o.length>1,srcSet:C,url:b,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:s,layoutStyle:o,roundedCorners:c,onResize:m,isSave:g,columnWidths:A}=this.props,h=(0,u.v)(o)?p.Z:d.Z,E=this.props.images.map(this.renderImage,this),f=o!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{className:i()(n,{[`has-rounded-corners-${f}`]:f>0})},(0,r.createElement)(h,{align:e,columns:a,columnWidths:g?A:void 0,images:s,layoutStyle:o,renderedImages:E,onResize:g?void 0:m}),t)}}},47510:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(69307),s=n(17410),o=n(46349),i=n(78922),l=n(3453);class c extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:n,layoutStyle:a,renderedImages:c,columnWidths:u}=this.props,d=(0,l.h9)(n),p="columns"===a?(0,l.sv)(d,t):(0,l.T9)(d,{isWide:["full","wide"].includes(e)});let m=0;return(0,r.createElement)(o.Z,{galleryRef:this.gallery},p.map(((e,t)=>(0,r.createElement)(i.Z,{key:t},e.map(((e,n)=>{const a=c.slice(m,m+e);return m+=e,(0,r.createElement)(s.Z,{key:n,width:u?.[t]?.[n]},a)}))))))}}},3453:(e,t,n)=>{"use strict";n.d(t,{T9:()=>w,h9:()=>a,sv:()=>o});var r=n(92819);function a(e){return(0,r.map)(e,s)}function s({height:e,width:t}){return e&&t?t/e:1}function o(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let s=e,o=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,(t=>{const r=o<=(e+1)*n;return r&&(o+=t),r})).length;a.push(t),s=(0,r.drop)(s,t)}return a.push(s.length),[a]}const i=_([2,1,2],5),l=I([j,j,x,j,j]),c=I([j,j,j,x,j,j,j]),u=_([3,1,3],5),d=I([x,j,j,x]),p=_([1,2,1],5),m=I([x,j,j,j]),g=_([1,3],3),A=I([j,j,j,x]),h=_([3,1],3),E=I([Q(1.6),(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2))]),f=_([1,2],3),b=_([1,1,1,1,1],1),C=_([1,1,1,1],1),v=_([1,1,1],3),k=I([(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2)),Q(1.6)]),B=_([2,1],3),y=I([function(e){return e>=2}]);function w(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let s;s=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&g(e)?[1,3]:A(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&b(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return C(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&v(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:k(a)&&B(e)?[2,1]:y(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const o=e.concat([s]),w=(0,r.sum)(s),_=a.slice(w);return n(o,_)};return n([],e)}function _(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function I(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function j(e){return e>=1&&e<2}function x(e){return e<1}function S(e){return t=>t>=e}function Q(e){return t=>t<e}},78922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(65235),s=n.n(a);function o({children:e,className:t}){return(0,r.createElement)("div",{className:s()("tiled-gallery__row",t)},e)}},65662:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(92819),s=n(13993),o=n(17410),i=n(46349),l=n(78922);function c({columns:e,renderedImages:t}){const n=Math.min(s.hI,e),c=t.length%n;return(0,r.createElement)(i.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(o.Z,{key:t},e)))))))}},5826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(81518),s=n(13993),o=n(178);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:l,className:c,columns:u=i(e),linkTo:d,roundedCorners:p,columnWidths:m}=e;return(0,r.createElement)(o.Z,{align:l,className:c,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,a.t)(s.P0,c),linkTo:d,roundedCorners:p,columnWidths:m})}},11197:(e,t,n)=>{"use strict";n.d(t,{v:()=>i,z:()=>l});var r=n(11313),a=n(92819),s=n(69424),o=n(13993);function i(e){return["circle","square"].includes(e)}function l(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,r.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:l,width:u}=e,{layoutStyle:d}=t,p=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?c:s.Z;let m;if(i(d)&&u&&l){const e=Math.min(o.GP,u,l);m=p(n,{resize:`${e},${e}`})}else m=p(n);let g;if(i(d)){const e=Math.min(600,u,l),t=Math.min(o.GP,u,l);g=(0,a.range)(e,t,300).map((e=>{const t=p(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,u),t=Math.min(o.GP,u);g=(0,a.range)(e,t,300).map((e=>{const t=p(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:m},g&&{srcSet:g})}function c(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},38698:(e,t,n)=>{"use strict";n.d(t,{EU:()=>l,GP:()=>o,P0:()=>c,Z5:()=>s,hI:()=>a,q3:()=>r,xJ:()=>i});const r=4,a=20,s=20,o=2e3,i="circle",l="rectangular",c=[{isDefault:!0,name:l},{name:i},{name:"square"},{name:"columns"}]},65597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(11313),s=n(65235),o=n.n(s);function i(e){const{alt:t,imageFilter:n,height:s,id:i,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=d;break;case"attachment":m=l}const g=(0,r.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,r.createElement)("figure",{className:o()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},g):g)}},99504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>s,save:()=>a.Z,supports:()=>o});var r=n(38698),a=n(26225);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r.EU}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},o={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},63866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,width:t}){const n=t?{flexBasis:`${t}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:n},e)}},750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},9230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(69307),s=n(65736),o=n(65235),i=n.n(o),l=n(38698),c=n(65597),u=n(74713),d=n(82265),p=n(72264);const __=s.__;class m extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:o,isSave:i,linkTo:l,layoutStyle:d,onMoveBackward:p,onMoveForward:m,onRemoveImage:g,onSelectImage:A,selectedImage:h,setImageAttributes:E}=this.props,f=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 110 | -__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),{src:b,srcSet:C}=(0,u.z)(e,{layoutStyle:d});return(0,r.createElement)(c.Z,{alt:e.alt,"aria-label":f,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:h===t,key:t,link:e.link,linkTo:l,onMoveBackward:i?void 0:p(t),onMoveForward:i?void 0:m(t),onRemove:i?void 0:g(t),onSelect:i?void 0:A(t),origUrl:e.url,setAttributes:i?void 0:E(t),showMovers:o.length>1,srcSet:C,url:b,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:s,layoutStyle:o,roundedCorners:c,onResize:m,style:g,isSave:A,columnWidths:h}=this.props,E=(0,u.v)(o)?p.Z:d.Z,f=this.props.images.map(this.renderImage,this),b=o!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{style:g,className:i()(n,{[`has-rounded-corners-${b}`]:b>0})},(0,r.createElement)(E,{align:e,columns:a,columnWidths:A?h:void 0,images:s,layoutStyle:o,renderedImages:f,onResize:A?void 0:m}),t)}}},82265:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(69307),s=n(6209),o=n(63866),i=n(750),l=n(2911),c=n(76981),u=n(76187);class d extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t,r=[];(0,u.W)(n).forEach((t=>{r.push((0,u.i)(t,e))})),void 0!==this.props.onResize&&this.props.onResize(r)}}))};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new s.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,n){let r=0;return e.map((e=>e.map((e=>{const n=t.slice(r,r+e);return r+=e,n})))).map((e=>(0,u.i)(e,n)))}render(){const{align:e,columns:t,images:n,layoutStyle:s,renderedImages:u}=this.props,d=(0,c.h9)(n),p="columns"===s?(0,c.sv)(d,t):(0,c.T9)(d,{isWide:["full","wide"].includes(e)}),m=a.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(p,u,1e3)})();let g=0;return(0,r.createElement)(i.Z,{galleryRef:this.gallery},p.map(((e,t)=>(0,r.createElement)(l.Z,{key:t},e.map(((e,n)=>{const a=u.slice(g,g+e);return g+=e,(0,r.createElement)(o.Z,{key:n,width:m?.[t]?.[n]},a)}))))))}}},76981:(e,t,n)=>{"use strict";n.d(t,{T9:()=>w,h9:()=>a,sv:()=>o});var r=n(92819);function a(e){return(0,r.map)(e,s)}function s({height:e,width:t}){return e&&t?t/e:1}function o(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let s=e,o=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,(t=>{const r=o<=(e+1)*n;return r&&(o+=t),r})).length;a.push(t),s=(0,r.drop)(s,t)}return a.push(s.length),[a]}const i=_([2,1,2],5),l=I([j,j,x,j,j]),c=I([j,j,j,x,j,j,j]),u=_([3,1,3],5),d=I([x,j,j,x]),p=_([1,2,1],5),m=I([x,j,j,j]),g=_([1,3],3),A=I([j,j,j,x]),h=_([3,1],3),E=I([Q(1.6),(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2))]),f=_([1,2],3),b=_([1,1,1,1,1],1),C=_([1,1,1,1],1),v=_([1,1,1],3),k=I([(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2)),Q(1.6)]),B=_([2,1],3),y=I([function(e){return e>=2}]);function w(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let s;s=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&g(e)?[1,3]:A(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&b(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return C(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&v(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:k(a)&&B(e)?[2,1]:y(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const o=e.concat([s]),w=(0,r.sum)(s),_=a.slice(w);return n(o,_)};return n([],e)}function _(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function I(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function j(e){return e>=1&&e<2}function x(e){return e<1}function S(e){return t=>t>=e}function Q(e){return t=>t<e}},76187:(e,t,n)=>{"use strict";n.d(t,{W:()=>o,i:()=>s});var r=n(38698);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function s(e,t){return function(e,[t,n],s){const o=1/t*(s-r.q3*(e.childElementCount-1)-n);return function(e,{rawHeight:t,rowWidth:n}){const s=i(e),o=s.map((e=>(t-r.q3*(e.childElementCount-1))*c(e)[0])),d=a(o,n);s.forEach(((e,n)=>{const s=o[n],i=d[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const s=l(e).map((e=>r/u(e))),o=a(s,t);Array.from(e.children).forEach(((e,t)=>{const r=o[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)}))}(e,{colHeight:t-r.q3*(e.childElementCount-1),width:i,rawWidth:s})}));return d.map((e=>parseFloat(e/n*100).toFixed(5)))}(e,{rawHeight:o,rowWidth:s-r.q3*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(c).reduce((([e,t],[n,r])=>[e+n,t+r]),[0,0]);return t}(e),t)}function o(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},2911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(65235),s=n.n(a);function o({children:e,className:t}){return(0,r.createElement)("div",{className:s()("tiled-gallery__row",t)},e)}},72264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(92819),s=n(38698),o=n(63866),i=n(750),l=n(2911);function c({columns:e,renderedImages:t}){const n=Math.min(s.hI,e),c=t.length%n;return(0,r.createElement)(i.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(o.Z,{key:t},e)))))))}},26225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(81518),s=n(38698),o=n(9230);function i(e){return Math.min(3,e.images.length)}function l({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:l,className:c,columns:u=i(e),linkTo:d,roundedCorners:p,columnWidths:m}=e;return(0,r.createElement)(o.Z,{align:l,className:c,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,a.t)(s.P0,c),linkTo:d,roundedCorners:p,columnWidths:m})}},74713:(e,t,n)=>{"use strict";n.d(t,{v:()=>c,z:()=>u});var r=n(13419),a=n(11313),s=n(92819),o=n(69424),i=n(99621),l=n(38698);function c(e){return["circle","square"].includes(e)}function u(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.Z)())return{src:e.url};if((0,a.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,r.Ug)()&&(0,r.M6)())return{src:e.url};const n=e.url.split("?",1)[0],{height:u,width:p}=e,{layoutStyle:m}=t,g=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)||!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()?d:o.Z;let A;if(c(m)&&p&&u){const e=Math.min(l.GP,p,u);A=g(n,{resize:`${e},${e}`})}else A=g(n);let h;if(c(m)){const e=Math.min(600,p,u),t=Math.min(l.GP,p,u);h=(0,s.range)(e,t,300).map((e=>{const t=g(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,p),t=Math.min(l.GP,p);h=(0,s.range)(e,t,300).map((e=>{const t=g(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:A},h&&{srcSet:h})}function d(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},36652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={align:{type:"string",default:"center"},className:{type:"string",default:"is-style-rectangular"},columns:{type:"number"},columnWidths:{type:"array",default:[]},ids:{type:"array",default:[]},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",type:"number",selector:"img",source:"attribute"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}}},20618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributes:()=>r.Z,save:()=>s.Z,supports:()=>a.Z});var r=n(36652),a=n(97136),s=n(2096)},2096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(81518),o=n(3740),i=n(15078),l=n(21340);function c({attributes:e}){const{imageFilter:t,images:n}=e,c=a.useBlockProps.save();if(!n.length)return null;const{align:u,className:d,columns:p=(0,i.F)(e),linkTo:m,roundedCorners:g,columnWidths:A}=e;return(0,r.createElement)("div",c,(0,r.createElement)(l.Z,{align:u,className:d,columns:p,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,s.t)(o.P0,d),linkTo:m,roundedCorners:g,columnWidths:A}))}},97136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},15078:(e,t,n)=>{"use strict";n.d(t,{F:()=>E,ZP:()=>b});var r=n(51806),a=n(13419),s=n(52175),o=n(55609),i=n(12238),l=n(69307),c=n(65736),u=n(92819),d=n(81518),p=n(99496),m=n(3740),g=n(10567),A=n(21340);const __=c.__,h=3;function E(e){return e.images.length>0?Math.min(h,e.images.length):h}const f=e=>{const t=(0,u.pick)(e,[["alt"],["id"],["link"]]);return t.url=(0,u.get)(e,["sizes","large","url"])||(0,u.get)(e,["media_details","sizes","large","source_url"])||e.url,t},b=(0,o.withNotices)((({attributes:e,isSelected:t,noticeOperations:n,noticeUI:c,setAttributes:h})=>{const{align:b,columns:C=E(e),imageFilter:v,images:k,linkTo:B,roundedCorners:y,columnWidths:w}=e,_=(0,d.t)(m.P0,e.className),I=(0,s.useBlockProps)(),[j,x]=(0,l.useState)(null),[S,Q]=(0,l.useState)(void 0===w||0===w?.length),N=e=>{h({images:e,ids:e.map((({id:e})=>parseInt(e,10)))})},P=e=>{(0,i.mediaUpload)({allowedTypes:m.RA,filesList:e,onFileChange:e=>N((k||[]).concat(e.map(f))),onError:n.createErrorNotice}),Q(!0)},T=e=>()=>{const t=(0,u.filter)(k,((t,n)=>e!==n));x(null),Q(!0),N(t),h({columns:C?Math.min(t.length,C):C})},R=e=>()=>{j!==e&&x(e)},Z=e=>{N(e.map(f)),h({columns:C?Math.min(e.length,C):C}),Q(!0)},L=(e,t)=>{const n=[...k];n.splice(t,1,k[e]),n.splice(e,1,k[t]),x(t),Q(!0),N(n)},M=e=>()=>{e!==k.length-1&&L(e,e+1)},D=e=>()=>{0!==e&&L(e,e-1)},F=e=>{S&&h({columnWidths:e})},z=e=>P(e.target.files),O=e=>t=>{k[e]&&N([...k.slice(0,e),{...k[e],...t},...k.slice(e+1)])};let U;return(0,l.useEffect)((()=>{t||null===j||x(null)}),[t,j,x]),U=0===k.length?(0,r.createElement)(s.MediaPlaceholder,{icon:(0,a.dM)(p),labels:{title:__("Tiled Gallery","jetpack"),name:__("images","jetpack")},onSelect:Z,accept:"image/*",allowedTypes:m.RA,multiple:!0,notices:c,onError:n.createErrorNotice}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g.o,{layoutStyle:_,images:k,columns:C,onColumnsChange:e=>h({columns:e}),roundedCorners:y,onRoundedCornersChange:e=>h({roundedCorners:e}),linkTo:B,onLinkToChange:e=>h({linkTo:e})}),c,(0,r.createElement)(A.Z,{className:"tiled-gallery__wrapper",align:b,columns:C,imageFilter:v,images:k,layoutStyle:_,linkTo:B,onMoveBackward:D,onMoveForward:M,onRemoveImage:T,onSelectImage:R,onResize:F,roundedCorners:y,selectedImage:t?j:null,setImageAttributes:O},(0,r.createElement)(o.DropZone,{onFilesDrop:P}),t&&(0,r.createElement)("div",{className:"tiled-gallery__add-item"},(0,r.createElement)(o.FormFileUpload,{multiple:!0,className:"tiled-gallery__add-item-button",onChange:z,accept:"image/*",icon:"insert"},__("Upload an image","jetpack"))))),(0,r.createElement)("div",I,(0,r.createElement)(g.J,{images:k,onSelectImages:Z,imageFilter:v,onFilterChange:e=>{h({imageFilter:e}),x(null)}}),U)}))},47158:(e,t,n)=>{"use strict";var r=n(4981),a=n(92819),s=n(31985),o=n(99496),i=n(73463),l=n(15078),c=n(10745);const u={align:"center",className:"is-style-rectangular",images:[{alt:"",link:"",url:n(96606),width:160,height:95},{alt:"",link:"",url:n(85472),width:160,height:107},{alt:"",link:"",url:n(79009),width:304,height:203},{alt:"",link:"",url:n(10742),width:312,height:207},{alt:"",link:"",url:n(52642),width:152,height:101},{alt:"",link:"",url:n(41145),width:152,height:105}],linkTo:"none"};function d(e){return(0,a.filter)(e,(({id:e,url:t})=>e&&t))}(0,s.S)(o,{edit:l.ZP,save:c.Z,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>d(e).length>0,transform:e=>{const t=d(e);return(0,r.createBlock)(o.name,{images:t.map((({id:e,url:t,link:n,alt:r})=>({id:e,url:t,link:n,alt:r}))),ids:t.map((({id:e})=>e))})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:({images:e})=>{const t=d(e);return t.length>0?(0,r.createBlock)(o.name,{images:t.map((({id:e,url:t,link:n,alt:r})=>({id:e,url:t,link:n,alt:r}))),ids:t.map((({id:e})=>e))}):(0,r.createBlock)(o.name)}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t,columns:n,linkTo:a})=>(0,r.createBlock)("core/gallery",{images:e,ids:t,columns:n,imageCrop:!0,linkTo:a})},{type:"block",blocks:["core/image"],transform:({align:e,images:t})=>t.length>0?t.map((({id:t,url:n,alt:a})=>(0,r.createBlock)("core/image",{align:e,id:t,url:n,alt:a}))):(0,r.createBlock)("core/image")}]},providesContext:{imageCrop:"imageCrop"},deprecated:i.Z,example:{attributes:u}})},38897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,_x=s._x,o=[{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:"1977",value:"1977"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)(a.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})),title:_x("Gingham","image style","jetpack"),value:"gingham"}],i=__("Pick an image filter","jetpack");function l({value:e,onChange:t}){return(0,r.createElement)(a.Dropdown,{placement:"bottom-start",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:({onToggle:e,isOpen:t})=>(0,r.createElement)(a.Toolbar,{controls:[{onClick:e,extraProps:{"aria-haspopup":"true","aria-expanded":t},title:i,tooltip:i,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"}))}]}),renderContent:({onClose:n})=>(0,r.createElement)(a.NavigableMenu,{className:"tiled-gallery__filter-picker-menu"},o.map((({icon:s,title:o,value:i})=>{return(0,r.createElement)(a.MenuItem,{className:e===i?"is-active":void 0,icon:s,isSelected:e===i,key:i||"original",onClick:(l=i,()=>{t(e===l?void 0:l),n()}),role:"menuitemcheckbox"},o);var l})))})}},57773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(11313),s=n(55609),o=n(9818),i=n(69307),l=n(65736),c=n(39630),u=n(65235),d=n.n(u),p=n(62051);const __=l.__;class m extends i.Component{img=(0,i.createRef)();onImageClick=()=>{this.props.isSelected||this.props.onSelect()};onImageKeyDown=e=>{this.img.current===document.activeElement&&this.props.isSelected&&[c.BACKSPACE,c.DELETE].includes(e.keyCode)&&this.props.onRemove()};componentDidUpdate(){const{alt:e,height:t,image:n,link:r,url:a,width:s}=this.props;if(n){const o={};!e&&n.alt_text&&(o.alt=n.alt_text),!t&&n.media_details&&n.media_details.height&&(o.height=+n.media_details.height),!r&&n.link&&(o.link=n.link),!a&&n.source_url&&(o.url=n.source_url),!s&&n.media_details&&n.media_details.width&&(o.width=+n.media_details.width),Object.keys(o).length&&this.props.setAttributes(o)}}render(){const{"aria-label":e,alt:t,columns:n,height:o,id:l,imageFilter:c,isFirstItem:u,isLastItem:m,isSelected:g,link:A,linkTo:h,onMoveBackward:E,onMoveForward:f,onRemove:b,origUrl:C,showMovers:v,srcSet:k,url:B,width:y}=this.props;let w;switch(h){case"media":w=C;break;case"attachment":w=A}const _=(0,a.isBlobURL)(C),I=(0,r.createElement)(i.Fragment,null,(0,r.createElement)("img",{alt:t,"aria-label":e,"data-height":o,"data-id":l,"data-link":A,"data-url":C,"data-width":y,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:_?void 0:B,srcSet:_?void 0:k,tabIndex:"0",style:_?{backgroundImage:`url(${C})`}:void 0}),_&&(0,r.createElement)(s.Spinner,null));return(0,r.createElement)("figure",{className:d()("tiled-gallery__item",{"is-selected":g,"is-transient":_,[`filter__${c}`]:!!c})},v&&(0,r.createElement)("div",{className:"tiled-gallery__item__move-menu"},(0,r.createElement)(s.Button,{icon:1===n?p.WO:p.KT,onClick:u?void 0:E,className:"tiled-gallery__item__move-backward",label:__("Move image backward","jetpack"),"aria-disabled":u,disabled:!g}),(0,r.createElement)(s.Button,{icon:1===n?p.xf:p.zz,onClick:m?void 0:f,className:"tiled-gallery__item__move-forward",label:__("Move image forward","jetpack"),"aria-disabled":m,disabled:!g})),(0,r.createElement)("div",{className:"tiled-gallery__item__inline-menu"},(0,r.createElement)(s.Button,{icon:p.xv,onClick:b,className:"tiled-gallery__item__remove",label:__("Remove image","jetpack"),disabled:!g})),w?(0,r.createElement)("a",null,I):I)}}const g=(0,o.withSelect)(((e,t)=>{const{getMedia:n}=e("core"),{id:r}=t;return{image:r?n(r):null}}))(m)},81921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(11313),s=n(65235),o=n.n(s);function i(e){const{alt:t,imageFilter:n,height:s,id:i,link:l,linkTo:c,origUrl:u,url:d,width:p}=e;if((0,a.isBlobURL)(u))return null;let m;switch(c){case"media":m=u;break;case"attachment":m=l}const g=(0,r.createElement)("img",{alt:t,"data-height":s,"data-id":i,"data-link":l,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,r.createElement)("figure",{className:o()("tiled-gallery__item",{[`filter__${n}`]:!!n})},m?(0,r.createElement)("a",{href:m},g):g)}},62051:(e,t,n)=>{"use strict";n.d(t,{KT:()=>s,WO:()=>l,xf:()=>i,xv:()=>c,zz:()=>o});var r=n(51806),a=n(55609);const s=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})),o=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})),i=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})),l=(0,r.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"})),c=(0,r.createElement)(a.SVG,{width:"18",height:"18",viewBox:"-2 -2 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(a.Path,{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))},24639:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,width:t}){const n=t?{flexBasis:`${t}%`}:void 0;return(0,r.createElement)("div",{className:"tiled-gallery__col",style:n},e)}},75084:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,galleryRef:t}){return(0,r.createElement)("div",{className:"tiled-gallery__gallery",ref:t},e)}},21340:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(69307),s=n(65736),o=n(65235),i=n.n(o),l=n(3740),c=n(57773),u=n(81921),d=n(13369),p=n(46438),m=n(70216);const __=s.__;class g extends a.Component{renderImage(e,t){const{columns:n,imageFilter:a,images:o,isSave:i,linkTo:l,layoutStyle:p,onMoveBackward:m,onMoveForward:g,onRemoveImage:A,onSelectImage:h,selectedImage:E,setImageAttributes:f}=this.props,b=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 111 | -__("image %1$d of %2$d in gallery","jetpack"),t+1,o.length),C=i?u.Z:c.Z,{src:v,srcSet:k}=(0,d.z)(e,{layoutStyle:p});return(0,r.createElement)(C,{alt:e.alt,"aria-label":b,columns:n,height:e.height,id:e.id,imageFilter:a,isFirstItem:0===t,isLastItem:t+1===o.length,isSelected:E===t,key:t,link:e.link,linkTo:l,onMoveBackward:i?void 0:m(t),onMoveForward:i?void 0:g(t),onRemove:i?void 0:A(t),onSelect:i?void 0:h(t),origUrl:e.url,setAttributes:i?void 0:f(t),showMovers:o.length>1,srcSet:k,url:v,width:e.width})}render(){const{align:e,children:t,className:n,columns:a,images:s,layoutStyle:o,roundedCorners:c,onResize:u,style:g,isSave:A,columnWidths:h}=this.props,E=(0,d.v)(o)?m.Z:p.Z,f=this.props.images.map(this.renderImage,this),b=o!==l.xJ?Math.min(c,l.Z5):0;return(0,r.createElement)("div",{style:g,className:i()(n,{[`has-rounded-corners-${b}`]:b>0})},(0,r.createElement)(E,{align:e,columns:a,columnWidths:A?h:void 0,images:s,layoutStyle:o,renderedImages:f,onResize:A?void 0:u}),t)}}},46438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(69307),s=n(6209),o=n(24639),i=n(75084),l=n(51309),c=n(96001),u=n(99856);class d extends a.Component{gallery=(0,a.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame((()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t,r=[];(0,u.W)(n).forEach((t=>{r.push((0,u.i)(t,e))})),void 0!==this.props.onResize&&this.props.onResize(r)}}))};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new s.Z(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,n){let r=0;return e.map((e=>e.map((e=>{const n=t.slice(r,r+e);return r+=e,n})))).map((e=>(0,u.i)(e,n)))}render(){const{align:e,columns:t,images:n,layoutStyle:s,renderedImages:u}=this.props,d=(0,c.h9)(n),p="columns"===s?(0,c.sv)(d,t):(0,c.T9)(d,{isWide:["full","wide"].includes(e)}),m=a.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(p,u,1e3)})();let g=0;return(0,r.createElement)(i.Z,{galleryRef:this.gallery},p.map(((e,t)=>(0,r.createElement)(l.Z,{key:t},e.map(((e,n)=>{const a=u.slice(g,g+e);return g+=e,(0,r.createElement)(o.Z,{key:n,width:m?.[t]?.[n]},a)}))))))}}},96001:(e,t,n)=>{"use strict";n.d(t,{T9:()=>w,h9:()=>a,sv:()=>o});var r=n(92819);function a(e){return(0,r.map)(e,s)}function s({height:e,width:t}){return e&&t?t/e:1}function o(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,a=[];let s=e,o=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,(t=>{const r=o<=(e+1)*n;return r&&(o+=t),r})).length;a.push(t),s=(0,r.drop)(s,t)}return a.push(s.length),[a]}const i=_([2,1,2],5),l=I([j,j,x,j,j]),c=I([j,j,j,x,j,j,j]),u=_([3,1,3],5),d=I([x,j,j,x]),p=_([1,2,1],5),m=I([x,j,j,j]),g=_([1,3],3),A=I([j,j,j,x]),h=_([3,1],3),E=I([Q(1.6),(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2))]),f=_([1,2],3),b=_([1,1,1,1,1],1),C=_([1,1,1,1],1),v=_([1,1,1],3),k=I([(0,r.overEvery)(S(.9),Q(2)),(0,r.overEvery)(S(.9),Q(2)),Q(1.6)]),B=_([2,1],3),y=I([function(e){return e>=2}]);function w(e,{isWide:t}={}){const n=(e,a)=>{if(!a.length)return e;let s;s=a.length>15&&l(a)&&i(e)?[2,1,2]:a.length>15&&c(a)&&u(e)?[3,1,3]:5!==a.length&&d(a)&&p(e)?[1,2,1]:m(a)&&g(e)?[1,3]:A(a)&&h(e)?[3,1]:E(a)&&f(e)?[1,2]:t&&(5===a.length||10!==a.length&&a.length>6)&&b(e)&&(0,r.sum)((0,r.take)(a,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)((0,r.take)(t,4));return C(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,a)?[1,1,1,1]:function(e,t,n){const a=(0,r.sum)((0,r.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&v(e)&&(a<2.5||a<5&&t.length>=3&&t[0]===t[2]||n)}(e,a,t)?[1,1,1]:k(a)&&B(e)?[2,1]:y(a)?[1]:a.length>3?[1,1]:Array(a.length).fill(1);const o=e.concat([s]),w=(0,r.sum)(s),_=a.slice(w);return n(o,_)};return n([],e)}function _(e,t){return n=>!(0,r.some)((0,r.takeRight)(n,t),(t=>(0,r.isEqual)(t,e)))}function I(e){return t=>t.length>=e.length&&(0,r.every)((0,r.zipWith)(e,t.slice(0,e.length),((e,t)=>e(t))))}function j(e){return e>=1&&e<2}function x(e){return e<1}function S(e){return t=>t>=e}function Q(e){return t=>t<e}},99856:(e,t,n)=>{"use strict";n.d(t,{W:()=>o,i:()=>s});var r=n(3740);function a(e,t){const n=(t-e.reduce(((e,t)=>e+t),0))/e.length;return e.map((e=>e+n))}function s(e,t){return function(e,[t,n],s){const o=1/t*(s-r.q3*(e.childElementCount-1)-n);return function(e,{rawHeight:t,rowWidth:n}){const s=i(e),o=s.map((e=>(t-r.q3*(e.childElementCount-1))*c(e)[0])),d=a(o,n);s.forEach(((e,n)=>{const s=o[n],i=d[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const s=l(e).map((e=>r/u(e))),o=a(s,t);Array.from(e.children).forEach(((e,t)=>{const r=o[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)}))}(e,{colHeight:t-r.q3*(e.childElementCount-1),width:i,rawWidth:s})}));return d.map((e=>parseFloat(e/n*100).toFixed(5)))}(e,{rawHeight:o,rowWidth:s-r.q3*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(c).reduce((([e,t],[n,r])=>[e+n,t+r]),[0,0]);return t}(e),t)}function o(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function c(e){const t=l(e),n=t.length,r=1/t.map(u).reduce(((e,t)=>e+1/t),0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},51309:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(65235),s=n.n(a);function o({children:e,className:t}){return(0,r.createElement)("div",{className:s()("tiled-gallery__row",t)},e)}},70216:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(92819),s=n(3740),o=n(24639),i=n(75084),l=n(51309);function c({columns:e,renderedImages:t}){const n=Math.min(s.hI,e),c=t.length%n;return(0,r.createElement)(i.Z,null,[...c?[(0,a.take)(t,c)]:[],...(0,a.chunk)((0,a.drop)(t,c),n)].map(((e,t)=>(0,r.createElement)(l.Z,{key:t,className:`columns-${e.length}`},e.map(((e,t)=>(0,r.createElement)(o.Z,{key:t},e)))))))}},45488:(e,t,n)=>{"use strict";function r(e){return["columns","circle","square"].includes(e)}n.d(t,{Q:()=>r})},10745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(82674),a=n.n(r),s=n(51806),o=n(52175),i=n(65235),l=n.n(i),c=n(81518),u=n(3740),d=n(15078),p=n(21340);function m({attributes:e}){const{imageFilter:t,images:n}=e,r=o.useBlockProps.save();if(!n.length)return null;const{align:i,className:m,columns:g=(0,d.F)(e),linkTo:A,roundedCorners:h,columnWidths:E}=e;return(0,s.createElement)("div",a()({},r,{className:l()(r.className,m)}),(0,s.createElement)(p.Z,{align:i,columns:g,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,c.t)(u.P0,m),linkTo:A,roundedCorners:h,columnWidths:E}))}},13369:(e,t,n)=>{"use strict";n.d(t,{v:()=>c,z:()=>u});var r=n(13419),a=n(11313),s=n(92819),o=n(69424),i=n(99621),l=n(3740);function c(e){return["circle","square"].includes(e)}function u(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.Z)())return{src:e.url};if((0,a.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,r.Ug)()&&(0,r.M6)())return{src:e.url};const n=e.url.split("?",1)[0],{height:u,width:p}=e,{layoutStyle:m}=t,g=!0===function(){if("undefined"!=typeof jetpack_plan&&"vip"===jetpack_plan.data)return!0}()||(0,r.Wp)()?d:o.Z;let A;if(c(m)&&p&&u){const e=Math.min(l.GP,p,u);A=g(n,{resize:`${e},${e}`})}else A=g(n);let h;if(c(m)){const e=Math.min(600,p,u),t=Math.min(l.GP,p,u);h=(0,s.range)(e,t,300).map((e=>{const t=g(n,{resize:`${e},${e}`,strip:"info"});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}else{const e=Math.min(600,p),t=Math.min(l.GP,p);h=(0,s.range)(e,t,300).map((e=>{const t=g(n,{strip:"info",width:e});return t?`${t} ${e}w`:null})).filter(Boolean).join(",")}return Object.assign({src:A},h&&{srcSet:h})}function d(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,a]of Object.entries(t))r.searchParams.set(n.hasOwnProperty(e)?n[e]:e,a);return r.toString()}},44814:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(75365),c=n(39630);const __=i.__,u=({tockUrl:e,setEditedUrl:t,setUrl:n,cancel:a})=>{const i=(0,o.useRef)(!0),u=(0,o.useRef)(!1),d=e=>{n(),u.current=!0,e()};return(0,r.createElement)(s.ToolbarGroup,null,(0,r.createElement)(s.Dropdown,{popoverProps:{variant:"toolbar"},onClose:()=>u.current?u.current=!1:a(),placement:"bottom-start",renderToggle:({isOpen:t,onToggle:n})=>(!i.current||t||e||(i.current=!1,n()),(0,r.createElement)(s.ToolbarButton,{className:"components-toolbar__control",label:__("Edit Tock business name","jetpack"),onClick:()=>{n(),t&&a()}},__("Edit","jetpack"))),renderContent:({onClose:n})=>(0,r.createElement)(s.BaseControl,{className:"jetpack-tock-url-settings",help:(0,o.createInterpolateElement)(__("The Tock business can be found in the URL of your public Tock page. For example: www.exploretock.com/<b>myname</b>","jetpack"),{b:(0,r.createElement)("strong",null)})},(0,r.createElement)("div",{className:"jetpack-tock-url-input-wrapper"},(0,r.createElement)(s.TextControl,{placeholder:__("Add Tock business name","jetpack"),onChange:t,value:e,onKeyDownCapture:t=>((t,n)=>{const{keyCode:r}=t;r===c.ENTER&&""!==e&&(t.preventDefault(),d(n)),r===c.ESCAPE&&(t.preventDefault(),a(),n())})(t,n),className:"jetpack-tock-url-input"}),(0,r.createElement)("div",{className:"jetpack-tock-url-input-action"},(0,r.createElement)(s.Button,{type:"submit",label:__("Submit","jetpack"),icon:l.Z,className:"jetpack-tock-url-input-submit",onClick:()=>d(n)}))))}))},d=({url:e,popoverAnchor:t})=>{const n=`\n\t\t<div id="Tock_widget_container" data-tock-display-mode="Button" data-tock-color-mode="Blue" data-tock-locale="en-us" data-tock-timezone="America/New_York" style="display:inline-block;"></div>\n\t\t<script src="https://www.exploretock.com/tock.js" async><\/script>\n\t\t<script>\n\t\t\t!function(t,o){if(!t.tock){var e=t.tock=function(){e.callMethod?\n\t\t\t e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e),\n\t\t\t e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];}}(window,document);\n\t\t\ttock('init', '${e}');\n\t\t<\/script>\n\t`;return(0,r.createElement)("div",{ref:t},(0,r.createElement)(s.SandBox,{html:n,key:`tock-${e}`}),(0,r.createElement)("div",{className:"block-library-embed__interactive-overlay"}))};function p({attributes:e,setAttributes:t,isSelected:n}){const s=e.url??"",[i,l]=(0,o.useState)(s),c=(0,o.useCallback)((()=>{l(s)}),[s]);return(0,o.useEffect)((()=>{n||c()}),[n,c]),(0,r.createElement)("div",(0,a.useBlockProps)(),(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(u,{tockUrl:i,setEditedUrl:l,setUrl:()=>{const e=i.replace(/.*exploretock.com\//,"");l(e),t({url:e})},cancel:c})),(0,r.createElement)(d,{url:s}))}},14035:(e,t,n)=>{"use strict";var r=n(51806),a=n(31985),s=n(27508),o=n(44814);(0,a.S)(s,{edit:o.Z,save:()=>(0,r.createElement)("div",{id:"Tock_widget_container","data-tock-display-mode":"Button","data-tock-color-mode":"Blue","data-tock-locale":"en-us","data-tock-timezone":"America/New_York"})})},15150:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,n:()=>i});var r=n(51806),a=n(55609),s=n(65736);const __=s.__;function o({attributes:e,setAttributes:t,postTypesData:n,toggleAttributes:o,setToggleAttributes:i}){const{displayAuthor:l,displayContext:c,displayDate:u,displayThumbnail:d,period:p,postsToShow:m}=e;if(!n)return;const g=[{label:__("Last 24 hours","jetpack"),value:"1"},{label:__("Last 48 hours","jetpack"),value:"2"},{label:__("Last 7 days","jetpack"),value:"7"},{label:__("Last 30 days","jetpack"),value:"30"},{label:__("Last 90 days","jetpack"),value:"90"},{label:__("Last year","jetpack"),value:"365"},{label:__("All-time","jetpack"),value:"all-time"}];return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PanelBody,{title:__("Block settings","jetpack")},(0,r.createElement)(a.RangeControl,{label:__("Number of items","jetpack"),value:m,onChange:e=>t({postsToShow:Math.min(e,10)}),min:1,max:10}),(0,r.createElement)(a.SelectControl,{label:__("Stats period","jetpack"),value:p,onChange:e=>t({period:e}),options:g})),(0,r.createElement)(a.PanelBody,{title:__("Items to display","jetpack")},n.map((e=>{return(0,r.createElement)(a.ToggleControl,{key:e.id,label:(0,s.sprintf)(/* translators: %s: Content type (eg. post/page). */ | |
| 112 | -__("Display %s","jetpack"),e.label.toLowerCase()),checked:o[e.id]||!1,onChange:(n=e.id,e=>{i((t=>({...t,[n]:e}))),t({postTypes:{...o,[n]:e}})})});var n}))),(0,r.createElement)(a.PanelBody,{title:__("Metadata settings","jetpack")},(0,r.createElement)(a.ToggleControl,{label:__("Display date","jetpack"),checked:u,onChange:e=>t({displayDate:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display author","jetpack"),checked:l,onChange:e=>t({displayAuthor:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display context","jetpack"),checked:c,onChange:e=>t({displayContext:e})}),(0,r.createElement)(a.ToggleControl,{label:__("Display thumbnail","jetpack"),checked:d,onChange:e=>t({displayThumbnail:e})})))}function i({attributes:e,setAttributes:t}){const{layout:n}=e,s=[{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({layout:"grid"}),isActive:"grid"===n},{icon:"list-view",title:__("List view","jetpack"),onClick:()=>t({layout:"list"}),isActive:"list"===n}];return(0,r.createElement)(a.ToolbarGroup,{controls:s})}},57659:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(86989),l=n.n(i),c=n(52175),u=n(69307),d=n(65235),p=n.n(d),m=n(8649),g=n(15150),A=n(1701);function h(e){return(0,s.createElement)("div",{className:"jetpack-top-posts-item"},e.displayThumbnail&&e.thumbnail&&(0,s.createElement)("a",{className:"jetpack-top-posts-thumbnail-link"},(0,s.createElement)("img",{className:"jetpack-top-posts-thumbnail",src:e.thumbnail,alt:e.title,rel:"nofollow noopener noreferrer",target:"_blank"})),e.displayThumbnail&&!e.thumbnail&&(0,s.createElement)("a",{className:"jetpack-top-posts-thumbnail-link"},(0,s.createElement)("div",{className:"jetpack-top-posts-mock-thumbnail"})),(0,s.createElement)("span",{className:"jetpack-top-posts-title"},(0,s.createElement)("a",null,e.title)),e.displayDate&&(0,s.createElement)("span",{className:"jetpack-top-posts-date has-small-font-size"},e.date),e.displayAuthor&&(0,s.createElement)("span",{className:"jetpack-top-posts-author has-small-font-size"},e.author),e.displayContext&&e.context&&(0,s.createElement)("span",{className:"jetpack-top-posts-context has-small-font-size"},(0,s.createElement)("a",null,e.context[0].cat_name)))}const E=function({attributes:e,setAttributes:t}){const{isLoadingModules:n,isChangingStatus:r,isModuleActive:i,changeStatus:d}=(0,o.el)("stats"),E=(0,c.useBlockProps)(),{className:f}=E,[b,C]=(0,u.useState)(),[v,k]=(0,u.useState)(),[B,y]=(0,u.useState)(),[w,_]=(0,u.useState)({}),{displayAuthor:I,displayContext:j,displayDate:x,displayThumbnail:S,layout:Q,period:N,postsToShow:P,postTypes:T}=e;let R;return(0,u.useEffect)((()=>{l()({path:"/wpcom/v2/post-types"}).then((e=>{y(e),e.forEach((e=>{T&&T[e.id]&&_((t=>({...t,[e.id]:!0})))}))}))}),[T]),(0,u.useEffect)((()=>{i&&l()({path:`/wpcom/v2/top-posts?period=${N}`}).then((e=>{C(e)}))}),[N,i]),(0,u.useEffect)((()=>{const e=b;if(!e)return;const t=[];for(let n=0;t.length!==P&&(e[n]&&T[e[n].type]&&t.push((0,s.createElement)(h,{key:"jetpack-top-posts-"+e[n].id,title:e[n].title,date:e[n].date,author:e[n].author,thumbnail:e[n].thumbnail,context:e[n].context,displayDate:x,displayAuthor:I,displayThumbnail:S,displayContext:j})),e[n]);n++);k(t)}),[I,j,x,S,b,T,P,k]),R=i||n?v?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.InspectorControls,null,(0,s.createElement)(g.a,{attributes:e,setAttributes:t,toggleAttributes:w,setToggleAttributes:_,postTypesData:B})),(0,s.createElement)(c.BlockControls,null,(0,s.createElement)(g.n,{attributes:e,setAttributes:t})),(0,s.createElement)("div",{"data-item-count":v.length},(0,s.createElement)("div",{className:"jetpack-top-posts-wrapper"},v))):(0,s.createElement)(m.d,null):(0,s.createElement)(A.E,{className:f,changeStatus:d,isLoading:r}),(0,s.createElement)("div",a()({},E,{className:p()(f,`is-${Q}-layout`)}),R)}},74637:(e,t,n)=>{"use strict";var r=n(4981),a=n(31985),s=n(13872),o=n(57659);(0,a.S)(s,{edit:o.Z,save:()=>null,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"top-posts"===e,transform:({instance:e})=>{const t=e.raw.title?(0,r.createBlock)("core/heading",{content:e.raw.title,level:3}):null,n=(0,r.createBlock)("jetpack/top-posts",{displayAuthor:!1,displayDate:!1,displayThumbnail:"text"!==e.raw.display,layout:"grid"===e.raw.display?"grid":"list",period:"2",postsToShow:e.raw.count,postTypes:e.raw.types.reduce(((e,t)=>(e[t]=!0,e)),{})});return t?[t,n]:n}}]}})},1701:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(13872);const __=o.__,l=({className:e,isLoading:t,changeStatus:n})=>{const o=(0,a.Ug)()?"https://wordpress.com/support/stats/":"https://jetpack.com/support/jetpack-stats/";return(0,r.createElement)("div",{className:e},(0,r.createElement)(s.Placeholder,{icon:(0,a.dM)(i),instructions:__("You'll need to activate the Stats module to use this block.","jetpack"),label:i.title},(0,r.createElement)(s.Button,{disabled:t,isBusy:t,onClick:()=>n(!0),variant:"secondary"},t?__("Activating Stats","jetpack"):__("Activate Stats","jetpack",0)),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(s.ExternalLink,{href:o},__("Learn more about the Stats module.","jetpack")))))}},10723:(e,t,n)=>{"use strict";n.d(t,{H:()=>s,Z:()=>o});var r=n(51806),a=n(69307);const s=(0,a.createContext)(),o=({onFilesSelected:e,onMediaItemSelected:t,onUploadFinished:n,children:a})=>(0,r.createElement)(s.Provider,{value:{onFilesSelected:e,onMediaItemSelected:t,onUploadFinished:n},children:a})},90879:(e,t,n)=>{"use strict";n.d(t,{sl:()=>r,vT:()=>a});const r=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a={PUBLIC:0,PRIVATE:1,SITE_DEFAULT:2}},29899:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},support:{reusable:!1},save:n(4900).Z,isDeprecation:!0}},4900:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);function s({attributes:e}){const{caption:t,guid:n}=e;if(!n)return null;const s=`https://videopress.com/v/${n}`;return(0,r.createElement)("figure",{className:"wp-block-embed is-type-video is-provider-videopress"},(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${s}\n`),!a.RichText.isEmpty(t)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:t}))}},97504:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(30454),a=n(93512);const s={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsInline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"},videoPressClassNames:{type:"string"},align:{type:"wide"}},support:{reusable:!1},isEligible:({videoPressClassNames:e,guid:t})=>t&&void 0===e,migrate:e=>{const{className:t,videoPressClassNames:n}=e;return{...e,...(0,a.a)(t,n)}},save:r.Z,isDeprecation:!0}},30454:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(52175),s=n(92490);function o(e){const{attributes:{autoplay:t,caption:n,controls:o,guid:i,loop:l,muted:c,poster:u,preload:d,videoPressClassNames:p}={}}=e;if(!i)return null;const m=(0,s.p)(i,{autoplay:t,controls:o,loop:l,muted:c,poster:u,preload:d});return(0,r.createElement)("figure",{className:p},(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${m}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},92490:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(96483);const a=(e,{autoplay:t,controls:n,loop:a,muted:s,poster:o,preload:i})=>{if(!e)return null;const l={...t&&{autoPlay:!0},...!n&&{controls:!1},...a&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...o&&{posterUrl:o},..."none"!==i&&{preloadContent:i}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,l)}},93512:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(29512),a=n.n(r),s=n(73320),o=n.n(s);const i=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],l=(e,t)=>{const n=i.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1}),r=o()(e,{...n,"wp-block-embed":!1,"is-type-video":!1,"is-provider-videopress":!1}),s=new(a())(r);let l=o()(e,t);return s.forEach((e=>{l=l.replace(e,"")})),{className:r,videoPressClassNames:l.trim()}}},34284:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,save:n(46721).Z,isDeprecation:!0}},46721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s),i=n(96931);function l(e){const{attributes:{autoplay:t,caption:n,controls:s,guid:l,loop:c,muted:u,playsinline:d,poster:p,preload:m,videoPressClassNames:g,className:A,align:h,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:b}={}}=e,C=a.useBlockProps.save({className:o()("wp-block-video",A,g,{[`align${h}`]:h})}),v=(0,i.p)(l,{autoplay:t,controls:s,loop:c,muted:u,playsinline:d,poster:p,preload:m,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:b});return(0,r.createElement)("figure",C,(0,r.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${v}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},96931:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(96483);const a=(e,{autoplay:t,controls:n,loop:a,muted:s,playsinline:o,poster:i,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:d})=>{if(!e)return null;const p={resizeToParent:!0,...t&&{autoPlay:!0},...!n&&{controls:!1},...a&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...o&&{playsinline:!0},...i&&{posterUrl:i},..."none"!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==d&&{sblc:d}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,p)}},58351:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,migrate:e=>({...e,useAverageColor:!1}),save:n(83619).Z,isDeprecation:!0}},83619:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(65235),o=n.n(s),i=n(67502);function l(e){const{attributes:{autoplay:t,caption:n,controls:s,guid:l,loop:c,muted:u,playsinline:d,poster:p,preload:m,videoPressClassNames:g,className:A,align:h,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:b,maxWidth:C}={}}=e,v=a.useBlockProps.save({className:o()("wp-block-video",A,g,{[`align${h}`]:h})}),k=(0,i.p)(l,{autoplay:t,controls:s,loop:c,muted:u,playsinline:d,poster:p,preload:m,seekbarColor:E,seekbarPlayedColor:f,seekbarLoadingColor:b});let B={};return C&&C.length>0&&"100%"!==C&&(B={maxWidth:C,margin:"auto"}),(0,r.createElement)("figure",v,(0,r.createElement)("div",{className:"wp-block-embed__wrapper",style:B},`\n${k}\n`),!a.RichText.isEmpty(n)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:n}))}},67502:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(96483);const a=(e,{autoplay:t,controls:n,loop:a,muted:s,playsinline:o,poster:i,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:d})=>{if(!e)return null;const p={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!n&&{controls:!1},...a&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...o&&{playsinline:!0},...i&&{posterUrl:i},..."none"!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==d&&{sblc:d}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,p)}},30053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(82674),a=n.n(r),s=n(51806),o=n(86989),i=n.n(o),l=n(11313),c=n(52175),u=n(55609),d=n(94333),p=n(9818),m=n(69307),g=n(81975),A=n(65736),h=n(61074),E=n(65235),f=n.n(E),b=n(92819),C=n(81427),v=n(10723),k=n(90879),B=n(31302),y=n(43774),w=n(75880),_=n(22081),I=n(32478),j=n(90953),x=n(77290);const __=A.__,_x=A._x,S=["image"],Q=e=>{const t=(0,c.useBlockProps)({className:"resumable-upload"}),{onChangeTitle:n,title:r,filename:a,onSelectPoster:o,onRemovePoster:i,videoPosterImageData:l,fileForUpload:g,isUploadComplete:A,onDismissEditor:E,onSave:f,onVideoFrameSelected:b}=e,k=(0,p.useSelect)((e=>e("core/editor").isSavingPost()),[]),B=(0,d.usePrevious)(k);return(0,m.useEffect)((()=>{k&&!B&&f()}),[k,B,f]),(0,s.createElement)(v.Z,{onUploadFinished:e.uploadFinished},(0,s.createElement)(m.Fragment,null,e.blockSettings,(0,s.createElement)("div",t,(0,s.createElement)("div",{className:"uploader-block__logo"},(0,s.createElement)(h.Z,{icon:C.ll}),(0,s.createElement)("div",{className:"uploader-block__logo-text"},__("VideoPress","jetpack"))),(0,s.createElement)(I.$,{file:g,filename:a,title:r,onChangeTitle:n,onSelectPoster:o,onRemovePoster:i,videoPosterImageData:l,onVideoFrameSelected:b}),!A&&(0,s.createElement)(y.Z,{file:g}),A&&(0,s.createElement)("div",{className:"uploader-block__upload-complete"},(0,s.createElement)("span",null,__("Upload Complete!","jetpack")," 🎉"),(0,s.createElement)(u.Button,{variant:"primary",onClick:E},__("Done","jetpack"))))))},N=e=>{let{scripts:t}=e;const{html:n,interactive:r,caption:a,isSelected:o,hideOverlay:i,attributes:l,setAttributes:d}=e,{align:p,className:m,videoPressClassNames:g,maxWidth:A}=l,h=(0,c.useBlockProps)({className:f()("wp-block-video",m,g,{[`align${p}`]:p})});if("object"!=typeof t&&(t=[]),window.videopressAjax){const e=new Blob([`var videopressAjax = ${JSON.stringify(window.videopressAjax)};`],{type:"text/javascript"});t.push(URL.createObjectURL(e),window.videopressAjax.bridgeUrl)}return(0,s.createElement)("figure",h,(0,s.createElement)("div",{className:"wp-block-embed__wrapper"},(0,s.createElement)(u.ResizableBox,{enable:{top:!1,bottom:!1,left:!0,right:!0},maxWidth:"100%",size:{width:A},style:{margin:"auto"},onResizeStop:(e,t,n)=>{let r=getComputedStyle(n).width;if(null!==n.parentElement){r===getComputedStyle(n.parentElement).width&&(r="100%")}d({maxWidth:r})}},(0,s.createElement)(u.SandBox,{html:n,scripts:t,type:g}))),!r&&(0,s.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:i}),(!c.RichText.isEmpty(a)||o)&&(0,s.createElement)(c.RichText,{tagName:"figcaption",placeholder:__("Write caption…","jetpack"),value:a,onChange:e=>d({caption:e}),inlineToolbar:!0}))},P=(0,d.createHigherOrderComponent)((0,d.compose)([(0,p.withSelect)(((e,t)=>{const{autoplay:n,controls:r,fileForImmediateUpload:a,guid:s,loop:o,muted:i,playsinline:c,poster:u,preload:d,seekbarColor:p,seekbarLoadingColor:m,seekbarPlayedColor:g,src:A,useAverageColor:h}=t.attributes,{getEmbedPreview:E,isRequestingEmbedPreview:f}=e("core"),b=(0,j.p)(s,{autoplay:n,controls:r,loop:o,muted:i,playsinline:c,poster:u,preload:d,seekbarColor:p,seekbarLoadingColor:m,seekbarPlayedColor:g,useAverageColor:h}),C=!!b&&E(b),v=!!b&&f(b),k=!!window.videoPressResumableEnabled;return{fileForImmediateUpload:a,isFetchingPreview:v,isUploading:!k&&(0,l.isBlobURL)(A),preview:C,resumableUploadEnabled:k,url:b}})),(0,p.withDispatch)((e=>({invalidateCachedEmbedPreview:t=>{e("core/data").invalidateResolution("core","getEmbedPreview",[t])}}))),d.withInstanceId,e=>class extends m.Component{constructor(e){super(...arguments),this.state={media:null,isFetchingMedia:!1,fallback:!1,interactive:!1,rating:null,lastRequestedMediaId:null,isUpdatingRating:!1,allowDownload:null,privacySetting:k.vT.SITE_DEFAULT,isUpdatingAllowDownload:!1,fileForUpload:e.fileForImmediateUpload,isUpdatingIsPrivate:!1,isEditingWhileUploading:!1,isUploadComplete:!1,lastPosterValueSource:""},this.posterImageButton=(0,m.createRef)(),this.previewCacheReloadTimer=null,this.previewFailuresCount=0}static getDerivedStateFromProps(e,t){const n={};if(!e.isSelected&&t.interactive&&(n.interactive=!1),t.fileForUpload&&!t.isEditingWhileUploading){null!==t.fileForUpload&&t.fileForUpload instanceof File&&(n.isEditingWhileUploading=!0)}return Object.keys(n).length?n:null}hideOverlay=()=>{this.setState({interactive:!0})};async componentDidMount(){const{guid:e}=this.props.attributes;e?this.setTracks(e):await this.setGuid(),this.setRatingAndAllowDownload()}setRatingAndAllowDownload=async()=>{const e=(0,b.get)(this.props,"attributes.id"),t=await this.requestMedia(e);let n=(0,b.get)(t,"jetpack_videopress.rating");const r=(0,b.get)(t,"jetpack_videopress.allow_download"),a=(0,b.get)(t,"jetpack_videopress.privacy_setting",k.vT.SITE_DEFAULT);n&&("X-18"===n&&(n="R-17"),this.setState({rating:n})),void 0!==r&&this.setState({allowDownload:!!r}),void 0!==a&&this.setState({privacySetting:a})};async componentDidUpdate(e){const{attributes:t,invalidateCachedEmbedPreview:n,preview:r,setAttributes:a,url:s,isFetchingPreview:o}=this.props;t.id!==e.attributes.id&&(await this.setGuid(),this.setRatingAndAllowDownload());let i=!1;if(s&&s!==e.url&&(n(s),i=!0),r){const e=(0,x.f6)(r.html,f()("wp-block-embed","is-type-video","is-provider-videopress"),!1);this.previewFailuresCount=0,a({videoPressClassNames:e})}else o||i||!this.props.attributes.guid||this.schedulePreviewCacheReload()}schedulePreviewCacheReload=()=>{const{invalidateCachedEmbedPreview:e,url:t}=this.props;null===this.previewCacheReloadTimer&&this.previewFailuresCount<5&&(this.previewFailuresCount++,this.previewCacheReloadTimer=setTimeout((()=>{e(t),this.previewCacheReloadTimer=null}),2e3*this.previewFailuresCount))};fallbackToCore=()=>{this.props.setAttributes({guid:void 0}),this.setState({fallback:!0})};setGuid=async()=>{const{attributes:e,setAttributes:t}=this.props,{id:n}=e;if(n)try{const e=await this.requestMedia(n);if(null===e)return;const r=(0,b.get)(e,"jetpack_videopress.guid");r?(t({guid:r}),this.setTracks(r)):this.fallbackToCore()}catch(e){this.setState({isFetchingMedia:!1}),this.fallbackToCore()}else t({guid:void 0})};requestMedia=async e=>{if(!e)return null;if(null!==this.state.media&&this.state.lastRequestedMediaId===e)return this.state.media;this.setState({isFetchingMedia:!0});const t=await i()({path:`/wp/v2/media/${e}`}).catch((()=>(this.setState({fallback:!0}),null))).finally((()=>{this.setState({isFetchingMedia:!1})})),{id:n}=this.props.attributes;return e!==n?null:(this.setState({media:t,lastRequestedMediaId:e}),t)};setTracks=e=>{const{setAttributes:t}=this.props;e&&i()({url:`https://public-api.wordpress.com/rest/v1.1/videos/${e}`,credentials:"omit",global:!0}).then((e=>{const n=[];Object.keys(e.tracks).forEach((t=>{for(const r in e.tracks[t]){const a=e.tracks[t][r];n.push({src:a.src,kind:t,srcLang:r,label:a.label})}})),t({videoPressTracks:n})}))};switchToEditing=()=>{this.props.setAttributes({id:void 0,guid:void 0,src:void 0})};onSelectPoster=e=>{const{setAttributes:t}=this.props;t({poster:e.url}),this.setState({videoPosterImageData:e})};onRemovePoster=()=>{const{setAttributes:e}=this.props;e({poster:""}),this.setState({videoPosterImageData:null}),this.posterImageButton.current.focus()};toggleAttribute=e=>t=>{this.props.setAttributes({[e]:t})};getAutoplayHelp=e=>e?__("Note: Autoplaying videos may cause usability issues for some visitors.","jetpack"):null;getPreloadHelp(){const{attributes:e}=this.props;return"auto"===e.preload?__("Note: Automatically downloading videos may cause issues if there are many videos displayed on the same page.","jetpack"):null}getPrivacySettingHelp=e=>{const t=parseInt(e,10);return k.vT.PRIVATE===t?__("Restrict views to members of this site","jetpack"):k.vT.PUBLIC===t?__("Video can be viewed by anyone","jetpack"):__("Follow the site privacy setting","jetpack")};renderControlLabelWithTooltip(e,t){return(0,s.createElement)(u.Tooltip,{text:t,position:"top"},(0,s.createElement)("span",null,e))}onChangeRating=e=>{const t=this.state.rating;"X-18"===e&&(e="R-17"),-1!==(0,b.indexOf)(["G","PG-13","R-17"],e)&&this.updateMetaApiCall({rating:e},(()=>this.setState({isUpdatingRating:!0,rating:e})),(()=>this.setState({rating:t})),(()=>this.setState({isUpdatingRating:!1})))};onChangeAllowDownload=e=>{const t=this.state.allowDownload;this.updateMetaApiCall({allow_download:e?1:0},(()=>this.setState({isUpdatingAllowDownload:!0,allowDownload:e})),(()=>this.setState({allowDownload:t})),(()=>this.setState({isUpdatingAllowDownload:!1})))};onChangePrivacySetting=e=>{const t=this.state.privacySetting;this.updateMetaApiCall({privacy_setting:e},(()=>this.setState({isUpdatingPrivacySetting:!0,privacySetting:e})),(()=>this.setState({privacySetting:t})),(()=>this.setState({isUpdatingPrivacySetting:!1})))};updateMetaApiCall=(e,t,n,r)=>{const{invalidateCachedEmbedPreview:a,url:s}=this.props,{id:o}=this.props.attributes;if(!o)return;t();const l={id:o};Object.assign(l,e),i()({path:"/wpcom/v2/videopress/meta",method:"POST",data:l}).then((e=>{status in e&&200!==e.status&&n()})).catch((()=>n())).finally((()=>{r(),a(s)}))};render(){const{attributes:t,instanceId:n,isFetchingPreview:r,isUploading:o,preview:l,resumableUploadEnabled:d,setAttributes:p}=this.props,{fallback:h,fileForUpload:E,isFetchingMedia:f,isUpdatingRating:b,interactive:C,rating:y,allowDownload:I,privacySetting:j,isUpdatingAllowDownload:P,isUpdatingPrivacySetting:T,videoPosterImageData:R}=this.state,{autoplay:Z,caption:L,controls:M,guid:D,loop:F,muted:z,playsinline:O,poster:U,preload:H,useAverageColor:V,videoPressTracks:q,isVideoPressExample:G,src:$}=t;if(G&&$)return(0,s.createElement)("img",{src:$,alt:L});const W=`video-block__poster-image-description-${n}`,J=!(!U&&!R),Y=(0,s.createElement)(m.Fragment,null,(0,s.createElement)(c.BlockControls,{group:"block"},(0,s.createElement)(_.Z,{tracks:q,onChange:e=>{p({videoPressTracks:e})},guid:D})),(0,s.createElement)(c.BlockControls,null,(0,s.createElement)(u.ToolbarGroup,null,(0,s.createElement)(u.ToolbarButton,{className:"components-icon-button components-toolbar__control",text:__("Replace","jetpack"),onClick:this.switchToEditing}))),(0,s.createElement)(c.InspectorControls,null,(0,s.createElement)(u.PanelBody,{title:__("Video Settings","jetpack")},(0,s.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Autoplay","jetpack"),/* translators: Tooltip describing the "autoplay" option for the VideoPress player */ | |
| 113 | -__("Start playing the video as soon as the page loads","jetpack")),onChange:this.toggleAttribute("autoplay"),checked:Z,help:this.getAutoplayHelp}),(0,s.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Loop","jetpack"),/* translators: Tooltip describing the "loop" option for the VideoPress player */ | |
| 114 | -__("Restarts the video when it reaches the end","jetpack")),onChange:this.toggleAttribute("loop"),checked:F}),(0,s.createElement)(u.ToggleControl,{label:__("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:z}),(0,s.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Playback Controls","jetpack"),/* translators: Tooltip describing the "controls" option for the VideoPress player */ | |
| 115 | -__("Display the video playback controls","jetpack")),onChange:this.toggleAttribute("controls"),checked:M}),(0,s.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Play Inline","jetpack"),/* translators: Tooltip describing the "playsinline" option for the VideoPress player */ | |
| 116 | -__("Play the video inline instead of full-screen on mobile devices","jetpack")),onChange:this.toggleAttribute("playsinline"),checked:O}),(0,s.createElement)(u.SelectControl,{label:this.renderControlLabelWithTooltip(__("Preload","jetpack"),/* translators: Tooltip describing the "preload" option for the VideoPress player */ | |
| 117 | -__("Content to dowload before the video is played","jetpack")),value:H??"",onChange:e=>p({preload:e}),options:[{value:"auto",label:_x("Auto","VideoPress preload setting","jetpack")},{value:"metadata",label:_x("Metadata","VideoPress preload setting","jetpack")},{value:"none",label:_x("None","VideoPress preload setting","jetpack")}],help:this.getPreloadHelp()}),(0,s.createElement)(c.MediaUploadCheck,null,(0,s.createElement)(u.BaseControl,{className:"editor-video-poster-control",label:__("Poster Image","jetpack")},(0,s.createElement)(c.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:S,render:({open:e})=>(0,s.createElement)(u.Button,{variant:"secondary",onClick:e,ref:this.posterImageButton,"aria-describedby":W},J?__("Replace image","jetpack",0):__("Select Poster Image","jetpack"))}),(0,s.createElement)("p",{id:W,hidden:!0},J?(0,A.sprintf)(/* translators: Placeholder is an image URL. */ | |
| 118 | -__("The current poster image url is %s","jetpack"),U??R):__("There is no poster image currently selected","jetpack")),J&&(0,s.createElement)(u.Button,{onClick:this.onRemovePoster,variant:"link",isDestructive:!0},__("Remove Poster Image","jetpack")))),(0,m.createInterpolateElement)(__("Send us your <a>VideoPress feedback</a>","jetpack"),{a:(0,s.createElement)(u.ExternalLink,{href:"https://automattic.survey.fm/videopress-feedback"})})),(0,s.createElement)(w.Z,{attributes:t,setAttributes:p,useAverageColor:V,toggleAttribute:this.toggleAttribute}),(0,s.createElement)(u.PanelBody,{title:__("Video File Settings","jetpack")},(0,s.createElement)(u.SelectControl,{label:_x("Rating","The age rating for this video.","jetpack"),value:y??"",disabled:f||b,options:[{label:_x("G",'Video rating for "General Audiences".',"jetpack"),value:"G"},{label:_x("PG-13",'Video rating for "Parental Guidance", unsuitable for children under 13.',"jetpack"),value:"PG-13"},{label:_x("R",'Video rating for "Restricted", not recommended for children under 17.',"jetpack"),value:"R-17"}],onChange:this.onChangeRating}),(0,s.createElement)(u.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Allow download","jetpack"),/* translators: Tooltip describing the "allow download" option for the VideoPress player */ | |
| 119 | -__("Display download option and allow viewers to download this video","jetpack")),onChange:this.onChangeAllowDownload,checked:I,disabled:f||P}),(0,s.createElement)(u.SelectControl,{label:__("Video Privacy","jetpack"),help:this.getPrivacySettingHelp(j),onChange:this.onChangePrivacySetting,value:j??"",options:[{value:k.vT.SITE_DEFAULT,label:_x("Site Default","VideoPress privacy setting","jetpack")},{value:k.vT.PUBLIC,label:_x("Public","VideoPress privacy setting","jetpack")},{value:k.vT.PRIVATE,label:_x("Private","VideoPress privacy setting","jetpack")}],disabled:f||T})))),K=e=>{this.setState({fileForUpload:e[0]})},X=e=>{e&&e.url?(this.props.setAttributes({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0}),e.videopress_guid&&this.props.setAttributes({guid:e.videopress_guid})):p({src:void 0,id:void 0,poster:void 0})},ee=()=>"videoPressUploadPoster"in window,te=(0,g.escapeHTML)(E?(0,x.K8)(E.name):""),ne=({mediaId:e,guid:t,src:n})=>{this.setState({title:this.state.title??te,fileForUpload:null,isUploadComplete:!!e,isEditingWhileUploading:!!e&&this.state.isEditingWhileUploading}),e&&t&&n&&p({id:e,guid:t,src:n})},re=e=>{this.setState({title:e})},ae=e=>{this.setState({videoFrameSelectedInMillis:e,videoPosterImageData:null})},se=()=>{const e=this.state.title;this.updateMetaApiCall({title:e},(()=>this.setState({isUpdatingTitle:!0,title:e})),(()=>this.setState({title:e})),(()=>this.setState({isUpdatingTitle:!1})))},oe=()=>de({at_time:this.state.videoFrameSelectedInMillis,is_millisec:!0}),ie=()=>de({poster_attachment_id:this.state.videoPosterImageData.id}),le=e=>{e.generating?ce():ue(e.poster)},ce=()=>{setTimeout((()=>{(ee()?window.videoPressGetPoster(D):i()({path:`/videos/${D}/poster`,apiNamespace:"rest/v1.1",global:!0,method:"GET"})).then((e=>le(e)))}),2e3)},ue=e=>{e&&p({poster:e})},de=e=>{if(ee())return window.videoPressUploadPoster(D,e).then((e=>le(e)));i()({path:`/videos/${D}/poster`,apiNamespace:"rest/v1.1",method:"POST",global:!0,data:e}).catch((e=>e))},pe=()=>{const{title:e,videoFrameSelectedInMillis:t}=this.state;e&&se(),R?ie():null!=t&&oe()},me=()=>{this.setState({isEditingWhileUploading:!1}),pe()};if(null!=E&&E.name||this.state.isEditingWhileUploading){const e=this.state.title??te;return(0,s.createElement)(Q,{fileForUpload:E,filename:te,uploadFinished:ne,blockSettings:Y,onDismissEditor:me,isUploadComplete:this.state.isUploadComplete,onSelectPoster:this.onSelectPoster,onRemovePoster:this.onRemovePoster,onChangeTitle:re,title:e,videoPosterImageData:this.state.videoPosterImageData,onVideoFrameSelected:ae,onSave:pe})}const ge=f||r,Ae=h||o||!D,he=Ae&&!o&&!ge,Ee=(0,s.createElement)(m.Fragment,null,(0,s.createElement)("div",{className:o||ge?"":"videopress-block-hide"},(0,s.createElement)(B.Z,{text:o?__("Uploading…","jetpack"):__("Generating preview…","jetpack",0)})),(0,s.createElement)("div",{className:he?"":"videopress-block-hide"},(0,s.createElement)(e,this.props)));if(Ae)return d?(0,s.createElement)(v.Z,{onFilesSelected:K,onMediaItemSelected:X},Ee):(0,s.createElement)(m.Fragment,null,Ee);const{html:fe,scripts:be}=l||{html:null,scripts:null},Ce=ge||!l;return(0,s.createElement)(m.Fragment,null,Y,Ce&&(0,s.createElement)(B.Z,{text:__("Generating preview…","jetpack")}),!Ce&&(0,s.createElement)(N,a()({},this.props,{hideOverlay:this.hideOverlay,html:fe,scripts:be,interactive:C,caption:L})))}}]),"withVideoPressEdit")},37549:(e,t,n)=>{"use strict";var r=n(82674),a=n.n(r),s=n(51806),o=n(6975),i=n(13419),l=n(11313),c=n(52175),u=n(65391),d=n(4981),p=n(55609),m=n(94333),g=n(9818),A=n(12238),h=n(69307),E=n(92694),f=n(65736),b=n(92819),C=n(10723),v=n(29899),k=n(97504),B=n(34284),y=n(58351),w=n(30053),_=n(23096),I=n(77290),j=n(23062),x=n(84676),S=n(41194);const __=f.__,Q=(0,m.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,c.useBlockEditContext)();return"core/video"!==n?(0,s.createElement)(e,t):(0,s.createElement)(e,a()({},t,{disableDropZone:!0,className:"no-videopress-media-placeholder"}),(0,s.createElement)(p.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary"},__("Media Library","jetpack")),(0,s.createElement)(p.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary"},__("Upload","jetpack")))}),"videoPressNoPlanMediaPlaceholder"),N=(0,m.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,c.useBlockEditContext)();if("core/video"!==n)return(0,s.createElement)(e,t);const{onFilesSelected:r,onMediaItemSelected:o}=(0,h.useContext)(C.H),i={...t,handleUpload:!1,disableDropZone:!0,onSelect:e=>{void 0!==e.length?r(e):o(e)}};return(0,s.createElement)(e,a()({},i,{className:"videopress-media-placeholder"}))}),"videoPressMediaPlaceholder"),P=(e,t,n)=>("core/video"!==t.name||!n.guid||n.className?.indexOf("wp-block-video")>=0||n.videoPressClassNames||(e.className=e.className.replace("wp-block-video","").trim()),e);(0,E.addFilter)("blocks.registerBlockType","jetpack/videopress",((e,t)=>{if("core/embed"===t)return(e=>{if(!("variations"in e)||"object"!=typeof e.variations)return;const{available:t}=(0,i.OZ)("videopress");e.variations.some((e=>"videopress"===e.name&&(t&&(e.scope=[]),e.patterns.push(/^https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?$/i),!0)))})(e),e;if("core/video"!==t||e.isDeprecation)return e;const{deprecated:n,edit:r,save:a,supports:s,transforms:o}=e,{available:c,unavailableReason:u}=(0,i.OZ)("videopress"),p=((0,i.Wp)()||(0,i.Ug)())&&["missing_plan","unknown"].includes(u),m=!!window.videoPressResumableEnabled;if(p?((0,E.addFilter)("editor.MediaPlaceholder","jetpack/videopress",Q),(0,E.addFilter)("editor.BlockListBlock","jetpack/videopress-with-has-warning-is-interactive-class-names",(0,i.T)("core/video"))):c&&(m&&(0,E.addFilter)("editor.MediaPlaceholder","jetpack/videopress",N),e.description=__("Embed a video from your media library or upload a new one with VideoPress.","jetpack"),e.example.attributes={caption:"",isVideoPressExample:!0,src:S}),(0,E.addFilter)("blocks.getSaveContent.extraProps","jetpack/videopress",P,20),c||["missing_plan","missing_module","unknown"].includes(u)){const t={autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},useAverageColor:{type:"boolean",default:!0},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"},fileForImmediateUpload:{type:"object",default:null}},i=/https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?/i;return{...e,attributes:{...e.attributes,...t},transforms:{...o,from:[{type:"files",isMatch:e=>(0,b.every)(e,(e=>0===e.type.indexOf("video/"))),priority:9,transform:(e,t)=>{const n=[];return e.forEach((e=>{if(c&&m){const t=(0,d.createBlock)("core/video",{fileForImmediateUpload:e});n.push(t)}else{const r=(0,d.createBlock)("core/video",{src:(0,l.createBlobURL)(e)});(0,A.mediaUpload)({filesList:[e],onFileChange:([{id:e,url:n}])=>{t(r.clientId,{id:e,src:n})},allowedTypes:["video"]}),n.push(r)}})),n}},{type:"raw",isMatch:e=>"P"===e.nodeName&&i.test(e.innerHTML),transform:e=>{const t=i.exec(e.innerHTML);return(0,d.createBlock)("core/embed",{url:"https://videopress.com/v/"+t[1].trim()})}}]},supports:{...s,reusable:!1},edit:(0,w.Z)(r),save:(0,_.Z)(a),deprecated:[...n||[],y.Z,B.Z,{attributes:t,isEligible:e=>!e.guid,save:a,supports:s,isDeprecation:!0},k.Z,v.Z]}}return e}),5),(0,E.addFilter)("blocks.registerBlockType","videopress/add-wp-chapters-support",x.Z),(0,E.addFilter)("blocks.registerBlockType","videopress/add-v6-transform-support",j.Z),(0,E.addFilter)("blocks.registerBlockType","videopress/add-core-video-transform",(function(e,t){if("videopress/video"!==t)return e;const n=(0,d.getBlockType)("videopress/video"),{available:r}=(0,i.OZ)("videopress/video");return n&&r?{...e,transforms:{from:[...e.transforms?.from||[],{type:"block",blocks:["core/video"],isMatch:e=>{const{src:t,guid:n}=e,r=(0,I.Zx)(t);return n||r},transform:e=>{const t=(0,g.select)(A.store).getCurrentPostId();return o.Z?.tracks?.recordEvent("jetpack_editor_videopress_block_manual_transform_click",{post_id:t}),(0,d.createBlock)("videopress/video",e)}}],to:[...e.transforms?.to||[],{type:"block",blocks:["core/video"],transform:e=>(0,d.createBlock)("core/video",e)}]}}:e}));const T=(0,m.createHigherOrderComponent)((e=>t=>{const{block:n}=t,{name:r,attributes:a,clientId:o,__unstableBlockSource:l}=n,{replaceBlock:u}=(0,g.useDispatch)(c.store),{url:p,guid:m,providerNameSlug:A}=a,{available:E}=((0,I.Kp)(a),(0,d.getBlockType)("videopress/video"),(0,i.OZ)("videopress/video")),f="core/embed"===r,b=(0,I.Zx)(p),C=f&&b?b:m,v=((0,i.Wp)(),!1),k=v;return(0,h.useEffect)((()=>{}),[o,k,a,l,u,C]),(0,s.createElement)(e,t)}),"convertVideoBlockToVideoPressVideoBlock");function R({BlockListBlock:e,...t}){const{block:n}=t,{name:r,attributes:a,clientId:o}=n,{replaceBlock:i}=(0,g.useDispatch)(c.store);return(0,h.useEffect)((()=>{try{const e=(0,u.parse)(a.originalContent),t=e?.[0];if(!t)return;const{attrs:n}=t;i(o,(0,d.createBlock)("core/video",function(e){const t={...e};return e?.tracks&&(t.videoPressTracks=e.tracks,delete t.tracks),e?.isExample&&(t.isVideoPressExample=e.isExample,delete t.isExample),e?.classNames&&(t.videoPressClassNames=e.classNames,delete t.classNames),delete t.title,delete t.description,delete t.cacheHtml,delete t.videoRatio,delete t.privacySetting,delete t.allowDownload,delete t.displayEmbed,delete t.rating,delete t.isPrivate,t}(n)))}catch(e){console.error("Error converting VideoPress block to core/video",e)}}),[r,o,a,i]),(0,s.createElement)(e,t)}(0,E.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-to-videopress-video-block",T);const Z=(0,m.createHigherOrderComponent)((e=>t=>{const{block:n}=t,{name:r,attributes:o}=n;return"core/missing"!==r||"videopress/video"!==o?.originalName?(0,s.createElement)(e,t):(0,s.createElement)(R,a()({},t,{BlockListBlock:e}))}),"convertV6toV5");(0,E.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-from-v6-to-v5",Z)},31302:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);const s=({text:e})=>(0,r.createElement)("div",{className:"wp-block-embed is-loading"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("p",null,e))},43774:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(90861),l=n.n(i),c=n(10723),u=n(5482);const __=o.__;function d({file:e}){const[t,n]=(0,s.useState)(0),[i,d]=(0,s.useState)(!1),[p,m]=(0,s.useState)(null),[g,A]=(0,s.useState)(null),[h,E]=(0,s.useState)(null),{onUploadFinished:f}=(0,s.useContext)(c.H),b=(0,s.useRef)(null);b.current=p;const C=(0,s.useCallback)((()=>{const t=(0,u.J)({onError:e=>{A(e)},onProgress:(e,t)=>{n(e/t*100)},onSuccess:e=>{f(e)},onUploadUuidRetrieved:e=>{null===h&&E(e)}});(0,u.v)().then((n=>{const r=t(e,n);m(r)})).catch((e=>{A(e)}))}),[e,f,h]);(0,s.useEffect)((()=>(C(),()=>{null!==b.current&&b.current.abort()})),[]);const v=Math.round(t),k={width:`${v}%`},B=l()(e.size);return(0,r.createElement)(r.Fragment,null,null!==g?(0,r.createElement)("div",{className:"resumable-upload__error"},(0,r.createElement)("div",{className:"resumable-upload__error-text"},(()=>{let e=__("An error was encountered during the upload. Check your network connection.","jetpack");if("object"==typeof g){const t=g.toString().match(/message":"([^"]+)"/);if(t&&"object"==typeof t&&2===t.length){const n=t[1];if("Invalid Mime"!==n)return n;e=(0,r.createElement)(r.Fragment,null,__("The format of the video you uploaded is not supported.","jetpack")," ",(0,r.createElement)(a.ExternalLink,{href:"https://wordpress.com/support/videopress/recommended-video-settings/",target:"_blank",rel:"noreferrer"},__("Check the recommended video settings.","jetpack")))}}return e})()),(0,r.createElement)(a.Button,{variant:"primary",onClick:()=>(A(null),void C())},__("Try again","jetpack")),(0,r.createElement)(a.Button,{variant:"secondary",onClick:()=>f({mediaId:null}),className:"resumable-upload__error-cancel"},__("Cancel","jetpack"))):(0,r.createElement)("div",{className:"resumable-upload__status"},(0,r.createElement)("div",{className:"resumable-upload__progress"},(0,r.createElement)("div",{className:"resumable-upload__progress-loaded",style:k})),(0,r.createElement)("div",{className:"resumable-upload__file-info"},(0,r.createElement)("div",null,i?(0,o.sprintf)(/* translators: Placeholder is an upload progress percenatage number, from 0-100. */ | |
| 120 | -__("Paused (%s%%)","jetpack"),v):(0,o.sprintf)(/* translators: Placeholder is an upload progress percenatage number, from 0-100. */ | |
| 121 | -__("Uploading (%s%%)","jetpack"),v)),(0,r.createElement)("div",{className:"resumable-upload__file-size"},B)),(0,r.createElement)("div",{className:"resumable-upload__actions"},(0,r.createElement)(a.Button,{variant:"link",onClick:()=>{p&&(i?p.start():p.abort(),d(!i))}},i?"Resume":"Pause"))))}},5482:(e,t,n)=>{"use strict";n.d(t,{J:()=>o,v:()=>a});var r=n(99537);const a=function(e){return new Promise((function(t,n){const r=e?{data:{key:e}}:{};wp.media.ajax("videopress-get-upload-jwt",{async:!0,...r}).done((function(e){t({token:e.upload_token,blogId:e.upload_blog_id,url:e.upload_action_url})})).fail((function(e){n(e)}))}))},s={},o=({onUploadUuidRetrieved:e,onError:t,onProgress:n,onSuccess:o})=>(i,l)=>{const c=new r.gq(i,{onError:t,onProgress:n,endpoint:l.url,removeFingerprintOnSuccess:!0,withCredentials:!1,autoRetry:!0,overridePatchMethod:!1,chunkSize:1e7,allowedFileTypes:["video/*"],metadata:{filename:i.name,filetype:i.type},retryDelays:[0,1e3,3e3,5e3,1e4],onAfterResponse:function(t,n){if(n.getStatus()>=400)return;const r=n.getHeader("x-videopress-upload-guid"),a=n.getHeader("x-videopress-upload-media-id"),i=n.getHeader("x-videopress-upload-src-url");if(r&&a&&i)return void(o&&o({mediaId:Number(a),guid:r,src:i}));const l={"x-videopress-upload-key-token":"token","x-videopress-upload-key":"key"},c={};Object.keys(l).forEach((function(e){const t=n.getHeader(e);t&&(c[l[e]]=t)})),c.key&&c.token&&(s[c.key]=c.token),c.key&&e(c.key)},onBeforeRequest:function(e){const t=e._method;if(["HEAD","OPTIONS"].indexOf(t)>=0&&(e._method="GET",e.setHeader("X-HTTP-Method-Override",t)),["DELETE","PUT","PATCH"].indexOf(t)>=0&&(e._method="POST",e.setHeader("X-HTTP-Method-Override",t)),e._xhr.open(e._method,e._url,!0),Object.keys(e._headers).map((function(t){e.setHeader(t,e._headers[t])})),"POST"===t){if(!!!l.token)throw"should never happen";e.setHeader("x-videopress-upload-token",l.token)}if(["OPTIONS","GET","HEAD","DELETE","PUT","PATCH"].indexOf(t)>=0){const n=new URL(e._url).pathname.split("/"),r=n[n.length-1];if(s[r])e.setHeader("x-videopress-upload-token",s[r]);else if("HEAD"===t)return a(r).then((t=>(s[r]=t.token,e.setHeader("x-videopress-upload-token",t.token),e)))}return Promise.resolve(e)}});return c.findPreviousUploads().then((function(e){e.length&&c.resumeFromPreviousUpload(e[0]),c.start()})),c}},23096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(94333),o=n(65235),i=n.n(o),l=n(90953);const c=(0,s.createHigherOrderComponent)((e=>t=>{const{attributes:{autoplay:n,caption:s,controls:o,guid:c,loop:u,muted:d,playsinline:p,poster:m,preload:g,videoPressClassNames:A,className:h,align:E,seekbarColor:f,seekbarPlayedColor:b,seekbarLoadingColor:C,useAverageColor:v,maxWidth:k}={}}=t,B=a.useBlockProps.save({className:i()("wp-block-video",h,A,{[`align${E}`]:E})});if(!c)return e(t);const y=(0,l.p)(c,{autoplay:n,controls:o,loop:u,muted:d,playsinline:p,poster:m,preload:g,seekbarColor:f,seekbarPlayedColor:b,seekbarLoadingColor:C,useAverageColor:v});let w={};return k&&k.length>0&&"100%"!==k&&(w={maxWidth:k,margin:"auto"}),(0,r.createElement)("figure",B,(0,r.createElement)("div",{className:"wp-block-embed__wrapper",style:w},`\n${y}\n`),!a.RichText.isEmpty(s)&&(0,r.createElement)(a.RichText.Content,{tagName:"figcaption",value:s}))}),"withVideoPressSave")},75880:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736);const __=i.__;class l extends o.Component{constructor(){super(...arguments);const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.props.attributes;this.state={seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}}handleChangeSeekbarColor=e=>{this.setState({seekbarColor:e})};handleChangeSeekbarLoadingColor=e=>{this.setState({seekbarLoadingColor:e})};handleChangeSeekbarPlayedColor=e=>{this.setState({seekbarPlayedColor:e})};saveColors=()=>{const{seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n}=this.state,{setAttributes:r}=this.props;r({seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n})};render(){const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.state,{toggleAttribute:o,useAverageColor:i}=this.props,l=!0;return(0,r.createElement)(s.PanelBody,{className:"seekbar-color-settings__panel",title:__("Progress Bar Colors","jetpack"),initialOpen:!1},(0,r.createElement)(s.ToggleControl,{label:__("Match video","jetpack"),help:__("Colors adapt to the video as it plays","jetpack"),onChange:o("useAverageColor"),checked:i}),(0,r.createElement)(a.PanelColorSettings,{opened:!i,showTitle:!1,colorSettings:[{value:e,onChange:this.handleChangeSeekbarColor,label:__("Main","jetpack"),showTitle:l},{value:n,onChange:this.handleChangeSeekbarLoadingColor,label:__("Loaded","jetpack"),showTitle:l},{value:t,onChange:this.handleChangeSeekbarPlayedColor,label:__("Progress","jetpack"),showTitle:l}]},(0,r.createElement)(s.Button,{variant:"secondary",onClick:this.saveColors},__("Save colors","jetpack"))))}}const c=l},22081:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v,n:()=>E});var r=n(51806),a=n(86989),s=n.n(a),o=n(52175),i=n(55609),l=n(9818),c=n(69307),u=n(65736),d=n(47659);const __=u.__,p="subtitles",m=".vtt,text/vtt",g=[{label:__("Subtitles","jetpack"),value:"subtitles"},{label:__("Captions","jetpack"),value:"captions"},{label:__("Descriptions","jetpack"),value:"descriptions"},{label:__("Chapters","jetpack"),value:"chapters"},{label:__("Metadata","jetpack"),value:"metadata"}],A=(0,r.createElement)(i.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},(0,r.createElement)(i.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),(0,r.createElement)(i.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),(0,r.createElement)(i.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"})),h=()=>"videoPressUploadTrack"in window,E=(e,t)=>{if(h())return window.videoPressUploadTrack(t,e.kind,e.srcLang,e.label,e.tmpFile);const n={method:"POST",path:`/videos/${t}/tracks`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang],["label",e.label],["vtt",e.tmpFile]]};return s()(n)},f=(e,t)=>{if(h())return window.videoPressDeleteTrack(t,e.kind,e.srcLang);const n={method:"POST",path:`/videos/${t}/tracks/delete`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang]]};return s()(n)};function b({tracks:e,onChange:t,guid:n}){const[a=-1,s]=(0,c.useState)();let o;return o=0===e.length?(0,r.createElement)("p",{className:"videopress-block-tracks-editor__tracks-informative-message"},__("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.","jetpack")):e.map(((o,l)=>(0,r.createElement)("div",{key:l,className:"videopress-block-tracks-editor__track-list-track"},(0,r.createElement)("span",null,o.label),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__track-list-track-delete"},(0,r.createElement)(i.Button,{variant:"link",isDestructive:!0,onClick:()=>{(r=>{const a=e[r];s(r),f(a,n).finally((()=>{t(e.filter(((e,t)=>t!==r))),s(-1)}))})(l)},"aria-label":(0,u.sprintf)(/* translators: %s: Label of the video text track e.g: "French subtitles" */ | |
| 122 | -__("Delete %s","jetpack"),o.label),disabled:a===l},a===l?__("Deleting","jetpack"):__("Delete","jetpack",0)))))),(0,r.createElement)(i.MenuGroup,{label:__("Text tracks","jetpack"),className:"videopress-block-tracks-editor__track-list"},o)}function C({track:e,guid:t,onChange:n,onClose:a,onCancel:s,trackExists:d}){const[A,h]=(0,c.useState)(),[f=!1,b]=(0,c.useState)(),{label:C="",srcLang:v="",kind:k=p}=e,B=e.tmpFile?e.tmpFile.name:"";if(!(0,l.useSelect)((e=>e(o.store).getSettings().mediaUpload),[]))return null;return(0,r.createElement)(i.NavigableMenu,null,(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor"},(0,r.createElement)("span",{className:"videopress-block-tracks-editor__single-track-editor-label"},__("Edit track","jetpack")),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file"},(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label"},(0,r.createElement)("span",null,__("File","jetpack"),":"),""!==B&&(0,r.createElement)("span",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label-name"},(0,r.createElement)("strong",null,B)),(0,r.createElement)(o.MediaUploadCheck,null,(0,r.createElement)(i.FormFileUpload,{onChange:t=>{const r=t.target.files;!r.length>0||(e.tmpFile=r[0],n(e))},accept:m,render:({openFileDialog:e})=>(0,r.createElement)(i.Button,{variant:"link",onClick:()=>{e()}},""===B?__("Select track","jetpack"):__("Change track","jetpack",0)),disabled:f}))),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-help"},/* translators: %s: The allowed file types to be uploaded as a video text track." */ /* translators: %s: The allowed file types to be uploaded as a video text track." */ | |
| 123 | -(0,u.sprintf)(__("Allowed formats: %s","jetpack"),m))),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-label-language"},(0,r.createElement)(i.TextControl,{onChange:t=>n({...e,label:t}),label:__("Label","jetpack"),value:C,help:__("Title of track","jetpack"),disabled:f}),(0,r.createElement)(i.TextControl,{onChange:t=>n({...e,srcLang:t}),label:__("Source language","jetpack"),value:v,help:__("Language tag (en, fr, etc.)","jetpack"),disabled:f})),(0,r.createElement)(i.SelectControl,{className:"videopress-block-tracks-editor__single-track-editor-kind-select",options:g,value:k,label:/* translators: %s: The kind of video text track e.g: "Subtitles, Captions" */ | |
| 124 | -__("Kind","jetpack"),onChange:t=>{n({...e,kind:t})},disabled:f}),(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-buttons-container"},f?(0,r.createElement)(i.Spinner,null):(0,r.createElement)(i.Button,{variant:"secondary",disabled:!e.tmpFile,onClick:()=>{h(null),""===C&&(e.label=__("English","jetpack")),""===v&&(e.srcLang="en"),void 0===e.kind&&(e.kind=p),d(e)?h(__("A track already exists for that language and kind.","jetpack")):(b(!0),E(e,t).then((()=>{n(e),h(null),a()})).catch((e=>{e.message&&h(e.message)})).finally((()=>{b(!1)})))}},__("Save","jetpack")),(0,r.createElement)(i.Button,{variant:"link",onClick:s},__("Close","jetpack"))),A&&(0,r.createElement)("div",{className:"videopress-block-tracks-editor__single-track-editor-error"},/* translators: %s: An error message returned after a failed video track file upload." */ /* translators: %s: An error message returned after a failed video track file upload." */ | |
| 125 | -(0,u.sprintf)(__("Error: %s","jetpack"),A))))}function v({tracks:e=[],onChange:t,guid:n}){const[a,s]=(0,c.useState)(null);return(0,r.createElement)(i.Dropdown,{contentClassName:"videopress-block-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(i.ToolbarButton,{label:__("Text tracks","jetpack"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t,icon:A}),renderContent:()=>null!==a?(0,r.createElement)(C,{track:e[a],guid:n,onChange:n=>{const r=[...e];r[a]=n,t(r)},onClose:()=>s(null),onCancel:()=>{t(e.filter(((e,t)=>t!==a))),s(null)},trackExists:t=>-1!==e.filter(((e,t)=>t!==a)).findIndex((e=>e.kind===t.kind&&e.srcLang===t.srcLang))}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.NavigableMenu,null,(0,r.createElement)(b,{tracks:e,onChange:t,guid:n}),(0,r.createElement)(i.MenuGroup,{className:"videopress-block-tracks-editor__add-tracks-container",label:__("Add tracks","jetpack")},(0,r.createElement)(i.MenuItem,{icon:d.Z,onClick:()=>{(()=>{const n=e.length,r=[...e];r[n]||(r[n]={}),r[n]={...e[n]},t(r),s(n)})()}},__("Upload track","jetpack")))))})}},32478:(e,t,n)=>{"use strict";n.d(t,{$:()=>A});var r=n(51806),a=n(52175),s=n(55609),o=n(69307),i=n(65736),l=n(61074),c=n(65235),u=n.n(c),d=n(81427);const __=i.__,p=["image"],m=e=>{const{videoPosterImageUrl:t}=e;return(0,r.createElement)("div",{className:"resumable-upload__editor-thumb-placeholder"},t?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("img",{src:t,alt:"Poster"}),(0,r.createElement)(l.Z,{className:"uploading-editor__play-icon",icon:d.o1})):(0,r.createElement)("span",null,"No Poster Selected"))},g=e=>{const{onSelectPoster:t,onRemovePoster:n}=e;return(0,r.createElement)(s.BaseControl,{className:u()(e.className,"editor-video-poster-control")},(0,r.createElement)(m,e),(0,r.createElement)(a.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:t,allowedTypes:p,render:({open:e})=>(0,r.createElement)("div",{className:"poster-selector__buttons"},(0,r.createElement)(s.Button,{onClick:n,variant:"link",isDestructive:!0},__("Remove Poster Image","jetpack")),(0,r.createElement)(s.Button,{variant:"secondary",onClick:e},__("Select Poster Image","jetpack")))}))},A=e=>{const{file:t,onSelectPoster:n,onRemovePoster:i,videoPosterImageData:c,title:u,onChangeTitle:m,onVideoFrameSelected:A}=e,[h,E]=(0,o.useState)(0),[f,b]=(0,o.useState)(!0),C=(0,o.useRef)(null),v=(0,o.useRef)(null),k=()=>{b(!1)};(0,o.useEffect)((()=>{null!==t&&C&&(C.current.src=URL.createObjectURL(t))}),[t,C]);const B={};return c&&(B.display="none"),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"uploading-editor"},(0,r.createElement)("div",{className:"uploading-editor__summary"}),(0,r.createElement)("div",{className:"uploading-editor__fields"},(0,r.createElement)(s.TextControl,{label:__("Video title","jetpack"),className:"uploading-editor__title",onChange:m,value:u}),(0,r.createElement)("div",{className:"uploading-editor__content"},(0,r.createElement)(s.BaseControl,{label:__("Video poster (optional)","jetpack")},f?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"uploading-editor__video-container"},(0,r.createElement)("div",{className:"uploading-editor__video-poster-wrapper"},c&&(0,r.createElement)(g,{onSelectPoster:n,onRemovePoster:i,videoPosterImageUrl:c.url}),(0,r.createElement)("video",{ref:C,muted:!0,className:"uploading-editor__video",onDurationChange:e=>{const t=e.target.duration;E(t),C.current&&(C.current.currentTime=t/2)},onError:k,onLoadedMetadata:e=>{e.target.videoHeight||k()},style:B})),!c&&(0,r.createElement)(l.Z,{className:"uploading-editor__play-icon",icon:d.o1})),(0,r.createElement)("span",{style:B},(0,r.createElement)(s.RangeControl,{className:"uploading-editor__range",min:"0",step:"0.1",max:h,showTooltip:!1,withInputField:!1,onChange:e=>{A(1e3*e),C.current&&(C.current.currentTime=e)}})),(0,r.createElement)("span",{className:"uploading-editor__scrubber-help",style:B},(0,o.createInterpolateElement)(__("This is how the video will look. Use the slider to choose a poster or <a>select a custom one</a>.","jetpack"),{a:(0,r.createElement)(a.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:n,allowedTypes:p,render:({open:e})=>(0,r.createElement)("a",{className:"uploading-editor__upload-link",onClick:e,onKeyDown:e,ref:v,role:"button",tabIndex:0},__("select a custom one","jetpack"))})}))):(0,r.createElement)(g,{onSelectPoster:n,videoPosterImageUrl:c?c.url:null}))))))}},90953:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var r=n(96483);const a=(e,{autoplay:t,controls:n,loop:a,muted:s,playsinline:o,poster:i,preload:l,seekbarColor:c,seekbarPlayedColor:u,seekbarLoadingColor:d,useAverageColor:p})=>{if(!e)return null;const m={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!n&&{controls:!1},...a&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...o&&{playsinline:!0},...i&&{posterUrl:i},...""!==l&&{preloadContent:l},...""!==c&&{sbc:c},...""!==u&&{sbpc:u},...""!==d&&{sblc:d},...p&&{useAverageColor:!0}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,m)}},77290:(e,t,n)=>{"use strict";n.d(t,{K8:()=>l,Kp:()=>u,Zx:()=>c,f6:()=>i});n(4981);var r=n(65235),a=n.n(r),s=n(90879);const o=e=>{const t=s.sl.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return a()(e,t)};function i(e,t="",n=!0){if(!n)return o(t);const r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;const i=r.body.querySelector("iframe");if(i&&i.height&&i.width){const e=(i.width/i.height).toFixed(2);for(let n=0;n<s.sl.length;n++){const r=s.sl[n];if(e>=r.ratio)return a()(o(t),r.className,"wp-has-aspect-ratio")}}return t}const l=e=>e.replace(/\.[^/.]+$/,""),c=e=>{if(!e||"string"!=typeof e)return null;const t=e.match(/^https?:\/\/(?<host>video(?:\.word|s\.files\.word)?press\.com)(?:\/v|\/embed)?\/(?<guid>[a-zA-Z\d]{8})/);return t?.groups?.guid?t.groups.guid:null},u=e=>{const{guid:t,videoPressTracks:n,isVideoPressExample:r}=e;if(!t?.length)return!1;if(!Array.isArray(n))return!1;return!(!Object.keys(e).includes("isVideoPressExample")||"boolean"!=typeof r)}},65192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(13419),s=n(52175),o=n(4981),i=n(55609),l=n(9818),c=n(12238),u=(n(69307),n(65736)),d=n(77290),p=n(5743);const __=u.__,m={instances:[]},g=(e=[],t=!1,n=0)=>{if(t&&(m.instances=[]),e.forEach((e=>{if(e.innerBlocks.length)return void g(e.innerBlocks,!1,n+1);const{clientId:t,name:r,attributes:a}=e;"core/video"===r&&(0,d.Kp)(a)&&m.instances.push({clientId:t,name:r,attributes:a})})),0===n)return m.instances};function A({clientId:e,attributes:t}){const n=(0,l.useSelect)((e=>e(c.store).getCurrentPostId())),{getBlocks:u}=(0,l.useSelect)(s.store),{replaceBlock:m}=(0,l.useDispatch)(s.store),{tracks:A}=(0,a.z$)();return(0,r.createElement)("div",{className:p.Z.wrapper},(0,r.createElement)(i.Notice,{status:"info",isDismissible:!1,className:p.Z["conversion-notice"]},__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features, such as adding chapters directly in the description or hiding the video's share menu.","jetpack")),(0,r.createElement)(i.Button,{variant:"primary",onClick:()=>{const r=g(u(),!0);r?.length&&(r.find((t=>t.clientId===e))||r.push({clientId:e,name:"core/video",currentBlockAttributes:t}),r.forEach((e=>{const{clientId:t,name:r,attributes:a}=e;"core/video"===r&&(0,d.Kp)(a)&&(m(t,(0,o.createBlock)("videopress/video",a)),A.recordEvent("jetpack_editor_videopress_block_manual_conversion_click",{post_id:n}))})))}},__("Transform blocks to VideoPress","jetpack")))}},68938:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(52175),s=n(94333),o=n(77290),i=n(65192);const l=(0,s.createHigherOrderComponent)((e=>t=>(0,o.Kp)(t.attributes)?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(i.Z,{clientId:t.clientId,attributes:t.attributes})),(0,r.createElement)(e,t)):(0,r.createElement)(e,t)))},23062:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(13419),a=n(68938);const s="videopress/video";function o(e,t){if("core/video"!==t)return e;const{available:n}=(0,r.OZ)(s);return n?{...e,edit:(0,a.Z)(e.edit)}:e}},73859:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(55609),s=n(65736),o=n(78680),i=n(75255);const __=s.__,l="videopress/video-chapters",c=!!window?.Jetpack_Editor_Initial_State?.available_blocks[l],u=31;function d({isRequestingVideoItem:e}){const{attributes:t,setAttributes:n}=(0,i.Z)(),{title:s,description:d}=t,p=(0,o.L)(l),m=d?.length?d.split("\n").map((e=>Math.ceil(e.length/u)||1)).reduce(((e,t)=>e+t),0):4,g=Math.min(12,Math.max(m,4));if(!c)return null;return(0,r.createElement)(a.PanelBody,{title:__("Details","jetpack"),className:p?"is-beta":""},(0,r.createElement)(a.TextControl,{label:__("Title","jetpack"),value:s,placeholder:__("Video title","jetpack"),onChange:e=>{n({title:e})},disabled:e}),(0,r.createElement)(a.TextareaControl,{label:__("Description","jetpack"),value:d,placeholder:__("Video description","jetpack"),onChange:e=>{n({description:e})},disabled:e,rows:g}))}},24288:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(52175),s=n(94333),o=n(69307),i=n(73859),l=n(67203),c=n(49664),u=n(84676);const d=(0,s.createHigherOrderComponent)((e=>t=>{const{attributes:n,setAttributes:s}=t,[d,p]=(0,l.Z)(n?.id),[m]=(0,c.v)(n);return(0,o.useEffect)((()=>{if(!d)return;const e={};d?.title&&(e.title=d.title),d?.description&&(e.description=d.description),Object.keys(e).length&&(s(e),m(e))}),[d,s,m]),u.d&&"core/video"!==!t.name&&t.attributes?.guid?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(i.Z,{isRequestingVideoItem:p})),(0,r.createElement)(e,t)):(0,r.createElement)(e,t)}))},75255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(52175),a=n(9818);function s(){const{clientId:e,attributes:t}=(0,a.useSelect)((e=>{const t=e(r.store).getSelectedBlockClientId();return{clientId:t,attributes:t?e("core/block-editor").getBlockAttributes(t):void 0}})),{updateBlockAttributes:n}=(0,a.useDispatch)(r.store);return{clientId:e,attributes:t,setAttributes:t=>n(e,t)}}},49664:(e,t,n)=>{"use strict";n.d(t,{v:()=>A});var r=n(86989),a=n.n(r),s=n(94333),o=n(37798),i=n(9818),l=n(12238),c=n(69307),u=n(65736),d=n(22081),p=n(90953),m=n(84321),g=n(38871);const __=u.__;function A(e){const{id:t,title:n,description:r,guid:u}=e,A=(0,i.useSelect)((e=>e(l.store).isSavingPost()),[]),h=(0,s.usePrevious)(A),E=(0,i.useDispatch)(o.store).invalidateResolution,[f,b]=(0,c.useState)(),C=(0,c.useCallback)((e=>{b((t=>({...t,...e})))}),[]);(0,c.useEffect)((()=>{b({title:n,description:r})}),[]);const v=function(e){return t=>new Promise(((n,r)=>{a()({path:"/wpcom/v2/videopress/meta",method:"POST",data:{id:e,...t}}).then((e=>{if(200!==e?.data)return r(e);n(e)})).catch(r)}))}(t);return(0,c.useEffect)((()=>{if(!A||h)return;if(!t)return;const a={};if(f?.title!==n&&(a.title=n),f?.description!==r&&(a.description=r),!Object.keys(a).length)return;if(v(a).then((()=>C({title:n,description:r}))),!a?.description?.length)return;const s=(0,m.ZP)(a.description);if(!s?.length)return;const o={label:__("English","jetpack"),srcLang:"en",kind:"chapters",tmpFile:(0,g.ZP)(a.description)};(0,d.n)(o,u).then((()=>{const t=(0,p.p)(u,e);E("getEmbedPreview",[t])}))}),[A,h,n,f?.title,f?.description,r,v,C,e,E,t,u]),[C]}},67203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(86989),a=n.n(r),s=n(69307);function o(e){const[t,n]=(0,s.useState)({}),[r,o]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{e&&(o(!0),async function(){try{const t=await a()({path:`/wp/v2/media/${e}`});n(t?.jetpack_videopress||{}),o(!1)}catch(e){throw o(!1),new Error(e)}}())}),[e]),[t,r]}},84676:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,d:()=>a});var r=n(24288);const a=!!window?.Jetpack_Editor_Initial_State?.available_blocks["videopress/video-chapters"];function s(e,t){if(!a)return e;if("core/video"!==t)return e;const n={...e.attributes,title:{type:"string"},description:{type:"string"}};return{...e,attributes:n,edit:(0,r.Z)(e.edit)}}},84321:(e,t,n)=>{"use strict";function r(e){return e.split("\n").map((e=>function(e){const t=/(?<timeBlock>\(?(?<time>\d{1,2}:\d{2}:\d{2}|\d{1,2}:\d{2})\)?)/.exec(e);if(null==t||null==t.groups)return null;const{groups:{timeBlock:n,time:r}}=t,a=e.indexOf(n),s=(a<(e.length-n.length)/2?e.substring(a+n.length,e.length):e.substring(0,a)).trim().replace(/(\s-$)|(^-\s)/,""),o=r.split(":");return 1===o[0].length&&(o[0]=`0${o[0]}`),2===o.length&&o.unshift("00"),{startAt:o.join(":"),title:s}}(e))).filter((e=>null!==e)).sort(((e,t)=>e.startAt.localeCompare(t.startAt)))}n.d(t,{Tn:()=>r,ZP:()=>r})},38871:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s});var r=n(84321);function a(e){const t=Math.floor(e/36e5);let n=e-36e5*t;const r=Math.floor(n/6e4);n-=6e4*r;return[t,r,Math.floor(n/1e3)].map((e=>e<10?`0${e}`:e)).join(":")}function s(e,t){const n=function(e,t=359999e3){const n=(0,r.Tn)(e);if(0===n.length)return null;let s="WEBVTT\n",o=1;for(const[e,r]of n.entries()){const i=0===e?"000":"001",l=e<n.length-1?n[e+1].startAt:a(t);s+=`\n${o++}\n${r.startAt}.${i} --\x3e ${l}.000\n${r.title}\n`}return s}(e,t);return n?new File([n],"chapters.vtt",{type:"text/vtt"}):null}},83181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(42290),s=n(55609),o=n(65736);const __=o.__;function i({state:e,onUpload:t,onCancel:n,onRecord:o,onPause:i,onResume:l,onDone:c}){return(0,r.createElement)("div",{className:"jetpack-ai-voice-to-content__action-buttons"},["inactive","error","validating"].includes(e)&&(0,r.createElement)(s.Button,{className:"jetpack-ai-voice-to-content__button",icon:a.Qf,variant:"secondary",onClick:o},__("Begin recording","jetpack")),["recording"].includes(e)&&(0,r.createElement)(s.Button,{className:"jetpack-ai-voice-to-content__button",icon:a.Qr,variant:"secondary",onClick:i},__("Pause recording","jetpack")),["paused"].includes(e)&&(0,r.createElement)(s.Button,{className:"jetpack-ai-voice-to-content__button",icon:a.Qf,variant:"secondary",onClick:l},__("Resume recording","jetpack")),["inactive","error","validating"].includes(e)&&(0,r.createElement)(s.FormFileUpload,{accept:".mp3,.mpeg,.mpga,.ogg,.flac,.m4a,.mp4,.wav,.wave,.webm",onChange:t,variant:"secondary",className:"jetpack-ai-voice-to-content__button"},__("Upload audio","jetpack")),["recording","paused"].includes(e)&&(0,r.createElement)(s.Button,{className:"jetpack-ai-voice-to-content__button",variant:"primary",onClick:c},__("Done","jetpack")),["recording","paused","processing"].includes(e)&&(0,r.createElement)(s.Button,{className:"jetpack-ai-voice-to-content__button",variant:"secondary",onClick:n},__("Cancel","jetpack")))}},36265:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(42290),s=n(65736),o=n(79554);const __=s.__;function i({state:e,error:t=null,analyser:n,duration:s=0}){return"inactive"===e?(0,r.createElement)("div",{className:"jetpack-ai-voice-to-content__information"},__("File size limit: 25MB. Recording time limit: 25 minutes.","jetpack")):"recording"===e?(0,r.createElement)("div",{className:"jetpack-ai-voice-to-content__audio"},(0,r.createElement)(a.ZK,{className:"jetpack-ai-voice-to-content__audio--duration",duration:s}),(0,r.createElement)(o.Z,{analyser:n,paused:!1}),(0,r.createElement)("span",{className:"jetpack-ai-voice-to-content__information"},__("Recording…","jetpack"))):"paused"===e?(0,r.createElement)("div",{className:"jetpack-ai-voice-to-content__audio"},(0,r.createElement)(a.ZK,{className:"jetpack-ai-voice-to-content__audio--duration",duration:s}),(0,r.createElement)(o.Z,{analyser:n,paused:!0}),(0,r.createElement)("span",{className:"jetpack-ai-voice-to-content__information"},__("Paused","jetpack"))):"processing"===e?(0,r.createElement)("div",{className:"jetpack-ai-voice-to-content__information"},__("Uploading and transcribing audio…","jetpack")):"validating"===e?(0,r.createElement)("div",{className:"jetpack-ai-voice-to-content__information"},__("Validating audio…","jetpack")):"error"===e?(0,r.createElement)("div",{className:"jetpack-ai-voice-to-content__information--error"},t):null}},79554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(69307);function s({analyser:e,paused:t=!1}){const n=(0,a.useRef)(null),s=(0,a.useRef)(t),o=(0,a.useRef)(null);return(0,a.useEffect)((()=>{s.current=t}),[t]),(0,a.useEffect)((()=>{e&&n.current&&(o.current&&o.current(),o.current=function(e,t,n){const r=t.getContext("2d");let a=!1;if(!r)return;e.fftSize=Math.pow(2,13);const s=e.fftSize,o=new Float32Array(s),i=s/10,{width:l,height:c}=t,u=c/2;r.lineWidth=4,r.lineCap="round",r.strokeStyle=getComputedStyle(t).getPropertyValue("--jp-green-50")||"#008710";const d=()=>{r.clearRect(0,0,l,c),e.getFloatTimeDomainData(o);for(let e=1;e<=10;e++){let t=0;n.current||(t=o.slice(e*i,(e+1)*i).reduce(((e,t)=>e+t),0)/i,t*=2048,t=Math.abs(t),t=Math.min(16,Math.max(0,t))),r.beginPath(),r.moveTo(2+6*e,u-t),r.lineTo(2+6*e,u+t),r.stroke()}setTimeout((()=>{a||requestAnimationFrame(d)}),50)};return d(),()=>{a=!0}}(e,n.current,s))}),[e,n,s]),(0,a.useEffect)((()=>()=>{o.current&&o.current()}),[]),(0,r.createElement)("canvas",{className:"jetpack-ai-voice-to-content__oscilloscope",width:70,height:38,ref:n})}},32663:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(82674),a=n.n(r),s=n(51806),o=n(42290),i=n(88275),l=n(13419),c=n(55609),u=n(9818),d=n(69307),p=n(65736),m=n(15381),g=(n(99196),n(83181)),A=n(36265),h=n(48384),E=n(24167);const __=p.__,f=(e,t,n)=>t?"validating":e?"processing":n;function b({clientId:e}){const[t,n]=(0,d.useState)(null),{removeBlock:r}=(0,u.useDispatch)("core/block-editor"),{getBlocks:p}=(0,u.useSelect)((e=>e("core/editor")),[]),b=(0,d.useCallback)((()=>{setTimeout((()=>{r(e)}),100)}),[r,e]),{tracks:C}=(0,l.z$)(),{isValidatingAudio:v,validateAudio:k}=(0,o.L$)(),{upsertTranscription:B}=(0,E.Z)(),{isCreatingTranscription:y,createTranscription:w,cancelTranscription:_}=(0,h.Z)({onReady:e=>{B(e);const t=p();for(let e=0;e<2;e++)"core/paragraph"===t[e].name&&""===t[e].attributes?.content&&r(String(t[e].clientId));I()},onUpdate:e=>{B(e)},onError:e=>{Q(e)}}),I=()=>{_(),b()},{state:j,controls:x,error:S,onError:Q,duration:N,analyser:P}=(0,o._T)({onDone:e=>{T(e)}}),T=(0,d.useCallback)((e=>{e&&n(e)}),[n]);(0,d.useEffect)((()=>{t&&k(t,(e=>{C.recordEvent("jetpack_ai_voice_to_content_transcription_started",{post_processing_action:o.Y,type:e.isFile?"upload":"record",audio_duration:e.duration,audio_file_size:e.size}),w(t,o.Y)}),Q)}),[t,C,k,w,Q]);const{start:R,pause:Z,resume:L,stop:M,reset:D}=x,F=(0,d.useCallback)((e=>{if(e.currentTarget.files.length>0){const t=e.currentTarget.files[0];T(t)}}),[T]),z=(0,d.useCallback)((()=>{_(),D()}),[_,D]),O=(0,d.useCallback)((()=>{R(1e3)}),[R]),U=(0,d.useCallback)((()=>{Z()}),[Z]),H=(0,d.useCallback)((()=>{L()}),[L]),V=(0,d.useCallback)((()=>{M()}),[M]),q=f(y,v,j);return(0,s.createElement)(c.Modal,{onRequestClose:I,title:__("Jetpack AI Voice to content","jetpack"),className:"jetpack-ai-voice-to-content__modal",shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1},(0,s.createElement)(i.ZP,null,(0,s.createElement)("div",{className:"jetpack-ai-voice-to-content__wrapper"},(0,s.createElement)("div",{className:"jetpack-ai-voice-to-content__body"},(0,s.createElement)("span",{className:"jetpack-ai-voice-to-content__description"},__("Transform your spoken words into a post ready to publish with AI.","jetpack")),(0,s.createElement)("div",{className:"jetpack-ai-voice-to-content__contextual-row"},(0,s.createElement)(A.Z,{state:q,error:S,duration:N,analyser:P})),(0,s.createElement)(g.Z,{state:q,onUpload:F,onCancel:z,onRecord:O,onPause:U,onResume:H,onDone:V})),(0,s.createElement)("div",{className:"jetpack-ai-voice-to-content__footer"},(0,s.createElement)(c.Button,{variant:"link",className:"jetpack-ai-voice-to-content__feedback-button",href:"https://a8c.slack.com/archives/C054LN8RNVA",target:"_blank"},(0,s.createElement)("span",null,__("Provide feedback","jetpack")),(0,s.createElement)(c.Icon,a()({icon:m.Z},{className:"icon"})))))))}},13006:(e,t,n)=>{"use strict";var r=n(31985),a=n(58940),s=n(32663);(0,r.S)(a,{edit:s.Z,save:()=>null})},48384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(42290),a=n(69307),s=n(51128);const o=n.n(s)()("voice-to-content:use-transcription-creator"),i="voice-to-content";function l({onReady:e,onUpdate:t,onError:n}){const s=(0,a.useRef)(null),l=(0,a.useRef)(null),{processTranscription:c,cancelTranscriptionProcessing:u,isProcessingTranscription:d}=(0,r.OS)({feature:i,onReady:e,onUpdate:t,onError:t=>{if(s.current)return e(s.current);o("Transcription post-processing error: ",t)}}),p=(0,a.useCallback)((e=>{s.current=e,l.current&&c(l.current,e)}),[c]),{transcribeAudio:m,cancelTranscription:g,isTranscribingAudio:A}=(0,r.cH)({feature:i,onReady:p,onError:n});return{isCreatingTranscription:A||d,createTranscription:(0,a.useCallback)(((e,t)=>{if(e&&t)return l.current=t,m(e)}),[m]),cancelTranscription:(0,a.useCallback)((()=>{g(),u()}),[g,u])}}},24167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(42290),a=n(4981),s=n(9818),o=n(69307),i=n(51128);const l=n.n(i)()("voice-to-content:use-transcription-inserter");function c(){const{updateBlockAttributes:e,insertBlocks:t,replaceInnerBlocks:n}=(0,s.useDispatch)("core/block-editor"),i=(0,o.useRef)([]);return{upsertTranscription:(0,o.useCallback)((s=>{l("Upserting transcription");const o=(0,r.LB)({content:s||""}),c=(0,a.rawHandler)({HTML:o});for(let r=0;r<c.length;r++)if(r<i.current.length){const t=i.current[r].clientId,a=i.current[r].attributes?.content;c[r].attributes?.content&&a!==c[r].attributes?.content&&e(t,{content:c[r].attributes.content}),c[r].innerBlocks.length>0&&n(t,c[r].innerBlocks)}else t([c[r]],void 0,void 0,!0,null),i.current.push(c[r])}),[i,t,e,n])}}},68925:(e,t,n)=>{"use strict";n.d(t,{W:()=>c});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(99787);const __=o.__,l=(0,a.dM)(i),c=({changeStatus:e,isLoading:t,isModuleActive:n})=>(0,r.createElement)(s.Placeholder,{icon:l,instructions:__("You'll need to activate the WordAds feature to use this block.","jetpack"),label:i.title},(0,r.createElement)(s.Button,{disabled:n||t,isBusy:t,onClick:()=>e(!0),variant:"secondary"},t?__("Activating WordAds","jetpack"):__("Activate WordAds","jetpack",0)),(0,r.createElement)("div",{className:"membership-button__disclaimer"},(0,r.createElement)(s.ExternalLink,{href:"https://jetpack.com/support/ads/"},__("Learn more about the WordAds feature.","jetpack"))))},61981:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(51806),a=n(22636),s=n(55609);const o=()=>(0,r.createElement)(s.Placeholder,null,(0,r.createElement)(s.Flex,{gap:2,direction:"column",style:{width:"100%"}},(0,r.createElement)(s.Flex,{gap:4},(0,r.createElement)(s.FlexItem,null,(0,r.createElement)(a.Z,{width:30,height:30})),(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{width:"90%",height:30}))),(0,r.createElement)(s.Flex,{style:{marginTop:12}},(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{height:30,width:"60%"}))),(0,r.createElement)(s.Flex,{style:{marginTop:12}},(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{width:150,height:50}))),(0,r.createElement)(s.Flex,{style:{marginTop:18}},(0,r.createElement)(s.FlexBlock,null,(0,r.createElement)(a.Z,{width:"90%",height:16})))))},50354:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(51806),a=n(55609),s=n(65736);const __=s.__,o=[{height:250,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})),name:__("Rectangle 300x250","jetpack"),tag:"mrec",width:300,editorPadding:30},{height:90,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V9c0-1.11-.9-2-2-2H9v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})),name:__("Leaderboard 728x90","jetpack"),tag:"leaderboard",width:728,editorPadding:60},{height:50,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.11-.9-2-2-2H9v2h4v2h-2v2h2v2H9v2h4c1.1 0 2-.89 2-2z"})),name:__("Mobile Leaderboard 320x50","jetpack"),tag:"mobile_leaderboard",width:320,editorPadding:100},{height:600,icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M.04 0h24v24h-24V0z"}),(0,r.createElement)(a.Path,{d:"M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-14V5h14v14zm-6-2h2V7h-2v4h-2V7h-2v6h4z"})),name:__("Wide Skyscraper 160x600","jetpack"),tag:"wideskyscraper",width:160,editorPadding:30}]},56565:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(55609),o=n(65736),i=n(1020);const __=o.__,l=({value:e,onChange:t})=>(0,r.createElement)(s.PanelBody,{title:__("Visibility","jetpack")},(0,r.createElement)(s.ToggleControl,{className:"jetpack-wordads__mobile-visibility",checked:!!e,label:__("Hide on mobile","jetpack"),help:__("Hides this block for site visitors on mobile devices.","jetpack"),onChange:t})),c=({attributes:{format:e,hideMobile:t},setAttributes:n})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(i.Z,{value:e,onChange:e=>n({format:e})})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(l,{value:t,onChange:e=>n({hideMobile:!!e})})))},53193:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(88275),s=n(13419),o=n(52175),i=n(68925),l=n(61981),c=n(50354),u=n(56565),d=n(80405),p=n(72473),m=n(38511),g=n(52203);const A=({attributes:e,setAttributes:t})=>{const n=(0,o.useBlockProps)(),{format:A}=e,{isLoadingModules:h,isChangingStatus:E,isModuleActive:f,changeStatus:b}=(0,s.el)("wordads"),C=c.m.find((({tag:e})=>e===A)),v=e=>{switch(e){case"leaderboard":return g;case"mobile_leaderboard":return m;case"wideskyscraper":return d;default:return p}};let k;return k=f?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.Z,{attributes:e,setAttributes:t}),(0,r.createElement)("div",{className:`wp-block-jetpack-wordads jetpack-wordads-${A}`},(0,r.createElement)("div",{className:"jetpack-wordads__ad",style:{width:C.width,height:C.height,backgroundImage:`url( ${v(A)} )`,backgroundSize:"cover"}}))):h?(0,r.createElement)(a.ZP,null,(0,r.createElement)(l.c,null)):(0,r.createElement)(i.W,{changeStatus:b,isModuleActive:f,isLoading:E}),(0,r.createElement)("div",n,k)}},3432:(e,t,n)=>{"use strict";var r=n(31985),a=n(99787),s=n(53193);(0,r.S)(a,{edit:s.Z,save:()=>null})},1020:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(65736),o=n(50354);const i=(0,s.__)("Pick an ad format","jetpack");function l({value:e,onChange:t}){return(0,r.createElement)(a.Dropdown,{placement:"bottom-start",renderToggle:({onToggle:e,isOpen:t})=>(0,r.createElement)(a.ToolbarGroup,{controls:[{icon:(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)(a.Path,{d:"M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"})),title:i,onClick:e,extraProps:{"aria-expanded":t},className:"wp-block-jetpack-wordads__format-picker-icon"}]}),renderContent:({onClose:n})=>(0,r.createElement)(a.NavigableMenu,{className:"wp-block-jetpack-wordads__format-picker"},o.m.map((({tag:s,name:o,icon:i})=>(0,r.createElement)(a.MenuItem,{className:s===e?"is-active":void 0,icon:i,isSelected:s===e,key:s,onClick:()=>{t(s),n()},role:"menuitemcheckbox"},o))))})}},78680:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var r=n(82674),a=n.n(r),s=n(51806),o=n(86989),i=n.n(o),l=n(94333),c=n(92694),u=(n(80425),n(85921),n(63066),n(92713),n(54414),n(36215),n(31657),n(23984),n(14688),n(7652),n(29692),n(1949));function d(e){if(!u)return!1;const t=u.beta||[],n=e.replace(/jetpack\//,"");return t.includes(e)||t.includes(n)}i().use(((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const n=new URL(e.url,location.href);if(n.protocol!==location.protocol||n.hostname!==location.hostname||n.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-wp-api-fetch-from-editor"]="true",t(e)})),(0,c.addFilter)("blocks.registerBlockType","jetpack/label-beta-blocks-title",(function(e,t){if(!d(t))return e;const{title:n,keywords:r}=e,a="(beta)",s="beta",o={...e};return n&&(o.title=n.toLowerCase().endsWith(a)?n:`${e.title} ${a}`),Array.isArray(r)&&(o.keywords=r.includes(s)?r:[...r,s]),o}));const p=(0,l.createHigherOrderComponent)((e=>t=>{if(t?.clientRootId)return(0,s.createElement)(e,t);const{name:n}=t;return d(n)?(0,s.createElement)(e,a()({},t,{className:"is-beta-extension"})):(0,s.createElement)(e,t)}),"withBetaClassName");(0,c.addFilter)("editor.BlockListBlock","jetpack/label-beta-extensions",p)},6460:(e,t,n)=>{"use strict";var r=n(4981),a=n(65736),s=n(81427);const __=a.__,o={name:"descript",title:"Descript",icon:s.h,keywords:[__("descript","jetpack")],description:__("Embed a Descript Item.","jetpack"),patterns:[/^https:\/\/share.descript.com\/(view|embed)\/\w+/i],attributes:{providerNameSlug:"descript",responsive:!0}};(0,r.registerBlockVariation)("core/embed",o)},5166:(e,t,n)=>{"use strict";var r=n(92694),a=n(65736),s=n(70355),o=n(81427);const __=a.__,_x=a._x,i={name:"facebook",title:"Facebook",icon:{src:o.Vq,foreground:(0,s.m)()},keywords:[_x("social","block search term","jetpack")],description:__("Embed a Facebook post.","jetpack"),patterns:[/^https?:\/\/www\.facebook.com\/.+/i],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}};(0,r.addFilter)("blocks.registerBlockType","reactivateFacebookEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations)return e;const n=e.variations.filter((e=>e.name!==i.name));return e.variations=[...n,i],e}))},36215:(e,t,n)=>{"use strict";n(5166),n(20970),n(25467),n(91128),n(6460)},20970:(e,t,n)=>{"use strict";var r=n(92694),a=n(65736),s=n(70355),o=n(81427),i=n(12923);const __=a.__,_x=a._x,l={name:"instagram",title:"Instagram",icon:{src:o.yu,foreground:(0,s.m)()},keywords:[_x("image","block search term","jetpack"),_x("social","block search term","jetpack")],description:__("Embed an Instagram post.","jetpack"),patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i],attributes:{providerNameSlug:"instagram",responsive:!0}};(0,r.addFilter)("blocks.registerBlockType","reactivateInstagramEmbedBlockVariation",(function(e,t){if("core/embed"!==t||!e.variations||!(0,i.Z)())return e;const n=e.variations.filter((e=>e.name!==l.name));return e.variations=[...n,l],e}))},25467:(e,t,n)=>{"use strict";var r=n(4981),a=n(65736),s=n(81427);const __=a.__,o={name:"loom",title:"Loom",icon:s.zf,keywords:[__("video","jetpack")],description:__("Embed a Loom video.","jetpack"),patterns:[/^https?:\/\/(www\.)?loom\.com\/share\/.+/i],attributes:{providerNameSlug:"loom",responsive:!0}};(0,r.registerBlockVariation)("core/embed",o)},91128:(e,t,n)=>{"use strict";var r=n(4981),a=n(65736),s=n(81427);const __=a.__,o={name:"smartframe",title:"SmartFrame",icon:s.Ae,keywords:[__("smartframe","jetpack")],description:__("Embed a SmartFrame Image.","jetpack"),patterns:[/^https?:\/\/(.*?).smartframe.(io|net)\/.*/i],attributes:{providerNameSlug:"smartframe",responsive:!0}};(0,r.registerBlockVariation)("core/embed",o)},31657:(e,t,n)=>{"use strict";var r=n(4981),a=n(92694),s=n(6512);const o={from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"jetpack_widget_social_icons"===e,transform:({instance:e})=>{let t=[];return e.raw.icons.forEach((e=>{const n=new URL(e.url.includes(":")?e.url:"https://"+e.url),a=n.hostname?n.hostname:n.protocol,o=s.Z.find((e=>a.includes(e.url)||e.url.includes(a))),i=(0,r.createBlock)("core/social-link",{service:o?o.name:"chain",url:e.url});t=[...t,i]})),(0,r.createBlock)("core/social-links",{},t)}}]};(0,a.addFilter)("blocks.registerBlockType","addTransformToSocialLinksWidget",(function(e,t){return"core/social-links"!==t||(e.transforms=o),e}))},6512:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=[{name:"wordpress",url:["wordpress."]},{name:"fivehundredpx",url:["500px.com"]},{name:"amazon",url:["amazon."]},{name:"bandcamp",url:["bandcamp.com"]},{name:"behance",url:["behance.net"]},{name:"codepen",url:["codepen.io"]},{name:"deviantart",url:["deviantart.com"]},{name:"dribbble",url:["dribbble.com"]},{name:"dropbox",url:["dropbox.com"]},{name:"etsy",url:["etsy.com"]},{name:"facebook",url:["facebook.com"]},{name:"flickr",url:["flickr.com"]},{name:"foursquare",url:["foursquare.com"]},{name:"goodreads",url:["goodreads.com"]},{name:"google",url:["google."]},{name:"github",url:["github.com"]},{name:"instagram",url:["instagram.com"]},{name:"lastfm",url:["last.fm"]},{name:"linkedin",url:["linkedin.com"]},{name:"mail",url:["mailto:"]},{name:"linkedin",url:["linkedin.com"]},{name:"mastodon",url:["mastodon.social"]},{name:"meetup",url:["meetup.com"]},{name:"medium",url:["medium.com"]},{name:"patreon",url:["patreon.com"]},{name:"pinterest",url:["pinterest."]},{name:"pocket",url:["getpocket.com"]},{name:"reddit",url:["reddit.com"]},{name:"skype",url:["skype.com","skype:"]},{name:"snapchat",url:["snapchat.com"]},{name:"soundcloud",url:["soundcloud.com"]},{name:"spotify",url:["spotify.com"]},{name:"telegram",url:["telegram.me","t.me"]},{name:"tiktok",url:["tiktok.com"]},{name:"tumblr",url:["tumblr.com"]},{name:"twitch",url:["twitch.tv"]},{name:"twitter",url:["twitter.com"]},{name:"vimeo",url:["vimeo.com"]},{name:"vk",url:["vk.com"]},{name:"yelp",url:["yelp.com"]},{name:"youtube",url:["youtube.com"]}]},87950:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,x:()=>s});var r=n(51806),a=n(69307);const s=(0,a.createContext)(),o=({onBannerVisibilityChange:e,hasParentBanner:t,children:n})=>(0,r.createElement)(s.Provider,{value:{onBannerVisibilityChange:e,hasParentBanner:t},children:n})},23984:(e,t,n)=>{"use strict";var r=n(13419),a=n(47701),s=n.n(a),o=n(92694),i=n(65736),l=n(92819),c=n(30371),u=n(7832),d=n(42770),p=n(27003);const __=i.__,m=[];(0,o.addFilter)("blocks.registerBlockType","jetpack/paid-block",((e,t)=>((0,r.X1)(t)&&(m.includes(t)||m.push(t),e.keywords=(0,l.uniq)([...e.keywords,"premium",__("premium","jetpack")]),(0,r.HD)(t)||(e.icon=(0,d.Z)(e.icon)),e.attributes.shouldDisplayFrontendBanner||(e.attributes.shouldDisplayFrontendBanner={type:"boolean",default:!0}),"core/cover"!==t&&(e.supports={...e.supports,__experimentalExposeControlsToChildren:!0})),e))),(0,o.addFilter)("blocks.registerBlockType","jetpack/paid-block-with-upgrade-banner",p.v),(0,o.addFilter)("editor.MediaPlaceholder","jetpack/paid-block-media-placeholder",c.Z),(0,o.addFilter)("editor.MediaReplaceFlow","jetpack/paid-block-media-placeholder",u.Z),s()((function(){(0,r.FK)()&&document.body.classList.add("jetpack-enable-upgrade-nudge")}))},30371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(52175),l=n(94333),c=n(69307),u=n(11317),d=n(87950);const p=(0,l.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,i.useBlockEditContext)(),r=(0,o.m3)(n);if(!r?.mediaPlaceholder||!(0,o.X1)(n))return(0,s.createElement)(e,t);const{fileType:l}=r,{onError:p}=t,{onBannerVisibilityChange:m}=(0,c.useContext)(d.x),g=(0,c.useCallback)((e=>m(e?.length&&(0,u.Qu)(e[0],l))),[l,m]),A=(0,c.useCallback)((e=>{const t=e?.[0]?.props?.children;return(0,u.Qu)(t,l)?g([t]):p(e)}),[g,l,p]);return(0,s.createElement)("div",{className:"paid-block-media-placeholder"},(0,s.createElement)(e,a()({},t,{onFilesPreUpload:g,onError:A})))}),"withMediaPlaceholderUpgradable")},7832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(52175),l=n(94333),c=n(69307),u=n(11317),d=n(87950);const p=(0,l.createHigherOrderComponent)((e=>t=>{const{name:n}=(0,i.useBlockEditContext)(),r=(0,o.m3)(n),l=(0,c.useRef)();if(!r?.mediaReplaceFlow||!(0,o.X1)(n))return(0,s.createElement)(e,t);const{fileType:p}=r,{onBannerVisibilityChange:m}=(0,c.useContext)(d.x);return(0,s.createElement)(e,a()({},t,{onFilesUpload:e=>{l.current=e?.length?e[0]:null,m(e?.length&&(0,u.Qu)(e[0],p))},createNotice:(e,n,r)=>{if((0,u.Qu)(l.current,p))return l.current=null,null;t.createNotice(e,n,r)}}))}),"withMediaReplaceFlowUpgradable")},95796:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);const s=({cx:e=0,cy:t=0,r:n=4,fill:s="#e34c84",stroke:o="#ffffff",strokeWidth:i="2"})=>(0,r.createElement)(a.SVG,{className:"jetpack-paid-block-symbol"},(0,r.createElement)(a.Circle,{cx:e,cy:t,r:n,fill:s,stroke:o,strokeWidth:i}))},42770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,p:()=>l});var r=n(51806),a=n(13419),s=n(95796);const o=e=>{const t=(0,r.createElement)(s.Z,{key:"paid-symbol"});return e?.src?{...e,src:(0,r.createElement)(r.Fragment,null,e.src,t)}:(0,r.createElement)(r.Fragment,null,e,t)},i=o;function l(e,t){return(0,a.X1)(e)?o(t):t}},66316:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d});var r=n(51806),a=n(9818),s=n(65736),o=n(26546),i=n(78798);const __=s.__,_x=s._x,l=__("Premium Block","jetpack"),/** translators: %s: name of the plan. */ | |
| 126 | -c=__("Upgrade to %s to use this premium block","jetpack"),u=(__("Upgrade your plan to use this premium block","jetpack"),_x("Upgrade","Call to action to buy a new plan","jetpack")),d=({onRedirect:e,align:t,className:n,title:d=l,description:p=null,buttonText:m=u,visible:g=!0,requiredPlan:A,context:h})=>{const[E,f,b]=(0,i.Z)(A,e),C=(0,a.useSelect)((e=>{if(p)return p;const t=e("wordpress-com/plans"),n=t&&t.getPlan(A);return n?(0,s.sprintf)(c,n.product_name_short):null}),[p]);return C&&(0,r.createElement)(o.p,{align:t,buttonText:m,checkoutUrl:E,className:n,context:h,description:C,goToCheckoutPage:f,isRedirecting:b,title:d,visible:g})}},38140:(e,t,n)=>{"use strict";n.d(t,{W:()=>a,v:()=>r});const r=({plan:e,blockName:t,context:n,tracks:r})=>{r.recordEvent("jetpack_editor_block_upgrade_click",{plan:e,block:t,context:n})},a=({plan:e,blockName:t,context:n,tracks:r})=>{r.recordEvent("jetpack_editor_block_upgrade_banner_impression",{plan:e,block:t,context:n})}},27003:(e,t,n)=>{"use strict";n.d(t,{v:()=>m});var r=n(51806),a=n(13419),s=n(52175),o=n(94333),i=n(9818),l=n(69307),c=n(87950),u=n(66316),d=n(38140);const p=(0,o.createHigherOrderComponent)((e=>t=>{const{name:n,clientId:o,isSelected:p,attributes:m,setAttributes:g}=t||{},A=(0,a.Rl)(n);if(!A)return(0,r.createElement)(e,t);const h=(0,a.HD)(n),E=(0,a.m3)(n),[f,b]=(0,l.useState)(!h),[C,v]=(0,l.useState)(!1),k="editor-canvas",B=(0,i.useSelect)((e=>e("core/block-editor").hasSelectedInnerBlock(o,!0)),[]),{hasParentBanner:y}=(0,l.useContext)(c.x)||{},w=(p||B)&&f&&!y,{tracks:_}=(0,a.z$)(),I=(0,l.useMemo)((()=>({plan:A,blockName:n,context:k,tracks:_})),[A,n,_]);(0,l.useEffect)((()=>{w&&v(!0)}),[w,v]),(0,l.useEffect)((()=>{!C&&w&&(0,d.W)(I)}),[C,I,w]),(0,l.useEffect)((()=>b(!h)),[m,b,h]),(0,l.useEffect)((()=>{g({shouldDisplayFrontendBanner:!y})}),[g,y]);const j=(0,s.useBlockProps)();return(0,r.createElement)(c.L,{onBannerVisibilityChange:b,hasParentBanner:w},(0,r.createElement)("div",{ref:j.ref,style:{"max-width":"unset"}},(0,r.createElement)(u.ZP,{className:`is-${n.replace(/\//,"-")}-paid-block`,title:null,align:m?.align,visible:w,description:E?.description,requiredPlan:A,context:k,onRedirect:()=>(0,d.v)(I)}),(0,r.createElement)(e,t)))}),"withUpgradeBanner");function m(e,t){return(0,a.Rl)(t)?{...e,edit:p(e.edit)}:e}},90607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(51806),a=n(13419),s=n(55609),o=n(72067),i=n(65736),l=n(51128),c=n.n(l),u=(n(99196),n(63206)),d=n(18135),p=n(34613),m=n(77371),g=n(75317),A=n(75554),h=n(84102),E=n(30664),f=n(16597);const __=i.__,b=c()("jetpack-ai-assistant-plugin:sidebar"),C=window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-assistant-usage-panel"]?.available||!1,v=window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-featured-image-generator"]?.available||!1,k=window?.Jetpack_Editor_Initial_State?.available_blocks?.["ai-title-optimization"]?.available||!1,B=({placement:e,requireUpgrade:t,upgradeType:n})=>{const{checkoutUrl:a}=(0,u.Z)();return(0,r.createElement)(r.Fragment,null,k&&(0,r.createElement)(s.PanelRow,{className:"jetpack-ai-title-optimization__header"},(0,r.createElement)(s.BaseControl,{label:__("Optimize Publishing","jetpack")},(0,r.createElement)(A.Z,{placement:e,busy:!1,disabled:t}))),(0,r.createElement)(s.PanelRow,{className:"jetpack-ai-proofread-control__header"},(0,r.createElement)(s.BaseControl,{label:__("AI feedback on post","jetpack")},(0,r.createElement)(g.Z,{busy:!1,disabled:t}))),v&&(0,r.createElement)(s.PanelRow,{className:"jetpack-ai-featured-image-control__header"},(0,r.createElement)(s.BaseControl,{label:__("AI Featured Image","jetpack")},(0,r.createElement)(m.Z,{busy:!1,disabled:t,placement:e}))),t&&!C&&(0,r.createElement)(s.PanelRow,null,(0,r.createElement)(f.Z,{placement:e,type:n,upgradeUrl:a})),C&&(0,r.createElement)(s.PanelRow,null,(0,r.createElement)(h.Z,{placement:e})))};function y(){const{requireUpgrade:e,upgradeType:t,currentTier:n}=(0,d.Z)(),{checkoutUrl:i}=(0,u.Z)(),{tracks:l}=(0,a.z$)(),c=__("AI Assistant","jetpack");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,null,(0,r.createElement)(s.PanelBody,{title:c,initialOpen:!1,onToggle:e=>{var t;e&&(t=E.bA,b(t),l.recordEvent("jetpack_ai_panel_open",{placement:t}))}},(0,r.createElement)(B,{placement:E.bA,requireUpgrade:e,upgradeType:t}))),(0,r.createElement)(o.PluginDocumentSettingPanel,{icon:(0,r.createElement)(a.Pm,null),title:c,name:"jetpack-ai-assistant"},(0,r.createElement)(B,{placement:E.cG,requireUpgrade:e,upgradeType:t})),(0,r.createElement)(o.PluginPrePublishPanel,{title:c,icon:(0,r.createElement)(a.Pm,null),initialOpen:!1},(0,r.createElement)(r.Fragment,null,k&&(0,r.createElement)(A.Z,{placement:E.jm,busy:!1,disabled:e}),(0,r.createElement)(g.Z,{busy:!1,disabled:e}),e&&(0,r.createElement)(f.Z,{placement:E.jm,type:t,currentTier:n,upgradeUrl:i}))))}},30664:(e,t,n)=>{"use strict";n.d(t,{bA:()=>r,cG:()=>a,jm:()=>s});const r="jetpack-sidebar",a="document-settings",s="pre-publish"},16597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(13419),s=n(55609),o=n(69307),i=n(65736);const __=i.__;function l({onClick:e,type:t,placement:n="",currentTier:l,upgradeUrl:c}){const{tracks:u}=(0,a.z$)(),d=(0,o.useCallback)((t=>{u.recordEvent("jetpack_ai_upgrade_button",{placement:n}),e?.(t)}),[e,u,n]),p=l?.value&&1!==l?.value?l.limit:20,m=__("You have reached the limit of <strong>20 free</strong> requests. <button>Upgrade to continue generating feedback.</button>","jetpack"),g=(0,i.sprintf)(/* translators: number is the request limit for the current tier/plan */ | |
| 127 | -__("You have reached the limit of <strong>%d requests</strong>. <button>Upgrade to continue generating feedback.</button>","jetpack"),p),A=(0,o.createInterpolateElement)(__("You've reached the Jetpack AI rate limit. <strong>Please reach out to your VIP account team.</strong>","jetpack"),{strong:(0,r.createElement)("strong",null)}),h=(0,o.createInterpolateElement)(20===p?m:g,{strong:(0,r.createElement)("strong",null),button:(0,r.createElement)(s.Button,{variant:"link",onClick:d,href:c,target:"_blank"})});return(0,r.createElement)("p",null,"vip"===t?A:h)}},30494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(55609),s=n(65736),o=n(61074),i=n(52800),l=n(46936),c=n(65235),u=n.n(c),d=n(69282);const __=s.__;function p({children:e,isDotted:t=!1}){const n=(0,r.createElement)("img",{className:"ai-assistant-featured-image__carrousel-image",src:`data:image/png;base64,${d.U}`,alt:""});return(0,r.createElement)("div",{className:"ai-assistant-featured-image__blank"},n,(0,r.createElement)("div",{className:u()("ai-assistant-featured-image__blank-content",{"is-dotted":t})},e))}function m({images:e,current:t,handlePreviousImage:n,handleNextImage:s,actions:c=null}){const d=(0,r.createElement)("button",{className:"ai-carrousel__prev",onClick:n},(0,r.createElement)(o.Z,{icon:i.Z,className:u()("ai-carrousel__prev-icon",{"is-disabled":0===t})})),m=(0,r.createElement)("button",{className:"ai-carrousel__next",onClick:s},(0,r.createElement)(o.Z,{icon:l.Z,className:u()("ai-carrousel__next-icon",{"is-disabled":t+1===e.length})}));return(0,r.createElement)("div",{className:"ai-assistant-featured-image__carrousel"},(0,r.createElement)("div",{className:"ai-assistant-featured-image__carrousel-images"},e.length>1&&d,e.map((({image:e,generating:n,error:s},o)=>(0,r.createElement)("div",{key:"image:"+o,className:u()("ai-assistant-featured-image__carrousel-image-container",{"is-current":t===o,"is-prev":t>o})},n?(0,r.createElement)(p,null,(0,r.createElement)(a.Spinner,{style:{width:"50px",height:"50px"}})):(0,r.createElement)(r.Fragment,null,s?(0,r.createElement)(p,{isDotted:!0},(0,r.createElement)("div",{className:"ai-assistant-featured-image__error"},__("An error occurred while generating the image. Please, try again!","jetpack"),s?.message&&(0,r.createElement)("span",{className:"ai-assistant-featured-image__error-message"},s?.message))):(0,r.createElement)("img",{className:"ai-assistant-featured-image__carrousel-image",src:e,alt:""}))))),e.length>1&&m),(0,r.createElement)("div",{className:"ai-assistant-featured-image__carrousel-footer"},(0,r.createElement)("div",{className:"ai-assistant-featured-image__carrousel-counter"},d,t+1," / ",e.length,m),(0,r.createElement)("div",{className:"ai-assistant-featured-image__carrousel-actions"},c)))}},77371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>I,h:()=>B});var r=n(51806),a=n(42290),s=n(13419),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(61074),d=n(15381),p=n(5246),m=n(18135),g=n(23795),A=n(45975),h=n(84944),E=n(30664),f=n(78116),b=n(30494),C=n(62815);const __=c.__,v="ai-image-generator",k="featured-post-image",B="media-source-dropdown",y="stable-diffusion",w="dall-e-3",_=(0,s.Ug)()?"atomic":(0,s.Wp)()?"simple":"jetpack";function I({busy:e,disabled:t,placement:n,onClose:I=(()=>{})}){const{toggleEditorPanelOpened:j}=(0,i.useDispatch)("core/edit-post"),{editPost:x,toggleEditorPanelOpened:S}=(0,i.useDispatch)("core/editor"),{clearSelectedBlock:Q}=(0,i.useDispatch)("core/block-editor"),[N,P]=(0,l.useState)(!1),[T,R]=(0,l.useState)([{generating:!0}]),[Z,L]=(0,l.useState)(0),M=(0,l.useRef)(0),[D,F]=(0,l.useState)(""),z=(0,l.useRef)(!1),{enableComplementaryArea:O}=(0,i.useDispatch)("core/interface"),{generateImageWithParameters:U}=(0,a.Rc)(),{saveToMediaLibrary:H}=(0,h.Z)(),{tracks:V}=(0,s.z$)(),{recordEvent:q}=V,G=T[Z],$=T[M.current],{requireUpgrade:W,requestsCount:J,requestsLimit:Y,currentTier:K,increaseRequestsCount:X,costs:ee}=(0,m.Z)(),te=(0,g.U_)(K),ne=ee?.[k]?.activeModel??10,re=ne===ee?.[k]?.stableDiffusion?y:w,ae=te===g.hp,se=Y-J<ne,oe=(0,A.Z)(),ie=S??j,le=(0,i.useSelect)((e=>e("core/editor").isEditorPanelOpened??e("core/edit-post").isEditorPanelOpened),[]),ce=(0,l.useCallback)((()=>{X(ne)}),[X,ne]),ue=(0,l.useCallback)(((e,t)=>{R((n=>{const r=[...n];return r[t]={...r[t],...e},r})),e.error&&q("jetpack_ai_featured_image_generation_error",{placement:n,error:e.error?.message,model:re,site_type:_})}),[n,q,re]),de=(0,l.useCallback)((()=>{L(Math.max(Z-1,0))}),[Z,L]),pe=(0,l.useCallback)((()=>{L(Math.min(Z+1,T.length-1))}),[Z,T.length]),me=(0,l.useCallback)((()=>{if(ue({generating:!0,error:null},M.current),se)return void ue({generating:!1,error:new Error(__("You don't have enough requests to generate another image.","jetpack"))},M.current);if(!D&&!oe)return void ue({generating:!1,error:new Error(__("No content to generate image. Please type custom instructions and try again.","jetpack"))},M.current);U({feature:k,size:"1792x1024",responseFormat:"b64_json",style:"photographic",messages:[{role:"jetpack-ai",context:{type:"featured-image-generation",request:D||null,content:oe}}]}).then((e=>{if(e.data.length>0){const t="data:image/png;base64,"+e.data[0].b64_json;ue({image:t},M.current),ce(),H(t).then((e=>{ue({libraryId:e.id,generating:!1},M.current),M.current+=1})).catch((()=>{ue({generating:!1},M.current),M.current+=1}))}})).catch((e=>{ue({generating:!1,error:e},M.current)}))}),[se,ue,U,oe,D,ce,H]),ge=(0,l.useCallback)((()=>{P(!N)}),[N,P]),Ae=(0,l.useCallback)((()=>{ge(),I?.()}),[ge,I]),he=(0,l.useCallback)((()=>{q("jetpack_ai_featured_image_generation_generate_image",{placement:n,model:re,site_type:_}),ge(),me()}),[ge,me,q,n,re]),Ee=(0,l.useCallback)((()=>{q("jetpack_ai_featured_image_generation_generate_another_image",{placement:n,model:re,site_type:_}),me(),L((e=>e+1))}),[me,q,n,re]),fe=(0,l.useCallback)((()=>{q("jetpack_ai_featured_image_generation_try_again",{placement:n,model:re,site_type:_}),me()}),[me,q,n,re]),be=(0,l.useCallback)((e=>{F(e.target.value)}),[F]),Ce=(0,l.useCallback)((()=>(Q(),O("core/edit-post","edit-post/document"))),[Q,O]),ve=(0,l.useCallback)((()=>{q("jetpack_ai_featured_image_generation_use_image",{placement:n,model:re,site_type:_});const e=e=>{x({featured_media:e}),Ae(),setTimeout((()=>{const e=le("featured-image"),t=le("post-status");Ce().then((()=>{e||ie("featured-image"),t||ie("post-status")}))}),500)};T[Z].libraryId?e(T[Z].libraryId):H(T[Z].image).then((t=>{e(t.id)}))}),[Z,x,T,le,q,H,ie,Ce,Ae,n,re]);(0,l.useEffect)((()=>{n===B&&(z.current||(z.current=!0,he()))}),[n,he]);const ke=__("Generate a featured image with AI","jetpack"),Be=__("1 request per image","jetpack"),ye=(0,c.sprintf)( | |
| 128 | -// Translators: %d is the cost of generating one image. | |
| 129 | -__("%d requests per image","jetpack"),ne),we=1===ne?Be:ye,_e=(0,r.createElement)(o.Button,{onClick:ve,variant:"primary",isBusy:G?.generating,disabled:!G?.image},__("Set as featured image","jetpack"));return(0,r.createElement)("div",null,(n===E.bA||n===E.cG)&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Create and use an AI generated featured image for your post.","jetpack")),(0,r.createElement)(o.Button,{onClick:he,isBusy:e,disabled:!oe||t||se,variant:"secondary"},__("Generate image","jetpack"))),N&&(0,r.createElement)(f.Z,{handleClose:Ae,title:ke},(0,r.createElement)("div",{className:"ai-assistant-featured-image__content"},(0,r.createElement)("div",{className:"ai-assistant-featured-image__user-prompt"},(0,r.createElement)("div",{className:"ai-assistant-featured-image__user-prompt-textarea"},(0,r.createElement)("textarea",{disabled:se||$?.generating,maxLength:1e3,rows:2,onChange:be,placeholder:__("Include optional instructions to generate a new image","jetpack")}))),(W||se)&&!$?.generating&&(0,r.createElement)(p.Z,{description:se?(0,c.sprintf)( | |
| 130 | -// Translators: %d is the cost of generating a featured image. | |
| 131 | -__("Featured image generation costs %d requests per image. You don't have enough requests to generate another image.","jetpack"),ne):null,placement:v,useLightNudge:!0}),(0,r.createElement)("div",{className:"ai-assistant-featured-image__actions"},(0,r.createElement)("div",{className:"ai-assistant-featured-image__actions-left"},!ae&&ne&&Y&&(0,r.createElement)(C.Z,{cost:ne,currentLimit:Y,currentUsage:J})),(0,r.createElement)("div",{className:"ai-assistant-featured-image__actions-right"},(0,r.createElement)("div",{className:"ai-assistant-featured-image__action-buttons"},$?.error?(0,r.createElement)(o.Button,{onClick:fe,variant:"secondary",disabled:!D&&!oe},__("Try again","jetpack")):(0,r.createElement)(o.Tooltip,{text:we,placement:"bottom"},(0,r.createElement)(o.Button,{onClick:Ee,variant:"secondary",isBusy:$?.generating,disabled:se||$?.generating||!D&&!oe},__("Generate again","jetpack")))))),(0,r.createElement)("div",{className:"ai-assistant-featured-image__image-canvas"},(0,r.createElement)(b.Z,{images:T,current:Z,handlePreviousImage:de,handleNextImage:pe,actions:_e}))),(0,r.createElement)("div",{className:"ai-assistant-featured-image__footer"},(0,r.createElement)(o.Button,{variant:"link",className:"ai-assistant-featured-image__feedback-button",href:"https://jetpack.com/redirect/?source=jetpack-ai-feedback",target:"_blank"},(0,r.createElement)("span",null,__("Provide feedback","jetpack")),(0,r.createElement)(u.Z,{icon:d.Z,className:"icon"})))))}},62815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307),s=n(65736);const __=s.__;function o({currentLimit:e,currentUsage:t,cost:n}){const o=e-t,i=(0,a.createInterpolateElement)( | |
| 132 | -// Translators: %d is the cost of one image. | |
| 133 | -// Translators: %d is the cost of one image. | |
| 134 | -(0,s.sprintf)(__("Requests needed: <counter>%d</counter>","jetpack"),n),{counter:(0,r.createElement)("span",null)}),l=(0,a.createInterpolateElement)( | |
| 135 | -// Translators: %d is the current requests balance. | |
| 136 | -// Translators: %d is the current requests balance. | |
| 137 | -(0,s.sprintf)(__("Requests available: <counter>%d</counter>","jetpack"),o),{counter:o<n?(0,r.createElement)("span",{className:"ai-assistant-featured-image__usage-counter-no-limit"}):(0,r.createElement)("strong",null)});return(0,r.createElement)("div",{className:"ai-assistant-featured-image__usage-counter"},(0,r.createElement)("span",null,i),(0,r.createElement)("span",null,l))}},78116:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(42290),s=n(55609),o=n(65736),i=n(39517);const __=o.__,l=({requestingState:e,onClose:t,title:n})=>(0,r.createElement)("div",{className:"ai-assistant-modal__header"},(0,r.createElement)("div",{className:"ai-assistant-modal__title-wrapper"},(0,r.createElement)(a.rp,{state:e}),(0,r.createElement)("h1",{className:"ai-assistant-modal__title"},n)),(0,r.createElement)(s.Button,{icon:i.Z,label:__("Close","jetpack"),onClick:t}));function c({children:e,handleClose:t,hideHeader:n=!0,requestingState:a="init",title:o=__("AI Assistant","jetpack"),maxWidth:i=720}){return(0,r.createElement)(s.Modal,{__experimentalHideHeader:n,className:"ai-assistant-modal",shouldCloseOnClickOutside:!1,onRequestClose:t},(0,r.createElement)("div",{className:"ai-assistant-modal__content",style:{maxWidth:i}},(0,r.createElement)(l,{requestingState:a,onClose:t,title:o}),(0,r.createElement)("hr",{className:"ai-assistant-modal__divider"}),e))}},75317:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(42290),s=n(13419),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(45975),d=n(78116);const __=c.__;function p({disabled:e=!1,busy:t=!1}){const[n,c]=(0,l.useState)(!1),[p,m]=(0,l.useState)(null),{tracks:g}=(0,s.z$)(),A=(0,i.useSelect)((e=>e("core/editor").getCurrentPostId()),[]),h=(0,u.Z)(),E=()=>{c(!n)},{increaseAiAssistantRequestsCount:f,dequeueAiAssistantFeatureAsyncRequest:b}=(0,i.useDispatch)("wordpress-com/plans"),C=(0,l.useCallback)((()=>{f()}),[f]),{request:v,requestingState:k}=(0,a.pw)({askQuestionOptions:{postId:A},onSuggestion:e=>{const t=e.split("\n").map(((e,t)=>e?.length?(0,r.createElement)("p",{key:`line-${t}`},e):null));m(t)},onDone:C,onError:()=>{}});return(0,r.createElement)("div",null,n&&(0,r.createElement)(d.Z,{requestingState:k,handleClose:E},(0,r.createElement)("div",{className:"ai-assistant-post-feedback__suggestion"},p)),(0,r.createElement)("p",null,__("Get suggestions on how to enhance your post to better engage your audience.","jetpack")),(0,r.createElement)(o.Button,{onClick:()=>{const e=[{role:"jetpack-ai",context:{type:"proofread-plugin",content:h}}];b(),v(e,{feature:"jetpack-ai-proofread-plugin"}),E(),g.recordEvent("jetpack_ai_get_feedback",{feature:"jetpack-ai-proofread-plugin"})},variant:"secondary",disabled:!h||e,isBusy:t},__("Generate feedback","jetpack")))}},75554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(42290),s=n(13419),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(46867),d=n(45975),p=n(78116),m=n(17801);const __=c.__;function g({placement:e,busy:t,disabled:n}){const c=__("Optimize post title","jetpack"),g=(0,d.Z)(),[A,h]=(0,l.useState)(null),[E,f]=(0,l.useState)(!1),[b,C]=(0,l.useState)(!1),[v,k]=(0,l.useState)([]),[B,y]=(0,l.useState)(!1),{editPost:w}=(0,i.useDispatch)("core/editor"),{autosave:_}=(0,u.Z)(),{increaseAiAssistantRequestsCount:I}=(0,i.useDispatch)("wordpress-com/plans"),{tracks:j}=(0,s.z$)(),{recordEvent:x}=j,S=(0,l.useCallback)((()=>{f(!E)}),[E]),Q=(0,l.useCallback)((e=>{C(!1),I();try{const t=JSON.parse(e);k(t),h(t?.[0]?.title)}catch(e){}}),[I]),{request:N,stopSuggestion:P}=(0,a.pw)({onDone:Q,onError:()=>{y(!0),C(!1)}}),T=(0,l.useCallback)((()=>{N([{role:"jetpack-ai",context:{type:"title-optimization",content:g}}],{feature:"jetpack-ai-title-optimization"})}),[g,N]),R=(0,l.useCallback)((()=>{x("jetpack_ai_title_optimization_generate",{placement:e}),C(!0),S(),T()}),[T,e,x,S]),Z=(0,l.useCallback)((()=>{y(!1),C(!0),T()}),[T]),L=(0,l.useCallback)((t=>{x("jetpack_ai_title_optimization_accept",{placement:e}),w({title:A}),S();try{_(t)}catch(e){}}),[_,w,e,x,A,S]),M=(0,l.useCallback)((()=>{S(),P()}),[P,S]);return(0,r.createElement)("div",null,(0,r.createElement)("p",null,__("Use AI to optimize key details of your post.","jetpack")),(0,r.createElement)(o.Button,{isBusy:t,disabled:!g||n,onClick:R,variant:"secondary"},__("Improve title","jetpack")),E&&(0,r.createElement)(p.Z,{handleClose:M,title:c,maxWidth:512},b?(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__loading"},(0,r.createElement)(o.Spinner,{style:{width:"50px",height:"50px"}}),__("Reading your post and generating suggestions…","jetpack")):(0,r.createElement)(r.Fragment,null,B?(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__error"},__("The generation of your suggested titles failed. Please try again.","jetpack")):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"jetpack-ai-title-optimization__intro"},__("Choose an optimized title below:","jetpack")),(0,r.createElement)(m.Z,{onChangeValue:e=>h(e.target.value),selected:A,options:v?.map?.((e=>({value:e.title,label:e.title,description:e.explanation})))})),(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__cta"},(0,r.createElement)(o.Button,{variant:"secondary",onClick:S},__("Cancel","jetpack")),B?(0,r.createElement)(o.Button,{variant:"primary",onClick:Z},__("Try again","jetpack")):(0,r.createElement)(o.Button,{variant:"primary",onClick:L},__("Replace title","jetpack"))))))}},17801:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806);const a="title-optimization-option";function s({options:e,selected:t,onChangeValue:n}){return(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__options"},e.map(((e,s)=>(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__option",key:`${a}-${s}`},(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__option-input"},(0,r.createElement)("input",{id:`${a}-${s}`,type:"radio",name:a,value:e.value,onChange:n,checked:e.value===t})),(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__option-content"},(0,r.createElement)("label",{className:"jetpack-ai-title-optimization__option-label",htmlFor:`${a}-${s}`},e.label,(0,r.createElement)("div",{className:"jetpack-ai-title-optimization__option-description"},e.description)))))))}},14465:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(51806),a=n(22636),s=n(55609),o=n(69307),i=n(65736),l=n(65235),c=n.n(l),u=(n(99196),n(23795));const __=i.__,d=({usage:e})=>{if(null==e)return null;const t=100-100*Math.max(Math.min(e,1),0),n={width:`${t}%`};return(0,r.createElement)("div",{className:"ai-assistant-usage-bar-wrapper"},(0,r.createElement)("div",{className:c()("ai-assistant-usage-bar-usage",{warning:t<60&&t>20,danger:t<=20}),style:n}))};const p=function({isOverLimit:e,planType:t,requestsCount:n,requestsLimit:l,nextResetDate:c=null,loading:p=!1}){const m=e||n>=l;let g=null;const A=Array(),h=Math.max(0,l-n);m&&t===u._5&&A.push(__("You've reached your free requests limit.","jetpack")),m&&t===u.dt&&A.push(__("You've reached your plan requests limit.","jetpack")),c&&t===u.dt&&(g=(0,o.createInterpolateElement)((0,i.sprintf)( | |
| 138 | -// translators: %1$d: number of days until the next usage count reset | |
| 139 | -__("Requests will reset to <strong>%1$d</strong> on %2$s.","jetpack"),l,c),{strong:(0,r.createElement)("strong",null)}));const E=n/l,f=(0,r.createElement)(r.Fragment,null,t===u.hp&&(0,r.createElement)("p",null,__("Unlimited requests.","jetpack")),(t===u._5||t===u.dt)&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"jetpack-ai-usage-panel__available-requests"},h),(0,r.createElement)(d,{usage:E}))),b=(0,r.createElement)(a.Z,{height:100,className:"jetpack-ai-usage-panel__loading-placeholder"}),C=(0,r.createElement)(r.Fragment,null,!p&&A.length?A.join(" ").concat(" "):null,!p&&g);return(0,r.createElement)(s.BaseControl,{help:C,label:__("Available Requests","jetpack")},!p&&f,p&&b)}},84102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(69771),l=n(69307),c=n(65736),u=(n(99196),n(63206)),d=n(18135),p=n(42890),m=n(71449),g=n(46867),A=n(23795),h=n(14465);const __=c.__,E=e=>e?(0,i.gmdateI18n)("F j",e):null,f=(e,t)=>e===A._5?__("Upgrade","jetpack"):t?(0,c.sprintf)( | |
| 123 | +{value:"text",label:__("Text Only","jetpack")}],value:h,onSelect:e=>c({styleType:e})})})}),(0,a.jsxs)(r.InspectorControls,{group:"color",children:[g.map(({onChange:e,label:n,value:o,resetAllFilter:s})=>(0,a.jsx)(r.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o,label:n,onColorChange:e,isShownByDefault:!0,resetAllFilter:s,enableAlpha:!0,clearable:!0}],panelId:t,gradients:"",...m},`social-links-color-${n}`)),(0,a.jsx)(r.ContrastChecker,{textColor:p,backgroundColor:d,isLargeText:!1})]})]})})},65311(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(27723),s=(n(5971),n(13022)),a=n(33822),i=n(61726),c=n(10790);const __=o.__,l=["jetpack/sharing-button"];const u=function(e){const{attributes:t}=e,{size:n}=t,o=(0,c.jsx)("li",{children:__("Click plus to add a Sharing Button","jetpack")}),u=(0,s.A)(n,"jetpack-sharing-buttons__services-list"),d=(0,r.useBlockProps)({className:u}),p=(0,r.useInnerBlocksProps)(d,{allowedBlocks:l,placeholder:o,templateLock:!1,orientation:t.layout?.orientation??"horizontal",sharingEventsAdded:!0,__experimentalAppenderTagName:"li"});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.A,{...e}),(0,c.jsx)(i.A,{...e}),(0,c.jsx)("ul",{...p})]})}},74956(e,t,n){"use strict";var r=n(94375),o=n(32870),s=n(65311),a=n(43016);n(5971);(0,r.M)(o,{edit:s.A,save:a.A})},43016(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);function a({attributes:e}){const{size:t}=e,n=(0,o.A)(t,"jetpack-sharing-buttons__services-list"),a=r.useBlockProps.save({className:n}),i=r.useInnerBlocksProps.save(a);return(0,s.jsx)("ul",{...i,id:"jetpack-sharing-serivces-list"})}},48715(e,t,n){"use strict";var r=n(85985),o=n(54068);(0,r.vp)(o.U,o.W)},54068(e,t,n){"use strict";n.d(t,{U:()=>u,W:()=>d});var r=n(56427),o=n(47143),s=n(86087),a=n(27723),i=n(56778),c=n(44978),l=n(10790);const __=a.__,u="shortlinks",d={render:()=>(0,l.jsx)(h,{})};class p extends s.Component{render(){const{shortlink:e}=this.props;return e?(0,l.jsx)(c.A,{children:(0,l.jsx)(r.PanelBody,{title:__("Shortlink","jetpack"),className:"jetpack-shortlinks__panel",initialOpen:!1,children:(0,l.jsx)(i.A,{link:e})})}):null}}const h=(0,o.withSelect)(e=>{const t=e("core/editor").getCurrentPost();return{shortlink:t?.jetpack_shortlink??""}})(p)},95213(e,t,n){"use strict";n.d(t,{H:()=>l,o:()=>u});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(66087),c=n(10790);const __=a.__,_x=a._x;function l({attributes:{autoplay:e,delay:t,effect:n,images:r,sizeSlug:a},imageSizeOptions:l,onChangeImageSize:u,setAttributes:d}){const p="undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,h=[{label:_x("Slide","Slideshow transition effect","jetpack"),value:"slide"},{label:_x("Fade","Slideshow transition effect","jetpack"),value:"fade"}];return(0,c.jsxs)(s.Fragment,{children:[(0,c.jsxs)(o.PanelBody,{title:__("Autoplay","jetpack"),children:[(0,c.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Autoplay","jetpack"),help:__("Autoplay between slides","jetpack"),checked:e,onChange:e=>{d({autoplay:e})}}),e&&(0,c.jsx)(o.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Delay between transitions (in seconds)","jetpack"),value:t,onChange:e=>{d({delay:e})},min:1,max:5}),e&&p&&(0,c.jsx)("span",{children:__("The Reduce Motion accessibility option is selected, therefore autoplay will be disabled in this browser.","jetpack")})]}),(0,c.jsx)(o.PanelBody,{title:__("Effects","jetpack"),children:(0,c.jsx)(o.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Transition","jetpack"),value:n,onChange:e=>{d({effect:e})},options:h})}),!(0,i.isEmpty)(r)&&!(0,i.isEmpty)(l)&&(0,c.jsx)(o.PanelBody,{title:__("Image Settings","jetpack"),children:(0,c.jsx)(o.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Size","jetpack"),value:a,options:l,onChange:e=>u(e)})})]})}function u({allowedMediaTypes:e,attributes:{images:t},onSelectImages:n}){return(0,c.jsx)(s.Fragment,{children:!!t.length&&(0,c.jsx)(o.ToolbarGroup,{children:(0,c.jsx)(o.ToolbarItem,{children:()=>(0,c.jsx)(r.MediaUpload,{onSelect:n,allowedTypes:e,multiple:!0,gallery:!0,value:t.map(e=>e.id),render:({open:e})=>(0,c.jsx)(o.Button,{label:__("Edit Slideshow","jetpack"),onClick:e,children:__("Edit","jetpack")})})})})})}},33170(e,t,n){"use strict";n.d(t,{A:()=>r});n(58203);async function r(e=".wp-block-jetpack-slideshow_container",t={},n={}){const r={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(n||{}).map(([e,t])=>[e,function(){t(this)}]))};let o;if(window.JetpackSwiper)o=window.JetpackSwiper;else{const e=window.Jetpack_Block_Assets_Base_Url+"swiper.css";if(!document.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t)}if(await(import(window.Jetpack_Block_Assets_Base_Url+"swiper.js")),!window.JetpackSwiper)throw new Error("Failed to load Jetpack Swiper bundle");o=window.JetpackSwiper}return new o(e,{...r,...t})}},88075(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2619),o=n(14496);const s=[n(50869),o,r]},84972(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}}},39126(e,t,n){"use strict";n.d(t,{A:()=>r});n(89275);async function r(e=".swiper-container",t={},n={}){const r={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(n||{}).map(([e,t])=>[e,function(){t(this)}]))};let o;if(window.JetpackSwiper)o=window.JetpackSwiper;else{const e=window.Jetpack_Block_Assets_Base_Url+"swiper.css";if(!document.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t)}if(await(import(window.Jetpack_Block_Assets_Base_Url+"swiper.js")),!window.JetpackSwiper)throw new Error("Failed to load Jetpack Swiper bundle");o=window.JetpackSwiper}return new o(e,{...r,...t})}},2619(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>s.A,save:()=>i,supports:()=>a.A});var r=n(85711),o=n(10790),s=n(84972),a=n(82233);const i=({attributes:{align:e,autoplay:t,delay:n,effect:s,images:a},className:i})=>(0,o.jsx)(r.A,{align:e,autoplay:t,className:i,delay:n,effect:s,images:a})},31837(e,t,n){"use strict";n.d(t,{y:()=>o});var r=n(27723);const __=r.__;function o(e,t,n){let o="";if(n<=5)for(let e=1;e<=n;e++){o+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,r.sprintf)(/* translators: %s: the slide number to navigate to */ | |
| 124 | +__("Go to slide %s","jetpack"),e)+'"></button>'}else o+=`<div class="swiper-pagination-simple">${t} / ${n}</div>`;return o}},85711(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(63162),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(13022),l=n(66087),u=n(94107),d=n(39126),p=n(31837),h=n(57464),m=n(10790);const __=i.__;class g extends a.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,a.createRef)(),this.btnNextRef=(0,a.createRef)(),this.btnPrevRef=(0,a.createRef)(),this.paginationRef=(0,a.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{e(__("The Swiper library could not be loaded.","jetpack"))})}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:o,images:s,onError:a}=this.props;if(t===e.align&&(0,l.isEqual)(s,e.images)||this.swiperInstance&&this.swiperInstance.update(),o!==e.effect||n!==e.autoplay||r!==e.delay||s!==e.images){let t;t=this.swiperIndex?s.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{a(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:n,effect:a,images:i}=this.props;return(0,m.jsx)("div",{className:t,"data-autoplay":e||null,"data-delay":e?n:null,"data-effect":a,children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:i.map(({alt:e,caption:t,id:n,url:a})=>(0,m.jsx)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,r.isBlobURL)(a)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,src:a}),(0,r.isBlobURL)(a)&&(0,m.jsx)(s.Spinner,{}),t&&(0,m.jsx)(o.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},n||a))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,d.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:p.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},82233(e,t,n){"use strict";n.d(t,{A:()=>r});const r={html:!1,align:["center","wide","full"]}},57464(e,t,n){"use strict";n.d(t,{WF:()=>c,bz:()=>i,n7:()=>l,rQ:()=>a});var r=n(89877);const o=16/9,s="wp-block-jetpack-slideshow_autoplay-paused";function a(e){i(e),c(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",function(){e.el&&(e.el.classList.contains(s)?(e.el.classList.remove(s),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(s),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))})}function i(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,o),1),s="undefined"!=typeof window?.8*window.innerHeight:600,a=Math.min(e.width/r,s),i=`${Math.floor(a)}px`,c=`${Math.floor(a/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=i,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=c}function c(e){(e.slides||[]).forEach((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")}),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],o=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(o.alt))}(e)}function l(e){(e.pagination.bullets||[]).forEach(t=>{t.addEventListener("click",()=>{const t=e.slides[e.realIndex];setTimeout(()=>{t.focus()},500)})})}},14496(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>a.A,save:()=>c,supports:()=>i.A});var r=n(94715),o=n(7312),s=n(10790),a=n(84972),i=n(82233);const c=({attributes:{align:e,autoplay:t,delay:n,effect:a,images:i}})=>{const c=r.useBlockProps.save();return(0,s.jsx)("div",{...c,children:(0,s.jsx)(o.A,{align:e,autoplay:t,delay:n,effect:a,images:i})})}},7312(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(63162),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(13022),l=n(66087),u=n(94107),d=n(39126),p=n(31837),h=n(57464),m=n(10790);const __=i.__;class g extends a.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,a.createRef)(),this.btnNextRef=(0,a.createRef)(),this.btnPrevRef=(0,a.createRef)(),this.paginationRef=(0,a.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{e(__("The Swiper library could not be loaded.","jetpack"))})}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:o,images:s,onError:a}=this.props;if(t===e.align&&(0,l.isEqual)(s,e.images)||this.swiperInstance&&this.swiperInstance.update(),o!==e.effect||n!==e.autoplay||r!==e.delay||s!==e.images){let t;t=this.swiperIndex?s.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{a(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,delay:t,effect:n,images:a}=this.props;return(0,m.jsx)("div",{"data-autoplay":e||null,"data-delay":e?t:null,"data-effect":n,children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:a.map(({alt:e,caption:t,id:n,url:a})=>(0,m.jsx)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,r.isBlobURL)(a)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,src:a}),(0,r.isBlobURL)(a)&&(0,m.jsx)(s.Spinner,{}),t&&(0,m.jsx)(o.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},n||a))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,d.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:p.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},77294(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:{default:"center",type:"string"},autoplay:{type:"boolean",default:!1},delay:{type:"number",default:3},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".swiper-slide",query:{alt:{source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},id:{source:"attribute",selector:"img",attribute:"data-id"},url:{source:"attribute",selector:"img",attribute:"src"},aspectRatio:{source:"attribute",selector:"img",attribute:"data-aspect-ratio"}}},effect:{type:"string",default:"slide"},sizeSlug:{type:"string"}}},51012(e,t,n){"use strict";n.d(t,{A:()=>r});n(17309);async function r(e=".swiper-container",t={},n={}){const r={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:Object.fromEntries(Object.entries(n||{}).map(([e,t])=>[e,function(){t(this)}]))};let o;if(window.JetpackSwiper)o=window.JetpackSwiper;else{const e=window.Jetpack_Block_Assets_Base_Url+"swiper.css";if(!document.querySelector(`link[href="${e}"]`)){const t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t)}if(await(import(window.Jetpack_Block_Assets_Base_Url+"swiper.js")),!window.JetpackSwiper)throw new Error("Failed to load Jetpack Swiper bundle");o=window.JetpackSwiper}return new o(e,{...r,...t})}},50869(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>a.A,save:()=>c,supports:()=>i.A});var r=n(94715),o=n(27909),s=n(10790),a=n(77294),i=n(82233);const c=({attributes:{align:e,autoplay:t,delay:n,effect:a,images:i},className:c})=>{const l=r.useBlockProps.save({className:c});return(0,s.jsx)(o.A,{align:e,autoplay:t,className:l.className,delay:n,effect:a,images:i})}},27909(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(63162),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(13022),l=n(66087),u=n(94107),d=n(31837),p=n(51012),h=n(72182),m=n(10790);const __=i.__;class g extends a.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,a.createRef)(),this.btnNextRef=(0,a.createRef)(),this.btnPrevRef=(0,a.createRef)(),this.paginationRef=(0,a.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{e(__("The Swiper library could not be loaded.","jetpack"))})}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:o,images:s,onError:a}=this.props;if(t===e.align&&(0,l.isEqual)(s,e.images)||this.swiperInstance&&this.swiperInstance.update(),o!==e.effect||n!==e.autoplay||r!==e.delay||s!==e.images){let t;t=this.swiperIndex?s.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{a(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:n,effect:a,images:i}=this.props;return(0,m.jsx)("div",{className:t,"data-autoplay":e||null,"data-delay":e?n:null,"data-effect":a,style:{"--aspect-ratio":i[0]?.aspectRatio?`calc(${i[0].aspectRatio})`:void 0},children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper-container",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:i.map(({alt:e,caption:t,id:n,url:a,aspectRatio:i},l)=>(0,m.jsx)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,r.isBlobURL)(a)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,"data-aspect-ratio":i,src:a}),(0,r.isBlobURL)(a)&&(0,m.jsx)(s.Spinner,{}),t&&(0,m.jsx)(o.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},n?`${n}-${l}`:`${a}-${l}`))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,p.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!0,initialSlide:e,followFinger:!1,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:d.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},72182(e,t,n){"use strict";n.d(t,{WF:()=>c,bz:()=>i,n7:()=>l,rQ:()=>a});var r=n(89877);const o=16/9,s="wp-block-jetpack-slideshow_autoplay-paused";function a(e){i(e),c(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",function(){e.el&&(e.el.classList.contains(s)?(e.el.classList.remove(s),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(s),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))})}function i(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.naturalWidth/t.naturalHeight,r=Math.max(Math.min(n,o),1),s="undefined"!=typeof window?.8*window.innerHeight:600,a=Math.min(e.width/r,s),i=`${Math.floor(a)}px`,c=`${Math.floor(a/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=i,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=c}function c(e){(e.slides||[]).forEach((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")}),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],o=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(o.alt))}(e)}function l(e){(e.pagination.bullets||[]).forEach(t=>{t.addEventListener("click",()=>{const t=e.slides[e.realIndex];setTimeout(()=>{t.focus()},500)})})}},13391(e,t,n){"use strict";n.d(t,{Ay:()=>x});var r=n(85985),o=n(63162),s=n(94715),a=n(56427),i=n(29491),c=n(47143),l=n(98490),u=n.n(l),d=n(43656),p=n(86087),h=n(27723),m=n(66087),g=n(87762),f=n(95213),b=n(82795),v=n(63728),y=(n(17319),n(10790));const __=h.__,k=["image"],w=(e,t)=>{const n=(0,m.pick)(e,["alt","id","link","caption"]),r=e?.sizes?.[t]||e?.media_details?.sizes?.[t]||e?.sizes?.full||e?.media_details?.sizes?.full||e;return n.url=r?.url||r?.source_url||e.url,n.width=r?.width||null,n.height=r?.height||null,n.aspectRatio=r?.width&&r?.height?`${r.width} / ${r.height}`:null,n},x=(0,i.compose)((0,c.withSelect)((e,t)=>{const{ids:n}=t.attributes,{getEntityRecord:r}=e("core");return{imageSizes:e("core/editor").getEditorSettings().imageSizes,resizedImages:n.map(e=>{const t=r("postType","attachment",e);return{id:e,sizes:t?.media_details?.sizes}})}}),(0,c.withDispatch)(e=>{const{lockPostSaving:t,unlockPostSaving:n}=e("core/editor");return{lockPostSaving:t,unlockPostSaving:n}}),a.withNotices)(({attributes:e,setAttributes:t,className:n,isSelected:i,noticeOperations:c,noticeUI:l,lockPostSaving:h,unlockPostSaving:m,imageSizes:x,resizedImages:_})=>{const{align:j,autoplay:C,delay:A,effect:S,images:E,sizeSlug:T,ids:N}=e,P=(0,s.useBlockProps)({className:n}),B=e=>{t({images:e,ids:e.map(({id:e})=>parseInt(e,10))})};(0,p.useEffect)(()=>{"undefined"!=typeof window&&u()(function(){(0,v.A)()})},[]);const I=e=>B(e.map(e=>w(e,T))),M=e=>{const t="slideshowBlockLock";h(t),(0,d.mediaUpload)({allowedTypes:k,filesList:e,onFileChange:e=>{const n=e.map(e=>w(e,T));B([...E||[],...n]),n.every(e=>(0,o.isBlobURL)(e.url))||m(t)},onError:c.createErrorNotice})},R=e=>M(e.target.files);let L;return(0,p.useEffect)(()=>{T||t({sizeSlug:N.length?"full":"large"})},[]),L=0===E.length?(0,y.jsx)(s.MediaPlaceholder,{icon:(0,r.sh)(g),labels:{title:__("Slideshow","jetpack"),instructions:__("Drag images, upload new ones or select files from your library.","jetpack")},onSelect:I,accept:"image/*",allowedTypes:k,multiple:!0,notices:l,onError:c.createErrorNotice}):(0,y.jsxs)(y.Fragment,{children:[l,(0,y.jsx)(b.A,{align:j,autoplay:C,delay:A,effect:S,images:E,onError:c.createErrorNotice}),(0,y.jsx)(a.DropZone,{onFilesDrop:M}),i&&(0,y.jsx)("div",{className:"wp-block-jetpack-slideshow__add-item",children:(0,y.jsx)(a.FormFileUpload,{multiple:!0,className:"wp-block-jetpack-slideshow__add-item-button",onChange:R,accept:"image/*",icon:"insert",__next40pxDefaultSize:!0,children:__("Upload an image","jetpack")})})]}),(0,y.jsxs)("div",{...P,children:[(0,y.jsx)(s.InspectorControls,{children:(0,y.jsx)(f.H,{attributes:e,imageSizeOptions:x?.map(({name:e,slug:t})=>({value:t,label:e}))??[],onChangeImageSize:e=>{const n=E.map(t=>{const n=_.find(({id:e})=>parseInt(e,10)===parseInt(t.id,10)),r=n?.sizes?.[e]||n?.media_details?.sizes?.[e]||n?.sizes?.full||n?.media_details?.sizes?.full,o=r?.source_url||r?.url||t.url;return{...t,...o&&{url:o}}});B(n),t({sizeSlug:e})},setAttributes:t})}),(0,y.jsx)(s.BlockControls,{children:(0,y.jsx)(f.o,{allowedMediaTypes:k,attributes:e,onSelectImages:I})}),L]})})},96764(e,t,n){"use strict";var r=n(94375),o=n(87762),s=n(88075),a=n(13391),i=n(7928),c=n(96374),l=n(88513),u=n(98564),d=n(37332);(0,r.M)(o,{edit:a.Ay,save:i.A,transforms:d.A,example:{attributes:{align:"center",autoplay:!0,images:[{alt:"",caption:"",url:c},{alt:"",caption:"",url:l},{alt:"",caption:"",url:u}],effect:"slide"}},deprecated:s.A})},30889(e,t,n){"use strict";n.d(t,{y:()=>o});var r=n(27723);const __=r.__;function o(e,t,n){let o="";if(n<=5)for(let e=1;e<=n;e++){o+='<button class="'+`swiper-pagination-bullet${e===t?" swiper-pagination-bullet-active":""}`+'" tab-index="0" role="button" aria-label="'+(0,r.sprintf)(/* translators: %s: the slide number to navigate to */ | |
| 125 | +__("Go to slide %s","jetpack"),e)+'"></button>'}else o+=`<div class="swiper-pagination-simple">${t} / ${n}</div>`;return o}},7928(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(82795),s=n(10790);const a=({attributes:{align:e,autoplay:t,delay:n,effect:a,images:i},className:c})=>{const l=r.useBlockProps.save({className:c});return(0,s.jsx)(o.A,{align:e,autoplay:t,className:l.className,delay:n,effect:a,images:i})};n.dn(a)},82795(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(63162),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(13022),l=n(66087),u=n(94107),d=n(33170),p=n(30889),h=n(34308),m=n(10790);const __=i.__;class g extends a.Component{pendingRequestAnimationFrame=null;resizeObserver=null;static defaultProps={effect:"slide"};constructor(e){super(e),this.slideshowRef=(0,a.createRef)(),this.btnNextRef=(0,a.createRef)(),this.btnPrevRef=(0,a.createRef)(),this.paginationRef=(0,a.createRef)()}componentDidMount(){const{onError:e}=this.props;this.buildSwiper().then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{e(__("The Swiper library could not be loaded.","jetpack"))})}componentWillUnmount(){this.clearResizeObserver(),this.clearPendingRequestAnimationFrame()}componentDidUpdate(e){const{align:t,autoplay:n,delay:r,effect:o,images:s,onError:a}=this.props;if(t===e.align&&(0,l.isEqual)(s,e.images)||this.swiperInstance&&this.swiperInstance.update(),o!==e.effect||n!==e.autoplay||r!==e.delay||s!==e.images){let t;t=this.swiperIndex?s.length===e.images.length?this.swiperInstance.realIndex:e.images.length:0,this.swiperInstance&&this.swiperInstance.destroy(!0,!0),this.buildSwiper(t).then(e=>{this.swiperInstance=e,this.initializeResizeObserver(e)}).catch(()=>{a(__("The Swiper library could not be loaded.","jetpack"))})}}initializeResizeObserver=e=>{this.clearResizeObserver(),this.resizeObserver=new u.A(()=>{this.clearPendingRequestAnimationFrame(),this.pendingRequestAnimationFrame=requestAnimationFrame(()=>{(0,h.bz)(e),e.update()})}),this.resizeObserver.observe(e.el)};clearPendingRequestAnimationFrame=()=>{this.pendingRequestAnimationFrame&&(cancelAnimationFrame(this.pendingRequestAnimationFrame),this.pendingRequestAnimationFrame=null)};clearResizeObserver=()=>{this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)};render(){if(!this.props?.images?.length)return null;const{autoplay:e,className:t,delay:n,effect:a,images:i}=this.props;return(0,m.jsx)("div",{className:t,"data-autoplay":e||null,"data-delay":e?n:null,"data-effect":a,style:{"--aspect-ratio":i[0]?.aspectRatio?`calc(${i[0].aspectRatio})`:void 0},children:(0,m.jsxs)("div",{className:"wp-block-jetpack-slideshow_container swiper",ref:this.slideshowRef,children:[(0,m.jsx)("ul",{className:"wp-block-jetpack-slideshow_swiper-wrapper swiper-wrapper",children:i.map(({alt:e,caption:t,id:n,url:a,aspectRatio:i},l)=>(0,m.jsx)("li",{className:(0,c.A)("wp-block-jetpack-slideshow_slide","swiper-slide",(0,r.isBlobURL)(a)&&"is-transient"),children:(0,m.jsxs)("figure",{children:[(0,m.jsx)("img",{alt:e,className:`wp-block-jetpack-slideshow_image wp-image-${n}`,"data-id":n,"data-aspect-ratio":i,src:a}),(0,r.isBlobURL)(a)&&(0,m.jsx)(s.Spinner,{}),t&&(0,m.jsx)(o.RichText.Content,{className:"wp-block-jetpack-slideshow_caption gallery-caption",tagName:"figcaption",value:t})]})},n?`${n}-${l}`:`${a}-${l}`))}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-prev swiper-button-prev swiper-button-white",ref:this.btnPrevRef,role:"button"}),(0,m.jsx)("a",{className:"wp-block-jetpack-slideshow_button-next swiper-button-next swiper-button-white",ref:this.btnNextRef,role:"button"}),(0,m.jsx)("a",{"aria-label":"Pause Slideshow",className:"wp-block-jetpack-slideshow_button-pause",role:"button"}),(0,m.jsx)("div",{className:"wp-block-jetpack-slideshow_pagination swiper-pagination swiper-pagination-white",ref:this.paginationRef})]})})}prefersReducedMotion=()=>"undefined"!=typeof window&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;buildSwiper=(e=0)=>(0,d.A)(this.slideshowRef.current,{autoplay:!(!this.props.autoplay||this.prefersReducedMotion())&&{delay:1e3*this.props.delay,disableOnInteraction:!1},effect:this.props.effect,loop:!1,initialSlide:e,followFinger:!1,navigation:{nextEl:this.btnNextRef.current,prevEl:this.btnPrevRef.current},pagination:{clickable:!0,el:this.paginationRef.current,type:"custom",renderCustom:p.y}},{init:h.rQ,imagesReady:h.bz,paginationRender:h.n7,transitionEnd:h.WF})}const f=g},34308(e,t,n){"use strict";n.d(t,{WF:()=>c,bz:()=>i,n7:()=>l,rQ:()=>a});var r=n(89877);const o=16/9,s="wp-block-jetpack-slideshow_autoplay-paused";function a(e){e.slides.length>1&&(e.loopDestroy(),e.params.loop=!0,e.loopCreate(),e.update()),i(e),c(e),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",function(){e.el&&(e.el.classList.contains(s)?(e.el.classList.remove(s),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(s),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))})}function i(e){if(!e||!e.el)return;const t=e.params.loop?e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img'):e.el.querySelector(".swiper-slide img");if(!t)return;let n;if(t.naturalWidth>0&&t.naturalHeight>0)n=t.naturalWidth/t.naturalHeight;else if(t.dataset.aspectRatio){const e=t.dataset.aspectRatio.match(/(\d+) \/ (\d+)/);e&&e[1]&&e[2]&&(n=parseInt(e[1],10)/parseInt(e[2],10))}else t.getAttribute("width")&&t.getAttribute("height")&&(n=parseInt(t.getAttribute("width"),10)/parseInt(t.getAttribute("height"),10));n||(n=o,t.complete||t.addEventListener("load",()=>i(e),{once:!0}));const r=Math.max(Math.min(n,o),1),s="undefined"!=typeof window?.8*window.innerHeight:600,a=Math.min(e.width/r,s),c=`${Math.floor(a)}px`,l=`${Math.floor(a/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=c,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=l,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=l}function c(e){(e.slides||[]).forEach((t,n)=>{t.setAttribute("aria-hidden",n===e.activeIndex?"false":"true"),n===e.activeIndex?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")}),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],o=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,r.escapeHTML)(o.alt))}(e)}function l(e){(e.pagination.bullets||[]).forEach(t=>{t.addEventListener("click",()=>{const t=e.slides[e.realIndex];setTimeout(()=>{t.focus()},500)})})}},37332(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(74997);function o(e=[]){return e.filter(({id:e,url:t})=>e&&t)}const s={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>o(e).length>0,transform:e=>{const t=o(e);return(0,r.createBlock)("jetpack/slideshow",{images:t.map(({alt:e,caption:t,id:n,url:r})=>({alt:e,caption:t,id:n,url:r})),ids:t.map(({id:e})=>e)})}},{type:"block",blocks:["core/gallery","jetpack/tiled-gallery"],transform:({images:e=[]},t)=>{!e.length&&t?.length&&(e=t.filter(e=>"core/image"===e.name&&e.attributes?.url).map(({attributes:e})=>({id:e.id,url:e.url,link:e.href,alt:e.alt,caption:e.caption})));const n=o(e);return n.length>0?(0,r.createBlock)("jetpack/slideshow",{images:n.map(({alt:e,caption:t,id:n,url:r})=>({alt:e,caption:t,id:n,url:r})),ids:n.map(({id:e})=>e)}):(0,r.createBlock)("jetpack/slideshow")}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t})=>(0,r.createBlock)("core/gallery",{images:e,ids:t})},{type:"block",blocks:["core/image"],transform:({images:e})=>e.length>0?e.map(({id:e,url:t,alt:n,caption:o})=>(0,r.createBlock)("core/image",{id:e,url:t,alt:n,caption:o})):(0,r.createBlock)("core/image")}]}},63728(e,t,n){"use strict";function r(){const e=(e,t)=>{const n=e.querySelector(".wp-site-blocks");if(!n)return;const{paddingLeft:r,paddingRight:o}=window.getComputedStyle(n),s=parseFloat(r)+parseFloat(o);e.querySelectorAll(t?".wp-block-group.is-vertical:not(.is-layout-constrained) .wp-block-jetpack-slideshow":".wp-block-group.is-vertical:not(.is-layout-constrained) .wp-block-jetpack-slideshow:not(.entry-content .wp-block-jetpack-slideshow)").forEach(e=>{e.style.maxWidth=`calc(100vw - ${s}px)`})};e(document,!1);document.querySelectorAll("iframe").forEach(t=>{const n=t.contentDocument,r=t.closest("#editor");if(n&&r){n.querySelectorAll(".wp-block-group.is-vertical:not(.is-layout-constrained) .wp-block-jetpack-slideshow").forEach(e=>{e.style.maxWidth="inherit"})}else n&&e(n,!0)})}n.d(t,{A:()=>r})},37340(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(74006),c=n(10790);const __=a.__,l=({allowedMediaTypes:e,attributes:{mediaFiles:t},onSelectMedia:n})=>(0,c.jsx)(s.Fragment,{children:(0,c.jsx)(r.BlockControls,{children:!!t.length&&(0,c.jsx)(o.ToolbarGroup,{children:(0,c.jsx)(o.ToolbarItem,{children:()=>(0,c.jsx)(r.MediaUpload,{title:__("Edit Story","jetpack"),onSelect:n,allowedTypes:e,addToGallery:!0,multiple:"add",value:t.map(e=>e.id),render:({open:e})=>(0,c.jsx)(i.A,{label:__("Edit Story","jetpack"),onClick:e})})})})})});n.dn(l)},46862(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(85985),o=n(63162),s=n(94715),a=n(56427),i=n(47143),c=n(27723),l=n(13022),u=n(68331),d=n(37340),p=n(32320),h=(n(64016),n(10790));const __=c.__,m=["image","video"],g=["alt","title","id","link","type","mime","caption","width","height"],f=(0,r.sh)(u),b=e=>{const t=Object.fromEntries(Object.entries(e).filter(([e])=>g.includes(e)));return t.url=e?.media_details?.original?.url||e?.media_details?.videopress?.original||e?.media_details?.sizes?.large?.source_url||e?.sizes?.large?.url||e.url,t.type=e.media_type||e.type,t.mime=e.mime_type||e.mime,t.title=t.title?.rendered||t.title,t.width=t.width||e.media_details?.width,t.height=t.height||e.media_details?.height,t},v=(0,a.withNotices)(function({attributes:e,isSelected:t,noticeOperations:n,noticeUI:r,setAttributes:a}){const{mediaFiles:c}=e,{lockPostSaving:u,unlockPostSaving:g}=(0,i.useDispatch)("core/editor"),v=(0,s.useBlockProps)(),y="storyBlockLock",k=e=>{const t=e.map(e=>{if(!isNaN(e)){return c.find(t=>t.id===e)||{id:e}}return e}).map(b),n=t.filter(e=>!(0,o.isBlobURL)(e.url));t.length!==n.length?u(y):g(y),a({mediaFiles:t})},w=(0,h.jsx)(d.A,{allowedMediaTypes:m,attributes:e,onSelectMedia:k}),x=!!c.length,_=(0,h.jsx)(s.MediaPlaceholder,{addToGallery:x,isAppender:x,className:v.className,disableMediaButtons:x&&!t,icon:!x&&f,labels:{title:!x&&__("Story","jetpack"),instructions:!x&&__("Drag images and videos, upload new ones, or select files from your library.","jetpack")},onSelect:k,accept:m.map(e=>e+"/*").join(","),allowedTypes:m,multiple:"add",value:c,notices:x?void 0:r,onError:n.createErrorNotice});let j;return j=x?(0,h.jsxs)(h.Fragment,{children:[w,r,(0,h.jsx)(p.A,{slides:c,disabled:!t,showSlideCount:t,shadowDOM:{enabled:!1},playInFullscreen:!1,tapToPlayPause:!1,playOnNextSlide:!1}),t&&_]}):(0,h.jsxs)(h.Fragment,{children:[w,_]}),(0,h.jsx)("div",{...v,className:(0,l.A)("wp-block-jetpack-story","wp-story",v.className),children:j})})},55127(e,t,n){"use strict";var r=n(94375),o=n(68331),s=n(46862),a=n(13629);const i={mediaFiles:[{alt:"",caption:"",mime:"image/jpg",type:"image",id:22,url:n(48734)}]};(0,r.M)(o,{edit:s.A,save:a.A,example:{attributes:i}})},50127(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790);function s({currentMedia:e}){const t=e&&"image"===e.type?e.url:null;return(0,o.jsxs)("div",{className:"wp-story-background",children:[(0,o.jsx)("div",{className:"wp-story-background-image",style:{backgroundImage:t?`url("${t}")`:"none"}}),(0,o.jsx)("div",{className:"wp-story-background-blur"}),(0,o.jsx)(r.SVG,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0",children:(0,o.jsx)("filter",{id:"gaussian-blur-18",children:(0,o.jsx)("feGaussianBlur",{stdDeviation:"18"})})})]})}},12475(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(27723),o=n(13022),s=n(10790);const __=r.__;function a({isEllipsis:e,disabled:t,index:n,isSelected:a,progress:i,onClick:c}){const l=t||e;let u=null;return e||(u=a?(0,r.sprintf)(/* translators: %d: Slide number. */ | |
| 126 | +__("Slide %d, currently selected","jetpack"),n+1):(0,r.sprintf)(/* translators: %d: Slide number. */ | |
| 127 | +__("Go to slide %d","jetpack"),n+1)),(0,s.jsx)("button",{role:l?"presentation":"tab",className:(0,o.A)("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":e}),"aria-label":u,"aria-disabled":l||a,onClick:l||a?void 0:c,disabled:l,children:(0,s.jsx)("div",{className:"wp-story-pagination-bullet-bar",children:(0,s.jsx)("div",{className:"wp-story-pagination-bullet-bar-progress",style:{width:`${i}%`}})})},n)}},82903(e,t,n){"use strict";n.d(t,{d:()=>a,k:()=>s});var r=n(13022),o=(n(59318),n(10790));const s=({className:e,size:t,label:n,isPressed:s,...a})=>(0,o.jsx)("button",{type:"button","aria-label":n,"aria-pressed":s,className:(0,r.A)("jetpack-mdc-icon-button","circle-icon","outlined","bordered",e),style:{width:`${t}px`,height:`${t}px`},...a}),a=({className:e,size:t=24,label:n,isPressed:s,...a})=>(0,o.jsx)("button",{type:"button","aria-label":n,"aria-pressed":s,className:(0,r.A)("jetpack-mdc-icon-button",e),style:{width:`${t}px`,height:`${t}px`},...a})},60566(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);const o=()=>(0,r.jsx)("div",{className:"wp-story-loading-spinner",children:(0,r.jsx)("div",{className:"wp-story-loading-spinner__outer",children:(0,r.jsx)("div",{className:"wp-story-loading-spinner__inner"})})})},15353(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(27723),o=n(82903),s=n(88785),a=n(10790);const _x=r._x;function i({playing:e,muted:t,onPlayPressed:n,onMutePressed:r,showMute:i}){return(0,a.jsxs)("div",{className:"wp-story-controls",children:[(0,a.jsx)(o.d,{isPressed:e,label:e?_x("pause","Button tooltip text","jetpack"):_x("play","Button tooltip text","jetpack",0),onClick:n,children:e?(0,a.jsx)(s.E$,{}):(0,a.jsx)(s.ud,{})}),i&&(0,a.jsx)(o.d,{isPressed:t,label:t?_x("unmute","Button tooltip text","jetpack"):_x("mute","Button tooltip text","jetpack",0),onClick:r,children:t?(0,a.jsx)(s.lQ,{}):(0,a.jsx)(s.Fz,{})})]})}},23840(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(27723),o=n(82903),s=n(88785),a=n(10790);const __=r.__;function i({fullscreen:e,onExitFullscreen:t,siteIconUrl:n,storyTitle:r}){return e?(0,a.jsxs)("div",{className:"wp-story-meta",children:[(0,a.jsx)("div",{className:"wp-story-icon",children:(0,a.jsx)("img",{alt:__("Site icon","jetpack"),src:n,width:"40",height:"40"})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"wp-story-title",children:r})}),(0,a.jsx)(o.d,{className:"wp-story-exit-fullscreen",label:__("Exit Fullscreen","jetpack"),onClick:t,children:(0,a.jsx)(s.US,{})})]}):null}},88785(e,t,n){"use strict";n.d(t,{E$:()=>a,Ej:()=>u,Fz:()=>c,US:()=>i,af:()=>d,lQ:()=>l,ud:()=>s});var r=n(5573),o=n(10790);const s=({size:e})=>(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M8 5v14l11-7z"})}),a=({size:e})=>(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})}),i=({size:e})=>(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),c=({size:e})=>(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"})}),l=({size:e})=>(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"})}),u=({size:e})=>(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}),d=({size:e})=>(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})},84545(e,t,n){"use strict";n.d(t,{$U:()=>l.$U,Dv:()=>r.A,H2:()=>o.A,VS:()=>i.A,Y9:()=>s.A,hJ:()=>a.A,xu:()=>c.A});var r=n(12475),o=n(15353),s=n(23840),a=n(53695),i=n(50127),c=n(60566),l=n(54327);n(82903)},54327(e,t,n){"use strict";n.d(t,{$U:()=>i});var r=n(13022),o=n(10790);const s=({title:e,alt:t,className:n,id:s,mediaRef:a,mime:i,sizes:c,srcset:l,url:u})=>(0,o.jsx)("img",{ref:a,"data-id":s,"data-mime":i,title:e,alt:t,src:u,className:(0,r.A)("wp-story-image",`wp-image-${s}`,n),srcSet:l,sizes:c}),a=({title:e,className:t,id:n,mediaRef:s,mime:a,url:i,poster:c})=>(0,o.jsx)("video",{className:(0,r.A)("wp-story-video","intrinsic-ignore",`wp-video-${n}`,t),ref:s,"data-id":n,title:e,type:a,src:i,poster:c,tabIndex:-1,preload:"auto",playsInline:!0}),i=({targetAspectRatio:e,cropUpTo:t,type:n,width:r,height:i,...c})=>{let l=null;if(r&&i){const n=r/i;if(n>=e){n>e/(1-t)||(l="wp-story-crop-wide")}else{n<e*(1-t)||(l="wp-story-crop-narrow")}}const u="video"===n||(c.mime||"").startsWith("video/");return(0,o.jsx)("figure",{children:u?(0,o.jsx)(a,{...c,className:l}):(0,o.jsx)(s,{...c,className:l})})}},53695(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(86087),o=n(27723),s=n(14847),a=n(82903),i=n(88785),c=n(10790);const __=o.__;function l({ended:e,hasPrevious:t,onNextSlide:n,onPreviousSlide:l,icon:u,slideCount:d,showSlideCount:p}){const h=(0,r.useCallback)(t=>{e||(t.stopPropagation(),l())},[l,e]),m=(0,r.useCallback)(t=>{e||(t.stopPropagation(),n())},[n,e]);return(0,c.jsxs)("div",{className:"wp-story-overlay",children:[p&&(0,c.jsxs)("div",{className:"wp-story-embed-icon",children:[u,(0,c.jsx)("span",{children:d})]}),!p&&(0,c.jsx)("div",{className:"wp-story-embed-icon-expand",children:(0,c.jsx)(s.A,{role:"img"})}),t&&(0,c.jsx)("div",{className:"wp-story-prev-slide",onClick:h,children:(0,c.jsx)(a.k,{size:44,label:__("Previous Slide","jetpack"),className:"outlined-w",children:(0,o.isRTL)()?(0,c.jsx)(i.af,{size:24}):(0,c.jsx)(i.Ej,{size:24})})}),(0,c.jsx)("div",{className:"wp-story-next-slide",onClick:m,children:(0,c.jsx)(a.k,{size:44,label:__("Next Slide","jetpack"),className:"outlined-w",children:(0,o.isRTL)()?(0,c.jsx)(i.Ej,{size:24}):(0,c.jsx)(i.af,{size:24})})})]})}},6064(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(86087),o=n(13022),s=n(10938),a=n(55845),i=n(73886),c=n(10790);const l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent);function u({className:e,fullscreenClassName:t,bodyFullscreenClassName:n,fullscreen:u,shadowDOM:d,onKeyDown:p,onExitFullscreen:h,playerQuerySelector:m,children:g}){const f=(0,r.useRef)(void 0),b=(0,r.useRef)(void 0),[v,y]=(0,r.useState)(null),k=l&&s.Sn(),w=u&&!k,x=u&&k;return(0,r.useLayoutEffect)(()=>{if(k)u?f.current&&s.ql(f.current,h):s.ND()&&s.NS();else if(u){if(y([document.documentElement.scrollLeft,document.documentElement.scrollTop]),document.body.classList.add(n),document.getElementsByTagName("html")[0].classList.add(n),b.current){const e=b.current.querySelector(m);e&&e.focus()}}else if(document.body.classList.remove(n),document.getElementsByTagName("html")[0].classList.remove(n),v){window.scrollTo(...v);const e=f.current.querySelector(m);e&&e.focus()}},[u]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.A,{...d,children:(0,c.jsx)("div",{ref:f,className:(0,o.A)(e,{[t]:x}),onKeyDown:p,children:!w&&g})}),(0,c.jsx)(i.A,{className:(0,o.A)(e,{[t]:w}),isOpened:w,onRequestClose:h,shadowDOM:d,onKeyDown:w&&p,focusOnMount:!1,modalRef:b,children:w&&g})]})}},32320(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(47143),o=n(86087),s=n(48558),a=n(6064),i=n(28514),c=(n(16862),n(57418),n(10790));function l({id:e,slides:t,metadata:n,disabled:l,...u}){const d=(0,o.useMemo)(()=>e||Math.random().toString(36),[e]),{init:p,setEnded:h,setPlaying:m,setFullscreen:g,showSlide:f}=(0,r.useDispatch)("jetpack/story/player"),{playing:b,currentSlideIndex:v,fullscreen:y,isReady:k,playerSettings:w}=(0,r.useSelect)(e=>{const{getCurrentSlideIndex:t,getSettings:n,isFullscreen:r,isPlayerReady:o,isPlaying:s}=e("jetpack/story/player");return o(d)?{playing:s(d),currentSlideIndex:t(d),isReady:!0,fullscreen:r(d),playerSettings:n(d)}:{isReady:!1}},[d]);(0,o.useEffect)(()=>{k||p(d,{slideCount:t.length,...u})},[k,d]);const x=(0,o.useCallback)(e=>{switch(e.keyCode){case s.ENTER:if(y)break;case s.SPACE:m(d,!b);break;case s.LEFT:v>0&&f(d,v-1);break;case s.RIGHT:v<t.length-1?f(d,v+1):h(d)}},[d,v,y,b]),_=(0,o.useCallback)(()=>{g(d,!1)},[d]);return k?(0,c.jsx)(a.A,{shadowDOM:w.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:y,onExitFullscreen:_,onKeyDown:x,children:(0,c.jsx)(i.A,{id:d,slides:t,metadata:n,disabled:l})}):null}},10938(e,t,n){"use strict";n.d(t,{ND:()=>o,NS:()=>a,Sn:()=>r,ql:()=>s});const r=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,o=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,s=(e,t)=>{if((e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen).call(e),t){const e=()=>{document.fullscreenElement||(document.removeEventListener("fullscreenchange",e),t())};document.addEventListener("fullscreenchange",e)}},a=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},55845(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(86087),o=n(10790);const s=window&&window.Element&&Object.hasOwn(window.Element.prototype,"attachShadow");function a({enabled:e,delegatesFocus:t=!1,mode:n="open",globalStyleElements:a=[],adoptedStyleSheets:c=null,mountOnElement:l=null,children:u}){const[d,p]=(0,r.useState)(null),h=l||d,[m,g]=(0,r.useState)(null),f="string"==typeof a?[...document.querySelectorAll(a)]:a,b=s&&e&&f.length>0,v=(0,r.useCallback)(e=>{null!==e&&p(e.parentNode)},[]);if((0,r.useEffect)(()=>{if(!h)return;if(h.shadowRoot)return void g(h.shadowRoot);const e=h.attachShadow({delegatesFocus:t,mode:n});c&&(e.adoptedStyleSheets=c),g(e)},[h]),b&&!m)return l?null:(0,o.jsx)("span",{ref:v});const y=(0,o.jsxs)(o.Fragment,{children:[b&&(0,o.jsx)(i,{globalStyleElements:f}),u]});return b?(0,r.createPortal)(y,m):y}function i({globalStyleElements:e}){return(0,o.jsx)(o.Fragment,{children:e.map(({id:e,tagName:t,attributes:n,innerHTML:r},s)=>"LINK"===t?(0,o.jsx)("link",{id:e,rel:n.rel.value,href:n.href.value},e||s):"STYLE"===t?(0,o.jsx)("style",{id:e,children:r},e||s):void 0)})}},96464(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087);const o=e=>{const t=(0,r.useRef)(void 0),n=(0,r.useRef)(void 0),o=(0,r.useRef)(e),s=(0,r.useCallback)(e=>{e.touches&&1===e.touches.length&&e.preventDefault()},[]);return(0,r.useEffect)(()=>{o.current=e},[e]),{onTouchStart:(0,r.useCallback)(e=>{e.target&&(e.target.addEventListener("touchend",s,{passive:!1}),n.current=e.target),t.current=setTimeout(()=>{o.current&&o.current(!0),t.current=null},200)},[]),onTouchEnd:(0,r.useCallback)(e=>{t.current?clearTimeout(t.current):(o.current&&o.current(!1),e.stopPropagation()),n.current&&n.current.removeEventListener("touchend",s)},[])}}},55028(e,t,n){"use strict";async function r(e){const t=e.tagName.toLowerCase();if("img"===t){if(e.complete)return;await new Promise(t=>{e.addEventListener("load",t,{once:!0})})}else if("video"===t||"audio"===t){if(e.HAVE_ENOUGH_DATA===e.readyState)return;await new Promise(t=>{e.addEventListener("canplaythrough",t,{once:!0}),e.addEventListener("load",t,{once:!0}),e.HAVE_NOTHING===e.readyState&&e.networkState!==e.NETWORK_LOADING&&e.load()})}}n.d(t,{A:()=>r})},72246(e,t,n){"use strict";n.d(t,{WI:()=>a,fe:()=>c});const r=new Set(["alert","status","log","marquee","timer"]);let o=[],s=!1;function a(e){if(s)return;const t=document.body.children;for(const n of t)n!==e&&i(n)&&(n.setAttribute("aria-hidden","true"),o.push(n));s=!0}function i(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||r.has(t))}function c(){if(s){for(const e of o)e.removeAttribute("aria-hidden");o=[],s=!1}}},75181(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(29491),o=n(48558),s=n(10790);function a({overlayClassName:e,children:t,className:n,focusOnMount:a,shouldCloseOnEsc:i=!0,onRequestClose:c,onKeyDown:l,modalRef:u}){const d=(0,r.useFocusOnMount)(a),p=(0,r.useConstrainedTabbing)(),h=(0,r.useFocusReturn)();return(0,s.jsx)("div",{className:e,onKeyDown:function(e){i&&e.keyCode===o.ESCAPE&&(e.stopPropagation(),c&&c(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===o.SPACE||l&&l(e)},children:(0,s.jsx)("div",{className:n,ref:(0,r.useMergeRefs)([p,h,d,u]),children:t})})}},73886(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(29491),o=n(86087),s=n(55845),a=n(72246),i=n(75181),c=n(10790);let l,u=0;const d=()=>{};class p extends o.Component{constructor(e){super(e),this.prepareDOM()}componentDidMount(){u++,1===u&&this.openFirstModal()}componentWillUnmount(){u--,0===u&&this.closeLastModal(),this.cleanDOM()}prepareDOM(){l||(l=document.createElement("div"),document.body.appendChild(l)),this.node=document.createElement("div"),l.appendChild(this.node),this.node.ontouchstart=d,this.node.ontouchend=d}cleanDOM(){this.node&&l&&l.contains(this.node)&&l.removeChild(this.node),this.node=null}openFirstModal(){a.WI(l)}closeLastModal(){a.fe()}render(){const{children:e,isOpened:t,shadowDOM:n,...r}=this.props;return(0,c.jsx)(s.A,{...n,mountOnElement:this.node,children:t&&(0,c.jsx)(i.A,{...r,children:e})})}}p.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0};const h=(0,r.withInstanceId)(p)},28514(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(85985),o=n(63162),s=n(29491),a=n(47143),i=n(86087),c=n(27723),l=n(13022),u=n(68331),d=n(84545),p=n(96464),h=n(55915),m=n(37827),g=n(10790);const __=c.__,f=(0,r.sh)(u);function b({id:e,slides:t,metadata:n,disabled:r}){const{setFullscreen:c,setEnded:u,setPlaying:b,setMuted:v,showSlide:y}=(0,a.useDispatch)("jetpack/story/player"),{playing:k,muted:w,currentSlideIndex:x,currentSlideEnded:_,ended:j,fullscreen:C,settings:A}=(0,a.useSelect)(t=>{const{getCurrentSlideIndex:n,getSettings:r,hasCurrentSlideEnded:o,hasEnded:s,isFullscreen:a,isMuted:i,isPlaying:c}=t("jetpack/story/player");return{playing:c(e),muted:i(e),currentSlideIndex:n(e),currentSlideEnded:o(e),ended:s(e),fullscreen:a(e),settings:r(e)}},[e]),S=(0,i.useRef)(void 0),[E,T]=(0,i.useState)(null),N=(0,s.useResizeObserver)(e=>{const t=e[0]?.contentRect.width;t&&T(t)},{box:"border-box"}),[P,B]=(0,i.useState)(A.defaultAspectRatio),I=t.some(e=>(0,o.isBlobURL)(e.url)),M=t=>{y(e,t)},R=(0,i.useCallback)(()=>{r||C||A.playInFullscreen&&!k&&b(e,!0)},[k,r,C]),{onTouchStart:L,onTouchEnd:D}=(0,p.A)(t=>{b(e,!t)},[]),F=(0,i.useCallback)(()=>{x>0&&M(x-1)},[x]),O=(0,i.useCallback)(()=>{x<t.length-1?M(x+1):u(e)},[x,t]),z=(0,i.useCallback)(()=>{c(e,!1)},[]);let U,H;return(0,i.useEffect)(()=>{r&&k&&b(e,!1)},[r,k]),(0,i.useEffect)(()=>{k&&_&&O()},[k,_]),(0,i.useLayoutEffect)(()=>{const e=S?.current.offsetHeight;if(!S.current||!A.defaultAspectRatio||e<=0)return;N(S.current);let t=Math.round(A.defaultAspectRatio*e);if(C){const e=S.current.offsetWidth;t=Math.abs(1-t/e)<A.cropUpTo?e:t}T(t),B(t/e)},[N,C]),U=C?[__("You are currently playing a story.","jetpack"),k?__("Press space to pause.","jetpack"):__("Press space to play.","jetpack",0),__("Press escape to exit.","jetpack")].join(" "):__("Play story","jetpack"),H=r?"presentation":C?"dialog":"button",(0,g.jsxs)("div",{className:"wp-story-display-contents",children:[(0,g.jsxs)("div",{role:H,"aria-label":U,tabIndex:C?-1:0,className:(0,l.A)("wp-story-container",{"wp-story-with-controls":!r&&!C&&!A.playInFullscreen,"wp-story-fullscreen":C,"wp-story-ended":j,"wp-story-disabled":r,"wp-story-clickable":!r&&!C}),style:{maxWidth:`${E}px`},onClick:R,onTouchStart:L,onTouchEnd:D,children:[(0,g.jsx)(d.Y9,{...n,fullscreen:C,onExitFullscreen:z}),(0,g.jsx)("div",{ref:S,className:"wp-story-wrapper",children:t.map((t,n)=>(0,g.jsx)(m.A,{playerId:e,media:t,index:n,playing:!r&&k,uploading:I,settings:A,targetAspectRatio:P},n))}),(0,g.jsx)(d.hJ,{icon:f,slideCount:t.length,showSlideCount:A.showSlideCount,ended:j,hasPrevious:x>0,onPreviousSlide:F,onNextSlide:O}),A.showProgressBar&&(0,g.jsx)(h.Ay,{playerId:e,slides:t,disabled:!C,onSlideSeek:M,maxBullets:C?A.maxBulletsFullscreen:A.maxBullets}),(0,g.jsx)(d.H2,{playing:k,muted:w,onPlayPressed:()=>b(e,!k),onMutePressed:()=>v(e,!w),showMute:(e=>{const n=e<t.length?t[e]:null;return!!n&&("video"===n.type||(n.mime||"").startsWith("video/"))})(x)})]}),C&&(0,g.jsx)(d.VS,{currentMedia:A.blurredBackground&&t.length>x&&t[x]})]})}},55915(e,t,n){"use strict";n.d(t,{Ay:()=>i});var r=n(47143),o=n(84545),s=n(10790);const a=({bulletIndex:e,playerId:t,index:n,disabled:a,isSelected:i,onClick:c})=>{const l=(0,r.useSelect)(e=>e("jetpack/story/player").getCurrentSlideProgressPercentage(t),[t]);return(0,s.jsx)(o.Dv,{index:n,progress:l,disabled:a,isSelected:i,onClick:c},`bullet-${e}`)},i=({playerId:e,slides:t,disabled:n,onSlideSeek:i,maxBullets:c})=>{const{currentSlideIndex:l}=(0,r.useSelect)(t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e)}),[e]),u=Math.min(t.length,c),d=Math.floor(u/2);let p,h=0,m=t.length-1;return t.length<=c||l<d?(p=l,m=u-1):l>=t.length-d?(p=l-t.length+u,h=t.length-u):(p=d,h=l-d,m=l+d),(0,s.jsxs)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist",children:[h>0&&(0,s.jsx)(o.Dv,{index:h-1,progress:100,isEllipsis:!0},"bullet-0"),Array.from(Array(u),(e,t)=>t+1).map((t,r)=>{const c=r+h;let u;if(c<l)u=100;else{if(!(c>l))return(0,s.jsx)(a,{playerId:e,bulletIndex:r,index:c,disabled:n,isSelected:p===r,onClick:()=>i(c)},`bullet-${r}`);u=0}return(0,s.jsx)(o.Dv,{index:c,progress:u,disabled:n,isSelected:p===r,onClick:()=>i(c)},`bullet-${r}`)}),m<t.length-1&&(0,s.jsx)(o.Dv,{index:m+1,progress:0,isEllipsis:!0},`bullet-${u+1}`)]})}},37827(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(47143),o=n(86087),s=n(13022),a=n(84545),i=n(55028),c=n(10790);const l=({playerId:e,media:t,index:n,playing:l,uploading:u,settings:d,targetAspectRatio:p})=>{const{currentSlideIndex:h,buffering:m}=(0,r.useSelect)(t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e),buffering:t("jetpack/story/player").isBuffering(e)}),[e]),{slideReady:g}=(0,r.useDispatch)("jetpack/story/player"),f=n===h,b=(0,o.useRef)(null),[v,y]=(0,o.useState)(!1),[k,w]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{if(f&&!k){const t=b.current&&b.current.src&&"video"===b.current.tagName.toLowerCase()?b.current:null;g(e,b.current,t?t.duration:d.imageTime)}},[f,k]),(0,o.useEffect)(()=>{n<=h+(l?1:0)&&y(!0)},[l,h]),(0,o.useLayoutEffect)(()=>{b.current&&(0,i.A)(b.current).then(()=>{w(!1)})},[v,u]),(0,c.jsxs)(c.Fragment,{children:[f&&(k||u||m)&&(0,c.jsx)("div",{className:(0,s.A)("wp-story-slide","is-loading",{transparent:l&&m,"semi-transparent":u||!l&&m}),children:(0,c.jsx)(a.xu,{})}),(0,c.jsx)("div",{role:"figure",className:"wp-story-slide",style:{display:f&&!k?"block":"none"},tabIndex:f?0:-1,children:v&&(0,c.jsx)(a.$U,{...t,targetAspectRatio:p,cropUpTo:d.cropUpTo,index:n,mediaRef:b})})]})}},87561(e,t,n){"use strict";function r(e,t){return{type:"SET_MUTED",value:t,playerId:e}}function o(e,t){return{type:"SET_PLAYING",value:t,playerId:e}}function s(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function a(e,t,n){return{type:"SLIDE_READY",mediaElement:t,duration:n,playerId:e}}function i(e,t){return{type:"SET_CURRENT_SLIDE_PROGRESS",value:t,playerId:e}}function c(e){return{type:"RESET_CURRENT_SLIDE_PROGRESS",playerId:e}}function l(e){return{type:"SET_CURRENT_SLIDE_ENDED",playerId:e}}function u(e,t){return{type:"SET_FULLSCREEN",playerId:e,fullscreen:t}}function d(e){return{type:"ENDED",playerId:e}}function p(e,t={}){return{type:"INIT",playerId:e,settings:t}}function h(e,t){return{type:"SET_BUFFERING",value:t,playerId:e}}n.r(t),n.d(t,{init:()=>p,resetCurrentSlideProgress:()=>c,setBuffering:()=>h,setCurrentSlideEnded:()=>l,setCurrentSlideProgress:()=>i,setEnded:()=>d,setFullscreen:()=>u,setMuted:()=>r,setPlaying:()=>o,showSlide:()=>s,slideReady:()=>a})},75483(e,t,n){"use strict";n.d(t,{Tb:()=>r,kD:()=>s,nh:()=>o});const r={currentTime:0,duration:null,timeout:null,lastUpdate:null},o={progress:r,index:0,mediaElement:null,duration:null,ended:!1,ready:!1},s={slideCount:0,currentSlide:o,previousSlide:null,muted:!1,playing:!1,ended:!1,buffering:!1,fullscreen:!1,settings:{imageTime:5,startMuted:!1,playInFullscreen:!0,playOnNextSlide:!0,playOnLoad:!1,exitFullscreenOnEnd:!0,loadInFullscreen:!1,blurredBackground:!0,showSlideCount:!1,showProgressBar:!0,shadowDOM:{enabled:!0,mode:"open",globalStyleElements:'#jetpack-block-story-css, link[href*="jetpack/_inc/blocks/story/view.css"]'},defaultAspectRatio:.5625,cropUpTo:.2,volume:.8,maxBullets:7,maxBulletsFullscreen:14}}},24500(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(87561),o=n(79920);const s=e=>e&&e.src&&"video"===e.tagName.toLowerCase();function a(e,t){const{getState:n}=t,r=e.playerId,a=(0,o.getCurrentMediaElement)(n(),r),i=(0,o.getPreviousSlideMediaElement)(n(),r);if(s(i)&&(i.currentTime=0,i.onwaiting=null,i.onplaying=null,i.pause()),!s(a))return;const c=(0,o.isMuted)(n(),r),l=(0,o.isPlaying)(n(),r),u=(0,o.getSettings)(n(),r);c!==a.muted&&(a.muted=c,c||(a.volume=u.volume)),l?a.play():a.pause()}function i(e,t){const{getState:n,dispatch:a}=t,c=e.playerId,l=(0,o.isCurrentSlideReady)(n(),c),u=(0,o.isPlaying)(n(),c),d=(0,o.getCurrentSlideProgress)(n(),c);if(clearTimeout(d.timeout),!u||!l)return void(d.lastUpdate&&a((0,r.setCurrentSlideProgress)(c,{...d,lastUpdate:null})));const p=(0,o.getCurrentMediaElement)(n(),c),h=(0,o.getCurrentMediaDuration)(n(),c),m=d.lastUpdate?Date.now()-d.lastUpdate:100,g=s(p)?p.currentTime:d.currentTime+m/1e3;if(g>=h){a((0,r.setCurrentSlideEnded)(c));const e=(0,o.getSlideCount)(n(),c);return void((0,o.getCurrentSlideIndex)(n(),c)===e-1&&a((0,r.setEnded)(c)))}a((0,r.setCurrentSlideProgress)(c,{timeout:setTimeout(()=>i(e,t),100),lastUpdate:Date.now(),duration:h,currentTime:g}))}const c={SET_PLAYING:[i,a],SLIDE_READY:[function(e,t){const{getState:n,dispatch:a}=t,i=e.playerId,c=(0,o.getCurrentMediaElement)(n(),i);if(!s(c))return;const l=(0,o.getCurrentSlideProgress)(n(),i);0===c.currentTime&&l.currentTime>0&&(c.currentTime=l.currentTime),c.onwaiting=()=>a((0,r.setBuffering)(i,!0)),c.onplaying=()=>a((0,r.setBuffering)(i,!1))},i,a],SET_MUTED:a,SHOW_SLIDE:a}},57418(e,t,n){"use strict";var r=n(47143),o=n(87561),s=n(74439),a=n(54502),i=n(79920);const c=(0,r.registerStore)("jetpack/story/player",{actions:o,reducer:a.A,selectors:i});(0,s.A)(c)},74439(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(32047),o=n.n(r),s=n(24500);function a(e){const t=[o()(s.A)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const r={getState:e.getState,dispatch:(...e)=>n(...e)},a=t.map(e=>e(r));return n=a.reduceRight((e,t)=>t(e),e.dispatch),e.dispatch=n,e}},54502(e,t,n){"use strict";n.d(t,{A:()=>i}),n.dn(i);var r=n(93764),o=n.n(r),s=n(75483);function a(e=s.kD,t){switch(t.type){case"SHOW_SLIDE":{const n=e.currentSlide===t.index+1;return{...e,currentSlide:{...s.nh,index:t.index},previousSlide:e.currentSlide,playing:n?e.settings.playOnNextSlide:e.playing}}case"SLIDE_READY":return{...e,buffering:!1,currentSlide:{...e.currentSlide,mediaElement:t.mediaElement,duration:t.duration,ready:!0},previousSlide:null};case"SET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:t.value}};case"SET_CURRENT_SLIDE_ENDED":return{...e,currentSlide:{...e.currentSlide,ended:!0}};case"RESET_CURRENT_SLIDE_PROGRESS":return{...e,currentSlide:{...e.currentSlide,progress:{...s.Tb}}};case"SET_MUTED":return{...e,muted:t.value};case"SET_PLAYING":{const n=t.value&&e.ended;return{...e,playing:t.value,buffering:!!t.value&&e.buffering,fullscreen:!e.playing&&t.value?e.settings.playInFullscreen:e.fullscreen,ended:!n&&e.ended,currentSlide:n?{...s.nh,index:0}:e.currentSlide,previousSlide:n?null:e.previousSlide}}case"SET_BUFFERING":return{...e,buffering:t.value};case"SET_FULLSCREEN":return{...e,fullscreen:t.fullscreen,playing:!(e.fullscreen&&!t.fullscreen&&e.settings.playInFullscreen)&&e.playing};case"INIT":{const n=o()(e.settings,t.settings);return{...e,settings:n,playing:n.playOnLoad,fullscreen:n.loadInFullscreen}}case"ENDED":return{...e,currentSlide:{...s.nh,index:e.settings.slideCount-1,progress:{...s.Tb,currentTime:100,duration:100}},ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd}}return e}function i(e={},t){return t.playerId?{...e,[t.playerId]:a(e[t.playerId],t)}:e}},79920(e,t,n){"use strict";function r(e,t){return!!e[t]}function o(e,t){return e[t].currentSlide.index}function s(e,t){return e[t].currentSlide.progress}function a(e,t){const n=e[t].currentSlide.progress.currentTime,r=e[t].currentSlide.progress.duration,o=Math.round(100*n/r);return o>=100?100:o}function i(e,t){return e[t].playing}function c(e,t){return e[t].muted}function l(e,t){return e[t].buffering}function u(e,t){return e[t].currentSlide.mediaElement}function d(e,t){return e[t].currentSlide.duration}function p(e,t){return e[t].currentSlide.ended}function h(e,t){return e[t].currentSlide.ready}function m(e,t){return e[t].previousSlide?.mediaElement}function g(e,t){return e[t].fullscreen}function f(e,t){return e[t].ended}function b(e,t){return e[t].settings}function v(e,t){return e[t].settings.slideCount}n.r(t),n.d(t,{getCurrentMediaDuration:()=>d,getCurrentMediaElement:()=>u,getCurrentSlideIndex:()=>o,getCurrentSlideProgress:()=>s,getCurrentSlideProgressPercentage:()=>a,getPreviousSlideMediaElement:()=>m,getSettings:()=>b,getSlideCount:()=>v,hasCurrentSlideEnded:()=>p,hasEnded:()=>f,isBuffering:()=>l,isCurrentSlideReady:()=>h,isFullscreen:()=>g,isMuted:()=>c,isPlayerReady:()=>r,isPlaying:()=>i})},13629(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);const a=()=>{const e=r.useBlockProps.save();return(0,s.jsx)("div",{...e,className:(0,o.A)("wp-story",e.className)})};n.dn(a)},43751(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(56427),s=n(29491),a=n(27723),i=n(78218),c=n(11380),l=n(10790);const __=a.__;const u=function({attributes:e,setAttributes:t}){const n=(0,s.useInstanceId)(o.TextControl,"inspector-text-control"),a=(0,s.useInstanceId)(o.TextControl,"inspector-text-control"),u=(0,s.useInstanceId)(o.TextControl,"inspector-text-control"),d=(0,r.useBlockProps)(),p=(0,i.y)(c.attributes,e),{redirectToCurrent:h,logInLabel:m,logOutLabel:g,showManageSubscriptionsLink:f,manageSubscriptionsLabel:b}=p;return(0,l.jsxs)("div",{...d,children:[(0,l.jsx)(r.InspectorControls,{children:(0,l.jsxs)(o.PanelBody,{title:__("Settings","jetpack"),children:[(0,l.jsx)(o.ToggleControl,{label:__("Redirect to current URL","jetpack"),checked:h,onChange:()=>t({redirectToCurrent:!h}),__nextHasNoMarginBottom:!0}),(0,l.jsx)(o.BaseControl,{label:__("Log in label","jetpack"),id:n,__nextHasNoMarginBottom:!0,children:(0,l.jsx)(o.TextControl,{placeholder:__("Log in","jetpack"),onChange:e=>t({logInLabel:e}),value:m,id:n,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,l.jsx)(o.BaseControl,{label:__("Log out label","jetpack"),id:a,__nextHasNoMarginBottom:!0,children:(0,l.jsx)(o.TextControl,{placeholder:__("Log out","jetpack"),onChange:e=>t({logOutLabel:e}),value:g,id:a,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,l.jsx)(o.ToggleControl,{label:__('Show "Manage subscription" link',"jetpack"),checked:f,onChange:()=>t({showManageSubscriptionsLink:!f}),__nextHasNoMarginBottom:!0}),f&&(0,l.jsx)(o.BaseControl,{label:__("Manage subscription label","jetpack"),id:u,__nextHasNoMarginBottom:!0,children:(0,l.jsx)(o.TextControl,{placeholder:__("Manage subscription","jetpack"),onChange:e=>t({manageSubscriptionsLabel:e}),value:b,id:u,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})}),(0,l.jsx)("a",{href:"#logout-pseudo-link",children:g||__("Log out","jetpack")})]})}},94052(e,t,n){"use strict";var r=n(74997),o=n(52619),s=n(94375),a=n(11380),i=n(43751);(0,s.M)(a,{edit:i.A,transforms:{from:[{type:"block",blocks:["core/loginout"],transform:({fontSize:e,redirectToCurrent:t})=>(0,r.createBlock)("jetpack/subscriber-login",{fontSize:e,redirectToCurrent:t})}],to:[{type:"block",blocks:["core/loginout"],transform:({fontSize:e,redirectToCurrent:t})=>(0,r.createBlock)("core/loginout",{fontSize:e,redirectToCurrent:t})}]}}),(0,o.addFilter)("blocks.registerBlockType","jetpack-subscriber-login-nav-item",(e,t)=>"core/navigation"===t?{...e,allowedBlocks:[...e.allowedBlocks??[],"jetpack/subscriber-login"]}:e)},2296(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(85985),o=n(94715),s=n(74997),a=n(82165),i=n(56427),c=n(47143),l=n(43656),u=n(86087),d=n(27723),p=n(92634),h=n(49452),m=n(37906),g=n(91158),f=n(64524),b=n(10790);const __=d.__;const v=function(){const e=(0,b.jsxs)(i.SVG,{viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)(i.Path,{d:"M4 16.7134L20 16.7134V15.106H4V16.7134Z"}),(0,b.jsx)(i.Path,{d:"M16 21H20V19.3925H16V21Z"}),(0,b.jsx)(i.Path,{d:"M14 21H10V19.3925H14V21Z"}),(0,b.jsx)(i.Path,{d:"M4 21H8V19.3925H4V21Z"}),(0,b.jsx)(i.Path,{d:"M11.471 6.37162C11.2294 6.55286 11.1538 6.74395 11.1538 6.88519C11.1538 7.02644 11.2294 7.21752 11.471 7.39877C11.7108 7.57865 12.0728 7.70953 12.5 7.70953C13.1349 7.70953 13.7344 7.90158 14.1907 8.24382C14.6451 8.5847 15 9.11491 15 9.77039C15 10.4259 14.6451 10.9561 14.1907 11.297C13.8758 11.5331 13.4928 11.6978 13.0769 11.7771V12.0373C13.0769 12.3788 12.8186 12.6556 12.5 12.6556C12.1814 12.6556 11.9231 12.3788 11.9231 12.0373V11.7771C11.5072 11.6978 11.1242 11.5331 10.8093 11.297C10.3549 10.9561 10 10.4259 10 9.77039C10 9.42893 10.2583 9.15213 10.5769 9.15213C10.8955 9.15213 11.1538 9.42893 11.1538 9.77039C11.1538 9.91163 11.2294 10.1027 11.471 10.284C11.7108 10.4638 12.0728 10.5947 12.5 10.5947C12.9272 10.5947 13.2892 10.4638 13.529 10.284C13.7706 10.1027 13.8462 9.91163 13.8462 9.77039C13.8462 9.62914 13.7706 9.43806 13.529 9.25681C13.2892 9.07693 12.9272 8.94605 12.5 8.94605C11.8651 8.94605 11.2656 8.754 10.8093 8.41176C10.3549 8.07089 10 7.54067 10 6.88519C10 6.22971 10.3549 5.6995 10.8093 5.35863C11.1242 5.12246 11.5072 4.95781 11.9231 4.87844V4.61826C11.9231 4.2768 12.1814 4 12.5 4C12.8186 4 13.0769 4.2768 13.0769 4.61826V4.87844C13.4928 4.95781 13.8758 5.12246 14.1907 5.35863C14.6451 5.6995 15 6.22971 15 6.88519C15 7.22665 14.7417 7.50345 14.4231 7.50345C14.1045 7.50345 13.8462 7.22665 13.8462 6.88519C13.8462 6.74395 13.7706 6.55286 13.529 6.37162C13.2892 6.19174 12.9272 6.06085 12.5 6.06085C12.0728 6.06085 11.7108 6.19174 11.471 6.37162Z"})]}),{tracks:t}=(0,r.st)(),{isLoadingModules:n,isModuleActive:d}=(0,r.q7)("subscriptions"),{createInfoNotice:v}=(0,c.useDispatch)("core/notices"),[y,k]=(0,u.useState)(!1),w=(0,g.iF)(),{removeBlock:x,insertBlocks:_}=(0,c.useDispatch)(o.store),{getBlocksByName:j,canRemoveBlock:C,canInsertBlockType:A,getBlockCount:S}=(0,c.useSelect)(o.store),E=f.name,{stripeConnectUrl:T,hasTierPlans:N}=(0,c.useSelect)(e=>{const{getNewsletterTierProducts:t,getConnectUrl:n}=e("jetpack/membership-products");return{stripeConnectUrl:n(),hasTierPlans:0!==t()?.length}});function P(e){m.P2.paid_subscribers.key!==e||!T&&N?w(e):k(!0)}function B(){if(j(E).length)return;if(!A(E))return;const e=[(0,s.createBlock)(E)];1===S()&&e.push((0,s.createBlock)("core/paragraph")),_(e,1)}return(0,a.useCommandLoader)({name:"jetpack/subscriptions-access",hook:function(){const{postType:r,isLoading:o}=(0,c.useSelect)(e=>{const{getCurrentPostType:t}=e(l.store);return{postType:t(),isLoading:!e(l.store).hasFinishedResolution("getCurrentPostType")||n}},[]);return{commands:(0,u.useMemo)(()=>"post"===r&&d?[{name:"jetpack/subscriptions-access-paid",label:__("Limit post access to paid subscribers","jetpack"),icon:e,callback:({close:e})=>{t.recordEvent("jetpack_editor_command_palette_access_paid_click"),B(),P(m.P2.paid_subscribers.key),v(__("Post limited to paid subscribers only.","jetpack"),{id:"jetpack/subscriptions-access-paid/notice",type:"snackbar"}),e()}},{name:"jetpack/subscriptions-access-subscribers",label:__("Limit post access to free subscribers","jetpack"),icon:e,callback:({close:e})=>{t.recordEvent("jetpack_editor_command_palette_access_subscribers_click"),B(),P(m.P2.subscribers.key),v(__("Post limited to subscribers only.","jetpack"),{id:"jetpack/subscriptions-access-subscribers/notice",type:"snackbar"}),e()}},{name:"jetpack/subscriptions-access-everyone",label:__("Make post accessible to everyone","jetpack"),searchLabel:__("Make post accessible to everyone, free and paid subscribers","jetpack"),icon:p.A,callback:({close:e})=>{t.recordEvent("jetpack_editor_command_palette_access_everyone_click"),function(){const e=j(E);if(e.length){const t=e[0];C(t)&&x(t)}}(),P(m.P2.everybody.key),v(__("Post made accesible to everyone.","jetpack"),{id:"jetpack/subscriptions-access-everyone/notice",type:"snackbar"}),e()}}]:[],[r]),isLoading:o}}}),(0,b.jsx)(h.A,{closeDialog:()=>k(!1),showDialog:y})}},72902(e,t,n){"use strict";n.d(t,{AU:()=>y,Bs:()=>s,E:()=>g,Fm:()=>f,Hq:()=>h,JD:()=>c,Kn:()=>a,Vy:()=>d,ZS:()=>i,Zi:()=>m,aS:()=>l,oi:()=>p,rE:()=>u,rG:()=>o,re:()=>b,rn:()=>v});var r=n(27723);const __=r.__,o=0,s=50,a=0,i=0,c=15,l=1,u=5,d=50,p=15,h=0,m=50,g=10,f="16px",b=__("Type your email…","jetpack"),v=__("Subscribe","jetpack"),y=__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm' to start subscribing.","jetpack")},62255(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(97999),o=n(85985),s=n(54268),a=n(94715),i=n(56427),c=n(86087),l=n(27723),u=n(57753),d=n(68210),p=n(72902),h=n(10790);const __=l.__,_n=l._n;function m({availableNewsletterCategories:e,areNewsletterCategoriesEnabled:t,buttonBackgroundColor:n,borderColor:m,buttonGradient:g,borderRadius:f,borderWeight:b,buttonOnNewLine:v,emailFieldBackgroundColor:y,fallbackButtonBackgroundColor:k,fallbackTextColor:w,fontSize:x,includeSocialFollowers:_,isGradientAvailable:j,padding:C,preselectNewsletterCategories:A,selectedNewsletterCategoryIds:S,setAttributes:E,setBorderColor:T,setButtonBackgroundColor:N,setTextColor:P,showSubscribersTotal:B,spacing:I,subscriberCount:M,textColor:R,buttonWidth:L,isButtonOnlyStyle:D,subscribePlaceholder:F=p.re,successMessage:O=p.AU}){const{isModuleActive:z}=(0,o.q7)("publicize");return(0,c.useEffect)(()=>{if(e?.length>0&&S?.length>0){const t=e.map(e=>e.id),n=S.filter(e=>t.includes(e));if(n.length!==S.length){const e={selectedNewsletterCategoryIds:n};0===n.length&&(e.preselectNewsletterCategories=!1),E(e)}}},[e,E,S]),(0,h.jsxs)(h.Fragment,{children:[M>0&&(0,h.jsx)(u.A,{children:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %s is the number of subscribers. The \xA0 non-breaking space is to make sure the last two words are on the same line. */ | |
| 128 | +_n("<span>%s reader</span> is subscribed.","<span>%s readers</span> are subscribed.",M,"jetpack"),(0,s.qe)(M,{numberFormatOptions:{maximumFractionDigits:1}})),{span:(0,h.jsx)("span",{style:{fontWeight:"bold"}})})}),j&&(0,h.jsx)(a.__experimentalPanelColorGradientSettings,{title:__("Color","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",settings:[{colorValue:n.color,onColorChange:N,gradientValue:g.gradientValue,onGradientChange:g.setGradient,label:__("Button Background","jetpack")},{colorValue:R.color,onColorChange:P,label:__("Button Text","jetpack")},{colorValue:m.color,onColorChange:T,label:__("Border","jetpack")}],initialOpen:!0,children:(0,h.jsx)(a.ContrastChecker,{fontSize:x.size,textColor:R.color,backgroundColor:y.color,fallbackButtonBackgroundColor:k,fallbackTextColor:w})}),!j&&(0,h.jsx)(a.PanelColorSettings,{title:__("Background Colors","jetpack"),className:"wp-block-jetpack-subscriptions__backgroundpanel",colorSettings:[{value:n.color,onChange:N,label:__("Button Background Color","jetpack")},{value:R.color,onChange:P,label:__("Button Text Color","jetpack")},{value:m.color,onColorChange:T,label:__("Border Color","jetpack")}],initialOpen:!1,children:(0,h.jsx)(a.ContrastChecker,{fontSize:x.size,textColor:R.color,backgroundColor:y.color,fallbackButtonBackgroundColor:k,fallbackTextColor:w})}),(0,h.jsx)(i.PanelBody,{title:__("Typography","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__textpanel",children:(0,h.jsx)(a.FontSizePicker,{withSlider:!0,value:x.size,onChange:e=>{const t=e||p.Fm;E({fontSize:t,customFontSize:t})},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,h.jsxs)(i.PanelBody,{title:__("Border","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__borderpanel",children:[(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:f,label:__("Border Radius","jetpack"),min:p.rG,max:p.Bs,initialPosition:p.Kn,allowReset:!0,onChange:e=>E({borderRadius:e})}),(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:b,label:__("Border Weight","jetpack"),min:p.ZS,max:p.JD,initialPosition:p.aS,allowReset:!0,onChange:e=>E({borderWeight:e})})]}),(0,h.jsxs)(i.PanelBody,{title:__("Spacing","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__spacingpanel",children:[(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:C,label:__("Space Inside","jetpack"),min:p.rE,max:p.Vy,initialPosition:p.oi,allowReset:!0,onChange:e=>E({padding:e})}),(0,h.jsx)(i.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:I,label:__("Space Between","jetpack"),min:p.Hq,max:p.Zi,initialPosition:p.E,allowReset:!0,onChange:e=>E({spacing:e})}),(0,h.jsx)(d.s,{width:L,onChange:e=>{E({buttonWidth:e,buttonOnNewLine:v||"100%"===e})}})]}),(0,h.jsxs)(i.PanelBody,{title:__("Settings","jetpack"),initialOpen:!1,className:"wp-block-jetpack-subscriptions__displaypanel",children:[(0,h.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show subscriber count","jetpack"),checked:B,onChange:()=>{E({showSubscribersTotal:!B,includeSocialFollowers:void 0!==_&&_})},help:()=>{if(!M||M<1)return __("This will remain hidden until there is at least one subscriber.","jetpack")}}),z&&(0,h.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!B,label:__("Include social followers in count","jetpack"),checked:void 0===_||_,onChange:()=>{E({includeSocialFollowers:void 0!==_&&!_})}}),(0,h.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Place button on new line","jetpack"),checked:v,onChange:()=>{E({buttonOnNewLine:!v})}}),(0,h.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,value:F,label:__("Input placeholder text","jetpack"),help:__("Edit the placeholder text of the email address input.","jetpack"),onChange:e=>E({subscribePlaceholder:e})}),D&&(0,h.jsx)("p",{className:"jetpack-subscriptions__inspector-help",children:(0,c.createInterpolateElement)(__("To update the message shown in the subscribe pop-up, please visit the <link>Newsletter settings page</link>.","jetpack"),{link:(0,h.jsx)(i.ExternalLink,{href:(0,r.getAdminUrl)("admin.php?page=jetpack-newsletter")})})}),!(0,r.isSimpleSite)()&&(0,h.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,value:O,label:__("Success message","jetpack"),help:__("Edit the message displayed when a user subscribes.","jetpack"),onChange:e=>E({successMessage:e})}),t&&e.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(i.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Pre-select categories","jetpack"),checked:A,onChange:e=>{E({preselectNewsletterCategories:e})},help:__("When enabled, the user will be automatically subscribed to the selected categories below when they submit the form.","jetpack")}),A&&(0,h.jsxs)("fieldset",{children:[(0,h.jsx)("legend",{className:"wp-block-jetpack-subscriptions__legend",children:__("Categories","jetpack")}),e.map(e=>(0,h.jsx)(i.CheckboxControl,{__nextHasNoMarginBottom:!0,disabled:!A,label:e.name,checked:S.includes(e.id),onChange:()=>{const t=S.includes(e.id)?S.filter(t=>t!==e.id):[...S,e.id],n={selectedNewsletterCategoryIds:t};0===t.length&&(n.preselectNewsletterCategories=!1),E(n)}},e.id))]})]})]})]})}},39025(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(17425),o=n(254),s=n(77349),a=n(20880),i=n(82935),c=n(93746),l=n(53545);const u=[n(324).A,l.A,c.A,i.A,a.A,s.A,o.A,r.A]},17425(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(86087),o=n(27723),s=n(66087),a=n(10790);const i={attributes:{subscribeButton:{type:"string",default:(0,o.__)("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:e=>({submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal}),isEligible:e=>!(!Object.hasOwn(e,"subscribeButton")||!(0,s.isEmpty)(e.subscribeButton)),save:function({attributes:e}){return(0,a.jsx)(r.RawHTML,{children:`[jetpack_subscription_form show_subscribers_total="${e.showSubscribersTotal}" show_only_email_and_button="true"]`})}}},254(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(27723),o=n(8903);const __=r.__,s={attributes:{subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},subscribeButton:{type:"string",default:__("Subscribe","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},migrate:e=>({subscribePlaceholder:e.subscribePlaceholder,showSubscribersTotal:e.showSubscribersTotal,buttonOnNewLine:!0,submitButtonText:e.submitButtonText,buttonBackgroundColor:e.backgroundButtonColor?e.backgroundButtonColor:"primary",customButtonBackgroundColor:e.customBackgroundButtonColor,textColor:e.textButtonColor?e.textButtonColor:"background",customTextColor:e.customTextButtonColor}),save:o.A}},8903(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(86087),o=n(10790);function s({attributes:e}){const{showSubscribersTotal:t,submitButtonClasses:n,customBackgroundButtonColor:s,customTextButtonColor:a,submitButtonText:i}=e;return(0,o.jsx)(r.RawHTML,{children:`[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="${s}" custom_text_button_color="${a}" submit_button_text="${i}" submit_button_classes="${n}" show_subscribers_total="${t}" ]`})}},9208(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723);const __=r.__,o={subscribePlaceholder:{type:"string",default:__("Enter your email address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},submitButtonText:{type:"string",default:__("Sign Up","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"number"},customFontSize:{type:"number"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},53228(e,t,n){"use strict";n.d(t,{Ay:()=>c});var r=n(94715),o=n(86087),s=n(13022),a=n(9208),i=n(10790);function c(e,t,n=null){const{subscribePlaceholder:c,showSubscribersTotal:l,buttonOnNewLine:u,submitButtonText:d,emailFieldBackgroundColor:p,customEmailFieldBackgroundColor:h,emailFieldGradient:m,customEmailFieldGradient:g,buttonBackgroundColor:f,customButtonBackgroundColor:b,buttonGradient:v,customButtonGradient:y,textColor:k,customTextColor:w,fontSize:x,customFontSize:_,borderRadius:j,borderWeight:C,borderColor:A,customBorderColor:S,padding:E,spacing:T}=t,N=!!r.__experimentalGetGradientClass,P=(0,r.getColorClassName)("color",k),B=(0,r.getFontSizeClass)(x),I=(0,r.getColorClassName)("border-color",A),M=(0,r.getColorClassName)("background-color",f),R=N?(0,r.__experimentalGetGradientClass)(v):void 0,L=(0,r.getColorClassName)("background-color",p),D=N?(0,r.__experimentalGetGradientClass)(m):void 0,F=(0,s.A)(0===j?"no-border-radius":void 0,B,I),O=(0,s.A)(F,k?"has-text-color":void 0,P,f||v?"has-background":void 0,M,R),z=(0,s.A)(F,L,D),U=!L&&g?g:h,H=!M&&y?y:b;let $=c,V=d;return"check-text-defaults"===n&&($=c===a.A.subscribePlaceholder.default?"Enter your email address":c,V=d===a.A.submitButtonText.default?"Sign Up":d),(0,i.jsx)("div",{className:(0,s.A)(e,"wp-block-jetpack-subscriptions__supports-newline",u?"wp-block-jetpack-subscriptions__use-newline":void 0,l?"wp-block-jetpack-subscriptions__show-subs":void 0),children:(0,i.jsx)(o.RawHTML,{children:`\n\t\t\t[jetpack_subscription_form\n\t\t\t\tsubscribe_placeholder="${$}"\n\t\t\t\tshow_subscribers_total="${l}"\n\t\t\t\tbutton_on_newline="${u}"\n\t\t\t\tsubmit_button_text="${V}"\n\t\t\t\tcustom_background_emailfield_color="${U}"\n\t\t\t\tcustom_background_button_color="${H}"\n\t\t\t\tcustom_text_button_color="${w}"\n\t\t\t\tcustom_font_size="${_||16}"\n\t\t\t\tcustom_border_radius="${j||0}"\n\t\t\t\tcustom_border_weight="${C||1}"\n\t\t\t\tcustom_border_color="${S}"\n\t\t\t\tcustom_padding="${E||15}"\n\t\t\t\tcustom_spacing="${T||10}"\n\t\t\t\tsubmit_button_classes="${O}"\n\t\t\t\temail_field_classes="${z}"\n\t\t\t\tshow_only_email_and_button="true"\n\t\t\t]`})})}},77349(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(9208),o=n(53228);const s={attributes:r.A,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:({className:e,attributes:t})=>(0,o.Ay)(e,t)}},20880(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(9208),o=n(53228);const s={attributes:r.A,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:({className:e,attributes:t})=>(0,o.Ay)(e,t,"check-text-defaults")}},82935(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(9208),o=n(99374);const s={attributes:r.A,migrate:e=>{const{fontSize:t,customFontSize:n}=e;return{...e,fontSize:t?`${t}px`:void 0,customFontSize:n?`${n}px`:void 0}},save:o.Ay}},99374(e,t,n){"use strict";n.d(t,{Ay:()=>c});var r=n(94715),o=n(86087),s=n(13022),a=n(9208),i=n(10790);function c({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:c,buttonOnNewLine:l,submitButtonText:u,emailFieldBackgroundColor:d,customEmailFieldBackgroundColor:p,emailFieldGradient:h,customEmailFieldGradient:m,buttonBackgroundColor:g,customButtonBackgroundColor:f,buttonGradient:b,customButtonGradient:v,textColor:y,customTextColor:k,fontSize:w,customFontSize:x,borderRadius:_,borderWeight:j,borderColor:C,customBorderColor:A,padding:S,spacing:E}=t,T=!!r.__experimentalGetGradientClass,N=(0,r.getColorClassName)("color",y),P=(0,r.getFontSizeClass)(w),B=(0,r.getColorClassName)("border-color",C),I=(0,r.getColorClassName)("background-color",g),M=T?(0,r.__experimentalGetGradientClass)(b):void 0,R=(0,r.getColorClassName)("background-color",d),L=T?(0,r.__experimentalGetGradientClass)(h):void 0,D=(0,s.A)(0===_?"no-border-radius":void 0,P,B),F=(0,s.A)(D,y?"has-text-color":void 0,N,g||b?"has-background":void 0,I,M),O=(0,s.A)(D,R,L),z=!R&&m?m:p,U=!I&&v?v:f,H={subscribe_placeholder:n!==a.A.subscribePlaceholder.default?n:void 0,show_subscribers_total:c,button_on_newline:l,submit_button_text:u!==a.A.submitButtonText.default?u:void 0,custom_background_emailfield_color:z,custom_background_button_color:U,custom_text_button_color:k,custom_font_size:x||16,custom_border_radius:_||0,custom_border_weight:j||1,custom_border_color:A,custom_padding:S||15,custom_spacing:E||10,submit_button_classes:F,email_field_classes:O,show_only_email_and_button:!0},$=Object.entries(H).reduce((e,[t,n])=>void 0===n?e:e+` ${t}="${n}"`,"");return(0,i.jsx)("div",{className:(0,s.A)(e,"wp-block-jetpack-subscriptions__supports-newline",l?"wp-block-jetpack-subscriptions__use-newline":void 0,c?"wp-block-jetpack-subscriptions__show-subs":void 0),children:(0,i.jsx)(o.RawHTML,{children:`[jetpack_subscription_form${$}]`})})}},53889(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723);const __=r.__,o={subscribePlaceholder:{type:"string",default:__("Email Address","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"}}},93746(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(53889),o=n(93651);const s={attributes:r.A,save:o.A}},93651(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(86087),s=n(13022),a=n(53889),i=n(10790);function c({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:c,buttonOnNewLine:l,submitButtonText:u,emailFieldBackgroundColor:d,customEmailFieldBackgroundColor:p,emailFieldGradient:h,customEmailFieldGradient:m,buttonBackgroundColor:g,customButtonBackgroundColor:f,buttonGradient:b,customButtonGradient:v,textColor:y,customTextColor:k,fontSize:w,customFontSize:x,borderRadius:_,borderWeight:j,borderColor:C,customBorderColor:A,padding:S,spacing:E,buttonWidth:T}=t,N=!!r.__experimentalGetGradientClass,P=(0,r.getColorClassName)("color",y),B=(0,r.getFontSizeClass)(w),I=(0,r.getColorClassName)("border-color",C),M=(0,r.getColorClassName)("background-color",g),R=N?(0,r.__experimentalGetGradientClass)(b):void 0,L=(0,r.getColorClassName)("background-color",d),D=N?(0,r.__experimentalGetGradientClass)(h):void 0,F=(0,s.A)(0===_?"no-border-radius":void 0,B,I),O=(0,s.A)(F,y?"has-text-color":void 0,P,g||b?"has-background":void 0,M,R),z=(0,s.A)(F,L,D),U=!L&&m?m:p,H=!M&&v?v:f,$=T||void 0,V={subscribe_placeholder:n!==a.A.subscribePlaceholder.default?n:void 0,show_subscribers_total:c,button_on_newline:l,submit_button_text:u!==a.A.submitButtonText.default?u:void 0,custom_background_emailfield_color:U,custom_background_button_color:H,custom_text_button_color:k,custom_font_size:x||"16px",custom_border_radius:_||0,custom_border_weight:j||1,custom_border_color:A,custom_button_width:$,custom_padding:S||15,custom_spacing:E||10,submit_button_classes:O,email_field_classes:z,show_only_email_and_button:!0},q=Object.entries(V).reduce((e,[t,n])=>void 0===n?e:e+` ${t}="${n}"`,"");return(0,i.jsx)("div",{className:(0,s.A)(e,"wp-block-jetpack-subscriptions__supports-newline",l?"wp-block-jetpack-subscriptions__use-newline":void 0,c?"wp-block-jetpack-subscriptions__show-subs":void 0),children:(0,i.jsx)(o.RawHTML,{children:`[jetpack_subscription_form${q}]`})})}},82724(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723);const __=r.__,o={subscribePlaceholder:{type:"string",default:__("Type your email…","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"},successMessage:{type:"string",default:__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.","jetpack")}}},53545(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(82724),o=n(59364);const s={attributes:r.A,save:o.Ay}},59364(e,t,n){"use strict";n.d(t,{Ay:()=>c});var r=n(94715),o=n(86087),s=n(13022),a=n(82724),i=n(10790);function c({className:e,attributes:t}){const{subscribePlaceholder:n,showSubscribersTotal:c,buttonOnNewLine:l,submitButtonText:u,emailFieldBackgroundColor:d,customEmailFieldBackgroundColor:p,emailFieldGradient:h,customEmailFieldGradient:m,buttonBackgroundColor:g,customButtonBackgroundColor:f,buttonGradient:b,customButtonGradient:v,textColor:y,customTextColor:k,fontSize:w,customFontSize:x,borderRadius:_,borderWeight:j,borderColor:C,customBorderColor:A,padding:S,spacing:E,buttonWidth:T,successMessage:N}=t,P=!!r.__experimentalGetGradientClass,B=(0,r.getColorClassName)("color",y),I=(0,r.getFontSizeClass)(w),M=(0,r.getColorClassName)("border-color",C),R=(0,r.getColorClassName)("background-color",g),L=P?(0,r.__experimentalGetGradientClass)(b):void 0,D=(0,r.getColorClassName)("background-color",d),F=P?(0,r.__experimentalGetGradientClass)(h):void 0,O=(0,s.A)(0===_?"no-border-radius":void 0,I,M),z=(0,s.A)(O,y?"has-text-color":void 0,B,g||b?"has-background":void 0,R,L),U=(0,s.A)(O,D,F),H=!D&&m?m:p,$=!R&&v?v:f,V=T||void 0,q={subscribe_placeholder:n!==a.A.subscribePlaceholder.default?n:void 0,show_subscribers_total:c,button_on_newline:l,submit_button_text:u!==a.A.submitButtonText.default?u:void 0,custom_background_emailfield_color:H,custom_background_button_color:$,custom_text_button_color:k,custom_font_size:x||"16px",custom_border_radius:_||0,custom_border_weight:j||1,custom_border_color:A,custom_button_width:V,custom_padding:S||15,custom_spacing:E||10,submit_button_classes:z,email_field_classes:U,show_only_email_and_button:!0,success_message:N},G=Object.entries(q).reduce((e,[t,n])=>void 0===n?e:e+` ${t}="${(e=>e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\[/g,"[").replace(/\]/g,"]").replace(/\u00a0/g," ").replace(/\u200b/g,"​"))(n.toString())}"`,"");return(0,i.jsx)("div",{className:(0,s.A)(e,"wp-block-jetpack-subscriptions__supports-newline",l?"wp-block-jetpack-subscriptions__use-newline":void 0,c?"wp-block-jetpack-subscriptions__show-subs":void 0),children:(0,i.jsx)(o.RawHTML,{children:`[jetpack_subscription_form${G}]`})})}},88015(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(27723);const __=r.__,o={subscribePlaceholder:{type:"string",default:__("Type your email…","jetpack")},showSubscribersTotal:{type:"boolean",default:!1},buttonOnNewLine:{type:"boolean",default:!1},buttonWidth:{type:"string"},submitButtonText:{type:"string",default:__("Subscribe","jetpack")},emailFieldBackgroundColor:{type:"string"},customEmailFieldBackgroundColor:{type:"string"},emailFieldGradient:{type:"string"},customEmailFieldGradient:{type:"string"},buttonBackgroundColor:{type:"string"},customButtonBackgroundColor:{type:"string"},buttonGradient:{type:"string"},customButtonGradient:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"string"},borderRadius:{type:"number"},borderWeight:{type:"number"},borderColor:{type:"string"},customBorderColor:{type:"string"},padding:{type:"number"},spacing:{type:"number"},successMessage:{type:"string",default:__("Success! An email was just sent to confirm your subscription. Please find the email now and click 'Confirm Follow' to start subscribing.","jetpack")}}},324(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(88015),o=n(76905);const s={attributes:r.A,migrate:e=>({includeSocialFollowers:!0,...e}),save:o.A}},76905(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);function s({className:e,attributes:t}){const{showSubscribersTotal:n,buttonOnNewLine:s}=t;return(0,o.jsx)("div",{className:(0,r.A)(e,"wp-block-jetpack-subscriptions__supports-newline",s?"wp-block-jetpack-subscriptions__use-newline":void 0,n?"wp-block-jetpack-subscriptions__show-subs":void 0)})}},64769(e,t,n){"use strict";n.d(t,{h:()=>C});var r=n(50723),o=n(54268),s=n(94715),a=n(56427),i=n(29491),c=n(47143),l=n(86087),u=n(27723),d=n(13022),p=n(66087),h=n(90907),m=n(78218),g=n(9894),f=(n(37613),n(92829),n(16521)),b=n(99876),v=n(72902),y=n(62255),k=n(10790);const _n=u._n,_x=u._x,__=u.__,{getComputedStyle:w}=window,x=!!s.__experimentalUseGradient,_=x?s.__experimentalUseGradient:()=>({}),j=(0,a.withFallbackStyles)((e,t)=>{const{buttonBackgroundColor:n,textColor:r}=t,o=n&&n.color,s=r&&r.color,a=e.querySelector(".wp-block-jetpack-subscriptions__button");return{fallbackButtonBackgroundColor:o||!e?void 0:a&&w(a).backgroundColor,fallbackTextColor:s||!e?void 0:a&&w(a).color}});const C=(0,i.compose)([(0,s.withColors)({emailFieldBackgroundColor:"backgroundColor"},{buttonBackgroundColor:"backgroundColor"},{textColor:"color"},"borderColor"),(0,s.withFontSizes)("fontSize"),j,e=>t=>(0,k.jsx)(r.Ay,{children:(0,k.jsx)(e,{...t})})])(function(e){const{attributes:t,setAttributes:n,emailFieldBackgroundColor:r,buttonBackgroundColor:w,setButtonBackgroundColor:j,fallbackButtonBackgroundColor:C,textColor:A,fallbackTextColor:S,setTextColor:E,borderColor:T,setBorderColor:N,fontSize:P}=e,B=(0,c.useSelect)(e=>!!e("jetpack/membership-products")?.getNewsletterTierProducts()?.length,[]),I=(0,s.useBlockProps)(),M=(0,m.y)(b.attributes,t);(0,p.isEqual)(M,t)||n(M);const{borderRadius:R,borderWeight:L,buttonWidth:D,className:F,includeSocialFollowers:O,padding:z,preselectNewsletterCategories:U,selectedNewsletterCategoryIds:H,spacing:$,submitButtonText:V=v.rn,subscribePlaceholder:q=v.re,showSubscribersTotal:G,buttonOnNewLine:W,successMessage:Z=v.AU}=M,J=(0,h.D)(b.styles,F),K="button"===J,{subscriberCount:Y,subscriberCountString:Q}=(0,c.useSelect)(e=>{const{totalSubscribers:t,socialFollowers:n}=e(f.M).getSubscriberCounts();let r=t;return O&&(r+=n),{subscriberCount:r,subscriberCountString:(0,u.sprintf)(/* translators: %s: the number of subscribers. */ | |
| 129 | +_n("Join %s other subscriber","Join %s other subscribers",r,"jetpack"),(0,o.qe)(r,{numberFormatOptions:{maximumFractionDigits:1}}))}}),{availableNewsletterCategories:X,areNewsletterCategoriesEnabled:ee}=(0,c.useSelect)(e=>{const t=e(f.M);return{availableNewsletterCategories:t.getNewsletterCategories(),areNewsletterCategoriesEnabled:t.getNewsletterCategoriesEnabled()}}),te=_({gradientAttribute:"emailFieldGradient",customGradientAttribute:"customEmailFieldGradient"}),ne=_({gradientAttribute:"buttonGradient",customGradientAttribute:"customButtonGradient"}),re={"no-border-radius":0===R,[P.class]:P.class,"has-text-color":A.color,[A.class]:A.class},oe={...re,"has-background":r.color||te.gradientValue,[r.class]:!te.gradientValue&&r.class,[te.gradientClass]:te.gradientClass},se={...re,"has-background":w.color||ne.gradientValue,[w.class]:!ne.gradientValue&&w.class,[ne.gradientClass]:ne.gradientClass},ae=e=>e||v.E,ie={color:A.color,borderColor:T.color,borderRadius:R?R+"px":v.Kn+"px",borderWidth:L?L+"px":v.aS+"px",fontSize:P.size?P.size:v.Fm,padding:(e=>{const t=e||v.oi;return t+"px "+Math.round(1.5*t)+"px "+t+"px "+Math.round(1.5*t)+"px"})(z)},ce={"--subscribe-block-border-radius":R?R+"px":v.Kn+"px"},le={...ie,...!r.color&&te.gradientValue?{background:te.gradientValue}:{backgroundColor:r.color}},ue={...ie,...!w.color&&ne.gradientValue?{background:ne.gradientValue}:{backgroundColor:w.color},width:D?.length?D:"auto"};"button"!==J&&(W?ue.marginTop=ae($)+"px":ue.marginLeft=ae($)+"px");const de=(0,i.usePrevious)(w);return(0,l.useEffect)(()=>{de?.color===T?.color&&T?.color!==w?.color&&N(w.color)},[w,de,T,N]),(0,k.jsxs)("div",{...I,className:(0,d.A)(I.className,"wp-block-jetpack-subscriptions__container","wp-block-jetpack-subscriptions__supports-newline",W?"wp-block-jetpack-subscriptions__use-newline":void 0,G?"wp-block-jetpack-subscriptions__show-subs":void 0),children:[(0,k.jsx)(s.InspectorControls,{children:(0,k.jsx)(y.A,{areNewsletterCategoriesEnabled:ee,availableNewsletterCategories:X,buttonBackgroundColor:w,borderColor:T,buttonGradient:ne,borderRadius:R,borderWeight:L,buttonOnNewLine:W,emailFieldBackgroundColor:r,fallbackButtonBackgroundColor:C,fallbackTextColor:S,fontSize:P,includeSocialFollowers:O,isGradientAvailable:x,padding:z,preselectNewsletterCategories:U,setAttributes:n,setBorderColor:N,setButtonBackgroundColor:j,setTextColor:E,showSubscribersTotal:G,spacing:$,subscriberCount:Y,textColor:A,buttonWidth:D,isButtonOnlyStyle:K,selectedNewsletterCategoryIds:H,subscribePlaceholder:q,submitButtonText:V,successMessage:Z})}),(0,k.jsx)(s.BlockControls,{children:(0,k.jsx)(a.ToolbarGroup,{children:(0,k.jsx)(a.ToolbarButton,{href:(0,g.Qu)(B),target:"_blank",children:B?_x("Manage plans","unused context to distinguish translations","jetpack"):__("Set up a paid plan","jetpack")})})}),(0,k.jsxs)("div",{style:ce,children:[(0,k.jsx)("div",{className:"wp-block-jetpack-subscriptions__container is-not-subscriber",children:(0,k.jsx)("div",{className:"wp-block-jetpack-subscriptions__form",role:"form",children:(0,k.jsxs)("div",{className:"wp-block-jetpack-subscriptions__form-elements",children:["button"!==J&&(0,k.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,placeholder:q,disabled:!0,className:(0,d.A)(oe,"wp-block-jetpack-subscriptions__textfield"),style:le}),(0,k.jsx)(s.RichText,{className:(0,d.A)(se,"wp-block-jetpack-subscriptions__button","wp-block-button__link"),onChange:e=>n({submitButtonText:e}),style:ue,value:V,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})]})})}),G&&(0,k.jsx)("div",{className:"wp-block-jetpack-subscriptions__subscount",children:Q})]})]})})},39470(e,t,n){"use strict";var r=n(85985),o=n(74997),s=n(47143),a=n(43656),i=n(86087),c=n(52619),l=n(27723),u=n(12549),d=n(94157),p=n(94375),h=n(99876),m=n(2296),g=n(39025),f=n(64769),b=n(96148),v=n(37972),y=n(12467),k=n(10790);const __=l.__,w=h.name.replace("jetpack/","");(0,p.M)(h,{edit:f.h,transforms:{from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"blog_subscription"===e,transform:({instance:e})=>(0,o.createBlock)("jetpack/subscriptions",{showSubscribersTotal:e.raw.show_subscribers_total,submitButtonText:e.raw.subscribe_button,subscribePlaceholder:e.raw.subscribe_placeholder,successMessage:e.raw.success_message})},{type:"block",isMultiBlock:!1,blocks:["core/buttons"],transform:(e,t)=>{if(!t?.length)return(0,o.createBlock)("jetpack/subscriptions");const n=[];return t.forEach(e=>{const t=e?.attributes?.text;n.push((0,o.createBlock)("jetpack/subscriptions",{...t?{submitButtonText:t}:{}}))}),n}}]},deprecated:g.A});const x=()=>"post"===(0,s.select)("core/editor").getCurrentPostType(),_=()=>{const{isPreviewModalOpen:e,openPreviewModal:t,closePreviewModal:n,postId:o}=(()=>{const[e,t]=(0,i.useState)(!1),n=(0,s.select)("core/editor").getCurrentPostId(),{tracks:o}=(0,r.st)();return{isPreviewModalOpen:e,openPreviewModal:(0,i.useCallback)(e=>{t(!0),o.recordEvent("jetpack_newsletter_preview_opened",{source:e})},[o]),closePreviewModal:(0,i.useCallback)(()=>{t(!1)},[]),postId:n}})();return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(y.Ay,{}),x()&&(0,k.jsxs)(k.Fragment,{children:[a.PluginPreviewMenuItem?(0,k.jsx)(a.PluginPreviewMenuItem,{onClick:()=>t("preview_menu"),icon:d.A,children:__("Email preview","jetpack")}):null,(0,k.jsx)(b.X,{isOpen:e,onClose:n,postId:o}),(0,k.jsx)(v.A,{openPreviewModal:()=>t("newsletter_menu")})]}),(0,k.jsx)(m.A,{})]})};(0,r.vp)(w,{render:()=>(0,k.jsx)(_,{}),icon:x()?u.A:void 0}),(0,c.addFilter)("blocks.registerBlockType","jetpack-subscriptions-nav-item",(e,t)=>"core/navigation"===t?{...e,allowedBlocks:[...e.allowedBlocks??[],"jetpack/subscriptions"]}:e)},96148(e,t,n){"use strict";n.d(t,{T:()=>N,X:()=>R});var r=n(3924),o=n(39384),s=n(97999),a=n(85985),i=n(1455),c=n.n(i),l=n(56427),u=n(29491),d=n(47143),p=n(43656),h=n(86087),m=n(27723),g=n(84699),f=n(88901),b=n(32833),v=n(20113),y=n(55173),k=n(92634),w=n(72091),x=n(57273),_=(n(43909),n(37906)),j=n(42167),C=n(47603),A=n(10790);const __=m.__,S="rest_cannot_send_email_preview",E=["invalid_json","unknown_error"];function T(){return(0,A.jsx)("p",{children:(0,h.createInterpolateElement)(__("Previewing and sending test emails requires a connection to WordPress.com. <connectLink>Connect your account</connectLink> to continue.","jetpack"),{connectLink:(0,A.jsx)(x.N,{href:(0,o.getUserConnectionUrl)()})})})}function N({isOpen:e,onClose:t}){const[n,r]=(0,h.useState)(!1),[i,u]=(0,h.useState)(!1),[m,g]=(0,h.useState)(null),[b,v]=(0,h.useState)(()=>window?.Jetpack_Editor_Initial_State?.tracksUserData?.email??""),y=(0,d.useSelect)(e=>e(p.store).getCurrentPostId()),{__unstableSaveForPreview:k}=(0,d.useDispatch)(p.store),{tracks:w}=(0,a.st)(),x=window?.Jetpack_Editor_Initial_State?.jetpack?.can_send_test_email_to_others??!0,{isUserConnected:_}=(0,o.useConnection)(),j=!(0,s.isSimpleSite)()&&!_,N=j||m?.code===S;return e?(0,A.jsx)(l.Modal,{onRequestClose:()=>{t(),r(!1)},title:__("Send a test email","jetpack"),size:"medium",children:(0,A.jsxs)(l.__experimentalVStack,{children:[N&&(0,A.jsx)(T,{}),m&&m.code!==S&&(0,A.jsx)(l.Notice,{status:"error",isDismissible:!1,className:"jetpack-newsletter-test-email-modal__error",children:m.message}),n?(0,A.jsxs)(l.__experimentalHStack,{alignment:"left",className:"jetpack-newsletter-test-email-modal__email-sent",children:[(0,A.jsx)(l.Icon,{icon:f.A,size:28}),(0,A.jsx)("p",{children:__("Email sent successfully","jetpack")})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{children:x?__("Send a test email to see exactly what your subscribers receive in their inboxes. It defaults to your address, but you can send it to any address you could add as a subscriber.","jetpack"):__("Send a test email to your address so you can see exactly what your subscribers receive in their inboxes.","jetpack",0)}),(0,A.jsx)("form",{noValidate:!0,onSubmit:e=>{e.preventDefault(),(async()=>{const e=b?.trim()??"";!e||function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}(e)?(w.recordEvent("jetpack_newsletter_test_email_send",{post_id:y}),g(null),u(!0),await k(),c()({path:"/wpcom/v2/send-email-preview/",method:"POST",data:{id:y,email:e}}).then(()=>{u(!1),r(!0)}).catch(e=>{u(!1);const t=e?.code&&!E.includes(e.code)&&e.message;g({code:e?.code,message:t?e.message:__("Something went wrong sending the test email. Please try again in a little while.","jetpack")})})):g({code:"invalid_email",message:__("Please enter a valid email address.","jetpack")})})()},children:(0,A.jsxs)(l.__experimentalGrid,{alignment:"bottom",columns:2,gap:2,templateColumns:"2fr auto;",children:[(0,A.jsx)(l.__experimentalInputControl,{type:"email",value:b,onChange:e=>v(e??""),disabled:i||!x,label:__("Recipient email address","jetpack"),hideLabelFromVision:!0,__next40pxDefaultSize:!0}),(0,A.jsxs)(l.Button,{type:"submit",variant:"primary",isBusy:i,disabled:j,__next40pxDefaultSize:!0,children:[__("Send","jetpack"),(0,A.jsx)(l.Icon,{icon:C.q})]})]})})]})]})}):null}const P=[{name:"desktop",icon:v.A,label:__("Desktop","jetpack"),width:"100%",size:"lg"},{name:"tablet",icon:w.A,label:__("Tablet","jetpack"),width:"768px",size:"md"},{name:"mobile",icon:y.A,label:__("Mobile","jetpack"),width:"360px",size:"sm"}],B=({selectedDevice:e,setSelectedDevice:t})=>{const n=(0,u.useViewportMatch)("small"),r=(0,u.useViewportMatch)("large","<"),o=n&&r,s=(0,u.useViewportMatch)("small","<"),{tracks:i}=(0,a.st)();if(s)return null;return(0,A.jsx)(l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:__("Preview device","jetpack"),hideLabelFromVision:!0,onChange:e=>{i.recordEvent("jetpack_newsletter_preview_device_change",{device:e}),t(e)},value:e,isBlock:!0,__next40pxDefaultSize:!0,children:(o?P.filter(e=>"lg"!==e.size):P).map(e=>(0,A.jsx)(l.__experimentalToggleGroupControlOptionIcon,{icon:e.icon,value:e.name,label:e.label},e.name))})},I=({selectedAccess:e,setSelectedAccess:t})=>{const n=(0,u.useViewportMatch)("small","<"),r=(0,d.useSelect)(e=>e(p.store).getCurrentPostType(),[]),o=(0,j.I)(r),{tracks:s}=(0,a.st)();if(!(o===_.P2.paid_subscribers.key))return null;const i=[{label:_.P2.subscribers.label,value:_.P2.subscribers.key,icon:k.A},{label:_.P2.paid_subscribers.label,value:_.P2.paid_subscribers.key,icon:b.A}];return(0,A.jsx)(l.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:__("Preview access level","jetpack"),hideLabelFromVision:!0,onChange:e=>{s.recordEvent("jetpack_newsletter_preview_access_change",{access:e}),t(e)},value:e,isBlock:!0,isAdaptiveWidth:!0,__next40pxDefaultSize:!0,children:i.map(e=>n?(0,A.jsx)(l.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value):(0,A.jsx)(l.__experimentalToggleGroupControlOption,{value:e.value,label:e.label},e.value))})},M=({selectedAccess:e,setSelectedAccess:t,selectedDevice:n,setSelectedDevice:r})=>{const o=(0,u.useViewportMatch)("small","<");return(0,A.jsxs)(l.__experimentalHStack,{alignment:"center",spacing:o?1:6,children:[(0,A.jsx)(B,{selectedDevice:n,setSelectedDevice:r}),(0,A.jsx)(I,{selectedAccess:e,setSelectedAccess:t})]})};function R({isOpen:e,onClose:t,postId:n}){const[o,s]=(0,h.useState)(!0),[i,u]=(0,h.useState)(!1),[m,f]=(0,h.useState)(null),[b,v]=(0,h.useState)(!1),[y,k]=(0,h.useState)({}),[w,j]=(0,h.useState)(_.P2.subscribers.key),[C,E]=(0,h.useState)("desktop"),{tracks:N}=(0,a.st)(),B=(0,h.useRef)(new Set),I=(0,h.useCallback)(async e=>{if(n&&!B.current.has(e)){B.current.add(e),s(!0),u(!1),f(null);try{const t=await c()({path:`/wpcom/v2/email-preview/?post_id=${n}&access=${e}`,method:"GET"});if(!t||!t.html)throw new Error("Invalid response format");k(n=>({...n,[e]:t.html}))}catch(e){N.recordEvent("jetpack_newsletter_preview_modal_error"),u(!0),f(e?.code??null)}finally{s(!1),B.current.delete(e)}}},[n,N]),{__unstableSaveForPreview:R}=(0,d.useDispatch)(p.store),L=(0,h.useRef)(null),D=y[w];(0,h.useEffect)(()=>{if(!e)return void(L.current=null);if(void 0!==D)return void s(!1);let t=!1;if(!L.current){const e=(0,d.select)(p.store).isEditedPostDirty();L.current=e?R().catch(()=>{}):Promise.resolve()}return L.current.then(()=>{t||I(w)}),()=>{t=!0}},[e,w,D,I,R]),(0,h.useEffect)(()=>{e&&N.recordEvent("jetpack_newsletter_preview_modal_open",{post_id:n})},[e,n,N]);const F=P.find(e=>e.name===C).width;return e&&(0,A.jsx)(l.Modal,{isFullScreen:!0,title:__("Preview email","jetpack"),onRequestClose:()=>{N.recordEvent("jetpack_newsletter_preview_modal_close",{post_id:n}),t(),k({})},headerActions:(0,A.jsx)(M,{selectedAccess:w,setSelectedAccess:j,selectedDevice:C,setSelectedDevice:E}),className:"jetpack-newsletter-preview-modal",children:(0,A.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 190px)",backgroundColor:i?"#fff":"#ddd",paddingTop:"desktop"!==C?"36px":"0",transition:"padding 0.3s ease-in-out"},children:[o&&(0,A.jsx)(l.Spinner,{}),i&&m===S&&(0,A.jsxs)(l.__experimentalVStack,{alignment:"center","aria-live":"polite",role:"alert",style:{textAlign:"center"},children:[(0,A.jsx)(l.Icon,{icon:g.A}),(0,A.jsx)("h3",{children:__("Connect your account to preview this email","jetpack")}),(0,A.jsx)(T,{})]}),i&&m!==S&&(0,A.jsxs)(l.__experimentalVStack,{alignment:"center","aria-live":"polite",role:"alert",style:{textAlign:"center"},children:[(0,A.jsx)(l.Icon,{icon:g.A}),(0,A.jsx)("h3",{children:__("Oops, something went wrong showing the preview…","jetpack")}),(0,A.jsx)(l.Button,{onClick:()=>{v(!0),I(w)},variant:"primary",children:__("Try again","jetpack")}),b&&(0,A.jsx)("p",{children:(0,h.createInterpolateElement)(__("If the issue persists, please <supportLink>contact support</supportLink>.","jetpack"),{supportLink:(0,A.jsx)(x.N,{openInNewTab:!0,href:(0,r.A)("jetpack-support")})})})]}),!o&&!i&&(0,A.jsx)("iframe",{sandbox:"",srcDoc:y?.[w],style:{width:F,maxWidth:"100%",height:"100%",border:"none",transition:"width 0.3s ease-in-out"},title:__("Email Preview","jetpack")})]})})}},47603(e,t,n){"use strict";n.d(t,{q:()=>s});var r=n(56427),o=n(10790);const s=()=>(0,o.jsx)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.332 5.748c-1.03-.426-2.06.607-1.632 1.636l1.702 3.93 7.481.575c.123.01.123.19 0 .2l-7.483.575-1.7 3.909c-.429 1.029.602 2.062 1.632 1.636l12.265-5.076c1.03-.426 1.03-1.884 0-2.31L6.332 5.748Z"})})},37972(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(56427),o=n(47143),s=n(43656),a=n(27723),i=n(51609),c=n(37906),l=n(42167),u=n(91158),d=n(83775),p=n(96148),h=n(47603),m=n(10790);const __=a.__,g=({openPreviewModal:e})=>{const[t,n]=(0,i.useState)(!1),{postId:a,postType:g,postStatus:f,meta:b}=(0,o.useSelect)(e=>({postId:e("core/editor").getCurrentPostId(),postType:e("core/editor").getCurrentPostType(),postStatus:e("core/editor").getEditedPostAttribute("status"),meta:e("core/editor").getEditedPostAttribute("meta")}),[]),v=(0,l.I)(g),y="publish"===f,k=!b?.[c.KG];return(0,m.jsx)(s.PluginSidebar,{name:"jetpack-newsletter-settings-sidebar",title:"Jetpack Newsletter",icon:(0,m.jsx)(h.q,{}),className:"jetpack-newsletter-settings-sidebar",children:(0,m.jsxs)(r.PanelBody,{children:[!y&&(0,m.jsx)(u.ix,{}),(0,m.jsx)(d.Ay,{accessLevel:v,prePublish:!y}),k&&!y&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{children:__("Ensure your email looks perfect. Use the buttons below to view a preview or send a test email.","jetpack")}),(0,m.jsxs)(r.__experimentalHStack,{wrap:!0,children:[(0,m.jsx)(r.Button,{onClick:e,variant:"secondary",disabled:y||!a,children:__("Preview email","jetpack")}),(0,m.jsx)(r.Button,{onClick:()=>n(!0),variant:"secondary",disabled:y||!a,children:__("Send test email","jetpack")})]}),(0,m.jsx)(p.T,{isOpen:t,onClose:()=>n(!1)})]})]})})}},12467(e,t,n){"use strict";n.d(t,{Ay:()=>E});var r=n(3924),o=n(85985),s=n(82201),a=n(56427),i=n(47143),c=n(43656),l=n(86087),u=n(27723),d=n(13109),p=n(1866),h=n(37906),m=n(42167),g=n(91158),f=n(83775),b=n(9894),v=n(16521),y=n(96148),k=(n(36398),n(10790));const __=u.__;function w(){const e=(0,l.useRef)(null),{setPublishedWithEmailEnabledInSession:t,setAlreadySentPostModifiedInSession:n}=(0,i.useDispatch)(v.M),{postId:r,postMeta:o,postEmailSentState:s,status:a,isSavingPost:u}=(0,i.useSelect)(e=>{const{getCurrentPost:t,getEditedPostAttribute:n}=e(c.store),{getPostEmailSentState:r}=e(v.M),o=t(),s=o?.id;return s&&r(s),{postId:s,postMeta:n("meta"),postEmailSentState:s?r(s):null,status:o?.status,isSavingPost:e(c.store).isSavingPost()}},[]);return(0,l.useLayoutEffect)(()=>{if(r){if("publish"===a){null!==e.current&&"publish"!==e.current&&(o?.[h.KG]||t(r))}u&&null!=s?.email_sent_at&&n(r)}e.current=a},[a,r,u,s?.email_sent_at,o,t,n]),null}function x({accessLevel:e}){return(0,k.jsx)(c.PluginDocumentSettingPanel,{className:"jetpack-subscribe-newsletter-panel",title:__("Audience","jetpack"),icon:(0,k.jsx)(s.jt,{}),name:"jetpack-subscribe-newsletters-editor-panel",children:(0,k.jsx)(g.GG,{accessLevel:e})})}const _=()=>(0,o.lk)()?__("You will be able to send newsletters once the site is published","jetpack"):(0,o.pP)()?__("Emails will not be sent to subscribers while your site is private","jetpack"):null,j=()=>{const e=_();return e?(0,k.jsx)(a.Notice,{status:"info",isDismissible:!1,className:"edit-post-post-visibility__notice",children:e}):null},C=()=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.PluginDocumentSettingPanel,{className:"jetpack-subscribe-newsletters-panel",title:__("Audience","jetpack"),icon:(0,k.jsx)(s.jt,{}),children:(0,k.jsx)(j,{})}),(0,k.jsx)(c.PluginPrePublishPanel,{className:"jetpack-subscribe-newsletters-panel",title:__("Newsletter","jetpack"),icon:(0,k.jsx)(s.jt,{}),children:(0,k.jsx)(j,{})}),(0,k.jsx)(c.PluginPostPublishPanel,{className:"jetpack-subscribe-newsletters-panel",title:__("Newsletter","jetpack"),icon:(0,k.jsx)(s.jt,{}),children:(0,k.jsx)(j,{})})]});function A({accessLevel:e,showPreviewModal:t}){const n=(0,i.useSelect)(e=>e(c.store).getEditedPostVisibility()),r=(0,b.fI)(n,e);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.PluginPrePublishPanel,{initialOpen:!0,name:"jetpack-subscribe-access-panel",className:"jetpack-subscribe-newsletters-panel",title:(0,k.jsxs)(k.Fragment,{children:[__("Audience:","jetpack"),e&&(0,k.jsx)("span",{className:"jetpack-subscribe-post-publish-panel__heading",children:h.P2[e].label})]}),icon:(0,k.jsx)(s.jt,{}),children:(0,k.jsx)(g.GG,{accessLevel:e})}),(0,k.jsxs)(c.PluginPrePublishPanel,{initialOpen:!0,name:"jetpack-subscribe-newsletters-panel",title:__("Newsletter","jetpack"),icon:(0,k.jsx)(s.jt,{}),children:[(0,k.jsx)(g.ix,{}),r?(0,k.jsx)(b.mf,{}):(0,k.jsx)(f.Ay,{prePublish:!0,accessLevel:e}),(0,k.jsx)(a.Button,{variant:"link",onClick:t,children:__("Send test email","jetpack")})]})]})}function S({accessLevel:e}){const{isStripeConnected:t}=(0,i.useSelect)(e=>{const{getConnectUrl:t}=e(v.M);return{isStripeConnected:null===t()}});return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(c.PluginPostPublishPanel,{initialOpen:!0,title:__("Newsletter","jetpack"),className:"jetpack-subscribe-newsletters-panel jetpack-subscribe-post-publish-panel",icon:(0,k.jsx)(s.jt,{}),name:"jetpack-subscribe-newsletters-postpublish-panel",children:(0,k.jsx)(f.Ay,{accessLevel:e})}),!t&&(0,k.jsxs)(c.PluginPostPublishPanel,{className:"jetpack-subscribe-newsletters-panel paid-newsletters-post-publish-panel",title:__("Set up a paid newsletter","jetpack"),icon:(0,k.jsx)(s.jt,{}),children:[(0,k.jsx)(a.PanelRow,{children:(0,k.jsx)("p",{children:__("Allow your subscribers to support your work. Connect a Stripe account to get started.","jetpack")})}),(0,k.jsx)("div",{role:"link",className:"post-publish-panel__postpublish-buttons",children:(0,k.jsxs)(a.Button,{target:"_blank",variant:"secondary",href:(0,r.A)("wpcom-earn",{site:(0,o.GE)()}),children:[__("Turn on paid newsletters","jetpack"),(0,k.jsx)(d.A,{icon:p.A,className:"paid-newsletters-post-publish-panel__external_icon"})]})})]})]})}function E(){const e=(0,i.useSelect)(e=>e(c.store).getCurrentPostType(),[]),[t,n]=(0,l.useState)(!1),{tracks:r}=(0,o.st)(),s=(0,m.I)(e);return"post"!==e?null:(0,m.V)()?_()?(0,k.jsx)(C,{}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(w,{}),(0,k.jsx)(x,{accessLevel:s}),(0,k.jsx)(A,{accessLevel:s,showPreviewModal:()=>{r.recordEvent("jetpack_send_email_preview_prepublish_preview_button"),n(!0)}}),(0,k.jsx)(S,{accessLevel:s}),(0,k.jsx)(y.T,{isOpen:t,onClose:()=>n(!1)})]}):null}},35463(e,t,n){"use strict";n.d(t,{WN:()=>a,ZS:()=>s,aQ:()=>c,eN:()=>r,hE:()=>o,kc:()=>l,rK:()=>i});const r=["image"],o=4,s=20,a=20,i=2e3,c="circle",l=[{isDefault:!0,name:"rectangular"},{name:c},{name:"square"},{name:"columns"}]},55702(e,t,n){"use strict";n.d(t,{M:()=>m,c:()=>h});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(74006),c=n(35463),l=n(62820),u=n(9888),d=n(10790);const __=a.__,p=[{value:"attachment",label:__("Attachment Page","jetpack")},{value:"media",label:__("Media File","jetpack")},{value:"none",label:__("None","jetpack")},{value:"custom",label:__("Custom","jetpack")}],h=({images:e,onSelectImages:t,imageFilter:n,onFilterChange:a})=>(0,d.jsx)(r.BlockControls,{children:!!e.length&&(0,d.jsxs)(s.Fragment,{children:[(0,d.jsx)(o.ToolbarGroup,{children:(0,d.jsx)(o.ToolbarItem,{children:()=>(0,d.jsx)(r.MediaUpload,{onSelect:t,allowedTypes:c.eN,multiple:!0,gallery:!0,value:e.map(e=>e.id),render:({open:e})=>(0,d.jsx)(i.A,{label:__("Edit Gallery","jetpack"),onClick:e})})})}),(0,d.jsx)(l.A,{value:n,onChange:a})]})}),m=({layoutStyle:e,images:t,columns:n,onColumnsChange:s,roundedCorners:a,onRoundedCornersChange:i,linkTo:l,onLinkToChange:h,selectedImage:m,setImageAttributes:g})=>(0,d.jsxs)(r.InspectorControls,{children:[(0,d.jsxs)(o.PanelBody,{title:__("Tiled Gallery settings","jetpack"),children:[(0,u.o)(e)&&t.length>1&&(0,d.jsx)(o.RangeControl,{label:__("Columns","jetpack"),value:n,onChange:s,min:1,max:Math.min(c.ZS,t.length),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),e!==c.aQ&&(0,d.jsx)(o.RangeControl,{label:__("Rounded corners","jetpack"),value:a,onChange:i,min:0,max:c.WN,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,d.jsx)(o.SelectControl,{label:__("Link To","jetpack"),value:l,onChange:h,options:p,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]}),null!==m&&"custom"===l&&(0,d.jsx)(o.PanelBody,{title:__("Image Link Settings","jetpack"),children:(0,d.jsx)(o.TextControl,{label:__("Link URL","jetpack"),value:t[m]?.customLink||"",onChange:e=>{"custom"===l&&g(m)({customLink:e})},placeholder:__("Enter URL","jetpack"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})]})},43268(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:{type:"string",default:"center"},className:{type:"string",default:"is-style-rectangular"},columns:{type:"number"},columnWidths:{type:"array",default:[]},ids:{type:"array",default:[]},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",type:"number",selector:"img",source:"attribute"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},customLink:{attribute:"href",selector:"a",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}}},44681(e,t,n){"use strict";n.d(t,{T:()=>a,m:()=>i});var r=n(43268),o=n(66852),s=n(15121);const a={attributes:r.A,supports:s.A,save:o.A},i={attributes:r.A,supports:s.A,save:o.t}},66852(e,t,n){"use strict";n.d(t,{A:()=>d,t:()=>p});var r=n(94715),o=n(13022),s=n(90907),a=n(35463),i=n(22728),c=n(6775),l=n(10790);function u(e){return function({attributes:t}){const{imageFilter:n,images:u}=t;if(!u.length)return null;const{align:d,className:p,columns:h=(0,i.EB)(t),linkTo:m,roundedCorners:g,columnWidths:f}=t,b=r.useBlockProps.save();return(0,l.jsx)("div",{...b,className:(0,o.A)(b.className,p),children:(0,l.jsx)(c.A,{align:d,columns:h,imageFilter:n,images:u,isSave:!0,layoutStyle:(0,s.D)(a.kc,p),linkTo:m,roundedCorners:g,columnWidths:f,skipPhotonDomain:e})})}}const d=u(!1),p=u(!0)},15121(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},10602(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(44681),o=n(9190),s=n(72203),a=n(52516),i=n(24753),c=n(62554),l=n(59679),u=n(75e3),d=n(20837);const p=[r.T,r.m,d,u,l,c,i,a,s,o]},70263(e,t,n){"use strict";n.d(t,{T$:()=>a,ZS:()=>o,hE:()=>r,kc:()=>i,rK:()=>s});const r=4,o=20,s=2e3,a="rectangular",i=[{isDefault:!0,name:a},{name:"circle"},{name:"square"},{name:"columns"}]},81273(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(63162),o=n(10790);function s(e){const{"aria-label":t,alt:n,height:s,id:a,link:i,linkTo:c,origUrl:l,url:u,width:d}=e;if((0,r.isBlobURL)(l))return null;let p;switch(c){case"media":p=u;break;case"attachment":p=i}const h=(0,o.jsx)("img",{alt:n,"aria-label":t,"data-height":s,"data-id":a,"data-link":i,"data-url":l,"data-width":d,src:u});return(0,o.jsx)("figure",{className:"tiled-gallery__item",children:p?(0,o.jsx)("a",{href:p,children:h}):h})}},9190(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>o,save:()=>r.A,support:()=>s});var r=n(42511);const o={align:{default:"center",type:"string"},className:{default:`is-style-${n(70263).T$}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},s={align:["center","wide","full"],customClassName:!1,html:!1}},59265(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e}){return(0,r.jsx)("div",{className:"tiled-gallery__col",children:e})}},70669(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,galleryRef:t}){return(0,r.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},83943(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(63162),o=n(86087),s=n(27723),a=n(14936),i=n(70263),c=n(81273),l=n(20762),u=n(84034),d=n(10790);const __=s.__;class p extends o.Component{photonize({height:e,width:t,url:n}){if(!n)return;if((0,r.isBlobURL)(n)||/^https?:\/\/localhost/.test(n))return n;const o=n.split("?",1)[0],s=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)?m:a.A,{layoutStyle:c}=this.props;if(h(c)&&t&&e){const n=Math.min(i.rK,t,e);return s(o,{resize:`${n},${n}`})}return s(o)}renderImage(e,t){const{images:n,linkTo:r,selectedImage:o}=this.props,a=(0,s.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 130 | +__("image %1$d of %2$d in gallery","jetpack"),t+1,n.length);return(0,d.jsx)(c.A,{alt:e.alt,"aria-label":a,height:e.height,id:e.id,origUrl:e.url,isSelected:o===t,link:e.link,linkTo:r,url:this.photonize(e),width:e.width},t)}render(){const{align:e,children:t,className:n,columns:r,images:o,layoutStyle:s}=this.props,a=h(s)?u.A:l.A,i=this.props.images.map(this.renderImage,this);return(0,d.jsxs)("div",{className:n,children:[(0,d.jsx)(a,{align:e,columns:r,images:o,layoutStyle:s,renderedImages:i}),t]})}}function h(e){return["circle","square"].includes(e)}function m(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,o]of Object.entries(t))r.searchParams.set(Object.hasOwn(n,e)?n[e]:e,o);return r.toString()}},20762(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(86087),o=n(94107),s=n(59265),a=n(70669),i=n(15199),c=n(34896),l=n(5236),u=n(10790);class d extends r.Component{gallery=(0,r.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame(()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t;(0,l.S)(n).forEach(t=>(0,l.r)(t,e))}})};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new o.A(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:o}=this.props,l=(0,c.mJ)(n),d="columns"===r?(0,c.FL)(l,t):(0,c.VU)(l,{isWide:["full","wide"].includes(e)});let p=0;return(0,u.jsx)(a.A,{galleryRef:this.gallery,children:d.map((e,t)=>(0,u.jsx)(i.A,{children:e.map((e,t)=>{const n=o.slice(p,p+e);return p+=e,(0,u.jsx)(s.A,{children:n},t)})},t))})}}},34896(e,t,n){"use strict";n.d(t,{FL:()=>a,VU:()=>C,mJ:()=>o});var r=n(66087);function o(e){return e.map(s)}function s({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,o=[];let s=e,a=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,t=>{const r=a<=(e+1)*n;return r&&(a+=t),r}).length;o.push(t),s=s.slice(t)}return o.push(s.length),[o]}const i=A([2,1,2],5),c=S([E,E,T,E,E]),l=S([E,E,E,T,E,E,E]),u=A([3,1,3],5),d=S([T,E,E,T]),p=A([1,2,1],5),h=S([T,E,E,E]),m=A([1,3],3),g=S([E,E,E,T]),f=A([3,1],3),b=S([P(1.6),(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2))]),v=A([1,2],3),y=A([1,1,1,1,1],1),k=A([1,1,1,1],1),w=A([1,1,1],3),x=S([(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2)),P(1.6)]),_=A([2,1],3),j=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const n=(e,o)=>{if(!o.length)return e;let s;s=o.length>15&&c(o)&&i(e)?[2,1,2]:o.length>15&&l(o)&&u(e)?[3,1,3]:5!==o.length&&d(o)&&p(e)?[1,2,1]:h(o)&&m(e)?[1,3]:g(o)&&f(e)?[3,1]:b(o)&&v(e)?[1,2]:t&&(5===o.length||10!==o.length&&o.length>6)&&y(e)&&(0,r.sum)(o.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)(t.slice(0,4));return k(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,o)?[1,1,1,1]:function(e,t,n){const o=(0,r.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&w(e)&&(o<2.5||o<5&&t.length>=3&&t[0]===t[2]||n)}(e,o,t)?[1,1,1]:x(o)&&_(e)?[2,1]:j(o)?[1]:o.length>3?[1,1]:Array(o.length).fill(1);const a=e.concat([s]),C=(0,r.sum)(s),A=o.slice(C);return n(a,A)};return n([],e)}function A(e,t){return n=>!n.slice(-t).some(t=>(0,r.isEqual)(t,e))}function S(e){return t=>t.length>=e.length&&(0,r.zipWith)(e,t.slice(0,e.length),(e,t)=>e(t)).every(Boolean)}function E(e){return e>=1&&e<2}function T(e){return e<1}function N(e){return t=>t>=e}function P(e){return t=>t<e}},5236(e,t,n){"use strict";n.d(t,{S:()=>a,r:()=>s});var r=n(70263);function o(e,t){const n=(t-e.reduce((e,t)=>e+t,0))/e.length;return e.map(e=>e+n)}function s(e,t){!function(e,[t,n],s){const a=1/t*(s-r.hE*(e.childElementCount-1)-n);!function(e,{rawHeight:t,rowWidth:n}){const s=i(e),a=s.map(e=>(t-r.hE*(e.childElementCount-1))*l(e)[0]),d=o(a,n);s.forEach((e,n)=>{const s=a[n],i=d[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const s=c(e).map(e=>r/u(e)),a=o(s,t);Array.from(e.children).forEach((e,t)=>{const r=a[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)})}(e,{colHeight:t-r.hE*(e.childElementCount-1),width:i,rawWidth:s})})}(e,{rawHeight:a,rowWidth:s-r.hE*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(l).reduce(([e,t],[n,r])=>[e+n,t+r],[0,0]);return t}(e),t)}function a(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function c(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function l(e){const t=c(e),n=t.length,r=1/t.map(u).reduce((e,t)=>e+1/t,0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},15199(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);function s({children:e,className:t}){return(0,o.jsx)("div",{className:(0,r.A)("tiled-gallery__row",t),children:e})}},84034(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(66087),o=n(70263),s=n(59265),a=n(70669),i=n(15199),c=n(10790);function l({columns:e,renderedImages:t}){const n=Math.min(o.ZS,e),l=t.length%n;return(0,c.jsx)(a.A,{children:[...l?[t.slice(0,l)]:[],...(0,r.chunk)(t.slice(l),n)].map((e,t)=>(0,c.jsx)(i.A,{className:`columns-${e.length}`,children:e.map((e,t)=>(0,c.jsx)(s.A,{children:e},t))},t))})}},42511(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(90907),o=n(70263),s=n(83943),a=n(10790);function i(e){return Math.min(3,e.images.length)}function c({attributes:e}){const{images:t}=e;if(!t.length)return null;const{align:n,className:c,columns:l=i(e),linkTo:u}=e;return(0,a.jsx)(s.A,{align:n,className:c,columns:l,images:t,layoutStyle:(0,r.D)(o.kc,c),linkTo:u})}},43566(e,t,n){"use strict";n.d(t,{T$:()=>i,WN:()=>o,ZS:()=>r,aQ:()=>a,kc:()=>c,rK:()=>s});const r=20,o=20,s=2e3,a="circle",i="rectangular",c=[{isDefault:!0,name:i},{name:a},{name:"square"},{name:"columns"}]},89427(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(63162),o=n(13022),s=n(10790);function a(e){const{alt:t,imageFilter:n,height:a,id:i,link:c,linkTo:l,origUrl:u,url:d,width:p}=e;if((0,r.isBlobURL)(u))return null;let h;switch(l){case"media":h=d;break;case"attachment":h=c}const m=(0,s.jsx)("img",{alt:t,"data-height":a,"data-id":i,"data-link":c,"data-url":u,"data-width":p,src:d});return(0,s.jsx)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${n}`]:!!n}),children:h?(0,s.jsx)("a",{href:h,children:m}):m})}},72203(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>s,save:()=>o.A,supports:()=>a});var r=n(43566),o=n(14266);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r.T$}`,type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},a={align:["center","wide","full"],customClassName:!1,html:!1}},91654(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e}){return(0,r.jsx)("div",{className:"tiled-gallery__col",children:e})}},4228(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,galleryRef:t}){return(0,r.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},27230(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(86087),o=n(27723),s=n(13022),a=n(43566),i=n(89427),c=n(24549),l=n(12165),u=n(86209),d=n(10790);const __=o.__;class p extends r.Component{renderImage(e,t){const{columns:n,imageFilter:r,images:s,linkTo:a,layoutStyle:l,selectedImage:u}=this.props,p=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 131 | +__("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:h,srcSet:m}=(0,c.A)(e,{layoutStyle:l});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":p,columns:n,height:e.height,id:e.id,imageFilter:r,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:u===t,link:e.link,linkTo:a,origUrl:e.url,showMovers:s.length>1,srcSet:m,url:h,width:e.width},t)}render(){const{align:e,children:t,className:n,columns:r,images:o,layoutStyle:i,roundedCorners:p}=this.props,h=(0,c.s)(i)?u.A:l.A,m=this.props.images.map(this.renderImage,this),g=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{className:(0,s.A)(n,{[`has-rounded-corners-${g}`]:g>0}),children:[(0,d.jsx)(h,{align:e,columns:r,images:o,layoutStyle:i,renderedImages:m}),t]})}}},12165(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(86087),o=n(91654),s=n(4228),a=n(28198),i=n(89195),c=n(10790);class l extends r.Component{gallery=(0,r.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:l}=this.props,u=(0,i.mJ)(n),d="columns"===r?(0,i.FL)(u,t):(0,i.VU)(u,{isWide:["full","wide"].includes(e)});let p=0;return(0,c.jsx)(s.A,{galleryRef:this.gallery,children:d.map((e,t)=>(0,c.jsx)(a.A,{children:e.map((e,t)=>{const n=l.slice(p,p+e);return p+=e,(0,c.jsx)(o.A,{children:n},t)})},t))})}}},89195(e,t,n){"use strict";n.d(t,{FL:()=>a,VU:()=>C,mJ:()=>o});var r=n(66087);function o(e){return e.map(s)}function s({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,o=[];let s=e,a=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,t=>{const r=a<=(e+1)*n;return r&&(a+=t),r}).length;o.push(t),s=s.slice(t)}return o.push(s.length),[o]}const i=A([2,1,2],5),c=S([E,E,T,E,E]),l=S([E,E,E,T,E,E,E]),u=A([3,1,3],5),d=S([T,E,E,T]),p=A([1,2,1],5),h=S([T,E,E,E]),m=A([1,3],3),g=S([E,E,E,T]),f=A([3,1],3),b=S([P(1.6),(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2))]),v=A([1,2],3),y=A([1,1,1,1,1],1),k=A([1,1,1,1],1),w=A([1,1,1],3),x=S([(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2)),P(1.6)]),_=A([2,1],3),j=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const n=(e,o)=>{if(!o.length)return e;let s;s=o.length>15&&c(o)&&i(e)?[2,1,2]:o.length>15&&l(o)&&u(e)?[3,1,3]:5!==o.length&&d(o)&&p(e)?[1,2,1]:h(o)&&m(e)?[1,3]:g(o)&&f(e)?[3,1]:b(o)&&v(e)?[1,2]:t&&(5===o.length||10!==o.length&&o.length>6)&&y(e)&&(0,r.sum)(o.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)(t.slice(0,4));return k(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,o)?[1,1,1,1]:function(e,t,n){const o=(0,r.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&w(e)&&(o<2.5||o<5&&t.length>=3&&t[0]===t[2]||n)}(e,o,t)?[1,1,1]:x(o)&&_(e)?[2,1]:j(o)?[1]:o.length>3?[1,1]:Array(o.length).fill(1);const a=e.concat([s]),C=(0,r.sum)(s),A=o.slice(C);return n(a,A)};return n([],e)}function A(e,t){return n=>!n.slice(-t).some(t=>(0,r.isEqual)(t,e))}function S(e){return t=>t.length>=e.length&&(0,r.zipWith)(e,t.slice(0,e.length),(e,t)=>e(t)).every(Boolean)}function E(e){return e>=1&&e<2}function T(e){return e<1}function N(e){return t=>t>=e}function P(e){return t=>t<e}},28198(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);function s({children:e,className:t}){return(0,o.jsx)("div",{className:(0,r.A)("tiled-gallery__row",t),children:e})}},86209(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(66087),o=n(43566),s=n(91654),a=n(4228),i=n(28198),c=n(10790);function l({columns:e,renderedImages:t}){const n=Math.min(o.ZS,e),l=t.length%n;return(0,c.jsx)(a.A,{children:[...l?[t.slice(0,l)]:[],...(0,r.chunk)(t.slice(l),n)].map((e,t)=>(0,c.jsx)(i.A,{className:`columns-${e.length}`,children:e.map((e,t)=>(0,c.jsx)(s.A,{children:e},t))},t))})}},14266(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(90907),o=n(43566),s=n(27230),a=n(10790);function i(e){return Math.min(3,e.images.length)}function c({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:c,className:l,columns:u=i(e),linkTo:d,roundedCorners:p}=e;return(0,a.jsx)(s.A,{align:c,className:l,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,r.D)(o.kc,l),linkTo:d,roundedCorners:p})}},24549(e,t,n){"use strict";n.d(t,{A:()=>i,s:()=>a});var r=n(63162),o=n(14936),s=n(43566);function a(e){return["circle","square"].includes(e)}function i(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,r.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:i,width:l}=e,{layoutStyle:u}=t,d=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)?c:o.A;let p;if(a(u)&&l&&i){const e=Math.min(s.rK,l,i);p=d(n,{resize:`${e},${e}`})}else p=d(n);let h=[];if(a(u)){const e=Math.min(600,l,i),t=Math.min(s.rK,l,i);for(let r=e;r<t;r+=300){const e=d(n,{resize:`${r},${r}`,strip:"info"});e&&h.push(`${e} ${r}w`)}}else{const e=Math.min(600,l),t=Math.min(s.rK,l);for(let r=e;r<t;r+=300){const e=d(n,{strip:"info",width:r});e&&h.push(`${e} ${r}w`)}}return h=h.join(","),Object.assign({src:p},h&&{srcSet:h})}function c(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,o]of Object.entries(t))r.searchParams.set(Object.hasOwn(n,e)?n[e]:e,o);return r.toString()}},60041(e,t,n){"use strict";n.d(t,{T$:()=>i,WN:()=>o,ZS:()=>r,aQ:()=>a,kc:()=>c,rK:()=>s});const r=20,o=20,s=2e3,a="circle",i="rectangular",c=[{isDefault:!0,name:i},{name:a},{name:"square"},{name:"columns"}]},61820(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(63162),o=n(13022),s=n(10790);function a(e){const{alt:t,imageFilter:n,height:a,id:i,link:c,linkTo:l,origUrl:u,url:d,width:p}=e;if((0,r.isBlobURL)(u))return null;let h;switch(l){case"media":h=d;break;case"attachment":h=c}const m=(0,s.jsx)("img",{alt:t,"data-height":a,"data-id":i,"data-link":c,"data-url":u,"data-width":p,src:d});return(0,s.jsx)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${n}`]:!!n}),children:h?(0,s.jsx)("a",{href:h,children:m}):m})}},52516(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>s,migrate:()=>i,save:()=>o.A,supports:()=>a});var r=n(60041),o=n(93865);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r.T$}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},a={align:["center","wide","full"],customClassName:!1,html:!1},i=e=>{const t=Math.pow(10,5);return{...e,columnWidths:e.columnWidths.map(e=>e.map(e=>Math.round(e*t)/t))}}},63307(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,width:t}){const n=Math.pow(10,12),o=Math.round(t*n)/n,s=t?{flexBasis:`${o}%`}:void 0;return(0,r.jsx)("div",{className:"tiled-gallery__col",style:s,children:e})}},37471(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,galleryRef:t}){return(0,r.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},98413(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(86087),o=n(27723),s=n(13022),a=n(60041),i=n(61820),c=n(13014),l=n(18228),u=n(49611),d=n(10790);const __=o.__;class p extends r.Component{renderImage(e,t){const{columns:n,imageFilter:r,images:s,isSave:a,linkTo:l,layoutStyle:u,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 132 | +__("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:y,srcSet:k}=(0,c.A)(e,{layoutStyle:u});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":v,columns:n,height:e.height,id:e.id,imageFilter:r,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:f===t,link:e.link,linkTo:l,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:s.length>1,srcSet:k,url:y,width:e.width},t)}render(){const{align:e,children:t,className:n,columns:r,images:o,layoutStyle:i,roundedCorners:p,onResize:h,isSave:m,columnWidths:g}=this.props,f=(0,c.s)(i)?u.A:l.A,b=this.props.images.map(this.renderImage,this),v=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{className:(0,s.A)(n,{[`has-rounded-corners-${v}`]:v>0}),children:[(0,d.jsx)(f,{align:e,columns:r,columnWidths:m?g:void 0,images:o,layoutStyle:i,renderedImages:b,onResize:m?void 0:h}),t]})}}},18228(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(86087),o=n(63307),s=n(37471),a=n(66645),i=n(70394),c=n(10790);class l extends r.Component{gallery=(0,r.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:l,columnWidths:u}=this.props,d=(0,i.mJ)(n),p="columns"===r?(0,i.FL)(d,t):(0,i.VU)(d,{isWide:["full","wide"].includes(e)});let h=0;return(0,c.jsx)(s.A,{galleryRef:this.gallery,children:p.map((e,t)=>(0,c.jsx)(a.A,{children:e.map((e,n)=>{const r=l.slice(h,h+e);return h+=e,(0,c.jsx)(o.A,{width:u?.[t]?.[n],children:r},n)})},t))})}}},70394(e,t,n){"use strict";n.d(t,{FL:()=>a,VU:()=>C,mJ:()=>o});var r=n(66087);function o(e){return e.map(s)}function s({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,o=[];let s=e,a=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,t=>{const r=a<=(e+1)*n;return r&&(a+=t),r}).length;o.push(t),s=s.slice(t)}return o.push(s.length),[o]}const i=A([2,1,2],5),c=S([E,E,T,E,E]),l=S([E,E,E,T,E,E,E]),u=A([3,1,3],5),d=S([T,E,E,T]),p=A([1,2,1],5),h=S([T,E,E,E]),m=A([1,3],3),g=S([E,E,E,T]),f=A([3,1],3),b=S([P(1.6),(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2))]),v=A([1,2],3),y=A([1,1,1,1,1],1),k=A([1,1,1,1],1),w=A([1,1,1],3),x=S([(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2)),P(1.6)]),_=A([2,1],3),j=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const n=(e,o)=>{if(!o.length)return e;let s;s=o.length>15&&c(o)&&i(e)?[2,1,2]:o.length>15&&l(o)&&u(e)?[3,1,3]:5!==o.length&&d(o)&&p(e)?[1,2,1]:h(o)&&m(e)?[1,3]:g(o)&&f(e)?[3,1]:b(o)&&v(e)?[1,2]:t&&(5===o.length||10!==o.length&&o.length>6)&&y(e)&&(0,r.sum)(o.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)(t.slice(0,4));return k(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,o)?[1,1,1,1]:function(e,t,n){const o=(0,r.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&w(e)&&(o<2.5||o<5&&t.length>=3&&t[0]===t[2]||n)}(e,o,t)?[1,1,1]:x(o)&&_(e)?[2,1]:j(o)?[1]:o.length>3?[1,1]:Array(o.length).fill(1);const a=e.concat([s]),C=(0,r.sum)(s),A=o.slice(C);return n(a,A)};return n([],e)}function A(e,t){return n=>!n.slice(-t).some(t=>(0,r.isEqual)(t,e))}function S(e){return t=>t.length>=e.length&&(0,r.zipWith)(e,t.slice(0,e.length),(e,t)=>e(t)).every(Boolean)}function E(e){return e>=1&&e<2}function T(e){return e<1}function N(e){return t=>t>=e}function P(e){return t=>t<e}},66645(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);function s({children:e,className:t}){return(0,o.jsx)("div",{className:(0,r.A)("tiled-gallery__row",t),children:e})}},49611(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(66087),o=n(60041),s=n(63307),a=n(37471),i=n(66645),c=n(10790);function l({columns:e,renderedImages:t}){const n=Math.min(o.ZS,e),l=t.length%n;return(0,c.jsx)(a.A,{children:[...l?[t.slice(0,l)]:[],...(0,r.chunk)(t.slice(l),n)].map((e,t)=>(0,c.jsx)(i.A,{className:`columns-${e.length}`,children:e.map((e,t)=>(0,c.jsx)(s.A,{children:e},t))},t))})}},93865(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(90907),o=n(60041),s=n(98413),a=n(10790);function i(e){return Math.min(3,e.images.length)}function c({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:c,className:l,columns:u=i(e),linkTo:d,roundedCorners:p,columnWidths:h}=e;return(0,a.jsx)(s.A,{align:c,className:l,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,r.D)(o.kc,l),linkTo:d,roundedCorners:p,columnWidths:h})}},13014(e,t,n){"use strict";n.d(t,{A:()=>i,s:()=>a});var r=n(63162),o=n(14936),s=n(60041);function a(e){return["circle","square"].includes(e)}function i(e,t={}){if(!e.height||!e.url||!e.width)return{};if((0,r.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url))return{src:e.url};const n=e.url.split("?",1)[0],{height:i,width:l}=e,{layoutStyle:u}=t,d=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)?c:o.A;let p;if(a(u)&&l&&i){const e=Math.min(s.rK,l,i);p=d(n,{resize:`${e},${e}`})}else p=d(n);let h=[];if(a(u)){const e=Math.min(600,l,i),t=Math.min(s.rK,l,i);for(let r=e;r<t;r+=300){const e=d(n,{resize:`${r},${r}`,strip:"info"});e&&h.push(`${e} ${r}w`)}}else{const e=Math.min(600,l),t=Math.min(s.rK,l);for(let r=e;r<t;r+=300){const e=d(n,{strip:"info",width:r});e&&h.push(`${e} ${r}w`)}}return h=h.join(","),Object.assign({src:p},h&&{srcSet:h})}function c(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,o]of Object.entries(t))r.searchParams.set(Object.hasOwn(n,e)?n[e]:e,o);return r.toString()}},86136(e,t,n){"use strict";n.d(t,{T$:()=>c,WN:()=>s,ZS:()=>o,aQ:()=>i,hE:()=>r,kc:()=>l,rK:()=>a});const r=4,o=20,s=20,a=2e3,i="circle",c="rectangular",l=[{isDefault:!0,name:c},{name:i},{name:"square"},{name:"columns"}]},52469(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(63162),o=n(13022),s=n(10790);function a(e){const{alt:t,imageFilter:n,height:a,id:i,link:c,linkTo:l,origUrl:u,url:d,width:p}=e;if((0,r.isBlobURL)(u))return null;let h;switch(l){case"media":h=d;break;case"attachment":h=c}const m=(0,s.jsx)("img",{alt:t,"data-height":a,"data-id":i,"data-link":c,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,s.jsx)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${n}`]:!!n}),children:h?(0,s.jsx)("a",{href:h,children:m}):m})}},24753(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>s,save:()=>o.A,supports:()=>a});var r=n(86136),o=n(83276);const s={align:{default:"center",type:"string"},className:{default:`is-style-${r.T$}`,type:"string"},columns:{type:"number"},columnWidths:{default:[],type:"array"},ids:{default:[],type:"array"},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}},a={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},81992(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,width:t}){const n=t?{flexBasis:`${t}%`}:void 0;return(0,r.jsx)("div",{className:"tiled-gallery__col",style:n,children:e})}},7270(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,galleryRef:t}){return(0,r.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},66972(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(86087),o=n(27723),s=n(13022),a=n(86136),i=n(52469),c=n(32083),l=n(55807),u=n(35151),d=n(10790);const __=o.__;class p extends r.Component{renderImage(e,t){const{columns:n,imageFilter:r,images:s,isSave:a,linkTo:l,layoutStyle:u,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 133 | +__("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:y,srcSet:k}=(0,c.A)(e,{layoutStyle:u});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":v,columns:n,height:e.height,id:e.id,imageFilter:r,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:f===t,link:e.link,linkTo:l,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:s.length>1,srcSet:k,url:y,width:e.width},t)}render(){const{align:e,children:t,className:n,columns:r,images:o,layoutStyle:i,roundedCorners:p,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,c.s)(i)?u.A:l.A,v=this.props.images.map(this.renderImage,this),y=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{style:m,className:(0,s.A)(n,{[`has-rounded-corners-${y}`]:y>0}),children:[(0,d.jsx)(b,{align:e,columns:r,columnWidths:g?f:void 0,images:o,layoutStyle:i,renderedImages:v,onResize:g?void 0:h}),t]})}}},55807(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(86087),o=n(94107),s=n(81992),a=n(7270),i=n(14476),c=n(71245),l=n(86461),u=n(10790);class d extends r.Component{gallery=(0,r.createRef)();pendingRaf=null;ro=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}handleGalleryResize=e=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame(()=>{for(const{contentRect:t,target:n}of e){const{width:e}=t,r=[];(0,l.S)(n).forEach(t=>{r.push((0,l.r)(t,e))}),void 0!==this.props.onResize&&this.props.onResize(r)}})};triggerResize(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}observeResize(){this.triggerResize(),this.ro=new o.A(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,n){let r=0;return e.map(e=>e.map(e=>{const n=t.slice(r,r+e);return r+=e,n})).map(e=>(0,l.r)(e,n))}render(){const{align:e,columns:t,images:n,layoutStyle:o,renderedImages:l}=this.props,d=(0,c.mJ)(n),p="columns"===o?(0,c.FL)(d,t):(0,c.VU)(d,{isWide:["full","wide"].includes(e)}),h=r.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(p,l,1e3)})();let m=0;return(0,u.jsx)(a.A,{galleryRef:this.gallery,children:p.map((e,t)=>(0,u.jsx)(i.A,{children:e.map((e,n)=>{const r=l.slice(m,m+e);return m+=e,(0,u.jsx)(s.A,{width:h?.[t]?.[n],children:r},n)})},t))})}}},71245(e,t,n){"use strict";n.d(t,{FL:()=>a,VU:()=>C,mJ:()=>o});var r=n(66087);function o(e){return e.map(s)}function s({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,o=[];let s=e,a=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,t=>{const r=a<=(e+1)*n;return r&&(a+=t),r}).length;o.push(t),s=s.slice(t)}return o.push(s.length),[o]}const i=A([2,1,2],5),c=S([E,E,T,E,E]),l=S([E,E,E,T,E,E,E]),u=A([3,1,3],5),d=S([T,E,E,T]),p=A([1,2,1],5),h=S([T,E,E,E]),m=A([1,3],3),g=S([E,E,E,T]),f=A([3,1],3),b=S([P(1.6),(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2))]),v=A([1,2],3),y=A([1,1,1,1,1],1),k=A([1,1,1,1],1),w=A([1,1,1],3),x=S([(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2)),P(1.6)]),_=A([2,1],3),j=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const n=(e,o)=>{if(!o.length)return e;let s;s=o.length>15&&c(o)&&i(e)?[2,1,2]:o.length>15&&l(o)&&u(e)?[3,1,3]:5!==o.length&&d(o)&&p(e)?[1,2,1]:h(o)&&m(e)?[1,3]:g(o)&&f(e)?[3,1]:b(o)&&v(e)?[1,2]:t&&(5===o.length||10!==o.length&&o.length>6)&&y(e)&&(0,r.sum)(o.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)(t.slice(0,4));return k(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,o)?[1,1,1,1]:function(e,t,n){const o=(0,r.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&w(e)&&(o<2.5||o<5&&t.length>=3&&t[0]===t[2]||n)}(e,o,t)?[1,1,1]:x(o)&&_(e)?[2,1]:j(o)?[1]:o.length>3?[1,1]:Array(o.length).fill(1);const a=e.concat([s]),C=(0,r.sum)(s),A=o.slice(C);return n(a,A)};return n([],e)}function A(e,t){return n=>!n.slice(-t).some(t=>(0,r.isEqual)(t,e))}function S(e){return t=>t.length>=e.length&&(0,r.zipWith)(e,t.slice(0,e.length),(e,t)=>e(t)).every(Boolean)}function E(e){return e>=1&&e<2}function T(e){return e<1}function N(e){return t=>t>=e}function P(e){return t=>t<e}},86461(e,t,n){"use strict";n.d(t,{S:()=>a,r:()=>s});var r=n(86136);function o(e,t){const n=(t-e.reduce((e,t)=>e+t,0))/e.length;return e.map(e=>e+n)}function s(e,t){return function(e,[t,n],s){const a=1/t*(s-r.hE*(e.childElementCount-1)-n);return function(e,{rawHeight:t,rowWidth:n}){const s=i(e),a=s.map(e=>(t-r.hE*(e.childElementCount-1))*l(e)[0]),d=o(a,n);s.forEach((e,n)=>{const s=a[n],i=d[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const s=c(e).map(e=>r/u(e)),a=o(s,t);Array.from(e.children).forEach((e,t)=>{const r=a[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)})}(e,{colHeight:t-r.hE*(e.childElementCount-1),width:i,rawWidth:s})});return d.map(e=>parseFloat(e/n*100).toFixed(5))}(e,{rawHeight:a,rowWidth:s-r.hE*(e.childElementCount-1)})}(e,function(e){const t=i(e).map(l).reduce(([e,t],[n,r])=>[e+n,t+r],[0,0]);return t}(e),t)}function a(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function c(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function l(e){const t=c(e),n=t.length,r=1/t.map(u).reduce((e,t)=>e+1/t,0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},14476(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);function s({children:e,className:t}){return(0,o.jsx)("div",{className:(0,r.A)("tiled-gallery__row",t),children:e})}},35151(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(66087),o=n(86136),s=n(81992),a=n(7270),i=n(14476),c=n(10790);function l({columns:e,renderedImages:t}){const n=Math.min(o.ZS,e),l=t.length%n;return(0,c.jsx)(a.A,{children:[...l?[t.slice(0,l)]:[],...(0,r.chunk)(t.slice(l),n)].map((e,t)=>(0,c.jsx)(i.A,{className:`columns-${e.length}`,children:e.map((e,t)=>(0,c.jsx)(s.A,{children:e},t))},t))})}},83276(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(90907),o=n(86136),s=n(66972),a=n(10790);function i(e){return Math.min(3,e.images.length)}function c({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:c,className:l,columns:u=i(e),linkTo:d,roundedCorners:p,columnWidths:h}=e;return(0,a.jsx)(s.A,{align:c,className:l,columns:u,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,r.D)(o.kc,l),linkTo:d,roundedCorners:p,columnWidths:h})}},32083(e,t,n){"use strict";n.d(t,{A:()=>u,s:()=>l});var r=n(97999),o=n(85985),s=n(63162),a=n(14936),i=n(13087),c=n(86136);function l(e){return["circle","square"].includes(e)}function u(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.A)())return{src:e.url};if((0,s.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,r.isWoASite)()&&(0,o.pP)())return{src:e.url};const n=e.url.split("?",1)[0],{height:u,width:p}=e,{layoutStyle:h}=t,m=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)?d:a.A;let g;if(l(h)&&p&&u){const e=Math.min(c.rK,p,u);g=m(n,{resize:`${e},${e}`})}else g=m(n);let f=[];if(l(h)){const e=Math.min(600,p,u),t=Math.min(c.rK,p,u);for(let r=e;r<t;r+=300){const e=m(n,{resize:`${r},${r}`,strip:"info"});e&&f.push(`${e} ${r}w`)}}else{const e=Math.min(600,p),t=Math.min(c.rK,p);for(let r=e;r<t;r+=300){const e=m(n,{strip:"info",width:r});e&&f.push(`${e} ${r}w`)}}return f=f.join(","),Object.assign({src:g},f&&{srcSet:f})}function d(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,o]of Object.entries(t))r.searchParams.set(Object.hasOwn(n,e)?n[e]:e,o);return r.toString()}},60601(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:{type:"string",default:"center"},className:{type:"string",default:"is-style-rectangular"},columns:{type:"number"},columnWidths:{type:"array",default:[]},ids:{type:"array",default:[]},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",type:"number",selector:"img",source:"attribute"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}}},62554(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>r.A,save:()=>s.A,supports:()=>o.A});var r=n(60601),o=n(2500),s=n(55035)},55035(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(90907),s=n(35463),a=n(22728),i=n(6775),c=n(10790);function l({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:l,className:u,columns:d=(0,a.EB)(e),linkTo:p,roundedCorners:h,columnWidths:m}=e,g=r.useBlockProps.save();return(0,c.jsx)("div",{...g,children:(0,c.jsx)(i.A,{align:l,className:u,columns:d,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,o.D)(s.kc,u),linkTo:p,roundedCorners:h,columnWidths:m,skipPhotonDomain:!1})})}},2500(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},92990(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:{type:"string",default:"center"},className:{type:"string",default:"is-style-rectangular"},columns:{type:"number"},columnWidths:{type:"array",default:[]},ids:{type:"array",default:[]},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",type:"number",selector:"img",source:"attribute"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}}},41314(e,t,n){"use strict";n.d(t,{WN:()=>o,ZS:()=>r,aQ:()=>a,rK:()=>s});const r=20,o=20,s=2e3,a="circle"},18151(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(63162),o=n(13022),s=n(10790);function a(e){const{alt:t,imageFilter:n,height:a,id:i,link:c,linkTo:l,origUrl:u,url:d,width:p}=e;if((0,r.isBlobURL)(u))return null;let h;switch(l){case"media":h=u;break;case"attachment":h=c}const m=(0,s.jsx)("img",{alt:t,"data-height":a,"data-id":i,"data-link":c,"data-url":u,"data-width":p,src:d,"data-amp-layout":"responsive"});return(0,s.jsx)("figure",{className:(0,o.A)("tiled-gallery__item",{[`filter__${n}`]:!!n}),children:h?(0,s.jsx)("a",{href:h,children:m}):m})}},59679(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>r.A,save:()=>s.A,supports:()=>o.A});var r=n(92990),o=n(93951),s=n(56137)},22026(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,width:t}){const n=Math.pow(10,12),o=Math.round(t*n)/n,s=t?{flexBasis:`${o}%`}:void 0;return(0,r.jsx)("div",{className:"tiled-gallery__col",style:s,children:e})}},90984(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,galleryRef:t}){return(0,r.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},66746(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(86087),o=n(27723),s=n(13022),a=n(41314),i=n(18151),c=n(52537),l=n(88833),u=n(48669),d=n(10790);const __=o.__;class p extends r.Component{renderImage(e,t){const{columns:n,imageFilter:r,images:s,isSave:a,linkTo:l,layoutStyle:u,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 134 | +__("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),{src:y,srcSet:k}=(0,c.A)(e,{layoutStyle:u});return(0,d.jsx)(i.A,{alt:e.alt,"aria-label":v,columns:n,height:e.height,id:e.id,imageFilter:r,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:f===t,link:e.link,linkTo:l,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:s.length>1,srcSet:k,url:y,width:e.width},t)}render(){const{align:e,children:t,className:n,columns:r,images:o,layoutStyle:i,roundedCorners:p,onResize:h,isSave:m,columnWidths:g}=this.props,f=(0,c.s)(i)?u.A:l.A,b=this.props.images.map(this.renderImage,this),v=i!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{className:(0,s.A)(n,{[`has-rounded-corners-${v}`]:v>0}),children:[(0,d.jsx)(f,{align:e,columns:r,columnWidths:m?g:void 0,images:o,layoutStyle:i,renderedImages:b,onResize:m?void 0:h}),t]})}}},88833(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(86087),o=n(22026),s=n(90984),a=n(45610),i=n(79167),c=n(10790);class l extends r.Component{gallery=(0,r.createRef)();pendingRaf=null;render(){const{align:e,columns:t,images:n,layoutStyle:r,renderedImages:l,columnWidths:u}=this.props,d=(0,i.mJ)(n),p="columns"===r?(0,i.FL)(d,t):(0,i.VU)(d,{isWide:["full","wide"].includes(e)});let h=0;return(0,c.jsx)(s.A,{galleryRef:this.gallery,children:p.map((e,t)=>(0,c.jsx)(a.A,{children:e.map((e,n)=>{const r=l.slice(h,h+e);return h+=e,(0,c.jsx)(o.A,{width:u?.[t]?.[n],children:r},n)})},t))})}}},79167(e,t,n){"use strict";n.d(t,{FL:()=>a,VU:()=>C,mJ:()=>o});var r=n(66087);function o(e){return e.map(s)}function s({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,o=[];let s=e,a=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,t=>{const r=a<=(e+1)*n;return r&&(a+=t),r}).length;o.push(t),s=s.slice(t)}return o.push(s.length),[o]}const i=A([2,1,2],5),c=S([E,E,T,E,E]),l=S([E,E,E,T,E,E,E]),u=A([3,1,3],5),d=S([T,E,E,T]),p=A([1,2,1],5),h=S([T,E,E,E]),m=A([1,3],3),g=S([E,E,E,T]),f=A([3,1],3),b=S([P(1.6),(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2))]),v=A([1,2],3),y=A([1,1,1,1,1],1),k=A([1,1,1,1],1),w=A([1,1,1],3),x=S([(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2)),P(1.6)]),_=A([2,1],3),j=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const n=(e,o)=>{if(!o.length)return e;let s;s=o.length>15&&c(o)&&i(e)?[2,1,2]:o.length>15&&l(o)&&u(e)?[3,1,3]:5!==o.length&&d(o)&&p(e)?[1,2,1]:h(o)&&m(e)?[1,3]:g(o)&&f(e)?[3,1]:b(o)&&v(e)?[1,2]:t&&(5===o.length||10!==o.length&&o.length>6)&&y(e)&&(0,r.sum)(o.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)(t.slice(0,4));return k(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,o)?[1,1,1,1]:function(e,t,n){const o=(0,r.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&w(e)&&(o<2.5||o<5&&t.length>=3&&t[0]===t[2]||n)}(e,o,t)?[1,1,1]:x(o)&&_(e)?[2,1]:j(o)?[1]:o.length>3?[1,1]:Array(o.length).fill(1);const a=e.concat([s]),C=(0,r.sum)(s),A=o.slice(C);return n(a,A)};return n([],e)}function A(e,t){return n=>!n.slice(-t).some(t=>(0,r.isEqual)(t,e))}function S(e){return t=>t.length>=e.length&&(0,r.zipWith)(e,t.slice(0,e.length),(e,t)=>e(t)).every(Boolean)}function E(e){return e>=1&&e<2}function T(e){return e<1}function N(e){return t=>t>=e}function P(e){return t=>t<e}},45610(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);function s({children:e,className:t}){return(0,o.jsx)("div",{className:(0,r.A)("tiled-gallery__row",t),children:e})}},48669(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(66087),o=n(41314),s=n(22026),a=n(90984),i=n(45610),c=n(10790);function l({columns:e,renderedImages:t}){const n=Math.min(o.ZS,e),l=t.length%n;return(0,c.jsx)(a.A,{children:[...l?[t.slice(0,l)]:[],...(0,r.chunk)(t.slice(l),n)].map((e,t)=>(0,c.jsx)(i.A,{className:`columns-${e.length}`,children:e.map((e,t)=>(0,c.jsx)(s.A,{children:e},t))},t))})}},56137(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(13022),s=n(90907),a=n(35463),i=n(22728),c=n(66746),l=n(10790);function u({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:u,className:d,columns:p=(0,i.EB)(e),linkTo:h,roundedCorners:m,columnWidths:g}=e,f=r.useBlockProps.save();return(0,l.jsxs)("div",{...f,className:(0,o.A)(f.className,d),children:[" ",(0,l.jsx)(c.A,{align:u,columns:p,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,s.D)(a.kc,d),linkTo:h,roundedCorners:m,columnWidths:g})]})}},93951(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},52537(e,t,n){"use strict";n.d(t,{A:()=>u,s:()=>l});var r=n(97999),o=n(85985),s=n(63162),a=n(14936),i=n(13087),c=n(41314);function l(e){return["circle","square"].includes(e)}function u(e,t={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.A)())return{src:e.url};if((0,s.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,r.isWoASite)()&&(0,o.pP)())return{src:e.url};const n=e.url.split("?",1)[0],{height:u,width:p}=e,{layoutStyle:h}=t,m=function(e){const{host:t}=new URL(e,window.location.href);return/\.files\.wordpress\.com$/.test(t)}(n)?d:a.A;let g;if(l(h)&&p&&u){const e=Math.min(c.rK,p,u);g=m(n,{resize:`${e},${e}`})}else g=m(n);let f=[];if(l(h)){const e=Math.min(600,p,u),t=Math.min(c.rK,p,u);for(let r=e;r<t;r+=300){const e=m(n,{resize:`${r},${r}`,strip:"info"});e&&f.push(`${e} ${r}w`)}}else{const e=Math.min(600,p),t=Math.min(c.rK,p);for(let r=e;r<t;r+=300){const e=m(n,{strip:"info",width:r});e&&f.push(`${e} ${r}w`)}}return f=f.join(","),Object.assign({src:g},f&&{srcSet:f})}function d(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,o]of Object.entries(t))r.searchParams.set(Object.hasOwn(n,e)?n[e]:e,o);return r.toString()}},75e3(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>r.A,save:()=>s.A,supports:()=>o.A});var r=n(37336),o=n(69813),s=n(11045)},11045(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(13022),s=n(90907),a=n(35463),i=n(22728),c=n(72712),l=n(10790);function u({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:u,className:d,columns:p=(0,i.EB)(e),linkTo:h,roundedCorners:m,columnWidths:g}=e,f=r.useBlockProps.save();return(0,l.jsxs)("div",{...f,className:(0,o.A)(f.className,d),children:[" ",(0,l.jsx)(c.A,{align:u,columns:p,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,s.D)(a.kc,d),linkTo:h,roundedCorners:m,columnWidths:g})]})}},37336(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:{type:"string",default:"center"},className:{type:"string",default:"is-style-rectangular"},columns:{type:"number"},columnWidths:{type:"array",default:[]},ids:{type:"array",default:[]},imageFilter:{type:"string"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},height:{attribute:"data-height",type:"number",selector:"img",source:"attribute"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},customLink:{attribute:"data-custom-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},imageCrop:{type:"boolean",default:!0},linkTo:{default:"none",type:"string"},roundedCorners:{type:"integer",default:0}}},32377(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(97999),o=n(63162),s=n(13022),a=n(10790);function i(e){const{alt:t,imageFilter:n,height:i,id:c,link:l,linkTo:u,customLink:d,origUrl:p,url:h,width:m,"aria-label":g}=e;if((0,o.isBlobURL)(p))return null;let f;switch(u){case"media":f=p;break;case"attachment":f=l;break;case"custom":f=d||"";break;default:f=""}const b=(0,a.jsx)("img",{alt:t,"data-height":i,"data-id":c,"data-link":l,"data-url":p,"data-custom-link":d,"data-width":m,src:h,...!(0,r.isSimpleSite)()&&{"data-amp-layout":"responsive"},tabIndex:0,role:"button","aria-label":g});return(0,a.jsx)("figure",{className:(0,s.A)("tiled-gallery__item",{[`filter__${n}`]:!!n}),children:f?(0,a.jsx)("a",{href:f,children:b}):b})}},20837(e,t,n){"use strict";n.r(t),n.d(t,{attributes:()=>r.A,save:()=>s.A,supports:()=>o.A});var r=n(37336),o=n(69813),s=n(49928)},72712(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(86087),o=n(27723),s=n(13022),a=n(35463),i=n(69322),c=n(92978),l=n(90256),u=n(32377),d=n(10790);const __=o.__;class p extends r.Component{renderImage(e,t){const{columns:n,imageFilter:r,images:s,isSave:a,linkTo:i,layoutStyle:c,onMoveBackward:p,onMoveForward:h,onRemoveImage:m,onSelectImage:g,selectedImage:f,setImageAttributes:b}=this.props,v=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 135 | +__("Open image %1$d of %2$d in full-screen","jetpack"),t+1,s.length),y=u.A,{src:k,srcSet:w}=(0,l.AW)(e,{layoutStyle:c},{skipPhotonDomain:!1});return(0,d.jsx)(y,{alt:e.alt,"aria-label":v,columns:n,height:e.height,id:e.id,imageFilter:r,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:f===t,link:e.link,linkTo:i,customLink:e.customLink,onMoveBackward:a?void 0:p(t),onMoveForward:a?void 0:h(t),onRemove:a?void 0:m(t),onSelect:a?void 0:g(t),origUrl:e.url,setAttributes:a?void 0:b(t),showMovers:s.length>1,srcSet:w,url:k,width:e.width},t)}render(){const{align:e,children:t,className:n,columns:r,images:o,layoutStyle:u,roundedCorners:p,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,l.sL)(u)?c.A:i.A,v=this.props.images.map(this.renderImage,this),y=u!==a.aQ?Math.min(p,a.WN):0;return(0,d.jsxs)("div",{style:m,className:(0,s.A)(n,{[`has-rounded-corners-${y}`]:y>0}),children:[(0,d.jsx)(b,{align:e,columns:r,columnWidths:g?f:void 0,images:o,layoutStyle:u,renderedImages:v,onResize:g?void 0:h}),t]})}}},49928(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(13022),s=n(90907),a=n(35463),i=n(22728),c=n(72712),l=n(10790);function u({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:u,className:d,columns:p=(0,i.EB)(e),linkTo:h,roundedCorners:m,columnWidths:g}=e,f=r.useBlockProps.save();return(0,l.jsxs)("div",{...f,className:(0,o.A)(f.className,d),children:[" ",(0,l.jsx)(c.A,{align:u,columns:p,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,s.D)(a.kc,d),linkTo:h,roundedCorners:m,columnWidths:g})]})}},69813(e,t,n){"use strict";n.d(t,{A:()=>r});const r={align:["center","wide","full"],color:{gradients:!0,text:!1},customClassName:!1,html:!1,spacing:{margin:!0,padding:!0},__experimentalHideChildBlockControls:!0}},22728(e,t,n){"use strict";n.d(t,{Ay:()=>y,EB:()=>b});var r=n(85985),o=n(94715),s=n(56427),a=n(43656),i=n(86087),c=n(27723),l=n(66087),u=n(90907),d=n(76585),p=n(35463),h=n(55702),m=n(6775),g=n(9888),f=n(10790);const __=c.__;function b(e){return e.images.length>0?Math.min(3,e.images.length):3}const v=e=>{const t=(0,l.pick)(e,[["alt"],["id"],["link"]]);return t.url=e?.sizes?.large?.url||e?.media_details?.sizes?.large?.source_url||e.url,t},y=(0,s.withNotices)(({attributes:e,isSelected:t,noticeOperations:n,noticeUI:c,setAttributes:l})=>{const{align:y,columns:k=b(e),imageFilter:w,images:x,linkTo:_,roundedCorners:j,columnWidths:C}=e,A=(0,u.D)(p.kc,e.className),S=(0,o.useBlockProps)(),[E,T]=(0,i.useState)(null),[N,P]=(0,i.useState)(void 0===C||0===C?.length),B=e=>{l({images:e,ids:e.map(({id:e})=>parseInt(e,10))})},I=e=>{(0,a.mediaUpload)({allowedTypes:p.eN,filesList:e,onFileChange:e=>B((x||[]).concat(e.map(v))),onError:n.createErrorNotice}),P(!0)},M=e=>()=>{const t=x.filter((t,n)=>e!==n);T(null),P(!0),B(t),l({columns:k?Math.min(t.length,k):k})},R=e=>()=>{E!==e&&T(e)},L=e=>{const t=e.map(e=>{const t=x.find(t=>parseInt(t.id,10)===parseInt(e.id,10));return t?.customLink?{...v(e),customLink:t.customLink}:v(e)});B(t),l({columns:k?Math.min(e.length,k):k}),P(!0)},D=(e,t)=>{const n=[...x];n.splice(t,1,x[e]),n.splice(e,1,x[t]),T(t),P(!0),B(n)},F=e=>()=>{e!==x.length-1&&D(e,e+1)},O=e=>()=>{0!==e&&D(e,e-1)},z=e=>{!N&&(0,g.O)(e,C)||l({columnWidths:e})},U=e=>I(e.target.files),H=e=>t=>{x[e]&&B([...x.slice(0,e),{...x[e],...t},...x.slice(e+1)])};let $;return(0,i.useEffect)(()=>{t||null===E||T(null)},[t,E,T]),$=0===x.length?(0,f.jsx)(o.MediaPlaceholder,{icon:(0,r.sh)(d),labels:{title:__("Tiled Gallery","jetpack"),name:__("images","jetpack")},onSelect:L,accept:"image/*",allowedTypes:p.eN,multiple:!0,notices:c,onError:n.createErrorNotice}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(h.M,{layoutStyle:A,images:x,columns:k,selectedImage:E,setImageAttributes:H,onColumnsChange:e=>l({columns:e}),roundedCorners:j,onRoundedCornersChange:e=>l({roundedCorners:e}),linkTo:_,onLinkToChange:e=>l({linkTo:e})}),c,(0,f.jsxs)(m.A,{className:"tiled-gallery__wrapper",align:y,columns:k,imageFilter:w,images:x,layoutStyle:A,linkTo:_,onMoveBackward:O,onMoveForward:F,onRemoveImage:M,onSelectImage:R,onResize:z,roundedCorners:j,selectedImage:t?E:null,setImageAttributes:H,children:[(0,f.jsx)(s.DropZone,{onFilesDrop:I}),t&&(0,f.jsx)("div",{className:"tiled-gallery__add-item",children:(0,f.jsx)(s.FormFileUpload,{multiple:!0,className:"tiled-gallery__add-item-button",onChange:U,accept:"image/*",icon:"insert",__next40pxDefaultSize:!0,children:__("Upload an image","jetpack")})})]})]}),(0,f.jsxs)("div",{...S,children:[(0,f.jsx)(h.c,{images:x,onSelectImages:L,imageFilter:w,onFilterChange:e=>{l({imageFilter:e}),T(null)}}),$]})})},25589(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(76585),a=n(10602),i=n(22728),c=n(96575),l=n(32022),u=n(2369),d=n(24324),p=n(49263),h=n(76882),m=n(86781);n(80490);const g={align:"center",className:"is-style-rectangular",images:[{alt:"",link:"",url:l,width:160,height:95},{alt:"",link:"",url:u,width:160,height:107},{alt:"",link:"",url:d,width:304,height:203},{alt:"",link:"",url:p,width:312,height:207},{alt:"",link:"",url:h,width:152,height:101},{alt:"",link:"",url:m,width:152,height:105}],linkTo:"none"};function f(e=[]){return e.filter(({id:e,url:t})=>e&&t)}(0,o.M)(s,{edit:i.Ay,save:c.A,transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],isMatch:e=>f(e).length>0,transform:e=>{const t=f(e);return(0,r.createBlock)(s.name,{images:t.map(({id:e,url:t,link:n,alt:r})=>({id:e,url:t,link:n,alt:r})),ids:t.map(({id:e})=>e)})}},{type:"block",blocks:["core/gallery","jetpack/slideshow"],transform:({images:e=[]},t)=>{!e.length&&t?.length&&(e=t.filter(e=>"core/image"===e.name&&e.attributes?.url).map(({attributes:e})=>({id:e.id,url:e.url,link:e.href,alt:e.alt})));const n=f(e);return n.length>0?(0,r.createBlock)(s.name,{images:n.map(({id:e,url:t,link:n,alt:r})=>({id:e,url:t,link:n,alt:r})),ids:n.map(({id:e})=>e)}):(0,r.createBlock)(s.name)}}],to:[{type:"block",blocks:["core/gallery"],transform:({images:e,ids:t,columns:n,linkTo:o})=>(0,r.createBlock)("core/gallery",{images:e,ids:t,columns:n,imageCrop:!0,linkTo:o})},{type:"block",blocks:["core/image"],transform:({align:e,images:t})=>t.length>0?t.map(({id:t,url:n,alt:o})=>(0,r.createBlock)("core/image",{align:e,id:t,url:n,alt:o})):(0,r.createBlock)("core/image")}]},providesContext:{imageCrop:"imageCrop"},deprecated:a.A,example:{attributes:g}})},62820(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(56427),s=n(27723),a=n(10790);const __=s.__,_x=s._x,i=[{icon:(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Original","image style","jetpack"),value:void 0},{icon:(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Black and White","image style","jetpack"),value:"black-and-white"},{icon:(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V7c0-1.11-.9-2-2-2h-4v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})]}),title:_x("Sepia","image style","jetpack"),value:"sepia"},{icon:(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(o.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4v2h4v2h-2v2h2v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:"1977",value:"1977"},{icon:(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(o.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})]}),title:_x("Clarendon","image style","jetpack"),value:"clarendon"},{icon:(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0z"}),(0,a.jsx)(o.Path,{d:"M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-2V7h4V5h-6v6h4v2h-4v2h4c1.1 0 2-.89 2-2z"})]}),title:_x("Gingham","image style","jetpack"),value:"gingham"}],c=__("Pick an image filter","jetpack"),l=(0,a.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(o.Path,{d:"M19 10v9H4.98V5h9V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zm-2.94-2.06L17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7zM12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12l-2.75-1.25z"})]});function u({value:e,onChange:t}){return(0,a.jsx)(o.Dropdown,{placement:"bottom-start",className:"editor-block-switcher",contentClassName:"editor-block-switcher__popover",renderToggle:({onToggle:e,isOpen:t})=>(0,a.jsx)(r.BlockControls,{children:(0,a.jsx)(o.Toolbar,{label:c,children:(0,a.jsx)(o.ToolbarButton,{onClick:e,"aria-expanded":t,"aria-haspopup":"true",label:c,showTooltip:!0,icon:l})})}),renderContent:({onClose:n})=>(0,a.jsx)(o.NavigableMenu,{className:"tiled-gallery__filter-picker-menu",children:i.map(({icon:r,title:s,value:i})=>{return(0,a.jsx)(o.MenuItem,{className:e===i?"is-active":void 0,icon:r,isSelected:e===i,onClick:(c=i,()=>{t(e===c?void 0:c),n()}),role:"menuitemcheckbox",children:s},i||"original");var c})})})}},42777(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(63162),o=n(56427),s=n(47143),a=n(86087),i=n(27723),c=n(48558),l=n(13022),u=n(74540),d=n(10790);const __=i.__;class p extends a.Component{img=(0,a.createRef)();state={isLoading:!1};onImageClick=()=>{this.props.isSelected||this.props.onSelect()};onImageKeyDown=e=>{const{isSelected:t,onRemove:n}=this.props;t&&[c.BACKSPACE,c.DELETE].includes(e.keyCode)&&(e.preventDefault(),n())};onImageLoadComplete=()=>{this.setState({isLoading:!1}),this.removeImageEventListeners()};addImageEventListeners=()=>{if(this.removeImageEventListeners(),this.img.current&&!(0,r.isBlobURL)(this.props.origUrl)){const e=this.img.current.complete;this.setState({isLoading:!e}),e||(this.img.current.addEventListener("load",this.onImageLoadComplete,{once:!0}),this.img.current.addEventListener("error",this.onImageLoadComplete,{once:!0}))}};removeImageEventListeners=()=>{this.img.current&&(this.img.current.removeEventListener("load",this.onImageLoadComplete),this.img.current.removeEventListener("error",this.onImageLoadComplete))};componentDidMount(){(0,r.isBlobURL)(this.props.origUrl)||this.img.current?.complete||(this.setState({isLoading:!0}),this.addImageEventListeners())}componentWillUnmount(){this.removeImageEventListeners()}componentDidUpdate(e){const{alt:t,height:n,image:o,link:s,url:a,width:i,origUrl:c}=this.props,l=(0,r.isBlobURL)(e.origUrl);if((0,r.isBlobURL)(c)||this.img.current?.complete||!l&&e.url===a||(this.setState({isLoading:!0}),this.addImageEventListeners()),o){const e={};!t&&o.alt_text&&(e.alt=o.alt_text),!n&&o.media_details&&o.media_details.height&&(e.height=+o.media_details.height),!s&&o.link&&(e.link=o.link),!a&&o.source_url&&(e.url=o.source_url),!i&&o.media_details&&o.media_details.width&&(e.width=+o.media_details.width),Object.keys(e).length&&this.props.setAttributes(e)}}render(){const{"aria-label":e,alt:t,columns:n,height:s,id:i,imageFilter:c,isFirstItem:p,isLastItem:h,isSelected:m,link:g,linkTo:f,customLink:b,onMoveBackward:v,onMoveForward:y,onRemove:k,origUrl:w,showMovers:x,srcSet:_,url:j,width:C}=this.props,{isLoading:A}=this.state;let S;switch(f){case"media":S=w;break;case"attachment":S=g;break;case"custom":S=b||"";break;default:S=""}const E=(0,r.isBlobURL)(w),T=(0,d.jsxs)(a.Fragment,{children:[(0,d.jsx)("img",{alt:t,"data-height":s,"data-id":i,"data-link":g,"data-url":w,"data-width":C,ref:this.img,src:E?void 0:j,srcSet:E?void 0:_,style:E?{backgroundImage:`url(${w})`}:void 0}),E&&(0,d.jsx)(o.Spinner,{})]});return(0,d.jsxs)("div",{className:(0,l.A)("tiled-gallery__item",{"is-selected":m,"is-transient":E,"is-loading":!E&&A,[`filter__${c}`]:!!c}),tabIndex:"0",role:"button",onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,"aria-label":e,children:[x&&(0,d.jsxs)("div",{className:"tiled-gallery__item__move-menu",children:[(0,d.jsx)(o.Button,{icon:1===n?u.Lo:u.Nd,onClick:p?void 0:v,className:"tiled-gallery__item__move-backward",label:__("Move image backward","jetpack"),"aria-disabled":p,disabled:!m}),(0,d.jsx)(o.Button,{icon:1===n?u.W4:u.Gy,onClick:h?void 0:y,className:"tiled-gallery__item__move-forward",label:__("Move image forward","jetpack"),"aria-disabled":h,disabled:!m})]}),(0,d.jsx)("div",{className:"tiled-gallery__item__inline-menu",children:(0,d.jsx)(o.Button,{icon:u.VN,onClick:k,className:"tiled-gallery__item__remove",label:__("Remove image","jetpack"),disabled:!m})}),S?(0,d.jsx)("a",{"aria-hidden":"true",children:T}):T]})}}const h=(0,s.withSelect)((e,t)=>{const{getEntityRecord:n}=e("core"),{id:r}=t;return{image:r?n("postType","attachment",r):null}})(p)},52026(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(97999),o=n(63162),s=n(13022),a=n(10790);function i(e){const{alt:t,imageFilter:n,height:i,id:c,link:l,linkTo:u,customLink:d,origUrl:p,url:h,width:m}=e;if((0,o.isBlobURL)(p))return null;let g;switch(u){case"media":g=p;break;case"attachment":g=l;break;case"custom":g=d||"";break;default:g=""}const f=(0,r.isSimpleSite)()?{}:{"data-amp-layout":"responsive"},b=(0,a.jsx)("img",{alt:t,"data-height":i,"data-id":c,"data-link":l,"data-url":p,"data-width":m,src:h,...f});return(0,a.jsx)("figure",{className:(0,s.A)("tiled-gallery__item",{[`filter__${n}`]:!!n}),children:g?(0,a.jsx)("a",{href:g,children:b}):b})}},74540(e,t,n){"use strict";n.d(t,{Gy:()=>a,Lo:()=>c,Nd:()=>s,VN:()=>l,W4:()=>i});var r=n(56427),o=n(10790);const s=(0,o.jsx)(r.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M5 8.70002L10.6 14.4L12 12.9L7.8 8.70002L12 4.50002L10.6 3.00002L5 8.70002Z"})}),a=(0,o.jsx)(r.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M13 8.7L7.4 3L6 4.5L10.2 8.7L6 12.9L7.4 14.4L13 8.7Z"})}),i=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z"})}),c=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M12,8l-6,6l1.41,1.41L12,10.83l4.59,4.58L18,14L12,8z"})}),l=(0,o.jsx)(r.SVG,{width:"18",height:"18",viewBox:"-2 -2 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"})})},98737(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,width:t}){const n=t?{flexBasis:`${t}%`}:void 0;return(0,r.jsx)("div",{className:"tiled-gallery__col",style:n,children:e})}},3645(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(10790);function o({children:e,galleryRef:t}){return(0,r.jsx)("div",{className:"tiled-gallery__gallery",ref:t,children:e})}},6775(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(86087),o=n(27723),s=n(13022),a=n(35463),i=n(42777),c=n(52026),l=n(90256),u=n(69322),d=n(92978),p=n(10790);const __=o.__;class h extends r.Component{renderImage(e,t){const{columns:n,imageFilter:r,images:s,isSave:a,linkTo:u,layoutStyle:d,onMoveBackward:h,onMoveForward:m,onRemoveImage:g,onSelectImage:f,selectedImage:b,setImageAttributes:v,skipPhotonDomain:y}=this.props,k=(0,o.sprintf)(/* translators: %1$d is the order number of the image, %2$d is the total number of images. */ | |
| 136 | +__("image %1$d of %2$d in gallery","jetpack"),t+1,s.length),w=a?c.A:i.A,{src:x,srcSet:_}=(0,l.AW)(e,{layoutStyle:d},{skipPhotonDomain:y});return(0,p.jsx)(w,{alt:e.alt,"aria-label":k,columns:n,height:e.height,id:e.id,imageFilter:r,isFirstItem:0===t,isLastItem:t+1===s.length,isSelected:b===t,link:e.link,linkTo:u,customLink:e.customLink,onMoveBackward:a?void 0:h(t),onMoveForward:a?void 0:m(t),onRemove:a?void 0:g(t),onSelect:a?void 0:f(t),origUrl:e.url,setAttributes:a?void 0:v(t),showMovers:s.length>1,srcSet:_,url:x,width:e.width},t)}render(){const{align:e,children:t,className:n,columns:r,images:o,layoutStyle:i,roundedCorners:c,onResize:h,style:m,isSave:g,columnWidths:f}=this.props,b=(0,l.sL)(i)?d.A:u.A,v=this.props.images.map(this.renderImage,this),y=i!==a.aQ?Math.min(c,a.WN):0;return(0,p.jsxs)("div",{style:m,className:(0,s.A)(n,{[`has-rounded-corners-${y}`]:y>0}),children:[(0,p.jsx)(b,{align:e,columns:r,columnWidths:g?f:void 0,images:o,layoutStyle:i,renderedImages:v,onResize:g?void 0:h}),t]})}}},69322(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(86087),o=n(94107),s=n(98737),a=n(3645),i=n(51663),c=n(74176),l=n(18980),u=n(10790);class d extends r.Component{gallery=(0,r.createRef)();pendingRaf=null;lastWidth=null;ro=null;observedContainer=null;componentDidMount(){this.observeResize()}componentWillUnmount(){this.unobserveResize()}componentDidUpdate(e){(e.images!==this.props.images||e.align!==this.props.align||"columns"===this.props.layoutStyle&&e.columns!==this.props.columns)&&this.triggerResize()}isContentSized(e,t){const n=t.getComputedStyle(e);if("inline-flex"===n.display||"inline-block"===n.display)return!0;if("absolute"===n.position||"fixed"===n.position)return!0;if(n.float&&"none"!==n.float)return!0;if(n.width&&/^(max|min|fit)-content/.test(n.width))return!0;const r=e.parentElement;if(!r)return!1;const o=t.getComputedStyle(r);if("flex"!==o.display&&"inline-flex"!==o.display)return!1;if(/^column/.test(o.flexDirection)){const e=n.alignSelf&&"auto"!==n.alignSelf?n.alignSelf:o.alignItems;return!!e&&"stretch"!==e&&"normal"!==e}const s=n.flexBasis;return"0"===n.flexGrow&&(!s||"auto"===s||"content"===s)}getFlexContainer(){const e=this.gallery.current;if(!e)return null;const t=e.ownerDocument?.defaultView||window;let n=e.parentElement;for(;n&&n.parentElement;){if(n.matches(".is-root-container, .editor-styles-wrapper"))return null;const e=n.parentElement,r=t.getComputedStyle(e).display;if(("flex"===r||"inline-flex"===r)&&!this.isContentSized(e,t))return e;n=e}return null}countFlexItems(e,t){const n=["STYLE","SCRIPT","TEMPLATE","LINK"];return Array.from(e.children).filter(e=>{if(n.includes(e.tagName))return!1;const r=t.getComputedStyle(e);return"none"!==r.display&&("absolute"!==r.position&&"fixed"!==r.position)}).length}getLayoutWidth(){const e=this.getFlexContainer();if(!e)return this.gallery.current?this.gallery.current.clientWidth:0;const t=e.ownerDocument?.defaultView||window,n=t.getComputedStyle(e);if(/^column/.test(n.flexDirection))return e.clientWidth;const r=this.countFlexItems(e,t);if(r<=1)return e.clientWidth;const o=parseFloat(n.columnGap)||0;return(e.clientWidth-o*(r-1))/r}syncContainerObservation(){if(!this.ro)return;const e=this.getFlexContainer();e!==this.observedContainer&&(this.observedContainer&&this.ro.unobserve(this.observedContainer),this.observedContainer=e,e&&this.ro.observe(e))}handleGalleryResize=()=>{this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null),this.pendingRaf=requestAnimationFrame(()=>{const e=this.gallery.current;if(!e)return;this.syncContainerObservation();const t=this.getLayoutWidth();if(t<=0)return;if(null!==this.lastWidth&&Math.abs(t-this.lastWidth)<1)return;this.lastWidth=t;const n=[];(0,l.S)(e).forEach(e=>{n.push((0,l.r)(e,t))}),void 0!==this.props.onResize&&this.props.onResize(n)})};triggerResize(){this.gallery.current&&(this.lastWidth=null,this.handleGalleryResize())}observeResize(){this.triggerResize(),this.ro=new o.A(this.handleGalleryResize),this.gallery.current&&(this.ro.observe(this.gallery.current),this.syncContainerObservation())}unobserveResize(){this.ro&&(this.ro.disconnect(),this.ro=null),this.observedContainer=null,this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}getColumnWidths(e,t,n){let r=0;return e.map(e=>e.map(e=>{const n=t.slice(r,r+e);return r+=e,n})).map(e=>(0,l.r)(e,n))}render(){const{align:e,columns:t,images:n,layoutStyle:o,renderedImages:l}=this.props,d=(0,c.mJ)(n),p="columns"===o?(0,c.FL)(d,t):(0,c.VU)(d,{isWide:["full","wide"].includes(e)}),h=r.Platform.select({web:()=>this.props.columnWidths,native:()=>this.getColumnWidths(p,l,1e3)})();let m=0;return(0,u.jsx)(a.A,{galleryRef:this.gallery,children:p.map((e,t)=>(0,u.jsx)(i.A,{children:e.map((e,n)=>{const r=l.slice(m,m+e);return m+=e,(0,u.jsx)(s.A,{width:h?.[t]?.[n],children:r},n)})},t))})}}},74176(e,t,n){"use strict";n.d(t,{FL:()=>a,VU:()=>C,mJ:()=>o});var r=n(66087);function o(e){return e.map(s)}function s({height:e,width:t}){return e&&t?t/e:1}function a(e,t){if(e.length<=t)return[Array(e.length).fill(1)];const n=(0,r.sum)(e)/t,o=[];let s=e,a=0;for(let e=0;e<t-1;e++){const t=(0,r.takeWhile)(s,t=>{const r=a<=(e+1)*n;return r&&(a+=t),r}).length;o.push(t),s=s.slice(t)}return o.push(s.length),[o]}const i=A([2,1,2],5),c=S([E,E,T,E,E]),l=S([E,E,E,T,E,E,E]),u=A([3,1,3],5),d=S([T,E,E,T]),p=A([1,2,1],5),h=S([T,E,E,E]),m=A([1,3],3),g=S([E,E,E,T]),f=A([3,1],3),b=S([P(1.6),(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2))]),v=A([1,2],3),y=A([1,1,1,1,1],1),k=A([1,1,1,1],1),w=A([1,1,1],3),x=S([(0,r.overEvery)(N(.9),P(2)),(0,r.overEvery)(N(.9),P(2)),P(1.6)]),_=A([2,1],3),j=S([function(e){return e>=2}]);function C(e,{isWide:t}={}){const n=(e,o)=>{if(!o.length)return e;let s;s=o.length>15&&c(o)&&i(e)?[2,1,2]:o.length>15&&l(o)&&u(e)?[3,1,3]:5!==o.length&&d(o)&&p(e)?[1,2,1]:h(o)&&m(e)?[1,3]:g(o)&&f(e)?[3,1]:b(o)&&v(e)?[1,2]:t&&(5===o.length||10!==o.length&&o.length>6)&&y(e)&&(0,r.sum)(o.slice(0,5))<5?[1,1,1,1,1]:function(e,t){const n=(0,r.sum)(t.slice(0,4));return k(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(e,o)?[1,1,1,1]:function(e,t,n){const o=(0,r.sum)(t.slice(0,3));return t.length>=3&&4!==t.length&&6!==t.length&&w(e)&&(o<2.5||o<5&&t.length>=3&&t[0]===t[2]||n)}(e,o,t)?[1,1,1]:x(o)&&_(e)?[2,1]:j(o)?[1]:o.length>3?[1,1]:Array(o.length).fill(1);const a=e.concat([s]),C=(0,r.sum)(s),A=o.slice(C);return n(a,A)};return n([],e)}function A(e,t){return n=>!n.slice(-t).some(t=>(0,r.isEqual)(t,e))}function S(e){return t=>t.length>=e.length&&(0,r.zipWith)(e,t.slice(0,e.length),(e,t)=>e(t)).every(Boolean)}function E(e){return e>=1&&e<2}function T(e){return e<1}function N(e){return t=>t>=e}function P(e){return t=>t<e}},18980(e,t,n){"use strict";n.d(t,{S:()=>a,r:()=>s});var r=n(35463);function o(e,t){const n=(t-e.reduce((e,t)=>e+t,0))/e.length;return e.map(e=>e+n)}function s(e,t){return function(e,[t,n],s){const a=r.hE*(e.childElementCount-1),d=s-a;return function(e,{rawHeight:t,rowWidth:n}){const s=i(e),a=s.map(e=>(t-r.hE*(e.childElementCount-1))*l(e)[0]),d=o(a,n);s.forEach((e,n)=>{const s=a[n],i=d[n];!function(e,{colHeight:t,width:n,rawWidth:r}){const s=c(e).map(e=>r/u(e)),a=o(s,t);Array.from(e.children).forEach((e,t)=>{const r=a[t];e.setAttribute("style",`height:${r}px;width:${n}px;`)})}(e,{colHeight:t-r.hE*(e.childElementCount-1),width:i,rawWidth:s})});return d.map(e=>parseFloat(e/n*100).toFixed(5))}(e,{rawHeight:1/t*(d-n),rowWidth:d})}(e,function(e){const t=i(e).map(l).reduce(([e,t],[n,r])=>[e+n,t+r],[0,0]);return t}(e),t)}function a(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function i(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function c(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function l(e){const t=c(e),n=t.length,r=1/t.map(u).reduce((e,t)=>e+1/t,0);return[r,r*n||1]}function u(e){const t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},51663(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(13022),o=n(10790);function s({children:e,className:t}){return(0,o.jsx)("div",{className:(0,r.A)("tiled-gallery__row",t),children:e})}},92978(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(66087),o=n(35463),s=n(98737),a=n(3645),i=n(51663),c=n(10790);function l({columns:e,renderedImages:t}){const n=Math.min(o.ZS,e),l=t.length%n;return(0,c.jsx)(a.A,{children:[...l?[t.slice(0,l)]:[],...(0,r.chunk)(t.slice(l),n)].map((e,t)=>(0,c.jsx)(i.A,{className:`columns-${e.length}`,children:e.map((e,t)=>(0,c.jsx)(s.A,{children:e},t))},t))})}},9888(e,t,n){"use strict";function r(e){return["columns","circle","square"].includes(e)}function o(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>e?.length===t[n]?.length)}n.d(t,{O:()=>o,o:()=>r})},96575(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(94715),o=n(13022),s=n(90907),a=n(35463),i=n(22728),c=n(6775),l=n(10790);function u({attributes:e}){const{imageFilter:t,images:n}=e;if(!n.length)return null;const{align:u,className:d,columns:p=(0,i.EB)(e),linkTo:h,roundedCorners:m,columnWidths:g}=e,f=r.useBlockProps.save();return(0,l.jsx)("div",{...f,className:(0,o.A)(f.className,d),children:(0,l.jsx)(c.A,{align:u,columns:p,imageFilter:t,images:n,isSave:!0,layoutStyle:(0,s.D)(a.kc,d),linkTo:h,roundedCorners:m,columnWidths:g})})}},90256(e,t,n){"use strict";n.d(t,{AW:()=>u,sL:()=>l});var r=n(97999),o=n(85985),s=n(63162),a=n(14936),i=n(13087),c=n(35463);function l(e){return["circle","square"].includes(e)}function u(e,t={},{skipPhotonDomain:n=d()}={}){if(!e.height||!e.width)return e.url?{src:e.url}:{};if((0,i.A)())return{src:e.url};if((0,s.isBlobURL)(e.url)||/^https?:\/\/localhost/.test(e.url)||/^https?:\/\/.*\.local\//.test(e.url)||(0,r.isWoASite)()&&(0,o.pP)())return{src:e.url};const u=e.url.split("?",1)[0],{height:h,width:m}=e,{layoutStyle:g}=t,f=n||(0,r.isSimpleSite)()?p:a.A;let b;if(l(g)&&m&&h){const e=Math.min(c.rK,m,h);b=f(u,{resize:`${e},${e}`})}else b=f(u);let v=[];if(l(g)){const e=Math.min(600,m,h),t=Math.min(c.rK,m,h);for(let n=e;n<t;n+=300){const e=f(u,{resize:`${n},${n}`,strip:"info"});e&&v.push(`${e} ${n}w`)}}else{const e=Math.min(600,m),t=Math.min(c.rK,m);for(let n=e;n<t;n+=300){const e=f(u,{strip:"info",width:n});e&&v.push(`${e} ${n}w`)}}return v=v.join(","),Object.assign({src:b},v&&{srcSet:v})}function d(){return!0===(0,r.getScriptData)()?.jetpack?.flags?.skipPhotonDomain}function p(e,t={}){const n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object.assign(new URL(e,window.location.href),{username:"",password:"",port:"",search:"",hash:""});for(const[e,o]of Object.entries(t))r.searchParams.set(Object.hasOwn(n,e)?n[e]:e,o);return r.toString()}},98746(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(375),c=n(48558),l=(n(20744),n(10790));const __=a.__,u=({tockUrl:e,setEditedUrl:t,setUrl:n,cancel:r})=>{const a=(0,s.useRef)(!0),u=(0,s.useRef)(!1),d=e=>{n(),u.current=!0,e()};return(0,l.jsx)(o.ToolbarGroup,{children:(0,l.jsx)(o.Dropdown,{popoverProps:{variant:"toolbar"},onClose:()=>u.current?u.current=!1:r(),placement:"bottom-start",renderToggle:({isOpen:t,onToggle:n})=>(!a.current||t||e||(a.current=!1,n()),(0,l.jsx)(o.ToolbarButton,{className:"components-toolbar__control",label:__("Edit Tock business name","jetpack"),onClick:()=>{n(),t&&r()},children:__("Edit","jetpack")})),renderContent:({onClose:n})=>(0,l.jsx)(o.BaseControl,{className:"jetpack-tock-url-settings",help:(0,s.createInterpolateElement)(__("The Tock business can be found in the URL of your public Tock page. For example: www.exploretock.com/<b>myname</b>","jetpack"),{b:(0,l.jsx)("strong",{})}),__nextHasNoMarginBottom:!0,children:(0,l.jsxs)("div",{className:"jetpack-tock-url-input-wrapper",children:[(0,l.jsx)(o.TextControl,{placeholder:__("Add Tock business name","jetpack"),onChange:t,value:e,onKeyDownCapture:t=>((t,n)=>{const{keyCode:o}=t;o===c.ENTER&&""!==e&&(t.preventDefault(),d(n)),o===c.ESCAPE&&(t.preventDefault(),r(),n())})(t,n),className:"jetpack-tock-url-input",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,l.jsx)("div",{className:"jetpack-tock-url-input-action",children:(0,l.jsx)(o.Button,{type:"submit",label:__("Submit","jetpack"),icon:i.A,className:"jetpack-tock-url-input-submit",onClick:()=>d(n)})})]})})})})},d=({url:e,popoverAnchor:t})=>{const n=`\n\t\t<div id="Tock_widget_container" data-tock-display-mode="Button" data-tock-color-mode="Blue" data-tock-locale="en-us" data-tock-timezone="America/New_York" style="display:inline-block;"></div>\n\t\t<script src="https://www.exploretock.com/tock.js" async><\/script>\n\t\t<script>\n\t\t\t!function(t,o){if(!t.tock){var e=t.tock=function(){e.callMethod?\n\t\t\t e.callMethod.apply(e,arguments):e.queue.push(arguments)};t._tock||(t._tock=e),\n\t\t\t e.push=e,e.loaded=!0,e.version='1.0',e.queue=[];}}(window,document);\n\t\t\ttock('init', '${e}');\n\t\t<\/script>\n\t`;return(0,l.jsxs)("div",{ref:t,children:[(0,l.jsx)(o.SandBox,{html:n},`tock-${e}`),(0,l.jsx)("div",{className:"block-library-embed__interactive-overlay"})]})};function p({attributes:e,setAttributes:t,isSelected:n}){const o=e.url??"",[a,i]=(0,s.useState)(o),c=(0,s.useCallback)(()=>{i(o)},[o]);return(0,s.useEffect)(()=>{n||c()},[n,c]),(0,l.jsxs)("div",{...(0,r.useBlockProps)(),children:[(0,l.jsx)(r.BlockControls,{children:(0,l.jsx)(u,{tockUrl:a,setEditedUrl:i,setUrl:()=>{const e=a.replace(/.*exploretock.com\//,"");i(e),t({url:e})},cancel:c})}),(0,l.jsx)(d,{url:o})]})}},94881(e,t,n){"use strict";var r=n(94375),o=n(86525),s=n(98746),a=n(10790);(0,r.M)(o,{edit:s.A,save:()=>(0,a.jsx)("div",{id:"Tock_widget_container","data-tock-display-mode":"Button","data-tock-color-mode":"Blue","data-tock-locale":"en-us","data-tock-timezone":"America/New_York"})})},66096(e,t,n){"use strict";n.d(t,{G:()=>c,O:()=>i});var r=n(56427),o=n(86087),s=n(27723),a=n(10790);const __=s.__;function i({attributes:e,setAttributes:t,postTypesData:n,toggleAttributes:i,setToggleAttributes:c}){const{displayAuthor:l,displayContext:u,displayDate:d,displayThumbnail:p,period:h,postsToShow:m}=e,[g,f]=(0,o.useState)(!1);if(!n)return;const b=[{label:__("Last 24 hours","jetpack"),value:"1"},{label:__("Last 48 hours","jetpack"),value:"2"},{label:__("Last 7 days","jetpack"),value:"7"},{label:__("Last 30 days","jetpack"),value:"30"},{label:__("Last 90 days","jetpack"),value:"90"},{label:__("Last year","jetpack"),value:"365"},{label:__("All-time","jetpack"),value:"all-time"}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.PanelBody,{title:__("Block settings","jetpack"),children:[(0,a.jsx)(r.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Number of items","jetpack"),value:m,onChange:e=>t({postsToShow:Math.min(e,10)}),min:1,max:10}),(0,a.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:__("Stats period","jetpack"),value:h,onChange:e=>t({period:e}),options:b})]}),(0,a.jsxs)(r.PanelBody,{title:__("Items to display","jetpack"),children:[n.map(e=>{return(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,s.sprintf)(/* translators: %s: Content type (eg. post/page). */ | |
| 137 | +__("Display %s","jetpack"),e.label.toLowerCase()),checked:i[e.id]||!1,onChange:(n=e.id,e=>{const r={...i,[n]:e};if(Object.values(r).every(e=>!1===e))return f(!0);c(r),t({postTypes:r}),f(!1)})},e.id);var n}),g&&(0,a.jsx)(r.Notice,{className:"jetpack-top-posts__error",status:"error",isDismissible:!1,children:__("At least one item must be selected.","jetpack")})]}),(0,a.jsxs)(r.PanelBody,{title:__("Metadata settings","jetpack"),children:[(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display date","jetpack"),checked:d,onChange:e=>t({displayDate:e})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display author","jetpack"),checked:l,onChange:e=>t({displayAuthor:e})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display context","jetpack"),checked:u,onChange:e=>t({displayContext:e})}),(0,a.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Display thumbnail","jetpack"),checked:p,onChange:e=>t({displayThumbnail:e})})]})]})}function c({attributes:e,setAttributes:t}){const{layout:n}=e,o=[{icon:"grid-view",title:__("Grid view","jetpack"),onClick:()=>t({layout:"grid"}),isActive:"grid"===n},{icon:"list-view",title:__("List view","jetpack"),onClick:()=>t({layout:"list"}),isActive:"list"===n}];return(0,a.jsx)(r.ToolbarGroup,{controls:o})}},45026(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(85985),o=n(1455),s=n.n(o),a=n(94715),i=n(86087),c=n(13022),l=n(10798),u=n(66096),d=n(15909),p=(n(51378),n(74192),n(10790));function h(e){return(0,p.jsxs)("div",{className:"jetpack-top-posts-item",children:[e.displayThumbnail&&e.thumbnail&&(0,p.jsx)("a",{className:"jetpack-top-posts-thumbnail-link",children:(0,p.jsx)("img",{className:"jetpack-top-posts-thumbnail",src:e.thumbnail,alt:e.title,rel:"nofollow noopener noreferrer",target:"_blank"})}),e.displayThumbnail&&!e.thumbnail&&(0,p.jsx)("a",{className:"jetpack-top-posts-thumbnail-link",children:(0,p.jsx)("div",{className:"jetpack-top-posts-mock-thumbnail"})}),(0,p.jsx)("span",{className:"jetpack-top-posts-title",children:(0,p.jsx)("a",{children:e.title})}),e.displayDate&&(0,p.jsx)("span",{className:"jetpack-top-posts-date has-small-font-size",children:e.date}),e.displayAuthor&&(0,p.jsx)("span",{className:"jetpack-top-posts-author has-small-font-size",children:e.author}),e.displayContext&&e.context&&(0,p.jsx)("span",{className:"jetpack-top-posts-context has-small-font-size",children:(0,p.jsx)("a",{children:e.context[0].cat_name})})]})}const m=function({attributes:e,setAttributes:t}){const{isLoadingModules:n,isChangingStatus:o,isModuleActive:m,changeStatus:g}=(0,r.q7)("stats"),f=(0,a.useBlockProps)(),{className:b}=f,[v,y]=(0,i.useState)(),[k,w]=(0,i.useState)(),[x,_]=(0,i.useState)(),[j,C]=(0,i.useState)({}),{displayAuthor:A,displayContext:S,displayDate:E,displayThumbnail:T,layout:N,period:P,postsToShow:B,postTypes:I}=e;let M;return(0,i.useEffect)(()=>{s()({path:"/wpcom/v2/post-types"}).then(e=>{_(e),e.forEach(e=>{I&&I[e.id]&&C(t=>({...t,[e.id]:!0}))})})},[I]),(0,i.useEffect)(()=>{m&&s()({path:`/wpcom/v2/top-posts?period=${P}`}).then(e=>{y(e)})},[P,m]),(0,i.useEffect)(()=>{const e=v;if(!e)return;const t=[];for(let n=0;t.length!==B&&(e[n]&&I[e[n].type]&&t.push((0,p.jsx)(h,{title:e[n].title,date:e[n].date,author:e[n].author,thumbnail:e[n].thumbnail,context:e[n].context,displayDate:E,displayAuthor:A,displayThumbnail:T,displayContext:S},"jetpack-top-posts-"+e[n].id)),e[n]);n++);w(t)},[A,S,E,T,v,I,B,w]),M=m||n?k?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.InspectorControls,{children:(0,p.jsx)(u.O,{attributes:e,setAttributes:t,toggleAttributes:j,setToggleAttributes:C,postTypesData:x})}),(0,p.jsx)(a.BlockControls,{children:(0,p.jsx)(u.G,{attributes:e,setAttributes:t})}),(0,p.jsx)("div",{"data-item-count":k.length,children:(0,p.jsx)("div",{className:"jetpack-top-posts-wrapper",children:k})})]}):(0,p.jsx)(l.G,{}):(0,p.jsx)(d.k,{className:b,changeStatus:g,isLoading:o}),(0,p.jsx)("div",{...f,className:(0,c.A)(b,`is-${N}-layout`),children:M})}},99883(e,t,n){"use strict";var r=n(74997),o=n(94375),s=n(35075),a=n(45026);(0,o.M)(s,{edit:a.A,save:()=>null,transforms:{from:[{type:"block",blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"top-posts"===e,transform:({instance:e})=>{const t=e.raw.title?(0,r.createBlock)("core/heading",{content:e.raw.title,level:3}):null,n=(0,r.createBlock)("jetpack/top-posts",{displayAuthor:!1,displayDate:!1,displayThumbnail:"text"!==e.raw.display,layout:"grid"===e.raw.display?"grid":"list",period:"2",postsToShow:e.raw.count,postTypes:e.raw.types.reduce((e,t)=>(e[t]=!0,e),{})});return t?[t,n]:n}}]}})},15909(e,t,n){"use strict";n.d(t,{k:()=>u});var r=n(97999),o=n(85985),s=n(56427),a=n(27723),i=n(57273),c=n(35075),l=n(10790);const __=a.__,u=({className:e,isLoading:t,changeStatus:n})=>{const a=(0,r.isWoASite)()?"https://wordpress.com/support/stats/":"https://jetpack.com/support/jetpack-stats/";return(0,l.jsx)("div",{className:e,children:(0,l.jsxs)(s.Placeholder,{icon:(0,o.sh)(c),instructions:__("You'll need to activate the Stats module to use this block.","jetpack"),label:c.title,children:[(0,l.jsx)(s.Button,{disabled:t,isBusy:t,onClick:()=>n(!0),variant:"secondary",children:t?__("Activating Stats","jetpack"):__("Activate Stats","jetpack",0)}),(0,l.jsx)("div",{className:"components-placeholder__learn-more",children:(0,l.jsx)(i.N,{openInNewTab:!0,href:a,children:__("Learn more about the Stats module.","jetpack")})})]})})}},33983(e,t,n){"use strict";n.d(t,{Z:()=>s,f:()=>a});var r=n(86087),o=n(10790);const s=(0,r.createContext)(),a=({onFilesSelected:e,onMediaItemSelected:t,onUploadFinished:n,children:r})=>(0,o.jsx)(s.Provider,{value:{onFilesSelected:e,onMediaItemSelected:t,onUploadFinished:n},children:r})},74628(e,t,n){"use strict";n.d(t,{C1:()=>r,NF:()=>o});const r=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],o={PUBLIC:0,PRIVATE:1,SITE_DEFAULT:2}},59257(e,t,n){"use strict";n.d(t,{A:()=>r});const r={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"}},support:{reusable:!1},save:n(36564).A,isDeprecation:!0}},36564(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(10790);function s({attributes:e}){const{caption:t,guid:n}=e;if(!n)return null;const s=`https://videopress.com/v/${n}`;return(0,o.jsxs)("figure",{className:"wp-block-embed is-type-video is-provider-videopress",children:[(0,o.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${s}\n`}),!r.RichText.isEmpty(t)&&(0,o.jsx)(r.RichText.Content,{tagName:"figcaption",value:t})]})}},21440(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(37037),o=n(31481);const s={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsInline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},src:{type:"string"},videoPressClassNames:{type:"string"},align:{type:"wide"}},support:{reusable:!1},isEligible:({videoPressClassNames:e,guid:t})=>t&&void 0===e,migrate:e=>{const{className:t,videoPressClassNames:n}=e;return{...e,...(0,o.j)(t,n)}},save:r.A,isDeprecation:!0}},37037(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(77473),s=n(10790);function a(e){const{attributes:{autoplay:t,caption:n,controls:a,guid:i,loop:c,muted:l,poster:u,preload:d,videoPressClassNames:p}={}}=e;if(!i)return null;const h=(0,o.e)(i,{autoplay:t,controls:a,loop:c,muted:l,poster:u,preload:d});return(0,s.jsxs)("figure",{className:p,children:[(0,s.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${h}\n`}),!r.RichText.isEmpty(n)&&(0,s.jsx)(r.RichText.Content,{tagName:"figcaption",value:n})]})}},77473(e,t,n){"use strict";n.d(t,{e:()=>o});var r=n(93832);const o=(e,{autoplay:t,controls:n,loop:o,muted:s,poster:a,preload:i})=>{if(!e)return null;const c={...t&&{autoPlay:!0},...!n&&{controls:!1},...o&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...a&&{posterUrl:a},..."none"!==i&&{preloadContent:i}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,c)}},31481(e,t,n){"use strict";n.d(t,{j:()=>a});var r=n(36536),o=n.n(r);const s=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.77",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],a=(e,t)=>{const n=s.map(e=>e.className),r=new(o())(e);r.remove(...n,"wp-block-embed","is-type-video","is-provider-videopress");const a=new(o())(e);return a.add(t),a.remove(...r),{className:r.value,videoPressClassNames:a.value}}},54727(e,t,n){"use strict";n.d(t,{A:()=>r});const r={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,save:n(36478).A,isDeprecation:!0}},36478(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(13022),s=n(70222),a=n(10790);function i(e){const{attributes:{autoplay:t,caption:n,controls:i,guid:c,loop:l,muted:u,playsinline:d,poster:p,preload:h,videoPressClassNames:m,className:g,align:f,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:y}={}}=e,k=r.useBlockProps.save({className:(0,o.A)("wp-block-video",g,m,{[`align${f}`]:f})}),w=(0,s.e)(c,{autoplay:t,controls:i,loop:l,muted:u,playsinline:d,poster:p,preload:h,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:y});return(0,a.jsxs)("figure",{...k,children:[(0,a.jsx)("div",{className:"wp-block-embed__wrapper",children:`\n${w}\n`}),!r.RichText.isEmpty(n)&&(0,a.jsx)(r.RichText.Content,{tagName:"figcaption",value:n})]})}},70222(e,t,n){"use strict";n.d(t,{e:()=>o});var r=n(93832);const o=(e,{autoplay:t,controls:n,loop:o,muted:s,playsinline:a,poster:i,preload:c,seekbarColor:l,seekbarPlayedColor:u,seekbarLoadingColor:d})=>{if(!e)return null;const p={resizeToParent:!0,...t&&{autoPlay:!0},...!n&&{controls:!1},...o&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...a&&{playsinline:!0},...i&&{posterUrl:i},..."none"!==c&&{preloadContent:c},...""!==l&&{sbc:l},...""!==u&&{sbpc:u},...""!==d&&{sblc:d}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,p)}},65390(e,t,n){"use strict";n.d(t,{A:()=>r});const r={attributes:{autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string"},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"}},support:{reusable:!1},isEligible:e=>e.guid,migrate:e=>({...e,useAverageColor:!1}),save:n(34135).A,isDeprecation:!0}},34135(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(13022),s=n(9847),a=n(10790);function i(e){const{attributes:{autoplay:t,caption:n,controls:i,guid:c,loop:l,muted:u,playsinline:d,poster:p,preload:h,videoPressClassNames:m,className:g,align:f,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:y,maxWidth:k}={}}=e,w=r.useBlockProps.save({className:(0,o.A)("wp-block-video",g,m,{[`align${f}`]:f})}),x=(0,s.e)(c,{autoplay:t,controls:i,loop:l,muted:u,playsinline:d,poster:p,preload:h,seekbarColor:b,seekbarPlayedColor:v,seekbarLoadingColor:y});let _={};return k&&k.length>0&&"100%"!==k&&(_={maxWidth:k,margin:"auto"}),(0,a.jsxs)("figure",{...w,children:[(0,a.jsx)("div",{className:"wp-block-embed__wrapper",style:_,children:`\n${x}\n`}),!r.RichText.isEmpty(n)&&(0,a.jsx)(r.RichText.Content,{tagName:"figcaption",value:n})]})}},9847(e,t,n){"use strict";n.d(t,{e:()=>o});var r=n(93832);const o=(e,{autoplay:t,controls:n,loop:o,muted:s,playsinline:a,poster:i,preload:c,seekbarColor:l,seekbarPlayedColor:u,seekbarLoadingColor:d})=>{if(!e)return null;const p={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!n&&{controls:!1},...o&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...a&&{playsinline:!0},...i&&{posterUrl:i},..."none"!==c&&{preloadContent:c},...""!==l&&{sbc:l},...""!==u&&{sbpc:u},...""!==d&&{sblc:d}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,p)}},85719(e,t,n){"use strict";n.d(t,{A:()=>P});var r=n(35750),o=n(1455),s=n.n(o),a=n(63162),i=n(94715),c=n(56427),l=n(29491),u=n(47143),d=n(86087),p=n(89877),h=n(27723),m=n(13109),g=n(57273),f=n(13022),b=n(33983),v=n(74628),y=n(64655),k=n(57636),w=n(63739),x=n(51742),_=n(9821),j=n(73475),C=n(17900),A=n(47960),S=n(10790);const __=h.__,_x=h._x,E=["image"],T=e=>{const t=(0,i.useBlockProps)({className:"resumable-upload"}),{onChangeTitle:n,title:o,filename:s,onSelectPoster:a,onRemovePoster:p,videoPosterImageData:h,fileForUpload:g,isUploadComplete:f,onDismissEditor:v,onSave:y,onVideoFrameSelected:w}=e,x=(0,u.useSelect)(e=>e("core/editor").isSavingPost(),[]),_=(0,l.usePrevious)(x);return(0,d.useEffect)(()=>{x&&!_&&y()},[x,_,y]),(0,S.jsx)(b.f,{onUploadFinished:e.uploadFinished,children:(0,S.jsxs)(d.Fragment,{children:[e.blockSettings,(0,S.jsxs)("div",{...t,children:[(0,S.jsxs)("div",{className:"uploader-block__logo",children:[(0,S.jsx)(m.A,{icon:r.KZ}),(0,S.jsx)("div",{className:"uploader-block__logo-text",children:__("VideoPress","jetpack")})]}),(0,S.jsx)(j.d,{file:g,filename:s,title:o,onChangeTitle:n,onSelectPoster:a,onRemovePoster:p,videoPosterImageData:h,onVideoFrameSelected:w}),!f&&(0,S.jsx)(k.A,{file:g}),f&&(0,S.jsxs)("div",{className:"uploader-block__upload-complete",children:[(0,S.jsxs)("span",{children:[__("Upload Complete!","jetpack")," 🎉"]}),(0,S.jsx)(c.Button,{variant:"primary",onClick:v,children:__("Done","jetpack")})]})]})]})})},N=e=>{const{scripts:t}=e,{html:n,interactive:r,caption:o,isSelected:s,hideOverlay:a,attributes:l,setAttributes:u,shouldRenderLoadingBlock:p}=e,{align:h,className:m,videoPressClassNames:g,maxWidth:b}=l,v=(0,i.useBlockProps)({className:(0,f.A)("wp-block-video",m,g,{[`align${h}`]:h})}),k=(0,d.useMemo)(()=>(0,w.e)(t),[t]);if(p)return(0,S.jsx)("figure",{...v,children:(0,S.jsx)(y.A,{text:__("Generating preview…","jetpack")})});return(0,S.jsxs)("figure",{...v,children:[(0,S.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,S.jsx)(c.ResizableBox,{enable:{top:!1,bottom:!1,left:!0,right:!0},maxWidth:"100%",size:{width:b},style:{margin:"auto"},onResizeStop:(e,t,n)=>{let r=getComputedStyle(n).width;if(null!==n.parentElement){r===getComputedStyle(n.parentElement).width&&(r="100%")}u({maxWidth:r})},children:(0,S.jsx)(c.SandBox,{html:n,scripts:k,type:g,allowSameOrigin:!0})})}),!r&&(0,S.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:a}),(!i.RichText.isEmpty(o)||s)&&(0,S.jsx)(i.RichText,{tagName:"figcaption",placeholder:__("Write caption…","jetpack"),value:o,onChange:e=>u({caption:e}),inlineToolbar:!0})]})},P=(0,l.createHigherOrderComponent)((0,l.compose)([(0,u.withSelect)((e,t)=>{const{autoplay:n,controls:r,fileForImmediateUpload:o,guid:s,loop:i,muted:c,playsinline:l,poster:u,preload:d,seekbarColor:p,seekbarLoadingColor:h,seekbarPlayedColor:m,src:g,useAverageColor:f}=t.attributes,{getEmbedPreview:b,isRequestingEmbedPreview:v}=e("core"),y=(0,C.e)(s,{autoplay:n,controls:r,loop:i,muted:c,playsinline:l,poster:u,preload:d,seekbarColor:p,seekbarLoadingColor:h,seekbarPlayedColor:m,useAverageColor:f}),k=!!y&&b(y),w=!!y&&v(y),x=!!window.videoPressResumableEnabled;return{fileForImmediateUpload:o,isFetchingPreview:w,isUploading:!x&&(0,a.isBlobURL)(g),preview:k,resumableUploadEnabled:x,url:y}}),(0,u.withDispatch)(e=>({invalidateCachedEmbedPreview:t=>{e("core/data").invalidateResolution("core","getEmbedPreview",[t])}})),l.withInstanceId,e=>class extends d.Component{constructor(e){super(...arguments),this.state={media:null,isFetchingMedia:!1,fallback:!1,interactive:!1,rating:null,lastRequestedMediaId:null,isUpdatingRating:!1,allowDownload:null,privacySetting:v.NF.SITE_DEFAULT,isUpdatingAllowDownload:!1,fileForUpload:e.fileForImmediateUpload,isUpdatingIsPrivate:!1,isEditingWhileUploading:!1,isUploadComplete:!1,lastPosterValueSource:"",pendingVideoAttributes:null},this.posterImageButton=(0,d.createRef)(),this.previewCacheReloadTimer=null,this.previewFailuresCount=0}static getDerivedStateFromProps(e,t){const n={};if(!e.isSelected&&t.interactive&&(n.interactive=!1),t.fileForUpload&&!t.isEditingWhileUploading){null!==t.fileForUpload&&t.fileForUpload instanceof File&&(n.isEditingWhileUploading=!0)}else t.pendingVideoAttributes&&(n.isEditingWhileUploading=!0);return Object.keys(n).length?n:null}hideOverlay=()=>{this.setState({interactive:!0})};async componentDidMount(){const{guid:e}=this.props.attributes;e?this.setTracks(e):await this.setGuid(),this.setRatingAndAllowDownload()}setRatingAndAllowDownload=async()=>{const e=this.props?.attributes?.id,t=await this.requestMedia(e);let n=t?.jetpack_videopress?.rating;const r=t?.jetpack_videopress?.allow_download,o=t?.jetpack_videopress?.privacy_setting??v.NF.SITE_DEFAULT;n&&("X-18"===n&&(n="R-17"),this.setState({rating:n})),void 0!==r&&this.setState({allowDownload:!!r}),void 0!==o&&this.setState({privacySetting:o})};async componentDidUpdate(e){const{attributes:t,invalidateCachedEmbedPreview:n,preview:r,setAttributes:o,url:s,isFetchingPreview:a}=this.props;t.id!==e.attributes.id&&(await this.setGuid(),this.setRatingAndAllowDownload());let i=!1;if(s&&s!==e.url&&(n(s),i=!0),r){const e=(0,A.Zz)(r.html,(0,f.A)("wp-block-embed","is-type-video","is-provider-videopress"),!1);this.previewFailuresCount=0,o({videoPressClassNames:e})}else a||i||!this.props.attributes.guid||this.schedulePreviewCacheReload()}schedulePreviewCacheReload=()=>{const{invalidateCachedEmbedPreview:e,url:t}=this.props;null===this.previewCacheReloadTimer&&this.previewFailuresCount<5&&(this.previewFailuresCount++,this.previewCacheReloadTimer=setTimeout(()=>{e(t),this.previewCacheReloadTimer=null},2e3*this.previewFailuresCount))};fallbackToCore=()=>{this.props.setAttributes({guid:void 0}),this.setState({fallback:!0})};setGuid=async()=>{const{attributes:e,setAttributes:t}=this.props,{id:n}=e;if(n)try{const e=await this.requestMedia(n);if(null===e)return;const r=e?.jetpack_videopress?.guid;r?(t({guid:r}),this.setTracks(r)):this.fallbackToCore()}catch{this.setState({isFetchingMedia:!1}),this.fallbackToCore()}else t({guid:void 0})};requestMedia=async e=>{if(!e)return null;if(null!==this.state.media&&this.state.lastRequestedMediaId===e)return this.state.media;this.setState({isFetchingMedia:!0});const t=await s()({path:`/wp/v2/media/${e}`}).catch(()=>(this.setState({fallback:!0}),null)).finally(()=>{this.setState({isFetchingMedia:!1})}),{id:n}=this.props.attributes;return e!==n?null:(this.setState({media:t,lastRequestedMediaId:e}),t)};setTracks=e=>{const{setAttributes:t}=this.props;e&&s()({url:`https://public-api.wordpress.com/rest/v1.1/videos/${e}`,credentials:"omit",global:!0}).then(e=>{const n=[];Object.keys(e.tracks).forEach(t=>{for(const r in e.tracks[t]){const o=e.tracks[t][r];n.push({src:o.src,kind:t,srcLang:r,label:o.label})}}),t({videoPressTracks:n})})};switchToEditing=()=>{this.props.setAttributes({id:void 0,guid:void 0,src:void 0})};onSelectPoster=e=>{const{setAttributes:t}=this.props;t({poster:e.url}),this.setState({videoPosterImageData:e})};onRemovePoster=()=>{const{setAttributes:e}=this.props;e({poster:""}),this.setState({videoPosterImageData:null}),this.posterImageButton.current.focus()};toggleAttribute=e=>t=>{this.props.setAttributes({[e]:t})};getAutoplayHelp=e=>e?__("Note: Autoplaying videos may cause usability issues for some visitors.","jetpack"):null;getPreloadHelp(){const{attributes:e}=this.props;return"auto"===e.preload?__("Note: Automatically downloading videos may cause issues if there are many videos displayed on the same page.","jetpack"):null}getPrivacySettingHelp=e=>{const t=parseInt(e,10);return v.NF.PRIVATE===t?__("Restrict views to members of this site","jetpack"):v.NF.PUBLIC===t?__("Video can be viewed by anyone","jetpack"):__("Follow the site privacy setting","jetpack")};renderControlLabelWithTooltip(e,t){return(0,S.jsx)(c.Tooltip,{text:t,position:"top",children:(0,S.jsx)("span",{children:e})})}onChangeRating=e=>{const t=this.state.rating;"X-18"===e&&(e="R-17"),-1!==["G","PG-13","R-17"].indexOf(e)&&this.updateMetaApiCall({rating:e},()=>this.setState({isUpdatingRating:!0,rating:e}),()=>this.setState({rating:t}),()=>this.setState({isUpdatingRating:!1}))};onChangeAllowDownload=e=>{const t=this.state.allowDownload;this.updateMetaApiCall({allow_download:e?1:0},()=>this.setState({isUpdatingAllowDownload:!0,allowDownload:e}),()=>this.setState({allowDownload:t}),()=>this.setState({isUpdatingAllowDownload:!1}))};onChangePrivacySetting=e=>{const t=this.state.privacySetting;this.updateMetaApiCall({privacy_setting:e},()=>this.setState({isUpdatingPrivacySetting:!0,privacySetting:e}),()=>this.setState({privacySetting:t}),()=>this.setState({isUpdatingPrivacySetting:!1}))};updateMetaApiCall=(e,t,n,r)=>{const{invalidateCachedEmbedPreview:o,url:a}=this.props,{id:i}=this.props.attributes;if(!i)return;t();const c={id:i};Object.assign(c,e),s()({path:"/wpcom/v2/videopress/meta",method:"POST",data:c}).then(e=>{status in e&&200!==e.status&&n()}).catch(()=>n()).finally(()=>{r(),o(a)})};render(){const{attributes:t,instanceId:n,isFetchingPreview:r,isUploading:o,preview:a,resumableUploadEnabled:l,setAttributes:u}=this.props,{fallback:m,fileForUpload:f,isFetchingMedia:k,isUpdatingRating:w,interactive:j,rating:C,allowDownload:P,privacySetting:B,isUpdatingAllowDownload:I,isUpdatingPrivacySetting:M,videoPosterImageData:R}=this.state,{autoplay:L,caption:D,controls:F,guid:O,loop:z,muted:U,playsinline:H,poster:$,preload:V,useAverageColor:q,videoPressTracks:G,isVideoPressExample:W,src:Z}=t;if(W&&Z)return(0,S.jsx)("img",{src:Z,alt:D});const J=`video-block__poster-image-description-${n}`,K=!(!$&&!R),Y=(0,S.jsxs)(d.Fragment,{children:[(0,S.jsx)(i.BlockControls,{group:"block",children:(0,S.jsx)(_.A,{tracks:G,onChange:e=>{u({videoPressTracks:e})},guid:O})}),(0,S.jsx)(i.BlockControls,{children:(0,S.jsx)(c.ToolbarGroup,{children:(0,S.jsx)(c.ToolbarButton,{className:"components-icon-button components-toolbar__control",text:__("Replace","jetpack"),onClick:this.switchToEditing})})}),(0,S.jsxs)(i.InspectorControls,{children:[(0,S.jsxs)(c.PanelBody,{title:__("Video Settings","jetpack"),children:[(0,S.jsx)(c.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Autoplay","jetpack"),/* translators: Tooltip describing the "autoplay" option for the VideoPress player */ | |
| 138 | +__("Start playing the video as soon as the page loads","jetpack")),onChange:this.toggleAttribute("autoplay"),checked:L,help:this.getAutoplayHelp,__nextHasNoMarginBottom:!0}),(0,S.jsx)(c.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Loop","jetpack"),/* translators: Tooltip describing the "loop" option for the VideoPress player */ | |
| 139 | +__("Restarts the video when it reaches the end","jetpack")),onChange:this.toggleAttribute("loop"),checked:z,__nextHasNoMarginBottom:!0}),(0,S.jsx)(c.ToggleControl,{label:__("Muted","jetpack"),onChange:this.toggleAttribute("muted"),checked:U,__nextHasNoMarginBottom:!0}),(0,S.jsx)(c.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Playback Controls","jetpack"),/* translators: Tooltip describing the "controls" option for the VideoPress player */ | |
| 140 | +__("Display the video playback controls","jetpack")),onChange:this.toggleAttribute("controls"),checked:F,__nextHasNoMarginBottom:!0}),(0,S.jsx)(c.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Play Inline","jetpack"),/* translators: Tooltip describing the "playsinline" option for the VideoPress player */ | |
| 141 | +__("Play the video inline instead of full-screen on mobile devices","jetpack")),onChange:this.toggleAttribute("playsinline"),checked:H,__nextHasNoMarginBottom:!0}),(0,S.jsx)(c.SelectControl,{label:this.renderControlLabelWithTooltip(__("Preload","jetpack"),/* translators: Tooltip describing the "preload" option for the VideoPress player */ | |
| 142 | +__("Content to dowload before the video is played","jetpack")),value:V??"",onChange:e=>u({preload:e}),options:[{value:"auto",label:_x("Auto","VideoPress preload setting","jetpack")},{value:"metadata",label:_x("Metadata","VideoPress preload setting","jetpack")},{value:"none",label:_x("None","VideoPress preload setting","jetpack")}],help:this.getPreloadHelp(),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,S.jsx)(i.MediaUploadCheck,{children:(0,S.jsxs)(c.BaseControl,{className:"editor-video-poster-control",children:[(0,S.jsx)(c.BaseControl.VisualLabel,{children:__("Poster Image","jetpack")}),(0,S.jsx)(i.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:this.onSelectPoster,allowedTypes:E,render:({open:e})=>(0,S.jsx)(c.Button,{variant:"secondary",onClick:e,ref:this.posterImageButton,"aria-describedby":J,children:K?__("Replace image","jetpack",0):__("Select Poster Image","jetpack")})}),(0,S.jsx)("p",{id:J,hidden:!0,children:K?(0,h.sprintf)(/* translators: %s: an image URL. */ | |
| 143 | +__("The current poster image url is %s","jetpack"),$??R):__("There is no poster image currently selected","jetpack")}),K&&(0,S.jsx)(c.Button,{onClick:this.onRemovePoster,variant:"link",isDestructive:!0,children:__("Remove Poster Image","jetpack")})]})}),(0,d.createInterpolateElement)(__("Send us your <a>VideoPress feedback</a>","jetpack"),{a:(0,S.jsx)(g.N,{openInNewTab:!0,href:"https://automattic.survey.fm/videopress-feedback"})})]}),(0,S.jsx)(x.A,{attributes:t,setAttributes:u,useAverageColor:q,toggleAttribute:this.toggleAttribute}),(0,S.jsxs)(c.PanelBody,{title:__("Video File Settings","jetpack"),children:[(0,S.jsx)(c.SelectControl,{label:_x("Rating","The age rating for this video.","jetpack"),value:C??"",disabled:k||w,options:[{label:_x("G",'Video rating for "General Audiences".',"jetpack"),value:"G"},{label:_x("PG-13",'Video rating for "Parental Guidance", unsuitable for children under 13.',"jetpack"),value:"PG-13"},{label:_x("R",'Video rating for "Restricted", not recommended for children under 17.',"jetpack"),value:"R-17"}],onChange:this.onChangeRating,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,S.jsx)(c.ToggleControl,{label:this.renderControlLabelWithTooltip(__("Allow download","jetpack"),/* translators: Tooltip describing the "allow download" option for the VideoPress player */ | |
| 144 | +__("Display download option and allow viewers to download this video","jetpack")),onChange:this.onChangeAllowDownload,checked:P,disabled:k||I,__nextHasNoMarginBottom:!0}),(0,S.jsx)(c.SelectControl,{label:__("Video Privacy","jetpack"),help:this.getPrivacySettingHelp(B),onChange:this.onChangePrivacySetting,value:B??"",options:[{value:v.NF.SITE_DEFAULT,label:_x("Site Default","VideoPress privacy setting","jetpack")},{value:v.NF.PUBLIC,label:_x("Public","VideoPress privacy setting","jetpack")},{value:v.NF.PRIVATE,label:_x("Private","VideoPress privacy setting","jetpack")}],disabled:k||M,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})]})]}),Q=e=>{this.setState({fileForUpload:e[0]})},X=e=>{e&&e.url?(this.props.setAttributes({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0}),e.videopress_guid&&this.props.setAttributes({guid:e.videopress_guid})):u({src:void 0,id:void 0,poster:void 0})},ee=()=>"videoPressUploadPoster"in window,te=(0,p.escapeHTML)(f?(0,A.T3)(f.name):""),ne=({mediaId:e,guid:t,src:n})=>{this.setState({title:this.state.title??te,fileForUpload:null,isUploadComplete:!!e,isEditingWhileUploading:!!e&&this.state.isEditingWhileUploading,pendingVideoAttributes:e&&t&&n?{id:e,guid:t,src:n}:null})},re=e=>{this.setState({title:e})},oe=e=>{this.setState({videoFrameSelectedInMillis:e,videoPosterImageData:null})},se=()=>{const e=this.state.title;this.updateMetaApiCall({title:e},()=>this.setState({isUpdatingTitle:!0,title:e}),()=>this.setState({title:e}),()=>this.setState({isUpdatingTitle:!1}))},ae=()=>de({at_time:this.state.videoFrameSelectedInMillis,is_millisec:!0}),ie=()=>de({poster_attachment_id:this.state.videoPosterImageData.id}),ce=e=>{e.generating?le():ue(e.poster)},le=()=>{setTimeout(()=>{(ee()?window.videoPressGetPoster(O):s()({path:`/videos/${O}/poster`,apiNamespace:"rest/v1.1",global:!0,method:"GET"})).then(e=>ce(e))},2e3)},ue=e=>{e&&u({poster:e})},de=e=>{if(ee())return window.videoPressUploadPoster(O,e).then(e=>ce(e));s()({path:`/videos/${O}/poster`,apiNamespace:"rest/v1.1",method:"POST",global:!0,data:e}).catch(e=>e)},pe=()=>{const{title:e,videoFrameSelectedInMillis:t}=this.state;e&&se(),R?ie():null!=t&&ae()},he=()=>{this.state.pendingVideoAttributes&&u(this.state.pendingVideoAttributes),this.setState({isEditingWhileUploading:!1,pendingVideoAttributes:null}),pe()};if(null!=f&&f.name||this.state.isEditingWhileUploading){const e=this.state.title??te;return(0,S.jsx)(T,{fileForUpload:f,filename:te,uploadFinished:ne,blockSettings:Y,onDismissEditor:he,isUploadComplete:this.state.isUploadComplete,onSelectPoster:this.onSelectPoster,onRemovePoster:this.onRemovePoster,onChangeTitle:re,title:e,videoPosterImageData:this.state.videoPosterImageData,onVideoFrameSelected:oe,onSave:pe})}const me=k||r,ge=m||o||!O,fe=ge&&!o&&!me,be=(0,S.jsxs)(d.Fragment,{children:[(0,S.jsx)("div",{className:o||me?"":"videopress-block-hide",children:(0,S.jsx)(y.A,{text:o?__("Uploading…","jetpack"):__("Generating preview…","jetpack",0)})}),(0,S.jsx)("div",{className:fe?"":"videopress-block-hide",children:(0,S.jsx)(e,{...this.props})})]});if(ge)return l?(0,S.jsx)(b.f,{onFilesSelected:Q,onMediaItemSelected:X,children:be}):(0,S.jsx)(d.Fragment,{children:be});const{html:ve,scripts:ye}=a||{html:null,scripts:null},ke=me||!a;return(0,S.jsxs)(d.Fragment,{children:[Y,(0,S.jsx)(N,{...this.props,hideOverlay:this.hideOverlay,html:ve,scripts:ye,interactive:j,caption:D,shouldRenderLoadingBlock:ke})]})}}]),"withVideoPressEdit")},15652(e,t,n){"use strict";var r=n(90372),o=n(97999),s=n(85985),a=n(63162),i=n(94715),c=n(75994),l=n(74997),u=n(56427),d=n(29491),p=n(47143),h=n(43656),m=n(86087),g=n(52619),f=n(27723),b=n(33983),v=n(59257),y=n(21440),k=n(54727),w=n(65390),x=n(85719),_=n(81360),j=n(47960),C=n(51983),A=n(7345),S=n(40932),E=(n(591),n(10790));const __=f.__,T=(0,d.createHigherOrderComponent)(e=>t=>{const{name:n}=(0,i.useBlockEditContext)();return"core/video"!==n&&"videopress/video"!==n?(0,E.jsx)(e,{...t}):(0,E.jsxs)(e,{...t,disableDropZone:!0,className:"no-videopress-media-placeholder",children:[(0,E.jsx)(u.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary",children:__("Media Library","jetpack")}),(0,E.jsx)(u.Button,{disabled:!0,className:"components-button no-videopress-disabled-button",variant:"secondary",children:__("Upload","jetpack")})]})},"videoPressNoPlanMediaPlaceholder"),N=(0,d.createHigherOrderComponent)(e=>t=>{const{name:n}=(0,i.useBlockEditContext)();if("core/video"!==n)return(0,E.jsx)(e,{...t});const{onFilesSelected:r,onMediaItemSelected:o}=(0,m.useContext)(b.Z),s={...t,handleUpload:!1,disableDropZone:!0,onSelect:e=>{void 0!==e.length?r(e):o(e)}};return(0,E.jsx)(e,{...s,className:"videopress-media-placeholder"})},"videoPressMediaPlaceholder"),P=(e,t,n)=>("core/video"!==t.name||!n.guid||n.className?.indexOf("wp-block-video")>=0||n.videoPressClassNames||(e.className=e.className.replace("wp-block-video","").trim()),e);(0,g.addFilter)("blocks.registerBlockType","jetpack/videopress",(e,t)=>{if("core/embed"===t)return(e=>{if(!("variations"in e)||"object"!=typeof e.variations)return;const{available:t}=(0,s.FB)("videopress");e.variations.some(e=>"videopress"===e.name&&(t&&(e.scope=[]),e.patterns.push(/^https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?$/i),!0))})(e),e;if("core/video"!==t||e.isDeprecation)return e;const{deprecated:n,edit:r,save:i,supports:c,transforms:u}=e,{available:d,unavailableReason:p}=(0,s.FB)("videopress"),m=(0,o.isWpcomPlatformSite)()&&["missing_plan","unknown"].includes(p),f=!!window.videoPressResumableEnabled;if(m?((0,g.addFilter)("editor.MediaPlaceholder","jetpack/videopress",T),(0,g.addFilter)("editor.BlockListBlock","jetpack/videopress-with-has-warning-is-interactive-class-names",(0,s.BT)("core/video"))):d&&(f&&(0,g.addFilter)("editor.MediaPlaceholder","jetpack/videopress",N),e.description=__("Embed a video from your media library or upload a new one with VideoPress.","jetpack"),e.example.attributes={caption:"",isVideoPressExample:!0,src:S}),(0,g.addFilter)("blocks.getSaveContent.extraProps","jetpack/videopress",P,20),d||["missing_plan","missing_module","unknown"].includes(p)){const t={autoplay:{type:"boolean"},caption:{type:"string",source:"html",selector:"figcaption"},controls:{type:"boolean",default:!0},maxWidth:{type:"string",default:"100%"},guid:{type:"string"},id:{type:"number"},loop:{type:"boolean"},isVideoPressExample:{type:"boolean",default:!1},muted:{type:"boolean"},playsinline:{type:"boolean"},poster:{type:"string"},preload:{type:"string",default:"metadata"},seekbarPlayedColor:{type:"string",default:""},seekbarLoadingColor:{type:"string",default:""},seekbarColor:{type:"string",default:""},src:{type:"string",source:"attribute",selector:"video",attribute:"src"},useAverageColor:{type:"boolean",default:!0},videoPressTracks:{type:"array",items:{type:"object"},default:[]},videoPressClassNames:{type:"string"},fileForImmediateUpload:{type:"object",default:null}},o=/https?:\/\/v\.wordpress\.com\/([a-zA-Z\d]{8})(.+)?/i;return{...e,attributes:{...e.attributes,...t},transforms:{...u,from:[{type:"files",isMatch:e=>e.every(e=>0===e.type.indexOf("video/")),priority:9,transform:(e,t)=>{const n=[];return e.forEach(e=>{if(d&&f){const t=(0,l.createBlock)("core/video",{fileForImmediateUpload:e});n.push(t)}else{const r=(0,l.createBlock)("core/video",{src:(0,a.createBlobURL)(e)});(0,h.mediaUpload)({filesList:[e],onFileChange:([{id:e,url:n}])=>{t(r.clientId,{id:e,src:n})},allowedTypes:["video"]}),n.push(r)}}),n}},{type:"raw",isMatch:e=>"P"===e.nodeName&&o.test(e.innerHTML),transform:e=>{const t=o.exec(e.innerHTML);return(0,l.createBlock)("core/embed",{url:"https://videopress.com/v/"+t[1].trim()})}}]},supports:{...c,reusable:!1},edit:(0,x.A)(r),save:(0,_.A)(i),deprecated:[...n||[],w.A,k.A,{attributes:t,isEligible:e=>!e.guid,save:i,supports:c,isDeprecation:!0},y.A,v.A]}}return e},5),(0,g.addFilter)("blocks.registerBlockType","videopress/add-wp-chapters-support",A.A),(0,g.addFilter)("blocks.registerBlockType","videopress/add-v6-transform-support",C.A),(0,g.addFilter)("blocks.registerBlockType","videopress/handle-unavailability",function(e,t){if("videopress/video"!==t)return e;const{available:n,unavailableReason:r}=(0,s.FB)("videopress/video");return n?e:(0,o.isWpcomPlatformSite)()&&["missing_plan","unknown"].includes(r)?((0,g.addFilter)("editor.MediaPlaceholder","jetpack/videopress-video-no-plan",T),(0,g.addFilter)("editor.BlockListBlock","jetpack/videopress-video-with-has-warning-is-interactive-class-names",(0,s.BT)("videopress/video")),e):e},20),(0,g.addFilter)("blocks.registerBlockType","videopress/add-core-video-transform",function(e,t){if("videopress/video"!==t)return e;const n=(0,l.getBlockType)("videopress/video"),{available:o}=(0,s.FB)("videopress/video");return n&&o?{...e,transforms:{from:[...e.transforms?.from||[],{type:"block",blocks:["core/video"],isMatch:e=>{const{src:t,guid:n}=e,r=(0,j.QW)(t);return n||r},transform:e=>{const t=(0,p.select)(h.store).getCurrentPostId();return r.A?.tracks?.recordEvent("jetpack_editor_videopress_block_manual_transform_click",{post_id:t}),(0,l.createBlock)("videopress/video",e)}}],to:[...e.transforms?.to||[],{type:"block",blocks:["core/video"],transform:e=>(0,l.createBlock)("core/video",e)}]}}:e});const B=(0,d.createHigherOrderComponent)(e=>t=>{const{block:n}=t,{name:r,attributes:a,clientId:c,__unstableBlockSource:u}=n,{replaceBlock:d}=(0,p.useDispatch)(i.store),{url:h,guid:g,providerNameSlug:f}=a,{available:b}=((0,j.x1)(a),(0,l.getBlockType)("videopress/video"),(0,s.FB)("videopress/video")),v="core/embed"===r,y=(0,j.QW)(h),k=v&&y?y:g,w=((0,o.isSimpleSite)(),!1),x=w;return(0,m.useEffect)(()=>{},[c,x,a,u,d,k]),(0,E.jsx)(e,{...t})},"convertVideoBlockToVideoPressVideoBlock");function I({BlockListBlock:e,...t}){const{block:n}=t,{name:r,attributes:o,clientId:s}=n,{replaceBlock:a}=(0,p.useDispatch)(i.store);return(0,m.useEffect)(()=>{try{const e=(0,c.parse)(o.originalContent),t=e?.[0];if(!t)return;const{attrs:n}=t;a(s,(0,l.createBlock)("core/video",function(e){const t={...e};return e?.tracks&&(t.videoPressTracks=e.tracks,delete t.tracks),e?.isExample&&(t.isVideoPressExample=e.isExample,delete t.isExample),e?.classNames&&(t.videoPressClassNames=e.classNames,delete t.classNames),delete t.title,delete t.description,delete t.cacheHtml,delete t.videoRatio,delete t.privacySetting,delete t.allowDownload,delete t.displayEmbed,delete t.rating,delete t.isPrivate,t}(n)))}catch(e){console.error("Error converting VideoPress block to core/video",e)}},[r,s,o,a]),(0,E.jsx)(e,{...t})}(0,g.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-to-videopress-video-block",B);const M=(0,d.createHigherOrderComponent)(e=>t=>{const{block:n}=t,{name:r,attributes:o}=n;return"core/missing"!==r||"videopress/video"!==o?.originalName?(0,E.jsx)(e,{...t}):(0,E.jsx)(I,{...t,BlockListBlock:e})},"convertV6toV5");(0,g.addFilter)("editor.BlockListBlock","videopress/jetpack-convert-from-v6-to-v5",M)},64655(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=({text:e})=>(0,o.jsxs)("div",{className:"wp-block-embed is-loading",children:[(0,o.jsx)(r.Spinner,{}),(0,o.jsx)("p",{children:e})]})},57636(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(56427),o=n(86087),s=n(27723),a=n(57273),i=n(37578),c=n(33983),l=n(80534),u=(n(86154),n(10790));const __=s.__;function d({file:e}){const[t,n]=(0,o.useState)(0),[d,p]=(0,o.useState)(!1),[h,m]=(0,o.useState)(null),[g,f]=(0,o.useState)(null),[b,v]=(0,o.useState)(null),{onUploadFinished:y}=(0,o.useContext)(c.Z),k=(0,o.useRef)(null);k.current=h;const w=(0,o.useCallback)(()=>{const t=(0,l.l)({onError:e=>{f(e)},onProgress:(e,t)=>{n(e/t*100)},onSuccess:e=>{y(e)},onUploadUuidRetrieved:e=>{null===b&&v(e)}});(0,l.Q)().then(n=>{const r=t(e,n);m(r)}).catch(e=>{f(e)})},[e,y,b]);(0,o.useEffect)(()=>(w(),()=>{null!==k.current&&k.current.abort()}),[]);const x=Math.round(t),_={width:`${x}%`},j=(0,i.O)(e.size);return(0,u.jsx)(u.Fragment,{children:null!==g?(0,u.jsxs)("div",{className:"resumable-upload__error",children:[(0,u.jsx)("div",{className:"resumable-upload__error-text",children:(()=>{let e=__("An error was encountered during the upload. Check your network connection.","jetpack");if("object"==typeof g){const t=g.toString().match(/message":"([^"]+)"/);if(t&&"object"==typeof t&&2===t.length){const n=t[1];if("Invalid Mime"!==n)return n;e=(0,u.jsxs)(u.Fragment,{children:[__("The format of the video you uploaded is not supported.","jetpack")," ",(0,u.jsx)(a.N,{openInNewTab:!0,href:"https://wordpress.com/support/videopress/recommended-video-settings/",target:"_blank",rel:"noreferrer",children:__("Check the recommended video settings.","jetpack")})]})}}return e})()}),(0,u.jsx)(r.Button,{variant:"primary",onClick:()=>(f(null),void w()),children:__("Try again","jetpack")}),(0,u.jsx)(r.Button,{variant:"secondary",onClick:()=>y({mediaId:null}),className:"resumable-upload__error-cancel",children:__("Cancel","jetpack")})]}):(0,u.jsxs)("div",{className:"resumable-upload__status",children:[(0,u.jsx)("div",{className:"resumable-upload__progress",children:(0,u.jsx)("div",{className:"resumable-upload__progress-loaded",style:_})}),(0,u.jsxs)("div",{className:"resumable-upload__file-info",children:[(0,u.jsx)("div",{children:d?(0,s.sprintf)(/* translators: %s: an upload progress percentage number, from 0-100. */ | |
| 145 | +__("Paused (%s%%)","jetpack"),x):(0,s.sprintf)(/* translators: %s: an upload progress percentage number, from 0-100. */ | |
| 146 | +__("Uploading (%s%%)","jetpack"),x)}),(0,u.jsx)("div",{className:"resumable-upload__file-size",children:j})]}),(0,u.jsx)("div",{className:"resumable-upload__actions",children:(0,u.jsx)(r.Button,{variant:"link",onClick:()=>{h&&(d?h.start():h.abort(),p(!d))},children:d?"Resume":"Pause"})})]})})}},80534(e,t,n){"use strict";n.d(t,{Q:()=>o,l:()=>a});var r=n(10781);const o=function(e){return new Promise(function(t,n){const r=e?{data:{key:e}}:{};wp.media.ajax("videopress-get-upload-jwt",{async:!0,...r}).done(function(e){t({token:e.upload_token,blogId:e.upload_blog_id,url:e.upload_action_url})}).fail(function(e){n(e)})})},s={},a=({onUploadUuidRetrieved:e,onError:t,onProgress:n,onSuccess:a})=>(i,c)=>{const l=new r._O(i,{onError:t,onProgress:n,endpoint:c.url,removeFingerprintOnSuccess:!0,withCredentials:!1,autoRetry:!0,overridePatchMethod:!1,chunkSize:1e7,allowedFileTypes:["video/*"],metadata:{filename:i.name,filetype:i.type},retryDelays:[0,1e3,3e3,5e3,1e4],onAfterResponse:function(t,n){if(n.getStatus()>=400)return;const r=n.getHeader("x-videopress-upload-guid"),o=n.getHeader("x-videopress-upload-media-id"),i=n.getHeader("x-videopress-upload-src-url");if(r&&o&&i)return void(a&&a({mediaId:Number(o),guid:r,src:i}));const c={"x-videopress-upload-key-token":"token","x-videopress-upload-key":"key"},l={};Object.keys(c).forEach(function(e){const t=n.getHeader(e);t&&(l[c[e]]=t)}),l.key&&l.token&&(s[l.key]=l.token),l.key&&e(l.key)},onBeforeRequest:function(e){const t=e._method;["HEAD","OPTIONS"].indexOf(t)>=0&&(e._method="GET",e.setHeader("X-HTTP-Method-Override",t)),["DELETE","PUT","PATCH"].indexOf(t)>=0&&(e._method="POST",e.setHeader("X-HTTP-Method-Override",t)),e._xhr.open(e._method,e._url,!0);for(const t of Object.keys(e._headers))e.setHeader(t,e._headers[t]);if("POST"===t){if(!!!c.token)throw"should never happen";e.setHeader("x-videopress-upload-token",c.token)}if(["OPTIONS","GET","HEAD","DELETE","PUT","PATCH"].indexOf(t)>=0){const n=new URL(e._url).pathname.split("/"),r=n[n.length-1];if(s[r])e.setHeader("x-videopress-upload-token",s[r]);else if("HEAD"===t)return o(r).then(t=>(s[r]=t.token,e.setHeader("x-videopress-upload-token",t.token),e))}return Promise.resolve(e)}});return l.findPreviousUploads().then(function(e){e.length&&l.resumeFromPreviousUpload(e[0]),l.start()}),l}},63739(e,t,n){"use strict";n.d(t,{e:()=>r});const r=e=>{const t=Array.isArray(e)?[...e]:[];if(window.videopressAjax){const e=new Blob([`var videopressAjax = ${JSON.stringify({...window.videopressAjax,context:"sandbox"})};`],{type:"text/javascript"});t.push(URL.createObjectURL(e)),window.videopressAjax.bridgeUrl&&t.push(window.videopressAjax.bridgeUrl)}return window?.videoPressEditorState?.playerBridgeUrl&&t.push(window.videoPressEditorState.playerBridgeUrl),t}},81360(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(29491),s=n(13022),a=n(17900),i=n(10790);const c=(0,o.createHigherOrderComponent)(e=>t=>{const{attributes:{autoplay:n,caption:o,controls:c,guid:l,loop:u,muted:d,playsinline:p,poster:h,preload:m,videoPressClassNames:g,className:f,align:b,seekbarColor:v,seekbarPlayedColor:y,seekbarLoadingColor:k,useAverageColor:w,maxWidth:x}={}}=t;if(!l)return e(t);const _=r.useBlockProps.save({className:(0,s.A)("wp-block-video",f,g,{[`align${b}`]:b})}),j=(0,a.e)(l,{autoplay:n,controls:c,loop:u,muted:d,playsinline:p,poster:h,preload:m,seekbarColor:v,seekbarPlayedColor:y,seekbarLoadingColor:k,useAverageColor:w});let C={};return x&&x.length>0&&"100%"!==x&&(C={maxWidth:x,margin:"auto"}),(0,i.jsxs)("figure",{..._,children:[(0,i.jsx)("div",{className:"wp-block-embed__wrapper",style:C,children:`\n${j}\n`}),!r.RichText.isEmpty(o)&&(0,i.jsx)(r.RichText.Content,{tagName:"figcaption",value:o})]})},"withVideoPressSave")},51742(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(56427),s=n(86087),a=n(27723),i=n(10790);const __=a.__;class c extends s.Component{constructor(){super(...arguments);const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.props.attributes;this.state={seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}}handleChangeSeekbarColor=e=>{this.setState({seekbarColor:e})};handleChangeSeekbarLoadingColor=e=>{this.setState({seekbarLoadingColor:e})};handleChangeSeekbarPlayedColor=e=>{this.setState({seekbarPlayedColor:e})};saveColors=()=>{const{seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n}=this.state,{setAttributes:r}=this.props;r({seekbarColor:e,seekbarLoadingColor:t,seekbarPlayedColor:n})};render(){const{seekbarColor:e,seekbarPlayedColor:t,seekbarLoadingColor:n}=this.state,{toggleAttribute:s,useAverageColor:a}=this.props,c=!0;return(0,i.jsxs)(o.PanelBody,{className:"seekbar-color-settings__panel",title:__("Progress Bar Colors","jetpack"),initialOpen:!1,children:[(0,i.jsx)(o.ToggleControl,{label:__("Match video","jetpack"),help:__("Colors adapt to the video as it plays","jetpack"),onChange:s("useAverageColor"),checked:a,__nextHasNoMarginBottom:!0}),(0,i.jsx)(r.PanelColorSettings,{opened:!a,showTitle:!1,colorSettings:[{value:e,onChange:this.handleChangeSeekbarColor,label:__("Main","jetpack"),showTitle:c},{value:n,onChange:this.handleChangeSeekbarLoadingColor,label:__("Loaded","jetpack"),showTitle:c},{value:t,onChange:this.handleChangeSeekbarPlayedColor,label:__("Progress","jetpack"),showTitle:c}],children:(0,i.jsx)(o.Button,{variant:"secondary",onClick:this.saveColors,children:__("Save colors","jetpack")})})]})}}const l=c},9821(e,t,n){"use strict";n.d(t,{A:()=>k,n:()=>b});var r=n(1455),o=n.n(r),s=n(94715),a=n(56427),i=n(47143),c=n(86087),l=n(27723),u=n(58384),d=n(10790);const __=l.__,p="subtitles",h={".vtt":"text/vtt",".srt":"application/x-subrip"},m=[{label:__("Subtitles","jetpack"),value:"subtitles"},{label:__("Captions","jetpack"),value:"captions"},{label:__("Descriptions","jetpack"),value:"descriptions"},{label:__("Chapters","jetpack"),value:"chapters"},{label:__("Metadata","jetpack"),value:"metadata"}],g=(0,d.jsxs)(a.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none",children:[(0,d.jsx)(a.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),(0,d.jsx)(a.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),(0,d.jsx)(a.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"})]}),f=()=>"videoPressUploadTrack"in window,b=(e,t)=>{if(f())return window.videoPressUploadTrack(t,e.kind,e.srcLang,e.label,e.tmpFile);const n={method:"POST",path:`/videos/${t}/tracks`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang],["label",e.label],["vtt",e.tmpFile]]};return o()(n)};function v({tracks:e,onChange:t,guid:n}){const[r=-1,s]=(0,c.useState)(),i=r=>{const a=e[r];s(r),((e,t)=>{if(f())return window.videoPressDeleteTrack(t,e.kind,e.srcLang);const n={method:"POST",path:`/videos/${t}/tracks/delete`,apiNamespace:"rest/v1.1",global:!0,parse:!1,formData:[["kind",e.kind],["srclang",e.srcLang]]};return o()(n)})(a,n).finally(()=>{t(e.filter((e,t)=>t!==r)),s(-1)})};let u;return u=0===e.length?(0,d.jsx)("p",{className:"videopress-block-tracks-editor__tracks-informative-message",children:__("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.","jetpack")}):e.map((e,t)=>(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__track-list-track",children:[(0,d.jsx)("span",{children:e.label}),(0,d.jsx)("div",{className:"videopress-block-tracks-editor__track-list-track-delete",children:(0,d.jsx)(a.Button,{variant:"link",isDestructive:!0,onClick:()=>{i(t)},"aria-label":(0,l.sprintf)(/* translators: %s: Label of the video text track e.g: "French subtitles" */ | |
| 147 | +__("Delete %s","jetpack"),e.label),disabled:r===t,children:r===t?__("Deleting","jetpack"):__("Delete","jetpack",0)})})]},t)),(0,d.jsx)(a.MenuGroup,{label:__("Text tracks","jetpack"),className:"videopress-block-tracks-editor__track-list",children:u})}function y({track:e,guid:t,onChange:n,onClose:r,onCancel:o,trackExists:u}){const[g,f]=(0,c.useState)(),[v=!1,y]=(0,c.useState)(),{label:k="",srcLang:w="",kind:x=p}=e,_=e.tmpFile?e.tmpFile.name:"";if(!(0,i.useSelect)(e=>e(s.store).getSettings().mediaUpload,[]))return null;return(0,d.jsx)(a.NavigableMenu,{children:(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor",children:[(0,d.jsx)("span",{className:"videopress-block-tracks-editor__single-track-editor-label",children:__("Edit track","jetpack")}),(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file",children:[(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label",children:[(0,d.jsxs)("span",{children:[__("File","jetpack"),":"]}),""!==_&&(0,d.jsx)("span",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-label-name",children:(0,d.jsx)("strong",{children:_})}),(0,d.jsx)(s.MediaUploadCheck,{children:(0,d.jsx)(a.FormFileUpload,{onChange:t=>{const r=t.target.files;!r.length>0||(e.tmpFile=r[0],n(e))},accept:Object.entries(h).join(),render:({openFileDialog:e})=>(0,d.jsx)(a.Button,{variant:"link",onClick:()=>{e()},children:""===_?__("Select track","jetpack"):__("Change track","jetpack",0)}),disabled:v})})]}),(0,d.jsx)("div",{className:"videopress-block-tracks-editor__single-track-editor-upload-file-help",children:(0,l.sprintf)(/* translators: %s: The allowed file types to be uploaded as a video text track." */ | |
| 148 | +__("Allowed formats: %s","jetpack"),Object.keys(h).join(", "))})]}),(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-label-language",children:[(0,d.jsx)(a.TextControl,{onChange:t=>n({...e,label:t}),label:__("Label","jetpack"),value:k,help:__("Title of track","jetpack"),disabled:v,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,d.jsx)(a.TextControl,{onChange:t=>n({...e,srcLang:t}),label:__("Source language","jetpack"),value:w,help:__("Language tag (en, fr, etc.)","jetpack"),disabled:v,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]}),(0,d.jsx)(a.SelectControl,{className:"videopress-block-tracks-editor__single-track-editor-kind-select",options:m,value:x,label:/* translators: %s: The kind of video text track e.g: "Subtitles, Captions" */ | |
| 149 | +__("Kind","jetpack"),onChange:t=>{n({...e,kind:t})},disabled:v,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,d.jsxs)("div",{className:"videopress-block-tracks-editor__single-track-editor-buttons-container",children:[v?(0,d.jsx)(a.Spinner,{}):(0,d.jsx)(a.Button,{variant:"secondary",disabled:!e.tmpFile,onClick:()=>{f(null),""===k&&(e.label=__("English","jetpack")),""===w&&(e.srcLang="en"),void 0===e.kind&&(e.kind=p),u(e)?f(__("A track already exists for that language and kind.","jetpack")):(y(!0),b(e,t).then(()=>{n(e),f(null),r()}).catch(e=>{e.message&&f(e.message)}).finally(()=>{y(!1)}))},children:__("Save","jetpack")}),(0,d.jsx)(a.Button,{variant:"link",onClick:o,children:__("Close","jetpack")})]}),g&&(0,d.jsx)("div",{className:"videopress-block-tracks-editor__single-track-editor-error",children:/* translators: %s: An error message returned after a failed video track file upload." */ /* translators: %s: An error message returned after a failed video track file upload." */ | |
| 150 | +(0,l.sprintf)(__("Error: %s","jetpack"),g)})]})})}function k({tracks:e=[],onChange:t,guid:n}){const[r,o]=(0,c.useState)(null);return(0,d.jsx)(a.Dropdown,{contentClassName:"videopress-block-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,d.jsx)(a.ToolbarButton,{label:__("Text tracks","jetpack"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t,icon:g}),renderContent:()=>null!==r?(0,d.jsx)(y,{track:e[r],guid:n,onChange:n=>{const o=[...e];o[r]=n,t(o)},onClose:()=>o(null),onCancel:()=>{t(e.filter((e,t)=>t!==r)),o(null)},trackExists:t=>-1!==e.filter((e,t)=>t!==r).findIndex(e=>e.kind===t.kind&&e.srcLang===t.srcLang),__next40pxDefaultSize:!0}):(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(a.NavigableMenu,{children:[(0,d.jsx)(v,{tracks:e,onChange:t,guid:n}),(0,d.jsx)(a.MenuGroup,{className:"videopress-block-tracks-editor__add-tracks-container",label:__("Add tracks","jetpack"),children:(0,d.jsx)(a.MenuItem,{icon:u.A,onClick:()=>{(()=>{const n=e.length,r=[...e];r[n]||(r[n]={}),r[n]={...e[n]},t(r),o(n)})()},children:__("Upload track","jetpack")})})]})})})}},73475(e,t,n){"use strict";n.d(t,{d:()=>m});var r=n(35750),o=n(94715),s=n(56427),a=n(86087),i=n(27723),c=n(13109),l=n(13022),u=(n(58227),n(10790));const __=i.__,d=["image"],p=e=>{const{videoPosterImageUrl:t}=e;return(0,u.jsx)("div",{className:"resumable-upload__editor-thumb-placeholder",children:t?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("img",{src:t,alt:"Poster"}),(0,u.jsx)(c.A,{className:"uploading-editor__play-icon",icon:r.ud})]}):(0,u.jsx)("span",{children:"No Poster Selected"})})},h=e=>{const{onSelectPoster:t,onRemovePoster:n}=e;return(0,u.jsxs)(s.BaseControl,{className:(0,l.A)(e.className,"editor-video-poster-control"),children:[(0,u.jsx)(p,{...e}),(0,u.jsx)(o.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:t,allowedTypes:d,render:({open:e})=>(0,u.jsxs)("div",{className:"poster-selector__buttons",children:[(0,u.jsx)(s.Button,{onClick:n,variant:"link",isDestructive:!0,children:__("Remove Poster Image","jetpack")}),(0,u.jsx)(s.Button,{variant:"secondary",onClick:e,children:__("Select Poster Image","jetpack")})]})})]})},m=e=>{const{file:t,onSelectPoster:n,onRemovePoster:i,videoPosterImageData:l,title:p,onChangeTitle:m,onVideoFrameSelected:g}=e,[f,b]=(0,a.useState)(0),[v,y]=(0,a.useState)(!0),k=(0,a.useRef)(null),w=(0,a.useRef)(null),x=()=>{y(!1)};(0,a.useEffect)(()=>{null!==t&&k&&(k.current.src=URL.createObjectURL(t))},[t,k]);const _={};return l&&(_.display="none"),(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)("div",{className:"uploading-editor",children:[(0,u.jsx)("div",{className:"uploading-editor__summary"}),(0,u.jsxs)("div",{className:"uploading-editor__fields",children:[(0,u.jsx)(s.TextControl,{label:__("Video title","jetpack"),className:"uploading-editor__title",onChange:m,value:p,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,u.jsx)("div",{className:"uploading-editor__content",children:(0,u.jsxs)(s.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,u.jsx)(s.BaseControl.VisualLabel,{children:__("Video poster (optional)","jetpack")}),v?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"uploading-editor__video-container",children:[(0,u.jsxs)("div",{className:"uploading-editor__video-poster-wrapper",children:[l&&(0,u.jsx)(h,{onSelectPoster:n,onRemovePoster:i,videoPosterImageUrl:l.url}),(0,u.jsx)("video",{ref:k,muted:!0,className:"uploading-editor__video",onDurationChange:e=>{const t=e.target.duration;b(t),k.current&&(k.current.currentTime=t/2)},onError:x,onLoadedMetadata:e=>{e.target.videoHeight||x()},style:_})]}),!l&&(0,u.jsx)(c.A,{className:"uploading-editor__play-icon",icon:r.ud})]}),(0,u.jsx)("span",{style:_,children:(0,u.jsx)(s.RangeControl,{className:"uploading-editor__range",min:"0",step:"0.1",max:f,showTooltip:!1,withInputField:!1,onChange:e=>{g(1e3*e),k.current&&(k.current.currentTime=e)},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,u.jsx)("span",{className:"uploading-editor__scrubber-help",style:_,children:(0,a.createInterpolateElement)(__("This is how the video will look. Use the slider to choose a poster or <a>select a custom one</a>.","jetpack"),{a:(0,u.jsx)(o.MediaUpload,{title:__("Select Poster Image","jetpack"),onSelect:n,allowedTypes:d,render:({open:e})=>(0,u.jsx)("a",{className:"uploading-editor__upload-link",onClick:e,onKeyDown:e,ref:w,role:"button",tabIndex:0,children:__("select a custom one","jetpack")})})})})]}):(0,u.jsx)(h,{onSelectPoster:n,videoPosterImageUrl:l?l.url:null})]})})]})]})})}},17900(e,t,n){"use strict";n.d(t,{e:()=>o});var r=n(93832);const o=(e,{autoplay:t,controls:n,loop:o,muted:s,playsinline:a,poster:i,preload:c,seekbarColor:l,seekbarPlayedColor:u,seekbarLoadingColor:d,useAverageColor:p})=>{if(!e)return null;const h={resizeToParent:!0,cover:!0,...t&&{autoPlay:!0},...!n&&{controls:!1},...o&&{loop:!0},...s&&{muted:!0,persistVolume:!1},...a&&{playsinline:!0},...i&&{posterUrl:i},...""!==c&&{preloadContent:c},...""!==l&&{sbc:l},...""!==u&&{sbpc:u},...""!==d&&{sblc:d},...p&&{useAverageColor:!0}};return(0,r.addQueryArgs)(`https://videopress.com/v/${e}`,h)}},47960(e,t,n){"use strict";n.d(t,{QW:()=>c,T3:()=>i,Zz:()=>a,x1:()=>l});n(74997);var r=n(13022),o=n(74628);const s=e=>{const t=o.C1.reduce((e,{className:t})=>(e[t]=!1,e),{"wp-has-aspect-ratio":!1});return(0,r.A)(e,t)};function a(e,t="",n=!0){if(!n)return s(t);const a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;const i=a.body.querySelector("iframe");if(i&&i.height&&i.width){const e=(i.width/i.height).toFixed(2);for(let n=0;n<o.C1.length;n++){const a=o.C1[n];if(e>=a.ratio)return(0,r.A)(s(t),a.className,"wp-has-aspect-ratio")}}return t}const i=e=>e.replace(/\.[^/.]+$/,""),c=e=>{if(!e||"string"!=typeof e)return null;const t=e.match(/^https?:\/\/(?<host>video(?:\.word|s\.files\.word)?press\.com)(?:\/v|\/embed)?\/(?<guid>[a-zA-Z\d]{8})/);return t?.groups?.guid?t.groups.guid:null},l=e=>{const{guid:t,videoPressTracks:n,isVideoPressExample:r}=e;if(!t?.length)return!1;if(!Array.isArray(n))return!1;return!(!Object.keys(e).includes("isVideoPressExample")||"boolean"!=typeof r)}},51801(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(85985),o=n(94715),s=n(74997),a=n(56427),i=n(47143),c=n(43656),l=n(27723),u=n(47960),d=n(89732),p=n(10790);const __=l.__,h={instances:[]},m=(e=[],t=!1,n=0)=>{if(t&&(h.instances=[]),e.forEach(e=>{if(e.innerBlocks.length)return void m(e.innerBlocks,!1,n+1);const{clientId:t,name:r,attributes:o}=e;"core/video"===r&&(0,u.x1)(o)&&h.instances.push({clientId:t,name:r,attributes:o})}),0===n)return h.instances};function g({clientId:e,attributes:t}){const n=(0,i.useSelect)(e=>e(c.store).getCurrentPostId()),{getBlocks:l}=(0,i.useSelect)(o.store),{replaceBlock:h}=(0,i.useDispatch)(o.store),{tracks:g}=(0,r.st)();return(0,p.jsxs)("div",{className:d.A.wrapper,children:[(0,p.jsx)(a.Notice,{status:"info",isDismissible:!1,className:d.A["conversion-notice"],children:__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features, such as adding chapters directly in the description or hiding the video's share menu.","jetpack")}),(0,p.jsx)(a.Button,{variant:"primary",onClick:()=>{const r=m(l(),!0);r?.length&&(r.find(t=>t.clientId===e)||r.push({clientId:e,name:"core/video",currentBlockAttributes:t}),r.forEach(e=>{const{clientId:t,name:r,attributes:o}=e;"core/video"===r&&(0,u.x1)(o)&&(h(t,(0,s.createBlock)("videopress/video",o)),g.recordEvent("jetpack_editor_videopress_block_manual_conversion_click",{post_id:n}))}))},children:__("Transform blocks to VideoPress","jetpack")})]})}},50685(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(94715),o=n(29491),s=n(47960),a=n(51801),i=n(10790);const c=(0,o.createHigherOrderComponent)(e=>t=>(0,s.x1)(t.attributes)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(a.A,{clientId:t.clientId,attributes:t.attributes})}),(0,i.jsx)(e,{...t})]}):(0,i.jsx)(e,{...t}))},51983(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(85985),o=n(50685);function s(e,t){if("core/video"!==t)return e;const{available:n}=(0,r.FB)("videopress/video");return n?{...e,edit:(0,o.A)(e.edit)}:e}},48022(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(56427),o=n(27723),s=n(72398),a=n(84605),i=(n(60333),n(10790));const __=o.__,c="videopress/video-chapters",l=!!window?.Jetpack_Editor_Initial_State?.available_blocks[c];function u({isRequestingVideoItem:e}){const{attributes:t,setAttributes:n}=(0,a.A)();if(!l)return null;const{title:o,description:u}=t,d=(0,s.m)(c),p=u?.length?u.split("\n").map(e=>Math.ceil(e.length/31)||1).reduce((e,t)=>e+t,0):4,h=Math.min(12,Math.max(p,4));return(0,i.jsxs)(r.PanelBody,{title:__("Details","jetpack"),className:d?"is-beta":"",children:[(0,i.jsx)(r.TextControl,{label:__("Title","jetpack"),value:o,placeholder:__("Video title","jetpack"),onChange:e=>{n({title:e})},disabled:e,__next40pxDefaultSize:!0}),(0,i.jsx)(r.TextareaControl,{label:__("Description","jetpack"),value:u,placeholder:__("Video description","jetpack"),onChange:e=>{n({description:e})},disabled:e,rows:h})]})}},51072(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(94715),o=n(29491),s=n(86087),a=n(48022),i=n(52753),c=n(95501),l=n(7345),u=n(10790);const d=(0,o.createHigherOrderComponent)(e=>t=>{const{attributes:n,setAttributes:o}=t,[d,p]=(0,i.A)(n?.id),[h]=(0,c.n)(n);return(0,s.useEffect)(()=>{if(!d)return;const e={};d?.title&&(e.title=d.title),d?.description&&(e.description=d.description),Object.keys(e).length&&(o(e),h(e))},[d,o,h]),l.j&&"core/video"!==!t.name&&t.attributes?.guid?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.InspectorControls,{children:(0,u.jsx)(a.A,{isRequestingVideoItem:p})}),(0,u.jsx)(e,{...t})]}):(0,u.jsx)(e,{...t})})},84605(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(94715),o=n(47143);function s(){const{clientId:e,attributes:t}=(0,o.useSelect)(e=>{const t=e(r.store).getSelectedBlockClientId();return{clientId:t,attributes:t?e("core/block-editor").getBlockAttributes(t):void 0}}),{updateBlockAttributes:n}=(0,o.useDispatch)(r.store);return{clientId:e,attributes:t,setAttributes:t=>n(e,t)}}},95501(e,t,n){"use strict";n.d(t,{n:()=>g});var r=n(1455),o=n.n(r),s=n(29491),a=n(3582),i=n(47143),c=n(43656),l=n(86087),u=n(27723),d=n(9821),p=n(17900),h=n(17204),m=n(97393);const __=u.__;function g(e){const{id:t,title:n,description:r,guid:u}=e,g=(0,i.useSelect)(e=>e(c.store).isSavingPost(),[]),f=(0,s.usePrevious)(g),b=(0,i.useDispatch)(a.store).invalidateResolution,[v,y]=(0,l.useState)(),k=(0,l.useCallback)(e=>{y(t=>({...t,...e}))},[]);(0,l.useEffect)(()=>{y({title:n,description:r})},[]);const w=function(e){return t=>new Promise((n,r)=>{o()({path:"/wpcom/v2/videopress/meta",method:"POST",data:{id:e,...t}}).then(e=>{if(200!==e?.data)return r(e);n(e)}).catch(r)})}(t);return(0,l.useEffect)(()=>{if(!g||f)return;if(!t)return;const o={};if(v?.title!==n&&(o.title=n),v?.description!==r&&(o.description=r),!Object.keys(o).length)return;if(w(o).then(()=>k({title:n,description:r})),!o?.description?.length)return;const s=(0,h.Ay)(o.description);if(!s?.length)return;const a={label:__("English","jetpack"),srcLang:"en",kind:"chapters",tmpFile:(0,m.Ay)(o.description)};(0,d.n)(a,u).then(()=>{const t=(0,p.e)(u,e);b("getEmbedPreview",[t])})},[g,f,n,v?.title,v?.description,r,w,k,e,b,t,u]),[k]}},52753(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(1455),o=n.n(r),s=n(86087);function a(e){const[t,n]=(0,s.useState)({}),[r,a]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{e&&(a(!0),async function(){try{const t=await o()({path:`/wp/v2/media/${e}`});n(t?.jetpack_videopress||{}),a(!1)}catch(e){throw a(!1),new Error(e,{cause:e})}}())},[e]),[t,r]}},7345(e,t,n){"use strict";n.d(t,{A:()=>s,j:()=>o});var r=n(51072);const o=!!window?.Jetpack_Editor_Initial_State?.available_blocks["videopress/video-chapters"];function s(e,t){if(!o)return e;if("core/video"!==t)return e;const n={...e.attributes,title:{type:"string"},description:{type:"string"}};return{...e,attributes:n,edit:(0,r.A)(e.edit)}}},17204(e,t,n){"use strict";function r(e){return e.split("\n").map(e=>function(e){const t=/(?<timeBlock>\(?(?<time>\d{1,2}:\d{2}:\d{2}|\d{1,2}:\d{2})\)?)/.exec(e);if(null==t||null==t.groups)return null;const{groups:{timeBlock:n,time:r}}=t,o=e.indexOf(n),s=(o<(e.length-n.length)/2?e.substring(o+n.length,e.length):e.substring(0,o)).trim().replace(/(\s-$)|(^-\s)/,""),a=r.split(":");return 1===a[0].length&&(a[0]=`0${a[0]}`),2===a.length&&a.unshift("00"),{startAt:a.join(":"),title:s}}(e)).filter(e=>null!==e).sort((e,t)=>e.startAt.localeCompare(t.startAt))}n.d(t,{$k:()=>r,Ay:()=>r})},97393(e,t,n){"use strict";n.d(t,{Ay:()=>s});var r=n(17204);function o(e){const t=Math.floor(e/36e5);let n=e-36e5*t;const r=Math.floor(n/6e4);n-=6e4*r;return[t,r,Math.floor(n/1e3)].map(e=>e<10?`0${e}`:e).join(":")}function s(e,t){const n=function(e,t=359999e3){const n=(0,r.$k)(e);if(0===n.length)return null;let s="WEBVTT\n",a=1;for(const[e,r]of n.entries()){const i=0===e?"000":"001",c=e<n.length-1?n[e+1].startAt:o(t);s+=`\n${a++}\n${r.startAt}.${i} --\x3e ${c}.000\n${r.title}\n`}return s}(e,t);return n?new File([n],"chapters.vtt",{type:"text/vtt"}):null}},84854(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96865),o=n(56427),s=n(27723),a=n(10790);const __=s.__;function i({state:e,onUpload:t,onCancel:n,onRecord:s,onPause:i,onResume:c,onDone:l}){return(0,a.jsxs)("div",{className:"jetpack-ai-voice-to-content__action-buttons",children:[["inactive","error","validating"].includes(e)&&(0,a.jsx)(o.Button,{className:"jetpack-ai-voice-to-content__button",icon:r.Vo,variant:"secondary",onClick:s,children:__("Begin recording","jetpack")}),["recording"].includes(e)&&(0,a.jsx)(o.Button,{className:"jetpack-ai-voice-to-content__button",icon:r.ni,variant:"secondary",onClick:i,children:__("Pause recording","jetpack")}),["paused"].includes(e)&&(0,a.jsx)(o.Button,{className:"jetpack-ai-voice-to-content__button",icon:r.Vo,variant:"secondary",onClick:c,children:__("Resume recording","jetpack")}),["inactive","error","validating"].includes(e)&&(0,a.jsx)(o.FormFileUpload,{accept:".mp3,.mpeg,.mpga,.ogg,.flac,.m4a,.mp4,.wav,.wave,.webm",onChange:t,className:"jetpack-ai-voice-to-content__button is-secondary",children:__("Upload audio","jetpack")}),["recording","paused"].includes(e)&&(0,a.jsx)(o.Button,{className:"jetpack-ai-voice-to-content__button",variant:"primary",onClick:l,children:__("Done","jetpack")}),["recording","paused","processing"].includes(e)&&(0,a.jsx)(o.Button,{className:"jetpack-ai-voice-to-content__button",variant:"secondary",onClick:n,children:__("Cancel","jetpack")})]})}},41004(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96865),o=n(27723),s=n(73723),a=n(10790);const __=o.__;function i({state:e,error:t=null,analyser:n,duration:o=0}){return"inactive"===e?(0,a.jsx)("div",{className:"jetpack-ai-voice-to-content__information",children:__("File size limit: 25MB. Recording time limit: 25 minutes.","jetpack")}):"recording"===e?(0,a.jsxs)("div",{className:"jetpack-ai-voice-to-content__audio",children:[(0,a.jsx)(r.z3,{className:"jetpack-ai-voice-to-content__audio--duration",duration:o}),(0,a.jsx)(s.A,{analyser:n,paused:!1}),(0,a.jsx)("span",{className:"jetpack-ai-voice-to-content__information",children:__("Recording…","jetpack")})]}):"paused"===e?(0,a.jsxs)("div",{className:"jetpack-ai-voice-to-content__audio",children:[(0,a.jsx)(r.z3,{className:"jetpack-ai-voice-to-content__audio--duration",duration:o}),(0,a.jsx)(s.A,{analyser:n,paused:!0}),(0,a.jsx)("span",{className:"jetpack-ai-voice-to-content__information",children:__("Paused","jetpack")})]}):"processing"===e?(0,a.jsx)("div",{className:"jetpack-ai-voice-to-content__information",children:__("Uploading and transcribing audio…","jetpack")}):"validating"===e?(0,a.jsx)("div",{className:"jetpack-ai-voice-to-content__information",children:__("Validating audio…","jetpack")}):"error"===e?(0,a.jsx)("div",{className:"jetpack-ai-voice-to-content__information--error",children:t}):null}},73723(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(86087),o=n(10790);function s({analyser:e,paused:t=!1}){const n=(0,r.useRef)(null),s=(0,r.useRef)(t),a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{s.current=t},[t]),(0,r.useEffect)(()=>{e&&n.current&&(a.current&&a.current(),a.current=function(e,t,n){const r=t.getContext("2d");let o=!1;if(!r)return;e.fftSize=Math.pow(2,13);const s=e.fftSize,a=new Float32Array(s),i=s/10,{width:c,height:l}=t,u=l/2;r.lineWidth=4,r.lineCap="round",r.strokeStyle=getComputedStyle(t).getPropertyValue("--jp-green-50")||"#008710";const d=()=>{r.clearRect(0,0,c,l),e.getFloatTimeDomainData(a);for(let e=1;e<=10;e++){let t=0;n.current||(t=a.slice(e*i,(e+1)*i).reduce((e,t)=>e+t,0)/i,t*=2048,t=Math.abs(t),t=Math.min(16,Math.max(0,t))),r.beginPath(),r.moveTo(2+6*e,u-t),r.lineTo(2+6*e,u+t),r.stroke()}setTimeout(()=>{o||requestAnimationFrame(d)},50)};return d(),()=>{o=!0}}(e,n.current,s))},[e,n,s]),(0,r.useEffect)(()=>()=>{a.current&&a.current()},[]),(0,o.jsx)("canvas",{className:"jetpack-ai-voice-to-content__oscilloscope",width:70,height:38,ref:n})}},42279(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(96865),o=n(50723),s=n(85985),a=n(94715),i=n(56427),c=n(47143),l=n(86087),u=n(27723),d=n(1866),p=n(84854),h=n(41004),m=n(59926),g=n(22228),f=n(10790);const __=u.__;function b({clientId:e}){const[t,n]=(0,l.useState)(null),{removeBlock:u}=(0,c.useDispatch)(a.store),{getBlocks:b}=(0,c.useSelect)(a.store,[]),v=(0,l.useCallback)(()=>{setTimeout(()=>{u(e)},100)},[u,e]),{tracks:y}=(0,s.st)(),{isValidatingAudio:k,validateAudio:w}=(0,r.rr)(),{upsertTranscription:x}=(0,g.A)(),{isCreatingTranscription:_,createTranscription:j,cancelTranscription:C}=(0,m.A)({onReady:e=>{x(e);const t=b();for(let e=0;e<2;e++)"core/paragraph"===t[e].name&&""===t[e].attributes?.content&&u(String(t[e].clientId));A()},onUpdate:e=>{x(e)},onError:e=>{N(e)}}),A=()=>{C(),v()},{state:S,controls:E,error:T,onError:N,duration:P,analyser:B}=(0,r.be)({onDone:e=>{I(e)}}),I=(0,l.useCallback)(e=>{e&&n(e)},[n]);(0,l.useEffect)(()=>{t&&w(t,e=>{y.recordEvent("jetpack_ai_voice_to_content_transcription_started",{post_processing_action:r.uH,type:e.isFile?"upload":"record",audio_duration:e.duration,audio_file_size:e.size}),j(t,r.uH)},N)},[t,y,w,j,N]);const{start:M,pause:R,resume:L,stop:D,reset:F}=E,O=(0,l.useCallback)(e=>{if(e.currentTarget.files.length>0){const t=e.currentTarget.files[0];I(t)}},[I]),z=(0,l.useCallback)(()=>{C(),F()},[C,F]),U=(0,l.useCallback)(()=>{M(1e3)},[M]),H=(0,l.useCallback)(()=>{R()},[R]),$=(0,l.useCallback)(()=>{L()},[L]),V=(0,l.useCallback)(()=>{D()},[D]),q=((e,t,n)=>t?"validating":e?"processing":n)(_,k,S);return(0,f.jsx)(i.Modal,{onRequestClose:A,title:__("Jetpack AI Voice to content","jetpack"),className:"jetpack-ai-voice-to-content__modal",shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1,children:(0,f.jsx)(o.Ay,{children:(0,f.jsxs)("div",{className:"jetpack-ai-voice-to-content__wrapper",children:[(0,f.jsxs)("div",{className:"jetpack-ai-voice-to-content__body",children:[(0,f.jsx)("span",{className:"jetpack-ai-voice-to-content__description",children:__("Transform your spoken words into a post ready to publish with AI.","jetpack")}),(0,f.jsx)("div",{className:"jetpack-ai-voice-to-content__contextual-row",children:(0,f.jsx)(h.A,{state:q,error:T,duration:P,analyser:B})}),(0,f.jsx)(p.A,{state:q,onUpload:O,onCancel:z,onRecord:U,onPause:H,onResume:$,onDone:V})]}),(0,f.jsx)("div",{className:"jetpack-ai-voice-to-content__footer",children:(0,f.jsxs)(i.Button,{variant:"link",className:"jetpack-ai-voice-to-content__feedback-button",href:"https://a8c.slack.com/archives/C054LN8RNVA",target:"_blank",children:[(0,f.jsx)("span",{children:__("Provide feedback","jetpack")}),(0,f.jsx)(i.Icon,{icon:d.A,className:"icon"})]})})]})})})}},72718(e,t,n){"use strict";var r=n(94375),o=n(15210),s=n(42279);n(94533);(0,r.M)(o,{edit:s.A,save:()=>null})},59926(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(96865),o=n(86087),s=n(10067);const a=n.n(s)()("voice-to-content:use-transcription-creator"),i="voice-to-content";function c({onReady:e,onUpdate:t,onError:n}){const s=(0,o.useRef)(null),c=(0,o.useRef)(null),{processTranscription:l,cancelTranscriptionProcessing:u,isProcessingTranscription:d}=(0,r.xA)({feature:i,onReady:e,onUpdate:t,onError:t=>{if(s.current)return e(s.current);a("Transcription post-processing error: ",t)}}),p=(0,o.useCallback)(e=>{s.current=e,c.current&&l(c.current,e)},[l]),{transcribeAudio:h,cancelTranscription:m,isTranscribingAudio:g}=(0,r.E0)({feature:i,onReady:p,onError:n});return{isCreatingTranscription:g||d,createTranscription:(0,o.useCallback)((e,t)=>{if(e&&t)return c.current=t,h(e)},[h]),cancelTranscription:(0,o.useCallback)(()=>{m(),u()},[m,u])}}},22228(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(96865),o=n(74997),s=n(47143),a=n(86087),i=n(10067);const c=n.n(i)()("voice-to-content:use-transcription-inserter");function l(){const{updateBlockAttributes:e,insertBlocks:t,replaceInnerBlocks:n}=(0,s.useDispatch)("core/block-editor"),i=(0,a.useRef)([]);return{upsertTranscription:(0,a.useCallback)(s=>{c("Upserting transcription");const a=(0,r._E)({content:s||""}),l=(0,o.rawHandler)({HTML:a});for(let r=0;r<l.length;r++)if(r<i.current.length){const t=i.current[r].clientId,o=i.current[r].attributes?.content;l[r].attributes?.content&&o!==l[r].attributes?.content&&e(t,{content:l[r].attributes.content}),l[r].innerBlocks.length>0&&n(t,l[r].innerBlocks)}else t([l[r]],void 0,void 0,!0,null),i.current.push(l[r])},[i,t,e,n])}}},6751(e,t,n){"use strict";n.d(t,{e:()=>p});var r=n(85985),o=n(56427),s=n(27723),a=n(21220),i=n(57273),c=n(72326),l=n(16344),u=n(10790);const __=s.__,d=(0,r.sh)(l),p=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const r=__("Activate WordAds","jetpack",0),s=__("Activating WordAds","jetpack");return(0,u.jsx)(o.Placeholder,{icon:d,instructions:__("You'll need to activate the WordAds feature to use this block.","jetpack"),label:l.title,children:(0,u.jsxs)(a.B,{gap:"lg",direction:"column",align:"start",children:[(0,u.jsx)(c.$,{disabled:n||t,loading:t,loadingAnnouncement:s,onClick:()=>e(!0),variant:"outline",children:t?s:r}),(0,u.jsx)(i.N,{openInNewTab:!0,href:"https://jetpack.com/support/ads/",children:__("Learn more about the WordAds feature.","jetpack")})]})})}},94243(e,t,n){"use strict";n.d(t,{B:()=>a});var r=n(11876),o=n(56427),s=n(10790);const a=()=>(0,s.jsx)(o.Placeholder,{children:(0,s.jsxs)(o.Flex,{gap:2,direction:"column",style:{width:"100%"},children:[(0,s.jsxs)(o.Flex,{gap:4,children:[(0,s.jsx)(o.FlexItem,{children:(0,s.jsx)(r.A,{width:30,height:30})}),(0,s.jsx)(o.FlexBlock,{children:(0,s.jsx)(r.A,{width:"90%",height:30})})]}),(0,s.jsx)(o.Flex,{style:{marginTop:12},children:(0,s.jsx)(o.FlexBlock,{children:(0,s.jsx)(r.A,{height:30,width:"60%"})})}),(0,s.jsx)(o.Flex,{style:{marginTop:12},children:(0,s.jsx)(o.FlexBlock,{children:(0,s.jsx)(r.A,{width:150,height:50})})}),(0,s.jsx)(o.Flex,{style:{marginTop:18},children:(0,s.jsx)(o.FlexBlock,{children:(0,s.jsx)(r.A,{width:"90%",height:16})})})]})})},69462(e,t,n){"use strict";n.d(t,{H:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__,a=[{height:250,icon:(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,s.jsx)(r.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,s.jsx)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})]}),name:__("Rectangle 300x250","jetpack"),tag:"mrec",width:300,editorPadding:30},{height:90,icon:(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,s.jsx)(r.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,s.jsx)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 2-2V9c0-1.11-.9-2-2-2H9v2h4v2h-2c-1.1 0-2 .89-2 2v4h6v-2z"})]}),name:__("Leaderboard 728x90","jetpack"),tag:"leaderboard",width:728,editorPadding:60},{height:50,icon:(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,s.jsx)(r.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,s.jsx)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-4-4v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.11-.9-2-2-2H9v2h4v2h-2v2h2v2H9v2h4c1.1 0 2-.89 2-2z"})]}),name:__("Mobile Leaderboard 320x50","jetpack"),tag:"mobile_leaderboard",width:320,editorPadding:100},{height:600,icon:(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,s.jsx)(r.Path,{fill:"none",d:"M.04 0h24v24h-24V0z"}),(0,s.jsx)(r.Path,{d:"M19.04 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-14V5h14v14zm-6-2h2V7h-2v4h-2V7h-2v6h4z"})]}),name:__("Wide Skyscraper 160x600","jetpack"),tag:"wideskyscraper",width:160,editorPadding:30}]},63283(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(56427),s=n(27723),a=n(69353),i=n(10790);const __=s.__,c=({value:e,onChange:t})=>(0,i.jsx)(o.PanelBody,{title:__("Visibility","jetpack"),children:(0,i.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,className:"jetpack-wordads__mobile-visibility",checked:!!e,label:__("Hide on mobile","jetpack"),help:__("Hides this block for site visitors on mobile devices.","jetpack"),onChange:t})}),l=({attributes:{format:e,hideMobile:t},setAttributes:n})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.BlockControls,{children:(0,i.jsx)(a.A,{value:e,onChange:e=>n({format:e})})}),(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(c,{value:t,onChange:e=>n({hideMobile:!!e})})})]})},29397(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(50723),o=n(85985),s=n(94715),a=n(6751),i=n(94243),c=n(69462),l=n(63283),u=n(60651),d=n(26408),p=n(68364),h=n(90244),m=(n(42265),n(10790));const g=({attributes:e,setAttributes:t})=>{const n=(0,s.useBlockProps)(),{format:g}=e,{isLoadingModules:f,isChangingStatus:b,isModuleActive:v,changeStatus:y}=(0,o.q7)("wordads"),k=c.H.find(({tag:e})=>e===g),w=e=>{switch(e){case"leaderboard":return h;case"mobile_leaderboard":return p;case"wideskyscraper":return u;default:return d}};let x;return x=v?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l.A,{attributes:e,setAttributes:t}),(0,m.jsx)("div",{className:`wp-block-jetpack-wordads jetpack-wordads-${g}`,children:(0,m.jsx)("div",{className:"jetpack-wordads__ad",style:{width:k.width,height:k.height,backgroundImage:`url( ${w(g)} )`,backgroundSize:"cover"}})})]}):f?(0,m.jsx)(r.Ay,{children:(0,m.jsx)(i.B,{})}):(0,m.jsx)(a.e,{changeStatus:y,isModuleActive:v,isLoading:b}),(0,m.jsx)("div",{...n,children:x})}},99398(e,t,n){"use strict";var r=n(94375),o=n(16344),s=n(29397);(0,r.M)(o,{edit:s.A,save:()=>null})},69353(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),o=n(27723),s=n(69462),a=n(10790);const i=(0,o.__)("Pick an ad format","jetpack");function c({value:e,onChange:t}){return(0,a.jsx)(r.Dropdown,{placement:"bottom-start",renderToggle:({onToggle:e,isOpen:t})=>(0,a.jsx)(r.ToolbarGroup,{controls:[{icon:(0,a.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)(r.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)(r.Path,{d:"M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"})]}),title:i,onClick:e,extraProps:{"aria-expanded":t},className:"wp-block-jetpack-wordads__format-picker-icon"}]}),renderContent:({onClose:n})=>(0,a.jsx)(r.NavigableMenu,{className:"wp-block-jetpack-wordads__format-picker",children:s.H.map(({tag:o,name:s,icon:i})=>(0,a.jsx)(r.MenuItem,{className:o===e?"is-active":void 0,icon:i,isSelected:o===e,onClick:()=>{t(o),n()},role:"menuitemcheckbox",children:s},o))})})}},72398(e,t,n){"use strict";n.d(t,{m:()=>l});var r=n(1455),o=n.n(r),s=n(29491),a=n(52619),i=(n(87687),n(79366),n(42047),n(14435),n(59740),n(21929),n(80076),n(15946),n(34180),n(56414),n(51521),n(12088),n(16521),n(73391)),c=(n(24920),n(10790));function l(e){if(!i)return!1;const t=i.beta||[],n=e.replace(/jetpack\//,"");return t.includes(e)||t.includes(n)}o().use((e,t)=>{if("cors"===e.mode)return t(e);if(e.url)try{const n=new URL(e.url,location.href);if(n.protocol!==location.protocol||n.hostname!==location.hostname||n.port!==location.port)return t(e)}catch{return t(e)}return e.headers||(e.headers={}),e.headers["x-wp-api-fetch-from-editor"]="true",t(e)}),(0,a.addFilter)("blocks.registerBlockType","jetpack/label-beta-blocks-title",function(e,t){if(!l(t))return e;const{title:n,keywords:r}=e,o="(beta)",s="beta",a={...e};return n&&(a.title=n.toLowerCase().endsWith(o)?n:`${e.title} ${o}`),Array.isArray(r)&&(a.keywords=r.includes(s)?r:[...r,s]),a});const u=(0,s.createHigherOrderComponent)(e=>t=>{if(t?.clientRootId)return(0,c.jsx)(e,{...t});const{name:n}=t;return l(n)?(0,c.jsx)(e,{...t,className:"is-beta-extension"}):(0,c.jsx)(e,{...t})},"withBetaClassName");(0,a.addFilter)("editor.BlockListBlock","jetpack/label-beta-extensions",u)},24430(e,t,n){"use strict";var r=n(35750),o=n(74997),s=n(27723);const __=s.__,a={name:"descript",title:"Descript",icon:r.QB,keywords:[__("descript","jetpack")],description:__("Embed a Descript Item.","jetpack"),patterns:[/^https:\/\/share.descript.com\/(view|embed)\/\w+/i],attributes:{providerNameSlug:"descript",responsive:!0}};(0,o.registerBlockVariation)("core/embed",a)},30710(e,t,n){"use strict";var r=n(35750),o=n(52619),s=n(27723);const __=s.__,_x=s._x,a={name:"facebook",title:__("Facebook Embed","jetpack"),icon:{src:r.ik},keywords:[_x("social","block search term","jetpack")],description:__("Embed a Facebook post.","jetpack"),patterns:[/^https?:\/\/www\.facebook.com\/.+/i],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}};(0,o.addFilter)("blocks.registerBlockType","reactivateFacebookEmbedBlockVariation",function(e,t){if("core/embed"!==t||!e.variations)return e;const n=e.variations.filter(e=>e.name!==a.name);return e.variations=[...n,a],e})},80076(e,t,n){"use strict";n(30710),n(65052),n(43887),n(60068),n(24430),n(24260)},65052(e,t,n){"use strict";var r=n(35750),o=n(52619),s=n(27723),a=n(21604);const __=s.__,_x=s._x,i={name:"instagram",title:__("Instagram Embed","jetpack"),icon:{src:r.oW},keywords:[_x("image","block search term","jetpack"),_x("social","block search term","jetpack")],description:__("Embed an Instagram post.","jetpack"),patterns:[/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i],attributes:{providerNameSlug:"instagram",responsive:!0}};(0,o.addFilter)("blocks.registerBlockType","reactivateInstagramEmbedBlockVariation",function(e,t){if("core/embed"!==t||!e.variations||!(0,a.A)())return e;const n=e.variations.filter(e=>e.name!==i.name);return e.variations=[...n,i],e})},43887(e,t,n){"use strict";var r=n(35750),o=n(74997),s=n(27723);const __=s.__,a={name:"loom",title:"Loom",icon:r.T3,keywords:[__("video","jetpack")],description:__("Embed a Loom video.","jetpack"),patterns:[/^https?:\/\/(www\.)?loom\.com\/share\/.+/i],attributes:{providerNameSlug:"loom",responsive:!0}};(0,o.registerBlockVariation)("core/embed",a)},60068(e,t,n){"use strict";var r=n(35750),o=n(74997),s=n(27723);const __=s.__,a={name:"smartframe",title:"SmartFrame",icon:r.M4,keywords:[__("smartframe","jetpack")],description:__("Embed a SmartFrame Image.","jetpack"),patterns:[/^https?:\/\/(.*?).smartframe.(io|net)\/.*/i],attributes:{providerNameSlug:"smartframe",responsive:!0}};(0,o.registerBlockVariation)("core/embed",a)},24260(e,t,n){"use strict";var r=n(94715),o=n(74997),s=n(29491),a=n(47143),i=n(52619),c=n(27723),l=n(74628),u=n(17900),d=n(47960),p=n(10790);const __=c.__,h=(0,s.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:s,isSelected:i}=t;if("core/embed"!==n)return(0,p.jsx)(e,{...t});if(!(s?.url?.match(/^https?:\/\/(?:video\.wordpress\.com\/[ve]\/|videopress\.com\/[ve]\/)[a-zA-Z\d]{8}/)||"videopress"===s?.providerNameSlug))return(0,p.jsx)(e,{...t});const{replaceBlock:c}=(0,a.dispatch)("core/block-editor");return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e,{...t}),i&&(0,p.jsx)(r.InspectorControls,{children:(0,p.jsxs)("div",{className:"wp-block-videopress-video-transform",style:{padding:"16px"},children:[(0,p.jsx)("div",{className:"components-notice is-info",children:(0,p.jsx)("div",{className:"components-notice__content",children:__("You can transform this post's video blocks to the new VideoPress block to take advantage of new features.","jetpack")})}),(0,p.jsx)("div",{style:{marginTop:"8px"},children:(0,p.jsx)("button",{className:"components-button is-primary",onClick:()=>{const e=s.url,n=s.guid||(0,d.QW)(e),r=(0,o.createBlock)("videopress/video",{src:e,id:s.id||null,guid:n,title:s.title||"",caption:s.caption||"",isVideoPressExample:!1,autoplay:!1,controls:!0,muted:!1,playsinline:!0,preload:"metadata",useAverageColor:!0,poster:s.poster||"",loop:!1,videoPressTracks:[],className:s.className||"",align:s.align||"",rating:"",allowDownload:!1,privacySetting:l.NF.SITE_DEFAULT,url:(0,u.e)(n,{autoplay:!1,controls:!0,loop:!1,muted:!1,playsinline:!0,poster:s.poster||"",preload:"metadata",useAverageColor:!0})});c(t.clientId,r)},children:__("Transform to VideoPress block","jetpack")})})]})})]})},"withVideoPressSettings");(0,i.addFilter)("editor.BlockEdit","jetpack/videopress-embed-settings",h)},26760(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(96865),o=n(56427),s=n(86087),a=n(27723),i=n(10790);const __=a.__;function c({clickHandler:e,showButtonText:t=!1}){const n=(0,s.useCallback)(()=>{e?.()},[e]),a=t?__("Generate","jetpack"):"";return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(o.ToolbarButton,{showTooltip:!0,onClick:n,label:__("Generate with AI","jetpack"),icon:r.cj,children:a})})}},24255(e,t,n){"use strict";n.d(t,{Mb:()=>o,TC:()=>s,tF:()=>r});const r="site-logo-block-extension",o="block-editor",s="ai-assistant-site-logo-support"},15946(e,t,n){"use strict";var r=n(96865),o=n(94715),s=n(74997),a=n(29491),i=n(47143),c=n(86087),l=n(52619),u=n(48499),d=n(26760),p=n(24255),h=n(10790);const m=(0,a.createHigherOrderComponent)(e=>t=>{const[n,s]=(0,c.useState)(!1),{setLogo:a}=(()=>{const e=(0,i.useDispatch)("core").editEntityRecord,t=(0,c.useCallback)(t=>{e("root","site",void 0,{site_logo:t})},[e]),n=(0,c.useCallback)(t=>{e("root","site",void 0,{site_icon:t})},[e]);return{setLogo:(0,c.useCallback)((e,r)=>{t(e),r&&n(e)},[t,n])}})(),l=t?.attributes?.shouldSyncIcon||!1,u=(0,c.useCallback)(()=>{s(!0)},[]),m=(0,c.useCallback)(()=>{s(!1)},[]),g=(0,c.useCallback)(e=>{e&&a(e,l)},[a,l]);(0,c.useEffect)(()=>()=>{m()},[m]);const f=(()=>{const e=(0,i.useSelect)(e=>e("core").getEntityRecord("root","site"),[]);return{ID:parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId),URL:e?.url,domain:window?.Jetpack_Editor_Initial_State?.siteFragment,name:e?.title,description:e?.description,siteLogo:e?.site_logo||0}})();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(e,{...t}),(0,h.jsx)(o.BlockControls,{group:"block",children:(0,h.jsx)(d.A,{showButtonText:!f?.siteLogo,clickHandler:u})}),(0,h.jsx)(r.Tg,{isOpen:n,onClose:m,onApplyLogo:g,context:p.Mb,placement:p.tF,siteDetails:f})]})},"SiteLogoEditWithAiComponents");function g(e){if("core/site-logo"!==e)return!1;if(!(0,s.getBlockType)("jetpack/ai-assistant"))return!1;if(!(0,u.C)(p.TC))return!1;return!((0,i.select)("core/edit-post")?.getHiddenBlockTypes?.()??[]).includes("jetpack/ai-assistant")}(0,l.addFilter)("blocks.registerBlockType","jetpack/site-logo-with-ai-support",function(e,t){return g(t)?{...e,edit:m(e.edit)}:e},100)},34180(e,t,n){"use strict";var r=n(74997),o=n(52619),s=n(94250);const a={from:[{type:"block",isMultiBlock:!1,blocks:["core/legacy-widget"],isMatch:({idBase:e,instance:t})=>!!t?.raw&&"jetpack_widget_social_icons"===e,transform:({instance:e})=>{let t=[];return e.raw.icons.forEach(e=>{const n=new URL(e.url.includes(":")?e.url:"https://"+e.url),o=n.hostname?n.hostname:n.protocol,a=s.A.find(e=>o.includes(e.url)||e.url.includes(o)),i=(0,r.createBlock)("core/social-link",{service:a?a.name:"chain",url:e.url});t=[...t,i]}),(0,r.createBlock)("core/social-links",{},t)}}]};(0,o.addFilter)("blocks.registerBlockType","addTransformToSocialLinksWidget",function(e,t){return"core/social-links"!==t||(e.transforms=a),e})},94250(e,t,n){"use strict";n.d(t,{A:()=>r});const r=[{name:"wordpress",url:["wordpress."]},{name:"fivehundredpx",url:["500px.com"]},{name:"amazon",url:["amazon."]},{name:"bandcamp",url:["bandcamp.com"]},{name:"behance",url:["behance.net"]},{name:"codepen",url:["codepen.io"]},{name:"deviantart",url:["deviantart.com"]},{name:"dribbble",url:["dribbble.com"]},{name:"dropbox",url:["dropbox.com"]},{name:"etsy",url:["etsy.com"]},{name:"facebook",url:["facebook.com"]},{name:"flickr",url:["flickr.com"]},{name:"foursquare",url:["foursquare.com"]},{name:"goodreads",url:["goodreads.com"]},{name:"google",url:["google."]},{name:"github",url:["github.com"]},{name:"instagram",url:["instagram.com"]},{name:"lastfm",url:["last.fm"]},{name:"linkedin",url:["linkedin.com"]},{name:"mail",url:["mailto:"]},{name:"linkedin",url:["linkedin.com"]},{name:"mastodon",url:["mastodon.social"]},{name:"meetup",url:["meetup.com"]},{name:"medium",url:["medium.com"]},{name:"patreon",url:["patreon.com"]},{name:"pinterest",url:["pinterest."]},{name:"reddit",url:["reddit.com"]},{name:"snapchat",url:["snapchat.com"]},{name:"soundcloud",url:["soundcloud.com"]},{name:"spotify",url:["spotify.com"]},{name:"telegram",url:["telegram.me","t.me"]},{name:"tiktok",url:["tiktok.com"]},{name:"tumblr",url:["tumblr.com"]},{name:"twitch",url:["twitch.tv"]},{name:"twitter",url:["twitter.com"]},{name:"vimeo",url:["vimeo.com"]},{name:"vk",url:["vk.com"]},{name:"yelp",url:["yelp.com"]},{name:"youtube",url:["youtube.com"]}]},56664(e,t,n){"use strict";n.d(t,{b:()=>a,j:()=>s});var r=n(86087),o=n(10790);const s=(0,r.createContext)(),a=({onBannerVisibilityChange:e,hasParentBanner:t,children:n})=>(0,o.jsx)(s.Provider,{value:{onBannerVisibilityChange:e,hasParentBanner:t},children:n})},56414(e,t,n){"use strict";var r=n(85985),o=n(98490),s=n.n(o),a=n(52619),i=n(27723),c=n(24534),l=n(44804),u=n(4643),d=n(3120);n(22734);const __=i.__,p=[];(0,a.addFilter)("blocks.registerBlockType","jetpack/paid-block",(e,t)=>((0,r.W4)(t)&&(p.includes(t)||p.push(t),e.keywords=[...new Set([...e.keywords,"premium",__("premium","jetpack")])],(0,r.sH)(t)||(e.icon=(0,u.A)(e.icon)),e.attributes.shouldDisplayFrontendBanner||(e.attributes.shouldDisplayFrontendBanner={type:"boolean",default:!0}),"core/cover"!==t&&(e.supports={...e.supports,__experimentalExposeControlsToChildren:!0})),e)),(0,a.addFilter)("blocks.registerBlockType","jetpack/paid-block-with-upgrade-banner",d.e),(0,a.addFilter)("editor.MediaPlaceholder","jetpack/paid-block-media-placeholder",c.A),(0,a.addFilter)("editor.MediaReplaceFlow","jetpack/paid-block-media-placeholder",l.A),s()(function(){(0,r.Dk)()&&document.body.classList.add("jetpack-enable-upgrade-nudge")})},24534(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(85985),o=n(94715),s=n(29491),a=n(86087),i=n(333),c=n(56664),l=n(10790);const u=(0,s.createHigherOrderComponent)(e=>t=>{const{name:n}=(0,o.useBlockEditContext)(),s=(0,r.GT)(n);if(!s?.mediaPlaceholder||!(0,r.W4)(n))return(0,l.jsx)(e,{...t});const{fileType:u}=s,{onError:d}=t,{onBannerVisibilityChange:p}=(0,a.useContext)(c.j),h=(0,a.useCallback)(e=>p(e?.length&&(0,i.wc)(e[0],u)),[u,p]),m=(0,a.useCallback)(e=>{const t=e?.[0]?.props?.children;return(0,i.wc)(t,u)?h([t]):d(e)},[h,u,d]);return(0,l.jsx)("div",{className:"paid-block-media-placeholder",children:(0,l.jsx)(e,{...t,onFilesPreUpload:h,onError:m})})},"withMediaPlaceholderUpgradable")},44804(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(85985),o=n(94715),s=n(29491),a=n(86087),i=n(333),c=n(56664),l=n(10790);const u=(0,s.createHigherOrderComponent)(e=>t=>{const{name:n}=(0,o.useBlockEditContext)(),s=(0,r.GT)(n),u=(0,a.useRef)(void 0);if(!s?.mediaReplaceFlow||!(0,r.W4)(n))return(0,l.jsx)(e,{...t});const{fileType:d}=s,{onBannerVisibilityChange:p}=(0,a.useContext)(c.j);return(0,l.jsx)(e,{...t,onFilesUpload:e=>{u.current=e?.length?e[0]:null,p(e?.length&&(0,i.wc)(e[0],d))},createNotice:(e,n,r)=>{if((0,i.wc)(u.current,d))return u.current=null,null;t.createNotice(e,n,r)}})},"withMediaReplaceFlowUpgradable")},51333(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=({cx:e=0,cy:t=0,r:n=4,fill:s="#e34c84",stroke:a="#ffffff",strokeWidth:i="2"})=>(0,o.jsx)(r.SVG,{className:"jetpack-paid-block-symbol",children:(0,o.jsx)(r.Circle,{cx:e,cy:t,r:n,fill:s,stroke:a,strokeWidth:i})});n.dn(s)},4643(e,t,n){"use strict";n.d(t,{A:()=>i,K:()=>c});var r=n(85985),o=n(51333),s=n(10790);const a=e=>{const t=(0,s.jsx)(o.A,{},"paid-symbol");return e?.src?{...e,src:(0,s.jsxs)(s.Fragment,{children:[e.src,t]})}:(0,s.jsxs)(s.Fragment,{children:[e,t]})},i=a;function c(e,t){return(0,r.W4)(e)?a(t):t}},26845(e,t,n){"use strict";n.d(t,{Ay:()=>d});var r=n(85985),o=n(82201),s=n(47143),a=n(27723),i=n(10790);const __=a.__,_x=a._x,c=__("Premium Block","jetpack"),/** translators: %s: name of the plan. */ | |
| 151 | +l=__("Upgrade to %s to use this premium block","jetpack"),u=(__("Upgrade your plan to use this premium block","jetpack"),_x("Upgrade","Call to action to buy a new plan","jetpack")),d=({onRedirect:e,align:t,className:n,title:d=c,description:p=null,buttonText:h=u,visible:m=!0,requiredPlan:g,context:f})=>{const[b,v,y]=(0,r._6)(g,e),k=(0,s.useSelect)(e=>{if(p)return p;const t=e("wordpress-com/plans"),n=t&&t.getPlan(g);return n?(0,a.sprintf)(l,n.product_name_short):null},[p,g]);return k&&(0,i.jsx)(o.cb,{align:t,buttonText:h,checkoutUrl:b,className:n,context:f,description:k,goToCheckoutPage:v,isRedirecting:y,title:d,visible:m})}},23887(e,t,n){"use strict";n.d(t,{W:()=>r,r:()=>o});const r=({plan:e,blockName:t,context:n,tracks:r})=>{r.recordEvent("jetpack_editor_block_upgrade_click",{plan:e,block:t,context:n})},o=({plan:e,blockName:t,context:n,tracks:r})=>{r.recordEvent("jetpack_editor_block_upgrade_banner_impression",{plan:e,block:t,context:n})}},3120(e,t,n){"use strict";n.d(t,{e:()=>h});var r=n(85985),o=n(94715),s=n(29491),a=n(47143),i=n(86087),c=n(56664),l=n(26845),u=n(23887),d=n(10790);const p=(0,s.createHigherOrderComponent)(e=>t=>{const{name:n,clientId:s,isSelected:p,attributes:h,setAttributes:m}=t||{},g=(0,r.tu)(n);if(!g)return(0,d.jsx)(e,{...t});const f=(0,r.sH)(n),b=(0,r.GT)(n),[v,y]=(0,i.useState)(!f),[k,w]=(0,i.useState)(!1),x="editor-canvas",_=(0,a.useSelect)(e=>e("core/block-editor").hasSelectedInnerBlock(s,!0),[s]),{hasParentBanner:j}=(0,i.useContext)(c.j)||{},C=(p||_)&&v&&!j,{tracks:A}=(0,r.st)(),S=(0,i.useMemo)(()=>({plan:g,blockName:n,context:x,tracks:A}),[g,n,A]);(0,i.useEffect)(()=>{C&&w(!0)},[C,w]),(0,i.useEffect)(()=>{!k&&C&&(0,u.r)(S)},[k,S,C]),(0,i.useEffect)(()=>y(!f),[h,y,f]),(0,i.useEffect)(()=>{m({shouldDisplayFrontendBanner:!j})},[m,j]);const E=(0,o.useBlockProps)();return(0,d.jsx)(c.b,{onBannerVisibilityChange:y,hasParentBanner:C,children:(0,d.jsxs)("div",{ref:E.ref,style:{maxWidth:"unset"},children:[(0,d.jsx)(l.Ay,{className:`is-${n.replace(/\//,"-")}-paid-block`,title:null,align:h?.align,visible:C,description:b?.description,requiredPlan:g,context:x,onRedirect:()=>(0,u.W)(S)}),(0,d.jsx)(e,{...t})]})})},"withUpgradeBanner");function h(e,t){return(0,r.tu)(t)?{...e,edit:p(e.edit)}:e}},76047(e,t,n){"use strict";n.d(t,{k6:()=>s,s6:()=>r,wb:()=>o});const r="jetpack-sidebar",o="document-settings",s="pre-publish"},23162(e,t,n){"use strict";n.d(t,{A:()=>M});var r=n(96865),o=n(85985),s=n(82201),a=n(56427),i=n(3582),c=n(47143),l=n(43656),u=n(52619),d=n(27723),p=n(57273),h=n(10067),m=n.n(h),g=n(51609),f=n(44732),b=n(48499),v=n(44978),y=n(50976),k=n(81932),w=n(37215),x=n(76318),_=n(27970),j=n(41068),C=n(76047),A=n(65182),S=n(45606),E=(n(28802),n(10790));const __=d.__,T=l.PluginPrePublishPanel,N=l.PluginDocumentSettingPanel,P=m()("jetpack-ai-assistant-plugin:sidebar"),B=()=>({usagePanel:(0,b.C)("ai-assistant-usage-panel"),featuredImage:(0,b.C)("ai-featured-image-generator"),titleOptimization:(0,b.C)("ai-title-optimization"),titleOptimizationKeywords:(0,b.C)("ai-title-optimization-keywords-support"),feedback:(0,b.C)("ai-assistant-support")}),I=({placement:e,requireUpgrade:t,upgradeType:n,showUsagePanel:o,showFairUsageNotice:s})=>{const{checkoutUrl:i}=(0,r.ON)(),{productPageUrl:d}=(0,f.A)(),h=(0,k.Ul)(),m=(0,k.GB)()&&h,{usagePanel:b,featuredImage:v,titleOptimization:j,titleOptimizationKeywords:C,feedback:A}=B(),T=(0,c.useSelect)(e=>e(l.store).isEditedPostEmpty(),[]),{editPost:N}=(0,c.useDispatch)(l.store),P=(0,g.useCallback)(e=>{N({featured_media:e.id})},[N]),I=(0,g.useMemo)(()=>{const n=(0,u.applyFilters)("jetpack.ai.imageGenerationHandler",null,{entryPoint:"featured-image",onImageSelect:P,extra:{placement:e,disabled:t}});return"function"==typeof n?n:null},[P,e,t]),M=__("Optimize Publishing","jetpack"),R=__("Optimize Title","jetpack"),L=C?R:M;return(0,E.jsxs)(E.Fragment,{children:[s&&(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__feature-section",children:(0,E.jsx)(a.BaseControl,{__nextHasNoMarginBottom:!0,children:(0,E.jsx)(r.QA,{variant:"muted"})})}),T&&(m||j||A)&&(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__warning-content",children:(0,E.jsx)(a.Notice,{isDismissible:!1,status:"warning",children:__("The following features require content to work.","jetpack")})}),m&&(0,E.jsx)(a.PanelRow,{children:(0,E.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,E.jsx)(a.BaseControl.VisualLabel,{children:__("Write Brief (Beta)","jetpack")}),(0,E.jsx)(y.Lx,{})]})}),j&&(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__feature-section",children:(0,E.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,E.jsx)(a.BaseControl.VisualLabel,{children:L}),(0,E.jsx)(x.A,{placement:e,busy:!1,disabled:t})]})}),(I||v)&&(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__feature-section",children:(0,E.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,E.jsx)(a.BaseControl.VisualLabel,{children:__("Get Featured Image","jetpack")}),I?(0,E.jsx)(a.Button,{onClick:I,variant:"secondary",disabled:t,children:__("Generate image","jetpack")}):(0,E.jsx)(r.m2,{busy:!1,disabled:t,placement:e})]})}),A&&(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__feature-section",children:(0,E.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,E.jsx)(a.BaseControl.VisualLabel,{children:__("Get Feedback","jetpack")}),(0,E.jsx)(w.A,{placement:e,busy:!1,disabled:t})]})}),t&&!o&&(0,E.jsx)(a.PanelRow,{children:(0,E.jsx)(S.A,{placement:e,type:n,upgradeUrl:i})}),b&&o&&(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__feature-section",children:(0,E.jsx)(_.A,{placement:e})}),(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__external-link",children:(0,E.jsx)(p.N,{openInNewTab:!0,href:d,children:__("Learn more about Jetpack AI","jetpack")})}),(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__external-link",children:(0,E.jsx)(p.N,{openInNewTab:!0,href:"https://jetpack.com/redirect/?source=jetpack-ai-feedback",children:__("Give us feedback","jetpack")})}),(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__external-link",children:(0,E.jsx)(p.N,{openInNewTab:!0,href:"https://jetpack.com/redirect/?source=ai-guidelines",children:__("AI guidelines","jetpack")})}),(0,k.GB)()&&!h&&(0,E.jsx)(a.PanelRow,{className:"jetpack-ai-sidebar__external-link",children:(0,E.jsx)(p.N,{openInNewTab:!0,href:"https://jetpack.com/support/publish-better-content-with-write-brief-with-ai/",children:__("Update on Write Brief (Beta)","jetpack")})})]})};function M(){const{requireUpgrade:e,upgradeType:t,currentTier:n,isOverLimit:u}=(0,r.yM)(),{tracks:d}=(0,o.st)(),p=(0,c.useSelect)(e=>{const t=e(l.store).getCurrentPostType(),n=e(i.store).getPostType(t);return n?.viewable},[]),h=(0,o.Bd)(n),{isVisible:m,isDismissed:g}=(0,j.IB)(),f=(0,A.P7)(!g);if(!p)return null;const b=(0,k.Ul)(),{titleOptimization:_,feedback:S}=B(),M=m||_||S;if(g)return b?(0,E.jsx)(y.f4,{}):null;const R=__("Improve with AI","jetpack"),L=h===o._X,D=h===o.Ti&&u;return(0,E.jsxs)(E.Fragment,{children:[b&&(0,E.jsx)(y.f4,{}),(0,E.jsx)(v.A,{children:(0,E.jsx)(a.PanelBody,{title:R,initialOpen:m||f,onToggle:e=>{var t;e&&(t=C.s6,P(t),d.recordEvent("jetpack_ai_panel_open",{placement:t}))},className:"jetpack-ai-assistant-panel",children:m?(0,E.jsx)(j.Ay,{placement:C.s6}):(0,E.jsx)(I,{placement:C.s6,requireUpgrade:e,upgradeType:t,showUsagePanel:L,showFairUsageNotice:D})})}),(0,E.jsx)(N,{title:R,name:"jetpack-ai-assistant",icon:(0,E.jsx)(s.jt,{}),children:m?(0,E.jsx)(j.Ay,{placement:C.wb}):(0,E.jsx)(I,{placement:C.wb,requireUpgrade:e,upgradeType:t,showUsagePanel:L,showFairUsageNotice:D})}),M&&(0,E.jsx)(T,{title:R,icon:(0,E.jsx)(s.jt,{}),initialOpen:m,children:m?(0,E.jsx)(j.Ay,{placement:C.k6}):(0,E.jsxs)(E.Fragment,{children:[_&&(0,E.jsx)(x.A,{placement:C.k6,busy:!1,disabled:e}),S&&(0,E.jsx)(w.A,{placement:C.k6,busy:!1,disabled:e})]})})]})}(0,y.$A)()},65182(e,t,n){"use strict";n.d(t,{P7:()=>c});var r=n(47143),o=n(93832),s=n(51609);function a(){return"jetpack-ai-assistant"===(0,o.getQueryArg)(window.location.href,"openSidebar")}function i(){const e=(0,r.dispatch)("core/edit-post");e?.openGeneralSidebar?.("jetpack-sidebar/jetpack")}function c(e=!0){const t=(0,s.useMemo)(a,[])&&e;return(0,s.useEffect)(()=>{if(!t)return;const e=setTimeout(i,0);return()=>clearTimeout(e)},[t]),t}},45606(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(85985),o=n(56427),s=n(86087),a=n(27723),i=n(10790);const __=a.__;function c({onClick:e,type:t,placement:n="",currentTier:c,upgradeUrl:l}){const{tracks:u}=(0,r.st)(),d=(0,s.useCallback)(t=>{u.recordEvent("jetpack_ai_upgrade_button",{placement:n}),e?.(t)},[e,u,n]),p=c?.value&&1!==c?.value?c.limit:20,h=__("You have reached the limit of <strong>20 free</strong> requests. <button><span>Upgrade to continue generating feedback.</span></button>","jetpack"),m=(0,a.sprintf)(/* translators: %d: the request limit for the current tier/plan */ | |
| 152 | +__("You have reached the limit of <strong>%d requests</strong>. <button><span>Upgrade to continue generating feedback.</span></button>","jetpack"),p),g=(0,s.createInterpolateElement)(__("You've reached the Jetpack AI rate limit. <strong>Please reach out to your VIP account team.</strong>","jetpack"),{strong:(0,i.jsx)("strong",{})}),f=(0,s.createInterpolateElement)(20===p?h:m,{strong:(0,i.jsx)("strong",{}),button:(0,i.jsx)(o.Button,{variant:"link",onClick:d,href:l,target:"_blank"}),span:(0,i.jsx)("span",{})});return(0,i.jsx)("p",{children:"vip"===t?g:f})}},1661(e,t,n){"use strict";n.d(t,{S:()=>r});const r="jetpack-ai-breve"},27180(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(85985),o=n(94715),s=n(56427),a=n(29491),i=n(47143),c=n(27723),l=n(51609),u=n(29526),d=n(59958),p=n(80555),h=n(81932),m=n(36205),g=(n(34523),n(10790));const __=c.__,f=(0,a.compose)((0,i.withSelect)(e=>({blocks:e(o.store).getBlocks(),disabledFeatures:e(d.M).getDisabledFeatures()})))(({blocks:e,disabledFeatures:t})=>{const[n,o]=(0,l.useState)(null),{toggleFeature:c,toggleProofread:d,setPopoverHover:f,setHighlightHover:b,setPopoverAnchor:v}=(0,i.useDispatch)("jetpack/ai-breve"),{tracks:y}=(0,r.st)(),k=(0,i.useSelect)(e=>e("jetpack/ai-breve").isProofreadEnabled(),[]),w=(0,l.useCallback)(()=>{if(!k)return;const t=(0,m.M)(e),n=(0,p.A)(t),r="number"==typeof n?n.toFixed(2):null;o(r)},[e,k]),x=(0,a.useDebounce)(w,250),_=(0,l.useCallback)(e=>t=>{y.recordEvent("jetpack_ai_breve_feature_toggle",{type:e,on:t}),c(e,t)},[y,c]),j=(0,l.useCallback)(()=>{y.recordEvent("jetpack_ai_breve_toggle",{on:!k}),d()},[y,k,d]);return(0,l.useEffect)(()=>{x()},[x]),(e=>{const[t,n]=(0,l.useState)(!1);t||(e(),n(!0))})(w),(0,l.useEffect)(()=>{f(!1),b(!1),v({target:null,virtual:null})},[f,b,v,k,t]),(0,g.jsxs)("div",{className:"jetpack-ai-proofread",children:[(0,g.jsx)(s.PanelRow,{children:(0,g.jsx)(s.BaseControl,{__nextHasNoMarginBottom:!0,children:(0,g.jsx)(s.ToggleControl,{checked:k,onChange:j,label:__("Show issues & suggestions","jetpack"),__nextHasNoMarginBottom:!0})})}),k&&(0,g.jsx)(s.PanelRow,{children:(0,g.jsxs)(s.Card,{size:"small",className:"jetpack-ai__write-brief-card",children:[(0,g.jsx)(s.CardBody,{size:"small",children:(0,g.jsx)(s.BaseControl,{__nextHasNoMarginBottom:!0,children:(0,g.jsx)("div",{className:"feature-checkboxes-container",children:u.A.map(e=>(0,h.Ur)(e.config.name)&&(0,g.jsx)(s.CheckboxControl,{className:k?"":"is-disabled",disabled:!k,"data-breve-type":e.config.name,label:e.config.title,checked:!t.includes(e.config.name),onChange:_(e.config.name),__nextHasNoMarginBottom:!0},e.config.name))})})}),(0,g.jsx)(s.CardFooter,{size:"small",className:"jetpack-ai-proofread__grade-level-container",children:null===n?(0,g.jsx)("p",{className:"jetpack-ai-proofread__help-text",children:__("Write to see your grade level.","jetpack")}):(0,g.jsxs)("div",{className:"jetpack-ai-proofread__grade-label",children:[n," ",__("Reading grade score","jetpack")]})})]})})]})})},64949(e,t,n){"use strict";n.d(t,{Ay:()=>l,jp:()=>i,zz:()=>a});var r=n(27723),o=n(53817),s=n(80811);const __=r.__,a=s.A,i={name:"complex-words",title:__("Complex words","jetpack"),tagName:"span",className:"jetpack-ai-breve__has-proofread-highlight--complex-words",defaultEnabled:!0},c=new RegExp(`\\b(${Object.keys(s.A).map(o.N).join("|")})\\b`,"gi");function l(e){const t=e.matchAll(c),n=[];for(const e of t){const t=e[0].trim();n.push({text:t,suggestion:s.A[t],startIndex:e.index,endIndex:e.index+t.length})}return n}},80811(e,t,n){"use strict";n.d(t,{A:()=>r});const r={"a and/or b":"a or b or both","able to":"can",accompany:"go with",accomplish:"do",accorded:"given",accordingly:"so",accrue:"add",accurate:"correct",activate:"turn on",additional:"more",address:"discuss","adjacent to":"next to",administer:"manage",advantageous:"helpful","adversely impact on":"hurt",advise:"recommend","afford an opportunity":"allow",aircraft:"plane",allocate:"divide","allows you to":"lets you",alternative:"other",anticipate:"expect","a number of":"some",apparent:"clear",appreciable:"many",approximate:"about","arrive onboard":"arrive","as a means of":"to",ascertain:"find out",assist:"help","associated with":"part of",attain:"meet",attempt:"try","at the present time":"now",begin:"start",benefit:"help","by means of":"by",cannot:"can't",capability:"ability",caveat:"warning","close proximity":"near","combat environment":"combat",combined:"joint",complete:"finish","comply with":"follow",component:"part",comprise:"form",concerning:"about",configure:"set up",consequently:"so",consolidate:"combine",constitutes:"is",contains:"has",convene:"meet",credentials:"username and password",currently:"now",customizations:"changes",customize:"edit",deactivate:"turn off",deem:"consider",delete:"cut",demonstrate:"show",depart:"leave",designate:"appoint",desire:"want",determine:"decide",disable:"turn off",disclose:"show",discontinue:"stop",display:"show",disseminate:"give","due to the fact that":"since","due to the fact":"since","during the period":"during","e.g.":"like","effect modifications":"make changes",elect:"choose",eliminate:"cut",employ:"use",enable:"turn on","enables you to":"lets you",encounter:"meet",endeavor:"try",ensure:"make sure",enumerate:"count",equipments:"equipment",equitable:"fair",establish:"prove",evidenced:"showed",evident:"clear",exhibit:"show",expedite:"speed up",expeditious:"fast",expend:"spend",expertise:"ability",expiration:"end",facilitate:"help","failed to":"didn't",feasible:"workable",females:"women",finalize:"finish",following:"next","for a period of":"for","for example,______etc.":"for example",forfeit:"lose",forward:"send",frequently:"often",function:"role",furnish:"give","gives you the ability to":"lets you","has a requirement for":"needs","he or she":"they",herein:"here",heretofore:"until now",herewith:"below","his or her":"their",however:"but",identical:"same",identify:"find",immediately:"at once",impacted:"affected","in a timely manner":"on time","in accordance with":"by","in addition":"also","in an effort to":"to","in conjunction with":"at the same time","in lieu of":"instead of","in order that":"for","in order to":"to","in regard to":"about","in relation to":"about","in the amount of":"for","in the event of":"if","in the near future":"soon","in view of":"since","in view of the above":"so","inasmuch as":"since",inception:"start","incumbent upon":"must",indicate:"show",indication:"sign",initial:"first",initiate:"start",input:"enter","interpose no objection":"don't object","is applicable to":"applies to","is authorized to":"may","is in consonance with":"agrees with","it appears":"seems",liaison:"discussion","limited number":"limits",magnitude:"size",maintain:"keep",maximum:"most",methodology:"method",methods:"ways",minimize:"decrease",minimum:"least",modify:"change",monitor:"check",necessitate:"need",notify:"tell","not later than 10 May":"by 10 May","not later than 1600":"by 1600",notwithstanding:"still",numerous:"many",objective:"aim",obligate:"bind",observe:"see",operate:"run",optimization:"improvement",optimize:"improve",optimum:"best",option:"choice",parameters:"limits",participate:"take part",perform:"do",permit:"let","pertaining to":"about",portion:"part",possess:"have",practicable:"practical",preceding:"before",preclude:"prevent",present:"show",previous:"earlier",previously:"before",prioritize:"rank","prior to":"before",proceed:"do",proficiency:"skill",promulgate:"issue",provide:"give","provided that":"if","provides guidance for":"guides",purchase:"buy","pursuant to":"by",receive:"get",reflect:"show",regarding:"about","relative to":"about",relocate:"move",remain:"stay",remainder:"rest",remuneration:"pay",render:"give",represents:"is",request:"ask",require:"must","required to":"need to",requirement:"need",reside:"live",retain:"keep",selection:"choice","set forth in":"in","similar to":"like",simultaneously:"at the same time",solicit:"ask for","state-of-the-art":"latest",subject:"the",submit:"send",subsequent:"later",subsequently:"after",substantial:"large","such as":"like",sufficient:"enough",terminate:"end","the system":"we","the undersigned":"I",therefore:"so",therein:"there",thereof:"its",timely:"prompt","to be able to":"to",transaction:"order",transmit:"send","unable to":"can't","under the provisions of":"under","until such time as":"until",utilize:"use",url:"link",validate:"confirm",viable:"workable",vice:"instead of",warrant:"permit",whereas:"since","with reference to":"about","with the exception of":"except for",witnessed:"saw","x and/or y":"x, y, or both"}},87453(e,t,n){"use strict";function r(){const e=document.querySelector('iframe[name="editor-canvas"]'),t=e?.contentDocument||e?.contentWindow?.document;return{foundContainer:t?.body||document.querySelector(".edit-post-visual-editor > div"),foundIframe:!!e}}n.d(t,{A:()=>r})},95073(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(96865),o=n(47143),s=n(59958),a=n(87453),i=n(65634),c=n(29526);let l,u,d=!localStorage.getItem("jetpack-ai-breve-first-hover");function p(e){if(e===document.body||null===e)return null;const t=e.getAttribute("data-breve-type");return c.A.map(({config:e})=>e.name).includes(t)?e:p(e.parentElement)}async function h(e){if(d){await(0,r.Fs)(),d=!1,localStorage.setItem("jetpack-ai-breve-first-hover","false");if(window.innerWidth<600)return}clearTimeout(l),clearTimeout(u);const t=(0,o.select)(s.M);u=setTimeout(()=>{if(t.isPopoverHover())return;const n=p(e.target);if(!n)return;let r=n;if(n.getAttribute("data-breve-type")===i.S.name){const t=n.getBoundingClientRect(),o=0===e.clientY-Math.floor(t.top)?10:0;r={getBoundingClientRect:()=>({top:e.clientY+o,left:e.clientX,bottom:e.clientY,right:e.clientX,width:0,height:0,x:e.clientX,y:e.clientY}),contextElement:e.target}}(0,o.dispatch)("jetpack/ai-breve").setHighlightHover(!0),(0,o.dispatch)("jetpack/ai-breve").setPopoverAnchor({target:n,virtual:r})},500)}function m(){clearTimeout(l),clearTimeout(u),l=setTimeout(()=>{(0,o.dispatch)("jetpack/ai-breve").setHighlightHover(!1)},100)}function g(e){const{foundContainer:t}=(0,a.A)(),n=`block-${e}`,r=t?.querySelector?.(`#${n}`);c.A.forEach(({config:e})=>{const t=r?.querySelectorAll?.(`[data-breve-type='${e.name}']`);t&&t?.length>0&&t.forEach(e=>{e?.removeEventListener?.("mouseover",h),e?.addEventListener?.("mouseover",h),e?.removeEventListener?.("mouseleave",m),e?.addEventListener?.("mouseleave",m)})})}},29526(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(27723),o=n(64949),s=n(65634),a=n(8589),i=n(39e3);const __=r.__,c=[{config:a.rp,highlight:a.Ay,description:__("Fix spelling mistakes.","jetpack")},{config:o.jp,highlight:o.Ay,dictionary:o.zz,description:__("Use simple, direct words.","jetpack")},{config:s.S,highlight:s.A,description:__("Long sentences are hard to read.","jetpack")},{config:i.E,highlight:i.A,description:__("Remove weasel words.","jetpack")}]},65634(e,t,n){"use strict";n.d(t,{A:()=>i,S:()=>s});var r=n(27723),o=n(53817);const s={name:"long-sentences",title:(0,r.__)("Long sentences","jetpack"),tagName:"span",className:"jetpack-ai-breve__has-proofread-highlight--long-sentences",defaultEnabled:!0},a=/[^\s][^.!?]+[.!?]+/g;function i(e){const t=[],n=e.match(a);if(!n)return t;return[...new Set(n.filter(e=>e.split(/\s+/).length>20))].forEach(n=>{const r=new RegExp((0,o.N)(n),"gi"),s=e.matchAll(r);for(const e of s)t.push({text:n,startIndex:e.index,endIndex:e.index+n.length})}),t}},83514(e,t,n){"use strict";n.d(t,{A:()=>r});const r="\nAkismet\nAutomattic\nAutomattician\nAutomatticians\nbbPress\nBuddyPress\nCloudup\nCrowdsignal\nGravatar\nJetpack\nLongreads\nMullenweg\nNewspack\nPressable\nSensei\nSimplenote\nTumblr\nVideoPress\nWooCommerce\nWordCamp\nWPScan\n"},47716(e,t,n){"use strict";n.d(t,{A:()=>r});const r=["Barilla\nBurger\nCoca\nCola\nDanone\nDominos\nEsso\nFanta\nHeineken\nHelloFresh\nHäagen\nDazs\nKelloggs\nMilka\nNestlé\nNutella\nPepsi\nStarbucks\nKing\nMcDonalds\nKat\nSprite\nDrPepper\nAbsolut\n","Amex\nBradesco\nCiti\nGoldman\nSachs\nLloyds\nMercadoPago\nNubank\nPagSeguro\nPayPal\nRevolut\nSantander\nSquare\nStripe\nVenmo\nVisa\nMastercard\nPicPay\nAllianz\nAXA\nBlackRock\nSchwab\n","Audi\nBMW\nBenz\nFord\nHyundai\nKia\nLamborghini\nLand\nRover\nMercedes\nMitsubishi\nNissan\nPeugeot\nRenault\nSkoda\nSubaru\nTata\nToyota\nVolkswagen\nVolvo\nHonda\nTesla\nFerrari\nPorsche\nMaserati\nBentley\nRolls\nRoyce\nJaguar\nAston\nMartin\nMcLaren\nBugatti\n","Acer\nDyson\nGoPro\nHP\nHPE\nHuawei\nJBL\nLenovo\nLG\nMacintosh\nNikon\nNokia\nPhilips\nSamsung\nSony\nXiaomi\nNintendo\nAsus\nFujifilm\nFitbit\nGarmin\n","Adidas\nAsics\nBalenciaga\nBenetton\nCartier\nFila\nGucci\nHermès\nHublot\nLacoste\nLouis\nVuitton\nMango\nNike\nPuma\nRayBan\nReebok\nRolex\nSwatch\nZalando\nZara\nGiorgio\nArmani\nVersace\nPrada\nFendi\nBurberry\nRalph\nLauren\nTommy\nHilfiger\nCalvin\nKlein\nLevi\nStrauss\nTimberland\nConverse\nVans\nCrocs\nUgg\nTimberland\n","AirFrance\nBooking\nExpedia\nHilton\nHyatt\nKLM\nMarriott\nTripadvisor\nAirbnb\n","BBC\nDisney\nHBO\nNetflix\nSpotify\nTwitch\nYouTube\nHulu\nPatreon\nCrunchyroll\nFunimation\n","Bayer\nNovartis\nPfizer\nRoche\nSanofi\nGSK\nAstraZeneca\nNovavax\nModerna\nBioNTech\nSanofi\nGSK\n","Alibaba\nAmazon\nCarrefour\nEtsy\nRakuten\nTemu\nWalmart\neBay\nZalando\nBestBuy\nHomeDepot\nIkea\n","Chanel\nDior\nEstée\nLauder\nL'Oréal\nMaybelline\nNivea\nSephora\nClinique\nLancôme\nGivenchy\nEstée\n","3M\nProcter\nGamble\nUnilever\nPritt\nBristol\nJoma\n","Twilio\nDigitalOcean\nClickUp\nFastly\nAuth0\nAlgolia\nOpenAI\nGoPro\nJetBrains\nMeta\nApple\nGoogle\nFacebook\nDuckDuckGo\nInstagram\nLinkedIn\nVercel\nCalendly\nTencent\nAdobe\nIBM\nKaspersky\nMicrosoft\nOpera\nOracle\nSquarespace\nHubSpot\nZapier\nCoinbase\nBinance\nRobinhood\nActivision\nUbisoft\nRockstar\n","DoorDash\nUber\nEternal\nGrab\nSwiggy\nDeliveroo\nHelloFresh\nWolt\nBolt\nLyft\nDHL\nFedEx\nPostmates\nInstacart\nShipt\n","Tinder\nBumble\nBadoo\nOkCupid\nHinge\nMatch\nGrindr\n","Duolingo\nGrammarly\nUdemy\nPetrobras\nShell\nedX\nSkillshare\nPluralsight\nCodecademy\n","Aramco\nChevron\nEcopetrol\nExxon\n","Deloitte\nJLL\nSalesforce\nSAP\nVodafone\n","Bridgestone\nCaterpillar\nSiemens\nBASF\n"].flatMap(e=>e.trim().split("\n").filter(e=>""!==e.trim())).join("\n")},60513(e,t,n){"use strict";n.d(t,{A:()=>r});const r="Fortran\nJoomla\nLaravel\nVue\nWebpack\nWebSocket\nnpm\npnpm\nESLint\nSupabase\nGraphQL\ngRPC\nDALL\nCodeSandbox\nCodespaces\nTravisCI\nCircleCI\nKubernetes\nPrismic\nSendGrid\nVultr\nVite\nDockerfile\nMakefile\nmakefile\nJSON\nYAML\nYML\nCSV\n"},67955(e,t,n){"use strict";n.d(t,{A:()=>r});const r="Ad\nASAP\nDIY\nETA\nFYI\nInfo\nLab\nMath\nPhoto\nRSVP\nTBD\nTBA\nTGIF\nAMA\nBFF\nBRB\nBTW\nDM\nFOMO\nICYMI\nIDK\nIMO\nIRL\nIYKYK\nLOL\nNSFW\nOMG\nROFL\nSMH\nTTYL\nWTG\nYOLO\nB2B\nB2C\nCEO\nCFO\nEOD\nEOY\nFY\nHR\nKPI\nNDA\nPR\nROI\nSEO\nSME\nStats\nYOY\nAPI\nCSS\nHTML\nHTTP\nHTTPS\nIoT\nIP\nSaaS\nURL\nUX\nUI\nVPN\nWi\nFi\nACT\nBA\nBS\nCEFR\nESL\nGPA\nIELTS\nLMS\nMA\nMOOC\nMSc\nPGCE\nPhD\nPGDip\nSTEM\nTOEFL\nADHD\nAIDS\nBPM\nDNA\nHIV\nICU\nMD\nRNA\nGBP\netc\nEg\n"},58567(e,t,n){"use strict";n.d(t,{A:()=>r});const r="config\nmicroservice\nmicroservices\nfrontend\nbackend\nintegrations\ninfluencer\n"},48324(e,t,n){"use strict";n.d(t,{A:()=>r});const r="\njs\njson\nyaml\ntsx\njsx\nyml\nmd\ncss\nscss\nhtml\nxml\ncsv\nsql\npy\nrb\nphp\ncpp\nhpp\nini\nconf\nenv\ndockerfile\nmakefile\ngradle\ntoml\npdf\nsvg\npng\njpg\njpeg\ngif\nmp4\nmp3\nwebm\nogg\ndocx\nxlsx\npptx\ntxt\ntex\navi\nbat\nbmp\ndll\nexe\nflv\niso\njpg\nmov\nmpeg\nmsi\nogg\npng\nrar\nsys\ntif\ntmp\nwav\nwma\nwmv\nxls\n"},59096(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(83514),o=n(47716),s=n(60513),a=n(67955),i=n(58567),c=n(48324),l=n(26298),u=n(77467),d=n(45835),p=n(51530);const h=[r.A,o.A,s.A,c.A,l.A,u.A,d.A,p.A,a.A,i.A].flatMap(e=>e.trim().split("\n").filter(e=>""!==e.trim())).join("\n")},26298(e,t,n){"use strict";n.d(t,{A:()=>r});const r="iPhone\niPad\nMacBook\nMacintosh\n"},77467(e,t,n){"use strict";n.d(t,{A:()=>r});const r="\nAudacity\nBlender\nDaVinci\nResolve\nDreamweaver\nDropbox\nFileZilla\nGarageBand\nInDesign\nInkscape\nIntelliJ\nJira\nLibreOffice\nLightroom\nOneNote\nPhotoshop\nPostman\nPowerShell\nPremiere\nPyCharm\nReplit\nSymfony\nVSCode\nVirtualBox\nWebStorm\nWireshark\nXcode\nXD\nZsh\nContentful\nMacOS\nmacOS\nWindows\nLinux\nAndroid\niOS\niCloud\niMessage\niMovie\nNetBeans\nVLC\nAVG\nAvast\nBitdefender\nBrave\nChrome\nFirefox\nMinecraft\nSignal\nSteam\nZotero\nQuickBooks\n"},45835(e,t,n){"use strict";n.d(t,{A:()=>r});const r="\nae\naf\nag\nai\nal\nao\naq\nar\nau\naz\nba\nbb\nbd\nbg\nbh\nbj\nbm\nbn\nbo\nbq\nbr\nbs\nbt\nbv\nbw\nbz\ncd\nci\ncn\ncr\ncv\ncx\ncy\ncz\nde\ndev\ndj\ndk\ndm\nec\nedu\nee\neg\net\neu\nfi\nfj\nfk\nfm\nfo\nga\ngb\ngd\nge\ngf\ngg\ngh\ngi\ngl\ngn\ngp\ngq\ngu\ngw\ngy\nhk\nhm\nhn\nhu\nie\nil\nim\nio\niq\nir\nje\njm\njo\njp\nke\nkh\nki\nkp\nkr\nky\nkz\nlc\nli\nlk\nlr\nlt\nlu\nlv\nly\nmc\nmd\nmh\nmk\nmn\nmq\nmr\nmv\nmw\nmx\nmz\nna\nnc\nne\nnf\nng\nni\nnl\nnp\nnr\nnz\npe\nph\npn\nps\npw\npy\nqa\nro\nru\nrw\nsa\nsb\nsc\nsd\nse\nsg\nsi\nsj\nsk\nsl\nsm\nsn\nsr\nss\nsv\nsx\nsy\nsz\ntc\ntd\ntf\ntg\nth\ntj\ntk\ntl\ntm\ntt\ntv\ntz\nua\nug\nuk\nuy\nuz\nva\nvc\nve\nvg\nvn\nvu\nwf\nws\nxyz\nyt\nza\nzm\nzw\n"},51530(e,t,n){"use strict";n.d(t,{A:()=>r});const r="\nAsana\nAlexa\nBasecamp\nBluesky\nCoursera\nDouyin\nFiverr\nFigma\nGitHub\nGitLab\nGumroad\nHackerNews\nMastodon\nMessenger\nNextdoor\nOneDrive\nOutlook\nPinterest\nProductHunt\nQuora\nReddit\nSlack\nSnapchat\nStackOverflow\nSubstack\nTelegram\nThreads\nTikTok\nTrello\nTripadvisor\nTwitter\nUpwork\nVimeo\nVK\nVKontakte\nWeChat\nWeibo\nWhatsApp\nWix\nX\nXiaohongshu\nYahoo\nYouTube\nZoom\nNetlify\nGmail\nMailchimp\nCanva\nKickstarter\nShopify\nBitbucket\nChatGPT\nCloudflare\nCloudinary\nQQ\nLINE\nKakaoTalk\nOdnoklassniki\nBing\nDiscord\nHotmail\nEbay\nGroupon\n"},8589(e,t,n){"use strict";n.d(t,{Ay:()=>b,S$:()=>g,aj:()=>f,rp:()=>p});var r=n(47143),o=n(27723),s=n(10067),a=n.n(s),i=n(16073),c=n.n(i),l=n(28074),u=n(59096);const __=o.__,d=a()("jetpack-ai-breve:spelling-mistakes"),p={name:"spelling-mistakes",title:__("Spelling mistakes","jetpack"),tagName:"span",className:"jetpack-ai-breve__has-proofread-highlight--spelling-mistakes",defaultEnabled:!0},h={},m=({language:e="en"}={})=>{if(h[e])return h[e];const t=(0,l.A)({feature:p.name,language:e});if(!t)return null;const{affix:n,dictionary:r}=t,o=c()(n,r);return Array.from(new Set(JSON.parse(localStorage.getItem(`jetpack-ai-breve-spelling-exceptions-${e}`))||[])).forEach(e=>o.add(e)),o.personal(u.A),h[e]=o,h[e]},g=(e,{language:t="en"}={})=>{const n=m({language:t}),{reloadDictionary:o}=(0,r.dispatch)("jetpack/ai-breve");if(n){try{const n=new Set(JSON.parse(localStorage.getItem(`jetpack-ai-breve-spelling-exceptions-${t}`))||[]);n.add(e),localStorage.setItem(`jetpack-ai-breve-spelling-exceptions-${t}`,JSON.stringify(Array.from(n)))}catch(e){return void d("Failed to add text to the dictionary",e)}delete h[t],o(),d("Added text to the dictionary",e)}},f=(e,{language:t="en"}={})=>{const n=m({language:t});if(!n||!e)return[];if("wordpress"===e.toLocaleLowerCase())return["WordPress"];return n.suggest(e)};function b(e){const t=[],n=m();if(!n)return t;const r=new RegExp(/[@#+$/]{0,1}[\p{L}\p{M}\p{N}'’-]+(?:\/[\p{L}\p{M}\p{N}'’-]+)*/gu);return Array.from(e.matchAll(r)).forEach(e=>{const r=e[0],o=e.index;if(-1!==["@","#","+","$","/"].indexOf(r[0]))return;if(!isNaN(Number(r)))return;r.split(/[-/]/).forEach(e=>{if(e=e.replace(/^'+|['’]+$/g,""),!n.correct(e)){const n=o+r.indexOf(e);t.push({text:e,startIndex:n,endIndex:n+e.length})}})}),t}},39e3(e,t,n){"use strict";n.d(t,{A:()=>i,E:()=>a});var r=n(27723),o=n(53817),s=n(28074);const a={name:"unconfident-words",title:(0,r.__)("Unconfident words","jetpack"),tagName:"span",className:"jetpack-ai-breve__has-proofread-highlight--unconfident-words",defaultEnabled:!0};function i(e){const t=[],n=(0,s.A)({feature:a.name,language:"en"})??[],r=new RegExp(`\\b(${n.map(o.N).join("|")})\\b`,"gi"),i=e.matchAll(r);for(const e of i){const n=e[0].trim();t.push({text:n,startIndex:e.index,endIndex:e.index+n.length})}return t}},41863(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(50876),o=n(93379),s=n.n(o);function a({content:e,type:t,indexes:n,attributes:o,ignored:a}){return(({content:e,type:t,indexes:n,attributes:o={},ignored:a=[]})=>{let i=e;return n.length>0&&(i=n.map(e=>{const{startIndex:t,endIndex:n,text:r}=e;return{start:t,end:n,id:s()(`${r}-${t}-${n}`)}}).filter(e=>!a.includes(e?.id)).reduce((e,{start:n,end:s,id:a})=>{const i={...o,"data-id":a},c={type:t,attributes:i};return(0,r.applyFormat)(e,c,n,s)},e)),i})({indexes:n,content:e,type:t,attributes:o,ignored:a})}},73333(e,t,n){"use strict";n.d(t,{A:()=>k});var r=n(96865),o=n(85985),s=n(74997),a=n(56427),i=n(47143),c=n(86087),l=n(27723),u=n(48568),d=n(13022),p=n(1661),h=n(29526),m=n(65634),g=n(8589),f=n(2632),b=n(55983),v=n(23686),y=(n(42283),n(10790));const __=l.__;function k(){const{setPopoverHover:e,setSuggestions:t,invalidateSuggestions:n,ignoreSuggestion:l,invalidateSingleSuggestion:k}=(0,i.useDispatch)("jetpack/ai-breve"),{tracks:w}=(0,o.st)(),{updateBlockAttributes:x}=(0,i.useDispatch)("core/block-editor"),{getBlock:_}=(0,i.useSelect)(e=>({getBlock:e("core/block-editor").getBlock}),[]),[j,C]=(0,c.useState)([]),{anchor:A,virtual:S,popoverOpen:E,id:T,feature:N,blockId:P,title:B,loading:I,suggestions:M,description:R}=(0,i.useSelect)(e=>{const t=e("jetpack/ai-breve"),n=t.isPopoverHover(),r=t.isHighlightHover(),{target:o,virtual:s}=t.getPopoverAnchor()??{target:null,virtual:null},a=o?.getAttribute?.("data-breve-type"),i=o?.getAttribute?.("data-id"),c=o?.getAttribute?.("data-block"),l=h.A?.find?.(e=>e.config.name===a),u=l?.config??{name:"",title:""},d=l?.description??"",p=u?.title??"",m=t.getSuggestionsLoading({feature:a,id:i,blockId:c}),g=t.getSuggestions({feature:a,id:i,blockId:c});return{title:p,description:d,anchor:o,virtual:s,feature:a,id:i,blockId:c,popoverOpen:r||n,loading:m,suggestions:g}},[]),L=E&&S,D=Boolean(M?.suggestion)||j.length>0,F=()=>{const n=_(P);if(!n)return void e(!1);w.recordEvent("jetpack_ai_breve_ask",{feature:p.S,block:n.name,type:N});const{target:r,text:o,occurrence:s}=(0,f.A)(A),a=(0,b.s)(s);t({anchor:A,id:T,target:r,feature:N,text:o,blockId:P,occurrence:a})};return(0,c.useEffect)(()=>{if(N===g.rp.name&&L){const e=A?.innerText;if(!e)return;C((0,g.aj)(e))}else C([])},[N,L,A]),(0,y.jsx)(y.Fragment,{children:L&&A?.parentElement&&(0,y.jsx)(a.Popover,{anchor:S,placement:N===m.S.name?"bottom":"bottom-start",className:"jetpack-ai-breve__highlight-popover",animate:!1,focusOnMount:!1,onMouseEnter:()=>{e(!0)},onMouseLeave:t=>{t.stopPropagation(),e(!1)},children:(0,y.jsxs)("div",{className:(0,d.A)("jetpack-ai-breve__highlight-content",{"jetpack-ai-breve__has-suggestions":D}),children:[(0,y.jsxs)("div",{className:"jetpack-ai-breve__header-container",children:[(0,y.jsxs)("div",{className:"jetpack-ai-breve__title",children:[(0,y.jsx)("div",{className:"jetpack-ai-breve__color","data-breve-type":N}),(0,y.jsx)("div",{children:B})]}),N!==g.rp.name&&(0,y.jsx)("div",{className:"jetpack-ai-breve__action",children:D?(0,y.jsx)(a.Button,{showTooltip:!0,size:"small",iconSize:20,icon:u.A,label:__("Retry","jetpack"),onClick:()=>{k(N,P,T),F(),w.recordEvent("jetpack_ai_breve_retry",{feature:p.S,type:N})}}):(0,y.jsx)(y.Fragment,{children:I?(0,y.jsx)("div",{className:"jetpack-ai-breve__loading",children:(0,y.jsx)(a.Spinner,{})}):(0,y.jsx)(a.Button,{className:"jetpack-ai-breve__suggest",icon:r.RD,iconSize:18,onClick:F,children:__("Suggest","jetpack")})})})]}),(0,y.jsxs)("div",{className:"jetpack-ai-breve__suggestions-container",children:[N!==g.rp.name&&D&&(0,y.jsx)(a.Button,{variant:"tertiary",onClick:()=>{const t=_(P);if(!t)return void e(!1);let o=M?.html;"core/table"===t.name&&(o=r.Su.table(M?.html,!0,{hasFixedLayout:t.attributes?.hasFixedLayout})),"core/list-item"===t.name&&(o=r.Su.listItem(M?.html,!0));const[a]=(0,s.rawHandler)({HTML:o});n(P),x(P,a.attributes),e(!1),w.recordEvent("jetpack_ai_breve_apply",{feature:p.S,block:t.name,type:N})},children:M?.suggestion}),N===g.rp.name&&j.map(t=>(0,y.jsx)(a.Button,{variant:"tertiary",onClick:()=>(t=>{const r=_(P);if(!r)return void e(!1);const{target:o,occurrence:a}=(0,f.A)(A),i=(0,s.serialize)(r),c=(0,v.A)({text:i,target:o,occurrence:a,replacement:t}),[l]=(0,s.rawHandler)({HTML:c});n(P),x(P,l.attributes),e(!1)})(t),className:"jetpack-ai-breve__spelling-suggestion",children:t},t))]}),(0,y.jsxs)("div",{className:"jetpack-ai-breve__helper",children:[N===g.rp.name&&(0,y.jsx)(a.Button,{variant:"link",onClick:()=>{const{target:e}=(0,f.A)(A);(0,g.S$)(e),w.recordEvent("jetpack_ai_breve_add_to_dictionary",{feature:p.S,type:N,word:e,language:"en"})},children:__("Add to dictionary","jetpack")}),N!==g.rp.name&&(D?__("Click on the suggestion to insert it.","jetpack"):R),(0,y.jsxs)("div",{className:"jetpack-ai-breve__helper-inner",children:[(0,y.jsx)(r.HL,{disabled:!D,ratedItem:T,iconSize:18,feature:"write-brief",options:{prompt:N}}),(0,y.jsx)("div",{className:"jetpack-ai-breve__helper-buttons-wrapper",children:(0,y.jsx)(a.Button,{variant:"link",onClick:()=>{l(P,T),e(!1),w.recordEvent("jetpack_ai_breve_ignore",{feature:p.S,type:N})},children:__("Ignore","jetpack")})})]})]})]})})})}},50976(e,t,n){"use strict";n.d(t,{$A:()=>s.$A,Lx:()=>a,f4:()=>o.A});var r=n(27180),o=(n(59958),n(73333)),s=n(52965);const a=r.A},55305(e,t,n){"use strict";n.r(t),n.d(t,{ignoreSuggestion:()=>g,invalidateSingleSuggestion:()=>f,invalidateSuggestions:()=>m,reloadDictionary:()=>b,setBlockMd5:()=>h,setDictionaryLoading:()=>p,setHighlightHover:()=>i,setPopoverAnchor:()=>l,setPopoverHover:()=>c,setSuggestions:()=>v,toggleFeature:()=>d,toggleProofread:()=>u});var r=n(96865),o=n(47143),s=n(1661),a=n(56267);function i(e){return{type:"SET_HIGHLIGHT_HOVER",isHover:e}}function c(e){return{type:"SET_POPOVER_HOVER",isHover:e}}function l(e){return{type:"SET_POPOVER_ANCHOR",anchor:e}}function u(e){const t=(0,o.select)("jetpack/ai-breve").isProofreadEnabled();return{type:"SET_PROOFREAD_ENABLED",enabled:void 0===e?!t:e}}function d(e,t){const n=(0,o.select)("jetpack/ai-breve").isFeatureEnabled(e);return{type:(void 0===t?!n:t)?"ENABLE_FEATURE":"DISABLE_FEATURE",feature:e}}function p(e,t){return{type:"SET_DICTIONARY_LOADING",feature:e,loading:t}}function h(e,t){return{type:"SET_BLOCK_MD5",blockId:e,md5:t}}function m(e){return{type:"INVALIDATE_SUGGESTIONS",blockId:e}}function g(e,t){return{type:"IGNORE_SUGGESTION",blockId:e,id:t}}function f(e,t,n){return{type:"INVALIDATE_SINGLE_SUGGESTION",feature:e,blockId:t,id:n}}function b(){return{type:"RELOAD_DICTIONARY"}}function v({anchor:e,id:t,feature:n,target:o,text:i,blockId:c,occurrence:l}){return({dispatch:u})=>{e?.classList?.add("jetpack-ai-breve__is-loading"),u({type:"SET_SUGGESTIONS_LOADING",id:t,feature:n,blockId:c,loading:!0}),(0,r.R0)((0,a.o)({feature:n,target:o,text:i,blockId:c,occurrence:l}),{feature:s.S}).then(r=>{e?.classList?.remove("jetpack-ai-breve__is-loading");try{const e=JSON.parse(r);u({type:"SET_SUGGESTIONS",id:t,feature:n,suggestions:e,blockId:c})}catch{u({type:"SET_SUGGESTIONS_LOADING",id:t,feature:n,blockId:c,loading:!1})}}).catch(()=>{e?.classList?.remove("jetpack-ai-breve__is-loading"),u({type:"SET_SUGGESTIONS_LOADING",id:t,feature:n,blockId:c,loading:!1})})}}},59958(e,t,n){"use strict";n.d(t,{M:()=>i});var r=n(47143),o=n(55305),s=n(89746),a=n(10248);const i=(0,r.createReduxStore)("jetpack/ai-breve",{reducer:s.Ay,selectors:a,actions:o});(0,r.register)(i)},89746(e,t,n){"use strict";n.d(t,{Ay:()=>l});var r=n(47143),o=n(29526);const s=window.localStorage.getItem("jetpack-ai-breve-enabled"),a=window.localStorage.getItem("jetpack-ai-breve-disabled-features"),i={enabled:"true"===s,disabled:null!==a?JSON.parse(a):o.A.filter(e=>!e.config.defaultEnabled).map(e=>e.config.name)};const c="jetpack-ai-breve__highlight-hovered";const l=(0,r.combineReducers)({popover:function(e={},t){const n=()=>{e?.anchor?.target?.classList?.remove(c)};switch(t.type){case"SET_HIGHLIGHT_HOVER":return e?.isPopoverHover||t?.isHover||n(),{...e,isHighlightHover:t.isHover};case"SET_POPOVER_HOVER":return e?.isHighlightHover||t?.isHover||n(),{...e,isPopoverHover:t.isHover};case"SET_POPOVER_ANCHOR":{if(!t.anchor)return e;const r=e?.anchor?.target,o=t?.anchor?.target;return r!==o&&n(),o?.classList?.add(c),{...e,anchor:t.anchor}}}return e},configuration:function(e=i,t){switch(t.type){case"SET_PROOFREAD_ENABLED":{const n=void 0!==t?.enabled?t?.enabled:!e?.enabled;return window.localStorage.setItem("jetpack-ai-breve-enabled",String(n)),{...e,enabled:n}}case"ENABLE_FEATURE":{const n=(e.disabled??[]).filter(e=>e!==t.feature);return window.localStorage.setItem("jetpack-ai-breve-disabled-features",JSON.stringify(n)),{...e,disabled:n}}case"DISABLE_FEATURE":{const n=[...e.disabled??[],t.feature];return window.localStorage.setItem("jetpack-ai-breve-disabled-features",JSON.stringify(n)),{...e,disabled:n}}case"SET_DICTIONARY_LOADING":{const n=t.loading?[...e.loading??[],t.feature]:[...e.loading??[]].filter(e=>e!==t.feature);return{...e,loading:n}}case"RELOAD_DICTIONARY":return{...e,reload:!e.reload}}return e},suggestions:function(e={},t){const{id:n,feature:r,blockId:o}=t??{},s={...e},a=s?.[o]??{},i=s?.[o]?.[r]?.[n]||{};switch(t.type){case"SET_SUGGESTIONS_LOADING":return{...s,[o]:{...a,[r]:{...a[r]??{},[n]:{...i,loading:t.loading}}}};case"SET_SUGGESTIONS":return{...s,[o]:{...a,[r]:{...a[r]??{},[n]:{...i,loading:!1,suggestions:t.suggestions}}}};case"SET_BLOCK_MD5":return{...s,[o]:{md5:t.md5,...a}};case"INVALIDATE_SUGGESTIONS":return{...s,[o]:{}};case"INVALIDATE_SINGLE_SUGGESTION":return{...s,[o]:{...a,[r]:{...a[r]??{},[n]:{}}}};case"IGNORE_SUGGESTION":return{...s,[o]:{...a,ignored:[...a.ignored??[],n]}}}return e}})},10248(e,t,n){"use strict";function r(e){return e.popover?.isHighlightHover}function o(e){return e.popover?.isPopoverHover}function s(e){return e?.popover?.anchor??null}function a(e){return e.popover?.level}function i(e){return e.configuration?.enabled}function c(e,t){return!e.configuration?.disabled?.includes(t)}function l(e,t){return e.configuration?.loading?.includes(t)}function u(e){return e.configuration?.disabled}function d(e){return e.configuration?.reload}function p(e,t){return e.suggestions?.[t]?.md5??""}function h(e,{feature:t,id:n,blockId:r}){return e.suggestions?.[r]?.[t]?.[n]?.loading}function m(e,{feature:t,id:n,blockId:r}){return e.suggestions?.[r]?.[t]?.[n]?.suggestions}function g(e,{blockId:t}){return e.suggestions?.[t]?.ignored}n.r(t),n.d(t,{getBlockMd5:()=>p,getDisabledFeatures:()=>u,getIgnoredSuggestions:()=>g,getPopoverAnchor:()=>s,getPopoverLevel:()=>a,getReloadFlag:()=>d,getSuggestions:()=>m,getSuggestionsLoading:()=>h,isFeatureDictionaryLoading:()=>l,isFeatureEnabled:()=>c,isHighlightHover:()=>r,isPopoverHover:()=>o,isProofreadEnabled:()=>i})},53817(e,t,n){"use strict";n.d(t,{N:()=>r});const r=e=>e.replace(/[.*+?^${}()|[\]\\/]/g,"\\$&")},80555(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{const t=(e=>e.split(/\s+/).filter(e=>e.length>0).length)(e),n=(e=>e.split(/[.!?]+/).filter(e=>e.length>0).length)(e),r=(e=>e.split(/\s+/).reduce((e,t)=>e+(e=>{if(e.length<=3)return 1;const t=(e=e.toLowerCase().replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,"").replace(/^y/,"")).match(/[aeiouy]{1,2}/g);return t?t.length:1})(t),0))(e),o=((e,t,n)=>0===e||0===t?null:e/t*.39+n/e*11.8-15.59)(t,n,r);return o}},81932(e,t,n){"use strict";n.d(t,{GB:()=>l,Ul:()=>c,Ur:()=>u});var r=n(87687),o=n(47143),s=n(14309),a=n(48499);function i(){const{getAiAssistantFeature:e}=(0,o.select)(r.wordpressPlansStore);return e()}function c(){const{currentTier:e,featuresControl:t}=i();if(!1===t?.["write-brief"]?.enabled)return!1;return!((0,o.select)(s.store).getHiddenBlockTypes?.()??[]).includes("jetpack/ai-assistant")&&(0,a.C)("ai-proofread-breve")}function l(){const{featuresControl:e}=i();return!1!==e?.["write-brief"]?.enabled}function u(e){const{featuresControl:t}=i();return!1!==t?.["write-brief"]?.[e]?.enabled}},28074(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(47143),o=n(10067);const s=n.n(o)()("jetpack-ai-breve:fetch-feature-data"),a={};async function i({feature:e,language:t,lastRequested:n}){s("Fetching feature data for type: %s. language: %s",e,t);const{setDictionaryLoading:o}=(0,r.dispatch)("jetpack/ai-breve");a[e][t].loading=!0,o(e,!0);try{const r=await async function({feature:e,language:t,lastRequested:n}){const r=`https://s${Math.floor(3*Math.random())}.wp.com/wp-content/lib/jetpack-ai/breve-dictionaries/${e}/${t}.json`;if(n){const e=(await fetch(r,{method:"HEAD"})).headers.get("last-modified");if(!e)throw new Error("Failed to fetch metadata");if(new Date(n)>=new Date(e))return null}const o=(new Date).toUTCString(),s=await fetch(r);if(404===s.status)throw new Error("The requested data does not exist");if(200!==s.status)throw new Error("Failed to fetch data");return{requestTime:o,data:await s.json()}}({feature:e,language:t,lastRequested:n});if(a[e][t].verified=!0,!r)return void s("Data not modified",e,t);const{requestTime:o,data:i}=r;s("Loaded data from server",e,t),a[e][t].data=i,localStorage.setItem(`jetpack-ai-breve-data-${e}-${t}`,JSON.stringify({requestTime:o,data:i}))}catch(n){s("Failed to fetch feature data context",n),a[e][t].failed=!0}finally{a[e][t].loading=!1,o(e,!1)}}function c({feature:e,language:t}){a[e]=a[e]||{},a[e][t]=a[e][t]||{loading:!1,failed:!1,verified:!1};const{loading:n,failed:r,data:o,verified:c}=a[e]?.[t]??{loading:!1,failed:!1};if(o)return o;if(n)return null;const l=localStorage.getItem(`jetpack-ai-breve-data-${e}-${t}`);let u;if(l)try{const{requestTime:n,data:o}=JSON.parse(l);if(c||r)return s("Loaded data from local storage",e,t),a[e][t].data=o??null,o;u=n}catch(n){s("Failed to parse data from local storage",e,t,n),localStorage.removeItem(`jetpack-ai-breve-data-${e}-${t}`)}return r||i({feature:e,language:t,lastRequested:u}),null}localStorage.removeItem("jetpack-ai-breve-spelling-context-en")},10402(e,t,n){"use strict";n.d(t,{u:()=>r});const r=(e,t)=>{const n=Array.from(e.childNodes),r=n.indexOf(t),o=n.slice(0,r),s=document.createElement("div");return o.forEach(e=>s.appendChild(e.cloneNode(!0))),s.innerText.length}},54711(e,t,n){"use strict";n.d(t,{D:()=>r});const r=e=>{let t=e?.parentElement??null;for(;t&&"A"===t.tagName;)t=t.parentElement;return t}},36205(e,t,n){"use strict";n.d(t,{M:()=>s});var r=n(74997);const{getBlockContent:o}=r;function s(e){return function(e){const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body.querySelectorAll("td, th").forEach(e=>{e.innerHTML=` ${e.innerHTML}`}),t.body.innerText}(e.map(e=>o(e)).join(""))}},56267(e,t,n){"use strict";n.d(t,{o:()=>i});var r=n(74997),o=n(47143),s=n(29526);const a={"complex-words":"breve-complex-word","unconfident-words":"breve-unconfident-word","long-sentences":"breve-long-sentence"},i=({feature:e,target:t,text:n,blockId:i,occurrence:c})=>{const l=(0,o.select)("core/block-editor").getBlock(i),u=(0,r.getBlockContent)(l),d=(s.A?.find?.(t=>t.config.name===e)?.dictionary||{})[t.toLowerCase()]||null;return[{role:"jetpack-ai",context:{type:a[e],target:t,text:n,html:u,replacement:d,occurrence:c}}]}},2632(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(10402),o=n(54711);function s(e){const t=e?.innerText,n=(0,o.D)(e),s=n?.innerText,a=(0,r.u)(n,e),i=new RegExp(t,"gi"),c=Array.from(s.matchAll(i)).map(e=>e.index);return{target:t,parent:n,text:s,occurrence:Math.max(1,c.indexOf(a)+1)}}},55983(e,t,n){"use strict";n.d(t,{s:()=>r});const r=e=>{const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}},52965(e,t,n){"use strict";n.d(t,{$A:()=>h});var r=n(74997),o=n(47143),s=n(50876),a=n(93379),i=n.n(a),c=n(29526),l=n(95073),u=n(41863),d=n(59958),p=n(81932);function h(){c.A.forEach(e=>{!function(e){if(!e)return;const{highlight:t,config:n}=e,{name:a,...c}=n,h=`jetpack/ai-proofread-${a}`,m={name:h,interactive:!1,object:!1,edit:()=>{},...c,__experimentalGetPropsForEditableTreePreparation(e,{blockClientId:t}){const{getIgnoredSuggestions:r,isFeatureEnabled:s,isProofreadEnabled:a,isFeatureDictionaryLoading:i,getReloadFlag:c}=(0,o.select)(d.M),l=(0,p.GB)(),u=(0,p.Ur)(n.name);return{isProofreadEnabled:l&&a()&&(0,p.Ul)(),isFeatureEnabled:u&&s(n.name),ignored:r({blockId:t}),isFeatureDictionaryLoading:i(n.name),reloadFlag:c()}},__experimentalCreatePrepareEditableTree:({isProofreadEnabled:e,isFeatureEnabled:a,ignored:c,isFeatureDictionaryLoading:p},{blockClientId:m,richTextIdentifier:g})=>(f,b)=>{const{getBlock:v}=(0,o.select)("core/block-editor"),{getBlockMd5:y}=(0,o.select)(d.M),{invalidateSuggestions:k,setBlockMd5:w}=(0,o.dispatch)("jetpack/ai-breve"),x={formats:f,text:b},_=h;let j=c;const C=y(m);if(b&&e&&a&&!p){const e=v(m);let o=b??"";"content"!==g&&e&&(o=(0,r.getBlockContent)(e));const s=i()(o);C!==s&&(j=[],k(m),w(m,s));const a=t(b),c=(0,u.A)({ignored:j,content:x,type:_,indexes:a,attributes:{"data-breve-type":n.name,"data-identifier":g??"none","data-block":m}});return setTimeout(()=>{(0,l.A)(m)},100),c.formats}return(0,s.removeFormat)(x,_,0,x.text.length).formats}};(0,s.registerFormatType)(h,m)}(e)})}},23686(e,t,n){"use strict";function r({text:e,target:t,occurrence:n,replacement:r}){const o=new RegExp(t,"gi"),s=Array.from(e.matchAll(o)).map(e=>e.index)[n-1],a=s+t.length;return e.substring(0,s)+r+e.substring(a)}n.d(t,{A:()=>r})},37215(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(96865),o=n(85985),s=n(56427),a=n(47143),i=n(43656),c=n(86087),l=n(27723),u=(n(45529),n(10790));const __=l.__;function d({disabled:e=!1,busy:t=!1,placement:n}){const[l,d]=(0,c.useState)(!1),[p,h]=(0,c.useState)(""),{tracks:m}=(0,o.st)(),g=(0,a.useSelect)(e=>e(i.store).getCurrentPostId(),[]),{getPostContent:f,isEditedPostEmpty:b}=(0,r.dh)(),v=()=>{d(!l)},{increaseAiAssistantRequestsCount:y,dequeueAiAssistantFeatureAsyncRequest:k}=(0,a.useDispatch)("wordpress-com/plans"),w=(0,c.useCallback)(()=>{y()},[y]),{request:x,requestingState:_}=(0,r.o2)({askQuestionOptions:{postId:Number(g)},onSuggestion:e=>{const t=(0,r._E)({content:e});h(t)},onDone:w,onError:()=>{}});return(0,u.jsxs)("div",{children:[l&&(0,u.jsx)(r.yV,{requestingState:_,handleClose:v,children:(0,u.jsx)(c.RawHTML,{className:"ai-assistant-post-feedback__suggestion",children:p})}),(0,u.jsx)("p",{className:"jetpack-ai-assistant__help-text",children:__("Get feedback on content structure.","jetpack")}),(0,u.jsx)(s.Button,{onClick:()=>{const e=[{role:"jetpack-ai",context:{type:"proofread-plugin",content:f()}}];k(),x(e,{feature:"jetpack-ai-proofread-plugin"}),v(),m.recordEvent("jetpack_ai_get_feedback",{feature:"jetpack-ai-proofread-plugin",placement:n})},variant:"secondary",disabled:b()||e,isBusy:t,__next40pxDefaultSize:!0,children:__("Generate feedback","jetpack")})]})}},22615(e,t,n){"use strict";n.d(t,{H:()=>s});var r=n(97999),o=n(6419);function s(){return!(0,r.isSimpleSite)()&&(0,o.p)()}},4167(e,t,n){"use strict";n.d(t,{G:()=>o,z:()=>s});var r=n(27723);const __=r.__,o=["seo-title","seo-meta-description","images-alt-text"],s={"seo-title":__("SEO title","jetpack"),"seo-meta-description":__("SEO description","jetpack"),"images-alt-text":__("Image alt text","jetpack")}},89870(e,t,n){"use strict";n.d(t,{k:()=>r.k});n(16204),n(46895);var r=n(74088)},6419(e,t,n){"use strict";n.d(t,{p:()=>o});var r=n(85985);function o(){return!1!==(0,r.$i)()?.["ai-assistant"]?.["is-seo-enabled"]}},40071(e,t,n){"use strict";n.d(t,{V:()=>l});var r=n(56427),o=n(47143),s=n(27723),a=n(4167),i=n(16204),c=(n(21682),n(10790));const __=s.__;function l({isPrePublish:e}){const{titleBusy:t,descriptionBusy:n,imageBusy:s}=(0,o.useSelect)(e=>{const{isTitleBusy:t,isDescriptionBusy:n,isAnyImageBusy:r}=e(i.M);return{titleBusy:t(),descriptionBusy:n(),imageBusy:r()}},[]),l=e=>"seo-title"===e?t:"seo-meta-description"===e?n:"images-alt-text"===e&&s;return(0,c.jsxs)("div",{className:"jetpack-seo-sidebar__feature-list-container",children:[(0,c.jsx)("div",{className:"jetpack-seo-sidebar__feature-list-title",children:__("If not provided we'll automatically generate:","jetpack")}),(0,c.jsx)("div",{className:"jetpack-seo-sidebar__feature-list",children:a.G.map(t=>e?(0,c.jsxs)("div",{className:"jetpack-seo-enhancer__feature-list-item",children:[(0,c.jsx)("div",{className:"jetpack-seo-enhancer__feature-list-item-icon-container",children:(0,c.jsx)(r.Spinner,{style:{marginRight:0,display:l(t)?"inline-block":"none"}})}),(0,c.jsx)("div",{className:"jetpack-seo-enhancer__feature-list-item-label",children:a.z[t]})]},t):(0,c.jsxs)("div",{className:"jetpack-seo-enhancer__feature-list-item",children:[(0,c.jsx)("div",{className:"jetpack-seo-enhancer__feature-list-item-icon-container"}),(0,c.jsx)("div",{children:a.z[t]})]},t))})]})}},74088(e,t,n){"use strict";n.d(t,{k:()=>y});var r=n(96865),o=n(85985),s=n(94715),a=n(56427),i=n(47143),c=n(86087),l=n(27723),u=n(10067),d=n.n(u),p=n(4167),h=n(40071),m=n(16204),g=n(77682),f=n(96012),b=(n(21682),n(10790));const __=l.__,v=d()("seo-enhancer:index");function y({disableAutoEnhance:e=!1,placement:t=null}){const{tracks:n}=(0,o.st)(),{isEnabled:l,toggleEnhancer:u,isToggling:d}=(0,g.S)(),y=(0,i.useSelect)(e=>{const t=e(m.M).isBusy(),n=e(m.M).isAnyImageBusy();return t||n},[]),k=(0,i.useSelect)(e=>e(m.M).getEnabledFeatures(),[]),w=(0,i.useSelect)(e=>e(s.store).getBlocks(),[]),x=(0,c.useMemo)(()=>w.length?(0,r._G)().filter(e=>"core/image"===e.name&&e.attributes.url&&!e.attributes.alt):[],[w]),{setFeatureEnabled:_}=(0,i.useDispatch)(m.M),{updateSeoData:j}=(0,f.X)(),C=(0,c.useCallback)(async()=>{const e=!l;await u({placement:t}),"jetpack-prepublish-sidebar"===t&&e&&j()},[u,t,j,l]),A=(0,c.useCallback)(e=>{const r=k.includes(e);n.recordEvent("jetpack_seo_enhancer_feature_toggle",{feature:e,toggled:r?"off":"on",placement:t}),_(e,!r)},[k,_,n,t]);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.PanelRow,{className:"jetpack-seo-sidebar__feature-section jetpack-seo-sidebar__feature-section--toggle",children:(0,b.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,className:"ai-seo-enhancer-toggle",children:[(0,b.jsx)(a.BaseControl.VisualLabel,{className:"ai-seo-enhancer-label",children:__("Metadata AI Generator","jetpack")}),!e&&(0,b.jsx)(a.ToggleControl,{checked:l,disabled:d||y,onChange:C,label:__("Auto-generate metadata","jetpack"),__nextHasNoMarginBottom:!0,help:__("When enabled, missing metadata will be automatically generated when you publish a post.","jetpack")}),!l&&(0,b.jsx)("div",{className:"feature-checkboxes-container",children:p.G.map(e=>(0,b.jsx)(a.CheckboxControl,{label:p.z[e],checked:k.includes(e),onChange:()=>A(e),__nextHasNoMarginBottom:!0,disabled:y,className:y?"is-disabled":""},e))}),l&&!e&&(0,b.jsx)(h.V,{isPrePublish:"jetpack-prepublish-sidebar"===t,imageBlocks:x})]})}),!l&&(0,b.jsx)(a.PanelRow,{className:"jetpack-seo-sidebar__feature-section",children:(0,b.jsx)(a.BaseControl,{__nextHasNoMarginBottom:!0,className:"ai-seo-enhancer-toggle",children:(0,b.jsx)(a.Button,{isBusy:y,disabled:y,onClick:async()=>{try{await j()}catch(e){v("Error generating SEO data",e)}},variant:"secondary",__next40pxDefaultSize:!0,children:__("Generate metadata","jetpack")})})})]})}},12430(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(96865),o=n(56427),s=n(47143),a=n(43656),i=n(86087),c=n(27723),l=n(13109),u=n(88901),d=n(4167),p=n(16204),h=(n(21682),n(10790));const __=c.__;function m({onEdit:e}){const{title:t,description:n}=(0,s.useSelect)(e=>{const t=e(a.store).getEditedPostAttribute("meta");return{title:t?.jetpack_seo_html_title??"",description:t?.advanced_seo_description??""}},[]),{titleBusy:m,descriptionBusy:g,imageBusy:f}=(0,s.useSelect)(e=>{const{isTitleBusy:t,isDescriptionBusy:n,isAnyImageBusy:r}=e(p.M);return{titleBusy:t(),descriptionBusy:n(),imageBusy:r()}},[]),[b,v]=(0,i.useState)(null),y=(0,i.useMemo)(()=>t||"",[t]),k=(0,i.useMemo)(()=>n||"",[n]);(0,i.useEffect)(()=>{const e=(0,r._G)().filter(e=>"core/image"===e.name&&e.attributes.url);if(0===e.length)return void v("");const t=e.filter(e=>!!e.attributes.alt);0!==t.length?t.length!==e.length?t.length<e.length&&v((0,c.sprintf)( | |
| 153 | +// Translators: %1$d is the number of images with alt text, %2$d is the total number of images. | |
| 154 | +__("Alt text added to %1$d of %2$d images","jetpack"),t.length,e.length)):v(__("Alt text added to all images","jetpack")):v("")},[]);const w=(0,i.useMemo)(()=>({"seo-title":m?null:y,"seo-meta-description":g?null:k,"images-alt-text":f?null:b}),[g,b,f,k,y,m]),x=(0,i.useMemo)(()=>Object.values(w).every(e=>!e),[w]),_=__("Want to fine-tune this metadata further?","jetpack"),j=__("No metadata found. Add it to improve search engine visibility.","jetpack");return(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)(o.PanelRow,{className:"jetpack-seo-sidebar__feature-section jetpack-seo-sidebar__feature-section--toggle",children:[(0,h.jsx)(o.BaseControl,{__nextHasNoMarginBottom:!0,className:"ai-seo-enhancer-toggle",help:x?j:_,label:__("Metadata","jetpack"),id:"jetpack-seo-enhancer-generated-metadata",children:!x&&d.G.map(e=>w[e]?(0,h.jsxs)("div",{className:"jetpack-seo-enhancer-summary-feature",children:[(0,h.jsx)("div",{className:"jetpack-seo-enhancer-summary-feature__icon-container",children:(0,h.jsx)(l.A,{className:"jetpack-seo-enhancer-summary-feature__icon",icon:u.A})}),(0,h.jsx)(o.BaseControl,{className:"jetpack-seo-enhancer-summary-feature__control",label:d.z[e],id:e,help:w[e],__nextHasNoMarginBottom:!0,children:null},e)]},e):null)}),(0,h.jsx)(o.Button,{variant:"secondary",__next40pxDefaultSize:!0,className:"jetpack-seo-enhancer-summary__edit-button",onClick:e,children:__("Edit SEO metadata","jetpack")})]})})}},6363(e,t,n){"use strict";function r(e){return{type:"SET_BUSY",isBusy:e}}function o(e){return{type:"SET_TITLE_BUSY",isBusy:e}}function s(e){return{type:"SET_DESCRIPTION_BUSY",isBusy:e}}function a(e){return{type:"SET_IS_TOGGLING_AUTO_ENHANCE",isToggling:e}}function i(e){return{type:"SET_IS_AUTO_ENHANCE_ENABLED",isEnabled:e}}function c(e,t){return{type:"SET_IMAGE_BUSY",clientId:e,isBusy:t}}function l(e,t){return{type:"SET_IMAGE_FAILED",clientId:e,failed:t}}function u(e,t){return{type:"SET_FEATURE_ENABLED",feature:e,enabled:t}}n.r(t),n.d(t,{setBusy:()=>r,setDescriptionBusy:()=>s,setFeatureEnabled:()=>u,setImageBusy:()=>c,setImageFailed:()=>l,setIsAutoEnhanceEnabled:()=>i,setIsTogglingAutoEnhance:()=>a,setTitleBusy:()=>o})},16204(e,t,n){"use strict";n.d(t,{M:()=>d});var r=n(97999),o=n(85985),s=n(47143),a=n(4167),i=n(6363),c=n(49824),l=n(16886);let u=!1;try{if(!(0,r.isSimpleSite)()){const e=(0,s.select)(o.M_).getJetpackModules()["seo-tools"],t=e&&"ai_seo_enhancer_enabled"in e.options;u=t&&e.options?.ai_seo_enhancer_enabled?.current_value}}catch{u=!1}const d=(0,s.createReduxStore)("jetpack/seo-enhancer",{reducer:c.A,selectors:l,actions:i,initialState:function(){const e=a.G.reduce((e,t)=>(e[t]=!0,e),{});try{const t=localStorage.getItem("jetpack-seo-enhancer-features"),n=t?JSON.parse(t):{};for(const t of a.G)e[t]=n[t]??!0}catch{}return{isBusy:!1,isTogglingAutoEnhance:!1,isAutoEnhanceEnabled:u,busyImages:{},failedImages:{},features:e}}()});(0,s.register)(d)},49824(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t){let n;switch(t.type){case"SET_BUSY":return{...e,isBusy:t.isBusy};case"SET_TITLE_BUSY":return{...e,isTitleBusy:t.isBusy};case"SET_DESCRIPTION_BUSY":return{...e,isDescriptionBusy:t.isBusy};case"SET_IS_TOGGLING_AUTO_ENHANCE":return{...e,isTogglingAutoEnhance:t.isToggling};case"SET_IS_AUTO_ENHANCE_ENABLED":return{...e,isAutoEnhanceEnabled:t.isEnabled};case"SET_IMAGE_BUSY":return{...e,busyImages:{...e.busyImages,[t.clientId]:t.isBusy}};case"SET_IMAGE_FAILED":return{...e,failedImages:{...e.failedImages,[t.clientId]:t.failed}};case"SET_FEATURE_ENABLED":return n={...e,features:{...e.features,[t.feature]:t.enabled}},r=n.features,localStorage.setItem("jetpack-seo-enhancer-features",JSON.stringify(r)),n;default:return e}var r}},16886(e,t,n){"use strict";n.r(t),n.d(t,{getEnabledFeatures:()=>p,hasImageFailed:()=>d,isAnyImageBusy:()=>u,isAutoEnhanceEnabled:()=>c,isBusy:()=>o,isDescriptionBusy:()=>a,isImageAltTextFeatureEnabled:()=>h,isImageBusy:()=>l,isTitleBusy:()=>s,isTogglingAutoEnhance:()=>i});var r=n(47143);function o(e){return e.isBusy}function s(e){return e.isTitleBusy}function a(e){return e.isDescriptionBusy}function i(e){return e.isTogglingAutoEnhance}function c(e){return e.isAutoEnhanceEnabled}function l(e,t){return e.busyImages[t]??!1}function u(e){return Object.values(e.busyImages).some(e=>e)}function d(e,t){return e.failedImages[t]??!1}const p=(0,r.createSelector)(e=>Object.keys(e.features).filter(t=>e.features[t]),e=>[e.features]);function h(e){return p(e).includes("images-alt-text")}},77682(e,t,n){"use strict";n.d(t,{S:()=>p});var r=n(85985),o=n(1455),s=n.n(o),a=n(47143),i=n(86087),c=n(10067),l=n.n(c),u=n(16204);const d=l()("seo-enhancer:use-seo-module-settings"),p=()=>{const{tracks:e}=(0,r.st)(),t=(0,a.useSelect)(e=>e(u.M).isAutoEnhanceEnabled(),[]),n=(0,a.useSelect)(e=>e(u.M).isTogglingAutoEnhance(),[]),o=(0,a.useDispatch)(u.M).setIsTogglingAutoEnhance,c=(0,a.useDispatch)(u.M).setIsAutoEnhanceEnabled,l=(0,i.useCallback)(async({placement:n})=>{o(!0);try{await s()({path:"jetpack/v4/module/seo-tools",method:"post",data:{ai_seo_enhancer_enabled:!t}}),e.recordEvent("jetpack_seo_enhancer_toggle",{toggled:t?"off":"on",placement:n}),c(!t)}catch(r){d("Error toggling SEO enhancer",r),e.recordEvent("jetpack_seo_enhancer_toggle_error",{toggled:t?"off":"on",error:r?.message,placement:n})}finally{o(!1)}},[t,c,o,e]);return{isEnabled:t,toggleEnhancer:l,isToggling:n}}},96012(e,t,n){"use strict";n.d(t,{X:()=>g});var r=n(96865),o=n(85985),s=n(47143),a=n(43656),i=n(86087),c=n(27723),l=n(10067),u=n.n(l),d=n(4647),p=n(16204);const __=c.__,h=u()("seo-enhancer:use-seo-requests"),m=e=>JSON.parse(e?.replace?.(/^```json\s*/,"")?.replace(/```$/,"")),g=()=>{const{tracks:e}=(0,o.st)(),{editPost:t}=(0,s.useDispatch)(a.store),{updateBlockAttributes:n}=(0,s.useDispatch)("core/block-editor"),c=(0,s.useSelect)(e=>e(a.store).getCurrentPostId(),[]),{getPostContent:l}=(0,r.dh)(),{isBusy:u,enabledFeatures:g}=(0,s.useSelect)(e=>({isBusy:e(p.M).isBusy(),enabledFeatures:e(p.M).getEnabledFeatures()}),[]),{setBusy:f,setTitleBusy:b,setDescriptionBusy:v}=(0,s.useDispatch)(p.M),{isImageBusy:y,hasImageFailed:k}=(0,s.useSelect)(e=>e(p.M),[]),{setImageBusy:w,setImageFailed:x}=(0,s.useDispatch)(p.M),{createInfoNotice:_}=(0,s.useDispatch)("core/notices"),{increaseRequestsCount:j,dequeueAsyncRequest:C,requireUpgrade:A}=(0,r.yM)(),[S,E]=(0,i.useState)(null),T=(0,i.useCallback)(async(e,t,n=!1)=>{let o={type:e},s="jetpack-seo-assistant";return"seo-title"!==e&&"seo-meta-description"!==e||(o={...o,content:l(),count:1}),"images-alt-text"===e&&(o={...o,content:l(d.P),images:[{url:n?await(0,r.Zo)(t?.attributes.url):t?.attributes.url}]},s="jetpack-ai-image-extension"),(0,r.R0)([{role:"jetpack-ai",context:o}],{postId:Number(c),feature:s})},[l,c]),N=(0,i.useCallback)(async(n=!1)=>{if(!!(0,s.select)(a.store).getEditedPostAttribute("meta")?.jetpack_seo_html_title&&!0!==n)return null;try{b(!0);const n=await T("seo-title"),r=m(n).titles?.[0];return r&&r.length>70&&e.recordEvent("jetpack_seo_enhancer_title_too_long",{character_count:r.length}),"auto"===S&&(0,s.select)(a.store).isCurrentPostPublished()?!1:(t({meta:{jetpack_seo_html_title:r}}),!0)}catch(e){return h("Error updating title",e),!1}finally{b(!1)}},[b,T,t,e,S]),P=(0,i.useCallback)(async(n=!1)=>{if(!!(0,s.select)(a.store).getEditedPostAttribute("meta")?.advanced_seo_description&&!0!==n)return null;try{v(!0);const n=await T("seo-meta-description"),r=m(n).descriptions?.[0];return r&&r.length>156&&e.recordEvent("jetpack_seo_enhancer_description_too_long",{character_count:r.length}),"auto"===S&&(0,s.select)(a.store).isCurrentPostPublished()?!1:(t({meta:{advanced_seo_description:r}}),!0)}catch(e){return h("Error updating description",e),!1}finally{v(!1)}},[v,T,t,e,S]),B=(0,i.useCallback)(async(e,t=!1)=>{if(A)return h("Upgrade required, skipping"),null;if(y(e.clientId))return h("Already updating alt text, skipping"),null;if(k(e.clientId))return h("Image failed, skipping"),null;try{w(e.clientId,!0),C();const r=await T("images-alt-text",e,t);j();const o=m(r).texts?.[0];return"auto"===S&&(0,s.select)(a.store).isCurrentPostPublished()?(w(e.clientId,!1),!1):(await n(e.clientId,{alt:o}),w(e.clientId,!1),!0)}catch(n){return w(e.clientId,!1),n?.message.includes("The image URL is invalid")&&!t?(h("Retrying with base64 image"),B(e,!0)):("fetch_error"!==n?.code&&x(e.clientId,!0),h("Error updating alt text",n),!1)}},[A,y,k,w,C,T,j,n,x,S]),I=(0,i.useCallback)(async(e=!1)=>{const t=(0,r._G)().filter(e=>"core/image"===e.name),n=t.filter(e=>!e.attributes.alt),o=(e?t:n).map(async e=>await B(e));return await Promise.all(o)},[B]);return{updateSeoData:(0,i.useCallback)(async({trigger:t="manual"}={})=>{const n=[];f(!0),E(t);const r={trigger:t,seo_title:!1,seo_meta_description:!1,images_alt_text:!1};"auto"===t?(n.push(N()),n.push(P()),n.push(I()),r.seo_title=!0,r.seo_meta_description=!0,r.images_alt_text=!0):g.forEach(e=>{"seo-title"===e&&(n.push(N()),r.seo_title=!0),"seo-meta-description"===e&&(n.push(P()),r.seo_meta_description=!0),"images-alt-text"===e&&(n.push(I()),r.images_alt_text=!0)}),e.recordEvent("jetpack_seo_enhancer_trigger",r);const o=(await Promise.all(n)).flat();f(!1),o.some(e=>!0===e)&&_(__("SEO metadata added","jetpack"),{type:"snackbar"})},[f,g,_,N,P,I,e]),updateAltText:B,isBusy:u}}},46895(e,t,n){"use strict";var r=n(85985),o=n(29491),s=n(47143),a=n(86087),i=n(52619),c=n(22615),l=n(16204),u=n(77682),d=n(96012),p=n(10790);const h=!0===(0,r.FB)("ai-seo-enhancer")?.available&&(0,c.H)();const m=(0,o.createHigherOrderComponent)(e=>{function t(t){const{updateAltText:n}=(0,d.X)(),{isEnabled:r}=(0,u.S)(),{getBlock:o,isImageAltTextFeatureEnabled:i}=(0,s.useSelect)(e=>{const{getBlock:t}=e("core/block-editor"),{isImageAltTextFeatureEnabled:n}=e(l.M);return{getBlock:t,isImageAltTextFeatureEnabled:n}},[]),c=(0,a.useRef)(t.attributes.url);return(0,a.useEffect)(()=>{const e=c.current!==t.attributes.url,s=!t.attributes.alt,a=r&&i();if(t.attributes.url&&e&&s&&a){const e=o(t.clientId);e&&n(e)}c.current=t.attributes.url},[t.attributes.url,t.attributes.alt,t.clientId,o,n,r,i]),(0,p.jsx)(e,{...t})}return n=>{const{isModuleActive:o}=(0,r.q7)("seo-tools");return o?(0,p.jsx)(t,{...n}):(0,p.jsx)(e,{...n})}},"blockEditWithSeoAutoGeneration");(0,i.addFilter)("blocks.registerBlockType","jetpack/ai-assistant-support/with-seo-auto-generation",function(e,t){return"core/image"===t&&h?{...e,edit:m(e.edit)}:e},100)},76318(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(96865),o=n(85985),s=n(56427),a=n(47143),i=n(86087),c=n(27723),l=n(57273),u=n(48499),d=n(22079),p=n(22473),h=(n(87734),n(10790));const __=c.__,m=(0,u.C)("ai-title-optimization-keywords-support"),g=__("The generation of your suggested titles failed. Please try again.","jetpack"),f="json-parse-error",b=({error:e})=>{if(e.code===r.Or)return(0,h.jsx)("div",{className:"jetpack-ai-title-optimization__error",children:(0,h.jsx)(r.Hb,{useLightNudge:!0})});const t=e.message?e.message:g;return(0,h.jsx)("div",{className:"jetpack-ai-title-optimization__error",children:(0,h.jsx)(s.Notice,{status:"error",isDismissible:!1,children:t})})};function v({placement:e,busy:t,disabled:n}){const c=__("Optimize post title","jetpack"),u=__("Improve title for SEO","jetpack"),v=m?u:c,y=__("Based on your post content.","jetpack"),k=__("Based on your post content and SEO best practices.","jetpack"),w=m?k:y,x=__("Generate title options","jetpack"),_=__("Generate title options","jetpack"),j=m?_:x,{getPostContent:C,isEditedPostEmpty:A}=(0,r.dh)(),[S,E]=(0,i.useState)(null),[T,N]=(0,i.useState)(!1),[P,B]=(0,i.useState)(!1),[I,M]=(0,i.useState)([]),[R,L]=(0,i.useState)(null),[D,F]=(0,i.useState)(""),{editPost:O}=(0,a.useDispatch)("core/editor"),{autosave:z}=(0,o.ZR)(),{increaseAiAssistantRequestsCount:U}=(0,a.useDispatch)("wordpress-com/plans"),{tracks:H}=(0,o.st)(),{recordEvent:$}=H,V=(0,i.useCallback)(()=>{N(!T)},[T]),q=(0,i.useCallback)(e=>{B(!1),U();try{const t=JSON.parse(e);M(t),E(t?.[0]?.title)}catch{L({code:f,message:g})}},[U]),{request:G,stopSuggestion:W}=(0,r.o2)({onDone:q,onError:e=>{L(e),B(!1)}}),Z=(0,i.useCallback)((t=!1)=>{$("jetpack_ai_title_optimization_generate",{placement:e,has_keywords:!!D,is_retry:t}),B(!0);const n=[{role:"jetpack-ai",context:{type:"title-optimization",content:C(),keywords:D}}];G(n,{feature:"jetpack-ai-title-optimization"})},[$,e,C,D,G]),J=(0,i.useCallback)(()=>{V(),Z()},[Z,V]),K=(0,i.useCallback)(()=>{L(null),0===I.length&&Z(!0)},[Z,I]),Y=(0,i.useCallback)(()=>{Z()},[Z]),Q=(0,i.useCallback)(t=>{$("jetpack_ai_title_optimization_accept",{placement:e}),O({title:S}),V();try{z(t)}catch{}},[z,O,e,$,S,V]),X=(0,i.useCallback)(()=>{L(null),V(),F(""),W()},[W,V]),ee=R&&[f,r.mA,r.AZ,r.L9].includes(R.code),te=!R;return(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{className:"jetpack-ai-assistant__help-text",children:w}),(0,h.jsx)(s.Button,{isBusy:t,disabled:A()||n,onClick:J,variant:"secondary",__next40pxDefaultSize:!0,children:j}),T&&(0,h.jsxs)(r.yV,{handleClose:X,title:v,maxWidth:m?700:512,children:[P?(0,h.jsxs)("div",{className:"jetpack-ai-title-optimization__loading",children:[(0,h.jsx)(s.Spinner,{style:{width:"50px",height:"50px"}}),__("Reading your post and generating suggestions…","jetpack")]}):(0,h.jsxs)(h.Fragment,{children:[R?(0,h.jsx)(b,{error:R}):(0,h.jsxs)(h.Fragment,{children:[m&&(0,h.jsx)(d.A,{onGenerate:Y,onKeywordsChange:F,disabled:P,currentKeywords:D}),!m&&(0,h.jsx)("span",{className:"jetpack-ai-title-optimization__intro",children:__("Choose an optimized title below:","jetpack")}),(0,h.jsx)(p.A,{onChangeValue:e=>E(e.target.value),selected:S,options:I?.map?.(e=>({value:e.title,label:e.title,description:e.explanation}))})]}),(0,h.jsxs)("div",{className:"jetpack-ai-title-optimization__cta",children:[(0,h.jsx)(s.Button,{variant:"secondary",onClick:X,children:__("Cancel","jetpack")}),ee&&(0,h.jsx)(s.Button,{variant:"primary",onClick:K,children:__("Try again","jetpack")}),te&&(0,h.jsx)(s.Button,{variant:"primary",onClick:Q,children:__("Replace title","jetpack")})]})]}),(0,h.jsx)("div",{className:"jetpack-ai-title-optimization__footer",children:(0,h.jsx)(l.N,{openInNewTab:!0,href:"https://jetpack.com/redirect/?source=jetpack-ai-feedback",children:__("Provide feedback","jetpack")})})]})]})}},22079(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(56427),o=n(27723),s=(n(91312),n(10790));const __=o.__;function a({onGenerate:e,onKeywordsChange:t,currentKeywords:n,disabled:o}){return(0,s.jsxs)("div",{className:"jetpack-ai-title-optimization__keywords",children:[(0,s.jsx)("div",{className:"jetpack-ai-title-optimization__keywords__textarea",children:(0,s.jsx)(r.KeyboardShortcuts,{bindGlobal:!0,shortcuts:{enter:()=>{o||e()}},children:(0,s.jsx)("textarea",{value:n,disabled:o,maxLength:100,rows:1,onChange:e=>{t(e.target.value)},placeholder:__("Add optional keywords you'd like to include and generate new suggestions.","jetpack")})})}),(0,s.jsx)("div",{className:"jetpack-ai-title-optimization__keywords__button",children:(0,s.jsx)(r.Button,{onClick:e,variant:"secondary",disabled:o,children:__("Generate again","jetpack")})})]})}},22473(e,t,n){"use strict";n.d(t,{A:()=>s});n(95066);var r=n(10790);const o="title-optimization-option";function s({options:e,selected:t,onChangeValue:n}){return(0,r.jsx)("div",{className:"jetpack-ai-title-optimization__options",children:e.map((e,s)=>(0,r.jsxs)("div",{className:"jetpack-ai-title-optimization__option",children:[(0,r.jsx)("div",{className:"jetpack-ai-title-optimization__option-input",children:(0,r.jsx)("input",{id:`${o}-${s}`,type:"radio",name:o,value:e.value,onChange:n,checked:e.value===t})}),(0,r.jsx)("div",{className:"jetpack-ai-title-optimization__option-content",children:(0,r.jsxs)("label",{className:"jetpack-ai-title-optimization__option-label",htmlFor:`${o}-${s}`,children:[e.label,(0,r.jsx)("div",{className:"jetpack-ai-title-optimization__option-description",children:e.description})]})})]},`${o}-${s}`))})}},93471(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(11876),o=n(85985),s=n(56427),a=n(86087),i=n(27723),c=n(13022),l=(n(72613),n(10790));const __=i.__,u=({usage:e})=>{if(null==e)return null;const t=100-100*Math.max(Math.min(e,1),0),n={width:`${t}%`};return(0,l.jsx)("div",{className:"ai-assistant-usage-bar-wrapper",children:(0,l.jsx)("div",{className:(0,c.A)("ai-assistant-usage-bar-usage",{warning:t<60&&t>20,danger:t<=20}),style:n})})};const d=function({isOverLimit:e,planType:t,requestsCount:n,requestsLimit:c,nextResetDate:d=null,loading:p=!1}){const h=e||n>=c;let m=null;const g=Array(),f=Math.max(0,c-n);h&&t===o._X&&g.push(__("You've reached your free requests limit.","jetpack")),h&&t===o.ds&&g.push(__("You've reached your plan requests limit.","jetpack")),d&&t===o.ds&&(m=(0,a.createInterpolateElement)((0,i.sprintf)( | |
| 155 | +// translators: %1$d: number of days until the next usage count reset, %2$s: date of next reset | |
| 156 | +__("Requests will reset to <strong>%1$d</strong> on %2$s.","jetpack"),c,d),{strong:(0,l.jsx)("strong",{})}));const b=n/c,v=(0,l.jsxs)(l.Fragment,{children:[t===o.Ti&&(0,l.jsx)("p",{children:__("Unlimited requests.","jetpack")}),(t===o._X||t===o.ds)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"jetpack-ai-usage-panel__available-requests",children:f}),(0,l.jsx)(u,{usage:b})]})]}),y=(0,l.jsx)(r.A,{height:100,className:"jetpack-ai-usage-panel__loading-placeholder"}),k=(0,l.jsxs)(l.Fragment,{children:[!p&&g.length?g.join(" ").concat(" "):null,!p&&m]});return(0,l.jsxs)(s.BaseControl,{__nextHasNoMarginBottom:!0,help:k,children:[(0,l.jsx)(s.BaseControl.VisualLabel,{children:__("Available Requests","jetpack")}),!p&&v,p&&y]})}},27970(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(96865),o=n(3924),s=n(97999),a=n(85985),i=n(56427),c=n(38443),l=n(86087),u=n(27723),d=n(75956),p=n(93471),h=(n(90698),n(10790));const __=u.__;function m({isOverLimit:e,requestsCount:t,requestsLimit:n,nextStart:r,planType:o,loading:s,canUpgrade:l,showContactUsCallToAction:d,nextLimit:m,contactUsURL:g,handleContactUsClick:f,checkoutUrl:b,handleUpgradeClick:v}){const y=((e,t)=>e===a._X?__("Upgrade","jetpack"):t?(0,u.sprintf)( | |
| 140 | 157 | // translators: %1$d: an integer, the number of requests to upgrade to on the next tier |
| 141 | -__("Get %1$d requests","jetpack"),t):__("Get more requests","jetpack"),b=()=>{const e=(0,a.Z)("jetpack-ai-tiers-more-requests-contact"),{autosaveAndRedirect:t,isRedirecting:n}=(0,g.Z)(e);return{contactUsURL:e,autosaveAndRedirectContactUs:t,isRedirectingContactUs:n}};function C({isOverLimit:e,requestsCount:t,requestsLimit:n,nextStart:a,planType:s,loading:i,canUpgrade:l,showContactUsCallToAction:c,nextLimit:u,contactUsURL:d,handleContactUsClick:p,checkoutUrl:m,handleUpgradeClick:g}){const b=f(s,u),C=E(a);return(0,r.createElement)("div",{className:"jetpack-ai-usage-panel"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h.Z,{isOverLimit:e,requestsCount:t,requestsLimit:n,nextResetDate:C,planType:s,loading:i}),!i&&(s===A._5||s===A.dt)&&l&&(0,r.createElement)("div",{className:"jetpack-ai-usage-panel-upgrade-button"},c&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Need more requests?","jetpack")),(0,r.createElement)(o.Button,{target:"_blank",variant:"primary",label:__("Contact us for more requests","jetpack"),href:d,onClick:p},__("Contact Us","jetpack"))),!c&&(0,r.createElement)(o.Button,{target:"_blank",variant:"primary",label:__("Upgrade your Jetpack AI plan","jetpack"),href:m,onClick:g},b))))}function v({placement:e=null}){const{checkoutUrl:t}=(0,u.Z)(),{contactUsURL:n}=b(),{tracks:a}=(0,p.Z)(),o=(0,m.d)(),{requestsCount:i,requestsLimit:c,isOverLimit:g,usagePeriod:h,currentTier:E,nextTier:f,loading:v}=(0,d.Z)(),k=(0,A.U_)(E),B=(0,l.useCallback)((()=>{a.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:E?.slug,requests_count:i,...e?{placement:e}:{}})}),[a,E,i,e]),y=(0,l.useCallback)((()=>{a.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:E?.slug,requests_count:i,...e?{placement:e}:{}})}),[a,E,i,e]),w=((0,s.Wp)()||(0,s.Ug)())&&k===A.dt&&!f;return(0,r.createElement)(C,{isOverLimit:g,requestsCount:i,requestsLimit:c,nextStart:h?.nextStart,nextLimit:f?.limit,planType:k,loading:v,canUpgrade:o,showContactUsCallToAction:w,contactUsURL:n,handleContactUsClick:y,checkoutUrl:t,handleUpgradeClick:B})}},80013:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});const r="block_settings_sidebar"},44359:(e,t,n)=>{"use strict";var r=n(13419),a=n(94746);(0,r.o_)(a.u,a.X)},45975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(42290),a=n(4981),s=n(9818);const o=()=>{const e=(0,s.useSelect)((e=>e("core/block-editor").getBlocks()),[]);return e?.length?(0,r.g)({content:(0,a.serialize)(e)}):""}},84944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(11313),a=n(9818),s=n(69307),o=n(51128);const i=n.n(o)()("jetpack-ai-assistant-plugin:save-to-media-library");function l(){const[e,t]=(0,s.useState)(!1),{getSettings:n}=(0,a.useSelect)((e=>e("core/block-editor")),[]);return{isLoading:e,saveToMediaLibrary:e=>{const a=n();return new Promise(((n,s)=>{t(!0),i("Fetching image from URL"),fetch(e).then((e=>{i("Transforming response to blob"),e.blob().then((e=>{i("Uploading blob to media library");const o=[e];a.mediaUpload({allowedTypes:["image"],filesList:o,onFileChange([e]){(0,r.isBlobURL)(e?.url)||(e&&(i("Image uploaded to media library"),n(e)),t(!1))},onError(e){i("Error uploading image to media library:",e),s(e),t(!1)}})})).catch((e=>{i("Error transforming response to blob:",e?.message),s(e?.message),t(!1)}))})).catch((e=>{i("Error fetching image from URL:",e?.message),s(e?.message),t(!1)}))}))}}}},94746:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,u:()=>a});var r=n(90607);const a="ai-assistant-plugin",s={render:r.Z}},10350:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(51806),a=n(42290),s=n(55609),o=n(65736),i=n(99196),l=n.n(i),c=n(81612),u=n(27298);const __=o.__;function d({minWords:e=10,maxWords:t=100,disabled:n,words:o,onWordsNumberChange:i,language:d,onLanguageChange:p,tone:m,onToneChange:g}){const[A,h]=l().useState(!1);const E=d?.split(" ")[0],f=c.QA[E]?.label||__("Language","jetpack"),b=u.bu[m]?.label||__("Tone","jetpack");return(0,r.createElement)("div",{className:"jetpack-ai-generate-excerpt-control"},(0,r.createElement)(s.BaseControl,{className:"jetpack-ai-generate-excerpt-control__header",label:__("Settings","jetpack")},(0,r.createElement)(s.Button,{label:__("Advanced AI options","jetpack"),icon:a.u_,onClick:function(){h((e=>!e))},"aria-pressed":A,isSmall:!0})),A&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.xK,{disabled:n,onChange:p,value:d,label:f}),(0,r.createElement)(u.IP,{disabled:n,label:b,value:m,onChange:g})),(0,r.createElement)(s.RangeControl,{label:__("Desired length","jetpack"),value:o,onChange:i,min:e,max:t,help:__("Sets the desired length in words for the auto-generated excerpt. The final count may vary due to how AI works.","jetpack"),showTooltip:!1,disabled:n}))}},23134:(e,t,n)=>{"use strict";var r=n(13419),a=n(9818),s=n(72067),o=n(12238),i=n(92694),l=n(51128),c=n.n(l),u=n(23536),d=n(54765),p=n(72956);const m=c()("jetpack-ai-content-lens:registration"),g=window?.Jetpack_Editor_Initial_State?.available_blocks["ai-content-lens"];g?.available&&((0,i.addFilter)("blocks.registerBlockType","jetpack/ai-content-lens-features",(function(e,t){return t!==u.name?e:(0,d.J7)()?((0,r.o_)(p.x,p.S),m("Registered AI Excerpt plugin"),((0,a.dispatch)(o.store)?.removeEditorPanel?(0,a.dispatch)(o.store)?.removeEditorPanel:(0,a.dispatch)(s.store)?.removeEditorPanel)("post-excerpt"),m("Removed the post-excerpt panel"),e):e})),m("Added filter for AI Content Lens features"))},14237:(e,t,n)=>{"use strict";n.d(t,{V:()=>f});var r=n(51806),a=n(42290),s=n(13419),o=n(55609),i=n(9818),l=n(72067),c=n(12238),u=n(69307),d=n(65736),p=n(35266),m=n(5246),g=n(18135),A=n(78680),h=n(10350);const __=d.__,_n=d._n;function E(){const{excerpt:e,postId:t}=(0,i.useSelect)((e=>{const{getEditedPostAttribute:t,getCurrentPostId:n}=e(c.store);return{excerpt:t("excerpt")??"",postId:n()??0}}),[]),{tracks:n}=(0,s.z$)(),{editPost:l}=(0,i.useDispatch)("core/editor"),{dequeueAiAssistantFeatureAsyncRequest:A,increaseAiAssistantRequestsCount:E}=(0,i.useDispatch)("wordpress-com/plans"),[f,b]=(0,u.useState)(50),[C,v]=(0,u.useState)(!1),[k,B]=(0,u.useState)(),[y,w]=(0,u.useState)(),[_,I]=(0,u.useState)(null),{request:j,stopSuggestion:x,suggestion:S,requestingState:Q,error:N,reset:P}=(0,a.pw)({onDone:(0,u.useCallback)((()=>{E()}),[E]),onError:(0,u.useCallback)((e=>{"error_network"!==e.code&&"error_quota_exceeded"!==e.code&&E()}),[E])});(0,u.useEffect)((()=>()=>{x(),P()}),[x,P]);const T=(0,i.useSelect)((e=>{const t=e(c.store).getEditedPostContent();if(!t)return"";const n=(new window.DOMParser).parseFromString(t,"text/html");return(n.body.textContent||n.body.innerText||"").replace(/\n{2,}/g,"\n").trim()}),[t]),R=S||e,Z=(0,p.count)(R,"words"),L=(0,d.sprintf)( | |
| 142 | -// Translators: %1$s is the number of words in the excerpt. | |
| 143 | -_n("%1$s word","%1$s words",Z,"jetpack"),Z),M="requesting"===Q||"suggesting"===Q||"done"===Q&&!C,D="requesting"===Q||"suggesting"===Q,F=D||"done"===Q;const{requireUpgrade:z,isOverLimit:O}=(0,g.Z)(),U=(0,s.Ug)()||(0,s.Wp)()?__("https://wordpress.com/support/excerpts/","jetpack"):__("https://jetpack.com/support/create-better-post-excerpts-with-ai/","jetpack");return(0,r.createElement)("div",{className:"jetpack-ai-post-excerpt"},(0,r.createElement)(o.TextareaControl,{__nextHasNoMarginBottom:!0,label:__("Write an excerpt (optional)","jetpack"),onChange:e=>l({excerpt:e}),help:Z?L:null,value:R,disabled:F}),(0,r.createElement)(o.ExternalLink,{href:U},__("Learn more about manual excerpts","jetpack")),(0,r.createElement)("div",{className:"jetpack-generated-excerpt__ai-container"},N?.code&&"error_quota_exceeded"!==N.code&&(0,r.createElement)(o.Notice,{status:N.severity,isDismissible:!1,className:"jetpack-ai-assistant__error"},N.message),O&&(0,r.createElement)(m.Z,{placement:"excerpt-panel"}),(0,r.createElement)(h.A,{words:f,onWordsNumberChange:e=>{b(e),v(!0)},language:k,onLanguageChange:e=>{B(e),v(!0)},tone:y,onToneChange:e=>{w(e),v(!0)},model:_,onModelChange:e=>{I(e),v(!0)},disabled:D||z}),(0,r.createElement)(o.BaseControl,{help:T?.length?null:__("Add content to generate an excerpt.","jetpack")},(0,r.createElement)("div",{className:"jetpack-generated-excerpt__generate-buttons-container"},(0,r.createElement)(o.Button,{onClick:function(){l({excerpt:e}),n.recordEvent("jetpack_ai_assistant_block_discard",{feature:"jetpack-ai-content-lens"}),P()},variant:"secondary",isDestructive:!0,disabled:"done"!==Q||z},__("Discard","jetpack")),(0,r.createElement)(o.Button,{onClick:function(){l({excerpt:S}),n.recordEvent("jetpack_ai_assistant_block_accept",{feature:"jetpack-ai-content-lens"}),P()},variant:"secondary",disabled:"done"!==Q||z},__("Accept","jetpack")),(0,r.createElement)(o.Button,{onClick:function(){v(!1),P();const e=[{role:"jetpack-ai",context:{type:"ai-content-lens",contentType:"post-excerpt",postId:t,words:f,language:k,tone:y,content:`Post content:\n${T}\n`}}];A(),j(e,{feature:"jetpack-ai-content-lens",model:_}),n.recordEvent("jetpack_ai_assistant_block_generate",{feature:"jetpack-ai-content-lens"})},variant:"secondary",isBusy:D,disabled:M||z||!T},__("Generate","jetpack"))))))}const f=()=>(0,r.createElement)(c.PostTypeSupportCheck,{supportKeys:"excerpt"},(0,r.createElement)(l.PluginDocumentSettingPanel,{className:(0,A.L)("ai-content-lens")?"is-beta-extension inset-shadow":"",name:"ai-content-lens-plugin",title:__("Excerpt","jetpack")},(0,r.createElement)(E,null)))},72956:(e,t,n)=>{"use strict";n.d(t,{S:()=>s,x:()=>a});var r=n(14237);const a="ai-content-lens",s={render:r.V}},45939:(e,t,n)=>{"use strict";var r=n(13419),a=n(57389);(0,r.o_)(a.u,a.X)},57389:(e,t,n)=>{"use strict";n.d(t,{X:()=>E,u:()=>A});var r=n(51806),a=n(6895),s=n(13419),o=n(86989),i=n.n(o),l=n(55609),c=n(94333),u=n(37798),d=n(9818),p=n(12238),m=n(69307),g=n(65736);const __=g.__,A="launchpad-save-modal",h=["hideFSENextStepsModal"],E={render:function(){const{isSavingSite:e,isSavingPost:t,isCurrentPostPublished:n,postLink:o,postType:g}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(u.store);return{isSavingSite:t().some((e=>n(e.kind,e.name,e.key))),isSavingPost:e(p.store).isSavingPost(),isCurrentPostPublished:e(p.store).isCurrentPostPublished(),postLink:e(p.store).getPermalink(),postType:e(p.store).getCurrentPostType()}})),A=(0,c.usePrevious)(e),E=(0,c.usePrevious)(t),[f,b]=(0,m.useState)(!1),{launchpadScreenOption:C,hasNeverPublishedPostOption:v,hideFSENextStepsModal:k,siteIntentOption:B}=window?.Jetpack_LaunchpadSaveModal||{},y=!!k,[w,_]=(0,m.useState)(!1),[I,j]=(0,m.useState)(y),[x,S]=(0,m.useState)(y),Q=null!==document.getElementById("site-editor"),N=null!==document.querySelector(".block-editor"),P=(0,m.useRef)(y),T=(0,s.lQ)(),R=(0,a.Z)("wpcom-launchpad-setup",{path:B,query:`siteSlug=${T}`}),{tracks:Z}=(0,s.z$)(),L=e=>Z.recordEvent(e,{site_intent:B,launchpad_screen:C,dont_show_again:x,editor_type:Q?"site":"post"});(0,m.useEffect)((()=>{v&&"write"===B&&N?_(!1):(!0===A&&!1===e||!0===E&&!1===t)&&_(!0)}),[e,v,A,t,E,B,N]),(0,m.useEffect)((()=>{!1===n&&b(!0)}),[n]);const{title:M,body:D,actionButtonHref:F,actionButtonTracksEvent:z,actionButtonText:O}=function(){const e={title:__("Great progress!","jetpack"),body:__("You are one step away from bringing your site to life. Check out the next steps that will help you to launch your site.","jetpack"),actionButtonHref:R,actionButtonTracksEvent:"jetpack_launchpad_save_modal_next_steps",actionButtonText:__("Next Steps","jetpack")};return"newsletter"===B&&("post"===g?(e.title=__("Your first post is published!","jetpack"),e.body=__("Congratulations! You did it. View your post to see how it will look on your site.","jetpack"),e.actionButtonHref=o,e.actionButtonTracksEvent="jetpack_launchpad_save_modal_view_post",e.actionButtonText=__("View Post","jetpack")):e.body=__("You are one step away from bringing your site to life. Check out the next steps that will help you to setup your newsletter.","jetpack")),e}(),U=e=>{j(e),(e=>{if(e&&"object"==typeof e){window.Jetpack_LaunchpadSaveModal||(window.Jetpack_LaunchpadSaveModal={});for(const t of h)e.hasOwnProperty(t)&&(window.Jetpack_LaunchpadSaveModal[t]=e[t])}})({hideFSENextStepsModal:e}),e!==P.current&&(async e=>{i()({path:"/wpcom/v2/launchpad",method:"POST",data:{hide_fse_next_steps_modal:!!e}})})(e)};return(N&&n||Q)&&"full"===C&&!I&&w&&(0,r.createElement)(l.Modal,{isDismissible:!0,className:"launchpad__save-modal",onRequestClose:()=>{U(x),f?b(!1):(_(!1),L("jetpack_launchpad_save_modal_close"))}},(0,r.createElement)("div",{className:"launchpad__save-modal-body"},(0,r.createElement)("div",{className:"launchpad__save-modal-text"},(0,r.createElement)("h1",{className:"launchpad__save-modal-heading"},M),(0,r.createElement)("p",{className:"launchpad__save-modal-message"},D)),(0,r.createElement)("div",{className:"launchpad__save-modal-controls"},(0,r.createElement)(l.CheckboxControl,{label:__("Don't show this again.","jetpack"),checked:x,onChange:()=>S(!x)}),(0,r.createElement)("div",{className:"launchpad__save-modal-buttons"},(0,r.createElement)(l.Button,{variant:"secondary",onClick:()=>{U(x),_(!1),L("jetpack_launchpad_save_modal_back_to_edit")}},__("Back to Edit","jetpack")),(0,r.createElement)(l.Button,{variant:"primary",href:F,target:"_top",onClick:()=>{U(x),L(z)}},O)))))}}},22473:(e,t,n)=>{"use strict";n.d(t,{P:()=>l});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(65736);const __=i.__,l=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:i}=(0,s.z$)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Activate the Likes feature to allow others to like your posts.","jetpack")),(0,r.createElement)(o.Button,{disabled:n||t,isBusy:t,onClick:()=>(i.recordEvent("jetpack_editor_likes_enable"),e(!0)),variant:"secondary"},t?__("Activating Likes","jetpack"):__("Activate Likes","jetpack",0)),(0,r.createElement)("div",{className:"components-likes-placeholder__learn-more"},(0,r.createElement)(o.ExternalLink,{href:(0,a.Z)("jetpack-support-likes")},__("Learn more about Jetpack Likes.","jetpack"))))}},67708:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(51806),a=n(88275),s=n(22636),o=n(55609);const i=()=>(0,r.createElement)(a.ZP,null,(0,r.createElement)(o.Placeholder,null,(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"100%",padding:"0 1em"}},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:90})))))},66852:(e,t,n)=>{"use strict";var r=n(13419),a=n(12885);(0,r.o_)(a.u,a.X)},12885:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,u:()=>a});var r=n(77944);const a="likes",s={render:r.Z}},77944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(13419),s=n(55609),o=n(94333),i=n(9818),l=n(12238),c=n(65736),u=n(8264),d=n(22473),p=n(67708);const __=c.__,m=(0,i.withSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor");return{areLikesEnabled:t("jetpack_likes_enabled")}})),g=(0,i.withDispatch)((e=>{const{editPost:t}=e("core/editor");return{editPost:t}})),A=(0,o.compose)([m,g])((({areLikesEnabled:e,editPost:t})=>{const{isLoadingModules:n,isChangingStatus:o,isModuleActive:i,changeStatus:c}=(0,a.el)("likes");return i?(0,r.createElement)(l.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes"},(0,r.createElement)(u.Z,null,(0,r.createElement)(s.ToggleControl,{label:__("Show likes","jetpack"),checked:e,onChange:e=>{t({jetpack_likes_enabled:e})}}))):(0,r.createElement)(l.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes"},(0,r.createElement)(u.Z,null,n?(0,r.createElement)(p.q,null):(0,r.createElement)(d.P,{changeStatus:c,isModuleActive:i,isLoading:o})))}))},96564:(e,t,n)=>{"use strict";var r=n(13419),a=n(29719);(0,r.o_)(a.u,a.X)},29719:(e,t,n)=>{"use strict";n.d(t,{X:()=>m,u:()=>p});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(9818),l=n(72067),c=n(12238),u=n(65736),d=n(64967);const __=u.__,p="payments",m={render:()=>{const{tracks:e}=(0,s.z$)(),t=(0,a.Z)("wpcom-payments-donations");return"page"!==(0,i.useSelect)((e=>e(c.store).getCurrentPostType()),[])?null:(0,r.createElement)(l.PluginPostPublishPanel,{className:"jetpack-payments-post-publish-panel",title:__("Start accepting payments","jetpack"),initialOpen:!0,icon:d.Z},(0,r.createElement)("p",null,__("Insert the Payment Button or the Donations Form — no plugin required.","jetpack")),(0,r.createElement)("p",null,(0,r.createElement)(o.ExternalLink,{href:t,onClick:()=>{e.recordEvent("jetpack_editor_payments_post_publish_click")}},__("Learn more about these blocks","jetpack"))))}}},69683:(e,t,n)=>{"use strict";n.d(t,{D:()=>m});var r=n(51806),a=n(49777),s=n(55609),o=n(9818),i=n(12238),l=n(69307),c=n(65736),u=n(81427),d=n(41141);const __=c.__;function p(){const e=(0,l.useRef)(),[t,n]=(0,l.useState)();(0,l.useEffect)((()=>{if(!e?.current)return;const t=e.current.querySelector("svg");if(!t)return;const r=(new XMLSerializer).serializeToString(t);n(`data:image/svg+xml;base64,${window.btoa(r)}`)}),[e]);const s=(0,o.useSelect)((e=>e(i.store).getPermalink()),[]),{dataUrl:c}=(0,d.Z)({generateDataUrl:!0}),p=c||t;return(0,r.createElement)("div",{ref:e},(0,r.createElement)(a.Z,{value:s,size:300,imageSettings:p&&{src:p,width:64,height:64},renderAs:"canvas",level:"H"}),(0,r.createElement)(u.IM,{className:"qr-post-jetpack-logo",size:48,border:2}))}function m(){const e=(0,l.useRef)(),[t,n]=(0,l.useState)(!1);return(0,r.createElement)("div",{className:"qr-post-button"},(0,r.createElement)(s.Button,{variant:"secondary",onClick:()=>n((e=>!e))},__("Get QR code","jetpack")),t&&(0,r.createElement)(s.Modal,{title:__("QR Post code","jetpack"),onRequestClose:()=>n(!1),className:"qr-post-modal"},(0,r.createElement)("div",{className:"qr-post-modal__qr-code",ref:e},(0,r.createElement)(p,null))))}},71664:(e,t,n)=>{"use strict";var r=n(13419),a=n(30730);(0,r.o_)(a.u,a.X)},41141:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(37798),a=n(9818),s=n(69307),o=n(92694);function i({generateDataUrl:e=!1}={}){const[t,n]=(0,s.useState)(),{id:i,mediaItemData:l}=(0,a.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:a}=e(r.store),s=a("root","site"),o=n("root","__unstableBase"),i=s?.site_logo,l=o?.site_logo,c=t("update","settings")?i:l,u=c&&e(r.store).getMedia(c,{context:"view"});return{id:c,mediaItemData:u&&{mediaId:u.id,url:u.source_url,alt:u.alt_text}}}),[]);if(!i||!l?.url)return{};if(!e)return{id:i,...l};const c=new Image,u=(0,o.applyFilters)("media.crossOrigin",void 0,l.url);return"string"==typeof u&&(c.crossOrigin=u),c.onload=function(){const e=document.createElement("canvas"),t=e.getContext("2d");e.height=this.naturalHeight,e.width=this.naturalWidth,t.fillStyle="white",t.lineJoin="round",t.fillRect(0,0,e.width,e.height);const r=.08*e.width;t.drawImage(this,r,r,e.width-2*r,e.height-2*r);try{n(e.toDataURL("image/png"))}catch(e){console.warn("Error generating QR code extensions post-publish-qr-post-panel: ",e),console.warn("In case it's a cross-origin issue, take a look at https://developer.wordpress.org/block-editor/reference-guides/filters/editor-filters/#media-crossorigin"),n(null)}},c.src=l.url,{id:i,...l,dataUrl:t}}},30730:(e,t,n)=>{"use strict";n.d(t,{X:()=>A,u:()=>g});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(55609),l=n(9818),c=n(72067),u=n(12238),d=n(65736),p=n(34613),m=n(69683);const __=d.__,g="post-publish-qr-post-panel",A={render:function(){const e={name:"post-publish-qr-post-panel",title:__("QR Code","jetpack"),className:"post-publish-qr-post-panel",initialOpen:!1},t=(0,l.useSelect)((e=>e(u.store).isCurrentPostPublished()),[]);function n(){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(i.PanelRow,null,(0,s.createElement)("p",null,__("Take advantage of the QR code to open the post from different devices.","jetpack"))),(0,s.createElement)(m.D,null))}return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c.PluginPostPublishPanel,a()({},e,{icon:(0,s.createElement)(o.Pm,null)}),(0,s.createElement)(n,null)),t&&(0,s.createElement)(p.Z,null,(0,s.createElement)(i.PanelBody,e,(0,s.createElement)(n,null))))}}},2811:(e,t,n)=>{"use strict";n.d(t,{e:()=>c});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(69307),l=n(65736);const __=l.__,c=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:l}=(0,s.z$)(),[c,u]=(0,i.useState)(!1),d=(0,i.useCallback)((()=>{c||(u(!0),l.recordEvent("jetpack_editor_publicize_placeholder_view"))}),[c,l]);return(0,r.createElement)(o.PanelBody,{className:"jetpack-publicize__placeholder",title:__("Share this post","jetpack"),initialOpen:!1,onToggle:d},(0,r.createElement)("p",null,__("Activate the Jetpack Social feature to connect your website to the social media networks you use.","jetpack")),(0,r.createElement)(o.Button,{disabled:n||t,isBusy:t,onClick:()=>(l.recordEvent("jetpack_editor_publicize_enable"),e(!0)),variant:"secondary"},t?__("Activating Jetpack Social","jetpack"):__("Activate Jetpack Social","jetpack",0)),(0,r.createElement)("div",{className:"components-placeholder__learn-more"},(0,r.createElement)(o.ExternalLink,{href:(0,a.Z)("jetpack-support-publicize")},__("Learn more about Jetpack Social.","jetpack"))))}},81142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(88275),s=n(22636),o=n(55609);const i=function(){return(0,r.createElement)(a.ZP,null,(0,r.createElement)(o.Placeholder,null,(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"100%",padding:"0 1em"}},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:90})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})))))}},18374:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(81050),s=n(13419),o=n(55609),i=n(9818),l=n(12238),c=n(65736),u=n(15381),d=n(65235),p=n.n(d),m=n(78798);const __=c.__,g=()=>({start:__("Start sharing your posts by connecting your social media accounts.","jetpack"),enabled:__("Click on the social icons below to control where you want to share your post.","jetpack"),disabled:__("Use this tool to share your post on all your social media accounts.","jetpack"),reshare:__('Enable the social media accounts where you want to re-share your post, then click on the "Share post" button below.',"jetpack")});function A(){const{isRePublicizeUpgradableViaUpsell:e,isRePublicizeFeatureAvailable:t,isPublicizeEnabled:n}=(0,a.usePublicizeConfig)(),d=(0,s.Rl)("republicize"),[A,h,E,f]=(0,m.Z)(d),{hasConnections:b,hasEnabledConnections:C}=(0,a.useSocialMediaConnections)(),v=n&&!e,k=(0,i.useSelect)((e=>e(l.store).isCurrentPostPublished()),[]);if(!k||k&&t)return(0,r.createElement)("div",{className:"jetpack-publicize__upsell"},function(e,t,n){const r=g();return n?e?r.reshare:t?r.enabled:r.disabled:r.start}(k,v,b));const B=f?.product_name||__("paid","jetpack"),y=!(0,s.Ug)()&&!(0,s.Wp)(),w=y?__("Re-sharing your content","jetpack"):__("Share Your Content Again","jetpack",0),_=y?"https://jetpack.com/support/jetpack-social/#re-sharing-your-content":"https://wordpress.com/support/jetpack-social/#share-your-content-again",I=__("Upgrade now","jetpack");return t||e?(0,r.createElement)("div",{className:"jetpack-publicize__upsell"},(0,r.createElement)("div",{className:"jetpack-publicize__upsell-description"},(0,c.sprintf)(/* translators: placeholder is the product name of the plan. */ | |
| 144 | -__("To re-share a post, you need to upgrade to the %s plan","jetpack"),B)),(0,r.createElement)(o.Button,{href:E?null:A,onClick:h,target:"_top",icon:u.Z,className:p()("jetpack-publicize__upsell-button is-primary",{"jetpack-upgrade-plan__hidden":!A}),isBusy:E},E?__("Redirecting…","jetpack"):I)):(0,r.createElement)("div",{className:"jetpack-publicize__upsell"},(0,r.createElement)("strong",null,w),(0,r.createElement)("br",null),(0,c.sprintf)(/* translators: placeholder is the product name of the plan. */ | |
| 145 | -__("This feature is for sites with a %s plan.","jetpack"),B),(0,r.createElement)("br",null),(0,r.createElement)(o.ExternalLink,{href:_},__("More information.","jetpack")))}},55802:(e,t,n)=>{"use strict";var r=n(13419),a=n(71259);(0,r.o_)(a.u,a.X)},71259:(e,t,n)=>{"use strict";n.d(t,{X:()=>g,u:()=>m});var r=n(51806),a=n(81050),s=n(13419),o=n(12238),i=n(34613),l=n(2811),c=n(81142),u=n(18374),d=n(2242),p=n(83179);const m="publicize",g={render:()=>{const{isLoadingModules:e,isChangingStatus:t,isModuleActive:n,changeStatus:g}=(0,s.el)(m),{isSocialImageGeneratorAvailable:A}=(0,a.usePublicizeConfig)();let h=null,E=null;return e?h=(0,r.createElement)(c.Z,null):n?(h=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PublicizePanel,null,(0,r.createElement)(u.Z,null)),A&&(0,r.createElement)(a.SocialImageGeneratorPanel,null)),E=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,{isSocialImageGeneratorAvailable:A}),(0,r.createElement)(d.Z,null))):h=(0,r.createElement)(l.e,{changeStatus:g,isModuleActive:n,isLoading:t}),(0,r.createElement)(o.PostTypeSupportCheck,{supportKeys:"publicize"},(0,r.createElement)(i.Z,null,h),E)}}},2242:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(81050);const s=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.PostPublishManualSharing,null),(0,r.createElement)(a.PostPublishReviewPrompt,null))},83179:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(81050),s=n(13419),o=n(72067),i=n(65736),l=n(18374);const __=i.__,c=({isSocialImageGeneratorAvailable:e})=>{(0,a.useSyncPostDataToStore)();const{hasEnabledConnections:t}=(0,a.useSocialMediaConnections)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.PluginPrePublishPanel,{initialOpen:t,id:"publicize-title",title:(0,r.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},__("Share this post","jetpack")),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(a.PublicizePanel,{prePublish:!0},(0,r.createElement)(l.Z,null))),e&&(0,r.createElement)(o.PluginPrePublishPanel,{initialOpen:!0,title:__("Social Image Generator","jetpack"),icon:(0,r.createElement)(s.Pm,null)},(0,r.createElement)(a.SocialImageGeneratorPanel,{prePublish:!0})))}},68607:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(65736);const __=i.__,l=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:i}=(0,s.z$)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Activate the SEO feature and start optimizing your posts for search engines.","jetpack")),(0,r.createElement)(o.Button,{disabled:n||t,isBusy:t,onClick:()=>(i.recordEvent("jetpack_editor_seo_enable"),e(!0)),variant:"secondary"},t?__("Activating Jetpack SEO","jetpack"):__("Activate Jetpack SEO","jetpack",0)),(0,r.createElement)("div",{className:"components-seo-placeholder__learn-more"},(0,r.createElement)(o.ExternalLink,{href:(0,a.Z)("jetpack-support-seo-tools")},__("Learn more about Jetpack SEO.","jetpack"))))}},26779:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(51806),a=n(88275),s=n(22636),o=n(55609);const i=()=>(0,r.createElement)(a.ZP,null,(0,r.createElement)(o.Placeholder,null,(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"100%",padding:"0 1em"}},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:90})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})))))},45066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(15381),l=n(65235),c=n.n(l),u=n(78798);const __=o.__,d=({requiredPlan:e})=>{const[t,n,l,d]=(0,u.Z)(e),{tracks:p}=(0,a.z$)(),m=d?.product_name||__("paid","jetpack"),g=__("Upgrade now","jetpack");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",null,(0,o.sprintf)(/* translators: placeholder is the product name of the plan. */ | |
| 146 | -__("To use the SEO feature you need to upgrade to the %s plan","jetpack"),m)),(0,r.createElement)("div",{className:"components-seo-upsell__learn-more"},(0,r.createElement)(s.ExternalLink,{href:"https://wordpress.com/support/seo-tools/"},__("Learn more about SEO feature.","jetpack"))),(0,r.createElement)(s.Button,{href:l?null:t,onClick:e=>{e.preventDefault(),p.recordEvent("jetpack_seo_tools_upsell_click"),n(e)},target:"_top",icon:i.Z,className:c()("components-seo-upsell__button is-primary",{"jetpack-upgrade-plan__hidden":!t}),isBusy:l},l?__("Redirecting…","jetpack"):g))}},71181:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(82674),a=n.n(r),s=n(51806),o=n(55609),i=n(65736);n(99196);const __=i.__,_n=i._n,l=({suggestedLimit:e,value:t,label:n,...r})=>{const l=!e||t.length<=e?(0,i.sprintf)(/* translators: Placeholder is a number of characters in a sentence. */ | |
| 147 | -_n("%d character","%d characters",t.length,"jetpack"),t.length):(0,i.sprintf)(/* translators: Placeholder is a number of characters in a sentence. */ | |
| 148 | -__("It’s recommended to use less than %1$d characters in this field. (%2$d used)","jetpack"),e,t.length);return(0,s.createElement)("div",{className:"jetpack-seo-message-box"},(0,s.createElement)(o.TextareaControl,a()({label:n,help:l,value:t},r)))}},83811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(69307),s=n(65736),o=n(71181),i=n(12017);const __=s.__;class l extends a.Component{onMessageChange=e=>{this.props.updateMetaValue(e)};render(){const{metaValue:e}=this.props;return(0,r.createElement)(o.J,{value:e,onChange:this.onMessageChange,label:__("SEO Description","jetpack"),placeholder:__("Write a description…","jetpack"),suggestedLimit:156,rows:4})}}const c=(0,i.M)("advanced_seo_description")(l)},48111:(e,t,n)=>{"use strict";var r=n(13419),a=n(67500);(0,r.o_)(a.u,a.X)},67500:(e,t,n)=>{"use strict";n.d(t,{X:()=>C,u:()=>f});var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(55609),l=n(72067),c=n(69307),u=n(65736),d=n(34613),p=n(68607),m=n(26779),g=n(45066),A=n(83811),h=n(13344),E=n(18543);const __=u.__,f="seo",b=()=>{const{isLoadingModules:e,isChangingStatus:t,isModuleActive:n,changeStatus:r}=(0,o.el)("seo-tools"),u=(0,o.Rl)("advanced-seo"),f=(0,o.Ug)()||(0,o.Wp)(),b={title:__("SEO","jetpack")};if(f&&!1!==u)return(0,s.createElement)(c.Fragment,null,(0,s.createElement)(d.Z,null,(0,s.createElement)(i.PanelBody,a()({className:"jetpack-seo-panel"},b,{initialOpen:!1}),(0,s.createElement)(g.Z,{requiredPlan:u}))));if(!n)return(0,s.createElement)(c.Fragment,null,(0,s.createElement)(d.Z,null,(0,s.createElement)(i.PanelBody,a()({className:"jetpack-seo-panel"},b,{initialOpen:!1}),e?(0,s.createElement)(m.f,null):(0,s.createElement)(p.C,{changeStatus:r,isModuleActive:n,isLoading:t}))));const C={icon:(0,s.createElement)(o.Pm,null),title:__("SEO","jetpack")};return(0,s.createElement)(c.Fragment,null,(0,s.createElement)(d.Z,null,(0,s.createElement)(i.PanelBody,a()({className:"jetpack-seo-panel"},b),(0,s.createElement)(i.PanelRow,null,(0,s.createElement)(E.Z,null)),(0,s.createElement)(i.PanelRow,null,(0,s.createElement)(A.Z,null)),(0,s.createElement)(i.PanelRow,null,(0,s.createElement)(h.Z,null)))),(0,s.createElement)(l.PluginPrePublishPanel,C,(0,s.createElement)(c.Fragment,null,(0,s.createElement)(i.PanelRow,null,(0,s.createElement)(E.Z,null)),(0,s.createElement)(i.PanelRow,null,(0,s.createElement)(A.Z,null)),(0,s.createElement)(i.PanelRow,null,(0,s.createElement)(h.Z,null)))))},C={render:()=>(0,s.createElement)(b,null)}},13344:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(55609),s=n(65736),o=(n(99196),n(12017));const __=s.__,i=(0,o.M)("jetpack_seo_noindex")((({metaValue:e,updateMetaValue:t})=>(0,r.createElement)(a.ToggleControl,{label:__("Hide page from search engines","jetpack"),help:__("If selected, a 'noindex' tag will help instruct search engines to not include this page in search results. This page will also be removed from the Jetpack sitemap.","jetpack"),checked:!!e,onChange:e=>{t(e)}})))},18543:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(69307),s=n(65736),o=(n(99196),n(71181)),i=n(12017);const __=s.__;class l extends a.Component{onTitleChange=e=>{this.props.updateMetaValue(e)};render(){const{metaValue:e}=this.props;return(0,r.createElement)(o.J,{value:e,onChange:this.onTitleChange,label:__("SEO Title","jetpack"),placeholder:__("Write a title…","jetpack"),suggestedLimit:70,rows:2})}}const c=(0,i.M)("jetpack_seo_html_title")(l)},12017:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(94333),a=n(9818),s=n(92819);const o=e=>(0,r.compose)([(0,a.withSelect)((t=>({metaValue:(0,s.get)(t("core/editor").getEditedPostAttribute("meta"),[e],"")}))),(0,a.withDispatch)((t=>({updateMetaValue(n){var r;"boolean"!=typeof(r=n)&&("string"!=typeof r||""!==r&&0===r.trim().length)||t("core/editor").editPost({meta:{[e]:n}})}})))])},33726:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(51806),a=n(6895),s=n(13419),o=n(55609),i=n(65736);const __=i.__,l=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:i}=(0,s.z$)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,__("Activate the Sharing feature to allow others to share your posts.","jetpack")),(0,r.createElement)(o.Button,{disabled:n||t,isBusy:t,onClick:()=>(i.recordEvent("jetpack_editor_sharing_enable"),e(!0)),variant:"secondary"},t?__("Activating Sharing","jetpack"):__("Activate Sharing","jetpack",0)),(0,r.createElement)("div",{className:"components-sharing-placeholder__learn-more"},(0,r.createElement)(o.ExternalLink,{href:(0,a.Z)("jetpack-support-sharing")},__("Learn more about Jetpack Sharing.","jetpack"))))}},14166:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(13419),s=n(55609),o=n(9818),i=n(12238),l=n(65736),c=n(8264),u=n(33726),d=n(40399);const __=l.__;function p({checked:e,onChange:t}){return(0,r.createElement)(s.ToggleControl,{label:__("Show sharing buttons","jetpack"),checked:e,onChange:e=>{t({jetpack_sharing_enabled:e})}})}function m(){const{isLoadingModules:e,isChangingStatus:t,isModuleActive:n,changeStatus:s}=(0,a.el)("sharedaddy"),l=(0,o.useSelect)((e=>e(i.store).getEditedPostAttribute("jetpack_sharing_enabled")),[]),{editPost:m}=(0,o.useDispatch)(i.store);return n?(0,r.createElement)(i.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons"},(0,r.createElement)(c.Z,null,(0,r.createElement)(p,{checked:l,onChange:m}))):(0,r.createElement)(i.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons"},(0,r.createElement)(c.Z,null,e?(0,r.createElement)(d.Z,null):(0,r.createElement)(u.$,{changeStatus:s,isModuleActive:n,isLoading:t})))}},40399:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(88275),s=n(22636),o=n(55609);const i=function(){return(0,r.createElement)(a.ZP,null,(0,r.createElement)(o.Placeholder,null,(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"100%",padding:"0 1em"}},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:90})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})))))}},27425:(e,t,n)=>{"use strict";var r=n(13419),a=n(3378);(0,r.o_)(a.u,a.X)},3378:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,u:()=>a});var r=n(14166);const a="sharing",s={render:r.Z}},21964:(e,t,n)=>{"use strict";var r=n(13419),a=n(9460);(0,r.o_)(a.u,a.X)},9460:(e,t,n)=>{"use strict";n.d(t,{X:()=>i,u:()=>o});var r=n(9818),a=n(69307),s=n(65736);const __=s.__,o="site-editor-snackbars",i={render:()=>{const[e,t]=(0,a.useState)(),{createInfoNotice:n,removeNotice:o}=(0,r.useDispatch)("core/notices"),{entityTitle:i,entityType:l,isSiteEditor:c}=(0,r.useSelect)((e=>{if(!e("core/edit-site"))return{isSiteEditor:!1};const{getEditedPostType:t,getEditedPostId:n}=e("core/edit-site"),{getEntityRecord:r,getPostType:a}=e("core"),s=r("postType",t(),n()),o=a(t());return{isSiteEditor:!0,entityTitle:s?.title?.raw??"",entityType:o?.labels?.singular_name??""}}));return(0,a.useEffect)((()=>{if(!c)return;const e=(0,r.subscribe)((()=>{setTimeout((()=>{const n=new URLSearchParams(window.location.search);if(!n.has("canvas"))return e();t(n.get("canvas"))}),0)}),"core/edit-site");return()=>e()}),[c]),(0,a.useEffect)((()=>{const t="jetpack/site-editor/snackbars";if(o(t),!c||"edit"!==e||!i||!l)return;const r=(0,s.sprintf)(/* translators: %1$s and %2$s are the title and type, respectively, of the entity being edited (e.g. "Editing the Index template", or "Editing the Header template part").*/ | |
| 149 | -__("Editing the %1$s %2$s","jetpack"),i,l.toLowerCase());n(r,{id:t,type:"snackbar"})}),[c,e,n,o,i,l]),null}}},10601:(e,t,n)=>{"use strict";var r=n(13419),a=n(81836);(0,r.o_)(a.u2,a.Xd)},81836:(e,t,n)=>{"use strict";n.d(t,{Xd:()=>p,u2:()=>d});var r=n(51806),a=n(81050),s=n(13419),o=n(55609),i=n(72067),l=n(69307),c=n(65736),u=n(34613);const __=c.__,d="social-previews",p={render:()=>(0,r.createElement)(m,null)},m=function(){const[e,t]=(0,l.useState)(!1);return(0,r.createElement)(r.Fragment,null,e&&(0,r.createElement)(a.SocialPreviewsModal,{onClose:()=>t(!1)}),(0,r.createElement)(u.Z,null,(0,r.createElement)(o.PanelBody,{title:__("Social Previews","jetpack"),initialOpen:!1},(0,r.createElement)(a.SocialPreviewsPanel,{openModal:()=>t(!0)}))),(0,r.createElement)(i.PluginPrePublishPanel,{title:__("Social Previews","jetpack"),icon:(0,r.createElement)(s.Pm,null),initialOpen:!1},(0,r.createElement)(a.SocialPreviewsPanel,{openModal:()=>t(!0)})))}},43718:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var r=n(55609);const a=(0,r.withFallbackStyles)(((e,t)=>{const{textColor:n,backgroundColor:r}=t,a=r&&r.color,s=n&&n.color;return{fallbackBackgroundColor:a||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:s||!e?void 0:getComputedStyle(e).color}}))},85921:(e,t,n)=>{"use strict";var r=n(51806),a=n(13419),s=n(4981),o=n(65736),i=n(81427);const __=o.__;(0,a.Wp)()||(0,a.Ug)()||(0,s.registerBlockCollection)("jetpack",{title:"Jetpack",icon:(0,r.createElement)(i.IM,null)}),(0,s.setCategories)([...(0,s.getCategories)().filter((({slug:e})=>"contact-form"!==e)),{slug:"contact-form",title:__("Forms","jetpack"),icon:(0,r.createElement)(i.IM,null)}]),(0,s.setCategories)([...(0,s.getCategories)().filter((({slug:e})=>"monetize"!==e)),{slug:"monetize",title:__("Monetize","jetpack"),icon:(0,r.createElement)(i.IM,null)}]),(0,s.setCategories)([...(0,s.getCategories)().filter((({slug:e})=>"grow"!==e)),{slug:"grow",title:__("Grow","jetpack"),icon:(0,r.createElement)(i.IM,null)}])},85007:(e,t,n)=>{"use strict";function r(e){const t=e.ownerDocument;return{currentDoc:t,currentWindow:t.defaultView||t.parentWindow}}function a(e,t,n=!1){let a=[];if(!t||!e&&!e.length||!function(e){const{currentWindow:t}=r(e);return"editor-canvas"===t.name&&t.self!==t.top}(t))return a;const{currentDoc:s,currentWindow:o}=r(t);if(!function(e){try{return!!e?.parent?.location.href}catch(e){return!1}}(o))return a;const i=o?.parent?.document;return s&&i?(a=e.filter((e=>{const t=i.querySelector(e),r=!!s.querySelector(e);return!(!t||r)&&(s.head.appendChild(t.cloneNode()),n&&t.remove(),!0)})),a):a}function s(e,t,a){let s;try{s=new URL("editor-assets",n.p)}catch(e){}if(!s)return;const o=s.href,{currentDoc:i}=r(a),l=i.getElementsByTagName("head")[0];e.forEach((e=>{const[n,r]=e.file.split("/").pop().split(".");if("css"===r){if(i.getElementById(e.id))return;const t=i.createElement("link");t.id=e.id,t.rel="stylesheet",t.href=`${o}/${n}-${e.version}.${r}`,l.appendChild(t)}if("js"===r){const a=t[e.id]?t[e.id]:null;if(i.getElementById(e.id))return a();const s=i.createElement("script");s.id=e.id,s.type="text/javascript",s.src=`${o}/${n}-${e.version}.${r}`,s.onload=a,l.appendChild(s)}}))}function o(e,t){return new Promise((n=>{const r=()=>{e[t]?n(e[t]):e.requestAnimationFrame(r)};r()}))}n.d(t,{DT:()=>a,Dz:()=>o,Pp:()=>s,bL:()=>r})},70355:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(80550),a=n(13419);const s=r.O["Jetpack Green 40"];function o(){return(0,a.Ug)()||(0,a.Wp)()?null:s}},81518:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(29512),a=n.n(r),s=n(92819);function o(e,t){const n=function(e,t){for(const n of new(a())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),r=(0,s.find)(e,{name:t});if(r)return r}return(0,s.find)(e,"isDefault")}(e,t);return n?n.name:null}},26788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(69307),o=n(65736);const __=o.__,_x=o._x;class i extends s.Component{state={hasCopied:!1};onCopy=()=>this.setState({hasCopied:!0});onFinishCopy=()=>this.setState({hasCopied:!1});onFocus=e=>e.target.select();render(){const{link:e}=this.props,{hasCopied:t}=this.state;return e?(0,r.createElement)("div",{className:"jetpack-clipboard-input"},(0,r.createElement)(a.TextControl,{readOnly:!0,onFocus:this.onFocus,value:e}),(0,r.createElement)(a.ClipboardButton,{variant:"secondary",onCopy:this.onCopy,onFinishCopy:this.onFinishCopy,text:e},t?__("Copied!","jetpack"):_x("Copy","verb","jetpack"))):null}}const l=i},24381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=/^#?[A-Fa-f0-9]{6}$/;function a(e){return r.test(e)}},72752:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(25158),s=n(69307),o=n(65736),i=n(92819),l=n(97115);const __=o.__,c="undefined"!=typeof _wpmejsSettings?_wpmejsSettings:{};function u(e,t,n){const r=document.createElement("div");r.className=e;const a=document.createElement("button");return a.innerText=t,a.addEventListener("click",n),a.setAttribute("aria-label",t),a.setAttribute("title",t),r.appendChild(a),r}const d=function({trackSource:e,onPlay:t,onPause:n,onError:o,onTimeChange:d,onSkipForward:p,onJumpBack:m,currentTime:g,playStatus:A=l._5,onMetadataLoaded:h,loadWhenReady:E=!1,preload:f="metadata"}){const b=(0,s.useRef)(),C=()=>{b.current.play().catch((()=>{}))},v=()=>{b.current.pause(),(0,a.speak)(__("Paused","jetpack"),"assertive")};return(0,s.useEffect)((()=>{MediaElementPlayer.prototype._setResponsiveMode||(MediaElementPlayer.prototype._setResponsiveMode=MediaElementPlayer.prototype.setResponsiveMode,MediaElementPlayer.prototype.setResponsiveMode=function(){const e=this;e.getElement(e.container).parentNode&&e._setResponsiveMode()})}),[]),(0,s.useEffect)((()=>{const e=b.current;e.preload=f;const r=new MediaElementPlayer(e,{...c,success:()=>E&&e?.load()});if(m||p){const e=`${r.options.classPrefix}button ${r.options.classPrefix}jump-button`;if(m){const t=`${e} ${r.options.classPrefix}jump-backward-button`;r.addControlElement(u(t,__("Jump Back","jetpack"),m),"jumpBackwardButton")}if(p){const t=`${e} ${r.options.classPrefix}skip-forward-button`;r.addControlElement(u(t,__("Skip Forward","jetpack"),p),"skipForwardButton")}}return t&&e.addEventListener("play",t),n&&e.addEventListener("pause",n),o&&e.addEventListener("error",o),h&&e.addEventListener("loadedmetadata",h),()=>{r.remove(),t&&e.removeEventListener("play",t),n&&e.removeEventListener("pause",n),o&&e.removeEventListener("error",o),h&&e.removeEventListener("loadedmetadata",h)}}),[t,n,o,m,p,h,E,f]),(0,s.useEffect)((()=>{const[e,t]=!1===b.current?.paused?[l.Wp,v]:[l._5,C],n=(0,i.debounce)(t,100);return l.Vy!==A&&e!==A&&n(),()=>{n.cancel()}}),[b,A,e]),(0,s.useEffect)((()=>{if(!d)return;const e=b.current,t=(0,i.throttle)((e=>d(e)),1e3,{leading:!0,trailing:!1}),n=e=>t(e.target.currentTime);return d&&e?.addEventListener("timeupdate",n),()=>{t.cancel(),e?.removeEventListener("timeupdate",n)}}),[b,d]),(0,s.useEffect)((()=>{const e=b.current;g&&e&&Math.abs(Math.floor(g-e.currentTime))>1&&(e.currentTime=g)}),[b,g]),(0,r.createElement)("div",{className:"jetpack-audio-player"},(0,r.createElement)("audio",{src:e,ref:b}))}},44738:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(52175),s=n(55609),o=n(65736),i=n(65235),l=n.n(i),c=n(46867);const __=o.__;function u({blockName:e,buttonLabel:t,className:n,href:o,icon:i,onClick:u,readMoreUrl:d,subtitle:p,title:m}){const{autosaveAndRedirect:g}=(0,c.Z)(o);return(0,r.createElement)(a.Warning,{actions:o&&[(0,r.createElement)(s.Button,{href:o,onClick:t=>{t.preventDefault(),u(e),g(t)},target:"_top",variant:"secondary",className:"jetpack-stripe-nudge__link"},t)],className:l()(n,"jetpack-block-nudge wp-block")},(0,r.createElement)("span",{className:"jetpack-block-nudge__info"},i,(0,r.createElement)("span",{className:"jetpack-block-nudge__text-container"},(0,r.createElement)("span",{className:"jetpack-block-nudge__title"},m),p&&(0,r.createElement)("span",{className:"jetpack-block-nudge__message"},p,d&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("br",null),(0,r.createElement)(s.ExternalLink,{href:d},__("Learn more about the block and fees","jetpack")))))))}},57538:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(51806),a=n(52175),s=n(4981),o=n(55609),i=n(9818),l=n(69307),c=n(65736),u=n(39630),d=n(65235),p=n.n(d),m=n(92819);const __=c.__,g=({attributes:e,styleOption:t,viewportWidth:n,blockName:o})=>{const i=(0,s.getBlockType)(o);return(0,r.createElement)(a.BlockPreview,{viewportWidth:n,blocks:(l=i.example?(0,s.getBlockFromExample)(o,{attributes:{...i.example.attributes,style:t.value},innerBlocks:i.example.innerBlocks}):(0,s.createBlock)(o,e),{...l,attributes:{...l.attributes,__isBlockPreview:!0}})});var l},A=l.memo?(0,l.memo)(g,((e,t)=>(0,m.isEqual)(e,t))):g;function h({attributes:e,clientId:t,styleOptions:n,onSelectStyle:s,activeStyle:l,viewportWidth:c,title:d}){let m;return i.useSelect&&(m=(0,i.useSelect)((e=>{const{getBlock:n}=e("core/block-editor");return n(t)}))),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.BlockControls,null,(0,r.createElement)(o.ToolbarGroup,{isCollapsed:!0,icon:"admin-appearance",label:__("Style","jetpack"),controls:n.map((e=>({title:e.label,isActive:e.value===l,onClick:()=>s({style:e.value})}))),popoverProps:{className:"jetpack-block-styles-selector-toolbar"}})),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:d||__("Styles","jetpack")},(0,r.createElement)("div",{className:"block-editor-block-styles jetpack-block-styles-selector"},n.map((t=>{const n={...e,style:t.value};return(0,r.createElement)("div",{key:t.value,className:p()("block-editor-block-styles__item",{"is-active":t.value===l}),onClick:()=>{s({style:t.value})},onKeyDown:e=>{u.ENTER!==e.keyCode&&u.SPACE!==e.keyCode||(e.preventDefault(),s({style:t.value}))},role:"button",tabIndex:"0","aria-label":t.label},(0,r.createElement)("div",{className:"block-editor-block-styles__item-preview"},t.preview?t.preview:i.useSelect&&m&&(0,r.createElement)(A,{blockName:m.name,styleOption:t,attributes:n,viewportWidth:c})),(0,r.createElement)("div",{className:"block-editor-block-styles__item-label"},t.label))}))))))}},34904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806);function a({children:e,spanClass:t}){return(0,r.createElement)("div",{className:"jetpack-inspector-notice"},(0,r.createElement)("span",{className:t},e))}},8649:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(51806),a=n(88275),s=n(22636),o=n(55609);const i=()=>(0,r.createElement)(a.ZP,null,(0,r.createElement)(o.Placeholder,null,(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"}},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:90}))),(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"}},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:90}))),(0,r.createElement)(o.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"}},(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:30})),(0,r.createElement)(o.FlexItem,null,(0,r.createElement)(s.Z,{width:"100%",height:90})))))},20769:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(82674),a=n.n(r),s=n(51806),o=n(55609);const i=o.NumberControl||o.__experimentalNumberControl||function(e){return(0,s.createElement)(o.TextControl,a()({type:"number",inputMode:"numeric"},e))}},17746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(55609),s=n(9818),o=n(65736),i=n(88966),l=n(46867);const __=o.__;function c({showDialog:e,closeDialog:t}){const{hasTierPlans:n}=(0,s.useSelect)((e=>{const{getNewsletterTierProducts:t,getConnectUrl:n}=e("jetpack/membership-products");return{stripeConnectUrl:n(),hasTierPlans:0!==t()?.length}})),o=(0,i.nZ)(n),{autosaveAndRedirect:c}=(0,l.Z)(o);return(0,r.createElement)(a.__experimentalConfirmDialog,{onRequestClose:t,cancelButtonText:__("Not now","jetpack"),confirmButtonText:__("Get started","jetpack"),isOpen:e,onCancel:t,onConfirm:c,style:{maxWidth:400}},(0,r.createElement)("h2",null,__("Set up payments","jetpack")),(0,r.createElement)("p",null,__("To start collecting payments, you’ll just need to:","jetpack")),(0,r.createElement)("ol",null,(0,r.createElement)("li",null,__("Create a payment offer and choose a price for access to paid content","jetpack")),(0,r.createElement)("li",null,__("Set up or connect your Stripe account","jetpack"))))}},14436:(e,t,n)=>{"use strict";n.d(t,{Bn:()=>s,DM:()=>o,DW:()=>a,mj:()=>r});const r=0,a=1,s="payment-plan",o="subscription"},68880:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,a:()=>s});var r=n(69307),a=n(14436);const s=(0,r.createContext)({blockName:void 0,clientId:void 0,products:[],productType:a.Bn,selectedProductIds:[],setSelectedProductIds:()=>{}}),o=()=>(0,r.useContext)(s)},60386:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(52175),s=n(9818),o=n(7652),i=n(2327),l=n(14436),c=n(68880),u=n(51310),d=n(21200),p=n(16842);function m({blockName:e,clientId:t,productType:n=l.Bn,selectedProductIds:m=[],setSelectedProductIds:g=(()=>{})}){const A=(0,s.useSelect)((e=>e(o.h).getProducts(n,m,g)),[]),{connectUrl:h,isApiConnected:E,areSelectedProductsInvalid:f}=(0,s.useSelect)((e=>{const{getConnectUrl:t,isApiStateConnected:n,hasInvalidProducts:r}=e(o.h);return{connectUrl:t(),isApiConnected:n(),areSelectedProductsInvalid:r(m)}}));if(!E)return null;const b={blockName:e,clientId:t,products:A,productType:n,selectedProductIds:m,setSelectedProductIds:g};return(0,r.createElement)(c.a.Provider,{value:b},!E&&!!h&&(0,r.createElement)(a.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block"},(0,r.createElement)(i.Z,{blockName:e,connectUrl:h})),E&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.Z,null),(0,r.createElement)(p.Z,null)),E&&f&&(0,r.createElement)(d.Z,null))}},51310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(51806),a=n(52175),s=n(55609),o=n(9818),i=n(69307),l=n(65736),c=n(1078),u=n(99196),d=n(7652),p=n(79162),m=n(14436),g=n(68880),A=n(51585);const __=l.__,h="USD",E=5,f="1 month",b=!1;function C(){const{productType:e,setSelectedProductIds:t}=(0,g.Q)(),n=(0,o.useSelect)((e=>e(d.h).getSiteSlug())),{saveProduct:l}=(0,o.useDispatch)(d.h),[C,v]=(0,i.useState)(m.mj),[k,B]=(0,i.useState)((0,A.l)("default new product title",e)),[y,w]=(0,i.useState)(!1),[_,I]=(0,i.useState)(h),[j,x]=(0,i.useState)(E),[S,Q]=(0,i.useState)(f),[N,P]=(0,i.useState)(b),T=[{label:__("Month","jetpack"),value:"1 month"},{label:__("Year","jetpack"),value:"1 year"},{label:__("One-Time Payment","jetpack"),value:"one-time"}];return(0,u.useEffect)((()=>{y||(B((0,A._)(S)),w(!1))}),[S,y]),(0,r.createElement)(a.InspectorControls,null,n&&(0,r.createElement)(s.PanelBody,null,(0,r.createElement)(s.ExternalLink,{href:`https://wordpress.com/earn/payments/${n}`},(0,A.l)("manage your products",e))),(0,r.createElement)(s.PanelBody,{title:(0,A.l)("add a new product",e),initialOpen:!0,className:"product-management-control-inspector__add-plan"},C===m.DW&&(0,r.createElement)(s.Placeholder,{icon:c.Z,label:(0,A.l)("saving product",e)},(0,r.createElement)(s.Spinner,null)),C===m.mj&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.PanelRow,{className:"product-management-control-inspector__product-title"},(0,r.createElement)(s.TextControl,{id:"new-product-title",label:__("Name","jetpack"),onChange:e=>{B(e),w(!0)},value:k})),(0,r.createElement)(s.PanelRow,{className:"product-management-control-inspector__product-price"},(0,r.createElement)(s.SelectControl,{label:__("Currency","jetpack"),onChange:e=>I(e),options:p.Xy,value:_}),(0,r.createElement)(s.TextControl,{label:__("Price","jetpack"),onChange:e=>x(e),type:"number",value:j})),(0,r.createElement)(s.PanelRow,{className:"plan-interval"},(0,r.createElement)(s.SelectControl,{label:__("Interval","jetpack"),onChange:e=>Q(e),options:T,value:S})),(0,r.createElement)(s.PanelRow,{className:"custom-amount"},(0,r.createElement)(s.ToggleControl,{label:__("Enable customers to pick their own amount","jetpack"),onChange:e=>P(e),checked:N})),(0,r.createElement)(s.PanelRow,null,(0,r.createElement)(s.ExternalLink,{href:"https://wordpress.com/support/wordpress-editor/blocks/payments/#related-fees"},__("Read more about Payments and related fees.","jetpack"))),(0,r.createElement)(s.PanelRow,null,(0,r.createElement)(s.Button,{onClick:n=>{n.preventDefault(),v(m.DW),l({title:k,currency:_,price:j,interval:S,type:null,buyer_can_change_amount:N,is_editable:!0},e,t,(e=>{v(m.mj),e&&(x(E),w(!1),Q(f),P(b),I(h))}))},variant:"secondary"},(0,A.l)("add product",e))))))}},21200:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(52175),s=n(61074),o=n(30797),i=n(68880),l=n(51585);function c(){const{productType:e}=(0,i.Q)();return(0,r.createElement)(a.Warning,{className:"product-management-control-nudge"},(0,r.createElement)("span",{className:"product-management-control-nudge__info"},(0,r.createElement)(s.Z,{icon:o.Z}),(0,r.createElement)("span",{className:"product-management-control-nudge__text-container"},(0,r.createElement)("span",{className:"product-management-control-nudge__title"},(0,l.l)("invalid product configured for this block",e)),(0,r.createElement)("span",{className:"product-management-control-nudge__message"},(0,l.l)("the button will be hidden from your visitors until you select a valid product",e)))))}},16842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(51806),a=n(25607),s=n(52175),o=n(55609),i=n(9818),l=n(65736),c=n(79201),u=n(48381),d=n(30797),p=n(7652),m=n(99307),g=n(68880),A=n(60510),h=n(51585);const __=l.__;function E(e){const{currency:t,interval:n,price:r}=e,s=(0,a.ZP)(parseFloat(r),t);switch(n){case"1 month":return(0,l.sprintf)( | |
| 158 | +__("Get %1$d requests","jetpack"),t):__("Get more requests","jetpack"))(o,m),k=(w=r)?(0,c.gmdateI18n)("F j",w):null;var w;return(0,h.jsx)("div",{className:"jetpack-ai-usage-panel",children:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p.A,{isOverLimit:e,requestsCount:t,requestsLimit:n,nextResetDate:k,planType:o,loading:s}),!s&&(o===a._X||o===a.ds)&&l&&(0,h.jsxs)("div",{className:"jetpack-ai-usage-panel-upgrade-button",children:[d&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{children:__("Need more requests?","jetpack")}),(0,h.jsx)(i.Button,{target:"_blank",variant:"primary",label:__("Contact us for more requests","jetpack"),href:g,onClick:f,children:(0,h.jsx)("span",{children:__("Contact Us","jetpack")})})]}),!d&&(0,h.jsx)(i.Button,{target:"_blank",variant:"primary",label:__("Upgrade your Jetpack AI plan","jetpack"),href:b,onClick:v,children:(0,h.jsx)("span",{children:y})})]})]})})}function g({placement:e=null}){const{checkoutUrl:t}=(0,r.ON)(),{contactUsURL:n}=(()=>{const e=(0,o.A)("jetpack-ai-tiers-more-requests-contact"),{autosaveAndRedirect:t,isRedirecting:n}=(0,a.ZR)(e);return{contactUsURL:e,autosaveAndRedirectContactUs:t,isRedirectingContactUs:n}})(),{tracks:i}=(0,d.A)(),c=(0,a.CP)(),{requestsCount:u,requestsLimit:p,isOverLimit:g,usagePeriod:f,currentTier:b,nextTier:v,loading:y}=(0,r.yM)(),k=(0,a.Bd)(b),w=(0,l.useCallback)(()=>{i.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:b?.slug,requests_count:u,...e?{placement:e}:{}})},[i,b,u,e]),x=(0,l.useCallback)(()=>{i.recordEvent("jetpack_ai_upgrade_button",{current_tier_slug:b?.slug,requests_count:u,...e?{placement:e}:{}})},[i,b,u,e]),_=(0,s.isWpcomPlatformSite)()&&k===a.ds&&!v;return(0,h.jsx)(m,{isOverLimit:g,requestsCount:u,requestsLimit:p,nextStart:f?.nextStart,nextLimit:v?.limit,planType:k,loading:y,canUpgrade:c,showContactUsCallToAction:_,contactUsURL:n,handleContactUsClick:x,checkoutUrl:t,handleUpgradeClick:w})}},56199(e,t,n){"use strict";n.d(t,{k:()=>r});const r="block_settings_sidebar"},96814(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790);const s=(0,o.jsx)(r.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)(r.Path,{d:"M19.6611 11.5224L16.3782 10.39C15.0798 9.94386 14.0561 8.9201 13.61 7.6218L12.4775 4.33887C12.3231 3.88704 11.6769 3.88704 11.5225 4.33887L10.39 7.6218C9.94387 8.9201 8.9201 9.94386 7.6218 10.39L4.33887 11.5224C3.88704 11.6768 3.88704 12.3231 4.33887 12.4776L7.6218 13.61C8.9201 14.0561 9.94387 15.0799 10.39 16.3782L11.5225 19.6611C11.6769 20.113 12.3231 20.113 12.4775 19.6611L13.61 16.3782C14.0561 15.0799 15.0798 14.0561 16.3782 13.61L19.6611 12.4776C20.113 12.3231 20.113 11.6768 19.6611 11.5224ZM15.8291 12.2431L14.1876 12.8093C13.5356 13.0323 13.0266 13.547 12.8036 14.1933L12.2374 15.8348C12.1572 16.0636 11.837 16.0636 11.7569 15.8348L11.1907 14.1933C10.9677 13.5414 10.4529 13.0323 9.80661 12.8093L8.16514 12.2431C7.93636 12.163 7.93636 11.8427 8.16514 11.7626L9.80661 11.1964C10.4586 10.9734 10.9677 10.4586 11.1907 9.81232L11.7569 8.17086C11.837 7.94209 12.1572 7.94209 12.2374 8.17086L12.8036 9.81232C13.0266 10.4643 13.5414 10.9734 14.1876 11.1964L15.8291 11.7626C16.0578 11.8427 16.0578 12.163 15.8291 12.2431Z",fill:"currentColor"})})},41068(e,t,n){"use strict";n.d(t,{Ay:()=>S,IB:()=>A});var r=n(96865),o=n(3924),s=n(97999),a=n(85985),i=n(20195),c=n(56427),l=n(47143),u=n(86087),d=n(27723),p=n(41233),h=n(88050),m=n(61868),g=n(61475),f=n(38665),b=n(75372),v=n(48499),y=n(96814),k=n(27302),w=n(91629),x=n(10790);const __=d.__,_="jetpack/ai-assistant",j="wordpressAgentNoticeDismissed",C=(0,o.A)("jetpack-ai-docs-wordpress-agent");function A(){const e=(0,l.useSelect)(e=>!!e(p.store).get(_,j),[]),t=(0,v.C)("ai-sidebar-agent-notice");return{isVisible:t&&!e,isDismissed:t&&e}}function S({placement:e}){const{tracks:t}=(0,a.st)(),{set:n}=(0,l.useDispatch)(p.store),o=function(e){const{currentTier:t}=(0,r.yM)(),{hasEditorStore:n,postType:o}=(0,l.useSelect)(e=>{const t=e("core/editor");return{hasEditorStore:!!t,postType:t?.getCurrentPostType?.()}},[]);return{...(0,w.G)(),placement:e,...n?{surface:"block_editor"}:{},site_type:(0,s.getSiteType)(),...o?{post_type:o}:{},...t?.slug?{current_tier_slug:t.slug}:{}}}(e),d=(0,k.TW)(),v=(0,k.qO)();return(0,x.jsxs)(h.b,{intent:"info",icon:null,spokenMessage:"",style:{gridTemplateColumns:"auto minmax(0, 1fr) auto"},children:[(0,x.jsx)(m.V,{children:(0,u.createInterpolateElement)( | |
| 159 | +// translators: <icon/> is the WordPress Agent's icon. "Agent" is the label on an editor toolbar button. | |
| 160 | +__('AI tools have moved to the WordPress Agent. Look for the <label>"<icon/>Agent"</label> button at the top of the screen.',"jetpack"),{label:(0,x.jsx)("span",{style:{whiteSpace:"nowrap"}}),icon:(0,x.jsx)(c.Icon,{icon:y.A,size:16,style:{verticalAlign:"text-bottom",marginInlineEnd:"0.25em"}})})}),(0,x.jsxs)(g.E,{children:[d&&(0,x.jsx)(c.Button,{variant:"secondary",icon:y.A,onClick:()=>{t.recordEvent("jetpack_big_sky_agent_notice_click",o),(0,k.eY)(),(0,k.zp)(!0)},disabled:v,accessibleWhenDisabled:!0,showTooltip:v,style:{whiteSpace:"normal",height:"auto",minHeight:"36px"},label:v?__("WordPress Agent is already open","jetpack"):void 0,children:__("WordPress Agent","jetpack")}),(0,x.jsx)(f.t,{href:C,openInNewTab:!0,children:__("Learn more","jetpack")})]}),(0,x.jsx)(b.U,{onClick:()=>{t.recordEvent("jetpack_big_sky_agent_notice_dismiss",o),n(_,j,!0),(0,i.speak)(__("Notice dismissed.","jetpack"),"polite")}})]})}},27302(e,t,n){"use strict";n.d(t,{TW:()=>p,eY:()=>g,qO:()=>h,zp:()=>m});var r=n(47143),o=n(10067),s=n.n(o),a=n(51609);const i=s()("jetpack-ai-assistant-plugin:wordpress-agent-notice"),c="agents-manager-ready";function l(){return window.__agentsManagerActions}function u(e){return window.addEventListener(c,e),()=>window.removeEventListener(c,e)}function d(){return!!l()?.isReady}function p(){return(0,a.useSyncExternalStore)(u,d,()=>!1)}function h(){return(0,r.useSelect)(e=>{const t=e("automattic/agents-manager");return Boolean(t?.getIsOpen?.())&&!t?.getIsMinimized?.()},[])}function m(e){const t=l()?.setChatOpen;t?t(e):i("Agents Manager exposed no setChatOpen; the chat stays as it is")}function g(){const e=l()?.resumeChat;e?e():i("Agents Manager exposed no resumeChat; the chat keeps its last view")}},91629(e,t,n){"use strict";function r(){const e="undefined"!=typeof agentsManagerData&&agentsManagerData?agentsManagerData:void 0,t=!!window.bigSkyInitialState?.isDevMode;return{is_test:!!e?.isDevMode||t,..."boolean"==typeof e?.isA11n?{is_a11n:e.isA11n}:{}}}n.d(t,{G:()=>r})},88797(e,t,n){"use strict";var r=n(85985),o=n(23806);(0,r.vp)(o.U,o.W)},23806(e,t,n){"use strict";n.d(t,{U:()=>o,W:()=>s});var r=n(23162);const o="ai-assistant-plugin",s={render:r.A}},1176(e,t,n){"use strict";n.d(t,{N:()=>u});var r=n(96865),o=n(56427),s=n(27723),a=n(51609),i=n(2162),c=n(62402),l=(n(99292),n(10790));const __=s.__;function u({minWords:e=10,maxWords:t=100,disabled:n,words:s,onWordsNumberChange:u,language:d,onLanguageChange:p,tone:h,onToneChange:m}){const[g,f]=(0,a.useState)(!1);const b=d?.split(" ")[0],v=r.so[b]?.label||__("Language","jetpack"),y=r.oZ[h]?.label||__("Tone","jetpack");return(0,l.jsxs)("div",{className:"jetpack-ai-generate-excerpt-control",children:[(0,l.jsxs)(o.BaseControl,{className:"jetpack-ai-generate-excerpt-control__header",__nextHasNoMarginBottom:!0,children:[(0,l.jsx)(o.BaseControl.VisualLabel,{children:__("Settings","jetpack")}),(0,l.jsx)(o.Button,{label:__("Advanced AI options","jetpack"),icon:r.cj,onClick:function(){f(e=>!e)},"aria-pressed":g,isSmall:!0})]}),g&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.HU,{disabled:n,onChange:p,value:d,label:v}),(0,l.jsx)(c.hN,{disabled:n,label:y,value:h,onChange:m})]}),(0,l.jsx)(o.RangeControl,{label:__("Desired length","jetpack"),value:s,onChange:u,min:e,max:t,help:__("Sets the desired length in words for the auto-generated excerpt. The final count may vary due to how AI works.","jetpack"),showTooltip:!1,disabled:n,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})]})}},25101(e,t,n){"use strict";var r=n(85985),o=n(47143),s=n(43656),a=n(52619),i=n(10067),c=n.n(i),l=n(54681),u=n(10821),d=n(33792);const p=c()("jetpack-ai-content-lens:registration"),h=window?.Jetpack_Editor_Initial_State?.available_blocks["ai-content-lens"];h?.available&&((0,a.addFilter)("blocks.registerBlockType","jetpack/ai-content-lens-features",function(e,t){return t!==l.name?e:(0,u.Bi)()?((0,r.vp)(d.s,d.$),p("Registered AI Excerpt plugin"),(0,(0,o.dispatch)(s.store).removeEditorPanel)("post-excerpt"),p("Removed the post-excerpt panel"),e):e}),p("Added filter for AI Content Lens features"))},33251(e,t,n){"use strict";n.d(t,{g:()=>v});var r=n(96865),o=n(97999),s=n(85985),a=n(82201),i=n(56427),c=n(47143),l=n(43656),u=n(86087),d=n(27723),p=n(57273),h=n(69446),m=n(72398),g=n(1176),f=(n(9485),n(10790));const __=d.__,_n=d._n;function b(){const e=(0,u.useRef)(null),{excerpt:t,postId:n}=(0,c.useSelect)(e=>{const{getEditedPostAttribute:t,getCurrentPostId:n}=e(l.store);return{excerpt:t("excerpt")??"",postId:n()??0}},[]),{tracks:m}=(0,s.st)(),{editPost:b}=(0,c.useDispatch)("core/editor"),{dequeueAiAssistantFeatureAsyncRequest:v,increaseAiAssistantRequestsCount:y}=(0,c.useDispatch)("wordpress-com/plans"),[k,w]=(0,u.useState)(50),[x,_]=(0,u.useState)(!1),[j,C]=(0,u.useState)(),[A,S]=(0,u.useState)(),{request:E,stopSuggestion:T,suggestion:N,requestingState:P,error:B,reset:I,model:M}=(0,r.o2)({onDone:(0,u.useCallback)((t,n)=>{y(),m.recordEvent("jetpack_ai_assistant_block_generate",{feature:"jetpack-ai-content-lens",model:n,generation_time:null!==e.current?window?.performance?.now?.()-e.current:null})},[y,m]),onError:(0,u.useCallback)(e=>{"error_network"!==e.code&&"error_quota_exceeded"!==e.code&&y()},[y]),onAllErrors:(0,u.useCallback)(()=>{y()},[y])});(0,u.useEffect)(()=>()=>{T(),I()},[T,I]);const R=(0,c.useSelect)(e=>{const t=e(l.store).getEditedPostContent();if(!t)return"";const n=(new window.DOMParser).parseFromString(t,"text/html");return(n.body.textContent||n.body.innerText||"").replace(/\n{2,}/g,"\n").trim()},[]),L=N||t,D=(0,h.count)(L,"words"),F=(0,d.sprintf)( | |
| 161 | +// Translators: %1$d is the number of words in the excerpt. | |
| 162 | +_n("%1$d word","%1$d words",D,"jetpack"),D),O="requesting"===P||"suggesting"===P||"done"===P&&!x,z="requesting"===P||"suggesting"===P,U=z||"done"===P;const{requireUpgrade:H,isOverLimit:$}=(0,r.yM)();return(0,f.jsxs)("div",{className:"jetpack-ai-post-excerpt",children:[(0,f.jsx)(i.TextareaControl,{__nextHasNoMarginBottom:!0,label:__("Write an excerpt (optional)","jetpack"),onChange:e=>b({excerpt:e}),help:D?F:null,value:L,disabled:U}),(0,o.isWpcomPlatformSite)()?(0,f.jsx)(a.k4,{supportLink:__("https://wordpress.com/support/excerpts/","jetpack"),supportPostId:1569,children:__("Learn more about manual excerpts","jetpack")}):(0,f.jsx)(p.N,{openInNewTab:!0,href:__("https://jetpack.com/support/create-better-post-excerpts-with-ai/","jetpack"),children:__("Learn more about manual excerpts","jetpack")}),(0,f.jsxs)("div",{className:"jetpack-generated-excerpt__ai-container",children:[B?.code&&"error_quota_exceeded"!==B.code&&(0,f.jsx)(i.Notice,{status:B.severity,isDismissible:!1,className:"jetpack-ai-assistant__error",children:B.message}),$&&(0,f.jsx)(r.Hb,{placement:"excerpt-panel"}),(0,f.jsx)(g.N,{words:k,onWordsNumberChange:e=>{w(e),_(!0)},language:j,onLanguageChange:e=>{C(e),_(!0)},tone:A,onToneChange:e=>{S(e),_(!0)},disabled:z||H}),(0,f.jsx)(i.BaseControl,{help:R?.length?null:__("Add content to generate an excerpt.","jetpack"),__nextHasNoMarginBottom:!0,children:(0,f.jsxs)("div",{className:"jetpack-generated-excerpt__generate-buttons-container",children:[(0,f.jsx)(i.Button,{onClick:function(){b({excerpt:t}),m.recordEvent("jetpack_ai_assistant_block_discard",{feature:"jetpack-ai-content-lens",model:M}),I()},variant:"secondary",isDestructive:!0,disabled:"done"!==P||H,children:__("Discard","jetpack")}),(0,f.jsx)(i.Button,{onClick:function(){b({excerpt:N}),m.recordEvent("jetpack_ai_assistant_block_accept",{feature:"jetpack-ai-content-lens",model:M}),I()},variant:"secondary",disabled:"done"!==P||H,children:__("Accept","jetpack")}),(0,f.jsx)(i.Button,{onClick:function(){_(!1),I();const t=[{role:"jetpack-ai",context:{type:"ai-content-lens",contentType:"post-excerpt",postId:Number(n),words:k,language:j,tone:A,content:`Post content:\n${R}\n`}}];v(),m.recordEvent("jetpack_ai_assistant_block_request",{feature:"jetpack-ai-content-lens",model:M}),e.current=window?.performance?.now?.()||null,E(t,{feature:"jetpack-ai-content-lens",model:M})},variant:"secondary",isBusy:z,disabled:O||H||!R,children:__("Generate","jetpack")})]})})]})]})}const v=()=>{if((0,c.useSelect)(e=>{const{getCurrentPostType:t}=e(l.store),n=t();return"wp_template"===n||"wp_template_part"===n||"wp_block"===n},[]))return null;const e=e=>{const t=l.PluginDocumentSettingPanel;return(0,f.jsx)(t,{...e})};return(0,f.jsx)(l.PostTypeSupportCheck,{supportKeys:"excerpt",children:(0,f.jsx)(e,{className:(0,m.m)("ai-content-lens")?"is-beta-extension inset-shadow":"",name:"ai-content-lens-plugin",title:__("Excerpt","jetpack"),children:(0,f.jsx)(b,{})})})}},33792(e,t,n){"use strict";n.d(t,{$:()=>s,s:()=>o});var r=n(33251);const o="ai-content-lens",s={render:r.g}},41787(e,t,n){"use strict";n.d(t,{m:()=>l});var r=n(3924),o=n(85985),s=n(56427),a=n(27723),i=n(57273),c=(n(78226),n(10790));const __=a.__,l=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:a}=(0,o.st)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:__("Activate the Likes feature to allow others to like your posts.","jetpack")}),(0,c.jsx)(s.Button,{disabled:n||t,isBusy:t,onClick:()=>(a.recordEvent("jetpack_editor_likes_enable"),e(!0)),variant:"secondary",children:t?__("Activating Likes","jetpack"):__("Activate Likes","jetpack",0)}),(0,c.jsx)("div",{className:"components-likes-placeholder__learn-more",children:(0,c.jsx)(i.N,{openInNewTab:!0,href:(0,r.A)("jetpack-support-likes"),children:__("Learn more about Jetpack Likes.","jetpack")})})]})}},61047(e,t,n){"use strict";n.d(t,{L:()=>i});var r=n(50723),o=n(11876),s=n(56427),a=n(10790);const i=()=>(0,a.jsx)(r.Ay,{children:(0,a.jsx)(s.Placeholder,{children:(0,a.jsxs)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"100%",padding:"0 1em"},children:[(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:90})})]})})})},24938(e,t,n){"use strict";var r=n(85985),o=n(35739);(0,r.vp)(o.U,o.W)},35739(e,t,n){"use strict";n.d(t,{U:()=>o,W:()=>s});var r=n(53019);const o="likes",s={render:r.A}},53019(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(85985),o=n(56427),s=n(47143),a=n(43656),i=n(27723),c=n(92420),l=n(41787),u=n(61047),d=n(10790);const __=i.__,p=()=>{const{isLoadingModules:e,isChangingStatus:t,isModuleActive:n,changeStatus:i}=(0,r.q7)("likes"),p=(0,s.useSelect)(e=>e(a.store).getEditedPostAttribute("jetpack_likes_enabled"),[]),{editPost:h}=(0,s.useDispatch)(a.store);return n?(0,d.jsx)(a.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes",children:(0,d.jsx)(c.A,{children:(0,d.jsx)(o.ToggleControl,{label:__("Show likes","jetpack"),checked:p,onChange:e=>{h({jetpack_likes_enabled:e})},__nextHasNoMarginBottom:!0})})}):(0,d.jsx)(a.PostTypeSupportCheck,{supportKeys:"jetpack-post-likes",children:(0,d.jsx)(c.A,{children:e?(0,d.jsx)(u.L,{}):(0,d.jsx)(l.m,{changeStatus:i,isModuleActive:n,isLoading:t})})})}},74585(e,t,n){"use strict";var r=n(85985),o=n(56006);(0,r.vp)(o.U,o.W)},56006(e,t,n){"use strict";n.d(t,{U:()=>d,W:()=>p});var r=n(3924),o=n(85985),s=n(47143),a=n(43656),i=n(27723),c=n(32833),l=n(57273),u=n(10790);const __=i.__,d="payments",p={render:()=>{const{tracks:e}=(0,o.st)();if("page"!==(0,s.useSelect)(e=>e(a.store).getCurrentPostType(),[]))return null;const t=(0,r.A)("wpcom-payments-donations");return(0,u.jsxs)(a.PluginPostPublishPanel,{className:"jetpack-payments-post-publish-panel",title:__("Start accepting payments","jetpack"),initialOpen:!0,icon:c.A,children:[(0,u.jsx)("p",{children:__("Insert the Payment Button or the Donations Form — no plugin required.","jetpack")}),(0,u.jsx)("p",{children:(0,u.jsx)(l.N,{openInNewTab:!0,href:t,onClick:()=>{e.recordEvent("jetpack_editor_payments_post_publish_click")},children:__("Learn more about these blocks","jetpack")})})]})}}},8964(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(36281),o=n(35750),s=n(56427),a=n(47143),i=n(43656),c=n(86087),l=n(27723),u=n(90811),d=n(10790);const __=l.__;function p(){const e=(0,c.useRef)(void 0),[t,n]=(0,c.useState)();(0,c.useEffect)(()=>{if(!e?.current)return;const t=e.current.querySelector("svg");if(!t)return;const r=(new XMLSerializer).serializeToString(t);n(`data:image/svg+xml;base64,${window.btoa(r)}`)},[e]);const s=(0,a.useSelect)(e=>e(i.store).getPermalink(),[]),{dataUrl:l}=(0,u.A)({generateDataUrl:!0}),p=l||t;return(0,d.jsxs)("div",{ref:e,children:[(0,d.jsx)(r.A,{value:s,size:300,imageSettings:p&&{src:p,width:64,height:64},renderAs:"canvas",level:"H"}),(0,d.jsx)(o.ux,{className:"qr-post-jetpack-logo",size:48,border:2})]})}function h(){const e=(0,c.useRef)(void 0),[t,n]=(0,c.useState)(!1);return(0,d.jsxs)("div",{className:"qr-post-button",children:[(0,d.jsx)(s.Button,{variant:"secondary",onClick:()=>n(e=>!e),children:__("Get QR code","jetpack")}),t&&(0,d.jsx)(s.Modal,{title:__("QR Post code","jetpack"),onRequestClose:()=>n(!1),className:"qr-post-modal",children:(0,d.jsx)("div",{className:"qr-post-modal__qr-code",ref:e,children:(0,d.jsx)(p,{})})})]})}},42286(e,t,n){"use strict";var r=n(85985),o=n(23365);(0,r.vp)(o.U,o.W)},90811(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(3582),o=n(47143),s=n(86087),a=n(52619);function i({generateDataUrl:e=!1}={}){const[t,n]=(0,s.useState)(),{id:i,mediaItemData:c}=(0,o.useSelect)(e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(r.store),s=o("root","site"),a=n("root","__unstableBase"),i=t("update","settings"),c=s?.site_icon,l=a?.site_icon,u=i?c:l,d=s?.site_logo,p=a?.site_logo,h=u||(i?d:p),m=h&&e(r.store).getEntityRecord("postType","attachment",h,{context:"view"});return{id:h,mediaItemData:m&&{mediaId:m.id,url:m.source_url,alt:m.alt_text}}},[]);if(!i||!c?.url)return{};if(!e)return{id:i,...c};const l=new Image,u=(0,a.applyFilters)("media.crossOrigin",void 0,c.url);return"string"==typeof u&&(l.crossOrigin=u),l.onload=function(){const e=document.createElement("canvas"),t=e.getContext("2d");e.height=this.naturalHeight,e.width=this.naturalWidth,t.fillStyle="white",t.lineJoin="round",t.fillRect(0,0,e.width,e.height);const r=.08*e.width;t.drawImage(this,r,r,e.width-2*r,e.height-2*r);try{n(e.toDataURL("image/png"))}catch(e){console.warn("Error generating QR code extensions post-publish-qr-post-panel: ",e),console.warn("In case it's a cross-origin issue, take a look at https://developer.wordpress.org/block-editor/reference-guides/filters/editor-filters/#media-crossorigin"),n(null)}},l.src=c.url,{id:i,...c,dataUrl:t}}},23365(e,t,n){"use strict";n.d(t,{U:()=>p,W:()=>h});var r=n(82201),o=n(56427),s=n(3582),a=n(47143),i=n(43656),c=n(27723),l=n(44978),u=n(8964),d=(n(29297),n(10790));const __=c.__,p="post-publish-qr-post-panel",h={render:function(){const e={name:"post-publish-qr-post-panel",title:__("QR Code","jetpack"),className:"post-publish-qr-post-panel",initialOpen:!1},{isViewable:t,isPostPublished:n}=(0,a.useSelect)(e=>{const t=e(i.store).getCurrentPostType(),n=e(s.store).getPostType(t);return{isViewable:n?.viewable,isPostPublished:e(i.store).isCurrentPostPublished()}},[]);if(!t)return null;function c(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.PanelRow,{children:(0,d.jsx)("p",{children:__("Take advantage of the QR code to open the post from different devices.","jetpack")})}),(0,d.jsx)(u.A,{})]})}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.PluginPostPublishPanel,{...e,icon:(0,d.jsx)(r.jt,{}),children:(0,d.jsx)(c,{})}),n&&(0,d.jsx)(l.A,{children:(0,d.jsx)(o.PanelBody,{...e,children:(0,d.jsx)(c,{})})})]})}}},60554(e,t,n){"use strict";n.d(t,{l:()=>l});var r=n(3924),o=n(85985),s=n(56427),a=n(27723),i=n(57273),c=(n(67917),n(10790));const __=a.__,l=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:a}=(0,o.st)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:__("Activate the SEO feature and start optimizing your posts for search engines.","jetpack")}),(0,c.jsx)(s.Button,{disabled:n||t,isBusy:t,onClick:()=>(a.recordEvent("jetpack_editor_seo_enable"),e(!0)),variant:"secondary",children:t?__("Activating Jetpack SEO","jetpack"):__("Activate Jetpack SEO","jetpack",0)}),(0,c.jsx)("div",{className:"components-seo-placeholder__learn-more",children:(0,c.jsx)(i.N,{openInNewTab:!0,href:(0,r.A)("jetpack-support-seo-tools"),children:__("Learn more about Jetpack SEO.","jetpack")})})]})}},92262(e,t,n){"use strict";n.d(t,{G:()=>i});var r=n(50723),o=n(11876),s=n(56427),a=n(10790);const i=()=>(0,a.jsx)(r.Ay,{children:(0,a.jsx)(s.Placeholder,{children:(0,a.jsxs)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"100%",padding:"0 1em"},children:[(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:90})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})})]})})})},59722(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(85985),o=n(82201),s=n(56427),a=n(27723),i=n(1866),c=n(13022),l=(n(64993),n(10790));const __=a.__,u=({requiredPlan:e})=>{const[t,n,u,d]=(0,r._6)(e),{tracks:p}=(0,r.st)(),h=d?.product_name||__("paid","jetpack"),m=__("Upgrade now","jetpack"),g=__("Learn more about the SEO feature.","jetpack");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:(0,a.sprintf)(/* translators: %s: the product name of the plan. */ | |
| 163 | +__("To use the SEO feature you need to upgrade to the %s plan","jetpack"),h)}),(0,l.jsx)("div",{className:"components-seo-upsell__learn-more",children:(0,l.jsx)(o.k4,{supportLink:"https://wordpress.com/support/seo-tools/",supportPostId:120916,children:g})}),(0,l.jsx)(s.Button,{href:u?null:t,onClick:e=>{e.preventDefault(),p.recordEvent("jetpack_seo_tools_upsell_click"),n(e)},target:"_top",icon:i.A,className:(0,c.A)("components-seo-upsell__button is-primary",{"jetpack-upgrade-plan__hidden":!t}),isBusy:u,children:u?__("Redirecting…","jetpack"):m})]})}},48685(e,t,n){"use strict";n.d(t,{P:()=>a});var r=n(56427),o=n(27723),s=n(10790);const __=o.__,_n=o._n,a=({suggestedLimit:e,value:t,label:n,...a})=>{const i=!e||t.length<=e?(0,o.sprintf)(/* translators: %d: the number of characters in a sentence. */ | |
| 164 | +_n("%d character","%d characters",t.length,"jetpack"),t.length):(0,o.sprintf)(/* translators: %1$d: suggested character limit, %2$d: number of characters in a sentence. */ | |
| 165 | +__("It is recommended to use less than %1$d characters in this field. (%2$d/%1$d)","jetpack"),e,t.length);return(0,s.jsx)("div",{className:"jetpack-seo-message-box",children:(0,s.jsx)(r.TextareaControl,{__nextHasNoMarginBottom:!0,label:n,help:i,value:t,...a})})}},67241(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(85985),o=n(86087),s=n(27723),a=n(48685),i=n(53189),c=n(10790);const __=s.__,l=!0===(0,r.FB)("ai-seo-enhancer")?.available;class u extends o.Component{onMessageChange=e=>{this.props.updateMetaValue(e)};render(){const{metaValue:e}=this.props,t=__("Write a description…","jetpack"),n=__("Add a compelling, keyword-rich summary that appears in search results (ideally under 156 characters)","jetpack");return(0,c.jsx)(a.P,{value:e,onChange:this.onMessageChange,label:__("SEO Description","jetpack"),placeholder:l?n:t,suggestedLimit:156,rows:4})}}const d=(0,i.m)("advanced_seo_description")(u)},44921(e,t,n){"use strict";var r=n(85985),o=n(19334);(0,r.vp)(o.U,o.W)},19334(e,t,n){"use strict";n.d(t,{U:()=>N,W:()=>L});var r=n(70499),o=n(97999),s=n(85985),a=n(82201),i=n(56427),c=n(3582),l=n(47143),u=n(43656),d=n(86087),p=n(27723),h=n(13022),m=n(44978),g=n(89870),f=n(22615),b=n(6419),v=n(12430),y=n(77682),k=n(96012),w=n(60554),x=n(92262),_=n(59722),j=n(67241),C=n(29336),A=n(68760),S=n(9411),E=n(36317),T=(n(97866),n(10790));const __=p.__,N="seo",P="function"==typeof(0,l.select)(u.store).isPublishSidebarOpened,B=!0===(0,s.FB)("ai-seo-enhancer")?.available&&P,I=(0,f.H)(),M=(0,b.p)(),R=()=>{const{isLoadingModules:e,isChangingStatus:t,isModuleActive:n,changeStatus:p}=(0,s.q7)("seo-tools"),f=(0,l.useSelect)(e=>e(u.store).isPublishSidebarOpened?.(),[]),{updateSeoData:b,isBusy:N}=(0,k.X)(),R=(0,l.useSelect)(e=>{const t=e(u.store).getCurrentPostType(),n=e(c.store).getPostType(t);return n?.viewable},[]),L=(0,d.useRef)(!1),{isEnabled:D,isToggling:F}=(0,y.S)(),{closePublishSidebar:O}=(0,l.useDispatch)(u.store);(0,d.useEffect)(()=>{B&&f&&!L.current&&!N&&D&&!F&&I&&P&&b({trigger:"auto"}),L.current=f},[f,b,N,D,F]);if(!R)return null;const z=(0,s.tu)("advanced-seo"),U=(0,o.isWpcomPlatformSite)(),H=!(0,s.tu)("ai-seo-enhancer");if(U&&!1!==z)return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(m.A,{children:(0,T.jsx)(i.PanelBody,{title:__("Optimize SEO","jetpack"),initialOpen:!1,className:"jetpack-seo-panel",children:(0,T.jsx)(_.A,{requiredPlan:z})})}),(0,T.jsx)(u.PluginDocumentSettingPanel,{className:"jetpack-seo-panel",title:__("Optimize SEO","jetpack"),name:"jetpack-seo",icon:(0,T.jsx)(a.jt,{}),children:(0,T.jsx)(_.A,{requiredPlan:z})})]});if(!n){const r=e?(0,T.jsx)(x.G,{}):(0,T.jsx)(w.l,{changeStatus:p,isModuleActive:n,isLoading:t});return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(m.A,{children:(0,T.jsx)(i.PanelBody,{title:__("Optimize SEO","jetpack"),initialOpen:!1,className:"jetpack-seo-panel",children:r})}),(0,T.jsx)(u.PluginDocumentSettingPanel,{className:"jetpack-seo-panel",title:__("Optimize SEO","jetpack"),name:"jetpack-seo",icon:(0,T.jsx)(a.jt,{}),children:r})]})}const $={icon:(0,T.jsx)(a.jt,{}),title:__("SEO","jetpack"),initialOpen:B&&M};return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(m.A,{children:(0,T.jsxs)(i.PanelBody,{title:__("Optimize SEO","jetpack"),className:"jetpack-seo-panel",children:[B&&H&&M&&(0,T.jsx)(g.k,{placement:"jetpack-sidebar",disableAutoEnhance:!I}),(0,T.jsx)(i.PanelRow,{className:(0,h.A)({"jetpack-seo-sidebar__feature-section":B&&M}),children:(0,T.jsx)(E.A,{})}),(0,T.jsx)(i.PanelRow,{className:(0,h.A)({"jetpack-seo-sidebar__feature-section":B&&M}),children:(0,T.jsx)(j.A,{})}),(0,T.jsx)(i.PanelRow,{className:(0,h.A)({"jetpack-seo-sidebar__feature-section":B&&M}),children:(0,T.jsx)(r.m2,{})}),(0,T.jsx)(i.PanelRow,{className:(0,h.A)({"jetpack-seo-sidebar__feature-section":B&&M}),children:(0,T.jsx)(C.A,{})}),(0,T.jsx)(i.PanelRow,{className:(0,h.A)({"jetpack-seo-sidebar__feature-section":B&&M}),children:(0,T.jsx)(A.A,{})})]})}),(0,T.jsxs)(u.PluginDocumentSettingPanel,{className:"jetpack-seo-panel",title:__("Optimize SEO","jetpack"),name:"jetpack-seo",icon:(0,T.jsx)(a.jt,{}),children:[B&&H&&M&&(0,T.jsx)(g.k,{placement:"document-settings",disableAutoEnhance:!I}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(E.A,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(j.A,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(r.m2,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(C.A,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(A.A,{})})]}),(0,T.jsx)(u.PluginPrePublishPanel,{...$,children:(0,T.jsxs)("div",{className:"jetpack-seo-panel",children:[B&&H&&M&&(0,T.jsx)(g.k,{placement:"jetpack-prepublish-sidebar",disableAutoEnhance:!I}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(E.A,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(j.A,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(r.m2,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(C.A,{})}),(0,T.jsx)(i.PanelRow,{children:(0,T.jsx)(A.A,{})})]})}),B&&M&&(0,T.jsx)(u.PluginPostPublishPanel,{...$,children:(0,T.jsx)("div",{className:"jetpack-seo-panel",children:(0,T.jsx)(v.A,{onEdit:async()=>{await O(),(0,S.k)()}})})})]})},L={render:()=>(0,T.jsx)(R,{})}},29336(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56427),o=n(27723),s=n(53189),a=n(10790);const __=o.__,i=(0,s.m)("jetpack_seo_noindex")(({metaValue:e,updateMetaValue:t})=>(0,a.jsx)(r.ToggleControl,{label:__("Hide page from search engines","jetpack"),help:__("If selected, a 'noindex' tag will help instruct search engines to not include this page in search results. This page will also be removed from the Jetpack sitemap.","jetpack"),checked:!!e,onChange:e=>{t(e)},__nextHasNoMarginBottom:!0}))},68760(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),o=n(27723),s=n(53189),a=n(10790);const __=o.__,i=[{label:__("Default","jetpack"),value:""},{label:__("Article","jetpack"),value:"article"},{label:__("FAQ","jetpack"),value:"faq"}],c=(0,s.m)("jetpack_seo_schema_type")(({metaValue:e,updateMetaValue:t})=>(0,a.jsx)(r.SelectControl,{label:__("Schema type","jetpack"),help:__("Controls the JSON-LD structured data emitted for this post. Leave on Default to infer from the post type.","jetpack"),value:e||"",options:i,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}))},9411(e,t,n){"use strict";n.d(t,{k:()=>s});var r=n(47143),o=n(43656);const s=async()=>{const{clearSelectedBlock:e}=(0,r.dispatch)("core/block-editor"),{openGeneralSidebar:t}=(0,r.dispatch)("core/edit-post");e(),await t("edit-post/document");const n="jetpack-seo/jetpack-seo";(0,r.select)(o.store).isEditorPanelOpened(n)||(0,r.dispatch)(o.store).toggleEditorPanelOpened(n),setTimeout(()=>{document.querySelector(".jetpack-seo-panel")?.scrollIntoView({behavior:"smooth"})},100)}},36317(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(85985),o=n(86087),s=n(27723),a=n(48685),i=n(53189),c=n(10790);const __=s.__,l=!0===(0,r.FB)("ai-seo-enhancer")?.available;class u extends o.Component{onTitleChange=e=>{this.props.updateMetaValue(e)};render(){const{metaValue:e}=this.props,t=__("Write a title…","jetpack"),n=__("Enter a clear, keyword-focused title (ideally under 70 characters)","jetpack");return(0,c.jsx)(a.P,{value:e,onChange:this.onTitleChange,label:__("SEO Title","jetpack"),placeholder:l?n:t,suggestedLimit:70,rows:2})}}const d=(0,i.m)("jetpack_seo_html_title")(u)},53189(e,t,n){"use strict";n.d(t,{m:()=>s});var r=n(29491),o=n(47143);const s=e=>(0,r.compose)([(0,o.withSelect)(t=>({metaValue:t("core/editor").getEditedPostAttribute("meta")?.[e]??""})),(0,o.withDispatch)(t=>({updateMetaValue(n){var r;"boolean"!=typeof(r=n)&&("string"!=typeof r||""!==r&&0===r.trim().length)||t("core/editor").editPost({meta:{[e]:n}})}}))])},72463(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(3924),o=n(85985),s=n(56427),a=n(27723),i=n(57273),c=(n(17390),n(10790));const __=a.__,l=({changeStatus:e,isLoading:t,isModuleActive:n})=>{const{tracks:a}=(0,o.st)();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:__("Activate the Sharing feature to allow others to share your posts.","jetpack")}),(0,c.jsx)(s.Button,{disabled:n||t,isBusy:t,onClick:()=>(a.recordEvent("jetpack_editor_sharing_enable"),e(!0)),variant:"secondary",children:t?__("Activating Sharing","jetpack"):__("Activate Sharing","jetpack",0)}),(0,c.jsx)("div",{className:"components-sharing-placeholder__learn-more",children:(0,c.jsx)(i.N,{openInNewTab:!0,href:(0,r.A)("jetpack-support-sharing"),children:__("Learn more about Jetpack Sharing.","jetpack")})})]})}},33559(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(85985),o=n(56427),s=n(47143),a=n(43656),i=n(27723),c=n(92420),l=n(72463),u=n(92691),d=n(10790);const __=i.__;function p({checked:e,onChange:t}){return(0,d.jsx)(o.ToggleControl,{label:__("Show sharing buttons","jetpack"),checked:e,onChange:e=>{t({jetpack_sharing_enabled:e})},__nextHasNoMarginBottom:!0})}function h(){const{isLoadingModules:e,isChangingStatus:t,isModuleActive:n,changeStatus:o}=(0,r.q7)("sharedaddy"),i=(0,s.useSelect)(e=>e(a.store).getEditedPostAttribute("jetpack_sharing_enabled"),[]),{editPost:h}=(0,s.useDispatch)(a.store);return n?(0,d.jsx)(a.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons",children:(0,d.jsx)(c.A,{children:(0,d.jsx)(p,{checked:i,onChange:h})})}):(0,d.jsx)(a.PostTypeSupportCheck,{supportKeys:"jetpack-sharing-buttons",children:(0,d.jsx)(c.A,{children:e?(0,d.jsx)(u.A,{}):(0,d.jsx)(l.A,{changeStatus:o,isModuleActive:n,isLoading:t})})})}},92691(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(50723),o=n(11876),s=n(56427),a=n(10790);const i=function(){return(0,a.jsx)(r.Ay,{children:(0,a.jsx)(s.Placeholder,{children:(0,a.jsxs)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"100%",padding:"0 1em"},children:[(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:90})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})})]})})})}},29590(e,t,n){"use strict";var r=n(85985),o=n(61383);(0,r.vp)(o.U,o.W)},61383(e,t,n){"use strict";n.d(t,{U:()=>o,W:()=>s});var r=n(33559);const o="sharing",s={render:r.A}},49487(e,t,n){"use strict";n.d(t,{T:()=>o});var r=n(56427);const o=(0,r.withFallbackStyles)((e,t)=>{const{textColor:n,backgroundColor:r}=t,o=r&&r.color,s=n&&n.color;return{fallbackBackgroundColor:o||!e?void 0:getComputedStyle(e).backgroundColor,fallbackTextColor:s||!e?void 0:getComputedStyle(e).color}})},42047(e,t,n){"use strict";var r=n(35750),o=n(74997),s=n(27723),a=n(10790);const __=s.__;(0,o.setCategories)([...(0,o.getCategories)().filter(({slug:e})=>"contact-form"!==e),{slug:"contact-form",title:__("Forms","jetpack"),icon:(0,a.jsx)(r.ux,{})}]),(0,o.setCategories)([...(0,o.getCategories)().filter(({slug:e})=>"monetize"!==e),{slug:"monetize",title:__("Monetize","jetpack"),icon:(0,a.jsx)(r.ux,{})}]),(0,o.setCategories)([...(0,o.getCategories)().filter(({slug:e})=>"grow"!==e),{slug:"grow",title:__("Grow","jetpack"),icon:(0,a.jsx)(r.ux,{})}])},34377(e,t,n){"use strict";function r(e){const t=e.ownerDocument;return{currentDoc:t,currentWindow:t.defaultView||t.parentWindow}}function o(e,t,n=!1){let o=[];if(!t||!e&&!e.length||!function(e){const{currentWindow:t}=r(e);return"editor-canvas"===t.name&&t.self!==t.top}(t))return o;const{currentDoc:s,currentWindow:a}=r(t);if(!function(e){try{return!!e?.parent?.location.href}catch{return!1}}(a))return o;const i=a?.parent?.document;return s&&i?(o=e.filter(e=>{const t=i.querySelector(e),r=!!s.querySelector(e);return!(!t||r)&&(s.head.appendChild(t.cloneNode()),n&&t.remove(),!0)}),o):o}function s(e,t,o){let s;try{s=new URL("editor-assets",n.p)}catch{return}const a=s.href,{currentDoc:i}=r(o),c=i.getElementsByTagName("head")[0];e.forEach(e=>{const[n,r]=e.file.split("/").pop().split(".");if("css"===r){if(i.getElementById(e.id))return;const t=i.createElement("link");t.id=e.id,t.rel="stylesheet",t.href=`${a}/${n}-${e.version}.${r}`,c.appendChild(t)}if("js"===r){const o=t[e.id]?t[e.id]:null;if(i.getElementById(e.id))return o();const s=i.createElement("script");s.id=e.id,s.type="text/javascript",s.src=`${a}/${n}-${e.version}.${r}`,s.onload=o,c.appendChild(s)}})}function a(e,t){return new Promise(n=>{const r=()=>{e[t]?n(e[t]):e.requestAnimationFrame(r)};r()})}n.d(t,{Cu:()=>a,a$:()=>s,ry:()=>o,sG:()=>r})},90907(e,t,n){"use strict";n.d(t,{D:()=>s});var r=n(36536),o=n.n(r);function s(e,t){const n=function(e,t){for(const n of new(o())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),r=e.find(e=>e.name===t);if(r)return r}return e.find(e=>e.isDefault)}(e,t);return n?n.name:null}},56778(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(69222),o=n(56427),s=n(27723),a=(n(27001),n(10790));const __=s.__,i=({link:e})=>(0,a.jsxs)("div",{className:"jetpack-clipboard-input",children:[(0,a.jsx)(o.TextControl,{readOnly:!0,value:e,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,a.jsx)(r.A,{buttonStyle:"icon-text",className:"components-clipboard-button",textToCopy:e,variant:"secondary",weight:"regular",children:__("Copy","jetpack")})]})},98329(e,t,n){"use strict";n.d(t,{A:()=>o});const r=/^#?[A-Fa-f0-9]{6}$/;function o(e){return r.test(e)}},72445(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(20195),o=n(86087),s=n(27723),a=n(86954),i=n.n(a),c=n(23117),l=(n(35269),n(10790));const __=s.__,u="undefined"!=typeof _wpmejsSettings?_wpmejsSettings:{};function d(e,t,n){const r=document.createElement("div");r.className=e;const o=document.createElement("button");return o.innerText=t,o.addEventListener("click",n),o.setAttribute("aria-label",t),o.setAttribute("title",t),r.appendChild(o),r}const p=function({trackSource:e,onPlay:t,onPause:n,onError:s,onTimeChange:a,onSkipForward:p,onJumpBack:h,currentTime:m,playStatus:g=c.vh,onMetadataLoaded:f,loadWhenReady:b=!1,preload:v="metadata"}){const y=(0,o.useRef)(void 0),k=()=>{y.current.play().catch(()=>{})},w=()=>{y.current.pause(),(0,r.speak)(__("Paused","jetpack"),"assertive")};return(0,o.useEffect)(()=>{MediaElementPlayer.prototype._setResponsiveMode||(MediaElementPlayer.prototype._setResponsiveMode=MediaElementPlayer.prototype.setResponsiveMode,MediaElementPlayer.prototype.setResponsiveMode=function(){const e=this;e.getElement(e.container).parentNode&&e._setResponsiveMode()})},[]),(0,o.useEffect)(()=>{const e=y.current;e.preload=v;const r=new MediaElementPlayer(e,{...u,success:()=>b&&e?.load()});if(h||p){const e=`${r.options.classPrefix}button ${r.options.classPrefix}jump-button`;if(h){const t=`${e} ${r.options.classPrefix}jump-backward-button`;r.addControlElement(d(t,__("Jump Back","jetpack"),h),"jumpBackwardButton")}if(p){const t=`${e} ${r.options.classPrefix}skip-forward-button`;r.addControlElement(d(t,__("Skip Forward","jetpack"),p),"skipForwardButton")}}return t&&e.addEventListener("play",t),n&&e.addEventListener("pause",n),s&&e.addEventListener("error",s),f&&e.addEventListener("loadedmetadata",f),()=>{r.remove(),t&&e.removeEventListener("play",t),n&&e.removeEventListener("pause",n),s&&e.removeEventListener("error",s),f&&e.removeEventListener("loadedmetadata",f)}},[t,n,s,h,p,f,b,v]),(0,o.useEffect)(()=>{const[e,t]=!1===y.current?.paused?[c.v8,w]:[c.vh,k],n=i()(t,100);return c.pF!==g&&e!==g&&n(),()=>{n.clear()}},[y,g,e]),(0,o.useEffect)(()=>{if(!a)return;const e=y.current;let t=0;const n=e=>(e=>{const n=Date.now();n-t>=1e3&&(a(e),t=n)})(e.target.currentTime);return a&&e?.addEventListener("timeupdate",n),()=>{t=0,e?.removeEventListener("timeupdate",n)}},[y,a]),(0,o.useEffect)(()=>{const e=y.current;m&&e&&Math.abs(Math.floor(m-e.currentTime))>1&&(e.currentTime=m)},[y,m]),(0,l.jsx)("div",{className:"jetpack-audio-player",children:(0,l.jsx)("audio",{src:e,ref:y})})}},11998(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(85985),o=n(94715),s=n(56427),a=n(27723),i=n(57273),c=n(13022),l=(n(42036),n(10790));const __=a.__;function u({blockName:e,buttonLabel:t,className:n,href:a,icon:u,onClick:d,readMoreUrl:p,subtitle:h,title:m}){const{autosaveAndRedirect:g}=(0,r.ZR)(a);return(0,l.jsx)(o.Warning,{actions:a&&[(0,l.jsx)(s.Button,{href:a,onClick:t=>{t.preventDefault(),d(e),g(t)},target:"_top",variant:"secondary",className:"jetpack-stripe-nudge__link",children:t},"nudge")],className:(0,c.A)(n,"jetpack-block-nudge wp-block"),children:(0,l.jsxs)("span",{className:"jetpack-block-nudge__info",children:[u,(0,l.jsxs)("span",{className:"jetpack-block-nudge__text-container",children:[(0,l.jsx)("span",{className:"jetpack-block-nudge__title",children:m}),h&&(0,l.jsxs)("span",{className:"jetpack-block-nudge__message",children:[h,p&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("br",{}),(0,l.jsx)(i.N,{openInNewTab:!0,href:p,children:__("Learn more about the block and fees","jetpack")})]})]})]})]})})}},24971(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(94715),o=n(74997),s=n(56427),a=n(47143),i=n(86087),c=n(27723),l=n(48558),u=n(13022),d=n(66087),p=(n(93571),n(10790));const __=c.__,h=({attributes:e,styleOption:t,viewportWidth:n,blockName:s})=>{const a=(0,o.getBlockType)(s);return(0,p.jsx)(r.BlockPreview,{viewportWidth:n,blocks:(i=a.example?(0,o.getBlockFromExample)(s,{attributes:{...a.example.attributes,style:t.value},innerBlocks:a.example.innerBlocks}):(0,o.createBlock)(s,e),{...i,attributes:{...i.attributes,__isBlockPreview:!0}})});var i},m=i.memo?(0,i.memo)(h,(e,t)=>(0,d.isEqual)(e,t)):h;function g({attributes:e,clientId:t,styleOptions:n,onSelectStyle:o,activeStyle:i,viewportWidth:c,title:d}){const h=(0,a.useSelect)(e=>{const{getBlock:n}=e("core/block-editor");return n(t)});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r.BlockControls,{children:(0,p.jsx)(s.ToolbarGroup,{isCollapsed:!0,icon:"admin-appearance",label:__("Style","jetpack"),controls:n.map(e=>({title:e.label,isActive:e.value===i,onClick:()=>o({style:e.value})})),popoverProps:{className:"jetpack-block-styles-selector-toolbar"}})}),(0,p.jsx)(r.InspectorControls,{children:(0,p.jsx)(s.PanelBody,{title:d||__("Styles","jetpack"),children:(0,p.jsx)("div",{className:"block-editor-block-styles jetpack-block-styles-selector",children:n.map(t=>{const n={...e,style:t.value};return(0,p.jsxs)("div",{className:(0,u.A)("block-editor-block-styles__item",{"is-active":t.value===i}),onClick:()=>{o({style:t.value})},onKeyDown:e=>{l.ENTER!==e.keyCode&&l.SPACE!==e.keyCode||(e.preventDefault(),o({style:t.value}))},role:"button",tabIndex:"0","aria-label":t.label,children:[(0,p.jsx)("div",{className:"block-editor-block-styles__item-preview",children:t.preview?t.preview:h&&(0,p.jsx)(m,{blockName:h.name,styleOption:t,attributes:n,viewportWidth:c})}),(0,p.jsx)("div",{className:"block-editor-block-styles__item-label",children:t.label})]},t.value)})})})})]})}},2274(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(39384),o=n(85985),s=n(82201),a=n(27723),i=n(51609),c=(n(94378),n(10790));const __=a.__,l=()=>{const e=window?.location?.pathname.replace(/.*?wp-admin\//,""),t=window?.location?.search;return`${e}${t}`},u=({block:e,explanation:t=null})=>{const[n,a]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),{handleConnectUser:p}=(0,r.useConnection)({from:"editor",redirectUri:l(),autoTrigger:!1,skipPricingPage:!0}),{autosave:h}=(0,o.ZR)(),{tracks:m}=(0,o.st)();return(0,i.useEffect)(()=>{n&&p()},[n,p]),(0,c.jsxs)("div",{children:[(0,c.jsx)(s.cb,{buttonText:__("Connect Jetpack","jetpack"),className:"jetpack-connect-banner-nudge",description:__("Your account is not connected to Jetpack at the moment.","jetpack"),goToCheckoutPage:t=>{d(!0),h(t).then(()=>{m.recordEvent("jetpack_editor_connect_banner_click",{block:e}),a(!0),d(!1)})},checkoutUrl:"#",isRedirecting:n||u}),(0,c.jsx)("div",{className:"jetpack-connect-banner",children:t&&(0,c.jsx)("div",{className:"jetpack-connect-banner__explanation",children:(0,c.jsx)("p",{children:t})})})]})}},57753(e,t,n){"use strict";n.d(t,{A:()=>o});n(53585);var r=n(10790);function o({children:e,spanClass:t}){return(0,r.jsx)("div",{className:"jetpack-inspector-notice",children:(0,r.jsx)("span",{className:t,children:e})})}},10798(e,t,n){"use strict";n.d(t,{G:()=>i});var r=n(50723),o=n(11876),s=n(56427),a=n(10790);const i=()=>(0,a.jsx)(r.Ay,{children:(0,a.jsxs)(s.Placeholder,{children:[(0,a.jsxs)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:90})})]}),(0,a.jsxs)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:90})})]}),(0,a.jsxs)(s.Flex,{gap:2,direction:"column",style:{flexBasis:"33.3%",padding:"0 1em"},children:[(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:30})}),(0,a.jsx)(s.FlexItem,{children:(0,a.jsx)(o.A,{width:"100%",height:90})})]})]})})},49452(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(85985),o=n(56427),s=n(47143),a=n(27723),i=n(9894),c=n(10790);const __=a.__;function l({showDialog:e,closeDialog:t}){const{hasTierPlans:n,stripeConnectUrl:a}=(0,s.useSelect)(e=>{const{getNewsletterTierProducts:t,getConnectUrl:n}=e("jetpack/membership-products");return{stripeConnectUrl:n(),hasTierPlans:0!==t()?.length}}),l=(0,i.Qu)(n),{autosaveAndRedirect:u}=(0,r.ZR)(l),d=!n;let p,h;return!!a&&d?(p=__("Set up payments","jetpack"),h=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:__("To start collecting payments, you’ll just need to:","jetpack")}),(0,c.jsxs)("ol",{children:[(0,c.jsx)("li",{children:__("Create a newsletter tier and choose a price for access to paid content","jetpack")}),(0,c.jsx)("li",{children:__("Set up or connect your Stripe account","jetpack")})]})]})):d?(p=__("Add a newsletter tier","jetpack"),h=(0,c.jsx)("p",{children:__("To offer paid subscriptions, create a newsletter tier and choose a price for access to paid content.","jetpack")})):(p=__("Connect Stripe","jetpack"),h=(0,c.jsx)("p",{children:__("To start collecting payments, set up or connect your Stripe account.","jetpack")})),(0,c.jsxs)(o.__experimentalConfirmDialog,{onRequestClose:t,cancelButtonText:__("Not now","jetpack"),confirmButtonText:__("Get started","jetpack"),isOpen:e,onCancel:t,onConfirm:u,style:{maxWidth:400},children:[(0,c.jsx)("h2",{children:p}),h]})}},29726(e,t,n){"use strict";n.d(t,{Hb:()=>o,V$:()=>r,_$:()=>s,h5:()=>a});const r=0,o=1,s="payment-plan",a="subscription"},37072(e,t,n){"use strict";n.d(t,{B:()=>a,o:()=>s});var r=n(86087),o=n(29726);const s=(0,r.createContext)({blockName:void 0,clientId:void 0,products:[],productType:o._$,selectedProductIds:[],setSelectedProductIds:()=>{}}),a=()=>(0,r.useContext)(s)},85033(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(94715),o=n(47143),s=n(16521),a=n(57810),i=n(29726),c=n(37072),l=n(77670),u=n(24365),d=n(27332),p=(n(32141),n(10790));function h({blockName:e,clientId:t,productType:n=i._$,selectedProductIds:h=[],setSelectedProductIds:m=()=>{}}){const g=(0,o.useSelect)(e=>e(s.M).getProducts(n,h,m),[n,h,m]),{connectUrl:f,isApiConnected:b,areSelectedProductsInvalid:v}=(0,o.useSelect)(e=>{const{getConnectUrl:t,isApiStateConnected:n,hasInvalidProducts:r}=e(s.M);return{connectUrl:t(),isApiConnected:n(),areSelectedProductsInvalid:r(h)}});if(!b)return null;const y={blockName:e,clientId:t,products:g,productType:n,selectedProductIds:h,setSelectedProductIds:m};return(0,p.jsxs)(c.o.Provider,{value:y,children:[!b&&!!f&&(0,p.jsx)(r.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block",children:(0,p.jsx)(a.A,{blockName:e,connectUrl:f})}),b&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(l.A,{}),(0,p.jsx)(d.A,{})]}),b&&v&&(0,p.jsx)(u.A,{})]})}},77670(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(94715),o=n(56427),s=n(47143),a=n(86087),i=n(27723),c=n(42438),l=n(57273),u=n(51609),d=n(16521),p=n(72730),h=n(29726),m=n(37072),g=n(1990),f=n(10790);const __=i.__,b="1 month",v=!1;function y(){const{productType:e,setSelectedProductIds:t}=(0,m.B)(),n=(0,s.useSelect)(e=>e(d.M).getSiteSlug()),{saveProduct:i}=(0,s.useDispatch)(d.M),[y,k]=(0,a.useState)(h.V$),[w,x]=(0,a.useState)((0,g.W)("default new product title",e)),[_,j]=(0,a.useState)(!1),[C,A]=(0,a.useState)("USD"),[S,E]=(0,a.useState)(5),[T,N]=(0,a.useState)(b),[P,B]=(0,a.useState)(v),I=[{label:__("Month","jetpack"),value:"1 month"},{label:__("Year","jetpack"),value:"1 year"},{label:__("One-Time Payment","jetpack"),value:"one-time"}];return(0,u.useEffect)(()=>{_||(x((0,g.G)(T)),j(!1))},[T,_]),(0,f.jsxs)(r.InspectorControls,{children:[n&&(0,f.jsx)(o.PanelBody,{children:(0,f.jsx)(l.N,{openInNewTab:!0,href:`https://wordpress.com/earn/payments/${n}`,children:(0,g.W)("manage your products",e)})}),(0,f.jsxs)(o.PanelBody,{title:(0,g.W)("add a new product",e),initialOpen:!0,className:"product-management-control-inspector__add-plan",children:[y===h.Hb&&(0,f.jsx)(o.Placeholder,{icon:c.A,label:(0,g.W)("saving product",e),children:(0,f.jsx)(o.Spinner,{})}),y===h.V$&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(o.PanelRow,{className:"product-management-control-inspector__product-title",children:(0,f.jsx)(o.TextControl,{id:"new-product-title",label:__("Name","jetpack"),onChange:e=>{x(e),j(!0)},value:w,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,f.jsxs)(o.PanelRow,{className:"product-management-control-inspector__product-price",children:[(0,f.jsx)(o.SelectControl,{label:__("Currency","jetpack"),onChange:e=>A(e),options:p.T,value:C,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,f.jsx)(o.TextControl,{label:__("Price","jetpack"),onChange:e=>E(e),type:"number",value:S,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]}),(0,f.jsx)(o.PanelRow,{className:"plan-interval",children:(0,f.jsx)(o.SelectControl,{label:__("Interval","jetpack"),onChange:e=>N(e),options:I,value:T,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})}),(0,f.jsx)(o.PanelRow,{className:"custom-amount",children:(0,f.jsx)(o.ToggleControl,{label:__("Enable customers to pick their own amount","jetpack"),onChange:e=>B(e),checked:P,__nextHasNoMarginBottom:!0})}),(0,f.jsx)(o.PanelRow,{children:(0,f.jsx)(l.N,{openInNewTab:!0,href:"https://wordpress.com/support/wordpress-editor/blocks/payments/#related-fees",children:__("Read more about Payments and related fees.","jetpack")})}),(0,f.jsx)(o.PanelRow,{children:(0,f.jsx)(o.Button,{onClick:n=>{n.preventDefault(),k(h.Hb),i({title:w,currency:C,price:S,interval:T,type:null,buyer_can_change_amount:P,is_editable:!0},e,t,e=>{k(h.V$),e&&(E(5),j(!1),N(b),B(v),A("USD"))})},variant:"secondary",children:(0,g.W)("add product",e)})})]})]})]})}},24365(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(94715),o=n(13109),s=n(84699),a=n(37072),i=n(1990),c=n(10790);function l(){const{productType:e}=(0,a.B)();return(0,c.jsx)(r.Warning,{className:"product-management-control-nudge",children:(0,c.jsxs)("span",{className:"product-management-control-nudge__info",children:[(0,c.jsx)(o.A,{icon:s.A}),(0,c.jsxs)("span",{className:"product-management-control-nudge__text-container",children:[(0,c.jsx)("span",{className:"product-management-control-nudge__title",children:(0,i.W)("invalid product configured for this block",e)}),(0,c.jsx)("span",{className:"product-management-control-nudge__message",children:(0,i.W)("the button will be hidden from your visitors until you select a valid product",e)})]})]})})}},27332(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(54268),o=n(94715),s=n(56427),a=n(47143),i=n(27723),c=n(84699),l=n(88901),u=n(60484),d=n(57273),p=n(16521),h=n(59340),m=n(37072),g=n(21212),f=n(1990),b=n(10790);const __=i.__;function v(e){const{currency:t,interval:n,price:o}=e,s=(0,r.vv)(parseFloat(o),t);switch(n){case"1 month":return(0,i.sprintf)( | |
| 150 | 166 | // translators: %s: amount |
| 151 | -__("%s / month","jetpack"),s);case"1 year":return(0,l.sprintf)( | |
| 167 | +__("%s / month","jetpack"),s);case"1 year":return(0,i.sprintf)( | |
| 152 | 168 | // translators: %s: amount |
| 153 | -__("%s / year","jetpack"),s);case"one-time":return s}return(0,l.sprintf)( | |
| 154 | -// translators: %s: amount, plan interval | |
| 155 | -__("%1$s / %2$s","jetpack"),s,n)}function f({onClose:e,product:t}){const{selectedProductIds:n,setSelectedProductIds:a}=(0,g.Q)(),{id:s,title:i}=t,l=n&&n.includes(s),u=l?c.Z:void 0,d=t?" "+E(t):null;return(0,r.createElement)(o.MenuItem,{icon:u,onClick:t=>{t.preventDefault();const r=l?n.filter((e=>e!==s)):[...n,s];a(r),e()},selected:l,value:s},i," : ",d)}function b({onClose:e}){const{clientId:t,productType:n}=(0,g.Q)(),a=(0,i.useSelect)((e=>e(p.h).getSiteSlug())),s=(0,A.Z)(t);if(m.BM===(0,m.j3)())return(0,r.createElement)(o.MenuItem,null,a&&(0,r.createElement)(o.ExternalLink,{href:`https://wordpress.com/earn/payments/${a}#add-new-payment-plan`},(0,h.l)("add a new product",n)));return(0,r.createElement)(o.MenuItem,{onClick:t=>{t.preventDefault(),s(),setTimeout((()=>{const e=document.getElementById("new-product-title");null!==e&&e.focus()}),100),e()}},(0,h.l)("add a new product",n))}function C(){const{products:e,productType:t,selectedProductIds:n}=(0,g.Q)(),{selectedProducts:a}=(0,i.useSelect)((e=>{const{getSelectedProducts:t}=e(p.h);return{selectedProducts:t(n)}}));let l=null,c=u.Z;return a.length>1?l=__("Multiple products selected","jetpack"):1===a.length&&(l=E(a[0])),a.length!=a.length&&(l=(0,h.l)("product not found",t),c=d.Z),(0,r.createElement)(s.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block"},(0,r.createElement)(o.ToolbarDropdownMenu,{className:"product-management-control-toolbar__dropdown-button",icon:c,label:(0,h.l)("select a product",t),text:l},(({onClose:t})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.MenuGroup,null,e.map((e=>(0,r.createElement)(f,{key:e.id,onClose:t,product:e})))),(0,r.createElement)(o.MenuGroup,null,(0,r.createElement)(b,{onClose:t}))))))}},60510:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(52175),a=n(9818),s=n(72067),o=n(99307);function i(e){const t=(0,o.j3)(),{selectBlock:n}=(0,a.useDispatch)(r.store),{enableComplementaryArea:i}=(0,a.useDispatch)("core/interface"),{closePublishSidebar:l}=(0,a.useDispatch)(s.store);return()=>{switch(e&&n(e),t){case o.fH:return i("core/edit-site","edit-site/block-inspector");case o.CG:return i("core/edit-widgets","edit-widgets/block-inspector");default:l(),i("core/edit-post","edit-post/block")}}}},51585:(e,t,n)=>{"use strict";n.d(t,{_:()=>l,l:()=>o});var r=n(65736),a=n(14436);const __=r.__,s={"add a new product":{[a.Bn]:__("Add a new payment plan","jetpack"),[a.DM]:__("Add a new subscription","jetpack")},"product not found":{[a.Bn]:__("Payment plan not found","jetpack"),[a.DM]:__("Subscription not found","jetpack")},"select a product":{[a.Bn]:__("Select a payment plan","jetpack"),[a.DM]:__("Select a subscription","jetpack")},"default new product title":{[a.Bn]:__("Monthly Subscription","jetpack"),[a.DM]:__("Monthly Subscription","jetpack")},"manage your products":{[a.Bn]:__("Manage your payment plans.","jetpack"),[a.DM]:__("Manage your subscriptions.","jetpack")},"saving product":{[a.Bn]:__("Saving payment plan…","jetpack"),[a.DM]:__("Saving subscription…","jetpack")},"add product":{[a.Bn]:__("Add payment plan","jetpack"),[a.DM]:__("Add subscription","jetpack")},"product requires a name":{[a.Bn]:__("Payment plan requires a name","jetpack"),[a.DM]:__("Subscription requires a name","jetpack")},"product requires a valid price":{[a.Bn]:__("Payment plan requires a valid price","jetpack"),[a.DM]:__("Subscription requires a valid price","jetpack")},"successfully created product":{[a.Bn]:__("Successfully created payment plan","jetpack"),[a.DM]:__("Successfully created subscription","jetpack")},"there was an error when adding the product":{[a.Bn]:__("There was an error when adding the payment plan.","jetpack"),[a.DM]:__("There was an error when adding the subscription.","jetpack")},"invalid product configured for this block":{[a.Bn]:__("Invalid payment plan configured for this block.","jetpack"),[a.DM]:__("Invalid subscription configured for this block.","jetpack")},"the button will be hidden from your visitors until you select a valid product":{[a.Bn]:__("The button will be hidden from your visitors until you select a valid payment plan.","jetpack"),[a.DM]:__("The subscribe button will be hidden from your visitors until you select a valid subscription.","jetpack")},"mark this product as a donation":{[a.Bn]:__("Mark this payment plan as a donation","jetpack"),[a.DM]:__("Mark this subscription as a donation","jetpack")}};function o(e,t=a.Bn){return s?.[e]?.[t]||null}const i={"1 month":__("Monthly Subscription","jetpack"),"1 year":__("Yearly Subscription","jetpack"),"one-time":__("Subscription","jetpack")};function l(e){return i[[e]]??""}},2327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(13419),s=n(55609),o=n(65736),i=n(81427),l=n(46867);const __=o.__;function c({blockName:e,connectUrl:t}){const{autosaveAndRedirect:n}=(0,l.Z)(t),{tracks:o}=(0,a.z$)();return(0,r.createElement)(s.ToolbarButton,{className:"connect-stripe components-tab-button",icon:i.Pw,onClick:t=>{t.preventDefault(),o.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e}),n(t)}},__("Connect Stripe","jetpack"))}},16367:(e,t,n)=>{"use strict";n.d(t,{U:()=>d});var r=n(51806),a=n(6895),s=n(13419),o=n(9818),i=n(65736),l=n(89933),c=n(7652),u=n(44738);const __=i.__,d=({blockName:e})=>{const t=(0,o.select)(c.h).getConnectUrl(),{tracks:n}=(0,s.z$)(),i=(0,s.Ug)()||(0,s.Wp)();if(!t)return null;let d;switch(e){case"payment-buttons":d=i?(0,a.Z)("wpcom-support-wordpress-editor-blocks-payments-block"):(0,a.Z)("jetpack-support-jetpack-blocks-payments-block");break;case"donations":d=i?(0,a.Z)("wpcom-support-wordpress-editor-blocks-donations-block"):(0,a.Z)("jetpack-support-jetpack-blocks-donations-block");break;case"premium-content":d=i?(0,a.Z)("wpcom-support-wordpress-editor-blocks-premium-content-block"):(0,a.Z)("jetpack-support-jetpack-blocks-premium-content-block");break;default:d=i?(0,a.Z)("wpcom-support-payments-button-block"):(0,a.Z)("jetpack-support-jetpack-blocks-payments-block")}return(0,r.createElement)(u.Z,{className:"jetpack-stripe-nudge__banner",buttonLabel:__("Connect","jetpack"),icon:(0,r.createElement)(l.Z,{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:t,readMoreUrl:d,onClick:()=>n.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e}),title:__("Connect to Stripe to use this block on your site","jetpack"),subtitle:__("This block will be hidden from your visitors until you connect to Stripe.","jetpack")})}},26546:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(51806),a=n(55609),s=n(65736),o=n(65235),i=n.n(o);const __=s.__,l=({align:e,className:t,title:n,description:s,buttonText:o=null,visible:l=!0,context:c,checkoutUrl:u=null,goToCheckoutPage:d=null,isRedirecting:p=!1,showButton:m=!0,target:g="_top"})=>{const A=i()(t,"jetpack-upgrade-plan-banner",{"wp-block":"editor-canvas"===c,"block-editor-block-list__block":"editor-canvas"===c,"jetpack-upgrade-plan__hidden":!l}),h=__("Redirecting…","jetpack");return(0,r.createElement)("div",{className:A,"data-align":e},(0,r.createElement)("div",{className:"jetpack-upgrade-plan-banner__wrapper"},n&&(0,r.createElement)("strong",{className:i()("banner-title",{[`${t}__title`]:t})},n),s&&(0,r.createElement)("span",{className:`${t}__description banner-description`},s),m&&(0,r.createElement)(a.Button,{href:p?null:u,onClick:d,target:g,className:i()("is-primary",{"jetpack-upgrade-plan__hidden":!u}),isBusy:p},p?h:o)))}},79162:(e,t,n)=>{"use strict";n.d(t,{Vm:()=>c,Xy:()=>s,ck:()=>a,hj:()=>o,li:()=>i,vs:()=>l});var r=n(43317);const a={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5},s=Object.keys(a).map((e=>{const{symbol:t}=(0,r.X)(e);var n;return{value:e,label:t===e?e:`${e} ${n=t,String(n||"").replace(/\.+$/,"")}`}}));function o(e){return a[e]}function i(e){const t=o(e);return[10*t,30*t,200*t]}function l(e,t){return!isNaN(t)&&t>=o(e)}function c(e,t){if(!e)return null;if("number"==typeof e)return e;let n=e;return r.M[t].grouping&&(n=e.replace(new RegExp("\\"+r.M[t].grouping,"g"),"")),e=parseFloat(n.replace(new RegExp("\\"+r.M[t].decimal,"g"),".")),isNaN(e)?null:e}},94545:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(55609);const s=({label:e,onClick:t})=>(0,r.createElement)(a.Button,{className:"components-toolbar__control",label:e,icon:"edit",onClick:t})},73905:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r=new Map,a=e=>r.has(e),s={acquire:e=>{if(a(e))return null;const t=Math.random();return r.set(e,t),[e,t]},blockExecution:async(e,t=10)=>{for(;a(e);)await new Promise((e=>setTimeout(e,t)))},clearAll:()=>r.clear(),isLocked:a,release:e=>{const[t,n]=e;return!(!a(t)||r.get(t)!==n)&&(r.delete(t),!0)}}},20982:(e,t,n)=>{"use strict";n.d(t,{Bb:()=>b,CY:()=>h,Eh:()=>i,En:()=>C,OG:()=>m,QU:()=>k,Qh:()=>f,Tu:()=>p,UQ:()=>c,Wm:()=>E,h9:()=>A,iT:()=>o,l5:()=>y,oI:()=>d,tY:()=>g,w8:()=>u,wk:()=>l,yD:()=>v,zs:()=>B});var r=n(69771),a=n(65736),s=n(92819);const __=a.__,o="google_photos",i="openverse",l="pexels",c="jetpack_app_media",u="jetpack_ai_featured_image",d="recent",p="/",m=[{value:d,label:__("Photos","jetpack")},{value:p,label:__("Albums","jetpack")}],g=[{value:"", | |
| 156 | -/* translators: category of images */ | |
| 157 | -label:__("All categories","jetpack")},{value:"animals", | |
| 158 | -/* translators: category of images */ | |
| 159 | -label:__("Animals","jetpack")},{value:"arts", | |
| 160 | -/* translators: category of images */ | |
| 161 | -label:__("Arts","jetpack")},{value:"birthdays", | |
| 162 | -/* translators: category of images */ | |
| 163 | -label:__("Birthdays","jetpack")},{value:"cityscapes", | |
| 164 | -/* translators: category of images */ | |
| 165 | -label:__("Cityscapes","jetpack")},{value:"crafts", | |
| 166 | -/* translators: category of images */ | |
| 167 | -label:__("Crafts","jetpack")},{value:"fashion", | |
| 168 | -/* translators: category of images */ | |
| 169 | -label:__("Fashion","jetpack")},{value:"food", | |
| 170 | -/* translators: category of images */ | |
| 171 | -label:__("Food","jetpack")},{value:"flowers", | |
| 172 | -/* translators: category of images */ | |
| 173 | -label:__("Flowers","jetpack")},{value:"gardens", | |
| 174 | -/* translators: category of images */ | |
| 175 | -label:__("Gardens","jetpack")},{value:"holidays", | |
| 176 | -/* translators: category of images */ | |
| 177 | -label:__("Holidays","jetpack")},{value:"houses", | |
| 178 | -/* translators: category of images */ | |
| 179 | -label:__("Houses","jetpack")},{value:"landmarks", | |
| 180 | -/* translators: category of images */ | |
| 181 | -label:__("Landmarks","jetpack")},{value:"landscapes", | |
| 182 | -/* translators: category of images */ | |
| 183 | -label:__("Landscapes","jetpack")},{value:"night", | |
| 184 | -/* translators: category of images */ | |
| 185 | -label:__("Night","jetpack")},{value:"people", | |
| 186 | -/* translators: category of images */ | |
| 187 | -label:__("People","jetpack")},{value:"pets", | |
| 188 | -/* translators: category of images */ | |
| 189 | -label:__("Pets","jetpack")},{value:"selfies", | |
| 190 | -/* translators: category of images */ | |
| 191 | -label:__("Selfies","jetpack")},{value:"sport", | |
| 192 | -/* translators: category of images */ | |
| 193 | -label:__("Sport","jetpack")},{value:"travel", | |
| 194 | -/* translators: category of images */ | |
| 195 | -label:__("Travel","jetpack")},{value:"weddings", | |
| 196 | -/* translators: category of images */ | |
| 197 | -label:__("Weddings","jetpack")}],A=["mountain","ocean","river","clouds","pattern","abstract","sky"],h="ANY",E="LAST_7_DAYS",f="LAST_30_DAYS",b="LAST_6_MONTHS",C="LAST_12_MONTHS",v="CUSTOM",k=[{value:h,label:__("Any time","jetpack")},{value:E,label:__("Last 7 days","jetpack")},{value:f,label:__("Last 30 days","jetpack")},{value:b,label:__("Last 6 months","jetpack")},{value:C,label:__("Last 12 months","jetpack")},{value:v,label:__("Specific Month/Year","jetpack")}],B=(new Date).getFullYear(),y=[{label:__("Any Month","jetpack"),value:-1},...(0,s.map)((0,s.range)(0,12),(e=>({label:(0,r.dateI18n)("F",new Date(0,e)),value:e})))]},54414:(e,t,n)=>{"use strict";var r=n(82674),a=n.n(r),s=n(51806),o=n(13419),i=n(52175),l=n(92694),c=n(10892),u=n(1285),d=n(38457);if((0,o.Dp)()&&"function"==typeof i.useBlockEditContext){(0,u.HO)(),(0,u.on)();const e=e=>e.unstableFeaturedImageFlow||e.modalClass&&e.modalClass.indexOf("featured-image")>-1,t=(e,t)=>["core/cover","core/image","core/gallery","core/media-text","jetpack/image-compare","jetpack/slideshow","jetpack/story","jetpack/tiled-gallery","videopress/video"].indexOf(e)>-1&&-1===t.toString().indexOf("coblocks");(0,l.addFilter)("editor.MediaUpload","external-media/replace-media-upload",(n=>r=>{const{name:o}=(0,i.useBlockEditContext)();let{render:l}=r;if(t(o,l)||e(r)){const{allowedTypes:e,gallery:t=!1,value:n=[]}=r;e.indexOf("image")>-1&&!(t&&n.length>0)&&(l=e=>(0,s.createElement)(c.Z,a()({},e,{mediaProps:r})))}return(0,s.createElement)(n,a()({},r,{render:l}))}),100),(0,l.addFilter)("blocks.registerBlockType","external-media/individual-blocks",(function(e,t){return"core/image"!==t?e:{...e,keywords:[...e.keywords,...d.Dv.map((e=>e.keyword))]}}))}},11583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(39630),l=n(65235),c=n.n(l),u=n(92819),d=n(46406),p=n(9827);const __=o.__,m=(0,s.memo)((()=>(0,r.createElement)("div",{className:"jetpack-external-media-browser__empty"},(0,r.createElement)("p",null,__("Sorry, but nothing matched your search criteria.","jetpack")))));const g=function(e){const{media:t,isCopying:n,isLoading:o,pageHandle:l,className:g,multiple:A,setPath:h,nextPage:E,onCopy:f,selectButtonText:b}=e,[C,v]=(0,s.useState)([]),[k,B]=(0,s.useState)(-1),y=(0,s.useRef)(-1),w=(0,s.useRef)(null),_=(0,s.useCallback)((e=>{let t=[e];"folder"===e.type?h(e.ID):A?(t=C.slice(0,9).concat(e),C.find((t=>e.ID===t.ID))&&(t=C.filter((t=>t.ID!==e.ID)))):1===C.length&&e.ID===C[0].ID&&(t=[]),v(t)}),[C,A,h]),I=(0,s.useCallback)((()=>{f(C)}),[C,f]),j=t.filter((e=>"folder"!==e.type)).length>0,x=c()({"jetpack-external-media-browser__media":!0,"jetpack-external-media-browser__media__loading":o}),S=c()({"jetpack-external-media-browser":!0,[g]:!0}),Q=()=>{let e=1;const t=w.current.children;if(t.length>0){const n=t[0].offsetTop;for(;e<t.length&&t[e].offsetTop===n;)++e}y.current=e},N=(0,u.debounce)(Q,400);(0,s.useEffect)((()=>(window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)})),[]),(0,s.useEffect)((()=>{t.length&&-1===y.current&&Q()}),[t]);const P=(e,{item:t})=>{_(t)},T=(e,{item:n,index:r})=>{[i.LEFT,i.RIGHT,i.UP,i.DOWN].includes(e.keyCode)?((e,n)=>{switch(e){case i.LEFT:n>=1&&B(n-1);break;case i.RIGHT:n<t.length&&B(n+1);break;case i.UP:n>=y.current&&B(n-y.current);break;case i.DOWN:n<t.length-y.current&&B(n+y.current)}})(e.keyCode,r):i.SPACE===e.keyCode?(_(n),e.preventDefault()):i.ENTER===e.keyCode&&_(n),[i.LEFT,i.RIGHT,i.UP,i.DOWN,i.SPACE,i.ENTER].includes(e.keyCode)&&e.stopPropagation()};return(0,r.createElement)("div",{className:S},(0,r.createElement)("ul",{ref:w,className:x},t.map(((e,t)=>(0,r.createElement)(d.Z,{item:e,index:t,key:e.ID,onClick:P,onKeyDown:T,focus:t===k,isSelected:C.find((t=>t.ID===e.ID)),isCopying:n}))),0===t.length&&!o&&(0,r.createElement)(m,null),o&&(0,r.createElement)(p.Z,null),l&&!o&&(0,r.createElement)(a.Button,{variant:"secondary",className:"jetpack-external-media-browser__loadmore",disabled:o||n,onClick:()=>{t.length&&B(t.length),E()}},__("Load More","jetpack"))),j&&(0,r.createElement)((e=>{const t=0===C.length||n,s=e?.labelText?e?.labelText(C.length):__("Select","jetpack",0),o=n?__("Inserting…","jetpack"):s;return(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__toolbar"},(0,r.createElement)(a.Button,{variant:"primary",isBusy:n,disabled:t,onClick:I},o))}),{labelText:b}))}},46406:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(65235),l=n.n(i);const __=o.__;const c=function(e){const{item:t,focus:n,isSelected:o,isCopying:i=!1}=e,{thumbnails:c,caption:u,name:d,title:p,type:m,children:g=0}=t,{medium:A=null,fmt_hd:h=null,thumbnail:E=null}=c,f=p||u||d,b=l()({"jetpack-external-media-browser__media__item":!0,"jetpack-external-media-browser__media__item__selected":o,"jetpack-external-media-browser__media__folder":"folder"===m,"is-transient":i}),C=(0,s.useRef)(null);return(0,s.useEffect)((()=>{n&&C.current.focus()}),[n]),(0,r.createElement)("li",{ref:C,className:b,onClick:i?void 0:t=>{const{item:n,index:r}=e;e.onClick&&e.onClick(t,{item:n,index:r})},onKeyDown:i?void 0:t=>{const{item:n,index:r}=e;e.onKeyDown&&e.onKeyDown(t,{item:n,index:r})},role:"checkbox",tabIndex:"0","aria-checked":!!o,"aria-disabled":!!i},o&&i&&(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator"},(0,r.createElement)(a.Spinner,null),(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__copying_indicator__label"},__("Inserting Image…","jetpack"))),(0,r.createElement)("img",{src:A||h||E,alt:f}),"folder"===m&&(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__info"},(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__name"},d),(0,r.createElement)("div",{className:"jetpack-external-media-browser__media__count"},g)))}},9827:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(69307);const s=(0,a.memo)((function(){const e="jetpack-external-media-browser__media__item jetpack-external-media-browser__media__placeholder";return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:e}),(0,r.createElement)("div",{className:e}),(0,r.createElement)("div",{className:e}))}))},10892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(82674),a=n.n(r),s=n(51806),o=n(69307),i=n(38457),l=n(95833);const c=e=>e.unstableFeaturedImageFlow||e.modalClass&&-1!==e.modalClass.indexOf("featured-image"),u=e=>void 0===e.multiple&&!c(e);const d=function(e){const{mediaProps:t}=e,[n,r]=(0,o.useState)(null),d=(0,i.ZR)(n);return(0,s.createElement)("div",{onClick:e=>e.stopPropagation()},(0,s.createElement)(l.Z,a()({},e,{setSelectedSource:r,isReplace:u(t),isFeatured:c(t),hasImage:t.value>0})),d&&(0,s.createElement)(d,a()({},t,{onClose:e=>{e&&(e.stopPropagation(),e.target.closest(".jetpack-external-media-header__dropdown"))||(r(null),t.onClose?.())}})))}},95833:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),a=n(55609),s=n(65736),o=n(61074),i=n(20843),l=n(13959);const __=s.__;const c=function(e){const{mediaProps:t,open:n,setSelectedSource:s,isFeatured:c,isReplace:u,hasImage:d}=e,p=t.render;let m="tertiary";if(u)return(0,r.createElement)(l.Z,{originalButton:p,open:n,setSource:s});let g=__("Select Image","jetpack");return t.multiple&&(g=__("Select Images","jetpack")),t.allowedTypes.length>1&&(g=__("Select Media","jetpack")),c&&(g=__("Replace Image","jetpack"),m="secondary"),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.Dropdown,{placement:"bottom-start",className:"jetpack-external-media-button-menu__dropdown",contentClassName:"jetpack-external-media-button-menu__options",renderToggle:({isOpen:e,onToggle:t})=>{const n=p&&p({open:t});return c&&d||n&&"string"!=typeof n.props.children?n:(0,r.createElement)(a.Button,{variant:m,className:"jetpack-external-media-button-menu","aria-haspopup":"true","aria-expanded":e,onClick:t},(0,r.createElement)("div",{className:"jetpack-external-media-button-menu__label"},g),(0,r.createElement)(o.Z,{icon:i.Z}))},renderContent:({onClose:e})=>(0,r.createElement)(a.NavigableMenu,{"aria-label":g},(0,r.createElement)(a.MenuGroup,null,(0,r.createElement)(a.MenuItem,{icon:i.Z,onClick:()=>{e(),n()}},__("Media Library","jetpack")),(0,r.createElement)(l.Z,{open:n,setSource:s,onClick:e,isFeatured:c})))}))}},13959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(55609),s=n(69307),o=n(38457);const i=function({originalButton:e=null,onClick:t=(()=>{}),open:n,setSource:i,isFeatured:l=!1}){return(0,r.createElement)(s.Fragment,null,e&&e({open:n}),o.k6.map((({icon:e,id:n,label:s})=>(0,r.createElement)(a.MenuItem,{icon:e,key:n,onClick:()=>{t(),i(n)}},s))),l&&o.zK.map((({icon:e,id:n,label:s})=>(0,r.createElement)(a.MenuItem,{icon:e,key:n,onClick:()=>{t(),i(n)}},s))),(0,r.createElement)("hr",{style:{marginLeft:"-8px",marginRight:"-8px"}}),o.sk.map((({icon:e,id:n,label:s})=>(0,r.createElement)(a.MenuItem,{icon:e,key:n,onClick:()=>{t(),i(n)}},s))))}},1285:(e,t,n)=>{"use strict";n.d(t,{HO:()=>j,on:()=>I,uk:()=>x});var r=n(6975),a=n(86989),s=n.n(a),o=n(9818),i=n(65736),l=n(96483),c=n(67194),u=n(94841),d=n(29755);const __=i.__,p=__("Pexels Free Photos","jetpack"),m=__("Search Pexels Free Photos","jetpack"),g={per_page:10,search:"mountain"},A=__("Google Photos","jetpack"),h=__("Search Google Photos","jetpack"),E={per_page:25,search:""};var f=function(e){return e.List="/wpcom/v2/external-media/list/",e}(f||{}),b=function(e){return e.Image="image",e.Video="video",e}(b||{});const C=(e,t)=>(0,l.addQueryArgs)(`${f.List}${e}`,{...t.search&&{search:t.search},number:t.per_page||25,path:"recent"}),v=e=>({caption:e?.caption??"",previewUrl:e.thumbnails.thumbnail,title:e?.title??e?.name??e.file,url:e.URL}),k=(e,t,n,a,o)=>({name:e,labels:{name:t,search_items:n},mediaType:"image",fetch:async e=>await s()({path:C(a,{per_page:o.per_page,search:""===e?.search?o.search:e.search}),method:"GET"}).then((t=>{const n=t.media.filter((e=>e.type===b.Image)).map(v);return r.Z.tracks.recordEvent("jetpack_editor_media_inserter_external_source",{mediaSource:a.toString(),results:n.length,search:""===e?.search?o.search:e.search}),n})).catch((()=>[])),getReportUrl:null,isExternalResource:!0}),B=()=>k("google_photos",A,h,d.Y.GooglePhotos,E),y=()=>{const e=(0,o.select)("core/editor")?.isInserterOpened??(0,o.select)("core/edit-post")?.isInserterOpened,t=e?.();return t||(0,o.select)("core/edit-site")?.isInserterOpened()||(0,o.select)("core/edit-widgets")?.isInserterOpened()},w=e=>(0,o.dispatch)("core/block-editor")?.registerInserterMediaCategory?.(e()),_=()=>k("pexels",p,m,d.Y.Pexels,g),I=async()=>{(0,c.X)(y).then((async()=>{await(async e=>s()({path:C(e,g),method:"GET"}).then((e=>e)).catch((()=>!1)))(d.Y.GooglePhotos)?w(B):(0,c.X)((()=>{return e=d.Y.GooglePhotos,!!(0,o.select)(u.h).isAuthenticated(e);var e})).then((()=>w(B)))}))},j=()=>{(0,c.X)(y).then((()=>w(_)))},x=(e,t)=>{(0,o.dispatch)(u.h).setAuthenticated(e,t)}},29755:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});let r=function(e){return e.Pexels="pexels",e.GooglePhotos="google_photos",e.Openverse="openverse",e.JetpackAppMedia="jetpack_app_media",e.Unknown="unknown",e}({})},47285:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(13419),a=n(96483);const s={list:"/wpcom/v2/external-media/list/",copy:(0,r.Wp)()?"/rest/v1.1/external-media-upload?service=":"/wpcom/v2/external-media/copy/",connection:"/wpcom/v2/external-media/connection/"};function o(e,t,n={}){return s[e]?(0,a.addQueryArgs)(s[e]+t,n):null}},53463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),a=n(69307),s=n(65736),o=n(81427);const __=s.__;const i=(0,a.memo)((function(){return(0,r.createElement)(a.Fragment,null,(0,r.createElement)(o.JO,null),(0,r.createElement)("p",null,__("To get started, connect your site to your Google Photos library.","jetpack")),(0,r.createElement)("p",null,__("You can remove the connection in either of these places:","jetpack")),(0,r.createElement)("ul",null,(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://myaccount.google.com/security"},__("Google Security page","jetpack"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://wordpress.com/marketing/connections/"},__("WordPress.com Connections","jetpack")))))}))},5890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),a=n(69307),s=n(65736);const __=s.__;const o=(0,a.memo)((function(){return(0,r.createElement)("p",null,__("Awaiting authorization","jetpack"))}))},86167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(20982);const __=o.__;const l=(0,s.memo)((function({path:e,setPath:t}){return(0,r.createElement)(s.Fragment,null,(0,r.createElement)(a.Button,{variant:"tertiary",onClick:()=>t(i.Tu)},__("Albums","jetpack")),"→ ",e.name)}))},4819:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(92819),l=n(20769),c=n(20982);const __=o.__;function u({value:e,updateFilter:t}){return(0,r.createElement)(a.SelectControl,{label:__("Category","jetpack"),value:e,options:c.tY,onChange:t})}function d({value:e,updateFilter:t}){const n=e?.range||c.CY,[o,i]=(0,s.useState)(-1),[u,d]=(0,s.useState)(c.zs);return(0,r.createElement)("div",{className:"jetpack-external-media-date-filter"},(0,r.createElement)(a.SelectControl,{label:__("Filter by time period","jetpack"),value:n,options:c.QU,onChange:e=>t({range:e})}),n===c.yD&&(0,r.createElement)(s.Fragment,null,(0,r.createElement)(a.SelectControl,{label:__("Month","jetpack"),value:o,options:c.l5,onChange:i}),(0,r.createElement)(l.Z,{className:"components-base-control",label:__("Year","jetpack"),value:u,min:1970,onChange:d}),(0,r.createElement)(a.Button,{variant:"secondary",disabled:e?.month===o&&e?.year===u,onClick:()=>{t({range:n,month:o,year:u})}},__("Apply","jetpack"))))}function p(){return(0,r.createElement)("span",null,__("Favorites","jetpack"))}function m({value:e,updateFilter:t}){const n=[{label:__("All","jetpack"),value:""},{label:__("Images","jetpack"),value:"photo"},{label:__("Videos","jetpack"),value:"video"}];return(0,r.createElement)(a.SelectControl,{label:__("Type","jetpack"),value:e,options:n,onChange:t})}function g({children:e,removeFilter:t,isRemovable:n=!1}){return(0,r.createElement)("div",{className:"jetpack-external-media-googlephotos-filter"},e,!!n&&(0,r.createElement)(a.Button,{onClick:t,isSmall:!0},__("Remove Filter","jetpack")))}const A=function({filters:e,setFilters:t,canChangeMedia:n}){const a=Object.keys(e).filter((e=>n||"mediaType"!==e)).map((n=>{return(0,r.createElement)(g,{key:n,removeFilter:()=>t((0,i.omit)(e,n))},(a=n,s=e[n],o=r=>t(function(e,t,n){const r={...e,[t]:n};return"mediaType"===t&&"video"===n?delete r.category:"category"===t&&"video"===r.mediaType&&delete r.mediaType,r}(e,n,r)),"category"===a?(0,r.createElement)(u,{value:s,updateFilter:o}):"date"===a?(0,r.createElement)(d,{value:s,updateFilter:o}):"favorite"===a?(0,r.createElement)(p,{value:s}):"mediaType"===a?(0,r.createElement)(m,{value:s,updateFilter:o}):null));var a,s,o}));return 0===a.length?null:a}},58912:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(76292),a=n.n(r),s=n(20982);const o=a()();function i(e){const{mediaType:t,category:n,favorite:r,date:i}=e,l=[];if(t&&l.push("mediaType="+t),n&&"video"!==t&&l.push("categoryInclude="+n),void 0!==r&&l.push("feature=favorite"),i){let e=null,t=null;switch(i.range){case s.Wm:e=a()(o).subtract(7,"days"),t=o;break;case s.Qh:e=a()(o).subtract(30,"days"),t=o;break;case s.Bb:e=a()(o).subtract(6,"months"),t=o;break;case s.En:e=a()(o).subtract(1,"year"),t=o;break;case s.yD:const n=parseInt(i.month),r=parseInt(i.year);isNaN(n)||isNaN(r)||(-1===n?(e=a()([r,0]),t=a()(e).endOf("year")):(e=a()([r,n]),t=a()(e).endOf("month")))}const n=e?e.format("YYYY-MM-DD"):"0000-00-00",r=t?t.format("YYYY-MM-DD"):"0000-00-00";l.push(`dateRange=${n}:${r}`)}return l.length>0?l:null}},53800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(51806),a=n(55609),s=n(69307),o=n(65736);const __=o.__,i=[{label:__("Category","jetpack"),value:"category"},{label:__("Date","jetpack"),value:"date"},{label:__("Favorites","jetpack"),value:"favorite"},{label:__("Media Type","jetpack"),value:"mediaType"}];function l(e){return i.filter((t=>void 0===e[t.value]))}function c(e){const t=l(e);return t.length>0?t[0].value:""}const u=function(e){const[t,n]=(0,s.useState)(c([])),{isLoading:o,isCopying:i,filters:u,canChangeMedia:d}=e,p=function(e,t){return t?e:e.filter((e=>"mediaType"!==e.value))}(l(u),d);return 0===p.length?null:(0,r.createElement)(s.Fragment,null,(0,r.createElement)(a.SelectControl,{label:__("Filters","jetpack"),value:t,disabled:o||i,options:p,onChange:n}),(0,r.createElement)(a.Button,{disabled:o||i,variant:"secondary",isSmall:!0,onClick:()=>{const r=(a=u,s=t,{...a,[s]:"favorite"===s||""});var a,s;e.setFilters(r),n(c(r))}},__("Add Filter","jetpack")))}},64034:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(2772);const s=({account:e,setAuthenticated:t})=>{const{image:n,name:s}=e||{};return(0,r.createElement)("div",{className:"jetpack-external-media-header__account"},(0,r.createElement)("div",{className:"jetpack-external-media-header__account-info"},n&&(0,r.createElement)("img",{className:"jetpack-external-media-header__account-image",src:n,alt:"",height:"18",width:"18"}),s&&(0,r.createElement)("div",{className:"jetpack-external-media-header__account-name"},s)),(0,r.createElement)(a.Z,{setAuthenticated:t}))}},62494:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(39229),s=n(86989),o=n.n(s),i=n(55609),l=n(69307),c=n(65736),u=n(20982),d=n(47285),p=n(53463),m=n(5890);const __=c.__;const g=function(e){const{setAuthenticated:t}=e,[n,s]=(0,l.useState)(!1),c=(0,l.useCallback)((()=>{s(!0),o()({path:(0,d.k)("connection",u.iT)}).then((e=>{if(e.error)throw e.message;(0,a.Z)(e.connect_URL,(()=>{s(!1),t(!0)}))})).catch((()=>{s(!1)}))}),[t]);return(0,r.createElement)("div",{className:"jetpack-external-media-auth"},n?(0,r.createElement)(m.Z,null):(0,r.createElement)(p.Z,null),(0,r.createElement)(i.Button,{variant:"primary",disabled:n,onClick:c},__("Connect to Google Photos","jetpack")))}},2772:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(51806),a=n(86989),s=n.n(a),o=n(55609),i=n(69307),l=n(65736),c=n(20982),u=n(47285);const __=l.__,d=({setAuthenticated:e})=>{const[t,n]=(0,i.useState)(!1),a=(0,i.useCallback)((()=>{n(!0),s()({method:"DELETE",path:(0,u.k)("connection",c.iT)}).then((()=>e(!1))).catch((()=>n(!1)))}),[e]);return(0,r.createElement)(o.Button,{variant:"secondary",className:"jetpack-external-media-browser__disconnect",onClick:a,disabled:t,isBusy:t},__("Disconnect from Google Photos","jetpack"))}},20107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(20982),l=n(11583),c=n(47285),u=n(86167),d=n(4819),p=n(58912),m=n(53800),g=n(64034);const __=o.__;const A=function(e){const{account:t,allowedTypes:n,copyMedia:o,getMedia:A,isCopying:h,isLoading:E,media:f,multiple:b,onChangePath:C,pageHandle:v,path:k,setAuthenticated:B,showAdditionalFilters:y=!1}=e,w=(_=n)&&1===_.length&&"image"===_[0];var _;const[I,j]=(0,s.useState)(w?{mediaType:"photo",date:{range:i.CY}}:{date:{range:i.CY}}),x=(0,s.useRef)(""),S=(0,s.useRef)(""),Q=k.ID===i.oI?(0,p.Z)(I):null,N={number:20,path:k.ID};Q&&(N.filter=Q);const P=(0,c.k)("list",i.iT,N),T=(0,s.useCallback)(((e,t=!1)=>{A(P,t)}),[A,P]),R=(0,s.useCallback)((e=>{const t=f.find((t=>t.ID===e));S.current=k,C(t||{ID:e})}),[f,C,S,k]),Z=(0,s.useCallback)((e=>{o(e,(0,c.k)("copy",i.iT),i.iT)}),[o]);return(0,s.useEffect)((()=>{x!==P&&(x.current=P,T({},k!==S.current))}),[x,P,T,k]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__google"},(0,r.createElement)("div",{className:"jetpack-external-media-header__view"},(0,r.createElement)(a.SelectControl,{className:"jetpack-external-media-header__select",label:__("View","jetpack"),value:k.ID!==i.oI?i.Tu:i.oI,disabled:E||h,options:i.OG,onChange:R}),y&&k.ID===i.oI&&(0,r.createElement)(m.Z,{filters:I,isLoading:E,setFilters:j,canChangeMedia:!w}),(0,r.createElement)("div",{className:"jetpack-external-media-header__filter"},k.ID===i.oI&&(0,r.createElement)(d.Z,{filters:I,isLoading:E,setFilters:j,canChangeMedia:!w}),k.ID!==i.oI&&k.ID!==i.Tu&&(0,r.createElement)(u.Z,{path:k,setPath:R})),(!E||f.length>0)&&(0,r.createElement)(g.Z,{account:t,setAuthenticated:B})),(0,r.createElement)(l.Z,{className:"jetpack-external-media-browser__google",key:P,media:f,isCopying:h,isLoading:E,nextPage:T,onCopy:Z,pageHandle:v,multiple:b,setPath:R}))}},77453:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(29755),s=n(97893),o=n(62494),i=n(20107);const l=(0,s.Z)(a.Y.GooglePhotos)((function(e){return e.isAuthenticated?(0,r.createElement)(i.Z,e):(0,r.createElement)(o.Z,e)}))},38457:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>h,ZR:()=>E,k6:()=>m,sk:()=>A,zK:()=>g});var r=n(51806),a=n(42290),s=n(65736),o=n(81427),i=n(20982),l=n(77453),c=n(83720),u=n(32558),d=n(41214),p=n(12533);const __=s.__,m=[{id:i.UQ,label:__("Your Phone","jetpack"),icon:(0,r.createElement)(o.EL,{className:"components-menu-items__item-icon"}),keyword:"jetpack mobile app"}],g=[{id:i.w8,label:__("Generate with AI","jetpack"),icon:a.u_,keyword:"jetpack ai"}],A=[{id:i.iT,label:__("Google Photos","jetpack"),icon:(0,r.createElement)(o.He,{className:"components-menu-items__item-icon"}),keyword:"google photos"},{id:i.wk,label:__("Pexels Free Photos","jetpack"),icon:(0,r.createElement)(o.yk,{className:"components-menu-items__item-icon"}),keyword:"pexels"},{id:i.Eh,label:__("Openverse","jetpack"),icon:(0,r.createElement)(o.FG,{className:"components-menu-items__item-icon"}),keyword:"openverse"}],h=A.concat(m);function E(e){return e===i.wk?p.Z:e===i.iT?l.Z:e===i.Eh?d.Z:e===i.UQ?u.Z:e===i.w8?c.Z:null}},83720:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(77371);const s=function({onClose:e=(()=>{})}){return(0,r.createElement)(a.Z,{placement:a.h,onClose:e})}},32558:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(49777),s=n(9818),o=n(69307),i=n(65736),l=n(81427),c=n(28229),u=n(11583),d=n(29755),p=n(97893);const __=i.__,_n=i._n;const m=(0,p.Z)(d.Y.JetpackAppMedia)((function(e){const{media:t,insertMedia:n,isCopying:d,multiple:p,getMedia:m}=e,g=window?.Jetpack_Editor_Initial_State?.wpcomBlogId||0,A=window?.Jetpack_Editor_Initial_State?.pluginBasePath+"/images/",h=(0,s.useSelect)((e=>e("core/editor").getCurrentPostId())),[E]=(0,o.useState)(Date.now()/1e3),f=(0,o.useCallback)((()=>{m(`/wpcom/v2/app-media?refresh=true&after=${E}`,!0)}),[m,E]),b=(0,o.useCallback)((()=>{m(`/wpcom/v2/app-media?refresh=true&after=${E}`,!1,!1)}),[m,E]),C=(0,o.useCallback)((e=>{n(e)}),[n]);(0,o.useEffect)((()=>{t.length&&!p&&C(t)}),[t,p,C]),(0,o.useEffect)(f,[]),(0,c.Z)(b,2e3);const v=!!t.length,k=v?"jetpack-external-media-wrapper__jetpack_app_media-wrapper":"jetpack-external-media-wrapper__jetpack_app_media-wrapper has-no-image-uploaded";return(0,r.createElement)("div",{className:k},(0,r.createElement)(l.EU,null),(0,r.createElement)("h2",{className:"jetpack-external-media-wrapper__jetpack_app_media-title"},v&&__("Select images to be added","jetpack"),!v&&__("Upload from your phone","jetpack")),(0,r.createElement)("p",{className:"jetpack-external-media-wrapper__jetpack_app_media-description"},v&&__("Select the images below to add, or continue adding more from your device.","jetpack"),!v&&__("Scan the QR code with your iPhone or Android camera to upload from your photos.","jetpack")),!v&&(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__jetpack_app_media-qr-code-wrapper"},(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__jetpack_app_media-qr-code"},(0,r.createElement)(a.Z,{size:"100",value:`https://apps.wordpress.com/get/?campaign=qr-code-media&postId=${h}#%2Fmedia%2F${g}`})),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__jetpack_app_media-instructions"},(0,r.createElement)("img",{src:`${A}app-image-upload.png`,srcSet:`${A}app-image-upload.png 1x, ${A}app-image-upload-2x.png 2x`,alt:""}))),v&&(0,r.createElement)(u.Z,{key:"jetpack-app-media",className:"jetpack-external-media-browser__jetpack_app_media_browser",media:t,isCopying:d,isLoading:!1,nextPage:f,onCopy:C,pageHandle:!1,multiple:p,selectButtonText:e=>e?(0,i.sprintf)(/* translators: %1$d is the number of images that were selected. */ | |
| 198 | -_n("Add %1$d image","Add %1$d images",e,"jetpack"),e):__("Add images","jetpack")}))}))},41214:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(92819),l=n(20982),c=n(11583),u=n(29755),d=n(47285),p=n(97893);const __=o.__;const m=(0,p.Z)(u.Y.Openverse)((function(e){const{media:t,isCopying:n,isLoading:o,pageHandle:u,multiple:p,copyMedia:m,getMedia:g}=e,[A,h]=(0,s.useState)((0,i.sample)(l.h9)),[E,f]=(0,s.useState)(""),b=(0,s.useCallback)((e=>{m(e,(0,d.k)("copy",l.Eh),l.Eh)}),[m]),C=(0,s.useCallback)(((e,t=!1)=>{A&&g((0,d.k)("list",l.Eh,{number:20,search:A}),t)}),[g,A]),v=(0,s.useRef)(),k=(0,s.useCallback)((e=>{e.preventDefault(),f(A),C(e,!0),v.current=A}),[C,A]);(0,s.useEffect)(C,[]);const B=(0,s.useRef)(null);return(0,s.useEffect)((()=>{if(!B?.current)return;const e=B.current.querySelector("input[type='search']");e&&(e.focus(),e.select())}),[]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__openverse"},(0,r.createElement)("form",{ref:B,className:"jetpack-external-media-header__openverse",onSubmit:k},(0,r.createElement)(a.TextControl,{"aria-label":__("Search","jetpack"),type:"search",value:A,onChange:h,disabled:!!n}),(0,r.createElement)(a.Button,{isPrimary:!0,onClick:k,type:"submit",disabled:!A.length||A===v.current||n},__("Search","jetpack"))),(0,r.createElement)(c.Z,{key:E,className:"jetpack-external-media-browser__openverse",media:t,isCopying:n,isLoading:o,nextPage:C,onCopy:b,pageHandle:u,multiple:p}))}))},12533:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(92819),l=n(20982),c=n(11583),u=n(29755),d=n(47285),p=n(97893);const __=o.__;const m=(0,p.Z)(u.Y.Pexels)((function(e){const{media:t,isCopying:n,isLoading:o,pageHandle:u,multiple:p,copyMedia:m,getMedia:g}=e,[A,h]=(0,s.useState)((0,i.sample)(l.h9)),[E,f]=(0,s.useState)(""),b=(0,s.useCallback)((e=>{m(e,(0,d.k)("copy",l.wk),l.wk)}),[m]),C=(0,s.useCallback)(((e,t=!1)=>{A&&g((0,d.k)("list",l.wk,{number:20,path:"recent",search:A}),t)}),[g,A]),v=(0,s.useRef)(),k=(0,s.useCallback)((e=>{e.preventDefault(),f(A),C(e,!0),v.current=A}),[C,A]);(0,s.useEffect)(C,[]);const B=(0,s.useRef)(null);return(0,s.useEffect)((()=>{if(!B.current)return;const e=Array.from(B.current.elements).find((e=>"search"===e.type));e&&(e.focus(),e.select())}),[]),(0,r.createElement)("div",{className:"jetpack-external-media-wrapper__pexels"},(0,r.createElement)("form",{ref:B,className:"jetpack-external-media-header__pexels",onSubmit:k},(0,r.createElement)(a.TextControl,{"aria-label":__("Search","jetpack"),type:"search",value:A,onChange:h,disabled:!!n}),(0,r.createElement)(a.Button,{variant:"primary",onClick:k,type:"submit",disabled:!A.length||A===v.current||n},__("Search","jetpack"))),(0,r.createElement)(c.Z,{key:E,className:"jetpack-external-media-browser__pexels",media:t,isCopying:n,isLoading:o,nextPage:C,onCopy:b,pageHandle:u,multiple:p}))}))},97893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(51806),a=n(86989),s=n.n(a),o=n(55609),i=n(94333),l=n(9818),c=n(69307),u=n(65736),d=n(39630),p=n(65235),m=n.n(p),g=n(92819),A=n(20982),h=n(1285),E=n(29755);const __=u.__;function f(e=E.Y.Unknown){return(0,i.createHigherOrderComponent)((t=>{class n extends c.Component{constructor(e){super(e),this.defaultAccount={image:"",name:""},this.state={account:this.defaultAccount,media:[],nextHandle:!1,isLoading:!1,isCopying:null,isAuthenticated:!0,path:{ID:A.oI}}}contentRef=e=>{e?(this.contentElement=e,this.modalElement=e.closest(".jetpack-external-media-browser"),this.modalElement&&this.modalElement.addEventListener("keydown",this.stopArrowKeysPropagation)):this.modalElement&&(this.modalElement.removeEventListener("keydown",this.stopArrowKeysPropagation),this.modalElement=null,this.contentElement=null)};stopArrowKeysPropagation=e=>{[d.UP,d.DOWN,d.LEFT,d.RIGHT].includes(e.keyCode)&&!e.target.classList.contains("jetpack-external-media-browser__media__item")&&e.stopPropagation()};setAuthenticated=t=>{this.setState({isAuthenticated:t}),(0,h.uk)(e,t)};mergeMedia(e,t){return(0,g.uniqBy)(e.concat(t),"ID")}getRequestUrl(e){const{nextHandle:t}=this.state;return t?e+"&page_handle="+encodeURIComponent(t):e}getMedia=(e,t=!1,n=!0)=>{this.state.isLoading||(t&&this.props.noticeOperations.removeAllNotices(),this.setState({account:t?this.defaultAccount:this.state.account,isLoading:n,media:t?[]:this.state.media,nextHandle:!t&&this.state.nextHandle},(()=>this.getMediaRequest(e))))};handleApiError=e=>{if("authorization_required"===e.code)return this.setAuthenticated(!1),void this.setState({isLoading:!1,isCopying:!1});e.errors?.length&&(e={code:e.errors[0].error,message:e.errors[0].message});const{noticeOperations:t}=this.props;t.removeAllNotices(),t.createErrorNotice("internal_server_error"===e.code?"Internal server error":e.message),this.setState({isLoading:!1,isCopying:!1})};getMediaRequest=e=>{const{nextHandle:t,media:n}=this.state;if(!1===t&&n.length>0)return void this.setState({isLoading:!1});const r=this.getRequestUrl(e);s()({path:r,method:"GET",parse:void 0===window.wpcomFetch}).then((e=>{this.setState({account:e.meta.account,media:this.mergeMedia(n,e.media),nextHandle:e.meta.next_page,isLoading:!1}),this.setAuthenticated(!0)})).catch(this.handleApiError)};copyMedia=(e,t,n)=>{this.setState({isCopying:e}),this.props.noticeOperations.removeAllNotices(),this.modalElement&&this.modalElement.focus(),s()({path:t,method:"POST",data:{external_ids:e.map((e=>e.guid)),media:e.map((e=>({guid:e.guid,caption:e.caption,title:e.title}))),service:n,post_id:this.props.postId}}).then((e=>{e.media&&(e=e.media.map((e=>({alt:e.alt,caption:e.caption,id:e.ID,type:"image",url:e.URL}))));const{value:t,addToGallery:n,multiple:r}=this.props,a=r?e:e[0],s=e.find((e=>e.errors));if(s){const{errors:e}=s,t=Object.keys(e)[0];this.handleApiError({code:t,message:e[t]})}else this.props.onClose(),this.props.onSelect(n?t.concat(e):a)})).catch(this.handleApiError)};mapImageToResult=e=>({alt:e.name,caption:e.caption,id:e.ID,type:"image",url:e.url,sizes:{thumbnail:{url:e.thumbnails.thumbnail},large:{url:e.thumbnails.large}}});insertMedia=e=>{this.setState({isCopying:e}),this.props.noticeOperations.removeAllNotices(),this.modalElement&&this.modalElement.focus();let t=[];t=0!==e.length?e.map(this.mapImageToResult):[this.mapImageToResult(e)];const{value:n,multiple:r,addToGallery:a}=this.props,s=r?t:t[0];this.props.onClose(),this.props.onSelect(a?n.concat(t):s)};onChangePath=(e,t)=>{this.setState({path:e},t)};render(){const{account:n,isAuthenticated:a,isCopying:s,isLoading:i,media:l,nextHandle:c,path:u}=this.state,{allowedTypes:d,multiple:p=!1,noticeUI:g,onClose:A}=this.props,h="jetpack_app_media"!==e?__("Select media","jetpack"):"",E=s?__("Inserting media","jetpack"):h,f=s?__("When the media is finished copying and inserting, you will be returned to the editor.","jetpack"):__("Select the media you would like to insert into the editor.","jetpack",0),b="jetpack-external-media-browser__description",C=m()({"jetpack-external-media-browser":!0,"jetpack-external-media-browser--is-copying":s,"is-jetpack-app-media":"jetpack_app_media"===e});return(0,r.createElement)(o.Modal,{onRequestClose:A,title:E,aria:{describedby:b},className:C},(0,r.createElement)("div",{ref:this.contentRef},g,(0,r.createElement)("p",{id:b,className:"jetpack-external-media-browser--visually-hidden"},f),(0,r.createElement)(t,{account:n,getMedia:this.getMedia,copyMedia:this.copyMedia,insertMedia:this.insertMedia,isCopying:s,isLoading:i,media:l,pageHandle:c,allowedTypes:d,isAuthenticated:a,setAuthenticated:this.setAuthenticated,multiple:p,path:u,onChangePath:this.onChangePath})))}}return(0,l.withSelect)((e=>{const t=e("core/editor").getCurrentPost();return{postId:("number"==typeof t?.id?t.id:t?.wp_id)??0}}))((0,o.withNotices)(n))}))}},42232:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,Z:()=>a});const r="SET_AUTHENTICATED",a={setAuthenticated:(e,t)=>({type:r,payload:{isAuthenticated:t,mediaSource:e}})}},94841:(e,t,n)=>{"use strict";n.d(t,{h:()=>l});var r=n(9818),a=n(42232),s=n(57805),o=n(38972);const i={actions:a.Z,reducer:s.Z,selectors:o.Z},l=(0,r.createReduxStore)("jetpack-media",i);(0,r.register)(l)},57805:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(42232),a=n(2790);const s=(e=a.F,t)=>t.type===r.A?{...e,mediaSourceIsAuthenticated:e.mediaSourceIsAuthenticated.set(t.payload.mediaSource,t.payload.isAuthenticated)}:e},38972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={isAuthenticated:(e,t)=>e.mediaSourceIsAuthenticated.get(t)??!1}},2790:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(29755);const a={mediaSourceIsAuthenticated:new Map([[r.Y.Pexels,!1],[r.Y.GooglePhotos,!1],[r.Y.Openverse,!1],[r.Y.Unknown,!1]])}},11317:(e,t,n)=>{"use strict";n.d(t,{Qu:()=>o});var r=n(13419),a=n(92819);function s(){return(0,a.get)((0,r.Pb)(),["allowedMimeTypes"],[])}function o(e,t){if(!e||!t)return!1;if(!s())return!1;const n=(r=t)?(0,a.pickBy)(s(),(e=>(0,a.startsWith)(e,`${r}/`))):{};var r;const o=(i=n)?(0,a.flatten)((0,a.map)((0,a.keys)(i),(e=>e.split("|")))):[];var i;if("string"==typeof e){const t=e.split(".").pop();return t&&o.includes(t)}return"object"==typeof e&&(e.type&&(0,a.values)(n).includes(e.type))}},5820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4981);function a(...e){const t=(0,r.getCategories)();for(const n of e)if(t.some((({slug:e})=>e===n)))return n;throw new Error(`Could not find a category from the provided list: ${e.join(",")}`)}},74251:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(96483);function a(e,t){if(!(0,r.isURL)(t))return null;let n=t;try{const a=(0,r.getQueryArg)(t,"state"),s=JSON.parse(atob(a));if(e)s.from_editor_post_id=e;else{const e=new URLSearchParams(window.location.search);s.from_site_editor_post_id=e.get("postId"),s.from_site_editor_post_type=e.get("postType")}n=(0,r.addQueryArgs)(t,{state:btoa(JSON.stringify(s))})}catch(e){0}return n}},99307:(e,t,n)=>{"use strict";n.d(t,{BM:()=>i,CG:()=>s,fH:()=>a,j3:()=>l,yn:()=>o});var r=n(9818);const a="site",s="widget",o="post",i="customizer",l=()=>(0,r.select)("core/edit-site")?a:(0,r.select)("core/edit-widgets")?s:(0,r.select)("core/customize-widgets")?i:(0,r.select)("core/edit-navigation")?"navigation":(0,r.select)("core/edit-post")?o:"unknown"},4554:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var r=n(92819);const a=(e,t)=>(0,r.reduce)(t,((t,n,r)=>{if(void 0===e[r])return t;const{type:a,validator:s,validValues:o,default:i}=e[r];return t[r]="boolean"===a?"false"!==n&&!!n:s?s(n)?n:i:o?o.includes(n)?n:i:n,t}),{})},59809:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(82674),a=n.n(r),s=n(51806),o=n(65235),i=n.n(o),l=n(73139);const c=({children:e=null,isError:t=!1,...n})=>{const r=i()("help-message",{"help-message-is-error":t});return e&&(0,s.createElement)("div",a()({className:r},n),t&&(0,s.createElement)(l.Z,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),(0,s.createElement)("span",null,e))}},81427:(e,t,n)=>{"use strict";n.d(t,{Ae:()=>C,EL:()=>E,EU:()=>f,FG:()=>m,He:()=>p,IM:()=>h,JO:()=>A,Pw:()=>k,Vq:()=>w,h:()=>v,ll:()=>B,o1:()=>y,yk:()=>g,yu:()=>_,zf:()=>b});var r=n(82674),a=n.n(r),s=n(51806),o=n(80550),i=n(55609),l=n(65235),c=n.n(l),u=n(70355);const d=o.O["Jetpack Green 40"],p=e=>(0,s.createElement)(i.SVG,a()({height:"24",width:"24",viewBox:"1.2 10.8 169.6 169.6",xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)(i.Path,{d:"m43.6 49.4c23.4 0 42.4 19 42.4 42.4v3.9h-80.9c-2.1 0-3.8-1.7-3.9-3.9 0-23.4 19-42.4 42.4-42.4z",fill:"#f6bc04"}),(0,s.createElement)(i.Path,{d:"m132.2 53.2c0 23.4-19 42.4-42.4 42.4h-3.8v-80.9c0-2.1 1.7-3.9 3.8-3.9 23.5 0 42.4 19 42.4 42.4z",fill:"#ea4335"}),(0,s.createElement)(i.Path,{d:"m128.4 141.9c-23.4 0-42.4-19-42.4-42.4v-3.9h80.9c2.1 0 3.9 1.7 3.9 3.8 0 23.5-19 42.5-42.4 42.5z",fill:"#4285f4"}),(0,s.createElement)(i.Path,{d:"m39.8 138c0-23.4 19-42.4 42.4-42.4h3.8v80.9c0 2.1-1.7 3.8-3.9 3.9-23.4 0-42.3-19-42.3-42.4z",fill:"#34a853"})),m=e=>(0,s.createElement)(i.SVG,a()({style:{fill:"#30272e",background:"#ffe033",padding:"3px",width:"22px",height:"24px"},width:"46",height:"42",viewBox:"0 0 46 42",xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)(i.G,null,(0,s.createElement)(i.Path,{d:"M0 9.3975C0 14.5687 4.1722 18.795 9.3353 18.795V0C4.1722 0 0 4.2 0 9.3975Z"}),(0,s.createElement)(i.Path,{d:"M13.6118 9.3975C13.6118 14.5687 17.784 18.795 22.9471 18.795V0C17.8101 0 13.6118 4.2 13.6118 9.3975Z"}),(0,s.createElement)(i.Path,{d:"M36.5589 18.795C41.7147 18.795 45.8942 14.5876 45.8942 9.3975C45.8942 4.2074 41.7147 0 36.5589 0C31.4032 0 27.2236 4.2074 27.2236 9.3975C27.2236 14.5876 31.4032 18.795 36.5589 18.795Z"}),(0,s.createElement)(i.Path,{d:"M0 32.6025C0 37.8 4.1722 42 9.3353 42V23.2312C4.1722 23.2312 0 27.4312 0 32.6025Z"}),(0,s.createElement)(i.Path,{d:"M13.6118 32.5238C13.6118 37.695 17.784 41.9213 22.9471 41.9213V23.1525C17.8101 23.1525 13.6118 27.3525 13.6118 32.5238Z"}),(0,s.createElement)(i.Path,{d:"M36.5589 41.9212C41.7147 41.9212 45.8942 37.7138 45.8942 32.5238C45.8942 27.3337 41.7147 23.1263 36.5589 23.1263C31.4032 23.1263 27.2236 27.3337 27.2236 32.5238C27.2236 37.7138 31.4032 41.9212 36.5589 41.9212Z"}))),g=e=>(0,s.createElement)(i.SVG,a()({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),(0,s.createElement)(i.Path,{d:"M14 7H9v10h3.9v-3.8H14c1.7 0 3.1-1.4 3.1-3.1C17.2 8.4 15.8 7 14 7z"}),(0,s.createElement)(i.Path,{d:"M20.5 2h-17C2.7 2 2 2.7 2 3.5v17c0 .8.7 1.5 1.5 1.5h17c.8 0 1.5-.7 1.5-1.5v-17c0-.8-.7-1.5-1.5-1.5zm-5.6 13.2V19H7V5h7c2.8 0 5.1 2.3 5.1 5.1.1 2.5-1.8 4.7-4.2 5.1z"})),A=()=>{const e="#757575";return(0,s.createElement)(i.SVG,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/SVG",x:"0px",y:"0px",viewBox:"0 0 1292 448",style:{enableBackground:"new 0 0 1292 448"}},(0,s.createElement)(i.G,{id:"Icon"},(0,s.createElement)(i.Path,{class:"st0",fill:"#F6B704",d:"M171.6,177.4c23.4,0,42.4,19,42.4,42.4v3.9h-80.9c-2.1,0-3.8-1.7-3.9-3.9C129.2,196.4,148.2,177.4,171.6,177.4 C171.6,177.4,171.6,177.4,171.6,177.4z"}),(0,s.createElement)(i.Path,{class:"st1",fill:"#E54335",d:"M260.2,181.2c0,23.4-19,42.4-42.4,42.4H214v-80.9c0-2.1,1.7-3.9,3.8-3.9h0 C241.3,138.8,260.2,157.8,260.2,181.2C260.2,181.2,260.2,181.2,260.2,181.2z"}),(0,s.createElement)(i.Path,{class:"st2",fill:"#4280EF",d:"M256.4,269.9c-23.4,0-42.4-19-42.4-42.4v-3.9h80.9c2.1,0,3.9,1.7,3.9,3.8v0 C298.8,250.9,279.8,269.9,256.4,269.9C256.4,269.9,256.4,269.9,256.4,269.9z"}),(0,s.createElement)(i.Path,{class:"st3",fill:"#34A353",d:"M167.8,266c0-23.4,19-42.4,42.4-42.4c0,0,0,0,0,0h3.9v80.9c0,2.1-1.7,3.8-3.9,3.9 C186.7,308.4,167.8,289.4,167.8,266z"})),(0,s.createElement)(i.G,{id:"Photos"},(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M796,272v-91.6h31.2c15.2,0,28.7,11.3,28.7,27.3s-13.4,27.3-28.7,27.3h-19.4V272H796z M827.5,223.6 c8.8,0,16-7.2,16-16s-7.2-16-16-16h-19.7v32H827.5z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M875.8,209.3l-0.5,8.7h0.5c3.3-5.8,11.3-10.8,19.8-10.8c16,0,23.9,10.9,23.9,26.4V272h-11.8v-36.6 c0-13-6.5-17.4-15.5-17.4c-10.2,0-16.5,9.7-16.5,19.3V272H864v-91.6h11.8V209.3z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M993.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4S993.8,221.6,993.8,240.6z M982,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S982,255,982,240.6L982,240.6z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M1008,252.9V220h-11v-10.7h11v-19.2h11.8v19.2h15.3V220h-15.3v32c0,7,2.9,10.2,8.4,10.2c1.8,0.1,3.7-0.3,5.4-1 l4.1,10.1c-3,1.2-6.2,1.8-9.5,1.7C1015,273,1008,265.7,1008,252.9z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M1105.8,240.6c0,19.1-13.4,33.4-32.2,33.4s-32.2-14.3-32.2-33.4s13.4-33.4,32.2-33.4 S1105.8,221.6,1105.8,240.6z M1094,240.6c0-14.3-10-22.6-20.5-22.6s-20.5,8.3-20.5,22.6s10,22.7,20.5,22.7S1094,255,1094,240.6 L1094,240.6z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M1111,256.1l10.5-4.4c3.3,7.9,9.5,11.8,17,11.8c7.3,0,12.5-3.6,12.5-8.8c0-3.2-1.9-6.6-8.6-8.3l-12.7-3.1 c-5.8-1.4-16.8-6.4-16.8-17.4c0-11.4,11.8-18.7,24.8-18.7c10.9,0,20.3,5,24.2,14.6l-10.2,4.2c-2.4-5.9-8.2-8.3-14.3-8.3 c-6.7,0-12.4,3-12.4,8.1c0,4,3.3,6.1,8.3,7.3l12.4,2.9c12.4,2.9,17.3,10.6,17.3,18.3c0,11.1-10,19.7-24.7,19.7 C1123.2,274,1114.7,265.1,1111,256.1z"})),(0,s.createElement)(i.G,{id:"Google"},(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M348.7,221.6c0-28.9,24.3-52.5,53.2-52.5c13.5-0.2,26.4,5,36,14.5l-10.1,10.1c-6.9-6.7-16.2-10.4-25.9-10.2 c-21.1,0-37.6,17-37.6,38.2s16.5,38.1,37.6,38.1c13.7,0,21.5-5.5,26.5-10.5c4.1-4.1,6.8-10,7.8-18H402v-14.4h48.3 c0.5,3,0.8,6,0.8,9c0,10.8-2.9,24.1-12.4,33.5c-9.2,9.6-21,14.7-36.6,14.7C373,274,348.7,250.5,348.7,221.6z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M490,206.5c-18.7,0-33.9,14.2-33.9,33.8S471.3,274,490,274s33.9-14.3,33.9-33.8S508.7,206.5,490,206.5z M490,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S500.2,260.7,490,260.7z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M564,206.5c-18.7,0-33.9,14.2-33.9,33.8S545.3,274,564,274s33.9-14.3,33.9-33.8S582.7,206.5,564,206.5z M564,260.7c-10.2,0-19.1-8.4-19.1-20.5s8.8-20.5,19.1-20.5s19.1,8.3,19.1,20.5S574.2,260.7,564,260.7z"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M654.8,208.5v5.5h-0.5c-3.3-4-9.7-7.6-17.8-7.6c-16.9,0-32.4,14.9-32.4,33.9s15.5,33.7,32.4,33.7 c8.1,0,14.5-3.6,17.8-7.7h0.5v4.9c0,12.9-6.9,19.8-18,19.8c-9.1,0-14.7-6.5-17-12l-12.9,5.4c5,12.1,16.8,20.1,30,20 c17.4,0,32.1-10.2,32.1-35.2v-60.7H654.8z M637.8,260.7c-10.2,0-18.8-8.6-18.8-20.4s8.6-20.6,18.8-20.6s18,8.7,18,20.6 S647.9,260.7,637.8,260.7L637.8,260.7z"}),(0,s.createElement)(i.Rect,{x:"679.2",y:"172.7",class:"st4",fill:e,width:"14.8",height:"99.3"}),(0,s.createElement)(i.Path,{class:"st4",fill:e,d:"M734.7,260.7c-7.6,0-12.9-3.5-16.4-10.2l45.2-18.7L762,228c-2.8-7.6-11.4-21.5-28.9-21.5s-31.9,13.7-31.9,33.8 c0,19,14.3,33.8,33.5,33.8c11.3,0.1,21.9-5.6,28.2-15l-11.5-7.7C747.5,257,742.3,260.7,734.7,260.7z M733.6,219.5 c5.9,0,10.9,2.9,12.5,7.2l-30.2,12.5C715.5,226.2,726,219.5,733.6,219.5L733.6,219.5z"})))},h=({size:e=24,border:t=0,className:n,color:r=d})=>{const a=t?-t/e*32:0;return(0,s.createElement)(i.SVG,{className:c()("jetpack-logo",n),width:e,height:e,viewBox:`${a} ${a} ${32-2*a} ${32-2*a}`},(0,s.createElement)(i.Path,{className:"jetpack-logo__icon-circle",fill:r,stroke:t?"#fff":"transparent",strokeWidth:t,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),(0,s.createElement)(i.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`15,19 ${7-.5*a},19 15,${3-a}`}),(0,s.createElement)(i.Polygon,{className:"jetpack-logo__icon-triangle",fill:"#fff",points:`17,${29+a} 17,13 ${25+.5*a},13`}))},E=e=>(0,s.createElement)(i.SVG,a()({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)(i.Rect,{width:"24",height:"24",rx:"5",fill:"#069E08"}),(0,s.createElement)(i.G,{clipPath:"url(#clip0_2_1297)"},(0,s.createElement)(i.Path,{d:"M11.9829 3C7.02857 3 3 7.02857 3 11.9829C3 16.9371 7.02857 20.9657 11.9829 20.9657C16.9371 20.9657 20.9657 16.9371 20.9657 11.9829C20.9657 7.02857 16.9371 3 11.9829 3ZM11.52 13.4743H7.04571L11.52 4.76571V13.4743ZM12.4286 19.1829V10.4743H16.9029L12.4286 19.1829Z",fill:"white"}))),f=()=>(0,s.createElement)(i.SVG,{width:"104",height:"59",viewBox:"0 0 104 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jetpack-app-icon"},(0,s.createElement)(i.Path,{d:"M55 29.5C55 14.3475 42.6525 2 27.5 2C12.32 2 0 14.3475 0 29.5C0 44.68 12.32 57 27.5 57C42.6525 57 55 44.68 55 29.5ZM21.395 44.2675L12.0175 19.105C13.53 19.05 15.235 18.885 15.235 18.885C16.61 18.72 16.445 15.7775 15.07 15.8325C15.07 15.8325 11.0825 16.135 8.5525 16.135C8.0575 16.135 7.535 16.135 6.9575 16.1075C11.33 9.3975 18.8925 5.0525 27.5 5.0525C33.9075 5.0525 39.7375 7.445 44.1375 11.4875C42.2675 11.185 39.6 12.56 39.6 15.8325C39.6 17.8675 40.8375 19.5725 42.075 21.6075C43.0375 23.285 43.5875 25.3475 43.5875 28.3725C43.5875 32.47 39.7375 42.1225 39.7375 42.1225L31.405 19.105C32.89 19.05 33.66 18.6375 33.66 18.6375C35.035 18.5 34.87 15.2 33.495 15.2825C33.495 15.2825 29.535 15.6125 26.95 15.6125C24.5575 15.6125 20.5425 15.2825 20.5425 15.2825C19.1675 15.2 19.0025 18.5825 20.3775 18.6375L22.9075 18.8575L26.3725 28.235L21.395 44.2675ZM47.8775 29.5C48.5375 27.74 49.9125 24.3575 49.06 17.8125C50.985 21.36 51.9475 25.265 51.9475 29.5C51.9475 38.5475 47.19 46.66 39.8475 50.895C42.515 43.7725 45.1825 36.595 47.8775 29.5ZM16.775 51.7475C8.58 47.7875 3.0525 39.2075 3.0525 29.5C3.0525 25.925 3.685 22.68 5.0325 19.6275C8.9375 30.325 12.8425 41.05 16.775 51.7475ZM27.8575 33.515L34.9525 52.71C32.5875 53.5075 30.1125 53.9475 27.5 53.9475C25.3275 53.9475 23.1825 53.645 21.2025 53.04C23.43 46.495 25.6575 40.005 27.8575 33.515Z",fill:"#0675C4"}),(0,s.createElement)(i.Rect,{x:"46",y:"1",width:"57",height:"57",rx:"28.5",fill:"white"}),(0,s.createElement)(i.Path,{d:"M74.5 2C59.3497 2 47 14.316 47 29.5C47 44.6841 59.316 57 74.5 57C89.6841 57 102 44.6841 102 29.5C102 14.316 89.6841 2 74.5 2ZM73.0828 34.0552H59.3834L73.0828 7.39877V34.0552ZM75.8834 51.5337V24.8773H89.5491L75.8834 51.5337Z",fill:"#069E08"}),(0,s.createElement)(i.Rect,{x:"46",y:"1",width:"57",height:"57",rx:"28.5",stroke:"white",strokeWidth:"2"})),b={foreground:(0,u.m)(),src:(0,s.createElement)(i.SVG,{viewBox:"0 0 100 100"},(0,s.createElement)(i.Path,{d:"M100,44H72.4l23.9-13.8l-6-10.4L66.4,33.6L80.2,9.7l-10.4-6L56,27.59V0H44v27.6L30.2,3.7l-10.4,6l13.8,23.9 L9.7,19.8l-6,10.4L27.6,44H0V56h27.6L3.7,69.8l6,10.4l23.9-13.8L19.8,90.3l10.4,6L44,72.4V100H56V72.41l13.8,23.9l10.4-6L66.4,66.4 l23.9,13.8l6-10.4L72.4,56H100V44z M50,65.23c-8.41,0-15.23-6.82-15.23-15.23c0-8.41,6.82-15.23,15.23-15.23S65.23,41.59,65.23,50 C65.23,58.41,58.41,65.23,50,65.23z"}))},C={foreground:(0,u.m)(),src:(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20.7 17",xmlSpace:"preserve"},(0,s.createElement)(i.Path,{d:"m20.7 12.9-.9-11c0-.5-.2-.9-.5-1.3-.3-.3-.8-.5-1.3-.5L1.9 0h-.1c-.2 0-.5 0-.7.1C.9.2.7.4.5.5.4.7.2.9.1 1.1c-.1.2-.1.5-.1.7v.1l.9 13.4c0 .5.2.9.5 1.3.3.2.8.4 1.3.4H3l16.1-2c.4 0 .9-.3 1.1-.6.3-.3.5-.8.5-1.2v-.3zm-3.1.8L4.2 15.3H4c-.4 0-.8-.1-1-.4-.3-.3-.4-.6-.5-1L1.7 3.2v-.1c0-.4.2-.8.5-1 .3-.3.7-.4 1-.4h.1l13.5.1c.4 0 .8.1 1 .4.3.3.4.6.5 1L19 12v.3c0 .4-.2.7-.4 1-.3.2-.6.4-1 .4z"}))},v={foreground:(0,u.m)(),src:(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 43 43",xmlSpace:"preserve"},(0,s.createElement)(i.Path,{transform:"translate(-25)",fillRule:"evenodd",d:"M37 31.908c0 1.376.893 2.268 2.27 2.268H45.9c3.956 0 7.192-1.337 9.392-3.68H37v1.412zM45.901 9H39.27C37.893 9 37 9.893 37 11.269v1.411h18.294C53.093 10.338 49.857 9 45.9 9zm5.787 16.176c0 1.113.726 1.835 1.845 1.835h3.973c.45-1.117.753-2.345.894-3.671h-4.867c-1.119 0-1.845.722-1.845 1.836zm-5.507-7.166c0 1.113.725 1.836 1.844 1.836H58.4a13.644 13.644 0 00-.894-3.672h-9.481c-1.119 0-1.844.723-1.844 1.836zm1.843 7.166c0-1.114-.726-1.836-1.845-1.836H37v3.671h9.18c1.118 0 1.843-.722 1.843-1.835zm-5.508-7.166c0-1.113-.726-1.836-1.844-1.836H37v3.672h3.672c1.118 0 1.844-.723 1.844-1.836zM83.667 21.209c.296-1.437",clipRule:"evenodd"}))},k=((0,u.m)(),(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,s.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,s.createElement)(i.G,null,(0,s.createElement)(i.Path,{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"}))),(0,u.m)(),(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,s.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,s.createElement)(i.G,null,(0,s.createElement)(i.Path,{d:"M15.9216 2H2.98533C2.43803 2 1.99023 2.45 1.99023 3V17L5.97062 13H15.9216C16.4689 13 16.9167 12.55 16.9167 12V3C16.9167 2.45 16.4689 2 15.9216 2ZM14.9265 4V11H5.14469L3.98043 12.17V4H14.9265ZM18.9069 6H20.8971C21.4444 6 21.8922 6.45 21.8922 7V22L17.9118 18H6.96572C6.41842 18 5.97062 17.55 5.97062 17V15H18.9069V6Z"}))),(0,u.m)(),(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,s.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,s.createElement)(i.G,null,(0,s.createElement)(i.Path,{d:"M3.98042 2H19.9019C20.9965 2 21.8921 2.9 21.8921 4V16C21.8921 17.1 20.9965 18 19.9019 18H5.97061L1.99023 22V4C1.99023 2.9 2.88582 2 3.98042 2ZM5.97061 16H19.9019V4H3.98042V18L5.97061 16Z"}))),(0,u.m)(),(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,s.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,s.createElement)(i.G,null,(0,s.createElement)(i.Path,{d:"M11.1114 8H20.0002M11.1113 15H20.0002",stroke:(0,u.m)(),strokeWidth:"1.5"}),(0,s.createElement)(i.Path,{d:"M4 10V6L8 8L4 10Z",fill:(0,u.m)()}),(0,s.createElement)(i.Path,{d:"M4 17V13L8 15L4 17Z",fill:(0,u.m)()}))),(0,u.m)(),(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,s.createElement)(i.Rect,{x:"0",fill:"none",width:"24",height:"24"}),(0,s.createElement)(i.G,null,(0,s.createElement)(i.Path,{d:"M4 12V4L11 8L4 12Z"}),(0,s.createElement)(i.Path,{d:"M4 14.5H20V16H4V14.5Z"}),(0,s.createElement)(i.Path,{d:"M4 18.5H13V20H4V18.5Z"}))),(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M2.5 7.5V4.5H15.5V7.5H10.5V19.5H7.5V7.5H2.5ZM12.5 9.5H21.5V12.5H18.5V19.5H15.5V12.5H12.5V9.5Z"})),(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M12.7049 2V6C8.30658 6 4.74414 9.58 4.74414 14C4.74414 18.42 8.30658 22 12.7049 22C17.1032 22 20.6656 18.42 20.6656 14H18.6755C18.6755 17.31 15.9987 20 12.7049 20C9.41113 20 6.73433 17.31 6.73433 14C6.73433 10.69 9.41113 8 12.7049 8V12L17.6804 7L12.7049 2ZM11.6501 12.73L11.4013 14.9L12.068 15.06C12.0753 15.0526 12.0827 15.0447 12.0901 15.0366C12.1131 15.0116 12.1375 14.9851 12.1675 14.97C12.1874 14.96 12.2073 14.9475 12.2272 14.935C12.2471 14.9225 12.2671 14.91 12.287 14.9C12.3268 14.88 12.3865 14.86 12.4362 14.85C12.486 14.84 12.5556 14.83 12.6352 14.83C12.7447 14.83 12.8542 14.85 12.9338 14.88C13.0134 14.91 13.083 14.96 13.1427 15.03C13.2024 15.1 13.2422 15.17 13.2721 15.27C13.302 15.37 13.3119 15.47 13.3119 15.58V15.58C13.3119 15.69 13.3119 15.79 13.2821 15.89C13.2522 15.99 13.2124 16.07 13.1726 16.14C13.1328 16.21 13.0631 16.27 12.9935 16.31C12.9238 16.35 12.8343 16.37 12.7248 16.37C12.5556 16.37 12.4163 16.31 12.3069 16.22C12.1974 16.13 12.1377 15.99 12.1178 15.81H11.2819C11.2819 16.01 11.3317 16.19 11.4113 16.34C11.4909 16.49 11.5904 16.63 11.7297 16.73C11.869 16.83 12.0183 16.92 12.1874 16.97C12.3566 17.02 12.5357 17.05 12.7148 17.05C12.9636 17.05 13.1726 17 13.3517 16.93C13.5308 16.86 13.6801 16.75 13.7995 16.62C13.9189 16.49 14.0085 16.34 14.0682 16.17C14.1279 16 14.1577 15.82 14.1577 15.63C14.1577 15.41 14.1179 15.21 14.0682 15.03C14.0184 14.85 13.9289 14.7 13.8194 14.58C13.7099 14.46 13.5706 14.37 13.4114 14.3C13.2522 14.23 13.0731 14.2 12.8641 14.2C12.7945 14.2 12.7248 14.21 12.6651 14.22C12.6352 14.225 12.6054 14.2325 12.5755 14.24C12.5457 14.2475 12.5158 14.255 12.486 14.26C12.4263 14.27 12.3765 14.29 12.3367 14.31C12.3201 14.3183 12.3035 14.325 12.2876 14.3313C12.2654 14.3401 12.2446 14.3483 12.2272 14.36L12.3367 13.44H14.0284V12.73H11.6501Z"})),(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M11.9412 2V6C16.3395 6 19.902 9.58 19.902 14C19.902 18.42 16.3395 22 11.9412 22C7.54291 22 3.98047 18.42 3.98047 14H5.97066C5.97066 17.31 8.64746 20 11.9412 20C15.235 20 17.9118 17.31 17.9118 14C17.9118 10.69 15.235 8 11.9412 8V12L6.96575 7L11.9412 2ZM10.8864 12.73L10.6376 14.9L11.3044 15.06C11.3117 15.0526 11.319 15.0447 11.3264 15.0366C11.3494 15.0116 11.3738 14.9851 11.4039 14.97C11.4238 14.96 11.4437 14.9475 11.4636 14.935C11.4835 14.9225 11.5034 14.91 11.5233 14.9C11.5631 14.88 11.6228 14.86 11.6725 14.85C11.7223 14.84 11.792 14.83 11.8716 14.83C11.981 14.83 12.0905 14.85 12.1701 14.88C12.2497 14.91 12.3194 14.96 12.3791 15.03C12.4388 15.1 12.4786 15.17 12.5084 15.27C12.5383 15.37 12.5482 15.47 12.5482 15.58V15.58C12.5482 15.69 12.5482 15.79 12.5184 15.89C12.4885 15.99 12.4487 16.07 12.4089 16.14C12.3691 16.21 12.2995 16.27 12.2298 16.31C12.1601 16.35 12.0706 16.37 11.9611 16.37C11.792 16.37 11.6526 16.31 11.5432 16.22C11.4337 16.13 11.374 15.99 11.3541 15.81H10.5182C10.5182 16.01 10.568 16.19 10.6476 16.34C10.7272 16.49 10.8267 16.63 10.966 16.73C11.1053 16.83 11.2546 16.92 11.4238 16.97C11.5929 17.02 11.7721 17.05 11.9512 17.05C12.1999 17.05 12.4089 17 12.588 16.93C12.7672 16.86 12.9164 16.75 13.0358 16.62C13.1552 16.49 13.2448 16.34 13.3045 16.17C13.3642 16 13.3941 15.82 13.3941 15.63C13.3941 15.41 13.3543 15.21 13.3045 15.03C13.2547 14.85 13.1652 14.7 13.0557 14.58C12.9463 14.46 12.807 14.37 12.6477 14.3C12.4885 14.23 12.3094 14.2 12.1004 14.2C12.0308 14.2 11.9611 14.21 11.9014 14.22C11.8716 14.225 11.8417 14.2325 11.8119 14.24C11.782 14.2475 11.7522 14.255 11.7223 14.26C11.6626 14.27 11.6128 14.29 11.573 14.31C11.5564 14.3183 11.5398 14.325 11.5239 14.3313C11.5017 14.3401 11.481 14.3483 11.4636 14.36L11.573 13.44H13.2647V12.73H10.8864Z"})),(0,s.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(i.Path,{d:"M0 0h24v24H0z",fill:"none"}),(0,s.createElement)(i.Path,{d:"M7 2v11h3v9l7-12h-4l4-8z",fill:"currentColor"}))),B=(0,s.createElement)(i.SVG,{width:"29",height:"21",viewBox:"0 0 29 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79037 0.59375C4.0363 0.59375 5.13102 1.41658 5.47215 2.60947L8.8452 14.4044C8.8486 14.4164 8.85411 14.4273 8.86124 14.4368L12.8572 0.59375H15.0927H21.2721C25.6033 0.59375 28.5066 3.39892 28.5066 7.64565C28.5066 11.9411 25.5272 14.6196 21.0818 14.6196H18.1499H14.3719L13.6379 16.8813C12.9796 18.9095 11.0827 20.2839 8.94152 20.2839C6.80035 20.2839 4.90341 18.9095 4.24517 16.8813L0.137069 4.22276C-0.444671 2.43022 0.898038 0.59375 2.79037 0.59375ZM15.7374 10.4119H20.0156C21.8718 10.4119 22.9856 9.35018 22.9856 7.64565C22.9856 5.93137 21.8718 4.91839 20.0156 4.91839H17.5202L15.7374 10.4119Z",fill:"#000000"})),y=(0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M4.75725 2.075C4.60279 1.97745 4.41041 1.97489 4.25365 2.06832C4.09689 2.16174 4 2.3367 4 2.52632V21.4737C4 21.6633 4.09689 21.8383 4.25365 21.9317C4.41041 22.0251 4.60279 22.0226 4.75725 21.925L19.7573 12.4513C19.9079 12.3562 20 12.1849 20 12C20 11.8151 19.9079 11.6438 19.7573 11.5487L4.75725 2.075Z",fill:"white"})),w=((0,s.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{fill:"none"}},(0,s.createElement)(i.Path,{d:"M13.9 16.55L13.75 16.75V17V19C13.75 19.1381 13.6381 19.25 13.5 19.25H10.5C10.3619 19.25 10.25 19.1381 10.25 19V17V16.75L10.1 16.55L7.25 12.75V9C7.25 8.86193 7.36193 8.75 7.5 8.75H16.5C16.6381 8.75 16.75 8.86193 16.75 9V12.75L13.9 16.55Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.createElement)("line",{x1:"9.75",y1:"9",x2:"9.75",y2:"4",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.createElement)("line",{x1:"14.25",y1:"9",x2:"14.25",y2:"4",stroke:"currentColor",strokeWidth:"1.5"})),(0,s.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M18 6.75H6C5.30964 6.75 4.75 7.30964 4.75 8V16C4.75 16.6904 5.30964 17.25 6 17.25H18C18.6904 17.25 19.25 16.6904 19.25 16V8C19.25 7.30964 18.6904 6.75 18 6.75Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.createElement)(i.Path,{d:"M5 7L12 13L19 7",stroke:"currentColor",strokeWidth:"1.5"})),(0,s.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7 2.75H6.25V3.5V8.25H5.5C4.25736 8.25 3.25 9.25736 3.25 10.5V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H18C19.2426 20.75 20.25 19.7426 20.25 18.5V10.5C20.25 9.25736 19.2426 8.25 18 8.25H9.5V9.75H18C18.4142 9.75 18.75 10.0858 18.75 10.5V18.5C18.75 18.9142 18.4142 19.25 18 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V10.5C4.75 10.0858 5.08579 9.75 5.5 9.75H6.25V10H7.75V6.5H7.75229H7.75464H7.75699H7.75934H7.76169H7.76405H7.7664H7.76875H7.77111H7.77346H7.77582H7.77817H7.78053H7.78289H7.78524H7.7876H7.78996H7.79232H7.79468H7.79704H7.7994H7.80176H7.80412H7.80648H7.80884H7.8112H7.81357H7.81593H7.81829H7.82065H7.82302H7.82538H7.82774H7.83011H7.83247H7.83484H7.8372H7.83956H7.84193H7.84429H7.84666H7.84902H7.85139H7.85375H7.85612H7.85848H7.86085H7.86322H7.86558H7.86795H7.87031H7.87268H7.87504H7.87741H7.87977H7.88214H7.8845H7.88687H7.88923H7.8916H7.89396H7.89633H7.89869H7.90106H7.90342H7.90578H7.90815H7.91051H7.91287H7.91524H7.9176H7.91996H7.92232H7.92468H7.92704H7.9294H7.93177H7.93412H7.93648H7.93884H7.9412H7.94356H7.94592H7.94828H7.95063H7.95299H7.95535H7.9577H7.96006H7.96241H7.96477H7.96712H7.96947H7.97182H7.97418H7.97653H7.97888H7.98123H7.98358H7.98592H7.98827H7.99062H7.99297H7.99531H7.99766H8H13.5V5.5V5V4.25V4V2.75H7Z",fill:"currentColor"})),(0,s.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6416 9.51049L16.3128 10.701L17.5605 10.1432C17.8568 10.0108 18.1778 9.94237 18.5024 9.94253H18.5032C19.7889 9.94253 20.8543 10.9979 20.8543 12.3265C20.8543 13.655 19.7889 14.7104 18.5032 14.7104C18.3449 14.7104 18.1896 14.6946 18.0348 14.6638L16.9668 14.4513L16.434 15.401C16.2045 15.81 15.7702 16.0783 15.2884 16.0783L15.2855 16.0783C15.0869 16.0787 14.8909 16.0337 14.7125 15.9467L13.2933 15.2546L12.6749 16.7074C12.4124 17.3238 11.8034 17.75 11.1027 17.75C10.3678 17.75 9.74128 17.289 9.49859 16.6313L9.04988 15.4152L7.78159 15.6829C7.68225 15.7039 7.58099 15.7144 7.47947 15.7143H7.47856C6.67732 15.7143 6 15.0516 6 14.203C6 13.6392 6.30098 13.1495 6.75148 12.8837L7.89299 12.2103L7.36523 10.9945C7.25853 10.7487 7.20361 10.4836 7.20389 10.2156V10.2141C7.20389 9.13045 8.08351 8.25 9.17451 8.25C9.69379 8.25 10.1669 8.451 10.5168 8.77912L10.5156 8.78033L10.5156 8.78034L10.5156 8.78036L10.5156 8.78039L10.5157 8.78042L10.5157 8.78047L10.5158 8.78051L10.5158 8.7806L10.5159 8.78065L10.516 8.78075L10.5161 8.78081L10.5162 8.78095L10.5163 8.78102L10.5164 8.78118L10.5165 8.78126L10.5167 8.78145L10.5168 8.78153L10.517 8.78176L10.5171 8.78184L10.5173 8.7821L10.5174 8.78219L10.5177 8.78248L10.5178 8.78257L10.5181 8.7829L10.5182 8.78299L10.5186 8.78336L10.5187 8.78344L10.5191 8.78385L10.5192 8.78392L10.5196 8.78438L10.5197 8.78444L10.5202 8.78495L10.5202 8.78499L10.5208 8.78556L10.5208 8.78558L10.5214 8.7862L10.5214 8.78621L10.5221 8.78686L10.5221 8.7869L10.5228 8.78755L10.5229 8.78762L10.5235 8.78827L10.5236 8.78839L10.5243 8.78903L10.5244 8.78919L10.5251 8.78982L10.5253 8.79003L10.5259 8.79065L10.5261 8.79091L10.5267 8.7915L10.5271 8.79183L10.5276 8.79239L10.528 8.79279L10.5286 8.79332L10.529 8.79379L10.5295 8.79427L10.5301 8.79483L10.5305 8.79526L10.5311 8.79591L10.5315 8.79629L10.5323 8.79702L10.5326 8.79734L10.5334 8.79818L10.5337 8.79843L10.5346 8.79938L10.5348 8.79955L10.5359 8.80062L10.5359 8.8007L10.5371 8.80188L10.5371 8.8019L10.5383 8.80309L10.5385 8.80322L10.5396 8.80434L10.5398 8.80458L10.5409 8.80562L10.5412 8.80598L10.5422 8.80693L10.5427 8.80743L10.5435 8.80827L10.5441 8.80891L10.5449 8.80964L10.5457 8.81043L10.5463 8.81105L10.5472 8.812L10.5477 8.81248L10.5488 8.81361L10.5492 8.81395L10.5505 8.81526L10.5507 8.81544L10.5522 8.81695L10.5522 8.81697L10.5538 8.81853L10.5539 8.81868L10.5554 8.82011L10.5557 8.82046L10.557 8.82173L10.5575 8.82227L10.5586 8.82338L10.5594 8.82413L10.5603 8.82506L10.5613 8.82603L10.562 8.82676L10.5632 8.82798L10.5637 8.8285L10.5652 8.82996L10.5655 8.83027L10.5672 8.83199L10.5673 8.83206L10.5691 8.83389L10.5693 8.83406L10.571 8.83574L10.5714 8.83618L10.5729 8.83763L10.5736 8.83834L10.5748 8.83954L10.5758 8.84054L10.5767 8.84148L10.578 8.84278L10.5787 8.84345L10.5803 8.84507L10.5807 8.84545L10.5826 8.8474L10.5827 8.84748L10.5848 8.84954L10.585 8.84978L10.5869 8.85162L10.5874 8.8522L10.589 8.85373L10.5899 8.85466L10.5911 8.85587L10.5924 8.85717L10.5933 8.85804L10.595 8.85972L10.5955 8.86023L10.5976 8.86231L10.5977 8.86246L10.5999 8.86471L10.6002 8.86495L10.6022 8.86699L10.6029 8.86764L10.6045 8.86929L10.6056 8.87037L10.6069 8.87162L10.6084 8.87314L10.6092 8.87398L10.6112 8.87596L10.6116 8.87637L10.614 8.87878L10.6141 8.87883L10.6165 8.88122L10.617 8.88174L10.6189 8.88369L10.6199 8.88469L10.6214 8.88618L10.6229 8.88769L10.6239 8.8887L10.626 8.89074L10.6265 8.89124L10.629 8.89381L10.6291 8.89383L10.6316 8.89641L10.6322 8.89697L10.6324 8.89712C10.6683 8.93709 10.7026 8.97856 10.7351 9.02142L10.7474 9.01213L10.7482 9.01292L10.7483 9.01306L10.7517 9.01642L10.7529 9.01768L10.7552 9.01995L10.7576 9.02236L10.7587 9.02349L10.7623 9.02706L10.7623 9.02708L10.7659 9.03064L10.7671 9.03185L10.7695 9.03425L10.7719 9.03667L10.7731 9.03787L10.7768 9.04152L10.7768 9.04155L10.7804 9.04519L10.7817 9.04647L10.7841 9.04887L10.7867 9.05144L10.7878 9.05258L10.7915 9.0563L10.7917 9.05647L10.7953 9.06005L10.7968 9.06155L10.799 9.06381L10.8019 9.06667L10.8028 9.06759L10.8066 9.0714L10.8071 9.07185L10.8105 9.07522L10.8123 9.07708L10.8143 9.07906L10.8176 9.08236L10.8182 9.08291L10.822 9.08679L10.8229 9.08769L10.8259 9.09068L10.8283 9.09308L10.8298 9.0946L10.8338 9.09852L10.8338 9.09853L10.8377 9.10248L10.8392 9.104L10.8417 9.10644L10.8457 9.11043L10.8497 9.11443L10.8537 9.11845L10.8577 9.12249L10.8618 9.12654L10.8659 9.13061L10.8699 9.1347L10.874 9.13881L10.8782 9.14293L10.8823 9.14707L10.8865 9.15122L10.8906 9.15539L10.8948 9.15958L10.899 9.16378L10.9032 9.168L10.9075 9.17224L10.9117 9.17649L10.916 9.18076L10.9203 9.18504L10.9246 9.18934L10.9289 9.19365L10.9332 9.19798L10.9376 9.20232L10.9419 9.20668L10.9463 9.21105L10.9507 9.21544L10.9551 9.21984L10.9595 9.22425L10.9639 9.22868L10.9684 9.23313L10.9728 9.23758L10.9773 9.24205L10.9818 9.24654L10.9863 9.25104L10.9908 9.25555L10.9953 9.26008L10.9999 9.26462L11.0044 9.26917L11.009 9.27373L11.0135 9.27831L11.0181 9.2829L11.0227 9.2875L11.0274 9.29212L11.032 9.29674L11.0366 9.30138L11.0413 9.30604L11.0459 9.3107L11.0506 9.31537L11.0553 9.32006L11.06 9.32476L11.0647 9.32947L11.0694 9.33419L11.0742 9.33892L11.0789 9.34367L11.0837 9.34842L11.0884 9.35319L11.0932 9.35796L11.098 9.36275L11.1028 9.36755L11.1076 9.37235L11.1124 9.37717L11.1172 9.382L11.1221 9.38683L11.1269 9.39168L11.1318 9.39654L11.1366 9.4014L11.1415 9.40628L11.1464 9.41116L11.1513 9.41606L11.1562 9.42096L11.1611 9.42587L11.166 9.43079L11.171 9.43572L11.1759 9.44066L11.1808 9.4456L11.1858 9.45056L11.1908 9.45552L11.1957 9.46049L11.2007 9.46547L11.2057 9.47046L11.2107 9.47545L11.2157 9.48045L11.2207 9.48546L11.2257 9.49048L11.2307 9.4955L11.2358 9.50053L11.2408 9.50557L11.2458 9.51061L11.2509 9.51566L11.256 9.52072L11.261 9.52578L11.2661 9.53085L11.2712 9.53592L11.2762 9.54101L11.2813 9.54609L11.2864 9.55119L11.2915 9.55628L11.2966 9.56139L11.3017 9.5665L11.3069 9.57161L11.312 9.57673L11.3171 9.58186L11.3222 9.58699L11.3274 9.59212L11.3325 9.59726L11.3376 9.6024L11.3428 9.60755L11.3479 9.6127L11.3531 9.61786L11.3583 9.62302L11.3634 9.62818L11.3686 9.63335L11.3738 9.63852L11.3789 9.6437L11.3841 9.64887L11.3893 9.65406L11.3945 9.65924L11.3997 9.66443L11.4049 9.66962L11.41 9.67481L11.4152 9.68001L11.4204 9.6852L11.4256 9.6904L11.4308 9.69561L11.436 9.70081L11.4413 9.70602L11.4465 9.71122L11.4517 9.71643L11.4569 9.72165L11.4621 9.72686L11.4673 9.73207L11.4725 9.73729L11.4777 9.7425L11.483 9.74772L11.4882 9.75294L11.4934 9.75816L11.4986 9.76338L11.5038 9.7686L11.5091 9.77382L11.5143 9.77904L11.5195 9.78426L11.5247 9.78948L11.5299 9.7947L11.5352 9.79992L11.5404 9.80514L11.5456 9.81036L11.5508 9.81558L11.556 9.82079L11.5612 9.82601L11.5665 9.83123L11.5717 9.83644L11.5769 9.84165L11.5821 9.84686L11.5873 9.85207L11.5925 9.85728L11.5977 9.86249L11.6029 9.86769L11.6081 9.87289L11.6133 9.87809L11.6185 9.88329L11.6237 9.88849L11.6289 9.89368L11.6341 9.89887L11.6393 9.90406L11.6445 9.90924L11.6497 9.91442L11.6548 9.9196L11.66 9.92477L11.6652 9.92994L11.6703 9.93511L11.6755 9.94027L11.6807 9.94543L11.6858 9.95059L11.691 9.95574L11.6961 9.96089L11.7013 9.96603L11.7064 9.97117L11.7115 9.9763L11.7167 9.98143L11.7218 9.98656L11.7269 9.99167L11.732 9.99679L11.7371 10.0019L11.7422 10.007L11.7473 10.0121L11.7524 10.0172L11.7575 10.0223L11.7626 10.0274L11.7677 10.0324L11.7727 10.0375L11.7778 10.0426L11.7829 10.0476L11.7879 10.0527L11.793 10.0577L11.798 10.0627L11.803 10.0678L11.808 10.0728L11.8131 10.0778L11.8181 10.0828L11.8231 10.0878L11.8281 10.0928L11.833 10.0978L11.838 10.1028L11.843 10.1077L11.8479 10.1127L11.8529 10.1177L11.8578 10.1226L11.8628 10.1275L11.8677 10.1325L11.8726 10.1374L11.8775 10.1423L11.8824 10.1472L11.8873 10.1521L11.8922 10.157L11.8971 10.1619L11.902 10.1667L11.9068 10.1716L11.9117 10.1764L11.9165 10.1813L11.9213 10.1861L11.9261 10.1909L11.9309 10.1957L11.9357 10.2005L11.9405 10.2053L11.9453 10.2101L11.9501 10.2148L11.9548 10.2196L11.9596 10.2243L11.9643 10.2291L11.969 10.2338L11.9737 10.2385L11.9784 10.2432L11.9831 10.2479L11.9878 10.2525L11.9924 10.2572L11.9971 10.2619L12.0017 10.2665L12.0064 10.2711L12.011 10.2757L12.0156 10.2803L13.0762 9.21967L13.0716 9.21507L13.067 9.21045L13.0624 9.20583L13.0577 9.20119L13.0531 9.19654L13.0484 9.19188L13.0438 9.1872L13.0391 9.18252L13.0344 9.17782L13.0297 9.17311L13.025 9.16839L13.0202 9.16366L13.0155 9.15892L13.0107 9.15417L13.006 9.1494L13.0012 9.14463L12.9964 9.13984L12.9916 9.13505L12.9868 9.13024L12.982 9.12542L12.9772 9.1206L12.9723 9.11576L12.9675 9.11092L12.9626 9.10606L12.9578 9.1012L12.9529 9.09632L12.948 9.09144L12.9431 9.08655L12.9382 9.08164L12.9333 9.07673L12.9284 9.07181L12.9234 9.06689L12.9185 9.06195L12.9136 9.057L12.9086 9.05205L12.9048 9.04829L13.0111 9.15036C13.3196 8.82924 13.7369 8.64023 14.1928 8.64023C14.7957 8.64023 15.3379 8.97179 15.6416 9.51049ZM11.9483 8.0917C12.1799 7.85456 12.4472 7.65398 12.7412 7.49903C13.1764 7.26964 13.67 7.14023 14.1928 7.14023C15.3737 7.14023 16.3972 7.7963 16.9483 8.77385C17.4375 8.55516 17.9673 8.44226 18.5032 8.44253C20.6289 8.44253 22.3543 10.1811 22.3543 12.3265C22.3543 14.4718 20.6289 16.2104 18.5032 16.2104C18.2434 16.2104 17.9901 16.1843 17.7421 16.135C17.2599 16.9944 16.3382 17.5783 15.2884 17.5783C14.957 17.579 14.6288 17.5208 14.319 17.4073C14.2294 17.3744 14.1412 17.337 14.055 17.2949C14.0121 17.3958 13.9641 17.4941 13.9114 17.5894C13.3647 18.5786 12.3115 19.25 11.1027 19.25C9.71839 19.25 8.54402 18.3774 8.09134 17.1506C7.88985 17.1931 7.68448 17.2145 7.47856 17.2143C5.83183 17.2143 4.5 15.8628 4.5 14.203C4.5 13.0877 5.09965 12.1167 5.98928 11.5918C5.80055 11.157 5.7034 10.688 5.70389 10.2141C5.70389 8.29833 7.25878 6.75 9.17451 6.75C9.91511 6.75 10.6042 6.98301 11.1683 7.38015C11.3677 7.52056 11.5515 7.68148 11.7164 7.85987L11.7168 7.86025L11.7196 7.86308L11.7197 7.86309L11.7225 7.86597L11.7232 7.86663L11.7254 7.86886L11.7268 7.87024L11.7283 7.87178L11.7304 7.87389L11.7313 7.87472L11.7341 7.87759L11.7343 7.87769L11.7372 7.88068L11.7379 7.88133L11.7403 7.8837L11.7417 7.88513L11.7433 7.88674L11.7455 7.88897L11.7464 7.8898L11.7494 7.89286L11.7494 7.89288L11.7526 7.89599L11.7534 7.89679L11.7557 7.89912L11.7573 7.90078L11.7588 7.90228L11.7614 7.90481L11.762 7.90546L11.7652 7.90866L11.7655 7.90889L11.7684 7.91188L11.7696 7.91302L11.7717 7.91512L11.7738 7.9172L11.7749 7.91839L11.778 7.92143L11.7782 7.92168L11.7815 7.92499L11.7823 7.92571L11.7849 7.92832L11.7866 7.93003L11.7882 7.93168L11.791 7.93441L11.7916 7.93505L11.795 7.93845L11.7954 7.93883L11.7984 7.94187L11.7999 7.9433L11.8019 7.94531L11.8044 7.94783L11.8053 7.94877L11.8088 7.95226L11.809 7.9524L11.8123 7.95576L11.8136 7.95702L11.8158 7.95929L11.8183 7.9617L11.8194 7.96283L11.823 7.9664L11.823 7.96642L11.8265 7.96998L11.8277 7.97119L11.8301 7.97359L11.8326 7.97601L11.8338 7.97721L11.8374 7.98086L11.8374 7.98089L11.8411 7.98453L11.8424 7.98581L11.8448 7.98821L11.8473 7.99078L11.8485 7.99192L11.8522 7.99564L11.8524 7.99581L11.8559 7.99939L11.8574 8.00089L11.8597 8.00315L11.8626 8.00601L11.8635 8.00693L11.8673 8.01074L11.8677 8.01119L11.8711 8.01456L11.873 8.01642L11.875 8.0184L11.8783 8.0217L11.8788 8.02225L11.8827 8.02613L11.8836 8.02703L11.8866 8.03002L11.889 8.03242L11.8905 8.03394L11.8944 8.03785L11.8944 8.03787L11.8984 8.04182L11.8999 8.04334L11.9023 8.04578L11.9063 8.04977L11.9103 8.05377L11.9143 8.05779L11.9184 8.06183L11.9224 8.06588L11.9265 8.06995L11.9306 8.07404L11.9347 8.07815L11.9388 8.08227L11.943 8.08641L11.9471 8.09056L11.9483 8.0917Z",fill:"currentColor"})),(0,s.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))),_=(0,s.createElement)(i.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(i.G,null,(0,s.createElement)(i.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"})))},12923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(13419),a=n(92819);function s(){return(0,a.get)((0,r.Pb)(),["jetpack","is_active"],!1)}},99621:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(13419),a=n(92819);function s(){return(0,a.get)((0,r.Pb)(),["jetpack","is_offline_mode"],!1)}},8264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51806),a=n(55609),s=n(65736),o=n(98817),i=n(34613);const __=s.__,{Fill:l,Slot:c}=(0,a.createSlotFill)("JetpackLikesAndSharingPanel");(0,o.registerPlugin)("jetpack-likes-and-sharing-panel",{render:()=>(0,r.createElement)(c,null,(e=>e.length?(0,r.createElement)(i.Z,null,(0,r.createElement)(a.PanelBody,{title:__("Likes and Sharing","jetpack"),initialOpen:!1},e)):null))})},34613:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(51806),a=n(55609),s=n(9818),o=n(47701),i=n.n(o),l=n(72067),c=n(69307),u=n(98817),d=n(96483),p=n(81427);const{Fill:m,Slot:g}=(0,a.createSlotFill)("JetpackPluginSidebar");i()((function(){"true"===(0,d.getQueryArg)(window.location.search,"jetpackSidebarIsOpen")&&(0,s.dispatch)("core/interface").enableComplementaryArea("core/edit-post","jetpack-sidebar/jetpack")})),(0,u.registerPlugin)("jetpack-sidebar",{render:()=>(0,r.createElement)(g,null,(e=>e.length?(0,r.createElement)(c.Fragment,null,(0,r.createElement)(l.PluginSidebarMoreMenuItem,{target:"jetpack",icon:(0,r.createElement)(p.IM,null)},"Jetpack"),(0,r.createElement)(l.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:(0,r.createElement)(p.IM,null)},e)):null))})},40083:(e,t,n)=>{"use strict";n.d(t,{PG:()=>s,So:()=>i,cP:()=>o,lx:()=>a});var r=n(65736);const __=r.__,a="_jetpack_newsletter_access",s="_jetpack_dont_email_post_to_subs",o="_jetpack_newsletter_tier_id",i={everybody:{key:"everybody",label:__("Everyone","jetpack"),panelHeading:__("Everyone","jetpack")},subscribers:{key:"subscribers",label:__("Anyone subscribed","jetpack"),panelHeading:__("All subscribers","jetpack")},paid_subscribers:{key:"paid_subscribers",label:__("Paid subscribers only","jetpack"),panelHeading:__("Paid subscribers","jetpack")}}},19617:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,_:()=>o});var r=n(13419),a=n(37798),s=n(40083);const o=e=>{const[t=[]]=(0,a.useEntityProp)("postType",e,"meta");let n=t[s.lx]??s.So.everybody.key;return n||(n=s.So.everybody.key),n},i=()=>(0,r.Pb)()?.jetpack?.is_newsletter_feature_enabled??!1},52143:(e,t,n)=>{"use strict";n.d(t,{Nv:()=>v,Y6:()=>C,al:()=>y,fH:()=>B,sF:()=>w});var r=n(51806),a=n(52947),s=n(13419),o=n(55609),i=n(94333),l=n(37798),c=n(9818),u=n(12238),d=n(69307),p=n(65736),m=n(61074),g=n(66408),A=n(7652),h=n(17746),E=n(40083),f=n(88966);const __=p.__,b=(0,s.dM)(g);function C({accessLevel:e,emailSubscribers:t,paidSubscribers:n,postHasPaywallBlock:r=!1}){switch(t=t??0,n=n??0,E.So[e]?.key){case E.So.everybody.key:case E.So.subscribers.key:return t;case E.So.paid_subscribers.key:return r?t:n;default:return 0}}function v(){const e=(0,c.useSelect)((e=>e(u.store).getCurrentPostType()),[]),[t,n]=(0,l.useEntityProp)("postType",e,"meta");return e=>{delete t[E.cP],n({...t,[E.lx]:e})}}function k(){const e=(0,c.useSelect)((e=>e(A.h).getNewsletterTierProducts())).filter((e=>"1 month"===e.interval)).sort(((e,t)=>Number(t.price)-Number(e.price))),t=(0,c.useSelect)((e=>e(u.store).getCurrentPostType()),[]),[{[E.cP]:n}]=(0,l.useEntityProp)("postType",t,"meta"),a=function(){const e=(0,c.useSelect)((e=>e(u.store).getCurrentPostType()),[]),[t,n]=(0,l.useEntityProp)("postType",e,"meta");return e=>{n({...t,[E.cP]:e})}}();if(!(e.length<2))return(0,r.createElement)("div",{className:"jetpack-editor-post-tiers"},(0,r.createElement)(o.RadioControl,{label:__("Choose Newsletter Tier","jetpack"),hideLabelFromVision:!0,selected:Number(n),options:e.map((e=>({label:e.title,value:Number(e.id)}))),onChange:a}))}function B({accessLevel:e,hasTierPlans:t,stripeConnectUrl:n,isEditorPanel:s=!1,postHasPaywallBlock:i=!1}){const l=null===n,{emailSubscribers:u,paidSubscribers:p}=(0,c.useSelect)((e=>e(A.h).getSubscriberCounts())),[m,g]=(0,d.useState)(!1),f=v(),b=C({accessLevel:E.So.subscribers.key,emailSubscribers:u,paidSubscribers:p}),B=C({accessLevel:E.So.paid_subscribers.key,emailSubscribers:u,paidSubscribers:p});return(0,r.createElement)("fieldset",{className:"jetpack-newsletter-access-radio-buttons"},(0,r.createElement)(o.VisuallyHidden,{as:"legend"},__("Access","jetpack")," "),(0,r.createElement)(o.RadioControl,{onChange:e=>{E.So.paid_subscribers.key!==e||!n&&t?f(e):g(!0)},options:[...i?[]:[{label:E.So.everybody.label,value:E.So.everybody.key}],{label:`${E.So.subscribers.label} (${(0,a.Z)(b,{notation:"compact",maximumFractionDigits:1})})`,value:E.So.subscribers.key},{label:`${E.So.paid_subscribers.label} (${(0,a.Z)(B,{notation:"compact",maximumFractionDigits:1})})`,value:E.So.paid_subscribers.key}],selected:e}),e===E.So.paid_subscribers.key&&l&&t&&(0,r.createElement)(k,null),s&&(0,r.createElement)(h.Z,{closeDialog:()=>g(!1),showDialog:m}))}function y({accessLevel:e}){const{hasTierPlans:t,stripeConnectUrl:n,isLoading:a,foundPaywallBlock:s}=(0,c.useSelect)((e=>{const{getNewsletterTierProducts:t,getConnectUrl:n,isApiStateLoading:r}=e("jetpack/membership-products"),{getBlocks:a}=e("core/block-editor");return{isLoading:r(),stripeConnectUrl:n(),hasTierPlans:0!==t()?.length,foundPaywallBlock:a().find((e=>e.name===g.name))}})),l=(0,c.useSelect)((e=>e(u.store).getEditedPostVisibility())),{selectBlock:d}=(0,c.useDispatch)("core/block-editor"),{closeGeneralSidebar:p}=(0,c.useDispatch)("core/edit-post"),A=(0,i.useViewportMatch)("medium","<");if(a)return(0,r.createElement)(o.Flex,{direction:"column",align:"center"},(0,r.createElement)(o.Spinner,null));const h=e??E.So.everybody.key,C=E.So[h]?.label,v=(0,f.hc)(l,e);return(0,r.createElement)(u.PostVisibilityCheck,{render:({canEdit:e})=>(0,r.createElement)(r.Fragment,null,s&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"block-editor-block-card"},(0,r.createElement)("span",{className:"block-editor-block-icon has-colors"},(0,r.createElement)(m.Z,{icon:b})),(0,r.createElement)("div",{className:"block-editor-block-card__content"},(0,r.createElement)("h2",{className:"block-editor-block-card__title"},__("Paywall","jetpack")),(0,r.createElement)("span",{className:"block-editor-block-card__description"},__("The content below the paywall block is exclusive to the selected audience.","jetpack")," ",(0,r.createElement)(o.Button,{className:"edit-post-paywall-toolbar-button",onClick:()=>{d(s.clientId),A&&p()},variant:"link"},__("Edit the block.","jetpack")))))),(0,r.createElement)(o.Flex,{direction:"column"},v&&(0,r.createElement)(f.$P,null),(0,r.createElement)(o.FlexBlock,{direction:"row",justify:"flex-start"},e&&(0,r.createElement)(B,{isEditorPanel:!0,accessLevel:h,stripeConnectUrl:n,hasTierPlans:t,postHasPaywallBlock:s}),!e&&(0,r.createElement)("span",null,C))))})}function w(){const e=(0,c.useSelect)((e=>e(u.store).isCurrentPostPublished()),[]),t=(0,c.useSelect)((e=>e(u.store).getCurrentPostType()),[]),{saveEditedEntityRecord:n}=(0,c.useDispatch)(l.store),[a,s]=(0,l.useEntityProp)("postType",t,"meta"),i=(0,l.useEntityId)("postType",t),d=e=>{const r={...a,[E.PG]:!e};s(r),n("postType",t,i)},p=(0,c.useSelect)((e=>{const t=e(u.store).getEditedPostAttribute("meta");return!t?.[E.PG]}));return(0,r.createElement)(u.PostVisibilityCheck,{render:({canEdit:t})=>(0,r.createElement)(o.__experimentalToggleGroupControl,{value:p,disabled:e||!t,onChange:d,isBlock:!0},(0,r.createElement)(o.__experimentalToggleGroupControlOption,{label:__("Post & email","jetpack"),value:!0}),(0,r.createElement)(o.__experimentalToggleGroupControlOption,{label:__("Post only","jetpack"),value:!1}))})}},56080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(51806),a=n(55609),s=n(9818),o=n(12238),i=n(69307),l=n(65736),c=n(66408),u=n(40083),d=n(52143),p=n(7652);const __=l.__,_n=l._n,m=({futureTense:e,newsletterCategories:t,postCategories:n,reachCount:r})=>{const a=((e,t)=>{const n=e.length?e:[1],r=n.some((e=>!t.some((t=>t.id===e)))),a=t.filter((e=>n.includes(e.id))).map((e=>e.name));r&&a.push(__("All content","jetpack"));const s=a.map((e=>`<strong>${e}</strong>`));let o="";if(1===s.length)o=s[0];else if(2===s.length) | |
| 169 | +__("%s / year","jetpack"),s);case"one-time":return s}return(0,i.sprintf)( | |
| 170 | +// translators: %1$s: formatted price, %2$s: plan interval | |
| 171 | +__("%1$s / %2$s","jetpack"),s,n)}function y({onClose:e,product:t}){const{selectedProductIds:n,setSelectedProductIds:r}=(0,m.B)(),{id:o,title:a}=t,i=n&&n.includes(o),c=i?l.A:void 0,u=t?" "+v(t):null;return(0,b.jsxs)(s.MenuItem,{icon:c,onClick:t=>{t.preventDefault();const s=i?n.filter(e=>e!==o):[...n,o];r(s),e()},selected:i,value:o,children:[a," : ",u]})}function k({onClose:e}){const{clientId:t,productType:n}=(0,m.B)(),r=(0,a.useSelect)(e=>e(p.M).getSiteSlug()),o=(0,g.A)(t);if(h.Wd===(0,h.AU)())return(0,b.jsx)(s.MenuItem,{children:r&&(0,b.jsx)(d.N,{openInNewTab:!0,href:`https://wordpress.com/earn/payments/${r}#add-new-payment-plan`,children:(0,f.W)("add a new product",n)})});return(0,b.jsx)(s.MenuItem,{onClick:t=>{t.preventDefault(),o(),setTimeout(()=>{const e=document.getElementById("new-product-title");null!==e&&e.focus()},100),e()},children:(0,f.W)("add a new product",n)})}function w(){const{products:e,productType:t,selectedProductIds:n}=(0,m.B)(),r=(0,a.useSelect)(e=>e(p.M).getSelectedProducts(n),[n]);let i=null,l=u.A;return r.length>1?i=__("Multiple products selected","jetpack"):1===r.length&&(i=v(r[0])),r.length!=r.length&&(i=(0,f.W)("product not found",t),l=c.A),(0,b.jsx)(o.BlockControls,{__experimentalShareWithChildBlocks:!0,group:"block",children:(0,b.jsx)(s.ToolbarDropdownMenu,{className:"product-management-control-toolbar__dropdown-button",icon:l,label:(0,f.W)("select a product",t),text:i,children:({onClose:t})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(s.MenuGroup,{children:e.map(e=>(0,b.jsx)(y,{onClose:t,product:e},e.id))}),(0,b.jsx)(s.MenuGroup,{children:(0,b.jsx)(k,{onClose:t})})]})})})}},21212(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(94715),o=n(47143),s=n(14309),a=n(59340);function i(e){const t=(0,a.AU)(),{selectBlock:n}=(0,o.useDispatch)(r.store),{enableComplementaryArea:i}=(0,o.useDispatch)("core/interface"),{closePublishSidebar:c}=(0,o.useDispatch)(s.store);return()=>{switch(e&&n(e),t){case a.O3:return i("core/edit-site","edit-site/block-inspector");case a.RZ:return i("core/edit-widgets","edit-widgets/block-inspector");default:c(),i("core/edit-post","edit-post/block")}}}},1990(e,t,n){"use strict";n.d(t,{G:()=>c,W:()=>a});var r=n(27723),o=n(29726);const __=r.__,s={"add a new product":{[o._$]:__("Add a new payment plan","jetpack"),[o.h5]:__("Add a new subscription","jetpack")},"product not found":{[o._$]:__("Payment plan not found","jetpack"),[o.h5]:__("Subscription not found","jetpack")},"select a product":{[o._$]:__("Select a payment plan","jetpack"),[o.h5]:__("Select a subscription","jetpack")},"default new product title":{[o._$]:__("Monthly Subscription","jetpack"),[o.h5]:__("Monthly Subscription","jetpack")},"manage your products":{[o._$]:__("Manage your payment plans.","jetpack"),[o.h5]:__("Manage your subscriptions.","jetpack")},"saving product":{[o._$]:__("Saving payment plan…","jetpack"),[o.h5]:__("Saving subscription…","jetpack")},"add product":{[o._$]:__("Add payment plan","jetpack"),[o.h5]:__("Add subscription","jetpack")},"product requires a name":{[o._$]:__("Payment plan requires a name","jetpack"),[o.h5]:__("Subscription requires a name","jetpack")},"product requires a valid price":{[o._$]:__("Payment plan requires a valid price","jetpack"),[o.h5]:__("Subscription requires a valid price","jetpack")},"successfully created product":{[o._$]:__("Successfully created payment plan","jetpack"),[o.h5]:__("Successfully created subscription","jetpack")},"there was an error when adding the product":{[o._$]:__("There was an error when adding the payment plan.","jetpack"),[o.h5]:__("There was an error when adding the subscription.","jetpack")},"invalid product configured for this block":{[o._$]:__("Invalid payment plan configured for this block.","jetpack"),[o.h5]:__("Invalid subscription configured for this block.","jetpack")},"the button will be hidden from your visitors until you select a valid product":{[o._$]:__("The button will be hidden from your visitors until you select a valid payment plan.","jetpack"),[o.h5]:__("The subscribe button will be hidden from your visitors until you select a valid subscription.","jetpack")},"mark this product as a donation":{[o._$]:__("Mark this payment plan as a donation","jetpack"),[o.h5]:__("Mark this subscription as a donation","jetpack")}};function a(e,t=o._$){return s?.[e]?.[t]||null}const i={"1 month":__("Monthly Subscription","jetpack"),"1 year":__("Yearly Subscription","jetpack"),"one-time":__("Subscription","jetpack")};function c(e){return i[[e]]??""}},57810(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(85985),o=n(35750),s=n(56427),a=n(27723),i=(n(53472),n(10790));const __=a.__;function c({blockName:e,connectUrl:t}){const{autosaveAndRedirect:n}=(0,r.ZR)(t),{tracks:a}=(0,r.st)();return(0,i.jsx)(s.ToolbarButton,{className:"connect-stripe components-tab-button",icon:o.k7,onClick:t=>{t.preventDefault(),a.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e}),n(t)},children:__("Connect Stripe","jetpack")})}},53796(e,t,n){"use strict";n.d(t,{V:()=>p});var r=n(3924),o=n(97999),s=n(85985),a=n(47143),i=n(27723),c=n(71218),l=n(16521),u=n(11998),d=(n(51082),n(10790));const __=i.__,p=({blockName:e})=>{const t=(0,a.select)(l.M).getConnectUrl(),{tracks:n}=(0,s.st)();if(!t)return null;let i;const p=(0,o.isWpcomPlatformSite)();switch(e){case"payment-buttons":i=p?(0,r.A)("wpcom-support-wordpress-editor-blocks-payments-block"):(0,r.A)("jetpack-support-jetpack-blocks-payments-block");break;case"donations":i=p?(0,r.A)("wpcom-support-wordpress-editor-blocks-donations-block"):(0,r.A)("jetpack-support-jetpack-blocks-donations-block");break;case"premium-content":i=p?(0,r.A)("wpcom-support-wordpress-editor-blocks-premium-content-block"):(0,r.A)("jetpack-support-jetpack-blocks-premium-content-block");break;default:i=p?(0,r.A)("wpcom-support-payments-button-block"):(0,r.A)("jetpack-support-jetpack-blocks-payments-block")}return(0,d.jsx)(u.A,{className:"jetpack-stripe-nudge__banner",buttonLabel:__("Connect","jetpack"),icon:(0,d.jsx)(c.A,{className:"jetpack-stripe-nudge__icon",size:18,"aria-hidden":"true",role:"img",focusable:"false"}),href:t,readMoreUrl:i,onClick:()=>n.recordEvent("jetpack_editor_block_stripe_connect_click",{block:e}),title:__("Connect to Stripe to use this block on your site","jetpack"),subtitle:__("This block will be hidden from your visitors until you connect to Stripe.","jetpack")})}},72730(e,t,n){"use strict";n.d(t,{C_:()=>l,T:()=>s,VK:()=>o,Xj:()=>i,dv:()=>a,kF:()=>c});var r=n(26356);const o={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5},s=Object.keys(o).map(e=>{const{symbol:t}=(n=e,r.y[n]||{symbol:"$",decimal:".",grouping:",",precision:2});var n;var o;return{value:e,label:t===e?e:`${e} ${o=t,String(o||"").replace(/\.+$/,"")}`}});function a(e){return o[e]}function i(e){const t=a(e);return[10*t,30*t,200*t]}function c(e,t){return!isNaN(t)&&t>=a(e)}function l(e,t){if(!e)return null;if("number"==typeof e)return e;let n=e;return r.y[t].grouping&&(n=e.replace(new RegExp("\\"+r.y[t].grouping,"g"),"")),e=parseFloat(n.replace(new RegExp("\\"+r.y[t].decimal,"g"),".")),isNaN(e)?null:e}},74006(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56427),o=n(10790);const s=({label:e,onClick:t})=>(0,o.jsx)(r.ToolbarButton,{className:"components-toolbar__control",onClick:t,icon:"edit",title:e,showTooltip:!0});n.dn(s)},56539(e,t,n){"use strict";n.d(t,{A:()=>s});const r=new Map,o=e=>r.has(e),s={acquire:e=>{if(o(e))return null;const t=Math.random();return r.set(e,t),[e,t]},blockExecution:async(e,t=10)=>{for(;o(e);)await new Promise(e=>setTimeout(e,t))},clearAll:()=>r.clear(),isLocked:o,release:e=>{const[t,n]=e;return!(!o(t)||r.get(t)!==n)&&(r.delete(t),!0)}}},333(e,t,n){"use strict";n.d(t,{wc:()=>a});var r=n(85985),o=n(66087);function s(){return(0,r.$i)()?.allowedMimeTypes??[]}function a(e,t){if(!e||!t)return!1;if(!s())return!1;const n=(r=t)?(0,o.pickBy)(s(),e=>e.startsWith(`${r}/`)):{};var r;const a=(i=n)?Object.keys(i).map(e=>e.split("|")).flat():[];var i;if("string"==typeof e){const t=e.split(".").pop();return t&&a.includes(t)}return"object"==typeof e&&(e.type&&Object.values(n).includes(e.type))}},97969(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74997);function o(...e){const t=(0,r.getCategories)();for(const n of e)if(t.some(({slug:e})=>e===n))return n;throw new Error(`Could not find a category from the provided list: ${e.join(",")}`)}},27574(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(93832);function o(e,t){if(!(0,r.isURL)(t))return null;let n=t;try{const o=(0,r.getQueryArg)(t,"state"),s=JSON.parse(atob(o));if(e)s.from_editor_post_id=e;else{const e=new URLSearchParams(window.location.search);s.from_site_editor_post_id=e.get("postId"),s.from_site_editor_post_type=e.get("postType")}n=(0,r.addQueryArgs)(t,{state:btoa(JSON.stringify(s))})}catch(e){0}return n}},59340(e,t,n){"use strict";n.d(t,{AU:()=>c,O3:()=>o,RZ:()=>s,Wd:()=>i,vf:()=>a});var r=n(47143);const o="site",s="widget",a="post",i="customizer",c=()=>(0,r.select)("core/edit-site")?o:(0,r.select)("core/edit-widgets")?s:(0,r.select)("core/customize-widgets")?i:(0,r.select)("core/edit-navigation")?"navigation":(0,r.select)("core/edit-post")?a:"unknown"},78218(e,t,n){"use strict";n.d(t,{y:()=>r});const r=(e,t)=>Object.entries(t).reduce((t,[n,r])=>{if(void 0===e[n])return t;const{type:o,validator:s,validValues:a,default:i}=e[n];return t[n]="boolean"===o?"false"!==r&&!!r:s?s(r)?r:i:a?a.includes(r)?r:i:r,t},{})},84112(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(13022),o=n(49789),s=(n(65823),n(10790));const a=({children:e=null,isError:t=!1,...n})=>{const a=(0,r.A)("help-message",{"help-message-is-error":t});return e&&(0,s.jsxs)("div",{className:a,...n,children:[t&&(0,s.jsx)(o.A,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),(0,s.jsx)("span",{children:e})]})};n.dn(a)},21604(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(85985);function o(){return(0,r.$i)()?.jetpack?.is_active??!1}},13087(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(85985);function o(){return(0,r.$i)()?.jetpack?.is_offline_mode??!1}},92420(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(56427),o=n(27723),s=n(92279),a=n(44978),i=n(10790);const __=o.__,{Fill:c,Slot:l}=(0,r.createSlotFill)("JetpackLikesAndSharingPanel");(0,s.registerPlugin)("jetpack-likes-and-sharing-panel",{render:()=>(0,i.jsx)(l,{children:e=>e.length?(0,i.jsx)(a.A,{children:(0,i.jsx)(r.PanelBody,{className:"jetpack-likes-sharing-panel",title:__("Insert likes and sharing","jetpack"),initialOpen:!1,children:e})}):null})})},44978(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(35750),o=n(56427),s=n(43656),a=n(86087),i=n(92279),c=(n(20209),n(10790));const{Fill:l,Slot:u}=(0,o.createSlotFill)("JetpackPluginSidebar");(0,i.registerPlugin)("jetpack-sidebar",{render:()=>(0,c.jsx)(u,{children:e=>e.length?(0,c.jsxs)(a.Fragment,{children:[(0,c.jsx)(s.PluginSidebarMoreMenuItem,{target:"jetpack",icon:(0,c.jsx)(r.ux,{}),children:"Jetpack"}),(0,c.jsx)(s.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:(0,c.jsx)(r.ux,{}),children:e})]}):null})})},54919(e,t,n){"use strict";function r(e){return e=e.toLowerCase(),""===(e=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn"].includes(e)?e.replace("_","-"):e.replace(/([-_].*)$/i,""))?"en":e}n.d(t,{i:()=>r})},37906(e,t,n){"use strict";n.d(t,{KG:()=>s,P2:()=>i,a7:()=>a,jr:()=>o});var r=n(27723);const __=r.__,o="_jetpack_newsletter_access",s="_jetpack_dont_email_post_to_subs",a="_jetpack_newsletter_tier_id",i={everybody:{key:"everybody",label:__("Everyone","jetpack")},subscribers:{key:"subscribers",label:__("Subscribers","jetpack")},paid_subscribers:{key:"paid_subscribers",label:__("Paid subscribers","jetpack")}}},42167(e,t,n){"use strict";n.d(t,{I:()=>a,V:()=>i});var r=n(85985),o=n(3582),s=n(37906);const a=e=>{const[t=[]]=(0,o.useEntityProp)("postType",e,"meta");let n=t[s.jr]??s.P2.everybody.key;return n||(n=s.P2.everybody.key),n},i=()=>(0,r.$i)()?.jetpack?.is_newsletter_feature_enabled??!1},91158(e,t,n){"use strict";n.d(t,{EX:()=>C,GG:()=>A,iF:()=>x,ix:()=>S});var r=n(54268),o=n(56427),s=n(29491),a=n(3582),i=n(47143),c=n(43656),l=n(27723),u=n(57273),d=n(88050),p=n(42472),h=n(61868),m=n(13022),g=n(64524),f=n(16521),b=(n(81641),n(37906)),v=n(9894),y=n(10790);const __=l.__;function k({accessLevel:e,subscribers:t,paidSubscribers:n,postHasPaywallBlock:r=!1}){switch(t=t??0,n=n??0,b.P2[e]?.key){case b.P2.everybody.key:case b.P2.subscribers.key:return t;case b.P2.paid_subscribers.key:return r?t:n;default:return 0}}function w(e,t=!1){switch(e){case b.P2.subscribers.key:return t?__("Only subscribers can read the content below the paywall. Subscribers receive it by email.","jetpack",0):__("Only subscribers can read this post. Others see a preview and can subscribe. Subscribers receive it by email.","jetpack");case b.P2.paid_subscribers.key:return t?__("Only paid subscribers can read the content below the paywall. All subscribers receive it by email.","jetpack",0):__("Only paid subscribers can read this post. Others see a preview and can subscribe. Only paid subscribers receive it by email.","jetpack");default:return __("Anyone can read this post. Subscribers receive it by email.","jetpack")}}function x(){const e=(0,i.useSelect)(e=>e(c.store).getCurrentPostType(),[]),[t,n]=(0,a.useEntityProp)("postType",e,"meta");return e=>{delete t[b.a7],n({...t,[b.jr]:e})}}function _(){const e=(0,i.useSelect)(e=>e(f.M).getNewsletterTierProducts()).filter(e=>"1 month"===e.interval).sort((e,t)=>Number(t.price)-Number(e.price)),t=(0,i.useSelect)(e=>e(c.store).getCurrentPostType(),[]),[{[b.a7]:n}]=(0,a.useEntityProp)("postType",t,"meta"),r=function(){const e=(0,i.useSelect)(e=>e(c.store).getCurrentPostType(),[]),[t,n]=(0,a.useEntityProp)("postType",e,"meta");return e=>{n({...t,[b.a7]:e})}}();if(!(e.length<2))return(0,y.jsx)("div",{className:"jetpack-editor-post-tiers",children:(0,y.jsx)(o.RadioControl,{label:__("Choose Newsletter Tier","jetpack"),hideLabelFromVision:!0,selected:Number(n),options:e.map(e=>({label:e.title,value:Number(e.id)})),onChange:r})})}function j({id:e,groupName:t,value:n,label:r,checked:o,disabled:s,describedBy:a,onChange:i}){return(0,y.jsxs)("div",{className:(0,m.A)("components-radio-control__option",{"jetpack-newsletter-access-radio-buttons__disabled-option":s}),children:[(0,y.jsx)("input",{type:"radio",className:"components-radio-control__input",id:e,name:s?void 0:t,value:n,checked:o,"aria-disabled":s||void 0,"aria-describedby":a,readOnly:s,onChange:s?void 0:e=>i(e.target.value),onClick:s?e=>e.preventDefault():void 0,onKeyDown:s?e=>{" "===e.key&&e.preventDefault()}:void 0}),(0,y.jsx)("label",{className:"components-radio-control__label",htmlFor:e,children:r})]})}function C({accessLevel:e,hasTierPlans:t,stripeConnectUrl:n,postHasPaywallBlock:a=!1,explainPaywallConstraint:c=!0}){const l=null===n,{totalSubscribers:m,paidSubscribers:g}=(0,i.useSelect)(e=>e(f.M).getSubscriberCounts()),A=l&&t,S=e===b.P2.paid_subscribers.key,E=!A&&!S,T=e===b.P2.everybody.key,N=!!a&&!T,P=N&&c,B=x(),I=k({accessLevel:b.P2.subscribers.key,subscribers:m,paidSubscribers:g}),M=k({accessLevel:b.P2.paid_subscribers.key,subscribers:m,paidSubscribers:g}),R=(0,s.useInstanceId)(C,"jetpack-newsletter-access"),L=`${R}-group`,D=`${R}-paywall-notice`,F=`${R}-paid-setup-link`,O=[{value:b.P2.everybody.key,label:b.P2.everybody.label,disabled:N,describedBy:P?D:void 0},{value:b.P2.subscribers.key,label:`${b.P2.subscribers.label} (${(0,r.qe)(I)})`},{value:b.P2.paid_subscribers.key,label:`${b.P2.paid_subscribers.label} (${(0,r.qe)(M)})`,disabled:E,describedBy:E?F:void 0}];return(0,y.jsxs)("div",{className:"jetpack-newsletter-access-radio-buttons",children:[P&&(0,y.jsxs)(d.b,{intent:"info",icon:null,id:D,children:[(0,y.jsx)(p.h,{children:__("Paywall active","jetpack")}),(0,y.jsx)(h.V,{children:__("Choose who can read the full post. Everyone can still read the content above the paywall.","jetpack")})]}),(0,y.jsxs)("fieldset",{role:"radiogroup",className:"components-radio-control",children:[(0,y.jsx)(o.BaseControl.VisualLabel,{as:"legend",children:__("Who can read this post?","jetpack")}),(0,y.jsx)("div",{className:"components-radio-control__group-wrapper",children:O.map(t=>(0,y.jsx)(j,{id:`${R}-${t.value}`,groupName:L,value:t.value,label:t.label,checked:!t.disabled&&e===t.value,disabled:!!t.disabled,describedBy:t.describedBy,onChange:B},t.value))})]}),E&&(0,y.jsx)(u.N,{id:F,openInNewTab:!0,href:(0,v.Qu)(t),children:__("Turn on paid subscribers","jetpack")}),S&&A&&(0,y.jsx)(_,{}),(0,y.jsx)("p",{className:"jetpack-newsletter-access-radio-buttons__description",children:w(e,!!a)})]})}function A({accessLevel:e}){const{hasTierPlans:t,stripeConnectUrl:n,isLoading:r,postHasPaywallBlock:s}=(0,i.useSelect)(e=>{const{getNewsletterTierProducts:t,getConnectUrl:n,isApiStateLoading:r}=e("jetpack/membership-products"),{getBlocks:o}=e("core/block-editor");return{isLoading:r(),stripeConnectUrl:n(),hasTierPlans:0!==t()?.length,postHasPaywallBlock:o().some(e=>e.name===g.name)}}),a=(0,i.useSelect)(e=>e(c.store).getEditedPostVisibility());if(r)return(0,y.jsx)(o.Flex,{direction:"column",align:"center",children:(0,y.jsx)(o.Spinner,{})});const l=e??b.P2.everybody.key,u=b.P2[l]?.label,d=(0,v.fI)(a,e);return(0,y.jsx)(c.PostVisibilityCheck,{render:({canEdit:e})=>(0,y.jsxs)(o.Flex,{direction:"column",children:[d&&(0,y.jsx)(v.mf,{}),(0,y.jsxs)(o.FlexBlock,{direction:"row",justify:"flex-start",children:[e&&(0,y.jsx)(C,{accessLevel:l,stripeConnectUrl:n,hasTierPlans:t,postHasPaywallBlock:s}),!e&&(0,y.jsx)("span",{children:u})]})]})})}function S(){const e=(0,i.useSelect)(e=>e(c.store).isCurrentPostPublished(),[]),t=(0,i.useSelect)(e=>e(c.store).getCurrentPostType(),[]),{saveEditedEntityRecord:n}=(0,i.useDispatch)(a.store),[r,s]=(0,a.useEntityProp)("postType",t,"meta"),l=(0,a.useEntityId)("postType",t),u=(0,i.useSelect)(e=>{const{getPostEmailSentState:t}=e(f.M);return l?t(l):null},[l]),d=null!=u?.email_sent_at,p=e=>{const o={...r,[b.KG]:"post-only"===e};s(o),n("postType",t,l)},h=(0,i.useSelect)(e=>{const t=e(c.store).getEditedPostAttribute("meta");return t?.[b.KG]?"post-only":"post-and-email"});return d?null:(0,y.jsx)(c.PostVisibilityCheck,{render:({canEdit:t})=>(0,y.jsxs)(o.__experimentalToggleGroupControl,{value:h,disabled:e||!t,onChange:p,isBlock:!0,label:__("Send as email to subscribers?","jetpack"),hideLabelFromVision:!0,className:"jetpack-subscribe-email-document-setting",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,children:[(0,y.jsx)(o.__experimentalToggleGroupControlOption,{label:__("Post & email","jetpack"),value:"post-and-email"}),(0,y.jsx)(o.__experimentalToggleGroupControlOption,{label:__("Post only","jetpack"),value:"post-only"})]})})}},83775(e,t,n){"use strict";n.d(t,{Ay:()=>y});var r=n(97999),o=n(85985),s=n(56427),a=n(47143),i=n(43656),c=n(86087),l=n(27723),u=n(75200),d=n(64524),p=n(37906),h=n(16521),m=n(10790);const __=l.__,g=(e,t,n=!0)=>{if(!n&&!e?.length)return"";const r=e?.length?e:[1],o=r.some(e=>!t.some(t=>t.id===e)),s=t.filter(e=>r.includes(e.id)).map(e=>e.name);o&&s.push(__("All content","jetpack"));const a=s.map(e=>`<strong>${e}</strong>`);let i;if(1===a.length)i=a[0];else if(2===a.length) | |
| 199 | 172 | // translators: %1$s: first category name, %2$s: second category name |
| 200 | -o=(0,l.sprintf)(__("%1$s and %2$s","jetpack"),...s);else{const e=s.slice(0,-1).join(`${__(",","jetpack")} `),t=s[s.length-1];o=(0,l.sprintf)( | |
| 173 | +i=(0,l.sprintf)(__("%1$s and %2$s","jetpack"),...a);else{const e=a.slice(0,-1).join(`${__(",","jetpack")} `),t=a[a.length-1];i=(0,l.sprintf)( | |
| 201 | 174 | // translators: %1$s: a comma-separated list of category names except for the last one, %2$s: the name of the last category |
| 202 | -__("%1$s, and %2$s","jetpack"),e,t)}return o})(n,t),s=r.toLocaleString();return e?(0,l.sprintf)( | |
| 203 | -// translators: %1s is the list of categories, %2d is subscriptions count | |
| 204 | -_n("This post will be sent to everyone subscribed to %1$s (%2$s subscriber).","This post will be sent to everyone subscribed to %1$s (%2$s subscribers).",r,"jetpack"),a,s):(0,l.sprintf)( | |
| 205 | -// translators: %1s is the list of categories, %2d is subscriptions count | |
| 206 | -_n("This post was sent to everyone subscribed to %1$s (%2$s subscriber).","This post was sent to everyone subscribed to %1$s (%2$s subscribers).",r,"jetpack"),a,s)};const g=function({accessLevel:e,prePublish:t=!1}){const n=(0,s.useSelect)((e=>e("core/block-editor").getBlocks().some((e=>e.name===c.name)))),{isScheduledPost:g,postCategories:A,postMeta:h}=(0,s.useSelect)((e=>{const{isCurrentPostScheduled:t,getEditedPostAttribute:n}=e(o.store);return{isScheduledPost:t(),postCategories:n("categories"),postMeta:n("meta")}})),{emailSubscribersCount:E,hasFinishedLoading:f,newsletterCategories:b,newsletterCategoriesEnabled:C,newsletterCategorySubscriberCount:v,paidSubscribersCount:k}=(0,s.useSelect)((e=>{const{getNewsletterCategories:t,getNewsletterCategoriesEnabled:n,getNewsletterCategoriesSubscriptionsCount:r,getSubscriberCounts:a,hasFinishedResolution:s}=e(p.h),{emailSubscribers:o,paidSubscribers:i}=a();return{hasFinishedLoading:[s("getSubscriberCounts"),s("getNewsletterCategories"),s("getNewsletterCategoriesSubscriptionsCount")].every(Boolean),emailSubscribersCount:o,newsletterCategories:t(),newsletterCategoriesEnabled:n(),newsletterCategorySubscriberCount:r(),paidSubscribersCount:i}}));if(!f)return(0,r.createElement)(a.Animate,{type:"loading"},(({className:e})=>(0,r.createElement)("p",{className:`jetpack-subscribe-affirmation-loading ${e}`},__("Loading…","jetpack"))));const B=e===u.So.paid_subscribers.key,y=t||g,w=(0,d.Y6)({accessLevel:e,emailSubscribers:E,paidSubscribers:k,postHasPaywallBlock:n});let _;return _=h?.[u.PG]?__("Not sent via email.","jetpack"):C&&b.length>0&&!B?m({futureTense:y,isPaidPost:B,newsletterCategories:b,postCategories:A,reachCount:v}):(({futureTense:e,isPaidPost:t,postHasPaywallBlock:n,reachCount:r})=>{const a=r.toLocaleString();return e?t&&!n?(0,l.sprintf)(/* translators: %s is the number of subscribers */ | |
| 207 | -_n("This post will be sent to <strong>%s paid subscriber</strong>.","This post will be sent to <strong>%s paid subscribers</strong>.",r,"jetpack"),a):(0,l.sprintf)(/* translators: %s is the number of subscribers */ | |
| 208 | -_n("This post will be sent to <strong>%s subscriber</strong>.","This post will be sent to <strong>%s subscribers</strong>.",r,"jetpack"),a):t&&!n?(0,l.sprintf)(/* translators: %s is the number of subscribers */ | |
| 209 | -_n("This post was sent to <strong>%s paid subscriber</strong>.","This post was sent to <strong>%s paid subscribers</strong>.",r,"jetpack"),a):t&&!n?(0,l.sprintf)(/* translators: %s is the number of subscribers */ | |
| 210 | -_n("This post was sent to <strong>%s paid subscriber</strong> only.","This post was sent to <strong>%s paid subscribers</strong> only.",r,"jetpack"),a):(0,l.sprintf)(/* translators: %s is the number of subscribers */ | |
| 211 | -_n("This post was sent to <strong>%s subscriber</strong>.","This post was sent to <strong>%s subscribers</strong>.",r,"jetpack"),a)})({futureTense:y,isPaidPost:B,postHasPaywallBlock:n,reachCount:w}),(0,r.createElement)("p",null,(0,i.createInterpolateElement)(_,{strong:(0,r.createElement)("strong",null)}))}},88966:(e,t,n)=>{"use strict";n.d(t,{$P:()=>u,ZP:()=>d,hc:()=>c,nZ:()=>l});var r=n(51806),a=n(55609),s=n(69307),o=n(65736),i=n(40083);const _x=o._x,__=o.__,l=e=>{const t="https://wordpress.com/earn/payments/"+location.hostname;return e?t:t+"#add-tier-plan"},c=(e,t)=>"public"!==e&&t!==i.So.everybody.key,u=()=>(0,r.createElement)(a.Notice,{status:"warning",isDismissible:!1,className:"edit-post-post-misconfiguration__warning"},(0,s.createInterpolateElement)(__("You’ll need to change the post’s access to Everybody or visibility to Public.<br/><br/>Subscribers aren’t able to view private or password-protected posts.","jetpack"),{br:(0,r.createElement)("br",null)}));function d({context:e="other",hasTierPlans:t}){const n=t?_x("Manage plans","unused context to distinguish translations","jetpack"):__("Set up a paid plan","jetpack");return"toolbar"===e?(0,r.createElement)(a.ToolbarButton,{href:l(t),target:"_blank"},n):(0,r.createElement)(a.Button,{variant:"primary",href:l(t),target:"_blank"},n)}},63066:(e,t,n)=>{"use strict";var r=n(13419),a=n(86989),s=n.n(a),o=n(9818),i=n(65736);n(53961);const __=i.__;function l(){const e=(0,r.lQ)();return void 0!==typeof window&&window.location&&e?(0,r.Wp)()||(0,r.Ug)()?`https://wordpress.com/plans/my-plan/${e}`:`${window.location.protocol}//${e.replace("::","/")}/wp-admin/admin.php?page=jetpack#/my-plan`:null}(async()=>{if(void 0!==typeof window&&window.location){if(new URLSearchParams(window.location.search).get("plan_upgraded")){let e=null;e:try{if((0,r.Wp)())break e;const t=await s()({path:"/jetpack/v4/site"});e=JSON.parse(t.data).plan.product_name}finally{const t=l();(0,o.dispatch)("core/notices").createNotice("success",e?(0,i.sprintf)(/* translators: %s is the plan name, such as Jetpack Premium. */ | |
| 212 | -__("Congratulations! Your site is now on the %s plan.","jetpack"),e):__("Congratulations! Your site is now on a paid plan.","jetpack"),{isDismissible:!0,...t&&{actions:[{url:l(),label:__("View my plan","jetpack")}]}})}}}})()},80425:(e,t,n)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},31985:(e,t,n)=>{"use strict";n.d(t,{S:()=>l,Z:()=>i});var r=n(13419),a=n(4981),s=n(92694);const o="jetpack/";function i(e,t,n=[],i=!0){const l="string"==typeof e?e:e.name,c=l.startsWith(o),u=c?l.slice(o.length):l,{available:d,details:p,unavailableReason:m}=(0,r.OZ)(u),g=(0,r._D)(m,p),A=i||c?o:"";if(!d&&!g)return!1;const h=A+u,E=(0,a.registerBlockType)("object"==typeof e?e:h,t);return g&&(0,s.addFilter)("editor.BlockListBlock",`${h}-with-has-warning-is-interactive-class-names`,(0,r.T)(h)),n.forEach((e=>(0,a.registerBlockType)(A+e.name,e.settings))),E}function l(e,t,n,a){return i(e,{...t,icon:(0,r.lt)(e),attributes:e.attributes||{}},n,a)}},36598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(70444);const s=(e,t=24,n=24,s="0 0 24 24")=>(0,r.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:s},(0,r.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e)},66425:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806),a=n(52175);const s=(e,t,n,s,o)=>{const{isSelected:i}=t,l=t.attributes[e];return(0,r.createElement)("div",{className:i?`jetpack-${e}-block is-selected`:`jetpack-${e}-block`},!i&&""!==l&&s(t),(i||""===l)&&(0,r.createElement)(a.PlainText,{value:l,placeholder:n,"aria-label":n,onChange:o}))}},92713:(e,t,n)=>{"use strict";var r=n(9818),a=n(65736);n(53961);const __=a.__;if("undefined"!=typeof window&&window.location){const e=new URLSearchParams(window.location.search);e.get("stripe_connect_success")?(0,r.dispatch)("core/notices").createNotice("success",__("Congrats! Your site is now connected to Stripe. You can now start accepting funds!","jetpack")):e.get("stripe_connect_cancelled")&&(0,r.dispatch)("core/notices").createNotice("error",__("You cancelled connecting your site to Stripe.","jetpack"))}},23621:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(86989),a=n.n(r),s=n(92819);function o(e,t=s.noop){return t(!0),new Promise(((n,r)=>{a()({path:`/wpcom/v2/resolve-redirect/?url=${encodeURIComponent(e)}`}).then((a=>{t(!1);const s=a.status?parseInt(a.status,10):null;s&&s>=400?r():n(a.url||e)}),(()=>{t(!1),r()}))}))}},46867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9818),a=n(69307),s=n(92819);function o(e,t=s.noop){const[n,o]=(0,a.useState)(!1),{isAutosaveablePost:i,isDirtyPost:l,currentPost:c}=(0,r.useSelect)((e=>{const t=e("core/editor");return{isAutosaveablePost:t.isEditedPostAutosaveable(),isDirtyPost:t.isEditedPostDirty(),currentPost:t.getCurrentPost()}}),[]),u=Object.keys(c).length>0,d=(0,r.useSelect)((e=>!!window.wp?.customize||!!e("core/edit-widgets"))),p=(0,r.dispatch)("core/editor").savePost,m=(0,r.useSelect)((e=>e("core").__experimentalGetDirtyEntityRecords())),g=async e=>{e.preventDefault(),u?l&&i&&await p(e):await(async()=>{for(let e=0;e<m.length;e++)await(0,r.dispatch)("core").saveEditedEntityRecord(m[e].kind,m[e].name,m[e].key)})()};return{autosave:g,autosaveAndRedirect:async r=>{r.preventDefault(),n||(o(!0),g(r).then((()=>{!function(e,t,n=!1){t&&t(e),n?window.open(e,"_blank"):window.top.location.href=e}(e,t,d)})))},isRedirecting:n}}},23795:(e,t,n)=>{"use strict";n.d(t,{U_:()=>o,_5:()=>r,dt:()=>a,hp:()=>s});const r="free",a="tiered",s="unlimited",o=e=>e?0===e?.value?r:1===e?.value?s:a:null},28229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(69307);const a=e=>{e&&cancelAnimationFrame(e.id)},s=(e,t=0)=>{const n=(0,r.useRef)(),s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)((()=>(n.current=((e,t=0)=>{const n=t<0?0:t,r={id:0};let a=Date.now();const s=()=>{const t=Date.now();t-a>=n&&(a=t,e()),r.id=requestAnimationFrame(s)};return r.id=requestAnimationFrame(s),r})((()=>{s.current()}),t),()=>{a(n.current)})),[t]);return(0,r.useCallback)((()=>{a(n.current)}),[])}},78798:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(13419),a=n(9818),s=n(92694),o=n(92819),i=n(46867);const l="a8c.wpcom-block-editor.openCheckoutModal";function c(e,t=o.noop){const{checkoutUrl:n,planData:c}=(0,a.useSelect)((t=>{const n=t("core/editor"),a=t("wordpress-com/plans"),{id:s,type:o}=n.getCurrentPost(),i=a&&a.getPlan(e);return{checkoutUrl:(0,r.Qq)({plan:i,planSlug:e,postId:s,postType:o}),planData:i}}),[]),{autosave:u,autosaveAndRedirect:d,isRedirecting:p}=(0,i.Z)(n,t);return[n,async e=>{if(e.preventDefault(),(0,s.hasAction)(l))return e.preventDefault(),u(e),void(0,s.doAction)(l,{products:[c]});d(e)},p,c]}},81673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(69307);const a=e=>{const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current};function s({attributes:e,disableEffects:t=!1,setAttributes:n}){const{align:s,width:o}=e,i=a(s);(0,r.useEffect)((()=>{if(t)return;i!==s&&("left"===s||"right"===s)&&o?.includes("%")&&n({width:void 0})}),[s,t,i,n,o])}},46185:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(9818);const a=async()=>new Promise((e=>{const t=(0,r.subscribe)((()=>{(0,r.select)("core/editor").isCleanNewPost()&&(t(),e());(0,r.select)("core/block-editor").getBlocks().length>0&&(t(),e())}))}))},67194:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(9818);const a=async e=>new Promise((t=>{const n=(0,r.subscribe)((()=>{e()&&(n(),t())}))}))},30429:(e,t,n)=>{"use strict";n.d(t,{G:()=>g,g:()=>A});var r=n(82674),a=n.n(r),s=n(51806),o=n(55609),i=n(69307),l=n(65736),c=n(65235),u=n.n(c);const __=l.__,d=[{value:"%",label:"%",default:100},{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],p=[{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],m=["25%","50%","75%","100%"];function g(e){return(0,s.createElement)(o.PanelBody,{title:__("Width settings","jetpack")},(0,s.createElement)(A,a()({showLabel:!1},e)))}function A({align:e,width:t,onChange:n,showLabel:r=!0}){const[a,l]=(0,i.useState)("%");(0,i.useEffect)((()=>{void 0===t&&l("px")}),[t]);const c="left"===e||"right"===e;return(0,s.createElement)(o.BaseControl,{label:r&&__("Width","jetpack")},(0,s.createElement)("div",{className:u()("jetpack-block-width-controls",{"is-aligned":c})},!c&&(0,s.createElement)(o.ButtonGroup,{"aria-label":__("Percentage Width","jetpack")},m.map((e=>(0,s.createElement)(o.Button,{key:e,isSmall:!0,variant:e===t?"primary":void 0,onClick:()=>function(e){const r=t===e?void 0:e;l("%"),n(r)}(e)},e)))),(0,s.createElement)(o.__experimentalUnitControl,{isResetValueOnUnitChange:!0,max:"%"===a||t?.includes("%")?100:void 0,min:0,onChange:e=>n(e),onUnitChange:e=>l(e),size:"small",units:c?p:d,value:t})))}},97115:(e,t,n)=>{"use strict";n.d(t,{Vy:()=>s,Wp:()=>a,_5:()=>o,tT:()=>r});const r="jetpack/media-source",a="is-playing",s="is-error",o="is-paused"},14688:(e,t,n)=>{"use strict";var r=n(9818),a=n(97115),s=n(66858);if(void 0!==r.createReduxStore){const e=(0,r.createReduxStore)(a.tT,s.Z);(0,r.register)(e)}else(0,r.registerStore)(a.tT,s.Z)},66858:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(97115);const a={sources:{},default:null},s={registerMediaSource:(e,t)=>({type:"REGISTER_MEDIA_SOURCE",id:e,mediaSourceState:t}),updateMediaSourceData:(e,t)=>({type:"UPDATE_MEDIA_SOURCE_DATA",id:e,data:t}),unregisterMediaSource:e=>({type:"UNREGISTER_MEDIA_SOURCE",id:e}),setDefaultMediaSource:e=>({type:"SET_DEFAULT_MEDIA_SOURCE",id:e}),playMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r.Wp}),toggleMediaSource:e=>({type:"TOGGLE_MEDIA_PLAYER_STATE",id:e}),pauseMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r._5}),errorMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r.Vy}),setMediaSourceCurrentTime:(e,t)=>({type:"SET_MEDIA_PLAYER_CURRENT_TIME",id:e,currentTime:t})},o={getDefaultMediaSource(e){let t=null;const n=Object.keys(e.sources);if(e.default?t=e.default:n?.length&&(t=e.sources[n[0]].id),t)return e.sources[t]},getMediaPlayerState(e,t){const n=t?e.sources?.[t]:o.getDefaultMediaSource(e);return n?.state},getMediaSourceCurrentTime(e,t){const n=t?e.sources?.[t]:o.getDefaultMediaSource(e);return n?.currentTime},getMediaSourceDuration(e,t){if(!t){const t=o.getDefaultMediaSource(e);return t?.duration}return e.sources?.[t]?.duration},getMediaSourceDomReference(e,t){const n=t?e.sources?.[t]:o.getDefaultMediaSource(e);if(!n)return;const r=n?.domId;return r?document.getElementById(r):void 0}},i={reducer(e=a,t){const n=t.id||e.default||Object.keys(e.sources)?.[0];switch(t.type){case"REGISTER_MEDIA_SOURCE":return{...e,sources:{...e.sources,[t.id]:{id:t.id,...t.mediaSourceState}}};case"UPDATE_MEDIA_SOURCE_DATA":return{...e,sources:{...e.sources,[t.id]:{...e.sources[t.id],...t.data}}};case"UNREGISTER_MEDIA_SOURCE":{const n=Object.assign({},e);return n.sources[t.id]&&delete n.sources[t.id],t.id===e.default&&(n.default=Object.keys(e.sources)?.[0]),n}case"SET_DEFAULT_MEDIA_SOURCE":return{...e,default:t.id};case"SET_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[n]:{...e.sources[n],state:t.state}}};case"TOGGLE_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[n]:{...e.sources[n],state:e.sources[n].state===r.Wp?r._5:r.Wp}}};case"SET_MEDIA_PLAYER_CURRENT_TIME":return{...e,sources:{...e.sources,[n]:{...e.sources[n],currentTime:t.currentTime}}}}return e},actions:s,selectors:o}},6247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{saveProduct:()=>E,setApiState:()=>A,setConnectUrl:()=>m,setConnectedAccountDefaultCurrency:()=>g,setNewsletterCategories:()=>b,setNewsletterCategoriesSubscriptionsCount:()=>C,setProducts:()=>p,setSiteSlug:()=>h,setSubscriberCounts:()=>f});var r=n(25607),a=n(86989),s=n.n(a),o=n(65736),i=n(14436),l=n(51585),c=n(79162),u=n(23267),d=n(46529);const __=o.__,p=e=>({type:"SET_PRODUCTS",products:e}),m=e=>({type:"SET_CONNECT_URL",connectUrl:e}),g=e=>({type:"SET_CONNECTED_ACCOUNT_DEFAULT_CURRENCY",connectedAccountDefaultCurrency:e}),A=e=>({type:"SET_API_STATE",apiState:e}),h=e=>({type:"SET_SITE_SLUG",siteSlug:e}),E=(e,t=i.Bn,n=(()=>{}),a=(()=>{}),m=!0)=>async({dispatch:i,registry:g})=>{const{title:A,price:h,currency:E}=e;if(!A||0===A.length)return(0,d.q)((0,l.l)("product requires a name",t),g),void a(!1);const f=parseFloat(h),b=(0,c.hj)(E);if(f<b)return(0,d.q)((0,o.sprintf)( | |
| 175 | +__("%1$s, and %2$s","jetpack"),e,t)}return i};function f(e,t=null,n=!1){return"paid_subscribers"===e&&n?__("all subscribers","jetpack"):function(e,t=null){if(!e)return __("all subscribers","jetpack");let n;switch(e){case"everybody":case"subscribers":default:n=__("all subscribers","jetpack");break;case"paid_subscribers":n=__("paid subscribers","jetpack")}return t&&"paid_subscribers"===e?(0,l.sprintf)( | |
| 176 | +// translators: %1$s: access level label (e.g. "paid subscribers"), %2$s: tier name (e.g. "Premium") | |
| 177 | +__("%1$s (%2$s)","jetpack"),n,t):n}(e,t)}function b(e,t,n){const r=t?.[p.a7];return e===p.P2.paid_subscribers.key&&r?n?.find(e=>String(e.id)===String(r))?.title??null:null}function v({accessLabel:e,categoryNames:t,tense:n,dateStr:r,hasStatsLink:o=!0}){const s="past"===n,a="future"===n;return s&&r&&!e?o?(0,l.sprintf)(/* translators: %s: formatted date */ | |
| 178 | +__("This post was emailed on %s. View <link>delivery details</link>.","jetpack"),r):(0,l.sprintf)(/* translators: %s: formatted date */ | |
| 179 | +__("This post was emailed on %s.","jetpack"),r):t?s?r?o?(0,l.sprintf)(/* translators: %1$s: access (e.g. "all subscribers"), %2$s: category list, %3$s: date */ | |
| 180 | +__("This post was emailed to %1$s of %2$s on %3$s. View <link>delivery details</link>.","jetpack"),e,t,r):(0,l.sprintf)(/* translators: %1$s: access (e.g. "all subscribers"), %2$s: category list, %3$s: date */ | |
| 181 | +__("This post was emailed to %1$s of %2$s on %3$s.","jetpack"),e,t,r):o?(0,l.sprintf)(/* translators: %1$s: access (e.g. "all subscribers"), %2$s: category list */ | |
| 182 | +__("This post was emailed to %1$s of %2$s. View <link>delivery details</link>.","jetpack"),e,t):(0,l.sprintf)(/* translators: %1$s: access (e.g. "all subscribers"), %2$s: category list */ | |
| 183 | +__("This post was emailed to %1$s of %2$s.","jetpack"),e,t):a?(0,l.sprintf)(/* translators: %1$s: access, %2$s: category list */ | |
| 184 | +__("This post will be emailed to %1$s of %2$s.","jetpack"),e,t):o?(0,l.sprintf)(/* translators: %1$s: access, %2$s: category list */ | |
| 185 | +__("This post is being emailed to %1$s of %2$s. <link>Delivery details</link> will be available shortly.","jetpack"),e,t):(0,l.sprintf)(/* translators: %1$s: access, %2$s: category list */ | |
| 186 | +__("This post is being emailed to %1$s of %2$s.","jetpack"),e,t):s?r?o?(0,l.sprintf)(/* translators: %1$s: access, %2$s: date */ | |
| 187 | +__("This post was emailed to %1$s on %2$s. View <link>delivery details</link>.","jetpack"),e,r):(0,l.sprintf)(/* translators: %1$s: access, %2$s: date */ | |
| 188 | +__("This post was emailed to %1$s on %2$s.","jetpack"),e,r):o?(0,l.sprintf)(/* translators: %s: access */ | |
| 189 | +__("This post was emailed to %s. View <link>delivery details</link>.","jetpack"),e):(0,l.sprintf)(/* translators: %s: access */ | |
| 190 | +__("This post was emailed to %s.","jetpack"),e):a?(0,l.sprintf)(/* translators: %s: access level */ | |
| 191 | +__("This post will be emailed to %s.","jetpack"),e):o?(0,l.sprintf)(/* translators: %s: access level */ | |
| 192 | +__("This post is being emailed to %s. Delivery details can be seen on <link>your email stats page</link> shortly.","jetpack"),e):(0,l.sprintf)(/* translators: %s: access level */ | |
| 193 | +__("This post is being emailed to %s.","jetpack"),e)}const y=function({accessLevel:e,prePublish:t=!1}){const{isModuleActive:n}=(0,o.q7)("stats"),l=(0,a.useSelect)(e=>e("core/block-editor").getBlocks().some(e=>e.name===d.name)),{isScheduledPost:y,postCategories:k,postId:w,postMeta:x,publishDate:_,status:j}=(0,a.useSelect)(e=>{const{isCurrentPostScheduled:t,getEditedPostAttribute:n,getCurrentPost:r}=e(i.store),o=r(),s=o?.status,a=o?.date,c=a?new Date(a):null;return{isScheduledPost:t(),postCategories:n("categories"),postId:o?.id,postMeta:n("meta"),publishDate:c,status:s}}),C=()=>!x?.[p.KG],A=window.Jetpack_Editor_Initial_State?.wpcomBlogId,{hasFinishedLoading:S,newsletterCategories:E,newsletterCategoriesEnabled:T,postEmailSentState:N,tierProducts:P,totalEmailsSentCount:B,alreadySentPostModifiedInSession:I,publishedWithEmailEnabledInSession:M}=(0,a.useSelect)(e=>{const{getNewsletterCategories:t,getNewsletterCategoriesEnabled:n,getNewsletterTierProducts:r,getPostEmailSentState:o,getPublishedWithEmailEnabledInSession:s,getAlreadySentPostModifiedInSession:a,getTotalEmailsSentCount:i,hasFinishedResolution:c}=e(h.M);w&&o(w);const l=!w||c("getPostEmailSentState",[w]),u=w?o(w):null,d=w&&A&&l&&null==(u?.email_sent_at??null)&&"publish"===j;return{hasFinishedLoading:[c("getNewsletterCategories"),l].every(Boolean),newsletterCategories:t(),newsletterCategoriesEnabled:n(),postEmailSentState:u,alreadySentPostModifiedInSession:!!w&&a(w),publishedWithEmailEnabledInSession:!!w&&s(w),tierProducts:r(),totalEmailsSentCount:d?i(A,w):null}},[w,A,j]);if(!S)return(0,m.jsx)(s.Animate,{type:"loading",children:({className:e})=>(0,m.jsx)("p",{className:`jetpack-subscribe-affirmation-loading ${e}`,children:__("Loading…","jetpack")})});const R=t||y,L=N?.email_sent_at??null,D=N?.stats_on_send??null,F=N?.email_sent_at??N?.stats_on_send?.timestamp??"",O=D?f(D.access_level,D.paid_tier??null,!0===D.has_paywall_block):"",z=D?g(D.post_categories,E,!1):"",U=f(e,b(e,x,P),l),H=T&&E?.length&&k?.length?g(k,E):"",$=null!=L||D,V=!$&&(B??0)>0,q="publish"===j&&C()&&null==L&&(M||_&&_.getTime()>=Date.now()-9e5),G="publish"===j&&null==L&&!q,W=function(e,t,n=!0){if((0,u.L)())return(0,u.i)({view:"post",id:t,section:"email-opens"});if(!n)return null;return(0,r.getAdminUrl)(`admin.php?page=stats#!/stats/email/opens/day/${t}/${e}`)}(A,w,n),Z=!!W;let J,K=!1;if($)J=v({accessLabel:O,categoryNames:z,tense:"past",dateStr:F,hasStatsLink:Z}),C()&&null!==L&&(K=function({statsOnSend:e,postMeta:t,accessLevel:n,tierProducts:r,postCategories:o,alreadySentPostModifiedInSession:s,prePublish:a}){const i=e?.access_level,c=e?.paid_tier??null,l=e?.post_categories??[],u=b(n,t,r),d=(!i||i===n)&&(!c&&!u||c&&u&&c===u),p=!e?.has_newsletter_categories||Array.isArray(o)&&l.length===o.length&&l.every(e=>o.includes(e));return s||a||!d||!p}({statsOnSend:D,postMeta:x,accessLevel:e,tierProducts:P,postCategories:k,alreadySentPostModifiedInSession:I,prePublish:t}));else if(V){J={withLink:__("This post was emailed to subscribers. View <link>delivery details</link>.","jetpack"),withoutLink:__("This post was emailed to subscribers.","jetpack")}[Z?"withLink":"withoutLink"]}else J=(0,o.lk)()?__("Your site is in Coming Soon mode. Emails are sent only when your site is public. <visibilityLink>Update your site visibility</visibilityLink>.","jetpack"):q?v({accessLabel:U,categoryNames:H,tense:"present",dateStr:"",hasStatsLink:Z}):G?__("This post was published without sending an email. To send, move the post to draft, enable 'Post and email,' and republish.","jetpack"):C()?v({accessLabel:U,categoryNames:H,tense:R?"future":"present",dateStr:"",hasStatsLink:Z}):__("Not sent via email.","jetpack");return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("p",{children:(0,c.createInterpolateElement)(J,{strong:(0,m.jsx)("strong",{}),link:W?(0,m.jsx)("a",{href:W}):(0,m.jsx)("span",{}),visibilityLink:(0,m.jsx)("a",{href:(0,r.getAdminUrl)("options-reading.php")})})}),K&&(0,m.jsx)("p",{children:(0,c.createInterpolateElement)(__("Updating, republishing, or changing access settings <strong>won't</strong> resend the email.","jetpack"),{strong:(0,m.jsx)("strong",{})})})]})}},9894(e,t,n){"use strict";n.d(t,{Qu:()=>l,fI:()=>u,mf:()=>d});var r=n(97999),o=n(56427),s=n(86087),a=n(27723),i=n(37906),c=n(10790);const __=a.__,l=e=>{const t=((0,r.isWpcomPlatformSite)()?"https://wordpress.com/earn/payments/":"https://cloud.jetpack.com/monetize/payments/")+location.hostname;return e?t:t+"#add-tier-plan"},u=(e,t)=>"public"!==e&&t!==i.P2.everybody.key,d=()=>(0,c.jsx)(o.Notice,{status:"warning",isDismissible:!1,className:"edit-post-post-misconfiguration__warning",children:(0,s.createInterpolateElement)(__("You’ll need to change the post’s access to Everybody or visibility to Public.<br/><br/>Subscribers aren’t able to view private or password-protected posts.","jetpack"),{br:(0,c.jsx)("br",{})})})},14435(e,t,n){"use strict";var r=n(97999),o=n(85985),s=n(1455),a=n.n(s),i=n(47143),c=n(27723);n(692);const __=c.__;function l(){const e=(0,o.GE)();return window?.location&&e?(0,r.isWpcomPlatformSite)()?`https://wordpress.com/plans/my-plan/${e}`:`${window.location.protocol}//${e.replace("::","/")}/wp-admin/admin.php?page=jetpack#/my-plan`:null}const u="jetpackPlanUpgradedReloadedForSlug";function d(e){try{return window.sessionStorage.getItem(u)===e}catch{return!0}}(async()=>{if(!window?.location)return;if(!new URLSearchParams(window.location.search).get("plan_upgraded"))return void function(){try{window.sessionStorage.removeItem(u)}catch{}}();let e=null,t=null;try{if((0,r.isSimpleSite)()){const t=await a()({path:`/sites/${parseInt(window?.Jetpack_Editor_Initial_State?.wpcomBlogId)||0}`,apiNamespace:"rest/v1.1"});t?.plan&&(e=t.plan.product_name_short)}else{const n=await a()({path:"/jetpack/v4/site"}),r=JSON.parse(n.data);e=r.plan.product_name,t=r.plan.product_slug}}catch{}const n=window?.Jetpack_Editor_Initial_State?.jetpack?.jetpack_plan?.data;if(function({isSimple:e,freshPlanSlug:t,renderedPlanSlug:n,alreadyReloaded:r}){return!(e||!t||!n||t===n||r)}({isSimple:(0,r.isSimpleSite)(),freshPlanSlug:t,renderedPlanSlug:n,alreadyReloaded:d(n)})&&function(e){try{return window.sessionStorage.setItem(u,e),!0}catch{return!1}}(n))return void window.location.reload();const o=l();(0,i.dispatch)("core/notices").createNotice("success",e?(0,c.sprintf)(/* translators: %s is the plan name, such as Jetpack Premium. */ | |
| 194 | +__("Congratulations! Your site is now on the %s plan.","jetpack"),e):__("Congratulations! Your site is now on a paid plan.","jetpack"),{isDismissible:!0,...o&&{actions:[{url:l(),label:__("View my plan","jetpack")}]}})})()},79366(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},59740(e,t,n){"use strict";var r=n(74997),o=n(47143),s=n(89877),a=n(93832),i=n(30552);const c=(0,a.getQueryArgs)(window.location.href);function l(e){const t=c[e];return"string"==typeof t?t:""}const u=l("url"),d=l("title"),p=l("text"),h=l("comment_content"),m=l("comment_author"),g=["http:","https:"];function f(e){if("string"!=typeof e||!e)return null;try{const t=new URL(e);return g.includes(t.protocol)?t.href:null}catch{return null}}const b={A:["href","title"],ABBR:["title"],ACRONYM:["title"],B:[],BLOCKQUOTE:["cite"],BR:[],CITE:[],CODE:[],DEL:["datetime"],EM:[],I:[],P:[],Q:["cite"],S:[],STRIKE:[],STRONG:[]},v=Object.keys(b),y=["href","cite"],k=["SCRIPT","STYLE","TEMPLATE","NOSCRIPT"];const w=f(u);w&&(async()=>{await(0,i.O)();const e=[];if(p&&p!==d){const t=`<a href="${(0,s.escapeAttribute)(w)}">${(0,s.escapeHTML)(d)}</a>`;e.push((0,r.createBlock)("core/quote",{citation:t},[(0,r.createBlock)("core/paragraph",{content:(0,s.escapeHTML)(p)})]))}if(h){const t=function(e){const t=document.implementation.createHTMLDocument("");t.body.innerHTML=e,t.body.querySelectorAll("blockquote").forEach(e=>{e.replaceWith(...e.childNodes)});let n=null;return Array.from(t.body.childNodes).forEach(e=>{"P"!==e.nodeName?(n||(n=t.createElement("p"),e.replaceWith(n)),n.append(e)):n=null}),Array.from(t.body.children).map(e=>e.innerHTML).filter(e=>""!==e.trim()).map(e=>(0,r.createBlock)("core/paragraph",{content:e}))}(function(e){if("string"!=typeof e||!e)return"";const t=document.implementation.createHTMLDocument("");t.body.innerHTML=e,t.body.querySelectorAll("*").forEach(e=>{const t=e.tagName.toUpperCase();if(k.includes(t))return void e.remove();if(!v.includes(t))return void e.replaceWith(...e.childNodes);const n=b[t]||[];Array.from(e.attributes).forEach(({name:t,value:r})=>{if(n.includes(t)){if(y.includes(t)){const n=f(r);return void(n?e.setAttribute(t,n):e.removeAttribute(t))}/[<>]/.test(r)&&e.setAttribute(t,r.replace(/[<>]/g,""))}else e.removeAttribute(t)})});const n=t.createTreeWalker(t.body,NodeFilter.SHOW_COMMENT),r=[];for(;n.nextNode();)r.push(n.currentNode);return r.forEach(e=>e.remove()),t.body.innerHTML}(h));t.length&&e.push((0,r.createBlock)("core/quote",{citation:(0,s.escapeHTML)(m)},t))}e.push((0,r.createBlock)("core/embed",{url:w,type:"wp-embed"})),(0,o.dispatch)("core/editor").resetEditorBlocks(e)})()},94375(e,t,n){"use strict";n.d(t,{A:()=>i,M:()=>c});var r=n(85985),o=n(74997),s=n(52619);const a="jetpack/";function i(e,t,n=[],i=!0){const c="string"==typeof e?e:e.name,l=c.startsWith(a),u=l?c.slice(8):c,{available:d,details:p,unavailableReason:h}=(0,r.FB)(u),m=(0,r.aq)(h,p),g=i||l?a:"";if(!d&&!m)return!1;const f=g+u,b=(0,o.registerBlockType)("object"==typeof e?e:f,t);return m&&(0,s.addFilter)("editor.BlockListBlock",`${f}-with-has-warning-is-interactive-class-names`,(0,r.BT)(f)),n.forEach(e=>(0,o.registerBlockType)(g+e.name,e.settings)),b}function c(e,t,n,o){return i(e,{...t,icon:(0,r.Cq)(e),attributes:e.attributes||{}},n,o)}},45838(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(94715),o=n(13022),s=n(10790);const a=(e,t,n,a,i,c={})=>{const{isSelected:l}=t,u=t.attributes[e];return c.className=(0,o.A)(c.className,`jetpack-${e}-block`,{"is-selected":l}),(0,s.jsxs)("div",{...c,children:[!l&&""!==u&&a(t),(l||""===u)&&(0,s.jsx)(r.PlainText,{value:u,placeholder:n,"aria-label":n,onChange:i})]})}},21929(e,t,n){"use strict";var r=n(47143),o=n(27723);n(692);const __=o.__;if("undefined"!=typeof window&&window.location){const e=new URLSearchParams(window.location.search);e.get("stripe_connect_success")?(0,r.dispatch)("core/notices").createNotice("success",__("Congrats! Your site is now connected to Stripe. You can now start accepting funds!","jetpack")):e.get("stripe_connect_cancelled")&&(0,r.dispatch)("core/notices").createNotice("error",__("You cancelled connecting your site to Stripe.","jetpack"))}},56145(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(1455),o=n.n(r);const s=()=>{};function a(e,t=s){return t(!0),new Promise((n,r)=>{o()({path:`/wpcom/v2/resolve-redirect/?url=${encodeURIComponent(e)}`}).then(o=>{t(!1);const s=o.status?parseInt(o.status,10):null;s&&s>=400?r():n(o.url||e)},()=>{t(!1),r()})})}},26247(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(39384),o=n(97999);const s=()=>{const{isUserConnected:e}=(0,r.useConnection)();return(0,o.isSimpleSite)()||e}},89303(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087);function o({attributes:e,disableEffects:t=!1,setAttributes:n}){const{align:o,width:s}=e,a=(e=>{const t=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{t.current=e},[e]),t.current})(o);(0,r.useEffect)(()=>{if(t)return;a!==o&&("left"===o||"right"===o)&&s?.includes("%")&&n({width:void 0})},[o,t,a,n,s])}},30552(e,t,n){"use strict";n.d(t,{O:()=>o});var r=n(47143);function o(){return new Promise((e,t)=>{if(s())return void e();const n=(0,r.subscribe)(()=>{s()&&(clearTimeout(o),n(),e())}),o=setTimeout(()=>{n(),t(new Error("Timeout: Waiting for the editor to be ready has timed out."))},7e3)})}function s(){const e=(0,r.select)("core/editor"),t=(0,r.select)("core/block-editor");return!(!e||!t)&&(e.isCleanNewPost()||e.getCurrentPostId()||t.getBlocks().length>0)}},68210(e,t,n){"use strict";n.d(t,{D:()=>d,s:()=>p});var r=n(56427),o=n(86087),s=n(27723),a=n(13022),i=(n(62653),n(10790));const __=s.__,c=[{value:"%",label:"%",default:100},{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],l=[{value:"px",label:"px",default:150},{value:"em",label:"em",default:10}],u=["25%","50%","75%","100%"];function d(e){return(0,i.jsx)(r.PanelBody,{title:__("Width settings","jetpack"),children:(0,i.jsx)(p,{showLabel:!1,...e})})}function p({align:e,width:t,onChange:n,showLabel:s=!0}){const[d,p]=(0,o.useState)("%");(0,o.useEffect)(()=>{void 0===t&&p("px")},[t]);const h="left"===e||"right"===e;return(0,i.jsxs)(r.BaseControl,{__nextHasNoMarginBottom:!0,children:[s&&(0,i.jsx)(r.BaseControl.VisualLabel,{children:__("Width","jetpack")}),(0,i.jsxs)("div",{className:(0,a.A)("jetpack-block-width-controls",{"is-aligned":h}),children:[!h&&(0,i.jsx)(r.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,"aria-label":__("Percentage width","jetpack"),isBlock:!0,value:t,onChange:function(e){const r=t===e?void 0:e;p("%"),n(r)},children:u.map(e=>(0,i.jsx)(r.__experimentalToggleGroupControlOption,{label:e,value:e},e))}),(0,i.jsx)(r.__experimentalUnitControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,isResetValueOnUnitChange:!0,max:"%"===d||t?.includes("%")?100:void 0,min:0,onChange:e=>n(e),onUnitChange:e=>p(e),units:h?l:c,value:t})]})]})}},23117(e,t,n){"use strict";n.d(t,{ax:()=>r,pF:()=>s,v8:()=>o,vh:()=>a});const r="jetpack/media-source",o="is-playing",s="is-error",a="is-paused"},12088(e,t,n){"use strict";var r=n(47143),o=n(23117),s=n(11267);if(void 0!==r.createReduxStore){const e=(0,r.createReduxStore)(o.ax,s.A);(0,r.register)(e)}else(0,r.registerStore)(o.ax,s.A)},11267(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(23117);const o={sources:{},default:null},s={registerMediaSource:(e,t)=>({type:"REGISTER_MEDIA_SOURCE",id:e,mediaSourceState:t}),updateMediaSourceData:(e,t)=>({type:"UPDATE_MEDIA_SOURCE_DATA",id:e,data:t}),unregisterMediaSource:e=>({type:"UNREGISTER_MEDIA_SOURCE",id:e}),setDefaultMediaSource:e=>({type:"SET_DEFAULT_MEDIA_SOURCE",id:e}),playMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r.v8}),toggleMediaSource:e=>({type:"TOGGLE_MEDIA_PLAYER_STATE",id:e}),pauseMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r.vh}),errorMediaSource:e=>({type:"SET_MEDIA_PLAYER_STATE",id:e,state:r.pF}),setMediaSourceCurrentTime:(e,t)=>({type:"SET_MEDIA_PLAYER_CURRENT_TIME",id:e,currentTime:t})},a={getDefaultMediaSource(e){let t=null;const n=Object.keys(e.sources);if(e.default?t=e.default:n?.length&&(t=e.sources[n[0]].id),t)return e.sources[t]},getMediaPlayerState(e,t){const n=t?e.sources?.[t]:a.getDefaultMediaSource(e);return n?.state},getMediaSourceCurrentTime(e,t){const n=t?e.sources?.[t]:a.getDefaultMediaSource(e);return n?.currentTime},getMediaSourceDuration(e,t){if(!t){const t=a.getDefaultMediaSource(e);return t?.duration}return e.sources?.[t]?.duration},getMediaSourceDomReference(e,t){const n=t?e.sources?.[t]:a.getDefaultMediaSource(e);if(!n)return;const r=n?.domId;return r?document.getElementById(r):void 0}},i={reducer(e=o,t){const n=t.id||e.default||Object.keys(e.sources)?.[0];switch(t.type){case"REGISTER_MEDIA_SOURCE":return{...e,sources:{...e.sources,[t.id]:{id:t.id,...t.mediaSourceState}}};case"UPDATE_MEDIA_SOURCE_DATA":return{...e,sources:{...e.sources,[t.id]:{...e.sources[t.id],...t.data}}};case"UNREGISTER_MEDIA_SOURCE":{const n=Object.assign({},e);return n.sources[t.id]&&delete n.sources[t.id],t.id===e.default&&(n.default=Object.keys(e.sources)?.[0]),n}case"SET_DEFAULT_MEDIA_SOURCE":return{...e,default:t.id};case"SET_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[n]:{...e.sources[n],state:t.state}}};case"TOGGLE_MEDIA_PLAYER_STATE":return{...e,sources:{...e.sources,[n]:{...e.sources[n],state:e.sources[n].state===r.v8?r.vh:r.v8}}};case"SET_MEDIA_PLAYER_CURRENT_TIME":return{...e,sources:{...e.sources,[n]:{...e.sources[n],currentTime:t.currentTime}}}}return e},actions:s,selectors:a}},66314(e,t,n){"use strict";n.r(t),n.d(t,{saveProduct:()=>b,setAlreadySentPostModifiedInSession:()=>x,setApiState:()=>g,setConnectUrl:()=>h,setConnectedAccountDefaultCurrency:()=>m,setNewsletterCategories:()=>k,setPostEmailSentState:()=>w,setProducts:()=>p,setPublishedWithEmailEnabledInSession:()=>_,setSiteSlug:()=>f,setSubscriberCounts:()=>v,setTotalEmailsSentCount:()=>y});var r=n(54268),o=n(1455),s=n.n(o),a=n(27723),i=n(29726),c=n(1990),l=n(72730),u=n(3696),d=n(34884);const __=a.__,p=e=>({type:"SET_PRODUCTS",products:e}),h=e=>({type:"SET_CONNECT_URL",connectUrl:e}),m=e=>({type:"SET_CONNECTED_ACCOUNT_DEFAULT_CURRENCY",connectedAccountDefaultCurrency:e}),g=e=>({type:"SET_API_STATE",apiState:e}),f=e=>({type:"SET_SITE_SLUG",siteSlug:e}),b=(e,t=i._$,n=()=>{},o=()=>{},h=!0)=>async({dispatch:i,registry:m})=>{const{title:g,price:f,currency:b}=e;if(!g||0===g.length)return(0,d.S)((0,c.W)("product requires a name",t),m),void o(!1);const v=parseFloat(f),y=(0,l.dv)(b);if(v<y)return(0,d.S)((0,a.sprintf)( | |
| 213 | 195 | // translators: %s: Price |
| 214 | -__("Minimum allowed price is %s.","jetpack"),(0,r.ZP)(b,E)),g),void a(!1);if(!(0,c.vs)(E,f))return(0,d.q)((0,l.l)("product requires a valid price",t),g),void a(!1);try{const r=await s()({path:"/wpcom/v2/memberships/product",method:"POST",data:e}),o={id:r.id,title:r.title,interval:r.interval,price:r.price,currency:r.currency},c=g.select(u.G4).getProducts();i(p(c.concat([o]))),n([o.id]),m&&(0,d.w)((0,l.l)("successfully created product",t),g),a(!0)}catch(e){(0,d.q)((0,l.l)("there was an error when adding the product",t),g),a(!1)}},f=e=>({type:"SET_SUBSCRIBER_COUNTS",subscriberCounts:e}),b=e=>({type:"SET_NEWSLETTER_CATEGORIES",newsletterCategories:e}),C=e=>({type:"SET_NEWSLETTER_CATEGORIES_SUBSCRIPTIONS_COUNT",newsletterCategoriesSubscriptionsCount:e})},23267:(e,t,n)=>{"use strict";n.d(t,{G4:()=>r,P:()=>o,Zq:()=>i,cH:()=>s,lp:()=>a});const r="jetpack/membership-products",a=0,s=1,o=2,i="tier"},7652:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(9818),a=n(6247),s=n(23267),o=n(93100),i=n(20360),l=n(93245);const c=(0,r.createReduxStore)(s.G4,{actions:a,reducer:o.Z,resolvers:i,selectors:l,__experimentalUseThunks:!0});(0,r.register)(c)},93100:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r={products:[],apiState:n(23267).lp,connectUrl:null,siteSlug:"",connectedAccountDefaultCurrency:"",subscriberCounts:{socialFollowers:null,emailSubscribers:null,paidSubscribers:null},newsletterCategories:{enabled:!1,categories:[]}};function a(e=r,t){switch(t.type){case"SET_PRODUCTS":return{...e,products:t.products};case"SET_CONNECT_URL":return{...e,connectUrl:t.connectUrl};case"SET_API_STATE":return{...e,apiState:t.apiState};case"SET_SITE_SLUG":return{...e,siteSlug:t.siteSlug};case"SET_CONNECTED_ACCOUNT_DEFAULT_CURRENCY":return{...e,connectedAccountDefaultCurrency:t.connectedAccountDefaultCurrency};case"SET_SUBSCRIBER_COUNTS":return{...e,subscriberCounts:t.subscriberCounts};case"SET_NEWSLETTER_CATEGORIES":return{...e,newsletterCategories:t.newsletterCategories};case"SET_NEWSLETTER_CATEGORIES_SUBSCRIPTIONS_COUNT":return{...e,newsletterCategoriesSubscriptionsCount:t.newsletterCategoriesSubscriptionsCount}}return e}},20360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fetchNewsletterCategoriesSubscriptionsCount:()=>b,getNewsletterCategories:()=>y,getNewsletterCategoriesSubscriptionsCount:()=>w,getNewsletterTierProducts:()=>v,getProducts:()=>k,getSubscriberCounts:()=>B});var r=n(86989),a=n.n(r),s=n(12238),o=n(96483),i=n(14436),l=n(51585),c=n(73905),u=n(74251),d=n(6247),p=n(23267),m=n(46529);const g="membership-products-resolver-getProducts",A="membership-products-resolver-getSubscriberCounts",h="membership-products-resolver-getNewsletterCategories",E="membership-products-resolver-getNewsletterCategoriesSubscriptionsCount";let f=!1;const b=async e=>{const t=await a()({path:`/wpcom/v2/newsletter-categories/count?term_ids=${e.join(",")}`,method:"GET"});if(!t||"object"!=typeof t)throw new Error("Unexpected API response");const n=t?.errors&&Object.values(t.errors)?.[0]?.[0];if(n)throw new Error(n);return t},C=(e,t,n)=>{if(e.length>0)return;const r=n.getProductsNoResolver()[0]?.id;r&&t([r])},v=(e=i.Bn,t=[],n=(()=>{}))=>k(e,t,n,!1),k=(e=i.Bn,t=[],n=(()=>{}),r=!0)=>async({dispatch:i,registry:A,select:h})=>{if(await c.Z.blockExecution(g),f)return void C(t,n,h);const E=c.Z.acquire(g);try{const c=await(async()=>{const e=(0,o.getQueryArg)(window.location.href,"origin"),t=(0,o.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===e?"gutenberg-wpcom":"gutenberg",type:"all",is_editable:!0}),n=await a()({path:t,method:"GET"});if(!n&&"object"!=typeof n)throw new Error("Unexpected API response");const r=n?.errors&&Object.values(n.errors)?.[0]?.[0];if(r)throw new Error(r);return n})();((e,t,n)=>{const r=t.select(s.store).getCurrentPostId();n((0,d.setConnectUrl)((0,u.Z)(r,e.connect_url))),n((0,d.setSiteSlug)(e.site_slug)),n((0,d.setProducts)(e.products)),n((0,d.setConnectedAccountDefaultCurrency)(e.connected_account_default_currency)),n((0,d.setApiState)(e.connected_account_id?p.cH:p.P))})(c,A,i),(e=>!e.products.length&&e.connected_account_id)(c)&&await(async(e,t,n,r)=>{await n((0,d.saveProduct)({title:(0,l.l)("default new product title",e),currency:"USD",price:5,interval:"1 month"},e,t,(()=>{}),r))})(e,n,i,r),C(t,n,h),f=!0}catch(e){i((0,d.setConnectUrl)(null)),i((0,d.setApiState)(p.P)),(0,m.q)(e.message,A)}c.Z.release(E)},B=()=>async({dispatch:e,registry:t})=>{await c.Z.blockExecution(A);const n=c.Z.acquire(A);try{const t=await(async()=>{const e=await a()({path:"/wpcom/v2/subscribers/counts"});if(!e||"object"!=typeof e)throw new Error("Unexpected API response");const t=e?.errors&&Object.values(e.errors)?.[0]?.[0];if(t)throw new Error(t);return e})();e((0,d.setSubscriberCounts)({socialFollowers:t.counts.social_followers,emailSubscribers:t.counts.email_subscribers,paidSubscribers:t.counts.paid_subscribers}))}catch(n){e((0,d.setApiState)(p.P)),(0,m.q)(n.message,t)}c.Z.release(n)},y=()=>async({dispatch:e,registry:t})=>{await c.Z.blockExecution(h);const n=c.Z.acquire(h);try{const t=await(async()=>{const e=await a()({path:"/wpcom/v2/newsletter-categories"});if(!e||"object"!=typeof e)throw new Error("Unexpected API response");const t=e?.errors&&Object.values(e.errors)?.[0]?.[0];if(t)throw new Error(t);return e})();e((0,d.setNewsletterCategories)({enabled:t.enabled,categories:t.newsletter_categories}))}catch(n){e((0,d.setApiState)(p.P)),(0,m.q)(n.message,t)}c.Z.release(n)},w=(e=[])=>async({dispatch:t,registry:n})=>{await c.Z.blockExecution(E);const r=c.Z.acquire(E);try{const n=await b(e);t((0,d.setNewsletterCategoriesSubscriptionsCount)(n.subscriptions_count))}catch(e){t((0,d.setApiState)(p.P)),(0,m.q)(e.message,n)}c.Z.release(r)}},93245:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getApiState:()=>a,getConnectUrl:()=>s,getConnectedAccountDefaultCurrency:()=>o,getNewsletterCategories:()=>E,getNewsletterCategoriesEnabled:()=>f,getNewsletterCategoriesSubscriptionsCount:()=>b,getNewsletterTierProducts:()=>d,getProduct:()=>c,getProducts:()=>i,getProductsNoResolver:()=>l,getSelectedProducts:()=>u,getSiteSlug:()=>p,getSubscriberCounts:()=>h,hasInvalidProducts:()=>C,isApiStateConnected:()=>m,isApiStateLoading:()=>g,isInvalidProduct:()=>A});var r=n(23267);const a=e=>e.apiState,s=e=>e.connectUrl,o=e=>e.connectedAccountDefaultCurrency,i=e=>e.products,l=e=>i(e),c=(e,t)=>i(e).find((e=>e.id===t)),u=(e,t)=>i(e).filter((e=>t.includes(e.id))),d=e=>e.products.filter((e=>e.type===r.Zq)),p=e=>e.siteSlug,m=e=>e.apiState===r.cH,g=e=>e.apiState===r.lp,A=(e,t)=>!!t&&!c(e,t),h=e=>e.subscriberCounts,E=e=>e.newsletterCategories.categories,f=e=>e.newsletterCategories.enabled,b=e=>e.newsletterCategoriesSubscriptionsCount,C=(e,t)=>!!t&&t.some((t=>A(e,t)))},46529:(e,t,n)=>{"use strict";n.d(t,{q:()=>a,w:()=>s});var r=n(53961);const a=(e,t)=>t.dispatch(r.store).createErrorNotice(e,{type:"snackbar"}),s=(e,t)=>t.dispatch(r.store).createSuccessNotice(e,{type:"snackbar"})},68802:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(86989),a=n.n(r),s=n(19503);const o={setPlans:e=>({type:s.mf,plans:e}),fetchFromAPI:e=>({type:s.ad,url:e}),storeAiAssistantFeature:e=>({type:s.i9,feature:e}),fetchAiAssistantFeature:()=>async({dispatch:e})=>{e({type:s.Ob});try{const t=await a()({path:s.fJ});e(o.storeAiAssistantFeature(function(e){return{hasFeature:!!e["has-feature"],isOverLimit:!!e["is-over-limit"],requestsCount:e["requests-count"],requestsLimit:e["requests-limit"],requireUpgrade:!!e["site-require-upgrade"],errorMessage:e["error-message"],errorCode:e["error-code"],upgradeType:e["upgrade-type"],usagePeriod:{currentStart:e["usage-period"]?.["current-start"],nextStart:e["usage-period"]?.["next-start"],requestsCount:e["usage-period"]?.["requests-count"]||0},currentTier:e["current-tier"],nextTier:e["next-tier"],tierPlansEnabled:!!e["tier-plans-enabled"],costs:e.costs}}(t)))}catch(e){console.error(e)}},increaseAiAssistantRequestsCount:(e=1)=>({dispatch:t})=>{t({type:s.VK,count:e}),t(o.decreaseAsyncRequestCountdownValue())},decreaseAsyncRequestCountdownValue:()=>async({dispatch:e,select:t})=>{e({type:s.sQ});t.getAsyncRequestCountdownValue()<=0&&e(o.enqueueAiAssistantFeatureAsyncRequest())},enqueueAiAssistantFeatureAsyncRequest:()=>({dispatch:e})=>{e.dequeueAiAssistantFeatureAsyncRequest();const t=setTimeout((()=>{e(o.fetchAiAssistantFeature())}),s.gC);e({type:s.vS,timerId:t})},dequeueAiAssistantFeatureAsyncRequest:()=>({dispatch:e,select:t})=>{e({type:s.l0,timerId:0});const n=t.getAsyncRequestCountdownTimerId();n&&window?.clearTimeout(n)},setAiAssistantFeatureRequireUpgrade:(e=!0)=>({type:s.Pu,requireUpgrade:e}),setTierPlansEnabled:(e=!0)=>({type:s.PJ,tierPlansEnabled:e})},i=o},19503:(e,t,n)=>{"use strict";n.d(t,{Jm:()=>d,Ob:()=>o,PJ:()=>c,Pu:()=>l,Re:()=>m,VK:()=>i,aU:()=>p,ad:()=>a,fJ:()=>u,gC:()=>g,i9:()=>s,l0:()=>E,mf:()=>r,sQ:()=>A,vS:()=>h});const r="SET_PLANS",a="FETCH_FROM_API",s="STORE_AI_ASSISTANT_FEATURE",o="REQUEST_AI_ASSISTANT_FEATURE",i="INCREASE_AI_ASSISTANT_REQUESTS_COUNT",l="SET_AI_ASSISTANT_FEATURE_REQUIRE_UPGRADE",c="SET_TIER_PLANS_ENABLED",u="/wpcom/v2/jetpack-ai/ai-assistant-feature",d=20,p=999999999,m=3,g=5e3,A="DECREASE_NEW_ASYNC_REQUEST_COUNTDOWN",h="ENQUEUE_ASYNC_COUNTDOWN_REQUEST",E="DEQUEUE_ASYNC_COUNTDOWN_REQUEST"},29692:(e,t,n)=>{"use strict";var r=n(9818),a=n(68802),s=n(7842);const o="wordpress-com/plans",i={getPlan:(e,t)=>e.plans.find((e=>e.product_slug===t)),getAiAssistantFeature(e){const t={...e.features.aiAssistant};return delete t._meta,t},getIsRequestingAiAssistantFeature:e=>e.features.aiAssistant?._meta?.isRequesting,getAsyncRequestCountdownValue:e=>e.features.aiAssistant?._meta?.asyncRequestCountdown,getAsyncRequestCountdownTimerId:e=>e.features.aiAssistant?._meta?.asyncRequestTimerId},l=(0,r.createReduxStore)(o,{actions:a.Z,reducer:s.Z,selectors:i,controls:{FETCH_FROM_API:({url:e})=>fetch(e).then((e=>e.json()))},resolvers:{*getPlan(){const e=yield a.Z.fetchFromAPI("https://public-api.wordpress.com/rest/v1.5/plans");return a.Z.setPlans(e)},getAiAssistantFeature:e=>{if(!e?.features?.aiAssistant)return a.Z.fetchAiAssistantFeature()}}});(0,r.register)(l),window.Jetpack_Editor_Initial_State?.["ai-assistant"]?.["is-enabled"]&&(0,r.select)(o).getAiAssistantFeature()},7842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(19503);const a={plans:[],features:{aiAssistant:{hasFeature:!0,isOverLimit:!1,requestsCount:0,requestsLimit:r.Jm,requireUpgrade:!1,errorMessage:"",errorCode:"",upgradeType:"default",currentTier:{slug:"ai-assistant-tier-free",value:0,limit:20},usagePeriod:{currentStart:"",nextStart:"",requestsCount:0},nextTier:null,tierPlansEnabled:!1,_meta:{isRequesting:!1,asyncRequestCountdown:r.Re,asyncRequestTimerId:0}}}};function s(e=a,t){switch(t.type){case r.mf:return{...e,plans:t.plans};case r.Ob:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,_meta:{...e.features.aiAssistant._meta,isRequesting:!0,asyncRequestCountdown:r.Re,asyncRequestTimerId:0}}}};case r.i9:return{...e,features:{...e.features,aiAssistant:{...t.feature,_meta:{...e.features.aiAssistant._meta,isRequesting:!1}}}};case r.VK:{const n=e.features.aiAssistant.usagePeriod||{requestsCount:0},a=e.features.aiAssistant.requestsCount+t.count;n.requestsCount+=t.count;const s=e.features.aiAssistant.currentTier?.value,o=void 0===s&&!e.features.aiAssistant.hasFeature||0===s,i=void 0===s&&e.features.aiAssistant.hasFeature||1===s;let l=e.features.aiAssistant.currentTier?.limit;i?l=r.aU:o&&(l=e.features.aiAssistant.requestsLimit);const c=(i||o?a:e.features.aiAssistant.usagePeriod?.requestsCount)>=l,u=c&&null!==e.features.aiAssistant.nextTier;return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,isOverLimit:c,requestsCount:a,requireUpgrade:u,usagePeriod:{...n}}}}}case r.sQ:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,_meta:{...e.features.aiAssistant._meta,asyncRequestCountdown:e.features.aiAssistant._meta.asyncRequestCountdown-1}}}};case r.vS:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,_meta:{...e.features.aiAssistant._meta,asyncRequestTimerId:t.timerId}}}};case r.Pu:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,requireUpgrade:t.requireUpgrade,...t.requireUpgrade?{isOverLimit:!0}:{}}}};case r.PJ:return{...e,features:{...e.features,aiAssistant:{...e.features.aiAssistant,tierPlansEnabled:t.tierPlansEnabled}}}}return e}},43317:(e,t,n)=>{"use strict";n.d(t,{M:()=>r,X:()=>a});const r={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function a(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},25607:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s});var r=n(43317),a=n(5375);function s(e,t,n={}){const s=(0,r.X)(t);if(!s||isNaN(e))return null;const{decimal:o,grouping:i,precision:l,symbol:c}={...s,...n},u=e<0?"-":"";let d=(0,a.Z)(Math.abs(e),l,o,i);return n.stripZeros&&(d=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(d,o)),`${u}${c}${d}`}},5375:(e,t,n)=>{"use strict";function r(e,t=0,n=".",r=","){const a=(e+"").replace(/[^0-9+\-Ee.]/g,""),s=isFinite(+a)?+a:0,o=isFinite(+t)?Math.abs(t):0,i=(o?function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(s,o):""+Math.round(s)).split(".");return i[0].length>3&&(i[0]=i[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r)),(i[1]||"").length<o&&(i[1]=i[1]||"",i[1]+=new Array(o-i[1].length+1).join("0")),i.join(n)}n.d(t,{Z:()=>r})},7211:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r,a=n(53184);function s(){this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=e=>{e.source===this.windowInstance&&this.emit("message",e.data)}}r=s.prototype,Object.assign(r,a.EventEmitter.prototype),r.emitChange=function(){this.emit("change")},r.off=r.removeListener,s.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},s.prototype.getScreenCenterSpecs=function(e,t){const n=void 0!==window.screenTop?window.screenTop:window.screenY,r=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+window.innerHeight/2-t/2),"left="+(r+window.innerWidth/2-e/2)].join()},s.prototype.isOpen=function(e){let t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(e){}return!t},s.prototype.checkStatus=function(){for(const e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},s.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t};const o=s},39229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7211);const a=function(e,t){var n,a=new r.Z;a.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+a.getScreenCenterSpecs(780,700)),a.once("close",(function(){var e={};n&&n.keyring_id&&(e.keyring_id=Number(n.keyring_id),e.id_token=n.id_token,e.user=n.user),t(e)})),a.on("message",(function(e){return n=e}))}},37580:(e,t,n)=>{"use strict";n.d(t,{FT:()=>r,HX:()=>a,Mf:()=>s});const r="article",a="landscape",s="portrait"},52208:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30275),a=n(21987),s=n(90626);const o=({text:e,url:t,forceUrlDisplay:n})=>{let o;return(n||(0,a.ge)(e,"a"))&&(o=(0,r.jsx)("a",{className:"facebook-preview__custom-text-post-url",href:t,rel:"nofollow noopener noreferrer",target:"_blank",children:t})),(0,r.jsxs)("p",{className:"facebook-preview__custom-text",children:[(0,r.jsx)("span",{children:(0,a.u_)(e,{platform:"facebook",maxChars:s.qA})}),o]})}},90626:(e,t,n)=>{"use strict";n.d(t,{jN:()=>o,qA:()=>a,wB:()=>i,wy:()=>s});var r=n(21987);const a=440,s=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),o=e=>(0,r.SL)((0,r.hs)(110),(0,r.KB)(110))((0,r.ju)(e))||"",i=e=>(0,r.SL)((0,r.hs)(200),(0,r.KB)(200))((0,r.ju)(e))||""},53251:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(65736),a=n(99196),s=n(37580);const __=r.__,o=({mode:e})=>{const[t,n]=(0,a.useState)(e),[r,o]=(0,a.useState)(!0),i=(0,a.useCallback)((({target:e})=>{if(!t){const t=e;n(t.naturalWidth>t.naturalHeight?s.HX:s.Mf)}o(!1)}),[t]),l=(0,a.useCallback)((()=>o(!1)),[]);return[t,r,{alt:__("Facebook Preview Thumbnail","jetpack"),onLoad:i,onError:l}]}},26767:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var r=n(30275),a=n(37580),s=n(52208),o=n(53251),i=n(3451),l=n(69133);const c=({url:e,customImage:t,user:n,customText:c,imageMode:u})=>{const[d,p,m]=(0,o.Z)({mode:u}),g="is-"+(d===a.Mf?"portrait":"landscape");return(0,r.jsxs)("div",{className:"facebook-preview__post",children:[(0,r.jsx)(l.Z,{user:void 0}),(0,r.jsx)("div",{className:"facebook-preview__content",children:(0,r.jsxs)("div",{className:`facebook-preview__window ${g} ${t&&p?"is-loading":""}`,children:[(0,r.jsx)("div",{className:`facebook-preview__custom-image ${g}`,children:(0,r.jsx)("img",{src:t,...m})}),(0,r.jsx)(l.Z,{user:n,timeElapsed:!0,hideOptions:!0}),c&&(0,r.jsx)(s.Z,{text:c,url:e,forceUrlDisplay:!0})]})}),(0,r.jsx)(i.Z,{})]})}},7558:(e,t,n)=>{"use strict";n.d(t,{g:()=>p});var r=n(30275),a=n(65736),s=n(37580),o=n(52208),i=n(90626),l=n(53251),c=n(3451),u=n(69133),d=n(69094);n(59961);const __=a.__,p=({url:e,title:t,description:n,image:a,user:p,customText:m,type:g,imageMode:A,compactDescription:h})=>{const[E,f,b]=(0,l.Z)({mode:A}),C=g===s.FT,v="is-"+(C&&!a||E===s.Mf?"portrait":"landscape");return(0,r.jsxs)("div",{className:"facebook-preview__post",children:[(0,r.jsx)(u.Z,{user:p}),(0,r.jsxs)("div",{className:"facebook-preview__content",children:[m&&(0,r.jsx)(o.Z,{text:m,url:e}),(0,r.jsxs)("div",{className:`facebook-preview__body ${v} ${a&&f?"is-loading":""}`,children:[(a||C)&&(0,r.jsx)("div",{className:`facebook-preview__image ${a?"":"is-empty"} ${v}`,children:a&&(0,r.jsx)("img",{src:a,...b})}),(0,r.jsx)("div",{className:"facebook-preview__text",children:(0,r.jsxs)("div",{className:"facebook-preview__text-wrapper",children:[(0,r.jsx)("div",{className:"facebook-preview__url",children:(0,i.wy)(e)}),(0,r.jsx)("div",{className:"facebook-preview__title",children:(0,i.jN)(t)||(0,i.wy)(e)}),(0,r.jsxs)("div",{className:"facebook-preview__description "+(h?"is-compact":""),children:[n&&(0,i.wB)(n),C&&!n&& | |
| 215 | -// translators: Default description for a Facebook post | |
| 216 | -__("Visit the post for more.","jetpack")]}),(0,r.jsx)("div",{className:"facebook-preview__info",children:(0,r.jsx)(d.Z,{name:"info"})})]})})]})]}),(0,r.jsx)(c.Z,{})]})}},34245:(e,t,n)=>{"use strict";n.d(t,{C:()=>c});var r=n(30275),a=n(37580),s=n(52208),o=n(53251),i=n(3451),l=n(69133);n(59961);const c=({url:e,user:t,customText:n,media:c,imageMode:u})=>{const[d]=(0,o.Z)({mode:u}),p="is-"+(d===a.Mf?"portrait":"landscape");return(0,r.jsxs)("div",{className:"facebook-preview__post",children:[(0,r.jsx)(l.Z,{user:t}),(0,r.jsxs)("div",{className:"facebook-preview__content",children:[n&&(0,r.jsx)(s.Z,{text:n,url:e,forceUrlDisplay:!0}),(0,r.jsx)("div",{className:"facebook-preview__body",children:c?(0,r.jsx)("div",{className:`facebook-preview__media ${p}`,children:c.map(((e,t)=>(0,r.jsx)("div",{className:`facebook-preview__media-item ${p}`,children:e.type.startsWith("video/")?(0,r.jsx)("video",{controls:!0,children:(0,r.jsx)("source",{src:e.url,type:e.type})}):(0,r.jsx)("img",{alt:e.alt||"",src:e.url})},`facebook-preview__media-item-${t}`)))}):null})]}),(0,r.jsx)(i.Z,{})]})}},3451:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30275),a=n(65736),s=n(69094);n(1488);const __=a.__,o=()=>(0,r.jsx)("ul",{className:"facebook-preview__post-actions",children:[{icon:"like", | |
| 217 | -// translators: Facebook "Like" action | |
| 218 | -label:__("Like","jetpack")},{icon:"comment", | |
| 219 | -// translators: Facebook "Comment" action | |
| 220 | -label:__("Comment","jetpack")},{icon:"share", | |
| 221 | -// translators: Facebook "Share" action | |
| 222 | -label:__("Share","jetpack")}].map((({icon:e,label:t})=>(0,r.jsxs)("li",{children:[(0,r.jsx)(s.Z,{name:e}),(0,r.jsx)("span",{children:t})]},e)))})},69133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(30275),a=n(65736),s=n(99196),o=n(69094);n(56878);const __=a.__,_x=a._x,i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IB2cksfwAADwtJREFUeJztXet2mzgX3RLg+H5NmsRt0zad6Zp5/6eYtebPvMDX20zaJm4udmwH20jfDyQQQthpgm1gsTuMWgukg7aOzjmSAPLX3/9wlCgs6L4FKLFdlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFh71uAbYMQsjaf82I/e1c4ggkh4JwrB8DBAQ6I/wEg4j8CQvxr5FE0wgtDMCEEjDF4ngdKKSzLQr1eQ71WxUGlAtu2QamvzYxxrFYruIsFZvMHzGZzeJ4XXEspLQzRhSF4tVrBcRwM+j30um2020049uNub7laYTy+x83tGLd3YyyXS1iWtXWZd4FcE0wI4HkchAAnJy9wfNhHvV6Lnccjw3NwNaR5dmwbg34Xg34Xs9kcP0bXuLwcgXPAsgjyrMy5Jdgnl6Fer+Ht6yHa7RYQOE0hefJcYJOzBQAc9XoN785eYtBt49PXC8xmc1gWzS3JuQyTCCFYrRh6vTb+/PDeJ5f7JPnO0lPKlA6ar+ztdgt/fniPXq+N1Ypt9MazitwRTACsPA+DXge/n7+F49hBRhocEBIqu+PY+P38LQa9Dlaet2EMyCZyR7DHOBq1Gt6fn/ne7hbr4gAopXh/foZGrQaP5W+czh3BlBK8ORvCsixwzreqVUTYdMuy8OZsGIRZeUKuCPY8htOTI3TaLZ/cHdhFOfnRabdwenIEz2NbrzNN5IZgzjmq1QMMT46BR0xBpglZ1/DkGNXqQa4mQXJBMCEEHmM4GvT2FrL4MTHF0aAHj+XHq84FwZxzVBwH/X5X/rIPKQAA/X4XFcfJjRZnnmBCCDzPQ6fdRK1W3ZntNcnBOUetVkWn3YTnebnQ4swTLAltNRuZiEMJ4MuSk5WnzBMMEYs2mnVgx86VDll3o1kHpblouuwTzDlgWzYatfgiwr7QqNVgW3Yu5qczTbA/0cDQaFQzpTGUUjQaVXDOMmE21iE7rWaCmPyvVg/2LUkMfjyMdCbAt4hsEwx/u41jO/7fMzAkShkc2/G3AmUcmScYHLDlilEmGtSXwXbsbIizAdknGBxWBodBX6bsM5wDggGSwVWcLMpkQg4IJmBZML4amNgalHXkgGCAsewt0WVRJhMyTzAhwHK5En/fv8ZIGZbLVdYjJCAPBAMErrvYtxAx+DJln+FME8w5B6UE8/k8Yx4rx3w+B6XZX3DINME+COYPLhZimM4CFssV5g9uqcFpgBDfoRlP7oE9Pw0o6x5P7sEYK21wGvAX/Blub8f7FiXA7e0YnpePbTuZJ5hzDmpZGE+mcF13bwvtcuOB67oYT6agYttu1pF5ggGAEoIH18XV6Fr8sg/N8eu8Gl3jwXVBc6C9yAvBnHPYlOJydI3Vaj/xJyH+I6qXo2vYOXp+OBcEAwChFK67xPcfI2DHzpas6/uPEVx3CZKhzQebkBtJ/UdICL79uMLkfrozWyxt7+R+im8/rsTzwvnQXuSJYB/+FtpPn//d2bZVuW1X1pmH2FdFzggGLMvC/XSOz18vdlbn568XuJ/Oc/lah9wRzDmHbVNcXv3Epy//bXUbD+fApy//4fLqJ2w7P46VitwRjOA5IQvfvl/i4+evQcOnQYBa1sfPX/Ht+6V4VPXZRe8FuX1Hh6/JNr5fjuCtPJydDXFQqQR5v2qf5TWEELiLBT5/ucDo+gaObedScyVySzAEKY5tY3Rzi+lsjuHwGC8O+wG5kpgkstV8ec7l6BoXFz8wd93ck4u8EwypyZYFd7HA/z5+wWh0jRcvBmi3mqg4ztprJamL5RLjyT0uL39iPLkHIQR2TqYiNyH3BEMbXseTKe7GE9TrNTTqdbSaddRqNRxUnMAL9jwP7mKJ+XyOyf0M09kMs9kchNDgCYoikIuiEKyCUgJCbMznLmazOX5e30TeRQlBnjz8ZT8KuwDDsQmFIxjKThBC7IhXzJi0uRApCYgtIrkoKsESOmkmX6uoxErkMg4u8XjkQoP1sEfC/JLR1GuPaX6SPFlEZglWX+wtJ/l9uxo6S7t6MZlqx315GAAOSmnmXySeKYJ1UgkhqFUPUK0eoFaronrg/91x7OCl39veWcGELIwxLJcrPDy4eHBdzOcPeHhwMX9whVOXTbIzRbD/wk+Cg4qDfq+DTqeNWu0gmILcBygAW8TPtSrQbjWDPHexwHzu4u5ujOubO7iLJThnsKzsuDbkr7//2Xt3k8/5tFtNHB0N0O92Yo20adpxV0iSw/MYrm/vcDX6ifHY3+KbhddO7E2D5TcWGGNot1oYnh6h22lHGk5dNNg3sRK6HFJG+Ra8w34Xt3djXHy7wngy2fs3IPZCsL+BzUOl4mB4eoyTFwPFM41ORGQd0Q7p/7vX7aDbaeP75U9cfPuBxWIp1pN3L99eCPY8D91uG+/OXgUvWAnnk/chUTqQsst7OT0+RK/Twscv/+LubgxKd78jZKdGgnPf3g5Pj/HHh/PIm1vzoK2PhRonV6sH+OPDOYanx2CM7VyLd6bBIpLE2zcvcfLiKPitSMTqIIRAfCIEZ6+GqFQcfP5yAQ6ys617W9fgwEkC8Nv5WUAucrc/8WlQ7/HkxRF+Oz8LfttF5946wXLi4t2bVxj0e9uuLvMY9Ht49+bVzlawtkqwHwpxvH51iqPDfqYe4d4XOICjwz5evzoFY9t/NfLWCPa/bbTCYb+L05OjrX9AIy+QH/o4PT7C4aArnrXaXstsjWDP89Co1/Dm7KXRpXjMVtdN5zxnu6x+bfSLpfG8x5SnX5+UD6EAb85eolGvbfVDH1vV4LPXQziOHeykWNeApgNy4j72ydjHlAEt1a8lsVQ9HiujKqt6PIZwx7Zx9nq41dg/dYLlE/mHgx66nbb/Makn3sBmDSJaGrk6knLtAHiwniy/Maz+eYqs6wjVO5C8pttp43DQ29obA1KPgxljcBwbL0+Phd3lACebm0y/Nx5JDI1OACI+/Ey44VW0RBg8M/8hueIkrs0xP0ZerqQx8Xn0JKKdxP0zKIDh6TFubsdbeaAuVQ2WCwiHgx6q1YNgaDYhpjE8fsjfw8ZSD6kp3DjExvJjKhzV8CQZTbKa5I2PANEeYDIR0uGqVQ9wOOiJHZ7pEpyqBnPO4TgODgc9/0bCjM3Xbvg90dEKUkM+EVWThOsjHCSVv77eJMHD+jaXyznH4aCH0c+b1F+RmJoGy+do260m6vV64BnK+/xVGyeVLGnbld58uoJy1bYmDKGb8rGG4JgMcSO/dozgSpt4jKFer6O9hc/1pKbBcttKt9sGkYOU6gnr5wf2M8FOcq2BTPnEV1GZRiC1UqR8Q5utkzGQNVa+MN2G7Fi+Tlogmzydo9dp4+bmLtUZrlQJdhwH7VYLHuPS8gg/KM5gxD+CuZuvG0HlBzsICDhnTyxfSmYaVUi8jMgNR9NY/+N6H9OHXqV88dncdrsFx3GwXC5T0+JUhmjpLDQbdf/bgozFYlEdXIYWSdqj5AWp+siJMK4y/dU4OZ4X9Zugcbjxen2UFjKqsupxduRgDBalaDbqIvpIB+nYYDEMN5uN4KPNMT/SQAARN0oMN6znxav0h2ViGp4VmZJMBDQCYz64QR71zyb5AxkVWWM9KNy64stACRrNejhxkgJSGaKl/a0eVERvDAUMmtYUi65xZJgYdjmYcfO51DoinCQ9X4YcSaEHZ6JWnuBG6fUlyEgICWSNXE7iI4Ser8ooREGtWk11D1dqBDuOIx7kUntmqB6/LjARjSTTWK2G6UblaqG5SfuUY/Pjhg70GBmDmNbgQ63zIlXZ1P3gtkVTtcPPJpiIzeG2bcG2bbEthYseCiWN3+B6yN6PSBrUSxDUI1MV6vw3YNBwKSMPZYyWv76DqDKaPDg5qqgy6vL7y4WhrIwx2LYN27awWCxAySNmADfg+RosWs6yLLGXWUR4IrZJ1jC1EeIERJwdk5PG9TIMXnBC2Yh0EHWxQS2fawSZrg/TJBlVWfXyowsdUNrRilbyDKQ0REsNlfYI4TRSopByCk9N9XLVYSx+PRMOjkx1yAV105Spv1+KiBg2WcaQgGi+lDckMd6B1eFZ/3JMKG+48MA5QAn1NTelUDilOJiDii2vXAzLsbn4RBsnPUquFxnabmKKQ3k0P8HTThpmudj6Fqb6xevLxoaJGunARYJh4/1HZaWWfLguQ04WgMg6KBGaHPFidf50J4OZblid5DAQyAVBPNnJknXpXjDhJOIFxxwaEcMHoZDuQ7BQbmLUuGgwTfTVqgQniwNmm/JEpLtcqN7TpjhUzzc5YZG8uJFOWOkLZVhj5AMZVVk2yfgL8usmKlFGRdaEfvwspL6aFOvKUoviJwcTCkQ5L3pZOM9oXC5WvJj4VGG0/JiGb7qXDeVDi8P1OwxGbs6jZan5hjZIK/6VSI9gnUiT26n+k0ftYFwDogYuScOwTsOUkmIdSHeDDWUTMTqE8+n6/XDwBCPM9fbYMELxdW33DKSowUJYlTjVzmgNJH3toOEMXqZq54wqJ3835Sd6rTJ7/XRoMIfGQ1n18iPX6566Lo8pX4sDwxmvDNpgBjG5rpC71gveANVBehI0D9c01ajLqF+upokyPmmWziwjRIdnKRriFAgWsaa3gse8qDZEWineK6P3pocx0UAr5oVi04IE0eo3jBDSA09c0E36lyIBV4dp5XxOYqFY5GoZXwepX8tqtQLzVqmFSs8mWE5yLJcrLBcrVCpOfJnGECfGvOCYm8k32FhdAw1TYUl1K6YhNBHaCUH8muAFywkaWYnRxq7RcoMPQAjBYrkSH75MZ7IjlSGaUorFYgnXdVGpVILYNxKhxCYaoPRe050oK/WJJnbdlopHjrMCcR8v3JVictJiFSSY2MQ4PrhU8dQpheu6WCyWqa0opbIeLIP0u7uJMq0olg1Fynj02IzIjrnYgvojBQtT/fAzgpSz6CFlXC+rMt2olf8LfSsUlzHc3Y0ja8rPRWpOFqUUk/t7TKdTNBqNcHdggpymmZyEEwHjCK9sC1KH2oTrk39PbkjV0fvV1TCi36NetlYvpRTT6RST+2mqL2/5Pz0W8ayv9wEYAAAAAElFTkSuQmCC",l=({user:e,timeElapsed:t,hideOptions:n})=>{const[a,l]=(0,s.useState)(e?.avatarUrl||i),c=(0,s.useCallback)((()=>{a!==i&&l(i)}),[a]);return(0,r.jsxs)("div",{className:"facebook-preview__post-header",children:[(0,r.jsxs)("div",{className:"facebook-preview__post-header-content",children:[(0,r.jsx)("img",{className:"facebook-preview__post-header-avatar",src:a,alt:"",onError:c}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"facebook-preview__post-header-name",children:e?.displayName|| | |
| 223 | -// translators: name of a fictional Facebook User | |
| 224 | -__("Anonymous User","jetpack")}),(0,r.jsxs)("div",{className:"facebook-preview__post-header-share",children:[(0,r.jsx)("span",{className:"facebook-preview__post-header-time",children:t?__( | |
| 225 | -// translators: short version of `1 hour` | |
| 226 | -"1h","jetpack"):_x( | |
| 227 | -// translators: temporal indication of when a post was published | |
| 228 | -"Just now","","jetpack")}),(0,r.jsx)("span",{className:"facebook-preview__post-header-dot","aria-hidden":"true",children:"·"}),(0,r.jsx)(o.Z,{name:"public"})]})]})]}),!n&&(0,r.jsx)("div",{className:"facebook-preview__post-header-more"})]})}},69094:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(30275);n(40888);const a=({name:e})=>(0,r.jsx)("i",{className:`facebook-preview__post-icon facebook-preview__post-icon-${e}`})},13477:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var r=n(30275),a=n(55609),s=n(65736),o=n(10263),i=n(7558),l=n(26767),c=n(34245);const __=s.__,u=({headingLevel:e,hideLinkPreview:t,hidePostPreview:n,...s})=>{const u=!!s.media?.length,d=!!s.customImage;return(0,r.jsxs)("div",{className:"social-preview facebook-preview",children:[!n&&(0,r.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 229 | -// translators: refers to a social post on Facebook | |
| 230 | -__("Your post","jetpack")}),(0,r.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Facebook:","jetpack")}),u?(0,r.jsx)(c.C,{...s}):(0,r.jsx)(i.g,{...s})]}),!t&&(0,r.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 231 | -// translators: refers to a link to a Facebook post | |
| 232 | -__("Link preview","jetpack")}),(0,r.jsxs)("p",{className:"social-preview__section-desc",children:[__("This is what it will look like when someone shares the link to your WordPress post on Facebook.","jetpack")," ",(0,r.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),d?(0,r.jsx)(l.F,{...s}):(0,r.jsx)(i.g,{...s,compactDescription:!0,customText:"",user:void 0})]})]})}},17915:(e,t,n)=>{"use strict";n.d(t,{X:()=>c});var r=n(30275),a=n(21987);n(73443);const s=160,o=e=>{const t=e.startsWith("https://")?"https://":"http://",n=t+e.replace(t,"").split("/").join(" › ");return(0,a.SL)((0,a.hs)(68),(0,a.KB)(68))(n)},i=(0,a.SL)((0,a.hs)(63),(0,a.I$)(23,73),(0,a.KB)(63)),l=(0,a.SL)((0,a.hs)(s),(0,a.I$)(80,170),(0,a.KB)(s)),c=({description:e="",siteTitle:t,title:n="",url:s=""})=>{const c=(0,a.wy)(s);return(0,r.jsx)("div",{className:"search-preview",children:(0,r.jsxs)("div",{className:"search-preview__display",children:[(0,r.jsxs)("div",{className:"search-preview__header",children:[(0,r.jsxs)("div",{className:"search-preview__branding",children:[(0,r.jsx)("img",{className:"search-preview__icon",src:`https://www.google.com/s2/favicons?sz=128&domain_url=${c}`,alt:""}),(0,r.jsxs)("div",{className:"search-preview__site",children:[(0,r.jsx)("div",{className:"search-preview__site--title",children:t||c}),(0,r.jsx)("div",{className:"search-preview__url",children:o(s)})]})]}),(0,r.jsx)("div",{className:"search-preview__menu",children:(0,r.jsx)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})})})]}),(0,r.jsx)("div",{className:"search-preview__title",children:i(n)}),(0,r.jsx)("div",{className:"search-preview__description",children:l((0,a.ju)(e))})]})})}},21987:(e,t,n)=>{"use strict";n.d(t,{Dq:()=>p,I$:()=>l,KB:()=>c,SL:()=>u,YW:()=>A,ge:()=>m,hs:()=>i,ju:()=>d,qX:()=>h,u_:()=>f,vB:()=>g,wy:()=>o});var r=n(30275),a=n(69307),s=n(65736);const o=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),i=e=>t=>t.length<=e&&t,l=(e,t)=>n=>{const r=n.slice(0,t),a=r.lastIndexOf(" ");return a>e&&a<t&&r.slice(0,a).concat("…")},c=e=>t=>t.slice(0,e).concat("…"),u=(...e)=>t=>e.find((e=>!1!==e(t)))?.(t),d=(e,t=[])=>{const n=new RegExp(`(<([^${t.join("")}>]+)>)`,"gi");return e?e.replace(n,""):""},p=e=>d(e).substring(0,50),m=(e,t)=>new RegExp(`<${t}[^>]*>`,"gi").test(e),g=new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short"}).format,A=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format,h=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format,E={twitter:"https://twitter.com/hashtag/%1$s",facebook:"https://www.facebook.com/hashtag/%1$s",linkedin:"https://www.linkedin.com/feed/hashtag/?keywords=%1$s",instagram:"https://www.instagram.com/explore/tags/%1$s",mastodon:"https://%2$s/tags/%1$s",nextdoor:"https://nextdoor.com/hashtag/%1$s"};function f(e,t){const{platform:n,maxChars:o,maxLines:i,hyperlinkHashtags:l=!0,hyperlinkUrls:c="instagram"!==n}=t;let u=d(e);if(u=u.replaceAll(/(?:\s*[\n\r]){2,}/g,"\n\n"),o&&u.length>o&&(u=u.substring(0,o)),i){const e=u.split("\n");e.length>i&&(u=e.slice(0,i).join("\n"))}const p={};if(c){(u.match(/(https?:\/\/\S+)/g)||[]).forEach(((e,t)=>{p[`Link${t}`]=(0,r.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank",children:e}),u=u.replace(e,`<Link${t} />`)}))}if(l&&E[n]){const e=u.matchAll(/(^|\s)#(\w+)/g),a=E[n];[...e].forEach((([e,n,o],i)=>{const l=(0,s.sprintf)(a,o,t.hashtagDomain);p[`Hashtag${i}`]=(0,r.jsx)("a",{href:l,rel:"noopener noreferrer",target:"_blank",children:`#${o}`}),u=u.replace(e,`${n}<Hashtag${i} />`)}))}return u=u.replace(/\n/g,"<br />"),p.br=(0,r.jsx)("br",{}),(0,a.createInterpolateElement)(u,p)}},81683:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,P:()=>a});const r=120,a=2},68280:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(30275);const a=()=>(0,r.jsx)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:(0,r.jsx)("polygon",{fill:"none",points:"20 21 12 13.44 4 21 4 3 20 3 20 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})},68536:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(30275);const a=()=>(0,r.jsx)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:(0,r.jsx)("path",{d:"M20.656 17.008a9.993 9.993 0 1 0-3.59 3.615L22 22Z",fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2"})})},32854:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(30275);const a=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 340 340",width:"340",height:"340",children:(0,r.jsx)("path",{fill:"#DDD",d:"m169,.5a169,169 0 1,0 2,0zm0,86a76,76 0 1 1-2,0zM57,287q27-35 67-35h92q40,0 67,35a164,164 0 0,1-226,0"})})},15082:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(30275);const a=()=>(0,r.jsx)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:(0,r.jsx)("path",{d:"M16.792 3.904A4.989 4.989 0 0 1 21.5 9.122c0 3.072-2.652 4.959-5.197 7.222-2.512 2.243-3.865 3.469-4.303 3.752-.477-.309-2.143-1.823-4.303-3.752C5.141 14.072 2.5 12.167 2.5 9.122a4.989 4.989 0 0 1 4.708-5.218 4.21 4.21 0 0 1 3.675 1.941c.84 1.175.98 1.763 1.12 1.763s.278-.588 1.11-1.766a4.17 4.17 0 0 1 3.679-1.938m0-2a6.04 6.04 0 0 0-4.797 2.127 6.052 6.052 0 0 0-4.787-2.127A6.985 6.985 0 0 0 .5 9.122c0 3.61 2.55 5.827 5.015 7.97.283.246.569.494.853.747l1.027.918a44.998 44.998 0 0 0 3.518 3.018 2 2 0 0 0 2.174 0 45.263 45.263 0 0 0 3.626-3.115l.922-.824c.293-.26.59-.519.885-.774 2.334-2.025 4.98-4.32 4.98-7.94a6.985 6.985 0 0 0-6.708-7.218Z"})})},59215:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(30275);const a=()=>(0,r.jsxs)("svg",{width:"17",height:"5",viewBox:"0 0 17 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M2.11865 3.5C2.67094 3.5 3.11865 3.05228 3.11865 2.5C3.11865 1.94772 2.67094 1.5 2.11865 1.5C1.56637 1.5 1.11865 1.94772 1.11865 2.5C1.11865 3.05228 1.56637 3.5 2.11865 3.5Z",fill:"black",stroke:"black",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M8.55933 3.5C9.11161 3.5 9.55933 3.05228 9.55933 2.5C9.55933 1.94772 9.11161 1.5 8.55933 1.5C8.00704 1.5 7.55933 1.94772 7.55933 2.5C7.55933 3.05228 8.00704 3.5 8.55933 3.5Z",fill:"black",stroke:"black",strokeWidth:"2"}),(0,r.jsx)("path",{d:"M15 3.5C15.5523 3.5 16 3.05228 16 2.5C16 1.94772 15.5523 1.5 15 1.5C14.4477 1.5 14 1.94772 14 2.5C14 3.05228 14.4477 3.5 15 3.5Z",fill:"black",stroke:"black",strokeWidth:"2"})]})},46353:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(30275);const a=()=>(0,r.jsxs)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:[(0,r.jsx)("line",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2",x1:"22",x2:"9.218",y1:"3",y2:"10.083"}),(0,r.jsx)("polygon",{fill:"none",points:"11.698 20.334 22 3.001 2 3.001 9.218 10.084 11.698 20.334",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2"})]})},18131:(e,t,n)=>{"use strict";n.d(t,{R:()=>m});var r=n(30275),a=n(65736),s=n(21987),o=n(81683),i=n(68280),l=n(68536),c=n(32854),u=n(15082),d=n(59215),p=n(46353);n(78296);const __=a.__;function m({image:e,media:t,name:n,profileImage:a,caption:m}){const g=n||"username",A=t?.[0];return(0,r.jsx)("div",{className:"instagram-preview__wrapper",children:(0,r.jsxs)("section",{className:"instagram-preview__container",children:[(0,r.jsxs)("div",{className:"instagram-preview__header",children:[(0,r.jsx)("div",{className:"instagram-preview__header--avatar",children:a?(0,r.jsx)("img",{src:a,alt:""}):(0,r.jsx)(c.q,{})}),(0,r.jsxs)("div",{className:"instagram-preview__header--profile",children:[(0,r.jsx)("div",{className:"instagram-preview__header--profile-name",children:g}),(0,r.jsx)("div",{className:"instagram-preview__header--profile-menu",children:(0,r.jsx)(d.v,{})})]})]}),(0,r.jsx)("div",{className:"instagram-preview__media",children:A?(0,r.jsx)("div",{className:"instagram-preview__media-item",children:A.type.startsWith("video/")?(0,r.jsx)("video",{controls:!1,className:"instagram-preview__media--video",children:(0,r.jsx)("source",{src:A.url,type:A.type})}):(0,r.jsx)("img",{className:"instagram-preview__media--image",src:e,alt:""})}):(0,r.jsx)("img",{className:"instagram-preview__media--image",src:e,alt:""})}),(0,r.jsxs)("div",{className:"instagram-preview__content",children:[(0,r.jsxs)("section",{className:"instagram-preview__content--actions",children:[(0,r.jsxs)("div",{className:"instagram-preview__content--actions-primary",children:[(0,r.jsx)(u.X,{}),(0,r.jsx)(l.s,{}),(0,r.jsx)(p.m,{})]}),(0,r.jsx)("div",{className:"instagram-preview__content--actions-secondary",children:(0,r.jsx)(i.r,{})})]}),(0,r.jsxs)("div",{className:"instagram-preview__content--body",children:[(0,r.jsx)("div",{className:"instagram-preview__content--name",children:g})," ",m?(0,r.jsx)("div",{className:"instagram-preview__content--text",children:(0,s.u_)(m,{platform:"instagram",maxChars:o.A,maxLines:o.P})}):null]}),(0,r.jsx)("div",{className:"instagram-preview__content--footer",children:(0,r.jsx)("span",{children:__("View one comment","jetpack")})})]})]})})}},4049:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(30275),a=n(65736),s=n(10263),o=n(18131);const __=a.__,i=({headingLevel:e,hidePostPreview:t,...n})=>(0,r.jsx)("div",{className:"social-preview instagram-preview",children:!t&&(0,r.jsxs)("section",{className:"social-preview__section instagram-preview__section",children:[(0,r.jsx)(s.Z,{level:e,children: | |
| 233 | -// translators: refers to a social post on Instagram | |
| 234 | -__("Your post","jetpack")}),(0,r.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Instagram:","jetpack")}),(0,r.jsx)(o.R,{...n})]})})},24687:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,P:()=>a});const r=212,a=3},52493:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(30275);const a=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",width:"128",height:"128",children:[(0,r.jsx)("path",{fill:"#e7e2dc",d:"M0 0h128v128H0z"}),(0,r.jsx)("path",{d:"M88.41 84.67a32 32 0 10-48.82 0 66.13 66.13 0 0148.82 0z",fill:"#788fa5"}),(0,r.jsx)("path",{d:"M88.41 84.67a32 32 0 01-48.82 0A66.79 66.79 0 000 128h128a66.79 66.79 0 00-39.59-43.33z",fill:"#9db3c8"}),(0,r.jsx)("path",{d:"M64 96a31.93 31.93 0 0024.41-11.33 66.13 66.13 0 00-48.82 0A31.93 31.93 0 0064 96z",fill:"#56687a"})]})},23736:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(30275),a=n(21987),s=n(98170);function o(e){return(0,r.jsx)(s.w,{name:"",profileImage:"",...e,description:"",media:void 0,title:e.title||(0,a.Dq)(e.description)})}},98170:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var r=n(30275),a=n(65736),s=n(21987),o=n(24687),i=n(52493);n(44046);const __=a.__;function l({articleReadTime:e=5,image:t,jobTitle:n,name:l,profileImage:c,description:u,media:d,title:p,url:m}){const g=!!d?.length;return(0,r.jsx)("div",{className:"linkedin-preview__wrapper",children:(0,r.jsxs)("section",{className:"linkedin-preview__container "+(g?"has-media":""),children:[(0,r.jsxs)("div",{className:"linkedin-preview__header",children:[(0,r.jsx)("div",{className:"linkedin-preview__header--avatar",children:c?(0,r.jsx)("img",{src:c,alt:""}):(0,r.jsx)(i.q,{})}),(0,r.jsxs)("div",{className:"linkedin-preview__header--profile",children:[(0,r.jsxs)("div",{className:"linkedin-preview__header--profile-info",children:[(0,r.jsx)("div",{className:"linkedin-preview__header--profile-name",children:l||__("Account Name","jetpack")}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)("div",{className:"linkedin-preview__header--profile-actor",children: | |
| 235 | -// translators: refers to the actor level of the post being shared, e.g. "1st", "2nd", "3rd", etc. | |
| 236 | -__("1st","jetpack")})]}),n?(0,r.jsx)("div",{className:"linkedin-preview__header--profile-title",children:n}):null,(0,r.jsxs)("div",{className:"linkedin-preview__header--profile-meta",children:[(0,r.jsx)("span",{children: | |
| 237 | -// translators: refers to the time since the post was published, e.g. "1h" | |
| 238 | -__("1h","jetpack")}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",focusable:"false",children:(0,r.jsx)("path",{d:"M8 1a7 7 0 107 7 7 7 0 00-7-7zM3 8a5 5 0 011-3l.55.55A1.5 1.5 0 015 6.62v1.07a.75.75 0 00.22.53l.56.56a.75.75 0 00.53.22H7v.69a.75.75 0 00.22.53l.56.56a.75.75 0 01.22.53V13a5 5 0 01-5-5zm6.24 4.83l2-2.46a.75.75 0 00.09-.8l-.58-1.16A.76.76 0 0010 8H7v-.19a.51.51 0 01.28-.45l.38-.19a.74.74 0 01.68 0L9 7.5l.38-.7a1 1 0 00.12-.48v-.85a.78.78 0 01.21-.53l1.07-1.09a5 5 0 01-1.54 9z"})})]})]})]}),(0,r.jsxs)("div",{className:"linkedin-preview__content",children:[u?(0,r.jsx)("div",{className:"linkedin-preview__caption",children:(0,s.u_)(u,{platform:"linkedin",maxChars:o.A,maxLines:o.P})}):null,g?(0,r.jsx)("div",{className:"linkedin-preview__media",children:d.map(((e,t)=>(0,r.jsx)("div",{className:"linkedin-preview__media-item",children:e.type.startsWith("video/")?(0,r.jsx)("video",{controls:!0,children:(0,r.jsx)("source",{src:e.url,type:e.type})}):(0,r.jsx)("img",{alt:e.alt||"",src:e.url})},`linkedin-preview__media-item-${t}`)))}):(0,r.jsxs)("article",{children:[t?(0,r.jsx)("img",{className:"linkedin-preview__image",src:t,alt:""}):null,m?(0,r.jsxs)("div",{className:"linkedin-preview__description",children:[(0,r.jsx)("h2",{className:"linkedin-preview__description--title",children:p||(0,s.Dq)(u)}),(0,r.jsxs)("div",{className:"linkedin-preview__description--meta",children:[(0,r.jsx)("span",{className:"linkedin-preview__description--url",children:(0,s.wy)(m)}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)("span",{children:(0,a.sprintf)( | |
| 239 | -// translators: %d is the number of minutes it takes to read the article | |
| 240 | -__("%d min read","jetpack"),e)})]})]}):null]})]})]})})}},93453:(e,t,n)=>{"use strict";n.d(t,{S:()=>c});var r=n(30275),a=n(55609),s=n(65736),o=n(10263),i=n(23736),l=n(98170);const __=s.__,c=({headingLevel:e,hideLinkPreview:t,hidePostPreview:n,...s})=>(0,r.jsxs)("div",{className:"social-preview linkedin-preview",children:[!n&&(0,r.jsxs)("section",{className:"social-preview__section linkedin-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 241 | -// translators: refers to a social post on LinkedIn | |
| 242 | -__("Your post","jetpack")}),(0,r.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on LinkedIn:","jetpack")}),(0,r.jsx)(l.w,{...s})]}),!t&&(0,r.jsxs)("section",{className:"social-preview__section linkedin-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 243 | -// translators: refers to a link to a LinkedIn post | |
| 244 | -__("Link preview","jetpack")}),(0,r.jsxs)("p",{className:"social-preview__section-desc",children:[__("This is what it will look like when someone shares the link to your WordPress post on LinkedIn.","jetpack")," ",(0,r.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,r.jsx)(i.u,{...s,name:"",profileImage:""})]})]})},64011:(e,t,n)=>{"use strict";n.d(t,{q:()=>r,t:()=>a});const r="mastodon.social",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAWlBMVEXZ4ejW3+fQ2eTN1+LL1eHI0+DG0d7U3ebY4Oi7ydm0w9a2xNe5x9i+y9vS2+XDz93BzduwwNWputKjts+rvNOmudGtvtSgtM2OpMKHn72Bmbl8lbacsMuVq8fmVh92AAAKsklEQVR4AezBMQEAAAQAMKB/ZSWc2wIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnmT17O5xVx8ItqJAFIZLUcIhqXV1/zudeZnObYCr+G2gwy91pOz7TrRKU0W0+vXLS9n/+uWb+mMIafCadV6Khi5PCemdxWtGCkXVCinGOy4KTVno0HZy8FFmfH1aRIfPmD7UWcPha3YQ+liJLrpx4pceMLFTR2sMFl9zUlFVtPBYw0a19xQOmPkzE/a3DtJiDdNRNRppsdoQttc2C39rHoeWNms9VrOyqSQHtvGB1mt6N/Fak+nK5EhJ7vQ6kkHROsLyRpNZnVsNSO6SRDjs0usVrePCeyyxoe9piV2coOtSA/b69kMOlneb/bdJgsFeXtFFdThC0hdax4fMpsn+PJKOLikiyfultZaTAq9EGRwzaLoc5XCUbekjjecs5qg/642kyMU9QWuRQU/v9RPnsgj6QI8MbEuXIiyyiPRGGDmn91OiI7Kw4iZz/sabSy9nzmsSb3p4vFP/tPdAkSKN5fy8pqQxwP2KCOSUrkr74BJGlbdHIugSAlCkSORCJrGiR73LriyKFPFcTp+1R2IDnU4bZOc1acslRfrBIDuj6WwRBfgGXJbRekAB8laDnkxcmpNI7jPsjUMJM5c3ogjX0JlidT2SB3C7oxXqu1fliwQ6j6+xR7KgBH+zRX/w84w323WD/EZ+pvFWTyRU34NnlNDeaEFmfq4JBQx0ClX1oBcddkVnkMhu4aTmGenpDA7ZcVL1jJibTPrEZ1j+Z+cMciWFYSAaIj6kFYABk77/UWc18m42X928Cn5XKLnsisGdhMNJ37A+Z1pTD451mKNuWksPM9Zpd/HuYc4a9QvkkyUypm/zRzkSfv7dd5dvIW+7E/0mMqALBFAiQ/ouGV0ggNE3i/f0Zvdyqnf1qY8CcdSj4QooEHQXWaWHrMPuR/x9saJDOiCu1/RVCrxAAHFd+SXrNAKHchDZAHsp+OS76ebCwxgoJ8PcnWN5Ww9BDEILQTylc9p6CNLMAaT1EMQwNF1Btp4cyxHeqi+AGQvtWYvsSt1AnLofXI89pUJHd0E1o3+YAgy+s+rfU8269KyX7Ke9hqLp/pAw99RCHOFfdlZsCgEIssqe9buMxaF7XK5UaCwEPMFX3X8Mm7G4hO+dDBU5ZAHm3jrrngIy63Du3XWvLR5GQ7BAnCkEYV3MGiouhgDm3joIn7S+OhTkJ93IEoKwLsVmWC4EJMMsfba3GY1LcuR1hiUEIVyJdXIIgjAsZw9BCIbllCUE+cdSkiNpWobjlDUsZwpB/M0EwSsE8UhIYK4hiD/yEhhDEL8wjmAPQfbkOGqBvekL4hEdRX56DskJxvRsQaZEo7yeLMirJBxbfa4gdUtAfm4QBLKgGhORsj51Y7iWhGR+6k59S0j+Y1q/EOQvNWeR6DwMA2E/LIXJfP9j/lhWrFdH3sy3D1nVjJQq1nrMQH62HmzMhOdQdi5LG+u8984aPcoJxvp/Z4vc2fArLFF72HMLaP0NG0YZ0fkbTICxW0JCVywg2vhHJFlyC+4ZF8cE4O+wxC/ikyvo/DNue0SiJ9j1s83ywVFsX/9pBZ219hIbt1W2DDlbMiIzuqMTqhIBCReZCmc7FkXkcvTZzKNlMm6AHGvg+CzQqgf3/BsOdrtqReJB8Xz+kTLB9+iEStyqa/d/BVd+5nZkYLMtcle4scAnCOFT3Bna2wqSiMQxl/9rH55ibhNn67ETRD44t6QkxiTipDcJVqRZuC6B+AlC+ZI1IjqlTdrRQPFwB4X1y6AniHxHgfWayOmkG4T8CsulUydIqt7TXkHQSQISGKuw2Smi2bPRFBnwm3TpG605uUyUkO0ikZyND/2E/xZLpFm0zNKsLNncQstxBxgarV66zyW+Zi0rAbFsT2EyA+LShk+uBatYPB+CMsuw/bjNdHXDZlQkZ4OdHeV5E7l6ZExCGxPGHKLhFC5ELfD0NwVDDTp4Msn3ucTvDQfUkZMvhUMDut1JDzxrwlNhbghUruhFHr0G/RThWyHRQJrIVEKx8DVrgrSQSmHxhWgi2DUWz9sJz0Rm8OkfnhavNZzKWDr+yNyEZyGnnYLjG85EyicI6pfSM5piVW8KkE8wzeqLDTfg/08FVmN1CpQDUrO+oHyhI6CpgGz9dQNpFCy7CsTWMyy92ilg3g4oLvJdv6hXbwqa3+zdC3qqMBAF4BMISeSRjAyw/6Xevm6tmipGA1Tn34BfOUxOArVVM37OnbZYu0V2gK1m3D2dwh/nQn1REz6W5MDrsp+lF5q/8ps/d9DNhQW5Ul+T1K88IF+cvjAmjQb+PqBo67hdiW+BVzRaHJRdHdcWeBIq1BHB46eB10M44qmOCA7Po9zVx1pjcczwagaFE9Y0TzkeB0639UGrHc7seS0a51y1O+o6PB1X0GcmnfGIKXglNeK8+cykDSWelLLe4lc1r2L0+J31VuFFORp5DS2ihKeGVzCQQozQRAMvbuyoRIwIRN3IS2uJDESEpTcNL6ymNwrinKZ309IF8q6EOOMCfRgXLpB3BuKMp0+7hQvkg4U4pelLvXCByJoVF+i/iReyp/8MxImCvnU9L2KiA4tjwtBBNy60wTrQOCIU/dRyfj0dcRA/aTrSLLXhJan1uEDH6uXykFqPKOjUfrE8pNYjDJ2ZOJ9xR2cqfBOeIqZl5kNGJMJQzLBoHjIi8QHJn0jfUZxFlAzIwZQ9DxmRiIJouUSGjn5lIQ4vQuL22Z5fRRi8EZouqTM9340qIWDpsoYfp6YrlOThDF2xG/lBWrrGSCCarur6TMfziFJ2WDN0U6btVYSXI+EMgfherad5rBT6VcGiGPg+BWygOYLCy5p5iYwCoFq+i8LsRKysVxdVCh90z+l6vFFGErmgoFm0wxfb3/slKVeRNHvc7GtT4KC7/3vo5ey74MX4lPW84GThxg82Fq9EVWk3as+p9O2fraTNTwSPEw2n8jgoZLd1zIXUW5Q40YiD2bstIwPyg/E4V3GiPY55I4f2m/a7oUBMwYl2OFUGCWT2A5NQOkRZTlThjNMkb0e+VFemw+EXihN5RKgrU6LxKpy+3h1x6Z0eV5hLeci50JQWlyhO0+BXVgc5GcZLNWgLIEsgFS7x55mYAq8kch2q0uI6y0lGhcucLQ19M9riVVlflLoqrcMsZcY/9+N8qXVZeuswl6g4SYE8BHGKGpmIllOUyERMnGBCLoJTGGQiSk4wOGyJdHqFXETNt9sjF6HGTW2xRODbNchGDHyz0SMXYfh2hFyE6uVMuCmdNPqmaL7dDrmIYuSbTQqZiKKX1yBbUo0b2mEJ28prqQ1RNHKCQUE8nqqakVOMBcQjOVuarpk4VQXxQF3P9wkQj9TwfTqIh6qf6f/gSSCtg3is+nnykEB2EA+3f5L9lQQyVtgQCWQosCESSK2QhZg4wRiwIRLI5LEdEshIDtmIgW9Ue2yHBDJpZCV6vkEfHDZDAulJITfRSxzbMv7BxUoCGbYUhwQyGQexFL5s3HcFtkEC6etOK4hFOY6amq7yWJcEMvbTvmk7o73DWkRHwVSVLgur8JTEv/bgQAAAAAAAyP+1EVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUFpJkoc9sa+hgAAAAASUVORK5CYII="},82335:(e,t,n)=>{"use strict";n.d(t,{Eu:()=>i,WV:()=>l,eP:()=>c,tZ:()=>o});var r=n(21987),a=n(64011);const s=/^@([^@]*)@([^@]*)$/i,o=e=>(0,r.SL)((0,r.hs)(200),(0,r.KB)(200))((0,r.ju)(e))||"",i=(e,t)=>{const{instance:n,offset:a}=t;return(0,r.u_)(e,{platform:"mastodon",maxChars:470-a,hashtagDomain:n})},l=e=>(0,r.SL)((0,r.hs)(30),(0,r.KB)(30))((0,r.ju)(e))||"",c=e=>{const t=e.match(s);return{username:t?.[1]||"",instance:t?.[2]||a.q}}},16534:(e,t,n)=>{"use strict";n.d(t,{W:()=>l});var r=n(30275),a=n(93397),s=n(3440),o=n(37951),i=n(52664);n(46154);const l=e=>{const{user:t}=e;return(0,r.jsxs)("div",{className:"mastodon-preview__post",children:[(0,r.jsx)(i.Z,{user:t}),(0,r.jsx)(s.Z,{...e}),(0,r.jsx)(o.Z,{...e}),(0,r.jsx)(a.Z,{})]})}},67686:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var r=n(30275),a=n(65235),s=n.n(a),o=n(93397),i=n(3440),l=n(37951),c=n(52664);n(46154);const u=e=>{const{user:t,media:n}=e;return(0,r.jsxs)("div",{className:"mastodon-preview__post",children:[(0,r.jsx)(c.Z,{user:t}),(0,r.jsx)(i.Z,{...e,children:n?.length?(0,r.jsx)("div",{className:s()("mastodon-preview__media",{"as-grid":n.length>1}),children:n.map(((e,t)=>(0,r.jsx)("div",{className:"mastodon-preview__media-item",children:e.type.startsWith("video/")?(0,r.jsx)("video",{controls:!0,children:(0,r.jsx)("source",{src:e.url,type:e.type})}):(0,r.jsx)("img",{alt:e.alt||"",src:e.url})},`mastodon-preview__media-item-${t}`)))}):null}),n?.length?null:(0,r.jsx)(l.Z,{...e}),(0,r.jsx)(o.Z,{})]})}},93397:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(30275);n(7679);const a=()=>(0,r.jsxs)("div",{className:"mastodon-preview__post-actions",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M760-200v-160q0-50-35-85t-85-35H273l144 144-57 56-240-240 240-240 57 56-144 144h367q83 0 141.5 58.5T840-360v160h-80Z"})})," ",(0,r.jsx)("span",{children:0})]}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M280-80 120-240l160-160 56 58-62 62h406v-160h80v240H274l62 62-56 58Zm-80-440v-240h486l-62-62 56-58 160 160-160 160-56-58 62-62H280v160h-80Z"})})}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z"})})}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M200-120v-640q0-33 23.5-56.5T280-840h400q33 0 56.5 23.5T760-760v640L480-240 200-120Zm80-122 200-86 200 86v-518H280v518Zm0-518h400-400Z"})})}),(0,r.jsx)("div",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M240-400q-33 0-56.5-23.5T160-480q0-33 23.5-56.5T240-560q33 0 56.5 23.5T320-480q0 33-23.5 56.5T240-400Zm240 0q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm240 0q-33 0-56.5-23.5T640-480q0-33 23.5-56.5T720-560q33 0 56.5 23.5T800-480q0 33-23.5 56.5T720-400Z"})})})]})},3440:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30275),a=n(21987),s=n(82335);n(15184);const o=e=>{const{title:t,description:n,customText:o,url:i,user:l,children:c}=e,u={instance:l?.address?(0,s.eP)(l.address).instance:"",offset:0};let d;if(o)d=(0,r.jsx)("p",{children:(0,s.Eu)(o,u)});else if(n)if(t){const e=(0,a.ju)(t);u.offset=e.length,d=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:e}),(0,r.jsx)("p",{children:(0,s.Eu)(n,u)})]})}else d=(0,r.jsx)("p",{children:(0,s.Eu)(n,u)});else d=(0,r.jsx)("p",{children:(0,s.Eu)(t,u)});return(0,r.jsxs)("div",{className:"mastodon-preview__body",children:[d,(0,r.jsx)("a",{href:i,target:"_blank",rel:"noreferrer noopener",children:(0,s.WV)(i.replace(/^https?:\/\//,""))}),c]})}},37951:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(30275),a=n(65736),s=n(65235),o=n.n(s),i=n(21987),l=n(82335);n(9170);const __=a.__,c=({siteName:e,title:t,description:n,url:a,image:s,customImage:c})=>(0,r.jsxs)("div",{className:o()("mastodon-preview__card",{"has-image":s}),children:[(0,r.jsx)("div",{className:"mastodon-preview__card-img",children:s||c?(0,r.jsx)("img",{src:s||c,alt:__("Mastodon preview thumbnail","jetpack")}):(0,r.jsx)("div",{className:"mastodon-preview__card-img--fallback",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520h200L520-800v200Z"})})})}),(0,r.jsxs)("div",{className:"mastodon-preview__card-text",children:[(0,r.jsx)("span",{className:"mastodon-preview__card-site",children:e||(0,i.wy)(a)}),(0,r.jsx)("span",{className:"mastodon-preview__card-title",children:(0,l.tZ)(t)||(0,i.Dq)(n)}),(0,r.jsx)("span",{className:"mastodon-preview__card-description",children:(0,i.ju)(n)})]})]})},52664:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(30275),a=n(65736),s=n(21987),o=n(64011),i=n(34525);n(32295);const __=a.__,l=({user:e})=>{const{displayName:t,address:n,avatarUrl:a}=e||{};return(0,r.jsxs)("div",{className:"mastodon-preview__post-header",children:[(0,r.jsxs)("div",{className:"mastodon-preview__post-header-user",children:[(0,r.jsx)("img",{className:"mastodon-preview__post-avatar",src:a||o.t,alt:""}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mastodon-preview__post-header-displayname",children:t|| | |
| 245 | -// translators: username of a fictional Mastodon User | |
| 246 | -__("anonymous-user","jetpack")}),(0,r.jsx)("div",{className:"mastodon-preview__post-header-username",children:n?.replace(`@${o.q}`,"")||"@username"})]})]}),(0,r.jsxs)("div",{className:"mastodon-preview__post-header-audience",children:[(0,r.jsx)(i.n,{}),(0,s.qX)(new Date)]})]})}},34525:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(30275);function a(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"15",viewBox:"0 -960 960 960",width:"15",role:"img",children:(0,r.jsx)("path",{d:"M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-40-82v-78q-33 0-56.5-23.5T360-320v-40L168-552q-3 18-5.5 36t-2.5 36q0 121 79.5 212T440-162Zm276-102q20-22 36-47.5t26.5-53q10.5-27.5 16-56.5t5.5-59q0-98-54.5-179T600-776v16q0 33-23.5 56.5T520-680h-80v80q0 17-11.5 28.5T400-560h-80v80h240q17 0 28.5 11.5T600-440v120h40q26 0 47 15.5t29 40.5Z"})})}},60312:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(30275),a=n(55609),s=n(65736),o=n(10263),i=n(16534),l=n(67686);const __=s.__,c=({headingLevel:e,hidePostPreview:t,hideLinkPreview:n,...s})=>(0,r.jsxs)("div",{className:"social-preview mastodon-preview",children:[!t&&(0,r.jsxs)("section",{className:"social-preview__section mastodon-preview__section",children:[(0,r.jsx)(o.O,{level:e,children: | |
| 247 | -// translators: refers to a social post on Mastodon | |
| 248 | -__("Your post","jetpack")}),(0,r.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Mastodon:","jetpack")}),(0,r.jsx)(l.h,{...s})]}),!n&&(0,r.jsxs)("section",{className:"social-preview__section mastodon-preview__section",children:[(0,r.jsx)(o.O,{level:e,children: | |
| 249 | -// translators: refers to a link to a Mastodon post | |
| 250 | -__("Link preview","jetpack")}),(0,r.jsxs)("p",{className:"social-preview__section-desc",children:[__("This is what it will look like when someone shares the link to your WordPress post on Mastodon.","jetpack")," ",(0,r.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,r.jsx)(i.W,{...s,user:void 0})]})]})},41678:(e,t,n)=>{"use strict";n.d(t,{A:()=>r,P:()=>a});const r=160,a=2},38664:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(30275),a=n(65736),s=n(45551),o=n(7254),i=n(5812);const __=a.__;function l(){return(0,r.jsxs)("div",{className:"nextdoor-preview__footer--actions",children:[(0,r.jsxs)("div",{className:"nextdoor-preview__footer--actions-item",children:[(0,r.jsx)(o.l,{}),(0,r.jsx)("span",{children:__("Like","jetpack")})]}),(0,r.jsxs)("div",{className:"nextdoor-preview__footer--actions-item",children:[(0,r.jsx)(s.q,{}),(0,r.jsx)("span",{children:__("Comment","jetpack")})]}),(0,r.jsxs)("div",{className:"nextdoor-preview__footer--actions-item",children:[(0,r.jsx)(i.a,{}),(0,r.jsx)("span",{children:__("Share","jetpack")})]})]})}},98248:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(30275);function a(){return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"#dfe1e4",fillRule:"evenodd",d:"M7.127 13.876a.732.732 0 1 0 1.035 1.035l4.75-4.749a.732.732 0 0 0 0-1.035L8.123 4.34A.732.732 0 0 0 7.09 5.375l4.27 4.27-4.232 4.23Z"})})}},45551:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(30275);function a(){return(0,r.jsx)("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 10.031C2 5.596 5.574 2 10 2h4c4.427 0 8 3.596 8 8.031 0 4.435-3.573 8.031-8 8.031h-1.52a17.033 17.033 0 0 1-1.377 1.467c-.991.938-2.456 2.079-4.086 2.437a1.403 1.403 0 0 1-1.458-.565 1.55 1.55 0 0 1-.195-1.394c.28-.823.395-1.734.434-2.464.014-.257.018-.485.018-.672A8.017 8.017 0 0 1 2 10.031Zm5.798 6.178a7.02 7.02 0 0 1 .016.418c.005.252.004.606-.019 1.023-.03.573-.103 1.285-.266 2.024.775-.377 1.54-.974 2.202-1.598a15.066 15.066 0 0 0 1.448-1.586l.017-.022.003-.004a1 1 0 0 1 .801-.402h2c3.314 0 6-2.692 6-6.03C20 6.691 17.314 4 14 4h-4c-3.314 0-6 2.692-6 6.031 0 2.336 1.32 4.36 3.258 5.359.308.159.515.474.54.82Z",clipRule:"evenodd"})})}},63209:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(30275);const a=()=>(0,r.jsx)("div",{className:"nextdoor-preview__default-avatar",children:"A"})},75742:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var r=n(30275);function a(){return(0,r.jsx)("div",{className:"nextdoor-preview__default-image",children:(0,r.jsxs)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",color:"#055c00",children:[(0,r.jsx)("path",{fill:"currentColor",d:"M13.207 5.207c1.51-1.51 4.076-1.51 5.586 0 1.51 1.51 1.51 4.076 0 5.586l-2.1 2.1c-1.51 1.51-4.077 1.51-5.586 0a1 1 0 1 0-1.414 1.414c2.29 2.29 6.123 2.29 8.414 0l2.1-2.1c2.29-2.29 2.29-6.124 0-8.414s-6.124-2.29-8.414 0l-.7.7a1 1 0 0 0 1.414 1.414l.7-.7Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M7.307 11.107c1.51-1.51 4.076-1.51 5.586 0a1 1 0 0 0 1.414-1.414c-2.29-2.29-6.124-2.29-8.414 0l-2.1 2.1c-2.29 2.29-2.29 6.123 0 8.414 2.29 2.29 6.124 2.29 8.414 0l.7-.7a1 1 0 0 0-1.414-1.414l-.7.7c-1.51 1.51-4.076 1.51-5.586 0-1.51-1.51-1.51-4.076 0-5.586l2.1-2.1Z"})]})})}},91127:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(30275);function a(){return(0,r.jsx)("svg",{width:"14",height:"14",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.495-7.643c.286-.335.46-.357.505-.357.045 0 .219.022.505.357.282.33.581.868.852 1.619.464 1.283.79 3.034.872 5.024H9.771c.082-1.99.408-3.741.871-5.024.272-.751.571-1.289.854-1.62ZM7.77 11c.084-2.181.439-4.171.992-5.704.093-.255.192-.502.298-.738A8.009 8.009 0 0 0 4.062 11h3.707Zm-3.707 2h3.707c.084 2.181.439 4.171.992 5.704.093.255.192.502.298.738A8.009 8.009 0 0 1 4.062 13Zm15.876-2a8.009 8.009 0 0 0-4.997-6.442c.106.236.205.483.298.738.553 1.533.908 3.523.992 5.704h3.707Zm-3.707 2h3.707a8.009 8.009 0 0 1-4.997 6.442c.106-.236.205-.483.298-.738.553-1.533.908-3.523.992-5.704Zm-2.002 0c-.082 1.99-.408 3.741-.871 5.024-.272.751-.571 1.289-.854 1.62-.285.334-.46.356-.504.356-.045 0-.219-.022-.505-.357-.282-.33-.581-.868-.852-1.619-.464-1.283-.79-3.034-.872-5.024h4.458Z",clipRule:"evenodd"})})}},7254:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(30275);function a(){return(0,r.jsx)("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.275 8.752a1.5 1.5 0 0 1-2.55 0C9.75 7.18 8.719 5.617 6.565 6.074 5.248 6.352 4 7.433 4 9.644c0 2.153 1.348 4.592 4.259 7.236A28.475 28.475 0 0 0 12 19.74a28.475 28.475 0 0 0 3.741-2.86C18.651 14.236 20 11.797 20 9.643c0-2.21-1.25-3.29-2.564-3.57-2.155-.456-3.187 1.106-4.16 2.68Zm-2.581-3.48C7.634 2.58 2 4.217 2 9.643c0 2.996 1.85 5.934 4.914 8.717 1.478 1.343 3.1 2.585 4.839 3.575a.5.5 0 0 0 .494 0c1.739-.99 3.361-2.232 4.84-3.575C20.148 15.577 22 12.64 22 9.643c0-5.426-5.634-7.062-8.694-4.371A5.287 5.287 0 0 0 12 7.04a5.287 5.287 0 0 0-1.306-1.77Z",clipRule:"evenodd"})})}},5812:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var r=n(30275);function a(){return(0,r.jsx)("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.617 2.076a1 1 0 0 1 1.09.217l9 9a1 1 0 0 1 0 1.414l-9 9A1 1 0 0 1 11 21v-4.436c-2.849.366-5.261 2.271-6.384 4.837a1 1 0 0 1-1.856-.06C2.338 20.182 2 18.86 2 17.5a9.959 9.959 0 0 1 9-9.951V3a1 1 0 0 1 .617-.924ZM13 5.414V8.5a1 1 0 0 1-1 1c-4.448 0-8 3.552-8 8 0 .31.023.625.066.94C5.905 16.067 8.776 14.5 12 14.5a1 1 0 0 1 1 1v3.086L19.586 12 13 5.414Z",clipRule:"evenodd"})})}},33684:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(30275),a=n(21987),s=n(87591);function o(e){return(0,r.jsx)(s.M,{name:"",profileImage:"",...e,description:"",media:void 0,title:e.title||(0,a.Dq)(e.description)})}},87591:(e,t,n)=>{"use strict";n.d(t,{M:()=>g});var r=n(30275),a=n(65736),s=n(65235),o=n.n(s),i=n(21987),l=n(41678),c=n(38664),u=n(98248),d=n(63209),p=n(75742),m=n(91127);n(18145);const __=a.__;function g({image:e,name:t,profileImage:n,description:a,neighborhood:s,media:g,title:A,url:h}){const E=!!g?.length;return(0,r.jsx)("div",{className:"nextdoor-preview__wrapper",children:(0,r.jsx)("section",{className:"nextdoor-preview__container "+(E?"has-media":""),children:(0,r.jsxs)("div",{className:"nextdoor-preview__content",children:[(0,r.jsxs)("div",{className:"nextdoor-preview__header",children:[(0,r.jsx)("div",{className:"nextdoor-preview__header--avatar",children:n?(0,r.jsx)("img",{src:n,alt:""}):(0,r.jsx)(d.q,{})}),(0,r.jsxs)("div",{className:"nextdoor-preview__header--details",children:[(0,r.jsx)("div",{className:"nextdoor-preview__header--name",children:t||__("Account Name","jetpack")}),(0,r.jsxs)("div",{className:"nextdoor-preview__header--meta",children:[(0,r.jsx)("span",{children:s||__("Neighborhood","jetpack")}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)("span",{children:(0,i.vB)(Date.now())}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)(m.n,{})]})]})]}),(0,r.jsxs)("div",{className:"nextdoor-preview__body",children:[a?(0,r.jsx)("div",{className:"nextdoor-preview__caption",children:(0,i.u_)(a,{platform:"nextdoor",maxChars:l.A,maxLines:l.P})}):null,E?(0,r.jsx)("div",{className:"nextdoor-preview__media",children:g.map(((e,t)=>(0,r.jsx)("div",{className:"nextdoor-preview__media-item",children:e?.type?.startsWith("video/")?(0,r.jsx)("video",{controls:!0,children:(0,r.jsx)("source",{src:e.url,type:e.type})}):(0,r.jsx)("img",{alt:e.alt||"",src:e.url})},`nextdoor-preview__media-item-${t}`)))}):null,(0,r.jsxs)("article",{className:o()("nextdoor-preview__card",{"small-preview":!e||E}),children:[e?(0,r.jsx)("img",{className:"nextdoor-preview__image",src:e,alt:""}):(0,r.jsx)(p.Q,{}),h?(0,r.jsxs)("div",{className:"nextdoor-preview__description",children:[(0,r.jsx)("h2",{className:"nextdoor-preview__description--title",children:A||(0,i.Dq)(a)}),(0,r.jsx)("span",{className:"nextdoor-preview__description--url",children:(0,i.wy)(h)})]}):null,E?(0,r.jsx)("div",{className:"nextdoor-preview__card--chevron-wrapper",children:(0,r.jsx)(u.D,{})}):null]})]}),(0,r.jsx)("div",{className:"nextdoor-preview__footer",children:(0,r.jsx)(c.p,{})})]})})})}},93122:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(30275),a=n(55609),s=n(65736),o=n(10263),i=n(33684),l=n(87591);const __=s.__,c=({headingLevel:e,hideLinkPreview:t,hidePostPreview:n,...s})=>(0,r.jsxs)("div",{className:"social-preview nextdoor-preview",children:[!n&&(0,r.jsxs)("section",{className:"social-preview__section nextdoor-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 251 | -// translators: refers to a social post on Nextdoor | |
| 252 | -__("Your post","jetpack")}),(0,r.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Nextdoor:","jetpack")}),(0,r.jsx)(l.M,{...s})]}),!t&&(0,r.jsxs)("section",{className:"social-preview__section nextdoor-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 253 | -// translators: refers to a link to a Nextdoor post | |
| 254 | -__("Link preview","jetpack")}),(0,r.jsxs)("p",{className:"social-preview__section-desc",children:[__("This is what it will look like when someone shares the link to your WordPress post on Nextdoor.","jetpack")," ",(0,r.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,r.jsx)(i.t,{...s,name:"",profileImage:""})]})]})},10263:(e,t,n)=>{"use strict";n.d(t,{O:()=>s,Z:()=>o});var r=n(30275);const a=[2,3,4,5,6],s=({className:e,level:t,children:n})=>{const s=`h${t&&a.includes(t)?t:3}`;return(0,r.jsx)(s,{className:`social-preview__section-heading ${e??""}`,children:n})},o=s},80748:(e,t,n)=>{"use strict";n.d(t,{G:()=>s,M:()=>a});var r=n(21987);const a=e=>(0,r.SL)((0,r.hs)(1e3),(0,r.KB)(1e3))((0,r.ju)(e))||"",s=e=>(0,r.SL)((0,r.hs)(400),(0,r.KB)(400))((0,r.ju)(e))||""},96492:(e,t,n)=>{"use strict";n.d(t,{H:()=>c});var r=n(30275),a=n(65736),s=n(21987),o=n(80748),i=n(91100),l=n(5536);n(5609);const __=a.__,c=({title:e,description:t,image:n,user:a,url:c})=>{const u=a?.avatarUrl;return(0,r.jsxs)("div",{className:"tumblr-preview__post",children:[u&&(0,r.jsx)("img",{className:"tumblr-preview__avatar",src:u,alt:""}),(0,r.jsxs)("div",{className:"tumblr-preview__card",children:[(0,r.jsx)(l.Z,{user:a}),(0,r.jsxs)("div",{className:"tumblr-preview__window",children:[n&&(0,r.jsxs)("div",{className:"tumblr-preview__window-top",children:[(0,r.jsx)("div",{className:"tumblr-preview__overlay",children:(0,r.jsx)("div",{className:"tumblr-preview__title",children:(0,o.M)(e)})}),(0,r.jsx)("img",{className:"tumblr-preview__image",src:n,alt:__("Tumblr preview thumbnail","jetpack")})]}),(0,r.jsxs)("div",{className:"tumblr-preview__window-bottom "+(n?"":"is-full"),children:[!n&&(0,r.jsx)("div",{className:"tumblr-preview__title",children:(0,o.M)(e)}),t&&n&&(0,r.jsx)("div",{className:"tumblr-preview__description",children:(0,o.G)(t)}),c&&(0,r.jsx)("div",{className:"tumblr-preview__site-name",children:(0,s.wy)(c)})]})]}),(0,r.jsx)(i.Z,{})]})]})}},97450:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(30275),a=n(65736),s=n(80748),o=n(91100),i=n(5536);n(5609);const __=a.__,l=({title:e,description:t,image:n,user:a,url:l,customText:c,media:u})=>{const d=a?.avatarUrl,p=u?.[0];return(0,r.jsxs)("div",{className:"tumblr-preview__post",children:[d&&(0,r.jsx)("img",{className:"tumblr-preview__avatar",src:d,alt:""}),(0,r.jsxs)("div",{className:"tumblr-preview__card",children:[(0,r.jsx)(i.Z,{user:a}),(0,r.jsxs)("div",{className:"tumblr-preview__body",children:[(0,r.jsx)("div",{className:"tumblr-preview__title",children:(0,s.M)(e)}),c&&(0,r.jsx)("div",{className:"tumblr-preview__custom-text",children:c}),t&&(0,r.jsx)("div",{className:"tumblr-preview__description",children:(0,s.G)(t)}),p?(0,r.jsx)("div",{className:"tumblr-preview__media-item",children:p.type.startsWith("video/")?(0,r.jsx)("video",{controls:!0,className:"tumblr-preview__media--video",children:(0,r.jsx)("source",{src:p.url,type:p.type})}):(0,r.jsx)("img",{className:"tumblr-preview__image",src:n,alt:""})}):n&&(0,r.jsx)("img",{className:"tumblr-preview__image",src:n,alt:__("Tumblr preview thumbnail","jetpack")}),(0,r.jsx)("a",{className:"tumblr-preview__url",href:l,target:"_blank",rel:"noreferrer",children:__("View On WordPress","jetpack")})]}),(0,r.jsx)(o.Z,{})]})]})}},91100:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30275),a=n(65736),s=n(22313);n(91680);const __=a.__,o=()=>(0,r.jsxs)("div",{className:"tumblr-preview__post-actions",children:[(0,r.jsxs)("div",{className:"tumblr-preview__post-manage-actions",children:[(0,r.jsxs)("div",{className:"tumblr-preview__post-actions-blaze",children:[(0,r.jsx)(s.Z,{name:"blaze"})," Blaze"]}),(0,r.jsx)("ul",{children:[{icon:"delete", | |
| 255 | -// translators: "Delete" action on a Tumblr post | |
| 256 | -label:__("Delete","jetpack")},{icon:"edit", | |
| 257 | -// translators: "Edit" action on a Tumblr post | |
| 258 | -label:__("Edit","jetpack")}].map((({icon:e,label:t})=>(0,r.jsx)("li",{"aria-label":t,children:(0,r.jsx)(s.Z,{name:e})},e)))})]}),(0,r.jsxs)("div",{className:"tumblr-preview__post-social-actions",children:[(0,r.jsx)("div",{children: | |
| 259 | -// translators: count of notes on a Tumblr post | |
| 260 | -__("0 notes","jetpack")}),(0,r.jsx)("ul",{children:[{icon:"share", | |
| 261 | -// translators: "Share" action on a Tumblr post | |
| 262 | -label:__("Share","jetpack")},{icon:"reply", | |
| 263 | -// translators: "Reply" action on a Tumblr post | |
| 264 | -label:__("Reply","jetpack")},{icon:"reblog", | |
| 265 | -// translators: "Reblog" action on a Tumblr post | |
| 266 | -label:__("Reblog","jetpack")},{icon:"like", | |
| 267 | -// translators: "Like" action on a Tumblr post | |
| 268 | -label:__("Like","jetpack")}].map((({icon:e,label:t})=>(0,r.jsx)("li",{"aria-label":t,children:(0,r.jsx)(s.Z,{name:e})},e)))})]})]})},5536:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30275),a=n(65736),s=n(22313);n(49304);const __=a.__,o=({user:e})=>(0,r.jsxs)("div",{className:"tumblr-preview__post-header",children:[(0,r.jsx)("div",{className:"tumblr-preview__post-header-username",children:e?.displayName|| | |
| 269 | -// translators: username of a fictional Tumblr User | |
| 270 | -__("anonymous-user","jetpack")}),(0,r.jsx)(s.Z,{name:"ellipsis"})]})},22313:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(30275);n(27212);const a=({name:e})=>{let t;switch(e){case"blaze":t=(0,r.jsx)("svg",{viewBox:"0 0 25 22",children:(0,r.jsx)("path",{d:"m7.5059-0.24414c-0.79843 0.057223-1.2169 0.88587-1.1635 1.6128-0.2266 2.0449-1.4898 3.8696-3.1975 4.9778-3.0182 2.414-4.2201 6.8066-2.8033 10.411 0.92417 2.4679 2.9589 4.5674 5.4768 5.3928 0.95914 0.16102 1.7233-0.94358 1.3074-1.8059-0.11578-0.51062-0.17482-0.96516-0.17845-1.487 1.0413 1.5607 2.5484 2.8986 4.341 3.4975 1.0396-0.0154 1.98-0.64458 2.8516-1.1608 3.3821-2.1786 4.9604-6.7097 3.6597-10.518-0.49144-1.4599-1.2948-2.8935-2.5028-3.8698-0.7512-0.45498-1.661 0.09677-1.9202 0.86038-0.12274 0.16822-0.70352 1.1955-0.6191 0.61976 0.25488-3.4397-1.6789-7.0066-4.8123-8.4958-0.14322-0.037843-0.292-0.049464-0.43945-0.035156zm1.0586 3.5605c1.8947 2.0016 2.2326 5.1984 0.89062 7.5879-0.38498 0.96148 0.71762 2.0063 1.6567 1.5681 1.4159-0.4624 2.6998-1.3259 3.6577-2.4665 1.6442 2.5888 1.1465 6.2819-1.0629 8.3379-0.62378 0.60782-1.3666 1.0945-2.1754 1.4179-1.9543-0.989-3.3534-3.0966-3.5625-5.3125-0.25636-1.0253-1.81-1.2013-2.2852-0.25781-0.75058 1.3054-1.1846 2.7948-1.2305 4.3008-2.2396-1.9852-2.8468-5.4435-1.4609-8.0527 0.58926-1.239 1.651-2.13 2.724-2.9329 1.2958-1.1271 2.2791-2.62 2.7682-4.2683l0.071578 0.069832z"})});break;case"delete":t=(0,r.jsxs)("svg",{viewBox:"0 0 14 17",children:[(0,r.jsx)("path",{d:"M12 5v9c.1.7-.3 1-1 1H3c-.5 0-.9-.3-1-1V5c0-.6-.4-1-1-1-.5 0-1 .4-1 1v9.5C0 16.1 1.4 17 3 17h8c1.8 0 3-.8 3-2.5V5c0-.6-.5-1-1-1-.6 0-1 .5-1 1z"}),(0,r.jsx)("path",{d:"M4 12s0 1 1 1 1-1 1-1V5c0-.5-.4-1-1-1-.5 0-1 .5-1 1v7zm4 0s0 1 1 1 1-1 1-1V5c0-.5-.4-1-1-1-.5 0-1 .5-1 1v7zm5-10c.5 0 1-.4 1-1 0-.5-.4-.9-1-1H1C.5.1 0 .5 0 1c0 .6.6 1 1.1 1H13z"})]});break;case"edit":t=(0,r.jsx)("svg",{viewBox:"0 0 17.6 17.6",children:(0,r.jsx)("path",{d:"M5.3 13.8l-2.1.7.7-2.1L10.3 6l1.4 1.4-6.4 6.4zm6.4-9.3l-1.4-1.4-1.4 1.4-6.7 6.7-.2.5-2 5.9 3.8-1.3 2.1-.7.4-.1.3-.3 7.8-7.8c.1 0-2.7-2.9-2.7-2.9zm5.6-1.4L14.5.3c-.4-.4-1-.4-1.4 0l-1.4 1.4L15.9 6l1.4-1.4c.4-.5.4-1.1 0-1.5"})});break;case"share":t=(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12.6173 1.07612C12.991 0.921338 13.4211 1.00689 13.7071 1.29289L22.7071 10.2929C23.0832 10.669 23.0991 11.2736 22.7433 11.669L13.7433 21.669C13.4663 21.9767 13.0283 22.082 12.6417 21.9336C12.2552 21.7853 12 21.414 12 21V16H11.5C7.31775 16 3.92896 18.2486 2.95256 21.3044C2.80256 21.7738 2.33292 22.064 1.84598 21.9881C1.35904 21.9122 1 21.4928 1 21V18.5C1 12.3162 5.88069 7.27245 12 7.01067V2C12 1.59554 12.2436 1.2309 12.6173 1.07612ZM14 4.41421V8C14 8.55228 13.5523 9 13 9H12.5C7.64534 9 3.64117 12.6414 3.06988 17.3419C5.09636 15.2366 8.18218 14 11.5 14H13C13.5523 14 14 14.4477 14 15V18.394L20.622 11.0362L14 4.41421Z"})});break;case"reply":t=(0,r.jsx)("svg",{viewBox:"0 0 17 17",children:(0,r.jsx)("path",{d:"M8.7 0C4.1 0 .4 3.7.4 8.3c0 1.2.2 2.3.7 3.4-.2.6-.4 1.5-.7 2.5L0 15.8c-.2.7.5 1.4 1.2 1.2l1.6-.4 2.4-.7c1.1.5 2.2.7 3.4.7 4.6 0 8.3-3.7 8.3-8.3C17 3.7 13.3 0 8.7 0zM15 8.3c0 3.5-2.8 6.3-6.4 6.3-1.2 0-2.3-.3-3.2-.9l-3.2.9.9-3.2c-.5-.9-.9-2-.9-3.2.1-3.4 3-6.2 6.5-6.2S15 4.8 15 8.3z"})});break;case"reblog":t=(0,r.jsx)("svg",{viewBox:"0 0 17 18.1",children:(0,r.jsx)("path",{d:"M12.8.2c-.4-.4-.8-.2-.8.4v2H2c-2 0-2 2-2 2v5s0 1 1 1 1-1 1-1v-4c0-1 .5-1 1-1h9v2c0 .6.3.7.8.4L17 3.6 12.8.2zM4.2 17.9c.5.4.8.2.8-.3v-2h10c2 0 2-2 2-2v-5s0-1-1-1-1 1-1 1v4c0 1-.5 1-1 1H5v-2c0-.6-.3-.7-.8-.4L0 14.6l4.2 3.3z"})});break;case"like":t=(0,r.jsx)("svg",{viewBox:"0 0 20 18",children:(0,r.jsx)("path",{d:"M14.658 0c-1.625 0-3.21.767-4.463 2.156-.06.064-.127.138-.197.225-.074-.085-.137-.159-.196-.225C8.547.766 6.966 0 5.35 0 4.215 0 3.114.387 2.162 1.117c-2.773 2.13-2.611 5.89-1.017 8.5 2.158 3.535 6.556 7.18 7.416 7.875A2.3 2.3 0 0 0 9.998 18c.519 0 1.028-.18 1.436-.508.859-.695 5.257-4.34 7.416-7.875 1.595-2.616 1.765-6.376-1-8.5C16.895.387 15.792 0 14.657 0h.001zm0 2.124c.645 0 1.298.208 1.916.683 1.903 1.461 1.457 4.099.484 5.695-1.973 3.23-6.16 6.7-6.94 7.331a.191.191 0 0 1-.241 0c-.779-.631-4.966-4.101-6.94-7.332-.972-1.595-1.4-4.233.5-5.694.619-.475 1.27-.683 1.911-.683 1.064 0 2.095.574 2.898 1.461.495.549 1.658 2.082 1.753 2.203.095-.12 1.259-1.654 1.752-2.203.8-.887 1.842-1.461 2.908-1.461h-.001z"})});break;case"ellipsis":t=(0,r.jsx)("svg",{viewBox:"0 0 17.5 3.9",children:(0,r.jsx)("path",{d:"M17.5 1.9c0 1.1-.9 1.9-1.9 1.9-1.1 0-1.9-.9-1.9-1.9S14.5 0 15.6 0c1 0 1.9.9 1.9 1.9m-6.8 0c0 1.1-.9 1.9-1.9 1.9-1.1.1-2-.8-2-1.9 0-1 .9-1.9 2-1.9s1.9.9 1.9 1.9m-6.8 0c0 1.1-.9 2-2 2-1 0-1.9-.9-1.9-2S.9 0 1.9 0c1.1 0 2 .9 2 1.9"})})}return(0,r.jsx)("span",{className:`tumblr-preview__post-icon tumblr-preview__post-icon-${e}`,children:t})}},1044:(e,t,n)=>{"use strict";n.d(t,{b:()=>c});var r=n(30275),a=n(55609),s=n(65736),o=n(10263),i=n(96492),l=n(97450);const __=s.__,c=({headingLevel:e,hideLinkPreview:t,hidePostPreview:n,...s})=>{const c=!!s.media?.length;return(0,r.jsxs)("div",{className:"social-preview tumblr-preview",children:[!n&&(0,r.jsxs)("section",{className:"social-preview__section tumblr-preview__section",children:[(0,r.jsx)(o.O,{level:e,children: | |
| 271 | -// translators: refers to a social post on Tumblr | |
| 272 | -__("Your post","jetpack")}),(0,r.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Tumblr:","jetpack")}),c?(0,r.jsx)(l.x,{...s}):(0,r.jsx)(i.H,{...s})]}),!t&&(0,r.jsxs)("section",{className:"social-preview__section tumblr-preview__section",children:[(0,r.jsx)(o.O,{level:e,children: | |
| 273 | -// translators: refers to a link on Tumblr | |
| 274 | -__("Link preview","jetpack")}),(0,r.jsxs)("p",{className:"social-preview__section-desc",children:[__("This is what it will look like when someone shares the link to your WordPress post on Tumblr.","jetpack")," ",(0,r.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,r.jsx)(i.H,{...s,user:void 0})]})]})}},5894:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(30275),a=n(65235),s=n.n(a),o=n(21987);const i=(0,o.SL)((0,o.hs)(200),(0,o.KB)(200)),l=({description:e,image:t,title:n,cardType:a,url:l})=>{const c=s()(`twitter-preview__card-${a}`,{"twitter-preview__card-has-image":!!t});return(0,r.jsx)("div",{className:"twitter-preview__card",children:(0,r.jsxs)("div",{className:c,children:[t&&(0,r.jsx)("img",{className:"twitter-preview__card-image",src:t,alt:""}),(0,r.jsxs)("div",{className:"twitter-preview__card-body",children:[(0,r.jsx)("div",{className:"twitter-preview__card-url",children:(0,o.wy)(l||"")}),(0,r.jsx)("div",{className:"twitter-preview__card-title",children:n}),(0,r.jsx)("div",{className:"twitter-preview__card-description",children:i((0,o.ju)(e))})]})]})})}},66370:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var r=n(30275);const a=()=>(0,r.jsxs)("div",{className:"twitter-preview__footer",children:[(0,r.jsx)("span",{className:"twitter-preview__icon-replies",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01zm8.005-6c-3.317 0-6.005 2.69-6.005 6 0 3.37 2.77 6.08 6.138 6.01l.351-.01h1.761v2.3l5.087-2.81c1.951-1.08 3.163-3.13 3.163-5.36 0-3.39-2.744-6.13-6.129-6.13H9.756z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-retweets",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M4.5 3.88l4.432 4.14-1.364 1.46L5.5 7.55V16c0 1.1.896 2 2 2H13v2H7.5c-2.209 0-4-1.79-4-4V7.55L1.432 9.48.068 8.02 4.5 3.88zM16.5 6H11V4h5.5c2.209 0 4 1.79 4 4v8.45l2.068-1.93 1.364 1.46-4.432 4.14-4.432-4.14 1.364-1.46 2.068 1.93V8c0-1.1-.896-2-2-2z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-likes",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M16.697 5.5c-1.222-.06-2.679.51-3.89 2.16l-.805 1.09-.806-1.09C9.984 6.01 8.526 5.44 7.304 5.5c-1.243.07-2.349.78-2.91 1.91-.552 1.12-.633 2.78.479 4.82 1.074 1.97 3.257 4.27 7.129 6.61 3.87-2.34 6.052-4.64 7.126-6.61 1.111-2.04 1.03-3.7.477-4.82-.561-1.13-1.666-1.84-2.908-1.91zm4.187 7.69c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-analytics",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M8.75 21V3h2v18h-2zM18 21V8.5h2V21h-2zM4 21l.004-10h2L6 21H4zm9.248 0v-7h2v7h-2z"})})}),(0,r.jsx)("span",{className:"twitter-preview__icon-share",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 2.59l5.7 5.7-1.41 1.42L13 6.41V16h-2V6.41l-3.3 3.3-1.41-1.42L12 2.59zM21 15l-.02 3.51c0 1.38-1.12 2.49-2.5 2.49H5.5C4.11 21 3 19.88 3 18.5V15h2v3.5c0 .28.22.5.5.5h12.98c.28 0 .5-.22.5-.5L19 15h2z"})})})]})},78678:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(30275),a=n(65736),s=n(21987);const __=a.__,o=({name:e,screenName:t,date:n})=>(0,r.jsxs)("div",{className:"twitter-preview__header",children:[(0,r.jsx)("span",{className:"twitter-preview__name",children:e||__("Account Name","jetpack")}),(0,r.jsx)("span",{className:"twitter-preview__screen-name",children:t||"@account"}),(0,r.jsx)("span",{children:"·"}),(0,r.jsx)("span",{className:"twitter-preview__date",children:(0,s.YW)(n||Date.now())})]})},42029:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var r=n(30275);const a=()=>(0,r.jsxs)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"271pt",height:"270pt",viewBox:"0 0 271 270",children:[(0,r.jsx)("rect",{width:"100%",height:"100%",fill:"#ccd5de"}),(0,r.jsxs)("g",{transform:"translate(0,270) scale(0.1,-0.1)",fill:"#647785",stroke:"none",children:[(0,r.jsx)("path",{d:"M1251 2089 c-81 -14 -178 -65 -239 -125 -64 -65 -124 -185 -149 -299 -24 -111 -24 -339 -1 -415 38 -121 108 -193 227 -231 83 -27 339 -38 449 -19 139 23 236 91 286 200 59 130 52 395 -15 577 -88 235 -301 354 -558 312z"}),(0,r.jsx)("path",{d:"M1197 795 c-358 -68 -643 -357 -721 -732 l-14 -63 890 0 890 0 -7 42 c-11 70 -64 218 -102 288 -121 224 -336 394 -573 454 -92 24 -267 29 -363 11z"})]})]})},43503:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(30275),a=n(20445);const s=e=>(0,r.jsx)(a.g,{...e,text:"",media:void 0})},51075:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(30275),a=n(65235),s=n.n(a),o=n(99196);const i=({media:e})=>{const t=e.filter((e=>e.type.startsWith("image/")||e.type.startsWith("video/"))).filter(((e,t,n)=>0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type))).slice(0,4);if(0===t.length)return null;const n=t[0].type.startsWith("video/"),a=s()(["twitter-preview__media","twitter-preview__media-children-"+t.length]);return(0,r.jsx)("div",{className:a,children:t.map(((e,t)=>(0,r.jsx)(o.Fragment,{children:n?(0,r.jsx)("video",{controls:!0,children:(0,r.jsx)("source",{src:e.url,type:e.type})}):(0,r.jsx)("img",{alt:e.alt||"",src:e.url})},`twitter-preview__media-item-${t}`)))})}},20445:(e,t,n)=>{"use strict";n.d(t,{g:()=>d});var r=n(30275),a=n(5894),s=n(66370),o=n(78678),i=n(51075),l=n(15850),c=n(94615),u=n(98969);n(58449);const d=({date:e,description:t,image:n,media:d,name:p,profileImage:m,screenName:g,showThreadConnector:A,text:h,title:E,tweet:f,cardType:b,url:C})=>{const v=!!d?.length;return(0,r.jsx)("div",{className:"twitter-preview__wrapper",children:(0,r.jsxs)("div",{className:"twitter-preview__container",children:[(0,r.jsx)(c.Y,{profileImage:m,showThreadConnector:A}),(0,r.jsxs)("div",{className:"twitter-preview__main",children:[(0,r.jsx)(o.h,{name:p,screenName:g,date:e}),(0,r.jsxs)("div",{className:"twitter-preview__content",children:[h?(0,r.jsx)(u.x,{text:h,url:C||"",retainUrl:v}):null,v?(0,r.jsx)(i.p,{media:d}):null,f?(0,r.jsx)(l.P,{tweet:f}):null,!v&&C&&(0,r.jsx)(a.Z,{description:t||"",image:n,title:E||"",cardType:b||"",url:C})]}),(0,r.jsx)(s.$,{})]})]})})}},835:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var r=n(30275),a=n(55609),s=n(65736),o=n(10263),i=n(43503),l=n(20445);const __=s.__,c=({headingLevel:e,hideLinkPreview:t,hidePostPreview:n,tweets:s})=>s?.length?(0,r.jsxs)("div",{className:"social-preview twitter-preview",children:[!n&&(0,r.jsxs)("section",{className:"social-preview__section twitter-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 275 | -// translators: refers to a social post on Twitter | |
| 276 | -__("Your post","jetpack")}),(0,r.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on X:","jetpack")}),s.map(((e,t)=>{const n=t+1===s.length;return(0,r.jsx)(l.g,{...e,showThreadConnector:!n},`twitter-preview__tweet-${t}`)}))]}),!t&&(0,r.jsxs)("section",{className:"social-preview__section twitter-preview__section",children:[(0,r.jsx)(o.Z,{level:e,children: | |
| 277 | -// translators: refers to a link to a Twitter post | |
| 278 | -__("Link preview","jetpack")}),(0,r.jsxs)("p",{className:"social-preview__section-desc",children:[__("This is what it will look like when someone shares the link to your WordPress post on X.","jetpack")," ",(0,r.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,r.jsx)(i.m,{...s[0],name:"",profileImage:"",screenName:""})]})]}):null},15850:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(30275),a=n(55609);const s=({tweet:e})=>e?(0,r.jsxs)("div",{className:"twitter-preview__quote-tweet",children:[(0,r.jsx)(a.SandBox,{html:`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${e}"></a></blockquote>`,scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet"}),(0,r.jsx)("div",{className:"twitter-preview__quote-tweet-overlay"})]}):null},94615:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(30275),a=n(65736),s=n(42029);const __=a.__,o=({profileImage:e,showThreadConnector:t})=>(0,r.jsxs)("div",{className:"twitter-preview__sidebar",children:[(0,r.jsx)("div",{className:"twitter-preview__profile-image",children:e?(0,r.jsx)("img",{alt:__("Twitter profile image","jetpack"),src:e}):(0,r.jsx)(s.q,{})}),t&&(0,r.jsx)("div",{className:"twitter-preview__connector"})]})},98969:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var r=n(30275),a=n(21987);const s=({text:e,url:t,retainUrl:n})=>{if(!e)return null;const s=t&&!n&&e.endsWith(t)?e.substring(0,e.lastIndexOf(t)):e;return(0,r.jsx)("div",{className:"twitter-preview__text",children:(0,a.u_)(s,{platform:"twitter"})})}},51128:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))})),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(62942)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},62942:(e,t,n)=>{e.exports=function(e){function t(e){let n,a,s,o=null;function i(...e){if(!i.enabled)return;const r=i,a=Number(new Date),s=a-(n||a);r.diff=s,r.prev=n,r.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,a)=>{if("%%"===n)return"%";o++;const s=t.formatters[a];if("function"==typeof s){const t=e[o];n=s.call(r,t),e.splice(o,1),o--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(a!==t.namespaces&&(a=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(73171),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},99891:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,i=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,s),c=["gridicon","gridicons-fullscreen",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})))};var r,a=(r=n(99196))&&r.__esModule?r:{default:r},s=["size","onClick","icon","className"];function o(){return o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)}},73139:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,i=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,s),c=["gridicon","gridicons-notice-outline",i,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,a=(r=n(99196))&&r.__esModule?r:{default:r},s=["size","onClick","icon","className"];function o(){return o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)}},89933:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,i=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,s),c=["gridicon","gridicons-star",i,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.891 5.82 21l2.002-7.141L2 9.257l7.418-.304z"})))};var r,a=(r=n(99196))&&r.__esModule?r:{default:r},s=["size","onClick","icon","className"];function o(){return o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)}},38697:(e,t,n)=>{"use strict";n.d(t,{pi:()=>r});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)};Object.create;Object.create},92213:(e,t,n)=>{"use strict";function r(e,t){return Array(t+1).join(e)}n.d(t,{Z:()=>P});var a=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function s(e){return c(e,a)}var o=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function i(e){return c(e,o)}var l=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function c(e,t){return t.indexOf(e.nodeName)>=0}function u(e,t){return e.getElementsByTagName&&t.some((function(t){return e.getElementsByTagName(t).length}))}var d={};function p(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function m(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function g(e,t,n){for(var r=0;r<e.length;r++){var a=e[r];if(A(a,t,n))return a}}function A(e,t,n){var r=e.filter;if("string"==typeof r){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof r)throw new TypeError("`filter` needs to be a string, array, or function");if(r.call(e,t,n))return!0}}function h(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function E(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}d.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},d.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},d.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var a=Number(t.nodeName.charAt(1));return"setext"===n.headingStyle&&a<3?"\n\n"+e+"\n"+r(1===a?"=":"-",e.length)+"\n\n":"\n\n"+r("#",a)+" "+e+"\n\n"}},d.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},d.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},d.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",a=t.parentNode;if("OL"===a.nodeName){var s=a.getAttribute("start"),o=Array.prototype.indexOf.call(a.children,t);r=(s?Number(s)+o:o+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},d.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},d.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var a,s=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,i=n.fence.charAt(0),l=3,c=new RegExp("^"+i+"{3,}","gm");a=c.exec(o);)a[0].length>=l&&(l=a[0].length+1);var u=r(i,l);return"\n\n"+u+s+"\n"+o.replace(/\n$/,"")+"\n"+u+"\n\n"}},d.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},d.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href"),r=p(t.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+e+"]("+n+r+")"}},d.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,a,s=t.getAttribute("href"),o=p(t.getAttribute("title"));switch(o&&(o=' "'+o+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",a="["+e+"]: "+s+o;break;case"shortcut":r="["+e+"]",a="["+e+"]: "+s+o;break;default:var i=this.references.length+1;r="["+e+"]["+i+"]",a="["+i+"]: "+s+o}return this.references.push(a),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},d.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},d.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},d.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},d.image={filter:"img",replacement:function(e,t){var n=p(t.getAttribute("alt")),r=t.getAttribute("src")||"",a=p(t.getAttribute("title"));return r?"+")":""}},m.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=g(this.array,e,this.options))||(t=g(this._keep,e,this.options))||(t=g(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var f="undefined"!=typeof window?window:{};var b,C,v=function(){var e=f.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?f.DOMParser:(b=function(){},function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){window.ActiveXObject&&(e=!0)}return e}()?b.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:b.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t},b);function k(e,t){var n;"string"==typeof e?n=(C=C||new v).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):n=e.cloneNode(!0);return function(e){var t=e.element,n=e.isBlock,r=e.isVoid,a=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!a(t)){for(var s=null,o=!1,i=null,l=E(i,t,a);l!==t;){if(3===l.nodeType||4===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(s&&!/ $/.test(s.data)||o||" "!==c[0]||(c=c.substr(1)),!c){l=h(l);continue}l.data=c,s=l}else{if(1!==l.nodeType){l=h(l);continue}n(l)||"BR"===l.nodeName?(s&&(s.data=s.data.replace(/ $/,"")),s=null,o=!1):r(l)||a(l)?(s=null,o=!0):s&&(o=!1)}var u=E(i,l,a);i=l,l=u}s&&(s.data=s.data.replace(/ $/,""),s.data||h(s))}}({element:n,isBlock:s,isVoid:i,isPre:t.preformattedCode?B:null}),n}function B(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function y(e,t){return e.isBlock=s(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!i(e)&&!function(e){return c(e,l)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return u(e,o)}(e)&&!function(e){return u(e,l)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n=(r=e.textContent,a=r.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/),{leading:a[1],leadingAscii:a[2],leadingNonAscii:a[3],trailing:a[4],trailingNonAscii:a[5],trailingAscii:a[6]});var r,a;n.leadingAscii&&w("left",e,t)&&(n.leading=n.leadingNonAscii);n.trailingAscii&&w("right",e,t)&&(n.trailing=n.trailingNonAscii);return{leading:n.leading,trailing:n.trailing}}(e,t),e}function w(e,t,n){var r,a,o;return"left"===e?(r=t.previousSibling,a=/ $/):(r=t.nextSibling,a=/^ /),r&&(3===r.nodeType?o=a.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?o=!1:1!==r.nodeType||s(r)||(o=a.test(r.textContent))),o}var _=Array.prototype.reduce,I=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function j(e){if(!(this instanceof j))return new j(e);var t={rules:d,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},t,e),this.rules=new m(this.options)}function x(e){var t=this;return _.call(e.childNodes,(function(e,n){var r="";return 3===(n=new y(n,t.options)).nodeType?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):1===n.nodeType&&(r=Q.call(t,n)),N(e,r)}),"")}function S(e){var t=this;return this.rules.forEach((function(n){"function"==typeof n.append&&(e=N(e,n.append(t.options)))})),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function Q(e){var t=this.rules.forNode(e),n=x.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function N(e,t){var n=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=t.replace(/^\n*/,""),a=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,a)+r}j.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=x.call(this,new k(e,this.options));return S.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return I.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};const P=j},23427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(75908),a=n(9106),s=n(85016),o=n(11662);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var u=function(){function e(t){i(this,e),this._file=t,this.size=t.size}return c(e,[{key:"slice",value:function(e,t){if((0,s.Z)())return(0,o.Z)(this._file.slice(e,t));var n=this._file.slice(e,t);return Promise.resolve({value:n})}},{key:"close",value:function(){}}]),e}(),d=function(){function e(t,n){i(this,e),this._chunkSize=n,this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return c(e,[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var n=this,r=t<=this._bufferOffset+p(this._buffer);if(this._done||r){var a=this._getDataFromBuffer(e,t),s=null==a&&this._done;return Promise.resolve({value:a,done:s})}return this._reader.read().then((function(r){var a=r.value;return r.done?n._done=!0:void 0===n._buffer?n._buffer=a:n._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}(n._buffer,a),n._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var n=0===p(this._buffer);return this._done&&n?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function p(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var m=function(){function e(){i(this,e)}return c(e,[{key:"openFile",value:function(e,t){return(0,r.Z)()&&e&&void 0!==e.uri?(0,a.Z)(e.uri).then((function(e){return new u(e)})).catch((function(e){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e))})):"function"==typeof e.slice&&void 0!==e.size?Promise.resolve(new u(e)):"function"==typeof e.read?(t=+t,isFinite(t)?Promise.resolve(new d(e,t)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"))}}]),e}()},41264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(75908);function a(e,t){return(0,r.Z)()?Promise.resolve(function(e,t){var n=e.exif?function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}},56940:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,{Z:()=>o});var o=function(){function e(){r(this,e)}return s(e,[{key:"createRequest",value:function(e,t){return new i(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),i=function(){function e(t,n){r(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}}return s(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(n,r){e._xhr.onload=function(){n(new l(e._xhr))},e._xhr.onerror=function(e){r(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),l=function(){function e(t){r(this,e),this._xhr=t}return s(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}()},99537:(e,t,n)=>{"use strict";n.d(t,{gq:()=>f});var r=n(63620),a=n(85799),s=n(15866),o=n(56940),i=n(23427),l=n(41264);function c(e){return c="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},c(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){return function(){var t,n=m(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var r=m(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=A({},r.Z.defaultOptions,{httpStack:new o.Z,fileReader:new i.Z,urlStorage:s.H?new s.n:new a.Z,fingerprint:l.Z}),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(o,e);var t,n,a,s=p(o);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=A({},E,{},t),s.call(this,e,t)}return t=o,a=[{key:"terminate",value:function(e,t,n){return t=A({},E,{},t),r.Z.terminate(e,t,n)}}],(n=null)&&u(t.prototype,n),a&&u(t,a),o}(r.Z),b=window,C=b.XMLHttpRequest,v=b.Blob;C&&v&&v.prototype.slice},85016:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)}},75908:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()}},11662:(e,t,n)=>{"use strict";function r(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){var e=new Uint8Array(r.result);t({value:e})},r.onerror=function(e){n(e)},r.readAsArrayBuffer(e)}))}n.d(t,{Z:()=>r})},9106:(e,t,n)=>{"use strict";function r(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=r.response;t(e)},r.onerror=function(e){n(e)},r.open("GET",e),r.send()}))}n.d(t,{Z:()=>r})},15866:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{H:()=>o,n:()=>i});var a=!1;try{a="localStorage"in window;var s="tusSupport";localStorage.setItem(s,localStorage.getItem(s))}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;a=!1}var o=a,i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,n=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var n=Math.round(1e12*Math.random()),r="tus::".concat(e,"::").concat(n);return localStorage.setItem(r,JSON.stringify(t)),Promise.resolve(r)}},{key:"_findEntries",value:function(e){for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(0===r.indexOf(e))try{var a=JSON.parse(localStorage.getItem(r));a.urlStorageKey=r,t.push(a)}catch(e){}}return t}}],n&&r(t.prototype,n),a&&r(t,a),e}()},56971:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e){return function(){var t,n=c(e);if(i()){var a=c(this).constructor;t=Reflect.construct(n,arguments,a)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function s(e){var t="function"==typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return o(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},s(e)}function o(e,t,n){return o=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&l(a,n.prototype),a},o.apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}n.d(t,{Z:()=>u});const u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,e);var t=a(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).originalRequest=s,r.originalResponse=o,r.causingError=a,null!=a&&(e+=", caused by ".concat(a.toString())),null!=s){var i=s.getHeader("X-Request-ID")||"n/a",l=s.getMethod(),c=s.getURL(),u=o?o.getStatus():"n/a",d=o?o.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(i,")")}return r.message=e,r}return n}(s(Error))},51336:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=!1;function a(e){r&&console.log(e)}},85799:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Z:()=>a});var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,(n=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&r(t.prototype,n),a&&r(t,a),e}()},63620:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(84097),a=n(41294),s=n.n(a),o=n(56971),i=n(51336),l=n(98184);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var m={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},g=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in n&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=n,this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,n,r;return t=e,n=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl){var n=this.options.retryDelays;null==n||"[object Array]"===Object.prototype.toString.call(n)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach((function(t){e.options[t]&&e._emitError(new Error("tus: cannot use the ".concat(t," option when parallelUploads is enabled")))})),this.options.fingerprint(t,this.options).then((function(n){return null==n?(0,i.c)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):(0,i.c)("Calculated fingerprint: ".concat(n)),e._fingerprint=n,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){e._source=t,e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t=this,n=this._size=this._source.size,r=0;this._parallelUploads=[];var a=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,s=function(e,t,n){for(var r=Math.floor(e/t),a=[],s=0;s<t;s++)a.push({start:r*s,end:r*(s+1)});return a[t-1].end=e,n&&a.forEach((function(e,t){e.uploadUrl=n[t]||null})),a}(this._source.size,a,this._parallelUploadUrls);this._parallelUploadUrls=new Array(s.length);var o,l=s.map((function(a,o){var i=0;return t._source.slice(a.start,a.end).then((function(l){var c=l.value;return new Promise((function(l,d){var p=u({},t.options,{uploadUrl:a.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:u({},t.options.headers,{"Upload-Concat":"partial"}),onSuccess:l,onError:d,onProgress:function(e){r=r-i+e,i=e,t._emitProgress(r,n)},_onUploadUrlAvailable:function(){t._parallelUploadUrls[o]=m.url,t._parallelUploadUrls.filter((function(e){return!!e})).length===s.length&&t._saveUploadInUrlStorage()}}),m=new e(c,p);m.start(),t._parallelUploads.push(m)}))}))}));Promise.all(l).then((function(){(o=t._openRequest("POST",t.options.endpoint)).setHeader("Upload-Concat","final;".concat(t._parallelUploadUrls.join(" ")));var e=A(t.options.metadata);return""!==e&&o.setHeader("Upload-Metadata",e),t._sendRequest(o,null)})).then((function(e){if(h(e.getStatus(),200)){var n=e.getHeader("Location");null!=n?(t.url=C(t.options.endpoint,n),(0,i.c)("Created upload at ".concat(t.url)),t._emitSuccess()):t._emitHttpError(o,e,"tus: invalid or missing Location header")}else t._emitHttpError(o,e,"tus: unexpected response while creating upload")})).catch((function(e){t._emitError(e)}))}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));return this._aborted=!1,null!=this.url?((0,i.c)("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?((0,i.c)("Resuming upload from provided URL: ".concat(this.options.url)),this.url=this.options.uploadUrl,void this._resumeUpload()):((0,i.c)("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var n=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return n._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,n,r){this._emitError(new o.Z(n,r,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),b(e,this._retryAttempt,this.options))){var n=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),n))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,n){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,n)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var n,r=A(this.options.metadata);""!==r&&t.setHeader("Upload-Metadata",r),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,n=this._addChunkToRequest(t)):n=this._sendRequest(t,null),n.then((function(n){if(h(n.getStatus(),200)){var r=n.getHeader("Location");if(null!=r){if(e.url=C(e.options.endpoint,r),(0,i.c)("Created upload at ".concat(e.url)),"function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage(),e.options.uploadDataDuringCreation?e._handleUploadResponse(t,n):(e._offset=0,e._performUpload())}else e._emitHttpError(t,n,"tus: invalid or missing Location header")}else e._emitHttpError(t,n,"tus: unexpected response while creating upload")})).catch((function(n){e._emitHttpError(t,null,"tus: failed to create upload",n)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(n){var r=n.getStatus();if(!h(r,200))return h(r,400)&&e._removeFromUrlStorage(),423===r?void e._emitHttpError(t,n,"tus: upload is currently locked; retry later"):e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,n,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var a=parseInt(n.getHeader("Upload-Offset"),10);if(isNaN(a))e._emitHttpError(t,n,"tus: invalid or missing offset value");else{var s=parseInt(n.getHeader("Upload-Length"),10);if(!isNaN(s)||e.options.uploadLengthDeferred){if("function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),a===s)return e._emitProgress(s,s),void e._emitSuccess();e._offset=a,e._performUpload()}else e._emitHttpError(t,n,"tus: invalid or missing length value")}})).catch((function(n){e._emitHttpError(t,null,"tus: failed to resume upload",n)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(n){h(n.getStatus(),200)?t._handleUploadResponse(e,n):t._emitHttpError(e,n,"tus: unexpected response while uploading chunk")})).catch((function(n){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),n)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,n=this._offset,r=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(n+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(r===1/0||r>this._size)&&!this.options.uploadLengthDeferred&&(r=this._size),this._source.slice(n,r).then((function(n){var r=n.value,a=n.done;return t.options.uploadLengthDeferred&&a&&(t._size=t._offset+(r&&r.size?r.size:0),e.setHeader("Upload-Length",t._size)),null===r?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,r))}))}},{key:"_handleUploadResponse",value:function(e,t){var n=parseInt(t.getHeader("Upload-Offset"),10);if(isNaN(n))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n==this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var n=E(e,t,this.options);return this._req=n,n}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){return e._urlStorageKey=t})).catch((function(t){e._emitError(t)}))}}},{key:"_sendRequest",value:function(e){return f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],r=[{key:"terminate",value:function(t,n){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===n&&(n={});var r=E("DELETE",t,n);return f(r,null,n).then((function(e){if(204!==e.getStatus())throw new o.Z("tus: unexpected response while terminating upload",null,r,e)})).catch((function(a){if(a instanceof o.Z||(a=new o.Z("tus: failed to terminate upload",a,r,null)),!b(a,0,n))throw a;var s=n.retryDelays[0],i=n.retryDelays.slice(1),l=u({},n,{retryDelays:i});return new Promise((function(e){return setTimeout(e,s)})).then((function(){return e.terminate(t,l)}))}))}}],n&&p(t.prototype,n),r&&p(t,r),e}();function A(e){var t=[];for(var n in e)t.push("".concat(n," ").concat(r.Base64.encode(e[n])));return t.join(",")}function h(e,t){return e>=t&&e<t+100}function E(e,t,n){var r=n.httpStack.createRequest(e,t);r.setHeader("Tus-Resumable","1.0.0");var a=n.headers||{};for(var s in a)r.setHeader(s,a[s]);if(n.addRequestId){var o=(0,l.Z)();r.setHeader("X-Request-ID",o)}return r}function f(e,t,n){return("function"==typeof n.onBeforeRequest?Promise.resolve(n.onBeforeRequest(e)):Promise.resolve()).then((function(){return e.send(t).then((function(t){return("function"==typeof n.onAfterResponse?Promise.resolve(n.onAfterResponse(e,t)):Promise.resolve()).then((function(){return t}))}))}))}function b(e,t,n){if(null==n.retryDelays||t>=n.retryDelays.length||null==e.originalRequest)return!1;if(n&&"function"==typeof n.onShouldRetry)return n.onShouldRetry(e,t,n);var r,a=e.originalResponse?e.originalResponse.getStatus():0;return(!h(a,400)||409===a||423===a)&&(r=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(r=!1),r)}function C(e,t){return new(s())(t,e).toString()}g.defaultOptions=m;const v=g},98184:(e,t,n)=>{"use strict";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}n.d(t,{Z:()=>r})},83078:(e,t,n)=>{"use strict";function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}n.d(t,{l:()=>r})},48936:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});function r(e){return e.toUpperCase()}},41294:(e,t,n)=>{"use strict";var r=n(82298),a=n(40142),s=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(s,"")}var p=[["#","hash"],["?","query"],function(e,t){return A(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],m={hash:1,query:1};function g(e){var t,n=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).location||{},r={},a=typeof(e=e||n);if("blob:"===e.protocol)r=new E(unescape(e.pathname),{});else if("string"===a)for(t in r=new E(e,{}),m)delete r[t];else if("object"===a){for(t in e)t in m||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=i.test(e.href))}return r}function A(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function h(e,t){e=(e=d(e)).replace(o,""),t=t||{};var n,r=c.exec(e),a=r[1]?r[1].toLowerCase():"",s=!!r[2],i=!!r[3],l=0;return s?i?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):i?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===a?l>=2&&(n=n.slice(2)):A(a)?n=r[4]:a?s&&(n=n.slice(2)):l>=2&&A(t.protocol)&&(n=r[4]),{protocol:a,slashes:s||A(a),slashesCount:l,rest:n}}function E(e,t,n){if(e=(e=d(e)).replace(o,""),!(this instanceof E))return new E(e,t,n);var s,i,l,c,m,f,b=p.slice(),C=typeof t,v=this,k=0;for("object"!==C&&"string"!==C&&(n=t,t=null),n&&"function"!=typeof n&&(n=a.parse),s=!(i=h(e||"",t=g(t))).protocol&&!i.slashes,v.slashes=i.slashes||s&&t.slashes,v.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||u.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!A(v.protocol)))&&(b[3]=[/(.*)/,"pathname"]);k<b.length;k++)"function"!=typeof(c=b[k])?(l=c[0],f=c[1],l!=l?v[f]=e:"string"==typeof l?~(m="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof c[2]?(v[f]=e.slice(0,m),e=e.slice(m+c[2])):(v[f]=e.slice(m),e=e.slice(0,m))):(m=l.exec(e))&&(v[f]=m[1],e=e.slice(0,m.index)),v[f]=v[f]||s&&c[3]&&t[f]||"",c[4]&&(v[f]=v[f].toLowerCase())):e=c(e,v);n&&(v.query=n(v.query)),s&&t.slashes&&"/"!==v.pathname.charAt(0)&&(""!==v.pathname||""!==t.pathname)&&(v.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,a=n[r-1],s=!1,o=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),o++):o&&(0===r&&(s=!0),n.splice(r,1),o--);return s&&n.unshift(""),"."!==a&&".."!==a||n.push(""),n.join("/")}(v.pathname,t.pathname)),"/"!==v.pathname.charAt(0)&&A(v.protocol)&&(v.pathname="/"+v.pathname),r(v.port,v.protocol)||(v.host=v.hostname,v.port=""),v.username=v.password="",v.auth&&(~(m=v.auth.indexOf(":"))?(v.username=v.auth.slice(0,m),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=v.auth.slice(m+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(v.auth)),v.auth=v.password?v.username+":"+v.password:v.username),v.origin="file:"!==v.protocol&&A(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString()}E.prototype={set:function(e,t,n){var s=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||a.parse)(t)),s[e]=t;break;case"port":s[e]=t,r(t,s.protocol)?t&&(s.host=s.hostname+":"+t):(s.host=s.hostname,s[e]="");break;case"hostname":s[e]=t,s.port&&(t+=":"+s.port),s.host=t;break;case"host":s[e]=t,l.test(t)?(t=t.split(":"),s.port=t.pop(),s.hostname=t.join(":")):(s.hostname=t,s.port="");break;case"protocol":s.protocol=t.toLowerCase(),s.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";s[e]=t.charAt(0)!==o?o+t:t}else s[e]=t;break;case"username":case"password":s[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(s.username=t.slice(0,i),s.username=encodeURIComponent(decodeURIComponent(s.username)),s.password=t.slice(i+1),s.password=encodeURIComponent(decodeURIComponent(s.password))):s.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<p.length;c++){var u=p[c];u[4]&&(s[u[1]]=s[u[1]].toLowerCase())}return s.auth=s.password?s.username+":"+s.password:s.username,s.origin="file:"!==s.protocol&&A(s.protocol)&&s.host?s.protocol+"//"+s.host:"null",s.href=s.toString(),s},toString:function(e){e&&"function"==typeof e||(e=a.stringify);var t,n=this,r=n.host,s=n.protocol;s&&":"!==s.charAt(s.length-1)&&(s+=":");var o=s+(n.protocol&&n.slashes||A(n.protocol)?"//":"");return n.username?(o+=n.username,n.password&&(o+=":"+n.password),o+="@"):n.password?(o+=":"+n.password,o+="@"):"file:"!==n.protocol&&A(n.protocol)&&!r&&"/"!==n.pathname&&(o+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),o+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}},E.extractProtocol=h,E.location=g,E.trimLeft=d,E.qs=a,e.exports=E},40644:(e,t,n)=>{"use strict";e.exports=n.p+"images/connections-facebook-03b8bce6abd7bc00d150.png"},93926:(e,t,n)=>{"use strict";e.exports=n.p+"images/connections-instagram-business-02b13c6f259ed76ed147.png"},98611:(e,t,n)=>{"use strict";e.exports=n.p+"images/connections-linkedin-8eb17cdcd3fa4f80c501.png"},44654:(e,t,n)=>{"use strict";e.exports=n.p+"images/connections-nextdoor-2657489bfff7220ad540.png"},27182:(e,t,n)=>{"use strict";e.exports=n.p+"images/connections-tumblr-e4db652e14ad0bda07f2.png"},30253:(e,t,n)=>{"use strict";e.exports=n.p+"images/dois-66b3f018328e8f585646.jpg"},91948:(e,t,n)=>{"use strict";e.exports=n.p+"images/edge-e1adff73f2dc1c1dc64e.jpg"},5353:(e,t,n)=>{"use strict";e.exports=n.p+"images/fullscreen-21ca1ee2bafcb1c8eb55.jpg"},27956:(e,t,n)=>{"use strict";e.exports=n.p+"images/highway-205f94656e2fcc4aeb86.jpg"},19597:(e,t,n)=>{"use strict";e.exports=n.p+"images/avatar1-6287ee7ccb96c6112ed7.jpg"},65783:(e,t,n)=>{"use strict";e.exports=n.p+"images/avatar2-346c588dba138c82e44c.jpg"},43807:(e,t,n)=>{"use strict";e.exports=n.p+"images/avatar3-dce9c36819878a1bf60c.jpg"},39114:(e,t,n)=>{"use strict";e.exports=n.p+"images/placeholder-site-icon-5bb955c1d041bc2adfc9.svg"},8964:(e,t,n)=>{"use strict";e.exports=n.p+"images/eventbrite-in-page-example-c351ec80e4dd5d39433d.png"},90767:(e,t,n)=>{"use strict";e.exports=n.p+"images/img-example-after-d6db862c442c24ad1c63.png"},58632:(e,t,n)=>{"use strict";e.exports=n.p+"images/img-example-before-4592b4656108c1429614.png"},96406:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-preview-97bda80ebb6981457630.jpg"},80469:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-theme_black_and_white-b6ad81a7dd09d09fb34d.jpg"},7247:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-theme_black_and_white_mapkit-50e9383d59f6ad6a44ed.jpg"},13925:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-theme_default-b53ccdf170e5ac873ff0.jpg"},24873:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-theme_default_mapkit-0ed10cab18f62edff74e.jpg"},25685:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-theme_satellite-cc50c608e244f90d18dc.jpg"},81667:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-theme_satellite_mapkit-6062205f7c3804fae12c.jpg"},15387:(e,t,n)=>{"use strict";e.exports=n.p+"images/map-theme_terrain-ac291441b3461820747d.jpg"},23879:(e,t,n)=>{"use strict";e.exports=n.p+"images/paypal-button-2x-62cd99bcc3acbd1ff504.png"},22323:(e,t,n)=>{"use strict";e.exports=n.p+"images/paypal-button-a51d6c3207b0a904edb7.png"},65784:(e,t,n)=>{"use strict";e.exports=n.p+"images/slideshow_example-1-07a3f164621235df0419.jpg"},6425:(e,t,n)=>{"use strict";e.exports=n.p+"images/slideshow_example-2-2ee401e47066229bdac5.jpg"},85983:(e,t,n)=>{"use strict";e.exports=n.p+"images/slideshow_example-3-0682afca66c485f17ff6.jpg"},15915:(e,t,n)=>{"use strict";e.exports=n.p+"images/story_example-1-716db2e4f5a074d302f7.png"},92770:(e,t,n)=>{"use strict";e.exports=n.p+"images/email-preview-illustration-dd7b9072ff61acd7f247.svg"},96606:(e,t,n)=>{"use strict";e.exports=n.p+"images/tiled-gallery_example-1-d2817eb0e669267ab3eb.jpg"},85472:(e,t,n)=>{"use strict";e.exports=n.p+"images/tiled-gallery_example-2-7d8f0cf8e262f0112691.jpg"},79009:(e,t,n)=>{"use strict";e.exports=n.p+"images/tiled-gallery_example-3-07a3f164621235df0419.jpg"},10742:(e,t,n)=>{"use strict";e.exports=n.p+"images/tiled-gallery_example-4-2ee401e47066229bdac5.jpg"},52642:(e,t,n)=>{"use strict";e.exports=n.p+"images/tiled-gallery_example-5-a1935fd9cf1181168d90.jpg"},41145:(e,t,n)=>{"use strict";e.exports=n.p+"images/tiled-gallery_example-6-9f9d39c6af0fb4b0d99c.jpg"},41194:(e,t,n)=>{"use strict";e.exports=n.p+"images/videopress-block-example-image-da9ef73787adca8896f2.jpg"},80405:(e,t,n)=>{"use strict";e.exports=n.p+"images/example_160x600-ccbc594f54431dafa70d.png"},72473:(e,t,n)=>{"use strict";e.exports=n.p+"images/example_300x250-5b93e8174f02d48c40b7.png"},38511:(e,t,n)=>{"use strict";e.exports=n.p+"images/example_320x50-7110edf045141630a222.png"},52203:(e,t,n)=>{"use strict";e.exports=n.p+"images/example_728x90-d9de384932330b92e1c3.png"},92787:e=>{"use strict";if(void 0==={consumer_slug:"jetpack"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack"}},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},92819:e=>{"use strict";e.exports=window.lodash},76292:e=>{"use strict";e.exports=window.moment},25158:e=>{"use strict";e.exports=window.wp.a11y},86989:e=>{"use strict";e.exports=window.wp.apiFetch},11313:e=>{"use strict";e.exports=window.wp.blob},52175:e=>{"use strict";e.exports=window.wp.blockEditor},65391:e=>{"use strict";e.exports=window.wp.blockSerializationDefaultParser},4981:e=>{"use strict";e.exports=window.wp.blocks},55609:e=>{"use strict";e.exports=window.wp.components},94333:e=>{"use strict";e.exports=window.wp.compose},37798:e=>{"use strict";e.exports=window.wp.coreData},9818:e=>{"use strict";e.exports=window.wp.data},69771:e=>{"use strict";e.exports=window.wp.date},47701:e=>{"use strict";e.exports=window.wp.domReady},72067:e=>{"use strict";e.exports=window.wp.editPost},12238:e=>{"use strict";e.exports=window.wp.editor},69307:e=>{"use strict";e.exports=window.wp.element},81975:e=>{"use strict";e.exports=window.wp.escapeHtml},92694:e=>{"use strict";e.exports=window.wp.hooks},22629:e=>{"use strict";e.exports=window.wp.htmlEntities},65736:e=>{"use strict";e.exports=window.wp.i18n},39630:e=>{"use strict";e.exports=window.wp.keycodes},53961:e=>{"use strict";e.exports=window.wp.notices},98817:e=>{"use strict";e.exports=window.wp.plugins},70444:e=>{"use strict";e.exports=window.wp.primitives},72629:e=>{"use strict";e.exports=window.wp.richText},29512:e=>{"use strict";e.exports=window.wp.tokenList},96483:e=>{"use strict";e.exports=window.wp.url},90162:e=>{"use strict";e.exports=window.wp.viewport},6551:e=>{"use strict";e.exports=window.wp.widgets},35266:e=>{"use strict";e.exports=window.wp.wordcount},82674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},25877:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},69509:(e,t,n)=>{"use strict";n.d(t,{p1:()=>h});var r,a=n(98381),s=n(95651),o=n(77353);!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(r||(r={}));var i,l,c;function u(e){return e>=r.ZERO&&e<=r.NINE}function d(e){return e===r.EQUALS||function(e){return e>=r.UPPER_A&&e<=r.UPPER_Z||e>=r.LOWER_A&&e<=r.LOWER_Z||u(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(i||(i={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(l||(l={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(c||(c={}));class p{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=c.Strict}startEntity(e){this.decodeMode=e,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l.EntityStart:return e.charCodeAt(t)===r.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=l.NamedEntity,this.stateNamedEntity(e,t));case l.NumericStart:return this.stateNumericStart(e,t);case l.NumericDecimal:return this.stateNumericDecimal(e,t);case l.NumericHex:return this.stateNumericHex(e,t);case l.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===r.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const s=e.charCodeAt(t);if(!(u(s)||(a=s,a>=r.UPPER_A&&a<=r.UPPER_F||a>=r.LOWER_A&&a<=r.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(s,3);t+=1}var a;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!u(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===r.SEMI)this.consumed+=1;else if(this.decodeMode===c.Strict)return 0;return this.emitCodePoint((0,o.tL)(this.result),this.consumed),this.errors&&(e!==r.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let a=n[this.treeIndex],s=(a&i.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=g(n,a,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return 0===this.result||this.decodeMode===c.Attribute&&(0===s||d(o))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],s=(a&i.VALUE_LENGTH)>>14,0!==s){if(o===r.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==c.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~i.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===c.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function m(e){let t="";const n=new p(e,(e=>t+=(0,o.bg)(e)));return function(e,r){let a=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(a,s),n.startEntity(r);const o=n.write(e,s+1);if(o<0){a=s+n.end();break}a=s+o,s=0===o?a+1:a}const o=t+e.slice(a);return t="",o}}function g(e,t,n,r){const a=(t&i.BRANCH_LENGTH)>>7,s=t&i.JUMP_TABLE;if(0===a)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=a?-1:e[n+t]-1}let o=n,l=o+a-1;for(;o<=l;){const t=o+l>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+a];l=t-1}}return-1}const A=m(a.Z);m(s.Z);function h(e,t=c.Legacy){return A(e,t)}},77353:(e,t,n)=>{"use strict";var r;n.d(t,{bg:()=>s,tL:()=>o});const a=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),s=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function o(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=a.get(e))&&void 0!==t?t:e}},91778:(e,t,n)=>{"use strict";n(86295),n(4234)},4234:(e,t,n)=>{"use strict";const r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function a(e,t){return function(n){let r,a=0,s="";for(;r=e.exec(n);)a!==r.index&&(s+=n.substring(a,r.index)),s+=t.get(r[0].charCodeAt(0)),a=r.index+1;return s+n.substring(a)}}a(/[&<>'"]/g,r),a(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),a(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},98381:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0))))},95651:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))))},86295:()=>{"use strict";function e(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(e([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(e([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(e([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(e([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))},80197:(e,t,n)=>{"use strict";n.d(t,{p1:()=>s.p1});var r,a,s=n(69509);n(91778),n(4234);!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(r||(r={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(a||(a={}))},44028:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(6689);function a(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function s(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===s(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const l={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const c={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(e){const t=e.re=(0,r.Z)(e.__opts__),n=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(u),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");const l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===s(n))return!function(e){return"[object RegExp]"===s(e)}(n.validate)?o(n.validate)?r.validate=n.validate:c(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===s(e)}(n)?c(t,n):l.push(t)})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const d=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function m(e,t){const n=e.__index__,r=e.__last_index__,a=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=a,this.text=a,this.url=a}function g(e,t){const n=new m(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function A(e,t){if(!(this instanceof A))return new A(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||l.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=a({},l,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=a({},c,e),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},p(this)}A.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},A.prototype.set=function(e){return this.__opts__=a(this.__opts__,e),this},A.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,a,s,o,i,l,c;if(this.re.schema_test.test(e))for(i=this.re.schema_search,i.lastIndex=0;null!==(t=i.exec(e));)if(a=this.testSchemaAt(e,t[2],i.lastIndex),a){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+a;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(s=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0},A.prototype.pretest=function(e){return this.re.pretest.test(e)},A.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},A.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(g(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(g(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},A.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,g(this,0)):null},A.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},A.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},A.prototype.onCompile=function(){};const h=A},6689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(81762),a=n(41833),s=n(84232),o=n(52123);function i(e){const t={};e=e||{},t.src_Any=r.Z.source,t.src_Cc=a.Z.source,t.src_Z=s.Z.source,t.src_P=o.Z.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},95601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r.Z});var r=n(14359)},17929:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},20065:(e,t,n)=>{"use strict";n.d(t,{n:()=>s,q:()=>o});const r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",s=new RegExp("^(?:"+r+"|"+a+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+r+"|"+a+")")},14733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{arrayReplaceAt:()=>d,assign:()=>u,escapeHtml:()=>B,escapeRE:()=>w,fromCodePoint:()=>m,has:()=>c,isMdAsciiPunct:()=>x,isPunctChar:()=>j,isSpace:()=>_,isString:()=>i,isValidEntityCode:()=>p,isWhiteSpace:()=>I,lib:()=>Q,normalizeReference:()=>S,unescapeAll:()=>f,unescapeMd:()=>E});var r=n(18133),a=n(52123),s=n(96878),o=n(80197);function i(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}const l=Object.prototype.hasOwnProperty;function c(e,t){return l.call(e,t)}function u(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function d(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function p(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function m(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const g=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,A=new RegExp(g.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function E(e){return e.indexOf("\\")<0?e:e.replace(g,"$1")}function f(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(A,(function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&h.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return p(n)?m(n):e}const n=(0,o.p1)(e);return n!==e?n:e}(e,n)}))}const b=/[&<>"]/,C=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function k(e){return v[e]}function B(e){return b.test(e)?e.replace(C,k):e}const y=/[.?*+^$[\]\\(){}|-]/g;function w(e){return e.replace(y,"\\$&")}function _(e){switch(e){case 9:case 32:return!0}return!1}function I(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function j(e){return a.Z.test(e)}function x(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function S(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Q={mdurl:r,ucmicro:s}},2178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{parseLinkDestination:()=>a.Z,parseLinkLabel:()=>r.Z,parseLinkTitle:()=>s.Z});var r=n(43796),a=n(22194),s=n(89654)},22194:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t,n){let a,s=t;const o={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(s)){for(s++;s<n;){if(a=e.charCodeAt(s),10===a)return o;if(60===a)return o;if(62===a)return o.pos=s+1,o.str=(0,r.unescapeAll)(e.slice(t+1,s)),o.ok=!0,o;92===a&&s+1<n?s+=2:s++}return o}let i=0;for(;s<n&&(a=e.charCodeAt(s),32!==a)&&!(a<32||127===a);)if(92===a&&s+1<n){if(32===e.charCodeAt(s+1))break;s+=2}else{if(40===a&&(i++,i>32))return o;if(41===a){if(0===i)break;i--}s++}return t===s||0!==i||(o.str=(0,r.unescapeAll)(e.slice(t,s)),o.pos=s,o.ok=!0),o}},43796:(e,t,n)=>{"use strict";function r(e,t,n){let r,a,s,o;const i=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<i;){if(s=e.src.charCodeAt(e.pos),93===s&&(r--,0===r)){a=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===s)if(o===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return a&&(c=e.pos),e.pos=l,c}n.d(t,{Z:()=>r})},89654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t,n){let a,s,o=0,i=t;const l={ok:!1,pos:0,lines:0,str:""};if(i>=n)return l;if(s=e.charCodeAt(i),34!==s&&39!==s&&40!==s)return l;for(i++,40===s&&(s=41);i<n;){if(a=e.charCodeAt(i),a===s)return l.pos=i+1,l.lines=o,l.str=(0,r.unescapeAll)(e.slice(t+1,i)),l.ok=!0,l;if(40===a&&41===s)return l;10===a?o++:92===a&&i+1<n&&(i++,10===e.charCodeAt(i)&&o++),i++}return l}},14359:(e,t,n)=>{"use strict";n.d(t,{Z:()=>B});var r=n(14733),a=n(2178),s=n(80971),o=n(14324),i=n(10486),l=n(67490),c=n(44028),u=n(18133),d=n(15720),p=n(32094),m=n(47083),g=n(30777);const A={default:p.Z,zero:m.Z,commonmark:g.Z},h=/^(vbscript|javascript|file|data):/,E=/^data:image\/(gif|png|jpeg|webp);/;function f(e){const t=e.trim().toLowerCase();return!h.test(t)||E.test(t)}const b=["http:","https:","mailto:"];function C(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=d.ZP.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=d.ZP.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function k(e,t){if(!(this instanceof k))return new k(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l.Z,this.block=new i.Z,this.core=new o.Z,this.renderer=new s.Z,this.linkify=new c.Z,this.validateLink=f,this.normalizeLink=C,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},a),this.options={},this.configure(e),t&&this.set(t)}k.prototype.set=function(e){return r.assign(this.options,e),this},k.prototype.configure=function(e){const t=this;if(r.isString(e)){const t=e;if(!(e=A[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)})),this},k.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},k.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},k.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},k.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},k.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},k.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},k.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const B=k},10486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(35849),a=n(29496),s=n(11429),o=n(75944),i=n(93211),l=n(40426),c=n(633),u=n(70470),d=n(8984),p=n(77274),m=n(821),g=n(87841),A=n(643);const h=[["table",s.Z,["paragraph","reference"]],["code",o.Z],["fence",i.Z,["paragraph","reference","blockquote","list"]],["blockquote",l.Z,["paragraph","reference","blockquote","list"]],["hr",c.Z,["paragraph","reference","blockquote","list"]],["list",u.Z,["paragraph","reference","blockquote"]],["reference",d.Z],["html_block",p.Z,["paragraph","reference","blockquote"]],["heading",m.Z,["paragraph","reference","blockquote"]],["lheading",g.Z],["paragraph",A.Z]];function E(){this.ruler=new r.Z;for(let e=0;e<h.length;e++)this.ruler.push(h[e][0],h[e][1],{alt:(h[e][2]||[]).slice()})}E.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),a=r.length,s=e.md.options.maxNesting;let o=t,i=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n))&&!(e.sCount[o]<e.blkIndent);){if(e.level>=s){e.line=n;break}const t=e.line;let l=!1;for(let s=0;s<a;s++)if(l=r[s](e,o,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!i,e.isEmpty(e.line-1)&&(i=!0),o=e.line,o<n&&e.isEmpty(o)&&(i=!0,o++,e.line=o)}},E.prototype.parse=function(e,t,n,r){if(!e)return;const a=new this.State(e,t,n,r);this.tokenize(a,a.line,a.lineMax)},E.prototype.State=a.Z;const f=E},14324:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(35849),a=n(46903),s=n(19669),o=n(1539),i=n(38567),l=n(42187),c=n(45345),u=n(42479),d=n(42806);const p=[["normalize",s.Z],["block",o.Z],["inline",i.Z],["linkify",l.Z],["replacements",c.Z],["smartquotes",u.Z],["text_join",d.Z]];function m(){this.ruler=new r.Z;for(let e=0;e<p.length;e++)this.ruler.push(p[e][0],p[e][1])}m.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},m.prototype.State=a.Z;const g=m},67490:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(35849),a=n(4013),s=n(65740),o=n(37270),i=n(46519),l=n(21103),c=n(72491),u=n(57684),d=n(92040),p=n(38484),m=n(1961),g=n(27581),A=n(65505),h=n(39161),E=n(3415),f=n(34524);const b=[["text",s.Z],["linkify",o.Z],["newline",i.Z],["escape",l.Z],["backticks",c.Z],["strikethrough",u.Z.tokenize],["emphasis",d.Z.tokenize],["link",p.Z],["image",m.Z],["autolink",g.Z],["html_inline",A.Z],["entity",h.Z]],C=[["balance_pairs",E.Z],["strikethrough",u.Z.postProcess],["emphasis",d.Z.postProcess],["fragments_join",f.Z]];function v(){this.ruler=new r.Z;for(let e=0;e<b.length;e++)this.ruler.push(b[e][0],b[e][1]);this.ruler2=new r.Z;for(let e=0;e<C.length;e++)this.ruler2.push(C[e][0],C[e][1])}v.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,a=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t])return void(e.pos=s[t]);let o=!1;if(e.level<a){for(let a=0;a<r;a++)if(e.level++,o=n[a](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,s[t]=e.pos},v.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,a=e.md.options.maxNesting;for(;e.pos<r;){const s=e.pos;let o=!1;if(e.level<a)for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},v.prototype.parse=function(e,t,n,r){const a=new this.State(e,t,n,r);this.tokenize(a);const s=this.ruler2.getRules(""),o=s.length;for(let e=0;e<o;e++)s[e](a)},v.prototype.State=a.Z;const k=v},30777:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},32094:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},47083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},80971:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14733);const a={};function s(){this.rules=(0,r.assign)({},a)}a.code_inline=function(e,t,n,a,s){const o=e[t];return"<code"+s.renderAttrs(o)+">"+(0,r.escapeHtml)(o.content)+"</code>"},a.code_block=function(e,t,n,a,s){const o=e[t];return"<pre"+s.renderAttrs(o)+"><code>"+(0,r.escapeHtml)(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,a,s){const o=e[t],i=o.info?(0,r.unescapeAll)(o.info).trim():"";let l,c="",u="";if(i){const e=i.split(/(\s+)/g);c=e[0],u=e.slice(2).join("")}if(l=n.highlight&&n.highlight(o.content,c,u)||(0,r.escapeHtml)(o.content),0===l.indexOf("<pre"))return l+"\n";if(i){const e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];e<0?t.push(["class",n.langPrefix+c]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+c);const r={attrs:t};return`<pre><code${s.renderAttrs(r)}>${l}</code></pre>\n`}return`<pre><code${s.renderAttrs(o)}>${l}</code></pre>\n`},a.image=function(e,t,n,r,a){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=a.renderInlineAsText(s.children,n,r),a.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return(0,r.escapeHtml)(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){let t,n,a;if(!e.attrs)return"";for(a="",t=0,n=e.attrs.length;t<n;t++)a+=" "+(0,r.escapeHtml)(e.attrs[t][0])+'="'+(0,r.escapeHtml)(e.attrs[t][1])+'"';return a},s.prototype.renderToken=function(e,t,n){const r=e[t];let a="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(a+="\n"),a+=(-1===r.nesting?"</":"<")+r.tag,a+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(a+=" /");let s=!1;if(r.block&&(s=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(s=!1)}return a+=s?">\n":">",a},s.prototype.renderInline=function(e,t,n){let r="";const a=this.rules;for(let s=0,o=e.length;s<o;s++){const o=e[s].type;void 0!==a[o]?r+=a[o](e,s,t,n,this):r+=this.renderToken(e,s,t)}return r},s.prototype.renderInlineAsText=function(e,t,n){let r="";for(let a=0,s=e.length;a<s;a++)switch(e[a].type){case"text":case"html_inline":case"html_block":r+=e[a].content;break;case"image":r+=this.renderInlineAsText(e[a].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},s.prototype.render=function(e,t,n){let r="";const a=this.rules;for(let s=0,o=e.length;s<o;s++){const o=e[s].type;"inline"===o?r+=this.renderInline(e[s].children,t,n):void 0!==a[o]?r+=a[o](e,s,t,n,this):r+=this.renderToken(e,s,t,n)}return r};const o=s},35849:(e,t,n)=>{"use strict";function r(){this.__rules__=[],this.__cache__=null}n.d(t,{Z:()=>a}),r.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},r.prototype.at=function(e,t,n){const r=this.__find__(e),a=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=a.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){const a=this.__find__(e),s=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){const a=this.__find__(e),s=r||{};if(-1===a)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const a=r},40426:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t,n,a){let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(s))return!1;if(a)return!0;const l=[],c=[],u=[],d=[],p=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let g,A=!1;for(g=t;g<n;g++){const t=e.sCount[g]<e.blkIndent;if(s=e.bMarks[g]+e.tShift[g],o=e.eMarks[g],s>=o)break;if(62===e.src.charCodeAt(s++)&&!t){let t,n,a=e.sCount[g]+1;32===e.src.charCodeAt(s)?(s++,a++,n=!1,t=!0):9===e.src.charCodeAt(s)?(t=!0,(e.bsCount[g]+a)%4==3?(s++,a++,n=!1):n=!0):t=!1;let i=a;for(l.push(e.bMarks[g]),e.bMarks[g]=s;s<o;){const t=e.src.charCodeAt(s);if(!(0,r.isSpace)(t))break;9===t?i+=4-(i+e.bsCount[g]+(n?1:0))%4:i++,s++}A=s>=o,c.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(t?1:0),u.push(e.sCount[g]),e.sCount[g]=i-a,d.push(e.tShift[g]),e.tShift[g]=s-e.bMarks[g];continue}if(A)break;let a=!1;for(let t=0,r=p.length;t<r;t++)if(p[t](e,g,n,!0)){a=!0;break}if(a){e.lineMax=g,0!==e.blkIndent&&(l.push(e.bMarks[g]),c.push(e.bsCount[g]),d.push(e.tShift[g]),u.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}l.push(e.bMarks[g]),c.push(e.bsCount[g]),d.push(e.tShift[g]),u.push(e.sCount[g]),e.sCount[g]=-1}const h=e.blkIndent;e.blkIndent=0;const E=e.push("blockquote_open","blockquote",1);E.markup=">";const f=[t,0];E.map=f,e.md.block.tokenize(e,t,g);e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=m,f[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=l[n],e.tShift[n+t]=d[n],e.sCount[n+t]=u[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}},75944:(e,t,n)=>{"use strict";function r(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,a=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,a=r}e.line=a;const s=e.push("code_block","code",0);return s.content=e.getLines(t,a,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}n.d(t,{Z:()=>r})},93211:(e,t,n)=>{"use strict";function r(e,t,n,r){let a=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(a+3>s)return!1;const o=e.src.charCodeAt(a);if(126!==o&&96!==o)return!1;let i=a;a=e.skipChars(a,o);let l=a-i;if(l<3)return!1;const c=e.src.slice(i,a),u=e.src.slice(a,s);if(96===o&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;(d++,!(d>=n))&&(a=i=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],!(a<s&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(a)===o&&!(e.sCount[d]-e.blkIndent>=4||(a=e.skipChars(a,o),a-i<l||(a=e.skipSpaces(a),a<s)))){p=!0;break}l=e.sCount[t],e.line=d+(p?1:0);const m=e.push("fence","code",0);return m.info=u,m.content=e.getLines(t+1,d,l,!0),m.markup=c,m.map=[t,e.line],!0}n.d(t,{Z:()=>r})},821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t,n,a){let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(s);if(35!==i||s>=o)return!1;let l=1;for(i=e.src.charCodeAt(++s);35===i&&s<o&&l<=6;)l++,i=e.src.charCodeAt(++s);if(l>6||s<o&&!(0,r.isSpace)(i))return!1;if(a)return!0;o=e.skipSpacesBack(o,s);const c=e.skipCharsBack(o,35,s);c>s&&(0,r.isSpace)(e.src.charCodeAt(c-1))&&(o=c),e.line=t+1;const u=e.push("heading_open","h"+String(l),1);u.markup="########".slice(0,l),u.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(s,o).trim(),d.map=[t,e.line],d.children=[];return e.push("heading_close","h"+String(l),-1).markup="########".slice(0,l),!0}},633:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t,n,a){const s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(o++);if(42!==i&&45!==i&&95!==i)return!1;let l=1;for(;o<s;){const t=e.src.charCodeAt(o++);if(t!==i&&!(0,r.isSpace)(t))return!1;t===i&&l++}if(l<3)return!1;if(a)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(l+1).join(String.fromCharCode(i)),!0}},77274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(17929),a=n(20065);const s=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.Z.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(a.q.source+"\\s*$"),/^$/,!1]];function o(e,t,n,r){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(a))return!1;let i=e.src.slice(a,o),l=0;for(;l<s.length&&!s[l][0].test(i);l++);if(l===s.length)return!1;if(r)return s[l][2];let c=t+1;if(!s[l][1].test(i))for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(a=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],i=e.src.slice(a,o),s[l][1].test(i)){0!==i.length&&c++;break}e.line=c;const u=e.push("html_block","",0);return u.map=[t,c],u.content=e.getLines(t,c,e.blkIndent,!0),!0}},87841:(e,t,n)=>{"use strict";function r(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let s,o=0,i=t+1;for(;i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]>=e.blkIndent){let t=e.bMarks[i]+e.tShift[i];const n=e.eMarks[i];if(t<n&&(s=e.src.charCodeAt(t),(45===s||61===s)&&(t=e.skipChars(t,s),t=e.skipSpaces(t),t>=n))){o=61===s?1:2;break}}if(e.sCount[i]<0)continue;let t=!1;for(let a=0,s=r.length;a<s;a++)if(r[a](e,i,n,!0)){t=!0;break}if(t)break}if(!o)return!1;const l=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const u=e.push("inline","",0);u.content=l,u.map=[t,e.line-1],u.children=[];return e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(s),e.parentType=a,!0}n.d(t,{Z:()=>r})},70470:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14733);function a(e,t){const n=e.eMarks[t];let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(42!==s&&45!==s&&43!==s)return-1;if(a<n){const t=e.src.charCodeAt(a);if(!(0,r.isSpace)(t))return-1}return a}function s(e,t){const n=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];let s=n;if(s+1>=a)return-1;let o=e.src.charCodeAt(s++);if(o<48||o>57)return-1;for(;;){if(s>=a)return-1;if(o=e.src.charCodeAt(s++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(s-n>=10)return-1}return s<a&&(o=e.src.charCodeAt(s),!(0,r.isSpace)(o))?-1:s}function o(e,t,n,r){let o,i,l,c,u=t,d=!0;if(e.sCount[u]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let p,m,g,A=!1;if(r&&"paragraph"===e.parentType&&e.sCount[u]>=e.blkIndent&&(A=!0),(g=s(e,u))>=0){if(p=!0,l=e.bMarks[u]+e.tShift[u],m=Number(e.src.slice(l,g-1)),A&&1!==m)return!1}else{if(!((g=a(e,u))>=0))return!1;p=!1}if(A&&e.skipSpaces(g)>=e.eMarks[u])return!1;if(r)return!0;const h=e.src.charCodeAt(g-1),E=e.tokens.length;p?(c=e.push("ordered_list_open","ol",1),1!==m&&(c.attrs=[["start",m]])):c=e.push("bullet_list_open","ul",1);const f=[u,0];c.map=f,c.markup=String.fromCharCode(h);let b=!1;const C=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";u<n;){i=g,o=e.eMarks[u];const t=e.sCount[u]+g-(e.bMarks[u]+e.tShift[u]);let r=t;for(;i<o;){const t=e.src.charCodeAt(i);if(9===t)r+=4-(r+e.bsCount[u])%4;else{if(32!==t)break;r++}i++}const m=i;let A;A=m>=o?1:r-t,A>4&&(A=1);const E=t+A;c=e.push("list_item_open","li",1),c.markup=String.fromCharCode(h);const f=[u,0];c.map=f,p&&(c.info=e.src.slice(l,g-1));const v=e.tight,k=e.tShift[u],B=e.sCount[u],y=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=E,e.tight=!0,e.tShift[u]=m-e.bMarks[u],e.sCount[u]=r,m>=o&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),e.tight&&!b||(d=!1),b=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=y,e.tShift[u]=k,e.sCount[u]=B,e.tight=v,c=e.push("list_item_close","li",-1),c.markup=String.fromCharCode(h),u=e.line,f[1]=u,u>=n)break;if(e.sCount[u]<e.blkIndent)break;if(e.sCount[u]-e.blkIndent>=4)break;let w=!1;for(let t=0,r=C.length;t<r;t++)if(C[t](e,u,n,!0)){w=!0;break}if(w)break;if(p){if(g=s(e,u),g<0)break;l=e.bMarks[u]+e.tShift[u]}else if(g=a(e,u),g<0)break;if(h!==e.src.charCodeAt(g-1))break}return c=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(h),f[1]=u,e.line=u,e.parentType=v,d&&function(e,t){const n=e.level+2;for(let r=t+2,a=e.tokens.length-2;r<a;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,E),!0}},643:(e,t,n)=>{"use strict";function r(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),a=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]<0)continue;let t=!1;for(let a=0,o=r.length;a<o;a++)if(r[a](e,s,n,!0)){t=!0;break}if(t)break}const o=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s;e.push("paragraph_open","p",1).map=[t,e.line];const i=e.push("inline","",0);return i.content=o,i.map=[t,e.line],i.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}n.d(t,{Z:()=>r})},8984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t,n,a){let s=0,o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],l=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;for(;++o<i;)if(93===e.src.charCodeAt(o)&&92!==e.src.charCodeAt(o-1)){if(o+1===i)return!1;if(58!==e.src.charCodeAt(o+1))return!1;break}const c=e.lineMax,u=e.md.block.ruler.getRules("reference"),d=e.parentType;for(e.parentType="reference";l<c&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]<0)continue;let t=!1;for(let n=0,r=u.length;n<r;n++)if(u[n](e,l,c,!0)){t=!0;break}if(t)break}const p=e.getLines(t,l,e.blkIndent,!1).trim();i=p.length;let m=-1;for(o=1;o<i;o++){const e=p.charCodeAt(o);if(91===e)return!1;if(93===e){m=o;break}10===e?s++:92===e&&(o++,o<i&&10===p.charCodeAt(o)&&s++)}if(m<0||58!==p.charCodeAt(m+1))return!1;for(o=m+2;o<i;o++){const e=p.charCodeAt(o);if(10===e)s++;else if(!(0,r.isSpace)(e))break}const g=e.md.helpers.parseLinkDestination(p,o,i);if(!g.ok)return!1;const A=e.md.normalizeLink(g.str);if(!e.md.validateLink(A))return!1;o=g.pos,s+=g.lines;const h=o,E=s,f=o;for(;o<i;o++){const e=p.charCodeAt(o);if(10===e)s++;else if(!(0,r.isSpace)(e))break}const b=e.md.helpers.parseLinkTitle(p,o,i);let C;for(o<i&&f!==o&&b.ok?(C=b.str,o=b.pos,s+=b.lines):(C="",o=h,s=E);o<i;){const e=p.charCodeAt(o);if(!(0,r.isSpace)(e))break;o++}if(o<i&&10!==p.charCodeAt(o)&&C)for(C="",o=h,s=E;o<i;){const e=p.charCodeAt(o);if(!(0,r.isSpace)(e))break;o++}if(o<i&&10!==p.charCodeAt(o))return!1;const v=(0,r.normalizeReference)(p.slice(1,m));return!!v&&(a||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:C,href:A}),e.parentType=d,e.line=t+s+1),!0)}},29496:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(74214),a=n(14733);function s(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let e=0,t=0,n=0,r=0,o=s.length,i=!1;t<o;t++){const l=s.charCodeAt(t);if(!i){if((0,a.isSpace)(l)){n++,9===l?r+=4-r%4:r++;continue}i=!0}10!==l&&t!==o-1||(10!==l&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),i=!1,n=0,r=0,e=t+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}s.prototype.push=function(e,t,n){const a=new r.Z(e,t,n);return a.block=!0,n<0&&this.level--,a.level=this.level,n>0&&this.level++,this.tokens.push(a),a},s.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},s.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},s.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const t=this.src.charCodeAt(e);if(!(0,a.isSpace)(t))break}return e},s.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!(0,a.isSpace)(this.src.charCodeAt(--e)))return e+1;return e},s.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},s.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},s.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const s=new Array(t-e);for(let o=0,i=e;i<t;i++,o++){let e=0;const l=this.bMarks[i];let c,u=l;for(c=i+1<t||r?this.eMarks[i]+1:this.eMarks[i];u<c&&e<n;){const t=this.src.charCodeAt(u);if((0,a.isSpace)(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(u-l<this.tShift[i]))break;e++}u++}s[o]=e>n?new Array(e-n+1).join(" ")+this.src.slice(u,c):this.src.slice(u,c)}return s.join("")},s.prototype.Token=r.Z;const o=s},11429:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14733);function a(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function s(e){const t=[],n=e.length;let r=0,a=e.charCodeAt(r),s=!1,o=0,i="";for(;r<n;)124===a&&(s?(i+=e.substring(o,r-1),o=r):(t.push(i+e.substring(o,r)),i="",o=r+1)),s=92===a,r++,a=e.charCodeAt(r);return t.push(i+e.substring(o)),t}function o(e,t,n,o){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;let l=e.bMarks[i]+e.tShift[i];if(l>=e.eMarks[i])return!1;const c=e.src.charCodeAt(l++);if(124!==c&&45!==c&&58!==c)return!1;if(l>=e.eMarks[i])return!1;const u=e.src.charCodeAt(l++);if(124!==u&&45!==u&&58!==u&&!(0,r.isSpace)(u))return!1;if(45===c&&(0,r.isSpace)(u))return!1;for(;l<e.eMarks[i];){const t=e.src.charCodeAt(l);if(124!==t&&45!==t&&58!==t&&!(0,r.isSpace)(t))return!1;l++}let d=a(e,t+1),p=d.split("|");const m=[];for(let e=0;e<p.length;e++){const t=p[e].trim();if(!t){if(0===e||e===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?m.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?m.push("left"):m.push("")}if(d=a(e,t).trim(),-1===d.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;p=s(d),p.length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop();const g=p.length;if(0===g||g!==m.length)return!1;if(o)return!0;const A=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),E=[t,0];e.push("table_open","table",1).map=E;e.push("thead_open","thead",1).map=[t,t+1];e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<p.length;t++){const n=e.push("th_open","th",1);m[t]&&(n.attrs=[["style","text-align:"+m[t]]]);const r=e.push("inline","",0);r.content=p[t].trim(),r.children=[],e.push("th_close","th",-1)}let f;for(e.push("tr_close","tr",-1),e.push("thead_close","thead",-1),i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=h.length;t<a;t++)if(h[t](e,i,n,!0)){r=!0;break}if(r)break;if(d=a(e,i).trim(),!d)break;if(e.sCount[i]-e.blkIndent>=4)break;if(p=s(d),p.length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),i===t+2){e.push("tbody_open","tbody",1).map=f=[t+2,0]}e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t<g;t++){const n=e.push("td_open","td",1);m[t]&&(n.attrs=[["style","text-align:"+m[t]]]);const r=e.push("inline","",0);r.content=p[t]?p[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=i),e.push("table_close","table",-1),E[1]=i,e.parentType=A,e.line=i,!0}},1539:(e,t,n)=>{"use strict";function r(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}n.d(t,{Z:()=>r})},38567:(e,t,n)=>{"use strict";function r(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}n.d(t,{Z:()=>r})},42187:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(14733);function a(e){return/^<\/a\s*>/i.test(e)}function s(e){const t=e.tokens;var n;if(e.md.options.linkify)for(let s=0,o=t.length;s<o;s++){if("inline"!==t[s].type||!e.md.linkify.pretest(t[s].content))continue;let o=t[s].children,i=0;for(let l=o.length-1;l>=0;l--){const c=o[l];if("link_close"!==c.type){if("html_inline"===c.type&&(n=c.content,/^<a[>\s]/i.test(n)&&i>0&&i--,a(c.content)&&i++),!(i>0)&&"text"===c.type&&e.md.linkify.test(c.content)){const n=c.content;let a=e.md.linkify.match(n);const i=[];let u=c.level,d=0;a.length>0&&0===a[0].index&&l>0&&"text_special"===o[l-1].type&&(a=a.slice(1));for(let t=0;t<a.length;t++){const r=a[t].url,s=e.md.normalizeLink(r);if(!e.md.validateLink(s))continue;let o=a[t].text;o=a[t].schema?"mailto:"!==a[t].schema||/^mailto:/i.test(o)?e.md.normalizeLinkText(o):e.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");const l=a[t].index;if(l>d){const t=new e.Token("text","",0);t.content=n.slice(d,l),t.level=u,i.push(t)}const c=new e.Token("link_open","a",1);c.attrs=[["href",s]],c.level=u++,c.markup="linkify",c.info="auto",i.push(c);const p=new e.Token("text","",0);p.content=o,p.level=u,i.push(p);const m=new e.Token("link_close","a",-1);m.level=--u,m.markup="linkify",m.info="auto",i.push(m),d=a[t].lastIndex}if(d<n.length){const t=new e.Token("text","",0);t.content=n.slice(d),t.level=u,i.push(t)}t[s].children=o=(0,r.arrayReplaceAt)(o,l,i)}}else for(l--;o[l].level!==c.level&&"link_open"!==o[l].type;)l--}}}},19669:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r=/\r\n?|\n/g,a=/\0/g;function s(e){let t;t=e.src.replace(r,"\n"),t=t.replace(a,"�"),e.src=t}},45345:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,a=/\((c|tm|r)\)/i,s=/\((c|tm|r)\)/gi,o={c:"©",r:"®",tm:"™"};function i(e,t){return o[t.toLowerCase()]}function l(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(s,i)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function c(e){let t=0;for(let n=e.length-1;n>=0;n--){const a=e[n];"text"!==a.type||t||r.test(a.content)&&(a.content=a.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===a.type&&"auto"===a.info&&t--,"link_close"===a.type&&"auto"===a.info&&t++}}function u(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(a.test(e.tokens[t].content)&&l(e.tokens[t].children),r.test(e.tokens[t].content)&&c(e.tokens[t].children))}},42479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(14733);const a=/['"]/,s=/['"]/g,o="’";function i(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function l(e,t){let n;const a=[];for(let l=0;l<e.length;l++){const c=e[l],u=e[l].level;for(n=a.length-1;n>=0&&!(a[n].level<=u);n--);if(a.length=n+1,"text"!==c.type)continue;let d=c.content,p=0,m=d.length;e:for(;p<m;){s.lastIndex=p;const g=s.exec(d);if(!g)break;let A=!0,h=!0;p=g.index+1;const E="'"===g[0];let f=32;if(g.index-1>=0)f=d.charCodeAt(g.index-1);else for(n=l-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){f=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(p<m)b=d.charCodeAt(p);else for(n=l+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}const C=(0,r.isMdAsciiPunct)(f)||(0,r.isPunctChar)(String.fromCharCode(f)),v=(0,r.isMdAsciiPunct)(b)||(0,r.isPunctChar)(String.fromCharCode(b)),k=(0,r.isWhiteSpace)(f),B=(0,r.isWhiteSpace)(b);if(B?A=!1:v&&(k||C||(A=!1)),k?h=!1:C&&(B||v||(h=!1)),34===b&&'"'===g[0]&&f>=48&&f<=57&&(h=A=!1),A&&h&&(A=C,h=v),A||h){if(h)for(n=a.length-1;n>=0;n--){let r=a[n];if(a[n].level<u)break;if(r.single===E&&a[n].level===u){let s,o;r=a[n],E?(s=t.md.options.quotes[2],o=t.md.options.quotes[3]):(s=t.md.options.quotes[0],o=t.md.options.quotes[1]),c.content=i(c.content,g.index,o),e[r.token].content=i(e[r.token].content,r.pos,s),p+=o.length-1,r.token===l&&(p+=s.length-1),d=c.content,m=d.length,a.length=n;continue e}}A?a.push({token:l,pos:g.index,single:E,level:u}):h&&E&&(c.content=i(c.content,g.index,o))}else E&&(c.content=i(c.content,g.index,o))}}}function c(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},46903:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(74214);function a(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}a.prototype.Token=r.Z;const s=a},42806:(e,t,n)=>{"use strict";function r(e){let t,n;const r=e.tokens,a=r.length;for(let e=0;e<a;e++){if("inline"!==r[e].type)continue;const a=r[e].children,s=a.length;for(t=0;t<s;t++)"text_special"===a[t].type&&(a[t].type="text");for(t=n=0;t<s;t++)"text"===a[t].type&&t+1<s&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}n.d(t,{Z:()=>r})},27581:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,a=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function s(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const s=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const i=e.src.slice(s+1,n);if(a.test(i)){const n=e.md.normalizeLink(i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}if(r.test(i)){const n=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}return!1}},72491:(e,t,n)=>{"use strict";function r(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const a=e.posMax;for(;n<a&&96===e.src.charCodeAt(n);)n++;const s=e.src.slice(r,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=s),e.pos+=o,!0;let i,l=n;for(;-1!==(i=e.src.indexOf("`",l));){for(l=i+1;l<a&&96===e.src.charCodeAt(l);)l++;const r=l-i;if(r===o){if(!t){const t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(n,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=i}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}n.d(t,{Z:()=>r})},3415:(e,t,n)=>{"use strict";function r(e){const t={},n=e.length;if(!n)return;let r=0,a=-2;const s=[];for(let o=0;o<n;o++){const n=e[o];if(s.push(0),e[r].marker===n.marker&&a===n.token-1||(r=o),a=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const i=t[n.marker][(n.open?3:0)+n.length%3];let l=r-s[r]-1,c=l;for(;l>i;l-=s[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?s[l-1]+1:0;s[o]=o-l+r,s[l]=r,n.open=!1,t.end=o,t.close=!1,c=-1,a=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}function a(e){const t=e.tokens_meta,n=e.tokens_meta.length;r(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&r(t[e].delimiters)}n.d(t,{Z:()=>a})},92040:(e,t,n)=>{"use strict";function r(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const a=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===a.token+1,o=String.fromCharCode(r.marker),i=e.tokens[r.token];i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?o+o:o,i.content="";const l=e.tokens[a.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}n.d(t,{Z:()=>a});const a={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const a=e.scanDelims(e.pos,42===r);for(let t=0;t<a.length;t++){e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;r(e,e.delimiters);for(let a=0;a<n;a++)t[a]&&t[a].delimiters&&r(e,t[a].delimiters)}}},39161:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(80197),a=n(14733);const s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;function i(e,t){const n=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=i)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(s);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=(0,a.isValidEntityCode)(t)?(0,a.fromCodePoint)(t):(0,a.fromCodePoint)(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const a=e.src.slice(n).match(o);if(a){const n=(0,r.p1)(a[0]);if(n!==a[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=a[0],t.info="entity"}return e.pos+=a[0].length,!0}}}return!1}},21103:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(14733);const a=[];for(let e=0;e<256;e++)a.push(0);function s(e,t){let n=e.pos;const s=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=s)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<s&&(o=e.src.charCodeAt(n),(0,r.isSpace)(o));)n++;return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<s){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(i+=e.src[n+1],n++)}const l="\\"+i;if(!t){const t=e.push("text_special","",0);o<256&&0!==a[o]?t.content=i:t.content=l,t.markup=l,t.info="escape"}return e.pos=n+1,!0}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){a[e.charCodeAt(0)]=1}))},34524:(e,t,n)=>{"use strict";function r(e){let t,n,r=0;const a=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)a[t].nesting<0&&r--,a[t].level=r,a[t].nesting>0&&r++,"text"===a[t].type&&t+1<s&&"text"===a[t+1].type?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}n.d(t,{Z:()=>r})},65505:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(20065);function a(e,t){if(!e.md.options.html)return!1;const n=e.posMax,a=e.pos;if(60!==e.src.charCodeAt(a)||a+2>=n)return!1;const s=e.src.charCodeAt(a+1);if(33!==s&&63!==s&&47!==s&&!function(e){const t=32|e;return t>=97&&t<=122}(s))return!1;const o=e.src.slice(a).match(r.n);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],i=t.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=o[0].length,!0}},1961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t){let n,a,s,o,i,l,c,u,d="";const p=e.pos,m=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const g=e.pos+2,A=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(A<0)return!1;if(o=A+1,o<m&&40===e.src.charCodeAt(o)){for(o++;o<m&&(n=e.src.charCodeAt(o),(0,r.isSpace)(n)||10===n);o++);if(o>=m)return!1;for(u=o,l=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),l.ok&&(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?o=l.pos:d=""),u=o;o<m&&(n=e.src.charCodeAt(o),(0,r.isSpace)(n)||10===n);o++);if(l=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<m&&u!==o&&l.ok)for(c=l.str,o=l.pos;o<m&&(n=e.src.charCodeAt(o),(0,r.isSpace)(n)||10===n);o++);else c="";if(o>=m||41!==e.src.charCodeAt(o))return e.pos=p,!1;o++}else{if(void 0===e.env.references)return!1;if(o<m&&91===e.src.charCodeAt(o)?(u=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?s=e.src.slice(u,o++):o=A+1):o=A+1,s||(s=e.src.slice(g,A)),i=e.env.references[(0,r.normalizeReference)(s)],!i)return e.pos=p,!1;d=i.href,c=i.title}if(!t){a=e.src.slice(g,A);const t=[];e.md.inline.parse(a,e.md,e.env,t);const n=e.push("image","img",0),r=[["src",d],["alt",""]];n.attrs=r,n.children=t,n.content=a,c&&r.push(["title",c])}return e.pos=o,e.posMax=m,!0}},38484:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t){let n,a,s,o,i="",l="",c=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const d=e.pos,p=e.posMax,m=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let A=g+1;if(A<p&&40===e.src.charCodeAt(A)){for(u=!1,A++;A<p&&(n=e.src.charCodeAt(A),(0,r.isSpace)(n)||10===n);A++);if(A>=p)return!1;if(c=A,s=e.md.helpers.parseLinkDestination(e.src,A,e.posMax),s.ok){for(i=e.md.normalizeLink(s.str),e.md.validateLink(i)?A=s.pos:i="",c=A;A<p&&(n=e.src.charCodeAt(A),(0,r.isSpace)(n)||10===n);A++);if(s=e.md.helpers.parseLinkTitle(e.src,A,e.posMax),A<p&&c!==A&&s.ok)for(l=s.str,A=s.pos;A<p&&(n=e.src.charCodeAt(A),(0,r.isSpace)(n)||10===n);A++);}(A>=p||41!==e.src.charCodeAt(A))&&(u=!0),A++}if(u){if(void 0===e.env.references)return!1;if(A<p&&91===e.src.charCodeAt(A)?(c=A+1,A=e.md.helpers.parseLinkLabel(e,A),A>=0?a=e.src.slice(c,A++):A=g+1):A=g+1,a||(a=e.src.slice(m,g)),o=e.env.references[(0,r.normalizeReference)(a)],!o)return e.pos=d,!1;i=o.href,l=o.title}if(!t){e.pos=m,e.posMax=g;const t=[["href",i]];e.push("link_open","a",1).attrs=t,l&&t.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=A,e.posMax=p,!0}},37270:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function a(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const a=e.pending.match(r);if(!a)return!1;const s=a[1],o=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!o)return!1;let i=o.url;if(i.length<=s.length)return!1;i=i.replace(/\*+$/,"");const l=e.md.normalizeLink(i);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=i.length-s.length,!0}},46519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14733);function a(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const a=e.pending.length-1,s=e.posMax;if(!t)if(a>=0&&32===e.pending.charCodeAt(a))if(a>=1&&32===e.pending.charCodeAt(a-1)){let t=a-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<s&&(0,r.isSpace)(e.src.charCodeAt(n));)n++;return e.pos=n,!0}},4013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(74214),a=n(14733);function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}s.prototype.pushPending=function(){const e=new r.Z("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();const a=new r.Z(e,t,n);let s=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),a.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(a),this.tokens_meta.push(s),a},s.prototype.scanDelims=function(e,t){let n,r,s=!0,o=!0;const i=this.posMax,l=this.src.charCodeAt(e),c=e>0?this.src.charCodeAt(e-1):32;let u=e;for(;u<i&&this.src.charCodeAt(u)===l;)u++;const d=u-e,p=u<i?this.src.charCodeAt(u):32,m=(0,a.isMdAsciiPunct)(c)||(0,a.isPunctChar)(String.fromCharCode(c)),g=(0,a.isMdAsciiPunct)(p)||(0,a.isPunctChar)(String.fromCharCode(p)),A=(0,a.isWhiteSpace)(c),h=(0,a.isWhiteSpace)(p);return h?s=!1:g&&(A||m||(s=!1)),A?o=!1:m&&(h||g||(o=!1)),t?(n=s,r=o):(n=s&&(!o||m),r=o&&(!s||g)),{can_open:n,can_close:r,length:d}},s.prototype.Token=r.Z;const o=s},57684:(e,t,n)=>{"use strict";function r(e,t){let n;const r=[],a=t.length;for(let s=0;s<a;s++){const a=t[s];if(126!==a.marker)continue;if(-1===a.end)continue;const o=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&r.push(o.token-1)}for(;r.length;){const t=r.pop();let a=t+1;for(;a<e.tokens.length&&"s_close"===e.tokens[a].type;)a++;a--,t!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[t],e.tokens[t]=n)}}n.d(t,{Z:()=>a});const a={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const a=e.scanDelims(e.pos,!0);let s=a.length;const o=String.fromCharCode(r);if(s<2)return!1;let i;s%2&&(i=e.push("text","",0),i.content=o,s--);for(let t=0;t<s;t+=2)i=e.push("text","",0),i.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;r(e,e.delimiters);for(let a=0;a<n;a++)t[a]&&t[a].delimiters&&r(e,t[a].delimiters)}}},65740:(e,t,n)=>{"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function a(e,t){let n=e.pos;for(;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}n.d(t,{Z:()=>a})},74214:(e,t,n)=>{"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}n.d(t,{Z:()=>a}),r.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const a=r},18133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>r.Z,encode:()=>a.Z,format:()=>s.Z,parse:()=>o.Z});var r=n(40207),a=n(85244),s=n(5859),o=n(3554)},40207:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r={};function a(e,t){"string"!=typeof t&&(t=a.defaultChars);const n=function(e){let t=r[e];if(t)return t;t=r[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let t="";for(let r=0,a=e.length;r<a;r+=3){const s=parseInt(e.slice(r+1,r+3),16);if(s<128)t+=n[s];else{if(192==(224&s)&&r+3<a){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=s<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&s)&&r+6<a){const n=parseInt(e.slice(r+4,r+6),16),a=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&a)){const e=s<<12&61440|n<<6&4032|63&a;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&s)&&r+9<a){const n=parseInt(e.slice(r+4,r+6),16),a=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&a)&&128==(192&o)){let e=s<<18&1835008|n<<12&258048|a<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t}))}a.defaultChars=";/?:@&=+$,#",a.componentChars="";const s=a},85244:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r={};function a(e,t,n){"string"!=typeof t&&(n=t,t=a.defaultChars),void 0===n&&(n=!0);const s=function(e){let t=r[e];if(t)return t;t=r[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,r=e.length;t<r;t++){const a=e.charCodeAt(t);if(n&&37===a&&t+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(a<128)o+=s[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<r){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}a.defaultChars=";/?:@&=+$,-_.!~*'()#",a.componentChars="-_.!~*'()";const s=a},5859:(e,t,n)=>{"use strict";function r(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}n.d(t,{Z:()=>r})},3554:(e,t,n)=>{"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}n.d(t,{Z:()=>A});const a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(i),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){let n,r,s,i=e;if(i=i.trim(),!t&&1===e.split("#").length){const e=o.exec(i);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let l=a.exec(i);if(l&&(l=l[0],n=l.toLowerCase(),this.protocol=l,i=i.substr(l.length)),(t||l||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s="//"===i.substr(0,2),!s||l&&m[l]||(i=i.substr(2),this.slashes=!0)),!m[l]&&(s||l&&!g[l])){let e,t,n=-1;for(let e=0;e<u.length;e++)r=i.indexOf(u[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?i.lastIndexOf("@"):i.lastIndexOf("@",n),-1!==t&&(e=i.slice(0,t),i=i.slice(t+1),this.auth=e),n=-1;for(let e=0;e<c.length;e++)r=i.indexOf(c[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=i.length),":"===i[n-1]&&n--;const a=i.slice(0,n);i=i.slice(n),this.parseHost(a),this.hostname=this.hostname||"";const s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(d)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(d)){const r=e.slice(0,t),a=e.slice(t+1),s=n.match(p);s&&(r.push(s[1]),a.unshift(s[2])),a.length&&(i=a.join(".")+i),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const A=i.indexOf("#");-1!==A&&(this.hash=i.substr(A),i=i.slice(0,A));const h=i.indexOf("?");return-1!==h&&(this.search=i.substr(h),i=i.slice(0,h)),i&&(this.pathname=i),g[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){let t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const A=function(e,t){if(e&&e instanceof r)return e;const n=new r;return n.parse(e,t),n}},41833:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/[\0-\x1F\x7F-\x9F]/},62955:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},52123:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},54449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/},84232:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},96878:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Any:()=>r.Z,Cc:()=>a.Z,Cf:()=>s.Z,P:()=>o.Z,S:()=>i.Z,Z:()=>l.Z});var r=n(81762),a=n(41833),s=n(62955),o=n(52123),i=n(54449),l=n(84232)},81762:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},80550:e=>{"use strict";e.exports=JSON.parse('{"O":{"White":"#fff","Black":"#000","Gray":"#646970","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Blue":"#0675c4","Blue 0":"#e9f0f5","Blue 5":"#bbe0fa","Blue 10":"#91caf2","Blue 20":"#68b3e8","Blue 30":"#399ce3","Blue 40":"#1689db","Blue 50":"#0675c4","Blue 60":"#055d9c","Blue 70":"#044b7a","Blue 80":"#02395c","Blue 90":"#01283d","Blue 100":"#001621","Purple":"#984a9c","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Pink":"#c9356e","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Red":"#d63638","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Orange":"#b26200","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Yellow":"#9d6e00","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Green":"#008a20","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Celadon":"#008763","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","Automattic Blue":"#24a3e0","Automattic Blue 0":"#ebf4fa","Automattic Blue 5":"#c4e2f5","Automattic Blue 10":"#88ccf2","Automattic Blue 20":"#5ab7e8","Automattic Blue 30":"#24a3e0","Automattic Blue 40":"#1490c7","Automattic Blue 50":"#0277a8","Automattic Blue 60":"#036085","Automattic Blue 70":"#02506e","Automattic Blue 80":"#02384d","Automattic Blue 90":"#022836","Automattic Blue 100":"#021b24","WordPress Blue":"#006088","WordPress Blue 0":"#e6f1f5","WordPress Blue 5":"#bedae6","WordPress Blue 10":"#98c6d9","WordPress Blue 20":"#6ab3d0","WordPress Blue 30":"#3895ba","WordPress Blue 40":"#187aa2","WordPress Blue 50":"#006088","WordPress Blue 60":"#004e6e","WordPress Blue 70":"#003c56","WordPress Blue 80":"#002c40","WordPress Blue 90":"#001d2d","WordPress Blue 100":"#00101c","Simplenote Blue":"#3361cc","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","WooCommerce Purple":"#7f54b3","WooCommerce Purple 0":"#f7edf7","WooCommerce Purple 5":"#e5cfe8","WooCommerce Purple 10":"#d6b4e0","WooCommerce Purple 20":"#c792e0","WooCommerce Purple 30":"#af7dd1","WooCommerce Purple 40":"#9a69c7","WooCommerce Purple 50":"#7f54b3","WooCommerce Purple 60":"#674399","WooCommerce Purple 70":"#533582","WooCommerce Purple 80":"#3c2861","WooCommerce Purple 90":"#271b3d","WooCommerce Purple 100":"#140e1f","Jetpack Green":"#069e08","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09"}}')},23536:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-assistant","title":"AI Assistant","description":"Elevate your content creation with our AI-powered Gutenberg Block, offering seamless customization and generation. Bear in mind that, as an evolving tool, occasional imprecision may occur.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 32 32\' width=\'32\' height=\'32\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z\'/><path d=\'M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z\'/><path d=\'M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z\'/></svg>","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"},"originalContent":{"type":"string"},"promptType":{"type":"string"},"originalMessages":{"type":"array","default":[]},"messages":{"type":"array","default":[]},"userPrompt":{"type":"string","default":""},"requestingState":{"type":"string","default":"init"}},"example":{"attributes":{"content":"With **Jetpack AI Assistant**, you can provide a prompt, and it will generate high-quality blog posts, informative pages, well-organized lists, and thorough tables that meet your specific requirements.\\n\\nTo start using the **Jetpack AI Assistant**, type `/AI` in the block editor."}}}')},21540:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-chat","title":"Jetpack AI Search","description":"Provide a summarized answer to questions, trained on the sites content. Powered by AI.","keywords":["AI","GPT","Chat","Search"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg width=\'16\' height=\'16\' viewBox=\'0 0 16 16\' xmlns=\'http://www.w3.org/2000/svg\'><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M6.96774 8C6.96774 9.1402 6.04343 10.0645 4.90323 10.0645C3.76303 10.0645 2.83871 9.1402 2.83871 8C2.83871 6.8598 3.76303 5.93548 4.90323 5.93548C6.04343 5.93548 6.96774 6.8598 6.96774 8ZM5.41935 8C5.41935 8.28505 5.18828 8.51613 4.90323 8.51613C4.61818 8.51613 4.3871 8.28505 4.3871 8C4.3871 7.71495 4.61818 7.48387 4.90323 7.48387C5.18828 7.48387 5.41935 7.71495 5.41935 8Z\'/><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M11.0968 10.0645C12.237 10.0645 13.1613 9.1402 13.1613 8C13.1613 6.8598 12.237 5.93548 11.0968 5.93548C9.95657 5.93548 9.03226 6.8598 9.03226 8C9.03226 9.1402 9.95657 10.0645 11.0968 10.0645ZM11.0968 8.51613C11.3818 8.51613 11.6129 8.28505 11.6129 8C11.6129 7.71495 11.3818 7.48387 11.0968 7.48387C10.8117 7.48387 10.5806 7.71495 10.5806 8C10.5806 8.28505 10.8117 8.51613 11.0968 8.51613Z\'/><path d=\'M5.93548 11.3548C5.50791 11.3548 5.16129 11.7015 5.16129 12.129C5.16129 12.5566 5.50791 12.9032 5.93548 12.9032H10.0645C10.4921 12.9032 10.8387 12.5566 10.8387 12.129C10.8387 11.7015 10.4921 11.3548 10.0645 11.3548H5.93548Z\'/><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.77419 0.774194C8.77419 0.346618 8.42758 0 8 0C7.57242 0 7.22581 0.346618 7.22581 0.774194V3.09677H4.90323C2.19525 3.09677 0 5.29202 0 8V11.0968C0 13.8048 2.19525 16 4.90323 16H11.0968C13.8048 16 16 13.8048 16 11.0968V8C16 5.29202 13.8048 3.09677 11.0968 3.09677H8.77419V0.774194ZM1.54839 8C1.54839 6.14717 3.0504 4.64516 4.90323 4.64516H11.0968C12.9496 4.64516 14.4516 6.14717 14.4516 8V11.0968C14.4516 12.9496 12.9496 14.4516 11.0968 14.4516H4.90323C3.0504 14.4516 1.54839 12.9496 1.54839 11.0968V8Z\'/></svg>","supports":{"align":true,"alignWide":true,"customClassName":true,"className":true,"html":false,"multiple":false,"reusable":false},"attributes":{"askButtonLabel":{"type":"string"},"placeholder":{"type":"string"},"showCopy":{"type":"boolean","default":true},"showFeedback":{"type":"boolean","default":true},"showSources":{"type":"boolean","default":true}}}')},41107:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-image","title":"AI Image (Experimental)","description":"Automatically generate an illustration for your post, powered by AI magic. We are experimenting with this feature and can tweak or remove it at any point.","keywords":["AI","AL","DALLe","Diffusion","Magic"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 20 20\' width=\'20\' height=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M11.1 10L18 2 7 10h2l-7 8 11-8h-1.9zm-4.3 1H3.9l2.5-1.8 7.5-5.5L10 2 3 5v3c0 2 .5 3.9 1.5 5.6L6.8 11zm6.4-2H16l-2.4 1.8L6.5 16c1 .9 2.2 1.6 3.5 2 4.2-1.5 7.1-5.5 7-10V5l-.2-.1L13.2 9z\'/></svg>","supports":{"align":false,"alignWide":false,"anchor":false,"customClassName":false,"className":true,"html":false,"multiple":true,"reusable":false,"inserter":false},"attributes":{"content":{"type":"string","source":"text"},"requestedPrompt":{"type":"string","default":false}}}')},59958:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-paragraph","title":"AI Paragraph (Experimental)","description":"Automatically generate new paragraphs using your existing content, powered by AI magic. We are experimenting with this feature and can tweak or remove it at any point.","keywords":["AI","GPT","AL","Magic"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 20 20\' width=\'20\' height=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M11.1 10L18 2 7 10h2l-7 8 11-8h-1.9zm-4.3 1H3.9l2.5-1.8 7.5-5.5L10 2 3 5v3c0 2 .5 3.9 1.5 5.6L6.8 11zm6.4-2H16l-2.4 1.8L6.5 16c1 .9 2.2 1.6 3.5 2 4.2-1.5 7.1-5.5 7-10V5l-.2-.1L13.2 9z\'/></svg>","supports":{"align":true,"alignWide":true,"anchor":true,"customClassName":true,"className":true,"html":true,"multiple":true,"reusable":false,"inserter":false},"attributes":{"content":{"type":"string","source":"html"},"animationDone":{"type":"boolean","default":false}},"example":{"attributes":{"animationDone":false,"content":"I\'m afraid I can\'t do that, Dave."}}}')},73632:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/blog-stats","title":"Blog Stats","description":"Show a stats counter for your blog.","keywords":["views","hits","analytics","counter","visitors"],"version":"1.0","textdomain":"jetpack","category":"grow","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' height=\'24\' viewBox=\'0 -960 960 960\' width=\'24\'><path d=\'M160-200h160v-320H160v320Zm240 0h160v-560H400v560Zm240 0h160v-240H640v240ZM80-120v-480h240v-240h320v320h240v400H80Z\'/></svg>","supports":{"align":true,"alignWide":true,"html":false,"multiple":true,"reusable":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true}},"attributes":{"label":{"type":"string"},"statsData":{"type":"string","default":"views"},"statsOption":{"type":"string","default":"site"}}}')},37391:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/blogging-prompt","title":"Writing Prompt","description":"Answer a new and inspiring writing prompt each day.","keywords":["writing","blogging"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M14.3438 19.3438H9.65625C9.57031 19.3438 9.5 19.4141 9.5 19.5V20.125C9.5 20.4707 9.7793 20.75 10.125 20.75H13.875C14.2207 20.75 14.5 20.4707 14.5 20.125V19.5C14.5 19.4141 14.4297 19.3438 14.3438 19.3438ZM12 3.25C8.46289 3.25 5.59375 6.11914 5.59375 9.65625C5.59375 12.0273 6.88281 14.0977 8.79688 15.2051V17.4688C8.79688 17.8145 9.07617 18.0938 9.42188 18.0938H14.5781C14.9238 18.0938 15.2031 17.8145 15.2031 17.4688V15.2051C17.1172 14.0977 18.4062 12.0273 18.4062 9.65625C18.4062 6.11914 15.5371 3.25 12 3.25ZM14.498 13.9883L13.7969 14.3945V16.6875H10.2031V14.3945L9.50195 13.9883C7.96484 13.0996 7 11.4629 7 9.65625C7 6.89453 9.23828 4.65625 12 4.65625C14.7617 4.65625 17 6.89453 17 9.65625C17 11.4629 16.0352 13.0996 14.498 13.9883Z\' stroke-width=\'0.1\'/></svg>","supports":{"align":false,"alignWide":false,"anchor":false,"className":true,"color":{"background":true,"gradients":true,"link":true,"text":true},"customClassName":true,"html":false,"inserter":true,"multiple":false,"reusable":true,"spacing":{"margin":["top","bottom"],"padding":true,"blockGap":false}},"attributes":{"answersLink":{"type":"string","source":"attribute","attribute":"href","selector":".jetpack-blogging-prompt__answers-link"},"answersLinkText":{"type":"string","source":"html","selector":".jetpack-blogging-prompt__answers-link"},"gravatars":{"type":"array","source":"query","selector":".jetpack-blogging-prompt__answers-gravatar","query":{"url":{"type":"string","source":"attribute","attribute":"src"}},"default":[]},"promptLabel":{"type":"string","source":"html","selector":".jetpack-blogging-prompt__label"},"promptText":{"type":"string","source":"html","selector":".jetpack-blogging-prompt__text"},"promptFetched":{"type":"boolean","default":false},"promptId":{"type":"number"},"showResponses":{"type":"boolean","default":true},"showLabel":{"type":"boolean","default":true},"tagsAdded":{"type":"boolean","default":false},"isBloganuary":{"type":"boolean","default":false}},"styles":[{"name":"block","label":"Block","isDefault":true},{"name":"quote","label":"Quote"}]}')},28546:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/blogroll","title":"Blogroll","description":"Share the sites you follow with your users.","keywords":[],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M4.08691 16.2412H20.0869V14.7412H4.08691V16.2412Z\'></path><path d=\'M4.08691 20.2412H13.0869V18.7412H4.08691V20.2412Z\'></path><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.08691 8.17871C4.08691 6.00409 5.84979 4.24121 8.02441 4.24121C10.199 4.24121 11.9619 6.00409 11.9619 8.17871C11.9619 10.3533 10.199 12.1162 8.02441 12.1162C5.84979 12.1162 4.08691 10.3533 4.08691 8.17871ZM5.10729 6.71621C5.51231 5.90991 6.2418 5.29471 7.12439 5.04194C6.91534 5.28455 6.73551 5.57108 6.58869 5.88606C6.46938 6.14205 6.36999 6.42056 6.29338 6.71621H5.10729ZM4.85759 7.39121C4.79508 7.64341 4.76191 7.90719 4.76191 8.17871C4.76191 8.45024 4.79508 8.71401 4.85759 8.96621H6.16284C6.12938 8.71126 6.11192 8.44782 6.11192 8.1787C6.11192 7.90956 6.12938 7.64614 6.16284 7.39121H4.85759ZM6.84439 7.39121C6.80693 7.64285 6.78692 7.90651 6.78692 8.1787C6.78692 8.45091 6.80694 8.71459 6.84439 8.96621H9.20444C9.2419 8.71458 9.26192 8.45091 9.26192 8.17873C9.26192 7.90653 9.2419 7.64285 9.20444 7.39121H6.84439ZM9.88599 7.39121C9.91945 7.64615 9.93692 7.90958 9.93692 8.17873C9.93692 8.44786 9.91945 8.71128 9.88599 8.96621H11.1912C11.2537 8.71401 11.2869 8.45024 11.2869 8.17871C11.2869 7.90719 11.2537 7.64341 11.1912 7.39121H9.88599ZM10.9415 6.71621H9.75544C9.67883 6.42057 9.57945 6.14207 9.46014 5.88609C9.31332 5.5711 9.13347 5.28455 8.92441 5.04193C9.80702 5.29469 10.5365 5.9099 10.9415 6.71621ZM9.05465 6.71621H6.99417C7.05245 6.52254 7.12177 6.34014 7.2005 6.17123C7.42342 5.69296 7.71302 5.34019 8.02439 5.13337C8.33578 5.34019 8.6254 5.69297 8.84833 6.17126C8.92706 6.34016 8.99637 6.52255 9.05465 6.71621ZM5.10729 9.64121H6.29339C6.37419 9.95305 6.48034 10.2458 6.6085 10.5132C6.75142 10.8114 6.92452 11.0835 7.12445 11.3155C6.24183 11.0627 5.51232 10.4475 5.10729 9.64121ZM9.05466 9.64121H6.99418C7.05655 9.84847 7.13156 10.0428 7.21721 10.2215C7.43825 10.6827 7.72115 11.0226 8.02446 11.224C8.33582 11.0172 8.62541 10.6645 8.84833 10.1862C8.92706 10.0173 8.99638 9.83488 9.05466 9.64121ZM9.46014 10.4714C9.57945 10.2154 9.67884 9.93686 9.75545 9.64121H10.9415C10.5365 10.4475 9.80703 11.0627 8.92444 11.3155C9.13349 11.0729 9.31332 10.7863 9.46014 10.4714Z\'></path></svg>","supports":{"align":false,"alignWide":true,"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true,"color":{"link":true,"gradients":true},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true}},"attributes":{"show_avatar":{"type":"boolean","default":true},"show_description":{"type":"boolean","default":true},"open_links_new_window":{"type":"boolean","default":true},"ignore_user_blogs":{"type":"boolean","default":true},"load_placeholders":{"type":"boolean","default":true}},"providesContext":{"showAvatar":"show_avatar","showDescription":"show_description","openLinksNewWindow":"open_links_new_window"}}')},22023:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/business-hours","title":"Business Hours","description":"Display opening hours for your business.","keywords":["opening hours","closing time","schedule","working day"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z\'/></svg>","supports":{"html":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"days":{"type":"array","default":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}},"example":{"attributes":{"days":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}}}')},23329:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/calendly","title":"Calendly","description":"Embed a calendar for customers to schedule appointments.","keywords":["calendar","schedule","appointments","events","dates"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 23 24\' width=\'23\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19,1h-2.3v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H8.6v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H4C1.8,1,0,2.8,0,5 v15c0,2.2,1.8,4,4,4h15c2.2,0,4-1.8,4-4V5C23,2.8,21.2,1,19,1z M21,20c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V5c0-1.1,0.9-2,2-2h2.6 v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3h6.1v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3H19c1.1,0,2,0.9,2,2V20z M13.9,14.8l1.4,1.4 c-0.9,0.9-2.1,1.3-3.5,1.3c-2.4,0-4.5-2.1-4.5-4.7s2.1-4.7,4.5-4.7c1.4,0,2.5,0.4,3.4,1.1L14,10.9c-0.5-0.4-1.2-0.6-2.1-0.6 c-1.2,0-2.5,1.1-2.5,2.7c0,1.6,1.3,2.7,2.5,2.7C12.7,15.5,13.4,15.3,13.9,14.8z\'/></svg>","supports":{"align":true,"alignWide":false,"html":false},"attributes":{"backgroundColor":{"type":"string","default":"ffffff"},"hideEventTypeDetails":{"type":"boolean","default":false},"primaryColor":{"type":"string","default":"00A2FF"},"textColor":{"type":"string","default":"4D5055"},"style":{"type":"string","default":"inline","enum":["inline","link"]},"url":{"type":"string"}},"example":{"attributes":{"hideEventTypeDetails":false,"style":"inline","url":"https://calendly.com/wpcom/jetpack-block-example"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Schedule time with me","uniqueId":"calendly-widget-id","url":"https://calendly.com/wpcom/jetpack-block-example"}}]}}')},58891:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/contact-info","title":"Contact Info","description":"Add an email address, phone number, and physical address with improved markup for better SEO results.","keywords":["email","phone","address"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19 5v14H5V5h14m0-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm6 10H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18zm-9.69-2h7.38c-.69-.56-2.38-1.12-3.69-1.12s-3.01.56-3.69 1.12z\'/></svg>","supports":{"align":["wide","full"],"html":false,"color":{"link":true,"gradients":true},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true}},"example":{"attributes":{},"innerBlocks":[{"name":"jetpack/email","attributes":{"email":"hello@yourjetpack.blog"}},{"name":"jetpack/phone","attributes":{"phone":"123-456-7890"}},{"name":"jetpack/address","attributes":{"address":"987 Photon Drive","city":"Speedyville","region":"CA","postal":"12345","country":"USA"}}]}}')},90853:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/cookie-consent","title":"Cookie Consent","description":"Display a customizable cookie consent banner. To display this block on all pages of your site, please add it inside a Template Part that is present on all your templates, like a Header or a Footer.","keywords":["cookie","consent","privacy","GDPR","EU"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m20.27,11.03c-.02-.31-.05-.62-.11-.92h-3.88v-2.91h-2.87v-3.79c-.32-.06-.64-.1-.97-.12-.15,0-.29,0-.44,0C7.42,3.28,3.71,7,3.71,11.57s3.71,8.3,8.29,8.3,8.29-3.72,8.29-8.3c0-.18,0-.36-.02-.54Zm-8.23,7.79c-4,0-7.24-3.25-7.24-7.25s3.24-7.24,7.24-7.24c.14,0,.27,0,.4.02v3.81h2.9v2.87h3.91c.02.18.03.36.03.54,0,4-3.24,7.25-7.24,7.25Z\'/><path d=\'M 8, 8 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/><path d=\'M 12, 11.5 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/><path d=\'M 13, 16 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/><path d=\'M 8, 14 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/></svg>","supports":{"align":["left","right","wide","full"],"alignWide":true,"anchor":false,"color":{"gradients":true,"link":true},"spacing":{"padding":true},"customClassName":true,"className":true,"html":false,"lock":false,"multiple":false,"reusable":false},"attributes":{"text":{"type":"string","source":"html","selector":"p"},"style":{"type":"object","default":{"color":{"text":"var(--wp--preset--color--contrast)","background":"var(--wp--preset--color--tertiary)","link":"var(--wp--preset--color--contrast)"},"spacing":{"padding":{"top":"1em","right":"1em","bottom":"1em","left":"1em"}}}},"align":{"type":"string","default":"wide"},"consentExpiryDays":{"type":"integer","default":365},"showOverlay":{"type":"boolean","default":false}}}')},98826:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/donations","title":"Donations Form","description":"Collect one-time, monthly, or annually recurring donations.","keywords":["charity","contribution","credit card","debit card","donate","earn","monetize","ecommerce","fundraising","fundraiser","gofundme","money","nonprofit","non-profit","paid","patreon","pay","payments","recurring","stripe","sponsor","square","tipping","venmo"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z\' /></svg>","supports":{"html":false},"attributes":{"currency":{"type":"string","default":""},"oneTimeDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"monthlyDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"annualDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"showCustomAmount":{"type":"boolean","default":true},"chooseAmountText":{"type":"string"},"customAmountText":{"type":"string"},"fallbackLinkUrl":{"type":"string"}},"example":{}}')},33711:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/eventbrite","title":"Eventbrite Checkout","description":"Embed Eventbrite event details and ticket checkout.","keywords":["events","tickets"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M18.041,3.931L5.959,3C4.325,3,3,4.325,3,5.959v12.083C3,19.675,4.325,21,5.959,21l12.083-0.931C19.699,19.983,21,18.744,21,17.11V6.89C21,5.256,19.741,4.027,18.041,3.931zM16.933,8.17c-0.082,0.215-0.192,0.432-0.378,0.551c-0.188,0.122-0.489,0.132-0.799,0.132c-1.521,0-3.062-0.048-4.607-0.048c-0.152,0.708-0.304,1.416-0.451,2.128c0.932-0.004,1.873,0.005,2.81,0.005c0.726,0,1.462-0.069,1.586,0.525c0.04,0.189-0.001,0.426-0.052,0.615c-0.105,0.38-0.258,0.676-0.625,0.783c-0.185,0.054-0.408,0.058-0.646,0.058c-1.145,0-2.345,0.017-3.493,0.02c-0.169,0.772-0.328,1.553-0.489,2.333c1.57-0.005,3.067-0.041,4.633-0.058c0.627-0.007,1.085,0.194,1.009,0.85c-0.031,0.262-0.098,0.497-0.211,0.725c-0.102,0.208-0.248,0.376-0.488,0.452c-0.237,0.075-0.541,0.064-0.862,0.078c-0.304,0.014-0.614,0.008-0.924,0.016c-0.309,0.009-0.619,0.022-0.919,0.022c-1.253,0-2.429,0.08-3.683,0.073c-0.603-0.004-1.014-0.249-1.124-0.757c-0.059-0.273-0.018-0.58,0.036-0.841c0.541-2.592,1.083-5.176,1.629-7.763c0.056-0.265,0.114-0.511,0.225-0.714C9.279,7.051,9.534,6.834,9.9,6.735c0.368-0.099,0.883-0.047,1.344-0.047c0.305,0,0.612,0.008,0.914,0.016c0.925,0.026,1.817,0.03,2.747,0.053c0.304,0.007,0.615,0.016,0.915,0.016c0.621,0,1.17,0.073,1.245,0.614C17.104,7.675,17.014,7.954,16.933,8.17z\'/></svg>","supports":{"html":false,"align":true},"attributes":{"url":{"type":"string"},"eventId":{"type":"number"},"style":{"type":"string","default":"inline"}},"example":{"attributes":{"url":"https://www.eventbrite.com/e/test-event-tickets-123456789","eventId":123456789,"style":"modal"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Register","uniqueId":"eventbrite-widget-id"}}]}}')},13625:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/gif","title":"GIF","description":"Search for and insert an animated image.","keywords":["animated","giphy","image"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\'/><path d=\'M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z\'/></svg>","supports":{"html":false,"align":true},"attributes":{"align":{"type":"string","default":"center"},"caption":{"type":"string"},"giphyUrl":{"type":"string"},"searchText":{"type":"string"},"paddingTop":{"type":"string","default":"56.2%"}},"example":{"attributes":{"align":"center","giphyUrl":"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc","paddingTop":"100%","searchText":"WordPress"}}}')},36290:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/goodreads","title":"Goodreads","description":"Features books from the shelves of your Goodreads account.","keywords":["book","read","author"],"version":"1.0","textdomain":"jetpack","category":"embed","icon":"<svg height=\'24\' viewBox=\'0 0 24 24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\' aria-hidden=\'true\' focusable=\'false\'><path d=\'M19.525 15.977V.49h-2.059v2.906h-.064c-.211-.455-.481-.891-.842-1.307-.36-.412-.767-.777-1.232-1.094-.466-.314-.962-.561-1.519-.736C13.256.09 12.669 0 12.038 0c-1.21 0-2.3.225-3.246.67-.947.447-1.743 1.057-2.385 1.83-.642.773-1.133 1.676-1.47 2.711-.336 1.037-.506 2.129-.506 3.283 0 1.199.141 2.326.425 3.382.286 1.057.737 1.976 1.368 2.762.631.78 1.412 1.397 2.375 1.833.961.436 2.119.661 3.471.661 1.248 0 2.33-.315 3.262-.946s1.638-1.473 2.119-2.525h.061v2.284c0 2.044-.421 3.607-1.264 4.705-.84 1.081-2.224 1.638-4.146 1.638-.572 0-1.128-.061-1.669-.181-.542-.12-1.036-.315-1.487-.57-.437-.271-.827-.601-1.143-1.038-.316-.435-.526-.961-.632-1.593H5.064c.067.887.315 1.654.737 2.3.424.646.961 1.172 1.602 1.593.641.406 1.367.706 2.172.902.811.194 1.639.3 2.494.3 1.383 0 2.541-.195 3.486-.555.947-.376 1.714-.902 2.301-1.608.601-.708 1.021-1.549 1.293-2.556.27-1.007.42-2.134.42-3.367l-.044.062zm-7.484-.557c-.955 0-1.784-.189-2.479-.571-.697-.38-1.277-.882-1.732-1.503-.467-.621-.797-1.332-1.022-2.139s-.332-1.633-.332-2.484c0-.871.105-1.725.301-2.563.21-.84.54-1.587.992-2.24.451-.652 1.037-1.182 1.728-1.584s1.533-.605 2.51-.605 1.803.209 2.495.621c.676.415 1.247.959 1.683 1.634.436.677.751 1.429.947 2.255.195.826.285 1.656.285 2.482 0 .852-.12 1.678-.345 2.484-.226.807-.572 1.518-1.038 2.139-.465.621-1.021 1.123-1.698 1.503-.676.382-1.458.571-2.359.571h.064z\'></path></svg>","supports":{"html":false,"align":true},"attributes":{"bookNumber":{"type":"string","default":"5"},"class":{"type":"string"},"customTitle":{"type":"string"},"goodreadsId":{"type":"number"},"id":{"type":"string"},"link":{"type":"string"},"orderOption":{"type":"string","default":"d"},"shelfOption":{"type":"string","default":"read"},"showAuthor":{"type":"boolean","default":true},"showCover":{"type":"boolean","default":true},"showRating":{"type":"boolean","default":true},"showReview":{"type":"boolean","default":false},"showTags":{"type":"boolean","default":false},"showTitle":{"type":"boolean","default":true},"sortOption":{"type":"string","default":"date_added"},"style":{"type":"string","default":"default"},"userInput":{"type":"string"},"widgetId":{"type":"number"}},"example":{"attributes":{"goodreadsId":1176283}}}')},5416:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/google-calendar","title":"Google Calendar","description":"Embed a Google Calendar.","keywords":["events","dates","schedule","appointments"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 23\' width=\'24\' height=\'23\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19.5,23h-15c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h15c2.2,0,4,1.8,4,4v15C23.5,21.2,21.7,23,19.5,23z M4.5,2 c-1.1,0-2,0.9-2,2v15c0,1.1,0.9,2,2,2h15c1.1,0,2-0.9,2-2V4c0-1.1-0.9-2-2-2H4.5z M6.9,3.9L6.9,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0C6.5,5.9,6.1,5.5,6.1,5V4.7C6.1,4.3,6.5,3.9,6.9,3.9z M17,3.9L17,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0c-0.5,0-0.9-0.4-0.9-0.9V4.7C16.2,4.3,16.5,3.9,17,3.9z M8.8,17.6c1.8,0,3.2-1,3.2-2.4 c0-1.1-0.7-1.8-1.8-1.9v-0.1c0.9-0.2,1.5-0.9,1.5-1.8c0-1.3-1.2-2.2-2.9-2.2c-1.8,0-2.9,1-3,2.5h1.6c0-0.7,0.6-1.1,1.4-1.1 c0.8,0,1.3,0.4,1.3,1.1c0,0.7-0.5,1.1-1.3,1.1h-1v1.3h1c0.9,0,1.5,0.4,1.5,1.1c0,0.7-0.6,1.2-1.4,1.2c-0.9,0-1.4-0.4-1.5-1.1H5.7 C5.8,16.6,7,17.6,8.8,17.6z M17.6,17.4V9.3h-1.7l-2.1,1.4v1.6l2-1.4h0.1v6.4H17.6z\'/></svg>","supports":{"align":true,"alignWide":true,"html":false},"attributes":{"url":{"type":"string"},"height":{"type":"integer","default":600}},"example":{"attributes":{"url":"https://calendar.google.com/calendar/embed?src=jb4bu80jirp0u11a6niie21pp4%40group.calendar.google.com&ctz=America/New_York"}}}')},1597:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/google-docs-embed","title":"Google Docs (Beta)","description":"Embed a Google Document.","keywords":["document","gsuite","doc"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 64 88\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z\' /><path fill=\'#FDFFFF\' d=\'M42,0l22,22H42V0z\' /><path fill=\'#FDFFFF\' d=\'M50,39H14v-5h36V39z M50,46H14v5h36V46z M40,58H14v5h26V58z\' /></svg>","supports":{"align":["left","right","center","wide","full"],"anchor":true},"attributes":{"url":{"type":"string","default":""},"aspectRatio":{"type":"string"},"variation":{"type":"string"}}}')},43781:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/image-compare","title":"Image Compare","description":"Compare two images with a slider. Works best with images of the same size.","keywords":["juxtapose","photos","pictures","side by side","slider"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M21 4h-6v1.5h6c.3 0 .5.2.5.5v.4l-3.6 3.5L15 8.1v1.8l2.6 1.7c.1.1.3.1.4.1.2 0 .4-.1.5-.2l3-2.9V18c0 .3-.2.5-.5.5h-6V20h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM1 6v12c0 1.1.9 2 2 2h10.5V4H3c-1.1 0-2 .9-2 2zm11 12.5H3c-.3 0-.5-.2-.5-.5v-1.4L5 14.7l1.5-1.1.1-.1 3 1.9c.1.1.3.1.4.1.2 0 .4-.1.5-.2L12 14v4.5zm0-6.6l-2.1 2L7 12c-.1-.1-.3-.1-.4-.1h-.1c-.1 0-.3.1-.4.1l-1.1.9-2.5 1.8V6c0-.3.2-.5.5-.5h9v6.4z\'/></svg>","supports":{"align":["wide","full"]},"attributes":{"imageBefore":{"type":"object","default":{}},"imageAfter":{"type":"object","default":{}},"caption":{"type":"string"},"orientation":{"type":"string","default":"horizontal"}}}')},96946:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/instagram-gallery","title":"Latest Instagram Posts","description":"Display an automatically updating list of the latest posts from your Instagram feed.","keywords":["images","photos","pictures"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z\'></path></svg>","supports":{"align":true,"html":false},"attributes":{"accessToken":{"type":"string"},"instagramUser":{"type":"string"},"columns":{"type":"number","default":3,"min":1,"max":6},"count":{"type":"number","default":9,"min":1,"max":30},"spacing":{"type":"number","default":10,"min":0,"max":50},"isStackedOnMobile":{"type":"boolean","default":true}}}')},57585:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/like","title":"Like","description":"Give your readers the ability to show appreciation for your posts.","keywords":["like","thumbs up","button"],"version":"1.0.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill-rule=\'evenodd\' d=\'M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z\' clip-rule=\'evenodd\'></path></svg>","usesContext":["postId"],"attributes":{"showReblogButton":{"type":"boolean","default":false}}}')},88322:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/mailchimp","title":"Mailchimp","description":"Allow readers to join a Mailchimp audience.","keywords":["email","subscription","newsletter"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m16.88,11.25c.17-.02.34-.02.49,0,.09-.2.1-.55.02-.93-.12-.57-.28-.91-.61-.86-.33.05-.34.46-.22,1.03.07.32.19.59.32.76\'/><path d=\'m14.03,11.7c.24.1.38.17.44.11.04-.04.03-.11-.03-.2-.12-.19-.36-.38-.61-.49-.52-.22-1.14-.15-1.62.19-.16.12-.31.28-.29.37,0,.03.03.06.09.06.13.01.59-.22,1.11-.25.37-.02.68.09.92.2\'/><path d=\'m13.56,11.97c-.31.05-.48.15-.59.25-.09.08-.15.17-.15.23,0,.03.01.05.02.06.01.01.03.02.05.02.07,0,.23-.06.23-.06.43-.15.71-.13.99-.1.16.02.23.03.26-.03.01-.02.02-.05,0-.1-.07-.12-.38-.32-.81-.26\'/><path d=\'m15.92,12.97c.21.1.44.06.52-.09s-.03-.36-.24-.46c-.21-.1-.44-.06-.52.09-.08.15.03.36.24.46\'/><path d=\'m17.26,11.79c-.17,0-.31.18-.32.42s.13.42.3.43.31-.18.32-.42c0-.23-.13-.42-.3-.43\'/><path d=\'m5.83,16c-.04-.05-.11-.04-.18-.02-.05.01-.1.02-.16.02-.13,0-.23-.06-.29-.15-.08-.12-.07-.3.01-.5l.04-.09c.14-.31.36-.82.11-1.31-.19-.37-.51-.6-.89-.64-.36-.05-.74.09-.98.35-.38.42-.44.98-.36,1.18.03.07.07.09.1.1.06,0,.16-.04.22-.2l.02-.05c.03-.08.08-.24.16-.37.1-.15.25-.26.43-.29.18-.04.37,0,.52.1.26.17.37.5.25.8-.06.16-.15.46-.13.72.04.51.35.71.63.73.27.01.46-.14.51-.25.03-.07,0-.11-.01-.12\'/><path d=\'m8.42,6.69c.89-1.03,1.98-1.92,2.96-2.42.03-.02.07.02.05.05-.08.14-.23.44-.28.67,0,.04.03.06.06.04.61-.42,1.67-.86,2.6-.92.04,0,.06.05.03.07-.14.11-.3.26-.41.41-.02.03,0,.06.03.06.65,0,1.57.23,2.17.57.04.02.01.1-.03.09-.91-.21-2.4-.37-3.94.01-1.38.34-2.43.86-3.2,1.41-.04.03-.09-.02-.05-.06h0Zm4.43,9.95h0s0,0,0,0h0Zm3.67.43s.04-.04.04-.07c0-.04-.04-.06-.07-.06,0,0-1.9.28-3.69-.38.2-.63.71-.41,1.5-.34,1.41.08,2.68-.12,3.62-.39.81-.23,1.88-.69,2.71-1.35.28.61.38,1.29.38,1.29,0,0,.22-.04.4.07.17.11.3.32.21.89-.17,1.05-.62,1.91-1.38,2.7-.46.49-1.02.92-1.65,1.24-.34.18-.7.33-1.08.46-2.84.93-5.75-.09-6.69-2.28-.07-.16-.14-.34-.19-.52-.4-1.44-.06-3.17,1-4.27h0c.07-.07.13-.15.13-.25,0-.09-.05-.18-.1-.24-.37-.54-1.66-1.45-1.4-3.23.19-1.27,1.3-2.17,2.34-2.12l.26.02c.45.03.84.08,1.21.1.62.03,1.18-.06,1.84-.61.22-.19.4-.35.7-.4.03,0,.11-.03.27-.03.16,0,.31.05.45.14.53.35.6,1.21.63,1.83.02.36.06,1.22.07,1.47.03.57.18.65.48.75.17.06.33.1.56.16.7.2,1.12.4,1.38.65.16.16.23.33.25.49.08.6-.47,1.35-1.93,2.03-1.59.74-3.53.93-4.87.78l-.47-.05c-1.07-.14-1.68,1.24-1.04,2.18.41.61,1.54,1.01,2.67,1.01,2.58,0,4.57-1.1,5.31-2.06l.06-.08c.04-.05,0-.08-.04-.05-.6.41-3.28,2.05-6.15,1.56,0,0-.35-.06-.67-.18-.25-.1-.78-.34-.85-.88,2.31.72,3.77.04,3.77.04h0ZM3.8,11.57c-.8.16-1.51.61-1.95,1.24-.26-.22-.74-.63-.83-.8-.69-1.31.76-3.87,1.77-5.32C5.3,3.13,9.21.43,11.02.92c.29.08,1.27,1.21,1.27,1.21,0,0-1.81,1.01-3.49,2.41-2.26,1.74-3.97,4.28-5,7.03h0Zm1.35,6.03c-.12.02-.25.03-.37.03-1.21-.03-2.52-1.12-2.65-2.42-.14-1.43.59-2.53,1.88-2.79.15-.03.34-.05.54-.04.72.04,1.79.6,2.04,2.17.22,1.4-.13,2.82-1.44,3.04h0Zm16.4-2.53s-.08-.28-.17-.58c-.09-.3-.19-.51-.19-.51.37-.56.38-1.06.33-1.34-.05-.35-.2-.65-.49-.96-.29-.31-.89-.62-1.74-.86l-.44-.12s-.02-1.04-.04-1.48c-.01-.32-.04-.82-.2-1.31-.18-.66-.5-1.24-.9-1.61,1.1-1.14,1.79-2.4,1.79-3.48,0-2.08-2.56-2.71-5.7-1.4l-.67.28s-1.2-1.18-1.22-1.2C8.33-2.63-2.89,9.84.7,12.86l.78.66c-.2.53-.28,1.13-.22,1.78.08.83.51,1.63,1.21,2.25.66.59,1.53.96,2.37.96,1.4,3.21,4.58,5.19,8.32,5.3,4.01.12,7.37-1.76,8.78-5.14.09-.24.48-1.31.48-2.25s-.54-1.34-.88-1.34\'/></svg>","supports":{"align":["wide","full"],"color":{"gradients":true},"spacing":{"padding":true,"margin":true}},"attributes":{"emailPlaceholder":{"type":"string"},"consentText":{"type":"string"},"interests":{"type":"array","default":[]},"processingLabel":{"type":"string"},"signupFieldTag":{"type":"string"},"signupFieldValue":{"type":"string"},"successLabel":{"type":"string"},"errorLabel":{"type":"string"},"preview":{"type":"boolean","default":false}},"example":{"attributes":{"preview":true},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"button","text":"Join my Mailchimp audience","uniqueId":"mailchimp-widget-id"}}]}}')},45388:e=>{"use strict";e.exports=JSON.parse('[{"id":"mapbox-gl-js","file":"node_modules/mapbox-gl/dist/mapbox-gl.js","version":"1.13.0"},{"id":"mapbox-gl-css","file":"node_modules/mapbox-gl/dist/mapbox-gl.css","version":"1.13.0"}]')},32334:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/map","title":"Map","description":"Add an interactive map showing one or more locations.","keywords":["maps","location","navigation"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\' /><path d=\'M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z\' /></svg>","supports":{"defaultStylePicker":false,"html":false},"attributes":{"align":{"type":"string"},"points":{"type":"array","default":[]},"address":{"type":"string","default":""},"mapDetails":{"type":"boolean","default":true},"zoom":{"type":"integer","default":13},"mapCenter":{"type":"object","default":{"longitude":-122.41941550000001,"latitude":37.7749295}},"markerColor":{"type":"string","default":"red"},"preview":{"type":"boolean","default":false},"scrollToZoom":{"type":"boolean","default":false},"mapHeight":{"type":"integer"},"showFullscreenButton":{"type":"boolean","default":true}},"example":{"attributes":{"preview":true}}}')},41549:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/markdown","title":"Markdown","description":"Add headings, lists, or links to plain text with ease.","keywords":["formatting","syntax","markup"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 208 128\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><rect width=\'198\' height=\'118\' x=\'5\' y=\'5\' ry=\'10\' stroke=\'currentColor\' strokeWidth=\'10\' fill=\'none\' /><path d=\'M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z\' />","supports":{"align":["wide","full"],"html":false,"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"padding":true,"margin":true}}},"attributes":{"source":{"type":"string"}},"example":{"attributes":{"source":"## ## Try Markdown\\n\\nMarkdown is a text formatting syntax that is converted into HTML. You can _emphasize_ text or **make it strong** with just a few characters."}}}')},66936:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/nextdoor","title":"Nextdoor","description":"Embed a Nextdoor post for your neighbors on your blog.","keywords":["neighbor"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg height=\'24\' width=\'24\' viewBox=\'0 0 130 130\' xmlns=\'http://www.w3.org/2000/svg\'><g><path d=\'M64.25 3.531c-31.144.337-57.596 24.22-60.469 55.907-3.064 33.799 21.857 63.685 55.657 66.75 33.799 3.064 63.685-21.857 66.75-55.657 3.064-33.8-21.857-63.686-55.657-66.75a62.075 62.075 0 00-6.281-.25zm3.938 34.907C82.468 38.438 93.5 48.58 93.5 61.5v27c0 .685-.565 1.25-1.25 1.25H80.906a1.267 1.267 0 01-1.25-1.25V63.375c0-5.58-4.309-11.938-11.469-11.938-7.47 0-11.468 6.358-11.468 11.938V88.5c0 .685-.565 1.25-1.25 1.25H44.125c-.68 0-1.219-.57-1.219-1.25V64.156c0-.74-.529-1.364-1.25-1.531-13.13-2.93-15.115-10.285-15.375-21.125-.005-.332.142-.67.375-.906.233-.237.543-.375.875-.375l11.688.062c.66.01 1.187.529 1.218 1.188.13 4.44.438 9.406 4.438 9.406.83 0 1.443-1.179 1.813-1.719 4.41-6.48 12.28-10.718 21.5-10.718z\'/></g></svg>","supports":{"align":true,"alignWide":true,"html":false},"attributes":{"url":{"type":"string"}}}')},46385:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/opentable","title":"OpenTable","description":"Book a reservation with OpenTable.","keywords":["booking","reservation","restaurant"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 22 16\' width=\'22\' height=\'16\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z\' /></svg>","supports":{"align":true,"html":false},"attributes":{"rid":{"default":[],"type":"array"},"style":{"default":"standard","type":"string","enum":["button","standard","wide","tall"]},"iframe":{"default":true,"type":"boolean"},"domain":{"default":"com","type":"string"},"lang":{"default":"en-US","type":"string","enum":["en-US","fr-CA","de-DE","es-MX","ja-JP","nl-NL","it-IT"]},"newtab":{"default":false,"type":"boolean"},"negativeMargin":{"default":false,"type":"boolean"}},"example":{"attributes":{"rid":["1"],"style":"standard","iframe":true,"domain":"com","lang":"en-US","newtab":false,"negativeMargin":false}}}')},91731:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/payment-buttons","title":"Payment Buttons","description":"Sell products and subscriptions.","keywords":["buy","contribution","commerce","credit card","debit card","donate","Donations","earn","monetize","ecommerce","gofundme","memberships","money","paid","patreon","pay","payments","products","purchase","recurring","sell","shop","stripe","subscribe","subscriptions","sponsor","square","toast","venmo"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z\'/></svg>","supports":{"__experimentalExposeControlsToChildren":true,"align":["wide","full"],"spacing":{"blockGap":true,"margin":["vertical"],"__experimentalDefaultControls":{"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}}},"attributes":{}}')},41424:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/payments-intro","title":"Payments","description":"Sell products and services or receive donations on your website.","keywords":["earn","monetize","paid","pay","money","checkout"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' width=\'24\' height=\'24\'><path d=\'M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z\'></path></svg>","supports":{"alignWide":false,"className":true,"customClassName":false,"html":false,"reusable":false}}')},66408:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/paywall","title":"Paywall","description":"Limit access to the content below this block to chosen subscribers.","keywords":["earn","monetize","more","email","follow","gated","memberships","newsletter","signin","subscribe","subscription","subscriptions"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M4 16.7134L20 16.7134V15.106H4V16.7134Z\' /><path d=\'M16 21H20V19.3925H16V21Z\' /><path d=\'M14 21H10V19.3925H14V21Z\' /><path d=\'M4 21H8V19.3925H4V21Z\' /><path d=\'M11.471 6.37162C11.2294 6.55286 11.1538 6.74395 11.1538 6.88519C11.1538 7.02644 11.2294 7.21752 11.471 7.39877C11.7108 7.57865 12.0728 7.70953 12.5 7.70953C13.1349 7.70953 13.7344 7.90158 14.1907 8.24382C14.6451 8.5847 15 9.11491 15 9.77039C15 10.4259 14.6451 10.9561 14.1907 11.297C13.8758 11.5331 13.4928 11.6978 13.0769 11.7771V12.0373C13.0769 12.3788 12.8186 12.6556 12.5 12.6556C12.1814 12.6556 11.9231 12.3788 11.9231 12.0373V11.7771C11.5072 11.6978 11.1242 11.5331 10.8093 11.297C10.3549 10.9561 10 10.4259 10 9.77039C10 9.42893 10.2583 9.15213 10.5769 9.15213C10.8955 9.15213 11.1538 9.42893 11.1538 9.77039C11.1538 9.91163 11.2294 10.1027 11.471 10.284C11.7108 10.4638 12.0728 10.5947 12.5 10.5947C12.9272 10.5947 13.2892 10.4638 13.529 10.284C13.7706 10.1027 13.8462 9.91163 13.8462 9.77039C13.8462 9.62914 13.7706 9.43806 13.529 9.25681C13.2892 9.07693 12.9272 8.94605 12.5 8.94605C11.8651 8.94605 11.2656 8.754 10.8093 8.41176C10.3549 8.07089 10 7.54067 10 6.88519C10 6.22971 10.3549 5.6995 10.8093 5.35863C11.1242 5.12246 11.5072 4.95781 11.9231 4.87844V4.61826C11.9231 4.2768 12.1814 4 12.5 4C12.8186 4 13.0769 4.2768 13.0769 4.61826V4.87844C13.4928 4.95781 13.8758 5.12246 14.1907 5.35863C14.6451 5.6995 15 6.22971 15 6.88519C15 7.22665 14.7417 7.50345 14.4231 7.50345C14.1045 7.50345 13.8462 7.22665 13.8462 6.88519C13.8462 6.74395 13.7706 6.55286 13.529 6.37162C13.2892 6.19174 12.9272 6.06085 12.5 6.06085C12.0728 6.06085 11.7108 6.19174 11.471 6.37162Z\' /></svg>","supports":{"customClassName":false,"html":false,"multiple":false},"parent":["core/post-content"]}')},55388:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/pinterest","title":"Pinterest","description":"Embed a Pinterest pin, board, or user.","keywords":["social","pinboard","pins"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12,2C6.477,2,2,6.477,2,12c0,4.236,2.636,7.855,6.356,9.312c-0.087-0.791-0.166-2.005,0.035-2.869c0.182-0.78,1.173-4.971,1.173-4.971s-0.299-0.599-0.299-1.484c0-1.39,0.806-2.429,1.809-2.429c0.853,0,1.265,0.641,1.265,1.409c0,0.858-0.546,2.141-0.828,3.329c-0.236,0.996,0.499,1.807,1.481,1.807c1.777,0,3.144-1.874,3.144-4.579c0-2.394-1.72-4.068-4.177-4.068c-2.845,0-4.515,2.134-4.515,4.34c0,0.859,0.331,1.781,0.744,2.282c0.082,0.099,0.094,0.186,0.069,0.287C8.18,14.682,8.011,15.361,7.978,15.5c-0.044,0.183-0.145,0.222-0.334,0.134c-1.249-0.581-2.03-2.407-2.03-3.874c0-3.154,2.292-6.051,6.607-6.051c3.469,0,6.165,2.472,6.165,5.775c0,3.446-2.173,6.22-5.189,6.22c-1.013,0-1.966-0.526-2.292-1.148c0,0-0.501,1.909-0.623,2.377c-0.226,0.869-0.835,1.957-1.243,2.622C9.975,21.844,10.969,22,12,22c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z\'/></svg>","supports":{"html":false,"align":false,"inserter":false},"attributes":{"url":{"type":"string"}},"example":{"attributes":{"url":"https://pinterest.com/anapinskywalker/"}}}')},33665:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/podcast-player","title":"Podcast Player","description":"Select and play episodes from a single podcast.","keywords":["audio","embed"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m22,6h-5v8.18c-.31-.11-.65-.18-1-.18-1.66,0-3,1.34-3,3s1.34,3,3,3,3-1.34,3-3v-9h3v-2h0Zm-7,0H3v2h12v-2h0Zm0,4H3v2h12v-2h0Zm-4,4H3v2h8v-2h0Zm4,3c0-.55.45-1,1-1s1,.45,1,1-.45,1-1,1-1-.45-1-1Z\' /></svg>","supports":{"align":["wide","full"],"spacing":{"padding":true,"margin":true},"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true},"attributes":{"url":{"type":"string"},"selectedEpisodes":{"type":"array","default":[]},"itemsToShow":{"type":"integer","default":5},"showCoverArt":{"type":"boolean","default":true},"showEpisodeTitle":{"type":"boolean","default":true},"showEpisodeDescription":{"type":"boolean","default":true},"primaryColor":{"type":"string"},"customPrimaryColor":{"type":"string"},"hexPrimaryColor":{"type":"string"},"secondaryColor":{"type":"string"},"customSecondaryColor":{"type":"string"},"hexSecondaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"hexBackgroundColor":{"type":"string"},"exampleFeedData":{"type":"object"}},"example":{"attributes":{"customPrimaryColor":"GREEN","hexPrimaryColor":"GREEN","exampleFeedData":{"title":"Jetpack Example Podcast","link":"https://jetpack.com","cover":"https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160","tracks":[{"id":"3","title":"3. Our third episode","duration":"14:58"},{"id":"2","title":"2. Interview with a special guest","duration":"19:17"},{"id":"1","title":"1. Welcome to Example Podcast","duration":"11:25"}]}}}}')},20134:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"premium-content/container","title":"Paid Content","description":"Restrict access to your content for paying subscribers.","keywords":["buy","credit card","debit card","monetize","earn","exclusive","gated","gofundme","memberships","money","newsletter","paid","patreon","pay","payments","paywall","premium content","purchase","recurring","repeat","signin","stripe","subscribe","subscriptions","support","sponsor","square","toast","venmo","stripe","substack"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m12.74,14.43l-4.1-1.26-.13.71-.42,6.87c-.03.49.52.81.93.54l3.72-2.48,4,2.51c.42.26.96-.07.92-.56l-.64-6.87v-.71l-4.28,1.26Z\'/><path d=\'m12.74,15.14c-3.55,0-6.44-2.89-6.44-6.44s2.89-6.44,6.44-6.44,6.44,2.89,6.44,6.44-2.89,6.44-6.44,6.44Zm0-11.89c-3,0-5.44,2.44-5.44,5.44s2.44,5.44,5.44,5.44,5.44-2.44,5.44-5.44-2.44-5.44-5.44-5.44Z\'/><path d=\'M11.95 11.08 9.36 8.48 10.06 7.77 11.95 9.66 15.42 6.19 16.13 6.9 11.95 11.08z\'/></svg>","supports":{"html":false},"providesContext":{"premium-content/planIds":"selectedPlanIds","premium-content/isPreview":"isPreview","isPremiumContentChild":"isPremiumContentChild"},"attributes":{"selectedPlanIds":{"type":"array","default":[]},"isPreview":{"type":"boolean","default":false},"isPremiumContentChild":{"type":"boolean","default":true}},"example":{"attributes":{"isPreview":true}}}')},98477:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/rating-star","title":"Star Rating","description":"Rate movies, books, songs, recipes — anything you can put a number on.","keywords":["star","rating","review"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z\'/></svg>","supports":{"html":false},"styles":[{"name":"filled","label":"Filled","isDefault":true},{"name":"outlined","label":"Outlined"}],"attributes":{"rating":{"type":"number","default":1},"maxRating":{"type":"number","default":5},"color":{"type":"string"},"ratingStyle":{"type":"string","default":"star"},"className":{"type":"string"},"align":{"type":"string","default":"left"}},"example":{}}')},61281:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/recipe","title":"Recipe (Beta)","description":"Add images, ingredients and cooking steps to display an easy to read recipe.","keywords":[],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M21,5c-1.11-0.35-2.33-0.5-3.5-0.5c-1.95,0-4.05,0.4-5.5,1.5c-1.45-1.1-3.55-1.5-5.5-1.5S2.45,4.9,1,6v14.65 c0,0.25,0.25,0.5,0.5,0.5c0.1,0,0.15-0.05,0.25-0.05C3.1,20.45,5.05,20,6.5,20c1.95,0,4.05,0.4,5.5,1.5c1.35-0.85,3.8-1.5,5.5-1.5 c1.65,0,3.35,0.3,4.75,1.05c0.1,0.05,0.15,0.05,0.25,0.05c0.25,0,0.5-0.25,0.5-0.5V6C22.4,5.55,21.75,5.25,21,5z M21,18.5 c-1.1-0.35-2.3-0.5-3.5-0.5c-1.7,0-4.15,0.65-5.5,1.5V8c1.35-0.85,3.8-1.5,5.5-1.5c1.2,0,2.4,0.15,3.5,0.5V18.5z\' /><path d=\'M17.5,10.5c0.88,0,1.73,0.09,2.5,0.26V9.24C19.21,9.09,18.36,9,17.5,9c-1.7,0-3.24,0.29-4.5,0.83v1.66 C14.13,10.85,15.7,10.5,17.5,10.5z\' /><path d=\'M13,12.49v1.66c1.13-0.64,2.7-0.99,4.5-0.99c0.88,0,1.73,0.09,2.5,0.26V11.9c-0.79-0.15-1.64-0.24-2.5-0.24 C15.8,11.66,14.26,11.96,13,12.49z\' /><path d=\'M17.5,14.33c-1.7,0-3.24,0.29-4.5,0.83v1.66c1.13-0.64,2.7-0.99,4.5-0.99c0.88,0,1.73,0.09,2.5,0.26v-1.52 C19.21,14.41,18.36,14.33,17.5,14.33z\' /></svg>","supports":{"align":["full","wide"],"alignWide":true,"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true},"attributes":{"ingredients":{"type":"array","default":[]},"steps":{"type":"array","default":[]}}}')},24854:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/recurring-payments","title":"Payment Button","description":"Button allowing you to sell products and subscriptions.","keywords":["buy","contribution","commerce","credit card","debit card","donate","Donations","monetize","earn","ecommerce","gofundme","memberships","money","paid","patreon","pay","payments","products","purchase","recurring","sell","shop","stripe","subscribe","subscriptions","sponsor","square","toast","venmo"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z\'/></svg>","supports":{"html":false,"__experimentalExposeControlsToChildren":true},"usesContext":["isPremiumContentChild"],"providesContext":{"jetpack/parentBlockWidth":"width"},"attributes":{"planId":{"type":"integer"},"planIds":{"type":"array"},"align":{"type":"string"},"url":{"type":"string","default":"#"},"uniqueId":{"type":"string","default":"id"},"width":{"type":"string"}},"parent":["jetpack/payment-buttons"]}')},25411:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/related-posts","title":"Related Posts","description":"Display a list of related posts.","keywords":["similar content","linked","connected"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m19.5,3.5H3.5v4.94s.01,6,.01,6v4s-.01,0-.01,0v1h15.97v-.06h.05l-.02-15.88Zm-11,1v3.94s-3.99,0-3.99,0v-3.94s3.99,0,3.99,0Zm.01,4.94v4h-4v-4h4Zm-3.99,9v-4s3.99,0,3.99,0v4s-3.99,0-3.99,0Zm13.98-13.94v3.94s-8.99,0-8.99,0v-3.94s8.99,0,8.99,0Zm.01,4.94v4h-9v-4h9Zm-8.99,9v-4s8.99,0,8.99,0v4s-8.99,0-8.99,0Z\'/></svg>","supports":{"html":false,"multiple":false,"reusable":false,"color":{"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"postLayout":{"type":"string","default":"grid"},"displayAuthor":{"type":"boolean","default":false},"displayDate":{"type":"boolean","default":true},"displayThumbnails":{"type":"boolean","default":false},"displayContext":{"type":"boolean","default":false},"postsToShow":{"type":"number","default":3}},"example":{"attributes":{"postLayout":"grid","displayAuthor":false,"displayDate":true,"displayThumbnails":true,"displayContext":false,"postsToShow":2}}}')},18962:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/repeat-visitor","title":"Repeat Visitor","description":"Control block visibility based on how often a visitor has viewed the page.","keywords":["return","visitors","visibility"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z\'/></svg>","supports":{"align":["wide","full"],"html":false},"attributes":{"criteria":{"type":"string","default":"after-visits"},"threshold":{"type":"number","default":3}},"example":{"attributes":{"criteria":"after-visits","threshold":3},"innerBlocks":[{"name":"core/paragraph","attributes":"This block will only appear to a visitor who visited the page three or more times."}]}}')},91402:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/send-a-message","title":"Send A Message","description":"Let your visitors send you messages with the tap of a button.","keywords":["whatsapp","messenger","contact","support"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z\'/></svg>","supports":{"html":false},"attributes":{},"example":{}}')},42142:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/sharing-button","title":"Sharing Button","description":"Display a sharing button, allowing users to share your post.","keywords":[],"version":"12.5.0","textdomain":"jetpack","category":"embed","parent":["jetpack/sharing-buttons"],"attributes":{"service":{"type":"string"},"label":{"type":"string"}},"usesContext":["styleType","postId","iconColorValue","iconBackgroundColorValue"],"supports":{"reusable":false,"html":false},"viewScript":"file:./view.js"}')},57352:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/sharing-buttons","title":"Sharing Buttons","description":"Give your readers the ability to easily share your content with X, Facebook, Tumblr, LinkedIn, and a host of other services to help spread your message across the web.","keywords":["sharing","social","bluesky","twitter","x","linkedin","facebook","mastodon","tumblr","threads","whatsapp","telegram","pinterest","pocket","reddit","nextdoor","print","email"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z\' /></svg>","attributes":{"styleType":{"type":"string","default":"icon-text","validValues":["icon-text","icon","text","official"]},"size":{"type":"string","default":"has-normal-icon-size","validValues":["has-small-icon-size","has-normal-icon-size","has-large-icon-size","has-huge-icon-size"]},"iconColor":{"type":"string"},"customIconColor":{"type":"string"},"iconColorValue":{"type":"string"},"iconBackgroundColor":{"type":"string"},"customIconBackgroundColor":{"type":"string"},"iconBackgroundColorValue":{"type":"string"}},"providesContext":{"styleType":"styleType","iconColor":"iconColor","iconColorValue":"iconColorValue","iconBackgroundColor":"iconBackgroundColor","iconBackgroundColorValue":"iconBackgroundColorValue"},"supports":{"align":["left","center","right"],"anchor":true,"__experimentalExposeControlsToChildren":true,"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"default":{"type":"flex"}},"color":{"enableContrastChecker":true,"background":true,"gradients":true,"customGradient":true,"text":false,"__experimentalDefaultControls":{"background":false}},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true,"margin":true,"padding":false}}},"example":{"innerBlocks":[{"name":"jetpack/sharing-button","attributes":{"service":"facebook"}},{"name":"jetpack/sharing-button","attributes":{"service":"x"}},{"name":"jetpack/sharing-button","attributes":{"service":"mastodon"}}]},"viewScript":"file:./view.js","style":"file:./view.css"}')},70955:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/simple-payments","title":"Pay with PayPal","description":"Add credit and debit card payment buttons with minimal setup. Good for collecting donations or payments for products and services.","keywords":["buy","commerce","credit card","debit card","monetize","earn","ecommerce","money","paid","payments","products","purchase","sell","shop","square","payments"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\' /><path d=\'M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z\' /></svg>","supports":{"className":false,"customClassName":false,"html":false,"reusable":false},"attributes":{"currency":{"type":"string","default":"USD"},"content":{"type":"string","source":"html","selector":".jetpack-simple-payments-description p","default":""},"email":{"type":"string","default":""},"featuredMediaId":{"type":"number","default":0},"featuredMediaUrl":{"type":"string","source":"attribute","selector":".jetpack-simple-payments-image img","attribute":"src","default":null},"featuredMediaTitle":{"type":"string","source":"attribute","selector":".jetpack-simple-payments-image img","attribute":"alt","default":null},"multiple":{"type":"boolean","default":false},"postLinkUrl":{"type":"string","source":"attribute","selector":".jetpack-simple-payments-purchase","attribute":"href"},"postLinkText":{"type":"string","source":"html","selector":".jetpack-simple-payments-purchase","default":"Click here to purchase."},"price":{"type":"number"},"productId":{"type":"number"},"title":{"type":"string","source":"html","selector":".jetpack-simple-payments-title p","default":""}},"example":{"attributes":{"price":25,"title":"Jetpack t-shirt","content":"Take flight in ultimate comfort with this stylish t-shirt featuring the Jetpack logo.","email":"jetpack@jetpack.com","featuredMediaUrl":"./simple-payments_example-1.jpg"}}}')},26523:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/slideshow","title":"Slideshow","description":"Display multiple images in sequential order.","keywords":["story","image","video","gallery"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m19,21.5H6v-1h13c.83,0,1.5-.67,1.5-1.5v-11h1v11c0,1.38-1.12,2.5-2.5,2.5Z\'/><path d=\'m16.38,3.25H4.62c-.75,0-1.37.62-1.37,1.37v11.76c0,.75.62,1.37,1.37,1.37h11.76c.75,0,1.37-.62,1.37-1.37V4.62c0-.75-.62-1.37-1.37-1.37Zm.37,13.13c0,.2-.17.37-.37.37H4.62c-.2,0-.37-.17-.37-.37V4.62c0-.2.17-.37.37-.37h11.76c.2,0,.37.17.37.37v11.76Z\'/><path d=\'M9.39 7.51 12.73 11.04 9.31 14.32 8.61 13.6 11.34 10.99 8.67 8.2 9.39 7.51z\'/></svg>","supports":{"html":false,"align":["center","wide","full"]},"attributes":{"align":{"default":"center","type":"string"},"autoplay":{"type":"boolean","default":false},"delay":{"type":"number","default":3},"ids":{"default":[],"type":"array"},"images":{"type":"array","default":[],"source":"query","selector":".swiper-slide","query":{"alt":{"source":"attribute","selector":"img","attribute":"alt","default":""},"caption":{"type":"string","source":"html","selector":"figcaption"},"id":{"source":"attribute","selector":"img","attribute":"data-id"},"url":{"source":"attribute","selector":"img","attribute":"src"}}},"effect":{"type":"string","default":"slide"},"sizeSlug":{"type":"string"}},"example":{"align":"center","autoplay":true,"ids":[22,23,24],"images":[{"alt":"","caption":"","id":22,"url":"./slideshowExample1.png"},{"alt":"","caption":"","id":23,"url":"./slideshowExample2.png"},{"alt":"","caption":"","id":24,"url":"./slideshowExample3.png"}],"effect":"slide"}}')},53238:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/story","title":"Story","description":"Add an interactive story.","keywords":["story","image","video","gallery"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><g><path d=\'M17 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2h9z\' /><path d=\'M13 4H5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2z\' /><path d=\'M7 16h8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z\' /></g></svg>","supports":{"html":false},"attributes":{"settings":{"type":"object"},"mediaFiles":{"type":"array","default":[]}},"example":{"attributes":{"mediaFiles":[{"alt":"","caption":"","mime":"image/jpg","type":"image","id":22,"url":"./storyExample1.png"}]}}}')},3908:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/subscriber-login","title":"Subscriber Login","description":"Show links for subscribers to login, logout, or manage their subscription.","keywords":["login","logout","subscription","member","account","user"],"version":"0.0.1","textdomain":"jetpack","category":"grow","icon":"<svg width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z\' fill-rule=\'evenodd\' clip-rule=\'evenodd\'></path></svg>","supports":{"align":true,"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"color":{"text":false,"link":true,"gradients":true}},"attributes":{"redirectToCurrent":{"type":"boolean","default":true},"logInLabel":{"type":"string"},"logOutLabel":{"type":"string"},"showManageSubscriptionsLink":{"type":"boolean","default":true},"manageSubscriptionsLabel":{"type":"string"}}}')},56071:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/subscriptions","title":"Subscribe","description":"Subscribe to this blog\'s posts as a newsletter.","keywords":["newsletter","email","follow"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m19.02,5H4.98c-1.09,0-1.98.89-1.98,1.98v10.04c0,1.09.89,1.98,1.98,1.98h14.04c1.09,0,1.98-.89,1.98-1.98V6.98c0-1.09-.89-1.98-1.98-1.98Zm.48,11.92c0,.32-.26.58-.58.58H5.08c-.32,0-.58-.26-.58-.58V7.08c0-.32.26-.58.58-.58h13.84c.32,0,.58.26.58.58v9.84Z\'/><path d=\'m4.38,17.69l5.71-4.79s.96,1,1.91.99,1.91-.99,1.91-.99l5.59,4.79v-2.03l-4.41-3.73,4.41-3.72v-1.91l-7.14,5.76c-.24.19-.59.19-.83,0l-7.14-5.88v1.98l4.3,3.67-4.3,3.78v2.08Z\'/></svg>","supports":{"spacing":{"margin":true,"padding":true},"align":["wide","full"]},"styles":[{"name":"split","label":"Split","isDefault":true},{"name":"compact","label":"Compact"},{"name":"button","label":"Button only"}],"attributes":{"subscribePlaceholder":{"type":"string"},"showSubscribersTotal":{"type":"boolean","default":false},"includeSocialFollowers":{"type":"boolean"},"buttonOnNewLine":{"type":"boolean","default":false},"buttonWidth":{"type":"string"},"submitButtonText":{"type":"string"},"emailFieldBackgroundColor":{"type":"string"},"customEmailFieldBackgroundColor":{"type":"string"},"emailFieldGradient":{"type":"string"},"customEmailFieldGradient":{"type":"string"},"buttonBackgroundColor":{"type":"string"},"customButtonBackgroundColor":{"type":"string"},"buttonGradient":{"type":"string"},"customButtonGradient":{"type":"string"},"textColor":{"type":"string"},"customTextColor":{"type":"string"},"fontSize":{"type":"string"},"customFontSize":{"type":"string"},"borderRadius":{"type":"number"},"borderWeight":{"type":"number"},"borderColor":{"type":"string"},"customBorderColor":{"type":"string"},"padding":{"type":"number"},"spacing":{"type":"number"},"successMessage":{"type":"string","default":"Success! An email was just sent to confirm your subscription. Please find the email now and click \'Confirm\' to start subscribing."},"appSource":{"type":"string"},"className":{"type":"string"}},"example":{}}')},99496:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/tiled-gallery","title":"Tiled Gallery","description":"Display multiple images in an elegantly organized tiled layout.","keywords":["columns","images","photos","pictures","square","circle","mosaic"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z\'/></svg>","supports":{"align":["center","wide","full"],"color":{"gradients":true,"text":false},"customClassName":false,"html":false,"spacing":{"margin":true,"padding":true},"__experimentalHideChildBlockControls":true},"providesContext":{"imageCrop":"imageCrop"},"styles":[{"name":"rectangular","label":"Tiled mosaic","isDefault":true},{"name":"circle","label":"Circles"},{"name":"square","label":"Square tiles"},{"name":"columns","label":"Tiled columns"}],"attributes":{"align":{"type":"string","default":"center"},"className":{"type":"string","default":"is-style-rectangular"},"columns":{"type":"number"},"columnWidths":{"type":"array","default":[]},"ids":{"type":"array","default":[]},"imageFilter":{"type":"string"},"images":{"type":"array","default":[],"source":"query","selector":".tiled-gallery__item","query":{"alt":{"attribute":"alt","default":"","selector":"img","source":"attribute"},"height":{"attribute":"data-height","type":"number","selector":"img","source":"attribute"},"id":{"attribute":"data-id","selector":"img","source":"attribute"},"link":{"attribute":"data-link","selector":"img","source":"attribute"},"url":{"attribute":"data-url","selector":"img","source":"attribute"},"width":{"attribute":"data-width","selector":"img","source":"attribute","type":"number"}}},"imageCrop":{"type":"boolean","default":true},"linkTo":{"default":"none","type":"string"},"roundedCorners":{"type":"integer","default":0}}}')},27508:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/tock","title":"Tock","description":"Reserve a table at your restaurant with Tock.","keywords":["booking","reservation","restaurant"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M10 15.619C6.84915 15.619 4.28572 13.0542 4.28572 9.90176C4.28572 7.24269 6.10957 5.00183 8.57143 4.36551V0C3.72557 0.693782 0 4.86162 0 9.90176C0 15.4274 4.47715 19.9069 10 19.9069C12.2461 19.9069 14.3193 19.1658 15.9887 17.9148L12.9003 14.825C12.0494 15.3287 11.0581 15.619 10 15.619 M15.7135 9.90176C15.7135 10.9604 15.4233 11.9522 14.9199 12.8035L18.0082 15.8935C19.2585 14.2232 19.9992 12.149 19.9992 9.90176C19.9992 4.86162 16.2736 0.693782 11.4277 0V4.36551C13.8896 5.00183 15.7135 7.24269 15.7135 9.90176\'/></svg>","supports":{"align":true,"html":false,"multiple":false},"attributes":{"url":{"type":"string"}},"example":{"attributes":{"url":"roister"},"viewportWidth":250}}')},13872:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/top-posts","title":"Top Posts & Pages","description":"Display your most popular content.","keywords":["ranking","views","trending","popular"],"version":"1.0","textdomain":"jetpack","category":"embed","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' height=\'24px\' viewBox=\'0 0 24 24\' width=\'24px\'><rect fill=\'none\' height=\'24\' width=\'24\'/><path d=\'M19,5h-2V3H7v2H5C3.9,5,3,5.9,3,7v1c0,2.55,1.92,4.63,4.39,4.94c0.63,1.5,1.98,2.63,3.61,2.96V19H7v2h10v-2h-4v-3.1 c1.63-0.33,2.98-1.46,3.61-2.96C19.08,12.63,21,10.55,21,8V7C21,5.9,20.1,5,19,5z M5,8V7h2v3.82C5.84,10.4,5,9.3,5,8z M19,8 c0,1.3-0.84,2.4-2,2.82V7h2V8z\'/></svg>","supports":{"align":["wide","full"],"html":false,"multiple":true,"reusable":true,"color":{"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true,"lineHeight":true}},"attributes":{"layout":{"type":"string","default":"grid"},"displayAuthor":{"type":"boolean","default":true},"displayDate":{"type":"boolean","default":true},"displayThumbnail":{"type":"boolean","default":true},"displayContext":{"type":"boolean","default":false},"period":{"type":"string","default":"7"},"postsToShow":{"type":"number","default":3},"postTypes":{"type":"object","default":{"post":true,"page":true}}}}')},58940:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/voice-to-content","title":"Voice to content","description":"Transform your spoken words into a post ready to publish with AI.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 20 20\' width=\'20\' height=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z\'/></svg>","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"}}}')},99787:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/wordads","title":"Ad","description":"Earn income by adding high quality ads to your post.","keywords":["ads","WordAds","advertisement"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z\'/></svg>","supports":{"align":["left","center","right"],"alignWide":false,"className":false,"customClassName":false,"html":false,"reusable":false},"attributes":{"align":{"type":"string","default":"center"},"format":{"type":"string","default":"mrec"},"hideMobile":{"type":"boolean","default":false}},"example":{}}')},1949:e=>{"use strict";e.exports=JSON.parse('{"production":["ai-assistant","ai-chat","ai-assistant-plugin","blogging-prompt","business-hours","button","calendly","cookie-consent","contact-form","contact-form/salesforce-lead-form","contact-info","donations","eventbrite","gif","google-calendar","image-compare","instagram-gallery","like","likes","mailchimp","map","markdown","opentable","payments","pinterest","podcast-player","premium-content","publicize","rating-star","recurring-payments","related-posts","repeat-visitor","send-a-message","whatsapp-button","seo","sharing","shortlinks","simple-payments","slideshow","social-previews","story","subscriber-login","subscriptions","tiled-gallery","tock","videopress","wordads","payments-intro","post-publish-qr-post-panel","payment-buttons","site-editor-snackbars","videopress/video","ai-assistant-support","ai-assistant-form-support","paywall","blogroll","blogroll-item","nextdoor","ai-assistant-usage-panel","sharing-button","sharing-buttons","ai-content-lens","blog-stats","top-posts","goodreads","voice-to-content","ai-featured-image-generator","ai-title-optimization","ai-assistant-experimental-image-generation-support"],"beta":["google-docs-embed","launchpad-save-modal","recipe","v6-video-frame-poster","videopress/video-chapters","ai-assistant-backend-prompts","ai-logo-generator","ai-assistant-extensions-support"],"experimental":["ai-image","ai-paragraph"],"no-post-editor":["ai-assistant","business-hours","button","calendly","contact-form","contact-info","donations","eventbrite","gif","google-calendar","instagram-gallery","mailchimp","map","markdown","opentable","pinterest","rating-star","related-posts","repeat-visitor","simple-payments","slideshow","tiled-gallery","tock","videopress","voice-to-content","wordads"]}')},69282:e=>{"use strict";e.exports=JSON.parse('{"U":"iVBORw0KGgoAAAANSUhEUgAABwAAAAQACAYAAADm/02CAAAAAXNSR0IArs4c6QAAIABJREFUeF7s2UERAAAIAkHpX9oeN2sDVn7sHAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECGYFlkghCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgMAZAJWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIB7b027AAAgAElEQVQAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQG7bqScAACAASURBVIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQCAkYAEPPFIUAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQICAAVAHCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECIQEDIChZ4pCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwACoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRCAgbA0DNFIUCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIGAA1AECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECIQEDYOiZohAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAwAOoAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAgZCAATD0TFEIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIGAB1gAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEBIwAAYeqYoBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAyAOkCAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEAgJGAADD1TFAIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIGQB0gQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgEBIwAIaeKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABA6AOECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgJGABDzxSFAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAgAFQBwgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAiEBAyAoWeKQoAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQMAAqAMECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEQgIGwNAzRSFAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBgANQBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAiEBA2DomaIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQMADqAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIGQgAEw9ExRCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBgAdYAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIBASMAAGHqmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQMgDpAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAICRgAAw9UxQCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBkAdIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIBASMACGnikKAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQOgDhAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAICRgAQ88UhQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgIABUAcIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIhAQMgKFnikKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDAAKgDBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBEICBsDQM0UhQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgYADUAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIhAQNg6JmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEDAA6gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkIABMPRMUQgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgYAHWAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAQEjAABh6pigECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIEDIA6QIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQCAkYAAMPVMUAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgZAHSBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECAQEjAAhp4pCgECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEDoA4QIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQ+PbsmAYAAABhmH/X87FUAoWPkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIGdj10AAAIABJREFUECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBwXgv4AAAFzklEQVRAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHAA2gABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBkYADcFSmKAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQcgDZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAYCTgAByVKQoBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABB6ANECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEBgJOABHZYpCgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAwAFoAwQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgRGAg7AUZmiECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEAgxEwQBvhGJcwAAAABJRU5ErkJggg=="}')}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,l),n.exports}l.m=o,l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);l.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,l.d(a,s),a},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,n)=>(l.f[n](e,t),t)),[])),l.u=e=>(390===e?"swiper":e)+".js?minify=false&ver="+{390:"a81c75ce08dd16a6e3ca",958:"81b24742f2e6fdfd299c"}[e],l.miniCssF=e=>"swiper.css?minify=false&ver=ec8bb6b572560ea05dfb",(()=>{if(!l.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;l.miniCssF=(e=l.miniCssF,t=>{var n="rtl"===document.dir,r=e(t);return n?r.replace(/\.css(?:$|\?)/,".rtl$&"):r})})(),l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="Jetpack:",l.l=(e,t,a,s)=>{if(n[e])n[e].push(t);else{var o,i;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+a){o=d;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,l.nc&&o.setAttribute("nonce",l.nc),o.setAttribute("data-webpack",r+a),o.src=e),n[e]=[t];var p=(t,r)=>{o.onerror=o.onload=null,clearTimeout(m);var a=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((e=>e(r))),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),i&&document.head.appendChild(o)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e})(),a=e=>new Promise(((t,n)=>{var r=l.miniCssF(e),a=l.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var a=(o=n[r]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}var s=document.getElementsByTagName("style");for(r=0;r<s.length;r++){var o;if((a=(o=s[r]).getAttribute("data-href"))===e||a===t)return o}})(r,a))return t();((e,t,n,r)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=s=>{if(a.onerror=a.onload=null,"load"===s.type)n();else{var o=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=i,a.parentNode.removeChild(a),r(l)}},a.href=t,document.head.appendChild(a)})(e,a,t,n)})),s={35:0,189:0,161:0,486:0},l.f.miniCss=(e,t)=>{s[e]?t.push(s[e]):0!==s[e]&&{390:1}[e]&&t.push(s[e]=a(e).then((()=>{s[e]=0}),(t=>{throw delete s[e],t})))},(()=>{var e={35:0,189:0,161:0,486:0};l.f.j=(t,n)=>{var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(390!=t){var a=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=a);var s=l.p+l.u(t),o=new Error;l.l(s,(n=>{if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",o.name="ChunkLoadError",o.type=a,o.request=s,r[1](o)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,n)=>{var r,a,[s,o,i]=n,c=0;if(s.some((t=>0!==e[t]))){for(r in o)l.o(o,r)&&(l.m[r]=o[r]);if(i)i(l)}for(t&&t(n);c<s.length;c++)a=s[c],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunkJetpack=globalThis.webpackChunkJetpack||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),l(78680),l(27559),l(86116),l(44359),l(35681),l(60866),l(48887),l(52020),l(54271),l(82566),l(67140),l(83772),l(63139),l(58710),l(93052),l(34575),l(86168),l(66852),l(61204),l(22055),l(49702),l(92482),l(96564),l(7414),l(28345),l(85053),l(55802),l(36836),l(94315),l(89517),l(50323),l(23346),l(48111),l(27425),l(14406),l(36227),l(17013),l(10601),l(88067),l(9395),l(57780),l(47158),l(14035),l(37549),l(3432),l(5477),l(71664),l(27780),l(21964),l(83759),l(30070),l(26693),l(71471),l(62691),l(23134),l(5889),l(74637),l(98298),l(13006),l(6454),l(16042),l(25070),l(45939);l(60405)})(); | |
| 196 | +__("Minimum allowed price is %s.","jetpack"),(0,r.vv)(y,b)),m),void o(!1);if(!(0,l.kF)(b,v))return(0,d.S)((0,c.W)("product requires a valid price",t),m),void o(!1);try{const r=await s()({path:"/wpcom/v2/memberships/product",method:"POST",data:e}),a={id:r.id,title:r.title,interval:r.interval,price:r.price,currency:r.currency},l=m.select(u.EF).getProducts();i(p(l.concat([a]))),n([a.id]),h&&(0,d.L)((0,c.W)("successfully created product",t),m),o(!0)}catch{(0,d.S)((0,c.W)("there was an error when adding the product",t),m),o(!1)}},v=e=>({type:"SET_SUBSCRIBER_COUNTS",subscriberCounts:e}),y=e=>({type:"SET_TOTAL_EMAILS_SENT_COUNT",totalEmailsSentCount:e}),k=e=>({type:"SET_NEWSLETTER_CATEGORIES",newsletterCategories:e}),w=(e,{email_sent_at:t,stats_on_send:n})=>({type:"SET_POST_EMAIL_SENT_STATE",postId:e,payload:{email_sent_at:t,stats_on_send:n}}),x=e=>({type:"SET_ALREADY_SENT_POST_MODIFIED_IN_SESSION",postId:e}),_=e=>({type:"SET_PUBLISHED_WITH_EMAIL_ENABLED_IN_SESSION",postId:e})},3696(e,t,n){"use strict";n.d(t,{EF:()=>r,JA:()=>s,an:()=>o,gI:()=>a,ky:()=>i});const r="jetpack/membership-products",o=0,s=1,a=2,i="tier"},16521(e,t,n){"use strict";n.d(t,{M:()=>l});var r=n(47143),o=n(66314),s=n(3696),a=n(91497),i=n(18410),c=n(92955);const l=(0,r.createReduxStore)(s.EF,{actions:o,reducer:a.A,resolvers:i,selectors:c,__experimentalUseThunks:!0});(0,r.register)(l)},91497(e,t,n){"use strict";n.d(t,{A:()=>o});const r={products:[],apiState:n(3696).an,connectUrl:null,siteSlug:"",connectedAccountDefaultCurrency:"",subscriberCounts:{totalSubscribers:null,socialFollowers:null,emailSubscribers:null,paidSubscribers:null},newsletterCategories:{enabled:!1,categories:[]},postEmailSentState:{},alreadySentPostModifiedInSession:{},publishedWithEmailEnabledInSession:{}};function o(e=r,t){switch(t.type){case"SET_PRODUCTS":return{...e,products:t.products};case"SET_CONNECT_URL":return{...e,connectUrl:t.connectUrl};case"SET_API_STATE":return{...e,apiState:t.apiState};case"SET_SITE_SLUG":return{...e,siteSlug:t.siteSlug};case"SET_CONNECTED_ACCOUNT_DEFAULT_CURRENCY":return{...e,connectedAccountDefaultCurrency:t.connectedAccountDefaultCurrency};case"SET_SUBSCRIBER_COUNTS":return{...e,subscriberCounts:t.subscriberCounts};case"SET_TOTAL_EMAILS_SENT_COUNT":return{...e,totalEmailsSentCount:t.totalEmailsSentCount};case"SET_NEWSLETTER_CATEGORIES":return{...e,newsletterCategories:t.newsletterCategories};case"SET_POST_EMAIL_SENT_STATE":return{...e,postEmailSentState:{...e.postEmailSentState,[t.postId]:{email_sent_at:t.payload.email_sent_at??null,stats_on_send:t.payload.stats_on_send??null}}};case"SET_ALREADY_SENT_POST_MODIFIED_IN_SESSION":return{...e,alreadySentPostModifiedInSession:{...e.alreadySentPostModifiedInSession,[t.postId]:!0}};case"SET_PUBLISHED_WITH_EMAIL_ENABLED_IN_SESSION":return{...e,publishedWithEmailEnabledInSession:{...e.publishedWithEmailEnabledInSession,[t.postId]:!0}}}return e}},18410(e,t,n){"use strict";n.r(t),n.d(t,{getNewsletterCategories:()=>A,getNewsletterTierProducts:()=>x,getPostEmailSentState:()=>S,getProducts:()=>_,getSubscriberCounts:()=>j,getTotalEmailsSentCount:()=>C});var r=n(97999),o=n(1455),s=n.n(o),a=n(43656),i=n(93832),c=n(29726),l=n(1990),u=n(56539),d=n(27574),p=n(66314),h=n(3696),m=n(34884);const g="membership-products-resolver-getProducts",f="membership-products-resolver-getSubscriberCounts",b="membership-products-resolver-getTotalEmailsSentCount",v="membership-products-resolver-getNewsletterCategories",y="membership-products-resolver-getPostEmailSentState";let k=!1;const w=(e,t,n)=>{if(e.length>0)return;const r=n.getProductsNoResolver()[0]?.id;r&&t([r])},x=(e=c._$,t=[],n=()=>{})=>_(e,t,n,!1),_=(e=c._$,t=[],n=()=>{},r=!0)=>async({dispatch:o,registry:c,select:f})=>{if(await u.A.blockExecution(g),k)return void w(t,n,f);const b=u.A.acquire(g);try{const u=await(async()=>{const e=(0,i.getQueryArg)(window.location.href,"origin"),t=(0,i.addQueryArgs)("/wpcom/v2/memberships/status",{source:"https://wordpress.com"===e?"gutenberg-wpcom":"gutenberg",type:"all",is_editable:!0}),n=await s()({path:t,method:"GET"});if(!n&&"object"!=typeof n)throw new Error("Unexpected API response");const r=n?.errors&&Object.values(n.errors)?.[0]?.[0];if(r)throw new Error(r);return n})();((e,t,n)=>{const r=t.select(a.store).getCurrentPostId();n((0,p.setConnectUrl)((0,d.A)(r,e.connect_url))),n((0,p.setSiteSlug)(e.site_slug)),n((0,p.setProducts)(e.products)),n((0,p.setConnectedAccountDefaultCurrency)(e.connected_account_default_currency)),n((0,p.setApiState)(e.connected_account_id?h.JA:h.gI))})(u,c,o),(e=>!e.products.length&&e.connected_account_id)(u)&&await(async(e,t,n,r)=>{await n((0,p.saveProduct)({title:(0,l.W)("default new product title",e),currency:"USD",price:5,interval:"1 month"},e,t,()=>{},r))})(e,n,o,r),w(t,n,f),k=!0}catch(e){o((0,p.setConnectUrl)(null)),o((0,p.setApiState)(h.gI)),(0,m.S)(e.message,c)}finally{u.A.release(b)}},j=()=>async({dispatch:e,registry:t})=>{await u.A.blockExecution(f);const n=u.A.acquire(f);try{const t=await(async()=>{const e=await s()({path:(0,i.addQueryArgs)("/wpcom/v2/subscribers/counts",{subscriber_status:"active",subscription_status:"active"})});if(!e||"object"!=typeof e)throw new Error("Unexpected API response");const t=e?.errors&&Object.values(e.errors)?.[0]?.[0];if(t)throw new Error(t);return e})();e((0,p.setSubscriberCounts)({totalSubscribers:t.counts.total_subscribers,socialFollowers:t.counts.social_followers,emailSubscribers:t.counts.email_subscribers,paidSubscribers:t.counts.paid_subscribers}))}catch(n){e((0,p.setApiState)(h.gI)),(0,m.S)(n.message,t)}finally{u.A.release(n)}},C=(e,t)=>async({dispatch:n})=>{await u.A.blockExecution(b);const o=u.A.acquire(b);try{const o=await(async(e,t)=>{if(!e||!t)return;const n=(0,r.isSimpleSite)()?"/rest/v1.1/sites":"/jetpack/v4/stats-app/sites",o=await s()({path:n+`/${e}/stats/opens/emails/${t}/rate`});if(!o||"object"!=typeof o)throw new Error("Unexpected API response");const a=o?.errors&&Object.values(o.errors)?.[0]?.[0];if(a)throw new Error(a);return o})(e,t);n((0,p.setTotalEmailsSentCount)(o?.total_sends))}catch(e){console.warn("Failed to fetch total emails sent count:",e?.message)}finally{u.A.release(o)}},A=()=>async({dispatch:e,registry:t})=>{await u.A.blockExecution(v);const n=u.A.acquire(v);try{const t=await(async()=>{const e=await s()({path:"/wpcom/v2/newsletter-categories"});if(!e||"object"!=typeof e)throw new Error("Unexpected API response");const t=e?.errors&&Object.values(e.errors)?.[0]?.[0];if(t)throw new Error(t);return e})();e((0,p.setNewsletterCategories)({enabled:t.enabled,categories:t.newsletter_categories}))}catch(n){e((0,p.setApiState)(h.gI)),(0,m.S)(n.message,t)}finally{u.A.release(n)}},S=e=>async({dispatch:t,registry:n})=>{if(!e)return;await u.A.blockExecution(y);const r=u.A.acquire(y);try{const n=await(async e=>{if(!e)return{email_sent_at:null,stats_on_send:null};const t=await s()({path:(0,i.addQueryArgs)("/wpcom/v2/newsletter-email-sent-status",{post_id:e}),method:"GET"});if(!t||"object"!=typeof t)throw new Error("Unexpected API response");const n=t?.errors&&Object.values(t.errors)?.[0]?.[0];if(n)throw new Error(n);return t})(e);t((0,p.setPostEmailSentState)(e,{email_sent_at:n.email_sent_at??null,stats_on_send:n.stats_on_send??null}))}catch(e){(0,m.S)(e.message,n)}finally{u.A.release(r)}}},92955(e,t,n){"use strict";n.r(t),n.d(t,{getAlreadySentPostModifiedInSession:()=>x,getApiState:()=>o,getConnectUrl:()=>s,getConnectedAccountDefaultCurrency:()=>a,getNewsletterCategories:()=>v,getNewsletterCategoriesEnabled:()=>y,getNewsletterTierProducts:()=>d,getPostEmailSentState:()=>w,getProduct:()=>l,getProducts:()=>i,getProductsNoResolver:()=>c,getPublishedWithEmailEnabledInSession:()=>_,getSelectedProducts:()=>u,getSiteSlug:()=>p,getSubscriberCounts:()=>f,getTotalEmailsSentCount:()=>b,hasInvalidProducts:()=>j,isApiStateConnected:()=>h,isApiStateLoading:()=>m,isInvalidProduct:()=>g});var r=n(3696);const o=e=>e.apiState,s=e=>e.connectUrl,a=e=>e.connectedAccountDefaultCurrency,i=e=>e.products,c=e=>i(e),l=(e,t)=>i(e).find(e=>e.id===t),u=(e,t)=>i(e).filter(e=>t.includes(e.id)),d=e=>e.products.filter(e=>e.type===r.ky),p=e=>e.siteSlug,h=e=>e.apiState===r.JA,m=e=>e.apiState===r.an,g=(e,t)=>!!t&&!l(e,t),f=e=>e.subscriberCounts,b=e=>e.totalEmailsSentCount,v=e=>e.newsletterCategories.categories,y=e=>e.newsletterCategories.enabled,k={email_sent_at:null,stats_on_send:null},w=(e,t)=>t?e.postEmailSentState?.[t]??k:k,x=(e,t)=>!(!e.alreadySentPostModifiedInSession||!e.alreadySentPostModifiedInSession[t]),_=(e,t)=>!(!e.publishedWithEmailEnabledInSession||!e.publishedWithEmailEnabledInSession[t]),j=(e,t)=>!!t&&t.some(t=>g(e,t))},34884(e,t,n){"use strict";n.d(t,{L:()=>s,S:()=>o});var r=n(692);const o=(e,t)=>t.dispatch(r.store).createErrorNotice(e,{type:"snackbar"}),s=(e,t)=>t.dispatch(r.store).createSuccessNotice(e,{type:"snackbar"})},26356(e,t,n){"use strict";n.d(t,{i:()=>o,y:()=>r});const r={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function o(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},4567(e,t,n){"use strict";n.d(t,{Ay:()=>s});var r=n(26356),o=n(18360);function s(e,t,n={}){const s=(0,r.i)(t);if(!s||isNaN(e))return null;const{decimal:a,grouping:i,precision:c,symbol:l}={...s,...n},u=e<0?"-":"";let d=(0,o.A)(Math.abs(e),c,a,i);return n.stripZeros&&(d=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(d,a)),`${u}${l}${d}`}},18360(e,t,n){"use strict";function r(e,t=0,n=".",r=","){const o=(e+"").replace(/[^0-9+\-Ee.]/g,""),s=isFinite(+o)?+o:0,a=isFinite(+t)?Math.abs(t):0,i=(a?function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(s,a):""+Math.round(s)).split(".");return i[0].length>3&&(i[0]=i[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r)),(i[1]||"").length<a&&(i[1]=i[1]||"",i[1]+=new Array(a-i[1].length+1).join("0")),i.join(n)}n.d(t,{A:()=>r})},51119(e,t,n){"use strict";n.d(t,{A:()=>a});var r,o=n(2467);function s(){this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=e=>{e.source===this.windowInstance&&this.emit("message",e.data)}}r=s.prototype,Object.assign(r,o.EventEmitter.prototype),r.emitChange=function(){this.emit("change")},r.off=r.removeListener,s.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},s.prototype.getScreenCenterSpecs=function(e,t){const n=void 0!==window.screenTop?window.screenTop:window.screenY,r=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+window.innerHeight/2-t/2),"left="+(r+window.innerWidth/2-e/2)].join()},s.prototype.isOpen=function(e){let t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(e){}return!t},s.prototype.checkStatus=function(){for(const e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},s.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t};const a=s},10067(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(78926)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},78926(e,t,n){e.exports=function(e){function t(e){let n,o,s,a=null;function i(...e){if(!i.enabled)return;const r=i,o=Number(new Date),s=o-(n||o);r.diff=s,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";a++;const s=t.formatters[o];if("function"==typeof s){const t=e[a];n=s.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,s=t.enabled(e)),s),set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e,t){let n=0,r=0,o=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(o=r,s=n,r++):(n++,r++);else{if(-1===o)return!1;r=o+1,s++,n=s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(o(e,n))return!1;for(const n of t.names)if(o(e,n))return!0;return!1},t.humanize=n(44997),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},14847(e,t,n){"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),l=["gridicon","gridicons-fullscreen",i,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",a({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 3v6h-2V6.41l-3.29 3.3-1.42-1.42L17.59 5H15V3zM3 3v6h2V6.41l3.29 3.3 1.42-1.42L6.41 5H9V3zm18 18v-6h-2v2.59l-3.29-3.29-1.41 1.41L17.59 19H15v2zM9 21v-2H6.41l3.29-3.29-1.41-1.42L5 17.59V15H3v6z"})))};var r,o=(r=n(51609))&&r.__esModule?r:{default:r},s=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])({}).hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(null,arguments)}},49789(e,t,n){"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),l=["gridicon","gridicons-notice-outline",i,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",a({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,o=(r=n(51609))&&r.__esModule?r:{default:r},s=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])({}).hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(null,arguments)}},71218(e,t,n){"use strict";t.A=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s),l=["gridicon","gridicons-star",i,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",a({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.891 5.82 21l2.002-7.141L2 9.257l7.418-.304z"})))};var r,o=(r=n(51609))&&r.__esModule?r:{default:r},s=["size","onClick","icon","className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])({}).hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(null,arguments)}},21147(e,t,n){"use strict";function r(e,t){return Array(t+1).join(e)}n.d(t,{A:()=>I});var o=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function s(e){return l(e,o)}var a=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function i(e){return l(e,a)}var c=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function l(e,t){return t.indexOf(e.nodeName)>=0}function u(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var d={};function p(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function h(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function m(e,t,n){for(var r=0;r<e.length;r++){var o=e[r];if(g(o,t,n))return o}}function g(e,t,n){var r=e.filter;if("string"==typeof r){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else{if("function"!=typeof r)throw new TypeError("`filter` needs to be a string, array, or function");if(r.call(e,t,n))return!0}}function f(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function b(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}d.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},d.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},d.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,n){var o=Number(t.nodeName.charAt(1));return"setext"===n.headingStyle&&o<3?"\n\n"+e+"\n"+r(1===o?"=":"-",e.length)+"\n\n":"\n\n"+r("#",o)+" "+e+"\n\n"}},d.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},d.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},d.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",o=t.parentNode;if("OL"===o.nodeName){var s=o.getAttribute("start"),a=Array.prototype.indexOf.call(o.children,t);r=(s?Number(s)+a:a+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},d.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},d.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){for(var o,s=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a=t.firstChild.textContent,i=n.fence.charAt(0),c=3,l=new RegExp("^"+i+"{3,}","gm");o=l.exec(a);)o[0].length>=c&&(c=o[0].length+1);var u=r(i,c);return"\n\n"+u+s+"\n"+a.replace(/\n$/,"")+"\n"+u+"\n\n"}},d.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},d.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href"),r=p(t.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+e+"]("+n+r+")"}},d.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,o,s=t.getAttribute("href"),a=p(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",o="["+e+"]: "+s+a;break;case"shortcut":r="["+e+"]",o="["+e+"]: "+s+a;break;default:var i=this.references.length+1;r="["+e+"]["+i+"]",o="["+i+"]: "+s+a}return this.references.push(o),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},d.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},d.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},d.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},d.image={filter:"img",replacement:function(e,t){var n=p(t.getAttribute("alt")),r=t.getAttribute("src")||"",o=p(t.getAttribute("title"));return r?"+")":""}},h.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){return e.isBlank?this.blankRule:(t=m(this.array,e,this.options))||(t=m(this._keep,e,this.options))||(t=m(this._remove,e,this.options))?t:this.defaultRule;var t},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};var v="undefined"!=typeof window?window:{};var y,k,w=function(){var e=v.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}()?v.DOMParser:(y=function(){},function(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){window.ActiveXObject&&(e=!0)}return e}()?y.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:y.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t},y);function x(e,t){var n;"string"==typeof e?n=(k=k||new w).parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html").getElementById("turndown-root"):n=e.cloneNode(!0);return function(e){var t=e.element,n=e.isBlock,r=e.isVoid,o=e.isPre||function(e){return"PRE"===e.nodeName};if(t.firstChild&&!o(t)){for(var s=null,a=!1,i=null,c=b(i,t,o);c!==t;){if(3===c.nodeType||4===c.nodeType){var l=c.data.replace(/[ \r\n\t]+/g," ");if(s&&!/ $/.test(s.data)||a||" "!==l[0]||(l=l.substr(1)),!l){c=f(c);continue}c.data=l,s=c}else{if(1!==c.nodeType){c=f(c);continue}n(c)||"BR"===c.nodeName?(s&&(s.data=s.data.replace(/ $/,"")),s=null,a=!1):r(c)||o(c)?(s=null,a=!0):s&&(a=!1)}var u=b(i,c,o);i=c,c=u}s&&(s.data=s.data.replace(/ $/,""),s.data||f(s))}}({element:n,isBlock:s,isVoid:i,isPre:t.preformattedCode?_:null}),n}function _(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function j(e,t){return e.isBlock=s(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=function(e){return!i(e)&&!function(e){return l(e,c)}(e)&&/^\s*$/i.test(e.textContent)&&!function(e){return u(e,a)}(e)&&!function(e){return u(e,c)}(e)}(e),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n=(r=e.textContent,o=r.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/),{leading:o[1],leadingAscii:o[2],leadingNonAscii:o[3],trailing:o[4],trailingNonAscii:o[5],trailingAscii:o[6]});var r,o;n.leadingAscii&&C("left",e,t)&&(n.leading=n.leadingNonAscii);n.trailingAscii&&C("right",e,t)&&(n.trailing=n.trailingNonAscii);return{leading:n.leading,trailing:n.trailing}}(e,t),e}function C(e,t,n){var r,o,a;return"left"===e?(r=t.previousSibling,o=/ $/):(r=t.nextSibling,o=/^ /),r&&(3===r.nodeType?a=o.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?a=!1:1!==r.nodeType||s(r)||(a=o.test(r.textContent))),a}var A=Array.prototype.reduce,S=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function E(e){if(!(this instanceof E))return new E(e);var t={rules:d,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?"\n\n":""},keepReplacement:function(e,t){return t.isBlock?"\n\n"+t.outerHTML+"\n\n":t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?"\n\n"+e+"\n\n":e}};this.options=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},t,e),this.rules=new h(this.options)}function T(e){var t=this;return A.call(e.childNodes,function(e,n){var r="";return 3===(n=new j(n,t.options)).nodeType?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):1===n.nodeType&&(r=P.call(t,n)),B(e,r)},"")}function N(e){var t=this;return this.rules.forEach(function(n){"function"==typeof n.append&&(e=B(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function P(e){var t=this.rules.forNode(e),n=T.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function B(e,t){var n=function(e){for(var t=e.length;t>0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=t.replace(/^\n*/,""),o=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,o)+r}E.prototype={turndown:function(e){if(!function(e){return null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))}(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(""===e)return"";var t=T.call(this,new x(e,this.options));return N.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else{if("function"!=typeof e)throw new TypeError("plugin must be a Function or an Array of Functions");e(this)}return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return S.reduce(function(e,t){return e.replace(t[0],t[1])},e)}};const I=E},91016(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(74085),o=n(55217),s=n(55950),a=n(30615);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function c(){c=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var s=t&&t.prototype instanceof y?t:y,a=Object.create(s.prototype),i=new B(r||[]);return o(a,"_invoke",{value:E(e,n,i)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",g="suspendedYield",f="executing",b="completed",v={};function y(){}function k(){}function w(){}var x={};d(x,a,function(){return this});var _=Object.getPrototypeOf,j=_&&_(_(I([])));j&&j!==n&&r.call(j,a)&&(x=j);var C=w.prototype=y.prototype=Object.create(x);function A(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(o,s,a,c){var l=h(e[o],e,s);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==i(d)&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,c)},function(e){n("throw",e,a,c)}):t.resolve(d).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,c)})}c(l.arg)}var s;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return s=s?s.then(o,o):o()}})}function E(t,n,r){var o=m;return function(s,a){if(o===f)throw Error("Generator is already running");if(o===b){if("throw"===s)throw a;return{value:e,done:!0}}for(r.method=s,r.arg=a;;){var i=r.delegate;if(i){var c=T(i,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var l=h(t,n,r);if("normal"===l.type){if(o=r.done?b:g,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=b,r.method="throw",r.arg=l.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var s=h(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,v;var a=s.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(i(t)+" is not iterable")}return k.prototype=w,o(C,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:k,configurable:!0}),k.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},A(S.prototype),d(S.prototype,l,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,r,o,s){void 0===s&&(s=Promise);var a=new S(p(e,n,r,o),s);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},A(C),d(C,u,"Generator"),d(C,a,function(){return this}),d(C,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return i.type="throw",i.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function l(e,t,n,r,o,s,a){try{var i=e[s](a),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var p=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"openFile",value:(i=c().mark(function e(t,n){var i;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,r.A)()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,(0,o.A)(t.uri);case 4:return i=e.sent,e.abrupt("return",new s.A(i));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!=typeof t.slice||void 0===t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new s.A(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(n=Number(n),Number.isFinite(n)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new a.A(t,n)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}},e,null,[[1,8]])}),d=function(){var e=this,t=arguments;return new Promise(function(n,r){var o=i.apply(e,t);function s(e){l(o,n,r,s,a,"next",e)}function a(e){l(o,n,r,s,a,"throw",e)}s(void 0)})},function(_x,e){return d.apply(this,arguments)})}],t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,i,d}()},33765(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(74085);function o(e,t){return(0,r.A)()?Promise.resolve(function(e,t){var n=e.exif?function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}},45369(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function a(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{A:()=>c});var c=function(){return a(function e(){o(this,e)},[{key:"createRequest",value:function(e,t){return new l(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}])}(),l=function(){return a(function e(t,n){o(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}},[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(n,r){e._xhr.onload=function(){n(new u(e._xhr))},e._xhr.onerror=function(e){r(e)},e._xhr.send(t)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}(),u=function(){return a(function e(t){o(this,e),this._xhr=t},[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}()},10781(e,t,n){"use strict";n.d(t,{_O:()=>k});var r=n(52494),o=n(82701),s=n(91016),a=n(33765),i=n(45369),c=n(10851);function l(e){return l="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},l(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function d(e,t,n){return t=h(t),function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}var y=f(f({},o.A.defaultOptions),{},{httpStack:new i.A,fileReader:new s.A,urlStorage:c.o?new c.Y:new r.A,fingerprint:a.A}),k=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[e,n=f(f({},y),n)])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,s=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=f(f({},y),t),o.A.terminate(e,t)}}],(r=null)&&u(n.prototype,r),s&&u(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(o.A);"function"==typeof XMLHttpRequest&&"function"==typeof Blob&&Blob.prototype.slice},74085(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()}},55950(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(73716),o=n(79427);function s(e){return s="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},s(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var c=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size},(t=[{key:"slice",value:function(e,t){if((0,r.A)())return(0,o.A)(this._file.slice(e,t));var n=this._file.slice(e,t),s=t>=this.size;return Promise.resolve({value:n,done:s})}},{key:"close",value:function(){}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},30615(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e){return void 0===e?0:void 0!==e.size?e.size:e.length}n.d(t,{A:()=>i});var i=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1},(t=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var n=this,r=t<=this._bufferOffset+a(this._buffer);if(this._done||r){var o=this._getDataFromBuffer(e,t),s=null==o&&this._done;return Promise.resolve({value:o,done:s})}return this._reader.read().then(function(r){var o=r.value;return r.done?n._done=!0:void 0===n._buffer?n._buffer=o:n._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}(n._buffer,o),n._readUntilEnoughDataOrDone(e,t)})}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var n=0===a(this._buffer);return this._done&&n?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},73716(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)}},79427(e,t,n){"use strict";function r(e){return new Promise(function(t,n){var r=new FileReader;r.onload=function(){var e=new Uint8Array(r.result);t({value:e})},r.onerror=function(e){n(e)},r.readAsArrayBuffer(e)})}n.d(t,{A:()=>r})},55217(e,t,n){"use strict";function r(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=r.response;t(e)},r.onerror=function(e){n(e)},r.open("GET",e),r.send()})}n.d(t,{A:()=>r})},10851(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{Y:()=>u,o:()=>l});var a=!1;try{a="localStorage"in window;var i="tusSupport",c=localStorage.getItem(i);localStorage.setItem(i,c),null===c&&localStorage.removeItem(i)}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;a=!1}var l=a,u=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var n=Math.round(1e12*Math.random()),r="tus::".concat(e,"::").concat(n);return localStorage.setItem(r,JSON.stringify(t)),Promise.resolve(r)}},{key:"_findEntries",value:function(e){for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(0===r.indexOf(e))try{var o=JSON.parse(localStorage.getItem(r));o.urlStorageKey=r,t.push(o)}catch(e){}}return t}}],t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},33004(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=u(t),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function i(e){var t="function"==typeof Map?new Map:void 0;return i=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(c())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&l(o,n.prototype),o}(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)},i(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}n.d(t,{A:()=>p});var d=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=a(this,t,[e])).originalRequest=o,n.originalResponse=s,n.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=o){var i=o.getHeader("X-Request-ID")||"n/a",c=o.getMethod(),l=o.getURL(),u=s?s.getStatus():"n/a",d=s?s.getBody()||"":"n/a";e+=", originated from request (method: ".concat(c,", url: ").concat(l,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(i,")")}return n.message=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,r&&o(n.prototype,r),s&&o(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(i(Error));const p=d},12380(e,t,n){"use strict";n.d(t,{R:()=>o});var r=!1;function o(e){r&&console.log(e)}},52494(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{A:()=>a});var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},82701(e,t,n){"use strict";n.d(t,{A:()=>B});var r=n(59535),o=n(76580),s=n.n(o),a=n(33004),i=n(12380),c=n(17291);function l(){l=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var s=t&&t.prototype instanceof y?t:y,a=Object.create(s.prototype),i=new B(r||[]);return o(a,"_invoke",{value:E(e,n,i)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",g="suspendedYield",f="executing",b="completed",v={};function y(){}function k(){}function w(){}var x={};u(x,a,function(){return this});var _=Object.getPrototypeOf,j=_&&_(_(I([])));j&&j!==n&&r.call(j,a)&&(x=j);var C=w.prototype=y.prototype=Object.create(x);function A(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(o,s,a,i){var c=h(e[o],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==p(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,i)},function(e){n("throw",e,a,i)}):t.resolve(u).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,i)})}i(c.arg)}var s;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return s=s?s.then(o,o):o()}})}function E(t,n,r){var o=m;return function(s,a){if(o===f)throw Error("Generator is already running");if(o===b){if("throw"===s)throw a;return{value:e,done:!0}}for(r.method=s,r.arg=a;;){var i=r.delegate;if(i){var c=T(i,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var l=h(t,n,r);if("normal"===l.type){if(o=r.done?b:g,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=b,r.method="throw",r.arg=l.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var s=h(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,v;var a=s.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(p(t)+" is not iterable")}return k.prototype=w,o(C,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:k,configurable:!0}),k.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},A(S.prototype),u(S.prototype,i,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,r,o,s){void 0===s&&(s=Promise);var a=new S(d(e,n,r,o),s);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},A(C),u(C,c,"Generator"),u(C,a,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return i.type="throw",i.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function u(e,t,n,r,o,s,a){try{var i=e[s](a),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s,a,i=[],c=!0,l=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return i}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return p="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},p(e)}function h(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}var k="tus-v1",w="ietf-draft-03",x={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:N,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:k},_=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in n&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=n,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return t=e,n=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then(function(t){return e._urlStorage.findUploadsByFingerprint(t)})}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if([k,w].includes(this.options.protocol))if(this.options.endpoint||this.options.uploadUrl||this.url){var n=this.options.retryDelays;if(null==n||"[object Array]"===Object.prototype.toString.call(n)){if(this.options.parallelUploads>1)for(var r=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];r<o.length;r++){var s=o[r];if(this.options[s])return void this._emitError(new Error("tus: cannot use the ".concat(s," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then(function(n){return null==n?(0,i.R)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage."):(0,i.R)("Calculated fingerprint: ".concat(n)),e._fingerprint=n,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)}).then(function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()}).catch(function(t){e._emitError(t)})}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: unsupported protocol ".concat(this.options.protocol)));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,n=this,r=this._size,o=0;this._parallelUploads=[];var s=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var n=Math.floor(e/t),r=[],o=0;o<t;o++)r.push({start:n*o,end:n*(o+1)});return r[t-1].end=e,r}(this._source.size,s);this._parallelUploadUrls&&a.forEach(function(e,t){e.uploadUrl=n._parallelUploadUrls[t]||null}),this._parallelUploadUrls=new Array(a.length);var c,l=a.map(function(t,s){var i=0;return n._source.slice(t.start,t.end).then(function(c){var l=c.value;return new Promise(function(c,u){var d=f(f({},n.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:n.options.metadataForPartialUploads,headers:f(f({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:c,onError:u,onProgress:function(e){o=o-i+e,i=e,n._emitProgress(o,r)},onUploadUrlAvailable:function(){n._parallelUploadUrls[s]=p.url,n._parallelUploadUrls.filter(function(e){return Boolean(e)}).length===a.length&&n._saveUploadInUrlStorage()}}),p=new e(l,d);p.start(),n._parallelUploads.push(p)})})});Promise.all(l).then(function(){(c=n._openRequest("POST",n.options.endpoint)).setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var e=j(n.options.metadata);return""!==e&&c.setHeader("Upload-Metadata",e),n._sendRequest(c,null)}).then(function(e){if(C(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(n.url=P(n.options.endpoint,t),(0,i.R)("Created upload at ".concat(n.url)),n._emitSuccess(e)):n._emitHttpError(c,e,"tus: invalid or missing Location header")}else n._emitHttpError(c,e,"tus: unexpected response while creating upload")}).catch(function(e){n._emitError(e)})}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?((0,i.R)("Resuming upload from previous URL: ".concat(this.url)),void this._resumeUpload()):null!=this.options.uploadUrl?((0,i.R)("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,void this._resumeUpload()):((0,i.R)("Creating a new upload"),void this._createUpload())}},{key:"abort",value:function(t){var n=this;if(null!=this._parallelUploads){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw s}}}}(this._parallelUploads);try{for(o.s();!(r=o.n()).done;)r.value.abort(t)}catch(e){o.e(e)}finally{o.f()}}return null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,n,r){this._emitError(new a.A(n,r,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),T(e,this._retryAttempt,this.options))){var n=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){t.start()},n))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(e){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess({lastResponse:e})}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,n){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,n)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length","1"):t.setHeader("Upload-Length","".concat(this._size));var n,r=j(this.options.metadata);""!==r&&t.setHeader("Upload-Metadata",r),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,n=this._addChunkToRequest(t)):(this.options.protocol===w&&t.setHeader("Upload-Complete","?0"),n=this._sendRequest(t,null)),n.then(function(n){if(C(n.getStatus(),200)){var r=n.getHeader("Location");if(null!=r){if(e.url=P(e.options.endpoint,r),(0,i.R)("Created upload at ".concat(e.url)),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(n),void e._source.close();e._saveUploadInUrlStorage().then(function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,n):(e._offset=0,e._performUpload())})}else e._emitHttpError(t,n,"tus: invalid or missing Location header")}else e._emitHttpError(t,n,"tus: unexpected response while creating upload")}).catch(function(n){e._emitHttpError(t,null,"tus: failed to create upload",n)})}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then(function(n){var r=n.getStatus();if(!C(r,200))return 423===r?void e._emitHttpError(t,n,"tus: upload is currently locked; retry later"):(C(r,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,n,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=Number.parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,n,"tus: invalid or missing offset value");else{var s=Number.parseInt(n.getHeader("Upload-Length"),10);!Number.isNaN(s)||e.options.uploadLengthDeferred||e.options.protocol!==k?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then(function(){if(o===s)return e._emitProgress(s,s),void e._emitSuccess(n);e._offset=o,e._performUpload()})):e._emitHttpError(t,n,"tus: invalid or missing length value")}}).catch(function(n){e._emitHttpError(t,null,"tus: failed to resume upload",n)})}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset","".concat(this._offset)),this._addChunkToRequest(e).then(function(n){C(n.getStatus(),200)?t._handleUploadResponse(e,n):t._emitHttpError(e,n,"tus: unexpected response while uploading chunk")}).catch(function(n){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),n)}))}},{key:"_addChunkToRequest",value:function(e){var t=this,n=this._offset,r=this._offset+this.options.chunkSize;return e.setProgressHandler(function(e){t._emitProgress(n+e,t._size)}),e.setHeader("Content-Type","application/offset+octet-stream"),(r===Number.POSITIVE_INFINITY||r>this._size)&&!this.options.uploadLengthDeferred&&(r=this._size),this._source.slice(n,r).then(function(n){var r=n.value,o=n.done,s=null!=r&&r.size?r.size:0;t.options.uploadLengthDeferred&&o&&(t._size=t._offset+s,e.setHeader("Upload-Length","".concat(t._size)));var a=t._offset+s;return!t.options.uploadLengthDeferred&&o&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===r?t._sendRequest(e):(t.options.protocol===w&&e.setHeader("Upload-Complete",o?"?1":"?0"),t._emitProgress(t._offset,t._size),t._sendRequest(e,r))})}},{key:"_handleUploadResponse",value:function(e,t){var n=Number.parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(n))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n===this._size)return this._emitSuccess(t),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var n=A(e,t,this.options);return this._req=n,n}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(t){e._emitError(t)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then(function(t){e._urlStorageKey=t})}},{key:"_sendRequest",value:function(e){return S(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],r=[{key:"terminate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=A("DELETE",t,n);return S(r,null,n).then(function(e){if(204!==e.getStatus())throw new a.A("tus: unexpected response while terminating upload",null,r,e)}).catch(function(o){if(o instanceof a.A||(o=new a.A("tus: failed to terminate upload",o,r,null)),!T(o,0,n))throw o;var s=n.retryDelays[0],i=n.retryDelays.slice(1),c=f(f({},n),{},{retryDelays:i});return new Promise(function(e){return setTimeout(e,s)}).then(function(){return e.terminate(t,c)})})}}],n&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function j(e){return Object.entries(e).map(function(e){var t=d(e,2),n=t[0],o=t[1];return"".concat(n," ").concat(r.o4.encode(String(o)))}).join(",")}function C(e,t){return e>=t&&e<t+100}function A(e,t,n){var r=n.httpStack.createRequest(e,t);n.protocol===w?r.setHeader("Upload-Draft-Interop-Version","5"):r.setHeader("Tus-Resumable","1.0.0");for(var o=n.headers||{},s=0,a=Object.entries(o);s<a.length;s++){var i=d(a[s],2),l=i[0],u=i[1];r.setHeader(l,u)}if(n.addRequestId){var p=(0,c.A)();r.setHeader("X-Request-ID",p)}return r}function S(_x,e,t){return E.apply(this,arguments)}function E(){var e;return e=l().mark(function e(t,n,r){var o;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof r.onBeforeRequest){e.next=3;break}return e.next=3,r.onBeforeRequest(t);case 3:return e.next=5,t.send(n);case 5:if(o=e.sent,"function"!=typeof r.onAfterResponse){e.next=9;break}return e.next=9,r.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}},e)}),E=function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function a(e){u(s,r,o,a,i,"next",e)}function i(e){u(s,r,o,a,i,"throw",e)}a(void 0)})},E.apply(this,arguments)}function T(e,t,n){return!(null==n.retryDelays||t>=n.retryDelays.length||null==e.originalRequest)&&(n&&"function"==typeof n.onShouldRetry?n.onShouldRetry(e,t,n):N(e))}function N(e){var t,n=e.originalResponse?e.originalResponse.getStatus():0;return(!C(n,400)||409===n||423===n)&&(t=!0,"undefined"!=typeof navigator&&!1===navigator.onLine&&(t=!1),t)}function P(e,t){return new(s())(t,e).toString()}_.defaultOptions=x;const B=_},17291(e,t,n){"use strict";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}n.d(t,{A:()=>r})},76580(e,t,n){"use strict";var r=n(96811),o=n(24588),s=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(s,"")}var p=[["#","hash"],["?","query"],function(e,t){return g(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function m(e){var t,n=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).location||{},r={},o=typeof(e=e||n);if("blob:"===e.protocol)r=new b(unescape(e.pathname),{});else if("string"===o)for(t in r=new b(e,{}),h)delete r[t];else if("object"===o){for(t in e)t in h||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=i.test(e.href))}return r}function g(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function f(e,t){e=(e=d(e)).replace(a,""),t=t||{};var n,r=l.exec(e),o=r[1]?r[1].toLowerCase():"",s=!!r[2],i=!!r[3],c=0;return s?i?(n=r[2]+r[3]+r[4],c=r[2].length+r[3].length):(n=r[2]+r[4],c=r[2].length):i?(n=r[3]+r[4],c=r[3].length):n=r[4],"file:"===o?c>=2&&(n=n.slice(2)):g(o)?n=r[4]:o?s&&(n=n.slice(2)):c>=2&&g(t.protocol)&&(n=r[4]),{protocol:o,slashes:s||g(o),slashesCount:c,rest:n}}function b(e,t,n){if(e=(e=d(e)).replace(a,""),!(this instanceof b))return new b(e,t,n);var s,i,c,l,h,v,y=p.slice(),k=typeof t,w=this,x=0;for("object"!==k&&"string"!==k&&(n=t,t=null),n&&"function"!=typeof n&&(n=o.parse),s=!(i=f(e||"",t=m(t))).protocol&&!i.slashes,w.slashes=i.slashes||s&&t.slashes,w.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||u.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!g(w.protocol)))&&(y[3]=[/(.*)/,"pathname"]);x<y.length;x++)"function"!=typeof(l=y[x])?(c=l[0],v=l[1],c!=c?w[v]=e:"string"==typeof c?~(h="@"===c?e.lastIndexOf(c):e.indexOf(c))&&("number"==typeof l[2]?(w[v]=e.slice(0,h),e=e.slice(h+l[2])):(w[v]=e.slice(h),e=e.slice(0,h))):(h=c.exec(e))&&(w[v]=h[1],e=e.slice(0,h.index)),w[v]=w[v]||s&&l[3]&&t[v]||"",l[4]&&(w[v]=w[v].toLowerCase())):e=l(e,w);n&&(w.query=n(w.query)),s&&t.slashes&&"/"!==w.pathname.charAt(0)&&(""!==w.pathname||""!==t.pathname)&&(w.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],s=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(s=!0),n.splice(r,1),a--);return s&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(w.pathname,t.pathname)),"/"!==w.pathname.charAt(0)&&g(w.protocol)&&(w.pathname="/"+w.pathname),r(w.port,w.protocol)||(w.host=w.hostname,w.port=""),w.username=w.password="",w.auth&&(~(h=w.auth.indexOf(":"))?(w.username=w.auth.slice(0,h),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=w.auth.slice(h+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(w.auth)),w.auth=w.password?w.username+":"+w.password:w.username),w.origin="file:"!==w.protocol&&g(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString()}b.prototype={set:function(e,t,n){var s=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||o.parse)(t)),s[e]=t;break;case"port":s[e]=t,r(t,s.protocol)?t&&(s.host=s.hostname+":"+t):(s.host=s.hostname,s[e]="");break;case"hostname":s[e]=t,s.port&&(t+=":"+s.port),s.host=t;break;case"host":s[e]=t,c.test(t)?(t=t.split(":"),s.port=t.pop(),s.hostname=t.join(":")):(s.hostname=t,s.port="");break;case"protocol":s.protocol=t.toLowerCase(),s.slashes=!n;break;case"pathname":case"hash":if(t){var a="pathname"===e?"/":"#";s[e]=t.charAt(0)!==a?a+t:t}else s[e]=t;break;case"username":case"password":s[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(s.username=t.slice(0,i),s.username=encodeURIComponent(decodeURIComponent(s.username)),s.password=t.slice(i+1),s.password=encodeURIComponent(decodeURIComponent(s.password))):s.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<p.length;l++){var u=p[l];u[4]&&(s[u[1]]=s[u[1]].toLowerCase())}return s.auth=s.password?s.username+":"+s.password:s.username,s.origin="file:"!==s.protocol&&g(s.protocol)&&s.host?s.protocol+"//"+s.host:"null",s.href=s.toString(),s},toString:function(e){e&&"function"==typeof e||(e=o.stringify);var t,n=this,r=n.host,s=n.protocol;s&&":"!==s.charAt(s.length-1)&&(s+=":");var a=s+(n.protocol&&n.slashes||g(n.protocol)?"//":"");return n.username?(a+=n.username,n.password&&(a+=":"+n.password),a+="@"):n.password?(a+=":"+n.password,a+="@"):"file:"!==n.protocol&&g(n.protocol)&&!r&&"/"!==n.pathname&&(a+="@"),(":"===r[r.length-1]||c.test(n.hostname)&&!n.port)&&(r+=":"),a+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a}},b.extractProtocol=f,b.location=m,b.trimLeft=d,b.qs=o,e.exports=b},61937(e,t,n){"use strict";var r=n(51609);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useState,a=r.useEffect,i=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return i(function(){o.value=n,o.getSnapshot=t,l(o)&&u({inst:o})},[e,n,t]),a(function(){return l(o)&&u({inst:o}),e(function(){l(o)&&u({inst:o})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},49838(e,t,n){"use strict";var r=n(51609),o=n(22484);var s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,i=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=i(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l(function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return i=t}return i=e}if(t=i,s(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(a=e,t):(a=e,i=n)}var a,i,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,o]);var h=a(e,d[0],d[1]);return c(function(){p.hasValue=!0,p.value=h},[h]),u(h),h}},22484(e,t,n){"use strict";e.exports=n(61937)},32566(e,t,n){"use strict";e.exports=n(49838)},36791(e,t,n){"use strict";e.exports=n.p+"images/jetpack-logo-0869ca6c8490d0aaecca.svg"},26076(e,t,n){"use strict";e.exports=n.p+"images/loader-0855308317756931a4f5.gif"},63757(e,t,n){"use strict";e.exports=n.p+"images/avatar1-e8722a0be8a3a2815ce4.jpg"},94530(e,t,n){"use strict";e.exports=n.p+"images/avatar2-5c5ad1b19340e0c7a5fd.jpg"},86239(e,t,n){"use strict";e.exports=n.p+"images/avatar3-5c7c3997fa2aad717819.jpg"},84954(e,t,n){"use strict";e.exports=n.p+"images/placeholder-site-icon-5bb955c1d041bc2adfc9.svg"},72660(e,t,n){"use strict";e.exports=n.p+"images/eventbrite-in-page-example-47588367313e644097c9.png"},94739(e,t,n){"use strict";e.exports=n.p+"images/img-example-after-e2742d7b0f7c7e9157a3.png"},93220(e,t,n){"use strict";e.exports=n.p+"images/img-example-before-0b3e07296a7ca4bf4187.png"},25836(e,t,n){"use strict";e.exports=n.p+"images/map-preview-4b508c1a0f8ed700cb1e.jpg"},93797(e,t,n){"use strict";e.exports=n.p+"images/map-theme_black_and_white-a33452734cf5f59eb2f9.jpg"},49364(e,t,n){"use strict";e.exports=n.p+"images/map-theme_black_and_white_mapkit-50e9383d59f6ad6a44ed.jpg"},77971(e,t,n){"use strict";e.exports=n.p+"images/map-theme_default-d3a324cdc6ff2f461574.jpg"},98430(e,t,n){"use strict";e.exports=n.p+"images/map-theme_default_mapkit-0ed10cab18f62edff74e.jpg"},27415(e,t,n){"use strict";e.exports=n.p+"images/map-theme_satellite-58322e843e983f7397b5.jpg"},72386(e,t,n){"use strict";e.exports=n.p+"images/map-theme_satellite_mapkit-6062205f7c3804fae12c.jpg"},92747(e,t,n){"use strict";e.exports=n.p+"images/map-theme_terrain-a408b936442d6d33df07.jpg"},96374(e,t,n){"use strict";e.exports=n.p+"images/slideshow_example-1-8da367b68ecf24bac625.jpg"},88513(e,t,n){"use strict";e.exports=n.p+"images/slideshow_example-2-a24860116d0db2f2e068.jpg"},98564(e,t,n){"use strict";e.exports=n.p+"images/slideshow_example-3-521847023ffca361cfde.jpg"},48734(e,t,n){"use strict";e.exports=n.p+"images/story_example-1-8d272acaba13e96e3b48.png"},32022(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-1-8bfc86de615a17d80737.jpg"},2369(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-2-a7b4b2a7613c2e8ba929.jpg"},24324(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-3-8da367b68ecf24bac625.jpg"},49263(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-4-a24860116d0db2f2e068.jpg"},76882(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-5-e1e133942be4c7fa65d6.jpg"},86781(e,t,n){"use strict";e.exports=n.p+"images/tiled-gallery_example-6-235b99214c5a0dc1bd2b.jpg"},40932(e,t,n){"use strict";e.exports=n.p+"images/videopress-block-example-image-d7dd9fae6ff49181bfca.jpg"},60651(e,t,n){"use strict";e.exports=n.p+"images/example_160x600-4df685f9bf14f11d9012.png"},26408(e,t,n){"use strict";e.exports=n.p+"images/example_300x250-9e27534cd219e940abaf.png"},68364(e,t,n){"use strict";e.exports=n.p+"images/example_320x50-34c171b9cf96506c8fc4.png"},90244(e,t,n){"use strict";e.exports=n.p+"images/example_728x90-1a8de274d08ab4d07f48.png"},74277(e){"use strict";e.exports={consumer_slug:"jetpack"}},39384(e){"use strict";e.exports=window.JetpackConnection},97999(e){"use strict";e.exports=window.JetpackScriptDataModule},87687(e){"use strict";e.exports=window.JetpackSharedStores},51609(e){"use strict";e.exports=window.React},75795(e){"use strict";e.exports=window.ReactDOM},10790(e){"use strict";e.exports=window.ReactJSXRuntime},66087(e){"use strict";e.exports=window.lodash},20195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},63162(e){"use strict";e.exports=window.wp.blob},94715(e){"use strict";e.exports=window.wp.blockEditor},75994(e){"use strict";e.exports=window.wp.blockSerializationDefaultParser},74997(e){"use strict";e.exports=window.wp.blocks},82165(e){"use strict";e.exports=window.wp.commands},56427(e){"use strict";e.exports=window.wp.components},29491(e){"use strict";e.exports=window.wp.compose},3582(e){"use strict";e.exports=window.wp.coreData},47143(e){"use strict";e.exports=window.wp.data},38443(e){"use strict";e.exports=window.wp.date},98490(e){"use strict";e.exports=window.wp.domReady},14309(e){"use strict";e.exports=window.wp.editPost},43656(e){"use strict";e.exports=window.wp.editor},86087(e){"use strict";e.exports=window.wp.element},89877(e){"use strict";e.exports=window.wp.escapeHtml},52619(e){"use strict";e.exports=window.wp.hooks},18537(e){"use strict";e.exports=window.wp.htmlEntities},27723(e){"use strict";e.exports=window.wp.i18n},48558(e){"use strict";e.exports=window.wp.keycodes},692(e){"use strict";e.exports=window.wp.notices},92279(e){"use strict";e.exports=window.wp.plugins},41233(e){"use strict";e.exports=window.wp.preferences},5573(e){"use strict";e.exports=window.wp.primitives},13053(e){"use strict";e.exports=window.wp.privateApis},50876(e){"use strict";e.exports=window.wp.richText},21052(e){"use strict";e.exports=window.wp.theme},36536(e){"use strict";e.exports=window.wp.tokenList},93832(e){"use strict";e.exports=window.wp.url},26873(e){"use strict";e.exports=window.wp.viewport},69446(e){"use strict";e.exports=window.wp.wordcount},48816(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(51609),o=n(18762),s=n(15688);const a=r.forwardRef(function(e,t){const{render:n,className:r,disabled:a=!1,focusableWhenDisabled:i=!1,nativeButton:c=!0,style:l,...u}=e,{getButtonProps:d,buttonRef:p}=(0,o.s)({disabled:a,focusableWhenDisabled:i,native:c}),h={disabled:a};return(0,s.o)("button",e,{state:h,ref:[t,p],props:[u,d]})})},87759(e,t,n){"use strict";n.d(t,{F:()=>a});var r=n(51609),o=n(98596),s=n(10790);const a=function(e){const{direction:t="ltr"}=e,n=r.useMemo(()=>({direction:t}),[t]);return(0,s.jsx)(o.l.Provider,{value:n,children:e.children})}},7406(e,t,n){"use strict";n.d(t,{c:()=>u});var r=n(51609),o=n(63405),s=n(12002),a=n(98414),i=n(15351),c=n(64789);n(10790);const l=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new o.E,currentIdRef:{current:null},currentContextRef:{current:null}});function u(e,t={open:!1}){const{open:n}=t,o="rootStore"in e?e.rootStore:e,u=o.useState("floatingId"),d=r.useContext(l),{currentIdRef:p,delayRef:h,timeoutMs:m,initialDelayRef:g,currentContextRef:f,hasProvider:b,timeout:v}=d,[y,k]=r.useState(!1),w=r.useRef(n);return(0,s.g)(()=>{w.current=n},[n]),(0,s.g)(()=>{function e(){f.current?.setIsInstantPhase(!1),p.current=null,f.current=null,h.current=g.current,v.clear()}if(p.current&&!n&&p.current===u){if(k(!1),m){const t=u;return v.start(m,()=>{o.select("open")||p.current&&p.current!==t||e()}),()=>{(w.current||p.current!==t)&&v.clear()}}e()}},[n,u,p,h,m,g,f,v,o]),(0,s.g)(()=>{if(!n)return;const e=f.current,t=p.current;v.clear(),f.current={onOpenChange:o.setOpen,setIsInstantPhase:k},p.current=u,h.current={open:0,close:(0,a.uf)(g.current,"close")},null!==t&&t!==u?(k(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,i.d)(c.dv))):(k(!1),e?.setIsInstantPhase(!1))},[n,u,o,p,h,g,f,v]),(0,s.g)(()=>()=>{if(p.current===u){if(f.current=null,!w.current)return;p.current=null,function(e,t){e.current=t.current}(h,g),v.clear()}},[f,p,h,u,g,v]),r.useMemo(()=>({activeIdRef:p,hasProvider:b,delayRef:h,isInstantPhase:y}),[p,b,h,y])}},11706(e,t,n){"use strict";n.d(t,{CK:()=>m});var r=n(51609),o=n(75795),s=n(81289),a=n(38583),i=n(12002),c=n(19288),l=n(12570),u=n(50415),d=n(15688);n(10790);const p=r.createContext(null);const h=(0,u.F)("portal");function m(e={}){const{ref:t,container:n,componentProps:u=l.t0,elementProps:m}=e,g=(0,a.B)(),f=r.useContext(p),b=f?.portalNode,[v,y]=r.useState(null),[k,w]=r.useState(null),x=(0,c.K)(e=>{null!==e&&w(e)}),_=r.useRef(null);(0,i.g)(()=>{if(null===n)return void(_.current&&(_.current=null,w(null),y(null)));const e=(n&&((0,s.Ll)(n)?n:n.current))??b??document.body;null!=e?_.current!==e&&(_.current=e,w(null),y(e)):_.current&&(_.current=null,w(null),y(null))},[n,b]);const j=(0,d.o)("div",u,{ref:[t,x],props:[{id:g,[h]:""},m]}),C=v&&j?o.createPortal(j,v):null;return{node:k,nodeId:r.isValidElement(j)?j.props.id:void 0,subtree:C}}},33367(e,t,n){"use strict";n.d(t,{K:()=>i});var r=n(25489),o=n(16703),s=n(26559);const a={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class i extends r.H{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:s,...i}=e;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:(0,o.d)(),nested:n,triggerElements:s},a),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,s.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);const n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}},88536(e,t,n){"use strict";n.d(t,{R1:()=>a,cq:()=>i});var r=n(51609);n(10790);const o=r.createContext(null);const s=r.createContext(null);const a=()=>r.useContext(o)?.id||null,i=e=>{const t=r.useContext(s);return e??t}},47018(e,t,n){"use strict";n.d(t,{j:()=>u});var r=n(51609),o=n(7584),s=n(19288),a=n(81289),i=n(90865),c=n(26559);function l(e){return null!=e&&null!=e.clientX}function u(e,t={}){const{enabled:n=!0,axis:u="both"}=t,d="rootStore"in e?e.rootStore:e,p=d.useState("open"),h=d.useState("floatingElement"),m=d.useState("domReferenceElement"),g=d.context.dataRef,f=r.useRef(!1),b=r.useRef(null),[v,y]=r.useState(),[k,w]=r.useState([]),x=(0,s.K)(e=>{d.set("positionReference",e)}),_=(0,s.K)((e,t,n)=>{f.current||g.current.openEvent&&!l(g.current.openEvent)||d.set("positionReference",function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){const s=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},a="x"===t.axis||"both"===t.axis,i="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&"touch"!==t.pointerType;let l=s.width,u=s.height,d=s.x,p=s.y;return null==n&&t.x&&a&&(n=s.x-t.x),null==r&&t.y&&i&&(r=s.y-t.y),d-=n||0,p-=r||0,l=0,u=0,!o||c?(l="y"===t.axis?s.width:0,u="x"===t.axis?s.height:0,d=a&&null!=t.x?t.x:d,p=i&&null!=t.y?t.y:p):o&&!c&&(u="x"===t.axis?s.height:u,l="y"===t.axis?s.width:l),o=!0,{width:l,height:u,x:d,y:p,top:p,right:d+l,bottom:p+u,left:d}}}}(n??m,{x:e,y:t,axis:u,dataRef:g,pointerType:v}))}),j=(0,s.K)(e=>{p?b.current||(_(e.clientX,e.clientY,e.currentTarget),w([])):_(e.clientX,e.clientY,e.currentTarget)}),C=(0,c.Go)(v)?h:p;r.useEffect(()=>{if(!n)return void x(m);if(!C)return;function e(){b.current?.(),b.current=null}const t=(0,a.zk)(h);return!g.current.openEvent||l(g.current.openEvent)?b.current=(0,o.q)(t,"mousemove",function(t){const n=(0,i.EW)(t);(0,i.gR)(h,n)?e():_(t.clientX,t.clientY)}):x(m),e},[C,n,h,g,m,d,_,x,k]),r.useEffect(()=>()=>{d.set("positionReference",null)},[d]),r.useEffect(()=>{n&&!h&&(f.current=!1)},[n,h]),r.useEffect(()=>{!n&&p&&(f.current=!0)},[n,p]);const A=r.useMemo(()=>{function e(e){y(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:j,onMouseEnter:j}},[j]);return r.useMemo(()=>n?{reference:A,trigger:A}:{},[n,A])}},17272(e,t,n){"use strict";n.d(t,{s:()=>k});var r=n(51609),o=n(7584),s=n(31238),a=n(12240),i=n(19288),c=n(63405),l=n(81289),u=n(55087),d=n(88536),p=n(15351),h=n(64789),m=n(50415),g=n(59879),f=n(90865),b=n(26559),v=n(40612);function y(){return!1}function k(e,t={}){const{enabled:n=!0,escapeKey:k=!0,outsidePress:w=!0,outsidePressEvent:x="sloppy",referencePress:_=y,bubbles:j,externalTree:C}=t,A="rootStore"in e?e.rootStore:e,S=A.useState("open"),E=A.useState("floatingElement"),{dataRef:T,events:N}=A.context,P=(0,d.cq)(C),B=(0,i.K)("function"==typeof w?w:()=>!1),I="function"==typeof w?B:w,M=!1!==I,R=(0,i.K)(()=>x),{escapeKey:L,outsidePress:D}={escapeKey:"boolean"==typeof(F=j)?F:F?.escapeKey??!1,outsidePress:"boolean"==typeof F?F:F?.outsidePress??!0};var F;const O=r.useRef(!1),z=r.useRef(!1),U=r.useRef(!1),H=r.useRef(!1),$=r.useRef(!1),V=r.useRef(""),q=r.useRef(null),G=(0,c.Z)(),W=(0,c.Z)(),Z=(0,i.K)(()=>{W.clear(),T.current.insideReactTree=!1}),J=(0,i.K)(e=>{const t=T.current.floatingContext?.nodeId;return(P?(0,v.CM)(P.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),K=(0,i.K)(e=>(0,g.F2)(e,A.select("floatingElement"))||(0,g.F2)(e,A.select("domReferenceElement"))),Y=(0,i.K)(e=>{_()&&A.setOpen(!1,(0,p.d)(h.Ui,e.nativeEvent))}),Q=(0,i.K)(e=>{if(!S||!n||!k||"Escape"!==e.key)return;if($.current)return;if(!L&&J("__escapeKeyBubbles"))return;const t=(0,b.O_)(e)?e.nativeEvent:e,r=(0,p.d)(h.jv,t);A.setOpen(!1,r),r.isCanceled||e.preventDefault(),L||r.isPropagationAllowed||e.stopPropagation()}),X=(0,i.K)(()=>{T.current.insideReactTree=!0,W.start(0,Z)}),ee=(0,i.K)(e=>{if(!S||!n||0!==e.button)return;const t=(0,f.EW)(e.nativeEvent);(0,f.gR)(A.select("floatingElement"),t)&&(O.current||(O.current=!0,z.current=!1))}),te=(0,i.K)(e=>{S&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&O.current&&(z.current=!0)});r.useEffect(()=>{function e(e){e.open||(H.current=!1)}return N.on("openchange",e),()=>{N.off("openchange",e)}},[N]),r.useEffect(()=>{if(!S||!n)return S||(H.current=!1),Z;T.current.__escapeKeyBubbles=L,T.current.__outsidePressBubbles=D;const e=new c.E,t=new c.E,r=(0,a.R)(E);function i(){U.current=!0,t.start(0,()=>{U.current=!1})}function d(){O.current=!1,z.current=!1}function y(){const e=V.current,t="pen"!==e&&e?e:"mouse",n=R(),r="function"==typeof n?n():n;return"string"==typeof r?r:r[t]}function w(e){const t=T.current.floatingContext?.nodeId,n=P&&(0,v.CM)(P.nodesRef.current,t).some(t=>(0,g.F2)(e,t.context?.elements.floating));return K(e)||n}function x(e){if(function(e){const t=y();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e))return"click"===e.type||K(e)||(t.clear(),U.current=!1),void Z();if(T.current.insideReactTree)return void Z();const n=(0,f.EW)(e),r=`[${(0,m.F)("inert")}]`,o=(0,l.vq)(n)?n.getRootNode():null,s=Array.from(((0,l.Ng)(o)?o:(0,a.R)(A.select("floatingElement"))).querySelectorAll(r)),i=A.context.triggerElements;if(n&&(i.hasElement(n)||i.hasMatchingElement(e=>(0,f.gR)(e,n))))return;let c=(0,l.vq)(n)?n:null;for(;c&&!(0,l.eu)(c);){const e=(0,l.$4)(c);if((0,l.eu)(e)||!(0,l.vq)(e))break;c=e}if(!s.length||!(0,l.vq)(n)||(0,g.tZ)(n)||(0,f.gR)(n,A.select("floatingElement"))||!s.every(e=>!(0,f.gR)(c,e))){if((0,l.sb)(n)&&!("touches"in e)){const t=(0,l.eu)(n),r=(0,l.L9)(n),o=/auto|scroll/,s=t||o.test(r.overflowX),a=t||o.test(r.overflowY),i=s&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=a&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,u="rtl"===r.direction,d=c&&(u?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),p=i&&e.offsetY>n.clientHeight;if(d||p)return}if(!w(e)){if("intentional"===y()){if(0!==e.detail&&!(0,b.YF)(e)&&!H.current)return;if(U.current)return t.clear(),void(U.current=!1)}("function"!=typeof I||I(e))&&(J("__outsidePressBubbles")||(A.setOpen(!1,(0,p.d)(h.Np,e)),Z()))}}}function _(e){if("sloppy"!==y()||!A.select("open")||!n||K(e))return;const t=e.touches[0];t&&(q.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},G.start(1e3,()=>{q.current&&(q.current.dismissOnTouchEnd=!1,q.current.dismissOnMouseDown=!1)}))}function j(e,t){const n=(0,f.EW)(e);if(!n)return;const r=(0,o.q)(n,e.type,()=>{t(e),r()})}function C(e){G.clear(),"pointerdown"===e.type&&(0===e.button&&(H.current=!0),V.current=e.pointerType),"mousedown"===e.type&&q.current&&!q.current.dismissOnMouseDown||j(e,e=>{"pointerdown"===e.type?function(e){"sloppy"===y()&&"touch"!==e.pointerType&&A.select("open")&&n&&!K(e)&&x(e)}(e):x(e)})}function N(e){if("pointercancel"===e.type&&(H.current=!1),!O.current)return;const n=z.current;d(),"intentional"===y()&&("pointercancel"!==e.type?w(e)||(n?i():("function"!=typeof I||I(e))&&(t.clear(),U.current=!0,Z())):n&&i())}function B(e){if("sloppy"!==y()||!q.current||K(e))return;const t=e.touches[0];if(!t)return;const n=Math.abs(t.clientX-q.current.startX),r=Math.abs(t.clientY-q.current.startY),o=Math.sqrt(n*n+r*r);o>5&&(q.current.dismissOnTouchEnd=!0),o>10&&(x(e),G.clear(),q.current=null)}function F(e){"sloppy"===y()&&q.current&&!K(e)&&(q.current.dismissOnTouchEnd&&x(e),G.clear(),q.current=null)}const W=(0,s.g)(k&&(0,s.g)((0,o.q)(r,"keydown",Q),(0,o.q)(r,"compositionstart",function(){e.clear(),$.current=!0}),(0,o.q)(r,"compositionend",function(){e.start(u.Fp?5:0,()=>{$.current=!1})})),M&&(0,s.g)((0,o.q)(r,"click",C,!0),(0,o.q)(r,"pointerdown",C,!0),(0,o.q)(r,"pointerup",N,!0),(0,o.q)(r,"pointercancel",N,!0),(0,o.q)(r,"mousedown",C,!0),(0,o.q)(r,"mouseup",N,!0),(0,o.q)(r,"touchstart",function(e){V.current="touch",j(e,_)},{capture:!0,passive:!0}),(0,o.q)(r,"touchmove",function(e){j(e,B)},{capture:!0,passive:!0}),(0,o.q)(r,"touchend",function(e){j(e,F)},{capture:!0,passive:!0})));return()=>{W(),e.clear(),t.clear(),d(),U.current=!1,Z()}},[T,E,k,M,I,S,n,L,D,Q,Z,R,J,K,P,A,G]);const ne=r.useMemo(()=>({onKeyDown:Q,onPointerDown:Y,onClick:Y}),[Q,Y]),re=r.useMemo(()=>({onKeyDown:Q,onPointerDown:te,onMouseDown:te,onClickCapture:X,onMouseDownCapture(e){X(),ee(e)},onPointerDownCapture(e){X(),ee(e)},onMouseUpCapture:X,onTouchEndCapture:X,onTouchMoveCapture:X}),[Q,X,ee,te]);return r.useMemo(()=>n?{reference:ne,floating:re,trigger:ne}:{},[n,ne,re])}},87515(e,t,n){"use strict";n.d(t,{r:()=>c});var r=n(51609),o=n(12002),s=n(10469),a=n(81289),i=n(88536);function c(e){return l(e,e.rootContext)}function l(e,t){const{nodeId:n,externalTree:c}=e,l=t.useState("referenceElement"),u=t.useState("floatingElement"),d=t.useState("domReferenceElement"),p=t.useState("open"),h=t.useState("floatingId"),[m,g]=r.useState(null),[f,b]=r.useState(void 0),[v,y]=r.useState(void 0),k=r.useRef(null),w=(0,i.cq)(c),x=r.useMemo(()=>({reference:l,floating:u,domReference:d}),[l,u,d]),_=(0,s.we)({...e,elements:{...x,...m&&{reference:m}}}),j=(0,a.vq)(f)?f:null,C=void 0===v?t.state.floatingElement:v;t.useSyncedValue("referenceElement",f??null),t.useSyncedValue("domReferenceElement",void 0===f?d:j),t.useSyncedValue("floatingElement",C);const A=r.useCallback(e=>{const t=(0,a.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;g(t),_.refs.setReference(t)},[_.refs]),S=r.useCallback(e=>{((0,a.vq)(e)||null===e)&&(k.current=e,b(e)),((0,a.vq)(_.refs.reference.current)||null===_.refs.reference.current||null!==e&&!(0,a.vq)(e))&&_.refs.setReference(e)},[_.refs,b]),E=r.useCallback(e=>{y(e),_.refs.setFloating(e)},[_.refs]),T=r.useMemo(()=>({..._.refs,setReference:S,setFloating:E,setPositionReference:A,domReference:k}),[_.refs,S,E,A]),N=r.useMemo(()=>({..._.elements,domReference:d}),[_.elements,d]),P=r.useMemo(()=>({..._,dataRef:t.context.dataRef,open:p,onOpenChange:t.setOpen,events:t.context.events,floatingId:h,refs:T,elements:N,nodeId:n,rootStore:t}),[_,T,N,n,t,p,h]);return(0,o.g)(()=>{d&&(k.current=d)},[d]),(0,o.g)(()=>{t.context.dataRef.current.floatingContext=P;const e=w?.nodesRef.current.find(e=>e.id===n);e&&(e.context=P)}),r.useMemo(()=>({..._,context:P,refs:T,elements:N,rootStore:t}),[_,T,N,P,t])}},755(e,t,n){"use strict";n.d(t,{i:()=>b});var r=n(51609),o=n(7584),s=n(94563),a=n(55087),i=n(31238),c=n(12240),l=n(63405),u=n(81289),d=n(50415),p=n(59879),h=n(90865),m=n(15351),g=n(64789);const f=s.Md&&a.Fp;function b(e,t={}){const{enabled:n=!0,delay:s}=t,a="rootStore"in e?e.rootStore:e,{events:b,dataRef:v}=a.context,y=r.useRef(!1),k=r.useRef(null),w=r.useRef(!0),x=(0,l.Z)();r.useEffect(()=>{const e=a.select("domReferenceElement");if(!n)return;const t=(0,u.zk)(e);return(0,i.g)((0,o.q)(t,"blur",function(){const e=a.select("domReferenceElement");!a.select("open")&&(0,u.sb)(e)&&e===(0,h.RS)((0,c.R)(e))&&(y.current=!0,k.current=e)}),f&&(0,o.q)(t,"keydown",function(){w.current=!0},!0),f&&(0,o.q)(t,"pointerdown",function(){w.current=!1},!0))},[a,n]),r.useEffect(()=>{if(n)return b.on("openchange",e),()=>{b.off("openchange",e)};function e(e){if(e.reason===g.Ui||e.reason===g.jv){const e=a.select("domReferenceElement");(0,u.vq)(e)&&(k.current=e,y.current=!0)}}},[b,n,a]);const _=r.useMemo(()=>{function e(){y.current=!1,k.current=null}return{onMouseLeave(){e()},onFocus(t){const n=t.currentTarget;if(y.current){if(k.current===n)return;e()}const r=(0,h.EW)(t.nativeEvent);if((0,u.vq)(r))if(f&&!t.relatedTarget){if(!w.current&&!(0,p.$u)(r))return}else if(!(0,p.em)(r))return;const o=(0,p.Hi)(t.relatedTarget,a.context.triggerElements),{nativeEvent:i,currentTarget:c}=t,l="function"==typeof s?s():s;a.select("open")&&o||0===l||void 0===l?a.setOpen(!0,(0,m.d)(g.F4,i,c)):x.start(l,()=>{y.current||a.setOpen(!0,(0,m.d)(g.F4,i,c))})},onBlur(t){e();const n=t.relatedTarget,r=t.nativeEvent,o=(0,u.vq)(n)&&n.hasAttribute((0,d.F)("focus-guard"))&&"outside"===n.getAttribute("data-type");x.start(0,()=>{const e=a.select("domReferenceElement"),t=(0,h.RS)((0,c.R)(e));if(!n&&t===e)return;if((0,h.gR)(v.current.floatingContext?.refs.floating.current,t)||(0,h.gR)(e,t)||o)return;const s=n??t;(0,p.Hi)(s,a.context.triggerElements)||a.setOpen(!1,(0,m.d)(g.F4,r))})}}},[v,s,a,x]);return r.useMemo(()=>n?{reference:_,trigger:_}:{},[n,_])}},10305(e,t,n){"use strict";n.d(t,{a:()=>y});var r=n(51609),o=n(7584),s=n(31238),a=n(12002),i=n(12240),c=n(19288),l=n(63405),u=n(81289),d=n(15351),p=n(64789),h=n(88536),m=n(90865),g=n(40612),f=n(2527),b=n(59879),v=n(98414);function y(e,t={}){const{enabled:n=!0,closeDelay:y=0,nodeId:k}=t,w="rootStore"in e?e.rootStore:e,x=w.useState("open"),_=w.useState("floatingElement"),j=w.useState("domReferenceElement"),{dataRef:C}=w.context,A=(0,h.cq)(),S=(0,h.R1)(),E=(0,f.uu)(w),T=(0,l.Z)(),N=(0,c.K)(()=>(0,v.GI)(C.current.openEvent?.type,E.interactedInside)),P=(0,c.K)(()=>(0,v.h$)(C.current.openEvent?.type)),B=(0,c.K)(()=>{(0,f.GH)(E)});(0,a.g)(()=>{x||(E.pointerType=void 0,E.restTimeoutPending=!1,E.interactedInside=!1,B())},[x,E,B]),r.useEffect(()=>B,[B]),(0,a.g)(()=>{if(n&&x&&E.handleCloseOptions?.blockPointerEvents&&P()&&(0,u.vq)(j)&&_){const e=j,t=_,n=(0,i.R)(_),r=A?.nodesRef.current.find(e=>e.id===S)?.context?.elements.floating;r&&(r.style.pointerEvents="");const o=E.pointerEventsScopeElement!==t?E.pointerEventsScopeElement:null,s=r!==t?r:null,a=E.handleCloseOptions?.getScope?.()??o??s??e.closest("[data-rootownerid]")??n.body;return(0,f.D8)(E,{scopeElement:a,referenceElement:e,floatingElement:t}),()=>{B()}}},[n,x,j,_,E,P,A,S,B]),r.useEffect(()=>{if(!n)return;function e(){return!!(A&&S&&(0,g.CM)(A.nodesRef.current,S).length>0)}function t(n){A&&S&&!e()&&T.start(0,()=>{A.events.off("floating.closed",t),w.setOpen(!1,(0,d.d)(p.N7,n)),A.events.emit("floating.closed",n)})}const r=_;return(0,s.g)(r&&(0,o.q)(r,"mouseenter",function(){E.openChangeTimeout.clear(),T.clear(),A?.events.off("floating.closed",t),B()}),r&&(0,o.q)(r,"mouseleave",function(n){if(e()&&A)return void A.events.on("floating.closed",t);if((0,b.Hi)(n.relatedTarget,w.context.triggerElements))return;const r=C.current.floatingContext?.nodeId??k,o=n.relatedTarget;A&&r&&(0,u.vq)(o)&&(0,g.CM)(A.nodesRef.current,r,!1).some(e=>(0,m.gR)(e.context?.elements.floating,o))||(E.handler?E.handler(n):(B(),P()&&!N()&&function(e){const t=(0,v.uf)(y,"close",E.pointerType),n=()=>{w.setOpen(!1,(0,d.d)(p.N7,e)),A?.events.emit("floating.closed",e)};t?E.openChangeTimeout.start(t,n):(E.openChangeTimeout.clear(),n())}(n)))}),r&&(0,o.q)(r,"pointerdown",function(e){const t=(0,m.EW)(e);(0,b.H5)(t)?E.interactedInside=null!=t?.closest("[aria-haspopup]"):E.interactedInside=!1},!0),()=>{A?.events.off("floating.closed",t)})},[n,_,w,C,y,k,P,N,B,E,A,S,T])}},2527(e,t,n){"use strict";n.d(t,{D8:()=>l,GH:()=>c,uu:()=>u});var r=n(31966),o=n(31749),s=n(63405);class a{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new s.E,this.restTimeout=new s.E,this.handleCloseOptions=void 0}static create(){return new a}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const i=new WeakMap;function c(e){if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&i.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),i.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function l(e,t){const{scopeElement:n,referenceElement:r,floatingElement:o}=t,s=i.get(n);s&&s!==e&&c(s),c(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=o,i.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",o.style.pointerEvents="auto"}function u(e){const t=e.context.dataRef.current,n=(0,o.j)(()=>t.hoverInteractionState??a.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),(0,r.y)(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}},27484(e,t,n){"use strict";n.d(t,{j:()=>k});var r=n(51609),o=n(75795),s=n(7584),a=n(31238),i=n(12240),c=n(19288),l=n(87946),u=n(81289),d=n(15351),p=n(64789),h=n(88536),m=n(90865),g=n(26559),f=n(2527),b=n(98414),v=n(59879);const y={current:null};function k(e,t={}){const{enabled:n=!0,delay:k=0,handleClose:w=null,mouseOnly:x=!1,restMs:_=0,move:j=!0,triggerElementRef:C=y,externalTree:A,isActiveTrigger:S=!0,getHandleCloseContext:E,isClosing:T,shouldOpen:N,guardStaleOpen:P=!1}=t,B="rootStore"in e?e.rootStore:e,{dataRef:I,events:M}=B.context,R=(0,h.cq)(A),L=(0,f.uu)(B),D=r.useRef(!1),F=(0,l.u)(w),O=(0,l.u)(k),z=(0,l.u)(_),U=(0,l.u)(n),H=(0,l.u)(N),$=(0,l.u)(T),V=(0,c.K)(()=>(0,b.GI)(I.current.openEvent?.type,L.interactedInside)),q=(0,c.K)(()=>!1!==H.current?.()),G=(0,c.K)((e,t,n)=>{const r=B.context.triggerElements;if(r.hasElement(t))return!e||!(0,m.gR)(e,t);if(!(0,u.vq)(n))return!1;const o=n;return r.hasMatchingElement(e=>(0,m.gR)(e,o))&&(!e||!(0,m.gR)(e,o))}),W=(0,c.K)(()=>{if(!L.handler)return;(0,i.R)(B.select("domReferenceElement")).removeEventListener("mousemove",L.handler),L.handler=void 0}),Z=(0,c.K)(()=>{(0,f.GH)(L)});return S&&(L.handleCloseOptions=w?.__options),r.useEffect(()=>W,[W]),r.useEffect(()=>{if(n)return M.on("openchange",e),()=>{M.off("openchange",e)};function e(e){e.open?D.current=!1:(D.current=e.reason===p.N7,W(),L.openChangeTimeout.clear(),L.restTimeout.clear(),L.blockMouseMove=!0,L.restTimeoutPending=!1)}},[n,M,L,W]),r.useEffect(()=>{if(!n)return;function e(e,t=!0){const n=(0,b.uf)(O.current,"close",L.pointerType);n?L.openChangeTimeout.start(n,()=>{B.setOpen(!1,(0,d.d)(p.N7,e)),R?.events.emit("floating.closed",e)}):t&&(L.openChangeTimeout.clear(),B.setOpen(!1,(0,d.d)(p.N7,e)),R?.events.emit("floating.closed",e))}const t=C.current??(S?B.select("domReferenceElement"):null);if(!(0,u.vq)(t))return;function r(e){if(L.openChangeTimeout.clear(),L.blockMouseMove=!1,x&&!(0,g.Go)(L.pointerType))return;const t=(0,b.hq)(z.current),n=(0,b.uf)(O.current,"open",L.pointerType),r=(0,m.EW)(e),o=e.currentTarget??null,s=B.select("domReferenceElement");let a=o;if((0,u.vq)(r)&&!B.context.triggerElements.hasElement(r))for(const e of B.context.triggerElements.elements())if((0,m.gR)(e,r)){a=e;break}(0,u.vq)(o)&&(0,u.vq)(s)&&!B.context.triggerElements.hasElement(o)&&(0,m.gR)(o,s)&&(a=s);const i=null!=a&&G(s,a,r),c=B.select("open"),l=$.current?.()??"ending"===B.select("transitionStatus"),h=!c&&l&&D.current,f=!i&&(0,u.vq)(a)&&(0,u.vq)(s)&&(0,m.gR)(s,a)&&h,v=t>0&&!n,y=!c||i;i&&(c||h)||f?q()&&B.setOpen(!0,(0,d.d)(p.N7,e,a)):v||(n?L.openChangeTimeout.start(n,()=>{y&&q()&&B.setOpen(!0,(0,d.d)(p.N7,e,a))}):y&&q()&&B.setOpen(!0,(0,d.d)(p.N7,e,a)))}function o(t){if(V())return void Z();W();const n=B.select("domReferenceElement"),r=(0,i.R)(n);L.restTimeout.clear(),L.restTimeoutPending=!1;const o=I.current.floatingContext??E?.();if((0,v.Hi)(t.relatedTarget,B.context.triggerElements))return;if(F.current&&o){B.select("open")||L.openChangeTimeout.clear();const n=C.current;return L.handler=F.current({...o,tree:R,x:t.clientX,y:t.clientY,onClose(){Z(),W(),U.current&&!V()&&n===B.select("domReferenceElement")&&e(t,!0)}}),r.addEventListener("mousemove",L.handler),void L.handler(t)}("touch"!==L.pointerType||!(0,m.gR)(B.select("floatingElement"),t.relatedTarget))&&e(t)}const c=P?(0,s.q)(t,"mouseout",function(e){(0,m.gR)(t,e.relatedTarget)||(L.openChangeTimeout.clear(),L.restTimeout.clear(),L.restTimeoutPending=!1)}):void 0;return j?(0,a.g)((0,s.q)(t,"mousemove",r,{once:!0}),(0,s.q)(t,"mouseenter",r),(0,s.q)(t,"mouseleave",o),c):(0,a.g)((0,s.q)(t,"mouseenter",r),(0,s.q)(t,"mouseleave",o),c)},[W,Z,I,O,B,n,F,L,S,G,V,x,j,z,C,R,U,E,$,q,P]),r.useMemo(()=>{if(n)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e,n=e.currentTarget,r=B.select("domReferenceElement"),s=B.select("open"),a=G(r,n,e.target);if(x&&!(0,g.Go)(L.pointerType))return;if(s&&a&&L.handleCloseOptions?.blockPointerEvents){const e=B.select("floatingElement");if(e){const t=L.handleCloseOptions?.getScope?.()??n.ownerDocument.body;(0,f.D8)(L,{scopeElement:t,referenceElement:n,floatingElement:e})}}const i=(0,b.hq)(z.current);function c(){if(L.restTimeoutPending=!1,V())return;const e=B.select("open");L.blockMouseMove||e&&!a||!q()||B.setOpen(!0,(0,d.d)(p.N7,t,n))}s&&!a||0===i||!a&&L.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(L.restTimeout.clear(),"touch"===L.pointerType?o.flushSync(()=>{c()}):a&&s?c():(L.restTimeoutPending=!0,L.restTimeout.start(i,c)))}};function e(e){L.pointerType=e.pointerType}},[n,L,V,G,x,B,z,q])}},98414(e,t,n){"use strict";n.d(t,{GI:()=>a,h$:()=>i,hq:()=>s,uf:()=>o});var r=n(26559);function o(e,t,n){const o=function(e,t){return null==t||(0,r.Go)(t)?"function"==typeof e?e():e:0}(e,n);return"number"==typeof o?o:o?.[t]}function s(e){return"function"==typeof e?e():e}function a(e,t){return t||"click"===e||"mousedown"===e}function i(e){return e?.includes("mouse")&&"mousedown"!==e}},50306(e,t,n){"use strict";n.d(t,{D:()=>i});var r=n(51609),o=n(12002),s=n(81289),a=n(33367);function i(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:i,floatingId:c,nested:l,onOpenChange:u}=e,d=t.useState("open"),p=t.useState("activeTriggerElement"),h=t.useState(n?"popupElement":"positionerElement"),m=t.context.triggerElements,g=u,f=r.useRef(null);void 0===i&&null===f.current&&(f.current=new a.K({open:d,transitionStatus:void 0,referenceElement:p,floatingElement:h,triggerElements:m,onOpenChange:g,floatingId:c,syncOnly:!0,nested:l}));const b=i??f.current;return t.useSyncedValue("floatingId",c),(0,o.g)(()=>{const e={open:d,floatingId:c,referenceElement:p,floatingElement:h};(0,s.vq)(p)&&(e.domReferenceElement=p),b.state.positionReference===b.state.referenceElement&&(e.positionReference=p),b.update(e)},[d,c,p,h,b]),b.context.onOpenChange=g,b.context.nested=l,b}},76521(e,t,n){"use strict";n.d(t,{U:()=>o});var r=n(39175);const o=(e,t)=>{const{name:n,fn:o}=(e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:s,rects:a,platform:i,elements:c,middlewareData:l}=t,{element:u,padding:d=0,offsetParent:p="real"}=(0,r._3)(e,t)||{};if(null==u)return{};const h=(0,r.nI)(d),m={x:n,y:o},g=(0,r.Dz)(s),f=(0,r.sq)(g),b=await i.getDimensions(u),v="y"===g,y=v?"top":"left",k=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=a.reference[f]+a.reference[g]-m[g]-a.floating[f],_=m[g]-a.reference[g],j="real"===p?await(i.getOffsetParent?.(u)):c.floating;let C=c.floating[w]||a.floating[f];C&&await(i.isElement?.(j))||(C=c.floating[w]||a.floating[f]);const A=x/2-_/2,S=C/2-b[f]/2-1,E=Math.min(h[y],S),T=Math.min(h[k],S),N=E,P=C-b[f]-T,B=C/2-b[f]/2+A,I=(0,r.qE)(N,B,P),M=!l.arrow&&null!=(0,r.Sg)(s)&&B!==I&&a.reference[f]/2-(B<N?E:T)-b[f]/2<0,R=M?B<N?B-N:B-P:0;return{[g]:m[g]+R,data:{[g]:I,centerOffset:B-I-R,...M&&{alignmentOffset:R}},reset:M}}}))(e);return{name:n,fn:o,options:[e,t]}}},53734(e,t,n){"use strict";n.d(t,{i:()=>p});var r=n(81289),o=n(63405),s=n(90865),a=n(40612);const i=.1*.1,c=.5;function l(e,t,n,r,o,s){return r>=t!=s>=t&&e<=(o-n)*(t-r)/(s-r)+n}function u(e,t,n,r,o,s,a,i,c,u){let d=!1;return l(e,t,n,r,o,s)&&(d=!d),l(e,t,o,s,a,i)&&(d=!d),l(e,t,a,i,c,u)&&(d=!d),l(e,t,c,u,n,r)&&(d=!d),d}function d(e,t,n,r,o,s){const a=Math.min(n,o),i=Math.max(n,o),c=Math.min(r,s),l=Math.max(r,s);return e>=a&&e<=i&&t>=c&&t<=l}function p(e={}){const{blockPointerEvents:t=!1}=e,n=new o.E,l=({x:e,y:t,placement:o,elements:l,onClose:p,nodeId:h,tree:m})=>{const g=o?.split("-")[0];let f=!1,b=null,v=null,y="undefined"!=typeof performance?performance.now():0;return function(o){n.clear();const k=l.domReference,w=l.floating;if(!k||!w||null==g||null==e||null==t)return;const{clientX:x,clientY:_}=o,j=(0,s.EW)(o),C="mouseleave"===o.type,A=(0,s.gR)(w,j),S=(0,s.gR)(k,j);if(A&&(f=!0,!C))return;if(S&&(f=!1,!C))return void(f=!0);if(C&&(0,r.vq)(o.relatedTarget)&&(0,s.gR)(w,o.relatedTarget))return;function E(){return Boolean(m&&(0,a.CM)(m.nodesRef.current,h).length>0)}function T(){E()||(n.clear(),p())}if(E())return;const N=k.getBoundingClientRect(),P=w.getBoundingClientRect(),B=e>P.right-P.width/2,I=t>P.bottom-P.height/2,M=P.width>N.width,R=P.height>N.height,L=(M?N:P).left,D=(M?N:P).right,F=(R?N:P).top,O=(R?N:P).bottom;if("top"===g&&t>=N.bottom-1||"bottom"===g&&t<=N.top+1||"left"===g&&e>=N.right-1||"right"===g&&e<=N.left+1)return void T();let z=!1;switch(g){case"top":z=d(x,_,L,N.top+1,D,P.bottom-1);break;case"bottom":z=d(x,_,L,P.top+1,D,N.bottom-1);break;case"left":z=d(x,_,P.right-1,O,N.left+1,F);break;case"right":z=d(x,_,N.right-1,O,P.left+1,F)}if(z)return;if(f&&!function(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}(x,_,N))return void T();if(!C&&function(e,t){const n=performance.now(),r=n-y;if(null===b||null===v||0===r)return b=e,v=t,y=n,!1;const o=e-b,s=t-v;return b=e,v=t,y=n,o*o+s*s<r*r*i}(x,_))return void T();let U=!1;switch(g){case"top":{const n=M?.25:2,r=M||B?e+n:e-n,o=M?e-n:B?e+n:e-n,s=t+c+1,a=B||M?P.bottom-c:P.top,i=B?M?P.bottom-c:P.top:P.bottom-c;U=u(x,_,r,s,o,s,P.left,a,P.right,i);break}case"bottom":{const n=M?.25:2,r=M||B?e+n:e-n,o=M?e-n:B?e+n:e-n,s=t-c,a=B||M?P.top+c:P.bottom,i=B?M?P.top+c:P.bottom:P.top+c;U=u(x,_,r,s,o,s,P.left,a,P.right,i);break}case"left":{const n=R?.25:2,r=R||I?t+n:t-n,o=R?t-n:I?t+n:t-n,s=e+c+1,a=I||R?P.right-c:P.left,i=I?R?P.right-c:P.left:P.right-c;U=u(x,_,a,P.top,i,P.bottom,s,r,s,o);break}case"right":{const n=R?.25:2,r=R||I?t+n:t-n,o=R?t-n:I?t+n:t-n,s=e-c,a=I||R?P.left+c:P.right,i=I?R?P.left+c:P.right:P.left+c;U=u(x,_,s,r,s,o,a,P.top,i,P.bottom);break}}U?f||n.start(40,T):T()}};return l.__options={...e,blockPointerEvents:t},l}},17300(e,t,n){"use strict";n.d(t,{BT:()=>o,Ed:()=>r});const r="data-base-ui-focusable",o="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"},50415(e,t,n){"use strict";function r(e){return`data-base-ui-${e}`}n.d(t,{F:()=>r})},16703(e,t,n){"use strict";function r(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}n.d(t,{d:()=>r})},59879(e,t,n){"use strict";n.d(t,{$u:()=>d,F2:()=>l,H5:()=>p,Hi:()=>c,em:()=>h,tZ:()=>u});var r=n(81289),o=n(78858),s=n(90865),a=n(17300),i=n(93918);function c(e,t){if(!(0,r.vq)(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute(i.d);for(const[,e]of t.entries())if((0,s.gR)(e,n))return!e.hasAttribute(i.d);return!1}function l(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function u(e){return e.matches("html,body")}function d(e){return(0,r.sb)(e)&&e.matches(a.BT)}function p(e){return null!=e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${a.BT}`)}function h(e){if(!e||o.I)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}},26559(e,t,n){"use strict";n.d(t,{Ev:()=>i,Go:()=>a,O_:()=>o,YF:()=>s});var r=n(94563);function o(e){return"nativeEvent"in e}function s(e){return!(""!==e.pointerType||!e.isTrusted)||(r.yA&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function a(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function i(e){const t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},40612(e,t,n){"use strict";function r(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...r(e,t.id,n)])}n.d(t,{CM:()=>r})},14684(e,t,n){"use strict";n.d(t,{V:()=>o,e:()=>r});const r="data-starting-style",o="data-ending-style"},1265(e,t,n){"use strict";n.d(t,{G:()=>a});var r=n(53169),o=n(51609);const s=o.createContext(void 0);function a(e=!1){const t=o.useContext(s);if(void 0===t&&!e)throw new Error((0,r.A)(16));return t}},71031(e,t,n){"use strict";n.d(t,{K2:()=>r,Pe:()=>o});const r={style:{transition:"none"}},o={fallbackAxisSide:"end"}},15351(e,t,n){"use strict";n.d(t,{d:()=>o});var r=n(12570);function o(e,t,n,o){let s=!1,a=!1;const i=o??r.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){s=!0},allowPropagation(){a=!0},get isCanceled(){return s},get isPropagationAllowed(){return a},trigger:n,...i}}},98596(e,t,n){"use strict";n.d(t,{j:()=>s,l:()=>o});var r=n(51609);const o=r.createContext(void 0);function s(){const e=r.useContext(o);return e?.direction??"ltr"}},95400(e,t,n){"use strict";n.d(t,{d:()=>s});var r=n(12570),o=n(71031);function s(e){return"starting"===e?o.K2:r.t0}},37885(e,t,n){"use strict";function r(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}n.d(t,{v:()=>r})},64789(e,t,n){"use strict";n.d(t,{F4:()=>a,N7:()=>s,Np:()=>i,Ui:()=>o,dv:()=>r,jv:()=>c,r9:()=>l,zJ:()=>u});const r="none",o="trigger-press",s="trigger-hover",a="trigger-focus",i="outside-press",c="escape-key",l="disabled",u="imperative-action"},74466(e,t,n){"use strict";n.d(t,{G:()=>a});var r=n(14684);const o={[r.e]:""},s={[r.V]:""},a={transitionStatus:e=>"starting"===e?o:"ending"===e?s:null}},18762(e,t,n){"use strict";n.d(t,{s:()=>d});var r=n(51609),o=n(81289),s=n(19288),a=n(12002),i=n(67720),c=n(1265),l=n(56200),u=n(2095);function d(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:d=0,native:h=!0,composite:m}=e,g=r.useRef(null),f=(0,c.G)(!0),b=m??void 0!==f,{props:v}=(0,l.S)({focusableWhenDisabled:n,disabled:t,composite:b,tabIndex:d,isNativeButton:h});const y=r.useCallback(()=>{const e=g.current;p(e)&&b&&t&&void 0===v.disabled&&e.disabled&&(e.disabled=!1)},[t,v.disabled,b]);(0,a.g)(y,[y]);return{getButtonProps:r.useCallback((e={})=>{const{onClick:n,onMouseDown:r,onKeyUp:s,onKeyDown:a,onPointerDown:c,...l}=e;return(0,i.v6)({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t)return;if((0,i.PT)(e),a?.(e),e.baseUIHandlerPrevented)return;const n=e.target===e.currentTarget,r=e.currentTarget,s=p(r),c=!h&&(l=r,(0,o.sb)(l)&&"A"===l.tagName&&Boolean(l.href));var l;const d=n&&(h?s:!c),m="Enter"===e.key,g=" "===e.key,f=r.getAttribute("role"),v=f?.startsWith("menuitem")||"option"===f||"gridcell"===f;if(n&&b&&g){if(e.defaultPrevented&&v)return;return e.preventDefault(),void(h&&!s||(e.preventBaseUIHandler(),(0,u.B)(r,e)))}d&&!h&&(g||m)?e.defaultPrevented||(e.preventDefault(),m&&(e.preventBaseUIHandler(),(0,u.B)(r,e))):n&&c&&g&&e.preventDefault()},onKeyUp(e){t||((0,i.PT)(e),s?.(e),e.target===e.currentTarget&&h&&b&&p(e.currentTarget)&&" "===e.key?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||h||b||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),(0,u.B)(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():c?.(e)}},h?{type:"button"}:{role:"button"},v,l)},[t,v,b,h]),buttonRef:(0,s.K)(e=>{g.current=e,y()})}}function p(e){return(0,o.sb)(e)&&"BUTTON"===e.tagName}},99237(e,t,n){"use strict";n.d(t,{s:()=>x});var r=n(51609),o=n(39175),s=n(12240),a=n(81289),i=n(12002),c=n(87946),l=n(19288),u=n(25569),d=n(10469),p=n(87515),h=n(98596),m=n(76521),g=n(439),f=n(52046),b=n(23371);const v=b.QJ,y=b.px;function k(e,t,n){const r="inline-start"===e||"inline-end"===e;return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function w(e,t,n){const{rects:r,placement:s}=e;return{side:k(t,(0,o.C0)(s),n),align:(0,o.Sg)(s)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function x(e){return function(e,t){const{anchor:n,positionMethod:p="absolute",side:x="bottom",sideOffset:j=0,align:C="center",alignOffset:A=0,collisionBoundary:S,collisionPadding:E=5,sticky:T=!1,arrowPadding:N=5,disableAnchorTracking:P=!1,inline:B,keepMounted:I=!1,floatingRootContext:M,mounted:R,collisionAvoidance:L,shift:D,nodeId:F,adaptiveOrigin:O,lazyFlip:z=!1,externalTree:U}=e,[H,$]=r.useState(null);R||null===H||$(null);const V=L.side||"flip",q=L.align||"flip",G=L.fallbackAxisSide||"end",W=D?.crossAxis??!1,Z=D?.rootBoundary,J="function"==typeof n?n:void 0,K=(0,l.K)(J),Y=J?K:n,Q=(0,c.u)(n),X=(0,c.u)(R),ee="rtl"===(0,h.j)(),te=H||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ee?"left":"right","inline-start":ee?"right":"left"}[x],ne="center"===C?te:`${te}-${C}`;let re=E;"number"==typeof re?re={top:re,right:re,bottom:re,left:re}:re&&(re={top:re.top||0,right:re.right||0,bottom:re.bottom||0,left:re.left||0});const oe=1,se="bottom"===x?oe:0,ae="top"===x?oe:0,ie="right"===x?oe:0,ce="left"===x?oe:0,le={boundary:"clipping-ancestors"===S?"clippingAncestors":S,padding:re},ue=r.useRef(null),de=(0,c.u)(j),pe=(0,c.u)(A),he="function"!=typeof j?j:0,me="function"!=typeof A?A:0,ge=[];B&&ge.push(B);ge.push((0,d.cY)(e=>{const t=w(e,x,ee),n="function"==typeof de.current?de.current(t):de.current,r="function"==typeof pe.current?pe.current(t):pe.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[he,me,ee,x]));const fe="none"===q&&"shift"!==V,be=!fe&&(T||W||"shift"===V),ve="none"===V?null:(0,d.UU)({...le,padding:{top:re.top+oe+se,right:re.right+oe+ce,bottom:re.bottom+oe+ae,left:re.left+oe+ie},mainAxis:!W&&"flip"===V,crossAxis:"flip"===q&&"alignment",fallbackAxisSideDirection:G}),ye=fe?null:(0,d.BN)({...le,rootBoundary:Z,mainAxis:"none"!==q,crossAxis:be,limiter:T||W?void 0:(0,d.ER)(e=>{if(!ue.current)return{};const{width:t,height:n}=ue.current.getBoundingClientRect(),r=(0,o.TV)((0,o.C0)(e.placement));return{offset:("y"===r?t:n)/2+("y"===r?re.left+re.right:re.top+re.bottom)/2}})},[le,T,W,Z,re,q]);"shift"===V||"shift"===q||"center"===C?ge.push(ye,ve):ge.push(ve,ye);ge.push((0,d.Ej)({...le,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!X.current)return;const o=e.style;o.setProperty(v,`${t}px`),o.setProperty(y,`${n}px`);const s=(0,a.zk)(e).devicePixelRatio||1,{x:i,y:c,width:l,height:u}=r.reference,d=(Math.round((i+l)*s)-Math.round(i*s))/s,p=(Math.round((c+u)*s)-Math.round(c*s))/s;o.setProperty(b.cn,`${d}px`),o.setProperty(b.NL,`${p}px`)}}),(0,m.U)(e=>({element:ue.current||(0,s.R)(e.elements.floating).createElement("div"),padding:ue.current?N:0,offsetParent:"floating"}),[N]),{name:"transformOrigin",fn(e){const{elements:{floating:t},middlewareData:n,placement:r,platform:s,rects:a,y:i}=e,c=(0,o.C0)(r),l=(0,o.Sg)(r),u="y"===(0,o.TV)(c),d=ue.current,p="function"==typeof j?j(w(e,x,ee)):j;let h;if(!d&&l&&Math.abs(u?n.shift?.x||0:n.shift?.y||0)<=1)h="start"===l===(u&&!0===s.isRTL?.(t))?"100%":"0%";else{h=`${(u?n.arrow?.x||0:n.arrow?.y||0)+(u?d?.clientWidth||0:d?.clientHeight||0)/2}px`}let m="top"===c||"left"===c?`calc(100% + ${p}px)`:-p+"px";return be&&u&&Math.abs(n.shift?.y||0)>p&&(m=a.reference.y+a.reference.height/2-i+"px"),t.style.setProperty(b.Td,u?`${h} ${m}`:`${m} ${h}`),{}}},g.j,O),(0,i.g)(()=>{!R&&M&&M.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[R,M]);const ke=r.useMemo(()=>({ancestorScroll:!P,elementResize:!P&&"undefined"!=typeof ResizeObserver,layoutShift:!P&&"undefined"!=typeof IntersectionObserver}),[P]),{refs:we,elements:xe,x:_e,y:je,middlewareData:Ce,update:Ae,placement:Se,context:Ee,isPositioned:Te,floatingStyles:Ne}=t({rootContext:M,open:I?R:void 0,placement:ne,middleware:ge,strategy:p,whileElementsMounted:I?void 0:(...e)=>(0,u.ll)(...e,ke),nodeId:F,externalTree:U}),{sideX:Pe,sideY:Be}=Ce.adaptiveOrigin||f.j,Ie=Te?p:"fixed",Me=r.useMemo(()=>{let e;return e=Te?O?{position:Ie,[Pe]:_e,[Be]:je}:{...Ne,position:Ie}:{position:Ie,top:0,left:0},e[v]="100vw",e[y]="100vh",Te||(e.opacity=0),e},[O,Ie,Pe,_e,Be,je,Ne,Te]),Re=r.useRef(null);(0,i.g)(()=>{if(!R)return;const e=Q.current,t="function"==typeof e?e():e,n=(_(t)?t.current:t)||null||null;n!==Re.current&&(we.setPositionReference(n),Re.current=n)},[R,we,Y,Q]),r.useEffect(()=>{if(!R)return;const e=Q.current;"function"!=typeof e&&_(e)&&e.current!==Re.current&&(we.setPositionReference(e.current),Re.current=e.current)},[R,we,Y,Q]),r.useEffect(()=>{if(I&&R&&xe.reference&&xe.floating)return(0,u.ll)(xe.reference,xe.floating,Ae,ke)},[I,R,xe,Ae,ke]);const Le=(0,o.C0)(Se),De=k(x,Le,ee),Fe=(0,o.Sg)(Se)||"center",Oe=Boolean(Ce.hide?.referenceHidden);(0,i.g)(()=>{z&&R&&Te&&Le!==te&&$(Le)},[z,R,Te,Le,te]);const ze=r.useMemo(()=>({position:"absolute",top:Ce.arrow?.y,left:Ce.arrow?.x}),[Ce.arrow]),Ue=0!==Ce.arrow?.centerOffset;return r.useMemo(()=>({positionerStyles:Me,arrowStyles:ze,arrowRef:ue,arrowUncentered:Ue,side:De,align:Fe,physicalSide:Le,anchorHidden:Oe,refs:we,context:Ee,isPositioned:Te,update:Ae}),[Me,ze,ue,Ue,De,Fe,Le,Oe,we,Ee,Te,Ae])}(e,p.r)}function _(e){return null!=e&&"current"in e}},23266(e,t,n){"use strict";n.d(t,{V:()=>l});var r=n(75795),o=n(94541),s=n(19288),a=n(37304),i=n(14684);let c=null;function l(e,t=!1,n=!1){const l=(0,o.NR)();return(0,s.K)((o,s=null)=>{l.cancel();const u=(0,a.q)(e);if(null==u)return;const d=u,p=()=>{n?function(e){if(!c){const e=[];c=e,queueMicrotask(()=>{c=null,r.flushSync(()=>{for(const t of e)t()})})}c.push(e)}(()=>{s?.aborted||o()}):r.flushSync(o)};if("function"!=typeof d.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)o();else{if(t){const e=i.e;if(!d.hasAttribute(e))return void l.request(h);const t=new MutationObserver(()=>{d.hasAttribute(e)||(t.disconnect(),h())});return t.observe(d,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}l.request(h)}function h(){Promise.all(d.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||p()},()=>{if(s?.aborted)return;d.getAnimations().some(e=>e.pending||"finished"!==e.playState)?h():p()})}})}},88659(e,t,n){"use strict";n.d(t,{e:()=>o});var r=n(38583);function o(e){return(0,r.B)(e,"base-ui")}},83244(e,t,n){"use strict";n.d(t,{v:()=>a});var r=n(51609),o=n(19288),s=n(23266);function a(e){const{enabled:t=!0,open:n,ref:a,batch:i=!1,onComplete:c}=e,l=(0,o.K)(c),u=(0,s.V)(a,n,i);r.useEffect(()=>{if(!t)return;const e=new AbortController;return u(l,e.signal),()=>{e.abort()}},[t,n,l,u])}},15688(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(53169),o=n(51609),s=n(8970),a=n(28641),i=n(70071),c=n(12570),l=n(37885),u=n(51469),d=n(15015),p=n(67720);function h(e,t,n={}){let h=t.render;!1!==n.enabled&&(h=function(e){if(e?.$$typeof!==m)return e;const t=o.Children.toArray(e)[0];return o.isValidElement(t)?t:e}(h));const g=function(e,t,n){const{className:r,style:o}=e,{state:h=c.t0,ref:m,props:g,stateAttributesMapping:f,enabled:b=!0}=t,v=b?(0,u.S)(r,h):void 0,y=b?(0,d.m)(o,h):void 0,k=b?(0,l.v)(h,f):c.t0,w=b&&g?function(e){if(Array.isArray(e))return(0,p.lZ)(e);return(0,p.v6)(void 0,e)}(g):void 0,x=b?(0,i.r)(k,w)??{}:c.t0;"undefined"!=typeof document&&(b?Array.isArray(m)?x.ref=(0,s.U)([x.ref,(0,a.v)(n),...m]):x.ref=(0,s.a)(x.ref,(0,a.v)(n),m):(0,s.a)(null,null));if(!b)return c.t0;void 0!==v&&(x.className=(0,p.VN)(x.className,v));void 0!==y&&(x.style=(0,i.r)(x.style,y));return x}(t,n,h);if(!1===n.enabled)return null;return function(e,t,n,s){if(t){if("function"==typeof t)return t(n,s);const e=(0,p.v6)(n,t.props);return e.ref=n.ref,o.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,o.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,o.createElement)("img",{alt:"",...t,key:t.key});return o.createElement(e,t)}(e,n);throw new Error((0,r.A)(8))}(e,h,g,n.state??c.t0)}const m=Symbol.for("react.lazy")},69522(e,t,n){"use strict";n.d(t,{$:()=>a});var r=n(51609),o=n(12002),s=n(94541);function a(e,t=!1,n=!1,a=!1){const[i,c]=r.useState(e&&t?"idle":void 0),[l,u]=r.useState(e&&!a);return e&&!l&&(u(!0),c("starting")),e||!l||"ending"===i||n||c("ending"),e||l||"ending"!==i||c(void 0),(0,o.g)(()=>{if(!e&&l&&"ending"!==i&&n){const e=s.KP.request(()=>{c("ending")});return()=>{s.KP.cancel(e)}}},[e,l,i,n]),(0,o.g)(()=>{if(!e||t)return;const n=s.KP.request(()=>{c(void 0)});return()=>{s.KP.cancel(n)}},[t,e]),(0,o.g)(()=>{if(!e||!t)return;e&&l&&"idle"!==i&&c("starting");const n=s.KP.request(()=>{c("idle")});return()=>{s.KP.cancel(n)}},[t,e,l,i]),{mounted:l,setMounted:u,transitionStatus:i}}},67720(e,t,n){"use strict";n.d(t,{PT:()=>m,VN:()=>g,lZ:()=>a,v6:()=>s});var r=n(70071);const o={};function s(e,t,n,r,o){if(!(n||r||o||e))return i(t);let s=i(e);return t&&(s=c(s,t)),n&&(s=c(s,n)),r&&(s=c(s,r)),o&&(s=c(s,o)),s}function a(e){if(0===e.length)return o;if(1===e.length)return i(e[0]);let t=i(e[0]);for(let n=1;n<e.length;n+=1)t=c(t,e[n]);return t}function i(e){return u(e)?{...d(e,o)}:function(e){const t={...e};for(const e in t){const n=t[e];l(e,n)&&(t[e]=h(n))}return t}(e)}function c(e,t){return u(t)?d(t,e):function(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":e[n]=(0,r.r)(e.style,o);break;case"className":e[n]=g(e.className,o);break;default:l(n,o)?e[n]=p(e[n],o):e[n]=o}}return e}(e,t)}function l(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function u(e){return"function"==typeof e}function d(e,t){return u(e)?e(t):e??o}function p(e,t){return t?e?(...n)=>{const r=n[0];if(f(r)){const o=r;m(o);const s=t(...n);return o.baseUIHandlerPrevented||e?.(...n),s}const o=t(...n);return e?.(...n),o}:h(t):e}function h(e){return e?(...t)=>{const n=t[0];return f(n)&&m(n),e(...t)}:e}function m(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g(e,t){return t?e?t+" "+e:t:e}function f(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},59801(e,t,n){"use strict";n.d(t,{o:()=>p});var r=n(51609),o=n(1306),s=n(25258),a=n(49624),i=n(83244),c=n(15688),l=n(95400),u=n(10305),d=n(31223);const p=r.forwardRef(function(e,t){const{render:n,className:r,style:p,...h}=e,m=(0,o.g)(),{side:g,align:f}=(0,s.s)(),b=m.useState("open"),v=m.useState("instantType"),y=m.useState("transitionStatus"),k=m.useState("popupProps"),w=m.useState("floatingRootContext"),x=m.useState("disabled"),_=m.useState("closeDelay");(0,i.v)({open:b,ref:m.context.popupRef,onComplete(){b&&m.context.onOpenChangeComplete?.(!0)}}),(0,u.a)(w,{enabled:!x,closeDelay:_});const j=m.useStateSetter("popupElement"),C={open:b,side:g,align:f,instant:v,transitionStatus:y};return(0,c.o)("div",e,{state:C,ref:[t,m.context.popupRef,j],props:[d.Ls,k,(0,l.d)(y),h],stateAttributesMapping:a.LM})})},68817(e,t,n){"use strict";n.d(t,{K:()=>c});var r=n(51609),o=n(1306),s=n(70962),a=n(28975),i=n(10790);const c=r.forwardRef(function(e,t){const{keepMounted:n=!1,...r}=e;return(0,o.g)().useState("mounted")||n?(0,i.jsx)(s.$.Provider,{value:n,children:(0,i.jsx)(a.F,{ref:t,...r})}):null})},70962(e,t,n){"use strict";n.d(t,{$:()=>s,a:()=>a});var r=n(53169),o=n(51609);const s=o.createContext(void 0);function a(){const e=o.useContext(s);if(void 0===e)throw new Error((0,r.A)(70));return e}},10217(e,t,n){"use strict";n.d(t,{o:()=>d});var r=n(51609),o=n(1306),s=n(25258),a=n(99237),i=n(70962),c=n(71031),l=n(5924),u=n(10790);const d=r.forwardRef(function(e,t){const{render:n,className:d,anchor:p,positionMethod:h="absolute",side:m="top",align:g="center",sideOffset:f=0,alignOffset:b=0,collisionBoundary:v="clipping-ancestors",collisionPadding:y=5,arrowPadding:k=5,sticky:w=!1,disableAnchorTracking:x=!1,collisionAvoidance:_=c.Pe,style:j,...C}=e,A=(0,o.g)(),S=(0,i.a)(),E=A.useState("open"),T=A.useState("mounted"),N=A.useState("trackCursorAxis"),P=A.useState("disableHoverablePopup"),B=A.useState("floatingRootContext"),I=A.useState("instantType"),M=A.useState("transitionStatus"),R=A.useState("adaptiveOrigin"),L=(0,a.s)({anchor:p,positionMethod:h,floatingRootContext:B,mounted:T,side:m,sideOffset:f,align:g,alignOffset:b,collisionBoundary:v,collisionPadding:y,sticky:w,arrowPadding:k,disableAnchorTracking:x,keepMounted:S,collisionAvoidance:_,adaptiveOrigin:R}),D=r.useMemo(()=>({open:E,side:L.side,align:L.align,anchorHidden:L.anchorHidden,instant:"none"!==N?"tracking-cursor":I}),[E,L.side,L.align,L.anchorHidden,N,I]),F=(0,l.i)(e,D,{styles:L.positionerStyles,transitionStatus:M,props:C,refs:[t,A.useStateSetter("positionerElement")],hidden:!T,inert:!E||"both"===N||P});return(0,u.jsx)(s.v.Provider,{value:L,children:F})})},25258(e,t,n){"use strict";n.d(t,{s:()=>a,v:()=>s});var r=n(53169),o=n(51609);const s=o.createContext(void 0);function a(){const e=o.useContext(s);if(void 0===e)throw new Error((0,r.A)(71));return e}},33246(e,t,n){"use strict";n.d(t,{n:()=>s});var r=n(51609);const o=r.createContext(void 0);function s(){return r.useContext(o)}},94681(e,t,n){"use strict";n.d(t,{s:()=>f});var r=n(51609),o=n(19403),s=n(12570),a=n(12002),i=n(1306),c=n(47018),l=n(17272),u=n(15351),d=n(31223),p=n(67720),h=n(16575),m=n(64789),g=n(10790);const f=(0,o.G1)(function(e){const{disabled:t=!1,defaultOpen:n=!1,open:o,disableHoverablePopup:s=!1,trackCursorAxis:c="none",actionsRef:l,onOpenChange:p,onOpenChangeComplete:f,handle:v,triggerId:y,defaultTriggerId:k=null,children:w}=e,x=(0,d.xp)((e,t)=>new h.h({open:n,openProp:o,activeTriggerId:k,triggerIdProp:y},e,t));x.useControlledProp("openProp",o),x.useControlledProp("triggerIdProp",y),x.useContextCallback("onOpenChange",p),x.useContextCallback("onOpenChangeComplete",f);const _=x.useState("open"),j=!t&&_,C=x.useState("activeTriggerId"),A=x.useState("mounted"),S=x.useState("payload");x.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:s,disabled:t}),(0,d.tr)(x,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:E,transitionStatus:T}=(0,d.l$)(j,x),N=x.useState("isInstantPhase"),P=x.useState("instantType"),B=x.useState("lastOpenChangeReason"),I=r.useRef(null);(0,a.g)(()=>{_&&t&&x.setOpen(!1,(0,u.d)(m.r9))},[_,t,x]),(0,a.g)(()=>{"ending"===T&&B===m.dv||"ending"!==T&&N?("delay"!==P&&(I.current=P),x.set("instantType","delay")):null!==I.current&&(x.set("instantType",I.current),I.current=null)},[T,N,B,P,x]),(0,a.g)(()=>{j&&null==C&&x.set("payload",void 0)},[x,C,j]),r.useImperativeHandle(l,()=>({unmount:E,close:()=>x.setOpen(!1,(0,u.d)(m.zJ))}),[E,x]);const M=j||A||!t&&"none"!==c;return(0,g.jsxs)(i.B.Provider,{value:x,children:[v&&(0,g.jsx)(d.Ae,{handle:v,store:x}),M&&(0,g.jsx)(b,{store:x,disabled:t,trackCursorAxis:c}),"function"==typeof w?w({payload:S}):w]})});function b({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),a=(0,l.s)(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=(0,c.j)(o,{enabled:!t&&"none"!==n,axis:"none"===n?void 0:n}),u=r.useMemo(()=>(0,p.v6)(i.reference,a.reference),[i.reference,a.reference]);return(0,d.i6)(e,{activeTriggerProps:u,inactiveTriggerProps:u,popupProps:a.floating??s.t0}),null}},1306(e,t,n){"use strict";n.d(t,{B:()=>s,g:()=>a});var r=n(53169),o=n(51609);const s=o.createContext(void 0);function a(e){const t=o.useContext(s);if(void 0===t&&!e)throw new Error((0,r.A)(72));return t}},16575(e,t,n){"use strict";n.d(t,{h:()=>d});var r=n(51609),o=n(25489),s=n(15351),a=n(64789),i=n(31223),c=n(72975),l=n(86404);const u={...l.o,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class d extends o.H{constructor(e,t,n){const r=new c.Z;super(p(e,r,t,n),h(r),u)}setOpen=(e,t)=>{(0,i.DU)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,s.d)(a.Ui,e))}}function p(e,t,n,r=!1){return{...(0,l.r)(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function h(e){return{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}},89933(e,t,n){"use strict";n.d(t,{k:()=>N});var r=n(53169),o=n(51609),s=n(81289),a=n(19403),i=n(63405),c=n(87946),l=n(1306),u=n(49624),d=n(15688),p=n(31223),h=n(15965),m=n(88659),g=n(33246),f=n(7406),b=n(755),v=n(27484),y=n(53734),k=n(90865),w=n(26559),x=n(15351),_=n(64789),j=n(2527),C=n(98414),A=n(93918),S=n(22794);const E="data-base-ui-tooltip-trigger";function T(e){if("composedPath"in e){const t=e.composedPath();for(let e=0;e<t.length;e+=1){const n=t[e];if((0,s.vq)(n))return n}}const t=e.target;return(0,s.vq)(t)?t:null}const N=(0,a.nk)(function(e,t){const{render:n,className:a,style:N,handle:P,payload:B,disabled:I,delay:M,closeOnClick:R=!0,closeDelay:L,id:D,...F}=e,O=(0,l.g)(!0),z=(0,h.f)(P)??O;if(!z)throw new Error((0,r.A)(82));const U=(0,m.e)(D),H=z.useState("isTriggerActive",U),$=z.useState("isOpenedByTrigger",U),V=z.useState("floatingRootContext"),q=o.useRef(null),G=L??0,{registerTrigger:W,isMountedByThisTrigger:Z}=(0,p.L_)(U,q,z,{payload:B,closeOnClick:R,closeDelay:G}),J=(0,g.n)(),{activeIdRef:K,delayRef:Y,isInstantPhase:Q,hasProvider:X}=(0,f.c)(V,{open:$}),ee=(0,j.uu)(V);z.useSyncedValue("isInstantPhase",Q);const te=z.useState("disabled"),ne=I??te,re=(0,c.u)(ne),oe=z.useState("trackCursorAxis"),se=z.useState("disableHoverablePopup"),ae=o.useRef(!1),ie=(0,i.Z)(),ce=o.useRef(void 0);function le(){return X&&null!=K.current?0:M??J??S.r}function ue(e){const t=q.current;if(!t||!e)return!1;const n=function(e){let t=e;for(;t;){const e=t.closest(`[${E}]`);if(e)return e;const n=t.getRootNode();t="host"in n&&(0,s.vq)(n.host)?n.host:null}return null}(e);return null!==n&&n!==t&&(0,k.gR)(t,n)}const de=(0,v.j)(V,{enabled:!ne,mouseOnly:!0,move:!1,handleClose:se||"both"===oe?null:(0,y.i)(),restMs:le,delay:()=>null==L&&X?{close:(0,C.uf)(Y.current,"close")}:{close:G},triggerElementRef:q,isActiveTrigger:H,isClosing:()=>"ending"===z.select("transitionStatus"),shouldOpen:()=>!ae.current}),pe=(0,b.i)(V,{enabled:!ne}).reference,he=e=>{const t=ae.current,n=T(e),r=function(e){const t=ue(e);return ae.current=t,t&&(ee.openChangeTimeout.clear(),ee.restTimeout.clear(),ee.restTimeoutPending=!1,ie.clear()),t}(n),o=q.current,s=o&&n&&(0,k.gR)(o,n);if(r&&z.select("open")&&z.select("lastOpenChangeReason")===_.N7)z.setOpen(!1,(0,x.d)(_.N7,e));else if(t&&!r&&s&&!re.current&&!z.select("open")&&o&&(0,w.Go)(ce.current)){const t=()=>{ae.current||re.current||z.select("open")||z.setOpen(!0,(0,x.d)(_.N7,e,o))},n=le();0===n?(ie.clear(),t()):ie.start(n,t)}},me=z.useState("triggerProps",Z),ge=Z||"none"!==oe,fe={open:$};return(0,d.o)("button",e,{state:fe,ref:[t,W,q],props:[de,pe,ge?me:void 0,{onMouseOver(e){he(e.nativeEvent)},onFocus(e){ue(T(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){ae.current=!1,ie.clear(),ce.current=void 0},onPointerEnter(e){ce.current=e.pointerType},onPointerDown(e){ce.current=e.pointerType,z.set("closeOnClick",R),R&&!z.select("open")&&z.cancelPendingOpen(e.nativeEvent)},onClick(e){R&&!z.select("open")&&z.cancelPendingOpen(e.nativeEvent)},id:U,[A.d]:ne?"":void 0,[E]:ne?void 0:""},F],stateAttributesMapping:u.qV})})},93918(e,t,n){"use strict";n.d(t,{d:()=>r});n(37571).L;const r="data-trigger-disabled"},22794(e,t,n){"use strict";n.d(t,{r:()=>r});const r=600},23280(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(15688);function o(e){return(0,r.o)(e.defaultTagName??"div",e,e)}},15849(e,t,n){"use strict";n.d(t,{$h:()=>s,ho:()=>o,ii:()=>a});var r=n(14684);const o="data-open",s="data-closed",a=(r.e,r.V,"data-anchor-hidden")},23371(e,t,n){"use strict";n.d(t,{NL:()=>a,QJ:()=>r,Td:()=>i,cn:()=>s,px:()=>o});const r="--available-width",o="--available-height",s="--anchor-width",a="--anchor-height",i="--transform-origin"},37571(e,t,n){"use strict";n.d(t,{L:()=>r,V:()=>o});const r="data-popup-open",o="data-pressed"},28975(e,t,n){"use strict";n.d(t,{F:()=>i});var r=n(51609),o=n(75795),s=n(11706),a=n(10790);const i=r.forwardRef(function(e,t){const{children:n,container:i,className:c,render:l,style:u,...d}=e,{node:p,subtree:h}=(0,s.CK)({container:i,ref:t,componentProps:e,elementProps:d});return h||p?(0,a.jsxs)(r.Fragment,{children:[h,p&&o.createPortal(n,p)]}):null})},52046(e,t,n){"use strict";n.d(t,{j:()=>r});const r={sideX:"left",sideY:"top"}},2095(e,t,n){"use strict";n.d(t,{B:()=>o});var r=n(81289);function o(e,t,{detail:n=0}={}){e.dispatchEvent(new((0,r.zk)(e).PointerEvent)("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}},439(e,t,n){"use strict";n.d(t,{j:()=>r});const r={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,s=0===t&&0===n&&0===r&&0===o,a=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:a.top-n>=0||a.right-t>=0||a.bottom-n>=0||a.left-t>=0||s}}}}},49624(e,t,n){"use strict";n.d(t,{GW:()=>d,LM:()=>p,qV:()=>u});var r=n(74466),o=n(15849),s=n(37571);const a={[s.L]:""},i=(s.L,s.V,{[o.ho]:""}),c={[o.$h]:""},l={[o.ii]:""},u={open:e=>e?a:null},d={open:e=>e?i:c,anchorHidden:e=>e?l:null},p={...d,...r.G}},31223(e,t,n){"use strict";n.d(t,{Ae:()=>y,DU:()=>w,L_:()=>x,Ls:()=>b,i6:()=>C,l$:()=>j,tr:()=>_,xp:()=>v});var r=n(51609),o=n(75795),s=n(12570),a=n(38583),i=n(19288),c=n(12002),l=n(31749),u=n(17300),d=n(88536),p=n(50306),h=n(69522),m=n(83244),g=n(15351),f=n(64789);const b={tabIndex:-1,[u.Ed]:""};function v(e,t=!1){const n=(0,a.B)(),r=null!=(0,d.R1)(),o=(0,l.j)(()=>e(n,r)).current;return(0,p.D)({popupStore:o,treatPopupAsFloatingElement:t,floatingRootContext:o.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:o.setOpen}),o}function y({handle:e,store:t}){return(0,c.g)(()=>e.attachStore(t),[e,t]),null}function k(e){const t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function w(e,t,n,r={}){const s=n.reason,a=s===f.N7,i=t&&s===f.F4,c=!t&&(s===f.Ui||s===f.jv),l=function(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);const u=()=>{const o=function(e,t,n,r=!1){let o=e.preventUnmountingOnClose;t?o=!1:r&&(o=!0);const s=n?.id??null;let a=e.activeTriggerId,i=e.activeTriggerElement;return(s||t)&&(a=s,i=n??null),{open:t,preventUnmountingOnClose:o,activeTriggerId:a,activeTriggerElement:i}}(e.state,t,n.trigger,l()),s={...r.extraState,...o};i?s.instantType="focus":c?s.instantType="dismiss":a&&(s.instantType=void 0),e.update(s)};a?o.flushSync(u):u()}function x(e,t,n,o){const s=n.useState("isMountedByTrigger",e),a=function(e,t){const n=r.useRef(null);return(0,i.K)(r=>{const o=n.current;if(null!==o){if(o.element===r&&o.store===t&&o.id===e)return;n.current=null;const s=o.store;s.context.triggerElements.getById(o.id)===o.element&&(s.context.triggerElements.delete(o.id),k(s))}null!==r&&void 0!==e&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),k(t))})}(e,n),l=(0,i.K)(t=>{const r=n.select("open"),s=n.select("activeTriggerId");if(s===e){const e={activeTriggerElement:t,...r?o:null};return void n.update(e)}if(null==s&&r){const r={activeTriggerId:e??null,activeTriggerElement:t,...o};n.update(r)}}),u=(0,i.K)(e=>{a(e),e&&l(e)});return(0,c.g)(()=>(u(t.current),()=>u(null)),[u,t,n,e]),(0,c.g)(()=>{if(s){const e={activeTriggerElement:t.current,...o};n.update(e)}},[s,n,t,...Object.values(o)]),{registerTrigger:u,isMountedByThisTrigger:s}}function _(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,o=r.useRef(null),s=e.useState("open"),a=e.useState("triggerCount"),i=e.useState("activeTriggerId"),l=e.useState("activeTriggerElement");(0,c.g)(()=>{if(!s)return o.current=null,void(0!==e.state.triggerCount&&e.set("triggerCount",0));const t=e.context.triggerElements.size,r={};e.state.triggerCount!==t&&(r.triggerCount=t);const a=e.select("activeTriggerId");let i=null;if(a){const t=e.context.triggerElements.getById(a);if(t)o.current=a,t!==e.state.activeTriggerElement&&(r.activeTriggerElement=t);else{for(const[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){r.activeTriggerId=t,r.activeTriggerElement=n,o.current=t;break}void 0===r.activeTriggerId&&(o.current===a?i=a:o.current=null)}}else o.current=null;if(!i&&!a&&1===t){const t=e.context.triggerElements.entries().next();if(!t.done){const[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n,o.current=e}}void 0===r.triggerCount&&void 0===r.activeTriggerId&&void 0===r.activeTriggerElement||e.update(r),i&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===i&&!e.context.triggerElements.getById(i)){const t=(0,g.d)(f.dv);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[s,e,a,i,l,n])}function j(e,t,n,r){const{mounted:o,setMounted:s,transitionStatus:a}=(0,h.$)(e,!1,!1,r),c=t.useState("preventUnmountingOnClose"),l=!e&&c;t.useSyncedValues({mounted:o,transitionStatus:a,preventUnmountingOnClose:l});const u=(0,i.K)(()=>{s(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return(0,m.v)({enabled:o&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||u()}}),{forceUnmount:u,transitionStatus:a}}function C(e,t){e.useSyncedValues(t),(0,c.g)(()=>()=>{e.update({activeTriggerProps:s.t0,inactiveTriggerProps:s.t0,popupProps:s.t0})},[e])}},72975(e,t,n){"use strict";n.d(t,{Z:()=>r});class r{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(const t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(const t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}},86404(e,t,n){"use strict";n.d(t,{o:()=>u,r:()=>s});var r=n(12570),o=n(33367);function s(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new o.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:r.t0,inactiveTriggerProps:r.t0,popupProps:r.t0}}const a=e=>e.triggerIdProp??e.activeTriggerId,i=e=>e.openProp??e.open,c=e=>(e.popupElement?.id??e.floatingId)||void 0;function l(e,t){return void 0!==t&&i(e)&&a(e)===t}const u={open:i,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:a,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:c,isTriggerActive:(e,t)=>void 0!==t&&a(e)===t,isOpenedByTrigger:(e,t)=>l(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&a(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>function(e,t){return!!l(e,t)||void 0!==t&&i(e)&&null==a(e)&&1===e.triggerCount}(e,t)?c(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}},15965(e,t,n){"use strict";n.d(t,{f:()=>a});var r=n(51609),o=n(22484),s=n(12570);function a(e){const t=r.useCallback(t=>void 0===e?s.tE:e.subscribeStore(t),[e]),n=r.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,o.useSyncExternalStore)(t,n,()=>e?.serverStore)}},51469(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>r})},37304(e,t,n){"use strict";function r(e){return null==e?e:"current"in e?e.current:e}n.d(t,{q:()=>r})},15015(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>r})},56200(e,t,n){"use strict";n.d(t,{S:()=>o});var r=n(51609);function o(e){const{focusableWhenDisabled:t,disabled:n,composite:o=!1,tabIndex:s=0,isNativeButton:a}=e,i=o&&!1!==t,c=o&&!1===t;return{props:r.useMemo(()=>{const e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=s,!a&&n&&(e.tabIndex=t?s:-1)),(a&&(t||i)||!a&&n)&&(e["aria-disabled"]=n),!a||t&&!c||(e.disabled=n),e},[o,n,t,i,c,a,s])}}},5924(e,t,n){"use strict";n.d(t,{i:()=>a});var r=n(49624),o=n(15688),s=n(95400);function a(e,t,{styles:n,transitionStatus:a,props:i,refs:c,hidden:l,inert:u=!1}){const d={...n};return u&&(d.pointerEvents="none"),(0,o.o)("div",e,{state:t,ref:c,props:[{role:"presentation",hidden:l,style:d},(0,s.d)(a),i],stateAttributesMapping:r.GW})}},60266(e,t,n){"use strict";function r(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}n.d(t,{v:()=>r})},93307(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(53169),o=n(51609),s=n(8970),a=n(28641),i=n(70071),c=n(12570),l=n(60266),u=n(73850),d=n(21044),p=n(45339);function h(e,t,n={}){let h=t.render;!1!==n.enabled&&(h=function(e){if(e?.$$typeof!==m)return e;const t=o.Children.toArray(e)[0];return o.isValidElement(t)?t:e}(h));const g=function(e,t,n){const{className:r,style:o}=e,{state:h=c.t0,ref:m,props:g,stateAttributesMapping:f,enabled:b=!0}=t,v=b?(0,u.S)(r,h):void 0,y=b?(0,d.m)(o,h):void 0,k=b?(0,l.v)(h,f):c.t0,w=b&&g?function(e){if(Array.isArray(e))return(0,p.lZ)(e);return(0,p.v6)(void 0,e)}(g):void 0,x=b?(0,i.r)(k,w)??{}:c.t0;"undefined"!=typeof document&&(b?Array.isArray(m)?x.ref=(0,s.U)([x.ref,(0,a.v)(n),...m]):x.ref=(0,s.a)(x.ref,(0,a.v)(n),m):(0,s.a)(null,null));if(!b)return c.t0;void 0!==v&&(x.className=(0,p.VN)(x.className,v));void 0!==y&&(x.style=(0,i.r)(x.style,y));return x}(t,n,h);if(!1===n.enabled)return null;return function(e,t,n,s){if(t){if("function"==typeof t)return t(n,s);const e=(0,p.v6)(n,t.props);return e.ref=n.ref,o.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,o.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,o.createElement)("img",{alt:"",...t,key:t.key});return o.createElement(e,t)}(e,n);throw new Error((0,r.A)(8))}(e,h,g,n.state??c.t0)}const m=Symbol.for("react.lazy")},45339(e,t,n){"use strict";n.d(t,{VN:()=>g,lZ:()=>a,v6:()=>s});var r=n(70071);const o={};function s(e,t,n,r,o){if(!(n||r||o||e))return i(t);let s=i(e);return t&&(s=c(s,t)),n&&(s=c(s,n)),r&&(s=c(s,r)),o&&(s=c(s,o)),s}function a(e){if(0===e.length)return o;if(1===e.length)return i(e[0]);let t=i(e[0]);for(let n=1;n<e.length;n+=1)t=c(t,e[n]);return t}function i(e){return u(e)?{...d(e,o)}:function(e){const t={...e};for(const e in t){const n=t[e];l(e,n)&&(t[e]=h(n))}return t}(e)}function c(e,t){return u(t)?d(t,e):function(e,t){if(!t)return e;for(const n in t){const o=t[n];switch(n){case"style":e[n]=(0,r.r)(e.style,o);break;case"className":e[n]=g(e.className,o);break;default:l(n,o)?e[n]=p(e[n],o):e[n]=o}}return e}(e,t)}function l(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function u(e){return"function"==typeof e}function d(e,t){return u(e)?e(t):e??o}function p(e,t){return t?e?(...n)=>{const r=n[0];if(f(r)){const o=r;m(o);const s=t(...n);return o.baseUIHandlerPrevented||e?.(...n),s}const o=t(...n);return e?.(...n),o}:h(t):e}function h(e){return e?(...t)=>{const n=t[0];return f(n)&&m(n),e(...t)}:e}function m(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g(e,t){return t?e?t+" "+e:t:e}function f(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},899(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(93307);function o(e){return(0,r.o)(e.defaultTagName??"div",e,e)}},73850(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>r})},21044(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>r})},7584(e,t,n){"use strict";function r(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}n.d(t,{q:()=>r})},12570(e,t,n){"use strict";function r(){}n.d(t,{Ml:()=>o,t0:()=>s,tE:()=>r});const o=Object.freeze([]),s=Object.freeze({})},19403(e,t,n){"use strict";n.d(t,{G1:()=>l,iE:()=>i,kz:()=>c,nk:()=>u});var r=n(51609),o=n(31749);const s=[];let a;function i(){return a}function c(e){s.push(e)}function l(e){const t=(t,n)=>{const r=(0,o.j)(d).current;let i;try{a=r;for(const e of s)e.before(r);i=e(t,n);for(const e of s)e.after(r);r.didInitialize=!0}finally{a=void 0}return i};return t.displayName=e.displayName||e.name,t}function u(e){return r.forwardRef(l(e))}function d(){return{didInitialize:!1}}},53169(e,t,n){"use strict";n.d(t,{A:()=>s});var r,o;const s=(r="https://base-ui.com/production-error",o="Base UI",function(e,...t){const n=new URL(r);return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`${o} error #${e}; visit ${n} for the full message.`})},28641(e,t,n){"use strict";n.d(t,{v:()=>s});var r=n(51609),o=n(83100);function s(e){if(!r.isValidElement(e))return null;const t=e,n=t.props;return((0,o._)(19)?n?.ref:t.ref)??null}},31238(e,t,n){"use strict";function r(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}n.d(t,{g:()=>r})},70071(e,t,n){"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>r})},12240(e,t,n){"use strict";function r(e){return e?.ownerDocument||document}n.d(t,{R:()=>r})},55087(e,t,n){"use strict";n.d(t,{Fp:()=>o});var r=n(84778);const o="undefined"!=typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none");!o&&r.ST.includes("firefox"),!o&&r.ST.includes("chrom")},78858(e,t,n){"use strict";n.d(t,{I:()=>o});var r=n(84778);const o=/jsdom|happydom/.test(r.ST)},94563(e,t,n){"use strict";n.d(t,{Md:()=>i,yA:()=>a});var r=n(84778);const o=/^i(os$|p)/.test(r.JG)||"macintel"===r.JG&&r.RT>1,s="android",a=r.JG===s||r.ST.includes(s),i=!o&&r.JG.startsWith("mac");r.JG.startsWith("win"),!a&&/^(linux|chrome os)/.test(r.JG)},84778(e,t,n){"use strict";n.d(t,{JG:()=>i,RT:()=>s,ST:()=>a});const{userAgent:r,platform:o,maxTouchPoints:s}="undefined"==typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},a=r.toLowerCase(),i=o.toLowerCase()},83100(e,t,n){"use strict";n.d(t,{_:()=>s});var r=n(51609);const o=parseInt(r.version,10);function s(e){return o>=e}},96233(e,t,n){"use strict";var r;n.d(t,{X:()=>s});var o=n(51609);const s={...r||(r=n.t(o,2))}},90865(e,t,n){"use strict";n.d(t,{EW:()=>a,RS:()=>o,gR:()=>s});var r=n(81289);function o(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function s(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function a(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}},25489(e,t,n){"use strict";n.d(t,{H:()=>l});var r=n(51609),o=n(73372),s=n(99017),a=n(19288),i=n(12002),c=n(12570);class l extends o.i{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){r.useDebugValue(e);const n=this;(0,i.g)(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){const n=this;(0,i.g)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){const t=this;const n=Object.values(e);(0,i.g)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){r.useDebugValue(e);const n=this,o=void 0!==t;(0,i.g)(()=>{o&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,o])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,o){return r.useDebugValue(e),(0,s.P)(this,this.selectors[e],t,n,o)}useContextCallback(e,t){r.useDebugValue(e);const n=(0,a.K)(t??c.tE);this.context[e]=n}useStateSetter(e){const t=r.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n="function"==typeof e?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{const o=n(e);if(!Object.is(r,o)){const e=r;r=o,t(o,e,this)}})}}},73372(e,t,n){"use strict";n.d(t,{i:()=>o});var r=n(99017);class o{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;const t=this.updateTick;for(const n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(const t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){const e={...this.state};this.setState(e)}use(e,t,n,o){return(0,r.P)(this,e,t,n,o)}}},99017(e,t,n){"use strict";n.d(t,{P:()=>l});var r=n(51609),o=n(22484),s=n(32566),a=n(83100),i=n(19403);const c=(0,a._)(19)?function(e,t,n,s,a){const c=(0,i.iE)();if(!c)return function(e,t,n,s,a){const i=r.useCallback(()=>t(e.getSnapshot(),n,s,a),[e,t,n,s,a]);return(0,o.useSyncExternalStore)(e.subscribe,i,i)}(e,t,n,s,a);const l=c.syncIndex;let u;c.syncIndex+=1,c.didInitialize?(u=c.syncHooks[l],u.store===e&&u.selector===t&&Object.is(u.a1,n)&&Object.is(u.a2,s)&&Object.is(u.a3,a)||(u.store!==e&&(c.didChangeStore=!0),u.store=e,u.selector=t,u.a1=n,u.a2=s,u.a3=a,u.value=t(e.getSnapshot(),n,s,a))):(u={store:e,selector:t,a1:n,a2:s,a3:a,value:t(e.getSnapshot(),n,s,a)},c.syncHooks.push(u));return u.value}:function(e,t,n,r,o){return(0,s.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};function l(e,t,n,r,o){return c(e,t,n,r,o)}(0,i.kz)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,o)||(t=!0,r.value=o)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const t of e.syncHooks)n.add(t.store);const r=[];for(const e of n)r.push(e.subscribe(t));return()=>{for(const e of r)e()}}),(0,o.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},94541(e,t,n){"use strict";n.d(t,{KP:()=>c,NR:()=>l});var r=n(31749),o=n(31966);const s=null;globalThis.requestAnimationFrame;class a{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;const t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;return this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}}let i=new a;class c{static create(){return new c}static request(e){return i.request(e)}static cancel(e){return i.cancel(e)}currentId=s;request(e){this.cancel(),this.currentId=i.request(()=>{this.currentId=s,e()})}cancel=()=>{this.currentId!==s&&(i.cancel(this.currentId),this.currentId=s)};disposeEffect=()=>this.cancel}function l(){const e=(0,r.j)(c.create).current;return(0,o.y)(e.disposeEffect),e}},38583(e,t,n){"use strict";n.d(t,{B:()=>i});var r=n(51609),o=n(96233);let s=0;const a=o.X.useId;function i(e,t){if(void 0!==a){const n=a();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[n,o]=r.useState(e),a=e||n;return r.useEffect(()=>{null==n&&(s+=1,o(`${t}-${s}`))},[n,t]),a}(e,t)}},12002(e,t,n){"use strict";n.d(t,{g:()=>o});var r=n(51609);const o="undefined"!=typeof document?r.useLayoutEffect:()=>{}},8970(e,t,n){"use strict";n.d(t,{U:()=>s,a:()=>o});var r=n(31749);function o(e,t,n,o){const s=(0,r.j)(a).current;return function(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}(s,e,t,n,o)&&i(s,[e,t,n,o]),s.callback}function s(e){const t=(0,r.j)(a).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}(t,e)&&i(t,e),t.callback}function a(){return{callback:null,cleanup:null,refs:[]}}function i(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}},31966(e,t,n){"use strict";n.d(t,{y:()=>s});var r=n(51609),o=n(12570);function s(e){r.useEffect(e,o.Ml)}},31749(e,t,n){"use strict";n.d(t,{j:()=>s});var r=n(51609);const o={};function s(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}},19288(e,t,n){"use strict";n.d(t,{K:()=>i});var r=n(96233),o=n(31749);const s=r.X.useInsertionEffect,a=s&&s!==r.X.useLayoutEffect?s:e=>e();function i(e){const t=(0,o.j)(c).current;return t.next=e,a(t.effect),t.trampoline}function c(){const e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){0}},63405(e,t,n){"use strict";n.d(t,{E:()=>s,Z:()=>a});var r=n(31749),o=n(31966);class s{static create(){return new s}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function a(){const e=(0,r.j)(s.create).current;return(0,o.y)(e.disposeEffect),e}},87946(e,t,n){"use strict";n.d(t,{u:()=>s});var r=n(12002),o=n(31749);function s(e){const t=(0,o.j)(a,e).current;return t.next=e,(0,r.g)(t.effect),t}function a(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},62347(){"use strict";Symbol.for("constructDateFrom")},52630(e,t,n){"use strict";n.d(t,{B:()=>s});var r=n(88275),o=n(84415);class s extends o.q{static tz(e,...t){return t.length?new s(...t,e):new s(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,o]=this.tzComponents();return`${e} GMT${t}${n}${o} (${(0,r.K)(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new s(+this,e)}[Symbol.for("constructDateFrom")](e){return new s(+new Date(e),this.timeZone)}}},84415(e,t,n){"use strict";n.d(t,{q:()=>o});var r=n(51523);class o extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN((0,r.Y)(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),i(this),a(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new o(...t,e):new o(Date.now(),e)}withTimeZone(e){return new o(+this,e)}getTimezoneOffset(){const e=-(0,r.Y)(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),a(this),+this}[Symbol.for("constructDateFrom")](e){return new o(+new Date(e),this.timeZone)}}const s=/^(get|set)(?!UTC)/;function a(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-(0,r.Y)(e.timeZone,e)))}function i(e){const t=(0,r.Y)(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),o=new Date(+e);o.setUTCHours(o.getUTCHours()-1);const s=-new Date(+e).getTimezoneOffset(),a=s- -new Date(+o).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const c=s-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const l=new Date(+e);l.setUTCSeconds(0);const u=s>0?l.getSeconds():(l.getSeconds()-60)%60,d=Math.round(-60*(0,r.Y)(e.timeZone,e))%60;(d||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+u));const p=(0,r.Y)(e.timeZone,e),h=p>0?Math.floor(p):Math.ceil(p),m=-new Date(+e).getTimezoneOffset()-h-c;if(h!==n&&m){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const t=(0,r.Y)(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!s.test(e))return;const t=e.replace(s,"$1UTC");o.prototype[t]&&(e.startsWith("get")?o.prototype[e]=function(){return this.internal[t]()}:(o.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),i(e),+this},o.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),a(this),+this}))})},92349(e,t,n){"use strict";n.d(t,{q:()=>r.q,tz:()=>o.tz});n(62347),n(52630);var r=n(84415),o=n(3548)},3548(e,t,n){"use strict";n.d(t,{tz:()=>o});var r=n(52630);const o=e=>t=>r.B.tz(e,+new Date(t))},88275(e,t,n){"use strict";function r(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}n.d(t,{K:()=>r})},51523(e,t,n){"use strict";n.d(t,{Y:()=>s});const r={},o={};function s(e,t){try{const n=(r[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in o?o[n]:i(n,n.split(":"))}catch{if(e in o)return o[e];const t=e?.match(a);return t?i(e,t.slice(1)):NaN}}const a=/([+-]\d\d):?(\d\d)?/;function i(e,t){const n=+(t[0]||0),r=+(t[1]||0),s=+(t[2]||0)/60;return o[e]=60*n+r>0?60*n+r+s:60*n-r-s}},159(e,t,n){"use strict";n.d(t,{BN:()=>u,ER:()=>d,Ej:()=>p,UU:()=>i,cY:()=>l,rD:()=>a});var r=n(39175);function o(e,t,n){let{reference:o,floating:s}=e;const a=(0,r.TV)(t),i=(0,r.Dz)(t),c=(0,r.sq)(i),l=(0,r.C0)(t),u="y"===a,d=o.x+o.width/2-s.width/2,p=o.y+o.height/2-s.height/2,h=o[c]/2-s[c]/2;let m;switch(l){case"top":m={x:d,y:o.y-s.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-s.width,y:p};break;default:m={x:o.x,y:o.y}}const g=(0,r.Sg)(t);return g&&(m[i]+=h*("end"===g?1:-1)*(n&&u?-1:1)),m}async function s(e,t){var n;void 0===t&&(t={});const{x:o,y:s,platform:a,rects:i,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=(0,r._3)(t,e),g=(0,r.nI)(m),f=c[h?"floating"===p?"reference":"floating":p],b=(0,r.B1)(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(f)))||n?f:f.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),v="floating"===p?{x:o,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),k=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},w=(0,r.B1)(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:y,strategy:l}):v);return{top:(b.top-w.top+g.top)/k.y,bottom:(w.bottom-b.bottom+g.bottom)/k.y,left:(b.left-w.left+g.left)/k.x,right:(w.right-b.right+g.right)/k.x}}const a=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:c}=n,l=c.detectOverflow?c:{...c,detectOverflow:s},u=await(null==c.isRTL?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:h}=o(d,r,u),m=r,g=0;const f={};for(let n=0;n<i.length;n++){const s=i[n];if(!s)continue;const{name:b,fn:v}=s,{x:y,y:k,data:w,reset:x}=await v({x:p,y:h,initialPlacement:r,placement:m,strategy:a,middlewareData:f,rects:d,platform:l,elements:{reference:e,floating:t}});p=null!=y?y:p,h=null!=k?k:h,f[b]={...f[b],...w},x&&g<50&&(g++,"object"==typeof x&&(x.placement&&(m=x.placement),x.rects&&(d=!0===x.rects?await c.getElementRects({reference:e,floating:t,strategy:a}):x.rects),({x:p,y:h}=o(d,m,u))),n=-1)}return{x:p,y:h,placement:m,strategy:a,middlewareData:f}};const i=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:a,rects:i,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:f=!0,...b}=(0,r._3)(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const v=(0,r.C0)(s),y=(0,r.TV)(c),k=(0,r.C0)(c)===c,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=h||(k||!f?[(0,r.bV)(c)]:(0,r.WJ)(c)),_="none"!==g;!h&&_&&x.push(...(0,r.lP)(c,f,g,w));const j=[c,...x],C=await l.detectOverflow(t,b),A=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(d&&A.push(C[v]),p){const e=(0,r.w7)(s,i,w);A.push(C[e[0]],C[e[1]])}if(S=[...S,{placement:s,overflows:A}],!A.every(e=>e<=0)){var E,T;const e=((null==(E=a.flip)?void 0:E.index)||0)+1,t=j[e];if(t){if(!("alignment"===p&&y!==(0,r.TV)(t))||S.every(e=>(0,r.TV)(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:S},reset:{placement:t}}}let n=null==(T=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(m){case"bestFit":{var N;const e=null==(N=S.filter(e=>{if(_){const t=(0,r.TV)(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}};const c=new Set(["left","top"]);const l=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:s,y:a,placement:i,middlewareData:l}=t,u=await async function(e,t){const{placement:n,platform:o,elements:s}=e,a=await(null==o.isRTL?void 0:o.isRTL(s.floating)),i=(0,r.C0)(n),l=(0,r.Sg)(n),u="y"===(0,r.TV)(n),d=c.has(i)?-1:1,p=a&&u?-1:1,h=(0,r._3)(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&"number"==typeof f&&(g="end"===l?-1*f:f),u?{x:g*p,y:m*d}:{x:m*d,y:g*p}}(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:s+u.x,y:a+u.y,data:{...u,placement:i}}}}},u=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s,platform:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=(0,r._3)(e,t),d={x:n,y:o},p=await a.detectOverflow(t,u),h=(0,r.TV)(s),m=(0,r.PG)(h);let g=d[m],f=d[h];const b=(e,t)=>(0,r.qE)(t+p["y"===e?"top":"left"],t,t-p["y"===e?"bottom":"right"]);i&&(g=b(m,g)),c&&(f=b(h,f));const v=l.fn({...t,[m]:g,[h]:f});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[m]:i,[h]:c}}}}}},d=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,o;const{x:s,y:a,placement:i,rects:l,middlewareData:u}=t,{offset:d=0,mainAxis:p=!0,crossAxis:h=!0}=(0,r._3)(e,t),m={x:s,y:a},g=(0,r.TV)(i),f=(0,r.PG)(g);let b=m[f],v=m[g];const y=(0,r._3)(d,t),k="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(n=y.mainAxis)?n:0,crossAxis:null!=(o=y.crossAxis)?o:0};if(p){const e="y"===f?"height":"width",t=l.reference[f]-l.floating[e]+k.mainAxis,n=l.reference[f]+l.reference[e]-k.mainAxis;b<t?b=t:b>n&&(b=n)}if(h){var w,x;const e="y"===f?"width":"height",t=c.has((0,r.C0)(i)),n=l.reference[g]-l.floating[e]+(t&&(null==(w=u.offset)?void 0:w[g])||0)+(t?0:k.crossAxis),o=l.reference[g]+l.reference[e]+(t?0:(null==(x=u.offset)?void 0:x[g])||0)-(t?k.crossAxis:0);v<n?v=n:v>o&&(v=o)}return{[f]:b,[g]:v}}}},p=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:s,elements:a}=t,{apply:i=()=>{},...c}=(0,r._3)(e,t),l=await s.detectOverflow(t,c),u=(0,r.C0)(n),d=(0,r.Sg)(n),p="y"===(0,r.TV)(n),{width:h,height:m}=o.floating;let g,f;"top"===u||"bottom"===u?(g=u,f=d===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(f=u,g="end"===d?"top":"bottom");const b=m-l.top-l.bottom,v=h-l.left-l.right,y=(0,r.jk)(m-l[g],b),k=(0,r.jk)(h-l[f],v),w=t.middlewareData.shift,x=!w;let _=y,j=k;null!=w&&w.enabled.x&&(j=v),null!=w&&w.enabled.y&&(_=b),x&&!d&&(p?j=h-2*(0,r.T9)(l.left,l.right):_=m-2*(0,r.T9)(l.top,l.bottom)),await i({...t,availableWidth:j,availableHeight:_});const C=await s.getDimensions(a.floating);return h!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}}},25569(e,t,n){"use strict";n.d(t,{BN:()=>_,ER:()=>A,Ej:()=>C,UU:()=>j,cY:()=>x,ll:()=>w,rD:()=>S});var r=n(159),o=n(39175),s=n(81289);function a(e){const t=(0,s.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=(0,s.sb)(e),i=a?e.offsetWidth:n,c=a?e.offsetHeight:r,l=(0,o.LI)(n)!==i||(0,o.LI)(r)!==c;return l&&(n=i,r=c),{width:n,height:r,$:l}}function i(e){return(0,s.vq)(e)?e:e.contextElement}function c(e){const t=i(e);if(!(0,s.sb)(t))return(0,o.Jx)(1);const n=t.getBoundingClientRect(),{width:r,height:c,$:l}=a(t);let u=(l?(0,o.LI)(n.width):n.width)/r,d=(l?(0,o.LI)(n.height):n.height)/c;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}const l=(0,o.Jx)(0);function u(e){const t=(0,s.zk)(e);return(0,s.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:l}function d(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),l=i(e);let d=(0,o.Jx)(1);t&&(r?(0,s.vq)(r)&&(d=c(r)):d=c(e));const p=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===(0,s.zk)(e)}(l,n,r)?u(l):(0,o.Jx)(0);let h=(a.left+p.x)/d.x,m=(a.top+p.y)/d.y,g=a.width/d.x,f=a.height/d.y;if(l&&r){const e=(0,s.zk)(l),t=(0,s.vq)(r)?(0,s.zk)(r):r;let n=e,o=(0,s._m)(n);for(;o&&t!==n;){const e=c(o),t=o.getBoundingClientRect(),r=(0,s.L9)(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;h*=e.x,m*=e.y,g*=e.x,f*=e.y,h+=a,m+=i,n=(0,s.zk)(o),o=(0,s._m)(n)}}return(0,o.B1)({width:g,height:f,x:h,y:m})}function p(e,t){const n=(0,s.CP)(e).scrollLeft;return t?t.left+n:d((0,s.ep)(e)).left+n}function h(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-p(e,n),y:n.top+t.scrollTop}}function m(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=(0,s.zk)(e),a=(0,s.ep)(e),i=o.visualViewport;let c=a.clientWidth,l=a.clientHeight,u=0,d=0;if(i){const e=!(0,s.Tc)()||"fixed"===t;r?e||(u=-i.offsetLeft,d=-i.offsetTop):(c=i.width,l=i.height,e&&(u=i.offsetLeft,d=i.offsetTop))}if(p(a)<=0){const e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(a.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(a).scrollbarGutter?o/2:o;s<=25&&(c-=s)}return{width:c,height:l,x:u,y:d}}(e,n,t);else if("document"===t)r=function(e){const t=(0,s.CP)(e),n=e.ownerDocument.body,r=(0,o.T9)(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=(0,o.T9)(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+p(e);const c=-t.scrollTop;return"rtl"===(0,s.L9)(n).direction&&(i+=(0,o.T9)(e.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:c}}((0,s.ep)(e));else if((0,s.vq)(t))r=function(e,t){const n=d(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=c(e);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:r*s.y}}(t,n);else{const n=u(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,o.B1)(r)}function g(e,t,n){const r=(0,s.sb)(t),a=(0,s.ep)(t),i="fixed"===n,c=d(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const u=(0,o.Jx)(0);if((r||!i)&&(("body"!==(0,s.mq)(t)||(0,s.ZU)(a))&&(l=(0,s.CP)(t)),r)){const e=d(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&a&&(u.x=p(a));const m=!a||r||i?(0,o.Jx)(0):h(a,l);return{x:c.left+l.scrollLeft-u.x-m.x,y:c.top+l.scrollTop-u.y-m.y,width:c.width,height:c.height}}function f(e){return"static"===(0,s.L9)(e).position}function b(e,t){if(!(0,s.sb)(e)||"fixed"===(0,s.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,s.ep)(e)===n&&(n=n.ownerDocument.body),n}function v(e,t){const n=(0,s.zk)(e);if((0,s.Tf)(e))return n;if(!(0,s.sb)(e)){let t=(0,s.$4)(e);for(;t&&!(0,s.eu)(t);){if((0,s.vq)(t)&&!f(t))return t;t=(0,s.$4)(t)}return n}let r=b(e,t);for(;r&&(0,s.Lv)(r)&&f(r);)r=b(r,t);return r&&(0,s.eu)(r)&&f(r)&&!(0,s.sQ)(r)?n:r||(0,s.gJ)(e)||n}const y={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i="fixed"===a,l=(0,s.ep)(r),u=!!t&&(0,s.Tf)(t.floating);if(r===l||u&&i)return n;let p={scrollLeft:0,scrollTop:0},m=(0,o.Jx)(1);const g=(0,o.Jx)(0),f=(0,s.sb)(r);if((f||!i)&&(("body"!==(0,s.mq)(r)||(0,s.ZU)(l))&&(p=(0,s.CP)(r)),f)){const e=d(r);m=c(r),g.x=e.x+r.clientLeft,g.y=e.y+r.clientTop}const b=!l||f||i?(0,o.Jx)(0):h(l,p);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-p.scrollLeft*m.x+g.x+b.x,y:n.y*m.y-p.scrollTop*m.y+g.y+b.y}},getDocumentElement:s.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[..."clippingAncestors"===n?(0,s.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,s.v9)(e,[],!1).filter(e=>(0,s.vq)(e)&&"body"!==(0,s.mq)(e)),o=null;const a="fixed"===(0,s.L9)(e).position;let i=a?(0,s.$4)(e):e;for(;(0,s.vq)(i)&&!(0,s.eu)(i);){const e=(0,s.L9)(i),t=(0,s.sQ)(i),n=o?o.position:a?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==i),i=(0,s.$4)(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],c=m(t,i[0],a);let l=c.top,u=c.right,d=c.bottom,p=c.left;for(let e=1;e<i.length;e++){const n=m(t,i[e],a);l=(0,o.T9)(n.top,l),u=(0,o.jk)(n.right,u),d=(0,o.jk)(n.bottom,d),p=(0,o.T9)(n.left,p)}return{width:u-p,height:d-l,x:p,y:l}},getOffsetParent:v,getElementRects:async function(e){const t=this.getOffsetParent||v,n=this.getDimensions,r=await n(e.floating);return{reference:g(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=a(e);return{width:t,height:n}},getScale:c,isElement:s.vq,isRTL:function(e){return"rtl"===(0,s.L9)(e).direction}};function k(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:p=!1}=r,h=i(e),m=a||c?[...h?(0,s.v9)(h):[],...t?(0,s.v9)(t):[]]:[];m.forEach(e=>{a&&e.addEventListener("scroll",n),c&&e.addEventListener("resize",n)});const g=h&&u?function(e,t,n){let r,a=null;const i=(0,s.ep)(e);function c(){var e;clearTimeout(r),null==(e=a)||e.disconnect(),a=null}function l(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),c();const u=e.getBoundingClientRect(),{left:d,top:p,width:h,height:m}=u;if(n||t(),!h||!m)return;const g={rootMargin:-(0,o.RI)(p)+"px "+-(0,o.RI)(i.clientWidth-(d+h))+"px "+-(0,o.RI)(i.clientHeight-(p+m))+"px "+-(0,o.RI)(d)+"px",threshold:(0,o.T9)(0,(0,o.jk)(1,s))||1};let f=!0;function b(t){const n=t[0].intersectionRatio;if(!k(u,e.getBoundingClientRect()))return l();if(n!==s){if(!f)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}f=!1}try{a=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch(e){a=new IntersectionObserver(b,g)}a.observe(e)}const u=(0,s.zk)(e),d=()=>l(n);return u.addEventListener("resize",d),l(!0),()=>{u.removeEventListener("resize",d),c()}}(h,n,c):null;let f,b=-1,v=null;l&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&v&&t&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),h&&!p&&v.observe(h),t&&v.observe(t));let y=p?d(e):null;return p&&function t(){const r=d(e);y&&!k(y,r)&&n();y=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=v)||e.disconnect(),v=null,p&&cancelAnimationFrame(f)}}const x=r.cY,_=r.BN,j=r.UU,C=r.Ej,A=r.ER,S=(e,t,n)=>{const o=new Map,s=null!=n?n:{},a={...y,...s.platform,_c:o};return(0,r.rD)(e,t,{...s,platform:a})}},10469(e,t,n){"use strict";n.d(t,{BN:()=>h,ER:()=>m,Ej:()=>f,UU:()=>g,cY:()=>p,we:()=>d});var r=n(25569),o=n(51609),s=n(75795),a="undefined"!=typeof document?o.useLayoutEffect:function(){};function i(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!i(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!i(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l(e,t){const n=c(e);return Math.round(t*n)/n}function u(e){const t=o.useRef(e);return a(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:p,elements:{reference:h,floating:m}={},transform:g=!0,whileElementsMounted:f,open:b}=e,[v,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[k,w]=o.useState(d);i(k,d)||w(d);const[x,_]=o.useState(null),[j,C]=o.useState(null),A=o.useCallback(e=>{e!==N.current&&(N.current=e,_(e))},[]),S=o.useCallback(e=>{e!==P.current&&(P.current=e,C(e))},[]),E=h||x,T=m||j,N=o.useRef(null),P=o.useRef(null),B=o.useRef(v),I=null!=f,M=u(f),R=u(p),L=u(b),D=o.useCallback(()=>{if(!N.current||!P.current)return;const e={placement:t,strategy:n,middleware:k};R.current&&(e.platform=R.current),(0,r.rD)(N.current,P.current,e).then(e=>{const t={...e,isPositioned:!1!==L.current};F.current&&!i(B.current,t)&&(B.current=t,s.flushSync(()=>{y(t)}))})},[k,t,n,R,L]);a(()=>{!1===b&&B.current.isPositioned&&(B.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[b]);const F=o.useRef(!1);a(()=>(F.current=!0,()=>{F.current=!1}),[]),a(()=>{if(E&&(N.current=E),T&&(P.current=T),E&&T){if(M.current)return M.current(E,T,D);D()}},[E,T,D,M,I]);const O=o.useMemo(()=>({reference:N,floating:P,setReference:A,setFloating:S}),[A,S]),z=o.useMemo(()=>({reference:E,floating:T}),[E,T]),U=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!z.floating)return e;const t=l(z.floating,v.x),r=l(z.floating,v.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...c(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,z.floating,v.x,v.y]);return o.useMemo(()=>({...v,update:D,refs:O,elements:z,floatingStyles:U}),[v,D,O,z,U])}const p=(e,t)=>{const n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},h=(e,t)=>{const n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>({fn:(0,r.ER)(e).fn,options:[e,t]}),g=(e,t)=>{const n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},f=(e,t)=>{const n=(0,r.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}}},81289(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function o(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function s(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function i(e){return!!r()&&(e instanceof Node||e instanceof s(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof s(e).Element)}function l(e){return!!r()&&(e instanceof HTMLElement||e instanceof s(e).HTMLElement)}function u(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof s(e).ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=x(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function p(e){return/^(table|td|th)$/.test(o(e))}function h(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{$4:()=>j,CP:()=>_,L9:()=>x,Ll:()=>i,Lv:()=>p,Ng:()=>u,Tc:()=>k,Tf:()=>h,ZU:()=>d,_m:()=>S,ep:()=>a,eu:()=>w,gJ:()=>y,mq:()=>o,sQ:()=>v,sb:()=>l,v9:()=>A,vq:()=>c,zk:()=>s});const m=/transform|translate|scale|rotate|perspective|filter/,g=/paint|layout|strict|content/,f=e=>!!e&&"none"!==e;let b;function v(e){const t=c(e)?x(e):e;return f(t.transform)||f(t.translate)||f(t.scale)||f(t.rotate)||f(t.perspective)||!k()&&(f(t.backdropFilter)||f(t.filter))||m.test(t.willChange||"")||g.test(t.contain||"")}function y(e){let t=j(e);for(;l(t)&&!w(t);){if(v(t))return t;if(h(t))return null;t=j(t)}return null}function k(){return null==b&&(b="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),b}function w(e){return/^(html|body|#document)$/.test(o(e))}function x(e){return s(e).getComputedStyle(e)}function _(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||a(e);return u(t)?t.host:t}function C(e){const t=j(e);return w(t)?(e.ownerDocument||e).body:l(t)&&d(t)?t:C(t)}function A(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=C(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=s(o);if(a){const e=S(i);return t.concat(i,i.visualViewport||[],d(o)?o:[],e&&n?A(e):[])}return t.concat(o,A(o,[],n))}function S(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},39175(e,t,n){"use strict";n.d(t,{B1:()=>S,C0:()=>d,Dz:()=>f,Jx:()=>i,LI:()=>s,PG:()=>h,RI:()=>a,Sg:()=>p,T9:()=>o,TV:()=>g,WJ:()=>v,_3:()=>u,bV:()=>C,jk:()=>r,lP:()=>j,nI:()=>A,qE:()=>l,sq:()=>m,w7:()=>b});const r=Math.min,o=Math.max,s=Math.round,a=Math.floor,i=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function l(e,t,n){return o(e,r(t,n))}function u(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function f(e){return h(g(e))}function b(e,t,n){void 0===n&&(n=!1);const r=p(e),o=f(e),s=m(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=C(a)),[a,C(a)]}function v(e){const t=C(e);return[y(e),t,y(t)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const k=["left","right"],w=["right","left"],x=["top","bottom"],_=["bottom","top"];function j(e,t,n,r){const o=p(e);let s=function(e,t,n){switch(e){case"top":case"bottom":return n?t?w:k:t?k:w;case"left":case"right":return t?x:_;default:return[]}}(d(e),"start"===n,r);return o&&(s=s.map(e=>e+"-"+o),t&&(s=s.concat(s.map(y)))),s}function C(e){const t=d(e);return c[t]+e.slice(t.length)}function A(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function S(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},35490(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087),o=(0,r.forwardRef)(({icon:e,size:t=24,...n},o)=>(0,r.cloneElement)(e,{width:t,height:t,...n,ref:o}))},79485(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},13109(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(86087),o=(0,r.forwardRef)(({icon:e,size:t=24,...n},o)=>(0,r.cloneElement)(e,{width:t,height:t,...n,ref:o}))},62107(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})})},87756(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})})},12549(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M12.5939 21C14.1472 21 16.1269 20.5701 17.0711 20.1975L16.6447 18.879C16.0964 19.051 14.3299 19.6242 12.6548 19.6242C7.4467 19.6242 4.67513 16.8726 4.67513 12C4.67513 7.21338 7.50762 4.34713 12.2893 4.34713C17.132 4.34713 19.4162 7.55732 19.4162 10.7675C19.4162 14.035 19.0508 15.4968 17.4975 15.4968C16.5838 15.4968 16.0964 14.7803 16.0964 13.9777V7.5H14.4822V8.30255H14.3909C14.1777 7.67198 12.9898 7.12739 11.467 7.2707C9.18274 7.5 7.4467 9.27707 7.4467 11.8567C7.4467 14.5796 8.81726 16.672 11.467 16.758C13.203 16.8153 14.1168 16.0127 14.4822 15.1815H14.5736C14.7563 16.414 16.401 16.8439 17.467 16.8439C20.6954 16.8439 21 13.5764 21 10.7962C21 6.86943 18.0761 3 12.3807 3C6.50254 3 3 6.3535 3 11.9427C3 17.7325 6.38071 21 12.5939 21ZM11.7107 15.2962C9.73096 15.2962 9.03046 13.6051 9.03046 11.7707C9.03046 10.1083 10.0355 8.67516 11.7716 8.67516C13.599 8.67516 14.5736 9.36306 14.5736 11.7707C14.5736 14.1497 13.7513 15.2962 11.7107 15.2962Z"})})},55565(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})})},11083(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})})},83147(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})})},84699(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM12.75 8V13H11.25V8H12.75ZM12.75 14.5V16H11.25V14.5H12.75Z"})})},53758(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})})},88901(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})})},39558(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})})},48329(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},65995(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},51489(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},32833(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M10.7 9.6c.3-.2.8-.4 1.3-.4s1 .2 1.3.4c.3.2.4.5.4.6 0 .4.3.8.8.8s.8-.3.8-.8c0-.8-.5-1.4-1.1-1.9-.4-.3-.9-.5-1.4-.6v-.3c0-.4-.3-.8-.8-.8s-.8.3-.8.8v.3c-.5 0-1 .3-1.4.6-.6.4-1.1 1.1-1.1 1.9s.5 1.4 1.1 1.9c.6.4 1.4.6 2.2.6h.2c.5 0 .9.2 1.1.4.3.2.4.5.4.6s0 .4-.4.6c-.3.2-.8.4-1.3.4s-1-.2-1.3-.4c-.3-.2-.4-.5-.4-.6 0-.4-.3-.8-.8-.8s-.8.3-.8.8c0 .8.5 1.4 1.1 1.9.4.3.9.5 1.4.6v.3c0 .4.3.8.8.8s.8-.3.8-.8v-.3c.5 0 1-.3 1.4-.6.6-.4 1.1-1.1 1.1-1.9s-.5-1.4-1.1-1.9c-.5-.4-1.2-.6-1.9-.6H12c-.6 0-1-.2-1.3-.4-.3-.2-.4-.5-.4-.6s0-.4.4-.6ZM12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5Z"})})},20113(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})})},49099(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})})},1866(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},42005(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M15.333 4C16.6677 4 17.75 5.0823 17.75 6.41699V6.75C17.75 7.20058 17.6394 7.62468 17.4473 8H18.5C19.2767 8 19.9154 8.59028 19.9922 9.34668L20 9.5V18.5C20 19.3284 19.3284 20 18.5 20H5.5C4.72334 20 4.08461 19.4097 4.00781 18.6533L4 18.5V9.5L4.00781 9.34668C4.07949 8.64069 4.64069 8.07949 5.34668 8.00781L5.5 8H6.55273C6.36065 7.62468 6.25 7.20058 6.25 6.75V6.41699C6.25 5.0823 7.3323 4 8.66699 4C10.0436 4.00011 11.2604 4.68183 12 5.72559C12.7396 4.68183 13.9564 4.00011 15.333 4ZM5.5 18.5H11.25V9.5H5.5V18.5ZM12.75 18.5H18.5V9.5H12.75V18.5ZM8.66699 5.5C8.16073 5.5 7.75 5.91073 7.75 6.41699V6.75C7.75 7.44036 8.30964 8 9 8H11.2461C11.2021 6.61198 10.0657 5.50017 8.66699 5.5ZM15.333 5.5C13.9343 5.50017 12.7979 6.61198 12.7539 8H15C15.6904 8 16.25 7.44036 16.25 6.75V6.41699C16.25 5.91073 15.8393 5.5 15.333 5.5Z"})})},41490(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})})},28847(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},375(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})})},42438(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})})},55173(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})})},33196(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})})},92634(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"})})},60167(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})})},73493(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})})},93761(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})})},90437(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})})},42243(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})})},48568(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})})},94157(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.332 5.748c-1.03-.426-2.06.607-1.632 1.636l1.702 3.93 7.481.575c.123.01.123.19 0 .2l-7.483.575-1.7 3.909c-.429 1.029.602 2.062 1.632 1.636l12.265-5.076c1.03-.426 1.03-1.884 0-2.31L6.332 5.748Z"})})},72091(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})})},80224(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})})},57577(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M19.8 4h-1.5l1 8h1.5l-1-8ZM17 5.8c-.1-1-1-1.8-2-1.8H6.8c-.9 0-1.7.6-1.9 1.4l-1.8 6C2.7 12.7 3.7 14 5 14h4.4l-.8 3.6c-.3 1.3.7 2.4 1.9 2.4h.2c.6 0 1.2-.3 1.6-.8l5-6.6c.3-.4.5-.9.4-1.5L17 5.7Zm-.9 5.9-5 6.6c0 .1-.2.2-.4.2h-.2c-.3 0-.6-.3-.5-.6l.8-3.6c.1-.4 0-.9-.3-1.3s-.7-.6-1.2-.6H4.9c-.3 0-.6-.3-.5-.6l1.8-6c0-.2.3-.4.5-.4h8.2c.3 0 .5.2.5.4l.7 5.4v.4Z"})})},22201(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m3 12 1 8h1.5l-1-8H3Zm15.8-2h-4.4l.8-3.6c.3-1.3-.7-2.4-1.9-2.4h-.2c-.6 0-1.2.3-1.6.8l-5 6.6c-.3.4-.4.8-.4 1.2v.2l.7 5.4v.2c.2.9 1 1.5 1.9 1.5h8.2c.9 0 1.7-.6 1.9-1.4l1.8-6c.4-1.3-.6-2.6-1.9-2.6Zm.5 2.1-1.8 6c0 .2-.3.4-.5.4H8.8c-.3 0-.5-.2-.5-.4l-.7-5.4v-.4l5-6.6c0-.1.2-.2.4-.2h.2c.3 0 .6.3.5.6l-.8 3.6c-.1.4 0 .9.3 1.3s.7.6 1.2.6h4.4c.3 0 .6.3.5.6Z"})})},55507(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})})},57839(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})})},84701(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"})})},28755(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})})},60484(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"})})},58384(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(5573),o=n(10790),s=(0,o.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})})},13022(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},68205(e,t,n){"use strict";function r(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}n.d(t,{F:()=>r})},28390(e,t,n){"use strict";n.d(t,{q:()=>o});let r={};function o(){return r}},40960(e,t,n){"use strict";n.d(t,{_:()=>f});var r=n(80902),o=n(91881),s=n(45104),a=n(2786),i=n(92095),c=n(68205),l=n(92428);const u="midnight",d="noon",p="morning",h="afternoon",m="evening",g="night",f={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return l.C.y(e,t)},Y:function(e,t,n,r){const o=(0,i.h)(e,r),s=o>0?o:1-o;if("YY"===t){const e=s%100;return(0,c.F)(e,2)}return"Yo"===t?n.ordinalNumber(s,{unit:"year"}):(0,c.F)(s,t.length)},R:function(e,t){const n=(0,s.p)(e);return(0,c.F)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,c.F)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,c.F)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,c.F)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return l.C.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,c.F)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,a.N)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,c.F)(o,t.length)},I:function(e,t,n){const r=(0,o.s)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,c.F)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):l.C.d(e,t)},D:function(e,t,n){const o=(0,r.F)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,c.F)(o,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return(0,c.F)(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return(0,c.F)(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,c.F)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?d:0===r?u:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?m:r>=12?h:r>=4?p:g,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return l.C.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):l.C.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.F)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,c.F)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):l.C.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):l.C.s(e,t)},S:function(e,t){return l.C.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return v(r);case"XXXX":case"XX":return y(r);default:return y(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return v(r);case"xxxx":case"xx":return y(r);default:return y(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+y(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+y(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return(0,c.F)(r,t.length)},T:function(e,t,n){return(0,c.F)(+e,t.length)}};function b(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return 0===s?n+String(o):n+String(o)+t+(0,c.F)(s,2)}function v(e,t){if(e%60==0){return(e>0?"-":"+")+(0,c.F)(Math.abs(e)/60,2)}return y(e,t)}function y(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,c.F)(Math.trunc(r/60),2)+t+(0,c.F)(r%60,2)}},92428(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(68205);const o={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.F)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.F)(n+1,2)},d:(e,t)=>(0,r.F)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,r.F)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.F)(e.getHours(),t.length),m:(e,t)=>(0,r.F)(e.getMinutes(),t.length),s:(e,t)=>(0,r.F)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),s=Math.trunc(o*Math.pow(10,n-3));return(0,r.F)(s,t.length)}}},42446(e,t,n){"use strict";n.d(t,{m:()=>s});const r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},o=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},s={p:o,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],s=n[1],a=n[2];if(!a)return r(e,t);let i;switch(s){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",r(s,t)).replace("{{time}}",o(a,t))}}},8329(e,t,n){"use strict";n.d(t,{G:()=>o});var r=n(82665);function o(e){const t=(0,r.a)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}},51331(e,t,n){"use strict";n.d(t,{x:()=>o});var r=n(76743);function o(e,...t){const n=r.w.bind(null,e||t.find(e=>"object"==typeof e));return t.map(n)}},41319(e,t,n){"use strict";n.d(t,{Ss:()=>c,ef:()=>a,xM:()=>i});const r=/^D+$/,o=/^Y+$/,s=["D","DD","YY","YYYY"];function a(e){return r.test(e)}function i(e){return o.test(e)}function c(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),s.includes(e))throw new RangeError(r)}},55471(e,t,n){"use strict";n.d(t,{_P:()=>s,my:()=>r,w4:()=>o});Math.pow(10,8);const r=6048e5,o=864e5,s=Symbol.for("constructDateFrom")},76743(e,t,n){"use strict";n.d(t,{w:()=>o});var r=n(55471);function o(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r._P in e?e[r._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},49733(e,t,n){"use strict";n.d(t,{m:()=>i});var r=n(8329),o=n(51331),s=n(55471),a=n(52229);function i(e,t,n){const[i,c]=(0,o.x)(n?.in,e,t),l=(0,a.o)(i),u=(0,a.o)(c),d=+l-(0,r.G)(l),p=+u-(0,r.G)(u);return Math.round((d-p)/s.w4)}},95950(e,t,n){"use strict";n.d(t,{D:()=>o});var r=n(82665);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setHours(23,59,59,999),n}},83807(e,t,n){"use strict";n.d(t,{GP:()=>g});var r=n(5639),o=n(28390),s=n(40960),a=n(42446),i=n(41319),c=n(69940),l=n(82665);const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,h=/''/g,m=/[a-zA-Z]/;function g(e,t,n){const p=(0,o.q)(),h=n?.locale??p.locale??r.c,g=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??p.firstWeekContainsDate??p.locale?.options?.firstWeekContainsDate??1,b=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??p.weekStartsOn??p.locale?.options?.weekStartsOn??0,v=(0,l.a)(e,n?.in);if(!(0,c.f)(v))throw new RangeError("Invalid time value");let y=t.match(d).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,a.m[t])(e,h.formatLong)}return e}).join("").match(u).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:f(e)};if(s._[t])return{isToken:!0,value:e};if(t.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});h.localize.preprocessor&&(y=h.localize.preprocessor(v,y));const k={firstWeekContainsDate:g,weekStartsOn:b,locale:h};return y.map(r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&(0,i.xM)(o)||!n?.useAdditionalDayOfYearTokens&&(0,i.ef)(o))&&(0,i.Ss)(o,t,String(e));return(0,s._[o[0]])(v,o,h.localize,k)}).join("")}function f(e){const t=e.match(p);return t?t[1].replace(h,"'"):e}},80902(e,t,n){"use strict";n.d(t,{F:()=>a});var r=n(49733),o=n(70802),s=n(82665);function a(e,t){const n=(0,s.a)(e,t?.in);return(0,r.m)(n,(0,o.D)(n))+1}},91881(e,t,n){"use strict";n.d(t,{s:()=>i});var r=n(55471),o=n(83822),s=n(90243),a=n(82665);function i(e,t){const n=(0,a.a)(e,t?.in),i=+(0,o.b)(n)-+(0,s.w)(n);return Math.round(i/r.my)+1}},45104(e,t,n){"use strict";n.d(t,{p:()=>a});var r=n(76743),o=n(83822),s=n(82665);function a(e,t){const n=(0,s.a)(e,t?.in),a=n.getFullYear(),i=(0,r.w)(n,0);i.setFullYear(a+1,0,4),i.setHours(0,0,0,0);const c=(0,o.b)(i),l=(0,r.w)(n,0);l.setFullYear(a,0,4),l.setHours(0,0,0,0);const u=(0,o.b)(l);return n.getTime()>=c.getTime()?a+1:n.getTime()>=u.getTime()?a:a-1}},2786(e,t,n){"use strict";n.d(t,{N:()=>i});var r=n(55471),o=n(89875),s=n(49878),a=n(82665);function i(e,t){const n=(0,a.a)(e,t?.in),i=+(0,o.k)(n,t)-+(0,s.b)(n,t);return Math.round(i/r.my)+1}},92095(e,t,n){"use strict";n.d(t,{h:()=>i});var r=n(28390),o=n(76743),s=n(89875),a=n(82665);function i(e,t){const n=(0,a.a)(e,t?.in),i=n.getFullYear(),c=(0,r.q)(),l=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??c.firstWeekContainsDate??c.locale?.options?.firstWeekContainsDate??1,u=(0,o.w)(t?.in||e,0);u.setFullYear(i+1,0,l),u.setHours(0,0,0,0);const d=(0,s.k)(u,t),p=(0,o.w)(t?.in||e,0);p.setFullYear(i,0,l),p.setHours(0,0,0,0);const h=(0,s.k)(p,t);return+n>=+d?i+1:+n>=+h?i:i-1}},93524(e,t,n){"use strict";function r(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}n.d(t,{$:()=>r})},69940(e,t,n){"use strict";n.d(t,{f:()=>s});var r=n(93524),o=n(82665);function s(e){return!(!(0,r.$)(e)&&"number"!=typeof e||isNaN(+(0,o.a)(e)))}},83387(e,t,n){"use strict";function r(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{k:()=>r})},83157(e,t,n){"use strict";function r(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{o:()=>r})},71433(e,t,n){"use strict";function r(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(i)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(i,e=>e.test(a)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(i,e=>e.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;return{value:l,rest:t.slice(a.length)}}}n.d(t,{A:()=>r})},66835(e,t,n){"use strict";function r(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}n.d(t,{K:()=>r})},5639(e,t,n){"use strict";n.d(t,{c:()=>c});var r=n(71525),o=n(83624),s=n(31926),a=n(49865),i=n(94740);const c={code:"en-US",formatDistance:r.B,formatLong:o.s,formatRelative:s.o,localize:a.k,match:i.Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},71525(e,t,n){"use strict";n.d(t,{B:()=>o});const r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=(e,t,n)=>{let o;const s=r[e];return o="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o}},83624(e,t,n){"use strict";n.d(t,{s:()=>o});var r=n(83387);const o={date:(0,r.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},31926(e,t,n){"use strict";n.d(t,{o:()=>o});const r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=(e,t,n,o)=>r[e]},49865(e,t,n){"use strict";n.d(t,{k:()=>o});var r=n(83157);const o={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,r.o)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.o)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.o)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},94740(e,t,n){"use strict";n.d(t,{Y:()=>o});var r=n(71433);const o={ordinalNumber:(0,n(66835).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,r.A)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,r.A)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.A)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.A)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},52229(e,t,n){"use strict";n.d(t,{o:()=>o});var r=n(82665);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setHours(0,0,0,0),n}},83822(e,t,n){"use strict";n.d(t,{b:()=>o});var r=n(89875);function o(e,t){return(0,r.k)(e,{...t,weekStartsOn:1})}},90243(e,t,n){"use strict";n.d(t,{w:()=>a});var r=n(76743),o=n(45104),s=n(83822);function a(e,t){const n=(0,o.p)(e,t),a=(0,r.w)(t?.in||e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),(0,s.b)(a)}},89875(e,t,n){"use strict";n.d(t,{k:()=>s});var r=n(28390),o=n(82665);function s(e,t){const n=(0,r.q)(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=(0,o.a)(e,t?.in),i=a.getDay(),c=(i<s?7:0)+i-s;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}},49878(e,t,n){"use strict";n.d(t,{b:()=>i});var r=n(28390),o=n(76743),s=n(92095),a=n(89875);function i(e,t){const n=(0,r.q)(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=(0,s.h)(e,t),l=(0,o.w)(t?.in||e,0);l.setFullYear(c,0,i),l.setHours(0,0,0,0);return(0,a.k)(l,t)}},70802(e,t,n){"use strict";n.d(t,{D:()=>o});var r=n(82665);function o(e,t){const n=(0,r.a)(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}},82665(e,t,n){"use strict";n.d(t,{a:()=>o});var r=n(76743);function o(e,t){return(0,r.w)(t||e,e)}},3175(e,t,n){"use strict";n.d(t,{Gz:()=>b,hl:()=>v});var r,o=n(25006),s=n(82826),a=n(72485);!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(r||(r={}));var i,c,l;function u(e){return e>=r.ZERO&&e<=r.NINE}function d(e){return e>=r.UPPER_A&&e<=r.UPPER_F||e>=r.LOWER_A&&e<=r.LOWER_F}function p(e){return e===r.EQUALS||function(e){return e>=r.UPPER_A&&e<=r.UPPER_Z||e>=r.LOWER_A&&e<=r.LOWER_Z||u(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(i||(i={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(c||(c={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class h{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case c.EntityStart:return e.charCodeAt(t)===r.NUM?(this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=c.NamedEntity,this.stateNamedEntity(e,t));case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===r.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!u(r)&&!d(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!u(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===r.SEMI)this.consumed+=1;else if(this.decodeMode===l.Strict)return 0;return this.emitCodePoint((0,a.y6)(this.result),this.consumed),this.errors&&(e!==r.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let o=n[this.treeIndex],s=(o&i.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=g(n,o,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l.Attribute&&(0===s||p(a))?0:this.emitNotTerminatedNamedEntity();if(o=n[this.treeIndex],s=(o&i.VALUE_LENGTH)>>14,0!==s){if(a===r.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~i.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case c.NamedEntity:return 0===this.result||this.decodeMode===l.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}}}function m(e){let t="";const n=new h(e,e=>t+=(0,a.MK)(e));return function(e,r){let o=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(o,s),n.startEntity(r);const a=n.write(e,s+1);if(a<0){o=s+n.end();break}o=s+a,s=0===a?o+1:o}const a=t+e.slice(o);return t="",a}}function g(e,t,n,r){const o=(t&i.BRANCH_LENGTH)>>7,s=t&i.JUMP_TABLE;if(0===o)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=o?-1:e[n+t]-1}let a=n,c=a+o-1;for(;a<=c;){const t=a+c>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+o];c=t-1}}return-1}const f=m(o.A);m(s.A);function b(e,t=l.Legacy){return f(e,t)}function v(e){return f(e,l.Strict)}},72485(e,t,n){"use strict";var r;n.d(t,{MK:()=>s,y6:()=>a});const o=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),s=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function a(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=o.get(e))&&void 0!==t?t:e}},97187(e,t,n){"use strict";n(47431),n(26834)},26834(){"use strict";const e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);String.prototype.codePointAt;function t(e,t){return function(n){let r,o=0,s="";for(;r=e.exec(n);)o!==r.index&&(s+=n.substring(o,r.index)),s+=t.get(r[0].charCodeAt(0)),o=r.index+1;return s+n.substring(o)}}t(/[&<>'"]/g,e),t(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},25006(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0)))},82826(e,t,n){"use strict";n.d(t,{A:()=>r});const r=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)))},47431(){"use strict";function e(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(e([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(e([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(e([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(e([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))},9405(e,t,n){"use strict";n.d(t,{Gz:()=>s.Gz,hl:()=>s.hl});var r,o,s=n(3175);n(97187),n(26834);!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(r||(r={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(o||(o={}))},37578(e,t,n){"use strict";n.d(t,{O:()=>u});const r="bits",o="bytes",s="",a="jedec",i="round",c="string",l={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function u(e,{bits:t=!1,pad:n=!1,base:u=-1,round:d=2,locale:p="",localeOptions:h={},separator:m="",spacer:g=" ",symbols:f={},standard:b="",output:v=c,fullform:y=!1,fullforms:k=[],exponent:w=-1,roundingMethod:x=i,precision:_=0}={}){let j=w,C=Number(e),A=[],S=0,E=s;"si"===b?(u=10,b=a):"iec"===b||b===a?u=2:2===u?b="iec":(u=10,b=a);const T=10===u?1e3:1024,N=!0===y,P=C<0,B=Math[x];if("bigint"!=typeof e&&isNaN(e))throw new TypeError("Invalid number");if("function"!=typeof B)throw new TypeError("Invalid rounding method");if(P&&(C=-C),(-1===j||isNaN(j))&&(j=Math.floor(Math.log(C)/Math.log(T)),j<0&&(j=0)),j>8&&(_>0&&(_+=8-j),j=8),"exponent"===v)return j;if(0===C)A[0]=0,E=A[1]=l.symbol[b][t?r:o][j];else{S=C/(2===u?Math.pow(2,10*j):Math.pow(1e3,j)),t&&(S*=8,S>=T&&j<8&&(S/=T,j++));const e=Math.pow(10,j>0?d:0);A[0]=B(S*e)/e,A[0]===T&&j<8&&-1===w&&(A[0]=1,j++),E=A[1]=10===u&&1===j?t?"kbit":"kB":l.symbol[b][t?r:o][j]}if(P&&(A[0]=-A[0]),_>0&&(A[0]=A[0].toPrecision(_)),A[1]=f[A[1]]||A[1],!0===p?A[0]=A[0].toLocaleString():p.length>0?A[0]=A[0].toLocaleString(p,h):m.length>0&&(A[0]=A[0].toString().replace(".",m)),n&&d>0){const e=A[0].toString(),t=m||(e.match(/(\D)/g)||[]).pop()||".",n=e.toString().split(t),r=n[1]||s,o=r.length,a=d-o;A[0]=`${n[0]}${t}${r.padEnd(o+a,"0")}`}return N&&(A[1]=k[j]?k[j]:l.fullform[b][j]+(t?"bit":"byte")+(1===A[0]?s:"s")),"array"===v?A:"object"===v?{value:A[0],symbol:A[1],exponent:j,unit:E}:A.join(g)}},59535(e,t,n){"use strict";n.d(t,{o4:()=>D});const r="3.9.3",o=r,s="function"==typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0}):void 0,a="function"==typeof TextEncoder?new TextEncoder:void 0,i=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(i),l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),d="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),p=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),h=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),m=e=>{let t,n,r,o,s="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,s+=i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}return a?s.slice(0,a-3)+"===".substring(a):s},g="function"==typeof btoa?e=>btoa(e):m,f="function"==typeof Uint8Array.prototype.toBase64?e=>e.toBase64():e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(u.apply(null,e.subarray(n,n+4096)));return g(t.join(""))},b=(e,t=!1)=>t?p(f(e)):f(e),v=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},y=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g,k=e=>e.replace(y,v),w=a?e=>f(a.encode(e)):e=>g(k(e)),x=(e,t=!1)=>t?p(w(e)):w(e),_=e=>x(e,!0),j=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},A=e=>e.replace(j,C),S=e=>{if(e=e.replace(/\s+/g,""),!l.test(e))throw new TypeError("malformed base64.");let t,n,r;e+="==".slice(2-(3&e.length));let o=[];for(let s=0;s<e.length;)t=c[e.charAt(s++)]<<18|c[e.charAt(s++)]<<12|(n=c[e.charAt(s++)])<<6|(r=c[e.charAt(s++)]),64===n?o.push(u(t>>16&255)):64===r?o.push(u(t>>16&255,t>>8&255)):o.push(u(t>>16&255,t>>8&255,255&t));return o.join("")},E="function"==typeof atob?e=>atob(h(e)):S,T="function"==typeof Uint8Array.fromBase64?e=>Uint8Array.fromBase64(e):e=>d(E(e).split("").map(e=>e.charCodeAt(0))),N=e=>T(B(e)),P=s?e=>s.decode(T(e)):e=>A(E(e)),B=e=>h(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),I=e=>P(B(e)),M=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),R=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,M(t));e("fromBase64",function(){return I(this)}),e("toBase64",function(e){return x(this,e)}),e("toBase64URI",function(){return x(this,!0)}),e("toBase64URL",function(){return x(this,!0)}),e("toUint8Array",function(){return N(this)})},L=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,M(t));e("toBase64",function(e){return b(this,e)}),e("toBase64URI",function(){return b(this,!0)}),e("toBase64URL",function(){return b(this,!0)})},D={version:r,VERSION:o,atob:E,atobPolyfill:S,btoa:g,btoaPolyfill:m,fromBase64:I,toBase64:x,encode:x,encodeURI:_,encodeURL:_,utob:k,btou:A,decode:I,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:b,toUint8Array:N,extendString:R,extendUint8Array:L,extendBuiltins:()=>{R(),L()}}},7237(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(30724);function o(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function s(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===s(e)}function i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const l={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function d(e){const t=e.re=(0,r.A)(e.__opts__),n=e.__tlds__.slice();function o(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(o(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(o(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(o(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");const c=[];function l(e,t){throw new Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===s(n))return!function(e){return"[object RegExp]"===s(e)}(n.validate)?a(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(a(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===s(e)}(n)?l(t,n):c.push(t)}),c.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const u=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(i).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${u})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${u})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function p(e,t,n,r){const o=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||c.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=o({},c,t),this.__schemas__=o({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},d(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,d(this),this},h.prototype.set=function(e){return this.__opts__=o(this.__opts__,e),this},h.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e))for(n=this.re.schema_search,n.lastIndex=0;null!==(t=n.exec(e));)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))||!!(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){const t=[],n=[],r=[],o=[];let s,a,i;function c(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(i=this.re.schema_search,i.lastIndex=0;null!==(s=i.exec(e));)a=this.testSchemaAt(e,s[2],i.lastIndex),a&&n.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+a});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(i=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,i.lastIndex=0;null!==(s=i.exec(e));)r.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(i=this.re.email_fuzzy_global,i.lastIndex=0;null!==(s=i.exec(e));)o.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const l=[0,0,0];let u=0;for(;;){const s=[n[l[0]],o[l[1]],r[l[2]]],a=c(c(s[0],s[1]),s[2]);if(!a)break;if(a===s[0]?l[0]++:a===s[1]?l[1]++:l[2]++,a.index<u)continue;const i=new p(e,a.schema,a.index,a.lastIndex);this.__compiled__[i.schema].normalize(i,this),t.push(i),u=a.lastIndex}return t.length?t:null},h.prototype.matchAtStart=function(e){if(!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const r=new p(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),d(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,d(this),this)},h.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)},h.prototype.onCompile=function(){};const m=h},30724(e,t,n){"use strict";n.d(t,{A:()=>i}),n.dn(i);var r=n(60905),o=n(80786),s=n(60804),a=n(3506);function i(e){const t={};e=e||{},t.src_Any=r.A.source,t.src_Cc=o.A.source,t.src_Z=a.A.source,t.src_P=s.A.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|`+`;(?!${t.src_ZCc}|$)|`+`\\!+(?!${t.src_ZCc}|[!]|$)|`+`\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+`${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+"|"+`(?:${t.src_pseudo_letter})|`+`(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+"|"+`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}},97158(e,t,n){"use strict";n.d(t,{A:()=>r.A});var r=n(56838)},84384(e,t,n){"use strict";n.d(t,{A:()=>r});const r=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},58105(e,t,n){"use strict";n.d(t,{l:()=>s,p:()=>a});const r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",s=new RegExp("^(?:"+r+"|"+o+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+o+")")},54439(e,t,n){"use strict";n.r(t),n.d(t,{arrayReplaceAt:()=>p,asciiTrim:()=>M,assign:()=>d,escapeHtml:()=>j,escapeRE:()=>A,fromCodePoint:()=>m,has:()=>u,isMdAsciiPunct:()=>P,isPunctChar:()=>T,isPunctCharCode:()=>N,isSpace:()=>S,isString:()=>c,isValidEntityCode:()=>h,isWhiteSpace:()=>E,lib:()=>R,normalizeReference:()=>B,unescapeAll:()=>y,unescapeMd:()=>v});var r=n(25315),o=n(68407),s=n(60804),a=n(47795),i=n(9405);function c(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}const l=Object.prototype.hasOwnProperty;function u(e,t){return l.call(e,t)}function d(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function p(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function h(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function m(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const g=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,f=new RegExp(g.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),b=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function v(e){return e.indexOf("\\")<0?e:e.replace(g,"$1")}function y(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(f,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&b.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return h(n)?m(n):e}const n=(0,i.Gz)(e);return n!==e?n:e}(e,n)})}const k=/[&<>"]/,w=/[&<>"]/g,x={"&":"&","<":"<",">":">",'"':"""};function _(e){return x[e]}function j(e){return k.test(e)?e.replace(w,_):e}const C=/[.?*+^$[\]\\(){}|-]/g;function A(e){return e.replace(C,"\\$&")}function S(e){switch(e){case 9:case 32:return!0}return!1}function E(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function T(e){return s.A.test(e)||a.A.test(e)}function N(e){return T(m(e))}function P(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function B(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function I(e){return 32===e||9===e||10===e||13===e}function M(e){let t=0;for(;t<e.length&&I(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&I(e.charCodeAt(n));n--);return e.slice(t,n+1)}const R={mdurl:r,ucmicro:o}},80016(e,t,n){"use strict";n.r(t),n.d(t,{parseLinkDestination:()=>o.A,parseLinkLabel:()=>r.A,parseLinkTitle:()=>s.A});var r=n(65739),o=n(39945),s=n(8859)},39945(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n){let o,s=t;const a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(s)){for(s++;s<n;){if(o=e.charCodeAt(s),10===o)return a;if(60===o)return a;if(62===o)return a.pos=s+1,a.str=(0,r.unescapeAll)(e.slice(t+1,s)),a.ok=!0,a;92===o&&s+1<n?s+=2:s++}return a}let i=0;for(;s<n&&(o=e.charCodeAt(s),32!==o)&&!(o<32||127===o);)if(92===o&&s+1<n){if(32===e.charCodeAt(s+1))break;s+=2}else{if(40===o&&(i++,i>32))return a;if(41===o){if(0===i)break;i--}s++}return t===s||0!==i||(a.str=(0,r.unescapeAll)(e.slice(t,s)),a.pos=s,a.ok=!0),a}},65739(e,t,n){"use strict";function r(e,t,n){let r,o,s,a;const i=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<i;){if(s=e.src.charCodeAt(e.pos),93===s&&(r--,0===r)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===s)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}let l=-1;return o&&(l=e.pos),e.pos=c,l}n.d(t,{A:()=>r})},8859(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n,o){let s,a=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)i.str=o.str,i.marker=o.marker;else{if(a>=n)return i;let r=e.charCodeAt(a);if(34!==r&&39!==r&&40!==r)return i;t++,a++,40===r&&(r=41),i.marker=r}for(;a<n;){if(s=e.charCodeAt(a),s===i.marker)return i.pos=a+1,i.str+=(0,r.unescapeAll)(e.slice(t,a)),i.ok=!0,i;if(40===s&&41===i.marker)return i;92===s&&a+1<n&&a++,a++}return i.can_continue=!0,i.str+=(0,r.unescapeAll)(e.slice(t,a)),i}},56838(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(54439),o=n(80016),s=n(71455),a=n(55439),i=n(60737),c=n(42813),l=n(7237),u=n(25315),d=n(87072),p=n(69404),h=n(8079),m=n(26881);const g={default:p.A,zero:h.A,commonmark:m.A},f=/^(vbscript|javascript|file|data):/,b=/^data:image\/(gif|png|jpeg|webp);/;function v(e){const t=e.trim().toLowerCase();return!f.test(t)||b.test(t)}const y=["http:","https:","mailto:"];function k(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||y.indexOf(t.protocol)>=0))try{t.hostname=d.Ay.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function w(e){const t=u.parse(e,!0);if(t.hostname&&(!t.protocol||y.indexOf(t.protocol)>=0))try{t.hostname=d.Ay.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function x(e,t){if(!(this instanceof x))return new x(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new c.A,this.block=new i.A,this.core=new a.A,this.renderer=new s.A,this.linkify=new l.A,this.validateLink=v,this.normalizeLink=k,this.normalizeLinkText=w,this.utils=r,this.helpers=r.assign({},o),this.options={},this.configure(e),t&&this.set(t)}x.prototype.set=function(e){return r.assign(this.options,e),this},x.prototype.configure=function(e){const t=this;if(r.isString(e)){const t=e;if(!(e=g[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},x.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},x.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},x.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},x.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},x.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},x.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},x.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const _=x},60737(e,t,n){"use strict";n.d(t,{A:()=>v});var r=n(79358),o=n(52961),s=n(20712),a=n(47103),i=n(36283),c=n(97537),l=n(79062),u=n(25792),d=n(43863),p=n(72577),h=n(13318),m=n(94206),g=n(94970);const f=[["table",s.A,["paragraph","reference"]],["code",a.A],["fence",i.A,["paragraph","reference","blockquote","list"]],["blockquote",c.A,["paragraph","reference","blockquote","list"]],["hr",l.A,["paragraph","reference","blockquote","list"]],["list",u.A,["paragraph","reference","blockquote"]],["reference",d.A],["html_block",p.A,["paragraph","reference","blockquote"]],["heading",h.A,["paragraph","reference","blockquote"]],["lheading",m.A],["paragraph",g.A]];function b(){this.ruler=new r.A;for(let e=0;e<f.length;e++)this.ruler.push(f[e][0],f[e][1],{alt:(f[e][2]||[]).slice()})}b.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,s=e.md.options.maxNesting;let a=t,i=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}const t=e.line;let c=!1;for(let s=0;s<o;s++)if(c=r[s](e,a,n,!1),c){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!i,e.isEmpty(e.line-1)&&(i=!0),a=e.line,a<n&&e.isEmpty(a)&&(i=!0,a++,e.line=a)}},b.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},b.prototype.State=o.A;const v=b},55439(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(79358),o=n(37569),s=n(2699),a=n(79417),i=n(85189),c=n(96084),l=n(48541),u=n(55834),d=n(11242);const p=[["normalize",s.A],["block",a.A],["inline",i.A],["linkify",c.A],["replacements",l.A],["smartquotes",u.A],["text_join",d.A]];function h(){this.ruler=new r.A;for(let e=0;e<p.length;e++)this.ruler.push(p[e][0],p[e][1])}h.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},h.prototype.State=o.A;const m=h},42813(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(79358),o=n(60057),s=n(68597),a=n(44938),i=n(94076),c=n(17785),l=n(38797),u=n(50925),d=n(62206),p=n(22128),h=n(74427),m=n(85469),g=n(7105),f=n(41517),b=n(76014),v=n(70322);const y=[["text",s.A],["linkify",a.A],["newline",i.A],["escape",c.A],["backticks",l.A],["strikethrough",u.A.tokenize],["emphasis",d.A.tokenize],["link",p.A],["image",h.A],["autolink",m.A],["html_inline",g.A],["entity",f.A]],k=[["balance_pairs",b.A],["strikethrough",u.A.postProcess],["emphasis",d.A.postProcess],["fragments_join",v.A]];function w(){this.ruler=new r.A;for(let e=0;e<y.length;e++)this.ruler.push(y[e][0],y[e][1]);this.ruler2=new r.A;for(let e=0;e<k.length;e++)this.ruler2.push(k[e][0],k[e][1])}w.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t])return void(e.pos=s[t]);let a=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,a=n[o](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[t]=e.pos},w.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const s=e.pos;let a=!1;if(e.level<o)for(let r=0;r<n;r++)if(a=t[r](e,!1),a){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},w.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const s=this.ruler2.getRules(""),a=s.length;for(let e=0;e<a;e++)s[e](o)},w.prototype.State=o.A;const x=w},26881(e,t,n){"use strict";n.d(t,{A:()=>r});const r={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},69404(e,t,n){"use strict";n.d(t,{A:()=>r});const r={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},8079(e,t,n){"use strict";n.d(t,{A:()=>r});const r={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}},71455(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(54439);const o={};function s(){this.rules=(0,r.assign)({},o)}o.code_inline=function(e,t,n,o,s){const a=e[t];return"<code"+s.renderAttrs(a)+">"+(0,r.escapeHtml)(a.content)+"</code>"},o.code_block=function(e,t,n,o,s){const a=e[t];return"<pre"+s.renderAttrs(a)+"><code>"+(0,r.escapeHtml)(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,n,o,s){const a=e[t],i=a.info?(0,r.unescapeAll)(a.info).trim():"";let c,l="",u="";if(i){const e=i.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(c=n.highlight&&n.highlight(a.content,l,u)||(0,r.escapeHtml)(a.content),0===c.indexOf("<pre"))return c+"\n";if(i){const e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${s.renderAttrs(r)}>${c}</code></pre>\n`}return`<pre><code${s.renderAttrs(a)}>${c}</code></pre>\n`},o.image=function(e,t,n,r,o){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return(0,r.escapeHtml)(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){let t,n,o;if(!e.attrs)return"";for(o="",t=0,n=e.attrs.length;t<n;t++)o+=" "+(0,r.escapeHtml)(e.attrs[t][0])+'="'+(0,r.escapeHtml)(e.attrs[t][1])+'"';return o},s.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let s=!1;if(r.block&&(s=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(s=!1)}return o+=s?">\n":">",o},s.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let s=0,a=e.length;s<a;s++){const a=e[s].type;void 0!==o[a]?r+=o[a](e,s,t,n,this):r+=this.renderToken(e,s,t)}return r},s.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,s=e.length;o<s;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},s.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let s=0,a=e.length;s<a;s++){const a=e[s].type;"inline"===a?r+=this.renderInline(e[s].children,t,n):void 0!==o[a]?r+=o[a](e,s,t,n,this):r+=this.renderToken(e,s,t,n)}return r};const a=s},79358(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}n.d(t,{A:()=>o}),r.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},r.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){const o=this.__find__(e),s=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){const o=this.__find__(e),s=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const o=r},97537(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n,o){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(s))return!1;if(o)return!0;const c=[],l=[],u=[],d=[],p=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let m,g=!1;for(m=t;m<n;m++){const t=e.sCount[m]<e.blkIndent;if(s=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],s>=a)break;if(62===e.src.charCodeAt(s++)&&!t){let t,n,o=e.sCount[m]+1;32===e.src.charCodeAt(s)?(s++,o++,n=!1,t=!0):9===e.src.charCodeAt(s)?(t=!0,(e.bsCount[m]+o)%4==3?(s++,o++,n=!1):n=!0):t=!1;let i=o;for(c.push(e.bMarks[m]),e.bMarks[m]=s;s<a;){const t=e.src.charCodeAt(s);if(!(0,r.isSpace)(t))break;9===t?i+=4-(i+e.bsCount[m]+(n?1:0))%4:i++,s++}g=s>=a,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(t?1:0),u.push(e.sCount[m]),e.sCount[m]=i-o,d.push(e.tShift[m]),e.tShift[m]=s-e.bMarks[m];continue}if(g)break;let o=!1;for(let t=0,r=p.length;t<r;t++)if(p[t](e,m,n,!0)){o=!0;break}if(o){e.lineMax=m,0!==e.blkIndent&&(c.push(e.bMarks[m]),l.push(e.bsCount[m]),d.push(e.tShift[m]),u.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}c.push(e.bMarks[m]),l.push(e.bsCount[m]),d.push(e.tShift[m]),u.push(e.sCount[m]),e.sCount[m]=-1}const f=e.blkIndent;e.blkIndent=0;const b=e.push("blockquote_open","blockquote",1);b.markup=">";const v=[t,0];b.map=v,e.md.block.tokenize(e,t,m);e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=h,v[1]=e.line;for(let n=0;n<d.length;n++)e.bMarks[n+t]=c[n],e.tShift[n+t]=d[n],e.sCount[n+t]=u[n],e.bsCount[n+t]=l[n];return e.blkIndent=f,!0}},47103(e,t,n){"use strict";function r(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}n.d(t,{A:()=>r})},36283(e,t,n){"use strict";function r(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>s)return!1;const a=e.src.charCodeAt(o);if(126!==a&&96!==a)return!1;let i=o;o=e.skipChars(o,a);let c=o-i;if(c<3)return!1;const l=e.src.slice(i,o),u=e.src.slice(o,s);if(96===a&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;(d++,!(d>=n))&&(o=i=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],!(o<s&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,a),o-i<c||(o=e.skipSpaces(o),o<s)))){p=!0;break}c=e.sCount[t],e.line=d+(p?1:0);const h=e.push("fence","code",0);return h.info=u,h.content=e.getLines(t+1,d,c,!0),h.markup=l,h.map=[t,e.line],!0}n.d(t,{A:()=>r})},13318(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n,o){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(s);if(35!==i||s>=a)return!1;let c=1;for(i=e.src.charCodeAt(++s);35===i&&s<a&&c<=6;)c++,i=e.src.charCodeAt(++s);if(c>6||s<a&&!(0,r.isSpace)(i))return!1;if(o)return!0;a=e.skipSpacesBack(a,s);const l=e.skipCharsBack(a,35,s);l>s&&(0,r.isSpace)(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;const u=e.push("heading_open","h"+String(c),1);u.markup="########".slice(0,c),u.map=[t,e.line];const d=e.push("inline","",0);d.content=(0,r.asciiTrim)(e.src.slice(s,a)),d.map=[t,e.line],d.children=[];return e.push("heading_close","h"+String(c),-1).markup="########".slice(0,c),!0}},79062(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n,o){const s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(a++);if(42!==i&&45!==i&&95!==i)return!1;let c=1;for(;a<s;){const t=e.src.charCodeAt(a++);if(t!==i&&!(0,r.isSpace)(t))return!1;t===i&&c++}if(c<3)return!1;if(o)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(c+1).join(String.fromCharCode(i)),!0}},72577(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(84384),o=n(58105);const s=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.A.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o.p.source+"\\s*$"),/^$/,!1]];function a(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let i=e.src.slice(o,a),c=0;for(;c<s.length&&!s[c][0].test(i);c++);if(c===s.length)return!1;if(r)return s[c][2];let l=t+1;const u=s[c][1].test("");if(!s[c][1].test(i))for(;l<n&&(!(e.sCount[l]<e.blkIndent)||!u&&e.isEmpty(l));l++)if(o=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],i=e.src.slice(o,a),s[c][1].test(i)){0!==i.length&&l++;break}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}},94206(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n){const o=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const s=e.parentType;e.parentType="paragraph";let a,i=0,c=t+1;for(;c<n&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3)continue;if(e.sCount[c]>=e.blkIndent){let t=e.bMarks[c]+e.tShift[c];const n=e.eMarks[c];if(t<n&&(a=e.src.charCodeAt(t),(45===a||61===a)&&(t=e.skipChars(t,a),t=e.skipSpaces(t),t>=n))){i=61===a?1:2;break}}if(e.sCount[c]<0)continue;let t=!1;for(let r=0,s=o.length;r<s;r++)if(o[r](e,c,n,!0)){t=!0;break}if(t)break}if(!i)return e.parentType=s,!1;const l=(0,r.asciiTrim)(e.getLines(t,c,e.blkIndent,!1));e.line=c+1;const u=e.push("heading_open","h"+String(i),1);u.markup=String.fromCharCode(a),u.map=[t,e.line];const d=e.push("inline","",0);d.content=l,d.map=[t,e.line-1],d.children=[];return e.push("heading_close","h"+String(i),-1).markup=String.fromCharCode(a),e.parentType=s,!0}},25792(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(54439);function o(e,t){const n=e.eMarks[t];let o=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(o++);if(42!==s&&45!==s&&43!==s)return-1;if(o<n){const t=e.src.charCodeAt(o);if(!(0,r.isSpace)(t))return-1}return o}function s(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];let s=n;if(s+1>=o)return-1;let a=e.src.charCodeAt(s++);if(a<48||a>57)return-1;for(;;){if(s>=o)return-1;if(a=e.src.charCodeAt(s++),!(a>=48&&a<=57)){if(41===a||46===a)break;return-1}if(s-n>=10)return-1}return s<o&&(a=e.src.charCodeAt(s),!(0,r.isSpace)(a))?-1:s}function a(e,t,n,r){let a,i,c,l,u=t,d=!0;if(e.sCount[u]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let p,h,m,g=!1;if(r&&"paragraph"===e.parentType&&e.sCount[u]>=e.blkIndent&&(g=!0),(m=s(e,u))>=0){if(p=!0,c=e.bMarks[u]+e.tShift[u],h=Number(e.src.slice(c,m-1)),g&&1!==h)return!1}else{if(!((m=o(e,u))>=0))return!1;p=!1}if(g&&e.skipSpaces(m)>=e.eMarks[u])return!1;if(r)return!0;const f=e.src.charCodeAt(m-1),b=e.tokens.length;p?(l=e.push("ordered_list_open","ol",1),1!==h&&(l.attrs=[["start",h]])):l=e.push("bullet_list_open","ul",1);const v=[u,0];l.map=v,l.markup=String.fromCharCode(f);let y=!1;const k=e.md.block.ruler.getRules("list"),w=e.parentType;for(e.parentType="list";u<n;){i=m,a=e.eMarks[u];const t=e.sCount[u]+m-(e.bMarks[u]+e.tShift[u]);let r=t;for(;i<a;){const t=e.src.charCodeAt(i);if(9===t)r+=4-(r+e.bsCount[u])%4;else{if(32!==t)break;r++}i++}const h=i;let g;g=h>=a?1:r-t,g>4&&(g=1);const b=t+g;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(f);const v=[u,0];l.map=v,p&&(l.info=e.src.slice(c,m-1));const w=e.tight,x=e.tShift[u],_=e.sCount[u],j=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=b,e.tight=!0,e.tShift[u]=h-e.bMarks[u],e.sCount[u]=r,h>=a&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),e.tight&&!y||(d=!1),y=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=j,e.tShift[u]=x,e.sCount[u]=_,e.tight=w,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(f),u=e.line,v[1]=u,u>=n)break;if(e.sCount[u]<e.blkIndent)break;if(e.sCount[u]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=k.length;t<r;t++)if(k[t](e,u,n,!0)){C=!0;break}if(C)break;if(p){if(m=s(e,u),m<0)break;c=e.bMarks[u]+e.tShift[u]}else if(m=o(e,u),m<0)break;if(f!==e.src.charCodeAt(m-1))break}return l=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(f),v[1]=u,e.line=u,e.parentType=w,d&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,b),!0}},94970(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n){const o=e.md.block.ruler.getRules("paragraph"),s=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]<0)continue;let t=!1;for(let r=0,s=o.length;r<s;r++)if(o[r](e,a,n,!0)){t=!0;break}if(t)break}const i=(0,r.asciiTrim)(e.getLines(t,a,e.blkIndent,!1));e.line=a;e.push("paragraph_open","p",1).map=[t,e.line];const c=e.push("inline","",0);return c.content=i,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=s,!0}},43863(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t,n,o){let s=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(s))return!1;function c(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let s=!1;for(let o=0,a=r.length;o<a;o++)if(r[o](e,t,n,!0)){s=!0;break}if(e.parentType=o,s)return null}const o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(o,s+1)}let l=e.src.slice(s,a+1);a=l.length;let u=-1;for(s=1;s<a;s++){const e=l.charCodeAt(s);if(91===e)return!1;if(93===e){u=s;break}if(10===e){const e=c(i);null!==e&&(l+=e,a=l.length,i++)}else if(92===e&&(s++,s<a&&10===l.charCodeAt(s))){const e=c(i);null!==e&&(l+=e,a=l.length,i++)}}if(u<0||58!==l.charCodeAt(u+1))return!1;for(s=u+2;s<a;s++){const e=l.charCodeAt(s);if(10===e){const e=c(i);null!==e&&(l+=e,a=l.length,i++)}else if(!(0,r.isSpace)(e))break}const d=e.md.helpers.parseLinkDestination(l,s,a);if(!d.ok)return!1;const p=e.md.normalizeLink(d.str);if(!e.md.validateLink(p))return!1;s=d.pos;const h=s,m=i,g=s;for(;s<a;s++){const e=l.charCodeAt(s);if(10===e){const e=c(i);null!==e&&(l+=e,a=l.length,i++)}else if(!(0,r.isSpace)(e))break}let f,b=e.md.helpers.parseLinkTitle(l,s,a);for(;b.can_continue;){const t=c(i);if(null===t)break;l+=t,s=a,a=l.length,i++,b=e.md.helpers.parseLinkTitle(l,s,a,b)}for(s<a&&g!==s&&b.ok?(f=b.str,s=b.pos):(f="",s=h,i=m);s<a;){const e=l.charCodeAt(s);if(!(0,r.isSpace)(e))break;s++}if(s<a&&10!==l.charCodeAt(s)&&f)for(f="",s=h,i=m;s<a;){const e=l.charCodeAt(s);if(!(0,r.isSpace)(e))break;s++}if(s<a&&10!==l.charCodeAt(s))return!1;const v=(0,r.normalizeReference)(l.slice(1,u));return!!v&&(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:f,href:p}),e.line=i),!0)}},52961(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(57997),o=n(54439);function s(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let e=0,t=0,n=0,r=0,a=s.length,i=!1;t<a;t++){const c=s.charCodeAt(t);if(!i){if((0,o.isSpace)(c)){n++,9===c?r+=4-r%4:r++;continue}i=!0}10!==c&&t!==a-1||(10!==c&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),i=!1,n=0,r=0,e=t+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}s.prototype.push=function(e,t,n){const o=new r.A(e,t,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o},s.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},s.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},s.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const t=this.src.charCodeAt(e);if(!(0,o.isSpace)(t))break}return e},s.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!(0,o.isSpace)(this.src.charCodeAt(--e)))return e+1;return e},s.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},s.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},s.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const s=new Array(t-e);for(let a=0,i=e;i<t;i++,a++){let e=0;const c=this.bMarks[i];let l,u=c;for(l=i+1<t||r?this.eMarks[i]+1:this.eMarks[i];u<l&&e<n;){const t=this.src.charCodeAt(u);if((0,o.isSpace)(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(u-c<this.tShift[i]))break;e++}u++}s[a]=e>n?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return s.join("")},s.prototype.Token=r.A;const a=s},20712(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(54439);function o(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function s(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),s=!1,a=0,i="";for(;r<n;)124===o&&(s?(i+=e.substring(a,r-1),a=r):(t.push(i+e.substring(a,r)),i="",a=r+1)),s=92===o,r++,o=e.charCodeAt(r);return t.push(i+e.substring(a)),t}function a(e,t,n,a){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;let c=e.bMarks[i]+e.tShift[i];if(c>=e.eMarks[i])return!1;const l=e.src.charCodeAt(c++);if(124!==l&&45!==l&&58!==l)return!1;if(c>=e.eMarks[i])return!1;const u=e.src.charCodeAt(c++);if(124!==u&&45!==u&&58!==u&&!(0,r.isSpace)(u))return!1;if(45===l&&(0,r.isSpace)(u))return!1;for(;c<e.eMarks[i];){const t=e.src.charCodeAt(c);if(124!==t&&45!==t&&58!==t&&!(0,r.isSpace)(t))return!1;c++}let d=o(e,t+1),p=d.split("|");const h=[];for(let e=0;e<p.length;e++){const t=p[e].trim();if(!t){if(0===e||e===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?h.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?h.push("left"):h.push("")}if(d=o(e,t).trim(),-1===d.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;p=s(d),p.length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop();const m=p.length;if(0===m||m!==h.length)return!1;if(a)return!0;const g=e.parentType;e.parentType="table";const f=e.md.block.ruler.getRules("blockquote"),b=[t,0];e.push("table_open","table",1).map=b;e.push("thead_open","thead",1).map=[t,t+1];e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<p.length;t++){const n=e.push("th_open","th",1);h[t]&&(n.attrs=[["style","text-align:"+h[t]]]);const r=e.push("inline","",0);r.content=p[t].trim(),r.children=[],e.push("th_close","th",-1)}let v;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,o=f.length;t<o;t++)if(f[t](e,i,n,!0)){r=!0;break}if(r)break;if(d=o(e,i).trim(),!d)break;if(e.sCount[i]-e.blkIndent>=4)break;if(p=s(d),p.length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),y+=m-p.length,y>65536)break;if(i===t+2){e.push("tbody_open","tbody",1).map=v=[t+2,0]}e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t<m;t++){const n=e.push("td_open","td",1);h[t]&&(n.attrs=[["style","text-align:"+h[t]]]);const r=e.push("inline","",0);r.content=p[t]?p[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=i),e.push("table_close","table",-1),b[1]=i,e.parentType=g,e.line=i,!0}},79417(e,t,n){"use strict";function r(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}n.d(t,{A:()=>r})},85189(e,t,n){"use strict";function r(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}n.d(t,{A:()=>r})},96084(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(54439);function o(e){return/^<a[>\s]/i.test(e)}function s(e){return/^<\/a\s*>/i.test(e)}function a(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,a=t.length;n<a;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let a=t[n].children,i=0;for(let c=a.length-1;c>=0;c--){const l=a[c];if("link_close"!==l.type){if("html_inline"===l.type&&(o(l.content)&&i>0&&i--,s(l.content)&&i++),!(i>0)&&"text"===l.type&&e.md.linkify.test(l.content)){const o=l.content;let s=e.md.linkify.match(o);const i=[];let u=l.level,d=0;s.length>0&&0===s[0].index&&c>0&&"text_special"===a[c-1].type&&(s=s.slice(1));for(let t=0;t<s.length;t++){const n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?"mailto:"!==s[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const c=s[t].index;if(c>d){const t=new e.Token("text","",0);t.content=o.slice(d,c),t.level=u,i.push(t)}const l=new e.Token("link_open","a",1);l.attrs=[["href",r]],l.level=u++,l.markup="linkify",l.info="auto",i.push(l);const p=new e.Token("text","",0);p.content=a,p.level=u,i.push(p);const h=new e.Token("link_close","a",-1);h.level=--u,h.markup="linkify",h.info="auto",i.push(h),d=s[t].lastIndex}if(d<o.length){const t=new e.Token("text","",0);t.content=o.slice(d),t.level=u,i.push(t)}t[n].children=a=(0,r.arrayReplaceAt)(a,c,i)}}else for(c--;a[c].level!==l.level&&"link_open"!==a[c].type;)c--}}}},2699(e,t,n){"use strict";n.d(t,{A:()=>s});const r=/\r\n?|\n/g,o=/\0/g;function s(e){let t;t=e.src.replace(r,"\n"),t=t.replace(o,"�"),e.src=t}},48541(e,t,n){"use strict";n.d(t,{A:()=>u});const r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,o=/\((c|tm|r)\)/i,s=/\((c|tm|r)\)/gi,a={c:"©",r:"®",tm:"™"};function i(e,t){return a[t.toLowerCase()]}function c(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(s,i)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function l(e){let t=0;for(let n=e.length-1;n>=0;n--){const o=e[n];"text"!==o.type||t||r.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===o.type&&"auto"===o.info&&t--,"link_close"===o.type&&"auto"===o.info&&t++}}function u(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(o.test(e.tokens[t].content)&&c(e.tokens[t].children),r.test(e.tokens[t].content)&&l(e.tokens[t].children))}},55834(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(54439);const o=/['"]/,s=/['"]/g;function a(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function i(e,t){let n;const o=[],i={};for(let c=0;c<e.length;c++){const l=e[c],u=e[c].level;for(n=o.length-1;n>=0&&!(o[n].level<=u);n--);if(o.length=n+1,"text"!==l.type)continue;const d=l.content;let p=0;const h=d.length;e:for(;p<h;){s.lastIndex=p;const l=s.exec(d);if(!l)break;let m=!0,g=!0;p=l.index+1;const f="'"===l[0];let b=32;if(l.index-1>=0)b=d.charCodeAt(l.index-1);else for(n=c-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){b=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(p<h)v=d.charCodeAt(p);else for(n=c+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){v=e[n].content.charCodeAt(0);break}const y=(0,r.isMdAsciiPunct)(b)||(0,r.isPunctCharCode)(b),k=(0,r.isMdAsciiPunct)(v)||(0,r.isPunctCharCode)(v),w=(0,r.isWhiteSpace)(b),x=(0,r.isWhiteSpace)(v);if(x?m=!1:k&&(w||y||(m=!1)),w?g=!1:y&&(x||k||(g=!1)),34===v&&'"'===l[0]&&b>=48&&b<=57&&(g=m=!1),m&&g&&(m=y,g=k),m||g){if(g)for(n=o.length-1;n>=0;n--){let e=o[n];if(o[n].level<u)break;if(e.single===f&&o[n].level===u){let r,s;e=o[n],f?(r=t.md.options.quotes[2],s=t.md.options.quotes[3]):(r=t.md.options.quotes[0],s=t.md.options.quotes[1]),a(i,c,l.index,s),a(i,e.token,e.pos,r),o.length=n;continue e}}m?o.push({token:c,pos:l.index,single:f,level:u}):g&&f&&a(i,c,l.index,"’")}else f&&a(i,c,l.index,"’")}}Object.keys(i).forEach(function(t){e[t].content=function(e,t){let n="",r=0;t.sort((e,t)=>e.pos-t.pos);for(let o=0;o<t.length;o++){const s=t[o];n+=e.slice(r,s.pos)+s.ch,r=s.pos+1}return n+e.slice(r)}(e[t].content,i[t])})}function c(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&i(e.tokens[t].children,e)}},37569(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(57997);function o(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=r.A;const s=o},11242(e,t,n){"use strict";function r(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,s=o.length;for(t=0;t<s;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<s;t++)"text"===o[t].type&&t+1<s&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}n.d(t,{A:()=>r})},85469(e,t,n){"use strict";n.d(t,{A:()=>s});const r=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,o=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function s(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const s=e.pos,a=e.posMax;for(;;){if(++n>=a)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const i=e.src.slice(s+1,n);if(o.test(i)){const n=e.md.normalizeLink(i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}if(r.test(i)){const n=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}return!1}},38797(e,t,n){"use strict";function r(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const s=e.src.slice(r,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=s),e.pos+=a,!0;let i,c=n;for(;-1!==(i=e.src.indexOf("`",c));){for(c=i+1;c<o&&96===e.src.charCodeAt(c);)c++;const r=c-i;if(r===a){if(!t){const t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(n,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[r]=i}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}n.d(t,{A:()=>r})},76014(e,t,n){"use strict";function r(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const s=[];for(let a=0;a<n;a++){const n=e[a];if(s.push(0),e[r].marker===n.marker&&o===n.token-1||(r=a),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const i=t[n.marker][(n.open?3:0)+n.length%3];let c=r-s[r]-1,l=c;for(;c>i;c-=s[c]+1){const t=e[c];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=c>0&&!e[c-1].open?s[c-1]+1:0;s[a]=a-c+r,s[c]=r,n.open=!1,t.end=a,t.close=!1,l=-1,o=-2;break}}}-1!==l&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function o(e){const t=e.tokens_meta,n=e.tokens_meta.length;r(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&r(t[e].delimiters)}n.d(t,{A:()=>o})},62206(e,t,n){"use strict";function r(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),i=e.tokens[r.token];i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="";const c=e.tokens[o.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}n.d(t,{A:()=>o});const o={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++){e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;r(e,e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&r(e,t[o].delimiters)}}},41517(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(9405),o=n(54439);const s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,a=/^&([a-z][a-z0-9]{1,31});/i;function i(e,t){const n=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=i)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(s);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=(0,o.isValidEntityCode)(t)?(0,o.fromCodePoint)(t):(0,o.fromCodePoint)(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const o=e.src.slice(n).match(a);if(o){const n=(0,r.hl)(o[0]);if(n!==o[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=o[0],t.info="entity"}return e.pos+=o[0].length,!0}}}return!1}},17785(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(54439);const o=[];for(let e=0;e<256;e++)o.push(0);function s(e,t){let n=e.pos;const s=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=s)return!1;let a=e.src.charCodeAt(n);if(10===a){for(t||e.push("hardbreak","br",0),n++;n<s&&(a=e.src.charCodeAt(n),(0,r.isSpace)(a));)n++;return e.pos=n,!0}let i=e.src[n];if(a>=55296&&a<=56319&&n+1<s){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(i+=e.src[n+1],n++)}const c="\\"+i;if(!t){const t=e.push("text_special","",0);a<256&&0!==o[a]?t.content=i:t.content=c,t.markup=c,t.info="escape"}return e.pos=n+1,!0}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){o[e.charCodeAt(0)]=1})},70322(e,t,n){"use strict";function r(e){let t,n,r=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<s&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}n.d(t,{A:()=>r})},7105(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(58105);function o(e,t){if(!e.md.options.html)return!1;const n=e.posMax,o=e.pos;if(60!==e.src.charCodeAt(o)||o+2>=n)return!1;const s=e.src.charCodeAt(o+1);if(33!==s&&63!==s&&47!==s&&!function(e){const t=32|e;return t>=97&&t<=122}(s))return!1;const a=e.src.slice(o).match(r.l);if(!a)return!1;if(!t){const t=e.push("html_inline","",0);t.content=a[0],i=t.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=a[0].length,!0}},74427(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t){let n,o,s,a,i,c,l,u,d="";const p=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const m=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(a=g+1,a<h&&40===e.src.charCodeAt(a)){for(a++;a<h&&(n=e.src.charCodeAt(a),(0,r.isSpace)(n)||10===n);a++);if(a>=h)return!1;for(u=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok&&(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?a=c.pos:d=""),u=a;a<h&&(n=e.src.charCodeAt(a),(0,r.isSpace)(n)||10===n);a++);if(c=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<h&&u!==a&&c.ok)for(l=c.str,a=c.pos;a<h&&(n=e.src.charCodeAt(a),(0,r.isSpace)(n)||10===n);a++);else l="";if(a>=h||41!==e.src.charCodeAt(a))return e.pos=p,!1;a++}else{if(void 0===e.env.references)return!1;if(a<h&&91===e.src.charCodeAt(a)?(u=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(u,a++):a=g+1):a=g+1,s||(s=e.src.slice(m,g)),i=e.env.references[(0,r.normalizeReference)(s)],!i)return e.pos=p,!1;d=i.href,l=i.title}if(!t){o=e.src.slice(m,g);const t=[];e.md.inline.parse(o,e.md,e.env,t);const n=e.push("image","img",0),r=[["src",d],["alt",""]];n.attrs=r,n.children=t,n.content=o,l&&r.push(["title",l])}return e.pos=a,e.posMax=h,!0}},22128(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t){let n,o,s,a,i="",c="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const d=e.pos,p=e.posMax,h=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let g=m+1;if(g<p&&40===e.src.charCodeAt(g)){for(u=!1,g++;g<p&&(n=e.src.charCodeAt(g),(0,r.isSpace)(n)||10===n);g++);if(g>=p)return!1;if(l=g,s=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),s.ok){for(i=e.md.normalizeLink(s.str),e.md.validateLink(i)?g=s.pos:i="",l=g;g<p&&(n=e.src.charCodeAt(g),(0,r.isSpace)(n)||10===n);g++);if(s=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<p&&l!==g&&s.ok)for(c=s.str,g=s.pos;g<p&&(n=e.src.charCodeAt(g),(0,r.isSpace)(n)||10===n);g++);}(g>=p||41!==e.src.charCodeAt(g))&&(u=!0),g++}if(u){if(void 0===e.env.references)return!1;if(g<p&&91===e.src.charCodeAt(g)?(l=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?o=e.src.slice(l,g++):g=m+1):g=m+1,o||(o=e.src.slice(h,m)),a=e.env.references[(0,r.normalizeReference)(o)],!a)return e.pos=d,!1;i=a.href,c=a.title}if(!t){e.pos=h,e.posMax=m;const t=[["href",i]];e.push("link_open","a",1).attrs=t,c&&t.push(["title",c]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=p,!0}},44938(e,t,n){"use strict";n.d(t,{A:()=>o});const r=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function o(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const o=e.pending.match(r);if(!o)return!1;const s=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!a)return!1;let i=a.url;if(i.length<=s.length)return!1;let c=i.length;for(;c>0&&42===i.charCodeAt(c-1);)c--;c!==i.length&&(i=i.slice(0,c));const l=e.md.normalizeLink(i);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=i.length-s.length,!0}},94076(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(54439);function o(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const o=e.pending.length-1,s=e.posMax;if(!t)if(o>=0&&32===e.pending.charCodeAt(o))if(o>=1&&32===e.pending.charCodeAt(o-1)){let t=o-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<s&&(0,r.isSpace)(e.src.charCodeAt(n));)n++;return e.pos=n,!0}},60057(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(57997),o=n(54439);function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}s.prototype.pushPending=function(){const e=new r.A("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();const o=new r.A(e,t,n);let s=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(s),o},s.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e);let s;if(0===e)s=32;else if(1===e)s=this.src.charCodeAt(0),55296==(63488&s)&&(s=65533);else if(s=this.src.charCodeAt(e-1),56320==(64512&s)){const t=this.src.charCodeAt(e-2);s=55296==(64512&t)?65536+(t-55296<<10)+(s-56320):65533}else 55296==(64512&s)&&(s=65533);let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;const i=a-e;let c=a<n?this.src.charCodeAt(a):32;if(55296==(64512&c)){const e=this.src.charCodeAt(a+1);c=56320==(64512&e)?65536+(c-55296<<10)+(e-56320):65533}else 56320==(64512&c)&&(c=65533);const l=(0,o.isMdAsciiPunct)(s)||(0,o.isPunctCharCode)(s),u=(0,o.isMdAsciiPunct)(c)||(0,o.isPunctCharCode)(c),d=(0,o.isWhiteSpace)(s),p=(0,o.isWhiteSpace)(c),h=!p&&(!u||d||l),m=!d&&(!l||p||u);return{can_open:h&&(t||!m||l),can_close:m&&(t||!h||u),length:i}},s.prototype.Token=r.A;const a=s},50925(e,t,n){"use strict";function r(e,t){let n;const r=[],o=t.length;for(let s=0;s<o;s++){const o=t[s];if(126!==o.marker)continue;if(-1===o.end)continue;const a=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&r.push(a.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}n.d(t,{A:()=>o});const o={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let s=o.length;const a=String.fromCharCode(r);if(s<2)return!1;let i;s%2&&(i=e.push("text","",0),i.content=a,s--);for(let t=0;t<s;t+=2)i=e.push("text","",0),i.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;r(e,e.delimiters);for(let o=0;o<n;o++)t[o]&&t[o].delimiters&&r(e,t[o].delimiters)}}},68597(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function o(e,t){let n=e.pos;for(;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}n.d(t,{A:()=>o})},57997(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}n.d(t,{A:()=>o}),r.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const o=r},25315(e,t,n){"use strict";n.r(t),n.d(t,{decode:()=>r.A,encode:()=>o.A,format:()=>s.A,parse:()=>a.A});var r=n(51227),o=n(10963),s=n(5840),a=n(26786)},51227(e,t,n){"use strict";n.d(t,{A:()=>s});const r={};function o(e,t){"string"!=typeof t&&(t=o.defaultChars);const n=function(e){let t=r[e];if(t)return t;t=r[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const s=parseInt(e.slice(r+1,r+3),16);if(s<128)t+=n[s];else{if(192==(224&s)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=s<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&s)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=s<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&s)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),a=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&a)){let e=s<<18&1835008|n<<12&258048|o<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}o.defaultChars=";/?:@&=+$,#",o.componentChars="";const s=o},10963(e,t,n){"use strict";n.d(t,{A:()=>s});const r={};function o(e,t,n){"string"!=typeof t&&(n=t,t=o.defaultChars),void 0===n&&(n=!0);const s=function(e){let t=r[e];if(t)return t;t=r[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let a="";for(let t=0,r=e.length;t<r;t++){const o=e.charCodeAt(t);if(n&&37===o&&t+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))a+=e.slice(t,t+3),t+=2;else if(o<128)a+=s[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<r){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){a+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}a+="%EF%BF%BD"}else a+=encodeURIComponent(e[t])}return a}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()";const s=o},5840(e,t,n){"use strict";function r(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}n.d(t,{A:()=>r})},26786(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}n.d(t,{A:()=>g});const o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(i),l=["%","/","?",";","#"].concat(c),u=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){let n,r,s,i=e;if(i=i.trim(),!t&&1===e.split("#").length){const e=a.exec(i);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let c=o.exec(i);if(c&&(c=c[0],n=c.toLowerCase(),this.protocol=c,i=i.substr(c.length)),(t||c||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s="//"===i.substr(0,2),!s||c&&h[c]||(i=i.substr(2),this.slashes=!0)),!h[c]&&(s||c&&!m[c])){let e,t,n=-1;for(let e=0;e<u.length;e++)r=i.indexOf(u[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?i.lastIndexOf("@"):i.lastIndexOf("@",n),-1!==t&&(e=i.slice(0,t),i=i.slice(t+1),this.auth=e),n=-1;for(let e=0;e<l.length;e++)r=i.indexOf(l[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=i.length),":"===i[n-1]&&n--;const o=i.slice(0,n);i=i.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(d)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(d)){const r=e.slice(0,t),o=e.slice(t+1),s=n.match(p);s&&(r.push(s[1]),o.unshift(s[2])),o.length&&(i=o.join(".")+i),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const g=i.indexOf("#");-1!==g&&(this.hash=i.substr(g),i=i.slice(0,g));const f=i.indexOf("?");return-1!==f&&(this.search=i.substr(f),i=i.slice(0,f)),i&&(this.pathname=i),m[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){let t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const g=function(e,t){if(e&&e instanceof r)return e;const n=new r;return n.parse(e,t),n}},86221(e,t,n){"use strict";n.d(t,{X:()=>j,h:()=>C});var r,o=n(51609),s=Object.defineProperty,a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,l=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))i.call(t,n)&&l(e,n,t[n]);if(a)for(var n of a(t))c.call(t,n)&&l(e,n,t[n]);return e},d=(e,t)=>{var n={};for(var r in e)i.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&a)for(var r of a(e))t.indexOf(r)<0&&c.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class t{constructor(e,n,r,s){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(s<-1||s>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const i=this.addEccAndInterleave(r);if(this.drawCodewords(i),-1==s){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(s=t,e=n),this.applyMask(t)}}o(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,r,s=1,i=40,c=-1,l=!0){if(!(t.MIN_VERSION<=s&&s<=i&&i<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=s;;u++){const n=8*t.getNumDataCodewords(u,r),o=a.getTotalBits(e,u);if(o<=n){d=o;break}if(u>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(r=e);let p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(u),p);for(const e of t.getData())p.push(e)}o(p.length==d);const h=8*t.getNumDataCodewords(u,r);o(p.length<=h),n(0,Math.min(4,h-p.length),p),n(0,(8-p.length%8)%8,p),o(p.length%8==0);for(let e=236;p.length<h;e^=253)n(e,8,p);let m=[];for(;8*m.length<p.length;)m.push(0);return p.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const s=21522^(t<<10|n);o(s>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(s,e));this.setFunctionModule(8,7,r(s,6)),this.setFunctionModule(8,8,r(s,7)),this.setFunctionModule(7,8,r(s,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(s,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(s,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(s,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,s=Math.floor(e/3);this.setFunctionModule(o,s,n),this.setFunctionModule(s,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),s=e+r,a=t+n;0<=s&&s<this.size&&0<=a&&a<this.size&&this.setFunctionModule(s,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const s=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],i=Math.floor(t.getNumRawDataModules(n)/8),c=s-i%s,l=Math.floor(i/s);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<s;n++){let o=e.slice(r,r+l-a+(n<c?0:1));r+=o.length;const s=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),u.push(o.concat(s))}let p=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=l-a||n>=c)&&p.push(t[e])});return o(p.length==i),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let s=0;s<2;s++){const a=t-s,i=!(t+1&2)?this.size-1-o:o;!this.isFunction[i][a]&&n<8*e.length&&(this.modules[i][a]=r(e[n>>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,s=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,s),r||(e+=this.finderPenaltyCountPatterns(s)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,s)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,s=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,s),r||(e+=this.finderPenaltyCountPatterns(s)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,s)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce((e,t)=>e+(t?1:0),n);const r=this.size*this.size,s=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=s&&s<=9),e+=s*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map(e=>0);for(const o of e){const e=o^r.shift();r.push(0),n.forEach((n,o)=>r[o]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}e.QrCode=t;const s=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(t){let r=[];for(const e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let r=[];for(let e=0;e<t.length;){const o=Math.min(t.length-e,3);n(parseInt(t.substring(e,e+o),10),3*o+1,r),e+=o}return new e(e.Mode.NUMERIC,t.length,r)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let r,o=[];for(r=0;r+2<=t.length;r+=2){let s=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r));s+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),n(s,11,o)}return r<t.length&&n(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let r=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)n(t,8,r);else if(t<16384)n(2,2,r),n(t,14,r);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");n(6,3,r),n(t,21,r)}return new e(e.Mode.ECI,0,r)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2);return t}};s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=s;e.QrSegment=s})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2);e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]);e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(r||(r={}));var p=r,h={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},m=128,g="L",f="#FFFFFF",b="#000000",v=!1,y=1;function k(e,t=0){const n=[];return e.forEach(function(e,r){let o=null;e.forEach(function(s,a){if(!s&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)s&&null===o&&(o=a);else{if(!s)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}})}),n.join("")}function w(e,t){return e.slice().map((e,n)=>n<t.y||n>=t.y+t.h?e:e.map((e,n)=>(n<t.x||n>=t.x+t.w)&&e))}function x({value:e,level:t,minVersion:n,includeMargin:r,marginSize:s,imageSettings:a,size:i,boostLevel:c}){let l=o.useMemo(()=>{const r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...p.QrSegment.makeSegments(t)),e),[]);return p.QrCode.encodeSegments(r,h[t],n,void 0,void 0,c)},[e,t,n,c]);const{cells:u,margin:d,numCells:m,calculatedImageSettings:g}=o.useMemo(()=>{let e=l.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(r,s),n=e.length+2*t,o=function(e,t,n,r){if(null==r)return null;const o=e.length+2*n,s=Math.floor(.1*t),a=o/t,i=(r.width||s)*a,c=(r.height||s)*a,l=null==r.x?e.length/2-i/2:r.x*a,u=null==r.y?e.length/2-c/2:r.y*a,d=null==r.opacity?1:r.opacity;let p=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);p={x:e,y:t,w:Math.ceil(i+l-e),h:Math.ceil(c+u-t)}}return{x:l,y:u,h:c,w:i,excavation:p,opacity:d,crossOrigin:r.crossOrigin}}(e,i,t,a);return{cells:e,margin:t,numCells:n,calculatedImageSettings:o}},[l,i,a,r,s]);return{qrcode:l,margin:d,cells:u,numCells:m,calculatedImageSettings:g}}var _=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),j=o.forwardRef(function(e,t){const n=e,{value:r,size:s=m,level:a=g,bgColor:i=f,fgColor:c=b,includeMargin:l=v,minVersion:p=y,boostLevel:h,marginSize:j,imageSettings:C}=n,A=d(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:S}=A,E=d(A,["style"]),T=null==C?void 0:C.src,N=o.useRef(null),P=o.useRef(null),B=o.useCallback(e=>{N.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[I,M]=o.useState(!1),{margin:R,cells:L,numCells:D,calculatedImageSettings:F}=x({value:r,level:a,minVersion:p,boostLevel:h,includeMargin:l,marginSize:j,imageSettings:C,size:s});o.useEffect(()=>{if(null!=N.current){const e=N.current,t=e.getContext("2d");if(!t)return;let n=L;const r=P.current,o=null!=F&&null!==r&&r.complete&&0!==r.naturalHeight&&0!==r.naturalWidth;o&&null!=F.excavation&&(n=w(L,F.excavation));const a=window.devicePixelRatio||1;e.height=e.width=s*a;const l=s/D*a;t.scale(l,l),t.fillStyle=i,t.fillRect(0,0,D,D),t.fillStyle=c,_?t.fill(new Path2D(k(n,R))):L.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+R,n+R,1,1)})}),F&&(t.globalAlpha=F.opacity),o&&t.drawImage(r,F.x+R,F.y+R,F.w,F.h)}}),o.useEffect(()=>{M(!1)},[T]);const O=u({height:s,width:s},S);let z=null;return null!=T&&(z=o.createElement("img",{src:T,key:T,style:{display:"none"},onLoad:()=>{M(!0)},ref:P,crossOrigin:null==F?void 0:F.crossOrigin})),o.createElement(o.Fragment,null,o.createElement("canvas",u({style:O,height:s,width:s,ref:B,role:"img"},E)),z)});j.displayName="QRCodeCanvas";var C=o.forwardRef(function(e,t){const n=e,{value:r,size:s=m,level:a=g,bgColor:i=f,fgColor:c=b,includeMargin:l=v,minVersion:p=y,boostLevel:h,title:_,marginSize:j,imageSettings:C}=n,A=d(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:S,cells:E,numCells:T,calculatedImageSettings:N}=x({value:r,level:a,minVersion:p,boostLevel:h,includeMargin:l,marginSize:j,imageSettings:C,size:s});let P=E,B=null;null!=C&&null!=N&&(null!=N.excavation&&(P=w(E,N.excavation)),B=o.createElement("image",{href:C.src,height:N.h,width:N.w,x:N.x+S,y:N.y+S,preserveAspectRatio:"none",opacity:N.opacity,crossOrigin:N.crossOrigin}));const I=k(P,S);return o.createElement("svg",u({height:s,width:s,viewBox:`0 0 ${T} ${T}`,ref:t,role:"img"},A),!!_&&o.createElement("title",null,_),o.createElement("path",{fill:i,d:`M0,0 h${T}v${T}H0z`,shapeRendering:"crispEdges"}),o.createElement("path",{fill:c,d:I,shapeRendering:"crispEdges"}),B)});C.displayName="QRCodeSVG"},51526(e,t,n){"use strict";n.d(t,{$:()=>b});var r=n(48816),o=n(13022),s=n(20195),a=n(86087),i=n(27723),c=n(10790),l="data-wp-hash";function u(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=u();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)d(e,n,r)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const r=u();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(l,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}function p(e,t){const n=u();n.styles.set(e,t);for(const r of n.documents.keys())d(r,e,t)}p("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var h={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};p("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var m="_336cd3e4e743482f__box-sizing";p("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var g="abc777e9713fa711__outset-ring--focus-except-active";p("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var f="_6defc79820e382c6__button",b=(0,a.forwardRef)(function({tone:e="brand",variant:t="solid",size:n="default",className:l,focusableWhenDisabled:u=!0,disabled:d,loading:p,loadingAnnouncement:b=(0,i.__)("Loading","jetpack"),children:v,...y},k){const w=(0,o.A)(f,m,g,"unstyled"!==t&&h.button,h[`is-${e}`],h[`is-${t}`],h[`is-${n}`],p&&h["is-loading"],l);return(0,a.useEffect)(()=>{p&&b&&(0,s.speak)(b)},[p,b]),(0,c.jsx)(r.$,{ref:k,className:w,focusableWhenDisabled:u,disabled:d??p,...y,children:v})})},26313(e,t,n){"use strict";n.d(t,{a:()=>d});var r=n(13022),o=n(86087),s=n(71100),a=n(10790),i="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(i,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)})("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var u="_9f6fc6553aeb36fe__icon",d=(0,o.forwardRef)(function({className:e,icon:t,...n},o){return(0,a.jsx)(s.I,{ref:o,icon:t,className:(0,r.A)(u,e),size:24,...n})})},72326(e,t,n){"use strict";n.d(t,{$:()=>s});var r=n(51526),o=n(26313);o.a.displayName="Button.Icon";var s=Object.assign(r.$,{Icon:o.a})},33180(e,t,n){"use strict";n.d(t,{K:()=>b});var r=n(13022),o=n(86087),s=n(72326),a=n(71100),i=n(31011),c=n(3245),l=n(7231),u=n(66161),d=n(10790),p="data-wp-hash";function h(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=h();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)m(e,n,r)}(document)),e.__wpStyleRuntime}function m(e,t,n){if(!e.head)return;const r=h();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${p}]`))if(n.getAttribute(p)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(p,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=h();n.styles.set(e,t);for(const r of n.documents.keys())m(r,e,t)})("c5cdafb1bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");var g="_28cfdc260e755391__icon-button",f="f1c70d719989a85a__icon",b=(0,o.forwardRef)(function({label:e,className:t,children:n,disabled:o,focusableWhenDisabled:p=!0,icon:h,size:m,shortcut:b,positioner:v,"aria-describedby":y,"aria-keyshortcuts":k,...w},x){const _=(0,r.A)(g,t),{descriptionId:j,targetProps:C}=(0,u.ze)({"aria-describedby":y,"aria-keyshortcuts":k,shortcut:b});return(0,d.jsxs)(l.b,{children:[(0,d.jsxs)(c.l,{ref:x,...C,disabled:o&&!p,render:(0,d.jsx)(s.$,{...w,size:m,"aria-label":e,disabled:o,focusableWhenDisabled:p}),className:_,children:[(0,d.jsx)(a.I,{icon:h,size:24,className:f}),b&&j&&(0,d.jsx)(u.w7,{descriptionId:j,shortcut:b})]}),(0,d.jsxs)(i.z,{positioner:v,children:[e,b&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,d.jsx)(u.my,{shortcut:b})]})]})]})})},71100(e,t,n){"use strict";n.d(t,{I:()=>a});var r=n(86087),o=n(5573),s=n(10790),a=(0,r.forwardRef)(function({icon:e,size:t=24,...n},r){return(0,s.jsx)(o.SVG,{ref:r,...e.props,...n,width:t,height:t})})},57273(e,t,n){"use strict";n.d(t,{N:()=>b});var r=n(23280),o=n(67720),s=n(13022),a=n(86087),i=n(27723),c=n(10790),l="data-wp-hash";function u(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=u();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)d(e,n,r)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const r=u();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(l,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}function p(e,t){const n=u();n.styles.set(e,t);for(const r of n.documents.keys())d(r,e,t)}p("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var h="_336cd3e4e743482f__box-sizing";p("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var m="abc777e9713fa711__outset-ring--focus-except-active";p("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var g={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};p("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var f="_2c0831b0499dbd6e__a",b=(0,a.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:a=!1,render:l,className:u,...d},p){return(0,r.C)({render:l,defaultTagName:"a",ref:p,props:(0,o.v6)(d,{className:(0,s.A)(f,h,m,"unstyled"!==t&&g.link,"unstyled"!==t&&g[`is-${n}`],"unstyled"===t&&g["is-unstyled"],u),target:a?"_blank":void 0,children:(0,c.jsxs)(c.Fragment,{children:[e,a&&(0,c.jsx)("span",{className:g["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,i.__)("(opens in a new tab)","jetpack")})]})})})})},80559(e,t,n){"use strict";n.d(t,{T:()=>s});var r=n(13053),{lock:o,unlock:s}=(0,r.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/ui")},38665(e,t,n){"use strict";n.d(t,{t:()=>p});var r=n(13022),o=n(86087),s=n(57273),a=n(39968),i=n(10790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)u(e,n,r)}(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const r=l();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(c,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const r of n.documents.keys())u(r,e,t)})("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var d="d329e7416d368d31__action-link",p=(0,o.forwardRef)(function({className:e,render:t,...n},o){return(0,i.jsx)(a.E,{ref:o,className:(0,r.A)(d,e),...n,variant:"body-md",render:(0,i.jsx)(s.N,{tone:"neutral",variant:"default",render:t})})})},61475(e,t,n){"use strict";n.d(t,{E:()=>u});var r=n(86087),o=n(23280),s=n(67720),a="data-wp-hash";function i(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=i();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)c(e,n,r)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const r=i();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(a,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=i();n.styles.set(e,t);for(const r of n.documents.keys())c(r,e,t)})("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var l="_0a1270dcdd79c031__actions",u=(0,r.forwardRef)(function({render:e,...t},n){return(0,o.C)({defaultTagName:"div",render:e,ref:n,props:(0,s.v6)({className:l},t)})})},75372(e,t,n){"use strict";n.d(t,{U:()=>h});var r=n(86087),o=n(27723),s=n(65995),a=n(13022),i=n(33180),c=n(10790),l="data-wp-hash";function u(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=u();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)d(e,n,r)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const r=u();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(l,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=u();n.styles.set(e,t);for(const r of n.documents.keys())d(r,e,t)})("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var p="_487e6a5c1375f7dc__close-icon",h=(0,r.forwardRef)(function({className:e,icon:t=s.A,label:n=(0,o.__)("Dismiss","jetpack"),...r},l){return(0,c.jsx)(i.K,{...r,ref:l,className:(0,a.A)(p,e),variant:"minimal",size:"small",tone:"neutral",icon:t,label:n})})},61868(e,t,n){"use strict";n.d(t,{V:()=>d});var r=n(86087),o=n(13022),s=n(39968),a=n(10790),i="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(i,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)})("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var u="_1904b570a89bb815__description",d=(0,r.forwardRef)(function({className:e,...t},n){return(0,a.jsx)(s.E,{ref:n,variant:"body-md",className:(0,o.A)(u,e),...t})})},88050(e,t,n){"use strict";n.d(t,{b:()=>_});var r=n(20195),o=n(86087),s=n(53758),a=n(49099),i=n(28847),c=n(42243),l=n(23280),u=n(67720),d=n(13022),p=n(71100),h=n(10790),m="data-wp-hash";function g(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=g();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)f(e,n,r)}(document)),e.__wpStyleRuntime}function f(e,t,n){if(!e.head)return;const r=g();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${m}]`))if(n.getAttribute(m)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(m,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}function b(e,t){const n=g();n.styles.set(e,t);for(const r of n.documents.keys())f(r,e,t)}b("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var v="_336cd3e4e743482f__box-sizing";b("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var y={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},k={neutral:null,info:i.A,warning:s.A,success:c.A,error:a.A};function w(e){return"error"===e?"assertive":"polite"}function x(e,t){const n=function(e){if(e){if("string"==typeof e)return e;try{return(0,o.renderToString)(e)}catch{return}}}(e);(0,o.useEffect)(()=>{n&&(0,r.speak)(n,t)},[n,t])}var _=(0,o.forwardRef)(function({intent:e="neutral",children:t,icon:n,spokenMessage:r=t,politeness:o=w(e),render:s,...a},i){x(r,o);const c=null===n?null:n??k[e],m=(0,d.A)(y.notice,y[`is-${e}`],v);return(0,l.C)({defaultTagName:"div",render:s,ref:i,props:(0,u.v6)({className:m,children:(0,h.jsxs)(h.Fragment,{children:[t,c&&(0,h.jsx)(p.I,{className:y.icon,icon:c})]})},a)})})},42472(e,t,n){"use strict";n.d(t,{h:()=>d});var r=n(86087),o=n(13022),s=n(39968),a=n(10790),i="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(i,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)})("726c480820","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._1904b570a89bb815__description{text-wrap:pretty}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#a9c6e7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bc7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#94d29e);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#dab1aa);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var u="b5397fb9d05389e3__title",d=(0,r.forwardRef)(function({className:e,...t},n){return(0,a.jsx)(s.E,{ref:n,variant:"heading-md",className:(0,o.A)(u,e),...t})})},21220(e,t,n){"use strict";n.d(t,{B:()=>d});var r=n(23280),o=n(67720),s=n(86087),a="data-wp-hash";function i(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=i();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)c(e,n,r)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const r=i();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(a,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=i();n.styles.set(e,t);for(const r of n.documents.keys())c(r,e,t)})("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var l="_19ce0419607e1896__stack",u={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},d=(0,s.forwardRef)(function({direction:e,gap:t,align:n,justify:s,wrap:a,render:i,...c},d){const p={gap:t&&u[t],alignItems:n,justifyContent:s,flexDirection:e,flexWrap:a};return(0,r.C)({render:i,ref:d,props:(0,o.v6)(c,{style:p,className:l})})})},39968(e,t,n){"use strict";n.d(t,{E:()=>m});var r=n(23280),o=n(67720),s=n(13022),a=n(86087),i="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(i,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}function u(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)}u("a495f9d138",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var d={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};u("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var p="_43cec3e1eec1066d__p",h="e97669c6d9a38497__heading",m=(0,a.forwardRef)(function({variant:e="body-md",render:t,className:n,...a},i){return(0,r.C)({render:t,defaultTagName:"span",ref:i,props:(0,o.v6)(a,{className:(0,s.A)(d.text,h,p,d[e],n)})})})},31011(e,t,n){"use strict";n.d(t,{z:()=>f});var r=n(13022),o=n(59801),s=n(86087),a=n(18937),i=n(33687),c=n(97805),l=n(26750),u=n(10790),d="data-wp-hash";function p(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=p();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)h(e,n,r)}(document)),e.__wpStyleRuntime}function h(e,t,n){if(!e.head)return;const r=p();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${d}]`))if(n.getAttribute(d)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(d,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=p();n.styles.set(e,t);for(const r of n.documents.keys())h(r,e,t)})("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var m="_50096b232db7709d__popup",g={background:"#1e1e1e"},f=(0,s.forwardRef)(function({portal:e,positioner:t,children:n,className:s,...d},p){const h=(0,u.jsx)(l.N,{color:g,children:(0,u.jsx)(o.o,{ref:p,className:(0,r.A)(m,s),...d,children:n})}),f=(0,c.o)(t,(0,u.jsx)(i.P,{}),h);return(0,c.o)(e,(0,u.jsx)(a.Z,{}),f)})},18937(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(68817),o=n(86087),s=n(17725),a=n(10790),i=(0,o.forwardRef)(function({container:e,...t},n){return(0,a.jsx)(r.K,{container:e??(0,s.un)(),...t,ref:n})})},33687(e,t,n){"use strict";n.d(t,{P:()=>h});var r=n(13022),o=n(10217),s=n(86087),a=n(10790),i="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)l(e,n,r)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const r=c();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(i,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}function u(e,t){const n=c();n.styles.set(e,t);for(const r of n.documents.keys())l(r,e,t)}u("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var d="_336cd3e4e743482f__box-sizing";u("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var p="_480b748dd3510e64__positioner",h=(0,s.forwardRef)(function({align:e="center",className:t,side:n="top",sideOffset:s=4,...i},c){return(0,a.jsx)(o.o,{ref:c,align:e,side:n,sideOffset:s,...i,className:(0,r.A)(d,p,t)})})},7231(e,t,n){"use strict";n.d(t,{b:()=>a});var r=n(94681),o=n(350),s=n(10790);function a(e){return(0,s.jsx)(o.F,{children:(0,s.jsx)(r.s,{...e})})}},3245(e,t,n){"use strict";n.d(t,{l:()=>a});var r=n(89933),o=n(86087),s=n(10790),a=(0,o.forwardRef)(function(e,t){return(0,s.jsx)(r.k,{ref:t,...e})})},350(e,t,n){"use strict";n.d(t,{F:()=>a});var r=n(87759),o=n(27723),s=n(10790);function a({children:e}){return(0,s.jsx)(r.F,{direction:(0,o.isRTL)()?"rtl":"ltr",children:e})}},66161(e,t,n){"use strict";n.d(t,{my:()=>l,w7:()=>c,ze:()=>i});var r=n(86087),o=n(27723),s=n(16064),a=n(10790);function i({"aria-describedby":e,"aria-keyshortcuts":t,shortcut:n}){const o=(0,r.useId)(),s=n?o:void 0,a=[e,s].filter(Boolean).join(" ");return{descriptionId:s,targetProps:{"aria-describedby":a||void 0,"aria-keyshortcuts":n?.ariaKeyShortcut??t}}}var c=(0,r.forwardRef)(function({descriptionId:e,shortcut:t},n){return(0,a.jsx)(s.s,{id:e,"aria-hidden":"true",render:(0,a.jsx)("span",{ref:n}),children:(0,o.sprintf)(/* translators: %s: keyboard shortcut. */ /* translators: %s: keyboard shortcut. */ | |
| 197 | +(0,o.__)("Keyboard shortcut: %s","jetpack"),t.label??t.ariaKeyShortcut)})}),l=(0,r.forwardRef)(function({className:e,shortcut:t},n){return(0,a.jsx)("span",{ref:n,"aria-hidden":"true",className:e,dir:"ltr",children:t.displayShortcut})})},97805(e,t,n){"use strict";n.d(t,{o:()=>o});var r=n(86087);function o(e,t,n){return(0,r.cloneElement)(e??t,{children:n})}},26750(e,t,n){"use strict";var r;n.d(t,{N:()=>a});var o=n(21052),s=n(80559);var a=function(){const e=r||(r=n.t(o,2));if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return(0,s.T)(e.privateApis).ThemeProvider}()},17725(e,t,n){"use strict";n.d(t,{un:()=>u});var r="data-wp-hash";function o(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=o();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)s(e,n,r)}(document)),e.__wpStyleRuntime}function s(e,t,n){if(!e.head)return;const s=o();let a=s.injectedStyles.get(e);if(a||(a=new Set,s.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${r}]`))if(n.getAttribute(r)===t)return!0;return!1}(e,t))return void a.add(t);const i=e.createElement("style");i.setAttribute(r,t),i.appendChild(e.createTextNode(n)),e.head.appendChild(i),a.add(t)}(function(e,t){const n=o();n.styles.set(e,t);for(const r of n.documents.keys())s(r,e,t)})("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var a="_11fc52b637ff8a7e__slot",i="data-wp-compat-overlay-slot";var c=null;function l(e){return e.setAttribute("aria-hidden","false"),e}function u(){if("undefined"==typeof window)return;if(!function(){let e;try{e=window.top?.wp}catch{}const t=e??window.wp;return"object"==typeof t?.components&&null!==t.components}()&&!0!==window.__wpUiCompatOverlaySlotEnabled)return;const e="undefined"==typeof document?null:document;if(!e||!e.body)return;if(c&&c.ownerDocument===e&&c.isConnected)return l(c);const t=e.querySelector(`[${i}]`);return t instanceof HTMLDivElement?c=l(t):(c?.isConnected&&c.remove(),c=l(function(e){const t=e.createElement("div");return t.setAttribute(i,""),a&&t.classList.add(a),e.body.appendChild(t),t}(e)),c)}},16064(e,t,n){"use strict";n.d(t,{s:()=>u});var r=n(23280),o=n(67720),s=n(86087),a="data-wp-hash";function i(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=i();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)c(e,n,r)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const r=i();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(a,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}(function(e,t){const n=i();n.styles.set(e,t);for(const r of n.documents.keys())c(r,e,t)})("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var l="f37b9e2e191ebd66__visually-hidden",u=(0,s.forwardRef)(function({render:e,...t},n){return(0,r.C)({render:e,ref:n,props:(0,o.v6)({className:l},t,{"data-visually-hidden":""})})})},79654(e,t,n){"use strict";n.d(t,{N:()=>b});var r=n(899),o=n(45339),s=n(13022),a=n(86087),i=n(27723),c=n(10790),l="data-wp-hash";function u(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=u();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,r]of t.styles)d(e,n,r)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const r=u();let o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void o.add(t);const s=e.createElement("style");s.setAttribute(l,t),s.appendChild(e.createTextNode(n)),e.head.appendChild(s),o.add(t)}function p(e,t){const n=u();n.styles.set(e,t);for(const r of n.documents.keys())d(r,e,t)}p("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var h="_336cd3e4e743482f__box-sizing";p("96553466c8","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._64de9947bf305b7a__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var m="abc777e9713fa711__outset-ring--focus-except-active";p("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var g={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};p("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var f="_2c0831b0499dbd6e__a",b=(0,a.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:a=!1,render:l,className:u,...d},p){return(0,r.C)({render:l,defaultTagName:"a",ref:p,props:(0,o.v6)(d,{className:(0,s.A)(f,h,m,"unstyled"!==t&&g.link,"unstyled"!==t&&g[`is-${n}`],"unstyled"===t&&g["is-unstyled"],u),target:a?"_blank":void 0,children:(0,c.jsxs)(c.Fragment,{children:[e,a&&(0,c.jsx)("span",{className:g["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,i.__)("(opens in a new tab)","jetpack")})]})})})})},80786(e,t,n){"use strict";n.d(t,{A:()=>r});const r=/[\0-\x1F\x7F-\x9F]/},14935(e,t,n){"use strict";n.d(t,{A:()=>r});const r=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},60804(e,t,n){"use strict";n.d(t,{A:()=>r});const r=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},47795(e,t,n){"use strict";n.d(t,{A:()=>r});const r=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/},3506(e,t,n){"use strict";n.d(t,{A:()=>r});const r=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},68407(e,t,n){"use strict";n.r(t),n.d(t,{Any:()=>r.A,Cc:()=>o.A,Cf:()=>s.A,P:()=>a.A,S:()=>i.A,Z:()=>c.A});var r=n(60905),o=n(80786),s=n(14935),a=n(60804),i=n(47795),c=n(3506)},60905(e,t,n){"use strict";n.d(t,{A:()=>r});const r=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},38377(e){"use strict";e.exports=JSON.parse('{"T":{"White":"#fff","Black":"#000","Gray 0":"#f6f7f7","Gray 5":"#dcdcde","Gray 10":"#c3c4c7","Gray 20":"#a7aaad","Gray 30":"#8c8f94","Gray 40":"#787c82","Gray 50":"#646970","Gray 60":"#50575e","Gray 70":"#3c434a","Gray 80":"#2c3338","Gray 90":"#1d2327","Gray 100":"#101517","Gray":"#646970","Blue 0":"#fbfcfe","Blue 5":"#f7f8fe","Blue 10":"#d6ddf9","Blue 20":"#adbaf3","Blue 30":"#7b90ff","Blue 40":"#546ff3","Blue 50":"#3858e9","Blue 60":"#2a46ce","Blue 70":"#1d35b4","Blue 80":"#1f3286","Blue 90":"#14215a","Blue 100":"#0a112d","Blue":"#3858e9","WordPress Blue 0":"#fbfcfe","WordPress Blue 5":"#f7f8fe","WordPress Blue 10":"#d6ddf9","WordPress Blue 20":"#adbaf3","WordPress Blue 30":"#7b90ff","WordPress Blue 40":"#546ff3","WordPress Blue 50":"#3858e9","WordPress Blue 60":"#2a46ce","WordPress Blue 70":"#1d35b4","WordPress Blue 80":"#1f3286","WordPress Blue 90":"#14215a","WordPress Blue 100":"#0a112d","WordPress Blue":"#3858e9","Purple 0":"#f2e9ed","Purple 5":"#ebcee0","Purple 10":"#e3afd5","Purple 20":"#d48fc8","Purple 30":"#c475bd","Purple 40":"#b35eb1","Purple 50":"#984a9c","Purple 60":"#7c3982","Purple 70":"#662c6e","Purple 80":"#4d2054","Purple 90":"#35163b","Purple 100":"#1e0c21","Purple":"#984a9c","Pink 0":"#f5e9ed","Pink 5":"#f2ceda","Pink 10":"#f7a8c3","Pink 20":"#f283aa","Pink 30":"#eb6594","Pink 40":"#e34c84","Pink 50":"#c9356e","Pink 60":"#ab235a","Pink 70":"#8c1749","Pink 80":"#700f3b","Pink 90":"#4f092a","Pink 100":"#260415","Pink":"#c9356e","Red 0":"#f7ebec","Red 5":"#facfd2","Red 10":"#ffabaf","Red 20":"#ff8085","Red 30":"#f86368","Red 40":"#e65054","Red 50":"#d63638","Red 60":"#b32d2e","Red 70":"#8a2424","Red 80":"#691c1c","Red 90":"#451313","Red 100":"#240a0a","Red":"#d63638","Orange 0":"#f5ece6","Orange 5":"#f7dcc6","Orange 10":"#ffbf86","Orange 20":"#faa754","Orange 30":"#e68b28","Orange 40":"#d67709","Orange 50":"#b26200","Orange 60":"#8a4d00","Orange 70":"#704000","Orange 80":"#543100","Orange 90":"#361f00","Orange 100":"#1f1200","Orange":"#b26200","Yellow 0":"#f5f1e1","Yellow 5":"#f5e6b3","Yellow 10":"#f2d76b","Yellow 20":"#f0c930","Yellow 30":"#deb100","Yellow 40":"#c08c00","Yellow 50":"#9d6e00","Yellow 60":"#7d5600","Yellow 70":"#674600","Yellow 80":"#4f3500","Yellow 90":"#320","Yellow 100":"#1c1300","Yellow":"#9d6e00","Green 0":"#e6f2e8","Green 5":"#b8e6bf","Green 10":"#68de86","Green 20":"#1ed15a","Green 30":"#00ba37","Green 40":"#00a32a","Green 50":"#008a20","Green 60":"#007017","Green 70":"#005c12","Green 80":"#00450c","Green 90":"#003008","Green 100":"#001c05","Green":"#008a20","Celadon 0":"#e4f2ed","Celadon 5":"#a7e8d3","Celadon 10":"#66deb9","Celadon 20":"#31cc9f","Celadon 30":"#09b585","Celadon 40":"#009e73","Celadon 50":"#008763","Celadon 60":"#007053","Celadon 70":"#005c44","Celadon 80":"#004533","Celadon 90":"#003024","Celadon 100":"#001c15","Celadon":"#008763","Automattic Blue 0":"#ebf4fa","Automattic Blue 5":"#c4e2f5","Automattic Blue 10":"#88ccf2","Automattic Blue 20":"#5ab7e8","Automattic Blue 30":"#24a3e0","Automattic Blue 40":"#1490c7","Automattic Blue 50":"#0277a8","Automattic Blue 60":"#036085","Automattic Blue 70":"#02506e","Automattic Blue 80":"#02384d","Automattic Blue 90":"#022836","Automattic Blue 100":"#021b24","Automattic Blue":"#24a3e0","Simplenote Blue 0":"#e9ecf5","Simplenote Blue 5":"#ced9f2","Simplenote Blue 10":"#abc1f5","Simplenote Blue 20":"#84a4f0","Simplenote Blue 30":"#618df2","Simplenote Blue 40":"#4678eb","Simplenote Blue 50":"#3361cc","Simplenote Blue 60":"#1d4fc4","Simplenote Blue 70":"#113ead","Simplenote Blue 80":"#0d2f85","Simplenote Blue 90":"#09205c","Simplenote Blue 100":"#05102e","Simplenote Blue":"#3361cc","WooCommerce Purple 0":"#f2edff","WooCommerce Purple 5":"#e1d7ff","WooCommerce Purple 10":"#d1c1ff","WooCommerce Purple 20":"#b999ff","WooCommerce Purple 30":"#a77eff","WooCommerce Purple 40":"#873eff","WooCommerce Purple 50":"#720eec","WooCommerce Purple 60":"#6108ce","WooCommerce Purple 70":"#5007aa","WooCommerce Purple 80":"#3c087e","WooCommerce Purple 90":"#2c045d","WooCommerce Purple 100":"#1f0342","WooCommerce Purple":"#720eec","Jetpack Green 0":"#f0f2eb","Jetpack Green 5":"#d0e6b8","Jetpack Green 10":"#9dd977","Jetpack Green 20":"#64ca43","Jetpack Green 30":"#2fb41f","Jetpack Green 40":"#069e08","Jetpack Green 50":"#008710","Jetpack Green 60":"#007117","Jetpack Green 70":"#005b18","Jetpack Green 80":"#004515","Jetpack Green 90":"#003010","Jetpack Green 100":"#001c09","Jetpack Green":"#069e08"}}')},54681(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-assistant","title":"AI Assistant","description":"Elevate your content creation with our AI-powered Gutenberg Block, offering seamless customization and generation. Bear in mind that, as an evolving tool, occasional imprecision may occur.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 32 32\' width=\'32\' height=\'32\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z\'/><path d=\'M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z\'/><path d=\'M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z\'/></svg>","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"},"originalContent":{"type":"string"},"promptType":{"type":"string"},"originalMessages":{"type":"array","default":[]},"messages":{"type":"array","default":[]},"userPrompt":{"type":"string","default":""},"requestingState":{"type":"string","default":"init"},"preTransformAction":{"type":"string","default":null}},"example":{"attributes":{"content":"With **Jetpack AI Assistant**, you can provide a prompt, and it will generate high-quality blog posts, informative pages, well-organized lists, and thorough tables that meet your specific requirements.\\n\\nTo start using the **Jetpack AI Assistant**, type `/AI` in the block editor."}}}')},1629(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/ai-chat","title":"Jetpack AI Search","description":"Provide a summarized answer to questions, trained on the sites content. Powered by AI.","keywords":["AI","GPT","Chat","Search"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg width=\'16\' height=\'16\' viewBox=\'0 0 16 16\' xmlns=\'http://www.w3.org/2000/svg\'><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M6.96774 8C6.96774 9.1402 6.04343 10.0645 4.90323 10.0645C3.76303 10.0645 2.83871 9.1402 2.83871 8C2.83871 6.8598 3.76303 5.93548 4.90323 5.93548C6.04343 5.93548 6.96774 6.8598 6.96774 8ZM5.41935 8C5.41935 8.28505 5.18828 8.51613 4.90323 8.51613C4.61818 8.51613 4.3871 8.28505 4.3871 8C4.3871 7.71495 4.61818 7.48387 4.90323 7.48387C5.18828 7.48387 5.41935 7.71495 5.41935 8Z\'/><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M11.0968 10.0645C12.237 10.0645 13.1613 9.1402 13.1613 8C13.1613 6.8598 12.237 5.93548 11.0968 5.93548C9.95657 5.93548 9.03226 6.8598 9.03226 8C9.03226 9.1402 9.95657 10.0645 11.0968 10.0645ZM11.0968 8.51613C11.3818 8.51613 11.6129 8.28505 11.6129 8C11.6129 7.71495 11.3818 7.48387 11.0968 7.48387C10.8117 7.48387 10.5806 7.71495 10.5806 8C10.5806 8.28505 10.8117 8.51613 11.0968 8.51613Z\'/><path d=\'M5.93548 11.3548C5.50791 11.3548 5.16129 11.7015 5.16129 12.129C5.16129 12.5566 5.50791 12.9032 5.93548 12.9032H10.0645C10.4921 12.9032 10.8387 12.5566 10.8387 12.129C10.8387 11.7015 10.4921 11.3548 10.0645 11.3548H5.93548Z\'/><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.77419 0.774194C8.77419 0.346618 8.42758 0 8 0C7.57242 0 7.22581 0.346618 7.22581 0.774194V3.09677H4.90323C2.19525 3.09677 0 5.29202 0 8V11.0968C0 13.8048 2.19525 16 4.90323 16H11.0968C13.8048 16 16 13.8048 16 11.0968V8C16 5.29202 13.8048 3.09677 11.0968 3.09677H8.77419V0.774194ZM1.54839 8C1.54839 6.14717 3.0504 4.64516 4.90323 4.64516H11.0968C12.9496 4.64516 14.4516 6.14717 14.4516 8V11.0968C14.4516 12.9496 12.9496 14.4516 11.0968 14.4516H4.90323C3.0504 14.4516 1.54839 12.9496 1.54839 11.0968V8Z\'/></svg>","supports":{"align":true,"alignWide":true,"customClassName":true,"className":true,"html":false,"multiple":false,"reusable":false},"attributes":{"askButtonLabel":{"type":"string"},"placeholder":{"type":"string"},"showCopy":{"type":"boolean","default":true},"showFeedback":{"type":"boolean","default":true},"showSources":{"type":"boolean","default":true}}}')},35116(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/blog-stats","title":"Blog Stats","description":"Show a stats counter for your blog.","keywords":["views","hits","analytics","counter","visitors"],"version":"1.0","textdomain":"jetpack","category":"grow","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' height=\'24\' viewBox=\'0 -960 960 960\' width=\'24\'><path d=\'M160-200h160v-320H160v320Zm240 0h160v-560H400v560Zm240 0h160v-240H640v240ZM80-120v-480h240v-240h320v320h240v400H80Z\'/></svg>","supports":{"align":true,"alignWide":true,"html":false,"multiple":true,"reusable":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true}},"attributes":{"label":{"type":"string"},"statsData":{"type":"string","default":"views"},"statsOption":{"type":"string","default":"site"}}}')},32442(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/blogging-prompt","title":"Writing Prompt","description":"Answer a new and inspiring writing prompt each day.","keywords":["writing","blogging"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M14.3438 19.3438H9.65625C9.57031 19.3438 9.5 19.4141 9.5 19.5V20.125C9.5 20.4707 9.7793 20.75 10.125 20.75H13.875C14.2207 20.75 14.5 20.4707 14.5 20.125V19.5C14.5 19.4141 14.4297 19.3438 14.3438 19.3438ZM12 3.25C8.46289 3.25 5.59375 6.11914 5.59375 9.65625C5.59375 12.0273 6.88281 14.0977 8.79688 15.2051V17.4688C8.79688 17.8145 9.07617 18.0938 9.42188 18.0938H14.5781C14.9238 18.0938 15.2031 17.8145 15.2031 17.4688V15.2051C17.1172 14.0977 18.4062 12.0273 18.4062 9.65625C18.4062 6.11914 15.5371 3.25 12 3.25ZM14.498 13.9883L13.7969 14.3945V16.6875H10.2031V14.3945L9.50195 13.9883C7.96484 13.0996 7 11.4629 7 9.65625C7 6.89453 9.23828 4.65625 12 4.65625C14.7617 4.65625 17 6.89453 17 9.65625C17 11.4629 16.0352 13.0996 14.498 13.9883Z\' stroke-width=\'0.1\'/></svg>","supports":{"align":false,"alignWide":false,"anchor":false,"className":true,"color":{"background":true,"gradients":true,"link":true,"text":true},"customClassName":true,"html":false,"inserter":true,"multiple":false,"reusable":true,"spacing":{"margin":["top","bottom"],"padding":true,"blockGap":false}},"attributes":{"answersLink":{"type":"string","source":"attribute","attribute":"href","selector":".jetpack-blogging-prompt__answers-link"},"answersLinkText":{"type":"string","source":"html","selector":".jetpack-blogging-prompt__answers-link"},"gravatars":{"type":"array","source":"query","selector":".jetpack-blogging-prompt__answers-gravatar","query":{"url":{"type":"string","source":"attribute","attribute":"src"}},"default":[]},"promptLabel":{"type":"string","source":"html","selector":".jetpack-blogging-prompt__label"},"promptText":{"type":"string","source":"html","selector":".jetpack-blogging-prompt__text"},"promptFetched":{"type":"boolean","default":false},"promptId":{"type":"number"},"showResponses":{"type":"boolean","default":true},"showLabel":{"type":"boolean","default":true},"tagsAdded":{"type":"boolean","default":false},"isBloganuary":{"type":"boolean","default":false}},"styles":[{"name":"block","label":"Block","isDefault":true},{"name":"quote","label":"Quote"}]}')},52829(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/blogroll","title":"Blogroll","description":"Share the sites you follow with your users.","keywords":[],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M4.08691 16.2412H20.0869V14.7412H4.08691V16.2412Z\'></path><path d=\'M4.08691 20.2412H13.0869V18.7412H4.08691V20.2412Z\'></path><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.08691 8.17871C4.08691 6.00409 5.84979 4.24121 8.02441 4.24121C10.199 4.24121 11.9619 6.00409 11.9619 8.17871C11.9619 10.3533 10.199 12.1162 8.02441 12.1162C5.84979 12.1162 4.08691 10.3533 4.08691 8.17871ZM5.10729 6.71621C5.51231 5.90991 6.2418 5.29471 7.12439 5.04194C6.91534 5.28455 6.73551 5.57108 6.58869 5.88606C6.46938 6.14205 6.36999 6.42056 6.29338 6.71621H5.10729ZM4.85759 7.39121C4.79508 7.64341 4.76191 7.90719 4.76191 8.17871C4.76191 8.45024 4.79508 8.71401 4.85759 8.96621H6.16284C6.12938 8.71126 6.11192 8.44782 6.11192 8.1787C6.11192 7.90956 6.12938 7.64614 6.16284 7.39121H4.85759ZM6.84439 7.39121C6.80693 7.64285 6.78692 7.90651 6.78692 8.1787C6.78692 8.45091 6.80694 8.71459 6.84439 8.96621H9.20444C9.2419 8.71458 9.26192 8.45091 9.26192 8.17873C9.26192 7.90653 9.2419 7.64285 9.20444 7.39121H6.84439ZM9.88599 7.39121C9.91945 7.64615 9.93692 7.90958 9.93692 8.17873C9.93692 8.44786 9.91945 8.71128 9.88599 8.96621H11.1912C11.2537 8.71401 11.2869 8.45024 11.2869 8.17871C11.2869 7.90719 11.2537 7.64341 11.1912 7.39121H9.88599ZM10.9415 6.71621H9.75544C9.67883 6.42057 9.57945 6.14207 9.46014 5.88609C9.31332 5.5711 9.13347 5.28455 8.92441 5.04193C9.80702 5.29469 10.5365 5.9099 10.9415 6.71621ZM9.05465 6.71621H6.99417C7.05245 6.52254 7.12177 6.34014 7.2005 6.17123C7.42342 5.69296 7.71302 5.34019 8.02439 5.13337C8.33578 5.34019 8.6254 5.69297 8.84833 6.17126C8.92706 6.34016 8.99637 6.52255 9.05465 6.71621ZM5.10729 9.64121H6.29339C6.37419 9.95305 6.48034 10.2458 6.6085 10.5132C6.75142 10.8114 6.92452 11.0835 7.12445 11.3155C6.24183 11.0627 5.51232 10.4475 5.10729 9.64121ZM9.05466 9.64121H6.99418C7.05655 9.84847 7.13156 10.0428 7.21721 10.2215C7.43825 10.6827 7.72115 11.0226 8.02446 11.224C8.33582 11.0172 8.62541 10.6645 8.84833 10.1862C8.92706 10.0173 8.99638 9.83488 9.05466 9.64121ZM9.46014 10.4714C9.57945 10.2154 9.67884 9.93686 9.75545 9.64121H10.9415C10.5365 10.4475 9.80703 11.0627 8.92444 11.3155C9.13349 11.0729 9.31332 10.7863 9.46014 10.4714Z\'></path></svg>","supports":{"align":false,"alignWide":true,"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true,"color":{"link":true,"gradients":true},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true}},"attributes":{"show_avatar":{"type":"boolean","default":true},"show_description":{"type":"boolean","default":true},"open_links_new_window":{"type":"boolean","default":true},"ignore_user_blogs":{"type":"boolean","default":true},"load_placeholders":{"type":"boolean","default":true}},"providesContext":{"showAvatar":"show_avatar","showDescription":"show_description","openLinksNewWindow":"open_links_new_window"}}')},9050(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/business-hours","title":"Business Hours","description":"Display opening hours for your business.","keywords":["opening hours","closing time","schedule","working day"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z\'/></svg>","supports":{"html":true,"color":{"gradients":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"days":{"type":"array","default":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}},"example":{"attributes":{"days":[{"name":"Sun","hours":[]},{"name":"Mon","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Tue","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Wed","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Thu","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Fri","hours":[{"opening":"09:00","closing":"17:00"}]},{"name":"Sat","hours":[]}]}}}')},13248(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/calendly","title":"Calendly","description":"Embed a calendar for customers to schedule appointments.","keywords":["calendar","schedule","appointments","events","dates"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 23 24\' width=\'23\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19,1h-2.3v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H8.6v0c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1v0H4C1.8,1,0,2.8,0,5 v15c0,2.2,1.8,4,4,4h15c2.2,0,4-1.8,4-4V5C23,2.8,21.2,1,19,1z M21,20c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V5c0-1.1,0.9-2,2-2h2.6 v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3h6.1v0.8c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1V3H19c1.1,0,2,0.9,2,2V20z M13.9,14.8l1.4,1.4 c-0.9,0.9-2.1,1.3-3.5,1.3c-2.4,0-4.5-2.1-4.5-4.7s2.1-4.7,4.5-4.7c1.4,0,2.5,0.4,3.4,1.1L14,10.9c-0.5-0.4-1.2-0.6-2.1-0.6 c-1.2,0-2.5,1.1-2.5,2.7c0,1.6,1.3,2.7,2.5,2.7C12.7,15.5,13.4,15.3,13.9,14.8z\'/></svg>","supports":{"align":true,"alignWide":false,"html":false},"attributes":{"backgroundColor":{"type":"string","default":"ffffff"},"hideEventTypeDetails":{"type":"boolean","default":false},"primaryColor":{"type":"string","default":"00A2FF"},"textColor":{"type":"string","default":"4D5055"},"style":{"type":"string","default":"inline","enum":["inline","link"]},"url":{"type":"string"}},"example":{"attributes":{"hideEventTypeDetails":false,"style":"inline","url":"https://calendly.com/wpcom/jetpack-block-example"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Schedule time with me","uniqueId":"calendly-widget-id","url":"https://calendly.com/wpcom/jetpack-block-example"}}]}}')},75173(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/contact-info","title":"Contact Info","description":"Add an email address, phone number, and physical address with improved markup for better SEO results.","keywords":["email","phone","address"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19 5v14H5V5h14m0-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm6 10H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18zm-9.69-2h7.38c-.69-.56-2.38-1.12-3.69-1.12s-3.01.56-3.69 1.12z\'/></svg>","supports":{"align":["wide","full"],"html":false,"color":{"link":true,"gradients":true},"spacing":{"padding":true,"margin":true},"typography":{"fontSize":true,"lineHeight":true}},"example":{"attributes":{},"innerBlocks":[{"name":"jetpack/email","attributes":{"email":"hello@yourjetpack.blog"}},{"name":"jetpack/phone","attributes":{"phone":"123-456-7890"}},{"name":"jetpack/address","attributes":{"address":"987 Photon Drive","city":"Speedyville","region":"CA","postal":"12345","country":"USA"}}]}}')},74095(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/cookie-consent","title":"Cookie Consent","description":"Display a customizable cookie consent banner. To display this block on all pages of your site, please add it inside a Template Part that is present on all your templates, like a Header or a Footer.","keywords":["cookie","consent","privacy","GDPR","EU"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m20.27,11.03c-.02-.31-.05-.62-.11-.92h-3.88v-2.91h-2.87v-3.79c-.32-.06-.64-.1-.97-.12-.15,0-.29,0-.44,0C7.42,3.28,3.71,7,3.71,11.57s3.71,8.3,8.29,8.3,8.29-3.72,8.29-8.3c0-.18,0-.36-.02-.54Zm-8.23,7.79c-4,0-7.24-3.25-7.24-7.25s3.24-7.24,7.24-7.24c.14,0,.27,0,.4.02v3.81h2.9v2.87h3.91c.02.18.03.36.03.54,0,4-3.24,7.25-7.24,7.25Z\'/><path d=\'M 8, 8 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/><path d=\'M 12, 11.5 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/><path d=\'M 13, 16 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/><path d=\'M 8, 14 a 1,1 0 1,1 2,0 a 1,1 0 1,1 -2,0\'/></svg>","supports":{"align":["left","right","wide","full"],"alignWide":true,"anchor":false,"color":{"gradients":true,"link":true,"background":true},"spacing":{"padding":true},"customClassName":true,"className":true,"html":false,"lock":false,"multiple":false,"reusable":false},"attributes":{"text":{"type":"string","source":"html","selector":"p"},"style":{"type":"object","default":{"color":{"text":"var(--wp--preset--color--contrast)","background":"var(--wp--preset--color--tertiary)","link":"var(--wp--preset--color--contrast)"},"spacing":{"padding":{"top":"1em","right":"1em","bottom":"1em","left":"1em"}}}},"align":{"type":"string","default":"wide"},"consentExpiryDays":{"type":"integer","default":365},"showOverlay":{"type":"boolean","default":false}},"viewScript":"file:./view.js"}')},87325(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/donations","title":"Donations Form","description":"Collect one-time, monthly, or annually recurring donations.","keywords":["charity","contribution","credit card","debit card","donate","earn","monetize","ecommerce","fundraising","fundraiser","gofundme","money","nonprofit","non-profit","paid","patreon","pay","payments","recurring","stripe","sponsor","square","tipping","venmo"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><g transform=\'translate(1.2 1.2) scale(0.9)\'><path d=\'M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z\' /></g></svg>","supports":{"html":false,"color":{"background":true,"text":true,"button":true,"link":true,"gradients":false},"typography":{"fontSize":true,"fontFamily":true,"fontStyle":true,"fontWeight":true,"lineHeight":true,"letterSpacing":true}},"attributes":{"currency":{"type":"string","default":""},"oneTimeDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"monthlyDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"annualDonation":{"type":"object","default":{"show":true,"planId":null,"amounts":[5,15,100]}},"showCustomAmount":{"type":"boolean","default":true},"defaultInterval":{"type":"string"},"customAmountPlaceholder":{"type":"number"},"chooseAmountText":{"type":"string"},"customAmountText":{"type":"string"},"fallbackLinkUrl":{"type":"string"},"activeTabBackgroundColor":{"type":"string"},"activeTabTextColor":{"type":"string"},"inactiveTabBackgroundColor":{"type":"string"},"inactiveTabTextColor":{"type":"string"},"selectedAmountBackgroundColor":{"type":"string"},"selectedAmountTextColor":{"type":"string"},"selectedAmountOutlineColor":{"type":"string"},"tabsAppearance":{"type":"string","enum":["tabs","buttons"],"default":"tabs"},"tabBorderColor":{"type":"string"},"tabFontSize":{"type":"string"},"tabPadding":{"type":"object"},"buttonFontSize":{"type":"string"},"buttonPadding":{"type":"object"},"buttonAlignment":{"type":"string","enum":["","left","center","right","full"],"default":""},"amountFontSize":{"type":"string"},"amountBorder":{"type":"object"},"amountBorderRadius":{"type":["string","object"]},"buttonBorderRadius":{"type":["string","object"]},"contentAlignment":{"type":"string","enum":["","left","center","right"],"default":""},"minimumAmount":{"type":"number"},"maximumAmount":{"type":"number"},"displayMode":{"type":"string","enum":["inline","modal"],"default":"inline"},"triggerButtonText":{"type":"string"},"triggerIcon":{"type":"string","default":"heart"},"triggerSticky":{"type":"boolean","default":false},"blockBorder":{"type":"object"},"blockBorderRadius":{"type":["string","object"]},"variationName":{"type":"string","default":""}},"example":{}}')},82306(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/eventbrite","title":"Eventbrite Checkout","description":"Embed Eventbrite event details and ticket checkout.","keywords":["events","tickets"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M18.041,3.931L5.959,3C4.325,3,3,4.325,3,5.959v12.083C3,19.675,4.325,21,5.959,21l12.083-0.931C19.699,19.983,21,18.744,21,17.11V6.89C21,5.256,19.741,4.027,18.041,3.931zM16.933,8.17c-0.082,0.215-0.192,0.432-0.378,0.551c-0.188,0.122-0.489,0.132-0.799,0.132c-1.521,0-3.062-0.048-4.607-0.048c-0.152,0.708-0.304,1.416-0.451,2.128c0.932-0.004,1.873,0.005,2.81,0.005c0.726,0,1.462-0.069,1.586,0.525c0.04,0.189-0.001,0.426-0.052,0.615c-0.105,0.38-0.258,0.676-0.625,0.783c-0.185,0.054-0.408,0.058-0.646,0.058c-1.145,0-2.345,0.017-3.493,0.02c-0.169,0.772-0.328,1.553-0.489,2.333c1.57-0.005,3.067-0.041,4.633-0.058c0.627-0.007,1.085,0.194,1.009,0.85c-0.031,0.262-0.098,0.497-0.211,0.725c-0.102,0.208-0.248,0.376-0.488,0.452c-0.237,0.075-0.541,0.064-0.862,0.078c-0.304,0.014-0.614,0.008-0.924,0.016c-0.309,0.009-0.619,0.022-0.919,0.022c-1.253,0-2.429,0.08-3.683,0.073c-0.603-0.004-1.014-0.249-1.124-0.757c-0.059-0.273-0.018-0.58,0.036-0.841c0.541-2.592,1.083-5.176,1.629-7.763c0.056-0.265,0.114-0.511,0.225-0.714C9.279,7.051,9.534,6.834,9.9,6.735c0.368-0.099,0.883-0.047,1.344-0.047c0.305,0,0.612,0.008,0.914,0.016c0.925,0.026,1.817,0.03,2.747,0.053c0.304,0.007,0.615,0.016,0.915,0.016c0.621,0,1.17,0.073,1.245,0.614C17.104,7.675,17.014,7.954,16.933,8.17z\'/></svg>","supports":{"html":false,"align":true},"attributes":{"url":{"type":"string"},"eventId":{"type":"number"},"style":{"type":"string","default":"inline"}},"example":{"attributes":{"url":"https://www.eventbrite.com/e/test-event-tickets-123456789","eventId":123456789,"style":"modal"},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"a","text":"Register","uniqueId":"eventbrite-widget-id"}}]}}')},5564(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/gif","title":"GIF","description":"Search for and insert an animated image.","keywords":["animated","giphy","image"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill=\'none\' d=\'M0 0h24v24H0V0z\'/><path d=\'M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z\'/></svg>","supports":{"html":false,"align":true},"attributes":{"align":{"type":"string","default":"center"},"caption":{"type":"string"},"giphyUrl":{"type":"string"},"searchText":{"type":"string"},"paddingTop":{"type":"string","default":"56.2%"}},"example":{"attributes":{"align":"center","giphyUrl":"https://giphy.com/embed/fxKWgoOG9hzPPkE1oc","paddingTop":"100%","searchText":"WordPress"}}}')},24360(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/goodreads","title":"Goodreads","description":"Features books from the shelves of your Goodreads account.","keywords":["book","read","author"],"version":"1.0","textdomain":"jetpack","category":"embed","icon":"<svg height=\'24\' viewBox=\'0 0 24 24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\' aria-hidden=\'true\' focusable=\'false\'><path d=\'M19.525 15.977V.49h-2.059v2.906h-.064c-.211-.455-.481-.891-.842-1.307-.36-.412-.767-.777-1.232-1.094-.466-.314-.962-.561-1.519-.736C13.256.09 12.669 0 12.038 0c-1.21 0-2.3.225-3.246.67-.947.447-1.743 1.057-2.385 1.83-.642.773-1.133 1.676-1.47 2.711-.336 1.037-.506 2.129-.506 3.283 0 1.199.141 2.326.425 3.382.286 1.057.737 1.976 1.368 2.762.631.78 1.412 1.397 2.375 1.833.961.436 2.119.661 3.471.661 1.248 0 2.33-.315 3.262-.946s1.638-1.473 2.119-2.525h.061v2.284c0 2.044-.421 3.607-1.264 4.705-.84 1.081-2.224 1.638-4.146 1.638-.572 0-1.128-.061-1.669-.181-.542-.12-1.036-.315-1.487-.57-.437-.271-.827-.601-1.143-1.038-.316-.435-.526-.961-.632-1.593H5.064c.067.887.315 1.654.737 2.3.424.646.961 1.172 1.602 1.593.641.406 1.367.706 2.172.902.811.194 1.639.3 2.494.3 1.383 0 2.541-.195 3.486-.555.947-.376 1.714-.902 2.301-1.608.601-.708 1.021-1.549 1.293-2.556.27-1.007.42-2.134.42-3.367l-.044.062zm-7.484-.557c-.955 0-1.784-.189-2.479-.571-.697-.38-1.277-.882-1.732-1.503-.467-.621-.797-1.332-1.022-2.139s-.332-1.633-.332-2.484c0-.871.105-1.725.301-2.563.21-.84.54-1.587.992-2.24.451-.652 1.037-1.182 1.728-1.584s1.533-.605 2.51-.605 1.803.209 2.495.621c.676.415 1.247.959 1.683 1.634.436.677.751 1.429.947 2.255.195.826.285 1.656.285 2.482 0 .852-.12 1.678-.345 2.484-.226.807-.572 1.518-1.038 2.139-.465.621-1.021 1.123-1.698 1.503-.676.382-1.458.571-2.359.571h.064z\'></path></svg>","supports":{"html":false,"align":true},"attributes":{"bookNumber":{"type":"string","default":"5"},"class":{"type":"string"},"customTitle":{"type":"string"},"goodreadsId":{"type":"number"},"id":{"type":"string"},"link":{"type":"string"},"orderOption":{"type":"string","default":"d"},"shelfOption":{"type":"string","default":"read"},"showAuthor":{"type":"boolean","default":true},"showCover":{"type":"boolean","default":true},"showRating":{"type":"boolean","default":true},"showReview":{"type":"boolean","default":false},"showTags":{"type":"boolean","default":false},"showTitle":{"type":"boolean","default":true},"sortOption":{"type":"string","default":"date_added"},"style":{"type":"string","default":"default"},"userInput":{"type":"string"},"widgetId":{"type":"number"}},"example":{"attributes":{"goodreadsId":1176283}}}')},76862(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/google-calendar","title":"Google Calendar","description":"Embed a Google Calendar.","keywords":["events","dates","schedule","appointments"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 23\' width=\'24\' height=\'23\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19.5,23h-15c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h15c2.2,0,4,1.8,4,4v15C23.5,21.2,21.7,23,19.5,23z M4.5,2 c-1.1,0-2,0.9-2,2v15c0,1.1,0.9,2,2,2h15c1.1,0,2-0.9,2-2V4c0-1.1-0.9-2-2-2H4.5z M6.9,3.9L6.9,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0C6.5,5.9,6.1,5.5,6.1,5V4.7C6.1,4.3,6.5,3.9,6.9,3.9z M17,3.9L17,3.9c0.5,0,0.9,0.4,0.9,0.9V5 c0,0.5-0.4,0.9-0.9,0.9l0,0c-0.5,0-0.9-0.4-0.9-0.9V4.7C16.2,4.3,16.5,3.9,17,3.9z M8.8,17.6c1.8,0,3.2-1,3.2-2.4 c0-1.1-0.7-1.8-1.8-1.9v-0.1c0.9-0.2,1.5-0.9,1.5-1.8c0-1.3-1.2-2.2-2.9-2.2c-1.8,0-2.9,1-3,2.5h1.6c0-0.7,0.6-1.1,1.4-1.1 c0.8,0,1.3,0.4,1.3,1.1c0,0.7-0.5,1.1-1.3,1.1h-1v1.3h1c0.9,0,1.5,0.4,1.5,1.1c0,0.7-0.6,1.2-1.4,1.2c-0.9,0-1.4-0.4-1.5-1.1H5.7 C5.8,16.6,7,17.6,8.8,17.6z M17.6,17.4V9.3h-1.7l-2.1,1.4v1.6l2-1.4h0.1v6.4H17.6z\'/></svg>","supports":{"align":true,"alignWide":true,"html":false},"attributes":{"url":{"type":"string"},"height":{"type":"integer","default":600}},"example":{"attributes":{"url":"https://calendar.google.com/calendar/embed?src=jb4bu80jirp0u11a6niie21pp4%40group.calendar.google.com&ctz=America/New_York"}}}')},94575(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/google-docs-embed","title":"Google Docs (Beta)","description":"Embed a Google Document.","keywords":["document","gsuite","doc"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 64 88\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M58,88H6c-3.3,0-6-2.7-6-6V6c0-3.3,2.7-6,6-6h36l22,22v60C64,85.3,61.3,88,58,88z\' /><path fill=\'#FDFFFF\' d=\'M42,0l22,22H42V0z\' /><path fill=\'#FDFFFF\' d=\'M50,39H14v-5h36V39z M50,46H14v5h36V46z M40,58H14v5h26V58z\' /></svg>","supports":{"align":["left","right","center","wide","full"],"anchor":true},"attributes":{"url":{"type":"string","default":""},"aspectRatio":{"type":"string"},"variation":{"type":"string"}}}')},88285(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/image-compare","title":"Image Compare","description":"Compare two images with a slider. Works best with images of the same size.","keywords":["juxtapose","photos","pictures","side by side","slider"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M21 4h-6v1.5h6c.3 0 .5.2.5.5v.4l-3.6 3.5L15 8.1v1.8l2.6 1.7c.1.1.3.1.4.1.2 0 .4-.1.5-.2l3-2.9V18c0 .3-.2.5-.5.5h-6V20h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM1 6v12c0 1.1.9 2 2 2h10.5V4H3c-1.1 0-2 .9-2 2zm11 12.5H3c-.3 0-.5-.2-.5-.5v-1.4L5 14.7l1.5-1.1.1-.1 3 1.9c.1.1.3.1.4.1.2 0 .4-.1.5-.2L12 14v4.5zm0-6.6l-2.1 2L7 12c-.1-.1-.3-.1-.4-.1h-.1c-.1 0-.3.1-.4.1l-1.1.9-2.5 1.8V6c0-.3.2-.5.5-.5h9v6.4z\'/></svg>","supports":{"align":["wide","full"]},"attributes":{"imageBefore":{"type":"object","default":{}},"imageAfter":{"type":"object","default":{}},"caption":{"type":"string"},"orientation":{"type":"string","default":"horizontal"}}}')},89525(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/instagram-gallery","title":"Latest Instagram Posts","description":"Display an automatically updating list of the latest posts from your Instagram feed.","keywords":["images","photos","pictures"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z\'></path></svg>","supports":{"align":true,"html":false},"attributes":{"accessToken":{"type":"string"},"instagramUser":{"type":"string"},"columns":{"type":"number","default":3,"min":1,"max":6},"count":{"type":"number","default":9,"min":1,"max":30},"spacing":{"type":"number","default":10,"min":0,"max":50},"isStackedOnMobile":{"type":"boolean","default":true}}}')},71969(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/like","title":"Like","description":"Give your readers the ability to show appreciation for your posts.","keywords":["like","likes","thumbs up","button","heart"],"version":"1.0.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill-rule=\'evenodd\' d=\'M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z\' clip-rule=\'evenodd\'></path></svg>","usesContext":["postId"],"attributes":{"showReblogButton":{"type":"boolean","default":false},"showAvatars":{"type":"boolean","default":true}}}')},37120(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/mailchimp","title":"Mailchimp","description":"Allow readers to join a Mailchimp audience.","keywords":["email","subscription","newsletter"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m16.88,11.25c.17-.02.34-.02.49,0,.09-.2.1-.55.02-.93-.12-.57-.28-.91-.61-.86-.33.05-.34.46-.22,1.03.07.32.19.59.32.76\'/><path d=\'m14.03,11.7c.24.1.38.17.44.11.04-.04.03-.11-.03-.2-.12-.19-.36-.38-.61-.49-.52-.22-1.14-.15-1.62.19-.16.12-.31.28-.29.37,0,.03.03.06.09.06.13.01.59-.22,1.11-.25.37-.02.68.09.92.2\'/><path d=\'m13.56,11.97c-.31.05-.48.15-.59.25-.09.08-.15.17-.15.23,0,.03.01.05.02.06.01.01.03.02.05.02.07,0,.23-.06.23-.06.43-.15.71-.13.99-.1.16.02.23.03.26-.03.01-.02.02-.05,0-.1-.07-.12-.38-.32-.81-.26\'/><path d=\'m15.92,12.97c.21.1.44.06.52-.09s-.03-.36-.24-.46c-.21-.1-.44-.06-.52.09-.08.15.03.36.24.46\'/><path d=\'m17.26,11.79c-.17,0-.31.18-.32.42s.13.42.3.43.31-.18.32-.42c0-.23-.13-.42-.3-.43\'/><path d=\'m5.83,16c-.04-.05-.11-.04-.18-.02-.05.01-.1.02-.16.02-.13,0-.23-.06-.29-.15-.08-.12-.07-.3.01-.5l.04-.09c.14-.31.36-.82.11-1.31-.19-.37-.51-.6-.89-.64-.36-.05-.74.09-.98.35-.38.42-.44.98-.36,1.18.03.07.07.09.1.1.06,0,.16-.04.22-.2l.02-.05c.03-.08.08-.24.16-.37.1-.15.25-.26.43-.29.18-.04.37,0,.52.1.26.17.37.5.25.8-.06.16-.15.46-.13.72.04.51.35.71.63.73.27.01.46-.14.51-.25.03-.07,0-.11-.01-.12\'/><path d=\'m8.42,6.69c.89-1.03,1.98-1.92,2.96-2.42.03-.02.07.02.05.05-.08.14-.23.44-.28.67,0,.04.03.06.06.04.61-.42,1.67-.86,2.6-.92.04,0,.06.05.03.07-.14.11-.3.26-.41.41-.02.03,0,.06.03.06.65,0,1.57.23,2.17.57.04.02.01.1-.03.09-.91-.21-2.4-.37-3.94.01-1.38.34-2.43.86-3.2,1.41-.04.03-.09-.02-.05-.06h0Zm4.43,9.95h0s0,0,0,0h0Zm3.67.43s.04-.04.04-.07c0-.04-.04-.06-.07-.06,0,0-1.9.28-3.69-.38.2-.63.71-.41,1.5-.34,1.41.08,2.68-.12,3.62-.39.81-.23,1.88-.69,2.71-1.35.28.61.38,1.29.38,1.29,0,0,.22-.04.4.07.17.11.3.32.21.89-.17,1.05-.62,1.91-1.38,2.7-.46.49-1.02.92-1.65,1.24-.34.18-.7.33-1.08.46-2.84.93-5.75-.09-6.69-2.28-.07-.16-.14-.34-.19-.52-.4-1.44-.06-3.17,1-4.27h0c.07-.07.13-.15.13-.25,0-.09-.05-.18-.1-.24-.37-.54-1.66-1.45-1.4-3.23.19-1.27,1.3-2.17,2.34-2.12l.26.02c.45.03.84.08,1.21.1.62.03,1.18-.06,1.84-.61.22-.19.4-.35.7-.4.03,0,.11-.03.27-.03.16,0,.31.05.45.14.53.35.6,1.21.63,1.83.02.36.06,1.22.07,1.47.03.57.18.65.48.75.17.06.33.1.56.16.7.2,1.12.4,1.38.65.16.16.23.33.25.49.08.6-.47,1.35-1.93,2.03-1.59.74-3.53.93-4.87.78l-.47-.05c-1.07-.14-1.68,1.24-1.04,2.18.41.61,1.54,1.01,2.67,1.01,2.58,0,4.57-1.1,5.31-2.06l.06-.08c.04-.05,0-.08-.04-.05-.6.41-3.28,2.05-6.15,1.56,0,0-.35-.06-.67-.18-.25-.1-.78-.34-.85-.88,2.31.72,3.77.04,3.77.04h0ZM3.8,11.57c-.8.16-1.51.61-1.95,1.24-.26-.22-.74-.63-.83-.8-.69-1.31.76-3.87,1.77-5.32C5.3,3.13,9.21.43,11.02.92c.29.08,1.27,1.21,1.27,1.21,0,0-1.81,1.01-3.49,2.41-2.26,1.74-3.97,4.28-5,7.03h0Zm1.35,6.03c-.12.02-.25.03-.37.03-1.21-.03-2.52-1.12-2.65-2.42-.14-1.43.59-2.53,1.88-2.79.15-.03.34-.05.54-.04.72.04,1.79.6,2.04,2.17.22,1.4-.13,2.82-1.44,3.04h0Zm16.4-2.53s-.08-.28-.17-.58c-.09-.3-.19-.51-.19-.51.37-.56.38-1.06.33-1.34-.05-.35-.2-.65-.49-.96-.29-.31-.89-.62-1.74-.86l-.44-.12s-.02-1.04-.04-1.48c-.01-.32-.04-.82-.2-1.31-.18-.66-.5-1.24-.9-1.61,1.1-1.14,1.79-2.4,1.79-3.48,0-2.08-2.56-2.71-5.7-1.4l-.67.28s-1.2-1.18-1.22-1.2C8.33-2.63-2.89,9.84.7,12.86l.78.66c-.2.53-.28,1.13-.22,1.78.08.83.51,1.63,1.21,2.25.66.59,1.53.96,2.37.96,1.4,3.21,4.58,5.19,8.32,5.3,4.01.12,7.37-1.76,8.78-5.14.09-.24.48-1.31.48-2.25s-.54-1.34-.88-1.34\'/></svg>","supports":{"align":["wide","full"],"color":{"gradients":true},"spacing":{"padding":true,"margin":true}},"attributes":{"emailPlaceholder":{"type":"string"},"consentText":{"type":"string"},"interests":{"type":"array","default":[]},"processingLabel":{"type":"string"},"signupFieldTag":{"type":"string"},"signupFieldValue":{"type":"string"},"successLabel":{"type":"string"},"errorLabel":{"type":"string"},"preview":{"type":"boolean","default":false}},"example":{"attributes":{"preview":true},"innerBlocks":[{"name":"jetpack/button","attributes":{"element":"button","text":"Join my Mailchimp audience","uniqueId":"mailchimp-widget-id"}}]}}')},55740(e){"use strict";e.exports=JSON.parse('[{"id":"mapbox-gl-js","file":"node_modules/mapbox-gl/dist/mapbox-gl.js","version":"1.13.0"},{"id":"mapbox-gl-css","file":"node_modules/mapbox-gl/dist/mapbox-gl.css","version":"1.13.0"}]')},6852(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/map","title":"Map","description":"Add an interactive map showing one or more locations.","keywords":["maps","location","navigation"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z\' /></svg>","supports":{"defaultStylePicker":false,"html":false,"align":["wide","full"]},"attributes":{"align":{"type":"string"},"points":{"type":"array","default":[]},"address":{"type":"string","default":""},"mapDetails":{"type":"boolean","default":true},"zoom":{"type":"integer","default":13},"mapCenter":{"type":"object","default":{"longitude":-122.41941550000001,"latitude":37.7749295}},"markerColor":{"type":"string","default":"red"},"scrollToZoom":{"type":"boolean","default":false},"mapHeight":{"type":"integer"},"showFullscreenButton":{"type":"boolean","default":true}},"example":{}}')},73431(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/markdown","title":"Markdown","description":"Add headings, lists, or links to plain text with ease.","keywords":["formatting","syntax","markup"],"version":"12.5.0","textdomain":"jetpack","category":"text","icon":"<svg viewBox=\'0 0 208 128\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><rect width=\'198\' height=\'118\' x=\'5\' y=\'5\' ry=\'10\' stroke=\'currentColor\' strokeWidth=\'10\' fill=\'none\' /><path d=\'M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z\' />","supports":{"align":["wide","full"],"html":false,"spacing":{"padding":true,"margin":true,"__experimentalDefaultControls":{"padding":true,"margin":true}}},"attributes":{"source":{"type":"string"}},"example":{"attributes":{"source":"## ## Try Markdown\\n\\nMarkdown is a text formatting syntax that is converted into HTML. You can _emphasize_ text or **make it strong** with just a few characters."}}}')},17195(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/nextdoor","title":"Nextdoor","description":"Embed a Nextdoor post for your neighbors on your blog.","keywords":["neighbor"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg height=\'24\' width=\'24\' viewBox=\'0 0 130 130\' xmlns=\'http://www.w3.org/2000/svg\'><g><path d=\'M64.25 3.531c-31.144.337-57.596 24.22-60.469 55.907-3.064 33.799 21.857 63.685 55.657 66.75 33.799 3.064 63.685-21.857 66.75-55.657 3.064-33.8-21.857-63.686-55.657-66.75a62.075 62.075 0 00-6.281-.25zm3.938 34.907C82.468 38.438 93.5 48.58 93.5 61.5v27c0 .685-.565 1.25-1.25 1.25H80.906a1.267 1.267 0 01-1.25-1.25V63.375c0-5.58-4.309-11.938-11.469-11.938-7.47 0-11.468 6.358-11.468 11.938V88.5c0 .685-.565 1.25-1.25 1.25H44.125c-.68 0-1.219-.57-1.219-1.25V64.156c0-.74-.529-1.364-1.25-1.531-13.13-2.93-15.115-10.285-15.375-21.125-.005-.332.142-.67.375-.906.233-.237.543-.375.875-.375l11.688.062c.66.01 1.187.529 1.218 1.188.13 4.44.438 9.406 4.438 9.406.83 0 1.443-1.179 1.813-1.719 4.41-6.48 12.28-10.718 21.5-10.718z\'/></g></svg>","supports":{"align":true,"alignWide":true,"html":false},"attributes":{"url":{"type":"string"}}}')},79018(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/opentable","title":"OpenTable","description":"Book a reservation with OpenTable.","keywords":["booking","reservation","restaurant"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 22 16\' width=\'22\' height=\'16\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m1.997 5.982c-.39457-.00039-.7804.11622-1.108699.33511-.328295.21888-.584312.5302-.735674.89459-.15136174.36439-.1912714.76548-.1146819 1.15254.0765899.38707.2662379.74274.5449639 1.02202.278726.27929.634011.46965 1.020921.54702.38692.07732.78809.03826 1.15278-.11238.36469-.15063.67652-.40602.89606-.73387.21954-.32786.33693-.71345.33733-1.10803v-.002c.001-1.1-.89-1.994-1.992-1.995zm12.006 3.988c-.3946.0004-.7805-.11625-1.1088-.33517-.3283-.21893-.5843-.53031-.7357-.89476-.1513-.36444-.1912-.76558-.1145-1.15268s.2664-.74276.5453-1.022c.2788-.27925.6342-.46953 1.0211-.54679.387-.07725.7882-.038 1.1529.11278.3647.15079.6764.40634.8959.73432.2194.32799.3366.71369.3368 1.1083v.003c.0003.52814-.2092 1.03477-.5824 1.4085s-.8795.58397-1.4076.5845zm0-9.96999843c-1.5777-.0009886-3.1203.46588743-4.43262 1.34158843-1.31236.8757-2.33558 2.1209-2.94025 3.57813-.60467 1.45722-.76365 3.06103-.45683 4.60861.30683 1.54757 1.06567 2.96947 2.18058 4.08577 1.1149 1.1163 2.53582 1.8769 4.08302 2.1856 1.5472.3088 3.1512.1518 4.6091-.451 1.458-.6028 2.7045-1.6245 3.5819-2.9358.8773-1.3112 1.3461-2.8532 1.3471-4.4309v-.005c.0008-2.11466-.8384-4.14304-2.3331-5.63899-1.4946-1.495952-3.5222-2.3369478-5.6369-2.33800843z\' /></svg>","supports":{"align":true,"html":false},"attributes":{"rid":{"default":[],"type":"array"},"style":{"default":"standard","type":"string","enum":["button","standard","wide","tall"]},"iframe":{"default":true,"type":"boolean"},"domain":{"default":"com","type":"string"},"lang":{"default":"en-US","type":"string","enum":["en-US","fr-CA","de-DE","es-MX","ja-JP","nl-NL","it-IT"]},"newtab":{"default":false,"type":"boolean"},"negativeMargin":{"default":false,"type":"boolean"}},"example":{"attributes":{"rid":["1"],"style":"standard","iframe":true,"domain":"com","lang":"en-US","newtab":false,"negativeMargin":false}}}')},97472(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/payment-buttons","title":"Payment Buttons","description":"Sell products and subscriptions.","keywords":["buy","contribution","commerce","credit card","debit card","donate","Donations","earn","monetize","ecommerce","gofundme","memberships","money","paid","patreon","pay","payments","products","purchase","recurring","sell","shop","stripe","subscribe","subscriptions","sponsor","square","toast","venmo"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z\'/></svg>","supports":{"__experimentalExposeControlsToChildren":true,"align":["wide","full"],"spacing":{"blockGap":true,"margin":["vertical"],"__experimentalDefaultControls":{"blockGap":true}},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}},"typography":{"fontSize":true,"__experimentalFontFamily":true,"__experimentalTextTransform":true,"__experimentalDefaultControls":{"fontSize":true}}},"attributes":{}}')},80830(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/payments-intro","title":"Payments","description":"Sell products and services or receive donations on your website.","keywords":["earn","monetize","paid","pay","money","checkout"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' width=\'24\' height=\'24\'><path d=\'M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z\'></path></svg>","supports":{"alignWide":false,"className":true,"customClassName":false,"html":false,"reusable":false}}')},64524(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/paywall","title":"Paywall","description":"Limit access to the content below this block to chosen subscribers.","keywords":["earn","monetize","more","email","follow","gated","memberships","newsletter","signin","subscribe","subscription","subscriptions"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M4 16.7134L20 16.7134V15.106H4V16.7134Z\' /><path d=\'M16 21H20V19.3925H16V21Z\' /><path d=\'M14 21H10V19.3925H14V21Z\' /><path d=\'M4 21H8V19.3925H4V21Z\' /><path d=\'M11.471 6.37162C11.2294 6.55286 11.1538 6.74395 11.1538 6.88519C11.1538 7.02644 11.2294 7.21752 11.471 7.39877C11.7108 7.57865 12.0728 7.70953 12.5 7.70953C13.1349 7.70953 13.7344 7.90158 14.1907 8.24382C14.6451 8.5847 15 9.11491 15 9.77039C15 10.4259 14.6451 10.9561 14.1907 11.297C13.8758 11.5331 13.4928 11.6978 13.0769 11.7771V12.0373C13.0769 12.3788 12.8186 12.6556 12.5 12.6556C12.1814 12.6556 11.9231 12.3788 11.9231 12.0373V11.7771C11.5072 11.6978 11.1242 11.5331 10.8093 11.297C10.3549 10.9561 10 10.4259 10 9.77039C10 9.42893 10.2583 9.15213 10.5769 9.15213C10.8955 9.15213 11.1538 9.42893 11.1538 9.77039C11.1538 9.91163 11.2294 10.1027 11.471 10.284C11.7108 10.4638 12.0728 10.5947 12.5 10.5947C12.9272 10.5947 13.2892 10.4638 13.529 10.284C13.7706 10.1027 13.8462 9.91163 13.8462 9.77039C13.8462 9.62914 13.7706 9.43806 13.529 9.25681C13.2892 9.07693 12.9272 8.94605 12.5 8.94605C11.8651 8.94605 11.2656 8.754 10.8093 8.41176C10.3549 8.07089 10 7.54067 10 6.88519C10 6.22971 10.3549 5.6995 10.8093 5.35863C11.1242 5.12246 11.5072 4.95781 11.9231 4.87844V4.61826C11.9231 4.2768 12.1814 4 12.5 4C12.8186 4 13.0769 4.2768 13.0769 4.61826V4.87844C13.4928 4.95781 13.8758 5.12246 14.1907 5.35863C14.6451 5.6995 15 6.22971 15 6.88519C15 7.22665 14.7417 7.50345 14.4231 7.50345C14.1045 7.50345 13.8462 7.22665 13.8462 6.88519C13.8462 6.74395 13.7706 6.55286 13.529 6.37162C13.2892 6.19174 12.9272 6.06085 12.5 6.06085C12.0728 6.06085 11.7108 6.19174 11.471 6.37162Z\' /></svg>","supports":{"customClassName":false,"html":false,"multiple":false},"parent":["core/post-content"]}')},73800(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/pinterest","title":"Pinterest","description":"Embed a Pinterest pin, board, or user.","keywords":["social","pinboard","pins"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12,2C6.477,2,2,6.477,2,12c0,4.236,2.636,7.855,6.356,9.312c-0.087-0.791-0.166-2.005,0.035-2.869c0.182-0.78,1.173-4.971,1.173-4.971s-0.299-0.599-0.299-1.484c0-1.39,0.806-2.429,1.809-2.429c0.853,0,1.265,0.641,1.265,1.409c0,0.858-0.546,2.141-0.828,3.329c-0.236,0.996,0.499,1.807,1.481,1.807c1.777,0,3.144-1.874,3.144-4.579c0-2.394-1.72-4.068-4.177-4.068c-2.845,0-4.515,2.134-4.515,4.34c0,0.859,0.331,1.781,0.744,2.282c0.082,0.099,0.094,0.186,0.069,0.287C8.18,14.682,8.011,15.361,7.978,15.5c-0.044,0.183-0.145,0.222-0.334,0.134c-1.249-0.581-2.03-2.407-2.03-3.874c0-3.154,2.292-6.051,6.607-6.051c3.469,0,6.165,2.472,6.165,5.775c0,3.446-2.173,6.22-5.189,6.22c-1.013,0-1.966-0.526-2.292-1.148c0,0-0.501,1.909-0.623,2.377c-0.226,0.869-0.835,1.957-1.243,2.622C9.975,21.844,10.969,22,12,22c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2z\'/></svg>","supports":{"html":false,"align":false,"inserter":false},"attributes":{"url":{"type":"string"}},"example":{"attributes":{"url":"https://pinterest.com/anapinskywalker/"}}}')},1624(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/podcast-player","title":"Podcast Player","description":"Select and play episodes from a single podcast.","keywords":["audio","embed"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m22,6h-5v8.18c-.31-.11-.65-.18-1-.18-1.66,0-3,1.34-3,3s1.34,3,3,3,3-1.34,3-3v-9h3v-2h0Zm-7,0H3v2h12v-2h0Zm0,4H3v2h12v-2h0Zm-4,4H3v2h8v-2h0Zm4,3c0-.55.45-1,1-1s1,.45,1,1-.45,1-1,1-1-.45-1-1Z\' /></svg>","supports":{"align":["wide","full"],"spacing":{"padding":true,"margin":true},"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true},"attributes":{"url":{"type":"string"},"selectedEpisodes":{"type":"array","default":[]},"itemsToShow":{"type":"integer","default":5},"showCoverArt":{"type":"boolean","default":true},"showEpisodeTitle":{"type":"boolean","default":true},"showEpisodeDescription":{"type":"boolean","default":true},"primaryColor":{"type":"string"},"customPrimaryColor":{"type":"string"},"hexPrimaryColor":{"type":"string"},"secondaryColor":{"type":"string"},"customSecondaryColor":{"type":"string"},"hexSecondaryColor":{"type":"string"},"backgroundColor":{"type":"string"},"customBackgroundColor":{"type":"string"},"hexBackgroundColor":{"type":"string"},"exampleFeedData":{"type":"object"}},"example":{"attributes":{"customPrimaryColor":"GREEN","hexPrimaryColor":"GREEN","exampleFeedData":{"title":"Jetpack Example Podcast","link":"https://jetpack.com","cover":"https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160","tracks":[{"id":"3","title":"3. Our third episode","duration":"14:58"},{"id":"2","title":"2. Interview with a special guest","duration":"19:17"},{"id":"1","title":"1. Welcome to Example Podcast","duration":"11:25"}]}}}}')},58087(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"premium-content/container","title":"Paid Content","description":"Restrict access to your content for paying subscribers.","keywords":["buy","credit card","debit card","monetize","earn","exclusive","gated","gofundme","memberships","money","newsletter","paid","patreon","pay","payments","paywall","premium content","purchase","recurring","repeat","signin","stripe","subscribe","subscriptions","support","sponsor","square","toast","venmo","stripe","substack"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M12 1.75a6.75 6.75 0 014 12.19l1.36 6.48a.85.85 0 01-1.22.93L12 19.6l-4.14 1.75a.85.85 0 01-1.22-.93l1.36-6.48A6.75 6.75 0 0112 1.75zm0 1.5a5.25 5.25 0 100 10.5 5.25 5.25 0 000-10.5zm-2.2 12.05l-.86 4.06 2.77-1.17a.85.85 0 01.66 0l2.77 1.17-.86-4.06A6.72 6.72 0 0112 15.25a6.72 6.72 0 01-2.2-.37zM11.3 11.6 9 9.3l1.1-1.1 1.2 1.2 2.5-2.5 1.1 1.1z\'/></svg>","supports":{"html":false},"providesContext":{"premium-content/planIds":"selectedPlanIds","premium-content/isPreview":"isPreview","isPremiumContentChild":"isPremiumContentChild"},"attributes":{"selectedPlanIds":{"type":"array","default":[]},"isPreview":{"type":"boolean","default":false},"isPremiumContentChild":{"type":"boolean","default":true}},"example":{"attributes":{"isPreview":true}}}')},8206(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/rating-star","title":"Star Rating","description":"Rate movies, books, songs, recipes — anything you can put a number on.","keywords":["star","rating","review"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z\'/></svg>","supports":{"html":false},"styles":[{"name":"filled","label":"Filled","isDefault":true},{"name":"outlined","label":"Outlined"}],"attributes":{"rating":{"type":"number","default":1},"maxRating":{"type":"number","default":5},"color":{"type":"string"},"ratingStyle":{"type":"string","default":"star"},"className":{"type":"string"},"align":{"type":"string","default":"left"}},"example":{}}')},85660(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/recipe","title":"Recipe (Beta)","description":"Add images, ingredients and cooking steps to display an easy to read recipe.","keywords":[],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M21,5c-1.11-0.35-2.33-0.5-3.5-0.5c-1.95,0-4.05,0.4-5.5,1.5c-1.45-1.1-3.55-1.5-5.5-1.5S2.45,4.9,1,6v14.65 c0,0.25,0.25,0.5,0.5,0.5c0.1,0,0.15-0.05,0.25-0.05C3.1,20.45,5.05,20,6.5,20c1.95,0,4.05,0.4,5.5,1.5c1.35-0.85,3.8-1.5,5.5-1.5 c1.65,0,3.35,0.3,4.75,1.05c0.1,0.05,0.15,0.05,0.25,0.05c0.25,0,0.5-0.25,0.5-0.5V6C22.4,5.55,21.75,5.25,21,5z M21,18.5 c-1.1-0.35-2.3-0.5-3.5-0.5c-1.7,0-4.15,0.65-5.5,1.5V8c1.35-0.85,3.8-1.5,5.5-1.5c1.2,0,2.4,0.15,3.5,0.5V18.5z\' /><path d=\'M17.5,10.5c0.88,0,1.73,0.09,2.5,0.26V9.24C19.21,9.09,18.36,9,17.5,9c-1.7,0-3.24,0.29-4.5,0.83v1.66 C14.13,10.85,15.7,10.5,17.5,10.5z\' /><path d=\'M13,12.49v1.66c1.13-0.64,2.7-0.99,4.5-0.99c0.88,0,1.73,0.09,2.5,0.26V11.9c-0.79-0.15-1.64-0.24-2.5-0.24 C15.8,11.66,14.26,11.96,13,12.49z\' /><path d=\'M17.5,14.33c-1.7,0-3.24,0.29-4.5,0.83v1.66c1.13-0.64,2.7-0.99,4.5-0.99c0.88,0,1.73,0.09,2.5,0.26v-1.52 C19.21,14.41,18.36,14.33,17.5,14.33z\' /></svg>","supports":{"align":["full","wide"],"alignWide":true,"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true},"attributes":{"ingredients":{"type":"array","default":[]},"steps":{"type":"array","default":[]}}}')},77675(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/recurring-payments","title":"Payment Button","description":"Button allowing you to sell products and subscriptions.","keywords":["buy","contribution","commerce","credit card","debit card","donate","Donations","monetize","earn","ecommerce","gofundme","memberships","money","paid","patreon","pay","payments","products","purchase","recurring","sell","shop","stripe","subscribe","subscriptions","sponsor","square","toast","venmo"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z\'/></svg>","supports":{"html":false,"__experimentalExposeControlsToChildren":true},"usesContext":["isPremiumContentChild"],"providesContext":{"jetpack/parentBlockWidth":"width"},"attributes":{"planId":{"type":"integer"},"planIds":{"type":"array"},"align":{"type":"string"},"url":{"type":"string","default":"#"},"uniqueId":{"type":"string","default":"id"},"width":{"type":"string"}},"parent":["jetpack/payment-buttons"]}')},88795(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/related-posts","title":"Related Posts","description":"Display a list of related posts.","keywords":["similar content","linked","connected"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m19.5,3.5H3.5v4.94s.01,6,.01,6v4s-.01,0-.01,0v1h15.97v-.06h.05l-.02-15.88Zm-11,1v3.94s-3.99,0-3.99,0v-3.94s3.99,0,3.99,0Zm.01,4.94v4h-4v-4h4Zm-3.99,9v-4s3.99,0,3.99,0v4s-3.99,0-3.99,0Zm13.98-13.94v3.94s-8.99,0-8.99,0v-3.94s8.99,0,8.99,0Zm.01,4.94v4h-9v-4h9Zm-8.99,9v-4s8.99,0,8.99,0v4s-8.99,0-8.99,0Z\'/></svg>","supports":{"html":false,"multiple":false,"reusable":false,"color":{"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true,"lineHeight":true},"align":["wide","full"]},"attributes":{"postLayout":{"type":"string","default":"grid"},"displayAuthor":{"type":"boolean","default":false},"displayDate":{"type":"boolean","default":true},"displayThumbnails":{"type":"boolean","default":false},"displayContext":{"type":"boolean","default":false},"postsToShow":{"type":"number","default":3}},"example":{"attributes":{"postLayout":"grid","displayAuthor":false,"displayDate":true,"displayThumbnails":true,"displayContext":false,"postsToShow":2}}}')},20242(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/repeat-visitor","title":"Repeat Visitor","description":"Control block visibility based on how often a visitor has viewed the page.","keywords":["return","visitors","visibility"],"version":"12.5.0","textdomain":"jetpack","category":"widgets","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z\'/></svg>","supports":{"align":["wide","full"],"html":false},"attributes":{"criteria":{"type":"string","default":"after-visits"},"threshold":{"type":"number","default":3}},"example":{"attributes":{"criteria":"after-visits","threshold":3},"innerBlocks":[{"name":"core/paragraph","attributes":"This block will only appear to a visitor who visited the page three or more times."}]}}')},58180(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/send-a-message","title":"Send A Message","description":"Let your visitors send you messages with the tap of a button.","keywords":["whatsapp","messenger","contact","support"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z\'/></svg>","supports":{"html":false},"attributes":{},"example":{}}')},50233(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/sharing-button","title":"Sharing Button","description":"Display a sharing button, allowing users to share your post.","keywords":[],"version":"12.5.0","textdomain":"jetpack","category":"embed","parent":["jetpack/sharing-buttons"],"attributes":{"service":{"type":"string"},"label":{"type":"string"}},"usesContext":["styleType","postId","iconColorValue","iconBackgroundColorValue"],"supports":{"reusable":false,"html":false},"viewScript":"file:./view.js"}')},32870(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/sharing-buttons","title":"Sharing Buttons","description":"Give your readers the ability to easily share your content with X, Facebook, Tumblr, LinkedIn, and a host of other services to help spread your message across the web.","keywords":["sharing","social","bluesky","twitter","x","linkedin","facebook","mastodon","tumblr","threads","whatsapp","telegram","pinterest","pocket","reddit","nextdoor","print","email"],"version":"12.5.0","textdomain":"jetpack","category":"embed","icon":"<svg viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z\' /></svg>","attributes":{"styleType":{"type":"string","default":"icon-text","validValues":["icon-text","icon","text","official"]},"size":{"type":"string","default":"has-normal-icon-size","validValues":["has-small-icon-size","has-normal-icon-size","has-large-icon-size","has-huge-icon-size"]},"iconColor":{"type":"string"},"customIconColor":{"type":"string"},"iconColorValue":{"type":"string"},"iconBackgroundColor":{"type":"string"},"customIconBackgroundColor":{"type":"string"},"iconBackgroundColorValue":{"type":"string"}},"providesContext":{"styleType":"styleType","iconColor":"iconColor","iconColorValue":"iconColorValue","iconBackgroundColor":"iconBackgroundColor","iconBackgroundColorValue":"iconBackgroundColorValue"},"supports":{"align":["left","center","right"],"anchor":true,"__experimentalExposeControlsToChildren":true,"layout":{"allowSwitching":false,"allowInheriting":false,"allowVerticalAlignment":false,"default":{"type":"flex"}},"color":{"enableContrastChecker":true,"background":true,"gradients":true,"customGradient":true,"text":false,"__experimentalDefaultControls":{"background":false}},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"units":["px","em","rem","vh","vw"],"__experimentalDefaultControls":{"blockGap":true,"margin":true,"padding":false}}},"example":{"innerBlocks":[{"name":"jetpack/sharing-button","attributes":{"service":"facebook"}},{"name":"jetpack/sharing-button","attributes":{"service":"x"}},{"name":"jetpack/sharing-button","attributes":{"service":"mastodon"}}]},"viewScript":"file:./view.js","style":"file:./view.css"}')},87762(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/slideshow","title":"Slideshow","description":"Display multiple images in sequential order.","keywords":["story","image","video","gallery"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m19,21.5H6v-1h13c.83,0,1.5-.67,1.5-1.5v-11h1v11c0,1.38-1.12,2.5-2.5,2.5Z\'/><path d=\'m16.38,3.25H4.62c-.75,0-1.37.62-1.37,1.37v11.76c0,.75.62,1.37,1.37,1.37h11.76c.75,0,1.37-.62,1.37-1.37V4.62c0-.75-.62-1.37-1.37-1.37Zm.37,13.13c0,.2-.17.37-.37.37H4.62c-.2,0-.37-.17-.37-.37V4.62c0-.2.17-.37.37-.37h11.76c.2,0,.37.17.37.37v11.76Z\'/><path d=\'M9.39 7.51 12.73 11.04 9.31 14.32 8.61 13.6 11.34 10.99 8.67 8.2 9.39 7.51z\'/></svg>","supports":{"html":false,"align":["center","wide","full"]},"attributes":{"align":{"default":"center","type":"string"},"autoplay":{"type":"boolean","default":false},"delay":{"type":"number","default":3},"ids":{"default":[],"type":"array"},"images":{"type":"array","default":[],"source":"query","selector":".swiper-slide","query":{"alt":{"source":"attribute","selector":"img","attribute":"alt","default":""},"caption":{"type":"string","source":"html","selector":"figcaption"},"id":{"source":"attribute","selector":"img","attribute":"data-id"},"url":{"source":"attribute","selector":"img","attribute":"src"},"aspectRatio":{"source":"attribute","selector":"img","attribute":"data-aspect-ratio"}}},"effect":{"type":"string","default":"slide"},"sizeSlug":{"type":"string"}},"example":{"align":"center","autoplay":true,"ids":[22,23,24],"images":[{"alt":"","caption":"","id":22,"url":"./slideshowExample1.png"},{"alt":"","caption":"","id":23,"url":"./slideshowExample2.png"},{"alt":"","caption":"","id":24,"url":"./slideshowExample3.png"}],"effect":"slide"}}')},68331(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/story","title":"Story","description":"Add an interactive story.","keywords":["story","image","video","gallery"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><g><path d=\'M17 5a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2h9z\' /><path d=\'M13 4H5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2z\' /><path d=\'M7 16h8a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z\' /></g></svg>","supports":{"html":false},"attributes":{"settings":{"type":"object"},"mediaFiles":{"type":"array","default":[]}},"example":{"attributes":{"mediaFiles":[{"alt":"","caption":"","mime":"image/jpg","type":"image","id":22,"url":"./storyExample1.png"}]}}}')},11380(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/subscriber-login","title":"Subscriber Login","description":"Show links for subscribers to login, logout, or manage their subscription.","keywords":["login","logout","subscription","member","account","user"],"version":"0.0.1","textdomain":"jetpack","category":"grow","icon":"<svg width=\'24\' height=\'24\' viewBox=\'0 0 24 24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z\' fill-rule=\'evenodd\' clip-rule=\'evenodd\'></path></svg>","supports":{"align":true,"anchor":false,"customClassName":true,"className":true,"html":false,"multiple":true,"reusable":true,"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"color":{"text":false,"link":true,"gradients":true}},"attributes":{"redirectToCurrent":{"type":"boolean","default":true},"logInLabel":{"type":"string"},"logOutLabel":{"type":"string"},"showManageSubscriptionsLink":{"type":"boolean","default":true},"manageSubscriptionsLabel":{"type":"string"}}}')},99876(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/subscriptions","title":"Subscribe","description":"Subscribe to this blog\'s posts as a newsletter.","keywords":["newsletter","email","follow"],"version":"12.5.0","textdomain":"jetpack","category":"grow","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m19.02,5H4.98c-1.09,0-1.98.89-1.98,1.98v10.04c0,1.09.89,1.98,1.98,1.98h14.04c1.09,0,1.98-.89,1.98-1.98V6.98c0-1.09-.89-1.98-1.98-1.98Zm.48,11.92c0,.32-.26.58-.58.58H5.08c-.32,0-.58-.26-.58-.58V7.08c0-.32.26-.58.58-.58h13.84c.32,0,.58.26.58.58v9.84Z\'/><path d=\'m4.38,17.69l5.71-4.79s.96,1,1.91.99,1.91-.99,1.91-.99l5.59,4.79v-2.03l-4.41-3.73,4.41-3.72v-1.91l-7.14,5.76c-.24.19-.59.19-.83,0l-7.14-5.88v1.98l4.3,3.67-4.3,3.78v2.08Z\'/></svg>","supports":{"spacing":{"margin":true,"padding":true},"align":["wide","full"]},"styles":[{"name":"split","label":"Split","isDefault":true},{"name":"compact","label":"Compact"},{"name":"button","label":"Button only"}],"attributes":{"subscribePlaceholder":{"type":"string"},"showSubscribersTotal":{"type":"boolean","default":false},"includeSocialFollowers":{"type":"boolean"},"buttonOnNewLine":{"type":"boolean","default":false},"buttonWidth":{"type":"string"},"submitButtonText":{"type":"string"},"emailFieldBackgroundColor":{"type":"string"},"customEmailFieldBackgroundColor":{"type":"string"},"emailFieldGradient":{"type":"string"},"customEmailFieldGradient":{"type":"string"},"buttonBackgroundColor":{"type":"string"},"customButtonBackgroundColor":{"type":"string"},"buttonGradient":{"type":"string"},"customButtonGradient":{"type":"string"},"textColor":{"type":"string"},"customTextColor":{"type":"string"},"fontSize":{"type":"string"},"customFontSize":{"type":"string"},"borderRadius":{"type":"number"},"borderWeight":{"type":"number"},"borderColor":{"type":"string"},"customBorderColor":{"type":"string"},"padding":{"type":"number"},"spacing":{"type":"number"},"successMessage":{"type":"string","default":"Success! An email was just sent to confirm your subscription. Please find the email now and click \'Confirm\' to start subscribing."},"appSource":{"type":"string"},"className":{"type":"string"},"preselectNewsletterCategories":{"type":"boolean","default":false},"selectedNewsletterCategoryIds":{"type":"array","default":[]}},"example":{}}')},76585(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/tiled-gallery","title":"Tiled Gallery","description":"Display multiple images in an elegantly organized tiled layout.","keywords":["columns","images","photos","pictures","square","circle","mosaic"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z\'/></svg>","supports":{"align":["center","wide","full"],"color":{"gradients":true,"text":false},"customClassName":false,"html":false,"spacing":{"margin":true,"padding":true},"__experimentalHideChildBlockControls":true},"providesContext":{"imageCrop":"imageCrop"},"styles":[{"name":"rectangular","label":"Tiled mosaic","isDefault":true},{"name":"circle","label":"Circles"},{"name":"square","label":"Square tiles"},{"name":"columns","label":"Tiled columns"}],"attributes":{"align":{"type":"string","default":"center"},"className":{"type":"string","default":"is-style-rectangular"},"columns":{"type":"number"},"columnWidths":{"type":"array","default":[]},"ids":{"type":"array","default":[]},"imageFilter":{"type":"string"},"images":{"type":"array","default":[],"source":"query","selector":".tiled-gallery__item","query":{"alt":{"attribute":"alt","default":"","selector":"img","source":"attribute"},"height":{"attribute":"data-height","type":"number","selector":"img","source":"attribute"},"id":{"attribute":"data-id","selector":"img","source":"attribute"},"link":{"attribute":"data-link","selector":"img","source":"attribute"},"customLink":{"attribute":"href","selector":"a","source":"attribute"},"url":{"attribute":"data-url","selector":"img","source":"attribute"},"width":{"attribute":"data-width","selector":"img","source":"attribute","type":"number"}}},"imageCrop":{"type":"boolean","default":true},"linkTo":{"default":"none","type":"string"},"roundedCorners":{"type":"integer","default":0}}}')},86525(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/tock","title":"Tock","description":"Reserve a table at your restaurant with Tock.","keywords":["booking","reservation","restaurant"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><g transform=\'translate(3.7 3.45) scale(0.86)\'><path d=\'M10 15.619C6.84915 15.619 4.28572 13.0542 4.28572 9.90176C4.28572 7.24269 6.10957 5.00183 8.57143 4.36551V0C3.72557 0.693782 0 4.86162 0 9.90176C0 15.4274 4.47715 19.9069 10 19.9069C12.2461 19.9069 14.3193 19.1658 15.9887 17.9148L12.9003 14.825C12.0494 15.3287 11.0581 15.619 10 15.619 M15.7135 9.90176C15.7135 10.9604 15.4233 11.9522 14.9199 12.8035L18.0082 15.8935C19.2585 14.2232 19.9992 12.149 19.9992 9.90176C19.9992 4.86162 16.2736 0.693782 11.4277 0V4.36551C13.8896 5.00183 15.7135 7.24269 15.7135 9.90176\'/></g></svg>","supports":{"align":true,"html":false,"multiple":false},"attributes":{"url":{"type":"string"}},"example":{"attributes":{"url":"roister"},"viewportWidth":250}}')},35075(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/top-posts","title":"Top Posts & Pages","description":"Display your most popular content.","keywords":["ranking","views","trending","popular"],"version":"1.0","textdomain":"jetpack","category":"embed","icon":"<svg xmlns=\'http://www.w3.org/2000/svg\' height=\'24px\' viewBox=\'0 0 24 24\' width=\'24px\'><rect fill=\'none\' height=\'24\' width=\'24\'/><path d=\'M19,5h-2V3H7v2H5C3.9,5,3,5.9,3,7v1c0,2.55,1.92,4.63,4.39,4.94c0.63,1.5,1.98,2.63,3.61,2.96V19H7v2h10v-2h-4v-3.1 c1.63-0.33,2.98-1.46,3.61-2.96C19.08,12.63,21,10.55,21,8V7C21,5.9,20.1,5,19,5z M5,8V7h2v3.82C5.84,10.4,5,9.3,5,8z M19,8 c0,1.3-0.84,2.4-2,2.82V7h2V8z\'/></svg>","supports":{"align":["wide","full"],"html":false,"multiple":true,"reusable":true,"color":{"gradients":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"__experimentalFontFamily":true,"fontSize":true,"lineHeight":true}},"attributes":{"layout":{"type":"string","default":"grid"},"displayAuthor":{"type":"boolean","default":true},"displayDate":{"type":"boolean","default":true},"displayThumbnail":{"type":"boolean","default":true},"displayContext":{"type":"boolean","default":false},"period":{"type":"string","default":"7"},"postsToShow":{"type":"number","default":3},"postTypes":{"type":"object","default":{"post":true,"page":true}}}}')},15210(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/voice-to-content","title":"Voice to content","description":"Transform your spoken words into a post ready to publish with AI.","keywords":["AI","GPT","AL","Magic","help","assistant"],"version":"12.5.0","textdomain":"jetpack","category":"media","icon":"<svg viewBox=\'0 0 20 20\' width=\'20\' height=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12 9V3c0-1.1-.89-2-2-2-1.12 0-2 .94-2 2v6c0 1.1.9 2 2 2 1.13 0 2-.94 2-2zm4 0c0 2.97-2.16 5.43-5 5.91V17h2c.56 0 1 .45 1 1s-.44 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1h2v-2.09C6.17 14.43 4 11.97 4 9c0-.55.45-1 1-1 .56 0 1 .45 1 1 0 2.21 1.8 4 4 4 2.21 0 4-1.79 4-4 0-.55.45-1 1-1 .56 0 1 .45 1 1z\'/></svg>","supports":{"html":false,"multiple":true,"reusable":false},"attributes":{"content":{"type":"string"}}}')},16344(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/wordads","title":"Ad","description":"Earn income by adding high quality ads to your post.","keywords":["ads","WordAds","advertisement"],"version":"12.5.0","textdomain":"jetpack","category":"monetize","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z\'/></svg>","supports":{"align":["left","center","right"],"alignWide":false,"className":false,"customClassName":false,"html":false,"reusable":false},"attributes":{"align":{"type":"string","default":"center"},"format":{"type":"string","default":"mrec"},"hideMobile":{"type":"boolean","default":false}},"example":{}}')},73391(e){"use strict";e.exports=JSON.parse('{"production":["ai-assistant","ai-chat","ai-assistant-plugin","blogging-prompt","business-hours","button","calendly","cookie-consent","contact-form","contact-form/salesforce-lead-form","contact-info","donations","eventbrite","field-file","gif","google-calendar","image-compare","instagram-gallery","like","likes","mailchimp","map","markdown","opentable","payments","pinterest","podcast-episode","podcast-player","premium-content","rating-star","recurring-payments","related-posts","repeat-visitor","send-a-message","whatsapp-button","seo","sharing","shortlinks","simple-payments","slideshow","story","subscriber-login","subscriptions","tiled-gallery","tock","videopress","wordads","payments-intro","post-publish-qr-post-panel","payment-buttons","videopress/video","ai-assistant-support","ai-assistant-form-support","paywall","blogroll","blogroll-item","nextdoor","ai-assistant-usage-panel","sharing-button","sharing-buttons","ai-content-lens","blog-stats","top-posts","goodreads","voice-to-content","ai-featured-image-generator","ai-title-optimization","ai-assistant-experimental-image-generation-support","ai-general-purpose-image-generator","ai-proofread-breve","ai-assistant-site-logo-support","ai-title-optimization-keywords-support","ai-response-feedback","ai-assistant-image-extension","ai-sidebar-toolbar-button","ai-sidebar-agent-notice","ai-seo-enhancer","ai-correct-spelling","paypal-payment-buttons","image-studio"],"beta":["google-docs-embed","recipe","v6-video-frame-poster","videopress/video-chapters","ai-assistant-backend-prompts","ai-list-to-table-transform"],"experimental":[],"no-post-editor":["ai-assistant","business-hours","button","calendly","contact-form","contact-info","donations","eventbrite","gif","google-calendar","instagram-gallery","mailchimp","map","markdown","opentable","pinterest","rating-star","related-posts","repeat-visitor","simple-payments","slideshow","tiled-gallery","tock","videopress","voice-to-content","wordads"]}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return n[e](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var s=Object.create(null);o.r(s);var a={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,o.d(s,a),s},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),o(72398),o(61351),o(8393),o(88797),o(87888),o(14990),o(45878),o(60312),o(78165),o(25907),o(46197),o(34590),o(55734),o(29280),o(33129),o(92585),o(67511),o(24938),o(97618),o(12742),o(57809),o(71992),o(74585),o(46010),o(80800),o(80587),o(8171),o(75849),o(97453),o(79238),o(38136),o(44921),o(29590),o(48715),o(96764),o(55127),o(94052),o(39470),o(25589),o(94881),o(15652),o(99398),o(36838),o(42286),o(54154),o(19954),o(22475),o(3361),o(39843),o(74956),o(25101),o(95184),o(99883),o(80838),o(72718),o(85779);o(16636)})(); | |