Socket
Socket
Sign inDemoInstall

@bentoproject/reddit

Package Overview
Dependencies
6
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2302171719.0 to 1.2302271541.0

2

dist/component-preact.js
;
var e=Object.create,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,i=function(e){return r(e,"__esModule",{value:!0})},u=function(u){return function(e,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var u,l=n(o),c=0,f=l.length;c<f;c++)u=l[c],a.call(e,u)||"default"===u||r(e,u,{get:function(e){return o[e]}.bind(null,u),enumerable:!(i=t(o,u))||i.enumerable});return e}(i(r(null!=u?e(o(u)):{},"default",u&&u.__esModule&&"default"in u?{get:function(){return u.default},enumerable:!0}:{value:u,enumerable:!0})),u)};function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function c(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 f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){l(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function s(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 d(e,r){if(e){if("string"==typeof e)return s(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,r):void 0}}function v(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,u=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(u)throw o}}return a}}(e,r)||d(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(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 p(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=d(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}!function(e,t){for(var n in i(e),t)r(e,n,{get:t[n],enumerable:!0})}(exports,{BentoReddit:function(){return X},RedditWithRef:function(){return Q}}),Array.isArray;var m=Object.prototype;function y(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function h(e){for(var r,t=null,n="",o=p(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=y(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function j(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}m.hasOwnProperty,m.toString;var g,w=u(require("@bentoproject/core/preact")),O=u(require("@bentoproject/core/preact")),S=u(require("@bentoproject/core/preact")),x=u(require("@bentoproject/core/preact")),q=u(require("@bentoproject/core/preact")),E=u(require("@bentoproject/core/preact")),A=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),R=u(require("@bentoproject/core/preact")),I=u(require("@bentoproject/core/preact")),F=u(require("@bentoproject/core/preact")),z=u(require("@bentoproject/core/preact")),H=u(require("@bentoproject/core/preact")),M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],P=function(){return!1},T=(0,F.forwardRef)((function(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,u=e.matchesMessagingOrigin,l=void 0===u?P:u,c=e.messageHandler,s=e.ready,d=void 0===s||s,v=e.loading,p=e.onReadyState,m=e.sandbox,y=e.src,h=b(e,M),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(v),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,z.useValueRef)(p),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":A)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":A},get node(){return q.current}}}),[]),(0,I.useLayoutEffect)((function(){w||x(!1)}),[w,x]),(0,I.useEffect)((function(){var e=q.current;!j&&e&&(function(e){return!(!e||"about:blank"==e||e.includes("#"))}(e.src)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling))}),[j]),(0,I.useLayoutEffect)((function(){var e=q.current;if(e&&w){var r=function(e){var r=q.current;r&&e.source==r.contentWindow&&l(e.origin)&&c(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,c,w,d]),R.createElement(z.ContainWrapper,f(f({},h),{},{layout:!0,size:!0,paint:!0}),w&&d&&R.createElement("iframe",{allow:t,allowFullScreen:n,frameBorder:"0",loading:g,name:a,onLoad:function(){return x(!0)},part:"iframe",ref:q,sandbox:m,scrolling:"no",src:y,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));T.displayName="IframeEmbed";var k=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},B=k("thirdPartyUrl")||"https://3p.ampproject.net",C=k("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var L,N,U=function(){function e(e){this.t=e,this.l=0,this.ee=0,this.re=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.re[e]},r.get=function(e){var r=this.re[e];if(r)return r.access=++this.ee,r.payload},r.put=function(e,r){this.has(e)||this.l++,this.re[e]={payload:r,access:this.ee},this.te()},r.te=function(){if(!(this.l<=this.t)){var e,r=this.re,t=this.ee+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.l--)}},e}();function _(e){return"".concat(B,"/").concat("2302171719000","/vendor/").concat(e).concat(".js")}function G(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}new Set(["c","v","a","ad"]);var J=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],V={},W=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),$=(0,E.forwardRef)((function(e,r){var t,n,o=e.allow,a=void 0===o?"sync-xhr 'none'":o,i=e.excludeSandbox,u=e.name,l=e.messageHandler,c=e.options,s=e.sandbox,d=void 0===s?W:s,p=e.src,m=e.type,y=e.title,h=void 0===y?m:y,j=b(e,J);if("number"!=typeof n&&(n=0),n+"sync-xhr 'none'".length>(t=a).length||-1===t.indexOf("sync-xhr 'none'",n))throw new Error("'allow' prop must contain \"".concat("sync-xhr 'none'",'". Found "').concat(a,'".'));var g=(0,q.useRef)(null),w=(0,q.useRef)(null),O=(0,q.useMemo)((function(){var e;return V[m]||(V[m]=(e=0,function(){return String(++e)})),V[m]()}),[m]),S=v((0,q.useState)({name:u,src:p}),2),E=S[0],A=S[1],R=E.name,I=E.src,F=(0,q.useRef)(null);return(0,q.useLayoutEffect)((function(){var e,r,t,n,o=null===(e=g.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,a=null!=p?p:o?("frame",(t=o).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+G(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(C,"/").concat("2302171719000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){F.current||(F.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+G(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":F.current}),l=f({"title":h,"type":m,"_context":i},c);A({name:JSON.stringify({"host":(n=a,L||(L=self.document.createElement("a"),N=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new U(100))),function(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}(L,n,N)).hostname,"bootstrap":_(m),"type":m,"count":O,"attributes":l}),src:a})}}),[O,u,c,p,h,m]),(0,q.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[R]),(0,q.useImperativeHandle)(r,(function(){return{get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}}}),[]),x.createElement(T,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:R,ref:w,ready:!!R,sandbox:i?void 0:d,src:I,title:h}))}));$.displayName="ProxyIframeEmbed";var D=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],K=function(){return!0};function Q(e,r){var t=e.embedCreated,n=e.embedLive,o=e.embedParent,a=e.embedType,i=e.requestResize,u=e.src,l=e.style,c=e.title,s=void 0===c?"Reddit":c,d=e.uuid,p=b(e,D),m=v((0,O.useState)("100%"),2),y=m[0],g=m[1],S=(0,O.useCallback)((function(e){var r=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;var r=e.indexOf("{");return function(e,r){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==r||r(e),null}}(e.substr(r),(function(r){!function(e){var r=h.apply(null,arguments);setTimeout((function(){throw j(r),r}))}(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}(e.data);if("embed-size"==r.type){var t=r.height;i?(i(t),g("100%")):g(t)}}),[i]),x=(0,O.useMemo)((function(){return{embedCreated:t,embedLive:n,embedParent:o,embedType:a,requestResize:i,src:u,title:s,uuid:d}}),[t,n,o,a,i,u,s,d]);return w.createElement($,f(f({ref:r,title:s},p),{},{options:x,type:"reddit",matchesMessagingOrigin:K,messageHandler:S,style:y?f(f({},l),{},{height:y}):l}))}var X=(0,S.forwardRef)(Q);X.displayName="BentoReddit";
var e=Object.create,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,i=function(e){return r(e,"__esModule",{value:!0})},u=function(u){return function(e,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var u,l=n(o),c=0,f=l.length;c<f;c++)u=l[c],a.call(e,u)||"default"===u||r(e,u,{get:function(e){return o[e]}.bind(null,u),enumerable:!(i=t(o,u))||i.enumerable});return e}(i(r(null!=u?e(o(u)):{},"default",u&&u.__esModule&&"default"in u?{get:function(){return u.default},enumerable:!0}:{value:u,enumerable:!0})),u)};function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function c(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 f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){l(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function s(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 d(e,r){if(e){if("string"==typeof e)return s(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,r):void 0}}function v(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,u=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(u)throw o}}return a}}(e,r)||d(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(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 p(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=d(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}!function(e,t){for(var n in i(e),t)r(e,n,{get:t[n],enumerable:!0})}(exports,{BentoReddit:function(){return X},RedditWithRef:function(){return Q}}),Array.isArray;var m=Object.prototype;function y(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function h(e){for(var r,t=null,n="",o=p(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=y(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function j(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}m.hasOwnProperty,m.toString;var g,w=u(require("@bentoproject/core/preact")),O=u(require("@bentoproject/core/preact")),S=u(require("@bentoproject/core/preact")),x=u(require("@bentoproject/core/preact")),q=u(require("@bentoproject/core/preact")),E=u(require("@bentoproject/core/preact")),A=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),R=u(require("@bentoproject/core/preact")),I=u(require("@bentoproject/core/preact")),F=u(require("@bentoproject/core/preact")),z=u(require("@bentoproject/core/preact")),H=u(require("@bentoproject/core/preact")),M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],P=function(){return!1},T=(0,F.forwardRef)((function(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,u=e.matchesMessagingOrigin,l=void 0===u?P:u,c=e.messageHandler,s=e.ready,d=void 0===s||s,v=e.loading,p=e.onReadyState,m=e.sandbox,y=e.src,h=b(e,M),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(v),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,z.useValueRef)(p),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":A)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":A},get node(){return q.current}}}),[]),(0,I.useLayoutEffect)((function(){w||x(!1)}),[w,x]),(0,I.useEffect)((function(){var e=q.current;!j&&e&&(function(e){return!(!e||"about:blank"==e||e.includes("#"))}(e.src)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling))}),[j]),(0,I.useLayoutEffect)((function(){var e=q.current;if(e&&w){var r=function(e){var r=q.current;r&&e.source==r.contentWindow&&l(e.origin)&&c(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,c,w,d]),R.createElement(z.ContainWrapper,f(f({},h),{},{layout:!0,size:!0,paint:!0}),w&&d&&R.createElement("iframe",{allow:t,allowFullScreen:n,frameBorder:"0",loading:g,name:a,onLoad:function(){return x(!0)},part:"iframe",ref:q,sandbox:m,scrolling:"no",src:y,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));T.displayName="IframeEmbed";var k=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},B=k("thirdPartyUrl")||"https://3p.ampproject.net",C=k("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var L,N,U=function(){function e(e){this.t=e,this.l=0,this.ee=0,this.re=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.re[e]},r.get=function(e){var r=this.re[e];if(r)return r.access=++this.ee,r.payload},r.put=function(e,r){this.has(e)||this.l++,this.re[e]={payload:r,access:this.ee},this.te()},r.te=function(){if(!(this.l<=this.t)){var e,r=this.re,t=this.ee+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.l--)}},e}();function _(e){return"".concat(B,"/").concat("2302272113000","/vendor/").concat(e).concat(".js")}function G(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}new Set(["c","v","a","ad"]);var J=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],V={},W=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),$=(0,E.forwardRef)((function(e,r){var t,n,o=e.allow,a=void 0===o?"sync-xhr 'none'":o,i=e.excludeSandbox,u=e.name,l=e.messageHandler,c=e.options,s=e.sandbox,d=void 0===s?W:s,p=e.src,m=e.type,y=e.title,h=void 0===y?m:y,j=b(e,J);if("number"!=typeof n&&(n=0),n+"sync-xhr 'none'".length>(t=a).length||-1===t.indexOf("sync-xhr 'none'",n))throw new Error("'allow' prop must contain \"".concat("sync-xhr 'none'",'". Found "').concat(a,'".'));var g=(0,q.useRef)(null),w=(0,q.useRef)(null),O=(0,q.useMemo)((function(){var e;return V[m]||(V[m]=(e=0,function(){return String(++e)})),V[m]()}),[m]),S=v((0,q.useState)({name:u,src:p}),2),E=S[0],A=S[1],R=E.name,I=E.src,F=(0,q.useRef)(null);return(0,q.useLayoutEffect)((function(){var e,r,t,n,o=null===(e=g.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,a=null!=p?p:o?("frame",(t=o).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+G(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(C,"/").concat("2302272113000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){F.current||(F.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+G(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":F.current}),l=f({"title":h,"type":m,"_context":i},c);A({name:JSON.stringify({"host":(n=a,L||(L=self.document.createElement("a"),N=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new U(100))),function(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}(L,n,N)).hostname,"bootstrap":_(m),"type":m,"count":O,"attributes":l}),src:a})}}),[O,u,c,p,h,m]),(0,q.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[R]),(0,q.useImperativeHandle)(r,(function(){return{get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}}}),[]),x.createElement(T,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:R,ref:w,ready:!!R,sandbox:i?void 0:d,src:I,title:h}))}));$.displayName="ProxyIframeEmbed";var D=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],K=function(){return!0};function Q(e,r){var t=e.embedCreated,n=e.embedLive,o=e.embedParent,a=e.embedType,i=e.requestResize,u=e.src,l=e.style,c=e.title,s=void 0===c?"Reddit":c,d=e.uuid,p=b(e,D),m=v((0,O.useState)("100%"),2),y=m[0],g=m[1],S=(0,O.useCallback)((function(e){var r=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;var r=e.indexOf("{");return function(e,r){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==r||r(e),null}}(e.substr(r),(function(r){!function(e){var r=h.apply(null,arguments);setTimeout((function(){throw j(r),r}))}(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}(e.data);if("embed-size"==r.type){var t=r.height;i?(i(t),g("100%")):g(t)}}),[i]),x=(0,O.useMemo)((function(){return{embedCreated:t,embedLive:n,embedParent:o,embedType:a,requestResize:i,src:u,title:s,uuid:d}}),[t,n,o,a,i,u,s,d]);return w.createElement($,f(f({ref:r,title:s},p),{},{options:x,type:"reddit",matchesMessagingOrigin:K,messageHandler:S,style:y?f(f({},l),{},{height:y}):l}))}var X=(0,S.forwardRef)(Q);X.displayName="BentoReddit";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-preact.js.map

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

function version() {
return "2302171719000";
return "2302272113000";
}

@@ -67,0 +67,0 @@

@@ -23,3 +23,3 @@ // src/core/mode/prod.js

function version() {
return "2302171719000";
return "2302272113000";
}

@@ -26,0 +26,0 @@

;
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:o}=Array,{hasOwnProperty:a,toString:l}=Object.prototype;function i(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function s(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=i(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function c(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as u}from"@bentoproject/core/preact";import{useCallback as m,useMemo as d,useState as f}from"@bentoproject/core/preact";import{forwardRef as p}from"@bentoproject/core/preact";import{createElement as b}from"@bentoproject/core/preact";import{useEffect as g,useImperativeHandle as v,useLayoutEffect as y,useMemo as w,useRef as j,useState as O}from"@bentoproject/core/preact";import{forwardRef as S}from"@bentoproject/core/preact";import{createElement as h}from"@bentoproject/core/preact";import{useCallback as x,useEffect as E,useImperativeHandle as R,useLayoutEffect as H,useRef as F}from"@bentoproject/core/preact";import{forwardRef as P}from"@bentoproject/core/preact";import{ContainWrapper as $,useValueRef as L}from"@bentoproject/core/preact";import{useAmpContext as k,useLoading as z}from"@bentoproject/core/preact";var M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],A=()=>!1,C=P((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=A,messageHandler:u,ready:m=!0,loading:d,onReadyState:f,sandbox:p,src:b}=e,g=n(e,M);const{playable:v}=k(),y=z(d),w="unload"!==y,j=F(!1),O=L(f),S=x((e=>{if(e!==j.current){j.current=e;const t=O.current;null==t||t(e?"complete":"loading")}}),[O]),P=F(null);return R(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return P.current}})),[]),H((()=>{w||S(!1)}),[w,S]),E((()=>{const e=P.current;if(!v&&e){const{src:t}=e;(e=>!(!e||"about:blank"==e||e.includes("#")))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),H((()=>{const e=P.current;if(!e||!w)return;const t=e=>{const t=P.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,w,m]),h($,r(r({},g),{},{layout:!0,size:!0,paint:!0}),w&&m&&h("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:i,onLoad:()=>S(!0),part:"iframe",ref:P,sandbox:p,scrolling:"no",src:b,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));C.displayName="IframeEmbed";var I,T=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=T("thirdPartyUrl")||"https://3p.ampproject.net",N=T("thirdPartyFrameHost")||"ampproject.net";function U(e){return`${q}/2302171719000/vendor/${e}.mjs`}function B(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var G=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],J={},V="sync-xhr 'none'",_=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),D=S((function(e,t){let{allow:o=V,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=_,src:u,type:m,title:d=m}=e,f=n(e,G);if(p=o,"number"!=typeof h&&(h=0),h+(S=V).length>p.length||-1===p.indexOf(S,h))throw new Error(`'allow' prop must contain "${V}". Found "${o}".`);var p,S,h;const x=j(null),E=j(null),R=w((()=>(J[m]||(J[m]=function(){let e=0;return()=>String(++e)}()),J[m]())),[m]),[H,F]=O({name:l,src:u}),{name:P,src:$}=H,L=j(null);return y((()=>{var e,t;const n=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:n?((a=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+B(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${N}/2302171719000/frame.html`):"about:blank";var a;if(l)return void F({name:l,src:o});if(!n)return;L.current||(L.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+B(e)}(n));const i=Object.assign({"location":{"href":n.location.href},"sentinel":L.current}),c=r({"title":d,"type":m,"_context":i},s);var f;F({name:JSON.stringify({"host":(f=o,I||(I=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(I,f)).hostname,"bootstrap":U(m),"type":m,"count":R,"attributes":c}),src:o})}),[R,l,s,u,d,m]),g((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[P]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),b(C,r(r({},f),{},{allow:o,contentRef:x,messageHandler:i,name:P,ref:E,ready:!!P,sandbox:a?void 0:c,src:$,title:d}))}));D.displayName="ProxyIframeEmbed";var K=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Q=()=>!0;function W(e,t){let{embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:p,src:b,style:g,title:v="Reddit",uuid:y}=e,w=n(e,K);const[j,O]=f("100%"),S=m((e=>{const t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(t=>{!function(e){const t=s.apply(null,arguments);setTimeout((()=>{throw c(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;p?(p(e),O("100%")):O(e)}}),[p]),h=d((()=>({embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:p,src:b,title:v,uuid:y})),[o,a,l,i,p,b,v,y]);return u(D,r(r({ref:t,title:v},w),{},{options:h,type:"reddit",matchesMessagingOrigin:Q,messageHandler:S,style:j?r(r({},g),{},{height:j}):g}))}var X=p(W);X.displayName="BentoReddit";export{X as BentoReddit,W as RedditWithRef};
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:o}=Array,{hasOwnProperty:a,toString:l}=Object.prototype;function i(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function s(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=i(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function c(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as u}from"@bentoproject/core/preact";import{useCallback as m,useMemo as d,useState as f}from"@bentoproject/core/preact";import{forwardRef as p}from"@bentoproject/core/preact";import{createElement as b}from"@bentoproject/core/preact";import{useEffect as g,useImperativeHandle as v,useLayoutEffect as y,useMemo as w,useRef as j,useState as O}from"@bentoproject/core/preact";import{forwardRef as S}from"@bentoproject/core/preact";import{createElement as h}from"@bentoproject/core/preact";import{useCallback as x,useEffect as E,useImperativeHandle as R,useLayoutEffect as H,useRef as F}from"@bentoproject/core/preact";import{forwardRef as P}from"@bentoproject/core/preact";import{ContainWrapper as $,useValueRef as L}from"@bentoproject/core/preact";import{useAmpContext as k,useLoading as z}from"@bentoproject/core/preact";var M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],A=()=>!1,C=P((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=A,messageHandler:u,ready:m=!0,loading:d,onReadyState:f,sandbox:p,src:b}=e,g=n(e,M);const{playable:v}=k(),y=z(d),w="unload"!==y,j=F(!1),O=L(f),S=x((e=>{if(e!==j.current){j.current=e;const t=O.current;null==t||t(e?"complete":"loading")}}),[O]),P=F(null);return R(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return P.current}})),[]),H((()=>{w||S(!1)}),[w,S]),E((()=>{const e=P.current;if(!v&&e){const{src:t}=e;(e=>!(!e||"about:blank"==e||e.includes("#")))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),H((()=>{const e=P.current;if(!e||!w)return;const t=e=>{const t=P.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,w,m]),h($,r(r({},g),{},{layout:!0,size:!0,paint:!0}),w&&m&&h("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:i,onLoad:()=>S(!0),part:"iframe",ref:P,sandbox:p,scrolling:"no",src:b,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));C.displayName="IframeEmbed";var I,T=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=T("thirdPartyUrl")||"https://3p.ampproject.net",N=T("thirdPartyFrameHost")||"ampproject.net";function U(e){return`${q}/2302272113000/vendor/${e}.mjs`}function B(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var G=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],J={},V="sync-xhr 'none'",_=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),D=S((function(e,t){let{allow:o=V,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=_,src:u,type:m,title:d=m}=e,f=n(e,G);if(p=o,"number"!=typeof h&&(h=0),h+(S=V).length>p.length||-1===p.indexOf(S,h))throw new Error(`'allow' prop must contain "${V}". Found "${o}".`);var p,S,h;const x=j(null),E=j(null),R=w((()=>(J[m]||(J[m]=function(){let e=0;return()=>String(++e)}()),J[m]())),[m]),[H,F]=O({name:l,src:u}),{name:P,src:$}=H,L=j(null);return y((()=>{var e,t;const n=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:n?((a=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+B(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${N}/2302272113000/frame.html`):"about:blank";var a;if(l)return void F({name:l,src:o});if(!n)return;L.current||(L.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+B(e)}(n));const i=Object.assign({"location":{"href":n.location.href},"sentinel":L.current}),c=r({"title":d,"type":m,"_context":i},s);var f;F({name:JSON.stringify({"host":(f=o,I||(I=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(I,f)).hostname,"bootstrap":U(m),"type":m,"count":R,"attributes":c}),src:o})}),[R,l,s,u,d,m]),g((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[P]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),b(C,r(r({},f),{},{allow:o,contentRef:x,messageHandler:i,name:P,ref:E,ready:!!P,sandbox:a?void 0:c,src:$,title:d}))}));D.displayName="ProxyIframeEmbed";var K=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Q=()=>!0;function W(e,t){let{embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:p,src:b,style:g,title:v="Reddit",uuid:y}=e,w=n(e,K);const[j,O]=f("100%"),S=m((e=>{const t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(t=>{!function(e){const t=s.apply(null,arguments);setTimeout((()=>{throw c(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;p?(p(e),O("100%")):O(e)}}),[p]),h=d((()=>({embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:p,src:b,title:v,uuid:y})),[o,a,l,i,p,b,v,y]);return u(D,r(r({ref:t,title:v},w),{},{options:h,type:"reddit",matchesMessagingOrigin:Q,messageHandler:S,style:j?r(r({},g),{},{height:j}):g}))}var X=p(W);X.displayName="BentoReddit";export{X as BentoReddit,W as RedditWithRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-preact.module.js.map
;
var e=Object.create,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,i=function(e){return r(e,"__esModule",{value:!0})},u=function(u){return function(e,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var u,l=n(o),c=0,f=l.length;c<f;c++)u=l[c],a.call(e,u)||"default"===u||r(e,u,{get:function(e){return o[e]}.bind(null,u),enumerable:!(i=t(o,u))||i.enumerable});return e}(i(r(null!=u?e(o(u)):{},"default",u&&u.__esModule&&"default"in u?{get:function(){return u.default},enumerable:!0}:{value:u,enumerable:!0})),u)};function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function c(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 f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){l(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function s(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 d(e,r){if(e){if("string"==typeof e)return s(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,r):void 0}}function v(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,u=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(u)throw o}}return a}}(e,r)||d(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(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 m(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=d(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}!function(e,t){for(var n in i(e),t)r(e,n,{get:t[n],enumerable:!0})}(exports,{BentoReddit:function(){return X},RedditWithRef:function(){return Q}}),Array.isArray;var p=Object.prototype;function y(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function h(e){for(var r,t=null,n="",o=m(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=y(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function j(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}p.hasOwnProperty,p.toString;var g,w=u(require("@bentoproject/core/react")),O=u(require("@bentoproject/core/react")),S=u(require("@bentoproject/core/react")),x=u(require("@bentoproject/core/react")),q=u(require("@bentoproject/core/react")),E=u(require("@bentoproject/core/react")),A=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),R=u(require("@bentoproject/core/react")),I=u(require("@bentoproject/core/react")),F=u(require("@bentoproject/core/react")),z=u(require("@bentoproject/core/react")),H=u(require("@bentoproject/core/react")),M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],P=function(){return!1},T=(0,F.forwardRef)((function(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,u=e.matchesMessagingOrigin,l=void 0===u?P:u,c=e.messageHandler,s=e.ready,d=void 0===s||s,v=e.loading,m=e.onReadyState,p=e.sandbox,y=e.src,h=b(e,M),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(v),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,z.useValueRef)(m),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":A)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":A},get node(){return q.current}}}),[]),(0,I.useLayoutEffect)((function(){w||x(!1)}),[w,x]),(0,I.useEffect)((function(){var e=q.current;!j&&e&&(function(e){return!(!e||"about:blank"==e||e.includes("#"))}(e.src)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling))}),[j]),(0,I.useLayoutEffect)((function(){var e=q.current;if(e&&w){var r=function(e){var r=q.current;r&&e.source==r.contentWindow&&l(e.origin)&&c(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,c,w,d]),R.createElement(z.ContainWrapper,f(f({},h),{},{layout:!0,size:!0,paint:!0}),w&&d&&R.createElement("iframe",{allow:t,allowFullScreen:n,frameBorder:"0",loading:g,name:a,onLoad:function(){return x(!0)},part:"iframe",ref:q,sandbox:p,scrolling:"no",src:y,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));T.displayName="IframeEmbed";var k=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},B=k("thirdPartyUrl")||"https://3p.ampproject.net",C=k("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var L,N,U=function(){function e(e){this.t=e,this.l=0,this.ee=0,this.re=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.re[e]},r.get=function(e){var r=this.re[e];if(r)return r.access=++this.ee,r.payload},r.put=function(e,r){this.has(e)||this.l++,this.re[e]={payload:r,access:this.ee},this.te()},r.te=function(){if(!(this.l<=this.t)){var e,r=this.re,t=this.ee+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.l--)}},e}();function _(e){return"".concat(B,"/").concat("2302171719000","/vendor/").concat(e).concat(".js")}function G(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}new Set(["c","v","a","ad"]);var J=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],V={},W=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),$=(0,E.forwardRef)((function(e,r){var t,n,o=e.allow,a=void 0===o?"sync-xhr 'none'":o,i=e.excludeSandbox,u=e.name,l=e.messageHandler,c=e.options,s=e.sandbox,d=void 0===s?W:s,m=e.src,p=e.type,y=e.title,h=void 0===y?p:y,j=b(e,J);if("number"!=typeof n&&(n=0),n+"sync-xhr 'none'".length>(t=a).length||-1===t.indexOf("sync-xhr 'none'",n))throw new Error("'allow' prop must contain \"".concat("sync-xhr 'none'",'". Found "').concat(a,'".'));var g=(0,q.useRef)(null),w=(0,q.useRef)(null),O=(0,q.useMemo)((function(){var e;return V[p]||(V[p]=(e=0,function(){return String(++e)})),V[p]()}),[p]),S=v((0,q.useState)({name:u,src:m}),2),E=S[0],A=S[1],R=E.name,I=E.src,F=(0,q.useRef)(null);return(0,q.useLayoutEffect)((function(){var e,r,t,n,o=null===(e=g.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,a=null!=m?m:o?("frame",(t=o).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+G(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(C,"/").concat("2302171719000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){F.current||(F.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+G(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":F.current}),l=f({"title":h,"type":p,"_context":i},c);A({name:JSON.stringify({"host":(n=a,L||(L=self.document.createElement("a"),N=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new U(100))),function(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}(L,n,N)).hostname,"bootstrap":_(p),"type":p,"count":O,"attributes":l}),src:a})}}),[O,u,c,m,h,p]),(0,q.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[R]),(0,q.useImperativeHandle)(r,(function(){return{get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}}}),[]),x.createElement(T,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:R,ref:w,ready:!!R,sandbox:i?void 0:d,src:I,title:h}))}));$.displayName="ProxyIframeEmbed";var D=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],K=function(){return!0};function Q(e,r){var t=e.embedCreated,n=e.embedLive,o=e.embedParent,a=e.embedType,i=e.requestResize,u=e.src,l=e.style,c=e.title,s=void 0===c?"Reddit":c,d=e.uuid,m=b(e,D),p=v((0,O.useState)("100%"),2),y=p[0],g=p[1],S=(0,O.useCallback)((function(e){var r=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;var r=e.indexOf("{");return function(e,r){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==r||r(e),null}}(e.substr(r),(function(r){!function(e){var r=h.apply(null,arguments);setTimeout((function(){throw j(r),r}))}(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}(e.data);if("embed-size"==r.type){var t=r.height;i?(i(t),g("100%")):g(t)}}),[i]),x=(0,O.useMemo)((function(){return{embedCreated:t,embedLive:n,embedParent:o,embedType:a,requestResize:i,src:u,title:s,uuid:d}}),[t,n,o,a,i,u,s,d]);return w.createElement($,f(f({ref:r,title:s},m),{},{options:x,type:"reddit",matchesMessagingOrigin:K,messageHandler:S,style:y?f(f({},l),{},{height:y}):l}))}var X=(0,S.forwardRef)(Q);X.displayName="BentoReddit";
var e=Object.create,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,i=function(e){return r(e,"__esModule",{value:!0})},u=function(u){return function(e,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var u,l=n(o),c=0,f=l.length;c<f;c++)u=l[c],a.call(e,u)||"default"===u||r(e,u,{get:function(e){return o[e]}.bind(null,u),enumerable:!(i=t(o,u))||i.enumerable});return e}(i(r(null!=u?e(o(u)):{},"default",u&&u.__esModule&&"default"in u?{get:function(){return u.default},enumerable:!0}:{value:u,enumerable:!0})),u)};function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function c(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 f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){l(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function s(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 d(e,r){if(e){if("string"==typeof e)return s(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,r):void 0}}function v(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a=[],i=!0,u=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(u)throw o}}return a}}(e,r)||d(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(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 m(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=d(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}!function(e,t){for(var n in i(e),t)r(e,n,{get:t[n],enumerable:!0})}(exports,{BentoReddit:function(){return X},RedditWithRef:function(){return Q}}),Array.isArray;var p=Object.prototype;function y(e){var r=Object.getOwnPropertyDescriptor(e,"message");if(null!=r&&r.writable)return e;var t=e.message,n=e.stack,o=new Error(t);for(var a in e)o[a]=e[a];return o.stack=n,o}function h(e){for(var r,t=null,n="",o=m(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=y(a):(n&&(n+=" "),n+=a)}return t?n&&(t.message=n+": "+t.message):t=new Error(n),t}function j(e){var r,t;null===(r=(t=self).__AMP_REPORT_ERROR)||void 0===r||r.call(t,e)}p.hasOwnProperty,p.toString;var g,w=u(require("@bentoproject/core/react")),O=u(require("@bentoproject/core/react")),S=u(require("@bentoproject/core/react")),x=u(require("@bentoproject/core/react")),q=u(require("@bentoproject/core/react")),E=u(require("@bentoproject/core/react")),A=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),R=u(require("@bentoproject/core/react")),I=u(require("@bentoproject/core/react")),F=u(require("@bentoproject/core/react")),z=u(require("@bentoproject/core/react")),H=u(require("@bentoproject/core/react")),M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],P=function(){return!1},T=(0,F.forwardRef)((function(e,r){var t=e.allow,n=e.allowFullScreen,o=e.iframeStyle,a=e.name,i=e.title,u=e.matchesMessagingOrigin,l=void 0===u?P:u,c=e.messageHandler,s=e.ready,d=void 0===s||s,v=e.loading,m=e.onReadyState,p=e.sandbox,y=e.src,h=b(e,M),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(v),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,z.useValueRef)(m),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":A)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":A},get node(){return q.current}}}),[]),(0,I.useLayoutEffect)((function(){w||x(!1)}),[w,x]),(0,I.useEffect)((function(){var e=q.current;!j&&e&&(function(e){return!(!e||"about:blank"==e||e.includes("#"))}(e.src)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling))}),[j]),(0,I.useLayoutEffect)((function(){var e=q.current;if(e&&w){var r=function(e){var r=q.current;r&&e.source==r.contentWindow&&l(e.origin)&&c(e)},t=e.ownerDocument.defaultView;return t.addEventListener("message",r),function(){return t.removeEventListener("message",r)}}}),[l,c,w,d]),R.createElement(z.ContainWrapper,f(f({},h),{},{layout:!0,size:!0,paint:!0}),w&&d&&R.createElement("iframe",{allow:t,allowFullScreen:n,frameBorder:"0",loading:g,name:a,onLoad:function(){return x(!0)},part:"iframe",ref:q,sandbox:p,scrolling:"no",src:y,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));T.displayName="IframeEmbed";var k=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},B=k("thirdPartyUrl")||"https://3p.ampproject.net",C=k("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var L,N,U=function(){function e(e){this.t=e,this.l=0,this.ee=0,this.re=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.re[e]},r.get=function(e){var r=this.re[e];if(r)return r.access=++this.ee,r.payload},r.put=function(e,r){this.has(e)||this.l++,this.re[e]={payload:r,access:this.ee},this.te()},r.te=function(){if(!(this.l<=this.t)){var e,r=this.re,t=this.ee+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.l--)}},e}();function _(e){return"".concat(B,"/").concat("2302272113000","/vendor/").concat(e).concat(".js")}function G(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}new Set(["c","v","a","ad"]);var J=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],V={},W=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),$=(0,E.forwardRef)((function(e,r){var t,n,o=e.allow,a=void 0===o?"sync-xhr 'none'":o,i=e.excludeSandbox,u=e.name,l=e.messageHandler,c=e.options,s=e.sandbox,d=void 0===s?W:s,m=e.src,p=e.type,y=e.title,h=void 0===y?p:y,j=b(e,J);if("number"!=typeof n&&(n=0),n+"sync-xhr 'none'".length>(t=a).length||-1===t.indexOf("sync-xhr 'none'",n))throw new Error("'allow' prop must contain \"".concat("sync-xhr 'none'",'". Found "').concat(a,'".'));var g=(0,q.useRef)(null),w=(0,q.useRef)(null),O=(0,q.useMemo)((function(){var e;return V[p]||(V[p]=(e=0,function(){return String(++e)})),V[p]()}),[p]),S=v((0,q.useState)({name:u,src:m}),2),E=S[0],A=S[1],R=E.name,I=E.src,F=(0,q.useRef)(null);return(0,q.useLayoutEffect)((function(){var e,r,t,n,o=null===(e=g.current)||void 0===e||null===(r=e.ownerDocument)||void 0===r?void 0:r.defaultView,a=null!=m?m:o?("frame",(t=o).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+G(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(C,"/").concat("2302272113000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){F.current||(F.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+G(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":F.current}),l=f({"title":h,"type":p,"_context":i},c);A({name:JSON.stringify({"host":(n=a,L||(L=self.document.createElement("a"),N=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new U(100))),function(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}(L,n,N)).hostname,"bootstrap":_(p),"type":p,"count":O,"attributes":l}),src:a})}}),[O,u,c,m,h,p]),(0,q.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[R]),(0,q.useImperativeHandle)(r,(function(){return{get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}}}),[]),x.createElement(T,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:R,ref:w,ready:!!R,sandbox:i?void 0:d,src:I,title:h}))}));$.displayName="ProxyIframeEmbed";var D=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],K=function(){return!0};function Q(e,r){var t=e.embedCreated,n=e.embedLive,o=e.embedParent,a=e.embedType,i=e.requestResize,u=e.src,l=e.style,c=e.title,s=void 0===c?"Reddit":c,d=e.uuid,m=b(e,D),p=v((0,O.useState)("100%"),2),y=p[0],g=p[1],S=(0,O.useCallback)((function(e){var r=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;var r=e.indexOf("{");return function(e,r){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==r||r(e),null}}(e.substr(r),(function(r){!function(e){var r=h.apply(null,arguments);setTimeout((function(){throw j(r),r}))}(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(r.message)))}))}(e.data);if("embed-size"==r.type){var t=r.height;i?(i(t),g("100%")):g(t)}}),[i]),x=(0,O.useMemo)((function(){return{embedCreated:t,embedLive:n,embedParent:o,embedType:a,requestResize:i,src:u,title:s,uuid:d}}),[t,n,o,a,i,u,s,d]);return w.createElement($,f(f({ref:r,title:s},m),{},{options:x,type:"reddit",matchesMessagingOrigin:K,messageHandler:S,style:y?f(f({},l),{},{height:y}):l}))}var X=(0,S.forwardRef)(Q);X.displayName="BentoReddit";
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.js.map

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

