@ampproject/amp-facebook
Advanced tools
Comparing version 1.2109222204.0 to 1.2110011758.0
@@ -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,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):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,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);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,t,r){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,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}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,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);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 t=Object.create(null);return e&&Object.assign(t,e),t}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}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,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,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,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,u=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,m=void 0!==_&&_,h=e.size,y=void 0!==h&&h,v=e.style,g=e.wrapperClassName,E=e.wrapperStyle,b=(y?4:0)+(p?2:0)+(m?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:t,class:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},v),E),{},{contain:CONTAIN[b]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:u,class:c,style:_objectSpread2(_objectSpread2({},y&&SIZE_CONTENT_STYLE),{},{"overflow":m?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:t,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}function isProd(){return!0}function isTest(e){var t;if(isProd())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function isMinified(){return!0}function version(){return"2109222246000"}function isEsm(){var e,t,r;return!isProd()&&null!==(e=null===(t=self)||void 0===t||null===(r=t.__AMP_MODE)||void 0===r?void 0:r.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,t){for(var r=[],n=0,o=0;o<e.length;o++){var a=e[o];t(a,o,e)?r.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),r}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,t){try{return parseJson(e)}catch(e){return null==t||t(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,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(t)return t;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),c=[s];i.length;){var l=arguments[a++],u=i.shift();s+=elementStringOrPassThru(l)+u,c.push(l,u.trim())}var d=new Error(s);throw d.messageArray=remove(c,(function(e){return""!==e})),null===(r=(n=self).__AMP_REPORT_ERROR)||void 0===r||r.call(n,d),d}function assertType_(e,t,r,n,o){return isArray(o)?e(r,o.concat([t])):e(r,"".concat(o||n,": %s"),t),t}function assertString(e,t,r){return assertType_(e,t,isString(t),"String expected",r)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,t,r,n,o,a,i,s,c,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,t,r,n,o,a,i,s,c,l,u))}function devAssertString(e,t){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,t))}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","allowTransparency","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,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,s=e.title,c=e.matchesMessagingOrigin,l=void 0===c?DEFAULT_MATCHES_MESSAGING_ORIGIN:c,u=e.messageHandler,d=e.ready,f=void 0===d||d,p=e.loading,_=e.onReadyState,m=e.sandbox,h=e.src,y=_objectWithoutPropertiesLoose(e,_excluded3),v=useAmpContext().playable,g=useLoading(p),E=g!==Loading.UNLOAD,b=useRef2(!1),A=useValueRef(_),S=useCallback2((function(e){if(e!==b.current){b.current=e;var t=A.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[A]),O=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return b.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return O.current}}}),[]),useLayoutEffect2((function(){E||S(!1)}),[E,S]),useEffect2((function(){var e=O.current;if(!v&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),useLayoutEffect2((function(){var e=O.current;if(e&&E){var t=function(e){var t=O.current;t&&e.source==t.contentWindow&&l(e.origin)&&u(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,u,E,f]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},y),{},{layout:!0,size:!0,paint:!0}),E&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:O,sandbox:m,scrolling:"no",src:h,style:_objectSpread2(_objectSpread2({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var t,r=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(t=o()).done;){var a=t.value;a instanceof Error&&!r?r=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function maybeReportError(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function rethrowAsync(e){var t=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(t),t}))}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 t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.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.capacity_=e,this.size_=0,this.access_=0,this.cache_=map()}var t=e.prototype;return t.has=function(e){return!!this.cache_[e]},t.get=function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload},t.put=function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()},t.evict_=function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,t){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()||t?null:urlCache)}function parseUrlWithA(e,t,r){if(isEsm())return e.href="",new URL(t,e.href);if(r&&r.has(t))return r.get(t);e.href=t,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 r&&r.put(t,a),a}function getBootstrapUrl(e){var t=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(t):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+t}function getDefaultBootstrapBaseUrl(e,t){var r=t||"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(r,".html")):getDevelopmentBootstrapBaseUrl(e,r)}function getDevelopmentBootstrapBaseUrl(e,t){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(t):"current/".concat(t,".max"))+".html"}function getAdsLocalhost(e){var t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function generateSentinel(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+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,t){var r=e.allow,n=void 0===r?BLOCK_SYNC_XHR:r,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,c=e.sandbox,l=void 0===c?DEFAULT_SANDBOX:c,u=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 m=useRef2(null),h=useRef2(null),y=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:a,src:u}),2),g=v[0],E=v[1],b=g.name,A=g.src,S=useRef2(null);return useLayoutEffect2((function(){var e,t,r=null===(e=m.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?getDefaultBootstrapBaseUrl(r):"about:blank";if(a)E({name:a,src:n});else if(r){S.current||(S.current=generateSentinel(r));var o=Object.assign(dict({"location":{"href":r.location.href},"sentinel":S.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);E({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":y,"attributes":i})),src:n})}}),[y,a,s,u,p,d]),useEffect2((function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[b]),useImperativeHandle2(t,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:m,messageHandler:i,name:b,ref:h,ready:!!b,sandbox:o?void 0:l,src:A,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 t=devAssertString(e).indexOf("{");return devAssert(-1!=t),tryParseJson(devAssertString(e).substr(t),(function(t){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.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,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,c=e.includeCommentParent,l=e.kdSite,u=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,m=e.refLabel,h=e.requestResize,y=e.share,v=e.showFacepile,g=e.showText,E=e.size,b=e.smallHeader,A=e.style,S=e.tabs,O=e.title,R=void 0===O?DEFAULT_TITLE:O,P=_objectWithoutPropertiesLoose(e,_excluded5),T=_slicedToArray(useState2(null),2),w=T[0],L=T[1],N=useValueRef(p),M=useCallback2((function(e){var t,r,n=null!==(t=tryParseJson(e.data))&&void 0!==t?t:deserializeMessage(e.data);if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;h?(h(o),L(FULL_HEIGHT)):L(o)}}),[h,N]),x=_slicedToArray(useState2(d),2),I=x[0],C=x[1];useLayoutEffect2((function(){var e,r;if(d)C(d);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&C(dashToUnderline(n.navigator.language))}}),[d,t]);var j=useMemo2((function(){return{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:c,"kd_site":l,layout:u,locale:I,numPosts:f,orderBy:_,ref:m,share:y,showFacepile:v,showText:g,size:E,smallHeader:b,tabs:S}}),[r,n,o,a,i,s,c,l,u,I,f,_,m,y,v,g,E,b,S]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:j,ref:t,title:R},P),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:w?_objectSpread2(_objectSpread2({},A),{},{height:w}):A}))}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"2110140712000"}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 "2109222246000"; | ||
return "2110140712000"; | ||
} | ||
@@ -444,3 +444,3 @@ | ||
// src/preact/component/iframe.js | ||
var _excluded3 = ["allow", "allowFullScreen", "allowTransparency", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
var _excluded3 = ["allow", "allowFullScreen", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
function _extends3() { | ||
@@ -482,3 +482,3 @@ _extends3 = Object.assign || function(target) { | ||
function IframeEmbedWithRef(_ref, ref) { | ||
var allow = _ref.allow, allowFullScreen = _ref.allowFullScreen, allowTransparency = _ref.allowTransparency, iframeStyle = _ref.iframeStyle, name = _ref.name, title = _ref.title, _ref$matchesMessaging = _ref.matchesMessagingOrigin, matchesMessagingOrigin = _ref$matchesMessaging === void 0 ? DEFAULT_MATCHES_MESSAGING_ORIGIN : _ref$matchesMessaging, messageHandler = _ref.messageHandler, _ref$ready = _ref.ready, ready = _ref$ready === void 0 ? true : _ref$ready, loadingProp = _ref.loading, onReadyState = _ref.onReadyState, sandbox = _ref.sandbox, src = _ref.src, rest = _objectWithoutPropertiesLoose3(_ref, _excluded3); | ||
var allow = _ref.allow, allowFullScreen = _ref.allowFullScreen, iframeStyle = _ref.iframeStyle, name = _ref.name, title = _ref.title, _ref$matchesMessaging = _ref.matchesMessagingOrigin, matchesMessagingOrigin = _ref$matchesMessaging === void 0 ? DEFAULT_MATCHES_MESSAGING_ORIGIN : _ref$matchesMessaging, messageHandler = _ref.messageHandler, _ref$ready = _ref.ready, ready = _ref$ready === void 0 ? true : _ref$ready, loadingProp = _ref.loading, onReadyState = _ref.onReadyState, sandbox = _ref.sandbox, src = _ref.src, rest = _objectWithoutPropertiesLoose3(_ref, _excluded3); | ||
var _useAmpContext = useAmpContext(), playable = _useAmpContext.playable; | ||
@@ -549,3 +549,2 @@ var loading = useLoading(loadingProp); | ||
allowFullScreen: allowFullScreen, | ||
allowTransparency: allowTransparency, | ||
frameborder: "0", | ||
@@ -684,3 +683,3 @@ loading: loading, | ||
// src/log.js | ||
// src/utils/log.js | ||
self.__AMP_LOG = self.__AMP_LOG || { | ||
@@ -829,2 +828,3 @@ user: null, | ||
function getAdsLocalhost(win) { | ||
var _URL; | ||
var adsUrl = urls.thirdParty; | ||
@@ -834,3 +834,3 @@ if (adsUrl == "https://3p.ampproject.net") { | ||
} | ||
return adsUrl + ":" + (win.location.port || win.parent.location.port); | ||
return adsUrl + ":" + (((_URL = new URL(win.document.baseURI)) == null ? void 0 : _URL.port) || win.location.port || win.parent.location.port); | ||
} | ||
@@ -837,0 +837,0 @@ function getSubDomain(win) { |
@@ -302,3 +302,3 @@ // src/preact/index.js | ||
function version() { | ||
return "2109222246000"; | ||
return "2110140712000"; | ||
} | ||
@@ -447,3 +447,3 @@ | ||
// src/preact/component/iframe.js | ||
var _excluded3 = ["allow", "allowFullScreen", "allowTransparency", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
var _excluded3 = ["allow", "allowFullScreen", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
function _extends3() { | ||
@@ -484,3 +484,2 @@ _extends3 = Object.assign || function(target) { | ||
allowFullScreen, | ||
allowTransparency, | ||
iframeStyle, | ||
@@ -564,3 +563,2 @@ name, | ||
allowFullScreen, | ||
allowTransparency, | ||
frameborder: "0", | ||
@@ -662,3 +660,3 @@ loading, | ||
// src/log.js | ||
// src/utils/log.js | ||
self.__AMP_LOG = self.__AMP_LOG || { | ||
@@ -809,2 +807,3 @@ user: null, | ||
function getAdsLocalhost(win) { | ||
var _URL; | ||
let adsUrl = urls.thirdParty; | ||
@@ -814,3 +813,3 @@ if (adsUrl == "https://3p.ampproject.net") { | ||
} | ||
return adsUrl + ":" + (win.location.port || win.parent.location.port); | ||
return adsUrl + ":" + (((_URL = new URL(win.document.baseURI)) == null ? void 0 : _URL.port) || win.location.port || win.parent.location.port); | ||
} | ||
@@ -817,0 +816,0 @@ function getSubDomain(win) { |
@@ -1,2 +0,2 @@ | ||
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);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 d,useEffect as f,useImperativeHandle as p,useLayoutEffect as m,useMemo as y,useRef as g,useState as b}from"preact/hooks";function h(e,t,r){return l.apply(void 0,arguments)}function v(e){return b(e)}function w(e){return g(e)}function O(e,t){f(e,t)}function S(e,t){m(e,t)}function P(e,t){return y(e,t)}function x(e,t){return u(e,t)}function A(e,t,r){return p(e,t,r)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);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{hasOwnProperty:j,toString:E}=Object.prototype;function M(e){return e||{}}import{Children as F,createPortal as N,forwardRef as T}from"preact/compat";function C(e){return T(e)}var k=["auto","lazy","eager","unload"],z={auto:0,lazy:1,eager:2,unload:3},D=["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"],U={"position":"relative","width":"100%","height":"100%"},$=C((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:d,layout:f=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:g,wrapperStyle:b}=e;const v=(m?4:0)+(f?2:0)+(p?1:0);return h(o,r(r({},n(e,D)),{},{ref:t,class:`${l||""} ${g||""}`.trim()||null,style:r(r(r({},y),b),{},{contain:L[v]})}),h(i,r(r({},c),{},{ref:u,class:s,style:r(r({},m&&U),{},{"overflow":p?"hidden":"visible"},d)}),a))})),B=["as","children","class","style","wrapperClassName","wrapperStyle"];function H(e){const t=w(null);return t.current=e,t}C((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return h(o,r(r({},n(e,B)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:r(r({},i),c)}),a)}));var I,{isArray:G}=Array;function V(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function W(e,t){return e}function q(){const e=I||(I=a({renderable:!0,playable:!0,loading:"auto"},void 0));return d(e)}new WeakMap,new WeakMap;var J=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],Z=()=>!1,K=C((function(e,t){let{allow:o,allowFullScreen:a,allowTransparency:l,iframeStyle:i,name:s,title:c,matchesMessagingOrigin:u=Z,messageHandler:d,ready:f=!0,loading:p,onReadyState:m,sandbox:y,src:g}=e,b=n(e,J);const{playable:v}=q(),P=function(e){const{loading:t}=q();return function(e,t){const r=z[e]||0,n=z[t]||0,o=Math.max(r,n);return k[o]}(e,t)}(p),_="unload"!==P,R=w(!1),j=H(m),E=x((e=>{if(e!==R.current){R.current=e;const t=j.current;null==t||t(e?"complete":"loading")}}),[j]),M=w(null);return A(t,(()=>({get readyState(){return R.current?"complete":"loading"},get node(){return M.current}})),[]),S((()=>{_||E(!1)}),[_,E]),O((()=>{const e=M.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]),S((()=>{const e=M.current;if(!e||!_)return;const t=e=>{const t=M.current;t&&e.source==t.contentWindow&&u(e.origin)&&d(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,d,_,f]),h($,r(r({},b),{},{layout:!0,size:!0,paint:!0}),_&&f&&h("iframe",{allow:o,allowFullScreen:a,allowTransparency:l,frameborder:"0",loading:P,name:s,onLoad:()=>E(!0),part:"iframe",ref:M,sandbox:y,scrolling:"no",src:g,style:r(r({},i),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function X(e){let t=null,r="";for(var n,o=R(arguments,!0);!(n=o()).done;){const e=n.value;e instanceof Error&&!t?t=Q(e):(r&&(r+=" "),r+=e)}return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function Y(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,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 re(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 ne,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2109222246000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||re("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||re("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'",de=["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(" "),fe=C((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=de,src:u,type:d,title:f=d}=e,p=n(e,se);if(m=o,"number"!=typeof g&&(g=0),g+(y=ue).length>m.length||-1===m.indexOf(y,g))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var m,y,g;const b=w(null),x=w(null),_=P((()=>(ce[d]||(ce[d]=function(){let e=0;return()=>String(++e)}()),ce[d]())),[d]),[R,j]=v({name:l,src:u}),{name:E,src:F}=R,N=w(null);return S((()=>{var e,t;const r=null===(e=b.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?((o=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2109222246000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:n});if(!r)return;N.current||(N.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ie(e)}(r));const a=Object.assign(M({"location":{"href":r.location.href},"sentinel":N.current})),i=Object.assign(M({"title":f,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(M({"host":(c=n,ne||(ne=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ne,c)).hostname,"bootstrap":le(d),"type":d,"count":_,"attributes":i})),src:n})}),[_,l,s,u,f,d]),O((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),A(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}})),[]),h(K,r({allow:o,contentRef:b,messageHandler:i,name:E,ref:x,ready:!!E,sandbox:a?void 0:c,src:F,title:f},p))}));fe.displayName="ProxyIframeEmbed";var pe=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],me=()=>!0,ye="Facebook comments",ge=C((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:d,layout:f,locale:p,numPosts:m,onLoad:y,orderBy:g,refLabel:b,requestResize:w,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,style:E,tabs:M,title:F=ye}=e,N=n(e,pe);const[T,C]=v(null),k=H(y),z=x((e=>{var t;const r=null!==(t=V(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=W(e).indexOf("{");return V(W(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 n;if("ready"==r.action&&(null===(n=k.current)||void 0===n||n.call(k)),"embed-size"==r.type){const e=r.height;w?(w(e),C("100%")):C(e)}}),[w,k]),[D,L]=v(p);S((()=>{var e,r;if(p)return void L(p);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&L(n.navigator.language.replace("-","_"))}),[p,t]);const U=P((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":d,layout:f,locale:D,numPosts:m,orderBy:g,ref:b,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,tabs:M})),[o,a,l,i,s,c,u,d,f,D,m,g,b,O,A,_,R,j,M]);return h(fe,r(r({options:U,ref:t,title:F},N),{},{excludeSandbox:!0,matchesMessagingOrigin:me,messageHandler:z,type:"facebook",style:T?r(r({},E),{},{height:T}):E}))}));ge.displayName="BentoFacebook";export{ge 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}/2110140712000/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}/2110140712000/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,t){for(var r in __markAsModule(e),t)__defProp(e,r,{get:t[r],enumerable:!0})},__reExport=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=__getOwnPropNames(t),a=0,i=o.length;a<i;a++)n=o[a],__hasOwnProp.call(e,n)||"default"===n||__defProp(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=__getOwnPropDesc(t,n))||r.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,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):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,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);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,t,r){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,t){hooks.useEffect(e,t)}function useLayoutEffect2(e,t){hooks.useLayoutEffect(e,t)}function useContext2(e){return hooks.useContext(e)}function useMemo2(e,t){return hooks.useMemo(e,t)}function useCallback2(e,t){return hooks.useCallback(e,t)}function useImperativeHandle2(e,t,r){return hooks.useImperativeHandle(e,t,r)}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,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);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 t=Object.create(null);return e&&Object.assign(t,e),t}function dict(e){return e||{}}function dashToUnderline(e){return e.replace("-","_")}function includes(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}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,t){var r=MAP[e]||0,n=MAP[t]||0,o=Math.max(r,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,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.contentAs,s=void 0===i?"div":i,c=e.contentClassName,l=e.contentProps,u=e.contentRef,d=e.contentStyle,f=e.layout,p=void 0!==f&&f,_=e.paint,m=void 0!==_&&_,h=e.size,y=void 0!==h&&h,v=e.style,g=e.wrapperClassName,E=e.wrapperStyle,b=(y?4:0)+(p?2:0)+(m?1:0);return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded)),{},{ref:t,class:"".concat(a||""," ").concat(g||"").trim()||null,style:_objectSpread2(_objectSpread2(_objectSpread2({},v),E),{},{contain:CONTAIN[b]})}),createElement2(s,_objectSpread2(_objectSpread2({},l),{},{ref:u,class:c,style:_objectSpread2(_objectSpread2({},y&&SIZE_CONTENT_STYLE),{},{"overflow":m?"hidden":"visible"},d)}),o))}var ContainWrapper=forwardRef2(ContainWrapperWithRef),_excluded2=["as","children","class","style","wrapperClassName","wrapperStyle"];function WrapperWithRef(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.class,i=e.style,s=e.wrapperClassName,c=e.wrapperStyle;return createElement2(n,_objectSpread2(_objectSpread2({},_objectWithoutPropertiesLoose(e,_excluded2)),{},{ref:t,class:"".concat(a||""," ").concat(s||"").trim()||null,style:_objectSpread2(_objectSpread2({},i),c)}),o)}var Wrapper=forwardRef2(WrapperWithRef);function useValueRef(e){var t=useRef2(null);return t.current=e,t}function isProd(){return!0}function isTest(e){var t;if(isProd())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function isMinified(){return!0}function version(){return"2109222246000"}function isEsm(){var e,t,r;return!isProd()&&null!==(e=null===(t=self)||void 0===t||null===(r=t.__AMP_MODE)||void 0===r?void 0:r.esm)&&void 0!==e&&e}var isArray=Array.isArray;function remove(e,t){for(var r=[],n=0,o=0;o<e.length;o++){var a=e[o];t(a,o,e)?r.push(a):(n<o&&(e[n]=a),n++)}return n<e.length&&(e.length=n),r}function parseJson(e){return JSON.parse(e)}function tryParseJson(e,t){try{return parseJson(e)}catch(e){return null==t||t(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,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(t)return t;e&&-1==o.indexOf(e)&&(o+=e);for(var a=3,i=o.split("%s"),s=i.shift(),c=[s];i.length;){var l=arguments[a++],u=i.shift();s+=elementStringOrPassThru(l)+u,c.push(l,u.trim())}var d=new Error(s);throw d.messageArray=remove(c,(function(e){return""!==e})),null===(r=(n=self).__AMP_REPORT_ERROR)||void 0===r||r.call(n,d),d}function assertType_(e,t,r,n,o){return isArray(o)?e(r,o.concat([t])):e(r,"".concat(o||n,": %s"),t),t}function assertString(e,t,r){return assertType_(e,t,isString(t),"String expected",r)}function devAssertDceCheck(){self.__AMP_ASSERTION_CHECK&&console.log("__devAssert_sentinel__")}function devAssert(e,t,r,n,o,a,i,s,c,l,u){return isMinified()?e:(devAssertDceCheck(),assert("",e,t,r,n,o,a,i,s,c,l,u))}function devAssertString(e,t){return isMinified()?e:(devAssertDceCheck(),assertString(devAssert,e,t))}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","allowTransparency","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,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,s=e.title,c=e.matchesMessagingOrigin,l=void 0===c?DEFAULT_MATCHES_MESSAGING_ORIGIN:c,u=e.messageHandler,d=e.ready,f=void 0===d||d,p=e.loading,_=e.onReadyState,m=e.sandbox,h=e.src,y=_objectWithoutPropertiesLoose(e,_excluded3),v=useAmpContext().playable,g=useLoading(p),E=g!==Loading.UNLOAD,b=useRef2(!1),A=useValueRef(_),S=useCallback2((function(e){if(e!==b.current){b.current=e;var t=A.current;null==t||t(e?ReadyState.COMPLETE:ReadyState.LOADING)}}),[A]),O=useRef2(null);return useImperativeHandle2(t,(function(){return{get readyState(){return b.current?ReadyState.COMPLETE:ReadyState.LOADING},get node(){return O.current}}}),[]),useLayoutEffect2((function(){E||S(!1)}),[E,S]),useEffect2((function(){var e=O.current;if(!v&&e){var t=e.src;canResetSrc(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),useLayoutEffect2((function(){var e=O.current;if(e&&E){var t=function(e){var t=O.current;t&&e.source==t.contentWindow&&l(e.origin)&&u(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,u,E,f]),createElement2(ContainWrapper,_objectSpread2(_objectSpread2({},y),{},{layout:!0,size:!0,paint:!0}),E&&f&&createElement2("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:O,sandbox:m,scrolling:"no",src:h,style:_objectSpread2(_objectSpread2({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}var IframeEmbed=forwardRef2(IframeEmbedWithRef);function duplicateErrorIfNecessary(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var a in e)o[a]=e[a];return o.stack=n,o}function createError(e){for(var t,r=null,n="",o=_createForOfIteratorHelperLoose(arguments,!0);!(t=o()).done;){var a=t.value;a instanceof Error&&!r?r=duplicateErrorIfNecessary(a):(n&&(n+=" "),n+=a)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function maybeReportError(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}function rethrowAsync(e){var t=createError.apply(null,arguments);setTimeout((function(){throw maybeReportError(t),t}))}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 t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.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.capacity_=e,this.size_=0,this.access_=0,this.cache_=map()}var t=e.prototype;return t.has=function(e){return!!this.cache_[e]},t.get=function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload},t.put=function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()},t.evict_=function(){if(!(this.size_<=this.capacity_)){var e,t=this.cache_,r=this.access_+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.size_--)}},e}(),SERVING_TYPE_PREFIX=new Set(["c","v","a","ad"]);function parseUrlDeprecated(e,t){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()||t?null:urlCache)}function parseUrlWithA(e,t,r){if(isEsm())return e.href="",new URL(t,e.href);if(r&&r.has(t))return r.get(t);e.href=t,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 r&&r.put(t,a),a}function getBootstrapUrl(e){var t=isEsm()?".mjs":".js";return isProd()?"".concat(urls.thirdParty,"/").concat(version(),"/vendor/").concat(e).concat(t):(isMinified()?"./vendor/".concat(e):"./vendor/".concat(e,".max"))+t}function getDefaultBootstrapBaseUrl(e,t){var r=t||"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(r,".html")):getDevelopmentBootstrapBaseUrl(e,r)}function getDevelopmentBootstrapBaseUrl(e,t){return overrideBootstrapBaseUrl||getAdsLocalhost(e)+"/dist.3p/"+(isMinified()?"".concat(version(),"/").concat(t):"current/".concat(t,".max"))+".html"}function getAdsLocalhost(e){var t=urls.thirdParty;return"https://3p.ampproject.net"==t&&(t="http://ads.localhost"),t+":"+(e.location.port||e.parent.location.port)}function getSubDomain(e){return"d-"+getRandom(e)}function getRandom(e){var t;if(e.crypto&&e.crypto.getRandomValues){var r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}function generateSentinel(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+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,t){var r=e.allow,n=void 0===r?BLOCK_SYNC_XHR:r,o=e.excludeSandbox,a=e.name,i=e.messageHandler,s=e.options,c=e.sandbox,l=void 0===c?DEFAULT_SANDBOX:c,u=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 m=useRef2(null),h=useRef2(null),y=useMemo2((function(){return countGenerators[d]||(countGenerators[d]=sequentialIdGenerator()),countGenerators[d]()}),[d]),v=_slicedToArray(useState2({name:a,src:u}),2),g=v[0],E=v[1],b=g.name,A=g.src,S=useRef2(null);return useLayoutEffect2((function(){var e,t,r=null===(e=m.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?getDefaultBootstrapBaseUrl(r):"about:blank";if(a)E({name:a,src:n});else if(r){S.current||(S.current=generateSentinel(r));var o=Object.assign(dict({"location":{"href":r.location.href},"sentinel":S.current})),i=Object.assign(dict({"title":p,"type":d,"_context":o}),s);E({name:JSON.stringify(dict({"host":parseUrlDeprecated(n).hostname,"bootstrap":getBootstrapUrl(d),"type":d,"count":y,"attributes":i})),src:n})}}),[y,a,s,u,p,d]),useEffect2((function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[b]),useImperativeHandle2(t,(function(){return{get readyState(){var e;return null===(e=h.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=h.current)||void 0===e?void 0:e.node}}}),[]),createElement2(IframeEmbed,_objectSpread2({allow:n,contentRef:m,messageHandler:i,name:b,ref:h,ready:!!b,sandbox:o?void 0:l,src:A,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 t=devAssertString(e).indexOf("{");return devAssert(-1!=t),tryParseJson(devAssertString(e).substr(t),(function(t){rethrowAsync(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.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,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,s=e.href,c=e.includeCommentParent,l=e.kdSite,u=e.layout,d=e.locale,f=e.numPosts,p=e.onLoad,_=e.orderBy,m=e.refLabel,h=e.requestResize,y=e.share,v=e.showFacepile,g=e.showText,E=e.size,b=e.smallHeader,A=e.style,S=e.tabs,O=e.title,R=void 0===O?DEFAULT_TITLE:O,P=_objectWithoutPropertiesLoose(e,_excluded5),T=_slicedToArray(useState2(null),2),w=T[0],L=T[1],N=useValueRef(p),M=useCallback2((function(e){var t,r,n=null!==(t=tryParseJson(e.data))&&void 0!==t?t:deserializeMessage(e.data);if("ready"==n.action&&(null===(r=N.current)||void 0===r||r.call(N)),n.type==MessageType.EMBED_SIZE){var o=n.height;h?(h(o),L(FULL_HEIGHT)):L(o)}}),[h,N]),x=_slicedToArray(useState2(d),2),I=x[0],C=x[1];useLayoutEffect2((function(){var e,r;if(d)C(d);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&C(dashToUnderline(n.navigator.language))}}),[d,t]);var j=useMemo2((function(){return{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:s,includeCommentParent:c,"kd_site":l,layout:u,locale:I,numPosts:f,orderBy:_,ref:m,share:y,showFacepile:v,showText:g,size:E,smallHeader:b,tabs:S}}),[r,n,o,a,i,s,c,l,u,I,f,_,m,y,v,g,E,b,S]);return createElement2(ProxyIframeEmbed,_objectSpread2(_objectSpread2({options:j,ref:t,title:R},P),{},{excludeSandbox:!0,matchesMessagingOrigin:MATCHES_MESSAGING_ORIGIN,messageHandler:M,type:TYPE,style:w?_objectSpread2(_objectSpread2({},A),{},{height:w}):A}))}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"2110140712000"}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 "2109222246000"; | ||
return "2110140712000"; | ||
} | ||
@@ -444,3 +444,3 @@ | ||
// src/preact/component/iframe.js | ||
var _excluded3 = ["allow", "allowFullScreen", "allowTransparency", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
var _excluded3 = ["allow", "allowFullScreen", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
function _extends3() { | ||
@@ -482,3 +482,3 @@ _extends3 = Object.assign || function(target) { | ||
function IframeEmbedWithRef(_ref, ref) { | ||
var allow = _ref.allow, allowFullScreen = _ref.allowFullScreen, allowTransparency = _ref.allowTransparency, iframeStyle = _ref.iframeStyle, name = _ref.name, title = _ref.title, _ref$matchesMessaging = _ref.matchesMessagingOrigin, matchesMessagingOrigin = _ref$matchesMessaging === void 0 ? DEFAULT_MATCHES_MESSAGING_ORIGIN : _ref$matchesMessaging, messageHandler = _ref.messageHandler, _ref$ready = _ref.ready, ready = _ref$ready === void 0 ? true : _ref$ready, loadingProp = _ref.loading, onReadyState = _ref.onReadyState, sandbox = _ref.sandbox, src = _ref.src, rest = _objectWithoutPropertiesLoose3(_ref, _excluded3); | ||
var allow = _ref.allow, allowFullScreen = _ref.allowFullScreen, iframeStyle = _ref.iframeStyle, name = _ref.name, title = _ref.title, _ref$matchesMessaging = _ref.matchesMessagingOrigin, matchesMessagingOrigin = _ref$matchesMessaging === void 0 ? DEFAULT_MATCHES_MESSAGING_ORIGIN : _ref$matchesMessaging, messageHandler = _ref.messageHandler, _ref$ready = _ref.ready, ready = _ref$ready === void 0 ? true : _ref$ready, loadingProp = _ref.loading, onReadyState = _ref.onReadyState, sandbox = _ref.sandbox, src = _ref.src, rest = _objectWithoutPropertiesLoose3(_ref, _excluded3); | ||
var _useAmpContext = useAmpContext(), playable = _useAmpContext.playable; | ||
@@ -549,3 +549,2 @@ var loading = useLoading(loadingProp); | ||
allowFullScreen: allowFullScreen, | ||
allowTransparency: allowTransparency, | ||
frameborder: "0", | ||
@@ -684,3 +683,3 @@ loading: loading, | ||
// src/log.js | ||
// src/utils/log.js | ||
self.__AMP_LOG = self.__AMP_LOG || { | ||
@@ -829,2 +828,3 @@ user: null, | ||
function getAdsLocalhost(win) { | ||
var _URL; | ||
var adsUrl = urls.thirdParty; | ||
@@ -834,3 +834,3 @@ if (adsUrl == "https://3p.ampproject.net") { | ||
} | ||
return adsUrl + ":" + (win.location.port || win.parent.location.port); | ||
return adsUrl + ":" + (((_URL = new URL(win.document.baseURI)) == null ? void 0 : _URL.port) || win.location.port || win.parent.location.port); | ||
} | ||
@@ -837,0 +837,0 @@ function getSubDomain(win) { |
@@ -302,3 +302,3 @@ // src/preact/index.js | ||
function version() { | ||
return "2109222246000"; | ||
return "2110140712000"; | ||
} | ||
@@ -447,3 +447,3 @@ | ||
// src/preact/component/iframe.js | ||
var _excluded3 = ["allow", "allowFullScreen", "allowTransparency", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
var _excluded3 = ["allow", "allowFullScreen", "iframeStyle", "name", "title", "matchesMessagingOrigin", "messageHandler", "ready", "loading", "onReadyState", "sandbox", "src"]; | ||
function _extends3() { | ||
@@ -484,3 +484,2 @@ _extends3 = Object.assign || function(target) { | ||
allowFullScreen, | ||
allowTransparency, | ||
iframeStyle, | ||
@@ -564,3 +563,2 @@ name, | ||
allowFullScreen, | ||
allowTransparency, | ||
frameborder: "0", | ||
@@ -662,3 +660,3 @@ loading, | ||
// src/log.js | ||
// src/utils/log.js | ||
self.__AMP_LOG = self.__AMP_LOG || { | ||
@@ -809,2 +807,3 @@ user: null, | ||
function getAdsLocalhost(win) { | ||
var _URL; | ||
let adsUrl = urls.thirdParty; | ||
@@ -814,3 +813,3 @@ if (adsUrl == "https://3p.ampproject.net") { | ||
} | ||
return adsUrl + ":" + (win.location.port || win.parent.location.port); | ||
return adsUrl + ":" + (((_URL = new URL(win.document.baseURI)) == null ? void 0 : _URL.port) || win.location.port || win.parent.location.port); | ||
} | ||
@@ -817,0 +816,0 @@ function getSubDomain(win) { |
@@ -1,2 +0,2 @@ | ||
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);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 d,useEffect as f,useImperativeHandle as p,useLayoutEffect as m,useMemo as y,useRef as g,useState as b}from"react";function h(e,t,r){return l.apply(void 0,arguments)}function v(e){return b(e)}function w(e){return g(e)}function O(e,t){f(e,t)}function S(e,t){m(e,t)}function P(e,t){return y(e,t)}function x(e,t){return u(e,t)}function A(e,t,r){return p(e,t,r)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function R(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);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{hasOwnProperty:j,toString:E}=Object.prototype;function M(e){return e||{}}import{Children as F,createPortal as N,forwardRef as T}from"react";function C(e){return T(e)}var k=["auto","lazy","eager","unload"],z={auto:0,lazy:1,eager:2,unload:3},D=["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"],U={"position":"relative","width":"100%","height":"100%"},$=C((function(e,t){let{as:o="div",children:a,"class":l,contentAs:i="div",contentClassName:s,contentProps:c,contentRef:u,contentStyle:d,layout:f=!1,paint:p=!1,size:m=!1,"style":y,wrapperClassName:g,wrapperStyle:b}=e;const v=(m?4:0)+(f?2:0)+(p?1:0);return h(o,r(r({},n(e,D)),{},{ref:t,class:`${l||""} ${g||""}`.trim()||null,style:r(r(r({},y),b),{},{contain:L[v]})}),h(i,r(r({},c),{},{ref:u,class:s,style:r(r({},m&&U),{},{"overflow":p?"hidden":"visible"},d)}),a))})),B=["as","children","class","style","wrapperClassName","wrapperStyle"];function H(e){const t=w(null);return t.current=e,t}C((function(e,t){let{as:o="div",children:a,"class":l,"style":i,wrapperClassName:s,wrapperStyle:c}=e;return h(o,r(r({},n(e,B)),{},{ref:t,class:`${l||""} ${s||""}`.trim()||null,style:r(r({},i),c)}),a)}));var I,{isArray:G}=Array;function V(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}function W(e,t){return e}function q(){const e=I||(I=a({renderable:!0,playable:!0,loading:"auto"},void 0));return d(e)}new WeakMap,new WeakMap;var J=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],Z=()=>!1,K=C((function(e,t){let{allow:o,allowFullScreen:a,allowTransparency:l,iframeStyle:i,name:s,title:c,matchesMessagingOrigin:u=Z,messageHandler:d,ready:f=!0,loading:p,onReadyState:m,sandbox:y,src:g}=e,b=n(e,J);const{playable:v}=q(),P=function(e){const{loading:t}=q();return function(e,t){const r=z[e]||0,n=z[t]||0,o=Math.max(r,n);return k[o]}(e,t)}(p),_="unload"!==P,R=w(!1),j=H(m),E=x((e=>{if(e!==R.current){R.current=e;const t=j.current;null==t||t(e?"complete":"loading")}}),[j]),M=w(null);return A(t,(()=>({get readyState(){return R.current?"complete":"loading"},get node(){return M.current}})),[]),S((()=>{_||E(!1)}),[_,E]),O((()=>{const e=M.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]),S((()=>{const e=M.current;if(!e||!_)return;const t=e=>{const t=M.current;t&&e.source==t.contentWindow&&u(e.origin)&&d(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[u,d,_,f]),h($,r(r({},b),{},{layout:!0,size:!0,paint:!0}),_&&f&&h("iframe",{allow:o,allowFullScreen:a,allowTransparency:l,frameborder:"0",loading:P,name:s,onLoad:()=>E(!0),part:"iframe",ref:M,sandbox:y,scrolling:"no",src:g,style:r(r({},i),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}));function Q(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function X(e){let t=null,r="";for(var n,o=R(arguments,!0);!(n=o()).done;){const e=n.value;e instanceof Error&&!t?t=Q(e):(r&&(r+=" "),r+=e)}return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function Y(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,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 re(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 ne,oe=ee.thirdPartyUrl||"https://3p.ampproject.net",ae=ee.thirdPartyFrameHost||"ampproject.net";function le(e){return`${oe}/2109222246000/vendor/${e}.mjs`}function ie(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}ee.cdnUrl||re("runtime-host"),ee.errorReportingUrl,ee.betaErrorReportingUrl,ee.localDev,ee.geoApiUrl||re("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'",de=["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(" "),fe=C((function(e,t){let{allow:o=ue,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=de,src:u,type:d,title:f=d}=e,p=n(e,se);if(m=o,"number"!=typeof g&&(g=0),g+(y=ue).length>m.length||-1===m.indexOf(y,g))throw new Error(`'allow' prop must contain "${ue}". Found "${o}".`);var m,y,g;const b=w(null),x=w(null),_=P((()=>(ce[d]||(ce[d]=function(){let e=0;return()=>String(++e)}()),ce[d]())),[d]),[R,j]=v({name:l,src:u}),{name:E,src:F}=R,N=w(null);return S((()=>{var e,t;const r=null===(e=b.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=u?u:r?((o=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+ie(o),"https://"+o.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${ae}/2109222246000/frame.html`):"about:blank";var o;if(l)return void j({name:l,src:n});if(!r)return;N.current||(N.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+ie(e)}(r));const a=Object.assign(M({"location":{"href":r.location.href},"sentinel":N.current})),i=Object.assign(M({"title":f,"type":d,"_context":a}),s);var c;j({name:JSON.stringify(M({"host":(c=n,ne||(ne=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(ne,c)).hostname,"bootstrap":le(d),"type":d,"count":_,"attributes":i})),src:n})}),[_,l,s,u,f,d]),O((()=>{var e;const t=null===(e=x.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),A(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}})),[]),h(K,r({allow:o,contentRef:b,messageHandler:i,name:E,ref:x,ready:!!E,sandbox:a?void 0:c,src:F,title:f},p))}));fe.displayName="ProxyIframeEmbed";var pe=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onLoad","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"],me=()=>!0,ye="Facebook comments",ge=C((function(e,t){let{action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,kdSite:d,layout:f,locale:p,numPosts:m,onLoad:y,orderBy:g,refLabel:b,requestResize:w,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,style:E,tabs:M,title:F=ye}=e,N=n(e,pe);const[T,C]=v(null),k=H(y),z=x((e=>{var t;const r=null!==(t=V(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=W(e).indexOf("{");return V(W(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 n;if("ready"==r.action&&(null===(n=k.current)||void 0===n||n.call(k)),"embed-size"==r.type){const e=r.height;w?(w(e),C("100%")):C(e)}}),[w,k]),[D,L]=v(p);S((()=>{var e,r;if(p)return void L(p);const n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;n&&L(n.navigator.language.replace("-","_"))}),[p,t]);const U=P((()=>({action:o,colorscheme:a,embedAs:l,hideCover:i,hideCta:s,href:c,includeCommentParent:u,"kd_site":d,layout:f,locale:D,numPosts:m,orderBy:g,ref:b,share:O,showFacepile:A,showText:_,size:R,smallHeader:j,tabs:M})),[o,a,l,i,s,c,u,d,f,D,m,g,b,O,A,_,R,j,M]);return h(fe,r(r({options:U,ref:t,title:F},N),{},{excludeSandbox:!0,matchesMessagingOrigin:me,messageHandler:z,type:"facebook",style:T?r(r({},E),{},{height:T}):E}))}));ge.displayName="BentoFacebook";export{ge 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}/2110140712000/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}/2110140712000/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.2109222204.0", | ||
"version": "1.2110011758.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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
918692
19
1
451
4685
1