File Editor
Directories:
.. (Back)
Files:
view.asset.php
view.css
view.js
view.js.LICENSE.txt
view.rtl.css
Create New File
Create
Edit File: view.js
/*! For license information please see view.js.LICENSE.txt */ (()=>{var e={84788:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2378);let s,o,i,a;const l=/<(\/)?(\w+)\s*(\/)?>/g;function c(e,t,n,r,s){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:s,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(s);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,i]=e,a=n.length;if(i)return["self-closed",o,t,a];if(r)return["closer",o,t,a];return["opener",o,t,a]}(),[n,u,d,m]=t,g=a.length,y=d>o?o:null;if(!e[u])return p(),!1;switch(n){case"no-more-tokens":if(0!==g){const{leadingTextStart:e,tokenStart:t}=a.pop();i.push(s.substr(e,t))}return p(),!1;case"self-closed":return 0===g?(null!==y&&i.push(s.substr(y,d-y)),i.push(e[u]),o=d+m,!0):(f(c(e[u],d,m)),o=d+m,!0);case"opener":return a.push(c(e[u],d,m,d+m,y)),o=d+m,!0;case"closer":if(1===g)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:l,children:c}=a.pop(),u=e?s.substr(o,e-o):s.substr(o);u&&c.push(u);null!==n&&i.push(s.substr(n,l-n));i.push((0,r.cloneElement)(t,null,...c))}(d),o=d+m,!0;const t=a.pop(),n=s.substr(t.prevOffset,d-t.prevOffset);t.children.push(n),t.prevOffset=d+m;const l=c(t.element,t.tokenStart,t.tokenLength,d+m);return l.children=t.children,f(l),o=d+m,!0;default:return p(),!1}}function p(){const e=s.length-o;0!==e&&i.push(s.substr(o,e))}function f(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:i,children:l}=e,c=a[a.length-1],u=s.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push((0,r.cloneElement)(t,null,...l)),c.prevOffset=i||n+o}t.default=(e,t)=>{if(s=e,o=0,i=[],a=[],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,...i)}},51806:(e,t,n)=>{"use strict";var r=n(25877);Object.defineProperty(t,"__esModule",{value:!0});var s={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 o.default}}),Object.defineProperty(t,"renderToString",{enumerable:!0,get:function(){return u.default}});var o=r(n(84788)),i=n(2378);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(29115);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var l=n(82986);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,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 s.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 s.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),s=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,s)=>{t&&"string"!=typeof t&&(t=(0,r.cloneElement)(t,{key:[n,s].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:s,...o}=e.props;return(0,r.createElement)(t,{key:n,...o},s)}))},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=h,t.renderAttributes=_,t.renderComponent=M,t.renderElement=P,t.renderNativeComponent=x,t.renderStyle=T;var s=n(62313),o=n(28132),i=n(81975),a=n(2378),l=r(n(74745));const{Provider:c,Consumer:u}=(0,a.createContext)(void 0),d=(0,a.forwardRef)((()=>null)),p=new Set(["string","boolean","number"]),f=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),m=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"]),g=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"]),y=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 h(e,t){return t.some((t=>0===e.indexOf(t)))}function b(e){return"key"===e||"children"===e}function w(e,t){return"style"===e?T(t):t}const v=["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)),{}),E=["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)),{}),C=["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 S(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return E[t]?E[t]:v[t]?(0,o.paramCase)(v[t]):C[t]?C[t]:t}function k(e){return e.startsWith("--")?e:h(e,["ms","O","Moz","Webkit"])?"-"+(0,o.paramCase)(e):(0,o.paramCase)(e)}function O(e,t){return"number"!=typeof t||0===t||y.has(e)?t:t+"px"}function P(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return j(e,t,n);switch(typeof e){case"string":return(0,i.escapeHTML)(e);case"number":return e.toString()}const{type:r,props:s}=e;switch(r){case a.StrictMode:case a.Fragment:return j(s.children,t,n);case l.default:const{children:e,...r}=s;return x(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return x(r,s,t,n);case"function":return r.prototype&&"function"==typeof r.prototype.render?M(r,s,t,n):P(r(s,n),t,n)}switch(r&&r.$$typeof){case c.$$typeof:return j(s.children,s.value,n);case u.$$typeof:return P(s.children(t||r._currentValue),t,n);case d.$$typeof:return P(r.render(s),t,n)}return""}function x(e,t,n,r={}){let s="";if("textarea"===e&&t.hasOwnProperty("value")){s=j(t.value,n,r);const{value:e,...o}=t;t=o}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?s=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(s=j(t.children,n,r));if(!e)return s;const o=_(t);return f.has(e)?"<"+e+o+"/>":"<"+e+o+">"+s+"</"+e+">"}function M(e,t,n,r={}){const s=new e(t,r);"function"==typeof s.getChildContext&&Object.assign(r,s.getChildContext());return P(s.render(),n,r)}function j(e,t,n={}){let r="";e=Array.isArray(e)?e:[e];for(let s=0;s<e.length;s++){r+=P(e[s],t,n)}return r}function _(e){let t="";for(const n in e){const r=S(n);if(!(0,i.isValidAttributeName)(r))continue;let s=w(n,e[n]);if(!p.has(typeof s))continue;if(b(n))continue;const o=m.has(r);if(o&&!1===s)continue;const a=o||h(n,["data-","aria-"])||g.has(r);("boolean"!=typeof s||a)&&(t+=" "+r,o||("string"==typeof s&&(s=(0,i.escapeAttribute)(s)),t+='="'+s+'"'))}return t}function T(e){if(!(0,s.isPlainObject)(e))return e;let t;for(const n in e){const r=e[n];if(null==r)continue;t?t+=";":t="";t+=k(n)+":"+O(n,r)}return t}t.default=P},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)},59823:(e,t,n)=>{"use strict";n.d(t,{AG:()=>i,Ti:()=>o,eV:()=>a});var r=n(38697),s=n(72867);function o(e,t){return 0===t?e.toLowerCase():(0,s.By)(e,t)}function i(e,t){return 0===t?e.toLowerCase():(0,s.Pv)(e)}function a(e,t){return void 0===t&&(t={}),(0,s.Ho)(e,(0,r.pi)({transform:o},t))}},81338:(e,t,n)=>{"use strict";n.d(t,{I:()=>a,w:()=>i});var r=n(38697),s=n(68308),o=n(83078);function i(e){return(0,o.l)(e.toLowerCase())}function a(e,t){return void 0===t&&(t={}),(0,s.B)(e,(0,r.pi)({delimiter:" ",transform:i},t))}},28132:(e,t,n)=>{"use strict";n.r(t),n.d(t,{camelCase:()=>r.eV,camelCaseTransform:()=>r.Ti,camelCaseTransformMerge:()=>r.AG,capitalCase:()=>s.I,capitalCaseTransform:()=>s.w,constantCase:()=>o.c,dotCase:()=>i.$,headerCase:()=>a.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:()=>f.f});var r=n(59823),s=n(81338),o=n(56233),i=n(77352),a=n(20025),l=n(68308),c=n(76854),u=n(72867),d=n(76559),p=n(44434),f=n(59491)},56233:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(38697),s=n(68308),o=n(48936);function i(e,t){return void 0===t&&(t={}),(0,s.B)(e,(0,r.pi)({delimiter:"_",transform:o.L},t))}},77352:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(38697),s=n(68308);function o(e,t){return void 0===t&&(t={}),(0,s.B)(e,(0,r.pi)({delimiter:"."},t))}},20025:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(38697),s=n(81338);function o(e,t){return void 0===t&&(t={}),(0,s.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"))}},97740:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});function r(e){return e.toLowerCase()}},73171:e=>{var t=1e3,n=60*t,r=60*n,s=24*r,o=7*s,i=365.25*s;function a(e,t,n,r){var s=t>=1.5*n;return Math.round(e/n)+" "+r+(s?"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 a=/^(-?(?:\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(!a)return;var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*i;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*s;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 o=Math.abs(e);if(o>=s)return a(e,o,s,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=s)return Math.round(e/s)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=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:()=>i});var r=n(97740),s=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function i(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,i=void 0===n?s:n,l=t.stripRegexp,c=void 0===l?o:l,u=t.transform,d=void 0===u?r.U:u,p=t.delimiter,f=void 0===p?" ":p,m=a(a(e,i,"$1\0$2"),c,"\0"),g=0,y=m.length;"\0"===m.charAt(g);)g++;for(;"\0"===m.charAt(y-1);)y--;return m.slice(g,y).split("\0").map(d).join(f)}function a(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:()=>o});var r=n(38697),s=n(77352);function o(e,t){return void 0===t&&(t={}),(0,s.$)(e,(0,r.pi)({delimiter:"-"},t))}},72867:(e,t,n)=>{"use strict";n.d(t,{By:()=>o,Ho:()=>a,Pv:()=>i});var r=n(38697),s=n(68308);function o(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 i(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function a(e,t){return void 0===t&&(t={}),(0,s.B)(e,(0,r.pi)({delimiter:"",transform:o},t))}},76559:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(38697),s=n(77352);function o(e,t){return void 0===t&&(t={}),(0,s.$)(e,(0,r.pi)({delimiter:"/"},t))}},51516:(e,t,n)=>{"use strict";var r=n(91850);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},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 s,o,i=r[n.type],a=t(n);if(i)for(s=0;s<i.length;s++)(o=i[s](n,e))&&e.dispatch(o);return a}}}).effects=r,n}},44434:(e,t,n)=>{"use strict";n.d(t,{G:()=>a,a:()=>i});var r=n(38697),s=n(68308),o=n(83078);function i(e,t){var n=e.toLowerCase();return 0===t?(0,o.l)(n):n}function a(e,t){return void 0===t&&(t={}),(0,s.B)(e,(0,r.pi)({delimiter:" ",transform:i},t))}},59491:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(38697),s=n(77352);function o(e,t){return void 0===t&&(t={}),(0,s.$)(e,(0,r.pi)({delimiter:"_"},t))}},6975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(51128);const s=n.n(r)()("dops:analytics");let o,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const a={initialize:function(e,t,n){a.setUser(e,t),a.setSuperProps(n),a.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){o=e},assignSuperProps:function(e){o=Object.assign(o||{},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]);s("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);a.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]);s("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Built stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,s,o,i){a.ga.recordPurchase(e,t,n,r,s,o,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(o&&(s("- Super Props: %o",o),t=Object.assign(t,o)),s('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):s('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};a.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){a.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){s("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};a.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),a.ga.initialized=!0)},recordPageView:function(e,t){a.ga.initialize(),s("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){a.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(o+=" [Option Label: "+n+"]"),void 0!==r&&(o+=" [Option Value: "+r+"]"),s(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,s,o,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:s,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},l=a},13419:(e,t,n)=>{"use strict";n.d(t,{dM:()=>r.d});n(76714),n(80354),n(75404),n(61053),n(11380),n(6342);var r=n(96959);n(39058)},6342:(e,t,n)=>{"use strict";n(99196)},96959:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(69307);function s(e){const t={};let n="span",s=e.icon;const o=document.createElement("div");o.innerHTML=e.icon;const i=o.querySelector("svg");return i&&(n="svg",s=i.innerHTML,Array.from(i.attributes).forEach((({nodeName:e,nodeValue:n})=>t[e]=n))),(0,r.createElement)(n,{...t,dangerouslySetInnerHTML:{__html:s||""}})}},61053:(e,t,n)=>{"use strict";var r=n(6975);n(69307);const{tracks:s}=r.Z,{recordEvent:o}=s},11380:(e,t,n)=>{"use strict";n(9818),n(69307),n(39058)},44166:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>p,rW:()=>d});var r=n(9818),s=n(99505),o=n(82162),i=n(39058);const a="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:a,options:e}}const p={updateJetpackModuleStatus:function*(e){try{yield u(e.name,!0),yield(0,o.zL)(e);const t=yield(0,o.Bs)();return yield d({data:t}),!0}catch(e){const t=(0,r.select)(i.p).getJetpackModules();return yield d(t),!1}finally{yield u(e.name,!1)}},setJetpackModules:d,fetchModules:function*(){if((0,s.Wp)())return!0;try{yield c(!0);const e=yield(0,o.Bs)();return yield d({data:e}),!0}catch(e){const t=(0,r.select)(i.p).getJetpackModules();return yield d(t),!1}finally{yield c(!1)}}}},82162:(e,t,n)=>{"use strict";n.d(t,{Bs:()=>a,ZP:()=>c,zL:()=>l});var r=n(86989),s=n.n(r);const o="FETCH_JETPACK_MODULES",i="UPDATE_JETPACK_MODULE_STATUS",a=()=>({type:o}),l=e=>({type:i,settings:e}),c={[o]:function(){return s()({path:"/jetpack/v4/module/all",method:"GET"})},[i]:function({settings:e}){return s()({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),s=n(44166),o=n(82162),i=n(42469),a=n(55133),l=n(43524);const c="jetpack-modules",u=(0,r.createReduxStore)(c,{reducer:i.Z,actions:s.ZP,controls:o.ZP,resolvers:a.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:()=>s});const r={isLoading:!1,isUpdating:{},data:{}},s=(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:()=>o});var r=n(44166),s=n(82162);const o={getJetpackModules:function*(){try{const e=yield(0,s.Bs)();if(e)return(0,r.rW)({data:e})}catch(e){console.error(e)}}}},43524:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(99505);const s={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";var r=n(65736);n(96483),n(92819);const __=r.__;__("Upgrade your plan to use video covers","jetpack"),__("Upgrade your plan to upload audio","jetpack")},76714:(e,t,n)=>{"use strict";n(98817)},99505:(e,t,n)=>{"use strict";function r(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function s(){return"simple"===r()}n.d(t,{Wp:()=>s})},80354:(e,t,n)=>{"use strict";n(82674),n(94333)},19395:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),s=n(70444);function o({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)(s.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),s=n(65736),o=n(3228);const __=s.__;function i({isEllipsis:e,disabled:t,index:n,isSelected:i,progress:a,onClick:l}){const c=t||e;let u=null;return e||(u=i?(0,s.sprintf)(/* translators: %d: Slide number. */ __("Slide %d, currently selected","jetpack"),n+1):(0,s.sprintf)(/* translators: %d: Slide number. */ __("Go to slide %d","jetpack"),n+1)),(0,r.createElement)("button",{role:c?"presentation":"tab",key:n,className:(0,o.Z)("wp-story-pagination-bullet",{"wp-story-pagination-ellipsis":e}),"aria-label":u,"aria-disabled":c||i,onClick:c||i?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:`${a}%`}})))}},44689:(e,t,n)=>{"use strict";n.d(t,{b:()=>a,r:()=>l});var r=n(82674),s=n.n(r),o=n(51806),i=n(3228);const a=({className:e,size:t,label:n,isPressed:r,...a})=>(0,o.createElement)("button",s()({type:"button","aria-label":n,"aria-pressed":r,className:(0,i.Z)("jetpack-mdc-icon-button","circle-icon","outlined","bordered",e),style:{width:`${t}px`,height:`${t}px`}},a)),l=({className:e,size:t=24,label:n,isPressed:r,...a})=>(0,o.createElement)("button",s()({type:"button","aria-label":n,"aria-pressed":r,className:(0,i.Z)("jetpack-mdc-icon-button",e),style:{width:`${t}px`,height:`${t}px`}},a))},51543:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51806);const s=()=>(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:()=>a});var r=n(51806),s=n(65736),o=n(44689),i=n(89620);const _x=s._x;function a({playing:e,muted:t,onPlayPressed:n,onMutePressed:s,showMute:a}){return(0,r.createElement)("div",{className:"wp-story-controls"},(0,r.createElement)(o.r,{isPressed:e,label:e?_x("pause","Button tooltip text","jetpack"):_x("play","Button tooltip text","jetpack",0),onClick:n},e?(0,r.createElement)(i.fp,null):(0,r.createElement)(i.o1,null)),a&&(0,r.createElement)(o.r,{isPressed:t,label:t?_x("unmute","Button tooltip text","jetpack"):_x("mute","Button tooltip text","jetpack",0),onClick:s},t?(0,r.createElement)(i.xb,null):(0,r.createElement)(i.MC,null)))}},14904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(51806),s=n(65736),o=n(44689),i=n(89620);const __=s.__;function a({fullscreen:e,onExitFullscreen:t,siteIconUrl:n,storyTitle:s}){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"},s)),(0,r.createElement)(o.r,{className:"wp-story-exit-fullscreen",label:__("Exit Fullscreen","jetpack"),onClick:t},(0,r.createElement)(i.Tw,null))):null}},89620:(e,t,n)=>{"use strict";n.d(t,{JM:()=>p,MC:()=>u,Tw:()=>c,Vq:()=>f,fp:()=>l,o1:()=>a,xb:()=>d});var r=n(51806),s=n(70444),o=n(36598);const i=({children:e,size:t})=>(0,o.Z)(e,t,t),a=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.Path,{d:"M8 5v14l11-7z"})),l=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.Path,{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})),c=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.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)(i,{size:e},(0,r.createElement)(s.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)(i,{size:e},(0,r.createElement)(s.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)(i,{size:e},(0,r.createElement)(s.Path,{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),f=({size:e})=>(0,r.createElement)(i,{size:e},(0,r.createElement)(s.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:()=>a.Z,WB:()=>l.Z,ZX:()=>s.Z,aV:()=>i.Z,gT:()=>r.Z,h4:()=>o.Z,pU:()=>c.pU});var r=n(94754),s=n(85584),o=n(14904),i=n(74629),a=n(19395),l=n(51543),c=n(41126);n(44689)},41126:(e,t,n)=>{"use strict";n.d(t,{pU:()=>c});var r=n(82674),s=n.n(r),o=n(51806),i=n(3228);const a=({title:e,alt:t,className:n,id:r,mediaRef:s,mime:a,sizes:l,srcset:c,url:u})=>(0,o.createElement)("img",{ref:s,"data-id":r,"data-mime":a,title:e,alt:t,src:u,className:(0,i.Z)("wp-story-image",`wp-image-${r}`,n),srcSet:c,sizes:l}),l=({title:e,className:t,id:n,mediaRef:r,mime:s,url:a,poster:l})=>(0,o.createElement)("video",{className:(0,i.Z)("wp-story-video","intrinsic-ignore",`wp-video-${n}`,t),ref:r,"data-id":n,title:e,type:s,src:a,poster:l,tabIndex:-1,preload:"auto",playsInline:!0}),c=({targetAspectRatio:e,cropUpTo:t,type:n,width:r,height:i,...c})=>{let u=null;if(r&&i){const n=r/i;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||(c.mime||"").startsWith("video/");return(0,o.createElement)("figure",null,d?(0,o.createElement)(l,s()({},c,{className:u})):(0,o.createElement)(a,s()({},c,{className:u})))}},74629:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),s=n(69307),o=n(65736),i=n(99891),a=n(44689),l=n(89620);const __=o.__;function c({ended:e,hasPrevious:t,onNextSlide:n,onPreviousSlide:c,icon:u,slideCount:d,showSlideCount:p}){const f=(0,s.useCallback)((t=>{e||(t.stopPropagation(),c())}),[c,e]),m=(0,s.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)(i.Z,{role:"img"})),t&&(0,r.createElement)("div",{className:"wp-story-prev-slide",onClick:f},(0,r.createElement)(a.b,{size:44,label:__("Previous Slide","jetpack"),className:"outlined-w"},(0,o.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:m},(0,r.createElement)(a.b,{size:44,label:__("Next Slide","jetpack"),className:"outlined-w"},(0,o.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:()=>u});var r=n(51806),s=n(69307),o=n(3228),i=n(47591),a=n(74240),l=n(7449);const c=/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:f,playerQuerySelector:m,children:g}){const y=(0,s.useRef)(),h=(0,s.useRef)(),[b,w]=(0,s.useState)(null),v=c&&i.am(),E=u&&!v,C=u&&v;return(0,s.useLayoutEffect)((()=>{if(v)u?y.current&&i.uP(y.current,f):i.bG()&&i.JF();else if(u){if(w([document.documentElement.scrollLeft,document.documentElement.scrollTop]),document.body.classList.add(n),document.getElementsByTagName("html")[0].classList.add(n),h.current){const e=h.current.querySelector(m);e&&e.focus()}}else if(document.body.classList.remove(n),document.getElementsByTagName("html")[0].classList.remove(n),b){window.scrollTo(...b);const e=y.current.querySelector(m);e&&e.focus()}}),[u]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.Z,d,(0,r.createElement)("div",{ref:y,className:(0,o.Z)(e,{[t]:C}),onKeyDown:p},!E&&g)),(0,r.createElement)(l.Z,{className:(0,o.Z)(e,{[t]:E}),isOpened:E,onRequestClose:f,shadowDOM:d,onKeyDown:E&&p,focusOnMount:!1,modalRef:h},E&&g))}},73022:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(51806),s=n(9818),o=n(69307),i=n(39630),a=n(93340),l=n(75096);n(31179);function c({id:e,slides:t,metadata:n,disabled:c,...u}){const d=(0,o.useMemo)((()=>e||Math.random().toString(36)),[e]),{init:p,setEnded:f,setPlaying:m,setFullscreen:g,showSlide:y}=(0,s.useDispatch)("jetpack/story/player"),{playing:h,currentSlideIndex:b,fullscreen:w,isReady:v,playerSettings:E}=(0,s.useSelect)((e=>{const{getCurrentSlideIndex:t,getSettings:n,isFullscreen:r,isPlayerReady:s,isPlaying:o}=e("jetpack/story/player");return s(d)?{playing:o(d),currentSlideIndex:t(d),isReady:!0,fullscreen:r(d),playerSettings:n(d)}:{isReady:!1}}),[d]);(0,o.useEffect)((()=>{v||p(d,{slideCount:t.length,...u})}),[v,d]);const C=(0,o.useCallback)((e=>{switch(e.keyCode){case i.ENTER:if(w)break;case i.SPACE:m(d,!h);break;case i.LEFT:b>0&&y(d,b-1);break;case i.RIGHT:b<t.length-1?y(d,b+1):f(d)}}),[d,b,w,h]),S=(0,o.useCallback)((()=>{g(d,!1)}),[d]);return v?(0,r.createElement)(a.Z,{shadowDOM:E.shadowDOM,className:"wp-story-app",fullscreenClassName:"wp-story-fullscreen",bodyFullscreenClassName:"wp-story-in-fullscreen",playerQuerySelector:".wp-story-container",fullscreen:w,onExitFullscreen:S,onKeyDown:C},(0,r.createElement)(l.Z,{id:d,slides:t,metadata:n,disabled:c})):null}},47591:(e,t,n)=>{"use strict";n.d(t,{JF:()=>i,am:()=>r,bG:()=>s,uP:()=>o});const r=()=>document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled,s=()=>document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullScreenElement,o=(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)}},i=()=>(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen).call(document)},74240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),s=n(69307);const o=window&&window.Element&&window.Element.prototype.hasOwnProperty("attachShadow");function i({enabled:e,delegatesFocus:t=!1,mode:n="open",globalStyleElements:i=[],adoptedStyleSheets:l=null,mountOnElement:c=null,children:u}){const[d,p]=(0,s.useState)(null),f=c||d,[m,g]=(0,s.useState)(null),y="string"==typeof i?[...document.querySelectorAll(i)]:i,h=o&&e&&y.length>0,b=(0,s.useCallback)((e=>{null!==e&&p(e.parentNode)}),[]);if((0,s.useEffect)((()=>{if(!f)return;if(f.shadowRoot)return void g(f.shadowRoot);const e=f.attachShadow({delegatesFocus:t,mode:n});l&&(e.adoptedStyleSheets=l),g(e)}),[f]),h&&!m)return c?null:(0,r.createElement)("span",{ref:b});const w=(0,r.createElement)(r.Fragment,null,h&&(0,r.createElement)(a,{globalStyleElements:y}),u);return h?(0,s.createPortal)(w,m):w}function a({globalStyleElements:e}){return(0,r.createElement)(r.Fragment,null,e.map((({id:e,tagName:t,attributes:n,innerHTML:s},o)=>"LINK"===t?(0,r.createElement)("link",{key:e||o,id:e,rel:n.rel.value,href:n.href.value}):"STYLE"===t?(0,r.createElement)("style",{key:e||o,id:e},s):void 0)))}},64930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(69307);const s=e=>{const t=(0,r.useRef)(),n=(0,r.useRef)(),s=(0,r.useRef)(e),o=(0,r.useCallback)((e=>{e.touches&&1===e.touches.length&&e.preventDefault()}),[]);return(0,r.useEffect)((()=>{s.current=e}),[e]),{onTouchStart:(0,r.useCallback)((e=>{e.target&&(e.target.addEventListener("touchend",o,{passive:!1}),n.current=e.target),t.current=setTimeout((()=>{s.current&&s.current(!0),t.current=null}),200)}),[]),onTouchEnd:(0,r.useCallback)((e=>{t.current?clearTimeout(t.current):(s.current&&s.current(!1),e.stopPropagation()),n.current&&n.current.removeEventListener("touchend",o)}),[])}}},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:()=>a,i1:()=>l});var r=n(92819);const s=new Set(["alert","status","log","marquee","timer"]);let o=[],i=!1;function a(e){if(i)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")||s.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),o.push(t))})),i=!0}function l(){i&&((0,r.forEach)(o,(e=>{e.removeAttribute("aria-hidden")})),o=[],i=!1)}},43520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(51806),s=n(94333),o=n(39630);function i({overlayClassName:e,children:t,className:n,focusOnMount:i,shouldCloseOnEsc:a=!0,onRequestClose:l,onKeyDown:c,modalRef:u}){const d=(0,s.useFocusOnMount)(i),p=(0,s.useConstrainedTabbing)(),f=(0,s.useFocusReturn)();return(0,r.createElement)("div",{className:e,onKeyDown:function(e){a&&e.keyCode===o.ESCAPE&&(e.stopPropagation(),l&&l(e)),e.target&&"button"===e.target.tagName.toLowerCase()&&e.keyCode===o.SPACE||c&&c(e)}},(0,r.createElement)("div",{className:n,ref:(0,s.useMergeRefs)([p,f,d,u])},t))}},7449:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(82674),s=n.n(r),o=n(51806),i=n(94333),a=n(69307),l=n(74240),c=n(89082),u=n(43520);let d,p=0;const f=()=>{};class m extends a.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=f,this.node.ontouchend=f}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,o.createElement)(l.Z,s()({},n,{mountOnElement:this.node}),t&&(0,o.createElement)(u.Z,r,e))}}m.defaultProps={shouldCloseOnEsc:!0,isOpened:!1,focusOnMount:!0};const g=(0,i.withInstanceId)(m)},75096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(82674),s=n.n(r),o=n(51806),i=n(13419),a=n(11313),l=n(94333),c=n(9818),u=n(69307),d=n(65736),p=n(3228),f=n(92819),m=n(53238),g=n(69835),y=n(64930),h=n(68440),b=n(63408);const __=d.__,w=(0,i.dM)(m);function v({id:e,slides:t,metadata:n,disabled:r}){const{setFullscreen:i,setEnded:d,setPlaying:m,setMuted:v,showSlide:E}=(0,c.useDispatch)("jetpack/story/player"),{playing:C,muted:S,currentSlideIndex:k,currentSlideEnded:O,ended:P,fullscreen:x,settings:M}=(0,c.useSelect)((t=>{const{getCurrentSlideIndex:n,getSettings:r,hasCurrentSlideEnded:s,hasEnded:o,isFullscreen:i,isMuted:a,isPlaying:l}=t("jetpack/story/player");return{playing:l(e),muted:a(e),currentSlideIndex:n(e),currentSlideEnded:s(e),ended:o(e),fullscreen:i(e),settings:r(e)}}),[e]),j=(0,u.useRef)(),[_,T]=(0,u.useState)(null),[F,{width:I,height:R}]=(0,l.useResizeObserver)(),[A,L]=(0,u.useState)(M.defaultAspectRatio),N=(0,f.some)(t,(e=>(0,a.isBlobURL)(e.url))),z=t=>{E(e,t)},U=(0,u.useCallback)((()=>{r||x||M.playInFullscreen&&!C&&m(e,!0)}),[C,r,x]),{onTouchStart:D,onTouchEnd:Z}=(0,y.Z)((t=>{m(e,!t)}),[]),B=(0,u.useCallback)((()=>{k>0&&z(k-1)}),[k]),H=(0,u.useCallback)((()=>{k<t.length-1?z(k+1):d(e)}),[k,t]),V=(0,u.useCallback)((()=>{i(e,!1)}),[]);let q,$;return(0,u.useEffect)((()=>{r&&C&&m(e,!1)}),[r,C]),(0,u.useEffect)((()=>{C&&O&&H()}),[C,O]),(0,u.useLayoutEffect)((()=>{if(!j.current)return;let e=Math.round(M.defaultAspectRatio*j.current.offsetHeight);x&&(e=Math.abs(1-e/I)<M.cropUpTo?I:e),T(e)}),[I,R,x]),(0,u.useLayoutEffect)((()=>{_&&j.current&&j.current.offsetHeight>0&&L(_/j.current.offsetHeight)}),[_]),q=x?[__("You are currently playing a story.","jetpack"),C?__("Press space to pause.","jetpack"):__("Press space to play.","jetpack",0),__("Press escape to exit.","jetpack")].join(" "):__("Play story","jetpack"),$=r?"presentation":x?"dialog":"button",(0,o.createElement)("div",{className:"wp-story-display-contents"},F,(0,o.createElement)("div",{role:$,"aria-label":q,tabIndex:x?-1:0,className:(0,p.Z)("wp-story-container",{"wp-story-with-controls":!r&&!x&&!M.playInFullscreen,"wp-story-fullscreen":x,"wp-story-ended":P,"wp-story-disabled":r,"wp-story-clickable":!r&&!x}),style:{maxWidth:`${_}px`},onClick:U,onTouchStart:D,onTouchEnd:Z},(0,o.createElement)(g.h4,s()({},n,{fullscreen:x,onExitFullscreen:V})),(0,o.createElement)("div",{ref:j,className:"wp-story-wrapper"},t.map(((t,n)=>(0,o.createElement)(b.Z,{playerId:e,key:n,media:t,index:n,playing:!r&&C,uploading:N,settings:M,targetAspectRatio:A})))),(0,o.createElement)(g.aV,{icon:w,slideCount:t.length,showSlideCount:M.showSlideCount,ended:P,hasPrevious:k>0,onPreviousSlide:B,onNextSlide:H}),M.showProgressBar&&(0,o.createElement)(h.ZP,{playerId:e,slides:t,disabled:!x,onSlideSeek:z,maxBullets:x?M.maxBulletsFullscreen:M.maxBullets}),(0,o.createElement)(g.ZX,{playing:C,muted:S,onPlayPressed:()=>m(e,!C),onMutePressed:()=>v(e,!S),showMute:(e=>{const n=e<t.length?t[e]:null;return!!n&&("video"===n.type||(n.mime||"").startsWith("video/"))})(k)})),x&&(0,o.createElement)(g.Aq,{currentMedia:M.blurredBackground&&t.length>k&&t[k]}))}},68440:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(51806),s=n(9818),o=n(92819),i=n(69835);const a=({key:e,playerId:t,index:n,disabled:o,isSelected:a,onClick:l})=>{const c=(0,s.useSelect)((e=>e("jetpack/story/player").getCurrentSlideProgressPercentage(t)),[]);return(0,r.createElement)(i.gT,{key:e,index:n,progress:c,disabled:o,isSelected:a,onClick:l})},l=({playerId:e,slides:t,disabled:n,onSlideSeek:l,maxBullets:c})=>{const{currentSlideIndex:u}=(0,s.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e)})),[]),d=Math.min(t.length,c),p=Math.floor(d/2);let f,m=0,g=t.length-1;return t.length<=c||u<p?(f=u,g=d-1):u>=t.length-p?(f=u-t.length+d,m=t.length-d):(f=p,m=u-p,g=u+p),(0,r.createElement)("div",{className:"wp-story-pagination wp-story-pagination-bullets",role:"tablist"},m>0&&(0,r.createElement)(i.gT,{key:"bullet-0",index:m-1,progress:100,isEllipsis:!0}),(0,o.range)(1,d+1).map(((t,s)=>{const o=s+m;let c=null;if(o<u)c=100;else{if(!(o>u))return(0,r.createElement)(a,{playerId:e,key:`bullet-${s}`,index:o,disabled:n,isSelected:f===s,onClick:()=>l(o)});c=0}return(0,r.createElement)(i.gT,{key:`bullet-${s}`,index:o,progress:c,disabled:n,isSelected:f===s,onClick:()=>l(o)})})),g<t.length-1&&(0,r.createElement)(i.gT,{key:`bullet-${d+1}`,index:g+1,progress:0,isEllipsis:!0}))}},63408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(82674),s=n.n(r),o=n(51806),i=n(9818),a=n(69307),l=n(3228),c=n(69835),u=n(3065);const d=({playerId:e,media:t,index:n,playing:r,uploading:d,settings:p,targetAspectRatio:f})=>{const{currentSlideIndex:m,buffering:g}=(0,i.useSelect)((t=>({currentSlideIndex:t("jetpack/story/player").getCurrentSlideIndex(e),buffering:t("jetpack/story/player").isBuffering(e)})),[]),{slideReady:y}=(0,i.useDispatch)("jetpack/story/player"),h=n===m,b=(0,a.useRef)(null),[w,v]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!0);return(0,a.useEffect)((()=>{if(h&&!E){const t=b.current&&b.current.src&&"video"===b.current.tagName.toLowerCase()?b.current:null;y(e,b.current,t?t.duration:p.imageTime)}}),[h,E]),(0,a.useEffect)((()=>{n<=m+(r?1:0)&&v(!0)}),[r,m]),(0,a.useLayoutEffect)((()=>{b.current&&(0,u.Z)(b.current).then((()=>{C(!1)}))}),[w,d]),(0,o.createElement)(o.Fragment,null,h&&(E||d||g)&&(0,o.createElement)("div",{className:(0,l.Z)("wp-story-slide","is-loading",{transparent:r&&g,"semi-transparent":d||!r&&g})},(0,o.createElement)(c.WB,null)),(0,o.createElement)("div",{role:"figure",className:"wp-story-slide",style:{display:h&&!E?"block":"none"},tabIndex:h?0:-1},w&&(0,o.createElement)(c.pU,s()({},t,{targetAspectRatio:f,cropUpTo:p.cropUpTo,index:n,mediaRef:b}))))}},29154:(e,t,n)=>{"use strict";function r(e,t){return{type:"SET_MUTED",value:t,playerId:e}}function s(e,t){return{type:"SET_PLAYING",value:t,playerId:e}}function o(e,t){return{type:"SHOW_SLIDE",index:t,playerId:e}}function i(e,t,n){return{type:"SLIDE_READY",mediaElement:t,duration:n,playerId:e}}function a(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 f(e,t){return{type:"SET_BUFFERING",value:t,playerId:e}}n.r(t),n.d(t,{init:()=>p,resetCurrentSlideProgress:()=>l,setBuffering:()=>f,setCurrentSlideEnded:()=>c,setCurrentSlideProgress:()=>a,setEnded:()=>d,setFullscreen:()=>u,setMuted:()=>r,setPlaying:()=>s,showSlide:()=>o,slideReady:()=>i})},17380:(e,t,n)=>{"use strict";n.d(t,{H2:()=>o,Qz:()=>s,XO:()=>r});const r={currentTime:0,duration:null,timeout:null,lastUpdate:null},s={progress:r,index:0,mediaElement:null,duration:null,ended:!1,ready:!1},o={slideCount:0,currentSlide:s,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),s=n(20876);const o=e=>e&&e.src&&"video"===e.tagName.toLowerCase();function i(e,t){const{getState:n}=t,r=e.playerId,i=(0,s.isMuted)(n(),r),a=(0,s.isPlaying)(n(),r),l=(0,s.getCurrentMediaElement)(n(),r),c=(0,s.getPreviousSlideMediaElement)(n(),r),u=(0,s.getSettings)(n(),r);o(c)&&(c.currentTime=0,c.onwaiting=null,c.onplaying=null,c.pause()),o(l)&&(i!==l.muted&&(l.muted=i,i||(l.volume=u.volume)),a?l.play():l.pause())}function a(e,t){const{getState:n,dispatch:i}=t,l=e.playerId,c=(0,s.isCurrentSlideReady)(n(),l),u=(0,s.isPlaying)(n(),l),d=(0,s.getCurrentSlideProgress)(n(),l);if(clearTimeout(d.timeout),!u||!c)return void(d.lastUpdate&&i((0,r.setCurrentSlideProgress)(l,{...d,lastUpdate:null})));const p=(0,s.getCurrentMediaElement)(n(),l),f=(0,s.getCurrentMediaDuration)(n(),l),m=d.lastUpdate?Date.now()-d.lastUpdate:100,g=o(p)?p.currentTime:d.currentTime+m/1e3;if(g>=f){i((0,r.setCurrentSlideEnded)(l));const e=(0,s.getSlideCount)(n(),l);(0,s.getCurrentSlideIndex)(n(),l)===e-1&&i((0,r.setEnded)(l))}else i((0,r.setCurrentSlideProgress)(l,{timeout:setTimeout((()=>a(e,t)),100),lastUpdate:Date.now(),duration:f,currentTime:g}))}const l={SET_PLAYING:[a,i],SLIDE_READY:[function(e,t){const{getState:n,dispatch:i}=t,a=e.playerId,l=(0,s.getCurrentMediaElement)(n(),a);if(!o(l))return;const c=(0,s.getCurrentSlideProgress)(n(),a);0===l.currentTime&&c.currentTime>0&&(l.currentTime=c.currentTime),l.onwaiting=()=>i((0,r.setBuffering)(a,!0)),l.onplaying=()=>i((0,r.setBuffering)(a,!1))},a,i],SET_MUTED:i,SHOW_SLIDE:i}},31179:(e,t,n)=>{"use strict";var r=n(9818),s=n(29154),o=n(74787),i=n(13498),a=n(20876);const l=(0,r.registerStore)("jetpack/story/player",{actions:s,reducer:i.Z,selectors:a});(0,o.Z)(l)},74787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(92819),s=n(24274),o=n.n(s),i=n(78733);function a(e){const t=[o()(i.Z)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s=[];const a={getState:e.getState,dispatch:(...e)=>n(...e)};return s=t.map((e=>e(a))),n=(0,r.flowRight)(...s)(e.dispatch),e.dispatch=n,e}},13498:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(92819),s=n(17380);function o(e=s.H2,t){switch(t.type){case"SHOW_SLIDE":{const n=e.currentSlide===t.index+1;return{...e,currentSlide:{...s.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:{...s.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?{...s.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:{...s.Qz,index:e.settings.slideCount-1,progress:{...s.XO,currentTime:100,duration:100}},ended:!0,playing:!1,fullscreen:!e.settings.exitFullscreenOnEnd}}return e}function i(e={},t){return t.playerId?{...e,[t.playerId]:o(e[t.playerId],t)}:e}},20876:(e,t,n)=>{"use strict";function r(e,t){return!!e[t]}function s(e,t){return e[t].currentSlide.index}function o(e,t){return e[t].currentSlide.progress}function i(e,t){const n=e[t].currentSlide.progress.currentTime,r=e[t].currentSlide.progress.duration,s=Math.round(100*n/r);return s>=100?100:s}function a(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 f(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 y(e,t){return e[t].ended}function h(e,t){return e[t].settings}function b(e,t){return e[t].settings.slideCount}n.r(t),n.d(t,{getCurrentMediaDuration:()=>d,getCurrentMediaElement:()=>u,getCurrentSlideIndex:()=>s,getCurrentSlideProgress:()=>o,getCurrentSlideProgressPercentage:()=>i,getPreviousSlideMediaElement:()=>m,getSettings:()=>h,getSlideCount:()=>b,hasCurrentSlideEnded:()=>p,hasEnded:()=>y,isBuffering:()=>c,isCurrentSlideReady:()=>f,isFullscreen:()=>g,isMuted:()=>l,isPlayerReady:()=>r,isPlaying:()=>a})},80425:(e,t,n)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},36598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(51806),s=n(70444);const o=(e,t=24,n=24,o="0 0 24 24")=>(0,r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:o},(0,r.createElement)(s.Path,{fill:"none",d:"M0 0h24v24H0V0z",className:"icon-filler"}),e)},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,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(s=r))})),t.splice(s,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,s,o,i=null;function a(...e){if(!a.enabled)return;const r=a,s=Number(new Date),o=s-(n||s);r.diff=o,r.prev=n,r.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,s)=>{if("%%"===n)return"%";i++;const o=t.formatters[s];if("function"==typeof o){const t=e[i];n=o.call(r,t),e.splice(i,1),i--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(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(s),...t.skips.map(s).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,]+/),s=r.length;for(n=0;n<s;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,a=(e.icon,e.className),l=function(e,t){if(null==e)return{};var n,r,s=function(e,t){if(null==e)return{};var n,r,s={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(e,o),c=["gridicon","gridicons-fullscreen",a,!1,!1,!1].filter(Boolean).join(" ");return s.default.createElement("svg",i({className:c,height:n,width:n,onClick:r},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.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,s=(r=n(99196))&&r.__esModule?r:{default:r},o=["size","onClick","icon","className"];function i(){return i=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},i.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 s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},r.apply(this,arguments)};Object.create;Object.create},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()}},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},92819:e=>{"use strict";e.exports=window.lodash},86989:e=>{"use strict";e.exports=window.wp.apiFetch},11313:e=>{"use strict";e.exports=window.wp.blob},94333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},47701:e=>{"use strict";e.exports=window.wp.domReady},69307:e=>{"use strict";e.exports=window.wp.element},81975:e=>{"use strict";e.exports=window.wp.escapeHtml},65736:e=>{"use strict";e.exports=window.wp.i18n},39630:e=>{"use strict";e.exports=window.wp.keycodes},98817:e=>{"use strict";e.exports=window.wp.plugins},70444:e=>{"use strict";e.exports=window.wp.primitives},96483:e=>{"use strict";e.exports=window.wp.url},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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},25877:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},3228:(e,t,n)=>{"use strict";function r(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}n.d(t,{Z:()=>s});const s=function(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(s&&(s+=" "),s+=t);return s}},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"}]}}}')}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})(),(()=>{"use strict";n(80425)})(),(()=>{"use strict";var e=n(82674),t=n.n(e),r=n(51806),s=n(47701),o=n.n(s),i=n(69307),a=n(73022);if("undefined"!=typeof window){const e=Array.from(new URLSearchParams(window.location.search).entries()).filter((e=>e[0].startsWith("wp-story-"))).reduce(((e,t)=>{const n=t[0].replace(/^wp-story-/,"").replace(/-([a-z])/g,(e=>e[1].toUpperCase()));try{e[n]=JSON.parse(t[1])}catch(r){e[n]=JSON.parse(`"${t[1]}"`)}return e}),{});o()((function(){const n=[...document.querySelectorAll(":not(#debug-bar-wp-query) .wp-story")];n.forEach((s=>{if("true"===s.getAttribute("data-block-initialized"))return;let o=null;1===n.length&&(o={...e});const l=s.getAttribute("data-settings");if(l)try{o={...o,...JSON.parse(l)}}catch(e){}!function(e,n){"string"==typeof e&&(e=document.querySelectorAll(e));const s=e.querySelector(".wp-story-wrapper"),o=e.querySelector(".wp-story-meta");let l=[];s&&s.children.length>0&&(l=function(e){return[...e.querySelectorAll("li > figure > :first-child")].map((e=>({alt:e.getAttribute("alt")||e.getAttribute("title"),mime:e.getAttribute("data-mime")||e.getAttribute("type"),url:e.getAttribute("src"),id:e.getAttribute("data-id"),type:"img"===e.tagName.toLowerCase()?"image":"video",srcset:e.getAttribute("srcset"),sizes:e.getAttribute("sizes")})))}(s));let c={};o&&o.children.length>0&&(c=function(e){const t=e.querySelector("div:first-child > img"),n=e.querySelector(".wp-story-title"),r=t&&t.src;return{storyTitle:n&&n.innerText,siteIconUrl:r}}(o));const u=function(e){return e.getAttribute("data-id")}(e),d=document.querySelector(`[data-id='${u}']`);d&&(0,i.createRoot)(d).render((0,r.createElement)(a.Z,t()({id:u,slides:l,metadata:c,disabled:!1},n)))}(s,o)}))}))}})()})();
Save Changes
Rename File
Rename