function version() {
return "2302171719000";
return "2302272113000";
}

@@ -67,0 +67,0 @@

@@ -23,3 +23,3 @@ // src/core/mode/prod.js

function version() {
return "2302171719000";
return "2302272113000";
}

@@ -26,0 +26,0 @@

;
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:o}=Array,{hasOwnProperty:a,toString:l}=Object.prototype;function i(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function s(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=i(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function c(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as u}from"@bentoproject/core/react";import{useCallback as m,useMemo as d,useState as f}from"@bentoproject/core/react";import{forwardRef as b}from"@bentoproject/core/react";import{createElement as p}from"@bentoproject/core/react";import{useEffect as g,useImperativeHandle as v,useLayoutEffect as y,useMemo as w,useRef as j,useState as O}from"@bentoproject/core/react";import{forwardRef as S}from"@bentoproject/core/react";import{createElement as h}from"@bentoproject/core/react";import{useCallback as x,useEffect as E,useImperativeHandle as R,useLayoutEffect as H,useRef as F}from"@bentoproject/core/react";import{forwardRef as P}from"@bentoproject/core/react";import{ContainWrapper as $,useValueRef as L}from"@bentoproject/core/react";import{useAmpContext as k,useLoading as z}from"@bentoproject/core/react";var M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],A=()=>!1,C=P((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=A,messageHandler:u,ready:m=!0,loading:d,onReadyState:f,sandbox:b,src:p}=e,g=n(e,M);const{playable:v}=k(),y=z(d),w="unload"!==y,j=F(!1),O=L(f),S=x((e=>{if(e!==j.current){j.current=e;const t=O.current;null==t||t(e?"complete":"loading")}}),[O]),P=F(null);return R(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return P.current}})),[]),H((()=>{w||S(!1)}),[w,S]),E((()=>{const e=P.current;if(!v&&e){const{src:t}=e;(e=>!(!e||"about:blank"==e||e.includes("#")))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),H((()=>{const e=P.current;if(!e||!w)return;const t=e=>{const t=P.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,w,m]),h($,r(r({},g),{},{layout:!0,size:!0,paint:!0}),w&&m&&h("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:i,onLoad:()=>S(!0),part:"iframe",ref:P,sandbox:b,scrolling:"no",src:p,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));C.displayName="IframeEmbed";var I,T=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=T("thirdPartyUrl")||"https://3p.ampproject.net",N=T("thirdPartyFrameHost")||"ampproject.net";function U(e){return`${q}/2302171719000/vendor/${e}.mjs`}function B(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var G=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],J={},V="sync-xhr 'none'",_=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),D=S((function(e,t){let{allow:o=V,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=_,src:u,type:m,title:d=m}=e,f=n(e,G);if(b=o,"number"!=typeof h&&(h=0),h+(S=V).length>b.length||-1===b.indexOf(S,h))throw new Error(`'allow' prop must contain "${V}". Found "${o}".`);var b,S,h;const x=j(null),E=j(null),R=w((()=>(J[m]||(J[m]=function(){let e=0;return()=>String(++e)}()),J[m]())),[m]),[H,F]=O({name:l,src:u}),{name:P,src:$}=H,L=j(null);return y((()=>{var e,t;const n=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:n?((a=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+B(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${N}/2302171719000/frame.html`):"about:blank";var a;if(l)return void F({name:l,src:o});if(!n)return;L.current||(L.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+B(e)}(n));const i=Object.assign({"location":{"href":n.location.href},"sentinel":L.current}),c=r({"title":d,"type":m,"_context":i},s);var f;F({name:JSON.stringify({"host":(f=o,I||(I=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(I,f)).hostname,"bootstrap":U(m),"type":m,"count":R,"attributes":c}),src:o})}),[R,l,s,u,d,m]),g((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[P]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),p(C,r(r({},f),{},{allow:o,contentRef:x,messageHandler:i,name:P,ref:E,ready:!!P,sandbox:a?void 0:c,src:$,title:d}))}));D.displayName="ProxyIframeEmbed";var K=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Q=()=>!0;function W(e,t){let{embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,style:g,title:v="Reddit",uuid:y}=e,w=n(e,K);const[j,O]=f("100%"),S=m((e=>{const t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(t=>{!function(e){const t=s.apply(null,arguments);setTimeout((()=>{throw c(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;b?(b(e),O("100%")):O(e)}}),[b]),h=d((()=>({embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,title:v,uuid:y})),[o,a,l,i,b,p,v,y]);return u(D,r(r({ref:t,title:v},w),{},{options:h,type:"reddit",matchesMessagingOrigin:Q,messageHandler:S,style:j?r(r({},g),{},{height:j}):g}))}var X=b(W);X.displayName="BentoReddit";export{X as BentoReddit,W as RedditWithRef};
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:o}=Array,{hasOwnProperty:a,toString:l}=Object.prototype;function i(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function s(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=i(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function c(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as u}from"@bentoproject/core/react";import{useCallback as m,useMemo as d,useState as f}from"@bentoproject/core/react";import{forwardRef as b}from"@bentoproject/core/react";import{createElement as p}from"@bentoproject/core/react";import{useEffect as g,useImperativeHandle as v,useLayoutEffect as y,useMemo as w,useRef as j,useState as O}from"@bentoproject/core/react";import{forwardRef as S}from"@bentoproject/core/react";import{createElement as h}from"@bentoproject/core/react";import{useCallback as x,useEffect as E,useImperativeHandle as R,useLayoutEffect as H,useRef as F}from"@bentoproject/core/react";import{forwardRef as P}from"@bentoproject/core/react";import{ContainWrapper as $,useValueRef as L}from"@bentoproject/core/react";import{useAmpContext as k,useLoading as z}from"@bentoproject/core/react";var M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],A=()=>!1,C=P((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=A,messageHandler:u,ready:m=!0,loading:d,onReadyState:f,sandbox:b,src:p}=e,g=n(e,M);const{playable:v}=k(),y=z(d),w="unload"!==y,j=F(!1),O=L(f),S=x((e=>{if(e!==j.current){j.current=e;const t=O.current;null==t||t(e?"complete":"loading")}}),[O]),P=F(null);return R(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return P.current}})),[]),H((()=>{w||S(!1)}),[w,S]),E((()=>{const e=P.current;if(!v&&e){const{src:t}=e;(e=>!(!e||"about:blank"==e||e.includes("#")))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[v]),H((()=>{const e=P.current;if(!e||!w)return;const t=e=>{const t=P.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,w,m]),h($,r(r({},g),{},{layout:!0,size:!0,paint:!0}),w&&m&&h("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:i,onLoad:()=>S(!0),part:"iframe",ref:P,sandbox:b,scrolling:"no",src:p,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));C.displayName="IframeEmbed";var I,T=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=T("thirdPartyUrl")||"https://3p.ampproject.net",N=T("thirdPartyFrameHost")||"ampproject.net";function U(e){return`${q}/2302272113000/vendor/${e}.mjs`}function B(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var G=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],J={},V="sync-xhr 'none'",_=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),D=S((function(e,t){let{allow:o=V,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=_,src:u,type:m,title:d=m}=e,f=n(e,G);if(b=o,"number"!=typeof h&&(h=0),h+(S=V).length>b.length||-1===b.indexOf(S,h))throw new Error(`'allow' prop must contain "${V}". Found "${o}".`);var b,S,h;const x=j(null),E=j(null),R=w((()=>(J[m]||(J[m]=function(){let e=0;return()=>String(++e)}()),J[m]())),[m]),[H,F]=O({name:l,src:u}),{name:P,src:$}=H,L=j(null);return y((()=>{var e,t;const n=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:n?((a=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+B(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${N}/2302272113000/frame.html`):"about:blank";var a;if(l)return void F({name:l,src:o});if(!n)return;L.current||(L.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+B(e)}(n));const i=Object.assign({"location":{"href":n.location.href},"sentinel":L.current}),c=r({"title":d,"type":m,"_context":i},s);var f;F({name:JSON.stringify({"host":(f=o,I||(I=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(I,f)).hostname,"bootstrap":U(m),"type":m,"count":R,"attributes":c}),src:o})}),[R,l,s,u,d,m]),g((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[P]),v(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),p(C,r(r({},f),{},{allow:o,contentRef:x,messageHandler:i,name:P,ref:E,ready:!!P,sandbox:a?void 0:c,src:$,title:d}))}));D.displayName="ProxyIframeEmbed";var K=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Q=()=>!0;function W(e,t){let{embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,style:g,title:v="Reddit",uuid:y}=e,w=n(e,K);const[j,O]=f("100%"),S=m((e=>{const t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(t=>{!function(e){const t=s.apply(null,arguments);setTimeout((()=>{throw c(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;b?(b(e),O("100%")):O(e)}}),[b]),h=d((()=>({embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,title:v,uuid:y})),[o,a,l,i,b,p,v,y]);return u(D,r(r({ref:t,title:v},w),{},{options:h,type:"reddit",matchesMessagingOrigin:Q,messageHandler:S,style:j?r(r({},g),{},{height:j}):g}))}var X=b(W);X.displayName="BentoReddit";export{X as BentoReddit,W as RedditWithRef};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.module.js.map
;
var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,u=function(e){return t(e,"__esModule",{value:!0})},a=function(a){return function(e,o,u){if(o&&"object"==typeof o||"function"==typeof o)for(var a,l=n(o),c=0,f=l.length;c<f;c++)a=l[c],i.call(e,a)||"default"===a||t(e,a,{get:function(e){return o[e]}.bind(null,a),enumerable:!(u=r(o,a))||u.enumerable});return e}(u(t(null!=a?e(o(a)):{},"default",a&&a.__esModule&&"default"in a?{get:function(){return a.default},enumerable:!0}:{value:a,enumerable:!0})),a)};function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(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 p(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function j(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}!function(e,r){for(var n in u(e),r)t(e,n,{get:r[n],enumerable:!0})}(exports,{defineElement:function(){return oe}}),Array.isArray;var g=Object.prototype;function w(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var i in e)o[i]=e[i];return o.stack=n,o}function O(e){for(var t,r=null,n="",o=j(arguments,!0);!(t=o()).done;){var i=t.value;i instanceof Error&&!r?r=w(i):(n&&(n+=" "),n+=i)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function S(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}g.hasOwnProperty,g.toString;var x,q=a(require("@bentoproject/core")),E=a(require("@bentoproject/core")),R=a(require("@bentoproject/core")),A=a(require("@bentoproject/core")),I=a(require("@bentoproject/core")),T=a(require("@bentoproject/core")),P=(d(x={},"auto",0),d(x,"lazy",1),d(x,"eager",2),d(x,"unload",3),"loading"),F=a(require("@bentoproject/core")),z=a(require("@bentoproject/core")),H=a(require("@bentoproject/core")),M=a(require("@bentoproject/core")),B=a(require("@bentoproject/core")),C=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],L=function(){return!1},k=(0,H.forwardRef)((function(e,t){var r=e.allow,n=e.allowFullScreen,o=e.iframeStyle,i=e.name,u=e.title,a=e.matchesMessagingOrigin,l=void 0===a?L:a,c=e.messageHandler,f=e.ready,s=void 0===f||f,d=e.loading,b=e.onReadyState,m=e.sandbox,p=e.src,y=h(e,C),j=(0,B.useAmpContext)().playable,g=(0,B.useLoading)(d),w="unload"!==g,O=(0,z.useRef)(!1),S=(0,M.useValueRef)(b),x=(0,z.useCallback)((function(e){if(e!==O.current){O.current=e;var t=S.current;null==t||t(e?"complete":P)}}),[S]),q=(0,z.useRef)(null);return(0,z.useImperativeHandle)(t,(function(){return{get readyState(){return O.current?"complete":P},get node(){return q.current}}}),[]),(0,z.useLayoutEffect)((function(){w||x(!1)}),[w,x]),(0,z.useEffect)((function(){var e=q.current;!j&&e&&(function(e){return!(!e||"about:blank"==e||e.includes("#"))}(e.src)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling))}),[j]),(0,z.useLayoutEffect)((function(){var e=q.current;if(e&&w){var t=function(e){var t=q.current;t&&e.source==t.contentWindow&&l(e.origin)&&c(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,c,w,s]),F.createElement(M.ContainWrapper,v(v({},y),{},{layout:!0,size:!0,paint:!0}),w&&s&&F.createElement("iframe",{allow:r,allowFullScreen:n,frameBorder:"0",loading:g,name:i,onLoad:function(){return x(!0)},part:"iframe",ref:q,sandbox:m,scrolling:"no",src:p,style:v(v({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:u}))}));k.displayName="IframeEmbed";var N=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},U=N("thirdPartyUrl")||"https://3p.ampproject.net",_=N("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var G,J,D=function(){function e(e){this.t=e,this.l=0,this.ee=0,this.re=Object.create(null)}var t=e.prototype;return t.has=function(e){return!!this.re[e]},t.get=function(e){var t=this.re[e];if(t)return t.access=++this.ee,t.payload},t.put=function(e,t){this.has(e)||this.l++,this.re[e]={payload:t,access:this.ee},this.te()},t.te=function(){if(!(this.l<=this.t)){var e,t=this.re,r=this.ee+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.l--)}},e}();function V(e){return"".concat(U,"/").concat("2302171719000","/vendor/").concat(e).concat(".js")}function $(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}new Set(["c","v","a","ad"]);var K=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],Q={},W=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),X=(0,T.forwardRef)((function(e,t){var r,n,o=e.allow,i=void 0===o?"sync-xhr 'none'":o,u=e.excludeSandbox,a=e.name,l=e.messageHandler,c=e.options,f=e.sandbox,s=void 0===f?W:f,d=e.src,b=e.type,m=e.title,p=void 0===m?b:m,j=h(e,K);if("number"!=typeof n&&(n=0),n+"sync-xhr 'none'".length>(r=i).length||-1===r.indexOf("sync-xhr 'none'",n))throw new Error("'allow' prop must contain \"".concat("sync-xhr 'none'",'". Found "').concat(i,'".'));var g=(0,I.useRef)(null),w=(0,I.useRef)(null),O=(0,I.useMemo)((function(){var e;return Q[b]||(Q[b]=(e=0,function(){return String(++e)})),Q[b]()}),[b]),S=y((0,I.useState)({name:a,src:d}),2),x=S[0],q=S[1],E=x.name,R=x.src,T=(0,I.useRef)(null);return(0,I.useLayoutEffect)((function(){var e,t,r,n,o=null===(e=g.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,i=null!=d?d:o?("frame",(r=o).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=r.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+$(r),"https://"+r.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(_,"/").concat("2302171719000","/")+"".concat("frame",".html")):"about:blank";if(a)q({name:a,src:i});else if(o){T.current||(T.current=function(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+$(e)}(o));var u=Object.assign({"location":{"href":o.location.href},"sentinel":T.current}),l=v({"title":p,"type":b,"_context":u},c);q({name:JSON.stringify({"host":(n=i,G||(G=self.document.createElement("a"),J=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new D(100))),function(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 i=o;return r&&r.put(t,i),i}(G,n,J)).hostname,"bootstrap":V(b),"type":b,"count":O,"attributes":l}),src:i})}}),[O,a,c,d,p,b]),(0,I.useEffect)((function(){var e,t=null===(e=w.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),(0,I.useImperativeHandle)(t,(function(){return{get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}}}),[]),A.createElement(k,v(v({},j),{},{allow:i,contentRef:g,messageHandler:l,name:E,ref:w,ready:!!E,sandbox:u?void 0:s,src:R,title:p}))}));X.displayName="ProxyIframeEmbed";var Y=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Z=function(){return!0},ee=(0,R.forwardRef)((function(e,t){var r=e.embedCreated,n=e.embedLive,o=e.embedParent,i=e.embedType,u=e.requestResize,a=e.src,l=e.style,c=e.title,f=void 0===c?"Reddit":c,s=e.uuid,d=h(e,Y),b=y((0,E.useState)("100%"),2),m=b[0],p=b[1],j=(0,E.useCallback)((function(e){var t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;var t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(function(t){!function(e){var t=O.apply(null,arguments);setTimeout((function(){throw S(t),t}))}(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.message)))}))}(e.data);if("embed-size"==t.type){var r=t.height;u?(u(r),p("100%")):p(r)}}),[u]),g=(0,E.useMemo)((function(){return{embedCreated:r,embedLive:n,embedParent:o,embedType:i,requestResize:u,src:a,title:f,uuid:s}}),[r,n,o,i,u,a,f,s]);return q.createElement(X,v(v({ref:t,title:f},d),{},{options:g,type:"reddit",matchesMessagingOrigin:Z,messageHandler:j,style:m?v(v({},l),{},{height:m}):l}))}));ee.displayName="BentoReddit";var te=a(require("@bentoproject/core")),re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,te.PreactBaseElement);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=c(t);if(r){var o=c(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return s(this,e)});function o(){return n.apply(this,arguments)}return o}();re.Component=ee,re.props={"src":{attr:"data-src"},"embedType":{attr:"data-embedtype"},"uuid":{attr:"data-uuid"},"embedCreated":{attr:"data-embedcreated"},"embedParent":{attr:"data-embedparent"},"embedLive":{attr:"data-embedlive"},"title":{attr:"title"}},re.layoutSizeDefined=!0,re.usesShadowDom=!0;var ne=a(require("@bentoproject/core"));function oe(e){(0,ne.defineBentoElement)("bento-reddit",re,e)}
var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,u=function(e){return t(e,"__esModule",{value:!0})},a=function(a){return function(e,o,u){if(o&&"object"==typeof o||"function"==typeof o)for(var a,l=n(o),c=0,f=l.length;c<f;c++)a=l[c],i.call(e,a)||"default"===a||t(e,a,{get:function(e){return o[e]}.bind(null,a),enumerable:!(u=r(o,a))||u.enumerable});return e}(u(t(null!=a?e(o(a)):{},"default",a&&a.__esModule&&"default"in a?{get:function(){return a.default},enumerable:!0}:{value:a,enumerable:!0})),a)};function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(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 p(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);u=!0);}catch(e){a=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function j(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}!function(e,r){for(var n in u(e),r)t(e,n,{get:r[n],enumerable:!0})}(exports,{defineElement:function(){return oe}}),Array.isArray;var g=Object.prototype;function w(e){var t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;var r=e.message,n=e.stack,o=new Error(r);for(var i in e)o[i]=e[i];return o.stack=n,o}function O(e){for(var t,r=null,n="",o=j(arguments,!0);!(t=o()).done;){var i=t.value;i instanceof Error&&!r?r=w(i):(n&&(n+=" "),n+=i)}return r?n&&(r.message=n+": "+r.message):r=new Error(n),r}function S(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}g.hasOwnProperty,g.toString;var x,q=a(require("@bentoproject/core")),E=a(require("@bentoproject/core")),R=a(require("@bentoproject/core")),A=a(require("@bentoproject/core")),I=a(require("@bentoproject/core")),T=a(require("@bentoproject/core")),P=(d(x={},"auto",0),d(x,"lazy",1),d(x,"eager",2),d(x,"unload",3),"loading"),F=a(require("@bentoproject/core")),z=a(require("@bentoproject/core")),H=a(require("@bentoproject/core")),M=a(require("@bentoproject/core")),B=a(require("@bentoproject/core")),C=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],L=function(){return!1},k=(0,H.forwardRef)((function(e,t){var r=e.allow,n=e.allowFullScreen,o=e.iframeStyle,i=e.name,u=e.title,a=e.matchesMessagingOrigin,l=void 0===a?L:a,c=e.messageHandler,f=e.ready,s=void 0===f||f,d=e.loading,b=e.onReadyState,m=e.sandbox,p=e.src,y=h(e,C),j=(0,B.useAmpContext)().playable,g=(0,B.useLoading)(d),w="unload"!==g,O=(0,z.useRef)(!1),S=(0,M.useValueRef)(b),x=(0,z.useCallback)((function(e){if(e!==O.current){O.current=e;var t=S.current;null==t||t(e?"complete":P)}}),[S]),q=(0,z.useRef)(null);return(0,z.useImperativeHandle)(t,(function(){return{get readyState(){return O.current?"complete":P},get node(){return q.current}}}),[]),(0,z.useLayoutEffect)((function(){w||x(!1)}),[w,x]),(0,z.useEffect)((function(){var e=q.current;!j&&e&&(function(e){return!(!e||"about:blank"==e||e.includes("#"))}(e.src)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling))}),[j]),(0,z.useLayoutEffect)((function(){var e=q.current;if(e&&w){var t=function(e){var t=q.current;t&&e.source==t.contentWindow&&l(e.origin)&&c(e)},r=e.ownerDocument.defaultView;return r.addEventListener("message",t),function(){return r.removeEventListener("message",t)}}}),[l,c,w,s]),F.createElement(M.ContainWrapper,v(v({},y),{},{layout:!0,size:!0,paint:!0}),w&&s&&F.createElement("iframe",{allow:r,allowFullScreen:n,frameBorder:"0",loading:g,name:i,onLoad:function(){return x(!0)},part:"iframe",ref:q,sandbox:m,scrolling:"no",src:p,style:v(v({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:u}))}));k.displayName="IframeEmbed";var N=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},U=N("thirdPartyUrl")||"https://3p.ampproject.net",_=N("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var G,J,D=function(){function e(e){this.t=e,this.l=0,this.ee=0,this.re=Object.create(null)}var t=e.prototype;return t.has=function(e){return!!this.re[e]},t.get=function(e){var t=this.re[e];if(t)return t.access=++this.ee,t.payload},t.put=function(e,t){this.has(e)||this.l++,this.re[e]={payload:t,access:this.ee},this.te()},t.te=function(){if(!(this.l<=this.t)){var e,t=this.re,r=this.ee+1;for(var n in t){var o=t[n].access;o<r&&(r=o,e=n)}void 0!==e&&(delete t[e],this.l--)}},e}();function V(e){return"".concat(U,"/").concat("2302272113000","/vendor/").concat(e).concat(".js")}function $(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}new Set(["c","v","a","ad"]);var K=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],Q={},W=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),X=(0,T.forwardRef)((function(e,t){var r,n,o=e.allow,i=void 0===o?"sync-xhr 'none'":o,u=e.excludeSandbox,a=e.name,l=e.messageHandler,c=e.options,f=e.sandbox,s=void 0===f?W:f,d=e.src,b=e.type,m=e.title,p=void 0===m?b:m,j=h(e,K);if("number"!=typeof n&&(n=0),n+"sync-xhr 'none'".length>(r=i).length||-1===r.indexOf("sync-xhr 'none'",n))throw new Error("'allow' prop must contain \"".concat("sync-xhr 'none'",'". Found "').concat(i,'".'));var g=(0,I.useRef)(null),w=(0,I.useRef)(null),O=(0,I.useMemo)((function(){var e;return Q[b]||(Q[b]=(e=0,function(){return String(++e)})),Q[b]()}),[b]),S=y((0,I.useState)({name:a,src:d}),2),x=S[0],q=S[1],E=x.name,R=x.src,T=(0,I.useRef)(null);return(0,I.useLayoutEffect)((function(){var e,t,r,n,o=null===(e=g.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,i=null!=d?d:o?("frame",(r=o).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=r.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+$(r),"https://"+r.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(_,"/").concat("2302272113000","/")+"".concat("frame",".html")):"about:blank";if(a)q({name:a,src:i});else if(o){T.current||(T.current=function(e){for(var t=0,r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+$(e)}(o));var u=Object.assign({"location":{"href":o.location.href},"sentinel":T.current}),l=v({"title":p,"type":b,"_context":u},c);q({name:JSON.stringify({"host":(n=i,G||(G=self.document.createElement("a"),J=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new D(100))),function(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 i=o;return r&&r.put(t,i),i}(G,n,J)).hostname,"bootstrap":V(b),"type":b,"count":O,"attributes":l}),src:i})}}),[O,a,c,d,p,b]),(0,I.useEffect)((function(){var e,t=null===(e=w.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[E]),(0,I.useImperativeHandle)(t,(function(){return{get readyState(){var e;return null===(e=w.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=w.current)||void 0===e?void 0:e.node}}}),[]),A.createElement(k,v(v({},j),{},{allow:i,contentRef:g,messageHandler:l,name:E,ref:w,ready:!!E,sandbox:u?void 0:s,src:R,title:p}))}));X.displayName="ProxyIframeEmbed";var Y=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Z=function(){return!0},ee=(0,R.forwardRef)((function(e,t){var r=e.embedCreated,n=e.embedLive,o=e.embedParent,i=e.embedType,u=e.requestResize,a=e.src,l=e.style,c=e.title,f=void 0===c?"Reddit":c,s=e.uuid,d=h(e,Y),b=y((0,E.useState)("100%"),2),m=b[0],p=b[1],j=(0,E.useCallback)((function(e){var t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;var t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(function(t){!function(e){var t=O.apply(null,arguments);setTimeout((function(){throw S(t),t}))}(new Error("MESSAGING: Failed to parse message: ".concat(e,"\n").concat(t.message)))}))}(e.data);if("embed-size"==t.type){var r=t.height;u?(u(r),p("100%")):p(r)}}),[u]),g=(0,E.useMemo)((function(){return{embedCreated:r,embedLive:n,embedParent:o,embedType:i,requestResize:u,src:a,title:f,uuid:s}}),[r,n,o,i,u,a,f,s]);return q.createElement(X,v(v({ref:t,title:f},d),{},{options:g,type:"reddit",matchesMessagingOrigin:Z,messageHandler:j,style:m?v(v({},l),{},{height:m}):l}))}));ee.displayName="BentoReddit";var te=a(require("@bentoproject/core")),re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,te.PreactBaseElement);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=c(t);if(r){var o=c(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return s(this,e)});function o(){return n.apply(this,arguments)}return o}();re.Component=ee,re.props={"src":{attr:"data-src"},"embedType":{attr:"data-embedtype"},"uuid":{attr:"data-uuid"},"embedCreated":{attr:"data-embedcreated"},"embedParent":{attr:"data-embedparent"},"embedLive":{attr:"data-embedlive"},"title":{attr:"title"}},re.layoutSizeDefined=!0,re.usesShadowDom=!0;var ne=a(require("@bentoproject/core"));function oe(e){(0,ne.defineBentoElement)("bento-reddit",re,e)}
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=web-component.js.map

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

function version() {
return "2302171719000";
return "2302272113000";
}

@@ -64,0 +64,0 @@

@@ -23,3 +23,3 @@ // src/core/mode/prod.js

function version() {
return "2302171719000";
return "2302272113000";
}

@@ -26,0 +26,0 @@

;
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:o}=Array,{hasOwnProperty:a,toString:l}=Object.prototype;function i(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function s(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=i(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function c(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as u}from"@bentoproject/core";import{useCallback as d,useMemo as m,useState as f}from"@bentoproject/core";import{forwardRef as b}from"@bentoproject/core";import{createElement as p}from"@bentoproject/core";import{useEffect as v,useImperativeHandle as g,useLayoutEffect as y,useMemo as w,useRef as j,useState as O}from"@bentoproject/core";import{forwardRef as S}from"@bentoproject/core";import{createElement as h}from"@bentoproject/core";import{useCallback as x,useEffect as E,useImperativeHandle as R,useLayoutEffect as H,useRef as P}from"@bentoproject/core";import{forwardRef as F}from"@bentoproject/core";import{ContainWrapper as L,useValueRef as $}from"@bentoproject/core";import{useAmpContext as k,useLoading as z}from"@bentoproject/core";var C=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],M=()=>!1,T=F((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=M,messageHandler:u,ready:d=!0,loading:m,onReadyState:f,sandbox:b,src:p}=e,v=n(e,C);const{playable:g}=k(),y=z(m),w="unload"!==y,j=P(!1),O=$(f),S=x((e=>{if(e!==j.current){j.current=e;const t=O.current;null==t||t(e?"complete":"loading")}}),[O]),F=P(null);return R(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return F.current}})),[]),H((()=>{w||S(!1)}),[w,S]),E((()=>{const e=F.current;if(!g&&e){const{src:t}=e;(e=>!(!e||"about:blank"==e||e.includes("#")))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[g]),H((()=>{const e=F.current;if(!e||!w)return;const t=e=>{const t=F.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,w,d]),h(L,r(r({},v),{},{layout:!0,size:!0,paint:!0}),w&&d&&h("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:i,onLoad:()=>S(!0),part:"iframe",ref:F,sandbox:b,scrolling:"no",src:p,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));T.displayName="IframeEmbed";var A,I=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=I("thirdPartyUrl")||"https://3p.ampproject.net",N=I("thirdPartyFrameHost")||"ampproject.net";function U(e){return`${q}/2302171719000/vendor/${e}.mjs`}function B(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var G=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],J={},V="sync-xhr 'none'",_=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),D=S((function(e,t){let{allow:o=V,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=_,src:u,type:d,title:m=d}=e,f=n(e,G);if(b=o,"number"!=typeof h&&(h=0),h+(S=V).length>b.length||-1===b.indexOf(S,h))throw new Error(`'allow' prop must contain "${V}". Found "${o}".`);var b,S,h;const x=j(null),E=j(null),R=w((()=>(J[d]||(J[d]=function(){let e=0;return()=>String(++e)}()),J[d]())),[d]),[H,P]=O({name:l,src:u}),{name:F,src:L}=H,$=j(null);return y((()=>{var e,t;const n=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:n?((a=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+B(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${N}/2302171719000/frame.html`):"about:blank";var a;if(l)return void P({name:l,src:o});if(!n)return;$.current||($.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+B(e)}(n));const i=Object.assign({"location":{"href":n.location.href},"sentinel":$.current}),c=r({"title":m,"type":d,"_context":i},s);var f;P({name:JSON.stringify({"host":(f=o,A||(A=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(A,f)).hostname,"bootstrap":U(d),"type":d,"count":R,"attributes":c}),src:o})}),[R,l,s,u,m,d]),v((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[F]),g(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),p(T,r(r({},f),{},{allow:o,contentRef:x,messageHandler:i,name:F,ref:E,ready:!!F,sandbox:a?void 0:c,src:L,title:m}))}));D.displayName="ProxyIframeEmbed";var K=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Q=()=>!0,W=b((function(e,t){let{embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,style:v,title:g="Reddit",uuid:y}=e,w=n(e,K);const[j,O]=f("100%"),S=d((e=>{const t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(t=>{!function(e){const t=s.apply(null,arguments);setTimeout((()=>{throw c(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;b?(b(e),O("100%")):O(e)}}),[b]),h=m((()=>({embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,title:g,uuid:y})),[o,a,l,i,b,p,g,y]);return u(D,r(r({ref:t,title:g},w),{},{options:h,type:"reddit",matchesMessagingOrigin:Q,messageHandler:S,style:j?r(r({},v),{},{height:j}):v}))}));W.displayName="BentoReddit";import{PreactBaseElement as X}from"@bentoproject/core";var Y=class extends X{};Y.Component=W,Y.props={"src":{attr:"data-src"},"embedType":{attr:"data-embedtype"},"uuid":{attr:"data-uuid"},"embedCreated":{attr:"data-embedcreated"},"embedParent":{attr:"data-embedparent"},"embedLive":{attr:"data-embedlive"},"title":{attr:"title"}},Y.layoutSizeDefined=!0,Y.usesShadowDom=!0;import{defineBentoElement as Z}from"@bentoproject/core";function ee(e){Z("bento-reddit",Y,e)}export{ee as defineElement};
function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:o}=Array,{hasOwnProperty:a,toString:l}=Object.prototype;function i(e){const t=Object.getOwnPropertyDescriptor(e,"message");if(null!=t&&t.writable)return e;const{message:r,stack:n}=e,o=new Error(r);for(const t in e)o[t]=e[t];return o.stack=n,o}function s(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=i(e):(r&&(r+=" "),r+=e);return t?r&&(t.message=r+": "+t.message):t=new Error(r),t}function c(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as u}from"@bentoproject/core";import{useCallback as d,useMemo as m,useState as f}from"@bentoproject/core";import{forwardRef as b}from"@bentoproject/core";import{createElement as p}from"@bentoproject/core";import{useEffect as v,useImperativeHandle as g,useLayoutEffect as y,useMemo as w,useRef as j,useState as O}from"@bentoproject/core";import{forwardRef as S}from"@bentoproject/core";import{createElement as h}from"@bentoproject/core";import{useCallback as x,useEffect as E,useImperativeHandle as R,useLayoutEffect as H,useRef as P}from"@bentoproject/core";import{forwardRef as F}from"@bentoproject/core";import{ContainWrapper as L,useValueRef as $}from"@bentoproject/core";import{useAmpContext as k,useLoading as z}from"@bentoproject/core";var C=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],M=()=>!1,T=F((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:i,title:s,matchesMessagingOrigin:c=M,messageHandler:u,ready:d=!0,loading:m,onReadyState:f,sandbox:b,src:p}=e,v=n(e,C);const{playable:g}=k(),y=z(m),w="unload"!==y,j=P(!1),O=$(f),S=x((e=>{if(e!==j.current){j.current=e;const t=O.current;null==t||t(e?"complete":"loading")}}),[O]),F=P(null);return R(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return F.current}})),[]),H((()=>{w||S(!1)}),[w,S]),E((()=>{const e=F.current;if(!g&&e){const{src:t}=e;(e=>!(!e||"about:blank"==e||e.includes("#")))(t)?e.src=e.src:e.parentNode.insertBefore(e,e.nextSibling)}}),[g]),H((()=>{const e=F.current;if(!e||!w)return;const t=e=>{const t=F.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,w,d]),h(L,r(r({},v),{},{layout:!0,size:!0,paint:!0}),w&&d&&h("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:i,onLoad:()=>S(!0),part:"iframe",ref:F,sandbox:b,scrolling:"no",src:p,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:s}))}));T.displayName="IframeEmbed";var A,I=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=I("thirdPartyUrl")||"https://3p.ampproject.net",N=I("thirdPartyFrameHost")||"ampproject.net";function U(e){return`${q}/2302272113000/vendor/${e}.mjs`}function B(e){let t;if(e.crypto&&e.crypto.getRandomValues){const r=new Uint32Array(2);e.crypto.getRandomValues(r),t=String(r[0])+r[1]}else t=String(e.Math.random()).substr(2)+"0";return t}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG,new Set(["c","v","a","ad"]);var G=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],J={},V="sync-xhr 'none'",_=["allow-top-navigation-by-user-activation","allow-popups-to-escape-sandbox"].join(" ")+" "+["allow-forms","allow-modals","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts"].join(" "),D=S((function(e,t){let{allow:o=V,excludeSandbox:a,name:l,messageHandler:i,options:s,sandbox:c=_,src:u,type:d,title:m=d}=e,f=n(e,G);if(b=o,"number"!=typeof h&&(h=0),h+(S=V).length>b.length||-1===b.indexOf(S,h))throw new Error(`'allow' prop must contain "${V}". Found "${o}".`);var b,S,h;const x=j(null),E=j(null),R=w((()=>(J[d]||(J[d]=function(){let e=0;return()=>String(++e)}()),J[d]())),[d]),[H,P]=O({name:l,src:u}),{name:F,src:L}=H,$=j(null);return y((()=>{var e,t;const n=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:n?((a=n).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+B(a),"https://"+a.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${N}/2302272113000/frame.html`):"about:blank";var a;if(l)return void P({name:l,src:o});if(!n)return;$.current||($.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+B(e)}(n));const i=Object.assign({"location":{"href":n.location.href},"sentinel":$.current}),c=r({"title":m,"type":d,"_context":i},s);var f;P({name:JSON.stringify({"host":(f=o,A||(A=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(A,f)).hostname,"bootstrap":U(d),"type":d,"count":R,"attributes":c}),src:o})}),[R,l,s,u,m,d]),v((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[F]),g(t,(()=>({get readyState(){var e;return null===(e=E.current)||void 0===e?void 0:e.readyState},get node(){var e;return null===(e=E.current)||void 0===e?void 0:e.node}})),[]),p(T,r(r({},f),{},{allow:o,contentRef:x,messageHandler:i,name:F,ref:E,ready:!!F,sandbox:a?void 0:c,src:L,title:m}))}));D.displayName="ProxyIframeEmbed";var K=["embedCreated","embedLive","embedParent","embedType","requestResize","src","style","title","uuid"],Q=()=>!0,W=b((function(e,t){let{embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,style:v,title:g="Reddit",uuid:y}=e,w=n(e,K);const[j,O]=f("100%"),S=d((e=>{const t=function(e){if(!function(e){return"string"==typeof e&&e.startsWith("amp-")&&-1!=e.indexOf("{")}(e))return null;const t=e.indexOf("{");return function(e,t){try{return function(e){return JSON.parse(e)}(e)}catch(e){return null==t||t(e),null}}(e.substr(t),(t=>{!function(e){const t=s.apply(null,arguments);setTimeout((()=>{throw c(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;b?(b(e),O("100%")):O(e)}}),[b]),h=m((()=>({embedCreated:o,embedLive:a,embedParent:l,embedType:i,requestResize:b,src:p,title:g,uuid:y})),[o,a,l,i,b,p,g,y]);return u(D,r(r({ref:t,title:g},w),{},{options:h,type:"reddit",matchesMessagingOrigin:Q,messageHandler:S,style:j?r(r({},v),{},{height:j}):v}))}));W.displayName="BentoReddit";import{PreactBaseElement as X}from"@bentoproject/core";var Y=class extends X{};Y.Component=W,Y.props={"src":{attr:"data-src"},"embedType":{attr:"data-embedtype"},"uuid":{attr:"data-uuid"},"embedCreated":{attr:"data-embedcreated"},"embedParent":{attr:"data-embedparent"},"embedLive":{attr:"data-embedlive"},"title":{attr:"title"}},Y.layoutSizeDefined=!0,Y.usesShadowDom=!0;import{defineBentoElement as Z}from"@bentoproject/core";function ee(e){Z("bento-reddit",Y,e)}export{ee as defineElement};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=web-component.module.js.map
{
"name": "@bentoproject/reddit",
"version": "1.2302171719.0",
"version": "1.2302271541.0",
"description": "Embeds a Reddit post or a comment on a Reddit post.",

@@ -45,4 +45,4 @@ "author": "Bento Authors",

"dependencies": {
"@bentoproject/core": "0.2302171719.0"
"@bentoproject/core": "0.2302271541.0"
}
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc