Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ampproject/amp-facebook

Package Overview
Dependencies
Maintainers
16
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/amp-facebook - npm Package Compare versions

Comparing version 1.2110112305.0 to 1.2110121825.0

2

dist/component-preact.js

@@ -1,2 +0,2 @@

var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _nonIterableRest(){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 _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}__export(exports,{BentoFacebook:function(){return BentoFacebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,h=e.wrapperClassName,y=e.wrapperStyle,S=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(h||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),y),{},{contain:CONTAIN[S]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2110120908000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}var context,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap;function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),h=b!==Loading.UNLOAD,y=useRef2(!1),S=useValueRef(p),g=useCallback2((function(e){if(e!==y.current){y.current=e;var r=S.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[S]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return y.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){h||g(!1)}),[h,g]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&h){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,h,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),h&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return g(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),h=b[0],y=b[1],S=h.name,g=h.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)y({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);y({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:S,ref:m,ready:!!S,sandbox:o?void 0:l,src:g,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function BentoFacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,u=e.includeCommentParent,l=e.kdSite,c=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,v=e.refLabel,m=e.requestResize,E=e.share,b=e.showFacepile,h=e.showText,y=e.size,S=e.smallHeader,g=e.style,A=e.tabs,R=e.title,O=void 0===R?DEFAULT_TITLE:R,T=_objectWithoutPropertiesLoose(e,_excluded5),P=_slicedToArray(useState2(null),2),I=P[0],L=P[1],N=useValueRef(p),M=useCallback2((function(e){var r,t,n=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==n.action&&(null===(t=N.current)||void 0===t||t.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;m?(m(o),L(FULL_HEIGHT)):L(o)}}),[m,N]),j=_slicedToArray(useState2(d),2),w=j[0],x=j[1];useLayoutEffect2((function(){var e,t;if(d)x(d);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&x(dashToUnderline(n.navigator.language))}}),[d,r]);var C=useMemo2((function(){return{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:u,"kd_site":l,layout:c,locale:w,numPosts:f,orderBy:_,ref:v,share:E,showFacepile:b,showText:h,size:y,smallHeader:S,tabs:A}}),[t,n,o,a,i,s,u,l,c,w,f,_,v,E,b,h,y,S,A]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:C,ref:r,title:O},T),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:I?_objectSpread2(_objectSpread2({},g),{},{height:I}):g}))}var BentoFacebook=forwardRef2(BentoFacebookWithRef);BentoFacebook.displayName="BentoFacebook";
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _nonIterableRest(){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 _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}__export(exports,{BentoFacebook:function(){return BentoFacebook}});var preact=__toModule(require("preact")),preactDOM=__toModule(require("preact")),hooks=__toModule(require("preact/hooks"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("preact/compat"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,h=e.wrapperClassName,y=e.wrapperStyle,S=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(h||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),y),{},{contain:CONTAIN[S]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2110122021000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}var context,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap;function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),h=b!==Loading.UNLOAD,y=useRef2(!1),S=useValueRef(p),g=useCallback2((function(e){if(e!==y.current){y.current=e;var r=S.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[S]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return y.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){h||g(!1)}),[h,g]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&h){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,h,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),h&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return g(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),h=b[0],y=b[1],S=h.name,g=h.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)y({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);y({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:S,ref:m,ready:!!S,sandbox:o?void 0:l,src:g,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function BentoFacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,u=e.includeCommentParent,l=e.kdSite,c=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,v=e.refLabel,m=e.requestResize,E=e.share,b=e.showFacepile,h=e.showText,y=e.size,S=e.smallHeader,g=e.style,A=e.tabs,R=e.title,O=void 0===R?DEFAULT_TITLE:R,T=_objectWithoutPropertiesLoose(e,_excluded5),P=_slicedToArray(useState2(null),2),I=P[0],L=P[1],N=useValueRef(p),M=useCallback2((function(e){var r,t,n=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==n.action&&(null===(t=N.current)||void 0===t||t.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;m?(m(o),L(FULL_HEIGHT)):L(o)}}),[m,N]),j=_slicedToArray(useState2(d),2),w=j[0],x=j[1];useLayoutEffect2((function(){var e,t;if(d)x(d);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&x(dashToUnderline(n.navigator.language))}}),[d,r]);var C=useMemo2((function(){return{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:u,"kd_site":l,layout:c,locale:w,numPosts:f,orderBy:_,ref:v,share:E,showFacepile:b,showText:h,size:y,smallHeader:S,tabs:A}}),[t,n,o,a,i,s,u,l,c,w,f,_,v,E,b,h,y,S,A]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:C,ref:r,title:O},T),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:I?_objectSpread2(_objectSpread2({},g),{},{height:I}):g}))}var BentoFacebook=forwardRef2(BentoFacebookWithRef);BentoFacebook.displayName="BentoFacebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -298,3 +298,3 @@ var __create = Object.create;

function version() {
return "2110120908000";
return "2110122021000";
}

@@ -301,0 +301,0 @@

@@ -302,3 +302,3 @@ // src/preact/index.js

function version() {
return "2110120908000";
return "2110122021000";
}

@@ -305,0 +305,0 @@

@@ -1,2 +0,2 @@

function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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 n(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"preact";import{hydrate as s,render as c}from"preact";import{useCallback as u,useContext as f,useEffect as d,useImperativeHandle as m,useLayoutEffect as p,useMemo as y,useRef as b,useState as v}from"preact/hooks";function g(e,t,n){return l.apply(void 0,arguments)}function h(e){return v(e)}function w(e){return b(e)}function S(e,t){d(e,t)}function O(e,t){p(e,t)}function j(e,t){return y(e,t)}function x(e,t){return u(e,t)}function C(e,t,n){return m(e,t,n)}function z(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 A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return z(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)?z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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{hasOwnProperty:$,toString:k}=Object.prototype;function E(e){return e||{}}import{Children as F,createPortal as P,forwardRef as R}from"preact/compat";function H(e){return R(e)}var N=["auto","lazy","eager","unload"],M={auto:0,lazy:1,eager:2,unload:3},I=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],L=[null,"paint","layout","content","size","size paint","size layout","strict"],T={"position":"relative","width":"100%","height":"100%"},B=H((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:f,layout:d=!1,paint:m=!1,size:p=!1,"style":y,wrapperClassName:b,wrapperStyle:v}=e;const h=(p?4:0)+(d?2:0)+(m?1:0);return g(o,n(n({},r(e,I)),{},{ref:t,class:`${l||""} ${b||""}`.trim()||null,style:n(n(n({},y),v),{},{contain:L[h]})}),g(i,n(n({},c),{},{ref:u,class:s,style:n(n({},p&&T),{},{"overflow":m?"hidden":"visible"},f)}),a))})),_=["as","children","class","style","wrapperClassName","wrapperStyle"];function U(e){const t=w(null);return t.current=e,t}H((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return g(o,n(n({},r(e,_)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:n(n({},i),c)}),a)}));var q,{isArray:G}=Array;function J(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function V(e,t){return e}function W(){const e=q||(q=a({renderable:!0,playable:!0,loading:"auto"},void 0));return f(e)}new WeakMap,new WeakMap;var Z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],D=()=>!1,K=H((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=D,messageHandler:u,ready:f=!0,loading:d,onReadyState:m,sandbox:p,src:y}=e,b=r(e,Z);const{playable:v}=W(),h=function(e){const{loading:t}=W();return function(e,t){const n=M[e]||0,r=M[t]||0,o=Math.max(n,r);return N[o]}(e,t)}(d),j="unload"!==h,z=w(!1),A=U(m),$=x((e=>{if(e!==z.current){z.current=e;const t=A.current;null==t||t(e?"complete":"loading")}}),[A]),k=w(null);return C(t,(()=>({get readyState(){return z.current?"complete":"loading"},get node(){return k.current}})),[]),O((()=>{j||$(!1)}),[j,$]),S((()=>{const e=k.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),O((()=>{const e=k.current;if(!e||!j)return;const t=e=>{const t=k.current;t&&e.source==t.contentWindow&&c(e.origin)&&u(e)},{defaultView:n}=e.ownerDocument;return n.addEventListener("message",t),()=>n.removeEventListener("message",t)}),[c,u,j,f]),g(B,n(n({},b),{},{layout:!0,size:!0,paint:!0}),j&&f&&g("iframe",{allow:o,allowFullScreen:a,frameborder:"0",loading:h,name:i,onLoad:()=>$(!0),part:"iframe",ref:k,sandbox:p,scrolling:"no",src:y,style:n(n({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:n,stack:r}=e,o=new Error(n);for(const t in e)o[t]=e[t];return o.stack=r,o}function X(e){let t=null,n="";for(var r,o=A(arguments,!0);!(r=o()).done;){const e=r.value;e instanceof Error&&!t?t=Q(e):(n&&(n+=" "),n+=e)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function Y(e){var t,n;null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,e)}K.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ne(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var re,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2110120908000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const n=new Uint32Array(2);e.crypto.getRandomValues(n),t=String(n[0])+n[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||ne("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||ne("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",fe=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),de=H((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=fe,src:u,type:f,title:d=f}=e,m=r(e,se);if(p=o,"number"!=typeof b&&(b=0),b+(y=ue).length>p.length||-1===p.indexOf(y,b))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var p,y,b;const v=w(null),x=w(null),z=j((()=>(ce[f]||(ce[f]=function(){let e=0;return()=>String(++e)}()),ce[f]())),[f]),[A,$]=h({name:l,src:u}),{name:k,src:F}=A,P=w(null);return O((()=>{var e,t;const n=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,r=null!=u?u:n?((o=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2110120908000/frame.html`):"about:blank";var o;if(l)return void $({name:l,src:r});if(!n)return;P.current||(P.current=function(e){let t=0;for(let n=e;n&&n!=n.parent;n=n.parent)t++;return String(t)+"-"+ie(e)}(n));const a=Object.assign(E({"location":{"href":n.location.href},"sentinel":P.current})),i=Object.assign(E({"title":d,"type":f,"_context":a}),s);var c;$({name:JSON.stringify(E({"host":(c=r,re||(re=self.document.createElement("a")),function(e,t,n){return e.href="",new URL(t,e.href)}(re,c)).hostname,"bootstrap":le(f),"type":f,"count":z,"attributes":i})),src:r})}),[z,l,s,u,d,f]),S((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[k]),C(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),g(K,n({allow:o,contentRef:v,messageHandler:i,name:k,ref:x,ready:!!k,sandbox:a?void 0:c,src:F,title:d},m))}));de.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],pe=()=>!0,ye="Facebook comments",be=H((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:f,layout:d,locale:m,numPosts:p,onLoad:y,orderBy:b,refLabel:v,requestResize:w,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,style:k,tabs:E,title:F=ye}=e,P=r(e,me);const[R,H]=h(null),N=U(y),M=x((e=>{var t;const n=null!==(t=J(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=V(e).indexOf("{");return J(V(e).substr(t),(t=>{!function(e){const t=X.apply(null,arguments);setTimeout((()=>{throw Y(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var r;if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),"embed-size"==n.type){const e=n.height;w?(w(e),H("100%")):H(e)}}),[w,N]),[I,L]=h(m);O((()=>{var e,n;if(m)return void L(m);const r=null==t||null===(e=t.current)||void 0===e||null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView;r&&L(r.navigator.language.replace("-","_"))}),[m,t]);const T=j((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":f,layout:d,locale:I,numPosts:p,orderBy:b,ref:v,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,tabs:E})),[o,a,l,i,s,c,u,f,d,I,p,b,v,S,C,z,A,$,E]);return g(de,n(n({options:T,ref:t,title:F},P),{},{excludeSandbox:!0,matchesMessagingOrigin:pe,messageHandler:M,type:"facebook",style:R?n(n({},k),{},{height:R}):k}))}));be.displayName="BentoFacebook";export{be as BentoFacebook};
function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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 n(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"preact";import{hydrate as s,render as c}from"preact";import{useCallback as u,useContext as f,useEffect as d,useImperativeHandle as m,useLayoutEffect as p,useMemo as y,useRef as b,useState as v}from"preact/hooks";function g(e,t,n){return l.apply(void 0,arguments)}function h(e){return v(e)}function w(e){return b(e)}function S(e,t){d(e,t)}function O(e,t){p(e,t)}function j(e,t){return y(e,t)}function x(e,t){return u(e,t)}function C(e,t,n){return m(e,t,n)}function z(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 A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return z(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)?z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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{hasOwnProperty:$,toString:k}=Object.prototype;function E(e){return e||{}}import{Children as F,createPortal as P,forwardRef as R}from"preact/compat";function H(e){return R(e)}var N=["auto","lazy","eager","unload"],M={auto:0,lazy:1,eager:2,unload:3},I=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],L=[null,"paint","layout","content","size","size paint","size layout","strict"],T={"position":"relative","width":"100%","height":"100%"},B=H((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:f,layout:d=!1,paint:m=!1,size:p=!1,"style":y,wrapperClassName:b,wrapperStyle:v}=e;const h=(p?4:0)+(d?2:0)+(m?1:0);return g(o,n(n({},r(e,I)),{},{ref:t,class:`${l||""} ${b||""}`.trim()||null,style:n(n(n({},y),v),{},{contain:L[h]})}),g(i,n(n({},c),{},{ref:u,class:s,style:n(n({},p&&T),{},{"overflow":m?"hidden":"visible"},f)}),a))})),_=["as","children","class","style","wrapperClassName","wrapperStyle"];function U(e){const t=w(null);return t.current=e,t}H((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return g(o,n(n({},r(e,_)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:n(n({},i),c)}),a)}));var q,{isArray:G}=Array;function J(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function V(e,t){return e}function W(){const e=q||(q=a({renderable:!0,playable:!0,loading:"auto"},void 0));return f(e)}new WeakMap,new WeakMap;var Z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],D=()=>!1,K=H((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=D,messageHandler:u,ready:f=!0,loading:d,onReadyState:m,sandbox:p,src:y}=e,b=r(e,Z);const{playable:v}=W(),h=function(e){const{loading:t}=W();return function(e,t){const n=M[e]||0,r=M[t]||0,o=Math.max(n,r);return N[o]}(e,t)}(d),j="unload"!==h,z=w(!1),A=U(m),$=x((e=>{if(e!==z.current){z.current=e;const t=A.current;null==t||t(e?"complete":"loading")}}),[A]),k=w(null);return C(t,(()=>({get readyState(){return z.current?"complete":"loading"},get node(){return k.current}})),[]),O((()=>{j||$(!1)}),[j,$]),S((()=>{const e=k.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),O((()=>{const e=k.current;if(!e||!j)return;const t=e=>{const t=k.current;t&&e.source==t.contentWindow&&c(e.origin)&&u(e)},{defaultView:n}=e.ownerDocument;return n.addEventListener("message",t),()=>n.removeEventListener("message",t)}),[c,u,j,f]),g(B,n(n({},b),{},{layout:!0,size:!0,paint:!0}),j&&f&&g("iframe",{allow:o,allowFullScreen:a,frameborder:"0",loading:h,name:i,onLoad:()=>$(!0),part:"iframe",ref:k,sandbox:p,scrolling:"no",src:y,style:n(n({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:n,stack:r}=e,o=new Error(n);for(const t in e)o[t]=e[t];return o.stack=r,o}function X(e){let t=null,n="";for(var r,o=A(arguments,!0);!(r=o()).done;){const e=r.value;e instanceof Error&&!t?t=Q(e):(n&&(n+=" "),n+=e)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function Y(e){var t,n;null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,e)}K.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ne(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var re,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2110122021000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const n=new Uint32Array(2);e.crypto.getRandomValues(n),t=String(n[0])+n[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||ne("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||ne("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",fe=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),de=H((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=fe,src:u,type:f,title:d=f}=e,m=r(e,se);if(p=o,"number"!=typeof b&&(b=0),b+(y=ue).length>p.length||-1===p.indexOf(y,b))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var p,y,b;const v=w(null),x=w(null),z=j((()=>(ce[f]||(ce[f]=function(){let e=0;return()=>String(++e)}()),ce[f]())),[f]),[A,$]=h({name:l,src:u}),{name:k,src:F}=A,P=w(null);return O((()=>{var e,t;const n=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,r=null!=u?u:n?((o=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2110122021000/frame.html`):"about:blank";var o;if(l)return void $({name:l,src:r});if(!n)return;P.current||(P.current=function(e){let t=0;for(let n=e;n&&n!=n.parent;n=n.parent)t++;return String(t)+"-"+ie(e)}(n));const a=Object.assign(E({"location":{"href":n.location.href},"sentinel":P.current})),i=Object.assign(E({"title":d,"type":f,"_context":a}),s);var c;$({name:JSON.stringify(E({"host":(c=r,re||(re=self.document.createElement("a")),function(e,t,n){return e.href="",new URL(t,e.href)}(re,c)).hostname,"bootstrap":le(f),"type":f,"count":z,"attributes":i})),src:r})}),[z,l,s,u,d,f]),S((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[k]),C(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),g(K,n({allow:o,contentRef:v,messageHandler:i,name:k,ref:x,ready:!!k,sandbox:a?void 0:c,src:F,title:d},m))}));de.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],pe=()=>!0,ye="Facebook comments",be=H((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:f,layout:d,locale:m,numPosts:p,onLoad:y,orderBy:b,refLabel:v,requestResize:w,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,style:k,tabs:E,title:F=ye}=e,P=r(e,me);const[R,H]=h(null),N=U(y),M=x((e=>{var t;const n=null!==(t=J(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=V(e).indexOf("{");return J(V(e).substr(t),(t=>{!function(e){const t=X.apply(null,arguments);setTimeout((()=>{throw Y(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var r;if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),"embed-size"==n.type){const e=n.height;w?(w(e),H("100%")):H(e)}}),[w,N]),[I,L]=h(m);O((()=>{var e,n;if(m)return void L(m);const r=null==t||null===(e=t.current)||void 0===e||null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView;r&&L(r.navigator.language.replace("-","_"))}),[m,t]);const T=j((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":f,layout:d,locale:I,numPosts:p,orderBy:b,ref:v,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,tabs:E})),[o,a,l,i,s,c,u,f,d,I,p,b,v,S,C,z,A,$,E]);return g(de,n(n({options:T,ref:t,title:F},P),{},{excludeSandbox:!0,matchesMessagingOrigin:pe,messageHandler:M,type:"facebook",style:R?n(n({},k),{},{height:R}):k}))}));be.displayName="BentoFacebook";export{be as BentoFacebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -1,2 +0,2 @@

var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _nonIterableRest(){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 _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}__export(exports,{BentoFacebook:function(){return BentoFacebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,h=e.wrapperClassName,y=e.wrapperStyle,S=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(h||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),y),{},{contain:CONTAIN[S]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2110120908000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}var context,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap;function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),h=b!==Loading.UNLOAD,y=useRef2(!1),S=useValueRef(p),g=useCallback2((function(e){if(e!==y.current){y.current=e;var r=S.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[S]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return y.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){h||g(!1)}),[h,g]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&h){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,h,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),h&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return g(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),h=b[0],y=b[1],S=h.name,g=h.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)y({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);y({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:S,ref:m,ready:!!S,sandbox:o?void 0:l,src:g,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function BentoFacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,u=e.includeCommentParent,l=e.kdSite,c=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,v=e.refLabel,m=e.requestResize,E=e.share,b=e.showFacepile,h=e.showText,y=e.size,S=e.smallHeader,g=e.style,A=e.tabs,R=e.title,O=void 0===R?DEFAULT_TITLE:R,T=_objectWithoutPropertiesLoose(e,_excluded5),P=_slicedToArray(useState2(null),2),I=P[0],L=P[1],N=useValueRef(p),M=useCallback2((function(e){var r,t,n=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==n.action&&(null===(t=N.current)||void 0===t||t.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;m?(m(o),L(FULL_HEIGHT)):L(o)}}),[m,N]),j=_slicedToArray(useState2(d),2),w=j[0],x=j[1];useLayoutEffect2((function(){var e,t;if(d)x(d);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&x(dashToUnderline(n.navigator.language))}}),[d,r]);var C=useMemo2((function(){return{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:u,"kd_site":l,layout:c,locale:w,numPosts:f,orderBy:_,ref:v,share:E,showFacepile:b,showText:h,size:y,smallHeader:S,tabs:A}}),[t,n,o,a,i,s,u,l,c,w,f,_,v,E,b,h,y,S,A]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:C,ref:r,title:O},T),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:I?_objectSpread2(_objectSpread2({},g),{},{height:I}):g}))}var BentoFacebook=forwardRef2(BentoFacebookWithRef);BentoFacebook.displayName="BentoFacebook";
var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__markAsModule=function(e){return __defProp(e,"__esModule",{value:!0})},__export=function(e,r){for(var t in __markAsModule(e),r)__defProp(e,t,{get:r[t],enumerable:!0})},__reExport=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=__getOwnPropNames(r),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=__getOwnPropDesc(r,n))||t.enumerable});return e},__toModule=function(e){return __reExport(__markAsModule(__defProp(null!=e?__create(__getProtoOf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){_defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _nonIterableRest(){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 _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}__export(exports,{BentoFacebook:function(){return BentoFacebook}});var preact=__toModule(require("react")),preactDOM=__toModule(require("react-dom")),hooks=__toModule(require("react"));function createElement2(e,r,t){return preact.createElement.apply(void 0,arguments)}function createContext2(e){return preact.createContext(e,void 0)}function useState2(e){return hooks.useState(e)}function useRef2(e){return hooks.useRef(e)}function useEffect2(e,r){hooks.useEffect(e,r)}function useLayoutEffect2(e,r){hooks.useLayoutEffect(e,r)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,r){return hooks.useMemo(e,r)}function useCallback2(e,r){return hooks.useCallback(e,r)}function useImperativeHandle2(e,r,t){return hooks.useImperativeHandle(e,r,t)}var getRequiredSandboxFlags=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},getOptionalSandboxFlags=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function sequentialIdGenerator(){var e=0;return function(){return String(++e)}}function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 _Object$prototype=Object.prototype,hasOwn_=_Object$prototype.hasOwnProperty,toString_=_Object$prototype.toString;function map(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}function isString(e){return"string"==typeof e}var _MAP,compat=__toModule(require("react"));function forwardRef2(e){return compat.forwardRef(e)}var Loading={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},ORDER=[Loading.AUTO,Loading.LAZY,Loading.EAGER,Loading.UNLOAD],MAP=(_defineProperty(_MAP={},Loading.AUTO,0),_defineProperty(_MAP,Loading.LAZY,1),_defineProperty(_MAP,Loading.EAGER,2),_defineProperty(_MAP,Loading.UNLOAD,3),_MAP);function reducer(e,r){var t=MAP[e]||0,n=MAP[r]||0,o=Math.max(t,n);return ORDER[o]}var ReadyState={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},_excluded=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],CONTAIN=[null,"paint","layout","content","size","size paint","size layout","strict"],SIZE_CONTENT_STYLE={"position":"relative","width":"100%","height":"100%"};function ContainWrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,u=e.contentClassName,l=e.contentProps,c=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,v=void 0!==_&&_,m=e.size,E=void 0!==m&&m,b=e.style,h=e.wrapperClassName,y=e.wrapperStyle,S=(E?4:0)+(p?2:0)+(v?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:r,class:"".concat(a||""," ").concat(h||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},b),y),{},{contain:CONTAIN[S]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:c,class:u,style:_objectSpread2(_objectSpread2({},E&&SIZE_CONTENT_STYLE),{},{"overflow":v?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,u=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:r,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),u)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var r=useRef2(null);return r.current=e,r}function isProd(){return!0}function isTest(e){var r;if(isProd())return!1;var t=e||self;return!!(null!==(r=t.AMP_CONFIG)&&void 0!==r&&r.test||t.__AMP_TEST||t.__karma__)}function isMinified(){return!0}function version(){return"2110122021000"}function isEsm(){var e,r,t;return!isProd()&&null!==(e=null===(r=self)||void 0===r||null===(t=r.__AMP_MODE)||void 0===t?void 0:t.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,r){for(var t=[],n=0,o=0;o<e.length;o++){var a=e[o];r(a,o,e)?t.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),t}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,r){try{return parseJson(e)}catch(e){return null==r||r(e),null}}function isElement(e){return 1==(null==e?void 0:e.nodeType)}function elementStringOrPassThru(e){return isElement(e)?(e=e).tagName.toLowerCase()+(e.id?"#".concat(e.id):""):e}function assert(e,r){var t,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(r)return r;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),u=[s];i.length;){var l=arguments[a++],c=i.shift();s+=elementStringOrPassThru(l)+c,u.push(l,c.trim())}var d=new Error(s);throw d.messageArray=remove(u,(function(e){return""!==e})),null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,d),d}function assertType_(e,r,t,n,o){return isArray(o)?e(t,o.concat([r])):e(t,"".concat(o||n,": %s"),r),r}function assertString(e,r,t){return assertType_(e,r,isString(r),"String expected",t)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,r,t,n,o,a,i,s,u,l,c){return isMinified()?e:(devAssertDceCheck(),assert("",e,r,t,n,o,a,i,s,u,l,c))}function devAssertString(e,r){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,r))}var context,viewportObservers=new WeakMap,viewportCallbacks=new WeakMap;function getAmpContext(){return context||(context=createContext2({renderable:!0,playable:!0,loading:Loading.AUTO}))}function useAmpContext(){return useContext2(getAmpContext())}function useLoading(e){return reducer(e,useAmpContext().loading)}var _excluded3=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],DEFAULT_MATCHES_MESSAGING_ORIGIN=function(){return!1},ABOUT_BLANK="about:blank",canResetSrc=function(e){return e&&e!=ABOUT_BLANK&&!e.includes("#")};function IframeEmbedWithRef(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,s=e.matchesMessagingOrigin,u=void 0===s?DEFAULT_MATCHES_MESSAGING_ORIGIN:s,l=e.messageHandler,c=e.ready,d=void 0===c||c,f=e.loading,p=e.onReadyState,_=e.sandbox,v=e.src,m=_objectWithoutPropertiesLoose(e,_excluded3),E=useAmpContext().playable,b=useLoading(f),h=b!==Loading.UNLOAD,y=useRef2(!1),S=useValueRef(p),g=useCallback2((function(e){if(e!==y.current){y.current=e;var r=S.current;null==r||r(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[S]),A=useRef2(null);return useImperativeHandle2(r,(function(){return{get readyState(){return y.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return A.current}}}),[]),useLayoutEffect2((function(){h||g(!1)}),[h,g]),useEffect2((function(){var e=A.current;if(!E&&e){var r=e.src;canResetSrc(r)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[E]),useLayoutEffect2((function(){var e=A.current;if(e&&h){var r=function(e){var r=A.current;r&&e.source==r.contentWindow&&u(e.origin)&&l(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,l,h,d]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},m),{},{layout:!0,size:!0,paint:!0}),h&&d&&createElement2("iframe",{allow:t,allowFullScreen:n,frameborder:"0",loading:b,name:a,onLoad:function(){return g(!0)},part:"iframe",ref:A,sandbox:_,scrolling:"no",src:v,style:_objectSpread2(_objectSpread2({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var r,t=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function maybeReportError(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}function rethrowAsync(e){var r=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(r),r}))}IframeEmbed.displayName="IframeEmbed";var env=self.AMP_CONFIG||{},thirdPartyFrameRegex=("string"==typeof env.thirdPartyFrameRegex?new RegExp(env.thirdPartyFrameRegex):env.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdnProxyRegex=("string"==typeof env.cdnProxyRegex?new RegExp(env.cdnProxyRegex):env.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function getMetaUrl(e){if(!self.document||!self.document.head)return null;if(self.location&&cdnProxyRegex.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var urls={thirdParty:env.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:env.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:thirdPartyFrameRegex,cdn:env.cdnUrl||getMetaUrl("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:cdnProxyRegex,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:env.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:env.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:env.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:env.geoApiUrl||getMetaUrl("amp-geo-api")};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var cachedAnchorEl,urlCache,overrideBootstrapBaseUrl,logs=self.__AMP_LOG,LruCache=function(){function e(e){this.t=e,this.o=0,this.i=0,this.u=map()}var r=e.prototype;return r.has=function(e){return!!this.u[e]},r.get=function(e){var r=this.u[e];if(r)return r.access=++this.i,r.payload},r.put=function(e,r){this.has(e)||this.o++,this.u[e]={payload:r,access:this.i},this.l()},r.l=function(){if(!(this.o<=this.t)){var e,r=this.u,t=this.i+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.o--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,r){return cachedAnchorEl||(cachedAnchorEl=self.document.createElement("a"),urlCache=isEsm()?null:self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new LruCache(100))),parseUrlWithA(cachedAnchorEl,e,isEsm()||r?null:urlCache)}function parseUrlWithA(e,r,t){if(isEsm())return e.href="",new URL(r,e.href);if(t&&t.has(r))return t.get(r);e.href=r,e.protocol||(e.href=e.href);var n,o={href:e.href,protocol:e.protocol,host:e.host,hostname:e.hostname,port:"0"==e.port?"":e.port,pathname:e.pathname,search:e.search,hash:e.hash,origin:null};"/"!==o.pathname[0]&&(o.pathname="/"+o.pathname),("http:"==o.protocol&&80==o.port||"https:"==o.protocol&&443==o.port)&&(o.port="",o.host=o.hostname),n=e.origin&&"null"!=e.origin?e.origin:"data:"!=o.protocol&&o.host?o.protocol+"//"+o.host:o.href,o.origin=n;var a=isTest()&&Object.freeze?Object.freeze(o):o;return t&&t.put(r,a),a}function getBootstrapUrl(e){var r=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(r):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+r}function getDefaultBootstrapBaseUrl(e,r){var t=r||"frame";return isProd()?(e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||getSubDomain(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(urls.thirdPartyFrameHost,"/").concat(version(),"/")+"".concat(t,".html")):getDevelopmentBootstrapBaseUrl(e,t)}function getDevelopmentBootstrapBaseUrl(e,r){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(r):"current/".concat(r,".max"))+".html"}function getAdsLocalhost(e){var r,t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+((null===(r=new URL(e.document.baseURI))||void 0===r?void 0:r.port)||e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var r;if(e.crypto&&e.crypto.getRandomValues){var t=new Uint32Array(2);e.crypto.getRandomValues(t),r=String(t[0])+t[1]}else r=String(e.Math.random()).substr(2)+"0";return r}function generateSentinel(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+getRandom(e)}var _excluded4=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],countGenerators={},BLOCK_SYNC_XHR="sync-xhr 'none'",DEFAULT_SANDBOX=getRequiredSandboxFlags().join(" ")+" "+getOptionalSandboxFlags().join(" ");function ProxyIframeEmbedWithRef(e,r){var t=e.allow,n=void 0===t?BLOCK_SYNC_XHR:t,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,u=e.sandbox,l=void 0===u?DEFAULT_SANDBOX:u,c=e.src,d=e.type,f=e.title,p=void 0===f?d:f,_=_objectWithoutPropertiesLoose(e,_excluded4);if(!includes(n,BLOCK_SYNC_XHR))throw new Error("'allow' prop must contain \"".concat(BLOCK_SYNC_XHR,'". Found "').concat(n,'".'));var v=useRef2(null),m=useRef2(null),E=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),b=_slicedToArray(useState2({name:a,src:c}),2),h=b[0],y=b[1],S=h.name,g=h.src,A=useRef2(null);return useLayoutEffect2((function(){var e,r,t=null===(e=v.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,n=null!=c?c:t?getDefaultBootstrapBaseUrl(t):"about:blank";if(a)y({name:a,src:n});else if(t){A.current||(A.current=generateSentinel(t));var o=Object.assign(dict({"location":{"href":t.location.href},"sentinel":A.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);y({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":E,"attributes":i})),src:n})}}),[E,a,s,c,p,d]),useEffect2((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[S]),useImperativeHandle2(r,(function(){return{get readyState(){var e;return null===(e=m.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=m.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:v,messageHandler:i,name:S,ref:m,ready:!!S,sandbox:o?void 0:l,src:g,title:p},_))}var ProxyIframeEmbed=forwardRef2(ProxyIframeEmbedWithRef);ProxyIframeEmbed.displayName="ProxyIframeEmbed";var AMP_MESSAGE_PREFIX="amp-",MessageType={SEND_EMBED_STATE:"send-embed-state",EMBED_STATE:"embed-state",SEND_EMBED_CONTEXT:"send-embed-context",EMBED_CONTEXT:"embed-context",SEND_INTERSECTIONS:"send-intersections",INTERSECTION:"intersection",EMBED_SIZE:"embed-size",EMBED_SIZE_CHANGED:"embed-size-changed",EMBED_SIZE_DENIED:"embed-size-denied",NO_CONTENT:"no-content",GET_HTML:"get-html",GET_CONSENT_STATE:"get-consent-state",SIGNAL_INTERACTIVE:"signal-interactive",FULL_OVERLAY_FRAME:"full-overlay-frame",FULL_OVERLAY_FRAME_RESPONSE:"full-overlay-frame-response",CANCEL_FULL_OVERLAY_FRAME:"cancel-full-overlay-frame",CANCEL_FULL_OVERLAY_FRAME_RESPONSE:"cancel-full-overlay-frame-response",SEND_POSITIONS:"send-positions",POSITION:"position",SEND_IFRAME_TRANSPORT_EVENTS:"send-iframe-transport-events",IFRAME_TRANSPORT_EVENTS:"iframe-transport-events",IFRAME_TRANSPORT_RESPONSE:"iframe-transport-response",USER_ERROR_IN_IFRAME:"user-error-in-iframe",SEND_CONSENT_DATA:"send-consent-data",CONSENT_DATA:"consent-data"};function deserializeMessage(e){if(!isAmpMessage(e))return null;var r=devAssertString(e).indexOf("{");return devAssert(-1!=r),tryParseJson(devAssertString(e).substr(r),(function(r){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}function isAmpMessage(e){return"string"==typeof e&&e.startsWith(AMP_MESSAGE_PREFIX)&&-1!=e.indexOf("{")}var _excluded5=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],TYPE="facebook",FULL_HEIGHT="100%",MATCHES_MESSAGING_ORIGIN=function(){return!0},DEFAULT_TITLE="Facebook comments";function BentoFacebookWithRef(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,u=e.includeCommentParent,l=e.kdSite,c=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,v=e.refLabel,m=e.requestResize,E=e.share,b=e.showFacepile,h=e.showText,y=e.size,S=e.smallHeader,g=e.style,A=e.tabs,R=e.title,O=void 0===R?DEFAULT_TITLE:R,T=_objectWithoutPropertiesLoose(e,_excluded5),P=_slicedToArray(useState2(null),2),I=P[0],L=P[1],N=useValueRef(p),M=useCallback2((function(e){var r,t,n=null!==(r=tryParseJson(e.data))&&void 0!==r?r:deserializeMessage(e.data);if("ready"==n.action&&(null===(t=N.current)||void 0===t||t.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;m?(m(o),L(FULL_HEIGHT)):L(o)}}),[m,N]),j=_slicedToArray(useState2(d),2),w=j[0],x=j[1];useLayoutEffect2((function(){var e,t;if(d)x(d);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;n&&x(dashToUnderline(n.navigator.language))}}),[d,r]);var C=useMemo2((function(){return{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:u,"kd_site":l,layout:c,locale:w,numPosts:f,orderBy:_,ref:v,share:E,showFacepile:b,showText:h,size:y,smallHeader:S,tabs:A}}),[t,n,o,a,i,s,u,l,c,w,f,_,v,E,b,h,y,S,A]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:C,ref:r,title:O},T),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:I?_objectSpread2(_objectSpread2({},g),{},{height:I}):g}))}var BentoFacebook=forwardRef2(BentoFacebookWithRef);BentoFacebook.displayName="BentoFacebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -298,3 +298,3 @@ var __create = Object.create;

function version() {
return "2110120908000";
return "2110122021000";
}

@@ -301,0 +301,0 @@

@@ -302,3 +302,3 @@ // src/preact/index.js

function version() {
return "2110120908000";
return "2110122021000";
}

@@ -305,0 +305,0 @@

@@ -1,2 +0,2 @@

function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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 n(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"react";import{hydrate as s,render as c}from"react-dom";import{useCallback as u,useContext as f,useEffect as d,useImperativeHandle as m,useLayoutEffect as p,useMemo as y,useRef as b,useState as v}from"react";function g(e,t,n){return l.apply(void 0,arguments)}function w(e){return v(e)}function h(e){return b(e)}function S(e,t){d(e,t)}function O(e,t){p(e,t)}function j(e,t){return y(e,t)}function x(e,t){return u(e,t)}function C(e,t,n){return m(e,t,n)}function z(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 A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return z(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)?z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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{hasOwnProperty:$,toString:k}=Object.prototype;function E(e){return e||{}}import{Children as F,createPortal as P,forwardRef as R}from"react";function H(e){return R(e)}var N=["auto","lazy","eager","unload"],M={auto:0,lazy:1,eager:2,unload:3},I=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],L=[null,"paint","layout","content","size","size paint","size layout","strict"],T={"position":"relative","width":"100%","height":"100%"},B=H((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:f,layout:d=!1,paint:m=!1,size:p=!1,"style":y,wrapperClassName:b,wrapperStyle:v}=e;const w=(p?4:0)+(d?2:0)+(m?1:0);return g(o,n(n({},r(e,I)),{},{ref:t,class:`${l||""} ${b||""}`.trim()||null,style:n(n(n({},y),v),{},{contain:L[w]})}),g(i,n(n({},c),{},{ref:u,class:s,style:n(n({},p&&T),{},{"overflow":m?"hidden":"visible"},f)}),a))})),_=["as","children","class","style","wrapperClassName","wrapperStyle"];function U(e){const t=h(null);return t.current=e,t}H((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return g(o,n(n({},r(e,_)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:n(n({},i),c)}),a)}));var q,{isArray:G}=Array;function J(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function V(e,t){return e}function W(){const e=q||(q=a({renderable:!0,playable:!0,loading:"auto"},void 0));return f(e)}new WeakMap,new WeakMap;var Z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],D=()=>!1,K=H((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=D,messageHandler:u,ready:f=!0,loading:d,onReadyState:m,sandbox:p,src:y}=e,b=r(e,Z);const{playable:v}=W(),w=function(e){const{loading:t}=W();return function(e,t){const n=M[e]||0,r=M[t]||0,o=Math.max(n,r);return N[o]}(e,t)}(d),j="unload"!==w,z=h(!1),A=U(m),$=x((e=>{if(e!==z.current){z.current=e;const t=A.current;null==t||t(e?"complete":"loading")}}),[A]),k=h(null);return C(t,(()=>({get readyState(){return z.current?"complete":"loading"},get node(){return k.current}})),[]),O((()=>{j||$(!1)}),[j,$]),S((()=>{const e=k.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),O((()=>{const e=k.current;if(!e||!j)return;const t=e=>{const t=k.current;t&&e.source==t.contentWindow&&c(e.origin)&&u(e)},{defaultView:n}=e.ownerDocument;return n.addEventListener("message",t),()=>n.removeEventListener("message",t)}),[c,u,j,f]),g(B,n(n({},b),{},{layout:!0,size:!0,paint:!0}),j&&f&&g("iframe",{allow:o,allowFullScreen:a,frameborder:"0",loading:w,name:i,onLoad:()=>$(!0),part:"iframe",ref:k,sandbox:p,scrolling:"no",src:y,style:n(n({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:n,stack:r}=e,o=new Error(n);for(const t in e)o[t]=e[t];return o.stack=r,o}function X(e){let t=null,n="";for(var r,o=A(arguments,!0);!(r=o()).done;){const e=r.value;e instanceof Error&&!t?t=Q(e):(n&&(n+=" "),n+=e)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function Y(e){var t,n;null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,e)}K.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ne(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var re,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2110120908000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const n=new Uint32Array(2);e.crypto.getRandomValues(n),t=String(n[0])+n[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||ne("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||ne("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",fe=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),de=H((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=fe,src:u,type:f,title:d=f}=e,m=r(e,se);if(p=o,"number"!=typeof b&&(b=0),b+(y=ue).length>p.length||-1===p.indexOf(y,b))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var p,y,b;const v=h(null),x=h(null),z=j((()=>(ce[f]||(ce[f]=function(){let e=0;return()=>String(++e)}()),ce[f]())),[f]),[A,$]=w({name:l,src:u}),{name:k,src:F}=A,P=h(null);return O((()=>{var e,t;const n=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,r=null!=u?u:n?((o=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2110120908000/frame.html`):"about:blank";var o;if(l)return void $({name:l,src:r});if(!n)return;P.current||(P.current=function(e){let t=0;for(let n=e;n&&n!=n.parent;n=n.parent)t++;return String(t)+"-"+ie(e)}(n));const a=Object.assign(E({"location":{"href":n.location.href},"sentinel":P.current})),i=Object.assign(E({"title":d,"type":f,"_context":a}),s);var c;$({name:JSON.stringify(E({"host":(c=r,re||(re=self.document.createElement("a")),function(e,t,n){return e.href="",new URL(t,e.href)}(re,c)).hostname,"bootstrap":le(f),"type":f,"count":z,"attributes":i})),src:r})}),[z,l,s,u,d,f]),S((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[k]),C(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),g(K,n({allow:o,contentRef:v,messageHandler:i,name:k,ref:x,ready:!!k,sandbox:a?void 0:c,src:F,title:d},m))}));de.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],pe=()=>!0,ye="Facebook comments",be=H((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:f,layout:d,locale:m,numPosts:p,onLoad:y,orderBy:b,refLabel:v,requestResize:h,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,style:k,tabs:E,title:F=ye}=e,P=r(e,me);const[R,H]=w(null),N=U(y),M=x((e=>{var t;const n=null!==(t=J(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=V(e).indexOf("{");return J(V(e).substr(t),(t=>{!function(e){const t=X.apply(null,arguments);setTimeout((()=>{throw Y(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var r;if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),"embed-size"==n.type){const e=n.height;h?(h(e),H("100%")):H(e)}}),[h,N]),[I,L]=w(m);O((()=>{var e,n;if(m)return void L(m);const r=null==t||null===(e=t.current)||void 0===e||null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView;r&&L(r.navigator.language.replace("-","_"))}),[m,t]);const T=j((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":f,layout:d,locale:I,numPosts:p,orderBy:b,ref:v,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,tabs:E})),[o,a,l,i,s,c,u,f,d,I,p,b,v,S,C,z,A,$,E]);return g(de,n(n({options:T,ref:t,title:F},P),{},{excludeSandbox:!0,matchesMessagingOrigin:pe,messageHandler:M,type:"facebook",style:R?n(n({},k),{},{height:R}):k}))}));be.displayName="BentoFacebook";export{be as BentoFacebook};
function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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 n(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}import{cloneElement as o,createContext as a,createElement as l,createRef as i}from"react";import{hydrate as s,render as c}from"react-dom";import{useCallback as u,useContext as f,useEffect as d,useImperativeHandle as m,useLayoutEffect as p,useMemo as y,useRef as b,useState as v}from"react";function g(e,t,n){return l.apply(void 0,arguments)}function w(e){return v(e)}function h(e){return b(e)}function S(e,t){d(e,t)}function O(e,t){p(e,t)}function j(e,t){return y(e,t)}function x(e,t){return u(e,t)}function C(e,t,n){return m(e,t,n)}function z(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 A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return z(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)?z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}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{hasOwnProperty:$,toString:k}=Object.prototype;function E(e){return e||{}}import{Children as F,createPortal as P,forwardRef as R}from"react";function H(e){return R(e)}var N=["auto","lazy","eager","unload"],M={auto:0,lazy:1,eager:2,unload:3},I=["as","children","class","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"],L=[null,"paint","layout","content","size","size paint","size layout","strict"],T={"position":"relative","width":"100%","height":"100%"},B=H((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:f,layout:d=!1,paint:m=!1,size:p=!1,"style":y,wrapperClassName:b,wrapperStyle:v}=e;const w=(p?4:0)+(d?2:0)+(m?1:0);return g(o,n(n({},r(e,I)),{},{ref:t,class:`${l||""} ${b||""}`.trim()||null,style:n(n(n({},y),v),{},{contain:L[w]})}),g(i,n(n({},c),{},{ref:u,class:s,style:n(n({},p&&T),{},{"overflow":m?"hidden":"visible"},f)}),a))})),_=["as","children","class","style","wrapperClassName","wrapperStyle"];function U(e){const t=h(null);return t.current=e,t}H((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return g(o,n(n({},r(e,_)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:n(n({},i),c)}),a)}));var q,{isArray:G}=Array;function J(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function V(e,t){return e}function W(){const e=q||(q=a({renderable:!0,playable:!0,loading:"auto"},void 0));return f(e)}new WeakMap,new WeakMap;var Z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],D=()=>!1,K=H((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=D,messageHandler:u,ready:f=!0,loading:d,onReadyState:m,sandbox:p,src:y}=e,b=r(e,Z);const{playable:v}=W(),w=function(e){const{loading:t}=W();return function(e,t){const n=M[e]||0,r=M[t]||0,o=Math.max(n,r);return N[o]}(e,t)}(d),j="unload"!==w,z=h(!1),A=U(m),$=x((e=>{if(e!==z.current){z.current=e;const t=A.current;null==t||t(e?"complete":"loading")}}),[A]),k=h(null);return C(t,(()=>({get readyState(){return z.current?"complete":"loading"},get node(){return k.current}})),[]),O((()=>{j||$(!1)}),[j,$]),S((()=>{const e=k.current;if(!v&&e){const{src:t}=e;(e=>e&&"about:blank"!=e&&!e.includes("#"))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),O((()=>{const e=k.current;if(!e||!j)return;const t=e=>{const t=k.current;t&&e.source==t.contentWindow&&c(e.origin)&&u(e)},{defaultView:n}=e.ownerDocument;return n.addEventListener("message",t),()=>n.removeEventListener("message",t)}),[c,u,j,f]),g(B,n(n({},b),{},{layout:!0,size:!0,paint:!0}),j&&f&&g("iframe",{allow:o,allowFullScreen:a,frameborder:"0",loading:w,name:i,onLoad:()=>$(!0),part:"iframe",ref:k,sandbox:p,scrolling:"no",src:y,style:n(n({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:n,stack:r}=e,o=new Error(n);for(const t in e)o[t]=e[t];return o.stack=r,o}function X(e){let t=null,n="";for(var r,o=A(arguments,!0);!(r=o()).done;){const e=r.value;e instanceof Error&&!t?t=Q(e):(n&&(n+=" "),n+=e)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function Y(e){var t,n;null===(t=(n=self).__AMP_REPORT_ERROR)||void 0===t||t.call(n,e)}K.displayName="IframeEmbed";var ee=self.AMP_CONFIG||{},te=("string"==typeof ee.thirdPartyFrameRegex?new RegExp(ee.thirdPartyFrameRegex):ee.thirdPartyFrameRegex,("string"==typeof ee.cdnProxyRegex?new RegExp(ee.cdnProxyRegex):ee.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/);function ne(e){if(!self.document||!self.document.head)return null;if(self.location&&te.test(self.location.origin))return null;const t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var re,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2110122021000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const n=new Uint32Array(2);e.crypto.getRandomValues(n),t=String(n[0])+n[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||ne("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||ne("amp-geo-api"),self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var se=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],ce={},ue="sync-xhr 'none'",fe=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),de=H((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=fe,src:u,type:f,title:d=f}=e,m=r(e,se);if(p=o,"number"!=typeof b&&(b=0),b+(y=ue).length>p.length||-1===p.indexOf(y,b))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var p,y,b;const v=h(null),x=h(null),z=j((()=>(ce[f]||(ce[f]=function(){let e=0;return()=>String(++e)}()),ce[f]())),[f]),[A,$]=w({name:l,src:u}),{name:k,src:F}=A,P=h(null);return O((()=>{var e,t;const n=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,r=null!=u?u:n?((o=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2110122021000/frame.html`):"about:blank";var o;if(l)return void $({name:l,src:r});if(!n)return;P.current||(P.current=function(e){let t=0;for(let n=e;n&&n!=n.parent;n=n.parent)t++;return String(t)+"-"+ie(e)}(n));const a=Object.assign(E({"location":{"href":n.location.href},"sentinel":P.current})),i=Object.assign(E({"title":d,"type":f,"_context":a}),s);var c;$({name:JSON.stringify(E({"host":(c=r,re||(re=self.document.createElement("a")),function(e,t,n){return e.href="",new URL(t,e.href)}(re,c)).hostname,"bootstrap":le(f),"type":f,"count":z,"attributes":i})),src:r})}),[z,l,s,u,d,f]),S((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[k]),C(t,(()=>({get readyState(){var e;return null===(e=x.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=x.current)||void 0===e?void 0:e.node}})),[]),g(K,n({allow:o,contentRef:v,messageHandler:i,name:k,ref:x,ready:!!k,sandbox:a?void 0:c,src:F,title:d},m))}));de.displayName="ProxyIframeEmbed";var me=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],pe=()=>!0,ye="Facebook comments",be=H((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:f,layout:d,locale:m,numPosts:p,onLoad:y,orderBy:b,refLabel:v,requestResize:h,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,style:k,tabs:E,title:F=ye}=e,P=r(e,me);const[R,H]=w(null),N=U(y),M=x((e=>{var t;const n=null!==(t=J(e.data))&&void 0!==t?t:function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=V(e).indexOf("{");return J(V(e).substr(t),(t=>{!function(e){const t=X.apply(null,arguments);setTimeout((()=>{throw Y(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);var r;if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),"embed-size"==n.type){const e=n.height;h?(h(e),H("100%")):H(e)}}),[h,N]),[I,L]=w(m);O((()=>{var e,n;if(m)return void L(m);const r=null==t||null===(e=t.current)||void 0===e||null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView;r&&L(r.navigator.language.replace("-","_"))}),[m,t]);const T=j((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":f,layout:d,locale:I,numPosts:p,orderBy:b,ref:v,share:S,showFacepile:C,showText:z,size:A,smallHeader:$,tabs:E})),[o,a,l,i,s,c,u,f,d,I,p,b,v,S,C,z,A,$,E]);return g(de,n(n({options:T,ref:t,title:F},P),{},{excludeSandbox:!0,matchesMessagingOrigin:pe,messageHandler:M,type:"facebook",style:R?n(n({},k),{},{height:R}):k}))}));be.displayName="BentoFacebook";export{be as BentoFacebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
{
"name": "@ampproject/amp-facebook",
"version": "1.2110112305.0",
"version": "1.2110121825.0",
"description": "AMP HTML amp-facebook Component",

@@ -5,0 +5,0 @@ "author": "The AMP HTML Authors",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc