Socket
Socket
Sign inDemoInstall

@bentoproject/gist

Package Overview
Dependencies
6
Maintainers
3
Versions
132
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2305182038.0 to 1.2305221508.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 v(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 d(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)||v(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=v(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,{BentoGist:function(){return K}}),Array.isArray;var m=Object.prototype;function h(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 y(e){for(var r,t=null,n="",o=p(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=h(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=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),A=u(require("@bentoproject/core/preact")),I=u(require("@bentoproject/core/preact")),F=u(require("@bentoproject/core/preact")),G=u(require("@bentoproject/core/preact")),H=u(require("@bentoproject/core/preact")),z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],M=function(){return!1},k=(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?M:u,c=e.messageHandler,s=e.ready,v=void 0===s||s,d=e.loading,p=e.onReadyState,m=e.sandbox,h=e.src,y=b(e,z),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(d),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,G.useValueRef)(p),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":E)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":E},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,v]),A.createElement(G.ContainWrapper,f(f({},y),{},{layout:!0,size:!0,paint:!0}),w&&v&&A.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:h,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));k.displayName="IframeEmbed";var N=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},P=N("thirdPartyUrl")||"https://3p.ampproject.net",R=N("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var T,U,_=function(){function e(e){this.t=e,this.rr=0,this.nr=0,this.tr=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.tr[e]},r.get=function(e){var r=this.tr[e];if(r)return r.access=++this.nr,r.payload},r.put=function(e,r){this.has(e)||this.rr++,this.tr[e]={payload:r,access:this.nr},this.er()},r.er=function(){if(!(this.rr<=this.t)){var e,r=this.tr,t=this.nr+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.rr--)}},e}();function B(e){return"".concat(P,"/").concat("2305182038000","/vendor/").concat(e).concat(".js")}function J(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 C=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],L={},V=["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,q.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,v=void 0===s?V:s,p=e.src,m=e.type,h=e.title,y=void 0===h?m:h,j=b(e,C);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,x.useRef)(null),w=(0,x.useRef)(null),O=(0,x.useMemo)((function(){var e;return L[m]||(L[m]=(e=0,function(){return String(++e)})),L[m]()}),[m]),q=d((0,x.useState)({name:u,src:p}),2),E=q[0],A=q[1],I=E.name,F=E.src,G=(0,x.useRef)(null);return(0,x.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-"+J(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(R,"/").concat("2305182038000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){G.current||(G.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+J(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":G.current}),l=f({"title":y,"type":m,"_context":i},c);A({name:JSON.stringify({"host":(n=a,T||(T=self.document.createElement("a"),U=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new _(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}(T,n,U)).hostname,"bootstrap":B(m),"type":m,"count":O,"attributes":l}),src:a})}}),[O,u,c,p,y,m]),(0,x.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[I]),(0,x.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}}}),[]),S.createElement(k,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:I,ref:w,ready:!!I,sandbox:i?void 0:v,src:F,title:y}))}));$.displayName="ProxyIframeEmbed";var D=["gistId","file","title","requestResize","style"];function K(e){var r=e.gistId,t=e.file,n=e.title,o=void 0===n?"Github Gist":n,a=e.requestResize,i=e.style,u=b(e,D),l=(0,O.useRef)(null),c=d((0,O.useState)(null),2),s=c[0],v=c[1],p=(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=y.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;a?(a(t),v("100%")):v(t)}}),[a]);(0,O.useEffect)((function(){return function(){l.current=null}}),[]);var m=(0,O.useMemo)((function(){return{gistid:r,file:t}}),[r,t]);return w.createElement($,f({title:o,options:m,ref:l,type:"github",messageHandler:p,style:s?f(f({},i),{},{height:s}):i},u))}
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 v(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 d(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)||v(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=v(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,{BentoGist:function(){return K}}),Array.isArray;var m=Object.prototype;function h(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 y(e){for(var r,t=null,n="",o=p(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=h(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=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),A=u(require("@bentoproject/core/preact")),I=u(require("@bentoproject/core/preact")),F=u(require("@bentoproject/core/preact")),G=u(require("@bentoproject/core/preact")),H=u(require("@bentoproject/core/preact")),z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],M=function(){return!1},k=(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?M:u,c=e.messageHandler,s=e.ready,v=void 0===s||s,d=e.loading,p=e.onReadyState,m=e.sandbox,h=e.src,y=b(e,z),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(d),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,G.useValueRef)(p),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":E)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":E},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,v]),A.createElement(G.ContainWrapper,f(f({},y),{},{layout:!0,size:!0,paint:!0}),w&&v&&A.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:h,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));k.displayName="IframeEmbed";var N=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},P=N("thirdPartyUrl")||"https://3p.ampproject.net",R=N("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var T,U,_=function(){function e(e){this.t=e,this.rr=0,this.nr=0,this.tr=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.tr[e]},r.get=function(e){var r=this.tr[e];if(r)return r.access=++this.nr,r.payload},r.put=function(e,r){this.has(e)||this.rr++,this.tr[e]={payload:r,access:this.nr},this.er()},r.er=function(){if(!(this.rr<=this.t)){var e,r=this.tr,t=this.nr+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.rr--)}},e}();function B(e){return"".concat(P,"/").concat("2305221508000","/vendor/").concat(e).concat(".js")}function J(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 C=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],L={},V=["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,q.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,v=void 0===s?V:s,p=e.src,m=e.type,h=e.title,y=void 0===h?m:h,j=b(e,C);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,x.useRef)(null),w=(0,x.useRef)(null),O=(0,x.useMemo)((function(){var e;return L[m]||(L[m]=(e=0,function(){return String(++e)})),L[m]()}),[m]),q=d((0,x.useState)({name:u,src:p}),2),E=q[0],A=q[1],I=E.name,F=E.src,G=(0,x.useRef)(null);return(0,x.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-"+J(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(R,"/").concat("2305221508000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){G.current||(G.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+J(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":G.current}),l=f({"title":y,"type":m,"_context":i},c);A({name:JSON.stringify({"host":(n=a,T||(T=self.document.createElement("a"),U=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new _(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}(T,n,U)).hostname,"bootstrap":B(m),"type":m,"count":O,"attributes":l}),src:a})}}),[O,u,c,p,y,m]),(0,x.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[I]),(0,x.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}}}),[]),S.createElement(k,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:I,ref:w,ready:!!I,sandbox:i?void 0:v,src:F,title:y}))}));$.displayName="ProxyIframeEmbed";var D=["gistId","file","title","requestResize","style"];function K(e){var r=e.gistId,t=e.file,n=e.title,o=void 0===n?"Github Gist":n,a=e.requestResize,i=e.style,u=b(e,D),l=(0,O.useRef)(null),c=d((0,O.useState)(null),2),s=c[0],v=c[1],p=(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=y.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;a?(a(t),v("100%")):v(t)}}),[a]);(0,O.useEffect)((function(){return function(){l.current=null}}),[]);var m=(0,O.useMemo)((function(){return{gistid:r,file:t}}),[r,t]);return w.createElement($,f({title:o,options:m,ref:l,type:"github",messageHandler:p,style:s?f(f({},i),{},{height:s}):i},u))}
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-preact.js.map

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

function version() {
return "2305182038000";
return "2305221508000";
}

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

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

function version() {
return "2305182038000";
return "2305221508000";
}

@@ -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 s(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 i(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=s(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 f,useEffect as m,useMemo as p,useRef as d,useState as b}from"@bentoproject/core/preact";import{createElement as g}from"@bentoproject/core/preact";import{useEffect as v,useImperativeHandle as y,useLayoutEffect as w,useMemo as j,useRef as S,useState as h}from"@bentoproject/core/preact";import{forwardRef as O}from"@bentoproject/core/preact";import{createElement as x}from"@bentoproject/core/preact";import{useCallback as E,useEffect as R,useImperativeHandle as H,useLayoutEffect as F,useRef as $}from"@bentoproject/core/preact";import{forwardRef as I}from"@bentoproject/core/preact";import{ContainWrapper as k,useValueRef as z}from"@bentoproject/core/preact";import{useAmpContext as A,useLoading as G}from"@bentoproject/core/preact";var M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],P=()=>!1,L=I((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:s,title:i,matchesMessagingOrigin:c=P,messageHandler:u,ready:f=!0,loading:m,onReadyState:p,sandbox:d,src:b}=e,g=n(e,M);const{playable:v}=A(),y=G(m),w="unload"!==y,j=$(!1),S=z(p),h=E((e=>{if(e!==j.current){j.current=e;const t=S.current;null==t||t(e?"complete":"loading")}}),[S]),O=$(null);return H(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return O.current}})),[]),F((()=>{w||h(!1)}),[w,h]),R((()=>{const e=O.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]),F((()=>{const e=O.current;if(!e||!w)return;const t=e=>{const t=O.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,f]),x(k,r(r({},g),{},{layout:!0,size:!0,paint:!0}),w&&f&&x("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:s,onLoad:()=>h(!0),part:"iframe",ref:O,sandbox:d,scrolling:"no",src:b,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));L.displayName="IframeEmbed";var N,U=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=U("thirdPartyUrl")||"https://3p.ampproject.net",J=U("thirdPartyFrameHost")||"ampproject.net";function V(e){return`${q}/2305182038000/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 C=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],T={},_="sync-xhr 'none'",D=["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(" "),K=O((function(e,t){let{allow:o=_,excludeSandbox:a,name:l,messageHandler:s,options:i,sandbox:c=D,src:u,type:f,title:m=f}=e,p=n(e,C);if(d=o,"number"!=typeof O&&(O=0),O+(b=_).length>d.length||-1===d.indexOf(b,O))throw new Error(`'allow' prop must contain "${_}". Found "${o}".`);var d,b,O;const x=S(null),E=S(null),R=j((()=>(T[f]||(T[f]=function(){let e=0;return()=>String(++e)}()),T[f]())),[f]),[H,F]=h({name:l,src:u}),{name:$,src:I}=H,k=S(null);return w((()=>{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+`.${J}/2305182038000/frame.html`):"about:blank";var a;if(l)return void F({name:l,src:o});if(!n)return;k.current||(k.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 s=Object.assign({"location":{"href":n.location.href},"sentinel":k.current}),c=r({"title":m,"type":f,"_context":s},i);var p;F({name:JSON.stringify({"host":(p=o,N||(N=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(N,p)).hostname,"bootstrap":V(f),"type":f,"count":R,"attributes":c}),src:o})}),[R,l,i,u,m,f]),v((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[$]),y(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}})),[]),g(L,r(r({},p),{},{allow:o,contentRef:x,messageHandler:s,name:$,ref:E,ready:!!$,sandbox:a?void 0:c,src:I,title:m}))}));K.displayName="ProxyIframeEmbed";var Q=["gistId","file","title","requestResize","style"],W="Github Gist";function X(e){let{gistId:t,file:o,title:a=W,requestResize:l,style:s}=e,g=n(e,Q);const v=d(null),[y,w]=b(null),j=f((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=i.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;l?(l(e),w("100%")):w(e)}}),[l]);m((()=>()=>{v.current=null}),[]);const S=p((()=>({gistid:t,file:o})),[t,o]);return u(K,r({title:a,options:S,ref:v,type:"github",messageHandler:j,style:y?r(r({},s),{},{height:y}):s},g))}export{X as BentoGist};
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 s(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 i(e){let t=null,r="";for(const e of arguments)e instanceof Error&&!t?t=s(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 f,useEffect as m,useMemo as p,useRef as d,useState as b}from"@bentoproject/core/preact";import{createElement as g}from"@bentoproject/core/preact";import{useEffect as v,useImperativeHandle as y,useLayoutEffect as w,useMemo as j,useRef as S,useState as h}from"@bentoproject/core/preact";import{forwardRef as O}from"@bentoproject/core/preact";import{createElement as x}from"@bentoproject/core/preact";import{useCallback as E,useEffect as R,useImperativeHandle as H,useLayoutEffect as F,useRef as $}from"@bentoproject/core/preact";import{forwardRef as I}from"@bentoproject/core/preact";import{ContainWrapper as k,useValueRef as z}from"@bentoproject/core/preact";import{useAmpContext as A,useLoading as G}from"@bentoproject/core/preact";var M=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],P=()=>!1,L=I((function(e,t){let{allow:o,allowFullScreen:a,iframeStyle:l,name:s,title:i,matchesMessagingOrigin:c=P,messageHandler:u,ready:f=!0,loading:m,onReadyState:p,sandbox:d,src:b}=e,g=n(e,M);const{playable:v}=A(),y=G(m),w="unload"!==y,j=$(!1),S=z(p),h=E((e=>{if(e!==j.current){j.current=e;const t=S.current;null==t||t(e?"complete":"loading")}}),[S]),O=$(null);return H(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return O.current}})),[]),F((()=>{w||h(!1)}),[w,h]),R((()=>{const e=O.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]),F((()=>{const e=O.current;if(!e||!w)return;const t=e=>{const t=O.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,f]),x(k,r(r({},g),{},{layout:!0,size:!0,paint:!0}),w&&f&&x("iframe",{allow:o,allowFullScreen:a,frameBorder:"0",loading:y,name:s,onLoad:()=>h(!0),part:"iframe",ref:O,sandbox:d,scrolling:"no",src:b,style:r(r({},l),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));L.displayName="IframeEmbed";var N,U=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,q=U("thirdPartyUrl")||"https://3p.ampproject.net",J=U("thirdPartyFrameHost")||"ampproject.net";function V(e){return`${q}/2305221508000/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 C=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],T={},_="sync-xhr 'none'",D=["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(" "),K=O((function(e,t){let{allow:o=_,excludeSandbox:a,name:l,messageHandler:s,options:i,sandbox:c=D,src:u,type:f,title:m=f}=e,p=n(e,C);if(d=o,"number"!=typeof O&&(O=0),O+(b=_).length>d.length||-1===d.indexOf(b,O))throw new Error(`'allow' prop must contain "${_}". Found "${o}".`);var d,b,O;const x=S(null),E=S(null),R=j((()=>(T[f]||(T[f]=function(){let e=0;return()=>String(++e)}()),T[f]())),[f]),[H,F]=h({name:l,src:u}),{name:$,src:I}=H,k=S(null);return w((()=>{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+`.${J}/2305221508000/frame.html`):"about:blank";var a;if(l)return void F({name:l,src:o});if(!n)return;k.current||(k.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 s=Object.assign({"location":{"href":n.location.href},"sentinel":k.current}),c=r({"title":m,"type":f,"_context":s},i);var p;F({name:JSON.stringify({"host":(p=o,N||(N=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(N,p)).hostname,"bootstrap":V(f),"type":f,"count":R,"attributes":c}),src:o})}),[R,l,i,u,m,f]),v((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[$]),y(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}})),[]),g(L,r(r({},p),{},{allow:o,contentRef:x,messageHandler:s,name:$,ref:E,ready:!!$,sandbox:a?void 0:c,src:I,title:m}))}));K.displayName="ProxyIframeEmbed";var Q=["gistId","file","title","requestResize","style"],W="Github Gist";function X(e){let{gistId:t,file:o,title:a=W,requestResize:l,style:s}=e,g=n(e,Q);const v=d(null),[y,w]=b(null),j=f((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=i.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;l?(l(e),w("100%")):w(e)}}),[l]);m((()=>()=>{v.current=null}),[]);const S=p((()=>({gistid:t,file:o})),[t,o]);return u(K,r({title:a,options:S,ref:v,type:"github",messageHandler:j,style:y?r(r({},s),{},{height:y}):s},g))}export{X as BentoGist};
/*! 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 v(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 d(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)||v(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=v(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,{BentoGist:function(){return K}}),Array.isArray;var p=Object.prototype;function h(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 y(e){for(var r,t=null,n="",o=m(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=h(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=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),A=u(require("@bentoproject/core/react")),I=u(require("@bentoproject/core/react")),F=u(require("@bentoproject/core/react")),G=u(require("@bentoproject/core/react")),H=u(require("@bentoproject/core/react")),z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],M=function(){return!1},k=(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?M:u,c=e.messageHandler,s=e.ready,v=void 0===s||s,d=e.loading,m=e.onReadyState,p=e.sandbox,h=e.src,y=b(e,z),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(d),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,G.useValueRef)(m),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":E)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":E},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,v]),A.createElement(G.ContainWrapper,f(f({},y),{},{layout:!0,size:!0,paint:!0}),w&&v&&A.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:h,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));k.displayName="IframeEmbed";var N=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},P=N("thirdPartyUrl")||"https://3p.ampproject.net",R=N("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var T,U,_=function(){function e(e){this.t=e,this.rr=0,this.nr=0,this.tr=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.tr[e]},r.get=function(e){var r=this.tr[e];if(r)return r.access=++this.nr,r.payload},r.put=function(e,r){this.has(e)||this.rr++,this.tr[e]={payload:r,access:this.nr},this.er()},r.er=function(){if(!(this.rr<=this.t)){var e,r=this.tr,t=this.nr+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.rr--)}},e}();function B(e){return"".concat(P,"/").concat("2305182038000","/vendor/").concat(e).concat(".js")}function J(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 C=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],L={},V=["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,q.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,v=void 0===s?V:s,m=e.src,p=e.type,h=e.title,y=void 0===h?p:h,j=b(e,C);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,x.useRef)(null),w=(0,x.useRef)(null),O=(0,x.useMemo)((function(){var e;return L[p]||(L[p]=(e=0,function(){return String(++e)})),L[p]()}),[p]),q=d((0,x.useState)({name:u,src:m}),2),E=q[0],A=q[1],I=E.name,F=E.src,G=(0,x.useRef)(null);return(0,x.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-"+J(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(R,"/").concat("2305182038000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){G.current||(G.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+J(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":G.current}),l=f({"title":y,"type":p,"_context":i},c);A({name:JSON.stringify({"host":(n=a,T||(T=self.document.createElement("a"),U=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new _(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}(T,n,U)).hostname,"bootstrap":B(p),"type":p,"count":O,"attributes":l}),src:a})}}),[O,u,c,m,y,p]),(0,x.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[I]),(0,x.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}}}),[]),S.createElement(k,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:I,ref:w,ready:!!I,sandbox:i?void 0:v,src:F,title:y}))}));$.displayName="ProxyIframeEmbed";var D=["gistId","file","title","requestResize","style"];function K(e){var r=e.gistId,t=e.file,n=e.title,o=void 0===n?"Github Gist":n,a=e.requestResize,i=e.style,u=b(e,D),l=(0,O.useRef)(null),c=d((0,O.useState)(null),2),s=c[0],v=c[1],m=(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=y.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;a?(a(t),v("100%")):v(t)}}),[a]);(0,O.useEffect)((function(){return function(){l.current=null}}),[]);var p=(0,O.useMemo)((function(){return{gistid:r,file:t}}),[r,t]);return w.createElement($,f({title:o,options:p,ref:l,type:"github",messageHandler:m,style:s?f(f({},i),{},{height:s}):i},u))}
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 v(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 d(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)||v(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=v(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,{BentoGist:function(){return K}}),Array.isArray;var p=Object.prototype;function h(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 y(e){for(var r,t=null,n="",o=m(arguments,!0);!(r=o()).done;){var a=r.value;a instanceof Error&&!t?t=h(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=(l(g={},"auto",0),l(g,"lazy",1),l(g,"eager",2),l(g,"unload",3),"loading"),A=u(require("@bentoproject/core/react")),I=u(require("@bentoproject/core/react")),F=u(require("@bentoproject/core/react")),G=u(require("@bentoproject/core/react")),H=u(require("@bentoproject/core/react")),z=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],M=function(){return!1},k=(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?M:u,c=e.messageHandler,s=e.ready,v=void 0===s||s,d=e.loading,m=e.onReadyState,p=e.sandbox,h=e.src,y=b(e,z),j=(0,H.useAmpContext)().playable,g=(0,H.useLoading)(d),w="unload"!==g,O=(0,I.useRef)(!1),S=(0,G.useValueRef)(m),x=(0,I.useCallback)((function(e){if(e!==O.current){O.current=e;var r=S.current;null==r||r(e?"complete":E)}}),[S]),q=(0,I.useRef)(null);return(0,I.useImperativeHandle)(r,(function(){return{get readyState(){return O.current?"complete":E},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,v]),A.createElement(G.ContainWrapper,f(f({},y),{},{layout:!0,size:!0,paint:!0}),w&&v&&A.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:h,style:f(f({},o),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));k.displayName="IframeEmbed";var N=function(e){return self.AMP_CONFIG?self.AMP_CONFIG[e]:null},P=N("thirdPartyUrl")||"https://3p.ampproject.net",R=N("thirdPartyFrameHost")||"ampproject.net";self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null},self.__AMP_LOG;var T,U,_=function(){function e(e){this.t=e,this.rr=0,this.nr=0,this.tr=Object.create(null)}var r=e.prototype;return r.has=function(e){return!!this.tr[e]},r.get=function(e){var r=this.tr[e];if(r)return r.access=++this.nr,r.payload},r.put=function(e,r){this.has(e)||this.rr++,this.tr[e]={payload:r,access:this.nr},this.er()},r.er=function(){if(!(this.rr<=this.t)){var e,r=this.tr,t=this.nr+1;for(var n in r){var o=r[n].access;o<t&&(t=o,e=n)}void 0!==e&&(delete r[e],this.rr--)}},e}();function B(e){return"".concat(P,"/").concat("2305221508000","/vendor/").concat(e).concat(".js")}function J(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 C=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],L={},V=["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,q.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,v=void 0===s?V:s,m=e.src,p=e.type,h=e.title,y=void 0===h?p:h,j=b(e,C);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,x.useRef)(null),w=(0,x.useRef)(null),O=(0,x.useMemo)((function(){var e;return L[p]||(L[p]=(e=0,function(){return String(++e)})),L[p]()}),[p]),q=d((0,x.useState)({name:u,src:m}),2),E=q[0],A=q[1],I=E.name,F=E.src,G=(0,x.useRef)(null);return(0,x.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-"+J(t),"https://"+t.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+".".concat(R,"/").concat("2305221508000","/")+"".concat("frame",".html")):"about:blank";if(u)A({name:u,src:a});else if(o){G.current||(G.current=function(e){for(var r=0,t=e;t&&t!=t.parent;t=t.parent)r++;return String(r)+"-"+J(e)}(o));var i=Object.assign({"location":{"href":o.location.href},"sentinel":G.current}),l=f({"title":y,"type":p,"_context":i},c);A({name:JSON.stringify({"host":(n=a,T||(T=self.document.createElement("a"),U=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new _(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}(T,n,U)).hostname,"bootstrap":B(p),"type":p,"count":O,"attributes":l}),src:a})}}),[O,u,c,m,y,p]),(0,x.useEffect)((function(){var e,r=null===(e=w.current)||void 0===e?void 0:e.node;r&&r.parentNode.insertBefore(r,r.nextSibling)}),[I]),(0,x.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}}}),[]),S.createElement(k,f(f({},j),{},{allow:a,contentRef:g,messageHandler:l,name:I,ref:w,ready:!!I,sandbox:i?void 0:v,src:F,title:y}))}));$.displayName="ProxyIframeEmbed";var D=["gistId","file","title","requestResize","style"];function K(e){var r=e.gistId,t=e.file,n=e.title,o=void 0===n?"Github Gist":n,a=e.requestResize,i=e.style,u=b(e,D),l=(0,O.useRef)(null),c=d((0,O.useState)(null),2),s=c[0],v=c[1],m=(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=y.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;a?(a(t),v("100%")):v(t)}}),[a]);(0,O.useEffect)((function(){return function(){l.current=null}}),[]);var p=(0,O.useMemo)((function(){return{gistid:r,file:t}}),[r,t]);return w.createElement($,f({title:o,options:p,ref:l,type:"github",messageHandler:m,style:s?f(f({},i),{},{height:s}):i},u))}
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=component-react.js.map

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

function version() {
return "2305182038000";
return "2305221508000";
}

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

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

function version() {
return "2305182038000";
return "2305221508000";
}

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

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

function version() {
return "2305182038000";
return "2305221508000";
}

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

@@ -26,3 +26,3 @@ // extensions/amp-gist/1.0/base-element.js

function version() {
return "2305182038000";
return "2305221508000";
}

@@ -29,0 +29,0 @@

;
import{PreactBaseElement as e}from"@bentoproject/core";function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function o(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:l}=Array,{hasOwnProperty:a,toString:s}=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 c(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 u(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as f}from"@bentoproject/core";import{useCallback as m,useEffect as d,useMemo as p,useRef as b,useState as g}from"@bentoproject/core";import{createElement as v}from"@bentoproject/core";import{useEffect as y,useImperativeHandle as w,useLayoutEffect as j,useMemo as S,useRef as h,useState as O}from"@bentoproject/core";import{forwardRef as x}from"@bentoproject/core";import{createElement as E}from"@bentoproject/core";import{useCallback as R,useEffect as H,useImperativeHandle as F,useLayoutEffect as I,useRef as $}from"@bentoproject/core";import{forwardRef as k}from"@bentoproject/core";import{ContainWrapper as z,useValueRef as A}from"@bentoproject/core";import{useAmpContext as G,useLoading as M}from"@bentoproject/core";var P=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],L=()=>!1,N=k((function(e,t){let{allow:r,allowFullScreen:l,iframeStyle:a,name:s,title:i,matchesMessagingOrigin:c=L,messageHandler:u,ready:f=!0,loading:m,onReadyState:d,sandbox:p,src:b}=e,g=o(e,P);const{playable:v}=G(),y=M(m),w="unload"!==y,j=$(!1),S=A(d),h=R((e=>{if(e!==j.current){j.current=e;const t=S.current;null==t||t(e?"complete":"loading")}}),[S]),O=$(null);return F(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return O.current}})),[]),I((()=>{w||h(!1)}),[w,h]),H((()=>{const e=O.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]),I((()=>{const e=O.current;if(!e||!w)return;const t=e=>{const t=O.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,f]),E(z,n(n({},g),{},{layout:!0,size:!0,paint:!0}),w&&f&&E("iframe",{allow:r,allowFullScreen:l,frameBorder:"0",loading:y,name:s,onLoad:()=>h(!0),part:"iframe",ref:O,sandbox:p,scrolling:"no",src:b,style:n(n({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));N.displayName="IframeEmbed";var U,q=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,J=q("thirdPartyUrl")||"https://3p.ampproject.net",V=q("thirdPartyFrameHost")||"ampproject.net";function B(e){return`${J}/2305182038000/vendor/${e}.mjs`}function C(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 T=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],_={},D="sync-xhr 'none'",K=["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(" "),Q=x((function(e,t){let{allow:r=D,excludeSandbox:l,name:a,messageHandler:s,options:i,sandbox:c=K,src:u,type:f,title:m=f}=e,d=o(e,T);if(p=r,"number"!=typeof g&&(g=0),g+(b=D).length>p.length||-1===p.indexOf(b,g))throw new Error(`'allow' prop must contain "${D}". Found "${r}".`);var p,b,g;const x=h(null),E=h(null),R=S((()=>(_[f]||(_[f]=function(){let e=0;return()=>String(++e)}()),_[f]())),[f]),[H,F]=O({name:a,src:u}),{name:I,src:$}=H,k=h(null);return j((()=>{var e,t;const r=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:r?((l=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=l.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+C(l),"https://"+l.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${V}/2305182038000/frame.html`):"about:blank";var l;if(a)return void F({name:a,src:o});if(!r)return;k.current||(k.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+C(e)}(r));const s=Object.assign({"location":{"href":r.location.href},"sentinel":k.current}),c=n({"title":m,"type":f,"_context":s},i);var d;F({name:JSON.stringify({"host":(d=o,U||(U=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(U,d)).hostname,"bootstrap":B(f),"type":f,"count":R,"attributes":c}),src:o})}),[R,a,i,u,m,f]),y((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[I]),w(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}})),[]),v(N,n(n({},d),{},{allow:r,contentRef:x,messageHandler:s,name:I,ref:E,ready:!!I,sandbox:l?void 0:c,src:$,title:m}))}));Q.displayName="ProxyIframeEmbed";var W=["gistId","file","title","requestResize","style"],X="Github Gist",Y=class extends e{};Y.Component=function(e){let{gistId:t,file:r,title:l=X,requestResize:a,style:s}=e,i=o(e,W);const v=b(null),[y,w]=g(null),j=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=c.apply(null,arguments);setTimeout((()=>{throw u(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;a?(a(e),w("100%")):w(e)}}),[a]);d((()=>()=>{v.current=null}),[]);const S=p((()=>({gistid:t,file:r})),[t,r]);return f(Q,n({title:l,options:S,ref:v,type:"github",messageHandler:j,style:y?n(n({},s),{},{height:y}):s},i))},Y.props={"gistId":{attr:"data-gistid"},"file":{attr:"data-file"}},Y.layoutSizeDefined=!0,Y.usesShadowDom=!0;import{defineBentoElement as Z}from"@bentoproject/core";function ee(e){Z("bento-gist",Y,e)}export{ee as defineElement};
import{PreactBaseElement as e}from"@bentoproject/core";function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function o(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var{isArray:l}=Array,{hasOwnProperty:a,toString:s}=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 c(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 u(e){var t,r;null===(t=(r=self).__AMP_REPORT_ERROR)||void 0===t||t.call(r,e)}import{createElement as f}from"@bentoproject/core";import{useCallback as m,useEffect as d,useMemo as p,useRef as b,useState as g}from"@bentoproject/core";import{createElement as v}from"@bentoproject/core";import{useEffect as y,useImperativeHandle as w,useLayoutEffect as j,useMemo as S,useRef as h,useState as O}from"@bentoproject/core";import{forwardRef as x}from"@bentoproject/core";import{createElement as E}from"@bentoproject/core";import{useCallback as R,useEffect as H,useImperativeHandle as F,useLayoutEffect as I,useRef as $}from"@bentoproject/core";import{forwardRef as k}from"@bentoproject/core";import{ContainWrapper as z,useValueRef as A}from"@bentoproject/core";import{useAmpContext as G,useLoading as M}from"@bentoproject/core";var P=["allow","allowFullScreen","iframeStyle","name","title","matchesMessagingOrigin","messageHandler","ready","loading","onReadyState","sandbox","src"],L=()=>!1,N=k((function(e,t){let{allow:r,allowFullScreen:l,iframeStyle:a,name:s,title:i,matchesMessagingOrigin:c=L,messageHandler:u,ready:f=!0,loading:m,onReadyState:d,sandbox:p,src:b}=e,g=o(e,P);const{playable:v}=G(),y=M(m),w="unload"!==y,j=$(!1),S=A(d),h=R((e=>{if(e!==j.current){j.current=e;const t=S.current;null==t||t(e?"complete":"loading")}}),[S]),O=$(null);return F(t,(()=>({get readyState(){return j.current?"complete":"loading"},get node(){return O.current}})),[]),I((()=>{w||h(!1)}),[w,h]),H((()=>{const e=O.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]),I((()=>{const e=O.current;if(!e||!w)return;const t=e=>{const t=O.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,f]),E(z,n(n({},g),{},{layout:!0,size:!0,paint:!0}),w&&f&&E("iframe",{allow:r,allowFullScreen:l,frameBorder:"0",loading:y,name:s,onLoad:()=>h(!0),part:"iframe",ref:O,sandbox:p,scrolling:"no",src:b,style:n(n({},a),{},{width:"100%",height:"100%",contentVisibility:"auto"}),title:i}))}));N.displayName="IframeEmbed";var U,q=e=>self.AMP_CONFIG?self.AMP_CONFIG[e]:null,J=q("thirdPartyUrl")||"https://3p.ampproject.net",V=q("thirdPartyFrameHost")||"ampproject.net";function B(e){return`${J}/2305221508000/vendor/${e}.mjs`}function C(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 T=["allow","excludeSandbox","name","messageHandler","options","sandbox","src","type","title"],_={},D="sync-xhr 'none'",K=["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(" "),Q=x((function(e,t){let{allow:r=D,excludeSandbox:l,name:a,messageHandler:s,options:i,sandbox:c=K,src:u,type:f,title:m=f}=e,d=o(e,T);if(p=r,"number"!=typeof g&&(g=0),g+(b=D).length>p.length||-1===p.indexOf(b,g))throw new Error(`'allow' prop must contain "${D}". Found "${r}".`);var p,b,g;const x=h(null),E=h(null),R=S((()=>(_[f]||(_[f]=function(){let e=0;return()=>String(++e)}()),_[f]())),[f]),[H,F]=O({name:a,src:u}),{name:I,src:$}=H,k=h(null);return j((()=>{var e,t;const r=null===(e=x.current)||void 0===e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView,o=null!=u?u:r?((l=r).__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN=l.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN||"d-"+C(l),"https://"+l.__AMP_DEFAULT_BOOTSTRAP_SUBDOMAIN+`.${V}/2305221508000/frame.html`):"about:blank";var l;if(a)return void F({name:a,src:o});if(!r)return;k.current||(k.current=function(e){let t=0;for(let r=e;r&&r!=r.parent;r=r.parent)t++;return String(t)+"-"+C(e)}(r));const s=Object.assign({"location":{"href":r.location.href},"sentinel":k.current}),c=n({"title":m,"type":f,"_context":s},i);var d;F({name:JSON.stringify({"host":(d=o,U||(U=self.document.createElement("a")),function(e,t,r){return e.href="",new URL(t,e.href)}(U,d)).hostname,"bootstrap":B(f),"type":f,"count":R,"attributes":c}),src:o})}),[R,a,i,u,m,f]),y((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.node;t&&t.parentNode.insertBefore(t,t.nextSibling)}),[I]),w(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}})),[]),v(N,n(n({},d),{},{allow:r,contentRef:x,messageHandler:s,name:I,ref:E,ready:!!I,sandbox:l?void 0:c,src:$,title:m}))}));Q.displayName="ProxyIframeEmbed";var W=["gistId","file","title","requestResize","style"],X="Github Gist",Y=class extends e{};Y.Component=function(e){let{gistId:t,file:r,title:l=X,requestResize:a,style:s}=e,i=o(e,W);const v=b(null),[y,w]=g(null),j=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=c.apply(null,arguments);setTimeout((()=>{throw u(t),t}))}(new Error(`MESSAGING: Failed to parse message: ${e}\n${t.message}`))}))}(e.data);if("embed-size"==t.type){const e=t.height;a?(a(e),w("100%")):w(e)}}),[a]);d((()=>()=>{v.current=null}),[]);const S=p((()=>({gistid:t,file:r})),[t,r]);return f(Q,n({title:l,options:S,ref:v,type:"github",messageHandler:j,style:y?n(n({},s),{},{height:y}):s},i))},Y.props={"gistId":{attr:"data-gistid"},"file":{attr:"data-file"}},Y.layoutSizeDefined=!0,Y.usesShadowDom=!0;import{defineBentoElement as Z}from"@bentoproject/core";function ee(e){Z("bento-gist",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/gist",
"version": "1.2305182038.0",
"version": "1.2305221508.0",
"description": "Creates an iframe and displays a GitHub Gist.",

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

"dependencies": {
"@bentoproject/core": "0.2305182038.0"
"@bentoproject/core": "0.2305221508.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