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

@ampproject/amp-facebook

Package Overview
Dependencies
Maintainers
16
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/amp-facebook - npm Package Compare versions

Comparing version 1.2107012021.0 to 1.2107030008.0

2

dist/component-preact.js

@@ -1,3 +0,3 @@

var Dr=Object.create,ee=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Tr=Object.getOwnPropertyNames,wr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,De=function(e){return ee(e,"__esModule",{value:!0})},Lr=function(e,r){for(var t in De(e),r)ee(e,t,{get:r[t],enumerable:!0})},jr=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=Tr(r),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&ee(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=Mr(r,n))||t.enumerable});return e},re=function(e){return jr(De(ee(null!=e?Dr(wr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Fr}});var d=re(require("preact/hooks")),W=re(require("preact")),Me=re(require("preact"));function A(e,r,t){return W.createElement.apply(void 0,arguments)}function Te(e){return W.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function te(e,r){d.useEffect(e,r)}function U(e,r){d.useLayoutEffect(e,r)}function we(e){return d.useContext(e)}function pe(e,r){return d.useMemo(e,r)}function ne(e,r){return d.useCallback(e,r)}function Y(e,r,t){return d.useImperativeHandle(e,r,t)}var oe=re(require("preact/compat"));function M(e){return oe.forwardRef(e)}var Ur=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ce(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 w(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Ce(Object(t),!0).forEach((function(r){kr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function kr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Br(e,r){if(null==e)return{};var t,n,o=Hr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Hr(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}var Vr=[null,"paint","layout","content","size","size paint","size layout","strict"],Gr={position:"relative",width:"100%",height:"100%"};function Wr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,j=(v?4:0)+(y?2:0)+(b?1:0);return A(n,w(w({},Br(e,Ur)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:w(w(w({},m),h),{},{contain:Vr[j]})}),A(c,w(w({},u),{},{ref:s,className:l,style:w(w({},v&&Gr),{},{overflow:b?"hidden":"visible"},f)}),o))}var me=M(Wr),$r=["as","children","className","style","wrapperClassName","wrapperStyle"];function Le(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 ie(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Le(Object(t),!0).forEach((function(r){zr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function zr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Xr(e,r){if(null==e)return{};var t,n,o=qr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function qr(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}function Jr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ie(ie({},Xr(e,$r)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ie(ie({},i),l)}),o)}var K,Kr=M(Jr);function ve(e){var r=j(null);return r.current=e,r}function ae(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var F={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Yr=[F.AUTO,F.LAZY,F.EAGER,F.UNLOAD],je=(ae(K={},F.AUTO,0),ae(K,F.LAZY,1),ae(K,F.EAGER,2),ae(K,F.UNLOAD,3),K);function Ue(e,r){var t=je[e]||0,n=je[r]||0,o=Math.max(t,n);return Yr[o]}var ke,Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};function Zr(){return ke||(ke=Te({renderable:!0,playable:!0,loading:F.AUTO}))}function de(){return we(Zr())}function Be(e){return Ue(e,de().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function He(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 ue(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?He(Object(t),!0).forEach((function(r){et(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function et(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function rt(e,r){if(null==e)return{};var t,n,o=tt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function tt(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}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=de().playable,g=Be(y),h=g!==F.UNLOAD,w=j(!1),P=ve(d),S=ne((function(e){if(e!==w.current){w.current=e;var r=P.current;null==r||r(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(r,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),te((function(){var e=_.current;if(!m&&e){var r=e.src;if(it(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var r=function(e){var r=_.current;!r||e.source!=r.contentWindow||!u(e.origin)||s(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,s,h,p]),A(me,ue(ue({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:ue(ue({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var ge=M(at);ge.displayName="IframeEmbed";var Ve=Object.prototype,Bn=Ve.hasOwnProperty,Hn=Ve.toString;function k(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function T(e){return e||{}}function ut(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ge(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function st(e,r,t){return r&&Ge(e.prototype,r),t&&Ge(e,t),e}var We=function(){function e(r){ut(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=k()}return st(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}();function $e(e){return e.replace("-","_")}function ze(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}var lt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ke(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return r}}function se(e){var r,t=k();if(!e)return t;for(;r=lt.exec(e);){var n=Ke(r[1],r[1]),o=r[2]?Ke(r[2].replace(/\+/g," "),r[2]):"";t[n]=o}return t}var B=Array.isArray,O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ye=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ze(e){if(!self.document||!self.document.head||self.location&&Ye.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var H={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Ze("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ye,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Ze("amp-geo-api")},ye={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var he=self.__AMP_LOG,ur=null;function $(){if(he.dev)return he.dev;if(!ur)throw new Error("failed to call initLogConstructor");return he.dev=new ur(self,(function(e){return e>=3?ye.FINE:e>=2?ye.INFO:ye.OFF}))}function ce(e,r,t,n,o,a,i,c,l,u,s){return e}var xe,cr,ni=T({c:!0,v:!0,a:!0,ad:!0});function Ee(e,r){return xe||(xe=self.document.createElement("a"),cr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new We(100))),gt(xe,e,r?null:cr)}function gt(e,r,t){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=o;return t&&t.put(r,a),a}function be(e){return JSON.parse(e)}function Q(e,r){try{return be(e)}catch(e){return null==r||r(e),null}}function Se(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=At(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=t.return&&t.return()}finally{if(c)throw a}}}}function At(e,r){if(e){if("string"==typeof e)return fr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return fr(e,r)}}function fr(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 pr(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 mr(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?pr(Object(t),!0).forEach((function(r){Ot(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Ot(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var _t="EXPERIMENTS",Pt="amp-experiment-toggles",le="__AMP__EXPERIMENT_TOGGLES";function vr(e,r){return!!dr(e)[r]}function dr(e){var r,t,n,o,a;if(e[le])return e[le];e[le]=k();var i=e[le],c=mr(mr({},null!==(r=e.AMP_CONFIG)&&void 0!==r?r:{}),null!==(t=e.AMP_EXP)&&void 0!==t?t:be((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(B(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Se(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(B(b)&&b.length){var O,v=se(e.location.originalHash||e.location.hash),m=Se(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var r,t="";try{"localStorage"in e&&(t=e.localStorage.getItem(Pt))}catch(e){$().warn(_t,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(r=t)||void 0===r?void 0:r.split(/\s*,\s*/g))||[],a=k(),i=Se(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}var Ae=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},Oe=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function gr(e,r){return vr(r,"3p-vendor-split")?"".concat(H.thirdParty,"/").concat("2107021719000","/vendor/").concat(e,".js"):"".concat(H.thirdParty,"/").concat("2107021719000","/f.js")}function yr(e,r){var t=r||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Ft(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(H.thirdPartyFrameHost,"/").concat("2107021719000","/")+"".concat(t,".html")}function Ft(e){return"d-"+hr(e)}function hr(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 xr(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+hr(e)}function Er(){var e=0;return function(){return String(++e)}}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function br(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 Nt(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?br(Object(t),!0).forEach((function(r){Dt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):br(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Dt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Mt(e,r){return Lt(e)||Ct(e,r)||wt(e,r)||Tt()}function Tt(){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 wt(e,r){if(e){if("string"==typeof e)return Sr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Sr(e,r)}}function Sr(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 Ct(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function Lt(e){if(Array.isArray(e))return e}function jt(e,r){if(null==e)return{};var t,n,o=Ut(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Ut(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}var _e={},Ar={EMBED_SIZE:"embed-size"},Pe="sync-xhr 'none'",kt=Ae().join(" ")+" "+Oe().join(" ");function Bt(e,r){var t=e.allow,n=void 0===t?Pe:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?kt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=jt(e,It);if(!ze(n,Pe))throw new Error("'allow' prop must contain \"".concat(Pe,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=pe((function(){return _e[y]||(_e[y]=Er()),_e[y]()}),[y]),h=Mt(J({name:c,src:p}),2),w=h[0],P=w.name,S=w.src,_=h[1];return U((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!=p?p:t?yr(t):"about:blank";if(c)_({name:c,src:n});else if(t){var i=Object.assign(T({location:{href:t.location.href},sentinel:xr(t)}),a),l=Object.assign(T({title:b,type:y,_context:i}),u);_({name:JSON.stringify(T({host:Ee(n).hostname,bootstrap:null!=o?o:gr(y,t),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),te((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[P]),Y(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}}}),[]),A(ge,Nt({allow:n,contentRef:v,messageHandler:l,name:P,ref:m,ready:!!P,sandbox:i?void 0:f,src:S,title:b},O))}var Re=M(Bt);Re.displayName="ProxyIframeEmbed";var Ht="amp-";function Or(e){if(!Vt(e))return null;var r=e.indexOf("{");return ce(-1!=r),Q(e.substr(r),(function(r){return $().error("MESSAGING","Failed to parse message: "+e,r)}))}function Vt(e){return"string"==typeof e&&0==e.indexOf(Ht)&&-1!=e.indexOf("{")}var Gt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(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 fe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?_r(Object(t),!0).forEach((function(r){Wt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_r(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Wt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Pr(e,r){return qt(e)||Xt(e,r)||zt(e,r)||$t()}function $t(){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 zt(e,r){if(e){if("string"==typeof e)return Rr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rr(e,r)}}function Rr(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 Xt(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function qt(e){if(Array.isArray(e))return e}function Jt(e,r){if(null==e)return{};var t,n,o=Kt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Kt(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}var Yt="facebook",Zt="100%",Qt=function(){return!0},en="Facebook comments";function rn(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?en:S,E=Jt(e,Gt),x=Pr(J(null),2),R=x[0],D=x[1],F=ne((function(e){var r,t=null!==(r=Q(e.data))&&void 0!==r?r:Or(e.data);if("ready"==t.action&&(null==y||y()),t.type==Ar.EMBED_SIZE){var n=t.height;O?(O(n),D(Zt)):D(n)}}),[O,y]),M=Pr(J(f),2),N=M[0],I=M[1];return U((function(){var e,t;if(f)I(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;!n||I($e(n.navigator.language))}}),[f,r]),A(Re,fe(fe({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:N,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:r,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:Qt,messageHandler:F,type:Yt,style:R?fe(fe({},j),{},{height:R}):j}))}var Fr=M(rn);Fr.displayName="Facebook";
var Dr=Object.create,re=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyNames,Mr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,we=function(e){return re(e,"__esModule",{value:!0})},Lr=function(e,t){for(var r in we(e),t)re(e,r,{get:t[r],enumerable:!0})},jr=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=wr(t),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&re(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=Tr(t,n))||r.enumerable});return e},te=function(e){return jr(we(re(null!=e?Dr(Mr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Rr}});var G=te(require("preact")),Me=te(require("preact")),d=te(require("preact/hooks"));function A(e,t,r){return G.createElement.apply(void 0,arguments)}function Ce(e){return G.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function ne(e,t){d.useEffect(e,t)}function U(e,t){d.useLayoutEffect(e,t)}function Le(e){return d.useContext(e)}function ve(e,t){return d.useMemo(e,t)}function oe(e,t){return d.useCallback(e,t)}function Y(e,t,r){return d.useImperativeHandle(e,t,r)}var de=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},ge=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function je(){var e=0;return function(){return String(++e)}}var Ue=Object.prototype,sn=Ue.hasOwnProperty,cn=Ue.toString;function k(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function w(e){return e||{}}function ke(e){return e.replace("-","_")}function Be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var K,ie=te(require("preact/compat"));function T(e){return ie.forwardRef(e)}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ur=[R.AUTO,R.LAZY,R.EAGER,R.UNLOAD],He=(ae(K={},R.AUTO,0),ae(K,R.LAZY,1),ae(K,R.EAGER,2),ae(K,R.UNLOAD,3),K);function Ve(e,t){var r=He[e]||0,n=He[t]||0,o=Math.max(r,n);return Ur[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},kr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ge(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 M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hr(e,t){if(null==e)return{};var r,n,o=Vr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Vr(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}var Gr=[null,"paint","layout","content","size","size paint","size layout","strict"],Wr={position:"relative",width:"100%",height:"100%"};function $r(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,w=(v?4:0)+(y?2:0)+(b?1:0);return A(n,M(M({},Hr(e,kr)),{},{ref:t,className:"".concat(a||""," ").concat(g||"").trim()||null,style:M(M(M({},m),h),{},{contain:Gr[w]})}),A(c,M(M({},u),{},{ref:s,className:l,style:M(M({},v&&Wr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ye=T($r),zr=["as","children","className","style","wrapperClassName","wrapperStyle"];function We(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 ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){if(null==e)return{};var r,n,o=Jr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Jr(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}function Kr(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ue(ue({},qr(e,zr)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ue(ue({},i),l)}),o)}var $e,Yr=T(Kr);function he(e){var t=j(null);return t.current=e,t}function Zr(){return $e||($e=Ce({renderable:!0,playable:!0,loading:R.AUTO}))}function xe(){return Le(Zr())}function ze(e){return Ve(e,xe().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Xe(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 se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){if(null==e)return{};var r,n,o=tt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tt(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}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=xe().playable,g=ze(y),h=g!==R.UNLOAD,w=j(!1),P=he(d),S=oe((function(e){if(e!==w.current){w.current=e;var t=P.current;null==t||t(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(t,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),ne((function(){var e=_.current;if(!m&&e){var t=e.src;if(it(t))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var t=function(e){var t=_.current;!t||e.source!=t.contentWindow||!u(e.origin)||s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[u,s,h,p]),A(ye,se(se({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:se(se({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var be=T(at);be.displayName="IframeEmbed";var ut=!1;function ce(){return ut}function Q(e){var t;if(!ce())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lt(e,t,r){return t&&Je(e.prototype,t),r&&Je(e,r),e}var Ke=function(){function e(t){ct(this,e),this.capacity_=t,this.size_=0,this.access_=0,this.cache_=k()}return lt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload}},{key:"put",value:function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()}},{key:"evict_",value: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}(),W=Array.isArray,ft=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return t}}function le(e){var t,r=k();if(!e)return r;for(;t=ft.exec(e);){var n=Ye(t[1],t[1]),o=t[2]?Ye(t[2].replace(/\+/g," "),t[2]):"";r[n]=o}return r}var O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ze=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Qe(e){if(!self.document||!self.document.head||self.location&&Ze.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var B={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Qe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ze,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Qe("amp-geo-api")},Ee={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Se=self.__AMP_LOG,sr=null;function $(){if(Se.dev)return Se.dev;if(!sr)throw new Error("failed to call initLogConstructor");return Se.dev=new sr(self,(function(e){return e>=3?Ee.FINE:e>=2?Ee.INFO:Ee.OFF}))}function fe(e,t,r,n,o,a,i,c,l,u,s){return e}var Ae,lr,ai=new Set(["c","v","a","ad"]);function Oe(e,t){return Ae||(Ae=self.document.createElement("a"),lr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Ke(100))),yt(Ae,e,t?null:lr)}function yt(e,t,r){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=Q()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function _e(e){return JSON.parse(e)}function ee(e,t){try{return _e(e)}catch(e){return null==t||t(e),null}}function Pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ot(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(c)throw a}}}}function Ot(e,t){if(e){if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(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 mr(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 vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(r),!0).forEach((function(t){_t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pt="EXPERIMENTS",Ft="amp-experiment-toggles",pe="__AMP__EXPERIMENT_TOGGLES";function dr(e,t){return!!gr(e)[t]}function gr(e){var t,r,n,o,a;if(e[pe])return e[pe];e[pe]=k();var i=e[pe],c=vr(vr({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:_e((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(W(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Pe(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(W(b)&&b.length){var O,v=le(e.location.originalHash||e.location.hash),m=Pe(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var t,r="";try{"localStorage"in e&&(r=e.localStorage.getItem(Ft))}catch(e){$().warn(Pt,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],a=k(),i=Pe(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}function yr(e,t){return dr(t,"3p-vendor-split")?"".concat(B.thirdParty,"/").concat("2107030008000","/vendor/").concat(e,".js"):"".concat(B.thirdParty,"/").concat("2107030008000","/f.js")}function hr(e,t){var r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Nt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(B.thirdPartyFrameHost,"/").concat("2107030008000","/")+"".concat(r,".html")}function Nt(e){return"d-"+xr(e)}function xr(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 br(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+xr(e)}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Er(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 Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){return jt(e)||Lt(e,t)||Ct(e,t)||Mt()}function Mt(){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 Ct(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}}function Sr(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 Lt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function jt(e){if(Array.isArray(e))return e}function Ut(e,t){if(null==e)return{};var r,n,o=kt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function kt(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}var Fe={},Ar={EMBED_SIZE:"embed-size"},Re="sync-xhr 'none'",Bt=de().join(" ")+" "+ge().join(" ");function Ht(e,t){var r=e.allow,n=void 0===r?Re:r,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Bt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ut(e,It);if(!Be(n,Re))throw new Error("'allow' prop must contain \"".concat(Re,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=ve((function(){return Fe[y]||(Fe[y]=je()),Fe[y]()}),[y]),h=wt(J({name:c,src:p}),2),P=h[0],S=P.name,_=P.src,E=h[1];return U((function(){var e,t,r=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=p?p:r?hr(r):"about:blank";if(c)E({name:c,src:n});else if(r){var i=Object.assign(w({location:{href:r.location.href},sentinel:br(r)}),a),l=Object.assign(w({title:b,type:y,_context:i}),u);E({name:JSON.stringify(w({host:Oe(n).hostname,bootstrap:null!=o?o:yr(y,r),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),ne((function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[S]),Y(t,(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}}}),[]),A(be,Dt({allow:n,contentRef:v,messageHandler:l,name:S,ref:m,ready:!!S,sandbox:i?void 0:f,src:_,title:b},O))}var Ne=T(Ht);Ne.displayName="ProxyIframeEmbed";var Vt="amp-";function Or(e){if(!Gt(e))return null;var t=e.indexOf("{");return fe(-1!=t),ee(e.substr(t),(function(t){return $().error("MESSAGING","Failed to parse message: "+e,t)}))}function Gt(e){return"string"==typeof e&&0==e.indexOf(Vt)&&-1!=e.indexOf("{")}var Wt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(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 me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e,t){return Jt(e)||qt(e,t)||Xt(e,t)||zt()}function zt(){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 Xt(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}}function Fr(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 qt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function Jt(e){if(Array.isArray(e))return e}function Kt(e,t){if(null==e)return{};var r,n,o=Yt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Yt(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}var Zt="facebook",Qt="100%",en=function(){return!0},rn="Facebook comments";function tn(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?rn:S,E=Kt(e,Wt),x=Pr(J(null),2),R=x[0],M=x[1],N=oe((function(e){var t,r=null!==(t=ee(e.data))&&void 0!==t?t:Or(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ar.EMBED_SIZE){var n=r.height;O?(O(n),M(Qt)):M(n)}}),[O,y]),D=Pr(J(f),2),F=D[0],I=D[1];return U((function(){var e,r;if(f)I(f);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||I(ke(n.navigator.language))}}),[f,t]),A(Ne,me(me({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:t,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:en,messageHandler:N,type:Zt,style:R?me(me({},j),{},{height:R}):j}))}var Rr=T(tn);Rr.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-preact.js.map

@@ -40,5 +40,5 @@ var __create = Object.create;

// src/preact/index.js
var hooks = __toModule(require("preact/hooks"));
var preact = __toModule(require("preact"));
var preactDOM = __toModule(require("preact"));
var hooks = __toModule(require("preact/hooks"));
function createElement2(unusedType, unusedProps, var_args) {

@@ -75,2 +75,57 @@ return preact.createElement.apply(void 0, arguments);

// src/core/3p-frame.js
var getRequiredSandboxFlags = function getRequiredSandboxFlags2() {
return [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
};
var getOptionalSandboxFlags = function getOptionalSandboxFlags2() {
return [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
};
// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
var counter = 0;
return function() {
return String(++counter);
};
}
// src/core/types/object/index.js
var _Object$prototype = Object.prototype;
var hasOwn_ = _Object$prototype.hasOwnProperty;
var toString_ = _Object$prototype.toString;
function map(opt_initial) {
var obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {
return opt_initial || {};
}
// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/preact/compat.js

@@ -82,2 +137,29 @@ var compat = __toModule(require("preact/compat"));

// src/core/constants/loading-instructions.js
var _MAP;
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = (_MAP = {}, _MAP[Loading.AUTO] = 0, _MAP[Loading.LAZY] = 1, _MAP[Loading.EAGER] = 2, _MAP[Loading.UNLOAD] = 3, _MAP);
function reducer(v1, v2) {
var ordinal1 = MAP[v1] || 0;
var ordinal2 = MAP[v2] || 0;
var ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/component/contain.js

@@ -194,29 +276,2 @@ var _excluded = ["as", "children", "className", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle"];

// src/core/constants/loading-instructions.js
var _MAP;
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = (_MAP = {}, _MAP[Loading.AUTO] = 0, _MAP[Loading.LAZY] = 1, _MAP[Loading.EAGER] = 2, _MAP[Loading.UNLOAD] = 3, _MAP);
function reducer(v1, v2) {
var ordinal1 = MAP[v1] || 0;
var ordinal2 = MAP[v2] || 0;
var ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/context.js

@@ -367,17 +422,30 @@ var context;

// src/core/types/object/index.js
var _Object$prototype = Object.prototype;
var hasOwn_ = _Object$prototype.hasOwnProperty;
var toString_ = _Object$prototype.toString;
function map(opt_initial) {
var obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
// src/core/mode/for-testing.js
var IS_FORTESTING = true;
function isFortesting() {
return IS_FORTESTING;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (!isFortesting()) {
return false;
}
return obj;
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
function dict(opt_initial) {
return opt_initial || {};
// src/core/mode/local-dev.js
function isLocalDev(opt_win) {
var _self$AMP_CONFIG;
return isFortesting() && (!!((_self$AMP_CONFIG = self.AMP_CONFIG) != null && _self$AMP_CONFIG.localDev) || isTest(opt_win));
}
// src/core/mode/minified.js
var IS_MINIFIED = false;
function isMinified() {
return IS_MINIFIED;
}
// src/core/data-structures/lru-cache.js

@@ -447,7 +515,7 @@ function _classCallCheck(instance, Constructor) {

}
var cache2 = this.cache_;
var cache = this.cache_;
var oldest = this.access_ + 1;
var oldestKey;
for (var key in cache2) {
var access = cache2[key].access;
for (var key in cache) {
var access = cache[key].access;
if (access < oldest) {

@@ -459,3 +527,3 @@ oldest = access;

if (oldestKey !== void 0) {
delete cache2[oldestKey];
delete cache[oldestKey];
this.size_--;

@@ -468,49 +536,5 @@ }

// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/core/types/array.js
var isArray = Array.isArray;
// src/core/mode/for-testing.js
var IS_FORTESTING = true;
function isFortesting() {
return IS_FORTESTING;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (!isFortesting()) {
return false;
}
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/local-dev.js
function isLocalDev(opt_win) {
var _self$AMP_CONFIG;
return isFortesting() && (!!((_self$AMP_CONFIG = self.AMP_CONFIG) != null && _self$AMP_CONFIG.localDev) || isTest(opt_win));
}
// src/core/mode/minified.js
var IS_MINIFIED = false;
function isMinified() {
return IS_MINIFIED;
}
// src/internal-version.js
function internalRuntimeVersion() {
return "2107021719000";
}
// src/core/types/string/url.js

@@ -542,2 +566,35 @@ var QUERY_STRING_REGEX = /(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;

// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/internal-version.js
function internalRuntimeVersion() {
return "2107030008000";
}
// src/mode.js

@@ -578,33 +635,2 @@ var rtvVersion = "";

// src/core/types/array.js
var isArray = Array.isArray;
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -653,21 +679,21 @@ var LogLevel = {

// src/url.js
var SERVING_TYPE_PREFIX = dict({
"c": true,
"v": true,
"a": true,
"ad": true
});
var a;
var cache;
var SERVING_TYPE_PREFIX = new Set([
"c",
"v",
"a",
"ad"
]);
var cachedAnchorEl;
var urlCache;
function parseUrlDeprecated(url, opt_nocache) {
if (!a) {
a = self.document.createElement("a");
cache = false ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
if (!cachedAnchorEl) {
cachedAnchorEl = self.document.createElement("a");
urlCache = false ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(a, url, opt_nocache ? null : cache);
return parseUrlWithA(cachedAnchorEl, url, opt_nocache ? null : urlCache);
}
function parseUrlWithA(a2, url, opt_cache) {
function parseUrlWithA(anchorEl, url, opt_cache) {
if (false) {
a2.href = "";
return new URL(url, a2.href);
anchorEl.href = "";
return new URL(url, anchorEl.href);
}

@@ -677,15 +703,15 @@ if (opt_cache && opt_cache.has(url)) {

}
a2.href = url;
if (!a2.protocol) {
a2.href = a2.href;
anchorEl.href = url;
if (!anchorEl.protocol) {
anchorEl.href = anchorEl.href;
}
var info = {
href: a2.href,
protocol: a2.protocol,
host: a2.host,
hostname: a2.hostname,
port: a2.port == "0" ? "" : a2.port,
pathname: a2.pathname,
search: a2.search,
hash: a2.hash,
href: anchorEl.href,
protocol: anchorEl.protocol,
host: anchorEl.host,
hostname: anchorEl.hostname,
port: anchorEl.port == "0" ? "" : anchorEl.port,
pathname: anchorEl.pathname,
search: anchorEl.search,
hash: anchorEl.hash,
origin: null

@@ -701,4 +727,4 @@ };

var origin;
if (a2.origin && a2.origin != "null") {
origin = a2.origin;
if (anchorEl.origin && anchorEl.origin != "null") {
origin = anchorEl.origin;
} else if (info.protocol == "data:" || !info.host) {

@@ -710,3 +736,3 @@ origin = info.href;

info.origin = origin;
var frozen = getMode().test && Object.freeze ? Object.freeze(info) : info;
var frozen = isTest() && Object.freeze ? Object.freeze(info) : info;
if (opt_cache) {

@@ -861,20 +887,2 @@ opt_cache.put(url, frozen);

// src/core/3p-frame.js
var getRequiredSandboxFlags = function getRequiredSandboxFlags2() {
return [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
};
var getOptionalSandboxFlags = function getOptionalSandboxFlags2() {
return [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
};
// src/3p-frame.js

@@ -932,10 +940,2 @@ var overrideBootstrapBaseUrl;

// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
var counter = 0;
return function() {
return String(++counter);
};
}
// src/preact/component/3p-frame.js

@@ -942,0 +942,0 @@ var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];

// src/preact/index.js
import {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useLayoutEffect,
useMemo,
useRef,
useState
} from "preact/hooks";
import {
Fragment,

@@ -23,2 +13,12 @@ cloneElement,

} from "preact";
import {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useLayoutEffect,
useMemo,
useRef,
useState
} from "preact/hooks";
function createElement2(unusedType, unusedProps, var_args) {

@@ -55,2 +55,52 @@ return createElement.apply(void 0, arguments);

// src/core/3p-frame.js
var getRequiredSandboxFlags = () => [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
var getOptionalSandboxFlags = () => [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
let counter = 0;
return () => String(++counter);
}
// src/core/types/object/index.js
var {
hasOwnProperty: hasOwn_,
toString: toString_
} = Object.prototype;
function map(opt_initial) {
const obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {
return opt_initial || {};
}
// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/preact/compat.js

@@ -66,2 +116,33 @@ import {

// src/core/constants/loading-instructions.js
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = {
[Loading.AUTO]: 0,
[Loading.LAZY]: 1,
[Loading.EAGER]: 2,
[Loading.UNLOAD]: 3
};
function reducer(v1, v2) {
const ordinal1 = MAP[v1] || 0;
const ordinal2 = MAP[v2] || 0;
const ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/component/contain.js

@@ -200,33 +281,2 @@ var _excluded = ["as", "children", "className", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle"];

// src/core/constants/loading-instructions.js
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = {
[Loading.AUTO]: 0,
[Loading.LAZY]: 1,
[Loading.EAGER]: 2,
[Loading.UNLOAD]: 3
};
function reducer(v1, v2) {
const ordinal1 = MAP[v1] || 0;
const ordinal2 = MAP[v2] || 0;
const ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/context.js

@@ -389,32 +439,2 @@ var context;

// src/core/types/object/index.js
var {
hasOwnProperty: hasOwn_,
toString: toString_
} = Object.prototype;
function map(opt_initial) {
const obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {
return opt_initial || {};
}
// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/core/mode/for-testing.js

@@ -448,6 +468,6 @@ var IS_FORTESTING = true;

// src/internal-version.js
function internalRuntimeVersion() {
return "2107021719000";
}
// src/core/types/array.js
var {
isArray
} = Array;

@@ -477,2 +497,35 @@ // src/core/types/string/url.js

// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/internal-version.js
function internalRuntimeVersion() {
return "2107030008000";
}
// src/mode.js

@@ -513,35 +566,2 @@ var rtvVersion = "";

// src/core/types/array.js
var {
isArray
} = Array;
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -590,21 +610,21 @@ var LogLevel = {

// src/url.js
var SERVING_TYPE_PREFIX = dict({
"c": true,
"v": true,
"a": true,
"ad": true
});
var a;
var cache;
var SERVING_TYPE_PREFIX = new Set([
"c",
"v",
"a",
"ad"
]);
var cachedAnchorEl;
var urlCache;
function parseUrlDeprecated(url, opt_nocache) {
if (!a) {
a = self.document.createElement("a");
cache = true ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
if (!cachedAnchorEl) {
cachedAnchorEl = self.document.createElement("a");
urlCache = true ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(a, url, true ? null : cache);
return parseUrlWithA(cachedAnchorEl, url, true ? null : urlCache);
}
function parseUrlWithA(a2, url, opt_cache) {
function parseUrlWithA(anchorEl, url, opt_cache) {
if (true) {
a2.href = "";
return new URL(url, a2.href);
anchorEl.href = "";
return new URL(url, anchorEl.href);
}

@@ -614,15 +634,15 @@ if (opt_cache && opt_cache.has(url)) {

}
a2.href = url;
if (!a2.protocol) {
a2.href = a2.href;
anchorEl.href = url;
if (!anchorEl.protocol) {
anchorEl.href = anchorEl.href;
}
const info = {
href: a2.href,
protocol: a2.protocol,
host: a2.host,
hostname: a2.hostname,
port: a2.port == "0" ? "" : a2.port,
pathname: a2.pathname,
search: a2.search,
hash: a2.hash,
href: anchorEl.href,
protocol: anchorEl.protocol,
host: anchorEl.host,
hostname: anchorEl.hostname,
port: anchorEl.port == "0" ? "" : anchorEl.port,
pathname: anchorEl.pathname,
search: anchorEl.search,
hash: anchorEl.hash,
origin: null

@@ -638,4 +658,4 @@ };

let origin;
if (a2.origin && a2.origin != "null") {
origin = a2.origin;
if (anchorEl.origin && anchorEl.origin != "null") {
origin = anchorEl.origin;
} else if (info.protocol == "data:" || !info.host) {

@@ -647,3 +667,3 @@ origin = info.href;

info.origin = origin;
const frozen = getMode().test && Object.freeze ? Object.freeze(info) : info;
const frozen = isTest() && Object.freeze ? Object.freeze(info) : info;
if (opt_cache) {

@@ -758,16 +778,2 @@ opt_cache.put(url, frozen);

// src/core/3p-frame.js
var getRequiredSandboxFlags = () => [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
var getOptionalSandboxFlags = () => [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
// src/3p-frame.js

@@ -825,8 +831,2 @@ var overrideBootstrapBaseUrl;

// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
let counter = 0;
return () => String(++counter);
}
// src/preact/component/3p-frame.js

@@ -833,0 +833,0 @@ var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];

@@ -1,3 +0,3 @@

import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"preact/hooks";import{Fragment as Tr,cloneElement as Ir,createContext as at,createElement as ct,createRef as Dr}from"preact";import{hydrate as Fr,render as Mr}from"preact";function E(e,t,r){return ct.apply(void 0,arguments)}function Ee(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function ye(e){return mt(e)}function te(e,t){return dt(e,t)}function z(e,t){return gt(e,t)}function H(e,t,r){return ht(e,t,r)}import{Children as jr,createPortal as Lr,forwardRef as xt}from"preact/compat";function A(e){return xt(e)}var Et=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ve(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 N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vt(e,t){if(null==e)return{};var r,n,o=_t(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function _t(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}var bt=[null,"paint","layout","content","size","size paint","size layout","strict"],Ot={position:"relative",width:"100%",height:"100%"};function St(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:y,wrapperClassName:d,wrapperStyle:b}=e,O=(p?4:0)+(s?2:0)+(f?1:0);return E(r,N(N({},vt(e,Et)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:N(N(N({},y),b),{},{contain:bt[O]})}),E(a,N(N({},i),{},{ref:c,className:l,style:N(N({},p&&Ot),{},{overflow:f?"hidden":"visible"},u)}),n))}var re=A(St),At=["as","children","className","style","wrapperClassName","wrapperStyle"];function _e(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 q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){Pt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=Nt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Nt(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}function It(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,q(q({},Rt(e,At)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:q(q({},a),i)}),n)}var Mt=A(It);function ne(e){let t=F(null);return t.current=e,t}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ft=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],be={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Oe(e,t){let r=be[e]||0,n=be[t]||0,o=Math.max(r,n);return Ft[o]}var Se,k={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};function Tt(){return Se||(Se=Ee({renderable:!0,playable:!0,loading:_.AUTO}))}function oe(){return ye(Tt())}function Ae(e){let{loading:t}=oe();return Oe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Pe(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){Ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(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}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,b=wt(e,Dt),{playable:O}=oe(),m=Ae(f),g=m!==_.UNLOAD,v=F(!1),h=ne(p),P=z((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?k.COMPLETE:k.LOADING)}}),[h]),j=F(null);return H(t,(()=>({get readyState(){return v.current?k.COMPLETE:k.LOADING},get node(){return j.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=j.current;if(!O&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[O]),T((()=>{let e=j.current;if(!e||!g)return;let t=e=>{let t=j.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(re,J(J({},b),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:j,sandbox:y,scrolling:"no",src:d,style:J(J({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ie=A(Bt);ie.displayName="IframeEmbed";var{hasOwnProperty:yn,toString:vn}=Object.prototype;function j(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function P(e){return e||{}}function Re(e){return e.replace("-","_")}function Ne(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var Gt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Te(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function K(e){let t,r=j();if(!e)return r;for(;t=Gt.exec(e);){let e=Te(t[1],t[1]),n=t[2]?Te(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var{isArray:D}=Array,y=self.AMP_CONFIG||{},kt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,De=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&De.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var C={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:kt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:De,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},se={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var ce=self.__AMP_LOG,He=null;function Y(){if(ce.dev)return ce.dev;if(!He)throw new Error("failed to call initLogConstructor");return ce.dev=new He(self,(e=>e>=3?se.FINE:e>=2?se.INFO:se.OFF))}function Z(e,t,r,n,o,a,l,i,c,u,s){return e}var ae,qt,jo=P({c:!0,v:!0,a:!0,ad:!0});function ue(e,t){return ae||(ae=self.document.createElement("a"),qt=null),Jt(ae,e,null)}function Jt(e,t,r){return e.href="",new URL(t,e.href)}function le(e){return JSON.parse(e)}function W(e,t){try{return le(e)}catch(e){return null==t||t(e),null}}function Xe(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 ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){rr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nr="amp-experiment-toggles",Q="__AMP__EXPERIMENT_TOGGLES";function qe(e,t){return!!Je(e)[t]}function Je(e){var t,r,n,o,a;if(e[Q])return e[Q];e[Q]=j();let l=e[Q],i=ze(ze({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:le((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(D(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,or(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(D(u)&&u.length){let t=K(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function or(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(nr))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=j();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}var fe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],pe=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function Ke(e,t){return qe(t,"3p-vendor-split")?`${C.thirdParty}/2107021719000/vendor/${e}.mjs`:`${C.thirdParty}/2107021719000/f.js`}function Ye(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||ir(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${C.thirdPartyFrameHost}/2107021719000/${r}.html`}function ir(e){return"d-"+Ze(e)}function Ze(e){let t;if(e.crypto&&e.crypto.getRandomValues){let 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 Qe(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Ze(e)}function et(){let e=0;return()=>String(++e)}var sr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(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 cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ar(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ar(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ur(e,t){if(null==e)return{};var r,n,o=lr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function lr(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}var me={},rt={EMBED_SIZE:"embed-size"},de="sync-xhr 'none'",fr=fe().join(" ")+" "+pe().join(" ");function pr(e,t){let{allow:r=de,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=fr,src:s,type:f,title:p=f}=e,y=ur(e,sr);if(!Ne(r,de))throw new Error(`'allow' prop must contain "${de}". Found "${r}".`);let d=F(null),b=F(null),O=te((()=>(me[f]||(me[f]=et()),me[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=d.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ye(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(P({location:{href:r.location.href},sentinel:Qe(r)}),o),u=Object.assign(P({title:p,type:f,_context:i}),c);v({name:JSON.stringify(P({host:ue(a).hostname,bootstrap:null!=n?n:Ke(f,r),type:f,count:O,attributes:u})),src:a})}),[n,o,O,l,c,s,p,f]),X((()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),H(t,(()=>({get readyState(){var e;return null===(e=b.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=b.current)||void 0===e?void 0:e.node}})),[]),E(ie,cr({allow:r,contentRef:d,messageHandler:i,name:m,ref:b,ready:!!m,sandbox:a?void 0:u,src:g,title:p},y))}var ge=A(pr);ge.displayName="ProxyIframeEmbed";var mr="amp-";function nt(e){if(!dr(e))return null;let t=e.indexOf("{");return Z(-1!=t),W(e.substr(t),(t=>Y().error("MESSAGING","Failed to parse message: "+e,t)))}function dr(e){return"string"==typeof e&&0==e.indexOf(mr)&&-1!=e.indexOf("{")}var gr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xr(e,t){if(null==e)return{};var r,n,o=Er(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Er(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}var yr="facebook",vr="100%",_r=()=>!0,br="Facebook comments";function Or(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:y,orderBy:d,refLabel:b,requestResize:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:j,tabs:w,title:S=br}=e,A=xr(e,gr),{0:x,1:_}=V(null),N=z((e=>{var t;let r=null!==(t=W(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==y||y()),r.type==rt.EMBED_SIZE){let e=r.height;O?(O(e),_(vr)):_(e)}}),[O,y]),{0:D,1:R}=V(f);return T((()=>{var e,r;if(f)return void R(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||R(Re(n.navigator.language))}),[f,t]),E(ge,ee(ee({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:d,ref:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:w},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:_r,messageHandler:N,type:yr,style:x?ee(ee({},j),{},{height:x}):j}))}var Sr=A(Or);Sr.displayName="Facebook";export{Sr as Facebook};
import{Fragment as Dr,cloneElement as Mr,createContext as at,createElement as ct,createRef as wr}from"preact";import{hydrate as Tr,render as Fr}from"preact";import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"preact/hooks";function E(e,t,r){return ct.apply(void 0,arguments)}function ve(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function _e(e){return mt(e)}function ne(e,t){return dt(e,t)}function q(e,t){return gt(e,t)}function k(e,t,r){return ht(e,t,r)}var oe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ie=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function be(){let e=0;return()=>String(++e)}var{hasOwnProperty:jr,toString:$r}=Object.prototype;function L(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function N(e){return e||{}}function Oe(e){return e.replace("-","_")}function Se(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as Gr,createPortal as kr,forwardRef as xt}from"preact/compat";function A(e){return xt(e)}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Et=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],Ae={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Pe(e,t){let r=Ae[e]||0,n=Ae[t]||0,o=Math.max(r,n);return Et[o]}var G={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},yt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ne(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(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(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){if(null==e)return{};var r,n,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function bt(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}var Ot=[null,"paint","layout","content","size","size paint","size layout","strict"],St={position:"relative",width:"100%",height:"100%"};function At(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:d,wrapperClassName:y,wrapperStyle:O}=e,b=(p?4:0)+(s?2:0)+(f?1:0);return E(r,R(R({},_t(e,yt)),{},{ref:t,className:`${o||""} ${y||""}`.trim()||null,style:R(R(R({},d),O),{},{contain:Ot[b]})}),E(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&St),{},{overflow:f?"hidden":"visible"},u)}),n))}var se=A(At),Pt=["as","children","className","style","wrapperClassName","wrapperStyle"];function Re(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=It(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function It(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}function Mt(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,J(J({},Rt(e,Pt)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:J(J({},a),i)}),n)}var Ie,Ft=A(Mt);function ce(e){let t=F(null);return t.current=e,t}function Tt(){return Ie||(Ie=ve({renderable:!0,playable:!0,loading:_.AUTO}))}function ae(){return _e(Tt())}function Me(e){let{loading:t}=ae();return Pe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Fe(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 K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(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}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:d,src:y}=e,O=Ct(e,Dt),{playable:b}=ae(),m=Me(f),g=m!==_.UNLOAD,v=F(!1),h=ce(p),P=q((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?G.COMPLETE:G.LOADING)}}),[h]),w=F(null);return k(t,(()=>({get readyState(){return v.current?G.COMPLETE:G.LOADING},get node(){return w.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=w.current;if(!b&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[b]),T((()=>{let e=w.current;if(!e||!g)return;let t=e=>{let t=w.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(se,K(K({},O),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:w,sandbox:d,scrolling:"no",src:y,style:K(K({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ue=A(Bt);ue.displayName="IframeEmbed";var Vt=!1;function Y(){return Vt}function W(e){var t;if(!Y())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}var{isArray:j}=Array,kt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function De(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function Z(e){let t,r=L();if(!e)return r;for(;t=kt.exec(e);){let e=De(t[1],t[1]),n=t[2]?De(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var y=self.AMP_CONFIG||{},Gt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,we=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&we.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var D={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Gt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:we,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},le={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var fe=self.__AMP_LOG,Ge=null;function Q(){if(fe.dev)return fe.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return fe.dev=new Ge(self,(e=>e>=3?le.FINE:e>=2?le.INFO:le.OFF))}function ee(e,t,r,n,o,a,l,i,c,u,s){return e}var pe,Jt,Bo=new Set(["c","v","a","ad"]);function me(e,t){return pe||(pe=self.document.createElement("a"),Jt=null),Kt(pe,e,null)}function Kt(e,t,r){return e.href="",new URL(t,e.href)}function de(e){return JSON.parse(e)}function z(e,t){try{return de(e)}catch(e){return null==t||t(e),null}}function Xe(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 qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var or="amp-experiment-toggles",te="__AMP__EXPERIMENT_TOGGLES";function Je(e,t){return!!Ke(e)[t]}function Ke(e){var t,r,n,o,a;if(e[te])return e[te];e[te]=L();let l=e[te],i=qe(qe({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:de((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(j(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,ir(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(j(u)&&u.length){let t=Z(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function ir(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(or))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=L();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}function Ye(e,t){return Je(t,"3p-vendor-split")?`${D.thirdParty}/2107030008000/vendor/${e}.mjs`:`${D.thirdParty}/2107030008000/f.js`}function Ze(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||sr(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${D.thirdPartyFrameHost}/2107030008000/${r}.html`}function sr(e){return"d-"+Qe(e)}function Qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let 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 et(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Qe(e)}var cr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(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 ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lr(e,t){if(null==e)return{};var r,n,o=fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function fr(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}var ge={},rt={EMBED_SIZE:"embed-size"},he="sync-xhr 'none'",pr=oe().join(" ")+" "+ie().join(" ");function mr(e,t){let{allow:r=he,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=pr,src:s,type:f,title:p=f}=e,d=lr(e,cr);if(!Se(r,he))throw new Error(`'allow' prop must contain "${he}". Found "${r}".`);let y=F(null),O=F(null),b=ne((()=>(ge[f]||(ge[f]=be()),ge[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=y.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ze(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:et(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);v({name:JSON.stringify(N({host:me(a).hostname,bootstrap:null!=n?n:Ye(f,r),type:f,count:b,attributes:u})),src:a})}),[n,o,b,l,c,s,p,f]),X((()=>{var e;let t=null===(e=O.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),k(t,(()=>({get readyState(){var e;return null===(e=O.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=O.current)||void 0===e?void 0:e.node}})),[]),E(ue,ar({allow:r,contentRef:y,messageHandler:i,name:m,ref:O,ready:!!m,sandbox:a?void 0:u,src:g,title:p},d))}var xe=A(mr);xe.displayName="ProxyIframeEmbed";var dr="amp-";function nt(e){if(!gr(e))return null;let t=e.indexOf("{");return ee(-1!=t),z(e.substr(t),(t=>Q().error("MESSAGING","Failed to parse message: "+e,t)))}function gr(e){return"string"==typeof e&&0==e.indexOf(dr)&&-1!=e.indexOf("{")}var hr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(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 re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){if(null==e)return{};var r,n,o=yr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function yr(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}var vr="facebook",_r="100%",br=()=>!0,Or="Facebook comments";function Sr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:d,orderBy:y,refLabel:O,requestResize:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:w,tabs:j,title:S=Or}=e,A=Er(e,hr),{0:_,1:x}=V(null),R=q((e=>{var t;let r=null!==(t=z(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==d||d()),r.type==rt.EMBED_SIZE){let e=r.height;b?(b(e),x(_r)):x(e)}}),[b,d]),{0:D,1:N}=V(f);return T((()=>{var e,r;if(f)return void N(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||N(Oe(n.navigator.language))}),[f,t]),E(xe,re(re({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:y,ref:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:j},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:br,messageHandler:R,type:vr,style:_?re(re({},w),{},{height:_}):w}))}var Ar=A(Sr);Ar.displayName="Facebook";export{Ar as Facebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-preact.module.js.map

@@ -1,3 +0,3 @@

var Dr=Object.create,ee=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Tr=Object.getOwnPropertyNames,wr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,De=function(e){return ee(e,"__esModule",{value:!0})},Lr=function(e,r){for(var t in De(e),r)ee(e,t,{get:r[t],enumerable:!0})},jr=function(e,r,t){if(r&&"object"==typeof r||"function"==typeof r)for(var n,o=Tr(r),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&ee(e,n,{get:function(e){return r[e]}.bind(null,n),enumerable:!(t=Mr(r,n))||t.enumerable});return e},re=function(e){return jr(De(ee(null!=e?Dr(wr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Fr}});var d=re(require("react")),W=re(require("react")),Me=re(require("react-dom"));function A(e,r,t){return W.createElement.apply(void 0,arguments)}function Te(e){return W.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function te(e,r){d.useEffect(e,r)}function U(e,r){d.useLayoutEffect(e,r)}function we(e){return d.useContext(e)}function pe(e,r){return d.useMemo(e,r)}function ne(e,r){return d.useCallback(e,r)}function Y(e,r,t){return d.useImperativeHandle(e,r,t)}var oe=re(require("react"));function M(e){return oe.forwardRef(e)}var Ur=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ce(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 w(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Ce(Object(t),!0).forEach((function(r){kr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function kr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Br(e,r){if(null==e)return{};var t,n,o=Hr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Hr(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}var Vr=[null,"paint","layout","content","size","size paint","size layout","strict"],Gr={position:"relative",width:"100%",height:"100%"};function Wr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,j=(v?4:0)+(y?2:0)+(b?1:0);return A(n,w(w({},Br(e,Ur)),{},{ref:r,className:"".concat(a||""," ").concat(g||"").trim()||null,style:w(w(w({},m),h),{},{contain:Vr[j]})}),A(c,w(w({},u),{},{ref:s,className:l,style:w(w({},v&&Gr),{},{overflow:b?"hidden":"visible"},f)}),o))}var me=M(Wr),$r=["as","children","className","style","wrapperClassName","wrapperStyle"];function Le(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 ie(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Le(Object(t),!0).forEach((function(r){zr(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function zr(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Xr(e,r){if(null==e)return{};var t,n,o=qr(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function qr(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}function Jr(e,r){var t=e.as,n=void 0===t?"div":t,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ie(ie({},Xr(e,$r)),{},{ref:r,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ie(ie({},i),l)}),o)}var K,Kr=M(Jr);function ve(e){var r=j(null);return r.current=e,r}function ae(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var F={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Yr=[F.AUTO,F.LAZY,F.EAGER,F.UNLOAD],je=(ae(K={},F.AUTO,0),ae(K,F.LAZY,1),ae(K,F.EAGER,2),ae(K,F.UNLOAD,3),K);function Ue(e,r){var t=je[e]||0,n=je[r]||0,o=Math.max(t,n);return Yr[o]}var ke,Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};function Zr(){return ke||(ke=Te({renderable:!0,playable:!0,loading:F.AUTO}))}function de(){return we(Zr())}function Be(e){return Ue(e,de().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function He(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 ue(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?He(Object(t),!0).forEach((function(r){et(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function et(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function rt(e,r){if(null==e)return{};var t,n,o=tt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function tt(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}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,r){var t=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=de().playable,g=Be(y),h=g!==F.UNLOAD,w=j(!1),P=ve(d),S=ne((function(e){if(e!==w.current){w.current=e;var r=P.current;null==r||r(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(r,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),te((function(){var e=_.current;if(!m&&e){var r=e.src;if(it(r))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var r=function(e){var r=_.current;!r||e.source!=r.contentWindow||!u(e.origin)||s(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[u,s,h,p]),A(me,ue(ue({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:t,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:ue(ue({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var ge=M(at);ge.displayName="IframeEmbed";var Ve=Object.prototype,Bn=Ve.hasOwnProperty,Hn=Ve.toString;function k(e){var r=Object.create(null);return e&&Object.assign(r,e),r}function T(e){return e||{}}function ut(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ge(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function st(e,r,t){return r&&Ge(e.prototype,r),t&&Ge(e,t),e}var We=function(){function e(r){ut(this,e),this.capacity_=r,this.size_=0,this.access_=0,this.cache_=k()}return st(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var r=this.cache_[e];if(r)return r.access=++this.access_,r.payload}},{key:"put",value:function(e,r){this.has(e)||this.size_++,this.cache_[e]={payload:r,access:this.access_},this.evict_()}},{key:"evict_",value:function(){if(!(this.size_<=this.capacity_)){var e,r=this.cache_,t=this.access_+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.size_--)}}}]),e}();function $e(e){return e.replace("-","_")}function ze(e,r,t){return"number"!=typeof t&&(t=0),!(t+r.length>e.length)&&-1!==e.indexOf(r,t)}var lt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ke(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return r}}function se(e){var r,t=k();if(!e)return t;for(;r=lt.exec(e);){var n=Ke(r[1],r[1]),o=r[2]?Ke(r[2].replace(/\+/g," "),r[2]):"";t[n]=o}return t}var B=Array.isArray,O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ye=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ze(e){if(!self.document||!self.document.head||self.location&&Ye.test(self.location.origin))return null;var r=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return r&&r.getAttribute("content")||null}var H={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Ze("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ye,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Ze("amp-geo-api")},ye={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var he=self.__AMP_LOG,ur=null;function $(){if(he.dev)return he.dev;if(!ur)throw new Error("failed to call initLogConstructor");return he.dev=new ur(self,(function(e){return e>=3?ye.FINE:e>=2?ye.INFO:ye.OFF}))}function ce(e,r,t,n,o,a,i,c,l,u,s){return e}var xe,cr,ni=T({c:!0,v:!0,a:!0,ad:!0});function Ee(e,r){return xe||(xe=self.document.createElement("a"),cr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new We(100))),gt(xe,e,r?null:cr)}function gt(e,r,t){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=o;return t&&t.put(r,a),a}function be(e){return JSON.parse(e)}function Q(e,r){try{return be(e)}catch(e){return null==r||r(e),null}}function Se(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=At(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=t.return&&t.return()}finally{if(c)throw a}}}}function At(e,r){if(e){if("string"==typeof e)return fr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return fr(e,r)}}function fr(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 pr(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 mr(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?pr(Object(t),!0).forEach((function(r){Ot(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pr(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Ot(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var _t="EXPERIMENTS",Pt="amp-experiment-toggles",le="__AMP__EXPERIMENT_TOGGLES";function vr(e,r){return!!dr(e)[r]}function dr(e){var r,t,n,o,a;if(e[le])return e[le];e[le]=k();var i=e[le],c=mr(mr({},null!==(r=e.AMP_CONFIG)&&void 0!==r?r:{}),null!==(t=e.AMP_EXP)&&void 0!==t?t:be((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(B(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Se(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(B(b)&&b.length){var O,v=se(e.location.originalHash||e.location.hash),m=Se(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var r,t="";try{"localStorage"in e&&(t=e.localStorage.getItem(Pt))}catch(e){$().warn(_t,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(r=t)||void 0===r?void 0:r.split(/\s*,\s*/g))||[],a=k(),i=Se(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}var Ae=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},Oe=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function gr(e,r){return vr(r,"3p-vendor-split")?"".concat(H.thirdParty,"/").concat("2107021719000","/vendor/").concat(e,".js"):"".concat(H.thirdParty,"/").concat("2107021719000","/f.js")}function yr(e,r){var t=r||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Ft(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(H.thirdPartyFrameHost,"/").concat("2107021719000","/")+"".concat(t,".html")}function Ft(e){return"d-"+hr(e)}function hr(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 xr(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+hr(e)}function Er(){var e=0;return function(){return String(++e)}}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function br(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 Nt(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?br(Object(t),!0).forEach((function(r){Dt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):br(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Dt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Mt(e,r){return Lt(e)||Ct(e,r)||wt(e,r)||Tt()}function Tt(){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 wt(e,r){if(e){if("string"==typeof e)return Sr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Sr(e,r)}}function Sr(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 Ct(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function Lt(e){if(Array.isArray(e))return e}function jt(e,r){if(null==e)return{};var t,n,o=Ut(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Ut(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}var _e={},Ar={EMBED_SIZE:"embed-size"},Pe="sync-xhr 'none'",kt=Ae().join(" ")+" "+Oe().join(" ");function Bt(e,r){var t=e.allow,n=void 0===t?Pe:t,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?kt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=jt(e,It);if(!ze(n,Pe))throw new Error("'allow' prop must contain \"".concat(Pe,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=pe((function(){return _e[y]||(_e[y]=Er()),_e[y]()}),[y]),h=Mt(J({name:c,src:p}),2),w=h[0],P=w.name,S=w.src,_=h[1];return U((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!=p?p:t?yr(t):"about:blank";if(c)_({name:c,src:n});else if(t){var i=Object.assign(T({location:{href:t.location.href},sentinel:xr(t)}),a),l=Object.assign(T({title:b,type:y,_context:i}),u);_({name:JSON.stringify(T({host:Ee(n).hostname,bootstrap:null!=o?o:gr(y,t),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),te((function(){var e,r=null===(e=m.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[P]),Y(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}}}),[]),A(ge,Nt({allow:n,contentRef:v,messageHandler:l,name:P,ref:m,ready:!!P,sandbox:i?void 0:f,src:S,title:b},O))}var Re=M(Bt);Re.displayName="ProxyIframeEmbed";var Ht="amp-";function Or(e){if(!Vt(e))return null;var r=e.indexOf("{");return ce(-1!=r),Q(e.substr(r),(function(r){return $().error("MESSAGING","Failed to parse message: "+e,r)}))}function Vt(e){return"string"==typeof e&&0==e.indexOf(Ht)&&-1!=e.indexOf("{")}var Gt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(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 fe(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?_r(Object(t),!0).forEach((function(r){Wt(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_r(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function Wt(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Pr(e,r){return qt(e)||Xt(e,r)||zt(e,r)||$t()}function $t(){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 zt(e,r){if(e){if("string"==typeof e)return Rr(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rr(e,r)}}function Rr(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 Xt(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=t.return&&t.return()}finally{if(c)throw o}}return a}}function qt(e){if(Array.isArray(e))return e}function Jt(e,r){if(null==e)return{};var t,n,o=Kt(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(o[t]=e[t]))}return o}function Kt(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}var Yt="facebook",Zt="100%",Qt=function(){return!0},en="Facebook comments";function rn(e,r){var t=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?en:S,E=Jt(e,Gt),x=Pr(J(null),2),R=x[0],D=x[1],F=ne((function(e){var r,t=null!==(r=Q(e.data))&&void 0!==r?r:Or(e.data);if("ready"==t.action&&(null==y||y()),t.type==Ar.EMBED_SIZE){var n=t.height;O?(O(n),D(Zt)):D(n)}}),[O,y]),M=Pr(J(f),2),N=M[0],I=M[1];return U((function(){var e,t;if(f)I(f);else{var n=null==r||null===(e=r.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;!n||I($e(n.navigator.language))}}),[f,r]),A(Re,fe(fe({options:{action:t,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:N,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:r,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:Qt,messageHandler:F,type:Yt,style:R?fe(fe({},j),{},{height:R}):j}))}var Fr=M(rn);Fr.displayName="Facebook";
var Dr=Object.create,re=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyNames,Mr=Object.getPrototypeOf,Cr=Object.prototype.hasOwnProperty,we=function(e){return re(e,"__esModule",{value:!0})},Lr=function(e,t){for(var r in we(e),t)re(e,r,{get:t[r],enumerable:!0})},jr=function(e,t,r){if(t&&"object"==typeof t||"function"==typeof t)for(var n,o=wr(t),a=0,i=o.length;a<i;a++)n=o[a],!Cr.call(e,n)&&"default"!==n&&re(e,n,{get:function(e){return t[e]}.bind(null,n),enumerable:!(r=Tr(t,n))||r.enumerable});return e},te=function(e){return jr(we(re(null!=e?Dr(Mr(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0})),e)};Lr(exports,{Facebook:function(){return Rr}});var G=te(require("react")),Me=te(require("react-dom")),d=te(require("react"));function A(e,t,r){return G.createElement.apply(void 0,arguments)}function Ce(e){return G.createContext(e,void 0)}function J(e){return d.useState(e)}function j(e){return d.useRef(e)}function ne(e,t){d.useEffect(e,t)}function U(e,t){d.useLayoutEffect(e,t)}function Le(e){return d.useContext(e)}function ve(e,t){return d.useMemo(e,t)}function oe(e,t){return d.useCallback(e,t)}function Y(e,t,r){return d.useImperativeHandle(e,t,r)}var de=function(){return["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"]},ge=function(){return["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"]};function je(){var e=0;return function(){return String(++e)}}var Ue=Object.prototype,sn=Ue.hasOwnProperty,cn=Ue.toString;function k(e){var t=Object.create(null);return e&&Object.assign(t,e),t}function w(e){return e||{}}function ke(e){return e.replace("-","_")}function Be(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var K,ie=te(require("react"));function T(e){return ie.forwardRef(e)}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ur=[R.AUTO,R.LAZY,R.EAGER,R.UNLOAD],He=(ae(K={},R.AUTO,0),ae(K,R.LAZY,1),ae(K,R.EAGER,2),ae(K,R.UNLOAD,3),K);function Ve(e,t){var r=He[e]||0,n=He[t]||0,o=Math.max(r,n);return Ur[o]}var Z={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},kr=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ge(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 M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Br(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hr(e,t){if(null==e)return{};var r,n,o=Vr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Vr(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}var Gr=[null,"paint","layout","content","size","size paint","size layout","strict"],Wr={position:"relative",width:"100%",height:"100%"};function $r(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.contentAs,c=void 0===i?"div":i,l=e.contentClassName,u=e.contentProps,s=e.contentRef,f=e.contentStyle,p=e.layout,y=void 0!==p&&p,d=e.paint,b=void 0!==d&&d,O=e.size,v=void 0!==O&&O,m=e.style,g=e.wrapperClassName,h=e.wrapperStyle,w=(v?4:0)+(y?2:0)+(b?1:0);return A(n,M(M({},Hr(e,kr)),{},{ref:t,className:"".concat(a||""," ").concat(g||"").trim()||null,style:M(M(M({},m),h),{},{contain:Gr[w]})}),A(c,M(M({},u),{},{ref:s,className:l,style:M(M({},v&&Wr),{},{overflow:b?"hidden":"visible"},f)}),o))}var ye=T($r),zr=["as","children","className","style","wrapperClassName","wrapperStyle"];function We(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 ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){if(null==e)return{};var r,n,o=Jr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Jr(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}function Kr(e,t){var r=e.as,n=void 0===r?"div":r,o=e.children,a=e.className,i=e.style,c=e.wrapperClassName,l=e.wrapperStyle;return A(n,ue(ue({},qr(e,zr)),{},{ref:t,className:"".concat(a||""," ").concat(c||"").trim()||null,style:ue(ue({},i),l)}),o)}var $e,Yr=T(Kr);function he(e){var t=j(null);return t.current=e,t}function Zr(){return $e||($e=Ce({renderable:!0,playable:!0,loading:R.AUTO}))}function xe(){return Le(Zr())}function ze(e){return Ve(e,xe().loading)}var Qr=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Xe(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 se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){if(null==e)return{};var r,n,o=tt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function tt(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}var nt=function(){return!1},ot="about:blank",it=function(e){return e&&e!=ot&&!e.includes("#")};function at(e,t){var r=e.allow,n=e.allowFullScreen,o=e.allowTransparency,a=e.iframeStyle,i=e.name,c=e.title,l=e.matchesMessagingOrigin,u=void 0===l?nt:l,s=e.messageHandler,f=e.ready,p=void 0===f||f,y=e.loading,d=e.onReadyState,b=e.sandbox,O=e.src,v=rt(e,Qr),m=xe().playable,g=ze(y),h=g!==R.UNLOAD,w=j(!1),P=he(d),S=oe((function(e){if(e!==w.current){w.current=e;var t=P.current;null==t||t(e?Z.COMPLETE:Z.LOADING)}}),[P]),_=j(null);return Y(t,(function(){return{get readyState(){return w.current?Z.COMPLETE:Z.LOADING},get node(){return _.current}}}),[]),U((function(){h||S(!1)}),[h,S]),ne((function(){var e=_.current;if(!m&&e){var t=e.src;if(it(t))e.src=e.src;else e.parentNode.insertBefore(e,e.nextSibling)}}),[m]),U((function(){var e=_.current;if(e&&h){var t=function(e){var t=_.current;!t||e.source!=t.contentWindow||!u(e.origin)||s(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[u,s,h,p]),A(ye,se(se({},v),{},{layout:!0,size:!0,paint:!0}),h&&p&&A("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:g,name:i,onLoad:function(){return S(!0)},part:"iframe",ref:_,sandbox:b,scrolling:"no",src:O,style:se(se({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:c}))}var be=T(at);be.displayName="IframeEmbed";var ut=!1;function ce(){return ut}function Q(e){var t;if(!ce())return!1;var r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lt(e,t,r){return t&&Je(e.prototype,t),r&&Je(e,r),e}var Ke=function(){function e(t){ct(this,e),this.capacity_=t,this.size_=0,this.access_=0,this.cache_=k()}return lt(e,[{key:"has",value:function(e){return!!this.cache_[e]}},{key:"get",value:function(e){var t=this.cache_[e];if(t)return t.access=++this.access_,t.payload}},{key:"put",value:function(e,t){this.has(e)||this.size_++,this.cache_[e]={payload:t,access:this.access_},this.evict_()}},{key:"evict_",value: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}(),W=Array.isArray,ft=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(e)}catch(e){return t}}function le(e){var t,r=k();if(!e)return r;for(;t=ft.exec(e);){var n=Ye(t[1],t[1]),o=t[2]?Ye(t[2].replace(/\+/g," "),t[2]):"";r[n]=o}return r}var O=self.AMP_CONFIG||{},pt=("string"==typeof O.thirdPartyFrameRegex?new RegExp(O.thirdPartyFrameRegex):O.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,Ze=("string"==typeof O.cdnProxyRegex?new RegExp(O.cdnProxyRegex):O.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Qe(e){if(!self.document||!self.document.head||self.location&&Ze.test(self.location.origin))return null;var t=self.document.head.querySelector('meta[name="'.concat(e,'"]'));return t&&t.getAttribute("content")||null}var B={thirdParty:O.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:O.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:pt,cdn:O.cdnUrl||Qe("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:Ze,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:O.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:O.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:O.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:O.geoApiUrl||Qe("amp-geo-api")},Ee={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Se=self.__AMP_LOG,sr=null;function $(){if(Se.dev)return Se.dev;if(!sr)throw new Error("failed to call initLogConstructor");return Se.dev=new sr(self,(function(e){return e>=3?Ee.FINE:e>=2?Ee.INFO:Ee.OFF}))}function fe(e,t,r,n,o,a,i,c,l,u,s){return e}var Ae,lr,ai=new Set(["c","v","a","ad"]);function Oe(e,t){return Ae||(Ae=self.document.createElement("a"),lr=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Ke(100))),yt(Ae,e,t?null:lr)}function yt(e,t,r){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=Q()&&Object.freeze?Object.freeze(o):o;return r&&r.put(t,a),a}function _e(e){return JSON.parse(e)}function ee(e,t){try{return _e(e)}catch(e){return null==t||t(e),null}}function Pe(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ot(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{!i&&null!=r.return&&r.return()}finally{if(c)throw a}}}}function Ot(e,t){if(e){if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}}function pr(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 mr(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 vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(r),!0).forEach((function(t){_t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pt="EXPERIMENTS",Ft="amp-experiment-toggles",pe="__AMP__EXPERIMENT_TOGGLES";function dr(e,t){return!!gr(e)[t]}function gr(e){var t,r,n,o,a;if(e[pe])return e[pe];e[pe]=k();var i=e[pe],c=vr(vr({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:_e((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(var l in c){var u=c[l];"number"==typeof u&&u>=0&&u<=1&&(i[l]=Math.random()<u)}var s=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(W(s)&&s.length){var f=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(f){var p,y=Pe(f.getAttribute("content").split(","));try{for(y.s();!(p=y.n()).done;){var d=p.value;s.includes(d)&&(i[d]=!0)}}catch(e){y.e(e)}finally{y.f()}}}Object.assign(i,Rt(e));var b=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(W(b)&&b.length){var O,v=le(e.location.originalHash||e.location.hash),m=Pe(b);try{for(m.s();!(O=m.n()).done;){var g=O.value,h=v["e-".concat(g)];"1"==h&&(i[g]=!0),"0"==h&&(i[g]=!1)}}catch(e){m.e(e)}finally{m.f()}}return i}function Rt(e){var t,r="";try{"localStorage"in e&&(r=e.localStorage.getItem(Ft))}catch(e){$().warn(Pt,"Failed to retrieve experiments from localStorage.")}var n,o=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],a=k(),i=Pe(o);try{for(i.s();!(n=i.n()).done;){var c=n.value;!c||("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}}catch(e){i.e(e)}finally{i.f()}return a}function yr(e,t){return dr(t,"3p-vendor-split")?"".concat(B.thirdParty,"/").concat("2107030008000","/vendor/").concat(e,".js"):"".concat(B.thirdParty,"/").concat("2107030008000","/f.js")}function hr(e,t){var r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||Nt(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(B.thirdPartyFrameHost,"/").concat("2107030008000","/")+"".concat(r,".html")}function Nt(e){return"d-"+xr(e)}function xr(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 br(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+xr(e)}var It=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function Er(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 Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Er(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){return jt(e)||Lt(e,t)||Ct(e,t)||Mt()}function Mt(){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 Ct(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sr(e,t)}}function Sr(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 Lt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function jt(e){if(Array.isArray(e))return e}function Ut(e,t){if(null==e)return{};var r,n,o=kt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function kt(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}var Fe={},Ar={EMBED_SIZE:"embed-size"},Re="sync-xhr 'none'",Bt=de().join(" ")+" "+ge().join(" ");function Ht(e,t){var r=e.allow,n=void 0===r?Re:r,o=e.bootstrap,a=e.contextOptions,i=e.excludeSandbox,c=e.name,l=e.messageHandler,u=e.options,s=e.sandbox,f=void 0===s?Bt:s,p=e.src,y=e.type,d=e.title,b=void 0===d?y:d,O=Ut(e,It);if(!Be(n,Re))throw new Error("'allow' prop must contain \"".concat(Re,'". Found "').concat(n,'".'));var v=j(null),m=j(null),g=ve((function(){return Fe[y]||(Fe[y]=je()),Fe[y]()}),[y]),h=wt(J({name:c,src:p}),2),P=h[0],S=P.name,_=P.src,E=h[1];return U((function(){var e,t,r=null===(e=v.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,n=null!=p?p:r?hr(r):"about:blank";if(c)E({name:c,src:n});else if(r){var i=Object.assign(w({location:{href:r.location.href},sentinel:br(r)}),a),l=Object.assign(w({title:b,type:y,_context:i}),u);E({name:JSON.stringify(w({host:Oe(n).hostname,bootstrap:null!=o?o:yr(y,r),type:y,count:g,attributes:l})),src:n})}}),[o,a,g,c,u,p,b,y]),ne((function(){var e,t=null===(e=m.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[S]),Y(t,(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}}}),[]),A(be,Dt({allow:n,contentRef:v,messageHandler:l,name:S,ref:m,ready:!!S,sandbox:i?void 0:f,src:_,title:b},O))}var Ne=T(Ht);Ne.displayName="ProxyIframeEmbed";var Vt="amp-";function Or(e){if(!Gt(e))return null;var t=e.indexOf("{");return fe(-1!=t),ee(e.substr(t),(function(t){return $().error("MESSAGING","Failed to parse message: "+e,t)}))}function Gt(e){return"string"==typeof e&&0==e.indexOf(Vt)&&-1!=e.indexOf("{")}var Wt=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function _r(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 me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pr(e,t){return Jt(e)||qt(e,t)||Xt(e,t)||zt()}function zt(){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 Xt(e,t){if(e){if("string"==typeof e)return Fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fr(e,t)}}function Fr(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 qt(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{!i&&null!=r.return&&r.return()}finally{if(c)throw o}}return a}}function Jt(e){if(Array.isArray(e))return e}function Kt(e,t){if(null==e)return{};var r,n,o=Yt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Yt(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}var Zt="facebook",Qt="100%",en=function(){return!0},rn="Facebook comments";function tn(e,t){var r=e.action,n=e.colorscheme,o=e.embedAs,a=e.hideCover,i=e.hideCta,c=e.href,l=e.includeCommentParent,u=e.kdSite,s=e.layout,f=e.locale,p=e.numPosts,y=e.onReady,d=e.orderBy,b=e.refLabel,O=e.requestResize,v=e.share,m=e.showFacepile,g=e.showText,h=e.size,w=e.smallHeader,j=e.style,P=e.tabs,S=e.title,_=void 0===S?rn:S,E=Kt(e,Wt),x=Pr(J(null),2),R=x[0],M=x[1],N=oe((function(e){var t,r=null!==(t=ee(e.data))&&void 0!==t?t:Or(e.data);if("ready"==r.action&&(null==y||y()),r.type==Ar.EMBED_SIZE){var n=r.height;O?(O(n),M(Qt)):M(n)}}),[O,y]),D=Pr(J(f),2),F=D[0],I=D[1];return U((function(){var e,r;if(f)I(f);else{var n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||I(ke(n.navigator.language))}}),[f,t]),A(Ne,me(me({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:i,href:c,includeCommentParent:l,kd_site:u,layout:s,locale:F,numPosts:p,orderBy:d,ref:b,share:v,showFacepile:m,showText:g,size:h,smallHeader:w,tabs:P},ref:t,title:_},E),{},{excludeSandbox:!0,matchesMessagingOrigin:en,messageHandler:N,type:Zt,style:R?me(me({},j),{},{height:R}):j}))}var Rr=T(tn);Rr.displayName="Facebook";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.js.map

@@ -40,5 +40,5 @@ var __create = Object.create;

// src/preact/index.js
var hooks = __toModule(require("react"));
var preact = __toModule(require("react"));
var preactDOM = __toModule(require("react-dom"));
var hooks = __toModule(require("react"));
function createElement2(unusedType, unusedProps, var_args) {

@@ -75,2 +75,57 @@ return preact.createElement.apply(void 0, arguments);

// src/core/3p-frame.js
var getRequiredSandboxFlags = function getRequiredSandboxFlags2() {
return [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
};
var getOptionalSandboxFlags = function getOptionalSandboxFlags2() {
return [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
};
// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
var counter = 0;
return function() {
return String(++counter);
};
}
// src/core/types/object/index.js
var _Object$prototype = Object.prototype;
var hasOwn_ = _Object$prototype.hasOwnProperty;
var toString_ = _Object$prototype.toString;
function map(opt_initial) {
var obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {
return opt_initial || {};
}
// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/preact/compat.js

@@ -82,2 +137,29 @@ var compat = __toModule(require("react"));

// src/core/constants/loading-instructions.js
var _MAP;
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = (_MAP = {}, _MAP[Loading.AUTO] = 0, _MAP[Loading.LAZY] = 1, _MAP[Loading.EAGER] = 2, _MAP[Loading.UNLOAD] = 3, _MAP);
function reducer(v1, v2) {
var ordinal1 = MAP[v1] || 0;
var ordinal2 = MAP[v2] || 0;
var ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/component/contain.js

@@ -194,29 +276,2 @@ var _excluded = ["as", "children", "className", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle"];

// src/core/constants/loading-instructions.js
var _MAP;
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = (_MAP = {}, _MAP[Loading.AUTO] = 0, _MAP[Loading.LAZY] = 1, _MAP[Loading.EAGER] = 2, _MAP[Loading.UNLOAD] = 3, _MAP);
function reducer(v1, v2) {
var ordinal1 = MAP[v1] || 0;
var ordinal2 = MAP[v2] || 0;
var ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/context.js

@@ -367,17 +422,30 @@ var context;

// src/core/types/object/index.js
var _Object$prototype = Object.prototype;
var hasOwn_ = _Object$prototype.hasOwnProperty;
var toString_ = _Object$prototype.toString;
function map(opt_initial) {
var obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
// src/core/mode/for-testing.js
var IS_FORTESTING = true;
function isFortesting() {
return IS_FORTESTING;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (!isFortesting()) {
return false;
}
return obj;
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
function dict(opt_initial) {
return opt_initial || {};
// src/core/mode/local-dev.js
function isLocalDev(opt_win) {
var _self$AMP_CONFIG;
return isFortesting() && (!!((_self$AMP_CONFIG = self.AMP_CONFIG) != null && _self$AMP_CONFIG.localDev) || isTest(opt_win));
}
// src/core/mode/minified.js
var IS_MINIFIED = false;
function isMinified() {
return IS_MINIFIED;
}
// src/core/data-structures/lru-cache.js

@@ -447,7 +515,7 @@ function _classCallCheck(instance, Constructor) {

}
var cache2 = this.cache_;
var cache = this.cache_;
var oldest = this.access_ + 1;
var oldestKey;
for (var key in cache2) {
var access = cache2[key].access;
for (var key in cache) {
var access = cache[key].access;
if (access < oldest) {

@@ -459,3 +527,3 @@ oldest = access;

if (oldestKey !== void 0) {
delete cache2[oldestKey];
delete cache[oldestKey];
this.size_--;

@@ -468,49 +536,5 @@ }

// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/core/types/array.js
var isArray = Array.isArray;
// src/core/mode/for-testing.js
var IS_FORTESTING = true;
function isFortesting() {
return IS_FORTESTING;
}
// src/core/mode/test.js
function isTest(opt_win) {
var _win$AMP_CONFIG;
if (!isFortesting()) {
return false;
}
var win = opt_win || self;
return !!((_win$AMP_CONFIG = win.AMP_CONFIG) != null && _win$AMP_CONFIG.test || win.__AMP_TEST || win["__karma__"]);
}
// src/core/mode/local-dev.js
function isLocalDev(opt_win) {
var _self$AMP_CONFIG;
return isFortesting() && (!!((_self$AMP_CONFIG = self.AMP_CONFIG) != null && _self$AMP_CONFIG.localDev) || isTest(opt_win));
}
// src/core/mode/minified.js
var IS_MINIFIED = false;
function isMinified() {
return IS_MINIFIED;
}
// src/internal-version.js
function internalRuntimeVersion() {
return "2107021719000";
}
// src/core/types/string/url.js

@@ -542,2 +566,35 @@ var QUERY_STRING_REGEX = /(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;

// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/internal-version.js
function internalRuntimeVersion() {
return "2107030008000";
}
// src/mode.js

@@ -578,33 +635,2 @@ var rtvVersion = "";

// src/core/types/array.js
var isArray = Array.isArray;
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
var metaEl = self.document.head.querySelector('meta[name="' + name + '"]');
return metaEl && metaEl.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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -653,21 +679,21 @@ var LogLevel = {

// src/url.js
var SERVING_TYPE_PREFIX = dict({
"c": true,
"v": true,
"a": true,
"ad": true
});
var a;
var cache;
var SERVING_TYPE_PREFIX = new Set([
"c",
"v",
"a",
"ad"
]);
var cachedAnchorEl;
var urlCache;
function parseUrlDeprecated(url, opt_nocache) {
if (!a) {
a = self.document.createElement("a");
cache = false ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
if (!cachedAnchorEl) {
cachedAnchorEl = self.document.createElement("a");
urlCache = false ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(a, url, opt_nocache ? null : cache);
return parseUrlWithA(cachedAnchorEl, url, opt_nocache ? null : urlCache);
}
function parseUrlWithA(a2, url, opt_cache) {
function parseUrlWithA(anchorEl, url, opt_cache) {
if (false) {
a2.href = "";
return new URL(url, a2.href);
anchorEl.href = "";
return new URL(url, anchorEl.href);
}

@@ -677,15 +703,15 @@ if (opt_cache && opt_cache.has(url)) {

}
a2.href = url;
if (!a2.protocol) {
a2.href = a2.href;
anchorEl.href = url;
if (!anchorEl.protocol) {
anchorEl.href = anchorEl.href;
}
var info = {
href: a2.href,
protocol: a2.protocol,
host: a2.host,
hostname: a2.hostname,
port: a2.port == "0" ? "" : a2.port,
pathname: a2.pathname,
search: a2.search,
hash: a2.hash,
href: anchorEl.href,
protocol: anchorEl.protocol,
host: anchorEl.host,
hostname: anchorEl.hostname,
port: anchorEl.port == "0" ? "" : anchorEl.port,
pathname: anchorEl.pathname,
search: anchorEl.search,
hash: anchorEl.hash,
origin: null

@@ -701,4 +727,4 @@ };

var origin;
if (a2.origin && a2.origin != "null") {
origin = a2.origin;
if (anchorEl.origin && anchorEl.origin != "null") {
origin = anchorEl.origin;
} else if (info.protocol == "data:" || !info.host) {

@@ -710,3 +736,3 @@ origin = info.href;

info.origin = origin;
var frozen = getMode().test && Object.freeze ? Object.freeze(info) : info;
var frozen = isTest() && Object.freeze ? Object.freeze(info) : info;
if (opt_cache) {

@@ -861,20 +887,2 @@ opt_cache.put(url, frozen);

// src/core/3p-frame.js
var getRequiredSandboxFlags = function getRequiredSandboxFlags2() {
return [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
};
var getOptionalSandboxFlags = function getOptionalSandboxFlags2() {
return [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
};
// src/3p-frame.js

@@ -932,10 +940,2 @@ var overrideBootstrapBaseUrl;

// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
var counter = 0;
return function() {
return String(++counter);
};
}
// src/preact/component/3p-frame.js

@@ -942,0 +942,0 @@ var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];

// src/preact/index.js
import {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useLayoutEffect,
useMemo,
useRef,
useState
} from "react";
import {
Fragment,

@@ -23,2 +13,12 @@ cloneElement,

} from "react-dom";
import {
useCallback,
useContext,
useEffect,
useImperativeHandle,
useLayoutEffect,
useMemo,
useRef,
useState
} from "react";
function createElement2(unusedType, unusedProps, var_args) {

@@ -55,2 +55,52 @@ return createElement.apply(void 0, arguments);

// src/core/3p-frame.js
var getRequiredSandboxFlags = () => [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
var getOptionalSandboxFlags = () => [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
let counter = 0;
return () => String(++counter);
}
// src/core/types/object/index.js
var {
hasOwnProperty: hasOwn_,
toString: toString_
} = Object.prototype;
function map(opt_initial) {
const obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {
return opt_initial || {};
}
// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/preact/compat.js

@@ -66,2 +116,33 @@ import {

// src/core/constants/loading-instructions.js
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = {
[Loading.AUTO]: 0,
[Loading.LAZY]: 1,
[Loading.EAGER]: 2,
[Loading.UNLOAD]: 3
};
function reducer(v1, v2) {
const ordinal1 = MAP[v1] || 0;
const ordinal2 = MAP[v2] || 0;
const ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/component/contain.js

@@ -200,33 +281,2 @@ var _excluded = ["as", "children", "className", "contentAs", "contentClassName", "contentProps", "contentRef", "contentStyle", "layout", "paint", "size", "style", "wrapperClassName", "wrapperStyle"];

// src/core/constants/loading-instructions.js
var Loading = {
AUTO: "auto",
LAZY: "lazy",
EAGER: "eager",
UNLOAD: "unload"
};
var ORDER = [Loading.AUTO, Loading.LAZY, Loading.EAGER, Loading.UNLOAD];
var MAP = {
[Loading.AUTO]: 0,
[Loading.LAZY]: 1,
[Loading.EAGER]: 2,
[Loading.UNLOAD]: 3
};
function reducer(v1, v2) {
const ordinal1 = MAP[v1] || 0;
const ordinal2 = MAP[v2] || 0;
const ordinal = Math.max(ordinal1, ordinal2);
return ORDER[ordinal];
}
// src/core/constants/ready-state.js
var ReadyState = {
UPGRADING: "upgrading",
BUILDING: "building",
MOUNTING: "mounting",
LOADING: "loading",
COMPLETE: "complete",
ERROR: "error"
};
// src/preact/context.js

@@ -389,32 +439,2 @@ var context;

// src/core/types/object/index.js
var {
hasOwnProperty: hasOwn_,
toString: toString_
} = Object.prototype;
function map(opt_initial) {
const obj = Object.create(null);
if (opt_initial) {
Object.assign(obj, opt_initial);
}
return obj;
}
function dict(opt_initial) {
return opt_initial || {};
}
// src/core/types/string/index.js
function dashToUnderline(name) {
return name.replace("-", "_");
}
function includes(string, substring, start) {
if (typeof start !== "number") {
start = 0;
}
if (start + substring.length > string.length) {
return false;
}
return string.indexOf(substring, start) !== -1;
}
// src/core/mode/for-testing.js

@@ -448,6 +468,6 @@ var IS_FORTESTING = true;

// src/internal-version.js
function internalRuntimeVersion() {
return "2107021719000";
}
// src/core/types/array.js
var {
isArray
} = Array;

@@ -477,2 +497,35 @@ // src/core/types/string/url.js

// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/internal-version.js
function internalRuntimeVersion() {
return "2107030008000";
}
// src/mode.js

@@ -513,35 +566,2 @@ var rtvVersion = "";

// src/core/types/array.js
var {
isArray
} = Array;
// src/config.js
var env = self.AMP_CONFIG || {};
var thirdPartyFrameRegex = (typeof env["thirdPartyFrameRegex"] == "string" ? new RegExp(env["thirdPartyFrameRegex"]) : env["thirdPartyFrameRegex"]) || /^d-\d+\.ampproject\.net$/;
var cdnProxyRegex = (typeof env["cdnProxyRegex"] == "string" ? new RegExp(env["cdnProxyRegex"]) : env["cdnProxyRegex"]) || /^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;
function getMetaUrl(name) {
if (!self.document || !self.document.head) {
return null;
}
if (self.location && cdnProxyRegex.test(self.location.origin)) {
return null;
}
const metaEl = self.document.head.querySelector(`meta[name="${name}"]`);
return metaEl && metaEl.getAttribute("content") || null;
}
var urls = {
thirdParty: env["thirdPartyUrl"] || "https://3p.ampproject.net",
thirdPartyFrameHost: env["thirdPartyFrameHost"] || "ampproject.net",
thirdPartyFrameRegex,
cdn: env["cdnUrl"] || getMetaUrl("runtime-host") || "https://cdn.ampproject.org",
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"] || false,
trustedViewerHosts: [/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/, /(^|\.)gmail\.(com|dev)$/],
geoApi: env["geoApiUrl"] || getMetaUrl("amp-geo-api")
};
// src/log.js

@@ -590,21 +610,21 @@ var LogLevel = {

// src/url.js
var SERVING_TYPE_PREFIX = dict({
"c": true,
"v": true,
"a": true,
"ad": true
});
var a;
var cache;
var SERVING_TYPE_PREFIX = new Set([
"c",
"v",
"a",
"ad"
]);
var cachedAnchorEl;
var urlCache;
function parseUrlDeprecated(url, opt_nocache) {
if (!a) {
a = self.document.createElement("a");
cache = true ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
if (!cachedAnchorEl) {
cachedAnchorEl = self.document.createElement("a");
urlCache = true ? null : self.__AMP_URL_CACHE || (self.__AMP_URL_CACHE = new LruCache(100));
}
return parseUrlWithA(a, url, true ? null : cache);
return parseUrlWithA(cachedAnchorEl, url, true ? null : urlCache);
}
function parseUrlWithA(a2, url, opt_cache) {
function parseUrlWithA(anchorEl, url, opt_cache) {
if (true) {
a2.href = "";
return new URL(url, a2.href);
anchorEl.href = "";
return new URL(url, anchorEl.href);
}

@@ -614,15 +634,15 @@ if (opt_cache && opt_cache.has(url)) {

}
a2.href = url;
if (!a2.protocol) {
a2.href = a2.href;
anchorEl.href = url;
if (!anchorEl.protocol) {
anchorEl.href = anchorEl.href;
}
const info = {
href: a2.href,
protocol: a2.protocol,
host: a2.host,
hostname: a2.hostname,
port: a2.port == "0" ? "" : a2.port,
pathname: a2.pathname,
search: a2.search,
hash: a2.hash,
href: anchorEl.href,
protocol: anchorEl.protocol,
host: anchorEl.host,
hostname: anchorEl.hostname,
port: anchorEl.port == "0" ? "" : anchorEl.port,
pathname: anchorEl.pathname,
search: anchorEl.search,
hash: anchorEl.hash,
origin: null

@@ -638,4 +658,4 @@ };

let origin;
if (a2.origin && a2.origin != "null") {
origin = a2.origin;
if (anchorEl.origin && anchorEl.origin != "null") {
origin = anchorEl.origin;
} else if (info.protocol == "data:" || !info.host) {

@@ -647,3 +667,3 @@ origin = info.href;

info.origin = origin;
const frozen = getMode().test && Object.freeze ? Object.freeze(info) : info;
const frozen = isTest() && Object.freeze ? Object.freeze(info) : info;
if (opt_cache) {

@@ -758,16 +778,2 @@ opt_cache.put(url, frozen);

// src/core/3p-frame.js
var getRequiredSandboxFlags = () => [
"allow-top-navigation-by-user-activation",
"allow-popups-to-escape-sandbox"
];
var getOptionalSandboxFlags = () => [
"allow-forms",
"allow-modals",
"allow-pointer-lock",
"allow-popups",
"allow-same-origin",
"allow-scripts"
];
// src/3p-frame.js

@@ -825,8 +831,2 @@ var overrideBootstrapBaseUrl;

// src/core/data-structures/id-generator.js
function sequentialIdGenerator() {
let counter = 0;
return () => String(++counter);
}
// src/preact/component/3p-frame.js

@@ -833,0 +833,0 @@ var _excluded4 = ["allow", "bootstrap", "contextOptions", "excludeSandbox", "name", "messageHandler", "options", "sandbox", "src", "type", "title"];

@@ -1,3 +0,3 @@

import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"react";import{Fragment as Tr,cloneElement as Ir,createContext as at,createElement as ct,createRef as Dr}from"react";import{hydrate as Fr,render as Mr}from"react-dom";function E(e,t,r){return ct.apply(void 0,arguments)}function Ee(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function ye(e){return mt(e)}function te(e,t){return dt(e,t)}function z(e,t){return gt(e,t)}function H(e,t,r){return ht(e,t,r)}import{Children as jr,createPortal as Lr,forwardRef as xt}from"react";function A(e){return xt(e)}var Et=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function ve(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 N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vt(e,t){if(null==e)return{};var r,n,o=_t(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function _t(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}var bt=[null,"paint","layout","content","size","size paint","size layout","strict"],Ot={position:"relative",width:"100%",height:"100%"};function St(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:y,wrapperClassName:d,wrapperStyle:b}=e,O=(p?4:0)+(s?2:0)+(f?1:0);return E(r,N(N({},vt(e,Et)),{},{ref:t,className:`${o||""} ${d||""}`.trim()||null,style:N(N(N({},y),b),{},{contain:bt[O]})}),E(a,N(N({},i),{},{ref:c,className:l,style:N(N({},p&&Ot),{},{overflow:f?"hidden":"visible"},u)}),n))}var re=A(St),At=["as","children","className","style","wrapperClassName","wrapperStyle"];function _e(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 q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){Pt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=Nt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Nt(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}function It(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,q(q({},Rt(e,At)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:q(q({},a),i)}),n)}var Mt=A(It);function ne(e){let t=F(null);return t.current=e,t}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Ft=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],be={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Oe(e,t){let r=be[e]||0,n=be[t]||0,o=Math.max(r,n);return Ft[o]}var Se,k={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"};function Tt(){return Se||(Se=Ee({renderable:!0,playable:!0,loading:_.AUTO}))}function oe(){return ye(Tt())}function Ae(e){let{loading:t}=oe();return Oe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Pe(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){Ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wt(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(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}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:y,src:d}=e,b=wt(e,Dt),{playable:O}=oe(),m=Ae(f),g=m!==_.UNLOAD,v=F(!1),h=ne(p),P=z((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?k.COMPLETE:k.LOADING)}}),[h]),j=F(null);return H(t,(()=>({get readyState(){return v.current?k.COMPLETE:k.LOADING},get node(){return j.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=j.current;if(!O&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[O]),T((()=>{let e=j.current;if(!e||!g)return;let t=e=>{let t=j.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(re,J(J({},b),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:j,sandbox:y,scrolling:"no",src:d,style:J(J({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ie=A(Bt);ie.displayName="IframeEmbed";var{hasOwnProperty:yn,toString:vn}=Object.prototype;function j(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function P(e){return e||{}}function Re(e){return e.replace("-","_")}function Ne(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var Gt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function Te(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function K(e){let t,r=j();if(!e)return r;for(;t=Gt.exec(e);){let e=Te(t[1],t[1]),n=t[2]?Te(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var{isArray:D}=Array,y=self.AMP_CONFIG||{},kt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,De=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&De.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var C={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:kt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:De,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},se={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var ce=self.__AMP_LOG,He=null;function Y(){if(ce.dev)return ce.dev;if(!He)throw new Error("failed to call initLogConstructor");return ce.dev=new He(self,(e=>e>=3?se.FINE:e>=2?se.INFO:se.OFF))}function Z(e,t,r,n,o,a,l,i,c,u,s){return e}var ae,qt,jo=P({c:!0,v:!0,a:!0,ad:!0});function ue(e,t){return ae||(ae=self.document.createElement("a"),qt=null),Jt(ae,e,null)}function Jt(e,t,r){return e.href="",new URL(t,e.href)}function le(e){return JSON.parse(e)}function W(e,t){try{return le(e)}catch(e){return null==t||t(e),null}}function Xe(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 ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){rr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nr="amp-experiment-toggles",Q="__AMP__EXPERIMENT_TOGGLES";function qe(e,t){return!!Je(e)[t]}function Je(e){var t,r,n,o,a;if(e[Q])return e[Q];e[Q]=j();let l=e[Q],i=ze(ze({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:le((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(D(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,or(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(D(u)&&u.length){let t=K(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function or(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(nr))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=j();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}var fe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],pe=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function Ke(e,t){return qe(t,"3p-vendor-split")?`${C.thirdParty}/2107021719000/vendor/${e}.mjs`:`${C.thirdParty}/2107021719000/f.js`}function Ye(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||ir(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${C.thirdPartyFrameHost}/2107021719000/${r}.html`}function ir(e){return"d-"+Ze(e)}function Ze(e){let t;if(e.crypto&&e.crypto.getRandomValues){let 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 Qe(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Ze(e)}function et(){let e=0;return()=>String(++e)}var sr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(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 cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ar(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ar(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ur(e,t){if(null==e)return{};var r,n,o=lr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function lr(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}var me={},rt={EMBED_SIZE:"embed-size"},de="sync-xhr 'none'",fr=fe().join(" ")+" "+pe().join(" ");function pr(e,t){let{allow:r=de,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=fr,src:s,type:f,title:p=f}=e,y=ur(e,sr);if(!Ne(r,de))throw new Error(`'allow' prop must contain "${de}". Found "${r}".`);let d=F(null),b=F(null),O=te((()=>(me[f]||(me[f]=et()),me[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=d.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ye(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(P({location:{href:r.location.href},sentinel:Qe(r)}),o),u=Object.assign(P({title:p,type:f,_context:i}),c);v({name:JSON.stringify(P({host:ue(a).hostname,bootstrap:null!=n?n:Ke(f,r),type:f,count:O,attributes:u})),src:a})}),[n,o,O,l,c,s,p,f]),X((()=>{var e;let t=null===(e=b.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),H(t,(()=>({get readyState(){var e;return null===(e=b.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=b.current)||void 0===e?void 0:e.node}})),[]),E(ie,cr({allow:r,contentRef:d,messageHandler:i,name:m,ref:b,ready:!!m,sandbox:a?void 0:u,src:g,title:p},y))}var ge=A(pr);ge.displayName="ProxyIframeEmbed";var mr="amp-";function nt(e){if(!dr(e))return null;let t=e.indexOf("{");return Z(-1!=t),W(e.substr(t),(t=>Y().error("MESSAGING","Failed to parse message: "+e,t)))}function dr(e){return"string"==typeof e&&0==e.indexOf(mr)&&-1!=e.indexOf("{")}var gr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xr(e,t){if(null==e)return{};var r,n,o=Er(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Er(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}var yr="facebook",vr="100%",_r=()=>!0,br="Facebook comments";function Or(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:y,orderBy:d,refLabel:b,requestResize:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:j,tabs:w,title:S=br}=e,A=xr(e,gr),{0:x,1:_}=V(null),N=z((e=>{var t;let r=null!==(t=W(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==y||y()),r.type==rt.EMBED_SIZE){let e=r.height;O?(O(e),_(vr)):_(e)}}),[O,y]),{0:D,1:R}=V(f);return T((()=>{var e,r;if(f)return void R(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||R(Re(n.navigator.language))}),[f,t]),E(ge,ee(ee({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:d,ref:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:w},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:_r,messageHandler:N,type:yr,style:x?ee(ee({},j),{},{height:x}):j}))}var Sr=A(Or);Sr.displayName="Facebook";export{Sr as Facebook};
import{Fragment as Dr,cloneElement as Mr,createContext as at,createElement as ct,createRef as wr}from"react";import{hydrate as Tr,render as Fr}from"react-dom";import{useCallback as gt,useContext as mt,useEffect as ft,useImperativeHandle as ht,useLayoutEffect as pt,useMemo as dt,useRef as lt,useState as ut}from"react";function E(e,t,r){return ct.apply(void 0,arguments)}function ve(e){return at(e,void 0)}function V(e){return ut(e)}function F(e){return lt(e)}function X(e,t){ft(e,t)}function T(e,t){pt(e,t)}function _e(e){return mt(e)}function ne(e,t){return dt(e,t)}function q(e,t){return gt(e,t)}function k(e,t,r){return ht(e,t,r)}var oe=()=>["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"],ie=()=>["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"];function be(){let e=0;return()=>String(++e)}var{hasOwnProperty:jr,toString:$r}=Object.prototype;function L(e){let t=Object.create(null);return e&&Object.assign(t,e),t}function N(e){return e||{}}function Oe(e){return e.replace("-","_")}function Se(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}import{Children as Gr,createPortal as kr,forwardRef as xt}from"react";function A(e){return xt(e)}var _={AUTO:"auto",LAZY:"lazy",EAGER:"eager",UNLOAD:"unload"},Et=[_.AUTO,_.LAZY,_.EAGER,_.UNLOAD],Ae={[_.AUTO]:0,[_.LAZY]:1,[_.EAGER]:2,[_.UNLOAD]:3};function Pe(e,t){let r=Ae[e]||0,n=Ae[t]||0,o=Math.max(r,n);return Et[o]}var G={UPGRADING:"upgrading",BUILDING:"building",MOUNTING:"mounting",LOADING:"loading",COMPLETE:"complete",ERROR:"error"},yt=["as","children","className","contentAs","contentClassName","contentProps","contentRef","contentStyle","layout","paint","size","style","wrapperClassName","wrapperStyle"];function Ne(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(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(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){if(null==e)return{};var r,n,o=bt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function bt(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}var Ot=[null,"paint","layout","content","size","size paint","size layout","strict"],St={position:"relative",width:"100%",height:"100%"};function At(e,t){let{as:r="div",children:n,className:o,contentAs:a="div",contentClassName:l,contentProps:i,contentRef:c,contentStyle:u,layout:s=!1,paint:f=!1,size:p=!1,style:d,wrapperClassName:y,wrapperStyle:O}=e,b=(p?4:0)+(s?2:0)+(f?1:0);return E(r,R(R({},_t(e,yt)),{},{ref:t,className:`${o||""} ${y||""}`.trim()||null,style:R(R(R({},d),O),{},{contain:Ot[b]})}),E(a,R(R({},i),{},{ref:c,className:l,style:R(R({},p&&St),{},{overflow:f?"hidden":"visible"},u)}),n))}var se=A(At),Pt=["as","children","className","style","wrapperClassName","wrapperStyle"];function Re(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 J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rt(e,t){if(null==e)return{};var r,n,o=It(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function It(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}function Mt(e,t){let{as:r="div",children:n,className:o,style:a,wrapperClassName:l,wrapperStyle:i}=e;return E(r,J(J({},Rt(e,Pt)),{},{ref:t,className:`${o||""} ${l||""}`.trim()||null,style:J(J({},a),i)}),n)}var Ie,Ft=A(Mt);function ce(e){let t=F(null);return t.current=e,t}function Tt(){return Ie||(Ie=ve({renderable:!0,playable:!0,loading:_.AUTO}))}function ae(){return _e(Tt())}function Me(e){let{loading:t}=ae();return Pe(e,t)}var Dt=["allow","allowFullScreen","allowTransparency","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"];function Fe(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 K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){if(null==e)return{};var r,n,o=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function Lt(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}var jt=()=>!1,$t="about:blank",Ut=e=>e&&e!=$t&&!e.includes("#");function Bt(e,t){let{allow:r,allowFullScreen:n,allowTransparency:o,iframeStyle:a,name:l,title:i,matchesMessagingOrigin:c=jt,messageHandler:u,ready:s=!0,loading:f,onReadyState:p,sandbox:d,src:y}=e,O=Ct(e,Dt),{playable:b}=ae(),m=Me(f),g=m!==_.UNLOAD,v=F(!1),h=ce(p),P=q((e=>{if(e!==v.current){v.current=e;let t=h.current;null==t||t(e?G.COMPLETE:G.LOADING)}}),[h]),w=F(null);return k(t,(()=>({get readyState(){return v.current?G.COMPLETE:G.LOADING},get node(){return w.current}})),[]),T((()=>{g||P(!1)}),[g,P]),X((()=>{let e=w.current;if(!b&&e){let{src:t}=e;Ut(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[b]),T((()=>{let e=w.current;if(!e||!g)return;let t=e=>{let t=w.current;!t||e.source!=t.contentWindow||!c(e.origin)||u(e)},{defaultView:r}=e.ownerDocument;return r.addEventListener("message",t),()=>r.removeEventListener("message",t)}),[c,u,g,s]),E(se,K(K({},O),{},{layout:!0,size:!0,paint:!0}),g&&s&&E("iframe",{allow:r,allowFullScreen:n,allowTransparency:o,frameborder:"0",loading:m,name:l,onLoad:()=>P(!0),part:"iframe",ref:w,sandbox:d,scrolling:"no",src:y,style:K(K({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}var ue=A(Bt);ue.displayName="IframeEmbed";var Vt=!1;function Y(){return Vt}function W(e){var t;if(!Y())return!1;let r=e||self;return!!(null!==(t=r.AMP_CONFIG)&&void 0!==t&&t.test||r.__AMP_TEST||r.__karma__)}var{isArray:j}=Array,kt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function De(e,t=""){let r=t;try{return decodeURIComponent(e)}catch(e){return r}}function Z(e){let t,r=L();if(!e)return r;for(;t=kt.exec(e);){let e=De(t[1],t[1]),n=t[2]?De(t[2].replace(/\+/g," "),t[2]):"";r[e]=n}return r}var y=self.AMP_CONFIG||{},Gt=("string"==typeof y.thirdPartyFrameRegex?new RegExp(y.thirdPartyFrameRegex):y.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,we=("string"==typeof y.cdnProxyRegex?new RegExp(y.cdnProxyRegex):y.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Ce(e){if(!self.document||!self.document.head||self.location&&we.test(self.location.origin))return null;let t=self.document.head.querySelector(`meta[name="${e}"]`);return t&&t.getAttribute("content")||null}var D={thirdParty:y.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:y.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:Gt,cdn:y.cdnUrl||Ce("runtime-host")||"https://cdn.ampproject.org",cdnProxyRegex:we,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:y.errorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",betaErrorReporting:y.betaErrorReportingUrl||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",localDev:y.localDev||!1,trustedViewerHosts:[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],geoApi:y.geoApiUrl||Ce("amp-geo-api")},le={OFF:0,ERROR:1,WARN:2,INFO:3,FINE:4};self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var fe=self.__AMP_LOG,Ge=null;function Q(){if(fe.dev)return fe.dev;if(!Ge)throw new Error("failed to call initLogConstructor");return fe.dev=new Ge(self,(e=>e>=3?le.FINE:e>=2?le.INFO:le.OFF))}function ee(e,t,r,n,o,a,l,i,c,u,s){return e}var pe,Jt,Bo=new Set(["c","v","a","ad"]);function me(e,t){return pe||(pe=self.document.createElement("a"),Jt=null),Kt(pe,e,null)}function Kt(e,t,r){return e.href="",new URL(t,e.href)}function de(e){return JSON.parse(e)}function z(e,t){try{return de(e)}catch(e){return null==t||t(e),null}}function Xe(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 qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var or="amp-experiment-toggles",te="__AMP__EXPERIMENT_TOGGLES";function Je(e,t){return!!Ke(e)[t]}function Ke(e){var t,r,n,o,a;if(e[te])return e[te];e[te]=L();let l=e[te],i=qe(qe({},null!==(t=e.AMP_CONFIG)&&void 0!==t?t:{}),null!==(r=e.AMP_EXP)&&void 0!==r?r:de((null===(n=e.__AMP_EXP)||void 0===n?void 0:n.textContent)||"{}"));for(let e in i){let t=i[e];"number"==typeof t&&t>=0&&t<=1&&(l[e]=Math.random()<t)}let c=null===(o=e.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(j(c)&&c.length){let t=e.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(t){let e=t.getAttribute("content").split(",");for(let t of e)c.includes(t)&&(l[t]=!0)}}Object.assign(l,ir(e));let u=null===(a=e.AMP_CONFIG)||void 0===a?void 0:a["allow-url-opt-in"];if(j(u)&&u.length){let t=Z(e.location.originalHash||e.location.hash);for(let e of u){let r=t[`e-${e}`];"1"==r&&(l[e]=!0),"0"==r&&(l[e]=!1)}}return l}function ir(e){var t;let r="";try{"localStorage"in e&&(r=e.localStorage.getItem(or))}catch(e){}let n=(null===(t=r)||void 0===t?void 0:t.split(/\s*,\s*/g))||[],o=L();for(let e of n)!e||("-"==e[0]?o[e.substr(1)]=!1:o[e]=!0);return o}function Ye(e,t){return Je(t,"3p-vendor-split")?`${D.thirdParty}/2107030008000/vendor/${e}.mjs`:`${D.thirdParty}/2107030008000/f.js`}function Ze(e,t){let r=t||"frame";return e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||sr(e),"https://"+e.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${D.thirdPartyFrameHost}/2107030008000/${r}.html`}function sr(e){return"d-"+Qe(e)}function Qe(e){let t;if(e.crypto&&e.crypto.getRandomValues){let 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 et(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+Qe(e)}var cr=["allow","bootstrap","contextOptions","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"];function tt(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 ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lr(e,t){if(null==e)return{};var r,n,o=fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function fr(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}var ge={},rt={EMBED_SIZE:"embed-size"},he="sync-xhr 'none'",pr=oe().join(" ")+" "+ie().join(" ");function mr(e,t){let{allow:r=he,bootstrap:n,contextOptions:o,excludeSandbox:a,name:l,messageHandler:i,options:c,sandbox:u=pr,src:s,type:f,title:p=f}=e,d=lr(e,cr);if(!Se(r,he))throw new Error(`'allow' prop must contain "${he}". Found "${r}".`);let y=F(null),O=F(null),b=ne((()=>(ge[f]||(ge[f]=be()),ge[f]())),[f]),{0:{name:m,src:g},1:v}=V({name:l,src:s});return T((()=>{var e,t;let r=null===(e=y.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,a=null!=s?s:r?Ze(r):"about:blank";if(l)return void v({name:l,src:a});if(!r)return;let i=Object.assign(N({location:{href:r.location.href},sentinel:et(r)}),o),u=Object.assign(N({title:p,type:f,_context:i}),c);v({name:JSON.stringify(N({host:me(a).hostname,bootstrap:null!=n?n:Ye(f,r),type:f,count:b,attributes:u})),src:a})}),[n,o,b,l,c,s,p,f]),X((()=>{var e;let t=null===(e=O.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[m]),k(t,(()=>({get readyState(){var e;return null===(e=O.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=O.current)||void 0===e?void 0:e.node}})),[]),E(ue,ar({allow:r,contentRef:y,messageHandler:i,name:m,ref:O,ready:!!m,sandbox:a?void 0:u,src:g,title:p},d))}var xe=A(mr);xe.displayName="ProxyIframeEmbed";var dr="amp-";function nt(e){if(!gr(e))return null;let t=e.indexOf("{");return ee(-1!=t),z(e.substr(t),(t=>Q().error("MESSAGING","Failed to parse message: "+e,t)))}function gr(e){return"string"==typeof e&&0==e.indexOf(dr)&&-1!=e.indexOf("{")}var hr=["action","colorscheme","embedAs","hideCover","hideCta","href","includeCommentParent","kdSite","layout","locale","numPosts","onReady","orderBy","refLabel","requestResize","share","showFacepile","showText","size","smallHeader","style","tabs","title"];function ot(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 re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){xr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){if(null==e)return{};var r,n,o=yr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(o[r]=e[r]))}return o}function yr(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}var vr="facebook",_r="100%",br=()=>!0,Or="Facebook comments";function Sr(e,t){let{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kdSite:u,layout:s,locale:f,numPosts:p,onReady:d,orderBy:y,refLabel:O,requestResize:b,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,style:w,tabs:j,title:S=Or}=e,A=Er(e,hr),{0:_,1:x}=V(null),R=q((e=>{var t;let r=null!==(t=z(e.data))&&void 0!==t?t:nt(e.data);if("ready"==r.action&&(null==d||d()),r.type==rt.EMBED_SIZE){let e=r.height;b?(b(e),x(_r)):x(e)}}),[b,d]),{0:D,1:N}=V(f);return T((()=>{var e,r;if(f)return void N(f);let n=null==t||null===(e=t.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView;!n||N(Oe(n.navigator.language))}),[f,t]),E(xe,re(re({options:{action:r,colorscheme:n,embedAs:o,hideCover:a,hideCta:l,href:i,includeCommentParent:c,kd_site:u,layout:s,locale:D,numPosts:p,orderBy:y,ref:O,share:m,showFacepile:g,showText:v,size:h,smallHeader:P,tabs:j},ref:t,title:S},A),{},{excludeSandbox:!0,matchesMessagingOrigin:br,messageHandler:R,type:vr,style:_?re(re({},w),{},{height:_}):w}))}var Ar=A(Sr);Ar.displayName="Facebook";export{Ar as Facebook};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.module.js.map
{
"name": "@ampproject/amp-facebook",
"version": "1.2107012021.0",
"version": "1.2107030008.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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc