text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hipdaGiphy={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}function r(e){var t={exports:{}};return e(t,t.exports),t.exports}var i,o=r((function(e,n){var r,i=t&&t.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(n,"__esModule",{value:!0}),n.Logger=n.LogLevel=void 0,function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(r=n.LogLevel||(n.LogLevel={})),n.Logger={ENABLED:"undefined"!=typeof window&&location&&-1!==location.search.indexOf("giphy-debug"),LEVEL:0,PREFIX:"GiphyJS",debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.Logger.ENABLED&&n.Logger.LEVEL<=r.DEBUG&&console.debug.apply(console,i([n.Logger.PREFIX],e))},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.Logger.ENABLED&&n.Logger.LEVEL<=r.INFO&&console.info.apply(console,i([n.Logger.PREFIX],e))},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.Logger.ENABLED&&n.Logger.LEVEL<=r.WARN&&console.warn.apply(console,i([n.Logger.PREFIX],e))},error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.Logger.ENABLED&&n.Logger.LEVEL<=r.ERROR&&console.error.apply(console,i([n.Logger.PREFIX],e))}}})),a=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setRenditionScaleUpMaxPixels=void 0;var n=50;t.setRenditionScaleUpMaxPixels=function(e){o.Logger.debug("@giphy/js-util set rendition selection scale up max pixels to "+e),n=e},t.default=function(e,t,r,i){void 0===i&&(i=n);var o=e[0],a=e.filter((function(e){return e.width*e.height>o.width*o.height&&(o=e),t-e.width<=i&&r-e.height<=i}));return 0===a.length?o:function(e,t,n){var r,i=1/0;return n.forEach((function(n){var o=n.width/e*(n.height/t),a=Math.abs(1-o);a<i&&(i=a,r=n)})),r}(t,r,a)}})),s=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.pick=t.without=t.take=t.forEach=t.mapValues=void 0,t.mapValues=function(e,t){if(Array.isArray(e))throw"This map is just for objects, just use array.map for arrays";return Object.keys(e).reduce((function(n,r){return n[r]=t(e[r],r),n}),{})},t.forEach=function(e,t){if(Array.isArray(e))throw"This map is just for objects, just use array.forEach for arrays";return Object.keys(e).forEach((function(n){t(e[n],n)}))},t.take=function(e,t){return void 0===t&&(t=0),e.slice(0,t)},t.without=function(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))},t.pick=function(e,t){var n={};return t.forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}})),c=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constructMoatData=void 0,t.constructMoatData=function(e){var t,n=e.tdata,r=((null===(t=null==n?void 0:n.web)||void 0===t?void 0:t.filter((function(e){return"Moat"===e.vendor})))||[])[0];if(null==r?void 0:r.verificationParameters){var i=r.verificationParameters,o=i.moatClientLevel1,a=void 0===o?"_ADVERTISER_":o,s=i.moatClientLevel2,c=void 0===s?"_CAMPAIGN_":s,l=i.moatClientLevel3,u=void 0===l?"_LINE_ITEM_":l,f=i.moatClientLevel4,d=void 0===f?"_CREATIVE_":f,p=i.moatClientSlicer1,h=void 0===p?"_SITE_":p,g=i.moatClientSlicer2,m=void 0===g?"_PLACEMENT_":g,y=i.zMoatPosition;return{moatClientLevel1:a,moatClientLevel2:c,moatClientLevel3:u,moatClientLevel4:d,moatClientSlicer1:h,moatClientSlicer2:m,zMoatPosition:void 0===y?"_POSITION_":y}}}})),l=function(e){var t=0,n=0,r=e.offsetWidth,i=e.offsetHeight;do{t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent}while(e);return{left:t,top:n,width:r,height:i,right:t+r,bottom:n+i}},u=Object.defineProperty({default:l},"__esModule",{value:!0}),f=new Uint8Array(16);function d(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(f)}var p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function h(e){return"string"==typeof e&&p.test(e)}for(var g,m,y=[],v=0;v<256;++v)y.push((v+256).toString(16).substr(1));function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]).toLowerCase();if(!h(n))throw TypeError("Stringified UUID is invalid");return n}var b=0,w=0;function k(e){if(!h(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function O(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=k(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return _(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function A(e){return 14+(e+64>>>9<<4)+1}function x(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function S(e,t,n,r,i,o){return x((a=x(x(t,e),x(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function P(e,t,n,r,i,o,a){return S(t&n|~t&r,e,t,i,o,a)}function C(e,t,n,r,i,o,a){return S(t&r|n&~r,e,t,i,o,a)}function R(e,t,n,r,i,o,a){return S(t^n^r,e,t,i,o,a)}function E(e,t,n,r,i,o,a){return S(n^(t|~r),e,t,i,o,a)}var j=O("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[A(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=r,l=i,u=o;n=P(n,r,i,o,e[a],7,-680876936),o=P(o,n,r,i,e[a+1],12,-389564586),i=P(i,o,n,r,e[a+2],17,606105819),r=P(r,i,o,n,e[a+3],22,-1044525330),n=P(n,r,i,o,e[a+4],7,-176418897),o=P(o,n,r,i,e[a+5],12,1200080426),i=P(i,o,n,r,e[a+6],17,-1473231341),r=P(r,i,o,n,e[a+7],22,-45705983),n=P(n,r,i,o,e[a+8],7,1770035416),o=P(o,n,r,i,e[a+9],12,-1958414417),i=P(i,o,n,r,e[a+10],17,-42063),r=P(r,i,o,n,e[a+11],22,-1990404162),n=P(n,r,i,o,e[a+12],7,1804603682),o=P(o,n,r,i,e[a+13],12,-40341101),i=P(i,o,n,r,e[a+14],17,-1502002290),n=C(n,r=P(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=C(o,n,r,i,e[a+6],9,-1069501632),i=C(i,o,n,r,e[a+11],14,643717713),r=C(r,i,o,n,e[a],20,-373897302),n=C(n,r,i,o,e[a+5],5,-701558691),o=C(o,n,r,i,e[a+10],9,38016083),i=C(i,o,n,r,e[a+15],14,-660478335),r=C(r,i,o,n,e[a+4],20,-405537848),n=C(n,r,i,o,e[a+9],5,568446438),o=C(o,n,r,i,e[a+14],9,-1019803690),i=C(i,o,n,r,e[a+3],14,-187363961),r=C(r,i,o,n,e[a+8],20,1163531501),n=C(n,r,i,o,e[a+13],5,-1444681467),o=C(o,n,r,i,e[a+2],9,-51403784),i=C(i,o,n,r,e[a+7],14,1735328473),n=R(n,r=C(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=R(o,n,r,i,e[a+8],11,-2022574463),i=R(i,o,n,r,e[a+11],16,1839030562),r=R(r,i,o,n,e[a+14],23,-35309556),n=R(n,r,i,o,e[a+1],4,-1530992060),o=R(o,n,r,i,e[a+4],11,1272893353),i=R(i,o,n,r,e[a+7],16,-155497632),r=R(r,i,o,n,e[a+10],23,-1094730640),n=R(n,r,i,o,e[a+13],4,681279174),o=R(o,n,r,i,e[a],11,-358537222),i=R(i,o,n,r,e[a+3],16,-722521979),r=R(r,i,o,n,e[a+6],23,76029189),n=R(n,r,i,o,e[a+9],4,-640364487),o=R(o,n,r,i,e[a+12],11,-421815835),i=R(i,o,n,r,e[a+15],16,530742520),n=E(n,r=R(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=E(o,n,r,i,e[a+7],10,1126891415),i=E(i,o,n,r,e[a+14],15,-1416354905),r=E(r,i,o,n,e[a+5],21,-57434055),n=E(n,r,i,o,e[a+12],6,1700485571),o=E(o,n,r,i,e[a+3],10,-1894986606),i=E(i,o,n,r,e[a+10],15,-1051523),r=E(r,i,o,n,e[a+1],21,-2054922799),n=E(n,r,i,o,e[a+8],6,1873313359),o=E(o,n,r,i,e[a+15],10,-30611744),i=E(i,o,n,r,e[a+6],15,-1560198380),r=E(r,i,o,n,e[a+13],21,1309151649),n=E(n,r,i,o,e[a+4],6,-145523070),o=E(o,n,r,i,e[a+11],10,-1120210379),i=E(i,o,n,r,e[a+2],15,718787259),r=E(r,i,o,n,e[a+9],21,-343485551),n=x(n,s),r=x(r,c),i=x(i,l),o=x(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(A(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));function T(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function L(e,t){return e<<t|e>>>32-t}var D=O("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[64*c+4*u]<<24|e[64*c+4*u+1]<<16|e[64*c+4*u+2]<<8|e[64*c+4*u+3];s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=s[f][p];for(var h=16;h<80;++h)d[h]=L(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var g=n[0],m=n[1],y=n[2],v=n[3],_=n[4],b=0;b<80;++b){var w=Math.floor(b/20),k=L(g,5)+T(w,m,y,v)+_+t[w]+d[b]>>>0;_=v,v=y,y=L(m,30)>>>0,m=g,g=k}n[0]=n[0]+g>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+_>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var I=n(Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||g,a=void 0!==e.clockseq?e.clockseq:m;if(null==o||null==a){var s=e.random||(e.rng||d)();null==o&&(o=g=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=m=16383&(s[6]<<8|s[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:w+1,u=c-b+(l-w)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||c>b)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=c,w=l,m=a;var f=(1e4*(268435455&(c+=122192928e5))+l)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var p=c/4294967296*1e4&268435455;i[r++]=p>>>8&255,i[r++]=255&p,i[r++]=p>>>24&15|16,i[r++]=p>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var h=0;h<6;++h)i[r+h]=o[h];return t||_(i)},v3:j,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return _(r)},v5:D,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!h(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:h,stringify:_,parse:k})),M="",N=function(){if(!M){try{M=sessionStorage.getItem("giphyPingbackId")}catch(e){}if(!M){var e=(new Date).getTime().toString(16);M=(""+e+I.v4().replace(/-/g,"")).substring(0,16);try{sessionStorage.setItem("giphyPingbackId",M)}catch(e){}}}return M},G=Object.defineProperty({default:N},"__esModule",{value:!0}),F=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkIfWebP=t.SUPPORTS_WEBP=void 0,t.SUPPORTS_WEBP=null,t.checkIfWebP=new Promise((function(e){"undefined"==typeof Image&&e(!1);var n=new Image;n.onload=function(){t.SUPPORTS_WEBP=!0,e(t.SUPPORTS_WEBP)},n.onerror=function(){t.SUPPORTS_WEBP=!1,e(t.SUPPORTS_WEBP)},n.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}))})),z=r((function(e,n){var r=t&&t.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.getAltText=n.getGifWidth=n.getGifHeight=n.getBestRenditionUrl=n.getBestRendition=n.getSpecificRendition=void 0;var o=i(a);n.getSpecificRendition=function(e,t,n,r){var i=e.images,o=e.is_sticker;if(void 0===n&&(n=!1),void 0===r&&(r=!1),!i||!t)return"";var a=i[t+((n=n&&!r)?"_still":"")];if(a){if(o||n)return a.url;var s=F.SUPPORTS_WEBP&&a.webp;return r?a.mp4:s||a.url}return""};n.getBestRendition=function(e,t,n,i){var a=s.pick(e,["original","fixed_width","fixed_height","fixed_width_small","fixed_height_small"]),c=Object.entries(a).map((function(e){var t=e[0],n=e[1];return r({renditionName:t},n)}));return o.default(c,t,n,i)},n.getBestRenditionUrl=function(e,t,r,i){var o=e.images,a=e.video,s=e.type;if(void 0===i&&(i={isStill:!1,useVideo:!1}),!t||!r||!o)return"";var c=i.useVideo,l=i.isStill,u=i.scaleUpMaxPixels,f=function(e,t,n){return"video"===e&&n&&n.previews&&!Object.keys(t).length?n.previews:t}(s,o,a),d=f[n.getBestRendition(f,t,r,u).renditionName+(l&&!c?"_still":"")];return(c?d.mp4:F.SUPPORTS_WEBP&&d.webp?d.webp:d.url)||""},n.getGifHeight=function(e,t){var n=e.images.fixed_width;if(n){var r=n.width/n.height;return Math.round(t/r)}return 0},n.getGifWidth=function(e,t){var n=e.images.fixed_width;if(n){var r=n.width/n.height;return Math.round(t*r)}return 0},n.getAltText=function(e){var t=e.user,n=e.tags,r=void 0===n?[]:n,i=e.is_sticker,o=void 0!==i&&i,a=e.title,c=void 0===a?"":a;if(c)return c;var l=t&&t.username||"";return(l?l+" ":"")+s.take(s.without(r,["transparent"]),l?4:5).join(" ")+" "+(o?"Sticker":"GIF")}})),H=r((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.appendGiphySDKRequestParam=n.appendGiphySDKRequestHeader=n.getGiphySDKRequestHeaders=void 0;var r=("undefined"!=typeof window?window:t)||{};r._GIPHY_SDK_HEADERS_=r._GIPHY_SDK_HEADERS_||(r.Headers?new r.Headers({"X-GIPHY-SDK-PLATFORM":"web"}):void 0),n.getGiphySDKRequestHeaders=function(){return r._GIPHY_SDK_HEADERS_},n.appendGiphySDKRequestHeader=function(e,t){var r;return null===(r=n.getGiphySDKRequestHeaders())||void 0===r?void 0:r.set(e,t)},n.appendGiphySDKRequestParam=function(e,t){var r;return null===(r=n.getGiphySDKRequestHeaders())||void 0===r?void 0:r.set(e,t)}}));var U=Object.hasOwnProperty,B=Object.setPrototypeOf,W=Object.isFrozen,V=Object.getPrototypeOf,q=Object.getOwnPropertyDescriptor,K=Object.freeze,Q=Object.seal,Y=Object.create,$="undefined"!=typeof Reflect&&Reflect,X=$.apply,J=$.construct;X||(X=function(e,t,n){return e.apply(t,n)}),K||(K=function(e){return e}),Q||(Q=function(e){return e}),J||(J=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(
  /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
  function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var Z,ee=ue(Array.prototype.forEach),te=ue(Array.prototype.pop),ne=ue(Array.prototype.push),re=ue(String.prototype.toLowerCase),ie=ue(String.prototype.match),oe=ue(String.prototype.replace),ae=ue(String.prototype.indexOf),se=ue(String.prototype.trim),ce=ue(RegExp.prototype.test),le=(Z=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return J(Z,t)});function ue(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return X(e,t,r)}}function fe(e,t){B&&B(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=re(r);i!==r&&(W(t)||(t[n]=i),r=i)}e[r]=!0}return e}function de(e){var t=Y(null),n=void 0;for(n in e)X(U,e,[n])&&(t[n]=e[n]);return t}function pe(e,t){for(;null!==e;){var n=q(e,t);if(n){if(n.get)return ue(n.get);if("function"==typeof n.value)return ue(n.value)}e=V(e)}return null}var he=K(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ge=K(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),me=K(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ye=K(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ve=K(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),_e=K(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),be=K(["#text"]),we=K(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),ke=K(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Oe=K(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ae=K(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xe=Q(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Se=Q(/<%[\s\S]*|[\s\S]*%>/gm),Pe=Q(/^data-[\-\w.\u00B7-\uFFFF]/),Ce=Q(/^aria-[\-\w]+$/),Re=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ee=Q(/^(?:\w+script|data):/i),je=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Te="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};function Le(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var De=function(){return"undefined"==typeof window?null:window},Ie=function(e,t){if("object"!==(void 0===e?"undefined":Te(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var Me,Ne=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:De(),n=function(t){return e(t)};if(n.version="2.2.6",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,o=t.DocumentFragment,a=t.HTMLTemplateElement,s=t.Node,c=t.Element,l=t.NodeFilter,u=t.NamedNodeMap,f=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.Text,p=t.Comment,h=t.DOMParser,g=t.trustedTypes,m=c.prototype,y=pe(m,"cloneNode"),v=pe(m,"nextSibling"),_=pe(m,"childNodes"),b=pe(m,"parentNode");if("function"==typeof a){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var k=Ie(g,r),O=k&&Ne?k.createHTML(""):"",A=i,x=A.implementation,S=A.createNodeIterator,P=A.getElementsByTagName,C=A.createDocumentFragment,R=r.importNode,E={};try{E=de(i).documentMode?i.documentMode:{}}catch(e){}var j={};n.isSupported=x&&void 0!==x.createHTMLDocument&&9!==E;var T=xe,L=Se,D=Pe,I=Ce,M=Ee,N=je,G=Re,F=null,z=fe({},[].concat(Le(he),Le(ge),Le(me),Le(ve),Le(be))),H=null,U=fe({},[].concat(Le(we),Le(ke),Le(Oe),Le(Ae))),B=null,W=null,V=!0,q=!0,Q=!1,Y=!1,$=!1,X=!1,J=!1,Z=!1,ue=!1,Me=!0,Ne=!1,Ge=!0,Fe=!0,ze=!1,He={},Ue=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Be=null,We=fe({},["audio","video","img","source","image","track"]),Ve=null,qe=fe({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ke=null,Qe=i.createElement("form"),Ye=function(e){Ke&&Ke===e||(e&&"object"===(void 0===e?"undefined":Te(e))||(e={}),e=de(e),F="ALLOWED_TAGS"in e?fe({},e.ALLOWED_TAGS):z,H="ALLOWED_ATTR"in e?fe({},e.ALLOWED_ATTR):U,Ve="ADD_URI_SAFE_ATTR"in e?fe(de(qe),e.ADD_URI_SAFE_ATTR):qe,Be="ADD_DATA_URI_TAGS"in e?fe(de(We),e.ADD_DATA_URI_TAGS):We,B="FORBID_TAGS"in e?fe({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?fe({},e.FORBID_ATTR):{},He="USE_PROFILES"in e&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,Q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,$=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,Me=!1!==e.RETURN_DOM_IMPORT,Ne=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,Fe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,G=e.ALLOWED_URI_REGEXP||G,Y&&(q=!1),ue&&(Z=!0),He&&(F=fe({},[].concat(Le(be))),H=[],!0===He.html&&(fe(F,he),fe(H,we)),!0===He.svg&&(fe(F,ge),fe(H,ke),fe(H,Ae)),!0===He.svgFilters&&(fe(F,me),fe(H,ke),fe(H,Ae)),!0===He.mathMl&&(fe(F,ve),fe(H,Oe),fe(H,Ae))),e.ADD_TAGS&&(F===z&&(F=de(F)),fe(F,e.ADD_TAGS)),e.ADD_ATTR&&(H===U&&(H=de(H)),fe(H,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&fe(Ve,e.ADD_URI_SAFE_ATTR),Fe&&(F["#text"]=!0),$&&fe(F,["html","head","body"]),F.table&&(fe(F,["tbody"]),delete B.tbody),K&&K(e),Ke=e)},$e=fe({},["mi","mo","mn","ms","mtext"]),Xe=fe({},["foreignobject","desc","title","annotation-xml"]),Je=fe({},ge);fe(Je,me),fe(Je,ye);var Ze=fe({},ve);fe(Ze,_e);var et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});var n=re(e.tagName),r=re(t.tagName);if(e.namespaceURI===tt)return t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||$e[r]):Boolean(Je[n]);if(e.namespaceURI===et)return t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&Xe[r]:Boolean(Ze[n]);if(e.namespaceURI===nt){if(t.namespaceURI===tt&&!Xe[r])return!1;if(t.namespaceURI===et&&!$e[r])return!1;var i=fe({},["title","style","font","a","script"]);return!Ze[n]&&(i[n]||!Je[n])}return!1},it=function(e){ne(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=O}catch(t){e.remove()}}},ot=function(e,t){try{ne(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ne(n.removed,{attribute:null,from:t})}t.removeAttribute(e)},at=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var r=ie(e,/^[\r\n\t ]+/);n=r&&r[0]}var o=k?k.createHTML(e):e;try{t=(new h).parseFromString(o,"text/html")}catch(e){}if(!t||!t.documentElement){var a=(t=x.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=o}return e&&n&&t.body.insertBefore(i.createTextNode(n),t.body.childNodes[0]||null),P.call(t,$?"html":"body")[0]},st=function(e){return S.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,(function(){return l.FILTER_ACCEPT}),!1)},ct=function(e){return!(e instanceof d||e instanceof p)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof f&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},lt=function(e){return"object"===(void 0===s?"undefined":Te(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Te(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ut=function(e,t,r){j[e]&&ee(j[e],(function(e){e.call(n,t,r,Ke)}))},ft=function(e){var t=void 0;if(ut("beforeSanitizeElements",e,null),ct(e))return it(e),!0;if(ie(e.nodeName,/[\u0080-\uFFFF]/))return it(e),!0;var r=re(e.nodeName);if(ut("uponSanitizeElement",e,{tagName:r,allowedTags:F}),!lt(e.firstElementChild)&&(!lt(e.content)||!lt(e.content.firstElementChild))&&ce(/<[/\w]/g,e.innerHTML)&&ce(/<[/\w]/g,e.textContent))return it(e),!0;if(!F[r]||B[r]){if(Fe&&!Ue[r])for(var i=b(e),o=_(e),a=o.length-1;a>=0;--a)i.insertBefore(y(o[a],!0),v(e));return it(e),!0}return e instanceof c&&!rt(e)?(it(e),!0):"noscript"!==r&&"noembed"!==r||!ce(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=oe(t,T," "),t=oe(t,L," "),e.textContent!==t&&(ne(n.removed,{element:e.cloneNode()}),e.textContent=t)),ut("afterSanitizeElements",e,null),!1):(it(e),!0)},dt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in i||n in Qe))return!1;if(q&&ce(D,t));else if(V&&ce(I,t));else{if(!H[t]||W[t])return!1;if(Ve[t]);else if(ce(G,oe(n,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ae(n,"data:")||!Be[e]){if(Q&&!ce(M,oe(n,N,"")));else if(n)return!1}else;}return!0},pt=function(e){var t=void 0,r=void 0,i=void 0,o=void 0;ut("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(o=a.length;o--;){var c=t=a[o],l=c.name,u=c.namespaceURI;if(r=se(t.value),i=re(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,ut("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(ot(l,e),s.keepAttr))if(ce(/\/>/i,r))ot(l,e);else{Y&&(r=oe(r,T," "),r=oe(r,L," "));var f=e.nodeName.toLowerCase();if(dt(f,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),te(n.removed)}catch(e){}}}ut("afterSanitizeAttributes",e,null)}},ht=function e(t){var n=void 0,r=st(t);for(ut("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ut("uponSanitizeShadowNode",n,null),ft(n)||(n.content instanceof o&&e(n.content),pt(n));ut("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,i){var a=void 0,c=void 0,l=void 0,u=void 0,f=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!lt(e)){if("function"!=typeof e.toString)throw le("toString is not a function");if("string"!=typeof(e=e.toString()))throw le("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Te(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(lt(e))return t.toStaticHTML(e.outerHTML)}return e}if(X||Ye(i),n.removed=[],"string"==typeof e&&(ze=!1),ze);else if(e instanceof s)1===(c=(a=at("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Z&&!Y&&!$&&-1===e.indexOf("<"))return k&&Ne?k.createHTML(e):e;if(!(a=at(e)))return Z?null:O}a&&J&&it(a.firstChild);for(var d=st(ze?e:a);l=d.nextNode();)3===l.nodeType&&l===u||ft(l)||(l.content instanceof o&&ht(l.content),pt(l),u=l);if(u=null,ze)return e;if(Z){if(ue)for(f=C.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Me&&(f=R.call(r,f,!0)),f}var p=$?a.outerHTML:a.innerHTML;return Y&&(p=oe(p,T," "),p=oe(p,L," ")),k&&Ne?k.createHTML(p):p},n.setConfig=function(e){Ye(e),X=!0},n.clearConfig=function(){Ke=null,X=!1},n.isValidAttribute=function(e,t,n){Ke||Ye({});var r=re(e),i=re(t);return dt(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(j[e]=j[e]||[],ne(j[e],t))},n.removeHook=function(e){j[e]&&te(j[e])},n.removeHooks=function(e){j[e]&&(j[e]=[])},n.removeAllHooks=function(){j={}},n}(),Ge=n(Object.freeze({__proto__:null,default:Ne})),Fe=function(e){void 0===e&&(e=[]),e.forEach((function(e){var t,n=document.createElement("html");e=e.replace("%%CACHEBUSTER%%",Date.now().toString()),n.innerHTML=Ge.sanitize(e);var r=n.querySelector("img");r&&(null===(t=null===document||void 0===document?void 0:document.querySelector("head"))||void 0===t||t.appendChild(r))}))},ze=Object.defineProperty({default:Fe},"__esModule",{value:!0}),He=r((function(e,n){var r=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},l=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.checkIfWebP=n.injectTrackingPixel=n.getSpecificRendition=n.getGifWidth=n.getGifHeight=n.getBestRenditionUrl=n.getBestRendition=n.getAltText=n.getPingbackId=n.getClientRect=n.setRenditionScaleUpMaxPixels=n.bestfit=void 0,Object.defineProperty(n,"bestfit",{enumerable:!0,get:function(){return l(a).default}}),Object.defineProperty(n,"setRenditionScaleUpMaxPixels",{enumerable:!0,get:function(){return a.setRenditionScaleUpMaxPixels}}),i(s,n),i(c,n),Object.defineProperty(n,"getClientRect",{enumerable:!0,get:function(){return l(u).default}}),Object.defineProperty(n,"getPingbackId",{enumerable:!0,get:function(){return l(G).default}}),Object.defineProperty(n,"getAltText",{enumerable:!0,get:function(){return z.getAltText}}),Object.defineProperty(n,"getBestRendition",{enumerable:!0,get:function(){return z.getBestRendition}}),Object.defineProperty(n,"getBestRenditionUrl",{enumerable:!0,get:function(){return z.getBestRenditionUrl}}),Object.defineProperty(n,"getGifHeight",{enumerable:!0,get:function(){return z.getGifHeight}}),Object.defineProperty(n,"getGifWidth",{enumerable:!0,get:function(){return z.getGifWidth}}),Object.defineProperty(n,"getSpecificRendition",{enumerable:!0,get:function(){return z.getSpecificRendition}}),i(o,n),i(H,n),Object.defineProperty(n,"injectTrackingPixel",{enumerable:!0,get:function(){return l(ze).default}}),Object.defineProperty(n,"checkIfWebP",{enumerable:!0,get:function(){return F.checkIfWebP}})})),Ue=String.prototype.replace,Be=/%20/g,We="RFC3986",Ve={default:We,formatters:{RFC1738:function(e){return Ue.call(e,Be,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:We},qe=Object.prototype.hasOwnProperty,Ke=Array.isArray,Qe=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ye=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},$e={arrayToObject:Ye,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var c=a[s],l=o[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:o,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Ke(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,i){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<o.length;++s){var c=o.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===Ve.RFC1738&&(40===c||41===c)?a+=o.charAt(s):c<128?a+=Qe[c]:c<2048?a+=Qe[192|c>>6]+Qe[128|63&c]:c<55296||c>=57344?a+=Qe[224|c>>12]+Qe[128|c>>6&63]+Qe[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&o.charCodeAt(s)),a+=Qe[240|c>>18]+Qe[128|c>>12&63]+Qe[128|c>>6&63]+Qe[128|63&c])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Ke(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(Ke(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!qe.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return Ke(t)&&!Ke(n)&&(i=Ye(t,r)),Ke(t)&&Ke(n)?(n.forEach((function(n,i){if(qe.call(t,i)){var o=t[i];o&&"object"==typeof o&&n&&"object"==typeof n?t[i]=e(o,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var o=n[i];return qe.call(t,i)?t[i]=e(t[i],o,r):t[i]=o,t}),i)}},Xe=Object.prototype.hasOwnProperty,Je={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Ze=Array.isArray,et=Array.prototype.push,tt=function(e,t){et.apply(e,Ze(t)?t:[t])},nt=Date.prototype.toISOString,rt=Ve.default,it={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:$e.encode,encodeValuesOnly:!1,format:rt,formatter:Ve.formatters[rt],indices:!1,serializeDate:function(e){return nt.call(e)},skipNulls:!1,strictNullHandling:!1},ot=function e(t,n,r,i,o,a,s,c,l,u,f,d,p,h){var g,m=t;if("function"==typeof s?m=s(n,m):m instanceof Date?m=u(m):"comma"===r&&Ze(m)&&(m=$e.maybeMap(m,(function(e){return e instanceof Date?u(e):e}))),null===m){if(i)return a&&!p?a(n,it.encoder,h,"key",f):n;m=""}if("string"==typeof(g=m)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||$e.isBuffer(m))return a?[d(p?n:a(n,it.encoder,h,"key",f))+"="+d(a(m,it.encoder,h,"value",f))]:[d(n)+"="+d(String(m))];var y,v=[];if(void 0===m)return v;if("comma"===r&&Ze(m))y=[{value:m.length>0?m.join(",")||null:void 0}];else if(Ze(s))y=s;else{var _=Object.keys(m);y=c?_.sort(c):_}for(var b=0;b<y.length;++b){var w=y[b],k="object"==typeof w&&void 0!==w.value?w.value:m[w];if(!o||null!==k){var O=Ze(m)?"function"==typeof r?r(n,w):n:n+(l?"."+w:"["+w+"]");tt(v,e(k,O,r,i,o,a,s,c,l,u,f,d,p,h))}}return v},at=Object.prototype.hasOwnProperty,st=Array.isArray,ct={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:$e.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},lt=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},ut=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ft=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,c=[];if(s){if(!n.plainObjects&&at.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var l=0;n.depth>0&&null!==(a=o.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&at.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:ut(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=i:a[c]=i:a={0:i}}i=a}return i}(c,t,n,r)}},dt={formats:Ve,parse:function(e,t){var n=function(e){if(!e)return ct;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?ct.charset:e.charset;return{allowDots:void 0===e.allowDots?ct.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:ct.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:ct.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ct.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:ct.comma,decoder:"function"==typeof e.decoder?e.decoder:ct.decoder,delimiter:"string"==typeof e.delimiter||$e.isRegExp(e.delimiter)?e.delimiter:ct.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:ct.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:ct.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:ct.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:ct.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ct.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=i.split(t.delimiter,o),s=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?c="utf-8":"utf8=%26%2310003%3B"===a[n]&&(c="iso-8859-1"),s=n,n=a.length);for(n=0;n<a.length;++n)if(n!==s){var l,u,f=a[n],d=f.indexOf("]="),p=-1===d?f.indexOf("="):d+1;-1===p?(l=t.decoder(f,ct.decoder,c,"key"),u=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,p),ct.decoder,c,"key"),u=$e.maybeMap(ut(f.slice(p+1),t),(function(e){return t.decoder(e,ct.decoder,c,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===c&&(u=lt(u)),f.indexOf("[]=")>-1&&(u=st(u)?[u]:u),at.call(r,l)?r[l]=$e.combine(r[l],u):r[l]=u}return r}(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],c=ft(s,r[s],n,"string"==typeof e);i=$e.merge(i,c,n)}return $e.compact(i)},stringify:function(e,t){var n,r=e,i=function(e){if(!e)return it;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||it.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Ve.default;if(void 0!==e.format){if(!Xe.call(Ve.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Ve.formatters[n],i=it.filter;return("function"==typeof e.filter||Ze(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:it.addQueryPrefix,allowDots:void 0===e.allowDots?it.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:it.charsetSentinel,delimiter:void 0===e.delimiter?it.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:it.encode,encoder:"function"==typeof e.encoder?e.encoder:it.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:it.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:it.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:it.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:it.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):Ze(i.filter)&&(n=i.filter);var o,a=[];if("object"!=typeof r||null===r)return"";o=t&&t.arrayFormat in Je?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Je[o];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var c=0;c<n.length;++c){var l=n[c];i.skipNulls&&null===r[l]||tt(a,ot(r[l],l,s,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset))}var u=a.join(i.delimiter),f=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),u.length>0?f+u:""}},pt=r((function(e,n){var r=t&&t.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.normalizeGifs=n.normalizeGif=n.USER_BOOL_PROPS=n.BOOL_PROPS=void 0,n.BOOL_PROPS=["is_anonymous","is_community","is_featured","is_hidden","is_indexable","is_preserve_size","is_realtime","is_removed","is_sticker"],n.USER_BOOL_PROPS=["suppress_chrome","is_public","is_verified"];var i=function(e){return function(t){return e[t]=!!e[t]}},o=function(e){return"string"==typeof e?e:e.text},a=function(e){var t=r({},e);t.id=String(t.id),t.tags=(t.tags||[]).map(o),n.BOOL_PROPS.forEach(i(t));var a=t.user;if(a){var s=r({},a);n.USER_BOOL_PROPS.forEach(i(s)),t.user=s}return t};n.normalizeGif=function(e){return e.data=a(e.data),e},n.normalizeGifs=function(e){return e.data=e.data.map((function(e){return a(e)})),e}})),ht=t&&t.__extends||(Me=function(e,t){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gt=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r="");var i=e.call(this,t)||this;return i.status=n,i.statusText=r,i}return ht(t,e),t}(Error),mt=Object.defineProperty({default:gt},"__esModule",{value:!0}),yt=r((function(e,n){var r=t&&t.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=t&&t.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_ERROR=n.ERROR_PREFIX=void 0;var a=o(mt);n.ERROR_PREFIX="@giphy/js-fetch-api: ",n.DEFAULT_ERROR="Error fetching";var s=(("undefined"!=typeof window?window:t)||{}).GIPHY_API_URL||"https://api.giphy.com/v1/",c=function(e){return e},l={};n.default=function(e,t,o){var u,f=this;if(void 0===t&&(t=c),void 0===o&&(o=!1),u=Date.now(),Object.keys(l).forEach((function(e){u-l[e].ts>=6e4&&delete l[e]})),!l[e]||o){l[e]={request:r(f,void 0,void 0,(function(){var r,o,c,u,f;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,9,,10]),[4,fetch(""+s+e,{method:"get"})];case 1:return(o=i.sent()).ok?[4,o.json()]:[3,3];case 2:return u=i.sent(),[2,t(u)];case 3:c=n.DEFAULT_ERROR,i.label=4;case 4:return i.trys.push([4,6,,7]),[4,o.json()];case 5:return(u=i.sent()).message&&(c=u.message),[3,7];case 6:return i.sent(),[3,7];case 7:r=new a.default(""+n.ERROR_PREFIX+c,o.status,o.statusText),i.label=8;case 8:return[3,10];case 9:return f=i.sent(),r=new a.default(f.message),delete l[e],[3,10];case 10:throw r}}))})),ts:Date.now()}}return l[e].request}})),vt=r((function(e,n){var r=t&&t.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.GiphyFetch=void 0;var o=i(dt),a=i(yt),s=function(e){return e&&e.type?e.type:"gifs"},c=function(){function e(e){var t=this;this.getQS=function(e){return void 0===e&&(e={}),o.default.stringify(r(r({},e),{api_key:t.apiKey,pingback_id:He.getPingbackId()}))},this.apiKey=e}return e.prototype.categories=function(e){return a.default("gifs/categories?"+this.getQS(e))},e.prototype.gif=function(e){return a.default("gifs/"+e+"?"+this.getQS(),pt.normalizeGif)},e.prototype.gifs=function(e,t){return Array.isArray(e)?a.default("gifs?"+this.getQS({ids:e.join(",")}),pt.normalizeGifs):a.default("gifs/categories/"+e+"/"+t+"?"+this.getQS(),pt.normalizeGifs)},e.prototype.emoji=function(e){return a.default("emoji?"+this.getQS(e),pt.normalizeGifs)},e.prototype.search=function(e,t){void 0===t&&(t={});var n=t.channel?"@"+t.channel+" "+e:e,i=this.getQS(r(r({},t),{q:n}));return a.default(s(t)+"/search?"+i,pt.normalizeGifs)},e.prototype.subcategories=function(e,t){return a.default("gifs/categories/"+e+"?"+this.getQS(t))},e.prototype.trending=function(e){return void 0===e&&(e={}),a.default(s(e)+"/trending?"+this.getQS(e),pt.normalizeGifs)},e.prototype.random=function(e){return a.default(s(e)+"/random?"+this.getQS(e),pt.normalizeGif,!0)},e.prototype.related=function(e,t){return a.default(("stickers"===(null==t?void 0:t.type)?"stickers":"gifs")+"/related?"+this.getQS(r({gif_id:e},t)),pt.normalizeGifs)},e}();n.GiphyFetch=c,n.default=c}));Object.defineProperty(e,"__esModule",{value:!0});var _t=Object.freeze({__proto__:null});Object.defineProperty(e,"__esModule",{value:!0});var bt=Object.freeze({__proto__:null}),wt=r((function(e,n){var r=t&&t.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=t&&t.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=t&&t.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(n,"__esModule",{value:!0}),n.gifPaginator=void 0,n.gifPaginator=function(e,t){void 0===t&&(t=[]);var n=o(t),a=t.map((function(e){return e.id})),s=t.length,c=!1;return function(){return r(void 0,void 0,void 0,(function(){var t,r,l;return i(this,(function(i){switch(i.label){case 0:return c?[2,n]:[4,e(s)];case 1:return t=i.sent(),r=t.pagination,l=t.data,s=r.count+r.offset,c=s===r.total_count,l.forEach((function(e){var t=e.id;a.includes(t)||(n.push(e),a.push(t))})),[2,o(n)]}}))}))}}})),kt="2.1.0",Ot=n(_t),At=n(bt),xt=r((function(e,n){var r,i=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.gifPaginator=n.GiphyFetch=void 0,Object.defineProperty(n,"GiphyFetch",{enumerable:!0,get:function(){return a(vt).default}}),o(Ot,n),o(At,n),Object.defineProperty(n,"gifPaginator",{enumerable:!0,get:function(){return wt.gifPaginator}});var s=kt;(null===(r=He.getGiphySDKRequestHeaders())||void 0===r?void 0:r.get("X-GIPHY-SDK-NAME"))||(He.appendGiphySDKRequestHeader("X-GIPHY-SDK-NAME","FetchAPI"),He.appendGiphySDKRequestHeader("X-GIPHY-SDK-VERSION",s))}));!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=i(t);n;)n=i(t=n.ownerDocument);return t}(),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?f(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,o=null,a=null;if(this.POLL_INTERVAL?o=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(o&&e.clearInterval(o),c(e,"resize",r,!0)),c(t,"scroll",r,!0),a&&a.disconnect()})),t!=(this.root&&this.root.ownerDocument||e)){var l=i(t);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&this.root.ownerDocument||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var o=i(n);if((n=o&&o.ownerDocument)==t)return!0}return!1}))){var o=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),o(),t!=r){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,a=l(i),s=this._rootContainsTarget(i),c=r.entry,u=e&&s&&this._computeTargetAndRootIntersection(i,a,t),f=r.entry=new o({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n&&!this.root?null:t,intersectionRect:u});c?e&&s?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,i,o){if("none"!=window.getComputedStyle(t).display){for(var a,s,c,u,d,h,g,m,y=i,v=p(t),_=!1;!_&&v;){var b=null,w=1==v.nodeType?window.getComputedStyle(v):{};if("none"==w.display)return null;if(v==this.root||9==v.nodeType)if(_=!0,v==this.root||v==e)n&&!this.root?!r||0==r.width&&0==r.height?(v=null,b=null,y=null):b=r:b=o;else{var k=p(v),O=k&&l(k),A=k&&this._computeTargetAndRootIntersection(k,O,o);O&&A?(v=k,b=f(O,A)):(v=null,y=null)}else{var x=v.ownerDocument;v!=x.body&&v!=x.documentElement&&"visible"!=w.overflow&&(b=l(v))}if(b&&(a=b,s=y,c=void 0,u=void 0,d=void 0,h=void 0,g=void 0,m=void 0,c=Math.max(a.top,s.top),u=Math.min(a.bottom,s.bottom),d=Math.max(a.left,s.left),h=Math.min(a.right,s.right),m=u-c,y=(g=h-d)>=0&&m>=0&&{top:c,bottom:u,left:d,right:h,width:g,height:m}||null),!y)break;v=v&&p(v)}return y}},a.prototype._getRootRect=function(){var t;if(this.root)t=l(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||o==r||o<n!=o<r)return!0}},a.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},a.prototype._rootContainsTarget=function(t){return d(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=o}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function o(e){this.time=e.time,this.target=e.target,this.rootBounds=u(e.rootBounds),this.boundingClientRect=u(e.boundingClientRect),this.intersectionRect=u(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,i=r.width*r.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n,r,i,o=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(o.root&&1!=o.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function l(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=p(n)}return!1}function p(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}();var St=r((function(e,t){var n,r,i,o,a,s,c,l={},u=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,i,o,a=arguments,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return g(e,s,r,i,null)}function g(e,t,r,i,o){var a={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o};return null==o&&(a.__v=a),null!=n.vnode&&n.vnode(a),a}function m(e){return e.children}function y(e,t){this.props=e,this.context=t}function v(e,t){if(null==t)return e.__?v(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?v(e):null}function _(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return _(e)}}function b(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!w.__r++||a!==n.debounceRendering)&&((a=n.debounceRendering)||o)(w)}function w(){for(var e;w.__r=i.length;)e=i.sort((function(e,t){return e.__v.__b-t.__v.__b})),i=[],e.some((function(e){var t,n,r,i,o,a,s;e.__d&&(a=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=d({},o)).__v=r,i=C(s,o,r,t.__n,void 0!==s.ownerSVGElement,null,n,null==a?v(o):a),R(n,o),i!=a&&_(o)))}))}function k(e,t,n,r,i,o,a,s,c,f){var d,h,y,_,b,w,k,A=r&&r.__k||u,x=A.length;for(c==l&&(c=null!=a?a[0]:x?v(r,0):null),n.__k=[],d=0;d<t.length;d++)if(null!=(_=n.__k[d]=null==(_=t[d])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _?g(null,_,null,null,_):Array.isArray(_)?g(m,{children:_},null,null,null):null!=_.__e||null!=_.__c?g(_.type,_.props,_.key,null,_.__v):_)){if(_.__=n,_.__b=n.__b+1,null===(y=A[d])||y&&_.key==y.key&&_.type===y.type)A[d]=void 0;else for(h=0;h<x;h++){if((y=A[h])&&_.key==y.key&&_.type===y.type){A[h]=void 0;break}y=null}b=C(e,_,y=y||l,i,o,a,s,c,f),(h=_.ref)&&y.ref!=h&&(k||(k=[]),y.ref&&k.push(y.ref,null,_),k.push(h,_.__c||b,_)),null!=b?(null==w&&(w=b),c=O(e,_,y,A,a,b,c),f||"option"!=n.type?"function"==typeof n.type&&(n.__d=c):e.value=""):c&&y.__e==c&&c.parentNode!=e&&(c=v(y))}if(n.__e=w,null!=a&&"function"!=typeof n.type)for(d=a.length;d--;)null!=a[d]&&p(a[d]);for(d=x;d--;)null!=A[d]&&T(A[d],A[d]);if(k)for(d=0;d<k.length;d++)j(k[d],k[++d],k[++d])}function O(e,t,n,r,i,o,a){var s,c,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(i==n||o!=a||null==o.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(o),s=null;else{for(c=a,l=0;(c=c.nextSibling)&&l<r.length;l+=2)if(c==o)break e;e.insertBefore(o,a),s=a}return void 0!==s?s:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function x(e,t,n,r,i){var o,a;if(i&&"className"==t&&(t="class"),"style"===t)if("string"==typeof n)e.style=n;else{if("string"==typeof r&&(e.style=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else"o"===t[0]&&"n"===t[1]?(o=t!==(t=t.replace(/Capture$/,"")),(a=t.toLowerCase())in e&&(t=a),t=t.slice(2),e.l||(e.l={}),e.l[t]=n,n?r||e.addEventListener(t,S,o):e.removeEventListener(t,S,o)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&!i&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function S(e){this.l[e.type](n.event?n.event(e):e)}function P(e,t,n){var r,i;for(r=0;r<e.__k.length;r++)(i=e.__k[r])&&(i.__=e,i.__e&&("function"==typeof i.type&&i.__k.length>1&&P(i,t,n),t=O(n,i,i,e.__k,null,i.__e,t),"function"==typeof e.type&&(e.__d=t)))}function C(e,t,r,i,o,a,s,c,l){var u,f,p,h,g,v,_,b,w,O,A,x=t.type;if(void 0!==t.constructor)return null;(u=n.__b)&&u(t);try{e:if("function"==typeof x){if(b=t.props,w=(u=x.contextType)&&i[u.__c],O=u?w?w.props.value:u.__:i,r.__c?_=(f=t.__c=r.__c).__=f.__E:("prototype"in x&&x.prototype.render?t.__c=f=new x(b,O):(t.__c=f=new y(b,O),f.constructor=x,f.render=L),w&&w.sub(f),f.props=b,f.state||(f.state={}),f.context=O,f.__n=i,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=x.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,x.getDerivedStateFromProps(b,f.__s))),h=f.props,g=f.state,p)null==x.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==x.getDerivedStateFromProps&&b!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,O),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,O)||t.__v===r.__v){f.props=b,f.state=f.__s,t.__v!==r.__v&&(f.__d=!1),f.__v=t,t.__e=r.__e,t.__k=r.__k,f.__h.length&&s.push(f),P(t,c,e);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=O,f.props=b,f.state=f.__s,(u=n.__r)&&u(t),f.__d=!1,f.__v=t,f.__P=e,u=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(i=d(d({},i),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),A=null!=u&&u.type==m&&null==u.key?u.props.children:u,k(e,Array.isArray(A)?A:[A],t,r,i,o,a,s,c,l),f.base=t.__e,f.__h.length&&s.push(f),_&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=E(r.__e,t,r,i,o,a,s,l);(u=n.diffed)&&u(t)}catch(e){t.__v=null,n.__e(e,t,r)}return t.__e}function R(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function E(e,t,n,r,i,o,a,s){var c,f,d,p,h,g=n.props,m=t.props;if(i="svg"===t.type||i,null!=o)for(c=0;c<o.length;c++)if(null!=(f=o[c])&&((null===t.type?3===f.nodeType:f.localName===t.type)||e==f)){e=f,o[c]=null;break}if(null==e){if(null===t.type)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,m.is&&{is:m.is}),o=null,s=!1}if(null===t.type)g!==m&&e.data!==m&&(e.data=m);else{if(null!=o&&(o=u.slice.call(e.childNodes)),d=(g=n.props||l).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!s){if(null!=o)for(g={},h=0;h<e.attributes.length;h++)g[e.attributes[h].name]=e.attributes[h].value;(p||d)&&(p&&d&&p.__html==d.__html||(e.innerHTML=p&&p.__html||""))}(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||x(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||x(e,o,t[o],n[o],r)})(e,m,g,i,s),p?t.__k=[]:(c=t.props.children,k(e,Array.isArray(c)?c:[c],t,n,r,"foreignObject"!==t.type&&i,o,a,l,s)),s||("value"in m&&void 0!==(c=m.value)&&c!==e.value&&x(e,"value",c,g.value,!1),"checked"in m&&void 0!==(c=m.checked)&&c!==e.checked&&x(e,"checked",c,g.checked,!1))}return e}function j(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function T(e,t,r){var i,o,a;if(n.unmount&&n.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||j(i,null,t)),r||"function"==typeof e.type||(r=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){n.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&T(i[a],t,r);null!=o&&p(o)}function L(e,t,n){return this.constructor(e,n)}function D(e,t,r){var i,o,a;n.__&&n.__(e,t),o=(i=r===s)?null:r&&r.__k||t.__k,e=h(m,null,[e]),a=[],C(t,(i?t:r||t).__k=e,o||l,l,void 0!==t.ownerSVGElement,r&&!i?[r]:o?null:t.childNodes.length?u.slice.call(t.childNodes):null,a,r||l,i),R(a,e)}n={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return b(n.__E=n)}catch(t){e=t}throw e}},r=function(e){return null!=e&&void 0===e.constructor},y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},y.prototype.render=m,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,w.__r=0,s=l,c=0,t.render=D,t.hydrate=function(e,t){D(e,t,s)},t.createElement=h,t.h=h,t.Fragment=m,t.createRef=function(){return{current:null}},t.isValidElement=r,t.Component=y,t.cloneElement=function(e,t,n){var r,i,o,a=arguments,s=d({},e.props);for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);return null!=n&&(s.children=n),g(e.type,s,r||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e,n,r){return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(b)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n},t.__u=T,t.options=n}));var Pt=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();function Ct(e){function t(e,r,c,l,d){for(var p,h,g,m,b,k=0,O=0,A=0,x=0,S=0,T=0,D=g=p=0,M=0,N=0,G=0,F=0,z=c.length,H=z-1,U="",B="",W="",V="";M<z;){if(h=c.charCodeAt(M),M===H&&0!==O+x+A+k&&(0!==O&&(h=47===O?10:47),x=A=k=0,z++,H++),0===O+x+A+k){if(M===H&&(0<N&&(U=U.replace(f,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(M)}h=59}switch(h){case 123:for(p=(U=U.trim()).charCodeAt(0),g=1,F=++M;M<z;){switch(h=c.charCodeAt(M)){case 123:g++;break;case 125:g--;break;case 47:switch(h=c.charCodeAt(M+1)){case 42:case 47:e:{for(D=M+1;D<H;++D)switch(c.charCodeAt(D)){case 47:if(42===h&&42===c.charCodeAt(D-1)&&M+2!==D){M=D+1;break e}break;case 10:if(47===h){M=D+1;break e}}M=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<H&&c.charCodeAt(M)!==h;);}if(0===g)break;M++}switch(g=c.substring(F,M),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),p){case 64:switch(0<N&&(U=U.replace(f,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=j}if(F=(g=t(r,N,g,h,d+1)).length,0<L&&(b=s(3,g,N=n(j,U,G),r,C,P,F,h,d,l),U=N.join(""),void 0!==b&&0===(F=(g=b.trim()).length)&&(h=0,g="")),0<F)switch(h){case 115:U=U.replace(w,a);case 100:case 109:case 45:g=U+"{"+g+"}";break;case 107:g=(U=U.replace(y,"$1 $2"))+"{"+g+"}",g=1===E||2===E&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=U+g,112===l&&(B+=g,g="")}else g="";break;default:g=t(r,n(r,U,G),g,l,d+1)}W+=g,g=G=N=D=p=0,U="",h=c.charCodeAt(++M);break;case 125:case 59:if(1<(F=(U=(0<N?U.replace(f,""):U).trim()).length))switch(0===D&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(F=(U=U.replace(" ",":")).length),0<L&&void 0!==(b=s(1,U,r,e,C,P,B.length,l,d,l))&&0===(F=(U=b.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),h=U.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){V+=U+c.charAt(M);break}default:58!==U.charCodeAt(F-1)&&(B+=i(U,p,h,U.charCodeAt(2)))}G=N=D=p=0,U="",h=c.charCodeAt(++M)}}switch(h){case 13:case 10:47===O?O=0:0===1+p&&107!==l&&0<U.length&&(N=1,U+="\0"),0<L*I&&s(0,U,r,e,C,P,B.length,l,d,l),P=1,C++;break;case 59:case 125:if(0===O+x+A+k){P++;break}default:switch(P++,m=c.charAt(M),h){case 9:case 32:if(0===x+k+O)switch(S){case 44:case 58:case 9:case 32:m="";break;default:32!==h&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===x+O+k&&(N=G=1,m="\f"+m);break;case 108:if(0===x+O+k+R&&0<D)switch(M-D){case 2:112===S&&58===c.charCodeAt(M-3)&&(R=S);case 8:111===T&&(R=T)}break;case 58:0===x+O+k&&(D=M);break;case 44:0===O+A+x+k&&(N=1,m+="\r");break;case 34:case 39:0===O&&(x=x===h?0:0===x?h:x);break;case 91:0===x+O+A&&k++;break;case 93:0===x+O+A&&k--;break;case 41:0===x+O+k&&A--;break;case 40:if(0===x+O+k){if(0===p)switch(2*S+3*T){case 533:break;default:p=1}A++}break;case 64:0===O+A+x+k+D+g&&(g=1);break;case 42:case 47:if(!(0<x+k+A))switch(O){case 0:switch(2*h+3*c.charCodeAt(M+1)){case 235:O=47;break;case 220:F=M,O=42}break;case 42:47===h&&42===S&&F+2!==M&&(33===c.charCodeAt(F+2)&&(B+=c.substring(F,M+1)),m="",O=0)}}0===O&&(U+=m)}T=S,S=h,M++}if(0<(F=B.length)){if(N=r,0<L&&(void 0!==(b=s(2,B,N,e,C,P,F,l,d,l))&&0===(B=b).length))return V+B+W;if(B=N.join(",")+"{"+B+"}",0!=E*R){switch(2!==E||o(B,2)||(R=0),R){case 111:B=B.replace(_,":-moz-$1")+B;break;case 112:B=B.replace(v,"::-webkit-input-$1")+B.replace(v,"::-moz-$1")+B.replace(v,":-ms-input-$1")+B}R=0}}return V+B+W}function n(e,t,n){var i=t.trim().split(g);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var c=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[c++]=r(e[l]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===E||2===E&&o(c,1)?"-webkit-"+c+c:c}if(0===E||2===E&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(b,"tb");break;case 232:c=a.replace(b,"tb-rl");break;case 220:c=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(A,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,c,u){for(var f,d=0,p=t;d<L;++d)switch(f=T[d].call(l,e,p,n,r,i,o,a,s,c,u)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?E=1:(E=2,D=e):E=0),c}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<L){var i=s(-1,n,r,r,C,P,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(j,r,n,0,0);return 0<L&&(void 0!==(i=s(-2,o,r,r,C,P,o.length,0,0,0))&&(o=i)),"",R=0,P=C=1,o}var u=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,_=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,O=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,P=1,C=1,R=0,E=1,j=[],T=[],L=0,D=null,I=0;return l.use=function e(t){switch(t){case void 0:case null:L=T.length=0;break;default:if("function"==typeof t)T[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},l.set=c,void 0!==e&&c(e),l}var Rt=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},Et="/*|*/";function jt(e){e&&Tt.current.insert(e+"}")}var Tt={current:null},Lt=function(e,t,n,r,i,o,a,s,c,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Tt.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+Et;break;case 3:switch(s){case 102:case 112:return Tt.current.insert(n[0]+t),"";default:return t+(0===l?Et:"")}case-2:t.split("/*|*/}").forEach(jt)}},Dt=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},It="undefined"!=typeof document,Mt={},Nt=It?void 0:Rt((function(){var e=Rt((function(){return{}})),t={},n={};return function(r){return void 0===r||!0===r?t:!1===r?n:e(r)}})),Gt=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r,i,o=new Ct(t),a={};if(It){r=e.container||document.head;var s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==r&&r.appendChild(e)}))}if(It)o.use(e.stylisPlugins)(Lt),i=function(e,t,n,r){var i=t.name;Tt.current=n,o(e,t.styles),r&&(l.inserted[i]=!0)};else{o.use(Dt);var c=Mt;(e.stylisPlugins||void 0!==e.prefix)&&(o.use(e.stylisPlugins),c=Nt(e.stylisPlugins||Mt)(e.prefix));i=function(e,t,n,r){var i=t.name,a=function(e,t){var n=t.name;return void 0===c[n]&&(c[n]=o(e,t.styles)),c[n]}(e,t);return void 0===l.compat?(r&&(l.inserted[i]=!0),a):r?void(l.inserted[i]=a):a}}var l={key:n,sheet:new Pt({key:n,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:i};return l};var Ft={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var zt=/[A-Z]|^ms/g,Ht=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ut=function(e){return 45===e.charCodeAt(1)},Bt=function(e){return null!=e&&"boolean"!=typeof e},Wt=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Ut(e)?e:e.replace(zt,"-$&").toLowerCase()})),Vt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ht,(function(e,t,n){return Kt={name:t,styles:n,next:Kt},t}))}return 1===Ft[e]||Ut(e)||"number"!=typeof t||0===t?t:t+"px"};function qt(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Kt={name:n.name,styles:n.styles,next:Kt},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)Kt={name:i.name,styles:i.styles,next:Kt},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=qt(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Bt(a)&&(r+=Wt(o)+":"+Vt(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=qt(e,t,a,!1);switch(o){case"animation":case"animationName":r+=Wt(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Bt(a[c])&&(r+=Wt(o)+":"+Vt(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Kt,a=n(e);return Kt=o,qt(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Kt,Qt=/label:\s*([^\s;\n{]+)\s*;/g,Yt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Kt=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=qt(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=qt(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);Qt.lastIndex=0;for(var s,c="";null!==(s=Qt.exec(i));)c+="-"+s[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+c,styles:i,next:Kt}},$t="undefined"!=typeof document;function Xt(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Jt=function(e,t,n){var r=e.key+"-"+t.name;if((!1===n||!1===$t&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert("."+r,o,e.sheet,!0);$t||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!$t&&0!==i.length)return i}};function Zt(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function en(e,t,n){var r=[],i=Xt(e,r,n);return r.length<2?n:i+t(r)}var tn=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var a in o="",i)i[a]&&a&&(o&&(o+=" "),o+=a);break;default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},nn=function(e){var t=Gt(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Yt(n,t.registered,void 0);return Jt(t,i,!1),t.key+"-"+i.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return en(t.registered,n,tn(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Yt(n,t.registered);Zt(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Yt(n,t.registered),o="animation-"+i.name;return Zt(t,{name:i.name,styles:"@keyframes "+o+"{"+i.styles+"}"}),o},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Xt.bind(null,t.registered),merge:en.bind(null,t.registered,n)}}(),rn=nn.flush,on=nn.hydrate,an=nn.cx,sn=nn.merge,cn=nn.getRegisteredStyles,ln=nn.injectGlobal,un=nn.keyframes,fn=nn.css,dn=nn.sheet,pn=nn.cache,hn=Object.freeze({__proto__:null,cache:pn,css:fn,cx:an,flush:rn,getRegisteredStyles:cn,hydrate:on,injectGlobal:ln,keyframes:un,merge:sn,sheet:dn});function gn(e,t,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function c(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=this,d=Date.now()-a;function p(){a=Date.now(),n.apply(f,l)}function h(){i=void 0}o||(r&&!i&&p(),s(),void 0===r&&d>e?p():!0!==t&&(i=setTimeout(r?h:p,void 0===r?e-d:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),c.cancel=function(){s(),o=!0},c}var mn,yn,vn=Object.freeze({__proto__:null,debounce:function(e,t,n){return void 0===n?gn(e,t,!1):gn(e,n,!1!==t)},throttle:gn}),_n=t&&t.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.container=null,t}return _n(t,e),t.prototype.componentDidMount=function(){var e=this;this.io=new IntersectionObserver((function(t){var n=t[0];e.setState({isVisible:n.isIntersecting});var r=e.props.onVisibleChange;r&&r(n.isIntersecting)})),this.io.observe(this.container)},t.prototype.componentWillUnmount=function(){this.io&&this.io.disconnect()},t.prototype.render=function(e,t){var n=this,r=e.children,i=e.className,o=t.isVisible,a=Array.isArray(r)?r:[r];return St.h("div",{ref:function(e){return n.container=e},className:i},a.map((function(e){return e?St.cloneElement(e,{isVisible:o}):null})))},t}(St.Component),wn=Object.defineProperty({default:bn},"__esModule",{value:!0}),kn=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.gifOverlayColor=t.dimColor=t.secondaryCTA=t.primaryCTADisabled=t.primaryCTA=t.deleteColor=t.errorColor=t.smsColor=t.redditColor=t.instagramColor=t.tumblrColor=t.pinterestColor=t.twitterColor=t.facebookColor=t.giphyPink=t.giphyIndigo=t.giphyLightBlue=t.giphyAqua=t.giphyYellow=t.giphyRed=t.giphyPurple=t.giphyGreen=t.giphyBlue=t.giphyWhite=t.giphyWhiteSmoke=t.giphyLightestGrey=t.giphyLightGrey=t.giphyLightCharcoal=t.giphyCharcoal=t.giphyDarkCharcoal=t.giphyDarkGrey=t.giphyDarkestGrey=t.giphyBlack=void 0,t.giphyBlack="#121212",t.giphyDarkestGrey="#212121",t.giphyDarkGrey="#2e2e2e",t.giphyDarkCharcoal="#3e3e3e",t.giphyCharcoal="#4a4a4a",t.giphyLightCharcoal="#5c5c5c",t.giphyLightGrey="#a6a6a6",t.giphyLightestGrey="#d8d8d8",t.giphyWhiteSmoke="#ececec",t.giphyWhite="#ffffff",t.giphyBlue="#00ccff",t.giphyGreen="#00ff99",t.giphyPurple="#9933ff",t.giphyRed="#ff6666",t.giphyYellow="#fff35c",t.giphyAqua="#00e6cc",t.giphyLightBlue="#3191ff",t.giphyIndigo="#6157ff",t.giphyPink="#e646b6",t.facebookColor="#3894fc",t.twitterColor="#00ccff",t.pinterestColor="#e54cb5",t.tumblrColor="#529ecc",t.instagramColor="#c23c8d",t.redditColor="#fc6669",t.smsColor="#00ff99",t.errorColor=t.giphyRed,t.deleteColor=t.giphyRed,t.primaryCTA=t.giphyIndigo,t.primaryCTADisabled="#241F74",t.secondaryCTA=t.giphyCharcoal,t.dimColor="rgba(0, 0, 0, 0.8)",t.gifOverlayColor="rgba(0, 0, 0, 0.4)"})),On=n(hn),An=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},xn=On.keyframes(mn||(mn=An(["\n     to {\n    transform: scale(1.75) translateY(-20px);\n  }\n"],["\n     to {\n    transform: scale(1.75) translateY(-20px);\n  }\n"]))),Sn=On.css(yn||(yn=An(["\n    display: flex;\n    align-items: center;\n    height: ","px;\n    padding-top: 15px;\n    margin: 0 auto;\n    text-align: center;\n    justify-content: center;\n    animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;\n    div {\n        display: inline-block;\n        height: 10px;\n        width: 10px;\n        margin: ","px 10px 10px 10px;\n        position: relative;\n        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);\n        animation: "," cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;\n        &:nth-child(5n + 1) {\n            background: ",";\n            animation-delay: 0;\n        }\n        &:nth-child(5n + 2) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 1));\n        }\n        &:nth-child(5n + 3) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 2));\n        }\n        &:nth-child(5n + 4) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 3));\n        }\n        &:nth-child(5n + 5) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 4));\n        }\n    }\n"],["\n    display: flex;\n    align-items: center;\n    height: ","px;\n    padding-top: 15px;\n    margin: 0 auto;\n    text-align: center;\n    justify-content: center;\n    animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;\n    div {\n        display: inline-block;\n        height: 10px;\n        width: 10px;\n        margin: ","px 10px 10px 10px;\n        position: relative;\n        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);\n        animation: "," cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;\n        &:nth-child(5n + 1) {\n            background: ",";\n            animation-delay: 0;\n        }\n        &:nth-child(5n + 2) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 1));\n        }\n        &:nth-child(5n + 3) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 2));\n        }\n        &:nth-child(5n + 4) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 3));\n        }\n        &:nth-child(5n + 5) {\n            background: ",";\n            animation-delay: calc(0s + (0.1s * 4));\n        }\n    }\n"])),37,37,xn,kn.giphyGreen,kn.giphyBlue,kn.giphyPurple,kn.giphyRed,kn.giphyYellow),Pn=Object.defineProperty({default:Sn},"__esModule",{value:!0}),Cn=r((function(e,n){var r=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};Object.defineProperty(n,"__esModule",{value:!0}),n.css=n.fontSize=n.fontFamily=void 0,On.injectGlobal(i||(i=r(["\n@font-face {\n    font-family: 'interface';\n    font-style: normal;\n    font-weight: normal;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff2') format('woff2'),\n        url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff') format('woff');\n}\n\n@font-face {\n    font-family: 'interface';\n    font-style: normal;\n    font-weight: bold;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff2') format('woff2'),\n        url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff') format('woff');\n}\n@font-face {\n    font-family: 'interface';\n    font-style: normal;\n    font-weight: 900;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_XBd.woff') format('woff');\n}\n@font-face {\n    font-family: 'nexablack'; \n    font-style: normal;\n    font-weight: normal;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff2') format('woff2'),\n        url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff') format('woff');\n}\n@font-face {\n    font-family: 'SSStandard'; \n    font-style: normal;\n    font-weight: normal;\n    src:  url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-standard.woff') format('woff');\n}\n@font-face {\n    font-family: 'SSSocial'; \n    font-style: normal;\n    font-weight: normal;\n    src:  url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-social.woff') format('woff');\n}\n"],["\n@font-face {\n    font-family: 'interface';\n    font-style: normal;\n    font-weight: normal;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff2') format('woff2'),\n        url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Rg.woff') format('woff');\n}\n\n@font-face {\n    font-family: 'interface';\n    font-style: normal;\n    font-weight: bold;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff2') format('woff2'),\n        url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_Bd.woff') format('woff');\n}\n@font-face {\n    font-family: 'interface';\n    font-style: normal;\n    font-weight: 900;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/InterFace_W_XBd.woff') format('woff');\n}\n@font-face {\n    font-family: 'nexablack'; \n    font-style: normal;\n    font-weight: normal;\n    src: url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff2') format('woff2'),\n        url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/nexa_black-webfont.woff') format('woff');\n}\n@font-face {\n    font-family: 'SSStandard'; \n    font-style: normal;\n    font-weight: normal;\n    src:  url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-standard.woff') format('woff');\n}\n@font-face {\n    font-family: 'SSSocial'; \n    font-style: normal;\n    font-weight: normal;\n    src:  url('https://s3.amazonaws.com/giphyscripts/react-giphy-brand/fonts/ss-social.woff') format('woff');\n}\n"]))),n.fontFamily={title:"'nexablack', sans-serif",body:"interface, Helvetica Neue, helvetica, sans-serif;"},n.fontSize={titleSmall:"20px",title:"26px",titleLarge:"36px",subheader:"16px",subheaderSmall:"12px"};var i,o,a,s,c,l,u,f,d,p=On.css(o||(o=r(["\n    font-family: ",";\n    -webkit-font-smoothing: antialiased;\n"],["\n    font-family: ",";\n    -webkit-font-smoothing: antialiased;\n"])),n.fontFamily.title),h=On.cx(On.css(a||(a=r(["\n        font-size: ",";\n    "],["\n        font-size: ",";\n    "])),n.fontSize.title),p),g=On.cx(On.css(s||(s=r(["\n        font-size: ",";\n    "],["\n        font-size: ",";\n    "])),n.fontSize.titleLarge),p),m=On.cx(On.css(c||(c=r(["\n        font-size: ",";\n    "],["\n        font-size: ",";\n    "])),n.fontSize.titleSmall),p),y=On.css(l||(l=r(["\n    font-family: ",";\n    font-weight: bold;\n    -webkit-font-smoothing: antialiased;\n"],["\n    font-family: ",";\n    font-weight: bold;\n    -webkit-font-smoothing: antialiased;\n"])),n.fontFamily.body),v=On.cx(On.css(u||(u=r(["\n        font-size: ",";\n    "],["\n        font-size: ",";\n    "])),n.fontSize.subheader),y),_=On.cx(On.css(f||(f=r(["\n        font-size: ",";\n    "],["\n        font-size: ",";\n    "])),n.fontSize.subheaderSmall),y),b={sectionHeader:On.css(d||(d=r(["\n    font-family: ",";\n    font-size: 14px;\n    font-weight: bold;\n    text-transform: uppercase;\n    -webkit-font-smoothing: antialiased;\n"],["\n    font-family: ",";\n    font-size: 14px;\n    font-weight: bold;\n    text-transform: uppercase;\n    -webkit-font-smoothing: antialiased;\n"])),n.fontFamily.body),subheaderSmall:_,subheader:v,titleLarge:g,titleSmall:m,title:h};n.css=b})),Rn=r((function(e,n){var r=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.loader=void 0,i(kn,n),Object.defineProperty(n,"loader",{enumerable:!0,get:function(){return o(Pn).default}}),i(Cn,n)})),En=r((function(e,t){var n,r,i,o=0,a=[],s=St.options.__r,c=St.options.diffed,l=St.options.__c,u=St.options.unmount;function f(e,t){St.options.__h&&St.options.__h(r,e,o||t),o=0;var n=r.__H||(r.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function d(e){return o=1,p(w,e)}function p(e,t,i){var o=f(n++,2);return o.t=e,o.__c||(o.__c=r,o.__=[i?i(t):w(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}]),o.__}function h(e,t){var i=f(n++,4);!St.options.__s&&b(i.__H,t)&&(i.__=e,i.__H=t,r.__h.push(i))}function g(e,t){var r=f(n++,7);return b(r.__H,t)?(r.__H=t,r.__h=e,r.__=e()):r.__}function m(){a.some((function(e){if(e.__P)try{e.__H.__h.forEach(v),e.__H.__h.forEach(_),e.__H.__h=[]}catch(t){return e.__H.__h=[],St.options.__e(t,e.__v),!0}})),a=[]}St.options.__r=function(e){s&&s(e),n=0;var t=(r=e.__c).__H;t&&(t.__h.forEach(v),t.__h.forEach(_),t.__h=[])},St.options.diffed=function(e){c&&c(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==a.push(t)&&i===St.options.requestAnimationFrame||((i=St.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),y&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);y&&(t=requestAnimationFrame(n))})(m))},St.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(v),e.__h=e.__h.filter((function(e){return!e.__||_(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],St.options.__e(n,e.__v)}})),l&&l(e,t)},St.options.unmount=function(e){u&&u(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(v)}catch(e){St.options.__e(e,t.__v)}};var y="function"==typeof requestAnimationFrame;function v(e){"function"==typeof e.u&&e.u()}function _(e){e.u=e.__()}function b(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function w(e,t){return"function"==typeof t?t(e):t}t.useState=d,t.useReducer=p,t.useEffect=function(e,t){var i=f(n++,3);!St.options.__s&&b(i.__H,t)&&(i.__=e,i.__H=t,r.__H.__h.push(i))},t.useLayoutEffect=h,t.useRef=function(e){return o=5,g((function(){return{current:e}}),[])},t.useImperativeHandle=function(e,t,n){o=6,h((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},t.useMemo=g,t.useCallback=function(e,t){return o=8,g((function(){return e}),t)},t.useContext=function(e){var t=r.context[e.__c],i=f(n++,9);return i.__c=e,t?(null==i.__&&(i.__=!0,t.sub(r)),t.props.value):e.__},t.useDebugValue=function(e,t){St.options.useDebugValue&&St.options.useDebugValue(t?t(e):e)},t.useErrorBoundary=function(e){var t=f(n++,10),i=d();return t.__=e,r.componentDidCatch||(r.componentDidCatch=function(e){t.__&&t.__(e),i[1](e)}),[i[0],function(){i[1](void 0)}]}})),jn=t&&t.__assign||function(){return(jn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Tn=function(e,t,n){var r,i=He.pick(e,[n]),o=He.pick(t,[n]);return i[n]&&o[n]?jn(jn(jn({},e),t),((r={})[n]=i[n]+", "+o[n],r)):jn(jn({},e),t)},Ln=Object.defineProperty({default:Tn},"__esModule",{value:!0}),Dn=("undefined"!=typeof window?window:t)||{},In=Object.defineProperty({default:Dn},"__esModule",{value:!0}),Mn=r((function(e,n){var r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.sendPingback=void 0;var i=r(In),o=((null===i.default||void 0===i.default?void 0:i.default.GIPHY_PINGBACK_URL)||"https://pingback.giphy.com")+"/v2/pingback?apikey=l0HlIwPWyBBUDAUgM";n.sendPingback=function(e){var t=He.getGiphySDKRequestHeaders();return null==t||t.set("Content-Type","application/json"),He.Logger.debug("Pingback session",e),fetch(o,{method:"POST",body:JSON.stringify({events:e}),headers:t})}})),Nn=n(vn),Gn=t&&t.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Fn=(t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(In),zn=[];Fn.default.giphyRandomId=He.getPingbackId();var Hn="";function Un(){var e=Gn(zn);zn=[],Mn.sendPingback(e)}var Bn=Nn.debounce(1e3,Un),Wn=function(e){var t=e.gif,n=e.userId,r=e.eventType,i=e.actionType,o=e.attributes,a=e.queueEvents,s=void 0===a||a;Hn=n?String(n):Hn;var c={ts:Date.now(),attributes:o,action_type:i,user_id:He.getPingbackId()};if(Hn&&(c.logged_in_user_id=Hn),t){if(!t.analytics_response_payload)return void He.Logger.debug("no pingback for "+t.id+", not all endpoints have ARPs");c.analytics_response_payload=t.analytics_response_payload+(He.Logger.ENABLED?"&mode=verification":"")}r&&(c.event_type=r),zn.push(c),s?Bn():Un()},Vn=Object.defineProperty({default:Wn},"__esModule",{value:!0});Object.defineProperty(e,"__esModule",{value:!0});var qn,Kn=n(Object.freeze({__proto__:null})),Qn=r((function(e,n){var r=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.pingback=n.mergeAttributes=void 0,Object.defineProperty(n,"mergeAttributes",{enumerable:!0,get:function(){return o(Ln).default}}),Object.defineProperty(n,"pingback",{enumerable:!0,get:function(){return o(Vn).default}}),i(Kn,n)})),Yn=r((function(e,n){var r=t&&t.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.onGifHover=n.onGifClick=n.onGifSeen=void 0;var i=function(e){return function(t,n,i,o){return void 0===o&&(o={}),Qn.pingback({gif:t,userId:n,actionType:e,attributes:r({position:JSON.stringify(He.getClientRect(i))},o)})}};n.onGifSeen=function(e,t,n,i){void 0===i&&(i={}),Qn.pingback({gif:e,userId:t,actionType:"SEEN",attributes:r({position:JSON.stringify(n)},i)})},n.onGifClick=i("CLICK"),n.onGifHover=i("HOVER")})),$n=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Xn=On.css(qn||(qn=$n(["\n    object-fit: cover;\n    width: 32px;\n    height: 32px;\n    margin-right: 8px;\n"],["\n    object-fit: cover;\n    width: 32px;\n    height: 32px;\n    margin-right: 8px;\n"]))),Jn=function(e){var t=e.user,n=e.className,r=void 0===n?"":n,i=En.useRef(Math.floor(5*Math.random())+1),o=t.avatar_url?function(e){var t,n;if(!e)return"";var r=null===(n=null===(t=null==e?void 0:e.split("."))||void 0===t?void 0:t.pop())||void 0===n?void 0:n.toLowerCase();return e.replace("."+r,"/80h."+r)}(t.avatar_url):"https://media.giphy.com/avatars/default"+i.current+".gif";return St.h("img",{src:o,className:On.cx(Xn,r)})},Zn=Object.defineProperty({default:Jn},"__esModule",{value:!0}),er=function(e){var t=e.className,n=void 0===t?"":t,r=e.size,i=void 0===r?17:r,o=e.fill,a=void 0===o?"#15CDFF":o;return St.h("svg",{className:On.cx(er.className,n),height:i,width:"19px",viewBox:"0 0 19 17"},St.h("g",{transform:"translate(-532.000000, -466.000000)",fill:a},St.h("g",{transform:"translate(141.000000, 235.000000)"},St.h("g",{transform:"translate(264.000000, 0.000000)"},St.h("g",{transform:"translate(10.000000, 224.000000)"},St.h("g",{transform:"translate(114.000000, 2.500000)"},St.h("path",{d:"M15.112432,4.80769231 L16.8814194,6.87556817 L19.4157673,7.90116318 L19.6184416,10.6028916 L21.0594951,12.9065042 L19.6184416,15.2101168 L19.4157673,17.9118452 L16.8814194,18.9374402 L15.112432,21.0053161 L12.4528245,20.3611511 L9.79321699,21.0053161 L8.02422954,18.9374402 L5.48988167,17.9118452 L5.28720734,15.2101168 L3.84615385,12.9065042 L5.28720734,10.6028916 L5.48988167,7.90116318 L8.02422954,6.87556817 L9.79321699,4.80769231 L12.4528245,5.4518573 L15.112432,4.80769231 Z M17.8163503,10.8991009 L15.9282384,9.01098901 L11.5681538,13.3696923 L9.68115218,11.4818515 L7.81302031,13.3499833 L9.7011322,15.2380952 L11.5892441,17.1262071 L17.8163503,10.8991009 Z"})))))))};er.className="giphy-verified-badge";var tr=er,nr=Object.defineProperty({default:tr},"__esModule",{value:!0}),rr=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ir=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},or=ir(Zn),ar=ir(nr),sr=On.css(dr||(dr=rr(["\n    display: flex;\n    align-items: center;\n    font-family: interface, helvetica, arial;\n"],["\n    display: flex;\n    align-items: center;\n    font-family: interface, helvetica, arial;\n"]))),cr=On.css(pr||(pr=rr(["\n    flex-shrink: 0;\n"],["\n    flex-shrink: 0;\n"]))),lr=On.css(hr||(hr=rr(["\n    color: white;\n    font-size: 17px;\n    font-weight: bold;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    -webkit-font-smoothing: antialiased;\n"],["\n    color: white;\n    font-size: 17px;\n    font-weight: bold;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    -webkit-font-smoothing: antialiased;\n"]))),ur=On.css(gr||(gr=rr(["\n    margin: 0 4px;\n    flex-shrink: 0;\n"],["\n    margin: 0 4px;\n    flex-shrink: 0;\n"]))),fr=function(e){var t=e.gif,n=e.className,r=e.onClick,i=t.user;if(!(null==i?void 0:i.username)&&!(null==i?void 0:i.display_name))return null;var o=i.display_name,a=i.username;return St.h("div",{className:On.cx(sr,fr.className,n),onClick:function(e){if(e.preventDefault(),e.stopPropagation(),r)r(t);else{var n=i.profile_url;n&&window.open(n,"_blank")}}},St.h(or.default,{user:i,className:cr}),St.h("div",{className:lr},o||"@"+a),i.is_verified?St.h(ar.default,{size:14,className:ur}):null)};fr.className="giphy-attribution";var dr,pr,hr,gr,mr,yr,vr,_r,br,wr,kr,Or,Ar,xr,Sr,Pr=fr,Cr=Object.defineProperty({default:Pr},"__esModule",{value:!0}),Rr=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Er=(t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Cr),jr=On.css(mr||(mr=Rr(["\n    background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));\n    cursor: default;\n    position: absolute;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    height: 75px;\n    pointer-events: none;\n"],["\n    background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6));\n    cursor: default;\n    position: absolute;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    height: 75px;\n    pointer-events: none;\n"]))),Tr=On.css(yr||(yr=Rr(["\n    position: absolute;\n    bottom: 10px;\n    left: 10px;\n    right: 10px;\n"],["\n    position: absolute;\n    bottom: 10px;\n    left: 10px;\n    right: 10px;\n"]))),Lr=On.css(vr||(vr=Rr(["\n    transition: opacity 150ms ease-in;\n"],["\n    transition: opacity 150ms ease-in;\n"]))),Dr=function(e){var t=e.gif,n=e.isHovered,r=e.onClick,i=En.useRef(n);return n&&(i.current=!0),t.user&&i.current?St.h("div",{className:Lr,style:{opacity:n?1:0}},St.h("div",{className:jr}),St.h(Er.default,{gif:t,className:Tr,onClick:r})):null},Ir=Object.defineProperty({default:Dr},"__esModule",{value:!0}),Mr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.PingbackContext=void 0,t.PingbackContext=St.createContext({});t.default=function(e){var n=e.attributes,r=e.children,i=En.useContext(t.PingbackContext).attributes,o=void 0===i?{}:i;return St.h(t.PingbackContext.Provider,{value:{attributes:Qn.mergeAttributes(o,n,"layout_type")}},r)}})),Nr=r((function(e,n){var r=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},i=t&&t.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=t&&t.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=t&&t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},c=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.getColor=n.GRID_COLORS=void 0;var l=s(Yn),u=c(Ir),f=c(nr),d=On.css(g||(g=r(["\n    display: block;\n    img {\n        display: block;\n    }\n    ."," {\n        g {\n            fill: white;\n        }\n    }\n"],["\n    display: block;\n    img {\n        display: block;\n    }\n    ."," {\n        g {\n            fill: white;\n        }\n    }\n"])),f.default.className);n.GRID_COLORS=[Rn.giphyBlue,Rn.giphyGreen,Rn.giphyPurple,Rn.giphyRed,Rn.giphyYellow],n.getColor=function(){return n.GRID_COLORS[Math.round(Math.random()*(n.GRID_COLORS.length-1))]};var p=function(e){return e.href?St.h("a",i({href:e.href},e)):St.h("div",i({},e))};function h(e){return En.useState({current:e})[0]}var g,m,y=function(){},v=function(e){var t=e.gif,i=e.width,o=e.height,a=e.onGifRightClick,s=void 0===a?y:a,c=e.className,f=e.onGifClick,g=void 0===f?y:f,_=e.onGifSeen,b=void 0===_?y:_,w=e.onGifVisible,k=void 0===w?y:w,O=e.user,A=void 0===O?{}:O,x=e.backgroundColor,S=e.hideAttribution,P=void 0!==S&&S,C=e.noLink,R=void 0!==C&&C,E=e.borderRadius,j=void 0===E?4:E,T=En.useState(!1),L=T[0],D=T[1],I=En.useState(!1),M=I[0],N=I[1],G=En.useState(!1),F=G[0],z=G[1],H=En.useRef(n.getColor()),U=En.useRef(null),B=h(),W=h(),V=h(),q=En.useRef(y),K=En.useContext(Mr.PingbackContext).attributes;q.current=function(e){D(!0),He.Logger.debug("GIF "+t.id+" seen. "+t.title),t.bottle_data&&t.bottle_data.tags&&He.injectTrackingPixel(t.bottle_data.tags),l.onGifSeen(t,null==A?void 0:A.id,e.boundingClientRect,K),null==b||b(t,e.boundingClientRect),W.current&&W.current.disconnect()};En.useEffect((function(){W.current&&W.current.disconnect(),D(!1)}),[t.id]),En.useEffect((function(){return B.current=new IntersectionObserver((function(e){var t=e[0].isIntersecting;z(t),!t&&W.current&&W.current.disconnect()})),B.current.observe(U.current),function(){B.current&&B.current.disconnect(),W.current&&W.current.disconnect(),V.current&&clearTimeout(V.current)}}),[]);var Q=o||He.getGifHeight(t,i),Y=He.getBestRendition(t.images,i,Q),$=t.images[Y.renditionName],X=x||(t.is_sticker?"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4AQMAAACSSKldAAAABlBMVEUhIiIWFhYoSqvJAAAAGElEQVQY02MAAv7///8PWxqIPwDZw5UGABtgwz2xhFKxAAAAAElFTkSuQmCC') 0 0":H.current),J=j?On.css(m||(m=r(["\n              border-radius: ","px;\n              overflow: hidden;\n          "],["\n              border-radius: ","px;\n              overflow: hidden;\n          "])),j):"";return St.h(p,{href:R?void 0:t.url,style:{width:i,height:Q},className:On.cx(v.className,d,J,c),onMouseOver:function(e){clearTimeout(V.current),N(!0),V.current=window.setTimeout((function(){l.onGifHover(t,null==A?void 0:A.id,e.target,K)}),200)},onMouseLeave:function(){clearTimeout(V.current),N(!1)},onClick:function(e){l.onGifClick(t,null==A?void 0:A.id,e.target,K),g(t,e)},onContextMenu:function(e){return s(t,e)}},St.h("div",{style:{width:i,height:Q,position:"relative"},ref:U},St.h("picture",null,St.h("source",{type:"image/webp",srcSet:$.webp}),St.h("img",{className:v.imgClassName,src:F?$.url:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",style:{background:X},width:i,height:Q,alt:He.getAltText(t),onLoad:F?function(e){W.current||(W.current=new IntersectionObserver((function(e){var t=e[0];t.isIntersecting&&q.current(t)}),{threshold:[.99]})),!L&&U.current&&W.current&&W.current.observe(U.current),k(t,e)}:function(){}})),F?St.h("div",null,!P&&St.h(u.default,{gif:t,isHovered:M})):null))};v.className="giphy-gif",v.imgClassName="giphy-gif-img",n.default=v})),Gr=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Fr=t&&t.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zr=t&&t.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Hr=t&&t.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Ur=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Br=Ur(wn),Wr=Ur(Nr),Vr=Ur(Mr),qr=On.css(_r||(_r=Gr(["\n    -webkit-overflow-scrolling: touch;\n    overflow-x: auto;\n    overflow-y: hidden;\n    white-space: nowrap;\n    position: relative;\n"],["\n    -webkit-overflow-scrolling: touch;\n    overflow-x: auto;\n    overflow-y: hidden;\n    white-space: nowrap;\n    position: relative;\n"]))),Kr=On.css(br||(br=Gr(["\n    display: inline-block;\n    list-style: none;\n    /* make sure gifs are fully visible with a scrollbar */\n    margin-bottom: 1px;\n    &:first-of-type {\n        margin-left: 0;\n    }\n"],["\n    display: inline-block;\n    list-style: none;\n    /* make sure gifs are fully visible with a scrollbar */\n    margin-bottom: 1px;\n    &:first-of-type {\n        margin-left: 0;\n    }\n"]))),Qr=On.css(wr||(wr=Gr(["\n    display: inline-block;\n"],["\n    display: inline-block;\n"]))),Yr=On.css(kr||(kr=Gr(["\n    width: 30px;\n    display: inline-block;\n"],["\n    width: 30px;\n    display: inline-block;\n"]))),$r=Object.freeze({gutter:6,user:{}}),Xr=Object.freeze({isFetching:!1,numberOfGifs:0,gifs:[],isLoaderVisible:!0,isDoneFetching:!1}),Jr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=Xr,t.paginator=xt.gifPaginator(t.props.fetchGifs),t.onLoaderVisible=function(e){t.setState({isLoaderVisible:e},t.onFetch)},t.onFetch=Nn.debounce(100,(function(){return zr(t,void 0,void 0,(function(){var e,t,n,r,i,o;return Hr(this,(function(a){switch(a.label){case 0:if(e=this.state,t=e.isFetching,n=e.isLoaderVisible,r=e.gifs,t||!n)return[3,5];this.setState({isFetching:!0}),i=void 0,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.paginator()];case 2:return i=a.sent(),[3,4];case 3:return a.sent(),this.setState({isFetching:!1}),[3,4];case 4:i&&(r.length===i.length?this.setState({isDoneFetching:!0}):(this.setState({gifs:i,isFetching:!1}),(o=this.props.onGifsFetched)&&o(i),this.onFetch())),a.label=5;case 5:return[2]}}))}))})),t}return Fr(t,e),t.prototype.componentDidMount=function(){this.onFetch()},t.prototype.render=function(e,n){var r=e.fetchGifs,i=e.onGifVisible,o=e.onGifRightClick,a=e.gifHeight,s=e.gutter,c=e.className,l=void 0===c?t.className:c,u=e.onGifClick,f=e.onGifHover,d=e.onGifSeen,p=e.user,h=e.noResultsMessage,g=e.hideAttribution,m=e.noLink,y=e.borderRadius,v=n.gifs,_=r&&v.length>0,b=On.css(Or||(Or=Gr(["\n            margin-left: ","px;\n        "],["\n            margin-left: ","px;\n        "])),s),w=On.css(Ar||(Ar=Gr(["\n            height: ","px;\n        "],["\n            height: ","px;\n        "])),a),k=On.cx(l,qr),O=On.cx(Kr,b);return St.h(Vr.default,{attributes:{layout_type:"CAROUSEL"}},St.h("div",{class:k},v.map((function(e){var t=He.getGifWidth(e,a);return St.h(Wr.default,{className:O,gif:e,key:e.id,width:t,onGifClick:u,onGifHover:f,onGifSeen:d,onGifVisible:i,onGifRightClick:o,user:p,hideAttribution:g,noLink:m,borderRadius:y})})),!_&&0===v.length&&h,_&&St.h(Br.default,{className:Qr,onVisibleChange:this.onLoaderVisible},St.h("div",{className:On.cx(Yr,w)}))))},t.className="giphy-carousel",t.defaultProps=$r,t}(St.Component),Zr=Object.defineProperty({default:Jr},"__esModule",{value:!0}),ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ti=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function r(e,t){return t._once=!0,n(e,t),this}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var s=t[e]&&t[e].slice();return s&&s.forEach((function(t){t._once&&i(e,t),t.apply(n,o)})),this}return ei({},e,{on:n,once:r,off:i,emit:o})},ni=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,l=void 0,u=void 0,f=void 0,d=void 0,p=void 0,h=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,g=e.sizes.slice().reverse(),m=!1!==e.position,y=e.container.nodeType?e.container:document.querySelector(e.container),v={all:function(){return O(y.children)},new:function(){return O(y.children).filter((function(e){return!e.hasAttribute(""+h)}))}},_=[S,P,C],b=[R,E,j,T],w=ti({pack:I,update:M,resize:N});return w;function k(e){e.forEach((function(e){return e()}))}function O(e){return Array.prototype.slice.call(e)}function A(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function x(){return g.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function S(){r=x()}function P(){i=-1===r?g[g.length-1]:g[r]}function C(){a=A(i.columns)}function R(){f=v[t?"new":"all"]()}function E(){0!==f.length&&(d=f.map((function(e){return e.clientWidth})),p=f.map((function(e){return e.clientHeight})))}function j(){f.forEach((function(e,t){o=a.indexOf(Math.min.apply(Math,a)),e.style.position="absolute",s=a[o]+"px",c=o*d[t]+o*i.gutter+"px",m?(e.style.top=s,e.style.left=c):e.style.transform="translate3d("+c+", "+s+", 0)",e.setAttribute(h,""),l=d[t],u=p[t],l&&u&&(a[o]+=u+i.gutter)}))}function T(){y.style.position="relative",y.style.width=i.columns*l+(i.columns-1)*i.gutter+"px",y.style.height=Math.max.apply(Math,a)-i.gutter+"px"}function L(){n||(window.requestAnimationFrame(D),n=!0)}function D(){r!==x()&&(I(),w.emit("resize",i)),n=!1}function I(){return t=!1,k(_.concat(b)),w.emit("pack")}function M(){return t=!0,k(b),w.emit("update")}function N(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",L),w}}}),ri=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ii=On.css(xr||(xr=ri(["\n    color: ",";\n    display: flex;\n    justify-content: center;\n    margin: 30px 0;\n    font-family: ",";\n    font-size: 16px;\n    font-weight: 600;\n    a {\n        color: ",";\n        cursor: pointer;\n        &:hover {\n            color: white;\n        }\n    }\n"],["\n    color: ",";\n    display: flex;\n    justify-content: center;\n    margin: 30px 0;\n    font-family: ",";\n    font-size: 16px;\n    font-weight: 600;\n    a {\n        color: ",";\n        cursor: pointer;\n        &:hover {\n            color: white;\n        }\n    }\n"])),Rn.giphyLightGrey,Rn.fontFamily.body,Rn.giphyBlue),oi=function(e){var t=e.onClick;return St.h("div",{className:ii},"Error loading GIFs. ",St.h("a",{onClick:t},"Try again?"))},ai=Object.defineProperty({default:oi},"__esModule",{value:!0}),si=Object.defineProperty({default:function(e){var t=e.className,n=void 0===t?"":t;return St.h("div",{className:On.cx(Rn.loader,n)},St.h("div",null),St.h("div",null),St.h("div",null),St.h("div",null),St.h("div",null))}},"__esModule",{value:!0}),ci=n(ni),li=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ui=t&&t.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fi=t&&t.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},di=t&&t.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},pi=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},hi=pi(ci),gi=pi(wn),mi=pi(ai),yi=pi(Nr),vi=pi(si),_i=pi(Mr),bi=On.css(Sr||(Sr=li(["\n    opacity: 0;\n"],["\n    opacity: 0;\n"]))),wi=Object.freeze({gutter:6,user:{}}),ki=Object.freeze({isFetching:!1,isError:!1,numberOfGifs:0,gifWidth:0,gifs:[],isLoaderVisible:!0,isDoneFetching:!1}),Oi=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state=ki,n.el=null,n.paginator=xt.gifPaginator(n.props.fetchGifs),n.onLoaderVisible=function(e){n.setState({isLoaderVisible:e},n.onFetch)},n.onFetch=Nn.debounce(t.fetchDebounce,(function(){return fi(n,void 0,void 0,(function(){var e,t,n,r,i,o,a,s;return di(this,(function(c){switch(c.label){case 0:if(e=this.state,t=e.isFetching,n=e.isLoaderVisible,r=e.gifs,t||!n)return[3,5];this.setState({isFetching:!0,isError:!1}),i=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.paginator()];case 2:return i=c.sent(),[3,4];case 3:return o=c.sent(),this.setState({isFetching:!1,isError:!0}),(a=this.props.onGifsFetchError)&&a(o),[3,4];case 4:i&&(r.length===i.length?this.setState({isDoneFetching:!0}):(this.setState({gifs:i,isFetching:!1}),(s=this.props.onGifsFetched)&&s(i),this.onFetch())),c.label=5;case 5:return[2]}}))}))})),n}return ui(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.columns,r=e.gutter,i=e.width,o=r*(n-1),a=Math.floor((i-o)/n);return t.gifWidth!==a?{gifWidth:a}:{}},t.prototype.setBricks=function(){var e=this.props,t=e.columns,n=e.gutter;this.bricks=hi.default({container:this.el,packed:"data-packed-"+t,sizes:[{columns:t,gutter:n}]})},t.prototype.componentDidMount=function(){this.setBricks(),this.onFetch()},t.prototype.componentDidUpdate=function(e,t){var n=this.state.gifs,r=this.state.gifWidth,i=t.gifs.length,o=n.length;t.gifWidth!==r&&i>0&&(this.props.columns!==e.columns&&this.setBricks(),this.bricks.pack());t.gifs!==n&&(o>i&&i>0?this.bricks.update():this.bricks.pack())},t.prototype.render=function(e,n){var r=this,i=e.fetchGifs,o=e.onGifVisible,a=e.onGifRightClick,s=e.className,c=void 0===s?t.className:s,l=e.onGifClick,u=e.onGifHover,f=e.onGifSeen,d=e.user,p=e.noResultsMessage,h=e.hideAttribution,g=e.noLink,m=e.borderRadius,y=n.gifWidth,v=n.gifs,_=n.isError,b=n.isDoneFetching,w=i&&!b,k=0===v.length;return St.h(_i.default,{attributes:{layout_type:"GRID"}},St.h("div",{class:c},St.h("div",{ref:function(e){return r.el=e}},v.map((function(e){return St.h(yi.default,{gif:e,key:e.id,width:y,onGifClick:l,onGifHover:u,onGifSeen:f,onGifVisible:o,onGifRightClick:a,user:d,hideAttribution:h,noLink:g,borderRadius:m})})),!w&&0===v.length&&p),_?St.h(mi.default,{onClick:this.onFetch}):w&&St.h(gi.default,{onVisibleChange:this.onLoaderVisible},St.h(vi.default,{className:On.cx(t.loaderClassName,k?bi:"")}))))},t.className="giphy-grid",t.loaderClassName="giphy-loader",t.defaultProps=wi,t.fetchDebounce=250,t}(St.Component),Ai=Object.defineProperty({default:Oi},"__esModule",{value:!0}),xi="4.1.3",Si=r((function(e,n){var r=t&&t.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.renderGif=n.renderCarousel=n.renderGrid=n.Grid=n.Gif=n.Carousel=void 0;var o=i(Zr),a=i(Ai),s=i(Nr);Object.defineProperty(n,"Carousel",{enumerable:!0,get:function(){return i(Zr).default}}),Object.defineProperty(n,"Gif",{enumerable:!0,get:function(){return i(Nr).default}}),Object.defineProperty(n,"Grid",{enumerable:!0,get:function(){return i(Ai).default}});var c=xi;He.appendGiphySDKRequestHeader("X-GIPHY-SDK-NAME","JavascriptSDK"),He.appendGiphySDKRequestHeader("X-GIPHY-SDK-VERSION",c),n.renderGrid=function(e,t){return St.render(St.h(a.default,r({},e)),t),function(){return St.render(null,t)}},n.renderCarousel=function(e,t){return St.render(St.h(o.default,r({},e)),t),function(){return St.render(null,t)}},n.renderGif=function(e,t){return St.render(St.h(s.default,r({},e)),t),function(){return St.render(null,t)}}}));e.GiphyFetch=xt.GiphyFetch,e.renderGrid=Si.renderGrid,Object.defineProperty(e,"__esModule",{value:!0})}));
  